@synnaxlabs/pluto 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Center-DoAxDY5V.js → Center-Dr9Np3yZ.js} +4 -4
- package/dist/Center-sJghNsrv.cjs +1 -0
- package/dist/ContextMenu-DCxj35_j.cjs +1 -0
- package/dist/ContextMenu-GUed89mt.js +96 -0
- package/dist/DateTime-D6J8sRSH.cjs +1 -0
- package/dist/{DateTime-sO15tvDD.js → DateTime-DEbT6v4l.js} +3 -3
- package/dist/{Divider-C5m3c4pv.js → Divider-Bpe7zJig.js} +804 -878
- package/dist/Divider-CloQr3vQ.cjs +22 -0
- package/dist/Dropdown-4Cti-bbQ.js +328 -0
- package/dist/Dropdown-C7Im-qW-.cjs +1 -0
- package/dist/{Haul-DrdXQaTq.js → Haul-Bw54Yj6J.js} +9 -9
- package/dist/{Haul-CoG7Jmz6.cjs → Haul-hv7TLQ7N.cjs} +1 -1
- package/dist/Item-9WCCzBv2.js +110 -0
- package/dist/Item-piF6rFAm.cjs +1 -0
- package/dist/{Keyboard-lwCx7plR.js → Keyboard-634856lT.js} +11 -9
- package/dist/Keyboard-CZFi6COK.cjs +1 -0
- package/dist/{Link-lleSh5eG.js → Link-BEheZd26.js} +2 -2
- package/dist/{Link-BSZ-HrRf.cjs → Link-fkoogssj.cjs} +1 -1
- package/dist/Pack-D6Z6WuZl.cjs +1 -0
- package/dist/Pack-DhZO_rza.js +48 -0
- package/dist/Provider-DNTq46b0.cjs +1 -0
- package/dist/Provider-UAXPVomG.js +452 -0
- package/dist/Space-BtaH1buB.cjs +1 -0
- package/dist/Space-DunsWl06.js +100 -0
- package/dist/Text-3PiRcn8q.js +1246 -0
- package/dist/Text-BTEov6di.cjs +1 -0
- package/dist/Text-CaRMYy3U.js +135 -0
- package/dist/Text-DNspRcte.js +36 -0
- package/dist/Text-DylGoRKw.cjs +4 -0
- package/dist/Text-X_BHez8W.cjs +1 -0
- package/dist/Toggle-BKKBcuTj.cjs +1 -0
- package/dist/Toggle-CZd8L4GI.js +379 -0
- package/dist/{Video-DPIAdJ-g.js → Video-4XQ1qozd.js} +2 -2
- package/dist/{Video-BJudMCoc.cjs → Video-BM9uJLaQ.cjs} +1 -1
- package/dist/WithIcon-CC-RSx6r.js +93 -0
- package/dist/WithIcon-Dn8eAoMj.cjs +1 -0
- package/dist/{aggregator-Dd6-VUPG.cjs → aggregator-74jWxDne.cjs} +1 -1
- package/dist/{aggregator-Bo5bXe2h.js → aggregator-DMvP8cai.js} +6 -6
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/css-Cj2UCGXB.cjs +1 -0
- package/dist/{css-rxwBYwM1.js → css-Dyt-QnKy.js} +467 -462
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/{deep-ChDJVfub.js → deep-Cvb4bVYY.js} +1 -1
- package/dist/{deep-BjupBYvk.cjs → deep-ICSlPm58.cjs} +1 -1
- package/dist/{dimensions-Bt1NqWz6.js → dimensions-Cc0z-IDd.js} +1 -1
- package/dist/dimensions-Djqdrqi0.cjs +1 -0
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-BsY8Ilvt.cjs → eraser-9-LOWZvk.cjs} +3 -3
- package/dist/{eraser-B8b1ORvV.js → eraser-BjtEI-1I.js} +10 -10
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +32 -31
- package/dist/{external-DhX0dZoF.cjs → external-B-Cao-ae.cjs} +1 -1
- package/dist/external-B-UNCzPY.cjs +1 -0
- package/dist/external-B18FBGpk.cjs +1 -0
- package/dist/{external-DNUUgDyq.js → external-BCUxzSzk.js} +33 -32
- package/dist/{external-cFoSk0PK.js → external-BFOrrNde.js} +3 -3
- package/dist/external-BG1mV1W8.cjs +1 -0
- package/dist/{external-CGxC3uw1.js → external-BIwhkj24.js} +456 -454
- package/dist/external-BWeX0nyq.js +399 -0
- package/dist/{external-C8i1PCpN.js → external-BY2AjzRx.js} +15 -15
- package/dist/external-BbmpRAH3.cjs +1 -0
- package/dist/{external-DK_wU08V.js → external-BbrPEGJw.js} +2 -2
- package/dist/external-BlUic3Vz.js +29 -0
- package/dist/{external-D18IGHXh.js → external-C0ZRdtdj.js} +21 -20
- package/dist/{external-GUQ0NMxY.js → external-CH66YjTZ.js} +19 -18
- package/dist/{external-Bxg2-RDn.js → external-CVGidiDt.js} +2 -2
- package/dist/{external-BmbDPHD3.cjs → external-CnxSp7fm.cjs} +1 -1
- package/dist/{external-CSKJSiQJ.cjs → external-D2vS6j9c.cjs} +2 -2
- package/dist/external-DHmQqAfL.js +435 -0
- package/dist/{external-BtHnb3Sp.js → external-DNF8yEwq.js} +5485 -5443
- package/dist/{external-AOOzgEKd.cjs → external-DRGfSFQT.cjs} +1 -1
- package/dist/{external-CRbERCqd.cjs → external-DVajt6X6.cjs} +1 -1
- package/dist/external-DX4m-5qT.cjs +1 -0
- package/dist/external-DlywBW-S.cjs +1 -0
- package/dist/{external-CKvBpFrE.cjs → external-kZf9CjYn.cjs} +35 -35
- package/dist/{font-BBeEt9tk.js → font-BXKdXsr5.js} +2 -2
- package/dist/{font-DshP3AG2.cjs → font-DCE90lco.cjs} +1 -1
- package/dist/fontString-BBvH9Ypy.cjs +1 -0
- package/dist/fontString-C7Q9Laqk.js +28 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hooks-BQJQyGWV.js +293 -0
- package/dist/hooks-ClXSlga9.cjs +1 -0
- package/dist/{state-w46WTrh-.js → index-CSKP1UPN.js} +385 -441
- package/dist/index-Ch3utIMa.cjs +15 -0
- package/dist/index.cjs +7 -7
- package/dist/index.js +8088 -7071
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/jsx-runtime-CITbqOLs.cjs +22 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/pluto.css +1 -1
- package/dist/{provider-BsPH6eua.js → provider-CH0eoGfz.js} +2143 -2085
- package/dist/provider-D054LCpB.cjs +53 -0
- package/dist/src/aether/main.d.ts +48 -0
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/align/Center.d.ts +2 -2
- package/dist/src/align/Center.d.ts.map +1 -1
- package/dist/src/align/Pack.d.ts +3 -3
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +25 -10
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/align/Stack.d.ts +7 -0
- package/dist/src/align/Stack.d.ts.map +1 -0
- package/dist/src/align/external.d.ts +1 -0
- package/dist/src/align/external.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +2 -4
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +4 -1
- package/dist/src/button/Icon.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +0 -1
- package/dist/src/button/Toggle.d.ts.map +1 -1
- package/dist/src/caret/Animated.d.ts +3 -2
- package/dist/src/caret/Animated.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +1 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/channel/Select.d.ts +3 -3
- package/dist/src/channel/Select.d.ts.map +1 -1
- package/dist/src/color/Picker.d.ts.map +1 -1
- package/dist/src/css/css.d.ts +2 -1
- package/dist/src/css/css.d.ts.map +1 -1
- package/dist/src/divider/Divider.d.ts +4 -4
- package/dist/src/divider/Divider.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts +2 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/generic/Generic.d.ts +4 -5
- package/dist/src/generic/Generic.d.ts.map +1 -1
- package/dist/src/hardware/device/Select.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/input/DateTime.d.ts.map +1 -1
- package/dist/src/input/Item.d.ts +1 -1
- package/dist/src/input/Item.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +1 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +0 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/list/Column.d.ts +3 -3
- package/dist/src/list/Column.d.ts.map +1 -1
- package/dist/src/list/Core.d.ts +1 -1
- package/dist/src/list/Core.d.ts.map +1 -1
- package/dist/src/list/Hover.d.ts +3 -2
- package/dist/src/list/Hover.d.ts.map +1 -1
- package/dist/src/list/Item.d.ts +1 -1
- package/dist/src/list/Item.d.ts.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +5 -3
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/menu/Menu.d.ts +3 -2
- package/dist/src/menu/Menu.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts +7 -3
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts +5 -3
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts +4 -3
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +6 -6
- package/dist/src/nav/Bar.d.ts +2 -1
- package/dist/src/nav/Bar.d.ts.map +1 -1
- package/dist/src/nav/Drawer.d.ts +3 -2
- package/dist/src/nav/Drawer.d.ts.map +1 -1
- package/dist/src/notation/Select.d.ts +2 -3
- package/dist/src/notation/Select.d.ts.map +1 -1
- package/dist/src/notation/index.d.ts +1 -1
- package/dist/src/notation/index.d.ts.map +1 -1
- package/dist/src/os/Controls/Windows.d.ts +1 -1
- package/dist/src/os/Controls/Windows.d.ts.map +1 -1
- package/dist/src/os/Controls/types.d.ts +2 -0
- package/dist/src/os/Controls/types.d.ts.map +1 -1
- package/dist/src/ranger/TimeRangeChip.d.ts +2 -1
- package/dist/src/ranger/TimeRangeChip.d.ts.map +1 -1
- package/dist/src/resize/Core.d.ts +5 -4
- package/dist/src/resize/Core.d.ts.map +1 -1
- package/dist/src/resize/Multiple.d.ts.map +1 -1
- package/dist/src/resize/Single.d.ts.map +1 -1
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/List.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/status/Notification.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +8 -8
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/types.d.ts +2 -2
- package/dist/src/status/aether/types.d.ts.map +1 -1
- package/dist/src/status/colors.d.ts +1 -1
- package/dist/src/status/colors.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/table/aether/Table.d.ts +3 -3
- package/dist/src/table/aether/Table.d.ts.map +1 -1
- package/dist/src/table/cells/Cells.d.ts +2 -2
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts +5 -2
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +2 -3
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +4 -4
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +6 -6
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +8 -8
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts +8 -8
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Keyboard.d.ts +1 -1
- package/dist/src/text/Keyboard.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts +3 -2
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts.map +1 -1
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +650 -530
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/fontString.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +229 -187
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/theming/css.d.ts +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/theming/static/generate.d.ts +2 -0
- package/dist/src/theming/static/generate.d.ts.map +1 -0
- package/dist/src/tooltip/Dialog.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +1 -1
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +2 -2
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/Text.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +1 -0
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/util/component.d.ts +2 -2
- package/dist/src/util/component.d.ts.map +1 -1
- package/dist/src/viewport/Mask.d.ts.map +1 -1
- package/dist/src/viewport/SelectMode.d.ts +2 -1
- package/dist/src/viewport/SelectMode.d.ts.map +1 -1
- package/dist/src/viewport/use.d.ts +3 -3
- package/dist/src/viewport/use.d.ts.map +1 -1
- package/dist/src/vis/axis/preciseTimeScale.d.ts +102 -0
- package/dist/src/vis/axis/preciseTimeScale.d.ts.map +1 -0
- package/dist/src/vis/axis/preciseTimeScale.spec.d.ts +2 -0
- package/dist/src/vis/axis/preciseTimeScale.spec.d.ts.map +1 -0
- package/dist/src/vis/axis/ticks.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +3 -3
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +8 -8
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/draw2d/index.d.ts +16 -1
- package/dist/src/vis/draw2d/index.d.ts.map +1 -1
- package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
- package/dist/src/vis/eraser/use.d.ts +2 -2
- package/dist/src/vis/eraser/use.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts +6 -6
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts +14 -3
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +4 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Line.d.ts +1 -1
- package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +1 -0
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +6 -6
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +6 -6
- package/dist/src/vis/lineplot/aether/axis.d.ts +3 -3
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts +6 -6
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/Log.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +12 -12
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/rule/Rule.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +7 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +54 -5
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +41 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/value/Form.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +6 -6
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +2 -2
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/state-Bd_8X2jl.cjs +1 -0
- package/dist/state-CjGemC7S.js +88 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theme.css +1600 -0
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/{transformColorsToHex-B2Bui-Wf.cjs → transformColorsToHex-DE7uEs1w.cjs} +1 -1
- package/dist/{transformColorsToHex-B6dG2LA6.js → transformColorsToHex-UBrryWh5.js} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-CvIf5nF_.cjs → units-DjoHPrqM.cjs} +1 -1
- package/dist/{units-D7qkgH-s.js → units-MBd0L3ff.js} +1 -1
- package/dist/useClickOutside-4k9PAT_i.cjs +1 -0
- package/dist/{useClickOutside-vpv_GiBw.js → useClickOutside-BYjsXGgb.js} +28 -28
- package/dist/{useDebouncedCallback-CVLx7N1s.cjs → useDebouncedCallback-BBsAgC9k.cjs} +1 -1
- package/dist/{useDebouncedCallback-DDLuEZa8.js → useDebouncedCallback-Dg4BDGP-.js} +1 -1
- package/dist/{useMemoCompare-B-Y9Ft2w.js → useMemoCompare-BEDaTIXL.js} +2 -2
- package/dist/useMemoCompare-DORTZbzY.cjs +1 -0
- package/dist/useVirtualCursorDragWebKit-BSafZVD_.cjs +1 -0
- package/dist/{useVirtualCursorDragWebKit-DFC-XFfl.js → useVirtualCursorDragWebKit-BixysrXI.js} +28 -27
- package/dist/{value-C9u1Km9t.js → value-CudL8z5e.js} +1891 -1716
- package/dist/value-DT0qJqgQ.cjs +57 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +22 -20
- package/dist/Center-BjxFDxgi.cjs +0 -1
- package/dist/ContextMenu-BWGS1vXl.cjs +0 -1
- package/dist/ContextMenu-DX6j7Wwi.js +0 -101
- package/dist/DateTime-DUuYjZr8.cjs +0 -1
- package/dist/Divider-MIbyu5ZH.cjs +0 -31
- package/dist/Dropdown-DurKTABg.cjs +0 -1
- package/dist/Dropdown-FSmdakic.js +0 -261
- package/dist/Item-CZAsnOoO.js +0 -108
- package/dist/Item-Dj7cQJ8t.cjs +0 -1
- package/dist/Keyboard-D4FRdVej.cjs +0 -1
- package/dist/Pack-CzZzxA2R.cjs +0 -1
- package/dist/Pack-Dlj4dZzQ.js +0 -46
- package/dist/Provider-CvqYCQ-c.js +0 -436
- package/dist/Provider-DdzMK2ly.cjs +0 -1
- package/dist/Space-DBmhvGQL.js +0 -76
- package/dist/Space-NNqCWFbg.cjs +0 -1
- package/dist/Text-BBAivtcq.js +0 -124
- package/dist/Text-BpgvgYm9.cjs +0 -1
- package/dist/Text-D1GKnp9s.cjs +0 -1
- package/dist/Text-DKpfyuCy.js +0 -1199
- package/dist/Text-Kq93-h4G.cjs +0 -4
- package/dist/Text-g6btwQ6E.js +0 -32
- package/dist/Toggle-BzORI5sE.cjs +0 -1
- package/dist/Toggle-DZMcFiiI.js +0 -356
- package/dist/WithIcon-C6COgbZq.js +0 -92
- package/dist/WithIcon-CJvuPkSy.cjs +0 -1
- package/dist/css-CU7tous7.cjs +0 -1
- package/dist/dimensions-IEzi7AOM.cjs +0 -1
- package/dist/external-BCMlN9UI.cjs +0 -1
- package/dist/external-BJulb-Hm.cjs +0 -1
- package/dist/external-BQtPGUNg.cjs +0 -1
- package/dist/external-BTGfIw_K.cjs +0 -1
- package/dist/external-CqR7Yk0z.js +0 -418
- package/dist/external-D3IjVlS7.cjs +0 -1
- package/dist/external-DNC1e6Hi.js +0 -343
- package/dist/external-Dmr3e50U.js +0 -15
- package/dist/external-DrwngojV.cjs +0 -1
- package/dist/fontString-CWcKYJNb.cjs +0 -1
- package/dist/fontString-DKZUOJ6f.js +0 -12
- package/dist/hooks-BKLtEDxx.cjs +0 -1
- package/dist/hooks-CwSxEEAh.js +0 -293
- package/dist/jsx-runtime-CYK1ROHF.js +0 -445
- package/dist/jsx-runtime-UYeBbnYT.cjs +0 -31
- package/dist/provider-BaehOXWw.cjs +0 -53
- package/dist/src/notation/external.d.ts +0 -3
- package/dist/src/notation/external.d.ts.map +0 -1
- package/dist/src/notation/notation.d.ts +0 -33
- package/dist/src/notation/notation.d.ts.map +0 -1
- package/dist/src/notation/notation.spec.d.ts +0 -2
- package/dist/src/notation/notation.spec.d.ts.map +0 -1
- package/dist/state-BKyv_jWZ.cjs +0 -15
- package/dist/useClickOutside-EJHWO4Q9.cjs +0 -1
- package/dist/useMemoCompare-ONEAVO05.cjs +0 -1
- package/dist/useVirtualCursorDragWebKit-BLtwRQY7.cjs +0 -1
- package/dist/value-C_xE_NRc.cjs +0 -57
- /package/dist/{Pack-BbwDtaE6.cjs → Stack-BbwDtaE6.cjs} +0 -0
- /package/dist/{Pack-D50qN0Vu.js → Stack-D50qN0Vu.js} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as Oe, v as Ye, V as D, z as V, A as ue, F as Z, G as Ve, H as ze, I as Ge, R as Ze, L as Je, U as We, N as He, W as Ke, O as Xe, Q as Qe, S as _e, X as et } from "./css-Dyt-QnKy.js";
|
|
2
2
|
import { z as u } from "zod";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let He = class {
|
|
3
|
+
const Te = (r) => r != null && typeof r == "object" && !Array.isArray(r);
|
|
4
|
+
var tt = Object.defineProperty, rt = (r, e, t) => e in r ? tt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Y = (r, e, t) => rt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
5
|
+
let nt = class {
|
|
7
6
|
constructor() {
|
|
8
|
-
|
|
7
|
+
Y(this, "contentType", "application/json"), Y(this, "decoder"), Y(this, "encoder"), this.decoder = new TextDecoder(), this.encoder = new TextEncoder();
|
|
9
8
|
}
|
|
10
9
|
encode(e) {
|
|
11
10
|
return this.encoder.encode(this.encodeString(e)).buffer;
|
|
@@ -14,18 +13,18 @@ let He = class {
|
|
|
14
13
|
return this.decodeString(this.decoder.decode(e), t);
|
|
15
14
|
}
|
|
16
15
|
decodeString(e, t) {
|
|
17
|
-
const n = JSON.parse(e), s =
|
|
16
|
+
const n = JSON.parse(e), s = Oe(n);
|
|
18
17
|
return t != null ? t.parse(s) : s;
|
|
19
18
|
}
|
|
20
19
|
encodeString(e) {
|
|
21
|
-
const t =
|
|
22
|
-
return JSON.stringify(t, (n, s) => ArrayBuffer.isView(s) ? Array.from(s) :
|
|
20
|
+
const t = Ye(e);
|
|
21
|
+
return JSON.stringify(t, (n, s) => ArrayBuffer.isView(s) ? Array.from(s) : Te(s) && "encode_value" in s ? typeof s.value == "bigint" ? s.value.toString() : s.value : typeof s == "bigint" ? s.toString() : s);
|
|
23
22
|
}
|
|
24
23
|
static registerCustomType() {
|
|
25
24
|
}
|
|
26
|
-
},
|
|
25
|
+
}, st = class {
|
|
27
26
|
constructor() {
|
|
28
|
-
|
|
27
|
+
Y(this, "contentType", "text/csv");
|
|
29
28
|
}
|
|
30
29
|
encode(e) {
|
|
31
30
|
const t = this.encodeString(e);
|
|
@@ -36,7 +35,7 @@ let He = class {
|
|
|
36
35
|
return this.decodeString(n, t);
|
|
37
36
|
}
|
|
38
37
|
encodeString(e) {
|
|
39
|
-
if (!Array.isArray(e) || e.length === 0 || !
|
|
38
|
+
if (!Array.isArray(e) || e.length === 0 || !Te(e[0]))
|
|
40
39
|
throw new Error("Payload must be an array of objects");
|
|
41
40
|
const t = Object.keys(e[0]), n = [t.join(",")];
|
|
42
41
|
return e.forEach((s) => {
|
|
@@ -55,9 +54,9 @@ let He = class {
|
|
|
55
54
|
l[m] = [];
|
|
56
55
|
}), s.forEach((m) => {
|
|
57
56
|
const f = m.split(",").map((g) => g.trim());
|
|
58
|
-
a.forEach((g,
|
|
59
|
-
const
|
|
60
|
-
|
|
57
|
+
a.forEach((g, v) => {
|
|
58
|
+
const c = this.parseValue(f[v]);
|
|
59
|
+
c != null && l[g].push(c);
|
|
61
60
|
});
|
|
62
61
|
}), t != null ? t.parse(l) : l;
|
|
63
62
|
}
|
|
@@ -68,9 +67,9 @@ let He = class {
|
|
|
68
67
|
}
|
|
69
68
|
static registerCustomType() {
|
|
70
69
|
}
|
|
71
|
-
},
|
|
70
|
+
}, it = class {
|
|
72
71
|
constructor() {
|
|
73
|
-
|
|
72
|
+
Y(this, "contentType", "text/plain");
|
|
74
73
|
}
|
|
75
74
|
encode(e) {
|
|
76
75
|
return new TextEncoder().encode(e).buffer;
|
|
@@ -80,10 +79,10 @@ let He = class {
|
|
|
80
79
|
return t != null ? t.parse(n) : n;
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
|
-
const J = new
|
|
84
|
-
new
|
|
85
|
-
new
|
|
86
|
-
const
|
|
82
|
+
const J = new nt();
|
|
83
|
+
new st();
|
|
84
|
+
new it();
|
|
85
|
+
const re = (r) => [...new Set(r)], at = (r, e, t = !0) => {
|
|
87
86
|
const n = /* @__PURE__ */ new Map();
|
|
88
87
|
return r.forEach((s) => {
|
|
89
88
|
const a = e(s);
|
|
@@ -93,12 +92,12 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
93
92
|
}
|
|
94
93
|
n.set(a, s);
|
|
95
94
|
}), Array.from(n.values());
|
|
96
|
-
},
|
|
95
|
+
}, Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
97
96
|
__proto__: null,
|
|
98
|
-
by:
|
|
99
|
-
unique:
|
|
100
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
101
|
-
if (
|
|
97
|
+
by: at,
|
|
98
|
+
unique: re
|
|
99
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = (r) => r != null && typeof r == "object" && "toString" in r, $r = (r) => {
|
|
100
|
+
if (ve(r)) return (r == null ? void 0 : r.toString().length) === 0;
|
|
102
101
|
switch (typeof r) {
|
|
103
102
|
case "string":
|
|
104
103
|
return r.length === 0;
|
|
@@ -114,7 +113,7 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
114
113
|
return r === null;
|
|
115
114
|
}
|
|
116
115
|
}, _ = (r, e = !1) => {
|
|
117
|
-
const t =
|
|
116
|
+
const t = ve(r) ? "stringer" : typeof r;
|
|
118
117
|
let n;
|
|
119
118
|
switch (t) {
|
|
120
119
|
case "string":
|
|
@@ -138,19 +137,19 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
138
137
|
default:
|
|
139
138
|
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
140
139
|
}
|
|
141
|
-
return e ?
|
|
142
|
-
},
|
|
140
|
+
return e ? Ne(n) : n;
|
|
141
|
+
}, ot = (r, e, t) => {
|
|
143
142
|
const n = _(e[r], t);
|
|
144
143
|
return (s, a) => n(s[r], a[r]);
|
|
145
|
-
},
|
|
144
|
+
}, ut = (r, e) => r.length !== e.length ? r.length - e.length : r.every((t, n) => t === e[n]) ? 0 : -1, Se = (r, e) => {
|
|
146
145
|
if (r.length !== e.length) return r.length - e.length;
|
|
147
146
|
if (r.length === 0) return 0;
|
|
148
147
|
const t = _(r[0]), n = [...r].sort(t), s = [...e].sort(t);
|
|
149
148
|
return n.every((a, l) => a === s[l]) ? 0 : -1;
|
|
150
|
-
},
|
|
151
|
-
const t =
|
|
152
|
-
return
|
|
153
|
-
},
|
|
149
|
+
}, lt = (r, e) => {
|
|
150
|
+
const t = re(r), n = re(e);
|
|
151
|
+
return Se(t, n);
|
|
152
|
+
}, ht = (r, e) => r === e ? 0 : r === "first" && e === "last" ? 1 : -1, Ne = (r) => (e, t) => r(t, e), C = 0, W = -1, H = 1, Ie = (r) => r < C, Ae = (r) => r > C, ct = (r) => r >= C, $e = (r) => r === C, ft = (r, e) => {
|
|
154
153
|
const t = /([a-zA-Z]+)|(\d+)/g, n = r.replace(/[\s_.-]+/g, "").match(t), s = e.replace(/[\s_.-]+/g, "").match(t);
|
|
155
154
|
if (!n || !s) return 0;
|
|
156
155
|
for (let a = 0; a < Math.min(n.length, s.length); a++) {
|
|
@@ -164,35 +163,35 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
164
163
|
} else return isNaN(Number(l)) ? -1 : 1;
|
|
165
164
|
}
|
|
166
165
|
return n.length - s.length;
|
|
167
|
-
},
|
|
166
|
+
}, Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
168
167
|
__proto__: null,
|
|
169
|
-
EQUAL:
|
|
168
|
+
EQUAL: C,
|
|
170
169
|
GREATER_THAN: H,
|
|
171
170
|
LESS_THAN: W,
|
|
172
|
-
isEqualTo:
|
|
173
|
-
isGreaterThan:
|
|
174
|
-
isGreaterThanEqual:
|
|
175
|
-
isLessThan:
|
|
171
|
+
isEqualTo: $e,
|
|
172
|
+
isGreaterThan: Ae,
|
|
173
|
+
isGreaterThanEqual: ct,
|
|
174
|
+
isLessThan: Ie,
|
|
176
175
|
newF: _,
|
|
177
|
-
newFieldF:
|
|
178
|
-
order:
|
|
179
|
-
primitiveArrays:
|
|
180
|
-
reverseF:
|
|
181
|
-
stringsWithNumbers:
|
|
182
|
-
uniqueUnorderedPrimitiveArrays:
|
|
183
|
-
unorderedPrimitiveArrays:
|
|
176
|
+
newFieldF: ot,
|
|
177
|
+
order: ht,
|
|
178
|
+
primitiveArrays: ut,
|
|
179
|
+
reverseF: Ne,
|
|
180
|
+
stringsWithNumbers: ft,
|
|
181
|
+
uniqueUnorderedPrimitiveArrays: lt,
|
|
182
|
+
unorderedPrimitiveArrays: Se
|
|
184
183
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
185
|
-
var
|
|
186
|
-
let
|
|
184
|
+
var dt = Object.defineProperty, gt = (r, e, t) => e in r ? dt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, i = (r, e, t) => gt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
185
|
+
let mt = (r, e = 21) => (t = e) => {
|
|
187
186
|
let n = "", s = t | 0;
|
|
188
187
|
for (; s--; )
|
|
189
188
|
n += r[Math.random() * r.length | 0];
|
|
190
189
|
return n;
|
|
191
190
|
};
|
|
192
|
-
const
|
|
191
|
+
const pt = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", yt = mt(pt, 11), Ee = () => yt(), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
193
192
|
__proto__: null,
|
|
194
|
-
create:
|
|
195
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
193
|
+
create: Ee
|
|
194
|
+
}, Symbol.toStringTag, { value: "Module" })), bt = u.enum(["static", "dynamic"]), Me = (r, e) => {
|
|
196
195
|
const t = new w(e);
|
|
197
196
|
if (![
|
|
198
197
|
O.DAY,
|
|
@@ -208,22 +207,22 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
208
207
|
);
|
|
209
208
|
const n = r.valueOf() % t.valueOf();
|
|
210
209
|
return r instanceof w ? new w(n) : new O(n);
|
|
211
|
-
}, y = class
|
|
210
|
+
}, y = class h {
|
|
212
211
|
constructor(e, t = "UTC") {
|
|
213
|
-
if (i(this, "value"), i(this, "encodeValue", !0), e == null) this.value =
|
|
212
|
+
if (i(this, "value"), i(this, "encodeValue", !0), e == null) this.value = h.now().valueOf();
|
|
214
213
|
else if (e instanceof Date)
|
|
215
|
-
this.value = BigInt(e.getTime()) *
|
|
214
|
+
this.value = BigInt(e.getTime()) * h.MILLISECOND.valueOf();
|
|
216
215
|
else if (typeof e == "string")
|
|
217
|
-
this.value =
|
|
218
|
-
else if (Array.isArray(e)) this.value =
|
|
216
|
+
this.value = h.parseDateTimeString(e, t).valueOf();
|
|
217
|
+
else if (Array.isArray(e)) this.value = h.parseDate(e);
|
|
219
218
|
else {
|
|
220
219
|
let n = BigInt(0);
|
|
221
|
-
e instanceof Number && (e = e.valueOf()), t === "local" && (n =
|
|
220
|
+
e instanceof Number && (e = e.valueOf()), t === "local" && (n = h.utcOffset.valueOf()), typeof e == "number" && (isFinite(e) ? e = Math.trunc(e) : (isNaN(e) && (e = 0), e === 1 / 0 ? e = h.MAX : e = h.MIN)), this.value = BigInt(e.valueOf()) + n;
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
223
|
static parseDate([e = 1970, t = 1, n = 1]) {
|
|
225
224
|
const s = new Date(e, t - 1, n, 0, 0, 0, 0);
|
|
226
|
-
return new
|
|
225
|
+
return new h(BigInt(s.getTime()) * h.MILLISECOND.valueOf()).truncate(h.DAY).valueOf();
|
|
227
226
|
}
|
|
228
227
|
encode() {
|
|
229
228
|
return this.value.toString();
|
|
@@ -235,15 +234,15 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
235
234
|
const [n, s, a] = e.split(":");
|
|
236
235
|
let l = "00", m = "00";
|
|
237
236
|
a != null && ([l, m] = a.split("."));
|
|
238
|
-
let f =
|
|
239
|
-
return t === "local" && (f = f.add(
|
|
237
|
+
let f = h.hours(parseInt(n ?? "00")).add(h.minutes(parseInt(s ?? "00"))).add(h.seconds(parseInt(l ?? "00"))).add(h.milliseconds(parseInt(m ?? "00")));
|
|
238
|
+
return t === "local" && (f = f.add(h.utcOffset)), f.valueOf();
|
|
240
239
|
}
|
|
241
240
|
static parseDateTimeString(e, t = "UTC") {
|
|
242
241
|
if (!e.includes("/") && !e.includes("-"))
|
|
243
|
-
return
|
|
242
|
+
return h.parseTimeString(e, t);
|
|
244
243
|
const n = new Date(e);
|
|
245
|
-
return e.includes(":") || n.setUTCHours(0, 0, 0, 0), new
|
|
246
|
-
BigInt(n.getTime()) *
|
|
244
|
+
return e.includes(":") || n.setUTCHours(0, 0, 0, 0), new h(
|
|
245
|
+
BigInt(n.getTime()) * h.MILLISECOND.valueOf(),
|
|
247
246
|
t
|
|
248
247
|
).valueOf();
|
|
249
248
|
}
|
|
@@ -268,7 +267,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
268
267
|
}
|
|
269
268
|
}
|
|
270
269
|
toISOString(e = "UTC") {
|
|
271
|
-
return e === "UTC" ? this.date().toISOString() : this.sub(
|
|
270
|
+
return e === "UTC" ? this.date().toISOString() : this.sub(h.utcOffset).date().toISOString();
|
|
272
271
|
}
|
|
273
272
|
timeString(e = !1, t = "UTC") {
|
|
274
273
|
const n = this.toISOString(t);
|
|
@@ -280,7 +279,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
280
279
|
}
|
|
281
280
|
static get utcOffset() {
|
|
282
281
|
return new O(
|
|
283
|
-
BigInt((/* @__PURE__ */ new Date()).getTimezoneOffset()) *
|
|
282
|
+
BigInt((/* @__PURE__ */ new Date()).getTimezoneOffset()) * h.MINUTE.valueOf()
|
|
284
283
|
);
|
|
285
284
|
}
|
|
286
285
|
/**
|
|
@@ -289,7 +288,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
289
288
|
* @param other - The other timestamp.
|
|
290
289
|
*/
|
|
291
290
|
static since(e) {
|
|
292
|
-
return new
|
|
291
|
+
return new h().span(e);
|
|
293
292
|
}
|
|
294
293
|
/** @returns A JavaScript Date object representing the TimeStamp. */
|
|
295
294
|
date() {
|
|
@@ -302,7 +301,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
302
301
|
* @returns True if the TimeStamps are equal, false otherwise.
|
|
303
302
|
*/
|
|
304
303
|
equals(e) {
|
|
305
|
-
return this.valueOf() === new
|
|
304
|
+
return this.valueOf() === new h(e).valueOf();
|
|
306
305
|
}
|
|
307
306
|
/**
|
|
308
307
|
* Creates a TimeSpan representing the duration between the two timestamps.
|
|
@@ -322,7 +321,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
322
321
|
* valid, regardless of the TimeStamp order.
|
|
323
322
|
*/
|
|
324
323
|
range(e) {
|
|
325
|
-
return new
|
|
324
|
+
return new z(this, e).makeValid();
|
|
326
325
|
}
|
|
327
326
|
/**
|
|
328
327
|
* Creates a TimeRange starting at the TimeStamp and spanning the given
|
|
@@ -351,7 +350,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
351
350
|
* otherwise.
|
|
352
351
|
*/
|
|
353
352
|
after(e) {
|
|
354
|
-
return this.valueOf() > new
|
|
353
|
+
return this.valueOf() > new h(e).valueOf();
|
|
355
354
|
}
|
|
356
355
|
/**
|
|
357
356
|
* Checks if the TimeStamp is after or equal to the given TimeStamp.
|
|
@@ -361,7 +360,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
361
360
|
* false otherwise.
|
|
362
361
|
*/
|
|
363
362
|
afterEq(e) {
|
|
364
|
-
return this.valueOf() >= new
|
|
363
|
+
return this.valueOf() >= new h(e).valueOf();
|
|
365
364
|
}
|
|
366
365
|
/**
|
|
367
366
|
* Checks if the TimeStamp is before the given TimeStamp.
|
|
@@ -371,7 +370,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
371
370
|
* otherwise.
|
|
372
371
|
*/
|
|
373
372
|
before(e) {
|
|
374
|
-
return this.valueOf() < new
|
|
373
|
+
return this.valueOf() < new h(e).valueOf();
|
|
375
374
|
}
|
|
376
375
|
/**
|
|
377
376
|
* Checks if TimeStamp is before or equal to the current timestamp.
|
|
@@ -381,7 +380,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
381
380
|
* false otherwise.
|
|
382
381
|
*/
|
|
383
382
|
beforeEq(e) {
|
|
384
|
-
return this.valueOf() <= new
|
|
383
|
+
return this.valueOf() <= new h(e).valueOf();
|
|
385
384
|
}
|
|
386
385
|
/**
|
|
387
386
|
* Adds a TimeSpan to the TimeStamp.
|
|
@@ -391,7 +390,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
391
390
|
* TimeSpan.
|
|
392
391
|
*/
|
|
393
392
|
add(e) {
|
|
394
|
-
return new
|
|
393
|
+
return new h(this.valueOf() + BigInt(e.valueOf()));
|
|
395
394
|
}
|
|
396
395
|
/**
|
|
397
396
|
* Subtracts a TimeSpan from the TimeStamp.
|
|
@@ -401,7 +400,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
401
400
|
* TimeSpan.
|
|
402
401
|
*/
|
|
403
402
|
sub(e) {
|
|
404
|
-
return new
|
|
403
|
+
return new h(this.valueOf() - BigInt(e.valueOf()));
|
|
405
404
|
}
|
|
406
405
|
/**
|
|
407
406
|
* @returns the floating point number of hours since the unix epoch to the timestamp
|
|
@@ -435,7 +434,13 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
435
434
|
* @returns The number of milliseconds since the unix epoch.
|
|
436
435
|
*/
|
|
437
436
|
get milliseconds() {
|
|
438
|
-
return Number(this.valueOf()) / Number(
|
|
437
|
+
return Number(this.valueOf()) / Number(h.MILLISECOND.valueOf());
|
|
438
|
+
}
|
|
439
|
+
get microseconds() {
|
|
440
|
+
return Number(this.valueOf()) / Number(h.MICROSECOND.valueOf());
|
|
441
|
+
}
|
|
442
|
+
get nanoseconds() {
|
|
443
|
+
return Number(this.valueOf());
|
|
439
444
|
}
|
|
440
445
|
/** @returns the integer year that the timestamp corresponds to. */
|
|
441
446
|
get year() {
|
|
@@ -443,7 +448,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
443
448
|
}
|
|
444
449
|
setYear(e) {
|
|
445
450
|
const t = this.date();
|
|
446
|
-
return t.setFullYear(e), new
|
|
451
|
+
return t.setFullYear(e), new h(t);
|
|
447
452
|
}
|
|
448
453
|
/** @returns the integer month that the timestamp corresponds to with its year. */
|
|
449
454
|
get month() {
|
|
@@ -451,7 +456,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
451
456
|
}
|
|
452
457
|
setMonth(e) {
|
|
453
458
|
const t = this.date();
|
|
454
|
-
return t.setMonth(e), new
|
|
459
|
+
return t.setMonth(e), new h(t);
|
|
455
460
|
}
|
|
456
461
|
/** @returns the integer day that the timestamp corresponds to within its month. */
|
|
457
462
|
get day() {
|
|
@@ -459,7 +464,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
459
464
|
}
|
|
460
465
|
setDay(e) {
|
|
461
466
|
const t = this.date();
|
|
462
|
-
return t.setDate(e), new
|
|
467
|
+
return t.setDate(e), new h(t);
|
|
463
468
|
}
|
|
464
469
|
/** @returns the integer hour that the timestamp corresponds to within its day. */
|
|
465
470
|
get hour() {
|
|
@@ -467,7 +472,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
467
472
|
}
|
|
468
473
|
setHour(e) {
|
|
469
474
|
const t = this.date();
|
|
470
|
-
return t.setHours(e), new
|
|
475
|
+
return t.setHours(e), new h(t);
|
|
471
476
|
}
|
|
472
477
|
/** @returns the integer minute that the timestamp corresponds to within its hour. */
|
|
473
478
|
get minute() {
|
|
@@ -475,21 +480,21 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
475
480
|
}
|
|
476
481
|
setMinute(e) {
|
|
477
482
|
const t = this.date();
|
|
478
|
-
return t.setMinutes(e), new
|
|
483
|
+
return t.setMinutes(e), new h(t);
|
|
479
484
|
}
|
|
480
485
|
get second() {
|
|
481
486
|
return this.date().getSeconds();
|
|
482
487
|
}
|
|
483
488
|
setSecond(e) {
|
|
484
489
|
const t = this.date();
|
|
485
|
-
return t.setSeconds(e), new
|
|
490
|
+
return t.setSeconds(e), new h(t);
|
|
486
491
|
}
|
|
487
492
|
get millisecond() {
|
|
488
493
|
return this.date().getMilliseconds();
|
|
489
494
|
}
|
|
490
495
|
setMillisecond(e) {
|
|
491
496
|
const t = this.date();
|
|
492
|
-
return t.setMilliseconds(e), new
|
|
497
|
+
return t.setMilliseconds(e), new h(t);
|
|
493
498
|
}
|
|
494
499
|
toString() {
|
|
495
500
|
return this.date().toISOString();
|
|
@@ -506,11 +511,11 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
506
511
|
* @example TimeStamp.now().remainder(TimeStamp.DAY) // => TimeStamp representing the current day
|
|
507
512
|
*/
|
|
508
513
|
remainder(e) {
|
|
509
|
-
return
|
|
514
|
+
return Me(this, e);
|
|
510
515
|
}
|
|
511
516
|
/** @returns true if the day portion TimeStamp is today, false otherwise. */
|
|
512
517
|
get isToday() {
|
|
513
|
-
return this.truncate(O.DAY).equals(
|
|
518
|
+
return this.truncate(O.DAY).equals(h.now().truncate(O.DAY));
|
|
514
519
|
}
|
|
515
520
|
truncate(e) {
|
|
516
521
|
return this.sub(this.remainder(e));
|
|
@@ -521,51 +526,51 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
521
526
|
* JavaScript can do).
|
|
522
527
|
*/
|
|
523
528
|
static now() {
|
|
524
|
-
return new
|
|
529
|
+
return new h(/* @__PURE__ */ new Date());
|
|
525
530
|
}
|
|
526
531
|
static max(...e) {
|
|
527
|
-
let t =
|
|
532
|
+
let t = h.MIN;
|
|
528
533
|
for (const n of e) {
|
|
529
|
-
const s = new
|
|
534
|
+
const s = new h(n);
|
|
530
535
|
s.after(t) && (t = s);
|
|
531
536
|
}
|
|
532
537
|
return t;
|
|
533
538
|
}
|
|
534
539
|
static min(...e) {
|
|
535
|
-
let t =
|
|
540
|
+
let t = h.MAX;
|
|
536
541
|
for (const n of e) {
|
|
537
|
-
const s = new
|
|
542
|
+
const s = new h(n);
|
|
538
543
|
s.before(t) && (t = s);
|
|
539
544
|
}
|
|
540
545
|
return t;
|
|
541
546
|
}
|
|
542
547
|
/** @returns a new TimeStamp n nanoseconds after the unix epoch */
|
|
543
548
|
static nanoseconds(e) {
|
|
544
|
-
return new
|
|
549
|
+
return new h(e);
|
|
545
550
|
}
|
|
546
551
|
/** @returns a new TimeStamp n microseconds after the unix epoch */
|
|
547
552
|
static microseconds(e) {
|
|
548
|
-
return
|
|
553
|
+
return h.nanoseconds(e * 1e3);
|
|
549
554
|
}
|
|
550
555
|
/** @returns a new TimeStamp n milliseconds after the unix epoch */
|
|
551
556
|
static milliseconds(e) {
|
|
552
|
-
return
|
|
557
|
+
return h.microseconds(e * 1e3);
|
|
553
558
|
}
|
|
554
559
|
/** @returns a new TimeStamp n seconds after the unix epoch */
|
|
555
560
|
static seconds(e) {
|
|
556
|
-
return
|
|
561
|
+
return h.milliseconds(e * 1e3);
|
|
557
562
|
}
|
|
558
563
|
/** @returns a new TimeStamp n minutes after the unix epoch */
|
|
559
564
|
static minutes(e) {
|
|
560
|
-
return
|
|
565
|
+
return h.seconds(e * 60);
|
|
561
566
|
}
|
|
562
567
|
/** @returns a new TimeStamp n hours after the unix epoch */
|
|
563
568
|
static hours(e) {
|
|
564
|
-
return
|
|
569
|
+
return h.minutes(e * 60);
|
|
565
570
|
}
|
|
566
571
|
/** @returns a new TimeStamp n days after the unix epoch */
|
|
567
572
|
static days(e) {
|
|
568
|
-
return
|
|
573
|
+
return h.hours(e * 24);
|
|
569
574
|
}
|
|
570
575
|
};
|
|
571
576
|
i(y, "NANOSECOND", y.nanoseconds(1)), /** One microsecond after the unix epoch */
|
|
@@ -591,10 +596,10 @@ const b = class d {
|
|
|
591
596
|
i(this, "value"), i(this, "encodeValue", !0), typeof e == "number" && (e = Math.trunc(e.valueOf())), this.value = BigInt(e.valueOf());
|
|
592
597
|
}
|
|
593
598
|
static fromSeconds(e) {
|
|
594
|
-
return e instanceof d ? e : e instanceof
|
|
599
|
+
return e instanceof d ? e : e instanceof le ? e.period : e instanceof w ? new d(e) : ["number", "bigint"].includes(typeof e) ? d.seconds(e) : new d(e);
|
|
595
600
|
}
|
|
596
601
|
static fromMilliseconds(e) {
|
|
597
|
-
return e instanceof d ? e : e instanceof
|
|
602
|
+
return e instanceof d ? e : e instanceof le ? e.period : e instanceof w ? new d(e) : ["number", "bigint"].includes(typeof e) ? d.milliseconds(e) : new d(e);
|
|
598
603
|
}
|
|
599
604
|
encode() {
|
|
600
605
|
return this.value.toString();
|
|
@@ -615,7 +620,7 @@ const b = class d {
|
|
|
615
620
|
return this.valueOf() >= new d(e).valueOf();
|
|
616
621
|
}
|
|
617
622
|
remainder(e) {
|
|
618
|
-
return
|
|
623
|
+
return Me(this, e);
|
|
619
624
|
}
|
|
620
625
|
truncate(e) {
|
|
621
626
|
return new d(
|
|
@@ -623,9 +628,9 @@ const b = class d {
|
|
|
623
628
|
);
|
|
624
629
|
}
|
|
625
630
|
toString() {
|
|
626
|
-
const e = this.truncate(d.DAY), t = this.truncate(d.HOUR), n = this.truncate(d.MINUTE), s = this.truncate(d.SECOND), a = this.truncate(d.MILLISECOND), l = this.truncate(d.MICROSECOND), m = this.truncate(d.NANOSECOND), f = e, g = t.sub(e),
|
|
627
|
-
let
|
|
628
|
-
return f.isZero || (
|
|
631
|
+
const e = this.truncate(d.DAY), t = this.truncate(d.HOUR), n = this.truncate(d.MINUTE), s = this.truncate(d.SECOND), a = this.truncate(d.MILLISECOND), l = this.truncate(d.MICROSECOND), m = this.truncate(d.NANOSECOND), f = e, g = t.sub(e), v = n.sub(t), c = s.sub(n), $ = a.sub(s), E = l.sub(a), oe = m.sub(l);
|
|
632
|
+
let U = "";
|
|
633
|
+
return f.isZero || (U += `${f.days}d `), g.isZero || (U += `${g.hours}h `), v.isZero || (U += `${v.minutes}m `), c.isZero || (U += `${c.seconds}s `), $.isZero || (U += `${$.milliseconds}ms `), E.isZero || (U += `${E.microseconds}µs `), oe.isZero || (U += `${oe.nanoseconds}ns`), U.trim();
|
|
629
634
|
}
|
|
630
635
|
mult(e) {
|
|
631
636
|
return new d(this.valueOf() * BigInt(e));
|
|
@@ -770,7 +775,7 @@ i(b, "z", u.union([
|
|
|
770
775
|
u.instanceof(b)
|
|
771
776
|
]));
|
|
772
777
|
let O = b;
|
|
773
|
-
const
|
|
778
|
+
const L = class K extends Number {
|
|
774
779
|
constructor(e) {
|
|
775
780
|
e instanceof Number ? super(e.valueOf()) : super(e);
|
|
776
781
|
}
|
|
@@ -847,12 +852,12 @@ const C = class K extends Number {
|
|
|
847
852
|
return K.hz(e * 1e3);
|
|
848
853
|
}
|
|
849
854
|
};
|
|
850
|
-
i(
|
|
851
|
-
u.number().transform((r) => new
|
|
852
|
-
u.instanceof(Number).transform((r) => new
|
|
853
|
-
u.instanceof(
|
|
855
|
+
i(L, "z", u.union([
|
|
856
|
+
u.number().transform((r) => new L(r)),
|
|
857
|
+
u.instanceof(Number).transform((r) => new L(r)),
|
|
858
|
+
u.instanceof(L)
|
|
854
859
|
]));
|
|
855
|
-
let
|
|
860
|
+
let le = L;
|
|
856
861
|
const N = class extends Number {
|
|
857
862
|
/**
|
|
858
863
|
* Creates a Density representing the given number of bytes per value.
|
|
@@ -985,7 +990,7 @@ i(M, "z", u.union([
|
|
|
985
990
|
u.object({ start: w.z, end: w.z }).transform((r) => new M(r.start, r.end)),
|
|
986
991
|
u.instanceof(M)
|
|
987
992
|
]));
|
|
988
|
-
let
|
|
993
|
+
let z = M;
|
|
989
994
|
const o = class T extends String {
|
|
990
995
|
constructor(e) {
|
|
991
996
|
if (e instanceof T || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
@@ -1153,7 +1158,7 @@ i(o, "z", u.union([
|
|
|
1153
1158
|
u.instanceof(o)
|
|
1154
1159
|
]));
|
|
1155
1160
|
let p = o;
|
|
1156
|
-
const I = class
|
|
1161
|
+
const I = class S extends Number {
|
|
1157
1162
|
constructor(e) {
|
|
1158
1163
|
super(e.valueOf());
|
|
1159
1164
|
}
|
|
@@ -1166,33 +1171,33 @@ const I = class v extends Number {
|
|
|
1166
1171
|
return this.valueOf() < e.valueOf();
|
|
1167
1172
|
}
|
|
1168
1173
|
add(e) {
|
|
1169
|
-
return
|
|
1174
|
+
return S.bytes(this.valueOf() + e.valueOf());
|
|
1170
1175
|
}
|
|
1171
1176
|
sub(e) {
|
|
1172
|
-
return
|
|
1177
|
+
return S.bytes(this.valueOf() - e.valueOf());
|
|
1173
1178
|
}
|
|
1174
1179
|
truncate(e) {
|
|
1175
|
-
return new
|
|
1180
|
+
return new S(Math.trunc(this.valueOf() / e.valueOf()) * e.valueOf());
|
|
1176
1181
|
}
|
|
1177
1182
|
remainder(e) {
|
|
1178
|
-
return
|
|
1183
|
+
return S.bytes(this.valueOf() % e.valueOf());
|
|
1179
1184
|
}
|
|
1180
1185
|
get gigabytes() {
|
|
1181
|
-
return this.valueOf() /
|
|
1186
|
+
return this.valueOf() / S.GIGABYTE.valueOf();
|
|
1182
1187
|
}
|
|
1183
1188
|
get megabytes() {
|
|
1184
|
-
return this.valueOf() /
|
|
1189
|
+
return this.valueOf() / S.MEGABYTE.valueOf();
|
|
1185
1190
|
}
|
|
1186
1191
|
get kilobytes() {
|
|
1187
|
-
return this.valueOf() /
|
|
1192
|
+
return this.valueOf() / S.KILOBYTE.valueOf();
|
|
1188
1193
|
}
|
|
1189
1194
|
get terabytes() {
|
|
1190
|
-
return this.valueOf() /
|
|
1195
|
+
return this.valueOf() / S.TERABYTE.valueOf();
|
|
1191
1196
|
}
|
|
1192
1197
|
toString() {
|
|
1193
|
-
const e = this.truncate(
|
|
1194
|
-
let
|
|
1195
|
-
return l.isZero || (
|
|
1198
|
+
const e = this.truncate(S.TERABYTE), t = this.truncate(S.GIGABYTE), n = this.truncate(S.MEGABYTE), s = this.truncate(S.KILOBYTE), a = this.truncate(S.BYTE), l = e, m = t.sub(e), f = n.sub(t), g = s.sub(n), v = a.sub(s);
|
|
1199
|
+
let c = "";
|
|
1200
|
+
return l.isZero || (c += `${l.terabytes}TB `), m.isZero || (c += `${m.gigabytes}GB `), f.isZero || (c += `${f.megabytes}MB `), g.isZero || (c += `${g.kilobytes}KB `), (!v.isZero || c === "") && (c += `${v.valueOf()}B`), c.trim();
|
|
1196
1201
|
}
|
|
1197
1202
|
/**
|
|
1198
1203
|
* Creates a Size from the given number of bytes.
|
|
@@ -1201,7 +1206,7 @@ const I = class v extends Number {
|
|
|
1201
1206
|
* @returns A Size representing the given number of bytes.
|
|
1202
1207
|
*/
|
|
1203
1208
|
static bytes(e = 1) {
|
|
1204
|
-
return new
|
|
1209
|
+
return new S(e);
|
|
1205
1210
|
}
|
|
1206
1211
|
/**
|
|
1207
1212
|
* Creates a Size from the given number if kilobytes.
|
|
@@ -1210,7 +1215,7 @@ const I = class v extends Number {
|
|
|
1210
1215
|
* @returns A Size representing the given number of kilobytes.
|
|
1211
1216
|
*/
|
|
1212
1217
|
static kilobytes(e = 1) {
|
|
1213
|
-
return
|
|
1218
|
+
return S.bytes(e.valueOf() * 1e3);
|
|
1214
1219
|
}
|
|
1215
1220
|
/**
|
|
1216
1221
|
* Creates a Size from the given number of megabytes.
|
|
@@ -1219,7 +1224,7 @@ const I = class v extends Number {
|
|
|
1219
1224
|
* @returns A Size representing the given number of megabytes.
|
|
1220
1225
|
*/
|
|
1221
1226
|
static megabytes(e = 1) {
|
|
1222
|
-
return
|
|
1227
|
+
return S.kilobytes(e.valueOf() * 1e3);
|
|
1223
1228
|
}
|
|
1224
1229
|
/**
|
|
1225
1230
|
* Creates a Size from the given number of gigabytes.
|
|
@@ -1228,7 +1233,7 @@ const I = class v extends Number {
|
|
|
1228
1233
|
* @returns A Size representing the given number of gigabytes.
|
|
1229
1234
|
*/
|
|
1230
1235
|
static gigabytes(e = 1) {
|
|
1231
|
-
return
|
|
1236
|
+
return S.megabytes(e.valueOf() * 1e3);
|
|
1232
1237
|
}
|
|
1233
1238
|
/**
|
|
1234
1239
|
* Creates a Size from the given number of terabytes.
|
|
@@ -1237,7 +1242,7 @@ const I = class v extends Number {
|
|
|
1237
1242
|
* @returns A Size representing the given number of terabytes.
|
|
1238
1243
|
*/
|
|
1239
1244
|
static terabytes(e) {
|
|
1240
|
-
return
|
|
1245
|
+
return S.gigabytes(e.valueOf() * 1e3);
|
|
1241
1246
|
}
|
|
1242
1247
|
get isZero() {
|
|
1243
1248
|
return this.valueOf() === 0;
|
|
@@ -1254,7 +1259,7 @@ i(I, "z", u.union([
|
|
|
1254
1259
|
u.instanceof(I)
|
|
1255
1260
|
]));
|
|
1256
1261
|
let Q = I;
|
|
1257
|
-
const
|
|
1262
|
+
const xr = u.union([
|
|
1258
1263
|
u.instanceof(Uint8Array),
|
|
1259
1264
|
u.instanceof(Uint16Array),
|
|
1260
1265
|
u.instanceof(Uint32Array),
|
|
@@ -1265,76 +1270,83 @@ const Ar = u.union([
|
|
|
1265
1270
|
u.instanceof(Int16Array),
|
|
1266
1271
|
u.instanceof(Int32Array),
|
|
1267
1272
|
u.instanceof(BigInt64Array)
|
|
1268
|
-
]),
|
|
1273
|
+
]), Be = (r) => {
|
|
1269
1274
|
const e = typeof r;
|
|
1270
1275
|
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || r instanceof w || r instanceof O || r instanceof Date;
|
|
1271
|
-
},
|
|
1272
|
-
[Symbol.iterator]: () =>
|
|
1276
|
+
}, wt = (r, e, t, n = 0) => r.usesBigInt && !e.usesBigInt ? Number(t) - Number(n) : !r.usesBigInt && e.usesBigInt ? BigInt(t.valueOf()) - BigInt(n.valueOf()) : P(t, -n).valueOf(), P = (r, e) => typeof r == "bigint" && typeof e == "bigint" || typeof r == "number" && typeof e == "number" ? r + e : e === 0 ? r : r === 0 ? e : Number(r) + Number(e), Ot = (r) => r == null ? !1 : Array.isArray(r) || r instanceof ArrayBuffer || ArrayBuffer.isView(r) && !(r instanceof DataView) || r instanceof St ? !0 : Be(r), R = -1, ne = {
|
|
1277
|
+
[Symbol.iterator]: () => ne,
|
|
1273
1278
|
next: () => ({ done: !0, value: void 0 })
|
|
1274
|
-
},
|
|
1279
|
+
}, Tt = u.string().transform(
|
|
1275
1280
|
(r) => new Uint8Array(
|
|
1276
1281
|
atob(r).split("").map((e) => e.charCodeAt(0))
|
|
1277
1282
|
).buffer
|
|
1278
|
-
),
|
|
1283
|
+
), vt = u.union([u.null(), u.undefined()]).transform(() => new Uint8Array().buffer), se = 10, xe = (r, e) => {
|
|
1284
|
+
if (r === "string" && !e.isVariable)
|
|
1285
|
+
throw new Error(`cannot convert series of type ${e.toString()} to string`);
|
|
1286
|
+
if (r === "number" && !e.isNumeric)
|
|
1287
|
+
throw new Error(`cannot convert series of type ${e.toString()} to number`);
|
|
1288
|
+
if (r === "bigint" && !e.usesBigInt)
|
|
1289
|
+
throw new Error(`cannot convert series of type ${e.toString()} to bigint`);
|
|
1290
|
+
}, j = class B {
|
|
1279
1291
|
constructor(e) {
|
|
1280
|
-
i(this, "key", ""), i(this, "isSynnaxSeries", !0), i(this, "dataType"), i(this, "sampleOffset"), i(this, "gl"), i(this, "_data"), i(this, "_timeRange"), i(this, "alignment", 0n), i(this, "_cachedMin"), i(this, "_cachedMax"), i(this, "writePos", R), i(this, "_refCount", 0), i(this, "_cachedLength"), i(this, "_cachedIndexes"),
|
|
1292
|
+
i(this, "key", ""), i(this, "isSynnaxSeries", !0), i(this, "dataType"), i(this, "sampleOffset"), i(this, "gl"), i(this, "_data"), i(this, "_timeRange"), i(this, "alignment", 0n), i(this, "_cachedMin"), i(this, "_cachedMax"), i(this, "writePos", R), i(this, "_refCount", 0), i(this, "_cachedLength"), i(this, "_cachedIndexes"), Ot(e) && (e = { data: e });
|
|
1281
1293
|
const {
|
|
1282
1294
|
dataType: t,
|
|
1283
1295
|
timeRange: n,
|
|
1284
1296
|
sampleOffset: s = 0,
|
|
1285
1297
|
glBufferUsage: a = "static",
|
|
1286
1298
|
alignment: l = 0n,
|
|
1287
|
-
key: m =
|
|
1299
|
+
key: m = Ee()
|
|
1288
1300
|
} = e, f = e.data ?? [];
|
|
1289
1301
|
if (f instanceof B || typeof f == "object" && "isSynnaxSeries" in f && f.isSynnaxSeries === !0) {
|
|
1290
|
-
const
|
|
1291
|
-
this.key =
|
|
1302
|
+
const c = f;
|
|
1303
|
+
this.key = c.key, this.dataType = c.dataType, this.sampleOffset = c.sampleOffset, this.gl = c.gl, this._data = c._data, this._timeRange = c._timeRange, this.alignment = c.alignment, this._cachedMin = c._cachedMin, this._cachedMax = c._cachedMax, this.writePos = c.writePos, this._refCount = c._refCount, this._cachedLength = c._cachedLength;
|
|
1292
1304
|
return;
|
|
1293
1305
|
}
|
|
1294
|
-
const g =
|
|
1306
|
+
const g = Be(f), v = Array.isArray(f);
|
|
1295
1307
|
if (t != null) this.dataType = new p(t);
|
|
1296
1308
|
else {
|
|
1297
1309
|
if (f instanceof ArrayBuffer)
|
|
1298
1310
|
throw new Error(
|
|
1299
1311
|
"cannot infer data type from an ArrayBuffer instance when constructing a Series. Please provide a data type."
|
|
1300
1312
|
);
|
|
1301
|
-
if (
|
|
1302
|
-
let
|
|
1313
|
+
if (v || g) {
|
|
1314
|
+
let c = f;
|
|
1303
1315
|
if (!g) {
|
|
1304
1316
|
if (f.length === 0)
|
|
1305
1317
|
throw new Error(
|
|
1306
1318
|
"cannot infer data type from a zero length JS array when constructing a Series. Please provide a data type."
|
|
1307
1319
|
);
|
|
1308
|
-
|
|
1320
|
+
c = f[0];
|
|
1309
1321
|
}
|
|
1310
|
-
if (typeof
|
|
1311
|
-
else if (typeof
|
|
1312
|
-
else if (typeof
|
|
1313
|
-
else if (typeof
|
|
1314
|
-
else if (
|
|
1322
|
+
if (typeof c == "string") this.dataType = p.STRING;
|
|
1323
|
+
else if (typeof c == "number") this.dataType = p.FLOAT64;
|
|
1324
|
+
else if (typeof c == "bigint") this.dataType = p.INT64;
|
|
1325
|
+
else if (typeof c == "boolean") this.dataType = p.BOOLEAN;
|
|
1326
|
+
else if (c instanceof w || c instanceof Date || c instanceof w)
|
|
1315
1327
|
this.dataType = p.TIMESTAMP;
|
|
1316
|
-
else if (typeof
|
|
1328
|
+
else if (typeof c == "object") this.dataType = p.JSON;
|
|
1317
1329
|
else
|
|
1318
1330
|
throw new Error(
|
|
1319
|
-
`cannot infer data type of ${typeof
|
|
1331
|
+
`cannot infer data type of ${typeof c} when constructing a Series from a JS array`
|
|
1320
1332
|
);
|
|
1321
1333
|
} else this.dataType = new p(f);
|
|
1322
1334
|
}
|
|
1323
|
-
if (!
|
|
1335
|
+
if (!v && !g) this._data = f;
|
|
1324
1336
|
else {
|
|
1325
|
-
let
|
|
1326
|
-
const
|
|
1327
|
-
(
|
|
1337
|
+
let c = g ? [f] : f;
|
|
1338
|
+
const $ = c[0];
|
|
1339
|
+
($ instanceof w || $ instanceof Date || $ instanceof O) && (c = c.map((E) => new w(E).valueOf())), this.dataType.equals(p.STRING) ? (this._cachedLength = c.length, this._data = new TextEncoder().encode(`${c.join(`
|
|
1328
1340
|
`)}
|
|
1329
|
-
`).buffer) : this.dataType.equals(p.JSON) ? (this._cachedLength =
|
|
1330
|
-
`${
|
|
1341
|
+
`).buffer) : this.dataType.equals(p.JSON) ? (this._cachedLength = c.length, this._data = new TextEncoder().encode(
|
|
1342
|
+
`${c.map((E) => J.encodeString(E)).join(`
|
|
1331
1343
|
`)}
|
|
1332
1344
|
`
|
|
1333
|
-
).buffer) : this.dataType.usesBigInt && typeof
|
|
1334
|
-
|
|
1335
|
-
).buffer : !this.dataType.usesBigInt && typeof
|
|
1336
|
-
|
|
1337
|
-
).buffer : this._data = new this.dataType.Array(
|
|
1345
|
+
).buffer) : this.dataType.usesBigInt && typeof $ == "number" ? this._data = new this.dataType.Array(
|
|
1346
|
+
c.map((E) => BigInt(Math.round(E)))
|
|
1347
|
+
).buffer : !this.dataType.usesBigInt && typeof $ == "bigint" ? this._data = new this.dataType.Array(
|
|
1348
|
+
c.map((E) => Number(E))
|
|
1349
|
+
).buffer : this._data = new this.dataType.Array(c).buffer;
|
|
1338
1350
|
}
|
|
1339
1351
|
this.key = m, this.alignment = l, this.sampleOffset = s ?? 0, this._timeRange = n, this.gl = {
|
|
1340
1352
|
control: null,
|
|
@@ -1479,7 +1491,7 @@ const Ar = u.union([
|
|
|
1479
1491
|
let e = 0;
|
|
1480
1492
|
const t = [0];
|
|
1481
1493
|
return this.data.forEach((n, s) => {
|
|
1482
|
-
n ===
|
|
1494
|
+
n === se && (e++, t.push(s + 1));
|
|
1483
1495
|
}), this._cachedIndexes = t, this._cachedLength = e, e;
|
|
1484
1496
|
}
|
|
1485
1497
|
/**
|
|
@@ -1495,7 +1507,7 @@ const Ar = u.union([
|
|
|
1495
1507
|
if (this.dataType.equals(e)) return this;
|
|
1496
1508
|
const n = new e.Array(this.length);
|
|
1497
1509
|
for (let s = 0; s < this.length; s++)
|
|
1498
|
-
n[s] =
|
|
1510
|
+
n[s] = wt(this.dataType, e, this.data[s], t);
|
|
1499
1511
|
return new B({
|
|
1500
1512
|
data: n.buffer,
|
|
1501
1513
|
dataType: e,
|
|
@@ -1544,7 +1556,7 @@ const Ar = u.union([
|
|
|
1544
1556
|
}
|
|
1545
1557
|
/** @returns the bounds of this array. */
|
|
1546
1558
|
get bounds() {
|
|
1547
|
-
return
|
|
1559
|
+
return V(Number(this.min), Number(this.max));
|
|
1548
1560
|
}
|
|
1549
1561
|
maybeRecomputeMinMax(e) {
|
|
1550
1562
|
if (this._cachedMin != null) {
|
|
@@ -1587,7 +1599,7 @@ const Ar = u.union([
|
|
|
1587
1599
|
else {
|
|
1588
1600
|
e < 0 && (e = this.length + e);
|
|
1589
1601
|
for (let l = 0; l < this.data.length; l++)
|
|
1590
|
-
if (this.data[l] ===
|
|
1602
|
+
if (this.data[l] === se) {
|
|
1591
1603
|
if (e === 0) {
|
|
1592
1604
|
s = l;
|
|
1593
1605
|
break;
|
|
@@ -1600,7 +1612,7 @@ const Ar = u.union([
|
|
|
1600
1612
|
}
|
|
1601
1613
|
}
|
|
1602
1614
|
const a = this.data.slice(n, s);
|
|
1603
|
-
return this.dataType.equals(p.STRING) ? new TextDecoder().decode(a) :
|
|
1615
|
+
return this.dataType.equals(p.STRING) ? new TextDecoder().decode(a) : Oe(JSON.parse(new TextDecoder().decode(a)));
|
|
1604
1616
|
}
|
|
1605
1617
|
/**
|
|
1606
1618
|
* @returns the index of the first sample that is greater than or equal to the given value.
|
|
@@ -1634,28 +1646,7 @@ const Ar = u.union([
|
|
|
1634
1646
|
), this.gl.prevBuffer = R;
|
|
1635
1647
|
}
|
|
1636
1648
|
as(e) {
|
|
1637
|
-
|
|
1638
|
-
if (!this.dataType.equals(p.STRING))
|
|
1639
|
-
throw new Error(
|
|
1640
|
-
`cannot convert series of type ${this.dataType.toString()} to string`
|
|
1641
|
-
);
|
|
1642
|
-
return this;
|
|
1643
|
-
}
|
|
1644
|
-
if (e === "number") {
|
|
1645
|
-
if (!this.dataType.isNumeric)
|
|
1646
|
-
throw new Error(
|
|
1647
|
-
`cannot convert series of type ${this.dataType.toString()} to number`
|
|
1648
|
-
);
|
|
1649
|
-
return this;
|
|
1650
|
-
}
|
|
1651
|
-
if (e === "bigint") {
|
|
1652
|
-
if (!this.dataType.equals(p.INT64))
|
|
1653
|
-
throw new Error(
|
|
1654
|
-
`cannot convert series of type ${this.dataType.toString()} to bigint`
|
|
1655
|
-
);
|
|
1656
|
-
return this;
|
|
1657
|
-
}
|
|
1658
|
-
throw new Error(`cannot convert series to ${e}`);
|
|
1649
|
+
return xe(e, this.dataType), this;
|
|
1659
1650
|
}
|
|
1660
1651
|
get digest() {
|
|
1661
1652
|
var e;
|
|
@@ -1664,8 +1655,8 @@ const Ar = u.union([
|
|
|
1664
1655
|
dataType: this.dataType.toString(),
|
|
1665
1656
|
sampleOffset: this.sampleOffset,
|
|
1666
1657
|
alignment: {
|
|
1667
|
-
lower:
|
|
1668
|
-
upper:
|
|
1658
|
+
lower: ye(this.alignmentBounds.lower),
|
|
1659
|
+
upper: ye(this.alignmentBounds.upper)
|
|
1669
1660
|
},
|
|
1670
1661
|
timeRange: (e = this._timeRange) == null ? void 0 : e.toString(),
|
|
1671
1662
|
length: this.length,
|
|
@@ -1681,7 +1672,7 @@ const Ar = u.union([
|
|
|
1681
1672
|
};
|
|
1682
1673
|
}
|
|
1683
1674
|
get alignmentBounds() {
|
|
1684
|
-
return
|
|
1675
|
+
return V(this.alignment, this.alignment + BigInt(this.length));
|
|
1685
1676
|
}
|
|
1686
1677
|
maybeGarbageCollectGLBuffer(e) {
|
|
1687
1678
|
this.gl.buffer != null && (e.deleteBuffer(this.gl.buffer), this.gl.buffer = null, this.gl.prevBuffer = 0, this.gl.control = null);
|
|
@@ -1692,10 +1683,10 @@ const Ar = u.union([
|
|
|
1692
1683
|
}
|
|
1693
1684
|
[Symbol.iterator]() {
|
|
1694
1685
|
if (this.dataType.isVariable) {
|
|
1695
|
-
const e = new
|
|
1696
|
-
return this.dataType.equals(p.JSON) ? new
|
|
1686
|
+
const e = new Nt(this);
|
|
1687
|
+
return this.dataType.equals(p.JSON) ? new It(e) : e;
|
|
1697
1688
|
}
|
|
1698
|
-
return new
|
|
1689
|
+
return new At(this);
|
|
1699
1690
|
}
|
|
1700
1691
|
slice(e, t) {
|
|
1701
1692
|
return this.sliceSub(!1, e, t);
|
|
@@ -1704,10 +1695,10 @@ const Ar = u.union([
|
|
|
1704
1695
|
return this.sliceSub(!0, e, t);
|
|
1705
1696
|
}
|
|
1706
1697
|
subIterator(e, t) {
|
|
1707
|
-
return new
|
|
1698
|
+
return new he(this, e, t ?? this.length);
|
|
1708
1699
|
}
|
|
1709
1700
|
subAlignmentIterator(e, t) {
|
|
1710
|
-
return new
|
|
1701
|
+
return new he(
|
|
1711
1702
|
this,
|
|
1712
1703
|
Number(e - this.alignment),
|
|
1713
1704
|
Number(t - this.alignment)
|
|
@@ -1741,7 +1732,7 @@ const Ar = u.union([
|
|
|
1741
1732
|
return new B({
|
|
1742
1733
|
data: this.buffer,
|
|
1743
1734
|
dataType: this.dataType,
|
|
1744
|
-
timeRange:
|
|
1735
|
+
timeRange: z.ZERO,
|
|
1745
1736
|
sampleOffset: this.sampleOffset,
|
|
1746
1737
|
glBufferUsage: "static",
|
|
1747
1738
|
alignment: e
|
|
@@ -1749,22 +1740,23 @@ const Ar = u.union([
|
|
|
1749
1740
|
}
|
|
1750
1741
|
};
|
|
1751
1742
|
i(j, "crudeZ", u.object({
|
|
1752
|
-
timeRange:
|
|
1743
|
+
timeRange: z.z.optional(),
|
|
1753
1744
|
dataType: p.z,
|
|
1754
1745
|
alignment: u.coerce.bigint().optional(),
|
|
1755
1746
|
data: u.union([
|
|
1756
|
-
|
|
1757
|
-
|
|
1747
|
+
Tt,
|
|
1748
|
+
vt,
|
|
1758
1749
|
u.instanceof(ArrayBuffer),
|
|
1759
1750
|
u.instanceof(Uint8Array)
|
|
1760
1751
|
]),
|
|
1761
|
-
glBufferUsage:
|
|
1752
|
+
glBufferUsage: bt.optional().default("static").optional()
|
|
1762
1753
|
})), i(j, "z", j.crudeZ.transform((r) => new j(r)));
|
|
1763
|
-
let
|
|
1754
|
+
let St = j;
|
|
1755
|
+
class he {
|
|
1764
1756
|
constructor(e, t, n) {
|
|
1765
1757
|
i(this, "series"), i(this, "end"), i(this, "index"), this.series = e;
|
|
1766
|
-
const s =
|
|
1767
|
-
this.end =
|
|
1758
|
+
const s = V(0, e.length);
|
|
1759
|
+
this.end = ue(s, n), this.index = ue(s, t);
|
|
1768
1760
|
}
|
|
1769
1761
|
next() {
|
|
1770
1762
|
return this.index >= this.end ? { done: !0, value: void 0 } : { done: !1, value: this.series.at(this.index++, !0) };
|
|
@@ -1772,8 +1764,8 @@ let mt = j, fe = class {
|
|
|
1772
1764
|
[Symbol.iterator]() {
|
|
1773
1765
|
return this;
|
|
1774
1766
|
}
|
|
1775
|
-
}
|
|
1776
|
-
class
|
|
1767
|
+
}
|
|
1768
|
+
class Nt {
|
|
1777
1769
|
constructor(e) {
|
|
1778
1770
|
if (i(this, "series"), i(this, "index"), i(this, "decoder"), !e.dataType.isVariable)
|
|
1779
1771
|
throw new Error(
|
|
@@ -1783,7 +1775,7 @@ class pt {
|
|
|
1783
1775
|
}
|
|
1784
1776
|
next() {
|
|
1785
1777
|
const e = this.index, t = this.series.data;
|
|
1786
|
-
for (; this.index < t.length && t[this.index] !==
|
|
1778
|
+
for (; this.index < t.length && t[this.index] !== se; ) this.index++;
|
|
1787
1779
|
const n = this.index;
|
|
1788
1780
|
return e === n ? { done: !0, value: void 0 } : (this.index++, { done: !1, value: this.decoder.decode(this.series.buffer.slice(e, n)) });
|
|
1789
1781
|
}
|
|
@@ -1791,10 +1783,10 @@ class pt {
|
|
|
1791
1783
|
return this;
|
|
1792
1784
|
}
|
|
1793
1785
|
}
|
|
1794
|
-
var
|
|
1795
|
-
class
|
|
1786
|
+
var ce, fe;
|
|
1787
|
+
class It {
|
|
1796
1788
|
constructor(e) {
|
|
1797
|
-
i(this, "wrapped"), i(this,
|
|
1789
|
+
i(this, "wrapped"), i(this, ce, "JSONSeriesIterator"), this.wrapped = e;
|
|
1798
1790
|
}
|
|
1799
1791
|
next() {
|
|
1800
1792
|
const e = this.wrapped.next();
|
|
@@ -1803,14 +1795,14 @@ class yt {
|
|
|
1803
1795
|
value: J.decodeString(e.value)
|
|
1804
1796
|
};
|
|
1805
1797
|
}
|
|
1806
|
-
[(
|
|
1798
|
+
[(fe = Symbol.iterator, ce = Symbol.toStringTag, fe)]() {
|
|
1807
1799
|
return this;
|
|
1808
1800
|
}
|
|
1809
1801
|
}
|
|
1810
|
-
var
|
|
1811
|
-
class
|
|
1802
|
+
var de, ge;
|
|
1803
|
+
class At {
|
|
1812
1804
|
constructor(e) {
|
|
1813
|
-
i(this, "series"), i(this, "index"), i(this,
|
|
1805
|
+
i(this, "series"), i(this, "index"), i(this, de, "SeriesIterator"), this.series = e, this.index = 0;
|
|
1814
1806
|
}
|
|
1815
1807
|
next() {
|
|
1816
1808
|
return this.index >= this.series.length ? { done: !0, value: void 0 } : {
|
|
@@ -1818,11 +1810,11 @@ class bt {
|
|
|
1818
1810
|
value: this.series.at(this.index++, !0)
|
|
1819
1811
|
};
|
|
1820
1812
|
}
|
|
1821
|
-
[(
|
|
1813
|
+
[(ge = Symbol.iterator, de = Symbol.toStringTag, ge)]() {
|
|
1822
1814
|
return this;
|
|
1823
1815
|
}
|
|
1824
1816
|
}
|
|
1825
|
-
class
|
|
1817
|
+
class Ur {
|
|
1826
1818
|
constructor(e) {
|
|
1827
1819
|
if (i(this, "series"), e.length !== 0) {
|
|
1828
1820
|
const t = e[0].dataType;
|
|
@@ -1833,17 +1825,13 @@ class $r {
|
|
|
1833
1825
|
this.series = e;
|
|
1834
1826
|
}
|
|
1835
1827
|
as(e) {
|
|
1836
|
-
|
|
1837
|
-
throw new Error(
|
|
1838
|
-
`cannot convert series of type ${this.dataType.toString()} to ${e.toString()}`
|
|
1839
|
-
);
|
|
1840
|
-
return this;
|
|
1828
|
+
return xe(e, this.dataType), this;
|
|
1841
1829
|
}
|
|
1842
1830
|
get dataType() {
|
|
1843
1831
|
return this.series.length === 0 ? p.UNKNOWN : this.series[0].dataType;
|
|
1844
1832
|
}
|
|
1845
1833
|
get timeRange() {
|
|
1846
|
-
return this.series.length === 0 ?
|
|
1834
|
+
return this.series.length === 0 ? z.ZERO : new z(
|
|
1847
1835
|
this.series[0].timeRange.start,
|
|
1848
1836
|
this.series[this.series.length - 1].timeRange.end
|
|
1849
1837
|
);
|
|
@@ -1852,7 +1840,7 @@ class $r {
|
|
|
1852
1840
|
return this.series.length === 0 ? 0n : this.series[0].alignment;
|
|
1853
1841
|
}
|
|
1854
1842
|
get alignmentBounds() {
|
|
1855
|
-
return this.series.length === 0 ?
|
|
1843
|
+
return this.series.length === 0 ? V(0n, 0n) : V(
|
|
1856
1844
|
this.series[0].alignmentBounds.lower,
|
|
1857
1845
|
this.series[this.series.length - 1].alignmentBounds.upper
|
|
1858
1846
|
);
|
|
@@ -1882,11 +1870,11 @@ class $r {
|
|
|
1882
1870
|
if (t) throw new Error(`[series] - no value at index ${e}`);
|
|
1883
1871
|
}
|
|
1884
1872
|
subIterator(e, t) {
|
|
1885
|
-
return new
|
|
1873
|
+
return new ee(this, e, t ?? this.length);
|
|
1886
1874
|
}
|
|
1887
1875
|
subAlignmentIterator(e, t) {
|
|
1888
1876
|
if (e >= this.alignmentBounds.upper || t <= this.alignmentBounds.lower)
|
|
1889
|
-
return
|
|
1877
|
+
return ne;
|
|
1890
1878
|
let n = 0;
|
|
1891
1879
|
for (let a = 0; a < this.series.length; a++) {
|
|
1892
1880
|
const l = this.series[a];
|
|
@@ -1907,10 +1895,10 @@ class $r {
|
|
|
1907
1895
|
break;
|
|
1908
1896
|
}
|
|
1909
1897
|
}
|
|
1910
|
-
return new
|
|
1898
|
+
return new ee(this, n, s);
|
|
1911
1899
|
}
|
|
1912
1900
|
subAlignmentSpanIterator(e, t) {
|
|
1913
|
-
if (e >= this.alignmentBounds.upper) return
|
|
1901
|
+
if (e >= this.alignmentBounds.upper) return ne;
|
|
1914
1902
|
let n = 0;
|
|
1915
1903
|
for (let s = 0; s < this.series.length; s++) {
|
|
1916
1904
|
const a = this.series[s];
|
|
@@ -1921,7 +1909,7 @@ class $r {
|
|
|
1921
1909
|
break;
|
|
1922
1910
|
}
|
|
1923
1911
|
}
|
|
1924
|
-
return new
|
|
1912
|
+
return new ee(this, n, n + t);
|
|
1925
1913
|
}
|
|
1926
1914
|
get byteLength() {
|
|
1927
1915
|
return new Q(this.series.reduce((e, t) => e + t.byteLength.valueOf(), 0));
|
|
@@ -1935,11 +1923,11 @@ class $r {
|
|
|
1935
1923
|
}
|
|
1936
1924
|
traverseAlignment(e, t) {
|
|
1937
1925
|
const n = this.series.map((s) => s.alignmentBounds);
|
|
1938
|
-
return
|
|
1926
|
+
return Ve(n, e, t);
|
|
1939
1927
|
}
|
|
1940
1928
|
distance(e, t) {
|
|
1941
1929
|
const n = this.series.map((s) => s.alignmentBounds);
|
|
1942
|
-
return
|
|
1930
|
+
return ze(n, e, t);
|
|
1943
1931
|
}
|
|
1944
1932
|
parseJSON(e) {
|
|
1945
1933
|
if (!this.dataType.equals(p.JSON))
|
|
@@ -1951,23 +1939,23 @@ class $r {
|
|
|
1951
1939
|
next() {
|
|
1952
1940
|
return { done: !0, value: void 0 };
|
|
1953
1941
|
}
|
|
1954
|
-
} : new
|
|
1942
|
+
} : new $t(this.series);
|
|
1955
1943
|
}
|
|
1956
1944
|
}
|
|
1957
|
-
var
|
|
1958
|
-
class
|
|
1945
|
+
var me, pe;
|
|
1946
|
+
class $t {
|
|
1959
1947
|
constructor(e) {
|
|
1960
|
-
i(this, "series"), i(this, "seriesIndex"), i(this, "internal"), i(this,
|
|
1948
|
+
i(this, "series"), i(this, "seriesIndex"), i(this, "internal"), i(this, me, "MultiSeriesIterator"), this.series = e, this.seriesIndex = 0, this.internal = e[0][Symbol.iterator]();
|
|
1961
1949
|
}
|
|
1962
1950
|
next() {
|
|
1963
1951
|
const e = this.internal.next();
|
|
1964
1952
|
return e.done === !1 ? e : this.seriesIndex === this.series.length - 1 ? { done: !0, value: void 0 } : (this.internal = this.series[++this.seriesIndex][Symbol.iterator](), this.next());
|
|
1965
1953
|
}
|
|
1966
|
-
[(
|
|
1954
|
+
[(pe = Symbol.iterator, me = Symbol.toStringTag, pe)]() {
|
|
1967
1955
|
return this;
|
|
1968
1956
|
}
|
|
1969
1957
|
}
|
|
1970
|
-
let
|
|
1958
|
+
let ee = class {
|
|
1971
1959
|
constructor(e, t, n) {
|
|
1972
1960
|
i(this, "series"), i(this, "index"), i(this, "end"), this.series = e, this.end = n, this.index = t;
|
|
1973
1961
|
}
|
|
@@ -1978,16 +1966,16 @@ let te = class {
|
|
|
1978
1966
|
return this;
|
|
1979
1967
|
}
|
|
1980
1968
|
};
|
|
1981
|
-
const
|
|
1969
|
+
const ye = (r) => {
|
|
1982
1970
|
const e = r >> 32n, t = r & 0xffffffffn;
|
|
1983
1971
|
return { domain: e, sample: t };
|
|
1984
|
-
},
|
|
1972
|
+
}, Et = (r, e, t = ".") => {
|
|
1985
1973
|
const n = r.split(t);
|
|
1986
1974
|
return n.map((s, a) => {
|
|
1987
1975
|
const l = e(s, a, n);
|
|
1988
1976
|
return l == null ? null : typeof l == "string" ? l : l.join(t);
|
|
1989
1977
|
}).filter((s) => s != null).join(t);
|
|
1990
|
-
},
|
|
1978
|
+
}, Ue = (r, e, t = { optional: !1, separator: "." }) => {
|
|
1991
1979
|
t.separator ?? (t.separator = ".");
|
|
1992
1980
|
const { optional: n, getter: s = (m, f) => m[f] } = t, a = e.split(t.separator);
|
|
1993
1981
|
if (a.length === 1 && a[0] === "") return r;
|
|
@@ -2001,7 +1989,7 @@ const we = (r) => {
|
|
|
2001
1989
|
l = f;
|
|
2002
1990
|
}
|
|
2003
1991
|
return l;
|
|
2004
|
-
},
|
|
1992
|
+
}, Dr = (r, e, t) => {
|
|
2005
1993
|
const n = e.split(".");
|
|
2006
1994
|
let s = r;
|
|
2007
1995
|
for (let a = 0; a < n.length - 1; a++) {
|
|
@@ -2013,7 +2001,7 @@ const we = (r) => {
|
|
|
2013
2001
|
} catch (a) {
|
|
2014
2002
|
throw console.error("failed to set value", t, "at path", e, "on object", r), a;
|
|
2015
2003
|
}
|
|
2016
|
-
},
|
|
2004
|
+
}, Cr = (r, e) => {
|
|
2017
2005
|
const t = e.split(".");
|
|
2018
2006
|
let n = r;
|
|
2019
2007
|
for (let s = 0; s < t.length - 1; s++) {
|
|
@@ -2028,16 +2016,16 @@ const we = (r) => {
|
|
|
2028
2016
|
return;
|
|
2029
2017
|
}
|
|
2030
2018
|
delete n[t[t.length - 1]];
|
|
2031
|
-
},
|
|
2019
|
+
}, Lr = (r, e) => {
|
|
2032
2020
|
const t = r.split(".");
|
|
2033
2021
|
return e < 0 ? t[t.length + e] : t[e];
|
|
2034
|
-
},
|
|
2022
|
+
}, Pr = (r, e) => {
|
|
2035
2023
|
try {
|
|
2036
|
-
return
|
|
2024
|
+
return Ue(r, e), !0;
|
|
2037
2025
|
} catch {
|
|
2038
2026
|
return !1;
|
|
2039
2027
|
}
|
|
2040
|
-
},
|
|
2028
|
+
}, jr = (r, e) => {
|
|
2041
2029
|
if (e.length === 0) return !0;
|
|
2042
2030
|
const t = r.split("."), n = e.split(".");
|
|
2043
2031
|
if (n.length > t.length) return !1;
|
|
@@ -2053,33 +2041,33 @@ u.record(
|
|
|
2053
2041
|
u.union([u.number(), u.string(), u.symbol()]),
|
|
2054
2042
|
u.unknown()
|
|
2055
2043
|
);
|
|
2056
|
-
const
|
|
2044
|
+
const Re = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", Mt = Re(), De = ["macOS", "Windows", "Linux"], Bt = ["macos", "windows", "linux"], xt = {
|
|
2057
2045
|
macos: "macOS",
|
|
2058
2046
|
windows: "Windows",
|
|
2059
2047
|
linux: "Linux"
|
|
2060
|
-
},
|
|
2061
|
-
u.enum(
|
|
2062
|
-
),
|
|
2048
|
+
}, Ut = u.enum(De).or(
|
|
2049
|
+
u.enum(Bt).transform((r) => xt[r])
|
|
2050
|
+
), Rt = () => {
|
|
2063
2051
|
if (typeof window > "u") return;
|
|
2064
2052
|
const r = window.navigator.userAgent.toLowerCase();
|
|
2065
2053
|
if (r.includes("mac")) return "macOS";
|
|
2066
2054
|
if (r.includes("win")) return "Windows";
|
|
2067
2055
|
if (r.includes("linux")) return "Linux";
|
|
2068
2056
|
};
|
|
2069
|
-
let
|
|
2070
|
-
const
|
|
2057
|
+
let te;
|
|
2058
|
+
const Dt = (r = {}) => {
|
|
2071
2059
|
const { force: e, default: t } = r;
|
|
2072
|
-
return e ??
|
|
2073
|
-
},
|
|
2060
|
+
return e ?? te ?? (te = Rt(), te ?? t);
|
|
2061
|
+
}, qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2074
2062
|
__proto__: null,
|
|
2075
|
-
OPERATING_SYSTEMS:
|
|
2076
|
-
RUNTIME:
|
|
2077
|
-
detect:
|
|
2078
|
-
getOS:
|
|
2079
|
-
osZ:
|
|
2063
|
+
OPERATING_SYSTEMS: De,
|
|
2064
|
+
RUNTIME: Mt,
|
|
2065
|
+
detect: Re,
|
|
2066
|
+
getOS: Dt,
|
|
2067
|
+
osZ: Ut
|
|
2080
2068
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2081
|
-
var
|
|
2082
|
-
const
|
|
2069
|
+
var Ct = Object.defineProperty, Lt = (r, e, t) => e in r ? Ct(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, q = (r, e, t) => Lt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2070
|
+
const Pt = (...r) => r.map(Ce).join(""), Ce = (r) => (r.endsWith("/") || (r += "/"), r.startsWith("/") && (r = r.slice(1)), r), jt = (r) => r.endsWith("/") ? r.slice(0, -1) : r, be = class ie {
|
|
2083
2071
|
/**
|
|
2084
2072
|
* @param host - The hostname or IP address of the server.
|
|
2085
2073
|
* @param port - The port number of the server.
|
|
@@ -2095,7 +2083,7 @@ const Mt = (...r) => r.map(Ce).join(""), Ce = (r) => (r.endsWith("/") || (r += "
|
|
|
2095
2083
|
* @returns a new URL.
|
|
2096
2084
|
*/
|
|
2097
2085
|
replace(e) {
|
|
2098
|
-
return new
|
|
2086
|
+
return new ie({
|
|
2099
2087
|
host: e.host ?? this.host,
|
|
2100
2088
|
port: e.port ?? this.port,
|
|
2101
2089
|
protocol: e.protocol ?? this.protocol,
|
|
@@ -2108,78 +2096,100 @@ const Mt = (...r) => r.map(Ce).join(""), Ce = (r) => (r.endsWith("/") || (r += "
|
|
|
2108
2096
|
* @returns a new URL.
|
|
2109
2097
|
*/
|
|
2110
2098
|
child(e) {
|
|
2111
|
-
return new
|
|
2099
|
+
return new ie({
|
|
2112
2100
|
...this,
|
|
2113
|
-
pathPrefix:
|
|
2101
|
+
pathPrefix: Pt(this.path, e)
|
|
2114
2102
|
});
|
|
2115
2103
|
}
|
|
2116
2104
|
/** @returns a string representation of the url */
|
|
2117
2105
|
toString() {
|
|
2118
|
-
return
|
|
2106
|
+
return jt(
|
|
2119
2107
|
`${this.protocol}://${this.host}:${this.port}/${this.path}`
|
|
2120
2108
|
);
|
|
2121
2109
|
}
|
|
2122
2110
|
};
|
|
2123
|
-
q(
|
|
2124
|
-
const
|
|
2111
|
+
q(be, "UNKNOWN", new be({ host: "unknown", port: 0 }));
|
|
2112
|
+
const qt = -128, kt = 127, Ft = u.number().int().min(qt).max(kt), Yt = -32768, Vt = 32767, zt = u.number().int().min(Yt).max(Vt), Gt = -2147483648, Zt = 2147483647, Jt = u.number().int().min(Gt).max(Zt), Wt = -9223372036854775808n, Ht = 9223372036854775807n, Kt = u.bigint().min(Wt).max(Ht), Xt = 255, Qt = u.number().int().min(0).max(Xt), _t = 65535, er = u.number().int().min(0).max(_t), tr = 4294967295, rr = u.number().int().min(0).max(tr), nr = 18446744073709551615n, sr = u.bigint().min(0n).max(nr), Le = (r) => Et(r, (e, t, n) => {
|
|
2125
2113
|
const s = t === n.length - 1, a = !isNaN(parseInt(e)), l = !isNaN(parseInt(n[t + 1]));
|
|
2126
2114
|
return a && (e = "element"), s || l ? e : [e, "shape"];
|
|
2127
|
-
}),
|
|
2115
|
+
}), we = (r, e) => {
|
|
2128
2116
|
if (r == null) return null;
|
|
2129
2117
|
const t = r[e];
|
|
2130
2118
|
return t == null && typeof r == "object" && "sourceType" in r ? r.sourceType()[e] : t;
|
|
2131
|
-
},
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
{ ...t, getter:
|
|
2135
|
-
),
|
|
2119
|
+
}, ir = (r, e, t) => Ue(
|
|
2120
|
+
we(r, "shape"),
|
|
2121
|
+
Le(e),
|
|
2122
|
+
{ ...t, getter: we }
|
|
2123
|
+
), kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2124
|
+
__proto__: null,
|
|
2125
|
+
getFieldSchema: ir,
|
|
2126
|
+
getFieldSchemaPath: Le,
|
|
2127
|
+
int16: zt,
|
|
2128
|
+
int32: Jt,
|
|
2129
|
+
int64: Kt,
|
|
2130
|
+
int8: Ft,
|
|
2131
|
+
uint16: er,
|
|
2132
|
+
uint32: rr,
|
|
2133
|
+
uint64: sr,
|
|
2134
|
+
uint8: Qt
|
|
2135
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2136
|
+
var ar = Object.defineProperty, or = (r, e, t) => e in r ? ar(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, k = (r, e, t) => or(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2137
|
+
const ur = 2, lr = 3, hr = 2, cr = (r, e) => {
|
|
2138
|
+
if (Number.isNaN(r) || !Number.isFinite(r)) return r;
|
|
2139
|
+
const t = et(e);
|
|
2140
|
+
if (t == 0) return r;
|
|
2141
|
+
let n;
|
|
2142
|
+
t >= 1e3 ? n = ur : t >= 1 ? n = lr : n = Math.ceil(-Math.log10(t)) + hr;
|
|
2143
|
+
const s = 10 ** n;
|
|
2144
|
+
return Math.round(r * s) / s;
|
|
2145
|
+
}, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2136
2146
|
__proto__: null,
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
+
abs: _e,
|
|
2148
|
+
add: Qe,
|
|
2149
|
+
closeTo: Xe,
|
|
2150
|
+
div: Ke,
|
|
2151
|
+
equal: He,
|
|
2152
|
+
max: We,
|
|
2153
|
+
min: Je,
|
|
2154
|
+
mult: D,
|
|
2155
|
+
roundBySpan: cr,
|
|
2156
|
+
roundToNearestMagnitude: Ze,
|
|
2157
|
+
sub: Ge
|
|
2147
2158
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2148
|
-
var Qt = Object.defineProperty, _t = (r, e, t) => e in r ? Qt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, k = (r, e, t) => _t(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2149
2159
|
u.object({
|
|
2150
2160
|
interval: O.z.optional(),
|
|
2151
2161
|
maxRetries: u.number().optional(),
|
|
2152
2162
|
scale: u.number().optional()
|
|
2153
2163
|
});
|
|
2154
|
-
const
|
|
2164
|
+
const x = class extends Number {
|
|
2155
2165
|
};
|
|
2156
|
-
k(
|
|
2157
|
-
lower:
|
|
2166
|
+
k(x, "ABSOLUTE", 255), k(x, "MINIMUM", 0), k(x, "BOUNDS", {
|
|
2167
|
+
lower: x.MINIMUM,
|
|
2158
2168
|
// upper bound is exclusive, so we add 1
|
|
2159
|
-
upper:
|
|
2160
|
-
}), k(
|
|
2161
|
-
u.instanceof(
|
|
2162
|
-
u.number().int().min(0).max(255).transform((r) => new
|
|
2163
|
-
u.instanceof(Number).transform((r) => new
|
|
2169
|
+
upper: x.ABSOLUTE + 1
|
|
2170
|
+
}), k(x, "z", u.union([
|
|
2171
|
+
u.instanceof(x),
|
|
2172
|
+
u.number().int().min(0).max(255).transform((r) => new x(r)),
|
|
2173
|
+
u.instanceof(Number).transform((r) => new x(r))
|
|
2164
2174
|
]));
|
|
2165
|
-
let
|
|
2166
|
-
const
|
|
2175
|
+
let Pe = x;
|
|
2176
|
+
const je = u.object({
|
|
2167
2177
|
name: u.string(),
|
|
2168
2178
|
key: u.string()
|
|
2169
|
-
}),
|
|
2170
|
-
subject:
|
|
2179
|
+
}), fr = (r) => u.object({
|
|
2180
|
+
subject: je,
|
|
2171
2181
|
resource: r,
|
|
2172
|
-
authority:
|
|
2173
|
-
}),
|
|
2182
|
+
authority: Pe.z
|
|
2183
|
+
}), dr = (...r) => (e) => e.filter((t) => {
|
|
2174
2184
|
let n = !1;
|
|
2175
2185
|
return t.to != null && (n = r.includes(t.to.resource)), t.from != null && !n && (n = r.includes(t.from.resource)), n;
|
|
2176
|
-
}),
|
|
2186
|
+
}), Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2177
2187
|
__proto__: null,
|
|
2178
|
-
Authority:
|
|
2179
|
-
filterTransfersByChannelKey:
|
|
2180
|
-
stateZ:
|
|
2181
|
-
subjectZ:
|
|
2182
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2188
|
+
Authority: Pe,
|
|
2189
|
+
filterTransfersByChannelKey: dr,
|
|
2190
|
+
stateZ: fr,
|
|
2191
|
+
subjectZ: je
|
|
2192
|
+
}, Symbol.toStringTag, { value: "Module" })), qe = class F extends Error {
|
|
2183
2193
|
constructor() {
|
|
2184
2194
|
super(F.MESSAGE);
|
|
2185
2195
|
}
|
|
@@ -2188,12 +2198,12 @@ const qe = u.object({
|
|
|
2188
2198
|
return typeof e == "string" ? e.includes(F.MESSAGE) : e instanceof F || e.message.includes(F.MESSAGE);
|
|
2189
2199
|
}
|
|
2190
2200
|
};
|
|
2191
|
-
k(
|
|
2192
|
-
let
|
|
2193
|
-
new
|
|
2194
|
-
const
|
|
2201
|
+
k(qe, "MESSAGE", "canceled");
|
|
2202
|
+
let gr = qe;
|
|
2203
|
+
new gr();
|
|
2204
|
+
const zr = (r) => r ? -1 : 1, ae = u.string().regex(/^\d+\.\d+\.\d+$/), G = (r, e, t = {}) => {
|
|
2195
2205
|
t.checkMajor ?? (t.checkMajor = !0), t.checkMinor ?? (t.checkMinor = !0), t.checkPatch ?? (t.checkPatch = !0);
|
|
2196
|
-
const n =
|
|
2206
|
+
const n = ae.parse(r), s = ae.parse(e), [a, l, m] = n.split(".").map(Number), [f, g, v] = s.split(".").map(Number);
|
|
2197
2207
|
if (t.checkMajor) {
|
|
2198
2208
|
if (a < f) return W;
|
|
2199
2209
|
if (a > f) return H;
|
|
@@ -2203,11 +2213,11 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2203
2213
|
if (l > g) return H;
|
|
2204
2214
|
}
|
|
2205
2215
|
if (t.checkPatch) {
|
|
2206
|
-
if (m <
|
|
2207
|
-
if (m >
|
|
2216
|
+
if (m < v) return W;
|
|
2217
|
+
if (m > v) return H;
|
|
2208
2218
|
}
|
|
2209
|
-
return
|
|
2210
|
-
},
|
|
2219
|
+
return C;
|
|
2220
|
+
}, mr = (r, e, t = {}) => $e(G(r, e, t)), ke = (r, e, t = {}) => Ae(G(r, e, t)), pr = (r, e, t = {}) => Ie(G(r, e, t)), yr = ({
|
|
2211
2221
|
name: r,
|
|
2212
2222
|
migrate: e
|
|
2213
2223
|
}) => (t) => {
|
|
@@ -2217,14 +2227,14 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2217
2227
|
} catch (n) {
|
|
2218
2228
|
throw console.log(`${r} failed to migrate from ${t.version}`), console.error(n), n;
|
|
2219
2229
|
}
|
|
2220
|
-
},
|
|
2230
|
+
}, br = ({
|
|
2221
2231
|
name: r,
|
|
2222
2232
|
migrations: e,
|
|
2223
2233
|
targetSchema: t,
|
|
2224
2234
|
defaultVersion: n,
|
|
2225
2235
|
def: s
|
|
2226
2236
|
}) => {
|
|
2227
|
-
const a = Object.keys(e).sort(
|
|
2237
|
+
const a = Object.keys(e).sort(G).pop();
|
|
2228
2238
|
if (a == null)
|
|
2229
2239
|
return (g) => {
|
|
2230
2240
|
if (g.version ?? (g.version = n), g.version !== s.version)
|
|
@@ -2235,22 +2245,22 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2235
2245
|
), s;
|
|
2236
2246
|
try {
|
|
2237
2247
|
return t != null ? t.parse(g) : g;
|
|
2238
|
-
} catch (
|
|
2239
|
-
return console.log(`${r} failed to parse default. Exiting with default`), console.error(
|
|
2248
|
+
} catch (v) {
|
|
2249
|
+
return console.log(`${r} failed to parse default. Exiting with default`), console.error(v), s;
|
|
2240
2250
|
}
|
|
2241
2251
|
};
|
|
2242
2252
|
const l = Object.keys(e).length;
|
|
2243
2253
|
let m = !1;
|
|
2244
2254
|
const f = (g) => {
|
|
2245
2255
|
try {
|
|
2246
|
-
if (l === 0 ||
|
|
2256
|
+
if (l === 0 || ke(g.version, a))
|
|
2247
2257
|
return console.log(m ? `${r} ${g.version} now up to date` : `${r} version ${g.version} is up to date with target version ${s.version}`), g;
|
|
2248
|
-
const
|
|
2249
|
-
return m = !0, f(
|
|
2250
|
-
} catch (
|
|
2258
|
+
const v = g.version, c = e[v], $ = c(g);
|
|
2259
|
+
return m = !0, f($);
|
|
2260
|
+
} catch (v) {
|
|
2251
2261
|
return console.log(
|
|
2252
2262
|
`${r} failed to migrate from ${g.version} to ${a}`
|
|
2253
|
-
), console.error(
|
|
2263
|
+
), console.error(v), s;
|
|
2254
2264
|
}
|
|
2255
2265
|
};
|
|
2256
2266
|
return (g) => {
|
|
@@ -2265,135 +2275,69 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2265
2275
|
`${r} version is null and no default version set. Exiting with default`
|
|
2266
2276
|
), s;
|
|
2267
2277
|
return f(g);
|
|
2268
|
-
} catch (
|
|
2269
|
-
return console.log(`${r} failed to parse final result. Exiting with default`), console.error(
|
|
2278
|
+
} catch (v) {
|
|
2279
|
+
return console.log(`${r} failed to parse final result. Exiting with default`), console.error(v), s;
|
|
2270
2280
|
}
|
|
2271
2281
|
};
|
|
2272
|
-
},
|
|
2282
|
+
}, Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2273
2283
|
__proto__: null,
|
|
2274
|
-
compareSemVer:
|
|
2275
|
-
createMigration:
|
|
2276
|
-
migrator:
|
|
2277
|
-
semVerNewer:
|
|
2278
|
-
semVerOlder:
|
|
2279
|
-
semVerZ:
|
|
2280
|
-
versionsEqual:
|
|
2281
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2284
|
+
compareSemVer: G,
|
|
2285
|
+
createMigration: yr,
|
|
2286
|
+
migrator: br,
|
|
2287
|
+
semVerNewer: ke,
|
|
2288
|
+
semVerOlder: pr,
|
|
2289
|
+
semVerZ: ae,
|
|
2290
|
+
versionsEqual: mr
|
|
2291
|
+
}, Symbol.toStringTag, { value: "Module" })), Fe = ["standard", "scientific", "engineering"], wr = u.enum(Fe), Or = (r, e, t) => {
|
|
2292
|
+
if (Number.isNaN(r)) return "NaN";
|
|
2293
|
+
if (r === 1 / 0) return "∞";
|
|
2294
|
+
if (r === -1 / 0) return "-∞";
|
|
2295
|
+
if (t === "standard") return r.toFixed(e);
|
|
2296
|
+
if (r === 0)
|
|
2297
|
+
return e === 0 ? "0ᴇ0" : `0.${"0".repeat(e)}ᴇ0`;
|
|
2298
|
+
let n;
|
|
2299
|
+
return t === "scientific" ? n = Math.floor(Math.log10(Math.abs(r))) : n = Math.floor(Math.log10(Math.abs(r)) / 3) * 3, `${(r / 10 ** n).toFixed(e)}ᴇ${n}`;
|
|
2300
|
+
}, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2301
|
+
__proto__: null,
|
|
2302
|
+
NOTATIONS: Fe,
|
|
2303
|
+
notationZ: wr,
|
|
2304
|
+
stringifyNumber: Or
|
|
2305
|
+
}, Symbol.toStringTag, { value: "Module" })), Jr = (r) => {
|
|
2282
2306
|
if (r === void 0 || typeof r == "string" || typeof r == "number")
|
|
2283
2307
|
return r;
|
|
2284
2308
|
if (r.toString === void 0) throw new Error("invalid renderer");
|
|
2285
2309
|
return r.toString();
|
|
2286
|
-
},
|
|
2287
|
-
h1: "h2",
|
|
2288
|
-
h2: "h3",
|
|
2289
|
-
h3: "h4",
|
|
2290
|
-
h4: "h5",
|
|
2291
|
-
h5: "p",
|
|
2292
|
-
p: "small",
|
|
2293
|
-
small: "small"
|
|
2294
|
-
}, Gr = (r) => ur[r], lr = {
|
|
2295
|
-
h1: "h1",
|
|
2296
|
-
h2: "h1",
|
|
2297
|
-
h3: "h2",
|
|
2298
|
-
h4: "h3",
|
|
2299
|
-
h5: "h4",
|
|
2300
|
-
p: "h5",
|
|
2301
|
-
small: "p"
|
|
2302
|
-
}, Yr = (r) => lr[r], hr = ["normal", "bold", "bolder", "lighter"], Zr = u.union([u.number(), u.enum(hr)]), Jr = u.object({
|
|
2303
|
-
size: u.number(),
|
|
2304
|
-
weight: u.union([u.number(), u.string()]),
|
|
2305
|
-
lineHeight: u.number(),
|
|
2306
|
-
textTransform: u.string().optional()
|
|
2307
|
-
}), Wr = {
|
|
2308
|
-
small: "small",
|
|
2309
|
-
medium: "p",
|
|
2310
|
-
large: "h5",
|
|
2311
|
-
huge: "h2"
|
|
2312
|
-
}, Hr = {
|
|
2313
|
-
h1: "huge",
|
|
2314
|
-
h2: "huge",
|
|
2315
|
-
h3: "huge",
|
|
2316
|
-
h4: "large",
|
|
2317
|
-
h5: "small",
|
|
2318
|
-
p: "medium",
|
|
2319
|
-
small: "small"
|
|
2320
|
-
}, Ve = (r) => typeof r == "function", cr = (r, e) => Ve(r) ? r(e) : r, ee = (r) => ze(r) ? r() : r, ze = (r) => typeof r == "function", fr = ({
|
|
2321
|
-
initial: r,
|
|
2322
|
-
value: e,
|
|
2323
|
-
onChange: t
|
|
2324
|
-
}) => {
|
|
2325
|
-
const [n, s] = ue(ee(e ?? r));
|
|
2326
|
-
return e != null && t != null ? [e, t] : [n, s];
|
|
2327
|
-
}, dr = ({
|
|
2328
|
-
initial: r,
|
|
2329
|
-
value: e,
|
|
2330
|
-
onChange: t
|
|
2331
|
-
}) => {
|
|
2332
|
-
const [n, s] = ue(ee(e ?? r));
|
|
2333
|
-
return e != null && t != null ? [e, t] : [n, s];
|
|
2334
|
-
}, gr = (r, e) => {
|
|
2335
|
-
const [t, n] = ue(() => {
|
|
2336
|
-
const s = localStorage.getItem(e);
|
|
2337
|
-
return s == null ? ee(r) : JSON.parse(s);
|
|
2338
|
-
});
|
|
2339
|
-
return [
|
|
2340
|
-
t,
|
|
2341
|
-
(s) => {
|
|
2342
|
-
n(s), localStorage.setItem(e, JSON.stringify(s));
|
|
2343
|
-
}
|
|
2344
|
-
];
|
|
2345
|
-
}, Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2346
|
-
__proto__: null,
|
|
2347
|
-
executeInitialSetter: ee,
|
|
2348
|
-
executeSetter: cr,
|
|
2349
|
-
isInitialSetter: ze,
|
|
2350
|
-
isSetter: Ve,
|
|
2351
|
-
usePassthrough: fr,
|
|
2352
|
-
usePersisted: gr,
|
|
2353
|
-
usePurePassthrough: dr
|
|
2354
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2310
|
+
}, Wr = (r) => Array.isArray(r) ? [...r] : typeof r == "object" && r !== null ? { ...r } : r;
|
|
2355
2311
|
export {
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
Br as f,
|
|
2379
|
-
Rr as g,
|
|
2380
|
-
Ur as h,
|
|
2381
|
-
O as i,
|
|
2382
|
-
fr as j,
|
|
2383
|
-
dr as k,
|
|
2384
|
-
zr as l,
|
|
2312
|
+
le as $,
|
|
2313
|
+
Mr as C,
|
|
2314
|
+
Ur as D,
|
|
2315
|
+
Er as F,
|
|
2316
|
+
xr as L,
|
|
2317
|
+
zr as M,
|
|
2318
|
+
qr as S,
|
|
2319
|
+
Zr as T,
|
|
2320
|
+
z as U,
|
|
2321
|
+
Gr as _,
|
|
2322
|
+
Ar as a,
|
|
2323
|
+
Jr as b,
|
|
2324
|
+
Ue as c,
|
|
2325
|
+
$r as d,
|
|
2326
|
+
p as e,
|
|
2327
|
+
Dr as f,
|
|
2328
|
+
Pr as g,
|
|
2329
|
+
Cr as h,
|
|
2330
|
+
Q as i,
|
|
2331
|
+
Fr as j,
|
|
2332
|
+
St as k,
|
|
2333
|
+
Wr as l,
|
|
2385
2334
|
w as m,
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
Fr as v,
|
|
2395
|
-
Zr as w,
|
|
2396
|
-
Sr as x,
|
|
2397
|
-
Dr as y,
|
|
2398
|
-
p as z
|
|
2335
|
+
kr as n,
|
|
2336
|
+
Te as o,
|
|
2337
|
+
Lr as p,
|
|
2338
|
+
A as q,
|
|
2339
|
+
Et as u,
|
|
2340
|
+
O as w,
|
|
2341
|
+
Vr as x,
|
|
2342
|
+
jr as y
|
|
2399
2343
|
};
|