@kong-ui-public/analytics-geo-map 1.3.6-pr.2506.a8e979d97.0 → 1.3.6

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