@maptiler/sdk 4.0.0-rc.1 → 4.0.0-rc.2

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.
@@ -4,7 +4,7 @@ var Dn = (r) => {
4
4
  };
5
5
  var Mo = (r, e, t) => e in r ? _o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
6
  var y = (r, e, t) => Mo(r, typeof e != "symbol" ? e + "" : e, t), Er = (r, e, t) => e.has(r) || Dn("Cannot " + t);
7
- var E = (r, e, t) => (Er(r, e, "read from private field"), t ? t.call(r) : e.get(r)), Y = (r, e, t) => e.has(r) ? Dn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), J = (r, e, t, n) => (Er(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), Q = (r, e, t) => (Er(r, e, "access private method"), t);
7
+ var E = (r, e, t) => (Er(r, e, "read from private field"), t ? t.call(r) : e.get(r)), Y = (r, e, t) => e.has(r) ? Dn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Q = (r, e, t, n) => (Er(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), ee = (r, e, t) => (Er(r, e, "access private method"), t);
8
8
  import k from "maplibre-gl";
9
9
  import { Base64 as Po } from "js-base64";
10
10
  import Ro from "events";
@@ -3190,6 +3190,21 @@ var us = 8, cs = {
3190
3190
  },
3191
3191
  "property-type": "data-constant"
3192
3192
  },
3193
+ resampling: {
3194
+ type: "enum",
3195
+ values: {
3196
+ linear: {},
3197
+ nearest: {}
3198
+ },
3199
+ default: "linear",
3200
+ expression: {
3201
+ interpolated: !1,
3202
+ parameters: [
3203
+ "zoom"
3204
+ ]
3205
+ },
3206
+ "property-type": "data-constant"
3207
+ },
3193
3208
  "raster-resampling": {
3194
3209
  type: "enum",
3195
3210
  values: {
@@ -3330,6 +3345,21 @@ var us = 8, cs = {
3330
3345
  ]
3331
3346
  },
3332
3347
  "property-type": "data-constant"
3348
+ },
3349
+ resampling: {
3350
+ type: "enum",
3351
+ values: {
3352
+ linear: {},
3353
+ nearest: {}
3354
+ },
3355
+ default: "linear",
3356
+ expression: {
3357
+ interpolated: !1,
3358
+ parameters: [
3359
+ "zoom"
3360
+ ]
3361
+ },
3362
+ "property-type": "data-constant"
3333
3363
  }
3334
3364
  }, Hs = {
3335
3365
  "background-color": {
@@ -3729,6 +3759,21 @@ var us = 8, cs = {
3729
3759
  ]
3730
3760
  },
3731
3761
  "property-type": "color-ramp"
3762
+ },
3763
+ resampling: {
3764
+ type: "enum",
3765
+ values: {
3766
+ linear: {},
3767
+ nearest: {}
3768
+ },
3769
+ default: "linear",
3770
+ expression: {
3771
+ interpolated: !1,
3772
+ parameters: [
3773
+ "zoom"
3774
+ ]
3775
+ },
3776
+ "property-type": "data-constant"
3732
3777
  }
3733
3778
  },
3734
3779
  paint_background: Hs,
@@ -3793,12 +3838,12 @@ class dn {
3793
3838
  return this.bindings[e] ? !0 : this.parent ? this.parent.has(e) : !1;
3794
3839
  }
3795
3840
  }
