@kong-ui-public/analytics-geo-map 1.3.6-pr.2506.101e001f1.0 → 1.3.6-pr.2506.a8e979d97.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.
@@ -1,13 +1,13 @@
1
- import { defineComponent as L0, useId as B0, ref as l0, computed as D, onMounted as P0, watch as b, createElementBlock as A, openBlock as H, createElementVNode as e0, createCommentVNode as u0, unref as S0, toDisplayString as c0, Fragment as V0, renderList as z0, normalizeStyle as T0 } from "vue";
2
- import { Map as C0, Popup as D0 } from "maplibre-gl";
1
+ import { defineComponent as L0, useId as B0, ref as l0, computed as C, onMounted as P0, watch as b, createElementBlock as A, openBlock as q, createElementVNode as e0, createCommentVNode as u0, unref as S0, toDisplayString as c0, Fragment as V0, renderList as z0, normalizeStyle as T0 } from "vue";
2
+ import { Map as D0, Popup as C0 } from "maplibre-gl";
3
3
  import { createI18n as N0, i18nTComponent as R0 } from "@kong-ui-public/i18n";
4
- const U0 = {
4
+ const O0 = {
5
5
  ms: "ms",
6
6
  bytes: "Byte{plural}",
7
7
  count: "request{plural}",
8
8
  "count/minute": "rpm",
9
9
  requests: "request{plural}"
10
- }, O0 = {
10
+ }, I0 = {
11
11
  request_count: "Request count",
12
12
  request_per_minute: "Requests per minute",
13
13
  response_latency_average: "Response latency (avg)",
@@ -32,25 +32,20 @@ const U0 = {
32
32
  request_size_p95: "Request size (p95)",
33
33
  request_size_p50: "Request size (p50)",
34
34
  request_size_sum: "Request size (sum)"
35
- }, I0 = {
36
- windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
37
- mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
38
- mobile_zoom_help_text: "Use two fingers to zoom the map"
39
- }, E0 = {
40
- metricUnits: U0,
41
- metrics: O0,
42
- cooperative_gestures: I0
35
+ }, U0 = {
36
+ metricUnits: O0,
37
+ metrics: I0
43
38
  };
44
- function A0() {
45
- const e = N0("en-us", E0);
39
+ function E0() {
40
+ const e = N0("en-us", U0);
46
41
  return {
47
42
  i18n: e,
48
43
  i18nT: R0(e)
49
44
  // Translation component <i18n-t>
50
45
  };
51
46
  }
52
- const H0 = {
53
- useI18n: A0
47
+ const A0 = {
48
+ useI18n: E0
54
49
  };
55
50
  function y0(e) {
56
51
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -82,8 +77,8 @@ var x0 = { exports: {} };
82
77
  p.addCommas = t, e.exports = p;
83
78
  })();
84
79
  })(x0);
85
- var G0 = x0.exports;
86
- const G = /* @__PURE__ */ y0(G0), q0 = "FeatureCollection", $0 = [
80
+ var q0 = x0.exports;
81
+ const $ = /* @__PURE__ */ y0(q0), $0 = "FeatureCollection", G0 = [
87
82
  {
88
83
  type: "Feature",
89
84
  properties: {
@@ -2515,11 +2510,11 @@ const G = /* @__PURE__ */ y0(G0), q0 = "FeatureCollection", $0 = [
2515
2510
  ]
2516
2511
  }
2517
2512
  }
2518
- ], j0 = {
2519
- type: q0,
2520
- features: $0
2513
+ ], H0 = {
2514
+ type: $0,
2515
+ features: G0
2521
2516
  };
2522
- var K0 = J0, J, I, F, Z, Q, W0 = [
2517
+ var j0 = W0, J, U, v, Z, Q, K0 = [
2523
2518
  "Point",
2524
2519
  "MultiPoint",
2525
2520
  "LineString",
@@ -2528,36 +2523,36 @@ var K0 = J0, J, I, F, Z, Q, W0 = [
2528
2523
  "MultiPolygon",
2529
2524
  "GeometryCollection"
2530
2525
  ];
2531
- function J0(e) {
2532
- Z = 2, Q = Math.pow(10, 6), F = null, J = [], I = [];
2533
- var t = e.readFields(Z0, {});
2526
+ function W0(e) {
2527
+ Z = 2, Q = Math.pow(10, 6), v = null, J = [], U = [];
2528
+ var t = e.readFields(J0, {});
2534
2529
  return J = null, t;
2535
2530
  }
2536
- function Z0(e, t, i) {
2537
- e === 1 ? J.push(i.readString()) : e === 2 ? Z = i.readVarint() : e === 3 ? Q = Math.pow(10, i.readVarint()) : e === 4 ? X0(i, t) : e === 5 ? g0(i, t) : e === 6 && i0(i, t);
2531
+ function J0(e, t, i) {
2532
+ e === 1 ? J.push(i.readString()) : e === 2 ? Z = i.readVarint() : e === 3 ? Q = Math.pow(10, i.readVarint()) : e === 4 ? Z0(i, t) : e === 5 ? g0(i, t) : e === 6 && i0(i, t);
2538
2533
  }
2539
- function X0(e, t) {
2540
- return t.type = "FeatureCollection", t.features = [], e.readMessage(Q0, t);
2534
+ function Z0(e, t) {
2535
+ return t.type = "FeatureCollection", t.features = [], e.readMessage(X0, t);
2541
2536
  }
2542
2537
  function g0(e, t) {
2543
2538
  t.type = "Feature";
2544
- var i = e.readMessage(Y0, t);
2539
+ var i = e.readMessage(Q0, t);
2545
2540
  return "geometry" in i || (i.geometry = null), i;
2546
2541
  }
2547
2542
  function i0(e, t) {
2548
- return t.type = "Point", e.readMessage(b0, t);
2543
+ return t.type = "Point", e.readMessage(Y0, t);
2544
+ }
2545
+ function X0(e, t, i) {
2546
+ e === 1 ? t.features.push(g0(i, {})) : e === 13 ? U.push(n0(i)) : e === 15 && X(i, t);
2549
2547
  }
2550
2548
  function Q0(e, t, i) {
2551
- e === 1 ? t.features.push(g0(i, {})) : e === 13 ? I.push(n0(i)) : e === 15 && X(i, t);
2549
+ e === 1 ? t.geometry = i0(i, {}) : e === 11 ? t.id = i.readString() : e === 12 ? t.id = i.readSVarint() : e === 13 ? U.push(n0(i)) : e === 14 ? t.properties = X(i, {}) : e === 15 && X(i, t);
2552
2550
  }
2553
2551
  function Y0(e, t, i) {
2554
- e === 1 ? t.geometry = i0(i, {}) : e === 11 ? t.id = i.readString() : e === 12 ? t.id = i.readSVarint() : e === 13 ? I.push(n0(i)) : e === 14 ? t.properties = X(i, {}) : e === 15 && X(i, t);
2552
+ e === 1 ? t.type = K0[i.readVarint()] : e === 2 ? v = i.readPackedVarint() : e === 3 ? b0(t, i, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(i0(i, {}))) : e === 13 ? U.push(n0(i)) : e === 15 && X(i, t);
2555
2553
  }
2556
2554
  function b0(e, t, i) {
2557
- e === 1 ? t.type = W0[i.readVarint()] : e === 2 ? F = i.readPackedVarint() : e === 3 ? e1(t, i, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(i0(i, {}))) : e === 13 ? I.push(n0(i)) : e === 15 && X(i, t);
2558
- }
2559
- function e1(e, t, i) {
2560
- i === "Point" ? e.coordinates = t1(t) : i === "MultiPoint" || i === "LineString" ? e.coordinates = d0(t) : i === "MultiLineString" ? e.coordinates = f0(t) : i === "Polygon" ? e.coordinates = f0(t, !0) : i === "MultiPolygon" && (e.coordinates = i1(t));
2555
+ i === "Point" ? e.coordinates = e1(t) : i === "MultiPoint" || i === "LineString" ? e.coordinates = d0(t) : i === "MultiLineString" ? e.coordinates = f0(t) : i === "Polygon" ? e.coordinates = f0(t, !0) : i === "MultiPolygon" && (e.coordinates = t1(t));
2561
2556
  }
2562
2557
  function n0(e) {
2563
2558
  for (var t = e.readVarint() + e.pos, i = null; e.pos < t; ) {
@@ -2567,14 +2562,14 @@ function n0(e) {
2567
2562
  return i;
2568
2563
  }
2569
2564
  function X(e, t) {
2570
- for (var i = e.readVarint() + e.pos; e.pos < i; ) t[J[e.readVarint()]] = I[e.readVarint()];
2571
- return I = [], t;
2565
+ for (var i = e.readVarint() + e.pos; e.pos < i; ) t[J[e.readVarint()]] = U[e.readVarint()];
2566
+ return U = [], t;
2572
2567
  }
2573
- function t1(e) {
2568
+ function e1(e) {
2574
2569
  for (var t = e.readVarint() + e.pos, i = []; e.pos < t; ) i.push(e.readSVarint() / Q);
2575
2570
  return i;
2576
2571
  }
2577
- function q(e, t, i, a) {
2572
+ function G(e, t, i, a) {
2578
2573
  var r = 0, o = [], n, d, p = [];
2579
2574
  for (d = 0; d < Z; d++) p[d] = 0;
2580
2575
  for (; i ? r < i : e.pos < t; ) {
@@ -2585,24 +2580,24 @@ function q(e, t, i, a) {
2585
2580
  return a && o.push(o[0]), o;
2586
2581
  }
2587
2582
  function d0(e) {
2588
- return q(e, e.readVarint() + e.pos);
2583
+ return G(e, e.readVarint() + e.pos);
2589
2584
  }
2590
2585
  function f0(e, t) {
2591
2586
  var i = e.readVarint() + e.pos;
2592
- if (!F) return [q(e, i, null, t)];
2593
- for (var a = [], r = 0; r < F.length; r++) a.push(q(e, i, F[r], t));
2594
- return F = null, a;
2587
+ if (!v) return [G(e, i, null, t)];
2588
+ for (var a = [], r = 0; r < v.length; r++) a.push(G(e, i, v[r], t));
2589
+ return v = null, a;
2595
2590
  }
2596
- function i1(e) {
2591
+ function t1(e) {
2597
2592
  var t = e.readVarint() + e.pos;
2598
- if (!F) return [[q(e, t, null, !0)]];
2599
- for (var i = [], a = 1, r = 0; r < F[0]; r++) {
2600
- for (var o = [], n = 0; n < F[a]; n++) o.push(q(e, t, F[a + 1 + n], !0));
2601
- a += F[a] + 1, i.push(o);
2593
+ if (!v) return [[G(e, t, null, !0)]];
2594
+ for (var i = [], a = 1, r = 0; r < v[0]; r++) {
2595
+ for (var o = [], n = 0; n < v[a]; n++) o.push(G(e, t, v[a + 1 + n], !0));
2596
+ a += v[a] + 1, i.push(o);
2602
2597
  }
2603
- return F = null, i;
2598
+ return v = null, i;
2604
2599
  }
2605
- var n1 = K0, r0 = {};
2600
+ var i1 = j0, r0 = {};
2606
2601
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2607
2602
  r0.read = function(e, t, i, a, r) {
2608
2603
  var o, n, d = r * 8 - a - 1, p = (1 << d) - 1, l = p >> 1, s = -7, u = i ? r - 1 : 0, x = i ? -1 : 1, g = e[t + u];
@@ -2627,7 +2622,7 @@ r0.write = function(e, t, i, a, r, o) {
2627
2622
  ;
2628
2623
  e[i + g - S] |= V * 128;
2629
2624
  };
2630
- var r1 = h, K = r0;
2625
+ var n1 = h, K = r0;
2631
2626
  function h(e) {
2632
2627
  this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
2633
2628
  }
@@ -2635,7 +2630,7 @@ h.Varint = 0;
2635
2630
  h.Fixed64 = 1;
2636
2631
  h.Bytes = 2;
2637
2632
  h.Fixed32 = 5;
2638
- var t0 = 65536 * 65536, h0 = 1 / t0, a1 = 12, v0 = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
2633
+ var t0 = 65536 * 65536, h0 = 1 / t0, r1 = 12, F0 = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
2639
2634
  h.prototype = {
2640
2635
  destroy: function() {
2641
2636
  this.buf = null;
@@ -2678,7 +2673,7 @@ h.prototype = {
2678
2673
  },
2679
2674
  readVarint: function(e) {
2680
2675
  var t = this.buf, i, a;
2681
- return a = t[this.pos++], i = a & 127, a < 128 || (a = t[this.pos++], i |= (a & 127) << 7, a < 128) || (a = t[this.pos++], i |= (a & 127) << 14, a < 128) || (a = t[this.pos++], i |= (a & 127) << 21, a < 128) ? i : (a = t[this.pos], i |= (a & 15) << 28, o1(i, e, this));
2676
+ return a = t[this.pos++], i = a & 127, a < 128 || (a = t[this.pos++], i |= (a & 127) << 7, a < 128) || (a = t[this.pos++], i |= (a & 127) << 14, a < 128) || (a = t[this.pos++], i |= (a & 127) << 21, a < 128) ? i : (a = t[this.pos], i |= (a & 15) << 28, a1(i, e, this));
2682
2677
  },
2683
2678
  readVarint64: function() {
2684
2679
  return this.readVarint(!0);
@@ -2692,7 +2687,7 @@ h.prototype = {
2692
2687
  },
2693
2688
  readString: function() {
2694
2689
  var e = this.readVarint() + this.pos, t = this.pos;
2695
- return this.pos = e, e - t >= a1 && v0 ? F1(this.buf, t, e) : v1(this.buf, t, e);
2690
+ return this.pos = e, e - t >= r1 && F0 ? F1(this.buf, t, e) : g1(this.buf, t, e);
2696
2691
  },
2697
2692
  readBytes: function() {
2698
2693
  var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
@@ -2777,20 +2772,20 @@ h.prototype = {
2777
2772
  return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
2778
2773
  },
2779
2774
  writeFixed32: function(e) {
2780
- this.realloc(4), O(this.buf, e, this.pos), this.pos += 4;
2775
+ this.realloc(4), I(this.buf, e, this.pos), this.pos += 4;
2781
2776
  },
2782
2777
  writeSFixed32: function(e) {
2783
- this.realloc(4), O(this.buf, e, this.pos), this.pos += 4;
2778
+ this.realloc(4), I(this.buf, e, this.pos), this.pos += 4;
2784
2779
  },
2785
2780
  writeFixed64: function(e) {
2786
- this.realloc(8), O(this.buf, e & -1, this.pos), O(this.buf, Math.floor(e * h0), this.pos + 4), this.pos += 8;
2781
+ this.realloc(8), I(this.buf, e & -1, this.pos), I(this.buf, Math.floor(e * h0), this.pos + 4), this.pos += 8;
2787
2782
  },
2788
2783
  writeSFixed64: function(e) {
2789
- this.realloc(8), O(this.buf, e & -1, this.pos), O(this.buf, Math.floor(e * h0), this.pos + 4), this.pos += 8;
2784
+ this.realloc(8), I(this.buf, e & -1, this.pos), I(this.buf, Math.floor(e * h0), this.pos + 4), this.pos += 8;
2790
2785
  },
2791
2786
  writeVarint: function(e) {
2792
2787
  if (e = +e || 0, e > 268435455 || e < 0) {
2793
- s1(e, this);
2788
+ o1(e, this);
2794
2789
  return;
2795
2790
  }
2796
2791
  this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
@@ -2804,7 +2799,7 @@ h.prototype = {
2804
2799
  writeString: function(e) {
2805
2800
  e = String(e), this.realloc(e.length * 4), this.pos++;
2806
2801
  var t = this.pos;
2807
- this.pos = _1(this.buf, e, this.pos);
2802
+ this.pos = v1(this.buf, e, this.pos);
2808
2803
  var i = this.pos - t;
2809
2804
  i >= 128 && p0(t, i, this), this.pos = t - 1, this.writeVarint(i), this.pos += i;
2810
2805
  },
@@ -2830,31 +2825,31 @@ h.prototype = {
2830
2825
  this.writeTag(e, h.Bytes), this.writeRawMessage(t, i);
2831
2826
  },
2832
2827
  writePackedVarint: function(e, t) {
2833
- t.length && this.writeMessage(e, c1, t);
2828
+ t.length && this.writeMessage(e, u1, t);
2834
2829
  },
2835
2830
  writePackedSVarint: function(e, t) {
2836
- t.length && this.writeMessage(e, d1, t);
2831
+ t.length && this.writeMessage(e, c1, t);
2837
2832
  },
2838
2833
  writePackedBoolean: function(e, t) {
2839
- t.length && this.writeMessage(e, p1, t);
2834
+ t.length && this.writeMessage(e, h1, t);
2840
2835
  },
2841
2836
  writePackedFloat: function(e, t) {
2842
- t.length && this.writeMessage(e, f1, t);
2837
+ t.length && this.writeMessage(e, d1, t);
2843
2838
  },
2844
2839
  writePackedDouble: function(e, t) {
2845
- t.length && this.writeMessage(e, h1, t);
2840
+ t.length && this.writeMessage(e, f1, t);
2846
2841
  },
2847
2842
  writePackedFixed32: function(e, t) {
2848
- t.length && this.writeMessage(e, m1, t);
2843
+ t.length && this.writeMessage(e, p1, t);
2849
2844
  },
2850
2845
  writePackedSFixed32: function(e, t) {
2851
- t.length && this.writeMessage(e, y1, t);
2846
+ t.length && this.writeMessage(e, m1, t);
2852
2847
  },
2853
2848
  writePackedFixed64: function(e, t) {
2854
- t.length && this.writeMessage(e, x1, t);
2849
+ t.length && this.writeMessage(e, y1, t);
2855
2850
  },
2856
2851
  writePackedSFixed64: function(e, t) {
2857
- t.length && this.writeMessage(e, g1, t);
2852
+ t.length && this.writeMessage(e, x1, t);
2858
2853
  },
2859
2854
  writeBytesField: function(e, t) {
2860
2855
  this.writeTag(e, h.Bytes), this.writeBytes(t);
@@ -2890,27 +2885,27 @@ h.prototype = {
2890
2885
  this.writeVarintField(e, !!t);
2891
2886
  }
2892
2887
  };
2893
- function o1(e, t, i) {
2888
+ function a1(e, t, i) {
2894
2889
  var a = i.buf, r, o;
2895
- if (o = a[i.pos++], r = (o & 112) >> 4, o < 128 || (o = a[i.pos++], r |= (o & 127) << 3, o < 128) || (o = a[i.pos++], r |= (o & 127) << 10, o < 128) || (o = a[i.pos++], r |= (o & 127) << 17, o < 128) || (o = a[i.pos++], r |= (o & 127) << 24, o < 128) || (o = a[i.pos++], r |= (o & 1) << 31, o < 128)) return U(e, r, t);
2890
+ if (o = a[i.pos++], r = (o & 112) >> 4, o < 128 || (o = a[i.pos++], r |= (o & 127) << 3, o < 128) || (o = a[i.pos++], r |= (o & 127) << 10, o < 128) || (o = a[i.pos++], r |= (o & 127) << 17, o < 128) || (o = a[i.pos++], r |= (o & 127) << 24, o < 128) || (o = a[i.pos++], r |= (o & 1) << 31, o < 128)) return O(e, r, t);
2896
2891
  throw new Error("Expected varint not more than 10 bytes");
2897
2892
  }
2898
2893
  function M(e) {
2899
2894
  return e.type === h.Bytes ? e.readVarint() + e.pos : e.pos + 1;
2900
2895
  }
2901
- function U(e, t, i) {
2896
+ function O(e, t, i) {
2902
2897
  return i ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
2903
2898
  }
2904
- function s1(e, t) {
2899
+ function o1(e, t) {
2905
2900
  var i, a;
2906
2901
  if (e >= 0 ? (i = e % 4294967296 | 0, a = e / 4294967296 | 0) : (i = ~(-e % 4294967296), a = ~(-e / 4294967296), i ^ 4294967295 ? i = i + 1 | 0 : (i = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
2907
2902
  throw new Error("Given varint doesn't fit into 10 bytes");
2908
- t.realloc(10), l1(i, a, t), u1(a, t);
2903
+ t.realloc(10), s1(i, a, t), l1(a, t);
2909
2904
  }
2910
- function l1(e, t, i) {
2905
+ function s1(e, t, i) {
2911
2906
  i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos] = e & 127;
2912
2907
  }
2913
- function u1(e, t) {
2908
+ function l1(e, t) {
2914
2909
  var i = (e & 7) << 4;
2915
2910
  t.buf[t.pos++] |= i | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
2916
2911
  }
@@ -2919,43 +2914,43 @@ function p0(e, t, i) {
2919
2914
  i.realloc(a);
2920
2915
  for (var r = i.pos - 1; r >= e; r--) i.buf[r + a] = i.buf[r];
2921
2916
  }
2922
- function c1(e, t) {
2917
+ function u1(e, t) {
2923
2918
  for (var i = 0; i < e.length; i++) t.writeVarint(e[i]);
2924
2919
  }
2925
- function d1(e, t) {
2920
+ function c1(e, t) {
2926
2921
  for (var i = 0; i < e.length; i++) t.writeSVarint(e[i]);
2927
2922
  }
2928
- function f1(e, t) {
2923
+ function d1(e, t) {
2929
2924
  for (var i = 0; i < e.length; i++) t.writeFloat(e[i]);
2930
2925
  }
2931
- function h1(e, t) {
2926
+ function f1(e, t) {
2932
2927
  for (var i = 0; i < e.length; i++) t.writeDouble(e[i]);
2933
2928
  }
2934
- function p1(e, t) {
2929
+ function h1(e, t) {
2935
2930
  for (var i = 0; i < e.length; i++) t.writeBoolean(e[i]);
2936
2931
  }
2937
- function m1(e, t) {
2932
+ function p1(e, t) {
2938
2933
  for (var i = 0; i < e.length; i++) t.writeFixed32(e[i]);
2939
2934
  }
2940
- function y1(e, t) {
2935
+ function m1(e, t) {
2941
2936
  for (var i = 0; i < e.length; i++) t.writeSFixed32(e[i]);
2942
2937
  }
2943
- function x1(e, t) {
2938
+ function y1(e, t) {
2944
2939
  for (var i = 0; i < e.length; i++) t.writeFixed64(e[i]);
2945
2940
  }
2946
- function g1(e, t) {
2941
+ function x1(e, t) {
2947
2942
  for (var i = 0; i < e.length; i++) t.writeSFixed64(e[i]);
2948
2943
  }
2949
2944
  function W(e, t) {
2950
2945
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
2951
2946
  }
2952
- function O(e, t, i) {
2947
+ function I(e, t, i) {
2953
2948
  e[i] = t, e[i + 1] = t >>> 8, e[i + 2] = t >>> 16, e[i + 3] = t >>> 24;
2954
2949
  }
2955
2950
  function m0(e, t) {
2956
2951
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
2957
2952
  }
2958
- function v1(e, t, i) {
2953
+ function g1(e, t, i) {
2959
2954
  for (var a = "", r = t; r < i; ) {
2960
2955
  var o = e[r], n = null, d = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
2961
2956
  if (r + d > i) break;
@@ -2965,9 +2960,9 @@ function v1(e, t, i) {
2965
2960
  return a;
2966
2961
  }
2967
2962
  function F1(e, t, i) {
2968
- return v0.decode(e.subarray(t, i));
2963
+ return F0.decode(e.subarray(t, i));
2969
2964
  }
2970
- function _1(e, t, i) {
2965
+ function v1(e, t, i) {
2971
2966
  for (var a = 0, r, o; a < t.length; a++) {
2972
2967
  if (r = t.charCodeAt(a), r > 55295 && r < 57344)
2973
2968
  if (o)
@@ -2985,7 +2980,7 @@ function _1(e, t, i) {
2985
2980
  }
2986
2981
  return i;
2987
2982
  }
2988
- const w1 = /* @__PURE__ */ y0(r1), R1 = (e) => {
2983
+ const w1 = /* @__PURE__ */ y0(n1), N1 = (e) => {
2989
2984
  var a, r;
2990
2985
  if (!e || !e.data)
2991
2986
  return {};
@@ -2997,19 +2992,19 @@ const w1 = /* @__PURE__ */ y0(r1), R1 = (e) => {
2997
2992
  }
2998
2993
  return t;
2999
2994
  };
3000
- function k1(e, t = 0) {
2995
+ function _1(e, t = 0) {
3001
2996
  let i = null;
3002
2997
  return (...a) => {
3003
2998
  i && clearTimeout(i), i = setTimeout(() => e(...a), t);
3004
2999
  };
3005
3000
  }
3006
- const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3001
+ const k1 = { class: "kong-ui-public-analytics-geo-map" }, M1 = ["id"], L1 = {
3007
3002
  key: 0,
3008
3003
  class: "legend"
3009
- }, P1 = {
3004
+ }, B1 = {
3010
3005
  key: 0,
3011
3006
  class: "legend-title"
3012
- }, S1 = { class: "legend-text" }, V1 = /* @__PURE__ */ L0({
3007
+ }, P1 = { class: "legend-text" }, S1 = /* @__PURE__ */ L0({
3013
3008
  __name: "AnalyticsGeoMap",
3014
3009
  props: {
3015
3010
  countryMetrics: {},
@@ -3024,7 +3019,7 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3024
3019
  },
3025
3020
  emits: ["boundsChange"],
3026
3021
  setup(e, { emit: t }) {
3027
- const i = import("./countries-simple-geo-BFUDnSiE.js").then((c) => c.default), a = t, { i18n: r } = H0.useI18n(), o = B0(), n = l0(), d = l0(null), p = D(() => ({
3022
+ const i = import("./countries-simple-geo-BFUDnSiE.js").then((c) => c.default), a = t, { i18n: r } = A0.useI18n(), o = B0(), n = l0(), d = l0(null), p = C(() => ({
3028
3023
  "fill-color": [
3029
3024
  "match",
3030
3025
  [
@@ -3045,10 +3040,10 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3045
3040
  // default color if no match
3046
3041
  ],
3047
3042
  "fill-opacity": 0.7
3048
- })), l = D(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), s = D(() => Math.log(Math.min(...Object.values(e.countryMetrics)))), u = D(() => Math.log(Math.max(...Object.values(e.countryMetrics)))), x = (c) => {
3043
+ })), l = C(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), s = C(() => Math.log(Math.min(...Object.values(e.countryMetrics)))), u = C(() => Math.log(Math.max(...Object.values(e.countryMetrics)))), x = (c) => {
3049
3044
  const f = Math.log(c), m = (u.value - s.value) / 5;
3050
3045
  return f >= s.value + 4 * m ? "#296378" : f >= s.value + 3 * m ? "#0D8093" : f >= s.value + 2 * m ? "#009FA9" : f >= s.value + 1 * m ? "#00BDB7" : "#0CDCBD";
3051
- }, g = D(() => e.metric && r.t(`metrics.${e.metric}`) || ""), S = D(() => {
3046
+ }, g = C(() => e.metric && r.t(`metrics.${e.metric}`) || ""), S = C(() => {
3052
3047
  const f = (u.value - s.value) / 5, y = [
3053
3048
  s.value + 4 * f,
3054
3049
  s.value + 3 * f,
@@ -3056,19 +3051,19 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3056
3051
  s.value + 1 * f,
3057
3052
  s.value
3058
3053
  ];
3059
- return y.map((m, w) => {
3060
- const k = w === 0 ? u.value : y[w - 1];
3061
- let v = "";
3062
- return w === 0 ? v = `> ${G(Math.trunc(Math.exp(m)), { capital: !0 })}` : w === y.length - 1 ? v = `< ${G(Math.trunc(Math.exp(k)), { capital: !0 })}` : v = `${G(Math.trunc(Math.exp(m)), { capital: !0 })} - ${G(Math.trunc(Math.exp(k)), { capital: !0 })}`, {
3054
+ return y.map((m, _) => {
3055
+ const k = _ === 0 ? u.value : y[_ - 1];
3056
+ let F = "";
3057
+ return _ === 0 ? F = `> ${$(Math.trunc(Math.exp(m)), { capital: !0 })}` : _ === y.length - 1 ? F = `< ${$(Math.trunc(Math.exp(k)), { capital: !0 })}` : F = `${$(Math.trunc(Math.exp(m)), { capital: !0 })} - ${$(Math.trunc(Math.exp(k)), { capital: !0 })}`, {
3063
3058
  color: x(Math.exp(m)),
3064
- range: v
3059
+ range: F
3065
3060
  };
3066
3061
  });
3067
3062
  }), V = (c) => {
3068
3063
  const f = c.flat(1);
3069
3064
  return Array.isArray(f[0]) && Array.isArray(f[0][0]) ? V(f) : f;
3070
3065
  }, a0 = (c) => {
3071
- var y, m, w, k, v, N, E;
3066
+ var y, m, _, k, F, N, E;
3072
3067
  if (c === "RU") {
3073
3068
  (y = n.value) == null || y.fitBounds([
3074
3069
  [20, 40],
@@ -3082,7 +3077,7 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3082
3077
  ]);
3083
3078
  return;
3084
3079
  } else if (c === "FR") {
3085
- (w = n.value) == null || w.fitBounds([
3080
+ (_ = n.value) == null || _.fitBounds([
3086
3081
  [-5, 42],
3087
3082
  [9, 51]
3088
3083
  ]);
@@ -3094,20 +3089,20 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3094
3089
  ]);
3095
3090
  return;
3096
3091
  }
3097
- const f = (v = d.value) == null ? void 0 : v.features.find((_) => {
3098
- var L, B, P, T, C;
3099
- return (L = _.properties) != null && L.ISO_A2 ? ((B = _.properties) == null ? void 0 : B.ISO_A2) === c : ((P = _.properties) == null ? void 0 : P.iso_a2) === "-99" ? ((T = _.properties) == null ? void 0 : T.iso_a2_eh) === c : ((C = _.properties) == null ? void 0 : C.iso_a2) === c;
3092
+ const f = (F = d.value) == null ? void 0 : F.features.find((w) => {
3093
+ var L, B, P, T, D;
3094
+ return (L = w.properties) != null && L.ISO_A2 ? ((B = w.properties) == null ? void 0 : B.ISO_A2) === c : ((P = w.properties) == null ? void 0 : P.iso_a2) === "-99" ? ((T = w.properties) == null ? void 0 : T.iso_a2_eh) === c : ((D = w.properties) == null ? void 0 : D.iso_a2) === c;
3100
3095
  });
3101
3096
  if (f) {
3102
- const _ = (N = f.geometry) == null ? void 0 : N.coordinates;
3103
- if (!_) return;
3104
- const L = V(_), B = L.map((R) => R[1]), P = L.map((R) => R[0]), T = Math.min(...B), C = Math.max(...B), $ = Math.min(...P), j = Math.max(...P);
3097
+ const w = (N = f.geometry) == null ? void 0 : N.coordinates;
3098
+ if (!w) return;
3099
+ const L = V(w), B = L.map((R) => R[1]), P = L.map((R) => R[0]), T = Math.min(...B), D = Math.max(...B), H = Math.min(...P), j = Math.max(...P);
3105
3100
  (E = n.value) == null || E.fitBounds([
3106
- [$, T],
3107
- [j, C]
3101
+ [H, T],
3102
+ [j, D]
3108
3103
  ]);
3109
3104
  }
3110
- }, z = D(() => {
3105
+ }, z = C(() => {
3111
3106
  const c = {
3112
3107
  container: o,
3113
3108
  style: { version: 8, sources: {}, layers: [] },
@@ -3117,16 +3112,10 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3117
3112
  [-179, -75],
3118
3113
  // -75 south tip of south america
3119
3114
  [179, 90]
3120
- ],
3121
- cooperativeGestures: !0,
3122
- locale: {
3123
- "CooperativeGesturesHandler.WindowsHelpText": r.t("cooperative_gestures.windows_zoom_help_text"),
3124
- "CooperativeGesturesHandler.MacHelpText": r.t("cooperative_gestures.mac_zoom_help_text"),
3125
- "CooperativeGesturesHandler.MobileHelpText": r.t("cooperative_gestures.mobile_zoom_help_text")
3126
- }
3115
+ ]
3127
3116
  };
3128
3117
  return e.bounds && (c.bounds = e.bounds), c;
3129
- }), F0 = k1(() => {
3118
+ }), v0 = _1(() => {
3130
3119
  if (!n.value) return;
3131
3120
  const c = n.value.getBounds(), f = c.getSouthWest(), y = c.getNorthEast();
3132
3121
  a("boundsChange", [
@@ -3137,20 +3126,20 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3137
3126
  return P0(async () => {
3138
3127
  var c, f, y;
3139
3128
  try {
3140
- const m = await i, w = await fetch(m), k = new Uint8Array(await w.arrayBuffer()), v = n1(new w1(k));
3141
- d.value = v, n.value = new C0(z.value), n.value.on("load", () => {
3142
- var E, _, L, B, P, T, C;
3129
+ const m = await i, _ = await fetch(m), k = new Uint8Array(await _.arrayBuffer()), F = i1(new w1(k));
3130
+ d.value = F, n.value = new D0(z.value), n.value.on("load", () => {
3131
+ var E, w, L, B, P, T, D;
3143
3132
  (E = n.value) == null || E.addSource("countries", {
3144
3133
  type: "geojson",
3145
- data: v
3146
- }), (_ = n.value) == null || _.addLayer({
3134
+ data: F
3135
+ }), (w = n.value) == null || w.addLayer({
3147
3136
  id: "countries-layer",
3148
3137
  type: "fill",
3149
3138
  source: "countries",
3150
3139
  paint: p.value
3151
3140
  }), (L = n.value) == null || L.addSource("lakes", {
3152
3141
  type: "geojson",
3153
- data: j0
3142
+ data: H0
3154
3143
  }), (B = n.value) == null || B.addLayer({
3155
3144
  id: "lakes-layer",
3156
3145
  type: "fill",
@@ -3159,24 +3148,24 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3159
3148
  "fill-color": "#FFFFFF"
3160
3149
  }
3161
3150
  });
3162
- const N = new D0({
3151
+ const N = new C0({
3163
3152
  closeButton: !1,
3164
3153
  closeOnClick: !1
3165
3154
  });
3166
- (P = n.value) == null || P.on("mousemove", "countries-layer", ($) => {
3155
+ (P = n.value) == null || P.on("mousemove", "countries-layer", (H) => {
3167
3156
  var R;
3168
- const j = (R = $.features) == null ? void 0 : R[0];
3157
+ const j = (R = H.features) == null ? void 0 : R[0];
3169
3158
  if (j) {
3170
- const { iso_a2: o0, iso_a2_eh: _0, ISO_A2: w0, admin: s0 } = j.properties, k0 = w0 ?? o0 === "-99" ? _0 : o0, Y = e.countryMetrics[k0];
3159
+ const { iso_a2: o0, iso_a2_eh: w0, ISO_A2: _0, admin: s0 } = j.properties, k0 = _0 ?? o0 === "-99" ? w0 : o0, Y = e.countryMetrics[k0];
3171
3160
  if (Y !== void 0) {
3172
- const M0 = e.showTooltipValue ? `<strong>${s0}</strong>: ${G(Y, { capital: !0 })} ${r.t(`metricUnits.${e.metricUnit}`, { plural: Y > 1 ? "s" : "" })}` : `<strong>${s0}</strong>`;
3173
- N.setLngLat($.lngLat).setHTML(M0).addTo(n.value);
3161
+ const M0 = e.showTooltipValue ? `<strong>${s0}</strong>: ${$(Y, { capital: !0 })} ${r.t(`metricUnits.${e.metricUnit}`, { plural: Y > 1 ? "s" : "" })}` : `<strong>${s0}</strong>`;
3162
+ N.setLngLat(H.lngLat).setHTML(M0).addTo(n.value);
3174
3163
  } else
3175
3164
  N.remove();
3176
3165
  }
3177
3166
  }), (T = n.value) == null || T.on("mouseleave", "countries-layer", () => {
3178
3167
  N.remove();
3179
- }), (C = n.value) == null || C.on("move", F0), e.fitToCountry && a0(e.fitToCountry);
3168
+ }), (D = n.value) == null || D.on("move", v0), e.fitToCountry && a0(e.fitToCountry);
3180
3169
  }), (c = n.value) == null || c.dragRotate.disable(), (f = n.value) == null || f.keyboard.disable(), (y = n.value) == null || y.touchZoomRotate.disableRotation();
3181
3170
  } catch (m) {
3182
3171
  console.error(m);
@@ -3205,15 +3194,15 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3205
3194
  }), b(() => e.bounds, (c, f) => {
3206
3195
  if (!c) return;
3207
3196
  const y = c == null ? void 0 : c.flat(), m = f == null ? void 0 : f.flat();
3208
- !(y && m && y.length === m.length && y.every((k, v) => Math.round(k * 100) / 100 === Math.round(m[v] * 100) / 100)) && n.value && n.value.fitBounds(c);
3209
- }), (c, f) => (H(), A("div", M1, [
3197
+ !(y && m && y.length === m.length && y.every((k, F) => Math.round(k * 100) / 100 === Math.round(m[F] * 100) / 100)) && n.value && n.value.fitBounds(c);
3198
+ }), (c, f) => (q(), A("div", k1, [
3210
3199
  e0("div", {
3211
3200
  id: S0(o),
3212
3201
  class: "analytics-geo-map-container"
3213
- }, null, 8, L1),
3214
- l.value ? (H(), A("div", B1, [
3215
- c.metric ? (H(), A("div", P1, c0(g.value), 1)) : u0("", !0),
3216
- (H(!0), A(V0, null, z0(S.value, (y, m) => (H(), A("div", {
3202
+ }, null, 8, M1),
3203
+ l.value ? (q(), A("div", L1, [
3204
+ c.metric ? (q(), A("div", B1, c0(g.value), 1)) : u0("", !0),
3205
+ (q(!0), A(V0, null, z0(S.value, (y, m) => (q(), A("div", {
3217
3206
  key: m,
3218
3207
  class: "legend-item"
3219
3208
  }, [
@@ -3221,19 +3210,19 @@ const M1 = { class: "kong-ui-public-analytics-geo-map" }, L1 = ["id"], B1 = {
3221
3210
  class: "legend-color",
3222
3211
  style: T0({ backgroundColor: y.color })
3223
3212
  }, null, 4),
3224
- e0("span", S1, c0(y.range), 1)
3213
+ e0("span", P1, c0(y.range), 1)
3225
3214
  ]))), 128))
3226
3215
  ])) : u0("", !0)
3227
3216
  ]));
3228
3217
  }
3229
- }), z1 = (e, t) => {
3218
+ }), V1 = (e, t) => {
3230
3219
  const i = e.__vccOpts || e;
3231
3220
  for (const [a, r] of t)
3232
3221
  i[a] = r;
3233
3222
  return i;
3234
- }, U1 = /* @__PURE__ */ z1(V1, [["__scopeId", "data-v-6a30f036"]]);
3223
+ }, R1 = /* @__PURE__ */ V1(S1, [["__scopeId", "data-v-b4a93a2e"]]);
3235
3224
  export {
3236
- U1 as AnalyticsGeoMap,
3237
- k1 as debounce,
3238
- R1 as exploreResultToCountryMetrics
3225
+ R1 as AnalyticsGeoMap,
3226
+ _1 as debounce,
3227
+ N1 as exploreResultToCountryMetrics
3239
3228
  };