@kong-ui-public/analytics-utilities 10.0.0 → 10.0.1-pr.2274.64bd34f41.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.
@@ -1723,8 +1723,6 @@ const A = {
1723
1723
  return g(i, t.length);
1724
1724
  }
1725
1725
  }, K = {
1726
- am: "am",
1727
- pm: "pm",
1728
1726
  midnight: "midnight",
1729
1727
  noon: "noon",
1730
1728
  morning: "morning",
@@ -2358,7 +2356,7 @@ function ns(e) {
2358
2356
  return Math.trunc(t);
2359
2357
  }
2360
2358
  function Ar(e, t, r) {
2361
- return Xa(e, -t, r);
2359
+ return Xa(e, -1, r);
2362
2360
  }
2363
2361
  function Kt(e, t, r) {
2364
2362
  const n = ts(), i = ss(e, r.timeZone, r.locale ?? n.locale);
@@ -2453,7 +2451,6 @@ function st(e, t, r, n, i, o, c) {
2453
2451
  return d.setUTCFullYear(e, t, r), d.setUTCHours(n, i, o, c), d;
2454
2452
  }
2455
2453
  const er = 36e5, hs = 6e4, ze = {
2456
- timezone: /([Z+-].*)$/,
2457
2454
  timezoneZ: /^(Z)$/,
2458
2455
  timezoneHH: /^([+-]\d{2})$/,
2459
2456
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
@@ -2600,7 +2597,6 @@ function ar(e) {
2600
2597
  const Gr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ve = 36e5, ir = 6e4, bs = 2, M = {
2601
2598
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
2602
2599
  datePattern: /^([0-9W+-]+)(.*)/,
2603
- plainTime: /:/,
2604
2600
  // year tokens
2605
2601
  YY: /^(\d{2})$/,
2606
2602
  YYY: [
@@ -3504,7 +3500,7 @@ class Fs extends C {
3504
3500
  return t && (r = te(r, t)), r;
3505
3501
  }
3506
3502
  rawStart(t) {
3507
- let r = ee(Ar(this.tzAdjustedDate(t), 1));
3503
+ let r = ee(Ar(this.tzAdjustedDate(t)));
3508
3504
  return t && (r = te(r, t)), r;
3509
3505
  }
3510
3506
  }
@@ -3671,7 +3667,7 @@ const Ws = /* @__PURE__ */ new Map([
3671
3667
  timeframeText: "Month",
3672
3668
  timeframeLength: () => {
3673
3669
  let e = 0;
3674
- const t = ee(/* @__PURE__ */ new Date()), r = ee(Ar(/* @__PURE__ */ new Date(), 1));
3670
+ const t = ee(/* @__PURE__ */ new Date()), r = ee(Ar(/* @__PURE__ */ new Date()));
3675
3671
  return t.getTimezoneOffset() !== r.getTimezoneOffset() && (e = Ls(t, r)), 60 * 60 * 24 * es((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + rs(e);
3676
3672
  },
3677
3673
  defaultResponseGranularity: "daily",