@plannco-ppe/ppe-core 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ function bh(n, t, e) {
62
62
  n[t] = n[e], n[e] = i, ++t, --e;
63
63
  }
64
64
  }
65
- function Nt(n, t) {
65
+ function Gt(n, t) {
66
66
  const e = Array.isArray(t) ? t : [t], i = e.length;
67
67
  for (let s = 0; s < i; s++)
68
68
  n[n.length] = e[s];
@@ -85,7 +85,7 @@ const lt = {
85
85
  LEFT: 16
86
86
  };
87
87
  function at(n) {
88
- const t = zt();
88
+ const t = Wt();
89
89
  for (let e = 0, i = n.length; e < i; ++e)
90
90
  $i(t, n[e]);
91
91
  return t;
@@ -119,7 +119,7 @@ function _r(n, t) {
119
119
  let l = lt.UNKNOWN;
120
120
  return o < e ? l = l | lt.LEFT : o > s && (l = l | lt.RIGHT), a < i ? l = l | lt.BELOW : a > r && (l = l | lt.ABOVE), l === lt.UNKNOWN && (l = lt.INTERSECTING), l;
121
121
  }
122
- function zt() {
122
+ function Wt() {
123
123
  return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
124
124
  }
125
125
  function Ue(n, t, e, i, s) {
@@ -204,7 +204,7 @@ function ct(n) {
204
204
  return n[3] - n[1];
205
205
  }
206
206
  function jr(n, t, e) {
207
- const i = e || zt();
207
+ const i = e || Wt();
208
208
  return ft(n, t) ? (n[0] > t[0] ? i[0] = n[0] : i[0] = t[0], n[1] > t[1] ? i[1] = n[1] : i[1] = t[1], n[2] < t[2] ? i[2] = n[2] : i[2] = t[2], n[3] < t[3] ? i[3] = n[3] : i[3] = t[3]) : xn(i), i;
209
209
  }
210
210
  function cs(n) {
@@ -697,9 +697,9 @@ function sn(n, t, e) {
697
697
  function Ns(n, t) {
698
698
  return n in _i && t in _i[n] ? _i[n][t] : null;
699
699
  }
700
- const Jn = 0.9996, Gt = 669438e-8, fs = Gt * Gt, gs = fs * Gt, Xe = Gt / (1 - Gt), $o = Math.sqrt(1 - Gt), pi = (1 - $o) / (1 + $o), al = pi * pi, Zr = al * pi, Hr = Zr * pi, ll = Hr * pi, hl = 1 - Gt / 4 - 3 * fs / 64 - 5 * gs / 256, ac = 3 * Gt / 8 + 3 * fs / 32 + 45 * gs / 1024, lc = 15 * fs / 256 + 45 * gs / 1024, hc = 35 * gs / 3072, cc = 3 / 2 * pi - 27 / 32 * Zr + 269 / 512 * ll, uc = 21 / 16 * al - 55 / 32 * Hr, dc = 151 / 96 * Zr - 417 / 128 * ll, fc = 1097 / 512 * Hr, Qn = 6378137;
700
+ const Jn = 0.9996, zt = 669438e-8, fs = zt * zt, gs = fs * zt, Xe = zt / (1 - zt), $o = Math.sqrt(1 - zt), pi = (1 - $o) / (1 + $o), al = pi * pi, Zr = al * pi, Hr = Zr * pi, ll = Hr * pi, hl = 1 - zt / 4 - 3 * fs / 64 - 5 * gs / 256, ac = 3 * zt / 8 + 3 * fs / 32 + 45 * gs / 1024, lc = 15 * fs / 256 + 45 * gs / 1024, hc = 35 * gs / 3072, cc = 3 / 2 * pi - 27 / 32 * Zr + 269 / 512 * ll, uc = 21 / 16 * al - 55 / 32 * Hr, dc = 151 / 96 * Zr - 417 / 128 * ll, fc = 1097 / 512 * Hr, Qn = 6378137;
701
701
  function gc(n, t, e) {
702
- const i = n - 5e5, o = (e.north ? t : t - 1e7) / Jn / (Qn * hl), a = o + cc * Math.sin(2 * o) + uc * Math.sin(4 * o) + dc * Math.sin(6 * o) + fc * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, f = d * d, g = 1 - Gt * h, m = Math.sqrt(1 - Gt * h), _ = Qn / m, y = (1 - Gt) / g, p = Xe * c ** 2, C = p * p, x = i / (_ * Jn), E = x * x, S = E * x, T = S * x, I = T * x, R = I * x, P = a - u / y * (E / 2 - T / 24 * (5 + 3 * d + 10 * p - 4 * C - 9 * Xe)) + R / 720 * (61 + 90 * d + 298 * p + 45 * f - 252 * Xe - 3 * C);
702
+ const i = n - 5e5, o = (e.north ? t : t - 1e7) / Jn / (Qn * hl), a = o + cc * Math.sin(2 * o) + uc * Math.sin(4 * o) + dc * Math.sin(6 * o) + fc * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, f = d * d, g = 1 - zt * h, m = Math.sqrt(1 - zt * h), _ = Qn / m, y = (1 - zt) / g, p = Xe * c ** 2, C = p * p, x = i / (_ * Jn), E = x * x, S = E * x, T = S * x, I = T * x, R = I * x, P = a - u / y * (E / 2 - T / 24 * (5 + 3 * d + 10 * p - 4 * C - 9 * Xe)) + R / 720 * (61 + 90 * d + 298 * p + 45 * f - 252 * Xe - 3 * C);
703
703
  let k = (x - S / 6 * (1 + 2 * d + p) + I / 120 * (5 - 2 * p + 28 * d - 3 * C + 8 * Xe + 24 * f)) / c;
704
704
  return k = mr(
705
705
  k + Fe(cl(e.number)),
@@ -710,7 +710,7 @@ function gc(n, t, e) {
710
710
  const Jo = -80, Qo = 84, _c = -180, mc = 180;
711
711
  function yc(n, t, e) {
712
712
  n = mr(n, _c, mc), t < Jo ? t = Jo : t > Qo && (t = Qo);
713
- const i = Fe(t), s = Math.sin(i), r = Math.cos(i), o = s / r, a = o * o, l = a * a, h = Fe(n), c = cl(e.number), u = Fe(c), d = Qn / Math.sqrt(1 - Gt * s ** 2), f = Xe * r ** 2, g = r * mr(h - u, -Math.PI, Math.PI), m = g * g, _ = m * g, y = _ * g, p = y * g, C = p * g, x = Qn * (hl * i - ac * Math.sin(2 * i) + lc * Math.sin(4 * i) - hc * Math.sin(6 * i)), E = Jn * d * (g + _ / 6 * (1 - a + f) + p / 120 * (5 - 18 * a + l + 72 * f - 58 * Xe)) + 5e5;
713
+ const i = Fe(t), s = Math.sin(i), r = Math.cos(i), o = s / r, a = o * o, l = a * a, h = Fe(n), c = cl(e.number), u = Fe(c), d = Qn / Math.sqrt(1 - zt * s ** 2), f = Xe * r ** 2, g = r * mr(h - u, -Math.PI, Math.PI), m = g * g, _ = m * g, y = _ * g, p = y * g, C = p * g, x = Qn * (hl * i - ac * Math.sin(2 * i) + lc * Math.sin(4 * i) - hc * Math.sin(6 * i)), E = Jn * d * (g + _ / 6 * (1 - a + f) + p / 120 * (5 - 18 * a + l + 72 * f - 58 * Xe)) + 5e5;
714
714
  let S = Jn * (x + d * o * (m / 2 + y / 24 * (5 - a + 9 * f + 4 * f ** 2) + C / 720 * (61 - 58 * a + l + 600 * f - 330 * Xe)));
715
715
  return e.north || (S += 1e7), [E, S];
716
716
  }
@@ -956,7 +956,7 @@ function Pc() {
956
956
  );
957
957
  }
958
958
  Pc();
959
- const Ot = {
959
+ const kt = {
960
960
  /**
961
961
  * Triggered before a layer is rendered.
962
962
  * @event module:ol/render/Event~RenderEvent#prerender
@@ -1508,7 +1508,7 @@ function Ys(n, t, e) {
1508
1508
  const i = e ? xi(e) : "null";
1509
1509
  return t + ":" + n + ":" + i;
1510
1510
  }
1511
- const kt = new zc();
1511
+ const Nt = new zc();
1512
1512
  let zi = null;
1513
1513
  class pl extends ms {
1514
1514
  /**
@@ -1653,29 +1653,29 @@ class pl extends ms {
1653
1653
  }
1654
1654
  }
1655
1655
  function so(n, t, e, i, s, r) {
1656
- let o = t === void 0 ? void 0 : kt.get(t, e, s);
1656
+ let o = t === void 0 ? void 0 : Nt.get(t, e, s);
1657
1657
  return o || (o = new pl(
1658
1658
  n,
1659
1659
  n && "src" in n ? n.src || void 0 : t,
1660
1660
  e,
1661
1661
  i,
1662
1662
  s
1663
- ), kt.set(t, e, s, o, r)), r && o && !kt.getPattern(t, e, s) && kt.set(t, e, s, o, r), o;
1663
+ ), Nt.set(t, e, s, o, r)), r && o && !Nt.getPattern(t, e, s) && Nt.set(t, e, s, o, r), o;
1664
1664
  }
1665
1665
  function ee(n) {
1666
1666
  return n ? Array.isArray(n) ? eo(n) : typeof n == "object" && "src" in n ? Wc(n) : n : null;
1667
1667
  }
1668
1668
  function Wc(n) {
1669
1669
  if (!n.offset || !n.size)
1670
- return kt.getPattern(n.src, "anonymous", n.color);
1671
- const t = n.src + ":" + n.offset, e = kt.getPattern(
1670
+ return Nt.getPattern(n.src, "anonymous", n.color);
1671
+ const t = n.src + ":" + n.offset, e = Nt.getPattern(
1672
1672
  t,
1673
1673
  void 0,
1674
1674
  n.color
1675
1675
  );
1676
1676
  if (e)
1677
1677
  return e;
1678
- const i = kt.get(n.src, "anonymous", null);
1678
+ const i = Nt.get(n.src, "anonymous", null);
1679
1679
  if (i.getImageState() !== M.LOADED)
1680
1680
  return null;
1681
1681
  const s = ut(
@@ -1699,7 +1699,7 @@ function Wc(n) {
1699
1699
  M.LOADED,
1700
1700
  n.color,
1701
1701
  !0
1702
- ), kt.getPattern(t, void 0, n.color);
1702
+ ), Nt.getPattern(t, void 0, n.color);
1703
1703
  }
1704
1704
  function Le(n, t, e, i, s) {
1705
1705
  s = s !== void 0 ? s : [];
@@ -3841,7 +3841,7 @@ class Rl {
3841
3841
  this.offset_ = this.instructions_.length, this.zIndex = 0;
3842
3842
  }
3843
3843
  }
3844
- const ii = zt(), Ie = [], le = [], he = [], Re = [];
3844
+ const ii = Wt(), Ie = [], le = [], he = [], Re = [];
3845
3845
  function ga(n) {
3846
3846
  return n[3].declutterBox;
3847
3847
  }
@@ -4214,23 +4214,23 @@ class yu {
4214
4214
  v[20], R = /** @type {string} */
4215
4215
  v[21], P = /** @type {string} */
4216
4216
  v[22];
4217
- const Ft = this.drawLabelWithPointPlacement_(
4217
+ const bt = this.drawLabelWithPointPlacement_(
4218
4218
  T,
4219
4219
  I,
4220
4220
  R,
4221
4221
  P
4222
4222
  );
4223
- S = Ft.label, v[3] = S;
4223
+ S = bt.label, v[3] = S;
4224
4224
  const Ne = (
4225
4225
  /** @type {number} */
4226
4226
  v[23]
4227
4227
  );
4228
- m = (Ft.anchorX - Ne) * this.pixelRatio, v[4] = m;
4229
- const bt = (
4228
+ m = (bt.anchorX - Ne) * this.pixelRatio, v[4] = m;
4229
+ const Dt = (
4230
4230
  /** @type {number} */
4231
4231
  v[24]
4232
4232
  );
4233
- _ = (Ft.anchorY - bt) * this.pixelRatio, v[5] = _, Ms = S.height, v[6] = Ms, Pn = S.width, v[13] = Pn;
4233
+ _ = (bt.anchorY - Dt) * this.pixelRatio, v[5] = _, Ms = S.height, v[6] = Ms, Pn = S.width, v[13] = Pn;
4234
4234
  }
4235
4235
  let As;
4236
4236
  v.length > 25 && (As = /** @type {number} */
@@ -4244,7 +4244,7 @@ class yu {
4244
4244
  for (; f < g; f += 2) {
4245
4245
  if (As && As[Sh++] < Pn / this.pixelRatio)
4246
4246
  continue;
4247
- const Ft = this.calculateImageOrLabelDimensions_(
4247
+ const bt = this.calculateImageOrLabelDimensions_(
4248
4248
  S.width,
4249
4249
  S.height,
4250
4250
  c[f],
@@ -4265,13 +4265,13 @@ class yu {
4265
4265
  t,
4266
4266
  e,
4267
4267
  S,
4268
- Ft,
4268
+ bt,
4269
4269
  xh,
4270
4270
  Mn,
4271
4271
  Ln
4272
4272
  ];
4273
4273
  if (l) {
4274
- let bt, Jt, Dt;
4274
+ let Dt, Jt, Ot;
4275
4275
  if (Di) {
4276
4276
  const et = g - f;
4277
4277
  if (!Di[et]) {
@@ -4279,14 +4279,14 @@ class yu {
4279
4279
  continue;
4280
4280
  }
4281
4281
  const wt = Di[et];
4282
- bt = wt.args, Jt = wt.declutterMode, delete Di[et], Dt = ga(bt);
4282
+ Dt = wt.args, Jt = wt.declutterMode, delete Di[et], Ot = ga(Dt);
4283
4283
  }
4284
4284
  let re, oe;
4285
- if (bt && (Jt !== "declutter" || !l.collides(Dt)) && (re = !0), (y !== "declutter" || !l.collides(Ft.declutterBox)) && (oe = !0), Jt === "declutter" && y === "declutter") {
4285
+ if (Dt && (Jt !== "declutter" || !l.collides(Ot)) && (re = !0), (y !== "declutter" || !l.collides(bt.declutterBox)) && (oe = !0), Jt === "declutter" && y === "declutter") {
4286
4286
  const et = re && oe;
4287
4287
  re = et, oe = et;
4288
4288
  }
4289
- re && (Jt !== "none" && l.insert(Dt), this.replayImageOrLabel_.apply(this, bt)), oe && (y !== "none" && l.insert(Ft.declutterBox), this.replayImageOrLabel_.apply(this, Ne));
4289
+ re && (Jt !== "none" && l.insert(Ot), this.replayImageOrLabel_.apply(this, Dt)), oe && (y !== "none" && l.insert(bt.declutterBox), this.replayImageOrLabel_.apply(this, Ne));
4290
4290
  } else
4291
4291
  this.replayImageOrLabel_.apply(this, Ne);
4292
4292
  }
@@ -4345,7 +4345,7 @@ class yu {
4345
4345
  Oi in this.widths_ ? Ni = this.widths_[Oi] : (Ni = {}, this.widths_[Oi] = Ni);
4346
4346
  const Vo = lo(c, Go, zo, 2), Bo = Math.abs(ki[0]) * ca(Oi, T, Ni);
4347
4347
  if (Ih || Bo <= Vo) {
4348
- const Ft = this.textStates[I].textAlign, Ne = (Vo - Bo) * Ks(T, Ft), bt = gu(
4348
+ const bt = this.textStates[I].textAlign, Ne = (Vo - Bo) * Ks(T, bt), Dt = gu(
4349
4349
  c,
4350
4350
  Go,
4351
4351
  zo,
@@ -4360,12 +4360,12 @@ class yu {
4360
4360
  q ? 0 : this.viewRotation_,
4361
4361
  vh
4362
4362
  );
4363
- t: if (bt) {
4363
+ t: if (Dt) {
4364
4364
  const Jt = [];
4365
- let Dt, re, oe, et, wt;
4365
+ let Ot, re, oe, et, wt;
4366
4366
  if (R)
4367
- for (Dt = 0, re = bt.length; Dt < re; ++Dt) {
4368
- wt = bt[Dt], oe = /** @type {string} */
4367
+ for (Ot = 0, re = Dt.length; Ot < re; ++Ot) {
4368
+ wt = Dt[Ot], oe = /** @type {string} */
4369
4369
  wt[4], et = this.createLabel(oe, I, "", R), m = /** @type {number} */
4370
4370
  wt[2] + (ki[0] < 0 ? -Ds : Ds), _ = bs * et.height + (0.5 - bs) * 2 * Ds * ki[1] / ki[0] - jo;
4371
4371
  const ae = this.calculateImageOrLabelDimensions_(
@@ -4399,8 +4399,8 @@ class yu {
4399
4399
  ]);
4400
4400
  }
4401
4401
  if (P)
4402
- for (Dt = 0, re = bt.length; Dt < re; ++Dt) {
4403
- wt = bt[Dt], oe = /** @type {string} */
4402
+ for (Ot = 0, re = Dt.length; Ot < re; ++Ot) {
4403
+ wt = Dt[Ot], oe = /** @type {string} */
4404
4404
  wt[4], et = this.createLabel(oe, I, P, ""), m = /** @type {number} */
4405
4405
  wt[2], _ = bs * et.height - jo;
4406
4406
  const ae = this.calculateImageOrLabelDimensions_(
@@ -4444,13 +4444,13 @@ class yu {
4444
4444
  if (o !== void 0) {
4445
4445
  X = /** @type {import("../../Feature.js").FeatureLike} */
4446
4446
  v[1];
4447
- const Ft = o(
4447
+ const bt = o(
4448
4448
  X,
4449
4449
  tt,
4450
4450
  y
4451
4451
  );
4452
- if (Ft)
4453
- return Ft;
4452
+ if (bt)
4453
+ return bt;
4454
4454
  }
4455
4455
  ++u;
4456
4456
  break;
@@ -4626,7 +4626,7 @@ class xu {
4626
4626
  const c = this.hitDetectionContext_;
4627
4627
  c.canvas.width !== a || c.canvas.height !== a ? (c.canvas.width = a, c.canvas.height = a) : h || c.clearRect(0, 0, a, a);
4628
4628
  let u;
4629
- this.renderBuffer_ !== void 0 && (u = zt(), $i(u, t), pn(
4629
+ this.renderBuffer_ !== void 0 && (u = Wt(), $i(u, t), pn(
4630
4630
  u,
4631
4631
  e * (this.renderBuffer_ + s),
4632
4632
  u
@@ -5078,11 +5078,11 @@ class Es extends xs {
5078
5078
  const e = (r = this.fill_) == null ? void 0 : r.getKey(), i = `${t},${this.angle_},${this.radius},${this.radius2_},${this.points_},${e}` + Object.values(this.renderOptions_).join(",");
5079
5079
  let s = (
5080
5080
  /** @type {HTMLCanvasElement} */
5081
- (o = kt.get(i, null, null)) == null ? void 0 : o.getImage(1)
5081
+ (o = Nt.get(i, null, null)) == null ? void 0 : o.getImage(1)
5082
5082
  );
5083
5083
  if (!s) {
5084
5084
  const a = this.renderOptions_, l = Math.ceil(a.size * t), h = ut(l, l);
5085
- this.draw_(a, h, t), s = h.canvas, kt.set(
5085
+ this.draw_(a, h, t), s = h.canvas, Nt.set(
5086
5086
  i,
5087
5087
  null,
5088
5088
  null,
@@ -5353,7 +5353,7 @@ class Sn extends Es {
5353
5353
  this.radius = t, this.render();
5354
5354
  }
5355
5355
  }
5356
- class Wt {
5356
+ class At {
5357
5357
  /**
5358
5358
  * @param {Options} [options] Options.
5359
5359
  */
@@ -5367,7 +5367,7 @@ class Wt {
5367
5367
  */
5368
5368
  clone() {
5369
5369
  const t = this.getColor();
5370
- return new Wt({
5370
+ return new At({
5371
5371
  color: Array.isArray(t) ? t.slice() : t || void 0
5372
5372
  });
5373
5373
  }
@@ -6061,7 +6061,7 @@ function Cu(n) {
6061
6061
  let Zs = null;
6062
6062
  function Tl(n, t) {
6063
6063
  if (!Zs) {
6064
- const e = new Wt({
6064
+ const e = new At({
6065
6065
  color: "rgba(255,255,255,0.4)"
6066
6066
  }), i = new ie({
6067
6067
  color: "#3399CC",
@@ -6085,7 +6085,7 @@ function ho() {
6085
6085
  const n = {}, t = [255, 255, 255, 1], e = [0, 153, 255, 1], i = 3;
6086
6086
  return n.Polygon = [
6087
6087
  new gt({
6088
- fill: new Wt({
6088
+ fill: new At({
6089
6089
  color: [255, 255, 255, 0.5]
6090
6090
  })
6091
6091
  })
@@ -6106,7 +6106,7 @@ function ho() {
6106
6106
  new gt({
6107
6107
  image: new Sn({
6108
6108
  radius: i * 2,
6109
- fill: new Wt({
6109
+ fill: new At({
6110
6110
  color: e
6111
6111
  }),
6112
6112
  stroke: new ie({
@@ -6130,7 +6130,7 @@ class dn {
6130
6130
  * @param {Options} [options] Options.
6131
6131
  */
6132
6132
  constructor(t) {
6133
- t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = Si(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new Wt({ color: wu }), this.maxAngle_ = t.maxAngle !== void 0 ? t.maxAngle : Math.PI / 4, this.placement_ = t.placement !== void 0 ? t.placement : "point", this.overflow_ = !!t.overflow, this.stroke_ = t.stroke !== void 0 ? t.stroke : null, this.offsetX_ = t.offsetX !== void 0 ? t.offsetX : 0, this.offsetY_ = t.offsetY !== void 0 ? t.offsetY : 0, this.backgroundFill_ = t.backgroundFill ? t.backgroundFill : null, this.backgroundStroke_ = t.backgroundStroke ? t.backgroundStroke : null, this.padding_ = t.padding === void 0 ? null : t.padding, this.declutterMode_ = t.declutterMode;
6133
+ t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = Si(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new At({ color: wu }), this.maxAngle_ = t.maxAngle !== void 0 ? t.maxAngle : Math.PI / 4, this.placement_ = t.placement !== void 0 ? t.placement : "point", this.overflow_ = !!t.overflow, this.stroke_ = t.stroke !== void 0 ? t.stroke : null, this.offsetX_ = t.offsetX !== void 0 ? t.offsetX : 0, this.offsetY_ = t.offsetY !== void 0 ? t.offsetY : 0, this.backgroundFill_ = t.backgroundFill ? t.backgroundFill : null, this.backgroundStroke_ = t.backgroundStroke ? t.backgroundStroke : null, this.padding_ = t.padding === void 0 ? null : t.padding, this.declutterMode_ = t.declutterMode;
6134
6134
  }
6135
6135
  /**
6136
6136
  * Clones the style.
@@ -6521,7 +6521,7 @@ class dn {
6521
6521
  const xa = Bt(), Su = [NaN, NaN];
6522
6522
  class Pl extends Ht {
6523
6523
  constructor() {
6524
- super(), this.extent_ = zt(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = gl(
6524
+ super(), this.extent_ = Wt(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = gl(
6525
6525
  (t, e, i) => {
6526
6526
  if (!i)
6527
6527
  return this.getSimplifiedGeometry(e);
@@ -8110,7 +8110,7 @@ class bl extends Wu {
8110
8110
  * @protected
8111
8111
  */
8112
8112
  preRender(t, e) {
8113
- this.frameState = e, !e.declutter && this.dispatchRenderEvent_(Ot.PRERENDER, t, e);
8113
+ this.frameState = e, !e.declutter && this.dispatchRenderEvent_(kt.PRERENDER, t, e);
8114
8114
  }
8115
8115
  /**
8116
8116
  * @param {CanvasRenderingContext2D} context Context.
@@ -8118,7 +8118,7 @@ class bl extends Wu {
8118
8118
  * @protected
8119
8119
  */
8120
8120
  postRender(t, e) {
8121
- e.declutter || this.dispatchRenderEvent_(Ot.POSTRENDER, t, e);
8121
+ e.declutter || this.dispatchRenderEvent_(kt.POSTRENDER, t, e);
8122
8122
  }
8123
8123
  /**
8124
8124
  * @param {import("../../Map.js").FrameState} frameState Frame state.
@@ -8138,11 +8138,11 @@ class bl extends Wu {
8138
8138
  */
8139
8139
  renderDeferred(t) {
8140
8140
  t.declutter && (this.dispatchRenderEvent_(
8141
- Ot.PRERENDER,
8141
+ kt.PRERENDER,
8142
8142
  this.context,
8143
8143
  t
8144
8144
  ), t.declutter && this.deferredContext_ && (this.deferredContext_.draw(this.context), this.deferredContext_.clear()), this.renderDeferredInternal(t), this.dispatchRenderEvent_(
8145
- Ot.POSTRENDER,
8145
+ kt.POSTRENDER,
8146
8146
  this.context,
8147
8147
  t
8148
8148
  ));
@@ -8185,7 +8185,7 @@ class Xu extends bl {
8185
8185
  * @param {import("../../layer/BaseVector.js").default} vectorLayer Vector layer.
8186
8186
  */
8187
8187
  constructor(t) {
8188
- super(t), this.boundHandleStyleImageChange_ = this.handleStyleImageChange_.bind(this), this.animatingOrInteracting_, this.hitDetectionImageData_ = null, this.clipped_ = !1, this.renderedFeatures_ = null, this.renderedRevision_ = -1, this.renderedResolution_ = NaN, this.renderedExtent_ = zt(), this.wrappedRenderedExtent_ = zt(), this.renderedRotation_, this.renderedCenter_ = null, this.renderedProjection_ = null, this.renderedPixelRatio_ = 1, this.renderedRenderOrder_ = null, this.renderedFrameDeclutter_, this.replayGroup_ = null, this.replayGroupChanged = !0, this.clipping = !0, this.targetContext_ = null, this.opacity_ = 1;
8188
+ super(t), this.boundHandleStyleImageChange_ = this.handleStyleImageChange_.bind(this), this.animatingOrInteracting_, this.hitDetectionImageData_ = null, this.clipped_ = !1, this.renderedFeatures_ = null, this.renderedRevision_ = -1, this.renderedResolution_ = NaN, this.renderedExtent_ = Wt(), this.wrappedRenderedExtent_ = Wt(), this.renderedRotation_, this.renderedCenter_ = null, this.renderedProjection_ = null, this.renderedPixelRatio_ = 1, this.renderedRenderOrder_ = null, this.renderedFrameDeclutter_, this.replayGroup_ = null, this.replayGroupChanged = !0, this.clipping = !0, this.targetContext_ = null, this.opacity_ = 1;
8189
8189
  }
8190
8190
  /**
8191
8191
  * @param {ExecutorGroup} executorGroup Executor group.
@@ -8265,7 +8265,7 @@ class Xu extends bl {
8265
8265
  this.prepareContainer(t, e);
8266
8266
  const r = this.context, o = this.replayGroup_;
8267
8267
  let a = o && !o.isEmpty();
8268
- if (!a && !(this.getLayer().hasListener(Ot.PRERENDER) || this.getLayer().hasListener(Ot.POSTRENDER)))
8268
+ if (!a && !(this.getLayer().hasListener(kt.PRERENDER) || this.getLayer().hasListener(kt.POSTRENDER)))
8269
8269
  return this.container;
8270
8270
  if (this.setDrawContext_(), this.preRender(r, t), s.projection, this.clipped_ = !1, a && i.extent && this.clipping) {
8271
8271
  const l = Me(i.extent);
@@ -9897,7 +9897,7 @@ function fn(n, t, e) {
9897
9897
  }
9898
9898
  if (!i)
9899
9899
  return null;
9900
- const s = new Wt();
9900
+ const s = new At();
9901
9901
  return function(r) {
9902
9902
  const o = i(r);
9903
9903
  return o === Qr ? null : (s.setColor(o), s);
@@ -10746,7 +10746,7 @@ class _n extends Oe {
10746
10746
  ), this.changed();
10747
10747
  }
10748
10748
  }
10749
- class At extends Oe {
10749
+ class Ft extends Oe {
10750
10750
  /**
10751
10751
  * @param {import("../coordinate.js").Coordinate} coordinates Coordinates.
10752
10752
  * @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
@@ -10761,7 +10761,7 @@ class At extends Oe {
10761
10761
  * @override
10762
10762
  */
10763
10763
  clone() {
10764
- const t = new At(this.flatCoordinates.slice(), this.layout);
10764
+ const t = new Ft(this.flatCoordinates.slice(), this.layout);
10765
10765
  return t.applyProperties(this), t;
10766
10766
  }
10767
10767
  /**
@@ -10933,7 +10933,7 @@ function ba(n, t) {
10933
10933
  return [e[0] + o * (i[0] - e[0]), e[1] + o * (i[1] - e[1])];
10934
10934
  }
10935
10935
  function Rs(n, t, e, i, s, r) {
10936
- return r = r ?? $a(zt(), n, t, e, i), ft(s, r) ? r[0] >= s[0] && r[2] <= s[2] || r[1] >= s[1] && r[3] <= s[3] ? !0 : Zl(
10936
+ return r = r ?? $a(Wt(), n, t, e, i), ft(s, r) ? r[0] >= s[0] && r[2] <= s[2] || r[1] >= s[1] && r[3] <= s[3] ? !0 : Zl(
10937
10937
  n,
10938
10938
  t,
10939
10939
  e,
@@ -11132,7 +11132,7 @@ class Zt extends Oe {
11132
11132
  * @api
11133
11133
  */
11134
11134
  appendLinearRing(t) {
11135
- this.flatCoordinates ? Nt(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed();
11135
+ this.flatCoordinates ? Gt(this.flatCoordinates, t.getFlatCoordinates()) : this.flatCoordinates = t.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed();
11136
11136
  }
11137
11137
  /**
11138
11138
  * Make a complete copy of the geometry.
@@ -11258,7 +11258,7 @@ class Zt extends Oe {
11258
11258
  * @api
11259
11259
  */
11260
11260
  getInteriorPoint() {
11261
- return new At(this.getFlatInteriorPoint(), "XYM");
11261
+ return new Ft(this.getFlatInteriorPoint(), "XYM");
11262
11262
  }
11263
11263
  /**
11264
11264
  * Return the number of rings of the polygon, this includes the exterior
@@ -13171,7 +13171,7 @@ let vs = class extends $l {
13171
13171
  setMap(t) {
13172
13172
  this.mapPrecomposeKey_ && ($(this.mapPrecomposeKey_), this.mapPrecomposeKey_ = null), t || this.changed(), this.mapRenderKey_ && ($(this.mapRenderKey_), this.mapRenderKey_ = null), t && (this.mapPrecomposeKey_ = W(
13173
13173
  t,
13174
- Ot.PRECOMPOSE,
13174
+ kt.PRECOMPOSE,
13175
13175
  this.handlePrecompose_,
13176
13176
  this
13177
13177
  ), this.mapRenderKey_ = W(this, D.CHANGE, t.render, t), this.changed());
@@ -13857,7 +13857,7 @@ function hf(n) {
13857
13857
  }
13858
13858
  function Ql(n, t, e, i) {
13859
13859
  const s = [];
13860
- let r = zt();
13860
+ let r = Wt();
13861
13861
  for (let o = 0, a = e.length; o < a; ++o) {
13862
13862
  const l = e[o];
13863
13863
  r = Gr(
@@ -14409,7 +14409,7 @@ class ne extends Oe {
14409
14409
  * @api
14410
14410
  */
14411
14411
  appendCoordinate(t) {
14412
- Nt(this.flatCoordinates, t), this.changed();
14412
+ Gt(this.flatCoordinates, t), this.changed();
14413
14413
  }
14414
14414
  /**
14415
14415
  * Make a complete copy of the geometry.
@@ -14644,7 +14644,7 @@ class Ii extends Oe {
14644
14644
  ), r = [], o = [];
14645
14645
  for (let l = 0, h = s.length; l < h; ++l) {
14646
14646
  const c = s[l];
14647
- Nt(r, c.getFlatCoordinates()), o.push(r.length);
14647
+ Gt(r, c.getFlatCoordinates()), o.push(r.length);
14648
14648
  }
14649
14649
  const a = s.length === 0 ? this.getLayout() : s[0].getLayout();
14650
14650
  this.setFlatCoordinates(a, r), this.ends_ = o;
@@ -14656,7 +14656,7 @@ class Ii extends Oe {
14656
14656
  * @api
14657
14657
  */
14658
14658
  appendLineString(t) {
14659
- Nt(this.flatCoordinates, t.getFlatCoordinates().slice()), this.ends_.push(this.flatCoordinates.length), this.changed();
14659
+ Gt(this.flatCoordinates, t.getFlatCoordinates().slice()), this.ends_.push(this.flatCoordinates.length), this.changed();
14660
14660
  }
14661
14661
  /**
14662
14662
  * Make a complete copy of the geometry.
@@ -14819,7 +14819,7 @@ class Ii extends Oe {
14819
14819
  r,
14820
14820
  0.5
14821
14821
  );
14822
- Nt(t, h), i = l;
14822
+ Gt(t, h), i = l;
14823
14823
  }
14824
14824
  return t;
14825
14825
  }
@@ -14909,7 +14909,7 @@ class vn extends Oe {
14909
14909
  * @api
14910
14910
  */
14911
14911
  appendPoint(t) {
14912
- Nt(this.flatCoordinates, t.getFlatCoordinates()), this.changed();
14912
+ Gt(this.flatCoordinates, t.getFlatCoordinates()), this.changed();
14913
14913
  }
14914
14914
  /**
14915
14915
  * Make a complete copy of the geometry.
@@ -14974,7 +14974,7 @@ class vn extends Oe {
14974
14974
  */
14975
14975
  getPoint(t) {
14976
14976
  const e = this.flatCoordinates.length / this.stride;
14977
- return t < 0 || e <= t ? null : new At(
14977
+ return t < 0 || e <= t ? null : new Ft(
14978
14978
  this.flatCoordinates.slice(
14979
14979
  t * this.stride,
14980
14980
  (t + 1) * this.stride
@@ -14990,7 +14990,7 @@ class vn extends Oe {
14990
14990
  getPoints() {
14991
14991
  const t = this.flatCoordinates, e = this.layout, i = this.stride, s = [];
14992
14992
  for (let r = 0, o = t.length; r < o; r += i) {
14993
- const a = new At(t.slice(r, r + i), e);
14993
+ const a = new Ft(t.slice(r, r + i), e);
14994
14994
  s.push(a);
14995
14995
  }
14996
14996
  return s;
@@ -15053,7 +15053,7 @@ class Ri extends Oe {
15053
15053
  const h = s[a], c = r.length, u = h.getEnds();
15054
15054
  for (let d = 0, f = u.length; d < f; ++d)
15055
15055
  u[d] += c;
15056
- Nt(r, h.getFlatCoordinates()), o.push(u);
15056
+ Gt(r, h.getFlatCoordinates()), o.push(u);
15057
15057
  }
15058
15058
  e = s.length === 0 ? this.getLayout() : s[0].getLayout(), t = r, i = o;
15059
15059
  }
@@ -15078,7 +15078,7 @@ class Ri extends Oe {
15078
15078
  this.flatCoordinates = t.getFlatCoordinates().slice(), e = t.getEnds().slice(), this.endss_.push();
15079
15079
  else {
15080
15080
  const i = this.flatCoordinates.length;
15081
- Nt(this.flatCoordinates, t.getFlatCoordinates()), e = t.getEnds().slice();
15081
+ Gt(this.flatCoordinates, t.getFlatCoordinates()), e = t.getEnds().slice();
15082
15082
  for (let s = 0, r = e.length; s < r; ++s)
15083
15083
  e[s] += i;
15084
15084
  }
@@ -15458,7 +15458,7 @@ class Lt {
15458
15458
  );
15459
15459
  for (let s = 0, r = i.length; s < r; ++s) {
15460
15460
  const o = i[s], a = os(t, e, o, 2, 0.5);
15461
- Nt(this.flatMidpoints_, a), e = o;
15461
+ Gt(this.flatMidpoints_, a), e = o;
15462
15462
  }
15463
15463
  }
15464
15464
  return this.flatMidpoints_;
@@ -16260,7 +16260,7 @@ class Tn extends th {
16260
16260
  */
16261
16261
  getFeatures() {
16262
16262
  let t;
16263
- return this.featuresCollection_ ? t = this.featuresCollection_.getArray().slice(0) : this.featuresRtree_ && (t = this.featuresRtree_.getAll(), He(this.nullGeometryFeatures_) || Nt(t, Object.values(this.nullGeometryFeatures_))), t;
16263
+ return this.featuresCollection_ ? t = this.featuresCollection_.getArray().slice(0) : this.featuresRtree_ && (t = this.featuresRtree_.getAll(), He(this.nullGeometryFeatures_) || Gt(t, Object.values(this.nullGeometryFeatures_))), t;
16264
16264
  }
16265
16265
  /**
16266
16266
  * Get all features whose geometry intersects the provided coordinate.
@@ -17526,7 +17526,7 @@ class vf extends we {
17526
17526
  };
17527
17527
  else {
17528
17528
  let r;
17529
- s === "Point" ? r = At : s === "LineString" ? r = ne : s === "Polygon" && (r = Zt), i = (o, a, l) => (a ? s === "Polygon" ? o[0].length ? a.setCoordinates(
17529
+ s === "Point" ? r = Ft : s === "LineString" ? r = ne : s === "Polygon" && (r = Zt), i = (o, a, l) => (a ? s === "Polygon" ? o[0].length ? a.setCoordinates(
17530
17530
  [o[0].concat([o[0][0]])],
17531
17531
  this.geometryLayout_
17532
17532
  ) : a.setCoordinates([], this.geometryLayout_) : a.setCoordinates(o, this.geometryLayout_) : a = new r(o, this.geometryLayout_), a);
@@ -17812,7 +17812,7 @@ class vf extends we {
17812
17812
  * @private
17813
17813
  */
17814
17814
  createOrUpdateSketchPoint_(t) {
17815
- this.sketchPoint_ ? this.sketchPoint_.getGeometry().setCoordinates(t) : (this.sketchPoint_ = new Et(new At(t)), this.updateSketchFeatures_());
17815
+ this.sketchPoint_ ? this.sketchPoint_.getGeometry().setCoordinates(t) : (this.sketchPoint_ = new Et(new Ft(t)), this.updateSketchFeatures_());
17816
17816
  }
17817
17817
  /**
17818
17818
  * @param {import("../geom/Polygon.js").default} geometry Polygon geometry.
@@ -18022,7 +18022,7 @@ class vf extends we {
18022
18022
  const i = t.getGeometry();
18023
18023
  this.sketchFeature_ = t, this.sketchCoords_ = i.getCoordinates();
18024
18024
  const s = this.sketchCoords_[this.sketchCoords_.length - 1];
18025
- this.finishCoordinate_ = s.slice(), this.sketchCoords_.push(s.slice()), this.sketchPoint_ = new Et(new At(s)), this.updateSketchFeatures_(), this.dispatchEvent(
18025
+ this.finishCoordinate_ = s.slice(), this.sketchCoords_.push(s.slice()), this.sketchPoint_ = new Et(new Ft(s)), this.updateSketchFeatures_(), this.dispatchEvent(
18026
18026
  new Xn(jn.DRAWSTART, this.sketchFeature_)
18027
18027
  );
18028
18028
  }
@@ -18546,7 +18546,7 @@ class Af extends we {
18546
18546
  */
18547
18547
  createOrUpdateVertexFeature_(t, e, i, s) {
18548
18548
  let r = this.vertexFeature_;
18549
- return r ? r.getGeometry().setCoordinates(t) : (r = new Et(new At(t)), this.vertexFeature_ = r, this.overlay_.getSource().addFeature(r)), r.set("features", e), r.set("geometries", i), r.set("existing", s), r;
18549
+ return r ? r.getGeometry().setCoordinates(t) : (r = new Et(new Ft(t)), this.vertexFeature_ = r, this.overlay_.getSource().addFeature(r)), r.set("features", e), r.set("geometries", i), r.set("existing", s), r;
18550
18550
  }
18551
18551
  /**
18552
18552
  * Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may modify the geometry.
@@ -18747,7 +18747,7 @@ class Af extends we {
18747
18747
  e.forEachFeatureAtPixel(
18748
18748
  i,
18749
18749
  (l, h, c) => {
18750
- c && c.getType() === "Point" && (c = new At(
18750
+ c && c.getType() === "Point" && (c = new Ft(
18751
18751
  De(c.getCoordinates())
18752
18752
  ));
18753
18753
  const u = c || l.getGeometry();
@@ -19517,7 +19517,7 @@ class Mo extends Li {
19517
19517
  }
19518
19518
  function jf() {
19519
19519
  const n = ho();
19520
- return Nt(n.Polygon, n.LineString), Nt(n.GeometryCollection, n.LineString), function(t) {
19520
+ return Gt(n.Polygon, n.LineString), Gt(n.GeometryCollection, n.LineString), function(t) {
19521
19521
  return t.getGeometry() ? n[t.getGeometry().getType()] : null;
19522
19522
  };
19523
19523
  }
@@ -19699,7 +19699,7 @@ class Xf extends we {
19699
19699
  if (s) {
19700
19700
  const r = this.segmenters_[s.getType()];
19701
19701
  if (r) {
19702
- this.indexedFeaturesExtents_[i] = s.getExtent(zt());
19702
+ this.indexedFeaturesExtents_[i] = s.getExtent(Wt());
19703
19703
  const o = r(
19704
19704
  s,
19705
19705
  this.getMap().getView().getProjection()
@@ -21345,11 +21345,11 @@ class tg extends io {
21345
21345
  * @protected
21346
21346
  */
21347
21347
  scheduleExpireIconCache(t) {
21348
- kt.canExpireCache() && t.postRenderFunctions.push(eg);
21348
+ Nt.canExpireCache() && t.postRenderFunctions.push(eg);
21349
21349
  }
21350
21350
  }
21351
21351
  function eg(n, t) {
21352
- kt.expire();
21352
+ Nt.expire();
21353
21353
  }
21354
21354
  class ig extends tg {
21355
21355
  /**
@@ -21395,7 +21395,7 @@ class ig extends tg {
21395
21395
  this.renderedVisible_ && (this.element_.style.display = "none", this.renderedVisible_ = !1);
21396
21396
  return;
21397
21397
  }
21398
- this.calculateMatrices2D(t), this.dispatchRenderEvent(Ot.PRECOMPOSE, t);
21398
+ this.calculateMatrices2D(t), this.dispatchRenderEvent(kt.PRECOMPOSE, t);
21399
21399
  const e = t.layerStatesArray.sort(
21400
21400
  (a, l) => a.zIndex - l.zIndex
21401
21401
  );
@@ -21417,7 +21417,7 @@ class ig extends tg {
21417
21417
  const d = c.render(t, o);
21418
21418
  d && (d !== o && (this.children_.push(d), o = d), r.push(h));
21419
21419
  }
21420
- this.declutter(t, r), Jh(this.element_, this.children_), this.dispatchRenderEvent(Ot.POSTCOMPOSE, t), this.renderedVisible_ || (this.element_.style.display = "", this.renderedVisible_ = !0), this.scheduleExpireIconCache(t);
21420
+ this.declutter(t, r), Jh(this.element_, this.children_), this.dispatchRenderEvent(kt.POSTCOMPOSE, t), this.renderedVisible_ || (this.element_.style.display = "", this.renderedVisible_ = !0), this.scheduleExpireIconCache(t);
21421
21421
  }
21422
21422
  /**
21423
21423
  * @param {import("../Map.js").FrameState} frameState Frame state.
@@ -22047,8 +22047,8 @@ class ng extends Ht {
22047
22047
  }
22048
22048
  e.getTilesLoading() < s && (e.reprioritize(), e.loadMoreTiles(s, r));
22049
22049
  }
22050
- t && this.renderer_ && !t.animate && (this.renderComplete_ ? (this.hasListener(Ot.RENDERCOMPLETE) && this.renderer_.dispatchRenderEvent(
22051
- Ot.RENDERCOMPLETE,
22050
+ t && this.renderer_ && !t.animate && (this.renderComplete_ ? (this.hasListener(kt.RENDERCOMPLETE) && this.renderer_.dispatchRenderEvent(
22051
+ kt.RENDERCOMPLETE,
22052
22052
  t
22053
22053
  ), this.loaded_ === !1 && (this.loaded_ = !0, this.dispatchEvent(
22054
22054
  new ci(de.LOADEND, this, t)
@@ -22316,7 +22316,7 @@ class ng extends Ht {
22316
22316
  new ci(de.MOVESTART, this, s)
22317
22317
  ), this.previousExtent_ = xn(this.previousExtent_)), this.previousExtent_ && !r.viewHints[ht.ANIMATING] && !r.viewHints[ht.INTERACTING] && !nn(r.extent, this.previousExtent_) && (this.dispatchEvent(
22318
22318
  new ci(de.MOVEEND, this, r)
22319
- ), Ha(r.extent, this.previousExtent_))), this.dispatchEvent(new ci(de.POSTRENDER, this, r)), this.renderComplete_ = (this.hasListener(de.LOADSTART) || this.hasListener(de.LOADEND) || this.hasListener(Ot.RENDERCOMPLETE)) && !this.tileQueue_.getTilesLoading() && !this.tileQueue_.getCount() && !this.getLoadingOrNotReady(), this.postRenderTimeoutHandle_ || (this.postRenderTimeoutHandle_ = setTimeout(() => {
22319
+ ), Ha(r.extent, this.previousExtent_))), this.dispatchEvent(new ci(de.POSTRENDER, this, r)), this.renderComplete_ = (this.hasListener(de.LOADSTART) || this.hasListener(de.LOADEND) || this.hasListener(kt.RENDERCOMPLETE)) && !this.tileQueue_.getTilesLoading() && !this.tileQueue_.getCount() && !this.getLoadingOrNotReady(), this.postRenderTimeoutHandle_ || (this.postRenderTimeoutHandle_ = setTimeout(() => {
22320
22320
  this.postRenderTimeoutHandle_ = void 0, this.handlePostRender();
22321
22321
  }, 0));
22322
22322
  }
@@ -22872,7 +22872,7 @@ function Ao(n, t, e) {
22872
22872
  return r;
22873
22873
  }
22874
22874
  const ag = {
22875
- Point: At,
22875
+ Point: Ft,
22876
22876
  LineString: ne,
22877
22877
  Polygon: Zt,
22878
22878
  MultiPoint: vn,
@@ -23782,7 +23782,7 @@ function Wg(n, t) {
23782
23782
  width: 2,
23783
23783
  lineDash: [5, 5]
23784
23784
  }),
23785
- fill: new Wt({ color: "rgba(0,0,0,0)" })
23785
+ fill: new At({ color: "rgba(0,0,0,0)" })
23786
23786
  })
23787
23787
  ];
23788
23788
  const a = o.length ? o : [r.color];
@@ -23809,7 +23809,7 @@ function mh(n) {
23809
23809
  const c = Yt(h.getExtent()), { title: u, items: d } = o;
23810
23810
  if (u) {
23811
23811
  const f = new Et({
23812
- geometry: new At(c),
23812
+ geometry: new Ft(c),
23813
23813
  __type: "zone-label"
23814
23814
  });
23815
23815
  f.setStyle(
@@ -23817,7 +23817,7 @@ function mh(n) {
23817
23817
  text: new dn({
23818
23818
  text: u,
23819
23819
  font: "bold 14px Arial",
23820
- fill: new Wt({ color: "#000" }),
23820
+ fill: new At({ color: "#000" }),
23821
23821
  offsetY: -d.length * 10 - 10
23822
23822
  })
23823
23823
  })
@@ -23825,16 +23825,18 @@ function mh(n) {
23825
23825
  }
23826
23826
  d.forEach((f, g) => {
23827
23827
  const m = new Et({
23828
- geometry: new At(c),
23828
+ geometry: new Ft(c),
23829
23829
  __type: "zone-label"
23830
23830
  });
23831
23831
  m.setStyle(
23832
23832
  new gt({
23833
23833
  text: new dn({
23834
- text: "■ " + f.text,
23834
+ text: f.text,
23835
23835
  font: "12px Arial",
23836
- fill: new Wt({ color: f.color }),
23837
- offsetY: g * 15 - d.length * 5,
23836
+ fill: new At({ color: "#ffffff" }),
23837
+ backgroundFill: new At({ color: f.color }),
23838
+ padding: [3, 6, 3, 6],
23839
+ offsetY: g * 20 - d.length * 5,
23838
23840
  textAlign: "left"
23839
23841
  })
23840
23842
  })
@@ -23879,7 +23881,7 @@ function Dr({ color: n }) {
23879
23881
  return [
23880
23882
  new gt({
23881
23883
  stroke: new ie({ color: n, width: 3 }),
23882
- fill: new Wt({ color: n + "80" })
23884
+ fill: new At({ color: n + "80" })
23883
23885
  })
23884
23886
  ];
23885
23887
  }
@@ -23887,7 +23889,7 @@ function Yg({ color: n }) {
23887
23889
  return [
23888
23890
  new gt({
23889
23891
  stroke: new ie({ color: n, width: 5 }),
23890
- fill: new Wt({ color: n + "A0" })
23892
+ fill: new At({ color: n + "A0" })
23891
23893
  })
23892
23894
  ];
23893
23895
  }
@@ -24003,7 +24005,7 @@ function Jg(n, t, e, i, s, r, o, a, l, h, c, u, d, f) {
24003
24005
  return Math.round(E * e) / e;
24004
24006
  }
24005
24007
  g.globalCompositeOperation = "lighter";
24006
- const _ = zt();
24008
+ const _ = Wt();
24007
24009
  l.forEach(function(E, S, T) {
24008
24010
  qa(_, E.extent);
24009
24011
  });
@@ -24304,7 +24306,7 @@ class t_ {
24304
24306
  * @return {import("../extent.js").Extent} Calculated extent.
24305
24307
  */
24306
24308
  calculateSourceExtent() {
24307
- const t = zt();
24309
+ const t = Wt();
24308
24310
  return this.triangles_.forEach(function(e, i, s) {
24309
24311
  const r = e.source;
24310
24312
  $i(t, r[0]), $i(t, r[1]), $i(t, r[2]);