@kong-ui-public/analytics-utilities 12.14.1 → 12.15.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.
@@ -4429,6 +4429,10 @@ export declare const dashboardConfigSchema: {
4429
4429
  readonly type: "number";
4430
4430
  readonly description: "Height of each tile in pixels.";
4431
4431
  };
4432
+ readonly columns: {
4433
+ readonly type: "number";
4434
+ readonly description: "Number of columns in the dashboard grid.";
4435
+ };
4432
4436
  readonly preset_filters: {
4433
4437
  readonly type: "array";
4434
4438
  readonly description: "A list of filters to apply to the query";
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardSchema.v2.d.ts","sourceRoot":"","sources":["../../src/dashboardSchema.v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAoB/D,KAAK,qBAAqB,CAAC,CAAC,SAAS,UAAU,IAAI,UAAU,CAAC,CAAC,EAAE;IAAE,+BAA+B,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAI3G,eAAO,MAAM,kBAAkB,8KAYrB,CAAA;AACV,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAyBjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAaG,CAAA;AAE/B,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAA;AAE5E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBI,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAA;AAE1E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAoBG,CAAA;AAE/B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBH,CAAA;AAE/B,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BH,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var Va=Object.defineProperty;var $a=(e,t,n)=>t in e?Va(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>$a(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const za=30*1e3,Ba=1e3,Qa="analytics-query-provider";var d=(e=>(e.FIFTEEN_MIN="15m",e.ONE_HOUR="1h",e.SIX_HOUR="6h",e.TWELVE_HOUR="12h",e.ONE_DAY="24h",e.SEVEN_DAY="7d",e.THIRTY_DAY="30d",e.NINETY_DAY="90d",e.ONE_HUNDRED_EIGHTY_DAY="180d",e.ONE_YEAR="365d",e.CURRENT_WEEK="current_week",e.CURRENT_MONTH="current_month",e.CURRENT_QUARTER="current_quarter",e.CURRENT_YEAR="current_year",e.PREVIOUS_WEEK="previous_week",e.PREVIOUS_MONTH="previous_month",e.PREVIOUS_QUARTER="previous_quarter",e.PREVIOUS_YEAR="previous_year",e))(d||{});const Za=["90d","180d","365d","current_quarter","previous_quarter","current_year","previous_year"],Xa=["horizontal_bar","vertical_bar","timeseries_line","choropleth_map","timeseries_bar","donut","single_value","top_n"],Mn=["in","not_in","selector"],Ka=["=","!="],Ja=["=","!=","<",">","<=",">="],Sn=["empty","not_empty"],ei=["starts_with","ends_with"],ti=["absolute","relative"],ni=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],st=["secondly","tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly","twoHourly","twelveHourly","daily","weekly","trend"],ae=e=>e.filter(t=>t!=="time"),Ye=["api","api_package","api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","portal","route","status_code","status_code_grouped","time"],de=ae(Ye),ut=["active_services","error_rate","request_count","request_per_minute","response_latency_average"],Fe=[...Ye,"application","bot_info_action","bot_info_detection_reason","bot_info_ban_type","consumer","country_code","upstream_status_code","upstream_status_code_grouped","response_source","data_plane_node_version","realm","portal_api"],me=ae(Fe),ct=[...ut,"response_latency_p99","response_latency_p95","response_latency_p50","upstream_latency_p99","upstream_latency_p95","upstream_latency_p50","upstream_latency_average","kong_latency_p99","kong_latency_p95","kong_latency_p50","kong_latency_average","response_size_p99","response_size_p95","response_size_p50","response_size_average","response_size_sum","request_size_p99","request_size_p95","request_size_p50","request_size_average","request_size_sum"],lt=["control_plane","control_plane_group","gateway_service","consumer","application","route","ai_provider","ai_response_model","ai_request_model","llm_cache_status","llm_embeddings_provider","llm_embeddings_model","time","realm","status_code","status_code_grouped","ai_plugin"],fe=ae(lt),On=["total_tokens","prompt_tokens","completion_tokens","ai_request_count","error_rate","cost","llm_cache_embeddings_latency_average","llm_cache_fetch_latency_average","llm_latency_average","llm_embeddings_tokens","llm_embeddings_cost"],En=["a2a_context_id","a2a_error","a2a_method","a2a_task_id","api","api_package","api_product","api_product_version","application","auth_type","bot_info_action","bot_info_detection_reason","bot_info_ja4_fingerprint","bot_info_ban_type","bot_info_header_names","client_ip","consumer","consumer_group","control_plane","control_plane_group","country_code","data_plane_node","data_plane_node_version","gateway_service","header_host","header_user_agent","http_method","mcp_error","mcp_method","mcp_session_id","mcp_tool_name","portal","realm","request_id","request_uri","response_header_content_type","response_source","route","service_port","service_protocol","sse","status_code_grouped","time","trace_id","upstream_uri","upstream_status_code_grouped","websocket"],Nn=ae(En),vn=["auth_type","client_ip","data_plane_node_version","header_host","header_user_agent","http_method","request_id","request_uri","response_header_content_type","response_source","service_port","service_protocol","trace_id","upstream_uri"],ri=vn,Rn=["ai_count","latencies_response_ms","latencies_upstream_ms","latencies_kong_gateway_ms","request_body_size","response_body_size","response_header_content_length","status_code","upstream_status_code"],xn=ae(Rn),ai=["15M","1H","6H","12H","24H","7D"],dt=[...Fe,"a2a_context_id","a2a_error","a2a_method","a2a_task_id","mcp_error","mcp_method","mcp_session_id","mcp_tool_name"],he=ae(dt),In=[...ct,"a2a_latency_average","a2a_response_size_sum","mcp_response_size_sum"],ii=["basic","api_usage","llm_usage","agentic_usage","platform"],Pn={basic:new Set(de),api_usage:new Set(me),llm_usage:new Set(fe),agentic_usage:new Set(he),platform:new Set},oi=(e,t)=>e.startsWith("goap")||e==="platform"?t:t.filter(n=>Pn[e].has(n.field)),mt=[{code:"AF",name:"Afghanistan"},{code:"AX",name:"Aland Islands"},{code:"AL",name:"Albania"},{code:"DZ",name:"Algeria"},{code:"AS",name:"American Samoa"},{code:"AD",name:"Andorra"},{code:"AO",name:"Angola"},{code:"AI",name:"Anguilla"},{code:"AQ",name:"Antarctica"},{code:"AG",name:"Antigua and Barbuda"},{code:"AR",name:"Argentina"},{code:"AM",name:"Armenia"},{code:"AW",name:"Aruba"},{code:"AU",name:"Australia"},{code:"AT",name:"Austria"},{code:"AZ",name:"Azerbaijan"},{code:"BS",name:"Bahamas"},{code:"BH",name:"Bahrain"},{code:"BD",name:"Bangladesh"},{code:"BB",name:"Barbados"},{code:"BY",name:"Belarus"},{code:"BE",name:"Belgium"},{code:"BZ",name:"Belize"},{code:"BJ",name:"Benin"},{code:"BM",name:"Bermuda"},{code:"BT",name:"Bhutan"},{code:"BO",name:"Bolivia"},{code:"BA",name:"Bosnia and Herzegovina"},{code:"BW",name:"Botswana"},{code:"BV",name:"Bouvet Island"},{code:"BR",name:"Brazil"},{code:"IO",name:"British Indian Ocean Territory"},{code:"BN",name:"Brunei Darussalam"},{code:"BG",name:"Bulgaria"},{code:"BF",name:"Burkina Faso"},{code:"BI",name:"Burundi"},{code:"KH",name:"Cambodia"},{code:"CM",name:"Cameroon"},{code:"CA",name:"Canada"},{code:"CV",name:"Cape Verde"},{code:"KY",name:"Cayman Islands"},{code:"CF",name:"Central African Republic"},{code:"TD",name:"Chad"},{code:"CL",name:"Chile"},{code:"CN",name:"China"},{code:"CX",name:"Christmas Island"},{code:"CC",name:"Cocos (Keeling) Islands"},{code:"CO",name:"Colombia"},{code:"KM",name:"Comoros"},{code:"CG",name:"Congo"},{code:"CD",name:"Democratic Republic of the Congo"},{code:"CK",name:"Cook Islands"},{code:"CR",name:"Costa Rica"},{code:"CI",name:"Cote d'Ivoire"},{code:"HR",name:"Croatia"},{code:"CU",name:"Cuba"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"DJ",name:"Djibouti"},{code:"DM",name:"Dominica"},{code:"DO",name:"Dominican Republic"},{code:"EC",name:"Ecuador"},{code:"EG",name:"Egypt"},{code:"SV",name:"El Salvador"},{code:"GQ",name:"Equatorial Guinea"},{code:"ER",name:"Eritrea"},{code:"EE",name:"Estonia"},{code:"ET",name:"Ethiopia"},{code:"FK",name:"Falkland Islands (Malvinas)"},{code:"FO",name:"Faroe Islands"},{code:"FJ",name:"Fiji"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"GF",name:"French Guiana"},{code:"PF",name:"French Polynesia"},{code:"TF",name:"French Southern Territories"},{code:"GA",name:"Gabon"},{code:"GM",name:"Gambia"},{code:"GE",name:"Georgia"},{code:"DE",name:"Germany"},{code:"GH",name:"Ghana"},{code:"GI",name:"Gibraltar"},{code:"GR",name:"Greece"},{code:"GL",name:"Greenland"},{code:"GD",name:"Grenada"},{code:"GP",name:"Guadeloupe"},{code:"GU",name:"Guam"},{code:"GT",name:"Guatemala"},{code:"GG",name:"Guernsey"},{code:"GN",name:"Guinea"},{code:"GW",name:"Guinea-Bissau"},{code:"GY",name:"Guyana"},{code:"HT",name:"Haiti"},{code:"HM",name:"Heard Island and McDonald Islands"},{code:"VA",name:"The Vatican"},{code:"HN",name:"Honduras"},{code:"HK",name:"Hong Kong"},{code:"HU",name:"Hungary"},{code:"IS",name:"Iceland"},{code:"IN",name:"India"},{code:"ID",name:"Indonesia"},{code:"IR",name:"Iran"},{code:"IQ",name:"Iraq"},{code:"IE",name:"Ireland"},{code:"IM",name:"Isle of Man"},{code:"IL",name:"Israel"},{code:"IT",name:"Italy"},{code:"JM",name:"Jamaica"},{code:"JP",name:"Japan"},{code:"JE",name:"Jersey"},{code:"JO",name:"Jordan"},{code:"KZ",name:"Kazakhstan"},{code:"KE",name:"Kenya"},{code:"KI",name:"Kiribati"},{code:"KP",name:"North Korea"},{code:"KR",name:"South Korea"},{code:"KW",name:"Kuwait"},{code:"KG",name:"Kyrgyzstan"},{code:"LA",name:"Laos"},{code:"LV",name:"Latvia"},{code:"LB",name:"Lebanon"},{code:"LS",name:"Lesotho"},{code:"LR",name:"Liberia"},{code:"LY",name:"Libya"},{code:"LI",name:"Liechtenstein"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MO",name:"Macao"},{code:"MK",name:"Macedonia"},{code:"MG",name:"Madagascar"},{code:"MW",name:"Malawi"},{code:"MY",name:"Malaysia"},{code:"MV",name:"Maldives"},{code:"ML",name:"Mali"},{code:"MT",name:"Malta"},{code:"MH",name:"Marshall Islands"},{code:"MQ",name:"Martinique"},{code:"MR",name:"Mauritania"},{code:"MU",name:"Mauritius"},{code:"YT",name:"Mayotte"},{code:"MX",name:"Mexico"},{code:"FM",name:"Micronesia, "},{code:"MD",name:"Moldova,"},{code:"MC",name:"Monaco"},{code:"MN",name:"Mongolia"},{code:"ME",name:"Montenegro"},{code:"MS",name:"Montserrat"},{code:"MA",name:"Morocco"},{code:"MZ",name:"Mozambique"},{code:"MM",name:"Myanmar"},{code:"NA",name:"Namibia"},{code:"NR",name:"Nauru"},{code:"NP",name:"Nepal"},{code:"NL",name:"Netherlands"},{code:"NC",name:"New Caledonia"},{code:"NZ",name:"New Zealand"},{code:"NI",name:"Nicaragua"},{code:"NE",name:"Niger"},{code:"NG",name:"Nigeria"},{code:"NU",name:"Niue"},{code:"NF",name:"Norfolk Island"},{code:"MP",name:"Northern Mariana Islands"},{code:"NO",name:"Norway"},{code:"OM",name:"Oman"},{code:"PK",name:"Pakistan"},{code:"PW",name:"Palau"},{code:"PA",name:"Panama"},{code:"PG",name:"Papua New Guinea"},{code:"PY",name:"Paraguay"},{code:"PE",name:"Peru"},{code:"PH",name:"Philippines"},{code:"PN",name:"Pitcairn"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"PR",name:"Puerto Rico"},{code:"QA",name:"Qatar"},{code:"RE",name:"Reunion"},{code:"RO",name:"Romania"},{code:"RU",name:"Russia"},{code:"RW",name:"Rwanda"},{code:"BL",name:"Saint Barthelemy"},{code:"SH",name:"Saint Helena"},{code:"KN",name:"Saint Kitts and Nevis"},{code:"LC",name:"Saint Lucia"},{code:"MF",name:"Saint Martin"},{code:"PM",name:"Saint Pierre and Miquelon"},{code:"VC",name:"Saint Vincent and the Grenadines"},{code:"WS",name:"Samoa"},{code:"SM",name:"San Marino"},{code:"ST",name:"Sao Tome and Principe"},{code:"SA",name:"Saudi Arabia"},{code:"SN",name:"Senegal"},{code:"RS",name:"Serbia"},{code:"SC",name:"Seychelles"},{code:"SL",name:"Sierra Leone"},{code:"SG",name:"Singapore"},{code:"SX",name:"Sint Maarten"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"SB",name:"Solomon Islands"},{code:"SO",name:"Somalia"},{code:"ZA",name:"South Africa"},{code:"GS",name:"South Georgia and the South Sandwich Islands"},{code:"SS",name:"South Sudan"},{code:"ES",name:"Spain"},{code:"LK",name:"Sri Lanka"},{code:"SD",name:"Sudan"},{code:"SR",name:"Suriname"},{code:"SJ",name:"Svalbard and Jan Mayen"},{code:"SZ",name:"Swaziland"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"SY",name:"Syria"},{code:"TW",name:"Taiwan"},{code:"TJ",name:"Tajikistan"},{code:"TZ",name:"Tanzania"},{code:"TH",name:"Thailand"},{code:"TL",name:"Timor-Leste"},{code:"TG",name:"Togo"},{code:"TK",name:"Tokelau"},{code:"TO",name:"Tonga"},{code:"TT",name:"Trinidad and Tobago"},{code:"TN",name:"Tunisia"},{code:"TR",name:"Turkey"},{code:"TM",name:"Turkmenistan"},{code:"TC",name:"Turks and Caicos Islands"},{code:"TV",name:"Tuvalu"},{code:"UG",name:"Uganda"},{code:"UA",name:"Ukraine"},{code:"AE",name:"United Arab Emirates"},{code:"GB",name:"United Kingdom"},{code:"US",name:"United States"},{code:"UM",name:"United States Minor Outlying Islands"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VU",name:"Vanuatu"},{code:"VE",name:"Venezuela"},{code:"VN",name:"Vietnam"},{code:"VG",name:"British Virgin Islands"},{code:"VI",name:"U.S. Virgin Islands"},{code:"WF",name:"Wallis and Futuna"},{code:"EH",name:"Western Sahara"},{code:"YE",name:"Yemen"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}],si=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value","choropleth_map"],ye={type:"string"},L={type:"string"},Cn={type:"boolean"},An={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},Gn={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},kn={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chart_dataset_colors:An,synthetics_data_key:ye,chart_title:L,allow_csv_export:Cn},required:["type"],additionalProperties:!1},Yn={type:"object",properties:{type:{type:"string",enum:["warning","error","neutral"]},value:{type:"number"},label:{type:"string"},highlightIntersections:{type:"boolean",default:!1}},required:["type","value"],additionalProperties:!1},Fn={type:"object",properties:{type:{type:"string",enum:["timeseries_line","timeseries_bar"]},stacked:{type:"boolean"},threshold:{type:"object",additionalProperties:{type:"array",items:Yn}},chart_dataset_colors:An,synthetics_data_key:ye,chart_title:L,allow_csv_export:Cn},required:["type"],additionalProperties:!1},Hn={type:"object",properties:{type:{type:"string",enum:["gauge"]},metric_display:{type:"string",enum:["hidden","single","full"]},reverse_dataset:{type:"boolean"},numerator:{type:"number"},synthetics_data_key:ye,chart_title:L},required:["type"],additionalProperties:!1},Un={type:"object",properties:{type:{type:"string",enum:["donut"]},synthetics_data_key:ye,chart_title:L},required:["type"],additionalProperties:!1},qn={type:"object",properties:{chart_title:L,synthetics_data_key:ye,type:{type:"string",enum:["top_n"]},description:{type:"string"},entity_link:{type:"string"}},required:["type"],additionalProperties:!1},Ln={type:"object",properties:{chart_title:L,type:{type:"string",enum:["golden_signals"]},long_card_titles:{type:"boolean"},description:{type:"string"},percentile_latency:{type:"boolean"}},required:["type"],additionalProperties:!1},Wn={type:"object",properties:{type:{type:"string",enum:["single_value"]},decimal_points:{type:"number"},chart_title:L},required:["type"],additionalProperties:!1},jn={type:"object",properties:{type:{type:"string",enum:["choropleth_map"]},chart_title:L,fit_to_country:{type:"string",enum:mt.map(e=>e.code)},legend:{type:"boolean",default:!1},bounds:{type:"array",minItems:2,maxItems:2,items:{type:"array",minItems:2,maxItems:2,items:[{type:"number",minimum:-180,maximum:180},{type:"number",minimum:-90,maximum:90}]}}},required:["type"],additionalProperties:!1},ui={type:"object",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["relative"]},time_range:{type:"string"}},required:["type","time_range"],additionalProperties:!1},ci={type:"object",description:"A duration representing an exact start and end time.",properties:{tz:{type:"string"},type:{type:"string",enum:["absolute"]},start:{type:"string"},end:{type:"string"}},required:["type","start","end"],additionalProperties:!1},ge={granularity:{type:"string",description:'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',enum:st},time_range:{type:"object",description:"The time range to query.",anyOf:[ui,ci],default:{type:"relative",time_range:"1h"}},limit:{type:"number"},meta:{type:"object"}},pe=e=>({type:"array",description:"List of aggregated metrics to collect across the requested time span.",items:{type:"string",...e?{enum:e}:{}}}),_e=e=>({type:"array",description:"List of attributes or entity types to group by.",minItems:0,maxItems:2,items:{type:"string",...e?{enum:e}:{}}}),we=e=>({type:"array",description:"A list of filters to apply to the query",items:{oneOf:[{type:"object",description:"In filter",properties:{field:{type:"string",...e?{enum:e}:{}},operator:{type:"string",enum:Mn},value:{type:"array",items:{type:["string","number","null"]}}},required:["field","operator","value"],additionalProperties:!1},{type:"object",description:"Empty filter",properties:{field:{type:"string",...e?{enum:e}:{}},operator:{type:"string",enum:Sn}},required:["field","operator"],additionalProperties:!1}]}}),li=()=>({type:"array",description:"A list of filters to apply to the platform query",items:{oneOf:[{type:"object",description:"In filter",properties:{field:{type:"string"},operator:{type:"string"},value:{type:"array",items:{type:["string","number","null"]}}},required:["field","operator","value"],additionalProperties:!1},{type:"object",description:"Empty filter",properties:{field:{type:"string"},operator:{type:"string"}},required:["field","operator"],additionalProperties:!1}]}}),Vn={type:"object",description:"A query to launch at the advanced explore API",properties:{datasource:{type:"string",enum:["api_usage"]},metrics:pe(ct),dimensions:_e(Fe),filters:we(me),...ge},required:["datasource"],additionalProperties:!1},$n={type:"object",description:"A query to launch at the basic explore API",properties:{datasource:{type:"string",enum:["basic"]},metrics:pe(ut),dimensions:_e(Ye),filters:we(de),...ge},required:["datasource"],additionalProperties:!1},zn={type:"object",description:"A query to launch at the AI explore API",properties:{datasource:{type:"string",enum:["llm_usage"]},metrics:pe(On),dimensions:_e(lt),filters:we(fe),...ge},required:["datasource"],additionalProperties:!1},Bn={type:"object",description:"A query to launch at the Agentic explore API",properties:{datasource:{type:"string",enum:["agentic_usage"]},metrics:pe(In),dimensions:_e(dt),filters:we(he),...ge},required:["datasource"],additionalProperties:!1},Qn={type:"object",description:"A query to launch at the platform dashboard API",properties:{datasource:{type:"string",enum:["platform"]},metrics:pe(),dimensions:_e(),filters:li(),...ge},required:["datasource"],additionalProperties:!1},Zn={anyOf:[Vn,$n,zn,Bn,Qn]},Xn={type:"object",properties:{query:Zn,chart:{anyOf:[kn,Hn,Un,Fn,Ln,qn,Gn,Wn,jn]}},required:["query","chart"],additionalProperties:!1},Kn={type:"object",properties:{position:{type:"object",properties:{col:{type:"number"},row:{type:"number"}},description:"Position of the tile in the grid.",required:["col","row"],additionalProperties:!1},size:{type:"object",properties:{cols:{type:"number"},rows:{type:"number"},fit_to_content:{type:"boolean"}},description:"Number of columns and rows the tile occupies. If fitToContent is true for every tile in a row, and each tile only occupies 1 row, then the row will auto-fit to its content.",required:["cols","rows"],additionalProperties:!1}},required:["position","size"],additionalProperties:!1},Jn={type:"object",properties:{type:{type:"string",enum:["chart"]},definition:Xn,layout:Kn,id:{type:"string",description:"Unique identifier for the tile. If not provided, one will be generated."}},required:["type","definition","layout"],additionalProperties:!1},di={type:"object",properties:{tiles:{type:"array",items:Jn},tile_height:{type:"number",description:"Height of each tile in pixels."},preset_filters:we([...new Set([...me,...de,...fe,...he])]),template_id:{type:["string","null"],description:"Template id which was used to instantiate this dashboard."}},required:["tiles"],additionalProperties:!1},mi=e=>{const t=[];return de.includes(e)&&t.push("basic"),me.includes(e)&&t.push("api_usage"),fe.includes(e)&&t.push("llm_usage"),he.includes(e)&&t.push("agentic_usage"),(Nn.includes(e)||xn.includes(e))&&t.push("requests"),t},fi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},hi=(e,t,n)=>{let r;const i=fi[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ke(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const yi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_i={date:Ke({formats:yi,defaultWidth:"full"}),time:Ke({formats:gi,defaultWidth:"full"}),dateTime:Ke({formats:pi,defaultWidth:"full"})},wi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bi=(e,t,n,r)=>wi[e];function se(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):c;i=e.formattingValues[l]||e.formattingValues[c]}else{const c=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[c]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Ti={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Di={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Mi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Si={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Oi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ei={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ni=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},vi={ordinalNumber:Ni,era:se({values:Ti,defaultWidth:"wide"}),quarter:se({values:Di,defaultWidth:"wide",argumentCallback:e=>e-1}),month:se({values:Mi,defaultWidth:"wide"}),day:se({values:Si,defaultWidth:"wide"}),dayPeriod:se({values:Oi,defaultWidth:"wide",formattingValues:Ei,defaultFormattingWidth:"wide"})};function ue(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const c=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(l)?xi(l,p=>p.test(c)):Ri(l,p=>p.test(c));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const g=t.slice(c.length);return{value:h,rest:g}}}function Ri(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function xi(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ii(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let c=e.valueCallback?e.valueCallback(o[0]):o[0];c=n.valueCallback?n.valueCallback(c):c;const l=t.slice(i.length);return{value:c,rest:l}}}const Pi=/^(\d+)(th|st|nd|rd)?/i,Ci=/\d+/i,Ai={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gi={any:[/^b/i,/^(a|c)/i]},ki={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yi={any:[/1/i,/2/i,/3/i,/4/i]},Fi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Hi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ui={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},qi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Li={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Wi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ji={ordinalNumber:Ii({matchPattern:Pi,parsePattern:Ci,valueCallback:e=>parseInt(e,10)}),era:ue({matchPatterns:Ai,defaultMatchWidth:"wide",parsePatterns:Gi,defaultParseWidth:"any"}),quarter:ue({matchPatterns:ki,defaultMatchWidth:"wide",parsePatterns:Yi,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ue({matchPatterns:Fi,defaultMatchWidth:"wide",parsePatterns:Hi,defaultParseWidth:"any"}),day:ue({matchPatterns:Ui,defaultMatchWidth:"wide",parsePatterns:qi,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:Li,defaultMatchWidth:"any",parsePatterns:Wi,defaultParseWidth:"any"})},Vi={code:"en-US",formatDistance:hi,formatLong:_i,formatRelative:bi,localize:vi,match:ji,options:{weekStartsOn:0,firstWeekContainsDate:1}};let $i={};function be(){return $i}const er=6048e5,zi=864e5,Bi=60,Qi=3600,Xt=Symbol.for("constructDateFrom");function C(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Xt in e?e[Xt](t):e instanceof Date?new e.constructor(t):new Date(t)}function N(e,t){return C(t||e,e)}function Kt(e){const t=N(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Zi(e,...t){const n=C.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function te(e,t){const n=N(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Xi(e,t,n){const[r,i]=Zi(n==null?void 0:n.in,e,t),o=te(r),c=te(i),l=+o-Kt(o),f=+c-Kt(c);return Math.round((l-f)/zi)}function Ki(e,t){const n=N(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Ji(e,t){const n=N(e,t==null?void 0:t.in);return Xi(n,Ki(n))+1}function H(e,t){var l,f,h,g;const n=be(),r=(t==null?void 0:t.weekStartsOn)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,i=N(e,t==null?void 0:t.in),o=i.getDay(),c=(o<r?7:0)+o-r;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}function Ce(e,t){return H(e,{...t,weekStartsOn:1})}function tr(e,t){const n=N(e,t==null?void 0:t.in),r=n.getFullYear(),i=C(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Ce(i),c=C(n,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const l=Ce(c);return n.getTime()>=o.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function eo(e,t){const n=tr(e,t),r=C(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ce(r)}function to(e,t){const n=N(e,t==null?void 0:t.in),r=+Ce(n)-+eo(n);return Math.round(r/er)+1}function nr(e,t){var g,p,y,S;const n=N(e,t==null?void 0:t.in),r=n.getFullYear(),i=be(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((S=(y=i.locale)==null?void 0:y.options)==null?void 0:S.firstWeekContainsDate)??1,c=C((t==null?void 0:t.in)||e,0);c.setFullYear(r+1,0,o),c.setHours(0,0,0,0);const l=H(c,t),f=C((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const h=H(f,t);return+n>=+l?r+1:+n>=+h?r:r-1}function no(e,t){var l,f,h,g;const n=be(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=nr(e,t),o=C((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),H(o,t)}function ro(e,t){const n=N(e,t==null?void 0:t.in),r=+H(n,t)-+no(n,t);return Math.round(r/er)+1}function w(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const q={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return w(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):w(n+1,2)},d(e,t){return w(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return w(e.getHours()%12||12,t.length)},H(e,t){return w(e.getHours(),t.length)},m(e,t){return w(e.getMinutes(),t.length)},s(e,t){return w(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return w(i,t.length)}},K={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Jt={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return q.y(e,t)},Y:function(e,t,n,r){const i=nr(e,r),o=i>0?i:1-i;if(t==="YY"){const c=o%100;return w(c,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):w(o,t.length)},R:function(e,t){const n=tr(e);return w(n,t.length)},u:function(e,t){const n=e.getFullYear();return w(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return w(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return w(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return q.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return w(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=ro(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):w(i,t.length)},I:function(e,t,n){const r=to(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):w(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):q.d(e,t)},D:function(e,t,n){const r=Ji(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):w(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return w(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return w(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return w(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=K.noon:r===0?i=K.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=K.evening:r>=12?i=K.afternoon:r>=4?i=K.morning:i=K.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return q.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):q.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):w(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):w(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):q.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):q.s(e,t)},S:function(e,t){return q.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return tn(r);case"XXXX":case"XX":return z(r);case"XXXXX":case"XXX":default:return z(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return tn(r);case"xxxx":case"xx":return z(r);case"xxxxx":case"xxx":default:return z(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+en(r,":");case"OOOO":default:return"GMT"+z(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+en(r,":");case"zzzz":default:return"GMT"+z(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return w(r,t.length)},T:function(e,t,n){return w(+e,t.length)}};function en(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+w(o,2)}function tn(e,t){return e%60===0?(e>0?"-":"+")+w(Math.abs(e)/60,2):z(e,t)}function z(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=w(Math.trunc(r/60),2),o=w(r%60,2);return n+i+t+o}const nn=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ao=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return nn(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",nn(r,t)).replace("{{time}}",rr(i,t))},io={p:rr,P:ao},oo=/^D+$/,so=/^Y+$/,uo=["D","DD","YY","YYYY"];function co(e){return oo.test(e)}function lo(e){return so.test(e)}function mo(e,t,n){const r=fo(e,t,n);if(console.warn(r),uo.includes(e))throw new RangeError(r)}function fo(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function ho(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function yo(e){return!(!ho(e)&&typeof e!="number"||isNaN(+N(e)))}const go=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,po=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_o=/^'([^]*?)'?$/,wo=/''/g,bo=/[a-zA-Z]/;function To(e,t,n){var g,p,y,S,_,b,G,P;const r=be(),i=(n==null?void 0:n.locale)??r.locale??Vi,o=(n==null?void 0:n.firstWeekContainsDate)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((S=(y=r.locale)==null?void 0:y.options)==null?void 0:S.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((b=(_=n==null?void 0:n.locale)==null?void 0:_.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((P=(G=r.locale)==null?void 0:G.options)==null?void 0:P.weekStartsOn)??0,l=N(e,n==null?void 0:n.in);if(!yo(l))throw new RangeError("Invalid time value");let f=t.match(po).map(D=>{const M=D[0];if(M==="p"||M==="P"){const W=io[M];return W(D,i.formatLong)}return D}).join("").match(go).map(D=>{if(D==="''")return{isToken:!1,value:"'"};const M=D[0];if(M==="'")return{isToken:!1,value:Do(D)};if(Jt[M])return{isToken:!0,value:D};if(M.match(bo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:D}});i.localize.preprocessor&&(f=i.localize.preprocessor(l,f));const h={firstWeekContainsDate:o,weekStartsOn:c,locale:i};return f.map(D=>{if(!D.isToken)return D.value;const M=D.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&lo(M)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&co(M))&&mo(M,t,String(e));const W=Jt[M[0]];return W(l,M,i.localize,h)}).join("")}function Do(e){const t=e.match(_o);return t?t[1].replace(wo,"'"):e}function Re(e,t,n){const r=N(e,n==null?void 0:n.in);return isNaN(t)?C(e,NaN):(r.setDate(r.getDate()+t),r)}function ar(e,t,n){const r=N(e,n==null?void 0:n.in);if(isNaN(t))return C(e,NaN);if(!t)return r;const i=r.getDate(),o=C(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const c=o.getDate();return i>=c?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function Mo(e,t,n){return ar(e,t*3,n)}function ne(e,t){const n=N(e,t==null?void 0:t.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function re(e,t){const n=N(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function So(e,t){const n=N(e,t==null?void 0:t.in),r=n.getFullYear(),i=n.getMonth(),o=C(n,0);return o.setFullYear(r,i+1,0),o.setHours(0,0,0,0),o.getDate()}function Oo(){return Object.assign({},be())}function rn(e){return+N(e)}function an(e){return Math.trunc(+N(e)/1e3)}function on(e){return Math.trunc(e*Qi)}function Eo(e){const t=e/Bi;return Math.trunc(t)}function ir(e,t,n){return ar(e,-1,n)}function or(e,t,n){return Mo(e,-1,n)}function sn(e,t,n){const r=Oo(),i=Ro(e,n.timeZone,n.locale??r.locale);return"formatToParts"in i?No(i,t):vo(i,t)}function No(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function vo(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function Ro(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function xo(e,t){const n=Go(t);return"formatToParts"in n?Po(n,e):Co(n,e)}const Io={year:0,month:1,day:2,hour:3,minute:4,second:5};function Po(e,t){try{const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const o=Io[n[i].type];o!==void 0&&(r[o]=parseInt(n[i].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function Co(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Je={},un=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Ao=un==="06/25/2014, 00:00:00"||un==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Go(e){return Je[e]||(Je[e]=Ao?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Je[e]}function ft(e,t,n,r,i,o,c){const l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,i,o,c),l}const cn=36e5,ko=6e4,et={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Te(e,t,n){if(!e)return 0;let r=et.timezoneZ.exec(e);if(r)return 0;let i,o;if(r=et.timezoneHH.exec(e),r)return i=parseInt(r[1],10),ln(i)?-(i*cn):NaN;if(r=et.timezoneHHMM.exec(e),r){i=parseInt(r[2],10);const c=parseInt(r[3],10);return ln(i,c)?(o=Math.abs(i)*cn+c*ko,r[1]==="+"?-o:o):NaN}if(Ho(e)){t=new Date(t||Date.now());const c=n?t:Yo(t),l=at(c,e);return-(n?l:Fo(t,l,e))}return NaN}function Yo(e){return ft(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function at(e,t){const n=xo(e,t),r=ft(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=e.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,r-i}function Fo(e,t,n){let i=e.getTime()-t;const o=at(new Date(i),n);if(t===o)return t;i-=o-t;const c=at(new Date(i),n);return o===c?o:Math.max(o,c)}function ln(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const dn={};function Ho(e){if(dn[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),dn[e]=!0,!0}catch{return!1}}const Uo=60*1e3,qo={X:function(e,t,n){const r=tt(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return mn(r);case"XXXX":case"XX":return ee(r);case"XXXXX":case"XXX":default:return ee(r,":")}},x:function(e,t,n){const r=tt(n.timeZone,e);switch(t){case"x":return mn(r);case"xxxx":case"xx":return ee(r);case"xxxxx":case"xxx":default:return ee(r,":")}},O:function(e,t,n){const r=tt(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Lo(r,":");case"OOOO":default:return"GMT"+ee(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return sn("short",e,n);case"zzzz":default:return sn("long",e,n)}}};function tt(e,t){const n=e?Te(e,t,!0)/Uo:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Ae(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function ee(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ae(Math.floor(r/60),2),o=Ae(Math.floor(r%60),2);return n+i+t+o}function mn(e,t){return e%60===0?(e>0?"-":"+")+Ae(Math.abs(e)/60,2):ee(e,t)}function Lo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ae(o,2)}function fn(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const sr=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,nt=36e5,hn=6e4,Wo=2,R={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:sr};function Ge(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?Wo:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=jo(e),{year:i,restDateString:o}=Vo(r.date,n),c=$o(o,i);if(c===null||isNaN(c.getTime()))return new Date(NaN);if(c){const l=c.getTime();let f=0,h;if(r.time&&(f=zo(r.time),f===null||isNaN(f)))return new Date(NaN);if(r.timeZone||t.timeZone){if(h=Te(r.timeZone||t.timeZone,new Date(l+f)),isNaN(h))return new Date(NaN)}else h=fn(new Date(l+f)),h=fn(new Date(l+f+h));return new Date(l+f+h)}else return new Date(NaN)}function jo(e){const t={};let n=R.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=R.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const i=R.timeZone.exec(r);i?(t.time=r.replace(i[1],""),t.timeZone=i[1].trim()):t.time=r}return t}function Vo(e,t){if(e){const n=R.YYY[t],r=R.YYYYY[t];let i=R.YYYY.exec(e)||r.exec(e);if(i){const o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=R.YY.exec(e)||n.exec(e),i){const o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function $o(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let o=R.MM.exec(e);if(o)return n=new Date(0),r=parseInt(o[1],10)-1,gn(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(o=R.DDD.exec(e),o){n=new Date(0);const c=parseInt(o[1],10);return Zo(t,c)?(n.setUTCFullYear(t,0,c),n):new Date(NaN)}if(o=R.MMDD.exec(e),o){n=new Date(0),r=parseInt(o[1],10)-1;const c=parseInt(o[2],10);return gn(t,r,c)?(n.setUTCFullYear(t,r,c),n):new Date(NaN)}if(o=R.Www.exec(e),o)return i=parseInt(o[1],10)-1,pn(i)?yn(t,i):new Date(NaN);if(o=R.WwwD.exec(e),o){i=parseInt(o[1],10)-1;const c=parseInt(o[2],10)-1;return pn(i,c)?yn(t,i,c):new Date(NaN)}return null}function zo(e){let t,n,r=R.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),rt(t)?t%24*nt:NaN;if(r=R.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),rt(t,n)?t%24*nt+n*hn:NaN;if(r=R.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const i=parseFloat(r[3].replace(",","."));return rt(t,n,i)?t%24*nt+n*hn+i*1e3:NaN}return null}function yn(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Bo=[31,28,31,30,31,30,31,31,30,31,30,31],Qo=[31,29,31,30,31,30,31,31,30,31,30,31];function ur(e){return e%400===0||e%4===0&&e%100!==0}function gn(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=ur(e);if(r&&n>Qo[t]||!r&&n>Bo[t])return!1}return!0}function Zo(e,t){if(t<1)return!1;const n=ur(e);return!(n&&t>366||!n&&t>365)}function pn(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function rt(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Xo=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Ko(e,t,n={}){t=String(t);const r=t.match(Xo);if(r){const i=Ge(n.originalDate||e,n);t=r.reduce(function(o,c){if(c[0]==="'")return o;const l=o.indexOf(c),f=o[l-1]==="'",h=o.replace(c,"'"+qo[c[0]](i,c,n)+"'");return f?h.substring(0,l-1)+h.substring(l+1):h},t)}return To(e,t,n)}function cr(e,t,n){e=Ge(e,n);const r=Te(t,e,!0),i=new Date(e.getTime()-r),o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}function lr(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Ko(cr(e,t,{timeZone:r.timeZone}),n,r)}function Jo(e,t,n){if(typeof e=="string"&&!e.match(sr))return Ge(e,{...n,timeZone:t});e=Ge(e,n);const r=ft(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=Te(t,new Date(r));return new Date(r+i)}function dr(e,t){return-Te(e,t)}function es(e,t={}){const n=(t==null?void 0:t.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone;let r="MMM dd, yyy hh:mm a";switch(t.format){case"short":r="MMM dd, yyyy";break;case"default":r="MMM dd, yyyy hh:mm a";break;case"full":r="MMM dd, yyyy hh:mm:ss.SSS a";break}return t.includeTZ&&(r+=" (z)"),lr(e,n,r)}function it(e,t={}){if(!e)return e;const n=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let r="MMM dd, yyy hh:mm a";t.short&&(r="MMM dd, yyy"),t.includeTZ&&(r+=" (z)");const i=new Date(e);return lr(i,n,r)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function ts(e,t){return`${it(e.getTime())} - ${it(t.getTime(),{includeTZ:!0})}`}const le={secondly:1e3,tenSecondly:10*1e3,thirtySecondly:30*1e3,minutely:60*1e3,fiveMinutely:5*60*1e3,tenMinutely:10*60*1e3,thirtyMinutely:30*60*1e3,hourly:60*60*1e3,twoHourly:2*60*60*1e3,twelveHourly:12*60*60*1e3,daily:60*60*24*1e3,weekly:60*60*24*7*1e3,trend:0};function ns(e,t){return e.map(n=>({value:n,label:t.t(`configuration.vitals.reports.granularity.${n}`)}))}function mr(e,t){return{duration:e,type:"duration",origin:t}}function rs(e){return e&&st.find(n=>e<=le[n])||null}function fr(e,t,n,r){const i=le[n];let o=0;return i>=le.daily&&(r?o=-dr(r,t):o=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-o)/i)*i+o)}function hr(e,t,n){return fr(Math.floor,e,t,n)}function ht(e,t,n){return fr(Math.ceil,e,t,n)}class He{constructor(t,n,r){E(this,"timeframe");E(this,"tz");E(this,"dataGranularity");if(this.constructor===He)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=n,this.dataGranularity=r??t.dataGranularity}calculateStartDate(t,n,r=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*r);{const i=this.endDate(),o=this.timeframe.rawStart(this.tz),c=hr(o,n,this.tz),f=(i.getTime()-c.getTime())*(r-1);return new Date(c.getTime()-f)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return mr(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return an(this.startDate())}endSeconds(){return an(this.endDate())}startMs(){return rn(this.startDate())}endMs(){return rn(this.endDate())}}class as extends He{constructor(n,r,i,o,c){super(n,i,o);E(this,"granularity");r&&n.allowedGranularities(c).has(r)?this.granularity=r:c?this.granularity=n.fineGrainedDefaultGranularity??n.defaultResponseGranularity:this.granularity=n.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return ht(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return le[this.granularity]}}class yr extends He{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return ht(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class is extends yr{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ke={exports:{}};ke.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Function]",p="[object GeneratorFunction]",y="[object Map]",S="[object Number]",_="[object Object]",b="[object Promise]",G="[object RegExp]",P="[object Set]",D="[object String]",M="[object Symbol]",W="[object WeakMap]",gt="[object ArrayBuffer]",De="[object DataView]",pt="[object Float32Array]",_t="[object Float64Array]",wt="[object Int8Array]",bt="[object Int16Array]",Tt="[object Int32Array]",Dt="[object Uint8Array]",Mt="[object Uint8ClampedArray]",St="[object Uint16Array]",Ot="[object Uint32Array]",Tr=/[\\^$.*+?()[\]{}|]/g,Dr=/\w*$/,Mr=/^\[object .+?Constructor\]$/,Sr=/^(?:0|[1-9]\d*)$/,T={};T[o]=T[c]=T[gt]=T[De]=T[l]=T[f]=T[pt]=T[_t]=T[wt]=T[bt]=T[Tt]=T[y]=T[S]=T[_]=T[G]=T[P]=T[D]=T[M]=T[Dt]=T[Mt]=T[St]=T[Ot]=!0,T[h]=T[g]=T[W]=!1;var Or=typeof xe=="object"&&xe&&xe.Object===Object&&xe,Er=typeof self=="object"&&self&&self.Object===Object&&self,k=Or||Er||Function("return this")(),Et=t&&!t.nodeType&&t,Nt=Et&&!0&&e&&!e.nodeType&&e,Nr=Nt&&Nt.exports===Et;function vr(a,s){return a.set(s[0],s[1]),a}function Rr(a,s){return a.add(s),a}function xr(a,s){for(var u=-1,m=a?a.length:0;++u<m&&s(a[u],u,a)!==!1;);return a}function Ir(a,s){for(var u=-1,m=s.length,v=a.length;++u<m;)a[v+u]=s[u];return a}function vt(a,s,u,m){for(var v=-1,x=a?a.length:0;++v<x;)u=s(u,a[v],v,a);return u}function Pr(a,s){for(var u=-1,m=Array(a);++u<a;)m[u]=s(u);return m}function Cr(a,s){return a==null?void 0:a[s]}function Rt(a){var s=!1;if(a!=null&&typeof a.toString!="function")try{s=!!(a+"")}catch{}return s}function xt(a){var s=-1,u=Array(a.size);return a.forEach(function(m,v){u[++s]=[v,m]}),u}function qe(a,s){return function(u){return a(s(u))}}function It(a){var s=-1,u=Array(a.size);return a.forEach(function(m){u[++s]=m}),u}var Ar=Array.prototype,Gr=Function.prototype,Me=Object.prototype,Le=k["__core-js_shared__"],Pt=function(){var a=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ct=Gr.toString,U=Me.hasOwnProperty,Se=Me.toString,kr=RegExp("^"+Ct.call(U).replace(Tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Nr?k.Buffer:void 0,Gt=k.Symbol,kt=k.Uint8Array,Yr=qe(Object.getPrototypeOf,Object),Fr=Object.create,Hr=Me.propertyIsEnumerable,Ur=Ar.splice,Yt=Object.getOwnPropertySymbols,qr=At?At.isBuffer:void 0,Lr=qe(Object.keys,Object),We=Z(k,"DataView"),ie=Z(k,"Map"),je=Z(k,"Promise"),Ve=Z(k,"Set"),$e=Z(k,"WeakMap"),oe=Z(Object,"create"),Wr=$(We),jr=$(ie),Vr=$(je),$r=$(Ve),zr=$($e),Ft=Gt?Gt.prototype:void 0,Ht=Ft?Ft.valueOf:void 0;function j(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var m=a[s];this.set(m[0],m[1])}}function Br(){this.__data__=oe?oe(null):{}}function Qr(a){return this.has(a)&&delete this.__data__[a]}function Zr(a){var s=this.__data__;if(oe){var u=s[a];return u===r?void 0:u}return U.call(s,a)?s[a]:void 0}function Xr(a){var s=this.__data__;return oe?s[a]!==void 0:U.call(s,a)}function Kr(a,s){var u=this.__data__;return u[a]=oe&&s===void 0?r:s,this}j.prototype.clear=Br,j.prototype.delete=Qr,j.prototype.get=Zr,j.prototype.has=Xr,j.prototype.set=Kr;function Y(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var m=a[s];this.set(m[0],m[1])}}function Jr(){this.__data__=[]}function ea(a){var s=this.__data__,u=Oe(s,a);if(u<0)return!1;var m=s.length-1;return u==m?s.pop():Ur.call(s,u,1),!0}function ta(a){var s=this.__data__,u=Oe(s,a);return u<0?void 0:s[u][1]}function na(a){return Oe(this.__data__,a)>-1}function ra(a,s){var u=this.__data__,m=Oe(u,a);return m<0?u.push([a,s]):u[m][1]=s,this}Y.prototype.clear=Jr,Y.prototype.delete=ea,Y.prototype.get=ta,Y.prototype.has=na,Y.prototype.set=ra;function B(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var m=a[s];this.set(m[0],m[1])}}function aa(){this.__data__={hash:new j,map:new(ie||Y),string:new j}}function ia(a){return Ee(this,a).delete(a)}function oa(a){return Ee(this,a).get(a)}function sa(a){return Ee(this,a).has(a)}function ua(a,s){return Ee(this,a).set(a,s),this}B.prototype.clear=aa,B.prototype.delete=ia,B.prototype.get=oa,B.prototype.has=sa,B.prototype.set=ua;function Q(a){this.__data__=new Y(a)}function ca(){this.__data__=new Y}function la(a){return this.__data__.delete(a)}function da(a){return this.__data__.get(a)}function ma(a){return this.__data__.has(a)}function fa(a,s){var u=this.__data__;if(u instanceof Y){var m=u.__data__;if(!ie||m.length<n-1)return m.push([a,s]),this;u=this.__data__=new B(m)}return u.set(a,s),this}Q.prototype.clear=ca,Q.prototype.delete=la,Q.prototype.get=da,Q.prototype.has=ma,Q.prototype.set=fa;function ha(a,s){var u=Qe(a)||Fa(a)?Pr(a.length,String):[],m=u.length,v=!!m;for(var x in a)U.call(a,x)&&!(v&&(x=="length"||Aa(x,m)))&&u.push(x);return u}function Ut(a,s,u){var m=a[s];(!(U.call(a,s)&&jt(m,u))||u===void 0&&!(s in a))&&(a[s]=u)}function Oe(a,s){for(var u=a.length;u--;)if(jt(a[u][0],s))return u;return-1}function ya(a,s){return a&&qt(s,Ze(s),a)}function ze(a,s,u,m,v,x,F){var I;if(m&&(I=x?m(a,v,x,F):m(a)),I!==void 0)return I;if(!Ne(a))return a;var zt=Qe(a);if(zt){if(I=Ia(a),!s)return va(a,I)}else{var X=V(a),Bt=X==g||X==p;if(Ua(a))return Ta(a,s);if(X==_||X==o||Bt&&!x){if(Rt(a))return x?a:{};if(I=Pa(Bt?{}:a),!s)return Ra(a,ya(I,a))}else{if(!T[X])return x?a:{};I=Ca(a,X,ze,s)}}F||(F=new Q);var Qt=F.get(a);if(Qt)return Qt;if(F.set(a,I),!zt)var Zt=u?xa(a):Ze(a);return xr(Zt||a,function(Xe,ve){Zt&&(ve=Xe,Xe=a[ve]),Ut(I,ve,ze(Xe,s,u,m,ve,a,F))}),I}function ga(a){return Ne(a)?Fr(a):{}}function pa(a,s,u){var m=s(a);return Qe(a)?m:Ir(m,u(a))}function _a(a){return Se.call(a)}function wa(a){if(!Ne(a)||ka(a))return!1;var s=$t(a)||Rt(a)?kr:Mr;return s.test($(a))}function ba(a){if(!Wt(a))return Lr(a);var s=[];for(var u in Object(a))U.call(a,u)&&u!="constructor"&&s.push(u);return s}function Ta(a,s){if(s)return a.slice();var u=new a.constructor(a.length);return a.copy(u),u}function Be(a){var s=new a.constructor(a.byteLength);return new kt(s).set(new kt(a)),s}function Da(a,s){var u=s?Be(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.byteLength)}function Ma(a,s,u){var m=s?u(xt(a),!0):xt(a);return vt(m,vr,new a.constructor)}function Sa(a){var s=new a.constructor(a.source,Dr.exec(a));return s.lastIndex=a.lastIndex,s}function Oa(a,s,u){var m=s?u(It(a),!0):It(a);return vt(m,Rr,new a.constructor)}function Ea(a){return Ht?Object(Ht.call(a)):{}}function Na(a,s){var u=s?Be(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.length)}function va(a,s){var u=-1,m=a.length;for(s||(s=Array(m));++u<m;)s[u]=a[u];return s}function qt(a,s,u,m){u||(u={});for(var v=-1,x=s.length;++v<x;){var F=s[v],I=void 0;Ut(u,F,I===void 0?a[F]:I)}return u}function Ra(a,s){return qt(a,Lt(a),s)}function xa(a){return pa(a,Ze,Lt)}function Ee(a,s){var u=a.__data__;return Ga(s)?u[typeof s=="string"?"string":"hash"]:u.map}function Z(a,s){var u=Cr(a,s);return wa(u)?u:void 0}var Lt=Yt?qe(Yt,Object):Wa,V=_a;(We&&V(new We(new ArrayBuffer(1)))!=De||ie&&V(new ie)!=y||je&&V(je.resolve())!=b||Ve&&V(new Ve)!=P||$e&&V(new $e)!=W)&&(V=function(a){var s=Se.call(a),u=s==_?a.constructor:void 0,m=u?$(u):void 0;if(m)switch(m){case Wr:return De;case jr:return y;case Vr:return b;case $r:return P;case zr:return W}return s});function Ia(a){var s=a.length,u=a.constructor(s);return s&&typeof a[0]=="string"&&U.call(a,"index")&&(u.index=a.index,u.input=a.input),u}function Pa(a){return typeof a.constructor=="function"&&!Wt(a)?ga(Yr(a)):{}}function Ca(a,s,u,m){var v=a.constructor;switch(s){case gt:return Be(a);case l:case f:return new v(+a);case De:return Da(a,m);case pt:case _t:case wt:case bt:case Tt:case Dt:case Mt:case St:case Ot:return Na(a,m);case y:return Ma(a,m,u);case S:case D:return new v(a);case G:return Sa(a);case P:return Oa(a,m,u);case M:return Ea(a)}}function Aa(a,s){return s=s??i,!!s&&(typeof a=="number"||Sr.test(a))&&a>-1&&a%1==0&&a<s}function Ga(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function ka(a){return!!Pt&&Pt in a}function Wt(a){var s=a&&a.constructor,u=typeof s=="function"&&s.prototype||Me;return a===u}function $(a){if(a!=null){try{return Ct.call(a)}catch{}try{return a+""}catch{}}return""}function Ya(a){return ze(a,!0,!0)}function jt(a,s){return a===s||a!==a&&s!==s}function Fa(a){return Ha(a)&&U.call(a,"callee")&&(!Hr.call(a,"callee")||Se.call(a)==o)}var Qe=Array.isArray;function Vt(a){return a!=null&&qa(a.length)&&!$t(a)}function Ha(a){return La(a)&&Vt(a)}var Ua=qr||ja;function $t(a){var s=Ne(a)?Se.call(a):"";return s==g||s==p}function qa(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=i}function Ne(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function La(a){return!!a&&typeof a=="object"}function Ze(a){return Vt(a)?ha(a):ba(a)}function Wa(){return[]}function ja(){return!1}e.exports=Ya})(ke,ke.exports);var ss=ke.exports;const us=os(ss),A=(e,t)=>new Date(e.getTime()-dr(t,e));class O{constructor(t){E(this,"timeframeText");E(this,"key");E(this,"display");E(this,"timeframeLength");E(this,"allowedTiers");E(this,"defaultResponseGranularity");E(this,"dataGranularity");E(this,"isRelative");E(this,"fineGrainedDefaultGranularity");E(this,"_startCustom");E(this,"_endCustom");E(this,"_allowedGranularitiesOverride");this.display=t.display,this.timeframeText=t.timeframeText,this.key=t.key,this.timeframeLength=t.timeframeLength,this.allowedTiers=t.allowedTiers,this.defaultResponseGranularity=t.defaultResponseGranularity,this.dataGranularity=t.dataGranularity,this.isRelative=t.isRelative,this._startCustom=t.startCustom,this._endCustom=t.endCustom,this._allowedGranularitiesOverride=t.allowedGranularitiesOverride,this.fineGrainedDefaultGranularity=t.fineGrainedDefaultGranularity}rawEnd(t){return this._endCustom||new Date}rawStart(t){return this._startCustom||new Date(this.rawEnd().getTime()-this.timeframeLengthMs())}timeframeLengthMs(){return this.timeframeLength()*1e3}maximumTimeframeLength(){return this.timeframeLength()}allowedGranularities(t){if(this._allowedGranularitiesOverride&&t)return new Set(this._allowedGranularitiesOverride);const n=new Set,r=this.maximumTimeframeLength()/3600;return r<=6&&n.add("minutely"),r>=2&&r<=7*24&&n.add("hourly"),r>=2*24&&n.add("daily"),r>=2*24*14&&n.add("weekly"),n}cacheKey(){return this.key!=="custom"?this.key:`${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`}v4Query(t){return this.key==="custom"?{type:"absolute",start:this.rawStart(),end:this.rawEnd(),tz:t}:{type:"relative",time_range:this.key,tz:t}}tzAdjustedDate(t){if(!t)return new Date;const n=Jo(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return cr(n,t)}}class cs extends O{rawStart(t){let n=H(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*7}}class ls extends O{rawStart(t){let n=re(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*31}}class ds extends O{rawStart(t){let n=ne(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*92}}class ms extends O{rawStart(t){let n=new Date(this.tzAdjustedDate(t).getFullYear(),0,1);return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*366}}class fs extends O{rawEnd(t){let n=H(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=A(n,t)),n}rawStart(t){const n=this.tzAdjustedDate(t);let r=H(n.setDate(n.getDate()-7),{weekStartsOn:1});return t&&(r=A(r,t)),r}}class hs extends O{rawEnd(t){let n=ne(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}rawStart(t){let n=ne(or(this.tzAdjustedDate(t)));return t&&(n=A(n,t)),n}}class ys extends O{rawEnd(t){let n=re(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}rawStart(t){let n=re(ir(this.tzAdjustedDate(t)));return t&&(n=A(n,t)),n}}class gs extends O{rawEnd(t){let n=new Date(this.tzAdjustedDate(t).getFullYear(),0,1);return t&&(n=A(n,t)),n}rawStart(t){let n=new Date(this.tzAdjustedDate(t).getFullYear()-1,0,1);return t&&(n=A(n,t)),n}}const gr=new Map([[d.FIFTEEN_MIN,new O({key:d.FIFTEEN_MIN,display:"Last 15 minutes",timeframeText:"15 minutes",timeframeLength:()=>60*15,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"thirtySecondly",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely"]})],[d.ONE_HOUR,new O({key:d.ONE_HOUR,display:"Last hour",timeframeText:"One hour",timeframeLength:()=>60*60*1,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"minutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely"]})],[d.SIX_HOUR,new O({key:d.SIX_HOUR,display:"Last 6 hours",timeframeText:"6 hours",timeframeLength:()=>60*60*6,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"fiveMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[d.TWELVE_HOUR,new O({key:d.TWELVE_HOUR,display:"Last 12 hours",timeframeText:"12 hours",timeframeLength:()=>60*60*12,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"tenMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[d.ONE_DAY,new O({key:d.ONE_DAY,display:"Last 24 hours",timeframeText:"24 hours",timeframeLength:()=>60*60*24,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"thirtyMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[d.SEVEN_DAY,new O({key:d.SEVEN_DAY,display:"Last 7 days",timeframeText:"7 days",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[d.THIRTY_DAY,new O({key:d.THIRTY_DAY,display:"Last 30 days",timeframeText:"30 days",timeframeLength:()=>60*60*24*30,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twelveHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.NINETY_DAY,new O({key:d.NINETY_DAY,display:"Last 90 days",timeframeText:"90 days",timeframeLength:()=>60*60*24*90,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"daily",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.ONE_HUNDRED_EIGHTY_DAY,new O({key:d.ONE_HUNDRED_EIGHTY_DAY,display:"Last 180 days",timeframeText:"180 days",timeframeLength:()=>60*60*24*180,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"daily",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.ONE_YEAR,new O({key:d.ONE_YEAR,display:"Last 365 days",timeframeText:"365 days",timeframeLength:()=>60*60*24*365,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"daily",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.CURRENT_WEEK,new cs({key:d.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=H(new Date,{weekStartsOn:1});return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[d.CURRENT_MONTH,new ls({key:d.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=re(new Date);return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.CURRENT_QUARTER,new ds({key:d.CURRENT_QUARTER,display:"This quarter",timeframeText:"Quarter",timeframeLength:()=>{const e=ne(new Date);return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.CURRENT_YEAR,new ms({key:d.CURRENT_YEAR,display:"This year",timeframeText:"Year",timeframeLength:()=>{const e=new Date(new Date().getFullYear(),0,1);return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.PREVIOUS_WEEK,new fs({key:d.PREVIOUS_WEEK,display:"Previous week",timeframeText:"Week",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[d.PREVIOUS_MONTH,new ys({key:d.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=re(new Date),n=re(ir(new Date));return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(e=ot(t,n)),60*60*24*So(new Date().setMonth(new Date().getMonth()-1))+on(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.PREVIOUS_QUARTER,new hs({key:d.PREVIOUS_QUARTER,display:"Previous quarter",timeframeText:"Quarter",timeframeLength:()=>{const e=ne(new Date),t=ne(or(new Date));return(e.getTime()-t.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.PREVIOUS_YEAR,new gs({key:d.PREVIOUS_YEAR,display:"Previous year",timeframeText:"Year",timeframeLength:()=>{const e=new Date(new Date().getFullYear(),0,1),t=new Date(new Date().getFullYear()-1,0,1);let n=0;return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(n=ot(e,t)),60*60*24*(365+(t.getFullYear()%4===0?1:0))+on(n)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function ps(e){const t=new Date(e.start),n=new Date(e.end),r=(n.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&us(gr.get(e.timePeriodsKey))||new O({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:n,timeframeLength:()=>r,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function _s(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function ws(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function ot(e,t){return Eo(e.getTimezoneOffset()-t.getTimezoneOffset())}const bs={"15M":d.FIFTEEN_MIN,"1H":d.ONE_HOUR,"6H":d.SIX_HOUR,"12H":d.TWELVE_HOUR,"24H":d.ONE_DAY,"7D":d.SEVEN_DAY,"15m":d.FIFTEEN_MIN,"1h":d.ONE_HOUR,"6h":d.SIX_HOUR,"12h":d.TWELVE_HOUR,"24h":d.ONE_DAY,"7d":d.SEVEN_DAY,"30d":d.THIRTY_DAY,"90d":d.NINETY_DAY,"180d":d.ONE_HUNDRED_EIGHTY_DAY,"365d":d.ONE_YEAR,current_week:d.CURRENT_WEEK,current_month:d.CURRENT_MONTH,current_quarter:d.CURRENT_QUARTER,current_year:d.CURRENT_YEAR,previous_week:d.PREVIOUS_WEEK,previous_month:d.PREVIOUS_MONTH,previous_quarter:d.PREVIOUS_QUARTER,previous_year:d.PREVIOUS_YEAR};class Ue{constructor(t){E(this,"_seed");this._seed=t}next(t,n){const r=Math.sin(this._seed++)*1e4,i=r-Math.floor(r);return Math.floor(i*(n-t+1))+t}}const Ts=({metrics:e,dimensionMap:t,metaOverrides:n,valueRange:r=[50,500],timeSeries:i=!1})=>i?e.length===1?pr(e[0],t,n,r):_r(e,n,r):wr(e,t,n,r),pr=(e,t,n,r)=>{const i=yt(10,1e4),o=new Ue(i),[c,l]=r||[50,500],f=Date.now()-6*60*60*1e3,h=Date.now(),g=[];let p=0;for(let _=f;_<=h;_+=60*60*1e3)if(t)for(const b in t)t[b].forEach(G=>{p+=o.next(c,l);const P={[b]:G,[e.name]:p},D={version:"1.0",timestamp:new Date(_).toISOString(),event:P};g.push(D)});else{p+=o.next(c,l);const b={version:"1.0",timestamp:new Date(_).toISOString(),event:{[e.name]:p}};g.push(b)}const y={};if(t)for(const _ in t)y[_]={},t[_].forEach(b=>{y[_][b]={name:b,deleted:!1}});const S={start:new Date(f).toISOString(),end:new Date(h).toISOString(),query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:y,...n??{}};return{data:g,meta:S}},_r=(e,t,n)=>{const r=yt(10,1e4),i=new Ue(r),[o,c]=n||[50,500],l=Date.now()-6*60*60*1e3,f=Date.now(),h=[],g={};e.forEach(y=>{g[y.name]=0});for(let y=l;y<=f;y+=60*60*1e3){const S={};e.forEach(b=>{g[b.name]+=i.next(o,c),S[b.name]=g[b.name]});const _={version:"1.0",timestamp:new Date(y).toISOString(),event:S};h.push(_)}const p={start:new Date(l).toISOString(),end:new Date(f).toISOString(),query_id:"12345",metric_names:e.map(y=>y.name),metric_units:e.reduce((y,S)=>(y[S.name]=S.unit,y),{}),granularity_ms:60*60*1e3,display:{},...t??{}};return{data:h,meta:p}},wr=(e,t,n,r)=>{const i=Math.floor(Math.random()*9991)+10,o=new Ue(i),[c,l]=r||[50,500],f=Date.now()-6*60*60*1e3,h=Date.now(),g=new Date((f+h)/2).toISOString(),p=[];if(t){const _=Object.keys(t),b=Object.values(t),G=(P,D)=>{if(D===_.length){e.forEach(M=>{P[M.name]=o.next(c,l)}),p.push({version:"1.0",timestamp:new Date().toISOString(),event:{...P}});return}b[D].forEach(M=>{G({...P,[_[D]]:M},D+1)})};G({},0)}else{const _={};e.forEach(b=>{_[b.name]=o.next(c,l)}),p.push({version:"1.0",timestamp:g,event:_})}const y={};if(t)for(const _ in t)y[_]={},t[_].forEach(b=>{y[_][b]={name:b,deleted:!1}});const S={start:new Date(f).toISOString(),end:new Date(h).toISOString(),query_id:"12345",metric_names:e.map(_=>_.name),metric_units:e.reduce((_,b)=>(_[b.name]=b.unit,_),{}),truncated:!1,limit:50,display:y,granularity_ms:h-f,...n??{}};return{data:p,meta:S}};function yt(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}const br=new Map(mt.map(e=>[e.code,{code:e.code,name:e.name}])),Ds=e=>{var t;return((t=br.get(e))==null?void 0:t.name)||e},_n=1e3,Ms=1e4,wn=1e6,bn=1e9,Tn=1e12,ce=(e,t)=>{if(t.separator===!1||e<1e3)return e.toString();const n=typeof t.separator=="string"?t.separator:",",r=[];return Math.round(e).toString().split("").reverse().forEach((o,c)=>{c&&c%3===0&&r.push(n),r.push(o)}),r.reverse().join("")},J=(e,t,n)=>{const r=e/t,i=n.round?"round":"floor";if(n.decimal===!1)return Math[i](r).toString();let o;n.precision?o=r:o=r<10?Math[i](r*10)/10:Math[i](r);let c=o.toString();return typeof n.decimal=="string"&&(c=c.replace(".",n.decimal)),c};function Ie(e,t={}){let n;const r=e<0;r&&(e=Math.abs(e)),t.precision&&(e=parseFloat(e.toPrecision(t.precision)));const i=t.min10k?Ms:_n;return e<i||t.precision&&t.precision>Math.log10(e)?n=ce(J(e,1,t),t):e<wn?n=`${J(e,_n,t)}k`:e<bn?n=`${J(e,wn,t)}m`:e<Tn?n=`${ce(J(e,bn,t),t)}b`:n=`${ce(J(e,Tn,t),t)}t`,r&&(n=`-${n}`),t.capital&&(n=n.toUpperCase()),t.prefix&&(n=`${t.prefix}${n}`),t.suffix&&(n=`${n}${t.suffix}`),n}Ie.addCommas=ce;var Dn;const Ss=typeof document<"u"&&((Dn=document.documentElement)==null?void 0:Dn.lang)||"en-US",Pe=new Intl.NumberFormat(Ss);function Os({i18n:e}){const t=(o,c)=>{if(isNaN(o))return"0 B";const l=c?Math.pow(2,50):1e15,f=c?Math.pow(2,40):1e12,h=c?Math.pow(2,30):1e9,g=c?Math.pow(2,20):1e6,p=c?Math.pow(2,10):1e3;let y;return o>=l?y=e.formatNumber(Number.parseFloat((o/l).toPrecision(3)),{style:"unit",unit:"petabyte",unitDisplay:"narrow"}):o>=f?y=e.formatNumber(Number.parseFloat((o/f).toPrecision(3)),{style:"unit",unit:"terabyte",unitDisplay:"narrow"}):o>=h?y=e.formatNumber(Number.parseFloat((o/h).toPrecision(3)),{style:"unit",unit:"gigabyte",unitDisplay:"narrow"}):o>=g?y=e.formatNumber(Number.parseFloat((o/g).toPrecision(3)),{style:"unit",unit:"megabyte",unitDisplay:"narrow"}):o>=p?y=e.formatNumber(Number.parseFloat((o/p).toPrecision(3)),{style:"unit",unit:"kilobyte",unitDisplay:"narrow"}):y=e.formatNumber(Number.parseFloat(o.toPrecision(3)),{style:"unit",unit:"byte",unitDisplay:"narrow"}),y.replace(/([a-zA-Z]*)$/," $1")},n=(o,c="USD")=>isNaN(o)?c==="USD"?"$0.00":`${o}`:o>=.01||c!=="USD"?e.formatNumber(o,{style:"currency",currency:c}):o<1e-4?"< $0.0001":`$${Number.parseFloat(o.toPrecision(4))}`;return{formatUnit:(o,c,{isBytes1024:l=!1,currency:f="USD",approximate:h=!1,translateUnit:g=p=>p}={})=>{const p=g(c,o);switch(c){case"bytes":return t(o,l);case"usd":return n(o,f);case"ms":case"count/minute":case"token count":case"count":default:return isNaN(o)?`${o}`:h?`${Ie(o,{capital:!0})} ${p}`:o>=.01?`${Pe.format(Number.parseFloat(o.toFixed(2)))} ${p}`:`${Number.parseFloat(o.toPrecision(4))} ${p}`}},formatBytes:t,formatCost:n,formatRange:(o,c,l,{isBytes1024:f=!1,currency:h="USD",approximate:g=!1,translateUnit:p=y=>y}={})=>{const y=p(l,c);switch(l){case"bytes":return`${t(o,f)} - ${t(c,f)}`;case"usd":return`${n(o,h)} - ${n(c,h)}`;case"ms":case"count/minute":case"token count":case"count":default:if(isNaN(o)||isNaN(c))return`${o} - ${c}`;if(g)return`${Ie(o,{capital:!0})} - ${Ie(c,{capital:!0})} ${y}`}const S=o>=.01?`${Pe.format(Number.parseFloat(o.toFixed(2)))}`:`${Number.parseFloat(o.toPrecision(4))}`,_=c>=.01?`${Pe.format(Number.parseFloat(c.toFixed(2)))}`:`${Number.parseFloat(c.toPrecision(4))}`;return`${S} - ${_} ${y}`}}}exports.COUNTRIES=mt;exports.DeltaQueryTime=is;exports.EXPORT_RECORD_LIMIT=Ba;exports.Granularities=le;exports.INJECT_QUERY_PROVIDER=Qa;exports.REFRESH_INTERVAL_MS=za;exports.SeededRandom=Ue;exports.TIMEFRAME_LOOKUP=bs;exports.TimePeriods=gr;exports.Timeframe=O;exports.TimeframeKeys=d;exports.TimeseriesQueryTime=as;exports.UnaryQueryTime=yr;exports.agenticExploreAggregations=In;exports.agenticUsageSchema=Bn;exports.aiExploreAggregations=On;exports.apiUsageQuerySchema=Vn;exports.barChartSchema=kn;exports.basicExploreAggregations=ut;exports.basicQuerySchema=$n;exports.ceilToNearestTimeGrain=ht;exports.choroplethMapSchema=jn;exports.countries=br;exports.dashboardConfigSchema=di;exports.dashboardTileTypes=si;exports.datasourceToFilterableDimensions=Pn;exports.datePickerSelectionToTimeframe=ps;exports.donutChartSchema=Un;exports.dstOffsetHours=ot;exports.exploreAggregations=ct;exports.exploreFilterTypesV2=Mn;exports.extendedRelativeTimeRangeValues=Za;exports.filterableAgenticExploreDimensions=he;exports.filterableAiExploreDimensions=fe;exports.filterableBasicExploreDimensions=de;exports.filterableExploreDimensions=me;exports.filterableRequestDimensions=Nn;exports.filterableRequestMetrics=xn;exports.filterableRequestWildcardDimensions=ri;exports.floorToNearestTimeGrain=hr;exports.formatTime=it;exports.formatTimeRange=ts;exports.formatTimestamp=es;exports.gaugeChartSchema=Hn;exports.generateCrossSectionalData=wr;exports.generateData=Ts;exports.generateMultipleMetricTimeSeriesData=_r;exports.generateSingleMetricTimeSeriesData=pr;exports.getCountryName=Ds;exports.getFieldDataSources=mi;exports.granularitiesToOptions=ns;exports.granularityMsToQuery=mr;exports.granularityValues=st;exports.llmUsageSchema=zn;exports.metricCardSchema=Ln;exports.msToGranularity=rs;exports.numberFormatter=Pe;exports.platformQuerySchema=Qn;exports.queryDatasources=ii;exports.queryableAgenticExploreDimensions=dt;exports.queryableAiExploreDimensions=lt;exports.queryableBasicExploreDimensions=Ye;exports.queryableExploreDimensions=Fe;exports.queryableRequestDimensions=En;exports.queryableRequestMetrics=Rn;exports.queryableRequestWildcardDimensions=vn;exports.rand=yt;exports.relativeTimeRangeValuesRequestV2=ai;exports.relativeTimeRangeValuesV4=ni;exports.reportChartTypes=Xa;exports.requestFilterTypeEmptyV2=Sn;exports.requestFilterTypeEqualsV2=Ka;exports.requestFilterTypeMetricV2=Ja;exports.requestFilterTypeWildcardV2=ei;exports.singleValueSchema=Wn;exports.slottableSchema=Gn;exports.stripUnknownFilters=oi;exports.thresholdSchema=Yn;exports.tileConfigSchema=Jn;exports.tileDefinitionSchema=Xn;exports.tileLayoutSchema=Kn;exports.timeRangeTypeV2=ti;exports.timeframeToDatepickerSelection=_s;exports.timeframeToDatepickerTimeperiod=ws;exports.timeseriesChartSchema=Fn;exports.topNTableSchema=qn;exports.unitFormatter=Os;exports.validDashboardQuery=Zn;
1
+ "use strict";var Va=Object.defineProperty;var $a=(e,t,n)=>t in e?Va(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>$a(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const za=30*1e3,Ba=1e3,Qa="analytics-query-provider";var d=(e=>(e.FIFTEEN_MIN="15m",e.ONE_HOUR="1h",e.SIX_HOUR="6h",e.TWELVE_HOUR="12h",e.ONE_DAY="24h",e.SEVEN_DAY="7d",e.THIRTY_DAY="30d",e.NINETY_DAY="90d",e.ONE_HUNDRED_EIGHTY_DAY="180d",e.ONE_YEAR="365d",e.CURRENT_WEEK="current_week",e.CURRENT_MONTH="current_month",e.CURRENT_QUARTER="current_quarter",e.CURRENT_YEAR="current_year",e.PREVIOUS_WEEK="previous_week",e.PREVIOUS_MONTH="previous_month",e.PREVIOUS_QUARTER="previous_quarter",e.PREVIOUS_YEAR="previous_year",e))(d||{});const Za=["90d","180d","365d","current_quarter","previous_quarter","current_year","previous_year"],Xa=["horizontal_bar","vertical_bar","timeseries_line","choropleth_map","timeseries_bar","donut","single_value","top_n"],Mn=["in","not_in","selector"],Ka=["=","!="],Ja=["=","!=","<",">","<=",">="],Sn=["empty","not_empty"],ei=["starts_with","ends_with"],ti=["absolute","relative"],ni=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],st=["secondly","tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly","twoHourly","twelveHourly","daily","weekly","trend"],ae=e=>e.filter(t=>t!=="time"),Ye=["api","api_package","api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","portal","route","status_code","status_code_grouped","time"],de=ae(Ye),ut=["active_services","error_rate","request_count","request_per_minute","response_latency_average"],Fe=[...Ye,"application","bot_info_action","bot_info_detection_reason","bot_info_ban_type","consumer","country_code","upstream_status_code","upstream_status_code_grouped","response_source","data_plane_node_version","realm","portal_api"],me=ae(Fe),ct=[...ut,"response_latency_p99","response_latency_p95","response_latency_p50","upstream_latency_p99","upstream_latency_p95","upstream_latency_p50","upstream_latency_average","kong_latency_p99","kong_latency_p95","kong_latency_p50","kong_latency_average","response_size_p99","response_size_p95","response_size_p50","response_size_average","response_size_sum","request_size_p99","request_size_p95","request_size_p50","request_size_average","request_size_sum"],lt=["control_plane","control_plane_group","gateway_service","consumer","application","route","ai_provider","ai_response_model","ai_request_model","llm_cache_status","llm_embeddings_provider","llm_embeddings_model","time","realm","status_code","status_code_grouped","ai_plugin"],fe=ae(lt),On=["total_tokens","prompt_tokens","completion_tokens","ai_request_count","error_rate","cost","llm_cache_embeddings_latency_average","llm_cache_fetch_latency_average","llm_latency_average","llm_embeddings_tokens","llm_embeddings_cost"],En=["a2a_context_id","a2a_error","a2a_method","a2a_task_id","api","api_package","api_product","api_product_version","application","auth_type","bot_info_action","bot_info_detection_reason","bot_info_ja4_fingerprint","bot_info_ban_type","bot_info_header_names","client_ip","consumer","consumer_group","control_plane","control_plane_group","country_code","data_plane_node","data_plane_node_version","gateway_service","header_host","header_user_agent","http_method","mcp_error","mcp_method","mcp_session_id","mcp_tool_name","portal","realm","request_id","request_uri","response_header_content_type","response_source","route","service_port","service_protocol","sse","status_code_grouped","time","trace_id","upstream_uri","upstream_status_code_grouped","websocket"],Nn=ae(En),vn=["auth_type","client_ip","data_plane_node_version","header_host","header_user_agent","http_method","request_id","request_uri","response_header_content_type","response_source","service_port","service_protocol","trace_id","upstream_uri"],ri=vn,Rn=["ai_count","latencies_response_ms","latencies_upstream_ms","latencies_kong_gateway_ms","request_body_size","response_body_size","response_header_content_length","status_code","upstream_status_code"],xn=ae(Rn),ai=["15M","1H","6H","12H","24H","7D"],dt=[...Fe,"a2a_context_id","a2a_error","a2a_method","a2a_task_id","mcp_error","mcp_method","mcp_session_id","mcp_tool_name"],he=ae(dt),In=[...ct,"a2a_latency_average","a2a_response_size_sum","mcp_response_size_sum"],ii=["basic","api_usage","llm_usage","agentic_usage","platform"],Pn={basic:new Set(de),api_usage:new Set(me),llm_usage:new Set(fe),agentic_usage:new Set(he),platform:new Set},oi=(e,t)=>e.startsWith("goap")||e==="platform"?t:t.filter(n=>Pn[e].has(n.field)),mt=[{code:"AF",name:"Afghanistan"},{code:"AX",name:"Aland Islands"},{code:"AL",name:"Albania"},{code:"DZ",name:"Algeria"},{code:"AS",name:"American Samoa"},{code:"AD",name:"Andorra"},{code:"AO",name:"Angola"},{code:"AI",name:"Anguilla"},{code:"AQ",name:"Antarctica"},{code:"AG",name:"Antigua and Barbuda"},{code:"AR",name:"Argentina"},{code:"AM",name:"Armenia"},{code:"AW",name:"Aruba"},{code:"AU",name:"Australia"},{code:"AT",name:"Austria"},{code:"AZ",name:"Azerbaijan"},{code:"BS",name:"Bahamas"},{code:"BH",name:"Bahrain"},{code:"BD",name:"Bangladesh"},{code:"BB",name:"Barbados"},{code:"BY",name:"Belarus"},{code:"BE",name:"Belgium"},{code:"BZ",name:"Belize"},{code:"BJ",name:"Benin"},{code:"BM",name:"Bermuda"},{code:"BT",name:"Bhutan"},{code:"BO",name:"Bolivia"},{code:"BA",name:"Bosnia and Herzegovina"},{code:"BW",name:"Botswana"},{code:"BV",name:"Bouvet Island"},{code:"BR",name:"Brazil"},{code:"IO",name:"British Indian Ocean Territory"},{code:"BN",name:"Brunei Darussalam"},{code:"BG",name:"Bulgaria"},{code:"BF",name:"Burkina Faso"},{code:"BI",name:"Burundi"},{code:"KH",name:"Cambodia"},{code:"CM",name:"Cameroon"},{code:"CA",name:"Canada"},{code:"CV",name:"Cape Verde"},{code:"KY",name:"Cayman Islands"},{code:"CF",name:"Central African Republic"},{code:"TD",name:"Chad"},{code:"CL",name:"Chile"},{code:"CN",name:"China"},{code:"CX",name:"Christmas Island"},{code:"CC",name:"Cocos (Keeling) Islands"},{code:"CO",name:"Colombia"},{code:"KM",name:"Comoros"},{code:"CG",name:"Congo"},{code:"CD",name:"Democratic Republic of the Congo"},{code:"CK",name:"Cook Islands"},{code:"CR",name:"Costa Rica"},{code:"CI",name:"Cote d'Ivoire"},{code:"HR",name:"Croatia"},{code:"CU",name:"Cuba"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"DJ",name:"Djibouti"},{code:"DM",name:"Dominica"},{code:"DO",name:"Dominican Republic"},{code:"EC",name:"Ecuador"},{code:"EG",name:"Egypt"},{code:"SV",name:"El Salvador"},{code:"GQ",name:"Equatorial Guinea"},{code:"ER",name:"Eritrea"},{code:"EE",name:"Estonia"},{code:"ET",name:"Ethiopia"},{code:"FK",name:"Falkland Islands (Malvinas)"},{code:"FO",name:"Faroe Islands"},{code:"FJ",name:"Fiji"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"GF",name:"French Guiana"},{code:"PF",name:"French Polynesia"},{code:"TF",name:"French Southern Territories"},{code:"GA",name:"Gabon"},{code:"GM",name:"Gambia"},{code:"GE",name:"Georgia"},{code:"DE",name:"Germany"},{code:"GH",name:"Ghana"},{code:"GI",name:"Gibraltar"},{code:"GR",name:"Greece"},{code:"GL",name:"Greenland"},{code:"GD",name:"Grenada"},{code:"GP",name:"Guadeloupe"},{code:"GU",name:"Guam"},{code:"GT",name:"Guatemala"},{code:"GG",name:"Guernsey"},{code:"GN",name:"Guinea"},{code:"GW",name:"Guinea-Bissau"},{code:"GY",name:"Guyana"},{code:"HT",name:"Haiti"},{code:"HM",name:"Heard Island and McDonald Islands"},{code:"VA",name:"The Vatican"},{code:"HN",name:"Honduras"},{code:"HK",name:"Hong Kong"},{code:"HU",name:"Hungary"},{code:"IS",name:"Iceland"},{code:"IN",name:"India"},{code:"ID",name:"Indonesia"},{code:"IR",name:"Iran"},{code:"IQ",name:"Iraq"},{code:"IE",name:"Ireland"},{code:"IM",name:"Isle of Man"},{code:"IL",name:"Israel"},{code:"IT",name:"Italy"},{code:"JM",name:"Jamaica"},{code:"JP",name:"Japan"},{code:"JE",name:"Jersey"},{code:"JO",name:"Jordan"},{code:"KZ",name:"Kazakhstan"},{code:"KE",name:"Kenya"},{code:"KI",name:"Kiribati"},{code:"KP",name:"North Korea"},{code:"KR",name:"South Korea"},{code:"KW",name:"Kuwait"},{code:"KG",name:"Kyrgyzstan"},{code:"LA",name:"Laos"},{code:"LV",name:"Latvia"},{code:"LB",name:"Lebanon"},{code:"LS",name:"Lesotho"},{code:"LR",name:"Liberia"},{code:"LY",name:"Libya"},{code:"LI",name:"Liechtenstein"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MO",name:"Macao"},{code:"MK",name:"Macedonia"},{code:"MG",name:"Madagascar"},{code:"MW",name:"Malawi"},{code:"MY",name:"Malaysia"},{code:"MV",name:"Maldives"},{code:"ML",name:"Mali"},{code:"MT",name:"Malta"},{code:"MH",name:"Marshall Islands"},{code:"MQ",name:"Martinique"},{code:"MR",name:"Mauritania"},{code:"MU",name:"Mauritius"},{code:"YT",name:"Mayotte"},{code:"MX",name:"Mexico"},{code:"FM",name:"Micronesia, "},{code:"MD",name:"Moldova,"},{code:"MC",name:"Monaco"},{code:"MN",name:"Mongolia"},{code:"ME",name:"Montenegro"},{code:"MS",name:"Montserrat"},{code:"MA",name:"Morocco"},{code:"MZ",name:"Mozambique"},{code:"MM",name:"Myanmar"},{code:"NA",name:"Namibia"},{code:"NR",name:"Nauru"},{code:"NP",name:"Nepal"},{code:"NL",name:"Netherlands"},{code:"NC",name:"New Caledonia"},{code:"NZ",name:"New Zealand"},{code:"NI",name:"Nicaragua"},{code:"NE",name:"Niger"},{code:"NG",name:"Nigeria"},{code:"NU",name:"Niue"},{code:"NF",name:"Norfolk Island"},{code:"MP",name:"Northern Mariana Islands"},{code:"NO",name:"Norway"},{code:"OM",name:"Oman"},{code:"PK",name:"Pakistan"},{code:"PW",name:"Palau"},{code:"PA",name:"Panama"},{code:"PG",name:"Papua New Guinea"},{code:"PY",name:"Paraguay"},{code:"PE",name:"Peru"},{code:"PH",name:"Philippines"},{code:"PN",name:"Pitcairn"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"PR",name:"Puerto Rico"},{code:"QA",name:"Qatar"},{code:"RE",name:"Reunion"},{code:"RO",name:"Romania"},{code:"RU",name:"Russia"},{code:"RW",name:"Rwanda"},{code:"BL",name:"Saint Barthelemy"},{code:"SH",name:"Saint Helena"},{code:"KN",name:"Saint Kitts and Nevis"},{code:"LC",name:"Saint Lucia"},{code:"MF",name:"Saint Martin"},{code:"PM",name:"Saint Pierre and Miquelon"},{code:"VC",name:"Saint Vincent and the Grenadines"},{code:"WS",name:"Samoa"},{code:"SM",name:"San Marino"},{code:"ST",name:"Sao Tome and Principe"},{code:"SA",name:"Saudi Arabia"},{code:"SN",name:"Senegal"},{code:"RS",name:"Serbia"},{code:"SC",name:"Seychelles"},{code:"SL",name:"Sierra Leone"},{code:"SG",name:"Singapore"},{code:"SX",name:"Sint Maarten"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"SB",name:"Solomon Islands"},{code:"SO",name:"Somalia"},{code:"ZA",name:"South Africa"},{code:"GS",name:"South Georgia and the South Sandwich Islands"},{code:"SS",name:"South Sudan"},{code:"ES",name:"Spain"},{code:"LK",name:"Sri Lanka"},{code:"SD",name:"Sudan"},{code:"SR",name:"Suriname"},{code:"SJ",name:"Svalbard and Jan Mayen"},{code:"SZ",name:"Swaziland"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"SY",name:"Syria"},{code:"TW",name:"Taiwan"},{code:"TJ",name:"Tajikistan"},{code:"TZ",name:"Tanzania"},{code:"TH",name:"Thailand"},{code:"TL",name:"Timor-Leste"},{code:"TG",name:"Togo"},{code:"TK",name:"Tokelau"},{code:"TO",name:"Tonga"},{code:"TT",name:"Trinidad and Tobago"},{code:"TN",name:"Tunisia"},{code:"TR",name:"Turkey"},{code:"TM",name:"Turkmenistan"},{code:"TC",name:"Turks and Caicos Islands"},{code:"TV",name:"Tuvalu"},{code:"UG",name:"Uganda"},{code:"UA",name:"Ukraine"},{code:"AE",name:"United Arab Emirates"},{code:"GB",name:"United Kingdom"},{code:"US",name:"United States"},{code:"UM",name:"United States Minor Outlying Islands"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VU",name:"Vanuatu"},{code:"VE",name:"Venezuela"},{code:"VN",name:"Vietnam"},{code:"VG",name:"British Virgin Islands"},{code:"VI",name:"U.S. Virgin Islands"},{code:"WF",name:"Wallis and Futuna"},{code:"EH",name:"Western Sahara"},{code:"YE",name:"Yemen"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}],si=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value","choropleth_map"],ye={type:"string"},L={type:"string"},Cn={type:"boolean"},An={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},Gn={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},kn={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chart_dataset_colors:An,synthetics_data_key:ye,chart_title:L,allow_csv_export:Cn},required:["type"],additionalProperties:!1},Yn={type:"object",properties:{type:{type:"string",enum:["warning","error","neutral"]},value:{type:"number"},label:{type:"string"},highlightIntersections:{type:"boolean",default:!1}},required:["type","value"],additionalProperties:!1},Fn={type:"object",properties:{type:{type:"string",enum:["timeseries_line","timeseries_bar"]},stacked:{type:"boolean"},threshold:{type:"object",additionalProperties:{type:"array",items:Yn}},chart_dataset_colors:An,synthetics_data_key:ye,chart_title:L,allow_csv_export:Cn},required:["type"],additionalProperties:!1},Hn={type:"object",properties:{type:{type:"string",enum:["gauge"]},metric_display:{type:"string",enum:["hidden","single","full"]},reverse_dataset:{type:"boolean"},numerator:{type:"number"},synthetics_data_key:ye,chart_title:L},required:["type"],additionalProperties:!1},Un={type:"object",properties:{type:{type:"string",enum:["donut"]},synthetics_data_key:ye,chart_title:L},required:["type"],additionalProperties:!1},qn={type:"object",properties:{chart_title:L,synthetics_data_key:ye,type:{type:"string",enum:["top_n"]},description:{type:"string"},entity_link:{type:"string"}},required:["type"],additionalProperties:!1},Ln={type:"object",properties:{chart_title:L,type:{type:"string",enum:["golden_signals"]},long_card_titles:{type:"boolean"},description:{type:"string"},percentile_latency:{type:"boolean"}},required:["type"],additionalProperties:!1},Wn={type:"object",properties:{type:{type:"string",enum:["single_value"]},decimal_points:{type:"number"},chart_title:L},required:["type"],additionalProperties:!1},jn={type:"object",properties:{type:{type:"string",enum:["choropleth_map"]},chart_title:L,fit_to_country:{type:"string",enum:mt.map(e=>e.code)},legend:{type:"boolean",default:!1},bounds:{type:"array",minItems:2,maxItems:2,items:{type:"array",minItems:2,maxItems:2,items:[{type:"number",minimum:-180,maximum:180},{type:"number",minimum:-90,maximum:90}]}}},required:["type"],additionalProperties:!1},ui={type:"object",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["relative"]},time_range:{type:"string"}},required:["type","time_range"],additionalProperties:!1},ci={type:"object",description:"A duration representing an exact start and end time.",properties:{tz:{type:"string"},type:{type:"string",enum:["absolute"]},start:{type:"string"},end:{type:"string"}},required:["type","start","end"],additionalProperties:!1},ge={granularity:{type:"string",description:'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',enum:st},time_range:{type:"object",description:"The time range to query.",anyOf:[ui,ci],default:{type:"relative",time_range:"1h"}},limit:{type:"number"},meta:{type:"object"}},pe=e=>({type:"array",description:"List of aggregated metrics to collect across the requested time span.",items:{type:"string",...e?{enum:e}:{}}}),_e=e=>({type:"array",description:"List of attributes or entity types to group by.",minItems:0,maxItems:2,items:{type:"string",...e?{enum:e}:{}}}),we=e=>({type:"array",description:"A list of filters to apply to the query",items:{oneOf:[{type:"object",description:"In filter",properties:{field:{type:"string",...e?{enum:e}:{}},operator:{type:"string",enum:Mn},value:{type:"array",items:{type:["string","number","null"]}}},required:["field","operator","value"],additionalProperties:!1},{type:"object",description:"Empty filter",properties:{field:{type:"string",...e?{enum:e}:{}},operator:{type:"string",enum:Sn}},required:["field","operator"],additionalProperties:!1}]}}),li=()=>({type:"array",description:"A list of filters to apply to the platform query",items:{oneOf:[{type:"object",description:"In filter",properties:{field:{type:"string"},operator:{type:"string"},value:{type:"array",items:{type:["string","number","null"]}}},required:["field","operator","value"],additionalProperties:!1},{type:"object",description:"Empty filter",properties:{field:{type:"string"},operator:{type:"string"}},required:["field","operator"],additionalProperties:!1}]}}),Vn={type:"object",description:"A query to launch at the advanced explore API",properties:{datasource:{type:"string",enum:["api_usage"]},metrics:pe(ct),dimensions:_e(Fe),filters:we(me),...ge},required:["datasource"],additionalProperties:!1},$n={type:"object",description:"A query to launch at the basic explore API",properties:{datasource:{type:"string",enum:["basic"]},metrics:pe(ut),dimensions:_e(Ye),filters:we(de),...ge},required:["datasource"],additionalProperties:!1},zn={type:"object",description:"A query to launch at the AI explore API",properties:{datasource:{type:"string",enum:["llm_usage"]},metrics:pe(On),dimensions:_e(lt),filters:we(fe),...ge},required:["datasource"],additionalProperties:!1},Bn={type:"object",description:"A query to launch at the Agentic explore API",properties:{datasource:{type:"string",enum:["agentic_usage"]},metrics:pe(In),dimensions:_e(dt),filters:we(he),...ge},required:["datasource"],additionalProperties:!1},Qn={type:"object",description:"A query to launch at the platform dashboard API",properties:{datasource:{type:"string",enum:["platform"]},metrics:pe(),dimensions:_e(),filters:li(),...ge},required:["datasource"],additionalProperties:!1},Zn={anyOf:[Vn,$n,zn,Bn,Qn]},Xn={type:"object",properties:{query:Zn,chart:{anyOf:[kn,Hn,Un,Fn,Ln,qn,Gn,Wn,jn]}},required:["query","chart"],additionalProperties:!1},Kn={type:"object",properties:{position:{type:"object",properties:{col:{type:"number"},row:{type:"number"}},description:"Position of the tile in the grid.",required:["col","row"],additionalProperties:!1},size:{type:"object",properties:{cols:{type:"number"},rows:{type:"number"},fit_to_content:{type:"boolean"}},description:"Number of columns and rows the tile occupies. If fitToContent is true for every tile in a row, and each tile only occupies 1 row, then the row will auto-fit to its content.",required:["cols","rows"],additionalProperties:!1}},required:["position","size"],additionalProperties:!1},Jn={type:"object",properties:{type:{type:"string",enum:["chart"]},definition:Xn,layout:Kn,id:{type:"string",description:"Unique identifier for the tile. If not provided, one will be generated."}},required:["type","definition","layout"],additionalProperties:!1},di={type:"object",properties:{tiles:{type:"array",items:Jn},tile_height:{type:"number",description:"Height of each tile in pixels."},columns:{type:"number",description:"Number of columns in the dashboard grid."},preset_filters:we([...new Set([...me,...de,...fe,...he])]),template_id:{type:["string","null"],description:"Template id which was used to instantiate this dashboard."}},required:["tiles"],additionalProperties:!1},mi=e=>{const t=[];return de.includes(e)&&t.push("basic"),me.includes(e)&&t.push("api_usage"),fe.includes(e)&&t.push("llm_usage"),he.includes(e)&&t.push("agentic_usage"),(Nn.includes(e)||xn.includes(e))&&t.push("requests"),t},fi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},hi=(e,t,n)=>{let r;const i=fi[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ke(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const yi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_i={date:Ke({formats:yi,defaultWidth:"full"}),time:Ke({formats:gi,defaultWidth:"full"}),dateTime:Ke({formats:pi,defaultWidth:"full"})},wi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bi=(e,t,n,r)=>wi[e];function se(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):c;i=e.formattingValues[l]||e.formattingValues[c]}else{const c=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[c]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Ti={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Di={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Mi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Si={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Oi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ei={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ni=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},vi={ordinalNumber:Ni,era:se({values:Ti,defaultWidth:"wide"}),quarter:se({values:Di,defaultWidth:"wide",argumentCallback:e=>e-1}),month:se({values:Mi,defaultWidth:"wide"}),day:se({values:Si,defaultWidth:"wide"}),dayPeriod:se({values:Oi,defaultWidth:"wide",formattingValues:Ei,defaultFormattingWidth:"wide"})};function ue(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const c=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(l)?xi(l,p=>p.test(c)):Ri(l,p=>p.test(c));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const g=t.slice(c.length);return{value:h,rest:g}}}function Ri(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function xi(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ii(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let c=e.valueCallback?e.valueCallback(o[0]):o[0];c=n.valueCallback?n.valueCallback(c):c;const l=t.slice(i.length);return{value:c,rest:l}}}const Pi=/^(\d+)(th|st|nd|rd)?/i,Ci=/\d+/i,Ai={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gi={any:[/^b/i,/^(a|c)/i]},ki={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yi={any:[/1/i,/2/i,/3/i,/4/i]},Fi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Hi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ui={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},qi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Li={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Wi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ji={ordinalNumber:Ii({matchPattern:Pi,parsePattern:Ci,valueCallback:e=>parseInt(e,10)}),era:ue({matchPatterns:Ai,defaultMatchWidth:"wide",parsePatterns:Gi,defaultParseWidth:"any"}),quarter:ue({matchPatterns:ki,defaultMatchWidth:"wide",parsePatterns:Yi,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ue({matchPatterns:Fi,defaultMatchWidth:"wide",parsePatterns:Hi,defaultParseWidth:"any"}),day:ue({matchPatterns:Ui,defaultMatchWidth:"wide",parsePatterns:qi,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:Li,defaultMatchWidth:"any",parsePatterns:Wi,defaultParseWidth:"any"})},Vi={code:"en-US",formatDistance:hi,formatLong:_i,formatRelative:bi,localize:vi,match:ji,options:{weekStartsOn:0,firstWeekContainsDate:1}};let $i={};function be(){return $i}const er=6048e5,zi=864e5,Bi=60,Qi=3600,Xt=Symbol.for("constructDateFrom");function C(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Xt in e?e[Xt](t):e instanceof Date?new e.constructor(t):new Date(t)}function N(e,t){return C(t||e,e)}function Kt(e){const t=N(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Zi(e,...t){const n=C.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function te(e,t){const n=N(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Xi(e,t,n){const[r,i]=Zi(n==null?void 0:n.in,e,t),o=te(r),c=te(i),l=+o-Kt(o),f=+c-Kt(c);return Math.round((l-f)/zi)}function Ki(e,t){const n=N(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Ji(e,t){const n=N(e,t==null?void 0:t.in);return Xi(n,Ki(n))+1}function H(e,t){var l,f,h,g;const n=be(),r=(t==null?void 0:t.weekStartsOn)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,i=N(e,t==null?void 0:t.in),o=i.getDay(),c=(o<r?7:0)+o-r;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}function Ce(e,t){return H(e,{...t,weekStartsOn:1})}function tr(e,t){const n=N(e,t==null?void 0:t.in),r=n.getFullYear(),i=C(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Ce(i),c=C(n,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const l=Ce(c);return n.getTime()>=o.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function eo(e,t){const n=tr(e,t),r=C(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ce(r)}function to(e,t){const n=N(e,t==null?void 0:t.in),r=+Ce(n)-+eo(n);return Math.round(r/er)+1}function nr(e,t){var g,p,y,S;const n=N(e,t==null?void 0:t.in),r=n.getFullYear(),i=be(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((S=(y=i.locale)==null?void 0:y.options)==null?void 0:S.firstWeekContainsDate)??1,c=C((t==null?void 0:t.in)||e,0);c.setFullYear(r+1,0,o),c.setHours(0,0,0,0);const l=H(c,t),f=C((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const h=H(f,t);return+n>=+l?r+1:+n>=+h?r:r-1}function no(e,t){var l,f,h,g;const n=be(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=nr(e,t),o=C((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),H(o,t)}function ro(e,t){const n=N(e,t==null?void 0:t.in),r=+H(n,t)-+no(n,t);return Math.round(r/er)+1}function w(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const q={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return w(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):w(n+1,2)},d(e,t){return w(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return w(e.getHours()%12||12,t.length)},H(e,t){return w(e.getHours(),t.length)},m(e,t){return w(e.getMinutes(),t.length)},s(e,t){return w(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return w(i,t.length)}},K={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Jt={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return q.y(e,t)},Y:function(e,t,n,r){const i=nr(e,r),o=i>0?i:1-i;if(t==="YY"){const c=o%100;return w(c,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):w(o,t.length)},R:function(e,t){const n=tr(e);return w(n,t.length)},u:function(e,t){const n=e.getFullYear();return w(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return w(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return w(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return q.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return w(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=ro(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):w(i,t.length)},I:function(e,t,n){const r=to(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):w(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):q.d(e,t)},D:function(e,t,n){const r=Ji(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):w(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return w(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return w(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return w(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=K.noon:r===0?i=K.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=K.evening:r>=12?i=K.afternoon:r>=4?i=K.morning:i=K.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return q.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):q.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):w(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):w(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):q.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):q.s(e,t)},S:function(e,t){return q.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return tn(r);case"XXXX":case"XX":return z(r);case"XXXXX":case"XXX":default:return z(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return tn(r);case"xxxx":case"xx":return z(r);case"xxxxx":case"xxx":default:return z(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+en(r,":");case"OOOO":default:return"GMT"+z(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+en(r,":");case"zzzz":default:return"GMT"+z(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return w(r,t.length)},T:function(e,t,n){return w(+e,t.length)}};function en(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+w(o,2)}function tn(e,t){return e%60===0?(e>0?"-":"+")+w(Math.abs(e)/60,2):z(e,t)}function z(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=w(Math.trunc(r/60),2),o=w(r%60,2);return n+i+t+o}const nn=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ao=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return nn(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",nn(r,t)).replace("{{time}}",rr(i,t))},io={p:rr,P:ao},oo=/^D+$/,so=/^Y+$/,uo=["D","DD","YY","YYYY"];function co(e){return oo.test(e)}function lo(e){return so.test(e)}function mo(e,t,n){const r=fo(e,t,n);if(console.warn(r),uo.includes(e))throw new RangeError(r)}function fo(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function ho(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function yo(e){return!(!ho(e)&&typeof e!="number"||isNaN(+N(e)))}const go=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,po=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_o=/^'([^]*?)'?$/,wo=/''/g,bo=/[a-zA-Z]/;function To(e,t,n){var g,p,y,S,_,b,G,P;const r=be(),i=(n==null?void 0:n.locale)??r.locale??Vi,o=(n==null?void 0:n.firstWeekContainsDate)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((S=(y=r.locale)==null?void 0:y.options)==null?void 0:S.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((b=(_=n==null?void 0:n.locale)==null?void 0:_.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((P=(G=r.locale)==null?void 0:G.options)==null?void 0:P.weekStartsOn)??0,l=N(e,n==null?void 0:n.in);if(!yo(l))throw new RangeError("Invalid time value");let f=t.match(po).map(D=>{const M=D[0];if(M==="p"||M==="P"){const W=io[M];return W(D,i.formatLong)}return D}).join("").match(go).map(D=>{if(D==="''")return{isToken:!1,value:"'"};const M=D[0];if(M==="'")return{isToken:!1,value:Do(D)};if(Jt[M])return{isToken:!0,value:D};if(M.match(bo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:D}});i.localize.preprocessor&&(f=i.localize.preprocessor(l,f));const h={firstWeekContainsDate:o,weekStartsOn:c,locale:i};return f.map(D=>{if(!D.isToken)return D.value;const M=D.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&lo(M)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&co(M))&&mo(M,t,String(e));const W=Jt[M[0]];return W(l,M,i.localize,h)}).join("")}function Do(e){const t=e.match(_o);return t?t[1].replace(wo,"'"):e}function Re(e,t,n){const r=N(e,n==null?void 0:n.in);return isNaN(t)?C(e,NaN):(r.setDate(r.getDate()+t),r)}function ar(e,t,n){const r=N(e,n==null?void 0:n.in);if(isNaN(t))return C(e,NaN);if(!t)return r;const i=r.getDate(),o=C(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const c=o.getDate();return i>=c?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function Mo(e,t,n){return ar(e,t*3,n)}function ne(e,t){const n=N(e,t==null?void 0:t.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function re(e,t){const n=N(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function So(e,t){const n=N(e,t==null?void 0:t.in),r=n.getFullYear(),i=n.getMonth(),o=C(n,0);return o.setFullYear(r,i+1,0),o.setHours(0,0,0,0),o.getDate()}function Oo(){return Object.assign({},be())}function rn(e){return+N(e)}function an(e){return Math.trunc(+N(e)/1e3)}function on(e){return Math.trunc(e*Qi)}function Eo(e){const t=e/Bi;return Math.trunc(t)}function ir(e,t,n){return ar(e,-1,n)}function or(e,t,n){return Mo(e,-1,n)}function sn(e,t,n){const r=Oo(),i=Ro(e,n.timeZone,n.locale??r.locale);return"formatToParts"in i?No(i,t):vo(i,t)}function No(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function vo(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function Ro(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function xo(e,t){const n=Go(t);return"formatToParts"in n?Po(n,e):Co(n,e)}const Io={year:0,month:1,day:2,hour:3,minute:4,second:5};function Po(e,t){try{const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const o=Io[n[i].type];o!==void 0&&(r[o]=parseInt(n[i].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function Co(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Je={},un=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Ao=un==="06/25/2014, 00:00:00"||un==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Go(e){return Je[e]||(Je[e]=Ao?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Je[e]}function ft(e,t,n,r,i,o,c){const l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,i,o,c),l}const cn=36e5,ko=6e4,et={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Te(e,t,n){if(!e)return 0;let r=et.timezoneZ.exec(e);if(r)return 0;let i,o;if(r=et.timezoneHH.exec(e),r)return i=parseInt(r[1],10),ln(i)?-(i*cn):NaN;if(r=et.timezoneHHMM.exec(e),r){i=parseInt(r[2],10);const c=parseInt(r[3],10);return ln(i,c)?(o=Math.abs(i)*cn+c*ko,r[1]==="+"?-o:o):NaN}if(Ho(e)){t=new Date(t||Date.now());const c=n?t:Yo(t),l=at(c,e);return-(n?l:Fo(t,l,e))}return NaN}function Yo(e){return ft(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function at(e,t){const n=xo(e,t),r=ft(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=e.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,r-i}function Fo(e,t,n){let i=e.getTime()-t;const o=at(new Date(i),n);if(t===o)return t;i-=o-t;const c=at(new Date(i),n);return o===c?o:Math.max(o,c)}function ln(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const dn={};function Ho(e){if(dn[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),dn[e]=!0,!0}catch{return!1}}const Uo=60*1e3,qo={X:function(e,t,n){const r=tt(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return mn(r);case"XXXX":case"XX":return ee(r);case"XXXXX":case"XXX":default:return ee(r,":")}},x:function(e,t,n){const r=tt(n.timeZone,e);switch(t){case"x":return mn(r);case"xxxx":case"xx":return ee(r);case"xxxxx":case"xxx":default:return ee(r,":")}},O:function(e,t,n){const r=tt(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Lo(r,":");case"OOOO":default:return"GMT"+ee(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return sn("short",e,n);case"zzzz":default:return sn("long",e,n)}}};function tt(e,t){const n=e?Te(e,t,!0)/Uo:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Ae(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function ee(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ae(Math.floor(r/60),2),o=Ae(Math.floor(r%60),2);return n+i+t+o}function mn(e,t){return e%60===0?(e>0?"-":"+")+Ae(Math.abs(e)/60,2):ee(e,t)}function Lo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ae(o,2)}function fn(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const sr=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,nt=36e5,hn=6e4,Wo=2,R={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:sr};function Ge(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?Wo:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=jo(e),{year:i,restDateString:o}=Vo(r.date,n),c=$o(o,i);if(c===null||isNaN(c.getTime()))return new Date(NaN);if(c){const l=c.getTime();let f=0,h;if(r.time&&(f=zo(r.time),f===null||isNaN(f)))return new Date(NaN);if(r.timeZone||t.timeZone){if(h=Te(r.timeZone||t.timeZone,new Date(l+f)),isNaN(h))return new Date(NaN)}else h=fn(new Date(l+f)),h=fn(new Date(l+f+h));return new Date(l+f+h)}else return new Date(NaN)}function jo(e){const t={};let n=R.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=R.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const i=R.timeZone.exec(r);i?(t.time=r.replace(i[1],""),t.timeZone=i[1].trim()):t.time=r}return t}function Vo(e,t){if(e){const n=R.YYY[t],r=R.YYYYY[t];let i=R.YYYY.exec(e)||r.exec(e);if(i){const o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=R.YY.exec(e)||n.exec(e),i){const o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function $o(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let o=R.MM.exec(e);if(o)return n=new Date(0),r=parseInt(o[1],10)-1,gn(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(o=R.DDD.exec(e),o){n=new Date(0);const c=parseInt(o[1],10);return Zo(t,c)?(n.setUTCFullYear(t,0,c),n):new Date(NaN)}if(o=R.MMDD.exec(e),o){n=new Date(0),r=parseInt(o[1],10)-1;const c=parseInt(o[2],10);return gn(t,r,c)?(n.setUTCFullYear(t,r,c),n):new Date(NaN)}if(o=R.Www.exec(e),o)return i=parseInt(o[1],10)-1,pn(i)?yn(t,i):new Date(NaN);if(o=R.WwwD.exec(e),o){i=parseInt(o[1],10)-1;const c=parseInt(o[2],10)-1;return pn(i,c)?yn(t,i,c):new Date(NaN)}return null}function zo(e){let t,n,r=R.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),rt(t)?t%24*nt:NaN;if(r=R.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),rt(t,n)?t%24*nt+n*hn:NaN;if(r=R.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const i=parseFloat(r[3].replace(",","."));return rt(t,n,i)?t%24*nt+n*hn+i*1e3:NaN}return null}function yn(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Bo=[31,28,31,30,31,30,31,31,30,31,30,31],Qo=[31,29,31,30,31,30,31,31,30,31,30,31];function ur(e){return e%400===0||e%4===0&&e%100!==0}function gn(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=ur(e);if(r&&n>Qo[t]||!r&&n>Bo[t])return!1}return!0}function Zo(e,t){if(t<1)return!1;const n=ur(e);return!(n&&t>366||!n&&t>365)}function pn(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function rt(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Xo=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Ko(e,t,n={}){t=String(t);const r=t.match(Xo);if(r){const i=Ge(n.originalDate||e,n);t=r.reduce(function(o,c){if(c[0]==="'")return o;const l=o.indexOf(c),f=o[l-1]==="'",h=o.replace(c,"'"+qo[c[0]](i,c,n)+"'");return f?h.substring(0,l-1)+h.substring(l+1):h},t)}return To(e,t,n)}function cr(e,t,n){e=Ge(e,n);const r=Te(t,e,!0),i=new Date(e.getTime()-r),o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}function lr(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Ko(cr(e,t,{timeZone:r.timeZone}),n,r)}function Jo(e,t,n){if(typeof e=="string"&&!e.match(sr))return Ge(e,{...n,timeZone:t});e=Ge(e,n);const r=ft(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=Te(t,new Date(r));return new Date(r+i)}function dr(e,t){return-Te(e,t)}function es(e,t={}){const n=(t==null?void 0:t.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone;let r="MMM dd, yyy hh:mm a";switch(t.format){case"short":r="MMM dd, yyyy";break;case"default":r="MMM dd, yyyy hh:mm a";break;case"full":r="MMM dd, yyyy hh:mm:ss.SSS a";break}return t.includeTZ&&(r+=" (z)"),lr(e,n,r)}function it(e,t={}){if(!e)return e;const n=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let r="MMM dd, yyy hh:mm a";t.short&&(r="MMM dd, yyy"),t.includeTZ&&(r+=" (z)");const i=new Date(e);return lr(i,n,r)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function ts(e,t){return`${it(e.getTime())} - ${it(t.getTime(),{includeTZ:!0})}`}const le={secondly:1e3,tenSecondly:10*1e3,thirtySecondly:30*1e3,minutely:60*1e3,fiveMinutely:5*60*1e3,tenMinutely:10*60*1e3,thirtyMinutely:30*60*1e3,hourly:60*60*1e3,twoHourly:2*60*60*1e3,twelveHourly:12*60*60*1e3,daily:60*60*24*1e3,weekly:60*60*24*7*1e3,trend:0};function ns(e,t){return e.map(n=>({value:n,label:t.t(`configuration.vitals.reports.granularity.${n}`)}))}function mr(e,t){return{duration:e,type:"duration",origin:t}}function rs(e){return e&&st.find(n=>e<=le[n])||null}function fr(e,t,n,r){const i=le[n];let o=0;return i>=le.daily&&(r?o=-dr(r,t):o=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-o)/i)*i+o)}function hr(e,t,n){return fr(Math.floor,e,t,n)}function ht(e,t,n){return fr(Math.ceil,e,t,n)}class He{constructor(t,n,r){E(this,"timeframe");E(this,"tz");E(this,"dataGranularity");if(this.constructor===He)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=n,this.dataGranularity=r??t.dataGranularity}calculateStartDate(t,n,r=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*r);{const i=this.endDate(),o=this.timeframe.rawStart(this.tz),c=hr(o,n,this.tz),f=(i.getTime()-c.getTime())*(r-1);return new Date(c.getTime()-f)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return mr(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return an(this.startDate())}endSeconds(){return an(this.endDate())}startMs(){return rn(this.startDate())}endMs(){return rn(this.endDate())}}class as extends He{constructor(n,r,i,o,c){super(n,i,o);E(this,"granularity");r&&n.allowedGranularities(c).has(r)?this.granularity=r:c?this.granularity=n.fineGrainedDefaultGranularity??n.defaultResponseGranularity:this.granularity=n.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return ht(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return le[this.granularity]}}class yr extends He{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return ht(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class is extends yr{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ke={exports:{}};ke.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Function]",p="[object GeneratorFunction]",y="[object Map]",S="[object Number]",_="[object Object]",b="[object Promise]",G="[object RegExp]",P="[object Set]",D="[object String]",M="[object Symbol]",W="[object WeakMap]",gt="[object ArrayBuffer]",De="[object DataView]",pt="[object Float32Array]",_t="[object Float64Array]",wt="[object Int8Array]",bt="[object Int16Array]",Tt="[object Int32Array]",Dt="[object Uint8Array]",Mt="[object Uint8ClampedArray]",St="[object Uint16Array]",Ot="[object Uint32Array]",Tr=/[\\^$.*+?()[\]{}|]/g,Dr=/\w*$/,Mr=/^\[object .+?Constructor\]$/,Sr=/^(?:0|[1-9]\d*)$/,T={};T[o]=T[c]=T[gt]=T[De]=T[l]=T[f]=T[pt]=T[_t]=T[wt]=T[bt]=T[Tt]=T[y]=T[S]=T[_]=T[G]=T[P]=T[D]=T[M]=T[Dt]=T[Mt]=T[St]=T[Ot]=!0,T[h]=T[g]=T[W]=!1;var Or=typeof xe=="object"&&xe&&xe.Object===Object&&xe,Er=typeof self=="object"&&self&&self.Object===Object&&self,k=Or||Er||Function("return this")(),Et=t&&!t.nodeType&&t,Nt=Et&&!0&&e&&!e.nodeType&&e,Nr=Nt&&Nt.exports===Et;function vr(a,s){return a.set(s[0],s[1]),a}function Rr(a,s){return a.add(s),a}function xr(a,s){for(var u=-1,m=a?a.length:0;++u<m&&s(a[u],u,a)!==!1;);return a}function Ir(a,s){for(var u=-1,m=s.length,v=a.length;++u<m;)a[v+u]=s[u];return a}function vt(a,s,u,m){for(var v=-1,x=a?a.length:0;++v<x;)u=s(u,a[v],v,a);return u}function Pr(a,s){for(var u=-1,m=Array(a);++u<a;)m[u]=s(u);return m}function Cr(a,s){return a==null?void 0:a[s]}function Rt(a){var s=!1;if(a!=null&&typeof a.toString!="function")try{s=!!(a+"")}catch{}return s}function xt(a){var s=-1,u=Array(a.size);return a.forEach(function(m,v){u[++s]=[v,m]}),u}function qe(a,s){return function(u){return a(s(u))}}function It(a){var s=-1,u=Array(a.size);return a.forEach(function(m){u[++s]=m}),u}var Ar=Array.prototype,Gr=Function.prototype,Me=Object.prototype,Le=k["__core-js_shared__"],Pt=function(){var a=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ct=Gr.toString,U=Me.hasOwnProperty,Se=Me.toString,kr=RegExp("^"+Ct.call(U).replace(Tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Nr?k.Buffer:void 0,Gt=k.Symbol,kt=k.Uint8Array,Yr=qe(Object.getPrototypeOf,Object),Fr=Object.create,Hr=Me.propertyIsEnumerable,Ur=Ar.splice,Yt=Object.getOwnPropertySymbols,qr=At?At.isBuffer:void 0,Lr=qe(Object.keys,Object),We=Z(k,"DataView"),ie=Z(k,"Map"),je=Z(k,"Promise"),Ve=Z(k,"Set"),$e=Z(k,"WeakMap"),oe=Z(Object,"create"),Wr=$(We),jr=$(ie),Vr=$(je),$r=$(Ve),zr=$($e),Ft=Gt?Gt.prototype:void 0,Ht=Ft?Ft.valueOf:void 0;function j(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var m=a[s];this.set(m[0],m[1])}}function Br(){this.__data__=oe?oe(null):{}}function Qr(a){return this.has(a)&&delete this.__data__[a]}function Zr(a){var s=this.__data__;if(oe){var u=s[a];return u===r?void 0:u}return U.call(s,a)?s[a]:void 0}function Xr(a){var s=this.__data__;return oe?s[a]!==void 0:U.call(s,a)}function Kr(a,s){var u=this.__data__;return u[a]=oe&&s===void 0?r:s,this}j.prototype.clear=Br,j.prototype.delete=Qr,j.prototype.get=Zr,j.prototype.has=Xr,j.prototype.set=Kr;function Y(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var m=a[s];this.set(m[0],m[1])}}function Jr(){this.__data__=[]}function ea(a){var s=this.__data__,u=Oe(s,a);if(u<0)return!1;var m=s.length-1;return u==m?s.pop():Ur.call(s,u,1),!0}function ta(a){var s=this.__data__,u=Oe(s,a);return u<0?void 0:s[u][1]}function na(a){return Oe(this.__data__,a)>-1}function ra(a,s){var u=this.__data__,m=Oe(u,a);return m<0?u.push([a,s]):u[m][1]=s,this}Y.prototype.clear=Jr,Y.prototype.delete=ea,Y.prototype.get=ta,Y.prototype.has=na,Y.prototype.set=ra;function B(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var m=a[s];this.set(m[0],m[1])}}function aa(){this.__data__={hash:new j,map:new(ie||Y),string:new j}}function ia(a){return Ee(this,a).delete(a)}function oa(a){return Ee(this,a).get(a)}function sa(a){return Ee(this,a).has(a)}function ua(a,s){return Ee(this,a).set(a,s),this}B.prototype.clear=aa,B.prototype.delete=ia,B.prototype.get=oa,B.prototype.has=sa,B.prototype.set=ua;function Q(a){this.__data__=new Y(a)}function ca(){this.__data__=new Y}function la(a){return this.__data__.delete(a)}function da(a){return this.__data__.get(a)}function ma(a){return this.__data__.has(a)}function fa(a,s){var u=this.__data__;if(u instanceof Y){var m=u.__data__;if(!ie||m.length<n-1)return m.push([a,s]),this;u=this.__data__=new B(m)}return u.set(a,s),this}Q.prototype.clear=ca,Q.prototype.delete=la,Q.prototype.get=da,Q.prototype.has=ma,Q.prototype.set=fa;function ha(a,s){var u=Qe(a)||Fa(a)?Pr(a.length,String):[],m=u.length,v=!!m;for(var x in a)U.call(a,x)&&!(v&&(x=="length"||Aa(x,m)))&&u.push(x);return u}function Ut(a,s,u){var m=a[s];(!(U.call(a,s)&&jt(m,u))||u===void 0&&!(s in a))&&(a[s]=u)}function Oe(a,s){for(var u=a.length;u--;)if(jt(a[u][0],s))return u;return-1}function ya(a,s){return a&&qt(s,Ze(s),a)}function ze(a,s,u,m,v,x,F){var I;if(m&&(I=x?m(a,v,x,F):m(a)),I!==void 0)return I;if(!Ne(a))return a;var zt=Qe(a);if(zt){if(I=Ia(a),!s)return va(a,I)}else{var X=V(a),Bt=X==g||X==p;if(Ua(a))return Ta(a,s);if(X==_||X==o||Bt&&!x){if(Rt(a))return x?a:{};if(I=Pa(Bt?{}:a),!s)return Ra(a,ya(I,a))}else{if(!T[X])return x?a:{};I=Ca(a,X,ze,s)}}F||(F=new Q);var Qt=F.get(a);if(Qt)return Qt;if(F.set(a,I),!zt)var Zt=u?xa(a):Ze(a);return xr(Zt||a,function(Xe,ve){Zt&&(ve=Xe,Xe=a[ve]),Ut(I,ve,ze(Xe,s,u,m,ve,a,F))}),I}function ga(a){return Ne(a)?Fr(a):{}}function pa(a,s,u){var m=s(a);return Qe(a)?m:Ir(m,u(a))}function _a(a){return Se.call(a)}function wa(a){if(!Ne(a)||ka(a))return!1;var s=$t(a)||Rt(a)?kr:Mr;return s.test($(a))}function ba(a){if(!Wt(a))return Lr(a);var s=[];for(var u in Object(a))U.call(a,u)&&u!="constructor"&&s.push(u);return s}function Ta(a,s){if(s)return a.slice();var u=new a.constructor(a.length);return a.copy(u),u}function Be(a){var s=new a.constructor(a.byteLength);return new kt(s).set(new kt(a)),s}function Da(a,s){var u=s?Be(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.byteLength)}function Ma(a,s,u){var m=s?u(xt(a),!0):xt(a);return vt(m,vr,new a.constructor)}function Sa(a){var s=new a.constructor(a.source,Dr.exec(a));return s.lastIndex=a.lastIndex,s}function Oa(a,s,u){var m=s?u(It(a),!0):It(a);return vt(m,Rr,new a.constructor)}function Ea(a){return Ht?Object(Ht.call(a)):{}}function Na(a,s){var u=s?Be(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.length)}function va(a,s){var u=-1,m=a.length;for(s||(s=Array(m));++u<m;)s[u]=a[u];return s}function qt(a,s,u,m){u||(u={});for(var v=-1,x=s.length;++v<x;){var F=s[v],I=void 0;Ut(u,F,I===void 0?a[F]:I)}return u}function Ra(a,s){return qt(a,Lt(a),s)}function xa(a){return pa(a,Ze,Lt)}function Ee(a,s){var u=a.__data__;return Ga(s)?u[typeof s=="string"?"string":"hash"]:u.map}function Z(a,s){var u=Cr(a,s);return wa(u)?u:void 0}var Lt=Yt?qe(Yt,Object):Wa,V=_a;(We&&V(new We(new ArrayBuffer(1)))!=De||ie&&V(new ie)!=y||je&&V(je.resolve())!=b||Ve&&V(new Ve)!=P||$e&&V(new $e)!=W)&&(V=function(a){var s=Se.call(a),u=s==_?a.constructor:void 0,m=u?$(u):void 0;if(m)switch(m){case Wr:return De;case jr:return y;case Vr:return b;case $r:return P;case zr:return W}return s});function Ia(a){var s=a.length,u=a.constructor(s);return s&&typeof a[0]=="string"&&U.call(a,"index")&&(u.index=a.index,u.input=a.input),u}function Pa(a){return typeof a.constructor=="function"&&!Wt(a)?ga(Yr(a)):{}}function Ca(a,s,u,m){var v=a.constructor;switch(s){case gt:return Be(a);case l:case f:return new v(+a);case De:return Da(a,m);case pt:case _t:case wt:case bt:case Tt:case Dt:case Mt:case St:case Ot:return Na(a,m);case y:return Ma(a,m,u);case S:case D:return new v(a);case G:return Sa(a);case P:return Oa(a,m,u);case M:return Ea(a)}}function Aa(a,s){return s=s??i,!!s&&(typeof a=="number"||Sr.test(a))&&a>-1&&a%1==0&&a<s}function Ga(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function ka(a){return!!Pt&&Pt in a}function Wt(a){var s=a&&a.constructor,u=typeof s=="function"&&s.prototype||Me;return a===u}function $(a){if(a!=null){try{return Ct.call(a)}catch{}try{return a+""}catch{}}return""}function Ya(a){return ze(a,!0,!0)}function jt(a,s){return a===s||a!==a&&s!==s}function Fa(a){return Ha(a)&&U.call(a,"callee")&&(!Hr.call(a,"callee")||Se.call(a)==o)}var Qe=Array.isArray;function Vt(a){return a!=null&&qa(a.length)&&!$t(a)}function Ha(a){return La(a)&&Vt(a)}var Ua=qr||ja;function $t(a){var s=Ne(a)?Se.call(a):"";return s==g||s==p}function qa(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=i}function Ne(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function La(a){return!!a&&typeof a=="object"}function Ze(a){return Vt(a)?ha(a):ba(a)}function Wa(){return[]}function ja(){return!1}e.exports=Ya})(ke,ke.exports);var ss=ke.exports;const us=os(ss),A=(e,t)=>new Date(e.getTime()-dr(t,e));class O{constructor(t){E(this,"timeframeText");E(this,"key");E(this,"display");E(this,"timeframeLength");E(this,"allowedTiers");E(this,"defaultResponseGranularity");E(this,"dataGranularity");E(this,"isRelative");E(this,"fineGrainedDefaultGranularity");E(this,"_startCustom");E(this,"_endCustom");E(this,"_allowedGranularitiesOverride");this.display=t.display,this.timeframeText=t.timeframeText,this.key=t.key,this.timeframeLength=t.timeframeLength,this.allowedTiers=t.allowedTiers,this.defaultResponseGranularity=t.defaultResponseGranularity,this.dataGranularity=t.dataGranularity,this.isRelative=t.isRelative,this._startCustom=t.startCustom,this._endCustom=t.endCustom,this._allowedGranularitiesOverride=t.allowedGranularitiesOverride,this.fineGrainedDefaultGranularity=t.fineGrainedDefaultGranularity}rawEnd(t){return this._endCustom||new Date}rawStart(t){return this._startCustom||new Date(this.rawEnd().getTime()-this.timeframeLengthMs())}timeframeLengthMs(){return this.timeframeLength()*1e3}maximumTimeframeLength(){return this.timeframeLength()}allowedGranularities(t){if(this._allowedGranularitiesOverride&&t)return new Set(this._allowedGranularitiesOverride);const n=new Set,r=this.maximumTimeframeLength()/3600;return r<=6&&n.add("minutely"),r>=2&&r<=7*24&&n.add("hourly"),r>=2*24&&n.add("daily"),r>=2*24*14&&n.add("weekly"),n}cacheKey(){return this.key!=="custom"?this.key:`${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`}v4Query(t){return this.key==="custom"?{type:"absolute",start:this.rawStart(),end:this.rawEnd(),tz:t}:{type:"relative",time_range:this.key,tz:t}}tzAdjustedDate(t){if(!t)return new Date;const n=Jo(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return cr(n,t)}}class cs extends O{rawStart(t){let n=H(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*7}}class ls extends O{rawStart(t){let n=re(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*31}}class ds extends O{rawStart(t){let n=ne(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*92}}class ms extends O{rawStart(t){let n=new Date(this.tzAdjustedDate(t).getFullYear(),0,1);return t&&(n=A(n,t)),n}maximumTimeframeLength(){return 60*60*24*366}}class fs extends O{rawEnd(t){let n=H(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=A(n,t)),n}rawStart(t){const n=this.tzAdjustedDate(t);let r=H(n.setDate(n.getDate()-7),{weekStartsOn:1});return t&&(r=A(r,t)),r}}class hs extends O{rawEnd(t){let n=ne(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}rawStart(t){let n=ne(or(this.tzAdjustedDate(t)));return t&&(n=A(n,t)),n}}class ys extends O{rawEnd(t){let n=re(this.tzAdjustedDate(t));return t&&(n=A(n,t)),n}rawStart(t){let n=re(ir(this.tzAdjustedDate(t)));return t&&(n=A(n,t)),n}}class gs extends O{rawEnd(t){let n=new Date(this.tzAdjustedDate(t).getFullYear(),0,1);return t&&(n=A(n,t)),n}rawStart(t){let n=new Date(this.tzAdjustedDate(t).getFullYear()-1,0,1);return t&&(n=A(n,t)),n}}const gr=new Map([[d.FIFTEEN_MIN,new O({key:d.FIFTEEN_MIN,display:"Last 15 minutes",timeframeText:"15 minutes",timeframeLength:()=>60*15,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"thirtySecondly",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely"]})],[d.ONE_HOUR,new O({key:d.ONE_HOUR,display:"Last hour",timeframeText:"One hour",timeframeLength:()=>60*60*1,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"minutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely"]})],[d.SIX_HOUR,new O({key:d.SIX_HOUR,display:"Last 6 hours",timeframeText:"6 hours",timeframeLength:()=>60*60*6,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"fiveMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[d.TWELVE_HOUR,new O({key:d.TWELVE_HOUR,display:"Last 12 hours",timeframeText:"12 hours",timeframeLength:()=>60*60*12,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"tenMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[d.ONE_DAY,new O({key:d.ONE_DAY,display:"Last 24 hours",timeframeText:"24 hours",timeframeLength:()=>60*60*24,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"thirtyMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[d.SEVEN_DAY,new O({key:d.SEVEN_DAY,display:"Last 7 days",timeframeText:"7 days",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[d.THIRTY_DAY,new O({key:d.THIRTY_DAY,display:"Last 30 days",timeframeText:"30 days",timeframeLength:()=>60*60*24*30,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twelveHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.NINETY_DAY,new O({key:d.NINETY_DAY,display:"Last 90 days",timeframeText:"90 days",timeframeLength:()=>60*60*24*90,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"daily",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.ONE_HUNDRED_EIGHTY_DAY,new O({key:d.ONE_HUNDRED_EIGHTY_DAY,display:"Last 180 days",timeframeText:"180 days",timeframeLength:()=>60*60*24*180,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"daily",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.ONE_YEAR,new O({key:d.ONE_YEAR,display:"Last 365 days",timeframeText:"365 days",timeframeLength:()=>60*60*24*365,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"daily",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[d.CURRENT_WEEK,new cs({key:d.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=H(new Date,{weekStartsOn:1});return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[d.CURRENT_MONTH,new ls({key:d.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=re(new Date);return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.CURRENT_QUARTER,new ds({key:d.CURRENT_QUARTER,display:"This quarter",timeframeText:"Quarter",timeframeLength:()=>{const e=ne(new Date);return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.CURRENT_YEAR,new ms({key:d.CURRENT_YEAR,display:"This year",timeframeText:"Year",timeframeLength:()=>{const e=new Date(new Date().getFullYear(),0,1);return(te(Re(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.PREVIOUS_WEEK,new fs({key:d.PREVIOUS_WEEK,display:"Previous week",timeframeText:"Week",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[d.PREVIOUS_MONTH,new ys({key:d.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=re(new Date),n=re(ir(new Date));return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(e=ot(t,n)),60*60*24*So(new Date().setMonth(new Date().getMonth()-1))+on(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.PREVIOUS_QUARTER,new hs({key:d.PREVIOUS_QUARTER,display:"Previous quarter",timeframeText:"Quarter",timeframeLength:()=>{const e=ne(new Date),t=ne(or(new Date));return(e.getTime()-t.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[d.PREVIOUS_YEAR,new gs({key:d.PREVIOUS_YEAR,display:"Previous year",timeframeText:"Year",timeframeLength:()=>{const e=new Date(new Date().getFullYear(),0,1),t=new Date(new Date().getFullYear()-1,0,1);let n=0;return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(n=ot(e,t)),60*60*24*(365+(t.getFullYear()%4===0?1:0))+on(n)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function ps(e){const t=new Date(e.start),n=new Date(e.end),r=(n.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&us(gr.get(e.timePeriodsKey))||new O({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:n,timeframeLength:()=>r,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function _s(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function ws(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function ot(e,t){return Eo(e.getTimezoneOffset()-t.getTimezoneOffset())}const bs={"15M":d.FIFTEEN_MIN,"1H":d.ONE_HOUR,"6H":d.SIX_HOUR,"12H":d.TWELVE_HOUR,"24H":d.ONE_DAY,"7D":d.SEVEN_DAY,"15m":d.FIFTEEN_MIN,"1h":d.ONE_HOUR,"6h":d.SIX_HOUR,"12h":d.TWELVE_HOUR,"24h":d.ONE_DAY,"7d":d.SEVEN_DAY,"30d":d.THIRTY_DAY,"90d":d.NINETY_DAY,"180d":d.ONE_HUNDRED_EIGHTY_DAY,"365d":d.ONE_YEAR,current_week:d.CURRENT_WEEK,current_month:d.CURRENT_MONTH,current_quarter:d.CURRENT_QUARTER,current_year:d.CURRENT_YEAR,previous_week:d.PREVIOUS_WEEK,previous_month:d.PREVIOUS_MONTH,previous_quarter:d.PREVIOUS_QUARTER,previous_year:d.PREVIOUS_YEAR};class Ue{constructor(t){E(this,"_seed");this._seed=t}next(t,n){const r=Math.sin(this._seed++)*1e4,i=r-Math.floor(r);return Math.floor(i*(n-t+1))+t}}const Ts=({metrics:e,dimensionMap:t,metaOverrides:n,valueRange:r=[50,500],timeSeries:i=!1})=>i?e.length===1?pr(e[0],t,n,r):_r(e,n,r):wr(e,t,n,r),pr=(e,t,n,r)=>{const i=yt(10,1e4),o=new Ue(i),[c,l]=r||[50,500],f=Date.now()-6*60*60*1e3,h=Date.now(),g=[];let p=0;for(let _=f;_<=h;_+=60*60*1e3)if(t)for(const b in t)t[b].forEach(G=>{p+=o.next(c,l);const P={[b]:G,[e.name]:p},D={version:"1.0",timestamp:new Date(_).toISOString(),event:P};g.push(D)});else{p+=o.next(c,l);const b={version:"1.0",timestamp:new Date(_).toISOString(),event:{[e.name]:p}};g.push(b)}const y={};if(t)for(const _ in t)y[_]={},t[_].forEach(b=>{y[_][b]={name:b,deleted:!1}});const S={start:new Date(f).toISOString(),end:new Date(h).toISOString(),query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:y,...n??{}};return{data:g,meta:S}},_r=(e,t,n)=>{const r=yt(10,1e4),i=new Ue(r),[o,c]=n||[50,500],l=Date.now()-6*60*60*1e3,f=Date.now(),h=[],g={};e.forEach(y=>{g[y.name]=0});for(let y=l;y<=f;y+=60*60*1e3){const S={};e.forEach(b=>{g[b.name]+=i.next(o,c),S[b.name]=g[b.name]});const _={version:"1.0",timestamp:new Date(y).toISOString(),event:S};h.push(_)}const p={start:new Date(l).toISOString(),end:new Date(f).toISOString(),query_id:"12345",metric_names:e.map(y=>y.name),metric_units:e.reduce((y,S)=>(y[S.name]=S.unit,y),{}),granularity_ms:60*60*1e3,display:{},...t??{}};return{data:h,meta:p}},wr=(e,t,n,r)=>{const i=Math.floor(Math.random()*9991)+10,o=new Ue(i),[c,l]=r||[50,500],f=Date.now()-6*60*60*1e3,h=Date.now(),g=new Date((f+h)/2).toISOString(),p=[];if(t){const _=Object.keys(t),b=Object.values(t),G=(P,D)=>{if(D===_.length){e.forEach(M=>{P[M.name]=o.next(c,l)}),p.push({version:"1.0",timestamp:new Date().toISOString(),event:{...P}});return}b[D].forEach(M=>{G({...P,[_[D]]:M},D+1)})};G({},0)}else{const _={};e.forEach(b=>{_[b.name]=o.next(c,l)}),p.push({version:"1.0",timestamp:g,event:_})}const y={};if(t)for(const _ in t)y[_]={},t[_].forEach(b=>{y[_][b]={name:b,deleted:!1}});const S={start:new Date(f).toISOString(),end:new Date(h).toISOString(),query_id:"12345",metric_names:e.map(_=>_.name),metric_units:e.reduce((_,b)=>(_[b.name]=b.unit,_),{}),truncated:!1,limit:50,display:y,granularity_ms:h-f,...n??{}};return{data:p,meta:S}};function yt(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}const br=new Map(mt.map(e=>[e.code,{code:e.code,name:e.name}])),Ds=e=>{var t;return((t=br.get(e))==null?void 0:t.name)||e},_n=1e3,Ms=1e4,wn=1e6,bn=1e9,Tn=1e12,ce=(e,t)=>{if(t.separator===!1||e<1e3)return e.toString();const n=typeof t.separator=="string"?t.separator:",",r=[];return Math.round(e).toString().split("").reverse().forEach((o,c)=>{c&&c%3===0&&r.push(n),r.push(o)}),r.reverse().join("")},J=(e,t,n)=>{const r=e/t,i=n.round?"round":"floor";if(n.decimal===!1)return Math[i](r).toString();let o;n.precision?o=r:o=r<10?Math[i](r*10)/10:Math[i](r);let c=o.toString();return typeof n.decimal=="string"&&(c=c.replace(".",n.decimal)),c};function Ie(e,t={}){let n;const r=e<0;r&&(e=Math.abs(e)),t.precision&&(e=parseFloat(e.toPrecision(t.precision)));const i=t.min10k?Ms:_n;return e<i||t.precision&&t.precision>Math.log10(e)?n=ce(J(e,1,t),t):e<wn?n=`${J(e,_n,t)}k`:e<bn?n=`${J(e,wn,t)}m`:e<Tn?n=`${ce(J(e,bn,t),t)}b`:n=`${ce(J(e,Tn,t),t)}t`,r&&(n=`-${n}`),t.capital&&(n=n.toUpperCase()),t.prefix&&(n=`${t.prefix}${n}`),t.suffix&&(n=`${n}${t.suffix}`),n}Ie.addCommas=ce;var Dn;const Ss=typeof document<"u"&&((Dn=document.documentElement)==null?void 0:Dn.lang)||"en-US",Pe=new Intl.NumberFormat(Ss);function Os({i18n:e}){const t=(o,c)=>{if(isNaN(o))return"0 B";const l=c?Math.pow(2,50):1e15,f=c?Math.pow(2,40):1e12,h=c?Math.pow(2,30):1e9,g=c?Math.pow(2,20):1e6,p=c?Math.pow(2,10):1e3;let y;return o>=l?y=e.formatNumber(Number.parseFloat((o/l).toPrecision(3)),{style:"unit",unit:"petabyte",unitDisplay:"narrow"}):o>=f?y=e.formatNumber(Number.parseFloat((o/f).toPrecision(3)),{style:"unit",unit:"terabyte",unitDisplay:"narrow"}):o>=h?y=e.formatNumber(Number.parseFloat((o/h).toPrecision(3)),{style:"unit",unit:"gigabyte",unitDisplay:"narrow"}):o>=g?y=e.formatNumber(Number.parseFloat((o/g).toPrecision(3)),{style:"unit",unit:"megabyte",unitDisplay:"narrow"}):o>=p?y=e.formatNumber(Number.parseFloat((o/p).toPrecision(3)),{style:"unit",unit:"kilobyte",unitDisplay:"narrow"}):y=e.formatNumber(Number.parseFloat(o.toPrecision(3)),{style:"unit",unit:"byte",unitDisplay:"narrow"}),y.replace(/([a-zA-Z]*)$/," $1")},n=(o,c="USD")=>isNaN(o)?c==="USD"?"$0.00":`${o}`:o>=.01||c!=="USD"?e.formatNumber(o,{style:"currency",currency:c}):o<1e-4?"< $0.0001":`$${Number.parseFloat(o.toPrecision(4))}`;return{formatUnit:(o,c,{isBytes1024:l=!1,currency:f="USD",approximate:h=!1,translateUnit:g=p=>p}={})=>{const p=g(c,o);switch(c){case"bytes":return t(o,l);case"usd":return n(o,f);case"ms":case"count/minute":case"token count":case"count":default:return isNaN(o)?`${o}`:h?`${Ie(o,{capital:!0})} ${p}`:o>=.01?`${Pe.format(Number.parseFloat(o.toFixed(2)))} ${p}`:`${Number.parseFloat(o.toPrecision(4))} ${p}`}},formatBytes:t,formatCost:n,formatRange:(o,c,l,{isBytes1024:f=!1,currency:h="USD",approximate:g=!1,translateUnit:p=y=>y}={})=>{const y=p(l,c);switch(l){case"bytes":return`${t(o,f)} - ${t(c,f)}`;case"usd":return`${n(o,h)} - ${n(c,h)}`;case"ms":case"count/minute":case"token count":case"count":default:if(isNaN(o)||isNaN(c))return`${o} - ${c}`;if(g)return`${Ie(o,{capital:!0})} - ${Ie(c,{capital:!0})} ${y}`}const S=o>=.01?`${Pe.format(Number.parseFloat(o.toFixed(2)))}`:`${Number.parseFloat(o.toPrecision(4))}`,_=c>=.01?`${Pe.format(Number.parseFloat(c.toFixed(2)))}`:`${Number.parseFloat(c.toPrecision(4))}`;return`${S} - ${_} ${y}`}}}exports.COUNTRIES=mt;exports.DeltaQueryTime=is;exports.EXPORT_RECORD_LIMIT=Ba;exports.Granularities=le;exports.INJECT_QUERY_PROVIDER=Qa;exports.REFRESH_INTERVAL_MS=za;exports.SeededRandom=Ue;exports.TIMEFRAME_LOOKUP=bs;exports.TimePeriods=gr;exports.Timeframe=O;exports.TimeframeKeys=d;exports.TimeseriesQueryTime=as;exports.UnaryQueryTime=yr;exports.agenticExploreAggregations=In;exports.agenticUsageSchema=Bn;exports.aiExploreAggregations=On;exports.apiUsageQuerySchema=Vn;exports.barChartSchema=kn;exports.basicExploreAggregations=ut;exports.basicQuerySchema=$n;exports.ceilToNearestTimeGrain=ht;exports.choroplethMapSchema=jn;exports.countries=br;exports.dashboardConfigSchema=di;exports.dashboardTileTypes=si;exports.datasourceToFilterableDimensions=Pn;exports.datePickerSelectionToTimeframe=ps;exports.donutChartSchema=Un;exports.dstOffsetHours=ot;exports.exploreAggregations=ct;exports.exploreFilterTypesV2=Mn;exports.extendedRelativeTimeRangeValues=Za;exports.filterableAgenticExploreDimensions=he;exports.filterableAiExploreDimensions=fe;exports.filterableBasicExploreDimensions=de;exports.filterableExploreDimensions=me;exports.filterableRequestDimensions=Nn;exports.filterableRequestMetrics=xn;exports.filterableRequestWildcardDimensions=ri;exports.floorToNearestTimeGrain=hr;exports.formatTime=it;exports.formatTimeRange=ts;exports.formatTimestamp=es;exports.gaugeChartSchema=Hn;exports.generateCrossSectionalData=wr;exports.generateData=Ts;exports.generateMultipleMetricTimeSeriesData=_r;exports.generateSingleMetricTimeSeriesData=pr;exports.getCountryName=Ds;exports.getFieldDataSources=mi;exports.granularitiesToOptions=ns;exports.granularityMsToQuery=mr;exports.granularityValues=st;exports.llmUsageSchema=zn;exports.metricCardSchema=Ln;exports.msToGranularity=rs;exports.numberFormatter=Pe;exports.platformQuerySchema=Qn;exports.queryDatasources=ii;exports.queryableAgenticExploreDimensions=dt;exports.queryableAiExploreDimensions=lt;exports.queryableBasicExploreDimensions=Ye;exports.queryableExploreDimensions=Fe;exports.queryableRequestDimensions=En;exports.queryableRequestMetrics=Rn;exports.queryableRequestWildcardDimensions=vn;exports.rand=yt;exports.relativeTimeRangeValuesRequestV2=ai;exports.relativeTimeRangeValuesV4=ni;exports.reportChartTypes=Xa;exports.requestFilterTypeEmptyV2=Sn;exports.requestFilterTypeEqualsV2=Ka;exports.requestFilterTypeMetricV2=Ja;exports.requestFilterTypeWildcardV2=ei;exports.singleValueSchema=Wn;exports.slottableSchema=Gn;exports.stripUnknownFilters=oi;exports.thresholdSchema=Yn;exports.tileConfigSchema=Jn;exports.tileDefinitionSchema=Xn;exports.tileLayoutSchema=Kn;exports.timeRangeTypeV2=ti;exports.timeframeToDatepickerSelection=_s;exports.timeframeToDatepickerTimeperiod=ws;exports.timeseriesChartSchema=Fn;exports.topNTableSchema=qn;exports.unitFormatter=Os;exports.validDashboardQuery=Zn;
2
2
  //# sourceMappingURL=vitals-utilities.cjs.map