@synnaxlabs/pluto 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Animated-DbOFofnA.cjs → Animated-Bo0VMLXe.cjs} +1 -1
- package/dist/{Animated-BRUqvVsW.js → Animated-CqxAz8yC.js} +2 -2
- package/dist/Item-Cr7Cee2t.js +110 -0
- package/dist/Item-s_R6czdE.cjs +1 -0
- package/dist/Keyboard-CIJ6C-6F.js +25 -0
- package/dist/Keyboard-D-9KUUCq.cjs +1 -0
- package/dist/{LinePlot-CtIZPK_F.js → LinePlot-CVOH06qp.js} +2094 -2090
- package/dist/LinePlot-k6OxHynn.cjs +66 -0
- package/dist/{Link-CrB722xh.js → Link-B1bLviPV.js} +1 -1
- package/dist/{Link-TUMI2ARc.cjs → Link-z1QKdW8G.cjs} +1 -1
- package/dist/{List-Cgx098Ae.cjs → List-DVMb5TAO.cjs} +1 -1
- package/dist/List-L9yD_LRe.js +22 -0
- package/dist/Pack-BrxYNh7B.js +137 -0
- package/dist/Pack-C_SrDA3a.cjs +1 -0
- package/dist/Text-D9wOBnT3.js +32 -0
- package/dist/Text-Vzb9NS0-.cjs +1 -0
- package/dist/{Toggle-3WohopP9.js → Toggle-BrC3s3ox.js} +7802 -7745
- package/dist/Toggle-DdnBJm8D.cjs +143 -0
- package/dist/{Video-JYqTPKDk.cjs → Video-DR3tjTFZ.cjs} +1 -1
- package/dist/{Video-Ciw4h8eF.js → Video-DdIv_1Yq.js} +1 -1
- package/dist/{aggregator-BpQMir30.js → aggregator-BNkkZ-Bc.js} +5069 -4359
- package/dist/aggregator-LvZi4Kvh.cjs +67 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-CiSR0WsA.js → css-B8RwzK24.js} +96 -96
- package/dist/css-LxkguM_s.cjs +1 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +5 -5
- package/dist/external-ArTLjo1-.cjs +1 -0
- package/dist/external-B1KQRpm7.js +353 -0
- package/dist/{external-CqQG_X0V.cjs → external-BGcGef1R.cjs} +1 -1
- package/dist/{external-rB_b8uvo.js → external-BaV5u1sJ.js} +21 -21
- package/dist/{external--UUIWzFw.cjs → external-BpWJNQQi.cjs} +1 -1
- package/dist/{external-CnWUVmQS.js → external-BwdvFk2R.js} +2 -2
- package/dist/external-BxX4TXgQ.cjs +1 -0
- package/dist/{external-D8r96cqI.js → external-ByGOTAK0.js} +128 -128
- package/dist/{external-BFldRd_W.cjs → external-CGdoEsew.cjs} +1 -1
- package/dist/external-CJt9nz9P.cjs +1 -0
- package/dist/{external-Clb-pmsS.cjs → external-Cl_evqYY.cjs} +1 -1
- package/dist/{external-DmgHQYvn.js → external-Cta1T9rO.js} +20 -20
- package/dist/{external-BXXNOCb0.cjs → external-CzVXDUkp.cjs} +1 -1
- package/dist/{external-Ahp3C6QS.cjs → external-D7bzFwDm.cjs} +1 -1
- package/dist/external-DAswAy_H.js +322 -0
- package/dist/external-DmH8EJ0I.cjs +1 -0
- package/dist/external-DzY80h7T.js +76 -0
- package/dist/{external-B4LzaEYW.js → external-EHAadzLe.js} +6 -6
- package/dist/{external-tnXiEaTc.cjs → external-MSpJvixc.cjs} +1 -1
- package/dist/{external-GQjdWsOX.cjs → external-ZS0XGHuP.cjs} +1 -1
- package/dist/{external-B_mVlkww.js → external-n_t7VfzS.js} +1 -1
- package/dist/external-oW8IRqfk.js +13 -0
- package/dist/{external-DYr-TNbF.js → external-qbHFNsHS.js} +74 -74
- package/dist/external-vf43rlmJ.js +20 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +5417 -4264
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/align/Pack.d.ts +1 -2
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +1 -0
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +3 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +1 -1
- package/dist/src/button/Icon.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +1 -0
- package/dist/src/button/Toggle.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +2 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/css/css.d.ts +1 -0
- package/dist/src/css/css.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts +5 -0
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts +3 -2
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +3 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +3 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts +11 -22
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts +7 -3
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts +25 -2
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts +21 -1
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +6 -1
- package/dist/src/mosaic/types.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/select/Alignment.d.ts +12 -0
- package/dist/src/select/Alignment.d.ts.map +1 -0
- package/dist/src/select/external.d.ts +1 -0
- package/dist/src/select/external.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts +4 -2
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +129 -7
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +7 -1
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Keyboard.d.ts +1 -1
- package/dist/src/text/Keyboard.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts +2 -2
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts +3 -2
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +3 -4
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +17 -3
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/util/rootElement.d.ts +1 -1
- package/dist/src/util/rootElement.d.ts.map +1 -1
- package/dist/src/vis/axis/canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts +3 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +9 -0
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/grid/grid.d.ts +115 -0
- package/dist/src/vis/grid/grid.d.ts.map +1 -0
- package/dist/src/vis/grid/grid.spec.d.ts +2 -0
- package/dist/src/vis/grid/grid.spec.d.ts.map +1 -0
- package/dist/src/vis/grid/index.d.ts +2 -0
- package/dist/src/vis/grid/index.d.ts.map +1 -0
- package/dist/src/vis/legend/Simple.d.ts +1 -0
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/light/use.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts +3 -1
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +4 -4
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +16 -10
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +7 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Labeled.d.ts +2 -0
- package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts +5 -2
- package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +139 -35
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +42 -3
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-C59nowP2.cjs → units-CMXTKjnN.cjs} +1 -1
- package/dist/{units-BAK8qzqy.js → units-CnA_yWxx.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +7 -7
- package/dist/Keyboard-BpXlLck_.js +0 -13
- package/dist/Keyboard-X_-hpfg9.cjs +0 -1
- package/dist/LinePlot-B51qhAb1.cjs +0 -66
- package/dist/List-BI_89AyO.js +0 -22
- package/dist/Pack-BgzS2BHo.cjs +0 -1
- package/dist/Pack-l3j3YWpE.js +0 -134
- package/dist/Toggle-B8cAGDWx.cjs +0 -143
- package/dist/aggregator-CoVqjgd_.cjs +0 -57
- package/dist/css-Cc1vb61S.cjs +0 -1
- package/dist/external-BICFLjgD.js +0 -97
- package/dist/external-D1HsngQj.cjs +0 -1
- package/dist/external-D1KK9_Hu.js +0 -13
- package/dist/external-DMdyqHe5.js +0 -271
- package/dist/external-DY38DhOK.cjs +0 -1
- package/dist/external-Dckibeci.cjs +0 -1
- package/dist/external-DnVHgC7D.js +0 -74
- package/dist/external-Dst1oSuM.js +0 -353
- package/dist/external-Lmkzu-RE.cjs +0 -1
- package/dist/src/vis/lineplot/aether/grid.d.ts +0 -40
- package/dist/src/vis/lineplot/aether/grid.d.ts.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as le, au as Ae, ak as Oe, ab as ke, av as Le, a5 as Re, l as Ce, aa as je, aw as $e, ax as ve, a6 as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, ac as We, aD as ze, aE as He, a0 as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-BrC3s3ox.js";
|
|
2
2
|
import { j as Ye } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import {
|
|
5
|
-
import "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { L as Ze } from "./List-
|
|
8
|
-
const K = Symbol(),
|
|
3
|
+
import { useCallback as Qe } from "react";
|
|
4
|
+
import { w as Xe, j as Je } from "./aggregator-BNkkZ-Bc.js";
|
|
5
|
+
import "./css-B8RwzK24.js";
|
|
6
|
+
import "./Pack-BrxYNh7B.js";
|
|
7
|
+
import { L as Ze } from "./List-L9yD_LRe.js";
|
|
8
|
+
const K = Symbol(), he = Symbol(), Q = Symbol();
|
|
9
9
|
let qe = (t, e) => new Proxy(t, e);
|
|
10
|
-
const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(),
|
|
11
|
-
if (!
|
|
10
|
+
const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), X = (t) => t && (te.has(t) ? te.get(t) : W(t) === Object.prototype || W(t) === Array.prototype), se = (t) => typeof t == "object" && t !== null, re = /* @__PURE__ */ new WeakMap(), ue = (t) => t[Q] || t, fe = (t, e, s) => {
|
|
11
|
+
if (!X(t)) return t;
|
|
12
12
|
const r = ue(t), n = ((c) => Object.isFrozen(c) || Object.values(Object.getOwnPropertyDescriptors(c)).some((o) => !o.writable))(r);
|
|
13
13
|
let i = s && s.get(r);
|
|
14
14
|
return i && i[1].f === n || (i = ((c, o) => {
|
|
15
15
|
const a = { f: o };
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
if (!
|
|
16
|
+
let h = !1;
|
|
17
|
+
const l = (d, g) => {
|
|
18
|
+
if (!h) {
|
|
19
19
|
let p = a.a.get(c);
|
|
20
20
|
p || (p = /* @__PURE__ */ new Set(), a.a.set(c, p)), g && p.has(K) || p.add(d);
|
|
21
21
|
}
|
|
22
|
-
}, u = { get: (d, g) => g ===
|
|
22
|
+
}, u = { get: (d, g) => g === Q ? c : (l(g), fe(d[g], a.a, a.c)), has: (d, g) => g === he ? (h = !0, a.a.delete(c), !0) : (l(g), g in d), getOwnPropertyDescriptor: (d, g) => (l(g, !0), Object.getOwnPropertyDescriptor(d, g)), ownKeys: (d) => (l(K), Reflect.ownKeys(d)) };
|
|
23
23
|
return o && (u.set = u.deleteProperty = () => !1), [u, a];
|
|
24
24
|
})(r, n), i[1].p = qe(n ? ((c) => {
|
|
25
25
|
let o = re.get(c);
|
|
@@ -27,8 +27,8 @@ const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) =>
|
|
|
27
27
|
if (Array.isArray(c)) o = Array.from(c);
|
|
28
28
|
else {
|
|
29
29
|
const a = Object.getOwnPropertyDescriptors(c);
|
|
30
|
-
Object.values(a).forEach((
|
|
31
|
-
|
|
30
|
+
Object.values(a).forEach((h) => {
|
|
31
|
+
h.configurable = !0;
|
|
32
32
|
}), o = Object.create(W(c), a);
|
|
33
33
|
}
|
|
34
34
|
re.set(c, o);
|
|
@@ -54,16 +54,16 @@ const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) =>
|
|
|
54
54
|
if (o !== !0 && o !== !1 || (i = o), i) break;
|
|
55
55
|
}
|
|
56
56
|
return i === null && (i = !0), r && r.set(t, { n: e, g: i }), i;
|
|
57
|
-
}, tt = (t) => !!
|
|
57
|
+
}, tt = (t) => !!X(t) && he in t, J = (t) => X(t) && t[Q] || null, z = (t) => typeof t == "object" && t !== null, ge = (t, e) => {
|
|
58
58
|
if (!z(t)) return t;
|
|
59
|
-
const s =
|
|
59
|
+
const s = J(t);
|
|
60
60
|
return s !== null ? (tt(t), s) : (e.has(t) || (e.add(t), Object.entries(t).forEach(([r, n]) => {
|
|
61
61
|
const i = ge(n, e);
|
|
62
62
|
Object.is(i, n) || (t[r] = i);
|
|
63
63
|
})), t);
|
|
64
64
|
}, N = (t, e, s) => {
|
|
65
65
|
if (!z(t) || !z(e)) return;
|
|
66
|
-
const r = s.get(
|
|
66
|
+
const r = s.get(J(e) || e);
|
|
67
67
|
r && r.forEach((n) => {
|
|
68
68
|
N(t[n], e[n], s);
|
|
69
69
|
});
|
|
@@ -72,19 +72,19 @@ const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) =>
|
|
|
72
72
|
let r = 0;
|
|
73
73
|
const n = (s = e == null ? void 0 : e.size) != null ? s : 1, i = [], c = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
|
|
74
74
|
return (a) => {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
75
|
+
const h = J(a) || a, l = c.get(h);
|
|
76
|
+
if (l) return N(a, l.o, l.a), l.r;
|
|
77
77
|
for (let m = 0; m < n; m += 1) {
|
|
78
78
|
const M = i[(r + m) % n];
|
|
79
79
|
if (!M) break;
|
|
80
|
-
if (!de(M.o, a, M.a, /* @__PURE__ */ new WeakMap())) return c.set(
|
|
80
|
+
if (!de(M.o, a, M.a, /* @__PURE__ */ new WeakMap())) return c.set(h, M), N(a, M.o, M.a), M.r;
|
|
81
81
|
}
|
|
82
82
|
const u = /* @__PURE__ */ new WeakMap(), d = fe(a, u, o), g = ge(t(d), /* @__PURE__ */ new Set());
|
|
83
83
|
N(a, a, u);
|
|
84
84
|
const p = { o: a, r: g, a: u };
|
|
85
|
-
return r = (r - 1 + n) % n, i[r] = p, c.set(
|
|
85
|
+
return r = (r - 1 + n) % n, i[r] = p, c.set(h, p), g;
|
|
86
86
|
};
|
|
87
|
-
}, rt = (t, e) =>
|
|
87
|
+
}, rt = (t, e) => Xe.RUNTIME === "browser" ? st(t, e) : t;
|
|
88
88
|
function b(t) {
|
|
89
89
|
return Array.isArray ? Array.isArray(t) : Me(t) === "[object Array]";
|
|
90
90
|
}
|
|
@@ -122,7 +122,7 @@ function D(t) {
|
|
|
122
122
|
function Me(t) {
|
|
123
123
|
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const lt = "Incorrect 'index' type", ht = (t) => `Invalid value for key ${t}`, ut = (t) => `Pattern length exceeds max of ${t}.`, ft = (t) => `Missing ${t} property in key`, dt = (t) => `Property 'weight' in key '${t}' must be a positive integer`, ne = Object.prototype.hasOwnProperty;
|
|
126
126
|
class gt {
|
|
127
127
|
constructor(e) {
|
|
128
128
|
this._keys = [], this._keyMap = {};
|
|
@@ -172,16 +172,16 @@ function pt(t, e) {
|
|
|
172
172
|
s.push(i);
|
|
173
173
|
else {
|
|
174
174
|
let a = c[o];
|
|
175
|
-
const
|
|
176
|
-
if (!y(
|
|
175
|
+
const h = i[a];
|
|
176
|
+
if (!y(h))
|
|
177
177
|
return;
|
|
178
|
-
if (o === c.length - 1 && (S(
|
|
179
|
-
s.push(ct(
|
|
180
|
-
else if (b(
|
|
178
|
+
if (o === c.length - 1 && (S(h) || pe(h) || ot(h)))
|
|
179
|
+
s.push(ct(h));
|
|
180
|
+
else if (b(h)) {
|
|
181
181
|
r = !0;
|
|
182
|
-
for (let
|
|
183
|
-
n(l
|
|
184
|
-
} else c.length && n(
|
|
182
|
+
for (let l = 0, u = h.length; l < u; l += 1)
|
|
183
|
+
n(h[l], c, o + 1);
|
|
184
|
+
} else c.length && n(h, c, o + 1);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
return n(t, S(e) ? e.split(".") : e, 0), r ? s : s[0];
|
|
@@ -320,16 +320,16 @@ class Z {
|
|
|
320
320
|
let o = [];
|
|
321
321
|
const a = [{ nestedArrIndex: -1, value: c }];
|
|
322
322
|
for (; a.length; ) {
|
|
323
|
-
const { nestedArrIndex:
|
|
324
|
-
if (y(
|
|
325
|
-
if (S(
|
|
323
|
+
const { nestedArrIndex: h, value: l } = a.pop();
|
|
324
|
+
if (y(l))
|
|
325
|
+
if (S(l) && !D(l)) {
|
|
326
326
|
let u = {
|
|
327
|
-
v:
|
|
328
|
-
i:
|
|
329
|
-
n: this.norm.get(
|
|
327
|
+
v: l,
|
|
328
|
+
i: h,
|
|
329
|
+
n: this.norm.get(l)
|
|
330
330
|
};
|
|
331
331
|
o.push(u);
|
|
332
|
-
} else b(
|
|
332
|
+
} else b(l) && l.forEach((u, d) => {
|
|
333
333
|
a.push({
|
|
334
334
|
nestedArrIndex: d,
|
|
335
335
|
value: u
|
|
@@ -362,7 +362,7 @@ function _t(t, { getFn: e = f.getFn, fieldNormWeight: s = f.fieldNormWeight } =
|
|
|
362
362
|
const { keys: r, records: n } = t, i = new Z({ getFn: e, fieldNormWeight: s });
|
|
363
363
|
return i.setKeys(r), i.setIndexRecords(n), i;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function v(t, {
|
|
366
366
|
errors: e = 0,
|
|
367
367
|
currentLocation: s = 0,
|
|
368
368
|
expectedLocation: r = 0,
|
|
@@ -391,63 +391,63 @@ function wt(t, e, s, {
|
|
|
391
391
|
findAllMatches: c = f.findAllMatches,
|
|
392
392
|
minMatchCharLength: o = f.minMatchCharLength,
|
|
393
393
|
includeMatches: a = f.includeMatches,
|
|
394
|
-
ignoreLocation:
|
|
394
|
+
ignoreLocation: h = f.ignoreLocation
|
|
395
395
|
} = {}) {
|
|
396
396
|
if (e.length > k)
|
|
397
397
|
throw new Error(ut(k));
|
|
398
|
-
const
|
|
398
|
+
const l = e.length, u = t.length, d = Math.max(0, Math.min(r, u));
|
|
399
399
|
let g = i, p = d;
|
|
400
400
|
const m = o > 1 || a, M = m ? Array(u) : [];
|
|
401
401
|
let _;
|
|
402
402
|
for (; (_ = t.indexOf(e, p)) > -1; ) {
|
|
403
|
-
let x =
|
|
403
|
+
let x = v(e, {
|
|
404
404
|
currentLocation: _,
|
|
405
405
|
expectedLocation: d,
|
|
406
406
|
distance: n,
|
|
407
|
-
ignoreLocation:
|
|
407
|
+
ignoreLocation: h
|
|
408
408
|
});
|
|
409
|
-
if (g = Math.min(x, g), p = _ +
|
|
409
|
+
if (g = Math.min(x, g), p = _ + l, m) {
|
|
410
410
|
let w = 0;
|
|
411
|
-
for (; w <
|
|
411
|
+
for (; w < l; )
|
|
412
412
|
M[_ + w] = 1, w += 1;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
p = -1;
|
|
416
|
-
let L = [], O = 1, j =
|
|
417
|
-
const Ie = 1 <<
|
|
418
|
-
for (let x = 0; x <
|
|
416
|
+
let L = [], O = 1, j = l + u;
|
|
417
|
+
const Ie = 1 << l - 1;
|
|
418
|
+
for (let x = 0; x < l; x += 1) {
|
|
419
419
|
let w = 0, I = j;
|
|
420
420
|
for (; w < I; )
|
|
421
|
-
|
|
421
|
+
v(e, {
|
|
422
422
|
errors: x,
|
|
423
423
|
currentLocation: d + I,
|
|
424
424
|
expectedLocation: d,
|
|
425
425
|
distance: n,
|
|
426
|
-
ignoreLocation:
|
|
426
|
+
ignoreLocation: h
|
|
427
427
|
}) <= g ? w = I : j = I, I = Math.floor((j - w) / 2 + w);
|
|
428
428
|
j = I;
|
|
429
|
-
let q = Math.max(1, d - I + 1), P = c ? u : Math.min(d + I, u) +
|
|
429
|
+
let q = Math.max(1, d - I + 1), P = c ? u : Math.min(d + I, u) + l, R = Array(P + 2);
|
|
430
430
|
R[P + 1] = (1 << x) - 1;
|
|
431
431
|
for (let E = P; E >= q; E -= 1) {
|
|
432
|
-
let
|
|
433
|
-
if (m && (M[
|
|
432
|
+
let $ = E - 1, ee = s[t.charAt($)];
|
|
433
|
+
if (m && (M[$] = +!!ee), R[E] = (R[E + 1] << 1 | 1) & ee, x && (R[E] |= (L[E + 1] | L[E]) << 1 | 1 | L[E + 1]), R[E] & Ie && (O = v(e, {
|
|
434
434
|
errors: x,
|
|
435
|
-
currentLocation:
|
|
435
|
+
currentLocation: $,
|
|
436
436
|
expectedLocation: d,
|
|
437
437
|
distance: n,
|
|
438
|
-
ignoreLocation:
|
|
438
|
+
ignoreLocation: h
|
|
439
439
|
}), O <= g)) {
|
|
440
|
-
if (g = O, p =
|
|
440
|
+
if (g = O, p = $, p <= d)
|
|
441
441
|
break;
|
|
442
442
|
q = Math.max(1, 2 * d - p);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
if (
|
|
445
|
+
if (v(e, {
|
|
446
446
|
errors: x + 1,
|
|
447
447
|
currentLocation: d,
|
|
448
448
|
expectedLocation: d,
|
|
449
449
|
distance: n,
|
|
450
|
-
ignoreLocation:
|
|
450
|
+
ignoreLocation: h
|
|
451
451
|
}) > g)
|
|
452
452
|
break;
|
|
453
453
|
L = R;
|
|
@@ -480,7 +480,7 @@ class Ee {
|
|
|
480
480
|
findAllMatches: c = f.findAllMatches,
|
|
481
481
|
minMatchCharLength: o = f.minMatchCharLength,
|
|
482
482
|
isCaseSensitive: a = f.isCaseSensitive,
|
|
483
|
-
ignoreLocation:
|
|
483
|
+
ignoreLocation: h = f.ignoreLocation
|
|
484
484
|
} = {}) {
|
|
485
485
|
if (this.options = {
|
|
486
486
|
location: s,
|
|
@@ -490,10 +490,10 @@ class Ee {
|
|
|
490
490
|
findAllMatches: c,
|
|
491
491
|
minMatchCharLength: o,
|
|
492
492
|
isCaseSensitive: a,
|
|
493
|
-
ignoreLocation:
|
|
493
|
+
ignoreLocation: h
|
|
494
494
|
}, this.pattern = a ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
|
|
495
495
|
return;
|
|
496
|
-
const
|
|
496
|
+
const l = (d, g) => {
|
|
497
497
|
this.chunks.push({
|
|
498
498
|
pattern: d,
|
|
499
499
|
alphabet: It(d),
|
|
@@ -504,13 +504,13 @@ class Ee {
|
|
|
504
504
|
let d = 0;
|
|
505
505
|
const g = u % k, p = u - g;
|
|
506
506
|
for (; d < p; )
|
|
507
|
-
|
|
507
|
+
l(this.pattern.substr(d, k), d), d += k;
|
|
508
508
|
if (g) {
|
|
509
509
|
const m = u - k;
|
|
510
|
-
|
|
510
|
+
l(this.pattern.substr(m), m);
|
|
511
511
|
}
|
|
512
512
|
} else
|
|
513
|
-
|
|
513
|
+
l(this.pattern, 0);
|
|
514
514
|
}
|
|
515
515
|
searchIn(e) {
|
|
516
516
|
const { isCaseSensitive: s, includeMatches: r } = this.options;
|
|
@@ -527,9 +527,9 @@ class Ee {
|
|
|
527
527
|
threshold: c,
|
|
528
528
|
findAllMatches: o,
|
|
529
529
|
minMatchCharLength: a,
|
|
530
|
-
ignoreLocation:
|
|
530
|
+
ignoreLocation: h
|
|
531
531
|
} = this.options;
|
|
532
|
-
let
|
|
532
|
+
let l = [], u = 0, d = !1;
|
|
533
533
|
this.chunks.forEach(({ pattern: p, alphabet: m, startIndex: M }) => {
|
|
534
534
|
const { isMatch: _, score: L, indices: O } = wt(e, p, m, {
|
|
535
535
|
location: n + M,
|
|
@@ -538,15 +538,15 @@ class Ee {
|
|
|
538
538
|
findAllMatches: o,
|
|
539
539
|
minMatchCharLength: a,
|
|
540
540
|
includeMatches: r,
|
|
541
|
-
ignoreLocation:
|
|
541
|
+
ignoreLocation: h
|
|
542
542
|
});
|
|
543
|
-
_ && (d = !0), u += L, _ && O && (
|
|
543
|
+
_ && (d = !0), u += L, _ && O && (l = [...l, ...O]);
|
|
544
544
|
});
|
|
545
545
|
let g = {
|
|
546
546
|
isMatch: d,
|
|
547
547
|
score: d ? u / this.chunks.length : 1
|
|
548
548
|
};
|
|
549
|
-
return d && r && (g.indices =
|
|
549
|
+
return d && r && (g.indices = l), g;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
class A {
|
|
@@ -707,7 +707,7 @@ class Se extends A {
|
|
|
707
707
|
findAllMatches: c = f.findAllMatches,
|
|
708
708
|
minMatchCharLength: o = f.minMatchCharLength,
|
|
709
709
|
isCaseSensitive: a = f.isCaseSensitive,
|
|
710
|
-
ignoreLocation:
|
|
710
|
+
ignoreLocation: h = f.ignoreLocation
|
|
711
711
|
} = {}) {
|
|
712
712
|
super(e), this._bitapSearch = new Ee(e, {
|
|
713
713
|
location: s,
|
|
@@ -717,7 +717,7 @@ class Se extends A {
|
|
|
717
717
|
findAllMatches: c,
|
|
718
718
|
minMatchCharLength: o,
|
|
719
719
|
isCaseSensitive: a,
|
|
720
|
-
ignoreLocation:
|
|
720
|
+
ignoreLocation: h
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
723
|
static get type() {
|
|
@@ -768,24 +768,24 @@ const V = [
|
|
|
768
768
|
Rt,
|
|
769
769
|
Ot,
|
|
770
770
|
Se
|
|
771
|
-
], oe = V.length, jt = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,
|
|
772
|
-
function
|
|
773
|
-
return t.split(
|
|
771
|
+
], oe = V.length, jt = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, $t = "|";
|
|
772
|
+
function vt(t, e = {}) {
|
|
773
|
+
return t.split($t).map((s) => {
|
|
774
774
|
let r = s.trim().split(jt).filter((i) => i && !!i.trim()), n = [];
|
|
775
775
|
for (let i = 0, c = r.length; i < c; i += 1) {
|
|
776
776
|
const o = r[i];
|
|
777
|
-
let a = !1,
|
|
778
|
-
for (; !a && ++
|
|
779
|
-
const
|
|
780
|
-
let u =
|
|
781
|
-
u && (n.push(new
|
|
777
|
+
let a = !1, h = -1;
|
|
778
|
+
for (; !a && ++h < oe; ) {
|
|
779
|
+
const l = V[h];
|
|
780
|
+
let u = l.isMultiMatch(o);
|
|
781
|
+
u && (n.push(new l(u, e)), a = !0);
|
|
782
782
|
}
|
|
783
783
|
if (!a)
|
|
784
|
-
for (
|
|
785
|
-
const
|
|
786
|
-
let u =
|
|
784
|
+
for (h = -1; ++h < oe; ) {
|
|
785
|
+
const l = V[h];
|
|
786
|
+
let u = l.isSingleMatch(o);
|
|
787
787
|
if (u) {
|
|
788
|
-
n.push(new
|
|
788
|
+
n.push(new l(u, e));
|
|
789
789
|
break;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
@@ -803,7 +803,7 @@ class Ft {
|
|
|
803
803
|
findAllMatches: c = f.findAllMatches,
|
|
804
804
|
location: o = f.location,
|
|
805
805
|
threshold: a = f.threshold,
|
|
806
|
-
distance:
|
|
806
|
+
distance: h = f.distance
|
|
807
807
|
} = {}) {
|
|
808
808
|
this.query = null, this.options = {
|
|
809
809
|
isCaseSensitive: s,
|
|
@@ -813,8 +813,8 @@ class Ft {
|
|
|
813
813
|
ignoreLocation: i,
|
|
814
814
|
location: o,
|
|
815
815
|
threshold: a,
|
|
816
|
-
distance:
|
|
817
|
-
}, this.pattern = s ? e : e.toLowerCase(), this.query =
|
|
816
|
+
distance: h
|
|
817
|
+
}, this.pattern = s ? e : e.toLowerCase(), this.query = vt(this.pattern, this.options);
|
|
818
818
|
}
|
|
819
819
|
static condition(e, s) {
|
|
820
820
|
return s.useExtendedSearch;
|
|
@@ -829,11 +829,11 @@ class Ft {
|
|
|
829
829
|
const { includeMatches: r, isCaseSensitive: n } = this.options;
|
|
830
830
|
e = n ? e : e.toLowerCase();
|
|
831
831
|
let i = 0, c = [], o = 0;
|
|
832
|
-
for (let a = 0,
|
|
833
|
-
const
|
|
832
|
+
for (let a = 0, h = s.length; a < h; a += 1) {
|
|
833
|
+
const l = s[a];
|
|
834
834
|
c.length = 0, i = 0;
|
|
835
|
-
for (let u = 0, d =
|
|
836
|
-
const g =
|
|
835
|
+
for (let u = 0, d = l.length; u < d; u += 1) {
|
|
836
|
+
const g = l[u], { isMatch: p, indices: m, score: M } = g.search(e);
|
|
837
837
|
if (p) {
|
|
838
838
|
if (i += 1, o += M, r) {
|
|
839
839
|
const _ = g.constructor.type;
|
|
@@ -888,23 +888,23 @@ function be(t, e, { auto: s = !0 } = {}) {
|
|
|
888
888
|
if (!c && i.length > 1 && !Y(n))
|
|
889
889
|
return r(ae(n));
|
|
890
890
|
if (Dt(n)) {
|
|
891
|
-
const a = c ? n[U.PATH] : i[0],
|
|
892
|
-
if (!S(
|
|
893
|
-
throw new Error(
|
|
894
|
-
const
|
|
891
|
+
const a = c ? n[U.PATH] : i[0], h = c ? n[U.PATTERN] : n[a];
|
|
892
|
+
if (!S(h))
|
|
893
|
+
throw new Error(ht(a));
|
|
894
|
+
const l = {
|
|
895
895
|
keyId: H(a),
|
|
896
|
-
pattern:
|
|
896
|
+
pattern: h
|
|
897
897
|
};
|
|
898
|
-
return s && (
|
|
898
|
+
return s && (l.searcher = G(h, e)), l;
|
|
899
899
|
}
|
|
900
900
|
let o = {
|
|
901
901
|
children: [],
|
|
902
902
|
operator: i[0]
|
|
903
903
|
};
|
|
904
904
|
return i.forEach((a) => {
|
|
905
|
-
const
|
|
906
|
-
b(
|
|
907
|
-
o.children.push(r(
|
|
905
|
+
const h = n[a];
|
|
906
|
+
b(h) && h.forEach((l) => {
|
|
907
|
+
o.children.push(r(l));
|
|
908
908
|
});
|
|
909
909
|
}), o;
|
|
910
910
|
};
|
|
@@ -959,7 +959,7 @@ class C {
|
|
|
959
959
|
}
|
|
960
960
|
setCollection(e, s) {
|
|
961
961
|
if (this._docs = e, s && !(s instanceof Z))
|
|
962
|
-
throw new Error(
|
|
962
|
+
throw new Error(lt);
|
|
963
963
|
this._myIndex = s || xe(this.options.keys, this._docs, {
|
|
964
964
|
getFn: this.options.getFn,
|
|
965
965
|
fieldNormWeight: this.options.fieldNormWeight
|
|
@@ -1001,16 +1001,16 @@ class C {
|
|
|
1001
1001
|
return r.forEach(({ v: i, i: c, n: o }) => {
|
|
1002
1002
|
if (!y(i))
|
|
1003
1003
|
return;
|
|
1004
|
-
const { isMatch: a, score:
|
|
1004
|
+
const { isMatch: a, score: h, indices: l } = s.searchIn(i);
|
|
1005
1005
|
a && n.push({
|
|
1006
1006
|
item: i,
|
|
1007
1007
|
idx: c,
|
|
1008
|
-
matches: [{ score:
|
|
1008
|
+
matches: [{ score: h, value: i, norm: o, indices: l }]
|
|
1009
1009
|
});
|
|
1010
1010
|
}), n;
|
|
1011
1011
|
}
|
|
1012
1012
|
_searchLogical(e) {
|
|
1013
|
-
const s = be(e, this.options), r = (o, a,
|
|
1013
|
+
const s = be(e, this.options), r = (o, a, h) => {
|
|
1014
1014
|
if (!o.children) {
|
|
1015
1015
|
const { keyId: u, searcher: d } = o, g = this._findMatches({
|
|
1016
1016
|
key: this._keyStore.get(u),
|
|
@@ -1019,27 +1019,27 @@ class C {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
return g && g.length ? [
|
|
1021
1021
|
{
|
|
1022
|
-
idx:
|
|
1022
|
+
idx: h,
|
|
1023
1023
|
item: a,
|
|
1024
1024
|
matches: g
|
|
1025
1025
|
}
|
|
1026
1026
|
] : [];
|
|
1027
1027
|
}
|
|
1028
|
-
const
|
|
1028
|
+
const l = [];
|
|
1029
1029
|
for (let u = 0, d = o.children.length; u < d; u += 1) {
|
|
1030
|
-
const g = o.children[u], p = r(g, a,
|
|
1030
|
+
const g = o.children[u], p = r(g, a, h);
|
|
1031
1031
|
if (p.length)
|
|
1032
|
-
|
|
1032
|
+
l.push(...p);
|
|
1033
1033
|
else if (o.operator === F.AND)
|
|
1034
1034
|
return [];
|
|
1035
1035
|
}
|
|
1036
|
-
return
|
|
1036
|
+
return l;
|
|
1037
1037
|
}, n = this._myIndex.records, i = {}, c = [];
|
|
1038
1038
|
return n.forEach(({ $: o, i: a }) => {
|
|
1039
1039
|
if (y(o)) {
|
|
1040
|
-
let
|
|
1041
|
-
|
|
1042
|
-
i[a].matches.push(...
|
|
1040
|
+
let h = r(s, o, a);
|
|
1041
|
+
h.length && (i[a] || (i[a] = { idx: a, item: o, matches: [] }, c.push(i[a])), h.forEach(({ matches: l }) => {
|
|
1042
|
+
i[a].matches.push(...l);
|
|
1043
1043
|
}));
|
|
1044
1044
|
}
|
|
1045
1045
|
}), c;
|
|
@@ -1050,11 +1050,11 @@ class C {
|
|
|
1050
1050
|
if (!y(c))
|
|
1051
1051
|
return;
|
|
1052
1052
|
let a = [];
|
|
1053
|
-
r.forEach((
|
|
1053
|
+
r.forEach((h, l) => {
|
|
1054
1054
|
a.push(
|
|
1055
1055
|
...this._findMatches({
|
|
1056
|
-
key:
|
|
1057
|
-
value: c[
|
|
1056
|
+
key: h,
|
|
1057
|
+
value: c[l],
|
|
1058
1058
|
searcher: s
|
|
1059
1059
|
})
|
|
1060
1060
|
);
|
|
@@ -1073,19 +1073,19 @@ class C {
|
|
|
1073
1073
|
s.forEach(({ v: i, i: c, n: o }) => {
|
|
1074
1074
|
if (!y(i))
|
|
1075
1075
|
return;
|
|
1076
|
-
const { isMatch: a, score:
|
|
1076
|
+
const { isMatch: a, score: h, indices: l } = r.searchIn(i);
|
|
1077
1077
|
a && n.push({
|
|
1078
|
-
score:
|
|
1078
|
+
score: h,
|
|
1079
1079
|
key: e,
|
|
1080
1080
|
value: i,
|
|
1081
1081
|
idx: c,
|
|
1082
1082
|
norm: o,
|
|
1083
|
-
indices:
|
|
1083
|
+
indices: l
|
|
1084
1084
|
});
|
|
1085
1085
|
});
|
|
1086
1086
|
else {
|
|
1087
|
-
const { v: i, n: c } = s, { isMatch: o, score: a, indices:
|
|
1088
|
-
o && n.push({ score: a, key: e, value: i, norm: c, indices:
|
|
1087
|
+
const { v: i, n: c } = s, { isMatch: o, score: a, indices: h } = r.searchIn(i);
|
|
1088
|
+
o && n.push({ score: a, key: e, value: i, norm: c, indices: h });
|
|
1089
1089
|
}
|
|
1090
1090
|
return n;
|
|
1091
1091
|
}
|
|
@@ -1119,17 +1119,17 @@ const Vt = {
|
|
|
1119
1119
|
onChange: s,
|
|
1120
1120
|
transformBefore: r
|
|
1121
1121
|
}) => {
|
|
1122
|
-
const [n, i] =
|
|
1122
|
+
const [n, i] = Je({
|
|
1123
1123
|
onChange: s,
|
|
1124
1124
|
value: e,
|
|
1125
1125
|
initial: ""
|
|
1126
|
-
}), { setTransform: c, deleteTransform: o } =
|
|
1127
|
-
(
|
|
1128
|
-
i(
|
|
1126
|
+
}), { setTransform: c, deleteTransform: o } = le(), a = Ae(c, t, []), h = Qe(
|
|
1127
|
+
(l) => {
|
|
1128
|
+
i(l), l.length === 0 ? o("filter") : (r != null && (l = r(l)), a("filter", Ut({ term: l })));
|
|
1129
1129
|
},
|
|
1130
1130
|
[i, r]
|
|
1131
1131
|
);
|
|
1132
|
-
return { value: n, onChange:
|
|
1132
|
+
return { value: n, onChange: h };
|
|
1133
1133
|
}, Yt = ({
|
|
1134
1134
|
children: t = (s) => /* @__PURE__ */ Ye.jsx(Oe, { placeholder: "Filter", ...s }),
|
|
1135
1135
|
...e
|
|
@@ -1141,13 +1141,13 @@ const Vt = {
|
|
|
1141
1141
|
DataProvider: Ce,
|
|
1142
1142
|
Filter: Yt,
|
|
1143
1143
|
Hover: je,
|
|
1144
|
-
ItemFrame:
|
|
1144
|
+
ItemFrame: $e,
|
|
1145
1145
|
List: Ze,
|
|
1146
|
-
Search:
|
|
1146
|
+
Search: ve,
|
|
1147
1147
|
Selector: Ne,
|
|
1148
1148
|
selectValueIsZero: Fe,
|
|
1149
1149
|
useDataContext: Te,
|
|
1150
|
-
useDataUtilContext:
|
|
1150
|
+
useDataUtilContext: le,
|
|
1151
1151
|
useFilter: we,
|
|
1152
1152
|
useGetTransformedData: Pe,
|
|
1153
1153
|
useHoverContext: De,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-LvZi4Kvh.cjs"),c=require("react"),S=require("./Pack-C_SrDA3a.cjs"),a=require("./Toggle-DdnBJm8D.cjs"),o=require("./css-LxkguM_s.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(h,{index:t,level:r,divided:e,children:n},t))})},h=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,...C}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...C},s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},E=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},R=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:E,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=R;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const m=require("./Toggle-DdnBJm8D.cjs"),ke=require("./jsx-runtime-Cek9Ww4S.cjs"),ve=require("react"),he=require("./aggregator-LvZi4Kvh.cjs");require("./css-LxkguM_s.cjs");require("./Pack-C_SrDA3a.cjs");const $e=require("./List-DVMb5TAO.cjs"),W=Symbol(),ue=Symbol(),X=Symbol();let je=(t,e)=>new Proxy(t,e);const z=Object.getPrototypeOf,se=new WeakMap,J=t=>t&&(se.has(t)?se.get(t):z(t)===Object.prototype||z(t)===Array.prototype),re=t=>typeof t=="object"&&t!==null,ne=new WeakMap,fe=t=>t[X]||t,de=(t,e,s)=>{if(!J(t))return t;const r=fe(t),n=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let i=s&&s.get(r);return i&&i[1].f===n||(i=((c,o)=>{const a={f:o};let h=!1;const l=(d,g)=>{if(!h){let p=a.a.get(c);p||(p=new Set,a.a.set(c,p)),g&&p.has(W)||p.add(d)}},u={get:(d,g)=>g===X?c:(l(g),de(d[g],a.a,a.c)),has:(d,g)=>g===ue?(h=!0,a.a.delete(c),!0):(l(g),g in d),getOwnPropertyDescriptor:(d,g)=>(l(g,!0),Object.getOwnPropertyDescriptor(d,g)),ownKeys:d=>(l(W),Reflect.ownKeys(d))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,n),i[1].p=je(n?(c=>{let o=ne.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(z(c),a)}ne.set(c,o)}return o})(r):r,i[0]),s&&s.set(r,i)),i[1].a=e,i[1].c=s,i[1].p},Te=(t,e)=>{const s=Reflect.ownKeys(t),r=Reflect.ownKeys(e);return s.length!==r.length||s.some((n,i)=>n!==r[i])},ge=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!re(t)||!re(e))return!0;const n=s.get(fe(t));if(!n)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let i=null;for(const c of n){const o=c===W?Te(t,e):ge(t[c],e[c],s,r);if(o!==!0&&o!==!1||(i=o),i)break}return i===null&&(i=!0),r&&r.set(t,{n:e,g:i}),i},Fe=t=>!!J(t)&&ue in t,Z=t=>J(t)&&t[X]||null,H=t=>typeof t=="object"&&t!==null,pe=(t,e)=>{if(!H(t))return t;const s=Z(t);return s!==null?(Fe(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const i=pe(n,e);Object.is(i,n)||(t[r]=i)})),t)},F=(t,e,s)=>{if(!H(t)||!H(e))return;const r=s.get(Z(e)||e);r&&r.forEach(n=>{F(t[n],e[n],s)})},Ne=(t,e)=>{var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,i=[],c=new WeakMap,o=new WeakMap;return a=>{const h=Z(a)||a,l=c.get(h);if(l)return F(a,l.o,l.a),l.r;for(let M=0;M<n;M+=1){const y=i[(r+M)%n];if(!y)break;if(!ge(y.o,a,y.a,new WeakMap))return c.set(h,y),F(a,y.o,y.a),y.r}const u=new WeakMap,d=de(a,u,o),g=pe(t(d),new Set);F(a,a,u);const p={o:a,r:g,a:u};return r=(r-1+n)%n,i[r]=p,c.set(h,p),g}},me=(t,e)=>he.w.RUNTIME==="browser"?Ne(t,e):t;function I(t){return Array.isArray?Array.isArray(t):xe(t)==="[object Array]"}const De=1/0;function Pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-De?"-0":e}function Ke(t){return t==null?"":Pe(t)}function _(t){return typeof t=="string"}function Me(t){return typeof t=="number"}function We(t){return t===!0||t===!1||ze(t)&&xe(t)=="[object Boolean]"}function ye(t){return typeof t=="object"}function ze(t){return ye(t)&&t!==null}function x(t){return t!=null}function K(t){return!t.trim().length}function xe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const He="Incorrect 'index' type",Ue=t=>`Invalid value for key ${t}`,Ve=t=>`Pattern length exceeds max of ${t}.`,Be=t=>`Missing ${t} property in key`,Ge=t=>`Property 'weight' in key '${t}' must be a positive integer`,ie=Object.prototype.hasOwnProperty;class Ye{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=Se(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Se(t){let e=null,s=null,r=null,n=1,i=null;if(_(t)||I(t))r=t,e=ce(t),s=U(t);else{if(!ie.call(t,"name"))throw new Error(Be("name"));const c=t.name;if(r=c,ie.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Ge(c));e=ce(c),s=U(c),i=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:i}}function ce(t){return I(t)?t:t.split(".")}function U(t){return I(t)?t.join("."):t}function Qe(t,e){let s=[],r=!1;const n=(i,c,o)=>{if(x(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!x(h))return;if(o===c.length-1&&(_(h)||Me(h)||We(h)))s.push(Ke(h));else if(I(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)n(h[l],c,o+1)}else c.length&&n(h,c,o+1)}};return n(t,_(e)?e.split("."):e,0),r?s:s[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Je={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Ze={location:0,threshold:.6,distance:100},qe={useExtendedSearch:!1,getFn:Qe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Je,...Xe,...Ze,...qe};const et=/[^ ]+/g;function tt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const i=n.match(et).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(i,o),o},clear(){s.clear()}}}class q{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=tt(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();_(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!x(e)||K(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((n,i)=>{let c=n.getFn?n.getFn(e):this.getFn(e,n.path);if(x(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(x(l))if(_(l)&&!K(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else I(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}r.$[i]=o}else if(_(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};r.$[i]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=f.getFn,fieldNormWeight:r=f.fieldNormWeight}={}){const n=new q({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(Se)),n.setSources(e),n.create(),n}function st(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:r,records:n}=t,i=new q({getFn:e,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function T(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const o=Math.abs(r-s);return n?c+o/n:o?1:c}function rt(t=[],e=f.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=t.length;i<c;i+=1){let o=t[i];o&&r===-1?r=i:!o&&r!==-1&&(n=i-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&s.push([r,i-1]),s}const L=32;function nt(t,e,s,{location:r=f.location,distance:n=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:h=f.ignoreLocation}={}){if(e.length>L)throw new Error(Ve(L));const l=e.length,u=t.length,d=Math.max(0,Math.min(r,u));let g=i,p=d;const M=o>1||a,y=M?Array(u):[];let b;for(;(b=t.indexOf(e,p))>-1;){let S=T(e,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:h});if(g=Math.min(S,g),p=b+l,M){let w=0;for(;w<l;)y[b+w]=1,w+=1}}p=-1;let R=[],C=1,$=l+u;const Re=1<<l-1;for(let S=0;S<l;S+=1){let w=0,A=$;for(;w<A;)T(e,{errors:S,currentLocation:d+A,expectedLocation:d,distance:n,ignoreLocation:h})<=g?w=A:$=A,A=Math.floor(($-w)/2+w);$=A;let ee=Math.max(1,d-A+1),P=c?u:Math.min(d+A,u)+l,k=Array(P+2);k[P+1]=(1<<S)-1;for(let E=P;E>=ee;E-=1){let j=E-1,te=s[t.charAt(j)];if(M&&(y[j]=+!!te),k[E]=(k[E+1]<<1|1)&te,S&&(k[E]|=(R[E+1]|R[E])<<1|1|R[E+1]),k[E]&Re&&(C=T(e,{errors:S,currentLocation:j,expectedLocation:d,distance:n,ignoreLocation:h}),C<=g)){if(g=C,p=j,p<=d)break;ee=Math.max(1,2*d-p)}}if(T(e,{errors:S+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:h})>g)break;R=k}const D={isMatch:p>=0,score:Math.max(.001,C)};if(M){const S=rt(y,o);S.length?a&&(D.indices=S):D.isMatch=!1}return D}function it(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}class _e{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:it(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=L;if(g){const M=u-L;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:n,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:y})=>{const{isMatch:b,score:R,indices:C}=nt(e,p,M,{location:n+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});b&&(d=!0),u+=R,b&&C&&(l=[...l,...C])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(g.indices=l),g}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return oe(e,this.multiRegex)}static isSingleMatch(e){return oe(e,this.singleRegex)}search(){}}function oe(t,e){const s=t.match(e);return s?s[1]:null}class ct extends O{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class ot extends O{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class at extends O{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class lt extends O{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class ht extends O{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ut extends O{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class be extends O{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ie extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+i,n.push([r,s-1]);const c=!!n.length;return{isMatch:c,score:c?0:1,indices:n}}}const V=[ct,Ie,at,lt,ut,ht,ot,be],ae=V.length,ft=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dt="|";function gt(t,e={}){return t.split(dt).map(s=>{let r=s.trim().split(ft).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){const o=r[i];let a=!1,h=-1;for(;!a&&++h<ae;){const l=V[h];let u=l.isMultiMatch(o);u&&(n.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ae;){const l=V[h];let u=l.isSingleMatch(o);if(u){n.push(new l(u,e));break}}}return n})}const pt=new Set([be.type,Ie.type]);class mt{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:r=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:i=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:h=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=gt(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:y}=g.search(e);if(p){if(i+=1,o+=y,r){const b=g.constructor.type;pt.has(b)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let u={isMatch:!0,score:o/i};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const B=[];function Mt(...t){B.push(...t)}function G(t,e){for(let s=0,r=B.length;s<r;s+=1){let n=B[s];if(n.condition(t,e))return new n(t,e)}return new _e(t,e)}const N={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[N.AND]||t[N.OR]),yt=t=>!!t[Y.PATH],xt=t=>!I(t)&&ye(t)&&!Q(t),le=t=>({[N.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function we(t,e,{auto:s=!0}={}){const r=n=>{let i=Object.keys(n);const c=yt(n);if(!c&&i.length>1&&!Q(n))return r(le(n));if(xt(n)){const a=c?n[Y.PATH]:i[0],h=c?n[Y.PATTERN]:n[a];if(!_(h))throw new Error(Ue(a));const l={keyId:U(a),pattern:h};return s&&(l.searcher=G(h,e)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=n[a];I(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return Q(t)||(t=le(t)),r(t)}function St(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:i,score:c})=>{const o=n?n.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:i))}),s.score=r})}function Et(t,e){const s=t.matches;e.matches=[],x(s)&&s.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let c={indices:n,value:i};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function _t(t,e){e.score=t.score}function bt(t,e,{includeMatches:s=f.includeMatches,includeScore:r=f.includeScore}={}){const n=[];return s&&n.push(Et),r&&n.push(_t),t.map(i=>{const{idx:c}=i,o={item:e[c],refIndex:c};return n.length&&n.forEach(a=>{a(i,o)}),o})}class v{constructor(e,s={},r){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new Ye(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof q))throw new Error(He);this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=_(e)?_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(a,{ignoreFieldNorm:o}),i&&a.sort(c),Me(s)&&s>-1&&(a=a.slice(0,s)),bt(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=G(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&n.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),n}_searchLogical(e){const s=we(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,d=o.children.length;u<d;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===N.AND)return[]}return l},n=this._myIndex.records,i={},c=[];return n.forEach(({$:o,i:a})=>{if(x(o)){let h=r(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:c,i:o})=>{if(!x(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:e,value:s,searcher:r}){if(!x(s))return[];let n=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=r.searchIn(i);a&&n.push({score:h,key:e,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(i);o&&n.push({score:a,key:e,value:i,norm:c,indices:h})}return n}}v.version="7.0.0";v.createIndex=Ee;v.parseIndex=st;v.config=f;v.parseQuery=we;Mt(mt);const It={threshold:.3},Ae=t=>e=>{const s=new v(e,{keys:Object.keys(e[0]),...It,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},wt=Ae(),Oe=({term:t,searcher:e=wt})=>me(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),Ce=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,i]=he.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=m.useDataUtilContext(),a=m.useDebouncedCallback(c,t,[]),h=ve.useCallback(l=>{i(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Oe({term:l})))},[i,r]);return{value:n,onChange:h}},Le=({children:t=s=>ke.jsxRuntimeExports.jsx(m.Text$1,{placeholder:"Filter",...s}),...e})=>t(Ce(e)),At=Object.freeze(Object.defineProperty({__proto__:null,Column:m.Column,ColumnContext:m.ColumnContext,Core:m.Core,DataProvider:m.DataProvider,Filter:Le,Hover:m.Hover,ItemFrame:m.ItemFrame,List:$e.List,Search:m.Search,Selector:m.Selector,selectValueIsZero:m.selectValueIsZero,useDataContext:m.useDataContext,useDataUtilContext:m.useDataUtilContext,useFilter:Ce,useGetTransformedData:m.useGetTransformedData,useHoverContext:m.useHoverContext,useSearch:m.useSearch,useSelect:m.useSelect,useSelection:m.useSelection,useSelectionContext:m.useSelectionContext,useSelectionUtils:m.useSelectionUtils,useSetSourceData:m.useSetSourceData,useSourceData:m.useSourceData,useTransformedData:m.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Le;exports.createFilterTransform=Oe;exports.external=At;exports.fuseFilter=Ae;exports.proxyMemo=me;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Pack-
|
|
1
|
+
"use strict";const e=require("./Pack-C_SrDA3a.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
|