@oneclick.dev/cms-core-modules 0.0.109 → 0.0.111
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/Acquisition-DgzDQH51.js +1 -0
- package/dist/Acquisition-FV3QpaUX.mjs +400 -0
- package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
- package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
- package/dist/AppointmentDetailsCard-33WpATpV.mjs +161 -0
- package/dist/AppointmentDetailsCard-DpLM5IrB.js +1 -0
- package/dist/AppointmentEditor-BeOtYV6u.mjs +196 -0
- package/dist/AppointmentEditor-CaTfbkIf.js +1 -0
- package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
- package/dist/AppointmentListTable-Dieu9US_.js +1 -0
- package/dist/Audience-BSgNvcVb.js +1 -0
- package/dist/Audience-ka0b7YPE.mjs +489 -0
- package/dist/Components-C83O-xlF.mjs +623 -0
- package/dist/Components-DXbx0RLV.js +1 -0
- package/dist/Content-BHr_rPVY.js +1 -0
- package/dist/Content-CYOZKvWK.mjs +358 -0
- package/dist/ContentEditor-pZPfo0qN.mjs +30802 -0
- package/dist/ContentEditor-tYkh4vRV.js +462 -0
- package/dist/CountryBreakdownCard-D7BK3nRD.js +1 -0
- package/dist/CountryBreakdownCard-DVxNz2DJ.mjs +196 -0
- package/dist/Create--MOBOTA-.js +1 -0
- package/dist/Create-BXNLRQag.mjs +1251 -0
- package/dist/DateFormatter-CSAbE3BC.js +1 -0
- package/dist/DateFormatter-qbhRYxI_.mjs +738 -0
- package/dist/Detail-BCOcP2ql.mjs +585 -0
- package/dist/Detail-Btzwo0Y3.mjs +3477 -0
- package/dist/Detail-Byk781b4.mjs +26 -0
- package/dist/Detail-C8wQiDcv.js +1 -0
- package/dist/Detail-CPqug27l.js +1 -0
- package/dist/Detail-ChD5XurA.mjs +379 -0
- package/dist/Detail-CjuhjPby.js +1 -0
- package/dist/Detail-DnX7tsqN.mjs +649 -0
- package/dist/Detail-RISEJJab.js +1 -0
- package/dist/Detail-mvSGbnFU.js +1 -0
- package/dist/DeviceBreakdownCard-DRhQ9ufG.js +1 -0
- package/dist/DeviceBreakdownCard-W1frLe0L.mjs +159 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
- package/dist/Entries-BdhUyJR5.mjs +728 -0
- package/dist/Entries-CEXM_SkO.js +1 -0
- package/dist/Find-D4Qa45qC.js +1 -0
- package/dist/Find-zN_dKz4p.mjs +229 -0
- package/dist/GlobalStyling-C9VthHWK.mjs +1588 -0
- package/dist/GlobalStyling-CnSlXkZc.js +25 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +1263 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
- package/dist/Overview-98nkJUWN.mjs +481 -0
- package/dist/Overview-BCpJNiEB.mjs +190 -0
- package/dist/Overview-BDlBCUI_.js +1 -0
- package/dist/Overview-BR_y8x3W.mjs +860 -0
- package/dist/Overview-BbvfH1u-.js +1 -0
- package/dist/Overview-Bn1Xx3_j.js +1 -0
- package/dist/Overview-CIa1E-HH.mjs +178 -0
- package/dist/Overview-CX-n6W7d.js +1 -0
- package/dist/Overview-DAxCu9XC.js +1 -0
- package/dist/Overview-Dl8cMlsr.js +1 -0
- package/dist/Overview-MpgkLB6m.mjs +567 -0
- package/dist/Overview-Su8ZUbMs.mjs +26 -0
- package/dist/Overview-T-lsy3UZ.js +1 -0
- package/dist/Overview-lWAyyenp.mjs +632 -0
- package/dist/PeakHoursCard-9-EZFZLR.mjs +182 -0
- package/dist/PeakHoursCard-BR5zmta4.js +1 -0
- package/dist/ProductDetailsCard-6nHikw4V.mjs +121 -0
- package/dist/ProductDetailsCard-Bn7qrgmc.js +1 -0
- package/dist/RealtimeCard--APfRNc8.js +1 -0
- package/dist/RealtimeCard-fvQlJcM7.mjs +126 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
- package/dist/SearchTermsCard-BsB-63aH.js +1 -0
- package/dist/SearchTermsCard-BzVrHKqQ.mjs +201 -0
- package/dist/SendPush-COns44j7.js +1 -0
- package/dist/SendPush-CPIOjVX4.mjs +184 -0
- package/dist/SeoHealth-C5npw7mE.js +1 -0
- package/dist/SeoHealth-bVQj_Xgm.mjs +615 -0
- package/dist/TableView-Bf1fdJrD.mjs +6159 -0
- package/dist/TableView-DNcXyIMu.js +4 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
- package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +40 -0
- package/dist/TopPagesCard-BDeA997A.js +1 -0
- package/dist/TopPagesCard-CTozhOr_.mjs +159 -0
- package/dist/TrafficSourcesCard-BxtCKsqx.mjs +197 -0
- package/dist/TrafficSourcesCard-C3ziDTUL.js +1 -0
- package/dist/View-CsudjxCE.mjs +30 -0
- package/dist/View-Dw_wA6kK.js +1 -0
- package/dist/VisitorStatsCard-BmByE_Hi.js +1 -0
- package/dist/VisitorStatsCard-CXizEbVK.mjs +174 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/agenda-BaJu3-1c.js +1 -0
- package/dist/agenda-BwVY_8oM.mjs +1165 -0
- package/dist/availability-CMrRa5y2.mjs +269 -0
- package/dist/availability-Cf2YfMwM.js +1 -0
- package/dist/booking-data-DgJd0BcM.mjs +889 -0
- package/dist/booking-data-Di5GmH_8.js +1 -0
- package/dist/cms-core-modules.css +1 -2
- package/dist/countries-BTPvmrsb.mjs +4 -0
- package/dist/countries-CgZ081No.js +1 -0
- package/dist/exceptions-B6P9UiCj.js +1 -0
- package/dist/exceptions-De9-FvdP.mjs +646 -0
- package/dist/google-CvtuJwgk.mjs +4 -0
- package/dist/google-D4N3gb01.js +1 -0
- package/dist/index-4tjmIans.js +1 -0
- package/dist/index-9HVlmvK3.js +1 -0
- package/dist/index-B8GvmAwh.mjs +1403 -0
- package/dist/index-BIF2RB7k.mjs +2836 -0
- package/dist/index-BWDwEd8D.mjs +24 -0
- package/dist/index-BfBBm9uY.mjs +24 -0
- package/dist/index-Bkq58CeQ.mjs +22 -0
- package/dist/index-ByRsp77L.js +70 -0
- package/dist/index-CFzn2Lus.mjs +172 -0
- package/dist/index-CJQQBRLY.js +1 -0
- package/dist/index-CQkOH2_3.mjs +24 -0
- package/dist/index-CSxYBeVA.js +1 -0
- package/dist/index-CU-tbS5W.mjs +24 -0
- package/dist/index-CZn2nDLv.mjs +34 -0
- package/dist/index-CkVwMqpn.mjs +3857 -0
- package/dist/index-CkiNvRzs.js +1 -0
- package/dist/index-Co4ON2Di.js +1 -0
- package/dist/index-Cpnn_Pxd.mjs +24 -0
- package/dist/index-CsVeM3PA.mjs +24 -0
- package/dist/index-CwqrAU-H.js +1 -0
- package/dist/index-CxETuRsG.js +1 -0
- package/dist/index-Cz-baGax.js +1 -0
- package/dist/index-DFQGVHTs.js +1 -0
- package/dist/index-DL6orwdK.js +35 -0
- package/dist/index-DPd3waTN.js +1 -0
- package/dist/index-DRqJOqUR.mjs +3484 -0
- package/dist/index-DUlYrnXH.js +58 -0
- package/dist/index-DZV720u-.mjs +439 -0
- package/dist/index-D_nfGegA.js +184 -0
- package/dist/index-DjWuIBxh.js +1 -0
- package/dist/index-Dnn2SCSl.js +1 -0
- package/dist/index-Dpl9sU6a.mjs +12 -0
- package/dist/index-DrXxXB2F.mjs +138 -0
- package/dist/index-DtSvAFLL.js +54 -0
- package/dist/index-L54VBzwJ.mjs +109 -0
- package/dist/index-R2oUDsjx.js +1 -0
- package/dist/index-RLz1QPrf.mjs +203 -0
- package/dist/index-UtjLbLw-.js +1 -0
- package/dist/index-cOnxXTbF.mjs +24 -0
- package/dist/index-hH3e-IYz.mjs +1187 -0
- package/dist/index-hlylYYgy.mjs +24 -0
- package/dist/index-ijdf0d9-.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +806 -1095
- package/dist/interpolation-CHn59tIC.js +1 -0
- package/dist/interpolation-w7IRDJwK.mjs +180 -0
- package/dist/math-BJ-oX_IM.mjs +80 -0
- package/dist/math-emotyaF6.js +1 -0
- package/dist/orders-C65SlpJy.mjs +618 -0
- package/dist/orders-XVzWAgG1.js +1 -0
- package/dist/payment-C3ohkehF.mjs +1080 -0
- package/dist/payment-Dfr-Ro-a.js +1 -0
- package/dist/regular-1LXNPviB.js +1 -0
- package/dist/regular-_05oq5Tx.mjs +1101 -0
- package/dist/resources-CxeFd57z.js +1 -0
- package/dist/resources-DwYxn2Vi.mjs +811 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +996 -1049
- package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
- package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +14 -0
- package/dist/src/appointments/components/create/StepNavigation.vue.d.ts +32 -0
- package/dist/src/appointments/components/create/regular/Step1.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step2.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step3.vue.d.ts +2 -0
- package/dist/src/appointments/components/create/regular/Step4.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +24 -0
- package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +17 -0
- package/dist/src/appointments/components/edit/Event24hSidebar.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +136 -0
- package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +11 -0
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
- package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +87 -0
- package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
- package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
- package/dist/src/appointments/components/edit/EventTimeIndicator.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +48 -0
- package/dist/src/appointments/components/edit/EventView.vue.d.ts +9 -0
- package/dist/src/appointments/components/edit/ExceptionDialog.vue.d.ts +29 -0
- package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +26 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
- package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +22 -0
- package/dist/src/appointments/components/edit/PaymentAddons/AddonList.vue.d.ts +5 -0
- package/dist/src/appointments/components/edit/PaymentAddons/index.vue.d.ts +15 -0
- package/dist/src/appointments/components/edit/ResourceEditorDialog.vue.d.ts +13 -0
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +36 -0
- package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
- package/dist/src/appointments/index.d.ts +12 -9
- package/dist/src/appointments/index.vue.d.ts +22 -0
- package/dist/src/appointments/metadata.d.ts +1 -1
- package/dist/src/appointments/pages/Overview.vue.d.ts +4 -0
- package/dist/src/appointments/pages/create/index.vue.d.ts +2 -0
- package/dist/src/appointments/pages/create/regular.vue.d.ts +6 -0
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +4 -0
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
- package/dist/src/appointments/pages/edit/index.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/payment.vue.d.ts +2 -0
- package/dist/src/appointments/pages/edit/resources.vue.d.ts +28 -0
- package/dist/src/appointments/routes.d.ts +6 -3
- package/dist/src/contentManager/components/components/ComponentDialog.vue.d.ts +12 -0
- package/dist/src/contentManager/components/components/ComponentGridItem.vue.d.ts +16 -0
- package/dist/src/contentManager/components/content-editor/ApiDocs.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/ContentLayout.vue.d.ts +49 -0
- package/dist/src/contentManager/components/content-editor/ContentSettings.vue.d.ts +24 -0
- package/dist/src/contentManager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
- package/dist/src/contentManager/components/content-editor/Header.vue.d.ts +64 -0
- package/dist/src/contentManager/components/content-editor/LivePreviewWrapper.vue.d.ts +53 -0
- package/dist/src/contentManager/components/content-editor/Locales.vue.d.ts +44 -0
- package/dist/src/contentManager/components/content-editor/NewSectionDialog.vue.d.ts +21 -0
- package/dist/src/contentManager/components/content-editor/PageSettings.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/SEO.vue.d.ts +14 -0
- package/dist/src/contentManager/components/content-editor/SidebarSectionWrapper.vue.d.ts +39 -0
- package/dist/src/contentManager/components/content-editor/Status.vue.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/Versions.vue.d.ts +63 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Button.vue.d.ts +94 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Card.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Column.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Divider.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +94 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Heading.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Image.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/LockBlocks.d.ts +0 -15
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Map.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.vue.d.ts +115 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/ScopedSelectAll.d.ts +1 -2
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +115 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +1 -4
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/Video.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +92 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +108 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +20 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +104 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +1 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +29 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +8 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +47 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +6 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +17 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +13 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +132 -12
- package/dist/src/contentManager/components/overview/CollectionDialog.vue.d.ts +30 -0
- package/dist/src/contentManager/components/overview/CollectionsGridView.vue.d.ts +18 -0
- package/dist/src/contentManager/components/overview/ContentEntryContextMenu.vue.d.ts +27 -0
- package/dist/src/contentManager/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/contentManager/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/contentManager/components/styling/ButtonStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/CardStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/components/styling/SectionStyleDialog.vue.d.ts +24 -0
- package/dist/src/contentManager/index.d.ts +14 -5
- package/dist/src/contentManager/index.vue.d.ts +22 -0
- package/dist/src/contentManager/metadata.d.ts +1 -1
- package/dist/src/contentManager/pages/Components.vue.d.ts +27 -0
- package/dist/src/contentManager/pages/ContentEditor.vue.d.ts +14 -0
- package/dist/src/contentManager/pages/Entries.vue.d.ts +16 -0
- package/dist/src/contentManager/pages/GlobalStyling.vue.d.ts +117 -0
- package/dist/src/contentManager/pages/Overview.vue.d.ts +57 -0
- package/dist/src/contentManager/routes.d.ts +12 -3
- package/dist/src/custom/index.d.ts +2 -2
- package/dist/src/custom/index.vue.d.ts +2 -0
- package/dist/src/custom/pages/View.vue.d.ts +2 -0
- package/dist/src/custom/routes.d.ts +1 -1
- package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoClicksChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoImpressionsChart.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKeywordsTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoKpiCards.vue.d.ts +10 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoMappingTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoPagesTab.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/components/seo-health/SeoRankingDistribution.vue.d.ts +5 -0
- package/dist/src/googleAnalytics/index.d.ts +10 -10
- package/dist/src/googleAnalytics/index.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/routes.d.ts +1 -1
- package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
- package/dist/src/mailTemplates/index.d.ts +3 -3
- package/dist/src/mailTemplates/index.vue.d.ts +22 -0
- package/dist/src/mailTemplates/metadata.d.ts +1 -1
- package/dist/src/mailTemplates/pages/Detail.vue.d.ts +14 -0
- package/dist/src/mailTemplates/pages/Overview.vue.d.ts +14 -0
- package/dist/src/mailTemplates/routes.d.ts +1 -1
- package/dist/src/productCollections/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/productCollections/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/productCollections/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/productCollections/index.d.ts +3 -3
- package/dist/src/productCollections/index.vue.d.ts +22 -0
- package/dist/src/productCollections/metadata.d.ts +1 -1
- package/dist/src/productCollections/pages/Detail.vue.d.ts +14 -0
- package/dist/src/productCollections/pages/Overview.vue.d.ts +16 -0
- package/dist/src/productCollections/routes.d.ts +1 -1
- package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
- package/dist/src/products/components/detail/Inventory.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/products/components/detail/NewSection.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Price.vue.d.ts +2 -0
- package/dist/src/products/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Shipping.vue.d.ts +2 -0
- package/dist/src/products/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/products/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
- package/dist/src/products/components/detail/variants/Option.vue.d.ts +33 -0
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +38 -0
- package/dist/src/products/components/overview/FilterPopover.vue.d.ts +2 -0
- package/dist/src/products/components/overview/GridView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/products/components/overview/ProductContextMenu.vue.d.ts +27 -0
- package/dist/src/products/index.d.ts +4 -4
- package/dist/src/products/index.vue.d.ts +22 -0
- package/dist/src/products/metadata.d.ts +1 -1
- package/dist/src/products/pages/Detail.vue.d.ts +14 -0
- package/dist/src/products/pages/Overview.vue.d.ts +16 -0
- package/dist/src/products/routes.d.ts +1 -1
- package/dist/src/promoCodes/components/create/DateRange.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/MultiCodes.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/Note.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/SingleCode.vue.d.ts +2 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
- package/dist/src/promoCodes/components/create/TypeAndValue/index.vue.d.ts +2 -0
- package/dist/src/promoCodes/index.d.ts +3 -3
- package/dist/src/promoCodes/index.vue.d.ts +22 -0
- package/dist/src/promoCodes/metadata.d.ts +1 -1
- package/dist/src/promoCodes/pages/Create.vue.d.ts +16 -0
- package/dist/src/promoCodes/pages/Detail.vue.d.ts +14 -0
- package/dist/src/promoCodes/pages/Find.vue.d.ts +16 -0
- package/dist/src/promoCodes/routes.d.ts +1 -1
- package/dist/src/push-notifications/components/PreviewAndroid.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PreviewIPhone.vue.d.ts +28 -0
- package/dist/src/push-notifications/components/PushPreview.vue.d.ts +28 -0
- package/dist/src/push-notifications/index.d.ts +3 -3
- package/dist/src/push-notifications/index.vue.d.ts +22 -0
- package/dist/src/push-notifications/metadata.d.ts +1 -1
- package/dist/src/push-notifications/pages/SendPush.vue.d.ts +14 -0
- package/dist/src/push-notifications/routes.d.ts +1 -1
- package/dist/src/shared/BrandLogo.vue.d.ts +12 -0
- package/dist/src/shared/DrawerToggle.vue.d.ts +60 -0
- package/dist/src/shared/VerticalToggle.vue.d.ts +60 -0
- package/dist/src/shippingOptions/components/detail/Condition.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Countries.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Example.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/shippingOptions/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/shippingOptions/index.d.ts +3 -3
- package/dist/src/shippingOptions/index.vue.d.ts +22 -0
- package/dist/src/shippingOptions/metadata.d.ts +1 -1
- package/dist/src/shippingOptions/pages/Detail.vue.d.ts +14 -0
- package/dist/src/shippingOptions/pages/Overview.vue.d.ts +16 -0
- package/dist/src/shippingOptions/routes.d.ts +1 -1
- package/dist/src/table/components/DataTable.vue.d.ts +18 -0
- package/dist/src/table/components/DataTableAction.vue.d.ts +14 -0
- package/dist/src/table/components/DataTableMobileRowActionDrawer.vue.d.ts +4 -0
- package/dist/src/table/components/DataTablePagination.vue.d.ts +6 -0
- package/dist/src/table/components/actions/ActionDialog.vue.d.ts +19 -0
- package/dist/src/table/components/actions/CtaActionDialog.vue.d.ts +4 -0
- package/dist/src/table/components/columns/ColumnDropdown.vue.d.ts +2 -0
- package/dist/src/table/components/columns/ColumnEditorDialog.vue.d.ts +34 -0
- package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +12 -0
- package/dist/src/table/components/date-range-filter/DateRangeFilter.vue.d.ts +2 -0
- package/dist/src/table/components/date-range-filter/DateRangeSettingsDialog.vue.d.ts +27 -0
- package/dist/src/table/components/filters/FilterDialog.vue.d.ts +12 -0
- package/dist/src/table/components/filters/Filters.vue.d.ts +27 -0
- package/dist/src/table/components/search/Search.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortMode.vue.d.ts +2 -0
- package/dist/src/table/components/sort/SortModeSettingsDialog.vue.d.ts +18 -0
- package/dist/src/table/components/stats/StatDialog.vue.d.ts +12 -0
- package/dist/src/table/components/stats/Stats.vue.d.ts +27 -0
- package/dist/src/table/flow-builder-extensions/TableRowEditor.vue.d.ts +16 -0
- package/dist/src/table/flow-builder-extensions/row-item.d.ts +17 -3
- package/dist/src/table/index.d.ts +2 -2
- package/dist/src/table/index.vue.d.ts +22 -0
- package/dist/src/table/pages/TableView.vue.d.ts +54 -0
- package/dist/src/table/routes.d.ts +1 -1
- package/dist/src/types/index.d.ts +0 -6
- package/dist/utils-CanmrIWO.mjs +47 -0
- package/dist/utils-Yd6F5mea.js +3 -0
- package/dist/vee-validate-zod-ByykgYKJ.js +1 -0
- package/dist/vee-validate-zod-DNjTLCgh.mjs +4402 -0
- package/package.json +56 -55
- package/dist/Acquisition-DypEyPSO.js +0 -1
- package/dist/Acquisition-TCNX-th6.mjs +0 -308
- package/dist/AgendaOpeningHoursCard-BIhm0vpV.js +0 -1
- package/dist/AgendaOpeningHoursCard-BKUdJxRI.mjs +0 -133
- package/dist/AppointmentDetailsCard-C5rQ5jsW.js +0 -1
- package/dist/AppointmentDetailsCard-NRHeNP2L.mjs +0 -111
- package/dist/AppointmentEditor-BcF8CiD-.mjs +0 -150
- package/dist/AppointmentEditor-BlhFtoCm.js +0 -1
- package/dist/AppointmentListTable-B-ReBVtV.js +0 -1
- package/dist/AppointmentListTable-DHmy-iid.mjs +0 -129
- package/dist/Audience-CfWHjjg8.mjs +0 -394
- package/dist/Audience-Cj4TyauW.js +0 -1
- package/dist/Components-BehelN4r.js +0 -1
- package/dist/Components-CR6zukUU.mjs +0 -468
- package/dist/Content-C5Iye3t0.mjs +0 -257
- package/dist/Content-eOfBx52Y.js +0 -1
- package/dist/ContentEditor-BgL4qEeg.mjs +0 -26835
- package/dist/ContentEditor-Tlu3w0Hu.js +0 -462
- package/dist/CountryBreakdownCard-CWVyB8be.mjs +0 -151
- package/dist/CountryBreakdownCard-Db-pMiNe.js +0 -1
- package/dist/Create-B1it8S4m.js +0 -1
- package/dist/Create-DbYi0FAI.mjs +0 -907
- package/dist/DateFormatter-DLrDYkby.mjs +0 -630
- package/dist/DateFormatter-Dni0Oq8r.js +0 -1
- package/dist/Detail-D-eahJGO.mjs +0 -21
- package/dist/Detail-D0kdPPIm.mjs +0 -2757
- package/dist/Detail-DAafePYi.mjs +0 -485
- package/dist/Detail-DYpv4fYg.js +0 -1
- package/dist/Detail-Dc_ui4LM.js +0 -1
- package/dist/Detail-DccUekl_.js +0 -1
- package/dist/Detail-Dhz0V0Vf.js +0 -1
- package/dist/Detail-DjnGY0F8.mjs +0 -282
- package/dist/Detail-DplAitHg.mjs +0 -447
- package/dist/Detail-SugyeSxb.js +0 -1
- package/dist/DeviceBreakdownCard-CzxZT6To.js +0 -1
- package/dist/DeviceBreakdownCard-eEwPjzKl.mjs +0 -115
- package/dist/EditLayout-Bnz9q_jd.js +0 -1
- package/dist/EditLayout-J_DGXb8v.mjs +0 -99
- package/dist/Entries-CgpWg6fE.js +0 -1
- package/dist/Entries-CkGTXcAq.mjs +0 -575
- package/dist/Find-Bz0TNJzk.mjs +0 -164
- package/dist/Find-D-ItTXaZ.js +0 -1
- package/dist/GlobalStyling-CSQPF7o_.mjs +0 -1162
- package/dist/GlobalStyling-DabldMZh.js +0 -15
- package/dist/NewReservationDialog-BhIiY2B9.js +0 -1
- package/dist/NewReservationDialog-CN49aGcM.mjs +0 -1002
- package/dist/OrderDetailDialog-BJ01DZFe.js +0 -1
- package/dist/OrderDetailDialog-CoVQ_rzs.mjs +0 -215
- package/dist/Overview-9FMgn5hT.mjs +0 -492
- package/dist/Overview-BOOwMQ-c.mjs +0 -636
- package/dist/Overview-Biz3h60w.js +0 -1
- package/dist/Overview-C2K2ofdS.js +0 -1
- package/dist/Overview-CFHOXP9N.mjs +0 -123
- package/dist/Overview-CTJe7J5_.js +0 -1
- package/dist/Overview-Cvj2i9eW.js +0 -1
- package/dist/Overview-D2I1F8Dm.mjs +0 -21
- package/dist/Overview-DFOc9emt.mjs +0 -345
- package/dist/Overview-Dmhfb94Y.js +0 -1
- package/dist/Overview-PPzv7weG.mjs +0 -450
- package/dist/Overview-qFKcXHVF.js +0 -1
- package/dist/Overview-xkmYYTae.mjs +0 -133
- package/dist/Overview-yPsLvR2c.js +0 -1
- package/dist/PeakHoursCard-CtgEP-ez.mjs +0 -157
- package/dist/PeakHoursCard-DPeoMyhu.js +0 -1
- package/dist/ProductDetailsCard-B0WhmzO-.mjs +0 -98
- package/dist/ProductDetailsCard-C1ROuH6l.js +0 -1
- package/dist/RealtimeCard-DQno-Okz.js +0 -1
- package/dist/RealtimeCard-dR-g1iDo.mjs +0 -92
- package/dist/ReservationDetailDialog-Cdo6h0RD.mjs +0 -2163
- package/dist/ReservationDetailDialog-DZTFD2xI.js +0 -349
- package/dist/SearchTermsCard-BXJSXz_k.js +0 -1
- package/dist/SearchTermsCard-DsaxLKwP.mjs +0 -146
- package/dist/SendPush-Bssi-OZD.mjs +0 -150
- package/dist/SendPush-BuaYboRH.js +0 -1
- package/dist/SeoHealth-CP-kL0us.js +0 -1
- package/dist/SeoHealth-Cxp_Gb3Y.mjs +0 -459
- package/dist/TableView-7iwBkQ_k.mjs +0 -4757
- package/dist/TableView-BB_oIYYZ.js +0 -4
- package/dist/TemplateList-CNcM_Kgq.mjs +0 -56
- package/dist/TemplateList-VuPcBUJO.js +0 -1
- package/dist/TopPagesCard-CvDECn3_.mjs +0 -117
- package/dist/TopPagesCard-DNdATXJE.js +0 -1
- package/dist/TrafficSourcesCard-BLpBr7u0.mjs +0 -151
- package/dist/TrafficSourcesCard-_3gRUCw3.js +0 -1
- package/dist/View-DSnUHI7h.mjs +0 -30
- package/dist/View-Dbcfpdqh.js +0 -1
- package/dist/VisitorStatsCard-CFEnXSjF.mjs +0 -185
- package/dist/VisitorStatsCard-C_jhQxDW.js +0 -1
- package/dist/_plugin-vue_export-helper-5u7tqpWC.js +0 -1
- package/dist/_plugin-vue_export-helper-BJQSo0im.mjs +0 -8
- package/dist/agenda-CzMRcQTA.mjs +0 -989
- package/dist/agenda-D4zWRYSQ.js +0 -1
- package/dist/appointments-9syR5TZE.js +0 -1
- package/dist/appointments-BBmOJMhM.mjs +0 -23
- package/dist/array-BH1uH7XT.js +0 -1
- package/dist/array-DnDL9cFz.mjs +0 -98
- package/dist/availability-CAXB7Yd6.js +0 -1
- package/dist/availability-Dp7eF-ZK.mjs +0 -215
- package/dist/booking-data-Bysf6e5x.mjs +0 -724
- package/dist/booking-data-C6SGjC2X.js +0 -1
- package/dist/chunk-DQi1bQcV.js +0 -1
- package/dist/contentManager-D7JxXCwE.js +0 -1
- package/dist/contentManager-tfy0x1LD.mjs +0 -22
- package/dist/context-AQKfnJ4t.mjs +0 -3809
- package/dist/context-ubyMq9Xe.js +0 -54
- package/dist/core-Dhgr4ctC.mjs +0 -202
- package/dist/core-_HKfBlaZ.js +0 -1
- package/dist/countries-MXLT3mVe.mjs +0 -4
- package/dist/countries-OCd5qPxG.js +0 -1
- package/dist/create-BfNc2C7N.js +0 -1
- package/dist/create-C7JlIlIh.mjs +0 -95
- package/dist/custom-BwN9-6Mb.js +0 -1
- package/dist/custom-INNwaWla.mjs +0 -13
- package/dist/dist-BCVg7FKM.js +0 -1
- package/dist/dist-DIhK9VWh.mjs +0 -3045
- package/dist/edit-BiI2VG60.js +0 -35
- package/dist/edit-DD3iFBEh.mjs +0 -1097
- package/dist/exceptions-DICMaDcH.mjs +0 -462
- package/dist/exceptions-DpWqMNuG.js +0 -1
- package/dist/google-Bcc4XZnV.mjs +0 -4
- package/dist/google-DTSRmJ51.js +0 -1
- package/dist/googleAnalytics-BSaqRR_L.js +0 -1
- package/dist/googleAnalytics-Cg-iWblZ.mjs +0 -47
- package/dist/interpolation-B8OzkMyi.mjs +0 -131
- package/dist/interpolation-DpAqtGOW.js +0 -1
- package/dist/lib-4wSi00Vr.js +0 -1
- package/dist/lib-BZgXUui5.mjs +0 -198
- package/dist/line-DJdnFNI7.js +0 -75
- package/dist/line-tYLnEDGV.mjs +0 -1500
- package/dist/mailTemplates-BNk8fhVS.mjs +0 -23
- package/dist/mailTemplates-DswHzyQe.js +0 -1
- package/dist/orders-CIc0JlKX.mjs +0 -512
- package/dist/orders-DwPSi_pD.js +0 -1
- package/dist/payment-BsNWFaDm.js +0 -1
- package/dist/payment-Ced5_dpa.mjs +0 -718
- package/dist/productCollections-Cuvw_8zC.js +0 -1
- package/dist/productCollections-D0AxRlzr.mjs +0 -23
- package/dist/products-DUD-ZMkR.mjs +0 -22
- package/dist/products-DvX9B-Ul.js +0 -1
- package/dist/promoCodes-BCWqN6w4.mjs +0 -23
- package/dist/promoCodes-CEZ4LYot.js +0 -1
- package/dist/push-notifications-BGp4XWo9.js +0 -1
- package/dist/push-notifications-C7W7KuzR.mjs +0 -23
- package/dist/regular-BCFrS6lK.mjs +0 -908
- package/dist/regular-DBqPgT8C.js +0 -1
- package/dist/resources-DwsMmWgm.mjs +0 -669
- package/dist/resources-Dz81GkHe.js +0 -1
- package/dist/shippingOptions-C3NEJff1.mjs +0 -23
- package/dist/shippingOptions-Cy040ZW1.js +0 -1
- package/dist/single-container-BJmmqq65.mjs +0 -468
- package/dist/single-container-Xoo0Xzxv.js +0 -58
- package/dist/src/vue-shim.d.ts +0 -7
- package/dist/table-DWw0fs3S.js +0 -1
- package/dist/table-LXt5DQOL.mjs +0 -23
- package/dist/utils-CVIHqQsU.js +0 -3
- package/dist/utils-h3owcMtS.mjs +0 -37
- package/dist/vee-validate-zod-BmXMJo8W.js +0 -1
- package/dist/vee-validate-zod-D9dZzbWZ.mjs +0 -4985
- package/dist/xy-container-CuQSwrtB.mjs +0 -3180
- package/dist/xy-container-_6YpscZh.js +0 -158
|
@@ -0,0 +1,1403 @@
|
|
|
1
|
+
import { defineComponent as gt, inject as bt, computed as mt, ref as kt, onMounted as St, nextTick as wt, onUnmounted as Tt, watch as L, openBlock as Ot, createElementBlock as Nt } from "vue";
|
|
2
|
+
import { l as T, D as Pt, M as H, I as U, v as F, q as j, z as Ct, Y as At, A as te, Z as D, w as ee, o as ie, x as ne, R as Mt, N as jt, n as Dt } from "./index-CkVwMqpn.mjs";
|
|
3
|
+
import { b as Et, X as Rt, D as q } from "./index-BIF2RB7k.mjs";
|
|
4
|
+
import { e as k, p as Bt, g as _t } from "./math-BJ-oX_IM.mjs";
|
|
5
|
+
function $t(t) {
|
|
6
|
+
this._context = t;
|
|
7
|
+
}
|
|
8
|
+
$t.prototype = {
|
|
9
|
+
areaStart: function() {
|
|
10
|
+
this._line = 0;
|
|
11
|
+
},
|
|
12
|
+
areaEnd: function() {
|
|
13
|
+
this._line = NaN;
|
|
14
|
+
},
|
|
15
|
+
lineStart: function() {
|
|
16
|
+
this._point = 0;
|
|
17
|
+
},
|
|
18
|
+
lineEnd: function() {
|
|
19
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
20
|
+
},
|
|
21
|
+
point: function(t, e) {
|
|
22
|
+
switch (t = +t, e = +e, this._point) {
|
|
23
|
+
case 0:
|
|
24
|
+
this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
|
|
25
|
+
break;
|
|
26
|
+
case 1:
|
|
27
|
+
this._point = 2;
|
|
28
|
+
// proceed
|
|
29
|
+
default:
|
|
30
|
+
this._context.lineTo(t, e);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function ot(t) {
|
|
36
|
+
return new $t(t);
|
|
37
|
+
}
|
|
38
|
+
function Ht(t) {
|
|
39
|
+
return t[0];
|
|
40
|
+
}
|
|
41
|
+
function Lt(t) {
|
|
42
|
+
return t[1];
|
|
43
|
+
}
|
|
44
|
+
function Ft() {
|
|
45
|
+
var t = Ht, e = Lt, i = k(!0), n = null, s = ot, o = null;
|
|
46
|
+
function a(r) {
|
|
47
|
+
var l, y = r.length, _, h = !1, c;
|
|
48
|
+
for (n == null && (o = s(c = Bt())), l = 0; l <= y; ++l)
|
|
49
|
+
!(l < y && i(_ = r[l], l, r)) === h && ((h = !h) ? o.lineStart() : o.lineEnd()), h && o.point(+t(_, l, r), +e(_, l, r));
|
|
50
|
+
if (c) return o = null, c + "" || null;
|
|
51
|
+
}
|
|
52
|
+
return a.x = function(r) {
|
|
53
|
+
return arguments.length ? (t = typeof r == "function" ? r : k(+r), a) : t;
|
|
54
|
+
}, a.y = function(r) {
|
|
55
|
+
return arguments.length ? (e = typeof r == "function" ? r : k(+r), a) : e;
|
|
56
|
+
}, a.defined = function(r) {
|
|
57
|
+
return arguments.length ? (i = typeof r == "function" ? r : k(!!r), a) : i;
|
|
58
|
+
}, a.curve = function(r) {
|
|
59
|
+
return arguments.length ? (s = r, n != null && (o = s(n)), a) : s;
|
|
60
|
+
}, a.context = function(r) {
|
|
61
|
+
return arguments.length ? (r == null ? n = o = null : o = s(n = r), a) : n;
|
|
62
|
+
}, a;
|
|
63
|
+
}
|
|
64
|
+
function se() {
|
|
65
|
+
var t = Ht, e = null, i = k(0), n = Lt, s = k(!0), o = null, a = ot, r = null;
|
|
66
|
+
function l(_) {
|
|
67
|
+
var h, c, v, g = _.length, m, u = !1, f, d = new Array(g), p = new Array(g);
|
|
68
|
+
for (o == null && (r = a(f = Bt())), h = 0; h <= g; ++h) {
|
|
69
|
+
if (!(h < g && s(m = _[h], h, _)) === u)
|
|
70
|
+
if (u = !u)
|
|
71
|
+
c = h, r.areaStart(), r.lineStart();
|
|
72
|
+
else {
|
|
73
|
+
for (r.lineEnd(), r.lineStart(), v = h - 1; v >= c; --v)
|
|
74
|
+
r.point(d[v], p[v]);
|
|
75
|
+
r.lineEnd(), r.areaEnd();
|
|
76
|
+
}
|
|
77
|
+
u && (d[h] = +t(m, h, _), p[h] = +i(m, h, _), r.point(e ? +e(m, h, _) : d[h], n ? +n(m, h, _) : p[h]));
|
|
78
|
+
}
|
|
79
|
+
if (f) return r = null, f + "" || null;
|
|
80
|
+
}
|
|
81
|
+
function y() {
|
|
82
|
+
return Ft().defined(s).curve(a).context(o);
|
|
83
|
+
}
|
|
84
|
+
return l.x = function(_) {
|
|
85
|
+
return arguments.length ? (t = typeof _ == "function" ? _ : k(+_), e = null, l) : t;
|
|
86
|
+
}, l.x0 = function(_) {
|
|
87
|
+
return arguments.length ? (t = typeof _ == "function" ? _ : k(+_), l) : t;
|
|
88
|
+
}, l.x1 = function(_) {
|
|
89
|
+
return arguments.length ? (e = _ == null ? null : typeof _ == "function" ? _ : k(+_), l) : e;
|
|
90
|
+
}, l.y = function(_) {
|
|
91
|
+
return arguments.length ? (i = typeof _ == "function" ? _ : k(+_), n = null, l) : i;
|
|
92
|
+
}, l.y0 = function(_) {
|
|
93
|
+
return arguments.length ? (i = typeof _ == "function" ? _ : k(+_), l) : i;
|
|
94
|
+
}, l.y1 = function(_) {
|
|
95
|
+
return arguments.length ? (n = _ == null ? null : typeof _ == "function" ? _ : k(+_), l) : n;
|
|
96
|
+
}, l.lineX0 = l.lineY0 = function() {
|
|
97
|
+
return y().x(t).y(i);
|
|
98
|
+
}, l.lineY1 = function() {
|
|
99
|
+
return y().x(t).y(n);
|
|
100
|
+
}, l.lineX1 = function() {
|
|
101
|
+
return y().x(e).y(i);
|
|
102
|
+
}, l.defined = function(_) {
|
|
103
|
+
return arguments.length ? (s = typeof _ == "function" ? _ : k(!!_), l) : s;
|
|
104
|
+
}, l.curve = function(_) {
|
|
105
|
+
return arguments.length ? (a = _, o != null && (r = a(o)), l) : a;
|
|
106
|
+
}, l.context = function(_) {
|
|
107
|
+
return arguments.length ? (_ == null ? o = r = null : r = a(o = _), l) : o;
|
|
108
|
+
}, l;
|
|
109
|
+
}
|
|
110
|
+
function w() {
|
|
111
|
+
}
|
|
112
|
+
function I(t, e, i) {
|
|
113
|
+
t._context.bezierCurveTo(
|
|
114
|
+
(2 * t._x0 + t._x1) / 3,
|
|
115
|
+
(2 * t._y0 + t._y1) / 3,
|
|
116
|
+
(t._x0 + 2 * t._x1) / 3,
|
|
117
|
+
(t._y0 + 2 * t._y1) / 3,
|
|
118
|
+
(t._x0 + 4 * t._x1 + e) / 6,
|
|
119
|
+
(t._y0 + 4 * t._y1 + i) / 6
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function G(t) {
|
|
123
|
+
this._context = t;
|
|
124
|
+
}
|
|
125
|
+
G.prototype = {
|
|
126
|
+
areaStart: function() {
|
|
127
|
+
this._line = 0;
|
|
128
|
+
},
|
|
129
|
+
areaEnd: function() {
|
|
130
|
+
this._line = NaN;
|
|
131
|
+
},
|
|
132
|
+
lineStart: function() {
|
|
133
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
134
|
+
},
|
|
135
|
+
lineEnd: function() {
|
|
136
|
+
switch (this._point) {
|
|
137
|
+
case 3:
|
|
138
|
+
I(this, this._x1, this._y1);
|
|
139
|
+
// proceed
|
|
140
|
+
case 2:
|
|
141
|
+
this._context.lineTo(this._x1, this._y1);
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
145
|
+
},
|
|
146
|
+
point: function(t, e) {
|
|
147
|
+
switch (t = +t, e = +e, this._point) {
|
|
148
|
+
case 0:
|
|
149
|
+
this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
|
|
150
|
+
break;
|
|
151
|
+
case 1:
|
|
152
|
+
this._point = 2;
|
|
153
|
+
break;
|
|
154
|
+
case 2:
|
|
155
|
+
this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
156
|
+
// proceed
|
|
157
|
+
default:
|
|
158
|
+
I(this, t, e);
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
function oe(t) {
|
|
165
|
+
return new G(t);
|
|
166
|
+
}
|
|
167
|
+
function It(t) {
|
|
168
|
+
this._context = t;
|
|
169
|
+
}
|
|
170
|
+
It.prototype = {
|
|
171
|
+
areaStart: w,
|
|
172
|
+
areaEnd: w,
|
|
173
|
+
lineStart: function() {
|
|
174
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
175
|
+
},
|
|
176
|
+
lineEnd: function() {
|
|
177
|
+
switch (this._point) {
|
|
178
|
+
case 1: {
|
|
179
|
+
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
case 2: {
|
|
183
|
+
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();
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
case 3: {
|
|
187
|
+
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
point: function(t, e) {
|
|
193
|
+
switch (t = +t, e = +e, this._point) {
|
|
194
|
+
case 0:
|
|
195
|
+
this._point = 1, this._x2 = t, this._y2 = e;
|
|
196
|
+
break;
|
|
197
|
+
case 1:
|
|
198
|
+
this._point = 2, this._x3 = t, this._y3 = e;
|
|
199
|
+
break;
|
|
200
|
+
case 2:
|
|
201
|
+
this._point = 3, this._x4 = t, this._y4 = e, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + e) / 6);
|
|
202
|
+
break;
|
|
203
|
+
default:
|
|
204
|
+
I(this, t, e);
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
function re(t) {
|
|
211
|
+
return new It(t);
|
|
212
|
+
}
|
|
213
|
+
function Xt(t) {
|
|
214
|
+
this._context = t;
|
|
215
|
+
}
|
|
216
|
+
Xt.prototype = {
|
|
217
|
+
areaStart: function() {
|
|
218
|
+
this._line = 0;
|
|
219
|
+
},
|
|
220
|
+
areaEnd: function() {
|
|
221
|
+
this._line = NaN;
|
|
222
|
+
},
|
|
223
|
+
lineStart: function() {
|
|
224
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
225
|
+
},
|
|
226
|
+
lineEnd: function() {
|
|
227
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
228
|
+
},
|
|
229
|
+
point: function(t, e) {
|
|
230
|
+
switch (t = +t, e = +e, this._point) {
|
|
231
|
+
case 0:
|
|
232
|
+
this._point = 1;
|
|
233
|
+
break;
|
|
234
|
+
case 1:
|
|
235
|
+
this._point = 2;
|
|
236
|
+
break;
|
|
237
|
+
case 2:
|
|
238
|
+
this._point = 3;
|
|
239
|
+
var i = (this._x0 + 4 * this._x1 + t) / 6, n = (this._y0 + 4 * this._y1 + e) / 6;
|
|
240
|
+
this._line ? this._context.lineTo(i, n) : this._context.moveTo(i, n);
|
|
241
|
+
break;
|
|
242
|
+
case 3:
|
|
243
|
+
this._point = 4;
|
|
244
|
+
// proceed
|
|
245
|
+
default:
|
|
246
|
+
I(this, t, e);
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
function ae(t) {
|
|
253
|
+
return new Xt(t);
|
|
254
|
+
}
|
|
255
|
+
function Yt(t, e) {
|
|
256
|
+
this._basis = new G(t), this._beta = e;
|
|
257
|
+
}
|
|
258
|
+
Yt.prototype = {
|
|
259
|
+
lineStart: function() {
|
|
260
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
261
|
+
},
|
|
262
|
+
lineEnd: function() {
|
|
263
|
+
var t = this._x, e = this._y, i = t.length - 1;
|
|
264
|
+
if (i > 0)
|
|
265
|
+
for (var n = t[0], s = e[0], o = t[i] - n, a = e[i] - s, r = -1, l; ++r <= i; )
|
|
266
|
+
l = r / i, this._basis.point(
|
|
267
|
+
this._beta * t[r] + (1 - this._beta) * (n + l * o),
|
|
268
|
+
this._beta * e[r] + (1 - this._beta) * (s + l * a)
|
|
269
|
+
);
|
|
270
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
271
|
+
},
|
|
272
|
+
point: function(t, e) {
|
|
273
|
+
this._x.push(+t), this._y.push(+e);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
const le = (function t(e) {
|
|
277
|
+
function i(n) {
|
|
278
|
+
return e === 1 ? new G(n) : new Yt(n, e);
|
|
279
|
+
}
|
|
280
|
+
return i.beta = function(n) {
|
|
281
|
+
return t(+n);
|
|
282
|
+
}, i;
|
|
283
|
+
})(0.85);
|
|
284
|
+
function X(t, e, i) {
|
|
285
|
+
t._context.bezierCurveTo(
|
|
286
|
+
t._x1 + t._k * (t._x2 - t._x0),
|
|
287
|
+
t._y1 + t._k * (t._y2 - t._y0),
|
|
288
|
+
t._x2 + t._k * (t._x1 - e),
|
|
289
|
+
t._y2 + t._k * (t._y1 - i),
|
|
290
|
+
t._x2,
|
|
291
|
+
t._y2
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
function rt(t, e) {
|
|
295
|
+
this._context = t, this._k = (1 - e) / 6;
|
|
296
|
+
}
|
|
297
|
+
rt.prototype = {
|
|
298
|
+
areaStart: function() {
|
|
299
|
+
this._line = 0;
|
|
300
|
+
},
|
|
301
|
+
areaEnd: function() {
|
|
302
|
+
this._line = NaN;
|
|
303
|
+
},
|
|
304
|
+
lineStart: function() {
|
|
305
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
306
|
+
},
|
|
307
|
+
lineEnd: function() {
|
|
308
|
+
switch (this._point) {
|
|
309
|
+
case 2:
|
|
310
|
+
this._context.lineTo(this._x2, this._y2);
|
|
311
|
+
break;
|
|
312
|
+
case 3:
|
|
313
|
+
X(this, this._x1, this._y1);
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
317
|
+
},
|
|
318
|
+
point: function(t, e) {
|
|
319
|
+
switch (t = +t, e = +e, this._point) {
|
|
320
|
+
case 0:
|
|
321
|
+
this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
|
|
322
|
+
break;
|
|
323
|
+
case 1:
|
|
324
|
+
this._point = 2, this._x1 = t, this._y1 = e;
|
|
325
|
+
break;
|
|
326
|
+
case 2:
|
|
327
|
+
this._point = 3;
|
|
328
|
+
// proceed
|
|
329
|
+
default:
|
|
330
|
+
X(this, t, e);
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
const he = (function t(e) {
|
|
337
|
+
function i(n) {
|
|
338
|
+
return new rt(n, e);
|
|
339
|
+
}
|
|
340
|
+
return i.tension = function(n) {
|
|
341
|
+
return t(+n);
|
|
342
|
+
}, i;
|
|
343
|
+
})(0);
|
|
344
|
+
function at(t, e) {
|
|
345
|
+
this._context = t, this._k = (1 - e) / 6;
|
|
346
|
+
}
|
|
347
|
+
at.prototype = {
|
|
348
|
+
areaStart: w,
|
|
349
|
+
areaEnd: w,
|
|
350
|
+
lineStart: function() {
|
|
351
|
+
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;
|
|
352
|
+
},
|
|
353
|
+
lineEnd: function() {
|
|
354
|
+
switch (this._point) {
|
|
355
|
+
case 1: {
|
|
356
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
case 2: {
|
|
360
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
case 3: {
|
|
364
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
point: function(t, e) {
|
|
370
|
+
switch (t = +t, e = +e, this._point) {
|
|
371
|
+
case 0:
|
|
372
|
+
this._point = 1, this._x3 = t, this._y3 = e;
|
|
373
|
+
break;
|
|
374
|
+
case 1:
|
|
375
|
+
this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = e);
|
|
376
|
+
break;
|
|
377
|
+
case 2:
|
|
378
|
+
this._point = 3, this._x5 = t, this._y5 = e;
|
|
379
|
+
break;
|
|
380
|
+
default:
|
|
381
|
+
X(this, t, e);
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
const _e = (function t(e) {
|
|
388
|
+
function i(n) {
|
|
389
|
+
return new at(n, e);
|
|
390
|
+
}
|
|
391
|
+
return i.tension = function(n) {
|
|
392
|
+
return t(+n);
|
|
393
|
+
}, i;
|
|
394
|
+
})(0);
|
|
395
|
+
function lt(t, e) {
|
|
396
|
+
this._context = t, this._k = (1 - e) / 6;
|
|
397
|
+
}
|
|
398
|
+
lt.prototype = {
|
|
399
|
+
areaStart: function() {
|
|
400
|
+
this._line = 0;
|
|
401
|
+
},
|
|
402
|
+
areaEnd: function() {
|
|
403
|
+
this._line = NaN;
|
|
404
|
+
},
|
|
405
|
+
lineStart: function() {
|
|
406
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
407
|
+
},
|
|
408
|
+
lineEnd: function() {
|
|
409
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
410
|
+
},
|
|
411
|
+
point: function(t, e) {
|
|
412
|
+
switch (t = +t, e = +e, this._point) {
|
|
413
|
+
case 0:
|
|
414
|
+
this._point = 1;
|
|
415
|
+
break;
|
|
416
|
+
case 1:
|
|
417
|
+
this._point = 2;
|
|
418
|
+
break;
|
|
419
|
+
case 2:
|
|
420
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
421
|
+
break;
|
|
422
|
+
case 3:
|
|
423
|
+
this._point = 4;
|
|
424
|
+
// proceed
|
|
425
|
+
default:
|
|
426
|
+
X(this, t, e);
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const ce = (function t(e) {
|
|
433
|
+
function i(n) {
|
|
434
|
+
return new lt(n, e);
|
|
435
|
+
}
|
|
436
|
+
return i.tension = function(n) {
|
|
437
|
+
return t(+n);
|
|
438
|
+
}, i;
|
|
439
|
+
})(0);
|
|
440
|
+
function ht(t, e, i) {
|
|
441
|
+
var n = t._x1, s = t._y1, o = t._x2, a = t._y2;
|
|
442
|
+
if (t._l01_a > _t) {
|
|
443
|
+
var r = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, l = 3 * t._l01_a * (t._l01_a + t._l12_a);
|
|
444
|
+
n = (n * r - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / l, s = (s * r - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / l;
|
|
445
|
+
}
|
|
446
|
+
if (t._l23_a > _t) {
|
|
447
|
+
var y = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, _ = 3 * t._l23_a * (t._l23_a + t._l12_a);
|
|
448
|
+
o = (o * y + t._x1 * t._l23_2a - e * t._l12_2a) / _, a = (a * y + t._y1 * t._l23_2a - i * t._l12_2a) / _;
|
|
449
|
+
}
|
|
450
|
+
t._context.bezierCurveTo(n, s, o, a, t._x2, t._y2);
|
|
451
|
+
}
|
|
452
|
+
function zt(t, e) {
|
|
453
|
+
this._context = t, this._alpha = e;
|
|
454
|
+
}
|
|
455
|
+
zt.prototype = {
|
|
456
|
+
areaStart: function() {
|
|
457
|
+
this._line = 0;
|
|
458
|
+
},
|
|
459
|
+
areaEnd: function() {
|
|
460
|
+
this._line = NaN;
|
|
461
|
+
},
|
|
462
|
+
lineStart: function() {
|
|
463
|
+
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;
|
|
464
|
+
},
|
|
465
|
+
lineEnd: function() {
|
|
466
|
+
switch (this._point) {
|
|
467
|
+
case 2:
|
|
468
|
+
this._context.lineTo(this._x2, this._y2);
|
|
469
|
+
break;
|
|
470
|
+
case 3:
|
|
471
|
+
this.point(this._x2, this._y2);
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
475
|
+
},
|
|
476
|
+
point: function(t, e) {
|
|
477
|
+
if (t = +t, e = +e, this._point) {
|
|
478
|
+
var i = this._x2 - t, n = this._y2 - e;
|
|
479
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + n * n, this._alpha));
|
|
480
|
+
}
|
|
481
|
+
switch (this._point) {
|
|
482
|
+
case 0:
|
|
483
|
+
this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
|
|
484
|
+
break;
|
|
485
|
+
case 1:
|
|
486
|
+
this._point = 2;
|
|
487
|
+
break;
|
|
488
|
+
case 2:
|
|
489
|
+
this._point = 3;
|
|
490
|
+
// proceed
|
|
491
|
+
default:
|
|
492
|
+
ht(this, t, e);
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
const ue = (function t(e) {
|
|
499
|
+
function i(n) {
|
|
500
|
+
return e ? new zt(n, e) : new rt(n, 0);
|
|
501
|
+
}
|
|
502
|
+
return i.alpha = function(n) {
|
|
503
|
+
return t(+n);
|
|
504
|
+
}, i;
|
|
505
|
+
})(0.5);
|
|
506
|
+
function Gt(t, e) {
|
|
507
|
+
this._context = t, this._alpha = e;
|
|
508
|
+
}
|
|
509
|
+
Gt.prototype = {
|
|
510
|
+
areaStart: w,
|
|
511
|
+
areaEnd: w,
|
|
512
|
+
lineStart: function() {
|
|
513
|
+
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;
|
|
514
|
+
},
|
|
515
|
+
lineEnd: function() {
|
|
516
|
+
switch (this._point) {
|
|
517
|
+
case 1: {
|
|
518
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
case 2: {
|
|
522
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
case 3: {
|
|
526
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
point: function(t, e) {
|
|
532
|
+
if (t = +t, e = +e, this._point) {
|
|
533
|
+
var i = this._x2 - t, n = this._y2 - e;
|
|
534
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + n * n, this._alpha));
|
|
535
|
+
}
|
|
536
|
+
switch (this._point) {
|
|
537
|
+
case 0:
|
|
538
|
+
this._point = 1, this._x3 = t, this._y3 = e;
|
|
539
|
+
break;
|
|
540
|
+
case 1:
|
|
541
|
+
this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = e);
|
|
542
|
+
break;
|
|
543
|
+
case 2:
|
|
544
|
+
this._point = 3, this._x5 = t, this._y5 = e;
|
|
545
|
+
break;
|
|
546
|
+
default:
|
|
547
|
+
ht(this, t, e);
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
const fe = (function t(e) {
|
|
554
|
+
function i(n) {
|
|
555
|
+
return e ? new Gt(n, e) : new at(n, 0);
|
|
556
|
+
}
|
|
557
|
+
return i.alpha = function(n) {
|
|
558
|
+
return t(+n);
|
|
559
|
+
}, i;
|
|
560
|
+
})(0.5);
|
|
561
|
+
function Vt(t, e) {
|
|
562
|
+
this._context = t, this._alpha = e;
|
|
563
|
+
}
|
|
564
|
+
Vt.prototype = {
|
|
565
|
+
areaStart: function() {
|
|
566
|
+
this._line = 0;
|
|
567
|
+
},
|
|
568
|
+
areaEnd: function() {
|
|
569
|
+
this._line = NaN;
|
|
570
|
+
},
|
|
571
|
+
lineStart: function() {
|
|
572
|
+
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;
|
|
573
|
+
},
|
|
574
|
+
lineEnd: function() {
|
|
575
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
576
|
+
},
|
|
577
|
+
point: function(t, e) {
|
|
578
|
+
if (t = +t, e = +e, this._point) {
|
|
579
|
+
var i = this._x2 - t, n = this._y2 - e;
|
|
580
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + n * n, this._alpha));
|
|
581
|
+
}
|
|
582
|
+
switch (this._point) {
|
|
583
|
+
case 0:
|
|
584
|
+
this._point = 1;
|
|
585
|
+
break;
|
|
586
|
+
case 1:
|
|
587
|
+
this._point = 2;
|
|
588
|
+
break;
|
|
589
|
+
case 2:
|
|
590
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
591
|
+
break;
|
|
592
|
+
case 3:
|
|
593
|
+
this._point = 4;
|
|
594
|
+
// proceed
|
|
595
|
+
default:
|
|
596
|
+
ht(this, t, e);
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
const pe = (function t(e) {
|
|
603
|
+
function i(n) {
|
|
604
|
+
return e ? new Vt(n, e) : new lt(n, 0);
|
|
605
|
+
}
|
|
606
|
+
return i.alpha = function(n) {
|
|
607
|
+
return t(+n);
|
|
608
|
+
}, i;
|
|
609
|
+
})(0.5);
|
|
610
|
+
function Zt(t) {
|
|
611
|
+
this._context = t;
|
|
612
|
+
}
|
|
613
|
+
Zt.prototype = {
|
|
614
|
+
areaStart: w,
|
|
615
|
+
areaEnd: w,
|
|
616
|
+
lineStart: function() {
|
|
617
|
+
this._point = 0;
|
|
618
|
+
},
|
|
619
|
+
lineEnd: function() {
|
|
620
|
+
this._point && this._context.closePath();
|
|
621
|
+
},
|
|
622
|
+
point: function(t, e) {
|
|
623
|
+
t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e));
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
function ye(t) {
|
|
627
|
+
return new Zt(t);
|
|
628
|
+
}
|
|
629
|
+
function ct(t) {
|
|
630
|
+
return t < 0 ? -1 : 1;
|
|
631
|
+
}
|
|
632
|
+
function ut(t, e, i) {
|
|
633
|
+
var n = t._x1 - t._x0, s = e - t._x1, o = (t._y1 - t._y0) / (n || s < 0 && -0), a = (i - t._y1) / (s || n < 0 && -0), r = (o * s + a * n) / (n + s);
|
|
634
|
+
return (ct(o) + ct(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(r)) || 0;
|
|
635
|
+
}
|
|
636
|
+
function ft(t, e) {
|
|
637
|
+
var i = t._x1 - t._x0;
|
|
638
|
+
return i ? (3 * (t._y1 - t._y0) / i - e) / 2 : e;
|
|
639
|
+
}
|
|
640
|
+
function Q(t, e, i) {
|
|
641
|
+
var n = t._x0, s = t._y0, o = t._x1, a = t._y1, r = (o - n) / 3;
|
|
642
|
+
t._context.bezierCurveTo(n + r, s + r * e, o - r, a - r * i, o, a);
|
|
643
|
+
}
|
|
644
|
+
function Y(t) {
|
|
645
|
+
this._context = t;
|
|
646
|
+
}
|
|
647
|
+
Y.prototype = {
|
|
648
|
+
areaStart: function() {
|
|
649
|
+
this._line = 0;
|
|
650
|
+
},
|
|
651
|
+
areaEnd: function() {
|
|
652
|
+
this._line = NaN;
|
|
653
|
+
},
|
|
654
|
+
lineStart: function() {
|
|
655
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
656
|
+
},
|
|
657
|
+
lineEnd: function() {
|
|
658
|
+
switch (this._point) {
|
|
659
|
+
case 2:
|
|
660
|
+
this._context.lineTo(this._x1, this._y1);
|
|
661
|
+
break;
|
|
662
|
+
case 3:
|
|
663
|
+
Q(this, this._t0, ft(this, this._t0));
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
667
|
+
},
|
|
668
|
+
point: function(t, e) {
|
|
669
|
+
var i = NaN;
|
|
670
|
+
if (t = +t, e = +e, !(t === this._x1 && e === this._y1)) {
|
|
671
|
+
switch (this._point) {
|
|
672
|
+
case 0:
|
|
673
|
+
this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
|
|
674
|
+
break;
|
|
675
|
+
case 1:
|
|
676
|
+
this._point = 2;
|
|
677
|
+
break;
|
|
678
|
+
case 2:
|
|
679
|
+
this._point = 3, Q(this, ft(this, i = ut(this, t, e)), i);
|
|
680
|
+
break;
|
|
681
|
+
default:
|
|
682
|
+
Q(this, this._t0, i = ut(this, t, e));
|
|
683
|
+
break;
|
|
684
|
+
}
|
|
685
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e, this._t0 = i;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
function Wt(t) {
|
|
690
|
+
this._context = new qt(t);
|
|
691
|
+
}
|
|
692
|
+
(Wt.prototype = Object.create(Y.prototype)).point = function(t, e) {
|
|
693
|
+
Y.prototype.point.call(this, e, t);
|
|
694
|
+
};
|
|
695
|
+
function qt(t) {
|
|
696
|
+
this._context = t;
|
|
697
|
+
}
|
|
698
|
+
qt.prototype = {
|
|
699
|
+
moveTo: function(t, e) {
|
|
700
|
+
this._context.moveTo(e, t);
|
|
701
|
+
},
|
|
702
|
+
closePath: function() {
|
|
703
|
+
this._context.closePath();
|
|
704
|
+
},
|
|
705
|
+
lineTo: function(t, e) {
|
|
706
|
+
this._context.lineTo(e, t);
|
|
707
|
+
},
|
|
708
|
+
bezierCurveTo: function(t, e, i, n, s, o) {
|
|
709
|
+
this._context.bezierCurveTo(e, t, n, i, o, s);
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
function de(t) {
|
|
713
|
+
return new Y(t);
|
|
714
|
+
}
|
|
715
|
+
function ve(t) {
|
|
716
|
+
return new Wt(t);
|
|
717
|
+
}
|
|
718
|
+
function Qt(t) {
|
|
719
|
+
this._context = t;
|
|
720
|
+
}
|
|
721
|
+
Qt.prototype = {
|
|
722
|
+
areaStart: function() {
|
|
723
|
+
this._line = 0;
|
|
724
|
+
},
|
|
725
|
+
areaEnd: function() {
|
|
726
|
+
this._line = NaN;
|
|
727
|
+
},
|
|
728
|
+
lineStart: function() {
|
|
729
|
+
this._x = [], this._y = [];
|
|
730
|
+
},
|
|
731
|
+
lineEnd: function() {
|
|
732
|
+
var t = this._x, e = this._y, i = t.length;
|
|
733
|
+
if (i)
|
|
734
|
+
if (this._line ? this._context.lineTo(t[0], e[0]) : this._context.moveTo(t[0], e[0]), i === 2)
|
|
735
|
+
this._context.lineTo(t[1], e[1]);
|
|
736
|
+
else
|
|
737
|
+
for (var n = pt(t), s = pt(e), o = 0, a = 1; a < i; ++o, ++a)
|
|
738
|
+
this._context.bezierCurveTo(n[0][o], s[0][o], n[1][o], s[1][o], t[a], e[a]);
|
|
739
|
+
(this._line || this._line !== 0 && i === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
740
|
+
},
|
|
741
|
+
point: function(t, e) {
|
|
742
|
+
this._x.push(+t), this._y.push(+e);
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
function pt(t) {
|
|
746
|
+
var e, i = t.length - 1, n, s = new Array(i), o = new Array(i), a = new Array(i);
|
|
747
|
+
for (s[0] = 0, o[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; e < i - 1; ++e) s[e] = 1, o[e] = 4, a[e] = 4 * t[e] + 2 * t[e + 1];
|
|
748
|
+
for (s[i - 1] = 2, o[i - 1] = 7, a[i - 1] = 8 * t[i - 1] + t[i], e = 1; e < i; ++e) n = s[e] / o[e - 1], o[e] -= n, a[e] -= n * a[e - 1];
|
|
749
|
+
for (s[i - 1] = a[i - 1] / o[i - 1], e = i - 2; e >= 0; --e) s[e] = (a[e] - s[e + 1]) / o[e];
|
|
750
|
+
for (o[i - 1] = (t[i] + s[i - 1]) / 2, e = 0; e < i - 1; ++e) o[e] = 2 * t[e + 1] - s[e + 1];
|
|
751
|
+
return [s, o];
|
|
752
|
+
}
|
|
753
|
+
function xe(t) {
|
|
754
|
+
return new Qt(t);
|
|
755
|
+
}
|
|
756
|
+
function V(t, e) {
|
|
757
|
+
this._context = t, this._t = e;
|
|
758
|
+
}
|
|
759
|
+
V.prototype = {
|
|
760
|
+
areaStart: function() {
|
|
761
|
+
this._line = 0;
|
|
762
|
+
},
|
|
763
|
+
areaEnd: function() {
|
|
764
|
+
this._line = NaN;
|
|
765
|
+
},
|
|
766
|
+
lineStart: function() {
|
|
767
|
+
this._x = this._y = NaN, this._point = 0;
|
|
768
|
+
},
|
|
769
|
+
lineEnd: function() {
|
|
770
|
+
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);
|
|
771
|
+
},
|
|
772
|
+
point: function(t, e) {
|
|
773
|
+
switch (t = +t, e = +e, this._point) {
|
|
774
|
+
case 0:
|
|
775
|
+
this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
|
|
776
|
+
break;
|
|
777
|
+
case 1:
|
|
778
|
+
this._point = 2;
|
|
779
|
+
// proceed
|
|
780
|
+
default: {
|
|
781
|
+
if (this._t <= 0)
|
|
782
|
+
this._context.lineTo(this._x, e), this._context.lineTo(t, e);
|
|
783
|
+
else {
|
|
784
|
+
var i = this._x * (1 - this._t) + t * this._t;
|
|
785
|
+
this._context.lineTo(i, this._y), this._context.lineTo(i, e);
|
|
786
|
+
}
|
|
787
|
+
break;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
this._x = t, this._y = e;
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
function ge(t) {
|
|
794
|
+
return new V(t, 0.5);
|
|
795
|
+
}
|
|
796
|
+
function be(t) {
|
|
797
|
+
return new V(t, 0);
|
|
798
|
+
}
|
|
799
|
+
function me(t) {
|
|
800
|
+
return new V(t, 1);
|
|
801
|
+
}
|
|
802
|
+
function yt(t, e) {
|
|
803
|
+
var i = Object.keys(t);
|
|
804
|
+
if (Object.getOwnPropertySymbols) {
|
|
805
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
806
|
+
e && (n = n.filter(function(s) {
|
|
807
|
+
return Object.getOwnPropertyDescriptor(t, s).enumerable;
|
|
808
|
+
})), i.push.apply(i, n);
|
|
809
|
+
}
|
|
810
|
+
return i;
|
|
811
|
+
}
|
|
812
|
+
function ke(t) {
|
|
813
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
814
|
+
var i = arguments[e] != null ? arguments[e] : {};
|
|
815
|
+
e % 2 ? yt(Object(i), !0).forEach(function(n) {
|
|
816
|
+
Se(t, n, i[n]);
|
|
817
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : yt(Object(i)).forEach(function(n) {
|
|
818
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(i, n));
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
return t;
|
|
822
|
+
}
|
|
823
|
+
function E(t) {
|
|
824
|
+
"@babel/helpers - typeof";
|
|
825
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? E = function(e) {
|
|
826
|
+
return typeof e;
|
|
827
|
+
} : E = function(e) {
|
|
828
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
829
|
+
}, E(t);
|
|
830
|
+
}
|
|
831
|
+
function Se(t, e, i) {
|
|
832
|
+
return e in t ? Object.defineProperty(t, e, {
|
|
833
|
+
value: i,
|
|
834
|
+
enumerable: !0,
|
|
835
|
+
configurable: !0,
|
|
836
|
+
writable: !0
|
|
837
|
+
}) : t[e] = i, t;
|
|
838
|
+
}
|
|
839
|
+
function z() {
|
|
840
|
+
return z = Object.assign || function(t) {
|
|
841
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
842
|
+
var i = arguments[e];
|
|
843
|
+
for (var n in i)
|
|
844
|
+
Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
845
|
+
}
|
|
846
|
+
return t;
|
|
847
|
+
}, z.apply(this, arguments);
|
|
848
|
+
}
|
|
849
|
+
function we(t, e) {
|
|
850
|
+
if (t) {
|
|
851
|
+
if (typeof t == "string") return dt(t, e);
|
|
852
|
+
var i = Object.prototype.toString.call(t).slice(8, -1);
|
|
853
|
+
if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
|
|
854
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return dt(t, e);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
function dt(t, e) {
|
|
858
|
+
(e == null || e > t.length) && (e = t.length);
|
|
859
|
+
for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
|
|
860
|
+
return n;
|
|
861
|
+
}
|
|
862
|
+
function Ut(t, e) {
|
|
863
|
+
var i = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
864
|
+
if (!i) {
|
|
865
|
+
if (Array.isArray(t) || (i = we(t)) || e) {
|
|
866
|
+
i && (t = i);
|
|
867
|
+
var n = 0, s = function() {
|
|
868
|
+
};
|
|
869
|
+
return {
|
|
870
|
+
s,
|
|
871
|
+
n: function() {
|
|
872
|
+
return n >= t.length ? {
|
|
873
|
+
done: !0
|
|
874
|
+
} : {
|
|
875
|
+
done: !1,
|
|
876
|
+
value: t[n++]
|
|
877
|
+
};
|
|
878
|
+
},
|
|
879
|
+
e: function(l) {
|
|
880
|
+
throw l;
|
|
881
|
+
},
|
|
882
|
+
f: s
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
886
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
887
|
+
}
|
|
888
|
+
var o = !0, a = !1, r;
|
|
889
|
+
return {
|
|
890
|
+
s: function() {
|
|
891
|
+
i = i.call(t);
|
|
892
|
+
},
|
|
893
|
+
n: function() {
|
|
894
|
+
var l = i.next();
|
|
895
|
+
return o = l.done, l;
|
|
896
|
+
},
|
|
897
|
+
e: function(l) {
|
|
898
|
+
a = !0, r = l;
|
|
899
|
+
},
|
|
900
|
+
f: function() {
|
|
901
|
+
try {
|
|
902
|
+
!o && i.return != null && i.return();
|
|
903
|
+
} finally {
|
|
904
|
+
if (a) throw r;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
function Te(t, e) {
|
|
910
|
+
var i = [], n = [];
|
|
911
|
+
function s(o, a) {
|
|
912
|
+
if (o.length === 1)
|
|
913
|
+
i.push(o[0]), n.push(o[0]);
|
|
914
|
+
else {
|
|
915
|
+
for (var r = Array(o.length - 1), l = 0; l < r.length; l++)
|
|
916
|
+
l === 0 && i.push(o[0]), l === r.length - 1 && n.push(o[l + 1]), r[l] = [(1 - a) * o[l][0] + a * o[l + 1][0], (1 - a) * o[l][1] + a * o[l + 1][1]];
|
|
917
|
+
s(r, a);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
return t.length && s(t, e), {
|
|
921
|
+
left: i,
|
|
922
|
+
right: n.reverse()
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
function Oe(t) {
|
|
926
|
+
var e = {};
|
|
927
|
+
return t.length === 4 && (e.x2 = t[2][0], e.y2 = t[2][1]), t.length >= 3 && (e.x1 = t[1][0], e.y1 = t[1][1]), e.x = t[t.length - 1][0], e.y = t[t.length - 1][1], t.length === 4 ? e.type = "C" : t.length === 3 ? e.type = "Q" : e.type = "L", e;
|
|
928
|
+
}
|
|
929
|
+
function Ne(t, e) {
|
|
930
|
+
e = e || 2;
|
|
931
|
+
for (var i = [], n = t, s = 1 / e, o = 0; o < e - 1; o++) {
|
|
932
|
+
var a = s / (1 - s * o), r = Te(n, a);
|
|
933
|
+
i.push(r.left), n = r.right;
|
|
934
|
+
}
|
|
935
|
+
return i.push(n), i;
|
|
936
|
+
}
|
|
937
|
+
function Pe(t, e, i) {
|
|
938
|
+
var n = [[t.x, t.y]];
|
|
939
|
+
return e.x1 != null && n.push([e.x1, e.y1]), e.x2 != null && n.push([e.x2, e.y2]), n.push([e.x, e.y]), Ne(n, i).map(Oe);
|
|
940
|
+
}
|
|
941
|
+
var Ce = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, A = {
|
|
942
|
+
M: ["x", "y"],
|
|
943
|
+
L: ["x", "y"],
|
|
944
|
+
H: ["x"],
|
|
945
|
+
V: ["y"],
|
|
946
|
+
C: ["x1", "y1", "x2", "y2", "x", "y"],
|
|
947
|
+
S: ["x2", "y2", "x", "y"],
|
|
948
|
+
Q: ["x1", "y1", "x", "y"],
|
|
949
|
+
T: ["x", "y"],
|
|
950
|
+
A: ["rx", "ry", "xAxisRotation", "largeArcFlag", "sweepFlag", "x", "y"],
|
|
951
|
+
Z: []
|
|
952
|
+
};
|
|
953
|
+
Object.keys(A).forEach(function(t) {
|
|
954
|
+
A[t.toLowerCase()] = A[t];
|
|
955
|
+
});
|
|
956
|
+
function J(t, e) {
|
|
957
|
+
for (var i = Array(t), n = 0; n < t; n++)
|
|
958
|
+
i[n] = e;
|
|
959
|
+
return i;
|
|
960
|
+
}
|
|
961
|
+
function Ae(t) {
|
|
962
|
+
return "".concat(t.type).concat(A[t.type].map(function(e) {
|
|
963
|
+
return t[e];
|
|
964
|
+
}).join(","));
|
|
965
|
+
}
|
|
966
|
+
function Me(t, e) {
|
|
967
|
+
var i = {
|
|
968
|
+
x1: "x",
|
|
969
|
+
y1: "y",
|
|
970
|
+
x2: "x",
|
|
971
|
+
y2: "y"
|
|
972
|
+
}, n = ["xAxisRotation", "largeArcFlag", "sweepFlag"];
|
|
973
|
+
if (t.type !== e.type && e.type.toUpperCase() !== "M") {
|
|
974
|
+
var s = {};
|
|
975
|
+
Object.keys(e).forEach(function(o) {
|
|
976
|
+
var a = e[o], r = t[o];
|
|
977
|
+
r === void 0 && (n.includes(o) ? r = a : (r === void 0 && i[o] && (r = t[i[o]]), r === void 0 && (r = 0))), s[o] = r;
|
|
978
|
+
}), s.type = e.type, t = s;
|
|
979
|
+
}
|
|
980
|
+
return t;
|
|
981
|
+
}
|
|
982
|
+
function je(t, e, i) {
|
|
983
|
+
var n = [];
|
|
984
|
+
if (e.type === "L" || e.type === "Q" || e.type === "C")
|
|
985
|
+
n = n.concat(Pe(t, e, i));
|
|
986
|
+
else {
|
|
987
|
+
var s = z({}, t);
|
|
988
|
+
s.type === "M" && (s.type = "L"), n = n.concat(J(i - 1).map(function() {
|
|
989
|
+
return s;
|
|
990
|
+
})), n.push(e);
|
|
991
|
+
}
|
|
992
|
+
return n;
|
|
993
|
+
}
|
|
994
|
+
function vt(t, e, i) {
|
|
995
|
+
var n = t.length - 1, s = e.length - 1, o = n / s, a = J(s).reduce(function(l, y, _) {
|
|
996
|
+
var h = Math.floor(o * _);
|
|
997
|
+
if (i && h < t.length - 1 && i(t[h], t[h + 1])) {
|
|
998
|
+
var c = o * _ % 1 < 0.5;
|
|
999
|
+
l[h] && (c ? h > 0 ? h -= 1 : h < t.length - 1 && (h += 1) : h < t.length - 1 ? h += 1 : h > 0 && (h -= 1));
|
|
1000
|
+
}
|
|
1001
|
+
return l[h] = (l[h] || 0) + 1, l;
|
|
1002
|
+
}, []), r = a.reduce(function(l, y, _) {
|
|
1003
|
+
if (_ === t.length - 1) {
|
|
1004
|
+
var h = J(y, z({}, t[t.length - 1]));
|
|
1005
|
+
return h[0].type === "M" && h.forEach(function(c) {
|
|
1006
|
+
c.type = "L";
|
|
1007
|
+
}), l.concat(h);
|
|
1008
|
+
}
|
|
1009
|
+
return l.concat(je(t[_], t[_ + 1], y));
|
|
1010
|
+
}, []);
|
|
1011
|
+
return r.unshift(t[0]), r;
|
|
1012
|
+
}
|
|
1013
|
+
function xt(t) {
|
|
1014
|
+
for (var e = (t || "").match(Ce) || [], i = [], n, s, o = 0; o < e.length; ++o)
|
|
1015
|
+
if (n = A[e[o]], n) {
|
|
1016
|
+
s = {
|
|
1017
|
+
type: e[o]
|
|
1018
|
+
};
|
|
1019
|
+
for (var a = 0; a < n.length; ++a)
|
|
1020
|
+
s[n[a]] = +e[o + a + 1];
|
|
1021
|
+
o += n.length, i.push(s);
|
|
1022
|
+
}
|
|
1023
|
+
return i;
|
|
1024
|
+
}
|
|
1025
|
+
function De(t, e, i) {
|
|
1026
|
+
var n = t == null ? [] : t.slice(), s = e == null ? [] : e.slice(), o = E(i) === "object" ? i : {
|
|
1027
|
+
excludeSegment: i,
|
|
1028
|
+
snapEndsToInput: !0
|
|
1029
|
+
}, a = o.excludeSegment, r = o.snapEndsToInput;
|
|
1030
|
+
if (!n.length && !s.length)
|
|
1031
|
+
return function() {
|
|
1032
|
+
return [];
|
|
1033
|
+
};
|
|
1034
|
+
var l = (n.length === 0 || n[n.length - 1].type === "Z") && (s.length === 0 || s[s.length - 1].type === "Z");
|
|
1035
|
+
n.length > 0 && n[n.length - 1].type === "Z" && n.pop(), s.length > 0 && s[s.length - 1].type === "Z" && s.pop(), n.length ? s.length || s.push(n[0]) : n.push(s[0]);
|
|
1036
|
+
var y = Math.abs(s.length - n.length);
|
|
1037
|
+
y !== 0 && (s.length > n.length ? n = vt(n, s, a) : s.length < n.length && (s = vt(s, n, a))), n = n.map(function(h, c) {
|
|
1038
|
+
return Me(h, s[c]);
|
|
1039
|
+
});
|
|
1040
|
+
var _ = n.map(function(h) {
|
|
1041
|
+
return ke({}, h);
|
|
1042
|
+
});
|
|
1043
|
+
return l && (_.push({
|
|
1044
|
+
type: "Z"
|
|
1045
|
+
}), n.push({
|
|
1046
|
+
type: "Z"
|
|
1047
|
+
})), function(c) {
|
|
1048
|
+
if (c === 1 && r)
|
|
1049
|
+
return e ?? [];
|
|
1050
|
+
if (c === 0)
|
|
1051
|
+
return n;
|
|
1052
|
+
for (var v = 0; v < _.length; ++v) {
|
|
1053
|
+
var g = n[v], m = s[v], u = _[v], f = Ut(A[u.type]), d;
|
|
1054
|
+
try {
|
|
1055
|
+
for (f.s(); !(d = f.n()).done; ) {
|
|
1056
|
+
var p = d.value;
|
|
1057
|
+
u[p] = (1 - c) * g[p] + c * m[p], (p === "largeArcFlag" || p === "sweepFlag") && (u[p] = Math.round(u[p]));
|
|
1058
|
+
}
|
|
1059
|
+
} catch (b) {
|
|
1060
|
+
f.e(b);
|
|
1061
|
+
} finally {
|
|
1062
|
+
f.f();
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
return _;
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
function Jt(t, e, i) {
|
|
1069
|
+
var n = xt(t), s = xt(e), o = E(i) === "object" ? i : {
|
|
1070
|
+
excludeSegment: i,
|
|
1071
|
+
snapEndsToInput: !0
|
|
1072
|
+
}, a = o.excludeSegment, r = o.snapEndsToInput;
|
|
1073
|
+
if (!n.length && !s.length)
|
|
1074
|
+
return function() {
|
|
1075
|
+
return "";
|
|
1076
|
+
};
|
|
1077
|
+
var l = De(n, s, {
|
|
1078
|
+
excludeSegment: a,
|
|
1079
|
+
snapEndsToInput: r
|
|
1080
|
+
});
|
|
1081
|
+
return function(_) {
|
|
1082
|
+
if (_ === 1 && r)
|
|
1083
|
+
return e ?? "";
|
|
1084
|
+
var h = l(_), c = "", v = Ut(h), g;
|
|
1085
|
+
try {
|
|
1086
|
+
for (v.s(); !(g = v.n()).done; ) {
|
|
1087
|
+
var m = g.value;
|
|
1088
|
+
c += Ae(m);
|
|
1089
|
+
}
|
|
1090
|
+
} catch (u) {
|
|
1091
|
+
v.e(u);
|
|
1092
|
+
} finally {
|
|
1093
|
+
v.f();
|
|
1094
|
+
}
|
|
1095
|
+
return c;
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
var x;
|
|
1099
|
+
(function(t) {
|
|
1100
|
+
t.Basis = "basis", t.BasisClosed = "basisClosed", t.BasisOpen = "basisOpen", t.Bundle = "bundle", t.Cardinal = "cardinal", t.CardinalClosed = "cardinalClosed", t.CardinalOpen = "cardinalOpen", t.CatmullRom = "catmullRom", t.CatmullRomClosed = "catmullRomClosed", t.CatmullRomOpen = "catmullRomOpen", t.Linear = "linear", t.LinearClosed = "linearClosed", t.MonotoneX = "monotoneX", t.MonotoneY = "monotoneY", t.Natural = "natural", t.Step = "step", t.StepAfter = "stepAfter", t.StepBefore = "stepBefore";
|
|
1101
|
+
})(x || (x = {}));
|
|
1102
|
+
const K = {
|
|
1103
|
+
[x.Basis]: oe,
|
|
1104
|
+
[x.BasisClosed]: re,
|
|
1105
|
+
[x.BasisOpen]: ae,
|
|
1106
|
+
[x.Bundle]: le,
|
|
1107
|
+
[x.Cardinal]: he,
|
|
1108
|
+
[x.CardinalClosed]: _e,
|
|
1109
|
+
[x.CardinalOpen]: ce,
|
|
1110
|
+
[x.CatmullRom]: ue,
|
|
1111
|
+
[x.CatmullRomClosed]: fe,
|
|
1112
|
+
[x.CatmullRomOpen]: pe,
|
|
1113
|
+
[x.Linear]: ot,
|
|
1114
|
+
[x.LinearClosed]: ye,
|
|
1115
|
+
[x.MonotoneX]: de,
|
|
1116
|
+
[x.MonotoneY]: ve,
|
|
1117
|
+
[x.Natural]: xe,
|
|
1118
|
+
[x.Step]: ge,
|
|
1119
|
+
[x.StepAfter]: me,
|
|
1120
|
+
[x.StepBefore]: be
|
|
1121
|
+
}, Ee = Object.assign(Object.assign({}, Et), { curveType: x.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 }), Re = Pt`
|
|
1122
|
+
:root {
|
|
1123
|
+
--vis-line-cursor: default;
|
|
1124
|
+
--vis-line-stroke-dasharray: none;
|
|
1125
|
+
--vis-line-stroke-dashoffset: 0;
|
|
1126
|
+
|
|
1127
|
+
--vis-line-gapfill-stroke-dasharray: 2 3;
|
|
1128
|
+
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
1129
|
+
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
1130
|
+
}
|
|
1131
|
+
`, Be = T`
|
|
1132
|
+
label: line-component;
|
|
1133
|
+
`, M = T`
|
|
1134
|
+
label: line;
|
|
1135
|
+
transition: opacity 200ms;
|
|
1136
|
+
cursor: var(--vis-line-cursor);
|
|
1137
|
+
`, tt = T`
|
|
1138
|
+
label: linePath;
|
|
1139
|
+
fill: none;
|
|
1140
|
+
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
1141
|
+
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
1142
|
+
`, et = T`
|
|
1143
|
+
label: lineSelectionHelper;
|
|
1144
|
+
fill: none;
|
|
1145
|
+
stroke: rgba(0, 0, 0, 0);
|
|
1146
|
+
stroke-width: 8px;
|
|
1147
|
+
`, it = T`
|
|
1148
|
+
opacity: 0.2;
|
|
1149
|
+
`, nt = T`
|
|
1150
|
+
label: interpolated-path;
|
|
1151
|
+
fill: none;
|
|
1152
|
+
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
1153
|
+
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
1154
|
+
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
1155
|
+
`, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1156
|
+
__proto__: null,
|
|
1157
|
+
dim: it,
|
|
1158
|
+
globalStyles: Re,
|
|
1159
|
+
interpolatedPath: nt,
|
|
1160
|
+
line: M,
|
|
1161
|
+
linePath: tt,
|
|
1162
|
+
lineSelectionHelper: et,
|
|
1163
|
+
root: Be
|
|
1164
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1165
|
+
class Z extends Rt {
|
|
1166
|
+
constructor(e) {
|
|
1167
|
+
super(), this._defaultConfig = Ee, this.config = this._defaultConfig, this.curve = K[x.MonotoneX], this.events = {
|
|
1168
|
+
[Z.selectors.line]: {
|
|
1169
|
+
mouseover: this._highlight.bind(this),
|
|
1170
|
+
mouseleave: this._resetHighlight.bind(this)
|
|
1171
|
+
}
|
|
1172
|
+
}, e && this.setConfig(e);
|
|
1173
|
+
}
|
|
1174
|
+
get bleed() {
|
|
1175
|
+
const { config: { lineWidth: e } } = this, i = this.yScale.domain(), s = (this.yScale.range()[0] > this.yScale.range()[1] ? q.North : q.South) === q.South, o = e > 3, a = e >= 10;
|
|
1176
|
+
return {
|
|
1177
|
+
top: !a && (!s && i[1] === 0 || s && i[0] === 0) ? 0 : e / 2,
|
|
1178
|
+
bottom: !a && (!s && i[0] === 0 || s && i[1] === 0) ? 0 : e / 2,
|
|
1179
|
+
left: o ? e / 2 : 0,
|
|
1180
|
+
right: o ? e / 2 : 0
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
_render(e) {
|
|
1184
|
+
super._render(e);
|
|
1185
|
+
const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration;
|
|
1186
|
+
this.curve = K[i.curveType], this.lineGen = Ft().x((h) => h.x).y((h) => h.y).defined((h) => h.defined).curve(this.curve);
|
|
1187
|
+
const o = U(i.y) ? i.y : [i.y], a = n.map((h, c) => this.xScale(F(h, i.x, c))), r = o.map((h) => {
|
|
1188
|
+
const c = n.map((f, d) => {
|
|
1189
|
+
const p = F(f, h, d), b = (H(p) || p === null) && isFinite(p) ? p : i.fallbackValue, S = i.interpolateMissingData ? (H(p) || p === null) && isFinite(p) : isFinite(b);
|
|
1190
|
+
return {
|
|
1191
|
+
x: a[d],
|
|
1192
|
+
y: this.yScale(b ?? 0),
|
|
1193
|
+
defined: S,
|
|
1194
|
+
value: b
|
|
1195
|
+
};
|
|
1196
|
+
}), v = c.reduce((f, d) => d.defined || f, !1);
|
|
1197
|
+
let g = !1;
|
|
1198
|
+
const m = c.reduce((f, d, p) => {
|
|
1199
|
+
!d.defined && isFinite(i.fallbackValue) && f.push(Object.assign(Object.assign({}, d), { defined: !0 })), !d.defined && !g && (g = !0);
|
|
1200
|
+
const b = p > 0 && !c[p - 1].defined || p < c.length - 1 && !c[p + 1].defined;
|
|
1201
|
+
return d.defined && b && (g || f.push(Object.assign(Object.assign({}, d), { defined: !1 })), f.push(d), g = !1), f;
|
|
1202
|
+
}, []), u = v && c.some((f) => f.value !== null);
|
|
1203
|
+
return {
|
|
1204
|
+
values: c,
|
|
1205
|
+
defined: v,
|
|
1206
|
+
gaps: m,
|
|
1207
|
+
visible: u
|
|
1208
|
+
};
|
|
1209
|
+
}), l = this.g.selectAll(`.${M}`).data(r), y = l.enter().append("g").attr("class", M);
|
|
1210
|
+
y.append("path").attr("class", tt).attr("stroke", (h, c) => j(n, i.color, c)).attr("stroke-opacity", 0).attr("stroke-width", i.lineWidth), y.append("path").attr("class", et).attr("d", this._emptyPath()), y.append("path").attr("class", nt).attr("d", this._emptyPath()).style("opacity", 0);
|
|
1211
|
+
const _ = y.merge(l);
|
|
1212
|
+
_.style("cursor", (h, c) => Ct(n, i.cursor, c)), _.each((h, c, v) => {
|
|
1213
|
+
var g;
|
|
1214
|
+
const m = At(v[c]), u = m.select(`.${tt}`), f = m.select(`.${et}`), d = m.select(`.${nt}`), p = h.visible, b = te(n, i.lineDashArray, c), S = D(u, s).attr("stroke", j(n, i.color, c)).attr("stroke-width", i.lineWidth).attr("stroke-opacity", p ? 1 : 0).style("stroke-dasharray", (g = b?.join(" ")) !== null && g !== void 0 ? g : null), C = h.values.some((N) => !N.defined), O = this.lineGen(h.values);
|
|
1215
|
+
if (s && !C) {
|
|
1216
|
+
const N = u.attr("d") || this._emptyPath(), P = O || this._emptyPath();
|
|
1217
|
+
S.attrTween("d", () => Jt(N, P));
|
|
1218
|
+
} else h.visible && S.attr("d", O);
|
|
1219
|
+
f.attr("d", O).attr("visibility", p ? null : "hidden"), C && i.interpolateMissingData ? D(d, s).attr("d", this.lineGen(h.gaps)).attr("stroke", j(n, i.color, c)).attr("stroke-width", i.lineWidth - 1).style("opacity", 1) : d.transition().duration(s).style("opacity", 0);
|
|
1220
|
+
}), D(l.exit(), s).style("opacity", 0).remove();
|
|
1221
|
+
}
|
|
1222
|
+
_emptyPath() {
|
|
1223
|
+
const e = this.xScale.range(), i = this.yScale.range();
|
|
1224
|
+
return `M${e[0]},${i[0]} L${e[1]},${i[0]}`;
|
|
1225
|
+
}
|
|
1226
|
+
_highlight(e) {
|
|
1227
|
+
const { config: i } = this;
|
|
1228
|
+
i.highlightOnHover && this.g.selectAll(`.${M}`).classed(it, (n) => n !== e);
|
|
1229
|
+
}
|
|
1230
|
+
_resetHighlight() {
|
|
1231
|
+
const { config: e } = this;
|
|
1232
|
+
e.highlightOnHover && this.g.selectAll(`.${M}`).classed(it, !1);
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
Z.selectors = $e;
|
|
1236
|
+
const He = Object.assign(Object.assign({}, Et), { color: void 0, curveType: x.MonotoneX, baseline: () => 0, opacity: 1, cursor: null, minHeight1Px: !1, minHeight: void 0 }), Kt = T`
|
|
1237
|
+
label: area-component;
|
|
1238
|
+
`, Le = Pt`
|
|
1239
|
+
:root {
|
|
1240
|
+
--vis-area-cursor: default;
|
|
1241
|
+
--vis-area-fill-opacity: 1;
|
|
1242
|
+
--vis-area-stroke-color: none;
|
|
1243
|
+
--vis-area-stroke-width: 0px;
|
|
1244
|
+
--vis-area-stroke-dasharray: none;
|
|
1245
|
+
--vis-area-stroke-opacity: 1;
|
|
1246
|
+
--vis-area-hover-fill-opacity: none;
|
|
1247
|
+
--vis-area-hover-stroke-width: none;
|
|
1248
|
+
|
|
1249
|
+
/* Dark Theme */
|
|
1250
|
+
--vis-dark-area-stroke-color: none;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
body.theme-dark ${`.${Kt}`} {
|
|
1254
|
+
--vis-area-stroke-color: var(--vis-dark-area-stroke-color);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
`, st = T`
|
|
1258
|
+
label: area;
|
|
1259
|
+
cursor: var(--vis-area-cursor);
|
|
1260
|
+
fill-opacity: var(--vis-area-fill-opacity);
|
|
1261
|
+
stroke-width: var(--vis-area-stroke-width);
|
|
1262
|
+
stroke-dasharray: var(--vis-area-stroke-dasharray);
|
|
1263
|
+
stroke: var(--vis-area-stroke-color);
|
|
1264
|
+
stroke-opacity: var(--vis-area-stroke-opacity);
|
|
1265
|
+
|
|
1266
|
+
&:hover {
|
|
1267
|
+
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
1268
|
+
stroke-width: var(--vis-area-hover-stroke-width);
|
|
1269
|
+
}
|
|
1270
|
+
`, Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1271
|
+
__proto__: null,
|
|
1272
|
+
area: st,
|
|
1273
|
+
globalStyles: Le,
|
|
1274
|
+
root: Kt
|
|
1275
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1276
|
+
class W extends Rt {
|
|
1277
|
+
constructor(e) {
|
|
1278
|
+
super(), this._defaultConfig = He, this.config = this._defaultConfig, this.stacked = !0, this.events = {
|
|
1279
|
+
[W.selectors.area]: {}
|
|
1280
|
+
}, e && this.setConfig(e), this.stacked = Array.isArray(this.config.y);
|
|
1281
|
+
}
|
|
1282
|
+
_render(e) {
|
|
1283
|
+
super._render(e);
|
|
1284
|
+
const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration, o = K[i.curveType];
|
|
1285
|
+
this._areaGen = se().x((u) => u.x).y0((u) => u.y0).y1((u) => u.y1).curve(o);
|
|
1286
|
+
const a = U(i.y) ? i.y : [i.y], r = n.map((u, f) => this.xScale(F(u, i.x, f))), l = ee(n, i.baseline, a, this._prevNegative);
|
|
1287
|
+
this._prevNegative = l.map((u) => !!u.isMostlyNegative);
|
|
1288
|
+
const y = [], _ = l.map((u) => u.map((f, d) => {
|
|
1289
|
+
var p, b;
|
|
1290
|
+
const S = r[d], C = this.yScale(f[0]), O = this.yScale(f[1]), N = O > C, P = y[d] || 0, R = N ? C + P : C - P, B = N ? O + P : O - P;
|
|
1291
|
+
let $ = 0;
|
|
1292
|
+
return (i.minHeight || i.minHeight1Px) && Math.abs(B - R) < ((p = i.minHeight) !== null && p !== void 0 ? p : 1) && ($ = ((b = i.minHeight) !== null && b !== void 0 ? b : 1) - Math.abs(B - R), y[d] = P + $), {
|
|
1293
|
+
x: S,
|
|
1294
|
+
y0: R,
|
|
1295
|
+
y1: N ? B + $ : B - $
|
|
1296
|
+
};
|
|
1297
|
+
})), h = _.length - 1, c = _.reverse(), v = this.g.selectAll(`.${st}`).data(c), g = v.enter().append("path").attr("class", st).attr("d", (u) => this._areaGen(u) || this._emptyPath()).style("opacity", 0).style("fill", (u, f) => j(n, i.color, h - f)), m = D(g.merge(v), s).style("opacity", (u, f) => u.some((p) => p.y0 - p.y1 !== 0) ? F(n, i.opacity, h - f) : 0).style("fill", (u, f) => j(n, i.color, h - f)).style("cursor", (u, f) => Ct(n, i.cursor, h - f));
|
|
1298
|
+
s ? m.attrTween("d", (f, d, p) => {
|
|
1299
|
+
const b = At(p[d]).attr("d"), S = this._areaGen(f) || this._emptyPath();
|
|
1300
|
+
return Jt(b, S);
|
|
1301
|
+
}) : m.attr("d", (u) => this._areaGen(u) || this._emptyPath()), D(v.exit(), s).style("opacity", 0).remove();
|
|
1302
|
+
}
|
|
1303
|
+
getYDataExtent(e) {
|
|
1304
|
+
const { config: i, datamodel: n } = this, s = U(i.y) ? i.y : [i.y], o = e ? ie(n.data, this.xScale.domain(), i.x) : n.data;
|
|
1305
|
+
return ne(o, i.baseline, ...s);
|
|
1306
|
+
}
|
|
1307
|
+
_emptyPath() {
|
|
1308
|
+
const e = this.xScale.range(), i = this.yScale.domain(), n = this.yScale((i[0] + i[1]) / 2), s = n;
|
|
1309
|
+
return this._areaGen([
|
|
1310
|
+
{ y0: n, y1: s, x: e[0] },
|
|
1311
|
+
{ y0: n, y1: s, x: e[1] }
|
|
1312
|
+
]);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
W.selectors = Fe;
|
|
1316
|
+
const Ie = { "data-vis-component": "" }, Ze = /* @__PURE__ */ gt({
|
|
1317
|
+
__name: "index",
|
|
1318
|
+
props: {
|
|
1319
|
+
color: {},
|
|
1320
|
+
curveType: {},
|
|
1321
|
+
baseline: {},
|
|
1322
|
+
opacity: {},
|
|
1323
|
+
cursor: {},
|
|
1324
|
+
minHeight1Px: { type: Boolean },
|
|
1325
|
+
minHeight: {},
|
|
1326
|
+
x: {},
|
|
1327
|
+
y: {},
|
|
1328
|
+
id: { type: Function },
|
|
1329
|
+
xScale: { type: [Object, Function] },
|
|
1330
|
+
yScale: { type: [Object, Function] },
|
|
1331
|
+
excludeFromDomainCalculation: { type: Boolean },
|
|
1332
|
+
duration: {},
|
|
1333
|
+
events: {},
|
|
1334
|
+
attributes: {},
|
|
1335
|
+
data: {}
|
|
1336
|
+
},
|
|
1337
|
+
setup(t, { expose: e }) {
|
|
1338
|
+
const i = bt(Mt), n = t, s = mt(() => i.data.value ?? n.data), o = jt(n), a = kt();
|
|
1339
|
+
return St(() => {
|
|
1340
|
+
wt(() => {
|
|
1341
|
+
var r;
|
|
1342
|
+
a.value = new W(o.value), (r = a.value) == null || r.setData(s.value), i.update(a.value);
|
|
1343
|
+
});
|
|
1344
|
+
}), Tt(() => {
|
|
1345
|
+
var r;
|
|
1346
|
+
(r = a.value) == null || r.destroy(), i.destroy();
|
|
1347
|
+
}), L(o, (r, l) => {
|
|
1348
|
+
var y;
|
|
1349
|
+
Dt(r, l) || (y = a.value) == null || y.setConfig(o.value);
|
|
1350
|
+
}), L(s, () => {
|
|
1351
|
+
var r;
|
|
1352
|
+
(r = a.value) == null || r.setData(s.value);
|
|
1353
|
+
}), e({
|
|
1354
|
+
component: a
|
|
1355
|
+
}), (r, l) => (Ot(), Nt("div", Ie));
|
|
1356
|
+
}
|
|
1357
|
+
}), Xe = { "data-vis-component": "" }, We = /* @__PURE__ */ gt({
|
|
1358
|
+
__name: "index",
|
|
1359
|
+
props: {
|
|
1360
|
+
color: {},
|
|
1361
|
+
curveType: {},
|
|
1362
|
+
lineWidth: {},
|
|
1363
|
+
lineDashArray: {},
|
|
1364
|
+
fallbackValue: {},
|
|
1365
|
+
highlightOnHover: { type: Boolean },
|
|
1366
|
+
cursor: {},
|
|
1367
|
+
interpolateMissingData: { type: Boolean },
|
|
1368
|
+
x: {},
|
|
1369
|
+
y: {},
|
|
1370
|
+
id: { type: Function },
|
|
1371
|
+
xScale: { type: [Object, Function] },
|
|
1372
|
+
yScale: { type: [Object, Function] },
|
|
1373
|
+
excludeFromDomainCalculation: { type: Boolean },
|
|
1374
|
+
duration: {},
|
|
1375
|
+
events: {},
|
|
1376
|
+
attributes: {},
|
|
1377
|
+
data: {}
|
|
1378
|
+
},
|
|
1379
|
+
setup(t, { expose: e }) {
|
|
1380
|
+
const i = bt(Mt), n = t, s = mt(() => i.data.value ?? n.data), o = jt(n), a = kt();
|
|
1381
|
+
return St(() => {
|
|
1382
|
+
wt(() => {
|
|
1383
|
+
var r;
|
|
1384
|
+
a.value = new Z(o.value), (r = a.value) == null || r.setData(s.value), i.update(a.value);
|
|
1385
|
+
});
|
|
1386
|
+
}), Tt(() => {
|
|
1387
|
+
var r;
|
|
1388
|
+
(r = a.value) == null || r.destroy(), i.destroy();
|
|
1389
|
+
}), L(o, (r, l) => {
|
|
1390
|
+
var y;
|
|
1391
|
+
Dt(r, l) || (y = a.value) == null || y.setConfig(o.value);
|
|
1392
|
+
}), L(s, () => {
|
|
1393
|
+
var r;
|
|
1394
|
+
(r = a.value) == null || r.setData(s.value);
|
|
1395
|
+
}), e({
|
|
1396
|
+
component: a
|
|
1397
|
+
}), (r, l) => (Ot(), Nt("div", Xe));
|
|
1398
|
+
}
|
|
1399
|
+
});
|
|
1400
|
+
export {
|
|
1401
|
+
Ze as P,
|
|
1402
|
+
We as S
|
|
1403
|
+
};
|