@marimo-team/islands 0.24.3-dev9 → 0.25.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/{ConnectedDataExplorerComponent-C9OF_75w.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1066 -1066
- package/dist/ErrorBoundary-DnNkbB_U.js +200 -0
- package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-Dlm5aWnH.js} +4 -4
- package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
- package/dist/_baseMerge-BiGRwuqv.js +165 -0
- package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +17 -18
- package/dist/{any-language-editor-DmQ7dyCx.js → any-language-editor-CycIVIeP.js} +17 -17
- package/dist/arc-7ra3iNdN.js +81 -0
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +25 -25
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +1 -0
- package/dist/assets/worker-D7hWi02M.js +109 -0
- package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
- package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
- package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
- package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
- package/dist/{html-to-image-BtFMe_Nq.js → cells-DYIkSxs6.js} +6757 -10137
- package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
- package/dist/chat-ui-BXj3uYjy.js +5786 -0
- package/dist/{check-CHig47QV.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
- package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
- package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
- package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
- package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
- package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
- package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
- package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
- package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
- package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-BfwTebD0.js} +11 -11
- package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
- package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
- package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
- package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
- package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
- package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
- package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-BspJEJ5H.js} +109 -63
- package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DX3rFNTe.js} +5 -5
- package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-fVF7Uujg.js} +13 -13
- package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +30 -0
- package/dist/code-visibility-DElzk_hh.js +138 -0
- package/dist/{common-Cv-4hMa0.js → common-B4-ih9IA.js} +8838 -12645
- package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
- package/dist/cubic-OaEBhQPK.js +1404 -0
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +10 -10
- package/dist/{dagre-CGyalH38.js → dagre-BGSfXNEb.js} +678 -537
- package/dist/dagre-GXQ25YYZ-xHNAUTyG.js +425 -0
- package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-CRH6JQPE.js} +8 -9
- package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
- package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
- package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +40 -39
- package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +10 -10
- package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
- package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-BMwGFVD6.js} +21 -21
- package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII--KLDR9Pl.js} +10 -10
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
- package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
- package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
- package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
- package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
- package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
- package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
- package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
- package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
- package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
- package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
- package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
- package/dist/dist-CMh_W4y4.js +538 -0
- package/dist/{extends-BPB6_lTK.js → dist-CO1AwwG_.js} +516 -561
- package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
- package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
- package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
- package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
- package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
- package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
- package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
- package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
- package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
- package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
- package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
- package/dist/dropdown-menu-CZgjYSAh.js +4502 -0
- package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +17 -18
- package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1037 -798
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-C0NsUqXl.js +56 -0
- package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
- package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
- package/dist/{esm-CesmlDrs.js → esm-h8f7-1CJ.js} +423 -423
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
- package/dist/feedback-button-cQcMqpEP.js +380 -0
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +16 -0
- package/dist/{formats-CslNOKy0.js → formats-BR5iGb4s.js} +8 -8
- package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
- package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-DYOxfSzI.js} +2143 -1910
- package/dist/{glide-utils-NShAPPtn.js → glide-utils-B3rUT5PI.js} +15 -15
- package/dist/globals-BOoLHa7X.js +19 -0
- package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
- package/dist/html-to-image-CeYYvQNb.js +3272 -0
- package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
- package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-BagtCX_5.js} +7 -7
- package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +8 -8
- package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
- package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
- package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +29 -29
- package/dist/katex-DFBiSucW.js +21840 -0
- package/dist/{label-lwzzBHUW.js → label-BJ49YTvk.js} +6 -6
- package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
- package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
- package/dist/main.js +8113 -13475
- package/dist/mermaid-DPNuhemn.js +3084 -0
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
- package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
- package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
- package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
- package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +17 -17
- package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
- package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-DZp5bEmI.js} +5 -5
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
- package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +19 -20
- package/dist/{pick-SnHlmIBN.js → pick-CJeoxYOS.js} +1 -1
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
- package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +29 -31
- package/dist/{process-output-CPy0YKUe.js → process-output-BCTjlyuH.js} +7 -6
- package/dist/purify.es-DgKyQviY.js +805 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
- package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +17 -18
- package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
- package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
- package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
- package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +20 -19
- package/dist/{reveal-component-CVsYlb9J.js → reveal-component-C9h2Lubu.js} +1303 -1237
- package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
- package/dist/{select-3qHpFKF9.js → select-C6plhmZr.js} +317 -562
- package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +11 -11
- package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
- package/dist/{spec-CutWdqo3.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
- package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-orN6AwMx.js} +19 -20
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +30 -0
- package/dist/style.css +2 -2
- package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1501 -1591
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +30 -0
- package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
- package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
- package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +7 -7
- package/dist/{toDate-CpXBeDq0.js → toDate-WXg1yLcI.js} +7 -7
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
- package/dist/use-restore-focus-D5D9xEjZ.js +5946 -0
- package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
- package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-BD6AStMt.js} +3 -3
- package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BRTPsUK7.js} +8 -8
- package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-D_HNdyvI.js} +2 -2
- package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
- package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-DPgiiwwU.js} +6 -6
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/useTheme-DzXmYZ5V.js +904 -0
- package/dist/{vega-component-ovBXgp91.js → vega-component-D0QXopU8.js} +34 -34
- package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
- package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
- package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +9 -9
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
- package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +10 -10
- package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +248 -139
- package/package.json +54 -57
- package/src/__mocks__/notebook.ts +1 -0
- package/src/__mocks__/requests.ts +7 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/fixtures/pair-preview.ts +19 -0
- package/src/__tests__/mount.test.ts +18 -0
- package/src/components/app-config/optional-features.tsx +6 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +394 -0
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +272 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +115 -74
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/data-table/__tests__/filters.test.ts +21 -21
- package/src/components/data-table/charts/__tests__/spec.test.ts +5 -10
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -1
- package/src/components/data-table/columns.tsx +64 -67
- package/src/components/editor/RecoveryButton.tsx +1 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +36 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +115 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +46 -9
- package/src/components/editor/actions/pair-with-agent-modal.tsx +49 -23
- package/src/components/editor/ai/add-cell-with-ai.tsx +1 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +3 -1
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +186 -0
- package/src/components/editor/alerts/__tests__/startup-progress.test.tsx +185 -0
- package/src/components/editor/alerts/connecting-alert.tsx +1 -66
- package/src/components/editor/alerts/connection-notice.tsx +186 -0
- package/src/components/editor/alerts/startup-output.tsx +173 -0
- package/src/components/editor/alerts/startup-progress.tsx +204 -0
- package/src/components/editor/app-container.tsx +9 -3
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/cell/__tests__/toolbar.test.tsx +73 -0
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +50 -0
- package/src/components/editor/cell/code/cell-editor.tsx +41 -42
- package/src/components/editor/cell/toolbar.tsx +11 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +63 -42
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +164 -8
- package/src/components/editor/chrome/panels/__tests__/sandbox-details.test.tsx +358 -0
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +168 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +113 -175
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +106 -0
- package/src/components/editor/chrome/panels/sandbox-details-state.ts +38 -0
- package/src/components/editor/chrome/panels/sandbox-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +52 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +7 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -1
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +98 -98
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +11 -5
- package/src/components/editor/dynamic-favicon.tsx +17 -10
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +13 -11
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/header/__tests__/status.test.tsx +8 -20
- package/src/components/editor/header/filename-input.tsx +2 -0
- package/src/components/editor/header/status.tsx +5 -3
- package/src/components/editor/navigation/clipboard.ts +1 -0
- package/src/components/editor/notebook-cell.tsx +4 -2
- package/src/components/editor/output/JsonOutput.tsx +182 -632
- package/src/components/editor/output/Outputs.css +49 -17
- package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
- package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
- package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
- package/src/components/editor/output/json-output/formatting.ts +167 -0
- package/src/components/editor/output/json-output/pagination.ts +155 -0
- package/src/components/editor/output/json-output/renderers.tsx +196 -0
- package/src/components/editor/output/json-output/themes.ts +52 -0
- package/src/components/editor/package-alert.tsx +112 -66
- package/src/components/editor/renderers/cell-array.tsx +1 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +3 -7
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-notes-editor.tsx +1 -0
- package/src/components/tracing/tracing-spec.ts +1 -1
- package/src/components/ui/__tests__/badge.test.ts +6 -4
- package/src/components/ui/use-toast.ts +8 -0
- package/src/core/MarimoApp.tsx +0 -2
- package/src/core/ai/context/providers/__tests__/error.test.ts +16 -22
- package/src/core/alerts/__tests__/environment.test.ts +183 -0
- package/src/core/alerts/__tests__/state.test.tsx +240 -0
- package/src/core/alerts/environment.ts +57 -0
- package/src/core/alerts/state.ts +155 -99
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +296 -259
- package/src/core/cells/__tests__/apply-transaction.test.ts +34 -0
- package/src/core/cells/__tests__/cell.test.ts +61 -0
- package/src/core/cells/__tests__/cells.test.ts +182 -37
- package/src/core/cells/__tests__/document-changes.test.ts +39 -1
- package/src/core/cells/__tests__/outputs.test.tsx +117 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -3
- package/src/core/cells/__tests__/session.test.ts +7 -0
- package/src/core/cells/cell.ts +9 -1
- package/src/core/cells/cells.ts +13 -18
- package/src/core/cells/document-changes.ts +11 -1
- package/src/core/cells/outputs.ts +66 -9
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/cells/session.ts +2 -0
- package/src/core/cells/types.ts +2 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +8 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +4 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/codemirror/rtc/extension.ts +5 -2
- package/src/core/config/pair.ts +19 -0
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/state.ts +1 -2
- package/src/core/export/__tests__/hooks.test.ts +1 -6
- package/src/core/islands/bootstrap.ts +3 -1
- package/src/core/islands/bridge.ts +3 -0
- package/src/core/islands/worker-factory.ts +2 -12
- package/src/core/kernel/messages.ts +2 -2
- package/src/core/network/__tests__/requests-network.test.ts +4 -3
- package/src/core/network/connection-notice.ts +117 -0
- package/src/core/network/connection.ts +19 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +12 -0
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/resolve.ts +2 -1
- package/src/core/network/types.ts +7 -0
- package/src/core/network/useConnectionNotice.ts +53 -0
- package/src/core/packages/__tests__/usePackageAction.test.tsx +129 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +246 -0
- package/src/core/packages/package-data.ts +35 -0
- package/src/core/packages/sandbox-state.ts +67 -0
- package/src/core/packages/toast-components.tsx +11 -0
- package/src/core/packages/useInstallPackage.ts +1 -1
- package/src/core/packages/usePackageAction.ts +51 -0
- package/src/core/packages/usePackageDependencies.ts +22 -0
- package/src/core/packages/useSandboxController.ts +208 -0
- package/src/core/run-app.tsx +2 -0
- package/src/core/static/__tests__/files.test.ts +12 -30
- package/src/core/wasm/__tests__/bootstrap.test.ts +63 -0
- package/src/core/wasm/__tests__/bridge.test.ts +13 -4
- package/src/core/wasm/__tests__/fs.test.ts +22 -0
- package/src/core/wasm/__tests__/runtime-config.test.ts +65 -0
- package/src/core/wasm/bridge.ts +35 -23
- package/src/core/wasm/rpc.ts +2 -0
- package/src/core/wasm/runtime-config.ts +31 -0
- package/src/core/wasm/worker/bootstrap.ts +21 -11
- package/src/core/wasm/worker/constants.ts +1 -0
- package/src/core/wasm/worker/fs.ts +4 -0
- package/src/core/wasm/worker/getController.ts +3 -1
- package/src/core/wasm/worker/save-worker.ts +10 -9
- package/src/core/wasm/worker/types.ts +6 -4
- package/src/core/wasm/worker/worker.ts +9 -9
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +404 -3
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +8 -6
- package/src/core/websocket/transports/transport.ts +1 -1
- package/src/core/websocket/transports/ws.ts +1 -1
- package/src/core/websocket/types.ts +11 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +63 -16
- package/src/hooks/useDebounce.ts +2 -0
- package/src/mount.tsx +3 -0
- package/src/plugins/core/BadPlugin.tsx +3 -14
- package/src/plugins/core/RenderHTML.tsx +22 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
- package/src/plugins/core/registerReactComponent.tsx +0 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +10 -4
- package/src/plugins/impl/FormPlugin.tsx +2 -0
- package/src/plugins/impl/MatrixPlugin.tsx +2 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
- package/src/plugins/impl/SliderPlugin.tsx +2 -0
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +50 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +23 -18
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +1 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +15 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +42 -48
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
- package/src/stories/sandbox.stories.tsx +488 -0
- package/src/utils/__tests__/path.test.ts +6 -5
- package/src/utils/__tests__/worker.test.ts +81 -0
- package/src/utils/worker.ts +22 -0
- package/dist/ErrorBoundary-CR-ZQN_c.js +0 -125
- package/dist/_baseMerge-Dv8bBloN.js +0 -73
- package/dist/_initCloneObject---vediN2.js +0 -95
- package/dist/arc-DOVLrCPd.js +0 -82
- package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
- package/dist/assets/worker-DlIBfp9S.js +0 -98
- package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
- package/dist/chat-ui-BSwr409J.js +0 -8455
- package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
- package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
- package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
- package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
- package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
- package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
- package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
- package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
- package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
- package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
- package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
- package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
- package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
- package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
- package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
- package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
- package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
- package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
- package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
- package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
- package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
- package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
- package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
- package/dist/click-outside-container-D_URcm3D.js +0 -167
- package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
- package/dist/copy-CD7S58CY.js +0 -141
- package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
- package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
- package/dist/dist-3_o3T78I.js +0 -1360
- package/dist/dist-ABQjhuek.js +0 -64
- package/dist/dist-CO5R6VMi.js +0 -538
- package/dist/dropdown-menu-DhCfcscX.js +0 -5858
- package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
- package/dist/error-banner-CsXbEEjo.js +0 -611
- package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
- package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
- package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
- package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
- package/dist/line-CuKjIQa1.js +0 -34
- package/dist/map-BJpOfPlL.js +0 -149
- package/dist/math-BXtKgYah.js +0 -10
- package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
- package/dist/mermaid-Bi23Ibnw.js +0 -1173
- package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
- package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
- package/dist/path-BNHuHZP8.js +0 -87
- package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
- package/dist/purify.es-CB-YO1Hn.js +0 -774
- package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
- package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
- package/dist/schemas-DzK6U94N.js +0 -6057
- package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
- package/dist/step-CKczO72Q.js +0 -670
- package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
- package/dist/timer-DpDyj9G0.js +0 -596
- package/dist/tooltip-Dt77sBeT.js +0 -390
- package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
- package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
- package/dist/useTheme-CVJ0UOf2.js +0 -841
- package/dist/vega-loader.browser-DEggZzni.js +0 -1083
- package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
- package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
|
@@ -0,0 +1,1404 @@
|
|
|
1
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return function() {
|
|
4
|
+
return e;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js
|
|
9
|
+
var t = Math.abs, n = Math.atan2, r = Math.cos, i = Math.max, a = Math.min, o = Math.sin, s = Math.sqrt, c = 1e-12, l = Math.PI, u = l / 2, d = 2 * l;
|
|
10
|
+
function f(e) {
|
|
11
|
+
return e > 1 ? 0 : e < -1 ? l : Math.acos(e);
|
|
12
|
+
}
|
|
13
|
+
function p(e) {
|
|
14
|
+
return e >= 1 ? u : e <= -1 ? -u : Math.asin(e);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js
|
|
18
|
+
var ee = Math.PI, m = 2 * ee, h = 1e-6, te = m - h;
|
|
19
|
+
function g(e) {
|
|
20
|
+
this._ += e[0];
|
|
21
|
+
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
|
|
22
|
+
}
|
|
23
|
+
function ne(e) {
|
|
24
|
+
let t = Math.floor(e);
|
|
25
|
+
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
|
|
26
|
+
if (t > 15) return g;
|
|
27
|
+
let n = 10 ** t;
|
|
28
|
+
return function(e) {
|
|
29
|
+
this._ += e[0];
|
|
30
|
+
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
var _ = class {
|
|
34
|
+
constructor(e) {
|
|
35
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? g : ne(e);
|
|
36
|
+
}
|
|
37
|
+
moveTo(e, t) {
|
|
38
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
|
|
39
|
+
}
|
|
40
|
+
closePath() {
|
|
41
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
42
|
+
}
|
|
43
|
+
lineTo(e, t) {
|
|
44
|
+
this._append`L${this._x1 = +e},${this._y1 = +t}`;
|
|
45
|
+
}
|
|
46
|
+
quadraticCurveTo(e, t, n, r) {
|
|
47
|
+
this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
|
|
48
|
+
}
|
|
49
|
+
bezierCurveTo(e, t, n, r, i, a) {
|
|
50
|
+
this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
|
|
51
|
+
}
|
|
52
|
+
arcTo(e, t, n, r, i) {
|
|
53
|
+
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
|
|
54
|
+
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
|
|
55
|
+
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
|
|
56
|
+
else if (d > h) {
|
|
57
|
+
if (!(Math.abs(u * s - c * l) > h) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
|
|
58
|
+
else {
|
|
59
|
+
let f = n - a, p = r - o, m = s * s + c * c, te = f * f + p * p, g = Math.sqrt(m), ne = Math.sqrt(d), _ = i * Math.tan((ee - Math.acos((m + d - te) / (2 * g * ne))) / 2), v = _ / ne, y = _ / g;
|
|
60
|
+
Math.abs(v - 1) > h && this._append`L${e + v * l},${t + v * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + y * s},${this._y1 = t + y * c}`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
arc(e, t, n, r, i, a) {
|
|
65
|
+
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
|
|
66
|
+
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
|
|
67
|
+
this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > h || Math.abs(this._y1 - l) > h) && this._append`L${c},${l}`, n && (d < 0 && (d = d % m + m), d > te ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > h && this._append`A${n},${n},0,${+(d >= ee)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
|
|
68
|
+
}
|
|
69
|
+
rect(e, t, n, r) {
|
|
70
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
|
|
71
|
+
}
|
|
72
|
+
toString() {
|
|
73
|
+
return this._;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
function v() {
|
|
77
|
+
return new _();
|
|
78
|
+
}
|
|
79
|
+
v.prototype = _.prototype;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
|
|
82
|
+
function y(e) {
|
|
83
|
+
let t = 3;
|
|
84
|
+
return e.digits = function(n) {
|
|
85
|
+
if (!arguments.length) return t;
|
|
86
|
+
if (n == null) t = null;
|
|
87
|
+
else {
|
|
88
|
+
let e = Math.floor(n);
|
|
89
|
+
if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
|
|
90
|
+
t = e;
|
|
91
|
+
}
|
|
92
|
+
return e;
|
|
93
|
+
}, () => new _(t);
|
|
94
|
+
}
|
|
95
|
+
Array.prototype.slice;
|
|
96
|
+
function re(e) {
|
|
97
|
+
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
|
|
101
|
+
function ie(e) {
|
|
102
|
+
this._context = e;
|
|
103
|
+
}
|
|
104
|
+
ie.prototype = {
|
|
105
|
+
areaStart: function() {
|
|
106
|
+
this._line = 0;
|
|
107
|
+
},
|
|
108
|
+
areaEnd: function() {
|
|
109
|
+
this._line = NaN;
|
|
110
|
+
},
|
|
111
|
+
lineStart: function() {
|
|
112
|
+
this._point = 0;
|
|
113
|
+
},
|
|
114
|
+
lineEnd: function() {
|
|
115
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
116
|
+
},
|
|
117
|
+
point: function(e, t) {
|
|
118
|
+
switch (e = +e, t = +t, this._point) {
|
|
119
|
+
case 0:
|
|
120
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
121
|
+
break;
|
|
122
|
+
case 1: this._point = 2;
|
|
123
|
+
default: this._context.lineTo(e, t);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
function ae(e) {
|
|
128
|
+
return new ie(e);
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js
|
|
132
|
+
function oe(e) {
|
|
133
|
+
return e[0];
|
|
134
|
+
}
|
|
135
|
+
function se(e) {
|
|
136
|
+
return e[1];
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js
|
|
140
|
+
function ce(t, n) {
|
|
141
|
+
var r = e(!0), i = null, a = ae, o = null, s = y(c);
|
|
142
|
+
t = typeof t == "function" ? t : t === void 0 ? oe : e(t), n = typeof n == "function" ? n : n === void 0 ? se : e(n);
|
|
143
|
+
function c(e) {
|
|
144
|
+
var c, l = (e = re(e)).length, u, d = !1, f;
|
|
145
|
+
for (i ?? (o = a(f = s())), c = 0; c <= l; ++c) !(c < l && r(u = e[c], c, e)) === d && ((d = !d) ? o.lineStart() : o.lineEnd()), d && o.point(+t(u, c, e), +n(u, c, e));
|
|
146
|
+
if (f) return o = null, f + "" || null;
|
|
147
|
+
}
|
|
148
|
+
return c.x = function(n) {
|
|
149
|
+
return arguments.length ? (t = typeof n == "function" ? n : e(+n), c) : t;
|
|
150
|
+
}, c.y = function(t) {
|
|
151
|
+
return arguments.length ? (n = typeof t == "function" ? t : e(+t), c) : n;
|
|
152
|
+
}, c.defined = function(t) {
|
|
153
|
+
return arguments.length ? (r = typeof t == "function" ? t : e(!!t), c) : r;
|
|
154
|
+
}, c.curve = function(e) {
|
|
155
|
+
return arguments.length ? (a = e, i != null && (o = a(i)), c) : a;
|
|
156
|
+
}, c.context = function(e) {
|
|
157
|
+
return arguments.length ? (e == null ? i = o = null : o = a(i = e), c) : i;
|
|
158
|
+
}, c;
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.js
|
|
162
|
+
function b() {}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.js
|
|
165
|
+
function x(e, t, n) {
|
|
166
|
+
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
|
|
167
|
+
}
|
|
168
|
+
function S(e) {
|
|
169
|
+
this._context = e;
|
|
170
|
+
}
|
|
171
|
+
S.prototype = {
|
|
172
|
+
areaStart: function() {
|
|
173
|
+
this._line = 0;
|
|
174
|
+
},
|
|
175
|
+
areaEnd: function() {
|
|
176
|
+
this._line = NaN;
|
|
177
|
+
},
|
|
178
|
+
lineStart: function() {
|
|
179
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
180
|
+
},
|
|
181
|
+
lineEnd: function() {
|
|
182
|
+
switch (this._point) {
|
|
183
|
+
case 3: x(this, this._x1, this._y1);
|
|
184
|
+
case 2: this._context.lineTo(this._x1, this._y1);
|
|
185
|
+
}
|
|
186
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
187
|
+
},
|
|
188
|
+
point: function(e, t) {
|
|
189
|
+
switch (e = +e, t = +t, this._point) {
|
|
190
|
+
case 0:
|
|
191
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
192
|
+
break;
|
|
193
|
+
case 1:
|
|
194
|
+
this._point = 2;
|
|
195
|
+
break;
|
|
196
|
+
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
197
|
+
default: x(this, e, t);
|
|
198
|
+
}
|
|
199
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
function le(e) {
|
|
203
|
+
return new S(e);
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.js
|
|
207
|
+
function ue(e) {
|
|
208
|
+
this._context = e;
|
|
209
|
+
}
|
|
210
|
+
ue.prototype = {
|
|
211
|
+
areaStart: b,
|
|
212
|
+
areaEnd: b,
|
|
213
|
+
lineStart: function() {
|
|
214
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
215
|
+
},
|
|
216
|
+
lineEnd: function() {
|
|
217
|
+
switch (this._point) {
|
|
218
|
+
case 1:
|
|
219
|
+
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
220
|
+
break;
|
|
221
|
+
case 2:
|
|
222
|
+
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
|
|
223
|
+
break;
|
|
224
|
+
case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
point: function(e, t) {
|
|
228
|
+
switch (e = +e, t = +t, this._point) {
|
|
229
|
+
case 0:
|
|
230
|
+
this._point = 1, this._x2 = e, this._y2 = t;
|
|
231
|
+
break;
|
|
232
|
+
case 1:
|
|
233
|
+
this._point = 2, this._x3 = e, this._y3 = t;
|
|
234
|
+
break;
|
|
235
|
+
case 2:
|
|
236
|
+
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
|
|
237
|
+
break;
|
|
238
|
+
default: x(this, e, t);
|
|
239
|
+
}
|
|
240
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
function de(e) {
|
|
244
|
+
return new ue(e);
|
|
245
|
+
}
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.js
|
|
248
|
+
function fe(e) {
|
|
249
|
+
this._context = e;
|
|
250
|
+
}
|
|
251
|
+
fe.prototype = {
|
|
252
|
+
areaStart: function() {
|
|
253
|
+
this._line = 0;
|
|
254
|
+
},
|
|
255
|
+
areaEnd: function() {
|
|
256
|
+
this._line = NaN;
|
|
257
|
+
},
|
|
258
|
+
lineStart: function() {
|
|
259
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
260
|
+
},
|
|
261
|
+
lineEnd: function() {
|
|
262
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
263
|
+
},
|
|
264
|
+
point: function(e, t) {
|
|
265
|
+
switch (e = +e, t = +t, this._point) {
|
|
266
|
+
case 0:
|
|
267
|
+
this._point = 1;
|
|
268
|
+
break;
|
|
269
|
+
case 1:
|
|
270
|
+
this._point = 2;
|
|
271
|
+
break;
|
|
272
|
+
case 2:
|
|
273
|
+
this._point = 3;
|
|
274
|
+
var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
|
|
275
|
+
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
|
|
276
|
+
break;
|
|
277
|
+
case 3: this._point = 4;
|
|
278
|
+
default: x(this, e, t);
|
|
279
|
+
}
|
|
280
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
function pe(e) {
|
|
284
|
+
return new fe(e);
|
|
285
|
+
}
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.js
|
|
288
|
+
function me(e, t) {
|
|
289
|
+
this._basis = new S(e), this._beta = t;
|
|
290
|
+
}
|
|
291
|
+
me.prototype = {
|
|
292
|
+
lineStart: function() {
|
|
293
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
294
|
+
},
|
|
295
|
+
lineEnd: function() {
|
|
296
|
+
var e = this._x, t = this._y, n = e.length - 1;
|
|
297
|
+
if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
|
|
298
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
299
|
+
},
|
|
300
|
+
point: function(e, t) {
|
|
301
|
+
this._x.push(+e), this._y.push(+t);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
var he = (function e(t) {
|
|
305
|
+
function n(e) {
|
|
306
|
+
return t === 1 ? new S(e) : new me(e, t);
|
|
307
|
+
}
|
|
308
|
+
return n.beta = function(t) {
|
|
309
|
+
return e(+t);
|
|
310
|
+
}, n;
|
|
311
|
+
})(.85);
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.js
|
|
314
|
+
function C(e, t, n) {
|
|
315
|
+
e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
|
|
316
|
+
}
|
|
317
|
+
function ge(e, t) {
|
|
318
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
319
|
+
}
|
|
320
|
+
ge.prototype = {
|
|
321
|
+
areaStart: function() {
|
|
322
|
+
this._line = 0;
|
|
323
|
+
},
|
|
324
|
+
areaEnd: function() {
|
|
325
|
+
this._line = NaN;
|
|
326
|
+
},
|
|
327
|
+
lineStart: function() {
|
|
328
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
329
|
+
},
|
|
330
|
+
lineEnd: function() {
|
|
331
|
+
switch (this._point) {
|
|
332
|
+
case 2:
|
|
333
|
+
this._context.lineTo(this._x2, this._y2);
|
|
334
|
+
break;
|
|
335
|
+
case 3: C(this, this._x1, this._y1);
|
|
336
|
+
}
|
|
337
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
338
|
+
},
|
|
339
|
+
point: function(e, t) {
|
|
340
|
+
switch (e = +e, t = +t, this._point) {
|
|
341
|
+
case 0:
|
|
342
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
343
|
+
break;
|
|
344
|
+
case 1:
|
|
345
|
+
this._point = 2, this._x1 = e, this._y1 = t;
|
|
346
|
+
break;
|
|
347
|
+
case 2: this._point = 3;
|
|
348
|
+
default: C(this, e, t);
|
|
349
|
+
}
|
|
350
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
var _e = (function e(t) {
|
|
354
|
+
function n(e) {
|
|
355
|
+
return new ge(e, t);
|
|
356
|
+
}
|
|
357
|
+
return n.tension = function(t) {
|
|
358
|
+
return e(+t);
|
|
359
|
+
}, n;
|
|
360
|
+
})(0);
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.js
|
|
363
|
+
function ve(e, t) {
|
|
364
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
365
|
+
}
|
|
366
|
+
ve.prototype = {
|
|
367
|
+
areaStart: b,
|
|
368
|
+
areaEnd: b,
|
|
369
|
+
lineStart: function() {
|
|
370
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
371
|
+
},
|
|
372
|
+
lineEnd: function() {
|
|
373
|
+
switch (this._point) {
|
|
374
|
+
case 1:
|
|
375
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
376
|
+
break;
|
|
377
|
+
case 2:
|
|
378
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
379
|
+
break;
|
|
380
|
+
case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
point: function(e, t) {
|
|
384
|
+
switch (e = +e, t = +t, this._point) {
|
|
385
|
+
case 0:
|
|
386
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
387
|
+
break;
|
|
388
|
+
case 1:
|
|
389
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
390
|
+
break;
|
|
391
|
+
case 2:
|
|
392
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
393
|
+
break;
|
|
394
|
+
default: C(this, e, t);
|
|
395
|
+
}
|
|
396
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
var ye = (function e(t) {
|
|
400
|
+
function n(e) {
|
|
401
|
+
return new ve(e, t);
|
|
402
|
+
}
|
|
403
|
+
return n.tension = function(t) {
|
|
404
|
+
return e(+t);
|
|
405
|
+
}, n;
|
|
406
|
+
})(0);
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.js
|
|
409
|
+
function be(e, t) {
|
|
410
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
411
|
+
}
|
|
412
|
+
be.prototype = {
|
|
413
|
+
areaStart: function() {
|
|
414
|
+
this._line = 0;
|
|
415
|
+
},
|
|
416
|
+
areaEnd: function() {
|
|
417
|
+
this._line = NaN;
|
|
418
|
+
},
|
|
419
|
+
lineStart: function() {
|
|
420
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
421
|
+
},
|
|
422
|
+
lineEnd: function() {
|
|
423
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
424
|
+
},
|
|
425
|
+
point: function(e, t) {
|
|
426
|
+
switch (e = +e, t = +t, this._point) {
|
|
427
|
+
case 0:
|
|
428
|
+
this._point = 1;
|
|
429
|
+
break;
|
|
430
|
+
case 1:
|
|
431
|
+
this._point = 2;
|
|
432
|
+
break;
|
|
433
|
+
case 2:
|
|
434
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
435
|
+
break;
|
|
436
|
+
case 3: this._point = 4;
|
|
437
|
+
default: C(this, e, t);
|
|
438
|
+
}
|
|
439
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
var xe = (function e(t) {
|
|
443
|
+
function n(e) {
|
|
444
|
+
return new be(e, t);
|
|
445
|
+
}
|
|
446
|
+
return n.tension = function(t) {
|
|
447
|
+
return e(+t);
|
|
448
|
+
}, n;
|
|
449
|
+
})(0);
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.js
|
|
452
|
+
function Se(e, t, n) {
|
|
453
|
+
var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
|
|
454
|
+
if (e._l01_a > 1e-12) {
|
|
455
|
+
var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
|
|
456
|
+
r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
|
|
457
|
+
}
|
|
458
|
+
if (e._l23_a > 1e-12) {
|
|
459
|
+
var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
|
|
460
|
+
a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
|
|
461
|
+
}
|
|
462
|
+
e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
|
|
463
|
+
}
|
|
464
|
+
function Ce(e, t) {
|
|
465
|
+
this._context = e, this._alpha = t;
|
|
466
|
+
}
|
|
467
|
+
Ce.prototype = {
|
|
468
|
+
areaStart: function() {
|
|
469
|
+
this._line = 0;
|
|
470
|
+
},
|
|
471
|
+
areaEnd: function() {
|
|
472
|
+
this._line = NaN;
|
|
473
|
+
},
|
|
474
|
+
lineStart: function() {
|
|
475
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
476
|
+
},
|
|
477
|
+
lineEnd: function() {
|
|
478
|
+
switch (this._point) {
|
|
479
|
+
case 2:
|
|
480
|
+
this._context.lineTo(this._x2, this._y2);
|
|
481
|
+
break;
|
|
482
|
+
case 3: this.point(this._x2, this._y2);
|
|
483
|
+
}
|
|
484
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
485
|
+
},
|
|
486
|
+
point: function(e, t) {
|
|
487
|
+
if (e = +e, t = +t, this._point) {
|
|
488
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
489
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
490
|
+
}
|
|
491
|
+
switch (this._point) {
|
|
492
|
+
case 0:
|
|
493
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
494
|
+
break;
|
|
495
|
+
case 1:
|
|
496
|
+
this._point = 2;
|
|
497
|
+
break;
|
|
498
|
+
case 2: this._point = 3;
|
|
499
|
+
default: Se(this, e, t);
|
|
500
|
+
}
|
|
501
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
var we = (function e(t) {
|
|
505
|
+
function n(e) {
|
|
506
|
+
return t ? new Ce(e, t) : new ge(e, 0);
|
|
507
|
+
}
|
|
508
|
+
return n.alpha = function(t) {
|
|
509
|
+
return e(+t);
|
|
510
|
+
}, n;
|
|
511
|
+
})(.5);
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.js
|
|
514
|
+
function Te(e, t) {
|
|
515
|
+
this._context = e, this._alpha = t;
|
|
516
|
+
}
|
|
517
|
+
Te.prototype = {
|
|
518
|
+
areaStart: b,
|
|
519
|
+
areaEnd: b,
|
|
520
|
+
lineStart: function() {
|
|
521
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
522
|
+
},
|
|
523
|
+
lineEnd: function() {
|
|
524
|
+
switch (this._point) {
|
|
525
|
+
case 1:
|
|
526
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
527
|
+
break;
|
|
528
|
+
case 2:
|
|
529
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
530
|
+
break;
|
|
531
|
+
case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
point: function(e, t) {
|
|
535
|
+
if (e = +e, t = +t, this._point) {
|
|
536
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
537
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
538
|
+
}
|
|
539
|
+
switch (this._point) {
|
|
540
|
+
case 0:
|
|
541
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
542
|
+
break;
|
|
543
|
+
case 1:
|
|
544
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
545
|
+
break;
|
|
546
|
+
case 2:
|
|
547
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
548
|
+
break;
|
|
549
|
+
default: Se(this, e, t);
|
|
550
|
+
}
|
|
551
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
var Ee = (function e(t) {
|
|
555
|
+
function n(e) {
|
|
556
|
+
return t ? new Te(e, t) : new ve(e, 0);
|
|
557
|
+
}
|
|
558
|
+
return n.alpha = function(t) {
|
|
559
|
+
return e(+t);
|
|
560
|
+
}, n;
|
|
561
|
+
})(.5);
|
|
562
|
+
//#endregion
|
|
563
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.js
|
|
564
|
+
function De(e, t) {
|
|
565
|
+
this._context = e, this._alpha = t;
|
|
566
|
+
}
|
|
567
|
+
De.prototype = {
|
|
568
|
+
areaStart: function() {
|
|
569
|
+
this._line = 0;
|
|
570
|
+
},
|
|
571
|
+
areaEnd: function() {
|
|
572
|
+
this._line = NaN;
|
|
573
|
+
},
|
|
574
|
+
lineStart: function() {
|
|
575
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
576
|
+
},
|
|
577
|
+
lineEnd: function() {
|
|
578
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
579
|
+
},
|
|
580
|
+
point: function(e, t) {
|
|
581
|
+
if (e = +e, t = +t, this._point) {
|
|
582
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
583
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
584
|
+
}
|
|
585
|
+
switch (this._point) {
|
|
586
|
+
case 0:
|
|
587
|
+
this._point = 1;
|
|
588
|
+
break;
|
|
589
|
+
case 1:
|
|
590
|
+
this._point = 2;
|
|
591
|
+
break;
|
|
592
|
+
case 2:
|
|
593
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
594
|
+
break;
|
|
595
|
+
case 3: this._point = 4;
|
|
596
|
+
default: Se(this, e, t);
|
|
597
|
+
}
|
|
598
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
var Oe = (function e(t) {
|
|
602
|
+
function n(e) {
|
|
603
|
+
return t ? new De(e, t) : new be(e, 0);
|
|
604
|
+
}
|
|
605
|
+
return n.alpha = function(t) {
|
|
606
|
+
return e(+t);
|
|
607
|
+
}, n;
|
|
608
|
+
})(.5);
|
|
609
|
+
//#endregion
|
|
610
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.js
|
|
611
|
+
function ke(e) {
|
|
612
|
+
this._context = e;
|
|
613
|
+
}
|
|
614
|
+
ke.prototype = {
|
|
615
|
+
areaStart: b,
|
|
616
|
+
areaEnd: b,
|
|
617
|
+
lineStart: function() {
|
|
618
|
+
this._point = 0;
|
|
619
|
+
},
|
|
620
|
+
lineEnd: function() {
|
|
621
|
+
this._point && this._context.closePath();
|
|
622
|
+
},
|
|
623
|
+
point: function(e, t) {
|
|
624
|
+
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
function Ae(e) {
|
|
628
|
+
return new ke(e);
|
|
629
|
+
}
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.js
|
|
632
|
+
function je(e) {
|
|
633
|
+
return e < 0 ? -1 : 1;
|
|
634
|
+
}
|
|
635
|
+
function Me(e, t, n) {
|
|
636
|
+
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
|
|
637
|
+
return (je(a) + je(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
|
|
638
|
+
}
|
|
639
|
+
function Ne(e, t) {
|
|
640
|
+
var n = e._x1 - e._x0;
|
|
641
|
+
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
|
|
642
|
+
}
|
|
643
|
+
function Pe(e, t, n) {
|
|
644
|
+
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
|
|
645
|
+
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
|
|
646
|
+
}
|
|
647
|
+
function w(e) {
|
|
648
|
+
this._context = e;
|
|
649
|
+
}
|
|
650
|
+
w.prototype = {
|
|
651
|
+
areaStart: function() {
|
|
652
|
+
this._line = 0;
|
|
653
|
+
},
|
|
654
|
+
areaEnd: function() {
|
|
655
|
+
this._line = NaN;
|
|
656
|
+
},
|
|
657
|
+
lineStart: function() {
|
|
658
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
659
|
+
},
|
|
660
|
+
lineEnd: function() {
|
|
661
|
+
switch (this._point) {
|
|
662
|
+
case 2:
|
|
663
|
+
this._context.lineTo(this._x1, this._y1);
|
|
664
|
+
break;
|
|
665
|
+
case 3: Pe(this, this._t0, Ne(this, this._t0));
|
|
666
|
+
}
|
|
667
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
668
|
+
},
|
|
669
|
+
point: function(e, t) {
|
|
670
|
+
var n = NaN;
|
|
671
|
+
if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {
|
|
672
|
+
switch (this._point) {
|
|
673
|
+
case 0:
|
|
674
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
675
|
+
break;
|
|
676
|
+
case 1:
|
|
677
|
+
this._point = 2;
|
|
678
|
+
break;
|
|
679
|
+
case 2:
|
|
680
|
+
this._point = 3, Pe(this, Ne(this, n = Me(this, e, t)), n);
|
|
681
|
+
break;
|
|
682
|
+
default: Pe(this, this._t0, n = Me(this, e, t));
|
|
683
|
+
}
|
|
684
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
function Fe(e) {
|
|
689
|
+
this._context = new Ie(e);
|
|
690
|
+
}
|
|
691
|
+
(Fe.prototype = Object.create(w.prototype)).point = function(e, t) {
|
|
692
|
+
w.prototype.point.call(this, t, e);
|
|
693
|
+
};
|
|
694
|
+
function Ie(e) {
|
|
695
|
+
this._context = e;
|
|
696
|
+
}
|
|
697
|
+
Ie.prototype = {
|
|
698
|
+
moveTo: function(e, t) {
|
|
699
|
+
this._context.moveTo(t, e);
|
|
700
|
+
},
|
|
701
|
+
closePath: function() {
|
|
702
|
+
this._context.closePath();
|
|
703
|
+
},
|
|
704
|
+
lineTo: function(e, t) {
|
|
705
|
+
this._context.lineTo(t, e);
|
|
706
|
+
},
|
|
707
|
+
bezierCurveTo: function(e, t, n, r, i, a) {
|
|
708
|
+
this._context.bezierCurveTo(t, e, r, n, a, i);
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
function Le(e) {
|
|
712
|
+
return new w(e);
|
|
713
|
+
}
|
|
714
|
+
function Re(e) {
|
|
715
|
+
return new Fe(e);
|
|
716
|
+
}
|
|
717
|
+
//#endregion
|
|
718
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.js
|
|
719
|
+
function ze(e) {
|
|
720
|
+
this._context = e;
|
|
721
|
+
}
|
|
722
|
+
ze.prototype = {
|
|
723
|
+
areaStart: function() {
|
|
724
|
+
this._line = 0;
|
|
725
|
+
},
|
|
726
|
+
areaEnd: function() {
|
|
727
|
+
this._line = NaN;
|
|
728
|
+
},
|
|
729
|
+
lineStart: function() {
|
|
730
|
+
this._x = [], this._y = [];
|
|
731
|
+
},
|
|
732
|
+
lineEnd: function() {
|
|
733
|
+
var e = this._x, t = this._y, n = e.length;
|
|
734
|
+
if (n) {
|
|
735
|
+
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
|
|
736
|
+
else for (var r = Be(e), i = Be(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
|
|
737
|
+
}
|
|
738
|
+
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
739
|
+
},
|
|
740
|
+
point: function(e, t) {
|
|
741
|
+
this._x.push(+e), this._y.push(+t);
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
function Be(e) {
|
|
745
|
+
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
|
|
746
|
+
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
|
|
747
|
+
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
|
|
748
|
+
for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
|
|
749
|
+
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
|
|
750
|
+
return [i, a];
|
|
751
|
+
}
|
|
752
|
+
function Ve(e) {
|
|
753
|
+
return new ze(e);
|
|
754
|
+
}
|
|
755
|
+
//#endregion
|
|
756
|
+
//#region ../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
|
|
757
|
+
function T(e, t) {
|
|
758
|
+
this._context = e, this._t = t;
|
|
759
|
+
}
|
|
760
|
+
T.prototype = {
|
|
761
|
+
areaStart: function() {
|
|
762
|
+
this._line = 0;
|
|
763
|
+
},
|
|
764
|
+
areaEnd: function() {
|
|
765
|
+
this._line = NaN;
|
|
766
|
+
},
|
|
767
|
+
lineStart: function() {
|
|
768
|
+
this._x = this._y = NaN, this._point = 0;
|
|
769
|
+
},
|
|
770
|
+
lineEnd: function() {
|
|
771
|
+
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
772
|
+
},
|
|
773
|
+
point: function(e, t) {
|
|
774
|
+
switch (e = +e, t = +t, this._point) {
|
|
775
|
+
case 0:
|
|
776
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
777
|
+
break;
|
|
778
|
+
case 1: this._point = 2;
|
|
779
|
+
default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
|
|
780
|
+
else {
|
|
781
|
+
var n = this._x * (1 - this._t) + e * this._t;
|
|
782
|
+
this._context.lineTo(n, this._y), this._context.lineTo(n, t);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
this._x = e, this._y = t;
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
function He(e) {
|
|
789
|
+
return new T(e, .5);
|
|
790
|
+
}
|
|
791
|
+
function Ue(e) {
|
|
792
|
+
return new T(e, 0);
|
|
793
|
+
}
|
|
794
|
+
function We(e) {
|
|
795
|
+
return new T(e, 1);
|
|
796
|
+
}
|
|
797
|
+
//#endregion
|
|
798
|
+
//#region ../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
|
|
799
|
+
function E(e, t, n) {
|
|
800
|
+
e.prototype = t.prototype = n, n.constructor = e;
|
|
801
|
+
}
|
|
802
|
+
function Ge(e, t) {
|
|
803
|
+
var n = Object.create(e.prototype);
|
|
804
|
+
for (var r in t) n[r] = t[r];
|
|
805
|
+
return n;
|
|
806
|
+
}
|
|
807
|
+
//#endregion
|
|
808
|
+
//#region ../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
|
|
809
|
+
function D() {}
|
|
810
|
+
var O = .7, k = 1 / O, A = "\\s*([+-]?\\d+)\\s*", j = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", M = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ke = /^#([0-9a-f]{3,8})$/, qe = RegExp(`^rgb\\(${A},${A},${A}\\)$`), Je = RegExp(`^rgb\\(${M},${M},${M}\\)$`), Ye = RegExp(`^rgba\\(${A},${A},${A},${j}\\)$`), Xe = RegExp(`^rgba\\(${M},${M},${M},${j}\\)$`), Ze = RegExp(`^hsl\\(${j},${M},${M}\\)$`), Qe = RegExp(`^hsla\\(${j},${M},${M},${j}\\)$`), $e = {
|
|
811
|
+
aliceblue: 15792383,
|
|
812
|
+
antiquewhite: 16444375,
|
|
813
|
+
aqua: 65535,
|
|
814
|
+
aquamarine: 8388564,
|
|
815
|
+
azure: 15794175,
|
|
816
|
+
beige: 16119260,
|
|
817
|
+
bisque: 16770244,
|
|
818
|
+
black: 0,
|
|
819
|
+
blanchedalmond: 16772045,
|
|
820
|
+
blue: 255,
|
|
821
|
+
blueviolet: 9055202,
|
|
822
|
+
brown: 10824234,
|
|
823
|
+
burlywood: 14596231,
|
|
824
|
+
cadetblue: 6266528,
|
|
825
|
+
chartreuse: 8388352,
|
|
826
|
+
chocolate: 13789470,
|
|
827
|
+
coral: 16744272,
|
|
828
|
+
cornflowerblue: 6591981,
|
|
829
|
+
cornsilk: 16775388,
|
|
830
|
+
crimson: 14423100,
|
|
831
|
+
cyan: 65535,
|
|
832
|
+
darkblue: 139,
|
|
833
|
+
darkcyan: 35723,
|
|
834
|
+
darkgoldenrod: 12092939,
|
|
835
|
+
darkgray: 11119017,
|
|
836
|
+
darkgreen: 25600,
|
|
837
|
+
darkgrey: 11119017,
|
|
838
|
+
darkkhaki: 12433259,
|
|
839
|
+
darkmagenta: 9109643,
|
|
840
|
+
darkolivegreen: 5597999,
|
|
841
|
+
darkorange: 16747520,
|
|
842
|
+
darkorchid: 10040012,
|
|
843
|
+
darkred: 9109504,
|
|
844
|
+
darksalmon: 15308410,
|
|
845
|
+
darkseagreen: 9419919,
|
|
846
|
+
darkslateblue: 4734347,
|
|
847
|
+
darkslategray: 3100495,
|
|
848
|
+
darkslategrey: 3100495,
|
|
849
|
+
darkturquoise: 52945,
|
|
850
|
+
darkviolet: 9699539,
|
|
851
|
+
deeppink: 16716947,
|
|
852
|
+
deepskyblue: 49151,
|
|
853
|
+
dimgray: 6908265,
|
|
854
|
+
dimgrey: 6908265,
|
|
855
|
+
dodgerblue: 2003199,
|
|
856
|
+
firebrick: 11674146,
|
|
857
|
+
floralwhite: 16775920,
|
|
858
|
+
forestgreen: 2263842,
|
|
859
|
+
fuchsia: 16711935,
|
|
860
|
+
gainsboro: 14474460,
|
|
861
|
+
ghostwhite: 16316671,
|
|
862
|
+
gold: 16766720,
|
|
863
|
+
goldenrod: 14329120,
|
|
864
|
+
gray: 8421504,
|
|
865
|
+
green: 32768,
|
|
866
|
+
greenyellow: 11403055,
|
|
867
|
+
grey: 8421504,
|
|
868
|
+
honeydew: 15794160,
|
|
869
|
+
hotpink: 16738740,
|
|
870
|
+
indianred: 13458524,
|
|
871
|
+
indigo: 4915330,
|
|
872
|
+
ivory: 16777200,
|
|
873
|
+
khaki: 15787660,
|
|
874
|
+
lavender: 15132410,
|
|
875
|
+
lavenderblush: 16773365,
|
|
876
|
+
lawngreen: 8190976,
|
|
877
|
+
lemonchiffon: 16775885,
|
|
878
|
+
lightblue: 11393254,
|
|
879
|
+
lightcoral: 15761536,
|
|
880
|
+
lightcyan: 14745599,
|
|
881
|
+
lightgoldenrodyellow: 16448210,
|
|
882
|
+
lightgray: 13882323,
|
|
883
|
+
lightgreen: 9498256,
|
|
884
|
+
lightgrey: 13882323,
|
|
885
|
+
lightpink: 16758465,
|
|
886
|
+
lightsalmon: 16752762,
|
|
887
|
+
lightseagreen: 2142890,
|
|
888
|
+
lightskyblue: 8900346,
|
|
889
|
+
lightslategray: 7833753,
|
|
890
|
+
lightslategrey: 7833753,
|
|
891
|
+
lightsteelblue: 11584734,
|
|
892
|
+
lightyellow: 16777184,
|
|
893
|
+
lime: 65280,
|
|
894
|
+
limegreen: 3329330,
|
|
895
|
+
linen: 16445670,
|
|
896
|
+
magenta: 16711935,
|
|
897
|
+
maroon: 8388608,
|
|
898
|
+
mediumaquamarine: 6737322,
|
|
899
|
+
mediumblue: 205,
|
|
900
|
+
mediumorchid: 12211667,
|
|
901
|
+
mediumpurple: 9662683,
|
|
902
|
+
mediumseagreen: 3978097,
|
|
903
|
+
mediumslateblue: 8087790,
|
|
904
|
+
mediumspringgreen: 64154,
|
|
905
|
+
mediumturquoise: 4772300,
|
|
906
|
+
mediumvioletred: 13047173,
|
|
907
|
+
midnightblue: 1644912,
|
|
908
|
+
mintcream: 16121850,
|
|
909
|
+
mistyrose: 16770273,
|
|
910
|
+
moccasin: 16770229,
|
|
911
|
+
navajowhite: 16768685,
|
|
912
|
+
navy: 128,
|
|
913
|
+
oldlace: 16643558,
|
|
914
|
+
olive: 8421376,
|
|
915
|
+
olivedrab: 7048739,
|
|
916
|
+
orange: 16753920,
|
|
917
|
+
orangered: 16729344,
|
|
918
|
+
orchid: 14315734,
|
|
919
|
+
palegoldenrod: 15657130,
|
|
920
|
+
palegreen: 10025880,
|
|
921
|
+
paleturquoise: 11529966,
|
|
922
|
+
palevioletred: 14381203,
|
|
923
|
+
papayawhip: 16773077,
|
|
924
|
+
peachpuff: 16767673,
|
|
925
|
+
peru: 13468991,
|
|
926
|
+
pink: 16761035,
|
|
927
|
+
plum: 14524637,
|
|
928
|
+
powderblue: 11591910,
|
|
929
|
+
purple: 8388736,
|
|
930
|
+
rebeccapurple: 6697881,
|
|
931
|
+
red: 16711680,
|
|
932
|
+
rosybrown: 12357519,
|
|
933
|
+
royalblue: 4286945,
|
|
934
|
+
saddlebrown: 9127187,
|
|
935
|
+
salmon: 16416882,
|
|
936
|
+
sandybrown: 16032864,
|
|
937
|
+
seagreen: 3050327,
|
|
938
|
+
seashell: 16774638,
|
|
939
|
+
sienna: 10506797,
|
|
940
|
+
silver: 12632256,
|
|
941
|
+
skyblue: 8900331,
|
|
942
|
+
slateblue: 6970061,
|
|
943
|
+
slategray: 7372944,
|
|
944
|
+
slategrey: 7372944,
|
|
945
|
+
snow: 16775930,
|
|
946
|
+
springgreen: 65407,
|
|
947
|
+
steelblue: 4620980,
|
|
948
|
+
tan: 13808780,
|
|
949
|
+
teal: 32896,
|
|
950
|
+
thistle: 14204888,
|
|
951
|
+
tomato: 16737095,
|
|
952
|
+
turquoise: 4251856,
|
|
953
|
+
violet: 15631086,
|
|
954
|
+
wheat: 16113331,
|
|
955
|
+
white: 16777215,
|
|
956
|
+
whitesmoke: 16119285,
|
|
957
|
+
yellow: 16776960,
|
|
958
|
+
yellowgreen: 10145074
|
|
959
|
+
};
|
|
960
|
+
E(D, N, {
|
|
961
|
+
copy(e) {
|
|
962
|
+
return Object.assign(new this.constructor(), this, e);
|
|
963
|
+
},
|
|
964
|
+
displayable() {
|
|
965
|
+
return this.rgb().displayable();
|
|
966
|
+
},
|
|
967
|
+
hex: et,
|
|
968
|
+
formatHex: et,
|
|
969
|
+
formatHex8: tt,
|
|
970
|
+
formatHsl: nt,
|
|
971
|
+
formatRgb: rt,
|
|
972
|
+
toString: rt
|
|
973
|
+
});
|
|
974
|
+
function et() {
|
|
975
|
+
return this.rgb().formatHex();
|
|
976
|
+
}
|
|
977
|
+
function tt() {
|
|
978
|
+
return this.rgb().formatHex8();
|
|
979
|
+
}
|
|
980
|
+
function nt() {
|
|
981
|
+
return ut(this).formatHsl();
|
|
982
|
+
}
|
|
983
|
+
function rt() {
|
|
984
|
+
return this.rgb().formatRgb();
|
|
985
|
+
}
|
|
986
|
+
function N(e) {
|
|
987
|
+
var t, n;
|
|
988
|
+
return e = (e + "").trim().toLowerCase(), (t = Ke.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? it(t) : n === 3 ? new I(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? P(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? P(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = qe.exec(e)) ? new I(t[1], t[2], t[3], 1) : (t = Je.exec(e)) ? new I(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Ye.exec(e)) ? P(t[1], t[2], t[3], t[4]) : (t = Xe.exec(e)) ? P(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ze.exec(e)) ? lt(t[1], t[2] / 100, t[3] / 100, 1) : (t = Qe.exec(e)) ? lt(t[1], t[2] / 100, t[3] / 100, t[4]) : $e.hasOwnProperty(e) ? it($e[e]) : e === "transparent" ? new I(NaN, NaN, NaN, 0) : null;
|
|
989
|
+
}
|
|
990
|
+
function it(e) {
|
|
991
|
+
return new I(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
992
|
+
}
|
|
993
|
+
function P(e, t, n, r) {
|
|
994
|
+
return r <= 0 && (e = t = n = NaN), new I(e, t, n, r);
|
|
995
|
+
}
|
|
996
|
+
function at(e) {
|
|
997
|
+
return e instanceof D || (e = N(e)), e ? (e = e.rgb(), new I(e.r, e.g, e.b, e.opacity)) : new I();
|
|
998
|
+
}
|
|
999
|
+
function F(e, t, n, r) {
|
|
1000
|
+
return arguments.length === 1 ? at(e) : new I(e, t, n, r ?? 1);
|
|
1001
|
+
}
|
|
1002
|
+
function I(e, t, n, r) {
|
|
1003
|
+
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1004
|
+
}
|
|
1005
|
+
E(I, F, Ge(D, {
|
|
1006
|
+
brighter(e) {
|
|
1007
|
+
return e = e == null ? k : k ** +e, new I(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1008
|
+
},
|
|
1009
|
+
darker(e) {
|
|
1010
|
+
return e = e == null ? O : O ** +e, new I(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1011
|
+
},
|
|
1012
|
+
rgb() {
|
|
1013
|
+
return this;
|
|
1014
|
+
},
|
|
1015
|
+
clamp() {
|
|
1016
|
+
return new I(R(this.r), R(this.g), R(this.b), L(this.opacity));
|
|
1017
|
+
},
|
|
1018
|
+
displayable() {
|
|
1019
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1020
|
+
},
|
|
1021
|
+
hex: ot,
|
|
1022
|
+
formatHex: ot,
|
|
1023
|
+
formatHex8: st,
|
|
1024
|
+
formatRgb: ct,
|
|
1025
|
+
toString: ct
|
|
1026
|
+
}));
|
|
1027
|
+
function ot() {
|
|
1028
|
+
return `#${z(this.r)}${z(this.g)}${z(this.b)}`;
|
|
1029
|
+
}
|
|
1030
|
+
function st() {
|
|
1031
|
+
return `#${z(this.r)}${z(this.g)}${z(this.b)}${z((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1032
|
+
}
|
|
1033
|
+
function ct() {
|
|
1034
|
+
let e = L(this.opacity);
|
|
1035
|
+
return `${e === 1 ? "rgb(" : "rgba("}${R(this.r)}, ${R(this.g)}, ${R(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1036
|
+
}
|
|
1037
|
+
function L(e) {
|
|
1038
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
1039
|
+
}
|
|
1040
|
+
function R(e) {
|
|
1041
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
1042
|
+
}
|
|
1043
|
+
function z(e) {
|
|
1044
|
+
return e = R(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1045
|
+
}
|
|
1046
|
+
function lt(e, t, n, r) {
|
|
1047
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new B(e, t, n, r);
|
|
1048
|
+
}
|
|
1049
|
+
function ut(e) {
|
|
1050
|
+
if (e instanceof B) return new B(e.h, e.s, e.l, e.opacity);
|
|
1051
|
+
if (e instanceof D || (e = N(e)), !e) return new B();
|
|
1052
|
+
if (e instanceof B) return e;
|
|
1053
|
+
e = e.rgb();
|
|
1054
|
+
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
1055
|
+
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new B(o, s, c, e.opacity);
|
|
1056
|
+
}
|
|
1057
|
+
function dt(e, t, n, r) {
|
|
1058
|
+
return arguments.length === 1 ? ut(e) : new B(e, t, n, r ?? 1);
|
|
1059
|
+
}
|
|
1060
|
+
function B(e, t, n, r) {
|
|
1061
|
+
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1062
|
+
}
|
|
1063
|
+
E(B, dt, Ge(D, {
|
|
1064
|
+
brighter(e) {
|
|
1065
|
+
return e = e == null ? k : k ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1066
|
+
},
|
|
1067
|
+
darker(e) {
|
|
1068
|
+
return e = e == null ? O : O ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1069
|
+
},
|
|
1070
|
+
rgb() {
|
|
1071
|
+
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
1072
|
+
return new I(pt(e >= 240 ? e - 240 : e + 120, i, r), pt(e, i, r), pt(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
1073
|
+
},
|
|
1074
|
+
clamp() {
|
|
1075
|
+
return new B(ft(this.h), V(this.s), V(this.l), L(this.opacity));
|
|
1076
|
+
},
|
|
1077
|
+
displayable() {
|
|
1078
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1079
|
+
},
|
|
1080
|
+
formatHsl() {
|
|
1081
|
+
let e = L(this.opacity);
|
|
1082
|
+
return `${e === 1 ? "hsl(" : "hsla("}${ft(this.h)}, ${V(this.s) * 100}%, ${V(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
1083
|
+
}
|
|
1084
|
+
}));
|
|
1085
|
+
function ft(e) {
|
|
1086
|
+
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1087
|
+
}
|
|
1088
|
+
function V(e) {
|
|
1089
|
+
return Math.max(0, Math.min(1, e || 0));
|
|
1090
|
+
}
|
|
1091
|
+
function pt(e, t, n) {
|
|
1092
|
+
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
1093
|
+
}
|
|
1094
|
+
//#endregion
|
|
1095
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/basis.js
|
|
1096
|
+
function mt(e, t, n, r, i) {
|
|
1097
|
+
var a = e * e, o = a * e;
|
|
1098
|
+
return ((1 - 3 * e + 3 * a - o) * t + (4 - 6 * a + 3 * o) * n + (1 + 3 * e + 3 * a - 3 * o) * r + o * i) / 6;
|
|
1099
|
+
}
|
|
1100
|
+
function ht(e) {
|
|
1101
|
+
var t = e.length - 1;
|
|
1102
|
+
return function(n) {
|
|
1103
|
+
var r = n <= 0 ? n = 0 : n >= 1 ? (n = 1, t - 1) : Math.floor(n * t), i = e[r], a = e[r + 1], o = r > 0 ? e[r - 1] : 2 * i - a, s = r < t - 1 ? e[r + 2] : 2 * a - i;
|
|
1104
|
+
return mt((n - r / t) * t, o, i, a, s);
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/basisClosed.js
|
|
1109
|
+
function gt(e) {
|
|
1110
|
+
var t = e.length;
|
|
1111
|
+
return function(n) {
|
|
1112
|
+
var r = Math.floor(((n %= 1) < 0 ? ++n : n) * t), i = e[(r + t - 1) % t], a = e[r % t], o = e[(r + 1) % t], s = e[(r + 2) % t];
|
|
1113
|
+
return mt((n - r / t) * t, i, a, o, s);
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
|
|
1118
|
+
var H = (e) => () => e;
|
|
1119
|
+
//#endregion
|
|
1120
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
|
|
1121
|
+
function _t(e, t) {
|
|
1122
|
+
return function(n) {
|
|
1123
|
+
return e + n * t;
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
function vt(e, t, n) {
|
|
1127
|
+
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
|
|
1128
|
+
return (e + r * t) ** +n;
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
function yt(e, t) {
|
|
1132
|
+
var n = t - e;
|
|
1133
|
+
return n ? _t(e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) : H(isNaN(e) ? t : e);
|
|
1134
|
+
}
|
|
1135
|
+
function bt(e) {
|
|
1136
|
+
return (e = +e) == 1 ? xt : function(t, n) {
|
|
1137
|
+
return n - t ? vt(t, n, e) : H(isNaN(t) ? n : t);
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
function xt(e, t) {
|
|
1141
|
+
var n = t - e;
|
|
1142
|
+
return n ? _t(e, n) : H(isNaN(e) ? t : e);
|
|
1143
|
+
}
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
|
|
1146
|
+
var St = (function e(t) {
|
|
1147
|
+
var n = bt(t);
|
|
1148
|
+
function r(e, t) {
|
|
1149
|
+
var r = n((e = F(e)).r, (t = F(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = xt(e.opacity, t.opacity);
|
|
1150
|
+
return function(t) {
|
|
1151
|
+
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
return r.gamma = e, r;
|
|
1155
|
+
})(1);
|
|
1156
|
+
function Ct(e) {
|
|
1157
|
+
return function(t) {
|
|
1158
|
+
var n = t.length, r = Array(n), i = Array(n), a = Array(n), o, s;
|
|
1159
|
+
for (o = 0; o < n; ++o) s = F(t[o]), r[o] = s.r || 0, i[o] = s.g || 0, a[o] = s.b || 0;
|
|
1160
|
+
return r = e(r), i = e(i), a = e(a), s.opacity = 1, function(e) {
|
|
1161
|
+
return s.r = r(e), s.g = i(e), s.b = a(e), s + "";
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
var wt = Ct(ht), Tt = Ct(gt);
|
|
1166
|
+
//#endregion
|
|
1167
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js
|
|
1168
|
+
function U(e, t) {
|
|
1169
|
+
return e = +e, t = +t, function(n) {
|
|
1170
|
+
return e * (1 - n) + t * n;
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
//#endregion
|
|
1174
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
|
|
1175
|
+
var Et = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Dt = new RegExp(Et.source, "g");
|
|
1176
|
+
function Ot(e) {
|
|
1177
|
+
return function() {
|
|
1178
|
+
return e;
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
function kt(e) {
|
|
1182
|
+
return function(t) {
|
|
1183
|
+
return e(t) + "";
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
function At(e, t) {
|
|
1187
|
+
var n = Et.lastIndex = Dt.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
|
|
1188
|
+
for (e += "", t += ""; (r = Et.exec(e)) && (i = Dt.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
|
|
1189
|
+
i: o,
|
|
1190
|
+
x: U(r, i)
|
|
1191
|
+
})), n = Dt.lastIndex;
|
|
1192
|
+
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? kt(c[0].x) : Ot(t) : (t = c.length, function(e) {
|
|
1193
|
+
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
|
|
1194
|
+
return s.join("");
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js
|
|
1199
|
+
var jt = 180 / Math.PI, Mt = {
|
|
1200
|
+
translateX: 0,
|
|
1201
|
+
translateY: 0,
|
|
1202
|
+
rotate: 0,
|
|
1203
|
+
skewX: 0,
|
|
1204
|
+
scaleX: 1,
|
|
1205
|
+
scaleY: 1
|
|
1206
|
+
};
|
|
1207
|
+
function Nt(e, t, n, r, i, a) {
|
|
1208
|
+
var o, s, c;
|
|
1209
|
+
return (o = Math.sqrt(e * e + t * t)) && (e /= o, t /= o), (c = e * n + t * r) && (n -= e * c, r -= t * c), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, c /= s), e * r < t * n && (e = -e, t = -t, c = -c, o = -o), {
|
|
1210
|
+
translateX: i,
|
|
1211
|
+
translateY: a,
|
|
1212
|
+
rotate: Math.atan2(t, e) * jt,
|
|
1213
|
+
skewX: Math.atan(c) * jt,
|
|
1214
|
+
scaleX: o,
|
|
1215
|
+
scaleY: s
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
//#endregion
|
|
1219
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js
|
|
1220
|
+
var Pt;
|
|
1221
|
+
function Ft(e) {
|
|
1222
|
+
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
1223
|
+
return t.isIdentity ? Mt : Nt(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
1224
|
+
}
|
|
1225
|
+
function It(e) {
|
|
1226
|
+
return e == null || (Pt ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), Pt.setAttribute("transform", e), !(e = Pt.transform.baseVal.consolidate())) ? Mt : (e = e.matrix, Nt(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
1227
|
+
}
|
|
1228
|
+
//#endregion
|
|
1229
|
+
//#region ../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js
|
|
1230
|
+
function Lt(e, t, n, r) {
|
|
1231
|
+
function i(e) {
|
|
1232
|
+
return e.length ? e.pop() + " " : "";
|
|
1233
|
+
}
|
|
1234
|
+
function a(e, r, i, a, o, s) {
|
|
1235
|
+
if (e !== i || r !== a) {
|
|
1236
|
+
var c = o.push("translate(", null, t, null, n);
|
|
1237
|
+
s.push({
|
|
1238
|
+
i: c - 4,
|
|
1239
|
+
x: U(e, i)
|
|
1240
|
+
}, {
|
|
1241
|
+
i: c - 2,
|
|
1242
|
+
x: U(r, a)
|
|
1243
|
+
});
|
|
1244
|
+
} else (i || a) && o.push("translate(" + i + t + a + n);
|
|
1245
|
+
}
|
|
1246
|
+
function o(e, t, n, a) {
|
|
1247
|
+
e === t ? t && n.push(i(n) + "rotate(" + t + r) : (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), a.push({
|
|
1248
|
+
i: n.push(i(n) + "rotate(", null, r) - 2,
|
|
1249
|
+
x: U(e, t)
|
|
1250
|
+
}));
|
|
1251
|
+
}
|
|
1252
|
+
function s(e, t, n, a) {
|
|
1253
|
+
e === t ? t && n.push(i(n) + "skewX(" + t + r) : a.push({
|
|
1254
|
+
i: n.push(i(n) + "skewX(", null, r) - 2,
|
|
1255
|
+
x: U(e, t)
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
function c(e, t, n, r, a, o) {
|
|
1259
|
+
if (e !== n || t !== r) {
|
|
1260
|
+
var s = a.push(i(a) + "scale(", null, ",", null, ")");
|
|
1261
|
+
o.push({
|
|
1262
|
+
i: s - 4,
|
|
1263
|
+
x: U(e, n)
|
|
1264
|
+
}, {
|
|
1265
|
+
i: s - 2,
|
|
1266
|
+
x: U(t, r)
|
|
1267
|
+
});
|
|
1268
|
+
} else (n !== 1 || r !== 1) && a.push(i(a) + "scale(" + n + "," + r + ")");
|
|
1269
|
+
}
|
|
1270
|
+
return function(t, n) {
|
|
1271
|
+
var r = [], i = [];
|
|
1272
|
+
return t = e(t), n = e(n), a(t.translateX, t.translateY, n.translateX, n.translateY, r, i), o(t.rotate, n.rotate, r, i), s(t.skewX, n.skewX, r, i), c(t.scaleX, t.scaleY, n.scaleX, n.scaleY, r, i), t = n = null, function(e) {
|
|
1273
|
+
for (var t = -1, n = i.length, a; ++t < n;) r[(a = i[t]).i] = a.x(e);
|
|
1274
|
+
return r.join("");
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
var Rt = Lt(Ft, "px, ", "px)", "deg)"), zt = Lt(It, ", ", ")", ")"), Bt = { value: () => {} };
|
|
1279
|
+
function Vt() {
|
|
1280
|
+
for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
|
|
1281
|
+
if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
|
|
1282
|
+
n[r] = [];
|
|
1283
|
+
}
|
|
1284
|
+
return new W(n);
|
|
1285
|
+
}
|
|
1286
|
+
function W(e) {
|
|
1287
|
+
this._ = e;
|
|
1288
|
+
}
|
|
1289
|
+
function Ht(e, t) {
|
|
1290
|
+
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1291
|
+
var n = "", r = e.indexOf(".");
|
|
1292
|
+
if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
1293
|
+
return {
|
|
1294
|
+
type: e,
|
|
1295
|
+
name: n
|
|
1296
|
+
};
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
W.prototype = Vt.prototype = {
|
|
1300
|
+
constructor: W,
|
|
1301
|
+
on: function(e, t) {
|
|
1302
|
+
var n = this._, r = Ht(e + "", n), i, a = -1, o = r.length;
|
|
1303
|
+
if (arguments.length < 2) {
|
|
1304
|
+
for (; ++a < o;) if ((i = (e = r[a]).type) && (i = Ut(n[i], e.name))) return i;
|
|
1305
|
+
return;
|
|
1306
|
+
}
|
|
1307
|
+
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
1308
|
+
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Wt(n[i], e.name, t);
|
|
1309
|
+
else if (t == null) for (i in n) n[i] = Wt(n[i], e.name, null);
|
|
1310
|
+
return this;
|
|
1311
|
+
},
|
|
1312
|
+
copy: function() {
|
|
1313
|
+
var e = {}, t = this._;
|
|
1314
|
+
for (var n in t) e[n] = t[n].slice();
|
|
1315
|
+
return new W(e);
|
|
1316
|
+
},
|
|
1317
|
+
call: function(e, t) {
|
|
1318
|
+
if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
|
|
1319
|
+
if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
1320
|
+
for (a = this._[e], r = 0, i = a.length; r < i; ++r) a[r].value.apply(t, n);
|
|
1321
|
+
},
|
|
1322
|
+
apply: function(e, t, n) {
|
|
1323
|
+
if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
1324
|
+
for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
function Ut(e, t) {
|
|
1328
|
+
for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
|
|
1329
|
+
}
|
|
1330
|
+
function Wt(e, t, n) {
|
|
1331
|
+
for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
|
|
1332
|
+
e[r] = Bt, e = e.slice(0, r).concat(e.slice(r + 1));
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
return n != null && e.push({
|
|
1336
|
+
name: t,
|
|
1337
|
+
value: n
|
|
1338
|
+
}), e;
|
|
1339
|
+
}
|
|
1340
|
+
//#endregion
|
|
1341
|
+
//#region ../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js
|
|
1342
|
+
var G = 0, K = 0, Gt = 0, Kt = 1e3, q, J, Y = 0, X = 0, Z = 0, Q = typeof performance == "object" && performance.now ? performance : Date, qt = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
1343
|
+
setTimeout(e, 17);
|
|
1344
|
+
};
|
|
1345
|
+
function Jt() {
|
|
1346
|
+
return X ||= (qt(Yt), Q.now() + Z);
|
|
1347
|
+
}
|
|
1348
|
+
function Yt() {
|
|
1349
|
+
X = 0;
|
|
1350
|
+
}
|
|
1351
|
+
function $() {
|
|
1352
|
+
this._call = this._time = this._next = null;
|
|
1353
|
+
}
|
|
1354
|
+
$.prototype = Xt.prototype = {
|
|
1355
|
+
constructor: $,
|
|
1356
|
+
restart: function(e, t, n) {
|
|
1357
|
+
if (typeof e != "function") throw TypeError("callback is not a function");
|
|
1358
|
+
n = (n == null ? Jt() : +n) + (t == null ? 0 : +t), !this._next && J !== this && (J ? J._next = this : q = this, J = this), this._call = e, this._time = n, tn();
|
|
1359
|
+
},
|
|
1360
|
+
stop: function() {
|
|
1361
|
+
this._call && (this._call = null, this._time = Infinity, tn());
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1364
|
+
function Xt(e, t, n) {
|
|
1365
|
+
var r = new $();
|
|
1366
|
+
return r.restart(e, t, n), r;
|
|
1367
|
+
}
|
|
1368
|
+
function Zt() {
|
|
1369
|
+
Jt(), ++G;
|
|
1370
|
+
for (var e = q, t; e;) (t = X - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
1371
|
+
--G;
|
|
1372
|
+
}
|
|
1373
|
+
function Qt() {
|
|
1374
|
+
X = (Y = Q.now()) + Z, G = K = 0;
|
|
1375
|
+
try {
|
|
1376
|
+
Zt();
|
|
1377
|
+
} finally {
|
|
1378
|
+
G = 0, en(), X = 0;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
function $t() {
|
|
1382
|
+
var e = Q.now(), t = e - Y;
|
|
1383
|
+
t > Kt && (Z -= t, Y = e);
|
|
1384
|
+
}
|
|
1385
|
+
function en() {
|
|
1386
|
+
for (var e, t = q, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : q = n);
|
|
1387
|
+
J = e, tn(r);
|
|
1388
|
+
}
|
|
1389
|
+
function tn(e) {
|
|
1390
|
+
G || (K &&= clearTimeout(K), e - X > 24 ? (e < Infinity && (K = setTimeout(Qt, e - Q.now() - Z)), Gt &&= clearInterval(Gt)) : (Gt ||= (Y = Q.now(), setInterval($t, Kt)), G = 1, qt(Qt)));
|
|
1391
|
+
}
|
|
1392
|
+
//#endregion
|
|
1393
|
+
//#region ../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
|
|
1394
|
+
function nn(e) {
|
|
1395
|
+
return e * e * e;
|
|
1396
|
+
}
|
|
1397
|
+
function rn(e) {
|
|
1398
|
+
return --e * e * e + 1;
|
|
1399
|
+
}
|
|
1400
|
+
function an(e) {
|
|
1401
|
+
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
1402
|
+
}
|
|
1403
|
+
//#endregion
|
|
1404
|
+
export { v as $, We as A, xe as B, N as C, at as D, F as E, Re as F, de as G, _e as H, Ae as I, oe as J, le as K, Oe as L, He as M, Ve as N, E as O, Le as P, y as Q, Ee as R, k as S, dt as T, he as U, ye as V, pe as W, ae as X, se as Y, re as Z, H as _, Jt as a, c as at, D as b, Rt as c, a as ct, U as d, s as dt, t as et, wt as f, d as ft, xt as g, yt as h, $ as i, r as it, Ue as j, Ge as k, zt as l, l as lt, St as m, an as n, p as nt, Xt as o, u as ot, Tt as p, e as pt, ce as q, rn as r, n as rt, Vt as s, i as st, nn as t, f as tt, At as u, o as ut, gt as v, O as w, I as x, ht as y, we as z };
|