@kong-ui-public/analytics-utilities 11.2.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/dashboardSchema.v2.d.ts +89 -4
- package/dist/types/dashboardSchema.v2.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +299 -281
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(c,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(c=typeof globalThis<"u"?globalThis:c||self,R(c["kong-ui-public-vitals-utilities"]={}))})(this,function(c){"use strict";var js=Object.defineProperty;var Vs=(c,R,ne)=>R in c?js(c,R,{enumerable:!0,configurable:!0,writable:!0,value:ne}):c[R]=ne;var b=(c,R,ne)=>Vs(c,typeof R!="symbol"?R+"":R,ne);const tn="analytics-query-provider";var y=(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.CURRENT_WEEK="current_week",e.CURRENT_MONTH="current_month",e.CURRENT_QUARTER="current_quarter",e.PREVIOUS_WEEK="previous_week",e.PREVIOUS_MONTH="previous_month",e.PREVIOUS_QUARTER="previous_quarter",e))(y||{});const rn=["horizontal_bar","vertical_bar","timeseries_line","choropleth_map","timeseries_bar","donut","single_value"],ut=["in","not_in","selector"],nn=["=","!="],an=["=","!=","<",">","<=",">="],ct=["empty","not_empty"],sn=["starts_with","ends_with"],on=["absolute","relative"],lt=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],ke=["secondly","tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly","twoHourly","twelveHourly","daily","weekly","trend"],ae=e=>e.filter(t=>t!=="time"),ge=["api","api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","portal","route","status_code","status_code_grouped","time"],ie=ae(ge),Ye=["active_services","request_count","request_per_minute","response_latency_average"],Ge=[...ge,"application","consumer","country_code","iso_code","upstream_status_code","upstream_status_code_grouped","response_source","data_plane_node_version","realm"],se=ae(Ge),dt=[...Ye,"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"],Ae=["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"],oe=ae(Ae),ft=["total_tokens","prompt_tokens","completion_tokens","ai_request_count","cost","llm_cache_embeddings_latency_average","llm_cache_fetch_latency_average","llm_latency_average","llm_embeddings_tokens","llm_embeddings_cost"],mt=["api","api_product","api_product_version","application","auth_type","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","iso_code","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"],ht=ae(mt),yt=["auth_type","client_ip","country_code","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"],un=yt,gt=["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"],pt=ae(gt),cn=["15M","1H","6H","12H","24H","7D"],ln=["basic","api_usage","llm_usage"],_t={basic:new Set(ie),api_usage:new Set(se),llm_usage:new Set(oe)},dn=(e,t)=>t.filter(r=>_t[e].has(r.field)),wt=["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MK","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],fn=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value","choropleth_map"],ue={type:"string"},q={type:"string"},Tt={type:"boolean"},bt={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},Dt={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},Mt={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chart_dataset_colors:bt,synthetics_data_key:ue,chart_title:q,allow_csv_export:Tt},required:["type"],additionalProperties:!1},Ot={type:"object",properties:{type:{type:"string",enum:["timeseries_line","timeseries_bar"]},stacked:{type:"boolean"},threshold:{type:"object",additionalProperties:{type:"number"}},chart_dataset_colors:bt,synthetics_data_key:ue,chart_title:q,allow_csv_export:Tt},required:["type"],additionalProperties:!1},St={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:ue,chart_title:q},required:["type"],additionalProperties:!1},vt={type:"object",properties:{type:{type:"string",enum:["donut"]},synthetics_data_key:ue,chart_title:q},required:["type"],additionalProperties:!1},Et={type:"object",properties:{chart_title:q,synthetics_data_key:ue,type:{type:"string",enum:["top_n"]},description:{type:"string"},entity_link:{type:"string"}},required:["type"],additionalProperties:!1},Nt={type:"object",properties:{chart_title:q,type:{type:"string",enum:["golden_signals"]},long_card_titles:{type:"boolean"},description:{type:"string"},percentile_latency:{type:"boolean"}},required:["type"],additionalProperties:!1},Pt={type:"object",properties:{type:{type:"string",enum:["single_value"]},decimal_points:{type:"number"},chart_title:q},required:["type"],additionalProperties:!1},It={type:"object",properties:{type:{type:"string",enum:["choropleth_map"]},chart_title:q,fit_to_country:{type:"string",enum:wt},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},xe={granularity:{type:"string",description:'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',enum:ke},time_range:{type:"object",description:"The time range to query.",anyOf:[{type:"object",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["relative"]},time_range:{type:"string",enum:lt,default:"1h"}},required:["type","time_range"],additionalProperties:!1},{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}],default:{type:"relative",time_range:"1h"}},limit:{type:"number"},meta:{type:"object"}},He=e=>({type:"array",description:"List of aggregated metrics to collect across the requested time span.",items:{type:"string",enum:e}}),Fe=e=>({type:"array",description:"List of attributes or entity types to group by.",minItems:0,maxItems:2,items:{type:"string",enum:e}}),pe=e=>({type:"array",description:"A list of filters to apply to the query",items:{oneOf:[{type:"object",description:"In filter",properties:{field:{type:"string",enum:e},operator:{type:"string",enum:ut},value:{type:"array",items:{type:["string","number","null"]}}},required:["field","operator","value"],additionalProperties:!1},{type:"object",description:"Empty filter",properties:{field:{type:"string",enum:e},operator:{type:"string",enum:ct}},required:["field","operator"],additionalProperties:!1}]}}),Rt={type:"object",description:"A query to launch at the advanced explore API",properties:{datasource:{type:"string",enum:["api_usage"]},metrics:He(dt),dimensions:Fe(Ge),filters:pe(se),...xe},required:["datasource"],additionalProperties:!1},Ct={type:"object",description:"A query to launch at the basic explore API",properties:{datasource:{type:"string",enum:["basic"]},metrics:He(Ye),dimensions:Fe(ge),filters:pe(ie),...xe},required:["datasource"],additionalProperties:!1},kt={type:"object",description:"A query to launch at the AI explore API",properties:{datasource:{type:"string",enum:["llm_usage"]},metrics:He(ft),dimensions:Fe(Ae),filters:pe(oe),...xe},required:["datasource"],additionalProperties:!1},Yt={anyOf:[Rt,Ct,kt]},Gt={type:"object",properties:{query:Yt,chart:{anyOf:[Mt,St,vt,Ot,Nt,Et,Dt,Pt,It]}},required:["query","chart"],additionalProperties:!1},At={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},xt={type:"object",properties:{type:{type:"string",enum:["chart"]},definition:Gt,layout:At,id:{type:"string",description:"Unique identifier for the tile. If not provided, one will be generated."}},required:["type","definition","layout"],additionalProperties:!1},mn={type:"object",properties:{tiles:{type:"array",items:xt},tile_height:{type:"number",description:"Height of each tile in pixels."},preset_filters:pe([...new Set([...se,...ie,...oe])]),template_id:{type:["string","null"],description:"Template id which was used to instantiate this dashboard."}},required:["tiles"],additionalProperties:!1},hn=e=>{const t=[];return ie.includes(e)&&t.push("basic"),se.includes(e)&&t.push("api_usage"),oe.includes(e)&&t.push("llm_usage"),(ht.includes(e)||pt.includes(e))&&t.push("requests"),t},Ht=6048e5,yn=864e5,gn=60,pn=3600,Ft=Symbol.for("constructDateFrom");function C(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ft in e?e[Ft](t):e instanceof Date?new e.constructor(t):new Date(t)}function D(e,t){return C(t||e,e)}function qt(e,t,r){const n=D(e,r==null?void 0:r.in);return isNaN(t)?C(e,NaN):(n.setDate(n.getDate()+t),n)}function _n(e,t,r){const n=D(e,r==null?void 0:r.in);if(isNaN(t))return C(e,NaN);const i=n.getDate(),o=C(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const l=o.getDate();return i>=l?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}let wn={};function ce(){return wn}function G(e,t){var f,h,m,w;const r=ce(),n=(t==null?void 0:t.weekStartsOn)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((w=(m=r.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0,i=D(e,t==null?void 0:t.in),o=i.getDay(),l=(o<n?7:0)+o-n;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function _e(e,t){return G(e,{...t,weekStartsOn:1})}function Wt(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=C(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=_e(i),l=C(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const f=_e(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=f.getTime()?n:n-1}function Lt(e){const t=D(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Tn(e,...t){const r=C.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function we(e,t){const r=D(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function bn(e,t,r){const[n,i]=Tn(r==null?void 0:r.in,e,t),o=we(n),l=we(i),f=+o-Lt(o),h=+l-Lt(l);return Math.round((f-h)/yn)}function Dn(e,t){const r=Wt(e,t),n=C(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),_e(n)}function Mn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function On(e){return!(!Mn(e)&&typeof e!="number"||isNaN(+D(e)))}function $(e,t){const r=D(e,t==null?void 0:t.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Sn(e,t){const r=D(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const vn={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"}},En=(e,t,r)=>{let n;const i=vn[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function qe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Nn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},In={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rn={date:qe({formats:Nn,defaultWidth:"full"}),time:qe({formats:Pn,defaultWidth:"full"}),dateTime:qe({formats:In,defaultWidth:"full"})},Cn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},kn=(e,t,r,n)=>Cn[e];function le(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,f=r!=null&&r.width?String(r.width):l;i=e.formattingValues[f]||e.formattingValues[l]}else{const l=e.defaultWidth,f=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[f]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Yn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},An={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"]},xn={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"]},Hn={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"}},Fn={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"}},qn={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:le({values:Yn,defaultWidth:"wide"}),quarter:le({values:Gn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:le({values:An,defaultWidth:"wide"}),day:le({values:xn,defaultWidth:"wide"}),dayPeriod:le({values:Hn,defaultWidth:"wide",formattingValues:Fn,defaultFormattingWidth:"wide"})};function de(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const l=o[0],f=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?Ln(f,g=>g.test(l)):Wn(f,g=>g.test(l));let m;m=e.valueCallback?e.valueCallback(h):h,m=r.valueCallback?r.valueCallback(m):m;const w=t.slice(l.length);return{value:m,rest:w}}}function Wn(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Ln(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Un(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=r.valueCallback?r.valueCallback(l):l;const f=t.slice(i.length);return{value:l,rest:f}}}const jn=/^(\d+)(th|st|nd|rd)?/i,Vn=/\d+/i,zn={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},Bn={any:[/^b/i,/^(a|c)/i]},Xn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$n={any:[/1/i,/2/i,/3/i,/4/i]},Qn={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},Zn={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]},Kn={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},Jn={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]},ea={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},ta={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}},ra={ordinalNumber:Un({matchPattern:jn,parsePattern:Vn,valueCallback:e=>parseInt(e,10)}),era:de({matchPatterns:zn,defaultMatchWidth:"wide",parsePatterns:Bn,defaultParseWidth:"any"}),quarter:de({matchPatterns:Xn,defaultMatchWidth:"wide",parsePatterns:$n,defaultParseWidth:"any",valueCallback:e=>e+1}),month:de({matchPatterns:Qn,defaultMatchWidth:"wide",parsePatterns:Zn,defaultParseWidth:"any"}),day:de({matchPatterns:Kn,defaultMatchWidth:"wide",parsePatterns:Jn,defaultParseWidth:"any"}),dayPeriod:de({matchPatterns:ea,defaultMatchWidth:"any",parsePatterns:ta,defaultParseWidth:"any"})},na={code:"en-US",formatDistance:En,formatLong:Rn,formatRelative:kn,localize:qn,match:ra,options:{weekStartsOn:0,firstWeekContainsDate:1}};function aa(e,t){const r=D(e,t==null?void 0:t.in);return bn(r,Sn(r))+1}function ia(e,t){const r=D(e,t==null?void 0:t.in),n=+_e(r)-+Dn(r);return Math.round(n/Ht)+1}function Ut(e,t){var w,g,p,I;const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=ce(),o=(t==null?void 0:t.firstWeekContainsDate)??((g=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((I=(p=i.locale)==null?void 0:p.options)==null?void 0:I.firstWeekContainsDate)??1,l=C((t==null?void 0:t.in)||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const f=G(l,t),h=C((t==null?void 0:t.in)||e,0);h.setFullYear(n,0,o),h.setHours(0,0,0,0);const m=G(h,t);return+r>=+f?n+1:+r>=+m?n:n-1}function sa(e,t){var f,h,m,w;const r=ce(),n=(t==null?void 0:t.firstWeekContainsDate)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(m=r.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??1,i=Ut(e,t),o=C((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),G(o,t)}function oa(e,t){const r=D(e,t==null?void 0:t.in),n=+G(r,t)-+sa(r,t);return Math.round(n/Ht)+1}function _(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const W={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return _(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):_(r+1,2)},d(e,t){return _(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return _(e.getHours()%12||12,t.length)},H(e,t){return _(e.getHours(),t.length)},m(e,t){return _(e.getMinutes(),t.length)},s(e,t){return _(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return _(i,t.length)}},Q={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jt={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return W.y(e,t)},Y:function(e,t,r,n){const i=Ut(e,n),o=i>0?i:1-i;if(t==="YY"){const l=o%100;return _(l,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):_(o,t.length)},R:function(e,t){const r=Wt(e);return _(r,t.length)},u:function(e,t){const r=e.getFullYear();return _(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return _(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return _(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return W.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return _(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=oa(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):_(i,t.length)},I:function(e,t,r){const n=ia(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):_(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):W.d(e,t)},D:function(e,t,r){const n=aa(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):_(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return _(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return _(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return _(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=Q.noon:n===0?i=Q.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=Q.evening:n>=12?i=Q.afternoon:n>=4?i=Q.morning:i=Q.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return W.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):W.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):_(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):_(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):W.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):W.s(e,t)},S:function(e,t){return W.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return zt(n);case"XXXX":case"XX":return U(n);case"XXXXX":case"XXX":default:return U(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return zt(n);case"xxxx":case"xx":return U(n);case"xxxxx":case"xxx":default:return U(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Vt(n,":");case"OOOO":default:return"GMT"+U(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Vt(n,":");case"zzzz":default:return"GMT"+U(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return _(n,t.length)},T:function(e,t,r){return _(+e,t.length)}};function Vt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return o===0?r+String(i):r+String(i)+t+_(o,2)}function zt(e,t){return e%60===0?(e>0?"-":"+")+_(Math.abs(e)/60,2):U(e,t)}function U(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=_(Math.trunc(n/60),2),o=_(n%60,2);return r+i+t+o}const Bt=(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"})}},Xt=(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"})}},ua={p:Xt,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Bt(e,t);let o;switch(n){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}}",Bt(n,t)).replace("{{time}}",Xt(i,t))}},ca=/^D+$/,la=/^Y+$/,da=["D","DD","YY","YYYY"];function fa(e){return ca.test(e)}function ma(e){return la.test(e)}function ha(e,t,r){const n=ya(e,t,r);if(console.warn(n),da.includes(e))throw new RangeError(n)}function ya(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ga=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_a=/^'([^]*?)'?$/,wa=/''/g,Ta=/[a-zA-Z]/;function $t(e,t,r){var w,g,p,I,k,Y,A,j;const n=ce(),i=(r==null?void 0:r.locale)??n.locale??na,o=(r==null?void 0:r.firstWeekContainsDate)??((g=(w=r==null?void 0:r.locale)==null?void 0:w.options)==null?void 0:g.firstWeekContainsDate)??n.firstWeekContainsDate??((I=(p=n.locale)==null?void 0:p.options)==null?void 0:I.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((Y=(k=r==null?void 0:r.locale)==null?void 0:k.options)==null?void 0:Y.weekStartsOn)??n.weekStartsOn??((j=(A=n.locale)==null?void 0:A.options)==null?void 0:j.weekStartsOn)??0,f=D(e,r==null?void 0:r.in);if(!On(f))throw new RangeError("Invalid time value");let h=t.match(pa).map(S=>{const M=S[0];if(M==="p"||M==="P"){const V=ua[M];return V(S,i.formatLong)}return S}).join("").match(ga).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const M=S[0];if(M==="'")return{isToken:!1,value:ba(S)};if(jt[M])return{isToken:!0,value:S};if(M.match(Ta))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:S}});i.localize.preprocessor&&(h=i.localize.preprocessor(f,h));const m={firstWeekContainsDate:o,weekStartsOn:l,locale:i};return h.map(S=>{if(!S.isToken)return S.value;const M=S.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&ma(M)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&fa(M))&&ha(M,t,String(e));const V=jt[M[0]];return V(f,M,i.localize,m)}).join("")}function ba(e){const t=e.match(_a);return t?t[1].replace(wa,"'"):e}function Da(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=r.getMonth(),o=C(r,0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}function Ma(){return Object.assign({},ce())}function Qt(e){return+D(e)}function Zt(e){return Math.trunc(+D(e)/1e3)}function Oa(e){return Math.trunc(e*pn)}function Sa(e){const t=e/gn;return Math.trunc(t)}function Kt(e,t,r){return _n(e,-1,r)}function Jt(e,t,r){const n=Ma(),i=Na(e,r.timeZone,r.locale??n.locale);return"formatToParts"in i?va(i,t):Ea(i,t)}function va(e,t){const r=e.formatToParts(t);for(let n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function Ea(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function Na(e,t,r){return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Pa(e,t){const r=Ya(t);return"formatToParts"in r?Ra(r,e):Ca(r,e)}const Ia={year:0,month:1,day:2,hour:3,minute:4,second:5};function Ra(e,t){try{const r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){const o=Ia[r[i].type];o!==void 0&&(n[o]=parseInt(r[i].value,10))}return n}catch(r){if(r instanceof RangeError)return[NaN];throw r}}function Ca(e,t){const r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}const We={},er=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")),ka=er==="06/25/2014, 00:00:00"||er==="06/25/2014 00:00:00";function Ya(e){return We[e]||(We[e]=ka?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"})),We[e]}function Le(e,t,r,n,i,o,l){const f=new Date(0);return f.setUTCFullYear(e,t,r),f.setUTCHours(n,i,o,l),f}const tr=36e5,Ga=6e4,Ue={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function fe(e,t,r){if(!e)return 0;let n=Ue.timezoneZ.exec(e);if(n)return 0;let i,o;if(n=Ue.timezoneHH.exec(e),n)return i=parseInt(n[1],10),rr(i)?-(i*tr):NaN;if(n=Ue.timezoneHHMM.exec(e),n){i=parseInt(n[2],10);const l=parseInt(n[3],10);return rr(i,l)?(o=Math.abs(i)*tr+l*Ga,n[1]==="+"?-o:o):NaN}if(Ha(e)){t=new Date(t||Date.now());const l=r?t:Aa(t),f=je(l,e);return-(r?f:xa(t,f,e))}return NaN}function Aa(e){return Le(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function je(e,t){const r=Pa(e,t),n=Le(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime();let i=e.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,n-i}function xa(e,t,r){let i=e.getTime()-t;const o=je(new Date(i),r);if(t===o)return t;i-=o-t;const l=je(new Date(i),r);return o===l?o:Math.max(o,l)}function rr(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const nr={};function Ha(e){if(nr[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),nr[e]=!0,!0}catch{return!1}}const Fa=60*1e3,qa={X:function(e,t,r){const n=Ve(r.timeZone,e);if(n===0)return"Z";switch(t){case"X":return ar(n);case"XXXX":case"XX":return Z(n);case"XXXXX":case"XXX":default:return Z(n,":")}},x:function(e,t,r){const n=Ve(r.timeZone,e);switch(t){case"x":return ar(n);case"xxxx":case"xx":return Z(n);case"xxxxx":case"xxx":default:return Z(n,":")}},O:function(e,t,r){const n=Ve(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Wa(n,":");case"OOOO":default:return"GMT"+Z(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return Jt("short",e,r);case"zzzz":default:return Jt("long",e,r)}}};function Ve(e,t){const r=e?fe(e,t,!0)/Fa:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function Te(e,t){const r=e<0?"-":"";let n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return r+n}function Z(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Te(Math.floor(n/60),2),o=Te(Math.floor(n%60),2);return r+i+t+o}function ar(e,t){return e%60===0?(e>0?"-":"+")+Te(Math.abs(e)/60,2):Z(e,t)}function Wa(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return o===0?r+String(i):r+String(i)+t+Te(o,2)}function ir(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_]+)?)$/,ze=36e5,or=6e4,La=2,v={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 be(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 r=t.additionalDigits==null?La:Number(t.additionalDigits);if(r!==2&&r!==1&&r!==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 n=Ua(e),{year:i,restDateString:o}=ja(n.date,r),l=Va(o,i);if(l===null||isNaN(l.getTime()))return new Date(NaN);if(l){const f=l.getTime();let h=0,m;if(n.time&&(h=za(n.time),h===null||isNaN(h)))return new Date(NaN);if(n.timeZone||t.timeZone){if(m=fe(n.timeZone||t.timeZone,new Date(f+h)),isNaN(m))return new Date(NaN)}else m=ir(new Date(f+h)),m=ir(new Date(f+h+m));return new Date(f+h+m)}else return new Date(NaN)}function Ua(e){const t={};let r=v.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=v.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){const i=v.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function ja(e,t){if(e){const r=v.YYY[t],n=v.YYYYY[t];let i=v.YYYY.exec(e)||n.exec(e);if(i){const o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=v.YY.exec(e)||r.exec(e),i){const o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function Va(e,t){if(t===null)return null;let r,n,i;if(!e||!e.length)return r=new Date(0),r.setUTCFullYear(t),r;let o=v.MM.exec(e);if(o)return r=new Date(0),n=parseInt(o[1],10)-1,lr(t,n)?(r.setUTCFullYear(t,n),r):new Date(NaN);if(o=v.DDD.exec(e),o){r=new Date(0);const l=parseInt(o[1],10);return $a(t,l)?(r.setUTCFullYear(t,0,l),r):new Date(NaN)}if(o=v.MMDD.exec(e),o){r=new Date(0),n=parseInt(o[1],10)-1;const l=parseInt(o[2],10);return lr(t,n,l)?(r.setUTCFullYear(t,n,l),r):new Date(NaN)}if(o=v.Www.exec(e),o)return i=parseInt(o[1],10)-1,dr(i)?ur(t,i):new Date(NaN);if(o=v.WwwD.exec(e),o){i=parseInt(o[1],10)-1;const l=parseInt(o[2],10)-1;return dr(i,l)?ur(t,i,l):new Date(NaN)}return null}function za(e){let t,r,n=v.HH.exec(e);if(n)return t=parseFloat(n[1].replace(",",".")),Be(t)?t%24*ze:NaN;if(n=v.HHMM.exec(e),n)return t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")),Be(t,r)?t%24*ze+r*or:NaN;if(n=v.HHMMSS.exec(e),n){t=parseInt(n[1],10),r=parseInt(n[2],10);const i=parseFloat(n[3].replace(",","."));return Be(t,r,i)?t%24*ze+r*or+i*1e3:NaN}return null}function ur(e,t,r){t=t||0,r=r||0;const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,o=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}const Ba=[31,28,31,30,31,30,31,31,30,31,30,31],Xa=[31,29,31,30,31,30,31,31,30,31,30,31];function cr(e){return e%400===0||e%4===0&&e%100!==0}function lr(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;const n=cr(e);if(n&&r>Xa[t]||!n&&r>Ba[t])return!1}return!0}function $a(e,t){if(t<1)return!1;const r=cr(e);return!(r&&t>366||!r&&t>365)}function dr(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Be(e,t,r){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}const Qa=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Za(e,t,r={}){t=String(t);const n=t.match(Qa);if(n){const i=be(r.originalDate||e,r);t=n.reduce(function(o,l){if(l[0]==="'")return o;const f=o.indexOf(l),h=o[f-1]==="'",m=o.replace(l,"'"+qa[l[0]](i,l,r)+"'");return h?m.substring(0,f-1)+m.substring(f+1):m},t)}return $t(e,t,r)}function fr(e,t,r){e=be(e,r);const n=fe(t,e,!0),i=new Date(e.getTime()-n),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 Ka(e,t,r,n){return n={...n,timeZone:t,originalDate:e},Za(fr(e,t,{timeZone:n.timeZone}),r,n)}function Ja(e,t,r){if(typeof e=="string"&&!e.match(sr))return be(e,{...r,timeZone:t});e=be(e,r);const n=Le(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=fe(t,new Date(n));return new Date(n+i)}function mr(e,t){return-fe(e,t)}function ei(e){return $t(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function Xe(e,t={}){if(!e)return e;const r=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let n="MMM dd, yyy hh:mm a";t.short&&(n="MMM dd, yyy"),t.includeTZ&&(n+=" (z)");const i=new Date(e);return Ka(i,r,n)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function ti(e,t){return`${Xe(e.getTime())} - ${Xe(t.getTime(),{includeTZ:!0})}`}const me={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 ri(e,t){return e.map(r=>({value:r,label:t.t(`configuration.vitals.reports.granularity.${r}`)}))}function hr(e,t){return{duration:e,type:"duration",origin:t}}function ni(e){return e&&ke.find(r=>e<=me[r])||null}function yr(e,t,r,n){const i=me[r];let o=0;return i>=me.daily&&(n?o=-mr(n,t):o=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-o)/i)*i+o)}function gr(e,t,r){return yr(Math.floor,e,t,r)}function $e(e,t,r){return yr(Math.ceil,e,t,r)}class De{constructor(t,r,n){b(this,"timeframe");b(this,"tz");b(this,"dataGranularity");if(this.constructor===De)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=r,this.dataGranularity=n??t.dataGranularity}calculateStartDate(t,r,n=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*n);{const i=this.endDate(),o=this.timeframe.rawStart(this.tz),l=gr(o,r,this.tz),h=(i.getTime()-l.getTime())*(n-1);return new Date(l.getTime()-h)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return hr(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return Zt(this.startDate())}endSeconds(){return Zt(this.endDate())}startMs(){return Qt(this.startDate())}endMs(){return Qt(this.endDate())}}class ai extends De{constructor(r,n,i,o,l){super(r,i,o);b(this,"granularity");n&&r.allowedGranularities(l).has(n)?this.granularity=n:l?this.granularity=r.fineGrainedDefaultGranularity??r.defaultResponseGranularity:this.granularity=r.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return $e(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return me[this.granularity]}}class pr extends De{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return $e(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class ii extends pr{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={exports:{}};Oe.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",l="[object Array]",f="[object Boolean]",h="[object Date]",m="[object Error]",w="[object Function]",g="[object GeneratorFunction]",p="[object Map]",I="[object Number]",k="[object Object]",Y="[object Promise]",A="[object RegExp]",j="[object Set]",S="[object String]",M="[object Symbol]",V="[object WeakMap]",Tr="[object ArrayBuffer]",ve="[object DataView]",br="[object Float32Array]",Dr="[object Float64Array]",Mr="[object Int8Array]",Or="[object Int16Array]",Sr="[object Int32Array]",vr="[object Uint8Array]",Er="[object Uint8ClampedArray]",Nr="[object Uint16Array]",Pr="[object Uint32Array]",Ti=/[\\^$.*+?()[\]{}|]/g,bi=/\w*$/,Di=/^\[object .+?Constructor\]$/,Mi=/^(?:0|[1-9]\d*)$/,T={};T[o]=T[l]=T[Tr]=T[ve]=T[f]=T[h]=T[br]=T[Dr]=T[Mr]=T[Or]=T[Sr]=T[p]=T[I]=T[k]=T[A]=T[j]=T[S]=T[M]=T[vr]=T[Er]=T[Nr]=T[Pr]=!0,T[m]=T[w]=T[V]=!1;var Oi=typeof Me=="object"&&Me&&Me.Object===Object&&Me,Si=typeof self=="object"&&self&&self.Object===Object&&self,x=Oi||Si||Function("return this")(),Ir=t&&!t.nodeType&&t,Rr=Ir&&!0&&e&&!e.nodeType&&e,vi=Rr&&Rr.exports===Ir;function Ei(a,s){return a.set(s[0],s[1]),a}function Ni(a,s){return a.add(s),a}function Pi(a,s){for(var u=-1,d=a?a.length:0;++u<d&&s(a[u],u,a)!==!1;);return a}function Ii(a,s){for(var u=-1,d=s.length,O=a.length;++u<d;)a[O+u]=s[u];return a}function Cr(a,s,u,d){for(var O=-1,E=a?a.length:0;++O<E;)u=s(u,a[O],O,a);return u}function Ri(a,s){for(var u=-1,d=Array(a);++u<a;)d[u]=s(u);return d}function Ci(a,s){return a==null?void 0:a[s]}function kr(a){var s=!1;if(a!=null&&typeof a.toString!="function")try{s=!!(a+"")}catch{}return s}function Yr(a){var s=-1,u=Array(a.size);return a.forEach(function(d,O){u[++s]=[O,d]}),u}function Ze(a,s){return function(u){return a(s(u))}}function Gr(a){var s=-1,u=Array(a.size);return a.forEach(function(d){u[++s]=d}),u}var ki=Array.prototype,Yi=Function.prototype,Ee=Object.prototype,Ke=x["__core-js_shared__"],Ar=function(){var a=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),xr=Yi.toString,L=Ee.hasOwnProperty,Ne=Ee.toString,Gi=RegExp("^"+xr.call(L).replace(Ti,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hr=vi?x.Buffer:void 0,Fr=x.Symbol,qr=x.Uint8Array,Ai=Ze(Object.getPrototypeOf,Object),xi=Object.create,Hi=Ee.propertyIsEnumerable,Fi=ki.splice,Wr=Object.getOwnPropertySymbols,qi=Hr?Hr.isBuffer:void 0,Wi=Ze(Object.keys,Object),Je=te(x,"DataView"),he=te(x,"Map"),et=te(x,"Promise"),tt=te(x,"Set"),rt=te(x,"WeakMap"),ye=te(Object,"create"),Li=X(Je),Ui=X(he),ji=X(et),Vi=X(tt),zi=X(rt),Lr=Fr?Fr.prototype:void 0,Ur=Lr?Lr.valueOf:void 0;function z(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var d=a[s];this.set(d[0],d[1])}}function Bi(){this.__data__=ye?ye(null):{}}function Xi(a){return this.has(a)&&delete this.__data__[a]}function $i(a){var s=this.__data__;if(ye){var u=s[a];return u===n?void 0:u}return L.call(s,a)?s[a]:void 0}function Qi(a){var s=this.__data__;return ye?s[a]!==void 0:L.call(s,a)}function Zi(a,s){var u=this.__data__;return u[a]=ye&&s===void 0?n:s,this}z.prototype.clear=Bi,z.prototype.delete=Xi,z.prototype.get=$i,z.prototype.has=Qi,z.prototype.set=Zi;function H(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var d=a[s];this.set(d[0],d[1])}}function Ki(){this.__data__=[]}function Ji(a){var s=this.__data__,u=Pe(s,a);if(u<0)return!1;var d=s.length-1;return u==d?s.pop():Fi.call(s,u,1),!0}function es(a){var s=this.__data__,u=Pe(s,a);return u<0?void 0:s[u][1]}function ts(a){return Pe(this.__data__,a)>-1}function rs(a,s){var u=this.__data__,d=Pe(u,a);return d<0?u.push([a,s]):u[d][1]=s,this}H.prototype.clear=Ki,H.prototype.delete=Ji,H.prototype.get=es,H.prototype.has=ts,H.prototype.set=rs;function J(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var d=a[s];this.set(d[0],d[1])}}function ns(){this.__data__={hash:new z,map:new(he||H),string:new z}}function as(a){return Ie(this,a).delete(a)}function is(a){return Ie(this,a).get(a)}function ss(a){return Ie(this,a).has(a)}function os(a,s){return Ie(this,a).set(a,s),this}J.prototype.clear=ns,J.prototype.delete=as,J.prototype.get=is,J.prototype.has=ss,J.prototype.set=os;function ee(a){this.__data__=new H(a)}function us(){this.__data__=new H}function cs(a){return this.__data__.delete(a)}function ls(a){return this.__data__.get(a)}function ds(a){return this.__data__.has(a)}function fs(a,s){var u=this.__data__;if(u instanceof H){var d=u.__data__;if(!he||d.length<r-1)return d.push([a,s]),this;u=this.__data__=new J(d)}return u.set(a,s),this}ee.prototype.clear=us,ee.prototype.delete=cs,ee.prototype.get=ls,ee.prototype.has=ds,ee.prototype.set=fs;function ms(a,s){var u=it(a)||xs(a)?Ri(a.length,String):[],d=u.length,O=!!d;for(var E in a)L.call(a,E)&&!(O&&(E=="length"||ks(E,d)))&&u.push(E);return u}function jr(a,s,u){var d=a[s];(!(L.call(a,s)&&Xr(d,u))||u===void 0&&!(s in a))&&(a[s]=u)}function Pe(a,s){for(var u=a.length;u--;)if(Xr(a[u][0],s))return u;return-1}function hs(a,s){return a&&Vr(s,st(s),a)}function nt(a,s,u,d,O,E,F){var N;if(d&&(N=E?d(a,O,E,F):d(a)),N!==void 0)return N;if(!Re(a))return a;var Zr=it(a);if(Zr){if(N=Is(a),!s)return Es(a,N)}else{var re=B(a),Kr=re==w||re==g;if(Fs(a))return Ts(a,s);if(re==k||re==o||Kr&&!E){if(kr(a))return E?a:{};if(N=Rs(Kr?{}:a),!s)return Ns(a,hs(N,a))}else{if(!T[re])return E?a:{};N=Cs(a,re,nt,s)}}F||(F=new ee);var Jr=F.get(a);if(Jr)return Jr;if(F.set(a,N),!Zr)var en=u?Ps(a):st(a);return Pi(en||a,function(ot,Ce){en&&(Ce=ot,ot=a[Ce]),jr(N,Ce,nt(ot,s,u,d,Ce,a,F))}),N}function ys(a){return Re(a)?xi(a):{}}function gs(a,s,u){var d=s(a);return it(a)?d:Ii(d,u(a))}function ps(a){return Ne.call(a)}function _s(a){if(!Re(a)||Gs(a))return!1;var s=Qr(a)||kr(a)?Gi:Di;return s.test(X(a))}function ws(a){if(!Br(a))return Wi(a);var s=[];for(var u in Object(a))L.call(a,u)&&u!="constructor"&&s.push(u);return s}function Ts(a,s){if(s)return a.slice();var u=new a.constructor(a.length);return a.copy(u),u}function at(a){var s=new a.constructor(a.byteLength);return new qr(s).set(new qr(a)),s}function bs(a,s){var u=s?at(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.byteLength)}function Ds(a,s,u){var d=s?u(Yr(a),!0):Yr(a);return Cr(d,Ei,new a.constructor)}function Ms(a){var s=new a.constructor(a.source,bi.exec(a));return s.lastIndex=a.lastIndex,s}function Os(a,s,u){var d=s?u(Gr(a),!0):Gr(a);return Cr(d,Ni,new a.constructor)}function Ss(a){return Ur?Object(Ur.call(a)):{}}function vs(a,s){var u=s?at(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.length)}function Es(a,s){var u=-1,d=a.length;for(s||(s=Array(d));++u<d;)s[u]=a[u];return s}function Vr(a,s,u,d){u||(u={});for(var O=-1,E=s.length;++O<E;){var F=s[O],N=void 0;jr(u,F,N===void 0?a[F]:N)}return u}function Ns(a,s){return Vr(a,zr(a),s)}function Ps(a){return gs(a,st,zr)}function Ie(a,s){var u=a.__data__;return Ys(s)?u[typeof s=="string"?"string":"hash"]:u.map}function te(a,s){var u=Ci(a,s);return _s(u)?u:void 0}var zr=Wr?Ze(Wr,Object):Ls,B=ps;(Je&&B(new Je(new ArrayBuffer(1)))!=ve||he&&B(new he)!=p||et&&B(et.resolve())!=Y||tt&&B(new tt)!=j||rt&&B(new rt)!=V)&&(B=function(a){var s=Ne.call(a),u=s==k?a.constructor:void 0,d=u?X(u):void 0;if(d)switch(d){case Li:return ve;case Ui:return p;case ji:return Y;case Vi:return j;case zi:return V}return s});function Is(a){var s=a.length,u=a.constructor(s);return s&&typeof a[0]=="string"&&L.call(a,"index")&&(u.index=a.index,u.input=a.input),u}function Rs(a){return typeof a.constructor=="function"&&!Br(a)?ys(Ai(a)):{}}function Cs(a,s,u,d){var O=a.constructor;switch(s){case Tr:return at(a);case f:case h:return new O(+a);case ve:return bs(a,d);case br:case Dr:case Mr:case Or:case Sr:case vr:case Er:case Nr:case Pr:return vs(a,d);case p:return Ds(a,d,u);case I:case S:return new O(a);case A:return Ms(a);case j:return Os(a,d,u);case M:return Ss(a)}}function ks(a,s){return s=s??i,!!s&&(typeof a=="number"||Mi.test(a))&&a>-1&&a%1==0&&a<s}function Ys(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function Gs(a){return!!Ar&&Ar in a}function Br(a){var s=a&&a.constructor,u=typeof s=="function"&&s.prototype||Ee;return a===u}function X(a){if(a!=null){try{return xr.call(a)}catch{}try{return a+""}catch{}}return""}function As(a){return nt(a,!0,!0)}function Xr(a,s){return a===s||a!==a&&s!==s}function xs(a){return Hs(a)&&L.call(a,"callee")&&(!Hi.call(a,"callee")||Ne.call(a)==o)}var it=Array.isArray;function $r(a){return a!=null&&qs(a.length)&&!Qr(a)}function Hs(a){return Ws(a)&&$r(a)}var Fs=qi||Us;function Qr(a){var s=Re(a)?Ne.call(a):"";return s==w||s==g}function qs(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=i}function Re(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function Ws(a){return!!a&&typeof a=="object"}function st(a){return $r(a)?ms(a):ws(a)}function Ls(){return[]}function Us(){return!1}e.exports=As}(Oe,Oe.exports);var oi=Oe.exports;const ui=si(oi),K=(e,t)=>new Date(e.getTime()-mr(t,e));class P{constructor(t){b(this,"timeframeText");b(this,"key");b(this,"display");b(this,"timeframeLength");b(this,"allowedTiers");b(this,"defaultResponseGranularity");b(this,"dataGranularity");b(this,"isRelative");b(this,"fineGrainedDefaultGranularity");b(this,"_startCustom");b(this,"_endCustom");b(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 r=new Set,n=this.maximumTimeframeLength()/3600;return n<=6&&r.add("minutely"),n>=2&&n<=7*24&&r.add("hourly"),n>=2*24&&r.add("daily"),n>=2*24*14&&r.add("weekly"),r}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 r=Ja(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return fr(r,t)}}class ci extends P{rawStart(t){let r=G(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*7}}class li extends P{rawStart(t){let r=$(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*31}}class di extends P{rawEnd(t){let r=G(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}rawStart(t){const r=this.tzAdjustedDate(t);let n=G(r.setDate(r.getDate()-7),{weekStartsOn:1});return t&&(n=K(n,t)),n}}class fi extends P{rawEnd(t){let r=$(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}rawStart(t){let r=$(Kt(this.tzAdjustedDate(t)));return t&&(r=K(r,t)),r}}const _r=new Map([[y.FIFTEEN_MIN,new P({key:y.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"]})],[y.ONE_HOUR,new P({key:y.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"]})],[y.SIX_HOUR,new P({key:y.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"]})],[y.TWELVE_HOUR,new P({key:y.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"]})],[y.ONE_DAY,new P({key:y.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"]})],[y.SEVEN_DAY,new P({key:y.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"]})],[y.THIRTY_DAY,new P({key:y.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"]})],[y.CURRENT_WEEK,new ci({key:y.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=G(new Date,{weekStartsOn:1});return(we(qt(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[y.CURRENT_MONTH,new li({key:y.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=$(new Date);return(we(qt(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[y.PREVIOUS_WEEK,new di({key:y.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"]})],[y.PREVIOUS_MONTH,new fi({key:y.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=$(new Date),r=$(Kt(new Date));return t.getTimezoneOffset()!==r.getTimezoneOffset()&&(e=wr(t,r)),60*60*24*Da(new Date().setMonth(new Date().getMonth()-1))+Oa(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function mi(e){const t=new Date(e.start),r=new Date(e.end),n=(r.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&ui(_r.get(e.timePeriodsKey))||new P({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:r,timeframeLength:()=>n,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function hi(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function yi(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function wr(e,t){return Sa(e.getTimezoneOffset()-t.getTimezoneOffset())}const gi={"15M":y.FIFTEEN_MIN,"1H":y.ONE_HOUR,"6H":y.SIX_HOUR,"12H":y.TWELVE_HOUR,"24H":y.ONE_DAY,"7D":y.SEVEN_DAY,"15m":y.FIFTEEN_MIN,"1h":y.ONE_HOUR,"6h":y.SIX_HOUR,"12h":y.TWELVE_HOUR,"24h":y.ONE_DAY,"7d":y.SEVEN_DAY,"30d":y.THIRTY_DAY,current_week:y.CURRENT_WEEK,current_month:y.CURRENT_MONTH,previous_week:y.PREVIOUS_WEEK,previous_month:y.PREVIOUS_MONTH};class Se{constructor(t){b(this,"_seed");this._seed=t}next(t,r){const n=Math.sin(this._seed++)*1e4,i=n-Math.floor(n);return Math.floor(i*(r-t+1))+t}}const pi=(e,t,r)=>{const n=Qe(10,1e4),i=new Se(n),o=Date.now()-6*60*60*1e3,l=Date.now(),f=[];let h=0;for(let g=o;g<=l;g+=60*60*1e3)if(t)for(const p in t)t[p].forEach(I=>{h+=i.next(50,500);const k={[p]:I,[e.name]:h},Y={version:"1.0",timestamp:new Date(g).toISOString(),event:k};f.push(Y)});else{h+=i.next(50,500);const p={version:"1.0",timestamp:new Date(g).toISOString(),event:{[e.name]:h}};f.push(p)}const m={};if(t)for(const g in t)m[g]={},t[g].forEach(p=>{m[g][p]={name:p,deleted:!1}});const w={start_ms:o,end_ms:l,start:new Date(o).toISOString(),end:new Date(l).toISOString(),query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:m,...r??{}};return{data:f,meta:w}},_i=(e,t)=>{const r=Qe(10,1e4),n=new Se(r),i=Date.now()-6*60*60*1e3,o=Date.now(),l=[],f={};e.forEach(m=>{f[m.name]=0});for(let m=i;m<=o;m+=60*60*1e3){const w={};e.forEach(p=>{f[p.name]+=n.next(50,500),w[p.name]=f[p.name]});const g={version:"1.0",timestamp:new Date(m).toISOString(),event:w};l.push(g)}const h={start_ms:i,end_ms:o,start:new Date(i).toISOString(),end:new Date(o).toISOString(),query_id:"12345",metric_names:e.map(m=>m.name),metric_units:e.reduce((m,w)=>(m[w.name]=w.unit,m),{}),granularity_ms:60*60*1e3,display:{},...t??{}};return{data:l,meta:h}},wi=(e,t,r)=>{const n=Math.floor(Math.random()*9991)+10,i=new Se(n),o=Date.now()-6*60*60*1e3,l=Date.now(),f=new Date((o+l)/2).toISOString(),h=[];if(t){const g=Object.keys(t),p=Object.values(t),I=(k,Y)=>{if(Y===g.length){e.forEach(A=>{k[A.name]=i.next(1e3,5e7)}),h.push({version:"1.0",timestamp:new Date().toISOString(),event:{...k}});return}p[Y].forEach(A=>{I({...k,[g[Y]]:A},Y+1)})};I({},0)}else{const g={};e.forEach(p=>{g[p.name]=i.next(50,500)}),h.push({version:"1.0",timestamp:f,event:g})}const m={};if(t)for(const g in t)m[g]={},t[g].forEach(p=>{m[g][p]={name:p,deleted:!1}});const w={start_ms:o,end_ms:l,start:new Date(o).toISOString(),end:new Date(l).toISOString(),query_id:"12345",metric_names:e.map(g=>g.name),metric_units:e.reduce((g,p)=>(g[p.name]=p.unit,g),{}),truncated:!1,limit:50,display:m,granularity_ms:l-o,...r??{}};return{data:h,meta:w}};function Qe(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}c.DeltaQueryTime=ii,c.EXPORT_RECORD_LIMIT=250,c.Granularities=me,c.INJECT_QUERY_PROVIDER=tn,c.REFRESH_INTERVAL_MS=3e4,c.SeededRandom=Se,c.TIMEFRAME_LOOKUP=gi,c.TimePeriods=_r,c.Timeframe=P,c.TimeframeKeys=y,c.TimeseriesQueryTime=ai,c.UnaryQueryTime=pr,c.aiExploreAggregations=ft,c.apiUsageQuerySchema=Rt,c.barChartSchema=Mt,c.basicExploreAggregations=Ye,c.basicQuerySchema=Ct,c.ceilToNearestTimeGrain=$e,c.choroplethMapSchema=It,c.countryISOA2=wt,c.dashboardConfigSchema=mn,c.dashboardTileTypes=fn,c.datasourceToFilterableDimensions=_t,c.datePickerSelectionToTimeframe=mi,c.donutChartSchema=vt,c.dstOffsetHours=wr,c.exploreAggregations=dt,c.exploreFilterTypesV2=ut,c.filterableAiExploreDimensions=oe,c.filterableBasicExploreDimensions=ie,c.filterableExploreDimensions=se,c.filterableRequestDimensions=ht,c.filterableRequestMetrics=pt,c.filterableRequestWildcardDimensions=un,c.floorToNearestTimeGrain=gr,c.formatISOTimeWithTZ=ei,c.formatTime=Xe,c.formatTimeRange=ti,c.gaugeChartSchema=St,c.generateCrossSectionalData=wi,c.generateMultipleMetricTimeSeriesData=_i,c.generateSingleMetricTimeSeriesData=pi,c.getFieldDataSources=hn,c.granularitiesToOptions=ri,c.granularityMsToQuery=hr,c.granularityValues=ke,c.llmUsageSchema=kt,c.metricCardSchema=Nt,c.msToGranularity=ni,c.queryDatasources=ln,c.queryableAiExploreDimensions=Ae,c.queryableBasicExploreDimensions=ge,c.queryableExploreDimensions=Ge,c.queryableRequestDimensions=mt,c.queryableRequestMetrics=gt,c.queryableRequestWildcardDimensions=yt,c.rand=Qe,c.relativeTimeRangeValuesRequestV2=cn,c.relativeTimeRangeValuesV4=lt,c.reportChartTypes=rn,c.requestFilterTypeEmptyV2=ct,c.requestFilterTypeEqualsV2=nn,c.requestFilterTypeMetricV2=an,c.requestFilterTypeWildcardV2=sn,c.singleValueSchema=Pt,c.slottableSchema=Dt,c.stripUnknownFilters=dn,c.tileConfigSchema=xt,c.tileDefinitionSchema=Gt,c.tileLayoutSchema=At,c.timeRangeTypeV2=on,c.timeframeToDatepickerSelection=hi,c.timeframeToDatepickerTimeperiod=yi,c.timeseriesChartSchema=Ot,c.topNTableSchema=Et,c.validDashboardQuery=Yt,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(c,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(c=typeof globalThis<"u"?globalThis:c||self,R(c["kong-ui-public-vitals-utilities"]={}))})(this,function(c){"use strict";var Vs=Object.defineProperty;var zs=(c,R,ne)=>R in c?Vs(c,R,{enumerable:!0,configurable:!0,writable:!0,value:ne}):c[R]=ne;var b=(c,R,ne)=>zs(c,typeof R!="symbol"?R+"":R,ne);const rn="analytics-query-provider";var y=(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.CURRENT_WEEK="current_week",e.CURRENT_MONTH="current_month",e.CURRENT_QUARTER="current_quarter",e.PREVIOUS_WEEK="previous_week",e.PREVIOUS_MONTH="previous_month",e.PREVIOUS_QUARTER="previous_quarter",e))(y||{});const nn=["horizontal_bar","vertical_bar","timeseries_line","choropleth_map","timeseries_bar","donut","single_value"],ut=["in","not_in","selector"],an=["=","!="],sn=["=","!=","<",">","<=",">="],ct=["empty","not_empty"],on=["starts_with","ends_with"],un=["absolute","relative"],lt=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],ke=["secondly","tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly","twoHourly","twelveHourly","daily","weekly","trend"],ae=e=>e.filter(t=>t!=="time"),ge=["api","api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","portal","route","status_code","status_code_grouped","time"],ie=ae(ge),Ye=["active_services","request_count","request_per_minute","response_latency_average"],Ge=[...ge,"application","consumer","country_code","iso_code","upstream_status_code","upstream_status_code_grouped","response_source","data_plane_node_version","realm"],se=ae(Ge),dt=[...Ye,"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"],Ae=["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"],oe=ae(Ae),ft=["total_tokens","prompt_tokens","completion_tokens","ai_request_count","cost","llm_cache_embeddings_latency_average","llm_cache_fetch_latency_average","llm_latency_average","llm_embeddings_tokens","llm_embeddings_cost"],mt=["api","api_product","api_product_version","application","auth_type","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","iso_code","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"],ht=ae(mt),yt=["auth_type","client_ip","country_code","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"],cn=yt,gt=["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"],pt=ae(gt),ln=["15M","1H","6H","12H","24H","7D"],dn=["basic","api_usage","llm_usage"],_t={basic:new Set(ie),api_usage:new Set(se),llm_usage:new Set(oe)},fn=(e,t)=>t.filter(r=>_t[e].has(r.field)),wt=["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MK","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],mn=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value","choropleth_map"],ue={type:"string"},q={type:"string"},Tt={type:"boolean"},bt={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},Dt={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},Mt={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chart_dataset_colors:bt,synthetics_data_key:ue,chart_title:q,allow_csv_export:Tt},required:["type"],additionalProperties:!1},St={type:"object",properties:{type:{type:"string",enum:["warning","error","neutral"]},value:{type:"number"},label:{type:"string"}},required:["type","value"],additionalProperties:!1},Ot={type:"object",properties:{type:{type:"string",enum:["timeseries_line","timeseries_bar"]},stacked:{type:"boolean"},threshold:{type:"object",additionalProperties:{type:"array",items:St}},chart_dataset_colors:bt,synthetics_data_key:ue,chart_title:q,allow_csv_export:Tt},required:["type"],additionalProperties:!1},vt={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:ue,chart_title:q},required:["type"],additionalProperties:!1},Et={type:"object",properties:{type:{type:"string",enum:["donut"]},synthetics_data_key:ue,chart_title:q},required:["type"],additionalProperties:!1},Nt={type:"object",properties:{chart_title:q,synthetics_data_key:ue,type:{type:"string",enum:["top_n"]},description:{type:"string"},entity_link:{type:"string"}},required:["type"],additionalProperties:!1},Pt={type:"object",properties:{chart_title:q,type:{type:"string",enum:["golden_signals"]},long_card_titles:{type:"boolean"},description:{type:"string"},percentile_latency:{type:"boolean"}},required:["type"],additionalProperties:!1},It={type:"object",properties:{type:{type:"string",enum:["single_value"]},decimal_points:{type:"number"},chart_title:q},required:["type"],additionalProperties:!1},Rt={type:"object",properties:{type:{type:"string",enum:["choropleth_map"]},chart_title:q,fit_to_country:{type:"string",enum:wt},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},xe={granularity:{type:"string",description:'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',enum:ke},time_range:{type:"object",description:"The time range to query.",anyOf:[{type:"object",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["relative"]},time_range:{type:"string",enum:lt,default:"1h"}},required:["type","time_range"],additionalProperties:!1},{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}],default:{type:"relative",time_range:"1h"}},limit:{type:"number"},meta:{type:"object"}},He=e=>({type:"array",description:"List of aggregated metrics to collect across the requested time span.",items:{type:"string",enum:e}}),Fe=e=>({type:"array",description:"List of attributes or entity types to group by.",minItems:0,maxItems:2,items:{type:"string",enum:e}}),pe=e=>({type:"array",description:"A list of filters to apply to the query",items:{oneOf:[{type:"object",description:"In filter",properties:{field:{type:"string",enum:e},operator:{type:"string",enum:ut},value:{type:"array",items:{type:["string","number","null"]}}},required:["field","operator","value"],additionalProperties:!1},{type:"object",description:"Empty filter",properties:{field:{type:"string",enum:e},operator:{type:"string",enum:ct}},required:["field","operator"],additionalProperties:!1}]}}),Ct={type:"object",description:"A query to launch at the advanced explore API",properties:{datasource:{type:"string",enum:["api_usage"]},metrics:He(dt),dimensions:Fe(Ge),filters:pe(se),...xe},required:["datasource"],additionalProperties:!1},kt={type:"object",description:"A query to launch at the basic explore API",properties:{datasource:{type:"string",enum:["basic"]},metrics:He(Ye),dimensions:Fe(ge),filters:pe(ie),...xe},required:["datasource"],additionalProperties:!1},Yt={type:"object",description:"A query to launch at the AI explore API",properties:{datasource:{type:"string",enum:["llm_usage"]},metrics:He(ft),dimensions:Fe(Ae),filters:pe(oe),...xe},required:["datasource"],additionalProperties:!1},Gt={anyOf:[Ct,kt,Yt]},At={type:"object",properties:{query:Gt,chart:{anyOf:[Mt,vt,Et,Ot,Pt,Nt,Dt,It,Rt]}},required:["query","chart"],additionalProperties:!1},xt={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},Ht={type:"object",properties:{type:{type:"string",enum:["chart"]},definition:At,layout:xt,id:{type:"string",description:"Unique identifier for the tile. If not provided, one will be generated."}},required:["type","definition","layout"],additionalProperties:!1},hn={type:"object",properties:{tiles:{type:"array",items:Ht},tile_height:{type:"number",description:"Height of each tile in pixels."},preset_filters:pe([...new Set([...se,...ie,...oe])]),template_id:{type:["string","null"],description:"Template id which was used to instantiate this dashboard."}},required:["tiles"],additionalProperties:!1},yn=e=>{const t=[];return ie.includes(e)&&t.push("basic"),se.includes(e)&&t.push("api_usage"),oe.includes(e)&&t.push("llm_usage"),(ht.includes(e)||pt.includes(e))&&t.push("requests"),t},Ft=6048e5,gn=864e5,pn=60,_n=3600,qt=Symbol.for("constructDateFrom");function C(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&qt in e?e[qt](t):e instanceof Date?new e.constructor(t):new Date(t)}function D(e,t){return C(t||e,e)}function Wt(e,t,r){const n=D(e,r==null?void 0:r.in);return isNaN(t)?C(e,NaN):(n.setDate(n.getDate()+t),n)}function wn(e,t,r){const n=D(e,r==null?void 0:r.in);if(isNaN(t))return C(e,NaN);const i=n.getDate(),o=C(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const l=o.getDate();return i>=l?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}let Tn={};function ce(){return Tn}function G(e,t){var f,h,m,w;const r=ce(),n=(t==null?void 0:t.weekStartsOn)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((w=(m=r.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0,i=D(e,t==null?void 0:t.in),o=i.getDay(),l=(o<n?7:0)+o-n;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function _e(e,t){return G(e,{...t,weekStartsOn:1})}function Lt(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=C(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=_e(i),l=C(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const f=_e(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=f.getTime()?n:n-1}function Ut(e){const t=D(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function bn(e,...t){const r=C.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function we(e,t){const r=D(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function Dn(e,t,r){const[n,i]=bn(r==null?void 0:r.in,e,t),o=we(n),l=we(i),f=+o-Ut(o),h=+l-Ut(l);return Math.round((f-h)/gn)}function Mn(e,t){const r=Lt(e,t),n=C(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),_e(n)}function Sn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function On(e){return!(!Sn(e)&&typeof e!="number"||isNaN(+D(e)))}function $(e,t){const r=D(e,t==null?void 0:t.in);return r.setDate(1),r.setHours(0,0,0,0),r}function vn(e,t){const r=D(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const En={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"}},Nn=(e,t,r)=>{let n;const i=En[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function qe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Pn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},In={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cn={date:qe({formats:Pn,defaultWidth:"full"}),time:qe({formats:In,defaultWidth:"full"}),dateTime:qe({formats:Rn,defaultWidth:"full"})},kn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yn=(e,t,r,n)=>kn[e];function le(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,f=r!=null&&r.width?String(r.width):l;i=e.formattingValues[f]||e.formattingValues[l]}else{const l=e.defaultWidth,f=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[f]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Gn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},An={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xn={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"]},Hn={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"]},Fn={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"}},qn={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"}},Wn={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:le({values:Gn,defaultWidth:"wide"}),quarter:le({values:An,defaultWidth:"wide",argumentCallback:e=>e-1}),month:le({values:xn,defaultWidth:"wide"}),day:le({values:Hn,defaultWidth:"wide"}),dayPeriod:le({values:Fn,defaultWidth:"wide",formattingValues:qn,defaultFormattingWidth:"wide"})};function de(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const l=o[0],f=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?Un(f,g=>g.test(l)):Ln(f,g=>g.test(l));let m;m=e.valueCallback?e.valueCallback(h):h,m=r.valueCallback?r.valueCallback(m):m;const w=t.slice(l.length);return{value:m,rest:w}}}function Ln(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Un(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function jn(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=r.valueCallback?r.valueCallback(l):l;const f=t.slice(i.length);return{value:l,rest:f}}}const Vn=/^(\d+)(th|st|nd|rd)?/i,zn=/\d+/i,Bn={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},Xn={any:[/^b/i,/^(a|c)/i]},$n={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Qn={any:[/1/i,/2/i,/3/i,/4/i]},Zn={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},Kn={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]},Jn={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},ea={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]},ta={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},ra={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}},na={ordinalNumber:jn({matchPattern:Vn,parsePattern:zn,valueCallback:e=>parseInt(e,10)}),era:de({matchPatterns:Bn,defaultMatchWidth:"wide",parsePatterns:Xn,defaultParseWidth:"any"}),quarter:de({matchPatterns:$n,defaultMatchWidth:"wide",parsePatterns:Qn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:de({matchPatterns:Zn,defaultMatchWidth:"wide",parsePatterns:Kn,defaultParseWidth:"any"}),day:de({matchPatterns:Jn,defaultMatchWidth:"wide",parsePatterns:ea,defaultParseWidth:"any"}),dayPeriod:de({matchPatterns:ta,defaultMatchWidth:"any",parsePatterns:ra,defaultParseWidth:"any"})},aa={code:"en-US",formatDistance:Nn,formatLong:Cn,formatRelative:Yn,localize:Wn,match:na,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ia(e,t){const r=D(e,t==null?void 0:t.in);return Dn(r,vn(r))+1}function sa(e,t){const r=D(e,t==null?void 0:t.in),n=+_e(r)-+Mn(r);return Math.round(n/Ft)+1}function jt(e,t){var w,g,p,I;const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=ce(),o=(t==null?void 0:t.firstWeekContainsDate)??((g=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((I=(p=i.locale)==null?void 0:p.options)==null?void 0:I.firstWeekContainsDate)??1,l=C((t==null?void 0:t.in)||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const f=G(l,t),h=C((t==null?void 0:t.in)||e,0);h.setFullYear(n,0,o),h.setHours(0,0,0,0);const m=G(h,t);return+r>=+f?n+1:+r>=+m?n:n-1}function oa(e,t){var f,h,m,w;const r=ce(),n=(t==null?void 0:t.firstWeekContainsDate)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(m=r.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??1,i=jt(e,t),o=C((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),G(o,t)}function ua(e,t){const r=D(e,t==null?void 0:t.in),n=+G(r,t)-+oa(r,t);return Math.round(n/Ft)+1}function _(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const W={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return _(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):_(r+1,2)},d(e,t){return _(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return _(e.getHours()%12||12,t.length)},H(e,t){return _(e.getHours(),t.length)},m(e,t){return _(e.getMinutes(),t.length)},s(e,t){return _(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return _(i,t.length)}},Q={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vt={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return W.y(e,t)},Y:function(e,t,r,n){const i=jt(e,n),o=i>0?i:1-i;if(t==="YY"){const l=o%100;return _(l,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):_(o,t.length)},R:function(e,t){const r=Lt(e);return _(r,t.length)},u:function(e,t){const r=e.getFullYear();return _(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return _(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return _(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return W.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return _(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=ua(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):_(i,t.length)},I:function(e,t,r){const n=sa(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):_(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):W.d(e,t)},D:function(e,t,r){const n=ia(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):_(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return _(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return _(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return _(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=Q.noon:n===0?i=Q.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=Q.evening:n>=12?i=Q.afternoon:n>=4?i=Q.morning:i=Q.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return W.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):W.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):_(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):_(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):W.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):W.s(e,t)},S:function(e,t){return W.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Bt(n);case"XXXX":case"XX":return U(n);case"XXXXX":case"XXX":default:return U(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Bt(n);case"xxxx":case"xx":return U(n);case"xxxxx":case"xxx":default:return U(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zt(n,":");case"OOOO":default:return"GMT"+U(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zt(n,":");case"zzzz":default:return"GMT"+U(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return _(n,t.length)},T:function(e,t,r){return _(+e,t.length)}};function zt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return o===0?r+String(i):r+String(i)+t+_(o,2)}function Bt(e,t){return e%60===0?(e>0?"-":"+")+_(Math.abs(e)/60,2):U(e,t)}function U(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=_(Math.trunc(n/60),2),o=_(n%60,2);return r+i+t+o}const Xt=(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"})}},$t=(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"})}},ca={p:$t,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Xt(e,t);let o;switch(n){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}}",Xt(n,t)).replace("{{time}}",$t(i,t))}},la=/^D+$/,da=/^Y+$/,fa=["D","DD","YY","YYYY"];function ma(e){return la.test(e)}function ha(e){return da.test(e)}function ya(e,t,r){const n=ga(e,t,r);if(console.warn(n),fa.includes(e))throw new RangeError(n)}function ga(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const pa=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wa=/^'([^]*?)'?$/,Ta=/''/g,ba=/[a-zA-Z]/;function Qt(e,t,r){var w,g,p,I,k,Y,A,j;const n=ce(),i=(r==null?void 0:r.locale)??n.locale??aa,o=(r==null?void 0:r.firstWeekContainsDate)??((g=(w=r==null?void 0:r.locale)==null?void 0:w.options)==null?void 0:g.firstWeekContainsDate)??n.firstWeekContainsDate??((I=(p=n.locale)==null?void 0:p.options)==null?void 0:I.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((Y=(k=r==null?void 0:r.locale)==null?void 0:k.options)==null?void 0:Y.weekStartsOn)??n.weekStartsOn??((j=(A=n.locale)==null?void 0:A.options)==null?void 0:j.weekStartsOn)??0,f=D(e,r==null?void 0:r.in);if(!On(f))throw new RangeError("Invalid time value");let h=t.match(_a).map(O=>{const M=O[0];if(M==="p"||M==="P"){const V=ca[M];return V(O,i.formatLong)}return O}).join("").match(pa).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const M=O[0];if(M==="'")return{isToken:!1,value:Da(O)};if(Vt[M])return{isToken:!0,value:O};if(M.match(ba))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:O}});i.localize.preprocessor&&(h=i.localize.preprocessor(f,h));const m={firstWeekContainsDate:o,weekStartsOn:l,locale:i};return h.map(O=>{if(!O.isToken)return O.value;const M=O.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&ha(M)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&ma(M))&&ya(M,t,String(e));const V=Vt[M[0]];return V(f,M,i.localize,m)}).join("")}function Da(e){const t=e.match(wa);return t?t[1].replace(Ta,"'"):e}function Ma(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=r.getMonth(),o=C(r,0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}function Sa(){return Object.assign({},ce())}function Zt(e){return+D(e)}function Kt(e){return Math.trunc(+D(e)/1e3)}function Oa(e){return Math.trunc(e*_n)}function va(e){const t=e/pn;return Math.trunc(t)}function Jt(e,t,r){return wn(e,-1,r)}function er(e,t,r){const n=Sa(),i=Pa(e,r.timeZone,r.locale??n.locale);return"formatToParts"in i?Ea(i,t):Na(i,t)}function Ea(e,t){const r=e.formatToParts(t);for(let n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function Na(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function Pa(e,t,r){return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Ia(e,t){const r=Ga(t);return"formatToParts"in r?Ca(r,e):ka(r,e)}const Ra={year:0,month:1,day:2,hour:3,minute:4,second:5};function Ca(e,t){try{const r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){const o=Ra[r[i].type];o!==void 0&&(n[o]=parseInt(r[i].value,10))}return n}catch(r){if(r instanceof RangeError)return[NaN];throw r}}function ka(e,t){const r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}const We={},tr=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")),Ya=tr==="06/25/2014, 00:00:00"||tr==="06/25/2014 00:00:00";function Ga(e){return We[e]||(We[e]=Ya?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"})),We[e]}function Le(e,t,r,n,i,o,l){const f=new Date(0);return f.setUTCFullYear(e,t,r),f.setUTCHours(n,i,o,l),f}const rr=36e5,Aa=6e4,Ue={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function fe(e,t,r){if(!e)return 0;let n=Ue.timezoneZ.exec(e);if(n)return 0;let i,o;if(n=Ue.timezoneHH.exec(e),n)return i=parseInt(n[1],10),nr(i)?-(i*rr):NaN;if(n=Ue.timezoneHHMM.exec(e),n){i=parseInt(n[2],10);const l=parseInt(n[3],10);return nr(i,l)?(o=Math.abs(i)*rr+l*Aa,n[1]==="+"?-o:o):NaN}if(Fa(e)){t=new Date(t||Date.now());const l=r?t:xa(t),f=je(l,e);return-(r?f:Ha(t,f,e))}return NaN}function xa(e){return Le(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function je(e,t){const r=Ia(e,t),n=Le(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime();let i=e.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,n-i}function Ha(e,t,r){let i=e.getTime()-t;const o=je(new Date(i),r);if(t===o)return t;i-=o-t;const l=je(new Date(i),r);return o===l?o:Math.max(o,l)}function nr(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const ar={};function Fa(e){if(ar[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),ar[e]=!0,!0}catch{return!1}}const qa=60*1e3,Wa={X:function(e,t,r){const n=Ve(r.timeZone,e);if(n===0)return"Z";switch(t){case"X":return ir(n);case"XXXX":case"XX":return Z(n);case"XXXXX":case"XXX":default:return Z(n,":")}},x:function(e,t,r){const n=Ve(r.timeZone,e);switch(t){case"x":return ir(n);case"xxxx":case"xx":return Z(n);case"xxxxx":case"xxx":default:return Z(n,":")}},O:function(e,t,r){const n=Ve(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+La(n,":");case"OOOO":default:return"GMT"+Z(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return er("short",e,r);case"zzzz":default:return er("long",e,r)}}};function Ve(e,t){const r=e?fe(e,t,!0)/qa:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function Te(e,t){const r=e<0?"-":"";let n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return r+n}function Z(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Te(Math.floor(n/60),2),o=Te(Math.floor(n%60),2);return r+i+t+o}function ir(e,t){return e%60===0?(e>0?"-":"+")+Te(Math.abs(e)/60,2):Z(e,t)}function La(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return o===0?r+String(i):r+String(i)+t+Te(o,2)}function sr(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 or=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,ze=36e5,ur=6e4,Ua=2,v={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:or};function be(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 r=t.additionalDigits==null?Ua:Number(t.additionalDigits);if(r!==2&&r!==1&&r!==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 n=ja(e),{year:i,restDateString:o}=Va(n.date,r),l=za(o,i);if(l===null||isNaN(l.getTime()))return new Date(NaN);if(l){const f=l.getTime();let h=0,m;if(n.time&&(h=Ba(n.time),h===null||isNaN(h)))return new Date(NaN);if(n.timeZone||t.timeZone){if(m=fe(n.timeZone||t.timeZone,new Date(f+h)),isNaN(m))return new Date(NaN)}else m=sr(new Date(f+h)),m=sr(new Date(f+h+m));return new Date(f+h+m)}else return new Date(NaN)}function ja(e){const t={};let r=v.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=v.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){const i=v.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function Va(e,t){if(e){const r=v.YYY[t],n=v.YYYYY[t];let i=v.YYYY.exec(e)||n.exec(e);if(i){const o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=v.YY.exec(e)||r.exec(e),i){const o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function za(e,t){if(t===null)return null;let r,n,i;if(!e||!e.length)return r=new Date(0),r.setUTCFullYear(t),r;let o=v.MM.exec(e);if(o)return r=new Date(0),n=parseInt(o[1],10)-1,dr(t,n)?(r.setUTCFullYear(t,n),r):new Date(NaN);if(o=v.DDD.exec(e),o){r=new Date(0);const l=parseInt(o[1],10);return Qa(t,l)?(r.setUTCFullYear(t,0,l),r):new Date(NaN)}if(o=v.MMDD.exec(e),o){r=new Date(0),n=parseInt(o[1],10)-1;const l=parseInt(o[2],10);return dr(t,n,l)?(r.setUTCFullYear(t,n,l),r):new Date(NaN)}if(o=v.Www.exec(e),o)return i=parseInt(o[1],10)-1,fr(i)?cr(t,i):new Date(NaN);if(o=v.WwwD.exec(e),o){i=parseInt(o[1],10)-1;const l=parseInt(o[2],10)-1;return fr(i,l)?cr(t,i,l):new Date(NaN)}return null}function Ba(e){let t,r,n=v.HH.exec(e);if(n)return t=parseFloat(n[1].replace(",",".")),Be(t)?t%24*ze:NaN;if(n=v.HHMM.exec(e),n)return t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")),Be(t,r)?t%24*ze+r*ur:NaN;if(n=v.HHMMSS.exec(e),n){t=parseInt(n[1],10),r=parseInt(n[2],10);const i=parseFloat(n[3].replace(",","."));return Be(t,r,i)?t%24*ze+r*ur+i*1e3:NaN}return null}function cr(e,t,r){t=t||0,r=r||0;const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,o=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}const Xa=[31,28,31,30,31,30,31,31,30,31,30,31],$a=[31,29,31,30,31,30,31,31,30,31,30,31];function lr(e){return e%400===0||e%4===0&&e%100!==0}function dr(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;const n=lr(e);if(n&&r>$a[t]||!n&&r>Xa[t])return!1}return!0}function Qa(e,t){if(t<1)return!1;const r=lr(e);return!(r&&t>366||!r&&t>365)}function fr(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Be(e,t,r){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}const Za=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Ka(e,t,r={}){t=String(t);const n=t.match(Za);if(n){const i=be(r.originalDate||e,r);t=n.reduce(function(o,l){if(l[0]==="'")return o;const f=o.indexOf(l),h=o[f-1]==="'",m=o.replace(l,"'"+Wa[l[0]](i,l,r)+"'");return h?m.substring(0,f-1)+m.substring(f+1):m},t)}return Qt(e,t,r)}function mr(e,t,r){e=be(e,r);const n=fe(t,e,!0),i=new Date(e.getTime()-n),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 Ja(e,t,r,n){return n={...n,timeZone:t,originalDate:e},Ka(mr(e,t,{timeZone:n.timeZone}),r,n)}function ei(e,t,r){if(typeof e=="string"&&!e.match(or))return be(e,{...r,timeZone:t});e=be(e,r);const n=Le(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=fe(t,new Date(n));return new Date(n+i)}function hr(e,t){return-fe(e,t)}function ti(e){return Qt(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function Xe(e,t={}){if(!e)return e;const r=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let n="MMM dd, yyy hh:mm a";t.short&&(n="MMM dd, yyy"),t.includeTZ&&(n+=" (z)");const i=new Date(e);return Ja(i,r,n)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function ri(e,t){return`${Xe(e.getTime())} - ${Xe(t.getTime(),{includeTZ:!0})}`}const me={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 ni(e,t){return e.map(r=>({value:r,label:t.t(`configuration.vitals.reports.granularity.${r}`)}))}function yr(e,t){return{duration:e,type:"duration",origin:t}}function ai(e){return e&&ke.find(r=>e<=me[r])||null}function gr(e,t,r,n){const i=me[r];let o=0;return i>=me.daily&&(n?o=-hr(n,t):o=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-o)/i)*i+o)}function pr(e,t,r){return gr(Math.floor,e,t,r)}function $e(e,t,r){return gr(Math.ceil,e,t,r)}class De{constructor(t,r,n){b(this,"timeframe");b(this,"tz");b(this,"dataGranularity");if(this.constructor===De)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=r,this.dataGranularity=n??t.dataGranularity}calculateStartDate(t,r,n=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*n);{const i=this.endDate(),o=this.timeframe.rawStart(this.tz),l=pr(o,r,this.tz),h=(i.getTime()-l.getTime())*(n-1);return new Date(l.getTime()-h)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return yr(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return Kt(this.startDate())}endSeconds(){return Kt(this.endDate())}startMs(){return Zt(this.startDate())}endMs(){return Zt(this.endDate())}}class ii extends De{constructor(r,n,i,o,l){super(r,i,o);b(this,"granularity");n&&r.allowedGranularities(l).has(n)?this.granularity=n:l?this.granularity=r.fineGrainedDefaultGranularity??r.defaultResponseGranularity:this.granularity=r.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return $e(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return me[this.granularity]}}class _r extends De{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return $e(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class si extends _r{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Se={exports:{}};Se.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",l="[object Array]",f="[object Boolean]",h="[object Date]",m="[object Error]",w="[object Function]",g="[object GeneratorFunction]",p="[object Map]",I="[object Number]",k="[object Object]",Y="[object Promise]",A="[object RegExp]",j="[object Set]",O="[object String]",M="[object Symbol]",V="[object WeakMap]",br="[object ArrayBuffer]",ve="[object DataView]",Dr="[object Float32Array]",Mr="[object Float64Array]",Sr="[object Int8Array]",Or="[object Int16Array]",vr="[object Int32Array]",Er="[object Uint8Array]",Nr="[object Uint8ClampedArray]",Pr="[object Uint16Array]",Ir="[object Uint32Array]",bi=/[\\^$.*+?()[\]{}|]/g,Di=/\w*$/,Mi=/^\[object .+?Constructor\]$/,Si=/^(?:0|[1-9]\d*)$/,T={};T[o]=T[l]=T[br]=T[ve]=T[f]=T[h]=T[Dr]=T[Mr]=T[Sr]=T[Or]=T[vr]=T[p]=T[I]=T[k]=T[A]=T[j]=T[O]=T[M]=T[Er]=T[Nr]=T[Pr]=T[Ir]=!0,T[m]=T[w]=T[V]=!1;var Oi=typeof Me=="object"&&Me&&Me.Object===Object&&Me,vi=typeof self=="object"&&self&&self.Object===Object&&self,x=Oi||vi||Function("return this")(),Rr=t&&!t.nodeType&&t,Cr=Rr&&!0&&e&&!e.nodeType&&e,Ei=Cr&&Cr.exports===Rr;function Ni(a,s){return a.set(s[0],s[1]),a}function Pi(a,s){return a.add(s),a}function Ii(a,s){for(var u=-1,d=a?a.length:0;++u<d&&s(a[u],u,a)!==!1;);return a}function Ri(a,s){for(var u=-1,d=s.length,S=a.length;++u<d;)a[S+u]=s[u];return a}function kr(a,s,u,d){for(var S=-1,E=a?a.length:0;++S<E;)u=s(u,a[S],S,a);return u}function Ci(a,s){for(var u=-1,d=Array(a);++u<a;)d[u]=s(u);return d}function ki(a,s){return a==null?void 0:a[s]}function Yr(a){var s=!1;if(a!=null&&typeof a.toString!="function")try{s=!!(a+"")}catch{}return s}function Gr(a){var s=-1,u=Array(a.size);return a.forEach(function(d,S){u[++s]=[S,d]}),u}function Ze(a,s){return function(u){return a(s(u))}}function Ar(a){var s=-1,u=Array(a.size);return a.forEach(function(d){u[++s]=d}),u}var Yi=Array.prototype,Gi=Function.prototype,Ee=Object.prototype,Ke=x["__core-js_shared__"],xr=function(){var a=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Hr=Gi.toString,L=Ee.hasOwnProperty,Ne=Ee.toString,Ai=RegExp("^"+Hr.call(L).replace(bi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fr=Ei?x.Buffer:void 0,qr=x.Symbol,Wr=x.Uint8Array,xi=Ze(Object.getPrototypeOf,Object),Hi=Object.create,Fi=Ee.propertyIsEnumerable,qi=Yi.splice,Lr=Object.getOwnPropertySymbols,Wi=Fr?Fr.isBuffer:void 0,Li=Ze(Object.keys,Object),Je=te(x,"DataView"),he=te(x,"Map"),et=te(x,"Promise"),tt=te(x,"Set"),rt=te(x,"WeakMap"),ye=te(Object,"create"),Ui=X(Je),ji=X(he),Vi=X(et),zi=X(tt),Bi=X(rt),Ur=qr?qr.prototype:void 0,jr=Ur?Ur.valueOf:void 0;function z(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var d=a[s];this.set(d[0],d[1])}}function Xi(){this.__data__=ye?ye(null):{}}function $i(a){return this.has(a)&&delete this.__data__[a]}function Qi(a){var s=this.__data__;if(ye){var u=s[a];return u===n?void 0:u}return L.call(s,a)?s[a]:void 0}function Zi(a){var s=this.__data__;return ye?s[a]!==void 0:L.call(s,a)}function Ki(a,s){var u=this.__data__;return u[a]=ye&&s===void 0?n:s,this}z.prototype.clear=Xi,z.prototype.delete=$i,z.prototype.get=Qi,z.prototype.has=Zi,z.prototype.set=Ki;function H(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var d=a[s];this.set(d[0],d[1])}}function Ji(){this.__data__=[]}function es(a){var s=this.__data__,u=Pe(s,a);if(u<0)return!1;var d=s.length-1;return u==d?s.pop():qi.call(s,u,1),!0}function ts(a){var s=this.__data__,u=Pe(s,a);return u<0?void 0:s[u][1]}function rs(a){return Pe(this.__data__,a)>-1}function ns(a,s){var u=this.__data__,d=Pe(u,a);return d<0?u.push([a,s]):u[d][1]=s,this}H.prototype.clear=Ji,H.prototype.delete=es,H.prototype.get=ts,H.prototype.has=rs,H.prototype.set=ns;function J(a){var s=-1,u=a?a.length:0;for(this.clear();++s<u;){var d=a[s];this.set(d[0],d[1])}}function as(){this.__data__={hash:new z,map:new(he||H),string:new z}}function is(a){return Ie(this,a).delete(a)}function ss(a){return Ie(this,a).get(a)}function os(a){return Ie(this,a).has(a)}function us(a,s){return Ie(this,a).set(a,s),this}J.prototype.clear=as,J.prototype.delete=is,J.prototype.get=ss,J.prototype.has=os,J.prototype.set=us;function ee(a){this.__data__=new H(a)}function cs(){this.__data__=new H}function ls(a){return this.__data__.delete(a)}function ds(a){return this.__data__.get(a)}function fs(a){return this.__data__.has(a)}function ms(a,s){var u=this.__data__;if(u instanceof H){var d=u.__data__;if(!he||d.length<r-1)return d.push([a,s]),this;u=this.__data__=new J(d)}return u.set(a,s),this}ee.prototype.clear=cs,ee.prototype.delete=ls,ee.prototype.get=ds,ee.prototype.has=fs,ee.prototype.set=ms;function hs(a,s){var u=it(a)||Hs(a)?Ci(a.length,String):[],d=u.length,S=!!d;for(var E in a)L.call(a,E)&&!(S&&(E=="length"||Ys(E,d)))&&u.push(E);return u}function Vr(a,s,u){var d=a[s];(!(L.call(a,s)&&$r(d,u))||u===void 0&&!(s in a))&&(a[s]=u)}function Pe(a,s){for(var u=a.length;u--;)if($r(a[u][0],s))return u;return-1}function ys(a,s){return a&&zr(s,st(s),a)}function nt(a,s,u,d,S,E,F){var N;if(d&&(N=E?d(a,S,E,F):d(a)),N!==void 0)return N;if(!Re(a))return a;var Kr=it(a);if(Kr){if(N=Rs(a),!s)return Ns(a,N)}else{var re=B(a),Jr=re==w||re==g;if(qs(a))return bs(a,s);if(re==k||re==o||Jr&&!E){if(Yr(a))return E?a:{};if(N=Cs(Jr?{}:a),!s)return Ps(a,ys(N,a))}else{if(!T[re])return E?a:{};N=ks(a,re,nt,s)}}F||(F=new ee);var en=F.get(a);if(en)return en;if(F.set(a,N),!Kr)var tn=u?Is(a):st(a);return Ii(tn||a,function(ot,Ce){tn&&(Ce=ot,ot=a[Ce]),Vr(N,Ce,nt(ot,s,u,d,Ce,a,F))}),N}function gs(a){return Re(a)?Hi(a):{}}function ps(a,s,u){var d=s(a);return it(a)?d:Ri(d,u(a))}function _s(a){return Ne.call(a)}function ws(a){if(!Re(a)||As(a))return!1;var s=Zr(a)||Yr(a)?Ai:Mi;return s.test(X(a))}function Ts(a){if(!Xr(a))return Li(a);var s=[];for(var u in Object(a))L.call(a,u)&&u!="constructor"&&s.push(u);return s}function bs(a,s){if(s)return a.slice();var u=new a.constructor(a.length);return a.copy(u),u}function at(a){var s=new a.constructor(a.byteLength);return new Wr(s).set(new Wr(a)),s}function Ds(a,s){var u=s?at(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.byteLength)}function Ms(a,s,u){var d=s?u(Gr(a),!0):Gr(a);return kr(d,Ni,new a.constructor)}function Ss(a){var s=new a.constructor(a.source,Di.exec(a));return s.lastIndex=a.lastIndex,s}function Os(a,s,u){var d=s?u(Ar(a),!0):Ar(a);return kr(d,Pi,new a.constructor)}function vs(a){return jr?Object(jr.call(a)):{}}function Es(a,s){var u=s?at(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.length)}function Ns(a,s){var u=-1,d=a.length;for(s||(s=Array(d));++u<d;)s[u]=a[u];return s}function zr(a,s,u,d){u||(u={});for(var S=-1,E=s.length;++S<E;){var F=s[S],N=void 0;Vr(u,F,N===void 0?a[F]:N)}return u}function Ps(a,s){return zr(a,Br(a),s)}function Is(a){return ps(a,st,Br)}function Ie(a,s){var u=a.__data__;return Gs(s)?u[typeof s=="string"?"string":"hash"]:u.map}function te(a,s){var u=ki(a,s);return ws(u)?u:void 0}var Br=Lr?Ze(Lr,Object):Us,B=_s;(Je&&B(new Je(new ArrayBuffer(1)))!=ve||he&&B(new he)!=p||et&&B(et.resolve())!=Y||tt&&B(new tt)!=j||rt&&B(new rt)!=V)&&(B=function(a){var s=Ne.call(a),u=s==k?a.constructor:void 0,d=u?X(u):void 0;if(d)switch(d){case Ui:return ve;case ji:return p;case Vi:return Y;case zi:return j;case Bi:return V}return s});function Rs(a){var s=a.length,u=a.constructor(s);return s&&typeof a[0]=="string"&&L.call(a,"index")&&(u.index=a.index,u.input=a.input),u}function Cs(a){return typeof a.constructor=="function"&&!Xr(a)?gs(xi(a)):{}}function ks(a,s,u,d){var S=a.constructor;switch(s){case br:return at(a);case f:case h:return new S(+a);case ve:return Ds(a,d);case Dr:case Mr:case Sr:case Or:case vr:case Er:case Nr:case Pr:case Ir:return Es(a,d);case p:return Ms(a,d,u);case I:case O:return new S(a);case A:return Ss(a);case j:return Os(a,d,u);case M:return vs(a)}}function Ys(a,s){return s=s??i,!!s&&(typeof a=="number"||Si.test(a))&&a>-1&&a%1==0&&a<s}function Gs(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function As(a){return!!xr&&xr in a}function Xr(a){var s=a&&a.constructor,u=typeof s=="function"&&s.prototype||Ee;return a===u}function X(a){if(a!=null){try{return Hr.call(a)}catch{}try{return a+""}catch{}}return""}function xs(a){return nt(a,!0,!0)}function $r(a,s){return a===s||a!==a&&s!==s}function Hs(a){return Fs(a)&&L.call(a,"callee")&&(!Fi.call(a,"callee")||Ne.call(a)==o)}var it=Array.isArray;function Qr(a){return a!=null&&Ws(a.length)&&!Zr(a)}function Fs(a){return Ls(a)&&Qr(a)}var qs=Wi||js;function Zr(a){var s=Re(a)?Ne.call(a):"";return s==w||s==g}function Ws(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=i}function Re(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function Ls(a){return!!a&&typeof a=="object"}function st(a){return Qr(a)?hs(a):Ts(a)}function Us(){return[]}function js(){return!1}e.exports=xs}(Se,Se.exports);var ui=Se.exports;const ci=oi(ui),K=(e,t)=>new Date(e.getTime()-hr(t,e));class P{constructor(t){b(this,"timeframeText");b(this,"key");b(this,"display");b(this,"timeframeLength");b(this,"allowedTiers");b(this,"defaultResponseGranularity");b(this,"dataGranularity");b(this,"isRelative");b(this,"fineGrainedDefaultGranularity");b(this,"_startCustom");b(this,"_endCustom");b(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 r=new Set,n=this.maximumTimeframeLength()/3600;return n<=6&&r.add("minutely"),n>=2&&n<=7*24&&r.add("hourly"),n>=2*24&&r.add("daily"),n>=2*24*14&&r.add("weekly"),r}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 r=ei(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return mr(r,t)}}class li extends P{rawStart(t){let r=G(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*7}}class di extends P{rawStart(t){let r=$(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*31}}class fi extends P{rawEnd(t){let r=G(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}rawStart(t){const r=this.tzAdjustedDate(t);let n=G(r.setDate(r.getDate()-7),{weekStartsOn:1});return t&&(n=K(n,t)),n}}class mi extends P{rawEnd(t){let r=$(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}rawStart(t){let r=$(Jt(this.tzAdjustedDate(t)));return t&&(r=K(r,t)),r}}const wr=new Map([[y.FIFTEEN_MIN,new P({key:y.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"]})],[y.ONE_HOUR,new P({key:y.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"]})],[y.SIX_HOUR,new P({key:y.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"]})],[y.TWELVE_HOUR,new P({key:y.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"]})],[y.ONE_DAY,new P({key:y.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"]})],[y.SEVEN_DAY,new P({key:y.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"]})],[y.THIRTY_DAY,new P({key:y.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"]})],[y.CURRENT_WEEK,new li({key:y.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=G(new Date,{weekStartsOn:1});return(we(Wt(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[y.CURRENT_MONTH,new di({key:y.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=$(new Date);return(we(Wt(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[y.PREVIOUS_WEEK,new fi({key:y.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"]})],[y.PREVIOUS_MONTH,new mi({key:y.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=$(new Date),r=$(Jt(new Date));return t.getTimezoneOffset()!==r.getTimezoneOffset()&&(e=Tr(t,r)),60*60*24*Ma(new Date().setMonth(new Date().getMonth()-1))+Oa(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function hi(e){const t=new Date(e.start),r=new Date(e.end),n=(r.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&ci(wr.get(e.timePeriodsKey))||new P({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:r,timeframeLength:()=>n,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function yi(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function gi(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function Tr(e,t){return va(e.getTimezoneOffset()-t.getTimezoneOffset())}const pi={"15M":y.FIFTEEN_MIN,"1H":y.ONE_HOUR,"6H":y.SIX_HOUR,"12H":y.TWELVE_HOUR,"24H":y.ONE_DAY,"7D":y.SEVEN_DAY,"15m":y.FIFTEEN_MIN,"1h":y.ONE_HOUR,"6h":y.SIX_HOUR,"12h":y.TWELVE_HOUR,"24h":y.ONE_DAY,"7d":y.SEVEN_DAY,"30d":y.THIRTY_DAY,current_week:y.CURRENT_WEEK,current_month:y.CURRENT_MONTH,previous_week:y.PREVIOUS_WEEK,previous_month:y.PREVIOUS_MONTH};class Oe{constructor(t){b(this,"_seed");this._seed=t}next(t,r){const n=Math.sin(this._seed++)*1e4,i=n-Math.floor(n);return Math.floor(i*(r-t+1))+t}}const _i=(e,t,r)=>{const n=Qe(10,1e4),i=new Oe(n),o=Date.now()-6*60*60*1e3,l=Date.now(),f=[];let h=0;for(let g=o;g<=l;g+=60*60*1e3)if(t)for(const p in t)t[p].forEach(I=>{h+=i.next(50,500);const k={[p]:I,[e.name]:h},Y={version:"1.0",timestamp:new Date(g).toISOString(),event:k};f.push(Y)});else{h+=i.next(50,500);const p={version:"1.0",timestamp:new Date(g).toISOString(),event:{[e.name]:h}};f.push(p)}const m={};if(t)for(const g in t)m[g]={},t[g].forEach(p=>{m[g][p]={name:p,deleted:!1}});const w={start_ms:o,end_ms:l,start:new Date(o).toISOString(),end:new Date(l).toISOString(),query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:m,...r??{}};return{data:f,meta:w}},wi=(e,t)=>{const r=Qe(10,1e4),n=new Oe(r),i=Date.now()-6*60*60*1e3,o=Date.now(),l=[],f={};e.forEach(m=>{f[m.name]=0});for(let m=i;m<=o;m+=60*60*1e3){const w={};e.forEach(p=>{f[p.name]+=n.next(50,500),w[p.name]=f[p.name]});const g={version:"1.0",timestamp:new Date(m).toISOString(),event:w};l.push(g)}const h={start_ms:i,end_ms:o,start:new Date(i).toISOString(),end:new Date(o).toISOString(),query_id:"12345",metric_names:e.map(m=>m.name),metric_units:e.reduce((m,w)=>(m[w.name]=w.unit,m),{}),granularity_ms:60*60*1e3,display:{},...t??{}};return{data:l,meta:h}},Ti=(e,t,r)=>{const n=Math.floor(Math.random()*9991)+10,i=new Oe(n),o=Date.now()-6*60*60*1e3,l=Date.now(),f=new Date((o+l)/2).toISOString(),h=[];if(t){const g=Object.keys(t),p=Object.values(t),I=(k,Y)=>{if(Y===g.length){e.forEach(A=>{k[A.name]=i.next(1e3,5e7)}),h.push({version:"1.0",timestamp:new Date().toISOString(),event:{...k}});return}p[Y].forEach(A=>{I({...k,[g[Y]]:A},Y+1)})};I({},0)}else{const g={};e.forEach(p=>{g[p.name]=i.next(50,500)}),h.push({version:"1.0",timestamp:f,event:g})}const m={};if(t)for(const g in t)m[g]={},t[g].forEach(p=>{m[g][p]={name:p,deleted:!1}});const w={start_ms:o,end_ms:l,start:new Date(o).toISOString(),end:new Date(l).toISOString(),query_id:"12345",metric_names:e.map(g=>g.name),metric_units:e.reduce((g,p)=>(g[p.name]=p.unit,g),{}),truncated:!1,limit:50,display:m,granularity_ms:l-o,...r??{}};return{data:h,meta:w}};function Qe(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}c.DeltaQueryTime=si,c.EXPORT_RECORD_LIMIT=250,c.Granularities=me,c.INJECT_QUERY_PROVIDER=rn,c.REFRESH_INTERVAL_MS=3e4,c.SeededRandom=Oe,c.TIMEFRAME_LOOKUP=pi,c.TimePeriods=wr,c.Timeframe=P,c.TimeframeKeys=y,c.TimeseriesQueryTime=ii,c.UnaryQueryTime=_r,c.aiExploreAggregations=ft,c.apiUsageQuerySchema=Ct,c.barChartSchema=Mt,c.basicExploreAggregations=Ye,c.basicQuerySchema=kt,c.ceilToNearestTimeGrain=$e,c.choroplethMapSchema=Rt,c.countryISOA2=wt,c.dashboardConfigSchema=hn,c.dashboardTileTypes=mn,c.datasourceToFilterableDimensions=_t,c.datePickerSelectionToTimeframe=hi,c.donutChartSchema=Et,c.dstOffsetHours=Tr,c.exploreAggregations=dt,c.exploreFilterTypesV2=ut,c.filterableAiExploreDimensions=oe,c.filterableBasicExploreDimensions=ie,c.filterableExploreDimensions=se,c.filterableRequestDimensions=ht,c.filterableRequestMetrics=pt,c.filterableRequestWildcardDimensions=cn,c.floorToNearestTimeGrain=pr,c.formatISOTimeWithTZ=ti,c.formatTime=Xe,c.formatTimeRange=ri,c.gaugeChartSchema=vt,c.generateCrossSectionalData=Ti,c.generateMultipleMetricTimeSeriesData=wi,c.generateSingleMetricTimeSeriesData=_i,c.getFieldDataSources=yn,c.granularitiesToOptions=ni,c.granularityMsToQuery=yr,c.granularityValues=ke,c.llmUsageSchema=Yt,c.metricCardSchema=Pt,c.msToGranularity=ai,c.queryDatasources=dn,c.queryableAiExploreDimensions=Ae,c.queryableBasicExploreDimensions=ge,c.queryableExploreDimensions=Ge,c.queryableRequestDimensions=mt,c.queryableRequestMetrics=gt,c.queryableRequestWildcardDimensions=yt,c.rand=Qe,c.relativeTimeRangeValuesRequestV2=ln,c.relativeTimeRangeValuesV4=lt,c.reportChartTypes=nn,c.requestFilterTypeEmptyV2=ct,c.requestFilterTypeEqualsV2=an,c.requestFilterTypeMetricV2=sn,c.requestFilterTypeWildcardV2=on,c.singleValueSchema=It,c.slottableSchema=Dt,c.stripUnknownFilters=fn,c.thresholdSchema=St,c.tileConfigSchema=Ht,c.tileDefinitionSchema=At,c.tileLayoutSchema=xt,c.timeRangeTypeV2=un,c.timeframeToDatepickerSelection=yi,c.timeframeToDatepickerTimeperiod=gi,c.timeseriesChartSchema=Ot,c.topNTableSchema=Nt,c.validDashboardQuery=Gt,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=vitals-utilities.umd.js.map
|