@kong-ui-public/analytics-utilities 11.0.0 → 11.0.1-pr.2392.0a5804213.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 +163 -1
- package/dist/types/dashboardSchema.v2.d.ts.map +1 -1
- package/dist/types/types/country-codes.d.ts +3 -0
- package/dist/types/types/country-codes.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.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 +1145 -609
- 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,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(c=typeof globalThis<"u"?globalThis:c||self,I(c["kong-ui-public-vitals-utilities"]={}))})(this,function(c){"use strict";var As=Object.defineProperty;var Ws=(c,I,m)=>I in c?As(c,I,{enumerable:!0,configurable:!0,writable:!0,value:m}):c[I]=m;var T=(c,I,m)=>Ws(c,typeof I!="symbol"?I+"":I,m);var m=(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))(m||{});const Kr=["horizontal_bar","vertical_bar","timeseries_line","choropleth_map","timeseries_bar","donut","single_value"],ot=["in","not_in","selector"],Jr=["=","!="],en=["=","!=","<",">","<=",">="],ut=["empty","not_empty"],tn=["starts_with","ends_with"],rn=["absolute","relative"],ct=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],Re=["secondly","tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly","twoHourly","twelveHourly","daily","weekly","trend"],ne=e=>e.filter(t=>t!=="time"),ye=["api","api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","portal","route","status_code","status_code_grouped","time"],ae=ne(ye),Ce=["active_services","request_count","request_per_minute","response_latency_average"],xe=[...ye,"application","consumer","country_code","iso_code","upstream_status_code","upstream_status_code_grouped","response_source","data_plane_node_version","realm"],ie=ne(xe),lt=[...Ce,"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"],Ye=["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"],se=ne(Ye),dt=["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"],ft=["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=ne(ft),mt=["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"],nn=mt,yt=["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"],gt=ne(yt),an=["15M","1H","6H","12H","24H","7D"],sn=["basic","api_usage","llm_usage"],pt={basic:new Set(ae),api_usage:new Set(ie),llm_usage:new Set(se)},on=(e,t)=>t.filter(r=>pt[e].has(r.field)),un=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value"],oe={type:"string"},j={type:"string"},_t={type:"boolean"},wt={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},bt={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},Tt={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chart_dataset_colors:wt,synthetics_data_key:oe,chart_title:j,allow_csv_export:_t},required:["type"],additionalProperties:!1},Dt={type:"object",properties:{type:{type:"string",enum:["timeseries_line","timeseries_bar"]},stacked:{type:"boolean"},threshold:{type:"object",additionalProperties:{type:"number"}},chart_dataset_colors:wt,synthetics_data_key:oe,chart_title:j,allow_csv_export:_t},required:["type"],additionalProperties:!1},Ot={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:oe,chart_title:j},required:["type"],additionalProperties:!1},Mt={type:"object",properties:{type:{type:"string",enum:["donut"]},synthetics_data_key:oe,chart_title:j},required:["type"],additionalProperties:!1},St={type:"object",properties:{chart_title:j,synthetics_data_key:oe,type:{type:"string",enum:["top_n"]},description:{type:"string"},entity_link:{type:"string"}},required:["type"],additionalProperties:!1},vt={type:"object",properties:{chart_title:j,type:{type:"string",enum:["golden_signals"]},long_card_titles:{type:"boolean"},description:{type:"string"},percentile_latency:{type:"boolean"}},required:["type"],additionalProperties:!1},Et={type:"object",properties:{type:{type:"string",enum:["single_value"]},decimal_points:{type:"number"},chart_title:j},required:["type"],additionalProperties:!1},He={granularity:{type:"string",description:'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',enum:Re},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:ct,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"}},qe=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}}),ge=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:ot},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:ut}},required:["field","operator"],additionalProperties:!1}]}}),Nt={type:"object",description:"A query to launch at the advanced explore API",properties:{datasource:{type:"string",enum:["api_usage"]},metrics:qe(lt),dimensions:Fe(xe),filters:ge(ie),...He},required:["datasource"],additionalProperties:!1},Pt={type:"object",description:"A query to launch at the basic explore API",properties:{datasource:{type:"string",enum:["basic"]},metrics:qe(Ce),dimensions:Fe(ye),filters:ge(ae),...He},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:qe(dt),dimensions:Fe(Ye),filters:ge(se),...He},required:["datasource"],additionalProperties:!1},It={anyOf:[Nt,Pt,kt]},Rt={type:"object",properties:{query:It,chart:{anyOf:[Tt,Ot,Mt,Dt,vt,St,bt,Et]}},required:["query","chart"],additionalProperties:!1},Ct={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:Rt,layout:Ct,id:{type:"string",description:"Unique identifier for the tile. If not provided, one will be generated."}},required:["type","definition","layout"],additionalProperties:!1},cn={type:"object",properties:{tiles:{type:"array",items:xt},tile_height:{type:"number",description:"Height of each tile in pixels."},preset_filters:ge([...new Set([...ie,...ae,...se])]),template_id:{type:["string","null"],description:"Template id which was used to instantiate this dashboard."}},required:["tiles"],additionalProperties:!1},ln=e=>{const t=[];return ae.includes(e)&&t.push("basic"),ie.includes(e)&&t.push("api_usage"),se.includes(e)&&t.push("llm_usage"),(ht.includes(e)||gt.includes(e))&&t.push("requests"),t},Yt=6048e5,dn=864e5,fn=60,hn=3600,Ht=Symbol.for("constructDateFrom");function R(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ht in e?e[Ht](t):e instanceof Date?new e.constructor(t):new Date(t)}function D(e,t){return R(t||e,e)}function qt(e,t,r){const n=D(e,r==null?void 0:r.in);return isNaN(t)?R(e,NaN):(n.setDate(n.getDate()+t),n)}function mn(e,t,r){const n=D(e,r==null?void 0:r.in);if(isNaN(t))return R(e,NaN);const i=n.getDate(),o=R(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 yn={};function ue(){return yn}function Y(e,t){var f,y,h,w;const r=ue(),n=(t==null?void 0:t.weekStartsOn)??((y=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((w=(h=r.locale)==null?void 0:h.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 pe(e,t){return Y(e,{...t,weekStartsOn:1})}function Ft(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=R(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=pe(i),l=R(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const f=pe(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=f.getTime()?n:n-1}function Gt(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 gn(e,...t){const r=R.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function _e(e,t){const r=D(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function pn(e,t,r){const[n,i]=gn(r==null?void 0:r.in,e,t),o=_e(n),l=_e(i),f=+o-Gt(o),y=+l-Gt(l);return Math.round((f-y)/dn)}function _n(e,t){const r=Ft(e,t),n=R(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),pe(n)}function wn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bn(e){return!(!wn(e)&&typeof e!="number"||isNaN(+D(e)))}function Q(e,t){const r=D(e,t==null?void 0:t.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Tn(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 Dn={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"}},On=(e,t,r)=>{let n;const i=Dn[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 Ge(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Mn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Sn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},En={date:Ge({formats:Mn,defaultWidth:"full"}),time:Ge({formats:Sn,defaultWidth:"full"}),dateTime:Ge({formats:vn,defaultWidth:"full"})},Nn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pn=(e,t,r,n)=>Nn[e];function ce(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 kn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},In={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Rn={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"]},Cn={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"]},xn={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"}},Yn={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"}},Hn={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:ce({values:kn,defaultWidth:"wide"}),quarter:ce({values:In,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ce({values:Rn,defaultWidth:"wide"}),day:ce({values:Cn,defaultWidth:"wide"}),dayPeriod:ce({values:xn,defaultWidth:"wide",formattingValues:Yn,defaultFormattingWidth:"wide"})};function le(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],y=Array.isArray(f)?Fn(f,g=>g.test(l)):qn(f,g=>g.test(l));let h;h=e.valueCallback?e.valueCallback(y):y,h=r.valueCallback?r.valueCallback(h):h;const w=t.slice(l.length);return{value:h,rest:w}}}function qn(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Fn(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Gn(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 An=/^(\d+)(th|st|nd|rd)?/i,Wn=/\d+/i,jn={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},Ln={any:[/^b/i,/^(a|c)/i]},Un={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zn={any:[/1/i,/2/i,/3/i,/4/i]},Vn={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},$n={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]},Xn={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},Qn={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]},Zn={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},Bn={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}},Kn={ordinalNumber:Gn({matchPattern:An,parsePattern:Wn,valueCallback:e=>parseInt(e,10)}),era:le({matchPatterns:jn,defaultMatchWidth:"wide",parsePatterns:Ln,defaultParseWidth:"any"}),quarter:le({matchPatterns:Un,defaultMatchWidth:"wide",parsePatterns:zn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:le({matchPatterns:Vn,defaultMatchWidth:"wide",parsePatterns:$n,defaultParseWidth:"any"}),day:le({matchPatterns:Xn,defaultMatchWidth:"wide",parsePatterns:Qn,defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:Zn,defaultMatchWidth:"any",parsePatterns:Bn,defaultParseWidth:"any"})},Jn={code:"en-US",formatDistance:On,formatLong:En,formatRelative:Pn,localize:Hn,match:Kn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ea(e,t){const r=D(e,t==null?void 0:t.in);return pn(r,Tn(r))+1}function ta(e,t){const r=D(e,t==null?void 0:t.in),n=+pe(r)-+_n(r);return Math.round(n/Yt)+1}function At(e,t){var w,g,p,k;const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=ue(),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??((k=(p=i.locale)==null?void 0:p.options)==null?void 0:k.firstWeekContainsDate)??1,l=R((t==null?void 0:t.in)||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const f=Y(l,t),y=R((t==null?void 0:t.in)||e,0);y.setFullYear(n,0,o),y.setHours(0,0,0,0);const h=Y(y,t);return+r>=+f?n+1:+r>=+h?n:n-1}function ra(e,t){var f,y,h,w;const r=ue(),n=(t==null?void 0:t.firstWeekContainsDate)??((y=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(h=r.locale)==null?void 0:h.options)==null?void 0:w.firstWeekContainsDate)??1,i=At(e,t),o=R((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),Y(o,t)}function na(e,t){const r=D(e,t==null?void 0:t.in),n=+Y(r,t)-+ra(r,t);return Math.round(n/Yt)+1}function _(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const A={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)}},Z={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wt={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 A.y(e,t)},Y:function(e,t,r,n){const i=At(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=Ft(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 A.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=na(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):_(i,t.length)},I:function(e,t,r){const n=ta(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"}):A.d(e,t)},D:function(e,t,r){const n=ea(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=Z.noon:n===0?i=Z.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=Z.evening:n>=12?i=Z.afternoon:n>=4?i=Z.morning:i=Z.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 A.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):A.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"}):A.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):A.s(e,t)},S:function(e,t){return A.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Lt(n);case"XXXX":case"XX":return L(n);case"XXXXX":case"XXX":default:return L(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Lt(n);case"xxxx":case"xx":return L(n);case"xxxxx":case"xxx":default:return L(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jt(n,":");case"OOOO":default:return"GMT"+L(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jt(n,":");case"zzzz":default:return"GMT"+L(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 jt(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 Lt(e,t){return e%60===0?(e>0?"-":"+")+_(Math.abs(e)/60,2):L(e,t)}function L(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 Ut=(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"})}},zt=(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"})}},aa={p:zt,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Ut(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}}",Ut(n,t)).replace("{{time}}",zt(i,t))}},ia=/^D+$/,sa=/^Y+$/,oa=["D","DD","YY","YYYY"];function ua(e){return ia.test(e)}function ca(e){return sa.test(e)}function la(e,t,r){const n=da(e,t,r);if(console.warn(n),oa.includes(e))throw new RangeError(n)}function da(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 fa=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ha=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ma=/^'([^]*?)'?$/,ya=/''/g,ga=/[a-zA-Z]/;function Vt(e,t,r){var w,g,p,k,C,x,H,U;const n=ue(),i=(r==null?void 0:r.locale)??n.locale??Jn,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??((k=(p=n.locale)==null?void 0:p.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((x=(C=r==null?void 0:r.locale)==null?void 0:C.options)==null?void 0:x.weekStartsOn)??n.weekStartsOn??((U=(H=n.locale)==null?void 0:H.options)==null?void 0:U.weekStartsOn)??0,f=D(e,r==null?void 0:r.in);if(!bn(f))throw new RangeError("Invalid time value");let y=t.match(ha).map(S=>{const O=S[0];if(O==="p"||O==="P"){const z=aa[O];return z(S,i.formatLong)}return S}).join("").match(fa).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const O=S[0];if(O==="'")return{isToken:!1,value:pa(S)};if(Wt[O])return{isToken:!0,value:S};if(O.match(ga))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:S}});i.localize.preprocessor&&(y=i.localize.preprocessor(f,y));const h={firstWeekContainsDate:o,weekStartsOn:l,locale:i};return y.map(S=>{if(!S.isToken)return S.value;const O=S.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&ca(O)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&ua(O))&&la(O,t,String(e));const z=Wt[O[0]];return z(f,O,i.localize,h)}).join("")}function pa(e){const t=e.match(ma);return t?t[1].replace(ya,"'"):e}function _a(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=r.getMonth(),o=R(r,0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}function wa(){return Object.assign({},ue())}function $t(e){return+D(e)}function Xt(e){return Math.trunc(+D(e)/1e3)}function ba(e){return Math.trunc(e*hn)}function Ta(e){const t=e/fn;return Math.trunc(t)}function Qt(e,t,r){return mn(e,-1,r)}function Zt(e,t,r){const n=wa(),i=Ma(e,r.timeZone,r.locale??n.locale);return"formatToParts"in i?Da(i,t):Oa(i,t)}function Da(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 Oa(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function Ma(e,t,r){return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Sa(e,t){const r=ka(t);return"formatToParts"in r?Ea(r,e):Na(r,e)}const va={year:0,month:1,day:2,hour:3,minute:4,second:5};function Ea(e,t){try{const r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){const o=va[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 Na(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 Ae={},Bt=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")),Pa=Bt==="06/25/2014, 00:00:00"||Bt==="06/25/2014 00:00:00";function ka(e){return Ae[e]||(Ae[e]=Pa?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"})),Ae[e]}function We(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 Kt=36e5,Ia=6e4,je={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function de(e,t,r){if(!e)return 0;let n=je.timezoneZ.exec(e);if(n)return 0;let i,o;if(n=je.timezoneHH.exec(e),n)return i=parseInt(n[1],10),Jt(i)?-(i*Kt):NaN;if(n=je.timezoneHHMM.exec(e),n){i=parseInt(n[2],10);const l=parseInt(n[3],10);return Jt(i,l)?(o=Math.abs(i)*Kt+l*Ia,n[1]==="+"?-o:o):NaN}if(xa(e)){t=new Date(t||Date.now());const l=r?t:Ra(t),f=Le(l,e);return-(r?f:Ca(t,f,e))}return NaN}function Ra(e){return We(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Le(e,t){const r=Sa(e,t),n=We(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 Ca(e,t,r){let i=e.getTime()-t;const o=Le(new Date(i),r);if(t===o)return t;i-=o-t;const l=Le(new Date(i),r);return o===l?o:Math.max(o,l)}function Jt(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const er={};function xa(e){if(er[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),er[e]=!0,!0}catch{return!1}}const Ya=60*1e3,Ha={X:function(e,t,r){const n=Ue(r.timeZone,e);if(n===0)return"Z";switch(t){case"X":return tr(n);case"XXXX":case"XX":return B(n);case"XXXXX":case"XXX":default:return B(n,":")}},x:function(e,t,r){const n=Ue(r.timeZone,e);switch(t){case"x":return tr(n);case"xxxx":case"xx":return B(n);case"xxxxx":case"xxx":default:return B(n,":")}},O:function(e,t,r){const n=Ue(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+qa(n,":");case"OOOO":default:return"GMT"+B(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return Zt("short",e,r);case"zzzz":default:return Zt("long",e,r)}}};function Ue(e,t){const r=e?de(e,t,!0)/Ya:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function we(e,t){const r=e<0?"-":"";let n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return r+n}function B(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=we(Math.floor(n/60),2),o=we(Math.floor(n%60),2);return r+i+t+o}function tr(e,t){return e%60===0?(e>0?"-":"+")+we(Math.abs(e)/60,2):B(e,t)}function qa(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+we(o,2)}function rr(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 nr=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,ze=36e5,ar=6e4,Fa=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:nr};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?Fa: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=Ga(e),{year:i,restDateString:o}=Aa(n.date,r),l=Wa(o,i);if(l===null||isNaN(l.getTime()))return new Date(NaN);if(l){const f=l.getTime();let y=0,h;if(n.time&&(y=ja(n.time),y===null||isNaN(y)))return new Date(NaN);if(n.timeZone||t.timeZone){if(h=de(n.timeZone||t.timeZone,new Date(f+y)),isNaN(h))return new Date(NaN)}else h=rr(new Date(f+y)),h=rr(new Date(f+y+h));return new Date(f+y+h)}else return new Date(NaN)}function Ga(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 Aa(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 Wa(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,or(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 za(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 or(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,ur(i)?ir(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 ur(i,l)?ir(t,i,l):new Date(NaN)}return null}function ja(e){let t,r,n=v.HH.exec(e);if(n)return t=parseFloat(n[1].replace(",",".")),Ve(t)?t%24*ze:NaN;if(n=v.HHMM.exec(e),n)return t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")),Ve(t,r)?t%24*ze+r*ar: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 Ve(t,r,i)?t%24*ze+r*ar+i*1e3:NaN}return null}function ir(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 La=[31,28,31,30,31,30,31,31,30,31,30,31],Ua=[31,29,31,30,31,30,31,31,30,31,30,31];function sr(e){return e%400===0||e%4===0&&e%100!==0}function or(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;const n=sr(e);if(n&&r>Ua[t]||!n&&r>La[t])return!1}return!0}function za(e,t){if(t<1)return!1;const r=sr(e);return!(r&&t>366||!r&&t>365)}function ur(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Ve(e,t,r){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}const Va=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function $a(e,t,r={}){t=String(t);const n=t.match(Va);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),y=o[f-1]==="'",h=o.replace(l,"'"+Ha[l[0]](i,l,r)+"'");return y?h.substring(0,f-1)+h.substring(f+1):h},t)}return Vt(e,t,r)}function cr(e,t,r){e=be(e,r);const n=de(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 Xa(e,t,r,n){return n={...n,timeZone:t,originalDate:e},$a(cr(e,t,{timeZone:n.timeZone}),r,n)}function Qa(e,t,r){if(typeof e=="string"&&!e.match(nr))return be(e,{...r,timeZone:t});e=be(e,r);const n=We(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=de(t,new Date(n));return new Date(n+i)}function lr(e,t){return-de(e,t)}function Za(e){return Vt(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function $e(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 Xa(i,r,n)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function Ba(e,t){return`${$e(e.getTime())} - ${$e(t.getTime(),{includeTZ:!0})}`}const fe={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 Ka(e,t){return e.map(r=>({value:r,label:t.t(`configuration.vitals.reports.granularity.${r}`)}))}function dr(e,t){return{duration:e,type:"duration",origin:t}}function Ja(e){return e&&Re.find(r=>e<=fe[r])||null}function fr(e,t,r,n){const i=fe[r];let o=0;return i>=fe.daily&&(n?o=-lr(n,t):o=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-o)/i)*i+o)}function hr(e,t,r){return fr(Math.floor,e,t,r)}function Xe(e,t,r){return fr(Math.ceil,e,t,r)}class Te{constructor(t,r,n){T(this,"timeframe");T(this,"tz");T(this,"dataGranularity");if(this.constructor===Te)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=hr(o,r,this.tz),y=(i.getTime()-l.getTime())*(n-1);return new Date(l.getTime()-y)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return dr(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return Xt(this.startDate())}endSeconds(){return Xt(this.endDate())}startMs(){return $t(this.startDate())}endMs(){return $t(this.endDate())}}class ei extends Te{constructor(r,n,i,o,l){super(r,i,o);T(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 Xe(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return fe[this.granularity]}}class mr extends Te{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return Xe(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class ti extends mr{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ri(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]",y="[object Date]",h="[object Error]",w="[object Function]",g="[object GeneratorFunction]",p="[object Map]",k="[object Number]",C="[object Object]",x="[object Promise]",H="[object RegExp]",U="[object Set]",S="[object String]",O="[object Symbol]",z="[object WeakMap]",pr="[object ArrayBuffer]",Se="[object DataView]",_r="[object Float32Array]",wr="[object Float64Array]",br="[object Int8Array]",Tr="[object Int16Array]",Dr="[object Int32Array]",Or="[object Uint8Array]",Mr="[object Uint8ClampedArray]",Sr="[object Uint16Array]",vr="[object Uint32Array]",gi=/[\\^$.*+?()[\]{}|]/g,pi=/\w*$/,_i=/^\[object .+?Constructor\]$/,wi=/^(?:0|[1-9]\d*)$/,b={};b[o]=b[l]=b[pr]=b[Se]=b[f]=b[y]=b[_r]=b[wr]=b[br]=b[Tr]=b[Dr]=b[p]=b[k]=b[C]=b[H]=b[U]=b[S]=b[O]=b[Or]=b[Mr]=b[Sr]=b[vr]=!0,b[h]=b[w]=b[z]=!1;var bi=typeof De=="object"&&De&&De.Object===Object&&De,Ti=typeof self=="object"&&self&&self.Object===Object&&self,q=bi||Ti||Function("return this")(),Er=t&&!t.nodeType&&t,Nr=Er&&!0&&e&&!e.nodeType&&e,Di=Nr&&Nr.exports===Er;function Oi(a,s){return a.set(s[0],s[1]),a}function Mi(a,s){return a.add(s),a}function Si(a,s){for(var u=-1,d=a?a.length:0;++u<d&&s(a[u],u,a)!==!1;);return a}function vi(a,s){for(var u=-1,d=s.length,M=a.length;++u<d;)a[M+u]=s[u];return a}function Pr(a,s,u,d){for(var M=-1,E=a?a.length:0;++M<E;)u=s(u,a[M],M,a);return u}function Ei(a,s){for(var u=-1,d=Array(a);++u<a;)d[u]=s(u);return d}function Ni(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 Ir(a){var s=-1,u=Array(a.size);return a.forEach(function(d,M){u[++s]=[M,d]}),u}function Ze(a,s){return function(u){return a(s(u))}}function Rr(a){var s=-1,u=Array(a.size);return a.forEach(function(d){u[++s]=d}),u}var Pi=Array.prototype,ki=Function.prototype,ve=Object.prototype,Be=q["__core-js_shared__"],Cr=function(){var a=/[^.]+$/.exec(Be&&Be.keys&&Be.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),xr=ki.toString,W=ve.hasOwnProperty,Ee=ve.toString,Ii=RegExp("^"+xr.call(W).replace(gi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yr=Di?q.Buffer:void 0,Hr=q.Symbol,qr=q.Uint8Array,Ri=Ze(Object.getPrototypeOf,Object),Ci=Object.create,xi=ve.propertyIsEnumerable,Yi=Pi.splice,Fr=Object.getOwnPropertySymbols,Hi=Yr?Yr.isBuffer:void 0,qi=Ze(Object.keys,Object),Ke=te(q,"DataView"),he=te(q,"Map"),Je=te(q,"Promise"),et=te(q,"Set"),tt=te(q,"WeakMap"),me=te(Object,"create"),Fi=X(Ke),Gi=X(he),Ai=X(Je),Wi=X(et),ji=X(tt),Gr=Hr?Hr.prototype:void 0,Ar=Gr?Gr.valueOf:void 0;function V(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 Li(){this.__data__=me?me(null):{}}function Ui(a){return this.has(a)&&delete this.__data__[a]}function zi(a){var s=this.__data__;if(me){var u=s[a];return u===n?void 0:u}return W.call(s,a)?s[a]:void 0}function Vi(a){var s=this.__data__;return me?s[a]!==void 0:W.call(s,a)}function $i(a,s){var u=this.__data__;return u[a]=me&&s===void 0?n:s,this}V.prototype.clear=Li,V.prototype.delete=Ui,V.prototype.get=zi,V.prototype.has=Vi,V.prototype.set=$i;function F(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__=[]}function Qi(a){var s=this.__data__,u=Ne(s,a);if(u<0)return!1;var d=s.length-1;return u==d?s.pop():Yi.call(s,u,1),!0}function Zi(a){var s=this.__data__,u=Ne(s,a);return u<0?void 0:s[u][1]}function Bi(a){return Ne(this.__data__,a)>-1}function Ki(a,s){var u=this.__data__,d=Ne(u,a);return d<0?u.push([a,s]):u[d][1]=s,this}F.prototype.clear=Xi,F.prototype.delete=Qi,F.prototype.get=Zi,F.prototype.has=Bi,F.prototype.set=Ki;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 Ji(){this.__data__={hash:new V,map:new(he||F),string:new V}}function es(a){return Pe(this,a).delete(a)}function ts(a){return Pe(this,a).get(a)}function rs(a){return Pe(this,a).has(a)}function ns(a,s){return Pe(this,a).set(a,s),this}J.prototype.clear=Ji,J.prototype.delete=es,J.prototype.get=ts,J.prototype.has=rs,J.prototype.set=ns;function ee(a){this.__data__=new F(a)}function as(){this.__data__=new F}function is(a){return this.__data__.delete(a)}function ss(a){return this.__data__.get(a)}function os(a){return this.__data__.has(a)}function us(a,s){var u=this.__data__;if(u instanceof F){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=as,ee.prototype.delete=is,ee.prototype.get=ss,ee.prototype.has=os,ee.prototype.set=us;function cs(a,s){var u=at(a)||Cs(a)?Ei(a.length,String):[],d=u.length,M=!!d;for(var E in a)W.call(a,E)&&!(M&&(E=="length"||Ps(E,d)))&&u.push(E);return u}function Wr(a,s,u){var d=a[s];(!(W.call(a,s)&&zr(d,u))||u===void 0&&!(s in a))&&(a[s]=u)}function Ne(a,s){for(var u=a.length;u--;)if(zr(a[u][0],s))return u;return-1}function ls(a,s){return a&&jr(s,it(s),a)}function rt(a,s,u,d,M,E,G){var N;if(d&&(N=E?d(a,M,E,G):d(a)),N!==void 0)return N;if(!ke(a))return a;var Xr=at(a);if(Xr){if(N=vs(a),!s)return Os(a,N)}else{var re=$(a),Qr=re==w||re==g;if(Ys(a))return gs(a,s);if(re==C||re==o||Qr&&!E){if(kr(a))return E?a:{};if(N=Es(Qr?{}:a),!s)return Ms(a,ls(N,a))}else{if(!b[re])return E?a:{};N=Ns(a,re,rt,s)}}G||(G=new ee);var Zr=G.get(a);if(Zr)return Zr;if(G.set(a,N),!Xr)var Br=u?Ss(a):it(a);return Si(Br||a,function(st,Ie){Br&&(Ie=st,st=a[Ie]),Wr(N,Ie,rt(st,s,u,d,Ie,a,G))}),N}function ds(a){return ke(a)?Ci(a):{}}function fs(a,s,u){var d=s(a);return at(a)?d:vi(d,u(a))}function hs(a){return Ee.call(a)}function ms(a){if(!ke(a)||Is(a))return!1;var s=$r(a)||kr(a)?Ii:_i;return s.test(X(a))}function ys(a){if(!Ur(a))return qi(a);var s=[];for(var u in Object(a))W.call(a,u)&&u!="constructor"&&s.push(u);return s}function gs(a,s){if(s)return a.slice();var u=new a.constructor(a.length);return a.copy(u),u}function nt(a){var s=new a.constructor(a.byteLength);return new qr(s).set(new qr(a)),s}function ps(a,s){var u=s?nt(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.byteLength)}function _s(a,s,u){var d=s?u(Ir(a),!0):Ir(a);return Pr(d,Oi,new a.constructor)}function ws(a){var s=new a.constructor(a.source,pi.exec(a));return s.lastIndex=a.lastIndex,s}function bs(a,s,u){var d=s?u(Rr(a),!0):Rr(a);return Pr(d,Mi,new a.constructor)}function Ts(a){return Ar?Object(Ar.call(a)):{}}function Ds(a,s){var u=s?nt(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.length)}function Os(a,s){var u=-1,d=a.length;for(s||(s=Array(d));++u<d;)s[u]=a[u];return s}function jr(a,s,u,d){u||(u={});for(var M=-1,E=s.length;++M<E;){var G=s[M],N=void 0;Wr(u,G,N===void 0?a[G]:N)}return u}function Ms(a,s){return jr(a,Lr(a),s)}function Ss(a){return fs(a,it,Lr)}function Pe(a,s){var u=a.__data__;return ks(s)?u[typeof s=="string"?"string":"hash"]:u.map}function te(a,s){var u=Ni(a,s);return ms(u)?u:void 0}var Lr=Fr?Ze(Fr,Object):Fs,$=hs;(Ke&&$(new Ke(new ArrayBuffer(1)))!=Se||he&&$(new he)!=p||Je&&$(Je.resolve())!=x||et&&$(new et)!=U||tt&&$(new tt)!=z)&&($=function(a){var s=Ee.call(a),u=s==C?a.constructor:void 0,d=u?X(u):void 0;if(d)switch(d){case Fi:return Se;case Gi:return p;case Ai:return x;case Wi:return U;case ji:return z}return s});function vs(a){var s=a.length,u=a.constructor(s);return s&&typeof a[0]=="string"&&W.call(a,"index")&&(u.index=a.index,u.input=a.input),u}function Es(a){return typeof a.constructor=="function"&&!Ur(a)?ds(Ri(a)):{}}function Ns(a,s,u,d){var M=a.constructor;switch(s){case pr:return nt(a);case f:case y:return new M(+a);case Se:return ps(a,d);case _r:case wr:case br:case Tr:case Dr:case Or:case Mr:case Sr:case vr:return Ds(a,d);case p:return _s(a,d,u);case k:case S:return new M(a);case H:return ws(a);case U:return bs(a,d,u);case O:return Ts(a)}}function Ps(a,s){return s=s??i,!!s&&(typeof a=="number"||wi.test(a))&&a>-1&&a%1==0&&a<s}function ks(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function Is(a){return!!Cr&&Cr in a}function Ur(a){var s=a&&a.constructor,u=typeof s=="function"&&s.prototype||ve;return a===u}function X(a){if(a!=null){try{return xr.call(a)}catch{}try{return a+""}catch{}}return""}function Rs(a){return rt(a,!0,!0)}function zr(a,s){return a===s||a!==a&&s!==s}function Cs(a){return xs(a)&&W.call(a,"callee")&&(!xi.call(a,"callee")||Ee.call(a)==o)}var at=Array.isArray;function Vr(a){return a!=null&&Hs(a.length)&&!$r(a)}function xs(a){return qs(a)&&Vr(a)}var Ys=Hi||Gs;function $r(a){var s=ke(a)?Ee.call(a):"";return s==w||s==g}function Hs(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=i}function ke(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function qs(a){return!!a&&typeof a=="object"}function it(a){return Vr(a)?cs(a):ys(a)}function Fs(){return[]}function Gs(){return!1}e.exports=Rs}(Oe,Oe.exports);var ni=Oe.exports;const ai=ri(ni),K=(e,t)=>new Date(e.getTime()-lr(t,e));class P{constructor(t){T(this,"timeframeText");T(this,"key");T(this,"display");T(this,"timeframeLength");T(this,"allowedTiers");T(this,"defaultResponseGranularity");T(this,"dataGranularity");T(this,"isRelative");T(this,"fineGrainedDefaultGranularity");T(this,"_startCustom");T(this,"_endCustom");T(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=Qa(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return cr(r,t)}}class ii extends P{rawStart(t){let r=Y(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*7}}class si extends P{rawStart(t){let r=Q(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*31}}class oi extends P{rawEnd(t){let r=Y(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}rawStart(t){const r=this.tzAdjustedDate(t);let n=Y(r.setDate(r.getDate()-7),{weekStartsOn:1});return t&&(n=K(n,t)),n}}class ui extends P{rawEnd(t){let r=Q(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}rawStart(t){let r=Q(Qt(this.tzAdjustedDate(t)));return t&&(r=K(r,t)),r}}const yr=new Map([[m.FIFTEEN_MIN,new P({key:m.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"]})],[m.ONE_HOUR,new P({key:m.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"]})],[m.SIX_HOUR,new P({key:m.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"]})],[m.TWELVE_HOUR,new P({key:m.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"]})],[m.ONE_DAY,new P({key:m.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"]})],[m.SEVEN_DAY,new P({key:m.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"]})],[m.THIRTY_DAY,new P({key:m.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"]})],[m.CURRENT_WEEK,new ii({key:m.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=Y(new Date,{weekStartsOn:1});return(_e(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"]})],[m.CURRENT_MONTH,new si({key:m.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=Q(new Date);return(_e(qt(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[m.PREVIOUS_WEEK,new oi({key:m.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"]})],[m.PREVIOUS_MONTH,new ui({key:m.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=Q(new Date),r=Q(Qt(new Date));return t.getTimezoneOffset()!==r.getTimezoneOffset()&&(e=gr(t,r)),60*60*24*_a(new Date().setMonth(new Date().getMonth()-1))+ba(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function ci(e){const t=new Date(e.start),r=new Date(e.end),n=(r.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&ai(yr.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 li(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function di(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function gr(e,t){return Ta(e.getTimezoneOffset()-t.getTimezoneOffset())}const fi={"15M":m.FIFTEEN_MIN,"1H":m.ONE_HOUR,"6H":m.SIX_HOUR,"12H":m.TWELVE_HOUR,"24H":m.ONE_DAY,"7D":m.SEVEN_DAY,"15m":m.FIFTEEN_MIN,"1h":m.ONE_HOUR,"6h":m.SIX_HOUR,"12h":m.TWELVE_HOUR,"24h":m.ONE_DAY,"7d":m.SEVEN_DAY,"30d":m.THIRTY_DAY,current_week:m.CURRENT_WEEK,current_month:m.CURRENT_MONTH,previous_week:m.PREVIOUS_WEEK,previous_month:m.PREVIOUS_MONTH};class Me{constructor(t){T(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 hi=(e,t,r)=>{const n=Qe(10,1e4),i=new Me(n),o=Date.now()-6*60*60*1e3,l=Date.now(),f=[];let y=0;for(let g=o;g<=l;g+=60*60*1e3)if(t)for(const p in t)t[p].forEach(k=>{y+=i.next(50,500);const C={[p]:k,[e.name]:y},x={version:"1.0",timestamp:new Date(g).toISOString(),event:C};f.push(x)});else{y+=i.next(50,500);const p={version:"1.0",timestamp:new Date(g).toISOString(),event:{[e.name]:y}};f.push(p)}const h={};if(t)for(const g in t)h[g]={},t[g].forEach(p=>{h[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:h,...r??{}};return{data:f,meta:w}},mi=(e,t)=>{const r=Qe(10,1e4),n=new Me(r),i=Date.now()-6*60*60*1e3,o=Date.now(),l=[],f={};e.forEach(h=>{f[h.name]=0});for(let h=i;h<=o;h+=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(h).toISOString(),event:w};l.push(g)}const y={start_ms:i,end_ms:o,start:new Date(i).toISOString(),end:new Date(o).toISOString(),query_id:"12345",metric_names:e.map(h=>h.name),metric_units:e.reduce((h,w)=>(h[w.name]=w.unit,h),{}),granularity_ms:60*60*1e3,display:{},...t??{}};return{data:l,meta:y}},yi=(e,t,r)=>{const n=Math.floor(Math.random()*9991)+10,i=new Me(n),o=Date.now()-6*60*60*1e3,l=Date.now(),f=new Date((o+l)/2).toISOString(),y=[];if(t){const g=Object.keys(t),p=Object.values(t),k=(C,x)=>{if(x===g.length){e.forEach(H=>{C[H.name]=i.next(1e3,5e7)}),y.push({version:"1.0",timestamp:new Date().toISOString(),event:{...C}});return}p[x].forEach(H=>{k({...C,[g[x]]:H},x+1)})};k({},0)}else{const g={};e.forEach(p=>{g[p.name]=i.next(50,500)}),y.push({version:"1.0",timestamp:f,event:g})}const h={};if(t)for(const g in t)h[g]={},t[g].forEach(p=>{h[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:h,granularity_ms:l-o,...r??{}};return{data:y,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=ti,c.Granularities=fe,c.REFRESH_INTERVAL_MS=3e4,c.SeededRandom=Me,c.TIMEFRAME_LOOKUP=fi,c.TimePeriods=yr,c.Timeframe=P,c.TimeframeKeys=m,c.TimeseriesQueryTime=ei,c.UnaryQueryTime=mr,c.aiExploreAggregations=dt,c.apiUsageQuerySchema=Nt,c.barChartSchema=Tt,c.basicExploreAggregations=Ce,c.basicQuerySchema=Pt,c.ceilToNearestTimeGrain=Xe,c.dashboardConfigSchema=cn,c.dashboardTileTypes=un,c.datasourceToFilterableDimensions=pt,c.datePickerSelectionToTimeframe=ci,c.donutChartSchema=Mt,c.dstOffsetHours=gr,c.exploreAggregations=lt,c.exploreFilterTypesV2=ot,c.filterableAiExploreDimensions=se,c.filterableBasicExploreDimensions=ae,c.filterableExploreDimensions=ie,c.filterableRequestDimensions=ht,c.filterableRequestMetrics=gt,c.filterableRequestWildcardDimensions=nn,c.floorToNearestTimeGrain=hr,c.formatISOTimeWithTZ=Za,c.formatTime=$e,c.formatTimeRange=Ba,c.gaugeChartSchema=Ot,c.generateCrossSectionalData=yi,c.generateMultipleMetricTimeSeriesData=mi,c.generateSingleMetricTimeSeriesData=hi,c.getFieldDataSources=ln,c.granularitiesToOptions=Ka,c.granularityMsToQuery=dr,c.granularityValues=Re,c.llmUsageSchema=kt,c.metricCardSchema=vt,c.msToGranularity=Ja,c.queryDatasources=sn,c.queryableAiExploreDimensions=Ye,c.queryableBasicExploreDimensions=ye,c.queryableExploreDimensions=xe,c.queryableRequestDimensions=ft,c.queryableRequestMetrics=yt,c.queryableRequestWildcardDimensions=mt,c.rand=Qe,c.relativeTimeRangeValuesRequestV2=an,c.relativeTimeRangeValuesV4=ct,c.reportChartTypes=Kr,c.requestFilterTypeEmptyV2=ut,c.requestFilterTypeEqualsV2=Jr,c.requestFilterTypeMetricV2=en,c.requestFilterTypeWildcardV2=tn,c.singleValueSchema=Et,c.slottableSchema=bt,c.stripUnknownFilters=on,c.tileConfigSchema=xt,c.tileDefinitionSchema=Rt,c.tileLayoutSchema=Ct,c.timeRangeTypeV2=rn,c.timeframeToDatepickerSelection=li,c.timeframeToDatepickerTimeperiod=di,c.timeseriesChartSchema=Dt,c.topNTableSchema=St,c.validDashboardQuery=It,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(c,C){typeof exports=="object"&&typeof module<"u"?C(exports):typeof define=="function"&&define.amd?define(["exports"],C):(c=typeof globalThis<"u"?globalThis:c||self,C(c["kong-ui-public-vitals-utilities"]={}))})(this,function(c){"use strict";var Ls=Object.defineProperty;var Us=(c,C,h)=>C in c?Ls(c,C,{enumerable:!0,configurable:!0,writable:!0,value:h}):c[C]=h;var b=(c,C,h)=>Us(c,typeof C!="symbol"?C+"":C,h);var h=(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))(h||{});const en=["horizontal_bar","vertical_bar","timeseries_line","choropleth_map","timeseries_bar","donut","single_value"],ot=["in","not_in","selector"],tn=["=","!="],rn=["=","!=","<",">","<=",">="],ut=["empty","not_empty"],nn=["starts_with","ends_with"],an=["absolute","relative"],ct=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],Re=["secondly","tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly","twoHourly","twelveHourly","daily","weekly","trend"],ne=e=>e.filter(t=>t!=="time"),ye=["api","api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","portal","route","status_code","status_code_grouped","time"],ae=ne(ye),ke=["active_services","request_count","request_per_minute","response_latency_average"],Ge=[...ye,"application","consumer","country_code","iso_code","upstream_status_code","upstream_status_code_grouped","response_source","data_plane_node_version","realm"],ie=ne(Ge),lt=[...ke,"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"],Ye=["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"],se=ne(Ye),dt=["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"],ft=["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"],mt=ne(ft),ht=["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"],sn=ht,yt=["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"],gt=ne(yt),on=["15M","1H","6H","12H","24H","7D"],un=["basic","api_usage","llm_usage"],pt={basic:new Set(ae),api_usage:new Set(ie),llm_usage:new Set(se)},cn=(e,t)=>t.filter(r=>pt[e].has(r.field)),_t=["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"],ln=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value","choropleth_map"],oe={type:"string"},W={type:"string"},wt={type:"boolean"},Tt={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},bt={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},Dt={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chart_dataset_colors:Tt,synthetics_data_key:oe,chart_title:W,allow_csv_export:wt},required:["type"],additionalProperties:!1},Mt={type:"object",properties:{type:{type:"string",enum:["timeseries_line","timeseries_bar"]},stacked:{type:"boolean"},threshold:{type:"object",additionalProperties:{type:"number"}},chart_dataset_colors:Tt,synthetics_data_key:oe,chart_title:W,allow_csv_export:wt},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:oe,chart_title:W},required:["type"],additionalProperties:!1},Ot={type:"object",properties:{type:{type:"string",enum:["donut"]},synthetics_data_key:oe,chart_title:W},required:["type"],additionalProperties:!1},vt={type:"object",properties:{chart_title:W,synthetics_data_key:oe,type:{type:"string",enum:["top_n"]},description:{type:"string"},entity_link:{type:"string"}},required:["type"],additionalProperties:!1},Et={type:"object",properties:{chart_title:W,type:{type:"string",enum:["golden_signals"]},long_card_titles:{type:"boolean"},description:{type:"string"},percentile_latency:{type:"boolean"}},required:["type"],additionalProperties:!1},Nt={type:"object",properties:{type:{type:"string",enum:["single_value"]},decimal_points:{type:"number"},chart_title:W},required:["type"],additionalProperties:!1},Pt={type:"object",properties:{type:{type:"string",enum:["choropleth_map"]},chart_title:W,fit_to_country:{type:"string",enum:_t},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},Ae={granularity:{type:"string",description:'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',enum:Re},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:ct,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"}},xe=e=>({type:"array",description:"List of aggregated metrics to collect across the requested time span.",items:{type:"string",enum:e}}),He=e=>({type:"array",description:"List of attributes or entity types to group by.",minItems:0,maxItems:2,items:{type:"string",enum:e}}),ge=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:ot},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:ut}},required:["field","operator"],additionalProperties:!1}]}}),It={type:"object",description:"A query to launch at the advanced explore API",properties:{datasource:{type:"string",enum:["api_usage"]},metrics:xe(lt),dimensions:He(Ge),filters:ge(ie),...Ae},required:["datasource"],additionalProperties:!1},Ct={type:"object",description:"A query to launch at the basic explore API",properties:{datasource:{type:"string",enum:["basic"]},metrics:xe(ke),dimensions:He(ye),filters:ge(ae),...Ae},required:["datasource"],additionalProperties:!1},Rt={type:"object",description:"A query to launch at the AI explore API",properties:{datasource:{type:"string",enum:["llm_usage"]},metrics:xe(dt),dimensions:He(Ye),filters:ge(se),...Ae},required:["datasource"],additionalProperties:!1},kt={anyOf:[It,Ct,Rt]},Gt={type:"object",properties:{query:kt,chart:{anyOf:[Dt,St,Ot,Mt,Et,vt,bt,Nt,Pt]}},required:["query","chart"],additionalProperties:!1},Yt={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},At={type:"object",properties:{type:{type:"string",enum:["chart"]},definition:Gt,layout:Yt,id:{type:"string",description:"Unique identifier for the tile. If not provided, one will be generated."}},required:["type","definition","layout"],additionalProperties:!1},dn={type:"object",properties:{tiles:{type:"array",items:At},tile_height:{type:"number",description:"Height of each tile in pixels."},preset_filters:ge([...new Set([...ie,...ae,...se])]),template_id:{type:["string","null"],description:"Template id which was used to instantiate this dashboard."}},required:["tiles"],additionalProperties:!1},fn=e=>{const t=[];return ae.includes(e)&&t.push("basic"),ie.includes(e)&&t.push("api_usage"),se.includes(e)&&t.push("llm_usage"),(mt.includes(e)||gt.includes(e))&&t.push("requests"),t},xt=6048e5,mn=864e5,hn=60,yn=3600,Ht=Symbol.for("constructDateFrom");function R(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ht in e?e[Ht](t):e instanceof Date?new e.constructor(t):new Date(t)}function D(e,t){return R(t||e,e)}function Ft(e,t,r){const n=D(e,r==null?void 0:r.in);return isNaN(t)?R(e,NaN):(n.setDate(n.getDate()+t),n)}function gn(e,t,r){const n=D(e,r==null?void 0:r.in);if(isNaN(t))return R(e,NaN);const i=n.getDate(),o=R(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 pn={};function ue(){return pn}function Y(e,t){var f,y,m,w;const r=ue(),n=(t==null?void 0:t.weekStartsOn)??((y=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:y.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 pe(e,t){return Y(e,{...t,weekStartsOn:1})}function Wt(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=R(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=pe(i),l=R(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const f=pe(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=f.getTime()?n:n-1}function qt(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 _n(e,...t){const r=R.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function _e(e,t){const r=D(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function wn(e,t,r){const[n,i]=_n(r==null?void 0:r.in,e,t),o=_e(n),l=_e(i),f=+o-qt(o),y=+l-qt(l);return Math.round((f-y)/mn)}function Tn(e,t){const r=Wt(e,t),n=R(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),pe(n)}function bn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Dn(e){return!(!bn(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 Mn(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 Sn={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"}},On=(e,t,r)=>{let n;const i=Sn[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 Fe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const vn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},En={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pn={date:Fe({formats:vn,defaultWidth:"full"}),time:Fe({formats:En,defaultWidth:"full"}),dateTime:Fe({formats:Nn,defaultWidth:"full"})},In={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cn=(e,t,r,n)=>In[e];function ce(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 Rn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gn={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"]},Yn={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"]},An={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"}},xn={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"}},Hn={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:ce({values:Rn,defaultWidth:"wide"}),quarter:ce({values:kn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ce({values:Gn,defaultWidth:"wide"}),day:ce({values:Yn,defaultWidth:"wide"}),dayPeriod:ce({values:An,defaultWidth:"wide",formattingValues:xn,defaultFormattingWidth:"wide"})};function le(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],y=Array.isArray(f)?Wn(f,g=>g.test(l)):Fn(f,g=>g.test(l));let m;m=e.valueCallback?e.valueCallback(y):y,m=r.valueCallback?r.valueCallback(m):m;const w=t.slice(l.length);return{value:m,rest:w}}}function Fn(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Wn(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function qn(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 Ln=/^(\d+)(th|st|nd|rd)?/i,Un=/\d+/i,jn={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},Vn={any:[/^b/i,/^(a|c)/i]},zn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bn={any:[/1/i,/2/i,/3/i,/4/i]},Xn={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},$n={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]},Qn={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},Zn={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]},Kn={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},Jn={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}},ea={ordinalNumber:qn({matchPattern:Ln,parsePattern:Un,valueCallback:e=>parseInt(e,10)}),era:le({matchPatterns:jn,defaultMatchWidth:"wide",parsePatterns:Vn,defaultParseWidth:"any"}),quarter:le({matchPatterns:zn,defaultMatchWidth:"wide",parsePatterns:Bn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:le({matchPatterns:Xn,defaultMatchWidth:"wide",parsePatterns:$n,defaultParseWidth:"any"}),day:le({matchPatterns:Qn,defaultMatchWidth:"wide",parsePatterns:Zn,defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:Kn,defaultMatchWidth:"any",parsePatterns:Jn,defaultParseWidth:"any"})},ta={code:"en-US",formatDistance:On,formatLong:Pn,formatRelative:Cn,localize:Hn,match:ea,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ra(e,t){const r=D(e,t==null?void 0:t.in);return wn(r,Mn(r))+1}function na(e,t){const r=D(e,t==null?void 0:t.in),n=+pe(r)-+Tn(r);return Math.round(n/xt)+1}function Lt(e,t){var w,g,p,I;const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=ue(),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=R((t==null?void 0:t.in)||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const f=Y(l,t),y=R((t==null?void 0:t.in)||e,0);y.setFullYear(n,0,o),y.setHours(0,0,0,0);const m=Y(y,t);return+r>=+f?n+1:+r>=+m?n:n-1}function aa(e,t){var f,y,m,w;const r=ue(),n=(t==null?void 0:t.firstWeekContainsDate)??((y=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(m=r.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??1,i=Lt(e,t),o=R((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),Y(o,t)}function ia(e,t){const r=D(e,t==null?void 0:t.in),n=+Y(r,t)-+aa(r,t);return Math.round(n/xt)+1}function _(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const q={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"},Ut={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 q.y(e,t)},Y:function(e,t,r,n){const i=Lt(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 q.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=ia(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):_(i,t.length)},I:function(e,t,r){const n=na(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"}):q.d(e,t)},D:function(e,t,r){const n=ra(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 q.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):q.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"}):q.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):q.s(e,t)},S:function(e,t){return q.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Vt(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 Vt(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"+jt(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"+jt(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 jt(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 Vt(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 zt=(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"})}},Bt=(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"})}},sa={p:Bt,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return zt(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}}",zt(n,t)).replace("{{time}}",Bt(i,t))}},oa=/^D+$/,ua=/^Y+$/,ca=["D","DD","YY","YYYY"];function la(e){return oa.test(e)}function da(e){return ua.test(e)}function fa(e,t,r){const n=ma(e,t,r);if(console.warn(n),ca.includes(e))throw new RangeError(n)}function ma(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 ha=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ya=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ga=/^'([^]*?)'?$/,pa=/''/g,_a=/[a-zA-Z]/;function Xt(e,t,r){var w,g,p,I,k,G,A,j;const n=ue(),i=(r==null?void 0:r.locale)??n.locale??ta,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)??((G=(k=r==null?void 0:r.locale)==null?void 0:k.options)==null?void 0:G.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(!Dn(f))throw new RangeError("Invalid time value");let y=t.match(ya).map(O=>{const M=O[0];if(M==="p"||M==="P"){const V=sa[M];return V(O,i.formatLong)}return O}).join("").match(ha).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const M=O[0];if(M==="'")return{isToken:!1,value:wa(O)};if(Ut[M])return{isToken:!0,value:O};if(M.match(_a))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:O}});i.localize.preprocessor&&(y=i.localize.preprocessor(f,y));const m={firstWeekContainsDate:o,weekStartsOn:l,locale:i};return y.map(O=>{if(!O.isToken)return O.value;const M=O.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&da(M)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&la(M))&&fa(M,t,String(e));const V=Ut[M[0]];return V(f,M,i.localize,m)}).join("")}function wa(e){const t=e.match(ga);return t?t[1].replace(pa,"'"):e}function Ta(e,t){const r=D(e,t==null?void 0:t.in),n=r.getFullYear(),i=r.getMonth(),o=R(r,0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}function ba(){return Object.assign({},ue())}function $t(e){return+D(e)}function Qt(e){return Math.trunc(+D(e)/1e3)}function Da(e){return Math.trunc(e*yn)}function Ma(e){const t=e/hn;return Math.trunc(t)}function Zt(e,t,r){return gn(e,-1,r)}function Kt(e,t,r){const n=ba(),i=va(e,r.timeZone,r.locale??n.locale);return"formatToParts"in i?Sa(i,t):Oa(i,t)}function Sa(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 Oa(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function va(e,t,r){return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Ea(e,t){const r=Ra(t);return"formatToParts"in r?Pa(r,e):Ia(r,e)}const Na={year:0,month:1,day:2,hour:3,minute:4,second:5};function Pa(e,t){try{const r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){const o=Na[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 Ia(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={},Jt=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")),Ca=Jt==="06/25/2014, 00:00:00"||Jt==="06/25/2014 00:00:00";function Ra(e){return We[e]||(We[e]=Ca?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 qe(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 er=36e5,ka=6e4,Le={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function de(e,t,r){if(!e)return 0;let n=Le.timezoneZ.exec(e);if(n)return 0;let i,o;if(n=Le.timezoneHH.exec(e),n)return i=parseInt(n[1],10),tr(i)?-(i*er):NaN;if(n=Le.timezoneHHMM.exec(e),n){i=parseInt(n[2],10);const l=parseInt(n[3],10);return tr(i,l)?(o=Math.abs(i)*er+l*ka,n[1]==="+"?-o:o):NaN}if(Aa(e)){t=new Date(t||Date.now());const l=r?t:Ga(t),f=Ue(l,e);return-(r?f:Ya(t,f,e))}return NaN}function Ga(e){return qe(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Ue(e,t){const r=Ea(e,t),n=qe(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 Ya(e,t,r){let i=e.getTime()-t;const o=Ue(new Date(i),r);if(t===o)return t;i-=o-t;const l=Ue(new Date(i),r);return o===l?o:Math.max(o,l)}function tr(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const rr={};function Aa(e){if(rr[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),rr[e]=!0,!0}catch{return!1}}const xa=60*1e3,Ha={X:function(e,t,r){const n=je(r.timeZone,e);if(n===0)return"Z";switch(t){case"X":return nr(n);case"XXXX":case"XX":return Z(n);case"XXXXX":case"XXX":default:return Z(n,":")}},x:function(e,t,r){const n=je(r.timeZone,e);switch(t){case"x":return nr(n);case"xxxx":case"xx":return Z(n);case"xxxxx":case"xxx":default:return Z(n,":")}},O:function(e,t,r){const n=je(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Fa(n,":");case"OOOO":default:return"GMT"+Z(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return Kt("short",e,r);case"zzzz":default:return Kt("long",e,r)}}};function je(e,t){const r=e?de(e,t,!0)/xa:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function we(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=we(Math.floor(n/60),2),o=we(Math.floor(n%60),2);return r+i+t+o}function nr(e,t){return e%60===0?(e>0?"-":"+")+we(Math.abs(e)/60,2):Z(e,t)}function Fa(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+we(o,2)}function ar(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 ir=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Ve=36e5,sr=6e4,Wa=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:ir};function Te(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?Wa: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=qa(e),{year:i,restDateString:o}=La(n.date,r),l=Ua(o,i);if(l===null||isNaN(l.getTime()))return new Date(NaN);if(l){const f=l.getTime();let y=0,m;if(n.time&&(y=ja(n.time),y===null||isNaN(y)))return new Date(NaN);if(n.timeZone||t.timeZone){if(m=de(n.timeZone||t.timeZone,new Date(f+y)),isNaN(m))return new Date(NaN)}else m=ar(new Date(f+y)),m=ar(new Date(f+y+m));return new Date(f+y+m)}else return new Date(NaN)}function qa(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 La(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 Ua(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,cr(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 Ba(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 cr(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,lr(i)?or(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 lr(i,l)?or(t,i,l):new Date(NaN)}return null}function ja(e){let t,r,n=v.HH.exec(e);if(n)return t=parseFloat(n[1].replace(",",".")),ze(t)?t%24*Ve:NaN;if(n=v.HHMM.exec(e),n)return t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")),ze(t,r)?t%24*Ve+r*sr: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 ze(t,r,i)?t%24*Ve+r*sr+i*1e3:NaN}return null}function or(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 Va=[31,28,31,30,31,30,31,31,30,31,30,31],za=[31,29,31,30,31,30,31,31,30,31,30,31];function ur(e){return e%400===0||e%4===0&&e%100!==0}function cr(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;const n=ur(e);if(n&&r>za[t]||!n&&r>Va[t])return!1}return!0}function Ba(e,t){if(t<1)return!1;const r=ur(e);return!(r&&t>366||!r&&t>365)}function lr(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function ze(e,t,r){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}const Xa=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function $a(e,t,r={}){t=String(t);const n=t.match(Xa);if(n){const i=Te(r.originalDate||e,r);t=n.reduce(function(o,l){if(l[0]==="'")return o;const f=o.indexOf(l),y=o[f-1]==="'",m=o.replace(l,"'"+Ha[l[0]](i,l,r)+"'");return y?m.substring(0,f-1)+m.substring(f+1):m},t)}return Xt(e,t,r)}function dr(e,t,r){e=Te(e,r);const n=de(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 Qa(e,t,r,n){return n={...n,timeZone:t,originalDate:e},$a(dr(e,t,{timeZone:n.timeZone}),r,n)}function Za(e,t,r){if(typeof e=="string"&&!e.match(ir))return Te(e,{...r,timeZone:t});e=Te(e,r);const n=qe(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=de(t,new Date(n));return new Date(n+i)}function fr(e,t){return-de(e,t)}function Ka(e){return Xt(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function Be(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 Qa(i,r,n)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function Ja(e,t){return`${Be(e.getTime())} - ${Be(t.getTime(),{includeTZ:!0})}`}const fe={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 ei(e,t){return e.map(r=>({value:r,label:t.t(`configuration.vitals.reports.granularity.${r}`)}))}function mr(e,t){return{duration:e,type:"duration",origin:t}}function ti(e){return e&&Re.find(r=>e<=fe[r])||null}function hr(e,t,r,n){const i=fe[r];let o=0;return i>=fe.daily&&(n?o=-fr(n,t):o=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-o)/i)*i+o)}function yr(e,t,r){return hr(Math.floor,e,t,r)}function Xe(e,t,r){return hr(Math.ceil,e,t,r)}class be{constructor(t,r,n){b(this,"timeframe");b(this,"tz");b(this,"dataGranularity");if(this.constructor===be)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=yr(o,r,this.tz),y=(i.getTime()-l.getTime())*(n-1);return new Date(l.getTime()-y)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return mr(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return Qt(this.startDate())}endSeconds(){return Qt(this.endDate())}startMs(){return $t(this.startDate())}endMs(){return $t(this.endDate())}}class ri extends be{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 Xe(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return fe[this.granularity]}}class gr extends be{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return Xe(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class ni extends gr{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Me={exports:{}};Me.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",l="[object Array]",f="[object Boolean]",y="[object Date]",m="[object Error]",w="[object Function]",g="[object GeneratorFunction]",p="[object Map]",I="[object Number]",k="[object Object]",G="[object Promise]",A="[object RegExp]",j="[object Set]",O="[object String]",M="[object Symbol]",V="[object WeakMap]",wr="[object ArrayBuffer]",Oe="[object DataView]",Tr="[object Float32Array]",br="[object Float64Array]",Dr="[object Int8Array]",Mr="[object Int16Array]",Sr="[object Int32Array]",Or="[object Uint8Array]",vr="[object Uint8ClampedArray]",Er="[object Uint16Array]",Nr="[object Uint32Array]",_i=/[\\^$.*+?()[\]{}|]/g,wi=/\w*$/,Ti=/^\[object .+?Constructor\]$/,bi=/^(?:0|[1-9]\d*)$/,T={};T[o]=T[l]=T[wr]=T[Oe]=T[f]=T[y]=T[Tr]=T[br]=T[Dr]=T[Mr]=T[Sr]=T[p]=T[I]=T[k]=T[A]=T[j]=T[O]=T[M]=T[Or]=T[vr]=T[Er]=T[Nr]=!0,T[m]=T[w]=T[V]=!1;var Di=typeof De=="object"&&De&&De.Object===Object&&De,Mi=typeof self=="object"&&self&&self.Object===Object&&self,x=Di||Mi||Function("return this")(),Pr=t&&!t.nodeType&&t,Ir=Pr&&!0&&e&&!e.nodeType&&e,Si=Ir&&Ir.exports===Pr;function Oi(a,s){return a.set(s[0],s[1]),a}function vi(a,s){return a.add(s),a}function Ei(a,s){for(var u=-1,d=a?a.length:0;++u<d&&s(a[u],u,a)!==!1;);return a}function Ni(a,s){for(var u=-1,d=s.length,S=a.length;++u<d;)a[S+u]=s[u];return a}function Cr(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 Pi(a,s){for(var u=-1,d=Array(a);++u<a;)d[u]=s(u);return d}function Ii(a,s){return a==null?void 0:a[s]}function Rr(a){var s=!1;if(a!=null&&typeof a.toString!="function")try{s=!!(a+"")}catch{}return s}function kr(a){var s=-1,u=Array(a.size);return a.forEach(function(d,S){u[++s]=[S,d]}),u}function Qe(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 Ci=Array.prototype,Ri=Function.prototype,ve=Object.prototype,Ze=x["__core-js_shared__"],Yr=function(){var a=/[^.]+$/.exec(Ze&&Ze.keys&&Ze.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ar=Ri.toString,L=ve.hasOwnProperty,Ee=ve.toString,ki=RegExp("^"+Ar.call(L).replace(_i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xr=Si?x.Buffer:void 0,Hr=x.Symbol,Fr=x.Uint8Array,Gi=Qe(Object.getPrototypeOf,Object),Yi=Object.create,Ai=ve.propertyIsEnumerable,xi=Ci.splice,Wr=Object.getOwnPropertySymbols,Hi=xr?xr.isBuffer:void 0,Fi=Qe(Object.keys,Object),Ke=te(x,"DataView"),me=te(x,"Map"),Je=te(x,"Promise"),et=te(x,"Set"),tt=te(x,"WeakMap"),he=te(Object,"create"),Wi=X(Ke),qi=X(me),Li=X(Je),Ui=X(et),ji=X(tt),qr=Hr?Hr.prototype:void 0,Lr=qr?qr.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 Vi(){this.__data__=he?he(null):{}}function zi(a){return this.has(a)&&delete this.__data__[a]}function Bi(a){var s=this.__data__;if(he){var u=s[a];return u===n?void 0:u}return L.call(s,a)?s[a]:void 0}function Xi(a){var s=this.__data__;return he?s[a]!==void 0:L.call(s,a)}function $i(a,s){var u=this.__data__;return u[a]=he&&s===void 0?n:s,this}z.prototype.clear=Vi,z.prototype.delete=zi,z.prototype.get=Bi,z.prototype.has=Xi,z.prototype.set=$i;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 Qi(){this.__data__=[]}function Zi(a){var s=this.__data__,u=Ne(s,a);if(u<0)return!1;var d=s.length-1;return u==d?s.pop():xi.call(s,u,1),!0}function Ki(a){var s=this.__data__,u=Ne(s,a);return u<0?void 0:s[u][1]}function Ji(a){return Ne(this.__data__,a)>-1}function es(a,s){var u=this.__data__,d=Ne(u,a);return d<0?u.push([a,s]):u[d][1]=s,this}H.prototype.clear=Qi,H.prototype.delete=Zi,H.prototype.get=Ki,H.prototype.has=Ji,H.prototype.set=es;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 ts(){this.__data__={hash:new z,map:new(me||H),string:new z}}function rs(a){return Pe(this,a).delete(a)}function ns(a){return Pe(this,a).get(a)}function as(a){return Pe(this,a).has(a)}function is(a,s){return Pe(this,a).set(a,s),this}J.prototype.clear=ts,J.prototype.delete=rs,J.prototype.get=ns,J.prototype.has=as,J.prototype.set=is;function ee(a){this.__data__=new H(a)}function ss(){this.__data__=new H}function os(a){return this.__data__.delete(a)}function us(a){return this.__data__.get(a)}function cs(a){return this.__data__.has(a)}function ls(a,s){var u=this.__data__;if(u instanceof H){var d=u.__data__;if(!me||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=ss,ee.prototype.delete=os,ee.prototype.get=us,ee.prototype.has=cs,ee.prototype.set=ls;function ds(a,s){var u=at(a)||Ys(a)?Pi(a.length,String):[],d=u.length,S=!!d;for(var E in a)L.call(a,E)&&!(S&&(E=="length"||Cs(E,d)))&&u.push(E);return u}function Ur(a,s,u){var d=a[s];(!(L.call(a,s)&&Br(d,u))||u===void 0&&!(s in a))&&(a[s]=u)}function Ne(a,s){for(var u=a.length;u--;)if(Br(a[u][0],s))return u;return-1}function fs(a,s){return a&&jr(s,it(s),a)}function rt(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(!Ie(a))return a;var Qr=at(a);if(Qr){if(N=Ns(a),!s)return Os(a,N)}else{var re=B(a),Zr=re==w||re==g;if(xs(a))return _s(a,s);if(re==k||re==o||Zr&&!E){if(Rr(a))return E?a:{};if(N=Ps(Zr?{}:a),!s)return vs(a,fs(N,a))}else{if(!T[re])return E?a:{};N=Is(a,re,rt,s)}}F||(F=new ee);var Kr=F.get(a);if(Kr)return Kr;if(F.set(a,N),!Qr)var Jr=u?Es(a):it(a);return Ei(Jr||a,function(st,Ce){Jr&&(Ce=st,st=a[Ce]),Ur(N,Ce,rt(st,s,u,d,Ce,a,F))}),N}function ms(a){return Ie(a)?Yi(a):{}}function hs(a,s,u){var d=s(a);return at(a)?d:Ni(d,u(a))}function ys(a){return Ee.call(a)}function gs(a){if(!Ie(a)||ks(a))return!1;var s=$r(a)||Rr(a)?ki:Ti;return s.test(X(a))}function ps(a){if(!zr(a))return Fi(a);var s=[];for(var u in Object(a))L.call(a,u)&&u!="constructor"&&s.push(u);return s}function _s(a,s){if(s)return a.slice();var u=new a.constructor(a.length);return a.copy(u),u}function nt(a){var s=new a.constructor(a.byteLength);return new Fr(s).set(new Fr(a)),s}function ws(a,s){var u=s?nt(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.byteLength)}function Ts(a,s,u){var d=s?u(kr(a),!0):kr(a);return Cr(d,Oi,new a.constructor)}function bs(a){var s=new a.constructor(a.source,wi.exec(a));return s.lastIndex=a.lastIndex,s}function Ds(a,s,u){var d=s?u(Gr(a),!0):Gr(a);return Cr(d,vi,new a.constructor)}function Ms(a){return Lr?Object(Lr.call(a)):{}}function Ss(a,s){var u=s?nt(a.buffer):a.buffer;return new a.constructor(u,a.byteOffset,a.length)}function Os(a,s){var u=-1,d=a.length;for(s||(s=Array(d));++u<d;)s[u]=a[u];return s}function jr(a,s,u,d){u||(u={});for(var S=-1,E=s.length;++S<E;){var F=s[S],N=void 0;Ur(u,F,N===void 0?a[F]:N)}return u}function vs(a,s){return jr(a,Vr(a),s)}function Es(a){return hs(a,it,Vr)}function Pe(a,s){var u=a.__data__;return Rs(s)?u[typeof s=="string"?"string":"hash"]:u.map}function te(a,s){var u=Ii(a,s);return gs(u)?u:void 0}var Vr=Wr?Qe(Wr,Object):Ws,B=ys;(Ke&&B(new Ke(new ArrayBuffer(1)))!=Oe||me&&B(new me)!=p||Je&&B(Je.resolve())!=G||et&&B(new et)!=j||tt&&B(new tt)!=V)&&(B=function(a){var s=Ee.call(a),u=s==k?a.constructor:void 0,d=u?X(u):void 0;if(d)switch(d){case Wi:return Oe;case qi:return p;case Li:return G;case Ui:return j;case ji:return V}return s});function Ns(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 Ps(a){return typeof a.constructor=="function"&&!zr(a)?ms(Gi(a)):{}}function Is(a,s,u,d){var S=a.constructor;switch(s){case wr:return nt(a);case f:case y:return new S(+a);case Oe:return ws(a,d);case Tr:case br:case Dr:case Mr:case Sr:case Or:case vr:case Er:case Nr:return Ss(a,d);case p:return Ts(a,d,u);case I:case O:return new S(a);case A:return bs(a);case j:return Ds(a,d,u);case M:return Ms(a)}}function Cs(a,s){return s=s??i,!!s&&(typeof a=="number"||bi.test(a))&&a>-1&&a%1==0&&a<s}function Rs(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function ks(a){return!!Yr&&Yr in a}function zr(a){var s=a&&a.constructor,u=typeof s=="function"&&s.prototype||ve;return a===u}function X(a){if(a!=null){try{return Ar.call(a)}catch{}try{return a+""}catch{}}return""}function Gs(a){return rt(a,!0,!0)}function Br(a,s){return a===s||a!==a&&s!==s}function Ys(a){return As(a)&&L.call(a,"callee")&&(!Ai.call(a,"callee")||Ee.call(a)==o)}var at=Array.isArray;function Xr(a){return a!=null&&Hs(a.length)&&!$r(a)}function As(a){return Fs(a)&&Xr(a)}var xs=Hi||qs;function $r(a){var s=Ie(a)?Ee.call(a):"";return s==w||s==g}function Hs(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=i}function Ie(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function Fs(a){return!!a&&typeof a=="object"}function it(a){return Xr(a)?ds(a):ps(a)}function Ws(){return[]}function qs(){return!1}e.exports=Gs}(Me,Me.exports);var ii=Me.exports;const si=ai(ii),K=(e,t)=>new Date(e.getTime()-fr(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=Za(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return dr(r,t)}}class oi extends P{rawStart(t){let r=Y(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*7}}class ui extends P{rawStart(t){let r=$(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}maximumTimeframeLength(){return 60*60*24*31}}class ci extends P{rawEnd(t){let r=Y(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(r=K(r,t)),r}rawStart(t){const r=this.tzAdjustedDate(t);let n=Y(r.setDate(r.getDate()-7),{weekStartsOn:1});return t&&(n=K(n,t)),n}}class li extends P{rawEnd(t){let r=$(this.tzAdjustedDate(t));return t&&(r=K(r,t)),r}rawStart(t){let r=$(Zt(this.tzAdjustedDate(t)));return t&&(r=K(r,t)),r}}const pr=new Map([[h.FIFTEEN_MIN,new P({key:h.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"]})],[h.ONE_HOUR,new P({key:h.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"]})],[h.SIX_HOUR,new P({key:h.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"]})],[h.TWELVE_HOUR,new P({key:h.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"]})],[h.ONE_DAY,new P({key:h.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"]})],[h.SEVEN_DAY,new P({key:h.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"]})],[h.THIRTY_DAY,new P({key:h.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"]})],[h.CURRENT_WEEK,new oi({key:h.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=Y(new Date,{weekStartsOn:1});return(_e(Ft(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[h.CURRENT_MONTH,new ui({key:h.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=$(new Date);return(_e(Ft(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[h.PREVIOUS_WEEK,new ci({key:h.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"]})],[h.PREVIOUS_MONTH,new li({key:h.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=$(new Date),r=$(Zt(new Date));return t.getTimezoneOffset()!==r.getTimezoneOffset()&&(e=_r(t,r)),60*60*24*Ta(new Date().setMonth(new Date().getMonth()-1))+Da(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function di(e){const t=new Date(e.start),r=new Date(e.end),n=(r.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&si(pr.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 fi(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function mi(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function _r(e,t){return Ma(e.getTimezoneOffset()-t.getTimezoneOffset())}const hi={"15M":h.FIFTEEN_MIN,"1H":h.ONE_HOUR,"6H":h.SIX_HOUR,"12H":h.TWELVE_HOUR,"24H":h.ONE_DAY,"7D":h.SEVEN_DAY,"15m":h.FIFTEEN_MIN,"1h":h.ONE_HOUR,"6h":h.SIX_HOUR,"12h":h.TWELVE_HOUR,"24h":h.ONE_DAY,"7d":h.SEVEN_DAY,"30d":h.THIRTY_DAY,current_week:h.CURRENT_WEEK,current_month:h.CURRENT_MONTH,previous_week:h.PREVIOUS_WEEK,previous_month:h.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 yi=(e,t,r)=>{const n=$e(10,1e4),i=new Se(n),o=Date.now()-6*60*60*1e3,l=Date.now(),f=[];let y=0;for(let g=o;g<=l;g+=60*60*1e3)if(t)for(const p in t)t[p].forEach(I=>{y+=i.next(50,500);const k={[p]:I,[e.name]:y},G={version:"1.0",timestamp:new Date(g).toISOString(),event:k};f.push(G)});else{y+=i.next(50,500);const p={version:"1.0",timestamp:new Date(g).toISOString(),event:{[e.name]:y}};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}},gi=(e,t)=>{const r=$e(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 y={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:y}},pi=(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(),y=[];if(t){const g=Object.keys(t),p=Object.values(t),I=(k,G)=>{if(G===g.length){e.forEach(A=>{k[A.name]=i.next(1e3,5e7)}),y.push({version:"1.0",timestamp:new Date().toISOString(),event:{...k}});return}p[G].forEach(A=>{I({...k,[g[G]]:A},G+1)})};I({},0)}else{const g={};e.forEach(p=>{g[p.name]=i.next(50,500)}),y.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:y,meta:w}};function $e(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}c.DeltaQueryTime=ni,c.Granularities=fe,c.REFRESH_INTERVAL_MS=3e4,c.SeededRandom=Se,c.TIMEFRAME_LOOKUP=hi,c.TimePeriods=pr,c.Timeframe=P,c.TimeframeKeys=h,c.TimeseriesQueryTime=ri,c.UnaryQueryTime=gr,c.aiExploreAggregations=dt,c.apiUsageQuerySchema=It,c.barChartSchema=Dt,c.basicExploreAggregations=ke,c.basicQuerySchema=Ct,c.ceilToNearestTimeGrain=Xe,c.choroplethMapSchema=Pt,c.countryISOA2=_t,c.dashboardConfigSchema=dn,c.dashboardTileTypes=ln,c.datasourceToFilterableDimensions=pt,c.datePickerSelectionToTimeframe=di,c.donutChartSchema=Ot,c.dstOffsetHours=_r,c.exploreAggregations=lt,c.exploreFilterTypesV2=ot,c.filterableAiExploreDimensions=se,c.filterableBasicExploreDimensions=ae,c.filterableExploreDimensions=ie,c.filterableRequestDimensions=mt,c.filterableRequestMetrics=gt,c.filterableRequestWildcardDimensions=sn,c.floorToNearestTimeGrain=yr,c.formatISOTimeWithTZ=Ka,c.formatTime=Be,c.formatTimeRange=Ja,c.gaugeChartSchema=St,c.generateCrossSectionalData=pi,c.generateMultipleMetricTimeSeriesData=gi,c.generateSingleMetricTimeSeriesData=yi,c.getFieldDataSources=fn,c.granularitiesToOptions=ei,c.granularityMsToQuery=mr,c.granularityValues=Re,c.llmUsageSchema=Rt,c.metricCardSchema=Et,c.msToGranularity=ti,c.queryDatasources=un,c.queryableAiExploreDimensions=Ye,c.queryableBasicExploreDimensions=ye,c.queryableExploreDimensions=Ge,c.queryableRequestDimensions=ft,c.queryableRequestMetrics=yt,c.queryableRequestWildcardDimensions=ht,c.rand=$e,c.relativeTimeRangeValuesRequestV2=on,c.relativeTimeRangeValuesV4=ct,c.reportChartTypes=en,c.requestFilterTypeEmptyV2=ut,c.requestFilterTypeEqualsV2=tn,c.requestFilterTypeMetricV2=rn,c.requestFilterTypeWildcardV2=nn,c.singleValueSchema=Nt,c.slottableSchema=bt,c.stripUnknownFilters=cn,c.tileConfigSchema=At,c.tileDefinitionSchema=Gt,c.tileLayoutSchema=Yt,c.timeRangeTypeV2=an,c.timeframeToDatepickerSelection=fi,c.timeframeToDatepickerTimeperiod=mi,c.timeseriesChartSchema=Mt,c.topNTableSchema=vt,c.validDashboardQuery=kt,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=vitals-utilities.umd.js.map
|