@kong-ui-public/analytics-chart 10.26.6 → 10.26.7-pr.3801.98993c6f8.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/vitals-chart.es.js +263 -263
- package/dist/vitals-chart.umd.js +9 -9
- package/package.json +4 -4
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { computed as $, getCurrentInstance as Rh, onUnmounted as gr, shallowRef as Nn, onMounted as pr, onBeforeUnmount as
|
|
1
|
+
import { computed as $, getCurrentInstance as Rh, onUnmounted as gr, shallowRef as Nn, onMounted as pr, onBeforeUnmount as b0, watch as Ee, inject as Jo, nextTick as v0, isRef as RM, toRefs as PM, customRef as EM, toValue as Xt, getCurrentScope as IM, onScopeDispose as LM, ref as Se, unref as ct, watchEffect as wp, defineComponent as Ve, openBlock as ot, createElementBlock as wt, createElementVNode as Tt, toDisplayString as kt, createVNode as Ce, Fragment as er, renderList as Fr, normalizeClass as Sn, normalizeStyle as Br, createBlock as le, createCommentVNode as de, resolveComponent as vn, createSlots as x0, withCtx as _e, useTemplateRef as Os, reactive as ta, toRef as jt, Teleport as w0, h as th, toRaw as eh, version as NM, isProxy as S0, provide as Sp, createTextVNode as xn, resolveDynamicComponent as FM, renderSlot as Is, withKeys as zM } from "vue";
|
|
2
2
|
import { createI18n as UM, i18nTComponent as BM } from "@kong-ui-public/i18n";
|
|
3
3
|
import { CloseIcon as HM, DragIcon as WM, WarningIcon as YM, EqualIcon as $M, InfoIcon as VM } from "@kong/icons";
|
|
4
4
|
import { buildDeltaMapping as qM, calculateChange as jM, changePolarity as GM, defineIcon as KM, metricChange as Tp, useTrendRange as XM } from "@kong-ui-public/analytics-metric-provider";
|
|
5
|
-
const ZM = "No data in the current time frame", QM = "Once there is traffic, it will display here", JM = "Grouped value limit exceeded, showing the top {maxReturned}", tD = "no-name", eD = "debug", nD = "Total", iD = "Open in explorer", rD = "More actions", sD = "Requests that do not have a value for the selected group", oD = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}", "token count": "token{plural}", "tokens/minute": "tpm", "%": "%", "ops/minute": "ops/minute" }, aD = { dataError: "Error loading data", noDataRange: "No data in selected range", noDataRetry: "Please adjust the time period and try again", timeRangeSelected: "selected", exportPreview: "Export preview", exportAsCsv: "Export as CSV", exportTimeRange: "Time range", exportDescription: "Exports a CSV of the data represented in the chart.", maximumRecordAmount: "The number of groups is limited to {value}", previewRows: "Previewing {rowsMax} of {rowsTotal} row{plural}", downloadButton: "Export", cancelButton: "Cancel", UtcOffset: "UTC offset", Timestamp: "Timestamp" }, lD = { forbidden: { message: "Data request forbidden", details: "To access this data, either filter for an entity you have access to or request analytics viewer access from your administrator." }, time_range_exceeded: { message: "Time range exceeded", details: "The time range for this report is outside of your organization's data retention period" }, timeout: { message: "Data request timed out", details: "We're sorry, the request timed out. Please consider using a shorter time period or try again later." }, canceled: { message: "Request canceled" }, other: { message: "Bad request" } }, cD = { datapointValueDisplay: "{value} {unit}" }, uD = { ai_count: "LLM request count", ai_gateway: "AI gateway", ai_gateway_agent: "AI gateway agent", ai_gateway_consumer: "AI gateway consumer", ai_gateway_data_plane_node: "AI gateway data plane node", ai_gateway_mcp_server: "AI gateway MCP server", ai_gateway_model: "AI gateway model", ai_plugin: "AI plugin", ai_provider: "Provider", ai_request_model: "Request model", ai_response_model: "Response model", error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", requests_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", kong_internal_latency_average: "Kong internal latency (avg)", kong_internal_latency_p99: "Kong internal latency (p99)", kong_internal_latency_p95: "Kong internal latency (p95)", kong_internal_latency_p50: "Kong internal latency (p50)", llm_cache_status: "Cache status", llm_embeddings_model: "Embeddings model", llm_embeddings_provider: "Embeddings provider", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_average: "Response size (avg)", response_size_sum: "Response size (sum)", response_source: "Response source", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_average: "Request size (avg)", request_size_sum: "Request size (sum)", control_plane: "Control plane", control_plane_group: "Control plane group", consumer: "Consumer", oidc_credential: "OIDC credential", country_code: "Country", country: "Country", data_plane_node: "Data plane node", data_plane_node_version: "Data plane node version", api_package: "API package", api_product: "API product", api_product_version: "API product version", portal: "Portal", realm: "Realm", runtime_group: "Runtime group", gateway_service: "Gateway service", route: "Route", application: "Application", status_code: "Status code", status_code_grouped: "Status code (grouped)", total_tokens_per_minute: "Total tokens per minute", upstream_status_code: "Upstream status code", upstream_status_code_grouped: "Upstream status code group", time: "Time", Service: "Service", ServiceVersion: "Service version", Route: "Route", Application: "Application", RuntimeGroup: "Runtime group", GatewayService: "Gateway service", StatusCode: "Status code", CodeClass: "Status code (grouped)", Time: "Time", API_PRODUCT: "Api product", API_PRODUCT_VERSION: "Api product version", RUNTIME_GROUP: "Runtime group", GATEWAY_SERVICE: "Gateway service", ROUTE: "Route", APPLICATION: "Application", STATUS_CODE: "Status code", STATUS_CODE_GROUPED: "Status code (grouped)", TIME: "Time", ORGANIZATION: "Organization", TotalRequests: "Request count", RequestsPerMinute: "Requests per minute", LatencyP99: "Response latency (p99)", LatencyP95: "Response latency (p95)", LatencyP50: "Response latency (p50)", LatencyAverage: "Response latency (avg)", UpstreamLatencyP99: "Upstream latency (p99)", UpstreamLatencyP95: "Upstream latency (p95)", UpstreamLatencyP50: "Upstream latency (p50)", UpstreamLatencyAverage: "Upstream latency (avg)", KongLatencyP99: "Kong latency (p99)", KongLatencyP95: "Kong latency (p95)", KongLatencyP50: "Kong latency (p50)", KongLatencyAverage: "Kong latency (avg)", ResponseSizeP99: "Response size (p99)", ResponseSizeP95: "Response size (p95)", ResponseSizeP50: "Response size (p50)", RequestSizeP99: "Request size (p99)", RequestSizeP95: "Request size (p95)", RequestSizeP50: "Request size (p50)", SuccessfulRequests: "Successful requests", SUCCESS: "Successful requests", FailedRequests: "Failed requests", FAILURE: "Failed requests", "5XX": "5xx", "4XX": "4xx", "3XX": "3xx", "2XX": "2xx", "1XX": "1xx", REQUEST_COUNT: "Request count", REQUEST_PER_MINUTE: "Requests per minute", RESPONSE_LATENCY_P99: "Response latency", RESPONSE_LATENCY_P95: "Response latency", RESPONSE_LATENCY_P50: "Response latency", RESPONSE_SIZE_P99: "Response size (p99)", RESPONSE_SIZE_P95: "Response size (p95)", RESPONSE_SIZE_P50: "Response size (p50)", REQUEST_SIZE_P99: "Request size (p99)", REQUEST_SIZE_P95: "Request size (p95)", REQUEST_SIZE_P50: "Request size (p50)", CONTROL_PLANE: "Control plane", ____OTHER____: "Others", ai_request_count: "Request count", total_tokens: "Total token count", prompt_tokens: "Prompt token count", completion_tokens: "Completion token count", cost: "Costs", llm_cache_embeddings_latency_average: "Embeddings latency (avg)", llm_cache_fetch_latency_average: "Fetch latency (avg)", llm_latency_average: "Llm latency (avg)", "threshold-warning": "Warning threshold: {value}", "threshold-error": "Error threshold: {value}", "thatreshold-neutral": "Alert threshold: {value}", api: "API", vulnerability_count: "Vulnerability count", a2a_latency_average: "A2A latency (avg)", a2a_response_size_sum: "A2A response size (sum)", a2a_context_id: "A2A context ID", a2a_error: "A2A error", a2a_method: "A2A method", a2a_task_id: "A2A task ID", mcp_error: "MCP error", mcp_method: "MCP method", mcp_response_size_sum: "MCP response size (sum)", mcp_session_id: "MCP session ID", mcp_tool_name: "MCP tool name", mcp_response_body_size_sum: "MCP response size (sum)", control_plane_count: "Control plane count", service_count: "Gateway service count", "record_bytes:sum": "Record size (sum)", "record_count:sum": "Record count (sum)", "request_count:sum": "Request count (sum)", route_count: "Route count", consumer_count: "Consumer count", plugin_count: "Plugin count", node_count: "Data plane node count", principal: "Principal", virtual_cluster_id: "Virtual cluster", backend_cluster_id: "Backend cluster", listener_id: "Listener", principal_name: "Principal name", principal_type: "Principal type", request_type: "Request type", topic_name: "Topic name", partition_index: "Partition index", api_key: "API key", data_plane_group: "Data plane group", managed_cache: "Managed cache", network: "Network", provider: "Provider", provider_region: "Provider region", region: "Region", cache_eviction_rate: "Cache eviction rate", cache_expiration_rate: "Cache expiration rate", cache_items_average: "Cache items (avg)", cache_memory_utilization_max: "Cache memory utilization (max)", cache_status: "Cache status", cache_hit_rate: "Cache hit rate", time_to_first_token_average: "Time to first token (avg)", time_per_token_average: "Time per token (avg)" }, dD = { cache_hit_rate: "Cache hit rate {unit}", error_rate: "Error rate in {unit}", request_count: "Request count", request_per_minute: "Requests per minute", requests_per_minute: "Requests per minute", latency_in: "Latency in {unit}", size_in: "Size in {unit}", response_latency_average: "Response latency (avg) in {unit}", response_latency_p99: "Response latency (p99) in {unit}", response_latency_p95: "Response latency (p95) in {unit}", response_latency_p50: "Response latency (p50) in {unit}", upstream_latency_p99: "Upstream latency (p99) in {unit}", upstream_latency_p95: "Upstream latency (p95) in {unit}", upstream_latency_p50: "Upstream latency (p50) in {unit}", kong_latency_p99: "Kong latency (p99) in {unit}", kong_latency_p95: "Kong latency (p95) in {unit}", kong_latency_p50: "Kong latency (p50) in {unit}", kong_internal_latency_average: "Kong internal latency (avg) in {unit}", kong_internal_latency_p99: "Kong internal latency (p99) in {unit}", kong_internal_latency_p95: "Kong internal latency (p95) in {unit}", kong_internal_latency_p50: "Kong internal latency (p50) in {unit}", response_size_p99: "Response size (p99) in {unit}", response_size_p95: "Response size (p95) in {unit}", response_size_p50: "Response size (p50) in {unit}", request_size_p99: "Request size (p99) in {unit}", request_size_p95: "Request size (p95) in {unit}", request_size_p50: "Request size (p50) in {unit}", request_size_sum: "Request size (sum) in {unit}", REQUEST_COUNT: "Request count", REQUEST_PER_MINUTE: "Requests per minute", RESPONSE_LATENCY_P99: "Response latency (p99) in {unit}", RESPONSE_LATENCY_P95: "Response latency (p95) in {unit}", RESPONSE_LATENCY_P50: "Response latency (p50) in {unit}", RESPONSE_SIZE_P99: "Response size (p99) in {unit}", RESPONSE_SIZE_P95: "Response size (p95) in {unit}", RESPONSE_SIZE_P50: "Response size (p50) in {unit}", REQUEST_SIZE_P99: "Request size (p99) in {unit}", REQUEST_SIZE_P95: "Request size (p95) in {unit}", REQUEST_SIZE_P50: "Request size (p50) in {unit}", TotalRequests: "Request count", RequestsPerMinute: "Requests per minute", LatencyP99: "Response latency (p99) in {unit}", LatencyP95: "Response latency (p95) in {unit}", LatencyP50: "Response latency (p50) in {unit}", LatencyAverage: "Response latency (avg) in {unit}", UpstreamLatencyP99: "Upstream latency (p99) in {unit}", UpstreamLatencyP95: "Upstream latency (p95) in {unit}", UpstreamLatencyP50: "Upstream latency (p50) in {unit}", UpstreamLatencyAverage: "Upstream latency (avg) in {unit}", KongLatencyP99: "Kong latency (p99) in {unit}", KongLatencyP95: "Kong latency (p95) in {unit}", KongLatencyP50: "Kong latency (p50) in {unit}", KongLatencyAverage: "Kong latency (avg) in {unit}", ResponseSizeP99: "Response size (p99) in {unit}", ResponseSizeP95: "Response size (p95) in {unit}", ResponseSizeP50: "Response size (p50) in {unit}", RequestSizeP99: "Request size (p99) in {unit}", RequestSizeP95: "Request size (p95) in {unit}", RequestSizeP50: "Request size (p50) in {unit}", ai_request_count: "Request count", total_tokens: "Total token count", prompt_tokens: "Prompt token count", completion_tokens: "Completion token count", cost: "Costs", llm_cache_embeddings_latency_average: "Embeddings latency (avg)", llm_cache_fetch_latency_average: "Fetch latency (avg)", llm_latency_average: "Llm latency (avg)", api: "API", a2a_latency_average: "A2A latency (avg) in {unit}", a2a_response_size_sum: "A2A response size (sum) in {unit}", a2a_context_id: "A2A context ID", a2a_error: "A2A error", a2a_method: "A2A method", a2a_task_id: "A2A task ID", mcp_response_size_sum: "MCP response size (sum) in {unit}", mcp_response_body_size_sum: "MCP response body size (sum) in {unit}", control_plane_count: "Control plane count", service_count: "Gateway service count", route_count: "Route count", consumer_count: "Consumer count", plugin_count: "Plugin count", node_count: "Data plane node count", cache_eviction_rate: "Cache eviction rate in {unit}", cache_expiration_rate: "Cache expiration rate in {unit}", cache_items_average: "Cache items (avg)", cache_memory_utilization_max: "Cache memory utilization (max) in {unit}", cached_tokens: "Cached tokens", time_to_first_token_average: "Time to first token (avg)", time_per_token_average: "Time per token (avg)", total_tokens_per_minute: "Total tokens per minute" }, hD = { tenSecondly: "@timestamp per 10 seconds", thirtySecondly: "@timestamp per 30 seconds", minutely: "@timestamp per minute", fiveMinutely: "@timestamp per 5 minutes", tenMinutely: "@timestamp per 10 minutes", thirtyMinutely: "@timestamp per 30 minutes", hourly: "@timestamp per hour", twoHourly: "@timestamp per 2 hours", twelveHourly: "@timestamp per 12 hours", daily: "@timestamp per day", weekly: "@timestamp per week" }, fD = { platform: "@timestamp created at" }, gD = { nameLabel: "Name", defaultEmptyStateTitle: "No data to display", defaultErrorStateTitle: "Something went wrong", errors: { meta: "Error: response must contain 'meta'", display: "Error: 'display' response incorrectly formatted (must have at least one key)", metricNames: "Error: 'metricNames' response incorrectly formatted (must have at least one entry)" } }, pD = { valueError: "Invalid configuration", trend: { not_available: "Not available" } }, mD = "Time range", _D = "No data", yD = { zoom: "Zoom in", view_requests: "View requests", cancel: "Cancel", explore: "Explore" }, bD = { from: "From", to: "To" }, vD = {
|
|
5
|
+
const ZM = "No data in the current time frame", QM = "Once there is traffic, it will display here", JM = "Grouped value limit exceeded, showing the top {maxReturned}", tD = "no-name", eD = "debug", nD = "Total", iD = "Open in explorer", rD = "More actions", sD = "Requests that do not have a value for the selected group", oD = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}", "token count": "token{plural}", "tokens/minute": "tpm", "%": "%", "ops/minute": "ops/minute" }, aD = { dataError: "Error loading data", noDataRange: "No data in selected range", noDataRetry: "Please adjust the time period and try again", timeRangeSelected: "selected", exportPreview: "Export preview", exportAsCsv: "Export as CSV", exportTimeRange: "Time range", exportDescription: "Exports a CSV of the data represented in the chart.", maximumRecordAmount: "The number of groups is limited to {value}", previewRows: "Previewing {rowsMax} of {rowsTotal} row{plural}", downloadButton: "Export", cancelButton: "Cancel", UtcOffset: "UTC offset", Timestamp: "Timestamp" }, lD = { forbidden: { message: "Data request forbidden", details: "To access this data, either filter for an entity you have access to or request analytics viewer access from your administrator." }, time_range_exceeded: { message: "Time range exceeded", details: "The time range for this report is outside of your organization's data retention period" }, timeout: { message: "Data request timed out", details: "We're sorry, the request timed out. Please consider using a shorter time period or try again later." }, canceled: { message: "Request canceled" }, other: { message: "Bad request" } }, cD = { datapointValueDisplay: "{value} {unit}" }, uD = { ai_count: "LLM request count", ai_gateway: "AI gateway", ai_gateway_agent: "AI gateway agent", ai_gateway_consumer: "AI gateway consumer", ai_gateway_data_plane_node: "AI gateway data plane node", ai_gateway_mcp_server: "AI gateway MCP server", ai_gateway_model: "AI gateway model", ai_plugin: "AI plugin", ai_provider: "Provider", ai_request_model: "Request model", ai_response_model: "Response model", error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", requests_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", kong_internal_latency_average: "Kong internal latency (avg)", kong_internal_latency_p99: "Kong internal latency (p99)", kong_internal_latency_p95: "Kong internal latency (p95)", kong_internal_latency_p50: "Kong internal latency (p50)", llm_cache_status: "Cache status", llm_embeddings_model: "Embeddings model", llm_embeddings_provider: "Embeddings provider", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_average: "Response size (avg)", response_size_sum: "Response size (sum)", response_source: "Response source", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_average: "Request size (avg)", request_size_sum: "Request size (sum)", control_plane: "Control plane", control_plane_group: "Control plane group", consumer: "Consumer", oidc_credential: "OIDC credential", country_code: "Country", country: "Country", data_plane_node: "Data plane node", data_plane_node_version: "Data plane node version", api_package: "API package", api_product: "API product", api_product_version: "API product version", portal: "Portal", realm: "Realm", runtime_group: "Runtime group", gateway_service: "Gateway service", route: "Route", application: "Application", status_code: "Status code", status_code_grouped: "Status code (grouped)", total_tokens_per_minute: "Total tokens per minute", upstream_status_code: "Upstream status code", upstream_status_code_grouped: "Upstream status code group", time: "Time", Service: "Service", ServiceVersion: "Service version", Route: "Route", Application: "Application", RuntimeGroup: "Runtime group", GatewayService: "Gateway service", StatusCode: "Status code", CodeClass: "Status code (grouped)", Time: "Time", API_PRODUCT: "Api product", API_PRODUCT_VERSION: "Api product version", RUNTIME_GROUP: "Runtime group", GATEWAY_SERVICE: "Gateway service", ROUTE: "Route", APPLICATION: "Application", STATUS_CODE: "Status code", STATUS_CODE_GROUPED: "Status code (grouped)", TIME: "Time", ORGANIZATION: "Organization", TotalRequests: "Request count", RequestsPerMinute: "Requests per minute", LatencyP99: "Response latency (p99)", LatencyP95: "Response latency (p95)", LatencyP50: "Response latency (p50)", LatencyAverage: "Response latency (avg)", UpstreamLatencyP99: "Upstream latency (p99)", UpstreamLatencyP95: "Upstream latency (p95)", UpstreamLatencyP50: "Upstream latency (p50)", UpstreamLatencyAverage: "Upstream latency (avg)", KongLatencyP99: "Kong latency (p99)", KongLatencyP95: "Kong latency (p95)", KongLatencyP50: "Kong latency (p50)", KongLatencyAverage: "Kong latency (avg)", ResponseSizeP99: "Response size (p99)", ResponseSizeP95: "Response size (p95)", ResponseSizeP50: "Response size (p50)", RequestSizeP99: "Request size (p99)", RequestSizeP95: "Request size (p95)", RequestSizeP50: "Request size (p50)", SuccessfulRequests: "Successful requests", SUCCESS: "Successful requests", FailedRequests: "Failed requests", FAILURE: "Failed requests", "5XX": "5xx", "4XX": "4xx", "3XX": "3xx", "2XX": "2xx", "1XX": "1xx", REQUEST_COUNT: "Request count", REQUEST_PER_MINUTE: "Requests per minute", RESPONSE_LATENCY_P99: "Response latency", RESPONSE_LATENCY_P95: "Response latency", RESPONSE_LATENCY_P50: "Response latency", RESPONSE_SIZE_P99: "Response size (p99)", RESPONSE_SIZE_P95: "Response size (p95)", RESPONSE_SIZE_P50: "Response size (p50)", REQUEST_SIZE_P99: "Request size (p99)", REQUEST_SIZE_P95: "Request size (p95)", REQUEST_SIZE_P50: "Request size (p50)", CONTROL_PLANE: "Control plane", ____OTHER____: "Others", ai_request_count: "Request count", total_tokens: "Total token count", prompt_tokens: "Prompt token count", completion_tokens: "Completion token count", cost: "Costs", llm_cache_embeddings_latency_average: "Embeddings latency (avg)", llm_cache_fetch_latency_average: "Fetch latency (avg)", llm_latency_average: "Llm latency (avg)", "threshold-warning": "Warning threshold: {value}", "threshold-error": "Error threshold: {value}", "thatreshold-neutral": "Alert threshold: {value}", api: "API", vulnerability_count: "Vulnerability count", a2a_latency_average: "A2A latency (avg)", a2a_response_size_sum: "A2A response size (sum)", a2a_context_id: "A2A context ID", a2a_error: "A2A error", a2a_method: "A2A method", a2a_task_id: "A2A task ID", mcp_error: "MCP error", mcp_method: "MCP method", mcp_latency_average: "MCP latency (avg)", mcp_latency_p99: "MCP latency (p99)", mcp_latency_p95: "MCP latency (p95)", mcp_latency_p50: "MCP latency (p50)", mcp_response_size_sum: "MCP response size (sum)", mcp_session_id: "MCP session ID", mcp_tool_name: "MCP tool name", mcp_response_body_size_sum: "MCP response size (sum)", control_plane_count: "Control plane count", service_count: "Gateway service count", "record_bytes:sum": "Record size (sum)", "record_count:sum": "Record count (sum)", "request_count:sum": "Request count (sum)", route_count: "Route count", consumer_count: "Consumer count", plugin_count: "Plugin count", node_count: "Data plane node count", principal: "Principal", virtual_cluster_id: "Virtual cluster", backend_cluster_id: "Backend cluster", listener_id: "Listener", principal_name: "Principal name", principal_type: "Principal type", request_type: "Request type", topic_name: "Topic name", partition_index: "Partition index", api_key: "API key", data_plane_group: "Data plane group", managed_cache: "Managed cache", network: "Network", provider: "Provider", provider_region: "Provider region", region: "Region", cache_eviction_rate: "Cache eviction rate", cache_expiration_rate: "Cache expiration rate", cache_items_average: "Cache items (avg)", cache_memory_utilization_max: "Cache memory utilization (max)", cache_status: "Cache status", cache_hit_rate: "Cache hit rate", time_to_first_token_average: "Time to first token (avg)", time_to_first_token_p99: "Time to first token (p99)", time_to_first_token_p95: "Time to first token (p95)", time_to_first_token_p50: "Time to first token (p50)", time_per_token_average: "Time per token (avg)", time_per_token_p99: "Time per token (p99)", time_per_token_p95: "Time per token (p95)", time_per_token_p50: "Time per token (p50)" }, dD = { cache_hit_rate: "Cache hit rate {unit}", error_rate: "Error rate in {unit}", request_count: "Request count", request_per_minute: "Requests per minute", requests_per_minute: "Requests per minute", latency_in: "Latency in {unit}", size_in: "Size in {unit}", response_latency_average: "Response latency (avg) in {unit}", response_latency_p99: "Response latency (p99) in {unit}", response_latency_p95: "Response latency (p95) in {unit}", response_latency_p50: "Response latency (p50) in {unit}", upstream_latency_p99: "Upstream latency (p99) in {unit}", upstream_latency_p95: "Upstream latency (p95) in {unit}", upstream_latency_p50: "Upstream latency (p50) in {unit}", kong_latency_p99: "Kong latency (p99) in {unit}", kong_latency_p95: "Kong latency (p95) in {unit}", kong_latency_p50: "Kong latency (p50) in {unit}", kong_internal_latency_average: "Kong internal latency (avg) in {unit}", kong_internal_latency_p99: "Kong internal latency (p99) in {unit}", kong_internal_latency_p95: "Kong internal latency (p95) in {unit}", kong_internal_latency_p50: "Kong internal latency (p50) in {unit}", response_size_p99: "Response size (p99) in {unit}", response_size_p95: "Response size (p95) in {unit}", response_size_p50: "Response size (p50) in {unit}", request_size_p99: "Request size (p99) in {unit}", request_size_p95: "Request size (p95) in {unit}", request_size_p50: "Request size (p50) in {unit}", request_size_sum: "Request size (sum) in {unit}", REQUEST_COUNT: "Request count", REQUEST_PER_MINUTE: "Requests per minute", RESPONSE_LATENCY_P99: "Response latency (p99) in {unit}", RESPONSE_LATENCY_P95: "Response latency (p95) in {unit}", RESPONSE_LATENCY_P50: "Response latency (p50) in {unit}", RESPONSE_SIZE_P99: "Response size (p99) in {unit}", RESPONSE_SIZE_P95: "Response size (p95) in {unit}", RESPONSE_SIZE_P50: "Response size (p50) in {unit}", REQUEST_SIZE_P99: "Request size (p99) in {unit}", REQUEST_SIZE_P95: "Request size (p95) in {unit}", REQUEST_SIZE_P50: "Request size (p50) in {unit}", TotalRequests: "Request count", RequestsPerMinute: "Requests per minute", LatencyP99: "Response latency (p99) in {unit}", LatencyP95: "Response latency (p95) in {unit}", LatencyP50: "Response latency (p50) in {unit}", LatencyAverage: "Response latency (avg) in {unit}", UpstreamLatencyP99: "Upstream latency (p99) in {unit}", UpstreamLatencyP95: "Upstream latency (p95) in {unit}", UpstreamLatencyP50: "Upstream latency (p50) in {unit}", UpstreamLatencyAverage: "Upstream latency (avg) in {unit}", KongLatencyP99: "Kong latency (p99) in {unit}", KongLatencyP95: "Kong latency (p95) in {unit}", KongLatencyP50: "Kong latency (p50) in {unit}", KongLatencyAverage: "Kong latency (avg) in {unit}", ResponseSizeP99: "Response size (p99) in {unit}", ResponseSizeP95: "Response size (p95) in {unit}", ResponseSizeP50: "Response size (p50) in {unit}", RequestSizeP99: "Request size (p99) in {unit}", RequestSizeP95: "Request size (p95) in {unit}", RequestSizeP50: "Request size (p50) in {unit}", ai_request_count: "Request count", total_tokens: "Total token count", prompt_tokens: "Prompt token count", completion_tokens: "Completion token count", cost: "Costs", llm_cache_embeddings_latency_average: "Embeddings latency (avg)", llm_cache_fetch_latency_average: "Fetch latency (avg)", llm_latency_average: "Llm latency (avg)", api: "API", a2a_latency_average: "A2A latency (avg) in {unit}", a2a_response_size_sum: "A2A response size (sum) in {unit}", a2a_context_id: "A2A context ID", a2a_error: "A2A error", a2a_method: "A2A method", a2a_task_id: "A2A task ID", mcp_latency_average: "MCP latency (avg)", mcp_latency_p99: "MCP latency (p99)", mcp_latency_p95: "MCP latency (p95)", mcp_latency_p50: "MCP latency (p50)", mcp_response_size_sum: "MCP response size (sum) in {unit}", mcp_response_body_size_sum: "MCP response body size (sum) in {unit}", control_plane_count: "Control plane count", service_count: "Gateway service count", route_count: "Route count", consumer_count: "Consumer count", plugin_count: "Plugin count", node_count: "Data plane node count", cache_eviction_rate: "Cache eviction rate in {unit}", cache_expiration_rate: "Cache expiration rate in {unit}", cache_items_average: "Cache items (avg)", cache_memory_utilization_max: "Cache memory utilization (max) in {unit}", cached_tokens: "Cached tokens", time_to_first_token_average: "Time to first token (avg)", time_to_first_token_p99: "Time to first token (p99)", time_to_first_token_p95: "Time to first token (p95)", time_to_first_token_p50: "Time to first token (p50)", time_per_token_average: "Time per token (avg)", time_per_token_p99: "Time per token (p99)", time_per_token_p95: "Time per token (p95)", time_per_token_p50: "Time per token (p50)", total_tokens_per_minute: "Total tokens per minute" }, hD = { tenSecondly: "@timestamp per 10 seconds", thirtySecondly: "@timestamp per 30 seconds", minutely: "@timestamp per minute", fiveMinutely: "@timestamp per 5 minutes", tenMinutely: "@timestamp per 10 minutes", thirtyMinutely: "@timestamp per 30 minutes", hourly: "@timestamp per hour", twoHourly: "@timestamp per 2 hours", twelveHourly: "@timestamp per 12 hours", daily: "@timestamp per day", weekly: "@timestamp per week" }, fD = { platform: "@timestamp created at" }, gD = { nameLabel: "Name", defaultEmptyStateTitle: "No data to display", defaultErrorStateTitle: "Something went wrong", errors: { meta: "Error: response must contain 'meta'", display: "Error: 'display' response incorrectly formatted (must have at least one key)", metricNames: "Error: 'metricNames' response incorrectly formatted (must have at least one entry)" } }, pD = { valueError: "Invalid configuration", trend: { not_available: "Not available" } }, mD = "Time range", _D = "No data", yD = { zoom: "Zoom in", view_requests: "View requests", cancel: "Cancel", explore: "Explore" }, bD = { from: "From", to: "To" }, vD = {
|
|
6
6
|
noDataAvailableTitle: ZM,
|
|
7
7
|
noDataAvailableDescription: QM,
|
|
8
8
|
limitedResultsShown: JM,
|
|
@@ -72,7 +72,7 @@ function kD(n) {
|
|
|
72
72
|
return n ? "#" + t(n.r) + t(n.g) + t(n.b) + DD(n.a, t) : void 0;
|
|
73
73
|
}
|
|
74
74
|
const CD = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
75
|
-
function
|
|
75
|
+
function T0(n, t, e) {
|
|
76
76
|
const i = t * Math.min(e, 1 - e), r = (s, a = (s + n / 30) % 12) => e - i * Math.max(Math.min(a - 3, 9 - a, 1), -1);
|
|
77
77
|
return [r(0), r(8), r(4)];
|
|
78
78
|
}
|
|
@@ -81,7 +81,7 @@ function OD(n, t, e) {
|
|
|
81
81
|
return [i(5), i(3), i(1)];
|
|
82
82
|
}
|
|
83
83
|
function AD(n, t, e) {
|
|
84
|
-
const i =
|
|
84
|
+
const i = T0(n, 1, 0.5);
|
|
85
85
|
let r;
|
|
86
86
|
for (t + e > 1 && (r = 1 / (t + e), t *= r, e *= r), r = 0; r < 3; r++)
|
|
87
87
|
i[r] *= 1 - t - e, i[r] += t;
|
|
@@ -99,7 +99,7 @@ function Eh(n, t, e, i) {
|
|
|
99
99
|
return (Array.isArray(t) ? n(t[0], t[1], t[2]) : n(t, e, i)).map(ar);
|
|
100
100
|
}
|
|
101
101
|
function Ih(n, t, e) {
|
|
102
|
-
return Eh(
|
|
102
|
+
return Eh(T0, n, t, e);
|
|
103
103
|
}
|
|
104
104
|
function PD(n, t, e) {
|
|
105
105
|
return Eh(AD, n, t, e);
|
|
@@ -107,7 +107,7 @@ function PD(n, t, e) {
|
|
|
107
107
|
function ED(n, t, e) {
|
|
108
108
|
return Eh(OD, n, t, e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function M0(n) {
|
|
111
111
|
return (n % 360 + 360) % 360;
|
|
112
112
|
}
|
|
113
113
|
function ID(n) {
|
|
@@ -116,7 +116,7 @@ function ID(n) {
|
|
|
116
116
|
if (!t)
|
|
117
117
|
return;
|
|
118
118
|
t[5] !== i && (e = t[6] ? No(+t[5]) : ar(+t[5]));
|
|
119
|
-
const r =
|
|
119
|
+
const r = M0(+t[2]), s = +t[3] / 100, a = +t[4] / 100;
|
|
120
120
|
return t[1] === "hwb" ? i = PD(r, s, a) : t[1] === "hsv" ? i = ED(r, s, a) : i = Ih(r, s, a), {
|
|
121
121
|
r: i[0],
|
|
122
122
|
g: i[1],
|
|
@@ -126,7 +126,7 @@ function ID(n) {
|
|
|
126
126
|
}
|
|
127
127
|
function LD(n, t) {
|
|
128
128
|
var e = Ph(n);
|
|
129
|
-
e[0] =
|
|
129
|
+
e[0] = M0(e[0] + t), e = Ih(e), n.r = e[0], n.g = e[1], n.b = e[2];
|
|
130
130
|
}
|
|
131
131
|
function ND(n) {
|
|
132
132
|
if (!n)
|
|
@@ -369,12 +369,12 @@ function kl(n, t, e) {
|
|
|
369
369
|
i[t] = Math.max(0, Math.min(i[t] + i[t] * e, t === 0 ? 360 : 1)), i = Ih(i), n.r = i[0], n.g = i[1], n.b = i[2];
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function D0(n, t) {
|
|
373
373
|
return n && Object.assign(t || {}, n);
|
|
374
374
|
}
|
|
375
375
|
function Cp(n) {
|
|
376
376
|
var t = { r: 0, g: 0, b: 0, a: 255 };
|
|
377
|
-
return Array.isArray(n) ? n.length >= 3 && (t = { r: n[0], g: n[1], b: n[2], a: 255 }, n.length > 3 && (t.a = ar(n[3]))) : (t =
|
|
377
|
+
return Array.isArray(n) ? n.length >= 3 && (t = { r: n[0], g: n[1], b: n[2], a: 255 }, n.length > 3 && (t.a = ar(n[3]))) : (t = D0(n, { r: 0, g: 0, b: 0, a: 1 }), t.a = ar(t.a)), t;
|
|
378
378
|
}
|
|
379
379
|
function YD(n) {
|
|
380
380
|
return n.charAt(0) === "r" ? BD(n) : ID(n);
|
|
@@ -391,7 +391,7 @@ class ea {
|
|
|
391
391
|
return this._valid;
|
|
392
392
|
}
|
|
393
393
|
get rgb() {
|
|
394
|
-
var t =
|
|
394
|
+
var t = D0(this._rgb);
|
|
395
395
|
return t && (t.a = Ri(t.a)), t;
|
|
396
396
|
}
|
|
397
397
|
set rgb(t) {
|
|
@@ -483,7 +483,7 @@ function Ln(n, t) {
|
|
|
483
483
|
function Ot(n, t) {
|
|
484
484
|
return typeof n > "u" ? t : n;
|
|
485
485
|
}
|
|
486
|
-
const VD = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 : +n / t,
|
|
486
|
+
const VD = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 : +n / t, k0 = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 * t : +n;
|
|
487
487
|
function re(n, t, e) {
|
|
488
488
|
if (n && typeof n.call == "function")
|
|
489
489
|
return n.apply(e, t);
|
|
@@ -518,7 +518,7 @@ function Jl(n) {
|
|
|
518
518
|
}
|
|
519
519
|
return n;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function C0(n) {
|
|
522
522
|
return [
|
|
523
523
|
"__proto__",
|
|
524
524
|
"prototype",
|
|
@@ -526,7 +526,7 @@ function C_(n) {
|
|
|
526
526
|
].indexOf(n) === -1;
|
|
527
527
|
}
|
|
528
528
|
function qD(n, t, e, i) {
|
|
529
|
-
if (!
|
|
529
|
+
if (!C0(n))
|
|
530
530
|
return;
|
|
531
531
|
const r = t[n], s = e[n];
|
|
532
532
|
zt(r) && zt(s) ? na(r, s, i) : t[n] = Jl(s);
|
|
@@ -555,7 +555,7 @@ function $o(n, t) {
|
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
function jD(n, t, e) {
|
|
558
|
-
if (!
|
|
558
|
+
if (!C0(n))
|
|
559
559
|
return;
|
|
560
560
|
const i = t[n], r = e[n];
|
|
561
561
|
zt(i) && zt(r) ? $o(i, r) : Object.prototype.hasOwnProperty.call(t, n) || (t[n] = Jl(r));
|
|
@@ -629,7 +629,7 @@ function tk(n, t) {
|
|
|
629
629
|
const e = Math.round(n);
|
|
630
630
|
return e - t <= n && e + t >= n;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function O0(n, t, e) {
|
|
633
633
|
let i, r, s;
|
|
634
634
|
for (i = 0, r = n.length; i < r; i++)
|
|
635
635
|
s = n[i][e], isNaN(s) || (t.min = Math.min(t.min, s), t.max = Math.max(t.max, s));
|
|
@@ -700,7 +700,7 @@ function rk(n, t, e) {
|
|
|
700
700
|
r--;
|
|
701
701
|
return i > 0 || r < n.length ? n.slice(i, r) : n;
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const A0 = [
|
|
704
704
|
"push",
|
|
705
705
|
"pop",
|
|
706
706
|
"shift",
|
|
@@ -720,7 +720,7 @@ function sk(n, t) {
|
|
|
720
720
|
t
|
|
721
721
|
]
|
|
722
722
|
}
|
|
723
|
-
}),
|
|
723
|
+
}), A0.forEach((e) => {
|
|
724
724
|
const i = "_onData" + Lh(e), r = n[e];
|
|
725
725
|
Object.defineProperty(n, e, {
|
|
726
726
|
configurable: !0,
|
|
@@ -739,23 +739,23 @@ function Ep(n, t) {
|
|
|
739
739
|
if (!e)
|
|
740
740
|
return;
|
|
741
741
|
const i = e.listeners, r = i.indexOf(t);
|
|
742
|
-
r !== -1 && i.splice(r, 1), !(i.length > 0) && (
|
|
742
|
+
r !== -1 && i.splice(r, 1), !(i.length > 0) && (A0.forEach((s) => {
|
|
743
743
|
delete n[s];
|
|
744
744
|
}), delete n._chartjs);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function R0(n) {
|
|
747
747
|
const t = new Set(n);
|
|
748
748
|
return t.size === n.length ? n : Array.from(t);
|
|
749
749
|
}
|
|
750
|
-
const
|
|
750
|
+
const P0 = (function() {
|
|
751
751
|
return typeof window > "u" ? function(n) {
|
|
752
752
|
return n();
|
|
753
753
|
} : window.requestAnimationFrame;
|
|
754
754
|
})();
|
|
755
|
-
function
|
|
755
|
+
function E0(n, t) {
|
|
756
756
|
let e = [], i = !1;
|
|
757
757
|
return function(...r) {
|
|
758
|
-
e = r, i || (i = !0,
|
|
758
|
+
e = r, i || (i = !0, P0.call(window, () => {
|
|
759
759
|
i = !1, n.apply(t, e);
|
|
760
760
|
}));
|
|
761
761
|
};
|
|
@@ -767,7 +767,7 @@ function ok(n, t) {
|
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
769
|
const zh = (n) => n === "start" ? "left" : n === "end" ? "right" : "center", en = (n, t, e) => n === "start" ? t : n === "end" ? e : (t + e) / 2, ak = (n, t, e, i) => n === (i ? "left" : "right") ? e : n === "center" ? (t + e) / 2 : t;
|
|
770
|
-
function
|
|
770
|
+
function I0(n, t, e) {
|
|
771
771
|
const i = t.length;
|
|
772
772
|
let r = 0, s = i;
|
|
773
773
|
if (n._sorted) {
|
|
@@ -804,7 +804,7 @@ function I_(n, t, e) {
|
|
|
804
804
|
count: s
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function L0(n) {
|
|
808
808
|
const { xScale: t, yScale: e, _scaleRanges: i } = n, r = {
|
|
809
809
|
xmin: t.min,
|
|
810
810
|
xmax: t.max,
|
|
@@ -966,7 +966,7 @@ function hk(n, t) {
|
|
|
966
966
|
function ca(n, t, e) {
|
|
967
967
|
return hk(t, e).format(n);
|
|
968
968
|
}
|
|
969
|
-
const
|
|
969
|
+
const N0 = {
|
|
970
970
|
values(n) {
|
|
971
971
|
return ee(n) ? n : "" + n;
|
|
972
972
|
},
|
|
@@ -997,7 +997,7 @@ const N_ = {
|
|
|
997
997
|
5,
|
|
998
998
|
10,
|
|
999
999
|
15
|
|
1000
|
-
].includes(i) || t > 0.8 * e.length ?
|
|
1000
|
+
].includes(i) || t > 0.8 * e.length ? N0.numeric.call(this, n, t, e) : "";
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
function fk(n, t) {
|
|
@@ -1005,7 +1005,7 @@ function fk(n, t) {
|
|
|
1005
1005
|
return Math.abs(e) >= 1 && n !== Math.floor(n) && (e = n - Math.floor(n)), e;
|
|
1006
1006
|
}
|
|
1007
1007
|
var yc = {
|
|
1008
|
-
formatters:
|
|
1008
|
+
formatters: N0
|
|
1009
1009
|
};
|
|
1010
1010
|
function gk(n) {
|
|
1011
1011
|
n.set("scale", {
|
|
@@ -1192,9 +1192,9 @@ function Fp(n, t) {
|
|
|
1192
1192
|
!t && !n || (t = t || n.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, n.width, n.height), t.restore());
|
|
1193
1193
|
}
|
|
1194
1194
|
function sh(n, t, e, i) {
|
|
1195
|
-
|
|
1195
|
+
F0(n, t, e, i, null);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function F0(n, t, e, i, r) {
|
|
1198
1198
|
let s, a, c, u, d, f, g, m;
|
|
1199
1199
|
const _ = t.pointStyle, b = t.rotation, x = t.radius;
|
|
1200
1200
|
let S = (b || 0) * Nh;
|
|
@@ -1316,7 +1316,7 @@ function Bh(n, t) {
|
|
|
1316
1316
|
e[a] = Dk(s(a));
|
|
1317
1317
|
return e;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function z0(n) {
|
|
1320
1320
|
return Bh(n, {
|
|
1321
1321
|
top: "y",
|
|
1322
1322
|
right: "x",
|
|
@@ -1333,7 +1333,7 @@ function lr(n) {
|
|
|
1333
1333
|
]);
|
|
1334
1334
|
}
|
|
1335
1335
|
function Ie(n) {
|
|
1336
|
-
const t =
|
|
1336
|
+
const t = z0(n);
|
|
1337
1337
|
return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
|
|
1338
1338
|
}
|
|
1339
1339
|
function be(n, t) {
|
|
@@ -1359,7 +1359,7 @@ function Fo(n, t, e, i) {
|
|
|
1359
1359
|
return a;
|
|
1360
1360
|
}
|
|
1361
1361
|
function kk(n, t, e) {
|
|
1362
|
-
const { min: i, max: r } = n, s =
|
|
1362
|
+
const { min: i, max: r } = n, s = k0(t, (r - i) / 2), a = (c, u) => e && c === 0 ? 0 : c + u;
|
|
1363
1363
|
return {
|
|
1364
1364
|
min: a(i, -Math.abs(s)),
|
|
1365
1365
|
max: a(r, s)
|
|
@@ -1372,7 +1372,7 @@ function Hh(n, t = [
|
|
|
1372
1372
|
""
|
|
1373
1373
|
], e, i, r = () => n[0]) {
|
|
1374
1374
|
const s = e || n;
|
|
1375
|
-
typeof i > "u" && (i =
|
|
1375
|
+
typeof i > "u" && (i = W0("_fallback", n));
|
|
1376
1376
|
const a = {
|
|
1377
1377
|
[Symbol.toStringTag]: "Object",
|
|
1378
1378
|
_cacheable: !0,
|
|
@@ -1396,7 +1396,7 @@ function Hh(n, t = [
|
|
|
1396
1396
|
* A trap for getting property values.
|
|
1397
1397
|
*/
|
|
1398
1398
|
get(c, u) {
|
|
1399
|
-
return
|
|
1399
|
+
return B0(c, u, () => Lk(u, t, n, c));
|
|
1400
1400
|
},
|
|
1401
1401
|
/**
|
|
1402
1402
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -1439,7 +1439,7 @@ function Fs(n, t, e, i) {
|
|
|
1439
1439
|
_context: t,
|
|
1440
1440
|
_subProxy: e,
|
|
1441
1441
|
_stack: /* @__PURE__ */ new Set(),
|
|
1442
|
-
_descriptors:
|
|
1442
|
+
_descriptors: U0(n, i),
|
|
1443
1443
|
setContext: (s) => Fs(n, s, e, i),
|
|
1444
1444
|
override: (s) => Fs(n.override(s), t, e, i)
|
|
1445
1445
|
};
|
|
@@ -1454,7 +1454,7 @@ function Fs(n, t, e, i) {
|
|
|
1454
1454
|
* A trap for getting property values.
|
|
1455
1455
|
*/
|
|
1456
1456
|
get(s, a, c) {
|
|
1457
|
-
return
|
|
1457
|
+
return B0(s, a, () => Ok(s, a, c));
|
|
1458
1458
|
},
|
|
1459
1459
|
/**
|
|
1460
1460
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -1492,7 +1492,7 @@ function Fs(n, t, e, i) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
});
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function U0(n, t = {
|
|
1496
1496
|
scriptable: !0,
|
|
1497
1497
|
indexable: !0
|
|
1498
1498
|
}) {
|
|
@@ -1506,7 +1506,7 @@ function U_(n, t = {
|
|
|
1506
1506
|
};
|
|
1507
1507
|
}
|
|
1508
1508
|
const Ck = (n, t) => n ? n + Lh(t) : t, Wh = (n, t) => zt(t) && n !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
|
|
1509
|
-
function
|
|
1509
|
+
function B0(n, t, e) {
|
|
1510
1510
|
if (Object.prototype.hasOwnProperty.call(n, t) || t === "constructor")
|
|
1511
1511
|
return n[t];
|
|
1512
1512
|
const i = e();
|
|
@@ -1539,7 +1539,7 @@ function Rk(n, t, e, i) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
return t;
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function H0(n, t, e) {
|
|
1543
1543
|
return Tn(n) ? n(t, e) : n;
|
|
1544
1544
|
}
|
|
1545
1545
|
const Pk = (n, t) => n === !0 ? t : typeof n == "string" ? ur(t, n) : void 0;
|
|
@@ -1548,7 +1548,7 @@ function Ek(n, t, e, i, r) {
|
|
|
1548
1548
|
const a = Pk(e, s);
|
|
1549
1549
|
if (a) {
|
|
1550
1550
|
n.add(a);
|
|
1551
|
-
const c =
|
|
1551
|
+
const c = H0(a._fallback, e, r);
|
|
1552
1552
|
if (typeof c < "u" && c !== e && c !== i)
|
|
1553
1553
|
return c;
|
|
1554
1554
|
} else if (a === !1 && typeof i < "u" && e !== i)
|
|
@@ -1557,7 +1557,7 @@ function Ek(n, t, e, i, r) {
|
|
|
1557
1557
|
return !1;
|
|
1558
1558
|
}
|
|
1559
1559
|
function Yh(n, t, e, i) {
|
|
1560
|
-
const r = t._rootScopes, s =
|
|
1560
|
+
const r = t._rootScopes, s = H0(t._fallback, e, i), a = [
|
|
1561
1561
|
...n,
|
|
1562
1562
|
...r
|
|
1563
1563
|
], c = /* @__PURE__ */ new Set();
|
|
@@ -1581,10 +1581,10 @@ function Ik(n, t, e) {
|
|
|
1581
1581
|
function Lk(n, t, e, i) {
|
|
1582
1582
|
let r;
|
|
1583
1583
|
for (const s of t)
|
|
1584
|
-
if (r =
|
|
1584
|
+
if (r = W0(Ck(s, n), e), typeof r < "u")
|
|
1585
1585
|
return Wh(n, r) ? Yh(e, i, n, r) : r;
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function W0(n, t) {
|
|
1588
1588
|
for (const e of t) {
|
|
1589
1589
|
if (!e)
|
|
1590
1590
|
continue;
|
|
@@ -1604,7 +1604,7 @@ function Nk(n) {
|
|
|
1604
1604
|
t.add(i);
|
|
1605
1605
|
return Array.from(t);
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Y0(n, t, e, i) {
|
|
1608
1608
|
const { iScale: r } = n, { key: s = "r" } = this._parsing, a = new Array(i);
|
|
1609
1609
|
let c, u, d, f;
|
|
1610
1610
|
for (c = 0, u = i; c < u; ++c)
|
|
@@ -1613,7 +1613,7 @@ function Y_(n, t, e, i) {
|
|
|
1613
1613
|
};
|
|
1614
1614
|
return a;
|
|
1615
1615
|
}
|
|
1616
|
-
const Fk = Number.EPSILON || 1e-14, zs = (n, t) => t < n.length && !n[t].skip && n[t], $
|
|
1616
|
+
const Fk = Number.EPSILON || 1e-14, zs = (n, t) => t < n.length && !n[t].skip && n[t], $0 = (n) => n === "x" ? "y" : "x";
|
|
1617
1617
|
function zk(n, t, e, i) {
|
|
1618
1618
|
const r = n.skip ? t : n, s = t, a = e.skip ? t : e, c = Ls(s, r), u = Ls(a, s);
|
|
1619
1619
|
let d = c / (c + u), f = u / (c + u);
|
|
@@ -1643,7 +1643,7 @@ function Uk(n, t, e) {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
1645
|
function Bk(n, t, e = "x") {
|
|
1646
|
-
const i = $
|
|
1646
|
+
const i = $0(e), r = n.length;
|
|
1647
1647
|
let s, a, c, u = zs(n, 0);
|
|
1648
1648
|
for (let d = 0; d < r; ++d) {
|
|
1649
1649
|
if (a = c, c = u, u = zs(n, d + 1), !c)
|
|
@@ -1653,7 +1653,7 @@ function Bk(n, t, e = "x") {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
1655
|
function Hk(n, t = "x") {
|
|
1656
|
-
const e = $
|
|
1656
|
+
const e = $0(t), i = n.length, r = Array(i).fill(0), s = Array(i);
|
|
1657
1657
|
let a, c, u, d = zs(n, 0);
|
|
1658
1658
|
for (a = 0; a < i; ++a)
|
|
1659
1659
|
if (c = u, u = d, d = zs(n, a + 1), !!u) {
|
|
@@ -1855,17 +1855,17 @@ const Jk = function(n, t) {
|
|
|
1855
1855
|
function Rs(n, t, e) {
|
|
1856
1856
|
return n ? Jk(t, e) : tC();
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function V0(n, t) {
|
|
1859
1859
|
let e, i;
|
|
1860
1860
|
(t === "ltr" || t === "rtl") && (e = n.canvas.style, i = [
|
|
1861
1861
|
e.getPropertyValue("direction"),
|
|
1862
1862
|
e.getPropertyPriority("direction")
|
|
1863
1863
|
], e.setProperty("direction", t, "important"), n.prevTextDirection = i);
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function q0(n, t) {
|
|
1866
1866
|
t !== void 0 && (delete n.prevTextDirection, n.canvas.style.setProperty("direction", t[0], t[1]));
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function j0(n) {
|
|
1869
1869
|
return n === "angle" ? {
|
|
1870
1870
|
between: ia,
|
|
1871
1871
|
compare: ek,
|
|
@@ -1885,7 +1885,7 @@ function Wp({ start: n, end: t, count: e, loop: i, style: r }) {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
1887
|
function eC(n, t, e) {
|
|
1888
|
-
const { property: i, start: r, end: s } = e, { between: a, normalize: c } =
|
|
1888
|
+
const { property: i, start: r, end: s } = e, { between: a, normalize: c } = j0(i), u = t.length;
|
|
1889
1889
|
let { start: d, end: f, loop: g } = n, m, _;
|
|
1890
1890
|
if (g) {
|
|
1891
1891
|
for (d += u, f += u, m = 0, _ = u; m < _ && a(c(t[d % u][i]), r, s); ++m)
|
|
@@ -1899,12 +1899,12 @@ function eC(n, t, e) {
|
|
|
1899
1899
|
style: n.style
|
|
1900
1900
|
};
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function G0(n, t, e) {
|
|
1903
1903
|
if (!e)
|
|
1904
1904
|
return [
|
|
1905
1905
|
n
|
|
1906
1906
|
];
|
|
1907
|
-
const { property: i, start: r, end: s } = e, a = t.length, { compare: c, between: u, normalize: d } =
|
|
1907
|
+
const { property: i, start: r, end: s } = e, a = t.length, { compare: c, between: u, normalize: d } = j0(i), { start: f, end: g, loop: m, style: _ } = eC(n, t, e), b = [];
|
|
1908
1908
|
let x = !1, S = null, k, A, U;
|
|
1909
1909
|
const P = () => u(r, U, k) && c(r, U) !== 0, E = () => c(s, k) === 0 || u(s, U, k), L = () => x || P(), N = () => !x || E();
|
|
1910
1910
|
for (let M = f, w = f; M <= g; ++M)
|
|
@@ -1923,10 +1923,10 @@ function G_(n, t, e) {
|
|
|
1923
1923
|
style: _
|
|
1924
1924
|
})), b;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function K0(n, t) {
|
|
1927
1927
|
const e = [], i = n.segments;
|
|
1928
1928
|
for (let r = 0; r < i.length; r++) {
|
|
1929
|
-
const s =
|
|
1929
|
+
const s = G0(i[r], n.points, t);
|
|
1930
1930
|
s.length && e.push(...s);
|
|
1931
1931
|
}
|
|
1932
1932
|
return e;
|
|
@@ -2048,7 +2048,7 @@ function aC(n, t) {
|
|
|
2048
2048
|
bottom: Al(i, t, "bottom")
|
|
2049
2049
|
} : t;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function X0(n, t) {
|
|
2052
2052
|
const e = t._clip;
|
|
2053
2053
|
if (e.disabled)
|
|
2054
2054
|
return !1;
|
|
@@ -2074,7 +2074,7 @@ class lC {
|
|
|
2074
2074
|
}));
|
|
2075
2075
|
}
|
|
2076
2076
|
_refresh() {
|
|
2077
|
-
this._request || (this._running = !0, this._request =
|
|
2077
|
+
this._request || (this._running = !0, this._request = P0.call(window, () => {
|
|
2078
2078
|
this._update(), this._request = null, this._running && this._refresh();
|
|
2079
2079
|
}));
|
|
2080
2080
|
}
|
|
@@ -2334,7 +2334,7 @@ function gC(n) {
|
|
|
2334
2334
|
disabled: n === !1
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Z0(n, t) {
|
|
2338
2338
|
const e = [], i = n._getSortedDatasetMetas(t);
|
|
2339
2339
|
let r, s;
|
|
2340
2340
|
for (r = 0, s = i.length; r < s; ++r)
|
|
@@ -2442,7 +2442,7 @@ function So(n, t) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
2444
|
const xd = (n) => n === "reset" || n === "none", Xp = (n, t) => t ? n : Object.assign({}, n), xC = (n, t, e) => n && !t.hidden && t._stacked && {
|
|
2445
|
-
keys:
|
|
2445
|
+
keys: Z0(e, !0),
|
|
2446
2446
|
values: null
|
|
2447
2447
|
};
|
|
2448
2448
|
class _r {
|
|
@@ -2564,7 +2564,7 @@ class _r {
|
|
|
2564
2564
|
}
|
|
2565
2565
|
applyStack(t, e, i) {
|
|
2566
2566
|
const r = this.chart, s = this._cachedMeta, a = e[t.axis], c = {
|
|
2567
|
-
keys:
|
|
2567
|
+
keys: Z0(r, !0),
|
|
2568
2568
|
values: e._stacks[t.axis]._visualValues
|
|
2569
2569
|
};
|
|
2570
2570
|
return jp(c, a, s.index, {
|
|
@@ -2810,7 +2810,7 @@ function wC(n, t) {
|
|
|
2810
2810
|
let i = [];
|
|
2811
2811
|
for (let r = 0, s = e.length; r < s; r++)
|
|
2812
2812
|
i = i.concat(e[r].controller.getAllParsedValues(n));
|
|
2813
|
-
n._cache.$bar =
|
|
2813
|
+
n._cache.$bar = R0(i.sort((r, s) => r - s));
|
|
2814
2814
|
}
|
|
2815
2815
|
return n._cache.$bar;
|
|
2816
2816
|
}
|
|
@@ -2859,14 +2859,14 @@ function DC(n, t, e, i) {
|
|
|
2859
2859
|
max: c
|
|
2860
2860
|
};
|
|
2861
2861
|
}
|
|
2862
|
-
function
|
|
2862
|
+
function Q0(n, t, e, i) {
|
|
2863
2863
|
return ee(n) ? DC(n, t, e, i) : t[e.axis] = e.parse(n, i), t;
|
|
2864
2864
|
}
|
|
2865
2865
|
function Zp(n, t, e, i) {
|
|
2866
2866
|
const r = n.iScale, s = n.vScale, a = r.getLabels(), c = r === s, u = [];
|
|
2867
2867
|
let d, f, g, m;
|
|
2868
2868
|
for (d = e, f = e + i; d < f; ++d)
|
|
2869
|
-
m = t[d], g = {}, g[r.axis] = c || r.parse(a[d], d), u.push(
|
|
2869
|
+
m = t[d], g = {}, g[r.axis] = c || r.parse(a[d], d), u.push(Q0(m, g, s, d));
|
|
2870
2870
|
return u;
|
|
2871
2871
|
}
|
|
2872
2872
|
function wd(n) {
|
|
@@ -2916,7 +2916,7 @@ function Jp(n, t, e) {
|
|
|
2916
2916
|
function RC(n, { inflateAmount: t }, e) {
|
|
2917
2917
|
n.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t;
|
|
2918
2918
|
}
|
|
2919
|
-
class
|
|
2919
|
+
class J0 extends _r {
|
|
2920
2920
|
static id = "bar";
|
|
2921
2921
|
static defaults = {
|
|
2922
2922
|
datasetElementType: !1,
|
|
@@ -2962,7 +2962,7 @@ class J_ extends _r {
|
|
|
2962
2962
|
const { iScale: s, vScale: a } = t, { xAxisKey: c = "x", yAxisKey: u = "y" } = this._parsing, d = s.axis === "x" ? c : u, f = a.axis === "x" ? c : u, g = [];
|
|
2963
2963
|
let m, _, b, x;
|
|
2964
2964
|
for (m = i, _ = i + r; m < _; ++m)
|
|
2965
|
-
x = e[m], b = {}, b[s.axis] = s.parse(ur(x, d), m), g.push(
|
|
2965
|
+
x = e[m], b = {}, b[s.axis] = s.parse(ur(x, d), m), g.push(Q0(ur(x, f), b, a, m));
|
|
2966
2966
|
return g;
|
|
2967
2967
|
}
|
|
2968
2968
|
updateRangeFromParsed(t, e, i, r) {
|
|
@@ -3311,7 +3311,7 @@ class ha extends _r {
|
|
|
3311
3311
|
};
|
|
3312
3312
|
}
|
|
3313
3313
|
update(t) {
|
|
3314
|
-
const e = this.chart, { chartArea: i } = e, r = this._cachedMeta, s = r.data, a = this.getMaxBorderWidth() + this.getMaxOffset(s) + this.options.spacing, c = Math.max((Math.min(i.width, i.height) - a) / 2, 0), u = Math.min(VD(this.options.cutout, c), 1), d = this._getRingWeight(this.index), { circumference: f, rotation: g } = this._getRotationExtents(), { ratioX: m, ratioY: _, offsetX: b, offsetY: x } = EC(g, f, u), S = (i.width - a) / m, k = (i.height - a) / _, A = Math.max(Math.min(S, k) / 2, 0), U =
|
|
3314
|
+
const e = this.chart, { chartArea: i } = e, r = this._cachedMeta, s = r.data, a = this.getMaxBorderWidth() + this.getMaxOffset(s) + this.options.spacing, c = Math.max((Math.min(i.width, i.height) - a) / 2, 0), u = Math.min(VD(this.options.cutout, c), 1), d = this._getRingWeight(this.index), { circumference: f, rotation: g } = this._getRotationExtents(), { ratioX: m, ratioY: _, offsetX: b, offsetY: x } = EC(g, f, u), S = (i.width - a) / m, k = (i.height - a) / _, A = Math.max(Math.min(S, k) / 2, 0), U = k0(this.options.radius, A), P = Math.max(U * u, 0), E = (U - P) / this._getVisibleDatasetWeightTotal();
|
|
3315
3315
|
this.offsetX = b * U, this.offsetY = x * U, r.total = this.calculateTotal(), this.outerRadius = U - E * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - E * d, 0), this.updateElements(s, 0, s.length, t);
|
|
3316
3316
|
}
|
|
3317
3317
|
_circumference(t, e) {
|
|
@@ -3417,8 +3417,8 @@ class ty extends _r {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
update(t) {
|
|
3419
3419
|
const e = this._cachedMeta, { dataset: i, data: r = [], _dataset: s } = e, a = this.chart._animationsDisabled;
|
|
3420
|
-
let { start: c, count: u } =
|
|
3421
|
-
this._drawStart = c, this._drawCount = u,
|
|
3420
|
+
let { start: c, count: u } = I0(e, r, a);
|
|
3421
|
+
this._drawStart = c, this._drawCount = u, L0(e) && (c = 0, u = r.length), i._chart = this.chart, i._datasetIndex = this.index, i._decimated = !!s._decimated, i.points = r;
|
|
3422
3422
|
const d = this.resolveDatasetElementOptions(t);
|
|
3423
3423
|
this.options.showLine || (d.borderWidth = 0), d.segment = this.options.segment, this.updateElement(i, void 0, {
|
|
3424
3424
|
animated: !a,
|
|
@@ -3533,7 +3533,7 @@ class ey extends _r {
|
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
3535
|
parseObjectData(t, e, i, r) {
|
|
3536
|
-
return
|
|
3536
|
+
return Y0.bind(this)(t, e, i, r);
|
|
3537
3537
|
}
|
|
3538
3538
|
update(t) {
|
|
3539
3539
|
const e = this._cachedMeta.data;
|
|
@@ -3624,7 +3624,7 @@ class LC extends _r {
|
|
|
3624
3624
|
};
|
|
3625
3625
|
}
|
|
3626
3626
|
parseObjectData(t, e, i, r) {
|
|
3627
|
-
return
|
|
3627
|
+
return Y0.bind(this)(t, e, i, r);
|
|
3628
3628
|
}
|
|
3629
3629
|
update(t) {
|
|
3630
3630
|
const e = this._cachedMeta, i = e.dataset, r = e.data || [], s = e.iScale.getLabels();
|
|
@@ -3684,8 +3684,8 @@ class NC extends _r {
|
|
|
3684
3684
|
}
|
|
3685
3685
|
update(t) {
|
|
3686
3686
|
const e = this._cachedMeta, { data: i = [] } = e, r = this.chart._animationsDisabled;
|
|
3687
|
-
let { start: s, count: a } =
|
|
3688
|
-
if (this._drawStart = s, this._drawCount = a,
|
|
3687
|
+
let { start: s, count: a } = I0(e, i, r);
|
|
3688
|
+
if (this._drawStart = s, this._drawCount = a, L0(e) && (s = 0, a = i.length), this.options.showLine) {
|
|
3689
3689
|
this.datasetElementType || this.addElements();
|
|
3690
3690
|
const { dataset: c, _dataset: u } = e;
|
|
3691
3691
|
c._chart = this.chart, c._datasetIndex = this.index, c._decimated = !!u._decimated, c.points = i;
|
|
@@ -3727,7 +3727,7 @@ class NC extends _r {
|
|
|
3727
3727
|
}
|
|
3728
3728
|
var FC = /* @__PURE__ */ Object.freeze({
|
|
3729
3729
|
__proto__: null,
|
|
3730
|
-
BarController:
|
|
3730
|
+
BarController: J0,
|
|
3731
3731
|
BubbleController: PC,
|
|
3732
3732
|
DoughnutController: ha,
|
|
3733
3733
|
LineController: ty,
|
|
@@ -4301,7 +4301,7 @@ function sO(n, t, e) {
|
|
|
4301
4301
|
const i = n.canvas, r = i && Vh(i);
|
|
4302
4302
|
if (!r)
|
|
4303
4303
|
return;
|
|
4304
|
-
const s =
|
|
4304
|
+
const s = E0((c, u) => {
|
|
4305
4305
|
const d = r.clientWidth;
|
|
4306
4306
|
e(c, u), d < r.clientWidth && e();
|
|
4307
4307
|
}, window), a = new ResizeObserver((c) => {
|
|
@@ -4314,7 +4314,7 @@ function Md(n, t, e) {
|
|
|
4314
4314
|
e && e.disconnect(), t === "resize" && rO(n);
|
|
4315
4315
|
}
|
|
4316
4316
|
function oO(n, t, e) {
|
|
4317
|
-
const i = n.canvas, r =
|
|
4317
|
+
const i = n.canvas, r = E0((s) => {
|
|
4318
4318
|
n.ctx !== null && e(tO(s, n));
|
|
4319
4319
|
}, n);
|
|
4320
4320
|
return QC(i, t, r), r;
|
|
@@ -5599,7 +5599,7 @@ function fm(n, t, e) {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
const zO = (n) => zt(n) && Object.getOwnPropertyNames(n).some((t) => Tn(n[t]));
|
|
5601
5601
|
function UO(n, t) {
|
|
5602
|
-
const { isScriptable: e, isIndexable: i } =
|
|
5602
|
+
const { isScriptable: e, isIndexable: i } = U0(n);
|
|
5603
5603
|
for (const r of t) {
|
|
5604
5604
|
const s = e(r), a = i(r), c = (a || s) && n[r];
|
|
5605
5605
|
if (s && (Tn(c) || zO(c)) || a && ee(c))
|
|
@@ -5948,7 +5948,7 @@ let Mn = class {
|
|
|
5948
5948
|
meta: t,
|
|
5949
5949
|
index: t.index,
|
|
5950
5950
|
cancelable: !0
|
|
5951
|
-
}, r =
|
|
5951
|
+
}, r = X0(this, t);
|
|
5952
5952
|
this.notifyPlugins("beforeDatasetDraw", i) !== !1 && (r && ua(e, r), t.controller.draw(), r && da(e), i.cancelable = !1, this.notifyPlugins("afterDatasetDraw", i));
|
|
5953
5953
|
}
|
|
5954
5954
|
isPointInArea(t) {
|
|
@@ -6440,7 +6440,7 @@ class vc extends sn {
|
|
|
6440
6440
|
return i && e[t[i - 1].end];
|
|
6441
6441
|
}
|
|
6442
6442
|
interpolate(t, e) {
|
|
6443
|
-
const i = this.options, r = t[e], s = this.points, a =
|
|
6443
|
+
const i = this.options, r = t[e], s = this.points, a = K0(this, {
|
|
6444
6444
|
property: e,
|
|
6445
6445
|
start: r,
|
|
6446
6446
|
end: r
|
|
@@ -6571,7 +6571,7 @@ function sr(n, t, e, i) {
|
|
|
6571
6571
|
return n ? 0 : $e(t, e, i);
|
|
6572
6572
|
}
|
|
6573
6573
|
function lA(n, t, e) {
|
|
6574
|
-
const i = n.options.borderWidth, r = n.borderSkipped, s =
|
|
6574
|
+
const i = n.options.borderWidth, r = n.borderSkipped, s = z0(i);
|
|
6575
6575
|
return {
|
|
6576
6576
|
t: sr(r.top, s.top, 0, e),
|
|
6577
6577
|
r: sr(r.right, s.right, 0, t),
|
|
@@ -6889,9 +6889,9 @@ function DA(n, t, e) {
|
|
|
6889
6889
|
});
|
|
6890
6890
|
continue;
|
|
6891
6891
|
}
|
|
6892
|
-
const g =
|
|
6892
|
+
const g = K0(t, f);
|
|
6893
6893
|
for (const m of g) {
|
|
6894
|
-
const _ = dh(e, s[m.start], s[m.end], m.loop), b =
|
|
6894
|
+
const _ = dh(e, s[m.start], s[m.end], m.loop), b = G0(c, r, _);
|
|
6895
6895
|
for (const x of b)
|
|
6896
6896
|
a.push({
|
|
6897
6897
|
source: x,
|
|
@@ -7132,7 +7132,7 @@ function WA(n) {
|
|
|
7132
7132
|
return c;
|
|
7133
7133
|
}
|
|
7134
7134
|
function Cd(n, t, e) {
|
|
7135
|
-
const i = zA(t), { chart: r, index: s, line: a, scale: c, axis: u } = t, d = a.options, f = d.fill, g = d.backgroundColor, { above: m = g, below: _ = g } = f || {}, b = r.getDatasetMeta(s), x =
|
|
7135
|
+
const i = zA(t), { chart: r, index: s, line: a, scale: c, axis: u } = t, d = a.options, f = d.fill, g = d.backgroundColor, { above: m = g, below: _ = g } = f || {}, b = r.getDatasetMeta(s), x = X0(r, b);
|
|
7136
7136
|
i && a.points.length && (ua(n, e), YA(n, {
|
|
7137
7137
|
line: a,
|
|
7138
7138
|
target: i,
|
|
@@ -7379,7 +7379,7 @@ class Om extends sn {
|
|
|
7379
7379
|
rotation: M.rotation,
|
|
7380
7380
|
borderWidth: w
|
|
7381
7381
|
}, F = u.xPlus(L, b / 2), W = N + m;
|
|
7382
|
-
|
|
7382
|
+
F0(r, C, F, W, a.pointStyleWidth && b);
|
|
7383
7383
|
} else {
|
|
7384
7384
|
const C = N + Math.max((g - x) / 2, 0), F = u.leftForLtr(L, b), W = lr(M.borderRadius);
|
|
7385
7385
|
r.beginPath(), Object.values(W).some((et) => et !== 0) ? Ns(r, {
|
|
@@ -7405,7 +7405,7 @@ class Om extends sn {
|
|
|
7405
7405
|
x: this.left + f,
|
|
7406
7406
|
y: en(s, this.top + P + f, this.bottom - e[0].height),
|
|
7407
7407
|
line: 0
|
|
7408
|
-
},
|
|
7408
|
+
}, V0(this.ctx, t.textDirection);
|
|
7409
7409
|
const E = S + f;
|
|
7410
7410
|
this.legendItems.forEach((L, N) => {
|
|
7411
7411
|
r.strokeStyle = L.fontColor, r.fillStyle = L.fontColor;
|
|
@@ -7420,7 +7420,7 @@ class Om extends sn {
|
|
|
7420
7420
|
_.y += vy(L, K) + f;
|
|
7421
7421
|
} else
|
|
7422
7422
|
_.y += E;
|
|
7423
|
-
}),
|
|
7423
|
+
}), q0(this.ctx, t.textDirection);
|
|
7424
7424
|
}
|
|
7425
7425
|
drawTitle() {
|
|
7426
7426
|
const t = this.options, e = t.title, i = be(e.font), r = Ie(e.padding);
|
|
@@ -8091,7 +8091,7 @@ class Lm extends sn {
|
|
|
8091
8091
|
};
|
|
8092
8092
|
i = Math.abs(i) < 1e-3 ? 0 : i;
|
|
8093
8093
|
const a = Ie(e.padding), c = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
|
|
8094
|
-
e.enabled && c && (t.save(), t.globalAlpha = i, this.drawBackground(s, t, r, e),
|
|
8094
|
+
e.enabled && c && (t.save(), t.globalAlpha = i, this.drawBackground(s, t, r, e), V0(t, e.textDirection), s.y += a.top, this.drawTitle(s, t, e), this.drawBody(s, t, e), this.drawFooter(s, t, e), q0(t, e.textDirection), t.restore());
|
|
8095
8095
|
}
|
|
8096
8096
|
getActiveElements() {
|
|
8097
8097
|
return this._active || [];
|
|
@@ -8417,7 +8417,7 @@ class ac extends $r {
|
|
|
8417
8417
|
minRotation: e.minRotation || 0,
|
|
8418
8418
|
includeBounds: e.includeBounds !== !1
|
|
8419
8419
|
}, s = this._range || this, a = fR(r, s);
|
|
8420
|
-
return t.bounds === "ticks" &&
|
|
8420
|
+
return t.bounds === "ticks" && O0(a, this, "value"), t.reverse ? (a.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), a;
|
|
8421
8421
|
}
|
|
8422
8422
|
configure() {
|
|
8423
8423
|
const t = this.ticks;
|
|
@@ -8529,7 +8529,7 @@ class _R extends $r {
|
|
|
8529
8529
|
min: this._userMin,
|
|
8530
8530
|
max: this._userMax
|
|
8531
8531
|
}, i = mR(e, this);
|
|
8532
|
-
return t.bounds === "ticks" &&
|
|
8532
|
+
return t.bounds === "ticks" && O0(i, this, "value"), t.reverse ? (i.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), i;
|
|
8533
8533
|
}
|
|
8534
8534
|
getLabelForValue(t) {
|
|
8535
8535
|
return t === void 0 ? "0" : ca(t, this.chart.options.locale, this.options.ticks.format);
|
|
@@ -9137,7 +9137,7 @@ class fh extends $r {
|
|
|
9137
9137
|
return this._cache.labels = this._normalized ? t : this.normalize(t);
|
|
9138
9138
|
}
|
|
9139
9139
|
normalize(t) {
|
|
9140
|
-
return
|
|
9140
|
+
return R0(t.sort(Hm));
|
|
9141
9141
|
}
|
|
9142
9142
|
}
|
|
9143
9143
|
function Fl(n, t, e) {
|
|
@@ -13338,7 +13338,7 @@ const Zi = {
|
|
|
13338
13338
|
afternoon: "afternoon",
|
|
13339
13339
|
evening: "evening",
|
|
13340
13340
|
night: "night"
|
|
13341
|
-
},
|
|
13341
|
+
}, t_ = {
|
|
13342
13342
|
// Era
|
|
13343
13343
|
G: function(n, t, e) {
|
|
13344
13344
|
const i = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -13792,7 +13792,7 @@ const Zi = {
|
|
|
13792
13792
|
switch (t) {
|
|
13793
13793
|
// Hours and optional minutes
|
|
13794
13794
|
case "X":
|
|
13795
|
-
return
|
|
13795
|
+
return n_(i);
|
|
13796
13796
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
13797
13797
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
13798
13798
|
// so this token always has the same output as `XX`
|
|
@@ -13810,7 +13810,7 @@ const Zi = {
|
|
|
13810
13810
|
switch (t) {
|
|
13811
13811
|
// Hours and optional minutes
|
|
13812
13812
|
case "x":
|
|
13813
|
-
return
|
|
13813
|
+
return n_(i);
|
|
13814
13814
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
13815
13815
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
13816
13816
|
// so this token always has the same output as `xx`
|
|
@@ -13830,7 +13830,7 @@ const Zi = {
|
|
|
13830
13830
|
case "O":
|
|
13831
13831
|
case "OO":
|
|
13832
13832
|
case "OOO":
|
|
13833
|
-
return "GMT" +
|
|
13833
|
+
return "GMT" + e_(i, ":");
|
|
13834
13834
|
default:
|
|
13835
13835
|
return "GMT" + Nr(i, ":");
|
|
13836
13836
|
}
|
|
@@ -13843,7 +13843,7 @@ const Zi = {
|
|
|
13843
13843
|
case "z":
|
|
13844
13844
|
case "zz":
|
|
13845
13845
|
case "zzz":
|
|
13846
|
-
return "GMT" +
|
|
13846
|
+
return "GMT" + e_(i, ":");
|
|
13847
13847
|
default:
|
|
13848
13848
|
return "GMT" + Nr(i, ":");
|
|
13849
13849
|
}
|
|
@@ -13858,18 +13858,18 @@ const Zi = {
|
|
|
13858
13858
|
return ie(+n, t.length);
|
|
13859
13859
|
}
|
|
13860
13860
|
};
|
|
13861
|
-
function
|
|
13861
|
+
function e_(n, t = "") {
|
|
13862
13862
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), r = Math.trunc(i / 60), s = i % 60;
|
|
13863
13863
|
return s === 0 ? e + String(r) : e + String(r) + t + ie(s, 2);
|
|
13864
13864
|
}
|
|
13865
|
-
function
|
|
13865
|
+
function n_(n, t) {
|
|
13866
13866
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + ie(Math.abs(n) / 60, 2) : Nr(n, t);
|
|
13867
13867
|
}
|
|
13868
13868
|
function Nr(n, t = "") {
|
|
13869
13869
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), r = ie(Math.trunc(i / 60), 2), s = ie(i % 60, 2);
|
|
13870
13870
|
return e + r + t + s;
|
|
13871
13871
|
}
|
|
13872
|
-
const
|
|
13872
|
+
const i_ = (n, t) => {
|
|
13873
13873
|
switch (n) {
|
|
13874
13874
|
case "P":
|
|
13875
13875
|
return t.date({ width: "short" });
|
|
@@ -13894,7 +13894,7 @@ const i0 = (n, t) => {
|
|
|
13894
13894
|
}, MI = (n, t) => {
|
|
13895
13895
|
const e = n.match(/(P+)(p+)?/) || [], i = e[1], r = e[2];
|
|
13896
13896
|
if (!r)
|
|
13897
|
-
return
|
|
13897
|
+
return i_(n, t);
|
|
13898
13898
|
let s;
|
|
13899
13899
|
switch (i) {
|
|
13900
13900
|
case "P":
|
|
@@ -13910,7 +13910,7 @@ const i0 = (n, t) => {
|
|
|
13910
13910
|
s = t.dateTime({ width: "full" });
|
|
13911
13911
|
break;
|
|
13912
13912
|
}
|
|
13913
|
-
return s.replace("{{date}}",
|
|
13913
|
+
return s.replace("{{date}}", i_(i, t)).replace("{{time}}", eb(r, t));
|
|
13914
13914
|
}, DI = {
|
|
13915
13915
|
p: eb,
|
|
13916
13916
|
P: MI
|
|
@@ -13953,7 +13953,7 @@ function HI(n, t, e) {
|
|
|
13953
13953
|
const g = f[0];
|
|
13954
13954
|
if (g === "'")
|
|
13955
13955
|
return { isToken: !1, value: WI(f) };
|
|
13956
|
-
if (
|
|
13956
|
+
if (t_[g])
|
|
13957
13957
|
return { isToken: !0, value: f };
|
|
13958
13958
|
if (g.match(BI))
|
|
13959
13959
|
throw new RangeError(
|
|
@@ -13971,7 +13971,7 @@ function HI(n, t, e) {
|
|
|
13971
13971
|
if (!f.isToken) return f.value;
|
|
13972
13972
|
const g = f.value;
|
|
13973
13973
|
(!e?.useAdditionalWeekYearTokens && RI(g) || !e?.useAdditionalDayOfYearTokens && AI(g)) && PI(g, t, String(n));
|
|
13974
|
-
const m =
|
|
13974
|
+
const m = t_[g[0]];
|
|
13975
13975
|
return m(c, g, r.localize, d);
|
|
13976
13976
|
}).join("");
|
|
13977
13977
|
}
|
|
@@ -14015,7 +14015,7 @@ function $I(n, t) {
|
|
|
14015
14015
|
function VI() {
|
|
14016
14016
|
return Object.assign({}, ma());
|
|
14017
14017
|
}
|
|
14018
|
-
function
|
|
14018
|
+
function r_(n) {
|
|
14019
14019
|
return Math.trunc(n * mI);
|
|
14020
14020
|
}
|
|
14021
14021
|
function qI(n) {
|
|
@@ -14028,7 +14028,7 @@ function ib(n, t, e) {
|
|
|
14028
14028
|
function rb(n, t, e) {
|
|
14029
14029
|
return YI(n, -1, e);
|
|
14030
14030
|
}
|
|
14031
|
-
function
|
|
14031
|
+
function s_(n, t, e) {
|
|
14032
14032
|
const i = VI(), r = KI(n, e.timeZone, e.locale ?? i.locale);
|
|
14033
14033
|
return "formatToParts" in r ? jI(r, t) : GI(r, t);
|
|
14034
14034
|
}
|
|
@@ -14085,7 +14085,7 @@ function JI(n, t) {
|
|
|
14085
14085
|
parseInt(i[6], 10)
|
|
14086
14086
|
];
|
|
14087
14087
|
}
|
|
14088
|
-
const Ed = {},
|
|
14088
|
+
const Ed = {}, o_ = new Intl.DateTimeFormat("en-US", {
|
|
14089
14089
|
hourCycle: "h23",
|
|
14090
14090
|
timeZone: "America/New_York",
|
|
14091
14091
|
year: "numeric",
|
|
@@ -14094,7 +14094,7 @@ const Ed = {}, o0 = new Intl.DateTimeFormat("en-US", {
|
|
|
14094
14094
|
hour: "2-digit",
|
|
14095
14095
|
minute: "2-digit",
|
|
14096
14096
|
second: "2-digit"
|
|
14097
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), tL =
|
|
14097
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), tL = o_ === "06/25/2014, 00:00:00" || o_ === "06/25/2014 00:00:00";
|
|
14098
14098
|
function eL(n) {
|
|
14099
14099
|
return Ed[n] || (Ed[n] = tL ? new Intl.DateTimeFormat("en-US", {
|
|
14100
14100
|
hourCycle: "h23",
|
|
@@ -14120,7 +14120,7 @@ function nf(n, t, e, i, r, s, a) {
|
|
|
14120
14120
|
const c = /* @__PURE__ */ new Date(0);
|
|
14121
14121
|
return c.setUTCFullYear(n, t, e), c.setUTCHours(i, r, s, a), c;
|
|
14122
14122
|
}
|
|
14123
|
-
const
|
|
14123
|
+
const a_ = 36e5, nL = 6e4, Id = {
|
|
14124
14124
|
timezoneZ: /^(Z)$/,
|
|
14125
14125
|
timezoneHH: /^([+-]\d{2})$/,
|
|
14126
14126
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -14133,11 +14133,11 @@ function _a(n, t, e) {
|
|
|
14133
14133
|
return 0;
|
|
14134
14134
|
let r, s;
|
|
14135
14135
|
if (i = Id.timezoneHH.exec(n), i)
|
|
14136
|
-
return r = parseInt(i[1], 10),
|
|
14136
|
+
return r = parseInt(i[1], 10), l_(r) ? -(r * a_) : NaN;
|
|
14137
14137
|
if (i = Id.timezoneHHMM.exec(n), i) {
|
|
14138
14138
|
r = parseInt(i[2], 10);
|
|
14139
14139
|
const a = parseInt(i[3], 10);
|
|
14140
|
-
return
|
|
14140
|
+
return l_(r, a) ? (s = Math.abs(r) * a_ + a * nL, i[1] === "+" ? -s : s) : NaN;
|
|
14141
14141
|
}
|
|
14142
14142
|
if (sL(n)) {
|
|
14143
14143
|
t = new Date(t || Date.now());
|
|
@@ -14164,15 +14164,15 @@ function rL(n, t, e) {
|
|
|
14164
14164
|
const s = _h(new Date(i), e);
|
|
14165
14165
|
return r === s ? r : Math.max(r, s);
|
|
14166
14166
|
}
|
|
14167
|
-
function
|
|
14167
|
+
function l_(n, t) {
|
|
14168
14168
|
return -23 <= n && n <= 23 && (t == null || 0 <= t && t <= 59);
|
|
14169
14169
|
}
|
|
14170
|
-
const
|
|
14170
|
+
const c_ = {};
|
|
14171
14171
|
function sL(n) {
|
|
14172
|
-
if (
|
|
14172
|
+
if (c_[n])
|
|
14173
14173
|
return !0;
|
|
14174
14174
|
try {
|
|
14175
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: n }),
|
|
14175
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: n }), c_[n] = !0, !0;
|
|
14176
14176
|
} catch {
|
|
14177
14177
|
return !1;
|
|
14178
14178
|
}
|
|
@@ -14186,7 +14186,7 @@ const oL = 60 * 1e3, aL = {
|
|
|
14186
14186
|
switch (t) {
|
|
14187
14187
|
// Hours and optional minutes
|
|
14188
14188
|
case "X":
|
|
14189
|
-
return
|
|
14189
|
+
return u_(i);
|
|
14190
14190
|
// Hours, minutes and optional seconds without `:` delimeter
|
|
14191
14191
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
14192
14192
|
// so this token always has the same output as `XX`
|
|
@@ -14204,7 +14204,7 @@ const oL = 60 * 1e3, aL = {
|
|
|
14204
14204
|
switch (t) {
|
|
14205
14205
|
// Hours and optional minutes
|
|
14206
14206
|
case "x":
|
|
14207
|
-
return
|
|
14207
|
+
return u_(i);
|
|
14208
14208
|
// Hours, minutes and optional seconds without `:` delimeter
|
|
14209
14209
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
14210
14210
|
// so this token always has the same output as `xx`
|
|
@@ -14236,9 +14236,9 @@ const oL = 60 * 1e3, aL = {
|
|
|
14236
14236
|
case "z":
|
|
14237
14237
|
case "zz":
|
|
14238
14238
|
case "zzz":
|
|
14239
|
-
return
|
|
14239
|
+
return s_("short", n, e);
|
|
14240
14240
|
default:
|
|
14241
|
-
return
|
|
14241
|
+
return s_("long", n, e);
|
|
14242
14242
|
}
|
|
14243
14243
|
}
|
|
14244
14244
|
};
|
|
@@ -14259,18 +14259,18 @@ function Ds(n, t = "") {
|
|
|
14259
14259
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), r = hc(Math.floor(i / 60), 2), s = hc(Math.floor(i % 60), 2);
|
|
14260
14260
|
return e + r + t + s;
|
|
14261
14261
|
}
|
|
14262
|
-
function
|
|
14262
|
+
function u_(n, t) {
|
|
14263
14263
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + hc(Math.abs(n) / 60, 2) : Ds(n, t);
|
|
14264
14264
|
}
|
|
14265
14265
|
function lL(n, t = "") {
|
|
14266
14266
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), r = Math.floor(i / 60), s = i % 60;
|
|
14267
14267
|
return s === 0 ? e + String(r) : e + String(r) + t + hc(s, 2);
|
|
14268
14268
|
}
|
|
14269
|
-
function
|
|
14269
|
+
function d_(n) {
|
|
14270
14270
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
14271
14271
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
14272
14272
|
}
|
|
14273
|
-
const sb = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Nd = 36e5,
|
|
14273
|
+
const sb = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Nd = 36e5, h_ = 6e4, cL = 2, dn = {
|
|
14274
14274
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
14275
14275
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
14276
14276
|
// year tokens
|
|
@@ -14330,7 +14330,7 @@ function fc(n, t = {}) {
|
|
|
14330
14330
|
if (d = _a(i.timeZone || t.timeZone, new Date(c + u)), isNaN(d))
|
|
14331
14331
|
return /* @__PURE__ */ new Date(NaN);
|
|
14332
14332
|
} else
|
|
14333
|
-
d =
|
|
14333
|
+
d = d_(new Date(c + u)), d = d_(new Date(c + u + d));
|
|
14334
14334
|
return new Date(c + u + d);
|
|
14335
14335
|
} else
|
|
14336
14336
|
return /* @__PURE__ */ new Date(NaN);
|
|
@@ -14375,7 +14375,7 @@ function hL(n, t) {
|
|
|
14375
14375
|
return e = /* @__PURE__ */ new Date(0), e.setUTCFullYear(t), e;
|
|
14376
14376
|
let s = dn.MM.exec(n);
|
|
14377
14377
|
if (s)
|
|
14378
|
-
return e = /* @__PURE__ */ new Date(0), i = parseInt(s[1], 10) - 1,
|
|
14378
|
+
return e = /* @__PURE__ */ new Date(0), i = parseInt(s[1], 10) - 1, g_(t, i) ? (e.setUTCFullYear(t, i), e) : /* @__PURE__ */ new Date(NaN);
|
|
14379
14379
|
if (s = dn.DDD.exec(n), s) {
|
|
14380
14380
|
e = /* @__PURE__ */ new Date(0);
|
|
14381
14381
|
const a = parseInt(s[1], 10);
|
|
@@ -14384,14 +14384,14 @@ function hL(n, t) {
|
|
|
14384
14384
|
if (s = dn.MMDD.exec(n), s) {
|
|
14385
14385
|
e = /* @__PURE__ */ new Date(0), i = parseInt(s[1], 10) - 1;
|
|
14386
14386
|
const a = parseInt(s[2], 10);
|
|
14387
|
-
return
|
|
14387
|
+
return g_(t, i, a) ? (e.setUTCFullYear(t, i, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
14388
14388
|
}
|
|
14389
14389
|
if (s = dn.Www.exec(n), s)
|
|
14390
|
-
return r = parseInt(s[1], 10) - 1,
|
|
14390
|
+
return r = parseInt(s[1], 10) - 1, p_(r) ? f_(t, r) : /* @__PURE__ */ new Date(NaN);
|
|
14391
14391
|
if (s = dn.WwwD.exec(n), s) {
|
|
14392
14392
|
r = parseInt(s[1], 10) - 1;
|
|
14393
14393
|
const a = parseInt(s[2], 10) - 1;
|
|
14394
|
-
return
|
|
14394
|
+
return p_(r, a) ? f_(t, r, a) : /* @__PURE__ */ new Date(NaN);
|
|
14395
14395
|
}
|
|
14396
14396
|
return null;
|
|
14397
14397
|
}
|
|
@@ -14400,15 +14400,15 @@ function fL(n) {
|
|
|
14400
14400
|
if (i)
|
|
14401
14401
|
return t = parseFloat(i[1].replace(",", ".")), Fd(t) ? t % 24 * Nd : NaN;
|
|
14402
14402
|
if (i = dn.HHMM.exec(n), i)
|
|
14403
|
-
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")), Fd(t, e) ? t % 24 * Nd + e *
|
|
14403
|
+
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")), Fd(t, e) ? t % 24 * Nd + e * h_ : NaN;
|
|
14404
14404
|
if (i = dn.HHMMSS.exec(n), i) {
|
|
14405
14405
|
t = parseInt(i[1], 10), e = parseInt(i[2], 10);
|
|
14406
14406
|
const r = parseFloat(i[3].replace(",", "."));
|
|
14407
|
-
return Fd(t, e, r) ? t % 24 * Nd + e *
|
|
14407
|
+
return Fd(t, e, r) ? t % 24 * Nd + e * h_ + r * 1e3 : NaN;
|
|
14408
14408
|
}
|
|
14409
14409
|
return null;
|
|
14410
14410
|
}
|
|
14411
|
-
function
|
|
14411
|
+
function f_(n, t, e) {
|
|
14412
14412
|
t = t || 0, e = e || 0;
|
|
14413
14413
|
const i = /* @__PURE__ */ new Date(0);
|
|
14414
14414
|
i.setUTCFullYear(n, 0, 4);
|
|
@@ -14419,7 +14419,7 @@ const gL = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], pL = [31, 29, 31, 3
|
|
|
14419
14419
|
function ob(n) {
|
|
14420
14420
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
14421
14421
|
}
|
|
14422
|
-
function
|
|
14422
|
+
function g_(n, t, e) {
|
|
14423
14423
|
if (t < 0 || t > 11)
|
|
14424
14424
|
return !1;
|
|
14425
14425
|
if (e != null) {
|
|
@@ -14437,7 +14437,7 @@ function mL(n, t) {
|
|
|
14437
14437
|
const e = ob(n);
|
|
14438
14438
|
return !(e && t > 366 || !e && t > 365);
|
|
14439
14439
|
}
|
|
14440
|
-
function
|
|
14440
|
+
function p_(n, t) {
|
|
14441
14441
|
return !(n < 0 || n > 52 || t != null && (t < 0 || t > 6));
|
|
14442
14442
|
}
|
|
14443
14443
|
function Fd(n, t, e) {
|
|
@@ -14480,7 +14480,7 @@ function bL(n, t, e) {
|
|
|
14480
14480
|
function vL(n, t) {
|
|
14481
14481
|
return -_a(n, t);
|
|
14482
14482
|
}
|
|
14483
|
-
function
|
|
14483
|
+
function m_(n, t = {}) {
|
|
14484
14484
|
const e = t?.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
14485
14485
|
let i = "MMM dd, yyy hh:mm a";
|
|
14486
14486
|
switch (t.format) {
|
|
@@ -14529,9 +14529,9 @@ function zd(n) {
|
|
|
14529
14529
|
}
|
|
14530
14530
|
var Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $l = { exports: {} };
|
|
14531
14531
|
$l.exports;
|
|
14532
|
-
var
|
|
14532
|
+
var __;
|
|
14533
14533
|
function SL() {
|
|
14534
|
-
return
|
|
14534
|
+
return __ || (__ = 1, (function(n, t) {
|
|
14535
14535
|
var e = 200, i = "__lodash_hash_undefined__", r = 9007199254740991, s = "[object Arguments]", a = "[object Array]", c = "[object Boolean]", u = "[object Date]", d = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", b = "[object Object]", x = "[object Promise]", S = "[object RegExp]", k = "[object Set]", A = "[object String]", U = "[object Symbol]", P = "[object WeakMap]", E = "[object ArrayBuffer]", L = "[object DataView]", N = "[object Float32Array]", M = "[object Float64Array]", w = "[object Int8Array]", C = "[object Int16Array]", F = "[object Int32Array]", W = "[object Uint8Array]", et = "[object Uint8ClampedArray]", K = "[object Uint16Array]", nt = "[object Uint32Array]", Q = /[\\^$.*+?()[\]{}|]/g, it = /\w*$/, st = /^\[object .+?Constructor\]$/, rt = /^(?:0|[1-9]\d*)$/, lt = {};
|
|
14536
14536
|
lt[s] = lt[a] = lt[E] = lt[L] = lt[c] = lt[u] = lt[N] = lt[M] = lt[w] = lt[C] = lt[F] = lt[m] = lt[_] = lt[b] = lt[S] = lt[k] = lt[A] = lt[U] = lt[W] = lt[et] = lt[K] = lt[nt] = !0, lt[d] = lt[f] = lt[P] = !1;
|
|
14537
14537
|
var B = typeof Bl == "object" && Bl && Bl.Object === Object && Bl, V = typeof self == "object" && self && self.Object === Object && self, X = B || V || Function("return this")(), vt = t && !t.nodeType && t, ht = vt && !0 && n && !n.nodeType && n, J = ht && ht.exports === vt;
|
|
@@ -15307,7 +15307,7 @@ mt.FIFTEEN_MIN, new Ye({
|
|
|
15307
15307
|
timeframeLength: () => {
|
|
15308
15308
|
let n = 0;
|
|
15309
15309
|
const t = Es(/* @__PURE__ */ new Date()), e = Es(ib(/* @__PURE__ */ new Date()));
|
|
15310
|
-
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n =
|
|
15310
|
+
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n = y_(t, e)), 3600 * 24 * $I((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + r_(n);
|
|
15311
15311
|
},
|
|
15312
15312
|
defaultResponseGranularity: "daily",
|
|
15313
15313
|
dataGranularity: "daily",
|
|
@@ -15332,18 +15332,18 @@ mt.FIFTEEN_MIN, new Ye({
|
|
|
15332
15332
|
timeframeLength: () => {
|
|
15333
15333
|
const n = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
15334
15334
|
let e = 0;
|
|
15335
|
-
return n.getTimezoneOffset() !== t.getTimezoneOffset() && (e =
|
|
15335
|
+
return n.getTimezoneOffset() !== t.getTimezoneOffset() && (e = y_(n, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + r_(e);
|
|
15336
15336
|
},
|
|
15337
15337
|
defaultResponseGranularity: "daily",
|
|
15338
15338
|
dataGranularity: "daily",
|
|
15339
15339
|
isRelative: !1,
|
|
15340
15340
|
allowedTiers: ["plus", "enterprise"]
|
|
15341
15341
|
});
|
|
15342
|
-
function
|
|
15342
|
+
function y_(n, t) {
|
|
15343
15343
|
return qI(n.getTimezoneOffset() - t.getTimezoneOffset());
|
|
15344
15344
|
}
|
|
15345
15345
|
mt.FIFTEEN_MIN, mt.ONE_HOUR, mt.SIX_HOUR, mt.TWELVE_HOUR, mt.ONE_DAY, mt.SEVEN_DAY, mt.FIFTEEN_MIN, mt.ONE_HOUR, mt.SIX_HOUR, mt.TWELVE_HOUR, mt.ONE_DAY, mt.SEVEN_DAY, mt.THIRTY_DAY, mt.NINETY_DAY, mt.ONE_HUNDRED_EIGHTY_DAY, mt.ONE_YEAR, mt.CURRENT_WEEK, mt.CURRENT_MONTH, mt.CURRENT_QUARTER, mt.CURRENT_YEAR, mt.PREVIOUS_WEEK, mt.PREVIOUS_MONTH, mt.PREVIOUS_QUARTER, mt.PREVIOUS_YEAR;
|
|
15346
|
-
const PL = new Map(Zy.map((n) => [n.code, { code: n.code, name: n.name }])), yh = (n) => PL.get(n)?.name || n,
|
|
15346
|
+
const PL = new Map(Zy.map((n) => [n.code, { code: n.code, name: n.name }])), yh = (n) => PL.get(n)?.name || n, b_ = 1e3, EL = 1e4, v_ = 1e6, x_ = 1e9, w_ = 1e12, Vl = (n, t) => {
|
|
15347
15347
|
if (t.separator === !1 || n < 1e3)
|
|
15348
15348
|
return n.toString();
|
|
15349
15349
|
const e = typeof t.separator == "string" ? t.separator : ",", i = [];
|
|
@@ -15363,8 +15363,8 @@ function ql(n, t = {}) {
|
|
|
15363
15363
|
let e;
|
|
15364
15364
|
const i = n < 0;
|
|
15365
15365
|
i && (n = Math.abs(n)), t.precision && (n = parseFloat(n.toPrecision(t.precision)));
|
|
15366
|
-
const r = t.min10k ? EL :
|
|
15367
|
-
return n < r || t.precision && t.precision > Math.log10(n) ? e = Vl(Eo(n, 1, t), t) : n <
|
|
15366
|
+
const r = t.min10k ? EL : b_;
|
|
15367
|
+
return n < r || t.precision && t.precision > Math.log10(n) ? e = Vl(Eo(n, 1, t), t) : n < v_ ? e = `${Eo(n, b_, t)}k` : n < x_ ? e = `${Eo(n, v_, t)}m` : n < w_ ? e = `${Vl(Eo(n, x_, t), t)}b` : e = `${Vl(Eo(n, w_, t), t)}t`, i && (e = `-${e}`), t.capital && (e = e.toUpperCase()), t.prefix && (e = `${t.prefix}${e}`), t.suffix && (e = `${e}${t.suffix}`), e;
|
|
15368
15368
|
}
|
|
15369
15369
|
ql.addCommas = Vl;
|
|
15370
15370
|
const IL = typeof document < "u" && document.documentElement?.lang || "en-US", jl = new Intl.NumberFormat(IL);
|
|
@@ -15503,7 +15503,7 @@ const hb = (n, t, e) => {
|
|
|
15503
15503
|
value: t && t[r.text],
|
|
15504
15504
|
isSegmentEmpty: i.datasets[s].isSegmentEmpty
|
|
15505
15505
|
}))).sort(e);
|
|
15506
|
-
}, YW = 2, HL = 10, WL = 12, bh = 10, YL = "#f1f0ff", $L = "#e0e4ea",
|
|
15506
|
+
}, YW = 2, HL = 10, WL = 12, bh = 10, YL = "#f1f0ff", $L = "#e0e4ea", S_ = "#6c7489", VL = "#afb7c5", qL = "#d60027", jL = "#ad000e", sf = "#6c7489", T_ = "#52596e", GL = "#007d60", KL = "#995c00", XL = "#ffc400", ZL = "'Inter', Roboto, Helvetica, sans-serif", oa = "16px", QL = "20px", JL = "#bee2ff", tN = "#8fc1ff", eN = "#5f9aff", nN = "#306fff", iN = "#b5ffee", rN = "#00fabe", sN = "#00d6a4", oN = "#00a17b", aN = "#007d60", lN = "#005944", cN = "#b5ffee", uN = "#00fabe", dN = "#b5ffee", hN = "#00a17b", fN = "#fff296", gN = "#ffe04b", pN = "#ffc400", mN = "#b37600", _N = "#995c00", yN = "#804400", bN = "#fff296", vN = "#ffe04b", xN = "#ffc2b3", wN = "#ff9877", SN = "#ff723c", TN = "#f75008", MN = "#d13500", DN = "#a31f00", kN = "#ffc2b3", CN = "#ff9877", ON = "#ff723c", AN = "#f75008", RN = "#d13500", PN = "#a31f00", EN = "#ffc2b3", IN = "#ff9877", LN = "#ff723c", NN = "#f75008", FN = "#d13500", zN = "#a31f00", UN = "#ffc2b3", BN = "#ff9877", HN = "#ff723c", WN = "#f75008", YN = "#d13500", $N = "#a31f00", VN = "#ffc2b3", qN = "#ff9877", jN = "#ff723c", GN = "#f75008", KN = "#d13500", XN = "#ffabab", ZN = "#ff7272", QN = "#ff3954", JN = "#f50045", tF = "#d60027", eF = "#ad000e", nF = "#ffabab", iF = "#ff7272", rF = "#ff3954", sF = "#f50045", oF = "#d60027", aF = "#eefaff", lF = "#ecfffb", cF = "#fffce0", uF = "#fff1ef", dF = "#ffe5e5", hF = "#5f9aff", fF = "#00d6a4", gF = "#ffc400", pF = "#ff723c", mF = "#ff3954", hr = [
|
|
15507
15507
|
"#a86cd5",
|
|
15508
15508
|
"#6a86d2",
|
|
15509
15509
|
"#00bbf9",
|
|
@@ -15528,16 +15528,16 @@ const hb = (n, t, e) => {
|
|
|
15528
15528
|
case "warning":
|
|
15529
15529
|
return XL;
|
|
15530
15530
|
case "neutral":
|
|
15531
|
-
return
|
|
15531
|
+
return S_;
|
|
15532
15532
|
default:
|
|
15533
|
-
return
|
|
15533
|
+
return S_;
|
|
15534
15534
|
}
|
|
15535
15535
|
}, vF = {
|
|
15536
15536
|
lineTension: 0,
|
|
15537
15537
|
pointBorderWidth: 1.2,
|
|
15538
15538
|
borderJoinStyle: "round",
|
|
15539
15539
|
fill: !0
|
|
15540
|
-
}, xF = 2, wF = 0, Bd = /* @__PURE__ */ new Map(),
|
|
15540
|
+
}, xF = 2, wF = 0, Bd = /* @__PURE__ */ new Map(), M_ = (n, t) => {
|
|
15541
15541
|
const { i18n: e } = Ft.useI18n(), { formatBytes: i } = Gr({ i18n: e });
|
|
15542
15542
|
return t === "bytes" ? i(n) : t === "count/minute" ? n.toFixed(2) : jl.format(n);
|
|
15543
15543
|
}, SF = (n) => {
|
|
@@ -15633,7 +15633,7 @@ const hb = (n, t, e) => {
|
|
|
15633
15633
|
____OTHER____: YL,
|
|
15634
15634
|
...AF
|
|
15635
15635
|
};
|
|
15636
|
-
function
|
|
15636
|
+
function D_(n, t, e) {
|
|
15637
15637
|
const i = Fy(), r = LF(n, e.timeZone, e.locale ?? i.locale);
|
|
15638
15638
|
return "formatToParts" in r ? EF(r, t) : IF(r, t);
|
|
15639
15639
|
}
|
|
@@ -15690,7 +15690,7 @@ function UF(n, t) {
|
|
|
15690
15690
|
parseInt(i[6], 10)
|
|
15691
15691
|
];
|
|
15692
15692
|
}
|
|
15693
|
-
const Wd = {},
|
|
15693
|
+
const Wd = {}, k_ = new Intl.DateTimeFormat("en-US", {
|
|
15694
15694
|
hourCycle: "h23",
|
|
15695
15695
|
timeZone: "America/New_York",
|
|
15696
15696
|
year: "numeric",
|
|
@@ -15699,7 +15699,7 @@ const Wd = {}, k0 = new Intl.DateTimeFormat("en-US", {
|
|
|
15699
15699
|
hour: "2-digit",
|
|
15700
15700
|
minute: "2-digit",
|
|
15701
15701
|
second: "2-digit"
|
|
15702
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), BF =
|
|
15702
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), BF = k_ === "06/25/2014, 00:00:00" || k_ === "06/25/2014 00:00:00";
|
|
15703
15703
|
function HF(n) {
|
|
15704
15704
|
return Wd[n] || (Wd[n] = BF ? new Intl.DateTimeFormat("en-US", {
|
|
15705
15705
|
hourCycle: "h23",
|
|
@@ -15725,7 +15725,7 @@ function gb(n, t, e, i, r, s, a) {
|
|
|
15725
15725
|
const c = /* @__PURE__ */ new Date(0);
|
|
15726
15726
|
return c.setUTCFullYear(n, t, e), c.setUTCHours(i, r, s, a), c;
|
|
15727
15727
|
}
|
|
15728
|
-
const
|
|
15728
|
+
const C_ = 36e5, WF = 6e4, Yd = {
|
|
15729
15729
|
timezoneZ: /^(Z)$/,
|
|
15730
15730
|
timezoneHH: /^([+-]\d{2})$/,
|
|
15731
15731
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -15738,11 +15738,11 @@ function of(n, t, e) {
|
|
|
15738
15738
|
return 0;
|
|
15739
15739
|
let r, s;
|
|
15740
15740
|
if (i = Yd.timezoneHH.exec(n), i)
|
|
15741
|
-
return r = parseInt(i[1], 10),
|
|
15741
|
+
return r = parseInt(i[1], 10), O_(r) ? -(r * C_) : NaN;
|
|
15742
15742
|
if (i = Yd.timezoneHHMM.exec(n), i) {
|
|
15743
15743
|
r = parseInt(i[2], 10);
|
|
15744
15744
|
const a = parseInt(i[3], 10);
|
|
15745
|
-
return
|
|
15745
|
+
return O_(r, a) ? (s = Math.abs(r) * C_ + a * WF, i[1] === "+" ? -s : s) : NaN;
|
|
15746
15746
|
}
|
|
15747
15747
|
if (VF(n)) {
|
|
15748
15748
|
t = new Date(t || Date.now());
|
|
@@ -15769,15 +15769,15 @@ function $F(n, t, e) {
|
|
|
15769
15769
|
const a = xh(new Date(r), e);
|
|
15770
15770
|
return s === a ? s : Math.max(s, a);
|
|
15771
15771
|
}
|
|
15772
|
-
function
|
|
15772
|
+
function O_(n, t) {
|
|
15773
15773
|
return -23 <= n && n <= 23 && (t == null || 0 <= t && t <= 59);
|
|
15774
15774
|
}
|
|
15775
|
-
const
|
|
15775
|
+
const A_ = {};
|
|
15776
15776
|
function VF(n) {
|
|
15777
|
-
if (
|
|
15777
|
+
if (A_[n])
|
|
15778
15778
|
return !0;
|
|
15779
15779
|
try {
|
|
15780
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: n }),
|
|
15780
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: n }), A_[n] = !0, !0;
|
|
15781
15781
|
} catch {
|
|
15782
15782
|
return !1;
|
|
15783
15783
|
}
|
|
@@ -15791,7 +15791,7 @@ const qF = 60 * 1e3, jF = {
|
|
|
15791
15791
|
switch (t) {
|
|
15792
15792
|
// Hours and optional minutes
|
|
15793
15793
|
case "X":
|
|
15794
|
-
return
|
|
15794
|
+
return R_(i);
|
|
15795
15795
|
// Hours, minutes and optional seconds without `:` delimeter
|
|
15796
15796
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
15797
15797
|
// so this token always has the same output as `XX`
|
|
@@ -15809,7 +15809,7 @@ const qF = 60 * 1e3, jF = {
|
|
|
15809
15809
|
switch (t) {
|
|
15810
15810
|
// Hours and optional minutes
|
|
15811
15811
|
case "x":
|
|
15812
|
-
return
|
|
15812
|
+
return R_(i);
|
|
15813
15813
|
// Hours, minutes and optional seconds without `:` delimeter
|
|
15814
15814
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
15815
15815
|
// so this token always has the same output as `xx`
|
|
@@ -15841,9 +15841,9 @@ const qF = 60 * 1e3, jF = {
|
|
|
15841
15841
|
case "z":
|
|
15842
15842
|
case "zz":
|
|
15843
15843
|
case "zzz":
|
|
15844
|
-
return
|
|
15844
|
+
return D_("short", n, e);
|
|
15845
15845
|
default:
|
|
15846
|
-
return
|
|
15846
|
+
return D_("long", n, e);
|
|
15847
15847
|
}
|
|
15848
15848
|
}
|
|
15849
15849
|
};
|
|
@@ -15864,18 +15864,18 @@ function ks(n, t = "") {
|
|
|
15864
15864
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), r = pc(Math.floor(i / 60), 2), s = pc(Math.floor(i % 60), 2);
|
|
15865
15865
|
return e + r + t + s;
|
|
15866
15866
|
}
|
|
15867
|
-
function
|
|
15867
|
+
function R_(n, t) {
|
|
15868
15868
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + pc(Math.abs(n) / 60, 2) : ks(n, t);
|
|
15869
15869
|
}
|
|
15870
15870
|
function GF(n, t = "") {
|
|
15871
15871
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), r = Math.floor(i / 60), s = i % 60;
|
|
15872
15872
|
return s === 0 ? e + String(r) : e + String(r) + t + pc(s, 2);
|
|
15873
15873
|
}
|
|
15874
|
-
function
|
|
15874
|
+
function P_(n) {
|
|
15875
15875
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
15876
15876
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
15877
15877
|
}
|
|
15878
|
-
const KF = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Vd = 36e5,
|
|
15878
|
+
const KF = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Vd = 36e5, E_ = 6e4, XF = 2, hn = {
|
|
15879
15879
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
15880
15880
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
15881
15881
|
// year tokens
|
|
@@ -15935,7 +15935,7 @@ function pb(n, t = {}) {
|
|
|
15935
15935
|
if (d = of(i.timeZone || t.timeZone, new Date(c + u)), isNaN(d))
|
|
15936
15936
|
return /* @__PURE__ */ new Date(NaN);
|
|
15937
15937
|
} else
|
|
15938
|
-
d =
|
|
15938
|
+
d = P_(new Date(c + u)), d = P_(new Date(c + u + d));
|
|
15939
15939
|
return new Date(c + u + d);
|
|
15940
15940
|
} else
|
|
15941
15941
|
return /* @__PURE__ */ new Date(NaN);
|
|
@@ -15980,7 +15980,7 @@ function JF(n, t) {
|
|
|
15980
15980
|
return e = /* @__PURE__ */ new Date(0), e.setUTCFullYear(t), e;
|
|
15981
15981
|
let s = hn.MM.exec(n);
|
|
15982
15982
|
if (s)
|
|
15983
|
-
return e = /* @__PURE__ */ new Date(0), i = parseInt(s[1], 10) - 1,
|
|
15983
|
+
return e = /* @__PURE__ */ new Date(0), i = parseInt(s[1], 10) - 1, L_(t, i) ? (e.setUTCFullYear(t, i), e) : /* @__PURE__ */ new Date(NaN);
|
|
15984
15984
|
if (s = hn.DDD.exec(n), s) {
|
|
15985
15985
|
e = /* @__PURE__ */ new Date(0);
|
|
15986
15986
|
const a = parseInt(s[1], 10);
|
|
@@ -15989,14 +15989,14 @@ function JF(n, t) {
|
|
|
15989
15989
|
if (s = hn.MMDD.exec(n), s) {
|
|
15990
15990
|
e = /* @__PURE__ */ new Date(0), i = parseInt(s[1], 10) - 1;
|
|
15991
15991
|
const a = parseInt(s[2], 10);
|
|
15992
|
-
return
|
|
15992
|
+
return L_(t, i, a) ? (e.setUTCFullYear(t, i, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
15993
15993
|
}
|
|
15994
15994
|
if (s = hn.Www.exec(n), s)
|
|
15995
|
-
return r = parseInt(s[1], 10) - 1,
|
|
15995
|
+
return r = parseInt(s[1], 10) - 1, N_(r) ? I_(t, r) : /* @__PURE__ */ new Date(NaN);
|
|
15996
15996
|
if (s = hn.WwwD.exec(n), s) {
|
|
15997
15997
|
r = parseInt(s[1], 10) - 1;
|
|
15998
15998
|
const a = parseInt(s[2], 10) - 1;
|
|
15999
|
-
return
|
|
15999
|
+
return N_(r, a) ? I_(t, r, a) : /* @__PURE__ */ new Date(NaN);
|
|
16000
16000
|
}
|
|
16001
16001
|
return null;
|
|
16002
16002
|
}
|
|
@@ -16005,15 +16005,15 @@ function tz(n) {
|
|
|
16005
16005
|
if (i)
|
|
16006
16006
|
return t = parseFloat(i[1].replace(",", ".")), qd(t) ? t % 24 * Vd : NaN;
|
|
16007
16007
|
if (i = hn.HHMM.exec(n), i)
|
|
16008
|
-
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")), qd(t, e) ? t % 24 * Vd + e *
|
|
16008
|
+
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")), qd(t, e) ? t % 24 * Vd + e * E_ : NaN;
|
|
16009
16009
|
if (i = hn.HHMMSS.exec(n), i) {
|
|
16010
16010
|
t = parseInt(i[1], 10), e = parseInt(i[2], 10);
|
|
16011
16011
|
const r = parseFloat(i[3].replace(",", "."));
|
|
16012
|
-
return qd(t, e, r) ? t % 24 * Vd + e *
|
|
16012
|
+
return qd(t, e, r) ? t % 24 * Vd + e * E_ + r * 1e3 : NaN;
|
|
16013
16013
|
}
|
|
16014
16014
|
return null;
|
|
16015
16015
|
}
|
|
16016
|
-
function
|
|
16016
|
+
function I_(n, t, e) {
|
|
16017
16017
|
t = t || 0, e = e || 0;
|
|
16018
16018
|
const i = /* @__PURE__ */ new Date(0);
|
|
16019
16019
|
i.setUTCFullYear(n, 0, 4);
|
|
@@ -16024,7 +16024,7 @@ const ez = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], nz = [31, 29, 31, 3
|
|
|
16024
16024
|
function mb(n) {
|
|
16025
16025
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
16026
16026
|
}
|
|
16027
|
-
function
|
|
16027
|
+
function L_(n, t, e) {
|
|
16028
16028
|
if (t < 0 || t > 11)
|
|
16029
16029
|
return !1;
|
|
16030
16030
|
if (e != null) {
|
|
@@ -16042,7 +16042,7 @@ function iz(n, t) {
|
|
|
16042
16042
|
const e = mb(n);
|
|
16043
16043
|
return !(e && t > 366 || !e && t > 365);
|
|
16044
16044
|
}
|
|
16045
|
-
function
|
|
16045
|
+
function N_(n, t) {
|
|
16046
16046
|
return !(n < 0 || n > 52 || t != null && (t < 0 || t > 6));
|
|
16047
16047
|
}
|
|
16048
16048
|
function qd(n, t, e) {
|
|
@@ -16316,7 +16316,7 @@ function pz(n, t, e, i, r) {
|
|
|
16316
16316
|
};
|
|
16317
16317
|
return pr(() => {
|
|
16318
16318
|
s.value = a(e.value, r.value);
|
|
16319
|
-
}),
|
|
16319
|
+
}), b0(() => {
|
|
16320
16320
|
At(s.value) || s.value.destroy();
|
|
16321
16321
|
}), Ee(e, (c, u) => {
|
|
16322
16322
|
if (gz(u, c) && !At(s.value)) {
|
|
@@ -16333,7 +16333,7 @@ function pz(n, t, e, i, r) {
|
|
|
16333
16333
|
JSON.stringify(c.scales.y.title) !== JSON.stringify(u.scales.y.title)) && (At(s.value) || s.value.destroy(), s.value = a(e.value, c));
|
|
16334
16334
|
}), s;
|
|
16335
16335
|
}
|
|
16336
|
-
const
|
|
16336
|
+
const F_ = 1e3, mz = 1e4, z_ = 1e6, U_ = 1e9, B_ = 1e12, Ho = (n, t) => {
|
|
16337
16337
|
if (t.separator === !1 || n < 1e3)
|
|
16338
16338
|
return n.toString();
|
|
16339
16339
|
const e = typeof t.separator == "string" ? t.separator : ",", i = [];
|
|
@@ -16353,8 +16353,8 @@ function aa(n, t = {}) {
|
|
|
16353
16353
|
let e;
|
|
16354
16354
|
const i = n < 0;
|
|
16355
16355
|
i && (n = Math.abs(n)), t.precision && (n = parseFloat(n.toPrecision(t.precision)));
|
|
16356
|
-
const r = t.min10k ? mz :
|
|
16357
|
-
return n < r || t.precision && t.precision > Math.log10(n) ? e = Ho(Ts(n, 1, t), t) : n <
|
|
16356
|
+
const r = t.min10k ? mz : F_;
|
|
16357
|
+
return n < r || t.precision && t.precision > Math.log10(n) ? e = Ho(Ts(n, 1, t), t) : n < z_ ? e = `${Ts(n, F_, t)}k` : n < U_ ? e = `${Ts(n, z_, t)}m` : n < B_ ? e = `${Ho(Ts(n, U_, t), t)}b` : e = `${Ho(Ts(n, B_, t), t)}t`, i && (e = `-${e}`), t.capital && (e = e.toUpperCase()), t.prefix && (e = `${t.prefix}${e}`), t.suffix && (e = `${e}${t.suffix}`), e;
|
|
16358
16358
|
}
|
|
16359
16359
|
aa.addCommas = Ho;
|
|
16360
16360
|
function _z(n, t, e) {
|
|
@@ -16386,7 +16386,7 @@ function yz(n) {
|
|
|
16386
16386
|
if (!n.value?.meta)
|
|
16387
16387
|
return "";
|
|
16388
16388
|
const e = n.value.meta.start, i = n.value.meta.end;
|
|
16389
|
-
return e && i ? `${
|
|
16389
|
+
return e && i ? `${m_(new Date(e))} - ${m_(new Date(i), { includeTZ: !0 })}` : "";
|
|
16390
16390
|
});
|
|
16391
16391
|
}
|
|
16392
16392
|
function bz(n) {
|
|
@@ -16760,7 +16760,7 @@ function Cz() {
|
|
|
16760
16760
|
return Xo(e) ? "" : n.te(s) ? n.t(s, { plural: r ? "" : "s" }) : e;
|
|
16761
16761
|
} };
|
|
16762
16762
|
}
|
|
16763
|
-
const Oz = "analytics-query-provider",
|
|
16763
|
+
const Oz = "analytics-query-provider", H_ = 2;
|
|
16764
16764
|
function Az() {
|
|
16765
16765
|
const n = Jo(Oz);
|
|
16766
16766
|
return {
|
|
@@ -16804,7 +16804,7 @@ function Lz(n, t = {}) {
|
|
|
16804
16804
|
return e;
|
|
16805
16805
|
}
|
|
16806
16806
|
function Nz(n, t = !0, e) {
|
|
16807
|
-
Iz() ? pr(n, e) : t ? n() :
|
|
16807
|
+
Iz() ? pr(n, e) : t ? n() : v0(n);
|
|
16808
16808
|
}
|
|
16809
16809
|
function Fz(n, t, e) {
|
|
16810
16810
|
return Ee(n, t, {
|
|
@@ -17162,7 +17162,7 @@ const Ft = {
|
|
|
17162
17162
|
useSparklineSync: Gz
|
|
17163
17163
|
};
|
|
17164
17164
|
var zn = /* @__PURE__ */ ((n) => (n.Hidden = "hidden", n.Bottom = "bottom", n))(zn || {});
|
|
17165
|
-
const
|
|
17165
|
+
const W_ = {
|
|
17166
17166
|
modes: {
|
|
17167
17167
|
/**
|
|
17168
17168
|
* Point mode returns all elements that hit test based on the event position
|
|
@@ -17206,7 +17206,7 @@ const W0 = {
|
|
|
17206
17206
|
}
|
|
17207
17207
|
};
|
|
17208
17208
|
function af(n, t, e) {
|
|
17209
|
-
return (
|
|
17209
|
+
return (W_.modes[e.mode] || W_.modes.nearest)(n, t, e);
|
|
17210
17210
|
}
|
|
17211
17211
|
function Kz(n, t, e) {
|
|
17212
17212
|
return e !== "x" && e !== "y" ? n.inRange(t.x, t.y, "x", !0) || n.inRange(t.x, t.y, "y", !0) : n.inRange(t.x, t.y, e, !0);
|
|
@@ -17287,7 +17287,7 @@ function iU(n, t) {
|
|
|
17287
17287
|
return r === "center" ? e + i / 2 : r === "end" || r === "right" ? e + i : e;
|
|
17288
17288
|
}
|
|
17289
17289
|
function Cb(n, t, { borderWidth: e, position: i, xAdjust: r, yAdjust: s }, a) {
|
|
17290
|
-
const c = zt(a), u = t.width + (c ? a.width : 0) + e, d = t.height + (c ? a.height : 0) + e, f = cf(i), g =
|
|
17290
|
+
const c = zt(a), u = t.width + (c ? a.width : 0) + e, d = t.height + (c ? a.height : 0) + e, f = cf(i), g = Y_(n.x, u, r, f.x), m = Y_(n.y, d, s, f.y);
|
|
17291
17291
|
return {
|
|
17292
17292
|
x: g,
|
|
17293
17293
|
y: m,
|
|
@@ -17319,7 +17319,7 @@ function Ab(n, t) {
|
|
|
17319
17319
|
function Rb(n) {
|
|
17320
17320
|
return n && (Dn(n.xValue) || Dn(n.yValue));
|
|
17321
17321
|
}
|
|
17322
|
-
function
|
|
17322
|
+
function Y_(n, t, e = 0, i) {
|
|
17323
17323
|
return n - lf(t, i) + e;
|
|
17324
17324
|
}
|
|
17325
17325
|
function Ys(n, t, e) {
|
|
@@ -17532,7 +17532,7 @@ function xU(n, t, e) {
|
|
|
17532
17532
|
let a = i, c = r;
|
|
17533
17533
|
return e === "left" ? a += s : e === "right" ? a -= s : e === "top" ? c += s : e === "bottom" && (c -= s), n.inRange(a, c);
|
|
17534
17534
|
}
|
|
17535
|
-
const $
|
|
17535
|
+
const $_ = {
|
|
17536
17536
|
xScaleID: { min: "xMin", max: "xMax", start: "left", end: "right", startProp: "x", endProp: "x2" },
|
|
17537
17537
|
yScaleID: { min: "yMin", max: "yMax", start: "bottom", end: "top", startProp: "y", endProp: "y2" }
|
|
17538
17538
|
};
|
|
@@ -17565,9 +17565,9 @@ function uf(n, t) {
|
|
|
17565
17565
|
if (!i && !r)
|
|
17566
17566
|
return {};
|
|
17567
17567
|
let { left: s, right: a } = i || n.chartArea, { top: c, bottom: u } = r || n.chartArea;
|
|
17568
|
-
const d =
|
|
17568
|
+
const d = V_(i, { min: t.xMin, max: t.xMax, start: s, end: a });
|
|
17569
17569
|
s = d.start, a = d.end;
|
|
17570
|
-
const f =
|
|
17570
|
+
const f = V_(r, { min: t.yMin, max: t.yMax, start: u, end: c });
|
|
17571
17571
|
return c = f.start, u = f.end, {
|
|
17572
17572
|
x: s,
|
|
17573
17573
|
y: c,
|
|
@@ -17626,7 +17626,7 @@ function SU(n, t) {
|
|
|
17626
17626
|
height: i
|
|
17627
17627
|
};
|
|
17628
17628
|
}
|
|
17629
|
-
function
|
|
17629
|
+
function V_(n, t) {
|
|
17630
17630
|
const e = Fb(n, t) || t;
|
|
17631
17631
|
return {
|
|
17632
17632
|
start: Math.min(e.start, e.end),
|
|
@@ -17638,10 +17638,10 @@ function TU(n, t, e) {
|
|
|
17638
17638
|
n.isHorizontal() ? (t.x = i, t.x2 = r) : (t.y = i, t.y2 = r);
|
|
17639
17639
|
}
|
|
17640
17640
|
function MU(n, t, e) {
|
|
17641
|
-
for (const i of Object.keys($
|
|
17641
|
+
for (const i of Object.keys($_)) {
|
|
17642
17642
|
const r = n[Yr(n, e, i)];
|
|
17643
17643
|
if (r) {
|
|
17644
|
-
const { min: s, max: a, start: c, end: u, startProp: d, endProp: f } = $
|
|
17644
|
+
const { min: s, max: a, start: c, end: u, startProp: d, endProp: f } = $_[i], g = Fb(r, { min: e[s], max: e[a], start: r[c], end: r[u] });
|
|
17645
17645
|
t[d] = g.start, t[f] = g.end;
|
|
17646
17646
|
}
|
|
17647
17647
|
}
|
|
@@ -17712,10 +17712,10 @@ function RU(n, t, e) {
|
|
|
17712
17712
|
const r = n.hovered;
|
|
17713
17713
|
n.hovered = i;
|
|
17714
17714
|
const s = { state: n, event: t };
|
|
17715
|
-
let a =
|
|
17716
|
-
return
|
|
17715
|
+
let a = q_(s, "leave", r, i);
|
|
17716
|
+
return q_(s, "enter", i, r) || a;
|
|
17717
17717
|
}
|
|
17718
|
-
function
|
|
17718
|
+
function q_({ state: n, event: t }, e, i, r) {
|
|
17719
17719
|
let s;
|
|
17720
17720
|
for (const a of i)
|
|
17721
17721
|
r.indexOf(a) < 0 && (s = Wb(a.options[e] || n.listeners[e], a, t) || s);
|
|
@@ -17740,7 +17740,7 @@ function EU(n, t, e) {
|
|
|
17740
17740
|
});
|
|
17741
17741
|
});
|
|
17742
17742
|
}
|
|
17743
|
-
function
|
|
17743
|
+
function j_(n, t, e) {
|
|
17744
17744
|
if (n.hooked) {
|
|
17745
17745
|
const i = t.options[e] || n.hooks[e];
|
|
17746
17746
|
return re(i, [t.$context]);
|
|
@@ -17748,14 +17748,14 @@ function j0(n, t, e) {
|
|
|
17748
17748
|
}
|
|
17749
17749
|
function IU(n, t, e) {
|
|
17750
17750
|
const i = UU(n.scales, t, e);
|
|
17751
|
-
let r =
|
|
17752
|
-
r =
|
|
17751
|
+
let r = G_(t, i, "min", "suggestedMin");
|
|
17752
|
+
r = G_(t, i, "max", "suggestedMax") || r, r && Tn(t.handleTickRangeOptions) && t.handleTickRangeOptions();
|
|
17753
17753
|
}
|
|
17754
17754
|
function LU(n, t) {
|
|
17755
17755
|
for (const e of n)
|
|
17756
17756
|
FU(e, t);
|
|
17757
17757
|
}
|
|
17758
|
-
function
|
|
17758
|
+
function G_(n, t, e, i) {
|
|
17759
17759
|
if (ye(t[e]) && !NU(n.options, e, i)) {
|
|
17760
17760
|
const r = n[e] !== t[e];
|
|
17761
17761
|
return n[e] = t[e], r;
|
|
@@ -17785,10 +17785,10 @@ function UU(n, t, e) {
|
|
|
17785
17785
|
max: Ot(t.max, Number.POSITIVE_INFINITY)
|
|
17786
17786
|
};
|
|
17787
17787
|
for (const c of e)
|
|
17788
|
-
c.scaleID === r ?
|
|
17788
|
+
c.scaleID === r ? K_(c, t, ["value", "endValue"], a) : Yr(n, c, s) === r && K_(c, t, [i + "Min", i + "Max", i + "Value"], a);
|
|
17789
17789
|
return a;
|
|
17790
17790
|
}
|
|
17791
|
-
function
|
|
17791
|
+
function K_(n, t, e, i) {
|
|
17792
17792
|
for (const r of e) {
|
|
17793
17793
|
const s = n[r];
|
|
17794
17794
|
if (Dn(s)) {
|
|
@@ -18120,7 +18120,7 @@ function qU({ x: n, y: t, width: e, height: i, options: r }) {
|
|
|
18120
18120
|
height: i - a.top - a.bottom - r.borderWidth
|
|
18121
18121
|
};
|
|
18122
18122
|
}
|
|
18123
|
-
const hf = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), Th = (n, t, e) => hf(t, e, Math.abs((n - t.y) / (e.y - t.y))).x,
|
|
18123
|
+
const hf = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), Th = (n, t, e) => hf(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, X_ = (n, t, e) => hf(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, Wo = (n) => n * n, jU = (n, t, { x: e, y: i, x2: r, y2: s }, a) => a === "y" ? { start: Math.min(i, s), end: Math.max(i, s), value: t } : { start: Math.min(e, r), end: Math.max(e, r), value: n }, Z_ = (n, t, e, i) => (1 - i) * (1 - i) * n + 2 * (1 - i) * i * t + i * i * e, Mh = (n, t, e, i) => ({ x: Z_(n.x, t.x, e.x, i), y: Z_(n.y, t.y, e.y, i) }), Q_ = (n, t, e, i) => 2 * (1 - i) * (t - n) + 2 * i * (e - t), J_ = (n, t, e, i) => -Math.atan2(Q_(n.x, t.x, e.x, i), Q_(n.y, t.y, e.y, i)) + 0.5 * Nt;
|
|
18124
18124
|
class ba extends sn {
|
|
18125
18125
|
inRange(t, e, i, r) {
|
|
18126
18126
|
const s = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
@@ -18169,7 +18169,7 @@ class ba extends sn {
|
|
|
18169
18169
|
}
|
|
18170
18170
|
}
|
|
18171
18171
|
ba.id = "lineAnnotation";
|
|
18172
|
-
const
|
|
18172
|
+
const t0 = {
|
|
18173
18173
|
backgroundColor: void 0,
|
|
18174
18174
|
backgroundShadowColor: void 0,
|
|
18175
18175
|
borderColor: void 0,
|
|
@@ -18189,10 +18189,10 @@ ba.defaults = {
|
|
|
18189
18189
|
adjustScaleRange: !0,
|
|
18190
18190
|
arrowHeads: {
|
|
18191
18191
|
display: !1,
|
|
18192
|
-
end: Object.assign({},
|
|
18192
|
+
end: Object.assign({}, t0),
|
|
18193
18193
|
fill: !1,
|
|
18194
18194
|
length: 12,
|
|
18195
|
-
start: Object.assign({},
|
|
18195
|
+
start: Object.assign({}, t0),
|
|
18196
18196
|
width: 6
|
|
18197
18197
|
},
|
|
18198
18198
|
borderDash: [],
|
|
@@ -18281,11 +18281,11 @@ function GU(n, { mouseX: t, mouseY: e }, i, { hitSize: r, useFinalPosition: s })
|
|
|
18281
18281
|
function KU({ x: n, y: t, x2: e, y2: i }, { top: r, right: s, bottom: a, left: c }) {
|
|
18282
18282
|
return !(n < c && e < c || n > s && e > s || t < r && i < r || t > a && i > a);
|
|
18283
18283
|
}
|
|
18284
|
-
function
|
|
18285
|
-
return n < a && (t =
|
|
18284
|
+
function e0({ x: n, y: t }, e, { top: i, right: r, bottom: s, left: a }) {
|
|
18285
|
+
return n < a && (t = X_(a, { x: n, y: t }, e), n = a), n > r && (t = X_(r, { x: n, y: t }, e), n = r), t < i && (n = Th(i, { x: n, y: t }, e), t = i), t > s && (n = Th(s, { x: n, y: t }, e), t = s), { x: n, y: t };
|
|
18286
18286
|
}
|
|
18287
18287
|
function XU(n, t, e) {
|
|
18288
|
-
const { x: i, y: r } =
|
|
18288
|
+
const { x: i, y: r } = e0(n, t, e), { x: s, y: a } = e0(t, n, e);
|
|
18289
18289
|
return { x: i, y: r, x2: s, y2: a, width: Math.abs(s - i), height: Math.abs(a - r) };
|
|
18290
18290
|
}
|
|
18291
18291
|
function ZU(n, { mouseX: t, mouseY: e }, i = zr, r) {
|
|
@@ -18306,7 +18306,7 @@ function JU(n) {
|
|
|
18306
18306
|
return s > Nt / 2 ? s - Nt : s < Nt / -2 ? s + Nt : s;
|
|
18307
18307
|
}
|
|
18308
18308
|
function tB(n, t, e, i) {
|
|
18309
|
-
const { width: r, height: s, padding: a } = e, { xAdjust: c, yAdjust: u } = t, d = { x: n.x, y: n.y }, f = { x: n.x2, y: n.y2 }, g = t.rotation === "auto" ? JU(n) : Pe(t.rotation), m = eB(r, s, g), _ = nB(n, t, { labelSize: m, padding: a }, i), b = n.cp ? Mh(d, n.cp, f, _) : hf(d, f, _), x = { size: m.w, min: i.left, max: i.right, padding: a.left }, S = { size: m.h, min: i.top, max: i.bottom, padding: a.top }, k =
|
|
18309
|
+
const { width: r, height: s, padding: a } = e, { xAdjust: c, yAdjust: u } = t, d = { x: n.x, y: n.y }, f = { x: n.x2, y: n.y2 }, g = t.rotation === "auto" ? JU(n) : Pe(t.rotation), m = eB(r, s, g), _ = nB(n, t, { labelSize: m, padding: a }, i), b = n.cp ? Mh(d, n.cp, f, _) : hf(d, f, _), x = { size: m.w, min: i.left, max: i.right, padding: a.left }, S = { size: m.h, min: i.top, max: i.bottom, padding: a.top }, k = i0(b.x, x) + c, A = i0(b.y, S) + u;
|
|
18310
18310
|
return {
|
|
18311
18311
|
x: k - r / 2,
|
|
18312
18312
|
y: A - s / 2,
|
|
@@ -18331,9 +18331,9 @@ function eB(n, t, e) {
|
|
|
18331
18331
|
function nB(n, t, e, i) {
|
|
18332
18332
|
let r;
|
|
18333
18333
|
const s = iB(n, i);
|
|
18334
|
-
return t.position === "start" ? r =
|
|
18334
|
+
return t.position === "start" ? r = n0({ w: n.x2 - n.x, h: n.y2 - n.y }, e, t, s) : t.position === "end" ? r = 1 - n0({ w: n.x - n.x2, h: n.y - n.y2 }, e, t, s) : r = lf(1, t.position), r;
|
|
18335
18335
|
}
|
|
18336
|
-
function
|
|
18336
|
+
function n0(n, t, e, i) {
|
|
18337
18337
|
const { labelSize: r, padding: s } = t, a = n.w * i.dx, c = n.h * i.dy, u = a > 0 && (r.w / 2 + s.left - i.x) / a, d = c > 0 && (r.h / 2 + s.top - i.y) / c;
|
|
18338
18338
|
return Mc(Math.max(u, d), 0, 0.25);
|
|
18339
18339
|
}
|
|
@@ -18346,7 +18346,7 @@ function iB(n, t) {
|
|
|
18346
18346
|
dy: a <= u ? 1 : -1
|
|
18347
18347
|
};
|
|
18348
18348
|
}
|
|
18349
|
-
function
|
|
18349
|
+
function i0(n, t) {
|
|
18350
18350
|
const { size: e, min: i, max: r, padding: s } = t, a = e / 2;
|
|
18351
18351
|
return e > r - i ? (r + i) / 2 : (i >= n - s - a && (n = i + s + a), r <= n + s + a && (n = r - s - a), n);
|
|
18352
18352
|
}
|
|
@@ -18355,11 +18355,11 @@ function Yb(n) {
|
|
|
18355
18355
|
return {
|
|
18356
18356
|
startOpts: e,
|
|
18357
18357
|
endOpts: i,
|
|
18358
|
-
startAdjust:
|
|
18359
|
-
endAdjust:
|
|
18358
|
+
startAdjust: r0(n, e),
|
|
18359
|
+
endAdjust: r0(n, i)
|
|
18360
18360
|
};
|
|
18361
18361
|
}
|
|
18362
|
-
function
|
|
18362
|
+
function r0(n, t) {
|
|
18363
18363
|
if (!t || !t.display)
|
|
18364
18364
|
return 0;
|
|
18365
18365
|
const { length: e, width: i } = t, r = n.options.borderWidth / 2, s = { x: e, y: i + r };
|
|
@@ -18378,12 +18378,12 @@ function rB(n, t, e) {
|
|
|
18378
18378
|
};
|
|
18379
18379
|
return Kr(g, { x: c, y: u }, d);
|
|
18380
18380
|
}
|
|
18381
|
-
function
|
|
18381
|
+
function s0(n, { x: t, y: e }, { angle: i, adjust: r }, s) {
|
|
18382
18382
|
!s || !s.display || (n.save(), n.translate(t, e), n.rotate(i), kh(n, 0, -r, s), n.restore());
|
|
18383
18383
|
}
|
|
18384
18384
|
function sB(n, t, e, i) {
|
|
18385
|
-
const { x: r, y: s, x2: a, y2: c, options: u } = t, { startOpts: d, endOpts: f, startAdjust: g, endAdjust: m } = Yb(t), _ = { x: r, y: s }, b = { x: a, y: c }, x =
|
|
18386
|
-
n.beginPath(), U.moveTo(k.x, k.y), U.quadraticCurveTo(e.x, e.y, A.x, A.y), n.shadowColor = u.borderShadowColor, n.stroke(U), t.path = U, t.ctx = n,
|
|
18385
|
+
const { x: r, y: s, x2: a, y2: c, options: u } = t, { startOpts: d, endOpts: f, startAdjust: g, endAdjust: m } = Yb(t), _ = { x: r, y: s }, b = { x: a, y: c }, x = J_(_, e, b, 0), S = J_(_, e, b, 1) - Nt, k = Mh(_, e, b, g / i), A = Mh(_, e, b, 1 - m / i), U = new Path2D();
|
|
18386
|
+
n.beginPath(), U.moveTo(k.x, k.y), U.quadraticCurveTo(e.x, e.y, A.x, A.y), n.shadowColor = u.borderShadowColor, n.stroke(U), t.path = U, t.ctx = n, s0(n, k, { angle: x, adjust: g }, d), s0(n, A, { angle: S, adjust: m }, f);
|
|
18387
18387
|
}
|
|
18388
18388
|
class va extends sn {
|
|
18389
18389
|
inRange(t, e, i, r) {
|
|
@@ -18609,7 +18609,7 @@ Object.keys(cr).forEach((n) => {
|
|
|
18609
18609
|
});
|
|
18610
18610
|
const cB = {
|
|
18611
18611
|
update: Object.assign
|
|
18612
|
-
}, uB = df.concat(mc),
|
|
18612
|
+
}, uB = df.concat(mc), o0 = (n, t) => zt(t) ? Oh(n, t) : n, Ch = (n) => n === "color" || n === "font";
|
|
18613
18613
|
function ff(n = "line") {
|
|
18614
18614
|
return cr[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
|
|
18615
18615
|
}
|
|
@@ -18654,7 +18654,7 @@ function Oh(n, t) {
|
|
|
18654
18654
|
const e = {};
|
|
18655
18655
|
for (const i of Object.keys(t)) {
|
|
18656
18656
|
const r = t[i], s = n[i];
|
|
18657
|
-
Ch(i) && ee(s) ? e[i] = s.map((a) =>
|
|
18657
|
+
Ch(i) && ee(s) ? e[i] = s.map((a) => o0(a, r)) : e[i] = o0(s, r);
|
|
18658
18658
|
}
|
|
18659
18659
|
return e;
|
|
18660
18660
|
}
|
|
@@ -18677,8 +18677,8 @@ function mB(n, t) {
|
|
|
18677
18677
|
return n;
|
|
18678
18678
|
}
|
|
18679
18679
|
var _B = "3.1.0";
|
|
18680
|
-
const Ji = /* @__PURE__ */ new Map(),
|
|
18681
|
-
var
|
|
18680
|
+
const Ji = /* @__PURE__ */ new Map(), a0 = (n) => n.type !== "doughnutLabel", yB = df.concat(mc);
|
|
18681
|
+
var l0 = {
|
|
18682
18682
|
id: "annotation",
|
|
18683
18683
|
version: _B,
|
|
18684
18684
|
beforeRegister() {
|
|
@@ -18709,11 +18709,11 @@ var l_ = {
|
|
|
18709
18709
|
zt(s) ? Object.keys(s).forEach((a) => {
|
|
18710
18710
|
const c = s[a];
|
|
18711
18711
|
zt(c) && (c.id = a, r.push(c));
|
|
18712
|
-
}) : ee(s) && r.push(...s), LU(r.filter(
|
|
18712
|
+
}) : ee(s) && r.push(...s), LU(r.filter(a0), n.scales);
|
|
18713
18713
|
},
|
|
18714
18714
|
afterDataLimits(n, t) {
|
|
18715
18715
|
const e = Ji.get(n);
|
|
18716
|
-
IU(n, t.scale, e.annotations.filter(
|
|
18716
|
+
IU(n, t.scale, e.annotations.filter(a0).filter((i) => i.display && i.adjustScaleRange));
|
|
18717
18717
|
},
|
|
18718
18718
|
afterUpdate(n, t, e) {
|
|
18719
18719
|
const i = Ji.get(n);
|
|
@@ -18810,7 +18810,7 @@ function bB(n, t) {
|
|
|
18810
18810
|
}
|
|
18811
18811
|
function vB(n, t, e, i) {
|
|
18812
18812
|
const r = i.element;
|
|
18813
|
-
i.main ? (
|
|
18813
|
+
i.main ? (j_(e, r, "beforeDraw"), r.draw(n, t), j_(e, r, "afterDraw")) : r.draw(n, t);
|
|
18814
18814
|
}
|
|
18815
18815
|
const xB = { class: "zoom-timerange-container" }, wB = { class: "zoom-timerange-details" }, SB = {
|
|
18816
18816
|
class: "label",
|
|
@@ -19042,7 +19042,7 @@ const xB = { class: "zoom-timerange-container" }, wB = { class: "zoom-timerange-
|
|
|
19042
19042
|
class: "square-marker",
|
|
19043
19043
|
style: Br({ background: f, "border-color": g })
|
|
19044
19044
|
}, null, 4),
|
|
19045
|
-
Ce(d, null,
|
|
19045
|
+
Ce(d, null, x0({
|
|
19046
19046
|
default: _e(() => [
|
|
19047
19047
|
Tt("div", {
|
|
19048
19048
|
class: Sn(["label-container", { "strike-through": !a(_, b) }]),
|
|
@@ -19086,7 +19086,7 @@ function tH(n, t, e) {
|
|
|
19086
19086
|
throw new Error("Random bytes length must be >= 16");
|
|
19087
19087
|
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, ZB(i);
|
|
19088
19088
|
}
|
|
19089
|
-
const
|
|
19089
|
+
const c0 = (n, t) => {
|
|
19090
19090
|
const e = n.ctx, i = n.scales.y, r = n.scales.x, s = t[t.length - 1].element;
|
|
19091
19091
|
e.save(), e.strokeStyle = "rgba(100, 100, 100, 1)", e.lineWidth = 3, n.options.indexAxis === "x" ? e.strokeRect(s.x - s.width / 2, s.y, s.width, i.bottom - s.y) : e.strokeRect(r.left, s.y - s.height / 2, s.x - r.left, s.height), e.restore();
|
|
19092
19092
|
};
|
|
@@ -19098,7 +19098,7 @@ class jb {
|
|
|
19098
19098
|
_pause = !1;
|
|
19099
19099
|
_suppressNextClick = !1;
|
|
19100
19100
|
afterDatasetsDraw(t) {
|
|
19101
|
-
this._clickedElements && this._clickedElements.length && !this._pause &&
|
|
19101
|
+
this._clickedElements && this._clickedElements.length && !this._pause && c0(t, this._clickedElements);
|
|
19102
19102
|
}
|
|
19103
19103
|
afterEvent(t, { event: e }) {
|
|
19104
19104
|
if (e.type === "click" && this._suppressNextClick) {
|
|
@@ -19109,7 +19109,7 @@ class jb {
|
|
|
19109
19109
|
return;
|
|
19110
19110
|
this._clicked = !this._clicked;
|
|
19111
19111
|
const i = t.options.interaction?.mode || "index", r = t.getElementsAtEventForMode(e.native, i, { intersect: !1 }, !0);
|
|
19112
|
-
r.length && this._clicked ? (this._clickedElements = r,
|
|
19112
|
+
r.length && this._clicked ? (this._clickedElements = r, c0(t, this._clickedElements), this._previousHoverOption = t.options.hover, t.options.hover = { mode: null }) : (delete this._clickedElements, t.options.hover = this._previousHoverOption || t.options.hover, this._clicked = !1);
|
|
19113
19113
|
}
|
|
19114
19114
|
beforeDestroy(t) {
|
|
19115
19115
|
delete this._clickedElements, t.options.hover = this._previousHoverOption || t.options.hover, this._clicked = !1;
|
|
@@ -19124,7 +19124,7 @@ class jb {
|
|
|
19124
19124
|
this._pause = !1, t && (this._suppressNextClick = !0);
|
|
19125
19125
|
}
|
|
19126
19126
|
}
|
|
19127
|
-
const eH = ["id"], nH = ["id"], iH = { class: "axis-tooltip-content" }, rH = "100%", sH = "100%", oH = 20, aH = 20,
|
|
19127
|
+
const eH = ["id"], nH = ["id"], iH = { class: "axis-tooltip-content" }, rH = "100%", sH = "100%", oH = 20, aH = 20, u0 = 6, lH = 0, cH = 10, uH = 10, dH = 1, hH = /* @__PURE__ */ Ve({
|
|
19128
19128
|
__name: "StackedBarChart",
|
|
19129
19129
|
props: {
|
|
19130
19130
|
chartData: {},
|
|
@@ -19162,12 +19162,12 @@ const eH = ["id"], nH = ["id"], iH = { class: "axis-tooltip-content" }, rH = "10
|
|
|
19162
19162
|
...dt,
|
|
19163
19163
|
position: _t ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19164
19164
|
yAdjust: () => _t ? 0 : -Math.abs(TF()),
|
|
19165
|
-
content: (Mt) =>
|
|
19165
|
+
content: (Mt) => M_(d(Mt, pt), gt)
|
|
19166
19166
|
}, $t = {
|
|
19167
19167
|
...dt,
|
|
19168
19168
|
content: (Mt) => DF(d(Mt, pt), MF(Mt.chart, J)),
|
|
19169
19169
|
position: _t ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19170
|
-
xAdjust: (Mt) => _t ? SF(
|
|
19170
|
+
xAdjust: (Mt) => _t ? SF(M_(d(Mt, pt), gt)) : 0,
|
|
19171
19171
|
color: _F
|
|
19172
19172
|
};
|
|
19173
19173
|
return {
|
|
@@ -19240,13 +19240,13 @@ const eH = ["id"], nH = ["id"], iH = { class: "axis-tooltip-content" }, rH = "10
|
|
|
19240
19240
|
K.value = J[0].contentRect.width, nt.value = J[0].contentRect.height;
|
|
19241
19241
|
}, 100)), it = $(() => {
|
|
19242
19242
|
const J = t.chartData?.labels?.length;
|
|
19243
|
-
return g.value && J && !U.value ? `${Math.max(J * (oH +
|
|
19243
|
+
return g.value && J && !U.value ? `${Math.max(J * (oH + u0), K.value)}px` : rH;
|
|
19244
19244
|
}), st = $(() => {
|
|
19245
19245
|
const J = t.chartData?.labels?.length;
|
|
19246
|
-
return g.value && J && U.value ? `${Math.max(J * (aH +
|
|
19246
|
+
return g.value && J && U.value ? `${Math.max(J * (aH + u0), nt.value)}px` : sH;
|
|
19247
19247
|
});
|
|
19248
19248
|
Ft.useReportChartDataForSynthetics(jt(t, "chartData"), jt(t, "syntheticsDataKey")), pr(() => {
|
|
19249
|
-
t.annotations && Mn.register(
|
|
19249
|
+
t.annotations && Mn.register(l0), c.value && (K.value = c.value.offsetWidth, nt.value = c.value.offsetHeight, Q.observe(c.value));
|
|
19250
19250
|
}), gr(() => {
|
|
19251
19251
|
c.value && Q.unobserve(c.value);
|
|
19252
19252
|
});
|
|
@@ -19277,8 +19277,8 @@ const eH = ["id"], nH = ["id"], iH = { class: "axis-tooltip-content" }, rH = "10
|
|
|
19277
19277
|
W,
|
|
19278
19278
|
rt
|
|
19279
19279
|
);
|
|
19280
|
-
|
|
19281
|
-
Mn.unregister(
|
|
19280
|
+
b0(() => {
|
|
19281
|
+
Mn.unregister(l0);
|
|
19282
19282
|
});
|
|
19283
19283
|
const B = {
|
|
19284
19284
|
[zn.Bottom]: "column"
|
|
@@ -19341,7 +19341,7 @@ const eH = ["id"], nH = ["id"], iH = { class: "axis-tooltip-content" }, rH = "10
|
|
|
19341
19341
|
}, null, 8, nH)
|
|
19342
19342
|
], 4)
|
|
19343
19343
|
], 544),
|
|
19344
|
-
(ot(), le(
|
|
19344
|
+
(ot(), le(w0, { to: "body" }, [
|
|
19345
19345
|
k.show ? (ot(), wt("div", {
|
|
19346
19346
|
key: 0,
|
|
19347
19347
|
class: "axis-tooltip",
|
|
@@ -19533,11 +19533,11 @@ const Gb = {
|
|
|
19533
19533
|
attrs: t
|
|
19534
19534
|
}) : (n, t) => Object.assign(n, t);
|
|
19535
19535
|
function Ms(n) {
|
|
19536
|
-
return
|
|
19536
|
+
return S0(n) ? eh(n) : n;
|
|
19537
19537
|
}
|
|
19538
19538
|
function yH(n) {
|
|
19539
19539
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : n;
|
|
19540
|
-
return
|
|
19540
|
+
return S0(t) ? new Proxy(n, {}) : n;
|
|
19541
19541
|
}
|
|
19542
19542
|
function bH(n, t) {
|
|
19543
19543
|
const e = n.options;
|
|
@@ -19606,7 +19606,7 @@ const xH = Ve({
|
|
|
19606
19606
|
const k = Ms(m.labels), A = Ms(b.labels), U = Ms(m.datasets), P = Ms(b.datasets);
|
|
19607
19607
|
k !== A && (Kb(x.config.data, k), S = !0), U && U !== P && (Xb(x.config.data, U, n.datasetIdKey), S = !0);
|
|
19608
19608
|
}
|
|
19609
|
-
S &&
|
|
19609
|
+
S && v0(() => {
|
|
19610
19610
|
u(x);
|
|
19611
19611
|
});
|
|
19612
19612
|
}, {
|
|
@@ -19648,7 +19648,7 @@ function pf(n, t) {
|
|
|
19648
19648
|
}
|
|
19649
19649
|
});
|
|
19650
19650
|
}
|
|
19651
|
-
const Zb = /* @__PURE__ */ pf("bar",
|
|
19651
|
+
const Zb = /* @__PURE__ */ pf("bar", J0), Qb = /* @__PURE__ */ pf("doughnut", ha), Jb = /* @__PURE__ */ pf("line", ty), wH = { class: "chart-container" }, SH = {
|
|
19652
19652
|
key: 0,
|
|
19653
19653
|
class: "chart-center-metric"
|
|
19654
19654
|
}, TH = { class: "chart-center-total" }, MH = {
|
|
@@ -19742,7 +19742,7 @@ const Zb = /* @__PURE__ */ pf("bar", J_), Qb = /* @__PURE__ */ pf("doughnut", ha
|
|
|
19742
19742
|
Tt("span", TH, kt(S.value), 1),
|
|
19743
19743
|
k.value ? (ot(), wt("span", MH, kt(k.value), 1)) : de("", !0)
|
|
19744
19744
|
])) : de("", !0),
|
|
19745
|
-
(ot(), le(
|
|
19745
|
+
(ot(), le(w0, { to: "body" }, [
|
|
19746
19746
|
Ce(Pc, {
|
|
19747
19747
|
"absolute-left": ct(d),
|
|
19748
19748
|
"absolute-top": ct(f),
|
|
@@ -19850,14 +19850,14 @@ const AH = (n, t, e) => {
|
|
|
19850
19850
|
}, RH = (n, t, e) => {
|
|
19851
19851
|
const i = n.ctx;
|
|
19852
19852
|
i.save(), i.fillStyle = "rgba(143, 193, 255, 0.3)", i.fillRect(t, n.chartArea.top, e - t, n.chartArea.bottom - n.chartArea.top), i.restore();
|
|
19853
|
-
},
|
|
19853
|
+
}, d0 = (n, t) => {
|
|
19854
19854
|
const e = n.scales.x.getValueForPixel(t.startX), i = n.scales.x.getValueForPixel(t.endX);
|
|
19855
19855
|
if (!(e === void 0 || i === void 0))
|
|
19856
19856
|
return {
|
|
19857
19857
|
xStart: Math.min(e, i),
|
|
19858
19858
|
xEnd: Math.max(e, i)
|
|
19859
19859
|
};
|
|
19860
|
-
},
|
|
19860
|
+
}, h0 = (n, t, e) => {
|
|
19861
19861
|
t.canvas.dispatchEvent(new CustomEvent(n, {
|
|
19862
19862
|
detail: e
|
|
19863
19863
|
}));
|
|
@@ -19890,15 +19890,15 @@ class PH {
|
|
|
19890
19890
|
const u = e.getBoundingClientRect();
|
|
19891
19891
|
if (i && this._isDragging) {
|
|
19892
19892
|
this._endX = c.clientX - u.left;
|
|
19893
|
-
const d =
|
|
19894
|
-
d &&
|
|
19893
|
+
const d = d0(t, this);
|
|
19894
|
+
d && h0("dragSelectMove", t, d);
|
|
19895
19895
|
}
|
|
19896
19896
|
}, a = (c) => {
|
|
19897
19897
|
const u = e.getBoundingClientRect();
|
|
19898
19898
|
if (clearTimeout(this._dragTimeout), i && this._isDragging) {
|
|
19899
19899
|
this._endX = c.clientX - u.left, i = !1, this._isDragging = !1;
|
|
19900
|
-
const d =
|
|
19901
|
-
d ?
|
|
19900
|
+
const d = d0(t, this);
|
|
19901
|
+
d ? h0("dragSelect", t, d) : this.clearSelectionArea();
|
|
19902
19902
|
}
|
|
19903
19903
|
};
|
|
19904
19904
|
e.addEventListener("mousedown", r), e.addEventListener("mousemove", s), e.addEventListener("mouseup", a), this._dragSelectHandlers = { onMouseDown: r, onMouseMove: s, onMouseUp: a };
|
|
@@ -19930,7 +19930,7 @@ const jW = [
|
|
|
19930
19930
|
"gauge",
|
|
19931
19931
|
"top_n",
|
|
19932
19932
|
"single_value"
|
|
19933
|
-
], EH = 20, IH = "rgba(255, 171, 171, 0.4)", LH = "rgba(255, 196, 0, 0.2)",
|
|
19933
|
+
], EH = 20, IH = "rgba(255, 171, 171, 0.4)", LH = "rgba(255, 196, 0, 0.2)", f0 = (n, t, e) => {
|
|
19934
19934
|
const i = t.y - n.y;
|
|
19935
19935
|
if (i === 0)
|
|
19936
19936
|
return t.x;
|
|
@@ -19949,13 +19949,13 @@ const jW = [
|
|
|
19949
19949
|
}));
|
|
19950
19950
|
let u = c[0].aboveThreshold ? s[0].x : void 0;
|
|
19951
19951
|
for (let d = 1; d < c.length; d++)
|
|
19952
|
-
!c[d - 1].aboveThreshold && c[d].aboveThreshold ? u =
|
|
19952
|
+
!c[d - 1].aboveThreshold && c[d].aboveThreshold ? u = f0(
|
|
19953
19953
|
s[d - 1],
|
|
19954
19954
|
s[d],
|
|
19955
19955
|
a.value
|
|
19956
19956
|
) : c[d - 1].aboveThreshold && !c[d].aboveThreshold && u !== void 0 && (e.push({
|
|
19957
19957
|
start: u,
|
|
19958
|
-
end:
|
|
19958
|
+
end: f0(
|
|
19959
19959
|
s[d - 1],
|
|
19960
19960
|
s[d],
|
|
19961
19961
|
a.value
|
|
@@ -20535,7 +20535,7 @@ const UH = /* @__PURE__ */ Ve({
|
|
|
20535
20535
|
*/
|
|
20536
20536
|
decimalPoints: {
|
|
20537
20537
|
type: Number,
|
|
20538
|
-
default:
|
|
20538
|
+
default: H_
|
|
20539
20539
|
},
|
|
20540
20540
|
leftAlign: {
|
|
20541
20541
|
type: Boolean,
|
|
@@ -20587,7 +20587,7 @@ const UH = /* @__PURE__ */ Ve({
|
|
|
20587
20587
|
const et = (C / 1e6).toFixed(1);
|
|
20588
20588
|
return et.endsWith(".0") ? `${Math.floor(C / 1e6)}M` : `${et}M`;
|
|
20589
20589
|
}
|
|
20590
|
-
const W = r.decimalPoints && typeof r.decimalPoints == "number" ? r.decimalPoints :
|
|
20590
|
+
const W = r.decimalPoints && typeof r.decimalPoints == "number" ? r.decimalPoints : H_;
|
|
20591
20591
|
return C.toLocaleString("en-US", { maximumFractionDigits: W });
|
|
20592
20592
|
}), A = $(() => r.showTrend && r.data?.data?.length < 2), U = $(() => jM(x.value ?? 0, b.value ?? 0) || 0), P = $(() => {
|
|
20593
20593
|
if (!r.showTrend)
|
|
@@ -20607,7 +20607,7 @@ const UH = /* @__PURE__ */ Ve({
|
|
|
20607
20607
|
return Tp(-1, !0, t.t("singleValue.trend.not_available"));
|
|
20608
20608
|
}
|
|
20609
20609
|
return Tp(U.value, r.data?.data?.length === 2, t.t("singleValue.trend.not_available"));
|
|
20610
|
-
}), N = XM($(() => r.showTrend), void 0, $(() => r.data.meta)), M = (C) => C > 0 ? "positive" : C < 0 ? "negative" : "neutral", w = (C) => C > 0 ? GL : C < 0 ? jL :
|
|
20610
|
+
}), N = XM($(() => r.showTrend), void 0, $(() => r.data.meta)), M = (C) => C > 0 ? "positive" : C < 0 ? "negative" : "neutral", w = (C) => C > 0 ? GL : C < 0 ? jL : T_;
|
|
20611
20611
|
return pr(() => {
|
|
20612
20612
|
!r.showTrend && r.data?.data?.length > 1 ? console.warn("SingleValue chart should only be used with a single data point. Data length:", r.data.data.length) : r.showTrend && r.data?.data?.length > 2 && console.warn("SingleValue with trend expects 2 or fewer data points. Instead got:", r.data.data.length);
|
|
20613
20613
|
}), (C, F) => {
|
|
@@ -20641,7 +20641,7 @@ const UH = /* @__PURE__ */ Ve({
|
|
|
20641
20641
|
size: `var(--kui-icon-size-30, ${ct(oa)})`
|
|
20642
20642
|
}, null, 8, ["color", "size"])) : (ot(), le(ct($M), {
|
|
20643
20643
|
key: 1,
|
|
20644
|
-
color: `var(--kui-color-text-neutral-strong, ${ct(
|
|
20644
|
+
color: `var(--kui-color-text-neutral-strong, ${ct(T_)})`,
|
|
20645
20645
|
size: `var(--kui-icon-size-30, ${ct(oa)})`
|
|
20646
20646
|
}, null, 8, ["color", "size"])),
|
|
20647
20647
|
Tt("div", null, kt(L.value), 1)
|
|
@@ -20857,7 +20857,7 @@ const UH = /* @__PURE__ */ Ve({
|
|
|
20857
20857
|
return ot(), le(lt, {
|
|
20858
20858
|
class: "kong-ui-public-top-n-table",
|
|
20859
20859
|
"title-tag": n.titleTag
|
|
20860
|
-
},
|
|
20860
|
+
}, x0({
|
|
20861
20861
|
default: _e(() => [
|
|
20862
20862
|
C.value ? (ot(), le(st, {
|
|
20863
20863
|
key: 0,
|
|
@@ -21187,9 +21187,9 @@ const UH = /* @__PURE__ */ Ve({
|
|
|
21187
21187
|
}
|
|
21188
21188
|
}), QW = /* @__PURE__ */ Un(SW, [["__scopeId", "data-v-ae8259b6"]]);
|
|
21189
21189
|
var or = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Yo = { exports: {} };
|
|
21190
|
-
var TW = Yo.exports,
|
|
21190
|
+
var TW = Yo.exports, g0;
|
|
21191
21191
|
function MW() {
|
|
21192
|
-
return
|
|
21192
|
+
return g0 || (g0 = 1, (function(n, t) {
|
|
21193
21193
|
(function() {
|
|
21194
21194
|
var e, i = "4.18.1", r = 200, s = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", a = "Expected a function", c = "Invalid `variable` option passed into `_.template`", u = "Invalid `imports` option passed into `_.template`", d = "__lodash_hash_undefined__", f = 500, g = "__lodash_placeholder__", m = 1, _ = 2, b = 4, x = 1, S = 2, k = 1, A = 2, U = 4, P = 8, E = 16, L = 32, N = 64, M = 128, w = 256, C = 512, F = 30, W = "...", et = 800, K = 16, nt = 1, Q = 2, it = 3, st = 1 / 0, rt = 9007199254740991, lt = 17976931348623157e292, B = NaN, V = 4294967295, X = V - 1, vt = V >>> 1, ht = [
|
|
21195
21195
|
["ary", M],
|
|
@@ -24866,9 +24866,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
24866
24866
|
}).call(TW);
|
|
24867
24867
|
})(Yo, Yo.exports)), Yo.exports;
|
|
24868
24868
|
}
|
|
24869
|
-
var
|
|
24869
|
+
var p0 = MW(), Xl = { exports: {} }, DW = Xl.exports, m0;
|
|
24870
24870
|
function kW() {
|
|
24871
|
-
return
|
|
24871
|
+
return m0 || (m0 = 1, (function(n, t) {
|
|
24872
24872
|
(function(e, i) {
|
|
24873
24873
|
i();
|
|
24874
24874
|
})(DW, function() {
|
|
@@ -24938,9 +24938,9 @@ function kW() {
|
|
|
24938
24938
|
})(Xl)), Xl.exports;
|
|
24939
24939
|
}
|
|
24940
24940
|
var CW = kW(), Zl = { exports: {} };
|
|
24941
|
-
var OW = Zl.exports,
|
|
24941
|
+
var OW = Zl.exports, _0;
|
|
24942
24942
|
function AW() {
|
|
24943
|
-
return
|
|
24943
|
+
return _0 || (_0 = 1, (function(n, t) {
|
|
24944
24944
|
((e, i) => {
|
|
24945
24945
|
n.exports = i();
|
|
24946
24946
|
})(OW, function e() {
|
|
@@ -25398,12 +25398,12 @@ const PW = ["id"], EW = /* @__PURE__ */ Ve({
|
|
|
25398
25398
|
const f = i.labels;
|
|
25399
25399
|
if (typeof i.fields !== Cs.Object)
|
|
25400
25400
|
throw new Error("Labels needs to be a object containing key / value pairs.");
|
|
25401
|
-
return typeof f === Cs.Object ? (g) =>
|
|
25401
|
+
return typeof f === Cs.Object ? (g) => p0.mapKeys(g, (m, _) => f[_] || _) : (g) => g;
|
|
25402
25402
|
}, c = () => {
|
|
25403
25403
|
const f = i.fields;
|
|
25404
25404
|
if (typeof i.fields !== Cs.Object && !Array.isArray(f))
|
|
25405
25405
|
throw new Error("Fields needs to be an array of strings.");
|
|
25406
|
-
return Array.isArray(f) ? (g) =>
|
|
25406
|
+
return Array.isArray(f) ? (g) => p0.pick(g, f) : (g) => g;
|
|
25407
25407
|
}, u = () => {
|
|
25408
25408
|
if (typeof i.fields === Cs.Undefined && typeof i.labels === Cs.Undefined)
|
|
25409
25409
|
return i.data;
|
|
@@ -25467,7 +25467,7 @@ const PW = ["id"], EW = /* @__PURE__ */ Ve({
|
|
|
25467
25467
|
key: 4,
|
|
25468
25468
|
class: "text-muted",
|
|
25469
25469
|
tag: "span"
|
|
25470
|
-
},
|
|
25470
|
+
}, y0 = 3, JW = /* @__PURE__ */ Ve({
|
|
25471
25471
|
__name: "CsvExportModal",
|
|
25472
25472
|
props: {
|
|
25473
25473
|
exportState: {},
|
|
@@ -25477,7 +25477,7 @@ const PW = ["id"], EW = /* @__PURE__ */ Ve({
|
|
|
25477
25477
|
emits: ["closeModal"],
|
|
25478
25478
|
setup(n, { emit: t }) {
|
|
25479
25479
|
const { i18n: e } = Ft.useI18n(), i = n, r = t, s = `${i.filename.replace(/\s+/g, "-").toLowerCase()}-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, a = Se(1), c = $(() => m.value.rows.length), u = $(() => i.exportState.status === "success" && !!i.exportState.chartData?.data?.length), d = $(() => i.exportState.status !== "success" ? "" : Ft.useChartSelectedRange(jt(i.exportState, "chartData"))), f = $(() => i.exportState.status !== "success" ? "" : e.t("csvExport.previewRows", {
|
|
25480
|
-
rowsMax: Math.min(
|
|
25480
|
+
rowsMax: Math.min(y0, c.value),
|
|
25481
25481
|
rowsTotal: c.value,
|
|
25482
25482
|
plural: c.value === 1 ? "" : "s"
|
|
25483
25483
|
})), g = () => {
|
|
@@ -25533,7 +25533,7 @@ const PW = ["id"], EW = /* @__PURE__ */ Ve({
|
|
|
25533
25533
|
const { rows: b } = m.value;
|
|
25534
25534
|
return {
|
|
25535
25535
|
total: Number(b.length) || 0,
|
|
25536
|
-
data: b.slice(0,
|
|
25536
|
+
data: b.slice(0, y0)
|
|
25537
25537
|
};
|
|
25538
25538
|
};
|
|
25539
25539
|
return Ee(m, () => {
|