@marimo-team/islands 0.25.1-dev4 → 0.25.1-dev40
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/{ConnectedDataExplorerComponent-KVhjDMSe.js → ConnectedDataExplorerComponent-CwMXfDQR.js} +3 -3
- package/dist/{ErrorBoundary-pV36lYEK.js → ErrorBoundary-CAJO-M56.js} +1 -1
- package/dist/{ImageComparisonComponent-Dlm5aWnH.js → ImageComparisonComponent-Cpfz30OZ.js} +51 -52
- package/dist/{abnfDiagram-VCTEODGH-CpN0FRda.js → abnfDiagram-VCTEODGH-AFhOQTt8.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-DDyj5SRB.js → architectureDiagram-5GKGNRK7-BngksAAQ.js} +5 -5
- package/dist/{blockDiagram-I7D4REHJ-BbXEXJRu.js → blockDiagram-I7D4REHJ-CvBmppdy.js} +9 -9
- package/dist/{c4Diagram-7LVT6UL2-DcLsbQmR.js → c4Diagram-7LVT6UL2-EceL4_jH.js} +7 -7
- package/dist/{cells-B5-y5EY3.js → cells-Cv93oav_.js} +3 -3
- package/dist/{channel-B5XnTarr.js → channel-z7HZXHwv.js} +1 -1
- package/dist/{chat-ui-HJZsTl7o.js → chat-ui-DLSF8a04.js} +4 -4
- package/dist/{chunk-4HAMMTFA-D2qv8E0X.js → chunk-4HAMMTFA-BPTTOOC5.js} +5 -5
- package/dist/{chunk-75Z2AOVW-5_HsvXwr.js → chunk-75Z2AOVW-C4AOleKf.js} +1 -1
- package/dist/{chunk-DU6HZSFF-BUgAHvnM.js → chunk-DU6HZSFF-1TwWR6gh.js} +1 -1
- package/dist/{chunk-F27PBJKO-DHmYWZXr.js → chunk-F27PBJKO-DMI1PBe4.js} +1 -1
- package/dist/{chunk-GMAD6QVW-Czynz8aA.js → chunk-GMAD6QVW-vStrMz2P.js} +3 -3
- package/dist/{chunk-GVQU2GXP-yQEdulRS.js → chunk-GVQU2GXP-2HwWgs4u.js} +2 -2
- package/dist/{chunk-IMKFNOWR-BfwTebD0.js → chunk-IMKFNOWR-UOVZuZVn.js} +5 -5
- package/dist/{chunk-L3NEJ4N5-DwRWnDDK.js → chunk-L3NEJ4N5-RhC7i0I2.js} +5 -5
- package/dist/{chunk-OSK3NFVY-BBKU_Ign.js → chunk-OSK3NFVY-CZV09N-U.js} +6 -6
- package/dist/{chunk-P2QGCYS3-C0iGU29N.js → chunk-P2QGCYS3-0TAWai9C.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-BCbS3Ozc.js → chunk-POPQ4Y6H-Cc3_56GX.js} +1 -1
- package/dist/{chunk-PWAF6VOD-CTFCL0jI.js → chunk-PWAF6VOD-lNxB9k8z.js} +1 -1
- package/dist/{chunk-SHT3W25Y-BspJEJ5H.js → chunk-SHT3W25Y-CrEPyWy1.js} +7 -7
- package/dist/{chunk-SVP7TREG-DX3rFNTe.js → chunk-SVP7TREG-uIyyySp6.js} +2 -2
- package/dist/{chunk-TICWLB2K-fVF7Uujg.js → chunk-TICWLB2K-DdXM3eg6.js} +5 -5
- package/dist/classDiagram-ZZMXUADV-BiATbBE4.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-JnH97GYw.js +30 -0
- package/dist/{code-visibility-CgZS2a3W.js → code-visibility-XU9RAJNV.js} +2 -2
- package/dist/{common-DnMDPPaW.js → common-C0fbrgB8.js} +13 -13
- package/dist/{cynefinDiagram-5FMLGOSQ-CFQrqzSX.js → cynefinDiagram-5FMLGOSQ-zknaAsGy.js} +3 -3
- package/dist/{dagre-GXQ25YYZ-xHNAUTyG.js → dagre-GXQ25YYZ-BhMOoMGJ.js} +10 -10
- package/dist/{data-grid-overlay-editor-hHYgD_Sm.js → data-grid-overlay-editor-BnhbJgoq.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Bt1rPbAx.js → diagram-S7CK7UJ4-V5-Z-EDY.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-D1sq5FoZ.js → diagram-UQ7AKVKN-qw8AjDal.js} +3 -3
- package/dist/{diagram-VSXAHHWV-BKpmG23x.js → diagram-VSXAHHWV-CR7BJygZ.js} +2 -2
- package/dist/{diagram-VX7I27RA-BMwGFVD6.js → diagram-VX7I27RA-DfuqFb1E.js} +5 -5
- package/dist/{diagram-Z3DM3KII--KLDR9Pl.js → diagram-Z3DM3KII-DpWwlYZB.js} +3 -3
- package/dist/{dist-BaHjhkpZ.js → dist-CcyKTBTF.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-WnG4cvSQ.js → ebnfDiagram-PWID7BFC-C20OnNMZ.js} +3 -3
- package/dist/{erDiagram-RLTQ6QDP-DhzKiYHc.js → erDiagram-RLTQ6QDP-DBXLWO9v.js} +12 -12
- package/dist/{error-entries-Bkbpx0T0.js → error-entries-DLl0XqoW.js} +1 -1
- package/dist/{feedback-button-CvKssdG_.js → feedback-button-B0QSkbSp.js} +4 -4
- package/dist/flowDiagram-HODETNUW-DL52nMkt.js +16 -0
- package/dist/{formats-C8rLgZT9.js → formats-Cl_67ghI.js} +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-DbzEBLbl.js → ganttDiagram-EL5Y4UJY-cRRaDt88.js} +2 -2
- package/dist/{gitGraphDiagram-WWUBYQGX-BMf0iKi1.js → gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js} +2 -2
- package/dist/{glide-data-editor-Ohetlgag.js → glide-data-editor-ymIQdwrb.js} +3 -3
- package/dist/{globals-CPNNcOJI.js → globals-B0S3-e_D.js} +1 -1
- package/dist/{html-to-image-BAgJOlSW.js → html-to-image-CGVgroef.js} +2 -2
- package/dist/{infoDiagram-27XIBGKW-BagtCX_5.js → infoDiagram-27XIBGKW-ntpxMfrq.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-DByDehYy.js → ishikawaDiagram-5VMMS53U-BllIlHE5.js} +3 -3
- package/dist/{journeyDiagram-3NMN7TZE-D2LcKDUO.js → journeyDiagram-3NMN7TZE-EPJDPlt0.js} +2 -2
- package/dist/{kanban-definition-UXKFOSKX-BxwkbBI_.js → kanban-definition-UXKFOSKX-GYtNMjtS.js} +9 -9
- package/dist/{katex-C6D4cX_N.js → katex-BNCmKUol.js} +983 -1120
- package/dist/{loader-D2W4oM-3.js → loader-DEZSzvma.js} +253 -248
- package/dist/main.js +72 -69
- package/dist/{mermaid-DPNuhemn.js → mermaid-Dnzoxjt1.js} +49 -49
- package/dist/{mhchem-DWCF06w9.js → mhchem-BEc7A1or.js} +1 -1
- package/dist/{mindmap-definition-YA3MSWOX-Cgvojw3y.js → mindmap-definition-YA3MSWOX-Cth76xgH.js} +11 -11
- package/dist/{number-overlay-editor-CHWg5gGO.js → number-overlay-editor-DB3HJDI1.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DahHhYyN.js → pegDiagram-XKGWAZYB-Cu4uOXii.js} +3 -3
- package/dist/{pieDiagram-E7YTZNPT-CCtX0oCK.js → pieDiagram-E7YTZNPT-Bh3eDa9s.js} +3 -3
- package/dist/{process-output-zDX4jbhd.js → process-output-CGfg-JmZ.js} +2 -2
- package/dist/{quadrantDiagram-AXDQQJYC-DftINo6g.js → quadrantDiagram-AXDQQJYC--kqzFC3w.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-Du5NsPUb.js → railroadDiagram-O6MQD6OU-DG-M6Rnc.js} +3 -3
- package/dist/{react-vega-5AcMW8gG.js → react-vega-ewj7q_U5.js} +1 -1
- package/dist/{requirementDiagram-BXWQKSXE-0pmmxL6_.js → requirementDiagram-BXWQKSXE-DCwsThh0.js} +11 -11
- package/dist/{reveal-component-BujcZI2B.js → reveal-component-CfTzIkA2.js} +3 -3
- package/dist/{sankeyDiagram-P5KCCOFB-CDKR5TJH.js → sankeyDiagram-P5KCCOFB-BdzhT0BM.js} +1 -1
- package/dist/{sequenceDiagram-WJ2MYXX4-DB-ChWwU.js → sequenceDiagram-WJ2MYXX4-CbXB1_PU.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-orN6AwMx.js → stateDiagram-D77RDMKH-A-Zf3Sb2.js} +13 -13
- package/dist/stateDiagram-v2-MP3YSRHH-D9YMnUGx.js +30 -0
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BkSDcqDT.js → swimlanes-42K2YHIH-B_pMf0J4.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-Ctgy-yGP.js +30 -0
- package/dist/{timeline-definition-24CTP7MA-BuqJUIRZ.js → timeline-definition-24CTP7MA-DTXFjTTM.js} +3 -3
- package/dist/{vega-component-CNf5gcrm.js → vega-component-tFOzgarw.js} +4 -4
- package/dist/{vega-embed-container-CbnTccZi.js → vega-embed-container-sSR5hAsy.js} +2 -2
- package/dist/{vega-loader.browser-D95WfUcj.js → vega-loader.browser-DNST6uVf.js} +2 -2
- package/dist/{vennDiagram-4TSXK5OY-CTUlJ2PK.js → vennDiagram-4TSXK5OY-BPHjZo0R.js} +3 -3
- package/dist/{wardleyDiagram-VM6X3IG4-3evLUb0M.js → wardleyDiagram-VM6X3IG4-6fTLYBuD.js} +3 -3
- package/dist/{xychartDiagram-S5SC5T6Z-DL2E3K8-.js → xychartDiagram-S5SC5T6Z-BYjwjrzE.js} +5 -5
- package/package.json +1 -2
- package/src/__mocks__/common.ts +3 -3
- package/src/__tests__/CellStatus.test.tsx +1 -1
- package/src/__tests__/setup.ts +7 -7
- package/src/components/app-config/ai-config.tsx +2 -0
- package/src/components/app-config/optional-features.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +19 -8
- package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +286 -0
- package/src/components/data-table/charts/charts.tsx +26 -13
- package/src/components/data-table/column-summary/chart-spec-model.tsx +4 -4
- package/src/components/dependency-graph/elements.ts +2 -2
- package/src/components/editor/__tests__/package-alert.test.tsx +140 -0
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +107 -0
- package/src/components/editor/actions/pair-with-agent.tsx +119 -0
- package/src/components/editor/actions/useNotebookActions.tsx +2 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -0
- package/src/components/editor/ai/staged-cell-submission.ts +2 -2
- package/src/components/editor/ai/transport/chat-transport.tsx +1 -1
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +6 -1
- package/src/components/editor/connections/database/as-code.ts +44 -44
- package/src/components/editor/connections/storage/as-code.ts +3 -3
- package/src/components/editor/file-tree/requesting-tree.tsx +16 -13
- package/src/components/editor/navigation/clipboard.ts +2 -2
- package/src/components/editor/notebook-cell.tsx +2 -2
- package/src/components/editor/output/MarimoTracebackOutput.tsx +1 -1
- package/src/components/editor/output/VideoOutput.tsx +1 -1
- package/src/components/editor/output/ansi-reduce.ts +21 -17
- package/src/components/editor/output/console/ConsoleOutput.tsx +3 -3
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +59 -0
- package/src/components/editor/output/console/text-rendering.tsx +3 -1
- package/src/components/editor/package-alert.tsx +20 -7
- package/src/components/home/components.tsx +1 -0
- package/src/components/pages/run-page.tsx +1 -0
- package/src/components/slides/__tests__/minimap-actions.test.tsx +7 -7
- package/src/components/slides/__tests__/minimap.test.ts +12 -12
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +8 -8
- package/src/components/static-html/share-modal.tsx +2 -1
- package/src/components/static-html/static-banner.tsx +2 -2
- package/src/components/ui/links.tsx +6 -1
- package/src/components/ui/typography.tsx +16 -8
- package/src/core/ai/context/__tests__/registry.test.ts +31 -28
- package/src/core/ai/context/providers/cell-output.ts +8 -8
- package/src/core/ai/context/providers/datasource.ts +10 -7
- package/src/core/ai/context/providers/error.ts +7 -7
- package/src/core/ai/context/providers/file.ts +8 -8
- package/src/core/ai/context/providers/tables.ts +7 -7
- package/src/core/ai/context/providers/variable.ts +7 -7
- package/src/core/ai/context/registry.ts +18 -18
- package/src/core/ai/ids/ids.ts +5 -5
- package/src/core/ai/model-registry.ts +12 -9
- package/src/core/ai/staged-cells.ts +6 -6
- package/src/core/ai/tools/base.ts +6 -6
- package/src/core/ai/tools/edit-notebook-tool.ts +6 -6
- package/src/core/ai/tools/registry.ts +4 -4
- package/src/core/ai/tools/run-cells-tool.ts +7 -7
- package/src/core/ai/tools/sample-tool.ts +6 -6
- package/src/core/cells/__tests__/cells.test.ts +27 -0
- package/src/core/cells/cells.ts +2 -1
- package/src/core/codemirror/cells/debugger-decorations.ts +13 -7
- package/src/core/codemirror/cells/line-timing-decorations.ts +9 -9
- package/src/core/codemirror/cells/traceback-decorations.ts +7 -4
- package/src/core/codemirror/code-lens/extension.ts +13 -13
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +6 -6
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +12 -12
- package/src/core/codemirror/copilot/language-server.ts +13 -13
- package/src/core/codemirror/copilot/transport.ts +1 -1
- package/src/core/codemirror/find-replace/search-highlight.ts +5 -5
- package/src/core/codemirror/go-to-definition/underline.ts +3 -3
- package/src/core/codemirror/keymaps/vim.ts +3 -3
- package/src/core/codemirror/language/languages/markdown.ts +8 -8
- package/src/core/codemirror/language/languages/python.ts +7 -7
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +5 -5
- package/src/core/codemirror/language/languages/sql/completion-store.ts +4 -4
- package/src/core/codemirror/language/languages/sql/sql.ts +21 -21
- package/src/core/codemirror/lsp/__tests__/transports.test.ts +10 -10
- package/src/core/codemirror/lsp/federated-lsp.ts +29 -27
- package/src/core/codemirror/lsp/notebook-lsp.ts +21 -21
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +10 -10
- package/src/core/codemirror/misc/__tests__/paste.test.ts +7 -4
- package/src/core/codemirror/reactive-references/extension.ts +3 -3
- package/src/core/codemirror/rtc/loro/awareness.ts +12 -12
- package/src/core/codemirror/rtc/loro/sync.ts +5 -5
- package/src/core/codemirror/vim/cursor-visibility.ts +3 -3
- package/src/core/dom/ui-element.ts +5 -5
- package/src/core/dom/uiregistry.ts +10 -10
- package/src/core/hotkeys/hotkeys.ts +9 -9
- package/src/core/islands/__tests__/bridge.test.ts +4 -4
- package/src/core/islands/__tests__/test-utils.tsx +4 -4
- package/src/core/islands/bridge.ts +85 -82
- package/src/core/islands/components/web-components.tsx +7 -7
- package/src/core/islands/worker/__tests__/controller.test.ts +1 -1
- package/src/core/islands/worker/controller.ts +6 -3
- package/src/core/islands/worker-factory.ts +2 -2
- package/src/core/kernel/RuntimeState.ts +4 -4
- package/src/core/lsp/__tests__/transport.test.ts +19 -19
- package/src/core/lsp/transport.ts +5 -5
- package/src/core/network/CachingRequestRegistry.ts +2 -2
- package/src/core/network/DeferredRequestRegistry.ts +4 -4
- package/src/core/runtime/runtime.ts +25 -20
- package/src/core/static/virtual-file-tracker.ts +5 -5
- package/src/core/wasm/__tests__/bridge.test.ts +2 -2
- package/src/core/wasm/bridge.ts +130 -126
- package/src/core/wasm/router.ts +5 -5
- package/src/core/wasm/store.ts +4 -4
- package/src/core/wasm/worker/bootstrap.ts +8 -5
- package/src/core/wasm/worker/message-buffer.ts +3 -3
- package/src/core/websocket/transports/__tests__/ws.test.ts +8 -8
- package/src/core/websocket/transports/basic.ts +15 -8
- package/src/core/websocket/transports/sse.ts +7 -7
- package/src/core/websocket/transports/transport.ts +3 -3
- package/src/core/websocket/transports/ws.ts +9 -7
- package/src/css/globals.css +18 -21
- package/src/css/katex.min.css +260 -241
- package/src/hooks/__tests__/useOverflowDetection.test.tsx +5 -5
- package/src/hooks/__tests__/useResizeObserver.test.tsx +12 -12
- package/src/plugins/core/registerReactComponent.tsx +5 -5
- package/src/plugins/core/sidebar-element.tsx +2 -2
- package/src/plugins/impl/ButtonPlugin.tsx +3 -3
- package/src/plugins/impl/CheckboxPlugin.tsx +3 -3
- package/src/plugins/impl/CodeEditorPlugin.tsx +3 -3
- package/src/plugins/impl/DatePickerPlugin.tsx +3 -3
- package/src/plugins/impl/DateRangePlugin.tsx +3 -3
- package/src/plugins/impl/DateTimePickerPlugin.tsx +3 -3
- package/src/plugins/impl/DictPlugin.tsx +3 -3
- package/src/plugins/impl/DropdownPlugin.tsx +3 -3
- package/src/plugins/impl/FileUploadPlugin.tsx +3 -3
- package/src/plugins/impl/MatrixPlugin.tsx +4 -4
- package/src/plugins/impl/MicrophonePlugin.tsx +3 -3
- package/src/plugins/impl/MultiselectPlugin.tsx +3 -3
- package/src/plugins/impl/NumberPlugin.tsx +3 -3
- package/src/plugins/impl/RadioPlugin.tsx +9 -5
- package/src/plugins/impl/RangeSliderPlugin.tsx +3 -3
- package/src/plugins/impl/RefreshPlugin.tsx +3 -3
- package/src/plugins/impl/SliderPlugin.tsx +3 -3
- package/src/plugins/impl/SwitchPlugin.tsx +3 -3
- package/src/plugins/impl/TabsPlugin.tsx +3 -3
- package/src/plugins/impl/TextAreaPlugin.tsx +3 -3
- package/src/plugins/impl/TextInputPlugin.tsx +3 -3
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +2 -2
- package/src/plugins/impl/anywidget/model.ts +10 -10
- package/src/plugins/impl/anywidget/registry.ts +12 -9
- package/src/plugins/impl/anywidget/runtime.ts +11 -9
- package/src/plugins/impl/anywidget/widget-binding.ts +6 -6
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +7 -6
- package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +3 -3
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +2 -2
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +2 -2
- package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +10 -10
- package/src/plugins/impl/panel/utils.ts +5 -5
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +3 -3
- package/src/plugins/impl/vega/VegaPlugin.tsx +3 -3
- package/src/plugins/impl/vega/__tests__/use-vega-container-remeasure.test.ts +7 -7
- package/src/plugins/impl/vega/__tests__/utils.test.ts +16 -1
- package/src/plugins/impl/vega/__tests__/vega.test.ts +37 -0
- package/src/plugins/impl/vega/loader.ts +23 -1
- package/src/plugins/impl/vega/utils.ts +5 -4
- package/src/plugins/layout/AccordionPlugin.tsx +3 -3
- package/src/plugins/layout/CalloutPlugin.tsx +3 -3
- package/src/plugins/layout/ImageComparisonPlugin.tsx +5 -3
- package/src/plugins/layout/JsonOutputPlugin.tsx +3 -3
- package/src/plugins/layout/MimeRenderPlugin.tsx +3 -3
- package/src/plugins/layout/NavigationMenuPlugin.tsx +3 -3
- package/src/plugins/layout/OutlinePlugin.tsx +3 -3
- package/src/plugins/layout/ProgressPlugin.tsx +3 -3
- package/src/plugins/layout/RoutesPlugin.tsx +6 -8
- package/src/plugins/layout/StatPlugin.tsx +3 -3
- package/src/plugins/layout/TexPlugin.tsx +3 -3
- package/src/plugins/layout/carousel/CarouselPlugin.tsx +4 -4
- package/src/plugins/layout/mermaid/MermaidPlugin.tsx +3 -3
- package/src/utils/Deferred.ts +6 -6
- package/src/utils/async-capture-tracker.ts +10 -7
- package/src/utils/errors.ts +5 -5
- package/src/utils/id-tree.tsx +83 -80
- package/src/utils/lru.ts +1 -1
- package/src/utils/multi-map.ts +14 -12
- package/src/utils/paths.ts +6 -6
- package/src/utils/pluralize.ts +3 -3
- package/src/utils/progress.ts +6 -6
- package/src/utils/python-poet/poet.ts +14 -14
- package/src/utils/routes.ts +4 -2
- package/src/utils/semaphore.ts +6 -6
- package/src/utils/storage/storage.ts +6 -6
- package/src/utils/storage/typed.ts +16 -12
- package/src/utils/time.ts +9 -9
- package/src/utils/timed-cache.ts +4 -4
- package/src/utils/tracer.ts +9 -6
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +0 -30
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +0 -16
- package/dist/katex-DFBiSucW.js +0 -21840
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +0 -30
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as e } from "./button-DdXAm8iz.js";
|
|
2
2
|
import { t } from "./objects-CzUgoMIF.js";
|
|
3
|
-
import { V as n, a as r, c as i, nt as a, o, rt as s } from "./vega-loader.browser-
|
|
3
|
+
import { V as n, a as r, c as i, nt as a, o, rt as s } from "./vega-loader.browser-DNST6uVf.js";
|
|
4
4
|
//#region ../node_modules/.pnpm/vega-tooltip@1.1.0/node_modules/vega-tooltip/build/index.js
|
|
5
5
|
var c = { version: "1.1.0" };
|
|
6
6
|
function l(e, t, r, i) {
|
|
@@ -420,10 +420,10 @@ function et(e, t) {
|
|
|
420
420
|
return !!(e[t >> 3] & 1 << t % 8);
|
|
421
421
|
}
|
|
422
422
|
function M(e, t) {
|
|
423
|
-
let n = t +
|
|
423
|
+
let n = t + I(e, t), r = n - I(e, n), i = F(e, r);
|
|
424
424
|
return (t, a, o = null) => {
|
|
425
425
|
if (t < i) {
|
|
426
|
-
let i =
|
|
426
|
+
let i = F(e, r + t);
|
|
427
427
|
if (i) return a(e, n + i);
|
|
428
428
|
}
|
|
429
429
|
return o;
|
|
@@ -436,45 +436,45 @@ function P(e, t) {
|
|
|
436
436
|
return !!tt(e, t);
|
|
437
437
|
}
|
|
438
438
|
function tt(e, t) {
|
|
439
|
-
return
|
|
439
|
+
return nt(e, t) << 24 >> 24;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function nt(e, t) {
|
|
442
442
|
return e[t];
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
return
|
|
444
|
+
function F(e, t) {
|
|
445
|
+
return rt(e, t) << 16 >> 16;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function rt(e, t) {
|
|
448
448
|
return e[t] | e[t + 1] << 8;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function I(e, t) {
|
|
451
451
|
return e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
return
|
|
453
|
+
function it(e, t) {
|
|
454
|
+
return I(e, t) >>> 0;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
return O(BigInt.asIntN(64, BigInt(
|
|
456
|
+
function L(e, t) {
|
|
457
|
+
return O(BigInt.asIntN(64, BigInt(it(e, t)) + (BigInt(it(e, t + 4)) << 32n)));
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
let n = t +
|
|
459
|
+
function R(e, t) {
|
|
460
|
+
let n = t + I(e, t), r = I(e, n);
|
|
461
461
|
return n += 4, j(e.subarray(n, n + r));
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function z(e, t, n, r) {
|
|
464
464
|
if (!t) return [];
|
|
465
|
-
let i = t +
|
|
466
|
-
return Array.from({ length:
|
|
465
|
+
let i = t + I(e, t);
|
|
466
|
+
return Array.from({ length: I(e, i) }, (t, a) => r(e, i + 4 + a * n));
|
|
467
467
|
}
|
|
468
468
|
//#endregion
|
|
469
469
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/util/struct.js
|
|
470
|
-
var
|
|
471
|
-
function
|
|
470
|
+
var B = Symbol("rowIndex");
|
|
471
|
+
function at(e, t) {
|
|
472
472
|
class n {
|
|
473
473
|
constructor(e) {
|
|
474
|
-
this[
|
|
474
|
+
this[B] = e;
|
|
475
475
|
}
|
|
476
476
|
toJSON() {
|
|
477
|
-
return
|
|
477
|
+
return st(e, t, this[B]);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
let r = n.prototype;
|
|
@@ -483,27 +483,27 @@ function H(e, t) {
|
|
|
483
483
|
let i = t[n];
|
|
484
484
|
Object.defineProperty(r, e[n], {
|
|
485
485
|
get() {
|
|
486
|
-
return i.at(this[
|
|
486
|
+
return i.at(this[B]);
|
|
487
487
|
},
|
|
488
488
|
enumerable: !0
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
491
|
return (e) => new n(e);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
return (n) =>
|
|
493
|
+
function ot(e, t) {
|
|
494
|
+
return (n) => st(e, t, n);
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function st(e, t, n) {
|
|
497
497
|
let r = {};
|
|
498
498
|
for (let i = 0; i < e.length; ++i) r[e[i]] = t[i].at(n);
|
|
499
499
|
return r;
|
|
500
500
|
}
|
|
501
501
|
//#endregion
|
|
502
502
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/batch.js
|
|
503
|
-
function
|
|
504
|
-
return e instanceof
|
|
503
|
+
function ct(e) {
|
|
504
|
+
return e instanceof H;
|
|
505
505
|
}
|
|
506
|
-
var
|
|
506
|
+
var V = class {
|
|
507
507
|
static ArrayType = null;
|
|
508
508
|
constructor({ length: e, nullCount: t, type: n, validity: r, values: i, offsets: a, sizes: o, children: s }) {
|
|
509
509
|
this.length = e, this.nullCount = t, this.type = n, this.validity = r, this.values = i, this.offsets = a, this.sizes = o, this.children = s, (!t || !this.validity) && (this.at = (e) => this.value(e));
|
|
@@ -528,7 +528,7 @@ var U = class {
|
|
|
528
528
|
*[Symbol.iterator]() {
|
|
529
529
|
for (let e = 0; e < this.length; ++e) yield this.at(e);
|
|
530
530
|
}
|
|
531
|
-
},
|
|
531
|
+
}, H = class extends V {
|
|
532
532
|
constructor(e) {
|
|
533
533
|
super(e);
|
|
534
534
|
let { length: t, values: n } = this;
|
|
@@ -540,19 +540,19 @@ var U = class {
|
|
|
540
540
|
[Symbol.iterator]() {
|
|
541
541
|
return this.nullCount ? super[Symbol.iterator]() : this.values[Symbol.iterator]();
|
|
542
542
|
}
|
|
543
|
-
},
|
|
543
|
+
}, U = class extends V {
|
|
544
544
|
static ArrayType = x;
|
|
545
|
-
},
|
|
545
|
+
}, W = class extends V {
|
|
546
546
|
static ArrayType = Array;
|
|
547
|
-
},
|
|
547
|
+
}, lt = class extends W {
|
|
548
548
|
value(e) {
|
|
549
549
|
return null;
|
|
550
550
|
}
|
|
551
|
-
},
|
|
551
|
+
}, G = class extends U {
|
|
552
552
|
value(e) {
|
|
553
553
|
return O(this.values[e]);
|
|
554
554
|
}
|
|
555
|
-
},
|
|
555
|
+
}, ut = class extends U {
|
|
556
556
|
value(e) {
|
|
557
557
|
let t = this.values[e], n = (t & 31744) >> 10, r = (t & 1023) / 1024, i = (-1) ** ((t & 32768) >> 15);
|
|
558
558
|
switch (n) {
|
|
@@ -561,123 +561,123 @@ var U = class {
|
|
|
561
561
|
}
|
|
562
562
|
return i * 2 ** (n - 15) * (1 + r);
|
|
563
563
|
}
|
|
564
|
-
},
|
|
564
|
+
}, dt = class extends W {
|
|
565
565
|
value(e) {
|
|
566
566
|
return et(this.values, e);
|
|
567
567
|
}
|
|
568
|
-
},
|
|
568
|
+
}, ft = class extends V {
|
|
569
569
|
constructor(e) {
|
|
570
570
|
super(e);
|
|
571
571
|
let { bitWidth: t, scale: n } = this.type;
|
|
572
572
|
this.decimal = t === 128 ? Ze : Qe, this.scale = 10n ** BigInt(n);
|
|
573
573
|
}
|
|
574
|
-
},
|
|
574
|
+
}, pt = class extends ft {
|
|
575
575
|
static ArrayType = x;
|
|
576
576
|
value(e) {
|
|
577
577
|
return k(this.decimal(this.values, e), this.scale);
|
|
578
578
|
}
|
|
579
|
-
},
|
|
579
|
+
}, mt = class extends ft {
|
|
580
580
|
static ArrayType = Array;
|
|
581
581
|
value(e) {
|
|
582
582
|
return this.decimal(this.values, e);
|
|
583
583
|
}
|
|
584
|
-
},
|
|
584
|
+
}, ht = class extends W {
|
|
585
585
|
constructor(e) {
|
|
586
586
|
super(e), this.source = e;
|
|
587
587
|
}
|
|
588
588
|
value(e) {
|
|
589
589
|
return new Date(this.source.value(e));
|
|
590
590
|
}
|
|
591
|
-
},
|
|
591
|
+
}, gt = class extends U {
|
|
592
592
|
value(e) {
|
|
593
593
|
return 864e5 * this.values[e];
|
|
594
594
|
}
|
|
595
|
-
},
|
|
595
|
+
}, _t = G, vt = class extends G {
|
|
596
596
|
value(e) {
|
|
597
597
|
return super.value(e) * 1e3;
|
|
598
598
|
}
|
|
599
|
-
},
|
|
599
|
+
}, yt = G, bt = class extends G {
|
|
600
600
|
value(e) {
|
|
601
601
|
return k(this.values[e], 1000n);
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, xt = class extends G {
|
|
604
604
|
value(e) {
|
|
605
605
|
return k(this.values[e], 1000000n);
|
|
606
606
|
}
|
|
607
|
-
},
|
|
607
|
+
}, St = class extends W {
|
|
608
608
|
value(e) {
|
|
609
609
|
return this.values.subarray(e << 1, e + 1 << 1);
|
|
610
610
|
}
|
|
611
|
-
},
|
|
611
|
+
}, Ct = class extends W {
|
|
612
612
|
value(e) {
|
|
613
613
|
let t = this.values, n = e << 4;
|
|
614
|
-
return Float64Array.of(
|
|
614
|
+
return Float64Array.of(I(t, n), I(t, n + 4), L(t, n + 8));
|
|
615
615
|
}
|
|
616
|
-
},
|
|
616
|
+
}, wt = ({ values: e, offsets: t }, n) => e.subarray(t[n], t[n + 1]), Tt = ({ values: e, offsets: t }, n) => e.subarray(O(t[n]), O(t[n + 1])), Et = class extends W {
|
|
617
617
|
value(e) {
|
|
618
|
-
return
|
|
618
|
+
return wt(this, e);
|
|
619
619
|
}
|
|
620
|
-
},
|
|
620
|
+
}, Dt = class extends W {
|
|
621
621
|
value(e) {
|
|
622
|
-
return
|
|
622
|
+
return Tt(this, e);
|
|
623
623
|
}
|
|
624
|
-
},
|
|
624
|
+
}, Ot = class extends W {
|
|
625
625
|
value(e) {
|
|
626
|
-
return j(
|
|
626
|
+
return j(wt(this, e));
|
|
627
627
|
}
|
|
628
|
-
},
|
|
628
|
+
}, kt = class extends W {
|
|
629
629
|
value(e) {
|
|
630
|
-
return j(
|
|
630
|
+
return j(Tt(this, e));
|
|
631
631
|
}
|
|
632
|
-
},
|
|
632
|
+
}, At = class extends W {
|
|
633
633
|
value(e) {
|
|
634
634
|
let t = this.offsets;
|
|
635
635
|
return this.children[0].slice(t[e], t[e + 1]);
|
|
636
636
|
}
|
|
637
|
-
},
|
|
637
|
+
}, jt = class extends W {
|
|
638
638
|
value(e) {
|
|
639
639
|
let t = this.offsets;
|
|
640
640
|
return this.children[0].slice(O(t[e]), O(t[e + 1]));
|
|
641
641
|
}
|
|
642
|
-
},
|
|
642
|
+
}, Mt = class extends W {
|
|
643
643
|
value(e) {
|
|
644
644
|
let t = this.offsets[e], n = t + this.sizes[e];
|
|
645
645
|
return this.children[0].slice(t, n);
|
|
646
646
|
}
|
|
647
|
-
},
|
|
647
|
+
}, Nt = class extends W {
|
|
648
648
|
value(e) {
|
|
649
649
|
let t = this.offsets[e], n = t + this.sizes[e];
|
|
650
650
|
return this.children[0].slice(O(t), O(n));
|
|
651
651
|
}
|
|
652
|
-
},
|
|
652
|
+
}, Pt = class extends W {
|
|
653
653
|
constructor(e) {
|
|
654
654
|
super(e), this.stride = this.type.stride;
|
|
655
655
|
}
|
|
656
|
-
},
|
|
656
|
+
}, Ft = class extends Pt {
|
|
657
657
|
value(e) {
|
|
658
658
|
let { stride: t, values: n } = this;
|
|
659
659
|
return n.subarray(e * t, (e + 1) * t);
|
|
660
660
|
}
|
|
661
|
-
},
|
|
661
|
+
}, It = class extends Pt {
|
|
662
662
|
value(e) {
|
|
663
663
|
let { children: t, stride: n } = this;
|
|
664
664
|
return t[0].slice(e * n, (e + 1) * n);
|
|
665
665
|
}
|
|
666
666
|
};
|
|
667
|
-
function
|
|
667
|
+
function Lt({ children: e, offsets: t }, n) {
|
|
668
668
|
let [r, i] = e[0].children, a = t[n], o = t[n + 1], s = [];
|
|
669
669
|
for (let e = a; e < o; ++e) s.push([r.at(e), i.at(e)]);
|
|
670
670
|
return s;
|
|
671
671
|
}
|
|
672
|
-
var
|
|
672
|
+
var Rt = class extends W {
|
|
673
673
|
value(e) {
|
|
674
|
-
return
|
|
674
|
+
return Lt(this, e);
|
|
675
675
|
}
|
|
676
|
-
},
|
|
676
|
+
}, zt = class extends W {
|
|
677
677
|
value(e) {
|
|
678
|
-
return new Map(
|
|
678
|
+
return new Map(Lt(this, e));
|
|
679
679
|
}
|
|
680
|
-
},
|
|
680
|
+
}, Bt = class extends W {
|
|
681
681
|
constructor({ typeIds: e, ...t }) {
|
|
682
682
|
super(t), this.typeIds = e, this.typeMap = this.type.typeMap;
|
|
683
683
|
}
|
|
@@ -685,27 +685,27 @@ var It = class extends K {
|
|
|
685
685
|
let { typeIds: n, children: r, typeMap: i } = this;
|
|
686
686
|
return r[i[n[e]]].at(t);
|
|
687
687
|
}
|
|
688
|
-
},
|
|
688
|
+
}, Vt = class extends Bt {
|
|
689
689
|
value(e) {
|
|
690
690
|
return super.value(e, this.offsets[e]);
|
|
691
691
|
}
|
|
692
|
-
},
|
|
693
|
-
constructor(e, t =
|
|
692
|
+
}, Ht = class extends W {
|
|
693
|
+
constructor(e, t = ot) {
|
|
694
694
|
super(e), this.names = this.type.children.map((e) => e.name), this.factory = t(this.names, this.children);
|
|
695
695
|
}
|
|
696
696
|
value(e) {
|
|
697
697
|
return this.factory(e);
|
|
698
698
|
}
|
|
699
|
-
},
|
|
699
|
+
}, Ut = class extends Ht {
|
|
700
700
|
constructor(e) {
|
|
701
|
-
super(e,
|
|
701
|
+
super(e, at);
|
|
702
702
|
}
|
|
703
|
-
},
|
|
703
|
+
}, Wt = class extends W {
|
|
704
704
|
value(e) {
|
|
705
705
|
let [{ values: t }, n] = this.children;
|
|
706
706
|
return n.at(S(t, e));
|
|
707
707
|
}
|
|
708
|
-
},
|
|
708
|
+
}, Gt = class extends W {
|
|
709
709
|
setDictionary(e) {
|
|
710
710
|
return this.dictionary = e, this.cache = e.cache(), this;
|
|
711
711
|
}
|
|
@@ -715,36 +715,36 @@ var It = class extends K {
|
|
|
715
715
|
key(e) {
|
|
716
716
|
return this.values[e];
|
|
717
717
|
}
|
|
718
|
-
},
|
|
718
|
+
}, Kt = class extends W {
|
|
719
719
|
constructor({ data: e, ...t }) {
|
|
720
720
|
super(t), this.data = e;
|
|
721
721
|
}
|
|
722
722
|
view(e) {
|
|
723
|
-
let { values: t, data: n } = this, r = e << 4, i = r + 4, a = t, o =
|
|
724
|
-
return o > 12 && (i =
|
|
723
|
+
let { values: t, data: n } = this, r = e << 4, i = r + 4, a = t, o = I(a, r);
|
|
724
|
+
return o > 12 && (i = I(a, r + 12), a = n[I(a, r + 8)]), a.subarray(i, i + o);
|
|
725
725
|
}
|
|
726
|
-
},
|
|
726
|
+
}, qt = class extends Kt {
|
|
727
727
|
value(e) {
|
|
728
728
|
return this.view(e);
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, Jt = class extends Kt {
|
|
731
731
|
value(e) {
|
|
732
732
|
return j(this.view(e));
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/column.js
|
|
737
|
-
function
|
|
737
|
+
function Yt(e) {
|
|
738
738
|
let t = [];
|
|
739
739
|
return {
|
|
740
740
|
add(e) {
|
|
741
741
|
return t.push(e), this;
|
|
742
742
|
},
|
|
743
743
|
clear: () => t = [],
|
|
744
|
-
done: () => new
|
|
744
|
+
done: () => new Xt(t, e)
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
var
|
|
747
|
+
var Xt = class {
|
|
748
748
|
constructor(e, t = e[0]?.type) {
|
|
749
749
|
this.type = t, this.length = e.reduce((e, t) => e + t.length, 0), this.nullCount = e.reduce((e, t) => e + t.nullCount, 0), this.data = e;
|
|
750
750
|
let n = e.length, r = new Int32Array(n + 1);
|
|
@@ -759,7 +759,7 @@ var Jt = class {
|
|
|
759
759
|
}
|
|
760
760
|
[Symbol.iterator]() {
|
|
761
761
|
let e = this.data;
|
|
762
|
-
return e.length === 1 ? e[0][Symbol.iterator]() :
|
|
762
|
+
return e.length === 1 ? e[0][Symbol.iterator]() : Zt(e);
|
|
763
763
|
}
|
|
764
764
|
at(e) {
|
|
765
765
|
let { data: t, offsets: n } = this, r = S(n, e) - 1;
|
|
@@ -769,29 +769,29 @@ var Jt = class {
|
|
|
769
769
|
return this.at(e);
|
|
770
770
|
}
|
|
771
771
|
toArray() {
|
|
772
|
-
let { length: e, nullCount: t, data: n } = this, r = !t &&
|
|
772
|
+
let { length: e, nullCount: t, data: n } = this, r = !t && ct(n[0]), i = n.length;
|
|
773
773
|
if (r && i === 1) return n[0].values;
|
|
774
774
|
let a = new (!i || t > 0 ? Array : n[0].constructor.ArrayType ?? n[0].values.constructor)(e);
|
|
775
|
-
return r ?
|
|
775
|
+
return r ? Qt(a, n) : $t(a, n);
|
|
776
776
|
}
|
|
777
777
|
cache() {
|
|
778
778
|
return this._cache ??= this.toArray();
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
|
-
function*
|
|
781
|
+
function* Zt(e) {
|
|
782
782
|
for (let t = 0; t < e.length; ++t) {
|
|
783
783
|
let n = e[t][Symbol.iterator]();
|
|
784
784
|
for (let e = n.next(); !e.done; e = n.next()) yield e.value;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Qt(e, t) {
|
|
788
788
|
for (let n = 0, r = 0; n < t.length; ++n) {
|
|
789
789
|
let { values: i } = t[n];
|
|
790
790
|
e.set(i, r), r += i.length;
|
|
791
791
|
}
|
|
792
792
|
return e;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function $t(e, t) {
|
|
795
795
|
let n = -1;
|
|
796
796
|
for (let r = 0; r < t.length; ++r) {
|
|
797
797
|
let i = t[r];
|
|
@@ -801,10 +801,10 @@ function Zt(e, t) {
|
|
|
801
801
|
}
|
|
802
802
|
//#endregion
|
|
803
803
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/table.js
|
|
804
|
-
var
|
|
804
|
+
var en = class e {
|
|
805
805
|
constructor(e, t, n = !1) {
|
|
806
806
|
let r = e.fields.map((e) => e.name);
|
|
807
|
-
this.schema = e, this.names = r, this.children = t, this.factory = n ?
|
|
807
|
+
this.schema = e, this.names = r, this.children = t, this.factory = n ? at : ot;
|
|
808
808
|
let i = [];
|
|
809
809
|
this.getFactory = (e) => i[e] ?? (i[e] = this.factory(r, t.map((t) => t.data[e])));
|
|
810
810
|
}
|
|
@@ -828,8 +828,8 @@ var Qt = class e {
|
|
|
828
828
|
let { children: r, factory: i, schema: a } = this, { fields: o } = a;
|
|
829
829
|
return new e({
|
|
830
830
|
...a,
|
|
831
|
-
fields: t.map((e, t) =>
|
|
832
|
-
}, t.map((e) => r[e]), i ===
|
|
831
|
+
fields: t.map((e, t) => tn(o[e], n[t]))
|
|
832
|
+
}, t.map((e) => r[e]), i === at);
|
|
833
833
|
}
|
|
834
834
|
select(e, t) {
|
|
835
835
|
let n = this.names, r = e.map((e) => n.indexOf(e));
|
|
@@ -864,7 +864,7 @@ var Qt = class e {
|
|
|
864
864
|
return this.at(e);
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
|
-
function
|
|
867
|
+
function tn(e, t) {
|
|
868
868
|
return t != null && t !== e.name ? {
|
|
869
869
|
...e,
|
|
870
870
|
name: t
|
|
@@ -872,40 +872,40 @@ function $t(e, t) {
|
|
|
872
872
|
}
|
|
873
873
|
//#endregion
|
|
874
874
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/batch-type.js
|
|
875
|
-
function
|
|
875
|
+
function nn(e, t = {}) {
|
|
876
876
|
let { typeId: n, bitWidth: r, precision: i, unit: a } = e, { useBigInt: o, useDate: s, useDecimalBigInt: c, useMap: l, useProxy: u } = t;
|
|
877
877
|
switch (n) {
|
|
878
|
-
case m.Null: return
|
|
879
|
-
case m.Bool: return
|
|
878
|
+
case m.Null: return lt;
|
|
879
|
+
case m.Bool: return dt;
|
|
880
880
|
case m.Int:
|
|
881
881
|
case m.Time:
|
|
882
|
-
case m.Duration: return o || r < 64 ?
|
|
883
|
-
case m.Float: return i ?
|
|
884
|
-
case m.Date: return
|
|
885
|
-
case m.Timestamp: return
|
|
886
|
-
case m.Decimal: return c ?
|
|
887
|
-
case m.Interval: return a === _.DAY_TIME ?
|
|
888
|
-
case m.FixedSizeBinary: return
|
|
889
|
-
case m.Utf8: return
|
|
890
|
-
case m.LargeUtf8: return
|
|
891
|
-
case m.Binary: return
|
|
892
|
-
case m.LargeBinary: return
|
|
893
|
-
case m.BinaryView: return
|
|
894
|
-
case m.Utf8View: return
|
|
895
|
-
case m.List: return
|
|
896
|
-
case m.LargeList: return
|
|
897
|
-
case m.Map: return l ?
|
|
898
|
-
case m.ListView: return
|
|
899
|
-
case m.LargeListView: return
|
|
900
|
-
case m.FixedSizeList: return
|
|
901
|
-
case m.Struct: return u ?
|
|
902
|
-
case m.RunEndEncoded: return
|
|
903
|
-
case m.Dictionary: return
|
|
904
|
-
case m.Union: return e.mode ?
|
|
882
|
+
case m.Duration: return o || r < 64 ? H : G;
|
|
883
|
+
case m.Float: return i ? H : ut;
|
|
884
|
+
case m.Date: return rn(a === h.DAY ? gt : _t, s && ht);
|
|
885
|
+
case m.Timestamp: return rn(a === g.SECOND ? vt : a === g.MILLISECOND ? yt : a === g.MICROSECOND ? bt : xt, s && ht);
|
|
886
|
+
case m.Decimal: return c ? mt : pt;
|
|
887
|
+
case m.Interval: return a === _.DAY_TIME ? St : a === _.YEAR_MONTH ? H : Ct;
|
|
888
|
+
case m.FixedSizeBinary: return Ft;
|
|
889
|
+
case m.Utf8: return Ot;
|
|
890
|
+
case m.LargeUtf8: return kt;
|
|
891
|
+
case m.Binary: return Et;
|
|
892
|
+
case m.LargeBinary: return Dt;
|
|
893
|
+
case m.BinaryView: return qt;
|
|
894
|
+
case m.Utf8View: return Jt;
|
|
895
|
+
case m.List: return At;
|
|
896
|
+
case m.LargeList: return jt;
|
|
897
|
+
case m.Map: return l ? zt : Rt;
|
|
898
|
+
case m.ListView: return Mt;
|
|
899
|
+
case m.LargeListView: return Nt;
|
|
900
|
+
case m.FixedSizeList: return It;
|
|
901
|
+
case m.Struct: return u ? Ut : Ht;
|
|
902
|
+
case m.RunEndEncoded: return Wt;
|
|
903
|
+
case m.Dictionary: return Gt;
|
|
904
|
+
case m.Union: return e.mode ? Vt : Bt;
|
|
905
905
|
}
|
|
906
906
|
throw Error(T(n));
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function rn(e, t) {
|
|
909
909
|
return t ? class extends t {
|
|
910
910
|
constructor(t) {
|
|
911
911
|
super(new e(t));
|
|
@@ -914,48 +914,48 @@ function tn(e, t) {
|
|
|
914
914
|
}
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/block.js
|
|
917
|
-
function
|
|
917
|
+
function an(e, t) {
|
|
918
918
|
return {
|
|
919
|
-
offset:
|
|
920
|
-
metadataLength:
|
|
921
|
-
bodyLength:
|
|
919
|
+
offset: L(e, t),
|
|
920
|
+
metadataLength: I(e, t + 8),
|
|
921
|
+
bodyLength: L(e, t + 16)
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
|
-
function
|
|
925
|
-
return
|
|
924
|
+
function on(e, t) {
|
|
925
|
+
return z(e, t, 24, an);
|
|
926
926
|
}
|
|
927
927
|
//#endregion
|
|
928
928
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/record-batch.js
|
|
929
|
-
function
|
|
929
|
+
function sn(e, t, n) {
|
|
930
930
|
let r = M(e, t);
|
|
931
931
|
if (r(10, N, 0)) throw Error("Record batch compression not implemented");
|
|
932
932
|
let i = n < f.V4 ? 8 : 0;
|
|
933
933
|
return {
|
|
934
|
-
length: r(4,
|
|
935
|
-
nodes:
|
|
936
|
-
length:
|
|
937
|
-
nullCount:
|
|
934
|
+
length: r(4, L, 0),
|
|
935
|
+
nodes: z(e, r(6, N), 16, (e, t) => ({
|
|
936
|
+
length: L(e, t),
|
|
937
|
+
nullCount: L(e, t + 8)
|
|
938
938
|
})),
|
|
939
|
-
regions:
|
|
940
|
-
offset:
|
|
941
|
-
length:
|
|
939
|
+
regions: z(e, r(8, N), 16 + i, (e, t) => ({
|
|
940
|
+
offset: L(e, t + i),
|
|
941
|
+
length: L(e, t + i + 8)
|
|
942
942
|
})),
|
|
943
|
-
variadic:
|
|
943
|
+
variadic: z(e, r(12, N), 8, L)
|
|
944
944
|
};
|
|
945
945
|
}
|
|
946
946
|
//#endregion
|
|
947
947
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/dictionary-batch.js
|
|
948
|
-
function
|
|
948
|
+
function cn(e, t, n) {
|
|
949
949
|
let r = M(e, t);
|
|
950
950
|
return {
|
|
951
|
-
id: r(4,
|
|
952
|
-
data: r(6, (e, t) =>
|
|
951
|
+
id: r(4, L, 0),
|
|
952
|
+
data: r(6, (e, t) => sn(e, t, n)),
|
|
953
953
|
isDelta: r(8, P, !1)
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
//#endregion
|
|
957
957
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/data-type.js
|
|
958
|
-
function
|
|
958
|
+
function ln(e, t, n, r) {
|
|
959
959
|
w(n, m, T);
|
|
960
960
|
let i = M(e, t);
|
|
961
961
|
switch (n) {
|
|
@@ -969,80 +969,80 @@ function sn(e, t, n, r) {
|
|
|
969
969
|
case m.LargeListView: return Xe(r[0]);
|
|
970
970
|
case m.Struct: return ze(r);
|
|
971
971
|
case m.RunEndEncoded: return Je(r[0], r[1]);
|
|
972
|
-
case m.Int: return Oe(i(4,
|
|
973
|
-
case m.Float: return Ae(i(4,
|
|
974
|
-
case m.Decimal: return Ne(i(4,
|
|
975
|
-
case m.Date: return Pe(i(4,
|
|
976
|
-
case m.Time: return Fe(i(4,
|
|
977
|
-
case m.Timestamp: return Ie(i(4,
|
|
978
|
-
case m.Interval: return Le(i(4,
|
|
979
|
-
case m.Duration: return We(i(4,
|
|
980
|
-
case m.FixedSizeBinary: return Ve(i(4,
|
|
981
|
-
case m.FixedSizeList: return He(r[0], i(4,
|
|
972
|
+
case m.Int: return Oe(i(4, I, 0), i(6, P, !1));
|
|
973
|
+
case m.Float: return Ae(i(4, F, me.HALF));
|
|
974
|
+
case m.Decimal: return Ne(i(4, I, 0), i(6, I, 0), i(8, I, 128));
|
|
975
|
+
case m.Date: return Pe(i(4, F, h.MILLISECOND));
|
|
976
|
+
case m.Time: return Fe(i(4, F, g.MILLISECOND), i(6, I, 32));
|
|
977
|
+
case m.Timestamp: return Ie(i(4, F, g.SECOND), i(6, R));
|
|
978
|
+
case m.Interval: return Le(i(4, F, _.YEAR_MONTH));
|
|
979
|
+
case m.Duration: return We(i(4, F, g.MILLISECOND));
|
|
980
|
+
case m.FixedSizeBinary: return Ve(i(4, I, 0));
|
|
981
|
+
case m.FixedSizeList: return He(r[0], i(4, I, 0));
|
|
982
982
|
case m.Map: return Ue(i(4, P, !1), r[0]);
|
|
983
|
-
case m.Union: return Be(i(4,
|
|
983
|
+
case m.Union: return Be(i(4, F, v.Sparse), r, z(e, i(6, N), 4, I));
|
|
984
984
|
}
|
|
985
985
|
return { typeId: n };
|
|
986
986
|
}
|
|
987
987
|
//#endregion
|
|
988
988
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/metadata.js
|
|
989
|
-
function
|
|
990
|
-
let n =
|
|
989
|
+
function K(e, t) {
|
|
990
|
+
let n = z(e, t, 4, (e, t) => {
|
|
991
991
|
let n = M(e, t);
|
|
992
|
-
return [n(4,
|
|
992
|
+
return [n(4, R), n(6, R)];
|
|
993
993
|
});
|
|
994
994
|
return n.length ? new Map(n) : null;
|
|
995
995
|
}
|
|
996
996
|
//#endregion
|
|
997
997
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/schema.js
|
|
998
|
-
function
|
|
998
|
+
function un(e, t, n) {
|
|
999
999
|
let r = M(e, t);
|
|
1000
1000
|
return {
|
|
1001
1001
|
version: n,
|
|
1002
|
-
endianness: r(4,
|
|
1003
|
-
fields: r(6,
|
|
1004
|
-
metadata: r(8,
|
|
1002
|
+
endianness: r(4, F, 0),
|
|
1003
|
+
fields: r(6, dn, []),
|
|
1004
|
+
metadata: r(8, K)
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return
|
|
1007
|
+
function dn(e, t) {
|
|
1008
|
+
return z(e, t, 4, fn);
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1011
|
-
let n = M(e, t), r = n(8,
|
|
1010
|
+
function fn(e, t) {
|
|
1011
|
+
let n = M(e, t), r = n(8, nt, m.NONE), i = n(10, N, 0), a = n(12, mn), o = ln(e, i, r, n(14, (e, t) => pn(e, t)));
|
|
1012
1012
|
return a && (a.dictionary = o, o = a), {
|
|
1013
|
-
name: n(4,
|
|
1013
|
+
name: n(4, R),
|
|
1014
1014
|
type: o,
|
|
1015
1015
|
nullable: n(6, P, !1),
|
|
1016
|
-
metadata: n(16,
|
|
1016
|
+
metadata: n(16, K)
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
let n =
|
|
1019
|
+
function pn(e, t) {
|
|
1020
|
+
let n = z(e, t, 4, fn);
|
|
1021
1021
|
return n.length ? n : null;
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function mn(e, t) {
|
|
1024
1024
|
if (!t) return null;
|
|
1025
1025
|
let n = M(e, t);
|
|
1026
|
-
return De(null, n(6,
|
|
1026
|
+
return De(null, n(6, hn, ke()), n(8, P, !1), n(4, L, 0));
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1028
|
+
function hn(e, t) {
|
|
1029
|
+
return ln(e, t, m.Int);
|
|
1030
1030
|
}
|
|
1031
1031
|
//#endregion
|
|
1032
1032
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/message.js
|
|
1033
|
-
var
|
|
1034
|
-
function
|
|
1035
|
-
let n =
|
|
1036
|
-
if (t += 4, n === -1 && (n =
|
|
1033
|
+
var gn = (e, t) => `Expected to read ${e} metadata bytes, but only read ${t}.`, _n = (e, t) => `Expected to read ${e} bytes for message body, but only read ${t}.`, vn = (e) => `Unsupported message type: ${e} (${Ce(p, e)})`;
|
|
1034
|
+
function q(e, t) {
|
|
1035
|
+
let n = I(e, t) || 0;
|
|
1036
|
+
if (t += 4, n === -1 && (n = I(e, t) || 0, t += 4), n === 0) return null;
|
|
1037
1037
|
let r = e.subarray(t, t += n);
|
|
1038
|
-
if (r.byteLength < n) throw Error(
|
|
1039
|
-
let i = M(r, 0), a = i(4,
|
|
1038
|
+
if (r.byteLength < n) throw Error(gn(n, r.byteLength));
|
|
1039
|
+
let i = M(r, 0), a = i(4, F, f.V1), o = i(6, nt, p.NONE), s = i(8, N, 0), c = i(10, L, 0), l;
|
|
1040
1040
|
if (s) {
|
|
1041
|
-
let n = o === p.Schema ?
|
|
1042
|
-
if (!n) throw Error(
|
|
1041
|
+
let n = o === p.Schema ? un : o === p.DictionaryBatch ? cn : o === p.RecordBatch ? sn : null;
|
|
1042
|
+
if (!n) throw Error(vn(o));
|
|
1043
1043
|
if (l = n(r, s, a), c > 0) {
|
|
1044
1044
|
let n = e.subarray(t, t += c);
|
|
1045
|
-
if (n.byteLength < c) throw Error(
|
|
1045
|
+
if (n.byteLength < c) throw Error(_n(c, n.byteLength));
|
|
1046
1046
|
l.body = n;
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1055,22 +1055,22 @@ function Y(e, t) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
//#endregion
|
|
1057
1057
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/decode-ipc.js
|
|
1058
|
-
function
|
|
1058
|
+
function yn(e) {
|
|
1059
1059
|
let t = e instanceof ArrayBuffer ? new Uint8Array(e) : e;
|
|
1060
|
-
return t instanceof Uint8Array &&
|
|
1060
|
+
return t instanceof Uint8Array && bn(t) ? Sn(t) : xn(t);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function bn(e) {
|
|
1063
1063
|
if (!e || e.length < 4) return !1;
|
|
1064
1064
|
for (let t = 0; t < 6; ++t) if (pe[t] !== e[t]) return !1;
|
|
1065
1065
|
return !0;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function xn(e) {
|
|
1068
1068
|
let t = [e].flat(), n, r = [], i = [];
|
|
1069
1069
|
for (let e of t) {
|
|
1070
1070
|
if (!(e instanceof Uint8Array)) throw Error("IPC data batch was not a Uint8Array.");
|
|
1071
1071
|
let t = 0;
|
|
1072
1072
|
for (;;) {
|
|
1073
|
-
let a =
|
|
1073
|
+
let a = q(e, t);
|
|
1074
1074
|
if (a === null) break;
|
|
1075
1075
|
if (t = a.index, a.content) switch (a.type) {
|
|
1076
1076
|
case p.Schema:
|
|
@@ -1090,29 +1090,29 @@ function yn(e) {
|
|
|
1090
1090
|
metadata: null
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1094
|
-
let t = e.byteLength - (pe.length + 4), n = M(e, t -
|
|
1093
|
+
function Sn(e) {
|
|
1094
|
+
let t = e.byteLength - (pe.length + 4), n = M(e, t - I(e, t)), r = n(4, F, f.V1), i = n(8, on, []), a = n(10, on, []);
|
|
1095
1095
|
return {
|
|
1096
|
-
schema: n(6, (e, t) =>
|
|
1097
|
-
dictionaries: i.map(({ offset: t }) =>
|
|
1098
|
-
records: a.map(({ offset: t }) =>
|
|
1099
|
-
metadata: n(12,
|
|
1096
|
+
schema: n(6, (e, t) => un(e, t, r)),
|
|
1097
|
+
dictionaries: i.map(({ offset: t }) => q(e, t).content),
|
|
1098
|
+
records: a.map(({ offset: t }) => q(e, t).content),
|
|
1099
|
+
metadata: n(12, K)
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
1102
|
//#endregion
|
|
1103
1103
|
//#region ../node_modules/.pnpm/@uwdata+flechette@1.1.2/node_modules/@uwdata/flechette/src/decode/table-from-ipc.js
|
|
1104
|
-
function
|
|
1105
|
-
return
|
|
1104
|
+
function J(e, t) {
|
|
1105
|
+
return Cn(yn(e), t);
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1108
|
-
let { schema: n = { fields: [] }, dictionaries: r, records: i } = e, { version: a, fields: o } = n, s = /* @__PURE__ */ new Map(), c =
|
|
1109
|
-
|
|
1107
|
+
function Cn(e, t = {}) {
|
|
1108
|
+
let { schema: n = { fields: [] }, dictionaries: r, records: i } = e, { version: a, fields: o } = n, s = /* @__PURE__ */ new Map(), c = Tn(t, a, s), l = /* @__PURE__ */ new Map();
|
|
1109
|
+
wn(n, (e) => {
|
|
1110
1110
|
let t = e.type;
|
|
1111
1111
|
t.typeId === m.Dictionary && l.set(t.id, t.dictionary);
|
|
1112
1112
|
});
|
|
1113
1113
|
let u = /* @__PURE__ */ new Map();
|
|
1114
1114
|
for (let e of r) {
|
|
1115
|
-
let { id: t, data: n, isDelta: r, body: i } = e, a = l.get(t), o =
|
|
1115
|
+
let { id: t, data: n, isDelta: r, body: i } = e, a = l.get(t), o = Y(a, c({
|
|
1116
1116
|
...n,
|
|
1117
1117
|
body: i
|
|
1118
1118
|
}));
|
|
@@ -1121,23 +1121,23 @@ function xn(e, t = {}) {
|
|
|
1121
1121
|
r || e.clear(), e.add(o);
|
|
1122
1122
|
} else {
|
|
1123
1123
|
if (r) throw Error("Delta update can not be first dictionary batch.");
|
|
1124
|
-
u.set(t,
|
|
1124
|
+
u.set(t, Yt(a).add(o));
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
1127
|
u.forEach((e, t) => s.set(t, e.done()));
|
|
1128
|
-
let d = o.map((e) =>
|
|
1128
|
+
let d = o.map((e) => Yt(e.type));
|
|
1129
1129
|
for (let e of i) {
|
|
1130
1130
|
let t = c(e);
|
|
1131
|
-
o.forEach((e, n) => d[n].add(
|
|
1131
|
+
o.forEach((e, n) => d[n].add(Y(e.type, t)));
|
|
1132
1132
|
}
|
|
1133
|
-
return new
|
|
1133
|
+
return new en(n, d.map((e) => e.done()), t.useProxy);
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function wn(e, t) {
|
|
1136
1136
|
e.fields.forEach(function e(n) {
|
|
1137
1137
|
t(n), n.type.dictionary?.children?.forEach(e), n.type.children?.forEach(e);
|
|
1138
1138
|
});
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Tn(e, t, n) {
|
|
1141
1141
|
let r = {
|
|
1142
1142
|
version: t,
|
|
1143
1143
|
options: e,
|
|
@@ -1155,13 +1155,13 @@ function Cn(e, t, n) {
|
|
|
1155
1155
|
},
|
|
1156
1156
|
variadic: () => a[++l],
|
|
1157
1157
|
visit(e) {
|
|
1158
|
-
return e.map((e) =>
|
|
1158
|
+
return e.map((e) => Y(e.type, this));
|
|
1159
1159
|
}
|
|
1160
1160
|
};
|
|
1161
1161
|
};
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1164
|
-
let { typeId: n } = e, { length: r, options: i, node: a, buffer: o, variadic: s, version: c } = t, l =
|
|
1163
|
+
function Y(e, t) {
|
|
1164
|
+
let { typeId: n } = e, { length: r, options: i, node: a, buffer: o, variadic: s, version: c } = t, l = nn(e, i);
|
|
1165
1165
|
if (n === m.Null) return new l({
|
|
1166
1166
|
length: r,
|
|
1167
1167
|
nullCount: r,
|
|
@@ -1248,7 +1248,7 @@ function Z(e, t) {
|
|
|
1248
1248
|
new Uint16Array(new Uint8Array([1, 0]).buffer)[0];
|
|
1249
1249
|
//#endregion
|
|
1250
1250
|
//#region src/utils/batch-requests.ts
|
|
1251
|
-
function
|
|
1251
|
+
function X(e, t) {
|
|
1252
1252
|
let n = /* @__PURE__ */ new Map();
|
|
1253
1253
|
return (...r) => {
|
|
1254
1254
|
let i = t(...r);
|
|
@@ -1261,37 +1261,42 @@ function Q(e, t) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
//#endregion
|
|
1263
1263
|
//#region src/plugins/impl/vega/vega-loader.ts
|
|
1264
|
-
function
|
|
1264
|
+
function Z(e, t) {
|
|
1265
1265
|
return o(e, t);
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function En() {
|
|
1268
1268
|
return r();
|
|
1269
1269
|
}
|
|
1270
|
-
var
|
|
1270
|
+
var Q = i;
|
|
1271
1271
|
//#endregion
|
|
1272
1272
|
//#region src/plugins/impl/vega/batched.ts
|
|
1273
|
-
function
|
|
1274
|
-
let e =
|
|
1273
|
+
function Dn() {
|
|
1274
|
+
let e = On(En()), t = (e) => JSON.stringify(e);
|
|
1275
1275
|
return {
|
|
1276
|
-
load:
|
|
1277
|
-
sanitize:
|
|
1278
|
-
http:
|
|
1279
|
-
file:
|
|
1276
|
+
load: X(e.load.bind(e), t),
|
|
1277
|
+
sanitize: X(e.sanitize.bind(e), t),
|
|
1278
|
+
http: X(e.http.bind(e), t),
|
|
1279
|
+
file: X(e.file.bind(e), t)
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function On(e) {
|
|
1283
1283
|
return {
|
|
1284
1284
|
...e,
|
|
1285
1285
|
async load(t, n) {
|
|
1286
|
-
return t.endsWith(".arrow") ?
|
|
1286
|
+
return t.endsWith(".arrow") ? J(await kn(t), { useProxy: !1 }).toArray() : e.load(t, n);
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
1289
|
}
|
|
1290
|
-
var
|
|
1290
|
+
var kn = X((e) => fetch(e).then((e) => e.arrayBuffer()), (e) => e), An = Q.integer, $ = Q.number, jn = Q.date, Mn = Q.boolean, Nn = () => {
|
|
1291
|
+
let e = (e) => e === "inf" || e === "+inf" ? Infinity : e === "-inf" ? -Infinity : $(e);
|
|
1292
|
+
return Q.integer = e, Q.number = e, () => {
|
|
1293
|
+
Q.integer = An, Q.number = $;
|
|
1294
|
+
};
|
|
1295
|
+
}, Pn = () => (Q.integer = (e) => {
|
|
1291
1296
|
if (e === "") return "";
|
|
1292
1297
|
if (e === "-inf" || e === "inf") return e;
|
|
1293
1298
|
function t(e) {
|
|
1294
|
-
let t =
|
|
1299
|
+
let t = An(e);
|
|
1295
1300
|
return Number.isNaN(t) ? e : t;
|
|
1296
1301
|
}
|
|
1297
1302
|
let n = Number.parseInt(e, 10);
|
|
@@ -1302,13 +1307,13 @@ var On = Q((e) => fetch(e).then((e) => e.arrayBuffer()), (e) => e), kn = $.integ
|
|
|
1302
1307
|
} catch {
|
|
1303
1308
|
return t(e);
|
|
1304
1309
|
}
|
|
1305
|
-
},
|
|
1310
|
+
}, Q.number = (e) => {
|
|
1306
1311
|
if (e === "-inf" || e === "inf") return e;
|
|
1307
|
-
let t =
|
|
1312
|
+
let t = $(e);
|
|
1308
1313
|
return Number.isNaN(t) ? e : t;
|
|
1309
1314
|
}, () => {
|
|
1310
|
-
|
|
1311
|
-
}),
|
|
1315
|
+
Q.integer = An, Q.number = $;
|
|
1316
|
+
}), Fn = () => (Q.date = (t) => {
|
|
1312
1317
|
if (t === "") return "";
|
|
1313
1318
|
if (t == null) return null;
|
|
1314
1319
|
if (!/^\d{4}-\d{2}-\d{2}(T[\d.:]+(Z|[+-]\d{2}:?\d{2})?)?$/.test(t)) return t;
|
|
@@ -1319,22 +1324,22 @@ var On = Q((e) => fetch(e).then((e) => e.arrayBuffer()), (e) => e), kn = $.integ
|
|
|
1319
1324
|
return e.warn(`Failed to parse date: ${t}`), t;
|
|
1320
1325
|
}
|
|
1321
1326
|
}, () => {
|
|
1322
|
-
|
|
1327
|
+
Q.date = jn;
|
|
1323
1328
|
});
|
|
1324
|
-
|
|
1325
|
-
var
|
|
1326
|
-
async function
|
|
1329
|
+
Q.boolean = (e) => e === "True" || e !== "False" && Mn(e);
|
|
1330
|
+
var In = Dn();
|
|
1331
|
+
async function Ln(e, n, r = {}) {
|
|
1327
1332
|
let { handleBigIntAndNumberLike: i = !1, replacePeriod: a = !1 } = r;
|
|
1328
|
-
if (e.endsWith(".arrow") || n?.type === "arrow") return
|
|
1333
|
+
if (e.endsWith(".arrow") || n?.type === "arrow") return J(await kn(e), {
|
|
1329
1334
|
useProxy: !0,
|
|
1330
1335
|
useDate: !0,
|
|
1331
1336
|
useBigInt: i
|
|
1332
1337
|
}).toArray();
|
|
1333
|
-
let o = [
|
|
1334
|
-
i
|
|
1338
|
+
let o = [Fn];
|
|
1339
|
+
i ? o.push(Pn) : o.push(Nn);
|
|
1335
1340
|
let s = [];
|
|
1336
1341
|
try {
|
|
1337
|
-
let r = await
|
|
1342
|
+
let r = await In.load(e);
|
|
1338
1343
|
if (!n) {
|
|
1339
1344
|
if (typeof r == "string") try {
|
|
1340
1345
|
JSON.parse(r), n = { type: "json" };
|
|
@@ -1347,46 +1352,46 @@ async function In(e, n, r = {}) {
|
|
|
1347
1352
|
typeof r == "object" && (n = { type: "json" });
|
|
1348
1353
|
}
|
|
1349
1354
|
let i = n?.type === "csv";
|
|
1350
|
-
i && typeof r == "string" && (r =
|
|
1355
|
+
i && typeof r == "string" && (r = zn(r)), i && typeof r == "string" && a && (r = Bn(r));
|
|
1351
1356
|
let c = n?.parse || "auto";
|
|
1352
|
-
return typeof c == "object" && (c = t.mapValues(c, (e) => e === "time" ? "string" : e === "datetime" ? "date" : e)), s = o.map((e) => e()), i ?
|
|
1357
|
+
return typeof c == "object" && (c = t.mapValues(c, (e) => e === "time" ? "string" : e === "datetime" ? "date" : e)), s = o.map((e) => e()), i ? Z(r, {
|
|
1353
1358
|
...n,
|
|
1354
1359
|
parse: c
|
|
1355
|
-
}) :
|
|
1360
|
+
}) : Z(r, n);
|
|
1356
1361
|
} finally {
|
|
1357
1362
|
s.forEach((e) => e());
|
|
1358
1363
|
}
|
|
1359
1364
|
}
|
|
1360
|
-
function
|
|
1361
|
-
let n = [
|
|
1362
|
-
t && n.push(
|
|
1363
|
-
let r = n.map((e) => e()), i =
|
|
1365
|
+
function Rn(e, t = !0) {
|
|
1366
|
+
let n = [Fn];
|
|
1367
|
+
t && n.push(Pn);
|
|
1368
|
+
let r = n.map((e) => e()), i = Z(e, {
|
|
1364
1369
|
type: "csv",
|
|
1365
1370
|
parse: "auto"
|
|
1366
1371
|
});
|
|
1367
1372
|
return r.forEach((e) => e()), i;
|
|
1368
1373
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return e?.includes(",") ?
|
|
1374
|
+
function zn(e) {
|
|
1375
|
+
return e?.includes(",") ? Vn(e, (e) => {
|
|
1371
1376
|
let t = /* @__PURE__ */ new Set();
|
|
1372
1377
|
return e.map((e) => {
|
|
1373
|
-
let n =
|
|
1378
|
+
let n = Un(e, t);
|
|
1374
1379
|
return t.add(n), n;
|
|
1375
1380
|
});
|
|
1376
1381
|
}) : e;
|
|
1377
1382
|
}
|
|
1378
|
-
function
|
|
1379
|
-
return e?.includes(".") ?
|
|
1383
|
+
function Bn(e) {
|
|
1384
|
+
return e?.includes(".") ? Vn(e, (e) => e.map((e) => e.replaceAll(".", "․"))) : e;
|
|
1380
1385
|
}
|
|
1381
|
-
function
|
|
1386
|
+
function Vn(e, t) {
|
|
1382
1387
|
let n = e.split("\n");
|
|
1383
1388
|
return n[0] = t(n[0].split(",")).join(","), n.join("\n");
|
|
1384
1389
|
}
|
|
1385
|
-
var
|
|
1386
|
-
function
|
|
1390
|
+
var Hn = "";
|
|
1391
|
+
function Un(e, t) {
|
|
1387
1392
|
let n = e, r = 1;
|
|
1388
|
-
for (; t.has(n);) n = `${e}${
|
|
1393
|
+
for (; t.has(n);) n = `${e}${Hn.repeat(r)}`, r++;
|
|
1389
1394
|
return n;
|
|
1390
1395
|
}
|
|
1391
1396
|
//#endregion
|
|
1392
|
-
export { fe as a,
|
|
1397
|
+
export { fe as a, J as i, Ln as n, Dn as r, Rn as t };
|