@synnaxlabs/pluto 0.42.0 → 0.42.3
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/{Center-CNcAEDgS.js → Center-D0JeI7Ta.js} +2 -2
- package/dist/{Center-Map6aflE.cjs → Center-DuI3XH-Q.cjs} +1 -1
- package/dist/{ContextMenu-fLU0wr9S.js → ContextMenu-BiNr7Gxv.js} +3 -3
- package/dist/{ContextMenu-DmRPxhnI.cjs → ContextMenu-HpMLd1Ht.cjs} +1 -1
- package/dist/{DateTime-CP3OmEGY.cjs → DateTime-BsjSfOY-.cjs} +1 -1
- package/dist/{DateTime-CWAcEwXO.js → DateTime-r6hocEmI.js} +2 -2
- package/dist/{Divider-BTLn5ucU.js → Divider-DqEkzRIY.js} +1 -1
- package/dist/{Divider-Dvb6dsgX.cjs → Divider-Dut8qPee.cjs} +2 -2
- package/dist/{Dropdown-CaGzfZRa.cjs → Dropdown-BSSe1E1e.cjs} +1 -1
- package/dist/{Dropdown-nw8kRSbl.js → Dropdown-BrFL1eSc.js} +38 -38
- package/dist/{Haul-B8zGWk0I.cjs → Haul-C6i2oI7z.cjs} +1 -1
- package/dist/{Haul-Cnuzk7Z-.js → Haul-CEFSvdy9.js} +1 -1
- package/dist/{Item-FmwC-twg.js → Item-C5SQraZM.js} +6 -6
- package/dist/{Item-BzrQqxRC.cjs → Item-DSBs9VLu.cjs} +1 -1
- package/dist/{Keyboard-BfvjkBgh.cjs → Keyboard-Ca7TAAHK.cjs} +1 -1
- package/dist/{Keyboard-Cevv7vrQ.js → Keyboard-Duo41pJL.js} +2 -2
- package/dist/{Link-DI7BZ5dL.cjs → Link-B9ZGvoBU.cjs} +1 -1
- package/dist/{Link-Dljdu4e9.js → Link-C9GeoB0w.js} +1 -1
- package/dist/{Pack-to0DG2iP.js → Pack-BozAEHBp.js} +2 -2
- package/dist/{Pack-lJqoOmHx.cjs → Pack-DeZUUdJM.cjs} +1 -1
- package/dist/{Provider-C_B463cg.js → Provider-B86QO9NT.js} +5 -5
- package/dist/{Provider-BlM1x1cF.cjs → Provider-Cw0mSr2D.cjs} +1 -1
- package/dist/{Space-C2oZDkE1.js → Space-CyTH97CN.js} +1 -1
- package/dist/{Space-DfcVsxz8.cjs → Space-DvalhzRj.cjs} +1 -1
- package/dist/{Text-BiYpGaEZ.js → Text-8ps3Uw4T.js} +3 -3
- package/dist/{Text-CWiPrDI1.js → Text-BR4FW9Hy.js} +12 -12
- package/dist/{Text-BjHlLKsp.cjs → Text-C8GBHl-F.cjs} +1 -1
- package/dist/{Text-ZJqK1cI3.cjs → Text-CMTkSEWx.cjs} +2 -2
- package/dist/{Text-DrIBbnml.cjs → Text-DkA06TeT.cjs} +1 -1
- package/dist/{Text-BXADoWYY.js → Text-sH_NOelc.js} +41 -41
- package/dist/{Toggle-CeUVv58o.js → Toggle-BRuUrO2N.js} +29 -29
- package/dist/{Toggle-CfwYy9fe.cjs → Toggle-C0lZDyeo.cjs} +1 -1
- package/dist/{Video-BZ1XTEez.js → Video-DWStbcmD.js} +1 -1
- package/dist/{Video-C7YoF37-.cjs → Video-DgjuFLiE.cjs} +1 -1
- package/dist/{WithIcon-DG7VJxsE.cjs → WithIcon-BgS5shNZ.cjs} +1 -1
- package/dist/{WithIcon-pBZ7H9Lq.js → WithIcon-BhR6nwRh.js} +3 -3
- 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-hg3QdDDt.cjs → css-9iEiTRNL.cjs} +8 -8
- package/dist/{css-B7c7_G5h.js → css-Cnb9DQMD.js} +612 -611
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/deep-BNa3STCp.cjs +1 -0
- package/dist/deep-P35D0Sz7.js +112 -0
- package/dist/{dimensions-DcjW7X3n.js → dimensions-B6qmnzv3.js} +1 -1
- package/dist/{dimensions-Cz-q0Mok.cjs → dimensions-By-vgVks.cjs} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-BOx6Xhwn.cjs → eraser-BkqFgBRY.cjs} +2 -2
- package/dist/{eraser-Bsb4kKS3.js → eraser-CK8SwEJa.js} +8 -8
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +7 -7
- package/dist/{external-CEfSeJMr.js → external-B1YsdhS4.js} +9 -9
- package/dist/{external-DeCeUbqe.js → external-B7NxSklQ.js} +6 -6
- package/dist/{external-CLTPcWrI.cjs → external-B8uaUKhb.cjs} +1 -1
- package/dist/{external-DDD_nc3x.js → external-BA_VOnV-.js} +41 -41
- package/dist/{external-Ck1rVwUu.js → external-BDkqwq72.js} +17 -17
- package/dist/{external-BdVuZd3H.cjs → external-BGBgNbe2.cjs} +1 -1
- package/dist/{external-1KJXZcr9.js → external-BOMdfX8_.js} +2 -2
- package/dist/{external-hgzjVlDR.js → external-Bl8q9UBF.js} +11 -11
- package/dist/{external-DgSaeiBz.js → external-BnK4UIFe.js} +3 -3
- package/dist/{external-Cfj1plcw.cjs → external-BwUa_5Vs.cjs} +1 -1
- package/dist/{external-DCcp3sQD.js → external-C0X4mXVG.js} +4 -4
- package/dist/{external-qwaFowDe.js → external-C7yPkamb.js} +5 -5
- package/dist/{external-Cni9ftkW.cjs → external-CTc1n-JC.cjs} +1 -1
- package/dist/{external-DCfs7IFi.cjs → external-CUgPP-JD.cjs} +1 -1
- package/dist/{external-C75Z9Zbn.cjs → external-CzTBFiv_.cjs} +1 -1
- package/dist/{external-BiBhgCdz.cjs → external-DGJ8YAe-.cjs} +1 -1
- package/dist/{external-DhfASB4W.cjs → external-DQwznOyH.cjs} +1 -1
- package/dist/{external-DNT-gmZx.cjs → external-DiLZ1dEk.cjs} +1 -1
- package/dist/{external-bkwgRzLc.js → external-DissGp_3.js} +7 -7
- package/dist/{external-BHHC7TQ_.cjs → external-DmryCcwg.cjs} +1 -1
- package/dist/{external-pUEPQrp_.cjs → external-Dq8-cbf3.cjs} +1 -1
- package/dist/{external-sUHGRdqd.js → external-_8qdWaAg.js} +2 -2
- package/dist/{external-CRNR1bD0.js → external-bSUra-q7.js} +4 -4
- package/dist/{external-BLEs2AYM.cjs → external-zbKPQ9ls.cjs} +2 -2
- package/dist/{font-Crn-D_ua.js → font-CjYcjBiv.js} +2 -2
- package/dist/{font-BFTKtIQk.cjs → font-XlUAG1-r.cjs} +1 -1
- package/dist/{fontString-DjnDxFrE.js → fontString-BN1kd1AP.js} +1 -1
- package/dist/{fontString-DQLaRHQV.cjs → fontString-Ddza50DF.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/{hooks-CTKCi-OE.cjs → hooks-B5aLaWzS.cjs} +1 -1
- package/dist/{hooks-CM9HWxYc.js → hooks-DjznxGgm.js} +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.js +513 -513
- 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/{provider-XPRFhwnl.cjs → provider-aWtsGnV8.cjs} +24 -24
- package/dist/{provider-BDFfcHVT.js → provider-r5Ly36FI.js} +1569 -1566
- package/dist/src/color/Provider.d.ts +5 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +2 -2
- package/dist/src/status/aether/types.d.ts +2 -2
- package/dist/src/table/cells/Cells.d.ts +6 -2
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +6 -2
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +12 -6
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +2 -2
- package/dist/src/telem/control/aether/indicator.d.ts +12 -4
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +10 -2
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +5 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +660 -132
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +478 -126
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +10 -2
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +9 -3
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +5 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +10 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +40 -8
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +15 -3
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +40 -8
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +10 -2
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +15 -3
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +5 -1
- package/dist/src/vis/value/use.d.ts.map +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-CX_coN92.cjs +1 -0
- package/dist/{units-a8CggrTe.js → units-Ct3Xl5nK.js} +1 -1
- package/dist/{useClickOutside-CPAEkvf8.cjs → useClickOutside-CSff8yb-.cjs} +1 -1
- package/dist/{useClickOutside-CKMnqdvH.js → useClickOutside-DDCP7Fh-.js} +24 -24
- package/dist/{useDebouncedCallback-Cyd6pZ59.js → useDebouncedCallback-BG4I7mbT.js} +1 -1
- package/dist/{useDebouncedCallback-DsKlBI86.cjs → useDebouncedCallback-DnwYZzjR.cjs} +1 -1
- package/dist/{useMemoCompare-B930TM0g.js → useMemoCompare-BViQehyd.js} +2 -2
- package/dist/{useMemoCompare-DprA41gC.cjs → useMemoCompare-C2X7Mzx8.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-Cvp93Pya.cjs → useVirtualCursorDragWebKit-DDmXE4RW.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-BrSOJpYY.js → useVirtualCursorDragWebKit-DTU2tUmp.js} +3 -3
- package/dist/{value-BdZLWVof.js → value-B6OlPXe1.js} +404 -404
- package/dist/value-Bq1w9UY8.cjs +57 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +5 -5
- package/dist/deep-B1etRzze.cjs +0 -1
- package/dist/deep-BytImVW-.js +0 -102
- package/dist/units-CKKNRQlP.cjs +0 -1
- package/dist/value-B7u8K1CW.cjs +0 -57
package/dist/css.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-9iEiTRNL.cjs"),t=require("./units-CX_coN92.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
|
package/dist/css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, n as t } from "./css-
|
|
2
|
-
import { c as s, u as n } from "./units-
|
|
1
|
+
import { C as e, n as t } from "./css-Cnb9DQMD.js";
|
|
2
|
+
import { c as s, u as n } from "./units-Ct3Xl5nK.js";
|
|
3
3
|
export {
|
|
4
4
|
e as CSS,
|
|
5
5
|
s as createHexOpacityVariants,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./css-9iEiTRNL.cjs"),j=r=>JSON.parse(JSON.stringify(r)),d=(r,...l)=>(l.forEach(i=>{let t=r;const s=i.split(".");s.forEach((n,e)=>{e===s.length-1?delete t[n]:n in t&&(t=t[n])})}),r),O=(r,l,i="")=>{const t={},s=(n,e,o)=>{if(typeof n!=typeof e||n===null||e===null){t[o]=[n,e];return}if(typeof n=="object"&&typeof e=="object")if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length){t[o]=[n,e];return}for(let f=0;f<n.length;f++)s(n[f],e[f],`${o}[${f}]`)}else new Set([...Object.keys(n),...Object.keys(e)]).forEach(f=>{s(n[f],e[f],o!==""?`${o}.${f}`:f)});else n!==e&&(t[o]=[n,e])};return s(r,l,i),t},p=(r,l)=>{const i=Array.isArray(r),t=Array.isArray(l);if(i!==t)return!1;if(i&&t){const e=r,o=l;if(e.length!==o.length)return!1;for(let f=0;f<e.length;f++)if(!p(e[f],o[f]))return!1;return!0}if(r==null||l==null||typeof r!="object"||typeof l!="object")return r===l;if("equals"in r)return r.equals(l);const s=Object.keys(r),n=Object.keys(l);if(s.length!==n.length)return!1;for(const e of s){const o=r[e],f=l[e];if(typeof o=="object"&&typeof f=="object"){if(!p(o,f))return!1}else if(o!==f)return!1}return!0},b=(r,l)=>{if(typeof r!="object"||r==null)return r===l;const i=Object.keys(r),t=Object.keys(l);if(t.length>i.length)return!1;for(const s of t){const n=r[s],e=l[s];if(typeof n=="object"&&typeof e=="object"){if(!b(n,e))return!1}else if(n!==e)return!1}return!0},h=(r,...l)=>{if(l.length===0)return r;const i=l.shift();if(a.o(r)&&a.o(i))for(const t in i)try{a.o(i[t])?(t in r||Object.assign(r,{[t]:{}}),h(r[t],i[t])):Object.assign(r,{[t]:i[t]})}catch(s){throw s instanceof TypeError?new TypeError(`.${t}: ${s.message}`):s}return h(r,...l)},A=(r,l,i)=>{const t=(s,n,e)=>{var o,f;if(((o=e.def)==null?void 0:o.type)==="union")return e.def.options.reduce((c,u)=>t(c,n,u),s);if(((f=e.def)==null?void 0:f.type)==="intersection"){const c=t(s,n,e.def.left);return t(c,n,e.def.right)}for(const c in n){const u=n[c],y=e==null?void 0:e.shape;if(y!=null&&y[c]){const g=y[c].safeParse(u);g.success&&(s[c]=g.data)}else typeof u=="object"&&!Array.isArray(u)&&u!==null&&e&&e.shape&&e.shape[c]&&(s[c]||(s[c]={}),t(s[c],u,e.shape[c]))}return s};return t({...r},l,i)},v=Object.freeze(Object.defineProperty({__proto__:null,copy:j,deleteD:d,difference:O,element:a.p,equal:p,get:a.c,has:a.g$1,override:h,overrideValidItems:A,partialEqual:b,pathsMatch:a.y,remove:a.h,set:a.f,transformPath:a.u},Symbol.toStringTag,{value:"Module"}));exports.x=v;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { u as j, f as d, h as O, y as A, a as m, c as v, p as $, o as y } from "./css-Cnb9DQMD.js";
|
|
2
|
+
const k = (r) => JSON.parse(JSON.stringify(r)), E = (r, ...l) => (l.forEach((o) => {
|
|
3
|
+
let t = r;
|
|
4
|
+
const s = o.split(".");
|
|
5
|
+
s.forEach((n, e) => {
|
|
6
|
+
e === s.length - 1 ? delete t[n] : n in t && (t = t[n]);
|
|
7
|
+
});
|
|
8
|
+
}), r), S = (r, l, o = "") => {
|
|
9
|
+
const t = {}, s = (n, e, i) => {
|
|
10
|
+
if (typeof n != typeof e || n === null || e === null) {
|
|
11
|
+
t[i] = [n, e];
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (typeof n == "object" && typeof e == "object")
|
|
15
|
+
if (Array.isArray(n) && Array.isArray(e)) {
|
|
16
|
+
if (n.length !== e.length) {
|
|
17
|
+
t[i] = [n, e];
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
for (let f = 0; f < n.length; f++) s(n[f], e[f], `${i}[${f}]`);
|
|
21
|
+
} else
|
|
22
|
+
(/* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])).forEach((f) => {
|
|
23
|
+
s(n[f], e[f], i !== "" ? `${i}.${f}` : f);
|
|
24
|
+
});
|
|
25
|
+
else n !== e && (t[i] = [n, e]);
|
|
26
|
+
};
|
|
27
|
+
return s(r, l, o), t;
|
|
28
|
+
}, p = (r, l) => {
|
|
29
|
+
const o = Array.isArray(r), t = Array.isArray(l);
|
|
30
|
+
if (o !== t) return !1;
|
|
31
|
+
if (o && t) {
|
|
32
|
+
const e = r, i = l;
|
|
33
|
+
if (e.length !== i.length) return !1;
|
|
34
|
+
for (let f = 0; f < e.length; f++) if (!p(e[f], i[f])) return !1;
|
|
35
|
+
return !0;
|
|
36
|
+
}
|
|
37
|
+
if (r == null || l == null || typeof r != "object" || typeof l != "object")
|
|
38
|
+
return r === l;
|
|
39
|
+
if ("equals" in r) return r.equals(l);
|
|
40
|
+
const s = Object.keys(r), n = Object.keys(l);
|
|
41
|
+
if (s.length !== n.length) return !1;
|
|
42
|
+
for (const e of s) {
|
|
43
|
+
const i = r[e], f = l[e];
|
|
44
|
+
if (typeof i == "object" && typeof f == "object") {
|
|
45
|
+
if (!p(i, f)) return !1;
|
|
46
|
+
} else if (i !== f) return !1;
|
|
47
|
+
}
|
|
48
|
+
return !0;
|
|
49
|
+
}, b = (r, l) => {
|
|
50
|
+
if (typeof r != "object" || r == null) return r === l;
|
|
51
|
+
const o = Object.keys(r), t = Object.keys(l);
|
|
52
|
+
if (t.length > o.length) return !1;
|
|
53
|
+
for (const s of t) {
|
|
54
|
+
const n = r[s], e = l[s];
|
|
55
|
+
if (typeof n == "object" && typeof e == "object") {
|
|
56
|
+
if (!b(n, e)) return !1;
|
|
57
|
+
} else if (n !== e) return !1;
|
|
58
|
+
}
|
|
59
|
+
return !0;
|
|
60
|
+
}, h = (r, ...l) => {
|
|
61
|
+
if (l.length === 0) return r;
|
|
62
|
+
const o = l.shift();
|
|
63
|
+
if (y(r) && y(o))
|
|
64
|
+
for (const t in o)
|
|
65
|
+
try {
|
|
66
|
+
y(o[t]) ? (t in r || Object.assign(r, { [t]: {} }), h(r[t], o[t])) : Object.assign(r, { [t]: o[t] });
|
|
67
|
+
} catch (s) {
|
|
68
|
+
throw s instanceof TypeError ? new TypeError(`.${t}: ${s.message}`) : s;
|
|
69
|
+
}
|
|
70
|
+
return h(r, ...l);
|
|
71
|
+
}, _ = (r, l, o) => {
|
|
72
|
+
const t = (s, n, e) => {
|
|
73
|
+
var i, f;
|
|
74
|
+
if (((i = e.def) == null ? void 0 : i.type) === "union")
|
|
75
|
+
return e.def.options.reduce(
|
|
76
|
+
(a, c) => t(a, n, c),
|
|
77
|
+
s
|
|
78
|
+
);
|
|
79
|
+
if (((f = e.def) == null ? void 0 : f.type) === "intersection") {
|
|
80
|
+
const a = t(s, n, e.def.left);
|
|
81
|
+
return t(a, n, e.def.right);
|
|
82
|
+
}
|
|
83
|
+
for (const a in n) {
|
|
84
|
+
const c = n[a], u = e == null ? void 0 : e.shape;
|
|
85
|
+
if (u != null && u[a]) {
|
|
86
|
+
const g = u[a].safeParse(c);
|
|
87
|
+
g.success && (s[a] = g.data);
|
|
88
|
+
} else typeof c == "object" && !Array.isArray(c) && c !== null && e && e.shape && e.shape[a] && (s[a] || (s[a] = {}), t(s[a], c, e.shape[a]));
|
|
89
|
+
}
|
|
90
|
+
return s;
|
|
91
|
+
};
|
|
92
|
+
return t({ ...r }, l, o);
|
|
93
|
+
}, w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
94
|
+
__proto__: null,
|
|
95
|
+
copy: k,
|
|
96
|
+
deleteD: E,
|
|
97
|
+
difference: S,
|
|
98
|
+
element: $,
|
|
99
|
+
equal: p,
|
|
100
|
+
get: v,
|
|
101
|
+
has: m,
|
|
102
|
+
override: h,
|
|
103
|
+
overrideValidItems: _,
|
|
104
|
+
partialEqual: b,
|
|
105
|
+
pathsMatch: A,
|
|
106
|
+
remove: O,
|
|
107
|
+
set: d,
|
|
108
|
+
transformPath: j
|
|
109
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
110
|
+
export {
|
|
111
|
+
w as x
|
|
112
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./css-
|
|
1
|
+
"use strict";const i=require("./css-9iEiTRNL.cjs");let e=null;const u=()=>(e??(e=document.createElement("canvas")),e),c=(t,a,n)=>{if(i.S.RUNTIME==="node")return{width:0,height:0};n??(n=u().getContext("2d")),n.font=a;const o=n.measureText(t);return s(o)},s=t=>({width:Math.trunc(Math.abs(t.actualBoundingBoxLeft)+Math.abs(t.actualBoundingBoxRight)),height:Math.trunc(Math.abs(t.actualBoundingBoxAscent)+Math.abs(t.actualBoundingBoxDescent))});exports.dimensions=c;exports.dimensionsFromMetrics=s;
|
package/dist/dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Dropdown-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Dropdown-BSSe1E1e.cjs");exports.Dropdown=o.Dropdown;
|
package/dist/dropdown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty;var K=(o,t,e)=>t in o?V(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var h=(o,t,e)=>K(o,typeof t!="symbol"?t+"":t,e);const n=require("./css-hg3QdDDt.cjs"),m=require("zod"),f=require("./provider-XPRFhwnl.cjs"),k=require("./dimensions-Cz-q0Mok.cjs"),F=m.z.object({include:m.z.string().array().optional(),exclude:m.z.string().array().optional(),level:m.z.enum(f.g.LOG_LEVELS).optional().default("info")}),A="alamos-provider";class S extends f.Composite{constructor(){super(...arguments);h(this,"schema",F)}afterUpdate(e){if(e.getOptional(A)!=null)return;const i=[],{include:r,exclude:a,level:c}=this.state;(r!=null||a!=null)&&i.push(f.g.logLevelKeyFiler({include:r,exclude:a})),c!=null&&i.push(f.g.logThresholdFilter(c)),i.length===0&&i.push(()=>!1),this.internal.ins=new f.g.Instrumentation({key:"aether",logger:new f.g.Logger({filters:i})}),e.set(A,this.internal.ins)}}h(S,"TYPE","alamos.Provider");const q=(o,t)=>{const e=o.get(A);if(e==null)throw new Error("No instrumentation provider");return t==null?e:e.child(t)},Z={[S.TYPE]:S},C=(o,t)=>n.$t.construct(n.$t.left(o)-t.x,n.$t.top(o)-t.y,n.$t.width(o)+t.x*2,n.$t.height(o)+t.y*2);class T{constructor(t,e,s,i=n.b.XY.IDENTITY){h(this,"scale_");h(this,"wrapped");h(this,"atlasRegistry");h(this,"cachedFont",null);h(this,"cachedFillStyle",null);h(this,"cachedStrokeStyle",null);h(this,"cachedLineWidth",null);h(this,"cachedGlobalAlpha",null);h(this,"cachedTextAlign",null);h(this,"cachedTextBaseline",null);h(this,"cachedLineCap",null);h(this,"cachedLineJoin",null);h(this,"cachedMiterLimit",null);h(this,"dpr");this.wrapped=t,this.scale_=i,this.atlasRegistry=e,this.dpr=s}get fontStretch(){return this.wrapped.fontStretch}set fontStretch(t){this.wrapped.fontStretch=t}get fontVariantCaps(){return this.wrapped.fontVariantCaps}set fontVariantCaps(t){this.wrapped.fontVariantCaps=t}isContextLost(){return this.wrapped.isContextLost()}get wordSpacing(){return this.wrapped.wordSpacing}set wordSpacing(t){this.wrapped.wordSpacing=t}get letterSpacing(){return this.wrapped.letterSpacing}set letterSpacing(t){this.wrapped.letterSpacing=t}get textRendering(){return this.wrapped.textRendering}set textRendering(t){this.wrapped.textRendering=t}reset(){this.wrapped.reset()}applyScale(t){return new T(this,this.atlasRegistry,this.dpr,t)}get canvas(){return this.wrapped.canvas}get miterLimit(){return this.cachedMiterLimit??this.wrapped.miterLimit}set miterLimit(t){const e=this.scale_.x.dim(t);e!==this.cachedMiterLimit&&(this.cachedMiterLimit=e,this.wrapped.miterLimit=e)}get globalAlpha(){return this.cachedGlobalAlpha??this.wrapped.globalAlpha}set globalAlpha(t){t!==this.cachedGlobalAlpha&&(this.cachedGlobalAlpha=t,this.wrapped.globalAlpha=t)}get globalCompositeOperation(){return this.wrapped.globalCompositeOperation}set globalCompositeOperation(t){this.wrapped.globalCompositeOperation=t}get fillStyle(){return this.cachedFillStyle??this.wrapped.fillStyle}set fillStyle(t){t!==this.cachedFillStyle&&(this.cachedFillStyle=t,this.wrapped.fillStyle=t)}get strokeStyle(){return this.cachedStrokeStyle??this.wrapped.strokeStyle}set strokeStyle(t){t!==this.cachedStrokeStyle&&(this.cachedStrokeStyle=t,this.wrapped.strokeStyle=t)}drawImage(t,e,s,i,r,a,c,p,d){this.wrapped.drawImage(t,e,s,i,r,a!=null?this.scale_.x.pos(a):a,c!=null?this.scale_.y.pos(c):c,p!=null?this.scale_.x.dim(p):p,d!=null?this.scale_.y.dim(d):d)}beginPath(){this.wrapped.beginPath()}clip(t,e){this.wrapped.clip(t,e)}fill(t,e){if(t==null)return this.wrapped.fill();this.wrapped.fill(t,e)}isPointInPath(t,e,s,i){return this.wrapped.isPointInPath(t,e,s,i)}isPointInStroke(t,e,s){return this.wrapped.isPointInStroke(t,e,s)}stroke(t){if(t==null)return this.wrapped.stroke();this.wrapped.stroke(t)}createConicGradient(t,e,s){return this.wrapped.createConicGradient(t,e,s)}createLinearGradient(t,e,s,i){return this.wrapped.createLinearGradient(t,e,s,i)}createPattern(t,e){return this.wrapped.createPattern(t,e)}createRadialGradient(t,e,s,i,r,a){return this.wrapped.createRadialGradient(t,e,s,i,r,a)}get filter(){return this.wrapped.filter}set filter(t){this.wrapped.filter=t}createImageData(t,e,s){return this.wrapped.createImageData(t,e,s)}getImageData(t,e,s,i,r){return this.wrapped.getImageData(t,e,s,i,r)}putImageData(t,e,s,i,r,a,c){this.wrapped.putImageData(t,e,s,i,r,a,c)}get imageSmoothingEnabled(){return this.wrapped.imageSmoothingEnabled}set imageSmoothingEnabled(t){this.wrapped.imageSmoothingEnabled=t}get imageSmoothingQuality(){return this.wrapped.imageSmoothingQuality}set imageSmoothingQuality(t){this.wrapped.imageSmoothingQuality=t}arc(t,e,s,i,r,a){this.wrapped.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,a)}arcTo(t,e,s,i,r){this.wrapped.arcTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.dim(r))}bezierCurveTo(t,e,s,i,r,a){this.wrapped.bezierCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.pos(r),this.scale_.y.pos(a))}closePath(){this.wrapped.closePath()}ellipse(t,e,s,i,r,a,c,p){this.wrapped.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,a,c,p)}lineTo(t,e){this.wrapped.lineTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}moveTo(t,e){this.wrapped.moveTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}quadraticCurveTo(t,e,s,i){this.wrapped.quadraticCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i))}rect(t,e,s,i){this.wrapped.rect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}roundRect(t,e,s,i,r){this.wrapped.roundRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),typeof r=="number"?this.scale_.x.dim(r):r)}get lineCap(){return this.cachedLineCap??this.wrapped.lineCap}set lineCap(t){t!==this.cachedLineCap&&(this.cachedLineCap=t,this.wrapped.lineCap=t)}get lineDashOffset(){return this.wrapped.lineDashOffset}set lineDashOffset(t){this.wrapped.lineDashOffset=this.scale_.x.dim(t)}get lineJoin(){return this.cachedLineJoin??this.wrapped.lineJoin}set lineJoin(t){t!==this.cachedLineJoin&&(this.cachedLineJoin=t,this.wrapped.lineJoin=t)}get lineWidth(){return this.cachedLineWidth??this.wrapped.lineWidth}set lineWidth(t){const e=this.scale_.x.dim(t);e!==this.cachedLineWidth&&(this.cachedLineWidth=e,this.wrapped.lineWidth=e)}getLineDash(){return this.wrapped.getLineDash()}setLineDash(t){const e=Array.from(t).map(s=>this.scale_.x.dim(s));this.wrapped.setLineDash(e)}clearRect(t,e,s,i){this.wrapped.clearRect(t,e,s,i)}fillRect(t,e,s,i){this.wrapped.fillRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}strokeRect(t,e,s,i){this.wrapped.strokeRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}get shadowBlur(){return this.wrapped.shadowBlur}set shadowBlur(t){this.wrapped.shadowBlur=t}get shadowColor(){return this.wrapped.shadowColor}set shadowColor(t){this.wrapped.shadowColor=t}get shadowOffsetX(){return this.wrapped.shadowOffsetX}set shadowOffsetX(t){this.wrapped.shadowOffsetX=t}get shadowOffsetY(){return this.wrapped.shadowOffsetY}restore(){this.cachedFillStyle=null,this.cachedStrokeStyle=null,this.cachedLineWidth=null,this.cachedGlobalAlpha=null,this.cachedTextAlign=null,this.cachedTextBaseline=null,this.cachedLineCap=null,this.cachedLineJoin=null,this.cachedMiterLimit=null,this.cachedFont=null,this.wrapped.restore()}save(){this.wrapped.save()}fillText(t,e,s,i,r={}){const{useAtlas:a}=r;if(a==!0){this.atlasRegistry.get({font:this.font,textColor:this.fillStyle,dpr:this.dpr}).fillText(this,t,e,s);return}this.wrapped.fillText(t,this.scale_.x.pos(e),this.scale_.y.pos(s),i!=null?this.scale_.x.dim(i):void 0)}atlasMeasureText(t){return this.atlasRegistry.get({font:this.font,textColor:this.fillStyle,dpr:this.dpr}).measureText(t)}measureText(t){return this.wrapped.measureText(t)}textDimensions(t,e={}){const{useAtlas:s}=e;let i;return s?i=this.atlasMeasureText(t):i=k.dimensionsFromMetrics(this.measureText(t)),i}strokeText(t,e,s,i){this.wrapped.strokeText(t,this.scale_.x.pos(e),this.scale_.y.pos(s),i!=null?this.scale_.x.dim(i):void 0)}get direction(){return this.wrapped.direction}set direction(t){this.wrapped.direction=t}get font(){return this.cachedFont!=null?this.cachedFont:this.wrapped.font}set font(t){t!==this.cachedFont&&(this.cachedFont=t,this.wrapped.font=this.cachedFont)}get fontKerning(){return this.wrapped.fontKerning}set fontKerning(t){this.wrapped.fontKerning=t}get textAlign(){return this.cachedTextAlign??this.wrapped.textAlign}set textAlign(t){t!==this.cachedTextAlign&&(this.cachedTextAlign=t,this.wrapped.textAlign=t)}get textBaseline(){return this.cachedTextBaseline??this.wrapped.textBaseline}set textBaseline(t){t!==this.cachedTextBaseline&&(this.cachedTextBaseline=t,this.wrapped.textBaseline=t)}getTransform(){return this.wrapped.getTransform()}resetTransform(){this.wrapped.resetTransform()}rotate(t){this.wrapped.rotate(t)}scale(t,e){this.wrapped.scale(t,e),this.dpr=t}scissor(t,e=n.J.ZERO){const s=new H(this.scale_);return t=C(t,e),s.rect(...n.J.couple(n.$t.topLeft(t)),...n._.couple(n.$t.dims(t))),this.save(),this.clip(s.getPath()),()=>this.restore()}setTransform(t,e,s,i,r,a){this.wrapped.setTransform(t,e,s,i,r,a)}transform(t,e,s,i,r,a){this.wrapped.transform(t,e,s,i,r,a)}translate(t,e){this.wrapped.translate(t,e)}}class H{constructor(t=n.b.XY.IDENTITY,e){h(this,"scale_");h(this,"path");this.scale_=t,e instanceof Path2D||typeof e=="string"?this.path=new Path2D(e):this.path=new Path2D}addPath(t,e){this.path.addPath(t,e)}arc(t,e,s,i,r,a){this.path.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,a)}arcTo(t,e,s,i,r){this.path.arcTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.dim(r))}bezierCurveTo(t,e,s,i,r,a){this.path.bezierCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.pos(r),this.scale_.y.pos(a))}closePath(){this.path.closePath()}ellipse(t,e,s,i,r,a,c,p){this.path.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,a,c,p)}lineTo(t,e){this.path.lineTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}moveTo(t,e){this.path.moveTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}quadraticCurveTo(t,e,s,i){this.path.quadraticCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i))}rect(t,e,s,i){this.path.rect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}roundRect(t,e,s,i,r){const a=this.scaleRadii(r);this.path.roundRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),a)}scaleRadii(t){return t==null?t:typeof t=="number"?this.scale_.x.dim(t):Array.isArray(t)?t.map(e=>this.scaleRadius(e)):this.scaleRadius(t)}scaleRadius(t){return typeof t=="number"?this.scale_.x.dim(t):{x:this.scale_.x.dim(t.x??0),y:this.scale_.y.dim(t.y??0)}}getPath(){return this.path}}const Q=`precision mediump float;
|
|
1
|
+
"use strict";var V=Object.defineProperty;var K=(o,t,e)=>t in o?V(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var h=(o,t,e)=>K(o,typeof t!="symbol"?t+"":t,e);const n=require("./css-9iEiTRNL.cjs"),m=require("zod"),f=require("./provider-aWtsGnV8.cjs"),k=require("./dimensions-By-vgVks.cjs"),F=m.z.object({include:m.z.string().array().optional(),exclude:m.z.string().array().optional(),level:m.z.enum(f.g.LOG_LEVELS).optional().default("info")}),A="alamos-provider";class S extends f.Composite{constructor(){super(...arguments);h(this,"schema",F)}afterUpdate(e){if(e.getOptional(A)!=null)return;const i=[],{include:r,exclude:a,level:c}=this.state;(r!=null||a!=null)&&i.push(f.g.logLevelKeyFiler({include:r,exclude:a})),c!=null&&i.push(f.g.logThresholdFilter(c)),i.length===0&&i.push(()=>!1),this.internal.ins=new f.g.Instrumentation({key:"aether",logger:new f.g.Logger({filters:i})}),e.set(A,this.internal.ins)}}h(S,"TYPE","alamos.Provider");const q=(o,t)=>{const e=o.get(A);if(e==null)throw new Error("No instrumentation provider");return t==null?e:e.child(t)},Z={[S.TYPE]:S},C=(o,t)=>n.$t.construct(n.$t.left(o)-t.x,n.$t.top(o)-t.y,n.$t.width(o)+t.x*2,n.$t.height(o)+t.y*2);class T{constructor(t,e,s,i=n.b.XY.IDENTITY){h(this,"scale_");h(this,"wrapped");h(this,"atlasRegistry");h(this,"cachedFont",null);h(this,"cachedFillStyle",null);h(this,"cachedStrokeStyle",null);h(this,"cachedLineWidth",null);h(this,"cachedGlobalAlpha",null);h(this,"cachedTextAlign",null);h(this,"cachedTextBaseline",null);h(this,"cachedLineCap",null);h(this,"cachedLineJoin",null);h(this,"cachedMiterLimit",null);h(this,"dpr");this.wrapped=t,this.scale_=i,this.atlasRegistry=e,this.dpr=s}get fontStretch(){return this.wrapped.fontStretch}set fontStretch(t){this.wrapped.fontStretch=t}get fontVariantCaps(){return this.wrapped.fontVariantCaps}set fontVariantCaps(t){this.wrapped.fontVariantCaps=t}isContextLost(){return this.wrapped.isContextLost()}get wordSpacing(){return this.wrapped.wordSpacing}set wordSpacing(t){this.wrapped.wordSpacing=t}get letterSpacing(){return this.wrapped.letterSpacing}set letterSpacing(t){this.wrapped.letterSpacing=t}get textRendering(){return this.wrapped.textRendering}set textRendering(t){this.wrapped.textRendering=t}reset(){this.wrapped.reset()}applyScale(t){return new T(this,this.atlasRegistry,this.dpr,t)}get canvas(){return this.wrapped.canvas}get miterLimit(){return this.cachedMiterLimit??this.wrapped.miterLimit}set miterLimit(t){const e=this.scale_.x.dim(t);e!==this.cachedMiterLimit&&(this.cachedMiterLimit=e,this.wrapped.miterLimit=e)}get globalAlpha(){return this.cachedGlobalAlpha??this.wrapped.globalAlpha}set globalAlpha(t){t!==this.cachedGlobalAlpha&&(this.cachedGlobalAlpha=t,this.wrapped.globalAlpha=t)}get globalCompositeOperation(){return this.wrapped.globalCompositeOperation}set globalCompositeOperation(t){this.wrapped.globalCompositeOperation=t}get fillStyle(){return this.cachedFillStyle??this.wrapped.fillStyle}set fillStyle(t){t!==this.cachedFillStyle&&(this.cachedFillStyle=t,this.wrapped.fillStyle=t)}get strokeStyle(){return this.cachedStrokeStyle??this.wrapped.strokeStyle}set strokeStyle(t){t!==this.cachedStrokeStyle&&(this.cachedStrokeStyle=t,this.wrapped.strokeStyle=t)}drawImage(t,e,s,i,r,a,c,p,d){this.wrapped.drawImage(t,e,s,i,r,a!=null?this.scale_.x.pos(a):a,c!=null?this.scale_.y.pos(c):c,p!=null?this.scale_.x.dim(p):p,d!=null?this.scale_.y.dim(d):d)}beginPath(){this.wrapped.beginPath()}clip(t,e){this.wrapped.clip(t,e)}fill(t,e){if(t==null)return this.wrapped.fill();this.wrapped.fill(t,e)}isPointInPath(t,e,s,i){return this.wrapped.isPointInPath(t,e,s,i)}isPointInStroke(t,e,s){return this.wrapped.isPointInStroke(t,e,s)}stroke(t){if(t==null)return this.wrapped.stroke();this.wrapped.stroke(t)}createConicGradient(t,e,s){return this.wrapped.createConicGradient(t,e,s)}createLinearGradient(t,e,s,i){return this.wrapped.createLinearGradient(t,e,s,i)}createPattern(t,e){return this.wrapped.createPattern(t,e)}createRadialGradient(t,e,s,i,r,a){return this.wrapped.createRadialGradient(t,e,s,i,r,a)}get filter(){return this.wrapped.filter}set filter(t){this.wrapped.filter=t}createImageData(t,e,s){return this.wrapped.createImageData(t,e,s)}getImageData(t,e,s,i,r){return this.wrapped.getImageData(t,e,s,i,r)}putImageData(t,e,s,i,r,a,c){this.wrapped.putImageData(t,e,s,i,r,a,c)}get imageSmoothingEnabled(){return this.wrapped.imageSmoothingEnabled}set imageSmoothingEnabled(t){this.wrapped.imageSmoothingEnabled=t}get imageSmoothingQuality(){return this.wrapped.imageSmoothingQuality}set imageSmoothingQuality(t){this.wrapped.imageSmoothingQuality=t}arc(t,e,s,i,r,a){this.wrapped.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,a)}arcTo(t,e,s,i,r){this.wrapped.arcTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.dim(r))}bezierCurveTo(t,e,s,i,r,a){this.wrapped.bezierCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.pos(r),this.scale_.y.pos(a))}closePath(){this.wrapped.closePath()}ellipse(t,e,s,i,r,a,c,p){this.wrapped.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,a,c,p)}lineTo(t,e){this.wrapped.lineTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}moveTo(t,e){this.wrapped.moveTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}quadraticCurveTo(t,e,s,i){this.wrapped.quadraticCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i))}rect(t,e,s,i){this.wrapped.rect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}roundRect(t,e,s,i,r){this.wrapped.roundRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),typeof r=="number"?this.scale_.x.dim(r):r)}get lineCap(){return this.cachedLineCap??this.wrapped.lineCap}set lineCap(t){t!==this.cachedLineCap&&(this.cachedLineCap=t,this.wrapped.lineCap=t)}get lineDashOffset(){return this.wrapped.lineDashOffset}set lineDashOffset(t){this.wrapped.lineDashOffset=this.scale_.x.dim(t)}get lineJoin(){return this.cachedLineJoin??this.wrapped.lineJoin}set lineJoin(t){t!==this.cachedLineJoin&&(this.cachedLineJoin=t,this.wrapped.lineJoin=t)}get lineWidth(){return this.cachedLineWidth??this.wrapped.lineWidth}set lineWidth(t){const e=this.scale_.x.dim(t);e!==this.cachedLineWidth&&(this.cachedLineWidth=e,this.wrapped.lineWidth=e)}getLineDash(){return this.wrapped.getLineDash()}setLineDash(t){const e=Array.from(t).map(s=>this.scale_.x.dim(s));this.wrapped.setLineDash(e)}clearRect(t,e,s,i){this.wrapped.clearRect(t,e,s,i)}fillRect(t,e,s,i){this.wrapped.fillRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}strokeRect(t,e,s,i){this.wrapped.strokeRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}get shadowBlur(){return this.wrapped.shadowBlur}set shadowBlur(t){this.wrapped.shadowBlur=t}get shadowColor(){return this.wrapped.shadowColor}set shadowColor(t){this.wrapped.shadowColor=t}get shadowOffsetX(){return this.wrapped.shadowOffsetX}set shadowOffsetX(t){this.wrapped.shadowOffsetX=t}get shadowOffsetY(){return this.wrapped.shadowOffsetY}restore(){this.cachedFillStyle=null,this.cachedStrokeStyle=null,this.cachedLineWidth=null,this.cachedGlobalAlpha=null,this.cachedTextAlign=null,this.cachedTextBaseline=null,this.cachedLineCap=null,this.cachedLineJoin=null,this.cachedMiterLimit=null,this.cachedFont=null,this.wrapped.restore()}save(){this.wrapped.save()}fillText(t,e,s,i,r={}){const{useAtlas:a}=r;if(a==!0){this.atlasRegistry.get({font:this.font,textColor:this.fillStyle,dpr:this.dpr}).fillText(this,t,e,s);return}this.wrapped.fillText(t,this.scale_.x.pos(e),this.scale_.y.pos(s),i!=null?this.scale_.x.dim(i):void 0)}atlasMeasureText(t){return this.atlasRegistry.get({font:this.font,textColor:this.fillStyle,dpr:this.dpr}).measureText(t)}measureText(t){return this.wrapped.measureText(t)}textDimensions(t,e={}){const{useAtlas:s}=e;let i;return s?i=this.atlasMeasureText(t):i=k.dimensionsFromMetrics(this.measureText(t)),i}strokeText(t,e,s,i){this.wrapped.strokeText(t,this.scale_.x.pos(e),this.scale_.y.pos(s),i!=null?this.scale_.x.dim(i):void 0)}get direction(){return this.wrapped.direction}set direction(t){this.wrapped.direction=t}get font(){return this.cachedFont!=null?this.cachedFont:this.wrapped.font}set font(t){t!==this.cachedFont&&(this.cachedFont=t,this.wrapped.font=this.cachedFont)}get fontKerning(){return this.wrapped.fontKerning}set fontKerning(t){this.wrapped.fontKerning=t}get textAlign(){return this.cachedTextAlign??this.wrapped.textAlign}set textAlign(t){t!==this.cachedTextAlign&&(this.cachedTextAlign=t,this.wrapped.textAlign=t)}get textBaseline(){return this.cachedTextBaseline??this.wrapped.textBaseline}set textBaseline(t){t!==this.cachedTextBaseline&&(this.cachedTextBaseline=t,this.wrapped.textBaseline=t)}getTransform(){return this.wrapped.getTransform()}resetTransform(){this.wrapped.resetTransform()}rotate(t){this.wrapped.rotate(t)}scale(t,e){this.wrapped.scale(t,e),this.dpr=t}scissor(t,e=n.J.ZERO){const s=new H(this.scale_);return t=C(t,e),s.rect(...n.J.couple(n.$t.topLeft(t)),...n._.couple(n.$t.dims(t))),this.save(),this.clip(s.getPath()),()=>this.restore()}setTransform(t,e,s,i,r,a){this.wrapped.setTransform(t,e,s,i,r,a)}transform(t,e,s,i,r,a){this.wrapped.transform(t,e,s,i,r,a)}translate(t,e){this.wrapped.translate(t,e)}}class H{constructor(t=n.b.XY.IDENTITY,e){h(this,"scale_");h(this,"path");this.scale_=t,e instanceof Path2D||typeof e=="string"?this.path=new Path2D(e):this.path=new Path2D}addPath(t,e){this.path.addPath(t,e)}arc(t,e,s,i,r,a){this.path.arc(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),i,r,a)}arcTo(t,e,s,i,r){this.path.arcTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.dim(r))}bezierCurveTo(t,e,s,i,r,a){this.path.bezierCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i),this.scale_.x.pos(r),this.scale_.y.pos(a))}closePath(){this.path.closePath()}ellipse(t,e,s,i,r,a,c,p){this.path.ellipse(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),r,a,c,p)}lineTo(t,e){this.path.lineTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}moveTo(t,e){this.path.moveTo(this.scale_.x.pos(t),this.scale_.y.pos(e))}quadraticCurveTo(t,e,s,i){this.path.quadraticCurveTo(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.pos(s),this.scale_.y.pos(i))}rect(t,e,s,i){this.path.rect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i))}roundRect(t,e,s,i,r){const a=this.scaleRadii(r);this.path.roundRect(this.scale_.x.pos(t),this.scale_.y.pos(e),this.scale_.x.dim(s),this.scale_.y.dim(i),a)}scaleRadii(t){return t==null?t:typeof t=="number"?this.scale_.x.dim(t):Array.isArray(t)?t.map(e=>this.scaleRadius(e)):this.scaleRadius(t)}scaleRadius(t){return typeof t=="number"?this.scale_.x.dim(t):{x:this.scale_.x.dim(t.x??0),y:this.scale_.y.dim(t.y??0)}}getPath(){return this.path}}const Q=`precision mediump float;
|
|
2
2
|
|
|
3
3
|
void main(void) {
|
|
4
4
|
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
@@ -8,4 +8,4 @@ void main(void) {
|
|
|
8
8
|
void main(void) {
|
|
9
9
|
gl_Position = a_position;
|
|
10
10
|
}
|
|
11
|
-
`,D=o=>new Error(`failed to compile webgl program: ${o}`),tt=new Error("null shader encountered");let B=class{constructor(t,e,s){h(this,"renderCtx");h(this,"prog");h(this,"vertShader");h(this,"fragShader");h(this,"uniformLocCache",new Map);this.renderCtx=t;const i=t.gl.createProgram();if(i==null)throw D("failed to create program");this.prog=i,this.vertShader=e,this.fragShader=s,this.compile()}setAsActive(){return this.renderCtx.gl.useProgram(this.prog),()=>this.renderCtx.gl.useProgram(null)}uniformXY(t,e){this.renderCtx.gl.uniform2fv(this.getUniformLoc(t),n.J.couple(e))}uniformColor(t,e){this.renderCtx.gl.uniform4fv(this.getUniformLoc(t),n.zt.rgba1(e))}getUniformLoc(t){const e=this.uniformLocCache.get(t);if(e!=null)return e;const s=this.renderCtx.gl.getUniformLocation(this.prog,t);if(s==null)throw new Error(`unexpected missing uniform ${t}`);return this.uniformLocCache.set(t,s),s}compile(){const t=this.renderCtx.gl;this.compileShader(this.vertShader,t.VERTEX_SHADER),this.compileShader(this.fragShader,t.FRAGMENT_SHADER),t.linkProgram(this.prog)}compileShader(t,e){const s=this.renderCtx.gl,i=s.createShader(e);if(i==null)throw tt;if(s.shaderSource(i,t),s.compileShader(i),!s.getShaderParameter(i,s.COMPILE_STATUS)){const a=s.getShaderInfoLog(i);throw s.deleteShader(i),D(a??"unknown")}s.attachShader(this.prog,i)}};const et=new Float32Array([0,0,0,0,0,0]);class st extends B{constructor(e){super(e,j,Q);h(this,"positionBuffer");const s=e.gl.createBuffer();if(s==null)throw new f.Qt("webgl: failed to create buffer");this.positionBuffer=s,e.gl.bindBuffer(e.gl.ARRAY_BUFFER,this.positionBuffer),e.gl.bufferData(e.gl.ARRAY_BUFFER,et,e.gl.STATIC_DRAW)}exec(){const{gl:e}=this.renderCtx,s=e.getAttribLocation(this.prog,"a_position");e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer);const i=e.createVertexArray();e.bindVertexArray(i),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),this.setAsActive(),e.drawArrays(e.TRIANGLES,0,3)}}const it=new Error("request for lock canceled");var rt=function(o,t,e,s){function i(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(l){try{d(s.next(l))}catch(u){a(u)}}function p(l){try{d(s.throw(l))}catch(u){a(u)}}function d(l){l.done?r(l.value):i(l.value).then(c,p)}d((s=s.apply(o,t||[])).next())})};class at{constructor(t,e=it){this._value=t,this._cancelError=e,this._queue=[],this._weightedWaiters=[]}acquire(t=1,e=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((s,i)=>{const r={resolve:s,reject:i,weight:t,priority:e},a=G(this._queue,c=>e<=c.priority);a===-1&&t<=this._value?this._dispatchItem(r):this._queue.splice(a+1,0,r)})}runExclusive(t){return rt(this,arguments,void 0,function*(e,s=1,i=0){const[r,a]=yield this.acquire(s,i);try{return yield e(r)}finally{a()}})}waitForUnlock(t=1,e=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return this._couldLockImmediately(t,e)?Promise.resolve():new Promise(s=>{this._weightedWaiters[t-1]||(this._weightedWaiters[t-1]=[]),nt(this._weightedWaiters[t-1],{resolve:s,priority:e})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(t){this._value=t,this._dispatchQueue()}release(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);this._value+=t,this._dispatchQueue()}cancel(){this._queue.forEach(t=>t.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(t){const e=this._value;this._value-=t.weight,t.resolve([e,this._newReleaser(t.weight)])}_newReleaser(t){let e=!1;return()=>{e||(e=!0,this.release(t))}}_drainUnlockWaiters(){if(this._queue.length===0)for(let t=this._value;t>0;t--){const e=this._weightedWaiters[t-1];e&&(e.forEach(s=>s.resolve()),this._weightedWaiters[t-1]=[])}else{const t=this._queue[0].priority;for(let e=this._value;e>0;e--){const s=this._weightedWaiters[e-1];if(!s)continue;const i=s.findIndex(r=>r.priority<=t);(i===-1?s:s.splice(0,i)).forEach(r=>r.resolve())}}}_couldLockImmediately(t,e){return(this._queue.length===0||this._queue[0].priority<e)&&t<=this._value}}function nt(o,t){const e=G(o,s=>t.priority<=s.priority);o.splice(e+1,0,t)}function G(o,t){for(let e=o.length-1;e>=0;e--)if(t(o[e]))return e;return-1}var ht=function(o,t,e,s){function i(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(l){try{d(s.next(l))}catch(u){a(u)}}function p(l){try{d(s.throw(l))}catch(u){a(u)}}function d(l){l.done?r(l.value):i(l.value).then(c,p)}d((s=s.apply(o,t||[])).next())})};class M{constructor(t){this._semaphore=new at(1,t)}acquire(){return ht(this,arguments,void 0,function*(t=0){const[,e]=yield this._semaphore.acquire(1,t);return e})}runExclusive(t,e=0){return this._semaphore.runExclusive(()=>t(),1,e)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(t=0){return this._semaphore.waitForUnlock(1,t)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}const P={high:1,low:0};class Y{constructor({afterRender:t,instrumentation:e=f.g.Instrumentation.NOOP}){h(this,"mutex",new M);h(this,"requests",new Map);h(this,"cleanup",new Map);h(this,"afterRender");h(this,"instrumentation");h(this,"count",0);this.afterRender=t,this.instrumentation=e,this.start()}set(t){const e=this.requests.get(t.key);if(e==null)this.requests.set(t.key,t);else{const s=P[t.priority]>=P[e.priority],i=t.canvases.length>=e.canvases.length;s&&i&&this.requests.set(t.key,t)}}render(){var r;const{requests:t}=this;if(t.size===0)return;const e=this.instrumentation.T.bench("render-cycle"),s=this.instrumentation.T.bench("render-cycle-cleanup");this.runCleanupsSync(),s();const i=this.instrumentation.T.bench("render-cycle-render");this.renderSync(),i(),e(),this.requests.clear(),(r=this.afterRender)==null||r.call(this)}runCleanupsSync(){const{cleanup:t,requests:e}=this;t.forEach((s,i)=>{const r=e.get(i);r!=null&&(s(r),t.delete(i))})}renderSync(){const{requests:t}=this;t.forEach(e=>{try{const s=e.render();s!=null&&this.cleanup.set(e.key,s)}catch(s){console.error(s)}})}async start(){const t=()=>{try{this.render()}catch(e){console.error(e)}requestAnimationFrame(t)};requestAnimationFrame(t)}}const y=2,v=class v{constructor(t){h(this,"atlas");h(this,"charDims");h(this,"dpr");h(this,"charMap");const{font:e,dpr:s,characters:i=v.DEFAULT_CHARS,textColor:r}=t;this.dpr=s,this.charMap=new Map;const a=n.c$1.unique(Array.from(i)),p=new OffscreenCanvas(1,1).getContext("2d");p.font=e;const d=p.measureText("0");this.charDims=k.dimensionsFromMetrics(d),this.charDims.width+=y,this.charDims.height+=y;const l=a.length,u=this.charDims.width,_=this.charDims.height,x=Math.ceil(Math.sqrt(l)),W=Math.ceil(l/x);this.atlas=new OffscreenCanvas(u*x*this.dpr,_*(W+1)*this.dpr);const w=this.atlas.getContext("2d");w.scale(this.dpr,this.dpr),w.font=e,w.textBaseline="alphabetic",w.textAlign="left",w.fillStyle=n.zt.hex(r),w.clearRect(0,0,this.atlas.width,this.atlas.height),a.forEach((O,L)=>{const J=L%x,U=Math.floor(L/x),N=J*u,X=(U+1)*_;w.fillText(O,N,X),this.charMap.set(O,L)})}fillText(t,e,s,i){const{width:r,height:a}=this.charDims,c=Math.ceil(Math.sqrt(this.charMap.size));for(let p=0;p<e.length;p++){const d=e[p],l=this.charMap.get(d);if(l===void 0)continue;const u=l%c,_=Math.floor(l/c);t.drawImage(this.atlas,u*r*this.dpr,_*a*this.dpr+y,r*this.dpr,a*this.dpr,s+p*r,i-a-y/this.dpr,r,a)}}measureText(t){return{width:t.length*this.charDims.width,height:this.charDims.height}}};h(v,"DEFAULT_CHARS","0123456789.:-umsNa∞ᴇ");let b=v;class ot{constructor(){h(this,"atlases");this.atlases=new Map}get(t){const e=`${t.font}-${n.zt.hex(t.textColor)}-${t.dpr}-${t.characters}`;if(this.atlases.has(e))return this.atlases.get(e);const s=new b(t);return this.atlases.set(e,s),s}}const I=o=>(o.textRendering="optimizeSpeed",o.imageSmoothingEnabled=!1,o),g=class g{constructor(t,e,s,i,r){h(this,"glCanvas");h(this,"upper2dCanvas");h(this,"lower2dCanvas");h(this,"gl");h(this,"lower2d");h(this,"upper2d");h(this,"region");h(this,"dpr");h(this,"loop");h(this,"clearProgram");h(this,"os");h(this,"instrumentation");this.upper2dCanvas=s,this.lower2dCanvas=e,this.glCanvas=t,this.os=i,this.instrumentation=r,this.dpr=1;const a=this.lower2dCanvas.getContext("2d");if(a==null)throw new Error("Could not get 2D context");const c=new ot;this.lower2d=I(new T(a,c,this.dpr));const p=this.upper2dCanvas.getContext("2d");if(p==null)throw new Error("Could not get 2D context");this.upper2d=I(new T(p,c,this.dpr));const d={preserveDrawingBuffer:!0,powerPreference:"high-performance",stencil:!1,depth:!1},l=this.glCanvas.getContext("webgl2",d);if(l==null)throw new Error("Could not get WebGL context");l.disable(l.DEPTH_TEST),l.disable(l.STENCIL_TEST),l.disable(l.CULL_FACE),l.disable(l.DITHER),this.gl=l,this.glCanvas.oncontextlost=console.error;const u=()=>{this.gl.flush(),this.gl.finish()};this.loop=new Y({afterRender:u,instrumentation:this.instrumentation}),this.region=n.$t.ZERO,this.os==="Windows"&&(this.clearProgram=new st(this))}static create(t,e,s,i,r){const a=q(t,"render_context"),c=new g(e,s,i,r,a);return t.set(g.CONTEXT_KEY,c),c}static useOptional(t){return t.getOptional(g.CONTEXT_KEY)}static use(t){return t.get(g.CONTEXT_KEY)}update(t){t.set(g.CONTEXT_KEY,this)}resize(t,e){n.$t.equals(this.region,t)&&this.dpr===e||(this.region=t,this.dpr=e,this.resizeCanvas(this.glCanvas),this.resizeCanvas(this.upper2dCanvas),this.resizeCanvas(this.lower2dCanvas),this.lower2d.scale(this.dpr,this.dpr),this.upper2d.scale(this.dpr,this.dpr),this.gl.viewport(0,0,n.$t.width(t)*e,n.$t.height(t)*e))}resizeCanvas(t){t.width=n.$t.width(this.region)*this.dpr,t.height=n.$t.height(this.region)*this.dpr}get aspect(){return n.$t.aspect(this.region)}scaleRegion(t){return new n.b.XY(n.b.Scale.scale(0,1).scale(n.$t.width(t)).translate(n.$t.left(t)).reBound(n.$t.width(this.region)).scale(-1,1),n.b.Scale.scale(0,1).scale(n.$t.height(t)).invert().translate(n.$t.top(t)).reBound(n.$t.height(this.region)).scale(-1,1).invert())}scissor(t,e=n.J.ZERO,s){const i=[];return s.includes("upper2d")&&i.push(this.upper2d.scissor(t,e)),s.includes("lower2d")&&i.push(this.lower2d.scissor(t,e)),s.includes("gl")&&i.push(this.scissorGL(t,e)),()=>i.forEach(r=>r())}scissorGL(t,e=n.J.ZERO){return this.gl.enable(this.gl.SCISSOR_TEST),t=C(t,e),this.gl.scissor(n.$t.left(t)*this.dpr,(n.$t.height(this.region)-n.$t.bottom(t))*this.dpr,n.$t.width(t)*this.dpr,n.$t.height(t)*this.dpr),()=>this.gl.disable(this.gl.SCISSOR_TEST)}erase(t,e=n.J.ZERO,...s){e=n.J.construct(e),s.length===0&&(s=["upper2d","lower2d","gl"]),s.includes("upper2d")&&this.eraseCanvas(this.upper2d,t,e),s.includes("lower2d")&&this.eraseCanvas(this.lower2d,t,e),s.includes("gl")&&this.eraseGL(t,e)}eraseGL(t,e=n.J.ZERO){var r;const{gl:s}=this,i=this.scissorGL(C(t,e));s.clearColor(...n.zt.rgba1(n.zt.ZERO)),s.clear(s.COLOR_BUFFER_BIT),this.os==="Windows"&&((r=this.clearProgram)==null||r.exec()),i()}eraseCanvas(t,e,s=n.J.ZERO){const i=C(e,s);t.clearRect(...n.J.couple(n.$t.topLeft(i)),...n._.couple(n.$t.dims(i)))}};h(g,"CONTEXT_KEY",n.CSS.B("render-context"));let E=g;const z=m.z.object({region:n.$t.box,enabled:m.z.boolean().optional().default(!1)}),$=["gl","lower2d","upper2d"];class R extends f.Leaf{constructor(){super(...arguments);h(this,"schema",z)}afterUpdate(e){this.deleted||(this.internal.renderCtx=E.use(e),this.renderOnLifecycleChange())}afterDelete(){this.renderOnLifecycleChange()}renderOnLifecycleChange(){this.internal.renderCtx.loop.set({key:`${this.type}-${this.key}`,render:this.render.bind(this),priority:"high",canvases:$})}render(){this.deleted||!this.state.enabled||this.internal.renderCtx.erase(this.state.region,n.J.construct(0),...$)}}h(R,"TYPE","eraser");const lt={[R.TYPE]:R};exports.Context=E;exports.Eraser=R;exports.GLProgram=B;exports.Loop=Y;exports.Mutex=M;exports.Provider=S;exports.REGISTRY=lt;exports.REGISTRY$1=Z;exports.eraserStateZ=z;exports.providerStateZ=F;exports.useInstrumentation=q;
|
|
11
|
+
`,O=o=>new Error(`failed to compile webgl program: ${o}`),tt=new Error("null shader encountered");let B=class{constructor(t,e,s){h(this,"renderCtx");h(this,"prog");h(this,"vertShader");h(this,"fragShader");h(this,"uniformLocCache",new Map);this.renderCtx=t;const i=t.gl.createProgram();if(i==null)throw O("failed to create program");this.prog=i,this.vertShader=e,this.fragShader=s,this.compile()}setAsActive(){return this.renderCtx.gl.useProgram(this.prog),()=>this.renderCtx.gl.useProgram(null)}uniformXY(t,e){this.renderCtx.gl.uniform2fv(this.getUniformLoc(t),n.J.couple(e))}uniformColor(t,e){this.renderCtx.gl.uniform4fv(this.getUniformLoc(t),n.Dt.rgba1(e))}getUniformLoc(t){const e=this.uniformLocCache.get(t);if(e!=null)return e;const s=this.renderCtx.gl.getUniformLocation(this.prog,t);if(s==null)throw new Error(`unexpected missing uniform ${t}`);return this.uniformLocCache.set(t,s),s}compile(){const t=this.renderCtx.gl;this.compileShader(this.vertShader,t.VERTEX_SHADER),this.compileShader(this.fragShader,t.FRAGMENT_SHADER),t.linkProgram(this.prog)}compileShader(t,e){const s=this.renderCtx.gl,i=s.createShader(e);if(i==null)throw tt;if(s.shaderSource(i,t),s.compileShader(i),!s.getShaderParameter(i,s.COMPILE_STATUS)){const a=s.getShaderInfoLog(i);throw s.deleteShader(i),O(a??"unknown")}s.attachShader(this.prog,i)}};const et=new Float32Array([0,0,0,0,0,0]);class st extends B{constructor(e){super(e,j,Q);h(this,"positionBuffer");const s=e.gl.createBuffer();if(s==null)throw new f.Qt("webgl: failed to create buffer");this.positionBuffer=s,e.gl.bindBuffer(e.gl.ARRAY_BUFFER,this.positionBuffer),e.gl.bufferData(e.gl.ARRAY_BUFFER,et,e.gl.STATIC_DRAW)}exec(){const{gl:e}=this.renderCtx,s=e.getAttribLocation(this.prog,"a_position");e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer);const i=e.createVertexArray();e.bindVertexArray(i),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),this.setAsActive(),e.drawArrays(e.TRIANGLES,0,3)}}const it=new Error("request for lock canceled");var rt=function(o,t,e,s){function i(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(l){try{d(s.next(l))}catch(u){a(u)}}function p(l){try{d(s.throw(l))}catch(u){a(u)}}function d(l){l.done?r(l.value):i(l.value).then(c,p)}d((s=s.apply(o,t||[])).next())})};class at{constructor(t,e=it){this._value=t,this._cancelError=e,this._queue=[],this._weightedWaiters=[]}acquire(t=1,e=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((s,i)=>{const r={resolve:s,reject:i,weight:t,priority:e},a=G(this._queue,c=>e<=c.priority);a===-1&&t<=this._value?this._dispatchItem(r):this._queue.splice(a+1,0,r)})}runExclusive(t){return rt(this,arguments,void 0,function*(e,s=1,i=0){const[r,a]=yield this.acquire(s,i);try{return yield e(r)}finally{a()}})}waitForUnlock(t=1,e=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return this._couldLockImmediately(t,e)?Promise.resolve():new Promise(s=>{this._weightedWaiters[t-1]||(this._weightedWaiters[t-1]=[]),nt(this._weightedWaiters[t-1],{resolve:s,priority:e})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(t){this._value=t,this._dispatchQueue()}release(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);this._value+=t,this._dispatchQueue()}cancel(){this._queue.forEach(t=>t.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(t){const e=this._value;this._value-=t.weight,t.resolve([e,this._newReleaser(t.weight)])}_newReleaser(t){let e=!1;return()=>{e||(e=!0,this.release(t))}}_drainUnlockWaiters(){if(this._queue.length===0)for(let t=this._value;t>0;t--){const e=this._weightedWaiters[t-1];e&&(e.forEach(s=>s.resolve()),this._weightedWaiters[t-1]=[])}else{const t=this._queue[0].priority;for(let e=this._value;e>0;e--){const s=this._weightedWaiters[e-1];if(!s)continue;const i=s.findIndex(r=>r.priority<=t);(i===-1?s:s.splice(0,i)).forEach(r=>r.resolve())}}}_couldLockImmediately(t,e){return(this._queue.length===0||this._queue[0].priority<e)&&t<=this._value}}function nt(o,t){const e=G(o,s=>t.priority<=s.priority);o.splice(e+1,0,t)}function G(o,t){for(let e=o.length-1;e>=0;e--)if(t(o[e]))return e;return-1}var ht=function(o,t,e,s){function i(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(l){try{d(s.next(l))}catch(u){a(u)}}function p(l){try{d(s.throw(l))}catch(u){a(u)}}function d(l){l.done?r(l.value):i(l.value).then(c,p)}d((s=s.apply(o,t||[])).next())})};class M{constructor(t){this._semaphore=new at(1,t)}acquire(){return ht(this,arguments,void 0,function*(t=0){const[,e]=yield this._semaphore.acquire(1,t);return e})}runExclusive(t,e=0){return this._semaphore.runExclusive(()=>t(),1,e)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(t=0){return this._semaphore.waitForUnlock(1,t)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}const P={high:1,low:0};class Y{constructor({afterRender:t,instrumentation:e=f.g.Instrumentation.NOOP}){h(this,"mutex",new M);h(this,"requests",new Map);h(this,"cleanup",new Map);h(this,"afterRender");h(this,"instrumentation");h(this,"count",0);this.afterRender=t,this.instrumentation=e,this.start()}set(t){const e=this.requests.get(t.key);if(e==null)this.requests.set(t.key,t);else{const s=P[t.priority]>=P[e.priority],i=t.canvases.length>=e.canvases.length;s&&i&&this.requests.set(t.key,t)}}render(){var r;const{requests:t}=this;if(t.size===0)return;const e=this.instrumentation.T.bench("render-cycle"),s=this.instrumentation.T.bench("render-cycle-cleanup");this.runCleanupsSync(),s();const i=this.instrumentation.T.bench("render-cycle-render");this.renderSync(),i(),e(),this.requests.clear(),(r=this.afterRender)==null||r.call(this)}runCleanupsSync(){const{cleanup:t,requests:e}=this;t.forEach((s,i)=>{const r=e.get(i);r!=null&&(s(r),t.delete(i))})}renderSync(){const{requests:t}=this;t.forEach(e=>{try{const s=e.render();s!=null&&this.cleanup.set(e.key,s)}catch(s){console.error(s)}})}async start(){const t=()=>{try{this.render()}catch(e){console.error(e)}requestAnimationFrame(t)};requestAnimationFrame(t)}}const y=2,v=class v{constructor(t){h(this,"atlas");h(this,"charDims");h(this,"dpr");h(this,"charMap");const{font:e,dpr:s,characters:i=v.DEFAULT_CHARS,textColor:r}=t;this.dpr=s,this.charMap=new Map;const a=n.c$1.unique(Array.from(i)),p=new OffscreenCanvas(1,1).getContext("2d");p.font=e;const d=p.measureText("0");this.charDims=k.dimensionsFromMetrics(d),this.charDims.width+=y,this.charDims.height+=y;const l=a.length,u=this.charDims.width,_=this.charDims.height,x=Math.ceil(Math.sqrt(l)),J=Math.ceil(l/x);this.atlas=new OffscreenCanvas(u*x*this.dpr,_*(J+1)*this.dpr);const w=this.atlas.getContext("2d");w.scale(this.dpr,this.dpr),w.font=e,w.textBaseline="alphabetic",w.textAlign="left",w.fillStyle=n.Dt.hex(r),w.clearRect(0,0,this.atlas.width,this.atlas.height),a.forEach((D,L)=>{const U=L%x,z=Math.floor(L/x),N=U*u,X=(z+1)*_;w.fillText(D,N,X),this.charMap.set(D,L)})}fillText(t,e,s,i){const{width:r,height:a}=this.charDims,c=Math.ceil(Math.sqrt(this.charMap.size));for(let p=0;p<e.length;p++){const d=e[p],l=this.charMap.get(d);if(l===void 0)continue;const u=l%c,_=Math.floor(l/c);t.drawImage(this.atlas,u*r*this.dpr,_*a*this.dpr+y,r*this.dpr,a*this.dpr,s+p*r,i-a-y/this.dpr,r,a)}}measureText(t){return{width:t.length*this.charDims.width,height:this.charDims.height}}};h(v,"DEFAULT_CHARS","0123456789.:-umsNa∞ᴇ");let b=v;class ot{constructor(){h(this,"atlases");this.atlases=new Map}get(t){const e=`${t.font}-${n.Dt.hex(t.textColor)}-${t.dpr}-${t.characters}`;if(this.atlases.has(e))return this.atlases.get(e);const s=new b(t);return this.atlases.set(e,s),s}}const I=o=>(o.textRendering="optimizeSpeed",o.imageSmoothingEnabled=!1,o),g=class g{constructor(t,e,s,i,r){h(this,"glCanvas");h(this,"upper2dCanvas");h(this,"lower2dCanvas");h(this,"gl");h(this,"lower2d");h(this,"upper2d");h(this,"region");h(this,"dpr");h(this,"loop");h(this,"clearProgram");h(this,"os");h(this,"instrumentation");this.upper2dCanvas=s,this.lower2dCanvas=e,this.glCanvas=t,this.os=i,this.instrumentation=r,this.dpr=1;const a=this.lower2dCanvas.getContext("2d");if(a==null)throw new Error("Could not get 2D context");const c=new ot;this.lower2d=I(new T(a,c,this.dpr));const p=this.upper2dCanvas.getContext("2d");if(p==null)throw new Error("Could not get 2D context");this.upper2d=I(new T(p,c,this.dpr));const d={preserveDrawingBuffer:!0,powerPreference:"high-performance",stencil:!1,depth:!1},l=this.glCanvas.getContext("webgl2",d);if(l==null)throw new Error("Could not get WebGL context");l.disable(l.DEPTH_TEST),l.disable(l.STENCIL_TEST),l.disable(l.CULL_FACE),l.disable(l.DITHER),this.gl=l,this.glCanvas.oncontextlost=console.error;const u=()=>{this.gl.flush(),this.gl.finish()};this.loop=new Y({afterRender:u,instrumentation:this.instrumentation}),this.region=n.$t.ZERO,this.os==="Windows"&&(this.clearProgram=new st(this))}static create(t,e,s,i,r){const a=q(t,"render_context"),c=new g(e,s,i,r,a);return t.set(g.CONTEXT_KEY,c),c}static useOptional(t){return t.getOptional(g.CONTEXT_KEY)}static use(t){return t.get(g.CONTEXT_KEY)}update(t){t.set(g.CONTEXT_KEY,this)}resize(t,e){n.$t.equals(this.region,t)&&this.dpr===e||(this.region=t,this.dpr=e,this.resizeCanvas(this.glCanvas),this.resizeCanvas(this.upper2dCanvas),this.resizeCanvas(this.lower2dCanvas),this.lower2d.scale(this.dpr,this.dpr),this.upper2d.scale(this.dpr,this.dpr),this.gl.viewport(0,0,n.$t.width(t)*e,n.$t.height(t)*e))}resizeCanvas(t){t.width=n.$t.width(this.region)*this.dpr,t.height=n.$t.height(this.region)*this.dpr}get aspect(){return n.$t.aspect(this.region)}scaleRegion(t){return new n.b.XY(n.b.Scale.scale(0,1).scale(n.$t.width(t)).translate(n.$t.left(t)).reBound(n.$t.width(this.region)).scale(-1,1),n.b.Scale.scale(0,1).scale(n.$t.height(t)).invert().translate(n.$t.top(t)).reBound(n.$t.height(this.region)).scale(-1,1).invert())}scissor(t,e=n.J.ZERO,s){const i=[];return s.includes("upper2d")&&i.push(this.upper2d.scissor(t,e)),s.includes("lower2d")&&i.push(this.lower2d.scissor(t,e)),s.includes("gl")&&i.push(this.scissorGL(t,e)),()=>i.forEach(r=>r())}scissorGL(t,e=n.J.ZERO){return this.gl.enable(this.gl.SCISSOR_TEST),t=C(t,e),this.gl.scissor(n.$t.left(t)*this.dpr,(n.$t.height(this.region)-n.$t.bottom(t))*this.dpr,n.$t.width(t)*this.dpr,n.$t.height(t)*this.dpr),()=>this.gl.disable(this.gl.SCISSOR_TEST)}erase(t,e=n.J.ZERO,...s){e=n.J.construct(e),s.length===0&&(s=["upper2d","lower2d","gl"]),s.includes("upper2d")&&this.eraseCanvas(this.upper2d,t,e),s.includes("lower2d")&&this.eraseCanvas(this.lower2d,t,e),s.includes("gl")&&this.eraseGL(t,e)}eraseGL(t,e=n.J.ZERO){var r;const{gl:s}=this,i=this.scissorGL(C(t,e));s.clearColor(...n.Dt.rgba1(n.Dt.ZERO)),s.clear(s.COLOR_BUFFER_BIT),this.os==="Windows"&&((r=this.clearProgram)==null||r.exec()),i()}eraseCanvas(t,e,s=n.J.ZERO){const i=C(e,s);t.clearRect(...n.J.couple(n.$t.topLeft(i)),...n._.couple(n.$t.dims(i)))}};h(g,"CONTEXT_KEY",n.CSS.B("render-context"));let E=g;const W=m.z.object({region:n.$t.box,enabled:m.z.boolean().optional().default(!1)}),$=["gl","lower2d","upper2d"];class R extends f.Leaf{constructor(){super(...arguments);h(this,"schema",W)}afterUpdate(e){this.deleted||(this.internal.renderCtx=E.use(e),this.renderOnLifecycleChange())}afterDelete(){this.renderOnLifecycleChange()}renderOnLifecycleChange(){this.internal.renderCtx.loop.set({key:`${this.type}-${this.key}`,render:this.render.bind(this),priority:"high",canvases:$})}render(){this.deleted||!this.state.enabled||this.internal.renderCtx.erase(this.state.region,n.J.construct(0),...$)}}h(R,"TYPE","eraser");const lt={[R.TYPE]:R};exports.Context=E;exports.Eraser=R;exports.GLProgram=B;exports.Loop=Y;exports.Mutex=M;exports.Provider=S;exports.REGISTRY=lt;exports.REGISTRY$1=Z;exports.eraserStateZ=W;exports.providerStateZ=F;exports.useInstrumentation=q;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (h, t, e) =>
|
|
4
|
-
import { $ as c,
|
|
1
|
+
var $ = Object.defineProperty;
|
|
2
|
+
var z = (h, t, e) => t in h ? $(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
|
|
3
|
+
var n = (h, t, e) => z(h, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { $ as c, v as x, J as f, _ as G, D as y, b as K, C as H } from "./css-Cnb9DQMD.js";
|
|
5
5
|
import { z as m } from "zod";
|
|
6
|
-
import { h as _, j as J, Q as Z, L as Q } from "./provider-
|
|
7
|
-
import { a as M } from "./dimensions-
|
|
6
|
+
import { h as _, j as J, Q as Z, L as Q } from "./provider-r5Ly36FI.js";
|
|
7
|
+
import { a as M } from "./dimensions-B6qmnzv3.js";
|
|
8
8
|
const j = m.object({
|
|
9
9
|
include: m.string().array().optional(),
|
|
10
10
|
exclude: m.string().array().optional(),
|
|
@@ -931,8 +931,8 @@ const T = 2, v = class v {
|
|
|
931
931
|
);
|
|
932
932
|
const w = this.atlas.getContext("2d");
|
|
933
933
|
w.scale(this.dpr, this.dpr), w.font = e, w.textBaseline = "alphabetic", w.textAlign = "left", w.fillStyle = y.hex(r), w.clearRect(0, 0, this.atlas.width, this.atlas.height), a.forEach((I, L) => {
|
|
934
|
-
const U = L % S, N = Math.floor(L / S),
|
|
935
|
-
w.fillText(I,
|
|
934
|
+
const U = L % S, N = Math.floor(L / S), X = U * u, V = (N + 1) * C;
|
|
935
|
+
w.fillText(I, X, V), this.charMap.set(I, L);
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
938
|
fillText(t, e, s, i) {
|
package/dist/ether.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./provider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./provider-aWtsGnV8.cjs");require("./css-9iEiTRNL.cjs");const r=require("./eraser-BkqFgBRY.cjs"),e=require("./value-Bq1w9UY8.cjs");require("./state-_FFrG5nH.cjs");const i=require("./fontString-Ddza50DF.cjs"),l=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontSpecZ:t.fontSpecZ,fontString:i.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),u=Object.freeze(Object.defineProperty({__proto__:null,Context:r.Context,GLProgram:r.GLProgram,Loop:r.Loop,control:e.control,request:e.request,useOptionalRequestor:e.useOptionalRequestor,useRequestor:e.useRequestor},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,BoundQuerier:e.BoundQuerier,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY,XAxis:e.XAxis,YAxis:e.YAxis,boundQuerierStateZ:e.boundQuerierStateZ,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"})),a=()=>{const o=new t.l((R,S)=>postMessage(R,S));onmessage=o.handle.bind(o);const n={...r.REGISTRY$1,...e.REGISTRY$18,...e.REGISTRY$17,...e.REGISTRY$16,...e.REGISTRY$15,...r.REGISTRY,...e.REGISTRY$14,...e.REGISTRY$13,...e.REGISTRY,...e.REGISTRY$12,...e.REGISTRY$11,...e.REGISTRY$10,...e.REGISTRY$9,...t.REGISTRY$1,...e.REGISTRY$8,...e.REGISTRY$7,...t.REGISTRY,...e.REGISTRY$6,...e.REGISTRY$5,...e.REGISTRY$4,...e.REGISTRY$3,...e.REGISTRY$2,...e.REGISTRY$1};t.render({comms:o.route("vis"),registry:n,instrumentation:new t.C({logger:new t.P({filters:[t.Pe("info")]})})})},T=Object.freeze(Object.defineProperty({__proto__:null,render:a},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=T;exports.render=u;exports.theming=l;
|
package/dist/ether.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as R, R as a, S as n, a as S, b as l, f as i, t as T, u, l as G, c as Y, r as m, C as E, d as I, e as $ } from "./provider-
|
|
2
|
-
import { g as Ye } from "./provider-
|
|
3
|
-
import "./css-
|
|
4
|
-
import { C as p, G as c, L as f, R as d, a as g } from "./eraser-
|
|
5
|
-
import { c as _, r as b, u as x, a as y, B as P, L as j, R as s, X as v, Y as A, b as O, l as L, x as h, y as M, d as N, e as Z, f as w, g as z, h as X, i as q, j as C, k as H, m as k, n as B, o as D, p as Q, q as F, s as K, t as J, v as U, w as V, z as W } from "./value-
|
|
6
|
-
import { D as Ee, E as Ie, G as $e, H as pe, A as ce, C as fe, F as de, I as ge } from "./value-
|
|
1
|
+
import { P as R, R as a, S as n, a as S, b as l, f as i, t as T, u, l as G, c as Y, r as m, C as E, d as I, e as $ } from "./provider-r5Ly36FI.js";
|
|
2
|
+
import { g as Ye } from "./provider-r5Ly36FI.js";
|
|
3
|
+
import "./css-Cnb9DQMD.js";
|
|
4
|
+
import { C as p, G as c, L as f, R as d, a as g } from "./eraser-CK8SwEJa.js";
|
|
5
|
+
import { c as _, r as b, u as x, a as y, B as P, L as j, R as s, X as v, Y as A, b as O, l as L, x as h, y as M, d as N, e as Z, f as w, g as z, h as X, i as q, j as C, k as H, m as k, n as B, o as D, p as Q, q as F, s as K, t as J, v as U, w as V, z as W } from "./value-B6OlPXe1.js";
|
|
6
|
+
import { D as Ee, E as Ie, G as $e, H as pe, A as ce, C as fe, F as de, I as ge } from "./value-B6OlPXe1.js";
|
|
7
7
|
import "./state-CjGemC7S.js";
|
|
8
|
-
import { f as ee } from "./fontString-
|
|
8
|
+
import { f as ee } from "./fontString-BN1kd1AP.js";
|
|
9
9
|
const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
10
|
__proto__: null,
|
|
11
11
|
Provider: R,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { C as f, F as me, b as J } from "./css-
|
|
1
|
+
import { C as f, F as me, b as J } from "./css-Cnb9DQMD.js";
|
|
2
2
|
import { A as U } from "./toArray-B7nD2CTw.js";
|
|
3
3
|
import { j as b } from "./jsx-runtime-C5mzlN2N.js";
|
|
4
|
-
import { y as Q, M as pe, e as ge, a as ye, f as xe, d as Ce } from "./Divider-
|
|
4
|
+
import { y as Q, M as pe, e as ge, a as ye, f as xe, d as Ce } from "./Divider-DqEkzRIY.js";
|
|
5
5
|
import { memo as be, useState as Ne, useCallback as N, useMemo as ve } from "react";
|
|
6
|
-
import { B as Te, c as Ie } from "./Toggle-
|
|
7
|
-
import { L as je } from "./Link-
|
|
8
|
-
import { u as $e } from "./Haul-
|
|
9
|
-
import { u as we, a as Ee, C as V, L as Le, S as Se } from "./Text-
|
|
6
|
+
import { B as Te, c as Ie } from "./Toggle-BRuUrO2N.js";
|
|
7
|
+
import { L as je } from "./Link-C9GeoB0w.js";
|
|
8
|
+
import { u as $e } from "./Haul-CEFSvdy9.js";
|
|
9
|
+
import { u as we, a as Ee, C as V, L as Le, S as Se } from "./Text-BR4FW9Hy.js";
|
|
10
10
|
import "./Stack-D50qN0Vu.js";
|
|
11
11
|
import { b as _e } from "./state-CjGemC7S.js";
|
|
12
|
-
import { a as Ae, C as Oe } from "./ContextMenu-
|
|
13
|
-
import "./provider-
|
|
14
|
-
import { v as Pe } from "./hooks-
|
|
12
|
+
import { a as Ae, C as Oe } from "./ContextMenu-BiNr7Gxv.js";
|
|
13
|
+
import "./provider-r5Ly36FI.js";
|
|
14
|
+
import { v as Pe } from "./hooks-DjznxGgm.js";
|
|
15
15
|
const Z = ({
|
|
16
16
|
className: e,
|
|
17
17
|
enabledLoc: t,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { C as n, L as p, a as d, d as f, l as b, s as c, u as L, w as S } from "./state-CjGemC7S.js";
|
|
2
|
-
import { D as v } from "./DateTime-
|
|
3
|
-
import { d as x, a as C } from "./dimensions-
|
|
4
|
-
import { T as s, E, M as u, S as y, a as j, e as M, b as T } from "./Divider-
|
|
5
|
-
import { K as _ } from "./Keyboard-
|
|
2
|
+
import { D as v } from "./DateTime-r6hocEmI.js";
|
|
3
|
+
import { d as x, a as C } from "./dimensions-B6qmnzv3.js";
|
|
4
|
+
import { T as s, E, M as u, S as y, a as j, e as M, b as T } from "./Divider-DqEkzRIY.js";
|
|
5
|
+
import { K as _ } from "./Keyboard-Duo41pJL.js";
|
|
6
6
|
import { j as g } from "./jsx-runtime-C5mzlN2N.js";
|
|
7
|
-
import { C as e } from "./css-
|
|
8
|
-
import { W as h, f as w } from "./WithIcon-
|
|
7
|
+
import { C as e } from "./css-Cnb9DQMD.js";
|
|
8
|
+
import { W as h, f as w } from "./WithIcon-BhR6nwRh.js";
|
|
9
9
|
const z = ({
|
|
10
10
|
ref: a,
|
|
11
11
|
href: o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const E=require("./Text-ZJqK1cI3.cjs"),x=require("./jsx-runtime-CITbqOLs.cjs"),b=require("react"),He=require("./css-hg3QdDDt.cjs"),me=require("./state-_FFrG5nH.cjs"),xe=require("./useDebouncedCallback-DsKlBI86.cjs"),ye=require("./Text-BjHlLKsp.cjs"),De=require("./Divider-Dvb6dsgX.cjs");require("./provider-XPRFhwnl.cjs");require("./Stack-BbwDtaE6.cjs");require("./Toggle-CfwYy9fe.cjs");const Fe=Symbol(),ie=Symbol(),L="a",K="w";let Ue=(t,e)=>new Proxy(t,e);const X=Object.getPrototypeOf,he=new WeakMap,ce=t=>t&&(he.has(t)?he.get(t):X(t)===Object.prototype||X(t)===Array.prototype),fe=t=>typeof t=="object"&&t!==null,de=new WeakMap,Me=t=>t[ie]||t,Re=(t,e,s)=>{if(!ce(t))return t;const r=Me(t),n=(i=>Object.isFrozen(i)||Object.values(Object.getOwnPropertyDescriptors(i)).some(c=>!c.writable))(r);let u=s&&s.get(r);return u&&u[1].f===n||(u=((i,c)=>{const o={f:c};let l=!1;const a=(h,f)=>{if(!l){let p=o[L].get(i);if(p||(p={},o[L].set(i,p)),h===K)p[K]=!0;else{let A=p[h];A||(A=new Set,p[h]=A),A.add(f)}}},g={get:(h,f)=>f===ie?i:(a("k",f),Re(Reflect.get(h,f),o[L],o.c)),has:(h,f)=>f===Fe?(l=!0,o[L].delete(i),!0):(a("h",f),Reflect.has(h,f)),getOwnPropertyDescriptor:(h,f)=>(a("o",f),Reflect.getOwnPropertyDescriptor(h,f)),ownKeys:h=>(a(K),Reflect.ownKeys(h))};return c&&(g.set=g.deleteProperty=()=>!1),[g,o]})(r,n),u[1].p=Ue(n?(i=>{let c=de.get(i);if(!c){if(Array.isArray(i))c=Array.from(i);else{const o=Object.getOwnPropertyDescriptors(i);Object.values(o).forEach(l=>{l.configurable=!0}),c=Object.create(X(i),o)}de.set(i,c)}return c})(r):r,u[0]),s&&s.set(r,u)),u[1][L]=e,u[1].c=s,u[1].p},Be=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!fe(t)||!fe(e))return!0;const n=s.get(Me(t));if(!n)return!0;if(r){const i=r.get(t);if(i&&i.n===e)return i.g;r.set(t,{n:e,g:!1})}let u=null;try{for(const i of n.h||[])if(u=Reflect.has(t,i)!==Reflect.has(e,i),u)return u;if(n[K]===!0){if(u=((i,c)=>{const o=Reflect.ownKeys(i),l=Reflect.ownKeys(c);return o.length!==l.length||o.some((a,g)=>a!==l[g])})(t,e),u)return u}else for(const i of n.o||[])if(u=!!Reflect.getOwnPropertyDescriptor(t,i)!=!!Reflect.getOwnPropertyDescriptor(e,i),u)return u;for(const i of n.k||[])if(u=Be(t[i],e[i],s,r),u)return u;return u===null&&(u=!0),u}finally{r&&r.set(t,{n:e,g:u})}},Ve=t=>!!ce(t)&&Fe in t,Se=t=>ce(t)&&t[ie]||null,Ge="h",Je="w",Qe="o",Xe="k",Z=t=>typeof t=="object"&&t!==null,_e=(t,e)=>{if(!Z(t))return t;const s=Se(t);return s!==null?(Ve(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const u=_e(n,e);Object.is(u,n)||(t[r]=u)})),t)},q=(t,e,s)=>{var r,n,u;if(!Z(t)||!Z(e))return;const i=s.get(Se(e)||e);i&&((r=i[Ge])==null||r.forEach(c=>{Reflect.has(t,c)}),i[Je]===!0&&Reflect.ownKeys(t),(n=i[Qe])==null||n.forEach(c=>{Reflect.getOwnPropertyDescriptor(t,c)}),(u=i[Xe])==null||u.forEach(c=>{q(t[c],e[c],s)}))},U="o",V="r",G="a";function Ze(t,e){var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,u=[],i=e!=null&&e.noWeakMap?null:new WeakMap;return o=>{const l=i==null?void 0:i.get(o);if(l)return l[V];for(let p=0;p<n;p+=1){const A=u[(r+p)%n];if(!A)break;if(!Be(A[U],o,A[G],new WeakMap))return q(o,A[U],A[G]),i==null||i.set(o,A),A[V]}const a=new WeakMap,g=Re(o,a),h=_e(t(g),new Set);q(o,o,a);const f={[U]:o,[V]:h,[G]:a};return r=(r-1+n)%n,u[r]=f,i==null||i.set(o,f),h}}const Oe=(t,e)=>He.S.RUNTIME==="browser"?Ze(t,e):t;function _(t){return Array.isArray?Array.isArray(t):be(t)==="[object Array]"}function qe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function et(t){return t==null?"":qe(t)}function S(t){return typeof t=="string"}function Ie(t){return typeof t=="number"}function tt(t){return t===!0||t===!1||st(t)&&be(t)=="[object Boolean]"}function we(t){return typeof t=="object"}function st(t){return we(t)&&t!==null}function F(t){return t!=null}function J(t){return!t.trim().length}function be(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const rt="Incorrect 'index' type",nt=t=>`Invalid value for key ${t}`,ut=t=>`Pattern length exceeds max of ${t}.`,it=t=>`Missing ${t} property in key`,ct=t=>`Property 'weight' in key '${t}' must be a positive integer`,ge=Object.prototype.hasOwnProperty;class ot{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=ve(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 ve(t){let e=null,s=null,r=null,n=1,u=null;if(S(t)||_(t))r=t,e=pe(t),s=ee(t);else{if(!ge.call(t,"name"))throw new Error(it("name"));const i=t.name;if(r=i,ge.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(ct(i));e=pe(i),s=ee(i),u=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:u}}function pe(t){return _(t)?t:t.split(".")}function ee(t){return _(t)?t.join("."):t}function lt(t,e){let s=[],r=!1;const n=(u,i,c)=>{if(F(u))if(!i[c])s.push(u);else{let o=i[c];const l=u[o];if(!F(l))return;if(c===i.length-1&&(S(l)||Ie(l)||tt(l)))s.push(et(l));else if(_(l)){r=!0;for(let a=0,g=l.length;a<g;a+=1)n(l[a],i,c+1)}else i.length&&n(l,i,c+1)}};return n(t,S(e)?e.split("."):e,0),r?s:s[0]}const at={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ht={isCaseSensitive:!1,ignoreDiacritics:!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},ft={location:0,threshold:.6,distance:100},dt={useExtendedSearch:!1,getFn:lt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...ht,...at,...ft,...dt};const gt=/[^ ]+/g;function pt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const u=n.match(gt).length;if(s.has(u))return s.get(u);const i=1/Math.pow(u,.5*t),c=parseFloat(Math.round(i*r)/r);return s.set(u,c),c},clear(){s.clear()}}}class oe{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=pt(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,S(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();S(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(!F(e)||J(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,u)=>{let i=n.getFn?n.getFn(e):this.getFn(e,n.path);if(F(i)){if(_(i)){let c=[];const o=[{nestedArrIndex:-1,value:i}];for(;o.length;){const{nestedArrIndex:l,value:a}=o.pop();if(F(a))if(S(a)&&!J(a)){let g={v:a,i:l,n:this.norm.get(a)};c.push(g)}else _(a)&&a.forEach((g,h)=>{o.push({nestedArrIndex:h,value:g})})}r.$[u]=c}else if(S(i)&&!J(i)){let c={v:i,n:this.norm.get(i)};r.$[u]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function je(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const n=new oe({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(ve)),n.setSources(e),n.create(),n}function At(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:n}=t,u=new oe({getFn:e,fieldNormWeight:s});return u.setKeys(r),u.setIndexRecords(n),u}function N(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=d.distance,ignoreLocation:u=d.ignoreLocation}={}){const i=e/t.length;if(u)return i;const c=Math.abs(r-s);return n?i+c/n:c?1:i}function Et(t=[],e=d.minMatchCharLength){let s=[],r=-1,n=-1,u=0;for(let i=t.length;u<i;u+=1){let c=t[u];c&&r===-1?r=u:!c&&r!==-1&&(n=u-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[u-1]&&u-r>=e&&s.push([r,u-1]),s}const T=32;function Ct(t,e,s,{location:r=d.location,distance:n=d.distance,threshold:u=d.threshold,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,includeMatches:o=d.includeMatches,ignoreLocation:l=d.ignoreLocation}={}){if(e.length>T)throw new Error(ut(T));const a=e.length,g=t.length,h=Math.max(0,Math.min(r,g));let f=u,p=h;const A=c>1||o,y=A?Array(g):[];let D;for(;(D=t.indexOf(e,p))>-1;){let m=N(e,{currentLocation:D,expectedLocation:h,distance:n,ignoreLocation:l});if(f=Math.min(m,f),p=D+a,A){let I=0;for(;I<a;)y[D+I]=1,I+=1}}p=-1;let M=[],O=1,C=a+g;const j=1<<a-1;for(let m=0;m<a;m+=1){let I=0,w=C;for(;I<w;)N(e,{errors:m,currentLocation:h+w,expectedLocation:h,distance:n,ignoreLocation:l})<=f?I=w:C=w,w=Math.floor((C-I)/2+I);C=w;let le=Math.max(1,h-w+1),H=i?g:Math.min(h+w,g)+a,P=Array(H+2);P[H+1]=(1<<m)-1;for(let B=H;B>=le;B-=1){let $=B-1,ae=s[t.charAt($)];if(A&&(y[$]=+!!ae),P[B]=(P[B+1]<<1|1)&ae,m&&(P[B]|=(M[B+1]|M[B])<<1|1|M[B+1]),P[B]&j&&(O=N(e,{errors:m,currentLocation:$,expectedLocation:h,distance:n,ignoreLocation:l}),O<=f)){if(f=O,p=$,p<=h)break;le=Math.max(1,2*h-p)}}if(N(e,{errors:m+1,currentLocation:h,expectedLocation:h,distance:n,ignoreLocation:l})>f)break;M=P}const R={isMatch:p>=0,score:Math.max(.001,O)};if(A){const m=Et(y,c);m.length?o&&(R.indices=m):R.isMatch=!1}return R}function mt(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}const Y=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class Te{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:n=d.distance,includeMatches:u=d.includeMatches,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,isCaseSensitive:o=d.isCaseSensitive,ignoreDiacritics:l=d.ignoreDiacritics,ignoreLocation:a=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a},e=o?e:e.toLowerCase(),e=l?Y(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const g=(f,p)=>{this.chunks.push({pattern:f,alphabet:mt(f),startIndex:p})},h=this.pattern.length;if(h>T){let f=0;const p=h%T,A=h-p;for(;f<A;)g(this.pattern.substr(f,T),f),f+=T;if(p){const y=h-T;g(this.pattern.substr(y),y)}}else g(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=s?e:e.toLowerCase(),e=r?Y(e):e,this.pattern===e){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,e.length-1]]),A}const{location:u,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:l,ignoreLocation:a}=this.options;let g=[],h=0,f=!1;this.chunks.forEach(({pattern:A,alphabet:y,startIndex:D})=>{const{isMatch:M,score:O,indices:C}=Ct(e,A,y,{location:u+D,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:l,includeMatches:n,ignoreLocation:a});M&&(f=!0),h+=O,M&&C&&(g=[...g,...C])});let p={isMatch:f,score:f?h/this.chunks.length:1};return f&&n&&(p.indices=g),p}}class v{constructor(e){this.pattern=e}static isMultiMatch(e){return Ae(e,this.multiRegex)}static isSingleMatch(e){return Ae(e,this.singleRegex)}search(){}}function Ae(t,e){const s=t.match(e);return s?s[1]:null}class xt extends v{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 yt extends v{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 Dt extends v{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 Ft extends v{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 Mt extends v{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 Rt extends v{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 Pe extends v{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:n=d.distance,includeMatches:u=d.includeMatches,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,isCaseSensitive:o=d.isCaseSensitive,ignoreDiacritics:l=d.ignoreDiacritics,ignoreLocation:a=d.ignoreLocation}={}){super(e),this._bitapSearch=new Te(e,{location:s,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class ke extends v{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=[],u=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+u,n.push([r,s-1]);const i=!!n.length;return{isMatch:i,score:i?0:1,indices:n}}}const te=[xt,ke,Dt,Ft,Rt,Mt,yt,Pe],Ee=te.length,Bt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,St="|";function _t(t,e={}){return t.split(St).map(s=>{let r=s.trim().split(Bt).filter(u=>u&&!!u.trim()),n=[];for(let u=0,i=r.length;u<i;u+=1){const c=r[u];let o=!1,l=-1;for(;!o&&++l<Ee;){const a=te[l];let g=a.isMultiMatch(c);g&&(n.push(new a(g,e)),o=!0)}if(!o)for(l=-1;++l<Ee;){const a=te[l];let g=a.isSingleMatch(c);if(g){n.push(new a(g,e));break}}}return n})}const Ot=new Set([Pe.type,ke.type]);class It{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,ignoreDiacritics:r=d.ignoreDiacritics,includeMatches:n=d.includeMatches,minMatchCharLength:u=d.minMatchCharLength,ignoreLocation:i=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:l=d.threshold,distance:a=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:u,findAllMatches:c,ignoreLocation:i,location:o,threshold:l,distance:a},e=s?e:e.toLowerCase(),e=r?Y(e):e,this.pattern=e,this.query=_t(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,ignoreDiacritics:u}=this.options;e=n?e:e.toLowerCase(),e=u?Y(e):e;let i=0,c=[],o=0;for(let l=0,a=s.length;l<a;l+=1){const g=s[l];c.length=0,i=0;for(let h=0,f=g.length;h<f;h+=1){const p=g[h],{isMatch:A,indices:y,score:D}=p.search(e);if(A){if(i+=1,o+=D,r){const M=p.constructor.type;Ot.has(M)?c=[...c,...y]:c.push(y)}}else{o=0,i=0,c.length=0;break}}if(i){let h={isMatch:!0,score:o/i};return r&&(h.indices=c),h}}return{isMatch:!1,score:1}}}const se=[];function wt(...t){se.push(...t)}function re(t,e){for(let s=0,r=se.length;s<r;s+=1){let n=se[s];if(n.condition(t,e))return new n(t,e)}return new Te(t,e)}const W={AND:"$and",OR:"$or"},ne={PATH:"$path",PATTERN:"$val"},ue=t=>!!(t[W.AND]||t[W.OR]),bt=t=>!!t[ne.PATH],vt=t=>!_(t)&&we(t)&&!ue(t),Ce=t=>({[W.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Le(t,e,{auto:s=!0}={}){const r=n=>{let u=Object.keys(n);const i=bt(n);if(!i&&u.length>1&&!ue(n))return r(Ce(n));if(vt(n)){const o=i?n[ne.PATH]:u[0],l=i?n[ne.PATTERN]:n[o];if(!S(l))throw new Error(nt(o));const a={keyId:ee(o),pattern:l};return s&&(a.searcher=re(l,e)),a}let c={children:[],operator:u[0]};return u.forEach(o=>{const l=n[o];_(l)&&l.forEach(a=>{c.children.push(r(a))})}),c};return ue(t)||(t=Ce(t)),r(t)}function jt(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:u,score:i})=>{const c=n?n.weight:null;r*=Math.pow(i===0&&c?Number.EPSILON:i,(c||1)*(e?1:u))}),s.score=r})}function Tt(t,e){const s=t.matches;e.matches=[],F(s)&&s.forEach(r=>{if(!F(r.indices)||!r.indices.length)return;const{indices:n,value:u}=r;let i={indices:n,value:u};r.key&&(i.key=r.key.src),r.idx>-1&&(i.refIndex=r.idx),e.matches.push(i)})}function Pt(t,e){e.score=t.score}function kt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const n=[];return s&&n.push(Tt),r&&n.push(Pt),t.map(u=>{const{idx:i}=u,c={item:e[i],refIndex:i};return n.length&&n.forEach(o=>{o(u,c)}),c})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new ot(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof oe))throw new Error(rt);this._myIndex=s||je(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){F(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 u=this._docs[r];e(u,r)&&(this.removeAt(r),r-=1,n-=1,s.push(u))}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:u,sortFn:i,ignoreFieldNorm:c}=this.options;let o=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return jt(o,{ignoreFieldNorm:c}),u&&o.sort(i),Ie(s)&&s>-1&&(o=o.slice(0,s)),kt(o,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=re(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:u,i,n:c})=>{if(!F(u))return;const{isMatch:o,score:l,indices:a}=s.searchIn(u);o&&n.push({item:u,idx:i,matches:[{score:l,value:u,norm:c,indices:a}]})}),n}_searchLogical(e){const s=Le(e,this.options),r=(c,o,l)=>{if(!c.children){const{keyId:g,searcher:h}=c,f=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(o,g),searcher:h});return f&&f.length?[{idx:l,item:o,matches:f}]:[]}const a=[];for(let g=0,h=c.children.length;g<h;g+=1){const f=c.children[g],p=r(f,o,l);if(p.length)a.push(...p);else if(c.operator===W.AND)return[]}return a},n=this._myIndex.records,u={},i=[];return n.forEach(({$:c,i:o})=>{if(F(c)){let l=r(s,c,o);l.length&&(u[o]||(u[o]={idx:o,item:c,matches:[]},i.push(u[o])),l.forEach(({matches:a})=>{u[o].matches.push(...a)}))}}),i}_searchObjectList(e){const s=re(e,this.options),{keys:r,records:n}=this._myIndex,u=[];return n.forEach(({$:i,i:c})=>{if(!F(i))return;let o=[];r.forEach((l,a)=>{o.push(...this._findMatches({key:l,value:i[a],searcher:s}))}),o.length&&u.push({idx:c,item:i,matches:o})}),u}_findMatches({key:e,value:s,searcher:r}){if(!F(s))return[];let n=[];if(_(s))s.forEach(({v:u,i,n:c})=>{if(!F(u))return;const{isMatch:o,score:l,indices:a}=r.searchIn(u);o&&n.push({score:l,key:e,value:u,idx:i,norm:c,indices:a})});else{const{v:u,n:i}=s,{isMatch:c,score:o,indices:l}=r.searchIn(u);c&&n.push({score:o,key:e,value:u,norm:i,indices:l})}return n}}k.version="7.1.0";k.createIndex=je;k.parseIndex=At;k.config=d;k.parseQuery=Le;wt(It);const Lt={threshold:.3},$e=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Lt,...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))}},$t=$e(),Ne=({term:t,searcher:e=$t})=>Oe(({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}),Ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,u]=me.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:i,deleteTransform:c}=E.useDataUtils(),o=xe.useDebouncedCallback(i,t,[]),l=b.useCallback(a=>{u(a),a.length===0?c("filter"):(r!=null&&(a=r(a)),o("filter",Ne({term:a})))},[u,r]);return{value:n,onChange:l}},Ye=({children:t=s=>x.jsxRuntimeExports.jsx(ye.Text,{placeholder:"Filter",...s}),...e})=>t(Ke(e)),z={height:150},Q=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:z,children:"No Results"}),Nt=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:z,children:"Type to search"}),Kt=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h2",variant:"disabled",hideIcon:!0,style:z,children:x.jsxRuntimeExports.jsx(De.y4.Loading,{})}),Yt=({error:t})=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"error",style:z,children:t.message}),Wt=t=>t,We=({debounce:t=250,searcher:e,value:s,onChange:r,pageSize:n=15,filter:u=Wt})=>{const[i,c]=me.usePurePassthrough({value:s,onChange:r,initial:""}),o=De.useSyncedRef(i),l=b.useRef(!1),a=b.useRef(!0),g=b.useRef(0),{setSourceData:h,setEmptyContent:f,getDefaultEmptyContent:p}=E.useDataUtils(),{setHasMore:A,setOnFetchMore:y}=E.useInfiniteUtils();b.useEffect(()=>f(x.jsxRuntimeExports.jsx(Nt,{})),[f]);const D=b.useCallback((C=!1)=>{if(o.current.length>0||l.current||e==null)return;C&&(g.current=0,a.current=!0,A(!0)),l.current=!0,f(x.jsxRuntimeExports.jsx(Kt,{})),(async()=>{try{let R=await e.page(g.current,n);R=u(R),R.length===0&&f(p()??x.jsxRuntimeExports.jsx(Q,{})),R.length<n&&(a.current=!1,A(!1)),g.current+=n,h(C?R:m=>[...m,...R])}catch(R){l.current=!1,f(x.jsxRuntimeExports.jsx(Yt,{error:R}))}finally{l.current=!1}})()},[e,h,n,u]);b.useEffect(()=>{D(!0),y(D)},[D]);const M=xe.useDebouncedCallback(C=>{if(C.length===0){D(!0);return}if(e==null)return f(x.jsxRuntimeExports.jsx(Q,{}));e.search(C).then(j=>{j.length===0&&f(x.jsxRuntimeExports.jsx(Q,{})),h(u(j))}).catch(j=>{f(x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"error",children:j.message}))})},t,[e,h,f,u]),O=b.useCallback(C=>{c(C),M(C)},[c,M]);return{value:i,onChange:O}},zt=t=>x.jsxRuntimeExports.jsx(ye.Text,{placeholder:"Search",...t}),ze=({children:t=zt,...e})=>t(We(e)),Ht=Object.freeze(Object.defineProperty({__proto__:null,Column:E.Column,Core:E.Core,DataProvider:E.DataProvider,Filter:Ye,Hover:E.Hover,ItemFrame:E.ItemFrame,List:E.List,Search:ze,Selector:E.Selector,selectValueIsZero:E.selectValueIsZero,useDataContext:E.useDataContext,useDataUtils:E.useDataUtils,useFilter:Ke,useGetTransformedData:E.useGetTransformedData,useHoverContext:E.useHoverContext,useSearch:We,useSelect:E.useSelect,useSelection:E.useSelection,useSelectionContext:E.useSelectionContext,useSelectionUtils:E.useSelectionUtils,useSetSourceData:E.useSetSourceData,useSourceData:E.useSourceData,useTransformedData:E.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Ye;exports.Search=ze;exports.createFilterTransform=Ne;exports.external=Ht;exports.fuseFilter=$e;exports.proxyMemo=Oe;
|
|
1
|
+
"use strict";const E=require("./Text-CMTkSEWx.cjs"),x=require("./jsx-runtime-CITbqOLs.cjs"),b=require("react"),He=require("./css-9iEiTRNL.cjs"),me=require("./state-_FFrG5nH.cjs"),xe=require("./useDebouncedCallback-DnwYZzjR.cjs"),ye=require("./Text-C8GBHl-F.cjs"),De=require("./Divider-Dut8qPee.cjs");require("./provider-aWtsGnV8.cjs");require("./Stack-BbwDtaE6.cjs");require("./Toggle-C0lZDyeo.cjs");const Fe=Symbol(),ie=Symbol(),L="a",K="w";let Ue=(t,e)=>new Proxy(t,e);const X=Object.getPrototypeOf,he=new WeakMap,ce=t=>t&&(he.has(t)?he.get(t):X(t)===Object.prototype||X(t)===Array.prototype),fe=t=>typeof t=="object"&&t!==null,de=new WeakMap,Me=t=>t[ie]||t,Re=(t,e,s)=>{if(!ce(t))return t;const r=Me(t),n=(i=>Object.isFrozen(i)||Object.values(Object.getOwnPropertyDescriptors(i)).some(c=>!c.writable))(r);let u=s&&s.get(r);return u&&u[1].f===n||(u=((i,c)=>{const o={f:c};let l=!1;const a=(h,f)=>{if(!l){let p=o[L].get(i);if(p||(p={},o[L].set(i,p)),h===K)p[K]=!0;else{let A=p[h];A||(A=new Set,p[h]=A),A.add(f)}}},g={get:(h,f)=>f===ie?i:(a("k",f),Re(Reflect.get(h,f),o[L],o.c)),has:(h,f)=>f===Fe?(l=!0,o[L].delete(i),!0):(a("h",f),Reflect.has(h,f)),getOwnPropertyDescriptor:(h,f)=>(a("o",f),Reflect.getOwnPropertyDescriptor(h,f)),ownKeys:h=>(a(K),Reflect.ownKeys(h))};return c&&(g.set=g.deleteProperty=()=>!1),[g,o]})(r,n),u[1].p=Ue(n?(i=>{let c=de.get(i);if(!c){if(Array.isArray(i))c=Array.from(i);else{const o=Object.getOwnPropertyDescriptors(i);Object.values(o).forEach(l=>{l.configurable=!0}),c=Object.create(X(i),o)}de.set(i,c)}return c})(r):r,u[0]),s&&s.set(r,u)),u[1][L]=e,u[1].c=s,u[1].p},Be=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!fe(t)||!fe(e))return!0;const n=s.get(Me(t));if(!n)return!0;if(r){const i=r.get(t);if(i&&i.n===e)return i.g;r.set(t,{n:e,g:!1})}let u=null;try{for(const i of n.h||[])if(u=Reflect.has(t,i)!==Reflect.has(e,i),u)return u;if(n[K]===!0){if(u=((i,c)=>{const o=Reflect.ownKeys(i),l=Reflect.ownKeys(c);return o.length!==l.length||o.some((a,g)=>a!==l[g])})(t,e),u)return u}else for(const i of n.o||[])if(u=!!Reflect.getOwnPropertyDescriptor(t,i)!=!!Reflect.getOwnPropertyDescriptor(e,i),u)return u;for(const i of n.k||[])if(u=Be(t[i],e[i],s,r),u)return u;return u===null&&(u=!0),u}finally{r&&r.set(t,{n:e,g:u})}},Ve=t=>!!ce(t)&&Fe in t,Se=t=>ce(t)&&t[ie]||null,Ge="h",Je="w",Qe="o",Xe="k",Z=t=>typeof t=="object"&&t!==null,_e=(t,e)=>{if(!Z(t))return t;const s=Se(t);return s!==null?(Ve(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const u=_e(n,e);Object.is(u,n)||(t[r]=u)})),t)},q=(t,e,s)=>{var r,n,u;if(!Z(t)||!Z(e))return;const i=s.get(Se(e)||e);i&&((r=i[Ge])==null||r.forEach(c=>{Reflect.has(t,c)}),i[Je]===!0&&Reflect.ownKeys(t),(n=i[Qe])==null||n.forEach(c=>{Reflect.getOwnPropertyDescriptor(t,c)}),(u=i[Xe])==null||u.forEach(c=>{q(t[c],e[c],s)}))},U="o",V="r",G="a";function Ze(t,e){var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,u=[],i=e!=null&&e.noWeakMap?null:new WeakMap;return o=>{const l=i==null?void 0:i.get(o);if(l)return l[V];for(let p=0;p<n;p+=1){const A=u[(r+p)%n];if(!A)break;if(!Be(A[U],o,A[G],new WeakMap))return q(o,A[U],A[G]),i==null||i.set(o,A),A[V]}const a=new WeakMap,g=Re(o,a),h=_e(t(g),new Set);q(o,o,a);const f={[U]:o,[V]:h,[G]:a};return r=(r-1+n)%n,u[r]=f,i==null||i.set(o,f),h}}const Oe=(t,e)=>He.S.RUNTIME==="browser"?Ze(t,e):t;function _(t){return Array.isArray?Array.isArray(t):be(t)==="[object Array]"}function qe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function et(t){return t==null?"":qe(t)}function S(t){return typeof t=="string"}function Ie(t){return typeof t=="number"}function tt(t){return t===!0||t===!1||st(t)&&be(t)=="[object Boolean]"}function we(t){return typeof t=="object"}function st(t){return we(t)&&t!==null}function F(t){return t!=null}function J(t){return!t.trim().length}function be(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const rt="Incorrect 'index' type",nt=t=>`Invalid value for key ${t}`,ut=t=>`Pattern length exceeds max of ${t}.`,it=t=>`Missing ${t} property in key`,ct=t=>`Property 'weight' in key '${t}' must be a positive integer`,ge=Object.prototype.hasOwnProperty;class ot{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=ve(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 ve(t){let e=null,s=null,r=null,n=1,u=null;if(S(t)||_(t))r=t,e=pe(t),s=ee(t);else{if(!ge.call(t,"name"))throw new Error(it("name"));const i=t.name;if(r=i,ge.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(ct(i));e=pe(i),s=ee(i),u=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:u}}function pe(t){return _(t)?t:t.split(".")}function ee(t){return _(t)?t.join("."):t}function lt(t,e){let s=[],r=!1;const n=(u,i,c)=>{if(F(u))if(!i[c])s.push(u);else{let o=i[c];const l=u[o];if(!F(l))return;if(c===i.length-1&&(S(l)||Ie(l)||tt(l)))s.push(et(l));else if(_(l)){r=!0;for(let a=0,g=l.length;a<g;a+=1)n(l[a],i,c+1)}else i.length&&n(l,i,c+1)}};return n(t,S(e)?e.split("."):e,0),r?s:s[0]}const at={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ht={isCaseSensitive:!1,ignoreDiacritics:!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},ft={location:0,threshold:.6,distance:100},dt={useExtendedSearch:!1,getFn:lt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...ht,...at,...ft,...dt};const gt=/[^ ]+/g;function pt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const u=n.match(gt).length;if(s.has(u))return s.get(u);const i=1/Math.pow(u,.5*t),c=parseFloat(Math.round(i*r)/r);return s.set(u,c),c},clear(){s.clear()}}}class oe{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=pt(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,S(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();S(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(!F(e)||J(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,u)=>{let i=n.getFn?n.getFn(e):this.getFn(e,n.path);if(F(i)){if(_(i)){let c=[];const o=[{nestedArrIndex:-1,value:i}];for(;o.length;){const{nestedArrIndex:l,value:a}=o.pop();if(F(a))if(S(a)&&!J(a)){let g={v:a,i:l,n:this.norm.get(a)};c.push(g)}else _(a)&&a.forEach((g,h)=>{o.push({nestedArrIndex:h,value:g})})}r.$[u]=c}else if(S(i)&&!J(i)){let c={v:i,n:this.norm.get(i)};r.$[u]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function je(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const n=new oe({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(ve)),n.setSources(e),n.create(),n}function At(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:n}=t,u=new oe({getFn:e,fieldNormWeight:s});return u.setKeys(r),u.setIndexRecords(n),u}function N(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=d.distance,ignoreLocation:u=d.ignoreLocation}={}){const i=e/t.length;if(u)return i;const c=Math.abs(r-s);return n?i+c/n:c?1:i}function Et(t=[],e=d.minMatchCharLength){let s=[],r=-1,n=-1,u=0;for(let i=t.length;u<i;u+=1){let c=t[u];c&&r===-1?r=u:!c&&r!==-1&&(n=u-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[u-1]&&u-r>=e&&s.push([r,u-1]),s}const T=32;function Ct(t,e,s,{location:r=d.location,distance:n=d.distance,threshold:u=d.threshold,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,includeMatches:o=d.includeMatches,ignoreLocation:l=d.ignoreLocation}={}){if(e.length>T)throw new Error(ut(T));const a=e.length,g=t.length,h=Math.max(0,Math.min(r,g));let f=u,p=h;const A=c>1||o,y=A?Array(g):[];let D;for(;(D=t.indexOf(e,p))>-1;){let m=N(e,{currentLocation:D,expectedLocation:h,distance:n,ignoreLocation:l});if(f=Math.min(m,f),p=D+a,A){let I=0;for(;I<a;)y[D+I]=1,I+=1}}p=-1;let M=[],O=1,C=a+g;const j=1<<a-1;for(let m=0;m<a;m+=1){let I=0,w=C;for(;I<w;)N(e,{errors:m,currentLocation:h+w,expectedLocation:h,distance:n,ignoreLocation:l})<=f?I=w:C=w,w=Math.floor((C-I)/2+I);C=w;let le=Math.max(1,h-w+1),H=i?g:Math.min(h+w,g)+a,P=Array(H+2);P[H+1]=(1<<m)-1;for(let B=H;B>=le;B-=1){let $=B-1,ae=s[t.charAt($)];if(A&&(y[$]=+!!ae),P[B]=(P[B+1]<<1|1)&ae,m&&(P[B]|=(M[B+1]|M[B])<<1|1|M[B+1]),P[B]&j&&(O=N(e,{errors:m,currentLocation:$,expectedLocation:h,distance:n,ignoreLocation:l}),O<=f)){if(f=O,p=$,p<=h)break;le=Math.max(1,2*h-p)}}if(N(e,{errors:m+1,currentLocation:h,expectedLocation:h,distance:n,ignoreLocation:l})>f)break;M=P}const R={isMatch:p>=0,score:Math.max(.001,O)};if(A){const m=Et(y,c);m.length?o&&(R.indices=m):R.isMatch=!1}return R}function mt(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}const Y=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class Te{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:n=d.distance,includeMatches:u=d.includeMatches,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,isCaseSensitive:o=d.isCaseSensitive,ignoreDiacritics:l=d.ignoreDiacritics,ignoreLocation:a=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a},e=o?e:e.toLowerCase(),e=l?Y(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const g=(f,p)=>{this.chunks.push({pattern:f,alphabet:mt(f),startIndex:p})},h=this.pattern.length;if(h>T){let f=0;const p=h%T,A=h-p;for(;f<A;)g(this.pattern.substr(f,T),f),f+=T;if(p){const y=h-T;g(this.pattern.substr(y),y)}}else g(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=s?e:e.toLowerCase(),e=r?Y(e):e,this.pattern===e){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,e.length-1]]),A}const{location:u,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:l,ignoreLocation:a}=this.options;let g=[],h=0,f=!1;this.chunks.forEach(({pattern:A,alphabet:y,startIndex:D})=>{const{isMatch:M,score:O,indices:C}=Ct(e,A,y,{location:u+D,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:l,includeMatches:n,ignoreLocation:a});M&&(f=!0),h+=O,M&&C&&(g=[...g,...C])});let p={isMatch:f,score:f?h/this.chunks.length:1};return f&&n&&(p.indices=g),p}}class v{constructor(e){this.pattern=e}static isMultiMatch(e){return Ae(e,this.multiRegex)}static isSingleMatch(e){return Ae(e,this.singleRegex)}search(){}}function Ae(t,e){const s=t.match(e);return s?s[1]:null}class xt extends v{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 yt extends v{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 Dt extends v{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 Ft extends v{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 Mt extends v{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 Rt extends v{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 Pe extends v{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:n=d.distance,includeMatches:u=d.includeMatches,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,isCaseSensitive:o=d.isCaseSensitive,ignoreDiacritics:l=d.ignoreDiacritics,ignoreLocation:a=d.ignoreLocation}={}){super(e),this._bitapSearch=new Te(e,{location:s,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class ke extends v{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=[],u=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+u,n.push([r,s-1]);const i=!!n.length;return{isMatch:i,score:i?0:1,indices:n}}}const te=[xt,ke,Dt,Ft,Rt,Mt,yt,Pe],Ee=te.length,Bt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,St="|";function _t(t,e={}){return t.split(St).map(s=>{let r=s.trim().split(Bt).filter(u=>u&&!!u.trim()),n=[];for(let u=0,i=r.length;u<i;u+=1){const c=r[u];let o=!1,l=-1;for(;!o&&++l<Ee;){const a=te[l];let g=a.isMultiMatch(c);g&&(n.push(new a(g,e)),o=!0)}if(!o)for(l=-1;++l<Ee;){const a=te[l];let g=a.isSingleMatch(c);if(g){n.push(new a(g,e));break}}}return n})}const Ot=new Set([Pe.type,ke.type]);class It{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,ignoreDiacritics:r=d.ignoreDiacritics,includeMatches:n=d.includeMatches,minMatchCharLength:u=d.minMatchCharLength,ignoreLocation:i=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:l=d.threshold,distance:a=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:u,findAllMatches:c,ignoreLocation:i,location:o,threshold:l,distance:a},e=s?e:e.toLowerCase(),e=r?Y(e):e,this.pattern=e,this.query=_t(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,ignoreDiacritics:u}=this.options;e=n?e:e.toLowerCase(),e=u?Y(e):e;let i=0,c=[],o=0;for(let l=0,a=s.length;l<a;l+=1){const g=s[l];c.length=0,i=0;for(let h=0,f=g.length;h<f;h+=1){const p=g[h],{isMatch:A,indices:y,score:D}=p.search(e);if(A){if(i+=1,o+=D,r){const M=p.constructor.type;Ot.has(M)?c=[...c,...y]:c.push(y)}}else{o=0,i=0,c.length=0;break}}if(i){let h={isMatch:!0,score:o/i};return r&&(h.indices=c),h}}return{isMatch:!1,score:1}}}const se=[];function wt(...t){se.push(...t)}function re(t,e){for(let s=0,r=se.length;s<r;s+=1){let n=se[s];if(n.condition(t,e))return new n(t,e)}return new Te(t,e)}const W={AND:"$and",OR:"$or"},ne={PATH:"$path",PATTERN:"$val"},ue=t=>!!(t[W.AND]||t[W.OR]),bt=t=>!!t[ne.PATH],vt=t=>!_(t)&&we(t)&&!ue(t),Ce=t=>({[W.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Le(t,e,{auto:s=!0}={}){const r=n=>{let u=Object.keys(n);const i=bt(n);if(!i&&u.length>1&&!ue(n))return r(Ce(n));if(vt(n)){const o=i?n[ne.PATH]:u[0],l=i?n[ne.PATTERN]:n[o];if(!S(l))throw new Error(nt(o));const a={keyId:ee(o),pattern:l};return s&&(a.searcher=re(l,e)),a}let c={children:[],operator:u[0]};return u.forEach(o=>{const l=n[o];_(l)&&l.forEach(a=>{c.children.push(r(a))})}),c};return ue(t)||(t=Ce(t)),r(t)}function jt(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:u,score:i})=>{const c=n?n.weight:null;r*=Math.pow(i===0&&c?Number.EPSILON:i,(c||1)*(e?1:u))}),s.score=r})}function Tt(t,e){const s=t.matches;e.matches=[],F(s)&&s.forEach(r=>{if(!F(r.indices)||!r.indices.length)return;const{indices:n,value:u}=r;let i={indices:n,value:u};r.key&&(i.key=r.key.src),r.idx>-1&&(i.refIndex=r.idx),e.matches.push(i)})}function Pt(t,e){e.score=t.score}function kt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const n=[];return s&&n.push(Tt),r&&n.push(Pt),t.map(u=>{const{idx:i}=u,c={item:e[i],refIndex:i};return n.length&&n.forEach(o=>{o(u,c)}),c})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new ot(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof oe))throw new Error(rt);this._myIndex=s||je(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){F(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 u=this._docs[r];e(u,r)&&(this.removeAt(r),r-=1,n-=1,s.push(u))}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:u,sortFn:i,ignoreFieldNorm:c}=this.options;let o=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return jt(o,{ignoreFieldNorm:c}),u&&o.sort(i),Ie(s)&&s>-1&&(o=o.slice(0,s)),kt(o,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=re(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:u,i,n:c})=>{if(!F(u))return;const{isMatch:o,score:l,indices:a}=s.searchIn(u);o&&n.push({item:u,idx:i,matches:[{score:l,value:u,norm:c,indices:a}]})}),n}_searchLogical(e){const s=Le(e,this.options),r=(c,o,l)=>{if(!c.children){const{keyId:g,searcher:h}=c,f=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(o,g),searcher:h});return f&&f.length?[{idx:l,item:o,matches:f}]:[]}const a=[];for(let g=0,h=c.children.length;g<h;g+=1){const f=c.children[g],p=r(f,o,l);if(p.length)a.push(...p);else if(c.operator===W.AND)return[]}return a},n=this._myIndex.records,u={},i=[];return n.forEach(({$:c,i:o})=>{if(F(c)){let l=r(s,c,o);l.length&&(u[o]||(u[o]={idx:o,item:c,matches:[]},i.push(u[o])),l.forEach(({matches:a})=>{u[o].matches.push(...a)}))}}),i}_searchObjectList(e){const s=re(e,this.options),{keys:r,records:n}=this._myIndex,u=[];return n.forEach(({$:i,i:c})=>{if(!F(i))return;let o=[];r.forEach((l,a)=>{o.push(...this._findMatches({key:l,value:i[a],searcher:s}))}),o.length&&u.push({idx:c,item:i,matches:o})}),u}_findMatches({key:e,value:s,searcher:r}){if(!F(s))return[];let n=[];if(_(s))s.forEach(({v:u,i,n:c})=>{if(!F(u))return;const{isMatch:o,score:l,indices:a}=r.searchIn(u);o&&n.push({score:l,key:e,value:u,idx:i,norm:c,indices:a})});else{const{v:u,n:i}=s,{isMatch:c,score:o,indices:l}=r.searchIn(u);c&&n.push({score:o,key:e,value:u,norm:i,indices:l})}return n}}k.version="7.1.0";k.createIndex=je;k.parseIndex=At;k.config=d;k.parseQuery=Le;wt(It);const Lt={threshold:.3},$e=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Lt,...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))}},$t=$e(),Ne=({term:t,searcher:e=$t})=>Oe(({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}),Ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,u]=me.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:i,deleteTransform:c}=E.useDataUtils(),o=xe.useDebouncedCallback(i,t,[]),l=b.useCallback(a=>{u(a),a.length===0?c("filter"):(r!=null&&(a=r(a)),o("filter",Ne({term:a})))},[u,r]);return{value:n,onChange:l}},Ye=({children:t=s=>x.jsxRuntimeExports.jsx(ye.Text,{placeholder:"Filter",...s}),...e})=>t(Ke(e)),z={height:150},Q=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:z,children:"No Results"}),Nt=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:z,children:"Type to search"}),Kt=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h2",variant:"disabled",hideIcon:!0,style:z,children:x.jsxRuntimeExports.jsx(De.y4.Loading,{})}),Yt=({error:t})=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"error",style:z,children:t.message}),Wt=t=>t,We=({debounce:t=250,searcher:e,value:s,onChange:r,pageSize:n=15,filter:u=Wt})=>{const[i,c]=me.usePurePassthrough({value:s,onChange:r,initial:""}),o=De.useSyncedRef(i),l=b.useRef(!1),a=b.useRef(!0),g=b.useRef(0),{setSourceData:h,setEmptyContent:f,getDefaultEmptyContent:p}=E.useDataUtils(),{setHasMore:A,setOnFetchMore:y}=E.useInfiniteUtils();b.useEffect(()=>f(x.jsxRuntimeExports.jsx(Nt,{})),[f]);const D=b.useCallback((C=!1)=>{if(o.current.length>0||l.current||e==null)return;C&&(g.current=0,a.current=!0,A(!0)),l.current=!0,f(x.jsxRuntimeExports.jsx(Kt,{})),(async()=>{try{let R=await e.page(g.current,n);R=u(R),R.length===0&&f(p()??x.jsxRuntimeExports.jsx(Q,{})),R.length<n&&(a.current=!1,A(!1)),g.current+=n,h(C?R:m=>[...m,...R])}catch(R){l.current=!1,f(x.jsxRuntimeExports.jsx(Yt,{error:R}))}finally{l.current=!1}})()},[e,h,n,u]);b.useEffect(()=>{D(!0),y(D)},[D]);const M=xe.useDebouncedCallback(C=>{if(C.length===0){D(!0);return}if(e==null)return f(x.jsxRuntimeExports.jsx(Q,{}));e.search(C).then(j=>{j.length===0&&f(x.jsxRuntimeExports.jsx(Q,{})),h(u(j))}).catch(j=>{f(x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"error",children:j.message}))})},t,[e,h,f,u]),O=b.useCallback(C=>{c(C),M(C)},[c,M]);return{value:i,onChange:O}},zt=t=>x.jsxRuntimeExports.jsx(ye.Text,{placeholder:"Search",...t}),ze=({children:t=zt,...e})=>t(We(e)),Ht=Object.freeze(Object.defineProperty({__proto__:null,Column:E.Column,Core:E.Core,DataProvider:E.DataProvider,Filter:Ye,Hover:E.Hover,ItemFrame:E.ItemFrame,List:E.List,Search:ze,Selector:E.Selector,selectValueIsZero:E.selectValueIsZero,useDataContext:E.useDataContext,useDataUtils:E.useDataUtils,useFilter:Ke,useGetTransformedData:E.useGetTransformedData,useHoverContext:E.useHoverContext,useSearch:We,useSelect:E.useSelect,useSelection:E.useSelection,useSelectionContext:E.useSelectionContext,useSelectionUtils:E.useSelectionUtils,useSetSourceData:E.useSetSourceData,useSourceData:E.useSourceData,useTransformedData:E.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Ye;exports.Search=ze;exports.createFilterTransform=Ne;exports.external=Ht;exports.fuseFilter=$e;exports.proxyMemo=Oe;
|