@mapsindoors/map-template 1.99.15 → 1.99.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { g as _2, u as g2, a as y2, i as pa, j as ma, P as Yr } from "./reactcomponent-BgyD35W6.mjs";
1
+ import { g as _2, u as g2, w as y2, x as al, j as pa, P as Yr } from "./reactcomponent-Bv1-qwtn.mjs";
2
2
  import * as Oo from "react";
3
3
  import { useState as pb, useEffect as Vm } from "react";
4
4
  import { createPortal as x2 } from "react-dom";
@@ -9,19 +9,19 @@ function b2() {
9
9
  Ui.exports = Jn();
10
10
  })(v2, (function() {
11
11
  let Kn, Jn, Kr;
12
- function po(a, We) {
12
+ function fo(a, We) {
13
13
  if (!Kn) Kn = We;
14
14
  else if (!Jn) Jn = We;
15
15
  else {
16
16
  const $t = {};
17
17
  Kn($t), Kr = We($t);
18
- const an = "self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; (" + Kn + ")(sharedChunk); (" + Jn + ")(undefined, sharedChunk); self.onerror = null;";
19
- typeof window < "u" && window && window.URL && window.URL.createObjectURL && (Kr.workerUrl = window.URL.createObjectURL(new Blob([an], { type: "text/javascript" })));
18
+ const sn = "self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; (" + Kn + ")(sharedChunk); (" + Jn + ")(undefined, sharedChunk); self.onerror = null;";
19
+ typeof window < "u" && window && window.URL && window.URL.createObjectURL && (Kr.workerUrl = window.URL.createObjectURL(new Blob([sn], { type: "text/javascript" })));
20
20
  }
21
21
  }
22
- po(["exports"], function(a) {
22
+ fo(["exports"], function(a) {
23
23
  var We = 1e-6, $t = typeof Float32Array < "u" ? Float32Array : Array;
24
- function an(r, e) {
24
+ function sn(r, e) {
25
25
  var t = e[0], n = e[1], s = e[2], c = e[3], h = t * c - s * n;
26
26
  return h ? (r[0] = c * (h = 1 / h), r[1] = -n * h, r[2] = -s * h, r[3] = t * h, r) : null;
27
27
  }
@@ -33,11 +33,11 @@ function b2() {
33
33
  var t = e[0], n = e[1], s = e[2], c = e[3], h = e[4], f = e[5], p = e[6], g = e[7], x = e[8];
34
34
  return r[0] = h * x - f * g, r[1] = s * g - n * x, r[2] = n * f - s * h, r[3] = f * p - c * x, r[4] = t * x - s * p, r[5] = s * c - t * f, r[6] = c * g - h * p, r[7] = n * p - t * g, r[8] = t * h - n * c, r;
35
35
  }
36
- function Qr(r, e, t) {
36
+ function an(r, e, t) {
37
37
  var n = e[0], s = e[1], c = e[2], h = e[3], f = e[4], p = e[5], g = e[6], x = e[7], b = e[8], w = t[0], S = t[1], E = t[2], A = t[3], P = t[4], R = t[5], B = t[6], F = t[7], U = t[8];
38
38
  return r[0] = w * n + S * h + E * g, r[1] = w * s + S * f + E * x, r[2] = w * c + S * p + E * b, r[3] = A * n + P * h + R * g, r[4] = A * s + P * f + R * x, r[5] = A * c + P * p + R * b, r[6] = B * n + F * h + U * g, r[7] = B * s + F * f + U * x, r[8] = B * c + F * p + U * b, r;
39
39
  }
40
- function Qn() {
40
+ function po() {
41
41
  var r = new $t(16);
42
42
  return $t != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[11] = 0, r[12] = 0, r[13] = 0, r[14] = 0), r[0] = 1, r[5] = 1, r[10] = 1, r[15] = 1, r;
43
43
  }
@@ -68,7 +68,7 @@ function b2() {
68
68
  var n = Math.sin(t), s = Math.cos(t), c = e[4], h = e[5], f = e[6], p = e[7], g = e[8], x = e[9], b = e[10], w = e[11];
69
69
  return e !== r && (r[0] = e[0], r[1] = e[1], r[2] = e[2], r[3] = e[3], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15]), r[4] = c * s + g * n, r[5] = h * s + x * n, r[6] = f * s + b * n, r[7] = p * s + w * n, r[8] = g * s - c * n, r[9] = x * s - h * n, r[10] = b * s - f * n, r[11] = w * s - p * n, r;
70
70
  }
71
- function eo(r, e, t) {
71
+ function Qn(r, e, t) {
72
72
  var n = Math.sin(t), s = Math.cos(t), c = e[0], h = e[1], f = e[2], p = e[3], g = e[8], x = e[9], b = e[10], w = e[11];
73
73
  return e !== r && (r[4] = e[4], r[5] = e[5], r[6] = e[6], r[7] = e[7], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15]), r[0] = c * s - g * n, r[1] = h * s - x * n, r[2] = f * s - b * n, r[3] = p * s - w * n, r[8] = c * n + g * s, r[9] = h * n + x * s, r[10] = f * n + b * s, r[11] = p * n + w * s, r;
74
74
  }
@@ -76,7 +76,7 @@ function b2() {
76
76
  var n = Math.sin(t), s = Math.cos(t), c = e[0], h = e[1], f = e[2], p = e[3], g = e[4], x = e[5], b = e[6], w = e[7];
77
77
  return e !== r && (r[8] = e[8], r[9] = e[9], r[10] = e[10], r[11] = e[11], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15]), r[0] = c * s + g * n, r[1] = h * s + x * n, r[2] = f * s + b * n, r[3] = p * s + w * n, r[4] = g * s - c * n, r[5] = x * s - h * n, r[6] = b * s - f * n, r[7] = w * s - p * n, r;
78
78
  }
79
- function to(r, e) {
79
+ function eo(r, e) {
80
80
  return r[0] = e[0], r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = e[1], r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[10] = e[2], r[11] = 0, r[12] = 0, r[13] = 0, r[14] = 0, r[15] = 1, r;
81
81
  }
82
82
  function No(r, e, t) {
@@ -120,7 +120,7 @@ function b2() {
120
120
  function Ds(r, e, t) {
121
121
  return r[0] = e[0] * t[0], r[1] = e[1] * t[1], r[2] = e[2] * t[2], r;
122
122
  }
123
- function en(r, e, t) {
123
+ function Qr(r, e, t) {
124
124
  return r[0] = Math.min(e[0], t[0]), r[1] = Math.min(e[1], t[1]), r[2] = Math.min(e[2], t[2]), r;
125
125
  }
126
126
  function mo(r, e, t) {
@@ -132,7 +132,7 @@ function b2() {
132
132
  function vn(r, e, t, n) {
133
133
  return r[0] = e[0] + t[0] * n, r[1] = e[1] + t[1] * n, r[2] = e[2] + t[2] * n, r;
134
134
  }
135
- function _a(r, e) {
135
+ function ma(r, e) {
136
136
  var t = e[0] - r[0], n = e[1] - r[1], s = e[2] - r[2];
137
137
  return Math.sqrt(t * t + n * n + s * s);
138
138
  }
@@ -158,7 +158,7 @@ function b2() {
158
158
  var n = e[0], s = e[1], c = e[2], h = t[0], f = t[1], p = t[2];
159
159
  return r[0] = s * p - c * f, r[1] = c * h - n * p, r[2] = n * f - s * h, r;
160
160
  }
161
- function ga(r, e, t, n) {
161
+ function _a(r, e, t, n) {
162
162
  var s = e[0], c = e[1], h = e[2];
163
163
  return r[0] = s + n * (t[0] - s), r[1] = c + n * (t[1] - c), r[2] = h + n * (t[2] - h), r;
164
164
  }
@@ -174,7 +174,7 @@ function b2() {
174
174
  var n = t[0], s = t[1], c = t[2], h = t[3], f = e[0], p = e[1], g = e[2], x = s * g - c * p, b = c * f - n * g, w = n * p - s * f;
175
175
  return r[0] = f + h * (x += x) + s * (w += w) - c * (b += b), r[1] = p + h * b + c * x - n * w, r[2] = g + h * w + n * b - s * x, r;
176
176
  }
177
- function ya(r) {
177
+ function ga(r) {
178
178
  return r[0] = 0, r[1] = 0, r[2] = 0, r;
179
179
  }
180
180
  function Nn(r, e) {
@@ -206,20 +206,20 @@ function b2() {
206
206
  function Uo(r) {
207
207
  return r[0] = 0, r[1] = 0, r[2] = 0, r[3] = 1, r;
208
208
  }
209
- function xa(r, e, t) {
209
+ function ya(r, e, t) {
210
210
  t *= 0.5;
211
211
  var n = e[0], s = e[1], c = e[2], h = e[3], f = Math.sin(t), p = Math.cos(t);
212
212
  return r[0] = n * p + h * f, r[1] = s * p + c * f, r[2] = c * p - s * f, r[3] = h * p - n * f, r;
213
213
  }
214
- function va(r, e, t) {
214
+ function xa(r, e, t) {
215
215
  t *= 0.5;
216
216
  var n = e[0], s = e[1], c = e[2], h = e[3], f = Math.sin(t), p = Math.cos(t);
217
217
  return r[0] = n * p - c * f, r[1] = s * p + h * f, r[2] = c * p + n * f, r[3] = h * p - s * f, r;
218
218
  }
219
219
  ti(), Gr();
220
- var Br, ba, wa, Sr = as, pl = (Br = ti(), ba = Oi(1, 0, 0), wa = Oi(0, 1, 0), function(r, e, t) {
220
+ var Br, va, ba, Sr = as, pl = (Br = ti(), va = Oi(1, 0, 0), ba = Oi(0, 1, 0), function(r, e, t) {
221
221
  var n = ji(e, t);
222
- return n < -0.999999 ? (hr(Br, ba, e), ss(Br) < 1e-6 && hr(Br, wa, e), _i(Br, Br), (function(s, c, h) {
222
+ return n < -0.999999 ? (hr(Br, va, e), ss(Br) < 1e-6 && hr(Br, ba, e), _i(Br, Br), (function(s, c, h) {
223
223
  h *= 0.5;
224
224
  var f = Math.sin(h);
225
225
  s[0] = f * c[0], s[1] = f * c[1], s[2] = f * c[2], s[3] = Math.cos(h);
@@ -253,7 +253,7 @@ function b2() {
253
253
  var t = e[0], n = e[1], s = t * t + n * n;
254
254
  return s > 0 && (s = 1 / Math.sqrt(s)), r[0] = e[0] * s, r[1] = e[1] * s, r;
255
255
  }
256
- function io(r, e) {
256
+ function to(r, e) {
257
257
  return r[0] * e[0] + r[1] * e[1];
258
258
  }
259
259
  bn(), bn(), jr();
@@ -559,7 +559,7 @@ function b2() {
559
559
  function Un() {
560
560
  return vo == null && (vo = self.OffscreenCanvas && new OffscreenCanvas(1, 1).getContext("2d") && typeof self.createImageBitmap == "function"), vo;
561
561
  }
562
- const tn = { now: () => bo !== void 0 ? bo : performance.now(), setNow(r) {
562
+ const en = { now: () => bo !== void 0 ? bo : performance.now(), setNow(r) {
563
563
  bo = r;
564
564
  }, restoreNow() {
565
565
  bo = void 0;
@@ -621,25 +621,25 @@ function b2() {
621
621
  }
622
622
  let lh = 1 / 0;
623
623
  const Dc = { supported: !1, testSupport: function(r) {
624
- !ch && Ta && (jn ? Sa(r) : ks = r);
624
+ !ch && wa && (jn ? Ta(r) : ks = r);
625
625
  } };
626
- let ks, Ta, ch = !1, jn = !1;
626
+ let ks, wa, ch = !1, jn = !1;
627
627
  const uh = typeof self < "u" ? self : {};
628
- function Sa(r) {
628
+ function Ta(r) {
629
629
  const e = r.createTexture();
630
630
  r.bindTexture(r.TEXTURE_2D, e);
631
631
  try {
632
- if (r.texImage2D(r.TEXTURE_2D, 0, r.RGBA, r.RGBA, r.UNSIGNED_BYTE, Ta), r.isContextLost()) return;
632
+ if (r.texImage2D(r.TEXTURE_2D, 0, r.RGBA, r.RGBA, r.UNSIGNED_BYTE, wa), r.isContextLost()) return;
633
633
  Dc.supported = !0;
634
634
  } catch {
635
635
  }
636
636
  r.deleteTexture(e), ch = !0;
637
637
  }
638
- uh.document && (Ta = uh.document.createElement("img"), Ta.onload = function() {
639
- ks && Sa(ks), ks = null, jn = !0;
640
- }, Ta.onerror = function() {
638
+ uh.document && (wa = uh.document.createElement("img"), wa.onload = function() {
639
+ ks && Ta(ks), ks = null, jn = !0;
640
+ }, wa.onerror = function() {
641
641
  ch = !0, ks = null;
642
- }, Ta.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");
642
+ }, wa.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");
643
643
  const xl = { Unknown: "Unknown", Style: "Style", Source: "Source", Tile: "Tile", Glyphs: "Glyphs", SpriteImage: "SpriteImage", SpriteJSON: "SpriteJSON", Iconset: "Iconset", Image: "Image", Model: "Model" };
644
644
  Object.freeze(xl);
645
645
  class hh extends Error {
@@ -653,7 +653,7 @@ function b2() {
653
653
  function dh(r) {
654
654
  return typeof r == "object" && r !== null && "status" in r && r.status === 404;
655
655
  }
656
- const Gt = hi() ? () => self.worker.referrer : () => (location.protocol === "blob:" ? parent : self).location.href, Ia = function(r, e) {
656
+ const Gt = hi() ? () => self.worker.referrer : () => (location.protocol === "blob:" ? parent : self).location.href, Sa = function(r, e) {
657
657
  return /^file:/.test(t = r.url) || /^file:/.test(Gt()) && !/^\w+:/.test(t) ? (function(n, s) {
658
658
  const c = new XMLHttpRequest();
659
659
  c.open(n.method || "GET", n.url, !0), n.type === "arrayBuffer" && (c.responseType = "arraybuffer");
@@ -737,8 +737,8 @@ function b2() {
737
737
  } };
738
738
  })(r, e);
739
739
  var t;
740
- }, Ea = function(r, e) {
741
- return Ia(Object.assign(r, { type: "arrayBuffer" }), e);
740
+ }, Ia = function(r, e) {
741
+ return Sa(Object.assign(r, { type: "arrayBuffer" }), e);
742
742
  };
743
743
  function Um(r) {
744
744
  const e = document.createElement("a");
@@ -746,7 +746,7 @@ function b2() {
746
746
  }
747
747
  let Rc, us;
748
748
  Rc = [], us = 0;
749
- const Aa = function(r, e) {
749
+ const Ea = function(r, e) {
750
750
  if (Dc.supported && (r.headers || (r.headers = {}), r.headers.accept = "image/webp,*/*"), us >= Ft.MAX_PARALLEL_IMAGE_REQUESTS) {
751
751
  const c = { requestParameters: r, callback: e, cancelled: !1, cancel() {
752
752
  this.cancelled = !0;
@@ -758,9 +758,9 @@ function b2() {
758
758
  const n = () => {
759
759
  if (!t) for (t = !0, us--; Rc.length && us < Ft.MAX_PARALLEL_IMAGE_REQUESTS; ) {
760
760
  const c = Rc.shift(), { requestParameters: h, callback: f, cancelled: p } = c;
761
- p || (c.cancel = Aa(h, f).cancel);
761
+ p || (c.cancel = Ea(h, f).cancel);
762
762
  }
763
- }, s = Ea(r, (c, h, f) => {
763
+ }, s = Ia(r, (c, h, f) => {
764
764
  n(), c ? e(c) : h && (function(p, g) {
765
765
  const x = new Blob([new Uint8Array(p)], { type: "image/png" });
766
766
  createImageBitmap(x).then((b) => {
@@ -803,12 +803,12 @@ function b2() {
803
803
  }), fh.exports);
804
804
  return Ns.exports = r, Ns.exports.murmur3 = r, Ns.exports.murmur2 = e, Ns.exports;
805
805
  })(), hs = cs(jm);
806
- class ro {
806
+ class io {
807
807
  constructor(e, ...t) {
808
808
  Object.assign(this, t[0] || {}), this.type = e;
809
809
  }
810
810
  }
811
- class Ca extends ro {
811
+ class Aa extends io {
812
812
  constructor(e, t = {}) {
813
813
  super("error", Object.assign({ error: e }, t));
814
814
  }
@@ -835,7 +835,7 @@ function b2() {
835
835
  });
836
836
  }
837
837
  fire(e, t) {
838
- const n = typeof e == "string" ? new ro(e, t) : e, s = n.type;
838
+ const n = typeof e == "string" ? new io(e, t) : e, s = n.type;
839
839
  if (this.listens(s)) {
840
840
  n.target = this;
841
841
  const c = this._listeners && this._listeners[s] ? this._listeners[s].slice() : [];
@@ -847,7 +847,7 @@ function b2() {
847
847
  const p = typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData;
848
848
  Object.assign(n, p), f.fire(n);
849
849
  }
850
- } else n instanceof Ca && console.error(n.error);
850
+ } else n instanceof Aa && console.error(n.error);
851
851
  return this;
852
852
  }
853
853
  listens(e) {
@@ -950,7 +950,7 @@ function b2() {
950
950
  }
951
951
  toPremultipliedRenderColor(e) {
952
952
  const { r: t, g: n, b: s, a: c } = this;
953
- return new Ma(e, t * c, n * c, s * c, c);
953
+ return new Ca(e, t * c, n * c, s * c, c);
954
954
  }
955
955
  clone() {
956
956
  return new jt(this.r, this.g, this.b, this.a);
@@ -1010,7 +1010,7 @@ function b2() {
1010
1010
  super(e, t, n, s, c, !1);
1011
1011
  }
1012
1012
  }
1013
- class Ma extends _h {
1013
+ class Ca extends _h {
1014
1014
  constructor(e, t, n, s, c) {
1015
1015
  super(e, t, n, s, c, !0);
1016
1016
  }
@@ -1018,11 +1018,11 @@ function b2() {
1018
1018
  function mt(r, e, t) {
1019
1019
  return r * (1 - t) + e * t;
1020
1020
  }
1021
- function no(r, e, t) {
1021
+ function ro(r, e, t) {
1022
1022
  return r.map((n, s) => mt(n, e[s], t));
1023
1023
  }
1024
1024
  jt.black = new jt(0, 0, 0, 1), jt.white = new jt(1, 1, 1, 1), jt.transparent = new jt(0, 0, 0, 0), jt.red = new jt(1, 0, 0, 1), jt.blue = new jt(0, 0, 1, 1);
1025
- var Bc = Object.freeze({ __proto__: null, array: no, color: function(r, e, t) {
1025
+ var Bc = Object.freeze({ __proto__: null, array: ro, color: function(r, e, t) {
1026
1026
  return new jt(mt(r.r, e.r, t), mt(r.g, e.g, t), mt(r.b, e.b, t), mt(r.a, e.a, t));
1027
1027
  }, number: mt });
1028
1028
  class Zn extends Error {
@@ -1074,7 +1074,7 @@ function b2() {
1074
1074
  function gh(r, e) {
1075
1075
  return e.some((t) => t.kind === r.kind);
1076
1076
  }
1077
- function Pa(r, e) {
1077
+ function Ma(r, e) {
1078
1078
  return e.some((t) => t === "null" ? r === null : t === "array" ? Array.isArray(r) : t === "object" ? r && !Array.isArray(r) && typeof r == "object" : t === typeof r);
1079
1079
  }
1080
1080
  function Go(r, e) {
@@ -1147,7 +1147,7 @@ function b2() {
1147
1147
  return this.sx *= e, this.sy *= t, this;
1148
1148
  }
1149
1149
  }
1150
- class rn {
1150
+ class tn {
1151
1151
  constructor(e, t, n, s, c = !1) {
1152
1152
  this.primaryId = fn.from(e), this.primaryOptions = t, n && (this.secondaryId = fn.from(n)), this.secondaryOptions = s, this.available = c;
1153
1153
  }
@@ -1167,23 +1167,23 @@ function b2() {
1167
1167
  return this.secondaryId ? new qn(this.secondaryId, this.secondaryOptions) : null;
1168
1168
  }
1169
1169
  static from(e) {
1170
- return typeof e == "string" ? rn.build({ name: e }) : e;
1170
+ return typeof e == "string" ? tn.build({ name: e }) : e;
1171
1171
  }
1172
1172
  static build(e, t, n, s) {
1173
- return !e || typeof e == "object" && !("name" in e) ? null : new rn(e, n, t, s);
1173
+ return !e || typeof e == "object" && !("name" in e) ? null : new tn(e, n, t, s);
1174
1174
  }
1175
1175
  }
1176
1176
  function bf(r, e, t, n) {
1177
1177
  return typeof r == "number" && r >= 0 && r <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof t == "number" && t >= 0 && t <= 255 ? n === void 0 || typeof n == "number" && n >= 0 && n <= 1 ? null : `Invalid rgba value [${[r, e, t, n].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof n == "number" ? [r, e, t, n] : [r, e, t]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
1178
1178
  }
1179
- function Da(r) {
1180
- if (r === null || typeof r == "string" || typeof r == "boolean" || typeof r == "number" || r instanceof jt || r instanceof yh || r instanceof Lr || r instanceof rn) return !0;
1179
+ function Pa(r) {
1180
+ if (r === null || typeof r == "string" || typeof r == "boolean" || typeof r == "number" || r instanceof jt || r instanceof yh || r instanceof Lr || r instanceof tn) return !0;
1181
1181
  if (Array.isArray(r)) {
1182
- for (const e of r) if (!Da(e)) return !1;
1182
+ for (const e of r) if (!Pa(e)) return !1;
1183
1183
  return !0;
1184
1184
  }
1185
1185
  if (typeof r == "object") {
1186
- for (const e in r) if (!Da(r[e])) return !1;
1186
+ for (const e in r) if (!Pa(r[e])) return !1;
1187
1187
  return !0;
1188
1188
  }
1189
1189
  return !1;
@@ -1196,7 +1196,7 @@ function b2() {
1196
1196
  if (r instanceof jt) return qr;
1197
1197
  if (r instanceof yh) return Us;
1198
1198
  if (r instanceof Lr) return wl;
1199
- if (r instanceof rn) return Tl;
1199
+ if (r instanceof tn) return Tl;
1200
1200
  if (Array.isArray(r)) {
1201
1201
  const e = r.length;
1202
1202
  let t;
@@ -1215,7 +1215,7 @@ function b2() {
1215
1215
  }
1216
1216
  function pt(r) {
1217
1217
  const e = typeof r;
1218
- return r === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(r) : r instanceof Lr || r instanceof rn || r instanceof jt ? r.toString() : JSON.stringify(r);
1218
+ return r === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(r) : r instanceof Lr || r instanceof tn || r instanceof jt ? r.toString() : JSON.stringify(r);
1219
1219
  }
1220
1220
  class rt {
1221
1221
  constructor(e, t) {
@@ -1223,7 +1223,7 @@ function b2() {
1223
1223
  }
1224
1224
  static parse(e, t) {
1225
1225
  if (e.length !== 2) return t.error(`'literal' expression requires exactly one argument, but found ${e.length - 1} instead.`);
1226
- if (!Da(e[1])) return t.error("invalid value");
1226
+ if (!Pa(e[1])) return t.error("invalid value");
1227
1227
  const n = e[1];
1228
1228
  let s = Zi(n);
1229
1229
  const c = t.expectedType;
@@ -1417,7 +1417,7 @@ function b2() {
1417
1417
  }
1418
1418
  }
1419
1419
  evaluate(e) {
1420
- const t = { name: this.namePrimary.evaluate(e), iconsetId: this.iconsetIdPrimary }, n = this.nameSecondary ? { name: this.nameSecondary.evaluate(e), iconsetId: this.iconsetIdSecondary } : void 0, s = rn.build(t, n, this.paramsPrimary ? this.evaluateParams(e, this.paramsPrimary) : void 0, this.paramsSecondary ? this.evaluateParams(e, this.paramsSecondary) : void 0);
1420
+ const t = { name: this.namePrimary.evaluate(e), iconsetId: this.iconsetIdPrimary }, n = this.nameSecondary ? { name: this.nameSecondary.evaluate(e), iconsetId: this.iconsetIdSecondary } : void 0, s = tn.build(t, n, this.paramsPrimary ? this.evaluateParams(e, this.paramsPrimary) : void 0, this.paramsSecondary ? this.evaluateParams(e, this.paramsSecondary) : void 0);
1421
1421
  if (s && e.availableImages) {
1422
1422
  const c = s.getPrimary().id;
1423
1423
  if (s.available = e.availableImages.some((h) => fn.isEqual(h, c)), s.available) {
@@ -1471,7 +1471,7 @@ function b2() {
1471
1471
  return typeof r == "boolean" || r instanceof Boolean;
1472
1472
  }
1473
1473
  const Zm = { "to-boolean": Kt, "to-color": qr, "to-number": st, "to-string": Yt };
1474
- class oo {
1474
+ class no {
1475
1475
  constructor(e, t) {
1476
1476
  this.type = e, this.args = t;
1477
1477
  }
@@ -1486,7 +1486,7 @@ function b2() {
1486
1486
  if (t.expectedType.kind !== "array") return t.error(`Expected ${t.expectedType.kind} but found array.`);
1487
1487
  c = kr(t.expectedType.itemType, h);
1488
1488
  } else {
1489
- if (!(h > 0 && Da(e[1][0]))) return null;
1489
+ if (!(h > 0 && Pa(e[1][0]))) return null;
1490
1490
  c = kr(Zi(e[1][0]), h);
1491
1491
  }
1492
1492
  for (let f = 0; f < h; f++) {
@@ -1510,7 +1510,7 @@ function b2() {
1510
1510
  s.push(f);
1511
1511
  }
1512
1512
  }
1513
- return new oo(c, s);
1513
+ return new no(c, s);
1514
1514
  }
1515
1515
  evaluate(e) {
1516
1516
  if (this.type.kind === "boolean") return !!this.args[0].evaluate(e);
@@ -1534,7 +1534,7 @@ function b2() {
1534
1534
  }
1535
1535
  throw new Ji(`Could not convert ${JSON.stringify(t)} to number.`);
1536
1536
  }
1537
- return this.type.kind === "formatted" ? Lr.fromString(pt(this.args[0].evaluate(e))) : this.type.kind === "resolvedImage" ? rn.build(pt(this.args[0].evaluate(e))) : this.type.kind === "array" ? this.args.map((t) => t.evaluate(e)) : pt(this.args[0].evaluate(e));
1537
+ return this.type.kind === "formatted" ? Lr.fromString(pt(this.args[0].evaluate(e))) : this.type.kind === "resolvedImage" ? tn.build(pt(this.args[0].evaluate(e))) : this.type.kind === "array" ? this.args.map((t) => t.evaluate(e)) : pt(this.args[0].evaluate(e));
1538
1538
  }
1539
1539
  eachChild(e) {
1540
1540
  this.args.forEach(e);
@@ -1712,7 +1712,7 @@ function b2() {
1712
1712
  for (let t, n, s = 0, c = r.length, h = c - 1; s < c; h = s++) t = r[s], n = r[h], e += (n.x - t.x) * (t.y + n.y);
1713
1713
  return e;
1714
1714
  }
1715
- function so(r, e) {
1715
+ function oo(r, e) {
1716
1716
  r[0] = Math.min(r[0], e[0]), r[1] = Math.min(r[1], e[1]), r[2] = Math.max(r[2], e[0]), r[3] = Math.max(r[3], e[1]);
1717
1717
  }
1718
1718
  function Dl(r, e) {
@@ -1725,7 +1725,7 @@ function b2() {
1725
1725
  function xh(r, e, t) {
1726
1726
  return e[1] > r[1] != t[1] > r[1] && r[0] < (t[0] - e[0]) * (r[1] - e[1]) / (t[1] - e[1]) + e[0];
1727
1727
  }
1728
- function Ra(r, e, t = !1) {
1728
+ function Da(r, e, t = !1) {
1729
1729
  let n = !1;
1730
1730
  for (let s = 0, c = e.length; s < c; s++) {
1731
1731
  const h = e[s];
@@ -1756,7 +1756,7 @@ function b2() {
1756
1756
  return [Math.round(t * s * ps), Math.round(n * s * ps)];
1757
1757
  }
1758
1758
  function Zs(r, e) {
1759
- for (let t = 0; t < e.length; t++) if (Ra(r, e[t])) return !0;
1759
+ for (let t = 0; t < e.length; t++) if (Da(r, e[t])) return !0;
1760
1760
  return !1;
1761
1761
  }
1762
1762
  function Hm(r, e, t) {
@@ -1764,7 +1764,7 @@ function b2() {
1764
1764
  return !1;
1765
1765
  }
1766
1766
  function If(r, e) {
1767
- for (let t = 0; t < r.length; ++t) if (!Ra(r[t], e)) return !1;
1767
+ for (let t = 0; t < r.length; ++t) if (!Da(r[t], e)) return !1;
1768
1768
  for (let t = 0; t < r.length - 1; ++t) if (Hm(r[t], r[t + 1], e)) return !1;
1769
1769
  return !0;
1770
1770
  }
@@ -1778,7 +1778,7 @@ function b2() {
1778
1778
  const c = [];
1779
1779
  for (let h = 0; h < r[s].length; h++) {
1780
1780
  const f = $m(r[s][h], t);
1781
- so(e, f), c.push(f);
1781
+ oo(e, f), c.push(f);
1782
1782
  }
1783
1783
  n.push(c);
1784
1784
  }
@@ -1798,7 +1798,7 @@ function b2() {
1798
1798
  let c = r[0] - t[0] > s ? -n : t[0] - r[0] > s ? n : 0;
1799
1799
  c === 0 && (c = r[0] - t[2] > s ? -n : t[2] - r[0] > s ? n : 0), r[0] += c;
1800
1800
  }
1801
- so(e, r);
1801
+ oo(e, r);
1802
1802
  }
1803
1803
  function Th(r, e, t, n) {
1804
1804
  const s = Math.pow(2, n.z) * ps, c = [n.x * ps, n.y * ps], h = [];
@@ -1816,7 +1816,7 @@ function b2() {
1816
1816
  const g = [];
1817
1817
  for (const x of p) {
1818
1818
  const b = [x.x + c[0], x.y + c[1]];
1819
- so(e, b), g.push(b);
1819
+ oo(e, b), g.push(b);
1820
1820
  }
1821
1821
  h.push(g);
1822
1822
  }
@@ -1833,7 +1833,7 @@ function b2() {
1833
1833
  }
1834
1834
  static parse(e, t) {
1835
1835
  if (e.length !== 2) return t.error(`'within' expression requires exactly one argument, but found ${e.length - 1} instead.`);
1836
- if (Da(e[1])) {
1836
+ if (Pa(e[1])) {
1837
1837
  const n = e[1];
1838
1838
  if (n.type === "FeatureCollection") for (let s = 0; s < n.features.length; ++s) {
1839
1839
  const c = n.features[s].geometry.type;
@@ -1854,7 +1854,7 @@ function b2() {
1854
1854
  if (n.type === "Polygon") {
1855
1855
  const f = jc(n.coordinates, c, h), p = Th(t.geometry(), s, c, h);
1856
1856
  if (!Dl(s, c)) return !1;
1857
- for (const g of p) if (!Ra(g, f)) return !1;
1857
+ for (const g of p) if (!Da(g, f)) return !1;
1858
1858
  }
1859
1859
  if (n.type === "MultiPolygon") {
1860
1860
  const f = wh(n.coordinates, c, h), p = Th(t.geometry(), s, c, h);
@@ -1890,11 +1890,11 @@ function b2() {
1890
1890
  return ["within", this.geojson];
1891
1891
  }
1892
1892
  }
1893
- const Ll = { kilometers: 1, miles: 1e3 / 1609.344, nauticalmiles: 1e3 / 1852, meters: 1e3, metres: 1e3, yards: 1e3 / 0.9144, feet: 1e3 / 0.3048, inches: 1e3 / 0.0254 }, Ih = 1 / 298.257223563, Eh = Ih * (2 - Ih), La = Math.PI / 180;
1894
- class za {
1893
+ const Ll = { kilometers: 1, miles: 1e3 / 1609.344, nauticalmiles: 1e3 / 1852, meters: 1e3, metres: 1e3, yards: 1e3 / 0.9144, feet: 1e3 / 0.3048, inches: 1e3 / 0.0254 }, Ih = 1 / 298.257223563, Eh = Ih * (2 - Ih), Ra = Math.PI / 180;
1894
+ class La {
1895
1895
  static fromTile(e, t, n) {
1896
- const s = Math.PI * (1 - 2 * (e + 0.5) / Math.pow(2, t)), c = Math.atan(0.5 * (Math.exp(s) - Math.exp(-s))) / La;
1897
- return new za(c, n);
1896
+ const s = Math.PI * (1 - 2 * (e + 0.5) / Math.pow(2, t)), c = Math.atan(0.5 * (Math.exp(s) - Math.exp(-s))) / Ra;
1897
+ return new La(c, n);
1898
1898
  }
1899
1899
  static get units() {
1900
1900
  return Ll;
@@ -1902,7 +1902,7 @@ function b2() {
1902
1902
  constructor(e, t) {
1903
1903
  if (e === void 0) throw new Error("No latitude given.");
1904
1904
  if (t && !Ll[t]) throw new Error(`Unknown unit ${t}. Use one of: ${Object.keys(Ll).join(", ")}`);
1905
- const n = 6378.137 * La * (t ? Ll[t] : 1), s = Math.cos(e * La), c = 1 / (1 - Eh * (1 - s * s)), h = Math.sqrt(c);
1905
+ const n = 6378.137 * Ra * (t ? Ll[t] : 1), s = Math.cos(e * Ra), c = 1 / (1 - Eh * (1 - s * s)), h = Math.sqrt(c);
1906
1906
  this.kx = n * h * s, this.ky = n * h * c * (1 - Eh);
1907
1907
  }
1908
1908
  distance(e, t) {
@@ -1911,10 +1911,10 @@ function b2() {
1911
1911
  }
1912
1912
  bearing(e, t) {
1913
1913
  const n = In(t[0] - e[0]) * this.kx;
1914
- return Math.atan2(n, (t[1] - e[1]) * this.ky) / La;
1914
+ return Math.atan2(n, (t[1] - e[1]) * this.ky) / Ra;
1915
1915
  }
1916
1916
  destination(e, t, n) {
1917
- const s = n * La;
1917
+ const s = n * Ra;
1918
1918
  return this.offset(e, Math.sin(s) * t, Math.cos(s) * t);
1919
1919
  }
1920
1920
  offset(e, t, n) {
@@ -2053,11 +2053,11 @@ function b2() {
2053
2053
  function qs(r) {
2054
2054
  return r[1] - r[0] + 1;
2055
2055
  }
2056
- function ao(r, e) {
2056
+ function so(r, e) {
2057
2057
  const t = r[1] >= r[0] && r[1] < e;
2058
2058
  return t || console.warn("Distance Expression: Index is out of range"), t;
2059
2059
  }
2060
- function Fa(r, e) {
2060
+ function za(r, e) {
2061
2061
  if (r[0] > r[1]) return [null, null];
2062
2062
  const t = qs(r);
2063
2063
  if (e) {
@@ -2073,16 +2073,16 @@ function b2() {
2073
2073
  }
2074
2074
  function _s(r, e) {
2075
2075
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
2076
- if (!ao(e, r.length)) return t;
2077
- for (let n = e[0]; n <= e[1]; ++n) so(t, r[n]);
2076
+ if (!so(e, r.length)) return t;
2077
+ for (let n = e[0]; n <= e[1]; ++n) oo(t, r[n]);
2078
2078
  return t;
2079
2079
  }
2080
2080
  function Fl(r) {
2081
2081
  const e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
2082
- for (let t = 0; t < r.length; ++t) for (let n = 0; n < r[t].length; ++n) so(e, r[t][n]);
2082
+ for (let t = 0; t < r.length; ++t) for (let n = 0; n < r[t].length; ++n) oo(e, r[t][n]);
2083
2083
  return e;
2084
2084
  }
2085
- function Oa(r, e, t) {
2085
+ function Fa(r, e, t) {
2086
2086
  if (Af(r) || Af(e)) return NaN;
2087
2087
  let n = 0, s = 0;
2088
2088
  return r[2] < e[0] && (n = e[0] - r[2]), r[0] > e[2] && (n = r[0] - e[2]), r[1] > e[3] && (s = r[1] - e[3]), r[3] < e[1] && (s = e[1] - r[3]), t.distance([0, 0], [n, s]);
@@ -2117,7 +2117,7 @@ function b2() {
2117
2117
  return Math.min(c, h);
2118
2118
  }
2119
2119
  function Xm(r, e, t, n, s) {
2120
- if (!ao(e, r.length) || !ao(n, t.length)) return NaN;
2120
+ if (!so(e, r.length) || !so(n, t.length)) return NaN;
2121
2121
  let c = 1 / 0;
2122
2122
  for (let h = e[0]; h < e[1]; ++h) for (let f = n[0]; f < n[1]; ++f) {
2123
2123
  if (Rl(r[h], r[h + 1], t[f], t[f + 1])) return 0;
@@ -2126,13 +2126,13 @@ function b2() {
2126
2126
  return c;
2127
2127
  }
2128
2128
  function Df(r, e, t, n, s) {
2129
- if (!ao(e, r.length) || !ao(n, t.length)) return NaN;
2129
+ if (!so(e, r.length) || !so(n, t.length)) return NaN;
2130
2130
  let c = 1 / 0;
2131
2131
  for (let h = e[0]; h <= e[1]; ++h) for (let f = n[0]; f <= n[1]; ++f) if ((c = Math.min(c, s.distance(r[h], t[f]))) === 0) return c;
2132
2132
  return c;
2133
2133
  }
2134
2134
  function Ym(r, e, t) {
2135
- if (Ra(r, e, !0)) return 0;
2135
+ if (Da(r, e, !0)) return 0;
2136
2136
  let n = 1 / 0;
2137
2137
  for (const s of e) {
2138
2138
  const c = s.length;
@@ -2142,8 +2142,8 @@ function b2() {
2142
2142
  return n;
2143
2143
  }
2144
2144
  function Ei(r, e, t, n) {
2145
- if (!ao(e, r.length)) return NaN;
2146
- for (let c = e[0]; c <= e[1]; ++c) if (Ra(r[c], t, !0)) return 0;
2145
+ if (!so(e, r.length)) return NaN;
2146
+ for (let c = e[0]; c <= e[1]; ++c) if (Da(r[c], t, !0)) return 0;
2147
2147
  let s = 1 / 0;
2148
2148
  for (let c = e[0]; c < e[1]; ++c) for (const h of t) for (let f = 0, p = h.length, g = p - 1; f < p; g = f++) {
2149
2149
  if (Rl(r[c], r[c + 1], h[g], h[f])) return 0;
@@ -2152,12 +2152,12 @@ function b2() {
2152
2152
  return s;
2153
2153
  }
2154
2154
  function Rf(r, e) {
2155
- for (const t of r) for (let n = 0; n <= t.length - 1; ++n) if (Ra(t[n], e, !0)) return !0;
2155
+ for (const t of r) for (let n = 0; n <= t.length - 1; ++n) if (Da(t[n], e, !0)) return !0;
2156
2156
  return !1;
2157
2157
  }
2158
2158
  function Km(r, e, t, n = 1 / 0) {
2159
2159
  const s = Fl(r), c = Fl(e);
2160
- if (n !== 1 / 0 && Oa(s, c, t) >= n) return n;
2160
+ if (n !== 1 / 0 && Fa(s, c, t) >= n) return n;
2161
2161
  if (Dl(s, c)) {
2162
2162
  if (Rf(r, e)) return 0;
2163
2163
  } else if (Rf(e, r)) return 0;
@@ -2170,7 +2170,7 @@ function b2() {
2170
2170
  }
2171
2171
  function Zc(r, e, t, n, s, c, h) {
2172
2172
  if (c === null || h === null) return;
2173
- const f = Oa(_s(n, c), _s(s, h), t);
2173
+ const f = Fa(_s(n, c), _s(s, h), t);
2174
2174
  f < e && r.push({ dist: f, range1: c, range2: h });
2175
2175
  }
2176
2176
  function Jm(r, e, t, n, s = 1 / 0) {
@@ -2182,7 +2182,7 @@ function b2() {
2182
2182
  if (g.dist >= c) continue;
2183
2183
  const x = g.range1;
2184
2184
  if (qs(x) <= f) {
2185
- if (!ao(x, r.length)) return NaN;
2185
+ if (!so(x, r.length)) return NaN;
2186
2186
  if (e) {
2187
2187
  const b = Ei(r, x, t, n);
2188
2188
  if ((c = Math.min(c, b)) === 0) return c;
@@ -2191,13 +2191,13 @@ function b2() {
2191
2191
  if ((c = Math.min(c, w)) === 0) return c;
2192
2192
  }
2193
2193
  } else {
2194
- const b = Fa(x, e);
2194
+ const b = za(x, e);
2195
2195
  if (b[0] !== null) {
2196
- const w = Oa(_s(r, b[0]), p, n);
2196
+ const w = Fa(_s(r, b[0]), p, n);
2197
2197
  w < c && h.push({ dist: w, range1: b[0], range2: [0, 0] });
2198
2198
  }
2199
2199
  if (b[1] !== null) {
2200
- const w = Oa(_s(r, b[1]), p, n);
2200
+ const w = Fa(_s(r, b[1]), p, n);
2201
2201
  w < c && h.push({ dist: w, range1: b[1], range2: [0, 0] });
2202
2202
  }
2203
2203
  }
@@ -2213,10 +2213,10 @@ function b2() {
2213
2213
  if (x.dist >= h) continue;
2214
2214
  const b = x.range1, w = x.range2;
2215
2215
  if (qs(b) <= p && qs(w) <= g) {
2216
- if (!ao(b, r.length) || !ao(w, t.length)) return NaN;
2216
+ if (!so(b, r.length) || !so(w, t.length)) return NaN;
2217
2217
  if (e && n ? h = Math.min(h, Xm(r, b, t, w, s)) : e || n ? e && !n ? h = Math.min(h, Pf(t, w, r, b, s)) : !e && n && (h = Math.min(h, Pf(r, b, t, w, s))) : h = Math.min(h, Df(r, b, t, w, s)), h === 0) return h;
2218
2218
  } else {
2219
- const S = Fa(b, e), E = Fa(w, n);
2219
+ const S = za(b, e), E = za(w, n);
2220
2220
  Zc(f, h, s, r, t, S[0], E[0]), Zc(f, h, s, r, t, S[0], E[1]), Zc(f, h, s, r, t, S[1], E[0]), Zc(f, h, s, r, t, S[1], E[1]);
2221
2221
  }
2222
2222
  }
@@ -2225,14 +2225,14 @@ function b2() {
2225
2225
  function Mh(r, e, t, n, s = 1 / 0) {
2226
2226
  let c = s;
2227
2227
  const h = _s(r, [0, r.length - 1]);
2228
- for (const f of t) if (!(c !== 1 / 0 && Oa(h, _s(f, [0, f.length - 1]), n) >= c) && (c = Math.min(c, Lf(r, e, f, !0, n, c)), c === 0)) return c;
2228
+ for (const f of t) if (!(c !== 1 / 0 && Fa(h, _s(f, [0, f.length - 1]), n) >= c) && (c = Math.min(c, Lf(r, e, f, !0, n, c)), c === 0)) return c;
2229
2229
  return c;
2230
2230
  }
2231
2231
  function qc(r, e, t, n, s = 1 / 0) {
2232
2232
  let c = s;
2233
2233
  const h = _s(r, [0, r.length - 1]);
2234
2234
  for (const f of t) {
2235
- if (c !== 1 / 0 && Oa(h, Fl(f), n) >= c) continue;
2235
+ if (c !== 1 / 0 && Fa(h, Fl(f), n) >= c) continue;
2236
2236
  const p = Jm(r, e, f, n, c);
2237
2237
  if (isNaN(p)) return p;
2238
2238
  if ((c = Math.min(c, p)) === 0) return c;
@@ -2248,7 +2248,7 @@ function b2() {
2248
2248
  }
2249
2249
  static parse(e, t) {
2250
2250
  if (e.length !== 2) return t.error(`'distance' expression requires either one argument, but found ' ${e.length - 1} instead.`);
2251
- if (Da(e[1])) {
2251
+ if (Pa(e[1])) {
2252
2252
  const n = e[1];
2253
2253
  if (n.type === "FeatureCollection") {
2254
2254
  for (let s = 0; s < n.features.length; ++s) if (Ph(n.features[s].geometry.type)) return new $s(n, n.features[s].geometry);
@@ -2264,7 +2264,7 @@ function b2() {
2264
2264
  if (e.geometryType() === "Point") return (function(s, c, h) {
2265
2265
  const f = [];
2266
2266
  for (const g of s) for (const x of g) f.push(Zo(x, c));
2267
- const p = new za(f[0][1], "meters");
2267
+ const p = new La(f[0][1], "meters");
2268
2268
  return h.type === "Point" || h.type === "MultiPoint" || h.type === "LineString" ? Lf(f, !1, h.type === "Point" ? [h.coordinates] : h.coordinates, h.type === "LineString", p) : h.type === "MultiLineString" ? Mh(f, !1, h.coordinates, p) : h.type === "Polygon" || h.type === "MultiPolygon" ? qc(f, !1, h.type === "Polygon" ? [h.coordinates] : h.coordinates, p) : null;
2269
2269
  })(t, n, this.geometries);
2270
2270
  if (e.geometryType() === "LineString") return (function(s, c, h) {
@@ -2274,7 +2274,7 @@ function b2() {
2274
2274
  for (const b of g) x.push(Zo(b, c));
2275
2275
  f.push(x);
2276
2276
  }
2277
- const p = new za(f[0][0][1], "meters");
2277
+ const p = new La(f[0][0][1], "meters");
2278
2278
  if (h.type === "Point" || h.type === "MultiPoint" || h.type === "LineString") return Mh(h.type === "Point" ? [h.coordinates] : h.coordinates, h.type === "LineString", f, p);
2279
2279
  if (h.type === "MultiLineString") {
2280
2280
  let g = 1 / 0;
@@ -2313,7 +2313,7 @@ function b2() {
2313
2313
  for (let b = 0; b < g.length; ++b) x.push(Mf(g[b], c));
2314
2314
  f.push(x);
2315
2315
  }
2316
- const p = new za(f[0][0][0][1], "meters");
2316
+ const p = new La(f[0][0][0][1], "meters");
2317
2317
  if (h.type === "Point" || h.type === "MultiPoint" || h.type === "LineString") return qc(h.type === "Point" ? [h.coordinates] : h.coordinates, h.type === "LineString", f, p);
2318
2318
  if (h.type === "MultiLineString") {
2319
2319
  let g = 1 / 0;
@@ -2349,17 +2349,17 @@ function b2() {
2349
2349
  }
2350
2350
  function Hs(r) {
2351
2351
  if (r instanceof dr && (r.name === "get" && r.args.length === 1 || r.name === "feature-state" || r.name === "has" && r.args.length === 1 || r.name === "properties" || r.name === "geometry-type" || r.name === "id" || /^filter-/.test(r.name)) || r instanceof ms || r instanceof $s) return !1;
2352
- if (r instanceof ka) return r.featureConstant;
2352
+ if (r instanceof Ba) return r.featureConstant;
2353
2353
  let e = !0;
2354
2354
  return r.eachChild((t) => {
2355
2355
  e && !Hs(t) && (e = !1);
2356
2356
  }), e;
2357
2357
  }
2358
- function Ba(r) {
2358
+ function Oa(r) {
2359
2359
  if (r instanceof dr && r.name === "feature-state") return !1;
2360
2360
  let e = !0;
2361
2361
  return r.eachChild((t) => {
2362
- e && !Ba(t) && (e = !1);
2362
+ e && !Oa(t) && (e = !1);
2363
2363
  }), e;
2364
2364
  }
2365
2365
  function So(r, e) {
@@ -2385,14 +2385,14 @@ function b2() {
2385
2385
  case "formatted":
2386
2386
  return Lr.fromString(pt(e));
2387
2387
  case "resolvedImage":
2388
- return rn.build(pt(e));
2388
+ return tn.build(pt(e));
2389
2389
  }
2390
2390
  return e;
2391
2391
  }
2392
2392
  function Ff(r, e, t, n) {
2393
2393
  return n !== void 0 && (r = n * Math.round(r / n)), e !== void 0 && r < e && (r = e), t !== void 0 && r > t && (r = t), r;
2394
2394
  }
2395
- class ka {
2395
+ class Ba {
2396
2396
  constructor(e, t, n, s = !1) {
2397
2397
  this.type = e, this.key = t, this.scope = n, this.featureConstant = s;
2398
2398
  }
@@ -2412,7 +2412,7 @@ function b2() {
2412
2412
  const p = zf(f, c, t._scope), g = t.options.get(p);
2413
2413
  g && (h = Hs(g.value || g.default));
2414
2414
  }
2415
- return new ka(n, f, c, h);
2415
+ return new Ba(n, f, c, h);
2416
2416
  }
2417
2417
  evaluate(e) {
2418
2418
  const t = zf(this.key, this.scope, e.scope), n = e.getConfig(t);
@@ -2468,7 +2468,7 @@ function b2() {
2468
2468
  }
2469
2469
  _parse(e, t) {
2470
2470
  function n(s, c, h) {
2471
- return h === "assert" ? new Sn(c, [s]) : h === "coerce" ? new oo(c, [s]) : s;
2471
+ return h === "assert" ? new Sn(c, [s]) : h === "coerce" ? new no(c, [s]) : s;
2472
2472
  }
2473
2473
  if (e !== null && typeof e != "string" && typeof e != "boolean" && typeof e != "number" || (e = ["literal", e]), Array.isArray(e)) {
2474
2474
  if (e.length === 0) return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');
@@ -2493,7 +2493,7 @@ function b2() {
2493
2493
  }
2494
2494
  return c;
2495
2495
  }
2496
- return oo.parse(["to-array", e], this);
2496
+ return no.parse(["to-array", e], this);
2497
2497
  }
2498
2498
  return this.error(e === void 0 ? "'undefined' value invalid. Use null instead." : typeof e == "object" ? 'Bare objects invalid. Use ["literal", {...}] instead.' : `Expected an array, but found ${typeof e} instead.`);
2499
2499
  }
@@ -2514,8 +2514,8 @@ function b2() {
2514
2514
  }
2515
2515
  function Rh(r) {
2516
2516
  if (r instanceof $c) return Rh(r.boundExpression);
2517
- if (r instanceof dr && r.name === "error" || r instanceof Vc || r instanceof ms || r instanceof $s || r instanceof ka) return !1;
2518
- const e = r instanceof oo || r instanceof Sn;
2517
+ if (r instanceof dr && r.name === "error" || r instanceof Vc || r instanceof ms || r instanceof $s || r instanceof Ba) return !1;
2518
+ const e = r instanceof no || r instanceof Sn;
2519
2519
  let t = !0;
2520
2520
  return r.eachChild((n) => {
2521
2521
  t = e ? t && Rh(n) : t && n instanceof rt;
@@ -2577,21 +2577,21 @@ function b2() {
2577
2577
  return e;
2578
2578
  }
2579
2579
  }
2580
- const Of = 0.95047, Bf = 1.08883, kf = 4 / 29, Na = 6 / 29, Nf = 3 * Na * Na, Qm = Na * Na * Na, e_ = Math.PI / 180, t_ = 180 / Math.PI;
2580
+ const Of = 0.95047, Bf = 1.08883, kf = 4 / 29, ka = 6 / 29, Nf = 3 * ka * ka, Qm = ka * ka * ka, e_ = Math.PI / 180, t_ = 180 / Math.PI;
2581
2581
  function Lh(r) {
2582
2582
  return r > Qm ? Math.pow(r, 1 / 3) : r / Nf + kf;
2583
2583
  }
2584
2584
  function zh(r) {
2585
- return r > Na ? r * r * r : Nf * (r - kf);
2585
+ return r > ka ? r * r * r : Nf * (r - kf);
2586
2586
  }
2587
2587
  function Bl(r) {
2588
2588
  return 255 * (r <= 31308e-7 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055);
2589
2589
  }
2590
- function Va(r) {
2590
+ function Na(r) {
2591
2591
  return (r /= 255) <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
2592
2592
  }
2593
2593
  function Fh(r) {
2594
- const e = Va(r.r), t = Va(r.g), n = Va(r.b), s = Lh((0.4124564 * e + 0.3575761 * t + 0.1804375 * n) / Of), c = Lh((0.2126729 * e + 0.7151522 * t + 0.072175 * n) / 1);
2594
+ const e = Na(r.r), t = Na(r.g), n = Na(r.b), s = Lh((0.4124564 * e + 0.3575761 * t + 0.1804375 * n) / Of), c = Lh((0.2126729 * e + 0.7151522 * t + 0.072175 * n) / 1);
2595
2595
  return { l: 116 * c - 16, a: 500 * (s - c), b: 200 * (c - Lh((0.0193339 * e + 0.119192 * t + 0.9503041 * n) / Bf)), alpha: r.a };
2596
2596
  }
2597
2597
  function Vf(r) {
@@ -2604,7 +2604,7 @@ function b2() {
2604
2604
  }
2605
2605
  const kl = { forward: Fh, reverse: Vf, interpolate: function(r, e, t) {
2606
2606
  return { l: mt(r.l, e.l, t), a: mt(r.a, e.a, t), b: mt(r.b, e.b, t), alpha: mt(r.alpha, e.alpha, t) };
2607
- } }, Ua = { forward: function(r) {
2607
+ } }, Va = { forward: function(r) {
2608
2608
  const { l: e, a: t, b: n } = Fh(r), s = Math.atan2(n, t) * t_;
2609
2609
  return { h: s < 0 ? s + 360 : s, c: Math.sqrt(t * t + n * n), l: e, alpha: r.a };
2610
2610
  }, reverse: function(r) {
@@ -2613,7 +2613,7 @@ function b2() {
2613
2613
  }, interpolate: function(r, e, t) {
2614
2614
  return { h: i_(r.h, e.h, t), c: mt(r.c, e.c, t), l: mt(r.l, e.l, t), alpha: mt(r.alpha, e.alpha, t) };
2615
2615
  } };
2616
- var Oh = Object.freeze({ __proto__: null, hcl: Ua, lab: kl });
2616
+ var Oh = Object.freeze({ __proto__: null, hcl: Va, lab: kl });
2617
2617
  class zr {
2618
2618
  constructor(e, t, n, s, c) {
2619
2619
  this.type = e, this.operator = t, this.interpolation = n, this.input = s, this.labels = [], this.outputs = [];
@@ -2669,7 +2669,7 @@ function b2() {
2669
2669
  const c = t.length;
2670
2670
  if (s >= t[c - 1]) return n[c - 1].evaluate(e);
2671
2671
  const h = Wc(t, s), f = zr.interpolationFactor(this.interpolation, s, t[h], t[h + 1]), p = n[h].evaluate(e), g = n[h + 1].evaluate(e);
2672
- return this.operator === "interpolate" ? Bc[this.type.kind.toLowerCase()](p, g, f) : this.operator === "interpolate-hcl" ? Ua.reverse(Ua.interpolate(Ua.forward(p), Ua.forward(g), f)) : kl.reverse(kl.interpolate(kl.forward(p), kl.forward(g), f));
2672
+ return this.operator === "interpolate" ? Bc[this.type.kind.toLowerCase()](p, g, f) : this.operator === "interpolate-hcl" ? Va.reverse(Va.interpolate(Va.forward(p), Va.forward(g), f)) : kl.reverse(kl.interpolate(kl.forward(p), kl.forward(g), f));
2673
2673
  }
2674
2674
  eachChild(e) {
2675
2675
  e(this.input);
@@ -2711,7 +2711,7 @@ function b2() {
2711
2711
  evaluate(e) {
2712
2712
  let t, n = null, s = 0;
2713
2713
  for (const c of this.args) {
2714
- if (s++, n = c.evaluate(e), n && n instanceof rn && !n.available && (t || (t = n), n = null, s === this.args.length)) return t;
2714
+ if (s++, n = c.evaluate(e), n && n instanceof tn && !n.available && (t || (t = n), n = null, s === this.args.length)) return t;
2715
2715
  if (n !== null) break;
2716
2716
  }
2717
2717
  return n;
@@ -2830,8 +2830,8 @@ function b2() {
2830
2830
  evaluate(e) {
2831
2831
  const t = this.needle.evaluate(e), n = this.haystack.evaluate(e);
2832
2832
  if (n == null) return !1;
2833
- if (!Pa(t, ["boolean", "string", "number", "null"])) throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${rr(Zi(t))} instead.`);
2834
- if (!Pa(n, ["string", "array"])) throw new Ji(`Expected second argument to be of type array or string, but found ${rr(Zi(n))} instead.`);
2833
+ if (!Ma(t, ["boolean", "string", "number", "null"])) throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${rr(Zi(t))} instead.`);
2834
+ if (!Ma(n, ["string", "array"])) throw new Ji(`Expected second argument to be of type array or string, but found ${rr(Zi(n))} instead.`);
2835
2835
  return n.indexOf(t) >= 0;
2836
2836
  }
2837
2837
  eachChild(e) {
@@ -2861,8 +2861,8 @@ function b2() {
2861
2861
  }
2862
2862
  evaluate(e) {
2863
2863
  const t = this.needle.evaluate(e), n = this.haystack.evaluate(e);
2864
- if (!Pa(t, ["boolean", "string", "number", "null"])) throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${rr(Zi(t))} instead.`);
2865
- if (!Pa(n, ["string", "array"])) throw new Ji(`Expected second argument to be of type array or string, but found ${rr(Zi(n))} instead.`);
2864
+ if (!Ma(t, ["boolean", "string", "number", "null"])) throw new Ji(`Expected first argument to be of type boolean, string, number or null, but found ${rr(Zi(t))} instead.`);
2865
+ if (!Ma(n, ["string", "array"])) throw new Ji(`Expected second argument to be of type array or string, but found ${rr(Zi(n))} instead.`);
2866
2866
  if (this.fromIndex) {
2867
2867
  const s = this.fromIndex.evaluate(e);
2868
2868
  return n.indexOf(t, s);
@@ -2994,7 +2994,7 @@ function b2() {
2994
2994
  }
2995
2995
  evaluate(e) {
2996
2996
  const t = this.input.evaluate(e), n = this.beginIndex.evaluate(e);
2997
- if (!Pa(t, ["string", "array"])) throw new Ji(`Expected first argument to be of type array or string, but found ${rr(Zi(t))} instead.`);
2997
+ if (!Ma(t, ["string", "array"])) throw new Ji(`Expected first argument to be of type array or string, but found ${rr(Zi(t))} instead.`);
2998
2998
  if (this.endIndex) {
2999
2999
  const s = this.endIndex.evaluate(e);
3000
3000
  return t.slice(n, s);
@@ -3186,7 +3186,7 @@ function b2() {
3186
3186
  return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
3187
3187
  };
3188
3188
  }
3189
- const ja = { "==": Gf, "!=": Qc, ">": Zf, "<": r_, ">=": o_, "<=": n_, array: Sn, at: Vl, "at-interpolated": Ul, boolean: Sn, case: Jc, coalesce: Nl, collator: Vc, format: js, image: dt, in: jl, "index-of": Kc, interpolate: zr, "interpolate-hcl": zr, "interpolate-lab": zr, length: tu, let: Yc, literal: rt, match: Bh, number: Sn, "number-format": eu, object: Sn, slice: Gl, step: Ol, string: Sn, "to-boolean": oo, "to-color": oo, "to-number": oo, "to-string": oo, var: $c, within: ms, distance: $s, config: ka, split: kh };
3189
+ const Ua = { "==": Gf, "!=": Qc, ">": Zf, "<": r_, ">=": o_, "<=": n_, array: Sn, at: Vl, "at-interpolated": Ul, boolean: Sn, case: Jc, coalesce: Nl, collator: Vc, format: js, image: dt, in: jl, "index-of": Kc, interpolate: zr, "interpolate-hcl": zr, "interpolate-lab": zr, length: tu, let: Yc, literal: rt, match: Bh, number: Sn, "number-format": eu, object: Sn, slice: Gl, step: Ol, string: Sn, "to-boolean": no, "to-color": no, "to-number": no, "to-string": no, var: $c, within: ms, distance: $s, config: Ba, split: kh };
3190
3190
  function $f(r, [e, t, n, s]) {
3191
3191
  e = e.evaluate(r), t = t.evaluate(r), n = n.evaluate(r);
3192
3192
  const c = s ? s.evaluate(r) : 1, h = bf(e, t, n, c);
@@ -3214,7 +3214,7 @@ function b2() {
3214
3214
  return { type: r };
3215
3215
  }
3216
3216
  function ru(r) {
3217
- if (r instanceof ka) return /* @__PURE__ */ new Set([r.key]);
3217
+ if (r instanceof Ba) return /* @__PURE__ */ new Set([r.key]);
3218
3218
  let e = /* @__PURE__ */ new Set();
3219
3219
  return r.eachChild((t) => {
3220
3220
  e = /* @__PURE__ */ new Set([...e, ...ru(t)]);
@@ -3323,9 +3323,9 @@ function b2() {
3323
3323
  } } : g(f, p, h);
3324
3324
  }
3325
3325
  function Qf(r, e, t) {
3326
- return e.type === "color" ? t = jt.parse(t) : e.type === "formatted" ? t = Lr.fromString(t.toString()) : e.type === "resolvedImage" ? t = rn.build(t.toString()) : El(t) === e.type || e.type === "enum" && e.values[t] || (t = void 0), Io(t, r.default, e.default);
3326
+ return e.type === "color" ? t = jt.parse(t) : e.type === "formatted" ? t = Lr.fromString(t.toString()) : e.type === "resolvedImage" ? t = tn.build(t.toString()) : El(t) === e.type || e.type === "enum" && e.values[t] || (t = void 0), Io(t, r.default, e.default);
3327
3327
  }
3328
- dr.register(ja, { error: [{ kind: "error" }, [Yt], (r, [e]) => {
3328
+ dr.register(Ua, { error: [{ kind: "error" }, [Yt], (r, [e]) => {
3329
3329
  throw new Ji(e.evaluate(r));
3330
3330
  }], typeof: [Yt, [Jt], (r, [e]) => rr(Zi(e.evaluate(r)))], "to-rgba": [kr(st, 4), [qr], (r, [e]) => e.evaluate(r).toNonPremultipliedRenderColor(null).toArray()], "to-hsla": [kr(st, 4), [qr], (r, [e]) => e.evaluate(r).toNonPremultipliedRenderColor(null).toHslaArray()], rgb: [qr, [st, st, st], $f], rgba: [qr, [st, st, st, st], $f], hsl: [qr, [st, st, st], Hf], hsla: [qr, [st, st, st, st], Hf], has: { type: Kt, overloads: [[[Yt], (r, [e]) => Zl(e.evaluate(r), r.properties())], [[Yt, ds], (r, [e, t]) => Zl(e.evaluate(r), t.evaluate(r))]] }, get: { type: Jt, overloads: [[[Yt], (r, [e]) => iu(e.evaluate(r), r.properties())], [[Yt, ds], (r, [e, t]) => iu(e.evaluate(r), t.evaluate(r))]] }, "feature-state": [Jt, [Yt], (r, [e]) => iu(e.evaluate(r), r.featureState || {})], properties: [ds, [], (r) => r.properties()], "geometry-type": [Yt, [], (r) => r.geometryType()], worldview: [Yt, [], (r) => r.globals.worldview || ""], "is-active-floor": [Kt, gs(Yt), (r, e) => {
3331
3331
  if (!(r.globals && r.globals.activeFloors && r.globals.activeFloors.size > 0)) return !1;
@@ -3425,18 +3425,18 @@ function b2() {
3425
3425
  }
3426
3426
  }
3427
3427
  function $l(r) {
3428
- return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in ja;
3428
+ return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in Ua;
3429
3429
  }
3430
3430
  function xs(r, e, t, n, s) {
3431
- const c = new Hc(ja, [], e ? (function(f) {
3431
+ const c = new Hc(Ua, [], e ? (function(f) {
3432
3432
  const p = { color: qr, string: Yt, number: st, enum: Yt, boolean: Kt, formatted: wl, resolvedImage: Tl };
3433
3433
  return f.type === "array" ? kr(p[f.value] || Jt, f.length) : p[f.type];
3434
3434
  })(e) : void 0, void 0, void 0, t, n, s), h = c.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
3435
3435
  return h ? Wf(new au(h, e, t, n, s)) : ys(c.errors);
3436
3436
  }
3437
- class Ga {
3437
+ class ja {
3438
3438
  constructor(e, t, n, s) {
3439
- this.kind = e, this._styleExpression = t, this.isLightConstant = n, this.isLineProgressConstant = s, this.isStateDependent = e !== "constant" && !Ba(t.expression), this.configDependencies = ru(t.expression), this.isIndoorDependent = nu(t.expression);
3439
+ this.kind = e, this._styleExpression = t, this.isLightConstant = n, this.isLineProgressConstant = s, this.isStateDependent = e !== "constant" && !Oa(t.expression), this.configDependencies = ru(t.expression), this.isIndoorDependent = nu(t.expression);
3440
3440
  }
3441
3441
  evaluateWithoutErrorHandling(e, t, n, s, c, h) {
3442
3442
  return this._styleExpression.evaluateWithoutErrorHandling(e, t, n, s, c, h);
@@ -3447,7 +3447,7 @@ function b2() {
3447
3447
  }
3448
3448
  class Xs {
3449
3449
  constructor(e, t, n, s, c, h) {
3450
- this.kind = e, this.zoomStops = n, this._styleExpression = t, this.isStateDependent = e !== "camera" && !Ba(t.expression), this.isIndoorDependent = nu(t.expression), this.isLightConstant = c, this.isLineProgressConstant = h, this.configDependencies = ru(t.expression), this.interpolationType = s;
3450
+ this.kind = e, this.zoomStops = n, this._styleExpression = t, this.isStateDependent = e !== "camera" && !Oa(t.expression), this.isIndoorDependent = nu(t.expression), this.isLightConstant = c, this.isLineProgressConstant = h, this.configDependencies = ru(t.expression), this.interpolationType = s;
3451
3451
  }
3452
3452
  evaluateWithoutErrorHandling(e, t, n, s, c, h) {
3453
3453
  return this._styleExpression.evaluateWithoutErrorHandling(e, t, n, s, c, h);
@@ -3471,8 +3471,8 @@ function b2() {
3471
3471
  if (!g && !(function(w) {
3472
3472
  return ql(w.expression, "line-progress");
3473
3473
  })(e)) return ys([new Zn("", "line-progress expression not supported")]);
3474
- const x = e.expression && e.expression.relaxZoomRestriction, b = lo(c);
3475
- return b || f || x ? b instanceof Zn ? ys([b]) : b instanceof zr && !su(e) ? ys([new Zn("", '"interpolate" expressions cannot be used with this property')]) : Wf(b ? new Xs(h && g ? "camera" : "composite", r.value, b.labels, b instanceof zr ? b.interpolation : void 0, p, g) : new Ga(h && g ? "constant" : "source", r.value, p, g)) : ys([new Zn("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')]);
3474
+ const x = e.expression && e.expression.relaxZoomRestriction, b = ao(c);
3475
+ return b || f || x ? b instanceof Zn ? ys([b]) : b instanceof zr && !su(e) ? ys([new Zn("", '"interpolate" expressions cannot be used with this property')]) : Wf(b ? new Xs(h && g ? "camera" : "composite", r.value, b.labels, b instanceof zr ? b.interpolation : void 0, p, g) : new ja(h && g ? "constant" : "source", r.value, p, g)) : ys([new Zn("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')]);
3476
3476
  }
3477
3477
  class lu {
3478
3478
  constructor(e, t) {
@@ -3485,14 +3485,14 @@ function b2() {
3485
3485
  return { _parameters: e._parameters, _specification: e._specification };
3486
3486
  }
3487
3487
  }
3488
- function lo(r) {
3488
+ function ao(r) {
3489
3489
  let e = null;
3490
- if (r instanceof Yc) e = lo(r.result);
3490
+ if (r instanceof Yc) e = ao(r.result);
3491
3491
  else if (r instanceof Nl) {
3492
- for (const t of r.args) if (e = lo(t), e) break;
3492
+ for (const t of r.args) if (e = ao(t), e) break;
3493
3493
  } else (r instanceof Ol || r instanceof zr) && r.input instanceof dr && r.input.name === "zoom" && (e = r);
3494
3494
  return e instanceof Zn || r.eachChild((t) => {
3495
- const n = lo(t);
3495
+ const n = ao(t);
3496
3496
  n instanceof Zn ? e = n : e && n && e !== n && (e = new Zn("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
3497
3497
  }), e;
3498
3498
  }
@@ -3561,18 +3561,18 @@ function b2() {
3561
3561
  }
3562
3562
  return h[r + t.length] = f, h.set(this.keys, f), h[r + t.length + 1] = f += this.keys.length, h.set(this.bboxes, f), f += this.bboxes.length, h.buffer;
3563
3563
  }, jh;
3564
- })(), Za = cs(Hl);
3564
+ })(), Ga = cs(Hl);
3565
3565
  const Ys = {};
3566
3566
  function Qe(r, e, t = {}) {
3567
3567
  Object.defineProperty(r, "_classRegistryKey", { value: e, writable: !1 }), Ys[e] = { klass: r, omit: t.omit || [] };
3568
3568
  }
3569
- Qe(Object, "Object"), Za.serialize = function(r, e) {
3569
+ Qe(Object, "Object"), Ga.serialize = function(r, e) {
3570
3570
  const t = r.toArrayBuffer();
3571
3571
  return e && e.add(t), { buffer: t };
3572
- }, Za.deserialize = function(r) {
3573
- return new Za(r.buffer);
3574
- }, Object.defineProperty(Za, "name", { value: "Grid" }), Qe(Za, "Grid"), delete ze.prototype.constructor, Qe(jt, "Color"), Qe(Error, "Error"), Qe(Lr, "Formatted"), Qe(Il, "FormattedSection"), Qe(hh, "AJAXError"), Qe(rn, "ResolvedImage"), Qe(lu, "StylePropertyFunction"), Qe(au, "StyleExpression", { omit: ["_evaluator"] }), Qe(fn, "ImageId"), Qe(qn, "ImageVariant"), Qe(Xs, "ZoomDependentExpression"), Qe(Ga, "ZoomConstantExpression"), Qe(dr, "CompoundExpression", { omit: ["_evaluate"] });
3575
- for (const r in ja) Ys[ja[r]._classRegistryKey] || Qe(ja[r], `Expression${r}`);
3572
+ }, Ga.deserialize = function(r) {
3573
+ return new Ga(r.buffer);
3574
+ }, Object.defineProperty(Ga, "name", { value: "Grid" }), Qe(Ga, "Grid"), delete ze.prototype.constructor, Qe(jt, "Color"), Qe(Error, "Error"), Qe(Lr, "Formatted"), Qe(Il, "FormattedSection"), Qe(hh, "AJAXError"), Qe(tn, "ResolvedImage"), Qe(lu, "StylePropertyFunction"), Qe(au, "StyleExpression", { omit: ["_evaluator"] }), Qe(fn, "ImageId"), Qe(qn, "ImageVariant"), Qe(Xs, "ZoomDependentExpression"), Qe(ja, "ZoomConstantExpression"), Qe(dr, "CompoundExpression", { omit: ["_evaluate"] });
3575
+ for (const r in Ua) Ys[Ua[r]._classRegistryKey] || Qe(Ua[r], `Expression${r}`);
3576
3576
  function Wl(r) {
3577
3577
  return r && (r instanceof ArrayBuffer || r.constructor && r.constructor.name === "ArrayBuffer");
3578
3578
  }
@@ -3681,13 +3681,13 @@ function b2() {
3681
3681
  r && typeof r == "string" && r.indexOf("NetworkError") > -1 && (Nr = pn.error), Ao && Ao(r);
3682
3682
  };
3683
3683
  function td() {
3684
- id.fire(new ro("pluginStateChange", { pluginStatus: Nr, pluginURL: En }));
3684
+ id.fire(new io("pluginStateChange", { pluginStatus: Nr, pluginURL: En }));
3685
3685
  }
3686
3686
  const id = new bl(), rd = function() {
3687
3687
  return Nr;
3688
3688
  }, up = function() {
3689
3689
  if (Nr !== pn.deferred || !En) throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");
3690
- Nr = pn.loading, td(), En && Ea({ url: En }, (r) => {
3690
+ Nr = pn.loading, td(), En && Ia({ url: En }, (r) => {
3691
3691
  r ? cp(r) : (Nr = pn.loaded, td());
3692
3692
  });
3693
3693
  }, Ho = { applyArabicShaping: null, processBidirectionalText: null, processStyledBidirectionalText: null, isLoaded: () => Nr === pn.loaded || Ho.applyArabicShaping != null, isLoading: () => Nr === pn.loading, setState(r) {
@@ -3706,7 +3706,7 @@ function b2() {
3706
3706
  })(e, Ho.isLoaded());
3707
3707
  }
3708
3708
  }
3709
- class qa {
3709
+ class Za {
3710
3710
  constructor(e, t, n, s, c) {
3711
3711
  this.property = e, this.value = t, this.expression = (function(h, f, p, g, x) {
3712
3712
  if (Vh(h)) return new lu(h, f);
@@ -3733,13 +3733,13 @@ function b2() {
3733
3733
  }
3734
3734
  class _u {
3735
3735
  constructor(e, t, n, s) {
3736
- this.property = e, this.value = new qa(e, void 0, t, n, s);
3736
+ this.property = e, this.value = new Za(e, void 0, t, n, s);
3737
3737
  }
3738
3738
  transitioned(e, t) {
3739
- return new $a(this.property, this.value, t, Object.assign({}, e.transition, this.transition), e.now);
3739
+ return new qa(this.property, this.value, t, Object.assign({}, e.transition, this.transition), e.now);
3740
3740
  }
3741
3741
  untransitioned() {
3742
- return new $a(this.property, this.value, null, {}, 0);
3742
+ return new qa(this.property, this.value, null, {}, 0);
3743
3743
  }
3744
3744
  }
3745
3745
  class gu {
@@ -3750,7 +3750,7 @@ function b2() {
3750
3750
  return Xe(this._values[e].value.value);
3751
3751
  }
3752
3752
  setValue(e, t) {
3753
- this._values.hasOwnProperty(e) || (this._values[e] = new _u(this._values[e].property, this._scope, this._options, this._iconImageUseTheme)), this._values[e].value = new qa(this._values[e].property, t === null ? void 0 : Xe(t), this._scope, this._options, this._iconImageUseTheme), this._values[e].value.expression.configDependencies && (this.configDependencies = /* @__PURE__ */ new Set([...this.configDependencies, ...this._values[e].value.expression.configDependencies]), this._isIndoorDependent = this._isIndoorDependent || this._values[e].value.isIndoorDependent());
3753
+ this._values.hasOwnProperty(e) || (this._values[e] = new _u(this._values[e].property, this._scope, this._options, this._iconImageUseTheme)), this._values[e].value = new Za(this._values[e].property, t === null ? void 0 : Xe(t), this._scope, this._options, this._iconImageUseTheme), this._values[e].value.expression.configDependencies && (this.configDependencies = /* @__PURE__ */ new Set([...this.configDependencies, ...this._values[e].value.expression.configDependencies]), this._isIndoorDependent = this._isIndoorDependent || this._values[e].value.isIndoorDependent());
3754
3754
  }
3755
3755
  setTransitionOrValue(e, t) {
3756
3756
  t && (this._options = t);
@@ -3793,7 +3793,7 @@ function b2() {
3793
3793
  return this._isIndoorDependent;
3794
3794
  }
3795
3795
  }
3796
- class $a {
3796
+ class qa {
3797
3797
  constructor(e, t, n, s, c) {
3798
3798
  const h = s.delay || 0, f = s.duration || 0;
3799
3799
  c = c || 0, this.property = e, this.value = t, this.begin = c + h, this.end = this.begin + f, e.specification.transition && (s.delay || s.duration) && (this.prior = n);
@@ -3834,7 +3834,7 @@ function b2() {
3834
3834
  return Xe(this._values[e].value);
3835
3835
  }
3836
3836
  setValue(e, t) {
3837
- this._values[e] = new qa(this._values[e].property, t === null ? void 0 : Xe(t), this._scope, this._options, this._iconImageUseTheme), this._values[e].expression.configDependencies && (this.configDependencies = /* @__PURE__ */ new Set([...this.configDependencies, ...this._values[e].expression.configDependencies]), this._isIndoorDependent = this._isIndoorDependent || this._values[e].isIndoorDependent());
3837
+ this._values[e] = new Za(this._values[e].property, t === null ? void 0 : Xe(t), this._scope, this._options, this._iconImageUseTheme), this._values[e].expression.configDependencies && (this.configDependencies = /* @__PURE__ */ new Set([...this.configDependencies, ...this._values[e].expression.configDependencies]), this._isIndoorDependent = this._isIndoorDependent || this._values[e].isIndoorDependent());
3838
3838
  }
3839
3839
  serialize() {
3840
3840
  const e = {};
@@ -3904,7 +3904,7 @@ function b2() {
3904
3904
  return e.kind === "constant" ? e.value : e.evaluate(t, n, s, c, h, p, f);
3905
3905
  }
3906
3906
  }
3907
- class Ha {
3907
+ class $a {
3908
3908
  constructor(e) {
3909
3909
  this.specification = e;
3910
3910
  }
@@ -3922,12 +3922,12 @@ function b2() {
3922
3922
  for (const n in e) {
3923
3923
  const s = e[n], c = s.specification;
3924
3924
  c && c.overridable && this.overridableProperties.push(n);
3925
- const h = this.defaultPropertyValues[n] = new qa(s, void 0), f = this.defaultTransitionablePropertyValues[n] = new _u(s);
3925
+ const h = this.defaultPropertyValues[n] = new Za(s, void 0), f = this.defaultTransitionablePropertyValues[n] = new _u(s);
3926
3926
  this.defaultTransitioningPropertyValues[n] = f.untransitioned(), this.defaultPossiblyEvaluatedValues[n] = h.possiblyEvaluate(t);
3927
3927
  }
3928
3928
  }
3929
3929
  }
3930
- Qe(ke, "DataDrivenProperty"), Qe(Ge, "DataConstantProperty"), Qe(Ha, "ColorRampProperty");
3930
+ Qe(ke, "DataDrivenProperty"), Qe(Ge, "DataConstantProperty"), Qe($a, "ColorRampProperty");
3931
3931
  var ue = JSON.parse('{"$version":8,"$root":{"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string"},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360}},"modelNodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[-180,-90],"maximum":[180,90]},"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"},"appearances":{"type":"array","value":"appearance","supported-layer-types":["symbol"]}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":true,"parameters":["zoom","pitch","feature","feature-state","measure-light","distance-from-center"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"source-max-zoom":{"type":"number","minimum":0,"maximum":24}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","minimum":1,"maximum":200,"default":3,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-unit-width":{"type":"number","minimum":1,"maximum":20,"default":3.1,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-window":{"type":"array","length":2,"value":"number","minimum":0.1,"maximum":1,"default":[0.9,0.9],"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flip-roof-orientation":{"property-type":"data-driven","type":"boolean","default":false,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","line-progress"]},"transition":true,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"appearance":true,"use-theme":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_building":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*"}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"building-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"building-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"line-blend-mode":{"type":"enum","values":{"default":1,"multiply":1,"additive":1},"default":"default","expression":{"parameters":["zoom"]}}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"appearance":true,"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"appearance":true,"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"sea","expression":{}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"use-theme":true,"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"model-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{}},"model-ignore-line-cutout":{"type":"boolean","default":false,"expression":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');
3932
3932
  function dp(r) {
3933
3933
  return r instanceof Number || r instanceof String || r instanceof Boolean ? r.valueOf() : r;
@@ -3975,7 +3975,7 @@ function b2() {
3975
3975
  let c = !0;
3976
3976
  try {
3977
3977
  c = (function(x) {
3978
- if (!Wa(x)) return x;
3978
+ if (!Ha(x)) return x;
3979
3979
  let b = yu(x);
3980
3980
  return pp(b), b = fp(b), b;
3981
3981
  })(s);
@@ -4007,7 +4007,7 @@ ${JSON.stringify(s, null, 2)}
4007
4007
  if (!Array.isArray(r)) return r;
4008
4008
  const e = (function(t) {
4009
4009
  if (mp.has(t[0])) {
4010
- for (let n = 1; n < t.length; n++) if (Wa(t[n])) return !0;
4010
+ for (let n = 1; n < t.length; n++) if (Ha(t[n])) return !0;
4011
4011
  }
4012
4012
  return t;
4013
4013
  })(r);
@@ -4017,24 +4017,24 @@ ${JSON.stringify(s, null, 2)}
4017
4017
  let e = !1;
4018
4018
  const t = [];
4019
4019
  if (r[0] === "case") {
4020
- for (let n = 1; n < r.length - 1; n += 2) e = e || Wa(r[n]), t.push(r[n + 1]);
4020
+ for (let n = 1; n < r.length - 1; n += 2) e = e || Ha(r[n]), t.push(r[n + 1]);
4021
4021
  t.push(r[r.length - 1]);
4022
4022
  } else if (r[0] === "match") {
4023
- e = e || Wa(r[1]);
4023
+ e = e || Ha(r[1]);
4024
4024
  for (let n = 2; n < r.length - 1; n += 2) t.push(r[n + 1]);
4025
4025
  t.push(r[r.length - 1]);
4026
4026
  } else if (r[0] === "step") {
4027
- e = e || Wa(r[1]);
4027
+ e = e || Ha(r[1]);
4028
4028
  for (let n = 1; n < r.length - 1; n += 2) t.push(r[n + 1]);
4029
4029
  }
4030
4030
  e && (r.length = 0, r.push("any", ...t));
4031
4031
  for (let n = 1; n < r.length; n++) pp(r[n]);
4032
4032
  }
4033
- function Wa(r) {
4033
+ function Ha(r) {
4034
4034
  if (!Array.isArray(r)) return !1;
4035
4035
  if ((e = r[0]) === "pitch" || e === "distance-from-center") return !0;
4036
4036
  var e;
4037
- for (let t = 1; t < r.length; t++) if (Wa(r[t])) return !0;
4037
+ for (let t = 1; t < r.length; t++) if (Ha(r[t])) return !0;
4038
4038
  return !1;
4039
4039
  }
4040
4040
  const mp = /* @__PURE__ */ new Set(["in", "==", "!=", ">", ">=", "<", "<=", "to-boolean"]);
@@ -4286,7 +4286,7 @@ ${JSON.stringify(s, null, 2)}
4286
4286
  const t = this.paint.get(e);
4287
4287
  if (t instanceof Qs && ou(t.property.specification) && (t.value.kind === "source" || t.value.kind === "composite") && t.value.isStateDependent) return !0;
4288
4288
  }
4289
- for (const e of this.appearances) if (!Ba(e.condition.expression)) return !0;
4289
+ for (const e of this.appearances) if (!Oa(e.condition.expression)) return !0;
4290
4290
  return !1;
4291
4291
  }
4292
4292
  compileFilter(e) {
@@ -4534,7 +4534,7 @@ ${JSON.stringify(s, null, 2)}
4534
4534
  }
4535
4535
  }
4536
4536
  Mo.prototype.bytesPerElement = 12, Qe(Mo, "StructArrayLayout4ui1f12");
4537
- class Xa extends mi {
4537
+ class Wa extends mi {
4538
4538
  _refreshViews() {
4539
4539
  this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
4540
4540
  }
@@ -4547,7 +4547,7 @@ ${JSON.stringify(s, null, 2)}
4547
4547
  return this.uint16[h + 0] = t, this.uint16[h + 1] = n, this.uint16[h + 2] = s, this.uint16[h + 3] = c, e;
4548
4548
  }
4549
4549
  }
4550
- Xa.prototype.bytesPerElement = 8, Qe(Xa, "StructArrayLayout4ui8");
4550
+ Wa.prototype.bytesPerElement = 8, Qe(Wa, "StructArrayLayout4ui8");
4551
4551
  class Tu extends mi {
4552
4552
  _refreshViews() {
4553
4553
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
@@ -5480,7 +5480,7 @@ ${JSON.stringify(s, null, 2)}
5480
5480
  constructor(e, t, n, s, c) {
5481
5481
  this.expression = e, this.layerId = c, this.paintVertexAttributes = (n === "array" ? v_ : y_).members;
5482
5482
  for (let h = 0; h < t.length; ++h) ;
5483
- this.paintVertexArray = new s(), this.paintTransitionVertexArray = new Xa();
5483
+ this.paintVertexArray = new s(), this.paintTransitionVertexArray = new Wa();
5484
5484
  }
5485
5485
  populatePaintArray(e, t, n, s) {
5486
5486
  const c = this.paintVertexArray.length;
@@ -5653,7 +5653,7 @@ ${JSON.stringify(s, null, 2)}
5653
5653
  function L(r, e) {
5654
5654
  return z[r] || [r.replace(`${e}-`, "").replace(/-/g, "_")];
5655
5655
  }
5656
- const V = { "line-pattern": { source: Mo, composite: Mo }, "fill-pattern": { source: Mo, composite: Mo }, "fill-extrusion-pattern": { source: Mo, composite: Mo }, "line-dasharray": { source: Xa, composite: Xa } }, N = { color: { source: ia, composite: Yo }, number: { source: An, composite: ia } };
5656
+ const V = { "line-pattern": { source: Mo, composite: Mo }, "fill-pattern": { source: Mo, composite: Mo }, "fill-extrusion-pattern": { source: Mo, composite: Mo }, "line-dasharray": { source: Wa, composite: Wa } }, N = { color: { source: ia, composite: Yo }, number: { source: An, composite: ia } };
5657
5657
  function q(r, e, t) {
5658
5658
  const n = V[r];
5659
5659
  return n && n[t] || N[e][t];
@@ -6109,7 +6109,7 @@ ${JSON.stringify(s, null, 2)}
6109
6109
  this.pos = e, this.dir = t;
6110
6110
  }
6111
6111
  intersectsPlane(e, t, n) {
6112
- const s = io(t, this.dir);
6112
+ const s = to(t, this.dir);
6113
6113
  if (Math.abs(s) < 1e-6) return !1;
6114
6114
  const c = ((e[0] - this.pos[0]) * t[0] + (e[1] - this.pos[1]) * t[1]) / s;
6115
6115
  return n[0] = this.pos[0] + this.dir[0] * c, n[1] = this.pos[1] + this.dir[1] * c, !0;
@@ -6231,7 +6231,7 @@ ${JSON.stringify(s, null, 2)}
6231
6231
  class Xt {
6232
6232
  static fromPoints(e) {
6233
6233
  const t = [1 / 0, 1 / 0, 1 / 0], n = [-1 / 0, -1 / 0, -1 / 0];
6234
- for (const s of e) en(t, t, s), mo(n, n, s);
6234
+ for (const s of e) Qr(t, t, s), mo(n, n, s);
6235
6235
  return new Xt(t, n);
6236
6236
  }
6237
6237
  static fromTileIdAndHeight(e, t, n) {
@@ -6373,9 +6373,9 @@ ${JSON.stringify(s, null, 2)}
6373
6373
  const P = this.vertices[E.a].position, R = this.vertices[E.b].position, B = w.intersectsPlane(P, this.vertexProps[E.a].dir, c), F = w.intersectsPlane(R, this.vertexProps[E.b].dir, h);
6374
6374
  if (!B || !F) continue;
6375
6375
  yo(f, h, c), yo(p, b, c);
6376
- const U = io(f, f), G = U > 0 ? io(p, f) / U : 0, Z = k(G, 0, 1), ie = Math.abs((G - Z) * this.edgeProps[S].len);
6376
+ const U = to(f, f), G = U > 0 ? to(p, f) / U : 0, Z = k(G, 0, 1), ie = Math.abs((G - Z) * this.edgeProps[S].len);
6377
6377
  yo(g, b, P), ls(x, A[1], -A[0]);
6378
- const K = ie + Math.abs(io(g, x));
6378
+ const K = ie + Math.abs(to(g, x));
6379
6379
  K < n && (t = S, n = K, s = Z);
6380
6380
  }
6381
6381
  return [t, s];
@@ -6395,9 +6395,9 @@ ${JSON.stringify(s, null, 2)}
6395
6395
  }
6396
6396
  distSqLines(e, t, n, s) {
6397
6397
  const c = kn(ti(), t, e), h = kn(ti(), s, n), f = kn(ti(), e, n), p = ji(c, c), g = ji(c, h), x = ji(c, f), b = ji(h, h), w = ji(h, f), S = p * b - g * g;
6398
- if (S === 0) return Sc(ga(c, n, s, ji(f, h) / ji(h, h)), e);
6398
+ if (S === 0) return Sc(_a(c, n, s, ji(f, h) / ji(h, h)), e);
6399
6399
  const E = (p * w - g * x) / S;
6400
- return Sc(ga(c, e, t, (g * w - x * b) / S), ga(h, n, s, E));
6400
+ return Sc(_a(c, e, t, (g * w - x * b) / S), _a(h, n, s, E));
6401
6401
  }
6402
6402
  }
6403
6403
  class fi {
@@ -6523,20 +6523,20 @@ ${JSON.stringify(s, null, 2)}
6523
6523
  }
6524
6524
  }
6525
6525
  function qi(r, e) {
6526
- for (let t = 0; t < r.length; t++) if (nn(e, r[t])) return !0;
6527
- for (let t = 0; t < e.length; t++) if (nn(r, e[t])) return !0;
6526
+ for (let t = 0; t < r.length; t++) if (rn(e, r[t])) return !0;
6527
+ for (let t = 0; t < e.length; t++) if (rn(r, e[t])) return !0;
6528
6528
  return !!bs(r, e);
6529
6529
  }
6530
6530
  function Fr(r, e, t) {
6531
- return !!nn(r, e) || !!Ko(e, r, t);
6531
+ return !!rn(r, e) || !!Ko(e, r, t);
6532
6532
  }
6533
6533
  function Mi(r, e) {
6534
- if (r.length === 1) return Ka(e, r[0]);
6534
+ if (r.length === 1) return Ya(e, r[0]);
6535
6535
  for (let t = 0; t < e.length; t++) {
6536
6536
  const n = e[t];
6537
- for (let s = 0; s < n.length; s++) if (nn(r, n[s])) return !0;
6537
+ for (let s = 0; s < n.length; s++) if (rn(r, n[s])) return !0;
6538
6538
  }
6539
- for (let t = 0; t < r.length; t++) if (Ka(e, r[t])) return !0;
6539
+ for (let t = 0; t < r.length; t++) if (Ya(e, r[t])) return !0;
6540
6540
  for (let t = 0; t < e.length; t++) if (bs(r, e[t])) return !0;
6541
6541
  return !1;
6542
6542
  }
@@ -6562,7 +6562,7 @@ ${JSON.stringify(s, null, 2)}
6562
6562
  function oa(r, e, t) {
6563
6563
  return (r.x - t.x) * (e.y - t.y) - (r.y - t.y) * (e.x - t.x);
6564
6564
  }
6565
- function Ya(r, e, t, n) {
6565
+ function Xa(r, e, t, n) {
6566
6566
  const s = oa(r, e, n), c = oa(r, e, t);
6567
6567
  if (Math.sign(s) === Math.sign(c)) return;
6568
6568
  const h = oa(t, n, r), f = h + c - s;
@@ -6580,7 +6580,7 @@ ${JSON.stringify(s, null, 2)}
6580
6580
  const s = ((r.x - e.x) * (t.x - e.x) + (r.y - e.y) * (t.y - e.y)) / n;
6581
6581
  return r.distSqr(s < 0 ? e : s > 1 ? t : t.sub(e)._mult(s)._add(e));
6582
6582
  }
6583
- function Ka(r, e) {
6583
+ function Ya(r, e) {
6584
6584
  let t, n, s, c = !1;
6585
6585
  for (let h = 0; h < r.length; h++) {
6586
6586
  t = r[h];
@@ -6588,7 +6588,7 @@ ${JSON.stringify(s, null, 2)}
6588
6588
  }
6589
6589
  return c;
6590
6590
  }
6591
- function nn(r, e) {
6591
+ function rn(r, e) {
6592
6592
  let t = !1;
6593
6593
  for (let n = 0, s = r.length - 1; n < r.length; s = n++) {
6594
6594
  const c = r[n], h = r[s];
@@ -6600,7 +6600,7 @@ ${JSON.stringify(s, null, 2)}
6600
6600
  for (const h of r) if (e <= h.x && t <= h.y && n >= h.x && s >= h.y) return !0;
6601
6601
  const c = [new ze(e, t), new ze(e, s), new ze(n, s), new ze(n, t)];
6602
6602
  if (r.length > 2) {
6603
- for (const h of c) if (nn(r, h)) return !0;
6603
+ for (const h of c) if (rn(r, h)) return !0;
6604
6604
  }
6605
6605
  for (let h = 0; h < r.length - 1; h++) if (Ts(r[h], r[h + 1], c)) return !0;
6606
6606
  return !1;
@@ -6624,7 +6624,7 @@ ${JSON.stringify(s, null, 2)}
6624
6624
  function Ru(r, e, t, n, s, c, h) {
6625
6625
  return !(Ss(r, e, n, s, c, h) || Ss(e, t, n, s, c, h) || Ss(t, r, n, s, c, h) || Ss(n, s, r, e, t, h) || Ss(s, c, r, e, t, h) || Ss(c, n, r, e, t, h));
6626
6626
  }
6627
- function Ja(r, e, t) {
6627
+ function Ka(r, e, t) {
6628
6628
  const n = e.paint.get(r).value;
6629
6629
  return n.kind === "constant" ? n.value : t.programConfigurations.get(e.id).getMaxValue(r);
6630
6630
  }
@@ -6805,13 +6805,13 @@ ${JSON.stringify(s, null, 2)}
6805
6805
  cy(f, c, s);
6806
6806
  const p = Number.MAX_VALUE, g = [-p, -p, -p], x = [p, p, p];
6807
6807
  if (h.contains(r.center)) {
6808
- for (const Q of f) en(x, x, Q), mo(g, g, Q);
6808
+ for (const Q of f) Qr(x, x, Q), mo(g, g, Q);
6809
6809
  g[2] = 0;
6810
6810
  const te = r.point, J = [te.x * s, te.y * s, 0];
6811
- return en(x, x, J), mo(g, g, J), new Xt(x, g);
6811
+ return Qr(x, x, J), mo(g, g, J), new Xt(x, g);
6812
6812
  }
6813
6813
  if (r._tileCoverLift > 0) {
6814
- for (const te of f) en(x, x, te), mo(g, g, te);
6814
+ for (const te of f) Qr(x, x, te), mo(g, g, te);
6815
6815
  return new Xt(x, g);
6816
6816
  }
6817
6817
  const b = [c[12] * s, c[13] * s, c[14] * s], w = h.getCenter(), S = k(r.center.lat, -85.051129, Se), E = k(w.lat, -85.051129, Se), A = Pe(r.center.lng), P = Le(S);
@@ -6832,8 +6832,8 @@ ${JSON.stringify(s, null, 2)}
6832
6832
  const J = tr([], te[F], te[(F + 1) % 4]);
6833
6833
  vi(J, J, 0.5), sa(ie, J, K);
6834
6834
  }
6835
- for (const te of f) en(x, x, te), mo(g, g, te);
6836
- return x[2] = Math.min(U[2], G[2]), en(x, x, ie), mo(g, g, ie), new Xt(x, g);
6835
+ for (const te of f) Qr(x, x, te), mo(g, g, te);
6836
+ return x[2] = Math.min(U[2], G[2]), Qr(x, x, ie), mo(g, g, ie), new Xt(x, g);
6837
6837
  }
6838
6838
  function Dp({ x: r, y: e, z: t }, n = !1) {
6839
6839
  const s = 1 / (1 << t), c = new se(le(r * s), e === (1 << t) - 1 && n ? -90 : xe((e + 1) * s)), h = new se(le((r + 1) * s), e === 0 && n ? 90 : xe(e * s));
@@ -6852,7 +6852,7 @@ ${JSON.stringify(s, null, 2)}
6852
6852
  }
6853
6853
  const hy = new Float64Array(16);
6854
6854
  function Dd(r) {
6855
- const e = Rp(r), t = to(hy, [e, e, e]);
6855
+ const e = Rp(r), t = eo(hy, [e, e, e]);
6856
6856
  return ln(t, t, Rs([], r.min));
6857
6857
  }
6858
6858
  function I_(r) {
@@ -6870,7 +6870,7 @@ ${JSON.stringify(s, null, 2)}
6870
6870
  }
6871
6871
  function fy(r, e, t, n, s) {
6872
6872
  const c = E_(t), h = [r, e, -t / (2 * Math.PI)], f = Ti(new Float64Array(16));
6873
- return ln(f, f, h), Dr(f, f, [c, c, c]), Bo(f, f, Ut(-s)), eo(f, f, Ut(-n)), f;
6873
+ return ln(f, f, h), Dr(f, f, [c, c, c]), Bo(f, f, Ut(-s)), Qn(f, f, Ut(-n)), f;
6874
6874
  }
6875
6875
  function aa(r) {
6876
6876
  return W(5, 6, r);
@@ -6890,7 +6890,7 @@ ${JSON.stringify(s, null, 2)}
6890
6890
  function A_(r, e) {
6891
6891
  return py(r, e) > Math.PI / 2 * 1.01;
6892
6892
  }
6893
- const my = Ut(85), bb = Math.cos(my), wb = Math.sin(my), Tb = Qn(), _y = (r) => {
6893
+ const my = Ut(85), bb = Math.cos(my), wb = Math.sin(my), Tb = po(), _y = (r) => {
6894
6894
  const e = [];
6895
6895
  return r.paint.get("circle-pitch-alignment") === "map" && e.push("PITCH_WITH_MAP"), r.paint.get("circle-pitch-scale") === "map" && e.push("SCALE_WITH_MAP"), e;
6896
6896
  };
@@ -6956,15 +6956,15 @@ ${JSON.stringify(s, null, 2)}
6956
6956
  return e;
6957
6957
  }
6958
6958
  Qe(xy, "HeatmapBucket", { omit: ["layers"] });
6959
- class Qa {
6959
+ class Ja {
6960
6960
  constructor(e, t) {
6961
6961
  Sy(this, e, 1, t);
6962
6962
  }
6963
6963
  resize(e) {
6964
- Iy(this, new Qa(e), 1);
6964
+ Iy(this, new Ja(e), 1);
6965
6965
  }
6966
6966
  clone() {
6967
- return new Qa({ width: this.width, height: this.height }, new Uint8Array(this.data));
6967
+ return new Ja({ width: this.width, height: this.height }, new Uint8Array(this.data));
6968
6968
  }
6969
6969
  static copy(e, t, n, s, c) {
6970
6970
  C_(e, t, n, s, c, 1, null);
@@ -7005,7 +7005,7 @@ ${JSON.stringify(s, null, 2)}
7005
7005
  else for (let h = 0, f = 0; h < t; h++, f += 4) c(0, f, h / (t - 1));
7006
7006
  return s;
7007
7007
  }
7008
- Qe(Qa, "AlphaImage"), Qe(Or, "RGBAImage");
7008
+ Qe(Ja, "AlphaImage"), Qe(Or, "RGBAImage");
7009
7009
  const Ab = Lt([{ name: "a_pos", components: 2, type: "Int16" }], 4), Cb = Lt([{ name: "a_road_z_offset", components: 1, type: "Float32" }], 4), Mb = Lt([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_height", components: 1, type: "Float32" }], 4), Pb = Lt([{ name: "a_pos_normal_3", components: 3, type: "Int16" }], 4);
7010
7010
  function zu(r, e, t = 2) {
7011
7011
  const n = e && e.length, s = n ? e[0] * t : r.length;
@@ -7264,7 +7264,7 @@ ${JSON.stringify(s, null, 2)}
7264
7264
  }
7265
7265
  function Ry(r, e, t = 1) {
7266
7266
  if (!r) return null;
7267
- const n = typeof r == "string" ? rn.from(r).getPrimary() : r.getPrimary(), s = typeof r == "string" ? null : r.getSecondary();
7267
+ const n = typeof r == "string" ? tn.from(r).getPrimary() : r.getPrimary(), s = typeof r == "string" ? null : r.getSecondary();
7268
7268
  for (const c of [n, s]) {
7269
7269
  if (!c) continue;
7270
7270
  const h = c.id.toString();
@@ -7472,7 +7472,7 @@ ${JSON.stringify(s, null, 2)}
7472
7472
  const f = this.computeVertexConnections(t, n, s, c.min, c.max), p = 1 / h, g = 0.5 * p, x = (Ce, Ee) => oi(Ce, t[Ee].x, t[Ee].y, n[Ee] * p), b = ti(), w = ti(), S = ti(), E = ti(), A = ti(), P = (Ce, Ee) => {
7473
7473
  const Fe = f.get(Dn.computePosHash(t[Ee])), ye = Fe.from, Ae = Fe.to;
7474
7474
  if (!ye || !Ae) return;
7475
- x(b, ye), x(w, Ee), x(S, Ae), ya(E), Nn(b, w) || (Wi(A, w, b), _i(E, A)), Nn(S, w) || (Wi(A, S, w), tr(E, E, _i(A, A)));
7475
+ x(b, ye), x(w, Ee), x(S, Ae), ga(E), Nn(b, w) || (Wi(A, w, b), _i(E, A)), Nn(S, w) || (Wi(A, S, w), tr(E, E, _i(A, A)));
7476
7476
  const De = ss(E);
7477
7477
  return De > 0 ? vi(Ce, E, 1 / De) : void 0;
7478
7478
  };
@@ -7865,15 +7865,15 @@ ${JSON.stringify(s, null, 2)}
7865
7865
  })(r[0], r[1], e[0], e[1], t[0], t[1]);
7866
7866
  return n > 0 ? -1 : n < 0 ? 1 : 0;
7867
7867
  }
7868
- function el(r, e) {
7868
+ function Qa(r, e) {
7869
7869
  const t = r.point, n = e.point;
7870
7870
  return t[0] > n[0] ? 1 : t[0] < n[0] ? -1 : t[1] !== n[1] ? t[1] > n[1] ? 1 : -1 : (function(s, c, h) {
7871
7871
  return s.left !== c.left ? s.left ? 1 : -1 : B_(h, s.otherEvent.point, c.otherEvent.point) !== 0 ? s.isBelow(c.otherEvent.point) ? -1 : 1 : !s.isSubject && c.isSubject ? 1 : -1;
7872
7872
  })(r, e, t);
7873
7873
  }
7874
- function tl(r, e, t) {
7874
+ function el(r, e, t) {
7875
7875
  const n = new Bu(e, !1, r, r.isSubject), s = new Bu(e, !0, r.otherEvent, r.isSubject);
7876
- return Es(r.point, r.otherEvent.point) && console.warn("what is that, a collapsed segment?", r), n.contourId = s.contourId = r.contourId, el(s, r.otherEvent) > 0 && (r.otherEvent.left = !0, s.left = !1), r.otherEvent.otherEvent = s, r.otherEvent = n, t.push(s), t.push(n), t;
7876
+ return Es(r.point, r.otherEvent.point) && console.warn("what is that, a collapsed segment?", r), n.contourId = s.contourId = r.contourId, Qa(s, r.otherEvent) > 0 && (r.otherEvent.left = !0, s.left = !1), r.otherEvent.otherEvent = s, r.otherEvent = n, t.push(s), t.push(n), t;
7877
7877
  }
7878
7878
  function Fp(r, e) {
7879
7879
  return r[0] * e[1] - r[1] * e[0];
@@ -7901,20 +7901,20 @@ ${JSON.stringify(s, null, 2)}
7901
7901
  return G <= 1 && Z >= 0 ? G === 1 ? [E(p, G > 0 ? G : 0, w)] : Z === 0 ? [E(p, Z < 1 ? Z : 1, w)] : [E(p, G > 0 ? G : 0, w), E(p, Z < 1 ? Z : 1, w)] : null;
7902
7902
  })(r.point, r.otherEvent.point, e.point, e.otherEvent.point), s = n ? n.length : 0;
7903
7903
  if (s === 0 || s === 1 && (Es(r.point, e.point) || Es(r.otherEvent.point, e.otherEvent.point)) || s === 2 && r.isSubject === e.isSubject) return 0;
7904
- if (s === 1) return !Es(r.point, n[0]) && !Es(r.otherEvent.point, n[0]) && tl(r, n[0], t), !Es(e.point, n[0]) && !Es(e.otherEvent.point, n[0]) && tl(e, n[0], t), 1;
7904
+ if (s === 1) return !Es(r.point, n[0]) && !Es(r.otherEvent.point, n[0]) && el(r, n[0], t), !Es(e.point, n[0]) && !Es(e.otherEvent.point, n[0]) && el(e, n[0], t), 1;
7905
7905
  const c = [];
7906
7906
  let h = !1, f = !1;
7907
- return Es(r.point, e.point) ? h = !0 : el(r, e) === 1 ? c.push(e, r) : c.push(r, e), Es(r.otherEvent.point, e.otherEvent.point) ? f = !0 : el(r.otherEvent, e.otherEvent) === 1 ? c.push(e.otherEvent, r.otherEvent) : c.push(r.otherEvent, e.otherEvent), h && f || h ? (e.type = 1, r.type = e.inOut === r.inOut ? 2 : 3, h && !f && tl(c[1].otherEvent, c[0].point, t), 2) : f ? (tl(c[0], c[1].point, t), 3) : c[0] !== c[3].otherEvent ? (tl(c[0], c[1].point, t), tl(c[1], c[2].point, t), 3) : (tl(c[0], c[1].point, t), tl(c[3].otherEvent, c[2].point, t), 3);
7907
+ return Es(r.point, e.point) ? h = !0 : Qa(r, e) === 1 ? c.push(e, r) : c.push(r, e), Es(r.otherEvent.point, e.otherEvent.point) ? f = !0 : Qa(r.otherEvent, e.otherEvent) === 1 ? c.push(e.otherEvent, r.otherEvent) : c.push(r.otherEvent, e.otherEvent), h && f || h ? (e.type = 1, r.type = e.inOut === r.inOut ? 2 : 3, h && !f && el(c[1].otherEvent, c[0].point, t), 2) : f ? (el(c[0], c[1].point, t), 3) : c[0] !== c[3].otherEvent ? (el(c[0], c[1].point, t), el(c[1], c[2].point, t), 3) : (el(c[0], c[1].point, t), el(c[3].otherEvent, c[2].point, t), 3);
7908
7908
  }
7909
7909
  function Zb(r, e) {
7910
7910
  if (r === e) return 0;
7911
- if (B_(r.point, r.otherEvent.point, e.point) !== 0 || B_(r.point, r.otherEvent.point, e.otherEvent.point) !== 0) return Es(r.point, e.point) ? r.isBelow(e.otherEvent.point) ? -1 : 1 : r.point[0] === e.point[0] ? r.point[1] < e.point[1] ? -1 : 1 : el(r, e) === 1 ? e.isAbove(r.point) ? -1 : 1 : r.isBelow(e.point) ? -1 : 1;
7911
+ if (B_(r.point, r.otherEvent.point, e.point) !== 0 || B_(r.point, r.otherEvent.point, e.otherEvent.point) !== 0) return Es(r.point, e.point) ? r.isBelow(e.otherEvent.point) ? -1 : 1 : r.point[0] === e.point[0] ? r.point[1] < e.point[1] ? -1 : 1 : Qa(r, e) === 1 ? e.isAbove(r.point) ? -1 : 1 : r.isBelow(e.point) ? -1 : 1;
7912
7912
  if (r.isSubject !== e.isSubject) return r.isSubject ? -1 : 1;
7913
7913
  {
7914
7914
  let t = r.point, n = e.point;
7915
7915
  if (t[0] === n[0] && t[1] === n[1]) return t = r.otherEvent.point, n = e.otherEvent.point, t[0] === n[0] && t[1] === n[1] ? 0 : (r.contourId ?? 0) > (e.contourId ?? 0) ? 1 : -1;
7916
7916
  }
7917
- return el(r, e) === 1 ? 1 : -1;
7917
+ return Qa(r, e) === 1 ? 1 : -1;
7918
7918
  }
7919
7919
  class qb {
7920
7920
  constructor() {
@@ -7954,7 +7954,7 @@ ${JSON.stringify(s, null, 2)}
7954
7954
  let h, f, p, g, x, b;
7955
7955
  for (h = 0, f = r.length - 1; h < f; h++) {
7956
7956
  if (p = r[h], g = r[h + 1], x = new Bu(p, !1, void 0, e), b = new Bu(g, !1, x, e), x.otherEvent = b, p[0] === g[0] && p[1] === g[1]) continue;
7957
- x.contourId = b.contourId = t, c || (x.isExteriorRing = !1, b.isExteriorRing = !1), el(x, b) > 0 ? b.left = !0 : x.left = !0;
7957
+ x.contourId = b.contourId = t, c || (x.isExteriorRing = !1, b.isExteriorRing = !1), Qa(x, b) > 0 ? b.left = !0 : x.left = !0;
7958
7958
  const w = p[0], S = p[1];
7959
7959
  s[0] = Ny(s[0], w), s[1] = Ny(s[1], S), s[2] = ky(s[2], w), s[3] = ky(s[3], S), n.push(x), n.push(b);
7960
7960
  }
@@ -7969,7 +7969,7 @@ ${JSON.stringify(s, null, 2)}
7969
7969
  })(n, s, t);
7970
7970
  if (c) return c === Bp ? null : c;
7971
7971
  const h = [1 / 0, 1 / 0, -1 / 0, -1 / 0], f = [1 / 0, 1 / 0, -1 / 0, -1 / 0], p = (function(w, S, E, A, P) {
7972
- const R = new zl(void 0, el);
7972
+ const R = new zl(void 0, Qa);
7973
7973
  let B, F, U, G, Z, ie;
7974
7974
  for (U = 0, G = w.length; U < G; U++) for (B = w[U], Z = 0, ie = B.length; Z < ie; Z++) F = Z === 0, F && Op++, Vy(B[Z], !0, Op, R, E, F);
7975
7975
  for (U = 0, G = S.length; U < G; U++) for (B = S[U], Z = 0, ie = B.length; Z < ie; Z++) F = Z === 0, P === 2 && (F = !1), F && Op++, Vy(B[Z], !1, Op, R, A, F);
@@ -8003,7 +8003,7 @@ ${JSON.stringify(s, null, 2)}
8003
8003
  const K = [];
8004
8004
  for (U = 0, G = B.length; U < G; U++) F = B[U], (F.left && F.inResult || !F.left && F.otherEvent.inResult) && K.push(F);
8005
8005
  let te = !1;
8006
- for (; !te; ) for (te = !0, U = 0, G = K.length; U < G; U++) U + 1 < G && el(K[U], K[U + 1]) === 1 && (Z = K[U], K[U] = K[U + 1], K[U + 1] = Z, te = !1);
8006
+ for (; !te; ) for (te = !0, U = 0, G = K.length; U < G; U++) U + 1 < G && Qa(K[U], K[U + 1]) === 1 && (Z = K[U], K[U] = K[U + 1], K[U + 1] = Z, te = !1);
8007
8007
  for (U = 0, G = K.length; U < G; U++) F = K[U], F.otherPos = U;
8008
8008
  for (U = 0, G = K.length; U < G; U++) F = K[U], F.left || (ie = F.otherPos, F.otherPos = F.otherEvent.otherPos, F.otherEvent.otherPos = ie);
8009
8009
  return K;
@@ -8426,7 +8426,7 @@ ${JSON.stringify(s, null, 2)}
8426
8426
  const n = e.indices, s = e.vertices;
8427
8427
  for (let c = 0; c < t.length; c++) {
8428
8428
  const h = t[c];
8429
- if (nn([s[n[3 * h + 0]], s[n[3 * h + 1]], s[n[3 * h + 2]]], r)) return !0;
8429
+ if (rn([s[n[3 * h + 0]], s[n[3 * h + 1]], s[n[3 * h + 2]]], r)) return !0;
8430
8430
  }
8431
8431
  return !1;
8432
8432
  }
@@ -9124,7 +9124,7 @@ ${JSON.stringify(s, null, 2)}
9124
9124
  for (; e.valid(); ) {
9125
9125
  const [g, x] = e.get();
9126
9126
  for (let b = 0; b < r.length - 1; b++) {
9127
- const w = r[b], S = r[b + 1], E = Ya(w, S, g, x);
9127
+ const w = r[b], S = r[b + 1], E = Xa(w, S, g, x);
9128
9128
  if (E) {
9129
9129
  const [A] = E, P = new ze(mt(w.x, S.x, A), mt(w.y, S.y, A));
9130
9130
  c.push({ t: b + A, distance: 0, point: P });
@@ -9478,7 +9478,7 @@ ${JSON.stringify(s, null, 2)}
9478
9478
  const t = await (async function(n, s) {
9479
9479
  if (s && s.aborted) throw new DOMException("Aborted", "AbortError");
9480
9480
  return new Promise((c, h) => {
9481
- const f = Ia(n, (p, g) => {
9481
+ const f = Sa(n, (p, g) => {
9482
9482
  p ? h(p) : c(g);
9483
9483
  });
9484
9484
  s && s.addEventListener("abort", () => {
@@ -9557,12 +9557,12 @@ ${JSON.stringify(s, null, 2)}
9557
9557
  const T1 = Lt([{ name: "a_pos_3f", components: 3, type: "Float32" }]), S1 = Lt([{ name: "a_color_3f", components: 3, type: "Float32" }]), I1 = Lt([{ name: "a_color_4f", components: 4, type: "Float32" }]), E1 = Lt([{ name: "a_uv_2f", components: 2, type: "Float32" }]), A1 = Lt([{ name: "a_normal_3f", components: 3, type: "Float32" }]), C1 = Lt([{ name: "a_normal_matrix0", components: 4, type: "Float32" }, { name: "a_normal_matrix1", components: 4, type: "Float32" }, { name: "a_normal_matrix2", components: 4, type: "Float32" }, { name: "a_normal_matrix3", components: 4, type: "Float32" }]), M1 = Lt([{ name: "a_pbr", components: 4, type: "Uint16" }, { name: "a_heightBasedEmissiveStrength", components: 3, type: "Float32" }]);
9558
9558
  function zx(r, e) {
9559
9559
  const t = Jp(r.projection, r.zoom, r.width, r.height), n = (function(c, h, f, p, g) {
9560
- const x = new se(f.lng - 180 * il, f.lat), b = new se(f.lng + 180 * il, f.lat), w = c.project(x.lng, x.lat), S = c.project(b.lng, b.lat), E = -Math.atan2(S.y - w.y, S.x - w.x), A = tt.fromLngLat(f);
9561
- A.y = k(A.y, -1 + il, 1 - il);
9560
+ const x = new se(f.lng - 180 * tl, f.lat), b = new se(f.lng + 180 * tl, f.lat), w = c.project(x.lng, x.lat), S = c.project(b.lng, b.lat), E = -Math.atan2(S.y - w.y, S.x - w.x), A = tt.fromLngLat(f);
9561
+ A.y = k(A.y, -1 + tl, 1 - tl);
9562
9562
  const P = A.toLngLat(), R = c.project(P.lng, P.lat), B = tt.fromLngLat(P);
9563
- B.x += il;
9563
+ B.x += tl;
9564
9564
  const F = B.toLngLat(), U = c.project(F.lng, F.lat), G = Ox(U.x - R.x, U.y - R.y, E), Z = tt.fromLngLat(P);
9565
- Z.y += il;
9565
+ Z.y += tl;
9566
9566
  const ie = Z.toLngLat(), K = c.project(ie.lng, ie.lat), te = Ox(K.x - R.x, K.y - R.y, E), J = Math.abs(G.x) / Math.abs(te.y), Q = Ti([]);
9567
9567
  ko(Q, Q, -E * (1 - (g ? 0 : p)));
9568
9568
  const ve = Ti([]);
@@ -9580,9 +9580,9 @@ ${JSON.stringify(s, null, 2)}
9580
9580
  const h = Math.min(s, Math.max(t, n)), f = Math.log2(h / 1024);
9581
9581
  return W(c[0] + f, c[1] + f, e);
9582
9582
  }
9583
- const il = 1 / 4e4;
9583
+ const tl = 1 / 4e4;
9584
9584
  function tg(r, e) {
9585
- const t = k(e.lat, -85.051129, Se), n = new se(e.lng - 180 * il, t), s = new se(e.lng + 180 * il, t), c = r.project(n.lng, t), h = r.project(s.lng, t), f = tt.fromLngLat(n), p = tt.fromLngLat(s), g = h.x - c.x, x = h.y - c.y, b = p.x - f.x, w = p.y - f.y, S = Math.sqrt((b * b + w * w) / (g * g + x * x));
9585
+ const t = k(e.lat, -85.051129, Se), n = new se(e.lng - 180 * tl, t), s = new se(e.lng + 180 * tl, t), c = r.project(n.lng, t), h = r.project(s.lng, t), f = tt.fromLngLat(n), p = tt.fromLngLat(s), g = h.x - c.x, x = h.y - c.y, b = p.x - f.x, w = p.y - f.y, S = Math.sqrt((b * b + w * w) / (g * g + x * x));
9586
9586
  return Math.log2(S);
9587
9587
  }
9588
9588
  function Ox(r, e, t) {
@@ -9590,7 +9590,7 @@ ${JSON.stringify(s, null, 2)}
9590
9590
  return { x: r * n - e * s, y: r * s + e * n };
9591
9591
  }
9592
9592
  function Bx(r, e, t) {
9593
- Ti(r), ko(r, r, Ut(e[2])), Bo(r, r, Ut(e[0])), eo(r, r, Ut(e[1])), Dr(r, r, t), xi(r, r, [1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
9593
+ Ti(r), ko(r, r, Ut(e[2])), Bo(r, r, Ut(e[0])), Qn(r, r, Ut(e[1])), Dr(r, r, t), xi(r, r, [1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
9594
9594
  }
9595
9595
  function Qp(r, e, t, n, s, c, h, f) {
9596
9596
  const p = [t[0] - e[0], t[1] - e[1], 0], g = [n[0] - e[0], n[1] - e[1], 0];
@@ -9623,7 +9623,7 @@ ${JSON.stringify(s, null, 2)}
9623
9623
  if (n > 0) {
9624
9624
  const c = (function(h, f) {
9625
9625
  const p = f.worldSize, g = fe(1, 0) * p * Ne(f.center.lat, f.zoom) / E_(p), x = fe(1, f.center.lat) * p, b = Ti([]);
9626
- eo(b, b, Ut(f.center.lng)), Bo(b, b, Ut(f.center.lat)), ln(b, b, [0, 0, $]), Dr(b, b, [g, g, g * x]);
9626
+ Qn(b, b, Ut(f.center.lng)), Bo(b, b, Ut(f.center.lat)), ln(b, b, [0, 0, $]), Dr(b, b, [g, g, g * x]);
9627
9627
  const w = f.point;
9628
9628
  return ln(b, b, [-w.x, -w.y, 0]), xi(b, b, h), xi(b, f.globeMatrix, b);
9629
9629
  })(r, e);
@@ -9717,7 +9717,7 @@ ${JSON.stringify(s, null, 2)}
9717
9717
  const n = this.nodeOverrides.get(e.name);
9718
9718
  if (n !== void 0) {
9719
9719
  const h = [];
9720
- c = n.orientation, Ti(s = h), eo(s, s, Ut(c[1])), ko(s, s, Ut(c[2])), Bo(s, s, Ut(c[0])), xi(e.globalMatrix, e.globalMatrix, h);
9720
+ c = n.orientation, Ti(s = h), Qn(s, s, Ut(c[1])), ko(s, s, Ut(c[2])), Bo(s, s, Ut(c[0])), xi(e.globalMatrix, e.globalMatrix, h);
9721
9721
  }
9722
9722
  var s, c;
9723
9723
  if (e.meshes) for (const h of e.meshes) {
@@ -10025,7 +10025,7 @@ ${JSON.stringify(s, null, 2)}
10025
10025
  constructor(e) {
10026
10026
  this.layoutFacadePaintArray = null, this.layoutFacadeDataArray = null, this.layoutFacadeVerticalRangeArray = null, this.segmentsBucket = new ai(), this.entranceBloom = new ag();
10027
10027
  const t = 66560;
10028
- this.layoutVertexArray = new Hn(), this.layoutVertexArray.reserve(t), this.layoutNormalArray = new Co(), this.layoutNormalArray.reserve(t), this.layoutCentroidArray = new Co(), this.layoutCentroidArray.reserve(t), this.layoutColorArray = new Wn(), this.layoutColorArray.reserve(t), this.layoutFloodLightDataArray = new Cu(), this.layoutFloodLightDataArray.reserve(t), this.layoutAOArray = new Mu(), this.layoutAOArray.reserve(t), this.indexArray = new Bi(), this.indexArray.reserve(66560), this.indexArrayForConflation = new Bi(), this.segmentsBucket = new ai(), this.entranceBloom = new ag(), e && (this.layoutFacadePaintArray = new Wn(), this.layoutFacadeDataArray = new Xa(), this.layoutFacadeVerticalRangeArray = new Wn());
10028
+ this.layoutVertexArray = new Hn(), this.layoutVertexArray.reserve(t), this.layoutNormalArray = new Co(), this.layoutNormalArray.reserve(t), this.layoutCentroidArray = new Co(), this.layoutCentroidArray.reserve(t), this.layoutColorArray = new Wn(), this.layoutColorArray.reserve(t), this.layoutFloodLightDataArray = new Cu(), this.layoutFloodLightDataArray.reserve(t), this.layoutAOArray = new Mu(), this.layoutAOArray.reserve(t), this.indexArray = new Bi(), this.indexArray.reserve(66560), this.indexArrayForConflation = new Bi(), this.segmentsBucket = new ai(), this.entranceBloom = new ag(), e && (this.layoutFacadePaintArray = new Wn(), this.layoutFacadeDataArray = new Wa(), this.layoutFacadeVerticalRangeArray = new Wn());
10029
10029
  }
10030
10030
  reserve(e, t, n) {
10031
10031
  this.layoutVertexArray.reserveForAdditional(e), this.layoutCentroidArray.reserveForAdditional(e), this.layoutFloodLightDataArray.reserveForAdditional(e), this.layoutNormalArray.reserveForAdditional(e), this.layoutAOArray.reserveForAdditional(e), this.layoutColorArray.reserveForAdditional(e), this.indexArray.reserveForAdditional(t), n && (this.layoutFacadePaintArray.reserveForAdditional(e), this.layoutFacadeDataArray.reserveForAdditional(e), this.layoutFacadeVerticalRangeArray.reserveForAdditional(e));
@@ -10160,13 +10160,13 @@ ${JSON.stringify(s, null, 2)}
10160
10160
  if (vr.length > 0) {
10161
10161
  const Vi = [], cr = Array(vr.length + 1);
10162
10162
  cr[0] = 0;
10163
- for (let fo = 0; fo < vr.length; fo++) {
10164
- const zn = vr[fo];
10163
+ for (let ho = 0; ho < vr.length; ho++) {
10164
+ const zn = vr[ho];
10165
10165
  for (let Fn = 0; Fn < zn.length; Fn++) {
10166
10166
  const On = zn[zn.length - Fn - 1];
10167
10167
  ki.x = Math.min(ki.x, On.x), ki.y = Math.min(ki.y, On.y), Ki.x = Math.max(Ki.x, On.x), Ki.y = Math.max(Ki.y, On.y), Ni.x += On.x, Ni.y += On.y, Mr++, Vi.push(On.x), Vi.push(On.y);
10168
10168
  }
10169
- cr[fo + 1] = Vi.length;
10169
+ cr[ho + 1] = Vi.length;
10170
10170
  }
10171
10171
  Ci[Dt] = { id: R.id ? R.id : 0, height: Ie, minHeight: Te, sourceId: 0, roofType: ve, coordinates: Vi, ringIndices: cr };
10172
10172
  }
@@ -10189,7 +10189,7 @@ ${JSON.stringify(s, null, 2)}
10189
10189
  const Ur = Mt.layoutVertexArray.length, xr = Ur + Hr;
10190
10190
  Mt.layoutVertexArray.resize(xr), Mt.layoutCentroidArray.resize(xr), Mt.layoutNormalArray.resize(xr), Mt.layoutAOArray.resize(xr), Mt.layoutColorArray.resize(xr), Mt.layoutFloodLightDataArray.resize(xr), nt && (Mt.layoutFacadePaintArray.resize(xr), Mt.layoutFacadeDataArray.resize(xr), Mt.layoutFacadeVerticalRangeArray.resize(xr));
10191
10191
  const Rm = Mt.indexArray.length;
10192
- let Ku = 0, on = Ur;
10192
+ let Ku = 0, nn = Ur;
10193
10193
  for (const Dt of mr.meshes) {
10194
10194
  let vr, Vi;
10195
10195
  if (Dt.buildingPart === 1) vr = ye, Vi = Ae;
@@ -10202,8 +10202,8 @@ ${JSON.stringify(s, null, 2)}
10202
10202
  if (Vi = k(Vi, 0, 1), Dt.buildingPart === 3) {
10203
10203
  const sr = new Array();
10204
10204
  for (let Hi = 0; Hi < Dt.positions.length; Hi += 12) {
10205
- const Xr = Dt.positions[Hi + 0], sn = Dt.positions[Hi + 1], Fo = Dt.positions[Hi + 3], zm = Dt.positions[Hi + 4], Fm = Dt.positions[Hi + 2], Qg = Dt.positions[Hi + 8] - Fm, Om = 1, ns = Fo - Xr, gf = zm - sn, ih = Math.hypot(ns, gf);
10206
- sr.push({ pos: [Xr + 0.5 * ns, sn + 0.5 * gf, Fm], normal: [gf / ih, -ns / ih, 0], width: ih, height: Qg, depth: Om, points: [Xr, sn, Fo, zm] });
10205
+ const Xr = Dt.positions[Hi + 0], on = Dt.positions[Hi + 1], Fo = Dt.positions[Hi + 3], zm = Dt.positions[Hi + 4], Fm = Dt.positions[Hi + 2], Qg = Dt.positions[Hi + 8] - Fm, Om = 1, ns = Fo - Xr, gf = zm - on, ih = Math.hypot(ns, gf);
10206
+ sr.push({ pos: [Xr + 0.5 * ns, on + 0.5 * gf, Fm], normal: [gf / ih, -ns / ih, 0], width: ih, height: Qg, depth: Om, points: [Xr, on, Fo, zm] });
10207
10207
  }
10208
10208
  const er = Mt.entranceBloom.segmentsBucket.prepareSegment(10 * sr.length, Mt.entranceBloom.layoutVertexArray, Mt.entranceBloom.indexArray), ur = Mt.entranceBloom.layoutVertexArray.length;
10209
10209
  Pr = Mt.entranceBloom.indexArray.length, Vx(sr, 0.5 / this.tileToMeter, Mt.entranceBloom.indexArray, Mt.entranceBloom.layoutVertexArray, Mt.entranceBloom.layoutAttenuationArray);
@@ -10212,33 +10212,33 @@ ${JSON.stringify(s, null, 2)}
10212
10212
  for (let Hi = 0; Hi < zo; Hi++) Mt.entranceBloom.layoutColorArray.emplaceBack(255 * $e.r << 8 | 255 * $e.g, 255 * $e.b << 8 | 51 * qe);
10213
10213
  er.vertexLength += zo, er.primitiveLength += Di, Wr = { part: Dt.buildingPart, vertexOffset: ur, vertexLength: zo };
10214
10214
  }
10215
- Mt.layoutVertexArray.float32.set(Dt.positions, 3 * on);
10215
+ Mt.layoutVertexArray.float32.set(Dt.positions, 3 * nn);
10216
10216
  const cr = Dt.positions.length / 3;
10217
10217
  for (let sr = 0; sr < cr; ++sr) {
10218
10218
  const er = 3 * sr;
10219
10219
  Ku = Math.max(Ku, Dt.positions[er + 2]);
10220
- const ur = Dt.normals[er + 1] * rm, zo = Dt.normals[er + 2] * rm, Hi = 3 * (on + sr);
10220
+ const ur = Dt.normals[er + 1] * rm, zo = Dt.normals[er + 2] * rm, Hi = 3 * (nn + sr);
10221
10221
  Mt.layoutNormalArray.int16[Hi] = Dt.normals[er] * rm, Mt.layoutNormalArray.int16[Hi + 1] = ur, Mt.layoutNormalArray.int16[Hi + 2] = zo;
10222
10222
  const Xr = Dt.ao[sr];
10223
- Mt.layoutAOArray.uint8[on + sr] = 255 * Xr;
10224
- const sn = 1 + (Xr - 1) * Ee, Fo = 255 * vr.b * sn << 8 | 255 * Vi;
10225
- Mt.layoutColorArray.uint16[2 * (on + sr)] = 255 * vr.r * sn << 8 | 255 * vr.g * sn, Mt.layoutColorArray.uint16[2 * (on + sr) + 1] = Fo;
10223
+ Mt.layoutAOArray.uint8[nn + sr] = 255 * Xr;
10224
+ const on = 1 + (Xr - 1) * Ee, Fo = 255 * vr.b * on << 8 | 255 * Vi;
10225
+ Mt.layoutColorArray.uint16[2 * (nn + sr)] = 255 * vr.r * on << 8 | 255 * vr.g * on, Mt.layoutColorArray.uint16[2 * (nn + sr) + 1] = Fo;
10226
10226
  }
10227
- const fo = Math.min(8191, Math.max(0, Math.floor(Ni.x))), zn = Math.min(8191, Math.max(0, Math.floor(Ni.y))), Fn = Math.floor(Ie), On = 20, Lo = 4 * fo + Math.min(3, Math.round((Ki.x - ki.x) * this.tileToMeter / On)), Lm = 4 * zn + Math.min(3, Math.round((Ki.y - ki.y) * this.tileToMeter / On));
10227
+ const ho = Math.min(8191, Math.max(0, Math.floor(Ni.x))), zn = Math.min(8191, Math.max(0, Math.floor(Ni.y))), Fn = Math.floor(Ie), On = 20, Lo = 4 * ho + Math.min(3, Math.round((Ki.x - ki.x) * this.tileToMeter / On)), Lm = 4 * zn + Math.min(3, Math.round((Ki.y - ki.y) * this.tileToMeter / On));
10228
10228
  for (let sr = 0; sr < cr; ++sr) {
10229
- const er = 3 * (on + sr);
10229
+ const er = 3 * (nn + sr);
10230
10230
  Mt.layoutCentroidArray.int16[er] = Lo, Mt.layoutCentroidArray.int16[er + 1] = Lm, Mt.layoutCentroidArray.int16[er + 2] = Fn;
10231
10231
  }
10232
- if (Mt.layoutFloodLightDataArray.int16.fill(Dt.buildingPart === 0 ? Ye : 0, on, on + cr), nt) {
10232
+ if (Mt.layoutFloodLightDataArray.int16.fill(Dt.buildingPart === 0 ? Ye : 0, nn, nn + cr), nt) {
10233
10233
  const sr = 255 * Ue.r << 8 | 255 * Ue.g, er = 255 * Ue.b << 8 | 255 * Je;
10234
10234
  for (let ur = 0; ur < cr; ++ur) {
10235
- const zo = 2 * (on + ur);
10235
+ const zo = 2 * (nn + ur);
10236
10236
  Mt.layoutFacadePaintArray.uint16[zo] = sr, Mt.layoutFacadePaintArray.uint16[zo + 1] = er;
10237
10237
  }
10238
10238
  for (let ur = 0; ur < cr; ++ur) if (Dt.isFauxFacade[ur]) {
10239
10239
  const zo = Math.min(65535, Math.floor(Dt.uv[2 * ur] * mr.outerRingLength));
10240
- Mt.layoutFacadeDataArray.emplace(on + ur, 1 | zo, ui, Ai, pr), Mt.layoutFacadeVerticalRangeArray.emplace(on + ur, Wt, Vt);
10241
- } else Mt.layoutFacadeDataArray.emplace(on + ur, 0, 0, 0, 0), Mt.layoutFacadeVerticalRangeArray.emplace(on + ur, 0, 0);
10240
+ Mt.layoutFacadeDataArray.emplace(nn + ur, 1 | zo, ui, Ai, pr), Mt.layoutFacadeVerticalRangeArray.emplace(nn + ur, Wt, Vt);
10241
+ } else Mt.layoutFacadeDataArray.emplace(nn + ur, 0, 0, 0, 0), Mt.layoutFacadeVerticalRangeArray.emplace(nn + ur, 0, 0);
10242
10242
  }
10243
10243
  const rs = $i.vertexLength, eh = Dt.indices.length / 3, th = Mt.indexArray.length;
10244
10244
  Mt.indexArray.resize(th + eh);
@@ -10246,19 +10246,19 @@ ${JSON.stringify(s, null, 2)}
10246
10246
  const er = 3 * sr, ur = 3 * th + er;
10247
10247
  Mt.indexArray.uint16[ur] = rs + Dt.indices[er], Mt.indexArray.uint16[ur + 1] = rs + Dt.indices[er + 1], Mt.indexArray.uint16[ur + 2] = rs + Dt.indices[er + 2];
10248
10248
  }
10249
- Dt.buildingPart !== 1 && Dt.buildingPart !== 0 && Dt.buildingPart !== 2 && Dt.buildingPart !== 3 || yr.push({ part: Dt.buildingPart, vertexOffset: on, vertexLength: Dt.positions.length / 3 }), on += cr, $i.vertexLength += cr, $i.primitiveLength += Dt.indices.length / 3;
10249
+ Dt.buildingPart !== 1 && Dt.buildingPart !== 0 && Dt.buildingPart !== 2 && Dt.buildingPart !== 3 || yr.push({ part: Dt.buildingPart, vertexOffset: nn, vertexLength: Dt.positions.length / 3 }), nn += cr, $i.vertexLength += cr, $i.primitiveLength += Dt.indices.length / 3;
10250
10250
  }
10251
10251
  this.maxHeight = Math.max(this.maxHeight, Ku);
10252
- const Jg = Mt.indexArray.length - Rm, Ju = this.footprintsIndices.length, da = this.footprintsVertices.length, fa = [], uo = new ze(1 / 0, 1 / 0), ho = new ze(-1 / 0, -1 / 0), Tc = this.groundEffect.vertexArray.length;
10252
+ const Jg = Mt.indexArray.length - Rm, Ju = this.footprintsIndices.length, da = this.footprintsVertices.length, fa = [], co = new ze(1 / 0, 1 / 0), uo = new ze(-1 / 0, -1 / 0), Tc = this.groundEffect.vertexArray.length;
10253
10253
  for (const Dt of mr.modifiedPolygonRings) {
10254
10254
  const vr = [], Vi = new ze(1 / 0, 1 / 0), cr = new ze(-1 / 0, -1 / 0);
10255
- for (let fo = 0; fo < Dt.length; fo += 2) {
10256
- const zn = Dt.length - fo - 2;
10255
+ for (let ho = 0; ho < Dt.length; ho += 2) {
10256
+ const zn = Dt.length - ho - 2;
10257
10257
  Vi.x = Math.min(Vi.x, Dt[zn]), Vi.y = Math.min(Vi.y, Dt[zn + 1]), cr.x = Math.max(cr.x, Dt[zn]), cr.y = Math.max(cr.y, Dt[zn + 1]);
10258
10258
  const Fn = new ze(Dt[zn], Dt[zn + 1]);
10259
10259
  vr.push(Fn), fa.push(Fn.x, Fn.y), this.footprintsVertices.emplaceBack(Fn.x, Fn.y);
10260
10260
  }
10261
- uo.x = Math.min(uo.x, Vi.x), uo.y = Math.min(uo.y, Vi.y), ho.x = Math.max(ho.x, cr.x), ho.y = Math.max(ho.y, cr.y), this.groundEffect.addData(vr, [Vi, cr], Fe);
10261
+ co.x = Math.min(co.x, Vi.x), co.y = Math.min(co.y, Vi.y), uo.x = Math.max(uo.x, cr.x), uo.y = Math.max(uo.y, cr.y), this.groundEffect.addData(vr, [Vi, cr], Fe);
10262
10262
  }
10263
10263
  const Qu = this.groundEffect.vertexArray.length - Tc;
10264
10264
  this.groundEffect.groundRadiusArray.reserveForAdditional(Qu);
@@ -10266,8 +10266,8 @@ ${JSON.stringify(s, null, 2)}
10266
10266
  (ki.x < 0 || Ki.x > He || ki.y < 0 || Ki.y > He) && this.featuresOnBorder.push({ featureId: R.id, footprintIndex: this.footprints.length });
10267
10267
  {
10268
10268
  const Dt = zu(fa, null, 2);
10269
- this.footprintsIndices.resize(this.footprintsIndices.length + Dt.length), this.footprintsIndices.uint16.set(Dt, Ju), this.buildingIds.add(Z ?? R.id), this.footprintsMin.x = Math.min(this.footprintsMin.x, uo.x), this.footprintsMin.y = Math.min(this.footprintsMin.y, uo.y), this.footprintsMax.x = Math.max(this.footprintsMax.x, ho.x), this.footprintsMax.y = Math.max(this.footprintsMax.y, ho.y);
10270
- const vr = { footprintVertexOffset: da, footprintVertexLength: this.footprintsVertices.length - da, footprintIndexOffset: Ju, footprintIndexLength: this.footprintsIndices.length - Ju, min: uo, max: ho, hiddenFlags: 0, indicesOffset: Rm, indicesLength: Jg, bloomIndicesOffset: Pr, bloomIndicesLength: Di, groundEffectVertexOffset: Tc, groundEffectVertexLength: Qu, hasFauxFacade: nt, height: Ku, promoteId: B, feature: ie, parts: yr, buildingBloom: Wr }, Vi = this.footprints.length;
10269
+ this.footprintsIndices.resize(this.footprintsIndices.length + Dt.length), this.footprintsIndices.uint16.set(Dt, Ju), this.buildingIds.add(Z ?? R.id), this.footprintsMin.x = Math.min(this.footprintsMin.x, co.x), this.footprintsMin.y = Math.min(this.footprintsMin.y, co.y), this.footprintsMax.x = Math.max(this.footprintsMax.x, uo.x), this.footprintsMax.y = Math.max(this.footprintsMax.y, uo.y);
10270
+ const vr = { footprintVertexOffset: da, footprintVertexLength: this.footprintsVertices.length - da, footprintIndexOffset: Ju, footprintIndexLength: this.footprintsIndices.length - Ju, min: co, max: uo, hiddenFlags: 0, indicesOffset: Rm, indicesLength: Jg, bloomIndicesOffset: Pr, bloomIndicesLength: Di, groundEffectVertexOffset: Tc, groundEffectVertexLength: Qu, hasFauxFacade: nt, height: Ku, promoteId: B, feature: ie, parts: yr, buildingBloom: Wr }, Vi = this.footprints.length;
10271
10271
  R.id !== void 0 && this.featureFootprintLookup.set(R.id, Vi), S(Z, Vi), this.footprints.push(vr);
10272
10272
  }
10273
10273
  this.programConfigurations.populatePaintArrays(Mt.layoutVertexArray.length, R, F, {}, t.availableImages, n, t.brightness), this.groundEffect.addPaintPropertiesData(R, F, {}, t.availableImages, n, t.brightness), t.featureIndex.insert(R, K, F, U, this.index, Ur);
@@ -10422,7 +10422,7 @@ ${JSON.stringify(s, null, 2)}
10422
10422
  const X1 = Lt([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }, { name: "a_linesofar", components: 1, type: "Float32" }], 4), Y1 = Lt([{ name: "a_z_offset_width", components: 3, type: "Float32" }], 4), K1 = Lt([{ name: "a_elevation_ground_scale", components: 1, type: "Float32" }], 4), { members: J1 } = X1, Q1 = Lt([{ name: "a_packed", components: 3, type: "Float32" }]), { members: ew } = Q1, tw = Lt([{ name: "a_pattern_data", components: 3, type: "Float32" }]), { members: iw } = tw;
10423
10423
  class Hx {
10424
10424
  constructor(e, t) {
10425
- this.width = e, this.height = t, this.nextRow = 0, this.image = new Qa({ width: e, height: t }), this.positions = {}, this.uploaded = !1;
10425
+ this.width = e, this.height = t, this.nextRow = 0, this.image = new Ja({ width: e, height: t }), this.positions = {}, this.uploaded = !1;
10426
10426
  }
10427
10427
  getDash(e, t) {
10428
10428
  const n = this.getKey(e, t);
@@ -10897,7 +10897,7 @@ ${JSON.stringify(s, null, 2)}
10897
10897
  return e.kind !== "constant" || e.value;
10898
10898
  }
10899
10899
  let ug;
10900
- const iv = () => ug || (ug = { layout: Wx || (Wx = new bi({ "line-cap": new ke(ue.layout_line["line-cap"]), "line-join": new ke(ue.layout_line["line-join"]), "line-miter-limit": new Ge(ue.layout_line["line-miter-limit"]), "line-round-limit": new Ge(ue.layout_line["line-round-limit"]), "line-sort-key": new ke(ue.layout_line["line-sort-key"]), "line-z-offset": new ke(ue.layout_line["line-z-offset"]), "line-elevation-reference": new Ge(ue.layout_line["line-elevation-reference"]), "line-cross-slope": new Ge(ue.layout_line["line-cross-slope"]), visibility: new Ge(ue.layout_line.visibility), "line-width-unit": new Ge(ue.layout_line["line-width-unit"]), "line-elevation-ground-scale": new ke(ue.layout_line["line-elevation-ground-scale"]) })), paint: Xx || (Xx = new bi({ "line-opacity": new ke(ue.paint_line["line-opacity"]), "line-color": new ke(ue.paint_line["line-color"]), "line-translate": new Ge(ue.paint_line["line-translate"]), "line-translate-anchor": new Ge(ue.paint_line["line-translate-anchor"]), "line-width": new ke(ue.paint_line["line-width"]), "line-gap-width": new ke(ue.paint_line["line-gap-width"]), "line-offset": new ke(ue.paint_line["line-offset"]), "line-blur": new ke(ue.paint_line["line-blur"]), "line-dasharray": new ke(ue.paint_line["line-dasharray"]), "line-pattern": new ke(ue.paint_line["line-pattern"]), "line-pattern-cross-fade": new Ge(ue.paint_line["line-pattern-cross-fade"]), "line-gradient": new Ha(ue.paint_line["line-gradient"]), "line-trim-offset": new Ge(ue.paint_line["line-trim-offset"]), "line-trim-fade-range": new Ge(ue.paint_line["line-trim-fade-range"]), "line-trim-color": new Ge(ue.paint_line["line-trim-color"]), "line-emissive-strength": new ke(ue.paint_line["line-emissive-strength"]), "line-border-width": new ke(ue.paint_line["line-border-width"]), "line-border-color": new ke(ue.paint_line["line-border-color"]), "line-occlusion-opacity": new Ge(ue.paint_line["line-occlusion-opacity"]), "line-blend-mode": new Ge(ue.paint_line["line-blend-mode"]), "line-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "line-gradient-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "line-trim-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "line-border-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, ug);
10900
+ const iv = () => ug || (ug = { layout: Wx || (Wx = new bi({ "line-cap": new ke(ue.layout_line["line-cap"]), "line-join": new ke(ue.layout_line["line-join"]), "line-miter-limit": new Ge(ue.layout_line["line-miter-limit"]), "line-round-limit": new Ge(ue.layout_line["line-round-limit"]), "line-sort-key": new ke(ue.layout_line["line-sort-key"]), "line-z-offset": new ke(ue.layout_line["line-z-offset"]), "line-elevation-reference": new Ge(ue.layout_line["line-elevation-reference"]), "line-cross-slope": new Ge(ue.layout_line["line-cross-slope"]), visibility: new Ge(ue.layout_line.visibility), "line-width-unit": new Ge(ue.layout_line["line-width-unit"]), "line-elevation-ground-scale": new ke(ue.layout_line["line-elevation-ground-scale"]) })), paint: Xx || (Xx = new bi({ "line-opacity": new ke(ue.paint_line["line-opacity"]), "line-color": new ke(ue.paint_line["line-color"]), "line-translate": new Ge(ue.paint_line["line-translate"]), "line-translate-anchor": new Ge(ue.paint_line["line-translate-anchor"]), "line-width": new ke(ue.paint_line["line-width"]), "line-gap-width": new ke(ue.paint_line["line-gap-width"]), "line-offset": new ke(ue.paint_line["line-offset"]), "line-blur": new ke(ue.paint_line["line-blur"]), "line-dasharray": new ke(ue.paint_line["line-dasharray"]), "line-pattern": new ke(ue.paint_line["line-pattern"]), "line-pattern-cross-fade": new Ge(ue.paint_line["line-pattern-cross-fade"]), "line-gradient": new $a(ue.paint_line["line-gradient"]), "line-trim-offset": new Ge(ue.paint_line["line-trim-offset"]), "line-trim-fade-range": new Ge(ue.paint_line["line-trim-fade-range"]), "line-trim-color": new Ge(ue.paint_line["line-trim-color"]), "line-emissive-strength": new ke(ue.paint_line["line-emissive-strength"]), "line-border-width": new ke(ue.paint_line["line-border-width"]), "line-border-color": new ke(ue.paint_line["line-border-color"]), "line-occlusion-opacity": new Ge(ue.paint_line["line-occlusion-opacity"]), "line-blend-mode": new Ge(ue.paint_line["line-blend-mode"]), "line-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "line-gradient-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "line-trim-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "line-border-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, ug);
10901
10901
  class sw extends ke {
10902
10902
  possiblyEvaluate(e, t) {
10903
10903
  return t = new Ht(Math.floor(t.zoom), { now: t.now, fadeDuration: t.fadeDuration, transition: t.transition, worldview: t.worldview }), super.possiblyEvaluate(e, t);
@@ -11522,7 +11522,7 @@ ${JSON.stringify(s, null, 2)}
11522
11522
  function Pw(r, e, t) {
11523
11523
  if (r === 3) {
11524
11524
  const { id: n, bitmap: s, width: c, height: h, left: f, top: p, advance: g } = t.readMessage(Dw, {});
11525
- e.glyphs.push({ id: n, bitmap: new Qa({ width: c + 6, height: h + 6 }, s), metrics: { width: c, height: h, left: f, top: p, advance: g } });
11525
+ e.glyphs.push({ id: n, bitmap: new Ja({ width: c + 6, height: h + 6 }, s), metrics: { width: c, height: h, left: f, top: p, advance: g } });
11526
11526
  } else r === 4 ? e.ascender = t.readSVarint() : r === 5 && (e.descender = t.readSVarint());
11527
11527
  }
11528
11528
  function Dw(r, e, t) {
@@ -12111,7 +12111,7 @@ ${JSON.stringify(s, null, 2)}
12111
12111
  const h = `${e}:${t}`;
12112
12112
  if (this.cachedRanges.has(h)) {
12113
12113
  const p = this.cachedRanges.get(h);
12114
- return void tn.frame(() => c(null, p));
12114
+ return void en.frame(() => c(null, p));
12115
12115
  }
12116
12116
  const f = this.pendingRequests.get(h);
12117
12117
  f ? f.push(c) : (this.pendingRequests.set(h, [c]), Qd.loadGlyphRange(e, t, n, s, (p, g) => {
@@ -12129,7 +12129,7 @@ ${JSON.stringify(s, null, 2)}
12129
12129
  }
12130
12130
  Qd.loadGlyphRange = function(r, e, t, n, s) {
12131
12131
  const c = 256 * e, h = c + 255, f = n.transformRequest(n.normalizeGlyphsURL(t).replace("{fontstack}", r).replace("{range}", `${c}-${h}`), xl.Glyphs);
12132
- Ea(f, (p, g) => {
12132
+ Ia(f, (p, g) => {
12133
12133
  if (p) s(p);
12134
12134
  else if (g) {
12135
12135
  const x = {}, b = (function(w) {
@@ -12232,7 +12232,7 @@ ${JSON.stringify(s, null, 2)}
12232
12232
  const h = c.fontWeight;
12233
12233
  if (this.localGlyphs[h][n]) return this.localGlyphs[h][n];
12234
12234
  const f = String.fromCodePoint(n), { data: p, width: g, height: x, glyphWidth: b, glyphHeight: w, glyphLeft: S, glyphTop: E, glyphAdvance: A } = c.draw(f);
12235
- return this.localGlyphs[h][n] = { id: n, bitmap: new Qa({ width: g, height: x }, p), metrics: { width: b / 2, height: w / 2, left: S / 2, top: E / 2 - 27, advance: A / 2, localGlyph: !0 } };
12235
+ return this.localGlyphs[h][n] = { id: n, bitmap: new Ja({ width: g, height: x }, p), metrics: { width: b / 2, height: w / 2, left: S / 2, top: E / 2 - 27, advance: A / 2, localGlyph: !0 } };
12236
12236
  }
12237
12237
  }
12238
12238
  function Cv(r, e) {
@@ -12428,7 +12428,7 @@ ${JSON.stringify(s, null, 2)}
12428
12428
  }
12429
12429
  }
12430
12430
  const Vw = Object.keys, Ag = Number.POSITIVE_INFINITY, Uw = Math.sqrt(2);
12431
- function rl(r, e, t, n, s, c) {
12431
+ function il(r, e, t, n, s, c) {
12432
12432
  const h = yg(r) && r.collisionPadding ? r.collisionPadding : [0, 0, 0, 0], f = { top: r.top - h[1], bottom: r.bottom + h[3], left: r.left - h[0], right: r.right + h[2], scaled: !1 };
12433
12433
  return n !== void 0 && (function(p, g) {
12434
12434
  p.top *= g, p.bottom *= g, p.left *= g, p.right *= g, p.scaled = !0;
@@ -12506,9 +12506,9 @@ ${JSON.stringify(s, null, 2)}
12506
12506
  const J = ie.get("icon-rotate").evaluate(K, {}, te), Q = ie.get("text-rotate").evaluate(K, {}, te), [ve, Te] = ie.get("icon-size-scale-range");
12507
12507
  return { baseIconRotate: J, baseTextRotate: Q, iconScaleFactor: k(1, ve, Te) };
12508
12508
  })(n, s, c);
12509
- e && (R.iconBBox = rl(e, R.iconBBox, F), t) && (R.iconVerticalBBox = rl(t, R.iconVerticalBBox, F + 90));
12509
+ e && (R.iconBBox = il(e, R.iconBBox, F), t) && (R.iconVerticalBBox = il(t, R.iconVerticalBBox, F + 90));
12510
12510
  const Z = pm(b.horizontal);
12511
- Z && (B.textBBox = rl(Z, B.textBBox, U, 1, S)), b.vertical && (B.textVerticalBBox = rl(b.vertical, B.textVerticalBBox, U + 90, 1, S));
12511
+ Z && (B.textBBox = il(Z, B.textBBox, U, 1, S)), b.vertical && (B.textVerticalBBox = il(b.vertical, B.textVerticalBBox, U + 90, 1, S));
12512
12512
  for (const ie of P) ie.hasIconLayoutProperties() && Gw(R, r, A, ie, s, c, f, F, h, p, e, g, G, x, E), ie.hasTextLayoutProperties() && Zw(B, A, ie, s, c, S, U, w, Z, b.vertical);
12513
12513
  return { iconBBox: R.iconBBox, iconVerticalBBox: R.iconVerticalBBox, textBBox: B.textBBox, textVerticalBBox: B.textVerticalBBox };
12514
12514
  }
@@ -12525,7 +12525,7 @@ ${JSON.stringify(s, null, 2)}
12525
12525
  return Ie;
12526
12526
  })(e, t, n, s, c, b, w, E) : x && (U = x.imagePrimary), U && (B = am(U, null, A, S), e.allowVerticalPlacement && (F = am(U, null, A, S)));
12527
12527
  const G = p > 0 ? R / p : 1;
12528
- B && (r.iconBBox = rl(B, r.iconBBox, P, G !== 1 ? G : void 0)), F && (r.iconVerticalBBox = rl(F, r.iconVerticalBBox, P + 90, G !== 1 ? G : void 0));
12528
+ B && (r.iconBBox = il(B, r.iconBBox, P, G !== 1 ? G : void 0)), F && (r.iconVerticalBBox = il(F, r.iconVerticalBBox, P + 90, G !== 1 ? G : void 0));
12529
12529
  }
12530
12530
  function Lv(r, e, t, n, s, c, h, f) {
12531
12531
  const p = r.hasLayoutProperty("icon-offset") ? e.getAppearanceValueAndResolveTokens(r, "icon-offset", t, n, []) : null, g = p && Array.isArray(p) ? p : s, x = r.hasLayoutProperty("icon-rotate") ? e.getAppearanceValueAndResolveTokens(r, "icon-rotate", t, n, []) : null, b = typeof x == "number" ? x : c, w = r.hasLayoutProperty("icon-size") ? e.getAppearanceValueAndResolveTokens(r, "icon-size", t, n, []) : null;
@@ -12533,7 +12533,7 @@ ${JSON.stringify(s, null, 2)}
12533
12533
  }
12534
12534
  function Zw(r, e, t, n, s, c, h, f, p, g) {
12535
12535
  const { appearanceTextOffset: x, appearanceTextRotate: b, appearanceTextSize: w } = zv(t, e, n, s, c, h, f), S = w / f, E = [(x[0] - c[0]) * S, (x[1] - c[1]) * S], A = E[0] !== 0 || E[1] !== 0;
12536
- p && (r.textBBox = rl(p, r.textBBox, b, S, x, A ? E : void 0)), g && (r.textVerticalBBox = rl(g, r.textVerticalBBox, b + 90, S, x, A ? E : void 0));
12536
+ p && (r.textBBox = il(p, r.textBBox, b, S, x, A ? E : void 0)), g && (r.textVerticalBBox = il(g, r.textVerticalBBox, b + 90, S, x, A ? E : void 0));
12537
12537
  }
12538
12538
  function zv(r, e, t, n, s, c, h) {
12539
12539
  const f = r.hasLayoutProperty("text-offset") ? e.getAppearanceValueAndResolveTokens(r, "text-offset", t, n, []) : null, p = f && Array.isArray(f) ? [f[0] * fr, f[1] * fr] : s, g = r.hasLayoutProperty("text-rotate") ? e.getAppearanceValueAndResolveTokens(r, "text-rotate", t, n, []) : null, x = typeof g == "number" ? g : c, b = r.hasLayoutProperty("text-size") ? e.getAppearanceValueAndResolveTokens(r, "text-size", t, n, []) : null;
@@ -12624,9 +12624,9 @@ ${JSON.stringify(s, null, 2)}
12624
12624
  const { x: nt, y: wt, z: Bt } = S.projectTilePoint(Ye.x, Ye.y, it);
12625
12625
  ct = { anchor: new ha(nt, wt, Bt, 0, void 0), up: S.upVector(it, Ye.x, Ye.y) };
12626
12626
  }
12627
- (function(nt, wt, Bt, Tt, kt, Ct, Pi, Wt, Vt, ui, Ai, pr, Ci, ki, Ki, Ni, Mr, mr, Mt, Hr, $i, yr, Wr, Pr, Di, Ur, xr, Rm, Ku, on, Jg, Ju) {
12627
+ (function(nt, wt, Bt, Tt, kt, Ct, Pi, Wt, Vt, ui, Ai, pr, Ci, ki, Ki, Ni, Mr, mr, Mt, Hr, $i, yr, Wr, Pr, Di, Ur, xr, Rm, Ku, nn, Jg, Ju) {
12628
12628
  const da = nt.addToLineVertexArray(wt, Tt);
12629
- let fa, uo, ho, Tc, Qu, Dt, vr, Vi = 0, cr = 0, fo = 0, zn = 0, Fn = -1, On = -1;
12629
+ let fa, co, uo, Tc, Qu, Dt, vr, Vi = 0, cr = 0, ho = 0, zn = 0, Fn = -1, On = -1;
12630
12630
  const Lo = {};
12631
12631
  let Lm = hs("");
12632
12632
  const rs = Bt ? Bt.anchor : wt, eh = Rm !== "none";
@@ -12640,12 +12640,12 @@ ${JSON.stringify(s, null, 2)}
12640
12640
  if (Ki) Dt = Dg(Hi), Wt && (vr = Dg(Wt));
12641
12641
  else {
12642
12642
  const Xr = Vt.layout.get("text-rotate").evaluate($i, {}, Di) + 90;
12643
- ho = mm(ui, rs, wt, Ai, pr, Ci, Hi, ki, Xr, Ni, Ju), Wt && (Tc = mm(ui, rs, wt, Ai, pr, Ci, Wt, mr, Xr, null, Jg));
12643
+ uo = mm(ui, rs, wt, Ai, pr, Ci, Hi, ki, Xr, Ni, Ju), Wt && (Tc = mm(ui, rs, wt, Ai, pr, Ci, Wt, mr, Xr, null, Jg));
12644
12644
  }
12645
12645
  }
12646
12646
  if (Ct) {
12647
- const Hi = Vt.layout.get("icon-rotate").evaluate($i, {}, Di), Xr = Eg(Ct, Hi, Wr, eh, yr.iconScaleFactor), sn = Wt ? Eg(Wt, Hi, Wr, eh, yr.iconScaleFactor) : void 0;
12648
- uo = mm(ui, rs, wt, Ai, pr, Ci, Ct, mr, Hi, null, on);
12647
+ const Hi = Vt.layout.get("icon-rotate").evaluate($i, {}, Di), Xr = Eg(Ct, Hi, Wr, eh, yr.iconScaleFactor), on = Wt ? Eg(Wt, Hi, Wr, eh, yr.iconScaleFactor) : void 0;
12648
+ co = mm(ui, rs, wt, Ai, pr, Ci, Ct, mr, Hi, null, nn);
12649
12649
  const Fo = (function(ns, gf, ih, c2, u2, ob, sb, h2, M2, ey) {
12650
12650
  const ab = ns.layers[0], lb = ab.appearances;
12651
12651
  let rh = gf.length;
@@ -12662,23 +12662,23 @@ ${JSON.stringify(s, null, 2)}
12662
12662
  }
12663
12663
  }
12664
12664
  return rh;
12665
- })(nt, Xr, sn, Vt.layout, Vt._unevaluatedLayout, $i, Di, nt.iconAtlasPositions, 0, Pr);
12665
+ })(nt, Xr, on, Vt.layout, Vt._unevaluatedLayout, $i, Di, nt.iconAtlasPositions, 0, Pr);
12666
12666
  Vi = 4 * Fo;
12667
12667
  const zm = Vt.layout.get("icon-size").evaluate($i, {}, Di, Pr), Fm = yr.compositeIconSizes ? yr.compositeIconSizes[0].evaluate($i, {}, Di, Pr) : 0, Qg = yr.compositeIconSizes ? yr.compositeIconSizes[1].evaluate($i, {}, Di, Pr) : 0, Om = Pg(nt.layerIds[0], nt.iconSizeData, zm, yr.iconScaleFactor, Fm, Qg);
12668
- nt.addSymbols(nt.icon, Xr, Om, Hr, Mt, $i, void 0, Bt, wt, da.lineStartIndex, da.lineLength, -1, Pr, Di, Ur, xr, nt.symbolInstances.length, Fo), Fn = nt.icon.placedSymbolArray.length - 1, sn && (cr = 4 * Fo, nt.addSymbols(nt.icon, sn, Om, Hr, Mt, $i, Ln.vertical, Bt, wt, da.lineStartIndex, da.lineLength, -1, Pr, Di, Ur, xr, nt.symbolInstances.length, Fo), On = nt.icon.placedSymbolArray.length - 1);
12668
+ nt.addSymbols(nt.icon, Xr, Om, Hr, Mt, $i, void 0, Bt, wt, da.lineStartIndex, da.lineLength, -1, Pr, Di, Ur, xr, nt.symbolInstances.length, Fo), Fn = nt.icon.placedSymbolArray.length - 1, on && (cr = 4 * Fo, nt.addSymbols(nt.icon, on, Om, Hr, Mt, $i, Ln.vertical, Bt, wt, da.lineStartIndex, da.lineLength, -1, Pr, Di, Ur, xr, nt.symbolInstances.length, Fo), On = nt.icon.placedSymbolArray.length - 1);
12669
12669
  }
12670
12670
  for (const Hi in kt.horizontal) {
12671
- const Xr = Hi, sn = kt.horizontal[Xr];
12672
- fa || (Lm = hs(sn.text), Ki ? Qu = Dg(sn) : fa = mm(ui, rs, wt, Ai, pr, Ci, sn, ki, Vt.layout.get("text-rotate").evaluate($i, {}, Di), Ni, Ju));
12673
- const Fo = sn.positionedLines.length === 1;
12674
- if (fo += Nv(nt, Bt, wt, sn, Pi, Vt, Ki, $i, Ni, da, kt.vertical ? Ln.horizontal : Ln.horizontalOnly, Fo ? Vw(kt.horizontal) : [Xr], Lo, Fn, yr, Pr, Di, nt.symbolInstances.length, Ur), Fo) break;
12671
+ const Xr = Hi, on = kt.horizontal[Xr];
12672
+ fa || (Lm = hs(on.text), Ki ? Qu = Dg(on) : fa = mm(ui, rs, wt, Ai, pr, Ci, on, ki, Vt.layout.get("text-rotate").evaluate($i, {}, Di), Ni, Ju));
12673
+ const Fo = on.positionedLines.length === 1;
12674
+ if (ho += Nv(nt, Bt, wt, on, Pi, Vt, Ki, $i, Ni, da, kt.vertical ? Ln.horizontal : Ln.horizontalOnly, Fo ? Vw(kt.horizontal) : [Xr], Lo, Fn, yr, Pr, Di, nt.symbolInstances.length, Ur), Fo) break;
12675
12675
  }
12676
12676
  kt.vertical && (zn += Nv(nt, Bt, wt, kt.vertical, Pi, Vt, Ki, $i, Ni, da, Ln.vertical, ["vertical"], Lo, On, yr, Pr, Di, nt.symbolInstances.length, Ur));
12677
12677
  let er = -1;
12678
12678
  const ur = (Hi, Xr) => Hi ? Math.max(Hi, Xr) : Xr;
12679
12679
  er = ur(Qu, er), er = ur(Dt, er), er = ur(vr, er);
12680
12680
  const zo = er > -1 ? 1 : 0;
12681
- nt.glyphOffsetArray.length >= 65535 && lt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), $i.sortKey !== void 0 && nt.addToSortKeyRanges(nt.symbolInstances.length, $i.sortKey), nt.symbolInstances.emplaceBack(wt.x, wt.y, rs.x, rs.y, rs.z, Lo.right >= 0 ? Lo.right : -1, Lo.center >= 0 ? Lo.center : -1, Lo.left >= 0 ? Lo.left : -1, Lo.vertical >= 0 ? Lo.vertical : -1, Fn, On, Lm, fa !== void 0 ? fa : nt.collisionBoxArray.length, fa !== void 0 ? fa + 1 : nt.collisionBoxArray.length, ho !== void 0 ? ho : nt.collisionBoxArray.length, ho !== void 0 ? ho + 1 : nt.collisionBoxArray.length, uo !== void 0 ? uo : nt.collisionBoxArray.length, uo !== void 0 ? uo + 1 : nt.collisionBoxArray.length, Tc || nt.collisionBoxArray.length, Tc ? Tc + 1 : nt.collisionBoxArray.length, Ai, fo, zn, Vi, cr, zo, 0, th, sr, er, 0, eh ? 1 : 0, Ku);
12681
+ nt.glyphOffsetArray.length >= 65535 && lt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), $i.sortKey !== void 0 && nt.addToSortKeyRanges(nt.symbolInstances.length, $i.sortKey), nt.symbolInstances.emplaceBack(wt.x, wt.y, rs.x, rs.y, rs.z, Lo.right >= 0 ? Lo.right : -1, Lo.center >= 0 ? Lo.center : -1, Lo.left >= 0 ? Lo.left : -1, Lo.vertical >= 0 ? Lo.vertical : -1, Fn, On, Lm, fa !== void 0 ? fa : nt.collisionBoxArray.length, fa !== void 0 ? fa + 1 : nt.collisionBoxArray.length, uo !== void 0 ? uo : nt.collisionBoxArray.length, uo !== void 0 ? uo + 1 : nt.collisionBoxArray.length, co !== void 0 ? co : nt.collisionBoxArray.length, co !== void 0 ? co + 1 : nt.collisionBoxArray.length, Tc || nt.collisionBoxArray.length, Tc ? Tc + 1 : nt.collisionBoxArray.length, Ai, ho, zn, Vi, cr, zo, 0, th, sr, er, 0, eh ? 1 : 0, Ku);
12682
12682
  })(r, Ye, ct, je, t, n, c, s, r.layers[0], r.collisionBoxArray, e.index, e.sourceLayerIndex, r.index, Fe, B, g, 0, ye, De, R, e, h, x, b, w, E, A, P, $e, U, G, Z);
12683
12683
  };
12684
12684
  if (F === "line") for (const je of Wp(e.geometry, 0, 0, He, He)) {
@@ -12766,7 +12766,7 @@ ${JSON.stringify(s, null, 2)}
12766
12766
  return new ze(((e - n) * r.scale - r.x) * He, (t * r.scale - r.y) * He);
12767
12767
  }
12768
12768
  const Yw = Ti(new Float32Array(16));
12769
- class nl {
12769
+ class rl {
12770
12770
  constructor(e) {
12771
12771
  this.spec = e, this.name = e.name, this.wrap = !1, this.requiresDraping = !1, this.supportsWorldCopies = !1, this.supportsTerrain = !1, this.supportsFog = !1, this.supportsFreeCamera = !1, this.zAxisUnit = "meters", this.isReprojectedInTileSpace = !0, this.unsupportedLayers = ["custom"], this.center = [0, 0], this.range = [3.5, 7];
12772
12772
  }
@@ -12827,7 +12827,7 @@ ${JSON.stringify(s, null, 2)}
12827
12827
  return { metersToTile: 1 };
12828
12828
  }
12829
12829
  }
12830
- class Kw extends nl {
12830
+ class Kw extends rl {
12831
12831
  constructor(e) {
12832
12832
  super(e), this.range = [4, 7], this.center = e.center || [-96, 37.5];
12833
12833
  const [t, n] = this.parallels = e.parallels || [29.5, 45.5], s = Math.sin(Ut(t));
@@ -12848,7 +12848,7 @@ ${JSON.stringify(s, null, 2)}
12848
12848
  }
12849
12849
  }
12850
12850
  const rf = 1.340264, nf = -0.081106, of = 893e-6, sf = 3796e-6, _m = Math.sqrt(3) / 2;
12851
- class Jw extends nl {
12851
+ class Jw extends rl {
12852
12852
  project(e, t) {
12853
12853
  t = t / 180 * Math.PI, e = e / 180 * Math.PI;
12854
12854
  const n = Math.asin(_m * Math.sin(t)), s = n * n, c = s * s * s;
@@ -12862,7 +12862,7 @@ ${JSON.stringify(s, null, 2)}
12862
12862
  return new se(p, g);
12863
12863
  }
12864
12864
  }
12865
- class Qw extends nl {
12865
+ class Qw extends rl {
12866
12866
  constructor(e) {
12867
12867
  super(e), this.wrap = !0, this.supportsWorldCopies = !0;
12868
12868
  }
@@ -12878,7 +12878,7 @@ ${JSON.stringify(s, null, 2)}
12878
12878
  function gm(r) {
12879
12879
  return Math.tan((Zu + r) / 2);
12880
12880
  }
12881
- class eT extends nl {
12881
+ class eT extends rl {
12882
12882
  constructor(e) {
12883
12883
  super(e), this.center = e.center || [0, 30];
12884
12884
  const [t, n] = this.parallels = e.parallels || [30, 30];
@@ -12904,7 +12904,7 @@ ${JSON.stringify(s, null, 2)}
12904
12904
  return new se(g, this.southernCenter ? -x : x);
12905
12905
  }
12906
12906
  }
12907
- class jv extends nl {
12907
+ class jv extends rl {
12908
12908
  constructor(e) {
12909
12909
  super(e), this.wrap = !0, this.supportsWorldCopies = !0, this.supportsTerrain = !0, this.supportsFog = !0, this.supportsFreeCamera = !0, this.isReprojectedInTileSpace = !1, this.unsupportedLayers = [], this.range = null;
12910
12910
  }
@@ -12917,7 +12917,7 @@ ${JSON.stringify(s, null, 2)}
12917
12917
  }
12918
12918
  }
12919
12919
  const Gv = Ut(Se);
12920
- class tT extends nl {
12920
+ class tT extends rl {
12921
12921
  project(e, t) {
12922
12922
  const n = (t = Ut(t)) * t, s = n * n;
12923
12923
  return { x: 0.5 * ((e = Ut(e)) * (0.8707 - 0.131979 * n + s * (s * (3971e-6 * n - 1529e-6 * s) - 0.013791)) / Math.PI + 0.5), y: 1 - 0.5 * (t * (1.007226 + n * (0.015085 + s * (0.028874 * n - 0.044475 - 5916e-6 * s))) / Math.PI + 1), z: 0 };
@@ -12936,7 +12936,7 @@ ${JSON.stringify(s, null, 2)}
12936
12936
  }
12937
12937
  }
12938
12938
  const Zv = Ut(Se);
12939
- class iT extends nl {
12939
+ class iT extends rl {
12940
12940
  project(e, t) {
12941
12941
  t = Ut(t), e = Ut(e);
12942
12942
  const n = Math.cos(t), s = 2 / Math.PI, c = Math.acos(n * Math.cos(e / 2)), h = Math.sin(c) / c, f = 0.5 * (e * s + 2 * n * Math.sin(e / 2) / h) || 0, p = 0.5 * (t + Math.sin(t) / h) || 0;
@@ -12953,7 +12953,7 @@ ${JSON.stringify(s, null, 2)}
12953
12953
  return new se(br(n), br(s));
12954
12954
  }
12955
12955
  }
12956
- class qv extends nl {
12956
+ class qv extends rl {
12957
12957
  constructor(e) {
12958
12958
  super(e), this.center = e.center || [0, 0], this.parallels = e.parallels || [0, 0], this.cosPhi = Math.max(0.01, Math.cos(Ut(this.parallels[0]))), this.scale = 1 / (2 * Math.max(Math.PI * this.cosPhi, 1 / this.cosPhi)), this.wrap = !0, this.supportsWorldCopies = !0;
12959
12959
  }
@@ -12993,7 +12993,7 @@ ${JSON.stringify(s, null, 2)}
12993
12993
  }
12994
12994
  createInversionMatrix(e, t) {
12995
12995
  const { center: n } = e, s = Dd(Is(t));
12996
- return eo(s, s, Ut(n.lng)), Bo(s, s, Ut(n.lat)), Dr(s, s, [e._pixelsPerMercatorPixel, e._pixelsPerMercatorPixel, 1]), Float32Array.from(s);
12996
+ return Qn(s, s, Ut(n.lng)), Bo(s, s, Ut(n.lat)), Dr(s, s, [e._pixelsPerMercatorPixel, e._pixelsPerMercatorPixel, 1]), Float32Array.from(s);
12997
12997
  }
12998
12998
  pointCoordinate(e, t, n, s) {
12999
12999
  return ay(e, t, n, !0) || new tt(0, 0);
@@ -13063,7 +13063,7 @@ ${JSON.stringify(s, null, 2)}
13063
13063
  const n = e.map((s) => (function(c) {
13064
13064
  if (!c.condition) return { featureDependent: !1, stateDependent: !1, zoomDependent: !1, pitchDependent: !1, brightnessDependent: !1, worldviewDependent: !1 };
13065
13065
  const h = c.condition.expression;
13066
- return { featureDependent: !Hs(h), stateDependent: !Ba(h), zoomDependent: !So(h, ["zoom"]), pitchDependent: !So(h, ["pitch"]), brightnessDependent: !So(h, ["brightness", "measure-light"]), worldviewDependent: !So(h, ["worldview"]) };
13066
+ return { featureDependent: !Hs(h), stateDependent: !Oa(h), zoomDependent: !So(h, ["zoom"]), pitchDependent: !So(h, ["pitch"]), brightnessDependent: !So(h, ["brightness", "measure-light"]), worldviewDependent: !So(h, ["worldview"]) };
13067
13067
  })(s));
13068
13068
  this.anyFeatureDependent = n.some((s) => s.featureDependent), this.anyStateDependent = n.some((s) => s.stateDependent);
13069
13069
  }
@@ -13210,7 +13210,7 @@ ${JSON.stringify(s, null, 2)}
13210
13210
  return !jp(this.activeReplacements, n) && (this.activeReplacements = n, !0);
13211
13211
  }
13212
13212
  getResolvedImageFromTokens(e) {
13213
- return typeof e == "string" ? rn.build(e) : e;
13213
+ return typeof e == "string" ? tn.build(e) : e;
13214
13214
  }
13215
13215
  populate(e, t, n, s) {
13216
13216
  const c = this.layers[0], h = c.layout, f = this.projection.name === "globe", p = h.get("text-font"), g = h.get("text-field"), x = h.get("icon-image"), [b, w] = h.get("icon-size-scale-range"), S = k(t.scaleFactor || 1, b, w), [E, A] = h.get("text-size-scale-range"), P = k(t.scaleFactor || 1, E, A), R = (g.value.kind !== "constant" || g.value.value instanceof Lr && !g.value.value.isEmpty() || g.value.value.toString().length > 0) && (p.value.kind !== "constant" || p.value.value.length > 0), B = x.value.kind !== "constant" || !!x.value.value || Object.keys(x.parameters).length > 0, F = this.hasAnyAppearanceLayoutProperty("icon-image"), U = h.get("symbol-sort-key");
@@ -13812,7 +13812,7 @@ ${JSON.stringify(s, null, 2)}
13812
13812
  getColorAdjustmentMatrix(e, t, n, s) {
13813
13813
  return this._saturation === e && this._contrast === t && this._brightnessMin === n && this._brightnessMax === s || (this._colorAdjustmentMatrix = (function(c, h, f, p) {
13814
13814
  c = Ii(c), h = di(h);
13815
- const g = Qn(), x = c / 3, b = 1 - 2 * x, w = [b, x, x, 0, x, b, x, 0, x, x, b, 0, 0, 0, 0, 1], S = 0.5 - 0.5 * h, E = p - f;
13815
+ const g = po(), x = c / 3, b = 1 - 2 * x, w = [b, x, x, 0, x, b, x, 0, x, x, b, 0, 0, 0, 0, 1], S = 0.5 - 0.5 * h, E = p - f;
13816
13816
  return xi(g, [E, 0, 0, 0, 0, E, 0, 0, 0, 0, E, 0, f, f, f, 1], [h, 0, 0, 0, 0, h, 0, 0, 0, 0, h, 0, S, S, S, 1]), xi(g, g, w), g;
13817
13817
  })(e, t, n, s), this._saturation = e, this._contrast = t, this._brightnessMin = n, this._brightnessMax = s), this._colorAdjustmentMatrix;
13818
13818
  }
@@ -13840,7 +13840,7 @@ ${JSON.stringify(s, null, 2)}
13840
13840
  if (!xm.hasPaintOverride(this.layout, e)) continue;
13841
13841
  const t = this.paint.get(e), n = new Yv(t), s = new au(n, t.property.specification, this.scope, this.options, this.layout.get("icon-image-use-theme"));
13842
13842
  let c = null;
13843
- c = t.value.kind === "constant" || t.value.kind === "source" ? new Ga("source", s) : new Xs("composite", s, t.value.zoomStops, t.value.interpolationType), this.paint._values[e] = new Qs(t.property, c, t.parameters);
13843
+ c = t.value.kind === "constant" || t.value.kind === "source" ? new ja("source", s) : new Xs("composite", s, t.value.zoomStops, t.value.interpolationType), this.paint._values[e] = new Qs(t.property, c, t.parameters);
13844
13844
  }
13845
13845
  }
13846
13846
  _handleOverridablePaintPropertyUpdate(e, t, n) {
@@ -13875,12 +13875,12 @@ ${JSON.stringify(s, null, 2)}
13875
13875
  var vm = Lt([{ name: "a_pos", type: "Int16", components: 2 }, { name: "a_texture_pos", type: "Uint16", components: 2 }]);
13876
13876
  function bm(r, e, t, n, s, c, h, f) {
13877
13877
  const p = [r, e, 1, t, n, 1, s, c, 1], g = [h, f, 1], x = os([], p), [b, w, S] = fl(g, g, x);
13878
- return Qr(p, p, [b, 0, 0, 0, w, 0, 0, 0, S]);
13878
+ return an(p, p, [b, 0, 0, 0, w, 0, 0, 0, S]);
13879
13879
  }
13880
13880
  function t0(r, e, t, n, s, c, h, f) {
13881
13881
  const p = (function(g, x, b, w, S, E, A, P) {
13882
13882
  const R = bm(0, 0, 1, 0, 1, 1, 0, 1), B = bm(g, x, b, w, S, E, A, P);
13883
- return Qr(B, B, os([], R));
13883
+ return an(B, B, os([], R));
13884
13884
  })(r, e, t, n, s, c, h, f);
13885
13885
  return [p[2] / p[8] / He, p[5] / p[8] / He];
13886
13886
  }
@@ -13892,9 +13892,9 @@ ${JSON.stringify(s, null, 2)}
13892
13892
  super(), this.id = e, this.dispatcher = n, this.coordinates = t.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.onNorthPole = !1, this.onSouthPole = !1, this.setEventedParent(s), this.options = t, this._dirty = !1;
13893
13893
  }
13894
13894
  load(e, t) {
13895
- if (this._loaded = t || !1, this.fire(new ro("dataloading", { dataType: "source" })), this.url = this.options.url, !this.url) return e && (this.coordinates = e), this._loaded = !0, void this._finishLoading();
13896
- this._imageRequest = Aa(this.map._requestManager.transformRequest(this.url, xl.Image), (n, s) => {
13897
- this._imageRequest = null, this._loaded = !0, n ? this.fire(new Ca(n)) : s && (this.image = s, this._dirty = !0, this.width = this.image.width, this.height = this.image.height, e && (this.coordinates = e), this._finishLoading());
13895
+ if (this._loaded = t || !1, this.fire(new io("dataloading", { dataType: "source" })), this.url = this.options.url, !this.url) return e && (this.coordinates = e), this._loaded = !0, void this._finishLoading();
13896
+ this._imageRequest = Ea(this.map._requestManager.transformRequest(this.url, xl.Image), (n, s) => {
13897
+ this._imageRequest = null, this._loaded = !0, n ? this.fire(new Aa(n)) : s && (this.image = s, this._dirty = !0, this.width = this.image.width, this.height = this.image.height, e && (this.coordinates = e), this._finishLoading());
13898
13898
  });
13899
13899
  }
13900
13900
  loaded() {
@@ -13908,7 +13908,7 @@ ${JSON.stringify(s, null, 2)}
13908
13908
  return this.texture = new Hd(this.map.painter.context, e.handle), this.width = e.dimensions[0], this.height = e.dimensions[1], this._dirty = !1, this._loaded = !0, this._finishLoading(), this;
13909
13909
  }
13910
13910
  _finishLoading() {
13911
- this.map && (this.setCoordinates(this.coordinates), this.fire(new ro("data", { dataType: "source", sourceDataType: "metadata" })));
13911
+ this.map && (this.setCoordinates(this.coordinates), this.fire(new io("data", { dataType: "source", sourceDataType: "metadata" })));
13912
13912
  }
13913
13913
  onAdd(e) {
13914
13914
  this.map = e, this.load();
@@ -13932,7 +13932,7 @@ ${JSON.stringify(s, null, 2)}
13932
13932
  return E > 1 && (E -= 1), new dc(w, E, Math.floor((p + x) / 2 * S));
13933
13933
  })(c), this.minzoom = this.maxzoom = this.tileID.z;
13934
13934
  }
13935
- return this.fire(new ro("data", { dataType: "source", sourceDataType: "content" })), this;
13935
+ return this.fire(new io("data", { dataType: "source", sourceDataType: "content" })), this;
13936
13936
  }
13937
13937
  _clear() {
13938
13938
  !this.texture || this.texture instanceof Hd || (this.texture.destroy(), this._dirty = !0), this.texture = null, this._boundsArray = void 0, this._unsupportedCoords = !1;
@@ -13969,7 +13969,7 @@ ${JSON.stringify(s, null, 2)}
13969
13969
  return [Fe, Ae, ye - Fe, De - Ae];
13970
13970
  })(n), G = (Ee) => [(Ee.x - R) / F, (Ee.y - B) / U], [Z, ie, K, te] = n.map(G), J = (function(Ee, Fe, ye, Ae, De, Be, Ue, Je) {
13971
13971
  const $e = bm(0, 0, 1, 0, 1, 1, 0, 1);
13972
- return Qr($e, $e, os([], bm(Ee, Fe, ye, Ae, De, Be, Ue, Je)));
13972
+ return an($e, $e, os([], bm(Ee, Fe, ye, Ae, De, Be, Ue, Je)));
13973
13973
  })(Z[0], Z[1], ie[0], ie[1], K[0], K[1], te[0], te[1]);
13974
13974
  this.elevatedGlobePerspectiveTransform = t0(Z[0], Z[1], ie[0], ie[1], K[0], K[1], te[0], te[1]);
13975
13975
  const Q = (Ee, Fe) => {
@@ -14052,7 +14052,7 @@ ${JSON.stringify(s, null, 2)}
14052
14052
  const Og = 1024, lT = (Math.pow(Og, 2) - 1) / 268170240;
14053
14053
  class r0 extends Vr {
14054
14054
  constructor(e, t, n, s) {
14055
- super(e, { layout: Qv || (Qv = new bi({ visibility: new Ge(ue.layout_raster.visibility) })), paint: e0 || (e0 = new bi({ "raster-opacity": new Ge(ue.paint_raster["raster-opacity"]), "raster-color": new Ha(ue.paint_raster["raster-color"]), "raster-color-mix": new Ge(ue.paint_raster["raster-color-mix"]), "raster-color-range": new Ge(ue.paint_raster["raster-color-range"]), "raster-hue-rotate": new Ge(ue.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new Ge(ue.paint_raster["raster-brightness-min"]), "raster-brightness-max": new Ge(ue.paint_raster["raster-brightness-max"]), "raster-saturation": new Ge(ue.paint_raster["raster-saturation"]), "raster-contrast": new Ge(ue.paint_raster["raster-contrast"]), "raster-resampling": new Ge(ue.paint_raster["raster-resampling"]), "raster-fade-duration": new Ge(ue.paint_raster["raster-fade-duration"]), "raster-emissive-strength": new Ge(ue.paint_raster["raster-emissive-strength"]), "raster-array-band": new Ge(ue.paint_raster["raster-array-band"]), "raster-elevation": new Ge(ue.paint_raster["raster-elevation"]), "raster-elevation-reference": new Ge(ue.paint_raster["raster-elevation-reference"]), "raster-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, t, n, s), this.updateColorRamp(), this._curRampRange = [NaN, NaN];
14055
+ super(e, { layout: Qv || (Qv = new bi({ visibility: new Ge(ue.layout_raster.visibility) })), paint: e0 || (e0 = new bi({ "raster-opacity": new Ge(ue.paint_raster["raster-opacity"]), "raster-color": new $a(ue.paint_raster["raster-color"]), "raster-color-mix": new Ge(ue.paint_raster["raster-color-mix"]), "raster-color-range": new Ge(ue.paint_raster["raster-color-range"]), "raster-hue-rotate": new Ge(ue.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new Ge(ue.paint_raster["raster-brightness-min"]), "raster-brightness-max": new Ge(ue.paint_raster["raster-brightness-max"]), "raster-saturation": new Ge(ue.paint_raster["raster-saturation"]), "raster-contrast": new Ge(ue.paint_raster["raster-contrast"]), "raster-resampling": new Ge(ue.paint_raster["raster-resampling"]), "raster-fade-duration": new Ge(ue.paint_raster["raster-fade-duration"]), "raster-emissive-strength": new Ge(ue.paint_raster["raster-emissive-strength"]), "raster-array-band": new Ge(ue.paint_raster["raster-array-band"]), "raster-elevation": new Ge(ue.paint_raster["raster-elevation"]), "raster-elevation-reference": new Ge(ue.paint_raster["raster-elevation-reference"]), "raster-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, t, n, s), this.updateColorRamp(), this._curRampRange = [NaN, NaN];
14056
14056
  }
14057
14057
  getProgramIds() {
14058
14058
  return ["raster"];
@@ -14084,7 +14084,7 @@ ${JSON.stringify(s, null, 2)}
14084
14084
  let n0, o0, s0, a0, l0, c0, u0;
14085
14085
  class h0 extends Vr {
14086
14086
  constructor(e, t, n, s) {
14087
- super(e, { layout: n0 || (n0 = new bi({ visibility: new Ge(ue["layout_raster-particle"].visibility) })), paint: o0 || (o0 = new bi({ "raster-particle-array-band": new Ge(ue["paint_raster-particle"]["raster-particle-array-band"]), "raster-particle-count": new Ge(ue["paint_raster-particle"]["raster-particle-count"]), "raster-particle-color": new Ha(ue["paint_raster-particle"]["raster-particle-color"]), "raster-particle-max-speed": new Ge(ue["paint_raster-particle"]["raster-particle-max-speed"]), "raster-particle-speed-factor": new Ge(ue["paint_raster-particle"]["raster-particle-speed-factor"]), "raster-particle-fade-opacity-factor": new Ge(ue["paint_raster-particle"]["raster-particle-fade-opacity-factor"]), "raster-particle-reset-rate-factor": new Ge(ue["paint_raster-particle"]["raster-particle-reset-rate-factor"]), "raster-particle-elevation": new Ge(ue["paint_raster-particle"]["raster-particle-elevation"]), "raster-particle-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, t, n, s), this._updateColorRamp(), this.lastInvalidatedAt = tn.now();
14087
+ super(e, { layout: n0 || (n0 = new bi({ visibility: new Ge(ue["layout_raster-particle"].visibility) })), paint: o0 || (o0 = new bi({ "raster-particle-array-band": new Ge(ue["paint_raster-particle"]["raster-particle-array-band"]), "raster-particle-count": new Ge(ue["paint_raster-particle"]["raster-particle-count"]), "raster-particle-color": new $a(ue["paint_raster-particle"]["raster-particle-color"]), "raster-particle-max-speed": new Ge(ue["paint_raster-particle"]["raster-particle-max-speed"]), "raster-particle-speed-factor": new Ge(ue["paint_raster-particle"]["raster-particle-speed-factor"]), "raster-particle-fade-opacity-factor": new Ge(ue["paint_raster-particle"]["raster-particle-fade-opacity-factor"]), "raster-particle-reset-rate-factor": new Ge(ue["paint_raster-particle"]["raster-particle-reset-rate-factor"]), "raster-particle-elevation": new Ge(ue["paint_raster-particle"]["raster-particle-elevation"]), "raster-particle-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, t, n, s), this._updateColorRamp(), this.lastInvalidatedAt = en.now();
14088
14088
  }
14089
14089
  _clear() {
14090
14090
  this.colorRampTexture && (this.colorRampTexture.destroy(), this.colorRampTexture = null), this.tileFramebuffer && (this.tileFramebuffer.destroy(), this.tileFramebuffer = null), this.particleFramebuffer && (this.particleFramebuffer.destroy(), this.particleFramebuffer = null);
@@ -14113,7 +14113,7 @@ ${JSON.stringify(s, null, 2)}
14113
14113
  this.colorRamp = Rd({ expression: e, evaluationKey: "rasterParticleSpeed", image: this.colorRamp, clips: [{ start: 0, end: t }], resolution: 256 }), this.colorRampTexture = null;
14114
14114
  }
14115
14115
  _invalidateAnimationState() {
14116
- this.lastInvalidatedAt = tn.now();
14116
+ this.lastInvalidatedAt = en.now();
14117
14117
  }
14118
14118
  tileCoverLift() {
14119
14119
  return this.paint.get("raster-particle-elevation");
@@ -14153,7 +14153,7 @@ ${JSON.stringify(s, null, 2)}
14153
14153
  }
14154
14154
  function Bg(r, e, t) {
14155
14155
  const n = [0, 0, 1], s = Uo([]);
14156
- return va(s, s, t ? -Ut(r) + Math.PI : Ut(r)), xa(s, s, -Ut(e)), Vo(n, n, s), _i(n, n);
14156
+ return xa(s, s, t ? -Ut(r) + Math.PI : Ut(r)), ya(s, s, -Ut(e)), Vo(n, n, s), _i(n, n);
14157
14157
  }
14158
14158
  class Tm {
14159
14159
  constructor(e, t, n, s) {
@@ -14231,7 +14231,7 @@ ${JSON.stringify(s, null, 2)}
14231
14231
  if (!c) continue;
14232
14232
  const h = this.instancesPerModel[s];
14233
14233
  if (h) {
14234
- const f = 0.5 * _a(c.aabb.max, c.aabb.min) * h.maxScale + h.maxXYTranslationDistance, p = Math.min(He, Math.max(f / this.tileToMeter, 256));
14234
+ const f = 0.5 * ma(c.aabb.max, c.aabb.min) * h.maxScale + h.maxXYTranslationDistance, p = Math.min(He, Math.max(f / this.tileToMeter, 256));
14235
14235
  n = Math.max(p, n);
14236
14236
  }
14237
14237
  }
@@ -14556,7 +14556,7 @@ ${JSON.stringify(s, null, 2)}
14556
14556
  }
14557
14557
  }
14558
14558
  }
14559
- f && (t._demTile.needsDEMTextureUpload = !0, t._dem._timestamp = tn.now());
14559
+ f && (t._demTile.needsDEMTextureUpload = !0, t._dem._timestamp = en.now());
14560
14560
  }
14561
14561
  setFilter(e) {
14562
14562
  this.filter = e ? xu(e) : null;
@@ -14595,7 +14595,7 @@ ${JSON.stringify(s, null, 2)}
14595
14595
  }
14596
14596
  }
14597
14597
  function uf(r, e) {
14598
- return r instanceof Ga && !r.isLightConstant && e;
14598
+ return r instanceof ja && !r.isLightConstant && e;
14599
14599
  }
14600
14600
  function uT(r, e, t, n, s, c, h, f) {
14601
14601
  let p = (61440 & e | (61440 & e) >> 4) >> 8, g = (3840 & e | (3840 & e) >> 4) >> 4, x = 240 & e | (240 & e) >> 4;
@@ -14680,7 +14680,7 @@ ${JSON.stringify(s, null, 2)}
14680
14680
  } catch (s) {
14681
14681
  if (s instanceof Error && s.name === "AbortError") return;
14682
14682
  const c = s instanceof Error ? s.message : "Unknown error";
14683
- this.fire(new Ca(new Error(`Could not load model ${e} from ${t.uri}: ${c}`)));
14683
+ this.fire(new Aa(new Error(`Could not load model ${e} from ${t.uri}: ${c}`)));
14684
14684
  }
14685
14685
  }
14686
14686
  async load() {
@@ -14694,7 +14694,7 @@ ${JSON.stringify(s, null, 2)}
14694
14694
  h.position = s.position != null ? new se(s.position[0], s.position[1]) : new se(0, 0), h.orientation = s.orientation != null ? s.orientation : [0, 0, 0], wc.applyModelSpecification(h, s), h.computeBoundsAndApplyParent(), this.models.push(h);
14695
14695
  } else c ? c.modelSpec = s : (this._modelsInfo.set(n, { modelSpec: s, model: null }), t.push(this.loadModel(n, s, e)));
14696
14696
  }
14697
- t.length !== 0 ? (await Promise.allSettled(t), e.aborted || this.fire(new ro("data", { dataType: "source", sourceDataType: "metadata" }))) : this.loaded() && this.fire(new ro("data", { dataType: "source", sourceDataType: "metadata" }));
14697
+ t.length !== 0 ? (await Promise.allSettled(t), e.aborted || this.fire(new io("data", { dataType: "source", sourceDataType: "metadata" }))) : this.loaded() && this.fire(new io("data", { dataType: "source", sourceDataType: "metadata" }));
14698
14698
  }
14699
14699
  static applyModelSpecification(e, t) {
14700
14700
  t.nodeOverrides && wc.convertNodeOverrides(e, t.nodeOverrides), t.materialOverrides && wc.convertMaterialOverrides(e, t.materialOverrides), t.nodeOverrideNames && (e.nodeOverrideNames = [...t.nodeOverrideNames]), t.materialOverrideNames && (e.materialOverrideNames = [...t.materialOverrideNames]), t.featureProperties && (e.featureProperties = t.featureProperties);
@@ -14806,7 +14806,7 @@ ${JSON.stringify(s, null, 2)}
14806
14806
  }
14807
14807
  queryRadius(r) {
14808
14808
  const e = r;
14809
- return Ja("circle-radius", this, e) + Ja("circle-stroke-width", this, e) + Cp(this.paint.get("circle-translate"));
14809
+ return Ka("circle-radius", this, e) + Ka("circle-stroke-width", this, e) + Cp(this.paint.get("circle-translate"));
14810
14810
  }
14811
14811
  queryIntersectsFeature(r, e, t, n, s, c, h, f) {
14812
14812
  const p = iy(this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), c.angle, r.pixelToTileUnitsFactor), g = this.paint.get("circle-radius").evaluate(e, t) + this.paint.get("circle-stroke-width").evaluate(e, t);
@@ -14830,7 +14830,7 @@ ${JSON.stringify(s, null, 2)}
14830
14830
  return new xy(r);
14831
14831
  }
14832
14832
  constructor(r, e, t, n) {
14833
- super(r, { layout: vy || (vy = new bi({ visibility: new Ge(ue.layout_heatmap.visibility) })), paint: by || (by = new bi({ "heatmap-radius": new ke(ue.paint_heatmap["heatmap-radius"]), "heatmap-weight": new ke(ue.paint_heatmap["heatmap-weight"]), "heatmap-intensity": new Ge(ue.paint_heatmap["heatmap-intensity"]), "heatmap-color": new Ha(ue.paint_heatmap["heatmap-color"]), "heatmap-opacity": new Ge(ue.paint_heatmap["heatmap-opacity"]), "heatmap-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, e, t, n), this._updateColorRamp();
14833
+ super(r, { layout: vy || (vy = new bi({ visibility: new Ge(ue.layout_heatmap.visibility) })), paint: by || (by = new bi({ "heatmap-radius": new ke(ue.paint_heatmap["heatmap-radius"]), "heatmap-weight": new ke(ue.paint_heatmap["heatmap-weight"]), "heatmap-intensity": new Ge(ue.paint_heatmap["heatmap-intensity"]), "heatmap-color": new $a(ue.paint_heatmap["heatmap-color"]), "heatmap-opacity": new Ge(ue.paint_heatmap["heatmap-opacity"]), "heatmap-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, e, t, n), this._updateColorRamp();
14834
14834
  }
14835
14835
  _handleSpecialPaintPropertyUpdate(r) {
14836
14836
  r === "heatmap-color" && this._updateColorRamp();
@@ -14845,7 +14845,7 @@ ${JSON.stringify(s, null, 2)}
14845
14845
  this.heatmapFbo && (this.heatmapFbo.destroy(), this.heatmapFbo = null), this.colorRampTexture && (this.colorRampTexture.destroy(), this.colorRampTexture = null);
14846
14846
  }
14847
14847
  queryRadius(r) {
14848
- return Ja("heatmap-radius", this, r);
14848
+ return Ka("heatmap-radius", this, r);
14849
14849
  }
14850
14850
  queryIntersectsFeature(r, e, t, n, s, c, h, f) {
14851
14851
  const p = this.paint.get("heatmap-radius").evaluate(e, t);
@@ -15030,7 +15030,7 @@ ${JSON.stringify(s, null, 2)}
15030
15030
  return { config: new C(this, { zoom: e, lut: t }), defines: n, overrideFog: !1 };
15031
15031
  }
15032
15032
  queryRadius(r) {
15033
- const e = r, t = rv(Ja("line-width", this, e), Ja("line-gap-width", this, e)), n = Ja("line-offset", this, e);
15033
+ const e = r, t = rv(Ka("line-width", this, e), Ka("line-gap-width", this, e)), n = Ka("line-offset", this, e);
15034
15034
  return t / 2 + Math.abs(n) + Cp(this.paint.get("line-translate"));
15035
15035
  }
15036
15036
  queryIntersectsFeature(r, e, t, n, s, c) {
@@ -15051,7 +15051,7 @@ ${JSON.stringify(s, null, 2)}
15051
15051
  for (let w = 0; w < x.length; w++) {
15052
15052
  const S = x[w];
15053
15053
  if (g.length >= 3) {
15054
- for (let E = 0; E < S.length; E++) if (nn(g, S[E])) return !0;
15054
+ for (let E = 0; E < S.length; E++) if (rn(g, S[E])) return !0;
15055
15055
  }
15056
15056
  if (gn(g, S, b)) return !0;
15057
15057
  }
@@ -15094,7 +15094,7 @@ ${JSON.stringify(s, null, 2)}
15094
15094
  }
15095
15095
  }, raster: r0, "raster-particle": h0, sky: class extends Vr {
15096
15096
  constructor(r, e, t, n) {
15097
- super(r, { layout: s0 || (s0 = new bi({ visibility: new Ge(ue.layout_sky.visibility) })), paint: a0 || (a0 = new bi({ "sky-type": new Ge(ue.paint_sky["sky-type"]), "sky-atmosphere-sun": new Ge(ue.paint_sky["sky-atmosphere-sun"]), "sky-atmosphere-sun-intensity": new Ge(ue.paint_sky["sky-atmosphere-sun-intensity"]), "sky-gradient-center": new Ge(ue.paint_sky["sky-gradient-center"]), "sky-gradient-radius": new Ge(ue.paint_sky["sky-gradient-radius"]), "sky-gradient": new Ha(ue.paint_sky["sky-gradient"]), "sky-atmosphere-halo-color": new Ge(ue.paint_sky["sky-atmosphere-halo-color"]), "sky-atmosphere-color": new Ge(ue.paint_sky["sky-atmosphere-color"]), "sky-opacity": new Ge(ue.paint_sky["sky-opacity"]), "sky-gradient-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "sky-atmosphere-halo-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "sky-atmosphere-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, e, t, n), this._updateColorRamp();
15097
+ super(r, { layout: s0 || (s0 = new bi({ visibility: new Ge(ue.layout_sky.visibility) })), paint: a0 || (a0 = new bi({ "sky-type": new Ge(ue.paint_sky["sky-type"]), "sky-atmosphere-sun": new Ge(ue.paint_sky["sky-atmosphere-sun"]), "sky-atmosphere-sun-intensity": new Ge(ue.paint_sky["sky-atmosphere-sun-intensity"]), "sky-gradient-center": new Ge(ue.paint_sky["sky-gradient-center"]), "sky-gradient-radius": new Ge(ue.paint_sky["sky-gradient-radius"]), "sky-gradient": new $a(ue.paint_sky["sky-gradient"]), "sky-atmosphere-halo-color": new Ge(ue.paint_sky["sky-atmosphere-halo-color"]), "sky-atmosphere-color": new Ge(ue.paint_sky["sky-atmosphere-color"]), "sky-opacity": new Ge(ue.paint_sky["sky-opacity"]), "sky-gradient-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "sky-atmosphere-halo-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }), "sky-atmosphere-color-use-theme": new ke({ type: "string", default: "default", "property-type": "data-driven" }) })) }, e, t, n), this._updateColorRamp();
15098
15098
  }
15099
15099
  _clear() {
15100
15100
  this.skyboxFbo && (this.skyboxFbo.destroy(), this.skyboxFbo = null), this.colorRampTexture && (this.colorRampTexture.destroy(), this.colorRampTexture = null), this._skyboxInvalidated = !0;
@@ -15266,7 +15266,7 @@ ${JSON.stringify(s, null, 2)}
15266
15266
  }
15267
15267
  class x0 {
15268
15268
  constructor(e, t) {
15269
- this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new Za(He, 16, 0), this.featureIndexArray = new Id(), this.promoteId = t, this.is3DTile = !1, this.serializedLayersCache = /* @__PURE__ */ new Map();
15269
+ this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new Ga(He, 16, 0), this.featureIndexArray = new Id(), this.promoteId = t, this.is3DTile = !1, this.serializedLayersCache = /* @__PURE__ */ new Map();
15270
15270
  }
15271
15271
  insert(e, t, n, s, c, h = 0, f = 0) {
15272
15272
  const p = this.featureIndexArray.length;
@@ -15446,7 +15446,7 @@ ${JSON.stringify(s, null, 2)}
15446
15446
  return t;
15447
15447
  }
15448
15448
  Qe(x0, "FeatureIndex", { omit: ["rawTileData", "sourceLayerCoder"] });
15449
- const Do = 32, Ms = 33, ol = new Uint16Array(8184);
15449
+ const Do = 32, Ms = 33, nl = new Uint16Array(8184);
15450
15450
  for (let r = 0; r < 2046; r++) {
15451
15451
  let e = r + 2, t = 0, n = 0, s = 0, c = 0, h = 0, f = 0;
15452
15452
  for (1 & e ? s = c = h = Do : t = n = f = Do; (e >>= 1) > 1; ) {
@@ -15454,9 +15454,9 @@ ${JSON.stringify(s, null, 2)}
15454
15454
  1 & e ? (s = t, c = n, t = h, n = f) : (t = s, n = c, s = h, c = f), h = g, f = x;
15455
15455
  }
15456
15456
  const p = 4 * r;
15457
- ol[p + 0] = t, ol[p + 1] = n, ol[p + 2] = s, ol[p + 3] = c;
15457
+ nl[p + 0] = t, nl[p + 1] = n, nl[p + 2] = s, nl[p + 3] = c;
15458
15458
  }
15459
- const Ps = new Uint16Array(2178), sl = new Uint8Array(1089), Im = new Uint16Array(1089);
15459
+ const Ps = new Uint16Array(2178), ol = new Uint8Array(1089), Im = new Uint16Array(1089);
15460
15460
  function w0(r) {
15461
15461
  return r === 0 ? -0.03125 : r === 32 ? 0.03125 : 0;
15462
15462
  }
@@ -15912,7 +15912,7 @@ ${JSON.stringify(s, null, 2)}
15912
15912
  const w = [];
15913
15913
  for (let S = 0; S < p * p; S++) {
15914
15914
  x(S % p, Math.floor(S / p), g, !1, w);
15915
- const E = al(w[0], w[1], c), A = al(w[2], w[1], c), P = al(w[2], w[3], c), R = al(w[0], w[3], c);
15915
+ const E = sl(w[0], w[1], c), A = sl(w[2], w[1], c), P = sl(w[2], w[3], c), R = sl(w[0], w[3], c);
15916
15916
  b.minimums.push(Math.min(E, A, P, R)), b.maximums.push(Math.max(E, A, P, R)), b.leaves.push(1);
15917
15917
  }
15918
15918
  for (f.push(b), p /= 2; p >= 1; p /= 2) {
@@ -15941,7 +15941,7 @@ ${JSON.stringify(s, null, 2)}
15941
15941
  const { idx: E, t: A, nodex: P, nodey: R, depth: B } = S.pop();
15942
15942
  if (this.leaves[E]) {
15943
15943
  G0(P, R, B, e, t, n, s, b, w);
15944
- const U = 1 << B, G = (P + 0) / U, Z = (P + 1) / U, ie = (R + 0) / U, K = (R + 1) / U, te = al(G, ie, this.dem) * f, J = al(Z, ie, this.dem) * f, Q = al(Z, K, this.dem) * f, ve = al(G, K, this.dem) * f, Te = U0(b[0], b[1], te, w[0], b[1], J, w[0], w[1], Q, c, h), Ie = U0(w[0], w[1], Q, b[0], w[1], ve, b[0], b[1], te, c, h), Ce = Math.min(Te !== null ? Te : Number.MAX_VALUE, Ie !== null ? Ie : Number.MAX_VALUE);
15944
+ const U = 1 << B, G = (P + 0) / U, Z = (P + 1) / U, ie = (R + 0) / U, K = (R + 1) / U, te = sl(G, ie, this.dem) * f, J = sl(Z, ie, this.dem) * f, Q = sl(Z, K, this.dem) * f, ve = sl(G, K, this.dem) * f, Te = U0(b[0], b[1], te, w[0], b[1], J, w[0], w[1], Q, c, h), Ie = U0(w[0], w[1], Q, b[0], w[1], ve, b[0], b[1], te, c, h), Ce = Math.min(Te !== null ? Te : Number.MAX_VALUE, Ie !== null ? Ie : Number.MAX_VALUE);
15945
15945
  if (Ce !== Number.MAX_VALUE) return Ce;
15946
15946
  {
15947
15947
  const Ee = vn([], c, h, A);
@@ -15986,7 +15986,7 @@ ${JSON.stringify(s, null, 2)}
15986
15986
  function q0(r, e, t, n, s, c) {
15987
15987
  return mt(mt(r, t, c), mt(e, n, c), s);
15988
15988
  }
15989
- function al(r, e, t) {
15989
+ function sl(r, e, t) {
15990
15990
  const n = t.dim, s = k(r * n - 0.5, 0, n - 1), c = k(e * n - 0.5, 0, n - 1), h = Math.floor(s), f = Math.floor(c), p = Math.min(h + 1, n - 1), g = Math.min(f + 1, n - 1);
15991
15991
  return q0(t.get(h, f), t.get(p, f), t.get(h, g), t.get(p, g), s - h, c - f);
15992
15992
  }
@@ -16015,7 +16015,7 @@ ${JSON.stringify(s, null, 2)}
16015
16015
  const g = 4 * p;
16016
16016
  this.floatView[p] = f(this.pixels[g], this.pixels[g + 1], this.pixels[g + 2]);
16017
16017
  }
16018
- this._timestamp = tn.now();
16018
+ this._timestamp = en.now();
16019
16019
  }
16020
16020
  _buildQuadTree() {
16021
16021
  this._tree = new Z0(this);
@@ -16160,7 +16160,7 @@ ${JSON.stringify(s, null, 2)}
16160
16160
  }
16161
16161
  }
16162
16162
  Qe(Pm, "DEMData"), Qe(Z0, "DemMinMaxQuadTree", { omit: ["dem"] });
16163
- var co = Uint8Array, ff = Uint16Array, YT = Int32Array, $0 = new co([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), H0 = new co([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), KT = new co([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), W0 = function(r, e) {
16163
+ var lo = Uint8Array, ff = Uint16Array, YT = Int32Array, $0 = new lo([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), H0 = new lo([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), KT = new lo([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), W0 = function(r, e) {
16164
16164
  for (var t = new ff(31), n = 0; n < 31; ++n) t[n] = e += 1 << r[n - 1];
16165
16165
  var s = new YT(t[30]);
16166
16166
  for (n = 1; n < 30; ++n) for (var c = t[n]; c < t[n + 1]; ++c) s[c] = c - t[n] << 5 | n;
@@ -16179,12 +16179,12 @@ ${JSON.stringify(s, null, 2)}
16179
16179
  var p = 15 - e;
16180
16180
  for (s = 0; s < n; ++s) if (r[s]) for (var g = s << 4 | r[s], x = e - r[s], b = f[r[s] - 1]++ << x, w = b | (1 << x) - 1; b <= w; ++b) h[K0[b] >> p] = g;
16181
16181
  return h;
16182
- }, mf = new co(288);
16182
+ }, mf = new lo(288);
16183
16183
  for (lr = 0; lr < 144; ++lr) mf[lr] = 8;
16184
16184
  for (lr = 144; lr < 256; ++lr) mf[lr] = 9;
16185
16185
  for (lr = 256; lr < 280; ++lr) mf[lr] = 7;
16186
16186
  for (lr = 280; lr < 288; ++lr) mf[lr] = 8;
16187
- var J0 = new co(32);
16187
+ var J0 = new lo(32);
16188
16188
  for (lr = 0; lr < 32; ++lr) J0[lr] = 5;
16189
16189
  var e2 = pf(mf, 9), t2 = pf(J0, 5), $g = function(r) {
16190
16190
  for (var e = r[0], t = 1; t < r.length; ++t) r[t] > e && (e = r[t]);
@@ -16201,7 +16201,7 @@ ${JSON.stringify(s, null, 2)}
16201
16201
  var n = new Error(e || r2[r]);
16202
16202
  if (n.code = r, Error.captureStackTrace && Error.captureStackTrace(n, is), !t) throw n;
16203
16203
  return n;
16204
- }, n2 = new co(0), o2 = typeof TextDecoder < "u" && new TextDecoder();
16204
+ }, n2 = new lo(0), o2 = typeof TextDecoder < "u" && new TextDecoder();
16205
16205
  try {
16206
16206
  o2.decode(n2, { stream: !0 });
16207
16207
  } catch {
@@ -16351,13 +16351,13 @@ ${JSON.stringify(s, null, 2)}
16351
16351
  return J + (2 & te);
16352
16352
  })(R = A), G + 8 > R.length && is(6, "invalid gzip data"), (function(K, te, J, Q) {
16353
16353
  var ve = K.length;
16354
- if (!ve || te.f && !te.l) return J || new co(0);
16354
+ if (!ve || te.f && !te.l) return J || new lo(0);
16355
16355
  var Te = !J, Ie = Te || te.i != 2, Ce = te.i;
16356
- Te && (J = new co(3 * ve));
16356
+ Te && (J = new lo(3 * ve));
16357
16357
  var Ee = function(Di) {
16358
16358
  var Ur = J.length;
16359
16359
  if (Di > Ur) {
16360
- var xr = new co(Math.max(2 * Ur, Di));
16360
+ var xr = new lo(Math.max(2 * Ur, Di));
16361
16361
  xr.set(J), J = xr;
16362
16362
  }
16363
16363
  }, Fe = te.f || 0, ye = te.p || 0, Ae = te.b || 0, De = te.l, Be = te.d, Ue = te.m, Je = te.n, $e = 8 * ve;
@@ -16378,7 +16378,7 @@ ${JSON.stringify(s, null, 2)}
16378
16378
  else if (qe == 2) {
16379
16379
  var it = ts(K, ye, 31) + 257, ct = ts(K, ye + 10, 15) + 4, nt = it + ts(K, ye + 5, 31) + 1;
16380
16380
  ye += 14;
16381
- for (var wt = new co(nt), Bt = new co(19), Tt = 0; Tt < ct; ++Tt) Bt[KT[Tt]] = ts(K, ye + 3 * Tt, 7);
16381
+ for (var wt = new lo(nt), Bt = new lo(19), Tt = 0; Tt < ct; ++Tt) Bt[KT[Tt]] = ts(K, ye + 3 * Tt, 7);
16382
16382
  ye += 3 * ct;
16383
16383
  var kt = $g(Bt), Ct = (1 << kt) - 1, Pi = pf(Bt, kt);
16384
16384
  for (Tt = 0; Tt < nt; ) {
@@ -16433,9 +16433,9 @@ ${JSON.stringify(s, null, 2)}
16433
16433
  te.l = De, te.p = Ni, te.b = Ae, te.f = Fe, De && (Fe = 1, te.m = Ue, te.d = Be, te.n = Je);
16434
16434
  } while (!Fe);
16435
16435
  return Ae != J.length && Te ? (function(Di, Ur, xr) {
16436
- return (xr == null || xr > Di.length) && (xr = Di.length), new co(Di.subarray(0, xr));
16436
+ return (xr == null || xr > Di.length) && (xr = Di.length), new lo(Di.subarray(0, xr));
16437
16437
  })(J, 0, Ae) : J.subarray(0, Ae);
16438
- })(R.subarray(G, -8), { i: 2 }, new co(((F = R)[(U = F.length) - 4] | F[U - 3] << 8 | F[U - 2] << 16 | F[U - 1] << 24) >>> 0), B)));
16438
+ })(R.subarray(G, -8), { i: 2 }, new lo(((F = R)[(U = F.length) - 4] | F[U - 3] << 8 | F[U - 2] << 16 | F[U - 1] << 24) >>> 0), B)));
16439
16439
  var R, B, F, U, G;
16440
16440
  const Z = s2[P];
16441
16441
  if (!Z) throw new Error(`Unhandled codec: ${P}`);
@@ -16555,7 +16555,7 @@ ${JSON.stringify(s, null, 2)}
16555
16555
  const s = r - t, c = e - n;
16556
16556
  return s * s + c * c;
16557
16557
  }
16558
- a.$ = Ba, a.A = class {
16558
+ a.$ = Oa, a.A = class {
16559
16559
  constructor(r, e, t) {
16560
16560
  this.target = r, this.parent = e, this.mapId = t, this.callbacks = {}, this.cancelCallbacks = {}, _e(["receive"], this), this.target.addEventListener("message", this.receive, !1), this.scheduler = new gT();
16561
16561
  }
@@ -16598,7 +16598,7 @@ ${JSON.stringify(s, null, 2)}
16598
16598
  remove() {
16599
16599
  this.scheduler.remove(), this.target.removeEventListener("message", this.receive, !1);
16600
16600
  }
16601
- }, a.B = Ca, a.C = ro, a.D = qn, a.E = bl, a.F = ea, a.G = 2, a.H = Jd, a.I = fn, a.J = wv, a.K = kc, a.L = dp, a.M = El, a.N = Al, a.O = su, a.P = ze, a.Q = ou, a.R = xl, a.S = Nh, a.T = Cs, a.U = $l, a.V = Tm, a.W = yu, a.X = xs, a.Y = Uh, a.Z = So, a._ = Hs, a.a = function(r) {
16601
+ }, a.B = Aa, a.C = io, a.D = qn, a.E = bl, a.F = ea, a.G = 2, a.H = Jd, a.I = fn, a.J = wv, a.K = kc, a.L = dp, a.M = El, a.N = Al, a.O = su, a.P = ze, a.Q = ou, a.R = xl, a.S = Nh, a.T = Cs, a.U = $l, a.V = Tm, a.W = yu, a.X = xs, a.Y = Uh, a.Z = So, a._ = Hs, a.a = function(r) {
16602
16602
  return Ft.API_CDN_URL_REGEX.test(r);
16603
16603
  }, a.a$ = om, a.a0 = dr, a.a1 = Cl, a.a2 = Nc, a.a3 = mh, a.a4 = sd, a.a5 = class extends Tm {
16604
16604
  }, a.a6 = Vh, a.a7 = Xf, a.a8 = ue, a.a9 = function(r) {
@@ -16608,7 +16608,7 @@ ${JSON.stringify(s, null, 2)}
16608
16608
  let e = 1 / 0, t = 1 / 0, n = -1 / 0, s = -1 / 0;
16609
16609
  for (const c of r) e = Math.min(e, c.x), t = Math.min(t, c.y), n = Math.max(n, c.x), s = Math.max(s, c.y);
16610
16610
  return { min: new ze(e, t), max: new ze(n, s) };
16611
- }, a.aC = k, a.aD = xi, a.aE = Tr, a.aF = $, a.aG = nn, a.aH = Pe, a.aI = Ke, a.aJ = function(r, e) {
16611
+ }, a.aC = k, a.aD = xi, a.aE = Tr, a.aF = $, a.aG = rn, a.aH = Pe, a.aI = Ke, a.aJ = function(r, e) {
16612
16612
  const t = {};
16613
16613
  for (let n = 0; n < e.length; n++) {
16614
16614
  const s = e[n];
@@ -16648,7 +16648,7 @@ ${JSON.stringify(s, null, 2)}
16648
16648
  }, a.aO = function(r, e, t) {
16649
16649
  const n = JSON.stringify(r.request);
16650
16650
  return r.data && (this.deduped.entries[n] = { result: [null, r.data] }), this.deduped.request(n, { type: "parseTile", renderSourceType: r.renderSourceType, zoom: r.tileZoom }, (s) => {
16651
- const c = Ea(r.request, (h, f, p) => {
16651
+ const c = Ia(r.request, (h, f, p) => {
16652
16652
  h ? dh(h) ? s(null, null) : s(h) : f && s(null, { rawData: f, vectorTile: t ? void 0 : new Zt(new om(f)), responseHeaders: new Map(p.entries()) });
16653
16653
  });
16654
16654
  return () => {
@@ -16680,7 +16680,7 @@ ${JSON.stringify(s, null, 2)}
16680
16680
  interpolate(r, e, t) {
16681
16681
  return { x: mt(r.x, e.x, t), y: mt(r.y, e.y, t), z: mt(r.z, e.z, t), azimuthal: mt(r.azimuthal, e.azimuthal, t), polar: mt(r.polar, e.polar, t) };
16682
16682
  }
16683
- }, a.ae = Ht, a.af = Xs, a.ag = tt, a.ah = Ri, a.ai = cn, a.aj = W, a.ak = Wo, a.al = aa, a.am = mt, a.an = He, a.ao = no, a.ap = Ut, a.aq = jt, a.ar = class {
16683
+ }, a.ae = Ht, a.af = Xs, a.ag = tt, a.ah = Ri, a.ai = cn, a.aj = W, a.ak = Wo, a.al = aa, a.am = mt, a.an = He, a.ao = ro, a.ap = Ut, a.aq = jt, a.ar = class {
16684
16684
  constructor(r) {
16685
16685
  this.specification = r;
16686
16686
  }
@@ -16713,7 +16713,7 @@ ${JSON.stringify(s, null, 2)}
16713
16713
  }
16714
16714
  registerFadeDuration(r) {
16715
16715
  const e = r + this.timeAdded;
16716
- e < tn.now() || this.fadeEndTime !== void 0 && e < this.fadeEndTime || (this.fadeEndTime = e);
16716
+ e < en.now() || this.fadeEndTime !== void 0 && e < this.fadeEndTime || (this.fadeEndTime = e);
16717
16717
  }
16718
16718
  wasRequested() {
16719
16719
  return this.state === "errored" || this.state === "loaded" || this.state === "reloading";
@@ -16801,7 +16801,7 @@ ${JSON.stringify(s, null, 2)}
16801
16801
  queryRenderedFeatures(r, e, t, n, s, c, h) {
16802
16802
  if (!this.latestFeatureIndex || !this.latestFeatureIndex.rawTileData && !this.latestFeatureIndex.is3DTile) return {};
16803
16803
  const f = this.evaluateQueryRenderedFeaturePadding(), p = (function(g, x) {
16804
- const b = to([], [0.5 * g.width, 0.5 * -g.height, 1]);
16804
+ const b = eo([], [0.5 * g.width, 0.5 * -g.height, 1]);
16805
16805
  return ln(b, b, [1, -1, 0]), xi(b, b, g.calculateProjMatrix(x.toUnwrapped())), Float32Array.from(b);
16806
16806
  })(s, this.tileID);
16807
16807
  return this.latestFeatureIndex.query(r, { tilespaceGeometry: e, pixelPosMatrix: p, transform: n, availableImages: t, tileTransform: this.tileTransform, worldview: this.worldview, queryRadius: f, scope: h });
@@ -16900,13 +16900,13 @@ ${JSON.stringify(s, null, 2)}
16900
16900
  return this.symbolFadeHoldUntil !== void 0;
16901
16901
  }
16902
16902
  symbolFadeFinished() {
16903
- return !this.symbolFadeHoldUntil || this.symbolFadeHoldUntil < tn.now();
16903
+ return !this.symbolFadeHoldUntil || this.symbolFadeHoldUntil < en.now();
16904
16904
  }
16905
16905
  clearFadeHold() {
16906
16906
  this.symbolFadeHoldUntil = void 0;
16907
16907
  }
16908
16908
  setHoldDuration(r) {
16909
- this.symbolFadeHoldUntil = tn.now() + r;
16909
+ this.symbolFadeHoldUntil = en.now() + r;
16910
16910
  }
16911
16911
  setTexture(r, e) {
16912
16912
  const t = e.context, n = t.gl;
@@ -16948,10 +16948,10 @@ ${JSON.stringify(s, null, 2)}
16948
16948
  const R = le((h.x + (P + w0(P)) / Do) / g), B = xe((h.y + (A + w0(A)) / Do) / g), F = f.project(R, B), U = A * Ms + P;
16949
16949
  Ps[2 * U + 0] = Math.round((F.x * p.scale - p.x) * He), Ps[2 * U + 1] = Math.round((F.y * p.scale - p.y) * He);
16950
16950
  }
16951
- sl.fill(0), Im.fill(0);
16951
+ ol.fill(0), Im.fill(0);
16952
16952
  for (let A = 2045; A >= 0; A--) {
16953
- const P = 4 * A, R = ol[P + 0], B = ol[P + 1], F = ol[P + 2], U = ol[P + 3], G = R + F >> 1, Z = B + U >> 1, ie = G + Z - B, K = Z + R - G, te = B * Ms + R, J = U * Ms + F, Q = Z * Ms + G, ve = Math.hypot((Ps[2 * te + 0] + Ps[2 * J + 0]) / 2 - Ps[2 * Q + 0], (Ps[2 * te + 1] + Ps[2 * J + 1]) / 2 - Ps[2 * Q + 1]) >= 16;
16954
- sl[Q] = sl[Q] || (ve ? 1 : 0), A < 1022 && (sl[Q] = sl[Q] || sl[(B + K >> 1) * Ms + (R + ie >> 1)] || sl[(U + K >> 1) * Ms + (F + ie >> 1)]);
16953
+ const P = 4 * A, R = nl[P + 0], B = nl[P + 1], F = nl[P + 2], U = nl[P + 3], G = R + F >> 1, Z = B + U >> 1, ie = G + Z - B, K = Z + R - G, te = B * Ms + R, J = U * Ms + F, Q = Z * Ms + G, ve = Math.hypot((Ps[2 * te + 0] + Ps[2 * J + 0]) / 2 - Ps[2 * Q + 0], (Ps[2 * te + 1] + Ps[2 * J + 1]) / 2 - Ps[2 * Q + 1]) >= 16;
16954
+ ol[Q] = ol[Q] || (ve ? 1 : 0), A < 1022 && (ol[Q] = ol[Q] || ol[(B + K >> 1) * Ms + (R + ie >> 1)] || ol[(U + K >> 1) * Ms + (F + ie >> 1)]);
16955
16955
  }
16956
16956
  const x = new Ar(), b = new Bi();
16957
16957
  let w = 0;
@@ -16961,7 +16961,7 @@ ${JSON.stringify(s, null, 2)}
16961
16961
  }
16962
16962
  function E(A, P, R, B, F, U) {
16963
16963
  const G = A + R >> 1, Z = P + B >> 1;
16964
- if (Math.abs(A - F) + Math.abs(P - U) > 1 && sl[Z * Ms + G]) E(F, U, A, P, G, Z), E(R, B, F, U, G, Z);
16964
+ if (Math.abs(A - F) + Math.abs(P - U) > 1 && ol[Z * Ms + G]) E(F, U, A, P, G, Z), E(R, B, F, U, G, Z);
16965
16965
  else {
16966
16966
  const ie = S(A, P), K = S(R, B), te = S(F, U);
16967
16967
  b.emplaceBack(ie, K, te);
@@ -17033,7 +17033,7 @@ ${JSON.stringify(s, null, 2)}
17033
17033
  for (const e in this.buckets) this.buckets[e].destroy(r);
17034
17034
  this.buckets = {}, this.imageAtlas && (this.imageAtlas = null), this.lineAtlas && (this.lineAtlas = null), this.imageAtlasTexture && delete this.imageAtlasTexture, this.glyphAtlasTexture && (this.glyphAtlasTexture.destroy(), delete this.glyphAtlasTexture), this.lineAtlasTexture && (this.lineAtlasTexture.destroy(), delete this.lineAtlasTexture), this._tileBoundsBuffer && (this._tileBoundsBuffer.destroy(), this._tileBoundsIndexBuffer.destroy(), this._tileBoundsSegments.destroy(), this._tileBoundsBuffer = null), this._tileDebugBuffer && (this._tileDebugBuffer.destroy(), this._tileDebugSegments.destroy(), this._tileDebugBuffer = null), this._tileDebugIndexBuffer && (this._tileDebugIndexBuffer.destroy(), this._tileDebugIndexBuffer = null), this._globeTileDebugBorderBuffer && (this._globeTileDebugBorderBuffer.destroy(), this._globeTileDebugBorderBuffer = null), this._tileDebugTextBuffer && (this._tileDebugTextBuffer.destroy(), this._tileDebugTextSegments.destroy(), this._tileDebugTextIndexBuffer.destroy(), this._tileDebugTextBuffer = null), this._globeTileDebugTextBuffer && (this._globeTileDebugTextBuffer.destroy(), this._globeTileDebugTextBuffer = null), r && this.texture && this.texture instanceof Cs && (this.texture.destroy(), delete this.texture), this.emissiveTexture && this.emissiveTexture instanceof Cs && (this.emissiveTexture.destroy(), delete this.emissiveTexture), this.hillshadeFBO && (this.hillshadeFBO.destroy(), delete this.hillshadeFBO), this.dem && delete this.dem, this.neighboringTiles && delete this.neighboringTiles, this.demTexture && (this.demTexture.destroy(), delete this.demTexture), this.rasterParticleState && (this.rasterParticleState.destroy(), delete this.rasterParticleState), this.latestFeatureIndex = null, this.state = "unloaded";
17035
17035
  }
17036
- }, a.b1 = Ea, a.b2 = dh, a.b3 = function(r, e) {
17036
+ }, a.b1 = Ia, a.b2 = dh, a.b3 = function(r, e) {
17037
17037
  const t = [];
17038
17038
  for (const n in r) n in e || t.push(n);
17039
17039
  return t;
@@ -17041,7 +17041,7 @@ ${JSON.stringify(s, null, 2)}
17041
17041
  t *= 0.5;
17042
17042
  var n = e[0], s = e[1], c = e[2], h = e[3], f = Math.sin(t), p = Math.cos(t);
17043
17043
  return r[0] = n * p + s * f, r[1] = s * p - n * f, r[2] = c * p + h * f, r[3] = h * p - c * f, r;
17044
- }, a.bN = xa, a.bO = ii, a.bP = to, a.bQ = function(r, e) {
17044
+ }, a.bN = ya, a.bO = ii, a.bP = eo, a.bQ = function(r, e) {
17045
17045
  return r[0] = -e[0], r[1] = -e[1], r[2] = -e[2], r[3] = e[3], r;
17046
17046
  }, a.bR = cl, a.bS = function(r, e, t, n, s) {
17047
17047
  var c = 1 / Math.tan(e / 2);
@@ -17055,10 +17055,10 @@ ${JSON.stringify(s, null, 2)}
17055
17055
  return r[0] = -2 * f, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = -2 * p, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[10] = 2 * g, r[11] = 0, r[12] = (e + t) * f, r[13] = (s + n) * p, r[14] = (h + c) * g, r[15] = 1, r;
17056
17056
  }, a.bU = fe, a.bV = xe, a.bW = function(r, e, t) {
17057
17057
  r[4 * e + 0] = t[0], r[4 * e + 1] = t[1], r[4 * e + 2] = t[2], r[4 * e + 3] = t[3];
17058
- }, a.bX = uc, a.bY = hc, a.bZ = nr, a.b_ = Yn, a.ba = ko, a.bb = Qn, a.bc = function(r, e) {
17058
+ }, a.bX = uc, a.bY = hc, a.bZ = nr, a.b_ = Yn, a.ba = ko, a.bb = po, a.bc = function(r, e) {
17059
17059
  const { x: t, y: n } = r.point, s = fy(t, n, r.worldSize / r._pixelsPerMercatorPixel, 0, 0);
17060
17060
  return xi(s, s, I_(Is(e)));
17061
- }, a.bd = an, a.be = ya, a.bf = _a, a.bg = vn, a.bh = hr, a.bi = ji, a.bj = ju, a.bk = Ln, a.bl = vg, a.bm = function(r, e, t, n, s) {
17061
+ }, a.bd = sn, a.be = ga, a.bf = ma, a.bg = vn, a.bh = hr, a.bi = ji, a.bj = ju, a.bk = Ln, a.bl = vg, a.bm = function(r, e, t, n, s) {
17062
17062
  const c = 5 * e + 2;
17063
17063
  r.float32[c + 0] = t, r.float32[c + 1] = n, r.float32[c + 2] = s;
17064
17064
  }, a.bn = qu, a.bo = go, a.bp = Ls, a.bq = wn, a.br = oh, a.bs = ne, a.bt = function(r, e, t, n) {
@@ -17163,7 +17163,7 @@ ${JSON.stringify(s, null, 2)}
17163
17163
  return Math.sqrt(e * e + t * t + n * n + s * s);
17164
17164
  }, a.c6 = Sr, a.c7 = Vo, a.c8 = oy, a.c9 = 3, a.cA = zx, a.cB = function(r) {
17165
17165
  const e = zx(r, !0);
17166
- return an([], [e[0], e[1], e[4], e[5]]);
17166
+ return sn([], [e[0], e[1], e[4], e[5]]);
17167
17167
  }, a.cC = Dr, a.cD = si, a.cE = Bo, a.cF = function(r) {
17168
17168
  const { x: e, y: t } = r.point, { lng: n, lat: s } = r._center;
17169
17169
  return fy(e, t, r.worldSize, n, s);
@@ -17180,7 +17180,7 @@ ${JSON.stringify(s, null, 2)}
17180
17180
  return c < 0 && (c += 360), [n, c, s];
17181
17181
  }, a.cQ = Oi, a.cR = zt, a.cS = Re, a.cT = tr, a.cU = Xt, a.cV = kn, a.cW = function(r) {
17182
17182
  return [Math.pow(r[0], 1 / 2.2), Math.pow(r[1], 1 / 2.2), Math.pow(r[2], 1 / 2.2)];
17183
- }, a.cX = Lx, a.cY = sg, a.cZ = kx, a.c_ = kg, a.ca = 2, a.cb = 7, a.cc = 6, a.cd = ga, a.ce = ti, a.cf = hl, a.cg = 0, a.ch = 1, a.ci = 4, a.cj = 5, a.ck = Lu, a.cl = _n, a.cm = Fx, a.cn = dc, a.co = uy, a.cp = function(r, e, t, n, s, c, h, f, p) {
17183
+ }, a.cX = Lx, a.cY = sg, a.cZ = kx, a.c_ = kg, a.ca = 2, a.cb = 7, a.cc = 6, a.cd = _a, a.ce = ti, a.cf = hl, a.cg = 0, a.ch = 1, a.ci = 4, a.cj = 5, a.ck = Lu, a.cl = _n, a.cm = Fx, a.cn = dc, a.co = uy, a.cp = function(r, e, t, n, s, c, h, f, p) {
17184
17184
  if (p.name === "globe") return uy(r, e, new dc(t, n, s), !1);
17185
17185
  const g = xc({ z: t, x: n, y: s }, p);
17186
17186
  return new Xt([(c + g.x / g.scale) * e, e * (g.y / g.scale), h], [(c + g.x2 / g.scale) * e, e * (g.y2 / g.scale), f]);
@@ -17253,14 +17253,14 @@ ${JSON.stringify(s, null, 2)}
17253
17253
  p = Float32Array.from([x, 0, 0, x]);
17254
17254
  } else p = h.calculatePixelsToTileUnitsMatrix(t);
17255
17255
  else p = new Float32Array([h.pixelsToGLUnits[0], 0, 0, h.pixelsToGLUnits[1]]);
17256
- const g = { u_camera_to_center_distance: r.transform.getCameraToCenterDistance(h.projection), u_matrix: r.translatePosMatrix(e.projMatrix, t, c.paint.get("circle-translate"), c.paint.get("circle-translate-anchor")), u_device_pixel_ratio: tn.devicePixelRatio, u_extrude_scale: p, u_inv_rot_matrix: Tb, u_merc_center: [0, 0], u_tile_id: [0, 0, 0], u_zoom_transition: 0, u_up_dir: [0, 0, 0], u_emissive_strength: c.paint.get("circle-emissive-strength") };
17256
+ const g = { u_camera_to_center_distance: r.transform.getCameraToCenterDistance(h.projection), u_matrix: r.translatePosMatrix(e.projMatrix, t, c.paint.get("circle-translate"), c.paint.get("circle-translate-anchor")), u_device_pixel_ratio: en.devicePixelRatio, u_extrude_scale: p, u_inv_rot_matrix: Tb, u_merc_center: [0, 0], u_tile_id: [0, 0, 0], u_zoom_transition: 0, u_up_dir: [0, 0, 0], u_emissive_strength: c.paint.get("circle-emissive-strength") };
17257
17257
  if (f) {
17258
17258
  g.u_inv_rot_matrix = n, g.u_merc_center = s, g.u_tile_id = [e.canonical.x, e.canonical.y, 1 << e.canonical.z], g.u_zoom_transition = aa(h.zoom);
17259
17259
  const x = s[0] * He, b = s[1] * He;
17260
17260
  g.u_up_dir = h.projection.upVector(new dc(0, 0, 0), x, b);
17261
17261
  }
17262
17262
  return g;
17263
- }, a.dU = ev, a.dV = rn, a.dW = (r, e, t, n, s, c, h, f, p, g) => {
17263
+ }, a.dU = ev, a.dV = tn, a.dW = (r, e, t, n, s, c, h, f, p, g) => {
17264
17264
  const x = r.transform, b = x.pitch < 15 ? Kx(0.07, 0.7, k((14 - x.zoom) / 5, 0, 1)) : 0.07, w = t.paint.get("line-trim-color-use-theme").constantOr("default") === "none";
17265
17265
  return { u_matrix: Qx(r, e, t, n), u_texsize: e.imageAtlasTexture ? e.imageAtlasTexture.size : [0, 0], u_pixels_to_tile_units: x.calculatePixelsToTileUnitsMatrix(e), u_device_pixel_ratio: s, u_width_scale: c, u_floor_width_scale: h, u_image: 0, u_tile_units_to_pixels: Jx(e, x), u_units_to_pixels: [1 / x.pixelsToGLUnits[0], 1 / x.pixelsToGLUnits[1]], u_alpha_discard_threshold: 0, u_trim_offset: f, u_trim_fade_range: t.paint.get("line-trim-fade-range"), u_trim_gradient_mix_range: [1, 1], u_trim_color: t.paint.get("line-trim-color").toPremultipliedRenderColor(w ? null : t.lut).toArray01(), u_zbias_factor: b, u_tile_to_meter: Re(e.tileID.canonical, 0), u_ground_shadow_factor: p, u_pattern_transition: g };
17266
17266
  }, a.dX = (r, e, t, n, s, c, h, f, p, g) => {
@@ -17316,12 +17316,12 @@ ${JSON.stringify(s, null, 2)}
17316
17316
  const s = e.getNorth(), c = e.getSouth(), h = e.getWest(), f = e.getEast(), p = 1 << r.z, g = f - h, x = s - c, b = g / j, w = -x / oe[t], S = [0, b, 0, w, 0, 0, s, h, 0];
17317
17317
  if (r.z > 0) {
17318
17318
  const E = 180 / n;
17319
- Qr(S, S, [E / g + 1, 0, 0, 0, E / x + 1, 0, -0.5 * E / b, 0.5 * E / w, 1]);
17319
+ an(S, S, [E / g + 1, 0, 0, 0, E / x + 1, 0, -0.5 * E / b, 0.5 * E / w, 1]);
17320
17320
  }
17321
17321
  return S[2] = p, S[5] = r.x, S[8] = r.y, S;
17322
17322
  }, a.du = Dd, a.dv = Is, a.dw = function(r, e, t) {
17323
17323
  const n = Ti(new Float64Array(16)), s = (e / (1 << r) - 0.5) * Math.PI * 2;
17324
- return eo(n, t.globeMatrix, s), Float32Array.from(n);
17324
+ return Qn(n, t.globeMatrix, s), Float32Array.from(n);
17325
17325
  }, a.dx = Md, a.dy = ai, a.dz = Ey, a.e = function(r) {
17326
17326
  return r.indexOf("mapbox:") === 0;
17327
17327
  }, a.e$ = A_, a.e0 = Hp, a.e1 = lx, a.e2 = Ne, a.e3 = ca, a.e4 = 450, a.e5 = 7, a.e6 = function(r, e) {
@@ -17507,11 +17507,11 @@ ${JSON.stringify(s, null, 2)}
17507
17507
  Cc = r, Mc = e;
17508
17508
  }, a.ea = 256, a.eb = function(r) {
17509
17509
  return r >>>= 0, r = Math.imul(2747636419 ^ r, 2654435769) >>> 0, r = Math.imul(r ^ r >>> 16, 2654435769) >>> 0, (r = Math.imul(r ^ r >>> 16, 2654435769) >>> 0) / 4294967296;
17510
- }, a.ec = ly, a.ed = I_, a.ee = Hn, a.ef = eo, a.eg = function(r, e) {
17510
+ }, a.ec = ly, a.ed = I_, a.ee = Hn, a.ef = Qn, a.eg = function(r, e) {
17511
17511
  return r[0] = e[0], r[1] = e[1], r[2] = e[2], r[3] = e[4], r[4] = e[5], r[5] = e[6], r[6] = e[8], r[7] = e[9], r[8] = e[10], r;
17512
17512
  }, a.eh = ta, a.ei = oc, a.ej = function(r, e, t, n, s) {
17513
17513
  return k((r - e) / (t - e) * (s - n) + n, n, s);
17514
- }, a.ek = va, a.el = function(r, e) {
17514
+ }, a.ek = xa, a.el = function(r, e) {
17515
17515
  var t = e[0], n = e[1], s = e[2], c = e[3], h = e[4], f = e[5], p = e[6], g = e[7], x = e[8], b = x * h - f * g, w = -x * c + f * p, S = g * c - h * p, E = t * b + n * w + s * S;
17516
17516
  return E ? (r[0] = b * (E = 1 / E), r[1] = (-x * n + s * g) * E, r[2] = (f * n - s * h) * E, r[3] = w * E, r[4] = (x * t - s * p) * E, r[5] = (-f * t + s * c) * E, r[6] = S * E, r[7] = (-g * t + n * p) * E, r[8] = (h * t - n * c) * E, r) : null;
17517
17517
  }, a.em = qf, a.en = 2, a.eo = Rs, a.ep = bn, a.eq = ll, a.er = function(r, e) {
@@ -17530,13 +17530,13 @@ ${JSON.stringify(s, null, 2)}
17530
17530
  return xi(t, r.pixelMatrix, r.globeMatrix), Ri(e, e, t), new ze(e[0], e[1]);
17531
17531
  }, a.f2 = rd, a.f3 = function(r, e, t = !1) {
17532
17532
  if (Nr === pn.deferred || Nr === pn.loading || Nr === pn.loaded) throw new Error("setRTLTextPlugin cannot be called multiple times.");
17533
- En = tn.resolveURL(r), Nr = pn.deferred, Ao = e, td(), t || up();
17533
+ En = en.resolveURL(r), Nr = pn.deferred, Ao = e, td(), t || up();
17534
17534
  }, a.f4 = wr, a.f5 = Er, a.f6 = ar, a.f7 = function(r) {
17535
17535
  const e = yf();
17536
17536
  if (!e) return;
17537
17537
  const t = e.delete(Bs);
17538
17538
  r && t.then(() => r()).catch(r);
17539
- }, a.f8 = Qe, a.f9 = Qa, a.fA = yt, a.fB = function(r) {
17539
+ }, a.f8 = Qe, a.f9 = Ja, a.fA = yt, a.fB = function(r) {
17540
17540
  let e = 0;
17541
17541
  if (new Uint32Array(r, 0, 1)[0] !== Cx) {
17542
17542
  const t = new Uint32Array(r, 0, 7), [, , n, s, c, h] = t;
@@ -17643,7 +17643,7 @@ ${JSON.stringify(s, null, 2)}
17643
17643
  }, a.fw = nm, a.fx = Zt, a.fy = function(r) {
17644
17644
  return r <= 1 ? 1 : Math.pow(2, Math.floor(Math.log2(r)));
17645
17645
  }, a.fz = Pm, a.g = Ft, a.h = function(r, e) {
17646
- return Ia(Object.assign(r, { method: "GET" }), e);
17646
+ return Sa(Object.assign(r, { method: "GET" }), e);
17647
17647
  }, a.i = function(r) {
17648
17648
  return Ft.API_STYLE_REGEX.test(r) && !hn(r);
17649
17649
  }, a.j = function(r) {
@@ -17651,9 +17651,9 @@ ${JSON.stringify(s, null, 2)}
17651
17651
  }, a.k = Dc, a.l = function(r) {
17652
17652
  return decodeURIComponent(atob(r).split("").map((e) => "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2)).join(""));
17653
17653
  }, a.m = function(r, e) {
17654
- return Ia(Object.assign(r, { type: "json" }), e);
17655
- }, a.n = Aa, a.o = tn, a.p = function(r, e) {
17656
- return Ia(Object.assign(r, { method: "POST" }), e);
17654
+ return Sa(Object.assign(r, { type: "json" }), e);
17655
+ }, a.n = Ea, a.o = en, a.p = function(r, e) {
17656
+ return Sa(Object.assign(r, { method: "POST" }), e);
17657
17657
  }, a.q = Or, a.r = me, a.s = function(r) {
17658
17658
  try {
17659
17659
  const e = self[r];
@@ -17762,25 +17762,25 @@ ${JSON.stringify(s, null, 2)}
17762
17762
  this.cache.clear(), this.textures.clear(), this.textureAccessTimes.clear(), this.textureMemoryUsed = 0;
17763
17763
  }
17764
17764
  }, a.y = Un, a.z = qg;
17765
- }), po(["require", "./shared"], function(a, We) {
17765
+ }), fo(["require", "./shared"], function(a, We) {
17766
17766
  function $t(pe) {
17767
17767
  const O = pe ? pe.url.toString() : void 0;
17768
17768
  return O ? performance.getEntriesByName(O) : [];
17769
17769
  }
17770
- function an(pe) {
17770
+ function sn(pe) {
17771
17771
  if (typeof pe == "number" || typeof pe == "boolean" || typeof pe == "string" || pe == null) return JSON.stringify(pe);
17772
17772
  if (Array.isArray(pe)) {
17773
17773
  let k = "[";
17774
- for (const W of pe) k += `${an(W)},`;
17774
+ for (const W of pe) k += `${sn(W)},`;
17775
17775
  return `${k}]`;
17776
17776
  }
17777
17777
  let O = "{";
17778
- for (const k of Object.keys(pe).sort()) O += `${k}:${an(pe[k])},`;
17778
+ for (const k of Object.keys(pe).sort()) O += `${k}:${sn(pe[k])},`;
17779
17779
  return `${O}}`;
17780
17780
  }
17781
17781
  function jr(pe) {
17782
17782
  let O = "";
17783
- for (const k of We.b5) O += `/${an(pe[k])}`;
17783
+ for (const k of We.b5) O += `/${sn(pe[k])}`;
17784
17784
  return O;
17785
17785
  }
17786
17786
  function os(pe, O) {
@@ -17788,7 +17788,7 @@ ${JSON.stringify(s, null, 2)}
17788
17788
  return typeof W == "string" && W === O || (Array.isArray(W) ? W.some(k) : !(!W || typeof W != "object") && Object.values(W).some(k));
17789
17789
  })(pe);
17790
17790
  }
17791
- class Qr {
17791
+ class an {
17792
17792
  constructor(O) {
17793
17793
  this.keyCache = /* @__PURE__ */ Object.create(null), this._layers = /* @__PURE__ */ Object.create(null), this._layerConfigs = /* @__PURE__ */ Object.create(null), O && this.replace(O);
17794
17794
  }
@@ -17805,7 +17805,7 @@ ${JSON.stringify(s, null, 2)}
17805
17805
  for (let _e = 0; _e < ae.length; _e++) {
17806
17806
  const Oe = ae[_e];
17807
17807
  let Me = ce && ce[Oe.id];
17808
- Me || (Oe.type === "symbol" ? Me = Oe.id : (Me = jr(Oe), Oe.type === "line" && Oe.paint && os(Oe.paint["line-width"], "line-progress") && (Me += `/${an(Oe.paint["line-width"])}`))), ce && (ce[Oe.id] = Me);
17808
+ Me || (Oe.type === "symbol" ? Me = Oe.id : (Me = jr(Oe), Oe.type === "line" && Oe.paint && os(Oe.paint["line-width"], "line-progress") && (Me += `/${sn(Oe.paint["line-width"])}`))), ce && (ce[Oe.id] = Me);
17809
17809
  let Xe = me[Me];
17810
17810
  Xe || (Xe = me[Me] = []), Xe.push(Oe);
17811
17811
  }
@@ -17825,7 +17825,7 @@ ${JSON.stringify(s, null, 2)}
17825
17825
  }
17826
17826
  }
17827
17827
  }
17828
- const Qn = 1 * We.fa;
17828
+ const po = 1 * We.fa;
17829
17829
  class ei {
17830
17830
  constructor(O) {
17831
17831
  const k = {}, W = [];
@@ -17834,7 +17834,7 @@ ${JSON.stringify(s, null, 2)}
17834
17834
  for (const Oe in he.glyphs) {
17835
17835
  const Me = he.glyphs[+Oe];
17836
17836
  if (!Me || Me.bitmap.width === 0 || Me.bitmap.height === 0) continue;
17837
- const Xe = Me.metrics.localGlyph ? Qn : 1, at = { x: 0, y: 0, w: Me.bitmap.width + 2 * Xe, h: Me.bitmap.height + 2 * Xe };
17837
+ const Xe = Me.metrics.localGlyph ? po : 1, at = { x: 0, y: 0, w: Me.bitmap.width + 2 * Xe, h: Me.bitmap.height + 2 * Xe };
17838
17838
  W.push(at), _e[Oe] = at;
17839
17839
  }
17840
17840
  }
@@ -17844,7 +17844,7 @@ ${JSON.stringify(s, null, 2)}
17844
17844
  for (const _e in he.glyphs) {
17845
17845
  const Oe = he.glyphs[+_e];
17846
17846
  if (!Oe || Oe.bitmap.width === 0 || Oe.bitmap.height === 0) continue;
17847
- const Me = k[me][_e], Xe = Oe.metrics.localGlyph ? Qn : 1;
17847
+ const Me = k[me][_e], Xe = Oe.metrics.localGlyph ? po : 1;
17848
17848
  We.f9.copy(Oe.bitmap, ce, { x: 0, y: 0 }, { x: Me.x + Xe, y: Me.y + Xe }, Oe.bitmap);
17849
17849
  }
17850
17850
  }
@@ -17875,7 +17875,7 @@ ${JSON.stringify(s, null, 2)}
17875
17875
  function Bo(pe) {
17876
17876
  return Dr(pe, ["type", "id", "name"]) && pe.properties.type === "structure";
17877
17877
  }
17878
- function eo(pe) {
17878
+ function Qn(pe) {
17879
17879
  return Dr(pe, ["type", "id", "name", "z_index"]) && pe.properties.type === "floor";
17880
17880
  }
17881
17881
  We.f8(ei, "GlyphAtlas");
@@ -17908,7 +17908,7 @@ ${JSON.stringify(s, null, 2)}
17908
17908
  Ti(Fi, un, hn);
17909
17909
  continue;
17910
17910
  }
17911
- if (eo(wr)) {
17911
+ if (Qn(wr)) {
17912
17912
  const un = ln(wr, Ii);
17913
17913
  Bn(Fi, un.buildings, un.id, un);
17914
17914
  }
@@ -17942,7 +17942,7 @@ ${JSON.stringify(s, null, 2)}
17942
17942
  for (const ir of at[lt]) {
17943
17943
  const di = ir[0];
17944
17944
  if (this.extraShadowCaster && (!di.is3D() || di.type === "model") || this.renderSourceType === We.b4.Symbol && di.type !== "symbol" || this.renderSourceType === We.b4.FillExtrusion && di.type !== "fill-extrusion" || this.renderSourceType === We.b4.Other && (di.type === "symbol" || di.type === "fill-extrusion") || di.minzoom && this.zoom < Math.floor(di.minzoom) || di.maxzoom && this.zoom >= di.maxzoom || di.visibility === "none") continue;
17945
- to(ir, this.zoom, Me.brightness, W, this.worldview, Me.activeFloors);
17945
+ eo(ir, this.zoom, Me.brightness, W, this.worldview, Me.activeFloors);
17946
17946
  const Ii = _e[di.id] = di.createBucket({ index: he.bucketLayerIDs.length, layers: ir, zoom: this.zoom, lut: this.lut, canonical: this.canonical, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: Gi, sourceID: this.source, projection: this.projection.spec, tessellationStep: this.tessellationStep, styleDefinedModelURLs: ne, worldview: this.worldview, localizable: ii, availableImages: W, maxUniformBufferBindings: this.maxUniformBufferBindings, maxUniformBlockSizeDwords: this.maxUniformBlockSizeDwords, disableSymbolUBO: this.disableSymbolUBO });
17947
17947
  he.bucketLayerIDs.push(ir.map((Ft) => We.F(Ft.id, Ft.scope)));
17948
17948
  let Fi = Ii.prepare ? Ii.prepare() : null;
@@ -17965,7 +17965,7 @@ ${JSON.stringify(s, null, 2)}
17965
17965
  const Ft = {};
17966
17966
  for (const Er in _e) {
17967
17967
  const wr = _e[Er];
17968
- wr instanceof We.fp && (to(wr.layers, this.zoom, Me.brightness, W, this.worldview, Me.activeFloors), Ft[Er] = We.fq(wr, Pt, Ii.positions, zt, Fi, this.tileID.canonical, this.tileZoom, this.scaleFactor, this.pixelRatio, Xi, this.worldview, W));
17968
+ wr instanceof We.fp && (eo(wr.layers, this.zoom, Me.brightness, W, this.worldview, Me.activeFloors), Ft[Er] = We.fq(wr, Pt, Ii.positions, zt, Fi, this.tileID.canonical, this.tileZoom, this.scaleFactor, this.pixelRatio, Xi, this.worldview, W));
17969
17969
  }
17970
17970
  const ar = { iconsPending: !0, patternsPending: !0 };
17971
17971
  this.rasterizeIfNeeded(ae, zt, Xi, () => {
@@ -17983,7 +17983,7 @@ ${JSON.stringify(s, null, 2)}
17983
17983
  const dn = _e[Zr];
17984
17984
  if (Zr in di) We.fv(dn, di[Zr], this.showCollisionBoxes, W, this.tileID.canonical, this.tileZoom, this.projection, this.brightness, zt, vo);
17985
17985
  else if (dn.hasPattern && (dn instanceof We.fw || dn instanceof We.fl || dn instanceof We.e0)) {
17986
- to(dn.layers, this.zoom, Me.brightness, W, this.worldview, Me.activeFloors);
17986
+ eo(dn.layers, this.zoom, Me.brightness, W, this.worldview, Me.activeFloors);
17987
17987
  const bo = Object.fromEntries(vo.patternPositions);
17988
17988
  dn.addFeatures(Me, this.tileID.canonical, bo, W, this.tileTransform, this.brightness);
17989
17989
  }
@@ -17996,8 +17996,8 @@ ${JSON.stringify(s, null, 2)}
17996
17996
  let wo, Un;
17997
17997
  if (bo && We.w(`[Worker] Error checking atlas cache: ${bo.message}`), Tn) wo = new We.ft(Tn.sourceHash), Un = Tn;
17998
17998
  else {
17999
- const tn = new We.fu(zt, hi, this.lut, ar);
18000
- wo = tn, Un = tn;
17999
+ const en = new We.fu(zt, hi, this.lut, ar);
18000
+ wo = en, Un = en;
18001
18001
  }
18002
18002
  un(wo, Un);
18003
18003
  });
@@ -18071,7 +18071,7 @@ ${JSON.stringify(s, null, 2)}
18071
18071
  this.rasterizeTask && this.rasterizeTask.cancel();
18072
18072
  }
18073
18073
  }
18074
- function to(pe, O, k, W, ne, ae) {
18074
+ function eo(pe, O, k, W, ne, ae) {
18075
18075
  const ce = new We.ae(O, { brightness: k, worldview: ne, activeFloors: ae });
18076
18076
  for (const me of pe) me.recalculate(ce, W);
18077
18077
  }
@@ -18303,8 +18303,8 @@ ${JSON.stringify(s, null, 2)}
18303
18303
  if (!k) return;
18304
18304
  if (k.type === "GeometryCollection") throw new Error("GeometryCollection not supported in dynamic mode.");
18305
18305
  const { type: ne, coordinates: ae } = k, ce = { id: O, type: 1, geometry: [], tags: W, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 }, me = ce.geometry;
18306
- if (ne === "Point") en(ae, me, ce);
18307
- else if (ne === "MultiPoint") for (const he of ae) en(he, me, ce);
18306
+ if (ne === "Point") Qr(ae, me, ce);
18307
+ else if (ne === "MultiPoint") for (const he of ae) Qr(he, me, ce);
18308
18308
  else if (ne === "LineString") ce.type = 2, mo(ae, me, ce);
18309
18309
  else if (ne === "MultiLineString") ce.type = 2, vi(ae, me, ce);
18310
18310
  else if (ne === "Polygon") ce.type = 3, vi(ae, me, ce, !0);
@@ -18315,14 +18315,14 @@ ${JSON.stringify(s, null, 2)}
18315
18315
  }
18316
18316
  return ce;
18317
18317
  }
18318
- function en([pe, O], k, W) {
18318
+ function Qr([pe, O], k, W) {
18319
18319
  const ne = We.aH(pe);
18320
18320
  let ae = We.aL(O);
18321
18321
  ae = ae < 0 ? 0 : ae > 1 ? 1 : ae, k.push(ne, ae), W.minX = Math.min(W.minX, ne), W.minY = Math.min(W.minY, ae), W.maxX = Math.max(W.maxX, ne), W.maxY = Math.max(W.maxY, ae);
18322
18322
  }
18323
18323
  function mo(pe, O, k, W = !1, ne = !1) {
18324
18324
  const ae = [];
18325
- for (const ce of pe) en(ce, ae, k);
18325
+ for (const ce of pe) Qr(ce, ae, k);
18326
18326
  O.push(ae), W && (function(ce, me) {
18327
18327
  let he = 0;
18328
18328
  for (let _e = 0, Oe = ce.length, Me = Oe - 2; _e < Oe; Me = _e, _e += 2) he += (ce[_e] - ce[Me]) * (ce[_e + 1] + ce[Me + 1]);
@@ -18343,11 +18343,11 @@ ${JSON.stringify(s, null, 2)}
18343
18343
  at.push([lt, vt]);
18344
18344
  }
18345
18345
  })(ce, O, k, W, he);
18346
- else if (ae === 2) for (const _e of ce) _a(_e, O, k, W, he);
18346
+ else if (ae === 2) for (const _e of ce) ma(_e, O, k, W, he);
18347
18347
  else if (ae === 3) for (const _e of ce) Sc(_e, O, k, W, he);
18348
18348
  return { id: ne, type: ae, geometry: he, tags: me };
18349
18349
  }
18350
- function _a(pe, O, k, W, ne) {
18350
+ function ma(pe, O, k, W, ne) {
18351
18351
  const ce = We.an + 128;
18352
18352
  let me;
18353
18353
  for (let he = 0; he < pe.length - 2; he += 2) {
@@ -18385,7 +18385,7 @@ ${JSON.stringify(s, null, 2)}
18385
18385
  }
18386
18386
  function Rs(pe, O) {
18387
18387
  const k = pe.feature;
18388
- k.id !== void 0 && Number.isSafeInteger(+k.id) && O.writeVarintField(1, +k.id), k.tags && O.writeMessage(2, _i, pe), O.writeVarintField(3, k.type), O.writeMessage(4, ga, k);
18388
+ k.id !== void 0 && Number.isSafeInteger(+k.id) && O.writeVarintField(1, +k.id), k.tags && O.writeMessage(2, _i, pe), O.writeVarintField(3, k.type), O.writeMessage(4, _a, k);
18389
18389
  }
18390
18390
  function _i({ keys: pe, values: O, feature: k }, W) {
18391
18391
  for (const ne of Object.keys(k.tags)) {
@@ -18405,7 +18405,7 @@ ${JSON.stringify(s, null, 2)}
18405
18405
  function hr(pe) {
18406
18406
  return pe << 1 ^ pe >> 31;
18407
18407
  }
18408
- function ga(pe, O) {
18408
+ function _a(pe, O) {
18409
18409
  const { geometry: k, type: W } = pe;
18410
18410
  let ne = 0, ae = 0;
18411
18411
  if (W === 1) {
@@ -18430,8 +18430,8 @@ ${JSON.stringify(s, null, 2)}
18430
18430
  const k = typeof pe;
18431
18431
  k === "string" ? O.writeStringField(1, pe) : k === "boolean" ? O.writeBooleanField(7, pe) : k === "number" && (pe % 1 != 0 ? O.writeDoubleField(3, pe) : pe < 0 ? O.writeSVarintField(6, pe) : O.writeVarintField(5, pe));
18432
18432
  }
18433
- const fl = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (pe) => pe }, Vo = Math.fround || (ya = new Float32Array(1), (pe) => (ya[0] = +pe, ya[0]));
18434
- var ya;
18433
+ const fl = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (pe) => pe }, Vo = Math.fround || (ga = new Float32Array(1), (pe) => (ga[0] = +pe, ga[0]));
18434
+ var ga;
18435
18435
  class Nn {
18436
18436
  constructor(O) {
18437
18437
  this.options = Object.assign(Object.create(fl), O), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
@@ -18644,12 +18644,12 @@ ${JSON.stringify(s, null, 2)}
18644
18644
  if (ne && ne.length === 0) return;
18645
18645
  const ae = O.geometry.type, ce = Math.pow(k.tolerance / ((1 << k.maxZoom) * k.extent), 2);
18646
18646
  let me = [], he = O.id;
18647
- if (k.promoteId ? he = O.properties[k.promoteId] : k.generateId && (he = W || 0), ae === "Point") xa(ne, me);
18648
- else if (ae === "MultiPoint") for (const _e of ne) xa(_e, me);
18649
- else if (ae === "LineString") va(ne, me, ce, !1);
18647
+ if (k.promoteId ? he = O.properties[k.promoteId] : k.generateId && (he = W || 0), ae === "Point") ya(ne, me);
18648
+ else if (ae === "MultiPoint") for (const _e of ne) ya(_e, me);
18649
+ else if (ae === "LineString") xa(ne, me, ce, !1);
18650
18650
  else if (ae === "MultiLineString") {
18651
18651
  if (k.lineMetrics) {
18652
- for (const _e of ne) me = [], va(_e, me, ce, !1), pe.push(Tr(he, "LineString", me, O.properties));
18652
+ for (const _e of ne) me = [], xa(_e, me, ce, !1), pe.push(Tr(he, "LineString", me, O.properties));
18653
18653
  return;
18654
18654
  }
18655
18655
  Br(ne, me, ce, !1);
@@ -18669,13 +18669,13 @@ ${JSON.stringify(s, null, 2)}
18669
18669
  }
18670
18670
  pe.push(Tr(he, ae, me, O.properties));
18671
18671
  }
18672
- function xa(pe, O) {
18673
- O.push(ba(pe[0]), wa(pe[1]), 0);
18672
+ function ya(pe, O) {
18673
+ O.push(va(pe[0]), ba(pe[1]), 0);
18674
18674
  }
18675
- function va(pe, O, k, W) {
18675
+ function xa(pe, O, k, W) {
18676
18676
  let ne, ae, ce = 0;
18677
18677
  for (let he = 0; he < pe.length; he++) {
18678
- const _e = ba(pe[he][0]), Oe = wa(pe[he][1]);
18678
+ const _e = va(pe[he][0]), Oe = ba(pe[he][1]);
18679
18679
  O.push(_e, Oe, 0), he > 0 && (ce += W ? (ne * Oe - _e * ae) / 2 : Math.sqrt(Math.pow(_e - ne, 2) + Math.pow(Oe - ae, 2))), ne = _e, ae = Oe;
18680
18680
  }
18681
18681
  const me = O.length - 3;
@@ -18684,13 +18684,13 @@ ${JSON.stringify(s, null, 2)}
18684
18684
  function Br(pe, O, k, W) {
18685
18685
  for (let ne = 0; ne < pe.length; ne++) {
18686
18686
  const ae = [];
18687
- va(pe[ne], ae, k, W), O.push(ae);
18687
+ xa(pe[ne], ae, k, W), O.push(ae);
18688
18688
  }
18689
18689
  }
18690
- function ba(pe) {
18690
+ function va(pe) {
18691
18691
  return pe / 360 + 0.5;
18692
18692
  }
18693
- function wa(pe) {
18693
+ function ba(pe) {
18694
18694
  const O = Math.sin(pe * Math.PI / 180), k = 0.5 - 0.25 * Math.log((1 + O) / (1 - O)) / Math.PI;
18695
18695
  return k < 0 ? 0 : k > 1 ? 1 : k;
18696
18696
  }
@@ -18790,7 +18790,7 @@ ${JSON.stringify(s, null, 2)}
18790
18790
  for (let W = 0; W < pe.length; W += 3) k.push(pe[W] + O, pe[W + 1], pe[W + 2]);
18791
18791
  return k;
18792
18792
  }
18793
- function io(pe, O) {
18793
+ function to(pe, O) {
18794
18794
  if (pe.transformed) return pe;
18795
18795
  const k = 1 << pe.z, W = pe.x, ne = pe.y;
18796
18796
  for (const ae of pe.features) {
@@ -18900,11 +18900,11 @@ ${JSON.stringify(s, null, 2)}
18900
18900
  const ne = this.options, { extent: ae, debug: ce } = ne;
18901
18901
  if (O < 0 || O > 24) return null;
18902
18902
  const me = 1 << O, he = ze(O, k = k + me & me - 1, W);
18903
- if (this.tiles[he]) return io(this.tiles[he], ae);
18903
+ if (this.tiles[he]) return to(this.tiles[he], ae);
18904
18904
  ce > 1 && console.log("drilling down to z%d-%d-%d", O, k, W);
18905
18905
  let _e, Oe = O, Me = k, Xe = W;
18906
18906
  for (; !_e && Oe > 0; ) Oe--, Me >>= 1, Xe >>= 1, _e = this.tiles[ze(Oe, Me, Xe)];
18907
- return _e && _e.source ? (ce > 1 && (console.log("found parent tile z%d-%d-%d", Oe, Me, Xe), console.time("drilling down")), this.splitTile(_e.source, Oe, Me, Xe, O, k, W), ce > 1 && console.timeEnd("drilling down"), this.tiles[he] ? io(this.tiles[he], ae) : null) : null;
18907
+ return _e && _e.source ? (ce > 1 && (console.log("found parent tile z%d-%d-%d", Oe, Me, Xe), console.time("drilling down")), this.splitTile(_e.source, Oe, Me, Xe, O, k, W), ce > 1 && console.timeEnd("drilling down"), this.tiles[he] ? to(this.tiles[he], ae) : null) : null;
18908
18908
  }
18909
18909
  }
18910
18910
  function ze(pe, O, k) {
@@ -19212,7 +19212,7 @@ ${JSON.stringify(s, null, 2)}
19212
19212
  getLayerIndex(O, k) {
19213
19213
  this.layerIndexes[O] || (this.layerIndexes[O] = {});
19214
19214
  let W = this.layerIndexes[O][k];
19215
- return W || (W = this.layerIndexes[O][k] = new Qr(), W.scope = k), W;
19215
+ return W || (W = this.layerIndexes[O][k] = new an(), W.scope = k), W;
19216
19216
  }
19217
19217
  getWorkerSource(O, k, W) {
19218
19218
  const { type: ne, source: ae, scope: ce } = k, me = this.workerSources;
@@ -19242,9 +19242,9 @@ ${JSON.stringify(s, null, 2)}
19242
19242
  }
19243
19243
  }
19244
19244
  return We.fE(self) && (self.worker = new gl(self)), gl;
19245
- }), po(["./shared"], function(a) {
19245
+ }), fo(["./shared"], function(a) {
19246
19246
  var We = "3.22.0";
19247
- const $t = { create: "create", load: "load", fullLoad: "fullLoad" }, an = { mark(l) {
19247
+ const $t = { create: "create", load: "load", fullLoad: "fullLoad" }, sn = { mark(l) {
19248
19248
  performance.mark(l);
19249
19249
  }, measure(l, i, o) {
19250
19250
  performance.measure(l, i, o);
@@ -19253,8 +19253,8 @@ ${JSON.stringify(s, null, 2)}
19253
19253
  const i = l.name.split("?")[0];
19254
19254
  return a.a(i) && i.includes("mapbox-gl.js") ? "javascript" : a.a(i) && i.includes("mapbox-gl.css") ? "css" : a.b(i) ? "fontRange" : a.c(i) ? "sprite" : a.i(i) ? "style" : a.d(i) ? "tilejson" : "other";
19255
19255
  }
19256
- var os, Qr = {}, Qn = (function() {
19257
- if (os) return Qr;
19256
+ var os, an = {}, po = (function() {
19257
+ if (os) return an;
19258
19258
  function l(u) {
19259
19259
  return !i(u);
19260
19260
  }
@@ -19290,9 +19290,9 @@ ${JSON.stringify(s, null, 2)}
19290
19290
  })(d)), o[d] ? document.documentMode ? "insufficient ECMAScript 6 support" : void 0 : "insufficient WebGL2 support") : "insufficient Canvas/getImageData support" : "insufficient worker support";
19291
19291
  var d;
19292
19292
  }
19293
- os = 1, Qr.supported = l, Qr.notSupportedReason = i;
19293
+ os = 1, an.supported = l, an.notSupportedReason = i;
19294
19294
  var o = {};
19295
- return l.webGLContextAttributes = { antialias: !1, alpha: !0, stencil: !0, depth: !0 }, Qr;
19295
+ return l.webGLContextAttributes = { antialias: !1, alpha: !0, stencil: !0, depth: !0 }, an;
19296
19296
  })();
19297
19297
  function ei(l, i, o) {
19298
19298
  const u = document.createElement(l);
@@ -19311,15 +19311,15 @@ ${JSON.stringify(s, null, 2)}
19311
19311
  function Bo() {
19312
19312
  Bn && xi && (Bn[xi] = ln);
19313
19313
  }
19314
- function eo(l) {
19315
- l.preventDefault(), l.stopPropagation(), window.removeEventListener("click", eo, !0);
19314
+ function Qn(l) {
19315
+ l.preventDefault(), l.stopPropagation(), window.removeEventListener("click", Qn, !0);
19316
19316
  }
19317
19317
  function ko() {
19318
- window.addEventListener("click", eo, !0), window.setTimeout(() => {
19319
- window.removeEventListener("click", eo, !0);
19318
+ window.addEventListener("click", Qn, !0), window.setTimeout(() => {
19319
+ window.removeEventListener("click", Qn, !0);
19320
19320
  }, 0);
19321
19321
  }
19322
- function to(l, i) {
19322
+ function eo(l, i) {
19323
19323
  const o = l.getBoundingClientRect();
19324
19324
  return cl(l, o, i);
19325
19325
  }
@@ -19446,7 +19446,7 @@ ${JSON.stringify(s, null, 2)}
19446
19446
  function Ds(l) {
19447
19447
  return !(!a.g.EVENTS_URL || !l && !a.g.ACCESS_TOKEN);
19448
19448
  }
19449
- class en {
19449
+ class Qr {
19450
19450
  constructor(i) {
19451
19451
  this.type = i, this.anonId = null, this.anonIdTimestamp = null, this.eventData = {}, this.queue = [], this.pendingRequest = null;
19452
19452
  }
@@ -19496,7 +19496,7 @@ ${JSON.stringify(s, null, 2)}
19496
19496
  this.queue.push(i), this.processRequests(o);
19497
19497
  }
19498
19498
  }
19499
- class mo extends en {
19499
+ class mo extends Qr {
19500
19500
  constructor(i) {
19501
19501
  super("metrics"), i && (this.data = i);
19502
19502
  }
@@ -19513,7 +19513,7 @@ ${JSON.stringify(s, null, 2)}
19513
19513
  }, i);
19514
19514
  }
19515
19515
  }
19516
- const vi = new class extends en {
19516
+ const vi = new class extends Qr {
19517
19517
  constructor(l) {
19518
19518
  super("appUserTurnstile"), this._customAccessToken = l;
19519
19519
  }
@@ -19535,7 +19535,7 @@ ${JSON.stringify(s, null, 2)}
19535
19535
  m || (this.eventData.lastSuccess = d, this.eventData.tokenU = o);
19536
19536
  }, l) : this.processRequests();
19537
19537
  }
19538
- }(), vn = vi.postTurnstileEvent.bind(vi), _a = new class extends en {
19538
+ }(), vn = vi.postTurnstileEvent.bind(vi), ma = new class extends Qr {
19539
19539
  constructor() {
19540
19540
  super("map.load"), this.success = {}, this.skuToken = "";
19541
19541
  }
@@ -19552,7 +19552,7 @@ ${JSON.stringify(s, null, 2)}
19552
19552
  remove() {
19553
19553
  this.errorCb = null;
19554
19554
  }
19555
- }(), Sc = _a.postMapLoadEvent.bind(_a), dl = new class extends en {
19555
+ }(), Sc = ma.postMapLoadEvent.bind(ma), dl = new class extends Qr {
19556
19556
  constructor() {
19557
19557
  super("style.load"), this.eventIdPerMapInstanceMap = /* @__PURE__ */ new Map(), this.mapInstanceIdMap = /* @__PURE__ */ new WeakMap();
19558
19558
  }
@@ -19576,7 +19576,7 @@ ${JSON.stringify(s, null, 2)}
19576
19576
  this.postEvent(i, o, () => {
19577
19577
  }, l);
19578
19578
  }
19579
- }(), Rs = dl.postStyleLoadEvent.bind(dl), _i = new mo({ attributes: [{ name: "maps/js/layer-animations/style-with-appearances" }] }), ji = _i.postMetricsEvent.bind(_i), hr = new mo({ attributes: [{ name: "maps/js/layer-animations/runtime-appearances" }] }), ga = hr.postMetricsEvent.bind(hr), Ri = new class extends en {
19579
+ }(), Rs = dl.postStyleLoadEvent.bind(dl), _i = new mo({ attributes: [{ name: "maps/js/layer-animations/style-with-appearances" }] }), ji = _i.postMetricsEvent.bind(_i), hr = new mo({ attributes: [{ name: "maps/js/layer-animations/runtime-appearances" }] }), _a = hr.postMetricsEvent.bind(hr), Ri = new class extends Qr {
19580
19580
  constructor() {
19581
19581
  super("gljs.performance");
19582
19582
  }
@@ -19630,7 +19630,7 @@ ${JSON.stringify(s, null, 2)}
19630
19630
  this.postEvent(i, u, () => {
19631
19631
  }, l);
19632
19632
  }
19633
- }(), fl = Ri.postPerformanceEvent.bind(Ri), Vo = new class extends en {
19633
+ }(), fl = Ri.postPerformanceEvent.bind(Ri), Vo = new class extends Qr {
19634
19634
  constructor() {
19635
19635
  super("map.auth"), this.success = {}, this.skuToken = "";
19636
19636
  }
@@ -19656,7 +19656,7 @@ ${JSON.stringify(s, null, 2)}
19656
19656
  remove() {
19657
19657
  this.errorCb = null;
19658
19658
  }
19659
- }(), ya = Vo.getSessionAPI.bind(Vo), Nn = /* @__PURE__ */ new Set();
19659
+ }(), ga = Vo.getSessionAPI.bind(Vo), Nn = /* @__PURE__ */ new Set();
19660
19660
  function Wi(l, i) {
19661
19661
  i ? Nn.add(l) : Nn.delete(l);
19662
19662
  }
@@ -19779,11 +19779,11 @@ ${JSON.stringify(s, null, 2)}
19779
19779
  }
19780
19780
  }
19781
19781
  let bn, Uo;
19782
- function xa() {
19782
+ function ya() {
19783
19783
  return bn || (bn = new _o()), bn;
19784
19784
  }
19785
19785
  Tr.Actor = a.A;
19786
- class va extends a.E {
19786
+ class xa extends a.E {
19787
19787
  constructor(i) {
19788
19788
  super(), this.imageProviders = /* @__PURE__ */ new Map(), this.images = /* @__PURE__ */ new Map(), this.updatedImages = /* @__PURE__ */ new Map(), this.callbackDispatchedThisFrame = /* @__PURE__ */ new Map(), this.imageVersions = /* @__PURE__ */ new Map(), this.loaded = /* @__PURE__ */ new Map(), this.requestors = [], this.patterns = /* @__PURE__ */ new Map(), this.patternsInFlight = /* @__PURE__ */ new Set(), this.atlasImage = /* @__PURE__ */ new Map(), this.atlasTexture = /* @__PURE__ */ new Map(), this.imageAtlasCache = new a.x(), this.dirty = !0, this.spriteFormat = i, i !== "raster" && a.y() && (this.imageRasterizerDispatcher = new Tr((Uo || (Uo = new _o("ImageRasterizer")), Uo), this, "Image Rasterizer Worker", 1));
19789
19789
  }
@@ -20008,7 +20008,7 @@ ${JSON.stringify(s, null, 2)}
20008
20008
  for (let T = 0; T < i.length; T++) v = v.concat(_({ array: i, arrayIndex: T, value: i[T], valueSpec: y, style: u, styleSpec: d, key: `${m}[${T}]` }, !0));
20009
20009
  return v;
20010
20010
  }
20011
- function ba(l) {
20011
+ function va(l) {
20012
20012
  const i = l.key, o = l.value, u = l.valueSpec;
20013
20013
  if (!a.N(o)) return [new a.V(i, o, `number expected, ${a.M(o)} found`)];
20014
20014
  if (o != o) return [new a.V(i, o, "number expected, NaN found")];
@@ -20022,7 +20022,7 @@ ${JSON.stringify(s, null, 2)}
20022
20022
  }
20023
20023
  return [];
20024
20024
  }
20025
- function wa(l) {
20025
+ function ba(l) {
20026
20026
  const i = l.key, o = l.value;
20027
20027
  if (!a.K(o)) return [new a.V(i, o, `object expected, ${a.M(o)} found`)];
20028
20028
  const u = l.valueSpec, d = a.L(o.type);
@@ -20052,7 +20052,7 @@ ${JSON.stringify(s, null, 2)}
20052
20052
  const j = a.L($.zoom);
20053
20053
  if (typeof j != "number") return [new a.V(q, $.zoom, "stop zoom values must be numbers")];
20054
20054
  if (y && y > j) return [new a.V(q, $.zoom, "stop zoom values must appear in ascending order")];
20055
- j !== y && (y = j, _ = void 0, v = {}), V = V.concat(Ir({ key: `${q}[0]`, value: N[0], valueSpec: { zoom: {} }, style: L.style, styleSpec: L.styleSpec, objectElementValidators: { zoom: ba, value: z } }));
20055
+ j !== y && (y = j, _ = void 0, v = {}), V = V.concat(Ir({ key: `${q}[0]`, value: N[0], valueSpec: { zoom: {} }, style: L.style, styleSpec: L.styleSpec, objectElementValidators: { zoom: va, value: z } }));
20056
20056
  } else V = V.concat(z({ key: `${q}[0]`, value: N[0], style: L.style, styleSpec: L.styleSpec }, N));
20057
20057
  return a.U(a.W(N[1])) ? V.concat([new a.V(`${q}[1]`, N[1], "expressions are not allowed in function stops.")]) : V.concat(Li({ key: `${q}[1]`, value: N[1], valueSpec: u, style: L.style, styleSpec: L.styleSpec }));
20058
20058
  }
@@ -20228,11 +20228,11 @@ Use an identity property function instead: ${z}.`)];
20228
20228
  }), T;
20229
20229
  } } })), i;
20230
20230
  }
20231
- function io({ key: l, value: i }) {
20231
+ function to({ key: l, value: i }) {
20232
20232
  return a.a2(i) ? [] : [new a.V(l, i, `string expected, ${a.M(i)} found`)];
20233
20233
  }
20234
20234
  const Os = { promoteId: function l({ key: i, value: o }) {
20235
- if (a.a2(o)) return io({ key: i, value: o });
20235
+ if (a.a2(o)) return to({ key: i, value: o });
20236
20236
  if (Array.isArray(o)) {
20237
20237
  const d = [], m = a.W(o), _ = a.X(m);
20238
20238
  return _.result === "error" ? (_.value.forEach((y) => {
@@ -20350,12 +20350,12 @@ Use an identity property function instead: ${z}.`)];
20350
20350
  const xo = { "*": () => [], array: Br, boolean: function(l) {
20351
20351
  const i = l.value, o = l.key;
20352
20352
  return a.a1(i) ? [] : [new a.V(o, i, `boolean expected, ${a.M(i)} found`)];
20353
- }, number: ba, color: function({ key: l, value: i }) {
20353
+ }, number: va, color: function({ key: l, value: i }) {
20354
20354
  return a.a2(i) ? a.a3.parseCSSColor(i) === null ? [new a.V(l, i, `color expected, "${i}" found`)] : [] : [new a.V(l, i, `color expected, ${a.M(i)} found`)];
20355
- }, enum: go, filter: ls, function: wa, layer: Fs, object: Ir, source: ml, model: a.a9, light: cs, "light-3d": Ac, terrain: _l, fog: ze, string: io, formatted: function(l) {
20356
- return io(l).length === 0 ? [] : Sr(l);
20355
+ }, enum: go, filter: ls, function: ba, layer: Fs, object: Ir, source: ml, model: a.a9, light: cs, "light-3d": Ac, terrain: _l, fog: ze, string: to, formatted: function(l) {
20356
+ return to(l).length === 0 ? [] : Sr(l);
20357
20357
  }, resolvedImage: function(l) {
20358
- return io(l).length === 0 ? [] : Sr(l);
20358
+ return to(l).length === 0 ? [] : Sr(l);
20359
20359
  }, projection: function(l) {
20360
20360
  const i = l.value, o = l.styleSpec, u = o.projection, d = l.style;
20361
20361
  if (a.K(i)) {
@@ -20388,7 +20388,7 @@ Use an identity property function instead: ${z}.`)];
20388
20388
  function Li(l, i = !1) {
20389
20389
  const o = l.value, u = l.valueSpec, d = l.styleSpec;
20390
20390
  if (u.expression) {
20391
- if (a.a6(a.L(o))) return wa(l);
20391
+ if (a.a6(a.L(o))) return ba(l);
20392
20392
  if (a.U(a.W(o))) return Sr(l);
20393
20393
  }
20394
20394
  if (u.type && xo[u.type]) {
@@ -20414,7 +20414,7 @@ Use an identity property function instead: ${z}.`)];
20414
20414
  return y;
20415
20415
  }
20416
20416
  function Ut({ key: l, value: i }) {
20417
- const o = io({ key: l, value: i });
20417
+ const o = to({ key: l, value: i });
20418
20418
  if (o.length) return o;
20419
20419
  const u = i;
20420
20420
  return u.indexOf("{fontstack}") === -1 && o.push(new a.V(l, i, '"glyphs" url must include a "{fontstack}" token')), u.indexOf("{range}") === -1 && o.push(new a.V(l, i, '"glyphs" url must include a "{range}" token')), o;
@@ -20919,7 +20919,7 @@ Use an identity property function instead: ${z}.`)];
20919
20919
  return o.addExtraBounds(i.extra_bounds), o;
20920
20920
  }
20921
20921
  }
20922
- class tn extends a.E {
20922
+ class en extends a.E {
20923
20923
  constructor(i, o, u, d) {
20924
20924
  if (super(), this.id = i, this.dispatcher = u, this.type = "vector", this.provider = o.provider, this.minzoom = 0, this.maxzoom = 22, this.scheme = "xyz", this.tileSize = 512, this.reparseOverscaled = !0, this.isTileClipped = !0, this._loaded = !1, Object.assign(this, a.aJ(o, ["url", "scheme", "tileSize", "promoteId"])), this._options = Object.assign({ type: "vector" }, o), this._collectResourceTiming = !!o.collectResourceTiming, this.tileSize !== 512) throw new Error("vector tile sources must have a tileSize of 512");
20925
20925
  this.setEventedParent(d), this._tileWorkers = {}, this._deduped = new a.aN();
@@ -21224,7 +21224,7 @@ Use an identity property function instead: ${z}.`)];
21224
21224
  return v.findLoadedParent(T, this.minzoom);
21225
21225
  }
21226
21226
  }
21227
- const Cc = { vector: tn, raster: yl, "raster-dem": class extends yl {
21227
+ const Cc = { vector: en, raster: yl, "raster-dem": class extends yl {
21228
21228
  constructor(l, i, o, u) {
21229
21229
  super(l, i, o, u), this.type = "raster-dem", this.maxzoom = 22, this._options = Object.assign({ type: "raster-dem" }, i), this.encoding = i.encoding || "mapbox";
21230
21230
  }
@@ -21704,7 +21704,7 @@ Use an identity property function instead: ${z}.`)];
21704
21704
  this.texturePerLayer.clear(), this.textureDescriptorPerLayer.clear(), this.fbo && (this.fbo.destroy(), delete this.fbo), delete this.request, delete this.requestParams, this._isHeaderLoaded = !1;
21705
21705
  }
21706
21706
  }
21707
- class Ta {
21707
+ class wa {
21708
21708
  constructor(i, o) {
21709
21709
  this.max = i, this.onRemove = o, this.reset();
21710
21710
  }
@@ -21828,7 +21828,7 @@ Use an identity property function instead: ${z}.`)];
21828
21828
  d.dataType === "source" && d.sourceDataType === "metadata" && (this._sourceLoaded = !0), this._sourceLoaded && !this._paused && d.dataType === "source" && d.sourceDataType === "content" && (this.reload(), this.transform && this.update(this.transform));
21829
21829
  }), o.on("error", () => {
21830
21830
  this._sourceErrored = !0;
21831
- }), this._source = o, this._tiles = {}, this._cache = new Ta(0, this._unloadTile.bind(this)), this._timers = {}, this._cacheTimers = {}, this._minTileCacheSize = o.minTileCacheSize, this._maxTileCacheSize = o.maxTileCacheSize, this._loadedParentTiles = {}, this.castsShadows = !1, this.tileCoverLift = 0, this._coveredTiles = {}, this._shadowCasterTiles = {}, this._state = new ch(), this._isRaster = this._source.type === "raster" || this._source.type === "raster-dem" || this._source.type === "raster-array" || this._source.type === "custom" && "_dataType" in this._source && this._source._dataType === "raster", this._supportsFading = this._source.type === "raster" || this._source.type === "raster-array" || this._source.type === "image" || this._source.type === "video" || this._source.type === "custom", this._isRasterElevatedOverTerrain = !1;
21831
+ }), this._source = o, this._tiles = {}, this._cache = new wa(0, this._unloadTile.bind(this)), this._timers = {}, this._cacheTimers = {}, this._minTileCacheSize = o.minTileCacheSize, this._maxTileCacheSize = o.maxTileCacheSize, this._loadedParentTiles = {}, this.castsShadows = !1, this.tileCoverLift = 0, this._coveredTiles = {}, this._shadowCasterTiles = {}, this._state = new ch(), this._isRaster = this._source.type === "raster" || this._source.type === "raster-dem" || this._source.type === "raster-array" || this._source.type === "custom" && "_dataType" in this._source && this._source._dataType === "raster", this._supportsFading = this._source.type === "raster" || this._source.type === "raster-array" || this._source.type === "image" || this._source.type === "video" || this._source.type === "custom", this._isRasterElevatedOverTerrain = !1;
21832
21832
  }
21833
21833
  onAdd(i) {
21834
21834
  this.map = i, this._minTileCacheSize = this._minTileCacheSize === void 0 && i ? i._minTileCacheSize : this._minTileCacheSize, this._maxTileCacheSize = this._maxTileCacheSize === void 0 && i ? i._maxTileCacheSize : this._maxTileCacheSize;
@@ -22155,10 +22155,10 @@ Use an identity property function instead: ${z}.`)];
22155
22155
  if (_) {
22156
22156
  const M = T.tileID.canonical;
22157
22157
  if (M.z === 0) {
22158
- const C = [Math.abs(a.aC(y, ...Sa(M, -1)) - y), Math.abs(a.aC(y, ...Sa(M, 1)) - y)];
22158
+ const C = [Math.abs(a.aC(y, ...Ta(M, -1)) - y), Math.abs(a.aC(y, ...Ta(M, 1)) - y)];
22159
22159
  I = [0, 2 * C.indexOf(Math.min(...C)) - 1];
22160
22160
  } else {
22161
- const C = [Math.abs(a.aC(y, ...Sa(M, -1)) - y), Math.abs(a.aC(y, ...Sa(M, 0)) - y), Math.abs(a.aC(y, ...Sa(M, 1)) - y)];
22161
+ const C = [Math.abs(a.aC(y, ...Ta(M, -1)) - y), Math.abs(a.aC(y, ...Ta(M, 0)) - y), Math.abs(a.aC(y, ...Ta(M, 1)) - y)];
22162
22162
  I = [C.indexOf(Math.min(...C)) - 1];
22163
22163
  }
22164
22164
  } else I = [0];
@@ -22242,7 +22242,7 @@ Use an identity property function instead: ${z}.`)];
22242
22242
  const o = Math.abs(2 * l.wrap) - +(l.wrap < 0), u = Math.abs(2 * i.wrap) - +(i.wrap < 0);
22243
22243
  return l.overscaledZ - i.overscaledZ || u - o || i.canonical.y - l.canonical.y || i.canonical.x - l.canonical.x;
22244
22244
  }
22245
- function Sa(l, i) {
22245
+ function Ta(l, i) {
22246
22246
  const o = 1 << l.z;
22247
22247
  return [l.x / o + i, (l.x + 1) / o + i];
22248
22248
  }
@@ -22346,14 +22346,14 @@ Use an identity property function instead: ${z}.`)];
22346
22346
  return l;
22347
22347
  }
22348
22348
  const Gt = { setStyle: "setStyle", addLayer: "addLayer", removeLayer: "removeLayer", setPaintProperty: "setPaintProperty", setLayoutProperty: "setLayoutProperty", setSlot: "setSlot", setFilter: "setFilter", addSource: "addSource", removeSource: "removeSource", setGeoJSONSourceData: "setGeoJSONSourceData", setLayerZoomRange: "setLayerZoomRange", setLayerProperty: "setLayerProperty", setCenter: "setCenter", setZoom: "setZoom", setBearing: "setBearing", setPitch: "setPitch", setSprite: "setSprite", setGlyphs: "setGlyphs", setTransition: "setTransition", setLight: "setLight", setTerrain: "setTerrain", setFog: "setFog", setSnow: "setSnow", setRain: "setRain", setCamera: "setCamera", setLights: "setLights", setProjection: "setProjection", addImport: "addImport", removeImport: "removeImport", updateImport: "updateImport", addIconset: "addIconset", removeIconset: "removeIconset" };
22349
- function Ia(l, i, o) {
22349
+ function Sa(l, i, o) {
22350
22350
  o.push({ command: Gt.addSource, args: [l, i[l]] });
22351
22351
  }
22352
- function Ea(l, i, o) {
22352
+ function Ia(l, i, o) {
22353
22353
  i.push({ command: Gt.removeSource, args: [l] }), o[l] = !0;
22354
22354
  }
22355
22355
  function Um(l, i, o, u) {
22356
- Ea(l, o, u), Ia(l, i, o);
22356
+ Ia(l, o, u), Sa(l, i, o);
22357
22357
  }
22358
22358
  function Rc(l, i, o) {
22359
22359
  let u;
@@ -22366,7 +22366,7 @@ Use an identity property function instead: ${z}.`)];
22366
22366
  for (_ in i = i || {}, l = l || {}) l.hasOwnProperty(_) && (a.b6(l[_], i[_]) || o.push({ command: m, args: [u, _, i[_], d] }));
22367
22367
  for (_ in i) i.hasOwnProperty(_) && !l.hasOwnProperty(_) && (a.b6(l[_], i[_]) || o.push({ command: m, args: [u, _, i[_], d] }));
22368
22368
  }
22369
- function Aa(l) {
22369
+ function Ea(l) {
22370
22370
  return l.id;
22371
22371
  }
22372
22372
  function vl(l, i) {
@@ -22540,11 +22540,11 @@ Use an identity property function instead: ${z}.`)];
22540
22540
  else a.aD(y, d.labelPlaneMatrix, l);
22541
22541
  return y;
22542
22542
  }
22543
- function ro(l, i, o, u, d, m, _) {
22543
+ function io(l, i, o, u, d, m, _) {
22544
22544
  const y = hs(l, i, o, u, d, m, _);
22545
22545
  return m.name === "globe" && o || (y[2] = y[6] = y[10] = y[14] = 0), y;
22546
22546
  }
22547
- function Ca(l, i, o, u, d, m, _) {
22547
+ function Aa(l, i, o, u, d, m, _) {
22548
22548
  if (o) {
22549
22549
  if (m.name === "globe") {
22550
22550
  const y = hs(l, i, o, u, d, m, _);
@@ -22580,7 +22580,7 @@ Use an identity property function instead: ${z}.`)];
22580
22580
  for (let re = 0; re < $.length; re++) {
22581
22581
  const H = $.get(re), { numGlyphs: X, writingMode: ee } = H;
22582
22582
  if (ee !== a.bk.vertical || Y || oe === a.bk.horizontal || (Y = !0), oe = ee, (H.hidden || ee === a.bk.vertical) && !Y) {
22583
- Ma(X, V);
22583
+ Ca(X, V);
22584
22584
  continue;
22585
22585
  }
22586
22586
  Y = !1;
@@ -22594,17 +22594,17 @@ Use an identity property function instead: ${z}.`)];
22594
22594
  }
22595
22595
  const le = [ge, Pe, Le, 1];
22596
22596
  if (a.aE(le, le, i), !bl(le, L)) {
22597
- Ma(X, V);
22597
+ Ca(X, V);
22598
22598
  continue;
22599
22599
  }
22600
22600
  const xe = le[3], we = zc(o.transform.getCameraToCenterDistance(M.projection), xe), Se = a.bl(C, D, H), Ze = _ ? Se / we : Se * we, Ne = Gn(ge, Pe, Le, d);
22601
22601
  if (Ne[3] <= 0) {
22602
- Ma(X, V);
22602
+ Ca(X, V);
22603
22603
  continue;
22604
22604
  }
22605
22605
  let Ve = {};
22606
22606
  const Re = a.ap(l.layers[0].layout.get("text-max-angle")), tt = Math.cos(Re), ot = _ ? null : fe, Ke = mh(H, Ze, !1, y, i, d, m, l.glyphOffsetArray, q, V, N, Ne, de, Ve, j, ot, M.projection, T, _, tt);
22607
- Y = Ke.useVertical, ot && Ke.needsFlipping && (Ve = {}), (Ke.notEnoughRoom || Y || Ke.needsFlipping && mh(H, Ze, !0, y, i, d, m, l.glyphOffsetArray, q, V, N, Ne, de, Ve, j, ot, M.projection, T, _, tt).notEnoughRoom) && Ma(X, V);
22607
+ Y = Ke.useVertical, ot && Ke.needsFlipping && (Ve = {}), (Ke.notEnoughRoom || Y || Ke.needsFlipping && mh(H, Ze, !0, y, i, d, m, l.glyphOffsetArray, q, V, N, Ne, de, Ve, j, ot, M.projection, T, _, tt).notEnoughRoom) && Ca(X, V);
22608
22608
  }
22609
22609
  u ? (l.text.dynamicLayoutVertexBuffer.updateData(V), N && l.text.globeExtVertexBuffer && l.text.globeExtVertexBuffer.updateData(N)) : (l.icon.dynamicLayoutVertexBuffer.updateData(V), N && l.icon.globeExtVertexBuffer && l.icon.globeExtVertexBuffer.updateData(N));
22610
22610
  }
@@ -22698,7 +22698,7 @@ Use an identity property function instead: ${z}.`)];
22698
22698
  const Ve = oe + Math.atan2(Ne, Ze);
22699
22699
  return se.push(we), D && be.push(xe), { point: we, angle: Ve, path: se, tilePath: be, up: Se };
22700
22700
  }
22701
- function Ma(l, i) {
22701
+ function Ca(l, i) {
22702
22702
  const o = i.length, u = o + 4 * l;
22703
22703
  i.resize(u), i.float32.fill(-1 / 0, 4 * o, 4 * u);
22704
22704
  }
@@ -22706,10 +22706,10 @@ Use an identity property function instead: ${z}.`)];
22706
22706
  const u = i[0], d = i[1];
22707
22707
  return l[0] = o[0] * u + o[4] * d + o[12], l[1] = o[1] * u + o[5] * d + o[13], l[3] = o[3] * u + o[7] * d + o[15], l;
22708
22708
  }
22709
- const no = 100;
22709
+ const ro = 100;
22710
22710
  class Bc {
22711
22711
  constructor(i, o, u = new fh(i.width + 200, i.height + 200, 25), d = new fh(i.width + 200, i.height + 200, 25)) {
22712
- this.transform = i, this.grid = u, this.ignoredGrid = d, this.pitchfactor = Math.cos(i._pitch) * i.cameraToCenterDistance, this.screenRightBoundary = i.width + no, this.screenBottomBoundary = i.height + no, this.gridRightBoundary = i.width + 200, this.gridBottomBoundary = i.height + 200, this.fogState = o, this.clippedSymbols = /* @__PURE__ */ new Map();
22712
+ this.transform = i, this.grid = u, this.ignoredGrid = d, this.pitchfactor = Math.cos(i._pitch) * i.cameraToCenterDistance, this.screenRightBoundary = i.width + ro, this.screenBottomBoundary = i.height + ro, this.gridRightBoundary = i.width + 200, this.gridBottomBoundary = i.height + 200, this.fogState = o, this.clippedSymbols = /* @__PURE__ */ new Map();
22713
22713
  }
22714
22714
  clearClippedSymbolsForBucket(i) {
22715
22715
  this.clippedSymbols.delete(i);
@@ -22764,7 +22764,7 @@ Use an identity property function instead: ${z}.`)];
22764
22764
  let Nt = 0;
22765
22765
  Nt = et.length <= 0.5 * tt ? 1 : Math.ceil(et.paddedLength / ut) + 1;
22766
22766
  for (let ri = 0; ri < Nt; ri++) {
22767
- const yi = ri / Math.max(Nt - 1, 1), li = et.lerp(yi), Zt = li.x + no, St = li.y + no;
22767
+ const yi = ri / Math.max(Nt - 1, 1), li = et.lerp(yi), Zt = li.x + ro, St = li.y + ro;
22768
22768
  N.push(Zt, St, tt, 0);
22769
22769
  const It = Zt - tt, ci = St - tt, wi = Zt + tt, qt = St + tt;
22770
22770
  if (Re = Re && this.isOffscreen(It, ci, wi, qt), Ve = Ve || this.isInsideGrid(It, ci, wi, qt), !o && this.grid.hitTestCircle(Zt, St, tt, D) && (Ne = !0, !M)) return { circles: [], offscreen: !1, collisionDetected: Ne, occluded: !1 };
@@ -22778,7 +22778,7 @@ Use an identity property function instead: ${z}.`)];
22778
22778
  const o = [];
22779
22779
  let u = 1 / 0, d = 1 / 0, m = -1 / 0, _ = -1 / 0;
22780
22780
  for (const I of i) {
22781
- const M = new a.P(I.x + no, I.y + no);
22781
+ const M = new a.P(I.x + ro, I.y + ro);
22782
22782
  u = Math.min(u, M.x), d = Math.min(d, M.y), m = Math.max(m, M.x), _ = Math.max(_, M.y), o.push(M);
22783
22783
  }
22784
22784
  const y = this.grid.query(u, d, m, _).concat(this.ignoredGrid.query(u, d, m, _)), v = {}, T = {};
@@ -22807,10 +22807,10 @@ Use an identity property function instead: ${z}.`)];
22807
22807
  return a.ah($, $, q), hi(C, a.ai($), N.pitch, N._fov);
22808
22808
  })(this.fogState, o, u, d, m.toUnwrapped(), this.transform) > 0.9)) : mt(v, v, i);
22809
22809
  const I = v[3];
22810
- return { point: new a.P((v[0] / I + 1) / 2 * this.transform.width + no, (-v[1] / I + 1) / 2 * this.transform.height + no), perspectiveRatio: Math.min(0.5 + this.transform.getCameraToCenterDistance(y) / I * 0.5, 1.5), signedDistanceFromCamera: I, occluded: _ && v[2] > I || T };
22810
+ return { point: new a.P((v[0] / I + 1) / 2 * this.transform.width + ro, (-v[1] / I + 1) / 2 * this.transform.height + ro), perspectiveRatio: Math.min(0.5 + this.transform.getCameraToCenterDistance(y) / I * 0.5, 1.5), signedDistanceFromCamera: I, occluded: _ && v[2] > I || T };
22811
22811
  }
22812
22812
  isOffscreen(i, o, u, d) {
22813
- return u < no || i >= this.screenRightBoundary || d < no || o > this.screenBottomBoundary;
22813
+ return u < ro || i >= this.screenRightBoundary || d < ro || o > this.screenBottomBoundary;
22814
22814
  }
22815
22815
  isInsideGrid(i, o, u, d) {
22816
22816
  return u >= 0 && i < this.gridRightBoundary && d >= 0 && o < this.gridBottomBoundary;
@@ -22885,11 +22885,11 @@ Use an identity property function instead: ${z}.`)];
22885
22885
  var L, V, N;
22886
22886
  const q = v.get("text-pitch-alignment") === "map", $ = v.get("text-rotation-alignment") === "map";
22887
22887
  o.compileFilter(o.options);
22888
- const j = o.dynamicFilter(), oe = o.dynamicFilterNeedsFeature(), Y = o.dynamicFilterNeedsGeometry(), re = this.transform.calculatePixelsToTileUnitsMatrix(u), H = ro(z, u.tileID.canonical, q, $, this.transform, _.getProjection(), re);
22888
+ const j = o.dynamicFilter(), oe = o.dynamicFilterNeedsFeature(), Y = o.dynamicFilterNeedsGeometry(), re = this.transform.calculatePixelsToTileUnitsMatrix(u), H = io(z, u.tileID.canonical, q, $, this.transform, _.getProjection(), re);
22889
22889
  let X = null;
22890
22890
  const ee = _.getProjection().createInversionMatrix(this.transform, u.tileID.canonical);
22891
22891
  if (q) {
22892
- const xe = Ca(z, u.tileID.canonical, q, $, this.transform, _.getProjection(), re);
22892
+ const xe = Aa(z, u.tileID.canonical, q, $, this.transform, _.getProjection(), re);
22893
22893
  X = a.aD([], this.transform.labelPlaneMatrix, xe);
22894
22894
  }
22895
22895
  let de = null;
@@ -22967,12 +22967,12 @@ Use an identity property function instead: ${z}.`)];
22967
22967
  Qt.indexOf(Mi.anchor) > 0 && (Qt = Qt.filter((gn) => gn !== Mi.anchor), Qt.unshift(Mi.anchor));
22968
22968
  }
22969
22969
  const qi = (Mi, gn, bs) => {
22970
- const na = _.getSymbolInstanceTextSize(q, ut, this.transform.zoom, At), oa = (Mi.x2 - Mi.x1) * na + 2 * Mi.padding, Ya = (Mi.y2 - Mi.y1) * na + 2 * Mi.padding, Ko = ut.hasIconTextFit && !X ? gn : null;
22970
+ const na = _.getSymbolInstanceTextSize(q, ut, this.transform.zoom, At), oa = (Mi.x2 - Mi.x1) * na + 2 * Mi.padding, Xa = (Mi.y2 - Mi.y1) * na + 2 * Mi.padding, Ko = ut.hasIconTextFit && !X ? gn : null;
22971
22971
  Ko && _r(Ko);
22972
22972
  let Po = { box: [], offscreen: !1, occluded: !1 };
22973
- const Ka = H ? 2 * Qt.length : Qt.length;
22974
- for (let nn = 0; nn < Ka; ++nn) {
22975
- const ws = this.attemptAnchorPlacement(Qt[nn % Qt.length], Mi, z, L, ot, oa, Ya, na, ee, se, D, T, j, nn >= Qt.length, ut, At, _, bs, Ko, q, $);
22973
+ const Ya = H ? 2 * Qt.length : Qt.length;
22974
+ for (let rn = 0; rn < Ya; ++rn) {
22975
+ const ws = this.attemptAnchorPlacement(Qt[rn % Qt.length], Mi, z, L, ot, oa, Xa, na, ee, se, D, T, j, rn >= Qt.length, ut, At, _, bs, Ko, q, $);
22976
22976
  if (ws && (Po = ws.placedGlyphBoxes, Po && Po.box && Po.box.length)) {
22977
22977
  Zt = !0, qt = ws.shift;
22978
22978
  break;
@@ -23105,7 +23105,7 @@ Use an identity property function instead: ${z}.`)];
23105
23105
  if (tt = a.bC(Ke, ot.footprint), tt) break;
23106
23106
  }
23107
23107
  if (tt && this.collisionIndex.markSymbolAsClipped(i.bucketInstanceId, X.featureIndex), Se) {
23108
- const ot = tt ? Go : Pa(we.text);
23108
+ const ot = tt ? Go : Ma(we.text);
23109
23109
  Y(i.text, ee, Ve ? Go : ot), Y(i.text, de, Re ? Go : ot);
23110
23110
  const Ke = we.text.isHidden(), { leftJustifiedTextSymbolIndex: et, centerJustifiedTextSymbolIndex: ft, rightJustifiedTextSymbolIndex: xt, verticalPlacedTextSymbolIndex: gt } = X, Et = i.text.placedSymbolArray, ut = Ke || Ve ? 1 : 0;
23111
23111
  et >= 0 && (Et.get(et).hidden = ut), ft >= 0 && (Et.get(ft).hidden = ut), xt >= 0 && (Et.get(xt).hidden = ut), gt >= 0 && (Et.get(gt).hidden = Ke || Re ? 1 : 0);
@@ -23115,7 +23115,7 @@ Use an identity property function instead: ${z}.`)];
23115
23115
  yt && (this.markUsedJustification(i, "left", X, yt), this.markUsedOrientation(i, yt, X));
23116
23116
  }
23117
23117
  if (Ze) {
23118
- const ot = tt ? Go : Pa(we.icon), { placedIconSymbolIndex: Ke, verticalPlacedIconSymbolIndex: et } = X, ft = i.icon.placedSymbolArray, xt = we.icon.isHidden() ? 1 : 0;
23118
+ const ot = tt ? Go : Ma(we.icon), { placedIconSymbolIndex: Ke, verticalPlacedIconSymbolIndex: et } = X, ft = i.icon.placedSymbolArray, xt = we.icon.isHidden() ? 1 : 0;
23119
23119
  Ke >= 0 && (Y(i.icon, be, Ve ? Go : ot), ft.get(Ke).hidden = xt), et >= 0 && (Y(i.icon, X.numVerticalIconVertices, Re ? Go : ot), ft.get(et).hidden = xt);
23120
23120
  }
23121
23121
  if (i.hasIconCollisionBoxData() || i.hasTextCollisionBoxData()) {
@@ -23163,7 +23163,7 @@ Use an identity property function instead: ${z}.`)];
23163
23163
  l.emplaceBack(i ? 1 : 0, o ? 1 : 0, m || 0, _ || 0, u, d ? 1 : 0), l.emplaceBack(i ? 1 : 0, o ? 1 : 0, m || 0, _ || 0, u, d ? 1 : 0), l.emplaceBack(i ? 1 : 0, o ? 1 : 0, m || 0, _ || 0, u, d ? 1 : 0), l.emplaceBack(i ? 1 : 0, o ? 1 : 0, m || 0, _ || 0, u, d ? 1 : 0);
23164
23164
  }
23165
23165
  const wl = Math.pow(2, 25), Tl = Math.pow(2, 24), kr = Math.pow(2, 17), rr = Math.pow(2, 16), Gm = Math.pow(2, 9), Sl = Math.pow(2, 8), gh = Math.pow(2, 1);
23166
- function Pa(l) {
23166
+ function Ma(l) {
23167
23167
  if (l.opacity === 0 && !l.placed) return 0;
23168
23168
  if (l.opacity === 1 && l.placed) return 4294967295;
23169
23169
  const i = l.placed ? 1 : 0, o = Math.floor(127 * l.opacity);
@@ -23250,7 +23250,7 @@ Use an identity property function instead: ${z}.`)];
23250
23250
  }
23251
23251
  }
23252
23252
  }
23253
- class rn {
23253
+ class tn {
23254
23254
  constructor() {
23255
23255
  this.maxCrossTileID = 0;
23256
23256
  }
@@ -23311,9 +23311,9 @@ Use an identity property function instead: ${z}.`)];
23311
23311
  return o;
23312
23312
  }
23313
23313
  }
23314
- class Da {
23314
+ class Pa {
23315
23315
  constructor() {
23316
- this.layerIndexes = {}, this.crossTileIDs = new rn(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};
23316
+ this.layerIndexes = {}, this.crossTileIDs = new tn(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};
23317
23317
  }
23318
23318
  addLayer(i, o, u, d) {
23319
23319
  let m = this.layerIndexes[i.fqid];
@@ -23478,7 +23478,7 @@ Use an identity property function instead: ${z}.`)];
23478
23478
  }
23479
23479
  }
23480
23480
  const Zm = (l, i) => ({ u_matrix: l, u_ground_shadow_factor: i });
23481
- class oo {
23481
+ class no {
23482
23482
  constructor(i = 0, o = 0, u = 0, d = 0) {
23483
23483
  if (isNaN(i) || i < 0 || isNaN(o) || o < 0 || isNaN(u) || u < 0 || isNaN(d) || d < 0) throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");
23484
23484
  this.top = i, this.bottom = o, this.left = u, this.right = d;
@@ -23494,7 +23494,7 @@ Use an identity property function instead: ${z}.`)];
23494
23494
  return this.top === i.top && this.bottom === i.bottom && this.left === i.left && this.right === i.right;
23495
23495
  }
23496
23496
  clone() {
23497
- return new oo(this.top, this.bottom, this.left, this.right);
23497
+ return new no(this.top, this.bottom, this.left, this.right);
23498
23498
  }
23499
23499
  toJSON() {
23500
23500
  return { top: this.top, bottom: this.bottom, left: this.left, right: this.right };
@@ -23503,7 +23503,7 @@ Use an identity property function instead: ${z}.`)];
23503
23503
  const Gs = 15;
23504
23504
  class Ml {
23505
23505
  constructor(i, o, u, d, m, _, y) {
23506
- this.tileSize = 512, this._renderWorldCopies = m === void 0 || m, this._minZoom = i || 0, this._maxZoom = o || 22, this._minPitch = u ?? 0, this._maxPitch = d ?? 60, this.setProjection(_), this.setMaxBounds(y), this.width = 0, this.height = 0, this._center = new a.aU(0, 0), this.zoom = 0, this.angle = 0, this._fov = 0.6435011087932844, this._pitch = 0, this._nearZ = 0, this._farZ = 0, this._nearClipOffset = 0, this._unmodified = !0, this._edgeInsets = new oo(), this._projMatrixCache = {}, this._alignedProjMatrixCache = {}, this._fogTileMatrixCache = {}, this._expandedProjMatrixCache = {}, this._distanceTileDataCache = {}, this._camera = new Cl(), this._centerAltitude = 0, this._averageElevation = 0, this.cameraElevationReference = "ground", this._pixelsPerMercatorPixel = 1, this.globeRadius = 0, this.globeCenterInViewSpace = [0, 0, 0], this._tileCoverLift = 0, this.freezeTileCoverage = !1, this._horizonShift = 0.1, this._orthographicProjectionAtLowPitch = !1, this._allowWorldUnderZoom = !1;
23506
+ this.tileSize = 512, this._renderWorldCopies = m === void 0 || m, this._minZoom = i || 0, this._maxZoom = o || 22, this._minPitch = u ?? 0, this._maxPitch = d ?? 60, this.setProjection(_), this.setMaxBounds(y), this.width = 0, this.height = 0, this._center = new a.aU(0, 0), this.zoom = 0, this.angle = 0, this._fov = 0.6435011087932844, this._pitch = 0, this._nearZ = 0, this._farZ = 0, this._nearClipOffset = 0, this._unmodified = !0, this._edgeInsets = new no(), this._projMatrixCache = {}, this._alignedProjMatrixCache = {}, this._fogTileMatrixCache = {}, this._expandedProjMatrixCache = {}, this._distanceTileDataCache = {}, this._camera = new Cl(), this._centerAltitude = 0, this._averageElevation = 0, this.cameraElevationReference = "ground", this._pixelsPerMercatorPixel = 1, this.globeRadius = 0, this.globeCenterInViewSpace = [0, 0, 0], this._tileCoverLift = 0, this.freezeTileCoverage = !1, this._horizonShift = 0.1, this._orthographicProjectionAtLowPitch = !1, this._allowWorldUnderZoom = !1;
23507
23507
  }
23508
23508
  clone() {
23509
23509
  const i = new Ml(this._minZoom, this._maxZoom, this._minPitch, this.maxPitch, this._renderWorldCopies, this.getProjection(), this.maxBounds);
@@ -24471,7 +24471,7 @@ Use an identity property function instead: ${z}.`)];
24471
24471
  if (!m || !_) return;
24472
24472
  const y = [], v = dr(i, i.longestCutoffRange);
24473
24473
  v.shouldRenderCutoff && y.push("RENDER_CUTOFF"), y.push("RENDER_SHADOWS"), this.useNormalOffset && y.push("NORMAL_OFFSET");
24474
- const T = so(o, m, _), I = new rt(d.LEQUAL, rt.ReadOnly, i.depthRangeFor3D), M = new _t({ func: d.EQUAL, mask: 255 }, 0, 255, d.KEEP, d.KEEP, d.KEEP);
24474
+ const T = oo(o, m, _), I = new rt(d.LEQUAL, rt.ReadOnly, i.depthRangeFor3D), M = new _t({ func: d.EQUAL, mask: 255 }, 0, 255, d.KEEP, d.KEEP, d.KEEP);
24475
24475
  for (const C of this._groundShadowTiles) {
24476
24476
  const D = C.toUnwrapped(), z = i.isTileAffectedByFog(C), L = i.getOrCreateProgram("groundShadow", { defines: y, overrideFog: z });
24477
24477
  this.setupShadows(D, L), i.uploadCommonUniforms(u, L, D, null, v);
@@ -24546,7 +24546,7 @@ Use an identity property function instead: ${z}.`)];
24546
24546
  const u = a.cR([o[0], o[1], o[2]]);
24547
24547
  return a.cQ(u.x, u.y, u.z);
24548
24548
  }
24549
- function so(l, i, o) {
24549
+ function oo(l, i, o) {
24550
24550
  const u = i.properties.get("color-use-theme") === "none", d = i.properties.get("color"), m = i.properties.get("intensity"), _ = i.properties.get("direction"), y = [_.x, _.y, _.z], v = o.properties.get("color-use-theme") === "none", T = o.properties.get("color"), I = o.properties.get("intensity"), M = Math.max(a.bi([0, 0, 1], y), 0), C = [0, 0, 0];
24551
24551
  a.bJ(C, T.toPremultipliedRenderColor(v ? null : l.getLut(i.scope)).toArray01Linear().slice(0, 3), I);
24552
24552
  const D = [0, 0, 0];
@@ -24690,7 +24690,7 @@ Use an identity property function instead: ${z}.`)];
24690
24690
  for (const u in this.models[o]) this.models[o][u].model && this.models[o][u].model.upload(i.context);
24691
24691
  }
24692
24692
  }
24693
- const xh = a.a8.colorTheme, Ra = new a.ab({ data: new a.ac(xh.data) });
24693
+ const xh = a.a8.colorTheme, Da = new a.ab({ data: new a.ac(xh.data) });
24694
24694
  function Sf(l) {
24695
24695
  if (!l.metadata || !l.metadata.content_area) return;
24696
24696
  const i = a.o.devicePixelRatio, { left: o, top: u, width: d, height: m } = l.metadata.content_area, _ = o * i, y = u * i;
@@ -24842,11 +24842,11 @@ Use an identity property function instead: ${z}.`)];
24842
24842
  const Zs = (l, i) => Xe(l, i && i.filter((o) => o.identifier !== "source.canvas")), Hm = a.aJ(Gt, ["addLayer", "removeLayer", "setLights", "setPaintProperty", "setLayoutProperty", "setLayerProperty", "setSlot", "setFilter", "addSource", "removeSource", "setLayerZoomRange", "setLight", "setTransition", "setGeoJSONSourceData", "setTerrain", "setFog", "setSnow", "setRain", "setProjection", "setCamera", "addImport", "removeImport", "updateImport", "addIconset", "removeIconset"]), If = a.aJ(Gt, ["setCenter", "setZoom", "setBearing", "setPitch"]), bh = /* @__PURE__ */ new Set(["background", "sky", "slot", "custom"]), jc = { version: 8, layers: [], sources: {} }, wh = { duration: 300, delay: 0 };
24843
24843
  class $n extends a.E {
24844
24844
  constructor(i, o = {}) {
24845
- if (super(), this.map = i, this.scope = o.scope || "", this.globalId = null, this.fragments = [], this.importDepth = o.importDepth || 0, this.importsCache = o.importsCache || /* @__PURE__ */ new Map(), this.resolvedImports = o.resolvedImports || /* @__PURE__ */ new Set(), this.transition = Object.assign({}, wh), this._buildingIndex = new xl(this), this.crossTileSymbolIndex = new Da(), this._mergedOrder = [], this._drapedFirstOrder = [], this._mergedLayers = {}, this._mergedIndoor = {}, this._mergedSourceCaches = {}, this._mergedOtherSourceCaches = {}, this._mergedSymbolSourceCaches = {}, this._mergedFillExtrusionSourceCaches = {}, this._clipLayerPresent = !1, this._hasAppearances = !1, this._has3DLayers = !1, this._hasCircleLayers = !1, this._hasSymbolLayers = !1, this._importedAsBasemap = !1, this._changes = o.styleChanges || new Ic(), this._hasDataDrivenEmissive = !1, this.indoorManager = new $m(this), this.dispatcher = o.dispatcher ? o.dispatcher : new Tr(xa(), this), this.map.painter && this.map.painter.context) {
24845
+ if (super(), this.map = i, this.scope = o.scope || "", this.globalId = null, this.fragments = [], this.importDepth = o.importDepth || 0, this.importsCache = o.importsCache || /* @__PURE__ */ new Map(), this.resolvedImports = o.resolvedImports || /* @__PURE__ */ new Set(), this.transition = Object.assign({}, wh), this._buildingIndex = new xl(this), this.crossTileSymbolIndex = new Pa(), this._mergedOrder = [], this._drapedFirstOrder = [], this._mergedLayers = {}, this._mergedIndoor = {}, this._mergedSourceCaches = {}, this._mergedOtherSourceCaches = {}, this._mergedSymbolSourceCaches = {}, this._mergedFillExtrusionSourceCaches = {}, this._clipLayerPresent = !1, this._hasAppearances = !1, this._has3DLayers = !1, this._hasCircleLayers = !1, this._hasSymbolLayers = !1, this._importedAsBasemap = !1, this._changes = o.styleChanges || new Ic(), this._hasDataDrivenEmissive = !1, this.indoorManager = new $m(this), this.dispatcher = o.dispatcher ? o.dispatcher : new Tr(ya(), this), this.map.painter && this.map.painter.context) {
24846
24846
  const d = this.map.painter.context.maxUniformBufferBindings, m = Math.floor(this.map.painter.context.maxUniformBlockSize / 4);
24847
24847
  this.dispatcher.broadcast("setContextParams", { maxBindingPoints: d, maxUniformBlockSizeDwords: m, disableSymbolUBO: this.map.painter.context.disableSymbolUBO });
24848
24848
  }
24849
- o.imageManager ? this.imageManager = o.imageManager : (this.imageManager = new va(this.map._spriteFormat), this.imageManager.setEventedParent(this)), this.imageManager.addScope(this.scope), this.glyphManager = o.glyphManager ? o.glyphManager : new a.d2(i._requestManager, o.localFontFamily ? a.d3.all : o.localIdeographFontFamily ? a.d3.ideographs : a.d3.none, o.localFontFamily || o.localIdeographFontFamily, o.useServerFontComposition), o.modelManager ? this.modelManager = o.modelManager : (this.modelManager = new qm(i._requestManager), this.modelManager.setEventedParent(this)), this._layers = {}, this._sourceCaches = {}, this._otherSourceCaches = {}, this._symbolSourceCaches = {}, this._fillExtrusionSourceCaches = {}, this._loaded = !1, this._precompileDone = !1, this._shouldPrecompile = !1, this._availableImages = [], this._availableModels = {}, this._order = [], this._markersNeedUpdate = !1, this.options = o.configOptions ? o.configOptions : /* @__PURE__ */ new Map(), this._configDependentLayers = o.configDependentLayers ? o.configDependentLayers : /* @__PURE__ */ new Set(), this._indoorDependentLayers = o.indoorDependentLayers ? o.indoorDependentLayers : /* @__PURE__ */ new Set(), this._config = o.config, this._styleColorTheme = { lut: null, lutLoading: !1, lutLoadingCorrelationID: 0, colorTheme: null, colorThemeOverride: o.colorThemeOverride }, this._styleColorThemeForScope = {}, this._initialConfig = o.initialConfig, this.dispatcher.broadcast("setReferrer", a.d4()), this.dispatcher.broadcast("setConfig", a.d5());
24849
+ o.imageManager ? this.imageManager = o.imageManager : (this.imageManager = new xa(this.map._spriteFormat), this.imageManager.setEventedParent(this)), this.imageManager.addScope(this.scope), this.glyphManager = o.glyphManager ? o.glyphManager : new a.d2(i._requestManager, o.localFontFamily ? a.d3.all : o.localIdeographFontFamily ? a.d3.ideographs : a.d3.none, o.localFontFamily || o.localIdeographFontFamily, o.useServerFontComposition), o.modelManager ? this.modelManager = o.modelManager : (this.modelManager = new qm(i._requestManager), this.modelManager.setEventedParent(this)), this._layers = {}, this._sourceCaches = {}, this._otherSourceCaches = {}, this._symbolSourceCaches = {}, this._fillExtrusionSourceCaches = {}, this._loaded = !1, this._precompileDone = !1, this._shouldPrecompile = !1, this._availableImages = [], this._availableModels = {}, this._order = [], this._markersNeedUpdate = !1, this.options = o.configOptions ? o.configOptions : /* @__PURE__ */ new Map(), this._configDependentLayers = o.configDependentLayers ? o.configDependentLayers : /* @__PURE__ */ new Set(), this._indoorDependentLayers = o.indoorDependentLayers ? o.indoorDependentLayers : /* @__PURE__ */ new Set(), this._config = o.config, this._styleColorTheme = { lut: null, lutLoading: !1, lutLoadingCorrelationID: 0, colorTheme: null, colorThemeOverride: o.colorThemeOverride }, this._styleColorThemeForScope = {}, this._initialConfig = o.initialConfig, this.dispatcher.broadcast("setReferrer", a.d4()), this.dispatcher.broadcast("setConfig", a.d5());
24850
24850
  const u = this;
24851
24851
  this._rtlTextPluginCallback = $n.registerForPluginStateChange((d) => {
24852
24852
  u.dispatcher.broadcast("syncRTLPluginState", { pluginStatus: d.pluginStatus, pluginURL: d.pluginURL }, (m, _) => {
@@ -25128,7 +25128,7 @@ Use an identity property function instead: ${z}.`)];
25128
25128
  return i.data ? (function(o, u, d) {
25129
25129
  const m = Object.assign({}, u);
25130
25130
  for (const y of Object.keys(xh)) m[y] === void 0 && (m[y] = xh[y].default);
25131
- const _ = new a.aa(Ra, o, new Map(d));
25131
+ const _ = new a.aa(Da, o, new Map(d));
25132
25132
  return _.setTransitionOrValue(m, d), _.untransitioned().possiblyEvaluate(new a.ae(0, { worldview: void 0 }));
25133
25133
  })(this.scope, i, this.options).get("data") : null;
25134
25134
  }
@@ -25415,7 +25415,7 @@ Use an identity property function instead: ${z}.`)];
25415
25415
  if (!a.b6(_.version, y.version)) return [{ command: Gt.setStyle, args: [y] }];
25416
25416
  if (a.b6(_.center, y.center) || v.push({ command: Gt.setCenter, args: [y.center] }), a.b6(_.zoom, y.zoom) || v.push({ command: Gt.setZoom, args: [y.zoom] }), a.b6(_.bearing, y.bearing) || v.push({ command: Gt.setBearing, args: [y.bearing] }), a.b6(_.pitch, y.pitch) || v.push({ command: Gt.setPitch, args: [y.pitch] }), a.b6(_.sprite, y.sprite) || v.push({ command: Gt.setSprite, args: [y.sprite] }), a.b6(_.glyphs, y.glyphs) || v.push({ command: Gt.setGlyphs, args: [y.glyphs] }), a.b6(_.imports, y.imports) || (function(D = [], z = [], L) {
25417
25417
  z = z || [];
25418
- const V = (D = D || []).map(Aa), N = z.map(Aa), q = D.reduce(vl, {}), $ = z.reduce(vl, {}), j = V.slice();
25418
+ const V = (D = D || []).map(Ea), N = z.map(Ea), q = D.reduce(vl, {}), $ = z.reduce(vl, {}), j = V.slice();
25419
25419
  let oe, Y, re, H;
25420
25420
  for (oe = 0, Y = 0; oe < V.length; oe++) re = V[oe], $.hasOwnProperty(re) ? Y++ : (L.push({ command: Gt.removeImport, args: [re] }), j.splice(j.indexOf(re, Y), 1));
25421
25421
  for (oe = 0, Y = 0; oe < N.length; oe++) re = N[N.length - 1 - oe], j[j.length - 1 - oe] !== re && (q.hasOwnProperty(re) ? (L.push({ command: Gt.removeImport, args: [re] }), j.splice(j.lastIndexOf(re, j.length - Y), 1)) : Y++, H = j[j.length - oe], L.push({ command: Gt.addImport, args: [$[re], H] }), j.splice(j.length - oe, 0, re));
@@ -25435,11 +25435,11 @@ Use an identity property function instead: ${z}.`)];
25435
25435
  const T = {}, I = [];
25436
25436
  (function(D, z, L, V) {
25437
25437
  let N;
25438
- for (N in z = z || {}, D = D || {}) D.hasOwnProperty(N) && (z.hasOwnProperty(N) || Ea(N, L, V));
25438
+ for (N in z = z || {}, D = D || {}) D.hasOwnProperty(N) && (z.hasOwnProperty(N) || Ia(N, L, V));
25439
25439
  for (N in z) {
25440
25440
  if (!z.hasOwnProperty(N)) continue;
25441
25441
  const q = z[N];
25442
- D.hasOwnProperty(N) ? a.b6(D[N], q) || (D[N].type === "geojson" && q.type === "geojson" && Rc(D, z, N) ? L.push({ command: Gt.setGeoJSONSourceData, args: [N, q.data] }) : Um(N, z, L, V)) : Ia(N, z, L);
25442
+ D.hasOwnProperty(N) ? a.b6(D[N], q) || (D[N].type === "geojson" && q.type === "geojson" && Rc(D, z, N) ? L.push({ command: Gt.setGeoJSONSourceData, args: [N, q.data] }) : Um(N, z, L, V)) : Sa(N, z, L);
25443
25443
  }
25444
25444
  })(_.sources, y.sources, I, T);
25445
25445
  const M = [];
@@ -25449,7 +25449,7 @@ Use an identity property function instead: ${z}.`)];
25449
25449
  let C = _.terrain;
25450
25450
  C && T[C.source] && (v.push({ command: Gt.setTerrain, args: [void 0] }), C = void 0), v = v.concat(I), a.b6(C, y.terrain) || v.push({ command: Gt.setTerrain, args: [y.terrain] }), (function(D, z, L) {
25451
25451
  z = z || [];
25452
- const V = (D = D || []).map(Aa), N = z.map(Aa), q = D.reduce(vl, {}), $ = z.reduce(vl, {}), j = V.slice(), oe = /* @__PURE__ */ Object.create(null);
25452
+ const V = (D = D || []).map(Ea), N = z.map(Ea), q = D.reduce(vl, {}), $ = z.reduce(vl, {}), j = V.slice(), oe = /* @__PURE__ */ Object.create(null);
25453
25453
  let Y, re, H, X, ee, de, se;
25454
25454
  for (Y = 0, re = 0; Y < V.length; Y++) H = V[Y], $.hasOwnProperty(H) ? re++ : (L.push({ command: Gt.removeLayer, args: [H] }), j.splice(j.indexOf(H, re), 1));
25455
25455
  for (Y = 0, re = 0; Y < N.length; Y++) H = N[N.length - 1 - Y], j[j.length - 1 - Y] !== H && (q.hasOwnProperty(H) ? (L.push({ command: Gt.removeLayer, args: [H] }), j.splice(j.lastIndexOf(H, j.length - re), 1)) : re++, de = j[j.length - Y], L.push({ command: Gt.addLayer, args: [$[H], de] }), j.splice(j.length - Y, 0, H), oe[H] = !0);
@@ -26699,14 +26699,14 @@ highp vec4 depth=getCornerDepths(coord.xy);return dot(vec4(0.25),vec4(1.0)-clamp
26699
26699
  bool isOccluded(vec4 frag) { return false; }highp float occlusionFade(vec4 frag) { return 1.0; }highp float occlusionFadeMultiSample(vec4 frag) { return 1.0; }
26700
26700
  #endif`, Eh = `#ifdef FOG
26701
26701
  uniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;out vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}
26702
- #endif`, La = `#ifdef FOG
26702
+ #endif`, Ra = `#ifdef FOG
26703
26703
  uniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump vec2 u_fog_vertical_limit;uniform mediump float u_fog_temporal_offset;in vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;
26704
26704
  #ifdef FLIP_Y
26705
26705
  uv.y=1.0-uv.y;
26706
26706
  #endif
26707
26707
  highp vec3 ray_dir=mix(
26708
26708
  mix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos,float opacity_limit) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,min(opacity,opacity_limit));}vec3 fog_apply(vec3 color,vec3 pos) {return fog_apply(color,pos,1.0);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec4 fog_apply_premultiplied(vec4 color,vec3 pos,float heightMeters) {float verticalProgress=(u_fog_vertical_limit.x > 0.0 || u_fog_vertical_limit.y > 0.0) ? smoothstep(u_fog_vertical_limit.x,u_fog_vertical_limit.y,heightMeters) : 0.0;float opacityLimit=1.0-smoothstep(0.9,1.0,fog_opacity(pos));return mix(fog_apply_premultiplied(color,pos),color,min(verticalProgress,opacityLimit));}vec3 fog_dither(vec3 color) {return color;}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}
26709
- #endif`, za = `#ifdef RASTER_ARRAY
26709
+ #endif`, La = `#ifdef RASTER_ARRAY
26710
26710
  uniform highp sampler2D u_image0;uniform sampler2D u_image1;const vec4 NODATA=vec4(1);ivec4 _raTexLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}vec2 _raTexLinearMix(highp vec2 fxy,highp vec4 colorMix,highp float colorOffset,highp vec4 t00,highp vec4 t10,highp vec4 t01,highp vec4 t11) {vec2 c00=t00==NODATA ? vec2(0) : vec2(colorOffset+dot(t00,colorMix),1);vec2 c10=t10==NODATA ? vec2(0) : vec2(colorOffset+dot(t10,colorMix),1);vec2 c01=t01==NODATA ? vec2(0) : vec2(colorOffset+dot(t01,colorMix),1);vec2 c11=t11==NODATA ? vec2(0) : vec2(colorOffset+dot(t11,colorMix),1);return mix(mix(c01,c11,fxy.x),mix(c00,c10,fxy.x),fxy.y);}vec2 raTexture2D_image0_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image0,c.yz,0),texelFetch(u_image0,c.xz,0),texelFetch(u_image0,c.yw,0),texelFetch(u_image0,c.xw,0)
26711
26711
  );}vec2 raTexture2D_image1_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image1,c.yz,0),texelFetch(u_image1,c.xz,0),texelFetch(u_image1,c.yw,0),texelFetch(u_image1,c.xw,0)
26712
26712
  );}vec2 raTexture2D_image0_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image0,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}vec2 raTexture2D_image1_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image1,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}
@@ -26740,7 +26740,7 @@ pos_dy.y*pos_dx.z-pos_dx.y*pos_dy.z,pos_dx.x*pos_dy.z-pos_dy.x*pos_dx.z);biasUV*
26740
26740
  #endif`;
26741
26741
  const zl = /#include\s+"([^"]+)"/g, He = /#pragma mapbox: ([\w\-]+) ([\w]+) ([\w]+) ([\w]+)/g, Ef = /\b[A-Za-z_][A-Za-z0-9_]*\b/g, Af = /* @__PURE__ */ new Set(["ifdef", "ifndef", "elif", "if", "defined"]), qs = /* @__PURE__ */ new Set();
26742
26742
  Zo(Th, qs), Zo(ms, qs), Zo(Sh, qs);
26743
- const ao = { "_prelude_fog.vertex.glsl": Eh, "_prelude_terrain.vertex.glsl": Ih, "_prelude_shadow.vertex.glsl": Gc, "_prelude_material_table.vertex.glsl": `#ifdef HAS_SHADER_STORAGE_BLOCK_material_buffer
26743
+ const so = { "_prelude_fog.vertex.glsl": Eh, "_prelude_terrain.vertex.glsl": Ih, "_prelude_shadow.vertex.glsl": Gc, "_prelude_material_table.vertex.glsl": `#ifdef HAS_SHADER_STORAGE_BLOCK_material_buffer
26744
26744
  #define MATERIAL_TABLE_DEBUG 0
26745
26745
  uniform int u_material_offset;uniform int u_vertex_offset;layout(std140,binding=0)readonly buffer material_buffer{uvec4 material_data[];};struct MaterialInfo{uint dataOffset;
26746
26746
  #if MATERIAL_TABLE_DEBUG
@@ -26781,12 +26781,12 @@ info.dataOffset=offset+materialId*perMaterialEntrySizeDwords;return info;}uint g
26781
26781
  #define GET_ATTRIBUTE_vec2(attrib,matInfo,attrib_offset) read_material_vec2(matInfo,attrib_offset)
26782
26782
  #define DECLARE_MATERIAL_TABLE_INFO MaterialInfo materialInfo=read_material_info(uint(gl_VertexID));
26783
26783
  #define DECLARE_MATERIAL_TABLE_INFO_DEBUG(dbgColor) MaterialInfo materialInfo=read_material_info(uint(gl_VertexID)); dbgColor=materialInfo.colorDebug;
26784
- #endif`, "_prelude_fog.fragment.glsl": La, "_prelude_shadow.fragment.glsl": In, "_prelude_lighting.glsl": `
26784
+ #endif`, "_prelude_fog.fragment.glsl": Ra, "_prelude_shadow.fragment.glsl": In, "_prelude_lighting.glsl": `
26785
26785
  #ifdef LIGHTING_3D_MODE
26786
26786
  uniform mediump vec3 u_lighting_ambient_color;uniform mediump vec3 u_lighting_directional_dir;uniform mediump vec3 u_lighting_directional_color;uniform mediump vec3 u_ground_radiance;float calculate_ambient_directional_factor(vec3 normal) {float NdotL=dot(normal,u_lighting_directional_dir);const float factor_reduction_max=0.3;float dir_luminance=dot(u_lighting_directional_color,vec3(0.2126,0.7152,0.0722));float directional_factor_min=1.0-factor_reduction_max*min(dir_luminance,1.0);float ambient_directional_factor=mix(directional_factor_min,1.0,min((NdotL+1.0),1.0));const float vertical_factor_min=0.92;float vertical_factor=mix(vertical_factor_min,1.0,normal.z*0.5+0.5);return vertical_factor*ambient_directional_factor;}vec3 linearProduct(vec3 srgbIn,vec3 k) {return srgbIn*pow(k,vec3(1./2.2));}vec3 apply_lighting(vec3 color,vec3 normal,float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return linearProduct(color,ambient_contrib+directional_contrib);}vec4 apply_lighting(vec4 color,vec3 normal,float dir_factor) {return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting(vec3 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return apply_lighting(color.rgb,normal,dir_factor);}vec4 apply_lighting(vec4 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting_ground(vec3 color) {return color*u_ground_radiance;}vec4 apply_lighting_ground(vec4 color) {return vec4(apply_lighting_ground(color.rgb),color.a);}float calculate_NdotL(vec3 normal) {const float ext=0.70710678118;return (clamp(dot(normal,u_lighting_directional_dir),-ext,1.0)+ext)/(1.0+ext);}vec4 apply_lighting_with_emission_ground(vec4 color,float emissive_strength) {return mix(apply_lighting_ground(color),color,emissive_strength);}vec3 compute_flood_lighting(vec3 flood_light_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=flood_light_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);float occlusion_ramp=smoothstep(0.0,0.2,1.0-occlusion);return mix(fully_occluded_color,flood_light_color,occlusion_ramp);}vec3 compute_emissive_draped(vec3 unlit_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=unlit_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);return mix(fully_occluded_color,unlit_color,1.0-occlusion);}
26787
- #endif`, "_prelude_raster_array.glsl": za, "_prelude_raster_particle.glsl": Ah }, Fa = {};
26788
- Ot("", Ih), Ot(La, Eh), Ot(In, Gc), Ot(za, ""), Ot(Ah, "");
26789
- const _s = Ot(Sh, ms), Fl = Th, Oa = [`
26787
+ #endif`, "_prelude_raster_array.glsl": La, "_prelude_raster_particle.glsl": Ah }, za = {};
26788
+ Ot("", Ih), Ot(Ra, Eh), Ot(In, Gc), Ot(La, ""), Ot(Ah, "");
26789
+ const _s = Ot(Sh, ms), Fl = Th, Fa = [`
26790
26790
  #if defined(GL_EXT_blend_func_extended) && defined(DUAL_SOURCE_BLENDING)
26791
26791
  #extension GL_EXT_blend_func_extended : require
26792
26792
  #endif`, "precision mediump float;", Fl, _s.fragmentSource].join(`
@@ -29708,7 +29708,7 @@ vec4 projected_point=u_matrix*vec4(world_pos,1.0);projected_point.xy+=projected_
29708
29708
  l = l.replace(zl, (_, y) => (d.push(y), "")), i = i.replace(zl, (_, y) => (u.push(y), ""));
29709
29709
  let m = new Set(qs);
29710
29710
  Zo(l, m), Zo(i, m);
29711
- for (const _ of [...u, ...d]) Fa[_] || (Fa[_] = /* @__PURE__ */ new Set(), Zo(ao[_], Fa[_])), m = /* @__PURE__ */ new Set([...m, ...Fa[_]]);
29711
+ for (const _ of [...u, ...d]) za[_] || (za[_] = /* @__PURE__ */ new Set(), Zo(so[_], za[_])), m = /* @__PURE__ */ new Set([...m, ...za[_]]);
29712
29712
  return { fragmentSource: l = l.replace(He, (_, y, v, T, I) => (o.add(I), y === "define" ? `
29713
29713
  #ifndef HAS_UNIFORM_u_${I}
29714
29714
  ${Mf(T) ? "flat " : ""}in ${v} ${T} ${I};
@@ -30001,7 +30001,7 @@ uniform ${v} ${T} u_${I};
30001
30001
  (i[0] !== o[0] || i[1] !== o[1] || this.dirty) && (this.gl.depthRange(i[0], i[1]), this.current = i, this.dirty = !1);
30002
30002
  }
30003
30003
  }
30004
- class Ba extends Ei {
30004
+ class Oa extends Ei {
30005
30005
  getDefault() {
30006
30006
  return !1;
30007
30007
  }
@@ -30048,7 +30048,7 @@ uniform ${v} ${T} u_${I};
30048
30048
  (i.r !== o.r || i.g !== o.g || i.b !== o.b || i.a !== o.a || this.dirty) && (this.gl.blendColor(i.r, i.g, i.b, i.a), this.current = i, this.dirty = !1);
30049
30049
  }
30050
30050
  }
30051
- class ka extends Ei {
30051
+ class Ba extends Ei {
30052
30052
  getDefault() {
30053
30053
  return this.gl.FUNC_ADD;
30054
30054
  }
@@ -30128,7 +30128,7 @@ uniform ${v} ${T} u_${I};
30128
30128
  o.bindRenderbuffer(o.RENDERBUFFER, i), this.current = i, this.dirty = !1;
30129
30129
  }
30130
30130
  }
30131
- class Na extends Ei {
30131
+ class ka extends Ei {
30132
30132
  getDefault() {
30133
30133
  return null;
30134
30134
  }
@@ -30203,7 +30203,7 @@ uniform ${v} ${T} u_${I};
30203
30203
  return null;
30204
30204
  }
30205
30205
  }
30206
- class Va extends Bl {
30206
+ class Na extends Bl {
30207
30207
  constructor(i, o, u = 0) {
30208
30208
  super(i, o), this.attachmentPoint = i.gl.COLOR_ATTACHMENT0 + u;
30209
30209
  }
@@ -30244,7 +30244,7 @@ uniform ${v} ${T} u_${I};
30244
30244
  return this.gl.DEPTH_STENCIL_ATTACHMENT;
30245
30245
  }
30246
30246
  }
30247
- const kl = (l, i, o, u) => ({ u_matrix: l, u_image0: 0, u_image1: 1, u_skirt_height: i, u_ground_shadow_factor: o, u_emissive_texture_available: u }), Ua = (l, i, o, u, d, m, _, y, v, T, I, M, C, D, z, L, V) => ({ u_proj_matrix: Float32Array.from(l), u_globe_matrix: i, u_normalize_matrix: Float32Array.from(u), u_merc_matrix: o, u_zoom_transition: d, u_merc_center: m, u_image0: 0, u_image1: 1, u_frustum_tl: _, u_frustum_tr: y, u_frustum_br: v, u_frustum_bl: T, u_globe_pos: I, u_globe_radius: M, u_viewport: C, u_grid_matrix: V ? Float32Array.from(V) : new Float32Array(9), u_skirt_height: D, u_far_z_cutoff: z, u_emissive_texture_available: L });
30247
+ const kl = (l, i, o, u) => ({ u_matrix: l, u_image0: 0, u_image1: 1, u_skirt_height: i, u_ground_shadow_factor: o, u_emissive_texture_available: u }), Va = (l, i, o, u, d, m, _, y, v, T, I, M, C, D, z, L, V) => ({ u_proj_matrix: Float32Array.from(l), u_globe_matrix: i, u_normalize_matrix: Float32Array.from(u), u_merc_matrix: o, u_zoom_transition: d, u_merc_center: m, u_image0: 0, u_image1: 1, u_frustum_tl: _, u_frustum_tr: y, u_frustum_br: v, u_frustum_bl: T, u_globe_pos: I, u_globe_radius: M, u_viewport: C, u_grid_matrix: V ? Float32Array.from(V) : new Float32Array(9), u_skirt_height: D, u_far_z_cutoff: z, u_emissive_texture_available: L });
30248
30248
  function Oh(l, i) {
30249
30249
  return l != null && i != null && !(!l.hasData() || !i.hasData()) && l.demTexture != null && i.demTexture != null && l.tileID.key !== i.tileID.key;
30250
30250
  }
@@ -30573,7 +30573,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
30573
30573
  Oh(xe, we) && zr.newMorphing(Le.key, xe, we, D, 250), Vl(T, fe.emissiveTexture), z.activeTexture.set(L.TEXTURE0), fe.texture && fe.texture.bind(L.LINEAR, L.CLAMP_TO_EDGE);
30574
30574
  const Se = zr.getMorphValuesForProxy(Le.key), Ze = Se ? 1 : 0;
30575
30575
  Se && Object.assign(se, { morphing: { srcDemTile: Se.from, dstDemTile: Se.to, phase: a.dn(Se.phase) } });
30576
- const Ne = a.dr(Le.canonical), Ve = a.ds(Ne.getCenter().lat), Re = a.dt(Le.canonical, Ne, Ve, be.worldSize / be._pixelsPerMercatorPixel), tt = a.du(a.dv(Le.canonical)), ot = T.emissiveMode === "mrt-fallback" ? 1 : 0, Ke = Ua(be.expandedFarZProjMatrix, de, re, tt, a.al(be.zoom), H, be.frustumCorners.TL, be.frustumCorners.TR, be.frustumCorners.BR, be.frustumCorners.BL, be.globeCenterInViewSpace, be.globeRadius, ee, ge, be._farZ, ot, Re);
30576
+ const Ne = a.dr(Le.canonical), Ve = a.ds(Ne.getCenter().lat), Re = a.dt(Le.canonical, Ne, Ve, be.worldSize / be._pixelsPerMercatorPixel), tt = a.du(a.dv(Le.canonical)), ot = T.emissiveMode === "mrt-fallback" ? 1 : 0, Ke = Va(be.expandedFarZProjMatrix, de, re, tt, a.al(be.zoom), H, be.frustumCorners.TL, be.frustumCorners.TR, be.frustumCorners.BR, be.frustumCorners.BL, be.globeCenterInViewSpace, be.globeRadius, ee, ge, be._farZ, ot, Re);
30577
30577
  if (j(Le, Ze), V && (I.setupElevationDraw(fe, V, se), T.uploadCommonUniforms(z, V, Le.toUnwrapped()), X)) {
30578
30578
  const [et, ft, xt] = X.getGridBuffers(Ve, ge !== 0);
30579
30579
  V.draw(T, Pe, Y, le, oe, dt.backCCW, Ke, "globe_raster", et, ft, xt);
@@ -30589,7 +30589,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
30589
30589
  const Ve = M.getTile(ge);
30590
30590
  Vl(T, Ve.emissiveTexture), z.activeTexture.set(L.TEXTURE0), Ve.texture && Ve.texture.bind(L.LINEAR, L.CLAMP_TO_EDGE);
30591
30591
  let Re = a.dw(fe, Pe, q);
30592
- const tt = a.du(a.dv(ge.canonical)), ot = T.emissiveMode === "mrt-fallback" ? 1 : 0, Ke = (et, ft) => et.draw(T, L.TRIANGLES, Y, _t.disabled, oe, dt.disabled, Ua(q.expandedFarZProjMatrix, Re, Re, tt, 0, H, q.frustumCorners.TL, q.frustumCorners.TR, q.frustumCorners.BR, q.frustumCorners.BL, q.globeCenterInViewSpace, q.globeRadius, ee, 0, q._farZ, ot), "globe_pole_raster", ft, Ze, Ne);
30592
+ const tt = a.du(a.dv(ge.canonical)), ot = T.emissiveMode === "mrt-fallback" ? 1 : 0, Ke = (et, ft) => et.draw(T, L.TRIANGLES, Y, _t.disabled, oe, dt.disabled, Va(q.expandedFarZProjMatrix, Re, Re, tt, 0, H, q.frustumCorners.TL, q.frustumCorners.TR, q.frustumCorners.BR, q.frustumCorners.BL, q.globeCenterInViewSpace, q.globeRadius, ee, 0, q._farZ, ot), "globe_pole_raster", ft, Ze, Ne);
30593
30593
  I.setupElevationDraw(Ve, V, se), T.uploadCommonUniforms(z, V, ge.toUnwrapped()), le && T.renderDefaultNorthPole && Ke(V, we), xe && T.renderDefaultSouthPole && (Re = a.cC(a.bb(), Re, [1, -1, 1]), Ke(V, Se));
30594
30594
  }
30595
30595
  }
@@ -30608,7 +30608,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
30608
30608
  let j = [0, 0, 0];
30609
30609
  if (D) {
30610
30610
  const oe = d.style.directionalLight, Y = d.style.ambientLight;
30611
- oe && Y && (j = so(d.style, oe, Y));
30611
+ oe && Y && (j = oo(d.style, oe, Y));
30612
30612
  }
30613
30613
  {
30614
30614
  C = -1;
@@ -30730,7 +30730,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
30730
30730
  }
30731
30731
  _clearLineLayersFromRenderCache() {
30732
30732
  let i = !1;
30733
- for (const u of this._style.getSources()) if (u instanceof tn) {
30733
+ for (const u of this._style.getSources()) if (u instanceof en) {
30734
30734
  i = !0;
30735
30735
  break;
30736
30736
  }
@@ -30989,12 +30989,12 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
30989
30989
  this.program = y.createProgram(), this.configuration = d, this.name = o, this.fixedDefines = [..._];
30990
30990
  const v = `#version 300 es
30991
30991
  ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
30992
- `)}`, T = [v, Oa];
30993
- for (const L of u.fragmentIncludes) T.push(ao[L]);
30992
+ `)}`, T = [v, Fa];
30993
+ for (const L of u.fragmentIncludes) T.push(so[L]);
30994
30994
  T.push(u.fragmentSource);
30995
30995
  const I = T.join(`
30996
30996
  `), M = [v, Wm];
30997
- for (const L of u.vertexIncludes) M.push(ao[L]);
30997
+ for (const L of u.vertexIncludes) M.push(so[L]);
30998
30998
  this.forceManualRenderingForInstanceIDShaders = i.forceManualRenderingForInstanceIDShaders && u.vertexSource.includes("gl_InstanceID"), this.forceManualRenderingForInstanceIDShaders && M.push("uniform int u_instanceID;"), M.push(u.vertexSource);
30999
30999
  let C = M.join(`
31000
31000
  `);
@@ -31111,7 +31111,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31111
31111
  }, n_ = (l, i, o, u, d, m) => ({ u_matrix: l, u_edge_radius: i, u_width_scale: o, u_vertical_scale: u, u_height_type: Qc[d], u_base_type: Qc[m] }), o_ = (l, i, o, u, d, m, _, y, v, T, I, M, C, D, z, L, V, N) => {
31112
31112
  const q = Zf(l, i, o, u, d, m, _, y, T, I, M, C, D, z, L, V, 1, [0, 0, 0]), $ = { u_height_factor: -Math.pow(2, y.overscaledZ) / v.tileSize / 8 };
31113
31113
  return Object.assign(q, Gf(i, v, N), $);
31114
- }, eu = (l, i, o) => ({ u_matrix: l, u_emissive_strength: i, u_ground_shadow_factor: o }), tu = (l, i, o, u, d, m = 0) => Object.assign(eu(l, i, d), Gf(o, u, m)), qf = (l, i, o, u) => ({ u_matrix: l, u_world: o, u_emissive_strength: i, u_ground_shadow_factor: u }), ja = (l, i, o, u, d, m, _ = 0) => Object.assign(tu(l, i, o, u, m, _), { u_world: d }), $f = (l, i) => ({ u_matrix: l, u_depth_bias: i }), Hf = (l, i) => ({ u_matrix: l, u_ground_shadow_factor: i }), Zl = (l, i, o, u, d) => ({ u_matrix: l, u_camera_pos: [i[0], i[1], i[2]], u_depth_bias: o, u_height_scale: u, u_reset_depth: d }), iu = (l, i, o) => ({ u_image: l, u_opacity: i, u_blend_mode: o }), gs = (l, i, o, u, d, m, _, y, v, T = [0, 0, 1]) => ({ u_matrix: l, u_normal_matrix: i, u_opacity: o, u_faux_facade_ao_intensity: u, u_camera_pos: d, u_tile_to_meter: m, u_facade_emissive_chance: _, u_flood_light_color: y, u_flood_light_intensity: v, u_front_cutoff_params: T }), ru = (l) => ({ u_matrix: l }), nu = (l) => ({ u_matrix: l }), Wf = (l, i, o, u, d, m, _, y) => {
31114
+ }, eu = (l, i, o) => ({ u_matrix: l, u_emissive_strength: i, u_ground_shadow_factor: o }), tu = (l, i, o, u, d, m = 0) => Object.assign(eu(l, i, d), Gf(o, u, m)), qf = (l, i, o, u) => ({ u_matrix: l, u_world: o, u_emissive_strength: i, u_ground_shadow_factor: u }), Ua = (l, i, o, u, d, m, _ = 0) => Object.assign(tu(l, i, o, u, m, _), { u_world: d }), $f = (l, i) => ({ u_matrix: l, u_depth_bias: i }), Hf = (l, i) => ({ u_matrix: l, u_ground_shadow_factor: i }), Zl = (l, i, o, u, d) => ({ u_matrix: l, u_camera_pos: [i[0], i[1], i[2]], u_depth_bias: o, u_height_scale: u, u_reset_depth: d }), iu = (l, i, o) => ({ u_image: l, u_opacity: i, u_blend_mode: o }), gs = (l, i, o, u, d, m, _, y, v, T = [0, 0, 1]) => ({ u_matrix: l, u_normal_matrix: i, u_opacity: o, u_faux_facade_ao_intensity: u, u_camera_pos: d, u_tile_to_meter: m, u_facade_emissive_chance: _, u_flood_light_color: y, u_flood_light_intensity: v, u_front_cutoff_params: T }), ru = (l) => ({ u_matrix: l }), nu = (l) => ({ u_matrix: l }), Wf = (l, i, o, u, d, m, _, y) => {
31115
31115
  const v = a.an / m.tileSize;
31116
31116
  return { u_matrix: l, u_inv_rot_matrix: i, u_camera_to_center_distance: o.getCameraToCenterDistance(y), u_extrude_scale: [o.pixelsToGLUnits[0] / v, o.pixelsToGLUnits[1] / v], u_zoom_transition: u, u_tile_id: _, u_merc_center: d };
31117
31117
  }, ys = (l, i, o, u) => ({ u_matrix: l, u_inv_matrix: i, u_camera_to_center_distance: o.getCameraToCenterDistance(u), u_viewport_size: [o.width, o.height] }), ql = (l, i, o = 1) => ({ u_matrix: l, u_color: i, u_overlay: 0, u_overlay_scale: o }), ou = a.bb(), Xf = (l, i, o, u, d, m, _) => {
@@ -31148,15 +31148,15 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31148
31148
  }, $l = (l, i, o, u) => ({ u_matrix: l, u_emissive_strength: i, u_opacity: o, u_color: u }), xs = (l, i, o, u, d, m, _, y, v) => Object.assign((function(T, I, M, C, D, z) {
31149
31149
  const { width: L, height: V } = C.imageManager.getPixelSize(I), N = Math.pow(2, z.tileID.overscaledZ), q = z.tileSize * Math.pow(2, C.transform.tileZoom) / N, $ = q * (z.tileID.canonical.x + z.tileID.wrap * N), j = q * z.tileID.canonical.y;
31150
31150
  return { u_image: 0, u_pattern_tl: M.tl, u_pattern_br: M.br, u_texsize: [L, V], u_pattern_size: M.displaySize, u_pattern_units_to_pixels: D ? [C.transform.width, -1 * C.transform.height] : [1 / a.aA(z, 1, C.transform.tileZoom), 1 / a.aA(z, 1, C.transform.tileZoom)], u_pixel_coord_upper: [$ >> 16, j >> 16], u_pixel_coord_lower: [65535 & $, 65535 & j] };
31151
- })(0, m, _, u, y, v), { u_matrix: l, u_emissive_strength: i, u_opacity: o }), Ga = new Float32Array(a.b9([])), Xs = (l, i, o, u, d, m, _, y, v, T, I, M, C, D = [0, 0, 0], z, L, V) => {
31151
+ })(0, m, _, u, y, v), { u_matrix: l, u_emissive_strength: i, u_opacity: o }), ja = new Float32Array(a.b9([])), Xs = (l, i, o, u, d, m, _, y, v, T, I, M, C, D = [0, 0, 0], z, L, V) => {
31152
31152
  const N = d.style.light, q = N.properties.get("position"), $ = [-q.x, -q.y, q.z], j = a.dE();
31153
31153
  N.properties.get("anchor") === "viewport" && (a.dF(j, -d.transform.angle), a.dG($, $, j));
31154
31154
  const oe = I.alphaMode === "MASK", Y = N.properties.get("color").toNonPremultipliedRenderColor(null), re = C.paint.get("model-ambient-occlusion-intensity"), H = C.paint.get("model-color").constantOr(a.aq.white).toNonPremultipliedRenderColor(null);
31155
- return H.a = C.paint.get("model-color-mix-intensity").constantOr(0), V && (H.r = V[0], H.g = V[1], H.b = V[2], H.a = V[3]), L && (H.r = L.color.r, H.g = L.color.g, H.b = L.color.b, H.a = L.colorMix, M = L.emissionStrength, m *= L.opacity), { u_matrix: l, u_lighting_matrix: i, u_normal_matrix: o, u_node_matrix: u || Ga, u_lightpos: $, u_lightintensity: N.properties.get("intensity"), u_lightcolor: [Y.r, Y.g, Y.b], u_camera_pos: D, u_opacity: m, u_baseTextureIsAlpha: 0, u_alphaMask: +oe, u_alphaCutoff: I.alphaCutoff, u_baseColorFactor: _.toNonPremultipliedRenderColor(null).toArray01(), u_emissiveFactor: y.toNonPremultipliedRenderColor(null).toArray01(), u_metallicFactor: v, u_roughnessFactor: T, u_baseColorTexture: 5, u_metallicRoughnessTexture: 6, u_normalTexture: 7, u_occlusionTexture: 8, u_emissionTexture: 9, u_lutTexture: 10, u_color_mix: H.toArray01(), u_aoIntensity: re, u_emissive_strength: M, u_occlusionTextureTransform: z || [0, 0, 0, 0] };
31156
- }, Uh = (l, i = Ga, o = Ga) => ({ u_matrix: l, u_instance: i, u_node_matrix: o }), lu = { fillExtrusion: (l) => ({ u_matrix: new a.b$(l), u_lightpos: new a.bY(l), u_lightintensity: new a.bZ(l), u_lightcolor: new a.bY(l), u_vertical_gradient: new a.bZ(l), u_opacity: new a.bZ(l), u_edge_radius: new a.bZ(l), u_width_scale: new a.bZ(l), u_ao: new a.b_(l), u_height_type: new a.bX(l), u_base_type: new a.bX(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_up_dir: new a.bY(l), u_height_lift: new a.bZ(l), u_flood_light_color: new a.bY(l), u_vertical_scale: new a.bZ(l), u_flood_light_intensity: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_front_cutoff_params: new a.bY(l) }), fillExtrusionDepth: (l) => ({ u_matrix: new a.b$(l), u_edge_radius: new a.bZ(l), u_width_scale: new a.bZ(l), u_vertical_scale: new a.bZ(l), u_height_type: new a.bX(l), u_base_type: new a.bX(l) }), fillExtrusionPattern: (l) => ({ u_matrix: new a.b$(l), u_lightpos: new a.bY(l), u_lightintensity: new a.bZ(l), u_lightcolor: new a.bY(l), u_vertical_gradient: new a.bZ(l), u_height_factor: new a.bZ(l), u_edge_radius: new a.bZ(l), u_width_scale: new a.bZ(l), u_ao: new a.b_(l), u_height_type: new a.bX(l), u_base_type: new a.bX(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_up_dir: new a.bY(l), u_height_lift: new a.bZ(l), u_image: new a.bX(l), u_texsize: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_tile_units_to_pixels: new a.bZ(l), u_opacity: new a.bZ(l), u_pattern_transition: new a.bZ(l) }), fillExtrusionGroundEffect: (l) => ({ u_matrix: new a.b$(l), u_opacity: new a.bZ(l), u_ao_pass: new a.bZ(l), u_meter_to_tile: new a.bZ(l), u_ao: new a.b_(l), u_flood_light_intensity: new a.bZ(l), u_flood_light_color: new a.bY(l), u_attenuation: new a.bZ(l), u_edge_radius: new a.bZ(l), u_fb: new a.bX(l), u_fb_size: new a.bZ(l), u_dynamic_offset: new a.bZ(l) }), fill: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_ground_shadow_factor: new a.bY(l) }), fillPattern: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_image: new a.bX(l), u_texsize: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_tile_units_to_pixels: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_pattern_transition: new a.bZ(l) }), fillOutline: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_world: new a.b_(l), u_ground_shadow_factor: new a.bY(l) }), fillOutlinePattern: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_world: new a.b_(l), u_image: new a.bX(l), u_texsize: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_tile_units_to_pixels: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_pattern_transition: new a.bZ(l) }), lineBlendComposite: (l) => ({ u_image: new a.bX(l), u_opacity: new a.bZ(l), u_blend_mode: new a.bX(l) }), building: (l) => ({ u_matrix: new a.b$(l), u_normal_matrix: new a.b$(l), u_opacity: new a.bZ(l), u_faux_facade_ao_intensity: new a.bZ(l), u_camera_pos: new a.bY(l), u_tile_to_meter: new a.bZ(l), u_facade_emissive_chance: new a.bZ(l), u_flood_light_color: new a.bY(l), u_flood_light_intensity: new a.bZ(l), u_front_cutoff_params: new a.bY(l) }), buildingBloom: (l) => ({ u_matrix: new a.b$(l) }), buildingDepth: (l) => ({ u_matrix: new a.b$(l) }), elevatedStructuresDepth: (l) => ({ u_matrix: new a.b$(l), u_depth_bias: new a.bZ(l) }), elevatedStructures: (l) => ({ u_matrix: new a.b$(l), u_ground_shadow_factor: new a.bY(l) }), elevatedStructuresDepthReconstruct: (l) => ({ u_matrix: new a.b$(l), u_camera_pos: new a.bY(l), u_depth_bias: new a.bZ(l), u_height_scale: new a.bZ(l), u_reset_depth: new a.bZ(l) }), circle: a.dO, collisionBox: (l) => ({ u_matrix: new a.b$(l), u_inv_rot_matrix: new a.b$(l), u_camera_to_center_distance: new a.bZ(l), u_extrude_scale: new a.b_(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_tile_id: new a.bY(l) }), collisionCircle: (l) => ({ u_matrix: new a.b$(l), u_inv_matrix: new a.b$(l), u_camera_to_center_distance: new a.bZ(l), u_viewport_size: new a.b_(l) }), debug: (l) => ({ u_color: new a.dl(l), u_matrix: new a.b$(l), u_overlay: new a.bX(l), u_overlay_scale: new a.bZ(l) }), clippingMask: (l) => ({ u_matrix: new a.b$(l) }), heatmap: (l) => ({ u_extrude_scale: new a.bZ(l), u_intensity: new a.bZ(l), u_matrix: new a.b$(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_up_dir: new a.bY(l) }), heatmapTexture: (l) => ({ u_image: new a.bX(l), u_color_ramp: new a.bX(l), u_opacity: new a.bZ(l) }), hillshade: (l) => ({ u_matrix: new a.b$(l), u_image: new a.bX(l), u_latrange: new a.b_(l), u_light: new a.b_(l), u_shadow: new a.dl(l), u_highlight: new a.dl(l), u_emissive_strength: new a.bZ(l), u_accent: new a.dl(l) }), hillshadePrepare: (l) => ({ u_matrix: new a.b$(l), u_image: new a.bX(l), u_dimension: new a.b_(l), u_zoom: new a.bZ(l) }), line: a.dN, linePattern: a.dM, raster: (l) => ({ u_matrix: new a.b$(l), u_normalize_matrix: new a.b$(l), u_globe_matrix: new a.b$(l), u_merc_matrix: new a.b$(l), u_grid_matrix: new a.dm(l), u_tl_parent: new a.b_(l), u_scale_parent: new a.bZ(l), u_fade_t: new a.bZ(l), u_opacity: new a.bZ(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_brightness_low: new a.bZ(l), u_brightness_high: new a.bZ(l), u_saturation_factor: new a.bZ(l), u_contrast_factor: new a.bZ(l), u_spin_weights: new a.bY(l), u_perspective_transform: new a.b_(l), u_raster_elevation: new a.bZ(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_cutoff_params: new a.cO(l), u_colorization_mix: new a.cO(l), u_colorization_offset: new a.bZ(l), u_color_ramp: new a.bX(l), u_texture_offset: new a.b_(l), u_texture_res: new a.b_(l), u_emissive_strength: new a.bZ(l), u_zbias_factor: new a.bZ(l) }), rasterParticle: (l) => ({ u_matrix: new a.b$(l), u_normalize_matrix: new a.b$(l), u_globe_matrix: new a.b$(l), u_merc_matrix: new a.b$(l), u_grid_matrix: new a.dm(l), u_tl_parent: new a.b_(l), u_scale_parent: new a.bZ(l), u_fade_t: new a.bZ(l), u_opacity: new a.bZ(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_raster_elevation: new a.bZ(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_cutoff_params: new a.cO(l) }), rasterParticleTexture: (l) => ({ u_texture: new a.bX(l), u_opacity: new a.bZ(l) }), rasterParticleDraw: (l) => ({ u_particle_texture: new a.bX(l), u_particle_texture_side_len: new a.bZ(l), u_tile_offset: new a.b_(l), u_velocity: new a.bX(l), u_color_ramp: new a.bX(l), u_velocity_res: new a.b_(l), u_max_speed: new a.bZ(l), u_uv_offset: new a.b_(l), u_data_scale: new a.b_(l), u_data_offset: new a.bZ(l), u_particle_pos_scale: new a.bZ(l), u_particle_pos_offset: new a.b_(l) }), rasterParticleUpdate: (l) => ({ u_particle_texture: new a.bX(l), u_particle_texture_side_len: new a.bZ(l), u_velocity: new a.bX(l), u_velocity_res: new a.b_(l), u_max_speed: new a.bZ(l), u_speed_factor: new a.bZ(l), u_reset_rate: new a.bZ(l), u_rand_seed: new a.bZ(l), u_uv_offset: new a.b_(l), u_data_scale: new a.b_(l), u_data_offset: new a.bZ(l), u_particle_pos_scale: new a.bZ(l), u_particle_pos_offset: new a.b_(l) }), symbol: (l) => ({ u_is_size_zoom_constant: new a.bX(l), u_is_size_feature_constant: new a.bX(l), u_size_t: new a.bZ(l), u_size: new a.bZ(l), u_camera_to_center_distance: new a.bZ(l), u_rotate_symbol: new a.bX(l), u_aspect_ratio: new a.bZ(l), u_fade_change: new a.bZ(l), u_matrix: new a.b$(l), u_label_plane_matrix: new a.b$(l), u_coord_matrix: new a.b$(l), u_is_text: new a.bX(l), u_elevation_from_sea: new a.bX(l), u_pitch_with_map: new a.bX(l), u_texsize: new a.b_(l), u_texsize_icon: new a.b_(l), u_texture: new a.bX(l), u_texture_icon: new a.bX(l), u_gamma_scale: new a.bZ(l), u_device_pixel_ratio: new a.bZ(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_camera_forward: new a.bY(l), u_tile_matrix: new a.b$(l), u_up_vector: new a.bY(l), u_ecef_origin: new a.bY(l), u_is_halo: new a.bX(l), u_icon_transition: new a.bZ(l), u_color_adj_mat: new a.b$(l), u_scale_factor: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_inv_matrix: new a.b$(l), u_normal_scale: new a.bZ(l), u_lutTexture: new a.bX(l), u_zoom: new a.bZ(l), u_spp_fill_np_color: new a.cO(l), u_spp_halo_np_color: new a.cO(l), u_spp_opacity: new a.bZ(l), u_spp_halo_width: new a.bZ(l), u_spp_halo_blur: new a.bZ(l), u_spp_emissive_strength: new a.bZ(l), u_spp_occlusion_opacity: new a.bZ(l), u_spp_z_offset: new a.bZ(l), u_spp_translate_rotation: new a.b_(l) }), background: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_opacity: new a.bZ(l), u_color: new a.dl(l) }), backgroundPattern: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_opacity: new a.bZ(l), u_image: new a.bX(l), u_pattern_tl: new a.b_(l), u_pattern_br: new a.b_(l), u_texsize: new a.b_(l), u_pattern_size: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_pattern_units_to_pixels: new a.b_(l) }), terrainRaster: (l) => ({ u_matrix: new a.b$(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_skirt_height: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_emissive_texture_available: new a.bZ(l) }), skybox: (l) => ({ u_matrix: new a.b$(l), u_sun_direction: new a.bY(l), u_cubemap: new a.bX(l), u_opacity: new a.bZ(l), u_temporal_offset: new a.bZ(l) }), skyboxGradient: (l) => ({ u_matrix: new a.b$(l), u_color_ramp: new a.bX(l), u_center_direction: new a.bY(l), u_radius: new a.bZ(l), u_opacity: new a.bZ(l), u_temporal_offset: new a.bZ(l) }), skyboxCapture: (l) => ({ u_matrix_3f: new a.dm(l), u_sun_direction: new a.bY(l), u_sun_intensity: new a.bZ(l), u_color_tint_r: new a.cO(l), u_color_tint_m: new a.cO(l), u_luminance: new a.bZ(l) }), globeRaster: (l) => ({ u_proj_matrix: new a.b$(l), u_globe_matrix: new a.b$(l), u_normalize_matrix: new a.b$(l), u_merc_matrix: new a.b$(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_grid_matrix: new a.dm(l), u_skirt_height: new a.bZ(l), u_far_z_cutoff: new a.bZ(l), u_frustum_tl: new a.bY(l), u_frustum_tr: new a.bY(l), u_frustum_br: new a.bY(l), u_frustum_bl: new a.bY(l), u_globe_pos: new a.bY(l), u_globe_radius: new a.bZ(l), u_viewport: new a.b_(l), u_emissive_texture_available: new a.bZ(l) }), globeAtmosphere: (l) => ({ u_frustum_tl: new a.bY(l), u_frustum_tr: new a.bY(l), u_frustum_br: new a.bY(l), u_frustum_bl: new a.bY(l), u_horizon: new a.bZ(l), u_transition: new a.bZ(l), u_fadeout_range: new a.bZ(l), u_atmosphere_fog_color: new a.cO(l), u_high_color: new a.cO(l), u_space_color: new a.cO(l), u_temporal_offset: new a.bZ(l), u_horizon_angle: new a.bZ(l) }), model: (l) => ({ u_matrix: new a.b$(l), u_lighting_matrix: new a.b$(l), u_normal_matrix: new a.b$(l), u_node_matrix: new a.b$(l), u_lightpos: new a.bY(l), u_lightintensity: new a.bZ(l), u_lightcolor: new a.bY(l), u_camera_pos: new a.bY(l), u_opacity: new a.bZ(l), u_baseColorFactor: new a.cO(l), u_emissiveFactor: new a.cO(l), u_metallicFactor: new a.bZ(l), u_roughnessFactor: new a.bZ(l), u_baseTextureIsAlpha: new a.bX(l), u_alphaMask: new a.bX(l), u_alphaCutoff: new a.bZ(l), u_baseColorTexture: new a.bX(l), u_metallicRoughnessTexture: new a.bX(l), u_normalTexture: new a.bX(l), u_occlusionTexture: new a.bX(l), u_emissionTexture: new a.bX(l), u_lutTexture: new a.bX(l), u_color_mix: new a.cO(l), u_aoIntensity: new a.bZ(l), u_emissive_strength: new a.bZ(l), u_occlusionTextureTransform: new a.cO(l) }), modelDepth: (l) => ({ u_matrix: new a.b$(l), u_instance: new a.b$(l), u_node_matrix: new a.b$(l) }), groundShadow: (l) => ({ u_matrix: new a.b$(l), u_ground_shadow_factor: new a.bY(l) }), stars: (l) => ({ u_matrix: new a.b$(l), u_up: new a.bY(l), u_right: new a.bY(l), u_intensity_multiplier: new a.bZ(l) }), snowParticle: (l) => ({ u_modelview: new a.b$(l), u_projection: new a.b$(l), u_time: new a.bZ(l), u_cam_pos: new a.bY(l), u_velocityConeAperture: new a.bZ(l), u_velocity: new a.bZ(l), u_horizontalOscillationRadius: new a.bZ(l), u_horizontalOscillationRate: new a.bZ(l), u_boxSize: new a.bZ(l), u_billboardSize: new a.bZ(l), u_simpleShapeParameters: new a.b_(l), u_screenSize: new a.b_(l), u_thinningCenterPos: new a.b_(l), u_thinningShape: new a.bY(l), u_thinningAffectedRatio: new a.bZ(l), u_thinningParticleOffset: new a.bZ(l), u_particleColor: new a.cO(l), u_direction: new a.bY(l) }), rainParticle: (l) => ({ u_modelview: new a.b$(l), u_projection: new a.b$(l), u_time: new a.bZ(l), u_cam_pos: new a.bY(l), u_texScreen: new a.bX(l), u_velocityConeAperture: new a.bZ(l), u_velocity: new a.bZ(l), u_boxSize: new a.bZ(l), u_rainDropletSize: new a.b_(l), u_distortionStrength: new a.bZ(l), u_rainDirection: new a.bY(l), u_color: new a.cO(l), u_screenSize: new a.b_(l), u_thinningCenterPos: new a.b_(l), u_thinningShape: new a.bY(l), u_thinningAffectedRatio: new a.bZ(l), u_thinningParticleOffset: new a.bZ(l), u_shapeDirectionalPower: new a.bZ(l), u_shapeNormalPower: new a.bZ(l), u_mode: new a.bZ(l) }), vignette: (l) => ({ u_vignetteShape: new a.bY(l), u_vignetteColor: new a.cO(l) }), occlusion: (l) => ({ u_matrix: new a.b$(l), u_anchorPos: new a.bY(l), u_screenSizePx: new a.b_(l), u_occluderSizePx: new a.b_(l), u_color: new a.cO(l) }) };
31157
- class lo {
31155
+ return H.a = C.paint.get("model-color-mix-intensity").constantOr(0), V && (H.r = V[0], H.g = V[1], H.b = V[2], H.a = V[3]), L && (H.r = L.color.r, H.g = L.color.g, H.b = L.color.b, H.a = L.colorMix, M = L.emissionStrength, m *= L.opacity), { u_matrix: l, u_lighting_matrix: i, u_normal_matrix: o, u_node_matrix: u || ja, u_lightpos: $, u_lightintensity: N.properties.get("intensity"), u_lightcolor: [Y.r, Y.g, Y.b], u_camera_pos: D, u_opacity: m, u_baseTextureIsAlpha: 0, u_alphaMask: +oe, u_alphaCutoff: I.alphaCutoff, u_baseColorFactor: _.toNonPremultipliedRenderColor(null).toArray01(), u_emissiveFactor: y.toNonPremultipliedRenderColor(null).toArray01(), u_metallicFactor: v, u_roughnessFactor: T, u_baseColorTexture: 5, u_metallicRoughnessTexture: 6, u_normalTexture: 7, u_occlusionTexture: 8, u_emissionTexture: 9, u_lutTexture: 10, u_color_mix: H.toArray01(), u_aoIntensity: re, u_emissive_strength: M, u_occlusionTextureTransform: z || [0, 0, 0, 0] };
31156
+ }, Uh = (l, i = ja, o = ja) => ({ u_matrix: l, u_instance: i, u_node_matrix: o }), lu = { fillExtrusion: (l) => ({ u_matrix: new a.b$(l), u_lightpos: new a.bY(l), u_lightintensity: new a.bZ(l), u_lightcolor: new a.bY(l), u_vertical_gradient: new a.bZ(l), u_opacity: new a.bZ(l), u_edge_radius: new a.bZ(l), u_width_scale: new a.bZ(l), u_ao: new a.b_(l), u_height_type: new a.bX(l), u_base_type: new a.bX(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_up_dir: new a.bY(l), u_height_lift: new a.bZ(l), u_flood_light_color: new a.bY(l), u_vertical_scale: new a.bZ(l), u_flood_light_intensity: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_front_cutoff_params: new a.bY(l) }), fillExtrusionDepth: (l) => ({ u_matrix: new a.b$(l), u_edge_radius: new a.bZ(l), u_width_scale: new a.bZ(l), u_vertical_scale: new a.bZ(l), u_height_type: new a.bX(l), u_base_type: new a.bX(l) }), fillExtrusionPattern: (l) => ({ u_matrix: new a.b$(l), u_lightpos: new a.bY(l), u_lightintensity: new a.bZ(l), u_lightcolor: new a.bY(l), u_vertical_gradient: new a.bZ(l), u_height_factor: new a.bZ(l), u_edge_radius: new a.bZ(l), u_width_scale: new a.bZ(l), u_ao: new a.b_(l), u_height_type: new a.bX(l), u_base_type: new a.bX(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_up_dir: new a.bY(l), u_height_lift: new a.bZ(l), u_image: new a.bX(l), u_texsize: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_tile_units_to_pixels: new a.bZ(l), u_opacity: new a.bZ(l), u_pattern_transition: new a.bZ(l) }), fillExtrusionGroundEffect: (l) => ({ u_matrix: new a.b$(l), u_opacity: new a.bZ(l), u_ao_pass: new a.bZ(l), u_meter_to_tile: new a.bZ(l), u_ao: new a.b_(l), u_flood_light_intensity: new a.bZ(l), u_flood_light_color: new a.bY(l), u_attenuation: new a.bZ(l), u_edge_radius: new a.bZ(l), u_fb: new a.bX(l), u_fb_size: new a.bZ(l), u_dynamic_offset: new a.bZ(l) }), fill: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_ground_shadow_factor: new a.bY(l) }), fillPattern: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_image: new a.bX(l), u_texsize: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_tile_units_to_pixels: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_pattern_transition: new a.bZ(l) }), fillOutline: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_world: new a.b_(l), u_ground_shadow_factor: new a.bY(l) }), fillOutlinePattern: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_world: new a.b_(l), u_image: new a.bX(l), u_texsize: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_tile_units_to_pixels: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_pattern_transition: new a.bZ(l) }), lineBlendComposite: (l) => ({ u_image: new a.bX(l), u_opacity: new a.bZ(l), u_blend_mode: new a.bX(l) }), building: (l) => ({ u_matrix: new a.b$(l), u_normal_matrix: new a.b$(l), u_opacity: new a.bZ(l), u_faux_facade_ao_intensity: new a.bZ(l), u_camera_pos: new a.bY(l), u_tile_to_meter: new a.bZ(l), u_facade_emissive_chance: new a.bZ(l), u_flood_light_color: new a.bY(l), u_flood_light_intensity: new a.bZ(l), u_front_cutoff_params: new a.bY(l) }), buildingBloom: (l) => ({ u_matrix: new a.b$(l) }), buildingDepth: (l) => ({ u_matrix: new a.b$(l) }), elevatedStructuresDepth: (l) => ({ u_matrix: new a.b$(l), u_depth_bias: new a.bZ(l) }), elevatedStructures: (l) => ({ u_matrix: new a.b$(l), u_ground_shadow_factor: new a.bY(l) }), elevatedStructuresDepthReconstruct: (l) => ({ u_matrix: new a.b$(l), u_camera_pos: new a.bY(l), u_depth_bias: new a.bZ(l), u_height_scale: new a.bZ(l), u_reset_depth: new a.bZ(l) }), circle: a.dO, collisionBox: (l) => ({ u_matrix: new a.b$(l), u_inv_rot_matrix: new a.b$(l), u_camera_to_center_distance: new a.bZ(l), u_extrude_scale: new a.b_(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_tile_id: new a.bY(l) }), collisionCircle: (l) => ({ u_matrix: new a.b$(l), u_inv_matrix: new a.b$(l), u_camera_to_center_distance: new a.bZ(l), u_viewport_size: new a.b_(l) }), debug: (l) => ({ u_color: new a.dl(l), u_matrix: new a.b$(l), u_overlay: new a.bX(l), u_overlay_scale: new a.bZ(l) }), clippingMask: (l) => ({ u_matrix: new a.b$(l) }), heatmap: (l) => ({ u_extrude_scale: new a.bZ(l), u_intensity: new a.bZ(l), u_matrix: new a.b$(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_up_dir: new a.bY(l) }), heatmapTexture: (l) => ({ u_image: new a.bX(l), u_color_ramp: new a.bX(l), u_opacity: new a.bZ(l) }), hillshade: (l) => ({ u_matrix: new a.b$(l), u_image: new a.bX(l), u_latrange: new a.b_(l), u_light: new a.b_(l), u_shadow: new a.dl(l), u_highlight: new a.dl(l), u_emissive_strength: new a.bZ(l), u_accent: new a.dl(l) }), hillshadePrepare: (l) => ({ u_matrix: new a.b$(l), u_image: new a.bX(l), u_dimension: new a.b_(l), u_zoom: new a.bZ(l) }), line: a.dN, linePattern: a.dM, raster: (l) => ({ u_matrix: new a.b$(l), u_normalize_matrix: new a.b$(l), u_globe_matrix: new a.b$(l), u_merc_matrix: new a.b$(l), u_grid_matrix: new a.dm(l), u_tl_parent: new a.b_(l), u_scale_parent: new a.bZ(l), u_fade_t: new a.bZ(l), u_opacity: new a.bZ(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_brightness_low: new a.bZ(l), u_brightness_high: new a.bZ(l), u_saturation_factor: new a.bZ(l), u_contrast_factor: new a.bZ(l), u_spin_weights: new a.bY(l), u_perspective_transform: new a.b_(l), u_raster_elevation: new a.bZ(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_cutoff_params: new a.cO(l), u_colorization_mix: new a.cO(l), u_colorization_offset: new a.bZ(l), u_color_ramp: new a.bX(l), u_texture_offset: new a.b_(l), u_texture_res: new a.b_(l), u_emissive_strength: new a.bZ(l), u_zbias_factor: new a.bZ(l) }), rasterParticle: (l) => ({ u_matrix: new a.b$(l), u_normalize_matrix: new a.b$(l), u_globe_matrix: new a.b$(l), u_merc_matrix: new a.b$(l), u_grid_matrix: new a.dm(l), u_tl_parent: new a.b_(l), u_scale_parent: new a.bZ(l), u_fade_t: new a.bZ(l), u_opacity: new a.bZ(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_raster_elevation: new a.bZ(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_cutoff_params: new a.cO(l) }), rasterParticleTexture: (l) => ({ u_texture: new a.bX(l), u_opacity: new a.bZ(l) }), rasterParticleDraw: (l) => ({ u_particle_texture: new a.bX(l), u_particle_texture_side_len: new a.bZ(l), u_tile_offset: new a.b_(l), u_velocity: new a.bX(l), u_color_ramp: new a.bX(l), u_velocity_res: new a.b_(l), u_max_speed: new a.bZ(l), u_uv_offset: new a.b_(l), u_data_scale: new a.b_(l), u_data_offset: new a.bZ(l), u_particle_pos_scale: new a.bZ(l), u_particle_pos_offset: new a.b_(l) }), rasterParticleUpdate: (l) => ({ u_particle_texture: new a.bX(l), u_particle_texture_side_len: new a.bZ(l), u_velocity: new a.bX(l), u_velocity_res: new a.b_(l), u_max_speed: new a.bZ(l), u_speed_factor: new a.bZ(l), u_reset_rate: new a.bZ(l), u_rand_seed: new a.bZ(l), u_uv_offset: new a.b_(l), u_data_scale: new a.b_(l), u_data_offset: new a.bZ(l), u_particle_pos_scale: new a.bZ(l), u_particle_pos_offset: new a.b_(l) }), symbol: (l) => ({ u_is_size_zoom_constant: new a.bX(l), u_is_size_feature_constant: new a.bX(l), u_size_t: new a.bZ(l), u_size: new a.bZ(l), u_camera_to_center_distance: new a.bZ(l), u_rotate_symbol: new a.bX(l), u_aspect_ratio: new a.bZ(l), u_fade_change: new a.bZ(l), u_matrix: new a.b$(l), u_label_plane_matrix: new a.b$(l), u_coord_matrix: new a.b$(l), u_is_text: new a.bX(l), u_elevation_from_sea: new a.bX(l), u_pitch_with_map: new a.bX(l), u_texsize: new a.b_(l), u_texsize_icon: new a.b_(l), u_texture: new a.bX(l), u_texture_icon: new a.bX(l), u_gamma_scale: new a.bZ(l), u_device_pixel_ratio: new a.bZ(l), u_tile_id: new a.bY(l), u_zoom_transition: new a.bZ(l), u_inv_rot_matrix: new a.b$(l), u_merc_center: new a.b_(l), u_camera_forward: new a.bY(l), u_tile_matrix: new a.b$(l), u_up_vector: new a.bY(l), u_ecef_origin: new a.bY(l), u_is_halo: new a.bX(l), u_icon_transition: new a.bZ(l), u_color_adj_mat: new a.b$(l), u_scale_factor: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_inv_matrix: new a.b$(l), u_normal_scale: new a.bZ(l), u_lutTexture: new a.bX(l), u_zoom: new a.bZ(l), u_spp_fill_np_color: new a.cO(l), u_spp_halo_np_color: new a.cO(l), u_spp_opacity: new a.bZ(l), u_spp_halo_width: new a.bZ(l), u_spp_halo_blur: new a.bZ(l), u_spp_emissive_strength: new a.bZ(l), u_spp_occlusion_opacity: new a.bZ(l), u_spp_z_offset: new a.bZ(l), u_spp_translate_rotation: new a.b_(l) }), background: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_opacity: new a.bZ(l), u_color: new a.dl(l) }), backgroundPattern: (l) => ({ u_matrix: new a.b$(l), u_emissive_strength: new a.bZ(l), u_opacity: new a.bZ(l), u_image: new a.bX(l), u_pattern_tl: new a.b_(l), u_pattern_br: new a.b_(l), u_texsize: new a.b_(l), u_pattern_size: new a.b_(l), u_pixel_coord_upper: new a.b_(l), u_pixel_coord_lower: new a.b_(l), u_pattern_units_to_pixels: new a.b_(l) }), terrainRaster: (l) => ({ u_matrix: new a.b$(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_skirt_height: new a.bZ(l), u_ground_shadow_factor: new a.bY(l), u_emissive_texture_available: new a.bZ(l) }), skybox: (l) => ({ u_matrix: new a.b$(l), u_sun_direction: new a.bY(l), u_cubemap: new a.bX(l), u_opacity: new a.bZ(l), u_temporal_offset: new a.bZ(l) }), skyboxGradient: (l) => ({ u_matrix: new a.b$(l), u_color_ramp: new a.bX(l), u_center_direction: new a.bY(l), u_radius: new a.bZ(l), u_opacity: new a.bZ(l), u_temporal_offset: new a.bZ(l) }), skyboxCapture: (l) => ({ u_matrix_3f: new a.dm(l), u_sun_direction: new a.bY(l), u_sun_intensity: new a.bZ(l), u_color_tint_r: new a.cO(l), u_color_tint_m: new a.cO(l), u_luminance: new a.bZ(l) }), globeRaster: (l) => ({ u_proj_matrix: new a.b$(l), u_globe_matrix: new a.b$(l), u_normalize_matrix: new a.b$(l), u_merc_matrix: new a.b$(l), u_zoom_transition: new a.bZ(l), u_merc_center: new a.b_(l), u_image0: new a.bX(l), u_image1: new a.bX(l), u_grid_matrix: new a.dm(l), u_skirt_height: new a.bZ(l), u_far_z_cutoff: new a.bZ(l), u_frustum_tl: new a.bY(l), u_frustum_tr: new a.bY(l), u_frustum_br: new a.bY(l), u_frustum_bl: new a.bY(l), u_globe_pos: new a.bY(l), u_globe_radius: new a.bZ(l), u_viewport: new a.b_(l), u_emissive_texture_available: new a.bZ(l) }), globeAtmosphere: (l) => ({ u_frustum_tl: new a.bY(l), u_frustum_tr: new a.bY(l), u_frustum_br: new a.bY(l), u_frustum_bl: new a.bY(l), u_horizon: new a.bZ(l), u_transition: new a.bZ(l), u_fadeout_range: new a.bZ(l), u_atmosphere_fog_color: new a.cO(l), u_high_color: new a.cO(l), u_space_color: new a.cO(l), u_temporal_offset: new a.bZ(l), u_horizon_angle: new a.bZ(l) }), model: (l) => ({ u_matrix: new a.b$(l), u_lighting_matrix: new a.b$(l), u_normal_matrix: new a.b$(l), u_node_matrix: new a.b$(l), u_lightpos: new a.bY(l), u_lightintensity: new a.bZ(l), u_lightcolor: new a.bY(l), u_camera_pos: new a.bY(l), u_opacity: new a.bZ(l), u_baseColorFactor: new a.cO(l), u_emissiveFactor: new a.cO(l), u_metallicFactor: new a.bZ(l), u_roughnessFactor: new a.bZ(l), u_baseTextureIsAlpha: new a.bX(l), u_alphaMask: new a.bX(l), u_alphaCutoff: new a.bZ(l), u_baseColorTexture: new a.bX(l), u_metallicRoughnessTexture: new a.bX(l), u_normalTexture: new a.bX(l), u_occlusionTexture: new a.bX(l), u_emissionTexture: new a.bX(l), u_lutTexture: new a.bX(l), u_color_mix: new a.cO(l), u_aoIntensity: new a.bZ(l), u_emissive_strength: new a.bZ(l), u_occlusionTextureTransform: new a.cO(l) }), modelDepth: (l) => ({ u_matrix: new a.b$(l), u_instance: new a.b$(l), u_node_matrix: new a.b$(l) }), groundShadow: (l) => ({ u_matrix: new a.b$(l), u_ground_shadow_factor: new a.bY(l) }), stars: (l) => ({ u_matrix: new a.b$(l), u_up: new a.bY(l), u_right: new a.bY(l), u_intensity_multiplier: new a.bZ(l) }), snowParticle: (l) => ({ u_modelview: new a.b$(l), u_projection: new a.b$(l), u_time: new a.bZ(l), u_cam_pos: new a.bY(l), u_velocityConeAperture: new a.bZ(l), u_velocity: new a.bZ(l), u_horizontalOscillationRadius: new a.bZ(l), u_horizontalOscillationRate: new a.bZ(l), u_boxSize: new a.bZ(l), u_billboardSize: new a.bZ(l), u_simpleShapeParameters: new a.b_(l), u_screenSize: new a.b_(l), u_thinningCenterPos: new a.b_(l), u_thinningShape: new a.bY(l), u_thinningAffectedRatio: new a.bZ(l), u_thinningParticleOffset: new a.bZ(l), u_particleColor: new a.cO(l), u_direction: new a.bY(l) }), rainParticle: (l) => ({ u_modelview: new a.b$(l), u_projection: new a.b$(l), u_time: new a.bZ(l), u_cam_pos: new a.bY(l), u_texScreen: new a.bX(l), u_velocityConeAperture: new a.bZ(l), u_velocity: new a.bZ(l), u_boxSize: new a.bZ(l), u_rainDropletSize: new a.b_(l), u_distortionStrength: new a.bZ(l), u_rainDirection: new a.bY(l), u_color: new a.cO(l), u_screenSize: new a.b_(l), u_thinningCenterPos: new a.b_(l), u_thinningShape: new a.bY(l), u_thinningAffectedRatio: new a.bZ(l), u_thinningParticleOffset: new a.bZ(l), u_shapeDirectionalPower: new a.bZ(l), u_shapeNormalPower: new a.bZ(l), u_mode: new a.bZ(l) }), vignette: (l) => ({ u_vignetteShape: new a.bY(l), u_vignetteColor: new a.cO(l) }), occlusion: (l) => ({ u_matrix: new a.b$(l), u_anchorPos: new a.bY(l), u_screenSizePx: new a.b_(l), u_occluderSizePx: new a.b_(l), u_color: new a.cO(l) }) };
31157
+ class ao {
31158
31158
  constructor(i, o, u, d) {
31159
- this.id = lo.uniqueIdxCounter, lo.uniqueIdxCounter++, this.context = i;
31159
+ this.id = ao.uniqueIdxCounter, ao.uniqueIdxCounter++, this.context = i;
31160
31160
  const m = i.gl;
31161
31161
  this.buffer = m.createBuffer(), this.dynamicDraw = !!u, this.context.unbindVAO(), i.bindElementBuffer.set(this.buffer), m.bufferData(m.ELEMENT_ARRAY_BUFFER, o.arrayBuffer, this.dynamicDraw ? m.DYNAMIC_DRAW : m.STATIC_DRAW), this.dynamicDraw || d || o.destroy();
31162
31162
  }
@@ -31164,7 +31164,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31164
31164
  this.context.bindElementBuffer.set(this.buffer);
31165
31165
  }
31166
31166
  updateData(i) {
31167
- this.id = lo.uniqueIdxCounter, lo.uniqueIdxCounter++;
31167
+ this.id = ao.uniqueIdxCounter, ao.uniqueIdxCounter++;
31168
31168
  const o = this.context.gl;
31169
31169
  this.context.unbindVAO(), this.bind(), o.bufferSubData(o.ELEMENT_ARRAY_BUFFER, 0, i.arrayBuffer);
31170
31170
  }
@@ -31172,7 +31172,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31172
31172
  this.buffer && (this.context.gl.deleteBuffer(this.buffer), delete this.buffer);
31173
31173
  }
31174
31174
  }
31175
- lo.uniqueIdxCounter = 0;
31175
+ ao.uniqueIdxCounter = 0;
31176
31176
  const jh = { Int8: "BYTE", Uint8: "UNSIGNED_BYTE", Int16: "SHORT", Uint16: "UNSIGNED_SHORT", Int32: "INT", Uint32: "UNSIGNED_INT", Float32: "FLOAT" };
31177
31177
  class ep {
31178
31178
  constructor(i, o, u, d, m, _) {
@@ -31216,7 +31216,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31216
31216
  constructor(i, o, u, d, m) {
31217
31217
  this.context = i, this.width = o, this.height = u;
31218
31218
  const _ = this.framebuffer = i.gl.createFramebuffer();
31219
- d > 0 && (this.colorAttachment0 = new Va(i, _, 0)), d > 1 && (this.colorAttachment1 = new Va(i, _, 1)), m && (this.depthAttachmentType = m, this.depthAttachment = m === "renderbuffer" ? new Fh(i, _) : new Vf(i, _));
31219
+ d > 0 && (this.colorAttachment0 = new Na(i, _, 0)), d > 1 && (this.colorAttachment1 = new Na(i, _, 1)), m && (this.depthAttachmentType = m, this.depthAttachment = m === "renderbuffer" ? new Fh(i, _) : new Vf(i, _));
31220
31220
  }
31221
31221
  static createWithTexture(i, o, u, d, m) {
31222
31222
  const _ = i.gl;
@@ -31232,7 +31232,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31232
31232
  return v;
31233
31233
  }
31234
31234
  createColorAttachment(i, o) {
31235
- o === 0 ? this.colorAttachment0 = new Va(i, this.framebuffer, 0) : o === 1 && (this.colorAttachment1 = new Va(i, this.framebuffer, 1));
31235
+ o === 0 ? this.colorAttachment0 = new Na(i, this.framebuffer, 0) : o === 1 && (this.colorAttachment1 = new Na(i, this.framebuffer, 1));
31236
31236
  }
31237
31237
  removeColorAttachment(i, o) {
31238
31238
  const u = this.context.gl;
@@ -31259,9 +31259,9 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31259
31259
  this._stencilRbo && (i.deleteRenderbuffer(this._stencilRbo), this._stencilRbo = null), i.deleteFramebuffer(this.framebuffer);
31260
31260
  }
31261
31261
  }
31262
- class Za {
31262
+ class Ga {
31263
31263
  constructor(i, o) {
31264
- this.gl = i, this.clearColor = new Rf(this), this.clearDepth = new Km(this), this.clearStencil = new Zc(this), this.colorMask = new Jm(this), this.depthMask = new Lf(this), this.stencilMask = new Mh(this), this.stencilFunc = new qc(this), this.stencilOp = new Ph(this), this.stencilTest = new $s(this), this.depthRange = new Hs(this), this.depthTest = new Ba(this), this.depthFunc = new So(this), this.blend = new zf(this), this.blendFunc = new Dh(this), this.blendColor = new Ff(this), this.blendEquation = new ka(this), this.cullFace = new $c(this), this.cullFaceSide = new Hc(this), this.frontFace = new Rh(this), this.program = new Wc(this), this.activeTexture = new Ol(this), this.viewport = new Of(this), this.bindFramebuffer = new Bf(this), this.bindRenderbuffer = new kf(this), this.bindTexture = new Na(this), this.bindVertexBuffer = new Nf(this), this.bindElementBuffer = new Qm(this), this.bindVertexArrayOES = new e_(this), this.pixelStoreUnpack = new t_(this), this.pixelStoreUnpackPremultiplyAlpha = new Lh(this), this.pixelStoreUnpackFlipY = new zh(this), this.options = o ? Object.assign({}, o) : {}, this.options.extTextureFilterAnisotropicForceOff || (this.extTextureFilterAnisotropic = i.getExtension("EXT_texture_filter_anisotropic") || i.getExtension("MOZ_EXT_texture_filter_anisotropic") || i.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = i.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT))), this.extDebugRendererInfo = i.getExtension("WEBGL_debug_renderer_info"), this.extDebugRendererInfo && (this.renderer = i.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL), this.vendor = i.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)), this.forceManualRenderingForInstanceIDShaders = o && !!o.forceManualRenderingForInstanceIDShaders || this.renderer && this.renderer.indexOf("PowerVR") !== -1, this.disableSymbolUBO = o && !!o.forceDisableSymbolUBO, this.options.extTextureFloatLinearForceOff || (this.extTextureFloatLinear = i.getExtension("OES_texture_float_linear")), this.extRenderToTextureHalfFloat = i.getExtension("EXT_color_buffer_half_float"), this.extTimerQuery = i.getExtension("EXT_disjoint_timer_query_webgl2"), this.maxTextureSize = i.getParameter(i.MAX_TEXTURE_SIZE), this.maxUniformBlockSize = Math.min(i.getParameter(i.MAX_UNIFORM_BLOCK_SIZE), 32768), this.maxUniformBufferBindings = i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS), this.extBlendFuncExtended = i.getExtension("WEBGL_blend_func_extended");
31264
+ this.gl = i, this.clearColor = new Rf(this), this.clearDepth = new Km(this), this.clearStencil = new Zc(this), this.colorMask = new Jm(this), this.depthMask = new Lf(this), this.stencilMask = new Mh(this), this.stencilFunc = new qc(this), this.stencilOp = new Ph(this), this.stencilTest = new $s(this), this.depthRange = new Hs(this), this.depthTest = new Oa(this), this.depthFunc = new So(this), this.blend = new zf(this), this.blendFunc = new Dh(this), this.blendColor = new Ff(this), this.blendEquation = new Ba(this), this.cullFace = new $c(this), this.cullFaceSide = new Hc(this), this.frontFace = new Rh(this), this.program = new Wc(this), this.activeTexture = new Ol(this), this.viewport = new Of(this), this.bindFramebuffer = new Bf(this), this.bindRenderbuffer = new kf(this), this.bindTexture = new ka(this), this.bindVertexBuffer = new Nf(this), this.bindElementBuffer = new Qm(this), this.bindVertexArrayOES = new e_(this), this.pixelStoreUnpack = new t_(this), this.pixelStoreUnpackPremultiplyAlpha = new Lh(this), this.pixelStoreUnpackFlipY = new zh(this), this.options = o ? Object.assign({}, o) : {}, this.options.extTextureFilterAnisotropicForceOff || (this.extTextureFilterAnisotropic = i.getExtension("EXT_texture_filter_anisotropic") || i.getExtension("MOZ_EXT_texture_filter_anisotropic") || i.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = i.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT))), this.extDebugRendererInfo = i.getExtension("WEBGL_debug_renderer_info"), this.extDebugRendererInfo && (this.renderer = i.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL), this.vendor = i.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)), this.forceManualRenderingForInstanceIDShaders = o && !!o.forceManualRenderingForInstanceIDShaders || this.renderer && this.renderer.indexOf("PowerVR") !== -1, this.disableSymbolUBO = o && !!o.forceDisableSymbolUBO, this.options.extTextureFloatLinearForceOff || (this.extTextureFloatLinear = i.getExtension("OES_texture_float_linear")), this.extRenderToTextureHalfFloat = i.getExtension("EXT_color_buffer_half_float"), this.extTimerQuery = i.getExtension("EXT_disjoint_timer_query_webgl2"), this.maxTextureSize = i.getParameter(i.MAX_TEXTURE_SIZE), this.maxUniformBlockSize = Math.min(i.getParameter(i.MAX_UNIFORM_BLOCK_SIZE), 32768), this.maxUniformBufferBindings = i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS), this.extBlendFuncExtended = i.getExtension("WEBGL_blend_func_extended");
31265
31265
  }
31266
31266
  setDefault() {
31267
31267
  this.unbindVAO(), this.clearColor.setDefault(), this.clearDepth.setDefault(), this.clearStencil.setDefault(), this.colorMask.setDefault(), this.depthMask.setDefault(), this.stencilMask.setDefault(), this.stencilFunc.setDefault(), this.stencilOp.setDefault(), this.stencilTest.setDefault(), this.depthRange.setDefault(), this.depthTest.setDefault(), this.depthFunc.setDefault(), this.blend.setDefault(), this.blendFunc.setDefault(), this.blendColor.setDefault(), this.blendEquation.setDefault(), this.cullFace.setDefault(), this.cullFaceSide.setDefault(), this.frontFace.setDefault(), this.program.setDefault(), this.activeTexture.setDefault(), this.bindFramebuffer.setDefault(), this.pixelStoreUnpack.setDefault(), this.pixelStoreUnpackPremultiplyAlpha.setDefault(), this.pixelStoreUnpackFlipY.setDefault();
@@ -31270,7 +31270,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31270
31270
  this.clearColor.dirty = !0, this.clearDepth.dirty = !0, this.clearStencil.dirty = !0, this.colorMask.dirty = !0, this.depthMask.dirty = !0, this.stencilMask.dirty = !0, this.stencilFunc.dirty = !0, this.stencilOp.dirty = !0, this.stencilTest.dirty = !0, this.depthRange.dirty = !0, this.depthTest.dirty = !0, this.depthFunc.dirty = !0, this.blend.dirty = !0, this.blendFunc.dirty = !0, this.blendColor.dirty = !0, this.blendEquation.dirty = !0, this.cullFace.dirty = !0, this.cullFaceSide.dirty = !0, this.frontFace.dirty = !0, this.program.dirty = !0, this.activeTexture.dirty = !0, this.viewport.dirty = !0, this.bindFramebuffer.dirty = !0, this.bindRenderbuffer.dirty = !0, this.bindTexture.dirty = !0, this.bindVertexBuffer.dirty = !0, this.bindElementBuffer.dirty = !0, this.bindVertexArrayOES.dirty = !0, this.pixelStoreUnpack.dirty = !0, this.pixelStoreUnpackPremultiplyAlpha.dirty = !0, this.pixelStoreUnpackFlipY.dirty = !0;
31271
31271
  }
31272
31272
  createIndexBuffer(i, o, u) {
31273
- return new lo(this, i, o, u);
31273
+ return new ao(this, i, o, u);
31274
31274
  }
31275
31275
  createVertexBuffer(i, o, u, d, m) {
31276
31276
  return new ep(this, i, o, u, d, m);
@@ -31381,14 +31381,14 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31381
31381
  const xe = l.allowVerticalPlacement && $.placedOrientation === a.bk.vertical ? Math.PI / 2 : 0;
31382
31382
  for (let we = 0; we < Y; we++) a.bn(M, se, be, ge, xe);
31383
31383
  T && $.associatedIconIndex >= 0 && (D[$.associatedIconIndex] = { x: se, y: be, z: ge, angle: xe });
31384
- } else Ma(Y, M);
31384
+ } else Ca(Y, M);
31385
31385
  }
31386
31386
  if (T) {
31387
31387
  C.clear();
31388
31388
  const q = l.icon.placedSymbolArray;
31389
31389
  for (let $ = 0; $ < q.length; $++) {
31390
31390
  const j = q.get($), { numGlyphs: oe } = j, Y = D[$];
31391
- if (j.hidden || !Y) Ma(oe, C);
31391
+ if (j.hidden || !Y) Ca(oe, C);
31392
31392
  else {
31393
31393
  const { x: re, y: H, z: X, angle: ee } = Y;
31394
31394
  for (let de = 0; de < oe; de++) a.bn(C, re, H, X, ee);
@@ -31409,7 +31409,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31409
31409
  let bt = [0, 0, 0];
31410
31410
  if (qt) {
31411
31411
  const gi = l.style.directionalLight, ni = l.style.ambientLight;
31412
- gi && ni && (bt = so(l.style, gi, ni));
31412
+ gi && ni && (bt = oo(l.style, gi, ni));
31413
31413
  }
31414
31414
  return bt;
31415
31415
  }, At = (qt) => {
@@ -31426,15 +31426,15 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31426
31426
  yt(bt), Nt(bt);
31427
31427
  const gi = qt || xt, ni = Re.elevationType === "road", Yi = l.shadowRenderer, Rt = ni && se && !!Yi && Yi.enabled, si = ut(Rt), Qi = ni && se && !l.terrain ? fe : Le, Cr = o.paint.get("icon-image-cross-fade");
31428
31428
  l.terrainRenderModeElevated() && se && bt.push("PITCH_WITH_MAP_TERRAIN"), tt && (bt.push("PROJECTION_GLOBE_VIEW"), gi && bt.push("PROJECTED_POS_ON_VIEWPORT")), Cr > 0 && Re.hasAnySecondaryIcon && bt.push("ICON_TRANSITION"), !Re.icon.zOffsetVertexBuffer || ni && l.terrain || bt.push("Z_OFFSET"), N === 0 && q === 0 && $ === 0 && j === 1 || bt.push("COLOR_ADJUSTMENT"), Re.sdfIcons && bt.push("RENDER_SDF"), Rt && bt.push("RENDER_SHADOWS", "NORMAL_OFFSET"), ni && se && !l.terrain && Re.icon.orientationVertexBuffer && bt.push("ELEVATED_ROADS"), At(bt);
31429
- const or = re.disableSymbolUBO ? Re.icon.programConfigurations.get(o.id) : null, _r = l.getOrCreateProgram("symbol", { config: or, defines: bt }), _n = Ve.imageAtlasTexture ? Ve.imageAtlasTexture.size : [0, 0], Xt = Re.iconSizeData, Mn = a.bj(Xt, X.zoom), Pn = se || !X.isOrthographic, fi = hs(Ke, Ve.tileID.canonical, se, ee, X, Re.getProjection(), et), pi = Ca(Ke, Ve.tileID.canonical, se, ee, X, Re.getProjection(), et), Qt = Re.icon.uboBinder && Re.icon.uboBinder.cachedHeader && 256 & Re.icon.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : y, qi = l.translatePosMatrix(pi, Ve, Qt, T, !0), Fr = l.translatePosMatrix(Ke, Ve, Qt, T), Mi = gi ? Wl : fi, gn = ee && !se && !qt;
31429
+ const or = re.disableSymbolUBO ? Re.icon.programConfigurations.get(o.id) : null, _r = l.getOrCreateProgram("symbol", { config: or, defines: bt }), _n = Ve.imageAtlasTexture ? Ve.imageAtlasTexture.size : [0, 0], Xt = Re.iconSizeData, Mn = a.bj(Xt, X.zoom), Pn = se || !X.isOrthographic, fi = hs(Ke, Ve.tileID.canonical, se, ee, X, Re.getProjection(), et), pi = Aa(Ke, Ve.tileID.canonical, se, ee, X, Re.getProjection(), et), Qt = Re.icon.uboBinder && Re.icon.uboBinder.cachedHeader && 256 & Re.icon.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : y, qi = l.translatePosMatrix(pi, Ve, Qt, T, !0), Fr = l.translatePosMatrix(Ke, Ve, Qt, T), Mi = gi ? Wl : fi, gn = ee && !se && !qt;
31430
31430
  let bs = Ze;
31431
31431
  !we && !X.mercatorFromTransition || ee || (bs = qo(X));
31432
- const na = tt ? bs : Ze, oa = o.getColorAdjustmentMatrix(N, q, $, j), Ya = au(Xt.kind, Mn, gn, se, l, Fr, Mi, qi, oe, !1, _n, [0, 0], 0, Ne, ot, le, gt, na, Re.getProjection(), si, Et, oa, Cr, null), Ko = Ve.imageAtlasTexture ? Ve.imageAtlasTexture : null, Po = o.layout.get("icon-size").constantOr(0) !== 1 || Re.iconsNeedLinear, Ka = Re.sdfIcons || l.options.rotating || l.options.zooming || Po || Pn ? H.LINEAR : H.NEAREST, nn = Re.sdfIcons && o.paint.get("icon-halo-width").constantOr(1) !== 0, ws = l.terrain && se && qt ? a.b7(a.bb(), fi) : Wl;
31432
+ const na = tt ? bs : Ze, oa = o.getColorAdjustmentMatrix(N, q, $, j), Xa = au(Xt.kind, Mn, gn, se, l, Fr, Mi, qi, oe, !1, _n, [0, 0], 0, Ne, ot, le, gt, na, Re.getProjection(), si, Et, oa, Cr, null), Ko = Ve.imageAtlasTexture ? Ve.imageAtlasTexture : null, Po = o.layout.get("icon-size").constantOr(0) !== 1 || Re.iconsNeedLinear, Ya = Re.sdfIcons || l.options.rotating || l.options.zooming || Po || Pn ? H.LINEAR : H.NEAREST, rn = Re.sdfIcons && o.paint.get("icon-halo-width").constantOr(1) !== 0, ws = l.terrain && se && qt ? a.b7(a.bb(), fi) : Wl;
31433
31433
  if (qt && Re.icon) {
31434
- const Ts = a.bu.getAtTileOffsetFunc(Ne, X.center.lat, X.worldSize, Re.getProjection()), Ss = ro(Ke, Ve.tileID.canonical, se, ee, X, Re.getProjection(), et), Ru = o.layout.get("icon-size-scale-range"), Ja = a.aC(l.scaleFactor, Ru[0], Ru[1]);
31435
- fn(Re, Ke, l, !1, Ss, pi, se, L, Ts, Ne, Ja);
31434
+ const Ts = a.bu.getAtTileOffsetFunc(Ne, X.center.lat, X.worldSize, Re.getProjection()), Ss = io(Ke, Ve.tileID.canonical, se, ee, X, Re.getProjection(), et), Ru = o.layout.get("icon-size-scale-range"), Ka = a.aC(l.scaleFactor, Ru[0], Ru[1]);
31435
+ fn(Re, Ke, l, !1, Ss, pi, se, L, Ts, Ne, Ka);
31436
31436
  }
31437
- return { program: _r, buffers: Re.icon, uniformValues: Ya, atlasTexture: Ko, atlasTextureIcon: null, atlasInterpolation: Ka, atlasInterpolationIcon: null, isSDF: Re.sdfIcons, hasHalo: nn, depthMode: Qi, tile: Ve, renderWithShadows: Rt, labelPlaneMatrixInv: ws };
31437
+ return { program: _r, buffers: Re.icon, uniformValues: Xa, atlasTexture: Ko, atlasTextureIcon: null, atlasInterpolation: Ya, atlasInterpolationIcon: null, isSDF: Re.sdfIcons, hasHalo: rn, depthMode: Qi, tile: Ve, renderWithShadows: Rt, labelPlaneMatrixInv: ws };
31438
31438
  }, yi = () => {
31439
31439
  const qt = de && o.layout.get("symbol-placement") !== "point", bt = [], gi = qt || xe || xt, ni = Re.elevationType === "road", Yi = l.shadowRenderer, Rt = ni && be && !!Yi && Yi.enabled, si = ut(Rt), Qi = ni && be && !l.terrain ? fe : Le;
31440
31440
  l.terrainRenderModeElevated() && be && bt.push("PITCH_WITH_MAP_TERRAIN"), tt && (bt.push("PROJECTION_GLOBE_VIEW"), gi && bt.push("PROJECTED_POS_ON_VIEWPORT")), !Re.text.zOffsetVertexBuffer || ni && l.terrain || bt.push("Z_OFFSET"), Re.iconsInText && bt.push("RENDER_TEXT_AND_SYMBOL"), bt.push("RENDER_SDF"), Rt && bt.push("RENDER_SHADOWS", "NORMAL_OFFSET"), ni && be && !l.terrain && Re.text.orientationVertexBuffer && bt.push("ELEVATED_ROADS"), yt(bt), At(bt);
@@ -31442,15 +31442,15 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31442
31442
  let _r, _n = [0, 0], Xt = null;
31443
31443
  const Mn = Re.textSizeData;
31444
31444
  Re.iconsInText && (_n = Ve.imageAtlasTexture ? Ve.imageAtlasTexture.size : [0, 0], Xt = Ve.imageAtlasTexture ? Ve.imageAtlasTexture : null, _r = be || !X.isOrthographic || l.options.rotating || l.options.zooming || Mn.kind === "composite" || Mn.kind === "camera" ? H.LINEAR : H.NEAREST);
31445
- const Pn = Ve.glyphAtlasTexture ? Ve.glyphAtlasTexture.size : [0, 0], fi = o.layout.get("text-size-scale-range"), pi = a.aC(l.scaleFactor, fi[0], fi[1]), Qt = a.bj(Mn, X.zoom, pi), qi = hs(Ke, Ve.tileID.canonical, be, de, X, Re.getProjection(), et), Fr = Ca(Ke, Ve.tileID.canonical, be, de, X, Re.getProjection(), et), Mi = Re.text.uboBinder && Re.text.uboBinder.cachedHeader && 256 & Re.text.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : v, gn = l.translatePosMatrix(Fr, Ve, Mi, I, !0), bs = l.translatePosMatrix(Ke, Ve, Mi, I), na = gi ? Wl : qi, oa = de && !be && !qt;
31446
- let Ya = Ze;
31447
- !we && !X.mercatorFromTransition || de || (Ya = qo(X));
31448
- const Ko = au(Mn.kind, Qt, oa, be, l, bs, na, gn, oe, !0, Pn, _n, 0, Ne, ot, le, gt, tt ? Ya : Ze, Re.getProjection(), si, Et, null, null, pi), Po = Ve.glyphAtlasTexture ? Ve.glyphAtlasTexture : null, Ka = H.LINEAR, nn = o.paint.get("text-halo-width").constantOr(1) !== 0, ws = l.terrain && be && qt ? a.b7(a.bb(), qi) : Wl;
31445
+ const Pn = Ve.glyphAtlasTexture ? Ve.glyphAtlasTexture.size : [0, 0], fi = o.layout.get("text-size-scale-range"), pi = a.aC(l.scaleFactor, fi[0], fi[1]), Qt = a.bj(Mn, X.zoom, pi), qi = hs(Ke, Ve.tileID.canonical, be, de, X, Re.getProjection(), et), Fr = Aa(Ke, Ve.tileID.canonical, be, de, X, Re.getProjection(), et), Mi = Re.text.uboBinder && Re.text.uboBinder.cachedHeader && 256 & Re.text.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : v, gn = l.translatePosMatrix(Fr, Ve, Mi, I, !0), bs = l.translatePosMatrix(Ke, Ve, Mi, I), na = gi ? Wl : qi, oa = de && !be && !qt;
31446
+ let Xa = Ze;
31447
+ !we && !X.mercatorFromTransition || de || (Xa = qo(X));
31448
+ const Ko = au(Mn.kind, Qt, oa, be, l, bs, na, gn, oe, !0, Pn, _n, 0, Ne, ot, le, gt, tt ? Xa : Ze, Re.getProjection(), si, Et, null, null, pi), Po = Ve.glyphAtlasTexture ? Ve.glyphAtlasTexture : null, Ya = H.LINEAR, rn = o.paint.get("text-halo-width").constantOr(1) !== 0, ws = l.terrain && be && qt ? a.b7(a.bb(), qi) : Wl;
31449
31449
  if (qt && Re.text) {
31450
- const Ts = a.bu.getAtTileOffsetFunc(Ne, X.center.lat, X.worldSize, Re.getProjection()), Ss = ro(Ke, Ve.tileID.canonical, be, de, X, Re.getProjection(), et);
31450
+ const Ts = a.bu.getAtTileOffsetFunc(Ne, X.center.lat, X.worldSize, Re.getProjection()), Ss = io(Ke, Ve.tileID.canonical, be, de, X, Re.getProjection(), et);
31451
31451
  fn(Re, Ke, l, !0, Ss, Fr, be, V, Ts, Ne, pi);
31452
31452
  }
31453
- return { program: or, buffers: Re.text, uniformValues: Ko, atlasTexture: Po, atlasTextureIcon: Xt, atlasInterpolation: Ka, atlasInterpolationIcon: _r, isSDF: !0, hasHalo: nn, depthMode: Qi, tile: Ve, renderWithShadows: Rt, labelPlaneMatrixInv: ws };
31453
+ return { program: or, buffers: Re.text, uniformValues: Ko, atlasTexture: Po, atlasTextureIcon: Xt, atlasInterpolation: Ya, atlasInterpolationIcon: _r, isSDF: !0, hasHalo: rn, depthMode: Qi, tile: Ve, renderWithShadows: Rt, labelPlaneMatrixInv: ws };
31454
31454
  }, li = Re.icon.segments.get().length, Zt = Re.text.segments.get().length, St = li && !_.onlyText ? ri() : null, It = Zt && !_.onlyIcons ? yi() : null, ci = o.paint.get("icon-opacity").constantOr(1), wi = o.paint.get("text-opacity").constantOr(1);
31455
31455
  if (ge && Re.canOverlap) {
31456
31456
  Pe = !0;
@@ -31514,7 +31514,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31514
31514
  let Nt = [0, 0, 0];
31515
31515
  if (yt) {
31516
31516
  const Rt = l.style.directionalLight, si = l.style.ambientLight;
31517
- Rt && si && (Nt = so(l.style, Rt, si)), ut.push("RENDER_SHADOWS", "NORMAL_OFFSET");
31517
+ Rt && si && (Nt = oo(l.style, Rt, si)), ut.push("RENDER_SHADOWS", "NORMAL_OFFSET");
31518
31518
  }
31519
31519
  const ri = Et.programConfigurations.get(o.id);
31520
31520
  let yi = !1;
@@ -31618,7 +31618,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31618
31618
  let oe = [0, 0, 0];
31619
31619
  if ($) {
31620
31620
  const X = d.style.directionalLight, ee = d.style.ambientLight;
31621
- X && ee && (oe = so(d.style, X, ee));
31621
+ X && ee && (oe = oo(d.style, X, ee));
31622
31622
  }
31623
31623
  const Y = D && D.constantOr(1), re = d.terrain && d.terrain.renderingToTexture, H = (X, ee) => {
31624
31624
  let de, se, be, ge, Pe;
@@ -31645,7 +31645,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31645
31645
  if (ee) {
31646
31646
  ge = xe.lineIndexBuffer, Pe = xe.lineSegments;
31647
31647
  const et = d.terrain && d.terrain.renderingToTexture ? d.terrain.drapeBufferSize : [C.drawingBufferWidth, C.drawingBufferHeight];
31648
- se = de === "fillOutlinePattern" && Y ? ja(tt, ot, d, fe, et, oe, z) : qf(tt, ot, et, oe);
31648
+ se = de === "fillOutlinePattern" && Y ? Ua(tt, ot, d, fe, et, oe, z) : qf(tt, ot, et, oe);
31649
31649
  } else ge = xe.indexBuffer, Pe = xe.triangleSegments, se = Y ? tu(tt, ot, d, fe, oe, z) : eu(tt, ot, oe);
31650
31650
  d.uploadCommonUniforms(d.context, Re, Le.toUnwrapped());
31651
31651
  let Ke = X;
@@ -31666,7 +31666,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
31666
31666
  let ot = [0, 0, 0];
31667
31667
  if (Ve) {
31668
31668
  const ft = l.style.directionalLight, xt = l.style.ambientLight;
31669
- ft && xt && (ot = so(l.style, ft, xt)), Ne || (Se.push("RENDER_SHADOWS"), Ve.useNormalOffset && Se.push("NORMAL_OFFSET")), Ze = Se.concat(["SHADOWS_SINGLE_CASCADE"]);
31669
+ ft && xt && (ot = oo(l.style, ft, xt)), Ne || (Se.push("RENDER_SHADOWS"), Ve.useNormalOffset && Se.push("NORMAL_OFFSET")), Ze = Se.concat(["SHADOWS_SINGLE_CASCADE"]);
31670
31670
  }
31671
31671
  const Ke = Re ? "fillExtrusionDepth" : z ? "fillExtrusionPattern" : "fillExtrusion", et = o.getLayerRenderingStats();
31672
31672
  for (const ft of u) {
@@ -32178,7 +32178,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32178
32178
  const D = u.shadowRenderer;
32179
32179
  D && (l.push("RENDER_SHADOWS"), D.useNormalOffset && l.push("NORMAL_OFFSET"));
32180
32180
  }
32181
- function qa(l, i, o, u, d, m) {
32181
+ function Za(l, i, o, u, d, m) {
32182
32182
  const _ = l.modelOpacity, y = i.context, v = new rt(i.context.gl.LEQUAL, l.isLightMesh ? rt.ReadOnly : rt.ReadWrite, i.depthRangeFor3D), T = i.transform, I = l.mesh, M = I.material, C = M.pbrMetallicRoughness, D = i.style.fog;
32183
32183
  let z;
32184
32184
  z = i.transform.projection.zAxisUnit === "pixels" ? [...l.nodeModelMatrix] : a.aD([], u.zScaleMatrix, l.nodeModelMatrix), a.aD(z, u.negCameraPosMatrix, z);
@@ -32220,7 +32220,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32220
32220
  }
32221
32221
  if (i.children) for (const z of i.children) gu(l, z, o, u, d, m, _, y, v, T);
32222
32222
  }
32223
- function $a(l, i, o, u) {
32223
+ function qa(l, i, o, u) {
32224
32224
  const d = o.shadowRenderer;
32225
32225
  if (!d) return;
32226
32226
  const m = d.getShadowPassDepthMode(), _ = d.calculateShadowPassMatrixFromMatrix(i), y = Uh(_);
@@ -32269,11 +32269,11 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32269
32269
  }
32270
32270
  function Wo(l, i, o, u, d) {
32271
32271
  let m = !1;
32272
- for (const y of u) y.modelOpacity !== 1 && (qa(y, l, i, d[y.modelIndex], _t.disabled, pt.disabled), m = !0);
32273
- for (const y of u) qa(y, l, i, d[y.modelIndex], y.modelOpacity !== 1 ? l.stencilModeFor3D() : _t.disabled, l.colorModeForRenderPass());
32272
+ for (const y of u) y.modelOpacity !== 1 && (Za(y, l, i, d[y.modelIndex], _t.disabled, pt.disabled), m = !0);
32273
+ for (const y of u) Za(y, l, i, d[y.modelIndex], y.modelOpacity !== 1 ? l.stencilModeFor3D() : _t.disabled, l.colorModeForRenderPass());
32274
32274
  m && l.resetStencilClippingMasks();
32275
32275
  const _ = pt.additive;
32276
- for (const y of o) qa(y, l, i, d[y.modelIndex], _t.disabled, y.isLightMesh ? _ : l.colorModeForRenderPass());
32276
+ for (const y of o) Za(y, l, i, d[y.modelIndex], _t.disabled, y.isLightMesh ? _ : l.colorModeForRenderPass());
32277
32277
  }
32278
32278
  function Ge(l, i, o) {
32279
32279
  const u = i.updateZoomBasedPaintProperties(), d = (function(m, _, y) {
@@ -32295,7 +32295,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32295
32295
  (u || d) && (i.uploaded = !1, i.upload(l.context));
32296
32296
  }
32297
32297
  const ke = { shadowUniformsInitialized: !1, useSingleShadowCascade: !1, tileMatrix: new Float64Array(16), shadowTileMatrix: new Float32Array(16), aabb: new a.cU([0, 0, 0], [a.an, a.an, 0]) };
32298
- function Ha(l, i) {
32298
+ function $a(l, i) {
32299
32299
  const o = 1 << l.canonical.z, u = i.getFreeCameraOptions().position, d = i.elevation, m = l.canonical.x / o, _ = (l.canonical.x + 1) / o, y = l.canonical.y / o, v = (l.canonical.y + 1) / o;
32300
32300
  let T = i._centerAltitude;
32301
32301
  if (d) {
@@ -32383,7 +32383,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32383
32383
  v.emplaceBack(C, D), v.emplaceBack(D, z), v.emplaceBack(z, C);
32384
32384
  }
32385
32385
  const T = u.bindVertexArrayOES.current, I = new xu();
32386
- return I.buf = new lo(u, v), I.lastUsedFrameIdx = i, this._storage.set(o.id, I), u.bindVertexArrayOES.set(T), I.buf;
32386
+ return I.buf = new ao(u, v), I.lastUsedFrameIdx = i, this._storage.set(o.id, I), u.bindVertexArrayOES.set(T), I.buf;
32387
32387
  }
32388
32388
  update(i) {
32389
32389
  for (const [o, u] of this._storage) i - u.lastUsedFrameIdx > 30 && (u.buf.destroy(), this._storage.delete(o));
@@ -32397,7 +32397,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32397
32397
  this.occluderSize = 30, this.depthOffset = -1e-4;
32398
32398
  }
32399
32399
  }
32400
- const Wa = a.e8([{ type: "Float32", name: "a_pos_3f", components: 3 }, { type: "Float32", name: "a_uv", components: 2 }, { type: "Float32", name: "a_rainParticleData", components: 4 }]);
32400
+ const Ha = a.e8([{ type: "Float32", name: "a_pos_3f", components: 3 }, { type: "Float32", name: "a_uv", components: 2 }, { type: "Float32", name: "a_rainParticleData", components: 4 }]);
32401
32401
  class mp {
32402
32402
  constructor(i) {
32403
32403
  this.revealStart = 11, this.revealRange = 2;
@@ -32484,7 +32484,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32484
32484
  const T = u[v], I = [2 * y() - 1, y(), y(), y()];
32485
32485
  d.emplaceBack(T[0], T[1], T[2], -1, -1, ...I), d.emplaceBack(T[0], T[1], T[2], 1, -1, ...I), d.emplaceBack(T[0], T[1], T[2], 1, 1, ...I), d.emplaceBack(T[0], T[1], T[2], -1, 1, ...I), m.emplaceBack(_ + 0, _ + 1, _ + 2), m.emplaceBack(_ + 0, _ + 2, _ + 3), _ += 4;
32486
32486
  }
32487
- this.particlesVx = o.createVertexBuffer(d, Wa.members), this.particlesIdx = o.createIndexBuffer(m);
32487
+ this.particlesVx = o.createVertexBuffer(d, Ha.members), this.particlesIdx = o.createIndexBuffer(m);
32488
32488
  }
32489
32489
  }
32490
32490
  draw(i) {
@@ -32674,7 +32674,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
32674
32674
  let X = [0, 0, 0];
32675
32675
  if (re) {
32676
32676
  const de = V.style.directionalLight, se = V.style.ambientLight;
32677
- de && se && (X = so(V.style, de, se));
32677
+ de && se && (X = oo(V.style, de, se));
32678
32678
  }
32679
32679
  const ee = (de) => {
32680
32680
  for (const se of $) {
@@ -33130,7 +33130,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
33130
33130
  const we = xe.getModelUris();
33131
33131
  if (we && !xe.modelsRequested && (se.addModelsFromBucket(we, H), xe.modelsRequested = !0), ee) Pe.zoom = le.overscaledZ;
33132
33132
  else {
33133
- const Ke = Ha(le, X);
33133
+ const Ke = $a(le, X);
33134
33134
  Pe.zoom = Ke;
33135
33135
  }
33136
33136
  const Se = ge.possiblyEvaluate(Pe);
@@ -33165,8 +33165,8 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
33165
33165
  } else for (const xt of ft.nodes) bi(j, Y, xt, et, Ne, le, ke);
33166
33166
  }
33167
33167
  if (ee) if (j.renderPass === "shadow") {
33168
- for (const Ke of tt) $a(Ke.mesh, Ke.nodeModelMatrix, j, Y);
33169
- for (const Ke of Re) $a(Ke.mesh, Ke.nodeModelMatrix, j, Y);
33168
+ for (const Ke of tt) qa(Ke.mesh, Ke.nodeModelMatrix, j, Y);
33169
+ for (const Ke of Re) qa(Ke.mesh, Ke.nodeModelMatrix, j, Y);
33170
33170
  } else Wo(j, Y, Re, tt, ot);
33171
33171
  }
33172
33172
  })(l, i, o, u, _u(l, o)), void M();
@@ -33243,7 +33243,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
33243
33243
  } else if (bt) continue;
33244
33244
  const or = { defines: [] }, _r = [];
33245
33245
  if (!Ze && de && (de.useNormalOffset = !!si.normalBuffer), Ht(or.defines, _r, si, j, gi ? null : Y.lut), ni || or.defines.push("DIFFUSE_SHADED"), ri && or.defines.push("SHADOWS_SINGLE_CASCADE"), ot && (Ze ? ot.numRenderedVerticesInShadowPass += si.vertexArray.length : ot.numRenderedVerticesInTransparentPass += si.vertexArray.length), Ze) {
33246
- $a(si, St.nodeModelMatrix, j, Y);
33246
+ qa(si, St.nodeModelMatrix, j, Y);
33247
33247
  continue;
33248
33248
  }
33249
33249
  let _n = null;
@@ -33309,8 +33309,8 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
33309
33309
  }
33310
33310
  Wo(l, o, N, q, z), M();
33311
33311
  } else {
33312
- for (const j of q) $a(j.mesh, j.nodeModelMatrix, l, o);
33313
- for (const j of N) $a(j.mesh, j.nodeModelMatrix, l, o);
33312
+ for (const j of q) qa(j.mesh, j.nodeModelMatrix, l, o);
33313
+ for (const j of N) qa(j.mesh, j.nodeModelMatrix, l, o);
33314
33314
  M();
33315
33315
  }
33316
33316
  } }, ld = { line: function(l, i, o) {
@@ -33362,7 +33362,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
33362
33362
  } };
33363
33363
  class f_ {
33364
33364
  constructor(i, o, u, d, m) {
33365
- this.context = new Za(i, o), this.transform = u, this._tileTextures = {}, this.frameCopies = [], this.loadTimeStamps = [], this._timeStamp = a.o.now(), this._averageFPS = 0, this._fpsHistory = [], this._dt = 0, this._debugParams = { forceEnablePrecipitation: !1, showTerrainProxyTiles: !1, fpsWindow: 30, continousRedraw: !1, show3DModelFootprints: !1, enabledLayers: {} };
33365
+ this.context = new Ga(i, o), this.transform = u, this._tileTextures = {}, this.frameCopies = [], this.loadTimeStamps = [], this._timeStamp = a.o.now(), this._averageFPS = 0, this._fpsHistory = [], this._dt = 0, this._debugParams = { forceEnablePrecipitation: !1, showTerrainProxyTiles: !1, fpsWindow: 30, continousRedraw: !1, show3DModelFootprints: !1, enabledLayers: {} };
33366
33366
  const _ = ["fill", "line", "symbol", "circle", "heatmap", "fill-extrusion", "building", "raster", "raster-particle", "hillshade", "model", "background", "sky"];
33367
33367
  for (const v of _) this._debugParams.enabledLayers[v] = !0;
33368
33368
  for (const v of _) ;
@@ -34014,7 +34014,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
34014
34014
  return this._defaultPrevented;
34015
34015
  }
34016
34016
  constructor(i, o, u, d = {}) {
34017
- const m = to(o.getCanvasContainer(), u), _ = o.unproject(m);
34017
+ const m = eo(o.getCanvasContainer(), u), _ = o.unproject(m);
34018
34018
  super(i, Object.assign({ point: m, lngLat: _, originalEvent: u }, d)), this._defaultPrevented = !1, this.target = o;
34019
34019
  }
34020
34020
  }
@@ -34234,7 +34234,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
34234
34234
  }
34235
34235
  }
34236
34236
  }
34237
- class Xa {
34237
+ class Wa {
34238
34238
  constructor() {
34239
34239
  this._zoomIn = new Mo({ numTouches: 1, numTaps: 2 }), this._zoomOut = new Mo({ numTouches: 2, numTaps: 1 }), this.reset();
34240
34240
  }
@@ -34638,7 +34638,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
34638
34638
  _start(i) {
34639
34639
  if (!this._delta) return;
34640
34640
  this._frameId && (this._frameId = null), this._active = !0, this.isZooming() || (this._zooming = !0), this._finishTimeout && (clearTimeout(this._finishTimeout), delete this._finishTimeout);
34641
- const o = to(this._el, i);
34641
+ const o = eo(this._el, i);
34642
34642
  this._aroundPoint = this._aroundCenter ? this._map.transform.centerPoint : o, this._aroundCoord = this._map.transform.pointCoordinate3D(this._aroundPoint), this._targetZoom = void 0, this._frameId || (this._frameId = !0, this._handler._triggerRenderFrame());
34643
34643
  }
34644
34644
  renderFrame() {
@@ -34873,7 +34873,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
34873
34873
  this._add("mapEvent", new fd(o, i));
34874
34874
  const d = o.boxZoom = new md(o, i);
34875
34875
  this._add("boxZoom", d);
34876
- const m = new Xa(), _ = new Mu();
34876
+ const m = new Wa(), _ = new Mu();
34877
34877
  o.doubleClickZoom = new Cu(_, m), this._add("tapZoom", m), this._add("clickZoom", _);
34878
34878
  const y = new vp();
34879
34879
  this._add("tapDragZoom", y);
@@ -34930,7 +34930,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
34930
34930
  }
34931
34931
  handleEvent(i, o) {
34932
34932
  this._updatingCamera = !0;
34933
- const u = i.type === "renderFrame", d = u ? void 0 : i, m = { needsRenderFrame: !1 }, _ = {}, y = {}, v = i.touches ? this._getMapTouches(i.touches) : void 0, T = v ? No(this._el, v) : u ? void 0 : to(this._el, i);
34933
+ const u = i.type === "renderFrame", d = u ? void 0 : i, m = { needsRenderFrame: !1 }, _ = {}, y = {}, v = i.touches ? this._getMapTouches(i.touches) : void 0, T = v ? No(this._el, v) : u ? void 0 : eo(this._el, i);
34934
34934
  for (const { handlerName: C, handler: D, allowed: z } of this._handlers) {
34935
34935
  if (!D.isEnabled()) continue;
34936
34936
  let L;
@@ -35609,10 +35609,10 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
35609
35609
  Bo(), window.removeEventListener("mousemove", this.mousemove), window.removeEventListener("mouseup", this.mouseup);
35610
35610
  }
35611
35611
  mousedown(i) {
35612
- this.down(Object.assign({}, i, { button: i.button, type: i.type, ctrlKey: !0, preventDefault: () => i.preventDefault() }), to(this.element, i)), window.addEventListener("mousemove", this.mousemove), window.addEventListener("mouseup", this.mouseup);
35612
+ this.down(Object.assign({}, i, { button: i.button, type: i.type, ctrlKey: !0, preventDefault: () => i.preventDefault() }), eo(this.element, i)), window.addEventListener("mousemove", this.mousemove), window.addEventListener("mouseup", this.mouseup);
35613
35613
  }
35614
35614
  mousemove(i) {
35615
- this.move(i, to(this.element, i));
35615
+ this.move(i, eo(this.element, i));
35616
35616
  }
35617
35617
  mouseup(i) {
35618
35618
  this.mouseRotate.mouseupWindow(i), this.mousePitch && this.mousePitch.mouseupWindow(i), this.offTemp();
@@ -35878,12 +35878,12 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
35878
35878
  }
35879
35879
  return l instanceof a.P || Array.isArray(l) ? a.P.convert(l) : a.P.convert(l[i] || [0, 0]);
35880
35880
  }
35881
- return { version: We, supported: Qn.supported, setRTLTextPlugin: a.f3, getRTLTextPluginStatus: a.f2, addTileProvider: function(l, i) {
35881
+ return { version: We, supported: po.supported, setRTLTextPlugin: a.f3, getRTLTextPluginStatus: a.f2, addTileProvider: function(l, i) {
35882
35882
  if (!l || !i) throw new Error("TileProvider name and URL are required");
35883
35883
  a.g.TILE_PROVIDER_URLS[l] = a.o.resolveURL(i);
35884
35884
  }, Map: class extends Ep {
35885
35885
  constructor(l) {
35886
- an.mark($t.create);
35886
+ sn.mark($t.create);
35887
35887
  const i = l;
35888
35888
  if ((l = Object.assign({}, x_, l)).minZoom != null && l.maxZoom != null && l.minZoom > l.maxZoom) throw new Error("maxZoom must be greater than or equal to minZoom");
35889
35889
  if (l.minPitch != null && l.maxPitch != null && l.minPitch > l.maxPitch) throw new Error("maxPitch must be greater than or equal to minPitch");
@@ -36487,7 +36487,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
36487
36487
  i !== -1 && this._popups.splice(i, 1);
36488
36488
  }
36489
36489
  _setupPainter() {
36490
- const l = Object.assign({}, Qn.supported.webGLContextAttributes, { failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat, preserveDrawingBuffer: this._preserveDrawingBuffer, antialias: this._antialias || !1 }), i = this._canvas.getContext("webgl2", l);
36490
+ const l = Object.assign({}, po.supported.webGLContextAttributes, { failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat, preserveDrawingBuffer: this._preserveDrawingBuffer, antialias: this._antialias || !1 }), i = this._canvas.getContext("webgl2", l);
36491
36491
  i ? (Wi(i, !0), this.painter = new f_(i, this._contextCreateOptions, this.transform, this._scaleFactor, this._worldview), this.on("data", (o) => {
36492
36492
  if (o.dataType === "source") {
36493
36493
  const u = this.transform.elevation ? this.transform.elevation._source() : null;
@@ -36539,7 +36539,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
36539
36539
  }
36540
36540
  this.style && this.style.hasFogTransition() && (this.style._markersNeedUpdate = !0, this._sourcesDirty = !0);
36541
36541
  let _ = !1;
36542
- if (this.style && this._sourcesDirty ? (this._sourcesDirty = !1, this.painter._updateFog(this.style), this._updateTerrain(), _ = this._updateAverageElevation(u), this.style.updateSources(this.transform), this.style.updateImageProviders(), this.isMoving() || this._forceMarkerAndPopupUpdate()) : _ = this._updateAverageElevation(u), this.style && (this._placementDirty = this.style._updatePlacement(this.painter.transform, this.showCollisionBoxes, m, this._crossSourceCollisions, this.painter.replacementSource)), this.style && this.painter.render(this.style, { showTileBoundaries: this.showTileBoundaries, showParseStatus: this.showParseStatus, wireframe: { terrain: this.showTerrainWireframe, layers2D: this.showLayers2DWireframe, layers3D: this.showLayers3DWireframe }, showOverdrawInspector: this._showOverdrawInspector, showQueryGeometry: !!this._showQueryGeometry, showTileAABBs: this.showTileAABBs, rotating: this.isRotating(), zooming: this.isZooming(), moving: this.isMoving(), fadeDuration: m, isInitialLoad: this._isInitialLoad, showPadding: this.showPadding, gpuTiming: !!this.listens("gpu-timing-layer"), gpuTimingDeferredRender: !!this.listens("gpu-timing-deferred-render"), speedIndexTiming: this.speedIndexTiming }), this.fire(new a.C("render")), this.loaded() && !this._loaded && (this._loaded = !0, an.mark($t.load), this.fire(new a.C("load"))), this.style && this.style.hasTransitions() && (this._styleDirty = !0), this.style && (this.style.snow || this.style.rain) && (this._styleDirty = !0), this.style && this.style.imageManager.hasPatternsInFlight() && (this._styleDirty = !0), this.style && !this.style.modelManager.isLoaded() && (this._styleDirty = !0), this.style && !this._placementDirty && this.style._releaseSymbolFadeTiles(), i) {
36542
+ if (this.style && this._sourcesDirty ? (this._sourcesDirty = !1, this.painter._updateFog(this.style), this._updateTerrain(), _ = this._updateAverageElevation(u), this.style.updateSources(this.transform), this.style.updateImageProviders(), this.isMoving() || this._forceMarkerAndPopupUpdate()) : _ = this._updateAverageElevation(u), this.style && (this._placementDirty = this.style._updatePlacement(this.painter.transform, this.showCollisionBoxes, m, this._crossSourceCollisions, this.painter.replacementSource)), this.style && this.painter.render(this.style, { showTileBoundaries: this.showTileBoundaries, showParseStatus: this.showParseStatus, wireframe: { terrain: this.showTerrainWireframe, layers2D: this.showLayers2DWireframe, layers3D: this.showLayers3DWireframe }, showOverdrawInspector: this._showOverdrawInspector, showQueryGeometry: !!this._showQueryGeometry, showTileAABBs: this.showTileAABBs, rotating: this.isRotating(), zooming: this.isZooming(), moving: this.isMoving(), fadeDuration: m, isInitialLoad: this._isInitialLoad, showPadding: this.showPadding, gpuTiming: !!this.listens("gpu-timing-layer"), gpuTimingDeferredRender: !!this.listens("gpu-timing-deferred-render"), speedIndexTiming: this.speedIndexTiming }), this.fire(new a.C("render")), this.loaded() && !this._loaded && (this._loaded = !0, sn.mark($t.load), this.fire(new a.C("load"))), this.style && this.style.hasTransitions() && (this._styleDirty = !0), this.style && (this.style.snow || this.style.rain) && (this._styleDirty = !0), this.style && this.style.imageManager.hasPatternsInFlight() && (this._styleDirty = !0), this.style && !this.style.modelManager.isLoaded() && (this._styleDirty = !0), this.style && !this._placementDirty && this.style._releaseSymbolFadeTiles(), i) {
36543
36543
  const v = a.o.now() - u;
36544
36544
  d.endQuery(o.TIME_ELAPSED_EXT), setTimeout(() => {
36545
36545
  const T = d.getQueryParameter(i, d.QUERY_RESULT) / 1e6;
@@ -36570,7 +36570,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
36570
36570
  this.fire(new a.C("speedindexcompleted", { speedIndex: T })), this.speedIndexTiming = !1;
36571
36571
  }
36572
36572
  }
36573
- !this._loaded || this._fullyLoaded || y || (this._fullyLoaded = !0, an.mark($t.fullLoad), this._performanceMetricsCollection && fl(this._requestManager._customAccessToken, { width: this.painter.width, height: this.painter.height, interactionRange: this._interactionRange, visibilityHidden: this._visibilityHidden, terrainEnabled: !!this.painter.style.getTerrain(), fogEnabled: !!this.painter.style.getFog(), projection: this.getProjection().name, zoom: this.transform.zoom, renderer: this.painter.context.renderer, vendor: this.painter.context.vendor }), this._authenticate());
36573
+ !this._loaded || this._fullyLoaded || y || (this._fullyLoaded = !0, sn.mark($t.fullLoad), this._performanceMetricsCollection && fl(this._requestManager._customAccessToken, { width: this.painter.width, height: this.painter.height, interactionRange: this._interactionRange, visibilityHidden: this._visibilityHidden, terrainEnabled: !!this.painter.style.getTerrain(), fogEnabled: !!this.painter.style.getFog(), projection: this.getProjection().name, zoom: this.transform.zoom, renderer: this.painter.context.renderer, vendor: this.painter.context.vendor }), this._authenticate());
36574
36574
  }
36575
36575
  _forceMarkerAndPopupUpdate(l) {
36576
36576
  for (const i of this._markers) l && !this.getRenderWorldCopies() && (i._lngLat = i._lngLat.wrap()), i._update();
@@ -36600,7 +36600,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
36600
36600
  Wi(l, !1), this._logoControl instanceof Ad && this._logoControl._updateLogo(), l && l.clear(l.DEPTH_BUFFER_BIT | l.COLOR_BUFFER_BIT | l.STENCIL_BUFFER_BIT), this._silenceAuthErrors || this.fire(new a.B(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")));
36601
36601
  }
36602
36602
  _authenticate() {
36603
- ya(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, (l) => {
36603
+ ga(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, (l) => {
36604
36604
  l && (l.message !== ti && l.status !== 401 || this._revokeAuth());
36605
36605
  }), this._isTokenExpired() && this._revokeAuth(), Sc(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, () => {
36606
36606
  });
@@ -36612,7 +36612,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
36612
36612
  this.style.globalId && this.style.hasAppearances() && ji(this._requestManager._customAccessToken);
36613
36613
  }
36614
36614
  _postAddingAppearancesToStyleEvent() {
36615
- ga(this._requestManager._customAccessToken);
36615
+ _a(this._requestManager._customAccessToken);
36616
36616
  }
36617
36617
  _updateTerrain() {
36618
36618
  const l = this._isDragging();
@@ -36645,7 +36645,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
36645
36645
  for (const i of this._controls) i.onRemove(this);
36646
36646
  this._controls = [], this._frame && (this._frame.cancel(), this._frame = null), this._renderTaskQueue.clear(), this._domRenderTaskQueue.clear(), this.style && this.style.destroy(), this.painter.destroy(), this.handlers && this.handlers.destroy(), this.handlers = void 0, this.setStyle(null), window.removeEventListener("resize", this._onWindowResize, !1), window.removeEventListener("orientationchange", this._onWindowResize, !1), window.removeEventListener(this._fullscreenchangeEvent, this._onWindowResize, !1), window.removeEventListener("online", this._onWindowOnline, !1), window.removeEventListener("visibilitychange", this._onVisibilityChange, !1);
36647
36647
  const l = this.painter.context.gl.getExtension("WEBGL_lose_context");
36648
- l && l.loseContext(), this._canvas.removeEventListener("webglcontextlost", this._contextLost, !1), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, !1), this._canvasContainer.remove(), this._controlContainer.remove(), this._missingCSSCanary.remove(), this._canvas = void 0, this._canvasContainer = void 0, this._controlContainer = void 0, this._missingCSSCanary = void 0, this._container.classList.remove("mapboxgl-map"), this._container.removeEventListener("scroll", this._onMapScroll, !1), Nn.delete(this.painter.context.gl), Vo.remove(), _a.remove(), this._removed = !0, this.fire(new a.C("remove"));
36648
+ l && l.loseContext(), this._canvas.removeEventListener("webglcontextlost", this._contextLost, !1), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, !1), this._canvasContainer.remove(), this._controlContainer.remove(), this._missingCSSCanary.remove(), this._canvas = void 0, this._canvasContainer = void 0, this._controlContainer = void 0, this._missingCSSCanary = void 0, this._container.classList.remove("mapboxgl-map"), this._container.removeEventListener("scroll", this._onMapScroll, !1), Nn.delete(this.painter.context.gl), Vo.remove(), ma.remove(), this._removed = !0, this.fire(new a.C("remove"));
36649
36649
  }
36650
36650
  triggerRepaint() {
36651
36651
  this._triggerFrame(!0);
@@ -37249,7 +37249,7 @@ ${(d ? d.defines() : []).concat(_.map((L) => `#define ${L}`)).join(`
37249
37249
  this._container && (this._container.style.opacity = `${l}`), this._content && (this._content.style.pointerEvents = l ? "auto" : "none");
37250
37250
  }
37251
37251
  }, Marker: Xn, Style: $n, LngLat: a.aU, LngLatBounds: a.aK, Point: a.P, MercatorCoordinate: a.ag, FreeCameraOptions: Al, Evented: a.E, config: a.g, prewarm: function() {
37252
- xa().acquire(as);
37252
+ ya().acquire(as);
37253
37253
  }, clearPrewarmedResources: function() {
37254
37254
  const l = bn;
37255
37255
  l && (l.isPreloaded() && l.numActive() === 1 ? (l.release(as), bn = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));
@@ -37346,7 +37346,7 @@ _b.propTypes = {
37346
37346
  show2DModelsIn3D: Yr.string
37347
37347
  };
37348
37348
  function _b({ mapView: Ui, pitch: nh, reset: Kn, activeColor: Jn = "#005655", show2DModelsIn3D: Kr }) {
37349
- const { t: po } = g2(), [Jr, a] = pb(xn.initial3D), We = y2(".viewmode-switch-portal"), $t = () => Kr === "true";
37349
+ const { t: fo } = g2(), [Jr, a] = pb(xn.initial3D), We = y2(".viewmode-switch-portal"), $t = () => Kr === "true";
37350
37350
  return Vm(() => {
37351
37351
  Kn && a(xn.initial3D);
37352
37352
  }, [Kn]), Vm(() => {
@@ -37363,7 +37363,7 @@ function _b({ mapView: Ui, pitch: nh, reset: Kn, activeColor: Jn = "#005655", sh
37363
37363
  // If the Visibility Switch has not been interacted with, hide the 2D features
37364
37364
  // Tilt the map to the 'currentPitch' value - this is the value that the timeout property resets to.
37365
37365
  case xn.initial3D:
37366
- Ui.tilt(pa(nh) ? 45 : nh, 2e3), Ui.hideFeatures([
37366
+ Ui.tilt(al(nh) ? 45 : nh, 2e3), Ui.hideFeatures([
37367
37367
  ...$t() ? [] : [Ui.FeatureType.MODEL2D],
37368
37368
  Ui.FeatureType.WALLS2D
37369
37369
  ]);
@@ -37378,27 +37378,27 @@ function _b({ mapView: Ui, pitch: nh, reset: Kn, activeColor: Jn = "#005655", sh
37378
37378
  }
37379
37379
  });
37380
37380
  }, [Jr, Ui]), We ? x2(
37381
- /* @__PURE__ */ ma.jsxs("div", { className: "view-mode-switch", children: [
37382
- /* @__PURE__ */ ma.jsx(
37381
+ /* @__PURE__ */ pa.jsxs("div", { className: "view-mode-switch", children: [
37382
+ /* @__PURE__ */ pa.jsx(
37383
37383
  "button",
37384
37384
  {
37385
37385
  className: "view-mode-switch__button",
37386
37386
  onClick: () => a(xn.clicked2D),
37387
37387
  style: { backgroundColor: Jr === xn.clicked2D ? Jn : "white" },
37388
- "aria-label": po("Switch to 2D view"),
37388
+ "aria-label": fo("Switch to 2D view"),
37389
37389
  "aria-pressed": Jr === xn.clicked2D,
37390
- children: Jr === xn.clicked2D ? /* @__PURE__ */ ma.jsx(S2, { "aria-hidden": "true" }) : /* @__PURE__ */ ma.jsx(I2, { "aria-hidden": "true" })
37390
+ children: Jr === xn.clicked2D ? /* @__PURE__ */ pa.jsx(S2, { "aria-hidden": "true" }) : /* @__PURE__ */ pa.jsx(I2, { "aria-hidden": "true" })
37391
37391
  }
37392
37392
  ),
37393
- /* @__PURE__ */ ma.jsx(
37393
+ /* @__PURE__ */ pa.jsx(
37394
37394
  "button",
37395
37395
  {
37396
37396
  className: "view-mode-switch__button",
37397
37397
  onClick: () => a(xn.clicked3D),
37398
37398
  style: { backgroundColor: [xn.initial3D, xn.clicked3D].includes(Jr) ? Jn : "white" },
37399
- "aria-label": po("Switch to 3D view"),
37399
+ "aria-label": fo("Switch to 3D view"),
37400
37400
  "aria-pressed": [xn.initial3D, xn.clicked3D].includes(Jr),
37401
- children: [xn.initial3D, xn.clicked3D].includes(Jr) ? /* @__PURE__ */ ma.jsx(E2, { "aria-hidden": "true" }) : /* @__PURE__ */ ma.jsx(A2, { "aria-hidden": "true" })
37401
+ children: [xn.initial3D, xn.clicked3D].includes(Jr) ? /* @__PURE__ */ pa.jsx(E2, { "aria-hidden": "true" }) : /* @__PURE__ */ pa.jsx(A2, { "aria-hidden": "true" })
37402
37402
  }
37403
37403
  )
37404
37404
  ] }),
@@ -37419,34 +37419,35 @@ C2.propTypes = {
37419
37419
  mapOptions: Yr.object,
37420
37420
  appConfig: Yr.object
37421
37421
  };
37422
- function C2({ accessToken: Ui, onInitialized: nh, center: Kn, zoom: Jn, bounds: Kr, bearing: po, pitch: Jr, resetViewMode: a, viewModeSwitchVisible: We, mapOptions: $t, appConfig: an }) {
37422
+ function C2({ accessToken: Ui, onInitialized: nh, center: Kn, zoom: Jn, bounds: Kr, bearing: fo, pitch: Jr, resetViewMode: a, viewModeSwitchVisible: We, mapOptions: $t, appConfig: sn }) {
37423
37423
  const [jr, os] = pb();
37424
37424
  return Vm(() => {
37425
- jr && (pa(Kr) ? (pa(Kn) || jr.getMap().setCenter(Kn), pa(Jn) || jr.getMap().setZoom(Jn), pa(po) || jr.getMap().setBearing(po), pa(Jr) || jr.getMap().setPitch(Jr)) : jr.getMap().fitBounds([Kr.west, Kr.south, Kr.east, Kr.north], {
37425
+ jr && (al(Kr) ? (al(Kn) || jr.getMap().setCenter(Kn), al(Jn) || jr.getMap().setZoom(Jn), al(fo) || jr.getMap().setBearing(fo), al(Jr) || jr.getMap().setPitch(Jr)) : jr.getMap().fitBounds([Kr.west, Kr.south, Kr.east, Kr.north], {
37426
37426
  pitch: Jr || 0,
37427
- bearing: po || 0,
37427
+ bearing: fo || 0,
37428
37428
  animate: !1,
37429
37429
  padding: $t?.fitBoundsPadding
37430
37430
  }));
37431
- }, [jr, Kn, Jn, po, Jr, Kr, $t]), Vm(() => {
37431
+ }, [jr, Kn, Jn, fo, Jr, Kr, $t]), Vm(() => {
37432
37432
  window.mapboxgl = T2;
37433
- const Qr = {
37433
+ const an = {
37434
37434
  accessToken: Ui,
37435
37435
  element: document.getElementById("map"),
37436
37436
  center: Kn ?? { lat: 0, lng: 0 },
37437
37437
  // The MapsIndoors SDK needs a starting point and a zoom level to avoid timing issues when setting a venue.
37438
37438
  zoom: Jn ?? 15,
37439
37439
  bounds: Kr ? [Kr.west, Kr.south, Kr.east, Kr.north] : void 0,
37440
- bearing: po ?? 0,
37440
+ bearing: fo ?? 0,
37441
37441
  pitch: Jr ?? 0,
37442
37442
  useMapsIndoorsMapboxStyle: !$t?.mapboxMapStyle,
37443
+ ...$t?.mapboxMapStyle && { style: $t.mapboxMapStyle },
37443
37444
  localIdeographFontFamily: "sans-serif",
37444
37445
  ...$t
37445
37446
  };
37446
- $t?.miTransitionLevel && !isNaN(parseInt($t?.miTransitionLevel)) && (Qr.mapsIndoorsTransitionLevel = parseInt($t.miTransitionLevel)), pa($t?.showRoadNames) || (Qr.showRoadNameLabels = $t.showRoadNames), pa($t?.showMapMarkers) || (Qr.showMapMarkers = $t.showMapMarkers);
37447
- const Qn = new window.mapsindoors.mapView.MapboxV3View(Qr);
37448
- os(Qn), !pa($t?.mapboxMapStyle) && !Qr.useMapsIndoorsMapboxStyle && Qn?.getMap()?.setStyle($t.mapboxMapStyle), nh(Qn);
37449
- }, []), /* @__PURE__ */ ma.jsx("div", { className: "mapsindoors-map mapbox-map-container", id: "map", children: We && /* @__PURE__ */ ma.jsx(_b, { reset: a, mapView: jr, pitch: Jr, activeColor: $t?.brandingColor, show2DModelsIn3D: an?.appSettings?.show2DModelsIn3D }) });
37447
+ $t?.miTransitionLevel && !isNaN(parseInt($t?.miTransitionLevel)) && (an.mapsIndoorsTransitionLevel = parseInt($t.miTransitionLevel)), al($t?.showRoadNames) || (an.showRoadNameLabels = $t.showRoadNames), al($t?.showMapMarkers) || (an.showMapMarkers = $t.showMapMarkers);
37448
+ const po = new window.mapsindoors.mapView.MapboxV3View(an);
37449
+ os(po), nh(po);
37450
+ }, []), /* @__PURE__ */ pa.jsx("div", { className: "mapsindoors-map mapbox-map-container", id: "map", children: We && /* @__PURE__ */ pa.jsx(_b, { reset: a, mapView: jr, pitch: Jr, activeColor: $t?.brandingColor, show2DModelsIn3D: sn?.appSettings?.show2DModelsIn3D }) });
37450
37451
  }
37451
37452
  export {
37452
37453
  C2 as default