3796
- const sr = { kind: "null" }, S = { kind: "number" }, P = { kind: "string" }, M = { kind: "boolean" }, be = { kind: "color" }, lr = {
3841
+ const sr = { kind: "null" }, S = { kind: "number" }, I = { kind: "string" }, P = { kind: "boolean" }, be = { kind: "color" }, lr = {
3797
3842
  kind: "projectionDefinition"
3798
- }, qe = { kind: "object" }, _ = { kind: "value" }, Js = { kind: "error" }, ur = { kind: "collator" }, cr = { kind: "formatted" }, pr = { kind: "padding" }, gt = { kind: "colorArray" }, fr = { kind: "numberArray" }, It = { kind: "resolvedImage" }, dr = {
3843
+ }, qe = { kind: "object" }, M = { kind: "value" }, Js = { kind: "error" }, ur = { kind: "collator" }, cr = { kind: "formatted" }, pr = { kind: "padding" }, gt = { kind: "colorArray" }, fr = { kind: "numberArray" }, It = { kind: "resolvedImage" }, dr = {
3799
3844
  kind: "variableAnchorOffsetCollection"
3800
3845
  };
3801
- function ae(r, e) {
3846
+ function J(r, e) {
3802
3847
  return {
3803
3848
  kind: "array",
3804
3849
  itemType: r,
@@ -3815,13 +3860,13 @@ function D(r) {
3815
3860
  const Qs = [
3816
3861
  sr,
3817
3862
  S,
3863
+ I,
3818
3864
  P,
3819
- M,
3820
3865
  be,
3821
3866
  lr,
3822
3867
  cr,
3823
3868
  qe,
3824
- ae(_),
3869
+ J(M),
3825
3870
  pr,
3826
3871
  fr,
3827
3872
  gt,
@@ -4552,9 +4597,9 @@ function H(r) {
4552
4597
  if (r === null)
4553
4598
  return sr;
4554
4599
  if (typeof r == "string")
4555
- return P;
4600
+ return I;
4556
4601
  if (typeof r == "boolean")
4557
- return M;
4602
+ return P;
4558
4603
  if (typeof r == "number")
4559
4604
  return S;
4560
4605
  if (r instanceof $)
@@ -4585,11 +4630,11 @@ function H(r) {
4585
4630
  else {
4586
4631
  if (t === a)
4587
4632
  continue;
4588
- t = _;
4633
+ t = M;
4589
4634
  break;
4590
4635
  }
4591
4636
  }
4592
- return ae(t || _, e);
4637
+ return J(t || M, e);
4593
4638
  } else
4594
4639
  return qe;
4595
4640
  }
@@ -4621,9 +4666,9 @@ class ot {
4621
4666
  }
4622
4667
  }
4623
4668
  const Ft = {
4624
- string: P,
4669
+ string: I,
4625
4670
  number: S,
4626
- boolean: M,
4671
+ boolean: P,
4627
4672
  object: qe
4628
4673
  };
4629
4674
  class fe {
@@ -4643,14 +4688,14 @@ class fe {
4643
4688
  return t.error('The item type argument of "array" must be one of string, number, boolean', 1);
4644
4689
  s = Ft[u], n++;
4645
4690
  } else
4646
- s = _;
4691
+ s = M;
4647
4692
  let l;
4648
4693
  if (e.length > 3) {
4649
4694
  if (e[2] !== null && (typeof e[2] != "number" || e[2] < 0 || e[2] !== Math.floor(e[2])))
4650
4695
  return t.error('The length argument to "array" must be a positive integer literal', 2);
4651
4696
  l = e[2], n++;
4652
4697
  }
4653
- a = ae(s, l);
4698
+ a = J(s, l);
4654
4699
  } else {
4655
4700
  if (!Ft[i])
4656
4701
  throw new Error(`Types doesn't contain name = ${i}`);
@@ -4658,7 +4703,7 @@ class fe {
4658
4703
  }
4659
4704
  const o = [];
4660
4705
  for (; n < e.length; n++) {
4661
- const s = t.parse(e[n], n, _);
4706
+ const s = t.parse(e[n], n, M);
4662
4707
  if (!s)
4663
4708
  return null;
4664
4709
  o.push(s);
@@ -4683,10 +4728,10 @@ class fe {
4683
4728
  }
4684
4729
  }
4685
4730
  const Jn = {
4686
- "to-boolean": M,
4731
+ "to-boolean": P,
4687
4732
  "to-color": be,
4688
4733
  "to-number": S,
4689
- "to-string": P
4734
+ "to-string": I
4690
4735
  };
4691
4736
  class Re {
4692
4737
  constructor(e, t) {
@@ -4702,7 +4747,7 @@ class Re {
4702
4747
  return t.error("Expected one argument.");
4703
4748
  const a = Jn[n], i = [];
4704
4749
  for (let o = 1; o < e.length; o++) {
4705
- const s = t.parse(e[o], o, _);
4750
+ const s = t.parse(e[o], o, M);
4706
4751
  if (!s)
4707
4752
  return null;
4708
4753
  i.push(s);
@@ -4967,7 +5012,7 @@ class yn {
4967
5012
  static parse(e, t) {
4968
5013
  if (e.length !== 3)
4969
5014
  return t.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
4970
- const n = t.parse(e[1], 1, S), a = t.parse(e[2], 2, ae(t.expectedType || _));
5015
+ const n = t.parse(e[1], 1, S), a = t.parse(e[2], 2, J(t.expectedType || M));
4971
5016
  if (!n || !a)
4972
5017
  return null;
4973
5018
  const i = a.type;
@@ -4992,13 +5037,13 @@ class yn {
4992
5037
  }
4993
5038
  class gn {
4994
5039
  constructor(e, t) {
4995
- this.type = M, this.needle = e, this.haystack = t;
5040
+ this.type = P, this.needle = e, this.haystack = t;
4996
5041
  }
4997
5042
  static parse(e, t) {
4998
5043
  if (e.length !== 3)
4999
5044
  return t.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
5000
- const n = t.parse(e[1], 1, _), a = t.parse(e[2], 2, _);
5001
- return !n || !a ? null : hn(n.type, [M, P, S, sr, _]) ? new gn(n, a) : t.error(`Expected first argument to be of type boolean, string, number or null, but found ${D(n.type)} instead`);
5045
+ const n = t.parse(e[1], 1, M), a = t.parse(e[2], 2, M);
5046
+ return !n || !a ? null : hn(n.type, [P, I, S, sr, M]) ? new gn(n, a) : t.error(`Expected first argument to be of type boolean, string, number or null, but found ${D(n.type)} instead`);
5002
5047
  }
5003
5048
  evaluate(e) {
5004
5049
  const t = this.needle.evaluate(e), n = this.haystack.evaluate(e);
@@ -5024,10 +5069,10 @@ class Xt {
5024
5069
  static parse(e, t) {
5025
5070
  if (e.length <= 2 || e.length >= 5)
5026
5071
  return t.error(`Expected 2 or 3 arguments, but found ${e.length - 1} instead.`);
5027
- const n = t.parse(e[1], 1, _), a = t.parse(e[2], 2, _);
5072
+ const n = t.parse(e[1], 1, M), a = t.parse(e[2], 2, M);
5028
5073
  if (!n || !a)
5029
5074
  return null;
5030
- if (!hn(n.type, [M, P, S, sr, _]))
5075
+ if (!hn(n.type, [P, I, S, sr, M]))
5031
5076
  return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${D(n.type)} instead`);
5032
5077
  if (e.length === 4) {
5033
5078
  const i = t.parse(e[3], 3, S);
@@ -5095,7 +5140,7 @@ class vn {
5095
5140
  return null;
5096
5141
  a = a || d.type, o.push(d);
5097
5142
  }
5098
- const s = t.parse(e[1], 1, _);
5143
+ const s = t.parse(e[1], 1, M);
5099
5144
  if (!s)
5100
5145
  return null;
5101
5146
  const l = t.parse(e[e.length - 1], e.length - 1, a);
@@ -5125,7 +5170,7 @@ class bn {
5125
5170
  t.expectedType && t.expectedType.kind !== "value" && (n = t.expectedType);
5126
5171
  const a = [];
5127
5172
  for (let o = 1; o < e.length - 1; o += 2) {
5128
- const s = t.parse(e[o], o, M);
5173
+ const s = t.parse(e[o], o, P);
5129
5174
  if (!s)
5130
5175
  return null;
5131
5176
  const l = t.parse(e[o + 1], o + 1, n);
@@ -5162,10 +5207,10 @@ class Yt {
5162
5207
  static parse(e, t) {
5163
5208
  if (e.length <= 2 || e.length >= 5)
5164
5209
  return t.error(`Expected 2 or 3 arguments, but found ${e.length - 1} instead.`);
5165
- const n = t.parse(e[1], 1, _), a = t.parse(e[2], 2, S);
5210
+ const n = t.parse(e[1], 1, M), a = t.parse(e[2], 2, S);
5166
5211
  if (!n || !a)
5167
5212
  return null;
5168
- if (!hn(n.type, [ae(_), P, _]))
5213
+ if (!hn(n.type, [J(M), I, M]))
5169
5214
  return t.error(`Expected first argument to be of type array or string, but found ${D(n.type)} instead`);
5170
5215
  if (e.length === 4) {
5171
5216
  const i = t.parse(e[3], 3, S);
@@ -5358,7 +5403,7 @@ class Se {
5358
5403
  return null;
5359
5404
  l = l || h.type, s.push([c, h]);
5360
5405
  }
5361
- return !Ae(l, S) && !Ae(l, lr) && !Ae(l, be) && !Ae(l, pr) && !Ae(l, fr) && !Ae(l, gt) && !Ae(l, dr) && !Ae(l, ae(S)) ? t.error(`Type ${D(l)} is not interpolatable.`) : new Se(l, n, a, i, s);
5406
+ return !Ae(l, S) && !Ae(l, lr) && !Ae(l, be) && !Ae(l, pr) && !Ae(l, fr) && !Ae(l, gt) && !Ae(l, dr) && !Ae(l, J(S)) ? t.error(`Type ${D(l)} is not interpolatable.`) : new Se(l, n, a, i, s);
5362
5407
  }
5363
5408
  evaluate(e) {
5364
5409
  const t = this.labels, n = this.outputs;
@@ -5441,7 +5486,7 @@ class St {
5441
5486
  }
5442
5487
  if (!n)
5443
5488
  throw new Error("No output type");
5444
- return a && i.some((s) => vt(a, s.type)) ? new St(_, i) : new St(n, i);
5489
+ return a && i.some((s) => vt(a, s.type)) ? new St(M, i) : new St(n, i);
5445
5490
  }
5446
5491
  evaluate(e) {
5447
5492
  let t = null, n = 0, a;
@@ -5500,18 +5545,18 @@ function ut(r, e, t) {
5500
5545
  const n = r !== "==" && r !== "!=";
5501
5546
  return class fi {
5502
5547
  constructor(i, o, s) {
5503
- this.type = M, this.lhs = i, this.rhs = o, this.collator = s, this.hasUntypedArgument = i.type.kind === "value" || o.type.kind === "value";
5548
+ this.type = P, this.lhs = i, this.rhs = o, this.collator = s, this.hasUntypedArgument = i.type.kind === "value" || o.type.kind === "value";
5504
5549
  }
5505
5550
  static parse(i, o) {
5506
5551
  if (i.length !== 3 && i.length !== 4)
5507
5552
  return o.error("Expected two or three arguments.");
5508
5553
  const s = i[0];
5509
- let l = o.parse(i[1], 1, _);
5554
+ let l = o.parse(i[1], 1, M);
5510
5555
  if (!l)
5511
5556
  return null;
5512
5557
  if (!ea(s, l.type))
5513
5558
  return o.concat(1).error(`"${s}" comparisons are not supported for type '${D(l.type)}'.`);
5514
- let u = o.parse(i[2], 2, _);
5559
+ let u = o.parse(i[2], 2, M);
5515
5560
  if (!u)
5516
5561
  return null;
5517
5562
  if (!ea(s, u.type))
@@ -5561,14 +5606,14 @@ class vr {
5561
5606
  const n = e[1];
5562
5607
  if (typeof n != "object" || Array.isArray(n))
5563
5608
  return t.error("Collator options argument must be an object.");
5564
- const a = t.parse(n["case-sensitive"] === void 0 ? !1 : n["case-sensitive"], 1, M);
5609
+ const a = t.parse(n["case-sensitive"] === void 0 ? !1 : n["case-sensitive"], 1, P);
5565
5610
  if (!a)
5566
5611
  return null;
5567
- const i = t.parse(n["diacritic-sensitive"] === void 0 ? !1 : n["diacritic-sensitive"], 1, M);
5612
+ const i = t.parse(n["diacritic-sensitive"] === void 0 ? !1 : n["diacritic-sensitive"], 1, P);
5568
5613
  if (!i)
5569
5614
  return null;
5570
5615
  let o = null;
5571
- return n.locale && (o = t.parse(n.locale, 1, P), !o) ? null : new vr(a, i, o);
5616
+ return n.locale && (o = t.parse(n.locale, 1, I), !o) ? null : new vr(a, i, o);
5572
5617
  }
5573
5618
  evaluate(e) {
5574
5619
  return new mn(this.caseSensitive.evaluate(e), this.diacriticSensitive.evaluate(e), this.locale ? this.locale.evaluate(e) : null);
@@ -5581,8 +5626,8 @@ class vr {
5581
5626
  }
5582
5627
  }
5583
5628
  class wn {
5584
- constructor(e, t, n, a, i) {
5585
- this.type = P, this.number = e, this.locale = t, this.currency = n, this.minFractionDigits = a, this.maxFractionDigits = i;
5629
+ constructor(e, t, n, a, i, o) {
5630
+ this.type = I, this.number = e, this.locale = t, this.currency = n, this.unit = a, this.minFractionDigits = i, this.maxFractionDigits = o;
5586
5631
  }
5587
5632
  static parse(e, t) {
5588
5633
  if (e.length !== 3)
@@ -5594,27 +5639,33 @@ class wn {
5594
5639
  if (typeof a != "object" || Array.isArray(a))
5595
5640
  return t.error("NumberFormat options argument must be an object.");
5596
5641
  let i = null;
5597
- if (a.locale && (i = t.parse(a.locale, 1, P), !i))
5642
+ if (a.locale && (i = t.parse(a.locale, 1, I), !i))
5598
5643
  return null;
5599
5644
  let o = null;
5600
- if (a.currency && (o = t.parse(a.currency, 1, P), !o))
5645
+ if (a.currency && (o = t.parse(a.currency, 1, I), !o))
5601
5646
  return null;
5602
5647
  let s = null;
5603
- if (a["min-fraction-digits"] && (s = t.parse(a["min-fraction-digits"], 1, S), !s))
5648
+ if (a.unit && (s = t.parse(a.unit, 1, I), !s))
5604
5649
  return null;
5650
+ if (o && s)
5651
+ return t.error("NumberFormat options `currency` and `unit` are mutually exclusive");
5605
5652
  let l = null;
5606
- return a["max-fraction-digits"] && (l = t.parse(a["max-fraction-digits"], 1, S), !l) ? null : new wn(n, i, o, s, l);
5653
+ if (a["min-fraction-digits"] && (l = t.parse(a["min-fraction-digits"], 1, S), !l))
5654
+ return null;
5655
+ let u = null;
5656
+ return a["max-fraction-digits"] && (u = t.parse(a["max-fraction-digits"], 1, S), !u) ? null : new wn(n, i, o, s, l, u);
5607
5657
  }
5608
5658
  evaluate(e) {
5609
5659
  return new Intl.NumberFormat(this.locale ? this.locale.evaluate(e) : [], {
5610
- style: this.currency ? "currency" : "decimal",
5660
+ style: this.currency ? "currency" : this.unit ? "unit" : "decimal",
5611
5661
  currency: this.currency ? this.currency.evaluate(e) : void 0,
5662
+ unit: this.unit ? this.unit.evaluate(e) : void 0,
5612
5663
  minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(e) : void 0,
5613
5664
  maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(e) : void 0
5614
5665
  }).format(this.number.evaluate(e));
5615
5666
  }
5616
5667
  eachChild(e) {
5617
- e(this.number), this.locale && e(this.locale), this.currency && e(this.currency), this.minFractionDigits && e(this.minFractionDigits), this.maxFractionDigits && e(this.maxFractionDigits);
5668
+ e(this.number), this.locale && e(this.locale), this.currency && e(this.currency), this.unit && e(this.unit), this.minFractionDigits && e(this.minFractionDigits), this.maxFractionDigits && e(this.maxFractionDigits);
5618
5669
  }
5619
5670
  outputDefined() {
5620
5671
  return !1;
@@ -5640,7 +5691,7 @@ class Sn {
5640
5691
  if (s["font-scale"] && (l = t.parse(s["font-scale"], 1, S), !l))
5641
5692
  return null;
5642
5693
  let u = null;
5643
- if (s["text-font"] && (u = t.parse(s["text-font"], 1, ae(P)), !u))
5694
+ if (s["text-font"] && (u = t.parse(s["text-font"], 1, J(I)), !u))
5644
5695
  return null;
5645
5696
  let c = null;
5646
5697
  if (s["text-color"] && (c = t.parse(s["text-color"], 1, be), !c))
@@ -5649,13 +5700,13 @@ class Sn {
5649
5700
  if (s["vertical-align"]) {
5650
5701
  if (typeof s["vertical-align"] == "string" && !ul.includes(s["vertical-align"]))
5651
5702
  return t.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);
5652
- if (p = t.parse(s["vertical-align"], 1, P), !p)
5703
+ if (p = t.parse(s["vertical-align"], 1, I), !p)
5653
5704
  return null;
5654
5705
  }
5655
5706
  const f = a[a.length - 1];
5656
5707
  f.scale = l, f.font = u, f.textColor = c, f.verticalAlign = p;
5657
5708
  } else {
5658
- const l = t.parse(e[o], 1, _);
5709
+ const l = t.parse(e[o], 1, M);
5659
5710
  if (!l)
5660
5711
  return null;
5661
5712
  const u = l.type.kind;
@@ -5694,7 +5745,7 @@ class xn {
5694
5745
  static parse(e, t) {
5695
5746
  if (e.length !== 2)
5696
5747
  return t.error("Expected two arguments.");
5697
- const n = t.parse(e[1], 1, P);
5748
+ const n = t.parse(e[1], 1, I);
5698
5749
  return n ? new xn(n) : t.error("No image name provided.");
5699
5750
  }
5700
5751
  evaluate(e) {
@@ -5916,7 +5967,7 @@ function Hl(r, e) {
5916
5967
  }
5917
5968
  class He {
5918
5969
  constructor(e, t) {
5919
- this.type = M, this.geojson = e, this.geometries = t;
5970
+ this.type = P, this.geojson = e, this.geometries = t;
5920
5971
  }
5921
5972
  static parse(e, t) {
5922
5973
  if (e.length !== 2)
@@ -6415,7 +6466,7 @@ class Ke {
6415
6466
  }
6416
6467
  class Mt {
6417
6468
  constructor(e) {
6418
- this.type = _, this.key = e;
6469
+ this.type = M, this.key = e;
6419
6470
  }
6420
6471
  static parse(e, t) {
6421
6472
  if (e.length !== 2)
@@ -6571,14 +6622,14 @@ function De(r) {
6571
6622
  me.register(In, {
6572
6623
  error: [
6573
6624
  Js,
6574
- [P],
6625
+ [I],
6575
6626
  (r, [e]) => {
6576
6627
  throw new V(e.evaluate(r));
6577
6628
  }
6578
6629
  ],
6579
- typeof: [P, [_], (r, [e]) => D(H(e.evaluate(r)))],
6630
+ typeof: [I, [M], (r, [e]) => D(H(e.evaluate(r)))],
6580
6631
  "to-rgba": [
6581
- ae(S, 4),
6632
+ J(S, 4),
6582
6633
  [be],
6583
6634
  (r, [e]) => {
6584
6635
  const [t, n, a, i] = e.evaluate(r).rgb;
@@ -6588,39 +6639,39 @@ me.register(In, {
6588
6639
  rgb: [be, [S, S, S], ca],
6589
6640
  rgba: [be, [S, S, S, S], ca],
6590
6641
  has: {
6591
- type: M,
6642
+ type: P,
6592
6643
  overloads: [
6593
- [[P], (r, [e]) => pa(e.evaluate(r), r.properties())],
6644
+ [[I], (r, [e]) => pa(e.evaluate(r), r.properties())],
6594
6645
  [
6595
- [P, qe],
6646
+ [I, qe],
6596
6647
  (r, [e, t]) => pa(e.evaluate(r), t.evaluate(r))
6597
6648
  ]
6598
6649
  ]
6599
6650
  },
6600
6651
  get: {
6601
- type: _,
6652
+ type: M,
6602
6653
  overloads: [
6603
- [[P], (r, [e]) => zr(e.evaluate(r), r.properties())],
6654
+ [[I], (r, [e]) => zr(e.evaluate(r), r.properties())],
6604
6655
  [
6605
- [P, qe],
6656
+ [I, qe],
6606
6657
  (r, [e, t]) => zr(e.evaluate(r), t.evaluate(r))
6607
6658
  ]
6608
6659
  ]
6609
6660
  },
6610
6661
  "feature-state": [
6611
- _,
6612
- [P],
6662
+ M,
6663
+ [I],
6613
6664
  (r, [e]) => zr(e.evaluate(r), r.featureState || {})
6614
6665
  ],
6615
6666
  properties: [qe, [], (r) => r.properties()],
6616
- "geometry-type": [P, [], (r) => r.geometryType()],
6617
- id: [_, [], (r) => r.id()],
6667
+ "geometry-type": [I, [], (r) => r.geometryType()],
6668
+ id: [M, [], (r) => r.id()],
6618
6669
  zoom: [S, [], (r) => r.globals.zoom],
6619
6670
  "heatmap-density": [S, [], (r) => r.globals.heatmapDensity || 0],
6620
6671
  elevation: [S, [], (r) => r.globals.elevation || 0],
6621
6672
  "line-progress": [S, [], (r) => r.globals.lineProgress || 0],
6622
6673
  accumulated: [
6623
- _,
6674
+ M,
6624
6675
  [],
6625
6676
  (r) => r.globals.accumulated === void 0 ? null : r.globals.accumulated
6626
6677
  ],
@@ -6693,110 +6744,110 @@ me.register(In, {
6693
6744
  floor: [S, [S], (r, [e]) => Math.floor(e.evaluate(r))],
6694
6745
  ceil: [S, [S], (r, [e]) => Math.ceil(e.evaluate(r))],
6695
6746
  "filter-==": [
6696
- M,
6697
- [P, _],
6747
+ P,
6748
+ [I, M],
6698
6749
  (r, [e, t]) => r.properties()[e.value] === t.value
6699
6750
  ],
6700
- "filter-id-==": [M, [_], (r, [e]) => r.id() === e.value],
6751
+ "filter-id-==": [P, [M], (r, [e]) => r.id() === e.value],
6701
6752
  "filter-type-==": [
6702
- M,
6703
- [P],
6753
+ P,
6754
+ [I],
6704
6755
  (r, [e]) => r.geometryType() === e.value
6705
6756
  ],
6706
6757
  "filter-<": [
6707
- M,
6708
- [P, _],
6758
+ P,
6759
+ [I, M],
6709
6760
  (r, [e, t]) => {
6710
6761
  const n = r.properties()[e.value], a = t.value;
6711
6762
  return typeof n == typeof a && n < a;
6712
6763
  }
6713
6764
  ],
6714
6765
  "filter-id-<": [
6715
- M,
6716
- [_],
6766
+ P,
6767
+ [M],
6717
6768
  (r, [e]) => {
6718
6769
  const t = r.id(), n = e.value;
6719
6770
  return typeof t == typeof n && t < n;
6720
6771
  }
6721
6772
  ],
6722
6773
  "filter->": [
6723
- M,
6724
- [P, _],
6774
+ P,
6775
+ [I, M],
6725
6776
  (r, [e, t]) => {
6726
6777
  const n = r.properties()[e.value], a = t.value;
6727
6778
  return typeof n == typeof a && n > a;
6728
6779
  }
6729
6780
  ],
6730
6781
  "filter-id->": [
6731
- M,
6732
- [_],
6782
+ P,
6783
+ [M],
6733
6784
  (r, [e]) => {
6734
6785
  const t = r.id(), n = e.value;
6735
6786
  return typeof t == typeof n && t > n;
6736
6787
  }
6737
6788
  ],
6738
6789
  "filter-<=": [
6739
- M,
6740
- [P, _],
6790
+ P,
6791
+ [I, M],
6741
6792
  (r, [e, t]) => {
6742
6793
  const n = r.properties()[e.value], a = t.value;
6743
6794
  return typeof n == typeof a && n <= a;
6744
6795
  }
6745
6796
  ],
6746
6797
  "filter-id-<=": [
6747
- M,
6748
- [_],
6798
+ P,
6799
+ [M],
6749
6800
  (r, [e]) => {
6750
6801
  const t = r.id(), n = e.value;
6751
6802
  return typeof t == typeof n && t <= n;
6752
6803
  }
6753
6804
  ],
6754
6805
  "filter->=": [
6755
- M,
6756
- [P, _],
6806
+ P,
6807
+ [I, M],
6757
6808
  (r, [e, t]) => {
6758
6809
  const n = r.properties()[e.value], a = t.value;
6759
6810
  return typeof n == typeof a && n >= a;
6760
6811
  }
6761
6812
  ],
6762
6813
  "filter-id->=": [
6763
- M,
6764
- [_],
6814
+ P,
6815
+ [M],
6765
6816
  (r, [e]) => {
6766
6817
  const t = r.id(), n = e.value;
6767
6818
  return typeof t == typeof n && t >= n;
6768
6819
  }
6769
6820
  ],
6770
- "filter-has": [M, [_], (r, [e]) => e.value in r.properties()],
6771
- "filter-has-id": [M, [], (r) => r.id() !== null && r.id() !== void 0],
6821
+ "filter-has": [P, [M], (r, [e]) => e.value in r.properties()],
6822
+ "filter-has-id": [P, [], (r) => r.id() !== null && r.id() !== void 0],
6772
6823
  "filter-type-in": [
6773
- M,
6774
- [ae(P)],
6824
+ P,
6825
+ [J(I)],
6775
6826
  (r, [e]) => e.value.indexOf(r.geometryType()) >= 0
6776
6827
  ],
6777
6828
  "filter-id-in": [
6778
- M,
6779
- [ae(_)],
6829
+ P,
6830
+ [J(M)],
6780
6831
  (r, [e]) => e.value.indexOf(r.id()) >= 0
6781
6832
  ],
6782
6833
  "filter-in-small": [
6783
- M,
6784
- [P, ae(_)],
6834
+ P,
6835
+ [I, J(M)],
6785
6836
  // assumes v is an array literal
6786
6837
  (r, [e, t]) => t.value.indexOf(r.properties()[e.value]) >= 0
6787
6838
  ],
6788
6839
  "filter-in-large": [
6789
- M,
6790
- [P, ae(_)],
6840
+ P,
6841
+ [I, J(M)],
6791
6842
  // assumes v is a array literal with values sorted in ascending order and of a single type
6792
6843
  (r, [e, t]) => au(r.properties()[e.value], t.value, 0, t.value.length - 1)
6793
6844
  ],
6794
6845
  all: {
6795
- type: M,
6846
+ type: P,
6796
6847
  overloads: [
6797
- [[M, M], (r, [e, t]) => e.evaluate(r) && t.evaluate(r)],
6848
+ [[P, P], (r, [e, t]) => e.evaluate(r) && t.evaluate(r)],
6798
6849
  [
6799
- De(M),
6850
+ De(P),
6800
6851
  (r, e) => {
6801
6852
  for (const t of e)
6802
6853
  if (!t.evaluate(r))
@@ -6807,11 +6858,11 @@ me.register(In, {
6807
6858
  ]
6808
6859
  },
6809
6860
  any: {
6810
- type: M,
6861
+ type: P,
6811
6862
  overloads: [
6812
- [[M, M], (r, [e, t]) => e.evaluate(r) || t.evaluate(r)],
6863
+ [[P, P], (r, [e, t]) => e.evaluate(r) || t.evaluate(r)],
6813
6864
  [
6814
- De(M),
6865
+ De(P),
6815
6866
  (r, e) => {
6816
6867
  for (const t of e)
6817
6868
  if (t.evaluate(r))
@@ -6821,25 +6872,35 @@ me.register(In, {
6821
6872
  ]
6822
6873
  ]
6823
6874
  },
6824
- "!": [M, [M], (r, [e]) => !e.evaluate(r)],
6875
+ "!": [P, [P], (r, [e]) => !e.evaluate(r)],
6825
6876
  "is-supported-script": [
6826
- M,
6827
- [P],
6877
+ P,
6878
+ [I],
6828
6879
  // At parse time this will always return true, so we need to exclude this expression with isGlobalPropertyConstant
6829
6880
  (r, [e]) => {
6830
6881
  const t = r.globals && r.globals.isSupportedScript;
6831
6882
  return t ? t(e.evaluate(r)) : !0;
6832
6883
  }
6833
6884
  ],
6834
- upcase: [P, [P], (r, [e]) => e.evaluate(r).toUpperCase()],
6835
- downcase: [P, [P], (r, [e]) => e.evaluate(r).toLowerCase()],
6885
+ upcase: [I, [I], (r, [e]) => e.evaluate(r).toUpperCase()],
6886
+ downcase: [I, [I], (r, [e]) => e.evaluate(r).toLowerCase()],
6836
6887
  concat: [
6837
- P,
6838
- De(_),
6888
+ I,
6889
+ De(M),
6839
6890
  (r, e) => e.map((t) => mt(t.evaluate(r))).join("")
6840
6891
  ],
6892
+ split: [
6893
+ J(I),
6894
+ [I, I],
6895
+ (r, [e, t]) => e.evaluate(r).split(t.evaluate(r))
6896
+ ],
6897
+ join: [
6898
+ I,
6899
+ [J(I), I],
6900
+ (r, [e, t]) => e.value.join(t.evaluate(r))
6901
+ ],
6841
6902
  "resolved-locale": [
6842
- P,
6903
+ I,
6843
6904
  [ur],
6844
6905
  (r, [e]) => e.evaluate(r).resolvedLocale()
6845
6906
  ]
@@ -7031,10 +7092,10 @@ function Mn(r, e = /* @__PURE__ */ new Set()) {
7031
7092
  function lu(r) {
7032
7093
  const e = {
7033
7094
  color: be,
7034
- string: P,
7095
+ string: I,
7035
7096
  number: S,
7036
- enum: P,
7037
- boolean: M,
7097
+ enum: I,
7098
+ boolean: P,
7038
7099
  formatted: cr,
7039
7100
  padding: pr,
7040
7101
  numberArray: fr,
@@ -7043,7 +7104,7 @@ function lu(r) {
7043
7104
  resolvedImage: It,
7044
7105
  variableAnchorOffsetCollection: dr
7045
7106
  };
7046
- return r.type === "array" ? ae(e[r.value] || _, r.length) : e[r.type];
7107
+ return r.type === "array" ? J(e[r.value] || M, r.length) : e[r.type];
7047
7108
  }
7048
7109
  function uu(r) {
7049
7110
  if (r.type === "color" && _n(r.default))
@@ -7464,39 +7525,40 @@ function Ti(r) {
7464
7525
  return Ci(r, "layout");
7465
7526
  }
7466
7527
  function Ii(r) {
7467
- let e = [];
7468
- const t = r.value, n = r.key, a = r.style, i = r.styleSpec;
7469
- if (R(t) !== "object")
7470
- return [new w(n, t, `object expected, ${R(t)} found`)];
7471
- !t.type && !t.ref && e.push(new w(n, t, 'either "type" or "ref" is required'));
7472
- let o = G(t.type);
7473
- const s = G(t.ref);
7474
- if (t.id) {
7475
- const l = G(t.id);
7476
- for (let u = 0; u < r.arrayIndex; u++) {
7477
- const c = a.layers[u];
7478
- G(c.id) === l && e.push(new w(n, t.id, `duplicate layer id "${t.id}", previously used at line ${c.id.__line__}`));
7479
- }
7480
- }
7481
- if ("ref" in t) {
7482
- ["type", "source", "source-layer", "filter", "layout"].forEach((u) => {
7483
- u in t && e.push(new w(n, t[u], `"${u}" is prohibited for ref layers`));
7528
+ var e, t;
7529
+ let n = [];
7530
+ const a = r.value, i = r.key, o = r.style, s = r.styleSpec;
7531
+ if (R(a) !== "object")
7532
+ return [new w(i, a, `object expected, ${R(a)} found`)];
7533
+ !a.type && !a.ref && n.push(new w(i, a, 'either "type" or "ref" is required'));
7534
+ let l = G(a.type);
7535
+ const u = G(a.ref);
7536
+ if (a.id) {
7537
+ const c = G(a.id);
7538
+ for (let p = 0; p < r.arrayIndex; p++) {
7539
+ const f = o.layers[p];
7540
+ G(f.id) === c && n.push(new w(i, a.id, `duplicate layer id "${a.id}", previously used at line ${f.id.__line__}`));
7541
+ }
7542
+ }
7543
+ if ("ref" in a) {
7544
+ ["type", "source", "source-layer", "filter", "layout"].forEach((p) => {
7545
+ p in a && n.push(new w(i, a[p], `"${p}" is prohibited for ref layers`));
7484
7546
  });
7485
- let l;
7486
- a.layers.forEach((u) => {
7487
- G(u.id) === s && (l = u);
7488
- }), l ? l.ref ? e.push(new w(n, t.ref, "ref cannot reference another ref layer")) : o = G(l.type) : e.push(new w(n, t.ref, `ref layer "${s}" not found`));
7489
- } else if (o !== "background")
7490
- if (!t.source)
7491
- e.push(new w(n, t, 'missing required property "source"'));
7547
+ let c;
7548
+ o.layers.forEach((p) => {
7549
+ G(p.id) === u && (c = p);
7550
+ }), c ? c.ref ? n.push(new w(i, a.ref, "ref cannot reference another ref layer")) : l = G(c.type) : n.push(new w(i, a.ref, `ref layer "${u}" not found`));
7551
+ } else if (l !== "background")
7552
+ if (!a.source)
7553
+ n.push(new w(i, a, 'missing required property "source"'));
7492
7554
  else {
7493
- const l = a.sources && a.sources[t.source], u = l && G(l.type);
7494
- l ? u === "vector" && o === "raster" ? e.push(new w(n, t.source, `layer "${t.id}" requires a raster source`)) : u !== "raster-dem" && o === "hillshade" ? e.push(new w(n, t.source, `layer "${t.id}" requires a raster-dem source`)) : u !== "raster-dem" && o === "color-relief" ? e.push(new w(n, t.source, `layer "${t.id}" requires a raster-dem source`)) : u === "raster" && o !== "raster" ? e.push(new w(n, t.source, `layer "${t.id}" requires a vector source`)) : u === "vector" && !t["source-layer"] ? e.push(new w(n, t, `layer "${t.id}" must specify a "source-layer"`)) : u === "raster-dem" && o !== "hillshade" && o !== "color-relief" ? e.push(new w(n, t.source, "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")) : o === "line" && t.paint && t.paint["line-gradient"] && (u !== "geojson" || !l.lineMetrics) && e.push(new w(n, t, `layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new w(n, t.source, `source "${t.source}" not found`));
7555
+ const c = o.sources && o.sources[a.source], p = c && G(c.type);
7556
+ c ? p === "vector" && l === "raster" ? n.push(new w(i, a.source, `layer "${a.id}" requires a raster source`)) : p !== "raster-dem" && l === "hillshade" ? n.push(new w(i, a.source, `layer "${a.id}" requires a raster-dem source`)) : p !== "raster-dem" && l === "color-relief" ? n.push(new w(i, a.source, `layer "${a.id}" requires a raster-dem source`)) : p === "raster" && l !== "raster" ? n.push(new w(i, a.source, `layer "${a.id}" requires a vector source`)) : p === "vector" && !a["source-layer"] ? n.push(new w(i, a, `layer "${a.id}" must specify a "source-layer"`)) : p === "raster-dem" && l !== "hillshade" && l !== "color-relief" ? n.push(new w(i, a.source, "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")) : l === "line" && a.paint && a.paint["line-gradient"] && (p !== "geojson" || !c.lineMetrics) && n.push(new w(i, a, `layer "${a.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : n.push(new w(i, a.source, `source "${a.source}" not found`));
7495
7557
  }
7496
- return e = e.concat(oe({
7497
- key: n,
7498
- value: t,
7499
- valueSpec: i.layer,
7558
+ return l === "raster" && (!((e = a.paint) === null || e === void 0) && e.resampling) && (!((t = a.paint) === null || t === void 0) && t["raster-resampling"]) && n.push(new w(i, a.paint, `layer "${a.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)), n = n.concat(oe({
7559
+ key: i,
7560
+ value: a,
7561
+ valueSpec: s.layer,
7500
7562
  style: r.style,
7501
7563
  styleSpec: r.styleSpec,
7502
7564
  validateSpec: r.validateSpec,
@@ -7508,49 +7570,49 @@ function Ii(r) {
7508
7570
  // the actual requirement is validated above. See https://github.com/mapbox/mapbox-gl-js/issues/5772.
7509
7571
  type() {
7510
7572
  return r.validateSpec({
7511
- key: `${n}.type`,
7512
- value: t.type,
7513
- valueSpec: i.layer.type,
7573
+ key: `${i}.type`,
7574
+ value: a.type,
7575
+ valueSpec: s.layer.type,
7514
7576
  style: r.style,
7515
7577
  styleSpec: r.styleSpec,
7516
7578
  validateSpec: r.validateSpec,
7517
- object: t,
7579
+ object: a,
7518
7580
  objectKey: "type"
7519
7581
  });
7520
7582
  },
7521
7583
  filter: Rn,
7522
- layout(l) {
7584
+ layout(c) {
7523
7585
  return oe({
7524
- layer: t,
7525
- key: l.key,
7526
- value: l.value,
7527
- style: l.style,
7528
- styleSpec: l.styleSpec,
7529
- validateSpec: l.validateSpec,
7586
+ layer: a,
7587
+ key: c.key,
7588
+ value: c.value,
7589
+ style: c.style,
7590
+ styleSpec: c.styleSpec,
7591
+ validateSpec: c.validateSpec,
7530
7592
  objectElementValidators: {
7531
- "*"(u) {
7532
- return Ti(Zt({ layerType: o }, u));
7593
+ "*"(p) {
7594
+ return Ti(Zt({ layerType: l }, p));
7533
7595
  }
7534
7596
  }
7535
7597
  });
7536
7598
  },
7537
- paint(l) {
7599
+ paint(c) {
7538
7600
  return oe({
7539
- layer: t,
7540
- key: l.key,
7541
- value: l.value,
7542
- style: l.style,
7543
- styleSpec: l.styleSpec,
7544
- validateSpec: l.validateSpec,
7601
+ layer: a,
7602
+ key: c.key,
7603
+ value: c.value,
7604
+ style: c.style,
7605
+ styleSpec: c.styleSpec,
7606
+ validateSpec: c.validateSpec,
7545
7607
  objectElementValidators: {
7546
- "*"(u) {
7547
- return Ai(Zt({ layerType: o }, u));
7608
+ "*"(p) {
7609
+ return Ai(Zt({ layerType: l }, p));
7548
7610
  }
7549
7611
  }
7550
7612
  });
7551
7613
  }
7552
7614
  }
7553
- })), e;
7615
+ })), n;
7554
7616
  }
7555
7617
  function $e(r) {
7556
7618
  const e = r.value, t = r.key, n = R(e);
@@ -8256,7 +8318,7 @@ class Iu extends Do {
8256
8318
  }
8257
8319
  }
8258
8320
  }
8259
- var Te, ee, Ie, _e, at;
8321
+ var Te, te, Ie, _e, at;
8260
8322
  class _u {
8261
8323
  /**
8262
8324
  * @param selectorOrElement Element to be used as control, specified as either reference to element itself or a CSS selector to find the element in DOM
@@ -8265,30 +8327,30 @@ class _u {
8265
8327
  */
8266
8328
  constructor(e, t, n) {
8267
8329
  Y(this, Te);
8268
- Y(this, ee);
8330
+ Y(this, te);
8269
8331
  Y(this, Ie);
8270
8332
  Y(this, _e);
8271
8333
  Y(this, at);
8272
8334
  if (typeof e == "string") {
8273
8335
  const a = document.querySelector(e);
8274
8336
  if (!a) throw new Error(`No element has been found with selector "${e}" when creating an external control.`);
8275
- J(this, ee, a);
8337
+ Q(this, te, a);
8276
8338
  } else
8277
- J(this, ee, e);
8278
- t && J(this, Ie, (a) => {
8279
- t(E(this, Te), E(this, ee), a);
8280
- }), n && J(this, _e, (a) => {
8281
- n(E(this, Te), E(this, ee), a);
8282
- }), J(this, at, E(this, ee).parentElement);
8339
+ Q(this, te, e);
8340
+ t && Q(this, Ie, (a) => {
8341
+ t(E(this, Te), E(this, te), a);
8342
+ }), n && Q(this, _e, (a) => {
8343
+ n(E(this, Te), E(this, te), a);
8344
+ }), Q(this, at, E(this, te).parentElement);
8283
8345
  }
8284
8346
  onAdd(e) {
8285
- return J(this, Te, e), E(this, Ie) && E(this, ee).addEventListener("click", E(this, Ie)), E(this, _e) && E(this, Te).on("render", E(this, _e)), Lt(E(this, ee)), E(this, ee);
8347
+ return Q(this, Te, e), E(this, Ie) && E(this, te).addEventListener("click", E(this, Ie)), E(this, _e) && E(this, Te).on("render", E(this, _e)), Lt(E(this, te)), E(this, te);
8286
8348
  }
8287
8349
  onRemove() {
8288
- E(this, Ie) && E(this, ee).removeEventListener("click", E(this, Ie)), E(this, _e) && E(this, Te).off("render", E(this, _e)), E(this, at) ? E(this, at).appendChild(E(this, ee)) : Lt(E(this, ee));
8350
+ E(this, Ie) && E(this, te).removeEventListener("click", E(this, Ie)), E(this, _e) && E(this, Te).off("render", E(this, _e)), E(this, at) ? E(this, at).appendChild(E(this, te)) : Lt(E(this, te));
8289
8351
  }
8290
8352
  }
8291
- Te = new WeakMap(), ee = new WeakMap(), Ie = new WeakMap(), _e = new WeakMap(), at = new WeakMap();
8353
+ Te = new WeakMap(), te = new WeakMap(), Ie = new WeakMap(), _e = new WeakMap(), at = new WeakMap();
8292
8354
  class Mu {
8293
8355
  constructor() {
8294
8356
  y(this, "map");
@@ -8343,7 +8405,7 @@ class en extends _u {
8343
8405
  Y(this, it, /* @__PURE__ */ new Map());
8344
8406
  }
8345
8407
  onAdd(t) {
8346
- return J(this, At, t), super.onAdd(t);
8408
+ return Q(this, At, t), super.onAdd(t);
8347
8409
  }
8348
8410
  onRemove() {
8349
8411
  for (const [t, n] of E(this, it)) {
@@ -8367,18 +8429,18 @@ class en extends _u {
8367
8429
  }
8368
8430
  }
8369
8431
  At = new WeakMap(), it = new WeakMap(), y(en, "controlCallbacks", pt);
8370
- var te, ce, Me, Pe, re, Tt, K, Ui, ue, Bi;
8432
+ var re, ce, Me, Pe, ne, Tt, K, Ui, ue, Bi;
8371
8433
  class Fr {
8372
8434
  constructor(e, t) {
8373
8435
  Y(this, K);
8374
- Y(this, te);
8436
+ Y(this, re);
8375
8437
  y(this, "map");
8376
8438
  Y(this, ce);
8377
8439
  Y(this, Me);
8378
8440
  Y(this, Pe);
8379
- Y(this, re, !1);
8441
+ Y(this, ne, !1);
8380
8442
  Y(this, Tt);
8381
- e.style !== void 0 && J(this, re, !0), J(this, te, {
8443
+ e.style !== void 0 && Q(this, ne, !0), Q(this, re, {
8382
8444
  // set defaults
8383
8445
  zoomAdjust: -4,
8384
8446
  position: "top-right",
@@ -8401,43 +8463,43 @@ class Fr {
8401
8463
  height: "300px",
8402
8464
  ...e.containerStyle ?? {}
8403
8465
  }
8404
- }), e.lockZoom !== void 0 && (E(this, te).minZoom = e.lockZoom, E(this, te).maxZoom = e.lockZoom);
8466
+ }), e.lockZoom !== void 0 && (E(this, re).minZoom = e.lockZoom, E(this, re).maxZoom = e.lockZoom);
8405
8467
  }
8406
8468
  setStyle(e, t) {
8407
- E(this, re) || this.map.setStyle(e, t), Q(this, K, ue).call(this);
8469
+ E(this, ne) || this.map.setStyle(e, t), ee(this, K, ue).call(this);
8408
8470
  }
8409
8471
  addLayer(e, t) {
8410
- return E(this, re) || this.map.addLayer(e, t), Q(this, K, ue).call(this), this.map;
8472
+ return E(this, ne) || this.map.addLayer(e, t), ee(this, K, ue).call(this), this.map;
8411
8473
  }
8412
8474
  moveLayer(e, t) {
8413
- return E(this, re) || this.map.moveLayer(e, t), Q(this, K, ue).call(this), this.map;
8475
+ return E(this, ne) || this.map.moveLayer(e, t), ee(this, K, ue).call(this), this.map;
8414
8476
  }
8415
8477
  removeLayer(e) {
8416
- return E(this, re) || this.map.removeLayer(e), Q(this, K, ue).call(this), this;
8478
+ return E(this, ne) || this.map.removeLayer(e), ee(this, K, ue).call(this), this;
8417
8479
  }
8418
8480
  setLayerZoomRange(e, t, n) {
8419
- return E(this, re) || this.map.setLayerZoomRange(e, t, n), Q(this, K, ue).call(this), this;
8481
+ return E(this, ne) || this.map.setLayerZoomRange(e, t, n), ee(this, K, ue).call(this), this;
8420
8482
  }
8421
8483
  setFilter(e, t, n) {
8422
- return E(this, re) || this.map.setFilter(e, t, n), Q(this, K, ue).call(this), this;
8484
+ return E(this, ne) || this.map.setFilter(e, t, n), ee(this, K, ue).call(this), this;
8423
8485
  }
8424
8486
  setPaintProperty(e, t, n, a) {
8425
- return E(this, re) || this.map.setPaintProperty(e, t, n, a), Q(this, K, ue).call(this), this;
8487
+ return E(this, ne) || this.map.setPaintProperty(e, t, n, a), ee(this, K, ue).call(this), this;
8426
8488
  }
8427
8489
  setLayoutProperty(e, t, n, a) {
8428
- return E(this, re) || this.map.setLayoutProperty(e, t, n, a), Q(this, K, ue).call(this), this;
8490
+ return E(this, ne) || this.map.setLayoutProperty(e, t, n, a), ee(this, K, ue).call(this), this;
8429
8491
  }
8430
8492
  setGlyphs(e, t) {
8431
- return E(this, re) || this.map.setGlyphs(e, t), Q(this, K, ue).call(this), this;
8493
+ return E(this, ne) || this.map.setGlyphs(e, t), ee(this, K, ue).call(this), this;
8432
8494
  }
8433
8495
  onAdd(e) {
8434
- J(this, ce, e), J(this, Me, Le("div", "maplibregl-ctrl maplibregl-ctrl-group"));
8435
- for (const [t, n] of Object.entries(E(this, te).containerStyle))
8496
+ Q(this, ce, e), Q(this, Me, Le("div", "maplibregl-ctrl maplibregl-ctrl-group"));
8497
+ for (const [t, n] of Object.entries(E(this, re).containerStyle))
8436
8498
  E(this, Me).style.setProperty(t, n);
8437
- return E(this, te).container = E(this, Me), E(this, te).zoom = e.getZoom() + E(this, te).zoomAdjust, this.map = new Gi(E(this, te)), this.map.once("style.load", () => {
8499
+ return E(this, re).container = E(this, Me), E(this, re).zoom = e.getZoom() + E(this, re).zoomAdjust, this.map = new Gi(E(this, re)), this.map.once("style.load", () => {
8438
8500
  this.map.resize();
8439
8501
  }), this.map.once("load", () => {
8440
- Q(this, K, Ui).call(this, E(this, te).parentRect), J(this, Tt, Q(this, K, Bi).call(this));
8502
+ ee(this, K, Ui).call(this, E(this, re).parentRect), Q(this, Tt, ee(this, K, Bi).call(this));
8441
8503
  }), E(this, Me);
8442
8504
  }
8443
8505
  onRemove() {
@@ -8445,8 +8507,8 @@ class Fr {
8445
8507
  (e = E(this, Tt)) == null || e.call(this), Lt(E(this, Me));
8446
8508
  }
8447
8509
  }
8448
- te = new WeakMap(), ce = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(), re = new WeakMap(), Tt = new WeakMap(), K = new WeakSet(), Ui = function(e) {
8449
- e === void 0 || e.linePaint === void 0 && e.fillPaint === void 0 || (J(this, Pe, {
8510
+ re = new WeakMap(), ce = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(), ne = new WeakMap(), Tt = new WeakMap(), K = new WeakSet(), Ui = function(e) {
8511
+ e === void 0 || e.linePaint === void 0 && e.fillPaint === void 0 || (Q(this, Pe, {
8450
8512
  type: "Feature",
8451
8513
  properties: {
8452
8514
  name: "parentRect"
@@ -8481,7 +8543,7 @@ te = new WeakMap(), ce = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(),
8481
8543
  "fill-opacity": 0.135,
8482
8544
  ...e.fillPaint
8483
8545
  }
8484
- }), Q(this, K, ue).call(this));
8546
+ }), ee(this, K, ue).call(this));
8485
8547
  }, ue = function() {
8486
8548
  if (E(this, Pe) === void 0) return;
8487
8549
  const { devicePixelRatio: e } = window, t = E(this, ce).getCanvas(), n = t.width / e, a = t.height / e, i = E(this, ce).unproject.bind(E(this, ce)), o = i([0, 0]), s = i([n, 0]), l = i([0, a]), u = i([n, a]);
@@ -8489,7 +8551,7 @@ te = new WeakMap(), ce = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(),
8489
8551
  const c = this.map.getSource("parentRect");
8490
8552
  c !== void 0 && c.setData(E(this, Pe));
8491
8553
  }, Bi = function() {
8492
- const { pitchAdjust: e } = E(this, te), t = () => {
8554
+ const { pitchAdjust: e } = E(this, re), t = () => {
8493
8555
  o("parent");
8494
8556
  }, n = () => {
8495
8557
  o("minimap");
@@ -8499,13 +8561,13 @@ te = new WeakMap(), ce = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(),
8499
8561
  E(this, ce).off("move", t), this.map.off("move", n);
8500
8562
  }, o = (s) => {
8501
8563
  i();
8502
- const l = s === "parent" ? E(this, ce) : this.map, u = s === "parent" ? this.map : E(this, ce), c = l.getCenter(), p = l.getZoom() + E(this, te).zoomAdjust * (s === "parent" ? 1 : -1), f = l.getBearing(), d = l.getPitch();
8564
+ const l = s === "parent" ? E(this, ce) : this.map, u = s === "parent" ? this.map : E(this, ce), c = l.getCenter(), p = l.getZoom() + E(this, re).zoomAdjust * (s === "parent" ? 1 : -1), f = l.getBearing(), d = l.getPitch();
8503
8565
  u.jumpTo({
8504
8566
  center: c,
8505
8567
  zoom: p,
8506
8568
  bearing: f,
8507
8569
  pitch: e ? d : 0
8508
- }), Q(this, K, ue).call(this), a();
8570
+ }), ee(this, K, ue).call(this), a();
8509
8571
  };
8510
8572
  return a(), () => {
8511
8573
  i();
@@ -11247,7 +11309,7 @@ const lf = {
11247
11309
  byId: (r, e = {}) => Ot.geocoding.byId(r, Bt(e)),
11248
11310
  batch: (r, e = {}) => Ot.geocoding.batch(r, Bt(e))
11249
11311
  };
11250
- class ne {
11312
+ class ae {
11251
11313
  constructor(e, t, n, a = {}) {
11252
11314
  y(this, "type");
11253
11315
  y(this, "target");
@@ -11320,48 +11382,48 @@ function kc({ map: r, viewer: e, lngLatToPx: t }) {
11320
11382
  imageY: h[1],
11321
11383
  ...Object.fromEntries(Object.entries(a).filter(([v]) => !xc.includes(v)))
11322
11384
  };
11323
- e.fire(new ne(n, e, d.originalEvent, b));
11385
+ e.fire(new ae(n, e, d.originalEvent, b));
11324
11386
  return;
11325
11387
  }
11326
11388
  const o = n;
11327
11389
  if (Wi.includes(o)) {
11328
11390
  const d = a;
11329
- e.fire(new ne(n, e, d.originalEvent, d));
11391
+ e.fire(new ae(n, e, d.originalEvent, d));
11330
11392
  return;
11331
11393
  }
11332
11394
  const s = n;
11333
11395
  if (Zi.includes(s)) {
11334
11396
  const d = a;
11335
- e.fire(new ne(n, e, null, d));
11397
+ e.fire(new ae(n, e, null, d));
11336
11398
  return;
11337
11399
  }
11338
11400
  const l = n;
11339
11401
  if (Xi.includes(l)) {
11340
11402
  const d = a;
11341
- e.fire(new ne(n, e, null, d));
11403
+ e.fire(new ae(n, e, null, d));
11342
11404
  return;
11343
11405
  }
11344
11406
  const u = n;
11345
11407
  if (Yi.includes(u)) {
11346
11408
  const d = a;
11347
- e.fire(new ne(n, e, d.originalEvent, d));
11409
+ e.fire(new ae(n, e, d.originalEvent, d));
11348
11410
  return;
11349
11411
  }
11350
11412
  const c = n;
11351
11413
  if (eo.includes(c)) {
11352
11414
  const d = a;
11353
- e.fire(new ne(n, e, null, d));
11415
+ e.fire(new ae(n, e, null, d));
11354
11416
  return;
11355
11417
  }
11356
11418
  const p = n;
11357
11419
  if (Qi.includes(p)) {
11358
11420
  const d = a;
11359
- e.fire(new ne(n, e, null, d));
11421
+ e.fire(new ae(n, e, null, d));
11360
11422
  return;
11361
11423
  }
11362
11424
  const f = n;
11363
11425
  if (Ki.includes(f)) {
11364
- e.fire(new ne(n, e));
11426
+ e.fire(new ae(n, e));
11365
11427
  return;
11366
11428
  }
11367
11429
  });
@@ -11680,7 +11742,7 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11680
11742
  var f, d;
11681
11743
  const u = this.getCenter(), c = ((f = this.imageMetadata) == null ? void 0 : f.width) ?? 0, p = ((d = this.imageMetadata) == null ? void 0 : d.height) ?? 0;
11682
11744
  this.shouldFitImageToViewport && this.fitImageToViewport(), (u[0] !== c / 2 || u[1] !== p / 2) && this.setCenter(u);
11683
- }), this.fire("imageviewerready", new ne("imageviewerready", this));
11745
+ }), this.fire("imageviewerready", new ae("imageviewerready", this));
11684
11746
  } catch (i) {
11685
11747
  this.fire("imagevieweriniterror", { error: i });
11686
11748
  }
@@ -11721,7 +11783,7 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11721
11783
  */
11722
11784
  addImageSource() {
11723
11785
  if (!this.imageMetadata)
11724
- throw this.fire("error", new ne("error", this, null, { error: new Error("[ImageViewer]: Image metadata not found") })), new Error("[ImageViewer]: Image metadata not found");
11786
+ throw this.fire("error", new ae("error", this, null, { error: new Error("[ImageViewer]: Image metadata not found") })), new Error("[ImageViewer]: Image metadata not found");
11725
11787
  const t = Nc(this.imageUUID), n = (s) => Math.pow(2, Math.ceil(Math.log(s) / Math.LN2));
11726
11788
  this.imageSize = [this.imageMetadata.width, this.imageMetadata.height], this.paddedSizeMax = Math.max(n(this.imageSize[0]), n(this.imageSize[1]));
11727
11789
  const a = this.pxToLngLat([0, 0]), i = this.pxToLngLat(this.imageSize), o = [a.lng, i.lat, i.lng, a.lat];
@@ -11884,7 +11946,7 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11884
11946
  lngLatToPx(t) {
11885
11947
  if (!this.paddedSizeMax) {
11886
11948
  const a = "[ImageViewer]: Unable to convert LngLat to px, padded size max not set";
11887
- throw this.fire("error", new ne("error", this, null, { error: new Error(a) })), new Error(a);
11949
+ throw this.fire("error", new ae("error", this, null, { error: new Error(a) })), new Error(a);
11888
11950
  }
11889
11951
  const n = fn.fromLngLat(t);
11890
11952
  return [n.x * this.paddedSizeMax, n.y * this.paddedSizeMax];
@@ -11900,7 +11962,7 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11900
11962
  pxToLngLat(t) {
11901
11963
  if (!this.paddedSizeMax) {
11902
11964
  const a = "[ImageViewer]: Unable to convert px to LngLat, padded size max not set";
11903
- throw this.fire("error", new ne("error", this, null, { error: new Error(a) })), new Error(a);
11965
+ throw this.fire("error", new ae("error", this, null, { error: new Error(a) })), new Error(a);
11904
11966
  }
11905
11967
  return new fn(t[0] / this.paddedSizeMax, t[1] / this.paddedSizeMax).toLngLat();
11906
11968
  }
@@ -12067,7 +12129,7 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
12067
12129
  * @returns {ImageViewer} The ImageViewer instance.
12068
12130
  */
12069
12131
  remove() {
12070
- this.fire("beforeremove", new ne("beforeremove", this)), this.sdk.remove(), this._listeners && Object.entries(this._listeners).forEach(([t, n]) => {
12132
+ this.fire("beforeremove", new ae("beforeremove", this)), this.sdk.remove(), this._listeners && Object.entries(this._listeners).forEach(([t, n]) => {
12071
12133
  n.forEach((a) => {
12072
12134
  this.off(t, a);
12073
12135
  });
@@ -12452,7 +12514,7 @@ function so(r, e) {
12452
12514
  a[`#${Ze(c, "id")}`] = ja(e !== void 0 ? e(c) : $a(c)).toString(16);
12453
12515
  const p = Z(c, "Pair"), f = {};
12454
12516
  for (const d of Array.from(p))
12455
- f[F(I(d, "key")) ?? ""] = F(I(d, "styleUrl"));
12517
+ f[F(_(d, "key")) ?? ""] = F(_(d, "styleUrl"));
12456
12518
  o[`#${Ze(c, "id")}`] = f;
12457
12519
  }
12458
12520
  for (const c of Array.from(s))
@@ -12484,29 +12546,29 @@ function Kt(r) {
12484
12546
  const e = ["Polygon", "LineString", "Point", "Track", "gx:Track"];
12485
12547
  let t, n, a, i, o;
12486
12548
  const s = [], l = [];
12487
- if (I(r, "MultiGeometry") !== null)
12488
- return Kt(I(r, "MultiGeometry"));
12489
- if (I(r, "MultiTrack") !== null)
12490
- return Kt(I(r, "MultiTrack"));
12491
- if (I(r, "gx:MultiTrack") !== null)
12492
- return Kt(I(r, "gx:MultiTrack"));
12549
+ if (_(r, "MultiGeometry") !== null)
12550
+ return Kt(_(r, "MultiGeometry"));
12551
+ if (_(r, "MultiTrack") !== null)
12552
+ return Kt(_(r, "MultiTrack"));
12553
+ if (_(r, "gx:MultiTrack") !== null)
12554
+ return Kt(_(r, "gx:MultiTrack"));
12493
12555
  for (a = 0; a < e.length; a++)
12494
12556
  if (n = Z(r, e[a]), n) {
12495
12557
  for (i = 0; i < n.length; i++)
12496
12558
  if (t = n[i], e[a] === "Point")
12497
12559
  s.push({
12498
12560
  type: "Point",
12499
- coordinates: po(F(I(t, "coordinates")) ?? "")
12561
+ coordinates: po(F(_(t, "coordinates")) ?? "")
12500
12562
  });
12501
12563
  else if (e[a] === "LineString")
12502
12564
  s.push({
12503
12565
  type: "LineString",
12504
- coordinates: Ua(F(I(t, "coordinates")) ?? "")
12566
+ coordinates: Ua(F(_(t, "coordinates")) ?? "")
12505
12567
  });
12506
12568
  else if (e[a] === "Polygon") {
12507
12569
  const u = Z(t, "LinearRing"), c = [];
12508
12570
  for (o = 0; o < u.length; o++)
12509
- c.push(Ua(F(I(u[o], "coordinates")) ?? ""));
12571
+ c.push(Ua(F(_(u[o], "coordinates")) ?? ""));
12510
12572
  s.push({
12511
12573
  type: "Polygon",
12512
12574
  coordinates: c
@@ -12522,40 +12584,40 @@ function Kt(r) {
12522
12584
  return { geoms: s, coordTimes: l };
12523
12585
  }
12524
12586
  function Hc(r, e, t, n) {
12525
- const a = Kt(r), i = {}, o = F(I(r, "name")), s = F(I(r, "address")), l = F(I(r, "description")), u = I(r, "TimeSpan"), c = I(r, "TimeStamp"), p = I(r, "ExtendedData"), f = I(r, "visibility");
12526
- let d, h = F(I(r, "styleUrl")), m = I(r, "LineStyle"), g = I(r, "PolyStyle");
12587
+ const a = Kt(r), i = {}, o = F(_(r, "name")), s = F(_(r, "address")), l = F(_(r, "description")), u = _(r, "TimeSpan"), c = _(r, "TimeStamp"), p = _(r, "ExtendedData"), f = _(r, "visibility");
12588
+ let d, h = F(_(r, "styleUrl")), m = _(r, "LineStyle"), g = _(r, "PolyStyle");
12527
12589
  if (!a.geoms.length) return [];
12528
12590
  if (o && (i.name = o), s && (i.address = s), h) {
12529
12591
  h.startsWith("#") || (h = `#${h}`), i.styleUrl = h, e[h] && (i.styleHash = e[h]), n[h] && (i.styleMapHash = n[h], i.styleHash = e[n[h].normal ?? ""]);
12530
12592
  const v = t[i.styleHash ?? ""];
12531
12593
  if (v) {
12532
- m || (m = I(v, "LineStyle")), g || (g = I(v, "PolyStyle"));
12533
- const x = I(v, "IconStyle");
12594
+ m || (m = _(v, "LineStyle")), g || (g = _(v, "PolyStyle"));
12595
+ const x = _(v, "IconStyle");
12534
12596
  if (x) {
12535
- const C = I(x, "Icon");
12597
+ const C = _(x, "Icon");
12536
12598
  if (C) {
12537
- const L = F(I(C, "href"));
12599
+ const L = F(_(C, "href"));
12538
12600
  L && (i.icon = L);
12539
12601
  }
12540
12602
  }
12541
12603
  }
12542
12604
  }
12543
12605
  if (l && (i.description = l), u) {
12544
- const v = F(I(u, "begin")), x = F(I(u, "end"));
12606
+ const v = F(_(u, "begin")), x = F(_(u, "end"));
12545
12607
  v && x && (i.timespan = { begin: v, end: x });
12546
12608
  }
12547
- if (c !== null && (i.timestamp = F(I(c, "when")) ?? (/* @__PURE__ */ new Date()).toISOString()), m !== null) {
12548
- const v = Na(F(I(m, "color"))), x = v[0], C = v[1], L = Number.parseFloat(F(I(m, "width")) ?? "");
12609
+ if (c !== null && (i.timestamp = F(_(c, "when")) ?? (/* @__PURE__ */ new Date()).toISOString()), m !== null) {
12610
+ const v = Na(F(_(m, "color"))), x = v[0], C = v[1], L = Number.parseFloat(F(_(m, "width")) ?? "");
12549
12611
  x && (i.stroke = x), Number.isNaN(C) || (i["stroke-opacity"] = C), Number.isNaN(L) || (i["stroke-width"] = L);
12550
12612
  }
12551
12613
  if (g) {
12552
- const v = Na(F(I(g, "color"))), x = v[0], C = v[1], L = F(I(g, "fill")), A = F(I(g, "outline"));
12614
+ const v = Na(F(_(g, "color"))), x = v[0], C = v[1], L = F(_(g, "fill")), A = F(_(g, "outline"));
12553
12615
  x && (i.fill = x), Number.isNaN(C) || (i["fill-opacity"] = C), L && (i["fill-opacity"] = L === "1" ? i["fill-opacity"] || 1 : 0), A && (i["stroke-opacity"] = A === "1" ? i["stroke-opacity"] || 1 : 0);
12554
12616
  }
12555
12617
  if (p) {
12556
12618
  const v = Z(p, "Data"), x = Z(p, "SimpleData");
12557
12619
  for (d = 0; d < v.length; d++)
12558
- i[v[d].getAttribute("name") ?? ""] = F(I(v[d], "value")) ?? "";
12620
+ i[v[d].getAttribute("name") ?? ""] = F(_(v[d], "value")) ?? "";
12559
12621
  for (d = 0; d < x.length; d++)
12560
12622
  i[x[d].getAttribute("name") ?? ""] = F(x[d]) ?? "";
12561
12623
  }
@@ -12599,7 +12661,7 @@ function Kc(r) {
12599
12661
  if (t.length === 0) return;
12600
12662
  const o = {
12601
12663
  ...Fn(r),
12602
- ...uo(I(r, "extensions"))
12664
+ ...uo(_(r, "extensions"))
12603
12665
  };
12604
12666
  return n.length !== 0 && (o.coordTimes = t.length === 1 ? n[0] : n), a.length !== 0 && (o.heartRates = t.length === 1 ? a[0] : a), t.length === 1 ? {
12605
12667
  type: "Feature",
@@ -12623,7 +12685,7 @@ function Zc(r) {
12623
12685
  type: "Feature",
12624
12686
  properties: {
12625
12687
  ...Fn(r),
12626
- ...uo(I(r, "extensions"))
12688
+ ...uo(_(r, "extensions"))
12627
12689
  },
12628
12690
  geometry: {
12629
12691
  type: "LineString",
@@ -12644,9 +12706,9 @@ function Xc(r) {
12644
12706
  function uo(r) {
12645
12707
  const e = {};
12646
12708
  if (r) {
12647
- const t = I(r, "line");
12709
+ const t = _(r, "line");
12648
12710
  if (t) {
12649
- const n = F(I(t, "color")), a = Number.parseFloat(F(I(t, "opacity")) ?? "0"), i = Number.parseFloat(F(I(t, "width")) ?? "0");
12711
+ const n = F(_(t, "color")), a = Number.parseFloat(F(_(t, "opacity")) ?? "0"), i = Number.parseFloat(F(_(t, "width")) ?? "0");
12650
12712
  n && (e.stroke = n), Number.isNaN(a) || (e["stroke-opacity"] = a), Number.isNaN(i) || (e["stroke-width"] = i * 96 / 25.4);
12651
12713
  }
12652
12714
  }
@@ -12682,7 +12744,7 @@ function Ze(r, e) {
12682
12744
  function Da(r, e) {
12683
12745
  return Number.parseFloat(Ze(r, e) ?? "0");
12684
12746
  }
12685
- function I(r, e) {
12747
+ function _(r, e) {
12686
12748
  const t = Z(r, e);
12687
12749
  return t.length ? t[0] : null;
12688
12750
  }
@@ -12699,7 +12761,7 @@ function an(r, e) {
12699
12761
  const t = {};
12700
12762
  let n, a;
12701
12763
  for (a = 0; a < e.length; a++)
12702
- n = I(r, e[a]), n && (t[e[a]] = F(n) ?? "");
12764
+ n = _(r, e[a]), n && (t[e[a]] = F(n) ?? "");
12703
12765
  return t;
12704
12766
  }
12705
12767
  function po(r) {
@@ -12711,7 +12773,7 @@ function Ua(r) {
12711
12773
  return t;
12712
12774
  }
12713
12775
  function fo(r) {
12714
- const e = [Da(r, "lon"), Da(r, "lat")], t = I(r, "ele"), n = I(r, "gpxtpx:hr") || I(r, "hr"), a = I(r, "time");
12776
+ const e = [Da(r, "lon"), Da(r, "lat")], t = _(r, "ele"), n = _(r, "gpxtpx:hr") || _(r, "hr"), a = _(r, "time");
12715
12777
  let i;
12716
12778
  return t && (i = Number.parseFloat(F(t) ?? "0"), Number.isNaN(i) || e.push(i)), {
12717
12779
  coordinates: e,
@@ -15115,7 +15177,7 @@ class pf {
15115
15177
  }
15116
15178
  }
15117
15179
  function So() {
15118
- return "4.0.0-rc.1";
15180
+ return "4.0.0-rc.2";
15119
15181
  }
15120
15182
  const ff = k.Map, df = k.Marker, hf = k.Popup, mf = k.Style, yf = k.CanvasSource, gf = k.GeoJSONSource, vf = k.ImageSource, bf = k.RasterTileSource, wf = k.RasterDEMTileSource, Sf = k.VectorTileSource, xf = k.VideoSource, kf = k.NavigationControl, Ef = k.GeolocateControl, Lf = k.AttributionControl, Cf = k.LogoControl, Af = k.ScaleControl, Tf = k.FullscreenControl, If = k.TerrainControl, _f = k.BoxZoomHandler, Mf = k.ScrollZoomHandler, Pf = k.CooperativeGesturesHandler, Rf = k.KeyboardHandler, Of = k.TwoFingersTouchPitchHandler, zf = k.MapWheelEvent, Ff = k.MapTouchEvent, $f = k.MapMouseEvent, Nf = k.config, jf = k.getVersion, {
15121
15183
  setRTLTextPlugin: Df,
@@ -15182,7 +15244,7 @@ export {
15182
15244
  Gp as ImageSource,
15183
15245
  vf as ImageSourceMLGL,
15184
15246
  Fc as ImageViewer,
15185
- ne as ImageViewerEvent,
15247
+ ae as ImageViewerEvent,
15186
15248
  uf as ImageViewerMarker,
15187
15249
  Bc as ImageViewerMarkerEvent,
15188
15250
  tf as KeyboardHandler,