@automattic/charts 0.16.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/_virtual/index.js +2 -0
- package/dist/cjs/_virtual/index.js.map +1 -0
- package/dist/cjs/_virtual/react-is.development.js +2 -0
- package/dist/cjs/_virtual/react-is.development.js.map +1 -0
- package/dist/cjs/_virtual/react-is.production.min.js +2 -0
- package/dist/cjs/_virtual/react-is.production.min.js.map +1 -0
- package/dist/cjs/_virtual/sprintf.js +2 -0
- package/dist/cjs/_virtual/sprintf.js.map +1 -0
- package/dist/cjs/components/bar-chart/bar-chart.js +1 -1
- package/dist/cjs/components/bar-chart/bar-chart.js.map +1 -1
- package/dist/cjs/components/bar-chart/use-bar-chart-options.js +1 -1
- package/dist/cjs/components/bar-chart/use-bar-chart-options.js.map +1 -1
- package/dist/cjs/components/bar-list-chart/bar-list-chart.js +1 -1
- package/dist/cjs/components/bar-list-chart/bar-list-chart.js.map +1 -1
- package/dist/cjs/components/leaderboard-chart/leaderboard-chart.js +2 -0
- package/dist/cjs/components/leaderboard-chart/leaderboard-chart.js.map +1 -0
- package/dist/cjs/components/leaderboard-chart/leaderboard-chart.module.scss.js +2 -0
- package/dist/cjs/components/leaderboard-chart/leaderboard-chart.module.scss.js.map +1 -0
- package/dist/cjs/components/legend/base-legend.js +1 -1
- package/dist/cjs/components/legend/base-legend.js.map +1 -1
- package/dist/cjs/components/line-chart/line-chart-annotation-label-popover.js +2 -0
- package/dist/cjs/components/line-chart/line-chart-annotation-label-popover.js.map +1 -0
- package/dist/cjs/components/line-chart/line-chart-annotation.js +1 -1
- package/dist/cjs/components/line-chart/line-chart-annotation.js.map +1 -1
- package/dist/cjs/components/line-chart/line-chart-annotations-overlay.js +2 -0
- package/dist/cjs/components/line-chart/line-chart-annotations-overlay.js.map +1 -0
- package/dist/cjs/components/line-chart/line-chart-context.js +2 -0
- package/dist/cjs/components/line-chart/line-chart-context.js.map +1 -0
- package/dist/cjs/components/line-chart/line-chart.js +1 -1
- package/dist/cjs/components/line-chart/line-chart.js.map +1 -1
- package/dist/cjs/components/line-chart/line-chart.module.scss.js +1 -1
- package/dist/cjs/components/pie-chart/pie-chart.js +1 -1
- package/dist/cjs/components/pie-chart/pie-chart.js.map +1 -1
- package/dist/cjs/components/pie-semi-circle-chart/pie-semi-circle-chart.js +1 -1
- package/dist/cjs/components/pie-semi-circle-chart/pie-semi-circle-chart.js.map +1 -1
- package/dist/cjs/components/shared/format-metric-value.js +2 -0
- package/dist/cjs/components/shared/format-metric-value.js.map +1 -0
- package/dist/cjs/components/shared/use-chart-data-transform.js +1 -1
- package/dist/cjs/components/shared/use-chart-data-transform.js.map +1 -1
- package/dist/cjs/components/shared/use-chart-margin.js +1 -1
- package/dist/cjs/components/shared/use-chart-margin.js.map +1 -1
- package/dist/cjs/components/shared/use-element-height.js +1 -1
- package/dist/cjs/components/shared/use-element-height.js.map +1 -1
- package/dist/cjs/components/shared/utils.js +1 -1
- package/dist/cjs/components/shared/utils.js.map +1 -1
- package/dist/cjs/components/tooltip/accessible-tooltip.js +2 -0
- package/dist/cjs/components/tooltip/accessible-tooltip.js.map +1 -0
- package/dist/cjs/hooks/use-chart-mouse-handler.js +1 -1
- package/dist/cjs/hooks/use-chart-mouse-handler.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_styled@11.14.0_@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1__@types_react@18.3.23_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_styled@11.14.0_@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1__@types_react@18.3.23_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@18.3.1/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@18.3.1/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_weak-memoize@0.4.0/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@emotion_weak-memoize@0.4.0/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_compile@1.1.0/node_modules/@tannin/compile/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_compile@1.1.0/node_modules/@tannin/compile/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_evaluate@1.2.0/node_modules/@tannin/evaluate/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_evaluate@1.2.0/node_modules/@tannin/evaluate/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_plural-forms@1.1.0/node_modules/@tannin/plural-forms/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_plural-forms@1.1.0/node_modules/@tannin/plural-forms/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_postfix@1.1.0/node_modules/@tannin/postfix/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@tannin_postfix@1.1.0/node_modules/@tannin/postfix/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/styles.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/styles.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/space.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/space.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createAddHook.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createAddHook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createCurrentHook.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createCurrentHook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDidHook.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDidHook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDoingHook.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDoingHook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHasHook.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHasHook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHooks.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHooks.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRemoveHook.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRemoveHook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRunHook.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRunHook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateHookName.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateHookName.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateNamespace.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateNamespace.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/create-i18n.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/create-i18n.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/default-i18n.js +2 -0
- package/dist/cjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/default-i18n.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -0
- package/dist/cjs/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +10 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +10 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js +2 -0
- package/dist/cjs/node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js +2 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js +2 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js +2 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js +2 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js +2 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js +2 -0
- package/dist/cjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/tannin@1.2.0/node_modules/tannin/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/tannin@1.2.0/node_modules/tannin/index.js.map +1 -0
- package/dist/cjs/providers/chart-context/chart-context.js +2 -0
- package/dist/cjs/providers/chart-context/chart-context.js.map +1 -0
- package/dist/cjs/providers/chart-context/utils.js +2 -0
- package/dist/cjs/providers/chart-context/utils.js.map +1 -0
- package/dist/cjs/providers/theme/theme-provider.js +1 -1
- package/dist/cjs/providers/theme/theme-provider.js.map +1 -1
- package/dist/cjs/style.css +1 -1
- package/dist/index.d.ts +151 -20
- package/dist/mjs/_virtual/index.js +2 -0
- package/dist/mjs/_virtual/index.js.map +1 -0
- package/dist/mjs/_virtual/react-is.development.js +2 -0
- package/dist/mjs/_virtual/react-is.development.js.map +1 -0
- package/dist/mjs/_virtual/react-is.production.min.js +2 -0
- package/dist/mjs/_virtual/react-is.production.min.js.map +1 -0
- package/dist/mjs/_virtual/sprintf.js +2 -0
- package/dist/mjs/_virtual/sprintf.js.map +1 -0
- package/dist/mjs/components/bar-chart/bar-chart.js +1 -1
- package/dist/mjs/components/bar-chart/bar-chart.js.map +1 -1
- package/dist/mjs/components/bar-chart/use-bar-chart-options.js +1 -1
- package/dist/mjs/components/bar-chart/use-bar-chart-options.js.map +1 -1
- package/dist/mjs/components/bar-list-chart/bar-list-chart.js +1 -1
- package/dist/mjs/components/bar-list-chart/bar-list-chart.js.map +1 -1
- package/dist/mjs/components/leaderboard-chart/leaderboard-chart.js +2 -0
- package/dist/mjs/components/leaderboard-chart/leaderboard-chart.js.map +1 -0
- package/dist/mjs/components/leaderboard-chart/leaderboard-chart.module.scss.js +2 -0
- package/dist/mjs/components/leaderboard-chart/leaderboard-chart.module.scss.js.map +1 -0
- package/dist/mjs/components/legend/base-legend.js +1 -1
- package/dist/mjs/components/legend/base-legend.js.map +1 -1
- package/dist/mjs/components/line-chart/line-chart-annotation-label-popover.js +2 -0
- package/dist/mjs/components/line-chart/line-chart-annotation-label-popover.js.map +1 -0
- package/dist/mjs/components/line-chart/line-chart-annotation.js +1 -1
- package/dist/mjs/components/line-chart/line-chart-annotation.js.map +1 -1
- package/dist/mjs/components/line-chart/line-chart-annotations-overlay.js +2 -0
- package/dist/mjs/components/line-chart/line-chart-annotations-overlay.js.map +1 -0
- package/dist/mjs/components/line-chart/line-chart-context.js +2 -0
- package/dist/mjs/components/line-chart/line-chart-context.js.map +1 -0
- package/dist/mjs/components/line-chart/line-chart.js +1 -1
- package/dist/mjs/components/line-chart/line-chart.js.map +1 -1
- package/dist/mjs/components/line-chart/line-chart.module.scss.js +1 -1
- package/dist/mjs/components/pie-chart/pie-chart.js +1 -1
- package/dist/mjs/components/pie-chart/pie-chart.js.map +1 -1
- package/dist/mjs/components/pie-semi-circle-chart/pie-semi-circle-chart.js +1 -1
- package/dist/mjs/components/pie-semi-circle-chart/pie-semi-circle-chart.js.map +1 -1
- package/dist/mjs/components/shared/format-metric-value.js +2 -0
- package/dist/mjs/components/shared/format-metric-value.js.map +1 -0
- package/dist/mjs/components/shared/use-chart-data-transform.js +1 -1
- package/dist/mjs/components/shared/use-chart-data-transform.js.map +1 -1
- package/dist/mjs/components/shared/use-chart-margin.js +1 -1
- package/dist/mjs/components/shared/use-chart-margin.js.map +1 -1
- package/dist/mjs/components/shared/use-element-height.js +1 -1
- package/dist/mjs/components/shared/use-element-height.js.map +1 -1
- package/dist/mjs/components/shared/utils.js +1 -1
- package/dist/mjs/components/shared/utils.js.map +1 -1
- package/dist/mjs/components/tooltip/accessible-tooltip.js +2 -0
- package/dist/mjs/components/tooltip/accessible-tooltip.js.map +1 -0
- package/dist/mjs/hooks/use-chart-mouse-handler.js +1 -1
- package/dist/mjs/hooks/use-chart-mouse-handler.js.map +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/mjs/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_styled@11.14.0_@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1__@types_react@18.3.23_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_styled@11.14.0_@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1__@types_react@18.3.23_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@18.3.1/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@18.3.1/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_weak-memoize@0.4.0/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@emotion_weak-memoize@0.4.0/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_compile@1.1.0/node_modules/@tannin/compile/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_compile@1.1.0/node_modules/@tannin/compile/index.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_evaluate@1.2.0/node_modules/@tannin/evaluate/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_evaluate@1.2.0/node_modules/@tannin/evaluate/index.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_plural-forms@1.1.0/node_modules/@tannin/plural-forms/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_plural-forms@1.1.0/node_modules/@tannin/plural-forms/index.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_postfix@1.1.0/node_modules/@tannin/postfix/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@tannin_postfix@1.1.0/node_modules/@tannin/postfix/index.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/index.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/styles.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/progress-bar/styles.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/space.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_components@29.12.0_@types_react@18.3.23_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/space.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createAddHook.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createAddHook.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createCurrentHook.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createCurrentHook.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDidHook.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDidHook.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDoingHook.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createDoingHook.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHasHook.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHasHook.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHooks.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createHooks.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRemoveHook.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRemoveHook.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRunHook.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/createRunHook.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/index.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateHookName.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateHookName.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateNamespace.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_hooks@4.26.0/node_modules/@wordpress/hooks/build-module/validateNamespace.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/create-i18n.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/create-i18n.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/default-i18n.js +2 -0
- package/dist/mjs/node_modules/.pnpm/@wordpress_i18n@5.26.0/node_modules/@wordpress/i18n/build-module/default-i18n.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -0
- package/dist/mjs/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +10 -0
- package/dist/mjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +10 -0
- package/dist/mjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js +2 -0
- package/dist/mjs/node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js +2 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js +2 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js +2 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js +2 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js +2 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js +2 -0
- package/dist/mjs/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js.map +1 -0
- package/dist/mjs/node_modules/.pnpm/tannin@1.2.0/node_modules/tannin/index.js +2 -0
- package/dist/mjs/node_modules/.pnpm/tannin@1.2.0/node_modules/tannin/index.js.map +1 -0
- package/dist/mjs/providers/chart-context/chart-context.js +2 -0
- package/dist/mjs/providers/chart-context/chart-context.js.map +1 -0
- package/dist/mjs/providers/chart-context/utils.js +2 -0
- package/dist/mjs/providers/chart-context/utils.js.map +1 -0
- package/dist/mjs/providers/theme/theme-provider.js +1 -1
- package/dist/mjs/providers/theme/theme-provider.js.map +1 -1
- package/dist/mjs/style.css +1 -1
- package/package.json +11 -9
- package/src/components/bar-chart/bar-chart.tsx +115 -22
- package/src/components/grid-control/grid-control.module.scss +6 -6
- package/src/components/leaderboard-chart/README.md +199 -0
- package/src/components/leaderboard-chart/index.tsx +4 -0
- package/src/components/leaderboard-chart/leaderboard-chart.module.scss +93 -0
- package/src/components/leaderboard-chart/leaderboard-chart.tsx +214 -0
- package/src/components/line-chart/line-chart-annotation-label-popover.tsx +110 -0
- package/src/components/line-chart/line-chart-annotation.tsx +123 -22
- package/src/components/line-chart/line-chart-annotations-overlay.tsx +135 -0
- package/src/components/line-chart/line-chart-context.tsx +28 -0
- package/src/components/line-chart/line-chart.module.scss +69 -1
- package/src/components/line-chart/line-chart.tsx +357 -361
- package/src/components/pie-chart/pie-chart.tsx +29 -8
- package/src/components/pie-semi-circle-chart/pie-semi-circle-chart.tsx +44 -21
- package/src/components/shared/format-metric-value.ts +92 -0
- package/src/components/shared/utils.ts +7 -0
- package/src/components/tooltip/accessible-tooltip.tsx +245 -0
- package/src/components/tooltip/base-tooltip.module.scss +9 -9
- package/src/index.ts +11 -0
- package/src/providers/chart-context/chart-context.test.tsx +230 -0
- package/src/providers/chart-context/chart-context.tsx +45 -0
- package/src/providers/chart-context/index.ts +3 -0
- package/src/providers/chart-context/types.ts +16 -0
- package/src/providers/chart-context/utils.ts +48 -0
- package/src/types.ts +29 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pie-chart.js","sources":["/@automattic/charts/../../../../src/components/pie-chart/pie-chart.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"pie-chart.js","sources":["/@automattic/charts/../../../../src/components/pie-chart/pie-chart.tsx"],"sourcesContent":[null],"names":["PieChartInternal","data","chartId","providedChartId","withTooltips","className","showLegend","legendOrientation","legendAlignmentHorizontal","legendAlignmentVertical","legendShape","size","thickness","padding","gapScale","cornerScale","children","providerTheme","useChartTheme","useChartId","legendRef","legendHeight","useElementHeight","onMouseMove","onMouseLeave","tooltipOpen","tooltipData","tooltipLeft","tooltipTop","useChartMouseHandler","isValid","message","length","some","item","percentage","value","totalPercentage","reduce","sum","Math","abs","validateData","legendItems","useMemo","map","index","label","toString","color","colors","useChartRegistration","_jsx","jsx","clsx","styles","width","height","radius","min","centerX","centerY","padAngle","PI","outerRadius","innerRadius","maxCornerRadius","cornerRadius","dataWithIndex","d","accessors","fill","_jsxs","style","display","flexDirection","viewBox","preserveAspectRatio","Group","top","left","Pie","pieValue","pie","arcs","arc","centroidX","centroidY","path","centroid","hasSpaceForLabel","endAngle","startAngle","handleMouseMove","event","pathProps","jsxs","x","y","dy","labelBackgroundColor","defaultTheme","fontSize","textAnchor","pointerEvents","Legend","items","orientation","alignmentHorizontal","alignmentVertical","shape","ref","BaseTooltip","transform","PieChart","props","ChartProvider","displayName","withResponsive"],"mappings":"0lBA0DA,MA2BMA,EAAmB,EACxBC,OACAC,QAASC,EACTC,gBAAe,EACfC,YACAC,aACAC,oBACAC,4BAA4B,SAC5BC,0BAA0B,SAC1BC,cAAc,SACdC,OACAC,YAAY,EACZC,UAAU,GACVC,WAAW,EACXC,cAAc,EACdC,WAAW,SAEX,MAAMC,EAAgBC,EAAAA,gBAChBhB,EAAUiB,aAAYhB,IACpBiB,EAAWC,GAAiBC,EAAgBA,oBAC9CC,YAAEA,EAAWC,aAAEA,EAAYC,YAAEA,EAAWC,YAAEA,EAAWC,YAAEA,EAAWC,WAAEA,GACzEC,EAAsB,CACrBzB,kBAGI0B,QAAEA,EAAOC,QAAEA,GApDG,CAAE9B,IACtB,IAAOA,EAAK+B,OACX,MAAO,CAAEF,SAAS,EAAOC,QAAS,qB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AK8C,UAdL,OAAQD,UAuBnB9B,OAIFV,GACD8C,EAAAA,IAACqD,EAAAA,WAAM,CACNC,MAAQ/D,EACRgE,YAAcpG,EACdqG,oBAAsBpG,EACtBqG,kBAAoBpG,EACpBJ,UAAYkD,EAAQ,oBACpBuD,MAAQpG,EACRqG,IAAM3F,IAINhB,GAAgBqB,GAAeC,GAChC0B,MAAC4D,EAAAA,YAAW,CACX/G,KAAOyB,EACPqD,IAAMnD,GAAc,EACpBoD,KAAOrD,GAAe,EACtB8C,MAAQ,CACPwC,UAAW,gCAQXC,EAAaC,GAClB/D,MAACgE,EAAAA,cAAa,CAAApG,SACboC,MAACpD,EAAgB,IAAMmH,MAIzBD,EAASG,YAAc,WACvB,IAAeC,EAAAA,EAAAA,eAAiCJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("@visx/event"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("@visx/event"),i=require("@visx/group"),a=require("@visx/shape"),l=require("@visx/text"),s=require("@visx/tooltip"),r=require("clsx"),o=require("react"),c=require("../../providers/chart-context/chart-context.js"),n=require("../../providers/chart-context/utils.js"),d=require("../../providers/theme/theme-provider.js"),h=require("../legend/base-legend.js"),p=require("../shared/use-element-height.js"),u=require("../shared/with-responsive.js"),m=require("../tooltip/base-tooltip.js"),v=require("./pie-semi-circle-chart.module.scss.js");const x=({data:c,chartId:u,width:x=400,thickness:g=.4,clockwise:j=!0,withTooltips:q=!1,showLegend:b=!1,legendOrientation:f="horizontal",legendAlignmentHorizontal:w="center",legendAlignmentVertical:M="bottom",legendShape:y="circle",label:A,note:N,className:T})=>{const C=d.useChartTheme(),I=n.useChartId(u),[P,V]=p.useElementHeight(),{tooltipOpen:k,tooltipLeft:D,tooltipTop:L,tooltipData:R,hideTooltip:S,showTooltip:z}=s.useTooltip(),B=o.useCallback(((e,i)=>{const a=t.localPoint(e);a&&z({tooltipData:i.data,tooltipLeft:a.x,tooltipTop:a.y-10})}),[z]),H=o.useCallback((()=>{S()}),[S]),G=o.useCallback((e=>t=>{B(t,e)}),[B]),{isValid:O,message:$}=(e=>e.length?e.some((e=>e.percentage<0||e.value<0))?{isValid:!1,message:"Invalid data: Negative values are not allowed"}:e.reduce(((e,t)=>e+t.percentage),0)<=0?{isValid:!1,message:"Invalid percentage total: Must be greater than 0"}:{isValid:!0,message:""}:{isValid:!1,message:"No data available"})(c),E=o.useMemo((()=>({value:e=>e.value,sort:(e,t)=>t.value-e.value,fill:e=>e.color||C.colors[e.index%C.colors.length]})),[C.colors]),F=o.useMemo((()=>c.map(((e,t)=>({label:e.label,value:e.valueDisplay||e.value.toString(),color:E.fill({...e,index:t})})))),[c,E]);if(n.useChartRegistration(I,F,C,"pie-semi-circle",O,{thickness:g,clockwise:j}),!O)return e.jsx("div",{className:v["pie-semi-circle-chart"],children:e.jsx("svg",{width:x,height:x/2,"data-testid":"pie-chart-svg",children:e.jsx("text",{x:"50%",y:"50%",textAnchor:"middle",className:v.error,children:$})})});const J=x/2,K=.03,Q=x-.06,U=J-K,W=Math.min(Q,2*U)/2,X=W*(1-g+K),Y=c.map(((e,t)=>({...e,index:t}))),Z=j?-Math.PI/2:Math.PI/2,_=j?Math.PI/2:-Math.PI/2;return e.jsxs("div",{className:r("pie-semi-circle-chart",v["pie-semi-circle-chart"],T),"data-testid":"pie-chart-container",style:{display:"flex",flexDirection:b&&"top"===M?"column-reverse":"column"},children:[e.jsx("svg",{width:x,height:J+(b&&"top"===M?V+20:0),viewBox:`0 0 ${x} ${J+(b&&"top"===M?V+20:0)}`,"data-testid":"pie-chart-svg",children:e.jsxs(i.Group,{top:W+(b&&"top"===M?V+20:0),left:W,children:[e.jsx(a.Pie,{data:Y,pieValue:E.value,outerRadius:W,innerRadius:X,cornerRadius:3,padAngle:K,startAngle:Z,endAngle:_,pieSort:E.sort,children:t=>t.arcs.map((i=>e.jsx("g",{onMouseMove:G(i),onMouseLeave:H,children:e.jsx("path",{d:t.path(i)||"",fill:E.fill(i.data),"data-testid":"pie-segment"})},i.data.label)))}),e.jsxs(i.Group,{children:[e.jsx(l.Text,{textAnchor:"middle",verticalAnchor:"start",y:-40,className:v.label,children:A}),e.jsx(l.Text,{textAnchor:"middle",verticalAnchor:"start",y:-20,className:v.note,children:N})]})]})}),q&&k&&R&&e.jsx(m.BaseTooltip,{data:{label:R.label,value:R.value,valueDisplay:R.valueDisplay},top:L||0,left:D||0}),b&&e.jsx(h.BaseLegend,{items:F,orientation:f,alignmentHorizontal:w,alignmentVertical:M,className:v["pie-semi-circle-chart-legend"],shape:y,ref:P})]})},g=t=>e.jsx(c.ChartProvider,{children:e.jsx(x,{...t})});g.displayName="PieSemiCircleChart";var j=u.withResponsive(g);module.exports=j;
|
|
2
2
|
//# sourceMappingURL=pie-semi-circle-chart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pie-semi-circle-chart.js","sources":["/@automattic/charts/../../../../src/components/pie-semi-circle-chart/pie-semi-circle-chart.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"pie-semi-circle-chart.js","sources":["/@automattic/charts/../../../../src/components/pie-semi-circle-chart/pie-semi-circle-chart.tsx"],"sourcesContent":[null],"names":["PieSemiCircleChartInternal","data","chartId","providedChartId","width","thickness","clockwise","withTooltips","showLegend","legendOrientation","legendAlignmentHorizontal","legendAlignmentVertical","legendShape","label","note","className","providerTheme","useChartTheme","useChartId","legendRef","legendHeight","useElementHeight","tooltipOpen","tooltipLeft","tooltipTop","tooltipData","hideTooltip","showTooltip","useTooltip","handleMouseMove","useCallback","event","arc","coords","localPoint","x","y","handleMouseLeave","handleArcMouseMove","isValid","message","length","some","item","percentage","value","reduce","sum","validateData","accessors","useMemo","d","sort","a","b","fill","color","colors","index","legendItems","map","valueDisplay","toString","useChartRegistration","_jsx","styles","children","height","jsx","textAnchor","error","pad","chartWidth","chartHeight","radius","Math","min","innerRadius","dataWithIndex","startAngle","PI","endAngle","_jsxs","jsxs","clsx","style","display","flexDirection","viewBox","Group","top","left","Pie","pieValue","outerRadius","cornerRadius","padAngle","pieSort","pie","arcs","onMouseMove","onMouseLeave","path","Text","verticalAnchor","BaseTooltip","Legend","items","orientation","alignmentHorizontal","alignmentVertical","shape","ref","PieSemiCircleChart","props","ChartProvider","displayName","withResponsive"],"mappings":"ilBAqDA,MAoBMA,EAA4D,EACjEC,OACAC,QAASC,EACTC,QAAQ,IACRC,YAAY,GACZC,aAAY,EACZC,gBAAe,EACfC,cAAa,EACbC,oBAAoB,aACpBC,4BAA4B,SAC5BC,0BAA0B,SAC1BC,cAAc,SACdC,QACAC,OACAC,gBAEA,MAAMC,EAAgBC,EAAAA,gBAChBf,EAAUgB,aAAYf,IACpBgB,EAAWC,GAAiBC,EAAgBA,oBAC9CC,YAAEA,EAAWC,YAAEA,EAAWC,WAAEA,EAAUC,YAAEA,EAAWC,YAAEA,EAAWC,YAAEA,GACvEC,EAAAA,aAEKC,EAAkBC,EAAAA,aACvB,CAAEC,EAAmBC,KACpB,MAAMC,EAASC,aAAYH,GACpBE,GAEPN,EAAa,CACZF,YAAaO,EAAI/B,KACjBsB,YAAaU,EAAOE,EACpBX,WAAYS,EAAOG,EAAI,OAGzB,CAAET,IAGGU,EAAmBP,EAAAA,aAAa,KACrCJ,MACE,CAAEA,IAECY,EAAqBR,EAAWA,aACnCE,GAAoBD,IACrBF,EAAiBE,EAAOC,KAEzB,CAAEH,KAIGU,QAAEA,EAAOC,QAAEA,GApEG,CAAEvC,GACfA,EAAKwC,OAKcxC,EAAKyC,MAAMC,GAAQA,EAAKC,WAAa,GAAKD,EAAKE,MAAQ,IAEzE,CAAEN,SAAS,EAAOC,QAAS,iDAIXvC,EAAK6C,QAAQ,CAAEC,EAAKJ,IAAUI,EAAMJ,EAAKC,YAAY,IACrD,EAChB,CAAEL,SAAS,EAAOC,QAAS,oDAG5B,CAAED,SAAS,EAAMC,QAAS,IAfzB,CAAED,SAAS,EAAOC,QAAS,qB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AcpC,EAAYoC,cAE3B6B,IAAMlE,GAAc,EACpBmE,KAAOpE,GAAe,IAItBf,GACDwD,EAAAA,IAAC0C,EAAAA,WACA,CAAAC,MAAQhD,EACRiD,YAAcnG,EACdoG,oBAAsBnG,EACtBoG,kBAAoBnG,EACpBI,UAAYkD,EAAQ,gCACpB8C,MAAQnG,EACRoG,IAAM7F,QAOL8F,EAAoDC,GACzDlD,MAACmD,EAAAA,cAAa,CAAAjD,SACbF,MAAChE,EAA0B,IAAMkH,MAInCD,EAAmBG,YAAc,qBACjC,IAAeC,EAAAA,EAAAA,eAA2CJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=require("@automattic/number-formatters");exports.formatMetricValue=(e,i="number",{decimals:t,useMultipliers:m=!1,signDisplay:a}={})=>{if(null==e)return"";const s=Number(e);if(isNaN(s))return"";switch(i){case"currency":return`$${m?r.formatNumberCompact(s,{decimals:t??2,numberFormatOptions:{maximumFractionDigits:t??2,signDisplay:a}}):r.formatNumber(s,{decimals:t??2,numberFormatOptions:{signDisplay:a}})}`;case"average":return Number.isFinite(s)?r.formatNumber(s,{decimals:t??0,numberFormatOptions:{style:"percent",signDisplay:a??"exceptZero"}}):"—";default:return m?r.formatNumberCompact(s,{decimals:t??0,numberFormatOptions:{maximumFractionDigits:t??0,signDisplay:a}}):r.formatNumber(s,{decimals:t??0,numberFormatOptions:{signDisplay:a}})}};
|
|
2
|
+
//# sourceMappingURL=format-metric-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-metric-value.js","sources":["/@automattic/charts/../../../../src/components/shared/format-metric-value.ts"],"sourcesContent":[null],"names":["value","type","decimals","useMultipliers","signDisplay","numericValue","Number","isNaN","formatNumberCompact","numberFormatOptions","maximumFractionDigits","formatNumber","isFinite","style"],"mappings":"sFAyBiC,CAChCA,EACAC,EAAwB,UACtBC,WAAUC,kBAAiB,EAAOC,eAA0C,MAE9E,GAAKJ,QACJ,MAAO,GAGR,MAAMK,EAAeC,OAAQN,GAC7B,GAAKO,MAAOF,GACX,MAAO,GAGR,OAASJ,GACR,IAAK,WAgBJ,MAAO,IAdWE,EACfK,EAAAA,oBAAqBH,EAAc,CACnCH,SAAUA,GAAY,EACtBO,oBAAqB,CACpBC,sBAAuBR,GAAY,EACnCE,iBAGDO,EAAAA,aAAcN,EAAc,CAC5BH,SAAUA,GAAY,EACtBO,oBAAqB,CACpBL,mBAML,IAAK,UACJ,OAAOE,OAAOM,SAAUP,GAIjBM,EAAAA,aAAcN,EAAc,CAClCH,SAAUA,GAAY,EACtBO,oBAAqB,CACpBI,MAAO,UACPT,YAAaA,GAAe,gBAPtB,IAaT,QACC,OAAOD,EACJK,EAAAA,oBAAqBH,EAAc,CACnCH,SAAUA,GAAY,EACtBO,oBAAqB,CACpBC,sBAAuBR,GAAY,EACnCE,iBAGDO,EAAAA,aAAcN,EAAc,CAC5BH,SAAUA,GAAY,EACtBO,oBAAqB,CACpBL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("react"),e=require("./date-parsing.js");exports.useChartDataTransform=a=>t.useMemo(()=>{const t=a?.[0]?.data?.[0];return t&&("date"in t||"dateString"in t)?a.map(t=>({...t,data:t.data.map(t=>{let a;return"date"in t&&t.date?a=t.date:"dateString"in t&&t.dateString&&(a=e.parseAsLocalDate(t.dateString)),{...t,date:a}}).sort((t,e)=>t.date&&e.date?t.date.getTime()-e.date.getTime():0)})):a},[a]);
|
|
1
|
+
"use strict";var t=require("react"),e=require("./date-parsing.js");exports.useChartDataTransform=a=>t.useMemo((()=>{const t=a?.[0]?.data?.[0];return t&&("date"in t||"dateString"in t)?a.map((t=>({...t,data:t.data.map((t=>{let a;return"date"in t&&t.date?a=t.date:"dateString"in t&&t.dateString&&(a=e.parseAsLocalDate(t.dateString)),{...t,date:a}})).sort(((t,e)=>t.date&&e.date?t.date.getTime()-e.date.getTime():0))}))):a}),[a]);
|
|
2
2
|
//# sourceMappingURL=use-chart-data-transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-chart-data-transform.js","sources":["/@automattic/charts/../../../../src/components/shared/use-chart-data-transform.ts"],"sourcesContent":[null],"names":["data","useMemo","firstPoint","map","series","point","date","dateString","parseAsLocalDate","sort","a","b","getTime"],"mappings":"iGAgBuCA,GAC/BC,EAAOA,
|
|
1
|
+
{"version":3,"file":"use-chart-data-transform.js","sources":["/@automattic/charts/../../../../src/components/shared/use-chart-data-transform.ts"],"sourcesContent":[null],"names":["data","useMemo","firstPoint","map","series","point","date","dateString","parseAsLocalDate","sort","a","b","getTime"],"mappings":"iGAgBuCA,GAC/BC,EAAOA,SAAE,KAEf,MAAMC,EAAaF,IAAQ,IAAKA,OAAQ,GAIxC,OAH0BE,IAAgB,SAAUA,GAAc,eAAgBA,GAQ3EF,EAAKG,KAAKC,IAAY,IACzBA,EACHJ,KAAMI,EAAOJ,KACXG,KAAKE,IACL,IAAIC,EAQJ,MANK,SAAUD,GAASA,EAAMC,KAC7BA,EAAOD,EAAMC,KACF,eAAgBD,GAASA,EAAME,aAC1CD,EAAOE,EAAgBA,iBAAEH,EAAME,aAGzB,IACHF,EACHC,WAGDG,MAAM,CAAEC,EAAGC,IACJD,EAAEJ,MAAUK,EAAEL,KACdI,EAAEJ,KAAKM,UAAYD,EAAEL,KAAKM,UADE,QAtB9BZ,IA0BN,CAAEA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("@visx/scale"),e=require("react"),a=require("./utils.js");exports.useChartMargin=(i,r,s,o,n=!1)=>{const c=e.useMemo(()=>{const e=s.flatMap(t=>t.data);if(n)return e.map(t=>t.label||r.axis?.y?.tickFormat(t.date.getTime(),0,[]));const a=Math.min(...e.map(t=>t.value)),o=Math.max(...e.map(t=>t.value)),c=t.createScale({...r.yScale,domain:[a,o],range:[i,0]});return t.getTicks(c,r.axis?.y?.numTicks)},[r,s,i,n]);return e.useMemo(()=>{const t={top:10,right:20,bottom:20,left:20},e=r.axis?.y?.orientation,i="right"===e?o.axisStyles.y.right:o.axisStyles.y.left,s=(a.getLongestTickWidth(c,r.axis?.y?.tickFormat,i.axisLabel)??40)+(i?.tickLength??0);return"right"===e?t.right=s:t.left=s,"top"===r.axis?.x?.orientation&&(t.top=20,t.bottom=10),t},[r,o,c])};
|
|
1
|
+
"use strict";var t=require("@visx/scale"),e=require("react"),a=require("./utils.js");exports.useChartMargin=(i,r,s,o,n=!1)=>{const c=e.useMemo((()=>{const e=s.flatMap((t=>t.data));if(n)return e.map((t=>t.label||r.axis?.y?.tickFormat(t.date.getTime(),0,[])));const a=Math.min(...e.map((t=>t.value))),o=Math.max(...e.map((t=>t.value))),c=t.createScale({...r.yScale,domain:[a,o],range:[i,0]});return t.getTicks(c,r.axis?.y?.numTicks)}),[r,s,i,n]);return e.useMemo((()=>{const t={top:10,right:20,bottom:20,left:20},e=r.axis?.y?.orientation,i="right"===e?o.axisStyles.y.right:o.axisStyles.y.left,s=(a.getLongestTickWidth(c,r.axis?.y?.tickFormat,i.axisLabel)??40)+(i?.tickLength??0);return"right"===e?t.right=s:t.left=s,"top"===r.axis?.x?.orientation&&(t.top=20,t.bottom=10),t}),[r,o,c])};
|
|
2
2
|
//# sourceMappingURL=use-chart-margin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-chart-margin.js","sources":["/@automattic/charts/../../../../src/components/shared/use-chart-margin.tsx"],"sourcesContent":[null],"names":["height","options","data","theme","horizontal","yTicks","useMemo","allDataPoints","flatMap","series","map","d","label","axis","y","tickFormat","date","getTime","minY","Math","min","value","maxY","max","yScale","createScale","domain","range","getTicks","numTicks","defaultMargin","top","right","bottom","left","yAxisOrientation","orientation","yAxisStyles","axisStyles","yMarginValue","getLongestTickWidth","axisLabel","tickLength","x"],"mappings":"4GAM8B,CAC7BA,EACAC,EACAC,EACAC,EACAC,GAAsB,KAEtB,MAAMC,EAASC,EAAAA,
|
|
1
|
+
{"version":3,"file":"use-chart-margin.js","sources":["/@automattic/charts/../../../../src/components/shared/use-chart-margin.tsx"],"sourcesContent":[null],"names":["height","options","data","theme","horizontal","yTicks","useMemo","allDataPoints","flatMap","series","map","d","label","axis","y","tickFormat","date","getTime","minY","Math","min","value","maxY","max","yScale","createScale","domain","range","getTicks","numTicks","defaultMargin","top","right","bottom","left","yAxisOrientation","orientation","yAxisStyles","axisStyles","yMarginValue","getLongestTickWidth","axisLabel","tickLength","x"],"mappings":"4GAM8B,CAC7BA,EACAC,EACAC,EACAC,EACAC,GAAsB,KAEtB,MAAMC,EAASC,EAAAA,SAAS,KACvB,MAAMC,EAAgBL,EAAKM,SAASC,GAAUA,EAAOP,OAErD,GAAKE,EAEJ,OAAOG,EAAcG,KACpBC,GAAKA,EAAEC,OAASX,EAAQY,MAAMC,GAAGC,WAAYJ,EAAEK,KAAKC,UAAW,EAAG,MAIpE,MAAMC,EAAOC,KAAKC,OAAQb,EAAcG,KAAKC,GAAKA,EAAEU,SAC9CC,EAAOH,KAAKI,OAAQhB,EAAcG,KAAKC,GAAKA,EAAEU,SAC9CG,EAASC,EAAAA,YAAa,IACxBxB,EAAQuB,OACXE,OAAQ,CAAER,EAAMI,GAChBK,MAAO,CAAE3B,EAAQ,KAGlB,OAAO4B,EAAAA,SAAUJ,EAAQvB,EAAQY,MAAMC,GAAGe,YACxC,CAAE5B,EAASC,EAAMF,EAAQI,IAE5B,OAAOE,EAAOA,SAAE,KAEf,MAAMwB,EAAgB,CAAEC,IAAK,GAAIC,MAAO,GAAIC,OAAQ,GAAIC,KAAM,IAIxDC,EAAmBlC,EAAQY,MAAMC,GAAGsB,YACpCC,EACgB,UAArBF,EAA+BhC,EAAMmC,WAAWxB,EAAEkB,MAAQ7B,EAAMmC,WAAWxB,EAAEoB,KAMxEK,GALaC,sBAClBnC,EACAJ,EAAQY,MAAMC,GAAGC,WACjBsB,EAAYI,YATY,KAWmCJ,GAAaK,YAAc,GAavF,MAX0B,UAArBP,EACJL,EAAcE,MAAQO,EAEtBT,EAAcI,KAAOK,EAGgB,QAAjCtC,EAAQY,MAAM8B,GAAGP,cACrBN,EAAcC,IAAM,GACpBD,EAAcG,OAAS,IAGjBH,IACL,CAAE7B,EAASE,EAAOE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react");exports.useElementHeight=function({initialHeight:t=0}={}){const[n,r]=e.useState(t),i=e.useRef(null);return[e.useCallback(e=>{if(i.current&&(i.current.disconnect(),i.current=null),e){const t=()=>{r(e.getBoundingClientRect().height||0)};t();const n=new window.ResizeObserver(t);n.observe(e),i.current=n}},[]),n]};
|
|
1
|
+
"use strict";var e=require("react");exports.useElementHeight=function({initialHeight:t=0}={}){const[n,r]=e.useState(t),i=e.useRef(null);return[e.useCallback((e=>{if(i.current&&(i.current.disconnect(),i.current=null),e){const t=()=>{r(e.getBoundingClientRect().height||0)};t();const n=new window.ResizeObserver(t);n.observe(e),i.current=n}}),[]),n]};
|
|
2
2
|
//# sourceMappingURL=use-element-height.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-element-height.js","sources":["/@automattic/charts/../../../../src/components/shared/use-element-height.ts"],"sourcesContent":[null],"names":["initialHeight","height","setHeight","useState","observerRef","useRef","useCallback","node","current","disconnect","handleResize","getBoundingClientRect","resizeObserver","window","ResizeObserver","observe"],"mappings":"6DAWM,UAAsEA,cAC3EA,EAAgB,GAGb,CAAA,GACH,MAAQC,EAAQC,GAAcC,EAAQA,SAAEH,GAClCI,EAAcC,SAAiC,MAkBrD,MAAO,CAhBaC,
|
|
1
|
+
{"version":3,"file":"use-element-height.js","sources":["/@automattic/charts/../../../../src/components/shared/use-element-height.ts"],"sourcesContent":[null],"names":["initialHeight","height","setHeight","useState","observerRef","useRef","useCallback","node","current","disconnect","handleResize","getBoundingClientRect","resizeObserver","window","ResizeObserver","observe"],"mappings":"6DAWM,UAAsEA,cAC3EA,EAAgB,GAGb,CAAA,GACH,MAAQC,EAAQC,GAAcC,EAAQA,SAAEH,GAClCI,EAAcC,SAAiC,MAkBrD,MAAO,CAhBaC,eAAeC,IAKlC,GAJKH,EAAYI,UAChBJ,EAAYI,QAAQC,aACpBL,EAAYI,QAAU,MAElBD,EAAO,CACX,MAAMG,EAAe,KACpBR,EAAWK,EAAKI,wBAAwBV,QAAU,IAEnDS,IACA,MAAME,EAAiB,IAAIC,OAAOC,eAAgBJ,GAClDE,EAAeG,QAASR,GACxBH,EAAYI,QAAUI,CACtB,IACC,IAEmBX,EACvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("@visx/text");exports.getLongestTickWidth=(e,r,i)=>{const
|
|
1
|
+
"use strict";var t=require("@visx/text");exports.getLongestTickWidth=(e,r,i)=>{const n=e.map((t=>r(t,0,[]))),a=n.reduce(((t,e)=>t.length>=e.length?t:e),n[0]);return t.getStringWidth(a,i)},exports.isSafari=()=>!("undefined"==typeof navigator||!navigator.userAgent)&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["/@automattic/charts/../../../../src/components/shared/utils.ts"],"sourcesContent":[null],"names":["ticks","formatTick","labelStyle","formattedTicks","map","tick","longestTick","reduce","longest","current","length","getStringWidth"],"mappings":"qEAYmC,CAClCA,EACAC,EACAC,KAEA,MAAMC,EAAiBH,EAAMI,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["/@automattic/charts/../../../../src/components/shared/utils.ts"],"sourcesContent":[null],"names":["ticks","formatTick","labelStyle","formattedTicks","map","tick","longestTick","reduce","longest","current","length","getStringWidth","navigator","userAgent","test"],"mappings":"qEAYmC,CAClCA,EACAC,EACAC,KAEA,MAAMC,EAAiBH,EAAMI,KAAKC,GAAQJ,EAAYI,EAAM,EAAG,MACzDC,EAAcH,EAAeI,QAClC,CAAEC,EAASC,IAAeD,EAAQE,QAAUD,EAAQC,OAASF,EAAUC,GACvEN,EAAgB,IAGjB,OAAOQ,EAAcA,eAAEL,EAAaJ,qBAGb,MACG,oBAAdU,YAA6BA,UAAUC,YAC3C,iCAAiCC,KAAMF,UAAUC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("@visx/xychart"),o=require("react");Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return t.Tooltip}}),exports.AccessibleTooltip=({renderTooltip:i,selectedIndex:r,tooltipRef:a,keyboardFocusedClassName:s,series:n=[],mode:l="group",...d})=>{const u=o.useContext(t.TooltipContext),c=o.useMemo((()=>{if("individual"!==l)return[];if(0===n.length)return[];const e=Math.max(...n.map((e=>e.data.length))),t=[];for(let o=0;o<e;o++)for(let e=0;e<n.length;e++){const i=n[e];o<i.data.length&&t.push({datum:i.data[o],seriesLabel:i.label,seriesIndex:e,dataPointIndex:o})}return t}),[n,l]);o.useEffect((()=>{if(void 0!==r){if("group"===l)n.forEach(((e,t)=>{if(r<e.data.length){const o=e.data[r];u?.showTooltip({datum:o,key:e.label,index:t})}}));else if("individual"===l&&r<c.length){const e=c[r];u?.showTooltip({datum:e.datum,key:e.seriesLabel,index:e.seriesIndex})}}else u?.hideTooltip()}),[r,c,n]);const f=o.useMemo((()=>{if(i)return t=>{const o=i(t);return void 0!==r?e.jsx("div",{ref:a,tabIndex:-1,role:"tooltip","aria-atomic":"true",className:s,"data-testid":`chart-tooltip-${r}`,children:o},`chart-tooltip-${r}`):e.jsx("div",{role:"tooltip","aria-live":"polite",children:o})}}),[i,r,a,s]);return e.jsx(t.Tooltip,{...d,renderTooltip:f})},exports.useKeyboardNavigation=({selectedIndex:e,setSelectedIndex:t,isNavigating:i,setIsNavigating:r,chartRef:a,totalPoints:s})=>({tooltipRef:o.useCallback((t=>{t&&void 0!==e&&t.focus()}),[e]),onChartFocus:o.useCallback((()=>{i||void 0===e||t(0)}),[i,e,t]),onChartBlur:o.useCallback((()=>{r(!1)}),[r]),onChartKeyDown:o.useCallback((o=>{if(0===s)return;if("Tab"===o.key)return a.current?.focus(),t(void 0),void r(!1);const i=void 0===e?-1:e;if(i+1>=s&&["ArrowRight"].includes(o.key))return a.current?.focus(),t(void 0),void r(!1);o.preventDefault(),["ArrowRight"].includes(o.key)?(r(!0),t((i+1)%s)):["ArrowLeft"].includes(o.key)?(r(!0),t((i-1+s)%s)):"Escape"===o.key&&(t(void 0),r(!1),a.current?.focus())}),[s,e,t,r,a])});
|
|
2
|
+
//# sourceMappingURL=accessible-tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessible-tooltip.js","sources":["/@automattic/charts/../../../../src/components/tooltip/accessible-tooltip.tsx"],"sourcesContent":[null],"names":["renderTooltip","selectedIndex","tooltipRef","keyboardFocusedClassName","series","mode","props","tooltipContext","useContext","TooltipContext","tooltipData","useMemo","length","maxDataPoints","Math","max","map","s","data","flattened","dataPointIndex","seriesIndex","seriesData","push","datum","seriesLabel","label","useEffect","undefined","forEach","index","showTooltip","key","tooltipItem","hideTooltip","focusableRenderTooltip","params","tooltipContent","_jsx","ref","tabIndex","role","className","children","jsx","Tooltip","setSelectedIndex","isNavigating","setIsNavigating","chartRef","totalPoints","useCallback","element","focus","onChartFocus","onChartBlur","onChartKeyDown","event","current","currentSelectedIndex","includes","preventDefault"],"mappings":"kNAyCqE,EACpEA,gBACAC,gBACAC,aACAC,2BACAC,SAAS,GACTC,OAAO,WACJC,MAEH,MAAMC,EAAiBC,aAAYC,EAAAA,gBAE7BC,EAAcC,EAAAA,SAAS,KAC5B,GAAc,eAATN,EAAwB,MAAO,GACpC,GAAuB,IAAlBD,EAAOQ,OAAe,MAAO,GAElC,MAAMC,EAAgBC,KAAKC,OAAQX,EAAOY,KAAKC,GAAKA,EAAEC,KAAKN,UACrDO,EAKA,GAGN,IAAM,IAAIC,EAAiB,EAAGA,EAAiBP,EAAeO,IAC7D,IAAM,IAAIC,EAAc,EAAGA,EAAcjB,EAA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,UAGV,CAAEpD,IAuDFqD,aAnDoBH,EAAAA,aAAa,KAC1BJ,QAAkCnB,IAAlB3B,GACtB6C,EAAkB,KAEjB,CAAEC,EAAc9C,EAAe6C,IAgDjCS,YA7CmBJ,EAAAA,aAAa,KAChCH,GAAiB,KACf,CAAEA,IA4CJQ,eA1CsBL,eACpBM,IACD,GAAqB,IAAhBP,EAAoB,OAGzB,GAAmB,QAAdO,EAAMzB,IAIV,OAHAiB,EAASS,SAASL,QAClBP,OAAkBlB,QAClBoB,GAAiB,GAIlB,MAAMW,OAAyC/B,IAAlB3B,GAA+B,EAAIA,EAEhE,GAAK0D,EAAuB,GAAKT,GAAe,CAAE,cAAeU,SAAUH,EAAMzB,KAIhF,OAHAiB,EAASS,SAASL,QAClBP,OAAkBlB,QAClBoB,GAAiB,GAIlBS,EAAMI,iBAED,CAAE,cAAeD,SAAUH,EAAMzB,MACrCgB,GAAiB,GACjBF,GAAoBa,EAAuB,GAAMT,IACtC,CAAE,aAAcU,SAAUH,EAAMzB,MAC3CgB,GAAiB,GACjBF,GAAoBa,EAAuB,EAAIT,GAAgBA,IACtC,WAAdO,EAAMzB,MACjBc,OAAkBlB,GAClBoB,GAAiB,GACjBC,EAASS,SAASL,WAGpB,CAAEH,EAAajD,EAAe6C,EAAkBE,EAAiBC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var o=require("@visx/event"),t=require("@visx/tooltip"),e=require("react");module.exports=({withTooltips:i})=>{const{tooltipOpen:l,tooltipLeft:p,tooltipTop:a,tooltipData:r,hideTooltip:s,showTooltip:u}=t.useTooltip();return{onMouseMove:e.useCallback((t,e)=>{if(!i)return;const l=o.localPoint(t);l&&u({tooltipData:e,tooltipLeft:l.x,tooltipTop:l.y-10})},[i,u]),onMouseLeave:e.useCallback(()=>{i&&s()},[i,s]),tooltipOpen:l,tooltipData:r||null,tooltipLeft:p,tooltipTop:a}};
|
|
1
|
+
"use strict";var o=require("@visx/event"),t=require("@visx/tooltip"),e=require("react");module.exports=({withTooltips:i})=>{const{tooltipOpen:l,tooltipLeft:p,tooltipTop:a,tooltipData:r,hideTooltip:s,showTooltip:u}=t.useTooltip();return{onMouseMove:e.useCallback(((t,e)=>{if(!i)return;const l=o.localPoint(t);l&&u({tooltipData:e,tooltipLeft:l.x,tooltipTop:l.y-10})}),[i,u]),onMouseLeave:e.useCallback((()=>{i&&s()}),[i,s]),tooltipOpen:l,tooltipData:r||null,tooltipLeft:p,tooltipTop:a}};
|
|
2
2
|
//# sourceMappingURL=use-chart-mouse-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-chart-mouse-handler.js","sources":["/@automattic/charts/../../../src/hooks/use-chart-mouse-handler.ts"],"sourcesContent":[null],"names":["withTooltips","tooltipOpen","tooltipLeft","tooltipTop","tooltipData","hideTooltip","showTooltip","useTooltip","onMouseMove","useCallback","event","data","coords","localPoint","x","y","onMouseLeave"],"mappings":"uGA6C6B,EAC5BA,mBAEA,MAAMC,YAAEA,EAAWC,YAAEA,EAAWC,WAAEA,EAAUC,YAAEA,EAAWC,YAAEA,EAAWC,YAAEA,GACvEC,EAAAA,aA8BD,MAAO,CACNC,YA5BmBC,EAAAA,
|
|
1
|
+
{"version":3,"file":"use-chart-mouse-handler.js","sources":["/@automattic/charts/../../../src/hooks/use-chart-mouse-handler.ts"],"sourcesContent":[null],"names":["withTooltips","tooltipOpen","tooltipLeft","tooltipTop","tooltipData","hideTooltip","showTooltip","useTooltip","onMouseMove","useCallback","event","data","coords","localPoint","x","y","onMouseLeave"],"mappings":"uGA6C6B,EAC5BA,mBAEA,MAAMC,YAAEA,EAAWC,YAAEA,EAAWC,WAAEA,EAAUC,YAAEA,EAAWC,YAAEA,EAAWC,YAAEA,GACvEC,EAAAA,aA8BD,MAAO,CACNC,YA5BmBC,EAAAA,aACnB,CAAEC,EAAiCC,KAClC,IAAOX,EACN,OAGD,MAAMY,EAASC,aAAYH,GACpBE,GAIPN,EAAa,CACZF,YAAaO,EACbT,YAAaU,EAAOE,EACpBX,WAAYS,EAAOG,EAAI,OAGzB,CAAEf,EAAcM,IAYhBU,aAToBP,EAAAA,aAAa,KAC1BT,GAGPK,MACE,CAAEL,EAAcK,IAKlBJ,cACAG,YAAaA,GAAe,KAC5BF,cACAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("./components/bar-chart/bar-chart.js"),r=require("./components/line-chart/line-chart.js"),t=require("./components/pie-chart/pie-chart.js"),
|
|
1
|
+
"use strict";var e=require("./components/bar-chart/bar-chart.js"),r=require("./components/line-chart/line-chart.js"),t=require("./components/pie-chart/pie-chart.js"),o=require("./components/pie-semi-circle-chart/pie-semi-circle-chart.js"),s=require("./components/bar-list-chart/bar-list-chart.js"),a=require("./components/leaderboard-chart/leaderboard-chart.js"),i=require("./components/shared/format-metric-value.js"),h=require("./components/tooltip/base-tooltip.js"),p=require("./components/legend/base-legend.js"),c=require("./providers/theme/theme-provider.js"),m=require("./providers/theme/themes.js"),n=require("./hooks/use-chart-mouse-handler.js");exports.BarChart=e,exports.LineChart=r.default,exports.PieChart=t,exports.PieSemiCircleChart=o,exports.BarListChart=s,exports.LeaderboardChart=a.LeaderboardChart,exports.formatMetricValue=i.formatMetricValue,exports.BaseTooltip=h.BaseTooltip,exports.Legend=p.BaseLegend,exports.ThemeProvider=c.ThemeProvider,exports.defaultTheme=m.defaultTheme,exports.jetpackTheme=m.jetpackTheme,exports.wooTheme=m.wooTheme,exports.useChartMouseHandler=n;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../../@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js"),r=require("../../../../../@emotion_weak-memoize@0.4.0/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"),a=require("../../../../../@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),t=require("../../../../../stylis@4.2.0/node_modules/stylis/src/Middleware.js"),s=require("../../../../../stylis@4.2.0/node_modules/stylis/src/Enum.js"),c=require("../../../../../stylis@4.2.0/node_modules/stylis/src/Utility.js"),n=require("../../../../../stylis@4.2.0/node_modules/stylis/src/Serializer.js"),i=require("../../../../../stylis@4.2.0/node_modules/stylis/src/Tokenizer.js"),o=require("../../../../../stylis@4.2.0/node_modules/stylis/src/Parser.js"),l="undefined"!=typeof document,u=function(e,r,a){for(var t=0,s=0;t=s,s=i.peek(),38===t&&12===s&&(r[a]=1),!i.token(s);)i.next();return i.slice(e,i.position)},p=function(e,r){return i.dealloc(function(e,r){var a=-1,t=44;do{switch(i.token(t)){case 0:38===t&&12===i.peek()&&(r[a]=1),e[a]+=u(i.position-1,r,a);break;case 2:e[a]+=i.delimit(t);break;case 4:if(44===t){e[++a]=58===i.peek()?"&\f":"",r[a]=e[a].length;break}default:e[a]+=c.from(t)}}while(t=i.next());return e}(i.alloc(e),r))},d=new WeakMap,m=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var r=e.value,a=e.parent,t=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||d.get(a))&&!t){d.set(e,!0);for(var s=[],c=p(r,s),n=a.props,i=0,o=0;i<c.length;i++)for(var l=0;l<n.length;l++,o++)e.props[o]=s[i]?c[i].replace(/&\f/g,n[l]):n[l]+" "+c[i]}}},f=function(e){if("decl"===e.type){var r=e.value;108===r.charCodeAt(0)&&98===r.charCodeAt(2)&&(e.return="",e.value="")}};function h(e,r){switch(c.hash(e,r)){case 5103:return s.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return s.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return s.WEBKIT+e+s.MOZ+e+s.MS+e+e;case 6828:case 4268:return s.WEBKIT+e+s.MS+e+e;case 6165:return s.WEBKIT+e+s.MS+"flex-"+e+e;case 5187:return s.WEBKIT+e+c.replace(e,/(\w+).+(:[^]+)/,s.WEBKIT+"box-$1$2"+s.MS+"flex-$1$2")+e;case 5443:return s.WEBKIT+e+s.MS+"flex-item-"+c.replace(e,/flex-|-self/,"")+e;case 4675:return s.WEBKIT+e+s.MS+"flex-line-pack"+c.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return s.WEBKIT+e+s.MS+c.replace(e,"shrink","negative")+e;case 5292:return s.WEBKIT+e+s.MS+c.replace(e,"basis","preferred-size")+e;case 6060:return s.WEBKIT+"box-"+c.replace(e,"-grow","")+s.WEBKIT+e+s.MS+c.replace(e,"grow","positive")+e;case 4554:return s.WEBKIT+c.replace(e,/([^-])(transform)/g,"$1"+s.WEBKIT+"$2")+e;case 6187:return c.replace(c.replace(c.replace(e,/(zoom-|grab)/,s.WEBKIT+"$1"),/(image-set)/,s.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return c.replace(e,/(image-set\([^]*)/,s.WEBKIT+"$1$`$1");case 4968:return c.replace(c.replace(e,/(.+:)(flex-)?(.*)/,s.WEBKIT+"box-pack:$3"+s.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return c.replace(e,/(.+)-inline(.+)/,s.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(c.strlen(e)-1-r>6)switch(c.charat(e,r+1)){case 109:if(45!==c.charat(e,r+4))break;case 102:return c.replace(e,/(.+:)(.+)-([^]+)/,"$1"+s.WEBKIT+"$2-$3$1"+s.MOZ+(108==c.charat(e,r+3)?"$3":"$2-$3"))+e;case 115:return~c.indexof(e,"stretch")?h(c.replace(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==c.charat(e,r+1))break;case 6444:switch(c.charat(e,c.strlen(e)-3-(~c.indexof(e,"!important")&&10))){case 107:return c.replace(e,":",":"+s.WEBKIT)+e;case 101:return c.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+s.WEBKIT+(45===c.charat(e,14)?"inline-":"")+"box$3$1"+s.WEBKIT+"$2$3$1"+s.MS+"$2box$3")+e}break;case 5936:switch(c.charat(e,r+11)){case 114:return s.WEBKIT+e+s.MS+c.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return s.WEBKIT+e+s.MS+c.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return s.WEBKIT+e+s.MS+c.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return s.WEBKIT+e+s.MS+e+e}return e}var y=l?void 0:r((function(){return a((function(){return{}}))})),E=[function(e,r,a,t){if(e.length>-1&&!e.return)switch(e.type){case s.DECLARATION:e.return=h(e.value,e.length);break;case s.KEYFRAMES:return n.serialize([i.copy(e,{value:c.replace(e.value,"@","@"+s.WEBKIT)})],t);case s.RULESET:if(e.length)return c.combine(e.props,(function(r){switch(c.match(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return n.serialize([i.copy(e,{props:[c.replace(r,/:(read-\w+)/,":"+s.MOZ+"$1")]})],t);case"::placeholder":return n.serialize([i.copy(e,{props:[c.replace(r,/:(plac\w+)/,":"+s.WEBKIT+"input-$1")]}),i.copy(e,{props:[c.replace(r,/:(plac\w+)/,":"+s.MOZ+"$1")]}),i.copy(e,{props:[c.replace(r,/:(plac\w+)/,s.MS+"input-$1")]})],t)}return""}))}}];module.exports=function(r){var a=r.key;if(l&&"css"===a){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var c,i,u=r.stylisPlugins||E,p={},d=[];l&&(c=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),(function(e){for(var r=e.getAttribute("data-emotion").split(" "),a=1;a<r.length;a++)p[r[a]]=!0;d.push(e)})));var h=[m,f];if(y){var v=[n.stringify],T=t.middleware(h.concat(u,v)),$=y(u)(a),I=function(e,r){var a,t=r.name;return void 0===$[t]&&($[t]=(a=e?e+"{"+r.styles+"}":r.styles,n.serialize(o.compile(a),T))),$[t]};i=function(e,r,a,t){var s=r.name,c=I(e,r);return void 0===w.compat?(t&&(w.inserted[s]=!0),c):t?void(w.inserted[s]=c):c}}else{var K,W=[n.stringify,t.rulesheet((function(e){K.insert(e)}))],B=t.middleware(h.concat(u,W));i=function(e,r,a,t){var s;K=a,s=e?e+"{"+r.styles+"}":r.styles,n.serialize(o.compile(s),B),t&&(w.inserted[r.name]=!0)}}var w={key:a,sheet:new e.StyleSheet({key:a,container:c,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:p,registered:{},insert:i};return w.sheet.hydrate(d),w};
|
|
2
|
+
//# sourceMappingURL=emotion-cache.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-cache.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.esm.js"],"sourcesContent":["import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, stringify, rulesheet, middleware, compile } from 'stylis';\nimport weakMemoize from '@emotion/weak-memoize';\nimport memoize from '@emotion/memoize';\n\nvar isBrowser = typeof document !== 'undefined';\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n var previous = 0;\n var character = 0;\n\n while (true) {\n previous = character;\n character = peek(); // &\\f\n\n if (previous === 38 && character === 12) {\n points[index] = 1;\n }\n\n if (token(character)) {\n break;\n }\n\n next();\n }\n\n return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n // pretend we've started with a comma\n var index = -1;\n var character = 44;\n\n do {\n switch (token(character)) {\n case 0:\n // &\\f\n if (character === 38 && peek() === 12) {\n // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n // and when it should just concatenate the outer and inner selectors\n // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n points[index] = 1;\n }\n\n parsed[index] += identifierWithPointTracking(position - 1, points, index);\n break;\n\n case 2:\n parsed[index] += delimit(character);\n break;\n\n case 4:\n // comma\n if (character === 44) {\n // colon\n parsed[++index] = peek() === 58 ? '&\\f' : '';\n points[index] = parsed[index].length;\n break;\n }\n\n // fallthrough\n\n default:\n parsed[index] += from(character);\n }\n } while (character = next());\n\n return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n element.length < 1) {\n return;\n }\n\n var value = element.value;\n var parent = element.parent;\n var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n while (parent.type !== 'rule') {\n parent = parent.parent;\n if (!parent) return;\n } // short-circuit for the simplest case\n\n\n if (element.props.length === 1 && value.charCodeAt(0) !== 58\n /* colon */\n && !fixedElements.get(parent)) {\n return;\n } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n if (isImplicitRule) {\n return;\n }\n\n fixedElements.set(element, true);\n var points = [];\n var rules = getRules(value, points);\n var parentRules = parent.props;\n\n for (var i = 0, k = 0; i < rules.length; i++) {\n for (var j = 0; j < parentRules.length; j++, k++) {\n element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n }\n }\n};\nvar removeLabel = function removeLabel(element) {\n if (element.type === 'decl') {\n var value = element.value;\n\n if ( // charcode for l\n value.charCodeAt(0) === 108 && // charcode for b\n value.charCodeAt(2) === 98) {\n // this ignores label\n element[\"return\"] = '';\n element.value = '';\n }\n }\n};\n\n/* eslint-disable no-fallthrough */\n\nfunction prefix(value, length) {\n switch (hash(value, length)) {\n // color-adjust\n case 5103:\n return WEBKIT + 'print-' + value + value;\n // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return WEBKIT + value + value;\n // appearance, user-select, transform, hyphens, text-size-adjust\n\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return WEBKIT + value + MOZ + value + MS + value + value;\n // flex, flex-direction\n\n case 6828:\n case 4268:\n return WEBKIT + value + MS + value + value;\n // order\n\n case 6165:\n return WEBKIT + value + MS + 'flex-' + value + value;\n // align-items\n\n case 5187:\n return WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;\n // align-self\n\n case 5443:\n return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;\n // align-content\n\n case 4675:\n return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;\n // flex-shrink\n\n case 5548:\n return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;\n // flex-basis\n\n case 5292:\n return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;\n // flex-grow\n\n case 6060:\n return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;\n // transition\n\n case 4554:\n return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;\n // cursor\n\n case 6187:\n return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;\n // background, background-image\n\n case 5495:\n case 3959:\n return replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1');\n // justify-content\n\n case 4968:\n return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;\n // (margin|padding)-inline-(start|end)\n\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;\n // (min|max)?(width|height|inline-size|block-size)\n\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n // stretch, max-content, min-content, fill-available\n if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {\n // (m)ax-content, (m)in-content\n case 109:\n // -\n if (charat(value, length + 4) !== 45) break;\n // (f)ill-available, (f)it-content\n\n case 102:\n return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;\n // (s)tretch\n\n case 115:\n return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;\n }\n break;\n // position: sticky\n\n case 4949:\n // (s)ticky?\n if (charat(value, length + 1) !== 115) break;\n // display: (flex|inline-flex)\n\n case 6444:\n switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n // stic(k)y\n case 107:\n return replace(value, ':', ':' + WEBKIT) + value;\n // (inline-)?fl(e)x\n\n case 101:\n return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;\n }\n\n break;\n // writing-mode\n\n case 5936:\n switch (charat(value, length + 11)) {\n // vertical-l(r)\n case 114:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value;\n // vertical-r(l)\n\n case 108:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value;\n // horizontal(-)tb\n\n case 45:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value;\n }\n\n return WEBKIT + value + MS + value + value;\n }\n\n return value;\n}\n\nvar prefixer = function prefixer(element, index, children, callback) {\n if (element.length > -1) if (!element[\"return\"]) switch (element.type) {\n case DECLARATION:\n element[\"return\"] = prefix(element.value, element.length);\n break;\n\n case KEYFRAMES:\n return serialize([copy(element, {\n value: replace(element.value, '@', '@' + WEBKIT)\n })], callback);\n\n case RULESET:\n if (element.length) return combine(element.props, function (value) {\n switch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n // :read-(only|write)\n case ':read-only':\n case ':read-write':\n return serialize([copy(element, {\n props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]\n })], callback);\n // :placeholder\n\n case '::placeholder':\n return serialize([copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]\n })], callback);\n }\n\n return '';\n });\n }\n};\n\nvar getServerStylisCache = isBrowser ? undefined : weakMemoize(function () {\n return memoize(function () {\n return {};\n });\n});\nvar defaultStylisPlugins = [prefixer];\n\nvar createCache = function createCache(options) {\n var key = options.key;\n\n if (isBrowser && key === 'css') {\n var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n // note this very very intentionally targets all style elements regardless of the key to ensure\n // that creating a cache works inside of render of a React component\n\n Array.prototype.forEach.call(ssrStyles, function (node) {\n // we want to only move elements which have a space in the data-emotion attribute value\n // because that indicates that it is an Emotion 11 server-side rendered style elements\n // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n // will not result in the Emotion 10 styles being destroyed\n var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n if (dataEmotionAttribute.indexOf(' ') === -1) {\n return;\n }\n\n document.head.appendChild(node);\n node.setAttribute('data-s', '');\n });\n }\n\n var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n var inserted = {};\n var container;\n var nodesToHydrate = [];\n\n if (isBrowser) {\n container = options.container || document.head;\n Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node) {\n var attrib = node.getAttribute(\"data-emotion\").split(' ');\n\n for (var i = 1; i < attrib.length; i++) {\n inserted[attrib[i]] = true;\n }\n\n nodesToHydrate.push(node);\n });\n }\n\n var _insert;\n\n var omnipresentPlugins = [compat, removeLabel];\n\n if (!getServerStylisCache) {\n var currentSheet;\n var finalizingPlugins = [stringify, rulesheet(function (rule) {\n currentSheet.insert(rule);\n })];\n var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n var stylis = function stylis(styles) {\n return serialize(compile(styles), serializer);\n };\n\n _insert = function insert(selector, serialized, sheet, shouldCache) {\n currentSheet = sheet;\n\n stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n if (shouldCache) {\n cache.inserted[serialized.name] = true;\n }\n };\n } else {\n var _finalizingPlugins = [stringify];\n\n var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));\n\n var _stylis = function _stylis(styles) {\n return serialize(compile(styles), _serializer);\n };\n\n var serverStylisCache = getServerStylisCache(stylisPlugins)(key);\n\n var getRules = function getRules(selector, serialized) {\n var name = serialized.name;\n\n if (serverStylisCache[name] === undefined) {\n serverStylisCache[name] = _stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n }\n\n return serverStylisCache[name];\n };\n\n _insert = function _insert(selector, serialized, sheet, shouldCache) {\n var name = serialized.name;\n var rules = getRules(selector, serialized);\n\n if (cache.compat === undefined) {\n // in regular mode, we don't set the styles on the inserted cache\n // since we don't need to and that would be wasting memory\n // we return them so that they are rendered in a style tag\n if (shouldCache) {\n cache.inserted[name] = true;\n }\n\n return rules;\n } else {\n // in compat mode, we put the styles on the inserted cache so\n // that emotion-server can pull out the styles\n // except when we don't want to cache it which was in Global but now\n // is nowhere but we don't want to do a major right now\n // and just in case we're going to leave the case here\n // it's also not affecting client side bundle size\n // so it's really not a big deal\n if (shouldCache) {\n cache.inserted[name] = rules;\n } else {\n return rules;\n }\n }\n };\n }\n\n var cache = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy,\n prepend: options.prepend,\n insertionPoint: options.insertionPoint\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n cache.sheet.hydrate(nodesToHydrate);\n return cache;\n};\n\nexport { createCache as default };\n"],"names":["isBrowser","document","identifierWithPointTracking","begin","points","index","previous","character","peek","token","next","slice","position","getRules","value","dealloc","parsed","delimit","length","from","toRules","alloc","fixedElements","WeakMap","compat","element","type","parent","isImplicitRule","column","line","props","charCodeAt","get","set","rules","parentRules","i","k","j","replace","removeLabel","prefix","hash","WEBKIT","MOZ","MS","strlen","charat","indexof","getServerStylisCache","undefined","weakMemoize","memoize","defaultStylisPlugins","children","callback","DECLARATION","KEYFRAMES","serialize","copy","RULESET","combine","match","options","key","ssrStyles","querySelectorAll","Array","prototype","forEach","call","node","getAttribute","indexOf","head","appendChild","setAttribute","container","_insert","stylisPlugins","inserted","nodesToHydrate","attrib","split","push","omnipresentPlugins","_finalizingPlugins","stringify","_serializer","middleware","concat","serverStylisCache","selector","serialized","styles","name","compile","sheet","shouldCache","cache","currentSheet","finalizingPlugins","rulesheet","rule","insert","serializer","StyleSheet","nonce","speedy","prepend","insertionPoint","registered","hydrate"],"mappings":"6yBAKIA,EAAgC,oBAAbC,SAEnBC,EAA8B,SAAqCC,EAAOC,EAAQC,GAIpF,IAHA,IAAIC,EAAW,EACXC,EAAY,EAGdD,EAAWC,EACXA,EAAYC,EAAIA,OAEC,KAAbF,GAAiC,KAAdC,IACrBH,EAAOC,GAAS,IAGdI,EAAAA,MAAMF,IAIVG,EAAAA,OAGF,OAAOC,EAAKA,MAACR,EAAOS,EAAAA,SACtB,EA6CIC,EAAW,SAAkBC,EAAOV,GACtC,OAAOW,EAAAA,QA5CK,SAAiBC,EAAQZ,GAErC,IAAIC,GAAS,EACTE,EAAY,GAEhB,GACE,OAAQE,EAAAA,MAAMF,IACZ,KAAK,EAEe,KAAdA,GAA+B,KAAXC,EAAIA,SAK1BJ,EAAOC,GAAS,GAGlBW,EAAOX,IAAUH,EAA4BU,EAAQA,SAAG,EAAGR,EAAQC,GACnE,MAEF,KAAK,EACHW,EAAOX,IAAUY,EAAOA,QAACV,GACzB,MAEF,KAAK,EAEH,GAAkB,KAAdA,EAAkB,CAEpBS,IAASX,GAAoB,KAAXG,EAAA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II,EAAQ,CACVnC,IAAKA,EACLiC,MAAO,IAAIS,EAAAA,WAAW,CACpB1C,IAAKA,EACLa,UAAWA,EACX8B,MAAO5C,EAAQ4C,MACfC,OAAQ7C,EAAQ6C,OAChBC,QAAS9C,EAAQ8C,QACjBC,eAAgB/C,EAAQ+C,iBAE1BH,MAAO5C,EAAQ4C,MACf3B,SAAUA,EACV+B,WAAY,CAAE,EACdP,OAAQ1B,GAGV,OADAqB,EAAMF,MAAMe,QAAQ/B,GACbkB,CACT","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";module.exports=function(t){for(var e,r=0,c=0,o=t.length;o>=4;++c,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24))+(59797*(e>>>16)<<16),r=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&t.charCodeAt(c+2))<<16;case 2:r^=(255&t.charCodeAt(c+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(c)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};
|
|
2
|
+
//# sourceMappingURL=emotion-hash.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-hash.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js"],"sourcesContent":["/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n"],"names":["str","k","h","i","len","length","charCodeAt","toString"],"mappings":"4BAGA,SAAiBA,GAYf,IANA,IAEIC,EAFAC,EAAI,EAGJC,EAAI,EACJC,EAAMJ,EAAIK,OAEPD,GAAO,IAAKD,EAAGC,GAAO,EAE3BH,EAEe,YAAV,OAHLA,EAAwB,IAApBD,EAAIM,WAAWH,IAAmC,IAAtBH,EAAIM,aAAaH,KAAc,GAA2B,IAAtBH,EAAIM,aAAaH,KAAc,IAA4B,IAAtBH,EAAIM,aAAaH,KAAc,MAG9F,OAAZF,IAAM,KAAgB,IAIpDC,EAEe,YAAV,OALLD,GAEAA,IAAM,MAGoC,OAAZA,IAAM,KAAgB,IAErC,YAAV,MAAJC,IAAyC,OAAZA,IAAM,KAAgB,IAItD,OAAQE,GACN,KAAK,EACHF,IAA8B,IAAxBF,EAAIM,WAAWH,EAAI,KAAc,GAEzC,KAAK,EACHD,IAA8B,IAAxBF,EAAIM,WAAWH,EAAI,KAAc,EAEzC,KAAK,EAEHD,EAEe,YAAV,OAHLA,GAAyB,IAApBF,EAAIM,WAAWH,MAGsB,OAAZD,IAAM,KAAgB,IASxD,SAHAA,EAEe,YAAV,OAHLA,GAAKA,IAAM,MAG+B,OAAZA,IAAM,KAAgB,KACvCA,IAAM,MAAQ,GAAGK,SAAS,GACzC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../../@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),t=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=e((function(e){return t.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));module.exports=i;
|
|
2
|
+
//# sourceMappingURL=emotion-is-prop-valid.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-is-prop-valid.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"],"sourcesContent":["import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n"],"names":["reactPropsRegex","isPropValid","memoize","prop","test","charCodeAt"],"mappings":"8HAGIA,EAAkB,sgIAElBC,EAA6BC,GAAQ,SAAUC,GACjD,OAAOH,EAAgBI,KAAKD,IAAgC,MAAvBA,EAAKE,WAAW,IAE3B,MAAvBF,EAAKE,WAAW,IAEhBF,EAAKE,WAAW,GAAK,EAC1B","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-memoize.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n"],"names":["fn","cache","Object","create","arg","undefined"],"mappings":"4BAAA,SAAiBA,GACf,IAAIC,EAAQC,OAAOC,OAAO,MAC1B,OAAO,SAAUC,GAEf,YADmBC,IAAfJ,EAAMG,KAAoBH,EAAMG,GAAOJ,EAAGI,IACvCH,EAAMG,EACjB,CACA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../../../../@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.esm.js");require("@babel/runtime/helpers/esm/extends");var r=require("../../../../../@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js"),n=require("../../../../../@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js"),s=require("../../../../../@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@18.3.1/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js");function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=i(e),a=!1,c="undefined"!=typeof document,l=o.createContext("undefined"!=typeof HTMLElement?t({key:"css"}):null);l.Provider,exports.w=function(t){return e.forwardRef((function(r,n){var s=e.useContext(l);return t(r,s,n)}))},c||(exports.w=function(r){return function(n){var s=e.useContext(l);return null===s?(s=t({key:"css"}),o.createElement(l.Provider,{value:s},r(n,s))):r(n,s)}});var u=o.createContext({}),f={}.hasOwnProperty,m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;r.registerStyles(t,n,i);var a=s.useInsertionEffectAlwaysWithSyncFallback((function(){return r.insertStyles(t,n,i)}));if(!c&&void 0!==a){for(var l,u=n.name,f=n.next;void 0!==f;)u+=" "+f.name,f=f.next;return o.createElement("style",((l={})["data-emotion"]=t.key+" "+u,l.dangerouslySetInnerHTML={__html:a},l.nonce=t.sheet.nonce,l))}return null},v=exports.w((function(e,t,s){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var a=e[m],c=[i],l="";"string"==typeof e.className?l=r.getRegisteredStyles(t.registered,c,e.className):null!=e.className&&(l=e.className+" ");var v=n.serializeStyles(c,void 0,o.useContext(u));l+=t.key+"-"+v.name;var y={};for(var _ in e)f.call(e,_)&&"css"!==_&&_!==m&&(y[_]=e[_]);return y.className=l,s&&(y.ref=s),o.createElement(o.Fragment,null,o.createElement(d,{cache:t,serialized:v,isStringTag:"string"==typeof a}),o.createElement(a,y))}));exports.E=v,exports.T=u,exports.a=a,exports.c=function(e,t){var r={};for(var n in t)f.call(t,n)&&(r[n]=t[n]);return r[m]=e,r},exports.h=f,exports.i=c;
|
|
2
|
+
//# sourceMappingURL=emotion-element-d59e098f.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-element-d59e098f.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js"],"sourcesContent":["import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar isDevelopment = false;\n\nvar isBrowser = typeof document !== 'undefined';\n\nvar EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n return /*#__PURE__*/forwardRef(function (props, ref) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nif (!isBrowser) {\n withEmotionCache = function withEmotionCache(func) {\n return function (props) {\n var cache = useContext(EmotionCacheContext);\n\n if (cache === null) {\n // yes, we're potentially creating this on every render\n // it doesn't actually matter though since it's only on the server\n // so there will only every be a single render\n // that could change in the future because of suspense and etc. but for now,\n // this works and i don't want to optimise for a future thing that we aren't sure about\n cache = createCache({\n key: 'css'\n });\n return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {\n value: cache\n }, func(props, cache));\n } else {\n return func(props, cache);\n }\n };\n };\n}\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\nvar useTheme = function useTheme() {\n return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n return mergedTheme;\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n var theme = React.useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme(Component) {\n var componentName = Component.displayName || Component.name || 'Component';\n var WithTheme = /*#__PURE__*/React.forwardRef(function render(props, ref) {\n var theme = React.useContext(ThemeContext);\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n });\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar hasOwn = {}.hasOwnProperty;\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n\n var newProps = {};\n\n for (var _key in props) {\n if (hasOwn.call(props, _key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:\n\n return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n var rules = useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n if (!isBrowser && rules !== undefined) {\n var _ref2;\n\n var serializedNames = serialized.name;\n var next = serialized.next;\n\n while (next !== undefined) {\n serializedNames += ' ' + next.name;\n next = next.next;\n }\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref2 = {}, _ref2[\"data-emotion\"] = cache.key + \" \" + serializedNames, _ref2.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref2.nonce = cache.sheet.nonce, _ref2));\n }\n\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var WrappedComponent = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var _key2 in props) {\n if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment )) {\n newProps[_key2] = props[_key2];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof WrappedComponent === 'string'\n }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, isDevelopment as a, ThemeProvider as b, createEmotionProps as c, withTheme as d, hasOwn as h, isBrowser as i, useTheme as u, withEmotionCache as w };\n"],"names":["isDevelopment","isBrowser","document","EmotionCacheContext","React","createContext","HTMLElement","createCache","key","Provider","withEmotionCache","func","forwardRef","props","ref","cache","useContext","createElement","value","ThemeContext","hasOwn","hasOwnProperty","typePropName","Insertion","_ref","serialized","isStringTag","registerStyles","rules","useInsertionEffectAlwaysWithSyncFallback","insertStyles","undefined","_ref2","serializedNames","name","next","dangerouslySetInnerHTML","__html","nonce","sheet","Emotion$1","cssProp","css","registered","WrappedComponent","registeredStyles","className","getRegisteredStyles","serializeStyles","newProps","_key2","call","Fragment","type","_key"],"mappings":"q3BAUIA,GAAgB,EAEhBC,EAAgC,oBAAbC,SAEnBC,EAAqCC,EAAMC,cAMxB,oBAAhBC,YAA6CC,EAAY,CAC9DC,IAAK,QACF,MAEeL,EAAoBM,SAKpCC,QAAAA,EAAmB,SAA0BC,GAC/C,OAAoBC,EAAUA,YAAC,SAAUC,EAAOC,GAE9C,IAAIC,EAAQC,aAAWb,GACvB,OAAOQ,EAAKE,EAAOE,EAAOD,EAC9B,GACA,EAEKb,IACHS,UAAmB,SAA0BC,GAC3C,OAAO,SAAUE,GACf,IAAIE,EAAQC,aAAWb,GAEvB,OAAc,OAAVY,GAMFA,EAAQR,EAAY,CAClBC,IAAK,QAEaJ,EAAMa,cAAcd,EAAoBM,SAAU,CACpES,MAAOH,GACNJ,EAAKE,EAAOE,KAERJ,EAAKE,EAAOE,EAE3B,CACA,GAGG,IAACI,EAA8Bf,EAAMC,cAAc,IA6ClDe,EAAS,CAAE,EAACC,eAEZC,EAAe,qCAgBfC,EAAY,SAAmBC,GACjC,IAAIT,EAAQS,EAAKT,MACbU,EAAaD,EAAKC,WAClBC,EAAcF,EAAKE,YACvBC,EAAAA,eAAeZ,EAAOU,EAAYC,GAClC,IAAIE,EAAQC,EAAAA,0CAAyC,WACnD,OAAOC,eAAaf,EAAOU,EAAYC,EAC3C,IAEE,IAAKzB,QAAuB8B,IAAVH,EAAqB,CAMrC,IALA,IAAII,EAEAC,EAAkBR,EAAWS,KAC7BC,EAAOV,EAAWU,UAENJ,IAATI,GACLF,GAAmB,IAAME,EAAKD,KAC9BC,EAAOA,EAAKA,KAGd,OAAoB/B,EAAMa,cAAc,UAAUe,E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@@
|
|
|
1
|
+
"use strict";var e=require("./emotion-element-d59e098f.esm.js"),t=require("react"),r=require("../../../../../@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}require("@babel/runtime/helpers/extends"),require("../../../../../hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");var s,i,o=n(t);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.serializeStyles(t)}exports.jsx=function(t,r){var n=arguments;if(null==r||!e.h.call(r,"css"))return o.createElement.apply(void 0,n);var s=n.length,i=new Array(s);i[0]=e.E,i[1]=e.c(t,r);for(var a=2;a<s;a++)i[a]=n[a];return o.createElement.apply(null,i)},s=exports.jsx||(exports.jsx={}),i||(i=s.JSX||(s.JSX={})),exports.ThemeContext=e.T,Object.defineProperty(exports,"withEmotionCache",{enumerable:!0,get:function(){return e.w}}),exports.createElement=exports.jsx,exports.css=a,exports.keyframes=function(){var e=a.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};
|
|
2
|
+
//# sourceMappingURL=emotion-react.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-react.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js"],"sourcesContent":["import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext, i as isBrowser, a as isDevelopment } from './emotion-element-d59e098f.esm.js';\nexport { C as CacheProvider, T as ThemeContext, b as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, d as withTheme } from './emotion-element-d59e098f.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js';\nimport 'hoist-non-react-statics';\n\nvar jsx = function jsx(type, props) {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n\n if (props == null || !hasOwn.call(props, 'css')) {\n return React.createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n }\n\n return React.createElement.apply(null, createElementArgArray);\n};\n\n(function (_jsx) {\n var JSX;\n\n (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));\n})(jsx || (jsx = {}));\n\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n\n if (!isBrowser) {\n var _ref;\n\n var serializedNames = serialized.name;\n var serializedStyles = serialized.styles;\n var next = serialized.next;\n\n while (next !== undefined) {\n serializedNames += ' ' + next.name;\n serializedStyles += next.styles;\n next = next.next;\n }\n\n var shouldCache = cache.compat === true;\n var rules = cache.insert(\"\", {\n name: serializedNames,\n styles: serializedStyles\n }, cache.sheet, shouldCache);\n\n if (shouldCache) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref = {}, _ref[\"data-emotion\"] = cache.key + \"-global \" + serializedNames, _ref.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref.nonce = cache.sheet.nonce, _ref));\n } // yes, i know these hooks are used conditionally\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = React.useRef();\n useInsertionEffectWithLayoutFallback(function () {\n var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n var sheet = new cache.sheet.constructor({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false;\n var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useInsertionEffectWithLayoutFallback(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nfunction keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name;\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n}\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serializedArr = _ref.serializedArr;\n var rules = useInsertionEffectAlwaysWithSyncFallback(function () {\n var rules = '';\n\n for (var i = 0; i < serializedArr.length; i++) {\n var res = insertStyles(cache, serializedArr[i], false);\n\n if (!isBrowser && res !== undefined) {\n rules += res;\n }\n }\n\n if (!isBrowser) {\n return rules;\n }\n });\n\n if (!isBrowser && rules.length !== 0) {\n var _ref2;\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref2 = {}, _ref2[\"data-emotion\"] = cache.key + \" \" + serializedArr.map(function (serialized) {\n return serialized.name;\n }).join(' '), _ref2.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref2.nonce = cache.sheet.nonce, _ref2));\n }\n\n return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n var serializedArr = [];\n\n var css = function css() {\n if (hasRendered && isDevelopment) {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n registerStyles(cache, serialized, false);\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && isDevelopment) {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: React.useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serializedArr: serializedArr\n }), ele);\n});\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n"],"names":["_jsx","JSX","css","_len","arguments","length","args","Array","_key","serializeStyles","jsx","type","props","hasOwn","call","React","createElement","apply","undefined","argsLength","createElementArgArray","Emotion","createEmotionProps","c","i","insertable","name","styles","anim","toString","this"],"mappings":"wnBAgCWA,EACLC,SAqGN,SAASC,IACP,IAAK,IAAIC,EAAOC,UAAUC,OAAQC,EAAO,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAC/EF,EAAKE,GAAQJ,UAAUI,GAGzB,OAAOC,EAAAA,gBAAgBH,EACzB,CAhIII,QAAAA,IAAM,SAAaC,EAAMC,GAE3B,IAAIN,EAAOF,UAEX,GAAa,MAATQ,IAAkBC,EAAAA,EAAOC,KAAKF,EAAO,OACvC,OAAOG,EAAMC,cAAcC,WAAMC,EAAWZ,GAG9C,IAAIa,EAAab,EAAKD,OAClBe,EAAwB,IAAIb,MAAMY,GACtCC,EAAsB,GAAKC,IAC3BD,EAAsB,GAAKE,EAAkBC,EAACZ,EAAMC,GAEpD,IAAK,IAAIY,EAAI,EAAGA,EAAIL,EAAYK,IAC9BJ,EAAsBI,GAAKlB,EAAKkB,GAGlC,OAAOT,EAAMC,cAAcC,MAAM,KAAMG,EACzC,EAEWpB,EAIRU,cAAQA,QAAAA,IAAM,CAAE,GADIT,IAAQA,EAAMD,EAAKC,MAAQD,EAAKC,IAAM,CAAE,4LA2G/D,WACE,IAAIwB,EAAavB,EAAIe,WAAM,EAAQb,WAC/BsB,EAAO,aAAeD,EAAWC,KACrC,MAAO,CACLA,KAAMA,EACNC,OAAQ,cAAgBD,EAAO,IAAMD,EAAWE,OAAS,IACzDC,KAAM,EACNC,SAAU,WACR,MAAO,QAAUC,KAAKJ,KAAO,IAAMI,KAAKH,OAAS,OAClD,EAEL","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../../../../../@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js"),n=require("../../../../../@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"),t=require("../../../../../@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),r=/[A-Z]|^ms/g,o=/_EMO_([^_]+?)_([^]*?)_EMO_/g,i=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},a=t((function(e){return i(e)?e:e.replace(r,"-$&").toLowerCase()})),l=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(o,(function(e,n,t){return m={name:n,styles:t,next:m},n}))}return 1===n[e]||i(e)||"number"!=typeof t||0===t?t:t+"px"};function u(e,n,t){if(null==t)return"";var r=t;if(void 0!==r.__emotion_styles)return r;switch(typeof t){case"boolean":return"";case"object":var o=t;if(1===o.anim)return m={name:o.name,styles:o.styles,next:m},o.name;var i=t;if(void 0!==i.styles){var f=i.next;if(void 0!==f)for(;void 0!==f;)m={name:f.name,styles:f.styles,next:m},f=f.next;return i.styles+";"}return function(e,n,t){var r="";if(Array.isArray(t))for(var o=0;o<t.length;o++)r+=u(e,n,t[o])+";";else for(var i in t){var m=t[i];if("object"!=typeof m){var f=m;null!=n&&void 0!==n[f]?r+=i+"{"+n[f]+"}":s(f)&&(r+=a(i)+":"+l(i,f)+";")}else if(!Array.isArray(m)||"string"!=typeof m[0]||null!=n&&void 0!==n[m[0]]){var v=u(e,n,m);switch(i){case"animation":case"animationName":r+=a(i)+":"+v+";";break;default:r+=i+"{"+v+"}"}}else for(var c=0;c<m.length;c++)s(m[c])&&(r+=a(i)+":"+l(i,m[c])+";")}return r}(e,n,t);case"function":if(void 0!==e){var v=m,c=t(e);return m=v,u(e,n,c)}}var d=t;if(null==n)return d;var y=n[d];return void 0!==y?y:d}var m,f=/label:\s*([^\s;{]+)\s*(;|$)/g;exports.serializeStyles=function(n,t,r){if(1===n.length&&"object"==typeof n[0]&&null!==n[0]&&void 0!==n[0].styles)return n[0];var o=!0,i="";m=void 0;var s=n[0];null==s||void 0===s.raw?(o=!1,i+=u(r,t,s)):i+=s[0];for(var a=1;a<n.length;a++){if(i+=u(r,t,n[a]),o)i+=s[a]}f.lastIndex=0;for(var l,v="";null!==(l=f.exec(i));)v+="-"+l[1];return{name:e(i)+v,styles:i,next:m}};
|
|
2
|
+
//# sourceMappingURL=emotion-serialize.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-serialize.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js"],"sourcesContent":["import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = false;\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n var componentSelector = interpolation;\n\n if (componentSelector.__emotion_styles !== undefined) {\n\n return componentSelector;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n var keyframes = interpolation;\n\n if (keyframes.anim === 1) {\n cursor = {\n name: keyframes.name,\n styles: keyframes.styles,\n next: cursor\n };\n return keyframes.name;\n }\n\n var serializedStyles = interpolation;\n\n if (serializedStyles.styles !== undefined) {\n var next = serializedStyles.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = serializedStyles.styles + \";\";\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n }\n\n break;\n }\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n var asString = interpolation;\n\n if (registered == null) {\n return asString;\n }\n\n var cached = registered[asString];\n return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var key in obj) {\n var value = obj[key];\n\n if (typeof value !== 'object') {\n var asString = value;\n\n if (registered != null && registered[asString] !== undefined) {\n string += key + \"{\" + registered[asString] + \"}\";\n } else if (isProcessableValue(asString)) {\n string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n\n string += key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;{]+)\\s*(;|$)/g; // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n var asTemplateStringsArr = strings;\n\n styles += asTemplateStringsArr[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n var templateStringsArr = strings;\n\n styles += templateStringsArr[i];\n }\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n}\n\nexport { serializeStyles };\n"],"names":["hyphenateRegex","animationRegex","isCustomProperty","property","charCodeAt","isProcessableValue","value","processStyleName","memoize","styleName","replace","toLowerCase","processStyleValue","key","match","p1","p2","cursor","name","styles","next","unitless","handleInterpolation","mergedProps","registered","interpolation","componentSelector","undefined","__emotion_styles","keyframes","anim","serializedStyles","obj","string","Array","isArray","i","length","asString","interpolated","_i","createStringFromObject","previousCursor","result","cached","labelPattern","args","stringMode","strings","raw","lastIndex","identifierName","exec","hashString"],"mappings":"mVAMIA,EAAiB,aACjBC,EAAiB,8BAEjBC,EAAmB,SAA0BC,GAC/C,OAAkC,KAA3BA,EAASC,WAAW,EAC7B,EAEIC,EAAqB,SAA4BC,GACnD,OAAgB,MAATA,GAAkC,kBAAVA,CACjC,EAEIC,EAAkCC,GAAQ,SAAUC,GACtD,OAAOP,EAAiBO,GAAaA,EAAYA,EAAUC,QAAQV,EAAgB,OAAOW,aAC5F,IAEIC,EAAoB,SAA2BC,EAAKP,GACtD,OAAQO,GACN,IAAK,YACL,IAAK,gBAED,GAAqB,iBAAVP,EACT,OAAOA,EAAMI,QAAQT,GAAgB,SAAUa,EAAOC,EAAIC,GAMxD,OALAC,EAAS,CACPC,KAAMH,EACNI,OAAQH,EACRI,KAAMH,GAEDF,CACnB,IAKE,OAAsB,IAAlBM,EAASR,IAAeX,EAAiBW,IAAyB,iBAAVP,GAAgC,IAAVA,E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C,EAAQ+B,EAAaO,KAAKjC,KAChCgC,GAAkB,IAAMrC,EAAM,GAKhC,MAAO,CACLI,KAHSmC,EAAWlC,GAAUgC,EAI9BhC,OAAQA,EACRC,KAAMH,EAEV","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})),this.tags=[],this.ctr=0},t}();exports.StyleSheet=t;
|
|
2
|
+
//# sourceMappingURL=emotion-sheet.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-sheet.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js"],"sourcesContent":["var isDevelopment = false;\n\n/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n return document.styleSheets[i];\n }\n } // this function should always return with a value\n // TS can't understand it though so we make it stop complaining here\n\n\n return undefined;\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n tag.setAttribute('data-s', '');\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n // Using Node instead of HTMLElement since container may be a ShadowRoot\n function StyleSheet(options) {\n var _this = this;\n\n this._insertTag = function (tag) {\n var before;\n\n if (_this.tags.length === 0) {\n if (_this.insertionPoint) {\n before = _this.insertionPoint.nextSibling;\n } else if (_this.prepend) {\n before = _this.container.firstChild;\n } else {\n before = _this.before;\n }\n } else {\n before = _this.tags[_this.tags.length - 1].nextSibling;\n }\n\n _this.container.insertBefore(tag, before);\n\n _this.tags.push(tag);\n };\n\n this.isSpeedy = options.speedy === undefined ? !isDevelopment : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.prepend = options.prepend;\n this.insertionPoint = options.insertionPoint;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.hydrate = function hydrate(nodes) {\n nodes.forEach(this._insertTag);\n };\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n this._insertTag(createStyleElement(this));\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n this.tags.forEach(function (tag) {\n var _tag$parentNode;\n\n return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };\n"],"names":["StyleSheet","options","_this","this","_insertTag","tag","before","tags","length","insertionPoint","nextSibling","prepend","container","firstChild","insertBefore","push","isSpeedy","undefined","speedy","ctr","nonce","key","_proto","prototype","hydrate","nodes","forEach","insert","rule","document","createElement","setAttribute","appendChild","createTextNode","createStyleElement","sheet","i","styleSheets","ownerNode","sheetForTag","insertRule","cssRules","e","flush","_tag$parentNode","parentNode","removeChild"],"mappings":"aAyDG,IAACA,EAA0B,WAE5B,SAASA,EAAWC,GAClB,IAAIC,EAAQC,KAEZA,KAAKC,WAAa,SAAUC,GAC1B,IAAIC,EAIAA,EAFsB,IAAtBJ,EAAMK,KAAKC,OACTN,EAAMO,eACCP,EAAMO,eAAeC,YACrBR,EAAMS,QACNT,EAAMU,UAAUC,WAEhBX,EAAMI,OAGRJ,EAAMK,KAAKL,EAAMK,KAAKC,OAAS,GAAGE,YAG7CR,EAAMU,UAAUE,aAAaT,EAAKC,GAElCJ,EAAMK,KAAKQ,KAAKV,EAC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AQ,WACbxC,KAAKI,KAAKmB,SAAQ,SAAUrB,GAC1B,IAAIuC,EAEJ,OAA6C,OAArCA,EAAkBvC,EAAIwC,iBAAsB,EAASD,EAAgBE,YAAYzC,EAC/F,IACIF,KAAKI,KAAO,GACZJ,KAAKgB,IAAM,CACf,EAESnB,CACT,CAhF8B","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/esm/extends"),t=require("../../../../../../@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js"),r=require("../../../../../../@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@18.3.1/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js"),o=require("../../../../../../@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js"),n=require("react"),i=require("../../../../../../@emotion_is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),s=require("../../../../../../@emotion_react@11.14.0_@types_react@18.3.23_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js");function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=a(n),u="undefined"!=typeof document,m=i,c=function(e){return"theme"!==e},d=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?m:c},f=function(e,t,r){var o;if(t){var n=t.shouldForwardProp;o=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof o&&r&&(o=e.__emotion_forwardProp),o},_=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;o.registerStyles(t,n,i);var s=r.useInsertionEffectAlwaysWithSyncFallback((function(){return o.insertStyles(t,n,i)}));if(!u&&void 0!==s){for(var a,m=n.name,c=n.next;void 0!==c;)m+=" "+c.name,c=c.next;return l.createElement("style",((a={})["data-emotion"]=t.key+" "+m,a.dangerouslySetInnerHTML={__html:s},a.nonce=t.sheet.nonce,a))}return null};module.exports=function r(n,i){var a,u,m=n.__emotion_real===n,c=m&&n.__emotion_base||n;void 0!==i&&(a=i.label,u=i.target);var p=f(n,i,m),v=p||d(c),y=!v("as");return function(){var h=arguments,g=m&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==a&&g.push("label:"+a+";"),null==h[0]||void 0===h[0].raw)g.push.apply(g,h);else{var b=h[0];g.push(b[0]);for(var w=h.length,j=1;j<w;j++)g.push(h[j],b[j])}var P=s.w((function(e,r,n){var i=y&&e.as||c,a="",m=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=l.useContext(s.T)}"string"==typeof e.className?a=o.getRegisteredStyles(r.registered,m,e.className):null!=e.className&&(a=e.className+" ");var b=t.serializeStyles(g.concat(m),r.registered,f);a+=r.key+"-"+b.name,void 0!==u&&(a+=" "+u);var w=y&&void 0===p?d(i):v,j={};for(var P in e)y&&"as"===P||w(P)&&(j[P]=e[P]);return j.className=a,n&&(j.ref=n),l.createElement(l.Fragment,null,l.createElement(_,{cache:r,serialized:b,isStringTag:"string"==typeof i}),l.createElement(i,j))}));return P.displayName=void 0!==a?a:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",P.defaultProps=n.defaultProps,P.__emotion_real=P,P.__emotion_base=c,P.__emotion_styles=g,P.__emotion_forwardProp=p,Object.defineProperty(P,"toString",{value:function(){return"."+u}}),P.withComponent=function(t,o){return r(t,e({},i,o,{shouldForwardProp:f(P,o,!0)})).apply(void 0,g)},P}};
|
|
2
|
+
//# sourceMappingURL=emotion-styled-base.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-styled-base.esm.js","sources":["/@automattic/charts/../../../../../../../../../../../../../node_modules/.pnpm/@emotion+styled@11.14.0_@emotion+react@11.14.0_@types+react@18.3.23_react@18.3.1__@types+react@18.3.23_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js"],"sourcesContent":["import _extends from '@babel/runtime/helpers/esm/extends';\nimport { withEmotionCache, ThemeContext } from '@emotion/react';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport * as React from 'react';\nimport isPropValid from '@emotion/is-prop-valid';\n\nvar isBrowser = typeof document !== 'undefined';\n\nvar isDevelopment = false;\n\nvar testOmitPropsOnStringTag = isPropValid;\n\nvar testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {\n return key !== 'theme';\n};\n\nvar getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {\n return typeof tag === 'string' && // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;\n};\nvar composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {\n var shouldForwardProp;\n\n if (options) {\n var optionsShouldForwardProp = options.shouldForwardProp;\n shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {\n return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);\n } : optionsShouldForwardProp;\n }\n\n if (typeof shouldForwardProp !== 'function' && isReal) {\n shouldForwardProp = tag.__emotion_forwardProp;\n }\n\n return shouldForwardProp;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n var rules = useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n if (!isBrowser && rules !== undefined) {\n var _ref2;\n\n var serializedNames = serialized.name;\n var next = serialized.next;\n\n while (next !== undefined) {\n serializedNames += ' ' + next.name;\n next = next.next;\n }\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref2 = {}, _ref2[\"data-emotion\"] = cache.key + \" \" + serializedNames, _ref2.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref2.nonce = cache.sheet.nonce, _ref2));\n }\n\n return null;\n};\n\nvar createStyled = function createStyled(tag, options) {\n\n var isReal = tag.__emotion_real === tag;\n var baseTag = isReal && tag.__emotion_base || tag;\n var identifierName;\n var targetClassName;\n\n if (options !== undefined) {\n identifierName = options.label;\n targetClassName = options.target;\n }\n\n var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);\n var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);\n var shouldUseAs = !defaultShouldForwardProp('as');\n return function () {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];\n\n if (identifierName !== undefined) {\n styles.push(\"label:\" + identifierName + \";\");\n }\n\n if (args[0] == null || args[0].raw === undefined) {\n // eslint-disable-next-line prefer-spread\n styles.push.apply(styles, args);\n } else {\n var templateStringsArr = args[0];\n\n styles.push(templateStringsArr[0]);\n var len = args.length;\n var i = 1;\n\n for (; i < len; i++) {\n\n styles.push(args[i], templateStringsArr[i]);\n }\n }\n\n var Styled = withEmotionCache(function (props, cache, ref) {\n var FinalTag = shouldUseAs && props.as || baseTag;\n var className = '';\n var classInterpolations = [];\n var mergedProps = props;\n\n if (props.theme == null) {\n mergedProps = {};\n\n for (var key in props) {\n mergedProps[key] = props[key];\n }\n\n mergedProps.theme = React.useContext(ThemeContext);\n }\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, classInterpolations, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);\n className += cache.key + \"-\" + serialized.name;\n\n if (targetClassName !== undefined) {\n className += \" \" + targetClassName;\n }\n\n var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;\n var newProps = {};\n\n for (var _key in props) {\n if (shouldUseAs && _key === 'as') continue;\n\n if (finalShouldForwardProp(_key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof FinalTag === 'string'\n }), /*#__PURE__*/React.createElement(FinalTag, newProps));\n });\n Styled.displayName = identifierName !== undefined ? identifierName : \"Styled(\" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + \")\";\n Styled.defaultProps = tag.defaultProps;\n Styled.__emotion_real = Styled;\n Styled.__emotion_base = baseTag;\n Styled.__emotion_styles = styles;\n Styled.__emotion_forwardProp = shouldForwardProp;\n Object.defineProperty(Styled, 'toString', {\n value: function value() {\n if (targetClassName === undefined && isDevelopment) {\n return 'NO_COMPONENT_SELECTOR';\n }\n\n return \".\" + targetClassName;\n }\n });\n\n Styled.withComponent = function (nextTag, nextOptions) {\n var newStyled = createStyled(nextTag, _extends({}, options, nextOptions, {\n shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)\n }));\n return newStyled.apply(void 0, styles);\n };\n\n return Styled;\n };\n};\n\nexport { createStyled as default };\n"],"names":["isBrowser","document","testOmitPropsOnStringTag","isPropValid","testOmitPropsOnComponent","key","getDefaultShouldForwardProp","tag","charCodeAt","composeShouldForwardProps","options","isReal","shouldForwardProp","optionsShouldForwardProp","__emotion_forwardProp","propName","Insertion","_ref","cache","serialized","isStringTag","registerStyles","rules","useInsertionEffectAlwaysWithSyncFallback","insertStyles","undefined","_ref2","serializedNames","name","next","React","createElement","dangerouslySetInnerHTML","__html","nonce","sheet","createStyled","identifierName","targetClassName","__emotion_real","baseTag","__emotion_base","label","target","defaultShouldForwardProp","shouldUseAs","args","arguments","styles","__emotion_styles","slice","push","raw","apply","templateStringsArr","len","length","i","Styled","withEmotionCache","w","props","ref","FinalTag","as","className","classInterpolations","mergedProps","theme","useContext","ThemeContext","T","getRegisteredStyles","registered","serializeStyles","concat","finalShouldForwardProp","newProps","_key","Fragment","displayName","defaultProps","Object","defineProperty","value","withComponent","nextTag","nextOptions","_extends"],"mappings":"8iCAQIA,EAAgC,oBAAbC,SAInBC,EAA2BC,EAE3BC,EAA2B,SAAkCC,GAC/D,MAAe,UAARA,CACT,EAEIC,EAA8B,SAAqCC,GACrE,MAAsB,iBAARA,GAGdA,EAAIC,WAAW,GAAK,GAAKN,EAA2BE,CACtD,EACIK,EAA4B,SAAmCF,EAAKG,EAASC,GAC/E,IAAIC,EAEJ,GAAIF,EAAS,CACX,IAAIG,EAA2BH,EAAQE,kBACvCA,EAAoBL,EAAIO,uBAAyBD,EAA2B,SAAUE,GACpF,OAAOR,EAAIO,sBAAsBC,IAAaF,EAAyBE,EACxE,EAAGF,CACL,CAMD,MAJiC,mBAAtBD,GAAoCD,IAC7CC,EAAoBL,EAAIO,uBAGnBF,CACT,EAEII,EAAY,SAAmBC,GACjC,IAAIC,EAAQD,EAAKC,MACbC,EAAaF,EAAKE,WAClBC,EAAcH,EAAKG,YACvBC,EAAAA,eAAeH,EAAOC,EAAYC,GAClC,IAAIE,EAAQC,EAAAA,0CAAyC,WACnD,OAAOC,eAAaN,EAAOC,EAAYC,EAC3C,IAEE,IAAKpB,QAAuByB,IAAVH,EAAqB,CAMrC,IALA,IAAII,EAEAC,EAAkBR,EAAWS,KAC7BC,EAAOV,EAAWU,UAENJ,IAATI,GACLF,GAAmB,IAAME,EAAKD,KAC9BC,EAAOA,EAAKA,KAGd,OAAoBC,EAAMC,cAAc,UAAUL,EAAQ,CAAE,GAAQ,gBAAkBR,EAAMb,IAAM,IAAMsB,EAAiBD,EAAMM,wBAA0B,CACvJC,OAAQX,GACPI,EAAMQ,MAAQ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