@weasel-js/labkit 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -6
- package/dist/_dts/{DrawCommand-BkZztJsW.d.ts → DrawCommand-C_XboUpz.d.ts} +48 -6
- package/dist/_dts/{index-CFlDPeZh.d.ts → index-JFAYj5Tv.d.ts} +29 -7
- package/dist/_dts/types-DJ79Tg5J.d.ts +56 -0
- package/dist/_dts/useTrialState-BMNIx3Cy.d.ts +171 -0
- package/dist/canvas/index.d.ts +2 -1
- package/dist/{chunk-BAPZPDDA.js → chunk-73KA7WBO.js} +425 -394
- package/dist/chunk-73KA7WBO.js.map +1 -0
- package/dist/{chunk-DWV7SFKR.js → chunk-BOHF3PQO.js} +4397 -3726
- package/dist/chunk-BOHF3PQO.js.map +1 -0
- package/dist/{chunk-DEWXYFEU.js → chunk-G5TJVQQT.js} +3 -3
- package/dist/{chunk-DEWXYFEU.js.map → chunk-G5TJVQQT.js.map} +1 -1
- package/dist/chunk-LN6JDUGB.js +106 -0
- package/dist/chunk-LN6JDUGB.js.map +1 -0
- package/dist/chunk-THBG7FQZ.js +167 -0
- package/dist/chunk-THBG7FQZ.js.map +1 -0
- package/dist/chunk-VUU5UXHE.js +491 -0
- package/dist/chunk-VUU5UXHE.js.map +1 -0
- package/dist/dragdrop/index.d.ts +2 -1
- package/dist/index.d.ts +211 -151
- package/dist/index.js +317 -169
- package/dist/index.js.map +1 -1
- package/dist/job/index.d.ts +13 -0
- package/dist/job/index.js +3 -0
- package/dist/job/index.js.map +1 -0
- package/dist/layers/index.d.ts +3 -2
- package/dist/passthrough/weasel-canvas.d.ts +1 -1
- package/dist/passthrough/weasel-canvas.js +1 -1
- package/dist/passthrough/weasel-ui.d.ts +29 -6
- package/dist/passthrough/weasel-ui.js +2 -2
- package/dist/state/index.d.ts +12 -12
- package/dist/state/index.js +5 -5
- package/dist/state/index.js.map +1 -1
- package/dist/styles.css +31 -13
- package/dist/surface/index.d.ts +77 -0
- package/dist/surface/index.js +3 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/ui/layers/index.js +3 -3
- package/dist/undo/index.d.ts +2 -1
- package/package.json +9 -1
- package/src/canvas/AGENTS.md +14 -2
- package/src/canvas/useOrbit.test.ts +71 -0
- package/src/canvas/useOrbit.ts +149 -0
- package/src/dragdrop/dragDrop.test.tsx +4 -7
- package/src/index.test.ts +70 -0
- package/src/index.ts +24 -7
- package/src/instrument/SineWave.smoke.test.tsx +2 -1
- package/src/instrument/capabilityDetector.ts +1 -1
- package/src/instrument/types.ts +30 -6
- package/src/job/index.ts +3 -0
- package/src/job/types.ts +47 -0
- package/src/job/useJob.test.tsx +210 -0
- package/src/job/useJob.ts +134 -0
- package/src/lab/Lab.less +16 -0
- package/src/lab/Lab.stories.tsx +6 -7
- package/src/lab/Lab.test.tsx +25 -25
- package/src/lab/Lab.tsx +50 -50
- package/src/lab/LabContext.ts +12 -12
- package/src/lab/LabShell.tsx +1 -1
- package/src/lab/{WorkspaceGrid.less → Workspace.less} +2 -2
- package/src/lab/{WorkspaceGrid.stories.tsx → Workspace.stories.tsx} +13 -13
- package/src/lab/Workspace.surface.test.tsx +49 -0
- package/src/lab/{WorkspaceGrid.test.tsx → Workspace.test.tsx} +24 -24
- package/src/lab/{WorkspaceGrid.tsx → Workspace.tsx} +32 -19
- package/src/lab/index.ts +2 -2
- package/src/layers/AGENTS.md +3 -3
- package/src/primitives/Toolbar.stories.tsx +2 -2
- package/src/state/SingletonExperiment.test.tsx +8 -8
- package/src/state/SingletonExperiment.tsx +9 -9
- package/src/state/context.tsx +12 -12
- package/src/state/document.test.ts +369 -0
- package/src/state/document.ts +194 -0
- package/src/state/helpers.test.ts +74 -46
- package/src/state/helpers.ts +21 -29
- package/src/state/index.ts +16 -8
- package/src/state/store.test.ts +440 -41
- package/src/state/store.ts +165 -102
- package/src/state/types.ts +32 -13
- package/src/state/{useExperimentState.test.tsx → useTrialState.test.tsx} +18 -18
- package/src/state/useTrialState.ts +29 -0
- package/src/state/view.test.ts +127 -0
- package/src/state/view.ts +18 -0
- package/src/styles.less +2 -2
- package/src/surface/AGENTS.md +64 -0
- package/src/surface/SurfaceContext.ts +5 -0
- package/src/surface/composeRects.test.ts +50 -0
- package/src/surface/composeRects.ts +19 -0
- package/src/surface/deviceRect.test.ts +40 -0
- package/src/surface/deviceRect.ts +19 -0
- package/src/surface/index.ts +7 -0
- package/src/surface/rect.ts +16 -0
- package/src/surface/useSurfaceTile.test.tsx +67 -0
- package/src/surface/useSurfaceTile.ts +32 -0
- package/src/surface/useTiledSurface.test.tsx +231 -0
- package/src/surface/useTiledSurface.ts +157 -0
- package/src/theme/base.less +1 -1
- package/src/{workspace → trial}/DefaultSidebar.tsx +3 -3
- package/src/trial/DefaultStatusBar.tsx +19 -0
- package/src/{workspace → trial}/DefaultToolbar.tsx +9 -8
- package/src/trial/Trial.canvas.test.tsx +80 -0
- package/src/trial/Trial.job.test.tsx +75 -0
- package/src/{workspace/Workspace.less → trial/Trial.less} +13 -1
- package/src/{workspace/Workspace.stories.tsx → trial/Trial.stories.tsx} +20 -18
- package/src/{workspace/Workspace.test.tsx → trial/Trial.test.tsx} +26 -26
- package/src/{workspace/Workspace.tsx → trial/Trial.tsx} +77 -46
- package/src/{workspace/WorkspaceChrome.tsx → trial/TrialChrome.tsx} +73 -46
- package/src/{workspace → trial}/index.ts +13 -13
- package/src/{workspace → trial}/slotTypes.ts +18 -17
- package/src/{workspace/workspaceOps.test.ts → trial/trialOps.test.ts} +38 -44
- package/src/trial/trialOps.ts +99 -0
- package/src/ui/format.test.ts +33 -0
- package/src/ui/format.ts +11 -0
- package/src/ui/properties/CurveField.tsx +6 -6
- package/src/ui/properties/SpeechBalloonPanels.stories.tsx +3 -3
- package/dist/_dts/useExperimentState-D7EQnnwJ.d.ts +0 -151
- package/dist/chunk-BAPZPDDA.js.map +0 -1
- package/dist/chunk-DWV7SFKR.js.map +0 -1
- package/dist/chunk-KSTEW2AF.js +0 -367
- package/dist/chunk-KSTEW2AF.js.map +0 -1
- package/src/state/useExperimentState.ts +0 -31
- package/src/workspace/DefaultStatusBar.tsx +0 -18
- package/src/workspace/workspaceOps.ts +0 -102
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useActionsRegistry, useOptionalDepRegistry, evaluateEnabled, eligibleContribution, oklchToOklab, oklabToSrgbU8, rgbaToHex, UnknownIcon } from './chunk-
|
|
1
|
+
import { useActionsRegistry, useOptionalDepRegistry, evaluateEnabled, eligibleContribution, oklchToOklab, oklabToSrgbU8, rgbaToHex, UnknownIcon } from './chunk-BOHF3PQO.js';
|
|
2
2
|
import { forwardRef, useRef, useMemo, useCallback, useEffect, useImperativeHandle, useSyncExternalStore, useState, useLayoutEffect, useId, Fragment as Fragment$1 } from 'react';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { Checkbox, TextField, Label, Input, Text, FieldError, NumberField, Group, Button, Switch, Focusable, RadioGroup, Radio, Slider, SliderOutput, SliderTrack, SliderThumb, Select, SelectValue, Popover, ListBox, ListBoxItem, ModalOverlay, Modal, Dialog, Heading, Tabs, TabList, Tab, TabPanel, ComboBox, TooltipTrigger, Tooltip, OverlayArrow } from 'react-aria-components';
|
|
@@ -57,7 +57,7 @@ var g = {
|
|
|
57
57
|
axis: "_axis_1djm7_34"
|
|
58
58
|
};
|
|
59
59
|
var _ = forwardRef(function(e19, c16) {
|
|
60
|
-
let { width: l17, height: u15, xRange: d12 = [0, 1], yRange: f12 = [0, 1], grid:
|
|
60
|
+
let { width: l17, height: u15, xRange: d12 = [0, 1], yRange: f12 = [0, 1], grid: _7, axes: v4, tabIndex: y4, className: b3, style: x3, onPointerDown: S3, onKeyDown: C3, children: w3 } = e19, T3 = useRef(null), E3 = useMemo(() => ({
|
|
61
61
|
xMin: d12[0],
|
|
62
62
|
xMax: d12[1],
|
|
63
63
|
yMin: f12[0],
|
|
@@ -119,8 +119,8 @@ var _ = forwardRef(function(e19, c16) {
|
|
|
119
119
|
onPointerDown: S3 ? k3 : void 0,
|
|
120
120
|
onKeyDown: C3,
|
|
121
121
|
children: [
|
|
122
|
-
|
|
123
|
-
let e20 =
|
|
122
|
+
_7 && (() => {
|
|
123
|
+
let e20 = _7.divisions ?? 3, t25 = _7.color, n30 = [];
|
|
124
124
|
for (let t26 = 1; t26 <= e20; t26++) n30.push(t26 / (e20 + 1));
|
|
125
125
|
return /* @__PURE__ */ jsxs("g", { children: [n30.map((e21) => /* @__PURE__ */ jsx("line", {
|
|
126
126
|
"data-plot-element": "grid",
|
|
@@ -140,8 +140,8 @@ var _ = forwardRef(function(e19, c16) {
|
|
|
140
140
|
y2: e21 * u15
|
|
141
141
|
}, `gy-${e21}`))] });
|
|
142
142
|
})(),
|
|
143
|
-
|
|
144
|
-
let e20 =
|
|
143
|
+
v4 !== false && v4 !== null && (() => {
|
|
144
|
+
let e20 = v4?.color;
|
|
145
145
|
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("line", {
|
|
146
146
|
"data-plot-element": "axis",
|
|
147
147
|
className: g.axis,
|
|
@@ -213,7 +213,7 @@ function p2(e19, t25) {
|
|
|
213
213
|
return t25 ? `${e19} (${t25})` : e19;
|
|
214
214
|
}
|
|
215
215
|
function m2(m9) {
|
|
216
|
-
let { group:
|
|
216
|
+
let { group: h7, orientation: g6 = "horizontal", icons: _7, labels: v4, className: y4 } = m9, b3 = useActionsRegistry(), x3 = useOptionalDepRegistry(), S3 = useSyncExternalStore(b3 ? b3.subscribe : d2, b3 ? b3.list : () => u2, b3 ? b3.list : () => u2).filter((e19) => e19.group === h7), C3 = x3 ? {
|
|
217
217
|
selection: x3.get("selection"),
|
|
218
218
|
scene: x3.get("scene"),
|
|
219
219
|
history: x3.get("history"),
|
|
@@ -225,13 +225,13 @@ function m2(m9) {
|
|
|
225
225
|
return /* @__PURE__ */ jsx("div", {
|
|
226
226
|
className: [
|
|
227
227
|
l2.bar,
|
|
228
|
-
|
|
228
|
+
g6 === "vertical" && l2.vertical,
|
|
229
229
|
y4
|
|
230
230
|
].filter(Boolean).join(" "),
|
|
231
231
|
role: "toolbar",
|
|
232
|
-
"aria-label": `${
|
|
232
|
+
"aria-label": `${h7} actions`,
|
|
233
233
|
children: S3.map((n30) => {
|
|
234
|
-
let a22 =
|
|
234
|
+
let a22 = v4?.[n30.id] ?? n30.label, o20 = f2(n30, _7?.[n30.id]), { enabled: u15 } = evaluateEnabled(n30, C3), d12 = !u15, m10 = p2(a22, n30.shortcut);
|
|
235
235
|
return /* @__PURE__ */ jsxs(o2, {
|
|
236
236
|
isDisabled: d12,
|
|
237
237
|
children: [/* @__PURE__ */ jsx(Focusable, {
|
|
@@ -375,9 +375,9 @@ function _2({ variant: e19, focused: a22, params: c16 }) {
|
|
|
375
375
|
let n30 = new ResizeObserver(t25);
|
|
376
376
|
return n30.observe(e20), () => n30.disconnect();
|
|
377
377
|
}, []);
|
|
378
|
-
let m9 = l17.holeRadius / f12.w * 100,
|
|
379
|
-
for (let e20 = 0; e20 <
|
|
380
|
-
let t25 = (e20 + 0.5) /
|
|
378
|
+
let m9 = l17.holeRadius / f12.w * 100, h7 = l17.holeRadius / f12.h * 100, _7 = Math.max(2, Math.round(f12.w / l17.holePitch)), v4 = Math.max(2, Math.round(f12.h / l17.holePitch)), y4 = [];
|
|
379
|
+
for (let e20 = 0; e20 < _7; e20++) {
|
|
380
|
+
let t25 = (e20 + 0.5) / _7;
|
|
381
381
|
y4.push({
|
|
382
382
|
cx: t25 * 100,
|
|
383
383
|
cy: 0
|
|
@@ -386,8 +386,8 @@ function _2({ variant: e19, focused: a22, params: c16 }) {
|
|
|
386
386
|
cy: 100
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
for (let e20 = 0; e20 <
|
|
390
|
-
let t25 = (e20 + 0.5) /
|
|
389
|
+
for (let e20 = 0; e20 < v4; e20++) {
|
|
390
|
+
let t25 = (e20 + 0.5) / v4;
|
|
391
391
|
y4.push({
|
|
392
392
|
cx: 0,
|
|
393
393
|
cy: t25 * 100
|
|
@@ -416,7 +416,7 @@ function _2({ variant: e19, focused: a22, params: c16 }) {
|
|
|
416
416
|
cx: e20.cx,
|
|
417
417
|
cy: e20.cy,
|
|
418
418
|
rx: m9,
|
|
419
|
-
ry:
|
|
419
|
+
ry: h7,
|
|
420
420
|
fill: "black"
|
|
421
421
|
}, t25))]
|
|
422
422
|
}) }),
|
|
@@ -620,15 +620,15 @@ function O({ variant: e19, focused: t25, params: a22 }) {
|
|
|
620
620
|
let n30 = new ResizeObserver(t26);
|
|
621
621
|
return n30.observe(e20), () => n30.disconnect();
|
|
622
622
|
}, []);
|
|
623
|
-
let f12 = Math.max(60, Math.min(c16.pointDepth, 110)), p11 = Math.max(20, Math.min(c16.shoulderY, f12 - 5)), m9 = p11 + (f12 - p11) * Math.max(0.1, Math.min(c16.curveTightness, 1)),
|
|
624
|
-
`M ${
|
|
625
|
-
`L ${(100 -
|
|
626
|
-
`A ${
|
|
623
|
+
let f12 = Math.max(60, Math.min(c16.pointDepth, 110)), p11 = Math.max(20, Math.min(c16.shoulderY, f12 - 5)), m9 = p11 + (f12 - p11) * Math.max(0.1, Math.min(c16.curveTightness, 1)), h7 = Math.max(0, Math.min(c16.erosion, 1)) * 12, g6 = h7 / u15.w * 100, _7 = h7 / u15.h * 100, v4 = [
|
|
624
|
+
`M ${g6.toFixed(3)} 0`,
|
|
625
|
+
`L ${(100 - g6).toFixed(3)} 0`,
|
|
626
|
+
`A ${g6.toFixed(3)} ${_7.toFixed(3)} 0 0 1 100 ${_7.toFixed(3)}`,
|
|
627
627
|
`L 100 ${p11}`,
|
|
628
628
|
`Q 100 ${m9} 50 ${f12}`,
|
|
629
629
|
`Q 0 ${m9} 0 ${p11}`,
|
|
630
|
-
`L 0 ${
|
|
631
|
-
`A ${
|
|
630
|
+
`L 0 ${_7.toFixed(3)}`,
|
|
631
|
+
`A ${g6.toFixed(3)} ${_7.toFixed(3)} 0 0 1 ${g6.toFixed(3)} 0`,
|
|
632
632
|
"Z"
|
|
633
633
|
].join(" ");
|
|
634
634
|
return /* @__PURE__ */ jsxs("g", {
|
|
@@ -636,15 +636,15 @@ function O({ variant: e19, focused: t25, params: a22 }) {
|
|
|
636
636
|
children: [
|
|
637
637
|
(e19 === "solid" || e19 === "subtle") && /* @__PURE__ */ jsx("path", {
|
|
638
638
|
className: "badge-fill",
|
|
639
|
-
d:
|
|
639
|
+
d: v4
|
|
640
640
|
}),
|
|
641
641
|
(e19 === "outline" || e19 === "solid") && /* @__PURE__ */ jsx("path", {
|
|
642
642
|
className: "badge-stroke",
|
|
643
|
-
d:
|
|
643
|
+
d: v4
|
|
644
644
|
}),
|
|
645
645
|
t25 && /* @__PURE__ */ jsx("path", {
|
|
646
646
|
className: "badge-focus",
|
|
647
|
-
d:
|
|
647
|
+
d: v4,
|
|
648
648
|
transform: "translate(50 50) scale(1.06) translate(-50 -50)"
|
|
649
649
|
})
|
|
650
650
|
]
|
|
@@ -1276,14 +1276,14 @@ var ge = {
|
|
|
1276
1276
|
let r28 = {
|
|
1277
1277
|
...he,
|
|
1278
1278
|
...e19
|
|
1279
|
-
}, i24 = 100 / t25, a22 = 100 / n30, o20 = Math.max(0, Math.min(r28.erosion, 1)), s18 = Math.max(0.1, Math.min(r28.eccentricity, 10)), c16 = Math.min(t25, n30) / 2 * o20, l17 = c16 * i24 * s18, u15 = c16 * a22 / s18, d12 = Math.max(0, Math.min(l17, 50)), f12 = Math.max(0, Math.min(u15, 50)), p11 = (100 - 2 * d12) / i24, m9 = (100 - 2 * f12) / a22,
|
|
1279
|
+
}, i24 = 100 / t25, a22 = 100 / n30, o20 = Math.max(0, Math.min(r28.erosion, 1)), s18 = Math.max(0.1, Math.min(r28.eccentricity, 10)), c16 = Math.min(t25, n30) / 2 * o20, l17 = c16 * i24 * s18, u15 = c16 * a22 / s18, d12 = Math.max(0, Math.min(l17, 50)), f12 = Math.max(0, Math.min(u15, 50)), p11 = (100 - 2 * d12) / i24, m9 = (100 - 2 * f12) / a22, h7 = c16 + c16 || 1, g6 = Math.PI * h7 * 1 / 4, _7 = [
|
|
1280
1280
|
{
|
|
1281
1281
|
kind: "h-edge",
|
|
1282
1282
|
cssLen: p11
|
|
1283
1283
|
},
|
|
1284
1284
|
{
|
|
1285
1285
|
kind: "tr-arc",
|
|
1286
|
-
cssLen:
|
|
1286
|
+
cssLen: g6
|
|
1287
1287
|
},
|
|
1288
1288
|
{
|
|
1289
1289
|
kind: "v-edge",
|
|
@@ -1291,7 +1291,7 @@ var ge = {
|
|
|
1291
1291
|
},
|
|
1292
1292
|
{
|
|
1293
1293
|
kind: "br-arc",
|
|
1294
|
-
cssLen:
|
|
1294
|
+
cssLen: g6
|
|
1295
1295
|
},
|
|
1296
1296
|
{
|
|
1297
1297
|
kind: "h-edge-b",
|
|
@@ -1299,7 +1299,7 @@ var ge = {
|
|
|
1299
1299
|
},
|
|
1300
1300
|
{
|
|
1301
1301
|
kind: "bl-arc",
|
|
1302
|
-
cssLen:
|
|
1302
|
+
cssLen: g6
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
1305
1305
|
kind: "v-edge-l",
|
|
@@ -1307,14 +1307,14 @@ var ge = {
|
|
|
1307
1307
|
},
|
|
1308
1308
|
{
|
|
1309
1309
|
kind: "tl-arc",
|
|
1310
|
-
cssLen:
|
|
1310
|
+
cssLen: g6
|
|
1311
1311
|
}
|
|
1312
|
-
],
|
|
1313
|
-
for (let e20 of
|
|
1314
|
-
let y4 =
|
|
1312
|
+
], v4 = [0];
|
|
1313
|
+
for (let e20 of _7) v4.push(v4[v4.length - 1] + e20.cssLen);
|
|
1314
|
+
let y4 = v4[v4.length - 1], b3 = (e20) => {
|
|
1315
1315
|
let t26 = (e20 % y4 + y4) % y4, n31 = 0;
|
|
1316
|
-
for (; n31 <
|
|
1317
|
-
let r29 = t26 -
|
|
1316
|
+
for (; n31 < _7.length - 1 && t26 > v4[n31 + 1]; ) n31++;
|
|
1317
|
+
let r29 = t26 - v4[n31], i25 = _7[n31], a23 = i25.cssLen > 0 ? r29 / i25.cssLen : 0;
|
|
1318
1318
|
switch (i25.kind) {
|
|
1319
1319
|
case "h-edge":
|
|
1320
1320
|
return {
|
|
@@ -1414,12 +1414,12 @@ var ge = {
|
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
1416
1416
|
C3 = e20.reduce((e21, t26, n31) => e21 + (n31 === 0 ? `M ${t26.x.toFixed(3)} ${t26.y.toFixed(3)}` : ` L ${t26.x.toFixed(3)} ${t26.y.toFixed(3)}`), "") + " Z", w3 = (e21) => {
|
|
1417
|
-
let t26 = (e21 % y4 + y4) % y4, n31 = b3(t26), r29 = n31.x, o21 = S3(n31.x, n31.y), s19 = y4 / 480, c17 = b3(t26 - s19), l18 = b3(t26 + s19), u16 = c17.x, d13 = S3(c17.x, c17.y), f13 = l18.x, p12 = S3(l18.x, l18.y), m10 = (f13 - u16) / i24,
|
|
1417
|
+
let t26 = (e21 % y4 + y4) % y4, n31 = b3(t26), r29 = n31.x, o21 = S3(n31.x, n31.y), s19 = y4 / 480, c17 = b3(t26 - s19), l18 = b3(t26 + s19), u16 = c17.x, d13 = S3(c17.x, c17.y), f13 = l18.x, p12 = S3(l18.x, l18.y), m10 = (f13 - u16) / i24, h8 = (p12 - d13) / a22, g7 = Math.hypot(m10, h8) || 1;
|
|
1418
1418
|
return {
|
|
1419
1419
|
x: r29,
|
|
1420
1420
|
y: o21,
|
|
1421
|
-
nx:
|
|
1422
|
-
ny: -m10 /
|
|
1421
|
+
nx: h8 / g7,
|
|
1422
|
+
ny: -m10 / g7
|
|
1423
1423
|
};
|
|
1424
1424
|
};
|
|
1425
1425
|
}
|
|
@@ -1497,11 +1497,11 @@ var ye = {
|
|
|
1497
1497
|
var J = 0.62;
|
|
1498
1498
|
function be(e19, t25, n30, r28, i24, a22, o20) {
|
|
1499
1499
|
if (i24 === "flat") return [t25];
|
|
1500
|
-
let s18 = i24 === "out" ? 1 : -1, c16 = t25[0] - e19[0], l17 = t25[1] - e19[1], u15 = Math.hypot(c16, l17) || 1, d12 = c16 / u15, f12 = l17 / u15, p11 = (e19[0] + t25[0]) / 2, m9 = (e19[1] + t25[1]) / 2,
|
|
1501
|
-
k3.push(
|
|
1500
|
+
let s18 = i24 === "out" ? 1 : -1, c16 = t25[0] - e19[0], l17 = t25[1] - e19[1], u15 = Math.hypot(c16, l17) || 1, d12 = c16 / u15, f12 = l17 / u15, p11 = (e19[0] + t25[0]) / 2, m9 = (e19[1] + t25[1]) / 2, h7 = p11 + n30 * s18 * a22 * J, g6 = m9 + r28 * s18 * a22 * J, _7 = a22 * Math.sqrt(Math.max(0, 1 - J * J)), v4 = [p11 - d12 * _7, m9 - f12 * _7], y4 = [p11 + d12 * _7, m9 + f12 * _7], b3 = [p11 + n30 * s18 * (a22 + a22 * (1 - J)), m9 + r28 * s18 * (a22 + a22 * (1 - J))], x3 = Math.hypot(v4[0] - h7, v4[1] - g6), S3 = Math.atan2(v4[1] - g6, v4[0] - h7), C3 = Math.atan2(y4[1] - g6, y4[0] - h7), w3 = Math.atan2(b3[1] - g6, b3[0] - h7), T3 = Math.PI * 2, E3 = ((w3 - S3) % T3 + T3) % T3, D3 = ((C3 - S3) % T3 + T3) % T3, O3 = E3 < D3 ? D3 : D3 - T3, k3 = [];
|
|
1501
|
+
k3.push(v4);
|
|
1502
1502
|
for (let e20 = 1; e20 <= o20; e20++) {
|
|
1503
1503
|
let t26 = S3 + e20 / o20 * O3;
|
|
1504
|
-
k3.push([
|
|
1504
|
+
k3.push([h7 + x3 * Math.cos(t26), g6 + x3 * Math.sin(t26)]);
|
|
1505
1505
|
}
|
|
1506
1506
|
return k3.push(t25), k3;
|
|
1507
1507
|
}
|
|
@@ -1550,12 +1550,12 @@ function Te(e19 = {}) {
|
|
|
1550
1550
|
let t25 = {
|
|
1551
1551
|
...Se,
|
|
1552
1552
|
...e19
|
|
1553
|
-
}, n30 = Math.max(5, Math.min(t25.spikeR, 50)), r28 = Math.max(5, Math.min(t25.lobeR, 50 * Math.SQRT2)), i24 = Math.max(0, Math.min(t25.valleyR, Math.min(n30, r28))), a22 = Math.max(0.05, Math.min(t25.valleyAt, 0.95)), o20 = Math.max(0.2, t25.spikeCurvature), s18 = Math.max(-0.95, Math.min(t25.spikeBend, 0.95)), c16 = Math.max(0, Math.min(t25.spikeTipErosion, 1)), l17 = Math.max(0.2, t25.lobeCurvature), u15 = Math.max(-0.95, Math.min(t25.lobeBend, 0.95)), d12 = Math.max(0, Math.min(t25.lobeTipErosion, 1)), f12 = Math.max(0, t25.valleySmooth), p11 = t25.rotation * Math.PI / 180, m9 = Math.max(24, Math.floor(t25.samples)),
|
|
1553
|
+
}, n30 = Math.max(5, Math.min(t25.spikeR, 50)), r28 = Math.max(5, Math.min(t25.lobeR, 50 * Math.SQRT2)), i24 = Math.max(0, Math.min(t25.valleyR, Math.min(n30, r28))), a22 = Math.max(0.05, Math.min(t25.valleyAt, 0.95)), o20 = Math.max(0.2, t25.spikeCurvature), s18 = Math.max(-0.95, Math.min(t25.spikeBend, 0.95)), c16 = Math.max(0, Math.min(t25.spikeTipErosion, 1)), l17 = Math.max(0.2, t25.lobeCurvature), u15 = Math.max(-0.95, Math.min(t25.lobeBend, 0.95)), d12 = Math.max(0, Math.min(t25.lobeTipErosion, 1)), f12 = Math.max(0, t25.valleySmooth), p11 = t25.rotation * Math.PI / 180, m9 = Math.max(24, Math.floor(t25.samples)), h7 = [];
|
|
1554
1554
|
for (let e20 = 0; e20 < m9; e20++) {
|
|
1555
|
-
let t26 = e20 / m9 * 2 * Math.PI,
|
|
1556
|
-
|
|
1555
|
+
let t26 = e20 / m9 * 2 * Math.PI, g6 = Math.abs(Math.sin(2 * (t26 - p11))), _7 = (a22 - g6) / a22, v4 = (g6 - a22) / (1 - a22), y4 = Ce(i24 + (n30 - i24) * we(Math.max(0, _7), o20, s18, c16), i24 + (r28 - i24) * we(Math.max(0, v4), l17, u15, d12), f12);
|
|
1556
|
+
h7.push([50 + y4 * Math.cos(t26), 50 + y4 * Math.sin(t26)]);
|
|
1557
1557
|
}
|
|
1558
|
-
return
|
|
1558
|
+
return h7;
|
|
1559
1559
|
}
|
|
1560
1560
|
var Ee = {
|
|
1561
1561
|
build: (e19, t25, n30) => q(Te(e19), t25, n30),
|
|
@@ -2130,7 +2130,7 @@ var Ze = {
|
|
|
2130
2130
|
dx: 0,
|
|
2131
2131
|
dy: 0
|
|
2132
2132
|
};
|
|
2133
|
-
let m9 = 1 - Math.abs(p11) / c16,
|
|
2133
|
+
let m9 = 1 - Math.abs(p11) / c16, h7 = i24(f12), g6 = h7.nx, _7 = h7.ny, v4 = Math.abs(h7.nx), y4 = Math.abs(h7.ny), b3 = Math.min(1, 2 * v4 * y4), x3 = (y4 > v4 ? a22.vertScale : a22.horzScale) * (1 - b3) + a22.diagonalScale * b3, S3 = 1 + a22.irregularity * 0.5 * Math.sin(d12 * 1.73 + 0.7), C3 = Math.max(s18 * 0.5, c16), w3 = 0;
|
|
2134
2134
|
for (let e20 = 0; e20 < 5; e20++) {
|
|
2135
2135
|
let t26 = (e20 + 0.5) / 5, n31 = f12 - C3 + t26 * 2 * C3 - C3 / 5, r29 = f12 - C3 + t26 * 2 * C3 + C3 / 5, a23 = i24(n31), o21 = i24(r29);
|
|
2136
2136
|
w3 += Math.hypot(o21.nx - a23.nx, o21.ny - a23.ny) / (r29 - n31);
|
|
@@ -2138,8 +2138,8 @@ var Ze = {
|
|
|
2138
2138
|
w3 /= 5;
|
|
2139
2139
|
let T3 = a22.length * x3 * S3 * m9, E3 = Math.max(0, Math.min(a22.cornerCompensation, 1)), D3 = Math.max(0, T3 / (1 + E3 * w3 * T3)) * o20;
|
|
2140
2140
|
return {
|
|
2141
|
-
dx:
|
|
2142
|
-
dy:
|
|
2141
|
+
dx: g6 * D3,
|
|
2142
|
+
dy: _7 * D3
|
|
2143
2143
|
};
|
|
2144
2144
|
},
|
|
2145
2145
|
defaults: Xe
|
|
@@ -2191,10 +2191,10 @@ var tt = {
|
|
|
2191
2191
|
dx: 0,
|
|
2192
2192
|
dy: 0
|
|
2193
2193
|
};
|
|
2194
|
-
let
|
|
2194
|
+
let h7 = 1 - Math.abs(p11) / m9, g6 = -m9 * h7, _7 = i24(e19);
|
|
2195
2195
|
return {
|
|
2196
|
-
dx:
|
|
2197
|
-
dy:
|
|
2196
|
+
dx: _7.nx * g6 * o20,
|
|
2197
|
+
dy: _7.ny * g6 * o20
|
|
2198
2198
|
};
|
|
2199
2199
|
},
|
|
2200
2200
|
defaults: et
|
|
@@ -2221,10 +2221,10 @@ var rt = {
|
|
|
2221
2221
|
dx: 0,
|
|
2222
2222
|
dy: 0
|
|
2223
2223
|
};
|
|
2224
|
-
let
|
|
2224
|
+
let h7 = (p11 + m9) / (2 * m9), g6 = m9 * Math.sin(Math.PI * h7) * o20, _7 = i24(e19);
|
|
2225
2225
|
return {
|
|
2226
|
-
dx:
|
|
2227
|
-
dy:
|
|
2226
|
+
dx: _7.nx * g6,
|
|
2227
|
+
dy: _7.ny * g6
|
|
2228
2228
|
};
|
|
2229
2229
|
},
|
|
2230
2230
|
defaults: nt
|
|
@@ -2248,44 +2248,45 @@ function ot(e19) {
|
|
|
2248
2248
|
var st = 240;
|
|
2249
2249
|
var ct = {
|
|
2250
2250
|
Component: ({ sampler: e19, boxW: n30, boxH: r28, variant: i24, params: c16 }) => {
|
|
2251
|
+
let l17 = useId();
|
|
2251
2252
|
if (i24 !== "solid" && i24 !== "subtle") return null;
|
|
2252
|
-
let
|
|
2253
|
+
let u15 = {
|
|
2253
2254
|
...it,
|
|
2254
2255
|
...c16
|
|
2255
|
-
},
|
|
2256
|
+
}, d12 = 100 / n30, f12 = 100 / r28, p11 = ot(u15.lightFrom), m9 = e19.totalCss, h7 = [], g6 = [];
|
|
2256
2257
|
for (let t25 = 0; t25 < st; t25++) {
|
|
2257
2258
|
let n31 = e19.perimeterAt(t25 / st * m9);
|
|
2258
|
-
|
|
2259
|
+
h7.push({
|
|
2259
2260
|
x: n31.x,
|
|
2260
2261
|
y: n31.y,
|
|
2261
2262
|
side: at(n31.nx, n31.ny)
|
|
2262
|
-
}),
|
|
2263
|
-
x: n31.x - n31.nx *
|
|
2264
|
-
y: n31.y - n31.ny *
|
|
2263
|
+
}), g6.push({
|
|
2264
|
+
x: n31.x - n31.nx * u15.bevelWidth * d12,
|
|
2265
|
+
y: n31.y - n31.ny * u15.bevelWidth * f12
|
|
2265
2266
|
});
|
|
2266
2267
|
}
|
|
2267
|
-
let
|
|
2268
|
+
let _7 = [], v4 = null;
|
|
2268
2269
|
for (let e20 = 0; e20 < st; e20++) {
|
|
2269
|
-
let t25 =
|
|
2270
|
-
!
|
|
2270
|
+
let t25 = h7[e20].side;
|
|
2271
|
+
!v4 || v4.side !== t25 ? (v4 = {
|
|
2271
2272
|
side: t25,
|
|
2272
2273
|
idxs: [e20]
|
|
2273
|
-
},
|
|
2274
|
+
}, _7.push(v4)) : v4.idxs.push(e20);
|
|
2274
2275
|
}
|
|
2275
|
-
|
|
2276
|
+
_7.length > 1 && _7[0].side === _7[_7.length - 1].side && (_7[_7.length - 1].idxs = _7[_7.length - 1].idxs.concat(_7[0].idxs), _7.shift());
|
|
2276
2277
|
let y4 = (e20) => {
|
|
2277
|
-
let t25 = e20.idxs.map((e21) =>
|
|
2278
|
+
let t25 = e20.idxs.map((e21) => h7[e21]), n31 = e20.idxs.map((e21) => g6[e21]).reverse(), r29 = [...t25, ...n31];
|
|
2278
2279
|
if (r29.length === 0) return "";
|
|
2279
2280
|
let i25 = `M ${r29[0].x.toFixed(3)} ${r29[0].y.toFixed(3)}`;
|
|
2280
2281
|
for (let e21 = 1; e21 < r29.length; e21++) i25 += ` L ${r29[e21].x.toFixed(3)} ${r29[e21].y.toFixed(3)}`;
|
|
2281
2282
|
return i25 + " Z";
|
|
2282
2283
|
};
|
|
2283
2284
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
2284
|
-
id:
|
|
2285
|
+
id: l17,
|
|
2285
2286
|
children: /* @__PURE__ */ jsx("path", { d: e19.bodyPath })
|
|
2286
2287
|
}) }), /* @__PURE__ */ jsx("g", {
|
|
2287
|
-
clipPath: `url(#${
|
|
2288
|
-
children:
|
|
2288
|
+
clipPath: `url(#${l17})`,
|
|
2289
|
+
children: _7.map((e20, t25) => /* @__PURE__ */ jsx("path", {
|
|
2289
2290
|
className: p11[e20.side],
|
|
2290
2291
|
d: y4(e20)
|
|
2291
2292
|
}, t25))
|
|
@@ -2326,17 +2327,18 @@ var ut = {
|
|
|
2326
2327
|
};
|
|
2327
2328
|
var dt = {
|
|
2328
2329
|
Component: ({ sampler: e19, variant: n30, params: r28 }) => {
|
|
2330
|
+
let i24 = useId(), c16 = useId();
|
|
2329
2331
|
if (n30 !== "solid" && n30 !== "subtle") return null;
|
|
2330
|
-
let
|
|
2332
|
+
let l17 = {
|
|
2331
2333
|
...lt,
|
|
2332
2334
|
...r28
|
|
2333
|
-
},
|
|
2335
|
+
}, u15 = Math.max(0, Math.min(l17.intensity, 1));
|
|
2334
2336
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("defs", { children: [/* @__PURE__ */ jsx("clipPath", {
|
|
2335
|
-
id:
|
|
2337
|
+
id: c16,
|
|
2336
2338
|
children: /* @__PURE__ */ jsx("path", { d: e19.bodyPath })
|
|
2337
2339
|
}), /* @__PURE__ */ jsxs("linearGradient", {
|
|
2338
|
-
id:
|
|
2339
|
-
...ut[
|
|
2340
|
+
id: i24,
|
|
2341
|
+
...ut[l17.lightFrom],
|
|
2340
2342
|
children: [
|
|
2341
2343
|
/* @__PURE__ */ jsx("stop", {
|
|
2342
2344
|
offset: "0%",
|
|
@@ -2360,12 +2362,12 @@ var dt = {
|
|
|
2360
2362
|
})
|
|
2361
2363
|
]
|
|
2362
2364
|
})] }), /* @__PURE__ */ jsx("rect", {
|
|
2363
|
-
clipPath: `url(#${
|
|
2365
|
+
clipPath: `url(#${c16})`,
|
|
2364
2366
|
x: "0",
|
|
2365
2367
|
y: "0",
|
|
2366
2368
|
width: "100",
|
|
2367
2369
|
height: "100",
|
|
2368
|
-
fill: `url(#${
|
|
2370
|
+
fill: `url(#${i24})`,
|
|
2369
2371
|
style: { pointerEvents: "none" }
|
|
2370
2372
|
})] });
|
|
2371
2373
|
},
|
|
@@ -2383,7 +2385,7 @@ var pt = {
|
|
|
2383
2385
|
let i24 = {
|
|
2384
2386
|
...ft,
|
|
2385
2387
|
...r28
|
|
2386
|
-
}, c16 = 100 / e19, l17 = 100 / t25, u15 = i24.radius * c16, d12 = i24.radius * l17, f12 = i24.inset * c16, p11 = i24.inset * l17, m9 = i24.lightFrom[1] === "l" ? -i24.radius * 0.32 : i24.radius * 0.32,
|
|
2388
|
+
}, c16 = 100 / e19, l17 = 100 / t25, u15 = i24.radius * c16, d12 = i24.radius * l17, f12 = i24.inset * c16, p11 = i24.inset * l17, m9 = i24.lightFrom[1] === "l" ? -i24.radius * 0.32 : i24.radius * 0.32, h7 = i24.lightFrom[0] === "t" ? -i24.radius * 0.32 : i24.radius * 0.32;
|
|
2387
2389
|
return /* @__PURE__ */ jsx(Fragment, { children: [
|
|
2388
2390
|
[f12, p11],
|
|
2389
2391
|
[100 - f12, p11],
|
|
@@ -2400,14 +2402,14 @@ var pt = {
|
|
|
2400
2402
|
/* @__PURE__ */ jsx("ellipse", {
|
|
2401
2403
|
className: "badge-bevel-medium-dark",
|
|
2402
2404
|
cx: e20 - m9 * 0.6 * c16,
|
|
2403
|
-
cy: t26 -
|
|
2405
|
+
cy: t26 - h7 * 0.6 * l17,
|
|
2404
2406
|
rx: u15 * 0.75,
|
|
2405
2407
|
ry: d12 * 0.75
|
|
2406
2408
|
}),
|
|
2407
2409
|
/* @__PURE__ */ jsx("ellipse", {
|
|
2408
2410
|
className: "badge-bevel-light",
|
|
2409
2411
|
cx: e20 + m9 * c16,
|
|
2410
|
-
cy: t26 +
|
|
2412
|
+
cy: t26 + h7 * l17,
|
|
2411
2413
|
rx: u15 * 0.45,
|
|
2412
2414
|
ry: d12 * 0.45
|
|
2413
2415
|
})
|
|
@@ -2448,26 +2450,27 @@ function _t(e19) {
|
|
|
2448
2450
|
}
|
|
2449
2451
|
var vt = {
|
|
2450
2452
|
Component: ({ sampler: e19, variant: n30, params: r28 }) => {
|
|
2453
|
+
let i24 = useId();
|
|
2451
2454
|
if (n30 !== "solid" && n30 !== "subtle") return null;
|
|
2452
|
-
let
|
|
2455
|
+
let c16 = {
|
|
2453
2456
|
...gt,
|
|
2454
2457
|
...r28
|
|
2455
|
-
},
|
|
2456
|
-
for (let e20 = 0; e20 <
|
|
2457
|
-
let t25 = (e20 + 1) / (
|
|
2458
|
+
}, l17 = [];
|
|
2459
|
+
for (let e20 = 0; e20 < c16.lines; e20++) {
|
|
2460
|
+
let t25 = (e20 + 1) / (c16.lines + 1) * 100, n31 = _t(e20 * 2 + 1) * 4, r29 = _t(e20 * 2 + 2) * 4;
|
|
2458
2461
|
l17.push(`M -5 ${t25.toFixed(2)} Q 35 ${(t25 + n31).toFixed(2)} 60 ${t25.toFixed(2)} T 105 ${(t25 + r29).toFixed(2)}`);
|
|
2459
2462
|
}
|
|
2460
2463
|
let u15 = [];
|
|
2461
|
-
for (let e20 = 0; e20 <
|
|
2464
|
+
for (let e20 = 0; e20 < c16.knots; e20++) {
|
|
2462
2465
|
let t25 = 30 + _t(e20 * 3 + 0.7) * 30 + 20, n31 = 50 + _t(e20 * 3 + 1.3) * 30;
|
|
2463
2466
|
u15.push([t25, n31]);
|
|
2464
2467
|
}
|
|
2465
2468
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
2466
|
-
id:
|
|
2469
|
+
id: i24,
|
|
2467
2470
|
children: /* @__PURE__ */ jsx("path", { d: e19.bodyPath })
|
|
2468
2471
|
}) }), /* @__PURE__ */ jsxs("g", {
|
|
2469
|
-
clipPath: `url(#${
|
|
2470
|
-
opacity: Math.max(0, Math.min(
|
|
2472
|
+
clipPath: `url(#${i24})`,
|
|
2473
|
+
opacity: Math.max(0, Math.min(c16.intensity, 1)),
|
|
2471
2474
|
style: { pointerEvents: "none" },
|
|
2472
2475
|
children: [l17.map((e20, t25) => /* @__PURE__ */ jsx("path", {
|
|
2473
2476
|
className: "badge-stroke",
|
|
@@ -2546,46 +2549,47 @@ function Ct(e19) {
|
|
|
2546
2549
|
}
|
|
2547
2550
|
var wt = {
|
|
2548
2551
|
Component: ({ sampler: e19, boxW: n30, boxH: r28, variant: i24, params: c16 }) => {
|
|
2552
|
+
let l17 = useId();
|
|
2549
2553
|
if (i24 !== "solid" && i24 !== "subtle") return null;
|
|
2550
|
-
let
|
|
2554
|
+
let u15 = {
|
|
2551
2555
|
...xt,
|
|
2552
2556
|
...c16
|
|
2553
|
-
},
|
|
2557
|
+
}, d12 = 100 / n30, f12 = 100 / r28, p11 = e19.totalCss, { lx: m9, ly: h7 } = Ct(u15.lightFrom), g6 = [], _7 = [];
|
|
2554
2558
|
for (let t25 = 0; t25 < Q; t25++) {
|
|
2555
|
-
let n31 = e19.perimeterAt(t25 / Q * p11), r29 = -(n31.nx * m9 + n31.ny *
|
|
2556
|
-
|
|
2559
|
+
let n31 = e19.perimeterAt(t25 / Q * p11), r29 = -(n31.nx * m9 + n31.ny * h7), i25 = Math.max(0, Math.min((r29 + 1) / 2, 0.9999)), a22 = Math.floor(i25 * St.length);
|
|
2560
|
+
g6.push({
|
|
2557
2561
|
x: n31.x,
|
|
2558
2562
|
y: n31.y,
|
|
2559
2563
|
bucket: a22
|
|
2560
|
-
}),
|
|
2561
|
-
x: n31.x - n31.nx *
|
|
2562
|
-
y: n31.y - n31.ny *
|
|
2564
|
+
}), _7.push({
|
|
2565
|
+
x: n31.x - n31.nx * u15.bevelWidth * d12,
|
|
2566
|
+
y: n31.y - n31.ny * u15.bevelWidth * f12
|
|
2563
2567
|
});
|
|
2564
2568
|
}
|
|
2565
|
-
let
|
|
2569
|
+
let v4 = [], y4 = null;
|
|
2566
2570
|
for (let e20 = 0; e20 < Q; e20++) {
|
|
2567
|
-
let t25 =
|
|
2571
|
+
let t25 = g6[e20].bucket;
|
|
2568
2572
|
!y4 || y4.bucket !== t25 ? (y4 = {
|
|
2569
2573
|
bucket: t25,
|
|
2570
2574
|
idxs: [e20]
|
|
2571
|
-
},
|
|
2575
|
+
}, v4.push(y4)) : y4.idxs.push(e20);
|
|
2572
2576
|
}
|
|
2573
|
-
|
|
2577
|
+
v4.length > 1 && v4[0].bucket === v4[v4.length - 1].bucket && (v4[v4.length - 1].idxs = v4[v4.length - 1].idxs.concat(v4[0].idxs), v4.shift());
|
|
2574
2578
|
let b3 = (e20) => {
|
|
2575
2579
|
let t25 = e20.idxs[0], n31 = e20.idxs[e20.idxs.length - 1], r29 = (t25 - 1 + Q) % Q, i25 = (n31 + 1) % Q, a22 = [
|
|
2576
2580
|
r29,
|
|
2577
2581
|
...e20.idxs,
|
|
2578
2582
|
i25
|
|
2579
|
-
], o20 = a22.map((e21) =>
|
|
2583
|
+
], o20 = a22.map((e21) => g6[e21]), s18 = a22.map((e21) => _7[e21]).reverse(), c17 = [...o20, ...s18], l18 = `M ${c17[0].x.toFixed(3)} ${c17[0].y.toFixed(3)}`;
|
|
2580
2584
|
for (let e21 = 1; e21 < c17.length; e21++) l18 += ` L ${c17[e21].x.toFixed(3)} ${c17[e21].y.toFixed(3)}`;
|
|
2581
2585
|
return l18 + " Z";
|
|
2582
2586
|
};
|
|
2583
2587
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
2584
|
-
id:
|
|
2588
|
+
id: l17,
|
|
2585
2589
|
children: /* @__PURE__ */ jsx("path", { d: e19.bodyPath })
|
|
2586
2590
|
}) }), /* @__PURE__ */ jsx("g", {
|
|
2587
|
-
clipPath: `url(#${
|
|
2588
|
-
children:
|
|
2591
|
+
clipPath: `url(#${l17})`,
|
|
2592
|
+
children: v4.map((e20, t25) => /* @__PURE__ */ jsx("path", {
|
|
2589
2593
|
className: St[e20.bucket],
|
|
2590
2594
|
d: b3(e20)
|
|
2591
2595
|
}, t25))
|
|
@@ -2639,9 +2643,9 @@ var Ot = {
|
|
|
2639
2643
|
let c16 = {
|
|
2640
2644
|
...Dt,
|
|
2641
2645
|
...i24
|
|
2642
|
-
}, l17 = useId(), u15 = useId(), d12 = useId(), f12 = 100 / n30, p11 = 100 / r28, m9 = Math.max(0, Math.min(c16.irregularity, 1)),
|
|
2646
|
+
}, l17 = useId(), u15 = useId(), d12 = useId(), f12 = 100 / n30, p11 = 100 / r28, m9 = Math.max(0, Math.min(c16.irregularity, 1)), h7 = (e20) => 1 + m9 * 0.45 * Math.sin(e20 * 1.73 + 0.7), g6 = (e20) => 1 + m9 * 0.5 * Math.sin(e20 * 2.31 + 1.3), _7 = (e20) => m9 * 8 * Math.sin(e20 * 3.07 + 0.4), v4 = c16.width * f12, y4 = c16.gap * f12, b3 = c16.offset * f12, x3 = 50 - (c16.count * v4 + (c16.count - 1) * y4) / 2 + b3, S3 = [];
|
|
2643
2647
|
for (let e20 = 0; e20 < c16.count; e20++) {
|
|
2644
|
-
let t25 =
|
|
2648
|
+
let t25 = v4 * h7(e20), n31 = x3, r29 = x3 + t25, i25 = Math.tan((c16.angle + _7(e20)) * Math.PI / 180) * (f12 / p11) * 200 / 2, a22 = [
|
|
2645
2649
|
[n31 + i25, -50],
|
|
2646
2650
|
[r29 + i25, -50],
|
|
2647
2651
|
[r29 - i25, 150],
|
|
@@ -2649,8 +2653,8 @@ var Ot = {
|
|
|
2649
2653
|
];
|
|
2650
2654
|
S3.push({
|
|
2651
2655
|
points: a22.map(([e21, t26]) => `${e21.toFixed(3)},${t26.toFixed(3)}`).join(" "),
|
|
2652
|
-
opacity: Math.max(0, Math.min(c16.opacity *
|
|
2653
|
-
}), x3 +=
|
|
2656
|
+
opacity: Math.max(0, Math.min(c16.opacity * g6(e20), 1))
|
|
2657
|
+
}), x3 += v4 + y4;
|
|
2654
2658
|
}
|
|
2655
2659
|
let C3 = c16.gradientAngle * Math.PI / 180, w3 = Math.cos(C3), T3 = Math.sin(C3), E3 = 50 - w3 * 100 / 2, D3 = 50 - T3 * 100 / 2, O3 = 50 + w3 * 100 / 2, k3 = 50 + T3 * 100 / 2, A3 = Math.max(0, Math.min(c16.gradientStart, 1)), j3 = Math.max(0, Math.min(c16.gradientEnd, 1)), M3 = A3 <= j3 ? [
|
|
2656
2660
|
{
|
|
@@ -2751,17 +2755,18 @@ var kt = {
|
|
|
2751
2755
|
var At = 240;
|
|
2752
2756
|
var jt = {
|
|
2753
2757
|
Component: ({ sampler: e19, boxW: n30, boxH: r28, variant: i24, params: c16 }) => {
|
|
2758
|
+
let l17 = useId(), u15 = useId(), d12 = useId();
|
|
2754
2759
|
if (i24 !== "solid" && i24 !== "subtle" && i24 !== "outline") return null;
|
|
2755
|
-
let
|
|
2760
|
+
let f12 = {
|
|
2756
2761
|
...kt,
|
|
2757
2762
|
...c16
|
|
2758
|
-
},
|
|
2763
|
+
}, p11 = e19.totalCss, m9 = [], h7 = null;
|
|
2759
2764
|
for (let t25 = 0; t25 < At; t25++) {
|
|
2760
2765
|
let n31 = t25 / At * p11, r29 = e19.perimeterAt(n31);
|
|
2761
|
-
r29.ny < 0 ? (
|
|
2766
|
+
r29.ny < 0 ? (h7 || (h7 = [], m9.push(h7)), h7.push({
|
|
2762
2767
|
x: r29.x,
|
|
2763
2768
|
y: r29.y
|
|
2764
|
-
})) :
|
|
2769
|
+
})) : h7 = null;
|
|
2765
2770
|
}
|
|
2766
2771
|
if (m9.length > 1) {
|
|
2767
2772
|
let t25 = e19.perimeterAt(0), n31 = e19.perimeterAt((At - 1) / At * p11);
|
|
@@ -2770,18 +2775,18 @@ var jt = {
|
|
|
2770
2775
|
m9[m9.length - 1].push(...e20);
|
|
2771
2776
|
}
|
|
2772
2777
|
}
|
|
2773
|
-
let
|
|
2778
|
+
let g6 = [];
|
|
2774
2779
|
for (let e20 of m9) {
|
|
2775
2780
|
if (e20.length < 2) continue;
|
|
2776
2781
|
let t25 = `M ${e20[0].x.toFixed(3)} ${e20[0].y.toFixed(3)}`;
|
|
2777
2782
|
for (let n31 = 1; n31 < e20.length; n31++) t25 += ` L ${e20[n31].x.toFixed(3)} ${e20[n31].y.toFixed(3)}`;
|
|
2778
|
-
|
|
2783
|
+
g6.push(t25);
|
|
2779
2784
|
}
|
|
2780
|
-
let
|
|
2785
|
+
let _7 = 100 / n30, v4 = 100 / r28, y4 = Math.max(_7, v4), b3 = f12.bezelWidth * y4, x3 = f12.rimWidth * y4, S3 = Math.max(0, f12.equator - f12.equatorSpread), C3 = Math.min(100, f12.equator + f12.equatorSpread * 1.6), w3 = `color-mix(in srgb, ${f12.accent} ${f12.equatorTint}%, white)`, T3 = `color-mix(in srgb, ${f12.accent} ${f12.baseTint}%, black)`;
|
|
2781
2786
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2782
2787
|
/* @__PURE__ */ jsxs("defs", { children: [
|
|
2783
2788
|
/* @__PURE__ */ jsxs("linearGradient", {
|
|
2784
|
-
id:
|
|
2789
|
+
id: l17,
|
|
2785
2790
|
x1: "0%",
|
|
2786
2791
|
y1: "0%",
|
|
2787
2792
|
x2: "0%",
|
|
@@ -2790,19 +2795,19 @@ var jt = {
|
|
|
2790
2795
|
/* @__PURE__ */ jsx("stop", {
|
|
2791
2796
|
offset: "0%",
|
|
2792
2797
|
style: {
|
|
2793
|
-
stopColor:
|
|
2794
|
-
stopOpacity:
|
|
2798
|
+
stopColor: f12.accent,
|
|
2799
|
+
stopOpacity: f12.topAlpha
|
|
2795
2800
|
}
|
|
2796
2801
|
}),
|
|
2797
2802
|
/* @__PURE__ */ jsx("stop", {
|
|
2798
2803
|
offset: `${S3}%`,
|
|
2799
2804
|
style: {
|
|
2800
|
-
stopColor:
|
|
2801
|
-
stopOpacity:
|
|
2805
|
+
stopColor: f12.accent,
|
|
2806
|
+
stopOpacity: f12.upperAlpha
|
|
2802
2807
|
}
|
|
2803
2808
|
}),
|
|
2804
2809
|
/* @__PURE__ */ jsx("stop", {
|
|
2805
|
-
offset: `${
|
|
2810
|
+
offset: `${f12.equator}%`,
|
|
2806
2811
|
style: {
|
|
2807
2812
|
stopColor: w3,
|
|
2808
2813
|
stopOpacity: 1
|
|
@@ -2811,7 +2816,7 @@ var jt = {
|
|
|
2811
2816
|
/* @__PURE__ */ jsx("stop", {
|
|
2812
2817
|
offset: `${C3}%`,
|
|
2813
2818
|
style: {
|
|
2814
|
-
stopColor:
|
|
2819
|
+
stopColor: f12.accent,
|
|
2815
2820
|
stopOpacity: 1
|
|
2816
2821
|
}
|
|
2817
2822
|
}),
|
|
@@ -2825,24 +2830,24 @@ var jt = {
|
|
|
2825
2830
|
]
|
|
2826
2831
|
}),
|
|
2827
2832
|
/* @__PURE__ */ jsxs("linearGradient", {
|
|
2828
|
-
id:
|
|
2833
|
+
id: u15,
|
|
2829
2834
|
x1: "0%",
|
|
2830
2835
|
y1: "0%",
|
|
2831
2836
|
x2: "0%",
|
|
2832
|
-
y2: `${
|
|
2837
|
+
y2: `${f12.glossExtent}%`,
|
|
2833
2838
|
children: [
|
|
2834
2839
|
/* @__PURE__ */ jsx("stop", {
|
|
2835
2840
|
offset: "0%",
|
|
2836
2841
|
style: {
|
|
2837
2842
|
stopColor: "white",
|
|
2838
|
-
stopOpacity:
|
|
2843
|
+
stopOpacity: f12.glossTopAlpha
|
|
2839
2844
|
}
|
|
2840
2845
|
}),
|
|
2841
2846
|
/* @__PURE__ */ jsx("stop", {
|
|
2842
2847
|
offset: "60%",
|
|
2843
2848
|
style: {
|
|
2844
2849
|
stopColor: "white",
|
|
2845
|
-
stopOpacity:
|
|
2850
|
+
stopOpacity: f12.glossMidAlpha
|
|
2846
2851
|
}
|
|
2847
2852
|
}),
|
|
2848
2853
|
/* @__PURE__ */ jsx("stop", {
|
|
@@ -2855,29 +2860,29 @@ var jt = {
|
|
|
2855
2860
|
]
|
|
2856
2861
|
}),
|
|
2857
2862
|
/* @__PURE__ */ jsx("clipPath", {
|
|
2858
|
-
id:
|
|
2863
|
+
id: d12,
|
|
2859
2864
|
children: /* @__PURE__ */ jsx("path", { d: e19.bodyPath })
|
|
2860
2865
|
})
|
|
2861
2866
|
] }),
|
|
2862
2867
|
/* @__PURE__ */ jsx("path", {
|
|
2863
2868
|
d: e19.bodyPath,
|
|
2864
|
-
fill: `url(#${
|
|
2869
|
+
fill: `url(#${l17})`,
|
|
2865
2870
|
style: { pointerEvents: "none" }
|
|
2866
2871
|
}),
|
|
2867
2872
|
/* @__PURE__ */ jsx("rect", {
|
|
2868
2873
|
x: "0",
|
|
2869
2874
|
y: "0",
|
|
2870
2875
|
width: "100",
|
|
2871
|
-
height:
|
|
2872
|
-
fill: `url(#${
|
|
2873
|
-
clipPath: `url(#${
|
|
2876
|
+
height: f12.glossExtent,
|
|
2877
|
+
fill: `url(#${u15})`,
|
|
2878
|
+
clipPath: `url(#${d12})`,
|
|
2874
2879
|
style: { pointerEvents: "none" }
|
|
2875
2880
|
}),
|
|
2876
|
-
|
|
2881
|
+
g6.map((e20, t25) => /* @__PURE__ */ jsx("path", {
|
|
2877
2882
|
d: e20,
|
|
2878
2883
|
fill: "none",
|
|
2879
2884
|
stroke: "white",
|
|
2880
|
-
strokeOpacity:
|
|
2885
|
+
strokeOpacity: f12.bezelAlpha,
|
|
2881
2886
|
strokeWidth: b3,
|
|
2882
2887
|
strokeLinecap: "round",
|
|
2883
2888
|
vectorEffect: "non-scaling-stroke",
|
|
@@ -2887,7 +2892,7 @@ var jt = {
|
|
|
2887
2892
|
d: e19.bodyPath,
|
|
2888
2893
|
fill: "none",
|
|
2889
2894
|
stroke: "black",
|
|
2890
|
-
strokeOpacity:
|
|
2895
|
+
strokeOpacity: f12.rimAlpha,
|
|
2891
2896
|
strokeWidth: x3,
|
|
2892
2897
|
vectorEffect: "non-scaling-stroke",
|
|
2893
2898
|
style: { pointerEvents: "none" }
|
|
@@ -2929,37 +2934,38 @@ var $ = {
|
|
|
2929
2934
|
aqua: jt,
|
|
2930
2935
|
metal: {
|
|
2931
2936
|
Component: ({ sampler: e19, boxW: n30, boxH: r28, variant: i24, params: c16 }) => {
|
|
2937
|
+
let l17 = useId(), u15 = useId(), d12 = useId();
|
|
2932
2938
|
if (i24 !== "solid" && i24 !== "subtle" && i24 !== "outline") return null;
|
|
2933
|
-
let
|
|
2939
|
+
let f12 = {
|
|
2934
2940
|
...Mt,
|
|
2935
2941
|
...c16
|
|
2936
|
-
},
|
|
2942
|
+
}, p11 = Math.max(0, Math.min(f12.specularity, 1)), m9 = e19.totalCss, h7 = [], g6 = null;
|
|
2937
2943
|
for (let t25 = 0; t25 < Nt; t25++) {
|
|
2938
2944
|
let n31 = t25 / Nt * m9, r29 = e19.perimeterAt(n31);
|
|
2939
|
-
r29.ny < 0 ? (
|
|
2945
|
+
r29.ny < 0 ? (g6 || (g6 = [], h7.push(g6)), g6.push({
|
|
2940
2946
|
x: r29.x,
|
|
2941
2947
|
y: r29.y
|
|
2942
|
-
})) :
|
|
2948
|
+
})) : g6 = null;
|
|
2943
2949
|
}
|
|
2944
|
-
if (
|
|
2950
|
+
if (h7.length > 1) {
|
|
2945
2951
|
let t25 = e19.perimeterAt(0), n31 = e19.perimeterAt((Nt - 1) / Nt * m9);
|
|
2946
2952
|
if (t25.ny < 0 && n31.ny < 0) {
|
|
2947
|
-
let e20 =
|
|
2948
|
-
|
|
2953
|
+
let e20 = h7.shift();
|
|
2954
|
+
h7[h7.length - 1].push(...e20);
|
|
2949
2955
|
}
|
|
2950
2956
|
}
|
|
2951
|
-
let
|
|
2952
|
-
for (let e20 of
|
|
2957
|
+
let _7 = [];
|
|
2958
|
+
for (let e20 of h7) {
|
|
2953
2959
|
if (e20.length < 2) continue;
|
|
2954
2960
|
let t25 = `M ${e20[0].x.toFixed(3)} ${e20[0].y.toFixed(3)}`;
|
|
2955
2961
|
for (let n31 = 1; n31 < e20.length; n31++) t25 += ` L ${e20[n31].x.toFixed(3)} ${e20[n31].y.toFixed(3)}`;
|
|
2956
|
-
|
|
2962
|
+
_7.push(t25);
|
|
2957
2963
|
}
|
|
2958
|
-
let
|
|
2964
|
+
let v4 = 100 / n30, y4 = 100 / r28, b3 = Math.max(v4, y4), x3 = f12.bezelWidth * b3, S3 = f12.rimWidth * b3, C3 = Math.max(0, f12.equator - f12.equatorSpread), w3 = Math.min(100, f12.equator + f12.equatorSpread), T3 = 100 - Math.round(p11 * 85), E3 = `color-mix(in srgb, ${f12.accent} ${T3}%, white)`, D3 = `color-mix(in srgb, ${f12.accent} ${f12.topDarkness}%, black)`, O3 = `color-mix(in srgb, ${f12.accent} ${f12.baseDarkness}%, black)`, k3 = 100 - Math.round(p11 * 50), A3 = 100 - Math.round(p11 * 30), j3 = `color-mix(in srgb, ${f12.accent} ${k3}%, white)`, M3 = `color-mix(in srgb, ${f12.accent} ${A3}%, white)`, N3 = f12.glossAlphaTop * p11, P3 = f12.bezelAlpha * (0.4 + 0.6 * p11), F3 = f12.rimAlpha * (0.6 + 0.4 * p11);
|
|
2959
2965
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2960
2966
|
/* @__PURE__ */ jsxs("defs", { children: [
|
|
2961
2967
|
/* @__PURE__ */ jsxs("linearGradient", {
|
|
2962
|
-
id:
|
|
2968
|
+
id: l17,
|
|
2963
2969
|
x1: "0%",
|
|
2964
2970
|
y1: "0%",
|
|
2965
2971
|
x2: "0%",
|
|
@@ -2974,7 +2980,7 @@ var $ = {
|
|
|
2974
2980
|
style: { stopColor: j3 }
|
|
2975
2981
|
}),
|
|
2976
2982
|
/* @__PURE__ */ jsx("stop", {
|
|
2977
|
-
offset: `${
|
|
2983
|
+
offset: `${f12.equator}%`,
|
|
2978
2984
|
style: { stopColor: E3 }
|
|
2979
2985
|
}),
|
|
2980
2986
|
/* @__PURE__ */ jsx("stop", {
|
|
@@ -2988,11 +2994,11 @@ var $ = {
|
|
|
2988
2994
|
]
|
|
2989
2995
|
}),
|
|
2990
2996
|
/* @__PURE__ */ jsxs("linearGradient", {
|
|
2991
|
-
id:
|
|
2997
|
+
id: u15,
|
|
2992
2998
|
x1: "0%",
|
|
2993
2999
|
y1: "0%",
|
|
2994
3000
|
x2: "0%",
|
|
2995
|
-
y2: `${
|
|
3001
|
+
y2: `${f12.glossExtent}%`,
|
|
2996
3002
|
children: [/* @__PURE__ */ jsx("stop", {
|
|
2997
3003
|
offset: "0%",
|
|
2998
3004
|
style: {
|
|
@@ -3008,25 +3014,25 @@ var $ = {
|
|
|
3008
3014
|
})]
|
|
3009
3015
|
}),
|
|
3010
3016
|
/* @__PURE__ */ jsx("clipPath", {
|
|
3011
|
-
id:
|
|
3017
|
+
id: d12,
|
|
3012
3018
|
children: /* @__PURE__ */ jsx("path", { d: e19.bodyPath })
|
|
3013
3019
|
})
|
|
3014
3020
|
] }),
|
|
3015
3021
|
/* @__PURE__ */ jsx("path", {
|
|
3016
3022
|
d: e19.bodyPath,
|
|
3017
|
-
fill: `url(#${
|
|
3023
|
+
fill: `url(#${l17})`,
|
|
3018
3024
|
style: { pointerEvents: "none" }
|
|
3019
3025
|
}),
|
|
3020
3026
|
N3 > 0 && /* @__PURE__ */ jsx("rect", {
|
|
3021
3027
|
x: "0",
|
|
3022
3028
|
y: "0",
|
|
3023
3029
|
width: "100",
|
|
3024
|
-
height:
|
|
3025
|
-
fill: `url(#${
|
|
3026
|
-
clipPath: `url(#${
|
|
3030
|
+
height: f12.glossExtent,
|
|
3031
|
+
fill: `url(#${u15})`,
|
|
3032
|
+
clipPath: `url(#${d12})`,
|
|
3027
3033
|
style: { pointerEvents: "none" }
|
|
3028
3034
|
}),
|
|
3029
|
-
|
|
3035
|
+
_7.map((e20, t25) => /* @__PURE__ */ jsx("path", {
|
|
3030
3036
|
d: e20,
|
|
3031
3037
|
fill: "none",
|
|
3032
3038
|
stroke: "white",
|
|
@@ -3055,7 +3061,7 @@ function Pt(e19) {
|
|
|
3055
3061
|
return e19.as ? e19.as : e19.href ? "a" : e19.onClick ? "button" : "span";
|
|
3056
3062
|
}
|
|
3057
3063
|
function Ft(l17) {
|
|
3058
|
-
let { shape: u15 = "pill", tone: d12 = "neutral", variant: f12 = "outline", size: p11 = "sm", onClick: m9, onRemove:
|
|
3064
|
+
let { shape: u15 = "pill", tone: d12 = "neutral", variant: f12 = "outline", size: p11 = "sm", onClick: m9, onRemove: h7, removeLabel: g6, href: _7, children: v4, className: y4, shapeParams: b3, bloat: x3, padding: S3, style: C3, breakStyle: w3, crawl: T3, base: E3, baseParams: D3, effects: O3 } = l17, k3 = l17["aria-label"], A3 = Pt(l17), [j3, M3] = useState(false), [N3, P3] = useState(0), F3 = pe[u15] ?? pe.pill, ee2 = pe[u15] ? u15 : "pill", I3 = F3.Component, te2 = {
|
|
3059
3065
|
...F3.defaults ?? {},
|
|
3060
3066
|
...b3 ?? {}
|
|
3061
3067
|
};
|
|
@@ -3230,12 +3236,12 @@ function Ft(l17) {
|
|
|
3230
3236
|
})
|
|
3231
3237
|
}) : null, /* @__PURE__ */ jsxs("span", {
|
|
3232
3238
|
className: c3.content,
|
|
3233
|
-
children: [/* @__PURE__ */ jsx("span", { children:
|
|
3239
|
+
children: [/* @__PURE__ */ jsx("span", { children: v4 }), h7 && /* @__PURE__ */ jsx("button", {
|
|
3234
3240
|
type: "button",
|
|
3235
3241
|
className: c3.remove,
|
|
3236
|
-
"aria-label":
|
|
3242
|
+
"aria-label": g6 ?? "Remove",
|
|
3237
3243
|
onClick: (e19) => {
|
|
3238
|
-
e19.stopPropagation(),
|
|
3244
|
+
e19.stopPropagation(), h7();
|
|
3239
3245
|
},
|
|
3240
3246
|
children: /* @__PURE__ */ jsx("svg", {
|
|
3241
3247
|
viewBox: "0 0 10 10",
|
|
@@ -3259,7 +3265,7 @@ function Ft(l17) {
|
|
|
3259
3265
|
onClick: m9,
|
|
3260
3266
|
children: K2
|
|
3261
3267
|
}) : A3 === "a" ? /* @__PURE__ */ jsx("a", {
|
|
3262
|
-
href:
|
|
3268
|
+
href: _7,
|
|
3263
3269
|
...le2,
|
|
3264
3270
|
onClick: m9,
|
|
3265
3271
|
children: K2
|
|
@@ -3310,10 +3316,10 @@ function i4() {
|
|
|
3310
3316
|
});
|
|
3311
3317
|
}
|
|
3312
3318
|
var a4 = forwardRef(function(e19, a22) {
|
|
3313
|
-
let { variant: o20 = "secondary", size: s18 = "md", disabled: c16, loading: l17, leadingIcon: u15, trailingIcon: d12, fullWidth: f12, iconOnly: p11, ariaLabel: m9, type:
|
|
3319
|
+
let { variant: o20 = "secondary", size: s18 = "md", disabled: c16, loading: l17, leadingIcon: u15, trailingIcon: d12, fullWidth: f12, iconOnly: p11, ariaLabel: m9, type: h7 = "button", className: g6, style: _7, children: v4, onClick: y4 } = e19;
|
|
3314
3320
|
return /* @__PURE__ */ jsxs("button", {
|
|
3315
3321
|
ref: a22,
|
|
3316
|
-
type:
|
|
3322
|
+
type: h7,
|
|
3317
3323
|
className: [
|
|
3318
3324
|
r5.button,
|
|
3319
3325
|
r5[`variant_${o20}`],
|
|
@@ -3321,9 +3327,9 @@ var a4 = forwardRef(function(e19, a22) {
|
|
|
3321
3327
|
f12 && r5.fullWidth,
|
|
3322
3328
|
p11 && r5.iconOnly,
|
|
3323
3329
|
l17 && r5.loading,
|
|
3324
|
-
|
|
3330
|
+
g6
|
|
3325
3331
|
].filter(Boolean).join(" "),
|
|
3326
|
-
style:
|
|
3332
|
+
style: _7,
|
|
3327
3333
|
disabled: c16,
|
|
3328
3334
|
"aria-busy": l17 ? true : void 0,
|
|
3329
3335
|
"aria-label": m9,
|
|
@@ -3335,10 +3341,10 @@ var a4 = forwardRef(function(e19, a22) {
|
|
|
3335
3341
|
}),
|
|
3336
3342
|
p11 ? l17 ? /* @__PURE__ */ jsx(i4, {}) : /* @__PURE__ */ jsx("span", {
|
|
3337
3343
|
className: r5.iconSlot,
|
|
3338
|
-
children:
|
|
3339
|
-
}) :
|
|
3344
|
+
children: v4
|
|
3345
|
+
}) : v4 !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
3340
3346
|
className: r5.label,
|
|
3341
|
-
children:
|
|
3347
|
+
children: v4
|
|
3342
3348
|
}),
|
|
3343
3349
|
!p11 && d12 && /* @__PURE__ */ jsx("span", {
|
|
3344
3350
|
className: r5.iconSlot,
|
|
@@ -3394,7 +3400,7 @@ function c4(t25) {
|
|
|
3394
3400
|
pointerId: n30.pointerId
|
|
3395
3401
|
};
|
|
3396
3402
|
}
|
|
3397
|
-
}, []),
|
|
3403
|
+
}, []), h7 = useCallback(() => {
|
|
3398
3404
|
c16.current = null, l17.current = null, d12({
|
|
3399
3405
|
draggedIds: null,
|
|
3400
3406
|
targetIndex: null
|
|
@@ -3418,23 +3424,23 @@ function c4(t25) {
|
|
|
3418
3424
|
if (!n30) return;
|
|
3419
3425
|
let r28 = e19.clientX - n30.startX, o21 = e19.clientY - n30.startY;
|
|
3420
3426
|
if (Math.hypot(r28, o21) < i24) return;
|
|
3421
|
-
let u16 = a22.current.selectedIds, p12 = u16.includes(n30.id), [m10,
|
|
3427
|
+
let u16 = a22.current.selectedIds, p12 = u16.includes(n30.id), [m10, h8] = s5(a22.current.items, n30.sourceIndex), g6 = (p12 ? [...u16] : [n30.id]).filter((e20) => {
|
|
3422
3428
|
let t27 = a22.current.items.findIndex((t28) => t28.id === e20);
|
|
3423
|
-
return t27 >= m10 && t27 <
|
|
3424
|
-
}),
|
|
3429
|
+
return t27 >= m10 && t27 < h8;
|
|
3430
|
+
}), _7 = f12(e19.clientY, n30.sourceIndex);
|
|
3425
3431
|
l17.current = {
|
|
3426
3432
|
...n30,
|
|
3427
|
-
draggedIds:
|
|
3428
|
-
targetIndex:
|
|
3433
|
+
draggedIds: g6,
|
|
3434
|
+
targetIndex: _7
|
|
3429
3435
|
}, d12({
|
|
3430
|
-
draggedIds:
|
|
3431
|
-
targetIndex:
|
|
3436
|
+
draggedIds: g6,
|
|
3437
|
+
targetIndex: _7
|
|
3432
3438
|
});
|
|
3433
3439
|
}, [f12, i24]),
|
|
3434
3440
|
onPointerUp: useCallback((e19) => {
|
|
3435
3441
|
let t26 = l17.current;
|
|
3436
3442
|
if (!t26) {
|
|
3437
|
-
|
|
3443
|
+
h7();
|
|
3438
3444
|
return;
|
|
3439
3445
|
}
|
|
3440
3446
|
let n30 = f12(e19.clientY, t26.sourceIndex), r28 = a22.current.items, i25 = t26.draggedIds.map((e20) => r28.findIndex((t27) => t27.id === e20)).filter((e20) => e20 >= 0).sort((e20, t27) => e20 - t27), o21 = i25.length > 0 && i25.every((e20, t27) => {
|
|
@@ -3442,11 +3448,11 @@ function c4(t25) {
|
|
|
3442
3448
|
let n31 = i25[t27 - 1];
|
|
3443
3449
|
return n31 !== void 0 && e20 === n31 + 1;
|
|
3444
3450
|
}), s18 = i25[0], c17 = i25[i25.length - 1];
|
|
3445
|
-
o21 && s18 !== void 0 && c17 !== void 0 && n30 >= s18 && n30 <= c17 + 1 || a22.current.onReorder(t26.draggedIds, n30),
|
|
3446
|
-
}, [f12,
|
|
3451
|
+
o21 && s18 !== void 0 && c17 !== void 0 && n30 >= s18 && n30 <= c17 + 1 || a22.current.onReorder(t26.draggedIds, n30), h7();
|
|
3452
|
+
}, [f12, h7]),
|
|
3447
3453
|
onPointerCancel: useCallback(() => {
|
|
3448
|
-
|
|
3449
|
-
}, [
|
|
3454
|
+
h7();
|
|
3455
|
+
}, [h7])
|
|
3450
3456
|
},
|
|
3451
3457
|
state: u15
|
|
3452
3458
|
};
|
|
@@ -3464,7 +3470,7 @@ var l4 = {
|
|
|
3464
3470
|
dropAfter: "_dropAfter_1uuch_69"
|
|
3465
3471
|
};
|
|
3466
3472
|
function u4(e19) {
|
|
3467
|
-
let { rows: n30, columns: s18, defaultSort: u15, onReorder: d12, empty: f12 = "\u2014", className: p11 } = e19, [m9,
|
|
3473
|
+
let { rows: n30, columns: s18, defaultSort: u15, onReorder: d12, empty: f12 = "\u2014", className: p11 } = e19, [m9, h7] = useState(u15 ?? null), g6 = useMemo(() => {
|
|
3468
3474
|
if (!m9) return [...n30];
|
|
3469
3475
|
let e20 = s18.find((e21) => e21.id === m9.columnId);
|
|
3470
3476
|
if (!e20) return [...n30];
|
|
@@ -3477,16 +3483,16 @@ function u4(e19) {
|
|
|
3477
3483
|
n30,
|
|
3478
3484
|
s18,
|
|
3479
3485
|
m9
|
|
3480
|
-
]),
|
|
3481
|
-
|
|
3486
|
+
]), _7 = (e20) => {
|
|
3487
|
+
h7((t25) => !t25 || t25.columnId !== e20 ? {
|
|
3482
3488
|
columnId: e20,
|
|
3483
3489
|
direction: "asc"
|
|
3484
3490
|
} : t25.direction === "asc" ? {
|
|
3485
3491
|
columnId: e20,
|
|
3486
3492
|
direction: "desc"
|
|
3487
3493
|
} : null);
|
|
3488
|
-
},
|
|
3489
|
-
items:
|
|
3494
|
+
}, v4 = c4({
|
|
3495
|
+
items: g6.map((e20) => ({
|
|
3490
3496
|
id: e20.id,
|
|
3491
3497
|
label: ""
|
|
3492
3498
|
})),
|
|
@@ -3496,9 +3502,9 @@ function u4(e19) {
|
|
|
3496
3502
|
}), y4 = !!d12;
|
|
3497
3503
|
return /* @__PURE__ */ jsx("div", {
|
|
3498
3504
|
className: [l4.grid, p11].filter(Boolean).join(" "),
|
|
3499
|
-
onPointerMove: y4 ?
|
|
3500
|
-
onPointerUp: y4 ?
|
|
3501
|
-
onPointerCancel: y4 ?
|
|
3505
|
+
onPointerMove: y4 ? v4.containerProps.onPointerMove : void 0,
|
|
3506
|
+
onPointerUp: y4 ? v4.containerProps.onPointerUp : void 0,
|
|
3507
|
+
onPointerCancel: y4 ? v4.containerProps.onPointerCancel : void 0,
|
|
3502
3508
|
children: /* @__PURE__ */ jsxs("table", {
|
|
3503
3509
|
className: l4.table,
|
|
3504
3510
|
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [y4 && /* @__PURE__ */ jsx("th", {
|
|
@@ -3512,27 +3518,27 @@ function u4(e19) {
|
|
|
3512
3518
|
children: t25 ? /* @__PURE__ */ jsxs("button", {
|
|
3513
3519
|
type: "button",
|
|
3514
3520
|
className: l4.sortButton,
|
|
3515
|
-
onClick: () =>
|
|
3521
|
+
onClick: () => _7(e20.id),
|
|
3516
3522
|
children: [e20.header, r28]
|
|
3517
3523
|
}) : /* @__PURE__ */ jsxs(Fragment, { children: [e20.header, r28] })
|
|
3518
3524
|
}, e20.id);
|
|
3519
3525
|
})] }) }), /* @__PURE__ */ jsxs("tbody", {
|
|
3520
|
-
ref: y4 ?
|
|
3521
|
-
children: [
|
|
3526
|
+
ref: y4 ? v4.containerProps.ref : void 0,
|
|
3527
|
+
children: [g6.length === 0 && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
|
|
3522
3528
|
colSpan: s18.length + +!!y4,
|
|
3523
3529
|
className: l4.empty,
|
|
3524
3530
|
children: f12
|
|
3525
|
-
}) }),
|
|
3526
|
-
let n31 =
|
|
3531
|
+
}) }), g6.map((e20, t25) => {
|
|
3532
|
+
let n31 = v4.state.draggedIds?.includes(e20.id) ?? false, r28 = v4.state.targetIndex;
|
|
3527
3533
|
return /* @__PURE__ */ jsxs("tr", {
|
|
3528
3534
|
className: [
|
|
3529
3535
|
n31 && l4.dragging,
|
|
3530
3536
|
r28 === t25 && l4.dropBefore,
|
|
3531
|
-
r28 ===
|
|
3537
|
+
r28 === g6.length && t25 === g6.length - 1 && l4.dropAfter
|
|
3532
3538
|
].filter(Boolean).join(" ") || void 0,
|
|
3533
3539
|
children: [y4 && /* @__PURE__ */ jsx("td", {
|
|
3534
3540
|
className: l4.handleCell,
|
|
3535
|
-
onPointerDown: (n32) =>
|
|
3541
|
+
onPointerDown: (n32) => v4.rowProps(e20.id, t25).onPointerDown(n32),
|
|
3536
3542
|
children: /* @__PURE__ */ jsx("span", {
|
|
3537
3543
|
"aria-hidden": "true",
|
|
3538
3544
|
children: "\u22EE\u22EE"
|
|
@@ -3990,173 +3996,198 @@ function c6(e19, t25, n30) {
|
|
|
3990
3996
|
function l6(e19, t25, n30) {
|
|
3991
3997
|
return Math.max(t25, Math.min(n30, e19));
|
|
3992
3998
|
}
|
|
3993
|
-
|
|
3999
|
+
var u6 = 8;
|
|
4000
|
+
function d5(e19, t25, n30) {
|
|
4001
|
+
return !e19 || e19.length === 0 ? [] : [...new Set(e19.filter((e20) => e20 >= t25 && e20 <= n30))].sort((e20, t26) => e20 - t26);
|
|
4002
|
+
}
|
|
4003
|
+
function f5(e19, t25, n30) {
|
|
4004
|
+
let r28 = e19, i24 = n30;
|
|
4005
|
+
for (let n31 of t25) {
|
|
4006
|
+
let t26 = Math.abs(n31 - e19);
|
|
4007
|
+
t26 <= i24 && (r28 = n31, i24 = t26);
|
|
4008
|
+
}
|
|
4009
|
+
return r28;
|
|
4010
|
+
}
|
|
4011
|
+
function p5(e19, t25, n30, r28) {
|
|
4012
|
+
if (n30 > 0) {
|
|
4013
|
+
let n31 = e19.findIndex((e20) => e20 > t25);
|
|
4014
|
+
return n31 === -1 ? e19[e19.length - 1] : e19[Math.min(e19.length - 1, n31 + r28 - 1)];
|
|
4015
|
+
}
|
|
4016
|
+
let i24 = -1;
|
|
4017
|
+
for (let n31 = e19.length - 1; n31 >= 0; n31--) if (e19[n31] < t25) {
|
|
4018
|
+
i24 = n31;
|
|
4019
|
+
break;
|
|
4020
|
+
}
|
|
4021
|
+
return i24 === -1 ? e19[0] : e19[Math.max(0, i24 - (r28 - 1))];
|
|
4022
|
+
}
|
|
4023
|
+
function m4(e19, t25, n30) {
|
|
3994
4024
|
return e19 !== void 0 && e19 > 0 ? e19 : (n30 - t25) / 100;
|
|
3995
4025
|
}
|
|
3996
|
-
function
|
|
4026
|
+
function h3(e19, t25, n30, r28, i24, a22) {
|
|
3997
4027
|
let o20 = a22 !== void 0 && a22 > 0 ? a22 : (i24 - r28) / 1e3;
|
|
3998
4028
|
return l6(e19, n30 > 0 ? t25[n30 - 1].value + o20 : r28, n30 < t25.length - 1 ? t25[n30 + 1].value - o20 : i24);
|
|
3999
4029
|
}
|
|
4000
|
-
function
|
|
4030
|
+
function g3(e19, t25, n30, r28) {
|
|
4001
4031
|
if (!e19.bounds) return [n30, r28];
|
|
4002
4032
|
let i24 = typeof e19.bounds == "function" ? e19.bounds(t25) : e19.bounds;
|
|
4003
4033
|
return [i24[0], i24[1]];
|
|
4004
4034
|
}
|
|
4005
|
-
function
|
|
4035
|
+
function _3(e19) {
|
|
4006
4036
|
return s7(e19.value, {
|
|
4007
4037
|
minimumFractionDigits: 3,
|
|
4008
4038
|
maximumFractionDigits: 3
|
|
4009
4039
|
});
|
|
4010
4040
|
}
|
|
4011
|
-
function
|
|
4012
|
-
let { thumbs: s18, onInput:
|
|
4041
|
+
function v2(o20) {
|
|
4042
|
+
let { thumbs: s18, onInput: v4, onChange: y4, min: b3, max: x3, step: S3, constraint: C3, trackHeight: w3, ariaLabel: T3, className: E3 } = o20, D3 = d5(o20.stops, b3, x3), O3 = useRef(null), k3 = useRef(null), A3 = useRef(null);
|
|
4013
4043
|
useEffect(() => () => {
|
|
4014
|
-
|
|
4044
|
+
A3.current?.();
|
|
4015
4045
|
}, []);
|
|
4016
|
-
let
|
|
4017
|
-
|
|
4046
|
+
let j3 = useCallback((e19) => x3 === b3 ? 0 : l6((e19 - b3) / (x3 - b3), 0, 1), [b3, x3]), M3 = useCallback((e19) => b3 + l6(e19, 0, 1) * (x3 - b3), [b3, x3]), N3 = useCallback((e19) => {
|
|
4047
|
+
k3.current = s18.map((e20) => ({ ...e20 }));
|
|
4018
4048
|
let t25 = false, n30 = (n31) => {
|
|
4019
|
-
let r29 =
|
|
4049
|
+
let r29 = O3.current, i25 = k3.current;
|
|
4020
4050
|
if (!r29 || !i25) return;
|
|
4021
|
-
let a23 = r29.getBoundingClientRect(), s19 =
|
|
4022
|
-
s19 = c6(s19,
|
|
4023
|
-
let [
|
|
4051
|
+
let a23 = r29.getBoundingClientRect(), s19 = M3(l6((n31.clientX - a23.left) / a23.width, 0, 1));
|
|
4052
|
+
s19 = c6(s19, S3, b3), s19 = l6(s19, b3, x3), D3.length > 0 && (s19 = f5(s19, D3, u6 / a23.width * (x3 - b3)));
|
|
4053
|
+
let [d12, p11] = g3(i25[e19], {
|
|
4024
4054
|
thumbs: i25,
|
|
4025
4055
|
index: e19
|
|
4026
|
-
},
|
|
4027
|
-
s19 = l6(s19,
|
|
4028
|
-
let
|
|
4029
|
-
o20.onRemoveThumb && (t25 = n31.clientY < a23.top -
|
|
4056
|
+
}, b3, x3);
|
|
4057
|
+
s19 = l6(s19, d12, p11), C3 === "ordered" && (s19 = h3(s19, i25, e19, b3, x3, S3));
|
|
4058
|
+
let m9 = a23.height;
|
|
4059
|
+
o20.onRemoveThumb && (t25 = n31.clientY < a23.top - m9 || n31.clientY > a23.bottom + m9), i25[e19] = {
|
|
4030
4060
|
...i25[e19],
|
|
4031
4061
|
value: s19
|
|
4032
|
-
},
|
|
4062
|
+
}, v4(i25.map((e20) => ({ ...e20 })));
|
|
4033
4063
|
}, r28 = () => {
|
|
4034
|
-
document.removeEventListener("pointermove", n30), document.removeEventListener("pointerup", a22), document.removeEventListener("pointercancel", i24),
|
|
4064
|
+
document.removeEventListener("pointermove", n30), document.removeEventListener("pointerup", a22), document.removeEventListener("pointercancel", i24), A3.current = null;
|
|
4035
4065
|
}, i24 = () => {
|
|
4036
|
-
r28(),
|
|
4066
|
+
r28(), k3.current = null;
|
|
4037
4067
|
}, a22 = () => {
|
|
4038
4068
|
r28();
|
|
4039
|
-
let n31 =
|
|
4040
|
-
if (
|
|
4069
|
+
let n31 = k3.current;
|
|
4070
|
+
if (k3.current = null, n31) {
|
|
4041
4071
|
if (t25 && o20.onRemoveThumb && o20.onRemoveThumb(e19)) {
|
|
4042
4072
|
let t26 = n31.filter((t27, n32) => n32 !== e19).map((e20) => ({ ...e20 }));
|
|
4043
|
-
|
|
4073
|
+
v4(t26), y4?.(t26);
|
|
4044
4074
|
return;
|
|
4045
4075
|
}
|
|
4046
|
-
|
|
4076
|
+
y4?.(n31.map((e20) => ({ ...e20 })));
|
|
4047
4077
|
}
|
|
4048
4078
|
};
|
|
4049
|
-
document.addEventListener("pointermove", n30), document.addEventListener("pointerup", a22), document.addEventListener("pointercancel", i24),
|
|
4079
|
+
document.addEventListener("pointermove", n30), document.addEventListener("pointerup", a22), document.addEventListener("pointercancel", i24), A3.current = i24;
|
|
4050
4080
|
}, [
|
|
4051
4081
|
s18,
|
|
4052
|
-
|
|
4053
|
-
h6,
|
|
4054
|
-
D3,
|
|
4055
|
-
g5,
|
|
4056
|
-
_6,
|
|
4057
|
-
v3,
|
|
4082
|
+
v4,
|
|
4058
4083
|
y4,
|
|
4084
|
+
M3,
|
|
4085
|
+
b3,
|
|
4086
|
+
x3,
|
|
4087
|
+
S3,
|
|
4088
|
+
D3,
|
|
4089
|
+
C3,
|
|
4059
4090
|
o20
|
|
4060
|
-
]),
|
|
4091
|
+
]), P3 = useCallback((e19) => {
|
|
4061
4092
|
let t25 = s18.map((e20) => ({ ...e20 })), n30 = t25.map((e20) => e20.value);
|
|
4062
|
-
|
|
4093
|
+
k3.current = t25;
|
|
4063
4094
|
let r28 = (t26) => {
|
|
4064
|
-
let r29 =
|
|
4095
|
+
let r29 = O3.current, i25 = k3.current;
|
|
4065
4096
|
if (!r29 || !i25) return;
|
|
4066
|
-
let a23 = r29.getBoundingClientRect(), o22 = (t26.clientX - e19) / a23.width * (
|
|
4067
|
-
o22 = c6(o22,
|
|
4097
|
+
let a23 = r29.getBoundingClientRect(), o22 = (t26.clientX - e19) / a23.width * (x3 - b3);
|
|
4098
|
+
o22 = c6(o22, S3, 0);
|
|
4068
4099
|
let s19 = -Infinity, u15 = Infinity;
|
|
4069
|
-
for (let e20 = 0; e20 < n30.length; e20++) s19 = Math.max(s19,
|
|
4100
|
+
for (let e20 = 0; e20 < n30.length; e20++) s19 = Math.max(s19, b3 - n30[e20]), u15 = Math.min(u15, x3 - n30[e20]);
|
|
4070
4101
|
o22 = l6(o22, s19, u15);
|
|
4071
4102
|
for (let e20 = 0; e20 < i25.length; e20++) i25[e20] = {
|
|
4072
4103
|
...i25[e20],
|
|
4073
|
-
value: l6(n30[e20] + o22,
|
|
4104
|
+
value: l6(n30[e20] + o22, b3, x3)
|
|
4074
4105
|
};
|
|
4075
|
-
|
|
4106
|
+
v4(i25.map((e20) => ({ ...e20 })));
|
|
4076
4107
|
}, i24 = () => {
|
|
4077
|
-
document.removeEventListener("pointermove", r28), document.removeEventListener("pointerup", o21), document.removeEventListener("pointercancel", a22),
|
|
4108
|
+
document.removeEventListener("pointermove", r28), document.removeEventListener("pointerup", o21), document.removeEventListener("pointercancel", a22), A3.current = null;
|
|
4078
4109
|
}, a22 = () => {
|
|
4079
|
-
i24(),
|
|
4110
|
+
i24(), k3.current = null;
|
|
4080
4111
|
}, o21 = () => {
|
|
4081
4112
|
i24();
|
|
4082
|
-
let e20 =
|
|
4083
|
-
|
|
4113
|
+
let e20 = k3.current;
|
|
4114
|
+
k3.current = null, e20 && y4?.(e20.map((e21) => ({ ...e21 })));
|
|
4084
4115
|
};
|
|
4085
|
-
document.addEventListener("pointermove", r28), document.addEventListener("pointerup", o21), document.addEventListener("pointercancel", a22),
|
|
4116
|
+
document.addEventListener("pointermove", r28), document.addEventListener("pointerup", o21), document.addEventListener("pointercancel", a22), A3.current = a22;
|
|
4086
4117
|
}, [
|
|
4087
4118
|
s18,
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
]),
|
|
4094
|
-
typeof t25.button == "number" && t25.button > 0 || (t25.currentTarget.focus?.(), t25.preventDefault(), t25.stopPropagation(), t25.shiftKey && o20.allowShiftAll ?
|
|
4095
|
-
},
|
|
4119
|
+
v4,
|
|
4120
|
+
y4,
|
|
4121
|
+
b3,
|
|
4122
|
+
x3,
|
|
4123
|
+
S3
|
|
4124
|
+
]), F3 = (e19) => (t25) => {
|
|
4125
|
+
typeof t25.button == "number" && t25.button > 0 || (t25.currentTarget.focus?.(), t25.preventDefault(), t25.stopPropagation(), t25.shiftKey && o20.allowShiftAll ? P3(t25.clientX) : N3(e19));
|
|
4126
|
+
}, I3 = (e19) => (t25) => {
|
|
4096
4127
|
if (!o20.onRemoveThumb || (t25.preventDefault(), !o20.onRemoveThumb(e19))) return;
|
|
4097
4128
|
let n30 = s18.filter((t26, n31) => n31 !== e19).map((e20) => ({ ...e20 }));
|
|
4098
|
-
|
|
4099
|
-
},
|
|
4129
|
+
v4(n30), y4?.(n30);
|
|
4130
|
+
}, L2 = (e19) => {
|
|
4100
4131
|
if (typeof e19.button == "number" && e19.button > 0 || !o20.onAddThumb || e19.target.closest(`.${a7.thumb}`)) return;
|
|
4101
4132
|
e19.preventDefault();
|
|
4102
|
-
let t25 =
|
|
4133
|
+
let t25 = O3.current;
|
|
4103
4134
|
if (!t25) return;
|
|
4104
|
-
let n30 = t25.getBoundingClientRect(), r28 =
|
|
4105
|
-
r28 = c6(r28,
|
|
4135
|
+
let n30 = t25.getBoundingClientRect(), r28 = M3(l6((e19.clientX - n30.left) / n30.width, 0, 1));
|
|
4136
|
+
r28 = c6(r28, S3, b3), r28 = l6(r28, b3, x3), D3.length > 0 && (r28 = f5(r28, D3, u6 / n30.width * (x3 - b3)));
|
|
4106
4137
|
let i24 = o20.onAddThumb(r28);
|
|
4107
4138
|
if (!i24) return;
|
|
4108
|
-
let
|
|
4109
|
-
|
|
4110
|
-
},
|
|
4111
|
-
let n30 =
|
|
4139
|
+
let d12 = [...s18.map((e20) => ({ ...e20 })), i24];
|
|
4140
|
+
v4(d12), y4?.(d12);
|
|
4141
|
+
}, R2 = (e19) => (t25) => {
|
|
4142
|
+
let n30 = m4(S3, b3, x3), r28 = 0, i24 = 0, a22 = null;
|
|
4112
4143
|
switch (t25.key) {
|
|
4113
4144
|
case "ArrowRight":
|
|
4114
4145
|
case "ArrowUp":
|
|
4115
|
-
r28 = t25.shiftKey ? n30 * 10 : n30;
|
|
4146
|
+
r28 = t25.shiftKey ? n30 * 10 : n30, i24 = t25.shiftKey ? 10 : 1;
|
|
4116
4147
|
break;
|
|
4117
4148
|
case "ArrowLeft":
|
|
4118
4149
|
case "ArrowDown":
|
|
4119
|
-
r28 = t25.shiftKey ? -n30 * 10 : -n30;
|
|
4150
|
+
r28 = t25.shiftKey ? -n30 * 10 : -n30, i24 = t25.shiftKey ? -10 : -1;
|
|
4120
4151
|
break;
|
|
4121
4152
|
case "PageUp":
|
|
4122
|
-
r28 = n30 * 10;
|
|
4153
|
+
r28 = n30 * 10, i24 = 10;
|
|
4123
4154
|
break;
|
|
4124
4155
|
case "PageDown":
|
|
4125
|
-
r28 = -n30 * 10;
|
|
4156
|
+
r28 = -n30 * 10, i24 = -10;
|
|
4126
4157
|
break;
|
|
4127
4158
|
case "Home":
|
|
4128
|
-
|
|
4159
|
+
a22 = "home";
|
|
4129
4160
|
break;
|
|
4130
4161
|
case "End":
|
|
4131
|
-
|
|
4162
|
+
a22 = "end";
|
|
4132
4163
|
break;
|
|
4133
4164
|
default:
|
|
4134
4165
|
return;
|
|
4135
4166
|
}
|
|
4136
4167
|
t25.preventDefault();
|
|
4137
|
-
let
|
|
4138
|
-
thumbs:
|
|
4168
|
+
let o21 = s18.map((e20) => ({ ...e20 })), [u15, d12] = g3(o21[e19], {
|
|
4169
|
+
thumbs: o21,
|
|
4139
4170
|
index: e19
|
|
4140
|
-
},
|
|
4141
|
-
|
|
4142
|
-
...
|
|
4143
|
-
value:
|
|
4144
|
-
},
|
|
4145
|
-
},
|
|
4171
|
+
}, b3, x3), f12 = Math.max(b3, u15), _7 = Math.min(x3, d12), w4;
|
|
4172
|
+
w4 = a22 === "home" ? f12 : a22 === "end" ? _7 : D3.length > 0 ? p5(D3, o21[e19].value, i24 > 0 ? 1 : -1, Math.abs(i24)) : c6(o21[e19].value + r28, S3, b3), w4 = l6(w4, f12, _7), C3 === "ordered" && (w4 = h3(w4, o21, e19, f12, _7, S3)), o21[e19] = {
|
|
4173
|
+
...o21[e19],
|
|
4174
|
+
value: w4
|
|
4175
|
+
}, v4(o21), y4?.(o21);
|
|
4176
|
+
}, z2 = o20.readoutPlacement ?? "none", B2 = o20.renderReadout;
|
|
4146
4177
|
return /* @__PURE__ */ jsxs("div", {
|
|
4147
|
-
className:
|
|
4148
|
-
style:
|
|
4178
|
+
className: E3 ? `${a7.root} ${E3}` : a7.root,
|
|
4179
|
+
style: w3 === void 0 ? void 0 : { "--rp-track-height": `${w3}px` },
|
|
4149
4180
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
4150
4181
|
className: a7.row,
|
|
4151
4182
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
4152
4183
|
className: a7.track,
|
|
4153
|
-
ref:
|
|
4154
|
-
onPointerDown:
|
|
4184
|
+
ref: O3,
|
|
4185
|
+
onPointerDown: L2,
|
|
4155
4186
|
children: [o20.renderTrack && /* @__PURE__ */ jsx("div", {
|
|
4156
4187
|
className: a7.trackInner,
|
|
4157
4188
|
children: o20.renderTrack({
|
|
4158
|
-
trackWidth:
|
|
4159
|
-
valueToFraction:
|
|
4189
|
+
trackWidth: O3.current?.getBoundingClientRect().width ?? 0,
|
|
4190
|
+
valueToFraction: j3
|
|
4160
4191
|
})
|
|
4161
4192
|
}), s18.map((e19, t25) => {
|
|
4162
4193
|
let n30 = e19.shape === "notched", i24 = typeof e19.shape == "object" && e19.shape !== null ? e19.shape.render : null, o21 = `${a7.thumb}${n30 ? ` ${a7.notched}` : ""}`;
|
|
@@ -4164,15 +4195,15 @@ function m4(o20) {
|
|
|
4164
4195
|
role: "slider",
|
|
4165
4196
|
tabIndex: 0,
|
|
4166
4197
|
"aria-orientation": "horizontal",
|
|
4167
|
-
"aria-valuemin":
|
|
4168
|
-
"aria-valuemax":
|
|
4198
|
+
"aria-valuemin": b3,
|
|
4199
|
+
"aria-valuemax": x3,
|
|
4169
4200
|
"aria-valuenow": e19.value,
|
|
4170
|
-
"aria-label": [
|
|
4201
|
+
"aria-label": [T3, e19.label].filter(Boolean).join(" ") || void 0,
|
|
4171
4202
|
className: o21,
|
|
4172
|
-
style: { left: `${
|
|
4173
|
-
onPointerDown:
|
|
4174
|
-
onKeyDown:
|
|
4175
|
-
onContextMenu:
|
|
4203
|
+
style: { left: `${j3(e19.value) * 100}%` },
|
|
4204
|
+
onPointerDown: F3(t25),
|
|
4205
|
+
onKeyDown: R2(t25),
|
|
4206
|
+
onContextMenu: I3(t25),
|
|
4176
4207
|
children: i24 ? i24({
|
|
4177
4208
|
width: 14,
|
|
4178
4209
|
height: 24,
|
|
@@ -4180,18 +4211,18 @@ function m4(o20) {
|
|
|
4180
4211
|
}) : e19.label ?? ""
|
|
4181
4212
|
}, t25);
|
|
4182
4213
|
})]
|
|
4183
|
-
}),
|
|
4214
|
+
}), z2 === "inline-after" && /* @__PURE__ */ jsx("span", {
|
|
4184
4215
|
"data-readout": "inline",
|
|
4185
4216
|
className: a7.readoutInline,
|
|
4186
|
-
children: s18.map((e19, t25) => /* @__PURE__ */ jsxs("span", { children: [t25 > 0 ? " / " : "",
|
|
4217
|
+
children: s18.map((e19, t25) => /* @__PURE__ */ jsxs("span", { children: [t25 > 0 ? " / " : "", B2 ? B2(e19, t25) : _3(e19)] }, t25))
|
|
4187
4218
|
})]
|
|
4188
|
-
}),
|
|
4219
|
+
}), z2 === "below-thumb" && /* @__PURE__ */ jsx("div", {
|
|
4189
4220
|
className: a7.readoutsBelow,
|
|
4190
4221
|
children: s18.map((e19, t25) => /* @__PURE__ */ jsx("span", {
|
|
4191
4222
|
"data-readout": "below",
|
|
4192
4223
|
className: a7.readoutBelow,
|
|
4193
|
-
style: { left: `${
|
|
4194
|
-
children:
|
|
4224
|
+
style: { left: `${j3(e19.value) * 100}%` },
|
|
4225
|
+
children: B2 ? B2(e19, t25) : _3(e19)
|
|
4195
4226
|
}, t25))
|
|
4196
4227
|
})]
|
|
4197
4228
|
});
|
|
@@ -4281,24 +4312,24 @@ function r10(r28) {
|
|
|
4281
4312
|
}
|
|
4282
4313
|
r28.onChange(t25.value);
|
|
4283
4314
|
}
|
|
4284
|
-
}, m9 = u15 === "single" ? i24.findIndex((e19) => e19.value === r28.value) : -1,
|
|
4315
|
+
}, m9 = u15 === "single" ? i24.findIndex((e19) => e19.value === r28.value) : -1, h7 = a8({
|
|
4285
4316
|
items: i24,
|
|
4286
4317
|
itemClassName: n10.segment,
|
|
4287
4318
|
tabStopIndex: m9 >= 0 && !i24[m9].disabled ? m9 : void 0,
|
|
4288
4319
|
onNavigate: u15 === "single" ? (e19) => r28.onChange(i24[e19].value) : void 0,
|
|
4289
4320
|
onActivate: u15 === "multiple" ? (e19) => p11(e19)() : void 0
|
|
4290
|
-
}),
|
|
4321
|
+
}), g6 = s18 === void 0 ? void 0 : { "--wzl-tb-height": `${s18}px` }, _7 = [
|
|
4291
4322
|
n10.root,
|
|
4292
4323
|
c16 && n10[`size_${c16}`],
|
|
4293
4324
|
l17 && n10[`variant_${l17}`],
|
|
4294
4325
|
o20
|
|
4295
4326
|
].filter(Boolean).join(" ");
|
|
4296
4327
|
return /* @__PURE__ */ jsx("div", {
|
|
4297
|
-
ref:
|
|
4298
|
-
className:
|
|
4328
|
+
ref: h7.rootRef,
|
|
4329
|
+
className: _7,
|
|
4299
4330
|
role: u15 === "multiple" ? "group" : "radiogroup",
|
|
4300
4331
|
"aria-label": a22,
|
|
4301
|
-
style:
|
|
4332
|
+
style: g6,
|
|
4302
4333
|
children: i24.map((e19, r29) => {
|
|
4303
4334
|
let i25 = d12(e19.value), a23 = f12(e19.value), o21 = [
|
|
4304
4335
|
n10.segment,
|
|
@@ -4312,10 +4343,10 @@ function r10(r28) {
|
|
|
4312
4343
|
"aria-pressed": u15 === "multiple" ? a23 ? "mixed" : i25 : void 0,
|
|
4313
4344
|
"aria-label": e19.ariaLabel,
|
|
4314
4345
|
disabled: e19.disabled,
|
|
4315
|
-
tabIndex:
|
|
4346
|
+
tabIndex: h7.tabIndexFor(r29),
|
|
4316
4347
|
className: o21,
|
|
4317
4348
|
onClick: p11(r29),
|
|
4318
|
-
onKeyDown:
|
|
4349
|
+
onKeyDown: h7.onKeyDown(r29),
|
|
4319
4350
|
children: e19.label
|
|
4320
4351
|
}, e19.value);
|
|
4321
4352
|
})
|
|
@@ -4496,13 +4527,13 @@ var l7 = {
|
|
|
4496
4527
|
adornment: "_adornment_cahom_54"
|
|
4497
4528
|
};
|
|
4498
4529
|
var u7 = forwardRef(function(t25, u15) {
|
|
4499
|
-
let { label: d12, description: f12, errorMessage: p11, placeholder: m9, leadingAdornment:
|
|
4530
|
+
let { label: d12, description: f12, errorMessage: p11, placeholder: m9, leadingAdornment: h7, trailingAdornment: g6, className: _7, ...v4 } = t25;
|
|
4500
4531
|
return /* @__PURE__ */ jsxs(TextField, {
|
|
4501
|
-
...
|
|
4532
|
+
...v4,
|
|
4502
4533
|
className: [
|
|
4503
4534
|
l7.field,
|
|
4504
4535
|
r15.root,
|
|
4505
|
-
|
|
4536
|
+
_7
|
|
4506
4537
|
].filter(Boolean).join(" "),
|
|
4507
4538
|
children: [
|
|
4508
4539
|
d12 !== void 0 && /* @__PURE__ */ jsx(Label, {
|
|
@@ -4512,17 +4543,17 @@ var u7 = forwardRef(function(t25, u15) {
|
|
|
4512
4543
|
/* @__PURE__ */ jsxs("div", {
|
|
4513
4544
|
className: l7.frame,
|
|
4514
4545
|
children: [
|
|
4515
|
-
|
|
4546
|
+
h7 !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
4516
4547
|
className: l7.adornment,
|
|
4517
|
-
children:
|
|
4548
|
+
children: h7
|
|
4518
4549
|
}),
|
|
4519
4550
|
/* @__PURE__ */ jsx(Input, {
|
|
4520
4551
|
ref: u15,
|
|
4521
4552
|
placeholder: m9
|
|
4522
4553
|
}),
|
|
4523
|
-
|
|
4554
|
+
g6 !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
4524
4555
|
className: l7.adornment,
|
|
4525
|
-
children:
|
|
4556
|
+
children: g6
|
|
4526
4557
|
})
|
|
4527
4558
|
]
|
|
4528
4559
|
}),
|
|
@@ -4545,13 +4576,13 @@ var d6 = {
|
|
|
4545
4576
|
stepper: "_stepper_e75yx_57"
|
|
4546
4577
|
};
|
|
4547
4578
|
var f6 = forwardRef(function(t25, f12) {
|
|
4548
|
-
let { label: p11, description: m9, errorMessage:
|
|
4579
|
+
let { label: p11, description: m9, errorMessage: h7, hideSteppers: g6, placeholder: _7, className: v4, ...y4 } = t25;
|
|
4549
4580
|
return /* @__PURE__ */ jsxs(NumberField, {
|
|
4550
4581
|
...y4,
|
|
4551
4582
|
className: [
|
|
4552
4583
|
d6.field,
|
|
4553
4584
|
r15.root,
|
|
4554
|
-
|
|
4585
|
+
v4
|
|
4555
4586
|
].filter(Boolean).join(" "),
|
|
4556
4587
|
children: [
|
|
4557
4588
|
p11 !== void 0 && /* @__PURE__ */ jsx(Label, {
|
|
@@ -4562,8 +4593,8 @@ var f6 = forwardRef(function(t25, f12) {
|
|
|
4562
4593
|
className: d6.frame,
|
|
4563
4594
|
children: [/* @__PURE__ */ jsx(Input, {
|
|
4564
4595
|
ref: f12,
|
|
4565
|
-
placeholder:
|
|
4566
|
-
}), !
|
|
4596
|
+
placeholder: _7
|
|
4597
|
+
}), !g6 && /* @__PURE__ */ jsxs("div", {
|
|
4567
4598
|
className: d6.steppers,
|
|
4568
4599
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
4569
4600
|
slot: "increment",
|
|
@@ -4585,7 +4616,7 @@ var f6 = forwardRef(function(t25, f12) {
|
|
|
4585
4616
|
}),
|
|
4586
4617
|
/* @__PURE__ */ jsx(FieldError, {
|
|
4587
4618
|
className: r15.error,
|
|
4588
|
-
children:
|
|
4619
|
+
children: h7
|
|
4589
4620
|
})
|
|
4590
4621
|
]
|
|
4591
4622
|
});
|
|
@@ -4640,16 +4671,16 @@ var c10 = {
|
|
|
4640
4671
|
thumb: "_thumb_1644w_59"
|
|
4641
4672
|
};
|
|
4642
4673
|
function l10(l17) {
|
|
4643
|
-
let { label: u15, showOutput: d12, formatOutput: f12, className: p11, ...m9 } = l17,
|
|
4674
|
+
let { label: u15, showOutput: d12, formatOutput: f12, className: p11, ...m9 } = l17, h7 = d12 ?? u15 !== void 0;
|
|
4644
4675
|
return /* @__PURE__ */ jsxs(Slider, {
|
|
4645
4676
|
...m9,
|
|
4646
4677
|
className: [c10.slider, p11].filter(Boolean).join(" "),
|
|
4647
|
-
children: [(u15 !== void 0 ||
|
|
4678
|
+
children: [(u15 !== void 0 || h7) && /* @__PURE__ */ jsxs("div", {
|
|
4648
4679
|
className: c10.head,
|
|
4649
4680
|
children: [u15 !== void 0 && /* @__PURE__ */ jsx(Label, {
|
|
4650
4681
|
className: c10.label,
|
|
4651
4682
|
children: u15
|
|
4652
|
-
}),
|
|
4683
|
+
}), h7 && /* @__PURE__ */ jsx(SliderOutput, {
|
|
4653
4684
|
className: c10.output,
|
|
4654
4685
|
children: ({ state: e19 }) => {
|
|
4655
4686
|
let t25 = e19.values.length === 1 ? e19.values[0] : e19.values;
|
|
@@ -4685,7 +4716,7 @@ var f7 = {
|
|
|
4685
4716
|
check: "_check_nq1le_105"
|
|
4686
4717
|
};
|
|
4687
4718
|
function p6(a22) {
|
|
4688
|
-
let { label: p11, description: m9, errorMessage:
|
|
4719
|
+
let { label: p11, description: m9, errorMessage: g6, placeholder: _7, options: v4, children: y4, selectedKey: b3, defaultSelectedKey: x3, onSelectionChange: S3, className: C3, ...w3 } = a22;
|
|
4689
4720
|
return /* @__PURE__ */ jsxs(Select, {
|
|
4690
4721
|
...w3,
|
|
4691
4722
|
selectedKey: b3,
|
|
@@ -4705,7 +4736,7 @@ function p6(a22) {
|
|
|
4705
4736
|
className: f7.trigger,
|
|
4706
4737
|
children: [/* @__PURE__ */ jsx(SelectValue, {
|
|
4707
4738
|
className: f7.value,
|
|
4708
|
-
children: ({ defaultChildren: e19, isPlaceholder: t25 }) => t25 ?
|
|
4739
|
+
children: ({ defaultChildren: e19, isPlaceholder: t25 }) => t25 ? _7 ?? e19 : e19
|
|
4709
4740
|
}), /* @__PURE__ */ jsx("svg", {
|
|
4710
4741
|
className: f7.chevron,
|
|
4711
4742
|
viewBox: "0 0 10 10",
|
|
@@ -4727,14 +4758,14 @@ function p6(a22) {
|
|
|
4727
4758
|
}),
|
|
4728
4759
|
/* @__PURE__ */ jsx(FieldError, {
|
|
4729
4760
|
className: r15.error,
|
|
4730
|
-
children:
|
|
4761
|
+
children: g6
|
|
4731
4762
|
}),
|
|
4732
4763
|
/* @__PURE__ */ jsx(Popover, {
|
|
4733
4764
|
className: f7.popover,
|
|
4734
4765
|
"data-weasel-overlay": "",
|
|
4735
4766
|
children: /* @__PURE__ */ jsx(ListBox, {
|
|
4736
4767
|
className: f7.listbox,
|
|
4737
|
-
children:
|
|
4768
|
+
children: v4 === void 0 ? y4 : v4.map((e19) => /* @__PURE__ */ jsx(h4, {
|
|
4738
4769
|
id: e19.value,
|
|
4739
4770
|
isDisabled: e19.isDisabled,
|
|
4740
4771
|
textValue: e19.textValue,
|
|
@@ -4748,7 +4779,7 @@ function p6(a22) {
|
|
|
4748
4779
|
function m5(e19, t25) {
|
|
4749
4780
|
return t25 === void 0 ? typeof e19 == "string" || typeof e19 == "number" ? String(e19) : void 0 : t25;
|
|
4750
4781
|
}
|
|
4751
|
-
function
|
|
4782
|
+
function h4({ children: e19, className: t25, textValue: n30, ...r28 }) {
|
|
4752
4783
|
return /* @__PURE__ */ jsxs(ListBoxItem, {
|
|
4753
4784
|
...r28,
|
|
4754
4785
|
textValue: m5(e19, n30),
|
|
@@ -4800,11 +4831,11 @@ var s13 = {
|
|
|
4800
4831
|
footer: "_footer_13xy9_97"
|
|
4801
4832
|
};
|
|
4802
4833
|
function c12(c16) {
|
|
4803
|
-
let { title: l17, showCloseButton: u15, children: d12, footer: f12, role: p11 = "dialog", className: m9, isOpen:
|
|
4834
|
+
let { title: l17, showCloseButton: u15, children: d12, footer: f12, role: p11 = "dialog", className: m9, isOpen: h7, onOpenChange: g6, ..._7 } = c16, v4 = u15 ?? !!g6;
|
|
4804
4835
|
return /* @__PURE__ */ jsx(ModalOverlay, {
|
|
4805
|
-
...
|
|
4806
|
-
isOpen:
|
|
4807
|
-
onOpenChange:
|
|
4836
|
+
..._7,
|
|
4837
|
+
isOpen: h7,
|
|
4838
|
+
onOpenChange: g6,
|
|
4808
4839
|
className: s13.overlay,
|
|
4809
4840
|
"data-weasel-overlay": "",
|
|
4810
4841
|
children: /* @__PURE__ */ jsx(Modal, {
|
|
@@ -4813,13 +4844,13 @@ function c12(c16) {
|
|
|
4813
4844
|
role: p11,
|
|
4814
4845
|
className: s13.dialog,
|
|
4815
4846
|
children: ({ close: e19 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4816
|
-
(l17 !== void 0 ||
|
|
4847
|
+
(l17 !== void 0 || v4) && /* @__PURE__ */ jsxs("header", {
|
|
4817
4848
|
className: s13.header,
|
|
4818
4849
|
children: [l17 !== void 0 && /* @__PURE__ */ jsx(Heading, {
|
|
4819
4850
|
slot: "title",
|
|
4820
4851
|
className: s13.title,
|
|
4821
4852
|
children: l17
|
|
4822
|
-
}),
|
|
4853
|
+
}), v4 && /* @__PURE__ */ jsx("button", {
|
|
4823
4854
|
type: "button",
|
|
4824
4855
|
className: s13.close,
|
|
4825
4856
|
onClick: e19,
|
|
@@ -4917,10 +4948,10 @@ var a18 = {
|
|
|
4917
4948
|
shortcut: "_shortcut_1jvxe_38"
|
|
4918
4949
|
};
|
|
4919
4950
|
function o15(o20) {
|
|
4920
|
-
let { icon: s18, label: c16, shortcut: l17, active: u15, disabled: d12, ariaDisabled: f12, tabbable: p11, onClick: m9, onKeyDown:
|
|
4951
|
+
let { icon: s18, label: c16, shortcut: l17, active: u15, disabled: d12, ariaDisabled: f12, tabbable: p11, onClick: m9, onKeyDown: h7, title: g6, className: _7 } = o20, v4 = g6 ?? (l17 ? `${c16} (${l17})` : c16), y4 = [
|
|
4921
4952
|
a18.button,
|
|
4922
4953
|
u15 && a18.active,
|
|
4923
|
-
|
|
4954
|
+
_7
|
|
4924
4955
|
].filter(Boolean).join(" ");
|
|
4925
4956
|
return /* @__PURE__ */ jsxs(o2, {
|
|
4926
4957
|
isDisabled: d12,
|
|
@@ -4934,7 +4965,7 @@ function o15(o20) {
|
|
|
4934
4965
|
"aria-disabled": f12 ? "true" : void 0,
|
|
4935
4966
|
disabled: d12,
|
|
4936
4967
|
onClick: m9,
|
|
4937
|
-
onKeyDown:
|
|
4968
|
+
onKeyDown: h7,
|
|
4938
4969
|
children: [
|
|
4939
4970
|
/* @__PURE__ */ jsx("span", {
|
|
4940
4971
|
className: a18.icon,
|
|
@@ -4951,7 +4982,7 @@ function o15(o20) {
|
|
|
4951
4982
|
})
|
|
4952
4983
|
]
|
|
4953
4984
|
})
|
|
4954
|
-
}), /* @__PURE__ */ jsx(s2, { children:
|
|
4985
|
+
}), /* @__PURE__ */ jsx(s2, { children: v4 })]
|
|
4955
4986
|
});
|
|
4956
4987
|
}
|
|
4957
4988
|
var t21 = {
|
|
@@ -5004,22 +5035,22 @@ function m6(e19) {
|
|
|
5004
5035
|
}
|
|
5005
5036
|
return t25;
|
|
5006
5037
|
}
|
|
5007
|
-
function
|
|
5038
|
+
function h5(e19, t25) {
|
|
5008
5039
|
let n30 = new Set(e19.keys()), r28 = [];
|
|
5009
5040
|
for (let e20 of t25) n30.has(e20) && (r28.push(e20), n30.delete(e20));
|
|
5010
5041
|
for (let t26 of e19.keys()) n30.has(t26) && t26 !== p7 && (r28.push(t26), n30.delete(t26));
|
|
5011
5042
|
return n30.has(p7) && r28.push(p7), r28;
|
|
5012
5043
|
}
|
|
5013
|
-
function
|
|
5044
|
+
function g4(e19) {
|
|
5014
5045
|
let t25 = e19.presentation?.icon;
|
|
5015
5046
|
return t25 == null ? /* @__PURE__ */ jsx(UnknownIcon, {}) : typeof t25 == "function" ? t25(void 0) : t25;
|
|
5016
5047
|
}
|
|
5017
|
-
function
|
|
5018
|
-
let { tools: a22, orientation: u15 = "vertical", className: p11, lookupShortcut:
|
|
5048
|
+
function _4(e19) {
|
|
5049
|
+
let { tools: a22, orientation: u15 = "vertical", className: p11, lookupShortcut: _7, modeRegistry: v4, groupOrder: y4 = f8 } = e19, b3 = m6(Object.values(a22.registry)), x3 = h5(b3, y4), S3 = [
|
|
5019
5050
|
l12.palette,
|
|
5020
5051
|
u15 === "horizontal" && l12.horizontal,
|
|
5021
5052
|
p11
|
|
5022
|
-
].filter(Boolean).join(" "), C3 = x3.flatMap((e20) => b3.get(e20)), w3 = C3.map((e20) =>
|
|
5053
|
+
].filter(Boolean).join(" "), C3 = x3.flatMap((e20) => b3.get(e20)), w3 = C3.map((e20) => v4 ? eligibleContribution(v4, e20) : true), T3 = C3.findIndex((e20) => e20.id === a22.active), E3 = a8({
|
|
5023
5054
|
items: w3.map((e20) => ({ disabled: !e20 })),
|
|
5024
5055
|
itemClassName: l12.paletteBtn,
|
|
5025
5056
|
...T3 >= 0 && w3[T3] ? { tabStopIndex: T3 } : {}
|
|
@@ -5037,9 +5068,9 @@ function _3(e19) {
|
|
|
5037
5068
|
orientation: u15,
|
|
5038
5069
|
groupKey: e20,
|
|
5039
5070
|
children: b3.get(e20).map((e21) => {
|
|
5040
|
-
let t26 = ++D3, r28 = e21.presentation?.label ?? e21.id, i24 = e21.presentation?.shortcut ?? d8(
|
|
5071
|
+
let t26 = ++D3, r28 = e21.presentation?.label ?? e21.id, i24 = e21.presentation?.shortcut ?? d8(_7 ? _7(e21.id) : e21.keybinding), s18 = w3[t26], c16 = v4 ? v4.current().id : void 0, u16 = !s18 && c16 ? `${r28}${i24 ? ` (${i24})` : ""} \u2014 disabled in ${c16} mode` : void 0;
|
|
5041
5072
|
return /* @__PURE__ */ jsx(o15, {
|
|
5042
|
-
icon:
|
|
5073
|
+
icon: g4(e21),
|
|
5043
5074
|
label: r28,
|
|
5044
5075
|
shortcut: i24,
|
|
5045
5076
|
active: a22.active === e21.id,
|
|
@@ -5098,7 +5129,7 @@ var f9 = {
|
|
|
5098
5129
|
empty: "_empty_7wlzm_116"
|
|
5099
5130
|
};
|
|
5100
5131
|
function p8(s18) {
|
|
5101
|
-
let { label: p11, description:
|
|
5132
|
+
let { label: p11, description: h7, errorMessage: g6, placeholder: _7, options: v4, children: y4, selectedKey: b3, defaultSelectedKey: x3, onSelectionChange: S3, emptyLabel: C3 = "No matches", className: w3, ...T3 } = s18;
|
|
5102
5133
|
return /* @__PURE__ */ jsxs(ComboBox, {
|
|
5103
5134
|
...T3,
|
|
5104
5135
|
selectedKey: b3,
|
|
@@ -5116,7 +5147,7 @@ function p8(s18) {
|
|
|
5116
5147
|
}),
|
|
5117
5148
|
/* @__PURE__ */ jsxs("div", {
|
|
5118
5149
|
className: f9.frame,
|
|
5119
|
-
children: [/* @__PURE__ */ jsx(Input, { placeholder:
|
|
5150
|
+
children: [/* @__PURE__ */ jsx(Input, { placeholder: _7 }), /* @__PURE__ */ jsx(Button, {
|
|
5120
5151
|
className: f9.openButton,
|
|
5121
5152
|
"aria-label": "Show options",
|
|
5122
5153
|
children: /* @__PURE__ */ jsx("svg", {
|
|
@@ -5133,14 +5164,14 @@ function p8(s18) {
|
|
|
5133
5164
|
})
|
|
5134
5165
|
})]
|
|
5135
5166
|
}),
|
|
5136
|
-
|
|
5167
|
+
h7 !== void 0 && /* @__PURE__ */ jsx(Text, {
|
|
5137
5168
|
slot: "description",
|
|
5138
5169
|
className: r15.hint,
|
|
5139
|
-
children:
|
|
5170
|
+
children: h7
|
|
5140
5171
|
}),
|
|
5141
5172
|
/* @__PURE__ */ jsx(FieldError, {
|
|
5142
5173
|
className: r15.error,
|
|
5143
|
-
children:
|
|
5174
|
+
children: g6
|
|
5144
5175
|
}),
|
|
5145
5176
|
/* @__PURE__ */ jsx(Popover, {
|
|
5146
5177
|
className: f9.popover,
|
|
@@ -5151,7 +5182,7 @@ function p8(s18) {
|
|
|
5151
5182
|
className: f9.empty,
|
|
5152
5183
|
children: C3
|
|
5153
5184
|
}),
|
|
5154
|
-
children:
|
|
5185
|
+
children: v4 === void 0 ? y4 : v4.map((e19) => /* @__PURE__ */ jsx(m7, {
|
|
5155
5186
|
id: e19.value,
|
|
5156
5187
|
textValue: e19.textValue,
|
|
5157
5188
|
isDisabled: e19.isDisabled,
|
|
@@ -5178,10 +5209,10 @@ function p9(e19, t25, n30, r28, i24, a22 = 0.5) {
|
|
|
5178
5209
|
x: t25.x + (n30.x - t25.x) * i24,
|
|
5179
5210
|
y: t25.y + (n30.y - t25.y) * i24
|
|
5180
5211
|
};
|
|
5181
|
-
let l17 = o20 + i24 * (s18 - o20), u15 = ((o20 - l17) * e19.x + (l17 - 0) * t25.x) / (o20 - 0), d12 = ((o20 - l17) * e19.y + (l17 - 0) * t25.y) / (o20 - 0), p11 = ((s18 - l17) * t25.x + (l17 - o20) * n30.x) / (s18 - o20), m9 = ((s18 - l17) * t25.y + (l17 - o20) * n30.y) / (s18 - o20),
|
|
5212
|
+
let l17 = o20 + i24 * (s18 - o20), u15 = ((o20 - l17) * e19.x + (l17 - 0) * t25.x) / (o20 - 0), d12 = ((o20 - l17) * e19.y + (l17 - 0) * t25.y) / (o20 - 0), p11 = ((s18 - l17) * t25.x + (l17 - o20) * n30.x) / (s18 - o20), m9 = ((s18 - l17) * t25.y + (l17 - o20) * n30.y) / (s18 - o20), h7 = ((c16 - l17) * n30.x + (l17 - s18) * r28.x) / (c16 - s18), g6 = ((c16 - l17) * n30.y + (l17 - s18) * r28.y) / (c16 - s18), _7 = ((s18 - l17) * u15 + (l17 - 0) * p11) / (s18 - 0), v4 = ((s18 - l17) * d12 + (l17 - 0) * m9) / (s18 - 0), y4 = ((c16 - l17) * p11 + (l17 - o20) * h7) / (c16 - o20), b3 = ((c16 - l17) * m9 + (l17 - o20) * g6) / (c16 - o20);
|
|
5182
5213
|
return {
|
|
5183
|
-
x: ((s18 - l17) *
|
|
5184
|
-
y: ((s18 - l17) *
|
|
5214
|
+
x: ((s18 - l17) * _7 + (l17 - o20) * y4) / (s18 - o20),
|
|
5215
|
+
y: ((s18 - l17) * v4 + (l17 - o20) * b3) / (s18 - o20)
|
|
5185
5216
|
};
|
|
5186
5217
|
}
|
|
5187
5218
|
function m8(e19, t25, n30 = 0.5) {
|
|
@@ -5210,7 +5241,7 @@ function m8(e19, t25, n30 = 0.5) {
|
|
|
5210
5241
|
}
|
|
5211
5242
|
return i24;
|
|
5212
5243
|
}
|
|
5213
|
-
function
|
|
5244
|
+
function h6(e19) {
|
|
5214
5245
|
let t25 = e19.length;
|
|
5215
5246
|
if (t25 === 0) return [];
|
|
5216
5247
|
if (t25 === 1) return [0];
|
|
@@ -5225,13 +5256,13 @@ function h5(e19) {
|
|
|
5225
5256
|
}
|
|
5226
5257
|
return r28;
|
|
5227
5258
|
}
|
|
5228
|
-
function
|
|
5259
|
+
function g5(e19, t25, n30, r28, i24) {
|
|
5229
5260
|
let a22 = i24 * i24, o20 = a22 * i24;
|
|
5230
5261
|
return (2 * o20 - 3 * a22 + 1) * e19 + (o20 - 2 * a22 + i24) * n30 + (-2 * o20 + 3 * a22) * t25 + (o20 - a22) * r28;
|
|
5231
5262
|
}
|
|
5232
|
-
function
|
|
5263
|
+
function _5(e19, t25) {
|
|
5233
5264
|
if (e19.length < 2) return [];
|
|
5234
|
-
let n30 = e19.length, r28 = e19.map((e20) => e20.x), i24 = e19.map((e20) => e20.y), a22 =
|
|
5265
|
+
let n30 = e19.length, r28 = e19.map((e20) => e20.x), i24 = e19.map((e20) => e20.y), a22 = h6(r28), o20 = h6(i24), s18 = [];
|
|
5235
5266
|
for (let c16 = 0; c16 < n30 - 1; c16++) {
|
|
5236
5267
|
let n31 = c16 === 0 ? 0 : 1;
|
|
5237
5268
|
for (let l17 = n31; l17 <= t25; l17++) {
|
|
@@ -5245,14 +5276,14 @@ function _4(e19, t25) {
|
|
|
5245
5276
|
}
|
|
5246
5277
|
let n32 = l17 / t25;
|
|
5247
5278
|
s18.push({
|
|
5248
|
-
x:
|
|
5249
|
-
y:
|
|
5279
|
+
x: g5(r28[c16], r28[c16 + 1], a22[c16], a22[c16 + 1], n32),
|
|
5280
|
+
y: g5(i24[c16], i24[c16 + 1], o20[c16], o20[c16 + 1], n32)
|
|
5250
5281
|
});
|
|
5251
5282
|
}
|
|
5252
5283
|
}
|
|
5253
5284
|
return s18;
|
|
5254
5285
|
}
|
|
5255
|
-
function
|
|
5286
|
+
function v3(e19, t25) {
|
|
5256
5287
|
if (e19.length < 2) return [];
|
|
5257
5288
|
let n30 = [];
|
|
5258
5289
|
for (let r28 = 0; r28 < e19.length - 1; r28++) {
|
|
@@ -5278,13 +5309,13 @@ function v2(e19, t25) {
|
|
|
5278
5309
|
function y2(e19, t25, n30) {
|
|
5279
5310
|
switch (n30) {
|
|
5280
5311
|
case "linear":
|
|
5281
|
-
return
|
|
5312
|
+
return v3(e19, t25);
|
|
5282
5313
|
case "catmull-rom-uniform":
|
|
5283
5314
|
return m8(e19, t25, 0);
|
|
5284
5315
|
case "catmull-rom-chordal":
|
|
5285
5316
|
return m8(e19, t25, 1);
|
|
5286
5317
|
case "monotone":
|
|
5287
|
-
return
|
|
5318
|
+
return _5(e19, t25);
|
|
5288
5319
|
default:
|
|
5289
5320
|
return m8(e19, t25, 0.5);
|
|
5290
5321
|
}
|
|
@@ -5309,7 +5340,7 @@ function x2(e19, t25, n30) {
|
|
|
5309
5340
|
for (let e20 = 0; e20 < o20; e20++) {
|
|
5310
5341
|
let s18 = a22[e20], c16 = a22[e20 + 1], l17 = c16.x - s18.x, u15 = c16.y - s18.y, d12 = t25.x - s18.x, f12 = t25.y - s18.y, p11 = l17 * l17 + u15 * u15, m9 = p11 > 0 ? (d12 * l17 + f12 * u15) / p11 : 0;
|
|
5311
5342
|
m9 < 0 ? m9 = 0 : m9 > 1 && (m9 = 1);
|
|
5312
|
-
let
|
|
5343
|
+
let h7 = s18.x + m9 * l17, g6 = s18.y + m9 * u15, _7 = h7 - t25.x, v4 = g6 - t25.y, y4 = _7 * _7 + v4 * v4;
|
|
5313
5344
|
if (y4 > r28) continue;
|
|
5314
5345
|
let b3 = (e20 + m9) / o20;
|
|
5315
5346
|
(i24 === null || y4 < i24.d2) && (i24 = {
|
|
@@ -5453,30 +5484,30 @@ function j2(t25 = {}) {
|
|
|
5453
5484
|
}
|
|
5454
5485
|
return null;
|
|
5455
5486
|
}
|
|
5456
|
-
function
|
|
5487
|
+
function h7(e19) {
|
|
5457
5488
|
return {
|
|
5458
5489
|
onMove(n31, o21, s19, c17) {
|
|
5459
5490
|
let l17 = n31.points;
|
|
5460
5491
|
if (e19 < 0 || e19 >= l17.length) return n31;
|
|
5461
|
-
let u15 = c17.modelRange, d12 = t25.xClamp ? t25.xClamp[0] : u15.xMin, f13 = t25.xClamp ? t25.xClamp[1] : u15.xMax, p12 = o21.x, m10 = o21.y,
|
|
5462
|
-
if (i24 === "pinned-both" &&
|
|
5463
|
-
else if (i24 === "pinned-x" &&
|
|
5492
|
+
let u15 = c17.modelRange, d12 = t25.xClamp ? t25.xClamp[0] : u15.xMin, f13 = t25.xClamp ? t25.xClamp[1] : u15.xMax, p12 = o21.x, m10 = o21.y, h8 = e19 === 0 || e19 === l17.length - 1;
|
|
5493
|
+
if (i24 === "pinned-both" && h8) p12 = l17[e19].x, m10 = l17[e19].y;
|
|
5494
|
+
else if (i24 === "pinned-x" && h8) p12 = e19 === 0 ? d12 : f13;
|
|
5464
5495
|
else if (a22 === "function" || r28 === "1d") {
|
|
5465
5496
|
let t26 = a22 === "function" ? (f13 - d12) / 1e3 : 0, n32 = e19 > 0 ? l17[e19 - 1].x + t26 : d12, r29 = e19 < l17.length - 1 ? l17[e19 + 1].x - t26 : f13;
|
|
5466
5497
|
p12 = Math.max(n32, Math.min(r29, p12));
|
|
5467
5498
|
}
|
|
5468
5499
|
p12 = Math.max(Math.min(d12, f13), Math.min(Math.max(d12, f13), p12));
|
|
5469
|
-
let
|
|
5500
|
+
let g7 = E2({
|
|
5470
5501
|
x: p12,
|
|
5471
5502
|
y: m10
|
|
5472
|
-
}, c17),
|
|
5473
|
-
return
|
|
5503
|
+
}, c17), _8 = l17.slice();
|
|
5504
|
+
return _8[e19] = {
|
|
5474
5505
|
...l17[e19],
|
|
5475
|
-
x:
|
|
5476
|
-
y:
|
|
5506
|
+
x: g7.x,
|
|
5507
|
+
y: g7.y
|
|
5477
5508
|
}, {
|
|
5478
5509
|
...n31,
|
|
5479
|
-
points:
|
|
5510
|
+
points: _8,
|
|
5480
5511
|
activeIndex: e19
|
|
5481
5512
|
};
|
|
5482
5513
|
},
|
|
@@ -5494,7 +5525,7 @@ function j2(t25 = {}) {
|
|
|
5494
5525
|
}
|
|
5495
5526
|
};
|
|
5496
5527
|
}
|
|
5497
|
-
function
|
|
5528
|
+
function g6(o21, s19, c17, l17, u15) {
|
|
5498
5529
|
if (s19.kind === "anchor") {
|
|
5499
5530
|
let { index: r29 } = s19.payload;
|
|
5500
5531
|
if (p("function-layer", "anchor-down", {
|
|
@@ -5515,7 +5546,7 @@ function j2(t25 = {}) {
|
|
|
5515
5546
|
return c17.button === 2 ? void 0 : (u15.commit({
|
|
5516
5547
|
...o21,
|
|
5517
5548
|
activeIndex: r29
|
|
5518
|
-
}),
|
|
5549
|
+
}), h7(r29));
|
|
5519
5550
|
}
|
|
5520
5551
|
if (s19.kind === "curve") {
|
|
5521
5552
|
let { segIdx: e19 } = s19.payload;
|
|
@@ -5526,11 +5557,11 @@ function j2(t25 = {}) {
|
|
|
5526
5557
|
if (t26 && Math.abs(i25.x - t26.x) < e20 * 2) return u15.commit({
|
|
5527
5558
|
...o21,
|
|
5528
5559
|
activeIndex: n31 - 1
|
|
5529
|
-
}),
|
|
5560
|
+
}), h7(n31 - 1);
|
|
5530
5561
|
if (r29 && Math.abs(i25.x - r29.x) < e20 * 2) return u15.commit({
|
|
5531
5562
|
...o21,
|
|
5532
5563
|
activeIndex: n31
|
|
5533
|
-
}),
|
|
5564
|
+
}), h7(n31);
|
|
5534
5565
|
}
|
|
5535
5566
|
let c18 = [
|
|
5536
5567
|
...o21.points.slice(0, n31),
|
|
@@ -5541,10 +5572,10 @@ function j2(t25 = {}) {
|
|
|
5541
5572
|
...o21,
|
|
5542
5573
|
points: c18,
|
|
5543
5574
|
activeIndex: n31
|
|
5544
|
-
}),
|
|
5575
|
+
}), h7(n31);
|
|
5545
5576
|
}
|
|
5546
5577
|
}
|
|
5547
|
-
function
|
|
5578
|
+
function _7(e19, n31, i25, a23, s19) {
|
|
5548
5579
|
if (!c16 || o20 !== "click-empty" || t25.maxPoints !== void 0 && e19.points.length >= t25.maxPoints) return;
|
|
5549
5580
|
let l17 = E2(n31, a23), u15 = e19.points.length;
|
|
5550
5581
|
if (r28 === "1d") {
|
|
@@ -5568,8 +5599,8 @@ function j2(t25 = {}) {
|
|
|
5568
5599
|
id: n30,
|
|
5569
5600
|
render: p11,
|
|
5570
5601
|
hitTest: m9,
|
|
5571
|
-
onPointerDown:
|
|
5572
|
-
onEmptyPointerDown:
|
|
5602
|
+
onPointerDown: g6,
|
|
5603
|
+
onEmptyPointerDown: _7
|
|
5573
5604
|
};
|
|
5574
5605
|
}
|
|
5575
5606
|
function N2(e19) {
|
|
@@ -5581,15 +5612,15 @@ function N2(e19) {
|
|
|
5581
5612
|
};
|
|
5582
5613
|
}
|
|
5583
5614
|
function P2(l17) {
|
|
5584
|
-
let { layers: f12, onLayerChange: p11, onLayerCommit: m9, width:
|
|
5585
|
-
xMin:
|
|
5586
|
-
xMax:
|
|
5587
|
-
yMin:
|
|
5588
|
-
yMax:
|
|
5589
|
-
}), [
|
|
5590
|
-
width:
|
|
5591
|
-
height:
|
|
5592
|
-
}), [
|
|
5615
|
+
let { layers: f12, onLayerChange: p11, onLayerCommit: m9, width: h7, height: g6, xRange: _7 = [0, 1], yRange: v4 = [0, 1], grid: y4, axes: b3, className: x3, style: C3, children: w3 } = l17, T3 = l17.history !== false, E3 = useMemo(() => ({
|
|
5616
|
+
xMin: _7[0],
|
|
5617
|
+
xMax: _7[1],
|
|
5618
|
+
yMin: v4[0],
|
|
5619
|
+
yMax: v4[1]
|
|
5620
|
+
}), [_7, v4]), D3 = useMemo(() => ({
|
|
5621
|
+
width: h7,
|
|
5622
|
+
height: g6
|
|
5623
|
+
}), [h7, g6]), O3 = useRef(f12);
|
|
5593
5624
|
O3.current = f12;
|
|
5594
5625
|
let k3 = useRef(E3);
|
|
5595
5626
|
k3.current = E3;
|
|
@@ -5788,10 +5819,10 @@ function P2(l17) {
|
|
|
5788
5819
|
ref: j3,
|
|
5789
5820
|
className: [S2.root, x3].filter(Boolean).join(" "),
|
|
5790
5821
|
style: C3,
|
|
5791
|
-
width:
|
|
5792
|
-
height:
|
|
5793
|
-
xRange:
|
|
5794
|
-
yRange:
|
|
5822
|
+
width: h7,
|
|
5823
|
+
height: g6,
|
|
5824
|
+
xRange: _7,
|
|
5825
|
+
yRange: v4,
|
|
5795
5826
|
grid: y4,
|
|
5796
5827
|
axes: b3,
|
|
5797
5828
|
tabIndex: T3 ? 0 : void 0,
|
|
@@ -5816,17 +5847,17 @@ function P2(l17) {
|
|
|
5816
5847
|
});
|
|
5817
5848
|
}
|
|
5818
5849
|
function F2(e19) {
|
|
5819
|
-
let { value: t25, onInput: n30, onChange: r28, domain: l17, endpoints: d12, interpolation: f12, constrain: p11, addPointMode: m9, minPoints:
|
|
5850
|
+
let { value: t25, onInput: n30, onChange: r28, domain: l17, endpoints: d12, interpolation: f12, constrain: p11, addPointMode: m9, minPoints: h7, maxPoints: g6, curve: _7, fill: v4, hideNonInteractive: y4, renderAnchor: b3, width: x3, height: S3, xRange: C3, yRange: w3, grid: T3, axes: E3, history: D3, className: O3, style: k3, decorations: A3 } = e19, M3 = useMemo(() => j2({
|
|
5820
5851
|
id: "function",
|
|
5821
5852
|
domain: l17,
|
|
5822
5853
|
endpoints: d12,
|
|
5823
5854
|
interpolation: f12,
|
|
5824
5855
|
constrain: p11,
|
|
5825
5856
|
addPointMode: m9,
|
|
5826
|
-
minPoints:
|
|
5827
|
-
maxPoints:
|
|
5828
|
-
curve:
|
|
5829
|
-
fill:
|
|
5857
|
+
minPoints: h7,
|
|
5858
|
+
maxPoints: g6,
|
|
5859
|
+
curve: _7,
|
|
5860
|
+
fill: v4,
|
|
5830
5861
|
hideNonInteractive: y4,
|
|
5831
5862
|
renderAnchor: b3
|
|
5832
5863
|
}), [
|
|
@@ -5835,10 +5866,10 @@ function F2(e19) {
|
|
|
5835
5866
|
f12,
|
|
5836
5867
|
p11,
|
|
5837
5868
|
m9,
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5869
|
+
h7,
|
|
5870
|
+
g6,
|
|
5871
|
+
_7,
|
|
5872
|
+
v4,
|
|
5842
5873
|
y4,
|
|
5843
5874
|
b3
|
|
5844
5875
|
]), [N3, F3] = useState(() => ({
|
|
@@ -5867,7 +5898,7 @@ function F2(e19) {
|
|
|
5867
5898
|
let i24 = t26.getAttribute("data-anchor-index");
|
|
5868
5899
|
if (i24 === null) return;
|
|
5869
5900
|
let a22 = Number(i24), o20 = I3.current.points;
|
|
5870
|
-
if (!Number.isInteger(a22) || a22 < 0 || a22 >= o20.length || o20[a22]?.locked || d12 !== void 0 && d12 !== "free" && (a22 === 0 || a22 === o20.length - 1) ||
|
|
5901
|
+
if (!Number.isInteger(a22) || a22 < 0 || a22 >= o20.length || o20[a22]?.locked || d12 !== void 0 && d12 !== "free" && (a22 === 0 || a22 === o20.length - 1) || h7 !== void 0 && o20.length <= h7) return;
|
|
5871
5902
|
let s18 = o20.filter((e21, t27) => t27 !== a22);
|
|
5872
5903
|
F3({
|
|
5873
5904
|
points: s18,
|
|
@@ -5875,7 +5906,7 @@ function F2(e19) {
|
|
|
5875
5906
|
}), n30(s18), r28?.(s18, o20);
|
|
5876
5907
|
}, [
|
|
5877
5908
|
d12,
|
|
5878
|
-
|
|
5909
|
+
h7,
|
|
5879
5910
|
n30,
|
|
5880
5911
|
r28
|
|
5881
5912
|
]),
|
|
@@ -5956,6 +5987,6 @@ function He2(e19, t25) {
|
|
|
5956
5987
|
return e19 <= n30 ? t25.cBot : e19 >= r28 ? t25.cTop : e19 <= t25.midL ? t25.cBot + (t25.cPeak - t25.cBot) * ((e19 - n30) / (t25.midL - n30)) : t25.cPeak + (t25.cTop - t25.cPeak) * ((e19 - t25.midL) / (r28 - t25.midL));
|
|
5957
5988
|
}
|
|
5958
5989
|
|
|
5959
|
-
export { F2 as F, Ft, He2 as He, Ve2 as Ve, _,
|
|
5960
|
-
//# sourceMappingURL=chunk-
|
|
5961
|
-
//# sourceMappingURL=chunk-
|
|
5990
|
+
export { F2 as F, Ft, He2 as He, Ve2 as Ve, _, _4 as _2, a4 as a, a8 as a2, a15 as a3, c4 as c, c5 as c2, c12 as c3, c13 as c4, d4 as d, d8 as d2, e7 as e, f, f6 as f2, h4 as h, l9 as l, l10 as l2, l13 as l3, m2 as m, m7 as m2, n15 as n, n23 as n2, n26 as n3, n29 as n4, o5 as o, o6 as o2, o7 as o3, o14 as o4, o15 as o5, o17 as o6, p, p4 as p2, p6 as p3, p8 as p4, p10 as p5, qe, r10 as r, r11 as r2, r12 as r3, r13 as r4, r15 as r5, s6 as s, s7 as s2, s15 as s3, u4 as u, u5 as u2, u7 as u3, u9 as u4, u11 as u5, v2 as v };
|
|
5991
|
+
//# sourceMappingURL=chunk-73KA7WBO.js.map
|
|
5992
|
+
//# sourceMappingURL=chunk-73KA7WBO.js.map
|