@evercam/ui 0.0.55-beta.2 → 0.0.55-beta.4

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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import He from "vue";
2
- import * as w from "d3";
2
+ import * as I from "d3";
3
3
  import Ve from "moment-timezone";
4
4
  var Y = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), qe = /* @__PURE__ */ ((s) => (s.bars = "bars", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(qe || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
5
5
  const ma = He.extend({
@@ -2308,7 +2308,7 @@ var Ji = {}, Zr = {}, ei = {};
2308
2308
  function P(F) {
2309
2309
  return D.has(F);
2310
2310
  }
2311
- let I = /* @__PURE__ */ new Set([
2311
+ let w = /* @__PURE__ */ new Set([
2312
2312
  "xx-small",
2313
2313
  "x-small",
2314
2314
  "small",
@@ -2319,7 +2319,7 @@ var Ji = {}, Zr = {}, ei = {};
2319
2319
  "xxx-large"
2320
2320
  ]);
2321
2321
  function $(F) {
2322
- return I.has(F);
2322
+ return w.has(F);
2323
2323
  }
2324
2324
  let O = /* @__PURE__ */ new Set([
2325
2325
  "larger",
@@ -2411,14 +2411,14 @@ var Qr = {};
2411
2411
  if (P !== void 0)
2412
2412
  return (0, n.default)(P);
2413
2413
  if (f(C)) {
2414
- let I = u(C, D);
2415
- return I === void 0 ? void 0 : (0, n.default)(I);
2414
+ let w = u(C, D);
2415
+ return w === void 0 ? void 0 : (0, n.default)(w);
2416
2416
  }
2417
2417
  }
2418
2418
  function d(C, b = {}, { validate: D = () => !0 } = {}) {
2419
2419
  var P;
2420
- let I = (P = b.values) === null || P === void 0 ? void 0 : P[C];
2421
- return I !== void 0 ? I : b.supportsNegativeValues && C.startsWith("-") ? h(C.slice(1), b.values, D) : u(C, D);
2420
+ let w = (P = b.values) === null || P === void 0 ? void 0 : P[C];
2421
+ return w !== void 0 ? w : b.supportsNegativeValues && C.startsWith("-") ? h(C.slice(1), b.values, D) : u(C, D);
2422
2422
  }
2423
2423
  function f(C) {
2424
2424
  return C.startsWith("[") && C.endsWith("]");
@@ -2449,8 +2449,8 @@ var Qr = {};
2449
2449
  function v(C, b = {}, { tailwindConfig: D = {} } = {}) {
2450
2450
  var P;
2451
2451
  if (((P = b.values) === null || P === void 0 ? void 0 : P[C]) !== void 0) {
2452
- var I;
2453
- return g((I = b.values) === null || I === void 0 ? void 0 : I[C]);
2452
+ var w;
2453
+ return g((w = b.values) === null || w === void 0 ? void 0 : w[C]);
2454
2454
  }
2455
2455
  let [$, O] = m(C);
2456
2456
  if (O !== void 0) {
@@ -2525,14 +2525,14 @@ var Qr = {};
2525
2525
  null
2526
2526
  ];
2527
2527
  }
2528
- let I = B(C, b, D, P);
2529
- for (let $ of I)
2528
+ let w = B(C, b, D, P);
2529
+ for (let $ of w)
2530
2530
  return $;
2531
2531
  return [];
2532
2532
  }
2533
2533
  function* B(C, b, D, P) {
2534
- let I = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
2535
- if (I && D.modifiers != null && (D.modifiers === "any" || typeof D.modifiers == "object" && (O && f(O) || O in D.modifiers)) || ($ = b, O = void 0), O !== void 0 && $ === "" && ($ = "DEFAULT"), O !== void 0 && typeof D.modifiers == "object") {
2534
+ let w = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
2535
+ if (w && D.modifiers != null && (D.modifiers === "any" || typeof D.modifiers == "object" && (O && f(O) || O in D.modifiers)) || ($ = b, O = void 0), O !== void 0 && $ === "" && ($ = "DEFAULT"), O !== void 0 && typeof D.modifiers == "object") {
2536
2536
  var F, V;
2537
2537
  let H = (V = (F = D.modifiers) === null || F === void 0 ? void 0 : F[O]) !== null && V !== void 0 ? V : null;
2538
2538
  H !== null ? O = H : f(O) && (O = y(O));
@@ -2581,9 +2581,9 @@ var Jr = {};
2581
2581
  function m(P) {
2582
2582
  return typeof P == "function";
2583
2583
  }
2584
- function g(P, ...I) {
2585
- let $ = I.pop();
2586
- for (let O of I)
2584
+ function g(P, ...w) {
2585
+ let $ = w.pop();
2586
+ for (let O of w)
2587
2587
  for (let U in O) {
2588
2588
  let F = $(P[U], O[U]);
2589
2589
  F === void 0 ? (0, l.default)(P[U]) && (0, l.default)(O[U]) ? P[U] = g({}, P[U], O[U], $) : P[U] = O[U] : P[U] = F;
@@ -2593,23 +2593,23 @@ var Jr = {};
2593
2593
  const y = {
2594
2594
  colors: r.default,
2595
2595
  negative(P) {
2596
- return Object.keys(P).filter((I) => P[I] !== "0").reduce((I, $) => {
2596
+ return Object.keys(P).filter((w) => P[w] !== "0").reduce((w, $) => {
2597
2597
  let O = (0, e.default)(P[$]);
2598
- return O !== void 0 && (I[`-${$}`] = O), I;
2598
+ return O !== void 0 && (w[`-${$}`] = O), w;
2599
2599
  }, {});
2600
2600
  },
2601
2601
  breakpoints(P) {
2602
- return Object.keys(P).filter((I) => typeof P[I] == "string").reduce((I, $) => ({
2603
- ...I,
2602
+ return Object.keys(P).filter((w) => typeof P[w] == "string").reduce((w, $) => ({
2603
+ ...w,
2604
2604
  [`screen-${$}`]: P[$]
2605
2605
  }), {});
2606
2606
  }
2607
2607
  };
2608
- function v(P, ...I) {
2609
- return m(P) ? P(...I) : P;
2608
+ function v(P, ...w) {
2609
+ return m(P) ? P(...w) : P;
2610
2610
  }
2611
2611
  function T(P) {
2612
- return P.reduce((I, { extend: $ }) => g(I, $, (O, U) => O === void 0 ? [
2612
+ return P.reduce((w, { extend: $ }) => g(w, $, (O, U) => O === void 0 ? [
2613
2613
  U
2614
2614
  ] : Array.isArray(O) ? [
2615
2615
  U,
@@ -2621,32 +2621,32 @@ var Jr = {};
2621
2621
  }
2622
2622
  function x(P) {
2623
2623
  return {
2624
- ...P.reduce((I, $) => (0, n.defaults)(I, $), {}),
2624
+ ...P.reduce((w, $) => (0, n.defaults)(w, $), {}),
2625
2625
  // In order to resolve n config objects, we combine all of their `extend` properties
2626
2626
  // into arrays instead of objects so they aren't overridden.
2627
2627
  extend: T(P)
2628
2628
  };
2629
2629
  }
2630
- function L(P, I) {
2630
+ function L(P, w) {
2631
2631
  if (Array.isArray(P) && (0, l.default)(P[0]))
2632
- return P.concat(I);
2633
- if (Array.isArray(I) && (0, l.default)(I[0]) && (0, l.default)(P))
2632
+ return P.concat(w);
2633
+ if (Array.isArray(w) && (0, l.default)(w[0]) && (0, l.default)(P))
2634
2634
  return [
2635
2635
  P,
2636
- ...I
2636
+ ...w
2637
2637
  ];
2638
- if (Array.isArray(I))
2639
- return I;
2638
+ if (Array.isArray(w))
2639
+ return w;
2640
2640
  }
2641
- function E({ extend: P, ...I }) {
2642
- return g(I, P, ($, O) => !m($) && !O.some(m) ? g({}, $, ...O, L) : (U, F) => g({}, ...[
2641
+ function E({ extend: P, ...w }) {
2642
+ return g(w, P, ($, O) => !m($) && !O.some(m) ? g({}, $, ...O, L) : (U, F) => g({}, ...[
2643
2643
  $,
2644
2644
  ...O
2645
2645
  ].map((V) => v(V, U, F)), L));
2646
2646
  }
2647
2647
  function* k(P) {
2648
- let I = (0, a.toPath)(P);
2649
- if (I.length === 0 || (yield I, Array.isArray(P)))
2648
+ let w = (0, a.toPath)(P);
2649
+ if (w.length === 0 || (yield w, Array.isArray(P)))
2650
2650
  return;
2651
2651
  let $ = /^(.*?)\s*\/\s*([^/]+)$/, O = P.match($);
2652
2652
  if (O !== null) {
@@ -2655,11 +2655,11 @@ var Jr = {};
2655
2655
  }
2656
2656
  }
2657
2657
  function R(P) {
2658
- const I = ($, O) => {
2658
+ const w = ($, O) => {
2659
2659
  for (const U of k($)) {
2660
2660
  let F = 0, V = P;
2661
2661
  for (; V != null && F < U.length; )
2662
- V = V[U[F++]], V = m(V) && (U.alpha === void 0 || F <= U.length - 1) ? V(I, y) : V;
2662
+ V = V[U[F++]], V = m(V) && (U.alpha === void 0 || F <= U.length - 1) ? V(w, y) : V;
2663
2663
  if (V !== void 0) {
2664
2664
  if (U.alpha !== void 0) {
2665
2665
  let H = (0, u.parseColorFormat)(V);
@@ -2670,16 +2670,16 @@ var Jr = {};
2670
2670
  }
2671
2671
  return O;
2672
2672
  };
2673
- return Object.assign(I, {
2674
- theme: I,
2673
+ return Object.assign(w, {
2674
+ theme: w,
2675
2675
  ...y
2676
- }), Object.keys(P).reduce(($, O) => ($[O] = m(P[O]) ? P[O](I, y) : P[O], $), {});
2676
+ }), Object.keys(P).reduce(($, O) => ($[O] = m(P[O]) ? P[O](w, y) : P[O], $), {});
2677
2677
  }
2678
2678
  function B(P) {
2679
- let I = [];
2679
+ let w = [];
2680
2680
  return P.forEach(($) => {
2681
- I = [
2682
- ...I,
2681
+ w = [
2682
+ ...w,
2683
2683
  $
2684
2684
  ];
2685
2685
  var O;
@@ -2687,14 +2687,14 @@ var Jr = {};
2687
2687
  U.length !== 0 && U.forEach((F) => {
2688
2688
  F.__isOptionsFunction && (F = F());
2689
2689
  var V;
2690
- I = [
2691
- ...I,
2690
+ w = [
2691
+ ...w,
2692
2692
  ...B([
2693
2693
  (V = F == null ? void 0 : F.config) !== null && V !== void 0 ? V : {}
2694
2694
  ])
2695
2695
  ];
2696
2696
  });
2697
- }), I;
2697
+ }), w;
2698
2698
  }
2699
2699
  function C(P) {
2700
2700
  return [
@@ -2712,7 +2712,7 @@ var Jr = {};
2712
2712
  ], []);
2713
2713
  }
2714
2714
  function D(P) {
2715
- let I = [
2715
+ let w = [
2716
2716
  ...B(P),
2717
2717
  {
2718
2718
  prefix: "",
@@ -2722,10 +2722,10 @@ var Jr = {};
2722
2722
  ];
2723
2723
  var $, O;
2724
2724
  return (0, o.normalizeConfig)((0, n.defaults)({
2725
- theme: R(E(x(I.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
2726
- corePlugins: C(I.map((U) => U.corePlugins)),
2725
+ theme: R(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
2726
+ corePlugins: C(w.map((U) => U.corePlugins)),
2727
2727
  plugins: b(P.map((U) => (O = U == null ? void 0 : U.plugins) !== null && O !== void 0 ? O : []))
2728
- }, ...I));
2728
+ }, ...w));
2729
2729
  }
2730
2730
  })(Br);
2731
2731
  var en = {}, Aa = {
@@ -5426,7 +5426,7 @@ function As(s, e) {
5426
5426
  m === n && (y && (R += 8), v && (R += 4), T && (x = z(f, R), R += 4), L && (E = z(f, R), R += 4), k && (R += 4), e.type === "video" && (a = Bo(e.codec)), X(h, ["trun"]).map((B) => {
5427
5427
  const C = B[0], b = z(B, 0) & 16777215, D = (b & 1) !== 0;
5428
5428
  let P = 0;
5429
- const I = (b & 4) !== 0, $ = (b & 256) !== 0;
5429
+ const w = (b & 4) !== 0, $ = (b & 256) !== 0;
5430
5430
  let O = 0;
5431
5431
  const U = (b & 512) !== 0;
5432
5432
  let F = 0;
@@ -5434,7 +5434,7 @@ function As(s, e) {
5434
5434
  let M = 0;
5435
5435
  const Q = z(B, 4);
5436
5436
  let Z = 8;
5437
- D && (P = z(B, Z), Z += 4), I && (Z += 4);
5437
+ D && (P = z(B, Z), Z += 4), w && (Z += 4);
5438
5438
  let ee = P + c;
5439
5439
  for (let ae = 0; ae < Q; ae++) {
5440
5440
  if ($ ? (O = z(B, Z), Z += 4) : O = x, U ? (F = z(B, Z), Z += 4) : F = E, V && (Z += 4), H && (C === 0 ? M = z(B, Z) : M = mn(B, Z), Z += 4), e.type === te.VIDEO) {
@@ -6084,16 +6084,16 @@ class ke {
6084
6084
  u = o.startSN = parseInt(D);
6085
6085
  break;
6086
6086
  case "SKIP": {
6087
- const I = new ne(D);
6088
- ve(o, I, ["RECENTLY-REMOVED-DATERANGES"]);
6089
- const $ = I.decimalInteger("SKIPPED-SEGMENTS");
6087
+ const w = new ne(D);
6088
+ ve(o, w, ["RECENTLY-REMOVED-DATERANGES"]);
6089
+ const $ = w.decimalInteger("SKIPPED-SEGMENTS");
6090
6090
  if (W($)) {
6091
6091
  o.skippedSegments = $;
6092
6092
  for (let U = $; U--; )
6093
6093
  l.unshift(null);
6094
6094
  u += $;
6095
6095
  }
6096
- const O = I.enumeratedString("RECENTLY-REMOVED-DATERANGES");
6096
+ const O = w.enumeratedString("RECENTLY-REMOVED-DATERANGES");
6097
6097
  O && (o.recentlyRemovedDateranges = O.split(" "));
6098
6098
  break;
6099
6099
  }
@@ -6122,16 +6122,16 @@ class ke {
6122
6122
  g.tagList.push([b, D]);
6123
6123
  break;
6124
6124
  case "DATERANGE": {
6125
- const I = new ne(D);
6126
- ve(o, I, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), ve(o, I, I.clientAttrs);
6127
- const $ = new nn(I, o.dateRanges[I.ID]);
6125
+ const w = new ne(D);
6126
+ ve(o, w, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), ve(o, w, w.clientAttrs);
6127
+ const $ = new nn(w, o.dateRanges[w.ID]);
6128
6128
  $.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${D}"`), g.tagList.push(["EXT-X-DATERANGE", D]);
6129
6129
  break;
6130
6130
  }
6131
6131
  case "DEFINE": {
6132
6132
  {
6133
- const I = new ne(D);
6134
- ve(o, I, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in I ? Wo(o, I, a) : Rs(o, I, t);
6133
+ const w = new ne(D);
6134
+ ve(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? Wo(o, w, a) : Rs(o, w, t);
6135
6135
  }
6136
6136
  break;
6137
6137
  }
@@ -6139,13 +6139,13 @@ class ke {
6139
6139
  f = parseInt(D);
6140
6140
  break;
6141
6141
  case "KEY": {
6142
- const I = ks(D, t, o);
6143
- if (I.isSupported()) {
6144
- if (I.method === "NONE") {
6142
+ const w = ks(D, t, o);
6143
+ if (w.isSupported()) {
6144
+ if (w.method === "NONE") {
6145
6145
  T = void 0;
6146
6146
  break;
6147
6147
  }
6148
- T || (T = {}), T[I.keyFormat] && (T = oe({}, T)), T[I.keyFormat] = I;
6148
+ T || (T = {}), T[w.keyFormat] && (T = oe({}, T)), T[w.keyFormat] = w;
6149
6149
  } else
6150
6150
  S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${D}"`);
6151
6151
  break;
@@ -6154,10 +6154,10 @@ class ke {
6154
6154
  o.startTimeOffset = Ps(D);
6155
6155
  break;
6156
6156
  case "MAP": {
6157
- const I = new ne(D);
6158
- if (ve(o, I, ["BYTERANGE", "URI"]), g.duration) {
6157
+ const w = new ne(D);
6158
+ if (ve(o, w, ["BYTERANGE", "URI"]), g.duration) {
6159
6159
  const $ = new ai(r, t);
6160
- Ms($, I, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
6160
+ Ms($, w, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
6161
6161
  } else {
6162
6162
  const $ = g.byteRangeEndOffset;
6163
6163
  if ($) {
@@ -6165,37 +6165,37 @@ class ke {
6165
6165
  E = `${$ - O}@${O}`;
6166
6166
  } else
6167
6167
  E = null;
6168
- Ms(g, I, i, T), c = g, L = !0;
6168
+ Ms(g, w, i, T), c = g, L = !0;
6169
6169
  }
6170
6170
  break;
6171
6171
  }
6172
6172
  case "SERVER-CONTROL": {
6173
- const I = new ne(D);
6174
- o.canBlockReload = I.bool("CAN-BLOCK-RELOAD"), o.canSkipUntil = I.optionalFloat("CAN-SKIP-UNTIL", 0), o.canSkipDateRanges = o.canSkipUntil > 0 && I.bool("CAN-SKIP-DATERANGES"), o.partHoldBack = I.optionalFloat("PART-HOLD-BACK", 0), o.holdBack = I.optionalFloat("HOLD-BACK", 0);
6173
+ const w = new ne(D);
6174
+ o.canBlockReload = w.bool("CAN-BLOCK-RELOAD"), o.canSkipUntil = w.optionalFloat("CAN-SKIP-UNTIL", 0), o.canSkipDateRanges = o.canSkipUntil > 0 && w.bool("CAN-SKIP-DATERANGES"), o.partHoldBack = w.optionalFloat("PART-HOLD-BACK", 0), o.holdBack = w.optionalFloat("HOLD-BACK", 0);
6175
6175
  break;
6176
6176
  }
6177
6177
  case "PART-INF": {
6178
- const I = new ne(D);
6179
- o.partTarget = I.decimalFloatingPoint("PART-TARGET");
6178
+ const w = new ne(D);
6179
+ o.partTarget = w.decimalFloatingPoint("PART-TARGET");
6180
6180
  break;
6181
6181
  }
6182
6182
  case "PART": {
6183
- let I = o.partList;
6184
- I || (I = o.partList = []);
6185
- const $ = h > 0 ? I[I.length - 1] : void 0, O = h++, U = new ne(D);
6183
+ let w = o.partList;
6184
+ w || (w = o.partList = []);
6185
+ const $ = h > 0 ? w[w.length - 1] : void 0, O = h++, U = new ne(D);
6186
6186
  ve(o, U, ["BYTERANGE", "URI"]);
6187
6187
  const F = new uo(U, g, t, O, $);
6188
- I.push(F), g.duration += F.duration;
6188
+ w.push(F), g.duration += F.duration;
6189
6189
  break;
6190
6190
  }
6191
6191
  case "PRELOAD-HINT": {
6192
- const I = new ne(D);
6193
- ve(o, I, ["URI"]), o.preloadHint = I;
6192
+ const w = new ne(D);
6193
+ ve(o, w, ["URI"]), o.preloadHint = w;
6194
6194
  break;
6195
6195
  }
6196
6196
  case "RENDITION-REPORT": {
6197
- const I = new ne(D);
6198
- ve(o, I, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(I);
6197
+ const w = new ne(D);
6198
+ ve(o, w, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(w);
6199
6199
  break;
6200
6200
  }
6201
6201
  default:
@@ -8177,8 +8177,8 @@ class kl {
8177
8177
  const C = R ? R * 8 : T;
8178
8178
  let b = Number.POSITIVE_INFINITY, D;
8179
8179
  for (D = t.level - 1; D > h; D--) {
8180
- const I = x[D].maxBitrate;
8181
- if (b = this.getTimeToLoadFrag(f / 1e3, C, c * I, !x[D].details), b < g)
8180
+ const w = x[D].maxBitrate;
8181
+ if (b = this.getTimeToLoadFrag(f / 1e3, C, c * w, !x[D].details), b < g)
8182
8182
  break;
8183
8183
  }
8184
8184
  if (b >= B || b > c * 10)
@@ -8416,7 +8416,7 @@ class kl {
8416
8416
  E = F, k = Q ? V[V.length - 1] : V[0], R = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
8417
8417
  } else
8418
8418
  E = T == null ? void 0 : T.codecSet, k = T == null ? void 0 : T.videoRange;
8419
- const D = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, I = [];
8419
+ const D = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, w = [];
8420
8420
  for (let O = i; O >= t; O--) {
8421
8421
  var $;
8422
8422
  const U = m[O], F = O > h;
@@ -8433,7 +8433,7 @@ class kl {
8433
8433
  })) : U.supportedResult = Dn;
8434
8434
  }
8435
8435
  if (E && U.codecSet !== E || k && U.videoRange !== k || F && R > U.frameRate || !F && R > 0 && R < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
8436
- I.push(O);
8436
+ w.push(O);
8437
8437
  continue;
8438
8438
  }
8439
8439
  const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) || D;
@@ -8449,7 +8449,7 @@ class kl {
8449
8449
  (Z <= P || !W(Z) || x && !this.bitrateTestDelay || Z < c)
8450
8450
  ) {
8451
8451
  const ae = this.forcedAutoLevel;
8452
- return O !== y && (ae === -1 || ae !== y) && (I.length && S.trace(`[abr] Skipped level(s) ${I.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${m[I[0]].codecs}" ${m[I[0]].videoRange}; not compatible with "${T.codecs}" ${k}`), S.info(`[abr] switch candidate:${h}->${O} adjustedbw(${Math.round(M)})-bitrate=${Math.round(M - Q)} ttfb:${P.toFixed(1)} avgDuration:${H.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${Z.toFixed(1)} firstSelection:${L} codecSet:${E} videoRange:${k} hls.loadLevel:${y}`)), L && (this.firstSelection = O), O;
8452
+ return O !== y && (ae === -1 || ae !== y) && (w.length && S.trace(`[abr] Skipped level(s) ${w.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${m[w[0]].codecs}" ${m[w[0]].videoRange}; not compatible with "${T.codecs}" ${k}`), S.info(`[abr] switch candidate:${h}->${O} adjustedbw(${Math.round(M)})-bitrate=${Math.round(M - Q)} ttfb:${P.toFixed(1)} avgDuration:${H.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${Z.toFixed(1)} firstSelection:${L} codecSet:${E} videoRange:${k} hls.loadLevel:${y}`)), L && (this.firstSelection = O), O;
8453
8453
  }
8454
8454
  }
8455
8455
  return -1;
@@ -9238,12 +9238,12 @@ class Kl {
9238
9238
  const r = this.keySize + 6, n = this.invKeySchedule, a = this.invSBox, o = this.invSubMix, l = o[0], c = o[1], u = o[2], h = o[3], d = this.uint8ArrayToUint32Array_(i);
9239
9239
  let f = d[0], m = d[1], g = d[2], y = d[3];
9240
9240
  const v = new Int32Array(e), T = new Int32Array(v.length);
9241
- let x, L, E, k, R, B, C, b, D, P, I, $, O, U;
9241
+ let x, L, E, k, R, B, C, b, D, P, w, $, O, U;
9242
9242
  const F = this.networkToHostOrderSwap;
9243
9243
  for (; t < v.length; ) {
9244
- for (D = F(v[t]), P = F(v[t + 1]), I = F(v[t + 2]), $ = F(v[t + 3]), R = D ^ n[0], B = $ ^ n[1], C = I ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
9244
+ for (D = F(v[t]), P = F(v[t + 1]), w = F(v[t + 2]), $ = F(v[t + 3]), R = D ^ n[0], B = $ ^ n[1], C = w ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
9245
9245
  x = l[R >>> 24] ^ c[B >> 16 & 255] ^ u[C >> 8 & 255] ^ h[b & 255] ^ n[O], L = l[B >>> 24] ^ c[C >> 16 & 255] ^ u[b >> 8 & 255] ^ h[R & 255] ^ n[O + 1], E = l[C >>> 24] ^ c[b >> 16 & 255] ^ u[R >> 8 & 255] ^ h[B & 255] ^ n[O + 2], k = l[b >>> 24] ^ c[R >> 16 & 255] ^ u[B >> 8 & 255] ^ h[C & 255] ^ n[O + 3], R = x, B = L, C = E, b = k, O = O + 4;
9246
- x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[C >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[C & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = D, m = P, g = I, y = $, t = t + 4;
9246
+ x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[C >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[C & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = D, m = P, g = w, y = $, t = t + 4;
9247
9247
  }
9248
9248
  return T.buffer;
9249
9249
  }
@@ -12549,12 +12549,12 @@ class Mt {
12549
12549
  } else
12550
12550
  h = this.generateIS(e, t, n, a);
12551
12551
  const D = this.isVideoContiguous;
12552
- let P = -1, I;
12552
+ let P = -1, w;
12553
12553
  if (E && (P = bc(t.samples), !D && this.config.forceKeyFrameOnDiscontinuity))
12554
12554
  if (m = !0, P > 0) {
12555
12555
  S.warn(`[mp4-remuxer]: Dropped ${P} out of ${x} video samples due to a missing keyframe`);
12556
12556
  const $ = this.getVideoStartPts(t.samples);
12557
- t.samples = t.samples.slice(P), t.dropped += P, y += (t.samples[0].pts - $) / t.inputTimeScale, I = y;
12557
+ t.samples = t.samples.slice(P), t.dropped += P, y += (t.samples[0].pts - $) / t.inputTimeScale, w = y;
12558
12558
  } else
12559
12559
  P === -1 && (S.warn(`[mp4-remuxer]: No keyframe found out of ${x} video samples`), m = !1);
12560
12560
  if (this.ISGenerated) {
@@ -12569,7 +12569,7 @@ class Mt {
12569
12569
  }
12570
12570
  } else
12571
12571
  E && (c = this.remuxVideo(t, y, D, 0));
12572
- c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = I);
12572
+ c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = w);
12573
12573
  }
12574
12574
  }
12575
12575
  return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f = Vn(i, n, this._initPTS, this._initDTS)), r.samples.length && (d = Kn(r, n, this._initPTS))), {
@@ -12695,7 +12695,7 @@ class Mt {
12695
12695
  }
12696
12696
  const b = new DataView(C.buffer);
12697
12697
  b.setUint32(0, B), C.set(A.types.mdat, 4);
12698
- let D = !1, P = Number.POSITIVE_INFINITY, I = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_INFINITY;
12698
+ let D = !1, P = Number.POSITIVE_INFINITY, w = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_INFINITY;
12699
12699
  for (let H = 0; H < l; H++) {
12700
12700
  const M = a[H], Q = M.units;
12701
12701
  let Z = 0;
@@ -12715,7 +12715,7 @@ class Mt {
12715
12715
  d = fe;
12716
12716
  }
12717
12717
  const ae = Math.round(M.pts - M.dts);
12718
- P = Math.min(P, d), $ = Math.max($, d), I = Math.min(I, ee), O = Math.max(O, ee), o.push(new er(M.key, d, Z, ae));
12718
+ P = Math.min(P, d), $ = Math.max($, d), w = Math.min(w, ee), O = Math.max(O, ee), o.push(new er(M.key, d, Z, ae));
12719
12719
  }
12720
12720
  if (o.length) {
12721
12721
  if (st) {
@@ -12723,7 +12723,7 @@ class Mt {
12723
12723
  const H = o[0].flags;
12724
12724
  H.dependsOn = 2, H.isNonSync = 0;
12725
12725
  }
12726
- } else if (yi && O - I < $ - P && L / $ < 0.025 && o[0].cts === 0) {
12726
+ } else if (yi && O - w < $ - P && L / $ < 0.025 && o[0].cts === 0) {
12727
12727
  S.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");
12728
12728
  let H = f;
12729
12729
  for (let M = 0, Q = o.length; M < Q; M++) {
@@ -12837,13 +12837,13 @@ class Mt {
12837
12837
  samples: f
12838
12838
  }));
12839
12839
  e.samples = [];
12840
- const P = L / a, I = v / a, O = {
12840
+ const P = L / a, w = v / a, O = {
12841
12841
  data1: D,
12842
12842
  data2: k,
12843
12843
  startPTS: P,
12844
- endPTS: I,
12844
+ endPTS: w,
12845
12845
  startDTS: P,
12846
- endDTS: I,
12846
+ endDTS: w,
12847
12847
  type: "audio",
12848
12848
  hasAudio: !0,
12849
12849
  hasVideo: !1,
@@ -21463,7 +21463,7 @@ var Th = function() {
21463
21463
  null
21464
21464
  );
21465
21465
  const bh = Sh.exports, Zt = (s) => {
21466
- const e = w.utcFormat("%_d")(s), i = {
21466
+ const e = I.utcFormat("%_d")(s), i = {
21467
21467
  1: "st",
21468
21468
  2: "nd",
21469
21469
  3: "rd"
@@ -21471,23 +21471,23 @@ const bh = Sh.exports, Zt = (s) => {
21471
21471
  return `${e}${i}`;
21472
21472
  }, Ar = (s) => new Date(
21473
21473
  Date.UTC(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate() + 1)
21474
- ).getUTCDate() === 1 ? "" : w.utcFormat("%-d")(s), gt = (s) => ["0", " 0", "00"].includes(w.utcFormat("%H")(s)) ? "" : `${w.utcFormat("%H")(s)}h`, ze = (s) => {
21475
- const e = w.utcFormat("%H:%M")(s);
21474
+ ).getUTCDate() === 1 ? "" : I.utcFormat("%-d")(s), gt = (s) => ["0", " 0", "00"].includes(I.utcFormat("%H")(s)) ? "" : `${I.utcFormat("%H")(s)}h`, ze = (s) => {
21475
+ const e = I.utcFormat("%H:%M")(s);
21476
21476
  return e === "00:00" ? "" : e;
21477
- }, _i = (s) => w.utcFormat("%M:%S")(s), Lr = (s) => `${w.utcFormat("%Hh%Mm")(s)}`, Yi = (s) => {
21478
- const e = ze(s), t = Zt(s), i = w.utcFormat("%B")(s);
21477
+ }, _i = (s) => I.utcFormat("%M:%S")(s), Lr = (s) => `${I.utcFormat("%Hh%Mm")(s)}`, Yi = (s) => {
21478
+ const e = ze(s), t = Zt(s), i = I.utcFormat("%B")(s);
21479
21479
  return e || `${i} ${t}`;
21480
21480
  }, Ii = (s) => {
21481
- const e = ze(s), t = Number.parseInt(w.utcFormat("%H")(s)), i = Zt(s), r = w.utcFormat("%B")(s);
21481
+ const e = ze(s), t = Number.parseInt(I.utcFormat("%H")(s)), i = Zt(s), r = I.utcFormat("%B")(s);
21482
21482
  return e && t % 6 === 0 ? `${r} ${i} ${e}` : Yi(s);
21483
21483
  }, pt = (s) => (e) => {
21484
- const t = w.utcFormat("%H")(e);
21485
- return !(w.utcFormat("%M")(e) === "00" && Number.parseInt(t) % s === 0);
21484
+ const t = I.utcFormat("%H")(e);
21485
+ return !(I.utcFormat("%M")(e) === "00" && Number.parseInt(t) % s === 0);
21486
21486
  }, wi = (s) => (e) => {
21487
- const t = w.utcFormat("%M")(e);
21487
+ const t = I.utcFormat("%M")(e);
21488
21488
  return Number.parseInt(t) % s !== 0;
21489
21489
  }, Rr = (s) => (e) => {
21490
- const t = w.utcFormat("%M")(e), i = w.utcFormat("%S")(e);
21490
+ const t = I.utcFormat("%M")(e), i = I.utcFormat("%S")(e);
21491
21491
  return Number.parseInt(t) % s !== 0 && Number.parseInt(i) === 0;
21492
21492
  }, K = {
21493
21493
  _10_seconds: 25e-6,
@@ -21521,300 +21521,300 @@ const Ah = {
21521
21521
  [kt.overview]: [
21522
21522
  {
21523
21523
  precision: K._30_seconds,
21524
- interval: w.utcMinute.every(2),
21524
+ interval: I.utcMinute.every(2),
21525
21525
  format: Lr
21526
21526
  },
21527
21527
  {
21528
21528
  precision: K._1_minute,
21529
- interval: w.utcMinute.every(5),
21529
+ interval: I.utcMinute.every(5),
21530
21530
  format: Lr
21531
21531
  },
21532
21532
  {
21533
21533
  precision: K._2_minutes,
21534
- interval: w.utcMinute.every(10),
21534
+ interval: I.utcMinute.every(10),
21535
21535
  format: Yi
21536
21536
  },
21537
21537
  {
21538
21538
  precision: K._5_minutes,
21539
- interval: w.utcMinute.every(20),
21539
+ interval: I.utcMinute.every(20),
21540
21540
  format: Ii
21541
21541
  },
21542
21542
  {
21543
21543
  precision: K._15_minutes,
21544
- interval: w.utcHour,
21544
+ interval: I.utcHour,
21545
21545
  format: Ii
21546
21546
  },
21547
21547
  {
21548
21548
  precision: K._30_minutes,
21549
- interval: w.utcHour.every(2),
21549
+ interval: I.utcHour.every(2),
21550
21550
  format: Ii
21551
21551
  },
21552
21552
  {
21553
21553
  precision: K._2_hours,
21554
- interval: w.utcHour.every(6),
21554
+ interval: I.utcHour.every(6),
21555
21555
  format: (s) => {
21556
- const e = ze(s), t = Zt(s), i = w.utcFormat("%B")(s);
21556
+ const e = ze(s), t = Zt(s), i = I.utcFormat("%B")(s);
21557
21557
  return e || `${i} ${t}`;
21558
21558
  }
21559
21559
  },
21560
21560
  {
21561
21561
  precision: K._3_hours,
21562
- interval: w.utcHour.every(12),
21562
+ interval: I.utcHour.every(12),
21563
21563
  format: Yi
21564
21564
  },
21565
21565
  {
21566
21566
  precision: K._6_hours,
21567
- interval: w.utcHour.every(24),
21567
+ interval: I.utcHour.every(24),
21568
21568
  format: (s) => {
21569
21569
  const e = Zt(s);
21570
- return `${w.utcFormat("%b")(s)} ${e}`;
21570
+ return `${I.utcFormat("%b")(s)} ${e}`;
21571
21571
  }
21572
21572
  },
21573
21573
  {
21574
21574
  precision: K._2_days,
21575
- interval: w.utcMonth,
21575
+ interval: I.utcMonth,
21576
21576
  format: (s) => {
21577
21577
  const t = s.getUTCMonth() === 0 && s.getUTCDate() === 1 ? "%Y – %B" : "%B";
21578
- return w.utcFormat(t)(s);
21578
+ return I.utcFormat(t)(s);
21579
21579
  }
21580
21580
  },
21581
21581
  {
21582
21582
  precision: K._2_year,
21583
- interval: w.utcYear.every(2),
21583
+ interval: I.utcYear.every(2),
21584
21584
  format: "%Y"
21585
21585
  },
21586
21586
  {
21587
21587
  precision: K._5_years,
21588
- interval: w.utcYear.every(5),
21588
+ interval: I.utcYear.every(5),
21589
21589
  format: "%Y"
21590
21590
  },
21591
21591
  {
21592
21592
  precision: K._20_years,
21593
- interval: w.utcYear.every(20),
21593
+ interval: I.utcYear.every(20),
21594
21594
  format: "%Y"
21595
21595
  },
21596
21596
  {
21597
21597
  precision: K._75_years,
21598
- interval: w.utcYear.every(75),
21598
+ interval: I.utcYear.every(75),
21599
21599
  format: "%Y"
21600
21600
  },
21601
21601
  {
21602
21602
  precision: K._300_years,
21603
- interval: w.utcYear.every(300),
21603
+ interval: I.utcYear.every(300),
21604
21604
  format: "%Y"
21605
21605
  },
21606
21606
  {
21607
21607
  precision: K.infinity,
21608
- interval: w.utcMonth.every(12),
21608
+ interval: I.utcMonth.every(12),
21609
21609
  format: "%Y"
21610
21610
  }
21611
21611
  ],
21612
21612
  [kt.detailed]: [
21613
21613
  {
21614
21614
  precision: K._10_seconds,
21615
- interval: w.utcSecond.every(10),
21615
+ interval: I.utcSecond.every(10),
21616
21616
  format: _i
21617
21617
  },
21618
21618
  {
21619
21619
  precision: K._20_seconds,
21620
- interval: (Dr = w.utcSecond.every(20)) == null ? void 0 : Dr.filter(Rr(2)),
21620
+ interval: (Dr = I.utcSecond.every(20)) == null ? void 0 : Dr.filter(Rr(2)),
21621
21621
  format: _i
21622
21622
  },
21623
21623
  {
21624
21624
  precision: K._30_seconds,
21625
- interval: (_r = w.utcSecond.every(30)) == null ? void 0 : _r.filter(Rr(2)),
21625
+ interval: (_r = I.utcSecond.every(30)) == null ? void 0 : _r.filter(Rr(2)),
21626
21626
  format: _i
21627
21627
  },
21628
21628
  {
21629
21629
  precision: K._1_minute,
21630
- interval: w.utcMinute.filter(wi(5)),
21630
+ interval: I.utcMinute.filter(wi(5)),
21631
21631
  format: ze
21632
21632
  },
21633
21633
  {
21634
21634
  precision: K._2_minutes,
21635
- interval: (Ir = w.utcMinute.every(2)) == null ? void 0 : Ir.filter(wi(10)),
21635
+ interval: (Ir = I.utcMinute.every(2)) == null ? void 0 : Ir.filter(wi(10)),
21636
21636
  format: ze
21637
21637
  },
21638
21638
  {
21639
21639
  precision: K._5_minutes,
21640
- interval: (wr = w.utcMinute.every(5)) == null ? void 0 : wr.filter(wi(20)),
21640
+ interval: (wr = I.utcMinute.every(5)) == null ? void 0 : wr.filter(wi(20)),
21641
21641
  format: ze
21642
21642
  },
21643
21643
  {
21644
21644
  precision: K._15_minutes,
21645
- interval: (kr = w.utcMinute.every(15)) == null ? void 0 : kr.filter(pt(1)),
21645
+ interval: (kr = I.utcMinute.every(15)) == null ? void 0 : kr.filter(pt(1)),
21646
21646
  format: ze
21647
21647
  },
21648
21648
  {
21649
21649
  precision: K._30_minutes,
21650
- interval: (Pr = w.utcMinute.every(30)) == null ? void 0 : Pr.filter(pt(2)),
21650
+ interval: (Pr = I.utcMinute.every(30)) == null ? void 0 : Pr.filter(pt(2)),
21651
21651
  format: ze
21652
21652
  },
21653
21653
  {
21654
21654
  precision: K._1_hour,
21655
- interval: w.utcHour.filter(pt(6)),
21655
+ interval: I.utcHour.filter(pt(6)),
21656
21656
  format: gt
21657
21657
  },
21658
21658
  {
21659
21659
  precision: K._2_hours,
21660
- interval: (Or = w.utcHour.every(2)) == null ? void 0 : Or.filter(pt(6)),
21660
+ interval: (Or = I.utcHour.every(2)) == null ? void 0 : Or.filter(pt(6)),
21661
21661
  format: gt
21662
21662
  },
21663
21663
  {
21664
21664
  precision: K._3_hours,
21665
- interval: (Fr = w.utcHour.every(3)) == null ? void 0 : Fr.filter(pt(12)),
21665
+ interval: (Fr = I.utcHour.every(3)) == null ? void 0 : Fr.filter(pt(12)),
21666
21666
  format: gt
21667
21667
  },
21668
21668
  {
21669
21669
  precision: K._4_hours,
21670
- interval: w.utcHour.every(4),
21670
+ interval: I.utcHour.every(4),
21671
21671
  format: gt
21672
21672
  },
21673
21673
  {
21674
21674
  precision: K._6_hours,
21675
- interval: w.utcHour.every(6),
21675
+ interval: I.utcHour.every(6),
21676
21676
  format: gt
21677
21677
  },
21678
21678
  {
21679
21679
  precision: K._1_day,
21680
- interval: w.utcDay,
21680
+ interval: I.utcDay,
21681
21681
  format: Ar
21682
21682
  },
21683
21683
  {
21684
21684
  precision: K._2_days,
21685
- interval: w.utcDay.every(2),
21685
+ interval: I.utcDay.every(2),
21686
21686
  format: Ar
21687
21687
  },
21688
21688
  {
21689
21689
  precision: K._1_month,
21690
- interval: w.utcMonth,
21690
+ interval: I.utcMonth,
21691
21691
  format: "%B"
21692
21692
  },
21693
21693
  {
21694
21694
  precision: K._1_month_abbr,
21695
- interval: w.utcMonth,
21695
+ interval: I.utcMonth,
21696
21696
  format: "%b"
21697
21697
  },
21698
21698
  {
21699
21699
  precision: K._1_month_letter,
21700
- interval: w.utcMonth,
21701
- format: (s) => w.utcFormat("%B")(s).charAt(0)
21700
+ interval: I.utcMonth,
21701
+ format: (s) => I.utcFormat("%B")(s).charAt(0)
21702
21702
  },
21703
21703
  {
21704
21704
  precision: K._3_months,
21705
- interval: w.utcMonth.every(3),
21705
+ interval: I.utcMonth.every(3),
21706
21706
  format: "Q%q"
21707
21707
  },
21708
21708
  {
21709
21709
  precision: K._2_year,
21710
- interval: w.utcMonth.every(6),
21710
+ interval: I.utcMonth.every(6),
21711
21711
  format: "%Y"
21712
21712
  },
21713
21713
  {
21714
21714
  precision: K._5_years,
21715
- interval: w.utcYear.every(2),
21715
+ interval: I.utcYear.every(2),
21716
21716
  format: "%Y"
21717
21717
  },
21718
21718
  {
21719
21719
  precision: K._20_years,
21720
- interval: w.utcYear.every(4),
21720
+ interval: I.utcYear.every(4),
21721
21721
  format: "%Y"
21722
21722
  },
21723
21723
  {
21724
21724
  precision: K._75_years,
21725
- interval: w.utcYear.every(25),
21725
+ interval: I.utcYear.every(25),
21726
21726
  format: "%Y"
21727
21727
  },
21728
21728
  {
21729
21729
  precision: K._300_years,
21730
- interval: w.utcYear.every(100),
21730
+ interval: I.utcYear.every(100),
21731
21731
  format: "%Y"
21732
21732
  },
21733
21733
  {
21734
21734
  precision: K.infinity,
21735
- interval: w.utcYear.every(500),
21735
+ interval: I.utcYear.every(500),
21736
21736
  format: ""
21737
21737
  }
21738
21738
  ],
21739
21739
  [kt.detailedBackground]: [
21740
21740
  {
21741
21741
  precision: K._10_seconds,
21742
- interval: w.utcSecond,
21742
+ interval: I.utcSecond,
21743
21743
  format: ""
21744
21744
  },
21745
21745
  {
21746
21746
  precision: K._20_seconds,
21747
- interval: w.utcSecond.every(5),
21747
+ interval: I.utcSecond.every(5),
21748
21748
  format: ""
21749
21749
  },
21750
21750
  {
21751
21751
  precision: K._30_seconds,
21752
- interval: w.utcSecond.every(10),
21752
+ interval: I.utcSecond.every(10),
21753
21753
  format: ""
21754
21754
  },
21755
21755
  {
21756
21756
  precision: K._1_minute,
21757
- interval: w.utcSecond.every(20),
21757
+ interval: I.utcSecond.every(20),
21758
21758
  format: ""
21759
21759
  },
21760
21760
  {
21761
21761
  precision: K._2_minutes,
21762
- interval: w.utcSecond.every(30),
21762
+ interval: I.utcSecond.every(30),
21763
21763
  format: ""
21764
21764
  },
21765
21765
  {
21766
21766
  precision: K._5_minutes,
21767
- interval: w.utcMinute,
21767
+ interval: I.utcMinute,
21768
21768
  format: ""
21769
21769
  },
21770
21770
  {
21771
21771
  precision: K._15_minutes,
21772
- interval: w.utcMinute.every(3),
21772
+ interval: I.utcMinute.every(3),
21773
21773
  format: ""
21774
21774
  },
21775
21775
  {
21776
21776
  precision: K._30_minutes,
21777
- interval: w.utcMinute.every(6),
21777
+ interval: I.utcMinute.every(6),
21778
21778
  format: ""
21779
21779
  },
21780
21780
  {
21781
21781
  precision: K._1_hour,
21782
- interval: w.utcMinute.every(15),
21782
+ interval: I.utcMinute.every(15),
21783
21783
  format: ""
21784
21784
  },
21785
21785
  {
21786
21786
  precision: K._2_hours,
21787
- interval: w.utcMinute.every(30),
21787
+ interval: I.utcMinute.every(30),
21788
21788
  format: ""
21789
21789
  },
21790
21790
  {
21791
21791
  precision: K._3_hours,
21792
- interval: w.utcHour,
21792
+ interval: I.utcHour,
21793
21793
  format: ""
21794
21794
  },
21795
21795
  {
21796
21796
  precision: K._4_hours,
21797
- interval: w.utcHour,
21797
+ interval: I.utcHour,
21798
21798
  format: ""
21799
21799
  },
21800
21800
  {
21801
21801
  precision: K._6_hours,
21802
- interval: w.utcMinute.every(120),
21802
+ interval: I.utcMinute.every(120),
21803
21803
  format: ""
21804
21804
  },
21805
21805
  {
21806
21806
  precision: K._1_day,
21807
- interval: w.utcHour.every(8),
21807
+ interval: I.utcHour.every(8),
21808
21808
  format: ""
21809
21809
  },
21810
21810
  {
21811
21811
  precision: K._2_days,
21812
- interval: w.utcHour.every(12),
21812
+ interval: I.utcHour.every(12),
21813
21813
  format: ""
21814
21814
  },
21815
21815
  {
21816
21816
  precision: K._1_month,
21817
- interval: w.utcDay.filter((s) => {
21817
+ interval: I.utcDay.filter((s) => {
21818
21818
  const e = s.getUTCDate(), t = new Date(
21819
21819
  s.getUTCFullYear(),
21820
21820
  s.getUTCMonth() + 1,
@@ -21826,7 +21826,7 @@ const Ah = {
21826
21826
  },
21827
21827
  {
21828
21828
  precision: K._1_month_abbr,
21829
- interval: w.utcDay.filter((s) => {
21829
+ interval: I.utcDay.filter((s) => {
21830
21830
  const e = s.getUTCDate(), t = new Date(
21831
21831
  s.getUTCFullYear(),
21832
21832
  s.getUTCMonth() + 1,
@@ -21838,7 +21838,7 @@ const Ah = {
21838
21838
  },
21839
21839
  {
21840
21840
  precision: K._1_month_letter,
21841
- interval: w.utcDay.filter((s) => {
21841
+ interval: I.utcDay.filter((s) => {
21842
21842
  const e = s.getUTCDate(), t = new Date(
21843
21843
  s.getUTCFullYear(),
21844
21844
  s.getUTCMonth() + 1,
@@ -21850,42 +21850,42 @@ const Ah = {
21850
21850
  },
21851
21851
  {
21852
21852
  precision: K._3_months,
21853
- interval: w.utcMonth,
21853
+ interval: I.utcMonth,
21854
21854
  format: ""
21855
21855
  },
21856
21856
  {
21857
21857
  precision: K._3_months,
21858
- interval: w.utcMonth,
21858
+ interval: I.utcMonth,
21859
21859
  format: ""
21860
21860
  },
21861
21861
  {
21862
21862
  precision: K._2_year,
21863
- interval: w.utcYear,
21863
+ interval: I.utcYear,
21864
21864
  format: ""
21865
21865
  },
21866
21866
  {
21867
21867
  precision: K._5_years,
21868
- interval: w.utcYear.every(2),
21868
+ interval: I.utcYear.every(2),
21869
21869
  format: ""
21870
21870
  },
21871
21871
  {
21872
21872
  precision: K._20_years,
21873
- interval: w.utcYear.every(5),
21873
+ interval: I.utcYear.every(5),
21874
21874
  format: ""
21875
21875
  },
21876
21876
  {
21877
21877
  precision: K._75_years,
21878
- interval: w.utcYear.every(20),
21878
+ interval: I.utcYear.every(20),
21879
21879
  format: ""
21880
21880
  },
21881
21881
  {
21882
21882
  precision: K._300_years,
21883
- interval: w.utcYear.every(100),
21883
+ interval: I.utcYear.every(100),
21884
21884
  format: ""
21885
21885
  },
21886
21886
  {
21887
21887
  precision: K.infinity,
21888
- interval: w.utcYear.every(500),
21888
+ interval: I.utcYear.every(500),
21889
21889
  format: ""
21890
21890
  }
21891
21891
  ]
@@ -21961,17 +21961,13 @@ const Ah = {
21961
21961
  },
21962
21962
  dotSize: {
21963
21963
  type: Number,
21964
- default: 6
21964
+ default: 8
21965
21965
  },
21966
21966
  lineWidth: {
21967
21967
  type: Number,
21968
21968
  default: 2
21969
21969
  },
21970
21970
  lineHeight: {
21971
- type: Number,
21972
- default: 16
21973
- },
21974
- hoveredLineHeight: {
21975
21971
  type: Number,
21976
21972
  default: 28
21977
21973
  }
@@ -21981,14 +21977,10 @@ const Ah = {
21981
21977
  milestoneClasses: Ye,
21982
21978
  timeouts: [],
21983
21979
  isInitialRender: !0,
21984
- isHoveringDot: !1,
21985
21980
  isMouseOver: !1
21986
21981
  };
21987
21982
  },
21988
21983
  computed: {
21989
- computedLineHeight() {
21990
- return this.isHoveringDot ? this.hoveredLineHeight : this.lineHeight;
21991
- },
21992
21984
  transitionStyles() {
21993
21985
  return this.isInitialRender ? {} : {
21994
21986
  transition: `transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`
@@ -22001,9 +21993,9 @@ const Ah = {
22001
21993
  };
22002
21994
  },
22003
21995
  positionStyles() {
22004
- return this.dot ? {
22005
- transform: `translateY(calc(-100% - ${this.computedLineHeight}px))`
22006
- } : {};
21996
+ return !this.dot || !this.isMouseOver ? {} : {
21997
+ transform: `translateY(calc(-100% - ${this.lineHeight}px))`
21998
+ };
22007
21999
  },
22008
22000
  styles() {
22009
22001
  return {
@@ -22029,25 +22021,25 @@ const Ah = {
22029
22021
  },
22030
22022
  dotContainerStyles() {
22031
22023
  return {
22032
- top: `calc(100% - ${this.borderWidth}px)`,
22033
- height: `calc(${this.computedLineHeight}px + ${this.dotSize}px)`,
22024
+ top: this.isMouseOver ? `calc(100% - ${this.borderWidth}px)` : `calc(50% + ${this.dotSize / 2}px)`,
22025
+ height: `calc(${this.lineHeight}px + ${this.dotSize}px)`,
22034
22026
  left: `calc(50% - ${this.lineWidth}px / 2)`,
22035
22027
  transition: `${this.computedTransitionDuration}ms`
22036
22028
  };
22037
22029
  },
22038
22030
  lineStyles() {
22039
22031
  return {
22040
- top: `${this.borderWidth}px`,
22032
+ bottom: `${this.dotSize / 2}px`,
22041
22033
  left: `calc(50% - ${this.lineWidth}px / 2)`,
22042
22034
  width: `${this.lineWidth}px`,
22043
- height: `calc(${this.computedLineHeight}px)`,
22035
+ height: this.isMouseOver ? `${this.lineHeight}px` : "0",
22044
22036
  backgroundColor: this.borderColor,
22045
22037
  transition: `${this.computedTransitionDuration}ms`
22046
22038
  };
22047
22039
  },
22048
22040
  dotStyles() {
22049
22041
  return {
22050
- top: `calc(${this.computedLineHeight}px + 1px)`,
22042
+ top: `${this.lineHeight}px`,
22051
22043
  left: `calc(50% - ${this.dotSize}px / 2)`,
22052
22044
  width: `${this.dotSize}px`,
22053
22045
  height: `${this.dotSize}px`,
@@ -22064,7 +22056,7 @@ const Ah = {
22064
22056
  methods: {
22065
22057
  onMilestoneMouseOver(s, e) {
22066
22058
  if (this.dot) {
22067
- this.isHoveringDot = !0;
22059
+ this.isMouseOver = !0;
22068
22060
  return;
22069
22061
  }
22070
22062
  const t = s.target;
@@ -22080,14 +22072,14 @@ const Ah = {
22080
22072
  a && (clearTimeout(Number(a)), t.dataset.timeoutId = ""), t.dataset.initialWidth || (t.dataset.initialWidth = t.style.width), t.dataset.initialHeight || (t.dataset.initialHeight = t.style.height), t.dataset.initialContentWidth || (t.dataset.initialContentWidth = String(n.width)), t.dataset.initialContentHeight || (t.dataset.initialContentHeight = String(n.height)), t.dataset.transitionStart = String(Date.now()), t.style.width = t.dataset.initialContentWidth + "px", t.style.height = t.dataset.initialContentHeight + "px", t.style.borderRadius = "0.5em", t.classList.add(Ye.milestoneHovered), i.style.opacity = "1", i.style.width = t.dataset.initialContentWidth + "px", i.style.height = t.dataset.initialContentHeight + "px";
22081
22073
  },
22082
22074
  onMilestoneMouseMove() {
22083
- this.isMouseOver = !0;
22075
+ this.timeouts.forEach((s) => clearTimeout(s)), this.isMouseOver = !0;
22084
22076
  },
22085
22077
  onMilestoneMouseLeave(s, e) {
22086
22078
  if (this.dot) {
22087
22079
  this.timeouts.push(
22088
22080
  setTimeout(() => {
22089
- this.isHoveringDot = !this.isMouseOver;
22090
- }, 600)
22081
+ this.isMouseOver = !1;
22082
+ }, this.transitionDuration + 100)
22091
22083
  );
22092
22084
  return;
22093
22085
  }
@@ -22115,8 +22107,8 @@ var Ch = function() {
22115
22107
  [e.milestoneClasses.milestone]: !0,
22116
22108
  [e.milestoneClasses.milestoneDot]: e.dot,
22117
22109
  [e.milestoneClasses.milestoneBullet]: !e.dot,
22118
- [e.milestoneClasses.milestoneDotHovered]: e.isHoveringDot
22119
- }, style: e.styles, attrs: { tabindex: "0" }, on: { mouseover: (i) => e.onMilestoneMouseOver(i, e.milestone), mousemove: (i) => e.onMilestoneMouseMove(i, e.milestone), mouseleave: (i) => e.onMilestoneMouseLeave(i, e.milestone), click: (i) => e.onMilestoneClick(i, e.milestone) } }, [t("div", { class: e.milestoneClasses.milestoneContent, style: e.contentStyles }, [e._t("content", function() {
22110
+ [e.milestoneClasses.milestoneDotHovered]: e.isMouseOver
22111
+ }, style: e.styles, attrs: { tabindex: "0" }, on: { mouseover: (i) => e.onMilestoneMouseOver(i, e.milestone), mousemove: e.onMilestoneMouseMove, mouseleave: (i) => e.onMilestoneMouseLeave(i, e.milestone), click: (i) => e.onMilestoneClick(i, e.milestone) } }, [t("div", { class: e.milestoneClasses.milestoneContent, style: e.contentStyles }, [e._t("content", function() {
22120
22112
  return [t("span", [e._v(" " + e._s(e.milestone.text) + " ")])];
22121
22113
  })], 2), e.dot ? t("div", { class: e.milestoneClasses.milestoneDotContainer, style: e.dotContainerStyles }, [t("div", { class: e.milestoneClasses.milestoneDotLine, style: e.lineStyles }), t("div", { class: e.milestoneClasses.milestoneDotDot, style: e.dotStyles })]) : t("div", { class: e.milestoneClasses.milestoneLabel, style: e.labelStyles }, [e._t("label")], 2)]);
22122
22114
  }, Dh = [], _h = /* @__PURE__ */ Ne(
@@ -22263,6 +22255,14 @@ const Ih = _h.exports, G = {
22263
22255
  type: String,
22264
22256
  default: void 0
22265
22257
  },
22258
+ minVisibleDate: {
22259
+ type: String,
22260
+ default: void 0
22261
+ },
22262
+ maxVisibleDate: {
22263
+ type: String,
22264
+ default: void 0
22265
+ },
22266
22266
  cursorTimestamp: {
22267
22267
  type: [String, void 0],
22268
22268
  default: void 0
@@ -22359,7 +22359,8 @@ const Ih = _h.exports, G = {
22359
22359
  markersDragBehavior: null,
22360
22360
  initialMarkerDragMouseOffset: 0,
22361
22361
  selectedMilestoneId: null,
22362
- isInitialized: !1
22362
+ isInitialized: !1,
22363
+ lastValidTransform: I.zoomIdentity
22363
22364
  };
22364
22365
  },
22365
22366
  computed: {
@@ -22436,9 +22437,8 @@ const Ih = _h.exports, G = {
22436
22437
  return Object.fromEntries(s);
22437
22438
  },
22438
22439
  allEventsSorted() {
22439
- return Object.values(this.filteredEventsGroups).map((e) => e.events).flat().sort(
22440
- (e, t) => new Date(e.timestamp || e.startDate) > new Date(t.timestamp || t.startDate) ? 1 : -1
22441
- );
22440
+ const s = Object.values(this.filteredEventsGroups).map((e) => e.events).flat();
22441
+ return this.getSortedEvents(s);
22442
22442
  },
22443
22443
  oldestEvent() {
22444
22444
  let s;
@@ -22570,7 +22570,7 @@ const Ih = _h.exports, G = {
22570
22570
  this.tooltip = this.$refs.tooltip, this.cursor = this.$refs.cursor, this.timeline = this.$refs.timelineContainer, this.selectedTimestampCursor = this.$refs.selectedTimestamp, this.wrapperDiv = this.$refs.wrapperDiv;
22571
22571
  },
22572
22572
  initOrUpdateSvg() {
22573
- this.svg || (this.svg = w.select(this.timeline).append("svg")), this.svg.attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
22573
+ this.svg || (this.svg = I.select(this.timeline).append("svg")), this.svg.attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
22574
22574
  },
22575
22575
  initDefs() {
22576
22576
  const s = this.svg.append("defs");
@@ -22603,7 +22603,7 @@ const Ih = _h.exports, G = {
22603
22603
  },
22604
22604
  initTimeScale(s, e) {
22605
22605
  const t = s || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, i = e || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
22606
- this.timeScale = w.scaleTime().domain([this.tzStringToDate(t), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
22606
+ this.timeScale = I.scaleTime().domain([this.tzStringToDate(t), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
22607
22607
  },
22608
22608
  initXAxes() {
22609
22609
  let s = 0;
@@ -22623,17 +22623,17 @@ const Ih = _h.exports, G = {
22623
22623
  }
22624
22624
  },
22625
22625
  initYScale() {
22626
- this.yScale = w.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
22626
+ this.yScale = I.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
22627
22627
  },
22628
22628
  updateYScaleDomain() {
22629
22629
  const [s, e] = this.timeScale.domain(), t = this.flattenedCounts.filter((r) => {
22630
22630
  const n = new Date(r.startDate || r.timestamp), a = new Date(r.endDate || r.timestamp);
22631
22631
  return a >= s && a <= e || n >= s && n <= e;
22632
- }), i = w.max(t, (r) => r.count);
22632
+ }), i = I.max(t, (r) => r.count);
22633
22633
  this.yScale.domain([0, i]);
22634
22634
  },
22635
22635
  initZoomBehavior() {
22636
- this.disableZoom || (this.zoomBehavior = w.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior));
22636
+ this.disableZoom || (this.zoomBehavior = I.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior), this.svg.call(this.zoomBehavior.transform, I.zoomIdentity));
22637
22637
  },
22638
22638
  zoomToFitMarkers() {
22639
22639
  const s = this.markers.map(
@@ -22653,10 +22653,10 @@ const Ih = _h.exports, G = {
22653
22653
  );
22654
22654
  },
22655
22655
  translateMarkersIntoView(s, e, t) {
22656
- const i = this.timeScale(new Date(s)), r = this.timeScale(new Date(e)), n = (i + r) / 2, o = this.svg.node().getBoundingClientRect().width / 2 - n, l = w.zoomTransform(this.svg.node());
22656
+ const i = this.timeScale(new Date(s)), r = this.timeScale(new Date(e)), n = (i + r) / 2, o = this.svg.node().getBoundingClientRect().width / 2 - n, l = I.zoomTransform(this.svg.node());
22657
22657
  this.svg.transition().duration(this.fitMarkersTransitionDuration / 2).call(
22658
22658
  this.zoomBehavior.transform,
22659
- w.zoomIdentity.translate(l.x + o, l.y).scale(t)
22659
+ I.zoomIdentity.translate(l.x + o, l.y).scale(t)
22660
22660
  );
22661
22661
  },
22662
22662
  initSelectedTimestampCursor() {
@@ -22720,14 +22720,14 @@ const Ih = _h.exports, G = {
22720
22720
  },
22721
22721
  createAxis(s) {
22722
22722
  const e = this.xAxesConfig[s], t = this.getAxisTicksConfig(e);
22723
- return w.axisBottom(this.timeScale).ticks(t.interval).tickFormat(t.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
22723
+ return I.axisBottom(this.timeScale).ticks(t.interval).tickFormat(t.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
22724
22724
  },
22725
22725
  getAxisTicksConfig(s) {
22726
22726
  const { interval: e, format: t } = s.find(
22727
22727
  (r) => r.precision >= this.currentTimeScaleDensity && r.interval
22728
22728
  );
22729
22729
  return {
22730
- formatFn: (r) => typeof t == "function" ? t(r) : w.timeFormat(t)(r),
22730
+ formatFn: (r) => typeof t == "function" ? t(r) : I.timeFormat(t)(r),
22731
22731
  interval: e
22732
22732
  };
22733
22733
  },
@@ -22742,12 +22742,12 @@ const Ih = _h.exports, G = {
22742
22742
  return;
22743
22743
  const s = this;
22744
22744
  this.svg.selectAll(`.${G.labelBg}`).each(function() {
22745
- w.select(this).style("fill", s.dark ? "black" : "white");
22745
+ I.select(this).style("fill", s.dark ? "black" : "white");
22746
22746
  }), this.svg.selectAll(`.${G.labelBgFill}`).each(function() {
22747
- const e = w.select(this), t = e.node().dataset.color;
22747
+ const e = I.select(this), t = e.node().dataset.color;
22748
22748
  e.style("fill", s.getLabelBackgroundColor(t)).style("stroke", s.getTextFillColor(t)).style("stroke-width", 0.25);
22749
22749
  }), this.svg.selectAll(`.${G.labelText}`).each(function() {
22750
- const e = w.select(this), t = e.node().dataset.color;
22750
+ const e = I.select(this), t = e.node().dataset.color;
22751
22751
  e.style("fill", s.getTextFillColor(t));
22752
22752
  });
22753
22753
  },
@@ -22810,24 +22810,33 @@ const Ih = _h.exports, G = {
22810
22810
  this.isHoveringEvent = !1, this.hoveredEvent = null, this.$emit("event-mouseout");
22811
22811
  },
22812
22812
  handleLabelMouseOver(s) {
22813
- w.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22813
+ I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22814
22814
  `${G.lineGraphGroup}--highlighted`,
22815
22815
  !0
22816
- ), w.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22816
+ ), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22817
22817
  `${G.lineGraphGroupLabel}--highlighted`,
22818
22818
  !0
22819
22819
  );
22820
22820
  },
22821
22821
  handleLabelMouseLeave(s) {
22822
- w.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22822
+ I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
22823
22823
  `${G.lineGraphGroup}--highlighted`,
22824
22824
  !1
22825
- ), w.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22825
+ ), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
22826
22826
  `${G.lineGraphGroupLabel}--highlighted`,
22827
22827
  !1
22828
22828
  );
22829
22829
  },
22830
+ isZoomAllowed(s) {
22831
+ const e = this.initialTimeScale.copy(), t = s.transform.rescaleX(e).domain(), i = this.minVisibleDate ? this.tzStringToDate(this.minVisibleDate) : void 0, r = this.maxVisibleDate ? this.tzStringToDate(this.maxVisibleDate) : void 0;
22832
+ return (!i || t[0] >= i) && (!r || t[1] <= r);
22833
+ },
22830
22834
  handleZoom(s) {
22835
+ if (!this.isZoomAllowed(s)) {
22836
+ s.sourceEvent.preventDefault(), this.svg.call(this.zoomBehavior.transform, this.lastValidTransform);
22837
+ return;
22838
+ }
22839
+ this.lastValidTransform = s.transform;
22831
22840
  const e = s.transform.rescaleX(this.initialTimeScale);
22832
22841
  this.timeScale.domain(e.domain()), this.updateCurrentTimeScaleDensity(), this.updateYScaleDomain();
22833
22842
  const t = s.transform.k / this.lastTransform.k;
@@ -22840,10 +22849,10 @@ const Ih = _h.exports, G = {
22840
22849
  this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.updateMilestonesPositions(), this.repositionSelectedTimestampCursor(), this.updateForbiddenIntervals(), this.updateMarkers(), this.emitVisibleInterval(Pt.zoom), this.curtains && this.emitCurtainChange();
22841
22850
  },
22842
22851
  panToTimestamp(s) {
22843
- const e = this.tzStringToDate(s), t = this.timeScale(e), i = w.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2;
22852
+ const e = this.tzStringToDate(s), t = this.timeScale(e), i = I.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2;
22844
22853
  this.svg.transition().duration(this.panTransitionDuration).call(
22845
22854
  this.zoomBehavior.transform,
22846
- w.zoomIdentity.translate(r, 0).scale(i.k)
22855
+ I.zoomIdentity.translate(r, 0).scale(i.k)
22847
22856
  ), this.emitVisibleInterval(Pt.autoPan);
22848
22857
  },
22849
22858
  emitCurtainChange() {
@@ -22882,10 +22891,10 @@ const Ih = _h.exports, G = {
22882
22891
  zoomToStartAndEndDates() {
22883
22892
  const s = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, e = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, t = this.tzStringToDate(s), i = this.tzStringToDate(e);
22884
22893
  this.initialTimeScale.domain([t, i]);
22885
- const r = w.zoomTransform(this.svg.node()), n = i.getTime() - t.getTime(), o = this.initialTimeScale.range().map((f) => this.initialTimeScale.invert(f)).reduce((f, m) => m.getTime() - f, 0) / n * r.k, c = -(this.initialTimeScale(t) * o), [u, h] = this.zoomBehavior.scaleExtent(), d = Math.max(u, Math.min(h, o));
22894
+ const r = I.zoomTransform(this.svg.node()), n = i.getTime() - t.getTime(), o = this.initialTimeScale.range().map((f) => this.initialTimeScale.invert(f)).reduce((f, m) => m.getTime() - f, 0) / n * r.k, c = -(this.initialTimeScale(t) * o), [u, h] = this.zoomBehavior.scaleExtent(), d = Math.max(u, Math.min(h, o));
22886
22895
  this.svg.transition().duration(this.zoomToBoundariesTransitionDuration).call(
22887
22896
  this.zoomBehavior.transform,
22888
- w.zoomIdentity.translate(c, 0).scale(d)
22897
+ I.zoomIdentity.translate(c, 0).scale(d)
22889
22898
  );
22890
22899
  },
22891
22900
  rescaleAxis(s, e) {
@@ -22896,7 +22905,7 @@ const Ih = _h.exports, G = {
22896
22905
  },
22897
22906
  translateTicksText(s) {
22898
22907
  this.svg.select(`.${G.xAxis}-${s}`).selectAll(".tick text").each(function() {
22899
- let e = w.select(this), t = e.node().getBBox();
22908
+ let e = I.select(this), t = e.node().getBBox();
22900
22909
  e.attr("x", t.height / 2).attr("y", 0).style("text-anchor", "start");
22901
22910
  });
22902
22911
  },
@@ -22919,7 +22928,7 @@ const Ih = _h.exports, G = {
22919
22928
  },
22920
22929
  updateLineGraphs() {
22921
22930
  Object.entries(this.lineGraphGroups).forEach(([s]) => {
22922
- const e = w.area().x((t) => this.timeScale(this.tzStringToDate(t.timestamp))).y0(this.timelineHeight).y1((t) => this.yScale(t.count)).curve(w.curveMonotoneX);
22931
+ const e = I.area().x((t) => this.timeScale(this.tzStringToDate(t.timestamp))).y0(this.timelineHeight).y1((t) => this.yScale(t.count)).curve(I.curveMonotoneX);
22923
22932
  this.svg.selectAll(
22924
22933
  `.${G.lineGraphPath}-${s}`
22925
22934
  ).attr("d", (t) => e(t));
@@ -22931,12 +22940,12 @@ const Ih = _h.exports, G = {
22931
22940
  this.svg.selectAll(
22932
22941
  `.${G.lineGraphDot}-${s}`
22933
22942
  ).each(function(t) {
22934
- w.select(this).attr("cx", e.timeScale(e.tzStringToDate(t.timestamp))).attr("cy", e.yScale(t.count));
22943
+ I.select(this).attr("cx", e.timeScale(e.tzStringToDate(t.timestamp))).attr("cy", e.yScale(t.count));
22935
22944
  }), this.svg.selectAll(
22936
22945
  `.${G.lineGraphHoverZone}-${s}`
22937
22946
  ).each(function(t) {
22938
22947
  const i = e.timeScale(e.tzStringToDate(t.timestamp).getTime()) - 15;
22939
- w.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", e.chartHeight);
22948
+ I.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", e.chartHeight);
22940
22949
  });
22941
22950
  });
22942
22951
  },
@@ -22982,54 +22991,58 @@ const Ih = _h.exports, G = {
22982
22991
  r,
22983
22992
  s
22984
22993
  );
22985
- t.type === "drag" && a && e.attr("style", `left: ${n}px`), t.type === "end" && a && (this.markersPositions = {
22986
- ...this.markersPositions,
22987
- [s.id || s.timestamp]: {
22988
- ...this.markersPositions[s.id || s.timestamp],
22989
- position: n
22990
- }
22991
- }, e.classed(G.markerDragged, !1)), t.type !== "start" && this.$emit(`marker-drag-${t.type}`, {
22994
+ if (t.type === "drag" && a && e.attr("style", `left: ${n}px`), t.type === "end" && a) {
22995
+ const o = s.id || s.timestamp;
22996
+ this.markersPositions = {
22997
+ ...this.markersPositions,
22998
+ [o]: {
22999
+ ...this.markersPositions[o],
23000
+ position: n
23001
+ }
23002
+ }, e.classed(G.markerDragged, !1);
23003
+ }
23004
+ t.type !== "start" && this.$emit(`marker-drag-${t.type}`, {
22992
23005
  marker: s,
22993
23006
  newTimestamp: r.toISOString()
22994
23007
  });
22995
23008
  },
22996
23009
  removeMarkersDragBehavior() {
22997
- this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null), w.selectAll(`.${G.marker}`).call(
23010
+ this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null), I.selectAll(`.${G.marker}`).call(
22998
23011
  this.markersDragBehavior
22999
23012
  ));
23000
23013
  },
23001
23014
  initMarkersDragBehavior() {
23002
23015
  this.removeMarkersDragBehavior();
23003
23016
  const s = this;
23004
- this.markersDragBehavior = w.drag().on("start", function(e, t) {
23017
+ this.markersDragBehavior = I.drag().on("start", function(e, t) {
23005
23018
  var i;
23006
23019
  (i = e.sourceEvent) == null || i.preventDefault(), s.handleMarkerDrag({
23007
23020
  marker: t,
23008
- markerElement: w.select(this),
23021
+ markerElement: I.select(this),
23009
23022
  dragEvent: e
23010
23023
  });
23011
23024
  }).on("drag", function(e, t) {
23012
23025
  s.handleMarkerDrag({
23013
23026
  marker: t,
23014
- markerElement: w.select(this),
23027
+ markerElement: I.select(this),
23015
23028
  dragEvent: e
23016
23029
  });
23017
23030
  }).on("end", function(e, t) {
23018
23031
  s.handleMarkerDrag({
23019
23032
  marker: t,
23020
- markerElement: w.select(this),
23033
+ markerElement: I.select(this),
23021
23034
  dragEvent: e
23022
23035
  });
23023
- }), w.selectAll(`.${G.marker}`).data(this.sortedMarkers).call(this.markersDragBehavior);
23036
+ }), I.selectAll(`.${G.marker}`).data(this.sortedMarkers).call(this.markersDragBehavior);
23024
23037
  },
23025
23038
  initCurtains() {
23026
23039
  this.createCurtains(), this.updateCurtains();
23027
23040
  },
23028
23041
  createCurtains() {
23029
23042
  this.curtains && (this.svg.append("rect").classed(`${G.curtain} ${G.curtain}--left`, !0).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
23030
- w.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
23043
+ I.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
23031
23044
  ), this.svg.append("rect").classed(`${G.curtain} ${G.curtain}--right`, !0).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
23032
- w.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
23045
+ I.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
23033
23046
  ), this.updateCurtains());
23034
23047
  },
23035
23048
  updateCurtains() {
@@ -23104,7 +23117,7 @@ const Ih = _h.exports, G = {
23104
23117
  color: t,
23105
23118
  type: i
23106
23119
  }) {
23107
- const r = w.area().x((a) => this.timeScale(this.tzStringToDate(a.timestamp))).y0(this.timelineHeight).y1((a) => this.yScale(a.count)).curve(w.curveMonotoneX), n = `clip-${i}`;
23120
+ const r = I.area().x((a) => this.timeScale(this.tzStringToDate(a.timestamp))).y0(this.timelineHeight).y1((a) => this.yScale(a.count)).curve(I.curveMonotoneX), n = `clip-${i}`;
23108
23121
  e.append("defs").append("clipPath").attr("id", n).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), e.append("path").datum(s).classed(`${G.lineGraphPath}-${i}`, !0).attr("fill", `url(#${De.transparencyGradientLight}-${i})`).attr("stroke", t).attr("stroke-linejoin", "round").attr("stroke-linecap", "round").attr("stroke-width", 1).attr("d", (a) => r(a)).attr("clip-path", `url(#${n})`);
23109
23122
  },
23110
23123
  drawLineGraphHoverZones({
@@ -23220,15 +23233,15 @@ const Ih = _h.exports, G = {
23220
23233
  Object.entries(this.milestonesGroups).forEach(([s, e]) => {
23221
23234
  const t = this.getMilestoneGroupYPosition(s), i = this.svg.select(
23222
23235
  `g.${G.eventGroup}-${s}`
23223
- ), r = 2, n = e.height || this.barChartHeight, a = e.dots ? n : n / 2, o = t + a - r / 2;
23236
+ ), r = 2, a = (e.height || this.barChartHeight) / 2, o = t + a - r / 2;
23224
23237
  i.attr("x1", 0).attr("x2", this.timeline.offsetWidth).select(`.${Ye.milestoneLine}`).attr("y1", o).attr("y2", o);
23225
- const l = w.select(
23238
+ const l = I.select(
23226
23239
  `.${Ye.milestonesContainer}-${s}`
23227
23240
  );
23228
23241
  l.style("top", `${t}px`).style("height", `${e.height || this.barChartHeight}px`);
23229
23242
  const c = l.selectAll(
23230
23243
  `.${Ye.milestone}`
23231
- ).data(e.events);
23244
+ ).data(this.getSortedEvents(e.events));
23232
23245
  c.exit().remove(), c.enter().append("div").merge(c).style(
23233
23246
  "left",
23234
23247
  (u) => `${this.timeScale(this.tzStringToDate(u.timestamp))}px`
@@ -23268,7 +23281,7 @@ const Ih = _h.exports, G = {
23268
23281
  gElement: t,
23269
23282
  height: i
23270
23283
  }) {
23271
- t.append("rect").attr("class", G.eventGroupBg).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth).attr("height", i || this.barChartHeight).attr("fill", w.color(s).toString()).style("opacity", 0.1);
23284
+ t.append("rect").attr("class", G.eventGroupBg).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth).attr("height", i || this.barChartHeight).attr("fill", I.color(s).toString()).style("opacity", 0.1);
23272
23285
  },
23273
23286
  drawBars({
23274
23287
  events: s,
@@ -23282,9 +23295,9 @@ const Ih = _h.exports, G = {
23282
23295
  "class",
23283
23296
  (a) => G.eventRect + (a.className ? ` ${a.className}` : "")
23284
23297
  ).attr("x", this.getEventRectX).attr("y", t + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (a) => a.color || i).on("mouseover", function(a, o) {
23285
- w.select(this).classed(G.eventRectHovered, !0), n.handleBarMouseOver(a, o, r);
23298
+ I.select(this).classed(G.eventRectHovered, !0), n.handleBarMouseOver(a, o, r);
23286
23299
  }).on("mouseout", function() {
23287
- w.select(this).classed(G.eventRectHovered, !1), n.handleBarMouseOut();
23300
+ I.select(this).classed(G.eventRectHovered, !1), n.handleBarMouseOut();
23288
23301
  }), e.selectAll(G.eventRectText).data(s.filter((a) => !!a.text)).enter().append("text").attr("class", G.eventRectText).attr("x", (a) => this.getEventRectX(a) + this.textPadding).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 600).style("stroke-linejoin", "round").style("paint-order", "stroke").style("pointer-events", "none").style(
23289
23302
  "fill",
23290
23303
  (a) => this.getTextFillColor(a.color || i, 0.75)
@@ -23312,13 +23325,13 @@ const Ih = _h.exports, G = {
23312
23325
  "class",
23313
23326
  (f) => G.eventBarCap + (f.className ? ` ${f.className}` : "")
23314
23327
  ).attr("x", u).attr("y", h).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (f) => f.color || t), d.on("mouseover", function(f, m) {
23315
- const g = w.select(this);
23328
+ const g = I.select(this);
23316
23329
  a.onBarChartBarMouseOver(g, t), a.handleBarMouseOver(f, m, r);
23317
23330
  }).on("mouseout", function() {
23318
- const f = w.select(this);
23331
+ const f = I.select(this);
23319
23332
  a.onBarChartBarMouseOut(f, r), a.handleBarMouseOut();
23320
23333
  }).on("click", function() {
23321
- e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1), w.select(this).classed(G.eventBarContainerSelected, !0);
23334
+ e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1), I.select(this).classed(G.eventBarContainerSelected, !0);
23322
23335
  });
23323
23336
  },
23324
23337
  onBarChartBarMouseOver(s, e) {
@@ -23350,17 +23363,12 @@ const Ih = _h.exports, G = {
23350
23363
  }, o = s.append("g").attr("class", `${G.labelGroup} ${G.labelGroup}-${r}`).style("cursor", "pointer").on("click", () => this.toggleGroupVisibility(r));
23351
23364
  o.append("rect").attr("class", G.labelBg).attr("data-color", t).attr("x", a.x).attr("y", a.y).attr("width", a.w).attr("height", a.h).attr("rx", a.radius).attr("ry", a.radius).style("fill", this.dark ? "#131a29" : "white"), o.append("rect").attr("class", G.labelBgFill).attr("data-color", t).attr("x", a.x).attr("y", a.y).attr("width", a.w).attr("height", a.h).attr("rx", a.radius).attr("ry", a.radius).style("fill", this.getLabelBackgroundColor(t)).style("stroke", this.getTextFillColor(t)).style("stroke-width", 0.25), o.append("text").attr("class", G.labelText).attr("data-color", t).attr("x", 5).attr("y", e + (n || this.barChartHeight) / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 500).style("stroke-linejoin", "round").style("paint-order", "stroke").style("fill", this.getTextFillColor(t)).text(i);
23352
23365
  },
23353
- getSortedEvents(s) {
23354
- return [...s].sort(
23355
- (e, t) => new Date(e.timestamp || e.startDate) > new Date(t.timestamp || t.startDate) ? 1 : -1
23356
- );
23357
- },
23358
23366
  getTextFillColor(s, e = 0) {
23359
23367
  var t, i;
23360
- return (this.dark ? (t = w.color(s)) == null ? void 0 : t.brighter(1.5 + e) : (i = w.color(s)) == null ? void 0 : i.darker(2 + e)).toString();
23368
+ return (this.dark ? (t = I.color(s)) == null ? void 0 : t.brighter(1.5 + e) : (i = I.color(s)) == null ? void 0 : i.darker(2 + e)).toString();
23361
23369
  },
23362
23370
  getLabelBackgroundColor(s) {
23363
- let e = w.color(s);
23371
+ let e = I.color(s);
23364
23372
  return e.opacity = this.dark ? 0.2 : 0.5, e.toString();
23365
23373
  },
23366
23374
  getCurrentGroupVisibility(s) {
@@ -23462,6 +23470,11 @@ const Ih = _h.exports, G = {
23462
23470
  },
23463
23471
  onMilestoneClick(s, e) {
23464
23472
  this.panOnDateClick && this.panToTimestamp(s.timestamp), this.selectedMilestoneId = s.id || s.timestamp, this.$emit("milestone-click", { milestone: s, milestoneType: e });
23473
+ },
23474
+ getSortedEvents(s) {
23475
+ return [...s].sort(
23476
+ (e, t) => new Date(e.timestamp || e.startDate) > new Date(t.timestamp || t.startDate) ? 1 : -1
23477
+ );
23465
23478
  }
23466
23479
  }
23467
23480
  });
@@ -23475,12 +23488,12 @@ var kh = function() {
23475
23488
  }, { marker: i })], 2)]), t("div", { staticClass: "marker-line e-absolute e-pointer-events-none", style: e.getMarkerLineStyle(i) })]);
23476
23489
  }), e.autoResize ? t("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: e.onResize, expression: "onResize" }], ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden" }) : t("div", { ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden" }), e._l(e.milestonesGroups, function(i, r) {
23477
23490
  return t("div", { key: `${r}`, staticClass: "e-timeline-milestones" }, [t("div", { class: `e-tl-milestones e-tl-milestones-${r}` }, e._l(e.getSortedEvents(i.events), function(n, a) {
23478
- return t("ETimelineMilestone", { key: `${n.milestoneType}-${a}`, class: e.getMilestoneClass(n), attrs: { milestone: n, dot: i.dots, size: n.size || e.milestoneBulletSize, "transition-duration": i.milestonesTransitionDuration, "line-height": i.milestonesLineHeight, "hovered-line-height": i.milestonesHoveredLineHeight, "dot-size": i.milestonesDotSize, "background-color": e.getMilestoneColors(n.color, i.color).background, "border-color": e.getMilestoneColors(n.color, i.color).border }, on: { "milestone-click": function(o) {
23491
+ return t("ETimelineMilestone", { key: `${n.milestoneType}-${a}`, class: e.getMilestoneClass(n), attrs: { "data-timestamp": n.timestamp, milestone: n, dot: i.dots, size: n.size || e.milestoneBulletSize, "transition-duration": i.milestonesTransitionDuration, "line-height": i.milestonesLineHeight, "dot-size": i.milestonesDotSize, "background-color": e.getMilestoneColors(n.color, i.color).background, "border-color": e.getMilestoneColors(n.color, i.color).border }, on: { "milestone-click": function(o) {
23479
23492
  return e.onMilestoneClick(n, r);
23480
23493
  } }, scopedSlots: e._u([{ key: "content", fn: function() {
23481
23494
  return [e._t(`milestoneContent.${n.milestoneType}`, function() {
23482
- return [t("span", [e._v(" " + e._s(n.text) + " ")])];
23483
- }, { milestone: n })];
23495
+ return [t("span", { staticClass: "e-px-2" }, [e._v(" " + e._s(n.text) + " ")])];
23496
+ }, { milestone: n, index: a })];
23484
23497
  }, proxy: !0 }, { key: "label", fn: function() {
23485
23498
  return [e._t(`milestoneLabel.${n.milestoneType}`, null, { milestone: n })];
23486
23499
  }, proxy: !0 }], null, !0) });