unleash-server 5.2.7 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/addons/addon-schema.js +10 -0
- package/dist/lib/addons/addon-schema.js.map +1 -1
- package/dist/lib/addons/addon.d.ts +1 -0
- package/dist/lib/addons/addon.js.map +1 -1
- package/dist/lib/addons/datadog-definition.js +21 -0
- package/dist/lib/addons/datadog-definition.js.map +1 -1
- package/dist/lib/addons/datadog.d.ts +8 -1
- package/dist/lib/addons/datadog.js +14 -2
- package/dist/lib/addons/datadog.js.map +1 -1
- package/dist/lib/addons/datadog.test.js +62 -0
- package/dist/lib/addons/datadog.test.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.d.ts +1 -0
- package/dist/lib/addons/feature-event-formatter-md.js +7 -0
- package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
- package/dist/lib/addons/index.d.ts +2 -1
- package/dist/lib/addons/index.js +12 -2
- package/dist/lib/addons/index.js.map +1 -1
- package/dist/lib/addons/installation-definition-schema.d.ts +2 -0
- package/dist/lib/addons/installation-definition-schema.js +13 -0
- package/dist/lib/addons/installation-definition-schema.js.map +1 -0
- package/dist/lib/addons/slack-app-definition.d.ts +3 -0
- package/dist/lib/addons/slack-app-definition.js +68 -0
- package/dist/lib/addons/slack-app-definition.js.map +1 -0
- package/dist/lib/addons/slack-app.d.ts +23 -0
- package/dist/lib/addons/slack-app.js +137 -0
- package/dist/lib/addons/slack-app.js.map +1 -0
- package/dist/lib/addons/slack-app.test.d.ts +1 -0
- package/dist/lib/addons/slack-app.test.js +191 -0
- package/dist/lib/addons/slack-app.test.js.map +1 -0
- package/dist/lib/addons/slack-definition.js +13 -0
- package/dist/lib/addons/slack-definition.js.map +1 -1
- package/dist/lib/addons/slack.d.ts +9 -1
- package/dist/lib/addons/slack.js +15 -3
- package/dist/lib/addons/slack.js.map +1 -1
- package/dist/lib/addons/slack.test.js +33 -0
- package/dist/lib/addons/slack.test.js.map +1 -1
- package/dist/lib/addons/teams-definition.js +13 -0
- package/dist/lib/addons/teams-definition.js.map +1 -1
- package/dist/lib/addons/teams.d.ts +6 -1
- package/dist/lib/addons/teams.js +11 -2
- package/dist/lib/addons/teams.js.map +1 -1
- package/dist/lib/addons/teams.test.js +28 -0
- package/dist/lib/addons/teams.test.js.map +1 -1
- package/dist/lib/addons/webhook-definition.js +13 -0
- package/dist/lib/addons/webhook-definition.js.map +1 -1
- package/dist/lib/addons/webhook.d.ts +1 -0
- package/dist/lib/addons/webhook.js +11 -1
- package/dist/lib/addons/webhook.js.map +1 -1
- package/dist/lib/addons/webhook.test.js +29 -0
- package/dist/lib/addons/webhook.test.js.map +1 -1
- package/dist/lib/create-config.js +2 -2
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +0 -1
- package/dist/lib/db/access-store.js +1 -14
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-metrics-store-v2.js +7 -2
- package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
- package/dist/lib/db/context-field-store.js +9 -18
- package/dist/lib/db/context-field-store.js.map +1 -1
- package/dist/lib/db/event-store.d.ts +2 -0
- package/dist/lib/db/event-store.js +19 -9
- package/dist/lib/db/event-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.js +5 -0
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +1 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
- package/dist/lib/db/feature-toggle-client-store.d.ts +7 -8
- package/dist/lib/db/feature-toggle-client-store.js +46 -24
- package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-store.d.ts +6 -0
- package/dist/lib/db/feature-toggle-store.js +35 -0
- package/dist/lib/db/feature-toggle-store.js.map +1 -1
- package/dist/lib/db/feature-type-store.d.ts +1 -0
- package/dist/lib/db/feature-type-store.js +12 -0
- package/dist/lib/db/feature-type-store.js.map +1 -1
- package/dist/lib/db/group-store.d.ts +5 -7
- package/dist/lib/db/group-store.js +51 -25
- package/dist/lib/db/group-store.js.map +1 -1
- package/dist/lib/db/index.js +1 -1
- package/dist/lib/db/index.js.map +1 -1
- package/dist/lib/db/project-store.d.ts +3 -5
- package/dist/lib/db/project-store.js +19 -19
- package/dist/lib/db/project-store.js.map +1 -1
- package/dist/lib/db/segment-store.d.ts +2 -1
- package/dist/lib/db/segment-store.js +23 -20
- package/dist/lib/db/segment-store.js.map +1 -1
- package/dist/lib/db/segment-store.test.d.ts +1 -0
- package/dist/lib/db/segment-store.test.js +32 -0
- package/dist/lib/db/segment-store.test.js.map +1 -0
- package/dist/lib/error/bad-data-error.d.ts +1 -0
- package/dist/lib/error/bad-data-error.js +18 -5
- package/dist/lib/error/bad-data-error.js.map +1 -1
- package/dist/lib/error/content-type-error.d.ts +1 -0
- package/dist/lib/error/content-type-error.js +1 -0
- package/dist/lib/error/content-type-error.js.map +1 -1
- package/dist/lib/error/disabled-error.d.ts +1 -0
- package/dist/lib/error/disabled-error.js +4 -0
- package/dist/lib/error/disabled-error.js.map +1 -1
- package/dist/lib/error/feature-has-tag-error.d.ts +1 -0
- package/dist/lib/error/feature-has-tag-error.js +4 -0
- package/dist/lib/error/feature-has-tag-error.js.map +1 -1
- package/dist/lib/error/forbidden-error.d.ts +5 -0
- package/dist/lib/error/forbidden-error.js +12 -0
- package/dist/lib/error/forbidden-error.js.map +1 -0
- package/dist/lib/error/from-legacy-error.js +68 -0
- package/dist/lib/error/from-legacy-error.js.map +1 -1
- package/dist/lib/error/incompatible-project-error.d.ts +1 -0
- package/dist/lib/error/incompatible-project-error.js +1 -0
- package/dist/lib/error/incompatible-project-error.js.map +1 -1
- package/dist/lib/error/index.d.ts +3 -2
- package/dist/lib/error/index.js +5 -3
- package/dist/lib/error/index.js.map +1 -1
- package/dist/lib/error/invalid-operation-error.d.ts +1 -0
- package/dist/lib/error/invalid-operation-error.js +4 -0
- package/dist/lib/error/invalid-operation-error.js.map +1 -1
- package/dist/lib/error/invalid-token-error.d.ts +1 -0
- package/dist/lib/error/invalid-token-error.js +1 -0
- package/dist/lib/error/invalid-token-error.js.map +1 -1
- package/dist/lib/error/minimum-one-environment-error.d.ts +1 -0
- package/dist/lib/error/minimum-one-environment-error.js +4 -0
- package/dist/lib/error/minimum-one-environment-error.js.map +1 -1
- package/dist/lib/error/name-exists-error.d.ts +1 -0
- package/dist/lib/error/name-exists-error.js +4 -0
- package/dist/lib/error/name-exists-error.js.map +1 -1
- package/dist/lib/error/not-implemented-error.d.ts +1 -0
- package/dist/lib/error/not-implemented-error.js +4 -0
- package/dist/lib/error/not-implemented-error.js.map +1 -1
- package/dist/lib/error/notfound-error.d.ts +1 -0
- package/dist/lib/error/notfound-error.js +1 -0
- package/dist/lib/error/notfound-error.js.map +1 -1
- package/dist/lib/error/operation-denied-error.d.ts +1 -0
- package/dist/lib/error/operation-denied-error.js +4 -0
- package/dist/lib/error/operation-denied-error.js.map +1 -1
- package/dist/lib/error/owasp-validation-error.d.ts +1 -0
- package/dist/lib/error/owasp-validation-error.js +1 -0
- package/dist/lib/error/owasp-validation-error.js.map +1 -1
- package/dist/lib/error/password-mismatch.d.ts +1 -0
- package/dist/lib/error/password-mismatch.js +1 -0
- package/dist/lib/error/password-mismatch.js.map +1 -1
- package/dist/lib/error/password-undefined.d.ts +1 -0
- package/dist/lib/error/password-undefined.js +1 -0
- package/dist/lib/error/password-undefined.js.map +1 -1
- package/dist/lib/error/{no-access-error.d.ts → permission-error.d.ts} +3 -2
- package/dist/lib/error/{no-access-error.js → permission-error.js} +10 -7
- package/dist/lib/error/permission-error.js.map +1 -0
- package/dist/lib/error/project-without-owner-error.d.ts +1 -0
- package/dist/lib/error/project-without-owner-error.js +1 -0
- package/dist/lib/error/project-without-owner-error.js.map +1 -1
- package/dist/lib/error/role-in-use-error.d.ts +1 -0
- package/dist/lib/error/role-in-use-error.js +4 -0
- package/dist/lib/error/role-in-use-error.js.map +1 -1
- package/dist/lib/error/unauthorized-error.d.ts +1 -0
- package/dist/lib/error/unauthorized-error.js +4 -0
- package/dist/lib/error/unauthorized-error.js.map +1 -1
- package/dist/lib/error/unleash-error.d.ts +5 -3
- package/dist/lib/error/unleash-error.js +4 -61
- package/dist/lib/error/unleash-error.js.map +1 -1
- package/dist/lib/error/unleash-error.test.js +67 -37
- package/dist/lib/error/unleash-error.test.js.map +1 -1
- package/dist/lib/error/used-token-error.d.ts +1 -0
- package/dist/lib/error/used-token-error.js +1 -0
- package/dist/lib/error/used-token-error.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-controller.js +12 -7
- package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/group/createGroupService.d.ts +4 -0
- package/dist/lib/features/group/createGroupService.js +20 -0
- package/dist/lib/features/group/createGroupService.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/client.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/client.js +33 -13
- package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js +14 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/variant.d.ts +4 -4
- package/dist/lib/features/playground/feature-evaluator/variant.js +14 -10
- package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.js +7 -0
- package/dist/lib/features/playground/offline-unleash-client.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.test.js +69 -0
- package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -1
- package/dist/lib/features/playground/playground-service.js +5 -3
- package/dist/lib/features/playground/playground-service.js.map +1 -1
- package/dist/lib/features/playground/playground.js +12 -15
- package/dist/lib/features/playground/playground.js.map +1 -1
- package/dist/lib/middleware/api-token-middleware.js +1 -1
- package/dist/lib/middleware/api-token-middleware.js.map +1 -1
- package/dist/lib/openapi/index.js +15 -3
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +0 -126
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/addon-type-schema.d.ts +57 -0
- package/dist/lib/openapi/spec/addon-type-schema.js +50 -0
- package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/addons-schema.d.ts +64 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +166 -4
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +1 -2
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +331 -6
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +662 -12
- package/dist/lib/openapi/spec/api-tokens-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-features-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-stale-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js.map +1 -1
- package/dist/lib/openapi/spec/change-password-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +121 -3
- package/dist/lib/openapi/spec/client-feature-schema.js +2 -0
- package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.d.ts +246 -16
- package/dist/lib/openapi/spec/client-features-schema.js +5 -3
- package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.test.js +1 -2
- package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/client-segment-schema.d.ts +75 -0
- package/dist/lib/openapi/spec/client-segment-schema.js +35 -0
- package/dist/lib/openapi/spec/client-segment-schema.js.map +1 -0
- package/dist/lib/openapi/spec/clone-feature-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-schema.d.ts +22 -3
- package/dist/lib/openapi/spec/context-field-schema.js +17 -3
- package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-fields-schema.d.ts +28 -3
- package/dist/lib/openapi/spec/context-fields-schema.js +1 -0
- package/dist/lib/openapi/spec/context-fields-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-api-token-schema.d.ts +130 -32
- package/dist/lib/openapi/spec/create-api-token-schema.js +71 -35
- package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +63 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js +12 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-group-schema.d.ts +61 -0
- package/dist/lib/openapi/spec/create-group-schema.js +43 -0
- package/dist/lib/openapi/spec/create-group-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-schema.d.ts +52 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js +60 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js +53 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-response-schema.d.ts +98 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js +31 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-schema.d.ts +21 -1
- package/dist/lib/openapi/spec/create-user-schema.js +24 -1
- package/dist/lib/openapi/spec/create-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/email-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/email-schema.js +3 -0
- package/dist/lib/openapi/spec/email-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/environment-project-schema.js +2 -0
- package/dist/lib/openapi/spec/environment-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +118 -2
- package/dist/lib/openapi/spec/environments-project-schema.js +3 -0
- package/dist/lib/openapi/spec/environments-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/environments-schema.js +4 -0
- package/dist/lib/openapi/spec/environments-schema.js.map +1 -1
- package/dist/lib/openapi/spec/event-schema.d.ts +130 -0
- package/dist/lib/openapi/spec/event-schema.js +42 -2
- package/dist/lib/openapi/spec/event-schema.js.map +1 -1
- package/dist/lib/openapi/spec/events-schema.d.ts +137 -0
- package/dist/lib/openapi/spec/events-schema.js +7 -0
- package/dist/lib/openapi/spec/events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-query-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +609 -17
- package/dist/lib/openapi/spec/export-result-schema.js +90 -0
- package/dist/lib/openapi/spec/export-result-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +125 -3
- package/dist/lib/openapi/spec/feature-environment-schema.js +6 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-events-schema.d.ts +141 -1
- package/dist/lib/openapi/spec/feature-events-schema.js +13 -1
- package/dist/lib/openapi/spec/feature-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.d.ts +251 -6
- package/dist/lib/openapi/spec/feature-schema.js +7 -0
- package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.test.js +2 -2
- package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +61 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js +10 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-type-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-types-schema.d.ts +42 -1
- package/dist/lib/openapi/spec/feature-types-schema.js +37 -0
- package/dist/lib/openapi/spec/feature-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-variants-schema.d.ts +11 -2
- package/dist/lib/openapi/spec/feature-variants-schema.js +4 -0
- package/dist/lib/openapi/spec/feature-variants-schema.js.map +1 -1
- package/dist/lib/openapi/spec/features-schema.d.ts +501 -12
- package/dist/lib/openapi/spec/features-schema.js +6 -0
- package/dist/lib/openapi/spec/features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feedback-create-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js +23 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-response-schema.d.ts +33 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js +35 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-update-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js +29 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js.map +1 -0
- package/dist/lib/openapi/spec/group-schema.d.ts +107 -9
- package/dist/lib/openapi/spec/group-schema.js +20 -3
- package/dist/lib/openapi/spec/group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/group-user-model-schema.d.ts +46 -3
- package/dist/lib/openapi/spec/group-user-model-schema.js +5 -0
- package/dist/lib/openapi/spec/group-user-model-schema.js.map +1 -1
- package/dist/lib/openapi/spec/groups-schema.d.ts +196 -15
- package/dist/lib/openapi/spec/groups-schema.js +2 -0
- package/dist/lib/openapi/spec/groups-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/health-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-report-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/id-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/id-schema.js +3 -0
- package/dist/lib/openapi/spec/id-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +1198 -63
- package/dist/lib/openapi/spec/import-toggles-schema.js +7 -0
- package/dist/lib/openapi/spec/import-toggles-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-schema.d.ts +18 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js +17 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js.map +1 -1
- package/dist/lib/openapi/spec/index.d.ts +15 -3
- package/dist/lib/openapi/spec/index.js +15 -3
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/legal-value-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js.map +1 -1
- package/dist/lib/openapi/spec/login-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/login-schema.js +5 -0
- package/dist/lib/openapi/spec/login-schema.js.map +1 -1
- package/dist/lib/openapi/spec/me-schema.d.ts +69 -11
- package/dist/lib/openapi/spec/me-schema.js +7 -3
- package/dist/lib/openapi/spec/me-schema.js.map +1 -1
- package/dist/lib/openapi/spec/name-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/name-schema.js +3 -0
- package/dist/lib/openapi/spec/name-schema.js.map +1 -1
- package/dist/lib/openapi/spec/parameters-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
- package/dist/lib/openapi/spec/password-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/password-schema.js +7 -0
- package/dist/lib/openapi/spec/password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/patches-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/patches-schema.js +1 -0
- package/dist/lib/openapi/spec/patches-schema.js.map +1 -1
- package/dist/lib/openapi/spec/permission-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/permission-schema.js +7 -0
- package/dist/lib/openapi/spec/permission-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +165 -3
- package/dist/lib/openapi/spec/playground-feature-schema.js +0 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +330 -5
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +204 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js +49 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +267 -7
- package/dist/lib/openapi/spec/profile-schema.js +5 -0
- package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/project-environment-schema.js +2 -0
- package/dist/lib/openapi/spec/project-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/project-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-client-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-feature-schema.d.ts +20 -2
- package/dist/lib/openapi/spec/proxy-feature-schema.js +20 -3
- package/dist/lib/openapi/spec/proxy-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-features-schema.d.ts +22 -1
- package/dist/lib/openapi/spec/proxy-features-schema.js +2 -0
- package/dist/lib/openapi/spec/proxy-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +52 -4
- package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +104 -8
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/requests-per-second-schema.js +22 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.js.map +1 -1
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.d.ts +17 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js +1 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js.map +1 -1
- package/dist/lib/openapi/spec/role-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/role-schema.js +11 -1
- package/dist/lib/openapi/spec/role-schema.js.map +1 -1
- package/dist/lib/openapi/spec/search-events-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/search-events-schema.js +10 -0
- package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/segment-schema.d.ts +23 -6
- package/dist/lib/openapi/spec/segment-schema.js +18 -15
- package/dist/lib/openapi/spec/segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-ui-config-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/splash-request-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/splash-request-schema.js +23 -0
- package/dist/lib/openapi/spec/splash-request-schema.js.map +1 -0
- package/dist/lib/openapi/spec/splash-response-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/splash-response-schema.js +21 -0
- package/dist/lib/openapi/spec/splash-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/state-schema.d.ts +523 -19
- package/dist/lib/openapi/spec/state-schema.js +2 -0
- package/dist/lib/openapi/spec/state-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategies-schema.d.ts +9 -3
- package/dist/lib/openapi/spec/strategies-schema.js +5 -0
- package/dist/lib/openapi/spec/strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.d.ts +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.test.js +5 -0
- package/dist/lib/openapi/spec/strategy-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js +16 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/tag-type-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-types-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/tag-types-schema.js +4 -0
- package/dist/lib/openapi/spec/tag-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-with-version-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js.map +1 -1
- package/dist/lib/openapi/spec/telemetry-settings-schema.d.ts +22 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js +24 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js.map +1 -0
- package/dist/lib/openapi/spec/token-user-schema.d.ts +23 -2
- package/dist/lib/openapi/spec/token-user-schema.js +12 -1
- package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/ui-config-schema.d.ts +77 -1
- package/dist/lib/openapi/spec/ui-config-schema.js +53 -0
- package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-api-token-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-schema.d.ts +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js +4 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.d.ts +19 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js +21 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-strategy-schema.d.ts +47 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js +55 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-user-schema.d.ts +15 -1
- package/dist/lib/openapi/spec/update-user-schema.js +18 -1
- package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/upsert-context-field-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/user-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/user-schema.js +41 -3
- package/dist/lib/openapi/spec/user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +194 -15
- package/dist/lib/openapi/spec/users-schema.d.ts +55 -4
- package/dist/lib/openapi/spec/users-schema.js +3 -0
- package/dist/lib/openapi/spec/users-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-search-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/validate-feature-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js +18 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/validate-password-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/validate-tag-type-schema.d.ts +10 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-flag-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/variant-schema.js +7 -2
- package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/version-schema.d.ts +16 -1
- package/dist/lib/openapi/spec/version-schema.js +16 -1
- package/dist/lib/openapi/spec/version-schema.js.map +1 -1
- package/dist/lib/openapi/util/openapi-tags.d.ts +14 -2
- package/dist/lib/openapi/util/openapi-tags.js +9 -1
- package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
- package/dist/lib/openapi/util/standard-responses.d.ts +1 -1
- package/dist/lib/openapi/util/standard-responses.js +1 -1
- package/dist/lib/openapi/util/standard-responses.js.map +1 -1
- package/dist/lib/openapi/validate.js +1 -1
- package/dist/lib/openapi/validate.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.js +12 -0
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/archive.d.ts +0 -1
- package/dist/lib/routes/admin-api/archive.js +20 -5
- package/dist/lib/routes/admin-api/archive.js.map +1 -1
- package/dist/lib/routes/admin-api/config.js +4 -0
- package/dist/lib/routes/admin-api/config.js.map +1 -1
- package/dist/lib/routes/admin-api/constraints.d.ts +2 -2
- package/dist/lib/routes/admin-api/constraints.js +5 -2
- package/dist/lib/routes/admin-api/constraints.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +2 -1
- package/dist/lib/routes/admin-api/context.js +16 -4
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/event.js +6 -3
- package/dist/lib/routes/admin-api/event.js.map +1 -1
- package/dist/lib/routes/admin-api/favorites.js +24 -4
- package/dist/lib/routes/admin-api/favorites.js.map +1 -1
- package/dist/lib/routes/admin-api/feature-type.d.ts +6 -0
- package/dist/lib/routes/admin-api/feature-type.js +37 -1
- package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
- package/dist/lib/routes/admin-api/feature.d.ts +2 -3
- package/dist/lib/routes/admin-api/feature.js +14 -3
- package/dist/lib/routes/admin-api/feature.js.map +1 -1
- package/dist/lib/routes/admin-api/index.js +2 -0
- package/dist/lib/routes/admin-api/index.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-archive.js +13 -4
- package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-features.d.ts +1 -1
- package/dist/lib/routes/admin-api/project/project-features.js +116 -27
- package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
- package/dist/lib/routes/admin-api/project/variants.js +26 -16
- package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.d.ts +6 -3
- package/dist/lib/routes/admin-api/strategy.js +40 -12
- package/dist/lib/routes/admin-api/strategy.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.test.js +5 -5
- package/dist/lib/routes/admin-api/strategy.test.js.map +1 -1
- package/dist/lib/routes/admin-api/tag-type.js +21 -1
- package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
- package/dist/lib/routes/admin-api/tag.js +17 -1
- package/dist/lib/routes/admin-api/tag.js.map +1 -1
- package/dist/lib/routes/admin-api/telemetry.d.ts +14 -0
- package/dist/lib/routes/admin-api/telemetry.js +41 -0
- package/dist/lib/routes/admin-api/telemetry.js.map +1 -0
- package/dist/lib/routes/admin-api/user/user.js +20 -4
- package/dist/lib/routes/admin-api/user/user.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.d.ts +3 -2
- package/dist/lib/routes/admin-api/user-admin.js +88 -14
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/user-feedback.js +17 -7
- package/dist/lib/routes/admin-api/user-feedback.js.map +1 -1
- package/dist/lib/routes/admin-api/user-splash.js +9 -3
- package/dist/lib/routes/admin-api/user-splash.js.map +1 -1
- package/dist/lib/routes/auth/reset-password-controller.js +24 -4
- package/dist/lib/routes/auth/reset-password-controller.js.map +1 -1
- package/dist/lib/routes/auth/simple-password-provider.js +4 -0
- package/dist/lib/routes/auth/simple-password-provider.js.map +1 -1
- package/dist/lib/routes/client-api/feature.js +1 -1
- package/dist/lib/routes/client-api/feature.js.map +1 -1
- package/dist/lib/routes/client-api/feature.test.js +8 -3
- package/dist/lib/routes/client-api/feature.test.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.js +3 -3
- package/dist/lib/routes/client-api/metrics.js.map +1 -1
- package/dist/lib/routes/controller.js +2 -2
- package/dist/lib/routes/controller.js.map +1 -1
- package/dist/lib/routes/index.js +1 -3
- package/dist/lib/routes/index.js.map +1 -1
- package/dist/lib/routes/proxy-api/index.d.ts +1 -1
- package/dist/lib/routes/proxy-api/index.js +27 -4
- package/dist/lib/routes/proxy-api/index.js.map +1 -1
- package/dist/lib/segments/segment-service-interface.d.ts +2 -1
- package/dist/lib/server-impl.js +1 -0
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/addon-service.d.ts +2 -1
- package/dist/lib/services/addon-service.js +6 -2
- package/dist/lib/services/addon-service.js.map +1 -1
- package/dist/lib/services/client-metrics/metrics-service-v2.js +24 -13
- package/dist/lib/services/client-metrics/metrics-service-v2.js.map +1 -1
- package/dist/lib/services/event-announcer-service.d.ts +8 -0
- package/dist/lib/services/event-announcer-service.js +13 -0
- package/dist/lib/services/event-announcer-service.js.map +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.d.ts +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js +44 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -0
- package/dist/lib/services/feature-toggle-service.d.ts +5 -2
- package/dist/lib/services/feature-toggle-service.js +95 -16
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/feature-type-service.d.ts +1 -0
- package/dist/lib/services/feature-type-service.js +14 -0
- package/dist/lib/services/feature-type-service.js.map +1 -1
- package/dist/lib/services/group-service.d.ts +4 -4
- package/dist/lib/services/group-service.js.map +1 -1
- package/dist/lib/services/index.js +9 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/project-schema.js +1 -0
- package/dist/lib/services/project-schema.js.map +1 -1
- package/dist/lib/services/project-service.d.ts +2 -4
- package/dist/lib/services/project-service.js +4 -9
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/segment-service.d.ts +2 -1
- package/dist/lib/services/segment-service.js +3 -0
- package/dist/lib/services/segment-service.js.map +1 -1
- package/dist/lib/services/tag-type-service.d.ts +2 -2
- package/dist/lib/services/tag-type-service.js +5 -3
- package/dist/lib/services/tag-type-service.js.map +1 -1
- package/dist/lib/services/user-service.js +13 -7
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +1 -2
- package/dist/lib/services/version-service.js +2 -4
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/services/version-service.test.js +0 -57
- package/dist/lib/services/version-service.test.js.map +1 -1
- package/dist/lib/types/authentication-required.d.ts +1 -0
- package/dist/lib/types/authentication-required.js +1 -0
- package/dist/lib/types/authentication-required.js.map +1 -1
- package/dist/lib/types/events.d.ts +138 -99
- package/dist/lib/types/events.js +136 -3
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +5 -5
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/group.d.ts +7 -0
- package/dist/lib/types/group.js.map +1 -1
- package/dist/lib/types/model.d.ts +24 -2
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/services.d.ts +3 -0
- package/dist/lib/types/stores/event-store.d.ts +1 -0
- package/dist/lib/types/stores/feature-toggle-client-store.d.ts +2 -1
- package/dist/lib/types/stores/feature-toggle-store.d.ts +6 -0
- package/dist/lib/types/stores/feature-type-store.d.ts +1 -0
- package/dist/lib/types/stores/group-store.d.ts +4 -4
- package/dist/lib/types/stores/project-store.d.ts +3 -6
- package/dist/lib/types/stores/segment-store.d.ts +2 -1
- package/dist/lib/util/is-email.d.ts +7 -0
- package/dist/lib/util/is-email.js +9 -0
- package/dist/lib/util/is-email.js.map +1 -1
- package/dist/lib/util/load-index-html.js +1 -1
- package/dist/lib/util/load-index-html.js.map +1 -1
- package/dist/migrations/20230630080126-delete-deprecated-permissions.d.ts +2 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js +15 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js.map +1 -0
- package/dist/migrations/20230706123907-events-announced-column.d.ts +2 -0
- package/dist/migrations/20230706123907-events-announced-column.js +15 -0
- package/dist/migrations/20230706123907-events-announced-column.js.map +1 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.d.ts +2 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js +18 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js.map +1 -0
- package/dist/migrations/20230711163311-project-feature-limit.d.ts +2 -0
- package/dist/migrations/20230711163311-project-feature-limit.js +13 -0
- package/dist/migrations/20230711163311-project-feature-limit.js.map +1 -0
- package/dist/migrations/20230712091834-strategy-variants.d.ts +2 -0
- package/dist/migrations/20230712091834-strategy-variants.js +81 -0
- package/dist/migrations/20230712091834-strategy-variants.js.map +1 -0
- package/dist/server-dev.js +5 -3
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.test.js +1 -1
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/archive.test.js +7 -1
- package/dist/test/e2e/api/admin/archive.test.js.map +1 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feature-type.test.js +41 -1
- package/dist/test/e2e/api/admin/feature-type.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +152 -0
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js +28 -12
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/state.e2e.test.js +6 -6
- package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js +9 -6
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +26 -4
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/group-service.e2e.test.js +16 -0
- package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/user-service.e2e.test.js +2 -2
- package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/event-store.e2e.test.js +3 -2
- package/dist/test/e2e/stores/event-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js +163 -0
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js +13 -0
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js.map +1 -1
- package/dist/test/fixtures/fake-event-store.d.ts +1 -0
- package/dist/test/fixtures/fake-event-store.js +3 -0
- package/dist/test/fixtures/fake-event-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-client-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js +10 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-store.d.ts +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-type-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-type-store.js +8 -0
- package/dist/test/fixtures/fake-feature-type-store.js.map +1 -1
- package/dist/test/fixtures/fake-group-store.d.ts +4 -4
- package/dist/test/fixtures/fake-group-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.d.ts +3 -4
- package/dist/test/fixtures/fake-project-store.js +4 -13
- package/dist/test/fixtures/fake-project-store.js.map +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts +2 -1
- package/dist/test/fixtures/fake-segment-store.js +3 -0
- package/dist/test/fixtures/fake-segment-store.js.map +1 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/AdvancedPlayground-4c9d02ea.js +13 -0
- package/frontend/build/static/CreateProject-16b35d57.js +4 -0
- package/frontend/build/static/{Error-2c3030da.js → Error-50364f10.js} +1 -1
- package/frontend/build/static/{FeatureArchiveDialog-a529848e.js → FeatureArchiveDialog-fda1aa0c.js} +3 -3
- package/frontend/build/static/{FeatureMetricsChart-e8ede36a.js → FeatureMetricsChart-839cdf1e.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-47bb7f13.js +7 -0
- package/frontend/build/static/LazyAdminExport-8ef0ca21.js +37 -0
- package/frontend/build/static/LazyProjectExport-49541c75.js +16 -0
- package/frontend/build/static/{NetworkOverview-e6f0a590.js → NetworkOverview-711050f3.js} +8 -8
- package/frontend/build/static/{NetworkTraffic-d1efc782.js → NetworkTraffic-e587c2c7.js} +1 -1
- package/frontend/build/static/RoleCell-9a62b4ed.js +1 -0
- package/frontend/build/static/StrategyItemContainer-4098c8ef.js +1 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-0d05c046.js → chartjs-adapter-date-fns.esm-d57aaddd.js} +1 -1
- package/frontend/build/static/demo-qr-c2ce85bd.png +0 -0
- package/frontend/build/static/{flowchart-elk-definition-170a3958-cc4ae597.js → flowchart-elk-definition-170a3958-4dece62b.js} +2 -2
- package/frontend/build/static/{index-a563ae6f.js → index-1c8194e0.js} +1 -1
- package/frontend/build/static/index-770afaee.css +1 -0
- package/frontend/build/static/{index-ade82986.js → index-9bb67f88.js} +1 -1
- package/frontend/build/static/index-9c528324.js +453 -0
- package/frontend/build/static/{is_dark-49e2e68f.js → is_dark-ba77f0b9.js} +1 -1
- package/frontend/build/static/{mindmap-definition-44684416-c6d3a96e.js → mindmap-definition-44684416-a4071c9f.js} +3 -3
- package/frontend/build/static/{timeline-definition-8e5a9bc6-920370f9.js → timeline-definition-8e5a9bc6-c996bf40.js} +2 -2
- package/frontend/build/static/{unknownify-30fed5e1.js → unknownify-db48ebae.js} +1 -1
- package/frontend/package.json +16 -16
- package/package.json +15 -13
- package/dist/lib/error/no-access-error.js.map +0 -1
- package/dist/lib/openapi/endpoint-descriptions.d.ts +0 -20
- package/dist/lib/openapi/endpoint-descriptions.js +0 -24
- package/dist/lib/openapi/endpoint-descriptions.js.map +0 -1
- package/dist/lib/openapi/spec/feedback-schema.d.ts +0 -24
- package/dist/lib/openapi/spec/feedback-schema.js +0 -26
- package/dist/lib/openapi/spec/feedback-schema.js.map +0 -1
- package/dist/lib/openapi/spec/splash-schema.d.ts +0 -20
- package/dist/lib/openapi/spec/splash-schema.js +0 -22
- package/dist/lib/openapi/spec/splash-schema.js.map +0 -1
- package/dist/lib/openapi/spec/upsert-strategy-schema.d.ts +0 -39
- package/dist/lib/openapi/spec/upsert-strategy-schema.js +0 -41
- package/dist/lib/openapi/spec/upsert-strategy-schema.js.map +0 -1
- package/frontend/build/static/AdvancedPlayground-bc3db7fd.js +0 -1
- package/frontend/build/static/CreateProject-4013b189.js +0 -4
- package/frontend/build/static/FeatureViewLazyExport-773303d1.js +0 -7
- package/frontend/build/static/LazyAdminExport-a9aeca56.js +0 -37
- package/frontend/build/static/LazyProjectExport-7c849a96.js +0 -13
- package/frontend/build/static/Playground-4fd4e26e.js +0 -1
- package/frontend/build/static/PlaygroundGuidancePopper-c761bfb7.js +0 -13
- package/frontend/build/static/RoleCell-cbb192fa.js +0 -1
- package/frontend/build/static/StrategyItemContainer-128fc163.js +0 -1
- package/frontend/build/static/demo-qr-1bebe2c9.png +0 -0
- package/frontend/build/static/index-66c635eb.css +0 -1
- package/frontend/build/static/index-bd571775.js +0 -450
- package/frontend/build/static/stringify-ec884b6d.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g0 as T4,g1 as lc,g2 as cc,g3 as E4,g4 as C4,g5 as S4,s as m2,r as Wh,j as Po,bS as A4,g6 as L4,g7 as B4,C as D4,E as I4,g8 as M4,g9 as N4}from"./index-9c528324.js";import{u as R4,a as b2}from"./unknownify-db48ebae.js";const O4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function F4(t){return typeof t=="string"&&O4.test(t)}function P4(t){if(!F4(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function V4(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Y4="6ba7b810-9dad-11d1-80b4-00c04fd430c8",z4="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function U4(t,e,r){function i(n,s,a,o){var l;if(typeof n=="string"&&(n=V4(n)),typeof s=="string"&&(s=P4(s)),((l=s)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let h=new Uint8Array(16+n.length);if(h.set(s),h.set(n,s.length),h=r(h),h[6]=h[6]&15|e,h[8]=h[8]&63|128,a){o=o||0;for(let u=0;u<16;++u)a[o+u]=h[u];return a}return T4(h)}try{i.name=t}catch{}return i.DNS=Y4,i.URL=z4,i}function W4(t,e,r,i){switch(t){case 0:return e&r^~e&i;case 1:return e^r^i;case 2:return e&r^e&i^r&i;case 3:return e^r^i}}function eh(t,e){return t<<e|t>>>32-e}function H4(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const a=unescape(encodeURIComponent(t));t=[];for(let o=0;o<a.length;++o)t.push(a.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const i=t.length/4+2,n=Math.ceil(i/16),s=new Array(n);for(let a=0;a<n;++a){const o=new Uint32Array(16);for(let l=0;l<16;++l)o[l]=t[a*64+l*4]<<24|t[a*64+l*4+1]<<16|t[a*64+l*4+2]<<8|t[a*64+l*4+3];s[a]=o}s[n-1][14]=(t.length-1)*8/Math.pow(2,32),s[n-1][14]=Math.floor(s[n-1][14]),s[n-1][15]=(t.length-1)*8&4294967295;for(let a=0;a<n;++a){const o=new Uint32Array(80);for(let p=0;p<16;++p)o[p]=s[a][p];for(let p=16;p<80;++p)o[p]=eh(o[p-3]^o[p-8]^o[p-14]^o[p-16],1);let l=r[0],h=r[1],u=r[2],f=r[3],d=r[4];for(let p=0;p<80;++p){const m=Math.floor(p/20),b=eh(l,5)+W4(m,h,u,f)+d+e[m]+o[p]>>>0;d=f,f=u,u=eh(h,30)>>>0,h=l,l=b}r[0]=r[0]+l>>>0,r[1]=r[1]+h>>>0,r[2]=r[2]+u>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const q4=U4("v5",80,H4),G4=q4;function _2(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(o,l){var h=l.match(/\n([\t ]+|(?!\s).)/g);return h?o.concat(h.map(function(u){var f,d;return(d=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&d!==void 0?d:0})):o},[]);if(n.length){var s=new RegExp(`
|
|
2
2
|
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(o){return o.replace(s,`
|
|
3
3
|
`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach(function(o,l){var h=a.match(/(?:^|\n)( *)$/),u=h?h[1]:"",f=o;typeof o=="string"&&o.includes(`
|
|
4
4
|
`)&&(f=String(o).split(`
|
|
5
5
|
`).map(function(d,p){return p===0?d:""+u+d}).join(`
|
|
6
|
-
`)),a+=f+i[l+1]}),a}var x2={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(lc,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",a="second",o="minute",l="hour",h="day",u="week",f="month",d="quarter",p="year",m="date",b="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var g=["th","st","nd","rd"],D=w%100;return"["+w+(g[(D-20)%10]||g[D]||g[0])+"]"}},B=function(w,g,D){var y=String(w);return!y||y.length>=g?w:""+Array(g+1-y.length).join(D)+w},R={s:B,z:function(w){var g=-w.utcOffset(),D=Math.abs(g),y=Math.floor(D/60),N=D%60;return(g<=0?"+":"-")+B(y,2,"0")+":"+B(N,2,"0")},m:function w(g,D){if(g.date()<D.date())return-w(D,g);var y=12*(D.year()-g.year())+(D.month()-g.month()),N=g.clone().add(y,f),nt=D-N<0,Y=g.clone().add(y+(nt?-1:1),f);return+(-(y+(D-N)/(nt?N-Y:Y-N))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:f,y:p,w:u,d:h,D:m,h:l,m:o,s:a,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},P="en",V={};V[P]=v;var O=function(w){return w instanceof E},F=function w(g,D,y){var N;if(!g)return P;if(typeof g=="string"){var nt=g.toLowerCase();V[nt]&&(N=nt),D&&(V[nt]=D,N=nt);var Y=g.split("-");if(!N&&Y.length>1)return w(Y[0])}else{var Z=g.name;V[Z]=g,N=Z}return!y&&N&&(P=N),N||!y&&P},C=function(w,g){if(O(w))return w.clone();var D=typeof g=="object"?g:{};return D.date=w,D.args=arguments,new E(D)},S=R;S.l=F,S.i=O,S.w=function(w,g){return C(w,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var E=function(){function w(D){this.$L=F(D.locale,null,!0),this.parse(D)}var g=w.prototype;return g.parse=function(D){this.$d=function(y){var N=y.date,nt=y.utc;if(N===null)return new Date(NaN);if(S.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var Y=N.match(x);if(Y){var Z=Y[2]-1||0,J=(Y[7]||"0").substring(0,3);return nt?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)}}return new Date(N)}(D),this.$x=D.x||{},this.init()},g.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return this.$d.toString()!==b},g.isSame=function(D,y){var N=C(D);return this.startOf(y)<=N&&N<=this.endOf(y)},g.isAfter=function(D,y){return C(D)<this.startOf(y)},g.isBefore=function(D,y){return this.endOf(y)<C(D)},g.$g=function(D,y,N){return S.u(D)?this[y]:this.set(N,D)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(D,y){var N=this,nt=!!S.u(y)||y,Y=S.p(D),Z=function($,j){var W=S.w(N.$u?Date.UTC(N.$y,j,$):new Date(N.$y,j,$),N);return nt?W:W.endOf(h)},J=function($,j){return S.w(N.toDate()[$].apply(N.toDate("s"),(nt?[0,0,0,0]:[23,59,59,999]).slice(j)),N)},X=this.$W,tt=this.$M,ot=this.$D,at="set"+(this.$u?"UTC":"");switch(Y){case p:return nt?Z(1,0):Z(31,11);case f:return nt?Z(1,tt):Z(0,tt+1);case u:var U=this.$locale().weekStart||0,Tt=(X<U?X+7:X)-U;return Z(nt?ot-Tt:ot+(6-Tt),tt);case h:case m:return J(at+"Hours",0);case l:return J(at+"Minutes",1);case o:return J(at+"Seconds",2);case a:return J(at+"Milliseconds",3);default:return this.clone()}},g.endOf=function(D){return this.startOf(D,!1)},g.$set=function(D,y){var N,nt=S.p(D),Y="set"+(this.$u?"UTC":""),Z=(N={},N[h]=Y+"Date",N[m]=Y+"Date",N[f]=Y+"Month",N[p]=Y+"FullYear",N[l]=Y+"Hours",N[o]=Y+"Minutes",N[a]=Y+"Seconds",N[s]=Y+"Milliseconds",N)[nt],J=nt===h?this.$D+(y-this.$W):y;if(nt===f||nt===p){var X=this.clone().set(m,1);X.$d[Z](J),X.init(),this.$d=X.set(m,Math.min(this.$D,X.daysInMonth())).$d}else Z&&this.$d[Z](J);return this.init(),this},g.set=function(D,y){return this.clone().$set(D,y)},g.get=function(D){return this[S.p(D)]()},g.add=function(D,y){var N,nt=this;D=Number(D);var Y=S.p(y),Z=function(tt){var ot=C(nt);return S.w(ot.date(ot.date()+Math.round(tt*D)),nt)};if(Y===f)return this.set(f,this.$M+D);if(Y===p)return this.set(p,this.$y+D);if(Y===h)return Z(1);if(Y===u)return Z(7);var J=(N={},N[o]=i,N[l]=n,N[a]=r,N)[Y]||1,X=this.$d.getTime()+D*J;return S.w(X,this)},g.subtract=function(D,y){return this.add(-1*D,y)},g.format=function(D){var y=this,N=this.$locale();if(!this.isValid())return N.invalidDate||b;var nt=D||"YYYY-MM-DDTHH:mm:ssZ",Y=S.z(this),Z=this.$H,J=this.$m,X=this.$M,tt=N.weekdays,ot=N.months,at=function(j,W,z,A){return j&&(j[W]||j(y,nt))||z[W].slice(0,A)},U=function(j){return S.s(Z%12||12,j,"0")},Tt=N.meridiem||function(j,W,z){var A=j<12?"AM":"PM";return z?A.toLowerCase():A},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:X+1,MM:S.s(X+1,2,"0"),MMM:at(N.monthsShort,X,ot,3),MMMM:at(ot,X),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:at(N.weekdaysMin,this.$W,tt,2),ddd:at(N.weekdaysShort,this.$W,tt,3),dddd:tt[this.$W],H:String(Z),HH:S.s(Z,2,"0"),h:U(1),hh:U(2),a:Tt(Z,J,!0),A:Tt(Z,J,!1),m:String(J),mm:S.s(J,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:Y};return nt.replace(k,function(j,W){return W||$[j]||Y.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(D,y,N){var nt,Y=S.p(y),Z=C(D),J=(Z.utcOffset()-this.utcOffset())*i,X=this-Z,tt=S.m(this,Z);return tt=(nt={},nt[p]=tt/12,nt[f]=tt,nt[d]=tt/3,nt[u]=(X-J)/6048e5,nt[h]=(X-J)/864e5,nt[l]=X/n,nt[o]=X/i,nt[a]=X/r,nt)[Y]||X,N?tt:S.a(tt)},g.daysInMonth=function(){return this.endOf(f).$D},g.$locale=function(){return V[this.$L]},g.locale=function(D,y){if(!D)return this.$L;var N=this.clone(),nt=F(D,y,!0);return nt&&(N.$L=nt),N},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},w}(),_=E.prototype;return C.prototype=_,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",h],["$M",f],["$y",p],["$D",m]].forEach(function(w){_[w[1]]=function(g){return this.$g(g,w[0],w[1])}}),C.extend=function(w,g){return w.$i||(w(g,E,C),w.$i=!0),C},C.locale=F,C.isDayjs=O,C.unix=function(w){return C(1e3*w)},C.en=V[P],C.Ls=V,C.p={},C})})(x2);var $4=x2.exports;const xr=cc($4);var i1={};Object.defineProperty(i1,"__esModule",{value:!0});var Ki=i1.sanitizeUrl=void 0,j4=/^([^\w]*)(javascript|data|vbscript)/im,X4=/&#(\w+)(^\w|;)?/g,K4=/&(newline|tab);/gi,Z4=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Q4=/^.+(:|:)/gim,J4=[".","/"];function t5(t){return J4.indexOf(t[0])>-1}function e5(t){return t.replace(X4,function(e,r){return String.fromCharCode(r)})}function r5(t){var e=e5(t||"").replace(K4,"").replace(Z4,"").trim();if(!e)return"about:blank";if(t5(e))return e;var r=e.match(Q4);if(!r)return e;var i=r[0];return j4.test(i)?"about:blank":e}Ki=i1.sanitizeUrl=r5;function Vo(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i5(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function n1(t){let e,r,i;t.length!==2?(e=Vo,r=(o,l)=>Vo(t(o),l),i=(o,l)=>t(o)-l):(e=t===Vo||t===i5?t:n5,r=t,i=t);function n(o,l,h=0,u=o.length){if(h<u){if(e(l,l)!==0)return u;do{const f=h+u>>>1;r(o[f],l)<0?h=f+1:u=f}while(h<u)}return h}function s(o,l,h=0,u=o.length){if(h<u){if(e(l,l)!==0)return u;do{const f=h+u>>>1;r(o[f],l)<=0?h=f+1:u=f}while(h<u)}return h}function a(o,l,h=0,u=o.length){const f=n(o,l,h,u-1);return f>h&&i(o[f-1],l)>-i(o[f],l)?f-1:f}return{left:n,center:a,right:s}}function n5(){return 0}function s5(t){return t===null?NaN:+t}const a5=n1(Vo),o5=a5.right;n1(s5).center;const l5=o5;class M0 extends Map{constructor(e,r=u5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[i,n]of e)this.set(i,n)}get(e){return super.get(N0(this,e))}has(e){return super.has(N0(this,e))}set(e,r){return super.set(c5(this,e),r)}delete(e){return super.delete(h5(this,e))}}function N0({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):r}function c5({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function h5({_intern:t,_key:e},r){const i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function u5(t){return t!==null&&typeof t=="object"?t.valueOf():t}const f5=Math.sqrt(50),d5=Math.sqrt(10),p5=Math.sqrt(2);function ol(t,e,r){const i=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(i)),s=i/Math.pow(10,n),a=s>=f5?10:s>=d5?5:s>=p5?2:1;let o,l,h;return n<0?(h=Math.pow(10,-n)/a,o=Math.round(t*h),l=Math.round(e*h),o/h<t&&++o,l/h>e&&--l,h=-h):(h=Math.pow(10,n)*a,o=Math.round(t/h),l=Math.round(e/h),o*h<t&&++o,l*h>e&&--l),l<o&&.5<=r&&r<2?ol(t,e,r*2):[o,l,h]}function g5(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const i=e<t,[n,s,a]=i?ol(e,t,r):ol(t,e,r);if(!(s>=n))return[];const o=s-n+1,l=new Array(o);if(i)if(a<0)for(let h=0;h<o;++h)l[h]=(s-h)/-a;else for(let h=0;h<o;++h)l[h]=(s-h)*a;else if(a<0)for(let h=0;h<o;++h)l[h]=(n+h)/-a;else for(let h=0;h<o;++h)l[h]=(n+h)*a;return l}function Hh(t,e,r){return e=+e,t=+t,r=+r,ol(t,e,r)[2]}function qh(t,e,r){e=+e,t=+t,r=+r;const i=e<t,n=i?Hh(e,t,r):Hh(t,e,r);return(i?-1:1)*(n<0?1/-n:n)}function y5(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function m5(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function b5(t){return t}var Yo=1,rh=2,Gh=3,ko=4,R0=1e-6;function _5(t){return"translate("+t+",0)"}function x5(t){return"translate(0,"+t+")"}function v5(t){return e=>+t(e)}function k5(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function w5(){return!this.__axis}function v2(t,e){var r=[],i=null,n=null,s=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===Yo||t===ko?-1:1,u=t===ko||t===rh?"x":"y",f=t===Yo||t===Gh?_5:x5;function d(p){var m=i??(e.ticks?e.ticks.apply(e,r):e.domain()),b=n??(e.tickFormat?e.tickFormat.apply(e,r):b5),x=Math.max(s,0)+o,k=e.range(),v=+k[0]+l,B=+k[k.length-1]+l,R=(e.bandwidth?k5:v5)(e.copy(),l),P=p.selection?p.selection():p,V=P.selectAll(".domain").data([null]),O=P.selectAll(".tick").data(m,e).order(),F=O.exit(),C=O.enter().append("g").attr("class","tick"),S=O.select("line"),E=O.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(C),S=S.merge(C.append("line").attr("stroke","currentColor").attr(u+"2",h*s)),E=E.merge(C.append("text").attr("fill","currentColor").attr(u,h*x).attr("dy",t===Yo?"0em":t===Gh?"0.71em":"0.32em")),p!==P&&(V=V.transition(p),O=O.transition(p),S=S.transition(p),E=E.transition(p),F=F.transition(p).attr("opacity",R0).attr("transform",function(_){return isFinite(_=R(_))?f(_+l):this.getAttribute("transform")}),C.attr("opacity",R0).attr("transform",function(_){var w=this.parentNode.__axis;return f((w&&isFinite(w=w(_))?w:R(_))+l)})),F.remove(),V.attr("d",t===ko||t===rh?a?"M"+h*a+","+v+"H"+l+"V"+B+"H"+h*a:"M"+l+","+v+"V"+B:a?"M"+v+","+h*a+"V"+l+"H"+B+"V"+h*a:"M"+v+","+l+"H"+B),O.attr("opacity",1).attr("transform",function(_){return f(R(_)+l)}),S.attr(u+"2",h*s),E.attr(u,h*x).text(b),P.filter(w5).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===rh?"start":t===ko?"end":"middle"),P.each(function(){this.__axis=R})}return d.scale=function(p){return arguments.length?(e=p,d):e},d.ticks=function(){return r=Array.from(arguments),d},d.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),d):r.slice()},d.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),d):i&&i.slice()},d.tickFormat=function(p){return arguments.length?(n=p,d):n},d.tickSize=function(p){return arguments.length?(s=a=+p,d):s},d.tickSizeInner=function(p){return arguments.length?(s=+p,d):s},d.tickSizeOuter=function(p){return arguments.length?(a=+p,d):a},d.tickPadding=function(p){return arguments.length?(o=+p,d):o},d.offset=function(p){return arguments.length?(l=+p,d):l},d}function T5(t){return v2(Yo,t)}function E5(t){return v2(Gh,t)}var C5={value:()=>{}};function k2(){for(var t=0,e=arguments.length,r={},i;t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new zo(r)}function zo(t){this._=t}function S5(t,e){return t.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}zo.prototype=k2.prototype={constructor:zo,on:function(t,e){var r=this._,i=S5(t+"",r),n,s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((n=(t=i[s]).type)&&(n=A5(r[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=i[s]).type)r[n]=O0(r[n],t.name,e);else if(e==null)for(n in r)r[n]=O0(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new zo(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,s;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],i=0,n=s.length;i<n;++i)s[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],n=0,s=i.length;n<s;++n)i[n].value.apply(e,r)}};function A5(t,e){for(var r=0,i=t.length,n;r<i;++r)if((n=t[r]).name===e)return n.value}function O0(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=C5,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:e,value:r}),t}var $h="http://www.w3.org/1999/xhtml";const F0={svg:"http://www.w3.org/2000/svg",xhtml:$h,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hc(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),F0.hasOwnProperty(e)?{space:F0[e],local:t}:t}function L5(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===$h&&e.documentElement.namespaceURI===$h?e.createElement(t):e.createElementNS(r,t)}}function B5(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function w2(t){var e=hc(t);return(e.local?B5:L5)(e)}function D5(){}function s1(t){return t==null?D5:function(){return this.querySelector(t)}}function I5(t){typeof t!="function"&&(t=s1(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=new Array(a),l,h,u=0;u<a;++u)(l=s[u])&&(h=t.call(l,l.__data__,u,s))&&("__data__"in l&&(h.__data__=l.__data__),o[u]=h);return new dr(i,this._parents)}function T2(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function M5(){return[]}function E2(t){return t==null?M5:function(){return this.querySelectorAll(t)}}function N5(t){return function(){return T2(t.apply(this,arguments))}}function R5(t){typeof t=="function"?t=N5(t):t=E2(t);for(var e=this._groups,r=e.length,i=[],n=[],s=0;s<r;++s)for(var a=e[s],o=a.length,l,h=0;h<o;++h)(l=a[h])&&(i.push(t.call(l,l.__data__,h,a)),n.push(l));return new dr(i,n)}function C2(t){return function(){return this.matches(t)}}function S2(t){return function(e){return e.matches(t)}}var O5=Array.prototype.find;function F5(t){return function(){return O5.call(this.children,t)}}function P5(){return this.firstElementChild}function V5(t){return this.select(t==null?P5:F5(typeof t=="function"?t:S2(t)))}var Y5=Array.prototype.filter;function z5(){return Array.from(this.children)}function U5(t){return function(){return Y5.call(this.children,t)}}function W5(t){return this.selectAll(t==null?z5:U5(typeof t=="function"?t:S2(t)))}function H5(t){typeof t!="function"&&(t=C2(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=[],l,h=0;h<a;++h)(l=s[h])&&t.call(l,l.__data__,h,s)&&o.push(l);return new dr(i,this._parents)}function A2(t){return new Array(t.length)}function q5(){return new dr(this._enter||this._groups.map(A2),this._parents)}function ll(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ll.prototype={constructor:ll,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function G5(t){return function(){return t}}function $5(t,e,r,i,n,s){for(var a=0,o,l=e.length,h=s.length;a<h;++a)(o=e[a])?(o.__data__=s[a],i[a]=o):r[a]=new ll(t,s[a]);for(;a<l;++a)(o=e[a])&&(n[a]=o)}function j5(t,e,r,i,n,s,a){var o,l,h=new Map,u=e.length,f=s.length,d=new Array(u),p;for(o=0;o<u;++o)(l=e[o])&&(d[o]=p=a.call(l,l.__data__,o,e)+"",h.has(p)?n[o]=l:h.set(p,l));for(o=0;o<f;++o)p=a.call(t,s[o],o,s)+"",(l=h.get(p))?(i[o]=l,l.__data__=s[o],h.delete(p)):r[o]=new ll(t,s[o]);for(o=0;o<u;++o)(l=e[o])&&h.get(d[o])===l&&(n[o]=l)}function X5(t){return t.__data__}function K5(t,e){if(!arguments.length)return Array.from(this,X5);var r=e?j5:$5,i=this._parents,n=this._groups;typeof t!="function"&&(t=G5(t));for(var s=n.length,a=new Array(s),o=new Array(s),l=new Array(s),h=0;h<s;++h){var u=i[h],f=n[h],d=f.length,p=Z5(t.call(u,u&&u.__data__,h,i)),m=p.length,b=o[h]=new Array(m),x=a[h]=new Array(m),k=l[h]=new Array(d);r(u,f,b,x,k,p,e);for(var v=0,B=0,R,P;v<m;++v)if(R=b[v]){for(v>=B&&(B=v+1);!(P=x[B])&&++B<m;);R._next=P||null}}return a=new dr(a,i),a._enter=o,a._exit=l,a}function Z5(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Q5(){return new dr(this._exit||this._groups.map(A2),this._parents)}function J5(t,e,r){var i=this.enter(),n=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),r==null?s.remove():r(s),i&&n?i.merge(n).order():n}function tb(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,s=i.length,a=Math.min(n,s),o=new Array(n),l=0;l<a;++l)for(var h=r[l],u=i[l],f=h.length,d=o[l]=new Array(f),p,m=0;m<f;++m)(p=h[m]||u[m])&&(d[m]=p);for(;l<n;++l)o[l]=r[l];return new dr(o,this._parents)}function eb(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i=t[e],n=i.length-1,s=i[n],a;--n>=0;)(a=i[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function rb(t){t||(t=ib);function e(f,d){return f&&d?t(f.__data__,d.__data__):!f-!d}for(var r=this._groups,i=r.length,n=new Array(i),s=0;s<i;++s){for(var a=r[s],o=a.length,l=n[s]=new Array(o),h,u=0;u<o;++u)(h=a[u])&&(l[u]=h);l.sort(e)}return new dr(n,this._parents).order()}function ib(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function nb(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function sb(){return Array.from(this)}function ab(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length;n<s;++n){var a=i[n];if(a)return a}return null}function ob(){let t=0;for(const e of this)++t;return t}function lb(){return!this.node()}function cb(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n=e[r],s=0,a=n.length,o;s<a;++s)(o=n[s])&&t.call(o,o.__data__,s,n);return this}function hb(t){return function(){this.removeAttribute(t)}}function ub(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fb(t,e){return function(){this.setAttribute(t,e)}}function db(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function pb(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function gb(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function yb(t,e){var r=hc(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?ub:hb:typeof e=="function"?r.local?gb:pb:r.local?db:fb)(r,e))}function L2(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mb(t){return function(){this.style.removeProperty(t)}}function bb(t,e,r){return function(){this.style.setProperty(t,e,r)}}function _b(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function xb(t,e,r){return arguments.length>1?this.each((e==null?mb:typeof e=="function"?_b:bb)(t,e,r??"")):vs(this.node(),t)}function vs(t,e){return t.style.getPropertyValue(e)||L2(t).getComputedStyle(t,null).getPropertyValue(e)}function vb(t){return function(){delete this[t]}}function kb(t,e){return function(){this[t]=e}}function wb(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Tb(t,e){return arguments.length>1?this.each((e==null?vb:typeof e=="function"?wb:kb)(t,e)):this.node()[t]}function B2(t){return t.trim().split(/^|\s+/)}function a1(t){return t.classList||new D2(t)}function D2(t){this._node=t,this._names=B2(t.getAttribute("class")||"")}D2.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function I2(t,e){for(var r=a1(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function M2(t,e){for(var r=a1(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function Eb(t){return function(){I2(this,t)}}function Cb(t){return function(){M2(this,t)}}function Sb(t,e){return function(){(e.apply(this,arguments)?I2:M2)(this,t)}}function Ab(t,e){var r=B2(t+"");if(arguments.length<2){for(var i=a1(this.node()),n=-1,s=r.length;++n<s;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof e=="function"?Sb:e?Eb:Cb)(r,e))}function Lb(){this.textContent=""}function Bb(t){return function(){this.textContent=t}}function Db(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Ib(t){return arguments.length?this.each(t==null?Lb:(typeof t=="function"?Db:Bb)(t)):this.node().textContent}function Mb(){this.innerHTML=""}function Nb(t){return function(){this.innerHTML=t}}function Rb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ob(t){return arguments.length?this.each(t==null?Mb:(typeof t=="function"?Rb:Nb)(t)):this.node().innerHTML}function Fb(){this.nextSibling&&this.parentNode.appendChild(this)}function Pb(){return this.each(Fb)}function Vb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yb(){return this.each(Vb)}function zb(t){var e=typeof t=="function"?t:w2(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ub(){return null}function Wb(t,e){var r=typeof t=="function"?t:w2(t),i=e==null?Ub:typeof e=="function"?e:s1(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Hb(){var t=this.parentNode;t&&t.removeChild(this)}function qb(){return this.each(Hb)}function Gb(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function $b(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function jb(t){return this.select(t?$b:Gb)}function Xb(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Kb(t){return function(e){t.call(this,e,this.__data__)}}function Zb(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function Qb(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,n=e.length,s;r<n;++r)s=e[r],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function Jb(t,e,r){return function(){var i=this.__on,n,s=Kb(e);if(i){for(var a=0,o=i.length;a<o;++a)if((n=i[a]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=r),n.value=e;return}}this.addEventListener(t.type,s,r),n={type:t.type,name:t.name,value:e,listener:s,options:r},i?i.push(n):this.__on=[n]}}function t_(t,e,r){var i=Zb(t+""),n,s=i.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,h=o.length,u;l<h;++l)for(n=0,u=o[l];n<s;++n)if((a=i[n]).type===u.type&&a.name===u.name)return u.value}return}for(o=e?Jb:Qb,n=0;n<s;++n)this.each(o(i[n],e,r));return this}function N2(t,e,r){var i=L2(t),n=i.CustomEvent;typeof n=="function"?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function e_(t,e){return function(){return N2(this,t,e)}}function r_(t,e){return function(){return N2(this,t,e.apply(this,arguments))}}function i_(t,e){return this.each((typeof e=="function"?r_:e_)(t,e))}function*n_(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length,a;n<s;++n)(a=i[n])&&(yield a)}var o1=[null];function dr(t,e){this._groups=t,this._parents=e}function io(){return new dr([[document.documentElement]],o1)}function s_(){return this}dr.prototype=io.prototype={constructor:dr,select:I5,selectAll:R5,selectChild:V5,selectChildren:W5,filter:H5,data:K5,enter:q5,exit:Q5,join:J5,merge:tb,selection:s_,order:eb,sort:rb,call:nb,nodes:sb,node:ab,size:ob,empty:lb,each:cb,attr:yb,style:xb,property:Tb,classed:Ab,text:Ib,html:Ob,raise:Pb,lower:Yb,append:zb,insert:Wb,remove:qb,clone:jb,datum:Xb,on:t_,dispatch:i_,[Symbol.iterator]:n_};function _t(t){return typeof t=="string"?new dr([[document.querySelector(t)]],[document.documentElement]):new dr([[t]],o1)}function l1(t){return typeof t=="string"?new dr([document.querySelectorAll(t)],[document.documentElement]):new dr([T2(t)],o1)}function no(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function uc(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function qn(){}var Sa=.7,cl=1/Sa,ps="\\s*([+-]?\\d+)\\s*",Aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a_=/^#([0-9a-f]{3,8})$/,o_=new RegExp(`^rgb\\(${ps},${ps},${ps}\\)$`),l_=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),c_=new RegExp(`^rgba\\(${ps},${ps},${ps},${Aa}\\)$`),h_=new RegExp(`^rgba\\(${di},${di},${di},${Aa}\\)$`),u_=new RegExp(`^hsl\\(${Aa},${di},${di}\\)$`),f_=new RegExp(`^hsla\\(${Aa},${di},${di},${Aa}\\)$`),P0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};no(qn,Dn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:V0,formatHex:V0,formatHex8:d_,formatHsl:p_,formatRgb:Y0,toString:Y0});function V0(){return this.rgb().formatHex()}function d_(){return this.rgb().formatHex8()}function p_(){return O2(this).formatHsl()}function Y0(){return this.rgb().formatRgb()}function Dn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=a_.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?z0(e):r===3?new sr(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?wo(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?wo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=o_.exec(t))?new sr(e[1],e[2],e[3],1):(e=l_.exec(t))?new sr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=c_.exec(t))?wo(e[1],e[2],e[3],e[4]):(e=h_.exec(t))?wo(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=u_.exec(t))?H0(e[1],e[2]/100,e[3]/100,1):(e=f_.exec(t))?H0(e[1],e[2]/100,e[3]/100,e[4]):P0.hasOwnProperty(t)?z0(P0[t]):t==="transparent"?new sr(NaN,NaN,NaN,0):null}function z0(t){return new sr(t>>16&255,t>>8&255,t&255,1)}function wo(t,e,r,i){return i<=0&&(t=e=r=NaN),new sr(t,e,r,i)}function R2(t){return t instanceof qn||(t=Dn(t)),t?(t=t.rgb(),new sr(t.r,t.g,t.b,t.opacity)):new sr}function jh(t,e,r,i){return arguments.length===1?R2(t):new sr(t,e,r,i??1)}function sr(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}no(sr,jh,uc(qn,{brighter(t){return t=t==null?cl:Math.pow(cl,t),new sr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Sa:Math.pow(Sa,t),new sr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new sr(Ln(this.r),Ln(this.g),Ln(this.b),hl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U0,formatHex:U0,formatHex8:g_,formatRgb:W0,toString:W0}));function U0(){return`#${An(this.r)}${An(this.g)}${An(this.b)}`}function g_(){return`#${An(this.r)}${An(this.g)}${An(this.b)}${An((isNaN(this.opacity)?1:this.opacity)*255)}`}function W0(){const t=hl(this.opacity);return`${t===1?"rgb(":"rgba("}${Ln(this.r)}, ${Ln(this.g)}, ${Ln(this.b)}${t===1?")":`, ${t})`}`}function hl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ln(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function An(t){return t=Ln(t),(t<16?"0":"")+t.toString(16)}function H0(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Gr(t,e,r,i)}function O2(t){if(t instanceof Gr)return new Gr(t.h,t.s,t.l,t.opacity);if(t instanceof qn||(t=Dn(t)),!t)return new Gr;if(t instanceof Gr)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),s=Math.max(e,r,i),a=NaN,o=s-n,l=(s+n)/2;return o?(e===s?a=(r-i)/o+(r<i)*6:r===s?a=(i-e)/o+2:a=(e-r)/o+4,o/=l<.5?s+n:2-s-n,a*=60):o=l>0&&l<1?0:a,new Gr(a,o,l,t.opacity)}function y_(t,e,r,i){return arguments.length===1?O2(t):new Gr(t,e,r,i??1)}function Gr(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}no(Gr,y_,uc(qn,{brighter(t){return t=t==null?cl:Math.pow(cl,t),new Gr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Sa:Math.pow(Sa,t),new Gr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new sr(ih(t>=240?t-240:t+120,n,i),ih(t,n,i),ih(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new Gr(q0(this.h),To(this.s),To(this.l),hl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=hl(this.opacity);return`${t===1?"hsl(":"hsla("}${q0(this.h)}, ${To(this.s)*100}%, ${To(this.l)*100}%${t===1?")":`, ${t})`}`}}));function q0(t){return t=(t||0)%360,t<0?t+360:t}function To(t){return Math.max(0,Math.min(1,t||0))}function ih(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const m_=Math.PI/180,b_=180/Math.PI,ul=18,F2=.96422,P2=1,V2=.82521,Y2=4/29,gs=6/29,z2=3*gs*gs,__=gs*gs*gs;function U2(t){if(t instanceof pi)return new pi(t.l,t.a,t.b,t.opacity);if(t instanceof Oi)return W2(t);t instanceof sr||(t=R2(t));var e=oh(t.r),r=oh(t.g),i=oh(t.b),n=nh((.2225045*e+.7168786*r+.0606169*i)/P2),s,a;return e===r&&r===i?s=a=n:(s=nh((.4360747*e+.3850649*r+.1430804*i)/F2),a=nh((.0139322*e+.0971045*r+.7141733*i)/V2)),new pi(116*n-16,500*(s-n),200*(n-a),t.opacity)}function x_(t,e,r,i){return arguments.length===1?U2(t):new pi(t,e,r,i??1)}function pi(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}no(pi,x_,uc(qn,{brighter(t){return new pi(this.l+ul*(t??1),this.a,this.b,this.opacity)},darker(t){return new pi(this.l-ul*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=F2*sh(e),t=P2*sh(t),r=V2*sh(r),new sr(ah(3.1338561*e-1.6168667*t-.4906146*r),ah(-.9787684*e+1.9161415*t+.033454*r),ah(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function nh(t){return t>__?Math.pow(t,1/3):t/z2+Y2}function sh(t){return t>gs?t*t*t:z2*(t-Y2)}function ah(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function oh(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function v_(t){if(t instanceof Oi)return new Oi(t.h,t.c,t.l,t.opacity);if(t instanceof pi||(t=U2(t)),t.a===0&&t.b===0)return new Oi(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*b_;return new Oi(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Xh(t,e,r,i){return arguments.length===1?v_(t):new Oi(t,e,r,i??1)}function Oi(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function W2(t){if(isNaN(t.h))return new pi(t.l,0,0,t.opacity);var e=t.h*m_;return new pi(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}no(Oi,Xh,uc(qn,{brighter(t){return new Oi(this.h,this.c,this.l+ul*(t??1),this.opacity)},darker(t){return new Oi(this.h,this.c,this.l-ul*(t??1),this.opacity)},rgb(){return W2(this).rgb()}}));const fc=t=>()=>t;function H2(t,e){return function(r){return t+r*e}}function k_(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function w_(t,e){var r=e-t;return r?H2(t,r>180||r<-180?r-360*Math.round(r/360):r):fc(isNaN(t)?e:t)}function T_(t){return(t=+t)==1?ga:function(e,r){return r-e?k_(e,r,t):fc(isNaN(e)?r:e)}}function ga(t,e){var r=e-t;return r?H2(t,r):fc(isNaN(t)?e:t)}const fl=function t(e){var r=T_(e);function i(n,s){var a=r((n=jh(n)).r,(s=jh(s)).r),o=r(n.g,s.g),l=r(n.b,s.b),h=ga(n.opacity,s.opacity);return function(u){return n.r=a(u),n.g=o(u),n.b=l(u),n.opacity=h(u),n+""}}return i.gamma=t,i}(1);function E_(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),n;return function(s){for(n=0;n<r;++n)i[n]=t[n]*(1-s)+e[n]*s;return i}}function C_(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function S_(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,n=new Array(i),s=new Array(r),a;for(a=0;a<i;++a)n[a]=c1(t[a],e[a]);for(;a<r;++a)s[a]=e[a];return function(o){for(a=0;a<i;++a)s[a]=n[a](o);return s}}function A_(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}function qr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function L_(t,e){var r={},i={},n;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(n in e)n in t?r[n]=c1(t[n],e[n]):i[n]=e[n];return function(s){for(n in r)i[n]=r[n](s);return i}}var Kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lh=new RegExp(Kh.source,"g");function B_(t){return function(){return t}}function D_(t){return function(e){return t(e)+""}}function q2(t,e){var r=Kh.lastIndex=lh.lastIndex=0,i,n,s,a=-1,o=[],l=[];for(t=t+"",e=e+"";(i=Kh.exec(t))&&(n=lh.exec(e));)(s=n.index)>r&&(s=e.slice(r,s),o[a]?o[a]+=s:o[++a]=s),(i=i[0])===(n=n[0])?o[a]?o[a]+=n:o[++a]=n:(o[++a]=null,l.push({i:a,x:qr(i,n)})),r=lh.lastIndex;return r<e.length&&(s=e.slice(r),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?D_(l[0].x):B_(e):(e=l.length,function(h){for(var u=0,f;u<e;++u)o[(f=l[u]).i]=f.x(h);return o.join("")})}function c1(t,e){var r=typeof e,i;return e==null||r==="boolean"?fc(e):(r==="number"?qr:r==="string"?(i=Dn(e))?(e=i,fl):q2:e instanceof Dn?fl:e instanceof Date?A_:C_(e)?E_:Array.isArray(e)?S_:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?L_:qr)(t,e)}function I_(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var G0=180/Math.PI,Zh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function G2(t,e,r,i,n,s){var a,o,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),t*i<e*r&&(t=-t,e=-e,l=-l,a=-a),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*G0,skewX:Math.atan(l)*G0,scaleX:a,scaleY:o}}var Eo;function M_(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Zh:G2(e.a,e.b,e.c,e.d,e.e,e.f)}function N_(t){return t==null||(Eo||(Eo=document.createElementNS("http://www.w3.org/2000/svg","g")),Eo.setAttribute("transform",t),!(t=Eo.transform.baseVal.consolidate()))?Zh:(t=t.matrix,G2(t.a,t.b,t.c,t.d,t.e,t.f))}function $2(t,e,r,i){function n(h){return h.length?h.pop()+" ":""}function s(h,u,f,d,p,m){if(h!==f||u!==d){var b=p.push("translate(",null,e,null,r);m.push({i:b-4,x:qr(h,f)},{i:b-2,x:qr(u,d)})}else(f||d)&&p.push("translate("+f+e+d+r)}function a(h,u,f,d){h!==u?(h-u>180?u+=360:u-h>180&&(h+=360),d.push({i:f.push(n(f)+"rotate(",null,i)-2,x:qr(h,u)})):u&&f.push(n(f)+"rotate("+u+i)}function o(h,u,f,d){h!==u?d.push({i:f.push(n(f)+"skewX(",null,i)-2,x:qr(h,u)}):u&&f.push(n(f)+"skewX("+u+i)}function l(h,u,f,d,p,m){if(h!==f||u!==d){var b=p.push(n(p)+"scale(",null,",",null,")");m.push({i:b-4,x:qr(h,f)},{i:b-2,x:qr(u,d)})}else(f!==1||d!==1)&&p.push(n(p)+"scale("+f+","+d+")")}return function(h,u){var f=[],d=[];return h=t(h),u=t(u),s(h.translateX,h.translateY,u.translateX,u.translateY,f,d),a(h.rotate,u.rotate,f,d),o(h.skewX,u.skewX,f,d),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,f,d),h=u=null,function(p){for(var m=-1,b=d.length,x;++m<b;)f[(x=d[m]).i]=x.x(p);return f.join("")}}}var R_=$2(M_,"px, ","px)","deg)"),O_=$2(N_,", ",")",")");function F_(t){return function(e,r){var i=t((e=Xh(e)).h,(r=Xh(r)).h),n=ga(e.c,r.c),s=ga(e.l,r.l),a=ga(e.opacity,r.opacity);return function(o){return e.h=i(o),e.c=n(o),e.l=s(o),e.opacity=a(o),e+""}}}const P_=F_(w_);var ks=0,la=0,Zs=0,j2=1e3,dl,ca,pl=0,In=0,dc=0,La=typeof performance=="object"&&performance.now?performance:Date,X2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function h1(){return In||(X2(V_),In=La.now()+dc)}function V_(){In=0}function gl(){this._call=this._time=this._next=null}gl.prototype=K2.prototype={constructor:gl,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?h1():+r)+(e==null?0:+e),!this._next&&ca!==this&&(ca?ca._next=this:dl=this,ca=this),this._call=t,this._time=r,Qh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qh())}};function K2(t,e,r){var i=new gl;return i.restart(t,e,r),i}function Y_(){h1(),++ks;for(var t=dl,e;t;)(e=In-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ks}function $0(){In=(pl=La.now())+dc,ks=la=0;try{Y_()}finally{ks=0,U_(),In=0}}function z_(){var t=La.now(),e=t-pl;e>j2&&(dc-=e,pl=t)}function U_(){for(var t,e=dl,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:dl=r);ca=t,Qh(i)}function Qh(t){if(!ks){la&&(la=clearTimeout(la));var e=t-In;e>24?(t<1/0&&(la=setTimeout($0,t-La.now()-dc)),Zs&&(Zs=clearInterval(Zs))):(Zs||(pl=La.now(),Zs=setInterval(z_,j2)),ks=1,X2($0))}}function j0(t,e,r){var i=new gl;return e=e==null?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,r),i}var W_=k2("start","end","cancel","interrupt"),H_=[],Z2=0,X0=1,Jh=2,Uo=3,K0=4,tu=5,Wo=6;function pc(t,e,r,i,n,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;q_(t,r,{name:e,index:i,group:n,on:W_,tween:H_,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Z2})}function u1(t,e){var r=ri(t,e);if(r.state>Z2)throw new Error("too late; already scheduled");return r}function _i(t,e){var r=ri(t,e);if(r.state>Uo)throw new Error("too late; already running");return r}function ri(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function q_(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=K2(s,0,r.time);function s(h){r.state=X0,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}function a(h){var u,f,d,p;if(r.state!==X0)return l();for(u in i)if(p=i[u],p.name===r.name){if(p.state===Uo)return j0(a);p.state===K0?(p.state=Wo,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[u]):+u<e&&(p.state=Wo,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete i[u])}if(j0(function(){r.state===Uo&&(r.state=K0,r.timer.restart(o,r.delay,r.time),o(h))}),r.state=Jh,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Jh){for(r.state=Uo,n=new Array(d=r.tween.length),u=0,f=-1;u<d;++u)(p=r.tween[u].value.call(t,t.__data__,r.index,r.group))&&(n[++f]=p);n.length=f+1}}function o(h){for(var u=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(l),r.state=tu,1),f=-1,d=n.length;++f<d;)n[f].call(t,u);r.state===tu&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=Wo,r.timer.stop(),delete i[e];for(var h in i)return;delete t.__transition}}function G_(t,e){var r=t.__transition,i,n,s=!0,a;if(r){e=e==null?null:e+"";for(a in r){if((i=r[a]).name!==e){s=!1;continue}n=i.state>Jh&&i.state<tu,i.state=Wo,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[a]}s&&delete t.__transition}}function $_(t){return this.each(function(){G_(this,t)})}function j_(t,e){var r,i;return function(){var n=_i(this,t),s=n.tween;if(s!==r){i=r=s;for(var a=0,o=i.length;a<o;++a)if(i[a].name===e){i=i.slice(),i.splice(a,1);break}}n.tween=i}}function X_(t,e,r){var i,n;if(typeof r!="function")throw new Error;return function(){var s=_i(this,t),a=s.tween;if(a!==i){n=(i=a).slice();for(var o={name:e,value:r},l=0,h=n.length;l<h;++l)if(n[l].name===e){n[l]=o;break}l===h&&n.push(o)}s.tween=n}}function K_(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i=ri(this.node(),r).tween,n=0,s=i.length,a;n<s;++n)if((a=i[n]).name===t)return a.value;return null}return this.each((e==null?j_:X_)(r,t,e))}function f1(t,e,r){var i=t._id;return t.each(function(){var n=_i(this,i);(n.value||(n.value={}))[e]=r.apply(this,arguments)}),function(n){return ri(n,i).value[e]}}function Q2(t,e){var r;return(typeof e=="number"?qr:e instanceof Dn?fl:(r=Dn(e))?(e=r,fl):q2)(t,e)}function Z_(t){return function(){this.removeAttribute(t)}}function Q_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function J_(t,e,r){var i,n=r+"",s;return function(){var a=this.getAttribute(t);return a===n?null:a===i?s:s=e(i=a,r)}}function tx(t,e,r){var i,n=r+"",s;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===i?s:s=e(i=a,r)}}function ex(t,e,r){var i,n,s;return function(){var a,o=r(this),l;return o==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=o+"",a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o)))}}function rx(t,e,r){var i,n,s;return function(){var a,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=o+"",a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o)))}}function ix(t,e){var r=hc(t),i=r==="transform"?O_:Q2;return this.attrTween(t,typeof e=="function"?(r.local?rx:ex)(r,i,f1(this,"attr."+t,e)):e==null?(r.local?Q_:Z_)(r):(r.local?tx:J_)(r,i,e))}function nx(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function sx(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function ax(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&sx(t,s)),r}return n._value=e,n}function ox(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&nx(t,s)),r}return n._value=e,n}function lx(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=hc(t);return this.tween(r,(i.local?ax:ox)(i,e))}function cx(t,e){return function(){u1(this,t).delay=+e.apply(this,arguments)}}function hx(t,e){return e=+e,function(){u1(this,t).delay=e}}function ux(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?cx:hx)(e,t)):ri(this.node(),e).delay}function fx(t,e){return function(){_i(this,t).duration=+e.apply(this,arguments)}}function dx(t,e){return e=+e,function(){_i(this,t).duration=e}}function px(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?fx:dx)(e,t)):ri(this.node(),e).duration}function gx(t,e){if(typeof e!="function")throw new Error;return function(){_i(this,t).ease=e}}function yx(t){var e=this._id;return arguments.length?this.each(gx(e,t)):ri(this.node(),e).ease}function mx(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;_i(this,t).ease=r}}function bx(t){if(typeof t!="function")throw new Error;return this.each(mx(this._id,t))}function _x(t){typeof t!="function"&&(t=C2(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=[],l,h=0;h<a;++h)(l=s[h])&&t.call(l,l.__data__,h,s)&&o.push(l);return new qi(i,this._parents,this._name,this._id)}function xx(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,s=Math.min(i,n),a=new Array(i),o=0;o<s;++o)for(var l=e[o],h=r[o],u=l.length,f=a[o]=new Array(u),d,p=0;p<u;++p)(d=l[p]||h[p])&&(f[p]=d);for(;o<i;++o)a[o]=e[o];return new qi(a,this._parents,this._name,this._id)}function vx(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function kx(t,e,r){var i,n,s=vx(e)?u1:_i;return function(){var a=s(this,t),o=a.on;o!==i&&(n=(i=o).copy()).on(e,r),a.on=n}}function wx(t,e){var r=this._id;return arguments.length<2?ri(this.node(),r).on.on(t):this.each(kx(r,t,e))}function Tx(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Ex(){return this.on("end.remove",Tx(this._id))}function Cx(t){var e=this._name,r=this._id;typeof t!="function"&&(t=s1(t));for(var i=this._groups,n=i.length,s=new Array(n),a=0;a<n;++a)for(var o=i[a],l=o.length,h=s[a]=new Array(l),u,f,d=0;d<l;++d)(u=o[d])&&(f=t.call(u,u.__data__,d,o))&&("__data__"in u&&(f.__data__=u.__data__),h[d]=f,pc(h[d],e,r,d,h,ri(u,r)));return new qi(s,this._parents,e,r)}function Sx(t){var e=this._name,r=this._id;typeof t!="function"&&(t=E2(t));for(var i=this._groups,n=i.length,s=[],a=[],o=0;o<n;++o)for(var l=i[o],h=l.length,u,f=0;f<h;++f)if(u=l[f]){for(var d=t.call(u,u.__data__,f,l),p,m=ri(u,r),b=0,x=d.length;b<x;++b)(p=d[b])&&pc(p,e,r,b,d,m);s.push(d),a.push(u)}return new qi(s,a,e,r)}var Ax=io.prototype.constructor;function Lx(){return new Ax(this._groups,this._parents)}function Bx(t,e){var r,i,n;return function(){var s=vs(this,t),a=(this.style.removeProperty(t),vs(this,t));return s===a?null:s===r&&a===i?n:n=e(r=s,i=a)}}function J2(t){return function(){this.style.removeProperty(t)}}function Dx(t,e,r){var i,n=r+"",s;return function(){var a=vs(this,t);return a===n?null:a===i?s:s=e(i=a,r)}}function Ix(t,e,r){var i,n,s;return function(){var a=vs(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),vs(this,t))),a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o))}}function Mx(t,e){var r,i,n,s="style."+e,a="end."+s,o;return function(){var l=_i(this,t),h=l.on,u=l.value[s]==null?o||(o=J2(e)):void 0;(h!==r||n!==u)&&(i=(r=h).copy()).on(a,n=u),l.on=i}}function Nx(t,e,r){var i=(t+="")=="transform"?R_:Q2;return e==null?this.styleTween(t,Bx(t,i)).on("end.style."+t,J2(t)):typeof e=="function"?this.styleTween(t,Ix(t,i,f1(this,"style."+t,e))).each(Mx(this._id,t)):this.styleTween(t,Dx(t,i,e),r).on("end.style."+t,null)}function Rx(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function Ox(t,e,r){var i,n;function s(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&Rx(t,a,r)),i}return s._value=e,s}function Fx(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Ox(t,e,r??""))}function Px(t){return function(){this.textContent=t}}function Vx(t){return function(){var e=t(this);this.textContent=e??""}}function Yx(t){return this.tween("text",typeof t=="function"?Vx(f1(this,"text",t)):Px(t==null?"":t+""))}function zx(t){return function(e){this.textContent=t.call(this,e)}}function Ux(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&zx(n)),e}return i._value=t,i}function Wx(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Ux(t))}function Hx(){for(var t=this._name,e=this._id,r=tp(),i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],o=a.length,l,h=0;h<o;++h)if(l=a[h]){var u=ri(l,e);pc(l,t,r,h,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new qi(i,this._parents,t,r)}function qx(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--n===0&&s()}};r.each(function(){var h=_i(this,i),u=h.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),h.on=e}),n===0&&s()})}var Gx=0;function qi(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function tp(){return++Gx}var Ci=io.prototype;qi.prototype={constructor:qi,select:Cx,selectAll:Sx,selectChild:Ci.selectChild,selectChildren:Ci.selectChildren,filter:_x,merge:xx,selection:Lx,transition:Hx,call:Ci.call,nodes:Ci.nodes,node:Ci.node,size:Ci.size,empty:Ci.empty,each:Ci.each,on:wx,attr:ix,attrTween:lx,style:Nx,styleTween:Fx,text:Yx,textTween:Wx,remove:Ex,tween:K_,delay:ux,duration:px,ease:yx,easeVarying:bx,end:qx,[Symbol.iterator]:Ci[Symbol.iterator]};function $x(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var jx={time:null,delay:0,duration:250,ease:$x};function Xx(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function Kx(t){var e,r;t instanceof qi?(e=t._id,t=t._name):(e=tp(),(r=jx).time=h1(),t=t==null?null:t+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],o=a.length,l,h=0;h<o;++h)(l=a[h])&&pc(l,t,e,h,a,r||Xx(l,e));return new qi(i,this._parents,t,e)}io.prototype.interrupt=$_;io.prototype.transition=Kx;const eu=Math.PI,ru=2*eu,Tn=1e-6,Zx=ru-Tn;function ep(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function Qx(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ep;const r=10**e;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class Jx{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ep:Qx(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,n){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,r,i,n,s,a){this._append`C${+e},${+r},${+i},${+n},${this._x1=+s},${this._y1=+a}`}arcTo(e,r,i,n,s){if(e=+e,r=+r,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=i-e,h=n-r,u=a-e,f=o-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(d>Tn)if(!(Math.abs(f*l-h*u)>Tn)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let p=i-a,m=n-o,b=l*l+h*h,x=p*p+m*m,k=Math.sqrt(b),v=Math.sqrt(d),B=s*Math.tan((eu-Math.acos((b+d-x)/(2*k*v)))/2),R=B/v,P=B/k;Math.abs(R-1)>Tn&&this._append`L${e+R*u},${r+R*f}`,this._append`A${s},${s},0,0,${+(f*p>u*m)},${this._x1=e+P*l},${this._y1=r+P*h}`}}arc(e,r,i,n,s,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),l=i*Math.sin(n),h=e+o,u=r+l,f=1^a,d=a?n-s:s-n;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>Tn||Math.abs(this._y1-u)>Tn)&&this._append`L${h},${u}`,i&&(d<0&&(d=d%ru+ru),d>Zx?this._append`A${i},${i},0,1,${f},${e-o},${r-l}A${i},${i},0,1,${f},${this._x1=h},${this._y1=u}`:d>Tn&&this._append`A${i},${i},0,${+(d>=eu)},${f},${this._x1=e+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(e,r,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function t6(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function e6(t,e){return fetch(t,e).then(t6)}function r6(t){return(e,r)=>e6(e,r).then(i=>new DOMParser().parseFromString(i,t))}var i6=r6("image/svg+xml");function n6(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function yl(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function ws(t){return t=yl(Math.abs(t)),t?t[1]:NaN}function s6(t,e){return function(r,i){for(var n=r.length,s=[],a=0,o=t[0],l=0;n>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),s.push(r.substring(n-=o,n+o)),!((l+=o+1)>i));)o=t[a=(a+1)%t.length];return s.reverse().join(e)}}function a6(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var o6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ml(t){if(!(e=o6.exec(t)))throw new Error("invalid format: "+t);var e;return new d1({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}ml.prototype=d1.prototype;function d1(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}d1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l6(t){t:for(var e=t.length,r=1,i=-1,n;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(n+1):t}var rp;function c6(t,e){var r=yl(t,e);if(!r)return t+"";var i=r[0],n=r[1],s=n-(rp=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+yl(t,Math.max(0,e+s-1))[0]}function Z0(t,e){var r=yl(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}const Q0={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:n6,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Z0(t*100,e),r:Z0,s:c6,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function J0(t){return t}var tf=Array.prototype.map,ef=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h6(t){var e=t.grouping===void 0||t.thousands===void 0?J0:s6(tf.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?J0:a6(tf.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function h(f){f=ml(f);var d=f.fill,p=f.align,m=f.sign,b=f.symbol,x=f.zero,k=f.width,v=f.comma,B=f.precision,R=f.trim,P=f.type;P==="n"?(v=!0,P="g"):Q0[P]||(B===void 0&&(B=12),R=!0,P="g"),(x||d==="0"&&p==="=")&&(x=!0,d="0",p="=");var V=b==="$"?r:b==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",O=b==="$"?i:/[%p]/.test(P)?a:"",F=Q0[P],C=/[defgprs%]/.test(P);B=B===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,B)):Math.max(0,Math.min(20,B));function S(E){var _=V,w=O,g,D,y;if(P==="c")w=F(E)+w,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?l:F(Math.abs(E),B),R&&(E=l6(E)),N&&+E==0&&m!=="+"&&(N=!1),_=(N?m==="("?m:o:m==="-"||m==="("?"":m)+_,w=(P==="s"?ef[8+rp/3]:"")+w+(N&&m==="("?")":""),C){for(g=-1,D=E.length;++g<D;)if(y=E.charCodeAt(g),48>y||y>57){w=(y===46?n+E.slice(g+1):E.slice(g))+w,E=E.slice(0,g);break}}}v&&!x&&(E=e(E,1/0));var nt=_.length+E.length+w.length,Y=nt<k?new Array(k-nt+1).join(d):"";switch(v&&x&&(E=e(Y+E,Y.length?k-w.length:1/0),Y=""),p){case"<":E=_+E+w+Y;break;case"=":E=_+Y+E+w;break;case"^":E=Y.slice(0,nt=Y.length>>1)+_+E+w+Y.slice(nt);break;default:E=Y+_+E+w;break}return s(E)}return S.toString=function(){return f+""},S}function u(f,d){var p=h((f=ml(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(ws(d)/3)))*3,b=Math.pow(10,-m),x=ef[8+m/3];return function(k){return p(b*k)+x}}return{format:h,formatPrefix:u}}var Co,ip,np;u6({thousands:",",grouping:[3],currency:["$",""]});function u6(t){return Co=h6(t),ip=Co.format,np=Co.formatPrefix,Co}function f6(t){return Math.max(0,-ws(Math.abs(t)))}function d6(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ws(e)/3)))*3-ws(Math.abs(t)))}function p6(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ws(e)-ws(t))+1}function p1(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const rf=Symbol("implicit");function sp(){var t=new M0,e=[],r=[],i=rf;function n(s){let a=t.get(s);if(a===void 0){if(i!==rf)return i;t.set(s,a=e.push(s)-1)}return r[a%r.length]}return n.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new M0;for(const a of s)t.has(a)||t.set(a,e.push(a)-1);return n},n.range=function(s){return arguments.length?(r=Array.from(s),n):r.slice()},n.unknown=function(s){return arguments.length?(i=s,n):i},n.copy=function(){return sp(e,r).unknown(i)},p1.apply(n,arguments),n}function g6(t){return function(){return t}}function y6(t){return+t}var nf=[0,1];function as(t){return t}function iu(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:g6(isNaN(e)?NaN:.5)}function m6(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function b6(t,e,r){var i=t[0],n=t[1],s=e[0],a=e[1];return n<i?(i=iu(n,i),s=r(a,s)):(i=iu(i,n),s=r(s,a)),function(o){return s(i(o))}}function _6(t,e,r){var i=Math.min(t.length,e.length)-1,n=new Array(i),s=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)n[a]=iu(t[a],t[a+1]),s[a]=r(e[a],e[a+1]);return function(o){var l=l5(t,o,1,i)-1;return s[l](n[l](o))}}function ap(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function x6(){var t=nf,e=nf,r=c1,i,n,s,a=as,o,l,h;function u(){var d=Math.min(t.length,e.length);return a!==as&&(a=m6(t[0],t[d-1])),o=d>2?_6:b6,l=h=null,f}function f(d){return d==null||isNaN(d=+d)?s:(l||(l=o(t.map(i),e,r)))(i(a(d)))}return f.invert=function(d){return a(n((h||(h=o(e,t.map(i),qr)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,y6),u()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),u()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),r=I_,u()},f.clamp=function(d){return arguments.length?(a=d?!0:as,u()):a!==as},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(s=d,f):s},function(d,p){return i=d,n=p,u()}}function op(){return x6()(as,as)}function v6(t,e,r,i){var n=qh(t,e,r),s;switch(i=ml(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(s=d6(n,a))&&(i.precision=s),np(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=p6(n,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=f6(n))&&(i.precision=s-(i.type==="%")*2);break}}return ip(i)}function k6(t){var e=t.domain;return t.ticks=function(r){var i=e();return g5(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var n=e();return v6(n[0],n[n.length-1],r??10,i)},t.nice=function(r){r==null&&(r=10);var i=e(),n=0,s=i.length-1,a=i[n],o=i[s],l,h,u=10;for(o<a&&(h=a,a=o,o=h,h=n,n=s,s=h);u-- >0;){if(h=Hh(a,o,r),h===l)return i[n]=a,i[s]=o,e(i);if(h>0)a=Math.floor(a/h)*h,o=Math.ceil(o/h)*h;else if(h<0)a=Math.ceil(a*h)/h,o=Math.floor(o*h)/h;else break;l=h}return t},t}function lp(){var t=op();return t.copy=function(){return ap(t,lp())},p1.apply(t,arguments),k6(t)}function w6(t,e){t=t.slice();var r=0,i=t.length-1,n=t[r],s=t[i],a;return s<n&&(a=r,r=i,i=a,a=n,n=s,s=a),t[r]=e.floor(n),t[i]=e.ceil(s),t}const ch=new Date,hh=new Date;function He(t,e,r,i){function n(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return n.floor=s=>(t(s=new Date(+s)),s),n.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),n.round=s=>{const a=n(s),o=n.ceil(s);return s-a<o-s?a:o},n.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),n.range=(s,a,o)=>{const l=[];if(s=n.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let h;do l.push(h=new Date(+s)),e(s,o),t(s);while(h<s&&s<a);return l},n.filter=s=>He(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;e(a,-1),!s(a););else for(;--o>=0;)for(;e(a,1),!s(a););}),r&&(n.count=(s,a)=>(ch.setTime(+s),hh.setTime(+a),t(ch),t(hh),Math.floor(r(ch,hh))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(i?a=>i(a)%s===0:a=>n.count(0,a)%s===0):n)),n}const bl=He(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);bl.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?He(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):bl);bl.range;const Fi=1e3,Vr=Fi*60,Pi=Vr*60,Gi=Pi*24,g1=Gi*7,sf=Gi*30,uh=Gi*365,os=He(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Fi)},(t,e)=>(e-t)/Fi,t=>t.getUTCSeconds());os.range;const Ba=He(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi)},(t,e)=>{t.setTime(+t+e*Vr)},(t,e)=>(e-t)/Vr,t=>t.getMinutes());Ba.range;const T6=He(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Vr)},(t,e)=>(e-t)/Vr,t=>t.getUTCMinutes());T6.range;const Da=He(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi-t.getMinutes()*Vr)},(t,e)=>{t.setTime(+t+e*Pi)},(t,e)=>(e-t)/Pi,t=>t.getHours());Da.range;const E6=He(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Pi)},(t,e)=>(e-t)/Pi,t=>t.getUTCHours());E6.range;const Mn=He(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Vr)/Gi,t=>t.getDate()-1);Mn.range;const y1=He(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gi,t=>t.getUTCDate()-1);y1.range;const C6=He(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gi,t=>Math.floor(t/Gi));C6.range;function Gn(t){return He(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Vr)/g1)}const Ts=Gn(0),_l=Gn(1),S6=Gn(2),A6=Gn(3),Es=Gn(4),L6=Gn(5),B6=Gn(6);Ts.range;_l.range;S6.range;A6.range;Es.range;L6.range;B6.range;function $n(t){return He(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/g1)}const cp=$n(0),xl=$n(1),D6=$n(2),I6=$n(3),Cs=$n(4),M6=$n(5),N6=$n(6);cp.range;xl.range;D6.range;I6.range;Cs.range;M6.range;N6.range;const Ia=He(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Ia.range;const R6=He(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());R6.range;const $i=He(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());$i.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:He(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});$i.range;const Nn=He(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Nn.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:He(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Nn.range;function O6(t,e,r,i,n,s){const a=[[os,1,Fi],[os,5,5*Fi],[os,15,15*Fi],[os,30,30*Fi],[s,1,Vr],[s,5,5*Vr],[s,15,15*Vr],[s,30,30*Vr],[n,1,Pi],[n,3,3*Pi],[n,6,6*Pi],[n,12,12*Pi],[i,1,Gi],[i,2,2*Gi],[r,1,g1],[e,1,sf],[e,3,3*sf],[t,1,uh]];function o(h,u,f){const d=u<h;d&&([h,u]=[u,h]);const p=f&&typeof f.range=="function"?f:l(h,u,f),m=p?p.range(h,+u+1):[];return d?m.reverse():m}function l(h,u,f){const d=Math.abs(u-h)/f,p=n1(([,,x])=>x).right(a,d);if(p===a.length)return t.every(qh(h/uh,u/uh,f));if(p===0)return bl.every(Math.max(qh(h,u,f),1));const[m,b]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return m.every(b)}return[o,l]}const[F6,P6]=O6($i,Ia,Ts,Mn,Da,Ba);function fh(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dh(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Qs(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function V6(t){var e=t.dateTime,r=t.date,i=t.time,n=t.periods,s=t.days,a=t.shortDays,o=t.months,l=t.shortMonths,h=Js(n),u=ta(n),f=Js(s),d=ta(s),p=Js(a),m=ta(a),b=Js(o),x=ta(o),k=Js(l),v=ta(l),B={a:N,A:nt,b:Y,B:Z,c:null,d:uf,e:uf,f:lv,g:bv,G:xv,H:sv,I:av,j:ov,L:hp,m:cv,M:hv,p:J,q:X,Q:pf,s:gf,S:uv,u:fv,U:dv,V:pv,w:gv,W:yv,x:null,X:null,y:mv,Y:_v,Z:vv,"%":df},R={a:tt,A:ot,b:at,B:U,c:null,d:ff,e:ff,f:Ev,g:Rv,G:Fv,H:kv,I:wv,j:Tv,L:fp,m:Cv,M:Sv,p:Tt,q:$,Q:pf,s:gf,S:Av,u:Lv,U:Bv,V:Dv,w:Iv,W:Mv,x:null,X:null,y:Nv,Y:Ov,Z:Pv,"%":df},P={a:S,A:E,b:_,B:w,c:g,d:cf,e:cf,f:ev,g:lf,G:of,H:hf,I:hf,j:Z6,L:tv,m:K6,M:Q6,p:C,q:X6,Q:iv,s:nv,S:J6,u:H6,U:q6,V:G6,w:W6,W:$6,x:D,X:y,y:lf,Y:of,Z:j6,"%":rv};B.x=V(r,B),B.X=V(i,B),B.c=V(e,B),R.x=V(r,R),R.X=V(i,R),R.c=V(e,R);function V(j,W){return function(z){var A=[],M=-1,q=0,L=j.length,st,T,Dt;for(z instanceof Date||(z=new Date(+z));++M<L;)j.charCodeAt(M)===37&&(A.push(j.slice(q,M)),(T=af[st=j.charAt(++M)])!=null?st=j.charAt(++M):T=st==="e"?" ":"0",(Dt=W[st])&&(st=Dt(z,T)),A.push(st),q=M+1);return A.push(j.slice(q,M)),A.join("")}}function O(j,W){return function(z){var A=Qs(1900,void 0,1),M=F(A,j,z+="",0),q,L;if(M!=z.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(W&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(q=dh(Qs(A.y,0,1)),L=q.getUTCDay(),q=L>4||L===0?xl.ceil(q):xl(q),q=y1.offset(q,(A.V-1)*7),A.y=q.getUTCFullYear(),A.m=q.getUTCMonth(),A.d=q.getUTCDate()+(A.w+6)%7):(q=fh(Qs(A.y,0,1)),L=q.getDay(),q=L>4||L===0?_l.ceil(q):_l(q),q=Mn.offset(q,(A.V-1)*7),A.y=q.getFullYear(),A.m=q.getMonth(),A.d=q.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),L="Z"in A?dh(Qs(A.y,0,1)).getUTCDay():fh(Qs(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(L+5)%7:A.w+A.U*7-(L+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,dh(A)):fh(A)}}function F(j,W,z,A){for(var M=0,q=W.length,L=z.length,st,T;M<q;){if(A>=L)return-1;if(st=W.charCodeAt(M++),st===37){if(st=W.charAt(M++),T=P[st in af?W.charAt(M++):st],!T||(A=T(j,z,A))<0)return-1}else if(st!=z.charCodeAt(A++))return-1}return A}function C(j,W,z){var A=h.exec(W.slice(z));return A?(j.p=u.get(A[0].toLowerCase()),z+A[0].length):-1}function S(j,W,z){var A=p.exec(W.slice(z));return A?(j.w=m.get(A[0].toLowerCase()),z+A[0].length):-1}function E(j,W,z){var A=f.exec(W.slice(z));return A?(j.w=d.get(A[0].toLowerCase()),z+A[0].length):-1}function _(j,W,z){var A=k.exec(W.slice(z));return A?(j.m=v.get(A[0].toLowerCase()),z+A[0].length):-1}function w(j,W,z){var A=b.exec(W.slice(z));return A?(j.m=x.get(A[0].toLowerCase()),z+A[0].length):-1}function g(j,W,z){return F(j,e,W,z)}function D(j,W,z){return F(j,r,W,z)}function y(j,W,z){return F(j,i,W,z)}function N(j){return a[j.getDay()]}function nt(j){return s[j.getDay()]}function Y(j){return l[j.getMonth()]}function Z(j){return o[j.getMonth()]}function J(j){return n[+(j.getHours()>=12)]}function X(j){return 1+~~(j.getMonth()/3)}function tt(j){return a[j.getUTCDay()]}function ot(j){return s[j.getUTCDay()]}function at(j){return l[j.getUTCMonth()]}function U(j){return o[j.getUTCMonth()]}function Tt(j){return n[+(j.getUTCHours()>=12)]}function $(j){return 1+~~(j.getUTCMonth()/3)}return{format:function(j){var W=V(j+="",B);return W.toString=function(){return j},W},parse:function(j){var W=O(j+="",!1);return W.toString=function(){return j},W},utcFormat:function(j){var W=V(j+="",R);return W.toString=function(){return j},W},utcParse:function(j){var W=O(j+="",!0);return W.toString=function(){return j},W}}}var af={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,Y6=/^%/,z6=/[\\^$*+?|[\]().{}]/g;function ue(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",s=n.length;return i+(s<r?new Array(r-s+1).join(e)+n:n)}function U6(t){return t.replace(z6,"\\$&")}function Js(t){return new RegExp("^(?:"+t.map(U6).join("|")+")","i")}function ta(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function W6(t,e,r){var i=Ze.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function H6(t,e,r){var i=Ze.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function q6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function G6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function $6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function of(t,e,r){var i=Ze.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function lf(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function j6(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function X6(t,e,r){var i=Ze.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function K6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function cf(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function Z6(t,e,r){var i=Ze.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function hf(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function Q6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function J6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function tv(t,e,r){var i=Ze.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function ev(t,e,r){var i=Ze.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function rv(t,e,r){var i=Y6.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function iv(t,e,r){var i=Ze.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function nv(t,e,r){var i=Ze.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function uf(t,e){return ue(t.getDate(),e,2)}function sv(t,e){return ue(t.getHours(),e,2)}function av(t,e){return ue(t.getHours()%12||12,e,2)}function ov(t,e){return ue(1+Mn.count($i(t),t),e,3)}function hp(t,e){return ue(t.getMilliseconds(),e,3)}function lv(t,e){return hp(t,e)+"000"}function cv(t,e){return ue(t.getMonth()+1,e,2)}function hv(t,e){return ue(t.getMinutes(),e,2)}function uv(t,e){return ue(t.getSeconds(),e,2)}function fv(t){var e=t.getDay();return e===0?7:e}function dv(t,e){return ue(Ts.count($i(t)-1,t),e,2)}function up(t){var e=t.getDay();return e>=4||e===0?Es(t):Es.ceil(t)}function pv(t,e){return t=up(t),ue(Es.count($i(t),t)+($i(t).getDay()===4),e,2)}function gv(t){return t.getDay()}function yv(t,e){return ue(_l.count($i(t)-1,t),e,2)}function mv(t,e){return ue(t.getFullYear()%100,e,2)}function bv(t,e){return t=up(t),ue(t.getFullYear()%100,e,2)}function _v(t,e){return ue(t.getFullYear()%1e4,e,4)}function xv(t,e){var r=t.getDay();return t=r>=4||r===0?Es(t):Es.ceil(t),ue(t.getFullYear()%1e4,e,4)}function vv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ue(e/60|0,"0",2)+ue(e%60,"0",2)}function ff(t,e){return ue(t.getUTCDate(),e,2)}function kv(t,e){return ue(t.getUTCHours(),e,2)}function wv(t,e){return ue(t.getUTCHours()%12||12,e,2)}function Tv(t,e){return ue(1+y1.count(Nn(t),t),e,3)}function fp(t,e){return ue(t.getUTCMilliseconds(),e,3)}function Ev(t,e){return fp(t,e)+"000"}function Cv(t,e){return ue(t.getUTCMonth()+1,e,2)}function Sv(t,e){return ue(t.getUTCMinutes(),e,2)}function Av(t,e){return ue(t.getUTCSeconds(),e,2)}function Lv(t){var e=t.getUTCDay();return e===0?7:e}function Bv(t,e){return ue(cp.count(Nn(t)-1,t),e,2)}function dp(t){var e=t.getUTCDay();return e>=4||e===0?Cs(t):Cs.ceil(t)}function Dv(t,e){return t=dp(t),ue(Cs.count(Nn(t),t)+(Nn(t).getUTCDay()===4),e,2)}function Iv(t){return t.getUTCDay()}function Mv(t,e){return ue(xl.count(Nn(t)-1,t),e,2)}function Nv(t,e){return ue(t.getUTCFullYear()%100,e,2)}function Rv(t,e){return t=dp(t),ue(t.getUTCFullYear()%100,e,2)}function Ov(t,e){return ue(t.getUTCFullYear()%1e4,e,4)}function Fv(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Cs(t):Cs.ceil(t),ue(t.getUTCFullYear()%1e4,e,4)}function Pv(){return"+0000"}function df(){return"%"}function pf(t){return+t}function gf(t){return Math.floor(+t/1e3)}var rs,vl;Vv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vv(t){return rs=V6(t),vl=rs.format,rs.parse,rs.utcFormat,rs.utcParse,rs}function Yv(t){return new Date(t)}function zv(t){return t instanceof Date?+t:+new Date(+t)}function pp(t,e,r,i,n,s,a,o,l,h){var u=op(),f=u.invert,d=u.domain,p=h(".%L"),m=h(":%S"),b=h("%I:%M"),x=h("%I %p"),k=h("%a %d"),v=h("%b %d"),B=h("%B"),R=h("%Y");function P(V){return(l(V)<V?p:o(V)<V?m:a(V)<V?b:s(V)<V?x:i(V)<V?n(V)<V?k:v:r(V)<V?B:R)(V)}return u.invert=function(V){return new Date(f(V))},u.domain=function(V){return arguments.length?d(Array.from(V,zv)):d().map(Yv)},u.ticks=function(V){var O=d();return t(O[0],O[O.length-1],V??10)},u.tickFormat=function(V,O){return O==null?P:h(O)},u.nice=function(V){var O=d();return(!V||typeof V.range!="function")&&(V=e(O[0],O[O.length-1],V??10)),V?d(w6(O,V)):u},u.copy=function(){return ap(u,pp(t,e,r,i,n,s,a,o,l,h))},u}function Uv(){return p1.apply(pp(F6,P6,$i,Ia,Ts,Mn,Da,Ba,os,vl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Le(t){return function(){return t}}const yf=Math.abs,er=Math.atan2,xn=Math.cos,Wv=Math.max,ph=Math.min,oi=Math.sin,ls=Math.sqrt,rr=1e-12,Ma=Math.PI,kl=Ma/2,Ho=2*Ma;function Hv(t){return t>1?0:t<-1?Ma:Math.acos(t)}function mf(t){return t>=1?kl:t<=-1?-kl:Math.asin(t)}function gp(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new Jx(e)}function qv(t){return t.innerRadius}function Gv(t){return t.outerRadius}function $v(t){return t.startAngle}function jv(t){return t.endAngle}function Xv(t){return t&&t.padAngle}function Kv(t,e,r,i,n,s,a,o){var l=r-t,h=i-e,u=a-n,f=o-s,d=f*l-u*h;if(!(d*d<rr))return d=(u*(e-s)-f*(t-n))/d,[t+d*l,e+d*h]}function So(t,e,r,i,n,s,a){var o=t-r,l=e-i,h=(a?s:-s)/ls(o*o+l*l),u=h*l,f=-h*o,d=t+u,p=e+f,m=r+u,b=i+f,x=(d+m)/2,k=(p+b)/2,v=m-d,B=b-p,R=v*v+B*B,P=n-s,V=d*b-m*p,O=(B<0?-1:1)*ls(Wv(0,P*P*R-V*V)),F=(V*B-v*O)/R,C=(-V*v-B*O)/R,S=(V*B+v*O)/R,E=(-V*v+B*O)/R,_=F-x,w=C-k,g=S-x,D=E-k;return _*_+w*w>g*g+D*D&&(F=S,C=E),{cx:F,cy:C,x01:-u,y01:-f,x11:F*(n/P-1),y11:C*(n/P-1)}}function nu(){var t=qv,e=Gv,r=Le(0),i=null,n=$v,s=jv,a=Xv,o=null,l=gp(h);function h(){var u,f,d=+t.apply(this,arguments),p=+e.apply(this,arguments),m=n.apply(this,arguments)-kl,b=s.apply(this,arguments)-kl,x=yf(b-m),k=b>m;if(o||(o=u=l()),p<d&&(f=p,p=d,d=f),!(p>rr))o.moveTo(0,0);else if(x>Ho-rr)o.moveTo(p*xn(m),p*oi(m)),o.arc(0,0,p,m,b,!k),d>rr&&(o.moveTo(d*xn(b),d*oi(b)),o.arc(0,0,d,b,m,k));else{var v=m,B=b,R=m,P=b,V=x,O=x,F=a.apply(this,arguments)/2,C=F>rr&&(i?+i.apply(this,arguments):ls(d*d+p*p)),S=ph(yf(p-d)/2,+r.apply(this,arguments)),E=S,_=S,w,g;if(C>rr){var D=mf(C/d*oi(F)),y=mf(C/p*oi(F));(V-=D*2)>rr?(D*=k?1:-1,R+=D,P-=D):(V=0,R=P=(m+b)/2),(O-=y*2)>rr?(y*=k?1:-1,v+=y,B-=y):(O=0,v=B=(m+b)/2)}var N=p*xn(v),nt=p*oi(v),Y=d*xn(P),Z=d*oi(P);if(S>rr){var J=p*xn(B),X=p*oi(B),tt=d*xn(R),ot=d*oi(R),at;if(x<Ma)if(at=Kv(N,nt,tt,ot,J,X,Y,Z)){var U=N-at[0],Tt=nt-at[1],$=J-at[0],j=X-at[1],W=1/oi(Hv((U*$+Tt*j)/(ls(U*U+Tt*Tt)*ls($*$+j*j)))/2),z=ls(at[0]*at[0]+at[1]*at[1]);E=ph(S,(d-z)/(W-1)),_=ph(S,(p-z)/(W+1))}else E=_=0}O>rr?_>rr?(w=So(tt,ot,N,nt,p,_,k),g=So(J,X,Y,Z,p,_,k),o.moveTo(w.cx+w.x01,w.cy+w.y01),_<S?o.arc(w.cx,w.cy,_,er(w.y01,w.x01),er(g.y01,g.x01),!k):(o.arc(w.cx,w.cy,_,er(w.y01,w.x01),er(w.y11,w.x11),!k),o.arc(0,0,p,er(w.cy+w.y11,w.cx+w.x11),er(g.cy+g.y11,g.cx+g.x11),!k),o.arc(g.cx,g.cy,_,er(g.y11,g.x11),er(g.y01,g.x01),!k))):(o.moveTo(N,nt),o.arc(0,0,p,v,B,!k)):o.moveTo(N,nt),!(d>rr)||!(V>rr)?o.lineTo(Y,Z):E>rr?(w=So(Y,Z,J,X,d,-E,k),g=So(N,nt,tt,ot,d,-E,k),o.lineTo(w.cx+w.x01,w.cy+w.y01),E<S?o.arc(w.cx,w.cy,E,er(w.y01,w.x01),er(g.y01,g.x01),!k):(o.arc(w.cx,w.cy,E,er(w.y01,w.x01),er(w.y11,w.x11),!k),o.arc(0,0,d,er(w.cy+w.y11,w.cx+w.x11),er(g.cy+g.y11,g.cx+g.x11),k),o.arc(g.cx,g.cy,E,er(g.y11,g.x11),er(g.y01,g.x01),!k))):o.arc(0,0,d,P,R,k)}if(o.closePath(),u)return o=null,u+""||null}return h.centroid=function(){var u=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,f=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-Ma/2;return[xn(f)*u,oi(f)*u]},h.innerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Le(+u),h):t},h.outerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Le(+u),h):e},h.cornerRadius=function(u){return arguments.length?(r=typeof u=="function"?u:Le(+u),h):r},h.padRadius=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:Le(+u),h):i},h.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:Le(+u),h):n},h.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:Le(+u),h):s},h.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Le(+u),h):a},h.context=function(u){return arguments.length?(o=u??null,h):o},h}function yp(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function mp(t){this._context=t}mp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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;default:this._context.lineTo(t,e);break}}};function Cr(t){return new mp(t)}function Zv(t){return t[0]}function Qv(t){return t[1]}function Us(t,e){var r=Le(!0),i=null,n=Cr,s=null,a=gp(o);t=typeof t=="function"?t:t===void 0?Zv:Le(t),e=typeof e=="function"?e:e===void 0?Qv:Le(e);function o(l){var h,u=(l=yp(l)).length,f,d=!1,p;for(i==null&&(s=n(p=a())),h=0;h<=u;++h)!(h<u&&r(f=l[h],h,l))===d&&((d=!d)?s.lineStart():s.lineEnd()),d&&s.point(+t(f,h,l),+e(f,h,l));if(p)return s=null,p+""||null}return o.x=function(l){return arguments.length?(t=typeof l=="function"?l:Le(+l),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:Le(+l),o):e},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Le(!!l),o):r},o.curve=function(l){return arguments.length?(n=l,i!=null&&(s=n(i)),o):n},o.context=function(l){return arguments.length?(l==null?i=s=null:s=n(i=l),o):i},o}function Jv(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function tk(t){return t}function ek(){var t=tk,e=Jv,r=null,i=Le(0),n=Le(Ho),s=Le(0);function a(o){var l,h=(o=yp(o)).length,u,f,d=0,p=new Array(h),m=new Array(h),b=+i.apply(this,arguments),x=Math.min(Ho,Math.max(-Ho,n.apply(this,arguments)-b)),k,v=Math.min(Math.abs(x)/h,s.apply(this,arguments)),B=v*(x<0?-1:1),R;for(l=0;l<h;++l)(R=m[p[l]=l]=+t(o[l],l,o))>0&&(d+=R);for(e!=null?p.sort(function(P,V){return e(m[P],m[V])}):r!=null&&p.sort(function(P,V){return r(o[P],o[V])}),l=0,f=d?(x-h*B)/d:0;l<h;++l,b=k)u=p[l],R=m[u],k=b+(R>0?R*f:0)+B,m[u]={data:o[u],index:l,value:R,startAngle:b,endAngle:k,padAngle:v};return m}return a.value=function(o){return arguments.length?(t=typeof o=="function"?o:Le(+o),a):t},a.sortValues=function(o){return arguments.length?(e=o,r=null,a):e},a.sort=function(o){return arguments.length?(r=o,e=null,a):r},a.startAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Le(+o),a):i},a.endAngle=function(o){return arguments.length?(n=typeof o=="function"?o:Le(+o),a):n},a.padAngle=function(o){return arguments.length?(s=typeof o=="function"?o:Le(+o),a):s},a}class bp{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function rk(t){return new bp(t,!0)}function ik(t){return new bp(t,!1)}function un(){}function wl(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function gc(t){this._context=t}gc.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(){switch(this._point){case 3:wl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ss(t){return new gc(t)}function _p(t){this._context=t}_p.prototype={areaStart:un,areaEnd:un,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);break}}},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:wl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function nk(t){return new _p(t)}function xp(t){this._context=t}xp.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||this._line!==0&&this._point===3)&&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 r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:wl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function sk(t){return new xp(t)}function vp(t,e){this._basis=new gc(t),this._beta=e}vp.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],n=e[0],s=t[r]-i,a=e[r]-n,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(i+l*s),this._beta*e[o]+(1-this._beta)*(n+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ak=function t(e){function r(i){return e===1?new gc(i):new vp(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function Tl(t,e,r){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-r),t._x2,t._y2)}function m1(t,e){this._context=t,this._k=(1-e)/6}m1.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:Tl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Tl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ok=function t(e){function r(i){return new m1(i,e)}return r.tension=function(i){return t(+i)},r}(0);function b1(t,e){this._context=t,this._k=(1-e)/6}b1.prototype={areaStart:un,areaEnd:un,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);break}}},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:Tl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lk=function t(e){function r(i){return new b1(i,e)}return r.tension=function(i){return t(+i)},r}(0);function _1(t,e){this._context=t,this._k=(1-e)/6}_1.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||this._line!==0&&this._point===3)&&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:Tl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ck=function t(e){function r(i){return new _1(i,e)}return r.tension=function(i){return t(+i)},r}(0);function x1(t,e,r){var i=t._x1,n=t._y1,s=t._x2,a=t._y2;if(t._l01_a>rr){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>rr){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(i,n,s,a,t._x2,t._y2)}function kp(t,e){this._context=t,this._alpha=e}kp.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:x1(this,t,e);break}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}};const hk=function t(e){function r(i){return e?new kp(i,e):new m1(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function wp(t,e){this._context=t,this._alpha=e}wp.prototype={areaStart:un,areaEnd:un,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:x1(this,t,e);break}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}};const uk=function t(e){function r(i){return e?new wp(i,e):new b1(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Tp(t,e){this._context=t,this._alpha=e}Tp.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:x1(this,t,e);break}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}};const fk=function t(e){function r(i){return e?new Tp(i,e):new _1(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Ep(t){this._context=t}Ep.prototype={areaStart:un,areaEnd:un,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))}};function dk(t){return new Ep(t)}function bf(t){return t<0?-1:1}function _f(t,e,r){var i=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(i||n<0&&-0),a=(r-t._y1)/(n||i<0&&-0),o=(s*n+a*i)/(i+n);return(bf(s)+bf(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function xf(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function gh(t,e,r){var i=t._x0,n=t._y0,s=t._x1,a=t._y1,o=(s-i)/3;t._context.bezierCurveTo(i+o,n+o*e,s-o,a-o*r,s,a)}function El(t){this._context=t}El.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:gh(this,this._t0,xf(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(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,gh(this,xf(this,r=_f(this,t,e)),r);break;default:gh(this,this._t0,r=_f(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function Cp(t){this._context=new Sp(t)}(Cp.prototype=Object.create(El.prototype)).point=function(t,e){El.prototype.point.call(this,e,t)};function Sp(t){this._context=t}Sp.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,r,i,n,s){this._context.bezierCurveTo(e,t,i,r,s,n)}};function pk(t){return new El(t)}function gk(t){return new Cp(t)}function Ap(t){this._context=t}Ap.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=vf(t),n=vf(e),s=0,a=1;a<r;++s,++a)this._context.bezierCurveTo(i[0][s],n[0][s],i[1][s],n[1][s],t[a],e[a]);(this._line||this._line!==0&&r===1)&&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)}};function vf(t){var e,r=t.length-1,i,n=new Array(r),s=new Array(r),a=new Array(r);for(n[0]=0,s[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)n[e]=1,s[e]=4,a[e]=4*t[e]+2*t[e+1];for(n[r-1]=2,s[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=n[e]/s[e-1],s[e]-=i,a[e]-=i*a[e-1];for(n[r-1]=a[r-1]/s[r-1],e=r-2;e>=0;--e)n[e]=(a[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e<r-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function yk(t){return new Ap(t)}function yc(t,e){this._context=t,this._t=e}yc.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function mk(t){return new yc(t,.5)}function bk(t){return new yc(t,0)}function _k(t){return new yc(t,1)}function ha(t,e,r){this.k=t,this.x=e,this.y=r}ha.prototype={constructor:ha,scale:function(t){return t===1?this:new ha(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ha(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ha.prototype;/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */function rn(t){return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function su(t,e){return su=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},su(t,e)}function xk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qo(t,e,r){return xk()?qo=Reflect.construct:qo=function(n,s,a){var o=[null];o.push.apply(o,s);var l=Function.bind.apply(n,o),h=new l;return a&&su(h,a.prototype),h},qo.apply(null,arguments)}function Hr(t){return vk(t)||kk(t)||wk(t)||Tk()}function vk(t){if(Array.isArray(t))return au(t)}function kk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wk(t,e){if(t){if(typeof t=="string")return au(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return au(t,e)}}function au(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Tk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
6
|
+
`)),a+=f+i[l+1]}),a}var x2={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(lc,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",a="second",o="minute",l="hour",h="day",u="week",f="month",d="quarter",p="year",m="date",b="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var g=["th","st","nd","rd"],D=w%100;return"["+w+(g[(D-20)%10]||g[D]||g[0])+"]"}},B=function(w,g,D){var y=String(w);return!y||y.length>=g?w:""+Array(g+1-y.length).join(D)+w},R={s:B,z:function(w){var g=-w.utcOffset(),D=Math.abs(g),y=Math.floor(D/60),N=D%60;return(g<=0?"+":"-")+B(y,2,"0")+":"+B(N,2,"0")},m:function w(g,D){if(g.date()<D.date())return-w(D,g);var y=12*(D.year()-g.year())+(D.month()-g.month()),N=g.clone().add(y,f),nt=D-N<0,Y=g.clone().add(y+(nt?-1:1),f);return+(-(y+(D-N)/(nt?N-Y:Y-N))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:f,y:p,w:u,d:h,D:m,h:l,m:o,s:a,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},P="en",V={};V[P]=v;var O=function(w){return w instanceof E},F=function w(g,D,y){var N;if(!g)return P;if(typeof g=="string"){var nt=g.toLowerCase();V[nt]&&(N=nt),D&&(V[nt]=D,N=nt);var Y=g.split("-");if(!N&&Y.length>1)return w(Y[0])}else{var Z=g.name;V[Z]=g,N=Z}return!y&&N&&(P=N),N||!y&&P},C=function(w,g){if(O(w))return w.clone();var D=typeof g=="object"?g:{};return D.date=w,D.args=arguments,new E(D)},S=R;S.l=F,S.i=O,S.w=function(w,g){return C(w,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var E=function(){function w(D){this.$L=F(D.locale,null,!0),this.parse(D)}var g=w.prototype;return g.parse=function(D){this.$d=function(y){var N=y.date,nt=y.utc;if(N===null)return new Date(NaN);if(S.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var Y=N.match(x);if(Y){var Z=Y[2]-1||0,J=(Y[7]||"0").substring(0,3);return nt?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,J)}}return new Date(N)}(D),this.$x=D.x||{},this.init()},g.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return this.$d.toString()!==b},g.isSame=function(D,y){var N=C(D);return this.startOf(y)<=N&&N<=this.endOf(y)},g.isAfter=function(D,y){return C(D)<this.startOf(y)},g.isBefore=function(D,y){return this.endOf(y)<C(D)},g.$g=function(D,y,N){return S.u(D)?this[y]:this.set(N,D)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(D,y){var N=this,nt=!!S.u(y)||y,Y=S.p(D),Z=function($,j){var W=S.w(N.$u?Date.UTC(N.$y,j,$):new Date(N.$y,j,$),N);return nt?W:W.endOf(h)},J=function($,j){return S.w(N.toDate()[$].apply(N.toDate("s"),(nt?[0,0,0,0]:[23,59,59,999]).slice(j)),N)},X=this.$W,tt=this.$M,ot=this.$D,at="set"+(this.$u?"UTC":"");switch(Y){case p:return nt?Z(1,0):Z(31,11);case f:return nt?Z(1,tt):Z(0,tt+1);case u:var U=this.$locale().weekStart||0,Tt=(X<U?X+7:X)-U;return Z(nt?ot-Tt:ot+(6-Tt),tt);case h:case m:return J(at+"Hours",0);case l:return J(at+"Minutes",1);case o:return J(at+"Seconds",2);case a:return J(at+"Milliseconds",3);default:return this.clone()}},g.endOf=function(D){return this.startOf(D,!1)},g.$set=function(D,y){var N,nt=S.p(D),Y="set"+(this.$u?"UTC":""),Z=(N={},N[h]=Y+"Date",N[m]=Y+"Date",N[f]=Y+"Month",N[p]=Y+"FullYear",N[l]=Y+"Hours",N[o]=Y+"Minutes",N[a]=Y+"Seconds",N[s]=Y+"Milliseconds",N)[nt],J=nt===h?this.$D+(y-this.$W):y;if(nt===f||nt===p){var X=this.clone().set(m,1);X.$d[Z](J),X.init(),this.$d=X.set(m,Math.min(this.$D,X.daysInMonth())).$d}else Z&&this.$d[Z](J);return this.init(),this},g.set=function(D,y){return this.clone().$set(D,y)},g.get=function(D){return this[S.p(D)]()},g.add=function(D,y){var N,nt=this;D=Number(D);var Y=S.p(y),Z=function(tt){var ot=C(nt);return S.w(ot.date(ot.date()+Math.round(tt*D)),nt)};if(Y===f)return this.set(f,this.$M+D);if(Y===p)return this.set(p,this.$y+D);if(Y===h)return Z(1);if(Y===u)return Z(7);var J=(N={},N[o]=i,N[l]=n,N[a]=r,N)[Y]||1,X=this.$d.getTime()+D*J;return S.w(X,this)},g.subtract=function(D,y){return this.add(-1*D,y)},g.format=function(D){var y=this,N=this.$locale();if(!this.isValid())return N.invalidDate||b;var nt=D||"YYYY-MM-DDTHH:mm:ssZ",Y=S.z(this),Z=this.$H,J=this.$m,X=this.$M,tt=N.weekdays,ot=N.months,at=function(j,W,z,A){return j&&(j[W]||j(y,nt))||z[W].slice(0,A)},U=function(j){return S.s(Z%12||12,j,"0")},Tt=N.meridiem||function(j,W,z){var A=j<12?"AM":"PM";return z?A.toLowerCase():A},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:X+1,MM:S.s(X+1,2,"0"),MMM:at(N.monthsShort,X,ot,3),MMMM:at(ot,X),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:at(N.weekdaysMin,this.$W,tt,2),ddd:at(N.weekdaysShort,this.$W,tt,3),dddd:tt[this.$W],H:String(Z),HH:S.s(Z,2,"0"),h:U(1),hh:U(2),a:Tt(Z,J,!0),A:Tt(Z,J,!1),m:String(J),mm:S.s(J,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:Y};return nt.replace(k,function(j,W){return W||$[j]||Y.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(D,y,N){var nt,Y=S.p(y),Z=C(D),J=(Z.utcOffset()-this.utcOffset())*i,X=this-Z,tt=S.m(this,Z);return tt=(nt={},nt[p]=tt/12,nt[f]=tt,nt[d]=tt/3,nt[u]=(X-J)/6048e5,nt[h]=(X-J)/864e5,nt[l]=X/n,nt[o]=X/i,nt[a]=X/r,nt)[Y]||X,N?tt:S.a(tt)},g.daysInMonth=function(){return this.endOf(f).$D},g.$locale=function(){return V[this.$L]},g.locale=function(D,y){if(!D)return this.$L;var N=this.clone(),nt=F(D,y,!0);return nt&&(N.$L=nt),N},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},w}(),_=E.prototype;return C.prototype=_,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",h],["$M",f],["$y",p],["$D",m]].forEach(function(w){_[w[1]]=function(g){return this.$g(g,w[0],w[1])}}),C.extend=function(w,g){return w.$i||(w(g,E,C),w.$i=!0),C},C.locale=F,C.isDayjs=O,C.unix=function(w){return C(1e3*w)},C.en=V[P],C.Ls=V,C.p={},C})})(x2);var $4=x2.exports;const xr=cc($4);var i1={};Object.defineProperty(i1,"__esModule",{value:!0});var Ki=i1.sanitizeUrl=void 0,j4=/^([^\w]*)(javascript|data|vbscript)/im,X4=/&#(\w+)(^\w|;)?/g,K4=/&(newline|tab);/gi,Z4=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Q4=/^.+(:|:)/gim,J4=[".","/"];function t5(t){return J4.indexOf(t[0])>-1}function e5(t){return t.replace(X4,function(e,r){return String.fromCharCode(r)})}function r5(t){var e=e5(t||"").replace(K4,"").replace(Z4,"").trim();if(!e)return"about:blank";if(t5(e))return e;var r=e.match(Q4);if(!r)return e;var i=r[0];return j4.test(i)?"about:blank":e}Ki=i1.sanitizeUrl=r5;function Vo(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i5(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function n1(t){let e,r,i;t.length!==2?(e=Vo,r=(o,l)=>Vo(t(o),l),i=(o,l)=>t(o)-l):(e=t===Vo||t===i5?t:n5,r=t,i=t);function n(o,l,h=0,u=o.length){if(h<u){if(e(l,l)!==0)return u;do{const f=h+u>>>1;r(o[f],l)<0?h=f+1:u=f}while(h<u)}return h}function s(o,l,h=0,u=o.length){if(h<u){if(e(l,l)!==0)return u;do{const f=h+u>>>1;r(o[f],l)<=0?h=f+1:u=f}while(h<u)}return h}function a(o,l,h=0,u=o.length){const f=n(o,l,h,u-1);return f>h&&i(o[f-1],l)>-i(o[f],l)?f-1:f}return{left:n,center:a,right:s}}function n5(){return 0}function s5(t){return t===null?NaN:+t}const a5=n1(Vo),o5=a5.right;n1(s5).center;const l5=o5;class M0 extends Map{constructor(e,r=u5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[i,n]of e)this.set(i,n)}get(e){return super.get(N0(this,e))}has(e){return super.has(N0(this,e))}set(e,r){return super.set(c5(this,e),r)}delete(e){return super.delete(h5(this,e))}}function N0({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):r}function c5({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function h5({_intern:t,_key:e},r){const i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function u5(t){return t!==null&&typeof t=="object"?t.valueOf():t}const f5=Math.sqrt(50),d5=Math.sqrt(10),p5=Math.sqrt(2);function ol(t,e,r){const i=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(i)),s=i/Math.pow(10,n),a=s>=f5?10:s>=d5?5:s>=p5?2:1;let o,l,h;return n<0?(h=Math.pow(10,-n)/a,o=Math.round(t*h),l=Math.round(e*h),o/h<t&&++o,l/h>e&&--l,h=-h):(h=Math.pow(10,n)*a,o=Math.round(t/h),l=Math.round(e/h),o*h<t&&++o,l*h>e&&--l),l<o&&.5<=r&&r<2?ol(t,e,r*2):[o,l,h]}function g5(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const i=e<t,[n,s,a]=i?ol(e,t,r):ol(t,e,r);if(!(s>=n))return[];const o=s-n+1,l=new Array(o);if(i)if(a<0)for(let h=0;h<o;++h)l[h]=(s-h)/-a;else for(let h=0;h<o;++h)l[h]=(s-h)*a;else if(a<0)for(let h=0;h<o;++h)l[h]=(n+h)/-a;else for(let h=0;h<o;++h)l[h]=(n+h)*a;return l}function Hh(t,e,r){return e=+e,t=+t,r=+r,ol(t,e,r)[2]}function qh(t,e,r){e=+e,t=+t,r=+r;const i=e<t,n=i?Hh(e,t,r):Hh(t,e,r);return(i?-1:1)*(n<0?1/-n:n)}function y5(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function m5(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function b5(t){return t}var Yo=1,rh=2,Gh=3,ko=4,R0=1e-6;function _5(t){return"translate("+t+",0)"}function x5(t){return"translate(0,"+t+")"}function v5(t){return e=>+t(e)}function k5(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function w5(){return!this.__axis}function v2(t,e){var r=[],i=null,n=null,s=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===Yo||t===ko?-1:1,u=t===ko||t===rh?"x":"y",f=t===Yo||t===Gh?_5:x5;function d(p){var m=i??(e.ticks?e.ticks.apply(e,r):e.domain()),b=n??(e.tickFormat?e.tickFormat.apply(e,r):b5),x=Math.max(s,0)+o,k=e.range(),v=+k[0]+l,B=+k[k.length-1]+l,R=(e.bandwidth?k5:v5)(e.copy(),l),P=p.selection?p.selection():p,V=P.selectAll(".domain").data([null]),O=P.selectAll(".tick").data(m,e).order(),F=O.exit(),C=O.enter().append("g").attr("class","tick"),S=O.select("line"),E=O.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(C),S=S.merge(C.append("line").attr("stroke","currentColor").attr(u+"2",h*s)),E=E.merge(C.append("text").attr("fill","currentColor").attr(u,h*x).attr("dy",t===Yo?"0em":t===Gh?"0.71em":"0.32em")),p!==P&&(V=V.transition(p),O=O.transition(p),S=S.transition(p),E=E.transition(p),F=F.transition(p).attr("opacity",R0).attr("transform",function(_){return isFinite(_=R(_))?f(_+l):this.getAttribute("transform")}),C.attr("opacity",R0).attr("transform",function(_){var w=this.parentNode.__axis;return f((w&&isFinite(w=w(_))?w:R(_))+l)})),F.remove(),V.attr("d",t===ko||t===rh?a?"M"+h*a+","+v+"H"+l+"V"+B+"H"+h*a:"M"+l+","+v+"V"+B:a?"M"+v+","+h*a+"V"+l+"H"+B+"V"+h*a:"M"+v+","+l+"H"+B),O.attr("opacity",1).attr("transform",function(_){return f(R(_)+l)}),S.attr(u+"2",h*s),E.attr(u,h*x).text(b),P.filter(w5).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===rh?"start":t===ko?"end":"middle"),P.each(function(){this.__axis=R})}return d.scale=function(p){return arguments.length?(e=p,d):e},d.ticks=function(){return r=Array.from(arguments),d},d.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),d):r.slice()},d.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),d):i&&i.slice()},d.tickFormat=function(p){return arguments.length?(n=p,d):n},d.tickSize=function(p){return arguments.length?(s=a=+p,d):s},d.tickSizeInner=function(p){return arguments.length?(s=+p,d):s},d.tickSizeOuter=function(p){return arguments.length?(a=+p,d):a},d.tickPadding=function(p){return arguments.length?(o=+p,d):o},d.offset=function(p){return arguments.length?(l=+p,d):l},d}function T5(t){return v2(Yo,t)}function E5(t){return v2(Gh,t)}var C5={value:()=>{}};function k2(){for(var t=0,e=arguments.length,r={},i;t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new zo(r)}function zo(t){this._=t}function S5(t,e){return t.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}zo.prototype=k2.prototype={constructor:zo,on:function(t,e){var r=this._,i=S5(t+"",r),n,s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((n=(t=i[s]).type)&&(n=A5(r[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=i[s]).type)r[n]=O0(r[n],t.name,e);else if(e==null)for(n in r)r[n]=O0(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new zo(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,s;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],i=0,n=s.length;i<n;++i)s[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],n=0,s=i.length;n<s;++n)i[n].value.apply(e,r)}};function A5(t,e){for(var r=0,i=t.length,n;r<i;++r)if((n=t[r]).name===e)return n.value}function O0(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=C5,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:e,value:r}),t}var $h="http://www.w3.org/1999/xhtml";const F0={svg:"http://www.w3.org/2000/svg",xhtml:$h,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hc(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),F0.hasOwnProperty(e)?{space:F0[e],local:t}:t}function L5(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===$h&&e.documentElement.namespaceURI===$h?e.createElement(t):e.createElementNS(r,t)}}function B5(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function w2(t){var e=hc(t);return(e.local?B5:L5)(e)}function D5(){}function s1(t){return t==null?D5:function(){return this.querySelector(t)}}function I5(t){typeof t!="function"&&(t=s1(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=new Array(a),l,h,u=0;u<a;++u)(l=s[u])&&(h=t.call(l,l.__data__,u,s))&&("__data__"in l&&(h.__data__=l.__data__),o[u]=h);return new dr(i,this._parents)}function T2(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function M5(){return[]}function E2(t){return t==null?M5:function(){return this.querySelectorAll(t)}}function N5(t){return function(){return T2(t.apply(this,arguments))}}function R5(t){typeof t=="function"?t=N5(t):t=E2(t);for(var e=this._groups,r=e.length,i=[],n=[],s=0;s<r;++s)for(var a=e[s],o=a.length,l,h=0;h<o;++h)(l=a[h])&&(i.push(t.call(l,l.__data__,h,a)),n.push(l));return new dr(i,n)}function C2(t){return function(){return this.matches(t)}}function S2(t){return function(e){return e.matches(t)}}var O5=Array.prototype.find;function F5(t){return function(){return O5.call(this.children,t)}}function P5(){return this.firstElementChild}function V5(t){return this.select(t==null?P5:F5(typeof t=="function"?t:S2(t)))}var Y5=Array.prototype.filter;function z5(){return Array.from(this.children)}function U5(t){return function(){return Y5.call(this.children,t)}}function W5(t){return this.selectAll(t==null?z5:U5(typeof t=="function"?t:S2(t)))}function H5(t){typeof t!="function"&&(t=C2(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=[],l,h=0;h<a;++h)(l=s[h])&&t.call(l,l.__data__,h,s)&&o.push(l);return new dr(i,this._parents)}function A2(t){return new Array(t.length)}function q5(){return new dr(this._enter||this._groups.map(A2),this._parents)}function ll(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ll.prototype={constructor:ll,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function G5(t){return function(){return t}}function $5(t,e,r,i,n,s){for(var a=0,o,l=e.length,h=s.length;a<h;++a)(o=e[a])?(o.__data__=s[a],i[a]=o):r[a]=new ll(t,s[a]);for(;a<l;++a)(o=e[a])&&(n[a]=o)}function j5(t,e,r,i,n,s,a){var o,l,h=new Map,u=e.length,f=s.length,d=new Array(u),p;for(o=0;o<u;++o)(l=e[o])&&(d[o]=p=a.call(l,l.__data__,o,e)+"",h.has(p)?n[o]=l:h.set(p,l));for(o=0;o<f;++o)p=a.call(t,s[o],o,s)+"",(l=h.get(p))?(i[o]=l,l.__data__=s[o],h.delete(p)):r[o]=new ll(t,s[o]);for(o=0;o<u;++o)(l=e[o])&&h.get(d[o])===l&&(n[o]=l)}function X5(t){return t.__data__}function K5(t,e){if(!arguments.length)return Array.from(this,X5);var r=e?j5:$5,i=this._parents,n=this._groups;typeof t!="function"&&(t=G5(t));for(var s=n.length,a=new Array(s),o=new Array(s),l=new Array(s),h=0;h<s;++h){var u=i[h],f=n[h],d=f.length,p=Z5(t.call(u,u&&u.__data__,h,i)),m=p.length,b=o[h]=new Array(m),x=a[h]=new Array(m),k=l[h]=new Array(d);r(u,f,b,x,k,p,e);for(var v=0,B=0,R,P;v<m;++v)if(R=b[v]){for(v>=B&&(B=v+1);!(P=x[B])&&++B<m;);R._next=P||null}}return a=new dr(a,i),a._enter=o,a._exit=l,a}function Z5(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Q5(){return new dr(this._exit||this._groups.map(A2),this._parents)}function J5(t,e,r){var i=this.enter(),n=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),r==null?s.remove():r(s),i&&n?i.merge(n).order():n}function tb(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,s=i.length,a=Math.min(n,s),o=new Array(n),l=0;l<a;++l)for(var h=r[l],u=i[l],f=h.length,d=o[l]=new Array(f),p,m=0;m<f;++m)(p=h[m]||u[m])&&(d[m]=p);for(;l<n;++l)o[l]=r[l];return new dr(o,this._parents)}function eb(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i=t[e],n=i.length-1,s=i[n],a;--n>=0;)(a=i[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function rb(t){t||(t=ib);function e(f,d){return f&&d?t(f.__data__,d.__data__):!f-!d}for(var r=this._groups,i=r.length,n=new Array(i),s=0;s<i;++s){for(var a=r[s],o=a.length,l=n[s]=new Array(o),h,u=0;u<o;++u)(h=a[u])&&(l[u]=h);l.sort(e)}return new dr(n,this._parents).order()}function ib(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function nb(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function sb(){return Array.from(this)}function ab(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length;n<s;++n){var a=i[n];if(a)return a}return null}function ob(){let t=0;for(const e of this)++t;return t}function lb(){return!this.node()}function cb(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n=e[r],s=0,a=n.length,o;s<a;++s)(o=n[s])&&t.call(o,o.__data__,s,n);return this}function hb(t){return function(){this.removeAttribute(t)}}function ub(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fb(t,e){return function(){this.setAttribute(t,e)}}function db(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function pb(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function gb(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function yb(t,e){var r=hc(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?ub:hb:typeof e=="function"?r.local?gb:pb:r.local?db:fb)(r,e))}function L2(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mb(t){return function(){this.style.removeProperty(t)}}function bb(t,e,r){return function(){this.style.setProperty(t,e,r)}}function _b(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function xb(t,e,r){return arguments.length>1?this.each((e==null?mb:typeof e=="function"?_b:bb)(t,e,r??"")):vs(this.node(),t)}function vs(t,e){return t.style.getPropertyValue(e)||L2(t).getComputedStyle(t,null).getPropertyValue(e)}function vb(t){return function(){delete this[t]}}function kb(t,e){return function(){this[t]=e}}function wb(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Tb(t,e){return arguments.length>1?this.each((e==null?vb:typeof e=="function"?wb:kb)(t,e)):this.node()[t]}function B2(t){return t.trim().split(/^|\s+/)}function a1(t){return t.classList||new D2(t)}function D2(t){this._node=t,this._names=B2(t.getAttribute("class")||"")}D2.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function I2(t,e){for(var r=a1(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function M2(t,e){for(var r=a1(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function Eb(t){return function(){I2(this,t)}}function Cb(t){return function(){M2(this,t)}}function Sb(t,e){return function(){(e.apply(this,arguments)?I2:M2)(this,t)}}function Ab(t,e){var r=B2(t+"");if(arguments.length<2){for(var i=a1(this.node()),n=-1,s=r.length;++n<s;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof e=="function"?Sb:e?Eb:Cb)(r,e))}function Lb(){this.textContent=""}function Bb(t){return function(){this.textContent=t}}function Db(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Ib(t){return arguments.length?this.each(t==null?Lb:(typeof t=="function"?Db:Bb)(t)):this.node().textContent}function Mb(){this.innerHTML=""}function Nb(t){return function(){this.innerHTML=t}}function Rb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ob(t){return arguments.length?this.each(t==null?Mb:(typeof t=="function"?Rb:Nb)(t)):this.node().innerHTML}function Fb(){this.nextSibling&&this.parentNode.appendChild(this)}function Pb(){return this.each(Fb)}function Vb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yb(){return this.each(Vb)}function zb(t){var e=typeof t=="function"?t:w2(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ub(){return null}function Wb(t,e){var r=typeof t=="function"?t:w2(t),i=e==null?Ub:typeof e=="function"?e:s1(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Hb(){var t=this.parentNode;t&&t.removeChild(this)}function qb(){return this.each(Hb)}function Gb(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function $b(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function jb(t){return this.select(t?$b:Gb)}function Xb(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Kb(t){return function(e){t.call(this,e,this.__data__)}}function Zb(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function Qb(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,n=e.length,s;r<n;++r)s=e[r],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function Jb(t,e,r){return function(){var i=this.__on,n,s=Kb(e);if(i){for(var a=0,o=i.length;a<o;++a)if((n=i[a]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=r),n.value=e;return}}this.addEventListener(t.type,s,r),n={type:t.type,name:t.name,value:e,listener:s,options:r},i?i.push(n):this.__on=[n]}}function t_(t,e,r){var i=Zb(t+""),n,s=i.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,h=o.length,u;l<h;++l)for(n=0,u=o[l];n<s;++n)if((a=i[n]).type===u.type&&a.name===u.name)return u.value}return}for(o=e?Jb:Qb,n=0;n<s;++n)this.each(o(i[n],e,r));return this}function N2(t,e,r){var i=L2(t),n=i.CustomEvent;typeof n=="function"?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function e_(t,e){return function(){return N2(this,t,e)}}function r_(t,e){return function(){return N2(this,t,e.apply(this,arguments))}}function i_(t,e){return this.each((typeof e=="function"?r_:e_)(t,e))}function*n_(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length,a;n<s;++n)(a=i[n])&&(yield a)}var o1=[null];function dr(t,e){this._groups=t,this._parents=e}function io(){return new dr([[document.documentElement]],o1)}function s_(){return this}dr.prototype=io.prototype={constructor:dr,select:I5,selectAll:R5,selectChild:V5,selectChildren:W5,filter:H5,data:K5,enter:q5,exit:Q5,join:J5,merge:tb,selection:s_,order:eb,sort:rb,call:nb,nodes:sb,node:ab,size:ob,empty:lb,each:cb,attr:yb,style:xb,property:Tb,classed:Ab,text:Ib,html:Ob,raise:Pb,lower:Yb,append:zb,insert:Wb,remove:qb,clone:jb,datum:Xb,on:t_,dispatch:i_,[Symbol.iterator]:n_};function _t(t){return typeof t=="string"?new dr([[document.querySelector(t)]],[document.documentElement]):new dr([[t]],o1)}function l1(t){return typeof t=="string"?new dr([document.querySelectorAll(t)],[document.documentElement]):new dr([T2(t)],o1)}function no(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function uc(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function qn(){}var Sa=.7,cl=1/Sa,ps="\\s*([+-]?\\d+)\\s*",Aa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a_=/^#([0-9a-f]{3,8})$/,o_=new RegExp(`^rgb\\(${ps},${ps},${ps}\\)$`),l_=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),c_=new RegExp(`^rgba\\(${ps},${ps},${ps},${Aa}\\)$`),h_=new RegExp(`^rgba\\(${di},${di},${di},${Aa}\\)$`),u_=new RegExp(`^hsl\\(${Aa},${di},${di}\\)$`),f_=new RegExp(`^hsla\\(${Aa},${di},${di},${Aa}\\)$`),P0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};no(qn,Dn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:V0,formatHex:V0,formatHex8:d_,formatHsl:p_,formatRgb:Y0,toString:Y0});function V0(){return this.rgb().formatHex()}function d_(){return this.rgb().formatHex8()}function p_(){return O2(this).formatHsl()}function Y0(){return this.rgb().formatRgb()}function Dn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=a_.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?z0(e):r===3?new sr(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?wo(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?wo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=o_.exec(t))?new sr(e[1],e[2],e[3],1):(e=l_.exec(t))?new sr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=c_.exec(t))?wo(e[1],e[2],e[3],e[4]):(e=h_.exec(t))?wo(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=u_.exec(t))?H0(e[1],e[2]/100,e[3]/100,1):(e=f_.exec(t))?H0(e[1],e[2]/100,e[3]/100,e[4]):P0.hasOwnProperty(t)?z0(P0[t]):t==="transparent"?new sr(NaN,NaN,NaN,0):null}function z0(t){return new sr(t>>16&255,t>>8&255,t&255,1)}function wo(t,e,r,i){return i<=0&&(t=e=r=NaN),new sr(t,e,r,i)}function R2(t){return t instanceof qn||(t=Dn(t)),t?(t=t.rgb(),new sr(t.r,t.g,t.b,t.opacity)):new sr}function jh(t,e,r,i){return arguments.length===1?R2(t):new sr(t,e,r,i??1)}function sr(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}no(sr,jh,uc(qn,{brighter(t){return t=t==null?cl:Math.pow(cl,t),new sr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Sa:Math.pow(Sa,t),new sr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new sr(Ln(this.r),Ln(this.g),Ln(this.b),hl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U0,formatHex:U0,formatHex8:g_,formatRgb:W0,toString:W0}));function U0(){return`#${An(this.r)}${An(this.g)}${An(this.b)}`}function g_(){return`#${An(this.r)}${An(this.g)}${An(this.b)}${An((isNaN(this.opacity)?1:this.opacity)*255)}`}function W0(){const t=hl(this.opacity);return`${t===1?"rgb(":"rgba("}${Ln(this.r)}, ${Ln(this.g)}, ${Ln(this.b)}${t===1?")":`, ${t})`}`}function hl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ln(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function An(t){return t=Ln(t),(t<16?"0":"")+t.toString(16)}function H0(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Gr(t,e,r,i)}function O2(t){if(t instanceof Gr)return new Gr(t.h,t.s,t.l,t.opacity);if(t instanceof qn||(t=Dn(t)),!t)return new Gr;if(t instanceof Gr)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),s=Math.max(e,r,i),a=NaN,o=s-n,l=(s+n)/2;return o?(e===s?a=(r-i)/o+(r<i)*6:r===s?a=(i-e)/o+2:a=(e-r)/o+4,o/=l<.5?s+n:2-s-n,a*=60):o=l>0&&l<1?0:a,new Gr(a,o,l,t.opacity)}function y_(t,e,r,i){return arguments.length===1?O2(t):new Gr(t,e,r,i??1)}function Gr(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}no(Gr,y_,uc(qn,{brighter(t){return t=t==null?cl:Math.pow(cl,t),new Gr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Sa:Math.pow(Sa,t),new Gr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new sr(ih(t>=240?t-240:t+120,n,i),ih(t,n,i),ih(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new Gr(q0(this.h),To(this.s),To(this.l),hl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=hl(this.opacity);return`${t===1?"hsl(":"hsla("}${q0(this.h)}, ${To(this.s)*100}%, ${To(this.l)*100}%${t===1?")":`, ${t})`}`}}));function q0(t){return t=(t||0)%360,t<0?t+360:t}function To(t){return Math.max(0,Math.min(1,t||0))}function ih(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const m_=Math.PI/180,b_=180/Math.PI,ul=18,F2=.96422,P2=1,V2=.82521,Y2=4/29,gs=6/29,z2=3*gs*gs,__=gs*gs*gs;function U2(t){if(t instanceof pi)return new pi(t.l,t.a,t.b,t.opacity);if(t instanceof Oi)return W2(t);t instanceof sr||(t=R2(t));var e=oh(t.r),r=oh(t.g),i=oh(t.b),n=nh((.2225045*e+.7168786*r+.0606169*i)/P2),s,a;return e===r&&r===i?s=a=n:(s=nh((.4360747*e+.3850649*r+.1430804*i)/F2),a=nh((.0139322*e+.0971045*r+.7141733*i)/V2)),new pi(116*n-16,500*(s-n),200*(n-a),t.opacity)}function x_(t,e,r,i){return arguments.length===1?U2(t):new pi(t,e,r,i??1)}function pi(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}no(pi,x_,uc(qn,{brighter(t){return new pi(this.l+ul*(t??1),this.a,this.b,this.opacity)},darker(t){return new pi(this.l-ul*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=F2*sh(e),t=P2*sh(t),r=V2*sh(r),new sr(ah(3.1338561*e-1.6168667*t-.4906146*r),ah(-.9787684*e+1.9161415*t+.033454*r),ah(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function nh(t){return t>__?Math.pow(t,1/3):t/z2+Y2}function sh(t){return t>gs?t*t*t:z2*(t-Y2)}function ah(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function oh(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function v_(t){if(t instanceof Oi)return new Oi(t.h,t.c,t.l,t.opacity);if(t instanceof pi||(t=U2(t)),t.a===0&&t.b===0)return new Oi(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*b_;return new Oi(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Xh(t,e,r,i){return arguments.length===1?v_(t):new Oi(t,e,r,i??1)}function Oi(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function W2(t){if(isNaN(t.h))return new pi(t.l,0,0,t.opacity);var e=t.h*m_;return new pi(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}no(Oi,Xh,uc(qn,{brighter(t){return new Oi(this.h,this.c,this.l+ul*(t??1),this.opacity)},darker(t){return new Oi(this.h,this.c,this.l-ul*(t??1),this.opacity)},rgb(){return W2(this).rgb()}}));const fc=t=>()=>t;function H2(t,e){return function(r){return t+r*e}}function k_(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function w_(t,e){var r=e-t;return r?H2(t,r>180||r<-180?r-360*Math.round(r/360):r):fc(isNaN(t)?e:t)}function T_(t){return(t=+t)==1?ga:function(e,r){return r-e?k_(e,r,t):fc(isNaN(e)?r:e)}}function ga(t,e){var r=e-t;return r?H2(t,r):fc(isNaN(t)?e:t)}const fl=function t(e){var r=T_(e);function i(n,s){var a=r((n=jh(n)).r,(s=jh(s)).r),o=r(n.g,s.g),l=r(n.b,s.b),h=ga(n.opacity,s.opacity);return function(u){return n.r=a(u),n.g=o(u),n.b=l(u),n.opacity=h(u),n+""}}return i.gamma=t,i}(1);function E_(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),n;return function(s){for(n=0;n<r;++n)i[n]=t[n]*(1-s)+e[n]*s;return i}}function C_(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function S_(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,n=new Array(i),s=new Array(r),a;for(a=0;a<i;++a)n[a]=c1(t[a],e[a]);for(;a<r;++a)s[a]=e[a];return function(o){for(a=0;a<i;++a)s[a]=n[a](o);return s}}function A_(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}function qr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function L_(t,e){var r={},i={},n;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(n in e)n in t?r[n]=c1(t[n],e[n]):i[n]=e[n];return function(s){for(n in r)i[n]=r[n](s);return i}}var Kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lh=new RegExp(Kh.source,"g");function B_(t){return function(){return t}}function D_(t){return function(e){return t(e)+""}}function q2(t,e){var r=Kh.lastIndex=lh.lastIndex=0,i,n,s,a=-1,o=[],l=[];for(t=t+"",e=e+"";(i=Kh.exec(t))&&(n=lh.exec(e));)(s=n.index)>r&&(s=e.slice(r,s),o[a]?o[a]+=s:o[++a]=s),(i=i[0])===(n=n[0])?o[a]?o[a]+=n:o[++a]=n:(o[++a]=null,l.push({i:a,x:qr(i,n)})),r=lh.lastIndex;return r<e.length&&(s=e.slice(r),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?D_(l[0].x):B_(e):(e=l.length,function(h){for(var u=0,f;u<e;++u)o[(f=l[u]).i]=f.x(h);return o.join("")})}function c1(t,e){var r=typeof e,i;return e==null||r==="boolean"?fc(e):(r==="number"?qr:r==="string"?(i=Dn(e))?(e=i,fl):q2:e instanceof Dn?fl:e instanceof Date?A_:C_(e)?E_:Array.isArray(e)?S_:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?L_:qr)(t,e)}function I_(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var G0=180/Math.PI,Zh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function G2(t,e,r,i,n,s){var a,o,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),t*i<e*r&&(t=-t,e=-e,l=-l,a=-a),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*G0,skewX:Math.atan(l)*G0,scaleX:a,scaleY:o}}var Eo;function M_(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Zh:G2(e.a,e.b,e.c,e.d,e.e,e.f)}function N_(t){return t==null||(Eo||(Eo=document.createElementNS("http://www.w3.org/2000/svg","g")),Eo.setAttribute("transform",t),!(t=Eo.transform.baseVal.consolidate()))?Zh:(t=t.matrix,G2(t.a,t.b,t.c,t.d,t.e,t.f))}function $2(t,e,r,i){function n(h){return h.length?h.pop()+" ":""}function s(h,u,f,d,p,m){if(h!==f||u!==d){var b=p.push("translate(",null,e,null,r);m.push({i:b-4,x:qr(h,f)},{i:b-2,x:qr(u,d)})}else(f||d)&&p.push("translate("+f+e+d+r)}function a(h,u,f,d){h!==u?(h-u>180?u+=360:u-h>180&&(h+=360),d.push({i:f.push(n(f)+"rotate(",null,i)-2,x:qr(h,u)})):u&&f.push(n(f)+"rotate("+u+i)}function o(h,u,f,d){h!==u?d.push({i:f.push(n(f)+"skewX(",null,i)-2,x:qr(h,u)}):u&&f.push(n(f)+"skewX("+u+i)}function l(h,u,f,d,p,m){if(h!==f||u!==d){var b=p.push(n(p)+"scale(",null,",",null,")");m.push({i:b-4,x:qr(h,f)},{i:b-2,x:qr(u,d)})}else(f!==1||d!==1)&&p.push(n(p)+"scale("+f+","+d+")")}return function(h,u){var f=[],d=[];return h=t(h),u=t(u),s(h.translateX,h.translateY,u.translateX,u.translateY,f,d),a(h.rotate,u.rotate,f,d),o(h.skewX,u.skewX,f,d),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,f,d),h=u=null,function(p){for(var m=-1,b=d.length,x;++m<b;)f[(x=d[m]).i]=x.x(p);return f.join("")}}}var R_=$2(M_,"px, ","px)","deg)"),O_=$2(N_,", ",")",")");function F_(t){return function(e,r){var i=t((e=Xh(e)).h,(r=Xh(r)).h),n=ga(e.c,r.c),s=ga(e.l,r.l),a=ga(e.opacity,r.opacity);return function(o){return e.h=i(o),e.c=n(o),e.l=s(o),e.opacity=a(o),e+""}}}const P_=F_(w_);var ks=0,la=0,Zs=0,j2=1e3,dl,ca,pl=0,In=0,dc=0,La=typeof performance=="object"&&performance.now?performance:Date,X2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function h1(){return In||(X2(V_),In=La.now()+dc)}function V_(){In=0}function gl(){this._call=this._time=this._next=null}gl.prototype=K2.prototype={constructor:gl,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?h1():+r)+(e==null?0:+e),!this._next&&ca!==this&&(ca?ca._next=this:dl=this,ca=this),this._call=t,this._time=r,Qh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qh())}};function K2(t,e,r){var i=new gl;return i.restart(t,e,r),i}function Y_(){h1(),++ks;for(var t=dl,e;t;)(e=In-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ks}function $0(){In=(pl=La.now())+dc,ks=la=0;try{Y_()}finally{ks=0,U_(),In=0}}function z_(){var t=La.now(),e=t-pl;e>j2&&(dc-=e,pl=t)}function U_(){for(var t,e=dl,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:dl=r);ca=t,Qh(i)}function Qh(t){if(!ks){la&&(la=clearTimeout(la));var e=t-In;e>24?(t<1/0&&(la=setTimeout($0,t-La.now()-dc)),Zs&&(Zs=clearInterval(Zs))):(Zs||(pl=La.now(),Zs=setInterval(z_,j2)),ks=1,X2($0))}}function j0(t,e,r){var i=new gl;return e=e==null?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,r),i}var W_=k2("start","end","cancel","interrupt"),H_=[],Z2=0,X0=1,Jh=2,Uo=3,K0=4,tu=5,Wo=6;function pc(t,e,r,i,n,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;q_(t,r,{name:e,index:i,group:n,on:W_,tween:H_,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Z2})}function u1(t,e){var r=ri(t,e);if(r.state>Z2)throw new Error("too late; already scheduled");return r}function _i(t,e){var r=ri(t,e);if(r.state>Uo)throw new Error("too late; already running");return r}function ri(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function q_(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=K2(s,0,r.time);function s(h){r.state=X0,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}function a(h){var u,f,d,p;if(r.state!==X0)return l();for(u in i)if(p=i[u],p.name===r.name){if(p.state===Uo)return j0(a);p.state===K0?(p.state=Wo,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[u]):+u<e&&(p.state=Wo,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete i[u])}if(j0(function(){r.state===Uo&&(r.state=K0,r.timer.restart(o,r.delay,r.time),o(h))}),r.state=Jh,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Jh){for(r.state=Uo,n=new Array(d=r.tween.length),u=0,f=-1;u<d;++u)(p=r.tween[u].value.call(t,t.__data__,r.index,r.group))&&(n[++f]=p);n.length=f+1}}function o(h){for(var u=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(l),r.state=tu,1),f=-1,d=n.length;++f<d;)n[f].call(t,u);r.state===tu&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=Wo,r.timer.stop(),delete i[e];for(var h in i)return;delete t.__transition}}function G_(t,e){var r=t.__transition,i,n,s=!0,a;if(r){e=e==null?null:e+"";for(a in r){if((i=r[a]).name!==e){s=!1;continue}n=i.state>Jh&&i.state<tu,i.state=Wo,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[a]}s&&delete t.__transition}}function $_(t){return this.each(function(){G_(this,t)})}function j_(t,e){var r,i;return function(){var n=_i(this,t),s=n.tween;if(s!==r){i=r=s;for(var a=0,o=i.length;a<o;++a)if(i[a].name===e){i=i.slice(),i.splice(a,1);break}}n.tween=i}}function X_(t,e,r){var i,n;if(typeof r!="function")throw new Error;return function(){var s=_i(this,t),a=s.tween;if(a!==i){n=(i=a).slice();for(var o={name:e,value:r},l=0,h=n.length;l<h;++l)if(n[l].name===e){n[l]=o;break}l===h&&n.push(o)}s.tween=n}}function K_(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i=ri(this.node(),r).tween,n=0,s=i.length,a;n<s;++n)if((a=i[n]).name===t)return a.value;return null}return this.each((e==null?j_:X_)(r,t,e))}function f1(t,e,r){var i=t._id;return t.each(function(){var n=_i(this,i);(n.value||(n.value={}))[e]=r.apply(this,arguments)}),function(n){return ri(n,i).value[e]}}function Q2(t,e){var r;return(typeof e=="number"?qr:e instanceof Dn?fl:(r=Dn(e))?(e=r,fl):q2)(t,e)}function Z_(t){return function(){this.removeAttribute(t)}}function Q_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function J_(t,e,r){var i,n=r+"",s;return function(){var a=this.getAttribute(t);return a===n?null:a===i?s:s=e(i=a,r)}}function tx(t,e,r){var i,n=r+"",s;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===i?s:s=e(i=a,r)}}function ex(t,e,r){var i,n,s;return function(){var a,o=r(this),l;return o==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=o+"",a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o)))}}function rx(t,e,r){var i,n,s;return function(){var a,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=o+"",a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o)))}}function ix(t,e){var r=hc(t),i=r==="transform"?O_:Q2;return this.attrTween(t,typeof e=="function"?(r.local?rx:ex)(r,i,f1(this,"attr."+t,e)):e==null?(r.local?Q_:Z_)(r):(r.local?tx:J_)(r,i,e))}function nx(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function sx(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function ax(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&sx(t,s)),r}return n._value=e,n}function ox(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&nx(t,s)),r}return n._value=e,n}function lx(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=hc(t);return this.tween(r,(i.local?ax:ox)(i,e))}function cx(t,e){return function(){u1(this,t).delay=+e.apply(this,arguments)}}function hx(t,e){return e=+e,function(){u1(this,t).delay=e}}function ux(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?cx:hx)(e,t)):ri(this.node(),e).delay}function fx(t,e){return function(){_i(this,t).duration=+e.apply(this,arguments)}}function dx(t,e){return e=+e,function(){_i(this,t).duration=e}}function px(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?fx:dx)(e,t)):ri(this.node(),e).duration}function gx(t,e){if(typeof e!="function")throw new Error;return function(){_i(this,t).ease=e}}function yx(t){var e=this._id;return arguments.length?this.each(gx(e,t)):ri(this.node(),e).ease}function mx(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;_i(this,t).ease=r}}function bx(t){if(typeof t!="function")throw new Error;return this.each(mx(this._id,t))}function _x(t){typeof t!="function"&&(t=C2(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=[],l,h=0;h<a;++h)(l=s[h])&&t.call(l,l.__data__,h,s)&&o.push(l);return new qi(i,this._parents,this._name,this._id)}function xx(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,s=Math.min(i,n),a=new Array(i),o=0;o<s;++o)for(var l=e[o],h=r[o],u=l.length,f=a[o]=new Array(u),d,p=0;p<u;++p)(d=l[p]||h[p])&&(f[p]=d);for(;o<i;++o)a[o]=e[o];return new qi(a,this._parents,this._name,this._id)}function vx(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function kx(t,e,r){var i,n,s=vx(e)?u1:_i;return function(){var a=s(this,t),o=a.on;o!==i&&(n=(i=o).copy()).on(e,r),a.on=n}}function wx(t,e){var r=this._id;return arguments.length<2?ri(this.node(),r).on.on(t):this.each(kx(r,t,e))}function Tx(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Ex(){return this.on("end.remove",Tx(this._id))}function Cx(t){var e=this._name,r=this._id;typeof t!="function"&&(t=s1(t));for(var i=this._groups,n=i.length,s=new Array(n),a=0;a<n;++a)for(var o=i[a],l=o.length,h=s[a]=new Array(l),u,f,d=0;d<l;++d)(u=o[d])&&(f=t.call(u,u.__data__,d,o))&&("__data__"in u&&(f.__data__=u.__data__),h[d]=f,pc(h[d],e,r,d,h,ri(u,r)));return new qi(s,this._parents,e,r)}function Sx(t){var e=this._name,r=this._id;typeof t!="function"&&(t=E2(t));for(var i=this._groups,n=i.length,s=[],a=[],o=0;o<n;++o)for(var l=i[o],h=l.length,u,f=0;f<h;++f)if(u=l[f]){for(var d=t.call(u,u.__data__,f,l),p,m=ri(u,r),b=0,x=d.length;b<x;++b)(p=d[b])&&pc(p,e,r,b,d,m);s.push(d),a.push(u)}return new qi(s,a,e,r)}var Ax=io.prototype.constructor;function Lx(){return new Ax(this._groups,this._parents)}function Bx(t,e){var r,i,n;return function(){var s=vs(this,t),a=(this.style.removeProperty(t),vs(this,t));return s===a?null:s===r&&a===i?n:n=e(r=s,i=a)}}function J2(t){return function(){this.style.removeProperty(t)}}function Dx(t,e,r){var i,n=r+"",s;return function(){var a=vs(this,t);return a===n?null:a===i?s:s=e(i=a,r)}}function Ix(t,e,r){var i,n,s;return function(){var a=vs(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),vs(this,t))),a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o))}}function Mx(t,e){var r,i,n,s="style."+e,a="end."+s,o;return function(){var l=_i(this,t),h=l.on,u=l.value[s]==null?o||(o=J2(e)):void 0;(h!==r||n!==u)&&(i=(r=h).copy()).on(a,n=u),l.on=i}}function Nx(t,e,r){var i=(t+="")=="transform"?R_:Q2;return e==null?this.styleTween(t,Bx(t,i)).on("end.style."+t,J2(t)):typeof e=="function"?this.styleTween(t,Ix(t,i,f1(this,"style."+t,e))).each(Mx(this._id,t)):this.styleTween(t,Dx(t,i,e),r).on("end.style."+t,null)}function Rx(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function Ox(t,e,r){var i,n;function s(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&Rx(t,a,r)),i}return s._value=e,s}function Fx(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Ox(t,e,r??""))}function Px(t){return function(){this.textContent=t}}function Vx(t){return function(){var e=t(this);this.textContent=e??""}}function Yx(t){return this.tween("text",typeof t=="function"?Vx(f1(this,"text",t)):Px(t==null?"":t+""))}function zx(t){return function(e){this.textContent=t.call(this,e)}}function Ux(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&zx(n)),e}return i._value=t,i}function Wx(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Ux(t))}function Hx(){for(var t=this._name,e=this._id,r=tp(),i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],o=a.length,l,h=0;h<o;++h)if(l=a[h]){var u=ri(l,e);pc(l,t,r,h,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new qi(i,this._parents,t,r)}function qx(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--n===0&&s()}};r.each(function(){var h=_i(this,i),u=h.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),h.on=e}),n===0&&s()})}var Gx=0;function qi(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function tp(){return++Gx}var Ci=io.prototype;qi.prototype={constructor:qi,select:Cx,selectAll:Sx,selectChild:Ci.selectChild,selectChildren:Ci.selectChildren,filter:_x,merge:xx,selection:Lx,transition:Hx,call:Ci.call,nodes:Ci.nodes,node:Ci.node,size:Ci.size,empty:Ci.empty,each:Ci.each,on:wx,attr:ix,attrTween:lx,style:Nx,styleTween:Fx,text:Yx,textTween:Wx,remove:Ex,tween:K_,delay:ux,duration:px,ease:yx,easeVarying:bx,end:qx,[Symbol.iterator]:Ci[Symbol.iterator]};function $x(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var jx={time:null,delay:0,duration:250,ease:$x};function Xx(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function Kx(t){var e,r;t instanceof qi?(e=t._id,t=t._name):(e=tp(),(r=jx).time=h1(),t=t==null?null:t+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],o=a.length,l,h=0;h<o;++h)(l=a[h])&&pc(l,t,e,h,a,r||Xx(l,e));return new qi(i,this._parents,t,e)}io.prototype.interrupt=$_;io.prototype.transition=Kx;const eu=Math.PI,ru=2*eu,Tn=1e-6,Zx=ru-Tn;function ep(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function Qx(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ep;const r=10**e;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class Jx{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ep:Qx(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,n){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,r,i,n,s,a){this._append`C${+e},${+r},${+i},${+n},${this._x1=+s},${this._y1=+a}`}arcTo(e,r,i,n,s){if(e=+e,r=+r,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=i-e,h=n-r,u=a-e,f=o-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(d>Tn)if(!(Math.abs(f*l-h*u)>Tn)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let p=i-a,m=n-o,b=l*l+h*h,x=p*p+m*m,k=Math.sqrt(b),v=Math.sqrt(d),B=s*Math.tan((eu-Math.acos((b+d-x)/(2*k*v)))/2),R=B/v,P=B/k;Math.abs(R-1)>Tn&&this._append`L${e+R*u},${r+R*f}`,this._append`A${s},${s},0,0,${+(f*p>u*m)},${this._x1=e+P*l},${this._y1=r+P*h}`}}arc(e,r,i,n,s,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),l=i*Math.sin(n),h=e+o,u=r+l,f=1^a,d=a?n-s:s-n;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>Tn||Math.abs(this._y1-u)>Tn)&&this._append`L${h},${u}`,i&&(d<0&&(d=d%ru+ru),d>Zx?this._append`A${i},${i},0,1,${f},${e-o},${r-l}A${i},${i},0,1,${f},${this._x1=h},${this._y1=u}`:d>Tn&&this._append`A${i},${i},0,${+(d>=eu)},${f},${this._x1=e+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(e,r,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function t6(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function e6(t,e){return fetch(t,e).then(t6)}function r6(t){return(e,r)=>e6(e,r).then(i=>new DOMParser().parseFromString(i,t))}var i6=r6("image/svg+xml");function n6(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function yl(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function ws(t){return t=yl(Math.abs(t)),t?t[1]:NaN}function s6(t,e){return function(r,i){for(var n=r.length,s=[],a=0,o=t[0],l=0;n>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),s.push(r.substring(n-=o,n+o)),!((l+=o+1)>i));)o=t[a=(a+1)%t.length];return s.reverse().join(e)}}function a6(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var o6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ml(t){if(!(e=o6.exec(t)))throw new Error("invalid format: "+t);var e;return new d1({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}ml.prototype=d1.prototype;function d1(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}d1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l6(t){t:for(var e=t.length,r=1,i=-1,n;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(n+1):t}var rp;function c6(t,e){var r=yl(t,e);if(!r)return t+"";var i=r[0],n=r[1],s=n-(rp=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+yl(t,Math.max(0,e+s-1))[0]}function Z0(t,e){var r=yl(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}const Q0={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:n6,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Z0(t*100,e),r:Z0,s:c6,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function J0(t){return t}var tf=Array.prototype.map,ef=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h6(t){var e=t.grouping===void 0||t.thousands===void 0?J0:s6(tf.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?J0:a6(tf.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function h(f){f=ml(f);var d=f.fill,p=f.align,m=f.sign,b=f.symbol,x=f.zero,k=f.width,v=f.comma,B=f.precision,R=f.trim,P=f.type;P==="n"?(v=!0,P="g"):Q0[P]||(B===void 0&&(B=12),R=!0,P="g"),(x||d==="0"&&p==="=")&&(x=!0,d="0",p="=");var V=b==="$"?r:b==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",O=b==="$"?i:/[%p]/.test(P)?a:"",F=Q0[P],C=/[defgprs%]/.test(P);B=B===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,B)):Math.max(0,Math.min(20,B));function S(E){var _=V,w=O,g,D,y;if(P==="c")w=F(E)+w,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?l:F(Math.abs(E),B),R&&(E=l6(E)),N&&+E==0&&m!=="+"&&(N=!1),_=(N?m==="("?m:o:m==="-"||m==="("?"":m)+_,w=(P==="s"?ef[8+rp/3]:"")+w+(N&&m==="("?")":""),C){for(g=-1,D=E.length;++g<D;)if(y=E.charCodeAt(g),48>y||y>57){w=(y===46?n+E.slice(g+1):E.slice(g))+w,E=E.slice(0,g);break}}}v&&!x&&(E=e(E,1/0));var nt=_.length+E.length+w.length,Y=nt<k?new Array(k-nt+1).join(d):"";switch(v&&x&&(E=e(Y+E,Y.length?k-w.length:1/0),Y=""),p){case"<":E=_+E+w+Y;break;case"=":E=_+Y+E+w;break;case"^":E=Y.slice(0,nt=Y.length>>1)+_+E+w+Y.slice(nt);break;default:E=Y+_+E+w;break}return s(E)}return S.toString=function(){return f+""},S}function u(f,d){var p=h((f=ml(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(ws(d)/3)))*3,b=Math.pow(10,-m),x=ef[8+m/3];return function(k){return p(b*k)+x}}return{format:h,formatPrefix:u}}var Co,ip,np;u6({thousands:",",grouping:[3],currency:["$",""]});function u6(t){return Co=h6(t),ip=Co.format,np=Co.formatPrefix,Co}function f6(t){return Math.max(0,-ws(Math.abs(t)))}function d6(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ws(e)/3)))*3-ws(Math.abs(t)))}function p6(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ws(e)-ws(t))+1}function p1(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const rf=Symbol("implicit");function sp(){var t=new M0,e=[],r=[],i=rf;function n(s){let a=t.get(s);if(a===void 0){if(i!==rf)return i;t.set(s,a=e.push(s)-1)}return r[a%r.length]}return n.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new M0;for(const a of s)t.has(a)||t.set(a,e.push(a)-1);return n},n.range=function(s){return arguments.length?(r=Array.from(s),n):r.slice()},n.unknown=function(s){return arguments.length?(i=s,n):i},n.copy=function(){return sp(e,r).unknown(i)},p1.apply(n,arguments),n}function g6(t){return function(){return t}}function y6(t){return+t}var nf=[0,1];function as(t){return t}function iu(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:g6(isNaN(e)?NaN:.5)}function m6(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function b6(t,e,r){var i=t[0],n=t[1],s=e[0],a=e[1];return n<i?(i=iu(n,i),s=r(a,s)):(i=iu(i,n),s=r(s,a)),function(o){return s(i(o))}}function _6(t,e,r){var i=Math.min(t.length,e.length)-1,n=new Array(i),s=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)n[a]=iu(t[a],t[a+1]),s[a]=r(e[a],e[a+1]);return function(o){var l=l5(t,o,1,i)-1;return s[l](n[l](o))}}function ap(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function x6(){var t=nf,e=nf,r=c1,i,n,s,a=as,o,l,h;function u(){var d=Math.min(t.length,e.length);return a!==as&&(a=m6(t[0],t[d-1])),o=d>2?_6:b6,l=h=null,f}function f(d){return d==null||isNaN(d=+d)?s:(l||(l=o(t.map(i),e,r)))(i(a(d)))}return f.invert=function(d){return a(n((h||(h=o(e,t.map(i),qr)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,y6),u()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),u()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),r=I_,u()},f.clamp=function(d){return arguments.length?(a=d?!0:as,u()):a!==as},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(s=d,f):s},function(d,p){return i=d,n=p,u()}}function op(){return x6()(as,as)}function v6(t,e,r,i){var n=qh(t,e,r),s;switch(i=ml(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(s=d6(n,a))&&(i.precision=s),np(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=p6(n,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=f6(n))&&(i.precision=s-(i.type==="%")*2);break}}return ip(i)}function k6(t){var e=t.domain;return t.ticks=function(r){var i=e();return g5(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var n=e();return v6(n[0],n[n.length-1],r??10,i)},t.nice=function(r){r==null&&(r=10);var i=e(),n=0,s=i.length-1,a=i[n],o=i[s],l,h,u=10;for(o<a&&(h=a,a=o,o=h,h=n,n=s,s=h);u-- >0;){if(h=Hh(a,o,r),h===l)return i[n]=a,i[s]=o,e(i);if(h>0)a=Math.floor(a/h)*h,o=Math.ceil(o/h)*h;else if(h<0)a=Math.ceil(a*h)/h,o=Math.floor(o*h)/h;else break;l=h}return t},t}function lp(){var t=op();return t.copy=function(){return ap(t,lp())},p1.apply(t,arguments),k6(t)}function w6(t,e){t=t.slice();var r=0,i=t.length-1,n=t[r],s=t[i],a;return s<n&&(a=r,r=i,i=a,a=n,n=s,s=a),t[r]=e.floor(n),t[i]=e.ceil(s),t}const ch=new Date,hh=new Date;function He(t,e,r,i){function n(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return n.floor=s=>(t(s=new Date(+s)),s),n.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),n.round=s=>{const a=n(s),o=n.ceil(s);return s-a<o-s?a:o},n.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),n.range=(s,a,o)=>{const l=[];if(s=n.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let h;do l.push(h=new Date(+s)),e(s,o),t(s);while(h<s&&s<a);return l},n.filter=s=>He(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;e(a,-1),!s(a););else for(;--o>=0;)for(;e(a,1),!s(a););}),r&&(n.count=(s,a)=>(ch.setTime(+s),hh.setTime(+a),t(ch),t(hh),Math.floor(r(ch,hh))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(i?a=>i(a)%s===0:a=>n.count(0,a)%s===0):n)),n}const bl=He(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);bl.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?He(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):bl);bl.range;const Fi=1e3,Vr=Fi*60,Pi=Vr*60,Gi=Pi*24,g1=Gi*7,sf=Gi*30,uh=Gi*365,os=He(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Fi)},(t,e)=>(e-t)/Fi,t=>t.getUTCSeconds());os.range;const Ba=He(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi)},(t,e)=>{t.setTime(+t+e*Vr)},(t,e)=>(e-t)/Vr,t=>t.getMinutes());Ba.range;const T6=He(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Vr)},(t,e)=>(e-t)/Vr,t=>t.getUTCMinutes());T6.range;const Da=He(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fi-t.getMinutes()*Vr)},(t,e)=>{t.setTime(+t+e*Pi)},(t,e)=>(e-t)/Pi,t=>t.getHours());Da.range;const E6=He(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Pi)},(t,e)=>(e-t)/Pi,t=>t.getUTCHours());E6.range;const Mn=He(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Vr)/Gi,t=>t.getDate()-1);Mn.range;const y1=He(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gi,t=>t.getUTCDate()-1);y1.range;const C6=He(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gi,t=>Math.floor(t/Gi));C6.range;function Gn(t){return He(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Vr)/g1)}const Ts=Gn(0),_l=Gn(1),S6=Gn(2),A6=Gn(3),Es=Gn(4),L6=Gn(5),B6=Gn(6);Ts.range;_l.range;S6.range;A6.range;Es.range;L6.range;B6.range;function $n(t){return He(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/g1)}const cp=$n(0),xl=$n(1),D6=$n(2),I6=$n(3),Cs=$n(4),M6=$n(5),N6=$n(6);cp.range;xl.range;D6.range;I6.range;Cs.range;M6.range;N6.range;const Ia=He(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Ia.range;const R6=He(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());R6.range;const $i=He(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());$i.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:He(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});$i.range;const Nn=He(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Nn.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:He(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Nn.range;function O6(t,e,r,i,n,s){const a=[[os,1,Fi],[os,5,5*Fi],[os,15,15*Fi],[os,30,30*Fi],[s,1,Vr],[s,5,5*Vr],[s,15,15*Vr],[s,30,30*Vr],[n,1,Pi],[n,3,3*Pi],[n,6,6*Pi],[n,12,12*Pi],[i,1,Gi],[i,2,2*Gi],[r,1,g1],[e,1,sf],[e,3,3*sf],[t,1,uh]];function o(h,u,f){const d=u<h;d&&([h,u]=[u,h]);const p=f&&typeof f.range=="function"?f:l(h,u,f),m=p?p.range(h,+u+1):[];return d?m.reverse():m}function l(h,u,f){const d=Math.abs(u-h)/f,p=n1(([,,x])=>x).right(a,d);if(p===a.length)return t.every(qh(h/uh,u/uh,f));if(p===0)return bl.every(Math.max(qh(h,u,f),1));const[m,b]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return m.every(b)}return[o,l]}const[F6,P6]=O6($i,Ia,Ts,Mn,Da,Ba);function fh(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dh(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Qs(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function V6(t){var e=t.dateTime,r=t.date,i=t.time,n=t.periods,s=t.days,a=t.shortDays,o=t.months,l=t.shortMonths,h=Js(n),u=ta(n),f=Js(s),d=ta(s),p=Js(a),m=ta(a),b=Js(o),x=ta(o),k=Js(l),v=ta(l),B={a:N,A:nt,b:Y,B:Z,c:null,d:uf,e:uf,f:lv,g:bv,G:xv,H:sv,I:av,j:ov,L:hp,m:cv,M:hv,p:J,q:X,Q:pf,s:gf,S:uv,u:fv,U:dv,V:pv,w:gv,W:yv,x:null,X:null,y:mv,Y:_v,Z:vv,"%":df},R={a:tt,A:ot,b:at,B:U,c:null,d:ff,e:ff,f:Ev,g:Rv,G:Fv,H:kv,I:wv,j:Tv,L:fp,m:Cv,M:Sv,p:Tt,q:$,Q:pf,s:gf,S:Av,u:Lv,U:Bv,V:Dv,w:Iv,W:Mv,x:null,X:null,y:Nv,Y:Ov,Z:Pv,"%":df},P={a:S,A:E,b:_,B:w,c:g,d:cf,e:cf,f:ev,g:lf,G:of,H:hf,I:hf,j:Z6,L:tv,m:K6,M:Q6,p:C,q:X6,Q:iv,s:nv,S:J6,u:H6,U:q6,V:G6,w:W6,W:$6,x:D,X:y,y:lf,Y:of,Z:j6,"%":rv};B.x=V(r,B),B.X=V(i,B),B.c=V(e,B),R.x=V(r,R),R.X=V(i,R),R.c=V(e,R);function V(j,W){return function(z){var A=[],M=-1,q=0,L=j.length,st,T,Dt;for(z instanceof Date||(z=new Date(+z));++M<L;)j.charCodeAt(M)===37&&(A.push(j.slice(q,M)),(T=af[st=j.charAt(++M)])!=null?st=j.charAt(++M):T=st==="e"?" ":"0",(Dt=W[st])&&(st=Dt(z,T)),A.push(st),q=M+1);return A.push(j.slice(q,M)),A.join("")}}function O(j,W){return function(z){var A=Qs(1900,void 0,1),M=F(A,j,z+="",0),q,L;if(M!=z.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(W&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(q=dh(Qs(A.y,0,1)),L=q.getUTCDay(),q=L>4||L===0?xl.ceil(q):xl(q),q=y1.offset(q,(A.V-1)*7),A.y=q.getUTCFullYear(),A.m=q.getUTCMonth(),A.d=q.getUTCDate()+(A.w+6)%7):(q=fh(Qs(A.y,0,1)),L=q.getDay(),q=L>4||L===0?_l.ceil(q):_l(q),q=Mn.offset(q,(A.V-1)*7),A.y=q.getFullYear(),A.m=q.getMonth(),A.d=q.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),L="Z"in A?dh(Qs(A.y,0,1)).getUTCDay():fh(Qs(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(L+5)%7:A.w+A.U*7-(L+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,dh(A)):fh(A)}}function F(j,W,z,A){for(var M=0,q=W.length,L=z.length,st,T;M<q;){if(A>=L)return-1;if(st=W.charCodeAt(M++),st===37){if(st=W.charAt(M++),T=P[st in af?W.charAt(M++):st],!T||(A=T(j,z,A))<0)return-1}else if(st!=z.charCodeAt(A++))return-1}return A}function C(j,W,z){var A=h.exec(W.slice(z));return A?(j.p=u.get(A[0].toLowerCase()),z+A[0].length):-1}function S(j,W,z){var A=p.exec(W.slice(z));return A?(j.w=m.get(A[0].toLowerCase()),z+A[0].length):-1}function E(j,W,z){var A=f.exec(W.slice(z));return A?(j.w=d.get(A[0].toLowerCase()),z+A[0].length):-1}function _(j,W,z){var A=k.exec(W.slice(z));return A?(j.m=v.get(A[0].toLowerCase()),z+A[0].length):-1}function w(j,W,z){var A=b.exec(W.slice(z));return A?(j.m=x.get(A[0].toLowerCase()),z+A[0].length):-1}function g(j,W,z){return F(j,e,W,z)}function D(j,W,z){return F(j,r,W,z)}function y(j,W,z){return F(j,i,W,z)}function N(j){return a[j.getDay()]}function nt(j){return s[j.getDay()]}function Y(j){return l[j.getMonth()]}function Z(j){return o[j.getMonth()]}function J(j){return n[+(j.getHours()>=12)]}function X(j){return 1+~~(j.getMonth()/3)}function tt(j){return a[j.getUTCDay()]}function ot(j){return s[j.getUTCDay()]}function at(j){return l[j.getUTCMonth()]}function U(j){return o[j.getUTCMonth()]}function Tt(j){return n[+(j.getUTCHours()>=12)]}function $(j){return 1+~~(j.getUTCMonth()/3)}return{format:function(j){var W=V(j+="",B);return W.toString=function(){return j},W},parse:function(j){var W=O(j+="",!1);return W.toString=function(){return j},W},utcFormat:function(j){var W=V(j+="",R);return W.toString=function(){return j},W},utcParse:function(j){var W=O(j+="",!0);return W.toString=function(){return j},W}}}var af={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,Y6=/^%/,z6=/[\\^$*+?|[\]().{}]/g;function ue(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",s=n.length;return i+(s<r?new Array(r-s+1).join(e)+n:n)}function U6(t){return t.replace(z6,"\\$&")}function Js(t){return new RegExp("^(?:"+t.map(U6).join("|")+")","i")}function ta(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function W6(t,e,r){var i=Ze.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function H6(t,e,r){var i=Ze.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function q6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function G6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function $6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function of(t,e,r){var i=Ze.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function lf(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function j6(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function X6(t,e,r){var i=Ze.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function K6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function cf(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function Z6(t,e,r){var i=Ze.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function hf(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function Q6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function J6(t,e,r){var i=Ze.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function tv(t,e,r){var i=Ze.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function ev(t,e,r){var i=Ze.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function rv(t,e,r){var i=Y6.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function iv(t,e,r){var i=Ze.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function nv(t,e,r){var i=Ze.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function uf(t,e){return ue(t.getDate(),e,2)}function sv(t,e){return ue(t.getHours(),e,2)}function av(t,e){return ue(t.getHours()%12||12,e,2)}function ov(t,e){return ue(1+Mn.count($i(t),t),e,3)}function hp(t,e){return ue(t.getMilliseconds(),e,3)}function lv(t,e){return hp(t,e)+"000"}function cv(t,e){return ue(t.getMonth()+1,e,2)}function hv(t,e){return ue(t.getMinutes(),e,2)}function uv(t,e){return ue(t.getSeconds(),e,2)}function fv(t){var e=t.getDay();return e===0?7:e}function dv(t,e){return ue(Ts.count($i(t)-1,t),e,2)}function up(t){var e=t.getDay();return e>=4||e===0?Es(t):Es.ceil(t)}function pv(t,e){return t=up(t),ue(Es.count($i(t),t)+($i(t).getDay()===4),e,2)}function gv(t){return t.getDay()}function yv(t,e){return ue(_l.count($i(t)-1,t),e,2)}function mv(t,e){return ue(t.getFullYear()%100,e,2)}function bv(t,e){return t=up(t),ue(t.getFullYear()%100,e,2)}function _v(t,e){return ue(t.getFullYear()%1e4,e,4)}function xv(t,e){var r=t.getDay();return t=r>=4||r===0?Es(t):Es.ceil(t),ue(t.getFullYear()%1e4,e,4)}function vv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ue(e/60|0,"0",2)+ue(e%60,"0",2)}function ff(t,e){return ue(t.getUTCDate(),e,2)}function kv(t,e){return ue(t.getUTCHours(),e,2)}function wv(t,e){return ue(t.getUTCHours()%12||12,e,2)}function Tv(t,e){return ue(1+y1.count(Nn(t),t),e,3)}function fp(t,e){return ue(t.getUTCMilliseconds(),e,3)}function Ev(t,e){return fp(t,e)+"000"}function Cv(t,e){return ue(t.getUTCMonth()+1,e,2)}function Sv(t,e){return ue(t.getUTCMinutes(),e,2)}function Av(t,e){return ue(t.getUTCSeconds(),e,2)}function Lv(t){var e=t.getUTCDay();return e===0?7:e}function Bv(t,e){return ue(cp.count(Nn(t)-1,t),e,2)}function dp(t){var e=t.getUTCDay();return e>=4||e===0?Cs(t):Cs.ceil(t)}function Dv(t,e){return t=dp(t),ue(Cs.count(Nn(t),t)+(Nn(t).getUTCDay()===4),e,2)}function Iv(t){return t.getUTCDay()}function Mv(t,e){return ue(xl.count(Nn(t)-1,t),e,2)}function Nv(t,e){return ue(t.getUTCFullYear()%100,e,2)}function Rv(t,e){return t=dp(t),ue(t.getUTCFullYear()%100,e,2)}function Ov(t,e){return ue(t.getUTCFullYear()%1e4,e,4)}function Fv(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Cs(t):Cs.ceil(t),ue(t.getUTCFullYear()%1e4,e,4)}function Pv(){return"+0000"}function df(){return"%"}function pf(t){return+t}function gf(t){return Math.floor(+t/1e3)}var rs,vl;Vv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vv(t){return rs=V6(t),vl=rs.format,rs.parse,rs.utcFormat,rs.utcParse,rs}function Yv(t){return new Date(t)}function zv(t){return t instanceof Date?+t:+new Date(+t)}function pp(t,e,r,i,n,s,a,o,l,h){var u=op(),f=u.invert,d=u.domain,p=h(".%L"),m=h(":%S"),b=h("%I:%M"),x=h("%I %p"),k=h("%a %d"),v=h("%b %d"),B=h("%B"),R=h("%Y");function P(V){return(l(V)<V?p:o(V)<V?m:a(V)<V?b:s(V)<V?x:i(V)<V?n(V)<V?k:v:r(V)<V?B:R)(V)}return u.invert=function(V){return new Date(f(V))},u.domain=function(V){return arguments.length?d(Array.from(V,zv)):d().map(Yv)},u.ticks=function(V){var O=d();return t(O[0],O[O.length-1],V??10)},u.tickFormat=function(V,O){return O==null?P:h(O)},u.nice=function(V){var O=d();return(!V||typeof V.range!="function")&&(V=e(O[0],O[O.length-1],V??10)),V?d(w6(O,V)):u},u.copy=function(){return ap(u,pp(t,e,r,i,n,s,a,o,l,h))},u}function Uv(){return p1.apply(pp(F6,P6,$i,Ia,Ts,Mn,Da,Ba,os,vl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Le(t){return function(){return t}}const yf=Math.abs,er=Math.atan2,xn=Math.cos,Wv=Math.max,ph=Math.min,oi=Math.sin,ls=Math.sqrt,rr=1e-12,Ma=Math.PI,kl=Ma/2,Ho=2*Ma;function Hv(t){return t>1?0:t<-1?Ma:Math.acos(t)}function mf(t){return t>=1?kl:t<=-1?-kl:Math.asin(t)}function gp(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new Jx(e)}function qv(t){return t.innerRadius}function Gv(t){return t.outerRadius}function $v(t){return t.startAngle}function jv(t){return t.endAngle}function Xv(t){return t&&t.padAngle}function Kv(t,e,r,i,n,s,a,o){var l=r-t,h=i-e,u=a-n,f=o-s,d=f*l-u*h;if(!(d*d<rr))return d=(u*(e-s)-f*(t-n))/d,[t+d*l,e+d*h]}function So(t,e,r,i,n,s,a){var o=t-r,l=e-i,h=(a?s:-s)/ls(o*o+l*l),u=h*l,f=-h*o,d=t+u,p=e+f,m=r+u,b=i+f,x=(d+m)/2,k=(p+b)/2,v=m-d,B=b-p,R=v*v+B*B,P=n-s,V=d*b-m*p,O=(B<0?-1:1)*ls(Wv(0,P*P*R-V*V)),F=(V*B-v*O)/R,C=(-V*v-B*O)/R,S=(V*B+v*O)/R,E=(-V*v+B*O)/R,_=F-x,w=C-k,g=S-x,D=E-k;return _*_+w*w>g*g+D*D&&(F=S,C=E),{cx:F,cy:C,x01:-u,y01:-f,x11:F*(n/P-1),y11:C*(n/P-1)}}function nu(){var t=qv,e=Gv,r=Le(0),i=null,n=$v,s=jv,a=Xv,o=null,l=gp(h);function h(){var u,f,d=+t.apply(this,arguments),p=+e.apply(this,arguments),m=n.apply(this,arguments)-kl,b=s.apply(this,arguments)-kl,x=yf(b-m),k=b>m;if(o||(o=u=l()),p<d&&(f=p,p=d,d=f),!(p>rr))o.moveTo(0,0);else if(x>Ho-rr)o.moveTo(p*xn(m),p*oi(m)),o.arc(0,0,p,m,b,!k),d>rr&&(o.moveTo(d*xn(b),d*oi(b)),o.arc(0,0,d,b,m,k));else{var v=m,B=b,R=m,P=b,V=x,O=x,F=a.apply(this,arguments)/2,C=F>rr&&(i?+i.apply(this,arguments):ls(d*d+p*p)),S=ph(yf(p-d)/2,+r.apply(this,arguments)),E=S,_=S,w,g;if(C>rr){var D=mf(C/d*oi(F)),y=mf(C/p*oi(F));(V-=D*2)>rr?(D*=k?1:-1,R+=D,P-=D):(V=0,R=P=(m+b)/2),(O-=y*2)>rr?(y*=k?1:-1,v+=y,B-=y):(O=0,v=B=(m+b)/2)}var N=p*xn(v),nt=p*oi(v),Y=d*xn(P),Z=d*oi(P);if(S>rr){var J=p*xn(B),X=p*oi(B),tt=d*xn(R),ot=d*oi(R),at;if(x<Ma)if(at=Kv(N,nt,tt,ot,J,X,Y,Z)){var U=N-at[0],Tt=nt-at[1],$=J-at[0],j=X-at[1],W=1/oi(Hv((U*$+Tt*j)/(ls(U*U+Tt*Tt)*ls($*$+j*j)))/2),z=ls(at[0]*at[0]+at[1]*at[1]);E=ph(S,(d-z)/(W-1)),_=ph(S,(p-z)/(W+1))}else E=_=0}O>rr?_>rr?(w=So(tt,ot,N,nt,p,_,k),g=So(J,X,Y,Z,p,_,k),o.moveTo(w.cx+w.x01,w.cy+w.y01),_<S?o.arc(w.cx,w.cy,_,er(w.y01,w.x01),er(g.y01,g.x01),!k):(o.arc(w.cx,w.cy,_,er(w.y01,w.x01),er(w.y11,w.x11),!k),o.arc(0,0,p,er(w.cy+w.y11,w.cx+w.x11),er(g.cy+g.y11,g.cx+g.x11),!k),o.arc(g.cx,g.cy,_,er(g.y11,g.x11),er(g.y01,g.x01),!k))):(o.moveTo(N,nt),o.arc(0,0,p,v,B,!k)):o.moveTo(N,nt),!(d>rr)||!(V>rr)?o.lineTo(Y,Z):E>rr?(w=So(Y,Z,J,X,d,-E,k),g=So(N,nt,tt,ot,d,-E,k),o.lineTo(w.cx+w.x01,w.cy+w.y01),E<S?o.arc(w.cx,w.cy,E,er(w.y01,w.x01),er(g.y01,g.x01),!k):(o.arc(w.cx,w.cy,E,er(w.y01,w.x01),er(w.y11,w.x11),!k),o.arc(0,0,d,er(w.cy+w.y11,w.cx+w.x11),er(g.cy+g.y11,g.cx+g.x11),k),o.arc(g.cx,g.cy,E,er(g.y11,g.x11),er(g.y01,g.x01),!k))):o.arc(0,0,d,P,R,k)}if(o.closePath(),u)return o=null,u+""||null}return h.centroid=function(){var u=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,f=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-Ma/2;return[xn(f)*u,oi(f)*u]},h.innerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Le(+u),h):t},h.outerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Le(+u),h):e},h.cornerRadius=function(u){return arguments.length?(r=typeof u=="function"?u:Le(+u),h):r},h.padRadius=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:Le(+u),h):i},h.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:Le(+u),h):n},h.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:Le(+u),h):s},h.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Le(+u),h):a},h.context=function(u){return arguments.length?(o=u??null,h):o},h}function yp(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function mp(t){this._context=t}mp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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;default:this._context.lineTo(t,e);break}}};function Cr(t){return new mp(t)}function Zv(t){return t[0]}function Qv(t){return t[1]}function Us(t,e){var r=Le(!0),i=null,n=Cr,s=null,a=gp(o);t=typeof t=="function"?t:t===void 0?Zv:Le(t),e=typeof e=="function"?e:e===void 0?Qv:Le(e);function o(l){var h,u=(l=yp(l)).length,f,d=!1,p;for(i==null&&(s=n(p=a())),h=0;h<=u;++h)!(h<u&&r(f=l[h],h,l))===d&&((d=!d)?s.lineStart():s.lineEnd()),d&&s.point(+t(f,h,l),+e(f,h,l));if(p)return s=null,p+""||null}return o.x=function(l){return arguments.length?(t=typeof l=="function"?l:Le(+l),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:Le(+l),o):e},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Le(!!l),o):r},o.curve=function(l){return arguments.length?(n=l,i!=null&&(s=n(i)),o):n},o.context=function(l){return arguments.length?(l==null?i=s=null:s=n(i=l),o):i},o}function Jv(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function tk(t){return t}function ek(){var t=tk,e=Jv,r=null,i=Le(0),n=Le(Ho),s=Le(0);function a(o){var l,h=(o=yp(o)).length,u,f,d=0,p=new Array(h),m=new Array(h),b=+i.apply(this,arguments),x=Math.min(Ho,Math.max(-Ho,n.apply(this,arguments)-b)),k,v=Math.min(Math.abs(x)/h,s.apply(this,arguments)),B=v*(x<0?-1:1),R;for(l=0;l<h;++l)(R=m[p[l]=l]=+t(o[l],l,o))>0&&(d+=R);for(e!=null?p.sort(function(P,V){return e(m[P],m[V])}):r!=null&&p.sort(function(P,V){return r(o[P],o[V])}),l=0,f=d?(x-h*B)/d:0;l<h;++l,b=k)u=p[l],R=m[u],k=b+(R>0?R*f:0)+B,m[u]={data:o[u],index:l,value:R,startAngle:b,endAngle:k,padAngle:v};return m}return a.value=function(o){return arguments.length?(t=typeof o=="function"?o:Le(+o),a):t},a.sortValues=function(o){return arguments.length?(e=o,r=null,a):e},a.sort=function(o){return arguments.length?(r=o,e=null,a):r},a.startAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Le(+o),a):i},a.endAngle=function(o){return arguments.length?(n=typeof o=="function"?o:Le(+o),a):n},a.padAngle=function(o){return arguments.length?(s=typeof o=="function"?o:Le(+o),a):s},a}class bp{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function rk(t){return new bp(t,!0)}function ik(t){return new bp(t,!1)}function un(){}function wl(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function gc(t){this._context=t}gc.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(){switch(this._point){case 3:wl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ss(t){return new gc(t)}function _p(t){this._context=t}_p.prototype={areaStart:un,areaEnd:un,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);break}}},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:wl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function nk(t){return new _p(t)}function xp(t){this._context=t}xp.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||this._line!==0&&this._point===3)&&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 r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:wl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function sk(t){return new xp(t)}function vp(t,e){this._basis=new gc(t),this._beta=e}vp.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],n=e[0],s=t[r]-i,a=e[r]-n,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(i+l*s),this._beta*e[o]+(1-this._beta)*(n+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ak=function t(e){function r(i){return e===1?new gc(i):new vp(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function Tl(t,e,r){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-r),t._x2,t._y2)}function m1(t,e){this._context=t,this._k=(1-e)/6}m1.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:Tl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Tl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ok=function t(e){function r(i){return new m1(i,e)}return r.tension=function(i){return t(+i)},r}(0);function b1(t,e){this._context=t,this._k=(1-e)/6}b1.prototype={areaStart:un,areaEnd:un,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);break}}},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:Tl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lk=function t(e){function r(i){return new b1(i,e)}return r.tension=function(i){return t(+i)},r}(0);function _1(t,e){this._context=t,this._k=(1-e)/6}_1.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||this._line!==0&&this._point===3)&&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:Tl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ck=function t(e){function r(i){return new _1(i,e)}return r.tension=function(i){return t(+i)},r}(0);function x1(t,e,r){var i=t._x1,n=t._y1,s=t._x2,a=t._y2;if(t._l01_a>rr){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>rr){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(i,n,s,a,t._x2,t._y2)}function kp(t,e){this._context=t,this._alpha=e}kp.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:x1(this,t,e);break}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}};const hk=function t(e){function r(i){return e?new kp(i,e):new m1(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function wp(t,e){this._context=t,this._alpha=e}wp.prototype={areaStart:un,areaEnd:un,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:x1(this,t,e);break}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}};const uk=function t(e){function r(i){return e?new wp(i,e):new b1(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Tp(t,e){this._context=t,this._alpha=e}Tp.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:x1(this,t,e);break}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}};const fk=function t(e){function r(i){return e?new Tp(i,e):new _1(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Ep(t){this._context=t}Ep.prototype={areaStart:un,areaEnd:un,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))}};function dk(t){return new Ep(t)}function bf(t){return t<0?-1:1}function _f(t,e,r){var i=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(i||n<0&&-0),a=(r-t._y1)/(n||i<0&&-0),o=(s*n+a*i)/(i+n);return(bf(s)+bf(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function xf(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function gh(t,e,r){var i=t._x0,n=t._y0,s=t._x1,a=t._y1,o=(s-i)/3;t._context.bezierCurveTo(i+o,n+o*e,s-o,a-o*r,s,a)}function El(t){this._context=t}El.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:gh(this,this._t0,xf(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(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,gh(this,xf(this,r=_f(this,t,e)),r);break;default:gh(this,this._t0,r=_f(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function Cp(t){this._context=new Sp(t)}(Cp.prototype=Object.create(El.prototype)).point=function(t,e){El.prototype.point.call(this,e,t)};function Sp(t){this._context=t}Sp.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,r,i,n,s){this._context.bezierCurveTo(e,t,i,r,s,n)}};function pk(t){return new El(t)}function gk(t){return new Cp(t)}function Ap(t){this._context=t}Ap.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=vf(t),n=vf(e),s=0,a=1;a<r;++s,++a)this._context.bezierCurveTo(i[0][s],n[0][s],i[1][s],n[1][s],t[a],e[a]);(this._line||this._line!==0&&r===1)&&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)}};function vf(t){var e,r=t.length-1,i,n=new Array(r),s=new Array(r),a=new Array(r);for(n[0]=0,s[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)n[e]=1,s[e]=4,a[e]=4*t[e]+2*t[e+1];for(n[r-1]=2,s[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=n[e]/s[e-1],s[e]-=i,a[e]-=i*a[e-1];for(n[r-1]=a[r-1]/s[r-1],e=r-2;e>=0;--e)n[e]=(a[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e<r-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function yk(t){return new Ap(t)}function yc(t,e){this._context=t,this._t=e}yc.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function mk(t){return new yc(t,.5)}function bk(t){return new yc(t,0)}function _k(t){return new yc(t,1)}function ha(t,e,r){this.k=t,this.x=e,this.y=r}ha.prototype={constructor:ha,scale:function(t){return t===1?this:new ha(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ha(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ha.prototype;/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */function rn(t){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function su(t,e){return su=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},su(t,e)}function xk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qo(t,e,r){return xk()?qo=Reflect.construct:qo=function(n,s,a){var o=[null];o.push.apply(o,s);var l=Function.bind.apply(n,o),h=new l;return a&&su(h,a.prototype),h},qo.apply(null,arguments)}function Hr(t){return vk(t)||kk(t)||wk(t)||Tk()}function vk(t){if(Array.isArray(t))return au(t)}function kk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wk(t,e){if(t){if(typeof t=="string")return au(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return au(t,e)}}function au(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Tk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
7
7
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ek=Object.hasOwnProperty,kf=Object.setPrototypeOf,Ck=Object.isFrozen,Sk=Object.getPrototypeOf,Ak=Object.getOwnPropertyDescriptor,pr=Object.freeze,Jr=Object.seal,Lk=Object.create,Lp=typeof Reflect<"u"&&Reflect,Cl=Lp.apply,ou=Lp.construct;Cl||(Cl=function(e,r,i){return e.apply(r,i)});pr||(pr=function(e){return e});Jr||(Jr=function(e){return e});ou||(ou=function(e,r){return qo(e,Hr(r))});var Bk=Yr(Array.prototype.forEach),wf=Yr(Array.prototype.pop),ea=Yr(Array.prototype.push),Go=Yr(String.prototype.toLowerCase),yh=Yr(String.prototype.toString),Dk=Yr(String.prototype.match),Wr=Yr(String.prototype.replace),Ik=Yr(String.prototype.indexOf),Mk=Yr(String.prototype.trim),lr=Yr(RegExp.prototype.test),mh=Nk(TypeError);function Yr(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Cl(t,e,i)}}function Nk(t){return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return ou(t,r)}}function le(t,e,r){r=r||Go,kf&&kf(t,null);for(var i=e.length;i--;){var n=e[i];if(typeof n=="string"){var s=r(n);s!==n&&(Ck(e)||(e[i]=s),n=s)}t[n]=!0}return t}function vn(t){var e=Lk(null),r;for(r in t)Cl(Ek,t,[r])===!0&&(e[r]=t[r]);return e}function Ao(t,e){for(;t!==null;){var r=Ak(t,e);if(r){if(r.get)return Yr(r.get);if(typeof r.value=="function")return Yr(r.value)}t=Sk(t)}function i(n){return console.warn("fallback value for",n),null}return i}var Tf=pr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bh=pr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_h=pr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rk=pr(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xh=pr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ok=pr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ef=pr(["#text"]),Cf=pr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),vh=pr(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Sf=pr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Lo=pr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Fk=Jr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pk=Jr(/<%[\w\W]*|[\w\W]*%>/gm),Vk=Jr(/\${[\w\W]*}/gm),Yk=Jr(/^data-[\-\w.\u00B7-\uFFFF]/),zk=Jr(/^aria-[\-\w]+$/),Uk=Jr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wk=Jr(/^(?:\w+script|data):/i),Hk=Jr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qk=Jr(/^html$/i),Gk=function(){return typeof window>"u"?null:window},$k=function(e,r){if(rn(e)!=="object"||typeof e.createPolicy!="function")return null;var i=null,n="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(n)&&(i=r.currentScript.getAttribute(n));var s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:function(o){return o},createScriptURL:function(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function Bp(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gk(),e=function(K){return Bp(K)};if(e.version="2.4.3",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,i=t.document,n=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,o=t.Element,l=t.NodeFilter,h=t.NamedNodeMap,u=h===void 0?t.NamedNodeMap||t.MozNamedAttrMap:h,f=t.HTMLFormElement,d=t.DOMParser,p=t.trustedTypes,m=o.prototype,b=Ao(m,"cloneNode"),x=Ao(m,"nextSibling"),k=Ao(m,"childNodes"),v=Ao(m,"parentNode");if(typeof s=="function"){var B=i.createElement("template");B.content&&B.content.ownerDocument&&(i=B.content.ownerDocument)}var R=$k(p,r),P=R?R.createHTML(""):"",V=i,O=V.implementation,F=V.createNodeIterator,C=V.createDocumentFragment,S=V.getElementsByTagName,E=r.importNode,_={};try{_=vn(i).documentMode?i.documentMode:{}}catch{}var w={};e.isSupported=typeof v=="function"&&O&&typeof O.createHTMLDocument<"u"&&_!==9;var g=Fk,D=Pk,y=Vk,N=Yk,nt=zk,Y=Wk,Z=Hk,J=Uk,X=null,tt=le({},[].concat(Hr(Tf),Hr(bh),Hr(_h),Hr(xh),Hr(Ef))),ot=null,at=le({},[].concat(Hr(Cf),Hr(vh),Hr(Sf),Hr(Lo))),U=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,$=null,j=!0,W=!0,z=!1,A=!1,M=!1,q=!1,L=!1,st=!1,T=!1,Dt=!1,et=!0,Et=!1,vt="user-content-",pt=!0,ut=!1,gt={},ht=null,yt=le({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),he=null,re=le({},["audio","video","img","source","image","track"]),Mt=null,Nt=le({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kt="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml",Ft=qt,Bt=!1,bt=null,mt=le({},[Kt,fe,qt],yh),wt,ft=["application/xhtml+xml","text/html"],It="text/html",it,Wt=null,ct=i.createElement("form"),Gt=function(K){return K instanceof RegExp||K instanceof Function},Jt=function(K){Wt&&Wt===K||((!K||rn(K)!=="object")&&(K={}),K=vn(K),wt=ft.indexOf(K.PARSER_MEDIA_TYPE)===-1?wt=It:wt=K.PARSER_MEDIA_TYPE,it=wt==="application/xhtml+xml"?yh:Go,X="ALLOWED_TAGS"in K?le({},K.ALLOWED_TAGS,it):tt,ot="ALLOWED_ATTR"in K?le({},K.ALLOWED_ATTR,it):at,bt="ALLOWED_NAMESPACES"in K?le({},K.ALLOWED_NAMESPACES,yh):mt,Mt="ADD_URI_SAFE_ATTR"in K?le(vn(Nt),K.ADD_URI_SAFE_ATTR,it):Nt,he="ADD_DATA_URI_TAGS"in K?le(vn(re),K.ADD_DATA_URI_TAGS,it):re,ht="FORBID_CONTENTS"in K?le({},K.FORBID_CONTENTS,it):yt,Tt="FORBID_TAGS"in K?le({},K.FORBID_TAGS,it):{},$="FORBID_ATTR"in K?le({},K.FORBID_ATTR,it):{},gt="USE_PROFILES"in K?K.USE_PROFILES:!1,j=K.ALLOW_ARIA_ATTR!==!1,W=K.ALLOW_DATA_ATTR!==!1,z=K.ALLOW_UNKNOWN_PROTOCOLS||!1,A=K.SAFE_FOR_TEMPLATES||!1,M=K.WHOLE_DOCUMENT||!1,st=K.RETURN_DOM||!1,T=K.RETURN_DOM_FRAGMENT||!1,Dt=K.RETURN_TRUSTED_TYPE||!1,L=K.FORCE_BODY||!1,et=K.SANITIZE_DOM!==!1,Et=K.SANITIZE_NAMED_PROPS||!1,pt=K.KEEP_CONTENT!==!1,ut=K.IN_PLACE||!1,J=K.ALLOWED_URI_REGEXP||J,Ft=K.NAMESPACE||qt,K.CUSTOM_ELEMENT_HANDLING&&Gt(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&Gt(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),A&&(W=!1),T&&(st=!0),gt&&(X=le({},Hr(Ef)),ot=[],gt.html===!0&&(le(X,Tf),le(ot,Cf)),gt.svg===!0&&(le(X,bh),le(ot,vh),le(ot,Lo)),gt.svgFilters===!0&&(le(X,_h),le(ot,vh),le(ot,Lo)),gt.mathMl===!0&&(le(X,xh),le(ot,Sf),le(ot,Lo))),K.ADD_TAGS&&(X===tt&&(X=vn(X)),le(X,K.ADD_TAGS,it)),K.ADD_ATTR&&(ot===at&&(ot=vn(ot)),le(ot,K.ADD_ATTR,it)),K.ADD_URI_SAFE_ATTR&&le(Mt,K.ADD_URI_SAFE_ATTR,it),K.FORBID_CONTENTS&&(ht===yt&&(ht=vn(ht)),le(ht,K.FORBID_CONTENTS,it)),pt&&(X["#text"]=!0),M&&le(X,["html","head","body"]),X.table&&(le(X,["tbody"]),delete Tt.tbody),pr&&pr(K),Wt=K)},se=le({},["mi","mo","mn","ms","mtext"]),ie=le({},["foreignobject","desc","title","annotation-xml"]),ae=le({},["title","style","font","a","script"]),Rt=le({},bh);le(Rt,_h),le(Rt,Rk);var Ht=le({},xh);le(Ht,Ok);var ne=function(K){var xt=v(K);(!xt||!xt.tagName)&&(xt={namespaceURI:Ft,tagName:"template"});var Ct=Go(K.tagName),te=Go(xt.tagName);return bt[K.namespaceURI]?K.namespaceURI===fe?xt.namespaceURI===qt?Ct==="svg":xt.namespaceURI===Kt?Ct==="svg"&&(te==="annotation-xml"||se[te]):!!Rt[Ct]:K.namespaceURI===Kt?xt.namespaceURI===qt?Ct==="math":xt.namespaceURI===fe?Ct==="math"&&ie[te]:!!Ht[Ct]:K.namespaceURI===qt?xt.namespaceURI===fe&&!ie[te]||xt.namespaceURI===Kt&&!se[te]?!1:!Ht[Ct]&&(ae[Ct]||!Rt[Ct]):!!(wt==="application/xhtml+xml"&&bt[K.namespaceURI]):!1},Ut=function(K){ea(e.removed,{element:K});try{K.parentNode.removeChild(K)}catch{try{K.outerHTML=P}catch{K.remove()}}},ki=function(K,xt){try{ea(e.removed,{attribute:xt.getAttributeNode(K),from:xt})}catch{ea(e.removed,{attribute:null,from:xt})}if(xt.removeAttribute(K),K==="is"&&!ot[K])if(st||T)try{Ut(xt)}catch{}else try{xt.setAttribute(K,"")}catch{}},mn=function(K){var xt,Ct;if(L)K="<remove></remove>"+K;else{var te=Dk(K,/^[\r\n\t ]+/);Ct=te&&te[0]}wt==="application/xhtml+xml"&&Ft===qt&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");var de=R?R.createHTML(K):K;if(Ft===qt)try{xt=new d().parseFromString(de,wt)}catch{}if(!xt||!xt.documentElement){xt=O.createDocument(Ft,"template",null);try{xt.documentElement.innerHTML=Bt?P:de}catch{}}var ge=xt.body||xt.documentElement;return K&&Ct&&ge.insertBefore(i.createTextNode(Ct),ge.childNodes[0]||null),Ft===qt?S.call(xt,M?"html":"body")[0]:M?xt.documentElement:ge},me=function(K){return F.call(K.ownerDocument||K,K,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},$t=function(K){return K instanceof f&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof u)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},Ce=function(K){return rn(a)==="object"?K instanceof a:K&&rn(K)==="object"&&typeof K.nodeType=="number"&&typeof K.nodeName=="string"},tr=function(K,xt,Ct){w[K]&&Bk(w[K],function(te){te.call(e,xt,Ct,Wt)})},Se=function(K){var xt;if(tr("beforeSanitizeElements",K,null),$t(K)||lr(/[\u0080-\uFFFF]/,K.nodeName))return Ut(K),!0;var Ct=it(K.nodeName);if(tr("uponSanitizeElement",K,{tagName:Ct,allowedTags:X}),K.hasChildNodes()&&!Ce(K.firstElementChild)&&(!Ce(K.content)||!Ce(K.content.firstElementChild))&&lr(/<[/\w]/g,K.innerHTML)&&lr(/<[/\w]/g,K.textContent)||Ct==="select"&&lr(/<template/i,K.innerHTML))return Ut(K),!0;if(!X[Ct]||Tt[Ct]){if(!Tt[Ct]&&be(Ct)&&(U.tagNameCheck instanceof RegExp&&lr(U.tagNameCheck,Ct)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ct)))return!1;if(pt&&!ht[Ct]){var te=v(K)||K.parentNode,de=k(K)||K.childNodes;if(de&&te)for(var ge=de.length,Me=ge-1;Me>=0;--Me)te.insertBefore(b(de[Me],!0),x(K))}return Ut(K),!0}return K instanceof o&&!ne(K)||(Ct==="noscript"||Ct==="noembed")&&lr(/<\/no(script|embed)/i,K.innerHTML)?(Ut(K),!0):(A&&K.nodeType===3&&(xt=K.textContent,xt=Wr(xt,g," "),xt=Wr(xt,D," "),xt=Wr(xt,y," "),K.textContent!==xt&&(ea(e.removed,{element:K.cloneNode()}),K.textContent=xt)),tr("afterSanitizeElements",K,null),!1)},Ve=function(K,xt,Ct){if(et&&(xt==="id"||xt==="name")&&(Ct in i||Ct in ct))return!1;if(!(W&&!$[xt]&&lr(N,xt))){if(!(j&&lr(nt,xt))){if(!ot[xt]||$[xt]){if(!(be(K)&&(U.tagNameCheck instanceof RegExp&&lr(U.tagNameCheck,K)||U.tagNameCheck instanceof Function&&U.tagNameCheck(K))&&(U.attributeNameCheck instanceof RegExp&&lr(U.attributeNameCheck,xt)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(xt))||xt==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&lr(U.tagNameCheck,Ct)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ct))))return!1}else if(!Mt[xt]){if(!lr(J,Wr(Ct,Z,""))){if(!((xt==="src"||xt==="xlink:href"||xt==="href")&&K!=="script"&&Ik(Ct,"data:")===0&&he[K])){if(!(z&&!lr(Y,Wr(Ct,Z,"")))){if(Ct)return!1}}}}}}return!0},be=function(K){return K.indexOf("-")>0},Qe=function(K){var xt,Ct,te,de;tr("beforeSanitizeAttributes",K,null);var ge=K.attributes;if(ge){var Me={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ot};for(de=ge.length;de--;){xt=ge[de];var Ge=xt,we=Ge.name,Xs=Ge.namespaceURI;if(Ct=we==="value"?xt.value:Mk(xt.value),te=it(we),Me.attrName=te,Me.attrValue=Ct,Me.keepAttr=!0,Me.forceKeepAttr=void 0,tr("uponSanitizeAttribute",K,Me),Ct=Me.attrValue,!Me.forceKeepAttr&&(ki(we,K),!!Me.keepAttr)){if(lr(/\/>/i,Ct)){ki(we,K);continue}A&&(Ct=Wr(Ct,g," "),Ct=Wr(Ct,D," "),Ct=Wr(Ct,y," "));var ts=it(K.nodeName);if(Ve(ts,te,Ct)){if(Et&&(te==="id"||te==="name")&&(ki(we,K),Ct=vt+Ct),R&&rn(p)==="object"&&typeof p.getAttributeType=="function"&&!Xs)switch(p.getAttributeType(ts,te)){case"TrustedHTML":Ct=R.createHTML(Ct);break;case"TrustedScriptURL":Ct=R.createScriptURL(Ct);break}try{Xs?K.setAttributeNS(Xs,we,Ct):K.setAttribute(we,Ct),wf(e.removed)}catch{}}}}tr("afterSanitizeAttributes",K,null)}},qe=function Lt(K){var xt,Ct=me(K);for(tr("beforeSanitizeShadowDOM",K,null);xt=Ct.nextNode();)tr("uponSanitizeShadowNode",xt,null),!Se(xt)&&(xt.content instanceof n&&Lt(xt.content),Qe(xt));tr("afterSanitizeShadowDOM",K,null)};return e.sanitize=function(Lt){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xt,Ct,te,de,ge;if(Bt=!Lt,Bt&&(Lt="<!-->"),typeof Lt!="string"&&!Ce(Lt)){if(typeof Lt.toString!="function")throw mh("toString is not a function");if(Lt=Lt.toString(),typeof Lt!="string")throw mh("dirty is not a string, aborting")}if(!e.isSupported){if(rn(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof Lt=="string")return t.toStaticHTML(Lt);if(Ce(Lt))return t.toStaticHTML(Lt.outerHTML)}return Lt}if(q||Jt(K),e.removed=[],typeof Lt=="string"&&(ut=!1),ut){if(Lt.nodeName){var Me=it(Lt.nodeName);if(!X[Me]||Tt[Me])throw mh("root node is forbidden and cannot be sanitized in-place")}}else if(Lt instanceof a)xt=mn("<!---->"),Ct=xt.ownerDocument.importNode(Lt,!0),Ct.nodeType===1&&Ct.nodeName==="BODY"||Ct.nodeName==="HTML"?xt=Ct:xt.appendChild(Ct);else{if(!st&&!A&&!M&&Lt.indexOf("<")===-1)return R&&Dt?R.createHTML(Lt):Lt;if(xt=mn(Lt),!xt)return st?null:Dt?P:""}xt&&L&&Ut(xt.firstChild);for(var Ge=me(ut?Lt:xt);te=Ge.nextNode();)te.nodeType===3&&te===de||Se(te)||(te.content instanceof n&&qe(te.content),Qe(te),de=te);if(de=null,ut)return Lt;if(st){if(T)for(ge=C.call(xt.ownerDocument);xt.firstChild;)ge.appendChild(xt.firstChild);else ge=xt;return ot.shadowroot&&(ge=E.call(r,ge,!0)),ge}var we=M?xt.outerHTML:xt.innerHTML;return M&&X["!doctype"]&&xt.ownerDocument&&xt.ownerDocument.doctype&&xt.ownerDocument.doctype.name&&lr(qk,xt.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+xt.ownerDocument.doctype.name+`>
|
|
8
8
|
`+we),A&&(we=Wr(we,g," "),we=Wr(we,D," "),we=Wr(we,y," ")),R&&Dt?R.createHTML(we):we},e.setConfig=function(Lt){Jt(Lt),q=!0},e.clearConfig=function(){Wt=null,q=!1},e.isValidAttribute=function(Lt,K,xt){Wt||Jt({});var Ct=it(Lt),te=it(K);return Ve(Ct,te,xt)},e.addHook=function(Lt,K){typeof K=="function"&&(w[Lt]=w[Lt]||[],ea(w[Lt],K))},e.removeHook=function(Lt){if(w[Lt])return wf(w[Lt])},e.removeHooks=function(Lt){w[Lt]&&(w[Lt]=[])},e.removeAllHooks=function(){w={}},e}var Na=Bp();const $o={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;switch(i){case"r":return $o.hue2rgb(s,n,t+1/3)*255;case"g":return $o.hue2rgb(s,n,t)*255;case"b":return $o.hue2rgb(s,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const n=Math.max(t,e,r),s=Math.min(t,e,r),a=(n+s)/2;if(i==="l")return a*100;if(n===s)return 0;const o=n-s,l=a>.5?o/(2-n-s):o/(n+s);if(i==="s")return l*100;switch(n){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},jk=$o,Xk={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Kk=Xk,Zk={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Qk=Zk,Jk={channel:jk,lang:Kk,unit:Qk},ee=Jk,en={};for(let t=0;t<=255;t++)en[t]=ee.unit.dec2hex(t);const ir={ALL:0,RGB:1,HSL:2};class t8{constructor(){this.type=ir.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ir.ALL}is(e){return this.type===e}}const e8=t8;class r8{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new e8}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ir.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:i,l:n}=e;r===void 0&&(e.h=ee.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=ee.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=ee.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:i,b:n}=e;r===void 0&&(e.r=ee.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=ee.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=ee.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(ir.HSL)&&r!==void 0?r:(this._ensureHSL(),ee.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(ir.HSL)&&r!==void 0?r:(this._ensureHSL(),ee.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(ir.HSL)&&r!==void 0?r:(this._ensureHSL(),ee.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(ir.RGB)&&r!==void 0?r:(this._ensureRGB(),ee.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(ir.RGB)&&r!==void 0?r:(this._ensureRGB(),ee.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(ir.RGB)&&r!==void 0?r:(this._ensureRGB(),ee.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ir.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ir.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ir.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ir.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ir.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ir.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const i8=r8,n8=new i8({r:0,g:0,b:0,a:0},"transparent"),mc=n8,Dp={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Dp.re);if(!e)return;const r=e[1],i=parseInt(r,16),n=r.length,s=n%4===0,a=n>4,o=a?1:17,l=a?8:4,h=s?0:-1,u=a?255:15;return mc.set({r:(i>>l*(h+3)&u)*o,g:(i>>l*(h+2)&u)*o,b:(i>>l*(h+1)&u)*o,a:s?(i&u)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`#${en[Math.round(e)]}${en[Math.round(r)]}${en[Math.round(i)]}${en[Math.round(n*255)]}`:`#${en[Math.round(e)]}${en[Math.round(r)]}${en[Math.round(i)]}`}},ya=Dp,jo={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(jo.hueRe);if(e){const[,r,i]=e;switch(i){case"grad":return ee.channel.clamp.h(parseFloat(r)*.9);case"rad":return ee.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return ee.channel.clamp.h(parseFloat(r)*360)}}return ee.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(jo.re);if(!r)return;const[,i,n,s,a,o]=r;return mc.set({h:jo._hue2deg(i),s:ee.channel.clamp.s(parseFloat(n)),l:ee.channel.clamp.l(parseFloat(s)),a:a?ee.channel.clamp.a(o?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${ee.lang.round(e)}, ${ee.lang.round(r)}%, ${ee.lang.round(i)}%, ${n})`:`hsl(${ee.lang.round(e)}, ${ee.lang.round(r)}%, ${ee.lang.round(i)}%)`}},Bo=jo,Xo={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Xo.colors[t];if(e)return ya.parse(e)},stringify:t=>{const e=ya.stringify(t);for(const r in Xo.colors)if(Xo.colors[r]===e)return r}},Af=Xo,Ip={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(Ip.re);if(!r)return;const[,i,n,s,a,o,l,h,u]=r;return mc.set({r:ee.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:ee.channel.clamp.g(a?parseFloat(s)*2.55:parseFloat(s)),b:ee.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:h?ee.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${ee.lang.round(e)}, ${ee.lang.round(r)}, ${ee.lang.round(i)}, ${ee.lang.round(n)})`:`rgb(${ee.lang.round(e)}, ${ee.lang.round(r)}, ${ee.lang.round(i)})`}},Do=Ip,s8={format:{keyword:Af,hex:ya,rgb:Do,rgba:Do,hsl:Bo,hsla:Bo},parse:t=>{if(typeof t!="string")return t;const e=ya.parse(t)||Do.parse(t)||Bo.parse(t)||Af.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ir.HSL)||t.data.r===void 0?Bo.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Do.stringify(t):ya.stringify(t)},ji=s8,a8=(t,e)=>{const r=ji.parse(t);for(const i in e)r[i]=ee.channel.clamp[i](e[i]);return ji.stringify(r)},Mp=a8,o8=(t,e,r=0,i=1)=>{if(typeof t!="number")return Mp(t,{a:e});const n=mc.set({r:ee.channel.clamp.r(t),g:ee.channel.clamp.g(e),b:ee.channel.clamp.b(r),a:ee.channel.clamp.a(i)});return ji.stringify(n)},ma=o8,l8=(t,e,r)=>{const i=ji.parse(t),n=i[e],s=ee.channel.clamp[e](n+r);return n!==s&&(i[e]=s),ji.stringify(i)},Np=l8,c8=(t,e)=>Np(t,"l",e),zt=c8,h8=(t,e)=>Np(t,"l",-e),Zt=h8,u8=(t,e)=>{const r=ji.parse(t),i={};for(const n in e)e[n]&&(i[n]=r[n]+e[n]);return Mp(t,i)},lt=u8,f8=(t,e,r=50)=>{const{r:i,g:n,b:s,a}=ji.parse(t),{r:o,g:l,b:h,a:u}=ji.parse(e),f=r/100,d=f*2-1,p=a-u,b=((d*p===-1?d:(d+p)/(1+d*p))+1)/2,x=1-b,k=i*b+o*x,v=n*b+l*x,B=s*b+h*x,R=a*f+u*(1-f);return ma(k,v,B,R)},d8=f8,p8=(t,e=100)=>{const r=ji.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,d8(r,t,e)},At=p8;var g8=typeof global=="object"&&global&&global.Object===Object&&global;const Rp=g8;var y8=typeof self=="object"&&self&&self.Object===Object&&self,m8=Rp||y8||Function("return this")();const ii=m8;var b8=ii.Symbol;const zr=b8;var Op=Object.prototype,_8=Op.hasOwnProperty,x8=Op.toString,ra=zr?zr.toStringTag:void 0;function v8(t){var e=_8.call(t,ra),r=t[ra];try{t[ra]=void 0;var i=!0}catch{}var n=x8.call(t);return i&&(e?t[ra]=r:delete t[ra]),n}var k8=Object.prototype,w8=k8.toString;function T8(t){return w8.call(t)}var E8="[object Null]",C8="[object Undefined]",Lf=zr?zr.toStringTag:void 0;function jn(t){return t==null?t===void 0?C8:E8:Lf&&Lf in Object(t)?v8(t):T8(t)}function Sr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var S8="[object AsyncFunction]",A8="[object Function]",L8="[object GeneratorFunction]",B8="[object Proxy]";function As(t){if(!Sr(t))return!1;var e=jn(t);return e==A8||e==L8||e==S8||e==B8}var D8=ii["__core-js_shared__"];const kh=D8;var Bf=function(){var t=/[^.]+$/.exec(kh&&kh.keys&&kh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function I8(t){return!!Bf&&Bf in t}var M8=Function.prototype,N8=M8.toString;function Xn(t){if(t!=null){try{return N8.call(t)}catch{}try{return t+""}catch{}}return""}var R8=/[\\^$.*+?()[\]{}|]/g,O8=/^\[object .+?Constructor\]$/,F8=Function.prototype,P8=Object.prototype,V8=F8.toString,Y8=P8.hasOwnProperty,z8=RegExp("^"+V8.call(Y8).replace(R8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U8(t){if(!Sr(t)||I8(t))return!1;var e=As(t)?z8:O8;return e.test(Xn(t))}function W8(t,e){return t==null?void 0:t[e]}function Kn(t,e){var r=W8(t,e);return U8(r)?r:void 0}var H8=Kn(Object,"create");const Ra=H8;function q8(){this.__data__=Ra?Ra(null):{},this.size=0}function G8(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var $8="__lodash_hash_undefined__",j8=Object.prototype,X8=j8.hasOwnProperty;function K8(t){var e=this.__data__;if(Ra){var r=e[t];return r===$8?void 0:r}return X8.call(e,t)?e[t]:void 0}var Z8=Object.prototype,Q8=Z8.hasOwnProperty;function J8(t){var e=this.__data__;return Ra?e[t]!==void 0:Q8.call(e,t)}var t7="__lodash_hash_undefined__";function e7(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ra&&e===void 0?t7:e,this}function Rn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Rn.prototype.clear=q8;Rn.prototype.delete=G8;Rn.prototype.get=K8;Rn.prototype.has=J8;Rn.prototype.set=e7;function r7(){this.__data__=[],this.size=0}function Ws(t,e){return t===e||t!==t&&e!==e}function bc(t,e){for(var r=t.length;r--;)if(Ws(t[r][0],e))return r;return-1}var i7=Array.prototype,n7=i7.splice;function s7(t){var e=this.__data__,r=bc(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():n7.call(e,r,1),--this.size,!0}function a7(t){var e=this.__data__,r=bc(e,t);return r<0?void 0:e[r][1]}function o7(t){return bc(this.__data__,t)>-1}function l7(t,e){var r=this.__data__,i=bc(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}function Zi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zi.prototype.clear=r7;Zi.prototype.delete=s7;Zi.prototype.get=a7;Zi.prototype.has=o7;Zi.prototype.set=l7;var c7=Kn(ii,"Map");const Oa=c7;function h7(){this.size=0,this.__data__={hash:new Rn,map:new(Oa||Zi),string:new Rn}}function u7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function _c(t,e){var r=t.__data__;return u7(e)?r[typeof e=="string"?"string":"hash"]:r.map}function f7(t){var e=_c(this,t).delete(t);return this.size-=e?1:0,e}function d7(t){return _c(this,t).get(t)}function p7(t){return _c(this,t).has(t)}function g7(t,e){var r=_c(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}function Qi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qi.prototype.clear=h7;Qi.prototype.delete=f7;Qi.prototype.get=d7;Qi.prototype.has=p7;Qi.prototype.set=g7;var y7="Expected a function";function Hs(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(y7);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var a=t.apply(this,i);return r.cache=s.set(n,a)||s,a};return r.cache=new(Hs.Cache||Qi),r}Hs.Cache=Qi;function mi(t){return t!=null&&typeof t=="object"}var m7="[object Symbol]";function On(t){return typeof t=="symbol"||mi(t)&&jn(t)==m7}function ys(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}var b7=Array.isArray;const Fe=b7;var _7=1/0,Df=zr?zr.prototype:void 0,If=Df?Df.toString:void 0;function Fp(t){if(typeof t=="string")return t;if(Fe(t))return ys(t,Fp)+"";if(On(t))return If?If.call(t):"";var e=t+"";return e=="0"&&1/t==-_7?"-0":e}var x7=/\s/;function v7(t){for(var e=t.length;e--&&x7.test(t.charAt(e)););return e}var k7=/^\s+/;function w7(t){return t&&t.slice(0,v7(t)+1).replace(k7,"")}var Mf=0/0,T7=/^[-+]0x[0-9a-f]+$/i,E7=/^0b[01]+$/i,C7=/^0o[0-7]+$/i,S7=parseInt;function A7(t){if(typeof t=="number")return t;if(On(t))return Mf;if(Sr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Sr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=w7(t);var r=E7.test(t);return r||C7.test(t)?S7(t.slice(2),r?2:8):T7.test(t)?Mf:+t}var Nf=1/0,L7=17976931348623157e292;function Ko(t){if(!t)return t===0?t:0;if(t=A7(t),t===Nf||t===-Nf){var e=t<0?-1:1;return e*L7}return t===t?t:0}function B7(t){var e=Ko(t),r=e%1;return e===e?r?e-r:e:0}function Zn(t){return t}var D7=Kn(ii,"WeakMap");const lu=D7;var Rf=Object.create,I7=function(){function t(){}return function(e){if(!Sr(e))return{};if(Rf)return Rf(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const M7=I7;function N7(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function R7(){}function Pp(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}var O7=800,F7=16,P7=Date.now;function V7(t){var e=0,r=0;return function(){var i=P7(),n=F7-(i-r);if(r=i,n>0){if(++e>=O7)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function cs(t){return function(){return t}}var Y7=function(){try{var t=Kn(Object,"defineProperty");return t({},"",{}),t}catch{}}();const Sl=Y7;var z7=Sl?function(t,e){return Sl(t,"toString",{configurable:!0,enumerable:!1,value:cs(e),writable:!0})}:Zn;const U7=z7;var W7=V7(U7);const Vp=W7;function Yp(t,e){for(var r=-1,i=t==null?0:t.length;++r<i&&e(t[r],r,t)!==!1;);return t}function zp(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}function H7(t){return t!==t}function q7(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}function G7(t,e,r){return e===e?q7(t,e,r):zp(t,H7,r)}function $7(t,e){var r=t==null?0:t.length;return!!r&&G7(t,e,0)>-1}var j7=9007199254740991,X7=/^(?:0|[1-9]\d*)$/;function xc(t,e){var r=typeof t;return e=e??j7,!!e&&(r=="number"||r!="symbol"&&X7.test(t))&&t>-1&&t%1==0&&t<e}function vc(t,e,r){e=="__proto__"&&Sl?Sl(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var K7=Object.prototype,Z7=K7.hasOwnProperty;function kc(t,e,r){var i=t[e];(!(Z7.call(t,e)&&Ws(i,r))||r===void 0&&!(e in t))&&vc(t,e,r)}function so(t,e,r,i){var n=!r;r||(r={});for(var s=-1,a=e.length;++s<a;){var o=e[s],l=i?i(r[o],t[o],o,r,t):void 0;l===void 0&&(l=t[o]),n?vc(r,o,l):kc(r,o,l)}return r}var Of=Math.max;function Up(t,e,r){return e=Of(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=Of(i.length-e,0),a=Array(s);++n<s;)a[n]=i[e+n];n=-1;for(var o=Array(e+1);++n<e;)o[n]=i[n];return o[e]=r(a),N7(t,this,o)}}function wc(t,e){return Vp(Up(t,e,Zn),t+"")}var Q7=9007199254740991;function v1(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Q7}function pn(t){return t!=null&&v1(t.length)&&!As(t)}function Fa(t,e,r){if(!Sr(r))return!1;var i=typeof e;return(i=="number"?pn(r)&&xc(e,r.length):i=="string"&&e in r)?Ws(r[e],t):!1}function J7(t){return wc(function(e,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(n--,s):void 0,a&&Fa(r[0],r[1],a)&&(s=n<3?void 0:s,n=1),e=Object(e);++i<n;){var o=r[i];o&&t(e,o,i,s)}return e})}var tw=Object.prototype;function Tc(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||tw;return t===r}function ew(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}var rw="[object Arguments]";function Ff(t){return mi(t)&&jn(t)==rw}var Wp=Object.prototype,iw=Wp.hasOwnProperty,nw=Wp.propertyIsEnumerable,sw=Ff(function(){return arguments}())?Ff:function(t){return mi(t)&&iw.call(t,"callee")&&!nw.call(t,"callee")};const Ls=sw;function aw(){return!1}var Hp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pf=Hp&&typeof module=="object"&&module&&!module.nodeType&&module,ow=Pf&&Pf.exports===Hp,Vf=ow?ii.Buffer:void 0,lw=Vf?Vf.isBuffer:void 0,cw=lw||aw;const Bs=cw;var hw="[object Arguments]",uw="[object Array]",fw="[object Boolean]",dw="[object Date]",pw="[object Error]",gw="[object Function]",yw="[object Map]",mw="[object Number]",bw="[object Object]",_w="[object RegExp]",xw="[object Set]",vw="[object String]",kw="[object WeakMap]",ww="[object ArrayBuffer]",Tw="[object DataView]",Ew="[object Float32Array]",Cw="[object Float64Array]",Sw="[object Int8Array]",Aw="[object Int16Array]",Lw="[object Int32Array]",Bw="[object Uint8Array]",Dw="[object Uint8ClampedArray]",Iw="[object Uint16Array]",Mw="[object Uint32Array]",ye={};ye[Ew]=ye[Cw]=ye[Sw]=ye[Aw]=ye[Lw]=ye[Bw]=ye[Dw]=ye[Iw]=ye[Mw]=!0;ye[hw]=ye[uw]=ye[ww]=ye[fw]=ye[Tw]=ye[dw]=ye[pw]=ye[gw]=ye[yw]=ye[mw]=ye[bw]=ye[_w]=ye[xw]=ye[vw]=ye[kw]=!1;function Nw(t){return mi(t)&&v1(t.length)&&!!ye[jn(t)]}function Ec(t){return function(e){return t(e)}}var qp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ba=qp&&typeof module=="object"&&module&&!module.nodeType&&module,Rw=ba&&ba.exports===qp,wh=Rw&&Rp.process,Ow=function(){try{var t=ba&&ba.require&&ba.require("util").types;return t||wh&&wh.binding&&wh.binding("util")}catch{}}();const Ds=Ow;var Yf=Ds&&Ds.isTypedArray,Fw=Yf?Ec(Yf):Nw;const Cc=Fw;var Pw=Object.prototype,Vw=Pw.hasOwnProperty;function Gp(t,e){var r=Fe(t),i=!r&&Ls(t),n=!r&&!i&&Bs(t),s=!r&&!i&&!n&&Cc(t),a=r||i||n||s,o=a?ew(t.length,String):[],l=o.length;for(var h in t)(e||Vw.call(t,h))&&!(a&&(h=="length"||n&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||xc(h,l)))&&o.push(h);return o}function $p(t,e){return function(r){return t(e(r))}}var Yw=$p(Object.keys,Object);const zw=Yw;var Uw=Object.prototype,Ww=Uw.hasOwnProperty;function jp(t){if(!Tc(t))return zw(t);var e=[];for(var r in Object(t))Ww.call(t,r)&&r!="constructor"&&e.push(r);return e}function Er(t){return pn(t)?Gp(t):jp(t)}function Hw(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var qw=Object.prototype,Gw=qw.hasOwnProperty;function $w(t){if(!Sr(t))return Hw(t);var e=Tc(t),r=[];for(var i in t)i=="constructor"&&(e||!Gw.call(t,i))||r.push(i);return r}function Qn(t){return pn(t)?Gp(t,!0):$w(t)}var jw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xw=/^\w*$/;function k1(t,e){if(Fe(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||On(t)?!0:Xw.test(t)||!jw.test(t)||e!=null&&t in Object(e)}var Kw=500;function Zw(t){var e=Hs(t,function(i){return r.size===Kw&&r.clear(),i}),r=e.cache;return e}var Qw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jw=/\\(\\)?/g,tT=Zw(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Qw,function(r,i,n,s){e.push(n?s.replace(Jw,"$1"):i||r)}),e});const eT=tT;function Xp(t){return t==null?"":Fp(t)}function Sc(t,e){return Fe(t)?t:k1(t,e)?[t]:eT(Xp(t))}var rT=1/0;function ao(t){if(typeof t=="string"||On(t))return t;var e=t+"";return e=="0"&&1/t==-rT?"-0":e}function Ac(t,e){e=Sc(e,t);for(var r=0,i=e.length;t!=null&&r<i;)t=t[ao(e[r++])];return r&&r==i?t:void 0}function iT(t,e,r){var i=t==null?void 0:Ac(t,e);return i===void 0?r:i}function w1(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}var zf=zr?zr.isConcatSpreadable:void 0;function nT(t){return Fe(t)||Ls(t)||!!(zf&&t&&t[zf])}function Lc(t,e,r,i,n){var s=-1,a=t.length;for(r||(r=nT),n||(n=[]);++s<a;){var o=t[s];e>0&&r(o)?e>1?Lc(o,e-1,r,i,n):w1(n,o):i||(n[n.length]=o)}return n}function qs(t){var e=t==null?0:t.length;return e?Lc(t,1):[]}function sT(t){return Vp(Up(t,void 0,qs),t+"")}var aT=$p(Object.getPrototypeOf,Object);const T1=aT;var oT="[object Object]",lT=Function.prototype,cT=Object.prototype,Kp=lT.toString,hT=cT.hasOwnProperty,uT=Kp.call(Object);function Zp(t){if(!mi(t)||jn(t)!=oT)return!1;var e=T1(t);if(e===null)return!0;var r=hT.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Kp.call(r)==uT}function fT(t,e,r,i){var n=-1,s=t==null?0:t.length;for(i&&s&&(r=t[++n]);++n<s;)r=e(r,t[n],n,t);return r}function dT(){this.__data__=new Zi,this.size=0}function pT(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function gT(t){return this.__data__.get(t)}function yT(t){return this.__data__.has(t)}var mT=200;function bT(t,e){var r=this.__data__;if(r instanceof Zi){var i=r.__data__;if(!Oa||i.length<mT-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new Qi(i)}return r.set(t,e),this.size=r.size,this}function Kr(t){var e=this.__data__=new Zi(t);this.size=e.size}Kr.prototype.clear=dT;Kr.prototype.delete=pT;Kr.prototype.get=gT;Kr.prototype.has=yT;Kr.prototype.set=bT;function _T(t,e){return t&&so(e,Er(e),t)}function xT(t,e){return t&&so(e,Qn(e),t)}var Qp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Uf=Qp&&typeof module=="object"&&module&&!module.nodeType&&module,vT=Uf&&Uf.exports===Qp,Wf=vT?ii.Buffer:void 0,Hf=Wf?Wf.allocUnsafe:void 0;function Jp(t,e){if(e)return t.slice();var r=t.length,i=Hf?Hf(r):new t.constructor(r);return t.copy(i),i}function tg(t,e){for(var r=-1,i=t==null?0:t.length,n=0,s=[];++r<i;){var a=t[r];e(a,r,t)&&(s[n++]=a)}return s}function eg(){return[]}var kT=Object.prototype,wT=kT.propertyIsEnumerable,qf=Object.getOwnPropertySymbols,TT=qf?function(t){return t==null?[]:(t=Object(t),tg(qf(t),function(e){return wT.call(t,e)}))}:eg;const E1=TT;function ET(t,e){return so(t,E1(t),e)}var CT=Object.getOwnPropertySymbols,ST=CT?function(t){for(var e=[];t;)w1(e,E1(t)),t=T1(t);return e}:eg;const rg=ST;function AT(t,e){return so(t,rg(t),e)}function ig(t,e,r){var i=e(t);return Fe(t)?i:w1(i,r(t))}function cu(t){return ig(t,Er,E1)}function LT(t){return ig(t,Qn,rg)}var BT=Kn(ii,"DataView");const hu=BT;var DT=Kn(ii,"Promise");const uu=DT;var IT=Kn(ii,"Set");const ms=IT;var Gf="[object Map]",MT="[object Object]",$f="[object Promise]",jf="[object Set]",Xf="[object WeakMap]",Kf="[object DataView]",NT=Xn(hu),RT=Xn(Oa),OT=Xn(uu),FT=Xn(ms),PT=Xn(lu),En=jn;(hu&&En(new hu(new ArrayBuffer(1)))!=Kf||Oa&&En(new Oa)!=Gf||uu&&En(uu.resolve())!=$f||ms&&En(new ms)!=jf||lu&&En(new lu)!=Xf)&&(En=function(t){var e=jn(t),r=e==MT?t.constructor:void 0,i=r?Xn(r):"";if(i)switch(i){case NT:return Kf;case RT:return Gf;case OT:return $f;case FT:return jf;case PT:return Xf}return e});const Is=En;var VT=Object.prototype,YT=VT.hasOwnProperty;function zT(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&YT.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var UT=ii.Uint8Array;const Al=UT;function C1(t){var e=new t.constructor(t.byteLength);return new Al(e).set(new Al(t)),e}function WT(t,e){var r=e?C1(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var HT=/\w*$/;function qT(t){var e=new t.constructor(t.source,HT.exec(t));return e.lastIndex=t.lastIndex,e}var Zf=zr?zr.prototype:void 0,Qf=Zf?Zf.valueOf:void 0;function GT(t){return Qf?Object(Qf.call(t)):{}}function ng(t,e){var r=e?C1(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var $T="[object Boolean]",jT="[object Date]",XT="[object Map]",KT="[object Number]",ZT="[object RegExp]",QT="[object Set]",JT="[object String]",tE="[object Symbol]",eE="[object ArrayBuffer]",rE="[object DataView]",iE="[object Float32Array]",nE="[object Float64Array]",sE="[object Int8Array]",aE="[object Int16Array]",oE="[object Int32Array]",lE="[object Uint8Array]",cE="[object Uint8ClampedArray]",hE="[object Uint16Array]",uE="[object Uint32Array]";function fE(t,e,r){var i=t.constructor;switch(e){case eE:return C1(t);case $T:case jT:return new i(+t);case rE:return WT(t,r);case iE:case nE:case sE:case aE:case oE:case lE:case cE:case hE:case uE:return ng(t,r);case XT:return new i;case KT:case JT:return new i(t);case ZT:return qT(t);case QT:return new i;case tE:return GT(t)}}function sg(t){return typeof t.constructor=="function"&&!Tc(t)?M7(T1(t)):{}}var dE="[object Map]";function pE(t){return mi(t)&&Is(t)==dE}var Jf=Ds&&Ds.isMap,gE=Jf?Ec(Jf):pE;const yE=gE;var mE="[object Set]";function bE(t){return mi(t)&&Is(t)==mE}var td=Ds&&Ds.isSet,_E=td?Ec(td):bE;const xE=_E;var vE=1,kE=2,wE=4,ag="[object Arguments]",TE="[object Array]",EE="[object Boolean]",CE="[object Date]",SE="[object Error]",og="[object Function]",AE="[object GeneratorFunction]",LE="[object Map]",BE="[object Number]",lg="[object Object]",DE="[object RegExp]",IE="[object Set]",ME="[object String]",NE="[object Symbol]",RE="[object WeakMap]",OE="[object ArrayBuffer]",FE="[object DataView]",PE="[object Float32Array]",VE="[object Float64Array]",YE="[object Int8Array]",zE="[object Int16Array]",UE="[object Int32Array]",WE="[object Uint8Array]",HE="[object Uint8ClampedArray]",qE="[object Uint16Array]",GE="[object Uint32Array]",pe={};pe[ag]=pe[TE]=pe[OE]=pe[FE]=pe[EE]=pe[CE]=pe[PE]=pe[VE]=pe[YE]=pe[zE]=pe[UE]=pe[LE]=pe[BE]=pe[lg]=pe[DE]=pe[IE]=pe[ME]=pe[NE]=pe[WE]=pe[HE]=pe[qE]=pe[GE]=!0;pe[SE]=pe[og]=pe[RE]=!1;function _a(t,e,r,i,n,s){var a,o=e&vE,l=e&kE,h=e&wE;if(r&&(a=n?r(t,i,n,s):r(t)),a!==void 0)return a;if(!Sr(t))return t;var u=Fe(t);if(u){if(a=zT(t),!o)return Pp(t,a)}else{var f=Is(t),d=f==og||f==AE;if(Bs(t))return Jp(t,o);if(f==lg||f==ag||d&&!n){if(a=l||d?{}:sg(t),!o)return l?AT(t,xT(a,t)):ET(t,_T(a,t))}else{if(!pe[f])return n?t:{};a=fE(t,f,o)}}s||(s=new Kr);var p=s.get(t);if(p)return p;s.set(t,a),xE(t)?t.forEach(function(x){a.add(_a(x,e,r,x,t,s))}):yE(t)&&t.forEach(function(x,k){a.set(k,_a(x,e,r,k,t,s))});var m=h?l?LT:cu:l?Qn:Er,b=u?void 0:m(t);return Yp(b||t,function(x,k){b&&(k=x,x=t[k]),kc(a,k,_a(x,e,r,k,t,s))}),a}var $E=4;function jE(t){return _a(t,$E)}var XE=1,KE=4;function ZE(t){return _a(t,XE|KE)}var QE="__lodash_hash_undefined__";function JE(t){return this.__data__.set(t,QE),this}function tC(t){return this.__data__.has(t)}function Pa(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Qi;++e<r;)this.add(t[e])}Pa.prototype.add=Pa.prototype.push=JE;Pa.prototype.has=tC;function eC(t,e){for(var r=-1,i=t==null?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1}function cg(t,e){return t.has(e)}var rC=1,iC=2;function hg(t,e,r,i,n,s){var a=r&rC,o=t.length,l=e.length;if(o!=l&&!(a&&l>o))return!1;var h=s.get(t),u=s.get(e);if(h&&u)return h==e&&u==t;var f=-1,d=!0,p=r&iC?new Pa:void 0;for(s.set(t,e),s.set(e,t);++f<o;){var m=t[f],b=e[f];if(i)var x=a?i(b,m,f,e,t,s):i(m,b,f,t,e,s);if(x!==void 0){if(x)continue;d=!1;break}if(p){if(!eC(e,function(k,v){if(!cg(p,v)&&(m===k||n(m,k,r,i,s)))return p.push(v)})){d=!1;break}}else if(!(m===b||n(m,b,r,i,s))){d=!1;break}}return s.delete(t),s.delete(e),d}function nC(t){var e=-1,r=Array(t.size);return t.forEach(function(i,n){r[++e]=[n,i]}),r}function S1(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}var sC=1,aC=2,oC="[object Boolean]",lC="[object Date]",cC="[object Error]",hC="[object Map]",uC="[object Number]",fC="[object RegExp]",dC="[object Set]",pC="[object String]",gC="[object Symbol]",yC="[object ArrayBuffer]",mC="[object DataView]",ed=zr?zr.prototype:void 0,Th=ed?ed.valueOf:void 0;function bC(t,e,r,i,n,s,a){switch(r){case mC:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case yC:return!(t.byteLength!=e.byteLength||!s(new Al(t),new Al(e)));case oC:case lC:case uC:return Ws(+t,+e);case cC:return t.name==e.name&&t.message==e.message;case fC:case pC:return t==e+"";case hC:var o=nC;case dC:var l=i&sC;if(o||(o=S1),t.size!=e.size&&!l)return!1;var h=a.get(t);if(h)return h==e;i|=aC,a.set(t,e);var u=hg(o(t),o(e),i,n,s,a);return a.delete(t),u;case gC:if(Th)return Th.call(t)==Th.call(e)}return!1}var _C=1,xC=Object.prototype,vC=xC.hasOwnProperty;function kC(t,e,r,i,n,s){var a=r&_C,o=cu(t),l=o.length,h=cu(e),u=h.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=o[f];if(!(a?d in e:vC.call(e,d)))return!1}var p=s.get(t),m=s.get(e);if(p&&m)return p==e&&m==t;var b=!0;s.set(t,e),s.set(e,t);for(var x=a;++f<l;){d=o[f];var k=t[d],v=e[d];if(i)var B=a?i(v,k,d,e,t,s):i(k,v,d,t,e,s);if(!(B===void 0?k===v||n(k,v,r,i,s):B)){b=!1;break}x||(x=d=="constructor")}if(b&&!x){var R=t.constructor,P=e.constructor;R!=P&&"constructor"in t&&"constructor"in e&&!(typeof R=="function"&&R instanceof R&&typeof P=="function"&&P instanceof P)&&(b=!1)}return s.delete(t),s.delete(e),b}var wC=1,rd="[object Arguments]",id="[object Array]",Io="[object Object]",TC=Object.prototype,nd=TC.hasOwnProperty;function EC(t,e,r,i,n,s){var a=Fe(t),o=Fe(e),l=a?id:Is(t),h=o?id:Is(e);l=l==rd?Io:l,h=h==rd?Io:h;var u=l==Io,f=h==Io,d=l==h;if(d&&Bs(t)){if(!Bs(e))return!1;a=!0,u=!1}if(d&&!u)return s||(s=new Kr),a||Cc(t)?hg(t,e,r,i,n,s):bC(t,e,l,r,i,n,s);if(!(r&wC)){var p=u&&nd.call(t,"__wrapped__"),m=f&&nd.call(e,"__wrapped__");if(p||m){var b=p?t.value():t,x=m?e.value():e;return s||(s=new Kr),n(b,x,r,i,s)}}return d?(s||(s=new Kr),kC(t,e,r,i,n,s)):!1}function A1(t,e,r,i,n){return t===e?!0:t==null||e==null||!mi(t)&&!mi(e)?t!==t&&e!==e:EC(t,e,r,i,A1,n)}var CC=1,SC=2;function AC(t,e,r,i){var n=r.length,s=n,a=!i;if(t==null)return!s;for(t=Object(t);n--;){var o=r[n];if(a&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++n<s;){o=r[n];var l=o[0],h=t[l],u=o[1];if(a&&o[2]){if(h===void 0&&!(l in t))return!1}else{var f=new Kr;if(i)var d=i(h,u,l,t,e,f);if(!(d===void 0?A1(u,h,CC|SC,i,f):d))return!1}}return!0}function ug(t){return t===t&&!Sr(t)}function LC(t){for(var e=Er(t),r=e.length;r--;){var i=e[r],n=t[i];e[r]=[i,n,ug(n)]}return e}function fg(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function BC(t){var e=LC(t);return e.length==1&&e[0][2]?fg(e[0][0],e[0][1]):function(r){return r===t||AC(r,t,e)}}function DC(t,e){return t!=null&&e in Object(t)}function dg(t,e,r){e=Sc(e,t);for(var i=-1,n=e.length,s=!1;++i<n;){var a=ao(e[i]);if(!(s=t!=null&&r(t,a)))break;t=t[a]}return s||++i!=n?s:(n=t==null?0:t.length,!!n&&v1(n)&&xc(a,n)&&(Fe(t)||Ls(t)))}function pg(t,e){return t!=null&&dg(t,e,DC)}var IC=1,MC=2;function NC(t,e){return k1(t)&&ug(e)?fg(ao(t),e):function(r){var i=iT(r,t);return i===void 0&&i===e?pg(r,t):A1(e,i,IC|MC)}}function RC(t){return function(e){return e==null?void 0:e[t]}}function OC(t){return function(e){return Ac(e,t)}}function FC(t){return k1(t)?RC(ao(t)):OC(t)}function gn(t){return typeof t=="function"?t:t==null?Zn:typeof t=="object"?Fe(t)?NC(t[0],t[1]):BC(t):FC(t)}function PC(t){return function(e,r,i){for(var n=-1,s=Object(e),a=i(e),o=a.length;o--;){var l=a[t?o:++n];if(r(s[l],l,s)===!1)break}return e}}var VC=PC();const L1=VC;function gg(t,e){return t&&L1(t,e,Er)}function YC(t,e){return function(r,i){if(r==null)return r;if(!pn(r))return t(r,i);for(var n=r.length,s=e?n:-1,a=Object(r);(e?s--:++s<n)&&i(a[s],s,a)!==!1;);return r}}var zC=YC(gg);const Bc=zC;var UC=function(){return ii.Date.now()};const sd=UC;var yg=Object.prototype,WC=yg.hasOwnProperty,HC=wc(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&Fa(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],a=Qn(s),o=-1,l=a.length;++o<l;){var h=a[o],u=t[h];(u===void 0||Ws(u,yg[h])&&!WC.call(t,h))&&(t[h]=s[h])}return t});const ns=HC;function fu(t,e,r){(r!==void 0&&!Ws(t[e],r)||r===void 0&&!(e in t))&&vc(t,e,r)}function mg(t){return mi(t)&&pn(t)}function du(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function qC(t){return so(t,Qn(t))}function GC(t,e,r,i,n,s,a){var o=du(t,r),l=du(e,r),h=a.get(l);if(h){fu(t,r,h);return}var u=s?s(o,l,r+"",t,e,a):void 0,f=u===void 0;if(f){var d=Fe(l),p=!d&&Bs(l),m=!d&&!p&&Cc(l);u=l,d||p||m?Fe(o)?u=o:mg(o)?u=Pp(o):p?(f=!1,u=Jp(l,!0)):m?(f=!1,u=ng(l,!0)):u=[]:Zp(l)||Ls(l)?(u=o,Ls(o)?u=qC(o):(!Sr(o)||As(o))&&(u=sg(l))):f=!1}f&&(a.set(l,u),n(u,l,i,s,a),a.delete(l)),fu(t,r,u)}function bg(t,e,r,i,n){t!==e&&L1(e,function(s,a){if(n||(n=new Kr),Sr(s))GC(t,e,a,r,bg,i,n);else{var o=i?i(du(t,a),s,a+"",t,e,n):void 0;o===void 0&&(o=s),fu(t,a,o)}},Qn)}function $C(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}function Ll(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function _g(t){return typeof t=="function"?t:Zn}function dt(t,e){var r=Fe(t)?Yp:Bc;return r(t,_g(e))}function jC(t,e){var r=[];return Bc(t,function(i,n,s){e(i,n,s)&&r.push(i)}),r}function Vi(t,e){var r=Fe(t)?tg:jC;return r(t,gn(e))}function XC(t){return function(e,r,i){var n=Object(e);if(!pn(e)){var s=gn(r);e=Er(e),r=function(o){return s(n[o],o,n)}}var a=t(e,r,i);return a>-1?n[s?e[a]:a]:void 0}}var KC=Math.max;function ZC(t,e,r){var i=t==null?0:t.length;if(!i)return-1;var n=r==null?0:B7(r);return n<0&&(n=KC(i+n,0)),zp(t,gn(e),n)}var QC=XC(ZC);const B1=QC;function xg(t,e){var r=-1,i=pn(t)?Array(t.length):[];return Bc(t,function(n,s,a){i[++r]=e(n,s,a)}),i}function Oe(t,e){var r=Fe(t)?ys:xg;return r(t,gn(e))}function JC(t,e){return t==null?t:L1(t,_g(e),Qn)}function t9(t,e){return t>e}var e9=Object.prototype,r9=e9.hasOwnProperty;function i9(t,e){return t!=null&&r9.call(t,e)}function Qt(t,e){return t!=null&&dg(t,e,i9)}function n9(t,e){return ys(e,function(r){return t[r]})}function Wi(t){return t==null?[]:n9(t,Er(t))}var s9="[object Map]",a9="[object Set]",o9=Object.prototype,l9=o9.hasOwnProperty;function bs(t){if(t==null)return!0;if(pn(t)&&(Fe(t)||typeof t=="string"||typeof t.splice=="function"||Bs(t)||Cc(t)||Ls(t)))return!t.length;var e=Is(t);if(e==s9||e==a9)return!t.size;if(Tc(t))return!jp(t).length;for(var r in t)if(l9.call(t,r))return!1;return!0}function Be(t){return t===void 0}function vg(t,e){return t<e}function Dc(t,e){var r={};return e=gn(e),gg(t,function(i,n,s){vc(r,n,e(i,n,s))}),r}function D1(t,e,r){for(var i=-1,n=t.length;++i<n;){var s=t[i],a=e(s);if(a!=null&&(o===void 0?a===a&&!On(a):r(a,o)))var o=a,l=s}return l}function Fn(t){return t&&t.length?D1(t,Zn,t9):void 0}var c9=J7(function(t,e,r){bg(t,e,r)});const pu=c9;function Va(t){return t&&t.length?D1(t,Zn,vg):void 0}function I1(t,e){return t&&t.length?D1(t,gn(e),vg):void 0}function h9(t,e,r,i){if(!Sr(t))return t;e=Sc(e,t);for(var n=-1,s=e.length,a=s-1,o=t;o!=null&&++n<s;){var l=ao(e[n]),h=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(n!=a){var u=o[l];h=i?i(u,l,o):void 0,h===void 0&&(h=Sr(u)?u:xc(e[n+1])?[]:{})}kc(o,l,h),o=o[l]}return t}function u9(t,e,r){for(var i=-1,n=e.length,s={};++i<n;){var a=e[i],o=Ac(t,a);r(o,a)&&h9(s,Sc(a,t),o)}return s}function f9(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}function d9(t,e){if(t!==e){var r=t!==void 0,i=t===null,n=t===t,s=On(t),a=e!==void 0,o=e===null,l=e===e,h=On(e);if(!o&&!h&&!s&&t>e||s&&a&&l&&!o&&!h||i&&a&&l||!r&&l||!n)return 1;if(!i&&!s&&!h&&t<e||h&&r&&n&&!i&&!s||o&&r&&n||!a&&n||!l)return-1}return 0}function p9(t,e,r){for(var i=-1,n=t.criteria,s=e.criteria,a=n.length,o=r.length;++i<a;){var l=d9(n[i],s[i]);if(l){if(i>=o)return l;var h=r[i];return l*(h=="desc"?-1:1)}}return t.index-e.index}function g9(t,e,r){e.length?e=ys(e,function(s){return Fe(s)?function(a){return Ac(a,s.length===1?s[0]:s)}:s}):e=[Zn];var i=-1;e=ys(e,Ec(gn));var n=xg(t,function(s,a,o){var l=ys(e,function(h){return h(s)});return{criteria:l,index:++i,value:s}});return f9(n,function(s,a){return p9(s,a,r)})}function y9(t,e){return u9(t,e,function(r,i){return pg(t,i)})}var m9=sT(function(t,e){return t==null?{}:y9(t,e)});const Ya=m9;var b9=Math.ceil,_9=Math.max;function x9(t,e,r,i){for(var n=-1,s=_9(b9((e-t)/(r||1)),0),a=Array(s);s--;)a[i?s:++n]=t,t+=r;return a}function v9(t){return function(e,r,i){return i&&typeof i!="number"&&Fa(e,r,i)&&(r=i=void 0),e=Ko(e),r===void 0?(r=e,e=0):r=Ko(r),i=i===void 0?e<r?1:-1:Ko(i),x9(e,r,i,t)}}var k9=v9();const Pn=k9;function w9(t,e,r,i,n){return n(t,function(s,a,o){r=i?(i=!1,s):e(r,s,a,o)}),r}function oo(t,e,r){var i=Fe(t)?fT:w9,n=arguments.length<3;return i(t,gn(e),r,n,Bc)}var T9=wc(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Fa(t,e[0],e[1])?e=[]:r>2&&Fa(e[0],e[1],e[2])&&(e=[e[0]]),g9(t,Lc(e,1),[])});const lo=T9;var E9=1/0,C9=ms&&1/S1(new ms([,-0]))[1]==E9?function(t){return new ms(t)}:R7;const S9=C9;var A9=200;function L9(t,e,r){var i=-1,n=$7,s=t.length,a=!0,o=[],l=o;if(r)a=!1,n=$C;else if(s>=A9){var h=e?null:S9(t);if(h)return S1(h);a=!1,n=cg,l=new Pa}else l=e?[]:o;t:for(;++i<s;){var u=t[i],f=e?e(u):u;if(u=r||u!==0?u:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue t;e&&l.push(f),o.push(u)}else n(l,f,r)||(l!==o&&l.push(f),o.push(u))}return o}var B9=wc(function(t){return L9(Lc(t,1,mg,!0))});const D9=B9;var I9=0;function Ic(t){var e=++I9;return Xp(t)+e}function M9(t,e,r){for(var i=-1,n=t.length,s=e.length,a={};++i<n;){var o=i<s?e[i]:void 0;r(a,t[i],o)}return a}function N9(t,e){return M9(t||[],e||[],kc)}var R9="\0",kn="\0",ad="";class Pe{constructor(e={}){this._isDirected=Qt(e,"directed")?e.directed:!0,this._isMultigraph=Qt(e,"multigraph")?e.multigraph:!1,this._isCompound=Qt(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=cs(void 0),this._defaultEdgeLabelFn=cs(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[kn]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return As(e)||(e=cs(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Er(this._nodes)}sources(){var e=this;return Vi(this.nodes(),function(r){return bs(e._in[r])})}sinks(){var e=this;return Vi(this.nodes(),function(r){return bs(e._out[r])})}setNodes(e,r){var i=arguments,n=this;return dt(e,function(s){i.length>1?n.setNode(s,r):n.setNode(s)}),this}setNode(e,r){return Qt(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=kn,this._children[e]={},this._children[kn][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Qt(this._nodes,e)}removeNode(e){var r=this;if(Qt(this._nodes,e)){var i=function(n){r.removeEdge(r._edgeObjs[n])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],dt(this.children(e),function(n){r.setParent(n)}),delete this._children[e]),dt(Er(this._in[e]),i),delete this._in[e],delete this._preds[e],dt(Er(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Be(r))r=kn;else{r+="";for(var i=r;!Be(i);i=this.parent(i))if(i===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==kn)return r}}children(e){if(Be(e)&&(e=kn),this._isCompound){var r=this._children[e];if(r)return Er(r)}else{if(e===kn)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return Er(r)}successors(e){var r=this._sucs[e];if(r)return Er(r)}neighbors(e){var r=this.predecessors(e);if(r)return D9(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;dt(this._nodes,function(a,o){e(o)&&r.setNode(o,a)}),dt(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,i.edge(a))});var n={};function s(a){var o=i.parent(a);return o===void 0||r.hasNode(o)?(n[a]=o,o):o in n?n[o]:s(o)}return this._isCompound&&dt(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(e){return As(e)||(e=cs(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Wi(this._edgeObjs)}setPath(e,r){var i=this,n=arguments;return oo(e,function(s,a){return n.length>1?i.setEdge(s,a,r):i.setEdge(s,a),a}),this}setEdge(){var e,r,i,n,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(e=a.v,r=a.w,i=a.name,arguments.length===2&&(n=arguments[1],s=!0)):(e=a,r=arguments[1],i=arguments[3],arguments.length>2&&(n=arguments[2],s=!0)),e=""+e,r=""+r,Be(i)||(i=""+i);var o=ua(this._isDirected,e,r,i);if(Qt(this._edgeLabels,o))return s&&(this._edgeLabels[o]=n),this;if(!Be(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[o]=s?n:this._defaultEdgeLabelFn(e,r,i);var l=O9(this._isDirected,e,r,i);return e=l.v,r=l.w,Object.freeze(l),this._edgeObjs[o]=l,od(this._preds[r],e),od(this._sucs[e],r),this._in[r][o]=l,this._out[e][o]=l,this._edgeCount++,this}edge(e,r,i){var n=arguments.length===1?Eh(this._isDirected,arguments[0]):ua(this._isDirected,e,r,i);return this._edgeLabels[n]}hasEdge(e,r,i){var n=arguments.length===1?Eh(this._isDirected,arguments[0]):ua(this._isDirected,e,r,i);return Qt(this._edgeLabels,n)}removeEdge(e,r,i){var n=arguments.length===1?Eh(this._isDirected,arguments[0]):ua(this._isDirected,e,r,i),s=this._edgeObjs[n];return s&&(e=s.v,r=s.w,delete this._edgeLabels[n],delete this._edgeObjs[n],ld(this._preds[r],e),ld(this._sucs[e],r),delete this._in[r][n],delete this._out[e][n],this._edgeCount--),this}inEdges(e,r){var i=this._in[e];if(i){var n=Wi(i);return r?Vi(n,function(s){return s.v===r}):n}}outEdges(e,r){var i=this._out[e];if(i){var n=Wi(i);return r?Vi(n,function(s){return s.w===r}):n}}nodeEdges(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))}}Pe.prototype._nodeCount=0;Pe.prototype._edgeCount=0;function od(t,e){t[e]?t[e]++:t[e]=1}function ld(t,e){--t[e]||delete t[e]}function ua(t,e,r,i){var n=""+e,s=""+r;if(!t&&n>s){var a=n;n=s,s=a}return n+ad+s+ad+(Be(i)?R9:i)}function O9(t,e,r,i){var n=""+e,s=""+r;if(!t&&n>s){var a=n;n=s,s=a}var o={v:n,w:s};return i&&(o.name=i),o}function Eh(t,e){return ua(t,e.v,e.w,e.name)}class F9{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return cd(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&cd(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,i=r._prev;i!==r;)e.push(JSON.stringify(i,P9)),i=i._prev;return"["+e.join(", ")+"]"}}function cd(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function P9(t,e){if(t!=="_next"&&t!=="_prev")return e}var V9=cs(1);function Y9(t,e){if(t.nodeCount()<=1)return[];var r=U9(t,e||V9),i=z9(r.graph,r.buckets,r.zeroIdx);return qs(Oe(i,function(n){return t.outEdges(n.v,n.w)}))}function z9(t,e,r){for(var i=[],n=e[e.length-1],s=e[0],a;t.nodeCount();){for(;a=s.dequeue();)Ch(t,e,r,a);for(;a=n.dequeue();)Ch(t,e,r,a);if(t.nodeCount()){for(var o=e.length-2;o>0;--o)if(a=e[o].dequeue(),a){i=i.concat(Ch(t,e,r,a,!0));break}}}return i}function Ch(t,e,r,i,n){var s=n?[]:void 0;return dt(t.inEdges(i.v),function(a){var o=t.edge(a),l=t.node(a.v);n&&s.push({v:a.v,w:a.w}),l.out-=o,gu(e,r,l)}),dt(t.outEdges(i.v),function(a){var o=t.edge(a),l=a.w,h=t.node(l);h.in-=o,gu(e,r,h)}),t.removeNode(i.v),s}function U9(t,e){var r=new Pe,i=0,n=0;dt(t.nodes(),function(o){r.setNode(o,{v:o,in:0,out:0})}),dt(t.edges(),function(o){var l=r.edge(o.v,o.w)||0,h=e(o),u=l+h;r.setEdge(o.v,o.w,u),n=Math.max(n,r.node(o.v).out+=h),i=Math.max(i,r.node(o.w).in+=h)});var s=Pn(n+i+3).map(function(){return new F9}),a=i+1;return dt(r.nodes(),function(o){gu(s,a,r.node(o))}),{graph:r,buckets:s,zeroIdx:a}}function gu(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}function W9(t){var e=t.graph().acyclicer==="greedy"?Y9(t,r(t)):H9(t);dt(e,function(i){var n=t.edge(i);t.removeEdge(i),n.forwardName=i.name,n.reversed=!0,t.setEdge(i.w,i.v,n,Ic("rev"))});function r(i){return function(n){return i.edge(n).weight}}}function H9(t){var e=[],r={},i={};function n(s){Qt(i,s)||(i[s]=!0,r[s]=!0,dt(t.outEdges(s),function(a){Qt(r,a.w)?e.push(a):n(a.w)}),delete r[s])}return dt(t.nodes(),n),e}function q9(t){dt(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,i)}})}function Gs(t,e,r,i){var n;do n=Ic(i);while(t.hasNode(n));return r.dummy=e,t.setNode(n,r),n}function G9(t){var e=new Pe().setGraph(t.graph());return dt(t.nodes(),function(r){e.setNode(r,t.node(r))}),dt(t.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},n=t.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+n.weight,minlen:Math.max(i.minlen,n.minlen)})}),e}function kg(t){var e=new Pe({multigraph:t.isMultigraph()}).setGraph(t.graph());return dt(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),dt(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e}function hd(t,e){var r=t.x,i=t.y,n=e.x-r,s=e.y-i,a=t.width/2,o=t.height/2;if(!n&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var l,h;return Math.abs(s)*a>Math.abs(n)*o?(s<0&&(o=-o),l=o*n/s,h=o):(n<0&&(a=-a),l=a,h=a*s/n),{x:r+l,y:i+h}}function Mc(t){var e=Oe(Pn(wg(t)+1),function(){return[]});return dt(t.nodes(),function(r){var i=t.node(r),n=i.rank;Be(n)||(e[n][i.order]=r)}),e}function $9(t){var e=Va(Oe(t.nodes(),function(r){return t.node(r).rank}));dt(t.nodes(),function(r){var i=t.node(r);Qt(i,"rank")&&(i.rank-=e)})}function j9(t){var e=Va(Oe(t.nodes(),function(s){return t.node(s).rank})),r=[];dt(t.nodes(),function(s){var a=t.node(s).rank-e;r[a]||(r[a]=[]),r[a].push(s)});var i=0,n=t.graph().nodeRankFactor;dt(r,function(s,a){Be(s)&&a%n!==0?--i:i&&dt(s,function(o){t.node(o).rank+=i})})}function ud(t,e,r,i){var n={width:0,height:0};return arguments.length>=4&&(n.rank=r,n.order=i),Gs(t,"border",n,e)}function wg(t){return Fn(Oe(t.nodes(),function(e){var r=t.node(e).rank;if(!Be(r))return r}))}function X9(t,e){var r={lhs:[],rhs:[]};return dt(t,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function K9(t,e){var r=sd();try{return e()}finally{console.log(t+" time: "+(sd()-r)+"ms")}}function Z9(t,e){return e()}function Q9(t){function e(r){var i=t.children(r),n=t.node(r);if(i.length&&dt(i,e),Qt(n,"minRank")){n.borderLeft=[],n.borderRight=[];for(var s=n.minRank,a=n.maxRank+1;s<a;++s)fd(t,"borderLeft","_bl",r,n,s),fd(t,"borderRight","_br",r,n,s)}}dt(t.children(),e)}function fd(t,e,r,i,n,s){var a={width:0,height:0,rank:s,borderType:e},o=n[e][s-1],l=Gs(t,"border",a,r);n[e][s]=l,t.setParent(l,i),o&&t.setEdge(o,l,{weight:1})}function J9(t){var e=t.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Tg(t)}function tS(t){var e=t.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&eS(t),(e==="lr"||e==="rl")&&(rS(t),Tg(t))}function Tg(t){dt(t.nodes(),function(e){dd(t.node(e))}),dt(t.edges(),function(e){dd(t.edge(e))})}function dd(t){var e=t.width;t.width=t.height,t.height=e}function eS(t){dt(t.nodes(),function(e){Sh(t.node(e))}),dt(t.edges(),function(e){var r=t.edge(e);dt(r.points,Sh),Qt(r,"y")&&Sh(r)})}function Sh(t){t.y=-t.y}function rS(t){dt(t.nodes(),function(e){Ah(t.node(e))}),dt(t.edges(),function(e){var r=t.edge(e);dt(r.points,Ah),Qt(r,"x")&&Ah(r)})}function Ah(t){var e=t.x;t.x=t.y,t.y=e}function iS(t){t.graph().dummyChains=[],dt(t.edges(),function(e){nS(t,e)})}function nS(t,e){var r=e.v,i=t.node(r).rank,n=e.w,s=t.node(n).rank,a=e.name,o=t.edge(e),l=o.labelRank;if(s!==i+1){t.removeEdge(e);var h,u,f;for(f=0,++i;i<s;++f,++i)o.points=[],u={width:0,height:0,edgeLabel:o,edgeObj:e,rank:i},h=Gs(t,"edge",u,"_d"),i===l&&(u.width=o.width,u.height=o.height,u.dummy="edge-label",u.labelpos=o.labelpos),t.setEdge(r,h,{weight:o.weight},a),f===0&&t.graph().dummyChains.push(h),r=h;t.setEdge(r,n,{weight:o.weight},a)}}function sS(t){dt(t.graph().dummyChains,function(e){var r=t.node(e),i=r.edgeLabel,n;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)})}function M1(t){var e={};function r(i){var n=t.node(i);if(Qt(e,i))return n.rank;e[i]=!0;var s=Va(Oe(t.outEdges(i),function(a){return r(a.w)-t.edge(a).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),n.rank=s}dt(t.sources(),r)}function za(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function Eg(t){var e=new Pe({directed:!1}),r=t.nodes()[0],i=t.nodeCount();e.setNode(r,{});for(var n,s;aS(e,t)<i;)n=oS(e,t),s=e.hasNode(n.v)?za(t,n):-za(t,n),lS(e,t,s);return e}function aS(t,e){function r(i){dt(e.nodeEdges(i),function(n){var s=n.v,a=i===s?n.w:s;!t.hasNode(a)&&!za(e,n)&&(t.setNode(a,{}),t.setEdge(i,a,{}),r(a))})}return dt(t.nodes(),r),t.nodeCount()}function oS(t,e){return I1(e.edges(),function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return za(e,r)})}function lS(t,e,r){dt(t.nodes(),function(i){e.node(i).rank+=r})}function cS(){}cS.prototype=new Error;function Cg(t,e,r){Fe(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),n=[],s={};return dt(e,function(a){if(!t.hasNode(a))throw new Error("Graph does not have node: "+a);Sg(t,a,r==="post",s,i,n)}),n}function Sg(t,e,r,i,n,s){Qt(i,e)||(i[e]=!0,r||s.push(e),dt(n(e),function(a){Sg(t,a,r,i,n,s)}),r&&s.push(e))}function hS(t,e){return Cg(t,e,"post")}function uS(t,e){return Cg(t,e,"pre")}Jn.initLowLimValues=R1;Jn.initCutValues=N1;Jn.calcCutValue=Ag;Jn.leaveEdge=Bg;Jn.enterEdge=Dg;Jn.exchangeEdges=Ig;function Jn(t){t=G9(t),M1(t);var e=Eg(t);R1(e),N1(e,t);for(var r,i;r=Bg(e);)i=Dg(e,t,r),Ig(e,t,r,i)}function N1(t,e){var r=hS(t,t.nodes());r=r.slice(0,r.length-1),dt(r,function(i){fS(t,e,i)})}function fS(t,e,r){var i=t.node(r),n=i.parent;t.edge(r,n).cutvalue=Ag(t,e,r)}function Ag(t,e,r){var i=t.node(r),n=i.parent,s=!0,a=e.edge(r,n),o=0;return a||(s=!1,a=e.edge(n,r)),o=a.weight,dt(e.nodeEdges(r),function(l){var h=l.v===r,u=h?l.w:l.v;if(u!==n){var f=h===s,d=e.edge(l).weight;if(o+=f?d:-d,pS(t,r,u)){var p=t.edge(r,u).cutvalue;o+=f?-p:p}}}),o}function R1(t,e){arguments.length<2&&(e=t.nodes()[0]),Lg(t,{},1,e)}function Lg(t,e,r,i,n){var s=r,a=t.node(i);return e[i]=!0,dt(t.neighbors(i),function(o){Qt(e,o)||(r=Lg(t,e,r,o,i))}),a.low=s,a.lim=r++,n?a.parent=n:delete a.parent,r}function Bg(t){return B1(t.edges(),function(e){return t.edge(e).cutvalue<0})}function Dg(t,e,r){var i=r.v,n=r.w;e.hasEdge(i,n)||(i=r.w,n=r.v);var s=t.node(i),a=t.node(n),o=s,l=!1;s.lim>a.lim&&(o=a,l=!0);var h=Vi(e.edges(),function(u){return l===pd(t,t.node(u.v),o)&&l!==pd(t,t.node(u.w),o)});return I1(h,function(u){return za(e,u)})}function Ig(t,e,r,i){var n=r.v,s=r.w;t.removeEdge(n,s),t.setEdge(i.v,i.w,{}),R1(t),N1(t,e),dS(t,e)}function dS(t,e){var r=B1(t.nodes(),function(n){return!e.node(n).parent}),i=uS(t,r);i=i.slice(1),dt(i,function(n){var s=t.node(n).parent,a=e.edge(n,s),o=!1;a||(a=e.edge(s,n),o=!0),e.node(n).rank=e.node(s).rank+(o?a.minlen:-a.minlen)})}function pS(t,e,r){return t.hasEdge(e,r)}function pd(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}function gS(t){switch(t.graph().ranker){case"network-simplex":gd(t);break;case"tight-tree":mS(t);break;case"longest-path":yS(t);break;default:gd(t)}}var yS=M1;function mS(t){M1(t),Eg(t)}function gd(t){Jn(t)}function bS(t){var e=Gs(t,"root",{},"_root"),r=_S(t),i=Fn(Wi(r))-1,n=2*i+1;t.graph().nestingRoot=e,dt(t.edges(),function(a){t.edge(a).minlen*=n});var s=xS(t)+1;dt(t.children(),function(a){Mg(t,e,n,s,i,r,a)}),t.graph().nodeRankFactor=n}function Mg(t,e,r,i,n,s,a){var o=t.children(a);if(!o.length){a!==e&&t.setEdge(e,a,{weight:0,minlen:r});return}var l=ud(t,"_bt"),h=ud(t,"_bb"),u=t.node(a);t.setParent(l,a),u.borderTop=l,t.setParent(h,a),u.borderBottom=h,dt(o,function(f){Mg(t,e,r,i,n,s,f);var d=t.node(f),p=d.borderTop?d.borderTop:f,m=d.borderBottom?d.borderBottom:f,b=d.borderTop?i:2*i,x=p!==m?1:n-s[a]+1;t.setEdge(l,p,{weight:b,minlen:x,nestingEdge:!0}),t.setEdge(m,h,{weight:b,minlen:x,nestingEdge:!0})}),t.parent(a)||t.setEdge(e,l,{weight:0,minlen:n+s[a]})}function _S(t){var e={};function r(i,n){var s=t.children(i);s&&s.length&&dt(s,function(a){r(a,n+1)}),e[i]=n}return dt(t.children(),function(i){r(i,1)}),e}function xS(t){return oo(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function vS(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,dt(t.edges(),function(r){var i=t.edge(r);i.nestingEdge&&t.removeEdge(r)})}function kS(t,e,r){var i={},n;dt(r,function(s){for(var a=t.parent(s),o,l;a;){if(o=t.parent(a),o?(l=i[o],i[o]=a):(l=n,n=a),l&&l!==a){e.setEdge(l,a);return}a=o}})}function wS(t,e,r){var i=TS(t),n=new Pe({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(s){return t.node(s)});return dt(t.nodes(),function(s){var a=t.node(s),o=t.parent(s);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(n.setNode(s),n.setParent(s,o||i),dt(t[r](s),function(l){var h=l.v===s?l.w:l.v,u=n.edge(h,s),f=Be(u)?0:u.weight;n.setEdge(h,s,{weight:t.edge(l).weight+f})}),Qt(a,"minRank")&&n.setNode(s,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),n}function TS(t){for(var e;t.hasNode(e=Ic("_root")););return e}function ES(t,e){for(var r=0,i=1;i<e.length;++i)r+=CS(t,e[i-1],e[i]);return r}function CS(t,e,r){for(var i=N9(r,Oe(r,function(h,u){return u})),n=qs(Oe(e,function(h){return lo(Oe(t.outEdges(h),function(u){return{pos:i[u.w],weight:t.edge(u).weight}}),"pos")})),s=1;s<r.length;)s<<=1;var a=2*s-1;s-=1;var o=Oe(new Array(a),function(){return 0}),l=0;return dt(n.forEach(function(h){var u=h.pos+s;o[u]+=h.weight;for(var f=0;u>0;)u%2&&(f+=o[u+1]),u=u-1>>1,o[u]+=h.weight;l+=h.weight*f})),l}function SS(t){var e={},r=Vi(t.nodes(),function(o){return!t.children(o).length}),i=Fn(Oe(r,function(o){return t.node(o).rank})),n=Oe(Pn(i+1),function(){return[]});function s(o){if(!Qt(e,o)){e[o]=!0;var l=t.node(o);n[l.rank].push(o),dt(t.successors(o),s)}}var a=lo(r,function(o){return t.node(o).rank});return dt(a,s),n}function AS(t,e){return Oe(e,function(r){var i=t.inEdges(r);if(i.length){var n=oo(i,function(s,a){var o=t.edge(a),l=t.node(a.v);return{sum:s.sum+o.weight*l.order,weight:s.weight+o.weight}},{sum:0,weight:0});return{v:r,barycenter:n.sum/n.weight,weight:n.weight}}else return{v:r}})}function LS(t,e){var r={};dt(t,function(n,s){var a=r[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:s};Be(n.barycenter)||(a.barycenter=n.barycenter,a.weight=n.weight)}),dt(e.edges(),function(n){var s=r[n.v],a=r[n.w];!Be(s)&&!Be(a)&&(a.indegree++,s.out.push(r[n.w]))});var i=Vi(r,function(n){return!n.indegree});return BS(i)}function BS(t){var e=[];function r(s){return function(a){a.merged||(Be(a.barycenter)||Be(s.barycenter)||a.barycenter>=s.barycenter)&&DS(s,a)}}function i(s){return function(a){a.in.push(s),--a.indegree===0&&t.push(a)}}for(;t.length;){var n=t.pop();e.push(n),dt(n.in.reverse(),r(n)),dt(n.out,i(n))}return Oe(Vi(e,function(s){return!s.merged}),function(s){return Ya(s,["vs","i","barycenter","weight"])})}function DS(t,e){var r=0,i=0;t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}function IS(t,e){var r=X9(t,function(u){return Qt(u,"barycenter")}),i=r.lhs,n=lo(r.rhs,function(u){return-u.i}),s=[],a=0,o=0,l=0;i.sort(MS(!!e)),l=yd(s,n,l),dt(i,function(u){l+=u.vs.length,s.push(u.vs),a+=u.barycenter*u.weight,o+=u.weight,l=yd(s,n,l)});var h={vs:qs(s)};return o&&(h.barycenter=a/o,h.weight=o),h}function yd(t,e,r){for(var i;e.length&&(i=Ll(e)).i<=r;)e.pop(),t.push(i.vs),r++;return r}function MS(t){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:t?r.i-e.i:e.i-r.i}}function Ng(t,e,r,i){var n=t.children(e),s=t.node(e),a=s?s.borderLeft:void 0,o=s?s.borderRight:void 0,l={};a&&(n=Vi(n,function(m){return m!==a&&m!==o}));var h=AS(t,n);dt(h,function(m){if(t.children(m.v).length){var b=Ng(t,m.v,r,i);l[m.v]=b,Qt(b,"barycenter")&&RS(m,b)}});var u=LS(h,r);NS(u,l);var f=IS(u,i);if(a&&(f.vs=qs([a,f.vs,o]),t.predecessors(a).length)){var d=t.node(t.predecessors(a)[0]),p=t.node(t.predecessors(o)[0]);Qt(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+d.order+p.order)/(f.weight+2),f.weight+=2}return f}function NS(t,e){dt(t,function(r){r.vs=qs(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function RS(t,e){Be(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}function OS(t){var e=wg(t),r=md(t,Pn(1,e+1),"inEdges"),i=md(t,Pn(e-1,-1,-1),"outEdges"),n=SS(t);bd(t,n);for(var s=Number.POSITIVE_INFINITY,a,o=0,l=0;l<4;++o,++l){FS(o%2?r:i,o%4>=2),n=Mc(t);var h=ES(t,n);h<s&&(l=0,a=ZE(n),s=h)}bd(t,a)}function md(t,e,r){return Oe(e,function(i){return wS(t,i,r)})}function FS(t,e){var r=new Pe;dt(t,function(i){var n=i.graph().root,s=Ng(i,n,r,e);dt(s.vs,function(a,o){i.node(a).order=o}),kS(i,r,s.vs)})}function bd(t,e){dt(e,function(r){dt(r,function(i,n){t.node(i).order=n})})}function PS(t){var e=YS(t);dt(t.graph().dummyChains,function(r){for(var i=t.node(r),n=i.edgeObj,s=VS(t,e,n.v,n.w),a=s.path,o=s.lca,l=0,h=a[l],u=!0;r!==n.w;){if(i=t.node(r),u){for(;(h=a[l])!==o&&t.node(h).maxRank<i.rank;)l++;h===o&&(u=!1)}if(!u){for(;l<a.length-1&&t.node(h=a[l+1]).minRank<=i.rank;)l++;h=a[l]}t.setParent(r,h),r=t.successors(r)[0]}})}function VS(t,e,r,i){var n=[],s=[],a=Math.min(e[r].low,e[i].low),o=Math.max(e[r].lim,e[i].lim),l,h;l=r;do l=t.parent(l),n.push(l);while(l&&(e[l].low>a||o>e[l].lim));for(h=l,l=i;(l=t.parent(l))!==h;)s.push(l);return{path:n.concat(s.reverse()),lca:h}}function YS(t){var e={},r=0;function i(n){var s=r;dt(t.children(n),i),e[n]={low:s,lim:r++}}return dt(t.children(),i),e}function zS(t,e){var r={};function i(n,s){var a=0,o=0,l=n.length,h=Ll(s);return dt(s,function(u,f){var d=WS(t,u),p=d?t.node(d).order:l;(d||u===h)&&(dt(s.slice(o,f+1),function(m){dt(t.predecessors(m),function(b){var x=t.node(b),k=x.order;(k<a||p<k)&&!(x.dummy&&t.node(m).dummy)&&Rg(r,b,m)})}),o=f+1,a=p)}),s}return oo(e,i),r}function US(t,e){var r={};function i(s,a,o,l,h){var u;dt(Pn(a,o),function(f){u=s[f],t.node(u).dummy&&dt(t.predecessors(u),function(d){var p=t.node(d);p.dummy&&(p.order<l||p.order>h)&&Rg(r,d,u)})})}function n(s,a){var o=-1,l,h=0;return dt(a,function(u,f){if(t.node(u).dummy==="border"){var d=t.predecessors(u);d.length&&(l=t.node(d[0]).order,i(a,h,f,o,l),h=f,o=l)}i(a,h,a.length,l,s.length)}),a}return oo(e,n),r}function WS(t,e){if(t.node(e).dummy)return B1(t.predecessors(e),function(r){return t.node(r).dummy})}function Rg(t,e,r){if(e>r){var i=e;e=r,r=i}var n=t[e];n||(t[e]=n={}),n[r]=!0}function HS(t,e,r){if(e>r){var i=e;e=r,r=i}return Qt(t[e],r)}function qS(t,e,r,i){var n={},s={},a={};return dt(e,function(o){dt(o,function(l,h){n[l]=l,s[l]=l,a[l]=h})}),dt(e,function(o){var l=-1;dt(o,function(h){var u=i(h);if(u.length){u=lo(u,function(b){return a[b]});for(var f=(u.length-1)/2,d=Math.floor(f),p=Math.ceil(f);d<=p;++d){var m=u[d];s[h]===h&&l<a[m]&&!HS(r,h,m)&&(s[m]=h,s[h]=n[h]=n[m],l=a[m])}}})}),{root:n,align:s}}function GS(t,e,r,i,n){var s={},a=$S(t,e,r,n),o=n?"borderLeft":"borderRight";function l(f,d){for(var p=a.nodes(),m=p.pop(),b={};m;)b[m]?f(m):(b[m]=!0,p.push(m),p=p.concat(d(m))),m=p.pop()}function h(f){s[f]=a.inEdges(f).reduce(function(d,p){return Math.max(d,s[p.v]+a.edge(p))},0)}function u(f){var d=a.outEdges(f).reduce(function(m,b){return Math.min(m,s[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),p=t.node(f);d!==Number.POSITIVE_INFINITY&&p.borderType!==o&&(s[f]=Math.max(s[f],d))}return l(h,a.predecessors.bind(a)),l(u,a.successors.bind(a)),dt(i,function(f){s[f]=s[r[f]]}),s}function $S(t,e,r,i){var n=new Pe,s=t.graph(),a=QS(s.nodesep,s.edgesep,i);return dt(e,function(o){var l;dt(o,function(h){var u=r[h];if(n.setNode(u),l){var f=r[l],d=n.edge(f,u);n.setEdge(f,u,Math.max(a(t,h,l),d||0))}l=h})}),n}function jS(t,e){return I1(Wi(e),function(r){var i=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY;return JC(r,function(s,a){var o=JS(t,a)/2;i=Math.max(s+o,i),n=Math.min(s-o,n)}),i-n})}function XS(t,e){var r=Wi(e),i=Va(r),n=Fn(r);dt(["u","d"],function(s){dt(["l","r"],function(a){var o=s+a,l=t[o],h;if(l!==e){var u=Wi(l);h=a==="l"?i-Va(u):n-Fn(u),h&&(t[o]=Dc(l,function(f){return f+h}))}})})}function KS(t,e){return Dc(t.ul,function(r,i){if(e)return t[e.toLowerCase()][i];var n=lo(Oe(t,i));return(n[1]+n[2])/2})}function ZS(t){var e=Mc(t),r=pu(zS(t,e),US(t,e)),i={},n;dt(["u","d"],function(a){n=a==="u"?e:Wi(e).reverse(),dt(["l","r"],function(o){o==="r"&&(n=Oe(n,function(f){return Wi(f).reverse()}));var l=(a==="u"?t.predecessors:t.successors).bind(t),h=qS(t,n,r,l),u=GS(t,n,h.root,h.align,o==="r");o==="r"&&(u=Dc(u,function(f){return-f})),i[a+o]=u})});var s=jS(t,i);return XS(i,s),KS(i,t.graph().align)}function QS(t,e,r){return function(i,n,s){var a=i.node(n),o=i.node(s),l=0,h;if(l+=a.width/2,Qt(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":h=-a.width/2;break;case"r":h=a.width/2;break}if(h&&(l+=r?h:-h),h=0,l+=(a.dummy?e:t)/2,l+=(o.dummy?e:t)/2,l+=o.width/2,Qt(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":h=o.width/2;break;case"r":h=-o.width/2;break}return h&&(l+=r?h:-h),h=0,l}}function JS(t,e){return t.node(e).width}function tA(t){t=kg(t),eA(t),dt(ZS(t),function(e,r){t.node(r).x=e})}function eA(t){var e=Mc(t),r=t.graph().ranksep,i=0;dt(e,function(n){var s=Fn(Oe(n,function(a){return t.node(a).height}));dt(n,function(a){t.node(a).y=i+s/2}),i+=s+r})}function $s(t,e){var r=e&&e.debugTiming?K9:Z9;r("layout",function(){var i=r(" buildLayoutGraph",function(){return fA(t)});r(" runLayout",function(){rA(i,r)}),r(" updateInputGraph",function(){iA(t,i)})})}function rA(t,e){e(" makeSpaceForEdgeLabels",function(){dA(t)}),e(" removeSelfEdges",function(){kA(t)}),e(" acyclic",function(){W9(t)}),e(" nestingGraph.run",function(){bS(t)}),e(" rank",function(){gS(kg(t))}),e(" injectEdgeLabelProxies",function(){pA(t)}),e(" removeEmptyRanks",function(){j9(t)}),e(" nestingGraph.cleanup",function(){vS(t)}),e(" normalizeRanks",function(){$9(t)}),e(" assignRankMinMax",function(){gA(t)}),e(" removeEdgeLabelProxies",function(){yA(t)}),e(" normalize.run",function(){iS(t)}),e(" parentDummyChains",function(){PS(t)}),e(" addBorderSegments",function(){Q9(t)}),e(" order",function(){OS(t)}),e(" insertSelfEdges",function(){wA(t)}),e(" adjustCoordinateSystem",function(){J9(t)}),e(" position",function(){tA(t)}),e(" positionSelfEdges",function(){TA(t)}),e(" removeBorderNodes",function(){vA(t)}),e(" normalize.undo",function(){sS(t)}),e(" fixupEdgeLabelCoords",function(){_A(t)}),e(" undoCoordinateSystem",function(){tS(t)}),e(" translateGraph",function(){mA(t)}),e(" assignNodeIntersects",function(){bA(t)}),e(" reversePoints",function(){xA(t)}),e(" acyclic.undo",function(){q9(t)})}function iA(t,e){dt(t.nodes(),function(r){var i=t.node(r),n=e.node(r);i&&(i.x=n.x,i.y=n.y,e.children(r).length&&(i.width=n.width,i.height=n.height))}),dt(t.edges(),function(r){var i=t.edge(r),n=e.edge(r);i.points=n.points,Qt(n,"x")&&(i.x=n.x,i.y=n.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var nA=["nodesep","edgesep","ranksep","marginx","marginy"],sA={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},aA=["acyclicer","ranker","rankdir","align"],oA=["width","height"],lA={width:0,height:0},cA=["minlen","weight","width","height","labeloffset"],hA={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},uA=["labelpos"];function fA(t){var e=new Pe({multigraph:!0,compound:!0}),r=Bh(t.graph());return e.setGraph(pu({},sA,Lh(r,nA),Ya(r,aA))),dt(t.nodes(),function(i){var n=Bh(t.node(i));e.setNode(i,ns(Lh(n,oA),lA)),e.setParent(i,t.parent(i))}),dt(t.edges(),function(i){var n=Bh(t.edge(i));e.setEdge(i,pu({},hA,Lh(n,cA),Ya(n,uA)))}),e}function dA(t){var e=t.graph();e.ranksep/=2,dt(t.edges(),function(r){var i=t.edge(r);i.minlen*=2,i.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?i.width+=i.labeloffset:i.height+=i.labeloffset)})}function pA(t){dt(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var i=t.node(e.v),n=t.node(e.w),s={rank:(n.rank-i.rank)/2+i.rank,e};Gs(t,"edge-proxy",s,"_ep")}})}function gA(t){var e=0;dt(t.nodes(),function(r){var i=t.node(r);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=Fn(e,i.maxRank))}),t.graph().maxRank=e}function yA(t){dt(t.nodes(),function(e){var r=t.node(e);r.dummy==="edge-proxy"&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}function mA(t){var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,n=0,s=t.graph(),a=s.marginx||0,o=s.marginy||0;function l(h){var u=h.x,f=h.y,d=h.width,p=h.height;e=Math.min(e,u-d/2),r=Math.max(r,u+d/2),i=Math.min(i,f-p/2),n=Math.max(n,f+p/2)}dt(t.nodes(),function(h){l(t.node(h))}),dt(t.edges(),function(h){var u=t.edge(h);Qt(u,"x")&&l(u)}),e-=a,i-=o,dt(t.nodes(),function(h){var u=t.node(h);u.x-=e,u.y-=i}),dt(t.edges(),function(h){var u=t.edge(h);dt(u.points,function(f){f.x-=e,f.y-=i}),Qt(u,"x")&&(u.x-=e),Qt(u,"y")&&(u.y-=i)}),s.width=r-e+a,s.height=n-i+o}function bA(t){dt(t.edges(),function(e){var r=t.edge(e),i=t.node(e.v),n=t.node(e.w),s,a;r.points?(s=r.points[0],a=r.points[r.points.length-1]):(r.points=[],s=n,a=i),r.points.unshift(hd(i,s)),r.points.push(hd(n,a))})}function _A(t){dt(t.edges(),function(e){var r=t.edge(e);if(Qt(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function xA(t){dt(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function vA(t){dt(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),i=t.node(r.borderTop),n=t.node(r.borderBottom),s=t.node(Ll(r.borderLeft)),a=t.node(Ll(r.borderRight));r.width=Math.abs(a.x-s.x),r.height=Math.abs(n.y-i.y),r.x=s.x+r.width/2,r.y=i.y+r.height/2}}),dt(t.nodes(),function(e){t.node(e).dummy==="border"&&t.removeNode(e)})}function kA(t){dt(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function wA(t){var e=Mc(t);dt(e,function(r){var i=0;dt(r,function(n,s){var a=t.node(n);a.order=s+i,dt(a.selfEdges,function(o){Gs(t,"selfedge",{width:o.label.width,height:o.label.height,rank:a.rank,order:s+ ++i,e:o.e,label:o.label},"_se")}),delete a.selfEdges})})}function TA(t){dt(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var i=t.node(r.e.v),n=i.x+i.width/2,s=i.y,a=r.x-n,o=i.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:n+2*a/3,y:s-o},{x:n+5*a/6,y:s-o},{x:n+a,y:s},{x:n+5*a/6,y:s+o},{x:n+2*a/3,y:s+o}],r.label.x=r.x,r.label.y=r.y}})}function Lh(t,e){return Dc(Ya(t,e),Number)}function Bh(t){var e={};return dt(t,function(r,i){e[i.toLowerCase()]=r}),e}function Yi(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:EA(t),edges:CA(t)};return Be(t.graph())||(e.value=jE(t.graph())),e}function EA(t){return Oe(t.nodes(),function(e){var r=t.node(e),i=t.parent(e),n={v:e};return Be(r)||(n.value=r),Be(i)||(n.parent=i),n})}function CA(t){return Oe(t.edges(),function(e){var r=t.edge(e),i={v:e.v,w:e.w};return Be(e.name)||(i.name=e.name),Be(r)||(i.value=r),i})}function Og(t,e){return!!t.children(e).length}function Fg(t){return Dh(t.v)+":"+Dh(t.w)+":"+Dh(t.name)}var SA=/:/g;function Dh(t){return t?String(t).replace(SA,"\\:"):""}function xi(t,e){e&&t.attr("style",e)}function Pg(t,e,r){e&&t.attr("class",e).attr("class",r+" "+t.attr("class"))}function ti(t,e){var r=e.graph();if(Zp(r)){var i=r.transition;if(As(i))return i(t)}return t}var yu={normal:LA,vee:BA,undirected:DA};function AA(t){yu=t}function LA(t,e,r,i){var n=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");xi(s,r[i+"Style"]),r[i+"Class"]&&s.attr("class",r[i+"Class"])}function BA(t,e,r,i){var n=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");xi(s,r[i+"Style"]),r[i+"Class"]&&s.attr("class",r[i+"Class"])}function DA(t,e,r,i){var n=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=n.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");xi(s,r[i+"Style"]),r[i+"Class"]&&s.attr("class",r[i+"Class"])}function O1(t,e){var r=t.append("foreignObject").attr("width","100000"),i=r.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var n=e.label;switch(typeof n){case"function":i.insert(n);break;case"object":i.insert(function(){return n});break;default:i.html(n)}xi(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var s=i.node().getBoundingClientRect();return r.attr("width",s.width).attr("height",s.height),r}function IA(t,e){var r=t;return r.node().appendChild(e.label),xi(r,e.labelStyle),r}function MA(t,e){for(var r=t.append("text"),i=NA(e.label).split(`
|
|
9
9
|
`),n=0;n<i.length;n++)r.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(i[n]);return xi(r,e.labelStyle),r}function NA(t){for(var e="",r=!1,i,n=0;n<t.length;++n)if(i=t[n],r){switch(i){case"n":e+=`
|
|
@@ -1226,7 +1226,7 @@ Expecting `+et.join(", ")+", got '"+(this.terminals_[z]||z)+"'":Et="Parse error
|
|
|
1226
1226
|
Expecting `+vo.join(", ")+", got '"+(this.terminals_[gr]||gr)+"'":th="Parse error on line "+(Mr+1)+": Unexpected "+(gr==D0?"end of input":"'"+(this.terminals_[gr]||gr)+"'"),this.parseError(th,{text:$e.match,token:this.terminals_[gr]||gr,line:$e.yylineno,loc:Qc,expected:vo})}if(Nr[0]instanceof Array&&Nr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_n+", token: "+gr);switch(Nr[0]){case 1:oe.push(gr),ve.push($e.yytext),H.push($e.yylloc),oe.push(Nr[1]),gr=null,B0=$e.yyleng,Q=$e.yytext,Mr=$e.yylineno,Qc=$e.yylloc;break;case 2:if(Ti=this.productions_[Nr[1]][1],es.$=ve[ve.length-Ti],es._$={first_line:H[H.length-(Ti||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Ti||1)].first_column,last_column:H[H.length-1].last_column},k4&&(es._$.range=[H[H.length-(Ti||1)].range[0],H[H.length-1].range[1]]),Jc=this.performAction.apply(es,[Q,B0,Mr,bn.yy,Nr[1],ve,H].concat(v4)),typeof Jc<"u")return Jc;Ti&&(oe=oe.slice(0,-1*Ti*2),ve=ve.slice(0,-1*Ti),H=H.slice(0,-1*Ti)),oe.push(this.productions_[Nr[1]][0]),ve.push(es.$),H.push(es._$),I0=Ks[oe[oe.length-2]][oe[oe.length-1]],oe.push(I0);break;case 3:return!0}}return!0}},Xs=function(){var wi={EOF:1,parseError:function(Yt,oe){if(this.yy.parser)this.yy.parser.parseError(Yt,oe);else throw new Error(Yt)},setInput:function(Pt,Yt){return this.yy=Yt||this.yy||{},this._input=Pt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Pt=this._input[0];this.yytext+=Pt,this.yyleng++,this.offset++,this.match+=Pt,this.matched+=Pt;var Yt=Pt.match(/(?:\r\n?|\n).*/g);return Yt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Pt},unput:function(Pt){var Yt=Pt.length,oe=Pt.split(/(?:\r\n?|\n)/g);this._input=Pt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Yt),this.offset-=Yt;var St=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),oe.length-1&&(this.yylineno-=oe.length-1);var ve=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===St.length?this.yylloc.first_column:0)+St[St.length-oe.length].length-oe[0].length:this.yylloc.first_column-Yt},this.options.ranges&&(this.yylloc.range=[ve[0],ve[0]+this.yyleng-Yt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
1227
1227
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Pt){this.unput(this.match.slice(Pt))},pastInput:function(){var Pt=this.matched.substr(0,this.matched.length-this.match.length);return(Pt.length>20?"...":"")+Pt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Pt=this.match;return Pt.length<20&&(Pt+=this._input.substr(0,20-Pt.length)),(Pt.substr(0,20)+(Pt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Pt=this.pastInput(),Yt=new Array(Pt.length+1).join("-");return Pt+this.upcomingInput()+`
|
|
1228
1228
|
`+Yt+"^"},test_match:function(Pt,Yt){var oe,St,ve;if(this.options.backtrack_lexer&&(ve={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ve.yylloc.range=this.yylloc.range.slice(0))),St=Pt[0].match(/(?:\r\n?|\n).*/g),St&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Pt[0].length},this.yytext+=Pt[0],this.match+=Pt[0],this.matches=Pt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Pt[0].length),this.matched+=Pt[0],oe=this.performAction.call(this,this.yy,this,Yt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var H in ve)this[H]=ve[H];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Pt,Yt,oe,St;this._more||(this.yytext="",this.match="");for(var ve=this._currentRules(),H=0;H<ve.length;H++)if(oe=this._input.match(this.rules[ve[H]]),oe&&(!Yt||oe[0].length>Yt[0].length)){if(Yt=oe,St=H,this.options.backtrack_lexer){if(Pt=this.test_match(oe,ve[H]),Pt!==!1)return Pt;if(this._backtrack){Yt=!1;continue}else return!1}else if(!this.options.flex)break}return Yt?(Pt=this.test_match(Yt,ve[St]),Pt!==!1?Pt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
1229
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Yt=this.next();return Yt||this.lex()},begin:function(Yt){this.conditionStack.push(Yt)},popState:function(){var Yt=this.conditionStack.length-1;return Yt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Yt){return Yt=this.conditionStack.length-1-Math.abs(Yt||0),Yt>=0?this.conditionStack[Yt]:"INITIAL"},pushState:function(Yt){this.begin(Yt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Yt,oe,St,ve){switch(St){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:break;case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:return Yt.lex.firstGraph()&&this.begin("dir"),24;case 36:return Yt.lex.firstGraph()&&this.begin("dir"),24;case 37:return Yt.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),25;case 45:return this.popState(),26;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:return 82;case 68:return 82;case 69:return 82;case 70:return 81;case 71:return 81;case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:return 125;case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],inclusive:!0}}};return wi}();we.lexer=Xs;function ts(){this.yy={}}return ts.prototype=we,we.Parser=ts,new ts}();Mu.parser=Mu;const jd=Mu,JR=(t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null},tO=(t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null?!0:t.match(/^\s*flowchart/)!==null},eO="flowchart-";let Xd=0,a0=G(),_e={},zn=[],ds={},Xi=[],Ql={},o0={},el=0,Nu=!0,Fr,zc,Uc=[];const Wc=t=>Xt.sanitizeText(t,a0),lm=function(t,e,r){xe.parseDirective(this,t,e,r)},fo=function(t){const e=Object.keys(_e);for(const r of e)if(_e[r].id===t)return _e[r].domId;return t},cm=function(t,e,r,i,n,s,a={}){let o,l=t;l!==void 0&&l.trim().length!==0&&(_e[l]===void 0&&(_e[l]={id:l,domId:eO+l+"-"+Xd,styles:[],classes:[]}),Xd++,e!==void 0?(a0=G(),o=Wc(e.trim()),o[0]==='"'&&o[o.length-1]==='"'&&(o=o.substring(1,o.length-1)),_e[l].text=o):_e[l].text===void 0&&(_e[l].text=t),r!==void 0&&(_e[l].type=r),i!=null&&i.forEach(function(h){_e[l].styles.push(h)}),n!=null&&n.forEach(function(h){_e[l].classes.push(h)}),s!==void 0&&(_e[l].dir=s),_e[l].props===void 0?_e[l].props=a:a!==void 0&&Object.assign(_e[l].props,a))},hm=function(t,e,r,i){const a={start:t,end:e,type:void 0,text:""};i=r.text,i!==void 0&&(a.text=Wc(i.trim()),a.text[0]==='"'&&a.text[a.text.length-1]==='"'&&(a.text=a.text.substring(1,a.text.length-1))),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length),zn.push(a)},um=function(t,e,r,i){let n,s;for(n=0;n<t.length;n++)for(s=0;s<e.length;s++)hm(t[n],e[s],r,i)},fm=function(t,e){t.forEach(function(r){r==="default"?zn.defaultInterpolate=e:zn[r].interpolate=e})},dm=function(t,e){t.forEach(function(r){r==="default"?zn.defaultStyle=e:(jt.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),zn[r].style=e)})},pm=function(t,e){ds[t]===void 0&&(ds[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){const n=r.replace("fill","bgFill").replace("color","fill");ds[t].textStyles.push(n)}ds[t].styles.push(r)})},gm=function(t){Fr=t,Fr.match(/.*</)&&(Fr="RL"),Fr.match(/.*\^/)&&(Fr="BT"),Fr.match(/.*>/)&&(Fr="LR"),Fr.match(/.*v/)&&(Fr="TB"),Fr==="TD"&&(Fr="TB")},Hc=function(t,e){t.split(",").forEach(function(r){let i=r;_e[i]!==void 0&&_e[i].classes.push(e),Ql[i]!==void 0&&Ql[i].classes.push(e)})},rO=function(t,e){t.split(",").forEach(function(r){e!==void 0&&(o0[zc==="gen-1"?fo(r):r]=Wc(e))})},iO=function(t,e,r){let i=fo(t);if(G().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<n.length;s++){let a=n[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),n[s]=a}}n.length===0&&n.push(t),_e[t]!==void 0&&(_e[t].haveCallback=!0,Uc.push(function(){const s=document.querySelector(`[id="${i}"]`);s!==null&&s.addEventListener("click",function(){jt.runFunc(e,...n)},!1)}))},ym=function(t,e,r){t.split(",").forEach(function(i){_e[i]!==void 0&&(_e[i].link=jt.formatUrl(e,a0),_e[i].linkTarget=r)}),Hc(t,"clickable")},mm=function(t){return o0[t]},bm=function(t,e,r){t.split(",").forEach(function(i){iO(i,e,r)}),Hc(t,"clickable")},_m=function(t){Uc.forEach(function(e){e(t)})},xm=function(){return Fr.trim()},vm=function(){return _e},km=function(){return zn},wm=function(){return ds},Tm=function(t){let e=_t(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=_t("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),_t(t).select("svg").selectAll("g.node").on("mouseover",function(){const n=_t(this);if(n.attr("title")===null)return;const a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(n.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),n.classed("hover",!0)}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),_t(this).classed("hover",!1)})};Uc.push(Tm);const Em=function(t="gen-1"){_e={},ds={},zn=[],Uc=[Tm],Xi=[],Ql={},el=0,o0=[],Nu=!0,zc=t,Lr()},Cm=t=>{zc=t||"gen-2"},Sm=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},Am=function(t,e,r){let i=t.trim(),n=r;t===r&&r.match(/\s/)&&(i=void 0);function s(u){const f={boolean:{},number:{},string:{}},d=[];let p;return{nodeList:u.filter(function(b){const x=typeof b;return b.stmt&&b.stmt==="dir"?(p=b.value,!1):b.trim()===""?!1:x in f?f[x].hasOwnProperty(b)?!1:f[x][b]=!0:d.includes(b)?!1:d.push(b)}),dir:p}}let a=[];const{nodeList:o,dir:l}=s(a.concat.apply(a,e));if(a=o,zc==="gen-1")for(let u=0;u<a.length;u++)a[u]=fo(a[u]);i=i||"subGraph"+el,n=n||"",n=Wc(n),el=el+1;const h={id:i,nodes:a,title:n.trim(),classes:[],dir:l};return I.info("Adding",h.id,h.nodes,h.dir),h.nodes=Fm(h,Xi).nodes,Xi.push(h),Ql[i]=h,i},nO=function(t){for(const[e,r]of Xi.entries())if(r.id===t)return e;return-1};let da=-1;const Lm=[],Bm=function(t,e){const r=Xi[e].nodes;if(da=da+1,da>2e3)return;if(Lm[da]=e,Xi[e].id===t)return{result:!0,count:0};let i=0,n=1;for(;i<r.length;){const s=nO(r[i]);if(s>=0){const a=Bm(t,s);if(a.result)return{result:!0,count:n+a.count};n=n+a.count}i=i+1}return{result:!1,count:n}},Dm=function(t){return Lm[t]},Im=function(){da=-1,Xi.length>0&&Bm("none",Xi.length-1)},Mm=function(){return Xi},Nm=()=>Nu?(Nu=!1,!0):!1,sO=t=>{let e=t.trim(),r="arrow_open";switch(e[0]){case"<":r="arrow_point",e=e.slice(1);break;case"x":r="arrow_cross",e=e.slice(1);break;case"o":r="arrow_circle",e=e.slice(1);break}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:r,stroke:i}},aO=(t,e)=>{const r=e.length;let i=0;for(let n=0;n<r;++n)e[n]===t&&++i;return i},oO=t=>{const e=t.trim();let r=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross",e[0]==="x"&&(i="double_"+i,r=r.slice(1));break;case">":i="arrow_point",e[0]==="<"&&(i="double_"+i,r=r.slice(1));break;case"o":i="arrow_circle",e[0]==="o"&&(i="double_"+i,r=r.slice(1));break}let n="normal",s=r.length-1;r[0]==="="&&(n="thick");let a=aO(".",r);return a&&(n="dotted",s=a),{type:i,stroke:n,length:s}},Rm=(t,e)=>{const r=oO(t);let i;if(e){if(i=sO(e),i.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=r.type;else{if(i.type!==r.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=r.length,i}return r},Om=(t,e)=>{let r=!1;return t.forEach(i=>{i.nodes.indexOf(e)>=0&&(r=!0)}),r},Fm=(t,e)=>{const r=[];return t.nodes.forEach((i,n)=>{Om(e,i)||r.push(t.nodes[n])}),{nodes:r}},Pm={firstGraph:Nm},hi={parseDirective:lm,defaultConfig:()=>Ns.flowchart,setAccTitle:kr,getAccTitle:Br,getAccDescription:Ir,setAccDescription:Dr,addVertex:cm,lookUpDomId:fo,addLink:um,updateLinkInterpolate:fm,updateLink:dm,addClass:pm,setDirection:gm,setClass:Hc,setTooltip:rO,getTooltip:mm,setClickEvent:bm,setLink:ym,bindFunctions:_m,getDirection:xm,getVertices:vm,getEdges:km,getClasses:wm,clear:Em,setGen:Cm,defaultStyle:Sm,addSubGraph:Am,getDepthFirstPos:Dm,indexNodes:Im,getSubGraphs:Mm,destructLink:Rm,lex:Pm,exists:Om,makeUniq:Fm,setDiagramTitle:si,getDiagramTitle:ai},Nz=Object.freeze(Object.defineProperty({__proto__:null,addClass:pm,addLink:um,addSingleLink:hm,addSubGraph:Am,addVertex:cm,bindFunctions:_m,clear:Em,default:hi,defaultStyle:Sm,destructLink:Rm,firstGraph:Nm,getClasses:wm,getDepthFirstPos:Dm,getDirection:xm,getEdges:km,getSubGraphs:Mm,getTooltip:mm,getVertices:vm,indexNodes:Im,lex:Pm,lookUpDomId:fo,parseDirective:lm,setClass:Hc,setClickEvent:bm,setDirection:gm,setGen:Cm,setLink:ym,updateLink:dm,updateLinkInterpolate:fm},Symbol.toStringTag,{value:"Module"}));function Vm(t,e,r){const i=e.width,n=e.height,s=(i+n)*.9,a=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=tn(t,s,s,a);return r.intersect=function(l){return vi(r,a,l)},o}function Ym(t,e,r){const n=e.height,s=n/4,a=e.width+2*s,o=[{x:s,y:0},{x:a-s,y:0},{x:a,y:-n/2},{x:a-s,y:-n},{x:s,y:-n},{x:0,y:-n/2}],l=tn(t,a,n,o);return r.intersect=function(h){return vi(r,o,h)},l}function zm(t,e,r){const i=e.width,n=e.height,s=[{x:-n/2,y:0},{x:i,y:0},{x:i,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Um(t,e,r){const i=e.width,n=e.height,s=[{x:-2*n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Wm(t,e,r){const i=e.width,n=e.height,s=[{x:2*n/6,y:0},{x:i+n/6,y:0},{x:i-2*n/6,y:-n},{x:-n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Hm(t,e,r){const i=e.width,n=e.height,s=[{x:-2*n/6,y:0},{x:i+2*n/6,y:0},{x:i-n/6,y:-n},{x:n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function qm(t,e,r){const i=e.width,n=e.height,s=[{x:n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:-2*n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Gm(t,e,r){const i=e.width,n=e.height,s=[{x:0,y:0},{x:i+n/2,y:0},{x:i,y:-n/2},{x:i+n/2,y:-n},{x:0,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function $m(t,e,r){const i=e.height,n=e.width+i/4,s=t.insert("rect",":first-child").attr("rx",i/2).attr("ry",i/2).attr("x",-n/2).attr("y",-i/2).attr("width",n).attr("height",i);return r.intersect=function(a){return P1(r,a)},s}function jm(t,e,r){const i=e.width,n=e.height,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Xm(t,e,r){const i=e.width,n=i/2,s=n/(2.5+i/50),a=e.height+s,o="M 0,"+s+" a "+n+","+s+" 0,0,0 "+i+" 0 a "+n+","+s+" 0,0,0 "+-i+" 0 l 0,"+a+" a "+n+","+s+" 0,0,0 "+i+" 0 l 0,"+-a,l=t.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-i/2+","+-(a/2+s)+")");return r.intersect=function(h){const u=P1(r,h),f=u.x-r.x;if(n!=0&&(Math.abs(f)<r.width/2||Math.abs(f)==r.width/2&&Math.abs(u.y-r.y)>r.height/2-s)){let d=s*s*(1-f*f/(n*n));d!=0&&(d=Math.sqrt(d)),d=s-d,h.y-r.y>0&&(d=-d),u.y+=d}return u},l}function lO(t){t.shapes().question=Vm,t.shapes().hexagon=Ym,t.shapes().stadium=$m,t.shapes().subroutine=jm,t.shapes().cylinder=Xm,t.shapes().rect_left_inv_arrow=zm,t.shapes().lean_right=Um,t.shapes().lean_left=Wm,t.shapes().trapezoid=Hm,t.shapes().inv_trapezoid=qm,t.shapes().rect_right_inv_arrow=Gm}function cO(t){t({question:Vm}),t({hexagon:Ym}),t({stadium:$m}),t({subroutine:jm}),t({cylinder:Xm}),t({rect_left_inv_arrow:zm}),t({lean_right:Um}),t({lean_left:Wm}),t({trapezoid:Hm}),t({inv_trapezoid:qm}),t({rect_right_inv_arrow:Gm})}function tn(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const hO={addToRender:lO,addToRenderV2:cO},Km={},uO=function(t){const e=Object.keys(t);for(const r of e)Km[r]=t[r]},Zm=function(t,e,r,i,n,s){const a=i?i.select(`[id="${r}"]`):_t(`[id="${r}"]`),o=n||document;Object.keys(t).forEach(function(h){const u=t[h];let f="default";u.classes.length>0&&(f=u.classes.join(" "));const d=dn(u.styles);let p=u.text!==void 0?u.text:u.id,m;if(Ke(G().flowchart.htmlLabels)){const k={label:p.replace(/fa[blrs]?:fa-[\w-]+/g,v=>`<i class='${v.replace(":"," ")}'></i>`)};m=O1(a,k).node(),m.parentNode.removeChild(m)}else{const k=o.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",d.labelStyle.replace("color:","fill:"));const v=p.split(Xt.lineBreakRegex);for(const B of v){const R=o.createElementNS("http://www.w3.org/2000/svg","tspan");R.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),R.setAttribute("dy","1em"),R.setAttribute("x","1"),R.textContent=B,k.appendChild(R)}m=k}let b=0,x="";switch(u.type){case"round":b=5,x="rect";break;case"square":x="rect";break;case"diamond":x="question";break;case"hexagon":x="hexagon";break;case"odd":x="rect_left_inv_arrow";break;case"lean_right":x="lean_right";break;case"lean_left":x="lean_left";break;case"trapezoid":x="trapezoid";break;case"inv_trapezoid":x="inv_trapezoid";break;case"odd_right":x="rect_left_inv_arrow";break;case"circle":x="circle";break;case"ellipse":x="ellipse";break;case"stadium":x="stadium";break;case"subroutine":x="subroutine";break;case"cylinder":x="cylinder";break;case"group":x="rect";break;default:x="rect"}I.warn("Adding node",u.id,u.domId),e.setNode(s.db.lookUpDomId(u.id),{labelType:"svg",labelStyle:d.labelStyle,shape:x,label:m,rx:b,ry:b,class:f,style:d.style,id:s.db.lookUpDomId(u.id)})})},Qm=function(t,e,r){let i=0,n,s;if(t.defaultStyle!==void 0){const a=dn(t.defaultStyle);n=a.style,s=a.labelStyle}t.forEach(function(a){i++;var o="L-"+a.start+"-"+a.end,l="LS-"+a.start,h="LE-"+a.end;const u={};a.type==="arrow_open"?u.arrowhead="none":u.arrowhead="normal";let f="",d="";if(a.style!==void 0){const p=dn(a.style);f=p.style,d=p.labelStyle}else switch(a.stroke){case"normal":f="fill:none",n!==void 0&&(f=n),s!==void 0&&(d=s);break;case"dotted":f="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f=" stroke-width: 3.5px;fill:none";break}u.style=f,u.labelStyle=d,a.interpolate!==void 0?u.curve=Zr(a.interpolate,Cr):t.defaultInterpolate!==void 0?u.curve=Zr(t.defaultInterpolate,Cr):u.curve=Zr(Km.curve,Cr),a.text===void 0?a.style!==void 0&&(u.arrowheadStyle="fill: #333"):(u.arrowheadStyle="fill: #333",u.labelpos="c",Ke(G().flowchart.htmlLabels)?(u.labelType="html",u.label=`<span id="L-${o}" class="edgeLabel L-${l}' L-${h}" style="${u.labelStyle}">${a.text.replace(/fa[blrs]?:fa-[\w-]+/g,p=>`<i class='${p.replace(":"," ")}'></i>`)}</span>`):(u.labelType="text",u.label=a.text.replace(Xt.lineBreakRegex,`
|
|
1229
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Yt=this.next();return Yt||this.lex()},begin:function(Yt){this.conditionStack.push(Yt)},popState:function(){var Yt=this.conditionStack.length-1;return Yt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Yt){return Yt=this.conditionStack.length-1-Math.abs(Yt||0),Yt>=0?this.conditionStack[Yt]:"INITIAL"},pushState:function(Yt){this.begin(Yt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Yt,oe,St,ve){switch(St){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:break;case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:return Yt.lex.firstGraph()&&this.begin("dir"),24;case 36:return Yt.lex.firstGraph()&&this.begin("dir"),24;case 37:return Yt.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),25;case 45:return this.popState(),26;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:return 82;case 68:return 82;case 69:return 82;case 70:return 81;case 71:return 81;case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:return 125;case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],inclusive:!0}}};return wi}();we.lexer=Xs;function ts(){this.yy={}}return ts.prototype=we,we.Parser=ts,new ts}();Mu.parser=Mu;const jd=Mu,JR=(t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null},tO=(t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null?!0:t.match(/^\s*flowchart/)!==null},eO="flowchart-";let Xd=0,a0=G(),_e={},zn=[],ds={},Xi=[],Ql={},o0={},el=0,Nu=!0,Fr,zc,Uc=[];const Wc=t=>Xt.sanitizeText(t,a0),lm=function(t,e,r){xe.parseDirective(this,t,e,r)},fo=function(t){const e=Object.keys(_e);for(const r of e)if(_e[r].id===t)return _e[r].domId;return t},cm=function(t,e,r,i,n,s,a={}){let o,l=t;l!==void 0&&l.trim().length!==0&&(_e[l]===void 0&&(_e[l]={id:l,domId:eO+l+"-"+Xd,styles:[],classes:[]}),Xd++,e!==void 0?(a0=G(),o=Wc(e.trim()),o[0]==='"'&&o[o.length-1]==='"'&&(o=o.substring(1,o.length-1)),_e[l].text=o):_e[l].text===void 0&&(_e[l].text=t),r!==void 0&&(_e[l].type=r),i!=null&&i.forEach(function(h){_e[l].styles.push(h)}),n!=null&&n.forEach(function(h){_e[l].classes.push(h)}),s!==void 0&&(_e[l].dir=s),_e[l].props===void 0?_e[l].props=a:a!==void 0&&Object.assign(_e[l].props,a))},hm=function(t,e,r,i){const a={start:t,end:e,type:void 0,text:""};i=r.text,i!==void 0&&(a.text=Wc(i.trim()),a.text[0]==='"'&&a.text[a.text.length-1]==='"'&&(a.text=a.text.substring(1,a.text.length-1))),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length),zn.push(a)},um=function(t,e,r,i){let n,s;for(n=0;n<t.length;n++)for(s=0;s<e.length;s++)hm(t[n],e[s],r,i)},fm=function(t,e){t.forEach(function(r){r==="default"?zn.defaultInterpolate=e:zn[r].interpolate=e})},dm=function(t,e){t.forEach(function(r){r==="default"?zn.defaultStyle=e:(jt.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),zn[r].style=e)})},pm=function(t,e){ds[t]===void 0&&(ds[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){const n=r.replace("fill","bgFill").replace("color","fill");ds[t].textStyles.push(n)}ds[t].styles.push(r)})},gm=function(t){Fr=t,Fr.match(/.*</)&&(Fr="RL"),Fr.match(/.*\^/)&&(Fr="BT"),Fr.match(/.*>/)&&(Fr="LR"),Fr.match(/.*v/)&&(Fr="TB"),Fr==="TD"&&(Fr="TB")},Hc=function(t,e){t.split(",").forEach(function(r){let i=r;_e[i]!==void 0&&_e[i].classes.push(e),Ql[i]!==void 0&&Ql[i].classes.push(e)})},rO=function(t,e){t.split(",").forEach(function(r){e!==void 0&&(o0[zc==="gen-1"?fo(r):r]=Wc(e))})},iO=function(t,e,r){let i=fo(t);if(G().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<n.length;s++){let a=n[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),n[s]=a}}n.length===0&&n.push(t),_e[t]!==void 0&&(_e[t].haveCallback=!0,Uc.push(function(){const s=document.querySelector(`[id="${i}"]`);s!==null&&s.addEventListener("click",function(){jt.runFunc(e,...n)},!1)}))},ym=function(t,e,r){t.split(",").forEach(function(i){_e[i]!==void 0&&(_e[i].link=jt.formatUrl(e,a0),_e[i].linkTarget=r)}),Hc(t,"clickable")},mm=function(t){return o0[t]},bm=function(t,e,r){t.split(",").forEach(function(i){iO(i,e,r)}),Hc(t,"clickable")},_m=function(t){Uc.forEach(function(e){e(t)})},xm=function(){return Fr.trim()},vm=function(){return _e},km=function(){return zn},wm=function(){return ds},Tm=function(t){let e=_t(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=_t("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),_t(t).select("svg").selectAll("g.node").on("mouseover",function(){const n=_t(this);if(n.attr("title")===null)return;const a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(n.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),n.classed("hover",!0)}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),_t(this).classed("hover",!1)})};Uc.push(Tm);const Em=function(t="gen-1"){_e={},ds={},zn=[],Uc=[Tm],Xi=[],Ql={},el=0,o0=[],Nu=!0,zc=t,Lr()},Cm=t=>{zc=t||"gen-2"},Sm=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},Am=function(t,e,r){let i=t.trim(),n=r;t===r&&r.match(/\s/)&&(i=void 0);function s(u){const f={boolean:{},number:{},string:{}},d=[];let p;return{nodeList:u.filter(function(b){const x=typeof b;return b.stmt&&b.stmt==="dir"?(p=b.value,!1):b.trim()===""?!1:x in f?f[x].hasOwnProperty(b)?!1:f[x][b]=!0:d.includes(b)?!1:d.push(b)}),dir:p}}let a=[];const{nodeList:o,dir:l}=s(a.concat.apply(a,e));if(a=o,zc==="gen-1")for(let u=0;u<a.length;u++)a[u]=fo(a[u]);i=i||"subGraph"+el,n=n||"",n=Wc(n),el=el+1;const h={id:i,nodes:a,title:n.trim(),classes:[],dir:l};return I.info("Adding",h.id,h.nodes,h.dir),h.nodes=Fm(h,Xi).nodes,Xi.push(h),Ql[i]=h,i},nO=function(t){for(const[e,r]of Xi.entries())if(r.id===t)return e;return-1};let da=-1;const Lm=[],Bm=function(t,e){const r=Xi[e].nodes;if(da=da+1,da>2e3)return;if(Lm[da]=e,Xi[e].id===t)return{result:!0,count:0};let i=0,n=1;for(;i<r.length;){const s=nO(r[i]);if(s>=0){const a=Bm(t,s);if(a.result)return{result:!0,count:n+a.count};n=n+a.count}i=i+1}return{result:!1,count:n}},Dm=function(t){return Lm[t]},Im=function(){da=-1,Xi.length>0&&Bm("none",Xi.length-1)},Mm=function(){return Xi},Nm=()=>Nu?(Nu=!1,!0):!1,sO=t=>{let e=t.trim(),r="arrow_open";switch(e[0]){case"<":r="arrow_point",e=e.slice(1);break;case"x":r="arrow_cross",e=e.slice(1);break;case"o":r="arrow_circle",e=e.slice(1);break}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:r,stroke:i}},aO=(t,e)=>{const r=e.length;let i=0;for(let n=0;n<r;++n)e[n]===t&&++i;return i},oO=t=>{const e=t.trim();let r=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross",e[0]==="x"&&(i="double_"+i,r=r.slice(1));break;case">":i="arrow_point",e[0]==="<"&&(i="double_"+i,r=r.slice(1));break;case"o":i="arrow_circle",e[0]==="o"&&(i="double_"+i,r=r.slice(1));break}let n="normal",s=r.length-1;r[0]==="="&&(n="thick");let a=aO(".",r);return a&&(n="dotted",s=a),{type:i,stroke:n,length:s}},Rm=(t,e)=>{const r=oO(t);let i;if(e){if(i=sO(e),i.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=r.type;else{if(i.type!==r.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=r.length,i}return r},Om=(t,e)=>{let r=!1;return t.forEach(i=>{i.nodes.indexOf(e)>=0&&(r=!0)}),r},Fm=(t,e)=>{const r=[];return t.nodes.forEach((i,n)=>{Om(e,i)||r.push(t.nodes[n])}),{nodes:r}},Pm={firstGraph:Nm},hi={parseDirective:lm,defaultConfig:()=>Ns.flowchart,setAccTitle:kr,getAccTitle:Br,getAccDescription:Ir,setAccDescription:Dr,addVertex:cm,lookUpDomId:fo,addLink:um,updateLinkInterpolate:fm,updateLink:dm,addClass:pm,setDirection:gm,setClass:Hc,setTooltip:rO,getTooltip:mm,setClickEvent:bm,setLink:ym,bindFunctions:_m,getDirection:xm,getVertices:vm,getEdges:km,getClasses:wm,clear:Em,setGen:Cm,defaultStyle:Sm,addSubGraph:Am,getDepthFirstPos:Dm,indexNodes:Im,getSubGraphs:Mm,destructLink:Rm,lex:Pm,exists:Om,makeUniq:Fm,setDiagramTitle:si,getDiagramTitle:ai},Mz=Object.freeze(Object.defineProperty({__proto__:null,addClass:pm,addLink:um,addSingleLink:hm,addSubGraph:Am,addVertex:cm,bindFunctions:_m,clear:Em,default:hi,defaultStyle:Sm,destructLink:Rm,firstGraph:Nm,getClasses:wm,getDepthFirstPos:Dm,getDirection:xm,getEdges:km,getSubGraphs:Mm,getTooltip:mm,getVertices:vm,indexNodes:Im,lex:Pm,lookUpDomId:fo,parseDirective:lm,setClass:Hc,setClickEvent:bm,setDirection:gm,setGen:Cm,setLink:ym,updateLink:dm,updateLinkInterpolate:fm},Symbol.toStringTag,{value:"Module"}));function Vm(t,e,r){const i=e.width,n=e.height,s=(i+n)*.9,a=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=tn(t,s,s,a);return r.intersect=function(l){return vi(r,a,l)},o}function Ym(t,e,r){const n=e.height,s=n/4,a=e.width+2*s,o=[{x:s,y:0},{x:a-s,y:0},{x:a,y:-n/2},{x:a-s,y:-n},{x:s,y:-n},{x:0,y:-n/2}],l=tn(t,a,n,o);return r.intersect=function(h){return vi(r,o,h)},l}function zm(t,e,r){const i=e.width,n=e.height,s=[{x:-n/2,y:0},{x:i,y:0},{x:i,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Um(t,e,r){const i=e.width,n=e.height,s=[{x:-2*n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Wm(t,e,r){const i=e.width,n=e.height,s=[{x:2*n/6,y:0},{x:i+n/6,y:0},{x:i-2*n/6,y:-n},{x:-n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Hm(t,e,r){const i=e.width,n=e.height,s=[{x:-2*n/6,y:0},{x:i+2*n/6,y:0},{x:i-n/6,y:-n},{x:n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function qm(t,e,r){const i=e.width,n=e.height,s=[{x:n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:-2*n/6,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Gm(t,e,r){const i=e.width,n=e.height,s=[{x:0,y:0},{x:i+n/2,y:0},{x:i,y:-n/2},{x:i+n/2,y:-n},{x:0,y:-n}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function $m(t,e,r){const i=e.height,n=e.width+i/4,s=t.insert("rect",":first-child").attr("rx",i/2).attr("ry",i/2).attr("x",-n/2).attr("y",-i/2).attr("width",n).attr("height",i);return r.intersect=function(a){return P1(r,a)},s}function jm(t,e,r){const i=e.width,n=e.height,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],a=tn(t,i,n,s);return r.intersect=function(o){return vi(r,s,o)},a}function Xm(t,e,r){const i=e.width,n=i/2,s=n/(2.5+i/50),a=e.height+s,o="M 0,"+s+" a "+n+","+s+" 0,0,0 "+i+" 0 a "+n+","+s+" 0,0,0 "+-i+" 0 l 0,"+a+" a "+n+","+s+" 0,0,0 "+i+" 0 l 0,"+-a,l=t.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-i/2+","+-(a/2+s)+")");return r.intersect=function(h){const u=P1(r,h),f=u.x-r.x;if(n!=0&&(Math.abs(f)<r.width/2||Math.abs(f)==r.width/2&&Math.abs(u.y-r.y)>r.height/2-s)){let d=s*s*(1-f*f/(n*n));d!=0&&(d=Math.sqrt(d)),d=s-d,h.y-r.y>0&&(d=-d),u.y+=d}return u},l}function lO(t){t.shapes().question=Vm,t.shapes().hexagon=Ym,t.shapes().stadium=$m,t.shapes().subroutine=jm,t.shapes().cylinder=Xm,t.shapes().rect_left_inv_arrow=zm,t.shapes().lean_right=Um,t.shapes().lean_left=Wm,t.shapes().trapezoid=Hm,t.shapes().inv_trapezoid=qm,t.shapes().rect_right_inv_arrow=Gm}function cO(t){t({question:Vm}),t({hexagon:Ym}),t({stadium:$m}),t({subroutine:jm}),t({cylinder:Xm}),t({rect_left_inv_arrow:zm}),t({lean_right:Um}),t({lean_left:Wm}),t({trapezoid:Hm}),t({inv_trapezoid:qm}),t({rect_right_inv_arrow:Gm})}function tn(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const hO={addToRender:lO,addToRenderV2:cO},Km={},uO=function(t){const e=Object.keys(t);for(const r of e)Km[r]=t[r]},Zm=function(t,e,r,i,n,s){const a=i?i.select(`[id="${r}"]`):_t(`[id="${r}"]`),o=n||document;Object.keys(t).forEach(function(h){const u=t[h];let f="default";u.classes.length>0&&(f=u.classes.join(" "));const d=dn(u.styles);let p=u.text!==void 0?u.text:u.id,m;if(Ke(G().flowchart.htmlLabels)){const k={label:p.replace(/fa[blrs]?:fa-[\w-]+/g,v=>`<i class='${v.replace(":"," ")}'></i>`)};m=O1(a,k).node(),m.parentNode.removeChild(m)}else{const k=o.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",d.labelStyle.replace("color:","fill:"));const v=p.split(Xt.lineBreakRegex);for(const B of v){const R=o.createElementNS("http://www.w3.org/2000/svg","tspan");R.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),R.setAttribute("dy","1em"),R.setAttribute("x","1"),R.textContent=B,k.appendChild(R)}m=k}let b=0,x="";switch(u.type){case"round":b=5,x="rect";break;case"square":x="rect";break;case"diamond":x="question";break;case"hexagon":x="hexagon";break;case"odd":x="rect_left_inv_arrow";break;case"lean_right":x="lean_right";break;case"lean_left":x="lean_left";break;case"trapezoid":x="trapezoid";break;case"inv_trapezoid":x="inv_trapezoid";break;case"odd_right":x="rect_left_inv_arrow";break;case"circle":x="circle";break;case"ellipse":x="ellipse";break;case"stadium":x="stadium";break;case"subroutine":x="subroutine";break;case"cylinder":x="cylinder";break;case"group":x="rect";break;default:x="rect"}I.warn("Adding node",u.id,u.domId),e.setNode(s.db.lookUpDomId(u.id),{labelType:"svg",labelStyle:d.labelStyle,shape:x,label:m,rx:b,ry:b,class:f,style:d.style,id:s.db.lookUpDomId(u.id)})})},Qm=function(t,e,r){let i=0,n,s;if(t.defaultStyle!==void 0){const a=dn(t.defaultStyle);n=a.style,s=a.labelStyle}t.forEach(function(a){i++;var o="L-"+a.start+"-"+a.end,l="LS-"+a.start,h="LE-"+a.end;const u={};a.type==="arrow_open"?u.arrowhead="none":u.arrowhead="normal";let f="",d="";if(a.style!==void 0){const p=dn(a.style);f=p.style,d=p.labelStyle}else switch(a.stroke){case"normal":f="fill:none",n!==void 0&&(f=n),s!==void 0&&(d=s);break;case"dotted":f="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f=" stroke-width: 3.5px;fill:none";break}u.style=f,u.labelStyle=d,a.interpolate!==void 0?u.curve=Zr(a.interpolate,Cr):t.defaultInterpolate!==void 0?u.curve=Zr(t.defaultInterpolate,Cr):u.curve=Zr(Km.curve,Cr),a.text===void 0?a.style!==void 0&&(u.arrowheadStyle="fill: #333"):(u.arrowheadStyle="fill: #333",u.labelpos="c",Ke(G().flowchart.htmlLabels)?(u.labelType="html",u.label=`<span id="L-${o}" class="edgeLabel L-${l}' L-${h}" style="${u.labelStyle}">${a.text.replace(/fa[blrs]?:fa-[\w-]+/g,p=>`<i class='${p.replace(":"," ")}'></i>`)}</span>`):(u.labelType="text",u.label=a.text.replace(Xt.lineBreakRegex,`
|
|
1230
1230
|
`),a.style===void 0&&(u.style=u.style||"stroke: #333; stroke-width: 1.5px;fill:none"),u.labelStyle=u.labelStyle.replace("color:","fill:"))),u.id=o,u.class=l+" "+h,u.minlen=a.length||1,e.setEdge(r.db.lookUpDomId(a.start),r.db.lookUpDomId(a.end),u,i)})},fO=function(t,e){I.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(r){return I.error(r),{}}},dO=function(t,e,r,i){I.info("Drawing flowchart"),i.db.clear();const{securityLevel:n,flowchart:s}=G();let a;n==="sandbox"&&(a=_t("#i"+e));const o=_t(n==="sandbox"?a.nodes()[0].contentDocument.body:"body"),l=n==="sandbox"?a.nodes()[0].contentDocument:document;try{i.parser.parse(t)}catch{I.debug("Parsing failed")}let h=i.db.getDirection();h===void 0&&(h="TD");const u=s.nodeSpacing||50,f=s.rankSpacing||50,d=new Pe({multigraph:!0,compound:!0}).setGraph({rankdir:h,nodesep:u,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let p;const m=i.db.getSubGraphs();for(let V=m.length-1;V>=0;V--)p=m[V],i.db.addVertex(p.id,p.title,"group",void 0,p.classes);const b=i.db.getVertices();I.warn("Get vertices",b);const x=i.db.getEdges();let k=0;for(k=m.length-1;k>=0;k--){p=m[k],l1("cluster").append("text");for(let V=0;V<p.nodes.length;V++)I.warn("Setting subgraph",p.nodes[V],i.db.lookUpDomId(p.nodes[V]),i.db.lookUpDomId(p.id)),d.setParent(i.db.lookUpDomId(p.nodes[V]),i.db.lookUpDomId(p.id))}Zm(b,d,e,o,l,i),Qm(x,d,i);const v=new tL;hO.addToRender(v),v.arrows().none=function(O,F,C,S){const _=O.append("marker").attr("id",F).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");xi(_,C[S+"Style"])},v.arrows().normal=function(O,F){O.append("marker").attr("id",F).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const B=o.select(`[id="${e}"]`),R=o.select("#"+e+" g");for(v(R,d),R.selectAll("g.node").attr("title",function(){return i.db.getTooltip(this.id)}),i.db.indexNodes("subGraph"+k),k=0;k<m.length;k++)if(p=m[k],p.title!=="undefined"){const V=l.querySelectorAll("#"+e+' [id="'+i.db.lookUpDomId(p.id)+'"] rect'),O=l.querySelectorAll("#"+e+' [id="'+i.db.lookUpDomId(p.id)+'"]'),F=V[0].x.baseVal.value,C=V[0].y.baseVal.value,S=V[0].width.baseVal.value,_=_t(O[0]).select(".label");_.attr("transform",`translate(${F+S/2}, ${C+14})`),_.attr("id",e+"Text");for(let w=0;w<p.classes.length;w++)O[0].classList.add(p.classes[w])}if(!s.htmlLabels){const V=l.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const O of V){const F=O.getBBox(),C=l.createElementNS("http://www.w3.org/2000/svg","rect");C.setAttribute("rx",0),C.setAttribute("ry",0),C.setAttribute("width",F.width),C.setAttribute("height",F.height),O.insertBefore(C,O.firstChild)}}Vc(d,B,s.diagramPadding,s.useMaxWidth),Object.keys(b).forEach(function(V){const O=b[V];if(O.link){const F=o.select("#"+e+' [id="'+i.db.lookUpDomId(V)+'"]');if(F){const C=l.createElementNS("http://www.w3.org/2000/svg","a");C.setAttributeNS("http://www.w3.org/2000/svg","class",O.classes.join(" ")),C.setAttributeNS("http://www.w3.org/2000/svg","href",O.link),C.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n==="sandbox"?C.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):O.linkTarget&&C.setAttributeNS("http://www.w3.org/2000/svg","target",O.linkTarget);const S=F.insert(function(){return C},":first-child"),E=F.select(".label-container");E&&S.append(function(){return E.node()});const _=F.select(".label");_&&S.append(function(){return _.node()})}}})},pO={setConf:uO,addVertices:Zm,addEdges:Qm,getClasses:fO,draw:dO},Jm={},gO=function(t){const e=Object.keys(t);for(const r of e)Jm[r]=t[r]},t3=function(t,e,r,i,n,s){const a=i.select(`[id="${r}"]`);Object.keys(t).forEach(function(l){const h=t[l];let u="default";h.classes.length>0&&(u=h.classes.join(" "));const f=dn(h.styles);let d=h.text!==void 0?h.text:h.id,p;if(Ke(G().flowchart.htmlLabels)){const x={label:d.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`)};p=O1(a,x).node(),p.parentNode.removeChild(p)}else{const x=n.createElementNS("http://www.w3.org/2000/svg","text");x.setAttribute("style",f.labelStyle.replace("color:","fill:"));const k=d.split(Xt.lineBreakRegex);for(const v of k){const B=n.createElementNS("http://www.w3.org/2000/svg","tspan");B.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),B.setAttribute("dy","1em"),B.setAttribute("x","1"),B.textContent=v,x.appendChild(B)}p=x}let m=0,b="";switch(h.type){case"round":m=5,b="rect";break;case"square":b="rect";break;case"diamond":b="question";break;case"hexagon":b="hexagon";break;case"odd":b="rect_left_inv_arrow";break;case"lean_right":b="lean_right";break;case"lean_left":b="lean_left";break;case"trapezoid":b="trapezoid";break;case"inv_trapezoid":b="inv_trapezoid";break;case"odd_right":b="rect_left_inv_arrow";break;case"circle":b="circle";break;case"ellipse":b="ellipse";break;case"stadium":b="stadium";break;case"subroutine":b="subroutine";break;case"cylinder":b="cylinder";break;case"group":b="rect";break;case"doublecircle":b="doublecircle";break;default:b="rect"}e.setNode(h.id,{labelStyle:f.labelStyle,shape:b,labelText:d,rx:m,ry:m,class:u,style:f.style,id:h.id,link:h.link,linkTarget:h.linkTarget,tooltip:s.db.getTooltip(h.id)||"",domId:s.db.lookUpDomId(h.id),haveCallback:h.haveCallback,width:h.type==="group"?500:void 0,dir:h.dir,type:h.type,props:h.props,padding:G().flowchart.padding}),I.info("setNode",{labelStyle:f.labelStyle,shape:b,labelText:d,rx:m,ry:m,class:u,style:f.style,id:h.id,domId:s.db.lookUpDomId(h.id),width:h.type==="group"?500:void 0,type:h.type,dir:h.dir,props:h.props,padding:G().flowchart.padding})})},e3=function(t,e,r){I.info("abc78 edges = ",t);let i=0,n={},s,a;if(t.defaultStyle!==void 0){const o=dn(t.defaultStyle);s=o.style,a=o.labelStyle}t.forEach(function(o){i++;var l="L-"+o.start+"-"+o.end;n[l]===void 0?(n[l]=0,I.info("abc78 new entry",l,n[l])):(n[l]++,I.info("abc78 new entry",l,n[l]));let h=l+"-"+n[l];I.info("abc78 new link id to be used is",l,h,n[l]);var u="LS-"+o.start,f="LE-"+o.end;const d={style:"",labelStyle:""};switch(d.minlen=o.length||1,o.type==="arrow_open"?d.arrowhead="none":d.arrowhead="normal",d.arrowTypeStart="arrow_open",d.arrowTypeEnd="arrow_open",o.type){case"double_arrow_cross":d.arrowTypeStart="arrow_cross";case"arrow_cross":d.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":d.arrowTypeStart="arrow_point";case"arrow_point":d.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":d.arrowTypeStart="arrow_circle";case"arrow_circle":d.arrowTypeEnd="arrow_circle";break}let p="",m="";switch(o.stroke){case"normal":p="fill:none;",s!==void 0&&(p=s),a!==void 0&&(m=a),d.thickness="normal",d.pattern="solid";break;case"dotted":d.thickness="normal",d.pattern="dotted",d.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":d.thickness="thick",d.pattern="solid",d.style="stroke-width: 3.5px;fill:none;";break}if(o.style!==void 0){const b=dn(o.style);p=b.style,m=b.labelStyle}d.style=d.style+=p,d.labelStyle=d.labelStyle+=m,o.interpolate!==void 0?d.curve=Zr(o.interpolate,Cr):t.defaultInterpolate!==void 0?d.curve=Zr(t.defaultInterpolate,Cr):d.curve=Zr(Jm.curve,Cr),o.text===void 0?o.style!==void 0&&(d.arrowheadStyle="fill: #333"):(d.arrowheadStyle="fill: #333",d.labelpos="c"),d.labelType="text",d.label=o.text.replace(Xt.lineBreakRegex,`
|
|
1231
1231
|
`),o.style===void 0&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),d.labelStyle=d.labelStyle.replace("color:","fill:"),d.id=h,d.classes="flowchart-link "+u+" "+f,e.setEdge(o.start,o.end,d,i)})},yO=function(t,e){I.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch{return}},mO=function(t,e,r,i){I.info("Drawing flowchart"),i.db.clear(),hi.setGen("gen-2"),i.parser.parse(t);let n=i.db.getDirection();n===void 0&&(n="TD");const{securityLevel:s,flowchart:a}=G(),o=a.nodeSpacing||50,l=a.rankSpacing||50;let h;s==="sandbox"&&(h=_t("#i"+e));const u=_t(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),f=s==="sandbox"?h.nodes()[0].contentDocument:document,d=new Pe({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:o,ranksep:l,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let p;const m=i.db.getSubGraphs();I.info("Subgraphs - ",m);for(let P=m.length-1;P>=0;P--)p=m[P],I.info("Subgraph - ",p),i.db.addVertex(p.id,p.title,"group",void 0,p.classes,p.dir);const b=i.db.getVertices(),x=i.db.getEdges();I.info("Edges",x);let k=0;for(k=m.length-1;k>=0;k--){p=m[k],l1("cluster").append("text");for(let P=0;P<p.nodes.length;P++)I.info("Setting up subgraphs",p.nodes[P],p.id),d.setParent(p.nodes[P],p.id)}t3(b,d,e,u,f,i),e3(x,d);const v=u.select(`[id="${e}"]`),B=u.select("#"+e+" g");if(n0(B,d,["point","circle","cross"],"flowchart",e),jt.insertTitle(v,"flowchartTitleText",a.titleTopMargin,i.db.getDiagramTitle()),Vc(d,v,a.diagramPadding,a.useMaxWidth),i.db.indexNodes("subGraph"+k),!a.htmlLabels){const P=f.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const V of P){const O=V.getBBox(),F=f.createElementNS("http://www.w3.org/2000/svg","rect");F.setAttribute("rx",0),F.setAttribute("ry",0),F.setAttribute("width",O.width),F.setAttribute("height",O.height),V.insertBefore(F,V.firstChild)}}Object.keys(b).forEach(function(P){const V=b[P];if(V.link){const O=_t("#"+e+' [id="'+P+'"]');if(O){const F=f.createElementNS("http://www.w3.org/2000/svg","a");F.setAttributeNS("http://www.w3.org/2000/svg","class",V.classes.join(" ")),F.setAttributeNS("http://www.w3.org/2000/svg","href",V.link),F.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),s==="sandbox"?F.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):V.linkTarget&&F.setAttributeNS("http://www.w3.org/2000/svg","target",V.linkTarget);const C=O.insert(function(){return F},":first-child"),S=O.select(".label-container");S&&C.append(function(){return S.node()});const E=O.select(".label");E&&C.append(function(){return E.node()})}}})},Fh={setConf:gO,addVertices:t3,addEdges:e3,getClasses:yO,draw:mO};var Ru=function(){var t=function(F,C,S,E){for(S=S||{},E=F.length;E--;S[F[E]]=C);return S},e=[1,3],r=[1,5],i=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],n=[1,15],s=[1,16],a=[1,17],o=[1,18],l=[1,19],h=[1,20],u=[1,21],f=[1,22],d=[1,23],p=[1,24],m=[1,25],b=[1,26],x=[1,27],k=[1,29],v=[1,31],B=[1,34],R=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],P={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(C,S,E,_,w,g,D){var y=g.length-1;switch(w){case 2:return g[y-1];case 3:this.$=[];break;case 4:g[y-1].push(g[y]),this.$=g[y-1];break;case 5:case 6:this.$=g[y];break;case 7:case 8:this.$=[];break;case 9:_.setDateFormat(g[y].substr(11)),this.$=g[y].substr(11);break;case 10:_.enableInclusiveEndDates(),this.$=g[y].substr(18);break;case 11:_.TopAxis(),this.$=g[y].substr(8);break;case 12:_.setAxisFormat(g[y].substr(11)),this.$=g[y].substr(11);break;case 13:_.setTickInterval(g[y].substr(13)),this.$=g[y].substr(13);break;case 14:_.setExcludes(g[y].substr(9)),this.$=g[y].substr(9);break;case 15:_.setIncludes(g[y].substr(9)),this.$=g[y].substr(9);break;case 16:_.setTodayMarker(g[y].substr(12)),this.$=g[y].substr(12);break;case 17:_.setDiagramTitle(g[y].substr(6)),this.$=g[y].substr(6);break;case 18:this.$=g[y].trim(),_.setAccTitle(this.$);break;case 19:case 20:this.$=g[y].trim(),_.setAccDescription(this.$);break;case 21:_.addSection(g[y].substr(8)),this.$=g[y].substr(8);break;case 23:_.addTask(g[y-1],g[y]),this.$="task";break;case 27:this.$=g[y-1],_.setClickEvent(g[y-1],g[y],null);break;case 28:this.$=g[y-2],_.setClickEvent(g[y-2],g[y-1],g[y]);break;case 29:this.$=g[y-2],_.setClickEvent(g[y-2],g[y-1],null),_.setLink(g[y-2],g[y]);break;case 30:this.$=g[y-3],_.setClickEvent(g[y-3],g[y-2],g[y-1]),_.setLink(g[y-3],g[y]);break;case 31:this.$=g[y-2],_.setClickEvent(g[y-2],g[y],null),_.setLink(g[y-2],g[y-1]);break;case 32:this.$=g[y-3],_.setClickEvent(g[y-3],g[y-1],g[y]),_.setLink(g[y-3],g[y-2]);break;case 33:this.$=g[y-1],_.setLink(g[y-1],g[y]);break;case 34:case 40:this.$=g[y-1]+" "+g[y];break;case 35:case 36:case 38:this.$=g[y-2]+" "+g[y-1]+" "+g[y];break;case 37:case 39:this.$=g[y-3]+" "+g[y-2]+" "+g[y-1]+" "+g[y];break;case 41:_.parseDirective("%%{","open_directive");break;case 42:_.parseDirective(g[y],"type_directive");break;case 43:g[y]=g[y].trim().replace(/'/g,'"'),_.parseDirective(g[y],"arg_directive");break;case 44:_.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:e,30:4,40:r},{1:[3]},{3:6,4:2,5:e,30:4,40:r},t(i,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:n,13:s,14:a,15:o,16:l,17:h,18:u,19:f,20:d,21:p,23:m,25:b,26:x,27:28,28:k,30:4,35:v,40:r},{32:32,33:[1,33],43:B},t([33,43],[2,42]),t(i,[2,8],{1:[2,2]}),t(i,[2,4]),{4:30,10:35,12:n,13:s,14:a,15:o,16:l,17:h,18:u,19:f,20:d,21:p,23:m,25:b,26:x,27:28,28:k,30:4,35:v,40:r},t(i,[2,6]),t(i,[2,7]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),{22:[1,36]},{24:[1,37]},t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),{29:[1,38]},t(i,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(i,[2,5]),t(i,[2,18]),t(i,[2,19]),t(i,[2,23]),t(i,[2,27],{37:[1,44],38:[1,45]}),t(i,[2,33],{36:[1,46]}),t(R,[2,25]),{32:47,43:B},{43:[2,43]},t(i,[2,28],{38:[1,48]}),t(i,[2,29]),t(i,[2,31],{37:[1,49]}),{11:[1,50]},t(i,[2,30]),t(i,[2,32]),t(R,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(C,S){if(S.recoverable)this.trace(C);else{var E=new Error(C);throw E.hash=S,E}},parse:function(C){var S=this,E=[0],_=[],w=[null],g=[],D=this.table,y="",N=0,nt=0,Y=2,Z=1,J=g.slice.call(arguments,1),X=Object.create(this.lexer),tt={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(tt.yy[ot]=this.yy[ot]);X.setInput(C,tt.yy),tt.yy.lexer=X,tt.yy.parser=this,typeof X.yylloc>"u"&&(X.yylloc={});var at=X.yylloc;g.push(at);var U=X.options&&X.options.ranges;typeof tt.yy.parseError=="function"?this.parseError=tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tt(){var Dt;return Dt=_.pop()||X.lex()||Z,typeof Dt!="number"&&(Dt instanceof Array&&(_=Dt,Dt=_.pop()),Dt=S.symbols_[Dt]||Dt),Dt}for(var $,j,W,z,A={},M,q,L,st;;){if(j=E[E.length-1],this.defaultActions[j]?W=this.defaultActions[j]:(($===null||typeof $>"u")&&($=Tt()),W=D[j]&&D[j][$]),typeof W>"u"||!W.length||!W[0]){var T="";st=[];for(M in D[j])this.terminals_[M]&&M>Y&&st.push("'"+this.terminals_[M]+"'");X.showPosition?T="Parse error on line "+(N+1)+`:
|
|
1232
1232
|
`+X.showPosition()+`
|
|
@@ -1270,13 +1270,13 @@ Expecting `+Tt.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":$="Parse error o
|
|
|
1270
1270
|
`+k+"^"},test_match:function(x,k){var v,B,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),B=x[0].match(/(?:\r\n?|\n).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+x[0].length},this.yytext+=x[0],this.match+=x[0],this.matches=x,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(x[0].length),this.matched+=x[0],v=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var P in R)this[P]=R[P];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var x,k,v,B;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),P=0;P<R.length;P++)if(v=this._input.match(this.rules[R[P]]),v&&(!k||v[0].length>k[0].length)){if(k=v,B=P,this.options.backtrack_lexer){if(x=this.test_match(v,R[P]),x!==!1)return x;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(x=this.test_match(k,R[B]),x!==!1?x:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
1271
1271
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(k,v,B,R){switch(B){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return b}();d.lexer=p;function m(){this.yy={}}return m.prototype=d,d.Parser=m,new m}();e1.parser=e1;const fY=e1,dY=t=>t.match(/^\s*journey/)!==null;let zs="";const T0=[],to=[],eo=[],pY=function(t,e,r){xe.parseDirective(this,t,e,r)},gY=function(){T0.length=0,to.length=0,zs="",eo.length=0,Lr()},yY=function(t){zs=t,T0.push(t)},mY=function(){return T0},bY=function(){let t=l2();const e=100;let r=0;for(;!t&&r<e;)t=l2(),r++;return to.push(...eo),to},_Y=function(){const t=[];return to.forEach(r=>{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},xY=function(t,e){const r=e.substr(1).split(":");let i=0,n=[];r.length===1?(i=Number(r[0]),n=[]):(i=Number(r[0]),n=r[1].split(","));const s=n.map(o=>o.trim()),a={section:zs,type:zs,people:s,task:t,score:i};eo.push(a)},vY=function(t){const e={section:zs,type:zs,description:t,task:t,classes:[]};to.push(e)},l2=function(){const t=function(r){return eo[r].processed};let e=!0;for(const[r,i]of eo.entries())t(r),e=e&&i.processed;return e},kY=function(){return _Y()},c2={parseDirective:pY,getConfig:()=>G().journey,clear:gY,setDiagramTitle:si,getDiagramTitle:ai,setAccTitle:kr,getAccTitle:Br,setAccDescription:Dr,getAccDescription:Ir,addSection:yY,getSections:mY,getTasks:bY,addTask:xY,addTaskOrg:vY,getActors:kY},Xc=function(t,e){const r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},wY=function(t,e){const i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function s(l){const h=nu().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function a(l){const h=nu().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?s(n):e.score<3?a(n):o(n),i},Z3=function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},Q3=function(t,e){const r=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),e.class!==void 0&&i.attr("class",e.class);const n=i.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.text(r),i},TY=function(t,e){function r(n,s,a,o,l){return n+","+s+" "+(n+a)+","+s+" "+(n+a)+","+(s+o-l)+" "+(n+a-l*1.2)+","+(s+o)+" "+n+","+(s+o)}const i=t.append("polygon");i.attr("points",r(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,Q3(t,e)},EY=function(t,e,r){const i=t.append("g"),n=E0();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=r.width,n.height=r.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,Xc(i,n),J3(r)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},r,e.colour)};let h2=-1;const CY=function(t,e,r){const i=e.x+r.width/2,n=t.append("g");h2++;const s=300+5*30;n.append("line").attr("id","task"+h2).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",s).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),wY(n,{cx:i,cy:300+(5-e.score)*30,score:e.score});const a=E0();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=r.width,a.height=r.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,Xc(n,a);let o=e.x+14;e.people.forEach(l=>{const h=e.actors[l].color,u={cx:o,cy:e.y,r:7,fill:h,stroke:"#000",title:l,pos:e.actors[l].position};Z3(n,u),o+=10}),J3(r)(e.task,n,a.x,a.y,a.width,a.height,{class:"task"},r,e.colour)},SY=function(t,e){Xc(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},AY=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},E0=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},J3=function(){function t(n,s,a,o,l,h,u,f){const d=s.append("text").attr("x",a+l/2).attr("y",o+h/2+5).style("font-color",f).style("text-anchor","middle").text(n);i(d,u)}function e(n,s,a,o,l,h,u,f,d){const{taskFontSize:p,taskFontFamily:m}=f,b=n.split(/<br\s*\/?>/gi);for(let x=0;x<b.length;x++){const k=x*p-p*(b.length-1)/2,v=s.append("text").attr("x",a+l/2).attr("y",o).attr("fill",d).style("text-anchor","middle").style("font-size",p).style("font-family",m);v.append("tspan").attr("x",a+l/2).attr("dy",k).text(b[x]),v.attr("y",o+h/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(v,u)}}function r(n,s,a,o,l,h,u,f){const d=s.append("switch"),m=d.append("foreignObject").attr("x",a).attr("y",o).attr("width",l).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,d,a,o,l,h,u,f),i(m,u)}function i(n,s){for(const a in s)a in s&&n.attr(a,s[a])}return function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?t:e}}(),LY=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},ro={drawRect:Xc,drawCircle:Z3,drawSection:EY,drawText:Q3,drawLabel:TY,drawTask:CY,drawBackgroundRect:SY,getTextObj:AY,getNoteRect:E0,initGraphics:LY},BY=function(t){Object.keys(t).forEach(function(r){Kc[r]=t[r]})},Ui={};function DY(t){const e=G().journey;let r=60;Object.keys(Ui).forEach(i=>{const n=Ui[i].color,s={cx:20,cy:r,r:7,fill:n,stroke:"#000",pos:Ui[i].position};ro.drawCircle(t,s);const a={x:40,y:r+7,fill:"#666",text:i,textMargin:e.boxTextMargin|5};ro.drawText(t,a),r+=20})}const Kc=G().journey,Sn=Kc.leftMargin,IY=function(t,e,r,i){const n=G().journey;i.db.clear(),i.parser.parse(t+`
|
|
1272
1272
|
`);const s=G().securityLevel;let a;s==="sandbox"&&(a=_t("#i"+e));const o=_t(s==="sandbox"?a.nodes()[0].contentDocument.body:"body");Pr.init();const l=o.select("#"+e);ro.initGraphics(l);const h=i.db.getTasks(),u=i.db.getDiagramTitle(),f=i.db.getActors();for(const k in Ui)delete Ui[k];let d=0;f.forEach(k=>{Ui[k]={color:n.actorColours[d%n.actorColours.length],position:d},d++}),DY(l),Pr.insert(0,0,Sn,Object.keys(Ui).length*50),MY(l,h,0);const p=Pr.getBounds();u&&l.append("text").text(u).attr("x",Sn).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const m=p.stopy-p.starty+2*n.diagramMarginY,b=Sn+p.stopx+2*n.diagramMarginX;ni(l,m,b,n.useMaxWidth),l.append("line").attr("x1",Sn).attr("y1",n.height*4).attr("x2",b-Sn-4).attr("y2",n.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const x=u?70:0;l.attr("viewBox",`${p.startx} -25 ${b} ${m+x}`),l.attr("preserveAspectRatio","xMinYMin meet"),l.attr("height",m+x+25)},Pr={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,r,i){t[e]===void 0?t[e]=r:t[e]=i(r,t[e])},updateBounds:function(t,e,r,i){const n=G().journey,s=this;let a=0;function o(l){return function(u){a++;const f=s.sequenceItems.length-a+1;s.updateVal(u,"starty",e-f*n.boxMargin,Math.min),s.updateVal(u,"stopy",i+f*n.boxMargin,Math.max),s.updateVal(Pr.data,"startx",t-f*n.boxMargin,Math.min),s.updateVal(Pr.data,"stopx",r+f*n.boxMargin,Math.max),l!=="activation"&&(s.updateVal(u,"startx",t-f*n.boxMargin,Math.min),s.updateVal(u,"stopx",r+f*n.boxMargin,Math.max),s.updateVal(Pr.data,"starty",e-f*n.boxMargin,Math.min),s.updateVal(Pr.data,"stopy",i+f*n.boxMargin,Math.max))}}this.sequenceItems.forEach(o())},insert:function(t,e,r,i){const n=Math.min(t,r),s=Math.max(t,r),a=Math.min(e,i),o=Math.max(e,i);this.updateVal(Pr.data,"startx",n,Math.min),this.updateVal(Pr.data,"starty",a,Math.min),this.updateVal(Pr.data,"stopx",s,Math.max),this.updateVal(Pr.data,"stopy",o,Math.max),this.updateBounds(n,a,s,o)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},zh=Kc.sectionFills,u2=Kc.sectionColours,MY=function(t,e,r){const i=G().journey;let n="";const s=i.height*2+i.diagramMarginY,a=r+s;let o=0,l="#CCC",h="black",u=0;for(const[f,d]of e.entries()){if(n!==d.section){l=zh[o%zh.length],u=o%zh.length,h=u2[o%u2.length];const m={x:f*i.taskMargin+f*i.width+Sn,y:50,text:d.section,fill:l,num:u,colour:h};ro.drawSection(t,m,i),n=d.section,o++}const p=d.people.reduce((m,b)=>(Ui[b]&&(m[b]=Ui[b]),m),{});d.x=f*i.taskMargin+f*i.width+Sn,d.y=a,d.width=i.diagramMarginX,d.height=i.diagramMarginY,d.colour=h,d.fill=l,d.num=u,d.actors=p,ro.drawTask(t,d,i),Pr.insert(d.x,d.y,d.x+d.width+i.taskMargin,300+5*30)}},f2={setConf:BY,draw:IY};let d2={};const NY=function(t){d2={...d2,...t}},RY=(t,e,r)=>{try{I.debug(`Renering svg for syntax error
|
|
1273
|
-
`);const i=_t("#"+e),n=i.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+r),i.attr("height",100),i.attr("width",500),i.attr("viewBox","768 0 912 512")}catch(i){I.error("Error while rendering info diagram"),I.error(PD(i))}},nc={setConf:NY,draw:RY},t4="flowchart-elk",OY=(t,e)=>{var r;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk")},FY=async()=>{const{diagram:t}=await import("./flowchart-elk-definition-170a3958-
|
|
1273
|
+
`);const i=_t("#"+e),n=i.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+r),i.attr("height",100),i.attr("width",500),i.attr("viewBox","768 0 912 512")}catch(i){I.error("Error while rendering info diagram"),I.error(PD(i))}},nc={setConf:NY,draw:RY},t4="flowchart-elk",OY=(t,e)=>{var r;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk")},FY=async()=>{const{diagram:t}=await import("./flowchart-elk-definition-170a3958-4dece62b.js");return{id:t4,diagram:t}},PY={id:t4,detector:OY,loader:FY},VY=PY,e4="timeline",YY=t=>t.match(/^\s*timeline/)!==null,zY=async()=>{const{diagram:t}=await import("./timeline-definition-8e5a9bc6-c996bf40.js");return{id:e4,diagram:t}},UY={id:e4,detector:YY,loader:zY},WY=UY,r4="mindmap",HY=t=>t.match(/^\s*mindmap/)!==null,qY=async()=>{const{diagram:t}=await import("./mindmap-definition-44684416-a4071c9f.js");return{id:r4,diagram:t}},GY={id:r4,detector:HY,loader:qY},$Y=GY;let p2=!1;const _o=()=>{p2||(p2=!0,oy(VY,WY,$Y),Ye("error",{db:{clear:()=>{}},styles:Eu,renderer:nc,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},t=>t.toLowerCase().trim()==="error"),Ye("---",{db:{clear:()=>{}},styles:Eu,renderer:nc,parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with unindented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ye("c4",{parser:GI,db:Fy,renderer:Nd,styles:Cy,init:t=>{Nd.setConf(t.c4)}},$I),Ye("class",{parser:Rd,db:fs,renderer:yN,styles:va,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,fs.clear()}},VM),Ye("classDiagram",{parser:Rd,db:fs,renderer:LR,styles:va,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,fs.clear()}},YM),Ye("er",{parser:BR,db:YR,renderer:QR,styles:_y},DR),Ye("gantt",{parser:bO,db:g0,renderer:JO,styles:xy},_O),Ye("info",{parser:tF,db:sF,renderer:oF,styles:vy},lF),Ye("pie",{parser:cF,db:bF,renderer:xF,styles:ky},hF),Ye("requirement",{parser:vF,db:zF,renderer:KF,styles:wy},kF),Ye("sequence",{parser:ZF,db:Qd,renderer:t2,styles:Ty,init:t=>{if(t.sequence||(t.sequence={}),t.sequence.arrowMarkerAbsolute=t.arrowMarkerAbsolute,"sequenceDiagram"in t)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");Qd.setWrap(t.wrap),t2.setConf(t.sequence)}},QF),Ye("state",{parser:e2,db:Ri,renderer:zV,styles:Fl,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Ri.clear()}},QP),Ye("stateDiagram",{parser:e2,db:Ri,renderer:uY,styles:Fl,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Ri.clear()}},JP),Ye("journey",{parser:fY,db:c2,renderer:f2,styles:Ey,init:t=>{f2.setConf(t.journey),c2.clear()}},dY),Ye("flowchart",{parser:jd,db:hi,renderer:Fh,styles:Ol,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,pO.setConf(t.flowchart),hi.clear(),hi.setGen("gen-1")}},JR),Ye("flowchart-v2",{parser:jd,db:hi,renderer:Fh,styles:Ol,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,gy({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),Fh.setConf(t.flowchart),hi.clear(),hi.setGen("gen-2")}},tO),Ye("gitGraph",{parser:gI,db:RI,renderer:WI,styles:qI},yI))};class r1{constructor(e,r){var i,n;this.txt=e,this.type="graph",this.detectTypeFailed=!1;const s=G();this.txt=e;try{this.type=W1(e,s)}catch(l){this.handleError(l,r),this.type="error",this.detectTypeFailed=!0}const a=Ly(this.type);I.debug("Type "+this.type),this.db=a.db,(n=(i=this.db).clear)==null||n.call(i),this.renderer=a.renderer,this.parser=a.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=l=>o(bD(l,this.db)),this.parser.parser.yy=this.db,a.init&&(a.init(s),I.info("Initialized diagram "+this.type,s)),this.txt+=`
|
|
1274
1274
|
`,this.parse(this.txt,r)}parse(e,r){var i,n;if(this.detectTypeFailed)return!1;try{return e=e+`
|
|
1275
1275
|
`,(n=(i=this.db).clear)==null||n.call(i),this.parser.parse(e),!0}catch(s){this.handleError(s,r)}return!1}handleError(e,r){if(r===void 0)throw e;if(q1(e)){r(e.str,e.hash);return}r(e)}getParser(){return this.parser}getType(){return this.type}}const C0=(t,e)=>{const r=W1(t,G());try{Ly(r)}catch{const n=vD(r);if(!n)throw new Error(`Diagram ${r} not found.`);return n().then(({diagram:s})=>(Ye(r,s,void 0),new r1(t,e)))}return new r1(t,e)},S0=r1,jY="graphics-document document";function XY(t,e){t.attr("role",jY),bs(e)||t.attr("aria-roledescription",e)}function KY(t,e,r,i){if(t.insert!==void 0)if(e||r){if(r){const n="chart-desc-"+i;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){const n="chart-title-"+i;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}else return}const A0=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],i4="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",n4="sandbox",s4="loose",ZY="http://www.w3.org/2000/svg",a4="http://www.w3.org/1999/xlink",o4="http://www.w3.org/1999/xhtml",QY="100%",JY="100%",tz="border:0;margin:0;",ez="margin:0",rz="allow-top-navigation-by-user-activation allow-popups",iz='The "iframe" tag is not supported by your browser.',l4=["foreignobject"],c4=["dominant-baseline"];function nz(t,e){return _o(),new S0(t,e).parse(t,e)}async function sz(t,e){return _o(),(await C0(t,e)).parse(t,e)}const h4=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),e},L0=function(t){let e=t;return e=e.replace(/fl°°/g,"&#"),e=e.replace(/fl°/g,"&"),e=e.replace(/¶ß/g,";"),e},g2=(t,e,r=[])=>`
|
|
1276
1276
|
.${t} ${e} { ${r.join(" !important; ")} !important; }`,az=(t,e,r={})=>{var i;let n="";if(t.themeCSS!==void 0&&(n+=`
|
|
1277
1277
|
${t.themeCSS}`),t.fontFamily!==void 0&&(n+=`
|
|
1278
1278
|
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=`
|
|
1279
|
-
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!bs(r)&&A0.includes(e)){const l=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const h in r){const u=r[h];bs(u.styles)||l.forEach(f=>{n+=g2(u.id,f,u.styles)}),bs(u.textStyles)||(n+=g2(u.id,"tspan",u.textStyles))}}return n},u4=(t,e,r,i)=>{const n=az(t,e,r),s=aI(e,n,t.themeVariables);return
|
|
1279
|
+
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!bs(r)&&A0.includes(e)){const l=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const h in r){const u=r[h];bs(u.styles)||l.forEach(f=>{n+=g2(u.id,f,u.styles)}),bs(u.textStyles)||(n+=g2(u.id,"tspan",u.textStyles))}}return n},u4=(t,e,r,i)=>{const n=az(t,e,r),s=aI(e,n,t.themeVariables);return E4(C4(`${i}{${s}}`),S4)},f4=(t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),i=L0(i),i=i.replace(/<br>/g,"<br/>"),i},d4=(t="",e)=>{const r=e?e.viewBox.baseVal.height+"px":JY,i=btoa('<body style="'+ez+'">'+t+"</body>");return`<iframe style="width:${QY};height:${r};${tz}" src="data:text/html;base64,${i}" sandbox="${rz}">
|
|
1280
1280
|
${iz}
|
|
1281
1281
|
</iframe>`},sc=(t,e,r,i,n)=>{const s=t.append("div");s.attr("id",r),i&&s.attr("style",i);const a=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",ZY);return n&&a.attr("xmlns:xlink",n),a.append("g"),t};function ac(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const p4=(t,e,r,i)=>{var n,s,a;(n=t.getElementById(e))==null||n.remove(),(s=t.getElementById(r))==null||s.remove(),(a=t.getElementById(i))==null||a.remove()},oz=function(t,e,r,i){var n,s,a,o;_o(),Wa();const l=jt.detectInit(e);l&&(Vn(l),G1(l));const h=G();I.debug(h),e.length>((h==null?void 0:h.maxTextSize)??5e4)&&(e=i4),e=e.replace(/\r\n?/g,`
|
|
1282
1282
|
`);const u="#"+t,f="i"+t,d="#"+f,p="d"+t,m="#"+p;let b=_t("body");const x=h.securityLevel===n4,k=h.securityLevel===s4,v=h.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),x){const nt=ac(_t(i),f);b=_t(nt.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=_t(i);sc(b,t,p,`font-family: ${v}`,a4)}else{if(p4(document,t,p,f),x){const nt=ac(_t("body"),f);b=_t(nt.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=_t("body");sc(b,t,p)}e=h4(e);let B,R;try{if(B=C0(e),"then"in B)throw new Error("Diagram is a promise. Use renderAsync.")}catch(nt){B=new S0("error"),R=nt}const P=b.select(m).node(),V=B.type,O=P.firstChild,F=O.firstChild,C=A0.includes(V)?B.renderer.getClasses(e,B):{},S=u4(h,V,C,u),E=document.createElement("style");E.innerHTML=S,O.insertBefore(E,F);try{B.renderer.draw(e,t,Rl,B)}catch(nt){throw nc.draw(e,t,Rl),nt}const _=b.select(`${m} svg`),w=(s=(n=B.db).getAccTitle)==null?void 0:s.call(n),g=(o=(a=B.db).getAccDescription)==null?void 0:o.call(a);g4(V,_,w,g),b.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",o4);let D=b.select(m).node().innerHTML;if(I.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),D=f4(D,x,Ke(h.arrowMarkerAbsolute)),x){const nt=b.select(m+" svg").node();D=d4(D,nt)}else k||(D=Na.sanitize(D,{ADD_TAGS:l4,ADD_ATTR:c4}));if(r!==void 0)switch(V){case"flowchart":case"flowchart-v2":r(D,hi.bindFunctions);break;case"gantt":r(D,g0.bindFunctions);break;case"class":case"classDiagram":r(D,fs.bindFunctions);break;default:r(D)}else I.debug("CB = undefined!");w3();const N=_t(x?d:m).node();if(N&&"remove"in N&&N.remove(),R)throw R;return D},lz=async function(t,e,r,i){var n,s,a,o;_o(),Wa();const l=jt.detectInit(e);l&&(Vn(l),G1(l));const h=G();I.debug(h),e.length>((h==null?void 0:h.maxTextSize)??5e4)&&(e=i4),e=e.replace(/\r\n?/g,`
|
|
@@ -1287,12 +1287,12 @@ ${t.themeCSS}`),t.fontFamily!==void 0&&(n+=`
|
|
|
1287
1287
|
fill: transparent;
|
|
1288
1288
|
stroke: transparent;
|
|
1289
1289
|
}
|
|
1290
|
-
`});const xz=({children:t,...e})=>{const r=Wh.useRef(null);return Wh.useEffect(()=>{Ar.render("mermaid",t,i=>{r.current&&(r.current.innerHTML=i)})},[t]),Po(_z,{ref:r,...e})},vz=m2(xz)(({theme:t})=>({"#mermaid .node rect":{fill:t.palette.secondary.light,stroke:t.palette.secondary.border},"#mermaid .unleash-logo":{padding:t.spacing(1)}})),kz=t=>t[0]*1e3>new Date().getTime()-6e5,wz=t=>{var n,s;const r=(t.values||[]).filter(a=>kz(a)),i=r.length?parseFloat(r[r.length-1][1]):0;return{label:t.label,reqs:i,type:b2((s=(n=t.metric)==null?void 0:n.endpoint)==null?void 0:s.split("/")[2])}},Tz=(t,e)=>{var i;const r=e.label+e.type;return t[r]={...e,reqs:e.reqs+(((i=t[r])==null?void 0:i.reqs)??0)},t},Ez=t=>{var i,n;const r=(((n=(i=t==null?void 0:t.data)==null?void 0:i.result)==null?void 0:n.map(s=>{var a;return{...s,label:b2((a=s.metric)==null?void 0:a.appName)}}).filter(s=>s.label!=="unknown"))||[]).map(wz).reduce(Tz,{});return Object.values(r).map(s=>({...s,reqs:s.reqs.toFixed(2)})).filter(s=>s.reqs!=="0.00")??[]},y2=()=>{
|
|
1290
|
+
`});const xz=({children:t,...e})=>{const r=Wh.useRef(null);return Wh.useEffect(()=>{Ar.render("mermaid",t,i=>{r.current&&(r.current.innerHTML=i)})},[t]),Po(_z,{ref:r,...e})},vz=m2(xz)(({theme:t})=>({"#mermaid .node rect":{fill:t.palette.secondary.light,stroke:t.palette.secondary.border},"#mermaid .unleash-logo":{padding:t.spacing(1)}})),kz=t=>t[0]*1e3>new Date().getTime()-6e5,wz=t=>{var n,s;const r=(t.values||[]).filter(a=>kz(a)),i=r.length?parseFloat(r[r.length-1][1]):0;return{label:t.label,reqs:i,type:b2((s=(n=t.metric)==null?void 0:n.endpoint)==null?void 0:s.split("/")[2])}},Tz=(t,e)=>{var i;const r=e.label+e.type;return t[r]={...e,reqs:e.reqs+(((i=t[r])==null?void 0:i.reqs)??0)},t},Ez=t=>{var i,n;const r=(((n=(i=t==null?void 0:t.data)==null?void 0:i.result)==null?void 0:n.map(s=>{var a;return{...s,label:b2((a=s.metric)==null?void 0:a.appName)}}).filter(s=>s.label!=="unknown"))||[]).map(wz).reduce(Tz,{});return Object.values(r).map(s=>({...s,reqs:s.reqs.toFixed(2)})).filter(s=>s.reqs!=="0.00")??[]},y2=()=>{A4("Network - Overview");const{themeMode:t}=L4(),{metrics:e}=R4(),r=Wh.useMemo(()=>Ez(e),[e]),i=`
|
|
1291
1291
|
graph TD
|
|
1292
1292
|
subgraph _[ ]
|
|
1293
1293
|
direction BT
|
|
1294
|
-
Unleash(<img src='${
|
|
1294
|
+
Unleash(<img src='${B4(t==="dark"?M4:N4)}' width='72' height='72' class='unleash-logo'/><br/>Unleash)
|
|
1295
1295
|
${r.map(({label:n,reqs:s,type:a},o)=>`app-${o}("${n.replaceAll('"',""")}") -- ${s} req/s<br>${a} --> Unleash`).join(`
|
|
1296
1296
|
`)}
|
|
1297
1297
|
end
|
|
1298
|
-
`;return Po(
|
|
1298
|
+
`;return Po(D4,{condition:r.length===0,show:Po(I4,{severity:"warning",children:"No data available."}),elseShow:Po(vz,{children:i})})},Nz=Object.freeze(Object.defineProperty({__proto__:null,NetworkOverview:y2,default:y2},Symbol.toStringTag,{value:"Module"}));export{ji as C,Nz as N,ee as _,Vc as a,dn as b,O1 as c,Mz as d,Ke as e,Xt as f,G as g,lR as h,AN as i,Zr as j,Cr as k,I as l,_R as m,Us as n,lI as o,jd as p,Sy as q,Lr as r,_t as s,zt as t,Zt as u,nu as v,Ur as w};
|