mage-ai 0.9.69__py3-none-any.whl → 0.9.71__py3-none-any.whl
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.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/ai/utils/xgboost.py +222 -0
- mage_ai/api/errors.py +37 -25
- mage_ai/api/operations/base.py +13 -1
- mage_ai/api/parsers/PipelineScheduleParser.py +1 -1
- mage_ai/api/policies/BackfillPolicy.py +1 -0
- mage_ai/api/policies/BlockOutputPolicy.py +40 -17
- mage_ai/api/policies/GlobalDataProductPolicy.py +91 -41
- mage_ai/api/policies/KernelPolicy.py +55 -32
- mage_ai/api/policies/KernelProcessPolicy.py +56 -0
- mage_ai/api/policies/OutputPolicy.py +73 -41
- mage_ai/api/policies/PipelinePolicy.py +206 -137
- mage_ai/api/policies/WorkspacePolicy.py +1 -0
- mage_ai/api/presenters/BackfillPresenter.py +1 -0
- mage_ai/api/presenters/BlockLayoutItemPresenter.py +9 -7
- mage_ai/api/presenters/BlockPresenter.py +1 -1
- mage_ai/api/presenters/GlobalDataProductPresenter.py +6 -1
- mage_ai/api/presenters/KernelPresenter.py +5 -26
- mage_ai/api/presenters/KernelProcessPresenter.py +28 -0
- mage_ai/api/presenters/PipelinePresenter.py +18 -5
- mage_ai/api/presenters/StatusPresenter.py +2 -0
- mage_ai/api/presenters/SyncPresenter.py +25 -0
- mage_ai/api/resources/AutocompleteItemResource.py +1 -1
- mage_ai/api/resources/BlockLayoutItemResource.py +90 -44
- mage_ai/api/resources/BlockOutputResource.py +42 -9
- mage_ai/api/resources/BlockResource.py +4 -3
- mage_ai/api/resources/BlockRunResource.py +27 -22
- mage_ai/api/resources/ClusterResource.py +4 -1
- mage_ai/api/resources/CustomTemplateResource.py +34 -14
- mage_ai/api/resources/DataProviderResource.py +1 -1
- mage_ai/api/resources/ExecutionStateResource.py +3 -1
- mage_ai/api/resources/FileContentResource.py +8 -2
- mage_ai/api/resources/FileResource.py +10 -4
- mage_ai/api/resources/FileVersionResource.py +3 -1
- mage_ai/api/resources/GitBranchResource.py +101 -31
- mage_ai/api/resources/GitCustomBranchResource.py +29 -1
- mage_ai/api/resources/GlobalDataProductResource.py +44 -7
- mage_ai/api/resources/GlobalHookResource.py +4 -1
- mage_ai/api/resources/IntegrationDestinationResource.py +6 -2
- mage_ai/api/resources/IntegrationSourceResource.py +8 -4
- mage_ai/api/resources/IntegrationSourceStreamResource.py +6 -2
- mage_ai/api/resources/KernelProcessResource.py +44 -0
- mage_ai/api/resources/KernelResource.py +25 -3
- mage_ai/api/resources/OauthResource.py +1 -1
- mage_ai/api/resources/OutputResource.py +33 -11
- mage_ai/api/resources/PageBlockLayoutResource.py +34 -23
- mage_ai/api/resources/PipelineInteractionResource.py +31 -15
- mage_ai/api/resources/PipelineResource.py +258 -125
- mage_ai/api/resources/PipelineRunResource.py +52 -7
- mage_ai/api/resources/PipelineScheduleResource.py +11 -2
- mage_ai/api/resources/PipelineTriggerResource.py +6 -1
- mage_ai/api/resources/ProjectResource.py +18 -7
- mage_ai/api/resources/PullRequestResource.py +6 -4
- mage_ai/api/resources/SecretResource.py +1 -1
- mage_ai/api/resources/SeedResource.py +8 -1
- mage_ai/api/resources/StatusResource.py +21 -6
- mage_ai/api/resources/SyncResource.py +6 -8
- mage_ai/api/resources/VariableResource.py +46 -26
- mage_ai/api/resources/VersionControlProjectResource.py +9 -2
- mage_ai/api/resources/WidgetResource.py +1 -1
- mage_ai/api/resources/WorkspaceResource.py +6 -5
- mage_ai/api/views.py +47 -40
- mage_ai/authentication/permissions/seed.py +16 -2
- mage_ai/authentication/providers/oidc.py +21 -1
- mage_ai/autocomplete/utils.py +13 -9
- mage_ai/cache/base.py +1 -1
- mage_ai/cache/block.py +18 -12
- mage_ai/cache/block_action_object/__init__.py +33 -5
- mage_ai/cache/file.py +22 -19
- mage_ai/cache/pipeline.py +18 -12
- mage_ai/cli/main.py +1 -0
- mage_ai/cluster_manager/aws/emr_cluster_manager.py +9 -5
- mage_ai/cluster_manager/config.py +2 -2
- mage_ai/cluster_manager/kubernetes/workload_manager.py +52 -1
- mage_ai/cluster_manager/manage.py +1 -1
- mage_ai/cluster_manager/workspace/base.py +7 -1
- mage_ai/cluster_manager/workspace/kubernetes.py +22 -1
- mage_ai/command_center/applications/factory.py +10 -7
- mage_ai/command_center/applications/utils.py +2 -2
- mage_ai/command_center/files/factory.py +17 -15
- mage_ai/command_center/presenters/text.py +1 -1
- mage_ai/command_center/utils.py +25 -13
- mage_ai/data/__init__.py +0 -0
- mage_ai/data/constants.py +45 -0
- mage_ai/data/models/__init__.py +0 -0
- mage_ai/data/models/base.py +119 -0
- mage_ai/data/models/constants.py +1 -0
- mage_ai/data/models/generator.py +115 -0
- mage_ai/data/models/manager.py +168 -0
- mage_ai/data/models/pyarrow/__init__.py +0 -0
- mage_ai/data/models/pyarrow/record_batch.py +55 -0
- mage_ai/data/models/pyarrow/shared.py +21 -0
- mage_ai/data/models/pyarrow/table.py +8 -0
- mage_ai/data/models/reader.py +103 -0
- mage_ai/data/models/utils.py +59 -0
- mage_ai/data/models/writer.py +91 -0
- mage_ai/data/tabular/__init__.py +0 -0
- mage_ai/data/tabular/constants.py +23 -0
- mage_ai/data/tabular/mocks.py +19 -0
- mage_ai/data/tabular/models.py +126 -0
- mage_ai/data/tabular/reader.py +602 -0
- mage_ai/data/tabular/utils.py +102 -0
- mage_ai/data/tabular/writer.py +266 -0
- mage_ai/data/variables/__init__.py +0 -0
- mage_ai/data/variables/wrapper.py +54 -0
- mage_ai/data_cleaner/analysis/charts.py +61 -39
- mage_ai/data_cleaner/column_types/column_type_detector.py +53 -31
- mage_ai/data_cleaner/estimators/encoders.py +5 -2
- mage_ai/data_integrations/utils/scheduler.py +16 -11
- mage_ai/data_preparation/decorators.py +1 -0
- mage_ai/data_preparation/executors/block_executor.py +237 -155
- mage_ai/data_preparation/executors/k8s_block_executor.py +30 -7
- mage_ai/data_preparation/executors/k8s_pipeline_executor.py +30 -7
- mage_ai/data_preparation/executors/streaming_pipeline_executor.py +2 -2
- mage_ai/data_preparation/git/__init__.py +77 -29
- mage_ai/data_preparation/git/api.py +69 -8
- mage_ai/data_preparation/git/utils.py +64 -34
- mage_ai/data_preparation/logging/logger_manager.py +4 -3
- mage_ai/data_preparation/models/block/__init__.py +1562 -879
- mage_ai/data_preparation/models/block/data_integration/mixins.py +4 -3
- mage_ai/data_preparation/models/block/dynamic/__init__.py +17 -6
- mage_ai/data_preparation/models/block/dynamic/child.py +41 -102
- mage_ai/data_preparation/models/block/dynamic/constants.py +1 -0
- mage_ai/data_preparation/models/block/dynamic/counter.py +296 -0
- mage_ai/data_preparation/models/block/dynamic/data.py +16 -0
- mage_ai/data_preparation/models/block/dynamic/factory.py +163 -0
- mage_ai/data_preparation/models/block/dynamic/models.py +19 -0
- mage_ai/data_preparation/models/block/dynamic/shared.py +92 -0
- mage_ai/data_preparation/models/block/dynamic/utils.py +295 -167
- mage_ai/data_preparation/models/block/dynamic/variables.py +384 -144
- mage_ai/data_preparation/models/block/dynamic/wrappers.py +77 -0
- mage_ai/data_preparation/models/block/extension/utils.py +10 -1
- mage_ai/data_preparation/models/block/global_data_product/__init__.py +35 -3
- mage_ai/data_preparation/models/block/integration/__init__.py +6 -2
- mage_ai/data_preparation/models/block/outputs.py +722 -0
- mage_ai/data_preparation/models/block/platform/mixins.py +7 -8
- mage_ai/data_preparation/models/block/r/__init__.py +56 -38
- mage_ai/data_preparation/models/block/remote/__init__.py +0 -0
- mage_ai/data_preparation/models/block/remote/models.py +58 -0
- mage_ai/data_preparation/models/block/settings/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/dynamic/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/dynamic/constants.py +7 -0
- mage_ai/data_preparation/models/block/settings/dynamic/mixins.py +118 -0
- mage_ai/data_preparation/models/block/settings/dynamic/models.py +31 -0
- mage_ai/data_preparation/models/block/settings/global_data_products/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/global_data_products/mixins.py +20 -0
- mage_ai/data_preparation/models/block/settings/global_data_products/models.py +46 -0
- mage_ai/data_preparation/models/block/settings/variables/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/variables/mixins.py +74 -0
- mage_ai/data_preparation/models/block/settings/variables/models.py +49 -0
- mage_ai/data_preparation/models/block/spark/mixins.py +2 -1
- mage_ai/data_preparation/models/block/sql/__init__.py +30 -5
- mage_ai/data_preparation/models/block/sql/utils/shared.py +21 -3
- mage_ai/data_preparation/models/block/utils.py +164 -69
- mage_ai/data_preparation/models/constants.py +21 -14
- mage_ai/data_preparation/models/custom_templates/custom_block_template.py +18 -13
- mage_ai/data_preparation/models/custom_templates/custom_pipeline_template.py +33 -16
- mage_ai/data_preparation/models/custom_templates/utils.py +1 -1
- mage_ai/data_preparation/models/file.py +41 -28
- mage_ai/data_preparation/models/global_data_product/__init__.py +100 -58
- mage_ai/data_preparation/models/global_hooks/models.py +1 -0
- mage_ai/data_preparation/models/interfaces.py +29 -0
- mage_ai/data_preparation/models/pipeline.py +374 -185
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +1 -2
- mage_ai/data_preparation/models/pipelines/seed.py +1 -1
- mage_ai/data_preparation/models/project/__init__.py +66 -18
- mage_ai/data_preparation/models/project/constants.py +2 -0
- mage_ai/data_preparation/models/triggers/__init__.py +124 -26
- mage_ai/data_preparation/models/utils.py +467 -17
- mage_ai/data_preparation/models/variable.py +1028 -137
- mage_ai/data_preparation/models/variables/__init__.py +0 -0
- mage_ai/data_preparation/models/variables/cache.py +149 -0
- mage_ai/data_preparation/models/variables/constants.py +72 -0
- mage_ai/data_preparation/models/variables/summarizer.py +336 -0
- mage_ai/data_preparation/models/variables/utils.py +77 -0
- mage_ai/data_preparation/models/widget/__init__.py +63 -41
- mage_ai/data_preparation/models/widget/charts.py +40 -27
- mage_ai/data_preparation/models/widget/constants.py +2 -0
- mage_ai/data_preparation/models/widget/utils.py +3 -3
- mage_ai/data_preparation/preferences.py +3 -3
- mage_ai/data_preparation/repo_manager.py +55 -21
- mage_ai/data_preparation/storage/base_storage.py +2 -2
- mage_ai/data_preparation/storage/gcs_storage.py +7 -4
- mage_ai/data_preparation/storage/local_storage.py +18 -9
- mage_ai/data_preparation/storage/s3_storage.py +5 -2
- mage_ai/data_preparation/templates/data_exporters/streaming/oracledb.yaml +8 -0
- mage_ai/data_preparation/variable_manager.py +281 -76
- mage_ai/io/base.py +3 -2
- mage_ai/io/bigquery.py +1 -0
- mage_ai/io/redshift.py +7 -5
- mage_ai/kernels/__init__.py +0 -0
- mage_ai/kernels/models.py +188 -0
- mage_ai/kernels/utils.py +169 -0
- mage_ai/orchestration/concurrency.py +6 -2
- mage_ai/orchestration/db/__init__.py +1 -0
- mage_ai/orchestration/db/migrations/versions/0227396a216c_add_userproject_table.py +38 -0
- mage_ai/orchestration/db/migrations/versions/42a14d6143f1_update_token_column_type.py +54 -0
- mage_ai/orchestration/db/models/dynamic/__init__.py +0 -0
- mage_ai/orchestration/db/models/dynamic/controller.py +67 -0
- mage_ai/orchestration/db/models/oauth.py +12 -18
- mage_ai/orchestration/db/models/projects.py +10 -0
- mage_ai/orchestration/db/models/schedules.py +225 -187
- mage_ai/orchestration/db/models/schedules_project_platform.py +18 -12
- mage_ai/orchestration/db/models/utils.py +46 -5
- mage_ai/orchestration/metrics/pipeline_run.py +8 -9
- mage_ai/orchestration/notification/sender.py +38 -15
- mage_ai/orchestration/pipeline_scheduler_original.py +64 -33
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +1 -1
- mage_ai/orchestration/run_status_checker.py +11 -4
- mage_ai/orchestration/triggers/api.py +41 -2
- mage_ai/orchestration/triggers/global_data_product.py +9 -4
- mage_ai/orchestration/triggers/utils.py +10 -1
- mage_ai/orchestration/utils/resources.py +3 -0
- mage_ai/presenters/charts/data_sources/base.py +4 -2
- mage_ai/presenters/charts/data_sources/block.py +15 -9
- mage_ai/presenters/charts/data_sources/chart_code.py +8 -5
- mage_ai/presenters/charts/data_sources/constants.py +1 -0
- mage_ai/presenters/charts/data_sources/system_metrics.py +22 -0
- mage_ai/presenters/interactions/models.py +11 -7
- mage_ai/presenters/pages/loaders/pipelines.py +5 -3
- mage_ai/presenters/pages/models/page_components/pipeline_schedules.py +3 -1
- mage_ai/presenters/utils.py +2 -0
- mage_ai/server/api/blocks.py +2 -1
- mage_ai/server/api/downloads.py +9 -2
- mage_ai/server/api/runs.py +151 -0
- mage_ai/server/api/triggers.py +3 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +8 -8
- mage_ai/server/frontend_dist/_next/static/UZLabyPgcxtZvp0O0EUUS/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1376-22de38b4ad008d8a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1557-25a7d985d5564fd3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1668-30b4619b9534519b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1799-c42db95a015689ee.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2996-2108b53b9d371d8d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{3548-fa0792ddb88f4646.js → 3548-9d26185b3fb663b1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{3763-61b542dafdbf5754.js → 3763-40780c6d1e4b261d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3782-129dd2a2448a2e36.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3958-bcdfa414ccfa1eb2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4168-97fd1578d1a38315.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4982-fa5a238b139fbdd2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5699-176f445e1313f001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7162-7dd03f0f605de721.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7779-68d2b72a90c5f925.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7966-5446a8e43711e2f9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8023-6c2f172f48dcb99b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8095-c351b8a735d73e0c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9624-8b8e100079ab69e1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{main-77fe248a6fbd12d8.js → main-b99d4e30a88d9dc7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-9fe2d9d07c94e968.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{block-layout-14f952f66964022f.js → block-layout-7f4b735c67115df5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-e7d48e6b0c3068ac.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-b943f31f050fc3a4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4bfc84ff07d7656f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-597b74828bf105db.js → overview-9f1ac4ec003884f3.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-3edc6270c5b0e962.js → frontend_dist/_next/static/chunks/pages/pipeline-runs-6d183f91a2ff6668.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-7e737f6fc7e83e9b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-38e1fbcfbfc1014e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-d94488e3f2eeef36.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-cc641a7fa8473796.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-a5c0362763a21fa8.js → block-runs-284309877f3c5a5a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-26250e5335194ade.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-7acc7afc00df17c2.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5f4c8128b2413fd8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-4ebfc8e400315dda.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-e5e0150a256aadb3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-eb11c5390c982b49.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-1bdfda8edc9cf4a8.js → triggers-4612d15a65c35912.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/{profile-3f0df3decc856ee9.js → profile-3ae43c932537b254.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-b603d7fe4b175256.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-c2e9ef989c8bfa73.js → frontend_dist/_next/static/chunks/pages/settings/platform/settings-319ddbabc239e91b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-47b64ced27c24985.js → [...slug]-5c360f72e4498855.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-e5a4d3d815cec25d.js → permissions-fb29fa6c2bd90bb0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-3b76fa959ffa09d3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-379e1ee292504842.js → [...slug]-3b787b42f1093b1f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles-0b83fbdd39e85f5b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-a1e6950974d643a8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-2af9afbe727d88aa.js → [...slug]-0aa019d87db8b0b8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-a4db8710f703c729.js → users-88c694d19207f2ec.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-9cba3211434a8966.js → triggers-a599c6ac89be8c8d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-31d0d50f7f30462b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-d079359c241db804.js → webpack-ac7fdc472bedf682.js} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +3 -3
- mage_ai/server/frontend_dist/compute.html +6 -6
- mage_ai/server/frontend_dist/files.html +6 -6
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-data-products.html +6 -6
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/index.html +3 -3
- mage_ai/server/frontend_dist/manage/files.html +6 -6
- mage_ai/server/frontend_dist/manage/settings.html +6 -6
- mage_ai/server/frontend_dist/manage/users/[user].html +6 -6
- mage_ai/server/frontend_dist/manage/users/new.html +6 -6
- mage_ai/server/frontend_dist/manage/users.html +6 -6
- mage_ai/server/frontend_dist/manage.html +6 -6
- mage_ai/server/frontend_dist/oauth.html +5 -5
- mage_ai/server/frontend_dist/overview.html +6 -6
- mage_ai/server/frontend_dist/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist/pipelines.html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/settings/account/profile.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/settings.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users.html +6 -6
- mage_ai/server/frontend_dist/settings.html +3 -3
- mage_ai/server/frontend_dist/sign-in.html +15 -15
- mage_ai/server/frontend_dist/templates/[...slug].html +6 -6
- mage_ai/server/frontend_dist/templates.html +6 -6
- mage_ai/server/frontend_dist/terminal.html +6 -6
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +6 -6
- mage_ai/server/frontend_dist/version-control.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/404.html +8 -8
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1376-22de38b4ad008d8a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-25a7d985d5564fd3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1668-30b4619b9534519b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1799-c42db95a015689ee.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2996-2108b53b9d371d8d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3548-fa0792ddb88f4646.js → 3548-9d26185b3fb663b1.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3763-61b542dafdbf5754.js → 3763-40780c6d1e4b261d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-129dd2a2448a2e36.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3958-bcdfa414ccfa1eb2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4168-97fd1578d1a38315.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4982-fa5a238b139fbdd2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5699-176f445e1313f001.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7162-7dd03f0f605de721.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7779-68d2b72a90c5f925.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7966-5446a8e43711e2f9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8023-6c2f172f48dcb99b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-c351b8a735d73e0c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-8b8e100079ab69e1.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{main-70b78159c2bb3fe1.js → main-384298e9133cec76.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-13a578bce3b7f30c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{block-layout-14f952f66964022f.js → block-layout-7f4b735c67115df5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-e7d48e6b0c3068ac.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-b943f31f050fc3a4.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-4bfc84ff07d7656f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{overview-597b74828bf105db.js → overview-9f1ac4ec003884f3.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipeline-runs-3edc6270c5b0e962.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-6d183f91a2ff6668.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-7e737f6fc7e83e9b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-38e1fbcfbfc1014e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-d94488e3f2eeef36.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-cc641a7fa8473796.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-a5c0362763a21fa8.js → block-runs-284309877f3c5a5a.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-26250e5335194ade.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-7acc7afc00df17c2.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5f4c8128b2413fd8.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-4ebfc8e400315dda.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-e5e0150a256aadb3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-eb11c5390c982b49.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-1bdfda8edc9cf4a8.js → triggers-4612d15a65c35912.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/{profile-3f0df3decc856ee9.js → profile-3ae43c932537b254.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-b603d7fe4b175256.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/platform/settings-c2e9ef989c8bfa73.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-319ddbabc239e91b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-47b64ced27c24985.js → [...slug]-5c360f72e4498855.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-e5a4d3d815cec25d.js → permissions-fb29fa6c2bd90bb0.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-3b76fa959ffa09d3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-379e1ee292504842.js → [...slug]-3b787b42f1093b1f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles-0b83fbdd39e85f5b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-a1e6950974d643a8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-2af9afbe727d88aa.js → [...slug]-0aa019d87db8b0b8.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-a4db8710f703c729.js → users-88c694d19207f2ec.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{triggers-9cba3211434a8966.js → triggers-a599c6ac89be8c8d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-31d0d50f7f30462b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-68c003fb6a175cd7.js → webpack-481689d9989710cd.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/kcptwoOU-JJJg6Vwpkfmx/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/compute.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/files.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/oauth.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/overview.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +15 -15
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/templates.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/terminal.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/triggers.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/version-control.html +6 -6
- mage_ai/server/kernel_output_parser.py +4 -1
- mage_ai/server/scheduler_manager.py +12 -1
- mage_ai/server/server.py +69 -42
- mage_ai/server/utils/custom_output.py +284 -0
- mage_ai/server/utils/execute_custom_code.py +245 -0
- mage_ai/server/utils/output_display.py +123 -289
- mage_ai/server/websocket_server.py +116 -69
- mage_ai/services/aws/ecs/ecs.py +1 -0
- mage_ai/services/k8s/config.py +27 -4
- mage_ai/services/k8s/job_manager.py +6 -1
- mage_ai/services/k8s/utils.py +97 -0
- mage_ai/services/ssh/aws/emr/utils.py +8 -8
- mage_ai/settings/keys/auth.py +1 -0
- mage_ai/settings/platform/__init__.py +159 -38
- mage_ai/settings/platform/constants.py +5 -0
- mage_ai/settings/platform/utils.py +53 -10
- mage_ai/settings/repo.py +26 -12
- mage_ai/settings/server.py +128 -37
- mage_ai/shared/array.py +24 -1
- mage_ai/shared/complex.py +45 -0
- mage_ai/shared/config.py +2 -1
- mage_ai/shared/custom_logger.py +11 -0
- mage_ai/shared/dates.py +10 -6
- mage_ai/shared/files.py +63 -8
- mage_ai/shared/hash.py +33 -9
- mage_ai/shared/io.py +9 -5
- mage_ai/shared/models.py +82 -24
- mage_ai/shared/outputs.py +87 -0
- mage_ai/shared/parsers.py +144 -13
- mage_ai/shared/path_fixer.py +11 -7
- mage_ai/shared/singletons/__init__.py +0 -0
- mage_ai/shared/singletons/base.py +47 -0
- mage_ai/shared/singletons/memory.py +38 -0
- mage_ai/shared/strings.py +34 -1
- mage_ai/shared/yaml.py +24 -0
- mage_ai/streaming/sinks/oracledb.py +57 -0
- mage_ai/streaming/sinks/sink_factory.py +4 -0
- mage_ai/system/__init__.py +0 -0
- mage_ai/system/constants.py +14 -0
- mage_ai/system/memory/__init__.py +0 -0
- mage_ai/system/memory/constants.py +1 -0
- mage_ai/system/memory/manager.py +174 -0
- mage_ai/system/memory/presenters.py +158 -0
- mage_ai/system/memory/process.py +216 -0
- mage_ai/system/memory/samples.py +13 -0
- mage_ai/system/memory/utils.py +656 -0
- mage_ai/system/memory/wrappers.py +177 -0
- mage_ai/system/models.py +58 -0
- mage_ai/system/storage/__init__.py +0 -0
- mage_ai/system/storage/utils.py +29 -0
- mage_ai/tests/api/endpoints/mixins.py +2 -2
- mage_ai/tests/api/endpoints/test_blocks.py +2 -1
- mage_ai/tests/api/endpoints/test_custom_designs.py +4 -4
- mage_ai/tests/api/endpoints/test_pipeline_runs.py +2 -2
- mage_ai/tests/api/endpoints/test_projects.py +2 -1
- mage_ai/tests/api/operations/base/mixins.py +1 -1
- mage_ai/tests/api/operations/base/test_base.py +27 -27
- mage_ai/tests/api/operations/base/test_base_with_user_authentication.py +27 -27
- mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +23 -23
- mage_ai/tests/api/operations/test_syncs.py +6 -4
- mage_ai/tests/api/resources/test_pipeline_resource.py +11 -4
- mage_ai/tests/authentication/oauth/test_utils.py +1 -1
- mage_ai/tests/authentication/providers/test_oidc.py +59 -0
- mage_ai/tests/base_test.py +2 -2
- mage_ai/tests/data/__init__.py +0 -0
- mage_ai/tests/data/models/__init__.py +0 -0
- mage_ai/tests/data_preparation/executors/test_block_executor.py +23 -16
- mage_ai/tests/data_preparation/git/test_git.py +4 -1
- mage_ai/tests/data_preparation/models/block/dynamic/test_combos.py +305 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_counter.py +212 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_factory.py +360 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_variables.py +332 -0
- mage_ai/tests/data_preparation/models/block/hook/test_hook_block.py +2 -2
- mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +1 -1
- mage_ai/tests/data_preparation/models/block/sql/utils/test_shared.py +26 -1
- mage_ai/tests/data_preparation/models/block/test_global_data_product.py +5 -2
- mage_ai/tests/data_preparation/models/custom_templates/test_utils.py +5 -4
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +3 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +9 -3
- mage_ai/tests/data_preparation/models/test_block.py +115 -120
- mage_ai/tests/data_preparation/models/test_blocks_helper.py +114 -0
- mage_ai/tests/data_preparation/models/test_global_data_product.py +41 -24
- mage_ai/tests/data_preparation/models/test_pipeline.py +9 -6
- mage_ai/tests/data_preparation/models/test_project.py +4 -1
- mage_ai/tests/data_preparation/models/test_utils.py +80 -0
- mage_ai/tests/data_preparation/models/test_variable.py +242 -69
- mage_ai/tests/data_preparation/models/variables/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/variables/test_summarizer.py +481 -0
- mage_ai/tests/data_preparation/storage/shared/__init__.py +0 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +6 -7
- mage_ai/tests/data_preparation/test_variable_manager.py +57 -48
- mage_ai/tests/factory.py +64 -43
- mage_ai/tests/orchestration/db/models/test_schedules.py +3 -3
- mage_ai/tests/orchestration/db/models/test_schedules_dynamic_blocks.py +279 -0
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +1 -0
- mage_ai/tests/orchestration/triggers/test_global_data_product.py +141 -138
- mage_ai/tests/orchestration/triggers/test_utils.py +3 -2
- mage_ai/tests/server/test_server.py +19 -0
- mage_ai/tests/services/k8s/test_job_manager.py +27 -6
- mage_ai/tests/streaming/sinks/test_oracledb.py +38 -0
- mage_ai/tests/test_shared.py +61 -0
- mage_ai/usage_statistics/logger.py +7 -2
- mage_ai/utils/code.py +33 -19
- mage_ai/version_control/branch/utils.py +2 -1
- mage_ai/version_control/models.py +3 -2
- {mage_ai-0.9.69.dist-info → mage_ai-0.9.71.dist-info}/METADATA +6 -3
- {mage_ai-0.9.69.dist-info → mage_ai-0.9.71.dist-info}/RECORD +555 -454
- mage_ai/data_preparation/models/global_data_product/constants.py +0 -6
- mage_ai/server/frontend_dist/_next/static/_krrrgup_C-dPOpX36S8I/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1557-df144fbd8b2208c3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2631-b9f9bea3f1cf906d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3782-ef4cd4f0b52072d0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4783-422429203610c318.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5699-6d708c6b2153ea08.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/635-0d6b7c8804bcd2dc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7361-8a23dd8360593e7a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7966-f07b2913f7326b50.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9440-4069842b90d4b801.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9624-59b2f803f9c88cd6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-d9c89527266296f7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-591abd392dc50ed4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-78e8e88f2a757a18.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-852d403c7bda21b3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-ff4bd7a8ec3bab40.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a8b61d8d239fd16f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-95ffcd3e2b27e567.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1dd1ed71d26c10d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-1ed9045b2f1dfd65.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1417ad1c821d720a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-59aca25a5b1d3998.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-f028ef3880ed856c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-503049734a8b082f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-5b26eeda8aed8a7b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles-36fa165a48af586b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-8b793b3b696a2cd3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5753fac7c1bfdc88.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/KLL5mirre9d7_ZeEpaw3s/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-df144fbd8b2208c3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2631-b9f9bea3f1cf906d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-ef4cd4f0b52072d0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4783-422429203610c318.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5699-6d708c6b2153ea08.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-0d6b7c8804bcd2dc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-8a23dd8360593e7a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7966-f07b2913f7326b50.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-4069842b90d4b801.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-59b2f803f9c88cd6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-d9c89527266296f7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-591abd392dc50ed4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-78e8e88f2a757a18.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-852d403c7bda21b3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-ff4bd7a8ec3bab40.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a8b61d8d239fd16f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-95ffcd3e2b27e567.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1dd1ed71d26c10d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-1ed9045b2f1dfd65.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1417ad1c821d720a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-59aca25a5b1d3998.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-f028ef3880ed856c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-503049734a8b082f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-5b26eeda8aed8a7b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles-36fa165a48af586b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-8b793b3b696a2cd3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5753fac7c1bfdc88.js +0 -1
- mage_ai/shared/memory.py +0 -90
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +0 -48
- /mage_ai/{tests/data_preparation/shared → ai/utils}/__init__.py +0 -0
- /mage_ai/server/frontend_dist/_next/static/{_krrrgup_C-dPOpX36S8I → UZLabyPgcxtZvp0O0EUUS}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{KLL5mirre9d7_ZeEpaw3s → kcptwoOU-JJJg6Vwpkfmx}/_ssgManifest.js +0 -0
- /mage_ai/tests/data_preparation/{shared → storage/shared}/test_secrets.py +0 -0
- {mage_ai-0.9.69.dist-info → mage_ai-0.9.71.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.69.dist-info → mage_ai-0.9.71.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.69.dist-info → mage_ai-0.9.71.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.69.dist-info → mage_ai-0.9.71.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4168],{74168:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),s=n(25976),c=n(90948),d=n(84969),u=n(65743),h=n(85587),p=n(79487),f=n(52136),m=n(67778),x=n(29989),y=n(17066),v=n(84482),g=n(76771),k=n(98889),j=n(65376),Z=n(61655),b=n(97745),w=n(48072),L=n(10103),M=n(84791),O=n(84181),P=n(24903),F=n(55485),T=n(30160),C=n(94035),E=n(44897),S=n(8454),I=n(79633),A=n(95363),D=n(61896),N=n(70515),B=n(86735),W=n(79221),X=n(3917),Y=n(98684),_=n(28598),J=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z=q(q({},j.j),{},{backgroundColor:E.Z.background.muted,border:"none"}),G=(0,Z.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,o=void 0!==r&&r,l=t.getX,Z=t.getY,F=t.getYScaleValues,C=t.gridProps,J=void 0===C?{}:C,V=t.height,G=t.hideGridX,R=t.timeSeries,U=t.hideGridY,H=t.hideTooltip,K=t.increasedXTicks,Q=t.lineLegendNames,$=t.margin,tt=t.noCurve,et=t.numYTicks,nt=t.renderXTooltipContent,rt=t.renderYTooltipContent,it=t.showTooltip,ot=t.thickStroke,at=t.thickness,lt=t.tooltipData,st=t.tooltipLeft,ct=void 0===st?0:st,dt=t.tooltipTop,ut=void 0===dt?[]:dt,ht=t.width,pt=t.xLabelFormat,ft=t.xLabelRotate,mt=void 0===ft||ft,xt=t.yLabelFormat,yt=(0,a.useContext)(s.ThemeContext),vt=(0,a.useCallback)((function(t){return l?l(t):(0,X.U9)(null===t||void 0===t?void 0:t.x)}),[l]),gt=(0,a.useCallback)((function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z?Z(t):null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]}),[Z]),kt=E.Z.monotone.gray,jt=E.Z.brand.wind200,Zt=E.Z.content.muted,bt=E.Z.monotone.gray,wt=n.map((function(t){var e=Number(vt(t));return R?(0,X.U9)(e):e})),Lt=at||(ot?2:1),Mt=ht-($.left+$.right),Ot=V-$.top-$.bottom,Pt=Mt/2,Ft=Lt/2,Tt=Lt/2,Ct=0===n.length?0:Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),Et=null;Et=R?(0,M.Z)({domain:[Math.min.apply(Math,(0,i.Z)(wt)),Math.max.apply(Math,(0,i.Z)(wt))],range:[0,Mt]}):(0,O.Z)({domain:[Math.min.apply(Math,(0,i.Z)(wt)),Math.max.apply(Math,(0,i.Z)(wt))],range:[0,Mt]});var St=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(F?F(e):e||[]))})))),It=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(F?F(e):e||[]))})))),At=(0,a.useMemo)((function(){return(0,O.Z)({domain:[St,It],nice:!0,range:[Ot,0]})}),[Ot,It,St]),Dt=ht>520?K?20:10:K?10:5,Nt=(0,Y.K)(yt),Bt=Zt,Wt=Nt.map((function(t){return{stroke:t}})),Xt=(0,P.Z)({domain:Q||[],range:Wt.map((function(t){return t.stroke}))}),Yt=(0,a.useCallback)((function(t){var e=((0,w.Z)(t)||{x:0}).x,r=Et.invert(e-$.left),i=(0,B.ry)(wt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-vt(o)>vt(a)-r?l=a:(l=o,i-=1));var s=(0,L.range)(0,Ct).map((function(t){return At(gt(l,t))})),c=s.some((function(t){return"undefined"===typeof t}));(gt(l)||F&&!c)&&it({tooltipData:q(q({},l),{},{index:i}),tooltipLeft:e,tooltipTop:s})}),[n,vt,gt,F,$,Ct,it,Et,wt,At]),_t={};return tt||(_t.curve=b.ZP),ht<10?(0,_.jsx)("div",{}):(0,_.jsxs)(_.Fragment,{children:[Q&&(0,_.jsx)("div",{style:{marginLeft:null===$||void 0===$?void 0:$.left},children:(0,_.jsx)(y.Z,{labelFormat:function(t){return t},scale:Xt,children:function(t){return(0,_.jsx)("div",{style:{display:"flex",flexDirection:S.qs.ROW},children:t.map((function(t,e){return(0,_.jsxs)(v.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,_.jsx)("svg",{height:15,width:15,children:(0,_.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,_.jsx)(g.Z,{align:"left",margin:"0 0 0 4px",children:(0,_.jsx)(T.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,_.jsxs)("svg",{height:V,width:ht,children:[!e&&(0,_.jsx)(u.Z,{fill:"transparent",height:V,onMouseLeave:function(){return H()},onMouseMove:Yt,onTouchMove:Yt,onTouchStart:Yt,rx:14,width:ht-($.left+$.right),x:$.left,y:0}),(0,_.jsxs)(x.Z,{left:$.left,top:$.top,children:[!G&&(0,_.jsx)(f.Z,q({height:Ot,pointerEvents:"none",scale:Et,stroke:kt,strokeDasharray:"3,3",strokeOpacity:.4,width:Mt},J)),!U&&(0,_.jsx)(m.Z,q({height:Ot,pointerEvents:"none",scale:At,stroke:kt,strokeDasharray:"3,3",strokeOpacity:.4,width:Mt},J)),(0,_.jsx)("line",{stroke:kt,x1:Mt,x2:Mt,y1:0,y2:Ot}),(0,_.jsx)(c.Z,{numTicks:Dt,scale:Et,stroke:Bt,tickFormat:pt,tickLabelProps:function(t){return{fill:Zt,fontFamily:A.ry,fontSize:D.J5,textAnchor:"middle",transform:mt&&"rotate(-45, ".concat(Et(t),", 0) translate(-32, 4)")}},tickStroke:Bt,top:Ot}),(0,_.jsx)(d.Z,{hideTicks:!0,numTicks:et,scale:At,stroke:Bt,tickFormat:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return xt?xt.apply(void 0,[t].concat(n)):(0,W.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:Zt,fontFamily:A.ry,fontSize:D.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Bt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(k.Z,q(q({},_t),{},{aboveAreaProps:{fill:E.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:jt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:Ot,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return Et(vt(t))},y0:function(t){return At("undefined"===typeof r?St:gt(t,r))},y1:function(t){return At(gt(t,e))}}))})),(0,L.range)(0,Ct).map((function(t){return(0,a.createElement)(h.Z,q(q({},_t),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:Lt,x:function(t){Et(vt(t));var e=Mt-Tt;return(0,O.Z)({range:[Ft,e],domain:Et.domain()})(vt(t))},y:function(e){return At(e.y&&(t>=e.y.length?St:gt(e,t)))}},Wt[t]))}))]}),lt&&(0,_.jsxs)("g",{children:[(0,_.jsx)(p.Z,{from:{x:ct,y:$.top},pointerEvents:"none",stroke:I.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:ct,y:Ot+$.top}}),ut.map((function(t,e){return(0,_.jsx)("circle",{cx:ct,cy:t+1+$.top,fill:Wt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:bt,strokeOpacity:.1,strokeWidth:1},e)})),ut.map((function(t,e){return(0,_.jsx)("circle",{cx:ct,cy:t+$.top,fill:Wt[e].stroke,pointerEvents:"none",r:4,stroke:Wt[e].stroke,strokeWidth:2},e)}))]})]}),lt&&(0,_.jsxs)("div",{children:[ut.map((function(t,e){var n=gt(lt,e);return e>=1&&Math.abs(ut[e-1]-t)<5*N.iI&&(t+=3*N.iI),(0,_.jsxs)(j.Z,{left:ct>Pt?ct-(0,W.Vs)(rt?function(){return rt(gt(lt),e,lt)}:void 0)*N.iI:ct+N.iI,style:z,top:t-2*N.iI,children:[rt&&rt(gt(lt),e,lt),!rt&&(0,_.jsxs)(T.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===Q||void 0===Q?void 0:Q[e]]})]},e)})),(0,_.jsxs)(j.Z,{left:ct>Pt?ct-4*(0,W.Vs)(nt?function(){return nt(vt(lt),null===lt||void 0===lt?void 0:lt.index,lt)}:void 0):ct,style:q(q({},z),{},{transform:"translateX(-65%)"}),top:Ot+$.top,children:[nt&&nt(vt(lt),null===lt||void 0===lt?void 0:lt.index,lt),!nt&&(0,_.jsx)(T.ZP,{center:!0,small:!0,children:vt(lt).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,s=void 0===a?{}:a,c=t.width,d=t.xAxisLabel,u=t.xLabelFormat,h=t.yAxisLabel,p=t.yLabelFormat,f=(0,r.Z)(t,J),m=q(q({},{bottom:3*N.iI,left:5*N.iI,right:3*N.iI,top:3*N.iI}),s);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{display:"flex",height:i,marginBottom:N.iI,width:"100%"},children:[h&&(0,_.jsx)(F.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,_.jsx)(C.Z,{children:(0,_.jsx)(T.ZP,{center:!0,muted:!0,small:!0,children:h})})}),(0,_.jsx)("div",{style:{height:i,width:"undefined"===typeof c?"100%":c},children:(0,_.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,_.jsx)(G,q(q({},f),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:u,yLabelFormat:p}))}})})]}),d&&(0,_.jsx)("div",{style:{paddingLeft:h?36:0,paddingTop:4},children:(0,_.jsx)(T.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4982],{62072:function(t,e,n){function i(t){return null==t?void 0:t[0]}function r(t){return null==t?void 0:t[1]}n.d(e,{l8:function(){return i},xf:function(){return r}})},59309:function(t,e,n){n.d(e,{ZP:function(){return c}});var i=n(12759),r=n(27500),o=n(82610),a=n(34812),l=n(77944),u={expand:i.Z,diverging:r.Z,none:o.Z,silhouette:a.Z,wiggle:l.Z};Object.keys(u);function c(t){return t&&u[t]||u.none}},18246:function(t,e,n){n.d(e,{ZP:function(){return c}});var i=n(39586),r=n(25516),o=n(54164),a=n(8512),l=n(2010),u={ascending:i.Z,descending:r.Z,insideout:o.Z,none:a.Z,reverse:l.Z};Object.keys(u);function c(t){return t&&u[t]||u.none}},4982:function(t,e,n){n.d(e,{O$:function(){return vt},Fk:function(){return pt}});var i=n(75582),r=n(12691),o=n.n(r),a=n(26304),l=n(21831),u=n(82394),c=n(82684),s=n(26226),d=n(84969),f=n(90948),h=n(65743),m=n(63588),v=n.n(m),p=n(75823),x=n(29989),y=n(62072),g=n(53989),b=n(49894),Z=n(18246),j=n(59309),k=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function S(){return S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},S.apply(this,arguments)}function T(t){var e=t.data,n=t.className,i=t.top,r=t.left,o=t.y,a=t.x0,l=void 0===a?y.l8:a,u=t.x1,s=void 0===u?y.xf:u,d=t.xScale,f=t.yScale,m=t.color,T=t.keys,L=t.value,M=t.order,w=t.offset,O=t.children,E=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,k),R=(0,p.Z)();T&&R.keys(T),L&&(0,b.Z)(R.value,L),M&&R.order((0,Z.ZP)(M)),w&&R.offset((0,j.ZP)(w));var Y=R(e),I=(0,g.Z)(f),D=Y.map((function(t,e){var n=t.key;return{index:e,key:n,bars:t.map((function(e,i){var r=(d(s(e))||0)-(d(l(e))||0),a=d(l(e)),u="bandwidth"in f?f(o(e.data)):Math.max((f(o(e.data))||0)-r/2);return{bar:e,key:n,index:i,height:I,width:r,x:a||0,y:u||0,color:m(t.key,i)}}))}}));return O?c.createElement(c.Fragment,null,O(D)):c.createElement(x.Z,{className:v()("visx-bar-stack-horizontal",n),top:i,left:r},D.map((function(t){return t.bars.map((function(e){return c.createElement(h.Z,S({key:"bar-stack-"+t.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},E))}))})))}var L=n(79487),M=n(25976),w=n(61655),O=n(16853),E=n(65376),R=n(48072),Y=n(24903),I=n(84181),D=n(98677),P=n(30160),A=n(70987),_=n(79633),C=n(61896),H=n(70515),N=n(95363),F=n(28598),V=["height","width"];function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){(0,u.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var B={bottom:5*H.iI,left:3*H.iI,right:20*H.iI,top:0},Q=function(t){return t.x},G=function(t){return t.y},X=(0,w.Z)((function(t){var e=t.data,n=t.height,i=t.hideTooltip,r=t.large,o=t.margin,a=void 0===o?{}:o,u=t.renderTooltipContent,s=t.showTooltip,m=t.tooltipData,v=t.tooltipLeft,p=t.tooltipOpen,y=t.tooltipTop,g=t.width,b=t.xAxisLabel,Z=t.xNumTicks,j=t.yLabelFormat,k=t.ySerialize,S=j;S||(S=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var w=r?C.iD:C.J5,H=(0,c.useContext)(M.ThemeContext),V=U(U({},B),a),z=e.slice(Math.max(0,e.length-50)),X=Object.keys(z[0]||[]).filter((function(t){return"x"===t})),W=(0,Y.Z)({domain:X,range:[_.hM]}),J=(0,I.Z)({domain:[0,Math.max.apply(Math,(0,l.Z)(z.map(Q)))],nice:!0}),$=(0,D.Z)({domain:z.map(G),padding:.35}),q={active:(null===H||void 0===H?void 0:H.content.default)||A.Z.content.default,backgroundPrimary:(null===H||void 0===H?void 0:H.chart.backgroundPrimary)||A.Z.chart.backgroundPrimary,backgroundSecondary:(null===H||void 0===H?void 0:H.chart.backgroundSecondary)||A.Z.chart.backgroundSecondary,muted:(null===H||void 0===H?void 0:H.content.muted)||A.Z.content.muted,primary:(null===H||void 0===H?void 0:H.chart.primary)||A.Z.chart.primary,tooltipBackground:(null===H||void 0===H?void 0:H.background.navigation)||A.Z.background.navigation},K=z.map(k),tt=Math.min(Math.max.apply(Math,(0,l.Z)(K.map((function(t){return String(t).length})))),20);6*tt>2*V.right?V.right+=5.5*tt:6*tt>=V.right&&(V.right+=3.75*tt);var et=g-V.left-V.right,nt=n-V.top-V.bottom;V.left+=7*tt,J.rangeRound([0,et]),$.rangeRound([nt,0]);var it=z.map(Q).length,rt=$(K[it-1]),ot=(0,c.useCallback)((function(t){var e=(0,R.Z)(t)||{x:0,y:0},n=e.x,i=e.y,r=1-(i-rt/2)/(nt-rt),o=Math.floor(r*it),a=z[o];"undefined"===typeof a&&(a=z[o-1]),i>rt&&i<nt-rt&&s({tooltipData:a,tooltipLeft:n,tooltipTop:i+V.top})}),[z,it,V.top,s,rt,nt]);return g<10?null:(0,F.jsxs)("div",{children:[(0,F.jsxs)("svg",{height:n,width:g,children:[(0,F.jsx)(h.Z,{fill:"transparent",height:n-(V.top+V.bottom),onMouseLeave:function(){return i()},onMouseMove:ot,onTouchMove:ot,onTouchStart:ot,rx:14,width:g-V.left,x:V.left,y:0}),(0,F.jsxs)(x.Z,{left:V.left,top:V.top,children:[(0,F.jsx)(T,{color:W,data:z,height:nt,keys:X,pointerEvents:"none",xScale:J,y:k,yScale:$,children:function(t){return t.map((function(t){return t.bars.map((function(e){return(0,F.jsx)("g",{children:(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("rect",{fill:q.backgroundPrimary,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"barstack-horizontal-".concat(t.index,"-").concat(e.index))}))}))}}),(0,F.jsx)(d.Z,{hideTicks:!0,scale:$,stroke:q.muted,tickFormat:function(t){return S(t)},tickLabelProps:function(){return{fill:q.active,fontFamily:N.ry,fontSize:w,style:{width:"10px"},textAnchor:"end"}},tickStroke:q.muted,tickValues:K,top:2}),(0,F.jsx)(f.Z,{label:b,labelProps:{fill:q.muted,fontFamily:N.ry,fontSize:w,textAnchor:"middle"},numTicks:Z,scale:J,stroke:q.muted,tickLabelProps:function(){return{fill:q.active,fontFamily:N.ry,fontSize:w,textAnchor:"middle"}},tickStroke:q.muted,top:nt})]}),m&&(0,F.jsx)("g",{children:(0,F.jsx)(L.Z,{from:{x:V.left,y:y},pointerEvents:"none",stroke:_.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:et+V.left,y:y}})})]}),p&&m&&(0,F.jsx)(O.Z,{left:v,style:U(U({},E.j),{},{backgroundColor:q.tooltipBackground}),top:y,children:(0,F.jsxs)(P.ZP,{black:!0,small:!0,children:[null===u||void 0===u?void 0:u(m),!u&&Q(m).toFixed(4)]})})]})}));var W,J,$,q,K=function(t){var e=t.height,n=t.width,i=(0,a.Z)(t,V);return(0,F.jsx)("div",{style:{height:e,width:"undefined"===typeof n?"100%":n},children:(0,F.jsx)(s.Z,{children:function(t){var e=t.width,n=t.height;return(0,F.jsx)(X,U(U({},i),{},{height:n,width:e}))}})})},tt=n(97618),et=n(52729),nt=n(48670),it=n(87862),rt=n(89370),ot=n(86735),at=(ot.Qj,ot.tS,ot.tS,ot.tS,ot.tS,ot.Qj,ot.Qj,ot.Qj,ot.tS,ot.tS,W={},(0,u.Z)(W,rt.RL.EMAIL,"domain_distribution"),(0,u.Z)(W,rt.RL.TEXT,"word_distribution"),(0,u.Z)(W,rt.RL.LIST,"element_distribution"),(0,u.Z)(W,"default","value_counts"),W),lt=[].concat((0,l.Z)(rt.P_),[rt.RL.TEXT,rt.RL.EMAIL,rt.RL.LIST]),ut=(J={},(0,u.Z)(J,rt.RL.EMAIL,"Domain distribution"),(0,u.Z)(J,rt.RL.TEXT,"Word distribution"),(0,u.Z)(J,rt.RL.LIST,"Element distribution"),(0,u.Z)(J,"default","Distribution of values"),n(31353));!function(t){t.RANGE="range"}($||($={})),function(t){t.BAR_HORIZONTAL="bar_horizontal",t.LINE_CHART="line_chart",t.HISTOGRAM="histogram"}(q||(q={}));var ct=n(48888),st=n(92083),dt=n.n(st),ft=n(81728);function ht(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i||{},o=r.calculateAnomaly,a=r.feature,u=r.getYValue,c=t.x,s=t.x_metadata,d=s.label,f=s.label_type,h=t.y,m=(null===h||void 0===h?void 0:h.map((function(t){return null===u||void 0===u?void 0:u(t)})))||[],v=Math.max.apply(Math,(0,l.Z)(m)),p=Math.max.apply(Math,(0,l.Z)(m)),x=(0,ot.Sm)(m),y=(0,ot.IN)(m),g=x/Math.max(1,m.length),b=e[d]||a,Z=null===b||void 0===b?void 0:b.columnType,j=rt.RL.DATETIME===Z,k=[],S=[],T=c.length,L=c.map((function(t,e){var i,r,a,l,u=t.label,c=t.max,s=t.min,d=h[e];if($.RANGE===f)if(n||(n=c-s),l=rt.RL.NUMBER===Z&&n<=T)i=Number(s);else if(i=n/2+s,j){var b="M/D/YYYY",L="M/D/YYYY",M="M/D/YYYY";n<=1?(b=n<=.1?"H:mm:ss.SSS":"H:mm:ss",L="H:mm:ss.SSS",M="H:mm:ss.SSS"):n<=60?(b="H:mm",L="H:mm:ss",M="H:mm:ss"):n<=3600?(b="H:mm",L="M/D/YYYY H:mm",M="H:mm"):n<=86400&&(L="M/D/YYYY H:mm",M="M/D/YYYY H:mm"),i=dt().unix(i).format(b),r=dt().unix(s).format(L),a=dt().unix(c).format(M)}else i=(0,ft.QV)(i);else i=u;var w=e>=1?h[e-1]:null,O=!1;o&&(O=o({x:t,y:d,yPrevious:w,yValues:m,yValuesAverage:g,yValuesMax:v,yValuesMin:p,yValuesStandardDeviation:y,yValuesSum:x}));var E={hideRange:l,isUnusual:O,x:t,xLabel:i,xLabelMax:a,xLabelMin:r,y:d};return O&&(l?S.push(E):k.push(E)),E}));return{distribution:{data:L,featureUUID:d},rangedWithUnusualDistribution:(0,ot.YC)(k,(function(t){var e=t.y;return u(e)}),{ascending:!1}),unusualDistribution:(0,ot.YC)(S,(function(t){var e=t.y;return u(e)}),{ascending:!1})}}var mt=n(40489);var vt=12*H.iI;function pt(t){var e=t.columnTypes,n=t.columns,r=t.insightsByFeatureUUID,a=t.insightsOverview,l=t.noColumnLinks,u=void 0!==l&&l,c=t.statistics;return function(t,l,s){var d=s.width,f=n[l],h=e[f],m=ut.T5[h],v=(r[f]||{}).charts,p=a.time_series,x=n.filter((function(t){return e[t]===rt.RL.DATETIME})),y=null===p||void 0===p?void 0:p.map((function(t){return ht(t,{},{feature:{columnType:h,uuid:f}}).distribution})),g={};null===y||void 0===y||y.forEach((function(t,e){var n=t.data;g[x[e]]=(0,F.jsx)(et.Z,{data:n.map((function(t){var e=t.x,n=t.xLabel,i=t.xLabelMax,r=t.xLabelMin;return[n,t.y.count,r,i,e.min,e.max]})),height:vt,large:!0,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t,e,n){var r=n.values,o=(0,i.Z)(r,2),a=o[0],l=o[1];return(0,F.jsxs)("p",{children:["Rows: ",t,(0,F.jsx)("br",{}),"Start: ",a,(0,F.jsx)("br",{}),"End: ",l]})},sortData:function(t){return(0,ot.YC)(t,"[4]")}},f)}));var b,Z=null===v||void 0===v?void 0:v.find((function(t){var e=t.type;return q.HISTOGRAM===e})),j=(Z?ht(Z,{},{feature:{columnType:h,uuid:f},getYValue:function(t){return t.value}}):{}).distribution,k=void 0===j?null:j,S=at[h]||at.default,T=null===c||void 0===c?void 0:c["".concat(f,"/").concat(S)],L=Object.entries(T||{}).map((function(t){var e=(0,i.Z)(t,2),n=e[0];return{x:e[1],y:n}})),M=rt.RL.TRUE_OR_FALSE===h;if(rt.RL.DATETIME===h)b=g[f];else if(k&&!M)b=(0,F.jsx)(et.Z,{data:k.data.map((function(t){var e=t.hideRange,n=t.isUnusual,i=t.x;return[t.xLabel,t.y.value,i.min,i.max,n,e]})),height:vt,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t,e,n){var i,r,o=null===n||void 0===n||null===(i=n.values)||void 0===i?void 0:i[0],a=null===n||void 0===n||null===(r=n.values)||void 0===r?void 0:r[1],l="undefined"===typeof o||"undefined"===typeof a;return(0,F.jsxs)("p",{children:[l&&(0,F.jsxs)(F.Fragment,{children:["Rows: ",t,(0,F.jsx)("br",{}),"Value: ","undefined"!==typeof o?o:a]}),!l&&(0,F.jsxs)(F.Fragment,{children:["Rows: ",t,(0,F.jsx)("br",{}),"Range: ",o," - ",a]})]})},sortData:function(t){return(0,ot.YC)(t,"[2]")},width:d-2*H.iI});else if(lt.includes(h)){var w=(0,ot.YC)((0,ot.YC)(L,"x",{ascending:!1}).slice(0,5),"x");b=(0,F.jsx)(K,{data:w,height:vt,margin:{bottom:0,left:0,right:20,top:0},renderTooltipContent:function(t){var e=t.x,n=t.y;return"".concat(n," appears ").concat((0,ft.x6)(e)," times")},xNumTicks:2,ySerialize:function(t){return t.y}})}else M&&T&&(b=(0,F.jsx)(it.Z,{data:Object.entries(T),getX:function(t){var e=(0,i.Z)(t,2),n=e[0],r=e[1];return"".concat(n," (").concat((0,ft.x6)(r),")")},getY:function(t){return(0,i.Z)(t,2)[1]},height:vt}));return(0,F.jsxs)("div",{style:{padding:H.iI},children:[(0,F.jsxs)("div",{style:{alignItems:"center",display:"flex",marginBottom:H.iI},children:[m&&(0,F.jsx)(tt.Z,{title:rt.Rp[h],children:(0,F.jsx)(m,{size:2*H.iI})}),(0,F.jsx)("div",{style:{marginLeft:.5*H.iI,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:d-4.5*H.iI},children:u?(0,F.jsx)(P.ZP,{bold:!0,default:!0,title:n[l],children:n[l]}):(0,F.jsx)(o(),{as:(0,mt.o_)(ct.oE,l),href:"/datasets/[...slug]",passHref:!0,children:(0,F.jsx)(nt.Z,{bold:!0,monospace:!0,secondary:!0,small:!0,title:n[l],children:n[l]})})})]}),b,!b&&(0,F.jsx)("div",{style:{height:vt}})]})}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5699],{94629:function(e,t,r){r.d(t,{Z:function(){return k}});var n=r(82394),i=r(21831),o=r(82684),c=r(50724),s=r(1402),u=r(97618),a=r(70613),d=r(31557),f=r(68899),l=r(28598);function p(e,t){var r=e.children,n=e.noPadding;return(0,l.jsx)(f.HS,{noPadding:n,ref:t,children:r})}var h=o.forwardRef(p),b=r(62547),v=r(82571),m=r(77417),O=r(46684),g=r(75375);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,n=e.afterHeader,o=e.afterHidden,p=e.afterWidth,y=e.afterWidthOverride,P=e.appendBreadcrumbs,k=e.before,w=e.beforeHeader,x=e.beforeWidth,A=e.breadcrumbs,S=e.children,I=e.contained,Z=e.errors,E=e.headerMenuItems,R=e.headerOffset,C=e.hideAfterCompletely,W=e.mainContainerHeader,M=e.navigationItems,H=e.setAfterHidden,B=e.setAfterWidth,N=e.setBeforeWidth,D=e.setErrors,_=e.subheaderChildren,T=e.subheaderNoPadding,U=e.title,G=e.uuid,F=(0,g.Z)(G,{beforeResizeOffset:g.H,setWidthAfter:B,setWidthBefore:N,widthAfter:p,widthBefore:x,widthOverrideAfter:y}),L=F.mainContainerRef,z=F.mousedownActiveAfter,Y=F.mousedownActiveBefore,q=F.setMousedownActiveAfter,J=F.setMousedownActiveBefore,K=F.setWidthAfter,Q=F.setWidthBefore,V=F.widthAfter,X=F.widthBefore,$=(0,m.Z)().project,ee=[];return A&&ee.push.apply(ee,(0,i.Z)(A)),null!==A&&void 0!==A&&A.length&&!P||!$||null!==A&&void 0!==A&&A.length||ee.unshift({bold:!P,label:function(){return U}}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Z,{title:U}),(0,l.jsx)(d.Z,{breadcrumbs:ee,menuItems:E}),(0,l.jsxs)(f.Nk,{ref:t,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,l.jsx)(f.lm,{showMore:!0,children:(0,l.jsx)(v.Z,{navigationItems:M,showMore:!0})}),(0,l.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,l.jsxs)(b.Z,{after:r,afterHeader:n,afterHeightOffset:O.Mz,afterHidden:o,afterMousedownActive:z,afterWidth:V,before:k,beforeHeader:w,beforeHeightOffset:O.Mz,beforeMousedownActive:Y,beforeWidth:k?X:f.k1,contained:I,headerOffset:R,hideAfterCompletely:!r||C,leftOffset:k?f.k1:null,mainContainerHeader:W,mainContainerRef:L,setAfterHidden:H,setAfterMousedownActive:q,setAfterWidth:K,setBeforeMousedownActive:J,setBeforeWidth:Q,children:[_&&(0,l.jsx)(h,{noPadding:T,children:_}),S]})})]}),Z&&(0,l.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,l.jsx)(s.Z,j(j({},Z),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var k=o.forwardRef(P)},74395:function(e,t,r){r.d(t,{M:function(){return c},W:function(){return o}});var n=r(25976),i=r(46684),o=34*r(70515).iI,c=n.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},24755:function(e,t,r){r.d(t,{B2:function(){return i},DQ:function(){return l},HY:function(){return a},Pl:function(){return n},SA:function(){return p},WH:function(){return d},fF:function(){return u},tC:function(){return f}});var n,i,o=r(19452),c=r(50178),s=r(72473),u="Git settings",a="Preferences",d="Workspace";!function(e){e.PROJECT_PLATFORM="Platform",e.WORKSPACE="Workspace",e.USER_MANAGEMENT="User management"}(n||(n={})),function(e){e.PERMISSIONS="Permissions",e.PREFERENCES="Preferences",e.ROLES="Roles",e.SETTINGS="Settings",e.USERS="Users"}(i||(i={}));var f="Account",l="Profile",p=function(e,t){var r=e.owner,p=e.roles,h=e.project_access,b=(t||{projectPlatformActivated:!1}).projectPlatformActivated,v=r||p===o.No.ADMIN||0!==(3&h),m=[{items:[{Icon:s.WorkspacesIcon,linkProps:{href:"/settings/workspace/preferences"},uuid:a},{Icon:s.Settings,linkProps:{href:"/settings/workspace/sync-data"},uuid:u}],uuid:d}];if((0,c.YB)()&&v){var O=[{Icon:s.WorkspacesUsersIcon,linkProps:{href:"/settings/workspace/users"},uuid:i.USERS}];(0,c.Bw)()&&O.push.apply(O,[{Icon:s.VisibleEye,linkProps:{href:"/settings/workspace/roles"},uuid:i.ROLES},{Icon:s.Locked,linkProps:{href:"/settings/workspace/permissions"},uuid:i.PERMISSIONS}]),m.push({items:O,uuid:n.USER_MANAGEMENT})}return!b||(0,c.YB)()&&!v||m.push({items:[{Icon:s.BlocksSeparated,linkProps:{href:"/settings/platform/preferences"},uuid:i.PREFERENCES},{Icon:s.SettingsWithKnobs,linkProps:{href:"/settings/platform/settings"},uuid:i.SETTINGS}],uuid:n.PROJECT_PLATFORM}),(0,c.YB)()?m.concat([{items:[{Icon:s.Sun,linkProps:{href:"/settings/account/profile"},uuid:l}],uuid:f}]):m}},28274:function(e,t,r){r.d(t,{Z:function(){return A}});var n=r(94629),i=r(82394),o=r(12691),c=r.n(o),s=r(55485),u=r(48670),a=r(38276),d=r(30160),f=r(25976),l=r(44897),p=r(70515),h=r(91437),b=(p.iI,f.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*p.iI,2.5*p.iI)),v=f.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,h.eR)(),1.5*p.iI,2.5*p.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||l.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||l.Z.background).codeTextarea,";\n ")})),m=r(28598),O=r(82684);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=function(e){var t=e.isItemSelected,r=e.sections;return(0,m.jsx)(a.Z,{py:p.Gg,children:null===r||void 0===r?void 0:r.map((function(e){var r=e.items,n=e.title,i=e.uuid;return(0,m.jsxs)(a.Z,{children:[(0,m.jsx)(b,{children:(0,m.jsx)(d.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:n?n():i})}),null===r||void 0===r?void 0:r.map((function(e){var r=e.Icon,n=e.label,o=e.linkProps,d=e.onClick,f=e.uuid,l=null===t||void 0===t?void 0:t(y(y({},e),{},{uuidWorkspace:i})),h=n?n():f,b=(0,m.jsx)(v,{selected:l,children:(0,m.jsxs)(s.ZP,{alignItems:"center",children:[r&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(r,{default:!l,size:1.75*p.iI}),(0,m.jsx)(a.Z,{mr:1})]}),h]})});return o?(0,O.createElement)(c(),y(y({},o),{},{key:f,passHref:!0}),(0,m.jsx)(u.Z,{block:!0,default:!l,noHoverUnderline:!0,noOutline:!0,sameColorAsText:l,children:b})):(0,m.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:d,preventDefault:!0,sameColorAsText:!0,children:b},f)}))]},i)}))})},P=r(77417),k=r(74395),w=r(24755),x=r(50178);var A=function(e){var t=e.after,r=e.afterHeader,i=e.afterHidden,o=e.afterWidth,c=e.appendBreadcrumbs,s=e.breadcrumbs,u=e.children,a=e.hideAfterCompletely,d=e.setAfterHidden,f=e.title,l=e.uuidItemSelected,h=e.uuidWorkspaceSelected,b=(0,x.PR)()||{},v=(0,P.Z)().projectPlatformActivated;return(0,m.jsx)(n.Z,{after:t,afterHeader:r,afterHidden:!t||i,afterWidth:t?o||50*p.iI:0,afterWidthOverride:!0,appendBreadcrumbs:c,before:(0,m.jsx)(k.M,{children:(0,m.jsx)(j,{isItemSelected:function(e){var t=e.uuid,r=e.uuidWorkspace;return h===r&&l===t},sections:(0,w.SA)(b,{projectPlatformActivated:v})})}),beforeWidth:k.W,breadcrumbs:s,hideAfterCompletely:a,setAfterHidden:d,title:f||"Settings",uuid:"".concat(f||"settings","/index"),children:u})}},93808:function(e,t,r){r.d(t,{Z:function(){return S}});var n=r(77837),i=r(26304),o=r(62243),c=r(29385),s=r(80022),u=r(13692),a=r(93189),d=r(15544),f=r(82394),l=r(38860),p=r.n(l),h=r(82684),b=r(56663),v=r.n(b),m=r(40761),O=r(34661),g=r(36105),y=r(50178),j=r(69419),P=r(28598),k=["auth"];function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){(0,f.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.Z)(e);if(t){var i=(0,d.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,a.Z)(this,r)}}function S(e){return function(t){(0,u.Z)(a,t);var r=A(a);function a(){var e;(0,o.Z)(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e=r.call.apply(r,[this].concat(n)),(0,f.Z)((0,s.Z)(e),"state",{auth:new m.Z(e.props.token)}),e}return(0,c.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new m.Z(this.props.token)})}},{key:"render",value:function(){var t=this.props,r=(t.auth,(0,i.Z)(t,k));return(0,P.jsx)(e,x({auth:this.state.auth},r))}}],[{key:"getInitialProps",value:function(){var t=(0,n.Z)(p().mark((function t(r){var n,i,o,c,s,u,a,d,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=v()(r),i=(0,y.ex)(r),o=i.id,c=n[O.Mv],s=n[g.qt],u=new m.Z(c),a=x(x({},r),{},{auth:u,currentGroupId:o,theme:s}),(0,y.YB)(r)&&u.isExpired&&(console.log("OAuth token has expired."),d=x(x({},r.query),{},{redirect_url:r.asPath}),(0,j.nL)("/sign-in?".concat((0,j.uM)(d)),r.res)),!e.getInitialProps){t.next=12;break}return t.next=10,e.getInitialProps(a);case 10:return f=t.sent,t.abrupt("return",x(x({},f),{},{auth:u,currentGroupId:o,theme:s}));case 12:return t.abrupt("return",a);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}]),a}(h.Component)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7162],{92469:function(t,e,n){n.d(e,{He:function(){return u},Ld:function(){return b},eC:function(){return h},f3:function(){return a},iG:function(){return l},rS:function(){return f},sb:function(){return y},ys:function(){return o}});var i=n(88489),s=n(82684);const r=Symbol.for("Animated:node"),o=t=>t&&t[r],a=(t,e)=>(0,i.dE)(t,r,e),u=t=>t&&t[r]&&t[r].getPayload();class c{constructor(){this.payload=void 0,a(this,this)}getPayload(){return this.payload||[]}}class l extends c{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,i.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new l(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return i.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,i.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class h extends l{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=(0,i.mD)({output:[t,t]})}static create(t){return new h(t)}getValue(){let t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(i.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=(0,i.mD)({output:[this.getValue(),t]})),this._value=0,super.reset()}}const d={dependencies:null};class f extends c{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return(0,i.rU)(this.source,((n,s)=>{var o;(o=n)&&o[r]===o?e[s]=n.getValue(t):(0,i.j$)(n)?e[s]=(0,i.je)(n):t||(e[s]=n)})),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,i.S6)(this.payload,(t=>t.reset()))}_makePayload(t){if(t){const e=new Set;return(0,i.rU)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){d.dependencies&&(0,i.j$)(t)&&d.dependencies.add(t);const e=u(t);e&&(0,i.S6)(e,(t=>this.add(t)))}}class p extends f{constructor(t){super(t)}static create(t){return new p(t)}getValue(){return this.source.map((t=>t.getValue()))}setValue(t){const e=this.getPayload();return t.length==e.length?e.map(((e,n)=>e.setValue(t[n]))).some(Boolean):(super.setValue(t.map(_)),!0)}}function _(t){return((0,i.Df)(t)?h:l).create(t)}function y(t){const e=o(t);return e?e.constructor:i.is.arr(t)?p:(0,i.Df)(t)?h:l}function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},g.apply(this,arguments)}const v=(t,e)=>{const n=!i.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,s.forwardRef)(((r,o)=>{const a=(0,s.useRef)(null),u=n&&(0,s.useCallback)((t=>{a.current=function(t,e){t&&(i.is.fun(t)?t(e):t.current=e);return e}(o,t)}),[o]),[c,l]=function(t,e){const n=new Set;d.dependencies=n,t.style&&(t=g({},t,{style:e.createAnimatedStyle(t.style)}));return t=new f(t),d.dependencies=null,[t,n]}(r,e),h=(0,i.NW)(),p=()=>{const t=a.current;if(n&&!t)return;!1===(!!t&&e.applyAnimatedValues(t,c.getValue(!0)))&&h()},_=new m(p,l),y=(0,s.useRef)();(0,i.LI)((()=>(y.current=_,(0,i.S6)(l,(t=>(0,i.UI)(t,_))),()=>{y.current&&((0,i.S6)(y.current.deps,(t=>(0,i.iL)(t,y.current))),i.Wn.cancel(y.current.update))}))),(0,s.useEffect)(p,[]),(0,i.tf)((()=>()=>{const t=y.current;(0,i.S6)(t.deps,(e=>(0,i.iL)(e,t)))}));const v=e.getComponentProps(c.getValue());return s.createElement(t,g({},v,{ref:u}))}))};class m{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&i.Wn.write(this.update)}}const x=Symbol.for("AnimatedComponent"),b=(t,{applyAnimatedValues:e=(()=>!1),createAnimatedStyle:n=(t=>new f(t)),getComponentProps:s=(t=>t)}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:s},o=t=>{const e=w(t)||"Anonymous";return(t=i.is.str(t)?o[t]||(o[t]=v(t,r)):t[x]||(t[x]=v(t,r))).displayName=`Animated(${e})`,t};return(0,i.rU)(t,((e,n)=>{i.is.arr(t)&&(n=w(e)),o[n]=o(e)})),{animated:o}},w=t=>i.is.str(t)?t:t&&i.is.str(t.displayName)?t.displayName:i.is.fun(t)&&t.name||null},79950:function(t,e,n){n.d(e,{Globals:function(){return i.OH},to:function(){return kt},useTransition:function(){return yt}});var i=n(88489),s=n(82684),r=n(92469);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t,...e){return i.is.fun(t)?t(...e):t}const u=(t,e)=>!0===t||!!(e&&t&&(i.is.fun(t)?t(e):(0,i.qo)(t).includes(e))),c=(t,e)=>i.is.obj(t)?e&&t[e]:t,l=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,h=t=>t,d=(t,e=h)=>{let n=f;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const s={};for(const r of n){const n=e(t[r],r);i.is.und(n)||(s[r]=n)}return s},f=["config","onProps","onStart","onChange","onPause","onResume","onRest"],p={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function _(t){const e=function(t){const e={};let n=0;if((0,i.rU)(t,((t,i)=>{p[i]||(e[i]=t,n++)})),n)return e}(t);if(e){const n={to:e};return(0,i.rU)(t,((t,i)=>i in e||(n[i]=t))),n}return o({},t)}function y(t){return t=(0,i.je)(t),i.is.arr(t)?t.map(y):(0,i.Df)(t)?i.OH.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function g(t){for(const e in t)return!0;return!1}function v(t){return i.is.fun(t)||i.is.arr(t)&&i.is.obj(t[0])}function m(t,e){var n;null==(n=t.ref)||n.delete(t),null==e||e.delete(t)}function x(t,e){var n;e&&t.ref!==e&&(null==(n=t.ref)||n.delete(t),e.add(t),t.ref=e)}const b=o({},{tension:170,friction:26},{mass:1,damping:1,easing:i.Z5.linear,clamp:!1});class w{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,b)}}function k(t,e){if(i.is.und(e.decay)){const n=!i.is.und(e.tension)||!i.is.und(e.friction);!n&&i.is.und(e.frequency)&&i.is.und(e.damping)&&i.is.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}const S=[];class T{constructor(){this.changed=!1,this.values=S,this.toValues=null,this.fromValues=S,this.to=void 0,this.from=void 0,this.config=new w,this.immediate=!1}}function M(t,{key:e,props:n,defaultProps:s,state:r,actions:c}){return new Promise(((l,h)=>{var d;let f,p,_=u(null!=(d=n.cancel)?d:null==s?void 0:s.cancel,e);if(_)v();else{i.is.und(n.pause)||(r.paused=u(n.pause,e));let t=null==s?void 0:s.pause;!0!==t&&(t=r.paused||u(t,e)),f=a(n.delay||0,e),t?(r.resumeQueue.add(g),c.pause()):(c.resume(),g())}function y(){r.resumeQueue.add(g),r.timeouts.delete(p),p.cancel(),f=p.time-i.Wn.now()}function g(){f>0&&!i.OH.skipAnimation?(r.delayed=!0,p=i.Wn.setTimeout(v,f),r.pauseQueue.add(y),r.timeouts.add(p)):v()}function v(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(y),r.timeouts.delete(p),t<=(r.cancelId||0)&&(_=!0);try{c.start(o({},n,{callId:t,cancel:_}),l)}catch(e){h(e)}}}))}const O=(t,e)=>1==e.length?e[0]:e.some((t=>t.cancelled))?E(t.get()):e.every((t=>t.noop))?A(t.get()):R(t.get(),e.every((t=>t.finished))),A=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),R=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),E=t=>({value:t,cancelled:!0,finished:!1});function P(t,e,n,s){const{callId:r,parentId:a,onRest:u}=e,{asyncTo:c,promise:l}=n;return a||t!==c||e.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=t;const h=d(e,((t,e)=>"onRest"===e?void 0:t));let f,p;const _=new Promise(((t,e)=>(f=t,p=e))),y=t=>{const e=r<=(n.cancelId||0)&&E(s)||r!==n.asyncId&&R(s,!1);if(e)throw t.result=e,p(t),t},g=(t,e)=>{const a=new I,u=new Z;return(async()=>{if(i.OH.skipAnimation)throw C(n),u.result=R(s,!1),p(u),u;y(a);const c=i.is.obj(t)?o({},t):o({},e,{to:t});c.parentId=r,(0,i.rU)(h,((t,e)=>{i.is.und(c[e])&&(c[e]=t)}));const l=await s.start(c);return y(a),n.paused&&await new Promise((t=>{n.resumeQueue.add(t)})),l})()};let v;if(i.OH.skipAnimation)return C(n),R(s,!1);try{let e;e=i.is.arr(t)?(async t=>{for(const e of t)await g(e)})(t):Promise.resolve(t(g,s.stop.bind(s))),await Promise.all([e.then(f),_]),v=R(s.get(),!0,!1)}catch(m){if(m instanceof I)v=m.result;else{if(!(m instanceof Z))throw m;v=m.result}}finally{r==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?l:void 0)}return i.is.fun(u)&&i.Wn.batchedUpdates((()=>{u(v,s,s.item)})),v})():l}function C(t,e){(0,i.yl)(t.timeouts,(t=>t.cancel())),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class I extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Z extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const j=t=>t instanceof q;let N=1;class q extends i.B0{constructor(...t){super(...t),this.id=N++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=(0,r.ys)(this);return t&&t.getValue()}to(...t){return i.OH.to(this,t)}interpolate(...t){return(0,i.LW)(),i.OH.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){(0,i.k0)(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||i.fT.sort(this),(0,i.k0)(this,{type:"priority",parent:this,priority:t})}}const V=Symbol.for("SpringPhase"),z=t=>(1&t[V])>0,L=t=>(2&t[V])>0,U=t=>(4&t[V])>0,$=(t,e)=>e?t[V]|=3:t[V]&=-3,F=(t,e)=>e?t[V]|=4:t[V]&=-5;class D extends q{constructor(t,e){if(super(),this.key=void 0,this.animation=new T,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!i.is.und(t)||!i.is.und(e)){const n=i.is.obj(t)?o({},t):o({},e,{from:t});i.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(L(this)||this._state.asyncTo)||U(this)}get goal(){return(0,i.je)(this.animation.to)}get velocity(){const t=(0,r.ys)(this);return t instanceof r.iG?t.lastVelocity||0:t.getPayload().map((t=>t.lastVelocity||0))}get hasAnimated(){return z(this)}get isAnimating(){return L(this)}get isPaused(){return U(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const s=this.animation;let{config:o,toValues:a}=s;const u=(0,r.He)(s.to);!u&&(0,i.j$)(s.to)&&(a=(0,i.qo)((0,i.je)(s.to))),s.values.forEach(((c,l)=>{if(c.done)return;const h=c.constructor==r.eC?1:u?u[l].lastPosition:a[l];let d=s.immediate,f=h;if(!d){if(f=c.lastPosition,o.tension<=0)return void(c.done=!0);let e=c.elapsedTime+=t;const n=s.fromValues[l],r=null!=c.v0?c.v0:c.v0=i.is.arr(o.velocity)?o.velocity[l]:o.velocity;let a;const u=o.precision||(n==h?.005:Math.min(1,.001*Math.abs(h-n)));if(i.is.und(o.duration))if(o.decay){const t=!0===o.decay?.998:o.decay,i=Math.exp(-(1-t)*e);f=n+r/(1-t)*(1-i),d=Math.abs(c.lastPosition-f)<=u,a=r*i}else{a=null==c.lastVelocity?r:c.lastVelocity;const e=o.restVelocity||u/10,s=o.clamp?0:o.bounce,l=!i.is.und(s),p=n==h?c.v0>0:n<h;let _,y=!1;const g=1,v=Math.ceil(t/g);for(let t=0;t<v&&(_=Math.abs(a)>e,_||(d=Math.abs(h-f)<=u,!d));++t){l&&(y=f==h||f>h==p,y&&(a=-a*s,f=h));a+=(1e-6*-o.tension*(f-h)+.001*-o.friction*a)/o.mass*g,f+=a*g}}else{let i=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,e=c.elapsedTime+=t)),i=(o.progress||0)+e/this._memoizedDuration,i=i>1?1:i<0?0:i,c.durationProgress=i),f=n+o.easing(i)*(h-n),a=(f-c.lastPosition)/t,d=1==i}c.lastVelocity=a,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),d=!0)}u&&!u[l].done&&(d=!1),d?c.done=!0:e=!1,c.setValue(f,o.round)&&(n=!0)}));const c=(0,r.ys)(this),l=c.getValue();if(e){const t=(0,i.je)(s.to);l===t&&!n||o.decay?n&&o.decay&&this._onChange(l):(c.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return i.Wn.batchedUpdates((()=>{this._stop(),this._focus(t),this._set(t)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(L(this)){const{to:t,config:e}=this.animation;i.Wn.batchedUpdates((()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()}))}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return i.is.und(t)?(n=this.queue||[],this.queue=[]):n=[i.is.obj(t)?t:o({},e,{to:t})],Promise.all(n.map((t=>this._update(t)))).then((t=>O(this,t)))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),C(this._state,t&&this._lastCallId),i.Wn.batchedUpdates((()=>this._stop(e,t))),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:s}=t;n=i.is.obj(n)?n[e]:n,(null==n||v(n))&&(n=void 0),s=i.is.obj(s)?s[e]:s,null==s&&(s=void 0);const o={to:n,from:s};return z(this)||(t.reverse&&([n,s]=[s,n]),s=(0,i.je)(s),i.is.und(s)?(0,r.ys)(this)||this._set(n):this._set(s)),o}_update(t,e){let n=o({},t);const{key:s,defaultProps:r}=this;n.default&&Object.assign(r,d(n,((t,e)=>/^on/.test(e)?c(t,s):t))),G(this,n,"onProps"),K(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const u=this._state;return M(++this._lastCallId,{key:s,props:n,defaultProps:r,state:u,actions:{pause:()=>{U(this)||(F(this,!0),(0,i.bl)(u.pauseQueue),K(this,"onPause",R(this,W(this,this.animation.to)),this))},resume:()=>{U(this)&&(F(this,!1),L(this)&&this._resume(),(0,i.bl)(u.resumeQueue),K(this,"onResume",R(this,W(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((t=>{if(n.loop&&t.finished&&(!e||!t.noop)){const t=B(n);if(t)return this._update(t,!0)}return t}))}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(E(this));const s=!i.is.und(t.to),c=!i.is.und(t.from);if(s||c){if(!(e.callId>this._lastToId))return n(E(this));this._lastToId=e.callId}const{key:l,defaultProps:h,animation:d}=this,{to:f,from:p}=d;let{to:_=f,from:g=p}=t;!c||s||e.default&&!i.is.und(_)||(_=g),e.reverse&&([_,g]=[g,_]);const m=!(0,i.Xy)(g,p);m&&(d.from=g),g=(0,i.je)(g);const x=!(0,i.Xy)(_,f);x&&this._focus(_);const w=v(e.to),{config:S}=d,{decay:T,velocity:M}=S;(s||c)&&(S.velocity=0),e.config&&!w&&function(t,e,n){n&&(k(n=o({},n),e),e=o({},n,e)),k(t,e),Object.assign(t,e);for(const i in b)null==t[i]&&(t[i]=b[i]);let{mass:s,frequency:r,damping:a}=t;i.is.und(r)||(r<.01&&(r=.01),a<0&&(a=0),t.tension=Math.pow(2*Math.PI/r,2)*s,t.friction=4*Math.PI*a*s/r)}(S,a(e.config,l),e.config!==h.config?a(h.config,l):void 0);let O=(0,r.ys)(this);if(!O||i.is.und(_))return n(R(this,!0));const C=i.is.und(e.reset)?c&&!e.default:!i.is.und(g)&&u(e.reset,l),I=C?g:this.get(),Z=y(_),j=i.is.num(Z)||i.is.arr(Z)||(0,i.Df)(Z),N=!w&&(!j||u(h.immediate||e.immediate,l));if(x){const t=(0,r.sb)(_);if(t!==O.constructor){if(!N)throw Error(`Cannot animate between ${O.constructor.name} and ${t.name}, as the "to" prop suggests`);O=this._set(Z)}}const q=O.constructor;let V=(0,i.j$)(_),U=!1;if(!V){const t=C||!z(this)&&m;(x||t)&&(U=(0,i.Xy)(y(I),Z),V=!U),((0,i.Xy)(d.immediate,N)||N)&&(0,i.Xy)(S.decay,T)&&(0,i.Xy)(S.velocity,M)||(V=!0)}if(U&&L(this)&&(d.changed&&!C?V=!0:V||this._stop(f)),!w&&((V||(0,i.j$)(f))&&(d.values=O.getPayload(),d.toValues=(0,i.j$)(_)?null:q==r.eC?[1]:(0,i.qo)(Z)),d.immediate!=N&&(d.immediate=N,N||C||this._set(f)),V)){const{onRest:t}=d;(0,i.S6)(X,(t=>G(this,e,t)));const s=R(this,W(this,f));(0,i.bl)(this._pendingCalls,s),this._pendingCalls.add(n),d.changed&&i.Wn.batchedUpdates((()=>{d.changed=!C,null==t||t(s,this),C?a(h.onRest,s):null==d.onStart||d.onStart(s,this)}))}C&&this._set(I),w?n(P(e.to,e,this._state,this)):V?this._start():L(this)&&!x?this._pendingCalls.add(n):n(A(I))}_focus(t){const e=this.animation;t!==e.to&&((0,i.Ll)(this)&&this._detach(),e.to=t,(0,i.Ll)(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;(0,i.j$)(e)&&((0,i.UI)(e,this),j(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;(0,i.j$)(t)&&(0,i.iL)(t,this)}_set(t,e=!0){const n=(0,i.je)(t);if(!i.is.und(n)){const t=(0,r.ys)(this);if(!t||!(0,i.Xy)(n,t.getValue())){const s=(0,r.sb)(n);t&&t.constructor==s?t.setValue(n):(0,r.f3)(this,s.create(n)),t&&i.Wn.batchedUpdates((()=>{this._onChange(n,e)}))}}return(0,r.ys)(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,K(this,"onStart",R(this,W(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),a(this.animation.onChange,t,this)),a(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;(0,r.ys)(this).reset((0,i.je)(t.to)),t.immediate||(t.fromValues=t.values.map((t=>t.lastPosition))),L(this)||($(this,!0),U(this)||this._resume())}_resume(){i.OH.skipAnimation?this.finish():i.fT.start(this)}_stop(t,e){if(L(this)){$(this,!1);const n=this.animation;(0,i.S6)(n.values,(t=>{t.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,i.k0)(this,{type:"idle",parent:this});const s=e?E(this.get()):R(this.get(),W(this,null!=t?t:n.to));(0,i.bl)(this._pendingCalls,s),n.changed&&(n.changed=!1,K(this,"onRest",s,this))}}}function W(t,e){const n=y(e),s=y(t.get());return(0,i.Xy)(s,n)}function B(t,e=t.loop,n=t.to){let i=a(e);if(i){const s=!0!==i&&_(i),r=(s||t).reverse,a=!s||s.reset;return Q(o({},t,{loop:e,default:!1,pause:void 0,to:!r||v(n)?n:void 0,from:a?t.from:void 0,reset:a},s))}}function Q(t){const{to:e,from:n}=t=_(t),s=new Set;return i.is.obj(e)&&H(e,s),i.is.obj(n)&&H(n,s),t.keys=s.size?Array.from(s):null,t}function H(t,e){(0,i.rU)(t,((t,n)=>null!=t&&e.add(n)))}const X=["onStart","onRest","onChange","onPause","onResume"];function G(t,e,n){t.animation[n]=e[n]!==l(e,n)?c(e[n],t.key):void 0}function K(t,e,...n){var i,s,r,o;null==(i=(s=t.animation)[e])||i.call(s,...n),null==(r=(o=t.defaultProps)[e])||r.call(o,...n)}const Y=["onStart","onChange","onRest"];let J=1;class tt{constructor(t,e){this.id=J++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start(o({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((t=>t.idle&&!t.isDelayed&&!t.isPaused))}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each(((e,n)=>t[n]=e.get())),t}set(t){for(const e in t){const n=t[e];i.is.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(Q(t)),this}start(t){let{queue:e}=this;return t?e=(0,i.qo)(t).map(Q):this.queue=[],this._flush?this._flush(this,e):(at(this,e),et(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;(0,i.S6)((0,i.qo)(e),(e=>n[e].stop(!!t)))}else C(this._state,this._lastAsyncId),this.each((e=>e.stop(!!t)));return this}pause(t){if(i.is.und(t))this.start({pause:!0});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].pause()))}return this}resume(t){if(i.is.und(t))this.start({pause:!1});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].resume()))}return this}each(t){(0,i.rU)(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,s=this._active.size>0,r=this._changed.size>0;(s&&!this._started||r&&!this._started)&&(this._started=!0,(0,i.yl)(t,(([t,e])=>{e.value=this.get(),t(e,this,this._item)})));const o=!s&&this._started,a=r||o&&n.size?this.get():null;r&&e.size&&(0,i.yl)(e,(([t,e])=>{e.value=a,t(e,this,this._item)})),o&&(this._started=!1,(0,i.yl)(n,(([t,e])=>{e.value=a,t(e,this,this._item)})))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}i.Wn.onFrame(this._onFrame)}}function et(t,e){return Promise.all(e.map((e=>nt(t,e)))).then((e=>O(t,e)))}async function nt(t,e,n){const{keys:s,to:r,from:o,loop:a,onRest:u,onResolve:c}=e,h=i.is.obj(e.default)&&e.default;a&&(e.loop=!1),!1===r&&(e.to=null),!1===o&&(e.from=null);const d=i.is.arr(r)||i.is.fun(r)?r:void 0;d?(e.to=void 0,e.onRest=void 0,h&&(h.onRest=void 0)):(0,i.S6)(Y,(n=>{const s=e[n];if(i.is.fun(s)){const i=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=i.get(s);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):i.set(s,{value:null,finished:t||!1,cancelled:e||!1})},h&&(h[n]=e[n])}}));const f=t._state;e.pause===!f.paused?(f.paused=e.pause,(0,i.bl)(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);const p=(s||Object.keys(t.springs)).map((n=>t.springs[n].start(e))),_=!0===e.cancel||!0===l(e,"cancel");(d||_&&f.asyncId)&&p.push(M(++t._lastAsyncId,{props:e,state:f,actions:{pause:i.ZT,resume:i.ZT,start(e,n){_?(C(f,t._lastAsyncId),n(E(t))):(e.onRest=u,n(P(d,e,f,t)))}}})),f.paused&&await new Promise((t=>{f.resumeQueue.add(t)}));const y=O(t,await Promise.all(p));if(a&&y.finished&&(!n||!y.noop)){const n=B(e,a,r);if(n)return at(t,[n]),nt(t,n,!0)}return c&&i.Wn.batchedUpdates((()=>c(y,t,t.item))),y}function it(t,e){const n=o({},t.springs);return e&&(0,i.S6)((0,i.qo)(e),(t=>{i.is.und(t.keys)&&(t=Q(t)),i.is.obj(t.to)||(t=o({},t,{to:void 0})),ot(n,t,(t=>rt(t)))})),st(t,n),n}function st(t,e){(0,i.rU)(e,((e,n)=>{t.springs[n]||(t.springs[n]=e,(0,i.UI)(e,t))}))}function rt(t,e){const n=new D;return n.key=t,e&&(0,i.UI)(n,e),n}function ot(t,e,n){e.keys&&(0,i.S6)(e.keys,(i=>{(t[i]||(t[i]=n(i)))._prepareNode(e)}))}function at(t,e){(0,i.S6)(e,(e=>{ot(t.springs,e,(e=>rt(e,t)))}))}function ut(t,e){if(null==t)return{};var n,i,s={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(s[n]=t[n]);return s}const ct=["children"],lt=t=>{let{children:e}=t,n=ut(t,ct);const r=(0,s.useContext)(ht),o=n.pause||!!r.pause,a=n.immediate||!!r.immediate;n=(0,i.Pr)((()=>({pause:o,immediate:a})),[o,a]);const{Provider:u}=ht;return s.createElement(u,{value:n},e)},ht=(dt=lt,ft={},Object.assign(dt,s.createContext(ft)),dt.Provider._context=dt,dt.Consumer._context=dt,dt);var dt,ft;lt.Provider=ht.Provider,lt.Consumer=ht.Consumer;const pt=()=>{const t=[],e=function(e){(0,i.ZR)();const s=[];return(0,i.S6)(t,((t,r)=>{if(i.is.und(e))s.push(t.start());else{const i=n(e,t,r);i&&s.push(t.start(i))}})),s};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return(0,i.S6)(t,(t=>t.pause(...arguments))),this},e.resume=function(){return(0,i.S6)(t,(t=>t.resume(...arguments))),this},e.set=function(e){(0,i.S6)(t,(t=>t.set(e)))},e.start=function(e){const n=[];return(0,i.S6)(t,((t,s)=>{if(i.is.und(e))n.push(t.start());else{const i=this._getProps(e,t,s);i&&n.push(t.start(i))}})),n},e.stop=function(){return(0,i.S6)(t,(t=>t.stop(...arguments))),this},e.update=function(e){return(0,i.S6)(t,((t,n)=>t.update(this._getProps(e,t,n)))),this};const n=function(t,e,n){return i.is.fun(t)?t(n,e):t};return e._getProps=n,e};let _t;function yt(t,e,n){const r=i.is.fun(e)&&e,{reset:u,sort:c,trail:l=0,expires:h=!0,exitBeforeEnter:f=!1,onDestroyed:p,ref:y,config:v}=r?r():e,b=(0,s.useMemo)((()=>r||3==arguments.length?pt():void 0),[]),w=(0,i.qo)(t),k=[],S=(0,s.useRef)(null),T=u?null:S.current;(0,i.LI)((()=>{S.current=k})),(0,i.tf)((()=>((0,i.S6)(k,(t=>{null==b||b.add(t.ctrl),t.ctrl.ref=b})),()=>{(0,i.S6)(S.current,(t=>{t.expired&&clearTimeout(t.expirationId),m(t.ctrl,b),t.ctrl.stop(!0)}))})));const M=vt(w,r?r():e,T),O=u&&S.current||[];(0,i.LI)((()=>(0,i.S6)(O,(({ctrl:t,item:e,key:n})=>{m(t,b),a(p,e,n)}))));const A=[];if(T&&(0,i.S6)(T,((t,e)=>{t.expired?(clearTimeout(t.expirationId),O.push(t)):~(e=A[e]=M.indexOf(t.key))&&(k[e]=t)})),(0,i.S6)(w,((t,e)=>{k[e]||(k[e]={key:M[e],item:t,phase:_t.MOUNT,ctrl:new tt},k[e].ctrl.item=t)})),A.length){let t=-1;const{leave:n}=r?r():e;(0,i.S6)(A,((e,i)=>{const s=T[i];~e?(t=k.indexOf(s),k[t]=o({},s,{item:w[e]})):n&&k.splice(++t,0,s)}))}i.is.fun(c)&&k.sort(((t,e)=>c(t.item,e.item)));let R=-l;const E=(0,i.NW)(),P=d(e),C=new Map,I=(0,s.useRef)(new Map),Z=(0,s.useRef)(!1);(0,i.S6)(k,((t,n)=>{const s=t.key,u=t.phase,c=r?r():e;let d,p,g=a(c.delay||0,s);if(u==_t.MOUNT)d=c.enter,p=_t.ENTER;else{const t=M.indexOf(s)<0;if(u!=_t.LEAVE)if(t)d=c.leave,p=_t.LEAVE;else{if(!(d=c.update))return;p=_t.UPDATE}else{if(t)return;d=c.enter,p=_t.ENTER}}if(d=a(d,t.item,n),d=i.is.obj(d)?_(d):{to:d},!d.config){const e=v||P.config;d.config=a(e,t.item,n,p)}R+=l;const m=o({},P,{delay:g+R,ref:y,immediate:c.immediate,reset:!1},d);if(p==_t.ENTER&&i.is.und(m.from)){const s=r?r():e,o=i.is.und(s.initial)||T?s.from:s.initial;m.from=a(o,t.item,n)}const{onResolve:x}=m;m.onResolve=t=>{a(x,t);const e=S.current,n=e.find((t=>t.key===s));if(n&&(!t.cancelled||n.phase==_t.UPDATE)&&n.ctrl.idle){const t=e.every((t=>t.ctrl.idle));if(n.phase==_t.LEAVE){const e=a(h,n.item);if(!1!==e){const i=!0===e?0:e;if(n.expired=!0,!t&&i>0)return void(i<=2147483647&&(n.expirationId=setTimeout(E,i)))}}t&&e.some((t=>t.expired))&&(I.current.delete(n),f&&(Z.current=!0),E())}};const b=it(t.ctrl,m);p===_t.LEAVE&&f?I.current.set(t,{phase:p,springs:b,payload:m}):C.set(t,{phase:p,springs:b,payload:m})}));const j=(0,s.useContext)(lt),N=(0,i.zH)(j),q=j!==N&&g(j);(0,i.LI)((()=>{q&&(0,i.S6)(k,(t=>{t.ctrl.start({default:j})}))}),[j]),(0,i.S6)(C,((t,e)=>{if(I.current.size){const t=k.findIndex((t=>t.key===e.key));k.splice(t,1)}})),(0,i.LI)((()=>{(0,i.S6)(I.current.size?I.current:C,(({phase:t,payload:e},n)=>{const{ctrl:i}=n;n.phase=t,null==b||b.add(i),q&&t==_t.ENTER&&i.start({default:j}),e&&(x(i,e.ref),!i.ref&&!b||Z.current?(i.start(e),Z.current&&(Z.current=!1)):i.update(e))}))}),u?void 0:n);const V=t=>s.createElement(s.Fragment,null,k.map(((e,n)=>{const{springs:r}=C.get(e)||e.ctrl,a=t(o({},r),e.item,e,n);return a&&a.type?s.createElement(a.type,o({},a.props,{key:i.is.str(e.key)||i.is.num(e.key)?e.key:e.ctrl.id,ref:a.ref})):a})));return b?[V,b]:V}!function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"}(_t||(_t={}));let gt=1;function vt(t,{key:e,keys:n=e},s){if(null===n){const e=new Set;return t.map((t=>{const n=s&&s.find((n=>n.item===t&&n.phase!==_t.LEAVE&&!e.has(n)));return n?(e.add(n),n.key):gt++}))}return i.is.und(n)?t:i.is.fun(n)?t.map(n):(0,i.qo)(n)}class mt extends q{constructor(t,e){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=(0,i.mD)(...e);const n=this._get(),s=(0,r.sb)(n);(0,r.f3)(this,s.create(n))}advance(t){const e=this._get(),n=this.get();(0,i.Xy)(e,n)||((0,r.ys)(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&bt(this._active)&&wt(this)}_get(){const t=i.is.arr(this.source)?this.source.map(i.je):(0,i.qo)((0,i.je)(this.source));return this.calc(...t)}_start(){this.idle&&!bt(this._active)&&(this.idle=!1,(0,i.S6)((0,r.He)(this),(t=>{t.done=!1})),i.OH.skipAnimation?(i.Wn.batchedUpdates((()=>this.advance())),wt(this)):i.fT.start(this))}_attach(){let t=1;(0,i.S6)((0,i.qo)(this.source),(e=>{(0,i.j$)(e)&&(0,i.UI)(e,this),j(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))})),this.priority=t,this._start()}_detach(){(0,i.S6)((0,i.qo)(this.source),(t=>{(0,i.j$)(t)&&(0,i.iL)(t,this)})),this._active.clear(),wt(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=(0,i.qo)(this.source).reduce(((t,e)=>Math.max(t,(j(e)?e.priority:0)+1)),0))}}function xt(t){return!1!==t.idle}function bt(t){return!t.size||Array.from(t).every(xt)}function wt(t){t.idle||(t.idle=!0,(0,i.S6)((0,r.He)(t),(t=>{t.done=!0})),(0,i.k0)(t,{type:"idle",parent:t}))}const kt=(t,...e)=>new mt(t,e);i.OH.assign({createStringInterpolator:i.qS,to:(t,e)=>new mt(t,e)});i.fT.advance},88489:function(t,e,n){n.d(e,{B0:function(){return At},OH:function(){return V},UI:function(){return Et},k0:function(){return Ot},O9:function(){return H},mD:function(){return ft},qS:function(){return $t},dE:function(){return k},ZR:function(){return Ht},LW:function(){return Bt},S6:function(){return M},rU:function(){return O},Z5:function(){return xt},yl:function(){return R},bl:function(){return E},fT:function(){return F},Ll:function(){return Mt},je:function(){return Tt},j$:function(){return St},is:function(){return S},Df:function(){return Xt},Xy:function(){return T},ZT:function(){return w},Wn:function(){return s},iL:function(){return Pt},qo:function(){return A},NW:function(){return Kt},LI:function(){return Gt},Pr:function(){return Yt},tf:function(){return Jt},zH:function(){return ee}});let i=m();const s=t=>_(t,i);let r=m();s.write=t=>_(t,r);let o=m();s.onStart=t=>_(t,o);let a=m();s.onFrame=t=>_(t,a);let u=m();s.onFinish=t=>_(t,u);let c=[];s.setTimeout=(t,e)=>{let n=s.now()+e,i=()=>{let t=c.findIndex((t=>t.cancel==i));~t&&c.splice(t,1),f-=~t?1:0},r={time:n,handler:t,cancel:i};return c.splice(l(n),0,r),f+=1,y(),r};let l=t=>~(~c.findIndex((e=>e.time>t))||~c.length);s.cancel=t=>{o.delete(t),a.delete(t),u.delete(t),i.delete(t),r.delete(t)},s.sync=t=>{p=!0,s.batchedUpdates(t),p=!1},s.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function i(...t){e=t,s.onStart(n)}return i.handler=t,i.cancel=()=>{o.delete(n),e=null},i};let h="undefined"!=typeof window?window.requestAnimationFrame:()=>{};s.use=t=>h=t,s.now="undefined"!=typeof performance?()=>performance.now():Date.now,s.batchedUpdates=t=>t(),s.catch=console.error,s.frameLoop="always",s.advance=()=>{"demand"!==s.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v()};let d=-1,f=0,p=!1;function _(t,e){p?(e.delete(t),t(0)):(e.add(t),y())}function y(){d<0&&(d=0,"demand"!==s.frameLoop&&h(g))}function g(){~d&&(h(g),s.batchedUpdates(v))}function v(){let t=d;d=s.now();let e=l(d);e&&(x(c.splice(0,e),(t=>t.handler())),f-=e),f?(o.flush(),i.flush(t?Math.min(64,d-t):16.667),a.flush(),r.flush(),u.flush()):d=-1}function m(){let t=new Set,e=t;return{add(n){f+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(f-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,f-=e.size,x(e,(e=>e(n)&&t.add(e))),f+=t.size,e=t)}}}function x(t,e){t.forEach((t=>{try{e(t)}catch(n){s.catch(n)}}))}var b=n(82684);function w(){}const k=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),S={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"===typeof t,str:t=>"string"===typeof t,num:t=>"number"===typeof t,und:t=>void 0===t};function T(t,e){if(S.arr(t)){if(!S.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const M=(t,e)=>t.forEach(e);function O(t,e,n){if(S.arr(t))for(let i=0;i<t.length;i++)e.call(n,t[i],`${i}`);else for(const i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i)}const A=t=>S.und(t)?[]:S.arr(t)?t:[t];function R(t,e){if(t.size){const n=Array.from(t);t.clear(),M(n,e)}}const E=(t,...e)=>R(t,(t=>t(...e))),P=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let C,I,Z=null,j=!1,N=w;const q=t=>{t.to&&(I=t.to),t.now&&(s.now=t.now),void 0!==t.colors&&(Z=t.colors),null!=t.skipAnimation&&(j=t.skipAnimation),t.createStringInterpolator&&(C=t.createStringInterpolator),t.requestAnimationFrame&&s.use(t.requestAnimationFrame),t.batchedUpdates&&(s.batchedUpdates=t.batchedUpdates),t.willAdvance&&(N=t.willAdvance),t.frameLoop&&(s.frameLoop=t.frameLoop)};var V=Object.freeze({__proto__:null,get createStringInterpolator(){return C},get to(){return I},get colors(){return Z},get skipAnimation(){return j},get willAdvance(){return N},assign:q});const z=new Set;let L=[],U=[],$=0;const F={get idle(){return!z.size&&!L.length},start(t){$>t.priority?(z.add(t),s.onStart(D)):(W(t),s(Q))},advance:Q,sort(t){if($)s.onFrame((()=>F.sort(t)));else{const e=L.indexOf(t);~e&&(L.splice(e,1),B(t))}},clear(){L=[],z.clear()}};function D(){z.forEach(W),z.clear(),s(Q)}function W(t){L.includes(t)||B(t)}function B(t){L.splice(function(t,e){const n=t.findIndex(e);return n<0?t.length:n}(L,(e=>e.priority>t.priority)),0,t)}function Q(t){const e=U;for(let n=0;n<L.length;n++){const i=L[n];$=i.priority,i.idle||(N(i),i.advance(t),i.idle||e.push(i))}return $=0,U=L,U.length=0,L=e,L.length>0}const H={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},X="[-+]?\\d*\\.?\\d+",G=X+"%";function K(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Y=new RegExp("rgb"+K(X,X,X)),J=new RegExp("rgba"+K(X,X,X,X)),tt=new RegExp("hsl"+K(X,G,G)),et=new RegExp("hsla"+K(X,G,G,X)),nt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,it=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,st=/^#([0-9a-fA-F]{6})$/,rt=/^#([0-9a-fA-F]{8})$/;function ot(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function at(t,e,n){const i=n<.5?n*(1+e):n+e-n*e,s=2*n-i,r=ot(s,i,t+1/3),o=ot(s,i,t),a=ot(s,i,t-1/3);return Math.round(255*r)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}function ut(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function ct(t){return(parseFloat(t)%360+360)%360/360}function lt(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function ht(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function dt(t){let e=function(t){let e;return"number"===typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=st.exec(t))?parseInt(e[1]+"ff",16)>>>0:Z&&void 0!==Z[t]?Z[t]:(e=Y.exec(t))?(ut(e[1])<<24|ut(e[2])<<16|ut(e[3])<<8|255)>>>0:(e=J.exec(t))?(ut(e[1])<<24|ut(e[2])<<16|ut(e[3])<<8|lt(e[4]))>>>0:(e=nt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=rt.exec(t))?parseInt(e[1],16)>>>0:(e=it.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=tt.exec(t))?(255|at(ct(e[1]),ht(e[2]),ht(e[3])))>>>0:(e=et.exec(t))?(at(ct(e[1]),ht(e[2]),ht(e[3]))|lt(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}const ft=(t,e,n)=>{if(S.fun(t))return t;if(S.arr(t))return ft({range:t,output:e,extrapolate:n});if(S.str(t.output[0]))return C(t);const i=t,s=i.output,r=i.range||[0,1],o=i.extrapolateLeft||i.extrapolate||"extend",a=i.extrapolateRight||i.extrapolate||"extend",u=i.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}(t,r);return function(t,e,n,i,s,r,o,a,u){let c=u?u(t):t;if(c<e){if("identity"===o)return c;"clamp"===o&&(c=e)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(i===s)return i;if(e===n)return t<=e?i:s;e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e);c=r(c),i===-1/0?c=-c:s===1/0?c+=i:c=c*(s-i)+i;return c}(t,r[e],r[e+1],s[e],s[e+1],u,o,a,i.map)}};const pt=1.70158,_t=1.525*pt,yt=pt+1,gt=2*Math.PI/3,vt=2*Math.PI/4.5,mt=t=>{const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},xt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>0===t?0:Math.pow(2,10*t-10),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>yt*t*t*t-pt*t*t,easeOutBack:t=>1+yt*Math.pow(t-1,3)+pt*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*(7.189819*t-_t)/2:(Math.pow(2*t-2,2)*((_t+1)*(2*t-2)+_t)+2)/2,easeInElastic:t=>0===t?0:1===t?1:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*gt),easeOutElastic:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((10*t-.75)*gt)+1,easeInOutElastic:t=>0===t?0:1===t?1:t<.5?-Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*vt)/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*vt)/2+1,easeInBounce:t=>1-mt(1-t),easeOutBounce:mt,easeInOutBounce:t=>t<.5?(1-mt(1-2*t))/2:(1+mt(2*t-1))/2,steps:(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,s="end"===e?Math.floor(i):Math.ceil(i);return r=0,o=1,a=s/t,Math.min(Math.max(a,r),o);var r,o,a}};function bt(){return bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},bt.apply(this,arguments)}const wt=Symbol.for("FluidValue.get"),kt=Symbol.for("FluidValue.observers"),St=t=>Boolean(t&&t[wt]),Tt=t=>t&&t[wt]?t[wt]():t,Mt=t=>t[kt]||null;function Ot(t,e){let n=t[kt];n&&n.forEach((t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)}))}class At{constructor(t){if(this[wt]=void 0,this[kt]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Rt(this,t)}}const Rt=(t,e)=>Ct(t,wt,e);function Et(t,e){if(t[wt]){let n=t[kt];n||Ct(t,kt,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function Pt(t,e){let n=t[kt];if(n&&n.has(e)){const i=n.size-1;i?n.delete(e):t[kt]=null,t.observerRemoved&&t.observerRemoved(i,e)}}const Ct=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),It=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Zt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,jt=new RegExp(`(${It.source})(%|[a-z]+)`,"i"),Nt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,qt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Vt=t=>{const[e,n]=zt(t);if(!e||P())return t;const i=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(i)return i.trim();if(n&&n.startsWith("--")){const e=window.getComputedStyle(document.documentElement).getPropertyValue(n);return e||t}return n&&qt.test(n)?Vt(n):n||t},zt=t=>{const e=qt.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]};let Lt;const Ut=(t,e,n,i,s)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(i)}, ${s})`,$t=t=>{Lt||(Lt=Z?new RegExp(`(${Object.keys(Z).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map((t=>Tt(t).replace(qt,Vt).replace(Zt,dt).replace(Lt,dt))),n=e.map((t=>t.match(It).map(Number))),i=n[0].map(((t,e)=>n.map((t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})))).map((e=>ft(bt({},t,{output:e}))));return t=>{var n;const s=!jt.test(e[0])&&(null==(n=e.find((t=>jt.test(t))))?void 0:n.replace(It,""));let r=0;return e[0].replace(It,(()=>`${i[r++](t)}${s||""}`)).replace(Nt,Ut)}},Ft="react-spring: ",Dt=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${Ft}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},Wt=Dt(console.warn);function Bt(){Wt(`${Ft}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Qt=Dt(console.warn);function Ht(){Qt(`${Ft}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Xt(t){return S.str(t)&&("#"==t[0]||/\d/.test(t)||!P()&&qt.test(t)||t in(Z||{}))}new WeakMap;new Set;new WeakMap,new WeakMap,new WeakMap;const Gt=P()?b.useEffect:b.useLayoutEffect;function Kt(){const t=(0,b.useState)()[1],e=(()=>{const t=(0,b.useRef)(!1);return Gt((()=>(t.current=!0,()=>{t.current=!1})),[]),t})();return()=>{e.current&&t(Math.random())}}function Yt(t,e){const[n]=(0,b.useState)((()=>({inputs:e,result:t()}))),i=(0,b.useRef)(),s=i.current;let r=s;if(r){Boolean(e&&r.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(e,r.inputs))||(r={inputs:e,result:t()})}else r=n;return(0,b.useEffect)((()=>{i.current=r,s==n&&(n.inputs=n.result=void 0)}),[r]),r.result}const Jt=t=>(0,b.useEffect)(t,te),te=[];function ee(t){const e=(0,b.useRef)();return(0,b.useEffect)((()=>{e.current=t})),e.current}},84877:function(t,e,n){n.d(e,{animated:function(){return k},to:function(){return i.to},useTransition:function(){return i.useTransition}});var i=n(79950),s=n(85202),r=n(88489),o=n(92469);function a(t,e){if(null==t)return{};var n,i,s={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(s[n]=t[n]);return s}const u=["style","children","scrollTop","scrollLeft","viewBox"],c=/^--/;function l(t,e){return null==e||"boolean"===typeof e||""===e?"":"number"!==typeof e||0===e||c.test(t)||d.hasOwnProperty(t)&&d[t]?(""+e).trim():e+"px"}const h={};let d={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const f=["Webkit","Ms","Moz","O"];d=Object.keys(d).reduce(((t,e)=>(f.forEach((n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e])),t)),d);const p=["x","y","z"],_=/^(matrix|translate|scale|rotate|skew)/,y=/^(translate)/,g=/^(rotate|skew)/,v=(t,e)=>r.is.num(t)&&0!==t?t+e:t,m=(t,e)=>r.is.arr(t)?t.every((t=>m(t,e))):r.is.num(t)?t===e:parseFloat(t)===e;class x extends o.rS{constructor(t){let{x:e,y:n,z:i}=t,s=a(t,p);const o=[],u=[];(e||n||i)&&(o.push([e||0,n||0,i||0]),u.push((t=>[`translate3d(${t.map((t=>v(t,"px"))).join(",")})`,m(t,0)]))),(0,r.rU)(s,((t,e)=>{if("transform"===e)o.push([t||""]),u.push((t=>[t,""===t]));else if(_.test(e)){if(delete s[e],r.is.und(t))return;const n=y.test(e)?"px":g.test(e)?"deg":"";o.push((0,r.qo)(t)),u.push("rotate3d"===e?([t,e,i,s])=>[`rotate3d(${t},${e},${i},${v(s,n)})`,m(s,0)]:t=>[`${e}(${t.map((t=>v(t,n))).join(",")})`,m(t,e.startsWith("scale")?1:0)])}})),o.length&&(s.transform=new b(o,u)),super(s)}}class b extends r.B0{constructor(t,e){super(),this._value=null,this.inputs=t,this.transforms=e}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return(0,r.S6)(this.inputs,((n,i)=>{const s=(0,r.je)(n[0]),[o,a]=this.transforms[i](r.is.arr(s)?s:n.map(r.je));t+=" "+o,e=e&&a})),e?"none":t}observerAdded(t){1==t&&(0,r.S6)(this.inputs,(t=>(0,r.S6)(t,(t=>(0,r.j$)(t)&&(0,r.UI)(t,this)))))}observerRemoved(t){0==t&&(0,r.S6)(this.inputs,(t=>(0,r.S6)(t,(t=>(0,r.j$)(t)&&(0,r.iL)(t,this)))))}eventObserved(t){"change"==t.type&&(this._value=null),(0,r.k0)(this,t)}}const w=["scrollTop","scrollLeft"];i.Globals.assign({batchedUpdates:s.unstable_batchedUpdates,createStringInterpolator:r.qS,colors:r.O9});const k=(0,o.Ld)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,i=e,{style:s,children:r,scrollTop:o,scrollLeft:d,viewBox:f}=i,p=a(i,u),_=Object.values(p),y=Object.keys(p).map((e=>n||t.hasAttribute(e)?e:h[e]||(h[e]=e.replace(/([A-Z])/g,(t=>"-"+t.toLowerCase())))));void 0!==r&&(t.textContent=r);for(let a in s)if(s.hasOwnProperty(a)){const e=l(a,s[a]);c.test(a)?t.style.setProperty(a,e):t.style[a]=e}y.forEach(((e,n)=>{t.setAttribute(e,_[n])})),void 0!==o&&(t.scrollTop=o),void 0!==d&&(t.scrollLeft=d),void 0!==f&&t.setAttribute("viewBox",f)},createAnimatedStyle:t=>new x(t),getComponentProps:t=>a(t,w)}).animated},62339:function(t,e,n){n.r(e),n.d(e,{Group:function(){return i.Z}});var i=n(29989)},98677:function(t,e,n){function i(t,e,n){t=+t,e=+e,n=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+n;for(var i=-1,s=0|Math.max(0,Math.ceil((e-t)/n)),r=new Array(s);++i<s;)r[i]=t+i*n;return r}n.d(e,{Z:function(){return u}});var s=n(8208),r=n(8162);function o(){var t,e,n=(0,r.Z)().unknown(void 0),a=n.domain,u=n.range,c=0,l=1,h=!1,d=0,f=0,p=.5;function _(){var n=a().length,s=l<c,r=s?l:c,o=s?c:l;t=(o-r)/Math.max(1,n-d+2*f),h&&(t=Math.floor(t)),r+=(o-r-t*(n-d))*p,e=t*(1-d),h&&(r=Math.round(r),e=Math.round(e));var _=i(n).map((function(e){return r+t*e}));return u(s?_.reverse():_)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),_()):a()},n.range=function(t){return arguments.length?([c,l]=t,c=+c,l=+l,_()):[c,l]},n.rangeRound=function(t){return[c,l]=t,c=+c,l=+l,h=!0,_()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(h=!!t,_()):h},n.padding=function(t){return arguments.length?(d=Math.min(1,f=+t),_()):d},n.paddingInner=function(t){return arguments.length?(d=Math.min(1,t),_()):d},n.paddingOuter=function(t){return arguments.length?(f=+t,_()):f},n.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),_()):p},n.copy=function(){return o(a(),[c,l]).round(h).paddingInner(d).paddingOuter(f).align(p)},s.o.apply(_(),arguments)}var a=(0,n(93342).Z)("domain","range","reverse","align","padding","round");function u(t){return a(o(),t)}},15817:function(t,e,n){n.d(e,{Z:function(){return _}});var i=n(94245),s=n(35101),r=n(3983),o=n(37884),a=n(43694),u=n(13143),c=n(8717),l=n(29483),h=n(90789),d=n(72430),f=n(8208);var p=(0,n(93342).Z)("domain","range","reverse","clamp","interpolate","nice","round");function _(t){return p(function(){return f.o.apply((0,d.Y)(i.WG,i.jo,s.Z,r.Z,o.Ox,a.Z,u.Z,c.Z,l.Z,h.g0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}(),t)}},53989:function(t,e,n){function i(t){if("bandwidth"in t)return t.bandwidth();var e=t.range(),n=t.domain();return Math.abs(e[e.length-1]-e[0])/n.length}n.d(e,{Z:function(){return i}})},28940:function(t,e,n){e.Z=function(t){var e=t.className,n=t.top,u=t.left,l=t.data,h=void 0===l?[]:l,d=t.centroid,f=t.innerRadius,p=void 0===f?0:f,_=t.outerRadius,y=t.cornerRadius,g=t.startAngle,v=t.endAngle,m=t.padAngle,x=t.padRadius,b=t.pieSort,w=t.pieSortValues,k=t.pieValue,S=t.children,T=t.fill,M=void 0===T?"":T,O=function(t,e){if(null==t)return{};var n,i,s={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(s[n]=t[n]);return s}(t,a),A=(0,o.arc)({innerRadius:p,outerRadius:_,cornerRadius:y,padRadius:x}),R=(0,o.pie)({startAngle:g,endAngle:v,padAngle:m,value:k,sort:b,sortValues:w}),E=R(h);return S?i.default.createElement(i.default.Fragment,null,S({arcs:E,path:A,pie:R})):i.default.createElement(r.Group,{className:"visx-pie-arcs-group",top:n,left:u},E.map((function(t,n){return i.default.createElement("g",{key:"pie-arc-"+n},i.default.createElement("path",c({className:(0,s.default)("visx-pie-arc",e),d:A(t)||"",fill:null==M||"string"===typeof M?M:M(t)},O)),null==d?void 0:d(A.centroid(t),t))})))};var i=u(n(82684)),s=u(n(63588)),r=n(62339),o=n(3517),a=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(this,arguments)}},3517:function(t,e,n){e.__esModule=!0,e.arc=function(t){var e=void 0===t?{}:t,n=e.innerRadius,r=e.outerRadius,o=e.cornerRadius,a=e.startAngle,u=e.endAngle,c=e.padAngle,l=e.padRadius,h=(0,i.arc)();null!=n&&(0,s.default)(h.innerRadius,n);null!=r&&(0,s.default)(h.outerRadius,r);null!=o&&(0,s.default)(h.cornerRadius,o);null!=a&&(0,s.default)(h.startAngle,a);null!=u&&(0,s.default)(h.endAngle,u);null!=c&&(0,s.default)(h.padAngle,c);null!=l&&(0,s.default)(h.padRadius,l);return h},e.area=function(t){var e=void 0===t?{}:t,n=e.x,r=e.x0,o=e.x1,a=e.y,u=e.y0,c=e.y1,l=e.defined,h=e.curve,d=(0,i.area)();n&&(0,s.default)(d.x,n);r&&(0,s.default)(d.x0,r);o&&(0,s.default)(d.x1,o);a&&(0,s.default)(d.y,a);u&&(0,s.default)(d.y0,u);c&&(0,s.default)(d.y1,c);l&&d.defined(l);h&&d.curve(h);return d},e.line=function(t){var e=void 0===t?{}:t,n=e.x,r=e.y,o=e.defined,a=e.curve,u=(0,i.line)();n&&(0,s.default)(u.x,n);r&&(0,s.default)(u.y,r);o&&u.defined(o);a&&u.curve(a);return u},e.pie=function(t){var e=void 0===t?{}:t,n=e.startAngle,r=e.endAngle,o=e.padAngle,a=e.value,u=e.sort,c=e.sortValues,l=(0,i.pie)();(null===u||null!=u)&&l.sort(u);(null===c||null!=c)&&l.sortValues(c);null!=a&&l.value(a);null!=o&&(0,s.default)(l.padAngle,o);null!=n&&(0,s.default)(l.startAngle,n);null!=r&&(0,s.default)(l.endAngle,r);return l},e.radialLine=function(t){var e=void 0===t?{}:t,n=e.angle,r=e.radius,o=e.defined,a=e.curve,u=(0,i.radialLine)();n&&(0,s.default)(u.angle,n);r&&(0,s.default)(u.radius,r);o&&u.defined(o);a&&u.curve(a);return u},e.stack=function(t){var e=t.keys,n=t.value,a=t.order,u=t.offset,c=(0,i.stack)();e&&c.keys(e);n&&(0,s.default)(c.value,n);a&&c.order((0,r.default)(a));u&&c.offset((0,o.default)(u));return c};var i=n(29491),s=a(n(9908)),r=a(n(58450)),o=a(n(61585));function a(t){return t&&t.__esModule?t:{default:t}}},9908:function(t,e){e.__esModule=!0,e.default=function(t,e){t(e)}},61585:function(t,e,n){e.__esModule=!0,e.default=function(t){return t&&s[t]||s.none},e.STACK_OFFSET_NAMES=e.STACK_OFFSETS=void 0;var i=n(29491),s={expand:i.stackOffsetExpand,diverging:i.stackOffsetDiverging,none:i.stackOffsetNone,silhouette:i.stackOffsetSilhouette,wiggle:i.stackOffsetWiggle};e.STACK_OFFSETS=s;var r=Object.keys(s);e.STACK_OFFSET_NAMES=r},58450:function(t,e,n){e.__esModule=!0,e.default=function(t){return t&&s[t]||s.none},e.STACK_ORDER_NAMES=e.STACK_ORDERS=void 0;var i=n(29491),s={ascending:i.stackOrderAscending,descending:i.stackOrderDescending,insideout:i.stackOrderInsideOut,none:i.stackOrderNone,reverse:i.stackOrderReverse};e.STACK_ORDERS=s;var r=Object.keys(s);e.STACK_ORDER_NAMES=r},16853:function(t,e,n){n.d(e,{Z:function(){return v}});var i=n(47329),s=n.n(i),r=n(82684),o=n(85202);function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={top:0,right:0,bottom:0,left:0,width:0,height:0};var d=n(65376),f=(0,r.createContext)({isFlippedVertically:!1,isFlippedHorizontally:!1}),p=f.Provider,_=(f.Consumer,["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"]);function y(){return y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},y.apply(this,arguments)}function g(t){var e,n=t.children,i=(t.getRects,t.left),s=void 0===i?0:i,o=t.offsetLeft,a=void 0===o?10:o,u=t.offsetTop,c=void 0===u?10:u,l=t.parentRect,h=t.rect,f=t.style,g=void 0===f?d.j:f,v=t.top,m=void 0===v?0:v,x=t.unstyled,b=void 0!==x&&x,w=t.nodeRef,k=function(t,e){if(null==t)return{};var n,i,s={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(s[n]=t[n]);return s}(t,_),S=!1,T=!1;if(h&&l){var M=s,O=m;if(l.width){var A=M+a+h.width-l.width,R=h.width-M-a;S=A>0&&A>R}else{var E=M+a+h.width-window.innerWidth,P=h.width-M-a;S=E>0&&E>P}if(l.height){var C=O+c+h.height-l.height,I=h.height-O-c;T=C>0&&C>I}else T=O+c+h.height>window.innerHeight;M=S?M-h.width-a:M+a,O=T?O-h.height-c:O+c,e="translate("+(M=Math.round(M))+"px, "+(O=Math.round(O))+"px)"}return r.createElement(d.Z,y({ref:w,style:y({left:0,top:0,transform:e},!b&&g)},k),r.createElement(p,{value:{isFlippedVertically:!T,isFlippedHorizontally:!S}},n))}g.propTypes={nodeRef:s().oneOfType([s().string,s().func,s().object])};var v=function(t){var e,n;return n=e=function(e){var n,i;function s(t){var n;return l(u(n=e.call(this,t)||this),"node",void 0),l(u(n),"nodeRef",void 0),n.state={rect:void 0,parentRect:void 0},n.nodeRef=r.createRef(),n.getRects=n.getRects.bind(u(n)),n}i=e,(n=s).prototype=Object.create(i.prototype),n.prototype.constructor=n,c(n,i);var d=s.prototype;return d.componentDidMount=function(){var t,e=this;this.node=null!=(t=this.nodeRef)&&t.current?this.nodeRef.current:o.findDOMNode(this),this.setState((function(){return e.getRects()}))},d.getRects=function(){if(!this.node)return this.state;var t=this.node,e=t.parentNode;return{rect:t.getBoundingClientRect?t.getBoundingClientRect():h,parentRect:null!=e&&e.getBoundingClientRect?e.getBoundingClientRect():h}},d.render=function(){return r.createElement(t,a({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},s}(r.PureComponent),l(e,"displayName","withBoundingRects("+(t.displayName||"")+")"),n}(g)},13946:function(t,e,n){n.d(e,{t:function(){return i}});var i=Array.prototype.slice},29491:function(t,e,n){n.r(e),n.d(e,{arc:function(){return T},area:function(){return M.Z},areaRadial:function(){return q},curveBasis:function(){return yt.ZP},curveBasisClosed:function(){return vt},curveBasisOpen:function(){return xt},curveBundle:function(){return wt},curveCardinal:function(){return Tt},curveCardinalClosed:function(){return Ot},curveCardinalOpen:function(){return Rt},curveCatmullRom:function(){return Ct},curveCatmullRomClosed:function(){return Zt},curveCatmullRomOpen:function(){return Nt},curveLinear:function(){return P.Z},curveLinearClosed:function(){return Vt},curveMonotoneX:function(){return Bt},curveMonotoneY:function(){return Qt},curveNatural:function(){return Gt},curveStep:function(){return Yt},curveStepAfter:function(){return te},curveStepBefore:function(){return Jt},line:function(){return O.Z},lineRadial:function(){return N},linkHorizontal:function(){return Q},linkRadial:function(){return X},linkVertical:function(){return H},pie:function(){return E},pointRadial:function(){return V},radialArea:function(){return q},radialLine:function(){return N},stack:function(){return ee.Z},stackOffsetDiverging:function(){return ie.Z},stackOffsetExpand:function(){return ne.Z},stackOffsetNone:function(){return se.Z},stackOffsetSilhouette:function(){return re.Z},stackOffsetWiggle:function(){return oe.Z},stackOrderAppearance:function(){return ae.Z},stackOrderAscending:function(){return ue.Z},stackOrderDescending:function(){return ce.Z},stackOrderInsideOut:function(){return le.Z},stackOrderNone:function(){return he.Z},stackOrderReverse:function(){return de.Z},symbol:function(){return pt},symbolCircle:function(){return G},symbolCross:function(){return K},symbolDiamond:function(){return tt},symbolSquare:function(){return rt},symbolStar:function(){return st},symbolTriangle:function(){return at},symbolWye:function(){return dt},symbols:function(){return ft}});var i=n(35681),s=n(90875),r=Math.abs,o=Math.atan2,a=Math.cos,u=Math.max,c=Math.min,l=Math.sin,h=Math.sqrt,d=1e-12,f=Math.PI,p=f/2,_=2*f;function y(t){return t>1?0:t<-1?f:Math.acos(t)}function g(t){return t>=1?p:t<=-1?-p:Math.asin(t)}function v(t){return t.innerRadius}function m(t){return t.outerRadius}function x(t){return t.startAngle}function b(t){return t.endAngle}function w(t){return t&&t.padAngle}function k(t,e,n,i,s,r,o,a){var u=n-t,c=i-e,l=o-s,h=a-r,f=h*u-l*c;if(!(f*f<d))return[t+(f=(l*(e-r)-h*(t-s))/f)*u,e+f*c]}function S(t,e,n,i,s,r,o){var a=t-n,c=e-i,l=(o?r:-r)/h(a*a+c*c),d=l*c,f=-l*a,p=t+d,_=e+f,y=n+d,g=i+f,v=(p+y)/2,m=(_+g)/2,x=y-p,b=g-_,w=x*x+b*b,k=s-r,S=p*g-y*_,T=(b<0?-1:1)*h(u(0,k*k*w-S*S)),M=(S*b-x*T)/w,O=(-S*x-b*T)/w,A=(S*b+x*T)/w,R=(-S*x+b*T)/w,E=M-v,P=O-m,C=A-v,I=R-m;return E*E+P*P>C*C+I*I&&(M=A,O=R),{cx:M,cy:O,x01:-d,y01:-f,x11:M*(s/k-1),y11:O*(s/k-1)}}function T(){var t=v,e=m,n=(0,s.Z)(0),u=null,T=x,M=b,O=w,A=null;function R(){var s,v,m=+t.apply(this,arguments),x=+e.apply(this,arguments),b=T.apply(this,arguments)-p,w=M.apply(this,arguments)-p,R=r(w-b),E=w>b;if(A||(A=s=(0,i.Z)()),x<m&&(v=x,x=m,m=v),x>d)if(R>_-d)A.moveTo(x*a(b),x*l(b)),A.arc(0,0,x,b,w,!E),m>d&&(A.moveTo(m*a(w),m*l(w)),A.arc(0,0,m,w,b,E));else{var P,C,I=b,Z=w,j=b,N=w,q=R,V=R,z=O.apply(this,arguments)/2,L=z>d&&(u?+u.apply(this,arguments):h(m*m+x*x)),U=c(r(x-m)/2,+n.apply(this,arguments)),$=U,F=U;if(L>d){var D=g(L/m*l(z)),W=g(L/x*l(z));(q-=2*D)>d?(j+=D*=E?1:-1,N-=D):(q=0,j=N=(b+w)/2),(V-=2*W)>d?(I+=W*=E?1:-1,Z-=W):(V=0,I=Z=(b+w)/2)}var B=x*a(I),Q=x*l(I),H=m*a(N),X=m*l(N);if(U>d){var G,K=x*a(Z),Y=x*l(Z),J=m*a(j),tt=m*l(j);if(R<f&&(G=k(B,Q,J,tt,K,Y,H,X))){var et=B-G[0],nt=Q-G[1],it=K-G[0],st=Y-G[1],rt=1/l(y((et*it+nt*st)/(h(et*et+nt*nt)*h(it*it+st*st)))/2),ot=h(G[0]*G[0]+G[1]*G[1]);$=c(U,(m-ot)/(rt-1)),F=c(U,(x-ot)/(rt+1))}}V>d?F>d?(P=S(J,tt,B,Q,x,F,E),C=S(K,Y,H,X,x,F,E),A.moveTo(P.cx+P.x01,P.cy+P.y01),F<U?A.arc(P.cx,P.cy,F,o(P.y01,P.x01),o(C.y01,C.x01),!E):(A.arc(P.cx,P.cy,F,o(P.y01,P.x01),o(P.y11,P.x11),!E),A.arc(0,0,x,o(P.cy+P.y11,P.cx+P.x11),o(C.cy+C.y11,C.cx+C.x11),!E),A.arc(C.cx,C.cy,F,o(C.y11,C.x11),o(C.y01,C.x01),!E))):(A.moveTo(B,Q),A.arc(0,0,x,I,Z,!E)):A.moveTo(B,Q),m>d&&q>d?$>d?(P=S(H,X,K,Y,m,-$,E),C=S(B,Q,J,tt,m,-$,E),A.lineTo(P.cx+P.x01,P.cy+P.y01),$<U?A.arc(P.cx,P.cy,$,o(P.y01,P.x01),o(C.y01,C.x01),!E):(A.arc(P.cx,P.cy,$,o(P.y01,P.x01),o(P.y11,P.x11),!E),A.arc(0,0,m,o(P.cy+P.y11,P.cx+P.x11),o(C.cy+C.y11,C.cx+C.x11),E),A.arc(C.cx,C.cy,$,o(C.y11,C.x11),o(C.y01,C.x01),!E))):A.arc(0,0,m,N,j,E):A.lineTo(H,X)}else A.moveTo(0,0);if(A.closePath(),s)return A=null,s+""||null}return R.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+T.apply(this,arguments)+ +M.apply(this,arguments))/2-f/2;return[a(i)*n,l(i)*n]},R.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:(0,s.Z)(+e),R):t},R.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:(0,s.Z)(+t),R):e},R.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:(0,s.Z)(+t),R):n},R.padRadius=function(t){return arguments.length?(u=null==t?null:"function"===typeof t?t:(0,s.Z)(+t),R):u},R.startAngle=function(t){return arguments.length?(T="function"===typeof t?t:(0,s.Z)(+t),R):T},R.endAngle=function(t){return arguments.length?(M="function"===typeof t?t:(0,s.Z)(+t),R):M},R.padAngle=function(t){return arguments.length?(O="function"===typeof t?t:(0,s.Z)(+t),R):O},R.context=function(t){return arguments.length?(A=null==t?null:t,R):A},R}var M=n(48167),O=n(92201);function A(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function R(t){return t}function E(){var t=R,e=A,n=null,i=(0,s.Z)(0),r=(0,s.Z)(_),o=(0,s.Z)(0);function a(s){var a,u,c,l,h,d=s.length,f=0,p=new Array(d),y=new Array(d),g=+i.apply(this,arguments),v=Math.min(_,Math.max(-_,r.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/d,o.apply(this,arguments)),x=m*(v<0?-1:1);for(a=0;a<d;++a)(h=y[p[a]=a]=+t(s[a],a,s))>0&&(f+=h);for(null!=e?p.sort((function(t,n){return e(y[t],y[n])})):null!=n&&p.sort((function(t,e){return n(s[t],s[e])})),a=0,c=f?(v-d*x)/f:0;a<d;++a,g=l)u=p[a],l=g+((h=y[u])>0?h*c:0)+x,y[u]={data:s[u],index:a,value:h,startAngle:g,endAngle:l,padAngle:m};return y}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:(0,s.Z)(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:(0,s.Z)(+t),a):i},a.endAngle=function(t){return arguments.length?(r="function"===typeof t?t:(0,s.Z)(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:(0,s.Z)(+t),a):o},a}var P=n(23622),C=Z(P.Z);function I(t){this._curve=t}function Z(t){function e(e){return new I(t(e))}return e._curve=t,e}function j(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Z(t)):e()._curve},t}function N(){return j((0,O.Z)().curve(C))}function q(){var t=(0,M.Z)().curve(C),e=t.curve,n=t.lineX0,i=t.lineX1,s=t.lineY0,r=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return j(n())},delete t.lineX0,t.lineEndAngle=function(){return j(i())},delete t.lineX1,t.lineInnerRadius=function(){return j(s())},delete t.lineY0,t.lineOuterRadius=function(){return j(r())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Z(t)):e()._curve},t}function V(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var z=n(13946),L=n(98930);function U(t){return t.source}function $(t){return t.target}function F(t){var e=U,n=$,r=L.x,o=L.y,a=null;function u(){var s,u=z.t.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(a||(a=s=(0,i.Z)()),t(a,+r.apply(this,(u[0]=c,u)),+o.apply(this,u),+r.apply(this,(u[0]=l,u)),+o.apply(this,u)),s)return a=null,s+""||null}return u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.x=function(t){return arguments.length?(r="function"===typeof t?t:(0,s.Z)(+t),u):r},u.y=function(t){return arguments.length?(o="function"===typeof t?t:(0,s.Z)(+t),u):o},u.context=function(t){return arguments.length?(a=null==t?null:t,u):a},u}function D(t,e,n,i,s){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,s,i,s)}function W(t,e,n,i,s){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+s)/2,i,n,i,s)}function B(t,e,n,i,s){var r=V(e,n),o=V(e,n=(n+s)/2),a=V(i,n),u=V(i,s);t.moveTo(r[0],r[1]),t.bezierCurveTo(o[0],o[1],a[0],a[1],u[0],u[1])}function Q(){return F(D)}function H(){return F(W)}function X(){var t=F(B);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var G={draw:function(t,e){var n=Math.sqrt(e/f);t.moveTo(n,0),t.arc(0,0,n,0,_)}},K={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Y=Math.sqrt(1/3),J=2*Y,tt={draw:function(t,e){var n=Math.sqrt(e/J),i=n*Y;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},et=Math.sin(f/10)/Math.sin(7*f/10),nt=Math.sin(_/10)*et,it=-Math.cos(_/10)*et,st={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=nt*n,s=it*n;t.moveTo(0,-n),t.lineTo(i,s);for(var r=1;r<5;++r){var o=_*r/5,a=Math.cos(o),u=Math.sin(o);t.lineTo(u*n,-a*n),t.lineTo(a*i-u*s,u*i+a*s)}t.closePath()}},rt={draw:function(t,e){var n=Math.sqrt(e),i=-n/2;t.rect(i,i,n,n)}},ot=Math.sqrt(3),at={draw:function(t,e){var n=-Math.sqrt(e/(3*ot));t.moveTo(0,2*n),t.lineTo(-ot*n,-n),t.lineTo(ot*n,-n),t.closePath()}},ut=-.5,ct=Math.sqrt(3)/2,lt=1/Math.sqrt(12),ht=3*(lt/2+1),dt={draw:function(t,e){var n=Math.sqrt(e/ht),i=n/2,s=n*lt,r=i,o=n*lt+n,a=-r,u=o;t.moveTo(i,s),t.lineTo(r,o),t.lineTo(a,u),t.lineTo(ut*i-ct*s,ct*i+ut*s),t.lineTo(ut*r-ct*o,ct*r+ut*o),t.lineTo(ut*a-ct*u,ct*a+ut*u),t.lineTo(ut*i+ct*s,ut*s-ct*i),t.lineTo(ut*r+ct*o,ut*o-ct*r),t.lineTo(ut*a+ct*u,ut*u-ct*a),t.closePath()}},ft=[G,K,tt,rt,st,at,dt];function pt(){var t=(0,s.Z)(G),e=(0,s.Z)(64),n=null;function r(){var s;if(n||(n=s=(0,i.Z)()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),s)return n=null,s+""||null}return r.type=function(e){return arguments.length?(t="function"===typeof e?e:(0,s.Z)(e),r):t},r.size=function(t){return arguments.length?(e="function"===typeof t?t:(0,s.Z)(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function _t(){}var yt=n(97745);function gt(t){this._context=t}function vt(t){return new gt(t)}function mt(t){this._context=t}function xt(t){return new mt(t)}function bt(t,e){this._basis=new yt.fE(t),this._beta=e}gt.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:(0,yt.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:(0,yt.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},bt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,s=t[0],r=e[0],o=t[n]-s,a=e[n]-r,u=-1;++u<=n;)i=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(s+i*o),this._beta*e[u]+(1-this._beta)*(r+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var wt=function t(e){function n(t){return 1===e?new yt.fE(t):new bt(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function kt(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function St(t,e){this._context=t,this._k=(1-e)/6}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:kt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:kt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Tt=function t(e){function n(t){return new St(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Mt(t,e){this._context=t,this._k=(1-e)/6}Mt.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:kt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ot=function t(e){function n(t){return new Mt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function At(t,e){this._context=t,this._k=(1-e)/6}At.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:kt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rt=function t(e){function n(t){return new At(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Et(t,e,n){var i=t._x1,s=t._y1,r=t._x2,o=t._y2;if(t._l01_a>d){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,s=(s*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>d){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);r=(r*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(i,s,r,o,t._x2,t._y2)}function Pt(t,e){this._context=t,this._alpha=e}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Et(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ct=function t(e){function n(t){return e?new Pt(t,e):new St(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function It(t,e){this._context=t,this._alpha=e}It.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Et(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zt=function t(e){function n(t){return e?new It(t,e):new Mt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function jt(t,e){this._context=t,this._alpha=e}jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Et(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return e?new jt(t,e):new At(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function qt(t){this._context=t}function Vt(t){return new qt(t)}function zt(t){return t<0?-1:1}function Lt(t,e,n){var i=t._x1-t._x0,s=e-t._x1,r=(t._y1-t._y0)/(i||s<0&&-0),o=(n-t._y1)/(s||i<0&&-0),a=(r*s+o*i)/(i+s);return(zt(r)+zt(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(a))||0}function Ut(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function $t(t,e,n){var i=t._x0,s=t._y0,r=t._x1,o=t._y1,a=(r-i)/3;t._context.bezierCurveTo(i+a,s+a*e,r-a,o-a*n,r,o)}function Ft(t){this._context=t}function Dt(t){this._context=new Wt(t)}function Wt(t){this._context=t}function Bt(t){return new Ft(t)}function Qt(t){return new Dt(t)}function Ht(t){this._context=t}function Xt(t){var e,n,i=t.length-1,s=new Array(i),r=new Array(i),o=new Array(i);for(s[0]=0,r[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)s[e]=1,r[e]=4,o[e]=4*t[e]+2*t[e+1];for(s[i-1]=2,r[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=s[e]/r[e-1],r[e]-=n,o[e]-=n*o[e-1];for(s[i-1]=o[i-1]/r[i-1],e=i-2;e>=0;--e)s[e]=(o[e]-s[e+1])/r[e];for(r[i-1]=(t[i]+s[i-1])/2,e=0;e<i-1;++e)r[e]=2*t[e+1]-s[e+1];return[s,r]}function Gt(t){return new Ht(t)}function Kt(t,e){this._context=t,this._t=e}function Yt(t){return new Kt(t,.5)}function Jt(t){return new Kt(t,0)}function te(t){return new Kt(t,1)}qt.prototype={areaStart:_t,areaEnd:_t,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$t(this,this._t0,Ut(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,$t(this,Ut(this,n=Lt(this,t,e)),n);break;default:$t(this,this._t0,n=Lt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Dt.prototype=Object.create(Ft.prototype)).point=function(t,e){Ft.prototype.point.call(this,e,t)},Wt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,s,r){this._context.bezierCurveTo(e,t,i,n,r,s)}},Ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=Xt(t),s=Xt(e),r=0,o=1;o<n;++r,++o)this._context.bezierCurveTo(i[0][r],s[0][r],i[1][r],s[1][r],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var ee=n(75823),ne=n(12759),ie=n(27500),se=n(82610),re=n(34812),oe=n(77944),ae=n(34128),ue=n(39586),ce=n(25516),le=n(54164),he=n(8512),de=n(2010)},27500:function(t,e,n){function i(t,e){if((a=t.length)>0)for(var n,i,s,r,o,a,u=0,c=t[e[0]].length;u<c;++u)for(r=o=0,n=0;n<a;++n)(s=(i=t[e[n]][u])[1]-i[0])>0?(i[0]=r,i[1]=r+=s):s<0?(i[1]=o,i[0]=o+=s):(i[0]=0,i[1]=s)}n.d(e,{Z:function(){return i}})},12759:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(82610);function s(t,e){if((s=t.length)>0){for(var n,s,r,o=0,a=t[0].length;o<a;++o){for(r=n=0;n<s;++n)r+=t[n][o][1]||0;if(r)for(n=0;n<s;++n)t[n][o][1]/=r}(0,i.Z)(t,e)}}},82610:function(t,e,n){function i(t,e){if((s=t.length)>1)for(var n,i,s,r=1,o=t[e[0]],a=o.length;r<s;++r)for(i=o,o=t[e[r]],n=0;n<a;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}n.d(e,{Z:function(){return i}})},34812:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(82610);function s(t,e){if((n=t.length)>0){for(var n,s=0,r=t[e[0]],o=r.length;s<o;++s){for(var a=0,u=0;a<n;++a)u+=t[a][s][1]||0;r[s][1]+=r[s][0]=-u/2}(0,i.Z)(t,e)}}},77944:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(82610);function s(t,e){if((r=t.length)>0&&(s=(n=t[e[0]]).length)>0){for(var n,s,r,o=0,a=1;a<s;++a){for(var u=0,c=0,l=0;u<r;++u){for(var h=t[e[u]],d=h[a][1]||0,f=(d-(h[a-1][1]||0))/2,p=0;p<u;++p){var _=t[e[p]];f+=(_[a][1]||0)-(_[a-1][1]||0)}c+=d,l+=f*d}n[a-1][1]+=n[a-1][0]=o,c&&(o-=l/c)}n[a-1][1]+=n[a-1][0]=o,(0,i.Z)(t,e)}}},34128:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(8512);function s(t){var e=t.map(r);return(0,i.Z)(t).sort((function(t,n){return e[t]-e[n]}))}function r(t){for(var e,n=-1,i=0,s=t.length,r=-1/0;++n<s;)(e=+t[n][1])>r&&(r=e,i=n);return i}},39586:function(t,e,n){n.d(e,{S:function(){return r},Z:function(){return s}});var i=n(8512);function s(t){var e=t.map(r);return(0,i.Z)(t).sort((function(t,n){return e[t]-e[n]}))}function r(t){for(var e,n=0,i=-1,s=t.length;++i<s;)(e=+t[i][1])&&(n+=e);return n}},25516:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(39586);function s(t){return(0,i.Z)(t).reverse()}},54164:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(34128),s=n(39586);function r(t){var e,n,r=t.length,o=t.map(s.S),a=(0,i.Z)(t),u=0,c=0,l=[],h=[];for(e=0;e<r;++e)n=a[e],u<c?(u+=o[n],l.push(n)):(c+=o[n],h.push(n));return h.reverse().concat(l)}},8512:function(t,e,n){function i(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}n.d(e,{Z:function(){return i}})},2010:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(8512);function s(t){return(0,i.Z)(t).reverse()}},75823:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(13946),s=n(90875),r=n(82610),o=n(8512);function a(t,e){return t[e]}function u(){var t=(0,s.Z)([]),e=o.Z,n=r.Z,u=a;function c(i){var s,r,o=t.apply(this,arguments),a=i.length,c=o.length,l=new Array(c);for(s=0;s<c;++s){for(var h,d=o[s],f=l[s]=new Array(a),p=0;p<a;++p)f[p]=h=[0,+u(i[p],d,p,i)],h.data=i[p];f.key=d}for(s=0,r=e(l);s<c;++s)l[r[s]].index=s;return n(l,r),l}return c.keys=function(e){return arguments.length?(t="function"===typeof e?e:(0,s.Z)(i.t.call(e)),c):t},c.value=function(t){return arguments.length?(u="function"===typeof t?t:(0,s.Z)(+t),c):u},c.order=function(t){return arguments.length?(e=null==t?o.Z:"function"===typeof t?t:(0,s.Z)(i.t.call(t)),c):e},c.offset=function(t){return arguments.length?(n=null==t?r.Z:t,c):n},c}},11684:function(t,e,n){n.d(e,{animated:function(){return i.animated}});var i=n(84877);n.o(i,"to")&&n.d(e,{to:function(){return i.to}}),n.o(i,"useTransition")&&n.d(e,{useTransition:function(){return i.useTransition}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7779],{58146:function(e,n,t){var i=t(21831),r=t(75582),s=t(82394),l=t(21764),o=t(82684),c=t(69864),d=t(34376),u=t(71180),a=t(70652),E=t(15338),f=t(97618),Z=t(55485),h=t(85854),x=t(65956),j=t(36288),m=t(44085),_=t(28274),I=t(38276),p=t(75499),A=t(30160),v=t(35576),L=t(17488),S=t(69650),D=t(35686),g=t(8193),P=t(72473),T=t(70515),b=t(24755),O=t(48277),R=t(81728),C=t(3917),y=t(76417),N=t(86735),B=t(42122),k=t(72619),w=t(95924),W=t(28598);function U(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?U(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H,Y=2*T.iI;!function(e){e.ROLES="Roles",e.USERS="Users"}(H||(H={})),n.Z=function(e){var n,t=e.contained,s=e.onCancel,U=e.slug,Q=(0,d.useRouter)(),V=(0,o.useState)(!0),F=V[0],K=V[1],G=(0,o.useState)(null),q=G[0],z=G[1],$=(0,o.useState)({}),J=$[0],X=$[1],ee=(0,o.useState)(null),ne=ee[0],te=ee[1],ie=(0,o.useCallback)((function(e,n,t){te(M(M({},e),{},{rolesMapping:(0,N.HK)(n||[],(function(e){return e.id})),usersMapping:(0,N.HK)(t||[],(function(e){return e.id}))}))}),[te]),re=(0,o.useCallback)((function(e){X((function(n){return M(M({},n),e)})),te((function(n){return M(M({},n),e)}))}),[X,te]),se=D.ZP.permissions.detail(U,{},{revalidateOnFocus:!1}).data,le=(0,o.useMemo)((function(){return null===se||void 0===se?void 0:se.permission}),[se]);(0,o.useEffect)((function(){le&&ie(le,null===le||void 0===le?void 0:le.roles,null===le||void 0===le?void 0:le.users)}),[ie,le]);var oe=D.ZP.permissions.list({_format:"with_only_entity_options",only_entity_options:!0},{},{pauseFetch:!!le}).data,ce=(0,o.useMemo)((function(){var e;return null===oe||void 0===oe||null===(e=oe.permissions)||void 0===e?void 0:e[0]}),[oe]),de=(0,o.useMemo)((function(){var e;return(null===(e=le||ce)||void 0===e?void 0:e.entity_names)||[]}),[le,ce]),ue=(0,o.useMemo)((function(){var e;return(null===(e=le||ce)||void 0===e?void 0:e.entity_types)||[]}),[le,ce]),ae=(0,c.Db)(le?D.ZP.permissions.useUpdate(null===le||void 0===le?void 0:le.id):D.ZP.permissions.useCreate(),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(e){var n=e.permission;X({}),ie(n,null===n||void 0===n?void 0:n.roles,null===n||void 0===n?void 0:n.users),le||Q.push("/settings/workspace/permissions/".concat(null===n||void 0===n?void 0:n.id)),l.Am.success(le?"Permission successfully updated.":"New permission created successfully.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-mutate-success-".concat(n.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.exception,r=n.message,s=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||i||r,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:s})}})}}),Ee=(0,r.Z)(ae,2),fe=Ee[0],Ze=Ee[1].isLoading,he=(0,c.Db)(D.ZP.permissions.useDelete(null===le||void 0===le?void 0:le.id),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){Q.push("/settings/workspace/permissions"),l.Am.success("Permission successfully delete.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-delete-success-".concat(null===le||void 0===le?void 0:le.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.exception,r=n.message,s=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||i||r,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:s})}})}}),xe=(0,r.Z)(he,2),je=xe[0],me=xe[1].isLoading,_e=(0,o.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.access)||0}),[ne]),Ie=(0,o.useCallback)((function(e){return e.map((function(e,n){var t=j.K4[e],i=Boolean(_e&Number(e)),r=(0,O.fD)(_e),s=(0,O.fD)(e);return(0,W.jsx)(I.Z,{mt:n>=1?1:0,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(S.Z,{checked:i,compact:!0,onCheck:function(e){return re({access:(0,O.$P)(e(i)?(0,O.vN)(r,s):(0,O.VJ)(r,s))})}}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(A.ZP,{default:!i,children:t})]})},t)}))}),[_e,re]),pe=(0,o.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.conditions)||[]}),[ne]),Ae=(0,o.useMemo)((function(){var e=j.WG.DISABLE_UNLESS_CONDITIONS,n=(0,O.fD)(_e),t=(0,O.fD)(e),r=Boolean(_e&Number(e)),s=new Set((0,i.Z)(pe)),l=s.has(j.m_.HAS_NOTEBOOK_EDIT_ACCESS),o=s.has(j.m_.HAS_PIPELINE_EDIT_ACCESS),c=s.has(j.m_.USER_OWNS_ENTITY),d=r&&l,u=r&&o,a=r&&c;return(0,W.jsxs)(Z.ZP,{flexDirection:"column",children:[(0,W.jsx)(I.Z,{mt:1,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(S.Z,{checked:d,compact:!0,onCheck:function(e){var l=n;e(d)?(r||(l=(0,O.vN)(n,t)),s.add(j.m_.HAS_NOTEBOOK_EDIT_ACCESS)):(o||c||(l=(0,O.VJ)(n,t)),s.delete(j.m_.HAS_NOTEBOOK_EDIT_ACCESS)),re({access:(0,O.$P)(l),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(A.ZP,{default:!d,children:j.ND[j.m_.HAS_NOTEBOOK_EDIT_ACCESS]})]})}),(0,W.jsx)(I.Z,{mt:1,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(S.Z,{checked:u,compact:!0,onCheck:function(e){var o=n;e(u)?(r||(o=(0,O.vN)(n,t)),s.add(j.m_.HAS_PIPELINE_EDIT_ACCESS)):(l||c||(o=(0,O.VJ)(n,t)),s.delete(j.m_.HAS_PIPELINE_EDIT_ACCESS)),re({access:(0,O.$P)(o),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(A.ZP,{default:!u,children:j.ND[j.m_.HAS_PIPELINE_EDIT_ACCESS]})]})}),(0,W.jsx)(I.Z,{mt:1,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(S.Z,{checked:a,compact:!0,onCheck:function(e){var o=n;e(a)?(r||(o=(0,O.vN)(n,t)),s.add(j.m_.USER_OWNS_ENTITY)):(l||l||(o=(0,O.VJ)(n,t)),s.delete(j.m_.USER_OWNS_ENTITY)),re({access:(0,O.$P)(o),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(A.ZP,{default:!a,children:j.ND[j.m_.USER_OWNS_ENTITY]})]})})]})}),[_e,pe,re]),ve=D.ZP.roles.list({},{},{pauseFetch:!le}).data,Le=(0,o.useMemo)((function(){return(0,N.YC)((null===ve||void 0===ve?void 0:ve.roles)||[],"name")}),[ve]),Se=(0,o.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.rolesMapping)||{}}),[ne]),De=(0,o.useMemo)((function(){return(0,N.YC)(Object.values(Se),"name")}),[Se]),ge=D.ZP.users.list({},{},{pauseFetch:!le}).data,Pe=((0,o.useMemo)((function(){return(0,N.YC)((null===ge||void 0===ge?void 0:ge.users)||[],(function(e){return(0,y.s)(e)}))}),[ge]),(0,o.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.usersMapping)||{}}),[ne])),Te=(0,o.useMemo)((function(){return(0,N.YC)(Object.values(Pe),(function(e){return(0,y.s)(e)}))}),[Pe]),be=(0,o.useMemo)((function(){return(null===De||void 0===De?void 0:De.length)>=1}),[De]),Oe=(0,o.useMemo)((function(){return(0,W.jsx)(u.ZP,{beforeIcon:(0,W.jsx)(P.Add,{}),compact:!0,onClick:function(){z(H.ROLES),K(!1)},primary:!be,secondary:be,small:!0,children:"Add roles"})}),[be,z,K]),Re=(0,o.useMemo)((function(){return(null===Te||void 0===Te?void 0:Te.length)>=1}),[Te]),Ce=(0,o.useCallback)((function(e,n){return(0,W.jsx)(p.Z,{columnFlex:[null,1],columns:[{label:function(){var n=null===e||void 0===e?void 0:e.every((function(e){var n=e.id;return null===Se||void 0===Se?void 0:Se[n]}));return(0,W.jsx)(a.Z,{checked:n,onClick:function(t){(0,w.j)(t),re(n?{rolesMapping:{}}:{rolesMapping:(0,N.HK)(e,(function(e){return e.id}))})}},"checkbox")},uuid:"actions"},{uuid:"Role"}],onClickRow:n?function(n){var t=e[n];t&&window.open("/settings/workspace/roles/".concat(null===t||void 0===t?void 0:t.id),"_blank").focus()}:null,rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.name,t=e.id,i=!(null===Se||void 0===Se||!Se[t]);return[(0,W.jsx)(a.Z,{checked:i,onClick:function(n){(0,w.j)(n);var r=M({},Se);i?null===r||void 0===r||delete r[t]:r[t]=e,re({rolesMapping:r})}},"checkbox"),(0,W.jsx)(A.ZP,{monospace:!0,children:n},"name")]})),uuid:"roles"})}),[Se,re]),ye=(0,o.useCallback)((function(e,n){return(0,W.jsx)(p.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"}],onClickRow:n?function(n){var t=e[n];t&&window.open("/settings/workspace/users/".concat(null===t||void 0===t?void 0:t.id),"_blank").focus()}:null,rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.first_name,t=e.last_name,i=e.username;return[(0,W.jsx)(A.ZP,{children:i},"username"),(0,W.jsx)(A.ZP,{default:!0,children:n},"firstName"),(0,W.jsx)(A.ZP,{default:!0,children:t},"lastName")]})),uuid:"users"})}),[Pe,re]),Ne=(0,o.useMemo)((function(){return Ce(Le)}),[Ce,Le]),Be=(0,o.useMemo)((function(){return Ce(De,!0)}),[Ce,De]),ke=(0,o.useMemo)((function(){return ye(Te,!0)}),[ye,Te]),we=(0,W.jsxs)(g.N,{children:[(0,W.jsxs)(x.Z,{noPadding:!0,children:[(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsx)(h.Z,{level:4,children:le?"Permission ".concat(null===le||void 0===le?void 0:le.id):"New permission"})}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsxs)(A.ZP,{danger:"entity_name"in J&&!(null!==ne&&void 0!==ne&&ne.entity_name),default:!0,large:!0,children:["Entity ","entity_name"in J&&!(null!==ne&&void 0!==ne&&ne.entity_name)&&(0,W.jsx)(A.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,W.jsx)(m.Z,{afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,onChange:function(e){return re({entity_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity",value:(null===ne||void 0===ne?void 0:ne.entity_name)||"",children:de.map((function(e){return(0,W.jsx)("option",{value:e,children:(0,R.j3)(e)},e)}))})})]})}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Entity subtype"}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,W.jsxs)(m.Z,{afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return re({entity_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity subtype",value:(null===ne||void 0===ne?void 0:ne.entity_type)||"",children:[(0,W.jsx)("option",{value:""}),ue.map((function(e){return(0,W.jsx)("option",{value:e,children:e},e)}))]})})]})}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Enity UUID"}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsx)(L.Z,{afterIcon:(0,W.jsx)(P.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return re({entity_id:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. pipeline_uuid",value:(null===ne||void 0===ne?void 0:ne.entity_id)||""})})]})})]}),(0,W.jsx)(I.Z,{mb:T.HN}),(0,W.jsxs)(x.Z,{noPadding:!0,children:[(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsx)(h.Z,{level:4,children:"Access"})}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Groups"})}),Ie(j.G9)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Special conditions"})}),Ae]})})]}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Operations"})}),Ie(j.Pt)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Disable operations"})}),Ie(j.oO)]})})]}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsxs)(Z.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Read attributes"})}),Ie(j.Fy)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{fullWidth:!0,p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Readable attributes (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({read_attributes:e.target.value})},placeholder:"e.g. email",value:(null===ne||void 0===ne?void 0:ne.read_attributes)||""})]})})]}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsxs)(Z.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Write attributes"})}),Ie(j.H1)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{fullWidth:!0,p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Writable attributes (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({write_attributes:e.target.value})},placeholder:"e.g. password",value:(null===ne||void 0===ne?void 0:ne.write_attributes)||""})]})})]}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsxs)(Z.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Query parameters"})}),Ie(j.hl)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(I.Z,{fullWidth:!0,p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Parameters that can be queried (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({query_attributes:e.target.value})},placeholder:"e.g. include_outputs",value:(null===ne||void 0===ne?void 0:ne.query_attributes)||""})]})})]})]}),(0,W.jsx)(I.Z,{mb:T.HN}),le&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(x.Z,{noPadding:!0,children:[(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(h.Z,{level:4,children:"Roles"}),(0,W.jsx)(I.Z,{mr:T.cd}),be&&(0,W.jsx)(Z.ZP,{alignItems:"center",children:Oe})]})}),(0,W.jsx)(E.Z,{light:!0}),!be&&(0,W.jsxs)(I.Z,{p:T.cd,children:[(0,W.jsx)(I.Z,{mb:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,children:"This permission is currently not attached to any role."})}),(0,W.jsx)(Z.ZP,{alignItems:"center",children:Oe})]}),be&&(0,W.jsx)(I.Z,{pb:T.Mq,children:Be})]}),(0,W.jsx)(I.Z,{mb:T.HN}),(0,W.jsxs)(x.Z,{noPadding:!0,children:[(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsx)(Z.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,W.jsx)(h.Z,{level:4,children:"Users"})})}),(0,W.jsx)(E.Z,{light:!0}),!Re&&(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsx)(A.ZP,{default:!0,children:"There are currently no users with this permission."})}),Re&&(0,W.jsx)(I.Z,{pb:T.Mq,children:ke})]}),(0,W.jsx)(I.Z,{mb:T.HN}),(0,W.jsxs)(x.Z,{noPadding:!0,children:[(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsx)(h.Z,{level:4,children:"Metadata"})}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Last updated"}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(A.ZP,{large:!0,monospace:!0,muted:!0,children:(null===ne||void 0===ne?void 0:ne.updated_at)&&(0,C.d$)(null===ne||void 0===ne?void 0:ne.updated_at,{includeSeconds:!0})}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(P.Schedule,{muted:!0,size:Y}),(0,W.jsx)(I.Z,{mr:1})]})]})}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Created at"}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(A.ZP,{large:!0,monospace:!0,muted:!0,children:(null===ne||void 0===ne?void 0:ne.created_at)&&(0,C.d$)(null===ne||void 0===ne?void 0:ne.created_at,{includeSeconds:!0})}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(P.Schedule,{muted:!0,size:Y}),(0,W.jsx)(I.Z,{mr:1})]})]})}),(0,W.jsx)(E.Z,{light:!0}),(0,W.jsx)(I.Z,{p:T.cd,children:(0,W.jsxs)(Z.ZP,{alignItems:"center",children:[(0,W.jsx)(A.ZP,{default:!0,large:!0,children:"Created by"}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(A.ZP,{large:!0,monospace:!0,muted:!0,children:(0,y.s)(null===le||void 0===le?void 0:le.user)}),(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(P.Schedule,{muted:!0,size:Y}),(0,W.jsx)(I.Z,{mr:1})]})]})})]}),(0,W.jsx)(I.Z,{mb:T.HN})]}),(0,W.jsxs)(Z.ZP,{children:[(0,W.jsx)(u.ZP,{beforeIcon:(0,W.jsx)(P.Save,{}),disabled:!J||!(null!==(n=Object.keys(J))&&void 0!==n&&n.length),loading:Ze,onClick:function(){return fe({permission:M(M({},(0,B.GL)(ne,["access","conditions","entity_id","entity_name","entity_type","query_attributes","read_attributes","write_attributes"],{include_blanks:!0})),le?{role_ids:Object.keys((null===ne||void 0===ne?void 0:ne.rolesMapping)||{}).map((function(e){return Number(e)}))}:{})})},primary:!0,children:le?"Save changes":"Create new permission"}),s&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(u.ZP,{onClick:function(){return null===s||void 0===s?void 0:s()},secondary:!0,children:"Cancel and go back"})]}),le&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(I.Z,{mr:T.cd}),(0,W.jsx)(u.ZP,{beforeIcon:(0,W.jsx)(P.Trash,{}),danger:!0,loading:me,onClick:function(){return je()},children:"Delete permission"})]})]})]});return t?we:(0,W.jsx)(_.Z,{after:H.ROLES===q?Ne:null,afterHeader:(0,W.jsx)(I.Z,{px:T.cd,children:(0,W.jsx)(A.ZP,{bold:!0,children:q})}),afterHidden:F,afterWidth:60*T.iI,appendBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Permissions"},linkProps:{href:"/settings/workspace/permissions"}},{bold:!0,label:function(){return"Permission ".concat(null===le||void 0===le?void 0:le.id)}}],hideAfterCompletely:!0,setAfterHidden:K,title:null!==le&&void 0!==le&&le.id?"Permission ".concat(null===le||void 0===le?void 0:le.id):"New permission",uuidItemSelected:b.B2.PERMISSIONS,uuidWorkspaceSelected:b.Pl.USER_MANAGEMENT,children:le&&we})}},36288:function(e,n,t){t.d(n,{Fy:function(){return Z},G9:function(){return u},H1:function(){return h},K4:function(){return c},ND:function(){return d},Pt:function(){return a},WG:function(){return s},hl:function(){return f},m_:function(){return l},oO:function(){return E}});var i,r,s,l,o=t(82394);!function(e){e[e.OWNER=1]="OWNER",e[e.ADMIN=2]="ADMIN",e[e.EDITOR=4]="EDITOR",e[e.VIEWER=8]="VIEWER",e[e.LIST=16]="LIST",e[e.DETAIL=32]="DETAIL",e[e.CREATE=64]="CREATE",e[e.UPDATE=128]="UPDATE",e[e.DELETE=512]="DELETE",e[e.OPERATION_ALL=1024]="OPERATION_ALL",e[e.QUERY=2048]="QUERY",e[e.QUERY_ALL=4096]="QUERY_ALL",e[e.READ=8192]="READ",e[e.READ_ALL=16384]="READ_ALL",e[e.WRITE=32768]="WRITE",e[e.WRITE_ALL=65536]="WRITE_ALL",e[e.ALL=131072]="ALL",e[e.DISABLE_LIST=262144]="DISABLE_LIST",e[e.DISABLE_DETAIL=524288]="DISABLE_DETAIL",e[e.DISABLE_CREATE=1048576]="DISABLE_CREATE",e[e.DISABLE_UPDATE=2097152]="DISABLE_UPDATE",e[e.DISABLE_DELETE=4194304]="DISABLE_DELETE",e[e.DISABLE_OPERATION_ALL=8388608]="DISABLE_OPERATION_ALL",e[e.DISABLE_QUERY=16777216]="DISABLE_QUERY",e[e.DISABLE_QUERY_ALL=33554432]="DISABLE_QUERY_ALL",e[e.DISABLE_READ=67108864]="DISABLE_READ",e[e.DISABLE_READ_ALL=134217728]="DISABLE_READ_ALL",e[e.DISABLE_WRITE=268435456]="DISABLE_WRITE",e[e.DISABLE_WRITE_ALL=536870912]="DISABLE_WRITE_ALL",e[e.DISABLE_UNLESS_CONDITIONS=1073741824]="DISABLE_UNLESS_CONDITIONS"}(s||(s={})),function(e){e.HAS_NOTEBOOK_EDIT_ACCESS="HAS_NOTEBOOK_EDIT_ACCESS",e.HAS_PIPELINE_EDIT_ACCESS="HAS_PIPELINE_EDIT_ACCESS",e.USER_OWNS_ENTITY="USER_OWNS_ENTITY"}(l||(l={}));var c=(i={},(0,o.Z)(i,s.OWNER,"Owner"),(0,o.Z)(i,s.ADMIN,"Admin"),(0,o.Z)(i,s.EDITOR,"Editor"),(0,o.Z)(i,s.VIEWER,"Viewer"),(0,o.Z)(i,s.LIST,"List"),(0,o.Z)(i,s.DETAIL,"Detail"),(0,o.Z)(i,s.CREATE,"Create"),(0,o.Z)(i,s.UPDATE,"Update"),(0,o.Z)(i,s.DELETE,"Delete"),(0,o.Z)(i,s.OPERATION_ALL,"All operations"),(0,o.Z)(i,s.QUERY,"Query"),(0,o.Z)(i,s.QUERY_ALL,"Query all attributes"),(0,o.Z)(i,s.READ,"Read"),(0,o.Z)(i,s.READ_ALL,"Read all attributes"),(0,o.Z)(i,s.WRITE,"Write"),(0,o.Z)(i,s.WRITE_ALL,"Write all attributes"),(0,o.Z)(i,s.ALL,"All"),(0,o.Z)(i,s.DISABLE_LIST,"Disable list"),(0,o.Z)(i,s.DISABLE_DETAIL,"Disable detail"),(0,o.Z)(i,s.DISABLE_CREATE,"Disable create"),(0,o.Z)(i,s.DISABLE_UPDATE,"Disable update"),(0,o.Z)(i,s.DISABLE_DELETE,"Disable delete"),(0,o.Z)(i,s.DISABLE_OPERATION_ALL,"Disable all operations"),(0,o.Z)(i,s.DISABLE_QUERY,"Disable query"),(0,o.Z)(i,s.DISABLE_QUERY_ALL,"Disable all query parameters"),(0,o.Z)(i,s.DISABLE_READ,"Disable read"),(0,o.Z)(i,s.DISABLE_READ_ALL,"Disable all read attributes"),(0,o.Z)(i,s.DISABLE_WRITE,"Disable write"),(0,o.Z)(i,s.DISABLE_WRITE_ALL,"Disable all write attributes"),i),d=(r={},(0,o.Z)(r,l.HAS_NOTEBOOK_EDIT_ACCESS,"Disable unless user has notebook edit access"),(0,o.Z)(r,l.HAS_PIPELINE_EDIT_ACCESS,"Disable unless user has pipeline edit access"),(0,o.Z)(r,l.USER_OWNS_ENTITY,"Disable unless user owns the current entity"),r),u=[s.OWNER,s.ADMIN,s.EDITOR,s.VIEWER,s.ALL],a=[s.LIST,s.DETAIL,s.CREATE,s.UPDATE,s.DELETE,s.OPERATION_ALL],E=[s.DISABLE_LIST,s.DISABLE_DETAIL,s.DISABLE_CREATE,s.DISABLE_UPDATE,s.DISABLE_DELETE,s.DISABLE_OPERATION_ALL],f=[s.QUERY,s.QUERY_ALL,s.DISABLE_QUERY,s.DISABLE_QUERY_ALL],Z=[s.READ,s.READ_ALL,s.DISABLE_READ,s.DISABLE_READ_ALL],h=[s.WRITE,s.WRITE_ALL,s.DISABLE_WRITE,s.DISABLE_WRITE_ALL]},76417:function(e,n,t){function i(e){return null!==e&&void 0!==e&&e.first_name?[null===e||void 0===e?void 0:e.first_name,null===e||void 0===e?void 0:e.last_name].filter((function(e){return e})).join(" "):null===e||void 0===e?void 0:e.username}t.d(n,{s:function(){return i}})},48277:function(e,n,t){t.d(n,{$P:function(){return d},JI:function(){return s},VJ:function(){return c},fD:function(){return l},uf:function(){return r},vN:function(){return o}});var i=t(75582),r=function(e){var n=String(e).split("."),t=(0,i.Z)(n,2),r=t[0],s=t[1];return"".concat(r.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(s?".".concat(s):"")};function s(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}function l(e){return(e>>>0).toString(2)}function o(e,n){return String(BigInt(e)+BigInt(n))}function c(e,n){return String(BigInt(e)-BigInt(n))}function d(e){return parseInt(e,2)}},80022:function(e,n,t){function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return i}})},15544:function(e,n,t){function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.d(n,{Z:function(){return i}})},13692:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(61049);function r(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,i.Z)(e,n)}},93189:function(e,n,t){t.d(n,{Z:function(){return s}});var i=t(12539),r=t(80022);function s(e,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{27966:function(e,n,t){t.d(n,{Z:function(){return Q}});var i=t(82394),r=t(75582),l=t(12691),u=t.n(l),o=t(69864),c=t(82684),s=t(34376),a=t(71180),d=t(70652),p=t(50724),f=t(97618),h=t(55485),v=t(48670),m=t(44265),g=t(89515),b=t(38276),_=t(4190),x=t(75499),j=t(48381),O=t(30160),w=t(35686),y=t(44897),P=t(42631),Z=t(72473),C=t(81655),k=t(72191),E=t(39643),D=t(25976),I=t(70515),R=D.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*I.iI,P.TR,2*I.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||y.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||y.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),N=t(30229),L=t(31608),S=t(16488),V=t(86735),T=t(50178),F=t(72619),A=t(95924),U=t(69419),B=t(70320),M=t(3917),z=t(44688),H=t(28598);function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var G={monospace:!0,small:!0};function Y(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,l=e.onCancel,u=e.onSuccess,s=e.pipelineRun,d=e.setCancelingRunId,f=e.setErrors,v=e.setShowConfirmationId,g=e.showConfirmationId,x=(0,T.Ct)(),j=s||{},C=j.id,E=j.pipeline_schedule_id,D=j.pipeline_schedule_token,I=j.pipeline_schedule_type,L=j.status,S=i&&C===n&&m.VO.RUNNING===L,V=(0,U.iV)(),A=(0,c.useMemo)((function(){return(null!==V&&void 0!==V&&V.page?+V.page:0)>0}),[null===V||void 0===V?void 0:V.page]),B=(0,o.Db)(N.Xm.API===I&&D?w.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(E,D):w.ZP.pipeline_runs.pipeline_schedules.useCreate(E),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){u&&(null===u||void 0===u||u())},onErrorCallback:function(e,n){return null===f||void 0===f?void 0:f({errors:n,response:e})}})}}),M=(0,r.Z)(B,1)[0],z=(0,c.useCallback)((function(){v(null),M({pipeline_run:{backfill_id:null===s||void 0===s?void 0:s.backfill_id,event_variables:(null===s||void 0===s?void 0:s.event_variables)||{},execution_date:null===s||void 0===s?void 0:s.execution_date,pipeline_schedule_id:null===s||void 0===s?void 0:s.pipeline_schedule_id,pipeline_uuid:null===s||void 0===s?void 0:s.pipeline_uuid,variables:(null===s||void 0===s?void 0:s.variables)||{}}})}),[M,s,v]),X=(0,c.useCallback)((function(){v(null),d(C),l({id:C,status:m.VO.CANCELLED})}),[l,C,d,v]);return(0,H.jsxs)("div",{style:{position:"relative"},children:[(0,H.jsx)(a.ZP,{backgroundColor:S&&y.Z.accent.yellow,beforeIcon:m.VO.INITIAL!==L&&!t&&(0,H.jsxs)(H.Fragment,{children:[m.VO.COMPLETED===L&&(0,H.jsx)(Z.Check,{size:k.bL}),[m.VO.FAILED,m.VO.CANCELLED].includes(L)&&(0,H.jsx)(Z.PlayButtonFilled,{inverted:m.VO.CANCELLED===L&&!x,size:k.bL}),[m.VO.RUNNING].includes(L)&&(0,H.jsx)(_.Z,{color:S?y.Z.status.negative:y.Z.monotone.white,small:!0})]}),borderRadius:"".concat(P.D7,"px"),danger:m.VO.FAILED===L&&!x,default:m.VO.INITIAL===L,disabled:t||x,loading:!s,onClick:function(e){e.stopPropagation(),v(C)},padding:"6px",primary:m.VO.RUNNING===L&&!S&&!x,warning:m.VO.CANCELLED===L&&!x,children:t?"Ready":S?"Canceling":m.Do[L]}),(0,H.jsx)(p.Z,{onClickOutside:function(){return v(null)},open:g===C,children:(0,H.jsxs)(R,{children:[[m.VO.RUNNING,m.VO.INITIAL].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(O.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsxs)(O.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,H.jsx)("br",{}),"the current pipeline run."]}),(0,H.jsx)(O.ZP,{}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsxs)(h.ZP,{children:[(0,H.jsx)(a.ZP,{onClick:function(){X(),z()},children:"Retry run"}),(0,H.jsx)(b.Z,{ml:1}),(0,H.jsx)(a.ZP,{onClick:X,children:"Cancel run"})]})})]}),[m.VO.CANCELLED,m.VO.FAILED,m.VO.COMPLETED].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(O.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",L]}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsxs)(O.ZP,{children:["Retry the run with changes you have made to the pipeline.",A?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("br",{}),"Note that the retried run may appear on a previous page."]}):null]}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsx)(a.ZP,{onClick:z,children:"Retry run"})]})]})})]})}var Q=function(e){var n=e.allowBulkSelect,t=e.allowDelete,l=e.deletePipelineRun,_=e.disableKeyboardNav,y=e.disableRowSelect,D=e.emptyMessage,R=void 0===D?"No runs available":D,N=e.fetchPipelineRuns,U=e.hidePipelineColumn,X=e.hideTriggerColumn,Q=e.includePipelineTags,q=e.onClickRow,J=e.pipelineRuns,$=e.selectedRun,W=e.selectedRuns,ee=e.setSelectedRun,ne=e.setSelectedRuns,te=e.setErrors,ie=(0,s.useRouter)(),re=(0,T.Ct)(),le=(0,B.qB)(),ue=(0,c.useRef)({}),oe=(0,c.useState)(null),ce=oe[0],se=oe[1],ae=(0,c.useState)(null),de=ae[0],pe=ae[1],fe=(0,c.useState)(null),he=fe[0],ve=fe[1],me=(0,c.useState)(0),ge=me[0],be=me[1],_e=(0,c.useState)(0),xe=_e[0],je=_e[1],Oe=(0,o.Db)((function(e){var n=e.id,t=e.status;return w.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){se(null),null===N||void 0===N||N()},onErrorCallback:function(e,n){se(null),null===te||void 0===te||te({errors:n,response:e})}})}}),we=(0,r.Z)(Oe,2),ye=we[0],Pe=we[1].isLoading,Ze="PipelineDetail/Runs/Table",Ce="pipeline-runs",ke=(0,c.useCallback)((function(e){if(!e)return null;var n=J.findIndex((function(n){return n.id===e.id}));return n>=0?n:null}),[J]),Ee=(0,z.y)(),De=Ee.registerOnKeyDown,Ie=Ee.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){Ie(Ze)}}),[Ie,Ze]),De(Ze,(function(e,n){var t=n[E.Bu],i=n[E.kD];ee&&!_&&(t||i)&&ee((function(n){var r=ke(n);if(null!==r){if(e.repeat)return e.preventDefault(),n;if(t){var l=r-1;return l<0&&(l=J.length-1),J[l]}if(i){var u=r+1;return u>=J.length&&(u=0),J[u]}}return n}))}),[J,ee]),(0,c.useEffect)((function(){var e=ke($);if(null!==e){var n=(0,C.w4)({rowIndex:e,uuid:Ce}),t=document.getElementById(n);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}}),[ke,$]);var Re=le?C.O$:{},Ne=[null,null,null,null],Le=[{uuid:"Status"},{center:!0,uuid:"Logs"},{center:!0,uuid:"ID"},{uuid:"Block runs"}];U||(Ne.push(1),Le.push({uuid:"Pipeline"})),X||(Ne.push(1),Le.push({uuid:"Trigger"})),Q&&(Ne.push(null),Le.push({uuid:"Pipeline tags"})),Ne.push.apply(Ne,[1,1,1,null,null]),Le.push.apply(Le,[K(K({},Re),{},{uuid:"Execution date"}),K(K({},Re),{},{uuid:"Started at"}),K(K({},Re),{},{uuid:"Completed at"}),{uuid:"Execution time"}]),t&&!re&&(Ne.push.apply(Ne,[null]),Le.push({label:function(){return""},uuid:"Delete"}));var Se=(0,c.useMemo)((function(){return J.every((function(e){var n=e.id;return!(null===W||void 0===W||!W[n])}))}),[J,W]);n&&(Ne.unshift(null),Le.unshift({label:function(){return(0,H.jsx)(d.Z,{checked:Se,onClick:function(){var e=(0,V.HK)(J||[],(function(e){return e.id}));ne(Se?{}:e)}})},uuid:"Selected"})),!y&&q&&(Ne.push(null),Le.push({label:function(){return""},uuid:"action"}));var Ve=(0,c.useCallback)((function(e,n){if(q&&ne&&n&&n.metaKey){var t=J[e];ne((function(e){var n=!(null===e||void 0===e||!e[t.id]);return K(K({},e),{},(0,i.Z)({},t.id,n?null:t))}))}else q&&q(e)}),[q,J,ne]);return(0,H.jsx)(L.cl,{minHeight:30*I.iI,overflowVisible:!!de,children:0===(null===J||void 0===J?void 0:J.length)?(0,H.jsx)(b.Z,{px:3,py:1,children:(0,H.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:R})}):(0,H.jsx)(x.Z,{columnFlex:Ne,columns:Le,isSelectedRow:function(e){return!y&&J[e].id===(null===$||void 0===$?void 0:$.id)},onClickRow:y?null:Ve,rowVerticalPadding:6,rows:null===J||void 0===J?void 0:J.map((function(e,r){var o=e.block_runs_count,s=e.completed_block_runs_count,_=e.completed_at,x=e.execution_date,w=e.id,E=e.pipeline_schedule_id,D=e.pipeline_schedule_name,I=e.pipeline_tags,R=e.pipeline_uuid,L=e.started_at,V=e.status;ue.current[w]=(0,c.createRef)();var T,F,B=!w&&!V,z="".concat(s," out of ").concat(o," block runs completed"),$=(0,H.jsx)(j.Z,{tags:null===I||void 0===I?void 0:I.map((function(e){return{uuid:e}}))},"row_pipeline_tags_".concat(r)),ee=[];r>0&&J[r-1].execution_date===e.execution_date&&J[r-1].pipeline_schedule_id===e.pipeline_schedule_id?(ee=[(0,H.jsx)(b.Z,{ml:1,children:(0,H.jsxs)(h.ZP,{alignItems:"center",children:[(0,H.jsx)(Z.Subitem,{size:k.bL,useStroke:!0}),(0,H.jsx)(a.ZP,{borderRadius:"".concat(P.D7,"px"),notClickable:!0,padding:"6px",children:(0,H.jsx)(O.ZP,{muted:!0,children:m.Do[V]})})]})},"row_status"),(0,H.jsx)(a.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),ie.push("/pipelines/".concat(R,"/logs?pipeline_run_id[]=").concat(w))},children:(0,H.jsx)(Z.Logs,{default:!0,size:k.bL})},"row_logs"),(0,H.jsx)(O.ZP,{center:!0,default:!0,monospace:!0,muted:!0,children:null===e||void 0===e?void 0:e.id},"row_id"),(0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{block:!0,bold:!0,centerAlign:!0,muted:!0,title:z,children:"".concat(s," / ").concat(o)})},"row_block_runs")],U||ee.push((0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:R},"row_pipeline_uuid")),X||ee.push((0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),Q&&ee.push($),(T=ee).push.apply(T,[(0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,c.createElement)(O.ZP,K(K({},G),{},{key:"row_started_at",muted:!0,title:L?(0,M._6)(L):null}),L?(0,S.Uc)(L,le):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{key:"row_completed_at",muted:!0,title:_?(0,M._6)(_):null}),_?(0,S.Uc)(_,le):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_execution_time",title:L&&_?(0,M.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:L}):null}),L&&_?(0,M.Qf)({endDatetime:_,startDatetime:L}):(0,H.jsx)(H.Fragment,{children:"\u2014"}))])):(ee=[(0,H.jsx)(Y,{cancelingRunId:ce,disabled:B,isLoadingCancelPipeline:Pe,onCancel:ye,onSuccess:N,pipelineRun:e,setCancelingRunId:se,setErrors:te,setShowConfirmationId:pe,showConfirmationId:de},"row_retry_button"),(0,H.jsx)(a.ZP,{default:!0,disabled:B,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),ie.push("/pipelines/".concat(R,"/logs?pipeline_run_id[]=").concat(w))},children:(0,H.jsx)(Z.Logs,{default:!0,size:k.bL})},"row_logs"),(0,H.jsx)(O.ZP,{center:!0,default:!0,monospace:!0,muted:!0,children:null===e||void 0===e?void 0:e.id},"row_id"),(0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{block:!0,bold:!0,centerAlign:!0,disabled:B,sky:!0,title:z,children:B?"":"".concat(s," / ").concat(o)})},"row_block_runs")],U||ee.push((0,H.jsx)(O.ZP,{default:!0,monospace:!0,children:R},"row_pipeline_uuid")),X||ee.push((0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/triggers/").concat(E),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,sky:!0,children:D})},"row_trigger")),Q&&ee.push($),(F=ee).push.apply(F,[(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_date",title:x?(0,M._6)(x):null}),x?(0,S.Uc)(x,le):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_started_at",title:L?(0,M._6)(L):null}),L?(0,S.Uc)(L,le):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_completed_at",title:_?(0,M._6)(_):null}),_?(0,S.Uc)(_,le):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_execution_time",title:L&&_?(0,M.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:L}):null}),L&&_?(0,M.Qf)({endDatetime:_,startDatetime:L}):(0,H.jsx)(H.Fragment,{children:"\u2014"}))]));if(t&&!re&&ee.push((0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(a.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){var n,t,i,r;(0,A.j)(e),ve(w),be((null===(n=ue.current[w])||void 0===n||null===(t=n.current)||void 0===t?void 0:t.offsetTop)||0),je((null===(i=ue.current[w])||void 0===i||null===(r=i.current)||void 0===r?void 0:r.offsetLeft)||0)},ref:ue.current[w],title:"Delete",children:(0,H.jsx)(Z.Trash,{default:!0,size:k.bL})}),(0,H.jsx)(p.Z,{onClickOutside:function(){return ve(null)},open:he===w,children:(0,H.jsx)(g.Z,{danger:!0,left:(xe||0)-C.nH,onCancel:function(){return ve(null)},onClick:function(){ve(null),l(w)},title:"Are you sure you want to delete this run (id ".concat(w,' for trigger "').concat(D,'")?'),top:(ge||0)-(r<=1?C.oz:C.OK),width:C.Xx})})]})),n){var oe=!(null===W||void 0===W||!W[w]);ee.unshift((0,H.jsx)(d.Z,{checked:oe,onClick:function(n){n.stopPropagation(),ne((function(n){return K(K({},n),{},(0,i.Z)({},w,oe?null:e))}))}},"selected-pipeline-run-".concat(w)))}return!y&&q&&ee.push((0,H.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,H.jsx)(Z.ChevronRight,{default:!0,size:k.bL})})),ee})),uuid:Ce})})}},16488:function(e,n,t){t.d(n,{IJ:function(){return v},M8:function(){return P},Uc:function(){return x},XM:function(){return y},_U:function(){return h},eI:function(){return _},gU:function(){return O},lO:function(){return D},ri:function(){return g},tL:function(){return j},vJ:function(){return w},xH:function(){return b}});var i,r=t(82394),l=t(92083),u=t.n(l),o=t(3917),c=t(4383),s=t(30229),a=t(42122),d=t(86735);function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=function(e){return!!e&&!Object.values(s.U5).includes(e)};function v(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,l=n.started_at,o=n.status,c=null;l&&i&&(c=u()(i).valueOf()-u()(l).valueOf());return f(f({},e),{},(0,r.Z)({},t,{runtime:c,status:o}))}),{})}var m,g=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:s.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:s.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:s.Xm.API}];return e?n.slice(0,1):n};function b(e){var n=(0,a.gR)(e,[s.gm.INTERVAL,s.gm.TYPE]),t=e[s.gm.INTERVAL];t&&(n["schedule_interval[]"]=encodeURIComponent(t));var i=e[s.gm.TYPE];return i&&(n["schedule_type[]"]=i),n}function _(e){return e?new Date(u()(e).valueOf()):null}function x(e,n){return n?(0,o.XG)(e,n):function(e){if("string"!==typeof e)return e;var n=e.split("+")[0];return u()(_(n)).format(o.Nx)}(e)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(m||(m={}));var j=(i={},(0,r.Z)(i,m.DAY,86400),(0,r.Z)(i,m.HOUR,3600),(0,r.Z)(i,m.MINUTE,60),(0,r.Z)(i,m.SECOND,1),i);function O(e){var n=m.SECOND,t=e;return e%86400===0?(t/=86400,n=m.DAY):e%3600===0?(t/=3600,n=m.HOUR):e%60===0&&(t/=60,n=m.MINUTE),{time:t,unit:n}}function w(e,n){return e*j[n]}function y(e,n,t){var i,r=u()(e);return r.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),r.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),r.set("second",0),i=r.format(o.TD),null!==t&&void 0!==t&&t.includeSeconds&&(i=i.concat(":00")),null!==t&&void 0!==t&&t.localTimezone&&(i=r.format(o.lE),null!==t&&void 0!==t&&t.convertToUtc&&(i=(0,o.d$)(i,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))),i}function P(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",i=!0;if(i){var r=(0,c.XF)();n?t="".concat(r,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(t="".concat(r,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(t="".concat(t,"/").concat(e.token)))}return t}function Z(e,n,t){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,t){var i=t.indexOf(e),r=0;if(n<0)for(var l=0;l>n;l--)0===i?(i=t.length-1,r-=1):i-=1;else if(n>0)for(var u=0;u<n;u++)i===t.length-1?(i=0,r+=1):i+=1;var o="number"===typeof t[i]?t[i]:e;return{additionalOffset:r,cronValue:String(o)}}(+e,n,t)}var C=(0,d.m5)(60),k=(0,d.m5)(24),E=(0,o.Cs)();function D(e,n){if(!e)return e;var t=u()().local().format("Z"),i=t.split(":"),r="-"===t[0],l=3===i[0].length?Number(i[0].slice(1)):Number(i[0]),o=Number(i[1]);(r&&!n||!r&&n)&&(l=-l,o=-o);var c=e.split(" "),s=c[0],a=c[1],d=c[2],p=Z(s,o,C),f=Z(a,l+p.additionalOffset,k);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var h=Z(d,f.additionalOffset,E);c[2]=h.cronValue}return c.join(" ")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8023],{24496:function(e,t,n){n.d(t,{Z:function(){return K}});var r=n(75582),i=n(82394),o=n(92083),l=n.n(o),a=n(82684),c=n(26304),d=n(26226),s=n(84969),u=n(90948),h=n(65743),f=n(39048),x=n(79487),p=n(29989),m=n(61655),v=n(16853),y=n(65376),g=n(55485),j=n(30160),b=n(94035),k=n(95363),Z=n(70515),w=n(33795),T=n(81728),A=n(28598),S=["height","width","xAxisLabel","yAxisLabel"];function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=3*Z.iI,F=(Z.iI,Z.iI,Z.iI,(0,m.Z)((function(e){var t=e.data,n=e.height,i=e.hideTooltip,o=e.keyForYData,l=void 0===o?w.Vd:o,a=e.large,c=e.margin,d=void 0===c?{}:c,m=e.renderNoDataText,g=e.renderTooltipContent,b=e.showTooltip,Z=e.tooltipData,S=e.tooltipLeft,O=e.tooltipOpen,F=e.tooltipTop,I=e.width,C=e.yTooltipFormat,E=e.xAxisLabel,N=e.xLabelFormat,_=e.xNumTicks,D=e.yLabelFormat,M=(0,w.ew)({data:t,height:n,keyForYData:l,large:a,margin:d,showTooltip:b,width:I,yLabelFormat:D}),R=M.colorScale,H=M.colors,V=M.data,B=M.fontSize,Y=M.handleTooltip,z=M.margin,J=M.tempScale,G=M.tickValues,U=M.xKeys,W=M.xMax,X=M.y1Scale,q=M.yLabelFormat,K=M.yMax,Q=M.yScale,$=M.ySerialize,ee=[];Math.min((null===G||void 0===G?void 0:G.length)||0,Math.floor(n/L));return null===G||void 0===G||G.forEach((function(e){ee.push(e)})),I<10?null:(0,A.jsxs)("div",{children:[(0,A.jsxs)("svg",{height:n,width:I,children:[m&&!(null!==V&&void 0!==V&&V.length)&&(0,A.jsx)("text",{dominantBaseline:"middle",fill:H.active,fontFamily:k.ry,fontSize:B,textAnchor:"middle",x:"50%",y:"50%",children:m()}),(0,A.jsx)(h.Z,{fill:"transparent",height:n-(z.top+z.bottom),onMouseLeave:function(){return i()},onMouseMove:Y,onTouchMove:Y,onTouchStart:Y,rx:14,width:I-(z.left+z.right),x:z.left,y:z.top}),(null===V||void 0===V?void 0:V.length)&&(0,A.jsxs)(p.Z,{left:z.left,top:z.top,children:[(0,A.jsx)(f.Z,{color:R,data:V,keys:U,width:W,xScale:J,y0:$,y0Scale:Q,y1Scale:X,children:function(e){return e.map((function(e){return(0,A.jsx)(p.Z,{top:e.y0,children:e.bars.map((function(t){return(0,A.jsx)("g",{children:(0,A.jsx)(A.Fragment,{children:(0,A.jsx)("rect",{fill:t.color,height:t.height,pointerEvents:"none",rx:4,width:t.width,x:t.x,y:t.y})})},"".concat(e.index,"-").concat(t.index,"-").concat(t.key))}))},"bar-group-horizontal-".concat(e.index,"-").concat(e.y0))}))}}),(0,A.jsx)(s.Z,{hideTicks:!0,scale:Q,stroke:H.muted,tickFormat:q,tickLabelProps:function(){return{fill:H.active,fontFamily:k.ry,fontSize:B,style:{width:"10px"},textAnchor:"end"}},tickStroke:H.muted,tickValues:ee,top:2}),(0,A.jsx)(u.Z,{label:E,labelProps:{fill:H.muted,fontFamily:k.ry,fontSize:B,textAnchor:"middle"},numTicks:_,scale:J,stroke:H.muted,tickFormat:N,tickLabelProps:function(){return{fill:H.active,fontFamily:k.ry,fontSize:B,textAnchor:"middle"}},tickStroke:H.muted,top:K})]}),Z&&(0,A.jsx)("g",{children:(0,A.jsx)(x.Z,{from:{x:z.left,y:F},pointerEvents:"none",stroke:H.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:W+z.left,y:F}})})]}),O&&Z&&(0,A.jsxs)(v.Z,{left:S,style:P(P({},y.j),{},{backgroundColor:H.tooltipBackground}),top:F,children:[g&&g(Z),!g&&Object.entries(Z).map((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];if(l!==n){var o,a=i;return C?(0,A.jsx)(j.ZP,{inverted:!0,small:!0,children:C(a,n,Z)},n):((0,T.HW)(a)&&String(a).split(".").length>=2&&"undefined"!==typeof a&&null!==a&&(0,T.HW)(a)&&(a=null===(o=a)||void 0===o?void 0:o.toFixed(4)),(0,A.jsxs)(j.ZP,{inverted:!0,small:!0,children:[n,": ",a]},n))}}))]})]})})));var I=function(e){var t,n=e.height,r=e.width,i=e.xAxisLabel,o=e.yAxisLabel,l=(0,c.Z)(e,S);return t="undefined"===typeof r?"100%":o?0===r?r:r-28:r,(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?Z.iI:null,width:"100%"},children:[o&&(0,A.jsx)(g.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,A.jsx)(b.Z,{children:(0,A.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,A.jsx)("div",{style:{height:n,width:t},children:(0,A.jsx)(d.Z,{children:function(e){var t=e.width,n=e.height;return(0,A.jsx)(F,P(P({},l),{},{height:n,width:t}))}})})]}),i&&(0,A.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,A.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},C=n(95422),E=["keyForYData"],N=["height","width","xAxisLabel","yAxisLabel"];function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M=6*Z.iI,R=(0,m.Z)((function(e){var t=e.keyForYData,n=void 0===t?w.Vd:t,i=(0,c.Z)(e,E),o=i.height,l=i.hideTooltip,a=i.renderNoDataText,d=i.renderTooltipContent,f=i.tooltipData,m=i.yTooltipFormat,g=i.tooltipLeft,b=i.tooltipOpen,Z=i.tooltipTop,S=i.width,O=i.xLabelFormat,P=i.xNumTicks,L=i.yNumTicks,F=(0,w.ew)(D(D({},i),{},{keyForYData:n,orientationVertical:!0})),I=F.colorScale,N=F.colors,_=F.data,R=F.fontSize,H=F.handleTooltip,V=F.margin,B=F.tempScale,Y=(F.tickValues,F.xKeys),z=(F.xMax,F.y1Scale),J=F.yLabelFormat,G=F.yMax,U=F.yScale,W=F.ySerialize,X=Math.min(P,S/M);return S<10?null:(0,A.jsxs)("div",{children:[(0,A.jsxs)("svg",{height:o,width:S,children:[a&&!(null!==_&&void 0!==_&&_.length)&&(0,A.jsx)("text",{dominantBaseline:"middle",fill:N.active,fontFamily:k.ry,fontSize:R,textAnchor:"middle",x:"50%",y:"50%",children:a()}),(null===_||void 0===_?void 0:_.length)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(h.Z,{fill:"transparent",height:o-(V.top+V.bottom),onMouseLeave:function(){return l()},onMouseMove:H,onTouchMove:H,onTouchStart:H,rx:14,width:S-(V.left+V.right),x:V.left,y:2*V.top}),(0,A.jsxs)(p.Z,{top:V.top,children:[(0,A.jsx)(C.Z,{color:I,data:_,height:G,keys:Y,x0:W,x0Scale:U,x1Scale:z,yScale:B,children:function(e){return e.map((function(e){return(0,A.jsx)(p.Z,{left:e.x0+V.left,top:V.top,children:e.bars.map((function(t){return(0,A.jsx)("g",{children:(0,A.jsx)("rect",{fill:t.color,height:t.height,pointerEvents:"none",rx:4,width:t.width,x:t.x,y:t.y})},"".concat(e.index,"-").concat(t.index,"-").concat(t.key))}))},"bar-group-horizontal-".concat(e.index,"-").concat(e.x0))}))}}),(0,A.jsx)(s.Z,{left:V.left,numTicks:L,scale:B,stroke:N.muted,tickFormat:J,tickLabelProps:function(){return{fill:N.active,fontFamily:k.ry,fontSize:R,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:N.muted,top:V.top}),(0,A.jsx)(u.Z,{hideTicks:!0,left:V.left,numTicks:X,scale:U,stroke:N.muted,tickFormat:O,tickLabelProps:function(){return{fill:N.active,fontFamily:k.ry,fontSize:R,textAnchor:"middle"}},tickStroke:N.muted,top:G+V.top})]})]}),f&&(0,A.jsx)("g",{children:(0,A.jsx)(x.Z,{from:{x:g,y:2*V.top},pointerEvents:"none",stroke:N.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:g,y:G+2*V.top}})})]}),b&&f&&(0,A.jsxs)(v.Z,{left:g,style:D(D({},y.j),{},{backgroundColor:N.tooltipBackground}),top:Z,children:[d&&d(f),!d&&Object.entries(f).map((function(e){var t=(0,r.Z)(e,2),i=t[0],o=t[1];if(n!==i){var l=o;return m?l=m(l,i,f):((0,T.HW)(l)&&String(l).split(".").length>=2&&(l=l.toFixed(4)),l="".concat(i,": ").concat(l)),(0,A.jsx)(j.ZP,{inverted:!0,monospace:!0,small:!0,children:l},i)}})),(0,A.jsx)("div",{style:{marginBottom:2}}),(0,A.jsxs)(j.ZP,{bold:!0,inverted:!0,small:!0,children:[O&&O(W(f),null===f||void 0===f?void 0:f.x,null),!O&&W(f)]})]})]})}));var H=function(e){var t=e.height,n=e.width,r=e.xAxisLabel,i=e.yAxisLabel,o=(0,c.Z)(e,N);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("div",{style:{display:"flex",height:t,marginBottom:r?Z.iI:null,width:"100%"},children:[i&&(0,A.jsx)(g.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,A.jsx)(b.Z,{children:(0,A.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,A.jsx)("div",{style:{height:t,width:i?0===n?n:n-28:n},children:(0,A.jsx)(d.Z,{children:function(e){var t=e.height,n=e.width;return(0,A.jsx)(R,D(D({},o),{},{height:t,width:n}))}})})]}),r&&(0,A.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,A.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},V=n(93859),B=n(52729),Y=n(74168),z=n(87862),J=n(97301),G=n(35058),U=n(3917),W=n(86735);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K=function(e){var t,n=e.block,o=e.data,c=e.width,d=e.xAxisLabel,s=n.configuration,u=void 0===s?{}:s,h=u||{},f=h.chart_style,x=h.chart_type,p=h.y_sort_order,m=(0,a.useMemo)((function(){return(null===u||void 0===u?void 0:u[G.tG])||{}}),[u]),v=null===m||void 0===m?void 0:m[G.rF],y=null===m||void 0===m?void 0:m[G.nC],g=null===m||void 0===m?void 0:m[G.qu],b=u[G.JJ]||J.lA,k=(null===u||void 0===u||null===(t=u[G.bE])||void 0===t?void 0:t.map((function(e){return(0,G.c0)(e)})))||[];function w(e){return function(t,n,r){try{return new Function("value","index","values","modules",e)(t,n,r,{moment:l()})}catch(i){console.log(i)}return t}}function S(e){return function(t,n,r){try{return new Function("value","index","values","modules",e)(t,n,r,{moment:l()})}catch(i){console.log(i)}return t}}var O=null===u||void 0===u?void 0:u[G.dh],P=(0,a.useCallback)((function(){return S(O).apply(void 0,arguments)}),[O]),L=null===u||void 0===u?void 0:u[G.DE],F=(0,a.useCallback)((function(){return S(L).apply(void 0,arguments)}),[L]),C=null===u||void 0===u?void 0:u[G.WX],E=(0,a.useCallback)((function(){return w(C).apply(void 0,arguments)}),[C]),N=null===u||void 0===u?void 0:u[G._E],_=(0,a.useCallback)((function(){return w(N).apply(void 0,arguments)}),[N]),D=(0,a.useMemo)((function(){var e=null===u||void 0===u?void 0:u[G.Yg];return C||([G.aE.HOUR,G.aE.MINUTE,G.aE.SECOND].includes(e)?U.OC:U.n1)}),[u,C]);if(G.oV.BAR_CHART===x||G.oV.TIME_SERIES_BAR_CHART===x){var M=o.x,R=o.y,X=G.oV.TIME_SERIES_BAR_CHART===x;if(M&&R&&Array.isArray(M)&&Array.isArray(R)){var K,Q=null===(K=u[G.eN])||void 0===K?void 0:K.join(", "),$=null===k||void 0===k?void 0:k.join(", ");k.length||k.push(G.rj);var ee=k[0],te=M.map((function(e,t){return q({__y:e},k.reduce((function(e,n,r){var o,l=null===R||void 0===R||null===(o=R[r])||void 0===o?void 0:o[t];return"undefined"===typeof l?e:q(q({},e),{},(0,i.Z)({},n,l))}),{}))}));G.JT.HORIZONTAL===f?G.MP.ASCENDING===p?te=(0,W.YC)(te,(function(e){return e[ee]}),{ascending:!1}):G.MP.DESCENDING===p&&(te=(0,W.YC)(te,(function(e){return e[ee]}),{ascending:!0})):G.JT.VERTICAL===f&&(G.MP.ASCENDING===p?te=(0,W.YC)(te,(function(e){return e[ee]}),{ascending:!0}):G.MP.DESCENDING===p&&(te=(0,W.YC)(te,(function(e){return e[ee]}),{ascending:!1})));var ne={data:te,height:b,renderNoDataText:function(){return"No data matching query"},width:c,xNumTicks:3};return G.JT.HORIZONTAL===f?(0,A.jsx)(I,q(q({},ne),{},{xAxisLabel:$||u[G.rj],xLabelFormat:function(e,t,n){return C?E(e,t,n):X?l()(1e3*e).format(D):e},xTooltipFormat:O?P:null,yAxisLabel:d||Q||u[G.a3],yLabelFormat:N?_:null,yTooltipFormat:L?F:null})):(0,A.jsx)(H,q(q({},ne),{},{xAxisLabel:d||Q,xLabelFormat:function(e,t,n){return C?X?l()((0,U.U9)(Number(e))).format(C):E(e,t,n):X?l()((0,U.U9)(Number(e))).format(D):e},xNumTicks:te.length,xTooltipFormat:O?P:null,yAxisLabel:$,yLabelFormat:N?_:null,yNumTicks:5,yTooltipFormat:L?F:null}))}}else if(G.oV.HISTOGRAM===x){var re,ie=o.x,oe=o.y,le=null===(re=u[G.eN])||void 0===re?void 0:re.join(", ");if(ie&&oe&&Array.isArray(ie))return(0,A.jsx)(B.Z,{data:ie.map((function(e,t){var n,r=e.max,i=e.min;return[r,null===oe||void 0===oe||null===(n=oe[t])||void 0===n?void 0:n.value,i]})),height:b,large:!0,margin:{left:5*Z.iI,right:1*Z.iI,top:3*Z.iI},noPadding:!0,renderTooltipContent:function(e,t,n){var i,o,l,a,c,d=n.values,s=(0,r.Z)(d,2),u=s[0],h=s[1];return L||O?(F&&(c=F(e,t,{values:d})),P&&(a=P(e,t,{values:d})),(0,A.jsx)(A.Fragment,{children:null===(i=[c,a])||void 0===i||null===(o=i.filter)||void 0===o||null===(l=o.call(i,(function(e){return e})))||void 0===l?void 0:l.map((function(e,t){return(0,A.jsx)("div",{style:{marginTop:t>=1?1:0},children:(0,A.jsx)(j.ZP,{inverted:!0,monospace:!0,small:!0,children:e})},e)}))})):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(j.ZP,{inverted:!0,monospace:!0,small:!0,children:e}),(0,A.jsxs)(j.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:[u," ",(0,A.jsx)(j.ZP,{inline:!0,inverted:!0,muted:!0,small:!0,children:"\u2192"})," ",h]})]})},showAxisLabels:!0,showYAxisLabels:!0,showZeroes:!0,sortData:function(e){return(0,W.YC)(e,"[0]")},width:c,xAxisLabel:d||le||u[G.a3],xLabelFormat:C?E:null,yAxisLabel:le?"count(".concat(le,")"):u[G.rj],yLabelFormat:N?_:null,yTooltipFormat:L?F:null})}else if(G.oV.LINE_CHART===x||G.oV.TIME_SERIES_LINE_CHART===x){var ae=o.x,ce=o.y,de=G.oV.TIME_SERIES_LINE_CHART===x;if(ae&&ce&&Array.isArray(ae)&&Array.isArray(ce)&&Array.isArray(null===ce||void 0===ce?void 0:ce[0])){var se,ue=k;u[G.e]&&(ue=u[G.e].split(",").map((function(e){return e.trim()})));var he=ae.map((function(e,t){return{x:e,y:(0,W.w6)(ce.length).map((function(e,n){var r=ce[n][t];return"undefined"===typeof r||null===r?0:r}))}})),fe=null===(se=u[G.eN])||void 0===se?void 0:se.join(", "),xe=k.join(", ");return(0,A.jsx)(Y.Z,{data:he,height:b,hideGridX:!!v,hideGridY:!!y,lineLegendNames:ue,margin:{bottom:8*Z.iI,left:5*Z.iI},noCurve:!g,renderXTooltipContent:function(e,t,n){n.index,n.y;var r=u[G.a3],i=e;return u[G.eN]&&(r=u[G.eN].map(String).join(", ")),O?(0,A.jsx)(j.ZP,{inverted:!0,small:!0,children:P(e,r,n)}):(de&&(i=l()((0,U.U9)(Number(e))).format(D)),(0,A.jsxs)(j.ZP,{inverted:!0,small:!0,children:[(0,A.jsx)(j.ZP,{bold:!0,inline:!0,inverted:!0,small:!0,children:r}),":"," ",(0,A.jsx)(j.ZP,{inline:!0,inverted:!0,monospace:!0,small:!0,children:i})]}))},renderYTooltipContent:function(e,t,n){return L?(0,A.jsx)(j.ZP,{inverted:!0,small:!0,children:F(e,k[t],n)}):(0,A.jsxs)(j.ZP,{inverted:!0,small:!0,children:[(0,A.jsx)(j.ZP,{bold:!0,inline:!0,inverted:!0,small:!0,children:k[t]}),":"," ",(0,A.jsx)(j.ZP,{inline:!0,inverted:!0,monospace:!0,small:!0,children:e})]})},thickness:4,timeSeries:de,width:c?c-(3*Z.iI+3):c,xAxisLabel:d||fe||String(u[G.a3]||""),xLabelFormat:function(e,t,n){var r=String(e);return C?r=de?l()((0,U.U9)(e)).format(C):E(e,t,n):de&&(r=l()((0,U.U9)(e)).format(D)),r},yAxisLabel:xe||String(u[G.rj]),yLabelFormat:N?_:void 0})}}else if(G.oV.PIE_CHART===x){var pe,me=o[String(u[G.a3]||G.a3)],ve=null===(pe=u[G.eN])||void 0===pe?void 0:pe.join(", ");if(me)return(0,A.jsx)(z.Z,{data:Object.entries(me),getX:function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return"".concat(n," (").concat((0,T.x6)(i),")")},getY:function(e){return(0,r.Z)(e,2)[1]},height:b,thickness:.5,width:c,xAxisLabel:d||ve||String(u[G.a3]||""),xLabelFormat:C?E:void 0,xTooltipFormat:O?P:null,yLabelFormat:N?_:void 0,yTooltipFormat:L?F:null})}else if(G.oV.TABLE===x){var ye=o.index,ge=o.x,je=o.y;return Array.isArray(ge)&&Array.isArray(je)&&Array.isArray(je[0])&&(0,A.jsx)(V.Z,{columns:ge,height:u[G.JJ]?null:b,index:ye,maxHeight:u[G.JJ]?b:null,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,rows:je,width:c})}return(0,A.jsx)("div",{})}},97301:function(e,t,n){n.d(t,{T7:function(){return s},Tb:function(){return d},lA:function(){return a},pM:function(){return c},y9:function(){return u}});var r=n(25976),i=n(44897),o=n(42631),l=n(70515),a=40*l.iI,c=r.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],o.n_,.5*l.iI,.5*l.iI,1*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*l.iI,1*l.iI),s=r.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],l.iI/2,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],l.cd*l.iI,l.iI,l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},10305:function(e,t,n){var r=n(82684),i=n(55485),o=n(38276),l=n(28598);t.Z=function(e){var t=e.children,n=e.onChange,a=(0,r.useState)(r.Children.map(t,(function(){return null}))),c=a[0],d=a[1],s=(0,r.useState)(0),u=s[0],h=s[1];return(0,l.jsx)(i.ZP,{children:r.Children.map(t,(function(e,t){return(0,l.jsx)(o.Z,{ml:t>=1?1:0,style:{display:"flex",flex:1},children:r.cloneElement(e,{onChange:function(e){d((function(r){return r[t]=e.target.value,n(r,{resetValues:function(){return h((function(e){return e+1}))},setValues:d}),r}))},value:c[t]})},"multi-select-child-".concat(t,"-").concat(u))}))})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8095],{33795:function(t,e,n){n.d(e,{Vd:function(){return y},ew:function(){return w},zq:function(){return j}});var r=n(82394),o=n(21831),i=n(82684),a=n(25976),c=n(48072),l=n(24903),u=n(98677),d=n(84181),f=n(44897),s=n(79633),h=n(70515),p=n(61896),g=n(81728);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var y="__y",b={bottom:h.iI*(3+h.cd),left:h.iI*h.cd,right:h.iI*h.cd,top:h.iI*h.cd};function x(t,e){return Math.max.apply(Math,(0,o.Z)(t.map(e)))}function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t||{},n=e.flat,r=[[s.a$,s.Ej,s.hM,s.ZA,s.$R,s.X_,s.er,s.hl],["#8E73E5","#4F7EFF","#FF5A7A","#56E06B","#FFD64A","#CBA9B2","#4F86FF","#FF6FFB"],["#5338AA","#1E4BCC","#CB1035","#209A3C","#E6AB00","#836970","#0C3BCC","#CB00C6"]];return n?r.reduce((function(t,e){return t.concat(e)}),[]):r.reduce((function(t,e,n){return e.forEach((function(e,n){var r;t[n]||(t[n]=[]),null===(r=t[n])||void 0===r||r.push(e)})),t}),[])}function w(t){var e=t.data,n=t.height,r=t.keyForYData,s=t.large,h=t.margin,v=void 0===h?{}:h,y=t.orientationVertical,w=void 0!==y&&y,O=t.showTooltip,Z=t.width,k=t.yLabelFormat,A=(0,i.useContext)(a.ThemeContext),P=(0,i.useCallback)((function(t){return t[r]}),[r]),S=k;S||(S=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var C=s?p.iD:p.J5,F=m(m({},b),v),D=e.slice(Math.max(0,e.length-50)),M=(0,i.useMemo)((function(){return Object.keys((null===D||void 0===D?void 0:D[0])||{}).filter((function(t){return t!==r}))}),[D,r]),I=j(),L=(0,l.Z)({domain:M,range:[].concat((0,o.Z)(I.map((function(t){return t[0]}))),(0,o.Z)(I.map((function(t){return t[1]}))),(0,o.Z)(I.map((function(t){return t[2]}))))}),T=(0,i.useMemo)((function(){return D.map(P)}),[D,P]),E=(0,u.Z)({domain:T,padding:.1}),B=(0,u.Z)({domain:M,padding:.1}),R=(0,d.Z)({domain:[0,x(D,(function(t){return x(M,(function(e){return Number(t[e])}))}))]}),N={active:(null===A||void 0===A?void 0:A.content.default)||f.Z.content.default,backgroundPrimary:(null===A||void 0===A?void 0:A.chart.backgroundPrimary)||f.Z.chart.backgroundPrimary,backgroundSecondary:(null===A||void 0===A?void 0:A.chart.backgroundSecondary)||f.Z.chart.backgroundSecondary,muted:(null===A||void 0===A?void 0:A.content.muted)||f.Z.content.muted,primary:(null===A||void 0===A?void 0:A.chart.primary)||f.Z.chart.primary,tooltipBackground:(null===A||void 0===A?void 0:A.background.navigation)||f.Z.background.navigation},_=T;w&&(_=D.reduce((function(t,e){return t.concat(M.map((function(t){var n=e[t];return(0,g.HW)(n)?parseInt(String(n)):n})))}),[]));var z=Math.min(Math.max.apply(Math,(0,o.Z)(_.map((function(t){return String(t).length})))),20);F.left+=7*z;var V=Z-(F.left+F.right),J=n-(F.top+F.bottom);w?(E.rangeRound([0,V]),R.rangeRound([J,0])):(E.rangeRound([J,0]),R.rangeRound([0,V])),B.rangeRound([0,E.bandwidth()]);var K=D.map(P).length,Y=0;w||(Y=E(_[K-1]));var X=(0,i.useCallback)((function(t){var e=(0,c.Z)(t)||{x:0,y:0},n=e.x,r=e.y,o=n-F.left,i=r-F.top,a=0;a=w?(o-Y/2)/(V-Y):1-(i-Y/2)/(J-Y);var l=Math.floor(a*K),u=D[l];"undefined"===typeof u&&(u=D[l-1]),w?o>Y&&o<V+F.left-Y&&O({tooltipData:u,tooltipLeft:n,tooltipTop:r}):i>Y&&i<J-Y&&O({tooltipData:u,tooltipLeft:n,tooltipTop:r})}),[D,K,F.left,F.top,w,O,Y,V,J]);return{colorScale:L,colors:N,data:D,fontSize:C,handleTooltip:X,margin:F,tempScale:R,tickValues:_,xKeys:M,xMax:V,y1Scale:B,yLabelFormat:S,yMax:J,yScale:E,ySerialize:P}}},52729:function(t,e,n){n.d(e,{Z:function(){return K}});var r=n(26304),o=n(75582),i=n(21831),a=n(82394),c=n(82684),l=n(26226),u=n(84969),d=n(90948),f=n(65743),s=n(29989),h=n(25976),p=n(61655),g=n(16853),v=n(65376),m=n(48072),y=n(98677),b=n(84181),x=n(55485),j=n(4190),w=n(30160),O=n(94035),Z=n(70987),k=n(79633),A=n(89370),P=n(95363),S=n(61896),C=n(70515),F=n(38469),D=n(15817),M=function(t){return t.toISOString().slice(0,10)},I=function(t){return t.slice(0,10)},L=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},T=n(79221),E=n(98684),B=n(3917),R=n(28598),N=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){(0,a.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V={bottom:C.iI,left:3*C.iI,right:0,top:1*C.iI},J=(0,p.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,a=t.getBarColor,l=t.getXValue,p=t.getYValue,x=t.height,j=t.hideTooltip,O=t.large,N=t.margin,_=void 0===N?{}:N,J=t.muted,K=t.noPadding,Y=t.numberOfXTicks,X=t.renderTooltipContent,q=t.selected,H=t.showAxisLabels,U=t.showTooltip,W=t.showYAxisLabels,$=t.showZeroes,G=t.sortData,Q=t.tooltipData,tt=t.yTooltipFormat,et=t.tooltipLeft,nt=t.tooltipOpen,rt=t.tooltipTop,ot=t.width,it=t.xLabelFormat,at=t.yLabelFormat,ct=O?S.J5:S.VK,lt=(0,c.useCallback)((function(t){return l?l(t):t[0]}),[l]),ut=(0,c.useCallback)((function(t){return p?p(t):t[1]}),[p]),dt=(0,c.useContext)(h.ThemeContext),ft=e===A.RL.DATETIME,st=z(z({},V),_);H&&(st=z(z({},st),{},{left:st.left+C.iI}));var ht=G?G(r):r.sort((function(t,e){return e[1]-t[1]})),pt=ft?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ht.slice(0,60),gt=ot-(st.left+st.right),vt=x-(st.bottom+st.top),mt=ft?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,D.Z)({domain:(n=r,[(0,F.Z)(n[0]),(0,F.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(pt,gt):null,yt=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},o=0,i=1;return t.forEach((function(t){var e=new Date(t[0]),a=t[1],c=n[o],l=n[i];if(c&&l){var u=new Date(c),d=new Date(l),f=L(u,d);if(e>=u&&e<d)r[f]=(r[f]||0)+a;else for(;i<n.length||!r[f];)if(o+=1,i+=1,u=new Date(n[o]),d=new Date(n[i]),f=L(u,d),e>=u&&e<d)return void(r[f]=(r[f]||0)+a)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var o=I(e),i=I(r[n-1]);return t.push("".concat(i,":").concat(o)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(pt,mt);pt=mt?Object.entries(yt).sort((function(t,e){return new Date(I(t[0])).getTime()-new Date(I(e[0])).getTime()})):pt;var bt=mt?Math.max.apply(Math,(0,i.Z)(Object.values(yt))):0,xt=pt.reduce((function(t,e){return(0!==ut(e)||ft||$)&&t.push(lt(e)),t}),[]),jt=xt.length,wt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(jt,ot,ft),Ot=(0,y.Z)({domain:xt,paddingInner:K?null:wt,range:[0,gt],round:!1}),Zt=(0,b.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(pt.map(ut)))],range:[vt,0],round:!0}),kt=(0,E.K)(dt),At={active:((null===dt||void 0===dt?void 0:dt.content)||Z.Z.content).active,default:kt[0],muted:((null===dt||void 0===dt?void 0:dt.monotone)||Z.Z.monotone).gray,selected:((null===dt||void 0===dt?void 0:dt.elevation)||Z.Z.elevation).visualizationAccent},Pt=At.default;J?Pt=At.muted:q&&(Pt=At.selected);var St=jt?ft?bt:Math.max.apply(Math,(0,i.Z)(pt.map((function(t){return ut(t)})))):0,Ct=Math.floor(St/6),Ft=[0],Dt=0;if(St>6)for(;Dt<St;)Ft.push(Dt+Ct),Dt+=Ct;else for(;Dt<=St;)Ft.push(Dt+1),Dt+=1;St>9999?st=z(z({},st),{},{left:O?8*C.iI:4.1*C.iI}):St>999&&(st=z(z({},st),{},{left:O?5*C.iI:3.6*C.iI}));var Mt=ft?2.25:0,It=jt<10||e===A.RL.NUMBER||e===A.RL.NUMBER_WITH_DECIMALS||ft||W,Lt=(0,c.useCallback)((function(t){var e,n=(0,m.Z)(t)||{x:0,y:0},r=n.x,i=n.y,a=(r-(H?st.left:0))/gt,c=Math.floor(jt*a),l=pt[c];"undefined"===typeof l&&(l=pt[0]);var u=lt(l);u=(null===(e=u)||void 0===e?void 0:e.length)>15?"".concat(u.slice(0,21)):u;var d=l,f=(0,o.Z)(d,3),s=f[0],h=f[1],p=f[2],g=X?X(h,c,{values:[s,p]}):tt?tt(h,c,{values:[s,p]}):"".concat(u," (").concat(ut(l),")");U({tooltipData:g,tooltipLeft:r,tooltipTop:i})}),[pt,jt,lt,ut,st.left,X,H,U,tt,gt]);return ot<10||!r.length?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:x+st.bottom*(ft?7.5:3),width:ot,children:[(0,R.jsx)(s.Z,{left:H?st.left:0,top:st.top+Mt,children:pt.reduce((function(t,e){var n=lt(e),r=ut(e);if(0!==r){var o,i=Ot.bandwidth(),c=vt-(null!==(o=Zt(r))&&void 0!==o?o:0),l=Ot(n),u=vt-c;t.push((0,R.jsx)(f.Z,{fill:a?a(e):Pt,height:c,onMouseLeave:function(){return j()},onMouseMove:Lt,onTouchMove:Lt,onTouchStart:Lt,width:i,x:l,y:u},"bar-".concat(n)))}return t}),[])}),H&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(u.Z,{left:st.left,scale:Zt,stroke:At.muted,tickFormat:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return at?at.apply(void 0,[t].concat(n)):(0,T.P5)(t)},tickLabelProps:function(){return{fill:At.active,fontFamily:P.ry,fontSize:ct,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:At.muted,tickValues:Ft,top:st.top+Mt}),(0,R.jsx)(d.Z,{left:st.left,numTicks:ft?void 0:Y||6,orientation:"top",scale:mt||Ot,stroke:At.muted,tickFormat:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return it?it.apply(void 0,[t].concat(n)):(0,B.J_)(t)?M(t):t.toString()},tickLabelProps:function(t){return{fill:It?At.active:"transparent",fontFamily:P.ry,fontSize:ct,textAnchor:"middle",transform:ft?"rotate(-90,".concat(mt(t),",0) translate(-33,10)"):"translate(0, ".concat(3*st.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(C.iI,")")},tickStroke:It?At.muted:"transparent",top:vt+st.top+Mt})]})]}),nt&&Q&&(0,R.jsx)(g.Z,{left:et,style:v.j,top:rt,children:(0,R.jsx)(w.ZP,{color:k.E5,small:!0,children:Q})})]})}));var K=function(t){var e=t.height,n=t.loading,o=t.selected,i=t.width,a=t.xAxisLabel,c=t.yAxisLabel,u=(0,r.Z)(t,N);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:e,marginBottom:C.iI,width:"100%"},children:[c&&(0,R.jsx)(x.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(O.Z,{children:(0,R.jsx)(w.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,R.jsxs)("div",{style:{height:e,width:c?0===i?i:i-28:i},children:[n&&(0,R.jsx)(j.Z,{}),!n&&(0,R.jsx)(l.Z,{children:function(t){var e=t.height,n=t.width;return(0,R.jsx)(J,z(z({},u),{},{height:e,selected:o,width:n}))}})]})]}),a&&(0,R.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,R.jsx)(w.ZP,{center:!0,muted:!0,small:!0,children:a})})]})}},87862:function(t,e,n){n.d(e,{Z:function(){return S}});var r=n(26304),o=n(82394),i=n(75582),a=n(26226),c=n(28940),l=n(82684),u=n(29989),d=n(25976),f=n(11684),s=n(24903),h=n(30160),p=n(44897),g=n(95363),v=n(61896),m=n(70515),y=n(33795),b=n(28598),x=["height","width","xAxisLabel"];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var O={bottom:0,left:0,right:0,top:0},Z=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},k=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function A(t){var e=t.animate,n=t.arcs,r=t.path,o=t.getKey,a=t.getColor,c=t.onClickDatum,l=t.textColor,u=t.xLabelFormat,d=t.yLabelFormat;return(0,f.useTransition)(n,{enter:k,from:e?Z:k,keys:o,leave:e?Z:k,update:k})((function(t,e,n){var s,h,p,m,y=n.key,x=r.centroid(e),j=(0,i.Z)(x,2),O=j[0],Z=j[1],k=e.endAngle-e.startAngle>=.1,A=u||d?u?u(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s[0],null===e||void 0===e||null===(h=e.data)||void 0===h?void 0:h[1],[{index:null===e||void 0===e?void 0:e.index}]):d(null===e||void 0===e||null===(p=e.data)||void 0===p?void 0:p[1],null===e||void 0===e||null===(m=e.data)||void 0===m?void 0:m[0],[{index:null===e||void 0===e?void 0:e.index}]):o(e);return(0,b.jsxs)("g",{children:[(0,b.jsx)(f.animated.path,{d:(0,f.to)([t.startAngle,t.endAngle],(function(t,n){return r(w(w({},e),{},{endAngle:n,startAngle:t}))})),fill:a(e),onClick:function(){return c(e)},onTouchStart:function(){return c(e)}}),k&&(0,b.jsx)(f.animated.g,{style:{opacity:t.opacity},children:(0,b.jsx)("text",{dy:".33em",fill:l,fontFamily:g.ry,fontSize:v.J5,pointerEvents:"none",textAnchor:"middle",x:O,y:Z,children:A})})]},y)}))}function P(t){var e=t.animate,n=void 0===e||e,r=t.data,o=t.getX,i=t.getY,a=t.height,f=t.margin,h=void 0===f?O:f,g=t.textColor,v=t.thickness,x=t.xLabelFormat,j=t.yLabelFormat,Z=t.width,k=(0,l.useState)(null),P=k[0],S=k[1],C=(0,l.useContext)(d.ThemeContext),F=g||(null===C||void 0===C?void 0:C.content.active)||p.Z.content.active;if(Z<10)return null;var D=(0,s.Z)({domain:r.map((function(t){return o(t)})),range:(0,y.zq)({flat:!0})}),M=Z-h.left-h.right,I=a-h.top-h.bottom,L=Math.min(M,I)/2,T=I/2,E=M/2,B=v?Math.min(M,I)/2*v:Math.min(M/4,12*m.iI);return(0,b.jsx)("svg",{height:a,width:Z,children:(0,b.jsx)(u.Z,{left:E+h.left,top:T+h.top,children:(0,b.jsx)(c.Z,{cornerRadius:m.iI/2,data:P?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(P)})):r,innerRadius:Math.max(L-B,12.25),outerRadius:L,padAngle:.005,pieValue:i,children:function(t){return(0,b.jsx)(A,w(w({},t),{},{animate:n,getColor:function(t){var e=t.data;return D(o(e))},getKey:function(t){var e=t.data;return o(e)},onClickDatum:function(t){var e=t.data;return n&&S(P&&JSON.stringify(P)===JSON.stringify(e)?null:e)},textColor:F,xLabelFormat:x,yLabelFormat:j}))}})})})}function S(t){var e=t.height,n=t.width,o=t.xAxisLabel,i=(0,r.Z)(t,x),c={};return"undefined"!==typeof e&&(c.height=e),"undefined"!==typeof n&&(c.width=n),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:c,children:(0,b.jsx)(a.Z,{children:function(t){var e=t.width,n=t.height;return(0,b.jsx)(P,w(w({},i),{},{height:n,width:e}))}})}),o&&(0,b.jsx)("div",{style:{paddingTop:4},children:(0,b.jsx)(h.ZP,{center:!0,muted:!0,small:!0,children:o})})]})}},98684:function(t,e,n){n.d(e,{K:function(){return o}});var r=n(70987),o=function(t){var e=t||r.Z,n=e.brand,o=n.earth200,i=n.earth300,a=n.earth400,c=n.energy200,l=n.energy300,u=n.energy400,d=n.fire200,f=n.fire300,s=n.fire400,h=n.water200,p=n.water300,g=n.water400,v=n.wind200,m=n.wind300,y=n.wind400,b=e.chart;return[b.backgroundPrimary,b.backgroundSecondary,b.backgroundTertiary].concat([y,g,s,u,a,m,p,f,l,i,v,h,d,c,o])}},94035:function(t,e,n){var r=n(25976).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},79221:function(t,e,n){n.d(e,{P5:function(){return r},Vs:function(){return o}});n(81728);function r(t,e){var n=e||{},r=n.maxFractionDigits,o=n.minAmount,i=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof t?t:t>=(o||1e4)?i.format(t):t.toString()}function o(t){var e,n;if("undefined"===typeof t)return 0;var r=null===t||void 0===t||null===(e=t())||void 0===e||null===(n=e.props)||void 0===n?void 0:n.children;return(Array.isArray(r)?r:[r]).join("").length}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9624],{29624:function(e,n,t){t.d(n,{Z:function(){return Q}});var i=t(82394),l=t(75582),r=t(12691),u=t.n(r),o=t(82684),c=t(69864),s=t(34376),p=t(71180),d=t(50724),a=t(30160),h=t(44897),f=t(42631),g=t(70515),v=t(25976),_=v.default.div.withConfig({displayName:"indexstyle__ModalStyle",componentId:"sc-qldrgc-0"})(["position:absolute;"," "," display:flex;flex-direction:column;width:","px;overflow:hidden;background-color:",";border:1px solid ",";border-radius:","px;box-shadow:",";"],(function(e){return e.top&&"\n top: ".concat(e.top,"px;\n ")}),(function(e){return e.left&&"\n left: ".concat(e.left,"px;\n ")}),39*g.iI,(function(e){return(e.theme||h.Z).background.dashboard}),(function(e){return(e.theme||h.Z).borders.darkLight}),f.n_,(function(e){return(e.theme||h.Z).shadow.popup})),x=v.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-qldrgc-1"})(["display:flex;flex-direction:column;gap:","px;padding:","px ","px;"],2*g.iI,2.5*g.iI,2*g.iI),y=v.default.div.withConfig({displayName:"indexstyle__ActionsStyle",componentId:"sc-qldrgc-2"})(["display:flex;gap:","px;padding:","px;background-color:",";border-top:1px solid ",";& > *{flex:1;}"],g.iI,2*g.iI,(function(e){return(e.theme||h.Z).background.panel}),(function(e){return(e.theme||h.Z).borders.darkLight})),j=t(72473),b=t(72191),m=t(79633),Z=t(81728),C=t(28598);var P=function(e){var n=e.inProgressRunsCount,t=e.left,i=void 0===t?0:t,l=e.onAllow,r=e.onStop,u=e.pipelineScheduleId,c=e.pipelineUuid,s=e.top,d=void 0===s?0:s,h=e.topOffset,f=void 0===h?0:h,v=(0,o.useRef)(null),P=(0,o.useState)(d+f),k=P[0],w=P[1];return(0,o.useEffect)((function(){var e=null!==v&&void 0!==v&&v.current?v.current.getBoundingClientRect().height:32*g.iI,n=d+f+e>window.innerHeight;w(n?d-e:d+f)}),[i,d,f]),(0,C.jsxs)(_,{left:i,ref:v,top:k,children:[(0,C.jsxs)(x,{children:[(0,C.jsx)(j.AlertTriangle,{fill:m.$R,size:b.nz}),(0,C.jsx)(a.ZP,{bold:!0,large:!0,warning:!0,children:"There ".concat(1===n?"is":"are"," currently ").concat((0,Z._6)("run",n,!0)," in progress.")}),(0,C.jsx)(a.ZP,{large:!0,children:"Do you want to stop or allow the ".concat((0,Z._6)("run",n,!0,!0)," to complete?")})]}),(0,C.jsxs)(y,{children:[(0,C.jsx)(p.ZP,{large:!0,onClick:function(){return r(u,c)},children:"Stop"}),(0,C.jsx)(p.ZP,{large:!0,onClick:function(){return l(u)},children:"Allow"})]})]})},k=t(55485),w=t(48670),I=t(30229),O=t(89515),S=t(38276),R=t(75499),E=t(48381),A=t(69650),D=t(12468),N=t(35686),T=t(77417),q=t(19698),L=t(81655),U=t(41143),z=t(31608),B=t(16488),V=t(3917),F=t(50178),H=t(72619),X=t(95924),$=t(70320),G=t(89538);function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?K(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var J=1.5*g.iI;var Q=function(e){var n=e.disableActions,t=e.fetchPipelineSchedules,i=e.highlightRowOnHover,r=e.includeCreatedAtColumn,h=e.includePipelineColumn,f=e.pipeline,v=e.pipelineSchedules,_=e.pipelineTriggersByName,x=e.selectedSchedule,y=e.setErrors,m=e.setSelectedSchedule,Z=e.stickyHeader,K=null===f||void 0===f?void 0:f.uuid,Q=(0,s.useRouter)(),W=(0,T.Z)().projectPlatformActivated,Y=(0,q.Z)().status,ee=(0,o.useRef)({}),ne=(0,o.useRef)({}),te=(0,o.useState)(null),ie=te[0],le=te[1],re=(0,o.useState)(0),ue=re[0],oe=re[1],ce=(0,o.useState)(0),se=ce[0],pe=ce[1],de=(0,$.qB)(),ae=de?L.O$:{},he=(0,c.Db)((function(e){return N.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===t||void 0===t||t()},onErrorCallback:function(e,n){return null===y||void 0===y?void 0:y({errors:n,response:e})}})}}),fe=(0,l.Z)(he,1)[0],ge=(0,c.Db)((function(e){return N.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===t||void 0===t||t()},onErrorCallback:function(e,n){return null===y||void 0===y?void 0:y({errors:n,response:e})}})}}),ve=(0,l.Z)(ge,1)[0],_e=(0,c.Db)((function(e){return N.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===t||void 0===t||t(),K?Q.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(K,"/triggers")):null===t||void 0===t||t()},onErrorCallback:function(e,n){return y({errors:n,response:e})}})}}),xe=(0,l.Z)(_e,1)[0],ye=[],je=[];n||(ye.push.apply(ye,[null]),je.push.apply(je,[{uuid:"Active"}])),ye.push.apply(ye,[1]),je.push.apply(je,[{uuid:"Name"}]),n||(ye.push.apply(ye,[null]),je.push.apply(je,[{center:!0,uuid:"Logs"}]),W&&(ye.push.apply(ye,[null]),je.push.apply(je,[{uuid:"Project"}])),h&&(ye.push.apply(ye,[1]),je.push.apply(je,[{uuid:"Pipeline"}])),ye.push.apply(ye,[null,null]),je.push.apply(je,[{uuid:"Type"},{uuid:"Frequency"}])),ye.push.apply(ye,[1,1,null,null]),je.push.apply(je,[{uuid:"Latest status"},M(M({},ae),{},{uuid:"Next run date"}),{uuid:"Runs"},{uuid:"Description"}]),n||(ye.push.apply(ye,[1]),je.push.apply(je,[{uuid:"Tags"}]),r&&(ye.push.apply(ye,[null]),je.push.apply(je,[M(M({},ae),{},{uuid:"Created at"})])),(0,F.Ct)()||(ye.push.apply(ye,[null]),je.push.apply(je,[{label:function(){return""},uuid:"edit/delete"}])));var be=(0,G.dd)((function(e){var n=e.inProgressRunsCount,t=e.left,i=e.pipelineScheduleId,l=e.pipelineUuid,r=e.top,u=e.topOffset;return(0,C.jsx)(P,{inProgressRunsCount:n,left:t,onAllow:function(e){Ce(),ve({id:e,status:I.fq.INACTIVE})},onStop:function(e,n){Ce(),fe({pipeline_schedule_id:e,status:U.V.CANCELLED,uuid:n}),ve({id:e,status:I.fq.INACTIVE})},pipelineScheduleId:i,pipelineUuid:l,top:r,topOffset:u})}),{},[],{background:!0,uuid:"disable_trigger"}),me=(0,l.Z)(be,2),Ze=me[0],Ce=me[1];return(0,C.jsx)(z.cl,{overflowVisible:!0,children:0===v.length?(0,C.jsx)(S.Z,{px:3,py:1,children:(0,C.jsx)(a.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,C.jsx)(R.Z,{columnFlex:ye,columns:je,highlightRowOnHover:i,isSelectedRow:function(e){return v[e].id===(null===x||void 0===x?void 0:x.id)},onClickRow:m?function(e){return null===m||void 0===m?void 0:m(v[e])}:null,rowVerticalPadding:6,rows:v.map((function(e,t){var i=e.id,l=e.created_at,c=e.description,s=e.next_pipeline_run_date,f=e.pipeline_in_progress_runs_count,v=e.pipeline_runs_count,x=e.pipeline_uuid,y=e.last_pipeline_run_status,m=e.name,Z=e.repo_path,P=e.schedule_interval,R=e.status,N=e.tags,T=I.fq.ACTIVE===R,q=(0,B._U)(P),U=K||x;ee.current[i]=(0,o.createRef)(),ne.current[i]=(0,o.createRef)();var z=null!==_&&void 0!==_&&_[m]?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(S.Z,{mr:1}),(0,C.jsx)(D.Z,{block:!0,label:"This trigger is saved in code.",size:J,widthFitContent:!0,children:(0,C.jsx)(j.Code,{default:!0,size:J})})]}):null,H=[];if(n?H.push.apply(H,[(0,C.jsxs)(k.ZP,{alignItems:"center",children:[(0,C.jsx)(a.ZP,{bold:!0,children:m}),z]},"trigger_name_".concat(t))]):H.push.apply(H,[(0,C.jsx)(D.Z,{block:!0,label:R,size:20,widthFitContent:!0,children:(0,C.jsx)("div",{ref:ee.current[i],style:{position:"relative"},children:(0,C.jsx)(A.Z,{checked:T,compact:!0,onCheck:function(e){return function(e){var n=e.event,t=e.inProgressRunsCount,i=e.pipelineIsActive,l=e.pipelineScheduleId,r=e.pipelineUuid;if((0,X.j)(n),i&&t>0){var u,o=null===(u=ee.current[l])||void 0===u?void 0:u.current,c=null===o||void 0===o?void 0:o.getBoundingClientRect(),s=c.height,p=c.left,d=c.top;Ze({inProgressRunsCount:t,left:p,pipelineScheduleId:l,pipelineUuid:r,top:d,topOffset:s})}else ve({id:l,status:i?I.fq.INACTIVE:I.fq.ACTIVE})}({event:e,inProgressRunsCount:f,pipelineIsActive:T,pipelineScheduleId:i,pipelineUuid:x})},purpleBackground:!0})})},"trigger_enabled_".concat(t)),(0,C.jsxs)(k.ZP,{alignItems:"center",children:[(0,C.jsx)(u(),{as:"/pipelines/".concat(U,"/triggers/").concat(i),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,C.jsx)(w.Z,{bold:!0,onClick:function(e){(0,X.j)(e),Q.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(U,"/triggers/").concat(i))},sky:!0,children:m})}),z]},"trigger_name_".concat(t))]),!n){var $,G;if(H.push((0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return Q.push("/pipelines/".concat(U,"/logs?pipeline_schedule_id[]=").concat(i))},children:(0,C.jsx)(j.Logs,{default:!0,size:b.bL})},"logs_button_".concat(t))),W)H.push.apply(H,[(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:null===Z||void 0===Z||null===(G=Z.replace((null===Y||void 0===Y?void 0:Y.repo_path_root)||"",""))||void 0===G?void 0:G.slice(1)},"project_".concat(t))]);h&&H.push((0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:U},"pipeline_name_".concat(t))),H.push.apply(H,[(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:null===($=I.Z4[e.schedule_type])||void 0===$?void 0:$.call(I.Z4)},"trigger_type_".concat(t)),(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:de&&q?(0,B.lO)(P):P},"trigger_frequency_".concat(t))])}return H.push.apply(H,[(0,o.createElement)(a.ZP,M(M({},(0,L.NC)(y)),{},{key:"latest_run_status_".concat(t)}),y||"\u2014"),(0,C.jsx)(a.ZP,{monospace:!0,small:!0,title:s?"UTC: ".concat(s.slice(0,19)):null,children:s?de?(0,V.XG)(s,de):(0,V.d$)(s,{includeSeconds:!0,utcFormat:!0}):(0,C.jsx)(C.Fragment,{children:"\u2014"})},"trigger_next_run_date_".concat(t)),(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:v||"0"},"trigger_run_count_".concat(t)),(0,C.jsx)(a.ZP,{default:!0,title:c,width:40*g.iI,children:c},"trigger_description_".concat(t))]),n||(H.push((0,C.jsx)("div",{children:(0,C.jsx)(E.Z,{tags:null===N||void 0===N?void 0:N.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(t))),r&&H.push((0,C.jsx)(a.ZP,{default:!0,monospace:!0,small:!0,title:l?(0,V._6)(l):null,children:(0,V.XG)(null===l||void 0===l?void 0:l.slice(0,19),de)},"created_at_".concat(t))),(0,F.Ct)()||H.push((0,C.jsxs)(k.ZP,{children:[(0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return Q.push("/pipelines/".concat(U,"/triggers/").concat(i,"/edit"))},title:"Edit",children:(0,C.jsx)(j.Edit,{default:!0,size:b.bL})}),(0,C.jsx)(S.Z,{mr:1}),(0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,l;le(i),oe((null===(e=ne.current[i])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),pe((null===(t=ne.current[i])||void 0===t||null===(l=t.current)||void 0===l?void 0:l.offsetLeft)||0)},ref:ne.current[i],title:"Delete",children:(0,C.jsx)(j.Trash,{default:!0,size:b.bL})}),(0,C.jsx)(d.Z,{onClickOutside:function(){return le(null)},open:ie===i,children:(0,C.jsx)(O.Z,{danger:!0,left:(se||0)-L.nH,onCancel:function(){return le(null)},onClick:function(){le(null),xe(i)},title:"Are you sure you want to delete the trigger ".concat(m,"?"),top:(ue||0)-(t<=1?L.oz:L.OK),width:L.Xx})})]},"edit_delete_buttons_".concat(t)))),H})),stickyHeader:Z,uuid:"pipeline-triggers"})})}}}]);
|