@kong-ui-public/analytics-utilities 5.1.0 → 5.2.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/types/chart-types.d.ts +1 -1
- package/dist/types/types/chart-types.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 +2 -1
- 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(o,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(o=typeof globalThis<"u"?globalThis:o||self,b(o["kong-ui-public-vitals-utilities"]={}))})(this,function(o){"use strict";var Tr=Object.defineProperty;var _r=(o,b,m)=>b in o?Tr(o,b,{enumerable:!0,configurable:!0,writable:!0,value:m}):o[b]=m;var w=(o,b,m)=>_r(o,typeof b!="symbol"?b+"":b,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 et=["horizontal_bar","vertical_bar","timeseries_line"],tt=["in","not_in","selector"],nt=["=","!="],rt=["=","!=","<",">","<=",">="],at=["empty","not_empty"],it=["starts_with","ends_with"],st=["absolute","relative"],ot=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],ie=["secondly","minutely","hourly","daily","weekly","trend"],I=e=>e.filter(t=>t!=="time"),X=["api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","route","status_code","status_code_grouped","time"],se=I(X),oe=["active_services","request_count","request_per_minute","response_latency_average"],ue=[...X,"application","consumer","iso_code"],ce=I(ue),ut=[...oe,"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","request_size_p99","request_size_p95","request_size_p50","request_size_average","response_size_average"],le=["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"],de=I(le),ct=["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"],fe=["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","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"],lt=I(fe),me=["auth_type","client_ip","data_plane_node_version","header_host","header_user_agent","http_method","request_id","request_uri","response_header_content_type","response_source","service_port","service_protocol","trace_id","upstream_uri"],dt=me,he=["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"],ft=I(he),mt=["15M","1H","6H","12H","24H","7D"],ht=["basic","advanced","ai"],ge={basic:new Set(se),advanced:new Set(ce),ai:new Set(de)},gt=(e,t)=>t.filter(n=>ge[e].has(n.dimension)),ye=6048e5,yt=864e5,wt=60,Tt=3600,we=Symbol.for("constructDateFrom");function M(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&we in e?e[we](t):e instanceof Date?new e.constructor(t):new Date(t)}function g(e,t){return M(t||e,e)}function Te(e,t,n){const r=g(e,n==null?void 0:n.in);return isNaN(t)?M(e,NaN):(r.setDate(r.getDate()+t),r)}function _t(e,t,n){const r=g(e,n==null?void 0:n.in);if(isNaN(t))return M(e,NaN);const a=r.getDate(),i=M(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return a>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}let Dt={};function W(){return Dt}function S(e,t){var u,c,d,l;const n=W(),r=(t==null?void 0:t.weekStartsOn)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((l=(d=n.locale)==null?void 0:d.options)==null?void 0:l.weekStartsOn)??0,a=g(e,t==null?void 0:t.in),i=a.getDay(),s=(i<r?7:0)+i-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function L(e,t){return S(e,{...t,weekStartsOn:1})}function _e(e,t){const n=g(e,t==null?void 0:t.in),r=n.getFullYear(),a=M(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const i=L(a),s=M(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=L(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function De(e){const t=g(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function bt(e,...t){const n=M.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function G(e,t){const n=g(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Mt(e,t,n){const[r,a]=bt(n==null?void 0:n.in,e,t),i=G(r),s=G(a),u=+i-De(i),c=+s-De(s);return Math.round((u-c)/yt)}function Ot(e,t){const n=_e(e,t),r=M(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),L(r)}function pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function St(e){return!(!pt(e)&&typeof e!="number"||isNaN(+g(e)))}function N(e,t){const n=g(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function vt(e,t){const n=g(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Et={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"}},kt=(e,t,n)=>{let r;const a=Et[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xt={date:$({formats:Nt,defaultWidth:"full"}),time:$({formats:Yt,defaultWidth:"full"}),dateTime:$({formats:Rt,defaultWidth:"full"})},Pt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},It=(e,t,n,r)=>Pt[e];function F(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):s;a=e.formattingValues[u]||e.formattingValues[s]}else{const s=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const Wt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ft={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ct={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"]},qt={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"]},Ht={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"}},Lt={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"}},Gt={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:F({values:Wt,defaultWidth:"wide"}),quarter:F({values:Ft,defaultWidth:"wide",argumentCallback:e=>e-1}),month:F({values:Ct,defaultWidth:"wide"}),day:F({values:qt,defaultWidth:"wide"}),dayPeriod:F({values:Ht,defaultWidth:"wide",formattingValues:Lt,defaultFormattingWidth:"wide"})};function C(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?zt(u,f=>f.test(s)):Ut(u,f=>f.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const l=t.slice(s.length);return{value:d,rest:l}}}function Ut(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function zt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function At(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const u=t.slice(a.length);return{value:s,rest:u}}}const Vt=/^(\d+)(th|st|nd|rd)?/i,Xt=/\d+/i,$t={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},jt={any:[/^b/i,/^(a|c)/i]},Qt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zt={any:[/1/i,/2/i,/3/i,/4/i]},Bt={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},Jt={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]},Kt={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},en={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]},tn={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},nn={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}},rn={ordinalNumber:At({matchPattern:Vt,parsePattern:Xt,valueCallback:e=>parseInt(e,10)}),era:C({matchPatterns:$t,defaultMatchWidth:"wide",parsePatterns:jt,defaultParseWidth:"any"}),quarter:C({matchPatterns:Qt,defaultMatchWidth:"wide",parsePatterns:Zt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:C({matchPatterns:Bt,defaultMatchWidth:"wide",parsePatterns:Jt,defaultParseWidth:"any"}),day:C({matchPatterns:Kt,defaultMatchWidth:"wide",parsePatterns:en,defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:tn,defaultMatchWidth:"any",parsePatterns:nn,defaultParseWidth:"any"})},an={code:"en-US",formatDistance:kt,formatLong:xt,formatRelative:It,localize:Gt,match:rn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sn(e,t){const n=g(e,t==null?void 0:t.in);return Mt(n,vt(n))+1}function on(e,t){const n=g(e,t==null?void 0:t.in),r=+L(n)-+Ot(n);return Math.round(r/ye)+1}function be(e,t){var l,f,p,O;const n=g(e,t==null?void 0:t.in),r=n.getFullYear(),a=W(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((O=(p=a.locale)==null?void 0:p.options)==null?void 0:O.firstWeekContainsDate)??1,s=M((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const u=S(s,t),c=M((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=S(c,t);return+n>=+u?r+1:+n>=+d?r:r-1}function un(e,t){var u,c,d,l;const n=W(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(d=n.locale)==null?void 0:d.options)==null?void 0:l.firstWeekContainsDate)??1,a=be(e,t),i=M((t==null?void 0:t.in)||e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),S(i,t)}function cn(e,t){const n=g(e,t==null?void 0:t.in),r=+S(n,t)-+un(n,t);return Math.round(r/ye)+1}function h(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const E={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return h(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):h(n+1,2)},d(e,t){return h(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return h(e.getHours()%12||12,t.length)},H(e,t){return h(e.getHours(),t.length)},m(e,t){return h(e.getMinutes(),t.length)},s(e,t){return h(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return h(a,t.length)}},Y={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Me={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){const a=be(e,r),i=a>0?a:1-a;if(t==="YY"){const s=i%100;return h(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):h(i,t.length)},R:function(e,t){const n=_e(e);return h(n,t.length)},u:function(e,t){const n=e.getFullYear();return h(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return h(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return h(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return h(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=cn(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):h(a,t.length)},I:function(e,t,n){const r=on(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):h(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){const r=sn(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):h(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return h(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return h(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return h(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Y.noon:r===0?a=Y.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Y.evening:r>=12?a=Y.afternoon:r>=4?a=Y.morning:a=Y.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return E.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return pe(r);case"XXXX":case"XX":return k(r);case"XXXXX":case"XXX":default:return k(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return pe(r);case"xxxx":case"xx":return k(r);case"xxxxx":case"xxx":default:return k(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oe(r,":");case"OOOO":default:return"GMT"+k(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oe(r,":");case"zzzz":default:return"GMT"+k(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return h(r,t.length)},T:function(e,t,n){return h(+e,t.length)}};function Oe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+h(i,2)}function pe(e,t){return e%60===0?(e>0?"-":"+")+h(Math.abs(e)/60,2):k(e,t)}function k(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=h(Math.trunc(r/60),2),i=h(r%60,2);return n+a+t+i}const Se=(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"})}},ve=(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"})}},ln={p:ve,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Se(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Se(r,t)).replace("{{time}}",ve(a,t))}},dn=/^D+$/,fn=/^Y+$/,mn=["D","DD","YY","YYYY"];function hn(e){return dn.test(e)}function gn(e){return fn.test(e)}function yn(e,t,n){const r=wn(e,t,n);if(console.warn(r),mn.includes(e))throw new RangeError(r)}function wn(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Tn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dn=/^'([^]*?)'?$/,bn=/''/g,Mn=/[a-zA-Z]/;function Ee(e,t,n){var l,f,p,O,v,P,Je,Ke;const r=W(),a=(n==null?void 0:n.locale)??r.locale??an,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((O=(p=r.locale)==null?void 0:p.options)==null?void 0:O.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((P=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:P.weekStartsOn)??r.weekStartsOn??((Ke=(Je=r.locale)==null?void 0:Je.options)==null?void 0:Ke.weekStartsOn)??0,u=g(e,n==null?void 0:n.in);if(!St(u))throw new RangeError("Invalid time value");let c=t.match(_n).map(D=>{const T=D[0];if(T==="p"||T==="P"){const ae=ln[T];return ae(D,a.formatLong)}return D}).join("").match(Tn).map(D=>{if(D==="''")return{isToken:!1,value:"'"};const T=D[0];if(T==="'")return{isToken:!1,value:On(D)};if(Me[T])return{isToken:!0,value:D};if(T.match(Mn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:D}});a.localize.preprocessor&&(c=a.localize.preprocessor(u,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return c.map(D=>{if(!D.isToken)return D.value;const T=D.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&gn(T)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&hn(T))&&yn(T,t,String(e));const ae=Me[T[0]];return ae(u,T,a.localize,d)}).join("")}function On(e){const t=e.match(Dn);return t?t[1].replace(bn,"'"):e}function pn(e,t){const n=g(e,t==null?void 0:t.in),r=n.getFullYear(),a=n.getMonth(),i=M(n,0);return i.setFullYear(r,a+1,0),i.setHours(0,0,0,0),i.getDate()}function Sn(){return Object.assign({},W())}function ke(e){return+g(e)}function Ne(e){return Math.trunc(+g(e)/1e3)}function vn(e){return Math.trunc(e*Tt)}function En(e){const t=e/wt;return Math.trunc(t)}function Ye(e,t,n){return _t(e,-t,n)}function Re(e,t,n){const r=Sn(),a=Yn(e,n.timeZone,n.locale??r.locale);return"formatToParts"in a?kn(a,t):Nn(a,t)}function kn(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function Nn(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function Yn(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Rn(e,t){const n=Fn(t);return"formatToParts"in n?Pn(n,e):In(n,e)}const xn={year:0,month:1,day:2,hour:3,minute:4,second:5};function Pn(e,t){try{const n=e.formatToParts(t),r=[];for(let a=0;a<n.length;a++){const i=xn[n[a].type];i!==void 0&&(r[i]=parseInt(n[a].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function In(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const j={},xe=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")),Wn=xe==="06/25/2014, 00:00:00"||xe==="06/25/2014 00:00:00";function Fn(e){return j[e]||(j[e]=Wn?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"})),j[e]}function Q(e,t,n,r,a,i,s){const u=new Date(0);return u.setUTCFullYear(e,t,n),u.setUTCHours(r,a,i,s),u}const Pe=36e5,Cn=6e4,Z={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function q(e,t,n){if(!e)return 0;let r=Z.timezoneZ.exec(e);if(r)return 0;let a,i;if(r=Z.timezoneHH.exec(e),r)return a=parseInt(r[1],10),Ie(a)?-(a*Pe):NaN;if(r=Z.timezoneHHMM.exec(e),r){a=parseInt(r[2],10);const s=parseInt(r[3],10);return Ie(a,s)?(i=Math.abs(a)*Pe+s*Cn,r[1]==="+"?-i:i):NaN}if(Ln(e)){t=new Date(t||Date.now());const s=n?t:qn(t),u=B(s,e);return-(n?u:Hn(t,u,e))}return NaN}function qn(e){return Q(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function B(e,t){const n=Rn(e,t),r=Q(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let a=e.getTime();const i=a%1e3;return a-=i>=0?i:1e3+i,r-a}function Hn(e,t,n){let a=e.getTime()-t;const i=B(new Date(a),n);if(t===i)return t;a-=i-t;const s=B(new Date(a),n);return i===s?i:Math.max(i,s)}function Ie(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const We={};function Ln(e){if(We[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),We[e]=!0,!0}catch{return!1}}const Gn=60*1e3,Un={X:function(e,t,n){const r=J(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return Fe(r);case"XXXX":case"XX":return R(r);case"XXXXX":case"XXX":default:return R(r,":")}},x:function(e,t,n){const r=J(n.timeZone,e);switch(t){case"x":return Fe(r);case"xxxx":case"xx":return R(r);case"xxxxx":case"xxx":default:return R(r,":")}},O:function(e,t,n){const r=J(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+zn(r,":");case"OOOO":default:return"GMT"+R(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return Re("short",e,n);case"zzzz":default:return Re("long",e,n)}}};function J(e,t){const n=e?q(e,t,!0)/Gn:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function U(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function R(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=U(Math.floor(r/60),2),i=U(Math.floor(r%60),2);return n+a+t+i}function Fe(e,t){return e%60===0?(e>0?"-":"+")+U(Math.abs(e)/60,2):R(e,t)}function zn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+U(i,2)}function Ce(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 qe=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,K=36e5,He=6e4,An=2,y={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,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:qe};function z(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?An:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=Vn(e),{year:a,restDateString:i}=Xn(r.date,n),s=$n(i,a);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const u=s.getTime();let c=0,d;if(r.time&&(c=jn(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=q(r.timeZone||t.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN)}else d=Ce(new Date(u+c)),d=Ce(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function Vn(e){const t={};let n=y.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=y.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const a=y.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function Xn(e,t){if(e){const n=y.YYY[t],r=y.YYYYY[t];let a=y.YYYY.exec(e)||r.exec(e);if(a){const i=a[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(a=y.YY.exec(e)||n.exec(e),a){const i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function $n(e,t){if(t===null)return null;let n,r,a;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=y.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,Ue(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=y.DDD.exec(e),i){n=new Date(0);const s=parseInt(i[1],10);return Bn(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(i=y.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const s=parseInt(i[2],10);return Ue(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(i=y.Www.exec(e),i)return a=parseInt(i[1],10)-1,ze(a)?Le(t,a):new Date(NaN);if(i=y.WwwD.exec(e),i){a=parseInt(i[1],10)-1;const s=parseInt(i[2],10)-1;return ze(a,s)?Le(t,a,s):new Date(NaN)}return null}function jn(e){let t,n,r=y.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),ee(t)?t%24*K:NaN;if(r=y.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),ee(t,n)?t%24*K+n*He:NaN;if(r=y.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const a=parseFloat(r[3].replace(",","."));return ee(t,n,a)?t%24*K+n*He+a*1e3:NaN}return null}function Le(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const Qn=[31,28,31,30,31,30,31,31,30,31,30,31],Zn=[31,29,31,30,31,30,31,31,30,31,30,31];function Ge(e){return e%400===0||e%4===0&&e%100!==0}function Ue(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=Ge(e);if(r&&n>Zn[t]||!r&&n>Qn[t])return!1}return!0}function Bn(e,t){if(t<1)return!1;const n=Ge(e);return!(n&&t>366||!n&&t>365)}function ze(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function ee(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Jn=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Kn(e,t,n={}){t=String(t);const r=t.match(Jn);if(r){const a=z(n.originalDate||e,n);t=r.reduce(function(i,s){if(s[0]==="'")return i;const u=i.indexOf(s),c=i[u-1]==="'",d=i.replace(s,"'"+Un[s[0]](a,s,n)+"'");return c?d.substring(0,u-1)+d.substring(u+1):d},t)}return Ee(e,t,n)}function Ae(e,t,n){e=z(e,n);const r=q(t,e,!0),a=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),i.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),i}function er(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Kn(Ae(e,t,{timeZone:r.timeZone}),n,r)}function tr(e,t,n){if(typeof e=="string"&&!e.match(qe))return z(e,{...n,timeZone:t});e=z(e,n);const r=Q(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),a=q(t,new Date(r));return new Date(r+a)}function Ve(e,t){return-q(e,t)}function nr(e){return Ee(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function te(e,t={}){if(!e)return e;const n=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let r="MMM dd, yyy hh:mm a";t.short&&(r="MMM dd, yyy"),t.includeTZ&&(r+=" (z)");const a=new Date(e);return er(a,n,r)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function rr(e,t){return`${te(e.getTime())} - ${te(t.getTime(),{includeTZ:!0})}`}const H={secondly:1e3,minutely:60*1e3,hourly:60*60*1e3,daily:60*60*24*1e3,weekly:60*60*24*7*1e3,trend:0};function ar(e,t){return e.map(n=>({value:n,label:t.t(`configuration.vitals.reports.granularity.${n}`)}))}function Xe(e,t){return e?{duration:e,type:"duration",origin:t}:null}function ir(e){return e&&ie.find(n=>e<=H[n])||null}function $e(e,t,n,r){const a=H[n];let i=0;return a>=H.daily&&(r?i=-Ve(r,t):i=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-i)/a)*a+i)}function je(e,t,n){return $e(Math.floor,e,t,n)}function ne(e,t,n){return $e(Math.ceil,e,t,n)}class A{constructor(t,n){w(this,"timeframe");w(this,"tz");if(this.constructor===A)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=n}calculateStartDate(t,n,r=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*r);{const a=this.endDate(),i=this.timeframe.rawStart(this.tz),s=je(i,n,this.tz),c=(a.getTime()-s.getTime())*(r-1);return new Date(s.getTime()-c)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return Xe(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return Ne(this.startDate())}endSeconds(){return Ne(this.endDate())}startMs(){return ke(this.startDate())}endMs(){return ke(this.endDate())}}class sr extends A{constructor(n,r,a){super(n,a);w(this,"granularity");r&&n.allowedGranularities().has(r)?this.granularity=r:this.granularity=n.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return ne(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return H[this.granularity]}}class Qe extends A{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.timeframe.dataGranularity)}endDate(){return ne(this.timeframe.rawEnd(this.tz),this.timeframe.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class or extends Qe{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.timeframe.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}const x=(e,t)=>new Date(e.getTime()-Ve(t,e));class _{constructor(t){w(this,"timeframeText");w(this,"key");w(this,"display");w(this,"timeframeLength");w(this,"allowedTiers");w(this,"defaultResponseGranularity");w(this,"dataGranularity");w(this,"isRelative");w(this,"_startCustom");w(this,"_endCustom");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}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(){const t=new Set,n=this.maximumTimeframeLength()/3600;return n<=6&&t.add("minutely"),n>=2&&n<=7*24&&t.add("hourly"),n>=2*24&&t.add("daily"),n>=2*24*14&&t.add("weekly"),t}cacheKey(){return this.key!=="custom"?this.key:`${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`}v4Query(t){return this.key==="custom"?{type:"absolute",start:this.rawStart(),end:this.rawEnd(),tz:t}:{type:"relative",time_range:this.key,tz:t}}tzAdjustedDate(t){if(!t)return new Date;const n=tr(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return Ae(n,t)}}class ur extends _{rawStart(t){let n=S(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=x(n,t)),n}maximumTimeframeLength(){return 60*60*24*7}}class cr extends _{rawStart(t){let n=N(this.tzAdjustedDate(t));return t&&(n=x(n,t)),n}maximumTimeframeLength(){return 60*60*24*31}}class lr extends _{rawEnd(t){let n=S(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=x(n,t)),n}rawStart(t){const n=this.tzAdjustedDate(t);let r=S(n.setDate(n.getDate()-7),{weekStartsOn:1});return t&&(r=x(r,t)),r}}class dr extends _{rawEnd(t){let n=N(this.tzAdjustedDate(t));return t&&(n=x(n,t)),n}rawStart(t){let n=N(Ye(this.tzAdjustedDate(t),1));return t&&(n=x(n,t)),n}}const Ze=new Map([[m.FIFTEEN_MIN,new _({key:m.FIFTEEN_MIN,display:"Last 15 minutes",timeframeText:"15 minutes",timeframeLength:()=>60*15,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.ONE_HOUR,new _({key:m.ONE_HOUR,display:"Last hour",timeframeText:"One hour",timeframeLength:()=>60*60*1,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.SIX_HOUR,new _({key:m.SIX_HOUR,display:"Last 6 hours",timeframeText:"6 hours",timeframeLength:()=>60*60*6,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.TWELVE_HOUR,new _({key:m.TWELVE_HOUR,display:"Last 12 hours",timeframeText:"12 hours",timeframeLength:()=>60*60*12,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.ONE_DAY,new _({key:m.ONE_DAY,display:"Last 24 hours",timeframeText:"24 hours",timeframeLength:()=>60*60*24,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.SEVEN_DAY,new _({key:m.SEVEN_DAY,display:"Last 7 days",timeframeText:"7 days",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,allowedTiers:["trial","plus","enterprise"]})],[m.THIRTY_DAY,new _({key:m.THIRTY_DAY,display:"Last 30 days",timeframeText:"30 days",timeframeLength:()=>60*60*24*30,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,allowedTiers:["trial","plus","enterprise"]})],[m.CURRENT_WEEK,new ur({key:m.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=S(new Date,{weekStartsOn:1});return(G(Te(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[m.CURRENT_MONTH,new cr({key:m.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=N(new Date);return(G(Te(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[m.PREVIOUS_WEEK,new lr({key:m.PREVIOUS_WEEK,display:"Previous week",timeframeText:"Week",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[m.PREVIOUS_MONTH,new dr({key:m.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=N(new Date),n=N(Ye(new Date,1));return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(e=Be(t,n)),60*60*24*pn(new Date().setMonth(new Date().getMonth()-1))+vn(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function fr(e){const t=new Date(e.start),n=new Date(e.end),r=(n.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&Ze.get(e.timePeriodsKey)||new _({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:n,timeframeLength:()=>r,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function mr(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function hr(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function Be(e,t){return En(e.getTimezoneOffset()-t.getTimezoneOffset())}class V{constructor(t){w(this,"_seed");this._seed=t}next(t,n){const r=Math.sin(this._seed++)*1e4,a=r-Math.floor(r);return Math.floor(a*(n-t+1))+t}}const gr=(e,t)=>{const n=re(10,1e4),r=new V(n),a=Date.now()-6*60*60*1e3,i=Date.now(),s=[];let u=0;for(let l=a;l<=i;l+=60*60*1e3)if(t)for(const f in t)t[f].forEach(p=>{u+=r.next(50,500);const O={[f]:p,[e.name]:u},v={version:"1.0",timestamp:new Date(l).toISOString(),event:O};s.push(v)});else{u+=r.next(50,500);const f={version:"1.0",timestamp:new Date(l).toISOString(),event:{[e.name]:u}};s.push(f)}const c={};if(t)for(const l in t)c[l]={},t[l].forEach(f=>{c[l][f]={name:f,deleted:!1}});const d={start_ms:a,end_ms:i,query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:c};return{data:s,meta:d}},yr=e=>{const t=re(10,1e4),n=new V(t),r=Date.now()-6*60*60*1e3,a=Date.now(),i=[],s={};e.forEach(c=>{s[c.name]=0});for(let c=r;c<=a;c+=60*60*1e3){const d={};e.forEach(f=>{s[f.name]+=n.next(50,500),d[f.name]=s[f.name]});const l={version:"1.0",timestamp:new Date(c).toISOString(),event:d};i.push(l)}const u={start_ms:r,end_ms:a,query_id:"12345",metric_names:e.map(c=>c.name),metric_units:e.reduce((c,d)=>(c[d.name]=d.unit,c),{}),granularity_ms:60*60*1e3,display:{}};return{data:i,meta:u}},wr=(e,t)=>{const n=Math.floor(Math.random()*9991)+10,r=new V(n),a=Date.now()-6*60*60*1e3,i=Date.now(),s=new Date((a+i)/2).toISOString(),u=[];if(t){const l=Object.keys(t),f=Object.values(t),p=(O,v)=>{if(v===l.length){e.forEach(P=>{O[P.name]=r.next(50,500)}),u.push({version:"1.0",timestamp:new Date().toISOString(),event:{...O}});return}f[v].forEach(P=>{p({...O,[l[v]]:P},v+1)})};p({},0)}else{const l={};e.forEach(f=>{l[f.name]=r.next(50,500)}),u.push({version:"1.0",timestamp:s,event:l})}const c={};if(t)for(const l in t)c[l]={},t[l].forEach(f=>{c[l][f]={name:f,deleted:!1}});const d={start_ms:a,end_ms:i,query_id:"12345",metric_names:e.map(l=>l.name),metric_units:e.reduce((l,f)=>(l[f.name]=f.unit,l),{}),truncated:!1,limit:50,display:c,granularity_ms:i-a};return{data:u,meta:d}};function re(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}o.DeltaQueryTime=or,o.Granularities=H,o.REFRESH_INTERVAL_MS=3e4,o.SeededRandom=V,o.TimePeriods=Ze,o.Timeframe=_,o.TimeframeKeys=m,o.TimeseriesQueryTime=sr,o.UnaryQueryTime=Qe,o.aiExploreAggregations=ct,o.basicExploreAggregations=oe,o.ceilToNearestTimeGrain=ne,o.datasourceToFilterableDimensions=ge,o.datePickerSelectionToTimeframe=fr,o.dstOffsetHours=Be,o.exploreAggregations=ut,o.exploreFilterTypesV2=tt,o.filterableAiExploreDimensions=de,o.filterableBasicExploreDimensions=se,o.filterableExploreDimensions=ce,o.filterableRequestDimensions=lt,o.filterableRequestMetrics=ft,o.filterableRequestWildcardDimensions=dt,o.floorToNearestTimeGrain=je,o.formatISOTimeWithTZ=nr,o.formatTime=te,o.formatTimeRange=rr,o.generateCrossSectionalData=wr,o.generateMultipleMetricTimeSeriesData=yr,o.generateSingleMetricTimeSeriesData=gr,o.granularitiesToOptions=ar,o.granularityMsToQuery=Xe,o.granularityValues=ie,o.msToGranularity=ir,o.queryDatasources=ht,o.queryableAiExploreDimensions=le,o.queryableBasicExploreDimensions=X,o.queryableExploreDimensions=ue,o.queryableRequestDimensions=fe,o.queryableRequestMetrics=he,o.queryableRequestWildcardDimensions=me,o.rand=re,o.relativeTimeRangeValuesRequestV2=mt,o.relativeTimeRangeValuesV4=ot,o.reportChartTypes=et,o.requestFilterTypeEmptyV2=at,o.requestFilterTypeEqualsV2=nt,o.requestFilterTypeMetricV2=rt,o.requestFilterTypeWildcardV2=it,o.stripUnknownFilters=gt,o.timeRangeTypeV2=st,o.timeframeToDatepickerSelection=mr,o.timeframeToDatepickerTimeperiod=hr,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(o,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(o=typeof globalThis<"u"?globalThis:o||self,b(o["kong-ui-public-vitals-utilities"]={}))})(this,function(o){"use strict";var Tr=Object.defineProperty;var _r=(o,b,m)=>b in o?Tr(o,b,{enumerable:!0,configurable:!0,writable:!0,value:m}):o[b]=m;var w=(o,b,m)=>_r(o,typeof b!="symbol"?b+"":b,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 et=["horizontal_bar","vertical_bar","timeseries_line","choropleth_map"],tt=["in","not_in","selector"],nt=["=","!="],rt=["=","!=","<",">","<=",">="],at=["empty","not_empty"],it=["starts_with","ends_with"],st=["absolute","relative"],ot=["15m","1h","6h","12h","24h","7d","current_week","previous_week","30d","current_month","previous_month"],ie=["secondly","minutely","hourly","daily","weekly","trend"],I=e=>e.filter(t=>t!=="time"),X=["api_product","api_product_version","control_plane","control_plane_group","data_plane_node","gateway_service","route","status_code","status_code_grouped","time"],se=I(X),oe=["active_services","request_count","request_per_minute","response_latency_average"],ue=[...X,"application","consumer","iso_code"],ce=I(ue),ut=[...oe,"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","request_size_p99","request_size_p95","request_size_p50","request_size_average","response_size_average"],le=["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"],de=I(le),ct=["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"],fe=["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","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"],lt=I(fe),me=["auth_type","client_ip","data_plane_node_version","header_host","header_user_agent","http_method","request_id","request_uri","response_header_content_type","response_source","service_port","service_protocol","trace_id","upstream_uri"],dt=me,he=["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"],ft=I(he),mt=["15M","1H","6H","12H","24H","7D"],ht=["basic","advanced","ai"],ge={basic:new Set(se),advanced:new Set(ce),ai:new Set(de)},gt=(e,t)=>t.filter(n=>ge[e].has(n.dimension)),ye=6048e5,yt=864e5,wt=60,Tt=3600,we=Symbol.for("constructDateFrom");function M(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&we in e?e[we](t):e instanceof Date?new e.constructor(t):new Date(t)}function g(e,t){return M(t||e,e)}function Te(e,t,n){const r=g(e,n==null?void 0:n.in);return isNaN(t)?M(e,NaN):(r.setDate(r.getDate()+t),r)}function _t(e,t,n){const r=g(e,n==null?void 0:n.in);if(isNaN(t))return M(e,NaN);const a=r.getDate(),i=M(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return a>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}let Dt={};function W(){return Dt}function S(e,t){var u,c,d,l;const n=W(),r=(t==null?void 0:t.weekStartsOn)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((l=(d=n.locale)==null?void 0:d.options)==null?void 0:l.weekStartsOn)??0,a=g(e,t==null?void 0:t.in),i=a.getDay(),s=(i<r?7:0)+i-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function L(e,t){return S(e,{...t,weekStartsOn:1})}function _e(e,t){const n=g(e,t==null?void 0:t.in),r=n.getFullYear(),a=M(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const i=L(a),s=M(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=L(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function De(e){const t=g(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function bt(e,...t){const n=M.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function G(e,t){const n=g(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Mt(e,t,n){const[r,a]=bt(n==null?void 0:n.in,e,t),i=G(r),s=G(a),u=+i-De(i),c=+s-De(s);return Math.round((u-c)/yt)}function Ot(e,t){const n=_e(e,t),r=M(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),L(r)}function pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function St(e){return!(!pt(e)&&typeof e!="number"||isNaN(+g(e)))}function N(e,t){const n=g(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function vt(e,t){const n=g(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Et={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"}},kt=(e,t,n)=>{let r;const a=Et[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xt={date:$({formats:Nt,defaultWidth:"full"}),time:$({formats:Yt,defaultWidth:"full"}),dateTime:$({formats:Rt,defaultWidth:"full"})},Pt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},It=(e,t,n,r)=>Pt[e];function F(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):s;a=e.formattingValues[u]||e.formattingValues[s]}else{const s=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const Wt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ft={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ct={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"]},qt={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"]},Ht={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"}},Lt={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"}},Gt={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:F({values:Wt,defaultWidth:"wide"}),quarter:F({values:Ft,defaultWidth:"wide",argumentCallback:e=>e-1}),month:F({values:Ct,defaultWidth:"wide"}),day:F({values:qt,defaultWidth:"wide"}),dayPeriod:F({values:Ht,defaultWidth:"wide",formattingValues:Lt,defaultFormattingWidth:"wide"})};function C(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?zt(u,f=>f.test(s)):Ut(u,f=>f.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const l=t.slice(s.length);return{value:d,rest:l}}}function Ut(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function zt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function At(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const u=t.slice(a.length);return{value:s,rest:u}}}const Vt=/^(\d+)(th|st|nd|rd)?/i,Xt=/\d+/i,$t={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},jt={any:[/^b/i,/^(a|c)/i]},Qt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zt={any:[/1/i,/2/i,/3/i,/4/i]},Bt={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},Jt={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]},Kt={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},en={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]},tn={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},nn={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}},rn={ordinalNumber:At({matchPattern:Vt,parsePattern:Xt,valueCallback:e=>parseInt(e,10)}),era:C({matchPatterns:$t,defaultMatchWidth:"wide",parsePatterns:jt,defaultParseWidth:"any"}),quarter:C({matchPatterns:Qt,defaultMatchWidth:"wide",parsePatterns:Zt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:C({matchPatterns:Bt,defaultMatchWidth:"wide",parsePatterns:Jt,defaultParseWidth:"any"}),day:C({matchPatterns:Kt,defaultMatchWidth:"wide",parsePatterns:en,defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:tn,defaultMatchWidth:"any",parsePatterns:nn,defaultParseWidth:"any"})},an={code:"en-US",formatDistance:kt,formatLong:xt,formatRelative:It,localize:Gt,match:rn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sn(e,t){const n=g(e,t==null?void 0:t.in);return Mt(n,vt(n))+1}function on(e,t){const n=g(e,t==null?void 0:t.in),r=+L(n)-+Ot(n);return Math.round(r/ye)+1}function be(e,t){var l,f,p,O;const n=g(e,t==null?void 0:t.in),r=n.getFullYear(),a=W(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((O=(p=a.locale)==null?void 0:p.options)==null?void 0:O.firstWeekContainsDate)??1,s=M((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const u=S(s,t),c=M((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=S(c,t);return+n>=+u?r+1:+n>=+d?r:r-1}function un(e,t){var u,c,d,l;const n=W(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(d=n.locale)==null?void 0:d.options)==null?void 0:l.firstWeekContainsDate)??1,a=be(e,t),i=M((t==null?void 0:t.in)||e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),S(i,t)}function cn(e,t){const n=g(e,t==null?void 0:t.in),r=+S(n,t)-+un(n,t);return Math.round(r/ye)+1}function h(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const E={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return h(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):h(n+1,2)},d(e,t){return h(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return h(e.getHours()%12||12,t.length)},H(e,t){return h(e.getHours(),t.length)},m(e,t){return h(e.getMinutes(),t.length)},s(e,t){return h(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return h(a,t.length)}},Y={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Me={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){const a=be(e,r),i=a>0?a:1-a;if(t==="YY"){const s=i%100;return h(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):h(i,t.length)},R:function(e,t){const n=_e(e);return h(n,t.length)},u:function(e,t){const n=e.getFullYear();return h(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return h(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return h(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return h(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=cn(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):h(a,t.length)},I:function(e,t,n){const r=on(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):h(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){const r=sn(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):h(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return h(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return h(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return h(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Y.noon:r===0?a=Y.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Y.evening:r>=12?a=Y.afternoon:r>=4?a=Y.morning:a=Y.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return E.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return pe(r);case"XXXX":case"XX":return k(r);case"XXXXX":case"XXX":default:return k(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return pe(r);case"xxxx":case"xx":return k(r);case"xxxxx":case"xxx":default:return k(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oe(r,":");case"OOOO":default:return"GMT"+k(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oe(r,":");case"zzzz":default:return"GMT"+k(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return h(r,t.length)},T:function(e,t,n){return h(+e,t.length)}};function Oe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+h(i,2)}function pe(e,t){return e%60===0?(e>0?"-":"+")+h(Math.abs(e)/60,2):k(e,t)}function k(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=h(Math.trunc(r/60),2),i=h(r%60,2);return n+a+t+i}const Se=(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"})}},ve=(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"})}},ln={p:ve,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Se(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Se(r,t)).replace("{{time}}",ve(a,t))}},dn=/^D+$/,fn=/^Y+$/,mn=["D","DD","YY","YYYY"];function hn(e){return dn.test(e)}function gn(e){return fn.test(e)}function yn(e,t,n){const r=wn(e,t,n);if(console.warn(r),mn.includes(e))throw new RangeError(r)}function wn(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Tn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dn=/^'([^]*?)'?$/,bn=/''/g,Mn=/[a-zA-Z]/;function Ee(e,t,n){var l,f,p,O,v,P,Je,Ke;const r=W(),a=(n==null?void 0:n.locale)??r.locale??an,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((O=(p=r.locale)==null?void 0:p.options)==null?void 0:O.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((P=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:P.weekStartsOn)??r.weekStartsOn??((Ke=(Je=r.locale)==null?void 0:Je.options)==null?void 0:Ke.weekStartsOn)??0,u=g(e,n==null?void 0:n.in);if(!St(u))throw new RangeError("Invalid time value");let c=t.match(_n).map(D=>{const T=D[0];if(T==="p"||T==="P"){const ae=ln[T];return ae(D,a.formatLong)}return D}).join("").match(Tn).map(D=>{if(D==="''")return{isToken:!1,value:"'"};const T=D[0];if(T==="'")return{isToken:!1,value:On(D)};if(Me[T])return{isToken:!0,value:D};if(T.match(Mn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:D}});a.localize.preprocessor&&(c=a.localize.preprocessor(u,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return c.map(D=>{if(!D.isToken)return D.value;const T=D.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&gn(T)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&hn(T))&&yn(T,t,String(e));const ae=Me[T[0]];return ae(u,T,a.localize,d)}).join("")}function On(e){const t=e.match(Dn);return t?t[1].replace(bn,"'"):e}function pn(e,t){const n=g(e,t==null?void 0:t.in),r=n.getFullYear(),a=n.getMonth(),i=M(n,0);return i.setFullYear(r,a+1,0),i.setHours(0,0,0,0),i.getDate()}function Sn(){return Object.assign({},W())}function ke(e){return+g(e)}function Ne(e){return Math.trunc(+g(e)/1e3)}function vn(e){return Math.trunc(e*Tt)}function En(e){const t=e/wt;return Math.trunc(t)}function Ye(e,t,n){return _t(e,-t,n)}function Re(e,t,n){const r=Sn(),a=Yn(e,n.timeZone,n.locale??r.locale);return"formatToParts"in a?kn(a,t):Nn(a,t)}function kn(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function Nn(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function Yn(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Rn(e,t){const n=Fn(t);return"formatToParts"in n?Pn(n,e):In(n,e)}const xn={year:0,month:1,day:2,hour:3,minute:4,second:5};function Pn(e,t){try{const n=e.formatToParts(t),r=[];for(let a=0;a<n.length;a++){const i=xn[n[a].type];i!==void 0&&(r[i]=parseInt(n[a].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function In(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const j={},xe=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")),Wn=xe==="06/25/2014, 00:00:00"||xe==="06/25/2014 00:00:00";function Fn(e){return j[e]||(j[e]=Wn?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"})),j[e]}function Q(e,t,n,r,a,i,s){const u=new Date(0);return u.setUTCFullYear(e,t,n),u.setUTCHours(r,a,i,s),u}const Pe=36e5,Cn=6e4,Z={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function q(e,t,n){if(!e)return 0;let r=Z.timezoneZ.exec(e);if(r)return 0;let a,i;if(r=Z.timezoneHH.exec(e),r)return a=parseInt(r[1],10),Ie(a)?-(a*Pe):NaN;if(r=Z.timezoneHHMM.exec(e),r){a=parseInt(r[2],10);const s=parseInt(r[3],10);return Ie(a,s)?(i=Math.abs(a)*Pe+s*Cn,r[1]==="+"?-i:i):NaN}if(Ln(e)){t=new Date(t||Date.now());const s=n?t:qn(t),u=B(s,e);return-(n?u:Hn(t,u,e))}return NaN}function qn(e){return Q(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function B(e,t){const n=Rn(e,t),r=Q(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let a=e.getTime();const i=a%1e3;return a-=i>=0?i:1e3+i,r-a}function Hn(e,t,n){let a=e.getTime()-t;const i=B(new Date(a),n);if(t===i)return t;a-=i-t;const s=B(new Date(a),n);return i===s?i:Math.max(i,s)}function Ie(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const We={};function Ln(e){if(We[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),We[e]=!0,!0}catch{return!1}}const Gn=60*1e3,Un={X:function(e,t,n){const r=J(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return Fe(r);case"XXXX":case"XX":return R(r);case"XXXXX":case"XXX":default:return R(r,":")}},x:function(e,t,n){const r=J(n.timeZone,e);switch(t){case"x":return Fe(r);case"xxxx":case"xx":return R(r);case"xxxxx":case"xxx":default:return R(r,":")}},O:function(e,t,n){const r=J(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+zn(r,":");case"OOOO":default:return"GMT"+R(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return Re("short",e,n);case"zzzz":default:return Re("long",e,n)}}};function J(e,t){const n=e?q(e,t,!0)/Gn:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function U(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function R(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=U(Math.floor(r/60),2),i=U(Math.floor(r%60),2);return n+a+t+i}function Fe(e,t){return e%60===0?(e>0?"-":"+")+U(Math.abs(e)/60,2):R(e,t)}function zn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+U(i,2)}function Ce(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 qe=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,K=36e5,He=6e4,An=2,y={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,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:qe};function z(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?An:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=Vn(e),{year:a,restDateString:i}=Xn(r.date,n),s=$n(i,a);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const u=s.getTime();let c=0,d;if(r.time&&(c=jn(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=q(r.timeZone||t.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN)}else d=Ce(new Date(u+c)),d=Ce(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function Vn(e){const t={};let n=y.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=y.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const a=y.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function Xn(e,t){if(e){const n=y.YYY[t],r=y.YYYYY[t];let a=y.YYYY.exec(e)||r.exec(e);if(a){const i=a[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(a=y.YY.exec(e)||n.exec(e),a){const i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function $n(e,t){if(t===null)return null;let n,r,a;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=y.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,Ue(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=y.DDD.exec(e),i){n=new Date(0);const s=parseInt(i[1],10);return Bn(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(i=y.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const s=parseInt(i[2],10);return Ue(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(i=y.Www.exec(e),i)return a=parseInt(i[1],10)-1,ze(a)?Le(t,a):new Date(NaN);if(i=y.WwwD.exec(e),i){a=parseInt(i[1],10)-1;const s=parseInt(i[2],10)-1;return ze(a,s)?Le(t,a,s):new Date(NaN)}return null}function jn(e){let t,n,r=y.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),ee(t)?t%24*K:NaN;if(r=y.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),ee(t,n)?t%24*K+n*He:NaN;if(r=y.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const a=parseFloat(r[3].replace(",","."));return ee(t,n,a)?t%24*K+n*He+a*1e3:NaN}return null}function Le(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const Qn=[31,28,31,30,31,30,31,31,30,31,30,31],Zn=[31,29,31,30,31,30,31,31,30,31,30,31];function Ge(e){return e%400===0||e%4===0&&e%100!==0}function Ue(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=Ge(e);if(r&&n>Zn[t]||!r&&n>Qn[t])return!1}return!0}function Bn(e,t){if(t<1)return!1;const n=Ge(e);return!(n&&t>366||!n&&t>365)}function ze(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function ee(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Jn=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Kn(e,t,n={}){t=String(t);const r=t.match(Jn);if(r){const a=z(n.originalDate||e,n);t=r.reduce(function(i,s){if(s[0]==="'")return i;const u=i.indexOf(s),c=i[u-1]==="'",d=i.replace(s,"'"+Un[s[0]](a,s,n)+"'");return c?d.substring(0,u-1)+d.substring(u+1):d},t)}return Ee(e,t,n)}function Ae(e,t,n){e=z(e,n);const r=q(t,e,!0),a=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),i.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),i}function er(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Kn(Ae(e,t,{timeZone:r.timeZone}),n,r)}function tr(e,t,n){if(typeof e=="string"&&!e.match(qe))return z(e,{...n,timeZone:t});e=z(e,n);const r=Q(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),a=q(t,new Date(r));return new Date(r+a)}function Ve(e,t){return-q(e,t)}function nr(e){return Ee(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function te(e,t={}){if(!e)return e;const n=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let r="MMM dd, yyy hh:mm a";t.short&&(r="MMM dd, yyy"),t.includeTZ&&(r+=" (z)");const a=new Date(e);return er(a,n,r)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function rr(e,t){return`${te(e.getTime())} - ${te(t.getTime(),{includeTZ:!0})}`}const H={secondly:1e3,minutely:60*1e3,hourly:60*60*1e3,daily:60*60*24*1e3,weekly:60*60*24*7*1e3,trend:0};function ar(e,t){return e.map(n=>({value:n,label:t.t(`configuration.vitals.reports.granularity.${n}`)}))}function Xe(e,t){return e?{duration:e,type:"duration",origin:t}:null}function ir(e){return e&&ie.find(n=>e<=H[n])||null}function $e(e,t,n,r){const a=H[n];let i=0;return a>=H.daily&&(r?i=-Ve(r,t):i=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-i)/a)*a+i)}function je(e,t,n){return $e(Math.floor,e,t,n)}function ne(e,t,n){return $e(Math.ceil,e,t,n)}class A{constructor(t,n){w(this,"timeframe");w(this,"tz");if(this.constructor===A)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=n}calculateStartDate(t,n,r=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*r);{const a=this.endDate(),i=this.timeframe.rawStart(this.tz),s=je(i,n,this.tz),c=(a.getTime()-s.getTime())*(r-1);return new Date(s.getTime()-c)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return Xe(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return Ne(this.startDate())}endSeconds(){return Ne(this.endDate())}startMs(){return ke(this.startDate())}endMs(){return ke(this.endDate())}}class sr extends A{constructor(n,r,a){super(n,a);w(this,"granularity");r&&n.allowedGranularities().has(r)?this.granularity=r:this.granularity=n.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return ne(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return H[this.granularity]}}class Qe extends A{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.timeframe.dataGranularity)}endDate(){return ne(this.timeframe.rawEnd(this.tz),this.timeframe.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class or extends Qe{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.timeframe.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}const x=(e,t)=>new Date(e.getTime()-Ve(t,e));class _{constructor(t){w(this,"timeframeText");w(this,"key");w(this,"display");w(this,"timeframeLength");w(this,"allowedTiers");w(this,"defaultResponseGranularity");w(this,"dataGranularity");w(this,"isRelative");w(this,"_startCustom");w(this,"_endCustom");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}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(){const t=new Set,n=this.maximumTimeframeLength()/3600;return n<=6&&t.add("minutely"),n>=2&&n<=7*24&&t.add("hourly"),n>=2*24&&t.add("daily"),n>=2*24*14&&t.add("weekly"),t}cacheKey(){return this.key!=="custom"?this.key:`${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`}v4Query(t){return this.key==="custom"?{type:"absolute",start:this.rawStart(),end:this.rawEnd(),tz:t}:{type:"relative",time_range:this.key,tz:t}}tzAdjustedDate(t){if(!t)return new Date;const n=tr(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return Ae(n,t)}}class ur extends _{rawStart(t){let n=S(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=x(n,t)),n}maximumTimeframeLength(){return 60*60*24*7}}class cr extends _{rawStart(t){let n=N(this.tzAdjustedDate(t));return t&&(n=x(n,t)),n}maximumTimeframeLength(){return 60*60*24*31}}class lr extends _{rawEnd(t){let n=S(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=x(n,t)),n}rawStart(t){const n=this.tzAdjustedDate(t);let r=S(n.setDate(n.getDate()-7),{weekStartsOn:1});return t&&(r=x(r,t)),r}}class dr extends _{rawEnd(t){let n=N(this.tzAdjustedDate(t));return t&&(n=x(n,t)),n}rawStart(t){let n=N(Ye(this.tzAdjustedDate(t),1));return t&&(n=x(n,t)),n}}const Ze=new Map([[m.FIFTEEN_MIN,new _({key:m.FIFTEEN_MIN,display:"Last 15 minutes",timeframeText:"15 minutes",timeframeLength:()=>60*15,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.ONE_HOUR,new _({key:m.ONE_HOUR,display:"Last hour",timeframeText:"One hour",timeframeLength:()=>60*60*1,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.SIX_HOUR,new _({key:m.SIX_HOUR,display:"Last 6 hours",timeframeText:"6 hours",timeframeLength:()=>60*60*6,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.TWELVE_HOUR,new _({key:m.TWELVE_HOUR,display:"Last 12 hours",timeframeText:"12 hours",timeframeLength:()=>60*60*12,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.ONE_DAY,new _({key:m.ONE_DAY,display:"Last 24 hours",timeframeText:"24 hours",timeframeLength:()=>60*60*24,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,allowedTiers:["free","trial","plus","enterprise"]})],[m.SEVEN_DAY,new _({key:m.SEVEN_DAY,display:"Last 7 days",timeframeText:"7 days",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,allowedTiers:["trial","plus","enterprise"]})],[m.THIRTY_DAY,new _({key:m.THIRTY_DAY,display:"Last 30 days",timeframeText:"30 days",timeframeLength:()=>60*60*24*30,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,allowedTiers:["trial","plus","enterprise"]})],[m.CURRENT_WEEK,new ur({key:m.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=S(new Date,{weekStartsOn:1});return(G(Te(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[m.CURRENT_MONTH,new cr({key:m.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=N(new Date);return(G(Te(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[m.PREVIOUS_WEEK,new lr({key:m.PREVIOUS_WEEK,display:"Previous week",timeframeText:"Week",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[m.PREVIOUS_MONTH,new dr({key:m.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=N(new Date),n=N(Ye(new Date,1));return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(e=Be(t,n)),60*60*24*pn(new Date().setMonth(new Date().getMonth()-1))+vn(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function fr(e){const t=new Date(e.start),n=new Date(e.end),r=(n.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&Ze.get(e.timePeriodsKey)||new _({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:n,timeframeLength:()=>r,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function mr(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function hr(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function Be(e,t){return En(e.getTimezoneOffset()-t.getTimezoneOffset())}class V{constructor(t){w(this,"_seed");this._seed=t}next(t,n){const r=Math.sin(this._seed++)*1e4,a=r-Math.floor(r);return Math.floor(a*(n-t+1))+t}}const gr=(e,t)=>{const n=re(10,1e4),r=new V(n),a=Date.now()-6*60*60*1e3,i=Date.now(),s=[];let u=0;for(let l=a;l<=i;l+=60*60*1e3)if(t)for(const f in t)t[f].forEach(p=>{u+=r.next(50,500);const O={[f]:p,[e.name]:u},v={version:"1.0",timestamp:new Date(l).toISOString(),event:O};s.push(v)});else{u+=r.next(50,500);const f={version:"1.0",timestamp:new Date(l).toISOString(),event:{[e.name]:u}};s.push(f)}const c={};if(t)for(const l in t)c[l]={},t[l].forEach(f=>{c[l][f]={name:f,deleted:!1}});const d={start_ms:a,end_ms:i,query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:c};return{data:s,meta:d}},yr=e=>{const t=re(10,1e4),n=new V(t),r=Date.now()-6*60*60*1e3,a=Date.now(),i=[],s={};e.forEach(c=>{s[c.name]=0});for(let c=r;c<=a;c+=60*60*1e3){const d={};e.forEach(f=>{s[f.name]+=n.next(50,500),d[f.name]=s[f.name]});const l={version:"1.0",timestamp:new Date(c).toISOString(),event:d};i.push(l)}const u={start_ms:r,end_ms:a,query_id:"12345",metric_names:e.map(c=>c.name),metric_units:e.reduce((c,d)=>(c[d.name]=d.unit,c),{}),granularity_ms:60*60*1e3,display:{}};return{data:i,meta:u}},wr=(e,t)=>{const n=Math.floor(Math.random()*9991)+10,r=new V(n),a=Date.now()-6*60*60*1e3,i=Date.now(),s=new Date((a+i)/2).toISOString(),u=[];if(t){const l=Object.keys(t),f=Object.values(t),p=(O,v)=>{if(v===l.length){e.forEach(P=>{O[P.name]=r.next(50,500)}),u.push({version:"1.0",timestamp:new Date().toISOString(),event:{...O}});return}f[v].forEach(P=>{p({...O,[l[v]]:P},v+1)})};p({},0)}else{const l={};e.forEach(f=>{l[f.name]=r.next(50,500)}),u.push({version:"1.0",timestamp:s,event:l})}const c={};if(t)for(const l in t)c[l]={},t[l].forEach(f=>{c[l][f]={name:f,deleted:!1}});const d={start_ms:a,end_ms:i,query_id:"12345",metric_names:e.map(l=>l.name),metric_units:e.reduce((l,f)=>(l[f.name]=f.unit,l),{}),truncated:!1,limit:50,display:c,granularity_ms:i-a};return{data:u,meta:d}};function re(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}o.DeltaQueryTime=or,o.Granularities=H,o.REFRESH_INTERVAL_MS=3e4,o.SeededRandom=V,o.TimePeriods=Ze,o.Timeframe=_,o.TimeframeKeys=m,o.TimeseriesQueryTime=sr,o.UnaryQueryTime=Qe,o.aiExploreAggregations=ct,o.basicExploreAggregations=oe,o.ceilToNearestTimeGrain=ne,o.datasourceToFilterableDimensions=ge,o.datePickerSelectionToTimeframe=fr,o.dstOffsetHours=Be,o.exploreAggregations=ut,o.exploreFilterTypesV2=tt,o.filterableAiExploreDimensions=de,o.filterableBasicExploreDimensions=se,o.filterableExploreDimensions=ce,o.filterableRequestDimensions=lt,o.filterableRequestMetrics=ft,o.filterableRequestWildcardDimensions=dt,o.floorToNearestTimeGrain=je,o.formatISOTimeWithTZ=nr,o.formatTime=te,o.formatTimeRange=rr,o.generateCrossSectionalData=wr,o.generateMultipleMetricTimeSeriesData=yr,o.generateSingleMetricTimeSeriesData=gr,o.granularitiesToOptions=ar,o.granularityMsToQuery=Xe,o.granularityValues=ie,o.msToGranularity=ir,o.queryDatasources=ht,o.queryableAiExploreDimensions=le,o.queryableBasicExploreDimensions=X,o.queryableExploreDimensions=ue,o.queryableRequestDimensions=fe,o.queryableRequestMetrics=he,o.queryableRequestWildcardDimensions=me,o.rand=re,o.relativeTimeRangeValuesRequestV2=mt,o.relativeTimeRangeValuesV4=ot,o.reportChartTypes=et,o.requestFilterTypeEmptyV2=at,o.requestFilterTypeEqualsV2=nt,o.requestFilterTypeMetricV2=rt,o.requestFilterTypeWildcardV2=it,o.stripUnknownFilters=gt,o.timeRangeTypeV2=st,o.timeframeToDatepickerSelection=mr,o.timeframeToDatepickerTimeperiod=hr,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=vitals-utilities.umd.js.map
|