@datagouv/components-next 1.0.2-dev.127 → 1.0.2-dev.128

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,5 +1,5 @@
1
- import { defineComponent as b0, ref as w0, computed as Oc, useTemplateRef as T0, onMounted as S0, openBlock as gh, createElementBlock as tp, createBlock as P0, withCtx as Um, createTextVNode as Gm, toDisplayString as Bc, unref as ts, createElementVNode as ho, createVNode as I0, createCommentVNode as E0 } from "vue";
2
- import { b5 as M0, c3 as A0, bT as C0, bQ as D0, bh as z0, bg as R0, _ as k0, aZ as L0, m as F0, Q as O0, bK as B0 } from "./main-BOGKXwyT.js";
1
+ import { defineComponent as b0, ref as w0, computed as Oc, useTemplateRef as T0, onMounted as S0, openBlock as gh, createElementBlock as tp, createBlock as P0, withCtx as Um, createTextVNode as $m, toDisplayString as Bc, unref as ts, createElementVNode as ho, createVNode as I0, createCommentVNode as E0 } from "vue";
2
+ import { b7 as M0, c6 as A0, bW as C0, bT as D0, bj as z0, bi as R0, _ as k0, a$ as L0, m as F0, Q as O0, bN as B0 } from "./main-DKu5SOAl.js";
3
3
  var nn = Uint8Array, xl = Uint16Array, N0 = Int32Array, ag = new nn([
4
4
  0,
5
5
  0,
@@ -69,64 +69,64 @@ var nn = Uint8Array, xl = Uint16Array, N0 = Int32Array, ag = new nn([
69
69
  /* unused */
70
70
  0,
71
71
  0
72
- ]), j0 = new nn([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), sg = function(Z, G) {
72
+ ]), j0 = new nn([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), sg = function(Z, $) {
73
73
  for (var Y = new xl(31), ne = 0; ne < 31; ++ne)
74
- Y[ne] = G += 1 << Z[ne - 1];
74
+ Y[ne] = $ += 1 << Z[ne - 1];
75
75
  for (var ce = new N0(Y[30]), ne = 1; ne < 30; ++ne)
76
76
  for (var Te = Y[ne]; Te < Y[ne + 1]; ++Te)
77
77
  ce[Te] = Te - Y[ne] << 5 | ne;
78
78
  return { b: Y, r: ce };
79
79
  }, lg = sg(ag, 2), cg = lg.b, V0 = lg.r;
80
80
  cg[28] = 258, V0[258] = 28;
81
- var U0 = sg(og, 0), G0 = U0.b, cp = new xl(32768);
81
+ var U0 = sg(og, 0), $0 = U0.b, cp = new xl(32768);
82
82
  for (var ai = 0; ai < 32768; ++ai) {
83
83
  var po = (ai & 43690) >> 1 | (ai & 21845) << 1;
84
84
  po = (po & 52428) >> 2 | (po & 13107) << 2, po = (po & 61680) >> 4 | (po & 3855) << 4, cp[ai] = ((po & 65280) >> 8 | (po & 255) << 8) >> 1;
85
85
  }
86
- var Gc = (function(Z, G, Y) {
87
- for (var ne = Z.length, ce = 0, Te = new xl(G); ce < ne; ++ce)
86
+ var $c = (function(Z, $, Y) {
87
+ for (var ne = Z.length, ce = 0, Te = new xl($); ce < ne; ++ce)
88
88
  Z[ce] && ++Te[Z[ce] - 1];
89
- var D = new xl(G);
90
- for (ce = 1; ce < G; ++ce)
89
+ var D = new xl($);
90
+ for (ce = 1; ce < $; ++ce)
91
91
  D[ce] = D[ce - 1] + Te[ce - 1] << 1;
92
92
  var u;
93
93
  if (Y) {
94
- u = new xl(1 << G);
95
- var _e = 15 - G;
94
+ u = new xl(1 << $);
95
+ var _e = 15 - $;
96
96
  for (ce = 0; ce < ne; ++ce)
97
97
  if (Z[ce])
98
- for (var Je = ce << 4 | Z[ce], He = G - Z[ce], Fe = D[Z[ce] - 1]++ << He, Ye = Fe | (1 << He) - 1; Fe <= Ye; ++Fe)
98
+ for (var Je = ce << 4 | Z[ce], He = $ - Z[ce], Fe = D[Z[ce] - 1]++ << He, Ye = Fe | (1 << He) - 1; Fe <= Ye; ++Fe)
99
99
  u[cp[Fe] >> _e] = Je;
100
100
  } else
101
101
  for (u = new xl(ne), ce = 0; ce < ne; ++ce)
102
102
  Z[ce] && (u[ce] = cp[D[Z[ce] - 1]++] >> 15 - Z[ce]);
103
103
  return u;
104
- }), $c = new nn(288);
104
+ }), Gc = new nn(288);
105
105
  for (var ai = 0; ai < 144; ++ai)
106
- $c[ai] = 8;
106
+ Gc[ai] = 8;
107
107
  for (var ai = 144; ai < 256; ++ai)
108
- $c[ai] = 9;
108
+ Gc[ai] = 9;
109
109
  for (var ai = 256; ai < 280; ++ai)
110
- $c[ai] = 7;
110
+ Gc[ai] = 7;
111
111
  for (var ai = 280; ai < 288; ++ai)
112
- $c[ai] = 8;
112
+ Gc[ai] = 8;
113
113
  var ug = new nn(32);
114
114
  for (var ai = 0; ai < 32; ++ai)
115
115
  ug[ai] = 5;
116
- var $0 = /* @__PURE__ */ Gc($c, 9, 1), Z0 = /* @__PURE__ */ Gc(ug, 5, 1), ip = function(Z) {
117
- for (var G = Z[0], Y = 1; Y < Z.length; ++Y)
118
- Z[Y] > G && (G = Z[Y]);
119
- return G;
120
- }, kn = function(Z, G, Y) {
121
- var ne = G / 8 | 0;
122
- return (Z[ne] | Z[ne + 1] << 8) >> (G & 7) & Y;
123
- }, rp = function(Z, G) {
124
- var Y = G / 8 | 0;
125
- return (Z[Y] | Z[Y + 1] << 8 | Z[Y + 2] << 16) >> (G & 7);
116
+ var G0 = /* @__PURE__ */ $c(Gc, 9, 1), Z0 = /* @__PURE__ */ $c(ug, 5, 1), ip = function(Z) {
117
+ for (var $ = Z[0], Y = 1; Y < Z.length; ++Y)
118
+ Z[Y] > $ && ($ = Z[Y]);
119
+ return $;
120
+ }, kn = function(Z, $, Y) {
121
+ var ne = $ / 8 | 0;
122
+ return (Z[ne] | Z[ne + 1] << 8) >> ($ & 7) & Y;
123
+ }, rp = function(Z, $) {
124
+ var Y = $ / 8 | 0;
125
+ return (Z[Y] | Z[Y + 1] << 8 | Z[Y + 2] << 16) >> ($ & 7);
126
126
  }, q0 = function(Z) {
127
127
  return (Z + 7) / 8 | 0;
128
- }, W0 = function(Z, G, Y) {
129
- return (Y == null || Y > Z.length) && (Y = Z.length), new nn(Z.subarray(G, Y));
128
+ }, W0 = function(Z, $, Y) {
129
+ return (Y == null || Y > Z.length) && (Y = Z.length), new nn(Z.subarray($, Y));
130
130
  }, H0 = [
131
131
  "unexpected EOF",
132
132
  "invalid block type",
@@ -144,41 +144,41 @@ var $0 = /* @__PURE__ */ Gc($c, 9, 1), Z0 = /* @__PURE__ */ Gc(ug, 5, 1), ip = f
144
144
  "stream finishing",
145
145
  "invalid zip data"
146
146
  // determined by unknown compression method
147
- ], rn = function(Z, G, Y) {
148
- var ne = new Error(G || H0[Z]);
147
+ ], rn = function(Z, $, Y) {
148
+ var ne = new Error($ || H0[Z]);
149
149
  if (ne.code = Z, Error.captureStackTrace && Error.captureStackTrace(ne, rn), !Y)
150
150
  throw ne;
151
151
  return ne;
152
- }, fp = function(Z, G, Y, ne) {
152
+ }, fp = function(Z, $, Y, ne) {
153
153
  var ce = Z.length, Te = 0;
154
- if (!ce || G.f && !G.l)
154
+ if (!ce || $.f && !$.l)
155
155
  return Y || new nn(0);
156
- var D = !Y, u = D || G.i != 2, _e = G.i;
156
+ var D = !Y, u = D || $.i != 2, _e = $.i;
157
157
  D && (Y = new nn(ce * 3));
158
158
  var Je = function(_i) {
159
159
  var vr = Y.length;
160
160
  if (_i > vr) {
161
- var $e = new nn(Math.max(vr * 2, _i));
162
- $e.set(Y), Y = $e;
161
+ var Ge = new nn(Math.max(vr * 2, _i));
162
+ Ge.set(Y), Y = Ge;
163
163
  }
164
- }, He = G.f || 0, Fe = G.p || 0, Ye = G.b || 0, dt = G.l, jt = G.d, Oe = G.m, Kt = G.n, $t = ce * 8;
164
+ }, He = $.f || 0, Fe = $.p || 0, Ye = $.b || 0, dt = $.l, jt = $.d, Oe = $.m, Kt = $.n, Gt = ce * 8;
165
165
  do {
166
166
  if (!dt) {
167
167
  He = kn(Z, Fe, 1);
168
168
  var ye = kn(Z, Fe + 1, 3);
169
169
  if (Fe += 3, ye)
170
170
  if (ye == 1)
171
- dt = $0, jt = Z0, Oe = 9, Kt = 5;
171
+ dt = G0, jt = Z0, Oe = 9, Kt = 5;
172
172
  else if (ye == 2) {
173
173
  var Vt = kn(Z, Fe, 31) + 257, hr = kn(Z, Fe + 10, 15) + 4, at = Vt + kn(Z, Fe + 5, 31) + 1;
174
174
  Fe += 14;
175
175
  for (var K = new nn(at), ie = new nn(19), ae = 0; ae < hr; ++ae)
176
176
  ie[j0[ae]] = kn(Z, Fe + ae * 3, 7);
177
177
  Fe += hr * 3;
178
- for (var Pe = ip(ie), Le = (1 << Pe) - 1, We = Gc(ie, Pe, 1), ae = 0; ae < at; ) {
179
- var Ge = We[kn(Z, Fe, Le)];
180
- Fe += Ge & 15;
181
- var ft = Ge >> 4;
178
+ for (var Pe = ip(ie), Le = (1 << Pe) - 1, We = $c(ie, Pe, 1), ae = 0; ae < at; ) {
179
+ var $e = We[kn(Z, Fe, Le)];
180
+ Fe += $e & 15;
181
+ var ft = $e >> 4;
182
182
  if (ft < 16)
183
183
  K[ae++] = ft;
184
184
  else {
@@ -188,7 +188,7 @@ var $0 = /* @__PURE__ */ Gc($c, 9, 1), Z0 = /* @__PURE__ */ Gc(ug, 5, 1), ip = f
188
188
  }
189
189
  }
190
190
  var ut = K.subarray(0, Vt), je = K.subarray(Vt);
191
- Oe = ip(ut), Kt = ip(je), dt = Gc(ut, Oe, 1), jt = Gc(je, Kt, 1);
191
+ Oe = ip(ut), Kt = ip(je), dt = $c(ut, Oe, 1), jt = $c(je, Kt, 1);
192
192
  } else
193
193
  rn(1);
194
194
  else {
@@ -197,10 +197,10 @@ var $0 = /* @__PURE__ */ Gc($c, 9, 1), Z0 = /* @__PURE__ */ Gc(ug, 5, 1), ip = f
197
197
  _e && rn(0);
198
198
  break;
199
199
  }
200
- u && Je(Ye + yt), Y.set(Z.subarray(ft, Zt), Ye), G.b = Ye += yt, G.p = Fe = Zt * 8, G.f = He;
200
+ u && Je(Ye + yt), Y.set(Z.subarray(ft, Zt), Ye), $.b = Ye += yt, $.p = Fe = Zt * 8, $.f = He;
201
201
  continue;
202
202
  }
203
- if (Fe > $t) {
203
+ if (Fe > Gt) {
204
204
  _e && rn(0);
205
205
  break;
206
206
  }
@@ -208,7 +208,7 @@ var $0 = /* @__PURE__ */ Gc($c, 9, 1), Z0 = /* @__PURE__ */ Gc(ug, 5, 1), ip = f
208
208
  u && Je(Ye + 131072);
209
209
  for (var kt = (1 << Oe) - 1, Ct = (1 << Kt) - 1, Bi = Fe; ; Bi = Fe) {
210
210
  var tt = dt[rp(Z, Fe) & kt], oi = tt >> 4;
211
- if (Fe += tt & 15, Fe > $t) {
211
+ if (Fe += tt & 15, Fe > Gt) {
212
212
  _e && rn(0);
213
213
  break;
214
214
  }
@@ -225,12 +225,12 @@ var $0 = /* @__PURE__ */ Gc($c, 9, 1), Z0 = /* @__PURE__ */ Gc(ug, 5, 1), ip = f
225
225
  }
226
226
  var It = jt[rp(Z, Fe) & Ct], Jt = It >> 4;
227
227
  It || rn(3), Fe += It & 15;
228
- var je = G0[Jt];
228
+ var je = $0[Jt];
229
229
  if (Jt > 3) {
230
230
  var Ni = og[Jt];
231
231
  je += rp(Z, Fe) & (1 << Ni) - 1, Fe += Ni;
232
232
  }
233
- if (Fe > $t) {
233
+ if (Fe > Gt) {
234
234
  _e && rn(0);
235
235
  break;
236
236
  }
@@ -245,41 +245,41 @@ var $0 = /* @__PURE__ */ Gc($c, 9, 1), Z0 = /* @__PURE__ */ Gc(ug, 5, 1), ip = f
245
245
  Y[Ye] = Y[Ye - je];
246
246
  }
247
247
  }
248
- G.l = dt, G.p = Bi, G.b = Ye, G.f = He, dt && (He = 1, G.m = Oe, G.d = jt, G.n = Kt);
248
+ $.l = dt, $.p = Bi, $.b = Ye, $.f = He, dt && (He = 1, $.m = Oe, $.d = jt, $.n = Kt);
249
249
  } while (!He);
250
250
  return Ye != Y.length && D ? W0(Y, 0, Ye) : Y.subarray(0, Ye);
251
251
  }, X0 = /* @__PURE__ */ new nn(0), Y0 = function(Z) {
252
252
  (Z[0] != 31 || Z[1] != 139 || Z[2] != 8) && rn(6, "invalid gzip data");
253
- var G = Z[3], Y = 10;
254
- G & 4 && (Y += (Z[10] | Z[11] << 8) + 2);
255
- for (var ne = (G >> 3 & 1) + (G >> 4 & 1); ne > 0; ne -= !Z[Y++])
253
+ var $ = Z[3], Y = 10;
254
+ $ & 4 && (Y += (Z[10] | Z[11] << 8) + 2);
255
+ for (var ne = ($ >> 3 & 1) + ($ >> 4 & 1); ne > 0; ne -= !Z[Y++])
256
256
  ;
257
- return Y + (G & 2);
257
+ return Y + ($ & 2);
258
258
  }, K0 = function(Z) {
259
- var G = Z.length;
260
- return (Z[G - 4] | Z[G - 3] << 8 | Z[G - 2] << 16 | Z[G - 1] << 24) >>> 0;
261
- }, J0 = function(Z, G) {
259
+ var $ = Z.length;
260
+ return (Z[$ - 4] | Z[$ - 3] << 8 | Z[$ - 2] << 16 | Z[$ - 1] << 24) >>> 0;
261
+ }, J0 = function(Z, $) {
262
262
  return ((Z[0] & 15) != 8 || Z[0] >> 4 > 7 || (Z[0] << 8 | Z[1]) % 31) && rn(6, "invalid zlib data"), (Z[1] >> 5 & 1) == 1 && rn(6, "invalid zlib data: " + (Z[1] & 32 ? "need" : "unexpected") + " dictionary"), (Z[1] >> 3 & 4) + 2;
263
263
  };
264
- function Q0(Z, G) {
265
- return fp(Z, { i: 2 }, G, G);
264
+ function Q0(Z, $) {
265
+ return fp(Z, { i: 2 }, $, $);
266
266
  }
267
- function ev(Z, G) {
267
+ function ev(Z, $) {
268
268
  var Y = Y0(Z);
269
- return Y + 8 > Z.length && rn(6, "invalid gzip data"), fp(Z.subarray(Y, -8), { i: 2 }, new nn(K0(Z)), G);
269
+ return Y + 8 > Z.length && rn(6, "invalid gzip data"), fp(Z.subarray(Y, -8), { i: 2 }, new nn(K0(Z)), $);
270
270
  }
271
- function tv(Z, G) {
272
- return fp(Z.subarray(J0(Z), -4), { i: 2 }, G, G);
271
+ function tv(Z, $) {
272
+ return fp(Z.subarray(J0(Z), -4), { i: 2 }, $, $);
273
273
  }
274
- function iv(Z, G) {
275
- return Z[0] == 31 && Z[1] == 139 && Z[2] == 8 ? ev(Z, G) : (Z[0] & 15) != 8 || Z[0] >> 4 > 7 || (Z[0] << 8 | Z[1]) % 31 ? Q0(Z, G) : tv(Z, G);
274
+ function iv(Z, $) {
275
+ return Z[0] == 31 && Z[1] == 139 && Z[2] == 8 ? ev(Z, $) : (Z[0] & 15) != 8 || Z[0] >> 4 > 7 || (Z[0] << 8 | Z[1]) % 31 ? Q0(Z, $) : tv(Z, $);
276
276
  }
277
277
  var rv = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), nv = 0;
278
278
  try {
279
279
  rv.decode(X0, { stream: !0 }), nv = 1;
280
280
  } catch {
281
281
  }
282
- var av = Object.defineProperty, ov = Math.pow, Nt = (Z, G) => av(Z, "name", { value: G, configurable: !0 }), Ji = (Z, G, Y) => new Promise((ne, ce) => {
282
+ var av = Object.defineProperty, ov = Math.pow, Nt = (Z, $) => av(Z, "name", { value: $, configurable: !0 }), Ji = (Z, $, Y) => new Promise((ne, ce) => {
283
283
  var Te = (_e) => {
284
284
  try {
285
285
  u(Y.next(_e));
@@ -293,9 +293,9 @@ var av = Object.defineProperty, ov = Math.pow, Nt = (Z, G) => av(Z, "name", { va
293
293
  ce(Je);
294
294
  }
295
295
  }, u = (_e) => _e.done ? ne(_e.value) : Promise.resolve(_e.value).then(Te, D);
296
- u((Y = Y.apply(Z, G)).next());
296
+ u((Y = Y.apply(Z, $)).next());
297
297
  });
298
- Nt((Z, G) => {
298
+ Nt((Z, $) => {
299
299
  let Y = !1, ne = "", ce = L.GridLayer.extend({ createTile: Nt((Te, D) => {
300
300
  let u = document.createElement("img"), _e = new AbortController(), Je = _e.signal;
301
301
  return u.cancel = () => {
@@ -315,14 +315,14 @@ Nt((Z, G) => {
315
315
  let D = this._tiles[Te];
316
316
  D && (D.el.cancel && D.el.cancel(), D.el.src && window.URL.revokeObjectURL(D.el.src), D.el.width = 0, D.el.height = 0, D.el.deleted = !0, L.DomUtil.remove(D.el), delete this._tiles[Te], this.fire("tileunload", { tile: D.el, coords: this._keyToTileCoords(Te) }));
317
317
  }, "_removeTile") });
318
- return new ce(G);
318
+ return new ce($);
319
319
  }, "leafletRasterLayer");
320
- var sv = Nt((Z) => (G, Y) => {
321
- if (Y instanceof AbortController) return Z(G, Y);
320
+ var sv = Nt((Z) => ($, Y) => {
321
+ if (Y instanceof AbortController) return Z($, Y);
322
322
  let ne = new AbortController();
323
- return Z(G, ne).then((ce) => Y(void 0, ce.data, ce.cacheControl || "", ce.expires || ""), (ce) => Y(ce)).catch((ce) => Y(ce)), { cancel: Nt(() => ne.abort(), "cancel") };
323
+ return Z($, ne).then((ce) => Y(void 0, ce.data, ce.cacheControl || "", ce.expires || ""), (ce) => Y(ce)).catch((ce) => Y(ce)), { cancel: Nt(() => ne.abort(), "cancel") };
324
324
  }, "v3compat"), hg = class {
325
- constructor(G) {
325
+ constructor($) {
326
326
  this.tilev4 = Nt((Y, ne) => Ji(this, null, function* () {
327
327
  if (Y.type === "json") {
328
328
  let dt = Y.url.substr(10), jt = this.tiles.get(dt);
@@ -345,40 +345,40 @@ var sv = Nt((Z) => (G, Y) => {
345
345
  return { data: new Uint8Array() };
346
346
  }
347
347
  return { data: null };
348
- }), "tilev4"), this.tile = sv(this.tilev4), this.tiles = /* @__PURE__ */ new Map(), this.metadata = G?.metadata || !1, this.errorOnMissingTile = G?.errorOnMissingTile || !1;
348
+ }), "tilev4"), this.tile = sv(this.tilev4), this.tiles = /* @__PURE__ */ new Map(), this.metadata = $?.metadata || !1, this.errorOnMissingTile = $?.errorOnMissingTile || !1;
349
349
  }
350
- add(G) {
351
- this.tiles.set(G.source.getKey(), G);
350
+ add($) {
351
+ this.tiles.set($.source.getKey(), $);
352
352
  }
353
- get(G) {
354
- return this.tiles.get(G);
353
+ get($) {
354
+ return this.tiles.get($);
355
355
  }
356
356
  };
357
357
  Nt(hg, "Protocol");
358
358
  var lv = hg;
359
- function dg(Z, G) {
360
- return (G >>> 0) * 4294967296 + (Z >>> 0);
359
+ function dg(Z, $) {
360
+ return ($ >>> 0) * 4294967296 + (Z >>> 0);
361
361
  }
362
362
  Nt(dg, "toNum");
363
- function pg(Z, G) {
364
- let Y = G.buf, ne = Y[G.pos++], ce = (ne & 112) >> 4;
365
- if (ne < 128 || (ne = Y[G.pos++], ce |= (ne & 127) << 3, ne < 128) || (ne = Y[G.pos++], ce |= (ne & 127) << 10, ne < 128) || (ne = Y[G.pos++], ce |= (ne & 127) << 17, ne < 128) || (ne = Y[G.pos++], ce |= (ne & 127) << 24, ne < 128) || (ne = Y[G.pos++], ce |= (ne & 1) << 31, ne < 128)) return dg(Z, ce);
363
+ function pg(Z, $) {
364
+ let Y = $.buf, ne = Y[$.pos++], ce = (ne & 112) >> 4;
365
+ if (ne < 128 || (ne = Y[$.pos++], ce |= (ne & 127) << 3, ne < 128) || (ne = Y[$.pos++], ce |= (ne & 127) << 10, ne < 128) || (ne = Y[$.pos++], ce |= (ne & 127) << 17, ne < 128) || (ne = Y[$.pos++], ce |= (ne & 127) << 24, ne < 128) || (ne = Y[$.pos++], ce |= (ne & 1) << 31, ne < 128)) return dg(Z, ce);
366
366
  throw new Error("Expected varint not more than 10 bytes");
367
367
  }
368
368
  Nt(pg, "readVarintRemainder");
369
369
  function yl(Z) {
370
- let G = Z.buf, Y = G[Z.pos++], ne = Y & 127;
371
- return Y < 128 || (Y = G[Z.pos++], ne |= (Y & 127) << 7, Y < 128) || (Y = G[Z.pos++], ne |= (Y & 127) << 14, Y < 128) || (Y = G[Z.pos++], ne |= (Y & 127) << 21, Y < 128) ? ne : (Y = G[Z.pos], ne |= (Y & 15) << 28, pg(ne, Z));
370
+ let $ = Z.buf, Y = $[Z.pos++], ne = Y & 127;
371
+ return Y < 128 || (Y = $[Z.pos++], ne |= (Y & 127) << 7, Y < 128) || (Y = $[Z.pos++], ne |= (Y & 127) << 14, Y < 128) || (Y = $[Z.pos++], ne |= (Y & 127) << 21, Y < 128) ? ne : (Y = $[Z.pos], ne |= (Y & 15) << 28, pg(ne, Z));
372
372
  }
373
373
  Nt(yl, "readVarint");
374
- function mp(Z, G, Y, ne, ce) {
375
- return ce === 0 ? ne !== 0 ? [Z - 1 - Y, Z - 1 - G] : [Y, G] : [G, Y];
374
+ function mp(Z, $, Y, ne, ce) {
375
+ return ce === 0 ? ne !== 0 ? [Z - 1 - Y, Z - 1 - $] : [Y, $] : [$, Y];
376
376
  }
377
377
  Nt(mp, "rotate");
378
- function fg(Z, G, Y) {
378
+ function fg(Z, $, Y) {
379
379
  if (Z > 26) throw new Error("Tile zoom level exceeds max safe number limit (26)");
380
- if (G >= 1 << Z || Y >= 1 << Z) throw new Error("tile x/y outside zoom level bounds");
381
- let ne = ((1 << Z) * (1 << Z) - 1) / 3, ce = Z - 1, [Te, D] = [G, Y];
380
+ if ($ >= 1 << Z || Y >= 1 << Z) throw new Error("tile x/y outside zoom level bounds");
381
+ let ne = ((1 << Z) * (1 << Z) - 1) / 3, ce = Z - 1, [Te, D] = [$, Y];
382
382
  for (let u = 1 << ce; u > 0; u >>= 1) {
383
383
  let _e = Te & u, Je = D & u;
384
384
  ne += (3 * _e ^ Je) * (1 << ce), [Te, D] = mp(u, Te, D, _e, Je), ce--;
@@ -387,26 +387,26 @@ function fg(Z, G, Y) {
387
387
  }
388
388
  Nt(fg, "zxyToTileId");
389
389
  function mg(Z) {
390
- let G = 3 * Z + 1;
391
- return G < 4294967296 ? 31 - Math.clz32(G) : 63 - Math.clz32(G / 4294967296);
390
+ let $ = 3 * Z + 1;
391
+ return $ < 4294967296 ? 31 - Math.clz32($) : 63 - Math.clz32($ / 4294967296);
392
392
  }
393
393
  Nt(mg, "tileIdToZ");
394
394
  function cv(Z) {
395
- let G = mg(Z) >> 1;
396
- if (G > 26) throw new Error("Tile zoom level exceeds max safe number limit (26)");
397
- let Y = ((1 << G) * (1 << G) - 1) / 3, ne = Z - Y, ce = 0, Te = 0, D = 1 << G;
395
+ let $ = mg(Z) >> 1;
396
+ if ($ > 26) throw new Error("Tile zoom level exceeds max safe number limit (26)");
397
+ let Y = ((1 << $) * (1 << $) - 1) / 3, ne = Z - Y, ce = 0, Te = 0, D = 1 << $;
398
398
  for (let u = 1; u < D; u <<= 1) {
399
399
  let _e = u & ne / 2, Je = u & (ne ^ _e);
400
400
  [ce, Te] = mp(u, ce, Te, _e, Je), ne = ne / 2, ce += _e, Te += Je;
401
401
  }
402
- return [G, ce, Te];
402
+ return [$, ce, Te];
403
403
  }
404
404
  Nt(cv, "tileIdToZxy");
405
405
  var uv = ((Z) => (Z[Z.Unknown = 0] = "Unknown", Z[Z.None = 1] = "None", Z[Z.Gzip = 2] = "Gzip", Z[Z.Brotli = 3] = "Brotli", Z[Z.Zstd = 4] = "Zstd", Z))(uv || {});
406
- function vh(Z, G) {
406
+ function vh(Z, $) {
407
407
  return Ji(this, null, function* () {
408
- if (G === 1 || G === 0) return Z;
409
- if (G === 2) {
408
+ if ($ === 1 || $ === 0) return Z;
409
+ if ($ === 2) {
410
410
  if (typeof globalThis.DecompressionStream > "u") return iv(new Uint8Array(Z));
411
411
  let Y = new Response(Z).body;
412
412
  if (!Y) throw new Error("Failed to read response stream");
@@ -423,35 +423,35 @@ function gg(Z) {
423
423
  }
424
424
  Nt(gg, "tileTypeExt");
425
425
  var dv = 127;
426
- function _g(Z, G) {
426
+ function _g(Z, $) {
427
427
  let Y = 0, ne = Z.length - 1;
428
428
  for (; Y <= ne; ) {
429
- let ce = ne + Y >> 1, Te = G - Z[ce].tileId;
429
+ let ce = ne + Y >> 1, Te = $ - Z[ce].tileId;
430
430
  if (Te > 0) Y = ce + 1;
431
431
  else if (Te < 0) ne = ce - 1;
432
432
  else return Z[ce];
433
433
  }
434
- return ne >= 0 && (Z[ne].runLength === 0 || G - Z[ne].tileId < Z[ne].runLength) ? Z[ne] : null;
434
+ return ne >= 0 && (Z[ne].runLength === 0 || $ - Z[ne].tileId < Z[ne].runLength) ? Z[ne] : null;
435
435
  }
436
436
  Nt(_g, "findTile");
437
437
  var pv = class {
438
- constructor(G) {
439
- this.file = G;
438
+ constructor($) {
439
+ this.file = $;
440
440
  }
441
441
  getKey() {
442
442
  return this.file.name;
443
443
  }
444
- getBytes(G, Y) {
444
+ getBytes($, Y) {
445
445
  return Ji(this, null, function* () {
446
- return { data: yield this.file.slice(G, G + Y).arrayBuffer() };
446
+ return { data: yield this.file.slice($, $ + Y).arrayBuffer() };
447
447
  });
448
448
  }
449
449
  };
450
450
  Nt(pv, "FileSource");
451
451
  var yg = class {
452
- constructor(G, Y = new Headers(), ne = void 0) {
452
+ constructor($, Y = new Headers(), ne = void 0) {
453
453
  var ce, Te;
454
- this.url = G, this.customHeaders = Y, this.credentials = ne, this.mustReload = !1;
454
+ this.url = $, this.customHeaders = Y, this.credentials = ne, this.mustReload = !1;
455
455
  let D = "";
456
456
  "navigator" in globalThis && (D = (Te = (ce = globalThis.navigator) == null ? void 0 : ce.userAgent) != null ? Te : "");
457
457
  let u = D.indexOf("Windows") > -1, _e = /Chrome|Chromium|Edg|OPR|Brave/.test(D);
@@ -460,19 +460,19 @@ var yg = class {
460
460
  getKey() {
461
461
  return this.url;
462
462
  }
463
- setHeaders(G) {
464
- this.customHeaders = G;
463
+ setHeaders($) {
464
+ this.customHeaders = $;
465
465
  }
466
- getBytes(G, Y, ne, ce) {
466
+ getBytes($, Y, ne, ce) {
467
467
  return Ji(this, null, function* () {
468
468
  let Te, D;
469
469
  ne ? D = ne : (Te = new AbortController(), D = Te.signal);
470
470
  let u = new Headers(this.customHeaders);
471
- u.set("range", `bytes=${G}-${G + Y - 1}`);
471
+ u.set("range", `bytes=${$}-${$ + Y - 1}`);
472
472
  let _e;
473
473
  this.mustReload ? _e = "reload" : this.chromeWindowsNoCache && (_e = "no-store");
474
474
  let Je = yield fetch(this.url, { signal: D, cache: _e, headers: u, credentials: this.credentials });
475
- if (G === 0 && Je.status === 416) {
475
+ if ($ === 0 && Je.status === 416) {
476
476
  let Ye = Je.headers.get("Content-Range");
477
477
  if (!Ye || !Ye.startsWith("bytes */")) throw new Error("Missing content-length on 416 response");
478
478
  let dt = +Ye.substr(8);
@@ -489,27 +489,27 @@ var yg = class {
489
489
  };
490
490
  Nt(yg, "FetchSource");
491
491
  var fv = yg;
492
- function gn(Z, G) {
493
- let Y = Z.getUint32(G + 4, !0), ne = Z.getUint32(G + 0, !0);
492
+ function gn(Z, $) {
493
+ let Y = Z.getUint32($ + 4, !0), ne = Z.getUint32($ + 0, !0);
494
494
  return Y * ov(2, 32) + ne;
495
495
  }
496
496
  Nt(gn, "getUint64");
497
- function vg(Z, G) {
497
+ function vg(Z, $) {
498
498
  let Y = new DataView(Z), ne = Y.getUint8(7);
499
499
  if (ne > 3) throw new Error(`Archive is spec version ${ne} but this library supports up to spec version 3`);
500
- return { specVersion: ne, rootDirectoryOffset: gn(Y, 8), rootDirectoryLength: gn(Y, 16), jsonMetadataOffset: gn(Y, 24), jsonMetadataLength: gn(Y, 32), leafDirectoryOffset: gn(Y, 40), leafDirectoryLength: gn(Y, 48), tileDataOffset: gn(Y, 56), tileDataLength: gn(Y, 64), numAddressedTiles: gn(Y, 72), numTileEntries: gn(Y, 80), numTileContents: gn(Y, 88), clustered: Y.getUint8(96) === 1, internalCompression: Y.getUint8(97), tileCompression: Y.getUint8(98), tileType: Y.getUint8(99), minZoom: Y.getUint8(100), maxZoom: Y.getUint8(101), minLon: Y.getInt32(102, !0) / 1e7, minLat: Y.getInt32(106, !0) / 1e7, maxLon: Y.getInt32(110, !0) / 1e7, maxLat: Y.getInt32(114, !0) / 1e7, centerZoom: Y.getUint8(118), centerLon: Y.getInt32(119, !0) / 1e7, centerLat: Y.getInt32(123, !0) / 1e7, etag: G };
500
+ return { specVersion: ne, rootDirectoryOffset: gn(Y, 8), rootDirectoryLength: gn(Y, 16), jsonMetadataOffset: gn(Y, 24), jsonMetadataLength: gn(Y, 32), leafDirectoryOffset: gn(Y, 40), leafDirectoryLength: gn(Y, 48), tileDataOffset: gn(Y, 56), tileDataLength: gn(Y, 64), numAddressedTiles: gn(Y, 72), numTileEntries: gn(Y, 80), numTileContents: gn(Y, 88), clustered: Y.getUint8(96) === 1, internalCompression: Y.getUint8(97), tileCompression: Y.getUint8(98), tileType: Y.getUint8(99), minZoom: Y.getUint8(100), maxZoom: Y.getUint8(101), minLon: Y.getInt32(102, !0) / 1e7, minLat: Y.getInt32(106, !0) / 1e7, maxLon: Y.getInt32(110, !0) / 1e7, maxLat: Y.getInt32(114, !0) / 1e7, centerZoom: Y.getUint8(118), centerLon: Y.getInt32(119, !0) / 1e7, centerLat: Y.getInt32(123, !0) / 1e7, etag: $ };
501
501
  }
502
502
  Nt(vg, "bytesToHeader");
503
503
  function gp(Z) {
504
- let G = { buf: new Uint8Array(Z), pos: 0 }, Y = yl(G), ne = [], ce = 0;
504
+ let $ = { buf: new Uint8Array(Z), pos: 0 }, Y = yl($), ne = [], ce = 0;
505
505
  for (let Te = 0; Te < Y; Te++) {
506
- let D = yl(G);
506
+ let D = yl($);
507
507
  ne.push({ tileId: ce + D, offset: 0, length: 0, runLength: 1 }), ce += D;
508
508
  }
509
- for (let Te = 0; Te < Y; Te++) ne[Te].runLength = yl(G);
510
- for (let Te = 0; Te < Y; Te++) ne[Te].length = yl(G);
509
+ for (let Te = 0; Te < Y; Te++) ne[Te].runLength = yl($);
510
+ for (let Te = 0; Te < Y; Te++) ne[Te].length = yl($);
511
511
  for (let Te = 0; Te < Y; Te++) {
512
- let D = yl(G);
512
+ let D = yl($);
513
513
  D === 0 && Te > 0 ? ne[Te].offset = ne[Te - 1].offset + ne[Te - 1].length : ne[Te].offset = D - 1;
514
514
  }
515
515
  return ne;
@@ -519,68 +519,68 @@ var xg = class extends Error {
519
519
  };
520
520
  Nt(xg, "EtagMismatch");
521
521
  var up = xg;
522
- function _p(Z, G) {
522
+ function _p(Z, $) {
523
523
  return Ji(this, null, function* () {
524
524
  let Y = yield Z.getBytes(0, 16384);
525
525
  if (new DataView(Y.data).getUint16(0, !0) !== 19792) throw new Error("Wrong magic number for PMTiles archive");
526
- let ne = Y.data.slice(0, dv), ce = vg(ne, Y.etag), Te = Y.data.slice(ce.rootDirectoryOffset, ce.rootDirectoryOffset + ce.rootDirectoryLength), D = `${Z.getKey()}|${ce.etag || ""}|${ce.rootDirectoryOffset}|${ce.rootDirectoryLength}`, u = gp(yield G(Te, ce.internalCompression));
526
+ let ne = Y.data.slice(0, dv), ce = vg(ne, Y.etag), Te = Y.data.slice(ce.rootDirectoryOffset, ce.rootDirectoryOffset + ce.rootDirectoryLength), D = `${Z.getKey()}|${ce.etag || ""}|${ce.rootDirectoryOffset}|${ce.rootDirectoryLength}`, u = gp(yield $(Te, ce.internalCompression));
527
527
  return [ce, [D, u.length, u]];
528
528
  });
529
529
  }
530
530
  Nt(_p, "getHeaderAndRoot");
531
- function yp(Z, G, Y, ne, ce) {
531
+ function yp(Z, $, Y, ne, ce) {
532
532
  return Ji(this, null, function* () {
533
- let Te = yield Z.getBytes(Y, ne, void 0, ce.etag), D = yield G(Te.data, ce.internalCompression), u = gp(D);
533
+ let Te = yield Z.getBytes(Y, ne, void 0, ce.etag), D = yield $(Te.data, ce.internalCompression), u = gp(D);
534
534
  if (u.length === 0) throw new Error("Empty directory is invalid");
535
535
  return u;
536
536
  });
537
537
  }
538
538
  Nt(yp, "getDirectory");
539
539
  var mv = class {
540
- constructor(G = 100, Y = !0, ne = vh) {
541
- this.cache = /* @__PURE__ */ new Map(), this.maxCacheEntries = G, this.counter = 1, this.decompress = ne;
540
+ constructor($ = 100, Y = !0, ne = vh) {
541
+ this.cache = /* @__PURE__ */ new Map(), this.maxCacheEntries = $, this.counter = 1, this.decompress = ne;
542
542
  }
543
- getHeader(G) {
543
+ getHeader($) {
544
544
  return Ji(this, null, function* () {
545
- let Y = G.getKey(), ne = this.cache.get(Y);
545
+ let Y = $.getKey(), ne = this.cache.get(Y);
546
546
  if (ne) return ne.lastUsed = this.counter++, ne.data;
547
- let ce = yield _p(G, this.decompress);
547
+ let ce = yield _p($, this.decompress);
548
548
  return ce[1] && this.cache.set(ce[1][0], { lastUsed: this.counter++, data: ce[1][2] }), this.cache.set(Y, { lastUsed: this.counter++, data: ce[0] }), this.prune(), ce[0];
549
549
  });
550
550
  }
551
- getDirectory(G, Y, ne, ce) {
551
+ getDirectory($, Y, ne, ce) {
552
552
  return Ji(this, null, function* () {
553
- let Te = `${G.getKey()}|${ce.etag || ""}|${Y}|${ne}`, D = this.cache.get(Te);
553
+ let Te = `${$.getKey()}|${ce.etag || ""}|${Y}|${ne}`, D = this.cache.get(Te);
554
554
  if (D) return D.lastUsed = this.counter++, D.data;
555
- let u = yield yp(G, this.decompress, Y, ne, ce);
555
+ let u = yield yp($, this.decompress, Y, ne, ce);
556
556
  return this.cache.set(Te, { lastUsed: this.counter++, data: u }), this.prune(), u;
557
557
  });
558
558
  }
559
559
  prune() {
560
560
  if (this.cache.size > this.maxCacheEntries) {
561
- let G = 1 / 0, Y;
561
+ let $ = 1 / 0, Y;
562
562
  this.cache.forEach((ne, ce) => {
563
- ne.lastUsed < G && (G = ne.lastUsed, Y = ce);
563
+ ne.lastUsed < $ && ($ = ne.lastUsed, Y = ce);
564
564
  }), Y && this.cache.delete(Y);
565
565
  }
566
566
  }
567
- invalidate(G) {
567
+ invalidate($) {
568
568
  return Ji(this, null, function* () {
569
- this.cache.delete(G.getKey());
569
+ this.cache.delete($.getKey());
570
570
  });
571
571
  }
572
572
  };
573
573
  Nt(mv, "ResolvedValueCache");
574
574
  var bg = class {
575
- constructor(G = 100, Y = !0, ne = vh) {
576
- this.cache = /* @__PURE__ */ new Map(), this.invalidations = /* @__PURE__ */ new Map(), this.maxCacheEntries = G, this.counter = 1, this.decompress = ne;
575
+ constructor($ = 100, Y = !0, ne = vh) {
576
+ this.cache = /* @__PURE__ */ new Map(), this.invalidations = /* @__PURE__ */ new Map(), this.maxCacheEntries = $, this.counter = 1, this.decompress = ne;
577
577
  }
578
- getHeader(G) {
578
+ getHeader($) {
579
579
  return Ji(this, null, function* () {
580
- let Y = G.getKey(), ne = this.cache.get(Y);
580
+ let Y = $.getKey(), ne = this.cache.get(Y);
581
581
  if (ne) return ne.lastUsed = this.counter++, yield ne.data;
582
582
  let ce = new Promise((Te, D) => {
583
- _p(G, this.decompress).then((u) => {
583
+ _p($, this.decompress).then((u) => {
584
584
  u[1] && this.cache.set(u[1][0], { lastUsed: this.counter++, data: Promise.resolve(u[1][2]) }), Te(u[0]), this.prune();
585
585
  }).catch((u) => {
586
586
  D(u);
@@ -589,12 +589,12 @@ var bg = class {
589
589
  return this.cache.set(Y, { lastUsed: this.counter++, data: ce }), ce;
590
590
  });
591
591
  }
592
- getDirectory(G, Y, ne, ce) {
592
+ getDirectory($, Y, ne, ce) {
593
593
  return Ji(this, null, function* () {
594
- let Te = `${G.getKey()}|${ce.etag || ""}|${Y}|${ne}`, D = this.cache.get(Te);
594
+ let Te = `${$.getKey()}|${ce.etag || ""}|${Y}|${ne}`, D = this.cache.get(Te);
595
595
  if (D) return D.lastUsed = this.counter++, yield D.data;
596
596
  let u = new Promise((_e, Je) => {
597
- yp(G, this.decompress, Y, ne, ce).then((He) => {
597
+ yp($, this.decompress, Y, ne, ce).then((He) => {
598
598
  _e(He), this.prune();
599
599
  }).catch((He) => {
600
600
  Je(He);
@@ -605,19 +605,19 @@ var bg = class {
605
605
  }
606
606
  prune() {
607
607
  if (this.cache.size >= this.maxCacheEntries) {
608
- let G = 1 / 0, Y;
608
+ let $ = 1 / 0, Y;
609
609
  this.cache.forEach((ne, ce) => {
610
- ne.lastUsed < G && (G = ne.lastUsed, Y = ce);
610
+ ne.lastUsed < $ && ($ = ne.lastUsed, Y = ce);
611
611
  }), Y && this.cache.delete(Y);
612
612
  }
613
613
  }
614
- invalidate(G) {
614
+ invalidate($) {
615
615
  return Ji(this, null, function* () {
616
- let Y = G.getKey();
616
+ let Y = $.getKey();
617
617
  if (this.invalidations.get(Y)) return yield this.invalidations.get(Y);
618
- this.cache.delete(G.getKey());
618
+ this.cache.delete($.getKey());
619
619
  let ne = new Promise((ce, Te) => {
620
- this.getHeader(G).then((D) => {
620
+ this.getHeader($).then((D) => {
621
621
  ce(), this.invalidations.delete(Y);
622
622
  }).catch((D) => {
623
623
  Te(D);
@@ -629,18 +629,18 @@ var bg = class {
629
629
  };
630
630
  Nt(bg, "SharedPromiseCache");
631
631
  var gv = bg, wg = class {
632
- constructor(G, Y, ne) {
633
- typeof G == "string" ? this.source = new fv(G) : this.source = G, ne ? this.decompress = ne : this.decompress = vh, Y ? this.cache = Y : this.cache = new gv();
632
+ constructor($, Y, ne) {
633
+ typeof $ == "string" ? this.source = new fv($) : this.source = $, ne ? this.decompress = ne : this.decompress = vh, Y ? this.cache = Y : this.cache = new gv();
634
634
  }
635
635
  getHeader() {
636
636
  return Ji(this, null, function* () {
637
637
  return yield this.cache.getHeader(this.source);
638
638
  });
639
639
  }
640
- getZxyAttempt(G, Y, ne, ce) {
640
+ getZxyAttempt($, Y, ne, ce) {
641
641
  return Ji(this, null, function* () {
642
- let Te = fg(G, Y, ne), D = yield this.cache.getHeader(this.source);
643
- if (G < D.minZoom || G > D.maxZoom) return;
642
+ let Te = fg($, Y, ne), D = yield this.cache.getHeader(this.source);
643
+ if ($ < D.minZoom || $ > D.maxZoom) return;
644
644
  let u = D.rootDirectoryOffset, _e = D.rootDirectoryLength;
645
645
  for (let Je = 0; Je <= 3; Je++) {
646
646
  let He = yield this.cache.getDirectory(this.source, u, _e, D), Fe = _g(He, Te);
@@ -655,19 +655,19 @@ var gv = bg, wg = class {
655
655
  throw new Error("Maximum directory depth exceeded");
656
656
  });
657
657
  }
658
- getZxy(G, Y, ne, ce) {
658
+ getZxy($, Y, ne, ce) {
659
659
  return Ji(this, null, function* () {
660
660
  try {
661
- return yield this.getZxyAttempt(G, Y, ne, ce);
661
+ return yield this.getZxyAttempt($, Y, ne, ce);
662
662
  } catch (Te) {
663
- if (Te instanceof up) return this.cache.invalidate(this.source), yield this.getZxyAttempt(G, Y, ne, ce);
663
+ if (Te instanceof up) return this.cache.invalidate(this.source), yield this.getZxyAttempt($, Y, ne, ce);
664
664
  throw Te;
665
665
  }
666
666
  });
667
667
  }
668
668
  getMetadataAttempt() {
669
669
  return Ji(this, null, function* () {
670
- let G = yield this.cache.getHeader(this.source), Y = yield this.source.getBytes(G.jsonMetadataOffset, G.jsonMetadataLength, void 0, G.etag), ne = yield this.decompress(Y.data, G.internalCompression), ce = new TextDecoder("utf-8");
670
+ let $ = yield this.cache.getHeader(this.source), Y = yield this.source.getBytes($.jsonMetadataOffset, $.jsonMetadataLength, void 0, $.etag), ne = yield this.decompress(Y.data, $.internalCompression), ce = new TextDecoder("utf-8");
671
671
  return JSON.parse(ce.decode(ne));
672
672
  });
673
673
  }
@@ -675,24 +675,24 @@ var gv = bg, wg = class {
675
675
  return Ji(this, null, function* () {
676
676
  try {
677
677
  return yield this.getMetadataAttempt();
678
- } catch (G) {
679
- if (G instanceof up) return this.cache.invalidate(this.source), yield this.getMetadataAttempt();
680
- throw G;
678
+ } catch ($) {
679
+ if ($ instanceof up) return this.cache.invalidate(this.source), yield this.getMetadataAttempt();
680
+ throw $;
681
681
  }
682
682
  });
683
683
  }
684
- getTileJson(G) {
684
+ getTileJson($) {
685
685
  return Ji(this, null, function* () {
686
686
  let Y = yield this.getHeader(), ne = yield this.getMetadata(), ce = gg(Y.tileType);
687
- return { tilejson: "3.0.0", scheme: "xyz", tiles: [`${G}/{z}/{x}/{y}${ce}`], vector_layers: ne.vector_layers, attribution: ne.attribution, description: ne.description, name: ne.name, version: ne.version, bounds: [Y.minLon, Y.minLat, Y.maxLon, Y.maxLat], center: [Y.centerLon, Y.centerLat, Y.centerZoom], minzoom: Y.minZoom, maxzoom: Y.maxZoom };
687
+ return { tilejson: "3.0.0", scheme: "xyz", tiles: [`${$}/{z}/{x}/{y}${ce}`], vector_layers: ne.vector_layers, attribution: ne.attribution, description: ne.description, name: ne.name, version: ne.version, bounds: [Y.minLon, Y.minLat, Y.maxLon, Y.maxLat], center: [Y.centerLon, Y.centerLat, Y.centerZoom], minzoom: Y.minZoom, maxzoom: Y.maxZoom };
688
688
  });
689
689
  }
690
690
  };
691
691
  Nt(wg, "PMTiles");
692
692
  var hp = wg, yh = { exports: {} };
693
- var _v = yh.exports, $m;
693
+ var _v = yh.exports, Gm;
694
694
  function yv() {
695
- return $m || ($m = 1, (function(Z, G) {
695
+ return Gm || (Gm = 1, (function(Z, $) {
696
696
  (function(Y, ne) {
697
697
  Z.exports = ne();
698
698
  })(_v, (function() {
@@ -845,7 +845,7 @@ function yv() {
845
845
  function Kt() {
846
846
  return jt != null || (jt = typeof OffscreenCanvas < "u" && new OffscreenCanvas(1, 1).getContext("2d") && typeof createImageBitmap == "function"), jt;
847
847
  }
848
- function $t() {
848
+ function Gt() {
849
849
  if (Oe == null && (Oe = !1, Kt())) {
850
850
  const e = new OffscreenCanvas(5, 5).getContext("2d", { willReadFrequently: !0 });
851
851
  if (e) {
@@ -897,7 +897,7 @@ function yv() {
897
897
  var a = e[0], o = e[1], l = e[2], h = e[3];
898
898
  return r[0] = i[0] * a + i[4] * o + i[8] * l + i[12] * h, r[1] = i[1] * a + i[5] * o + i[9] * l + i[13] * h, r[2] = i[2] * a + i[6] * o + i[10] * l + i[14] * h, r[3] = i[3] * a + i[7] * o + i[11] * l + i[15] * h, r;
899
899
  }
900
- function Ge() {
900
+ function $e() {
901
901
  var r = new ft(4);
902
902
  return ft != Float32Array && (r[0] = 0, r[1] = 0, r[2] = 0), r[3] = 1, r;
903
903
  }
@@ -937,7 +937,7 @@ function yv() {
937
937
  var i = new ft(2);
938
938
  return i[0] = r, i[1] = e, i;
939
939
  }
940
- Vt(), Pe = new ft(4), ft != Float32Array && (Pe[0] = 0, Pe[1] = 0, Pe[2] = 0, Pe[3] = 0), Vt(), at(1, 0, 0), at(0, 1, 0), Ge(), Ge(), yt(), Ke();
940
+ Vt(), Pe = new ft(4), ft != Float32Array && (Pe[0] = 0, Pe[1] = 0, Pe[2] = 0, Pe[3] = 0), Vt(), at(1, 0, 0), at(0, 1, 0), $e(), $e(), yt(), Ke();
941
941
  const je = 8192;
942
942
  function kt(r, e, i) {
943
943
  return e * (je / (r.tileSize * Math.pow(2, i - r.tileID.overscaledZ)));
@@ -984,8 +984,8 @@ function yv() {
984
984
  for (const o in r) e.call(this, r[o], o, r) && (a[o] = r[o]);
985
985
  return a;
986
986
  }
987
- function $e(r) {
988
- return Array.isArray(r) ? r.map($e) : typeof r == "object" && r ? _i(r, $e) : r;
987
+ function Ge(r) {
988
+ return Array.isArray(r) ? r.map(Ge) : typeof r == "object" && r ? _i(r, Ge) : r;
989
989
  }
990
990
  const pi = {};
991
991
  function yi(r) {
@@ -1023,20 +1023,20 @@ function yv() {
1023
1023
  }
1024
1024
  }));
1025
1025
  }
1026
- let xr, Gr;
1026
+ let xr, $r;
1027
1027
  function ia(r, e, i, a) {
1028
1028
  return r.addEventListener(e, i, a), { unsubscribe: () => {
1029
1029
  r.removeEventListener(e, i, a);
1030
1030
  } };
1031
1031
  }
1032
- function $r(r) {
1032
+ function Gr(r) {
1033
1033
  return r * Math.PI / 180;
1034
1034
  }
1035
1035
  function on(r) {
1036
1036
  return r / Math.PI * 180;
1037
1037
  }
1038
1038
  const ra = { touchstart: !0, touchmove: !0, touchmoveWindow: !0, touchend: !0, touchcancel: !0 }, yn = { dblclick: !0, click: !0, mouseover: !0, mouseout: !0, mousedown: !0, mousemove: !0, mousemoveWindow: !0, mouseup: !0, mouseupWindow: !0, contextmenu: !0, wheel: !0 }, Zr = "AbortError";
1039
- class Gi extends Error {
1039
+ class $i extends Error {
1040
1040
  constructor(e = Zr) {
1041
1041
  super(e instanceof Error ? e.message : e), this.name = Zr, e instanceof Error && e.stack && (this.stack = e.stack);
1042
1042
  }
@@ -1045,7 +1045,7 @@ function yv() {
1045
1045
  return r instanceof Error && r.name === Zr;
1046
1046
  }
1047
1047
  function na(r) {
1048
- if (r.aborted) throw new Gi(r.reason);
1048
+ if (r.aborted) throw new $i(r.reason);
1049
1049
  }
1050
1050
  const qr = { MAX_PARALLEL_IMAGE_REQUESTS: 16, MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8, MAX_TILE_CACHE_ZOOM_LEVELS: 5, REGISTERED_PROTOCOLS: {}, WORKER_URL: "" };
1051
1051
  function br(r) {
@@ -1118,7 +1118,7 @@ function yv() {
1118
1118
  p(new Wr(m.status, m.statusText, o.url, v));
1119
1119
  }
1120
1120
  }, l.signal.addEventListener("abort", (() => {
1121
- m.abort(), p(new Gi(l.signal.reason));
1121
+ m.abort(), p(new $i(l.signal.reason));
1122
1122
  })), m.send(o.body);
1123
1123
  }));
1124
1124
  })(r, e);
@@ -1482,13 +1482,13 @@ function yv() {
1482
1482
  return this.sections.length === 0 ? "" : this.sections.map(((e) => e.text)).join("");
1483
1483
  }
1484
1484
  }
1485
- class $i {
1485
+ class Gi {
1486
1486
  constructor(e) {
1487
1487
  this.values = e.slice();
1488
1488
  }
1489
1489
  static parse(e) {
1490
- if (e instanceof $i) return e;
1491
- if (typeof e == "number") return new $i([e, e, e, e]);
1490
+ if (e instanceof Gi) return e;
1491
+ if (typeof e == "number") return new Gi([e, e, e, e]);
1492
1492
  if (Array.isArray(e) && !(e.length < 1 || e.length > 4)) {
1493
1493
  for (const i of e) if (typeof i != "number") return;
1494
1494
  switch (e.length) {
@@ -1501,14 +1501,14 @@ function yv() {
1501
1501
  case 3:
1502
1502
  e = [e[0], e[1], e[2], e[1]];
1503
1503
  }
1504
- return new $i(e);
1504
+ return new Gi(e);
1505
1505
  }
1506
1506
  }
1507
1507
  toString() {
1508
1508
  return JSON.stringify(this.values);
1509
1509
  }
1510
1510
  static interpolate(e, i, a) {
1511
- return new $i(Oa(e.values, i.values, a));
1511
+ return new Gi(Oa(e.values, i.values, a));
1512
1512
  }
1513
1513
  }
1514
1514
  class qt {
@@ -1625,7 +1625,7 @@ function yv() {
1625
1625
  return typeof r == "number" && r >= 0 && r <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof i == "number" && i >= 0 && i <= 255 ? a === void 0 || typeof a == "number" && a >= 0 && a <= 1 ? null : `Invalid rgba value [${[r, e, i, a].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof a == "number" ? [r, e, i, a] : [r, e, i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
1626
1626
  }
1627
1627
  function Vn(r) {
1628
- if (r === null || typeof r == "string" || typeof r == "boolean" || typeof r == "number" || r instanceof ir || r instanceof ot || r instanceof Il || r instanceof pr || r instanceof $i || r instanceof qt || r instanceof et || r instanceof tr || r instanceof Tr) return !0;
1628
+ if (r === null || typeof r == "string" || typeof r == "boolean" || typeof r == "number" || r instanceof ir || r instanceof ot || r instanceof Il || r instanceof pr || r instanceof Gi || r instanceof qt || r instanceof et || r instanceof tr || r instanceof Tr) return !0;
1629
1629
  if (Array.isArray(r)) {
1630
1630
  for (const e of r) if (!Vn(e)) return !1;
1631
1631
  return !0;
@@ -1645,7 +1645,7 @@ function yv() {
1645
1645
  if (r instanceof ir) return sa;
1646
1646
  if (r instanceof Il) return On;
1647
1647
  if (r instanceof pr) return Bn;
1648
- if (r instanceof $i) return xn;
1648
+ if (r instanceof Gi) return xn;
1649
1649
  if (r instanceof qt) return Ve;
1650
1650
  if (r instanceof et) return wr;
1651
1651
  if (r instanceof tr) return xe;
@@ -1668,7 +1668,7 @@ function yv() {
1668
1668
  }
1669
1669
  function ca(r) {
1670
1670
  const e = typeof r;
1671
- return r === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(r) : r instanceof ot || r instanceof ir || r instanceof pr || r instanceof $i || r instanceof qt || r instanceof et || r instanceof tr || r instanceof Tr ? r.toString() : JSON.stringify(r);
1671
+ return r === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(r) : r instanceof ot || r instanceof ir || r instanceof pr || r instanceof Gi || r instanceof qt || r instanceof et || r instanceof tr || r instanceof Tr ? r.toString() : JSON.stringify(r);
1672
1672
  }
1673
1673
  class cn {
1674
1674
  constructor(e, i) {
@@ -1776,7 +1776,7 @@ function yv() {
1776
1776
  let i;
1777
1777
  for (const a of this.args) {
1778
1778
  i = a.evaluate(e);
1779
- const o = $i.parse(i);
1779
+ const o = Gi.parse(i);
1780
1780
  if (o) return o;
1781
1781
  }
1782
1782
  throw new Dt(`Could not parse padding from value '${typeof i == "string" ? i : JSON.stringify(i)}'`);
@@ -2292,7 +2292,7 @@ function yv() {
2292
2292
  case "color":
2293
2293
  return ot.interpolate(g, m, p);
2294
2294
  case "padding":
2295
- return $i.interpolate(g, m, p);
2295
+ return Gi.interpolate(g, m, p);
2296
2296
  case "colorArray":
2297
2297
  return et.interpolate(g, m, p);
2298
2298
  case "numberArray":
@@ -2332,7 +2332,7 @@ function yv() {
2332
2332
  const o = a - i, l = r - i;
2333
2333
  return o === 0 ? 0 : e === 1 ? l / o : (Math.pow(e, l) - 1) / (Math.pow(e, o) - 1);
2334
2334
  }
2335
- const Sr = { color: ot.interpolate, number: Nn, padding: $i.interpolate, numberArray: qt.interpolate, colorArray: et.interpolate, variableAnchorOffsetCollection: tr.interpolate, array: Oa };
2335
+ const Sr = { color: ot.interpolate, number: Nn, padding: Gi.interpolate, numberArray: qt.interpolate, colorArray: et.interpolate, variableAnchorOffsetCollection: tr.interpolate, array: Oa };
2336
2336
  class xo {
2337
2337
  constructor(e, i) {
2338
2338
  this.type = e, this.args = i;
@@ -2424,7 +2424,7 @@ function yv() {
2424
2424
  return e < i;
2425
2425
  }), (function(r, e, i, a) {
2426
2426
  return a.compare(e, i) < 0;
2427
- })), Ga = pa(">", (function(r, e, i) {
2427
+ })), $a = pa(">", (function(r, e, i) {
2428
2428
  return e > i;
2429
2429
  }), (function(r, e, i, a) {
2430
2430
  return a.compare(e, i) > 0;
@@ -2544,14 +2544,14 @@ function yv() {
2544
2544
  return !1;
2545
2545
  }
2546
2546
  }
2547
- class $a {
2547
+ class Ga {
2548
2548
  constructor(e) {
2549
2549
  this.type = J, this.input = e;
2550
2550
  }
2551
2551
  static parse(e, i) {
2552
2552
  if (e.length !== 2) return i.error("Expected two arguments.");
2553
2553
  const a = i.parse(e[1], 1, Qe);
2554
- return a ? new $a(a) : i.error("No image name provided.");
2554
+ return a ? new Ga(a) : i.error("No image name provided.");
2555
2555
  }
2556
2556
  evaluate(e) {
2557
2557
  const i = this.input.evaluate(e), a = Tr.fromString(i);
@@ -3138,7 +3138,7 @@ function yv() {
3138
3138
  return !1;
3139
3139
  }
3140
3140
  }
3141
- const Wa = { "==": Cl, "!=": tu, ">": Ga, "<": wh, ">=": Dl, "<=": ls, array: fr, at: pt, boolean: fr, case: Yr, coalesce: xo, collator: cs, format: fa, image: $a, in: nt, "index-of": ja, interpolate: fi, "interpolate-hcl": fi, "interpolate-lab": fi, length: Pr, let: zt, literal: cn, match: gt, number: fr, "number-format": us, object: fr, slice: Va, step: Ua, string: fr, "to-boolean": bn, "to-color": bn, "to-number": bn, "to-string": bn, var: Na, within: ga, distance: ya, "global-state": So };
3141
+ const Wa = { "==": Cl, "!=": tu, ">": $a, "<": wh, ">=": Dl, "<=": ls, array: fr, at: pt, boolean: fr, case: Yr, coalesce: xo, collator: cs, format: fa, image: Ga, in: nt, "index-of": ja, interpolate: fi, "interpolate-hcl": fi, "interpolate-lab": fi, length: Pr, let: zt, literal: cn, match: gt, number: fr, "number-format": us, object: fr, slice: Va, step: Ua, string: fr, "to-boolean": bn, "to-color": bn, "to-number": bn, "to-string": bn, var: Na, within: ga, distance: ya, "global-state": So };
3142
3142
  class Lr {
3143
3143
  constructor(e, i, a, o) {
3144
3144
  this.name = e, this.type = i, this._evaluate = a, this.args = o;
@@ -3207,7 +3207,7 @@ function yv() {
3207
3207
  function mu(r, e) {
3208
3208
  return r in e;
3209
3209
  }
3210
- function Gl(r, e) {
3210
+ function $l(r, e) {
3211
3211
  const i = e[r];
3212
3212
  return i === void 0 ? null : i;
3213
3213
  }
@@ -3256,7 +3256,7 @@ function yv() {
3256
3256
  function _u(r) {
3257
3257
  return !!r.expression && r.expression.parameters.indexOf("zoom") > -1;
3258
3258
  }
3259
- function $l(r) {
3259
+ function Gl(r) {
3260
3260
  return !!r.expression && r.expression.interpolated;
3261
3261
  }
3262
3262
  function st(r) {
@@ -3269,12 +3269,12 @@ function yv() {
3269
3269
  return r;
3270
3270
  }
3271
3271
  function yu(r, e) {
3272
- const i = r.stops && typeof r.stops[0][0] == "object", a = i || !(i || r.property !== void 0), o = r.type || ($l(e) ? "exponential" : "interval"), l = (function(v) {
3272
+ const i = r.stops && typeof r.stops[0][0] == "object", a = i || !(i || r.property !== void 0), o = r.type || (Gl(e) ? "exponential" : "interval"), l = (function(v) {
3273
3273
  switch (v.type) {
3274
3274
  case "color":
3275
3275
  return ot.parse;
3276
3276
  case "padding":
3277
- return $i.parse;
3277
+ return Gi.parse;
3278
3278
  case "numberArray":
3279
3279
  return qt.parse;
3280
3280
  case "colorArray":
@@ -3366,7 +3366,7 @@ function yv() {
3366
3366
  i = Tr.fromString(i.toString());
3367
3367
  break;
3368
3368
  case "padding":
3369
- i = $i.parse(i);
3369
+ i = Gi.parse(i);
3370
3370
  break;
3371
3371
  case "colorArray":
3372
3372
  i = et.parse(i);
@@ -3384,7 +3384,7 @@ function yv() {
3384
3384
  }], typeof: [Qe, [rt], (r, [e]) => Ze(ci(e.evaluate(r)))], "to-rgba": [De(Ae, 4), [ei], (r, [e]) => {
3385
3385
  const [i, a, o, l] = e.evaluate(r).rgb;
3386
3386
  return [255 * i, 255 * a, 255 * o, l];
3387
- }], rgb: [ei, [Ae, Ae, Ae], fu], rgba: [ei, [Ae, Ae, Ae, Ae], fu], has: { type: it, overloads: [[[Qe], (r, [e]) => mu(e.evaluate(r), r.properties())], [[Qe, kr], (r, [e, i]) => mu(e.evaluate(r), i.evaluate(r))]] }, get: { type: rt, overloads: [[[Qe], (r, [e]) => Gl(e.evaluate(r), r.properties())], [[Qe, kr], (r, [e, i]) => Gl(e.evaluate(r), i.evaluate(r))]] }, "feature-state": [rt, [Qe], (r, [e]) => Gl(e.evaluate(r), r.featureState || {})], properties: [kr, [], (r) => r.properties()], "geometry-type": [Qe, [], (r) => r.geometryType()], id: [rt, [], (r) => r.id()], zoom: [Ae, [], (r) => r.globals.zoom], "heatmap-density": [Ae, [], (r) => r.globals.heatmapDensity || 0], elevation: [Ae, [], (r) => r.globals.elevation || 0], "line-progress": [Ae, [], (r) => r.globals.lineProgress || 0], accumulated: [rt, [], (r) => r.globals.accumulated === void 0 ? null : r.globals.accumulated], "+": [Ae, va(Ae), (r, e) => {
3387
+ }], rgb: [ei, [Ae, Ae, Ae], fu], rgba: [ei, [Ae, Ae, Ae, Ae], fu], has: { type: it, overloads: [[[Qe], (r, [e]) => mu(e.evaluate(r), r.properties())], [[Qe, kr], (r, [e, i]) => mu(e.evaluate(r), i.evaluate(r))]] }, get: { type: rt, overloads: [[[Qe], (r, [e]) => $l(e.evaluate(r), r.properties())], [[Qe, kr], (r, [e, i]) => $l(e.evaluate(r), i.evaluate(r))]] }, "feature-state": [rt, [Qe], (r, [e]) => $l(e.evaluate(r), r.featureState || {})], properties: [kr, [], (r) => r.properties()], "geometry-type": [Qe, [], (r) => r.geometryType()], id: [rt, [], (r) => r.id()], zoom: [Ae, [], (r) => r.globals.zoom], "heatmap-density": [Ae, [], (r) => r.globals.heatmapDensity || 0], elevation: [Ae, [], (r) => r.globals.elevation || 0], "line-progress": [Ae, [], (r) => r.globals.lineProgress || 0], accumulated: [rt, [], (r) => r.globals.accumulated === void 0 ? null : r.globals.accumulated], "+": [Ae, va(Ae), (r, e) => {
3388
3388
  let i = 0;
3389
3389
  for (const a of e) i += a.evaluate(r);
3390
3390
  return i;
@@ -3444,7 +3444,7 @@ function yv() {
3444
3444
  case "color":
3445
3445
  return ot.parse(o.default) || null;
3446
3446
  case "padding":
3447
- return $i.parse(o.default) || null;
3447
+ return Gi.parse(o.default) || null;
3448
3448
  case "numberArray":
3449
3449
  return qt.parse(o.default) || null;
3450
3450
  case "colorArray":
@@ -3516,7 +3516,7 @@ function yv() {
3516
3516
  const h = bs(o, ["zoom"]);
3517
3517
  if (!h && !_u(e)) return Ha([new vi("", "zoom expressions not supported")]);
3518
3518
  const p = xa(o);
3519
- return p || h ? p instanceof vi ? Ha([p]) : p instanceof fi && !$l(e) ? Ha([new vi("", '"interpolate" expressions cannot be used with this property')]) : gu(p ? new Ps(l ? "camera" : "composite", a.value, p.labels, p instanceof fi ? p.interpolation : void 0, i) : new Ss(l ? "constant" : "source", a.value, i)) : Ha([new vi("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
3519
+ return p || h ? p instanceof vi ? Ha([p]) : p instanceof fi && !Gl(e) ? Ha([new vi("", '"interpolate" expressions cannot be used with this property')]) : gu(p ? new Ps(l ? "camera" : "composite", a.value, p.labels, p instanceof fi ? p.interpolation : void 0, i) : new Ss(l ? "constant" : "source", a.value, i)) : Ha([new vi("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
3520
3520
  }
3521
3521
  class Is {
3522
3522
  constructor(e, i) {
@@ -3718,7 +3718,7 @@ function yv() {
3718
3718
  }, default: function(b) {
3719
3719
  return b.validateSpec({ key: b.key, value: b.value, valueSpec: e, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec });
3720
3720
  } } });
3721
- return i === "identity" && p && v.push(new Se(r.key, r.value, 'missing required property "property"')), i === "identity" || r.value.stops || v.push(new Se(r.key, r.value, 'missing required property "stops"')), i === "exponential" && r.valueSpec.expression && !$l(r.valueSpec) && v.push(new Se(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (g && !Xa(r.valueSpec) ? v.push(new Se(r.key, r.value, "property functions not supported")) : p && !_u(r.valueSpec) && v.push(new Se(r.key, r.value, "zoom functions not supported"))), i !== "categorical" && !m || r.value.property !== void 0 || v.push(new Se(r.key, r.value, '"property" property is required')), v;
3721
+ return i === "identity" && p && v.push(new Se(r.key, r.value, 'missing required property "property"')), i === "identity" || r.value.stops || v.push(new Se(r.key, r.value, 'missing required property "stops"')), i === "exponential" && r.valueSpec.expression && !Gl(r.valueSpec) && v.push(new Se(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (g && !Xa(r.valueSpec) ? v.push(new Se(r.key, r.value, "property functions not supported")) : p && !_u(r.valueSpec) && v.push(new Se(r.key, r.value, "zoom functions not supported"))), i !== "categorical" && !m || r.value.property !== void 0 || v.push(new Se(r.key, r.value, '"property" property is required')), v;
3722
3722
  function _(b) {
3723
3723
  let I = [];
3724
3724
  const E = b.value, C = b.key;
@@ -3848,15 +3848,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3848
3848
  } else a.push(new Se(l, o, 'missing required property "source"'));
3849
3849
  return g === "raster" && (!((e = o.paint) === null || e === void 0) && e.resampling) && (!((i = o.paint) === null || i === void 0) && i["raster-resampling"]) && a.push(new Se(l, o.paint, `layer "${o.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)), a = a.concat(mr({ key: l, value: o, valueSpec: p.layer, style: r.style, styleSpec: r.styleSpec, validateSpec: r.validateSpec, objectElementValidators: { "*": () => [], type: () => r.validateSpec({ key: `${l}.type`, value: o.type, valueSpec: p.layer.type, style: r.style, styleSpec: r.styleSpec, validateSpec: r.validateSpec, object: o, objectKey: "type" }), filter: Qa, layout: (v) => mr({ layer: o, key: v.key, value: v.value, style: v.style, styleSpec: v.styleSpec, validateSpec: v.validateSpec, objectElementValidators: { "*": (_) => Iu(er({ layerType: g }, _)) } }), paint: (v) => mr({ layer: o, key: v.key, value: v.value, style: v.style, styleSpec: v.styleSpec, validateSpec: v.validateSpec, objectElementValidators: { "*": (_) => Pu(er({ layerType: g }, _)) } }) } })), a;
3850
3850
  }
3851
- function Gn(r) {
3851
+ function $n(r) {
3852
3852
  const e = r.value, i = r.key, a = st(e);
3853
3853
  return a !== "string" ? [new Se(i, e, `string expected, ${a} found`)] : [];
3854
3854
  }
3855
3855
  const Xl = { promoteId: function({ key: r, value: e }) {
3856
- if (st(e) === "string") return Gn({ key: r, value: e });
3856
+ if (st(e) === "string") return $n({ key: r, value: e });
3857
3857
  {
3858
3858
  const i = [];
3859
- for (const a in e) i.push(...Gn({ key: `${r}.${a}`, value: e[a] }));
3859
+ for (const a in e) i.push(...$n({ key: `${r}.${a}`, value: e[a] }));
3860
3860
  return i;
3861
3861
  }
3862
3862
  } };
@@ -3934,7 +3934,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3934
3934
  for (const h in i) i[h].id && o.includes(i[h].id) && e.push(new Se(a, i, `all the sprites' ids must be unique, but ${i[h].id} is duplicated`)), o.push(i[h].id), i[h].url && l.includes(i[h].url) && e.push(new Se(a, i, `all the sprites' URLs must be unique, but ${i[h].url} is duplicated`)), l.push(i[h].url), e = e.concat(mr({ key: `${a}[${h}]`, value: i[h], valueSpec: { id: { type: "string", required: !0 }, url: { type: "string", required: !0 } }, validateSpec: r.validateSpec }));
3935
3935
  return e;
3936
3936
  }
3937
- return Gn({ key: a, value: i });
3937
+ return $n({ key: a, value: i });
3938
3938
  }
3939
3939
  function Au(r) {
3940
3940
  return !!r && r.constructor === Object;
@@ -3962,10 +3962,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3962
3962
  })(i) || (function(o) {
3963
3963
  return !!["interpolate", "step", "literal"].includes(o[0]);
3964
3964
  })(i) ? ["array", "string"].includes(a) ? [] : [new Se(e, i, `projection expected, invalid type "${a}" found`)] : [new Se(e, i, `projection expected, invalid array ${JSON.stringify(i)} found`)];
3965
- }, string: Gn, formatted: function(r) {
3966
- return Gn(r).length === 0 ? [] : Un(r);
3965
+ }, string: $n, formatted: function(r) {
3966
+ return $n(r).length === 0 ? [] : Un(r);
3967
3967
  }, resolvedImage: function(r) {
3968
- return Gn(r).length === 0 ? [] : Un(r);
3968
+ return $n(r).length === 0 ? [] : Un(r);
3969
3969
  }, padding: function(r) {
3970
3970
  const e = r.key, i = r.value;
3971
3971
  if (st(i) === "array") {
@@ -4007,7 +4007,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4007
4007
  const h = [];
4008
4008
  for (const p in i) {
4009
4009
  const g = i[p], m = st(g);
4010
- if (m === "string") h.push(...Gn({ key: `${e}.${p}`, value: g }));
4010
+ if (m === "string") h.push(...$n({ key: `${e}.${p}`, value: g }));
4011
4011
  else if (m === "array") {
4012
4012
  const v = { url: { type: "string", required: !0 }, "unicode-range": { type: "array", value: "string" } };
4013
4013
  for (const [_, T] of g.entries()) h.push(...mr({ key: `${e}.${p}[${_}]`, value: T, valueSpec: v, styleSpec: o, style: l, validateSpec: a }));
@@ -4020,7 +4020,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4020
4020
  return r.validateSpec = Lo, i.expression && ws(ui(e)) ? As(r) : i.expression && Ts(ba(e)) ? Un(r) : i.type && Ql[i.type] ? Ql[i.type](r) : mr(er({}, r, { valueSpec: i.type ? a[i.type] : i }));
4021
4021
  }
4022
4022
  function eo(r) {
4023
- const e = r.value, i = r.key, a = Gn(r);
4023
+ const e = r.value, i = r.key, a = $n(r);
4024
4024
  return a.length || (e.indexOf("{fontstack}") === -1 && a.push(new Se(i, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && a.push(new Se(i, e, '"glyphs" url must include a "{range}" token'))), a;
4025
4025
  }
4026
4026
  function Fr(r, e = ge) {
@@ -4336,7 +4336,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4336
4336
  }
4337
4337
  {
4338
4338
  let p = o;
4339
- return l.type === "color" && typeof o == "string" ? p = ot.parse(o) : l.type !== "padding" || typeof o != "number" && !Array.isArray(o) ? l.type !== "numberArray" || typeof o != "number" && !Array.isArray(o) ? l.type !== "colorArray" || typeof o != "string" && !Array.isArray(o) ? l.type === "variableAnchorOffsetCollection" && Array.isArray(o) ? p = tr.parse(o) : l.type === "projectionDefinition" && typeof o == "string" && (p = ir.parse(o)) : p = et.parse(o) : p = qt.parse(o) : p = $i.parse(o), { globalStateRefs: /* @__PURE__ */ new Set(), _globalState: null, kind: "constant", evaluate: () => p };
4339
+ return l.type === "color" && typeof o == "string" ? p = ot.parse(o) : l.type !== "padding" || typeof o != "number" && !Array.isArray(o) ? l.type !== "numberArray" || typeof o != "number" && !Array.isArray(o) ? l.type !== "colorArray" || typeof o != "string" && !Array.isArray(o) ? l.type === "variableAnchorOffsetCollection" && Array.isArray(o) ? p = tr.parse(o) : l.type === "projectionDefinition" && typeof o == "string" && (p = ir.parse(o)) : p = et.parse(o) : p = qt.parse(o) : p = Gi.parse(o), { globalStateRefs: /* @__PURE__ */ new Set(), _globalState: null, kind: "constant", evaluate: () => p };
4340
4340
  }
4341
4341
  })(i === void 0 ? e.specification.default : i, e.specification, a);
4342
4342
  }
@@ -4369,16 +4369,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4369
4369
  return e in this._properties.defaultTransitionablePropertyValues;
4370
4370
  }
4371
4371
  getValue(e) {
4372
- return $e(this._values[e].value.value);
4372
+ return Ge(this._values[e].value.value);
4373
4373
  }
4374
4374
  setValue(e, i) {
4375
- Object.hasOwn(this._values, e) || (this._values[e] = new oc(this._values[e].property, this._globalState)), this._values[e].value = new jo(this._values[e].property, i === null ? void 0 : $e(i), this._globalState);
4375
+ Object.hasOwn(this._values, e) || (this._values[e] = new oc(this._values[e].property, this._globalState)), this._values[e].value = new jo(this._values[e].property, i === null ? void 0 : Ge(i), this._globalState);
4376
4376
  }
4377
4377
  getTransition(e) {
4378
- return $e(this._values[e].transition);
4378
+ return Ge(this._values[e].transition);
4379
4379
  }
4380
4380
  setTransition(e, i) {
4381
- Object.hasOwn(this._values, e) || (this._values[e] = new oc(this._values[e].property, this._globalState)), this._values[e].transition = $e(i) || void 0;
4381
+ Object.hasOwn(this._values, e) || (this._values[e] = new oc(this._values[e].property, this._globalState)), this._values[e].transition = Ge(i) || void 0;
4382
4382
  }
4383
4383
  serialize() {
4384
4384
  const e = {};
@@ -4433,7 +4433,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4433
4433
  return !1;
4434
4434
  }
4435
4435
  }
4436
- class Gh {
4436
+ class $h {
4437
4437
  constructor(e, i) {
4438
4438
  this._properties = e, this._values = Object.create(e.defaultPropertyValues), this._globalState = i;
4439
4439
  }
@@ -4444,10 +4444,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4444
4444
  return e in this._properties.defaultPropertyValues;
4445
4445
  }
4446
4446
  getValue(e) {
4447
- return $e(this._values[e].value);
4447
+ return Ge(this._values[e].value);
4448
4448
  }
4449
4449
  setValue(e, i) {
4450
- this._values[e] = new jo(this._values[e].property, i === null ? void 0 : $e(i), this._globalState);
4450
+ this._values[e] = new jo(this._values[e].property, i === null ? void 0 : Ge(i), this._globalState);
4451
4451
  }
4452
4452
  serialize() {
4453
4453
  const e = {};
@@ -4519,7 +4519,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4519
4519
  return e.kind === "constant" ? e.value : e.evaluate(i, a, o, l, h);
4520
4520
  }
4521
4521
  }
4522
- class $n extends qe {
4522
+ class Gn extends qe {
4523
4523
  possiblyEvaluate(e, i, a, o) {
4524
4524
  if (e.value === void 0) return new en(this, { kind: "constant", value: void 0 }, i);
4525
4525
  if (e.expression.kind === "constant") {
@@ -4588,13 +4588,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4588
4588
  }
4589
4589
  }
4590
4590
  }
4591
- ke("DataDrivenProperty", qe), ke("DataConstantProperty", Ne), ke("CrossFadedDataDrivenProperty", $n), ke("CrossFadedProperty", Vu), ke("ColorRampProperty", to);
4591
+ ke("DataDrivenProperty", qe), ke("DataConstantProperty", Ne), ke("CrossFadedDataDrivenProperty", Gn), ke("CrossFadedProperty", Vu), ke("ColorRampProperty", to);
4592
4592
  const Uu = " is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?", Rs = " is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";
4593
4593
  class Or extends Fn {
4594
4594
  constructor(e, i, a) {
4595
4595
  if (super(), this.id = e.id, this.type = e.type, this._globalState = a, this._featureFilter = { filter: () => !0, needGeometry: !1, getGlobalStateRefs: () => /* @__PURE__ */ new Set() }, this._visibilityExpression = (function(o, l) {
4596
4596
  return new jh(o, l);
4597
- })(this.visibility, a), e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter, this._featureFilter = Ao(e.filter, a)), i.layout && (this._unevaluatedLayout = new Gh(i.layout, a)), i.paint)) {
4597
+ })(this.visibility, a), e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter, this._featureFilter = Ao(e.filter, a)), i.layout && (this._unevaluatedLayout = new $h(i.layout, a)), i.paint)) {
4598
4598
  this._transitionablePaint = new sc(i.paint, a);
4599
4599
  for (const o in e.paint) this.setPaintProperty(o, e.paint[o], { validate: !1 });
4600
4600
  for (const o in e.layout) this.setLayoutProperty(o, e.layout[o], { validate: !1 });
@@ -4714,12 +4714,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4714
4714
  }
4715
4715
  }
4716
4716
  let cc;
4717
- var $h = { get paint() {
4717
+ var Gh = { get paint() {
4718
4718
  return cc = cc || new rr({ "raster-opacity": new Ne(ge.paint_raster["raster-opacity"]), "raster-hue-rotate": new Ne(ge.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new Ne(ge.paint_raster["raster-brightness-min"]), "raster-brightness-max": new Ne(ge.paint_raster["raster-brightness-max"]), "raster-saturation": new Ne(ge.paint_raster["raster-saturation"]), "raster-contrast": new Ne(ge.paint_raster["raster-contrast"]), resampling: new Ne(ge.paint_raster.resampling), "raster-resampling": new Ne(ge.paint_raster["raster-resampling"]), "raster-fade-duration": new Ne(ge.paint_raster["raster-fade-duration"]) });
4719
4719
  } };
4720
4720
  class Zh extends Or {
4721
4721
  constructor(e, i) {
4722
- super(e, $h, i);
4722
+ super(e, Gh, i);
4723
4723
  }
4724
4724
  }
4725
4725
  const qh = { Int8: Int8Array, Uint8: Uint8Array, Int16: Int16Array, Uint16: Uint16Array, Int32: Int32Array, Uint32: Uint32Array, Float32: Float32Array };
@@ -4765,14 +4765,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4765
4765
  function Lt(r, e = 1) {
4766
4766
  let i = 0, a = 0;
4767
4767
  return { members: r.map(((o) => {
4768
- const l = qh[o.type].BYTES_PER_ELEMENT, h = i = Gu(i, Math.max(e, l)), p = o.components || 1;
4768
+ const l = qh[o.type].BYTES_PER_ELEMENT, h = i = $u(i, Math.max(e, l)), p = o.components || 1;
4769
4769
  return a = Math.max(a, l), i += l * p, { name: o.name, type: o.type, components: p, offset: h };
4770
- })), size: Gu(i, Math.max(a, e)), alignment: e };
4770
+ })), size: $u(i, Math.max(a, e)), alignment: e };
4771
4771
  }
4772
- function Gu(r, e) {
4772
+ function $u(r, e) {
4773
4773
  return Math.ceil(r / e) * e;
4774
4774
  }
4775
- class Go extends Wt {
4775
+ class $o extends Wt {
4776
4776
  _refreshViews() {
4777
4777
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
4778
4778
  }
@@ -4785,7 +4785,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4785
4785
  return this.int16[o + 0] = i, this.int16[o + 1] = a, e;
4786
4786
  }
4787
4787
  }
4788
- Go.prototype.bytesPerElement = 4, ke("StructArrayLayout2i4", Go);
4788
+ $o.prototype.bytesPerElement = 4, ke("StructArrayLayout2i4", $o);
4789
4789
  class ks extends Wt {
4790
4790
  _refreshViews() {
4791
4791
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
@@ -4842,7 +4842,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4842
4842
  }
4843
4843
  }
4844
4844
  uc.prototype.bytesPerElement = 8, ke("StructArrayLayout2i4ub8", uc);
4845
- class $o extends Wt {
4845
+ class Go extends Wt {
4846
4846
  _refreshViews() {
4847
4847
  this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
4848
4848
  }
@@ -4855,7 +4855,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4855
4855
  return this.float32[o + 0] = i, this.float32[o + 1] = a, e;
4856
4856
  }
4857
4857
  }
4858
- $o.prototype.bytesPerElement = 8, ke("StructArrayLayout2f8", $o);
4858
+ Go.prototype.bytesPerElement = 8, ke("StructArrayLayout2f8", Go);
4859
4859
  class In extends Wt {
4860
4860
  _refreshViews() {
4861
4861
  this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
@@ -5363,19 +5363,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5363
5363
  }
5364
5364
  }
5365
5365
  ke("FeatureIndexArray", B);
5366
- class j extends Go {
5366
+ class j extends $o {
5367
5367
  }
5368
- class q extends Go {
5368
+ class q extends $o {
5369
5369
  }
5370
- class U extends Go {
5370
+ class U extends $o {
5371
5371
  }
5372
5372
  class W extends Fs {
5373
5373
  }
5374
5374
  class ee extends uc {
5375
5375
  }
5376
- class H extends $o {
5376
+ class H extends Go {
5377
5377
  }
5378
- class $ extends In {
5378
+ class G extends In {
5379
5379
  }
5380
5380
  class Q extends Os {
5381
5381
  }
@@ -5706,10 +5706,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5706
5706
  const p = mc(l, e.type), g = h.value, m = h.property.specification.type, v = h.property.useIntegerZoom, _ = h.property.specification["property-type"], T = _ === "cross-faded" || _ === "cross-faded-data-driven";
5707
5707
  if (g.kind === "constant") this.binders[l] = T ? new Br(g.value, p) : new Er(g.value, p, m), o.push(`/u_${l}`);
5708
5708
  else if (g.kind === "source" || T) {
5709
- const b = $u(l, m, "source");
5709
+ const b = Gu(l, m, "source");
5710
5710
  this.binders[l] = T ? l === "line-dasharray" ? new Ia(g, m, v, i, b, e.id) : new Xt(g, m, v, i, b, e.id) : new Ht(g, p, m, b), o.push(`/a_${l}`);
5711
5711
  } else {
5712
- const b = $u(l, m, "composite");
5712
+ const b = Gu(l, m, "composite");
5713
5713
  this.binders[l] = new Bt(g, p, m, v, i, b), o.push(`/z_${l}`);
5714
5714
  }
5715
5715
  }
@@ -5854,9 +5854,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5854
5854
  function mc(r, e) {
5855
5855
  return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-dasharray": ["dasharray_to", "dasharray_from"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[r] || [r.replace(`${e}-`, "").replace(/-/g, "_")];
5856
5856
  }
5857
- function $u(r, e, i) {
5858
- const a = { color: { source: $o, composite: n }, number: { source: Ns, composite: $o } }, o = (function(l) {
5859
- return { "line-pattern": { source: $, composite: $ }, "fill-pattern": { source: $, composite: $ }, "fill-extrusion-pattern": { source: $, composite: $ }, "line-dasharray": { source: Q, composite: Q } }[l];
5857
+ function Gu(r, e, i) {
5858
+ const a = { color: { source: Go, composite: n }, number: { source: Ns, composite: Go } }, o = (function(l) {
5859
+ return { "line-pattern": { source: G, composite: G }, "fill-pattern": { source: G, composite: G }, "fill-extrusion-pattern": { source: G, composite: G }, "line-dasharray": { source: Q, composite: Q } }[l];
5860
5860
  })(r);
5861
5861
  return o?.[i] || a[e][i];
5862
5862
  }
@@ -5877,7 +5877,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5877
5877
  function yc(r, e, i, a, o) {
5878
5878
  r.emplaceBack(_c + 8 * e + a, _c + 8 * i + o);
5879
5879
  }
5880
- class Gs {
5880
+ class $s {
5881
5881
  constructor(e) {
5882
5882
  this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.layoutVertexArray = new q(), this.indexArray = new be(), this.segments = new Re(), this.programConfigurations = new Mn(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
5883
5883
  }
@@ -5949,7 +5949,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5949
5949
  this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, a, { imagePositions: {}, canonical: o });
5950
5950
  }
5951
5951
  }
5952
- function $s(r, e) {
5952
+ function Gs(r, e) {
5953
5953
  for (const i of r) if (Zs(e, i)) return !0;
5954
5954
  for (const i of e) if (Zs(r, i)) return !0;
5955
5955
  return Wh(r, e);
@@ -6063,7 +6063,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6063
6063
  return new _e((0.5 * o.x + 0.5) * e.width, (0.5 * -o.y + 0.5) * e.height);
6064
6064
  }
6065
6065
  let Tp, Sp;
6066
- ke("CircleBucket", Gs, { omit: ["layers"] });
6066
+ ke("CircleBucket", $s, { omit: ["layers"] });
6067
6067
  var Lg = { get paint() {
6068
6068
  return Sp = Sp || new rr({ "circle-radius": new qe(ge.paint_circle["circle-radius"]), "circle-color": new qe(ge.paint_circle["circle-color"]), "circle-blur": new qe(ge.paint_circle["circle-blur"]), "circle-opacity": new qe(ge.paint_circle["circle-opacity"]), "circle-translate": new Ne(ge.paint_circle["circle-translate"]), "circle-translate-anchor": new Ne(ge.paint_circle["circle-translate-anchor"]), "circle-pitch-scale": new Ne(ge.paint_circle["circle-pitch-scale"]), "circle-pitch-alignment": new Ne(ge.paint_circle["circle-pitch-alignment"]), "circle-stroke-width": new qe(ge.paint_circle["circle-stroke-width"]), "circle-stroke-color": new qe(ge.paint_circle["circle-stroke-color"]), "circle-stroke-opacity": new qe(ge.paint_circle["circle-stroke-opacity"]) });
6069
6069
  }, get layout() {
@@ -6074,7 +6074,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6074
6074
  super(e, Lg, i);
6075
6075
  }
6076
6076
  createBucket(e) {
6077
- return new Gs(e);
6077
+ return new $s(e);
6078
6078
  }
6079
6079
  queryRadius(e) {
6080
6080
  const i = e;
@@ -6088,7 +6088,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6088
6088
  })(m, l, p, g), I = v), wp({ queryGeometry: b, size: I, transform: l, unwrappedTileID: p, getElevation: g, pitchAlignment: T, pitchScale: _ }, o);
6089
6089
  }
6090
6090
  }
6091
- class Pp extends Gs {
6091
+ class Pp extends $s {
6092
6092
  }
6093
6093
  let Ip;
6094
6094
  ke("HeatmapBucket", Pp, { omit: ["layers"] });
@@ -6217,8 +6217,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6217
6217
  let e = this.paint.get("hillshade-illumination-direction").values, i = this.paint.get("hillshade-illumination-altitude").values, a = this.paint.get("hillshade-highlight-color").values, o = this.paint.get("hillshade-shadow-color").values;
6218
6218
  const l = Math.max(e.length, i.length, a.length, o.length);
6219
6219
  e = e.concat(Array(l - e.length).fill(e.at(-1))), i = i.concat(Array(l - i.length).fill(i.at(-1))), a = a.concat(Array(l - a.length).fill(a.at(-1))), o = o.concat(Array(l - o.length).fill(o.at(-1)));
6220
- const h = i.map($r);
6221
- return { directionRadians: e.map($r), altitudeRadians: h, shadowColor: o, highlightColor: a };
6220
+ const h = i.map(Gr);
6221
+ return { directionRadians: e.map(Gr), altitudeRadians: h, shadowColor: o, highlightColor: a };
6222
6222
  }
6223
6223
  hasOffscreenPass() {
6224
6224
  return this.paint.get("hillshade-exaggeration") !== 0 && !this.isHidden();
@@ -6375,7 +6375,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6375
6375
  return !this.isHidden() && !!this.colorRampTextures;
6376
6376
  }
6377
6377
  }
6378
- const Gg = Lt([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: $g } = Gg;
6378
+ const $g = Lt([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Gg } = $g;
6379
6379
  function Hu(r, e, i) {
6380
6380
  const a = i.patternDependencies;
6381
6381
  let o = !1;
@@ -6941,7 +6941,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6941
6941
  return !this.uploaded || this.programConfigurations.needsUpload;
6942
6942
  }
6943
6943
  upload(e) {
6944
- this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, $g), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
6944
+ this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Gg), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
6945
6945
  }
6946
6946
  destroy() {
6947
6947
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.indexBuffer2.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.segments2.destroy());
@@ -6956,10 +6956,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6956
6956
  this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, a, { imagePositions: l, canonical: o });
6957
6957
  }
6958
6958
  }
6959
- let Up, Gp;
6959
+ let Up, $p;
6960
6960
  ke("FillBucket", rd, { omit: ["layers", "patternFeatures"] });
6961
6961
  var i_ = { get paint() {
6962
- return Gp = Gp || new rr({ "fill-antialias": new Ne(ge.paint_fill["fill-antialias"]), "fill-opacity": new qe(ge.paint_fill["fill-opacity"]), "fill-color": new qe(ge.paint_fill["fill-color"]), "fill-outline-color": new qe(ge.paint_fill["fill-outline-color"]), "fill-translate": new Ne(ge.paint_fill["fill-translate"]), "fill-translate-anchor": new Ne(ge.paint_fill["fill-translate-anchor"]), "fill-pattern": new $n(ge.paint_fill["fill-pattern"]) });
6962
+ return $p = $p || new rr({ "fill-antialias": new Ne(ge.paint_fill["fill-antialias"]), "fill-opacity": new qe(ge.paint_fill["fill-opacity"]), "fill-color": new qe(ge.paint_fill["fill-color"]), "fill-outline-color": new qe(ge.paint_fill["fill-outline-color"]), "fill-translate": new Ne(ge.paint_fill["fill-translate"]), "fill-translate-anchor": new Ne(ge.paint_fill["fill-translate-anchor"]), "fill-pattern": new Gn(ge.paint_fill["fill-pattern"]) });
6963
6963
  }, get layout() {
6964
6964
  return Up = Up || new rr({ "fill-sort-key": new qe(ge.layout_fill["fill-sort-key"]) });
6965
6965
  } };
@@ -7043,7 +7043,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7043
7043
  } else {
7044
7044
  if (this.type !== 3) throw new Error("unknown feature type");
7045
7045
  {
7046
- const T = $p(p), b = [];
7046
+ const T = Gp(p), b = [];
7047
7047
  for (const I of T) b.push(I.map(m));
7048
7048
  v = b.length === 1 ? { type: "Polygon", coordinates: b[0] } : { type: "MultiPolygon", coordinates: b };
7049
7049
  }
@@ -7061,7 +7061,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7061
7061
  }
7062
7062
  })(i, e) : r === 3 ? e.type = i.readVarint() : r === 4 && (e._geometry = i.pos);
7063
7063
  }
7064
- function $p(r) {
7064
+ function Gp(r) {
7065
7065
  const e = r.length;
7066
7066
  if (e <= 1) return [r];
7067
7067
  const i = [];
@@ -7202,7 +7202,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7202
7202
  let Wp;
7203
7203
  ke("FillExtrusionBucket", ad, { omit: ["layers", "features"] });
7204
7204
  var f_ = { get paint() {
7205
- return Wp = Wp || new rr({ "fill-extrusion-opacity": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new qe(ge["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new $n(ge["paint_fill-extrusion"]["fill-extrusion-pattern"]), "fill-extrusion-height": new qe(ge["paint_fill-extrusion"]["fill-extrusion-height"]), "fill-extrusion-base": new qe(ge["paint_fill-extrusion"]["fill-extrusion-base"]), "fill-extrusion-vertical-gradient": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) });
7205
+ return Wp = Wp || new rr({ "fill-extrusion-opacity": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new qe(ge["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new Gn(ge["paint_fill-extrusion"]["fill-extrusion-pattern"]), "fill-extrusion-height": new qe(ge["paint_fill-extrusion"]["fill-extrusion-height"]), "fill-extrusion-base": new qe(ge["paint_fill-extrusion"]["fill-extrusion-base"]), "fill-extrusion-vertical-gradient": new Ne(ge["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) });
7206
7206
  } };
7207
7207
  class m_ extends Or {
7208
7208
  constructor(e, i) {
@@ -7230,8 +7230,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7230
7230
  for (const fe of b) {
7231
7231
  const me = [], he = [];
7232
7232
  for (const le of fe) {
7233
- const Ie = le.x, ze = le.y, Me = C[0] * Ie + C[4] * ze + C[12], Ee = C[1] * Ie + C[5] * ze + C[13], Xe = C[2] * Ie + C[6] * ze + C[14], _t = C[3] * Ie + C[7] * ze + C[15], bt = Xe + N, Et = _t + V, Yi = Me + te, ri = Ee + re, Pi = Xe + ue, ki = _t + se, Gt = new _e((Me + k) / Et, (Ee + O) / Et);
7234
- Gt.z = bt / Et, me.push(Gt);
7233
+ const Ie = le.x, ze = le.y, Me = C[0] * Ie + C[4] * ze + C[12], Ee = C[1] * Ie + C[5] * ze + C[13], Xe = C[2] * Ie + C[6] * ze + C[14], _t = C[3] * Ie + C[7] * ze + C[15], bt = Xe + N, Et = _t + V, Yi = Me + te, ri = Ee + re, Pi = Xe + ue, ki = _t + se, $t = new _e((Me + k) / Et, (Ee + O) / Et);
7234
+ $t.z = bt / Et, me.push($t);
7235
7235
  const Ui = new _e(Yi / ki, ri / ki);
7236
7236
  Ui.z = Pi / ki, he.push(Ui);
7237
7237
  }
@@ -7246,7 +7246,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7246
7246
  const F = I[z], k = b[z];
7247
7247
  for (let O = 0; O < F.length - 1; O++) {
7248
7248
  const N = F[O], V = [N, F[O + 1], k[O + 1], k[O], N];
7249
- $s(E, V) && (C = Math.min(C, Hp(E, V)));
7249
+ Gs(E, V) && (C = Math.min(C, Hp(E, V)));
7250
7250
  }
7251
7251
  }
7252
7252
  return C !== 1 / 0 && C;
@@ -8219,7 +8219,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8219
8219
  let uf, hf;
8220
8220
  ke("LineBucket", bd, { omit: ["layers", "patternFeatures"] });
8221
8221
  var df = { get paint() {
8222
- return hf = hf || new rr({ "line-opacity": new qe(ge.paint_line["line-opacity"]), "line-color": new qe(ge.paint_line["line-color"]), "line-translate": new Ne(ge.paint_line["line-translate"]), "line-translate-anchor": new Ne(ge.paint_line["line-translate-anchor"]), "line-width": new qe(ge.paint_line["line-width"]), "line-gap-width": new qe(ge.paint_line["line-gap-width"]), "line-offset": new qe(ge.paint_line["line-offset"]), "line-blur": new qe(ge.paint_line["line-blur"]), "line-dasharray": new $n(ge.paint_line["line-dasharray"]), "line-pattern": new $n(ge.paint_line["line-pattern"]), "line-gradient": new to(ge.paint_line["line-gradient"]) });
8222
+ return hf = hf || new rr({ "line-opacity": new qe(ge.paint_line["line-opacity"]), "line-color": new qe(ge.paint_line["line-color"]), "line-translate": new Ne(ge.paint_line["line-translate"]), "line-translate-anchor": new Ne(ge.paint_line["line-translate-anchor"]), "line-width": new qe(ge.paint_line["line-width"]), "line-gap-width": new qe(ge.paint_line["line-gap-width"]), "line-offset": new qe(ge.paint_line["line-offset"]), "line-blur": new qe(ge.paint_line["line-blur"]), "line-dasharray": new Gn(ge.paint_line["line-dasharray"]), "line-pattern": new Gn(ge.paint_line["line-pattern"]), "line-gradient": new to(ge.paint_line["line-gradient"]) });
8223
8223
  }, get layout() {
8224
8224
  return uf = uf || new rr({ "line-cap": new qe(ge.layout_line["line-cap"]), "line-join": new qe(ge.layout_line["line-join"]), "line-miter-limit": new qe(ge.layout_line["line-miter-limit"]), "line-round-limit": new qe(ge.layout_line["line-round-limit"]), "line-sort-key": new qe(ge.layout_line["line-sort-key"]) });
8225
8225
  } };
@@ -8287,9 +8287,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8287
8287
  function pf(r, e) {
8288
8288
  return e > 0 ? e + 2 * r : r;
8289
8289
  }
8290
- const U_ = Lt([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), G_ = Lt([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
8290
+ const U_ = Lt([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), $_ = Lt([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
8291
8291
  Lt([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
8292
- const $_ = Lt([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
8292
+ const G_ = Lt([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
8293
8293
  Lt([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
8294
8294
  const ff = Lt([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), Z_ = Lt([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
8295
8295
  function q_(r, e, i) {
@@ -8875,20 +8875,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8875
8875
  let Ee = 0, Xe = 0, _t = 0, bt = 0;
8876
8876
  const Et = he === "right" ? 1 : he === "left" ? 0 : 0.5, Yi = zi / Me;
8877
8877
  let ri = 0;
8878
- for (const Gt of se) {
8879
- Gt.trim();
8880
- const Ui = Gt.getMaxScale(), sr = { positionedGlyphs: [], lineOffset: 0 };
8878
+ for (const $t of se) {
8879
+ $t.trim();
8880
+ const Ui = $t.getMaxScale(), sr = { positionedGlyphs: [], lineOffset: 0 };
8881
8881
  V.positionedLines[ri] = sr;
8882
8882
  const lr = sr.positionedGlyphs;
8883
8883
  let Ar = 0;
8884
- if (!Gt.length()) {
8884
+ if (!$t.length()) {
8885
8885
  Xe += fe, ++ri;
8886
8886
  continue;
8887
8887
  }
8888
- const Ki = cy(ue, Gt, Yi);
8888
+ const Ki = cy(ue, $t, Yi);
8889
8889
  let Cr = 0;
8890
- for (const Li of Gt.text) {
8891
- const Yt = Gt.getSection(Cr), wi = Li.codePointAt(0), ni = uy(le, ze, wi), Fi = { glyph: wi, imageName: null, x: Ee, y: Xe + -17, vertical: ni, scale: 1, fontStack: "", sectionIndex: Gt.getSectionIndex(Cr), metrics: null, rect: null };
8890
+ for (const Li of $t.text) {
8891
+ const Yt = $t.getSection(Cr), wi = Li.codePointAt(0), ni = uy(le, ze, wi), Fi = { glyph: wi, imageName: null, x: Ee, y: Xe + -17, vertical: ni, scale: 1, fontStack: "", sectionIndex: $t.getSectionIndex(Cr), metrics: null, rect: null };
8892
8892
  let Ca;
8893
8893
  if ("fontStack" in Yt) {
8894
8894
  if (Ca = hy(Yt, wi, ni, Ki, te, re), !Ca) continue;
@@ -8905,11 +8905,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8905
8905
  Xe += mn, bt = Math.max(mn, bt), ++ri;
8906
8906
  }
8907
8907
  const { horizontalAlign: Pi, verticalAlign: ki } = Sd(me);
8908
- (function(Gt, Ui, sr, lr, Ar, Ki, Cr, mn, Li) {
8908
+ (function($t, Ui, sr, lr, Ar, Ki, Cr, mn, Li) {
8909
8909
  const Yt = (Ui - sr) * Ar;
8910
8910
  let wi = 0;
8911
8911
  wi = Ki !== Cr ? -mn * lr - -17 : -lr * Li * Cr + 0.5 * Cr;
8912
- for (const ni of Gt) for (const Fi of ni.positionedGlyphs) Fi.x += Yt, Fi.y += wi;
8912
+ for (const ni of $t) for (const Fi of ni.positionedGlyphs) Fi.x += Yt, Fi.y += wi;
8913
8913
  })(V.positionedLines, Et, Pi, ki, _t, bt, fe, Xe, se.length), V.top += -ki * Xe, V.bottom = V.top + Xe, V.left += -Pi * _t, V.right = V.left + _t;
8914
8914
  })(N, e, i, a, C, h, p, g, _, m, T, I), !(function(V) {
8915
8915
  for (const te of V) if (te.positionedGlyphs.length !== 0) return !1;
@@ -9067,7 +9067,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9067
9067
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
9068
9068
  }
9069
9069
  upload(e, i, a, o) {
9070
- this.isEmpty() || (a && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, U_.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, i), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, G_.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, my, !0), this.opacityVertexBuffer.itemSize = 1), (a || o) && this.programConfigurations.upload(e));
9070
+ this.isEmpty() || (a && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, U_.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, i), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, $_.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, my, !0), this.opacityVertexBuffer.itemSize = 1), (a || o) && this.programConfigurations.upload(e));
9071
9071
  }
9072
9072
  destroy() {
9073
9073
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.dynamicLayoutVertexBuffer.destroy(), this.opacityVertexBuffer.destroy());
@@ -9079,7 +9079,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9079
9079
  this.layoutVertexArray = new e(), this.layoutAttributes = i, this.indexArray = new a(), this.segments = new Re(), this.collisionVertexArray = new we();
9080
9080
  }
9081
9081
  upload(e) {
9082
- this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, $_.members, !0);
9082
+ this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, G_.members, !0);
9083
9083
  }
9084
9084
  destroy() {
9085
9085
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.collisionVertexBuffer.destroy());
@@ -9710,7 +9710,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9710
9710
  break;
9711
9711
  }
9712
9712
  case 3: {
9713
- const h = $p(l), p = [];
9713
+ const h = Gp(l), p = [];
9714
9714
  for (const g of h) p.push(g.map(((m) => this.projectLine(m, a, o, i))));
9715
9715
  this._geometry = p.length === 1 ? { type: "Polygon", coordinates: p[0] } : { type: "MultiPolygon", coordinates: p };
9716
9716
  break;
@@ -9758,12 +9758,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9758
9758
  return this.dataBuffer[e];
9759
9759
  }
9760
9760
  }
9761
- class Gf extends rl {
9761
+ class $f extends rl {
9762
9762
  constructor(e, i, a, o) {
9763
9763
  super(e, i, o), this.delta = a;
9764
9764
  }
9765
9765
  }
9766
- class kd extends Gf {
9766
+ class kd extends $f {
9767
9767
  constructor(e, i, a, o) {
9768
9768
  super(e, Int32Array.of(i), a, o);
9769
9769
  }
@@ -9826,7 +9826,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9826
9826
  return e instanceof zd || e instanceof Ld || e instanceof kd || e instanceof Rd;
9827
9827
  }
9828
9828
  }
9829
- class $f {
9829
+ class Gf {
9830
9830
  constructor(e) {
9831
9831
  this.value = e;
9832
9832
  }
@@ -10323,7 +10323,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10323
10323
  for (let h = 0; h < a; h++) o[h] = e.get(h) ? r[l++] : i;
10324
10324
  return o;
10325
10325
  }
10326
- function Gd(r, e, i, a, o) {
10326
+ function $d(r, e, i, a, o) {
10327
10327
  return (function(l, h, p, g) {
10328
10328
  let m;
10329
10329
  switch (h.logicalLevelTechnique1) {
@@ -10558,7 +10558,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10558
10558
  throw new Error(`Specified physicalLevelTechnique ${a} is not supported (yet).`);
10559
10559
  }
10560
10560
  }
10561
- function $d(r, e, i) {
10561
+ function Gd(r, e, i) {
10562
10562
  const a = sl(r, e, i);
10563
10563
  return a.length === 1 ? a[0] : (function(o) {
10564
10564
  return o[1];
@@ -10622,7 +10622,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10622
10622
  if (r.runs !== 2) return r.numValues === 1 ? Ut.CONST : Ut.FLAT;
10623
10623
  const p = a.get();
10624
10624
  if (r.physicalLevelTechnique === oo.VARINT) return (function(v, _, T) {
10625
- const b = new $f(_.get());
10625
+ const b = new Gf(_.get());
10626
10626
  if (T === "int64") {
10627
10627
  const E = nl(v, b, 4);
10628
10628
  return E[2] === 2n && E[3] === 2n;
@@ -10638,7 +10638,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10638
10638
  return this.dataBuffer[e];
10639
10639
  }
10640
10640
  }
10641
- class tm extends Gf {
10641
+ class tm extends $f {
10642
10642
  constructor(e, i, a, o) {
10643
10643
  super(e, BigInt64Array.of(i), a, o);
10644
10644
  }
@@ -10954,7 +10954,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10954
10954
  const l = _r(r, i);
10955
10955
  let h, p, g, m;
10956
10956
  if (uh(l, a, r, i) === Ut.CONST) {
10957
- const F = $d(r, i, l);
10957
+ const F = Gd(r, i, l);
10958
10958
  let k, O, N, V;
10959
10959
  for (let te = 0; te < e - 1; te++) {
10960
10960
  const re = _r(r, i);
@@ -10984,7 +10984,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10984
10984
  }
10985
10985
  break;
10986
10986
  case Hi.DATA:
10987
- An.VERTEX === re.logicalStreamType.dictionaryType ? p = Gd(r, i, re) : (g = { numBits: re.numBits, coordinateShift: re.coordinateShift }, p = Vr(r, i, re));
10987
+ An.VERTEX === re.logicalStreamType.dictionaryType ? p = $d(r, i, re) : (g = { numBits: re.numBits, coordinateShift: re.coordinateShift }, p = Vr(r, i, re));
10988
10988
  }
10989
10989
  }
10990
10990
  return m ? k !== void 0 || O !== void 0 ? sm(a, F, V, m, p, { geometryOffsets: k, partOffsets: O, ringOffsets: N }) : sm(a, F, V, m, p) : g === void 0 ? (function(te, re, ue, se, fe) {
@@ -11023,7 +11023,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11023
11023
  }
11024
11024
  break;
11025
11025
  case Hi.DATA:
11026
- An.VERTEX === k.logicalStreamType.dictionaryType ? p = Gd(r, i, k) : (g = { numBits: k.numBits, coordinateShift: k.coordinateShift }, p = Vr(r, i, k));
11026
+ An.VERTEX === k.logicalStreamType.dictionaryType ? p = $d(r, i, k) : (g = { numBits: k.numBits, coordinateShift: k.coordinateShift }, p = Vr(r, i, k));
11027
11027
  }
11028
11028
  }
11029
11029
  return _ ? (E = qd(v, _, 2), T && b ? (C = cm(v, E, T, !1), z = (function(F, k, O, N) {
@@ -11205,7 +11205,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11205
11205
  return (function(I, E, C, z, F) {
11206
11206
  const k = _r(I, E), O = uh(k, F, I, E), N = z.physicalType === 3;
11207
11207
  if (O === Ut.FLAT) {
11208
- const te = kc(F) ? F : void 0, re = N ? Gd(I, E, k, 0, te) : Vr(I, E, k, 0, te);
11208
+ const te = kc(F) ? F : void 0, re = N ? $d(I, E, k, 0, te) : Vr(I, E, k, 0, te);
11209
11209
  return new zd(C.name, re, F);
11210
11210
  }
11211
11211
  if (O === Ut.SEQUENCE) {
@@ -11217,7 +11217,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11217
11217
  return se.length === 1 ? At(se[0]) : (function(fe) {
11218
11218
  return At(fe[1]);
11219
11219
  })(se);
11220
- })(I, E, k) : $d(I, E, k);
11220
+ })(I, E, k) : Gd(I, E, k);
11221
11221
  return new Ld(C.name, V, F, N);
11222
11222
  })(p, g, _, v, b);
11223
11223
  case 9:
@@ -11288,7 +11288,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11288
11288
  let Et = 0, Yi = 0n;
11289
11289
  for (let ri = 0; ri < Xe; ri++) {
11290
11290
  const Pi = Number(Ee[ri]), ki = gr(Ee[ri + Xe]);
11291
- for (let Gt = 0; Gt < Pi; Gt++) Yi += ki, bt[Et++] = Yi;
11291
+ for (let $t = 0; $t < Pi; $t++) Yi += ki, bt[Et++] = Yi;
11292
11292
  }
11293
11293
  return bt;
11294
11294
  })(he, Me.runs, Me.numRleValues);
@@ -11528,7 +11528,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11528
11528
  }
11529
11529
  return a;
11530
11530
  }
11531
- function Gy(r, e) {
11531
+ function $y(r, e) {
11532
11532
  const i = { featureTables: [] }, a = {};
11533
11533
  a.name = Xd(r, e);
11534
11534
  const o = or(r, e, 1)[0] >>> 0, l = or(r, e, 1)[0] >>> 0;
@@ -11536,7 +11536,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11536
11536
  for (let h = 0; h < l; h++) a.columns[h] = Uy(r, e);
11537
11537
  return i.featureTables.push(a), [i, o];
11538
11538
  }
11539
- function $y(r, e, i, a, o, l, h = !1) {
11539
+ function Gy(r, e, i, a, o, l, h = !1) {
11540
11540
  const p = e.scalarType;
11541
11541
  if (!p || p.type !== "logicalType" || p.logicalType !== 0) throw new Error(`ID column must be a logical ID scalar type: ${a}`);
11542
11542
  const g = p.longID ? 6 : 4, m = typeof l == "number" ? void 0 : l, v = uh(o, l, r, i, g === 6 ? "int64" : "int32");
@@ -11550,7 +11550,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11550
11550
  return new kd(a, _[0], _[1], o.numRleValues);
11551
11551
  }
11552
11552
  case Ut.CONST: {
11553
- const _ = $d(r, i, o);
11553
+ const _ = Gd(r, i, o);
11554
11554
  return new Ld(a, _, l, !1);
11555
11555
  }
11556
11556
  }
@@ -11646,7 +11646,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11646
11646
  constructor(e) {
11647
11647
  this.layers = {};
11648
11648
  const i = (function(a, o, l = !0) {
11649
- const h = new $f(0), p = [];
11649
+ const h = new Gf(0), p = [];
11650
11650
  for (; h.get() < a.length; ) {
11651
11651
  const m = or(a, h, 1)[0] >>> 0, v = h.get() + m;
11652
11652
  if (v > a.length) throw new Error(`Block overruns tile: ${v} > ${a.length}`);
@@ -11654,7 +11654,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11654
11654
  h.set(v);
11655
11655
  continue;
11656
11656
  }
11657
- const [_, T] = Gy(a, h), b = _.featureTables[0];
11657
+ const [_, T] = $y(a, h), b = _.featureTables[0];
11658
11658
  let I = null, E = null;
11659
11659
  const C = [];
11660
11660
  let z = 0;
@@ -11667,7 +11667,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11667
11667
  h.set(re + te.byteLength), N = new Cn(ue, te.numValues);
11668
11668
  }
11669
11669
  const V = _r(a, h);
11670
- z = N ? N.size() : V.decompressedCount, I = $y(a, k, h, O, V, N ?? z, l);
11670
+ z = N ? N.size() : V.decompressedCount, I = Gy(a, k, h, O, V, N ?? z, l);
11671
11671
  } else if (jy(k)) {
11672
11672
  const N = or(a, h, 1)[0];
11673
11673
  if (z === 0) {
@@ -11987,13 +11987,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11987
11987
  (l.textFitWidth || l.textFitHeight) && (m = Pf(r)), z = hh(v, 0, le[0]), k = hh(_, 0, le[1]), F = hh(v, le[0], le[2]), O = hh(_, le[1], le[3]), N = le[0] - z, te = le[1] - k, V = Ie - F, re = ze - O;
11988
11988
  }
11989
11989
  const ue = m.x1, se = m.y1, fe = m.x2 - ue, me = m.y2 - se, he = (le, Ie, ze, Me) => {
11990
- const Ee = dh(le.stretch - z, F, fe, ue), Xe = ph(le.fixed - N, V, le.stretch, b), _t = dh(Ie.stretch - k, O, me, se), bt = ph(Ie.fixed - te, re, Ie.stretch, I), Et = dh(ze.stretch - z, F, fe, ue), Yi = ph(ze.fixed - N, V, ze.stretch, b), ri = dh(Me.stretch - k, O, me, se), Pi = ph(Me.fixed - te, re, Me.stretch, I), ki = new _e(Ee, _t), Gt = new _e(Et, _t), Ui = new _e(Et, ri), sr = new _e(Ee, ri), lr = new _e(Xe / h, bt / h), Ar = new _e(Yi / h, Pi / h), Ki = e * Math.PI / 180;
11990
+ const Ee = dh(le.stretch - z, F, fe, ue), Xe = ph(le.fixed - N, V, le.stretch, b), _t = dh(Ie.stretch - k, O, me, se), bt = ph(Ie.fixed - te, re, Ie.stretch, I), Et = dh(ze.stretch - z, F, fe, ue), Yi = ph(ze.fixed - N, V, ze.stretch, b), ri = dh(Me.stretch - k, O, me, se), Pi = ph(Me.fixed - te, re, Me.stretch, I), ki = new _e(Ee, _t), $t = new _e(Et, _t), Ui = new _e(Et, ri), sr = new _e(Ee, ri), lr = new _e(Xe / h, bt / h), Ar = new _e(Yi / h, Pi / h), Ki = e * Math.PI / 180;
11991
11991
  if (Ki) {
11992
11992
  const Li = Math.sin(Ki), Yt = Math.cos(Ki), wi = [Yt, -Li, Li, Yt];
11993
- ki._matMult(wi), Gt._matMult(wi), sr._matMult(wi), Ui._matMult(wi);
11993
+ ki._matMult(wi), $t._matMult(wi), sr._matMult(wi), Ui._matMult(wi);
11994
11994
  }
11995
11995
  const Cr = le.stretch + le.fixed, mn = Ie.stretch + Ie.fixed;
11996
- return { tl: ki, tr: Gt, bl: sr, br: Ui, tex: { x: l.paddedRect.x + 1 + Cr, y: l.paddedRect.y + 1 + mn, w: ze.stretch + ze.fixed - Cr, h: Me.stretch + Me.fixed - mn }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: lr, pixelOffsetBR: Ar, minFontScaleX: V / h / fe, minFontScaleY: re / h / me, isSDF: i };
11996
+ return { tl: ki, tr: $t, bl: sr, br: Ui, tex: { x: l.paddedRect.x + 1 + Cr, y: l.paddedRect.y + 1 + mn, w: ze.stretch + ze.fixed - Cr, h: Me.stretch + Me.fixed - mn }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: lr, pixelOffsetBR: Ar, minFontScaleX: V / h / fe, minFontScaleY: re / h / me, isSDF: i };
11997
11997
  };
11998
11998
  if (a && (l.stretchX || l.stretchY)) {
11999
11999
  const le = Cm(v, E, b), Ie = Cm(_, C, I);
@@ -12228,18 +12228,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12228
12228
  let he;
12229
12229
  a && me !== "none" && (r.allowVerticalPlacement && i.vertical && (he = If(a, i.vertical, me, b.get("icon-text-fit-padding"), I, C)), E && (a = If(a, E, me, b.get("icon-text-fit-padding"), I, C)));
12230
12230
  const le = v ? _.line.getGranularityForZoomLevel(v.z) : 1, Ie = (ze, Me) => {
12231
- Me.x < 0 || Me.x >= je || Me.y < 0 || Me.y >= je || (function(Ee, Xe, _t, bt, Et, Yi, ri, Pi, ki, Gt, Ui, sr, lr, Ar, Ki, Cr, mn, Li, Yt, wi, ni, Fi, Ca, Dn, Fc) {
12231
+ Me.x < 0 || Me.x >= je || Me.y < 0 || Me.y >= je || (function(Ee, Xe, _t, bt, Et, Yi, ri, Pi, ki, $t, Ui, sr, lr, Ar, Ki, Cr, mn, Li, Yt, wi, ni, Fi, Ca, Dn, Fc) {
12232
12232
  const uo = Ee.addToLineVertexArray(Xe, _t);
12233
12233
  let Jo, dl, pl, fl, Lm = 0, Fm = 0, Om = 0, Bm = 0, Qd = -1, ep = -1;
12234
12234
  const Da = {};
12235
12235
  let Nm = Di("");
12236
12236
  if (Ee.allowVerticalPlacement && bt.vertical) {
12237
12237
  const cr = Pi.layout.get("text-rotate").evaluate(ni, {}, Dn) + 90;
12238
- pl = new fh(ki, Xe, Gt, Ui, sr, bt.vertical, lr, Ar, Ki, cr), ri && (fl = new fh(ki, Xe, Gt, Ui, sr, ri, mn, Li, Ki, cr));
12238
+ pl = new fh(ki, Xe, $t, Ui, sr, bt.vertical, lr, Ar, Ki, cr), ri && (fl = new fh(ki, Xe, $t, Ui, sr, ri, mn, Li, Ki, cr));
12239
12239
  }
12240
12240
  if (Et) {
12241
12241
  const cr = Pi.layout.get("icon-rotate").evaluate(ni, {}), tn = Pi.layout.get("icon-text-fit") !== "none", Qo = Am(Et, cr, Ca, tn), Rn = ri ? Am(ri, cr, Ca, tn) : void 0;
12242
- dl = new fh(ki, Xe, Gt, Ui, sr, Et, mn, Li, !1, cr), Lm = 4 * Qo.length;
12242
+ dl = new fh(ki, Xe, $t, Ui, sr, Et, mn, Li, !1, cr), Lm = 4 * Qo.length;
12243
12243
  const es = Ee.iconSizeData;
12244
12244
  let Jn = null;
12245
12245
  es.kind === "source" ? (Jn = [Ma * Pi.layout.get("icon-size").evaluate(ni, {})], Jn[0] > no && yi(`${Ee.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : es.kind === "composite" && (Jn = [Ma * Fi.compositeIconSizes[0].evaluate(ni, {}, Dn), Ma * Fi.compositeIconSizes[1].evaluate(ni, {}, Dn)], (Jn[0] > no || Jn[1] > no) && yi(`${Ee.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), Ee.addSymbols(Ee.icon, Qo, Jn, wi, Yt, ni, D.ax.none, Xe, uo.lineStartIndex, uo.lineLength, -1, Dn), Qd = Ee.icon.placedSymbolArray.length - 1, Rn && (Fm = 4 * Rn.length, Ee.addSymbols(Ee.icon, Rn, Jn, wi, Yt, ni, D.ax.vertical, Xe, uo.lineStartIndex, uo.lineLength, -1, Dn), ep = Ee.icon.placedSymbolArray.length - 1);
@@ -12250,7 +12250,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12250
12250
  if (!Jo) {
12251
12251
  Nm = Di(tn.text);
12252
12252
  const Rn = Pi.layout.get("text-rotate").evaluate(ni, {}, Dn);
12253
- Jo = new fh(ki, Xe, Gt, Ui, sr, tn, lr, Ar, Ki, Rn);
12253
+ Jo = new fh(ki, Xe, $t, Ui, sr, tn, lr, Ar, Ki, Rn);
12254
12254
  }
12255
12255
  const Qo = tn.positionedLines.length === 1;
12256
12256
  if (Om += Rm(Ee, Xe, tn, Yi, Pi, Ki, ni, Cr, uo, bt.vertical ? D.ax.horizontal : D.ax.horizontalOnly, Qo ? jm : [cr], Da, Qd, Fi, Dn), Qo) break;
@@ -12270,7 +12270,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12270
12270
  }
12271
12271
  return [Qo, cr.length];
12272
12272
  })(Ee.textAnchorOffsets, y0);
12273
- Ee.symbolInstances.emplaceBack(Xe.x, Xe.y, Da.right >= 0 ? Da.right : -1, Da.center >= 0 ? Da.center : -1, Da.left >= 0 ? Da.left : -1, Da.vertical || -1, Qd, ep, Nm, u0, h0, d0, p0, f0, m0, g0, _0, Gt, Om, Bm, Lm, Fm, Vm, 0, lr, zn, v0, x0);
12273
+ Ee.symbolInstances.emplaceBack(Xe.x, Xe.y, Da.right >= 0 ? Da.right : -1, Da.center >= 0 ? Da.center : -1, Da.left >= 0 ? Da.left : -1, Da.vertical || -1, Qd, ep, Nm, u0, h0, d0, p0, f0, m0, g0, _0, $t, Om, Bm, Lm, Fm, Vm, 0, lr, zn, v0, x0);
12274
12274
  })(r, Me, ze, i, a, o, he, r.layers[0], r.collisionBoxArray, e.index, e.sourceLayerIndex, r.index, z, [N, N, N, N], re, g, k, V, ue, I, e, l, m, v, h);
12275
12275
  };
12276
12276
  if (se === "line") for (const ze of bm(e.geometry, 0, 0, je, je)) {
@@ -12307,7 +12307,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12307
12307
  const bt = V ? [he.x + _t, he.y] : [0, 0];
12308
12308
  let Et = V ? [0, 0] : [he.x + _t + O[0], he.y + O[1] - Ee], Yi = [0, 0];
12309
12309
  Xe && (Yi = Et, Et = [0, 0]);
12310
- const ri = he.metrics.isDoubleResolution ? 2 : 1, Pi = (he.metrics.left - Ie) * he.scale - _t + Et[0], ki = (-he.metrics.top - Ie) * he.scale + Et[1], Gt = Pi + le.w / ri * he.scale / Me, Ui = ki + le.h / ri * he.scale / Me, sr = new _e(Pi, ki), lr = new _e(Gt, ki), Ar = new _e(Pi, Ui), Ki = new _e(Gt, Ui);
12310
+ const ri = he.metrics.isDoubleResolution ? 2 : 1, Pi = (he.metrics.left - Ie) * he.scale - _t + Et[0], ki = (-he.metrics.top - Ie) * he.scale + Et[1], $t = Pi + le.w / ri * he.scale / Me, Ui = ki + le.h / ri * he.scale / Me, sr = new _e(Pi, ki), lr = new _e($t, ki), Ar = new _e(Pi, Ui), Ki = new _e($t, Ui);
12311
12311
  if (Xe) {
12312
12312
  const Li = new _e(-_t, _t - -17), Yt = -Math.PI / 2, wi = 12 - _t, ni = new _e(22 - wi, -(he.imageName ? wi : 0)), Fi = new _e(...Yi);
12313
12313
  sr._rotateAround(Yt, Li)._add(ni)._add(Fi), lr._rotateAround(Yt, Li)._add(ni)._add(Fi), Ar._rotateAround(Yt, Li)._add(ni)._add(Fi), Ki._rotateAround(Yt, Li)._add(ni)._add(Fi);
@@ -12431,10 +12431,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12431
12431
  const i = {};
12432
12432
  for (const a of e) a in r && (i[a] = r[a]);
12433
12433
  return i;
12434
- }, D.W = ao, D.X = Pt, D.Y = Lf, D.Z = kf, D._ = u, D.a = Gi, D.a$ = function(r) {
12434
+ }, D.W = ao, D.X = Pt, D.Y = Lf, D.Z = kf, D._ = u, D.a = $i, D.a$ = function(r) {
12435
12435
  var e = new ft(3);
12436
12436
  return e[0] = r[0], e[1] = r[1], e[2] = r[2], e;
12437
- }, D.a0 = Kt, D.a1 = $t, D.a2 = an, D.a3 = Nr, D.a4 = Of, D.a5 = lh, D.a6 = je, D.a7 = zc, D.a8 = Yo, D.a9 = 25, D.aA = function(r) {
12437
+ }, D.a0 = Kt, D.a1 = Gt, D.a2 = an, D.a3 = Nr, D.a4 = Of, D.a5 = lh, D.a6 = je, D.a7 = zc, D.a8 = Yo, D.a9 = 25, D.aA = function(r) {
12438
12438
  var e = r[0], i = r[1];
12439
12439
  return Math.sqrt(e * e + i * i);
12440
12440
  }, D.aB = function(r) {
@@ -12446,7 +12446,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12446
12446
  if (g === 0) return null;
12447
12447
  const m = (p * (r.y - i.y) - h * (r.x - i.x)) / g;
12448
12448
  return new _e(r.x + m * l, r.y + m * o);
12449
- }, D.aG = bm, D.aH = $s, D.aI = function(r) {
12449
+ }, D.aG = bm, D.aH = Gs, D.aI = function(r) {
12450
12450
  let e = 1 / 0, i = 1 / 0, a = -1 / 0, o = -1 / 0;
12451
12451
  for (const l of r) e = Math.min(e, l.x), i = Math.min(i, l.y), a = Math.max(a, l.x), o = Math.max(o, l.y);
12452
12452
  return [e, i, a, o];
@@ -12481,7 +12481,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12481
12481
  isNaN(i) ? delete e["max-age"] : e["max-age"] = i;
12482
12482
  }
12483
12483
  return e;
12484
- }, D.al = Jt, D.am = 85.051129, D.an = $r, D.ao = function(r) {
12484
+ }, D.al = Jt, D.am = 85.051129, D.an = Gr, D.ao = function(r) {
12485
12485
  return Math.pow(2, r);
12486
12486
  }, D.ap = Zt, D.aq = Ff, D.ar = function(r) {
12487
12487
  return Math.log(r) / Math.LN2;
@@ -12671,7 +12671,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12671
12671
  case "symbol":
12672
12672
  return new sh(r, e);
12673
12673
  }
12674
- }, D.bU = (r) => r.type === "raster", D.bV = $e, D.bW = function(r, e) {
12674
+ }, D.bU = (r) => r.type === "raster", D.bV = Ge, D.bW = function(r, e) {
12675
12675
  if (!r) return [{ command: "setStyle", args: [e] }];
12676
12676
  let i = [];
12677
12677
  try {
@@ -12925,15 +12925,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12925
12925
  }
12926
12926
  }, D.cV = Zp, D.cW = nh, D.cX = _m, D.cY = function(r, e, i, a, o) {
12927
12927
  return u(this, void 0, void 0, (function* () {
12928
- if ($t()) try {
12928
+ if (Gt()) try {
12929
12929
  return yield an(r, e, i, a, o);
12930
12930
  } catch {
12931
12931
  }
12932
12932
  return (function(l, h, p, g, m) {
12933
12933
  const v = l.width, _ = l.height;
12934
- xr && Gr || (xr = new OffscreenCanvas(v, _), Gr = xr.getContext("2d", { willReadFrequently: !0 })), xr.width = v, xr.height = _, Gr.drawImage(l, 0, 0, v, _);
12935
- const T = Gr.getImageData(h, p, g, m);
12936
- return Gr.clearRect(0, 0, v, _), T.data;
12934
+ xr && $r || (xr = new OffscreenCanvas(v, _), $r = xr.getContext("2d", { willReadFrequently: !0 })), xr.width = v, xr.height = _, $r.drawImage(l, 0, 0, v, _);
12935
+ const T = $r.getImageData(h, p, g, m);
12936
+ return $r.clearRect(0, 0, v, _), T.data;
12937
12937
  })(r, e, i, a, o);
12938
12938
  }));
12939
12939
  }, D.cZ = Rp, D.c_ = class {
@@ -13082,12 +13082,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13082
13082
  this.familiesBySource = {};
13083
13083
  const Pe = D.cJ(Object.values(this._layerConfigs), this.keyCache);
13084
13084
  for (const Le of Pe) {
13085
- const We = Le.map(((kt) => this._layers[kt.id])), Ge = We[0];
13086
- if (Ge.isHidden()) continue;
13087
- const tt = Ge.source || "";
13085
+ const We = Le.map(((kt) => this._layers[kt.id])), $e = We[0];
13086
+ if ($e.isHidden()) continue;
13087
+ const tt = $e.source || "";
13088
13088
  let Ke = this.familiesBySource[tt];
13089
13089
  Ke || (Ke = this.familiesBySource[tt] = {});
13090
- const ut = Ge.sourceLayer || D.ag;
13090
+ const ut = $e.sourceLayer || D.ag;
13091
13091
  let je = Ke[ut];
13092
13092
  je || (je = Ke[ut] = []), je.push(We);
13093
13093
  }
@@ -13096,8 +13096,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13096
13096
  class _e {
13097
13097
  constructor(K) {
13098
13098
  const ie = {}, ae = [];
13099
- for (const Ge in K) {
13100
- const tt = K[Ge], Ke = ie[Ge] = {};
13099
+ for (const $e in K) {
13100
+ const tt = K[$e], Ke = ie[$e] = {};
13101
13101
  for (const ut in tt) {
13102
13102
  const je = tt[+ut];
13103
13103
  if (!je || je.bitmap.width === 0 || je.bitmap.height === 0) continue;
@@ -13106,12 +13106,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13106
13106
  }
13107
13107
  }
13108
13108
  const { w: Pe, h: Le } = D.p(ae), We = new D.t({ width: Pe || 1, height: Le || 1 });
13109
- for (const Ge in K) {
13110
- const tt = K[Ge];
13109
+ for (const $e in K) {
13110
+ const tt = K[$e];
13111
13111
  for (const Ke in tt) {
13112
13112
  const ut = tt[+Ke];
13113
13113
  if (!ut || ut.bitmap.width === 0 || ut.bitmap.height === 0) continue;
13114
- const je = ie[Ge][Ke].rect;
13114
+ const je = ie[$e][Ke].rect;
13115
13115
  D.t.copy(ut.bitmap, We, { x: 0, y: 0 }, { x: je.x + 1, y: je.y + 1 }, ut.bitmap);
13116
13116
  }
13117
13117
  }
@@ -13126,55 +13126,55 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13126
13126
  parse(K, ie, ae, Pe, Le) {
13127
13127
  return D._(this, void 0, void 0, (function* () {
13128
13128
  this.status = "parsing", this.data = K, this.collisionBoxArray = new D.ae();
13129
- const We = new D.cL(Object.keys(K.layers).sort()), Ge = new D.cM(this.tileID, this.promoteId);
13130
- Ge.bucketLayerIDs = [];
13131
- const tt = {}, Ke = { featureIndex: Ge, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, dashDependencies: {}, availableImages: ae, subdivisionGranularity: Le }, ut = ie.familiesBySource[this.source];
13132
- for (const $e in ut) {
13133
- const pi = K.layers[$e];
13129
+ const We = new D.cL(Object.keys(K.layers).sort()), $e = new D.cM(this.tileID, this.promoteId);
13130
+ $e.bucketLayerIDs = [];
13131
+ const tt = {}, Ke = { featureIndex: $e, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, dashDependencies: {}, availableImages: ae, subdivisionGranularity: Le }, ut = ie.familiesBySource[this.source];
13132
+ for (const Ge in ut) {
13133
+ const pi = K.layers[Ge];
13134
13134
  if (!pi) continue;
13135
- pi.version === 1 && D.w(`Vector tile source "${this.source}" layer "${$e}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
13136
- const yi = We.encode($e), si = [];
13135
+ pi.version === 1 && D.w(`Vector tile source "${this.source}" layer "${Ge}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
13136
+ const yi = We.encode(Ge), si = [];
13137
13137
  for (let Qt = 0; Qt < pi.length; Qt++) {
13138
- const li = pi.feature(Qt), Ur = Ge.getId(li, $e);
13138
+ const li = pi.feature(Qt), Ur = $e.getId(li, Ge);
13139
13139
  si.push({ feature: li, id: Ur, index: Qt, sourceLayerIndex: yi });
13140
13140
  }
13141
- for (const Qt of ut[$e]) {
13141
+ for (const Qt of ut[Ge]) {
13142
13142
  const li = Qt[0];
13143
- li.source !== this.source && D.w(`layer.source = ${li.source} does not equal this.source = ${this.source}`), li.isHidden(this.zoom, !0) || (He(Qt, this.zoom, ae), (tt[li.id] = li.createBucket({ index: Ge.bucketLayerIDs.length, layers: Qt, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: yi, sourceID: this.source })).populate(si, Ke, this.tileID.canonical), Ge.bucketLayerIDs.push(Qt.map(((Ur) => Ur.id))));
13143
+ li.source !== this.source && D.w(`layer.source = ${li.source} does not equal this.source = ${this.source}`), li.isHidden(this.zoom, !0) || (He(Qt, this.zoom, ae), (tt[li.id] = li.createBucket({ index: $e.bucketLayerIDs.length, layers: Qt, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: yi, sourceID: this.source })).populate(si, Ke, this.tileID.canonical), $e.bucketLayerIDs.push(Qt.map(((Ur) => Ur.id))));
13144
13144
  }
13145
13145
  }
13146
- const je = D.bY(Ke.glyphDependencies, (($e) => Object.keys($e).map(Number)));
13147
- for (const $e of this.inFlightDependencies) $e?.abort();
13146
+ const je = D.bY(Ke.glyphDependencies, ((Ge) => Object.keys(Ge).map(Number)));
13147
+ for (const Ge of this.inFlightDependencies) Ge?.abort();
13148
13148
  this.inFlightDependencies = [];
13149
13149
  let kt = Promise.resolve({});
13150
13150
  if (Object.keys(je).length) {
13151
- const $e = new AbortController();
13152
- this.inFlightDependencies.push($e), kt = Pe.sendAsync({ type: "GG", data: { stacks: je, source: this.source, tileID: this.tileID, type: "glyphs" } }, $e);
13151
+ const Ge = new AbortController();
13152
+ this.inFlightDependencies.push(Ge), kt = Pe.sendAsync({ type: "GG", data: { stacks: je, source: this.source, tileID: this.tileID, type: "glyphs" } }, Ge);
13153
13153
  }
13154
13154
  const Ct = Object.keys(Ke.iconDependencies);
13155
13155
  let Bi = Promise.resolve({});
13156
13156
  if (Ct.length) {
13157
- const $e = new AbortController();
13158
- this.inFlightDependencies.push($e), Bi = Pe.sendAsync({ type: "GI", data: { icons: Ct, source: this.source, tileID: this.tileID, type: "icons" } }, $e);
13157
+ const Ge = new AbortController();
13158
+ this.inFlightDependencies.push(Ge), Bi = Pe.sendAsync({ type: "GI", data: { icons: Ct, source: this.source, tileID: this.tileID, type: "icons" } }, Ge);
13159
13159
  }
13160
13160
  const oi = Object.keys(Ke.patternDependencies);
13161
13161
  let vt = Promise.resolve({});
13162
13162
  if (oi.length) {
13163
- const $e = new AbortController();
13164
- this.inFlightDependencies.push($e), vt = Pe.sendAsync({ type: "GI", data: { icons: oi, source: this.source, tileID: this.tileID, type: "patterns" } }, $e);
13163
+ const Ge = new AbortController();
13164
+ this.inFlightDependencies.push(Ge), vt = Pe.sendAsync({ type: "GI", data: { icons: oi, source: this.source, tileID: this.tileID, type: "patterns" } }, Ge);
13165
13165
  }
13166
13166
  const Ni = Ke.dashDependencies;
13167
13167
  let It = Promise.resolve({});
13168
13168
  if (Object.keys(Ni).length) {
13169
- const $e = new AbortController();
13170
- this.inFlightDependencies.push($e), It = Pe.sendAsync({ type: "GDA", data: { dashes: Ni } }, $e);
13169
+ const Ge = new AbortController();
13170
+ this.inFlightDependencies.push(Ge), It = Pe.sendAsync({ type: "GDA", data: { dashes: Ni } }, Ge);
13171
13171
  }
13172
13172
  const [Jt, Pt, di, Rr] = yield Promise.all([kt, Bi, vt, It]), _i = new _e(Jt), vr = new D.cN(Pt, di);
13173
- for (const $e in tt) {
13174
- const pi = tt[$e];
13173
+ for (const Ge in tt) {
13174
+ const pi = tt[Ge];
13175
13175
  pi instanceof D.af ? (He(pi.layers, this.zoom, ae), D.cO({ bucket: pi, glyphMap: Jt, glyphPositions: _i.positions, imageMap: Pt, imagePositions: vr.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical, subdivisionGranularity: Ke.subdivisionGranularity })) : pi.hasDependencies && (pi instanceof D.cP || pi instanceof D.cQ || pi instanceof D.cR) && (He(pi.layers, this.zoom, ae), pi.addFeatures(Ke, this.tileID.canonical, vr.patternPositions, Rr));
13176
13176
  }
13177
- return this.status = "done", { buckets: Object.values(tt).filter((($e) => !$e.isEmpty())), featureIndex: Ge, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: _i.image, imageAtlas: vr, dashPositions: Rr, glyphMap: this.returnDependencies ? Jt : null, iconMap: this.returnDependencies ? Pt : null, glyphPositions: this.returnDependencies ? _i.positions : null };
13177
+ return this.status = "done", { buckets: Object.values(tt).filter(((Ge) => !Ge.isEmpty())), featureIndex: $e, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: _i.image, imageAtlas: vr, dashPositions: Rr, glyphMap: this.returnDependencies ? Jt : null, iconMap: this.returnDependencies ? Pt : null, glyphPositions: this.returnDependencies ? _i.positions : null };
13178
13178
  }));
13179
13179
  }
13180
13180
  }
@@ -13258,16 +13258,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13258
13258
  let K = D.cS(at);
13259
13259
  return K.byteOffset === 0 && K.byteLength === K.buffer.byteLength || (K = new Uint8Array(K)), { vectorTile: at, rawData: K.buffer };
13260
13260
  }
13261
- function $t(at, K, ie) {
13262
- const { extent: ae } = at, Pe = Math.pow(2, ie.z - K.z), Le = (ie.x - K.x * Pe) * ae, We = (ie.y - K.y * Pe) * ae, Ge = [];
13261
+ function Gt(at, K, ie) {
13262
+ const { extent: ae } = at, Pe = Math.pow(2, ie.z - K.z), Le = (ie.x - K.x * Pe) * ae, We = (ie.y - K.y * Pe) * ae, $e = [];
13263
13263
  for (let tt = 0; tt < at.length; tt++) {
13264
13264
  const Ke = at.feature(tt);
13265
13265
  let ut = Ke.loadGeometry();
13266
13266
  for (const kt of ut) for (const Ct of kt) Ct.x = Ct.x * Pe - Le, Ct.y = Ct.y * Pe - We;
13267
13267
  const je = 128;
13268
- ut = D.cT(ut, Ke.type, -je, -je, ae + je, ae + je), ut.length !== 0 && Ge.push(new dt(Ke.type, ut, Ke.properties, Ke.id, ae));
13268
+ ut = D.cT(ut, Ke.type, -je, -je, ae + je, ae + je), ut.length !== 0 && $e.push(new dt(Ke.type, ut, Ke.properties, Ke.id, ae));
13269
13269
  }
13270
- return new jt(Ge, at.name, ae);
13270
+ return new jt($e, at.name, ae);
13271
13271
  }
13272
13272
  class ye {
13273
13273
  constructor(K, ie, ae) {
@@ -13291,13 +13291,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13291
13291
  const We = new AbortController();
13292
13292
  Le.abort = We;
13293
13293
  try {
13294
- const Ge = yield D.o(K.request, We);
13295
- if (K.etag && K.etag === Ge.etag) return this.tileState.finishLoading(ie), this._getEtagUnmodifiedResult(Ge, Pe);
13296
- const tt = this.loadVectorTile(K, Ge.data);
13294
+ const $e = yield D.o(K.request, We);
13295
+ if (K.etag && K.etag === $e.etag) return this.tileState.finishLoading(ie), this._getEtagUnmodifiedResult($e, Pe);
13296
+ const tt = this.loadVectorTile(K, $e.data);
13297
13297
  if (this.tileState.finishLoading(ie), !tt) return null;
13298
13298
  let { vectorTile: Ke, rawData: ut } = tt;
13299
13299
  ae && ({ vectorTile: Ke, rawData: ut } = this._getOverzoomTile(K, Ke));
13300
- const je = this._getExpiryData(Ge), kt = this._finishRequestTiming(Pe);
13300
+ const je = this._getExpiryData($e), kt = this._finishRequestTiming(Pe);
13301
13301
  Le.vectorTile = Ke, this.tileState.markLoaded(ie, Le);
13302
13302
  const Ct = { rawData: ut, cacheControl: je, resourceTiming: kt };
13303
13303
  this.tileState.setParsing(ie, Ct);
@@ -13306,8 +13306,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13306
13306
  } finally {
13307
13307
  this.tileState.clearParsing(ie);
13308
13308
  }
13309
- } catch (Ge) {
13310
- throw this.tileState.finishLoading(ie), Le.status = "done", this.tileState.markLoaded(ie, Le), Ge;
13309
+ } catch ($e) {
13310
+ throw this.tileState.finishLoading(ie), Le.status = "done", this.tileState.markLoaded(ie, Le), $e;
13311
13311
  }
13312
13312
  }));
13313
13313
  }
@@ -13319,8 +13319,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13319
13319
  return D._(this, void 0, void 0, (function* () {
13320
13320
  let Pe = yield K.parse(K.vectorTile, this.layerIndex, this.availableImages, this.actor, ie.subdivisionGranularity);
13321
13321
  if (ae) {
13322
- const { rawData: Le, cacheControl: We, resourceTiming: Ge } = ae;
13323
- Pe = D.e({ rawTileData: Le.slice(0), encoding: ie.encoding }, Pe, We, Ge);
13322
+ const { rawData: Le, cacheControl: We, resourceTiming: $e } = ae;
13323
+ Pe = D.e({ rawTileData: Le.slice(0), encoding: ie.encoding }, Pe, We, $e);
13324
13324
  }
13325
13325
  return Pe;
13326
13326
  }));
@@ -13339,13 +13339,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13339
13339
  }
13340
13340
  _getOverzoomTile(K, ie) {
13341
13341
  var ae;
13342
- const { tileID: Pe, source: Le, overzoomParameters: We } = K, { maxZoomTileID: Ge } = We, tt = `${Ge.key}_${Pe.key}_${(ae = K.request) === null || ae === void 0 ? void 0 : ae.url}`, Ke = this.overzoomedTileResultCache.get(tt);
13342
+ const { tileID: Pe, source: Le, overzoomParameters: We } = K, { maxZoomTileID: $e } = We, tt = `${$e.key}_${Pe.key}_${(ae = K.request) === null || ae === void 0 ? void 0 : ae.url}`, Ke = this.overzoomedTileResultCache.get(tt);
13343
13343
  if (Ke) return Ke;
13344
13344
  const ut = new Oe(), je = this.layerIndex.familiesBySource[Le];
13345
13345
  for (const Ct in je) {
13346
13346
  const Bi = ie.layers[Ct];
13347
13347
  if (!Bi) continue;
13348
- const oi = $t(Bi, Ge, Pe.canonical);
13348
+ const oi = Gt(Bi, $e, Pe.canonical);
13349
13349
  oi.length > 0 && ut.addLayer(oi);
13350
13350
  }
13351
13351
  const kt = Kt(ut);
@@ -13379,7 +13379,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13379
13379
  }
13380
13380
  loadTile(K) {
13381
13381
  return D._(this, void 0, void 0, (function* () {
13382
- const { uid: ie, encoding: ae, rawImageData: Pe, redFactor: Le, greenFactor: We, blueFactor: Ge, baseShift: tt } = K, Ke = Pe.width + 2, ut = Pe.height + 2, je = D.b(Pe) ? new D.R({ width: Ke, height: ut }, yield D.cY(Pe, -1, -1, Ke, ut)) : Pe, kt = new D.cZ(ie, je, ae, Le, We, Ge, tt);
13382
+ const { uid: ie, encoding: ae, rawImageData: Pe, redFactor: Le, greenFactor: We, blueFactor: $e, baseShift: tt } = K, Ke = Pe.width + 2, ut = Pe.height + 2, je = D.b(Pe) ? new D.R({ width: Ke, height: ut }, yield D.cY(Pe, -1, -1, Ke, ut)) : Pe, kt = new D.cZ(ie, je, ae, Le, We, $e, tt);
13383
13383
  return this.loaded || (this.loaded = {}), this.loaded[ie] = kt, kt;
13384
13384
  }));
13385
13385
  }
@@ -13406,10 +13406,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13406
13406
  if (!Pe) return null;
13407
13407
  const { vectorTile: Le, rawData: We } = Pe;
13408
13408
  ae.vectorTile = Le, this.tileState.markLoaded(ie, ae);
13409
- const Ge = { rawData: We };
13410
- this.tileState.setParsing(ie, Ge);
13409
+ const $e = { rawData: We };
13410
+ this.tileState.setParsing(ie, $e);
13411
13411
  try {
13412
- return yield this._parseWorkerTile(ae, K, Ge);
13412
+ return yield this._parseWorkerTile(ae, K, $e);
13413
13413
  } finally {
13414
13414
  this.tileState.clearParsing(ie);
13415
13415
  }
@@ -13518,18 +13518,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13518
13518
  function Vt({ geojsonVtOptions: at, clusterProperties: K }) {
13519
13519
  if (!K || !at.clusterOptions) return at.clusterOptions;
13520
13520
  const ie = {}, ae = {}, Pe = { accumulated: null, zoom: 0 }, Le = { properties: null }, We = Object.keys(K);
13521
- for (const Ge of We) {
13522
- const [tt, Ke] = K[Ge], ut = D.c$(Ke), je = D.c$(typeof tt == "string" ? [tt, ["accumulated"], ["get", Ge]] : tt);
13523
- ie[Ge] = ut.value, ae[Ge] = je.value;
13521
+ for (const $e of We) {
13522
+ const [tt, Ke] = K[$e], ut = D.c$(Ke), je = D.c$(typeof tt == "string" ? [tt, ["accumulated"], ["get", $e]] : tt);
13523
+ ie[$e] = ut.value, ae[$e] = je.value;
13524
13524
  }
13525
- return at.clusterOptions.map = (Ge) => {
13526
- Le.properties = Ge;
13525
+ return at.clusterOptions.map = ($e) => {
13526
+ Le.properties = $e;
13527
13527
  const tt = {};
13528
13528
  for (const Ke of We) tt[Ke] = ie[Ke].evaluate(Pe, Le);
13529
13529
  return tt;
13530
- }, at.clusterOptions.reduce = (Ge, tt) => {
13530
+ }, at.clusterOptions.reduce = ($e, tt) => {
13531
13531
  Le.properties = tt;
13532
- for (const Ke of We) Pe.accumulated = Ge[Ke], Ge[Ke] = ae[Ke].evaluate(Pe, Le);
13532
+ for (const Ke of We) Pe.accumulated = $e[Ke], $e[Ke] = ae[Ke].evaluate(Pe, Le);
13533
13533
  }, at.clusterOptions;
13534
13534
  }
13535
13535
  class hr {
@@ -13596,7 +13596,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13596
13596
  _getWorkerSource(K, ie, ae) {
13597
13597
  var Pe, Le;
13598
13598
  if ((Pe = this.workerSources)[K] || (Pe[K] = {}), (Le = this.workerSources[K])[ie] || (Le[ie] = {}), !this.workerSources[K][ie][ae]) {
13599
- const We = { sendAsync: (Ge, tt) => (Ge.targetMapId = K, this.actor.sendAsync(Ge, tt)) };
13599
+ const We = { sendAsync: ($e, tt) => ($e.targetMapId = K, this.actor.sendAsync($e, tt)) };
13600
13600
  switch (ie) {
13601
13601
  case "vector":
13602
13602
  this.workerSources[K][ie][ae] = new ye(We, this._getLayerIndex(K), this._getAvailableImages(K));
@@ -13663,7 +13663,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13663
13663
  function Oe() {
13664
13664
  return jt.getCurrentTime();
13665
13665
  }
13666
- var Kt, $t;
13666
+ var Kt, Gt;
13667
13667
  class ye {
13668
13668
  static create(t, n, s) {
13669
13669
  const c = window.document.createElement(t);
@@ -13769,7 +13769,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13769
13769
  A.onerror = A.onload = null, S.signal.aborted || M(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
13770
13770
  }, A.src = R;
13771
13771
  }));
13772
- })($t || ($t = {})), $t.resetRequestQueue();
13772
+ })(Gt || (Gt = {})), Gt.resetRequestQueue();
13773
13773
  class ft {
13774
13774
  constructor(t) {
13775
13775
  this._transformRequestFn = t ?? null;
@@ -14076,10 +14076,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14076
14076
  }
14077
14077
  }
14078
14078
  ie(W, 0, 0, P, M, P, this.f, this.v, this.z), ie(U, q, q, w, S, P, this.f, this.v, this.z);
14079
- const $ = 255 / this.radius, Q = 255 * (1 - this.cutoff);
14079
+ const G = 255 / this.radius, Q = 255 * (1 - this.cutoff);
14080
14080
  for (let X = 0; X < A; X++) {
14081
14081
  const oe = Math.sqrt(W[X]) - Math.sqrt(U[X]);
14082
- R[X] = Math.round(Q - $ * oe);
14082
+ R[X] = Math.round(Q - G * oe);
14083
14083
  }
14084
14084
  return B;
14085
14085
  }
@@ -14095,10 +14095,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14095
14095
  return { x: u.H.number(t.x, n.x, s), y: u.H.number(t.y, n.y, s), z: u.H.number(t.z, n.z, s) };
14096
14096
  }
14097
14097
  }
14098
- let Ge;
14098
+ let $e;
14099
14099
  class tt extends u.E {
14100
14100
  constructor(t) {
14101
- super(), Ge || (Ge = new u.u({ anchor: new u.D(u.x.light.anchor), position: new We(), color: new u.D(u.x.light.color), intensity: new u.D(u.x.light.intensity) })), this._transitionable = new u.y(Ge, void 0), this.setLight(t), this._transitioning = this._transitionable.untransitioned();
14101
+ super(), $e || ($e = new u.u({ anchor: new u.D(u.x.light.anchor), position: new We(), color: new u.D(u.x.light.color), intensity: new u.D(u.x.light.intensity) })), this._transitionable = new u.y($e, void 0), this.setLight(t), this._transitioning = this._transitionable.untransitioned();
14102
14102
  }
14103
14103
  getLight() {
14104
14104
  return this._transitionable.serialize();
@@ -14319,7 +14319,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14319
14319
  U[W] || (U[W] = {});
14320
14320
  const H = U[W];
14321
14321
  R[W] || (R[W] = []);
14322
- for (const $ of ee) H[$.featureIndex] || (H[$.featureIndex] = !0, R[W].push($));
14322
+ for (const G of ee) H[G.featureIndex] || (H[G.featureIndex] = !0, R[W].push(G));
14323
14323
  }
14324
14324
  }
14325
14325
  return R;
@@ -14341,7 +14341,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14341
14341
  return "vector_layers" in c && c.vector_layers && (f.vectorLayerIds = c.vector_layers.map(((y) => y.id))), f;
14342
14342
  }));
14343
14343
  }
14344
- class $e {
14344
+ class Ge {
14345
14345
  constructor(t, n) {
14346
14346
  t && (n ? this.setSouthWest(t).setNorthEast(n) : Array.isArray(t) && (t.length === 4 ? this.setSouthWest([t[0], t[1]]).setNorthEast([t[2], t[3]]) : this.setSouthWest(t[0]).setNorthEast(t[1])));
14347
14347
  }
@@ -14356,7 +14356,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14356
14356
  let c, f;
14357
14357
  if (t instanceof u.W) c = t, f = t;
14358
14358
  else {
14359
- if (!(t instanceof $e)) return Array.isArray(t) ? t.length === 4 || t.every(Array.isArray) ? this.extend($e.convert(t)) : this.extend(u.W.convert(t)) : t && ("lng" in t || "lon" in t) && "lat" in t ? this.extend(u.W.convert(t)) : this;
14359
+ if (!(t instanceof Ge)) return Array.isArray(t) ? t.length === 4 || t.every(Array.isArray) ? this.extend(Ge.convert(t)) : this.extend(u.W.convert(t)) : t && ("lng" in t || "lon" in t) && "lat" in t ? this.extend(u.W.convert(t)) : this;
14360
14360
  if (c = t._sw, f = t._ne, !c || !f) return this;
14361
14361
  }
14362
14362
  return n || s ? (n.lng = Math.min(c.lng, n.lng), n.lat = Math.min(c.lat, n.lat), s.lng = Math.max(f.lng, s.lng), s.lat = Math.max(f.lat, s.lat)) : (this._sw = new u.W(c.lng, c.lat), this._ne = new u.W(f.lng, f.lat)), this;
@@ -14403,27 +14403,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14403
14403
  return this._sw.lng > this._ne.lng && (c = this._sw.lng >= n && n >= this._ne.lng), this._sw.lat <= s && s <= this._ne.lat && c;
14404
14404
  }
14405
14405
  intersects(t) {
14406
- if (!((t = $e.convert(t)).getNorth() >= this.getSouth() && t.getSouth() <= this.getNorth())) return !1;
14406
+ if (!((t = Ge.convert(t)).getNorth() >= this.getSouth() && t.getSouth() <= this.getNorth())) return !1;
14407
14407
  const n = Math.abs(this.getEast() - this.getWest()), s = Math.abs(t.getEast() - t.getWest());
14408
14408
  if (n >= 360 || s >= 360) return !0;
14409
14409
  const c = u.X(this.getWest(), -180, 180), f = u.X(this.getEast(), -180, 180), y = u.X(t.getWest(), -180, 180), x = u.X(t.getEast(), -180, 180), w = c > f, S = y > x;
14410
14410
  return !(!w || !S) || (w ? x >= c || y <= f : S ? f >= y || c <= x : y <= f && x >= c);
14411
14411
  }
14412
14412
  static convert(t) {
14413
- return t instanceof $e ? t : t && new $e(t);
14413
+ return t instanceof Ge ? t : t && new Ge(t);
14414
14414
  }
14415
14415
  static fromLngLat(t, n = 0) {
14416
14416
  const s = 360 * n / 40075017, c = s / Math.cos(Math.PI / 180 * t.lat);
14417
- return new $e(new u.W(t.lng - c, t.lat - s), new u.W(t.lng + c, t.lat + s));
14417
+ return new Ge(new u.W(t.lng - c, t.lat - s), new u.W(t.lng + c, t.lat + s));
14418
14418
  }
14419
14419
  adjustAntiMeridian() {
14420
14420
  const t = new u.W(this._sw.lng, this._sw.lat), n = new u.W(this._ne.lng, this._ne.lat);
14421
- return new $e(t, t.lng > n.lng ? new u.W(n.lng + 360, n.lat) : n);
14421
+ return new Ge(t, t.lng > n.lng ? new u.W(n.lng + 360, n.lat) : n);
14422
14422
  }
14423
14423
  }
14424
14424
  class pi {
14425
14425
  constructor(t, n, s) {
14426
- this.bounds = $e.convert(this.validateBounds(t)), this.minzoom = n || 0, this.maxzoom = s || 24;
14426
+ this.bounds = Ge.convert(this.validateBounds(t)), this.minzoom = n || 0, this.maxzoom = s || 24;
14427
14427
  }
14428
14428
  validateBounds(t) {
14429
14429
  return Array.isArray(t) && t.length === 4 ? [Math.max(-180, t[0]), Math.max(-90, t[1]), Math.min(180, t[2]), Math.min(90, t[3])] : [-180, -90, 180, 90];
@@ -14576,7 +14576,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14576
14576
  const n = t.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
14577
14577
  t.abortController = new AbortController();
14578
14578
  try {
14579
- const s = yield $t.getImage(yield this.map._requestManager.transformRequest(n, "Tile"), t.abortController, this.map._refreshExpiredTiles);
14579
+ const s = yield Gt.getImage(yield this.map._requestManager.transformRequest(n, "Tile"), t.abortController, this.map._refreshExpiredTiles);
14580
14580
  if (delete t.abortController, t.aborted) return void (t.state = "unloaded");
14581
14581
  if (s?.data) {
14582
14582
  this.map._refreshExpiredTiles && (s.cacheControl || s.expires) && t.setExpiryData({ cacheControl: s.cacheControl, expires: s.expires });
@@ -14612,7 +14612,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14612
14612
  const n = t.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), s = yield this.map._requestManager.transformRequest(n, "Tile");
14613
14613
  t.neighboringTiles = this._getNeighboringTiles(t.tileID), t.abortController = new AbortController();
14614
14614
  try {
14615
- const c = yield $t.getImage(s, t.abortController, this.map._refreshExpiredTiles);
14615
+ const c = yield Gt.getImage(s, t.abortController, this.map._refreshExpiredTiles);
14616
14616
  if (delete t.abortController, t.aborted) return void (t.state = "unloaded");
14617
14617
  if (c?.data) {
14618
14618
  const f = c.data;
@@ -14672,8 +14672,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14672
14672
  function xr(d) {
14673
14673
  return d.type === "GeometryCollection" ? d.geometries.flatMap(((t) => xr(t))) : an(d.coordinates);
14674
14674
  }
14675
- function Gr(d) {
14676
- const t = new $e();
14675
+ function $r(d) {
14676
+ const t = new Ge();
14677
14677
  let n;
14678
14678
  switch (d.type) {
14679
14679
  case "FeatureCollection":
@@ -14749,7 +14749,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14749
14749
  }
14750
14750
  getBounds() {
14751
14751
  return u._(this, void 0, void 0, (function* () {
14752
- return Gr(yield this.getData());
14752
+ return $r(yield this.getData());
14753
14753
  }));
14754
14754
  }
14755
14755
  setClusterOptions(t) {
@@ -14859,14 +14859,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14859
14859
  return t.removeAll || this._options.cluster ? void 0 : s;
14860
14860
  }
14861
14861
  _getShouldReloadTileOptions(t) {
14862
- if (t) return { affectedBounds: t.filter(Boolean).map(((n) => Gr(n))) };
14862
+ if (t) return { affectedBounds: t.filter(Boolean).map(((n) => $r(n))) };
14863
14863
  }
14864
14864
  shouldReloadTile(t, { affectedBounds: n }) {
14865
14865
  if (t.state === "loading") return !0;
14866
14866
  if (t.state === "unloaded") return !1;
14867
14867
  const { buffer: s, extent: c } = this.workerOptions.geojsonVtOptions, f = (function({ x: y, y: x, z: w }, S = 0) {
14868
14868
  const P = u.a4((y - S) / Math.pow(2, w)), M = u.a5((x + 1 + S) / Math.pow(2, w)), A = u.a4((y + 1 + S) / Math.pow(2, w)), R = u.a5((x - S) / Math.pow(2, w));
14869
- return new $e([P, M], [A, R]);
14869
+ return new Ge([P, M], [A, R]);
14870
14870
  })(t.tileID.canonical, s / c);
14871
14871
  for (const y of n) if (f.intersects(y)) return !0;
14872
14872
  return !1;
@@ -14904,7 +14904,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14904
14904
  return !1;
14905
14905
  }
14906
14906
  }
14907
- class $r extends u.E {
14907
+ class Gr extends u.E {
14908
14908
  constructor(t, n, s, c) {
14909
14909
  super(), this.flippedWindingOrder = !1, this.id = t, this.dispatcher = s, this.coordinates = n.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(c), this.options = n;
14910
14910
  }
@@ -14912,7 +14912,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14912
14912
  return u._(this, void 0, void 0, (function* () {
14913
14913
  this._loaded = !1, this.fire(new u.n("dataloading", { dataType: "source" })), this.url = this.options.url, this._request = new AbortController();
14914
14914
  try {
14915
- const n = yield $t.getImage(yield this.map._requestManager.transformRequest(this.url, "Image"), this._request);
14915
+ const n = yield Gt.getImage(yield this.map._requestManager.transformRequest(this.url, "Image"), this._request);
14916
14916
  this._request = null, this._loaded = !0, n?.data && (this.image = n.data, t && (this.coordinates = t), this._finishLoading());
14917
14917
  } catch (n) {
14918
14918
  this._request = null, this._loaded = !0, u.$(n) || this.fire(new u.l(u.d(n)));
@@ -14975,7 +14975,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14975
14975
  return y;
14976
14976
  }
14977
14977
  }
14978
- class on extends $r {
14978
+ class on extends Gr {
14979
14979
  constructor(t, n, s, c) {
14980
14980
  super(t, n, s, c), this._onPlayingHandler = () => {
14981
14981
  var f;
@@ -15036,7 +15036,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15036
15036
  return this.video && !this.video.paused;
15037
15037
  }
15038
15038
  }
15039
- class ra extends $r {
15039
+ class ra extends Gr {
15040
15040
  constructor(t, n, s, c) {
15041
15041
  super(t, n, s, c), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some(((f) => !Array.isArray(f) || f.length !== 2 || f.some(((y) => typeof y != "number")))) || this.fire(new u.l(new u.ac(`sources.${t}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new u.l(new u.ac(`sources.${t}`, null, 'missing required property "coordinates"'))), n.animate && typeof n.animate != "boolean" && this.fire(new u.l(new u.ac(`sources.${t}`, null, 'optional "animate" property must be a boolean value'))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof HTMLCanvasElement || this.fire(new u.l(new u.ac(`sources.${t}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new u.l(new u.ac(`sources.${t}`, null, 'missing required property "canvas"'))), this.options = n, this.animate = n.animate === void 0 || n.animate;
15042
15042
  }
@@ -15086,7 +15086,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15086
15086
  case "geojson":
15087
15087
  return ia;
15088
15088
  case "image":
15089
- return $r;
15089
+ return Gr;
15090
15090
  case "raster":
15091
15091
  return si;
15092
15092
  case "raster-dem":
@@ -15099,7 +15099,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15099
15099
  return ra;
15100
15100
  }
15101
15101
  return yn[d];
15102
- }, Gi = "RTLPluginLoaded";
15102
+ }, $i = "RTLPluginLoaded";
15103
15103
  class za extends u.E {
15104
15104
  constructor() {
15105
15105
  super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = Jt();
@@ -15127,7 +15127,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15127
15127
  }
15128
15128
  _requestImport() {
15129
15129
  return u._(this, void 0, void 0, (function* () {
15130
- yield this._syncState("loading"), this.status = "loaded", this.fire(new u.n(Gi));
15130
+ yield this._syncState("loading"), this.status = "loaded", this.fire(new u.n($i));
15131
15131
  }));
15132
15132
  }
15133
15133
  lazyLoad() {
@@ -15419,12 +15419,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15419
15419
  function dr(d, t) {
15420
15420
  const n = d.getCameraFrustum(), s = d.getClippingPlane(), c = d.screenPointToMercatorCoordinate(d.getCameraPoint()), f = u.a7.fromLngLat(d.center, d.elevation);
15421
15421
  c.z = f.z + Math.cos(d.pitchInRadians) * d.cameraToCenterDistance / d.worldSize;
15422
- const y = d.getCoveringTilesDetailsProvider(), x = y.allowVariableZoom(d, t), w = mt(d, t), S = t.minzoom || 0, P = t.maxzoom !== void 0 ? t.maxzoom : d.maxZoom, M = Math.min(Math.max(0, w), P), A = Math.pow(2, M), R = [A * c.x, A * c.y, 0], B = [A * f.x, A * f.y, 0], j = Math.hypot(f.x - c.x, f.y - c.y), q = Math.abs(f.z - c.z), U = Math.hypot(j, q), W = ($) => ({ zoom: 0, x: 0, y: 0, wrap: $, fullyVisible: !1 }), ee = [], H = [];
15423
- if (d.renderWorldCopies && y.allowWorldCopies()) for (let $ = 1; $ <= 3; $++) ee.push(W(-$)), ee.push(W($));
15422
+ const y = d.getCoveringTilesDetailsProvider(), x = y.allowVariableZoom(d, t), w = mt(d, t), S = t.minzoom || 0, P = t.maxzoom !== void 0 ? t.maxzoom : d.maxZoom, M = Math.min(Math.max(0, w), P), A = Math.pow(2, M), R = [A * c.x, A * c.y, 0], B = [A * f.x, A * f.y, 0], j = Math.hypot(f.x - c.x, f.y - c.y), q = Math.abs(f.z - c.z), U = Math.hypot(j, q), W = (G) => ({ zoom: 0, x: 0, y: 0, wrap: G, fullyVisible: !1 }), ee = [], H = [];
15423
+ if (d.renderWorldCopies && y.allowWorldCopies()) for (let G = 1; G <= 3; G++) ee.push(W(-G)), ee.push(W(G));
15424
15424
  for (ee.push(W(0)); ee.length > 0; ) {
15425
- const $ = ee.pop(), Q = $.x, X = $.y;
15426
- let oe = $.fullyVisible;
15427
- const de = { x: Q, y: X, z: $.zoom }, pe = y.getTileBoundingVolume(de, $.wrap, d.elevation, t);
15425
+ const G = ee.pop(), Q = G.x, X = G.y;
15426
+ let oe = G.fullyVisible;
15427
+ const de = { x: Q, y: X, z: G.zoom }, pe = y.getTileBoundingVolume(de, G.wrap, d.elevation, t);
15428
15428
  if (!oe) {
15429
15429
  const Ce = ge(n, pe, s);
15430
15430
  if (Ce === 0) continue;
@@ -15434,13 +15434,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15434
15434
  let be = w;
15435
15435
  x && (be = (t.calculateTileZoom || xt)(d.zoom + u.ar(d.tileSize / t.tileSize), we, q, U, d.fov)), be = (t.roundZoom ? Math.round : Math.floor)(be), be = Math.max(0, be);
15436
15436
  const Be = Math.min(be, P);
15437
- if ($.wrap = y.getWrap(f, de, $.wrap), $.zoom >= Be) {
15438
- if ($.zoom < S) continue;
15439
- const Ce = M - $.zoom, ve = R[0] - 0.5 - (Q << Ce), Re = R[1] - 0.5 - (X << Ce), Ue = t.reparseOverscaled ? Math.max($.zoom, be) : $.zoom;
15440
- H.push({ tileID: new u.a3($.zoom === P ? Ue : $.zoom, $.wrap, $.zoom, Q, X), distanceSq: u.as([B[0] - 0.5 - Q, B[1] - 0.5 - X]), tileDistanceToCamera: Math.sqrt(ve * ve + Re * Re) });
15441
- } else for (let Ce = 0; Ce < 4; Ce++) ee.push({ zoom: $.zoom + 1, x: (Q << 1) + Ce % 2, y: (X << 1) + (Ce >> 1), wrap: $.wrap, fullyVisible: oe });
15437
+ if (G.wrap = y.getWrap(f, de, G.wrap), G.zoom >= Be) {
15438
+ if (G.zoom < S) continue;
15439
+ const Ce = M - G.zoom, ve = R[0] - 0.5 - (Q << Ce), Re = R[1] - 0.5 - (X << Ce), Ue = t.reparseOverscaled ? Math.max(G.zoom, be) : G.zoom;
15440
+ H.push({ tileID: new u.a3(G.zoom === P ? Ue : G.zoom, G.wrap, G.zoom, Q, X), distanceSq: u.as([B[0] - 0.5 - Q, B[1] - 0.5 - X]), tileDistanceToCamera: Math.sqrt(ve * ve + Re * Re) });
15441
+ } else for (let Ce = 0; Ce < 4; Ce++) ee.push({ zoom: G.zoom + 1, x: (Q << 1) + Ce % 2, y: (X << 1) + (Ce >> 1), wrap: G.wrap, fullyVisible: oe });
15442
15442
  }
15443
- return H.sort((($, Q) => $.distanceSq - Q.distanceSq)).map((($) => $.tileID));
15443
+ return H.sort(((G, Q) => G.distanceSq - Q.distanceSq)).map(((G) => G.tileID));
15444
15444
  }
15445
15445
  const is = u.a8.fromPoints([new u.P(0, 0), new u.P(u.a6, u.a6)]);
15446
15446
  function mo(d) {
@@ -15798,8 +15798,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15798
15798
  for (const W of j) {
15799
15799
  const ee = A.map(((H) => W.getTilePoint(new u.a7(H.x, H.y))));
15800
15800
  if (ee.expandBy(U), ee.intersects(is)) {
15801
- const H = S.map(((Q) => W.getTilePoint(Q))), $ = P.map(((Q) => W.getTilePoint(Q)));
15802
- c.push({ tile: B, tileID: y ? W : W.unwrapTo(0), queryGeometry: H, cameraQueryGeometry: $, scale: q });
15801
+ const H = S.map(((Q) => W.getTilePoint(Q))), G = P.map(((Q) => W.getTilePoint(Q)));
15802
+ c.push({ tile: B, tileID: y ? W : W.unwrapTo(0), queryGeometry: H, cameraQueryGeometry: G, scale: q });
15803
15803
  }
15804
15804
  }
15805
15805
  }
@@ -15940,8 +15940,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15940
15940
  S.circle[q] = !0;
15941
15941
  const U = 3 * q, W = this.circleKeys[q];
15942
15942
  if (this._circleAndRectCollide(j[U], j[U + 1], j[U + 2], t, n, s, c) && (!w || w(W)) && (!P || !Xr(M, W.overlapMode))) {
15943
- const ee = j[U], H = j[U + 1], $ = j[U + 2];
15944
- if (y.push({ key: W, x1: ee - $, y1: H - $, x2: ee + $, y2: H + $ }), P) return !0;
15943
+ const ee = j[U], H = j[U + 1], G = j[U + 2];
15944
+ if (y.push({ key: W, x1: ee - G, y1: H - G, x2: ee + G, y2: H + G }), P) return !0;
15945
15945
  }
15946
15946
  }
15947
15947
  }
@@ -16045,8 +16045,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16045
16045
  q.clear();
16046
16046
  const U = d.lineVertexArray, W = n ? d.text.placedSymbolArray : d.icon.placedSymbolArray, ee = t.transform.width / t.transform.height;
16047
16047
  let H = !1;
16048
- for (let $ = 0; $ < W.length; $++) {
16049
- const Q = W.get($);
16048
+ for (let G = 0; G < W.length; G++) {
16049
+ const Q = W.get(G);
16050
16050
  if (Q.hidden || Q.writingMode === u.ax.vertical && !H) {
16051
16051
  Ft(Q.numGlyphs, q);
16052
16052
  continue;
@@ -16079,19 +16079,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16079
16079
  if (!W) return { notEnoughRoom: !0 };
16080
16080
  const ee = lt(W.first.point.x, W.first.point.y, t, n), H = lt(W.last.point.x, W.last.point.y, t, n);
16081
16081
  if (y && !f) {
16082
- const $ = Ve(s.writingMode, ee, H, S);
16083
- if ($) return $;
16082
+ const G = Ve(s.writingMode, ee, H, S);
16083
+ if (G) return G;
16084
16084
  }
16085
16085
  B = [W.first];
16086
- for (let $ = s.glyphStartIndex + 1; $ < j - 1; $++) {
16087
- const Q = ti(M * x.getoffsetX($), A, R, f, s.segment, q, U, t, P);
16086
+ for (let G = s.glyphStartIndex + 1; G < j - 1; G++) {
16087
+ const Q = ti(M * x.getoffsetX(G), A, R, f, s.segment, q, U, t, P);
16088
16088
  if (!Q) return { notEnoughRoom: !0 };
16089
16089
  B.push(Q);
16090
16090
  }
16091
16091
  B.push(W.last);
16092
16092
  } else {
16093
16093
  if (y && !f) {
16094
- const q = Ze(t.tileAnchorPoint.x, t.tileAnchorPoint.y, t).point, U = s.lineStartIndex + s.segment + 1, W = new u.P(t.lineVertexArray.getx(U), t.lineVertexArray.gety(U)), ee = Ze(W.x, W.y, t), H = ee.signedDistanceFromCamera > 0 ? ee.point : xe(t.tileAnchorPoint, W, q, 1, t), $ = lt(q.x, q.y, t, n), Q = lt(H.x, H.y, t, n), X = Ve(s.writingMode, $, Q, S);
16094
+ const q = Ze(t.tileAnchorPoint.x, t.tileAnchorPoint.y, t).point, U = s.lineStartIndex + s.segment + 1, W = new u.P(t.lineVertexArray.getx(U), t.lineVertexArray.gety(U)), ee = Ze(W.x, W.y, t), H = ee.signedDistanceFromCamera > 0 ? ee.point : xe(t.tileAnchorPoint, W, q, 1, t), G = lt(q.x, q.y, t, n), Q = lt(H.x, H.y, t, n), X = Ve(s.writingMode, G, Q, S);
16095
16095
  if (X) return X;
16096
16096
  }
16097
16097
  const j = ti(M * x.getoffsetX(s.glyphStartIndex), A, R, f, s.segment, s.lineStartIndex, s.lineStartIndex + s.lineLength, t, P);
@@ -16145,22 +16145,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16145
16145
  let A, R = P > 0 ? f + c : f + c + 1;
16146
16146
  x.projectionCache.cachedAnchorPoint ? A = x.projectionCache.cachedAnchorPoint : (A = Ze(x.tileAnchorPoint.x, x.tileAnchorPoint.y, x).point, x.projectionCache.cachedAnchorPoint = A);
16147
16147
  let B, j, q = A, U = A, W = 0, ee = 0;
16148
- const H = Math.abs(S), $ = [];
16148
+ const H = Math.abs(S), G = [];
16149
16149
  let Q;
16150
16150
  for (; W + ee <= H; ) {
16151
16151
  if (R += P, R < f || R >= y) return null;
16152
16152
  W += ee, U = q, j = B;
16153
16153
  const de = { absOffsetX: H, direction: P, distanceFromAnchor: W, previousVertex: U };
16154
- if (q = De(R, x, de), n === 0) $.push(U), Q = q.sub(U);
16154
+ if (q = De(R, x, de), n === 0) G.push(U), Q = q.sub(U);
16155
16155
  else {
16156
16156
  let pe;
16157
16157
  const we = q.sub(U);
16158
- pe = we.mag() === 0 ? Mi(De(R + P, x, de).sub(q), n, P) : Mi(we, n, P), j || (j = U.add(pe)), B = Ai(R, pe, q, f, y, j, n, x, de), $.push(j), Q = B.sub(j);
16158
+ pe = we.mag() === 0 ? Mi(De(R + P, x, de).sub(q), n, P) : Mi(we, n, P), j || (j = U.add(pe)), B = Ai(R, pe, q, f, y, j, n, x, de), G.push(j), Q = B.sub(j);
16159
16159
  }
16160
16160
  ee = Q.mag();
16161
16161
  }
16162
16162
  const X = Q._mult((H - W) / ee)._add(j || U), oe = M + Math.atan2(q.y - U.y, q.x - U.x);
16163
- return $.push(X), { point: X, angle: w ? oe : 0, path: $ };
16163
+ return G.push(X), { point: X, angle: w ? oe : 0, path: G };
16164
16164
  }
16165
16165
  const La = new Float32Array([-1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0]);
16166
16166
  function Ft(d, t) {
@@ -16187,12 +16187,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16187
16187
  j = { allPointsOccluded: !1, box: [Q + t.x1 * B, X + t.y1 * B, Q + t.x2 * B, X + t.y2 * B] };
16188
16188
  }
16189
16189
  const [q, U, W, ee] = j.box, H = y ? j.allPointsOccluded : R.isOccluded;
16190
- let $ = H;
16191
- return $ || ($ = R.perspectiveRatio < this.perspectiveRatioCutoff), $ || ($ = !this.isInsideGrid(q, U, W, ee)), $ || n !== "always" && this.grid.hitTest(q, U, W, ee, n, S) ? { box: [q, U, W, ee], placeable: !1, offscreen: !1, occluded: H } : { box: [q, U, W, ee], placeable: !0, offscreen: this.isOffscreen(q, U, W, ee), occluded: H };
16190
+ let G = H;
16191
+ return G || (G = R.perspectiveRatio < this.perspectiveRatioCutoff), G || (G = !this.isInsideGrid(q, U, W, ee)), G || n !== "always" && this.grid.hitTest(q, U, W, ee, n, S) ? { box: [q, U, W, ee], placeable: !1, offscreen: !1, occluded: H } : { box: [q, U, W, ee], placeable: !0, offscreen: this.isOffscreen(q, U, W, ee), occluded: H };
16192
16192
  }
16193
16193
  placeCollisionCircles(t, n, s, c, f, y, x, w, S, P, M, A, R, B) {
16194
16194
  const j = [], q = new u.P(n.anchorX, n.anchorY), U = this.getPerspectiveRatio(q.x, q.y, y, B), W = (S ? f * this.transform.getPitchedTextCorrection(n.anchorX, n.anchorY, y) / U : f * U) / u.aJ, ee = { getElevation: B, pitchedLabelPlaneMatrix: x, lineVertexArray: s, pitchWithMap: S, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, transform: this.transform, tileAnchorPoint: q, unwrappedTileID: y, width: this.transform.width, height: this.transform.height, translation: R }, H = wr(W, c, n.lineOffsetX * W, n.lineOffsetY * W, !1, n, !1, ee);
16195
- let $ = !1, Q = !1, X = !0;
16195
+ let G = !1, Q = !1, X = !0;
16196
16196
  if (H) {
16197
16197
  const oe = 0.5 * M * U + A, de = new u.P(-100, -100), pe = new u.P(this.screenRightBoundary, this.screenBottomBoundary), we = new ka(), be = H.first, Be = H.last;
16198
16198
  let Ce = [];
@@ -16217,11 +16217,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16217
16217
  const Mt = hi / Math.max(St - 1, 1), mi = we.lerp(Mt), xi = mi.x + Ot, Zi = mi.y + Ot;
16218
16218
  j.push(xi, Zi, oe, 0);
16219
16219
  const ii = xi - oe, nr = Zi - oe, ji = xi + oe, Di = Zi + oe;
16220
- if (X && (X = this.isOffscreen(ii, nr, ji, Di)), Q || (Q = this.isInsideGrid(ii, nr, ji, Di)), t !== "always" && this.grid.hitTestCircle(xi, Zi, oe, t, P) && ($ = !0, !w)) return { circles: [], offscreen: !1, collisionDetected: $ };
16220
+ if (X && (X = this.isOffscreen(ii, nr, ji, Di)), Q || (Q = this.isInsideGrid(ii, nr, ji, Di)), t !== "always" && this.grid.hitTestCircle(xi, Zi, oe, t, P) && (G = !0, !w)) return { circles: [], offscreen: !1, collisionDetected: G };
16221
16221
  }
16222
16222
  }
16223
16223
  }
16224
- return { circles: !w && $ || !Q || U < this.perspectiveRatioCutoff ? [] : j, offscreen: X, collisionDetected: $ };
16224
+ return { circles: !w && G || !Q || U < this.perspectiveRatioCutoff ? [] : j, offscreen: X, collisionDetected: G };
16225
16225
  }
16226
16226
  projectPathToScreenSpace(t, n) {
16227
16227
  const s = (function(c, f) {
@@ -16301,7 +16301,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16301
16301
  }
16302
16302
  let W = w.x, ee = w.y, H = n;
16303
16303
  f && (W = q, ee = U, H = Math.pow(2, -(this.transform.zoom - s.overscaledZ)), H *= this.transform.getPitchedTextCorrection(q, U, c), P || (H *= u.al(0.5 + w.signedDistanceFromCamera / this.transform.cameraToCenterDistance * 0.5, 0, 4))), P && (W += A * P.x * H + B * P.y * H, ee += R * P.x * H + j * P.y * H);
16304
- const $ = t.x1 * H, Q = t.x2 * H, X = ($ + Q) / 2, oe = t.y1 * H, de = t.y2 * H, pe = (oe + de) / 2, we = [{ offsetX: $, offsetY: oe }, { offsetX: X, offsetY: oe }, { offsetX: Q, offsetY: oe }, { offsetX: Q, offsetY: pe }, { offsetX: Q, offsetY: de }, { offsetX: X, offsetY: de }, { offsetX: $, offsetY: de }, { offsetX: $, offsetY: pe }];
16304
+ const G = t.x1 * H, Q = t.x2 * H, X = (G + Q) / 2, oe = t.y1 * H, de = t.y2 * H, pe = (oe + de) / 2, we = [{ offsetX: G, offsetY: oe }, { offsetX: X, offsetY: oe }, { offsetX: Q, offsetY: oe }, { offsetX: Q, offsetY: pe }, { offsetX: Q, offsetY: de }, { offsetX: X, offsetY: de }, { offsetX: G, offsetY: de }, { offsetX: G, offsetY: pe }];
16305
16305
  let be = [];
16306
16306
  for (const { offsetX: Ce, offsetY: ve } of we) be.push(new u.P(W + A * Ce + B * ve, ee + R * Ce + j * ve));
16307
16307
  let Be = !1;
@@ -16370,22 +16370,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16370
16370
  this.retainedQueryData[f.bucketInstanceId] = new Hc(f.bucketInstanceId, y, f.sourceLayerIndex, f.index, s.tileID);
16371
16371
  const W = { bucket: f, layout: w, translationText: j, translationIcon: q, unwrappedTileID: A, pitchedLabelPlaneMatrix: U, scale: P, textPixelRatio: M, holdingForFade: s.holdingForSymbolFade(), collisionBoxArray: x, partiallyEvaluatedTextSize: u.aw(f.textSizeData, this.transform.zoom), collisionGroup: this.collisionGroups.get(f.sourceID) };
16372
16372
  if (c) for (const ee of f.sortKeyRanges) {
16373
- const { sortKey: H, symbolInstanceStart: $, symbolInstanceEnd: Q } = ee;
16374
- t.push({ sortKey: H, symbolInstanceStart: $, symbolInstanceEnd: Q, parameters: W });
16373
+ const { sortKey: H, symbolInstanceStart: G, symbolInstanceEnd: Q } = ee;
16374
+ t.push({ sortKey: H, symbolInstanceStart: G, symbolInstanceEnd: Q, parameters: W });
16375
16375
  }
16376
16376
  else t.push({ symbolInstanceStart: 0, symbolInstanceEnd: f.symbolInstances.length, parameters: W });
16377
16377
  }
16378
16378
  attemptAnchorPlacement(t, n, s, c, f, y, x, w, S, P, M, A, R, B, j, q, U, W, ee, H) {
16379
- var $, Q, X;
16379
+ var G, Q, X;
16380
16380
  const oe = u.aM[t.textAnchor], de = [t.textOffset0, t.textOffset1], pe = ns(oe, s, c, de, f), we = this.collisionIndex.placeCollisionBox(n, A, w, S, P, x, y, q, M.predicate, ee, pe, H);
16381
16381
  if ((!W || this.collisionIndex.placeCollisionBox(W, A, w, S, P, x, y, U, M.predicate, ee, pe, H).placeable) && we.placeable) {
16382
16382
  let be;
16383
- if (!(($ = this.prevPlacement) === null || $ === void 0) && $.variableOffsets[R.crossTileID] && (!((X = (Q = this.prevPlacement) === null || Q === void 0 ? void 0 : Q.placements[R.crossTileID]) === null || X === void 0) && X.text) && (be = this.prevPlacement.variableOffsets[R.crossTileID].anchor), R.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
16383
+ if (!((G = this.prevPlacement) === null || G === void 0) && G.variableOffsets[R.crossTileID] && (!((X = (Q = this.prevPlacement) === null || Q === void 0 ? void 0 : Q.placements[R.crossTileID]) === null || X === void 0) && X.text) && (be = this.prevPlacement.variableOffsets[R.crossTileID].anchor), R.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
16384
16384
  return this.variableOffsets[R.crossTileID] = { textOffset: de, width: s, height: c, anchor: oe, textBoxScale: f, prevAnchor: be }, this.markUsedJustification(B, oe, R, j), B.allowVerticalPlacement && (this.markUsedOrientation(B, j, R), this.placedOrientations[R.crossTileID] = j), { shift: pe, placedGlyphBoxes: we };
16385
16385
  }
16386
16386
  }
16387
16387
  placeLayerBucketPart(t, n, s) {
16388
- const { bucket: c, layout: f, translationText: y, translationIcon: x, unwrappedTileID: w, pitchedLabelPlaneMatrix: S, textPixelRatio: P, holdingForFade: M, collisionBoxArray: A, partiallyEvaluatedTextSize: R, collisionGroup: B } = t.parameters, j = f.get("text-optional"), q = f.get("icon-optional"), U = u.aN(f, "text-overlap", "text-allow-overlap"), W = U === "always", ee = u.aN(f, "icon-overlap", "icon-allow-overlap"), H = ee === "always", $ = f.get("text-rotation-alignment") === "map", Q = f.get("text-pitch-alignment") === "map", X = f.get("icon-text-fit") !== "none", oe = f.get("symbol-z-order") === "viewport-y", de = W && (H || !c.hasIconData() || q), pe = H && (W || !c.hasTextData() || j);
16388
+ const { bucket: c, layout: f, translationText: y, translationIcon: x, unwrappedTileID: w, pitchedLabelPlaneMatrix: S, textPixelRatio: P, holdingForFade: M, collisionBoxArray: A, partiallyEvaluatedTextSize: R, collisionGroup: B } = t.parameters, j = f.get("text-optional"), q = f.get("icon-optional"), U = u.aN(f, "text-overlap", "text-allow-overlap"), W = U === "always", ee = u.aN(f, "icon-overlap", "icon-allow-overlap"), H = ee === "always", G = f.get("text-rotation-alignment") === "map", Q = f.get("text-pitch-alignment") === "map", X = f.get("icon-text-fit") !== "none", oe = f.get("symbol-z-order") === "viewport-y", de = W && (H || !c.hasIconData() || q), pe = H && (W || !c.hasTextData() || j);
16389
16389
  !c.collisionArrays && A && c.deserializeCollisionBoxes(A);
16390
16390
  const we = this.retainedQueryData[c.bucketInstanceId].tileID, be = this._getTerrainElevationFunc(we), Be = this.transform.getFastPathSimpleProjectionMatrix(we), Ce = (ve, Re, Ue) => {
16391
16391
  var St, hi;
@@ -16409,7 +16409,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16409
16409
  }, Er = ve.textAnchorOffsetStartIndex, Br = ve.textAnchorOffsetEndIndex;
16410
16410
  if (Br === Er) {
16411
16411
  const Ht = (Bt, bi) => {
16412
- const Xt = this.collisionIndex.placeCollisionBox(Bt, U, P, we, w, Q, $, y, B.predicate, be, void 0, Be);
16412
+ const Xt = this.collisionIndex.placeCollisionBox(Bt, U, P, we, w, Q, G, y, B.predicate, be, void 0, Be);
16413
16413
  return Xt?.placeable && (this.markUsedOrientation(c, bi, ve), this.placedOrientations[ve.crossTileID] = bi), Xt;
16414
16414
  };
16415
16415
  fn((() => Ht(Wi, u.ax.horizontal)), (() => {
@@ -16419,19 +16419,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16419
16419
  } else {
16420
16420
  let Ht = u.aM[(hi = (St = this.prevPlacement) === null || St === void 0 ? void 0 : St.variableOffsets[ve.crossTileID]) === null || hi === void 0 ? void 0 : hi.anchor];
16421
16421
  const Bt = (Xt, Ia, Us) => {
16422
- const Mn = Xt.x2 - Xt.x1, mc = Xt.y2 - Xt.y1, $u = ve.textBoxScale, gc = X && ee === "never" ? Ia : null;
16422
+ const Mn = Xt.x2 - Xt.x1, mc = Xt.y2 - Xt.y1, Gu = ve.textBoxScale, gc = X && ee === "never" ? Ia : null;
16423
16423
  let Xn = null, Yn = U === "never" ? 1 : 2, Kn = "never";
16424
16424
  Ht && Yn++;
16425
16425
  for (let _c = 0; _c < Yn; _c++) {
16426
16426
  for (let yc = Er; yc < Br; yc++) {
16427
- const Gs = c.textAnchorOffsets.get(yc);
16428
- if (Ht && Gs.textAnchor !== Ht) continue;
16429
- const $s = this.attemptAnchorPlacement(Gs, Xt, Mn, mc, $u, $, Q, P, we, w, B, Kn, ve, c, Us, y, x, gc, be);
16430
- if ($s && (Xn = $s.placedGlyphBoxes, Xn?.placeable)) return Mt = !0, Zi = $s.shift, Xn;
16427
+ const $s = c.textAnchorOffsets.get(yc);
16428
+ if (Ht && $s.textAnchor !== Ht) continue;
16429
+ const Gs = this.attemptAnchorPlacement($s, Xt, Mn, mc, Gu, G, Q, P, we, w, B, Kn, ve, c, Us, y, x, gc, be);
16430
+ if (Gs && (Xn = Gs.placedGlyphBoxes, Xn?.placeable)) return Mt = !0, Zi = Gs.shift, Xn;
16431
16431
  }
16432
16432
  Ht ? Ht = null : Kn = U;
16433
16433
  }
16434
- return s && !Xn && (Xn = { box: this.collisionIndex.placeCollisionBox(Wi, "always", P, we, w, Q, $, y, B.predicate, be, void 0, Be).box, offscreen: !1, placeable: !1, occluded: !1 }), Xn;
16434
+ return s && !Xn && (Xn = { box: this.collisionIndex.placeCollisionBox(Wi, "always", P, we, w, Q, G, y, B.predicate, be, void 0, Be).box, offscreen: !1, placeable: !1, occluded: !1 }), Xn;
16435
16435
  };
16436
16436
  fn((() => Bt(Wi, Re.iconBox, u.ax.horizontal)), (() => {
16437
16437
  const Xt = Re.verticalTextBox;
@@ -16449,7 +16449,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16449
16449
  Di = this.collisionIndex.placeCollisionCircles(U, pn, c.lineVertexArray, c.glyphOffsetArray, fn, w, S, s, Q, B.predicate, ve.collisionCircleDiameter, Er, y, be), Di.circles.length && Di.collisionDetected && !s && u.w("Collisions detected, but collision boxes are not shown"), Mt = W || Di.circles.length > 0 && !Di.collisionDetected, xi && (xi = Di.offscreen);
16450
16450
  }
16451
16451
  if (Re.iconFeatureIndex && (Wn = Re.iconFeatureIndex), Re.iconBox) {
16452
- const pn = (fn) => this.collisionIndex.placeCollisionBox(fn, ee, P, we, w, Q, $, x, B.predicate, be, X && Zi ? Zi : void 0, Be);
16452
+ const pn = (fn) => this.collisionIndex.placeCollisionBox(fn, ee, P, we, w, Q, G, x, B.predicate, be, X && Zi ? Zi : void 0, Be);
16453
16453
  nr && nr.placeable && Re.verticalIconBox ? (qi = pn(Re.verticalIconBox), mi = qi.placeable) : (qi = pn(Re.iconBox), mi = qi.placeable), xi && (xi = qi.offscreen);
16454
16454
  }
16455
16455
  const En = j || ve.numHorizontalGlyphVertices === 0 && ve.numVerticalGlyphVertices === 0, Hn = q || ve.numIconVertices === 0;
@@ -16529,9 +16529,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16529
16529
  U.hasVisibleVertices || (U.hasVisibleVertices = ee !== vo);
16530
16530
  }, q = this.collisionBoxArrays.get(t.bucketInstanceId);
16531
16531
  for (let U = 0; U < t.symbolInstances.length; U++) {
16532
- const W = t.symbolInstances.get(U), { numHorizontalGlyphVertices: ee, numVerticalGlyphVertices: H, crossTileID: $ } = W;
16533
- let Q = this.opacities[$];
16534
- s[$] ? Q = x : Q || (Q = B, this.opacities[$] = Q), s[$] = !0;
16532
+ const W = t.symbolInstances.get(U), { numHorizontalGlyphVertices: ee, numVerticalGlyphVertices: H, crossTileID: G } = W;
16533
+ let Q = this.opacities[G];
16534
+ s[G] ? Q = x : Q || (Q = B, this.opacities[G] = Q), s[G] = !0;
16535
16535
  const X = W.numIconVertices > 0, oe = this.placedOrientations[W.crossTileID], de = oe === u.ax.vertical, pe = oe === u.ax.horizontal || oe === u.ax.horizontalOnly;
16536
16536
  if (ee > 0 || H > 0) {
16537
16537
  const be = Pl(Q.text);
@@ -16556,7 +16556,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16556
16556
  if (be.textBox || be.verticalTextBox) {
16557
16557
  let Ce = !0;
16558
16558
  if (P) {
16559
- const ve = this.variableOffsets[$];
16559
+ const ve = this.variableOffsets[G];
16560
16560
  ve ? (Be = ns(ve.anchor, ve.width, ve.height, ve.textOffset, ve.textBoxScale), M && Be._rotate(A ? -this.transform.bearingInRadians : this.transform.bearingInRadians)) : Ce = !1;
16561
16561
  }
16562
16562
  if (be.textBox || be.verticalTextBox) {
@@ -16777,7 +16777,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16777
16777
  for (const s in this.layerIndexes) n[s] || delete this.layerIndexes[s];
16778
16778
  }
16779
16779
  }
16780
- var $i = "void main() {fragColor=vec4(1.0);}";
16780
+ var Gi = "void main() {fragColor=vec4(1.0);}";
16781
16781
  const qt = { prelude: et(`#ifdef GL_ES
16782
16782
  precision mediump float;
16783
16783
  #else
@@ -16901,7 +16901,7 @@ vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vect
16901
16901
  #else
16902
16902
  gl_Position=projectTileWithElevation(corner_position,ele);
16903
16903
  #endif
16904
- } else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`), clippingMask: et($i, "in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"), heatmap: et(`uniform highp float u_intensity;in vec2 v_extrude;
16904
+ } else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`), clippingMask: et(Gi, "in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"), heatmap: et(`uniform highp float u_intensity;in vec2 v_extrude;
16905
16905
  #pragma mapbox: define highp float weight
16906
16906
  #define GAUSS_COEF 0.3989422804014327
16907
16907
  void main() {
@@ -16936,7 +16936,7 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st
16936
16936
  #ifdef OVERDRAW_INSPECTOR
16937
16937
  fragColor=vec4(1.0);
16938
16938
  #endif
16939
- }`, "uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"), debug: et("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}", "in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"), depth: et($i, `in vec2 a_pos;void main() {
16939
+ }`, "uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"), debug: et("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}", "in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"), depth: et(Gi, `in vec2 a_pos;void main() {
16940
16940
  #ifdef GLOBE
16941
16941
  gl_Position=projectTileFor3D(a_pos,0.0);
16942
16942
  #else
@@ -17870,7 +17870,7 @@ uniform ${P} ${M} u_${A};
17870
17870
  }
17871
17871
  getMaxBounds() {
17872
17872
  var t, n;
17873
- return ((t = this._latRange) === null || t === void 0 ? void 0 : t.length) !== 2 || ((n = this._lngRange) === null || n === void 0 ? void 0 : n.length) !== 2 ? null : new $e([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
17873
+ return ((t = this._latRange) === null || t === void 0 ? void 0 : t.length) !== 2 || ((n = this._lngRange) === null || n === void 0 ? void 0 : n.length) !== 2 ? null : new Ge([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
17874
17874
  }
17875
17875
  setMaxBounds(t) {
17876
17876
  t ? (this._lngRange = [t.getWest(), t.getEast()], this._latRange = [t.getSouth(), t.getNorth()], this.constrainInternal()) : (this._lngRange = null, this._latRange = [-u.am, u.am]);
@@ -17907,7 +17907,7 @@ uniform ${P} ${M} u_${A};
17907
17907
  }
17908
17908
  recalculateZoomAndCenter(t) {
17909
17909
  if (this.elevation - t == 0) return;
17910
- const n = 1 / this.worldSize, s = u.aq(1, this.center.lat) * this.worldSize, c = u.a7.fromLngLat(this.center, this.elevation), f = c.x / n, y = c.y / n, x = c.z / n, w = this.pitch, S = this.bearing, { x: P, y: M, z: A } = Fn(w, S), R = this.cameraToCenterDistance, B = f + R * -P, j = y + R * -M, q = x + R * A, { distanceToCenter: U, clampedElevation: W } = this._distanceToCenterFromAltElevationPitch(q / s, t, w), ee = U * s, H = new u.a7((B + P * ee) * n, (j + M * ee) * n, 0).toLngLat(), $ = u.aq(1, H.lat), Q = u.ar(this.height / 2 / Math.tan(this.fovInRadians / 2) / U / $ / this.tileSize);
17910
+ const n = 1 / this.worldSize, s = u.aq(1, this.center.lat) * this.worldSize, c = u.a7.fromLngLat(this.center, this.elevation), f = c.x / n, y = c.y / n, x = c.z / n, w = this.pitch, S = this.bearing, { x: P, y: M, z: A } = Fn(w, S), R = this.cameraToCenterDistance, B = f + R * -P, j = y + R * -M, q = x + R * A, { distanceToCenter: U, clampedElevation: W } = this._distanceToCenterFromAltElevationPitch(q / s, t, w), ee = U * s, H = new u.a7((B + P * ee) * n, (j + M * ee) * n, 0).toLngLat(), G = u.aq(1, H.lat), Q = u.ar(this.height / 2 / Math.tan(this.fovInRadians / 2) / U / G / this.tileSize);
17911
17911
  this._elevation = W, this._center = H, this.setZoom(Q);
17912
17912
  }
17913
17913
  _distanceToCenterFromAltElevationPitch(t, n, s) {
@@ -18011,7 +18011,7 @@ uniform ${P} ${M} u_${A};
18011
18011
  const oe = u.b6(A[X + q], H[X], B);
18012
18012
  W = oe !== null && oe >= 0 ? Math.max(W, oe) : Math.max(W, ee[X]);
18013
18013
  }
18014
- const $ = (function(X, oe) {
18014
+ const G = (function(X, oe) {
18015
18015
  const de = u.b0([], X[oe[0]], X[oe[1]]), pe = u.b0([], X[oe[2]], X[oe[1]]), we = [0, 0, 0, 0];
18016
18016
  return u.b1(we, u.b2([], de, pe)), we[3] = -u.b3(we, X[oe[0]]), we;
18017
18017
  })(A, R), Q = (function(X, oe) {
@@ -18021,9 +18021,9 @@ uniform ${P} ${M} u_${A};
18021
18021
  return u.b9(oe, ve);
18022
18022
  }
18023
18023
  return null;
18024
- })(B, $);
18024
+ })(B, G);
18025
18025
  if (Q !== null) {
18026
- const X = Q / u.b3(H[0], $);
18026
+ const X = Q / u.b3(H[0], G);
18027
18027
  W = Math.min(W, X);
18028
18028
  }
18029
18029
  for (let X = 0; X < 4; X++) {
@@ -18261,10 +18261,10 @@ uniform ${P} ${M} u_${A};
18261
18261
  }
18262
18262
  if (f) {
18263
18263
  const H = (S + P) / 2;
18264
- let $ = j;
18265
- this._helper._renderWorldCopies && ($ = u.X(j, H - y / 2, H + y / 2));
18264
+ let G = j;
18265
+ this._helper._renderWorldCopies && (G = u.X(j, H - y / 2, H + y / 2));
18266
18266
  const Q = R / 2;
18267
- $ - Q < S && (U = S + Q), $ + Q > P && (U = P - Q);
18267
+ G - Q < S && (U = S + Q), G + Q > P && (U = P - Q);
18268
18268
  }
18269
18269
  if (U !== void 0 || W !== void 0) {
18270
18270
  const H = new u.P(U ?? j, W ?? q);
@@ -18346,7 +18346,7 @@ uniform ${P} ${M} u_${A};
18346
18346
  }
18347
18347
  getBounds() {
18348
18348
  const t = Math.max(0, this._helper._height / 2 - Hr(this));
18349
- return new $e().extend(this.screenPointToLocation(new u.P(0, t))).extend(this.screenPointToLocation(new u.P(this._helper._width, t))).extend(this.screenPointToLocation(new u.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new u.P(0, this._helper._height)));
18349
+ return new Ge().extend(this.screenPointToLocation(new u.P(0, t))).extend(this.screenPointToLocation(new u.P(this._helper._width, t))).extend(this.screenPointToLocation(new u.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new u.P(0, this._helper._height)));
18350
18350
  }
18351
18351
  isPointOnMapSurface(t, n) {
18352
18352
  return n ? n.pointCoordinate(t) != null : t.y > this.height / 2 - Hr(this);
@@ -18475,7 +18475,7 @@ uniform ${P} ${M} u_${A};
18475
18475
  function Ml(d, t, n, s, c) {
18476
18476
  const f = c.padding, y = Ei(c.worldSize, n.getNorthWest()), x = Ei(c.worldSize, n.getNorthEast()), w = Ei(c.worldSize, n.getSouthEast()), S = Ei(c.worldSize, n.getSouthWest()), P = u.an(-s), M = y.rotate(P), A = x.rotate(P), R = w.rotate(P), B = S.rotate(P), j = new u.P(Math.max(M.x, A.x, B.x, R.x), Math.max(M.y, A.y, B.y, R.y)), q = new u.P(Math.min(M.x, A.x, B.x, R.x), Math.min(M.y, A.y, B.y, R.y)), U = j.sub(q), W = (c.width - (f.left + f.right + t.left + t.right)) / U.x, ee = (c.height - (f.top + f.bottom + t.top + t.bottom)) / U.y;
18477
18477
  if (ee < 0 || W < 0) return void bn();
18478
- const H = Math.min(u.ar(c.scale * Math.min(W, ee)), d.maxZoom), $ = u.P.convert(d.offset), Q = new u.P((t.left - t.right) / 2, (t.top - t.bottom) / 2).rotate(u.an(s)), X = $.add(Q).mult(c.scale / u.ao(H));
18478
+ const H = Math.min(u.ar(c.scale * Math.min(W, ee)), d.maxZoom), G = u.P.convert(d.offset), Q = new u.P((t.left - t.right) / 2, (t.top - t.bottom) / 2).rotate(u.an(s)), X = G.add(Q).mult(c.scale / u.ao(H));
18479
18479
  return { center: sn(c.worldSize, y.add(w).div(2).sub(X)), zoom: H, bearing: s };
18480
18480
  }
18481
18481
  class ha {
@@ -18509,7 +18509,7 @@ uniform ${P} ${M} u_${A};
18509
18509
  return S = B !== s, { easeFunc: (W) => {
18510
18510
  if (S && t.setZoom(u.H.number(s, B, W)), u.bn(f, y) || Kc({ startEulerAngles: f, endEulerAngles: y, tr: t, k: W, useSlerp: f.roll != y.roll }), w && (t.interpolatePadding(c, n.padding, W), M = t.centerPoint.add(n.offsetAsPoint)), n.around) t.setLocationAtPoint(n.around, n.aroundPoint);
18511
18511
  else {
18512
- const ee = u.ao(t.zoom - s), H = B > s ? Math.min(2, U) : Math.max(0.5, U), $ = Math.pow(H, 1 - W), Q = sn(t.worldSize, j.add(q.mult(W * $)).mult(ee));
18512
+ const ee = u.ao(t.zoom - s), H = B > s ? Math.min(2, U) : Math.max(0.5, U), G = Math.pow(H, 1 - W), Q = sn(t.worldSize, j.add(q.mult(W * G)).mult(ee));
18513
18513
  t.setLocationAtPoint(t.renderWorldCopies ? Q.wrap() : Q, M);
18514
18514
  }
18515
18515
  }, isZooming: S, elevationCenter: R };
@@ -18616,16 +18616,16 @@ uniform ${P} ${M} u_${A};
18616
18616
  const B = R || t === "32bit", j = new Int16Array(2 * M);
18617
18617
  let q = 0;
18618
18618
  for (let ee = w; ee <= P; ee++) for (let H = x; H <= S; H++) {
18619
- let $ = H / n * u.a6;
18620
- H === -1 && ($ = -da), H === n + 1 && ($ = u.a6 + da);
18619
+ let G = H / n * u.a6;
18620
+ H === -1 && (G = -da), H === n + 1 && (G = u.a6 + da);
18621
18621
  let Q = ee / n * u.a6;
18622
- ee === -1 && (Q = d.extendToNorthPole ? u.bq : -da), ee === n + 1 && (Q = d.extendToSouthPole ? u.br : u.a6 + da), j[q++] = $, j[q++] = Q;
18622
+ ee === -1 && (Q = d.extendToNorthPole ? u.bq : -da), ee === n + 1 && (Q = d.extendToSouthPole ? u.br : u.a6 + da), j[q++] = G, j[q++] = Q;
18623
18623
  }
18624
18624
  const U = B ? new Uint32Array(A) : new Uint16Array(A);
18625
18625
  let W = 0;
18626
18626
  for (let ee = 0; ee < c; ee++) for (let H = 0; H < s; H++) {
18627
- const $ = H + 1 + ee * f, Q = H + (ee + 1) * f, X = H + 1 + (ee + 1) * f;
18628
- U[W++] = H + ee * f, U[W++] = Q, U[W++] = $, U[W++] = $, U[W++] = Q, U[W++] = X;
18627
+ const G = H + 1 + ee * f, Q = H + (ee + 1) * f, X = H + 1 + (ee + 1) * f;
18628
+ U[W++] = H + ee * f, U[W++] = Q, U[W++] = G, U[W++] = G, U[W++] = Q, U[W++] = X;
18629
18629
  }
18630
18630
  return { vertices: j.buffer.slice(0), indices: U.buffer.slice(0), uses32bitIndices: B };
18631
18631
  }
@@ -18841,14 +18841,14 @@ uniform ${P} ${M} u_${A};
18841
18841
  return this._cache.set(f, w), this._hadAnyChanges = !0, w;
18842
18842
  }
18843
18843
  }
18844
- class Ga {
18844
+ class $a {
18845
18845
  constructor(t, n, s, c) {
18846
18846
  this.min = s, this.max = c, this.points = t, this.planes = n;
18847
18847
  }
18848
18848
  static fromAabb(t, n) {
18849
18849
  const s = [];
18850
18850
  for (let c = 0; c < 8; c++) s.push([1 & ~c ? t[0] : n[0], (c >> 1 & 1) == 1 ? n[1] : t[1], (c >> 2 & 1) == 1 ? n[2] : t[2]]);
18851
- return new Ga(s, [[-1, 0, 0, n[0]], [1, 0, 0, -t[0]], [0, -1, 0, n[1]], [0, 1, 0, -t[1]], [0, 0, -1, n[2]], [0, 0, 1, -t[2]]], t, n);
18851
+ return new $a(s, [[-1, 0, 0, n[0]], [1, 0, 0, -t[0]], [0, -1, 0, n[1]], [0, 1, 0, -t[1]], [0, 0, -1, n[2]], [0, 0, 1, -t[2]]], t, n);
18852
18852
  }
18853
18853
  static fromCenterSizeAngles(t, n, s) {
18854
18854
  const c = u.bA([], s[0], s[1], s[2]), f = u.bB([], [n[0], 0, 0], c), y = u.bB([], [0, n[1], 0], c), x = u.bB([], [0, 0, n[2]], c), w = [...t], S = [...t];
@@ -18861,7 +18861,7 @@ uniform ${P} ${M} u_${A};
18861
18861
  const A = [...t];
18862
18862
  u.a_(A, A, u.aZ([], f, 1 & ~M ? -1 : 1)), u.a_(A, A, u.aZ([], y, (M >> 1 & 1) == 1 ? 1 : -1)), u.a_(A, A, u.aZ([], x, (M >> 2 & 1) == 1 ? 1 : -1)), P.push(A);
18863
18863
  }
18864
- return new Ga(P, [[...f, -u.b3(f, P[0])], [...y, -u.b3(y, P[0])], [...x, -u.b3(x, P[0])], [-f[0], -f[1], -f[2], -u.b3(f, P[7])], [-y[0], -y[1], -y[2], -u.b3(y, P[7])], [-x[0], -x[1], -x[2], -u.b3(x, P[7])]], w, S);
18864
+ return new $a(P, [[...f, -u.b3(f, P[0])], [...y, -u.b3(y, P[0])], [...x, -u.b3(x, P[0])], [-f[0], -f[1], -f[2], -u.b3(f, P[7])], [-y[0], -y[1], -y[2], -u.b3(y, P[7])], [-x[0], -x[1], -x[2], -u.b3(x, P[7])]], w, S);
18865
18865
  }
18866
18866
  intersectsFrustum(t) {
18867
18867
  let n = !0;
@@ -18939,8 +18939,8 @@ uniform ${P} ${M} u_${A};
18939
18939
  const S = new u.a3(t.z, n, t.z, t.x, t.y), P = c.terrain.getMinMaxElevation(S);
18940
18940
  x = (f = P.minElevation) !== null && f !== void 0 ? f : Math.min(0, s), w = (y = P.maxElevation) !== null && y !== void 0 ? y : Math.max(0, s);
18941
18941
  }
18942
- if (x /= u.bD, w /= u.bD, x += 1, w += 1, t.z <= 0) return Ga.fromAabb([-w, -w, -w], [w, w, w]);
18943
- if (t.z === 1) return Ga.fromAabb([t.x === 0 ? -w : 0, t.y === 0 ? 0 : -w, -w], [t.x === 0 ? 0 : w, t.y === 0 ? w : 0, w]);
18942
+ if (x /= u.bD, w /= u.bD, x += 1, w += 1, t.z <= 0) return $a.fromAabb([-w, -w, -w], [w, w, w]);
18943
+ if (t.z === 1) return $a.fromAabb([t.x === 0 ? -w : 0, t.y === 0 ? 0 : -w, -w], [t.x === 0 ? 0 : w, t.y === 0 ? w : 0, w]);
18944
18944
  {
18945
18945
  const S = [fi(0, 0, t.x, t.y, t.z), fi(u.a6, 0, t.x, t.y, t.z), fi(u.a6, u.a6, t.x, t.y, t.z), fi(0, u.a6, t.x, t.y, t.z)], P = [];
18946
18946
  for (const we of S) P.push(u.aZ([], we, w));
@@ -18956,8 +18956,8 @@ uniform ${P} ${M} u_${A};
18956
18956
  u.b1(q, q);
18957
18957
  const U = u.b2([], S[0], S[3]);
18958
18958
  u.b1(U, U), P.push(u.aZ([], R, w)), t.y >= (1 << t.z) / 2 && P.push(u.aZ([], fi(u.a6 / 2, 0, t.x, t.y, t.z), w)), t.y < (1 << t.z) / 2 && P.push(u.aZ([], fi(u.a6 / 2, u.a6, t.x, t.y, t.z), w));
18959
- const W = us(R, P), ee = us(j, P), H = [-R[0], -R[1], -R[2], W.max], $ = [R[0], R[1], R[2], -W.min], Q = [-j[0], -j[1], -j[2], ee.max], X = [j[0], j[1], j[2], -ee.min], oe = [...q, 0], de = [...U, 0], pe = [];
18960
- return t.y === 0 ? pe.push(u.bC(de, oe, H), u.bC(de, oe, $)) : pe.push(u.bC(Q, oe, H), u.bC(Q, oe, $), u.bC(Q, de, H), u.bC(Q, de, $)), t.y === (1 << t.z) - 1 ? pe.push(u.bC(de, oe, H), u.bC(de, oe, $)) : pe.push(u.bC(X, oe, H), u.bC(X, oe, $), u.bC(X, de, H), u.bC(X, de, $)), new Ga(pe, [H, $, Q, X, oe, de], M, A);
18959
+ const W = us(R, P), ee = us(j, P), H = [-R[0], -R[1], -R[2], W.max], G = [R[0], R[1], R[2], -W.min], Q = [-j[0], -j[1], -j[2], ee.max], X = [j[0], j[1], j[2], -ee.min], oe = [...q, 0], de = [...U, 0], pe = [];
18960
+ return t.y === 0 ? pe.push(u.bC(de, oe, H), u.bC(de, oe, G)) : pe.push(u.bC(Q, oe, H), u.bC(Q, oe, G), u.bC(Q, de, H), u.bC(Q, de, G)), t.y === (1 << t.z) - 1 ? pe.push(u.bC(de, oe, H), u.bC(de, oe, G)) : pe.push(u.bC(X, oe, H), u.bC(X, oe, G), u.bC(X, de, H), u.bC(X, de, G)), new $a(pe, [H, G, Q, X, oe, de], M, A);
18961
18961
  }
18962
18962
  }
18963
18963
  }
@@ -19294,7 +19294,7 @@ uniform ${P} ${M} u_${A};
19294
19294
  A < y && (y = A), A > f && (f = A), R < w && (w = R), R > x && (x = R);
19295
19295
  }
19296
19296
  const P = [S.lng + y, S.lat + w, S.lng + f, S.lat + x];
19297
- return this.isSurfacePointOnScreen([0, 1, 0]) && (P[3] = 90, P[0] = -180, P[2] = 180), this.isSurfacePointOnScreen([0, -1, 0]) && (P[1] = -90, P[0] = -180, P[2] = 180), new $e(P);
19297
+ return this.isSurfacePointOnScreen([0, 1, 0]) && (P[3] = 90, P[0] = -180, P[2] = 180), this.isSurfacePointOnScreen([0, -1, 0]) && (P[1] = -90, P[0] = -180, P[2] = 180), new Ge(P);
19298
19298
  }
19299
19299
  calculateCenterFromCameraLngLatAlt(t, n, s, c) {
19300
19300
  return this._helper.calculateCenterFromCameraLngLatAlt(t, n, s, c);
@@ -19311,16 +19311,16 @@ uniform ${P} ${M} u_${A};
19311
19311
  const B = u.bL(R[1], R[2], y[1], y[2]), j = u.bz();
19312
19312
  u.bH(j, c, f, -A);
19313
19313
  const q = u.bL(j[1], j[2], y[1], y[2]), U = 0.5 * Math.PI, W = B >= -U && B <= U, ee = q >= -U && q <= U;
19314
- let H, $;
19314
+ let H, G;
19315
19315
  if (W && ee) {
19316
19316
  const de = this.center.lng * Math.PI / 180, pe = this.center.lat * Math.PI / 180;
19317
- u.bM(M, de) + u.bM(B, pe) < u.bM(A, de) + u.bM(q, pe) ? (H = M, $ = B) : (H = A, $ = q);
19318
- } else if (W) H = M, $ = B;
19317
+ u.bM(M, de) + u.bM(B, pe) < u.bM(A, de) + u.bM(q, pe) ? (H = M, G = B) : (H = A, G = q);
19318
+ } else if (W) H = M, G = B;
19319
19319
  else {
19320
19320
  if (!ee) return;
19321
- H = A, $ = q;
19321
+ H = A, G = q;
19322
19322
  }
19323
- const Q = H / Math.PI * 180, X = $ / Math.PI * 180, oe = this.center.lat;
19323
+ const Q = H / Math.PI * 180, X = G / Math.PI * 180, oe = this.center.lat;
19324
19324
  this.setCenter(new u.W(Q, u.al(X, -90, 90))), this.setZoom(this.zoom + Si(oe, this.center.lat));
19325
19325
  }
19326
19326
  locationToScreenPoint(t, n) {
@@ -19413,7 +19413,7 @@ uniform ${P} ${M} u_${A};
19413
19413
  getFastPathSimpleProjectionMatrix(t) {
19414
19414
  }
19415
19415
  }
19416
- class $a {
19416
+ class Ga {
19417
19417
  get pixelsToClipSpaceMatrix() {
19418
19418
  return this._helper.pixelsToClipSpaceMatrix;
19419
19419
  }
@@ -19616,7 +19616,7 @@ uniform ${P} ${M} u_${A};
19616
19616
  this._globeLatitudeErrorCorrectionRadians = 0, this._globeness = 1, this.defaultConstrain = (n, s) => this.currentTransform.defaultConstrain(n, s), this.applyConstrain = (n, s) => this._helper.applyConstrain(n, s), this._helper = new ca({ calcMatrices: () => this._calcMatrices(), defaultConstrain: (n, s) => this.defaultConstrain(n, s) }, t), this._globeness = 1, this._mercatorTransform = new ua(), this._verticalPerspectiveTransform = new fa();
19617
19617
  }
19618
19618
  clone() {
19619
- const t = new $a();
19619
+ const t = new Ga();
19620
19620
  return t._globeness = this._globeness, t._globeLatitudeErrorCorrectionRadians = this._globeLatitudeErrorCorrectionRadians, t.apply(this, !1), t;
19621
19621
  }
19622
19622
  apply(t, n) {
@@ -19751,9 +19751,9 @@ uniform ${P} ${M} u_${A};
19751
19751
  if (y === 0) return;
19752
19752
  const x = u.bJ(n.center.lng, c.lng), w = x / (Math.abs(x / 180) + 1), S = u.bJ(n.center.lat, c.lat), P = n.getRayDirectionFromPixel(s), M = n.cameraPosition, A = -1 * u.b3(M, P), R = u.bz();
19753
19753
  u.a_(R, M, [P[0] * A, P[1] * A, P[2] * A]);
19754
- const B = u.b5(R) - 1, j = Math.exp(0.5 * -Math.max(B - 0.3, 0)), q = Sr(n.worldSize, n.center.lat) / Math.min(n.width, n.height), U = u.bw(q, 0.9, 0.5, 1, 0.25), W = (1 - u.ao(-y)) * Math.min(j, U), ee = n.center.lat, H = n.zoom, $ = new u.W(n.center.lng + w * W, u.al(n.center.lat + S * W, -u.am, u.am));
19754
+ const B = u.b5(R) - 1, j = Math.exp(0.5 * -Math.max(B - 0.3, 0)), q = Sr(n.worldSize, n.center.lat) / Math.min(n.width, n.height), U = u.bw(q, 0.9, 0.5, 1, 0.25), W = (1 - u.ao(-y)) * Math.min(j, U), ee = n.center.lat, H = n.zoom, G = new u.W(n.center.lng + w * W, u.al(n.center.lat + S * W, -u.am, u.am));
19755
19755
  n.setLocationAtPoint(c, s);
19756
- const Q = n.center, X = u.bw(Math.abs(x), 45, 85, 0, 1), oe = u.bw(q, 0.75, 0.35, 0, 1), de = Math.pow(Math.max(X, oe), 0.25), pe = u.bJ(Q.lng, $.lng), we = u.bJ(Q.lat, $.lat);
19756
+ const Q = n.center, X = u.bw(Math.abs(x), 45, 85, 0, 1), oe = u.bw(q, 0.75, 0.35, 0, 1), de = Math.pow(Math.max(X, oe), 0.25), pe = u.bJ(Q.lng, G.lng), we = u.bJ(Q.lat, G.lat);
19757
19757
  n.setCenter(new u.W(Q.lng + pe * de, Q.lat + we * de).wrap()), n.setZoom(H + Si(ee, n.center.lat));
19758
19758
  }
19759
19759
  handleMapControlsPan(t, n, s) {
@@ -19764,9 +19764,9 @@ uniform ${P} ${M} u_${A};
19764
19764
  cameraForBoxAndBearing(t, n, s, c, f) {
19765
19765
  const y = Ml(t, n, s, c, f), x = n.left / f.width * 2 - 1, w = (f.width - n.right) / f.width * 2 - 1, S = n.top / f.height * -2 + 1, P = (f.height - n.bottom) / f.height * -2 + 1, M = u.bJ(s.getWest(), s.getEast()) < 0, A = M ? s.getEast() : s.getWest(), R = M ? s.getWest() : s.getEast(), B = Math.max(s.getNorth(), s.getSouth()), j = Math.min(s.getNorth(), s.getSouth()), q = A + 0.5 * u.bJ(A, R), U = B + 0.5 * u.bJ(B, j), W = f.clone();
19766
19766
  W.setCenter(y.center), W.setBearing(y.bearing), W.setPitch(0), W.setRoll(0), W.setZoom(y.zoom);
19767
- const ee = W.modelViewProjectionMatrix, H = [Ci(s.getNorthWest()), Ci(s.getNorthEast()), Ci(s.getSouthWest()), Ci(s.getSouthEast()), Ci(new u.W(R, U)), Ci(new u.W(A, U)), Ci(new u.W(q, B)), Ci(new u.W(q, j))], $ = Ci(y.center);
19767
+ const ee = W.modelViewProjectionMatrix, H = [Ci(s.getNorthWest()), Ci(s.getNorthEast()), Ci(s.getSouthWest()), Ci(s.getSouthEast()), Ci(new u.W(R, U)), Ci(new u.W(A, U)), Ci(new u.W(q, B)), Ci(new u.W(q, j))], G = Ci(y.center);
19768
19768
  let Q = Number.POSITIVE_INFINITY;
19769
- for (const X of H) x < 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, $, ee, "x", x))), w > 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, $, ee, "x", w))), S > 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, $, ee, "y", S))), P < 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, $, ee, "y", P)));
19769
+ for (const X of H) x < 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, G, ee, "x", x))), w > 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, G, ee, "x", w))), S > 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, G, ee, "y", S))), P < 0 && (Q = Pr.getLesserNonNegativeNonNull(Q, Pr.solveVectorScale(X, G, ee, "y", P)));
19770
19770
  if (Number.isFinite(Q) && Q !== 0) return y.zoom = Math.min(W.zoom + u.ar(Q), t.maxZoom), y;
19771
19771
  bn();
19772
19772
  }
@@ -19785,11 +19785,11 @@ uniform ${P} ${M} u_${A};
19785
19785
  R.setCenter(A), R.setZoom(w ? +n.zoom : s + Si(c.lat, M.lat)), R.setBearing(n.bearing);
19786
19786
  const B = new u.P(u.al(t.centerPoint.x + n.offsetAsPoint.x, 0, t.width), u.al(t.centerPoint.y + n.offsetAsPoint.y, 0, t.height));
19787
19787
  R.setLocationAtPoint(A, B);
19788
- const j = (n.offset && n.offsetAsPoint.mag()) > 0 ? R.center : A, q = w ? +n.zoom : s + Si(c.lat, j.lat), U = s + Si(c.lat, 0), W = q + Si(j.lat, 0), ee = u.bJ(c.lng, j.lng), H = u.bJ(c.lat, j.lat), $ = u.ao(W - U);
19788
+ const j = (n.offset && n.offsetAsPoint.mag()) > 0 ? R.center : A, q = w ? +n.zoom : s + Si(c.lat, j.lat), U = s + Si(c.lat, 0), W = q + Si(j.lat, 0), ee = u.bJ(c.lng, j.lng), H = u.bJ(c.lat, j.lat), G = u.ao(W - U);
19789
19789
  return P = q !== s, { easeFunc: (Q) => {
19790
19790
  if (u.bn(y, x) || Kc({ startEulerAngles: y, endEulerAngles: x, tr: t, k: Q, useSlerp: y.roll != x.roll }), S && t.interpolatePadding(f, n.padding, Q), n.around) u.w("Easing around a point is not supported under globe projection."), t.setLocationAtPoint(n.around, n.aroundPoint);
19791
19791
  else {
19792
- const X = W > U ? Math.min(2, $) : Math.max(0.5, $), oe = Math.pow(X, 1 - Q), de = tu(c, ee, H, Q * oe);
19792
+ const X = W > U ? Math.min(2, G) : Math.max(0.5, G), oe = Math.pow(X, 1 - Q), de = tu(c, ee, H, Q * oe);
19793
19793
  t.setCenter(de.wrap());
19794
19794
  }
19795
19795
  if (P) {
@@ -19805,22 +19805,22 @@ uniform ${P} ${M} u_${A};
19805
19805
  P.setLocationAtPoint(w, M);
19806
19806
  const A = P.center;
19807
19807
  Vn(t, A);
19808
- const R = (function(H, $, Q) {
19809
- const X = Ci($), oe = Ci(Q), de = u.b3(X, oe), pe = Math.acos(de), we = eu(H);
19808
+ const R = (function(H, G, Q) {
19809
+ const X = Ci(G), oe = Ci(Q), de = u.b3(X, oe), pe = Math.acos(de), we = eu(H);
19810
19810
  return pe / (2 * Math.PI) * we;
19811
19811
  })(t, c, A), B = f + Si(c.lat, 0), j = S + Si(A.lat, 0), q = u.ao(j - B);
19812
19812
  let U;
19813
19813
  if (typeof n.minZoom == "number") {
19814
- const H = +n.minZoom + Si(A.lat, 0), $ = Math.min(H, B, j) + Si(0, A.lat), Q = t.applyConstrain(A, $).zoom + Si(A.lat, 0);
19814
+ const H = +n.minZoom + Si(A.lat, 0), G = Math.min(H, B, j) + Si(0, A.lat), Q = t.applyConstrain(A, G).zoom + Si(A.lat, 0);
19815
19815
  U = u.ao(Q - B);
19816
19816
  }
19817
19817
  const W = u.bJ(c.lng, A.lng), ee = u.bJ(c.lat, A.lat);
19818
- return { easeFunc: (H, $, Q, X) => {
19818
+ return { easeFunc: (H, G, Q, X) => {
19819
19819
  const oe = tu(c, W, ee, Q);
19820
19820
  x && t.interpolatePadding(y, n.padding, H);
19821
19821
  const de = H === 1 ? A : oe;
19822
19822
  t.setCenter(de.wrap());
19823
- const pe = B + u.ar($);
19823
+ const pe = B + u.ar(G);
19824
19824
  t.setZoom(H === 1 ? S : pe + Si(0, de.lat));
19825
19825
  }, scaleOfZoom: q, targetCenter: A, scaleOfMinZoom: U, pixelPathLength: R };
19826
19826
  }
@@ -19875,7 +19875,7 @@ uniform ${P} ${M} u_${A};
19875
19875
  }
19876
19876
  }, this.map = t, this.dispatcher = new It(Ni(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", ((y, x) => this.getGlyphs(y, x))), this.dispatcher.registerMessageHandler("GI", ((y, x) => this.getImages(y, x))), this.dispatcher.registerMessageHandler("GDA", ((y, x) => this.getDashes(y, x))), this.imageManager = new hr(), this.imageManager.setEventedParent(this);
19877
19877
  const f = ((s = t._container) === null || s === void 0 ? void 0 : s.lang) || typeof document < "u" && ((c = document.documentElement) === null || c === void 0 ? void 0 : c.lang) || void 0;
19878
- this.glyphManager = new Le(t._requestManager, n.localIdeographFontFamily, f), this.lineAtlas = new je(256, 512), this.crossTileSymbolIndex = new pr(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", u.bO()), qr().on(Gi, this._rtlPluginLoaded), this.on("data", ((y) => {
19878
+ this.glyphManager = new Le(t._requestManager, n.localIdeographFontFamily, f), this.lineAtlas = new je(256, 512), this.crossTileSymbolIndex = new pr(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", u.bO()), qr().on($i, this._rtlPluginLoaded), this.on("data", ((y) => {
19879
19879
  if (y.dataType !== "source" || y.sourceDataType !== "metadata") return;
19880
19880
  const x = this.tileManagers[y.sourceId];
19881
19881
  if (!x) return;
@@ -19975,7 +19975,7 @@ uniform ${P} ${M} u_${A};
19975
19975
  const q = yield x.transformRequest(Zt(j, M, ".json"), "SpriteJSON");
19976
19976
  A[B] = u.k(q, S);
19977
19977
  const U = yield x.transformRequest(Zt(j, M, ".png"), "SpriteImage");
19978
- R[B] = $t.getImage(U, S);
19978
+ R[B] = Gt.getImage(U, S);
19979
19979
  }
19980
19980
  return yield Promise.all([...Object.values(A), ...Object.values(R)]), (function(B, j) {
19981
19981
  return u._(this, void 0, void 0, (function* () {
@@ -19984,8 +19984,8 @@ uniform ${P} ${M} u_${A};
19984
19984
  q[U] = {};
19985
19985
  const W = dt.getImageCanvasContext((yield j[U]).data), ee = (yield B[U]).data;
19986
19986
  for (const H in ee) {
19987
- const { width: $, height: Q, x: X, y: oe, sdf: de, pixelRatio: pe, stretchX: we, stretchY: be, content: Be, textFitWidth: Ce, textFitHeight: ve } = ee[H];
19988
- q[U][H] = { data: null, pixelRatio: pe, sdf: de, stretchX: we, stretchY: be, content: Be, textFitWidth: Ce, textFitHeight: ve, spriteData: { width: $, height: Q, x: X, y: oe, context: W } };
19987
+ const { width: G, height: Q, x: X, y: oe, sdf: de, pixelRatio: pe, stretchX: we, stretchY: be, content: Be, textFitWidth: Ce, textFitHeight: ve } = ee[H];
19988
+ q[U][H] = { data: null, pixelRatio: pe, sdf: de, stretchX: we, stretchY: be, content: Be, textFitWidth: Ce, textFitHeight: ve, spriteData: { width: G, height: Q, x: X, y: oe, context: W } };
19989
19989
  }
19990
19990
  }
19991
19991
  return q;
@@ -20395,9 +20395,9 @@ uniform ${P} ${M} u_${A};
20395
20395
  W.sort(Rr);
20396
20396
  for (const ee of W) {
20397
20397
  const H = ee.featureIndex.lookupSymbolFeatures(U[ee.bucketInstanceId], P, ee.bucketIndex, ee.sourceLayerIndex, { filterSpec: R.filter, globalState: R.globalState }, R.layers, R.availableImages, S);
20398
- for (const $ in H) {
20399
- q[$] || (q[$] = []);
20400
- const Q = H[$];
20398
+ for (const G in H) {
20399
+ q[G] || (q[G] = []);
20400
+ const Q = H[G];
20401
20401
  Q.sort(((X, oe) => {
20402
20402
  const de = ee.featureSortOrder;
20403
20403
  if (de) {
@@ -20406,11 +20406,11 @@ uniform ${P} ${M} u_${A};
20406
20406
  }
20407
20407
  return oe.featureIndex - X.featureIndex;
20408
20408
  }));
20409
- for (const X of Q) q[$].push(X);
20409
+ for (const X of Q) q[G].push(X);
20410
20410
  }
20411
20411
  }
20412
- return (function(ee, H, $) {
20413
- for (const Q in ee) for (const X of ee[Q]) _i(X, $[H[Q].source]);
20412
+ return (function(ee, H, G) {
20413
+ for (const Q in ee) for (const X of ee[Q]) _i(X, G[H[Q].source]);
20414
20414
  return ee;
20415
20415
  })(q, S, M);
20416
20416
  })(this._layers, y, this.tileManagers, t, w, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(f);
@@ -20479,14 +20479,14 @@ uniform ${P} ${M} u_${A};
20479
20479
  const f = { constrainOverride: c };
20480
20480
  if (Array.isArray(s)) {
20481
20481
  const y = new Qc({ type: s });
20482
- return { projection: y, transform: new $a(f), cameraHelper: new Kr(y) };
20482
+ return { projection: y, transform: new Ga(f), cameraHelper: new Kr(y) };
20483
20483
  }
20484
20484
  switch (s) {
20485
20485
  case "mercator":
20486
20486
  return { projection: new ir(), transform: new ua(f), cameraHelper: new ha() };
20487
20487
  case "globe": {
20488
20488
  const y = new Qc({ type: ["interpolate", ["linear"], ["zoom"], 11, "vertical-perspective", 12, "mercator"] });
20489
- return { projection: y, transform: new $a(f), cameraHelper: new Kr(y) };
20489
+ return { projection: y, transform: new Ga(f), cameraHelper: new Kr(y) };
20490
20490
  }
20491
20491
  case "vertical-perspective":
20492
20492
  return { projection: new ss(), transform: new fa(f), cameraHelper: new Pr() };
@@ -20501,7 +20501,7 @@ uniform ${P} ${M} u_${A};
20501
20501
  return f?.validate !== !1 && hs(this, t.call(u.F, u.e({ key: n, style: this.serialize(), value: s, styleSpec: u.x }, c)));
20502
20502
  }
20503
20503
  _remove(t = !0) {
20504
- this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), qr().off(Gi, this._rtlPluginLoaded);
20504
+ this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), qr().off($i, this._rtlPluginLoaded);
20505
20505
  for (const n in this._layers) this._layers[n].setEventedParent(null);
20506
20506
  for (const n in this.tileManagers) {
20507
20507
  const s = this.tileManagers[n];
@@ -20644,17 +20644,17 @@ uniform ${P} ${M} u_${A};
20644
20644
  for (const pe of W) ee.includes(pe) || ee.push(pe);
20645
20645
  const H = s ? s.defines() : [];
20646
20646
  Yr(P) && H.unshift("#version 300 es"), f && H.push("#define OVERDRAW_INSPECTOR;"), y && H.push("#define TERRAIN3D;"), w && H.push(w), S && H.push(...S);
20647
- let $ = H.concat(qt.prelude.fragmentSource, x.fragmentSource, n.fragmentSource).join(`
20647
+ let G = H.concat(qt.prelude.fragmentSource, x.fragmentSource, n.fragmentSource).join(`
20648
20648
  `), Q = H.concat(qt.prelude.vertexSource, x.vertexSource, n.vertexSource).join(`
20649
20649
  `);
20650
- Yr(P) || ($ = (function(pe) {
20650
+ Yr(P) || (G = (function(pe) {
20651
20651
  return pe.replace(/\bin\s/g, "varying ").replace("out highp vec4 fragColor;", "").replace(/fragColor/g, "gl_FragColor").replace(/texture\(/g, "texture2D(");
20652
- })($), Q = (function(pe) {
20652
+ })(G), Q = (function(pe) {
20653
20653
  return pe.replace(/\bin\s/g, "attribute ").replace(/\bout\s/g, "varying ").replace(/texture\(/g, "texture2D(");
20654
20654
  })(Q));
20655
20655
  const X = P.createShader(P.FRAGMENT_SHADER);
20656
20656
  if (P.isContextLost()) return void (this.failedToCreate = !0);
20657
- if (P.shaderSource(X, $), P.compileShader(X), !P.getShaderParameter(X, P.COMPILE_STATUS)) throw new Error(`Could not compile fragment shader: ${P.getShaderInfoLog(X)}`);
20657
+ if (P.shaderSource(X, G), P.compileShader(X), !P.getShaderParameter(X, P.COMPILE_STATUS)) throw new Error(`Could not compile fragment shader: ${P.getShaderInfoLog(X)}`);
20658
20658
  P.attachShader(this.program, X);
20659
20659
  const oe = P.createShader(P.VERTEX_SHADER);
20660
20660
  if (P.isContextLost()) return void (this.failedToCreate = !0);
@@ -20673,10 +20673,10 @@ uniform ${P} ${M} u_${A};
20673
20673
  }
20674
20674
  draw(t, n, s, c, f, y, x, w, S, P, M, A, R, B, j, q, U, W, ee) {
20675
20675
  var H;
20676
- const $ = t.gl;
20676
+ const G = t.gl;
20677
20677
  if (this.failedToCreate) return;
20678
20678
  if (t.program.set(this.program), t.setDepthMode(s), t.setStencilMode(c), t.setColorMode(f), t.setCullFace(y), w) {
20679
- t.activeTexture.set($.TEXTURE2), $.bindTexture($.TEXTURE_2D, w.depthTexture), t.activeTexture.set($.TEXTURE3), $.bindTexture($.TEXTURE_2D, w.texture);
20679
+ t.activeTexture.set(G.TEXTURE2), G.bindTexture(G.TEXTURE_2D, w.depthTexture), t.activeTexture.set(G.TEXTURE3), G.bindTexture(G.TEXTURE_2D, w.texture);
20680
20680
  for (const X in this.terrainUniforms) this.terrainUniforms[X].set(w[X]);
20681
20681
  }
20682
20682
  if (S) for (const X in S) this.projectionUniforms[Sh[X]].set(S[X]);
@@ -20684,16 +20684,16 @@ uniform ${P} ${M} u_${A};
20684
20684
  q && q.setUniforms(t, this.binderUniforms, B, { zoom: j });
20685
20685
  let Q = 0;
20686
20686
  switch (n) {
20687
- case $.LINES:
20687
+ case G.LINES:
20688
20688
  Q = 2;
20689
20689
  break;
20690
- case $.TRIANGLES:
20690
+ case G.TRIANGLES:
20691
20691
  Q = 3;
20692
20692
  break;
20693
- case $.LINE_STRIP:
20693
+ case G.LINE_STRIP:
20694
20694
  Q = 1;
20695
20695
  }
20696
- for (const X of R.get()) X.vaos || (X.vaos = {}), (H = X.vaos)[P] || (H[P] = new Th()), X.vaos[P].bind(t, this, M, q ? q.getPaintVertexBuffers() : [], A, X.vertexOffset, U, W, ee), $.drawElements(n, X.primitiveLength * Q, $.UNSIGNED_SHORT, X.primitiveOffset * Q * 2);
20696
+ for (const X of R.get()) X.vaos || (X.vaos = {}), (H = X.vaos)[P] || (H[P] = new Th()), X.vaos[P].bind(t, this, M, q ? q.getPaintVertexBuffers() : [], A, X.vertexOffset, U, W, ee), G.drawElements(n, X.primitiveLength * Q, G.UNSIGNED_SHORT, X.primitiveOffset * Q * 2);
20697
20697
  }
20698
20698
  }
20699
20699
  function Rl(d, t, n) {
@@ -20953,7 +20953,7 @@ uniform ${P} ${M} u_${A};
20953
20953
  t ? n.enable(n.DEPTH_TEST) : n.disable(n.DEPTH_TEST), this.current = t, this.dirty = !1;
20954
20954
  }
20955
20955
  }
20956
- class Gl extends Tt {
20956
+ class $l extends Tt {
20957
20957
  getDefault() {
20958
20958
  return this.gl.LESS;
20959
20959
  }
@@ -21040,7 +21040,7 @@ uniform ${P} ${M} u_${A};
21040
21040
  (t !== this.current || this.dirty) && (this.gl.activeTexture(t), this.current = t, this.dirty = !1);
21041
21041
  }
21042
21042
  }
21043
- class $l extends Tt {
21043
+ class Gl extends Tt {
21044
21044
  getDefault() {
21045
21045
  const t = this.gl;
21046
21046
  return [0, 0, t.drawingBufferWidth, t.drawingBufferHeight];
@@ -21196,7 +21196,7 @@ uniform ${P} ${M} u_${A};
21196
21196
  class Is {
21197
21197
  constructor(t) {
21198
21198
  var n, s;
21199
- if (this.gl = t, this.clearColor = new pu(this), this.clearDepth = new gs(this), this.clearStencil = new _s(this), this.colorMask = new ys(this), this.depthMask = new Ul(this), this.stencilMask = new ya(this), this.stencilFunc = new So(this), this.stencilOp = new Wa(this), this.stencilTest = new Lr(this), this.depthRange = new fu(this), this.depthTest = new mu(this), this.depthFunc = new Gl(this), this.blend = new va(this), this.blendFunc = new vs(this), this.blendColor = new xs(this), this.blendEquation = new Po(this), this.cullFace = new bs(this), this.cullFaceSide = new gu(this), this.frontFace = new Ha(this), this.program = new Xa(this), this.activeTexture = new _u(this), this.viewport = new $l(this), this.bindFramebuffer = new st(this), this.bindRenderbuffer = new ws(this), this.bindTexture = new zh(this), this.bindVertexBuffer = new yu(this), this.bindElementBuffer = new Io(this), this.bindVertexArray = new Rh(this), this.pixelStoreUnpack = new kh(this), this.pixelStoreUnpackPremultiplyAlpha = new vu(this), this.pixelStoreUnpackFlipY = new Lh(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Yr(t)) {
21199
+ if (this.gl = t, this.clearColor = new pu(this), this.clearDepth = new gs(this), this.clearStencil = new _s(this), this.colorMask = new ys(this), this.depthMask = new Ul(this), this.stencilMask = new ya(this), this.stencilFunc = new So(this), this.stencilOp = new Wa(this), this.stencilTest = new Lr(this), this.depthRange = new fu(this), this.depthTest = new mu(this), this.depthFunc = new $l(this), this.blend = new va(this), this.blendFunc = new vs(this), this.blendColor = new xs(this), this.blendEquation = new Po(this), this.cullFace = new bs(this), this.cullFaceSide = new gu(this), this.frontFace = new Ha(this), this.program = new Xa(this), this.activeTexture = new _u(this), this.viewport = new Gl(this), this.bindFramebuffer = new st(this), this.bindRenderbuffer = new ws(this), this.bindTexture = new zh(this), this.bindVertexBuffer = new yu(this), this.bindElementBuffer = new Io(this), this.bindVertexArray = new Rh(this), this.pixelStoreUnpack = new kh(this), this.pixelStoreUnpackPremultiplyAlpha = new vu(this), this.pixelStoreUnpackFlipY = new Lh(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Yr(t)) {
21200
21200
  this.HALF_FLOAT = t.HALF_FLOAT;
21201
21201
  const c = t.getExtension("EXT_color_buffer_half_float");
21202
21202
  this.RGBA16F = (n = t.RGBA16F) !== null && n !== void 0 ? n : c?.RGBA16F_EXT, this.RGB16F = (s = t.RGB16F) !== null && s !== void 0 ? s : c?.RGB16F_EXT, t.getExtension("EXT_color_buffer_float");
@@ -21262,25 +21262,25 @@ uniform ${P} ${M} u_${A};
21262
21262
  for (const ee of s) {
21263
21263
  const H = t.getTile(ee).getBucket(n);
21264
21264
  if (!H) continue;
21265
- const $ = c ? H.textCollisionBox : H.iconCollisionBox, Q = H.collisionCircleArray;
21266
- Q.length > 0 && (M.push({ circleArray: Q, circleOffset: R, coord: ee }), A += Q.length / 4, R = A), $ && P.draw(x, S.LINES, nt.disabled, gt.disabled, d.colorModeForRenderPass(), pt.disabled, su(d.transform), (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(ee), w.getProjectionData({ overscaledTileID: ee, applyGlobeMatrix: !0, applyTerrainMatrix: !0 }), n.id, $.layoutVertexBuffer, $.indexBuffer, $.segments, null, d.transform.zoom, null, null, $.collisionVertexBuffer);
21265
+ const G = c ? H.textCollisionBox : H.iconCollisionBox, Q = H.collisionCircleArray;
21266
+ Q.length > 0 && (M.push({ circleArray: Q, circleOffset: R, coord: ee }), A += Q.length / 4, R = A), G && P.draw(x, S.LINES, nt.disabled, gt.disabled, d.colorModeForRenderPass(), pt.disabled, su(d.transform), (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(ee), w.getProjectionData({ overscaledTileID: ee, applyGlobeMatrix: !0, applyTerrainMatrix: !0 }), n.id, G.layoutVertexBuffer, G.indexBuffer, G.segments, null, d.transform.zoom, null, null, G.collisionVertexBuffer);
21267
21267
  }
21268
21268
  if (!c || !M.length) return;
21269
21269
  const B = d.useProgram("collisionCircle"), j = new u.ca();
21270
21270
  j.resize(4 * A), j._trim();
21271
21271
  let q = 0;
21272
21272
  for (const ee of M) for (let H = 0; H < ee.circleArray.length / 4; H++) {
21273
- const $ = 4 * H, Q = ee.circleArray[$ + 0], X = ee.circleArray[$ + 1], oe = ee.circleArray[$ + 2], de = ee.circleArray[$ + 3];
21273
+ const G = 4 * H, Q = ee.circleArray[G + 0], X = ee.circleArray[G + 1], oe = ee.circleArray[G + 2], de = ee.circleArray[G + 3];
21274
21274
  j.emplace(q++, Q, X, oe, de, 0), j.emplace(q++, Q, X, oe, de, 1), j.emplace(q++, Q, X, oe, de, 2), j.emplace(q++, Q, X, oe, de, 3);
21275
21275
  }
21276
21276
  (!xa || xa.length < 2 * A) && (xa = (function(ee) {
21277
- const H = 2 * ee, $ = new u.cc();
21278
- $.resize(H), $._trim();
21277
+ const H = 2 * ee, G = new u.cc();
21278
+ G.resize(H), G._trim();
21279
21279
  for (let Q = 0; Q < H; Q++) {
21280
21280
  const X = 6 * Q;
21281
- $.uint16[X + 0] = 4 * Q + 0, $.uint16[X + 1] = 4 * Q + 1, $.uint16[X + 2] = 4 * Q + 2, $.uint16[X + 3] = 4 * Q + 2, $.uint16[X + 4] = 4 * Q + 3, $.uint16[X + 5] = 4 * Q + 0;
21281
+ G.uint16[X + 0] = 4 * Q + 0, G.uint16[X + 1] = 4 * Q + 1, G.uint16[X + 2] = 4 * Q + 2, G.uint16[X + 3] = 4 * Q + 2, G.uint16[X + 4] = 4 * Q + 3, G.uint16[X + 5] = 4 * Q + 0;
21282
21282
  }
21283
- return $;
21283
+ return G;
21284
21284
  })(A));
21285
21285
  const U = x.createIndexBuffer(xa, !0), W = x.createVertexBuffer(j, u.cb.members, !0);
21286
21286
  for (const ee of M) {
@@ -21314,10 +21314,10 @@ uniform ${P} ${M} u_${A};
21314
21314
  for (let q = 0; q < A.length; q++) {
21315
21315
  const U = A.get(q), W = U.hidden || !U.crossTileID || d.allowVerticalPlacement && !U.placedOrientation ? null : s[U.crossTileID];
21316
21316
  if (W) {
21317
- const ee = new u.P(U.anchorX, U.anchorY), H = { getElevation: M, width: c.width, height: c.height, pitchedLabelPlaneMatrix: f, pitchWithMap: n, transform: c, tileAnchorPoint: ee, translation: S, unwrappedTileID: P }, $ = n ? wt(ee.x, ee.y, H) : Ze(ee.x, ee.y, H), Q = On(c.cameraToCenterDistance, $.signedDistanceFromCamera);
21317
+ const ee = new u.P(U.anchorX, U.anchorY), H = { getElevation: M, width: c.width, height: c.height, pitchedLabelPlaneMatrix: f, pitchWithMap: n, transform: c, tileAnchorPoint: ee, translation: S, unwrappedTileID: P }, G = n ? wt(ee.x, ee.y, H) : Ze(ee.x, ee.y, H), Q = On(c.cameraToCenterDistance, G.signedDistanceFromCamera);
21318
21318
  let X = u.ay(d.textSizeData, x, U) * Q / u.aJ;
21319
21319
  n && (X *= d.tilePixelRatio / y);
21320
- const { width: oe, height: de, anchor: pe, textOffset: we, textBoxScale: be } = W, Be = Zl(pe, oe, de, we, be, X), Ce = c.getPitchedTextCorrection(ee.x + S[0], ee.y + S[1], P), ve = Fh($.point, H, t, Be, -c.bearingInRadians, Ce), Re = d.allowVerticalPlacement && U.placedOrientation === u.ax.vertical ? Math.PI / 2 : 0;
21320
+ const { width: oe, height: de, anchor: pe, textOffset: we, textBoxScale: be } = W, Be = Zl(pe, oe, de, we, be, X), Ce = c.getPitchedTextCorrection(ee.x + S[0], ee.y + S[1], P), ve = Fh(G.point, H, t, Be, -c.bearingInRadians, Ce), Re = d.allowVerticalPlacement && U.placedOrientation === u.ax.vertical ? Math.PI / 2 : 0;
21321
21321
  for (let Ue = 0; Ue < U.numGlyphs; Ue++) u.aD(R, ve, Re);
21322
21322
  w && U.associatedIconIndex >= 0 && (j[U.associatedIconIndex] = { shiftedAnchor: ve, angle: Re });
21323
21323
  } else Ft(U.numGlyphs, R);
@@ -21343,7 +21343,7 @@ uniform ${P} ${M} u_${A};
21343
21343
  }
21344
21344
  function ql(d, t, n, s, c, f, y, x, w, S, P, M, A) {
21345
21345
  var R, B;
21346
- const j = d.context, q = j.gl, U = d.transform, W = x === "map", ee = w === "map", H = x !== "viewport" && n.layout.get("symbol-placement") !== "point", $ = W && !ee && !H, Q = !n.layout.get("symbol-sort-key").isConstant();
21346
+ const j = d.context, q = j.gl, U = d.transform, W = x === "map", ee = w === "map", H = x !== "viewport" && n.layout.get("symbol-placement") !== "point", G = W && !ee && !H, Q = !n.layout.get("symbol-sort-key").isConstant();
21347
21347
  let X = !1;
21348
21348
  const oe = d.getDepthModeForSublayer(0, nt.ReadOnly), de = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), pe = [], we = U.getCircleRadiusCorrection();
21349
21349
  for (const Ce of s) {
@@ -21367,7 +21367,7 @@ uniform ${P} ${M} u_${A};
21367
21367
  }
21368
21368
  const Er = c && de || fn, Br = H || Er ? Ka : ee ? Wi : d.transform.clipSpaceToPixelsMatrix, Ht = hi && n.paint.get(c ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21369
21369
  let Bt;
21370
- Bt = hi ? Re.iconsInText ? jl(Mt.kind, Zi, $, ee, H, Er, d, Br, En, Hn, nr, Zn, we) : Nl(Mt.kind, Zi, $, ee, H, Er, d, Br, En, Hn, c, nr, Ht, we) : ms(Mt.kind, Zi, $, ee, H, Er, d, Br, En, Hn, c, nr, we);
21370
+ Bt = hi ? Re.iconsInText ? jl(Mt.kind, Zi, G, ee, H, Er, d, Br, En, Hn, nr, Zn, we) : Nl(Mt.kind, Zi, G, ee, H, Er, d, Br, En, Hn, c, nr, Ht, we) : ms(Mt.kind, Zi, G, ee, H, Er, d, Br, En, Hn, c, nr, we);
21371
21371
  const bi = { program: xi, buffers: Ue, uniformValues: Bt, projectionData: Vs, atlasTexture: ji, atlasTextureIcon: qn, atlasInterpolation: Di, atlasInterpolationIcon: qi, isSDF: hi, hasHalo: Ht };
21372
21372
  if (Q && Re.canOverlap) {
21373
21373
  X = !0;
@@ -21460,7 +21460,7 @@ uniform ${P} ${M} u_${A};
21460
21460
  var w;
21461
21461
  const S = d.context.gl, P = "fill-pattern", M = n.paint.get(P), A = M?.constantOr(1), R = n.getCrossfadeParameters();
21462
21462
  let B, j, q, U, W;
21463
- const ee = d.transform, H = n.paint.get("fill-translate"), $ = n.paint.get("fill-translate-anchor");
21463
+ const ee = d.transform, H = n.paint.get("fill-translate"), G = n.paint.get("fill-translate-anchor");
21464
21464
  y ? (j = A && !n.getPaintProperty("fill-outline-color") ? "fillOutlinePattern" : "fillOutline", B = S.LINES) : (j = A ? "fillPattern" : "fill", B = S.TRIANGLES);
21465
21465
  const Q = M.constantOr(null);
21466
21466
  for (const X of s) {
@@ -21470,7 +21470,7 @@ uniform ${P} ${M} u_${A};
21470
21470
  if (!de) continue;
21471
21471
  const pe = de.programConfigurations.get(n.id), we = d.useProgram(j, pe), be = (w = d.style.map.terrain) === null || w === void 0 ? void 0 : w.getTerrainData(X);
21472
21472
  A && (d.context.activeTexture.set(S.TEXTURE0), oe.imageAtlasTexture.bind(S.LINEAR, S.CLAMP_TO_EDGE), pe.updatePaintBuffers(R)), mr(pe, P, Q, oe, n);
21473
- const Be = ee.getProjectionData({ overscaledTileID: X, applyGlobeMatrix: !x, applyTerrainMatrix: !0 }), Ce = u.aL(ee, oe, H, $);
21473
+ const Be = ee.getProjectionData({ overscaledTileID: X, applyGlobeMatrix: !x, applyTerrainMatrix: !0 }), Ce = u.aL(ee, oe, H, G);
21474
21474
  if (y) {
21475
21475
  U = de.indexBuffer2, W = de.segments2;
21476
21476
  const Re = [S.drawingBufferWidth, S.drawingBufferHeight];
@@ -21486,12 +21486,12 @@ uniform ${P} ${M} u_${A};
21486
21486
  for (const W of s) {
21487
21487
  const ee = t.getTile(W), H = ee.getBucket(n);
21488
21488
  if (!H) continue;
21489
- const $ = (w = d.style.map.terrain) === null || w === void 0 ? void 0 : w.getTerrainData(W), Q = H.programConfigurations.get(n.id), X = d.useProgram(R ? "fillExtrusionPattern" : "fillExtrusion", Q);
21489
+ const G = (w = d.style.map.terrain) === null || w === void 0 ? void 0 : w.getTerrainData(W), Q = H.programConfigurations.get(n.id), X = d.useProgram(R ? "fillExtrusionPattern" : "fillExtrusion", Q);
21490
21490
  R && (d.context.activeTexture.set(P.TEXTURE0), ee.imageAtlasTexture.bind(P.LINEAR, P.CLAMP_TO_EDGE), Q.updatePaintBuffers(B));
21491
21491
  const oe = U.getProjectionData({ overscaledTileID: W, applyGlobeMatrix: !x, applyTerrainMatrix: !0 });
21492
21492
  mr(Q, M, q, ee, n);
21493
21493
  const de = u.aL(U, ee, n.paint.get("fill-extrusion-translate"), n.paint.get("fill-extrusion-translate-anchor")), pe = n.paint.get("fill-extrusion-vertical-gradient"), we = R ? ru(d, pe, j, de, W, B, ee) : iu(d, pe, j, de);
21494
- X.draw(S, S.gl.TRIANGLES, c, f, y, pt.backCCW, we, $, oe, n.id, H.layoutVertexBuffer, H.indexBuffer, H.segments, n.paint, d.transform.zoom, Q, d.style.map.terrain && H.centroidVertexBuffer);
21494
+ X.draw(S, S.gl.TRIANGLES, c, f, y, pt.backCCW, we, G, oe, n.id, H.layoutVertexBuffer, H.indexBuffer, H.segments, n.paint, d.transform.zoom, Q, d.style.map.terrain && H.centroidVertexBuffer);
21495
21495
  }
21496
21496
  }
21497
21497
  function As(d, t, n, s, c, f, y, x, w) {
@@ -21500,10 +21500,10 @@ uniform ${P} ${M} u_${A};
21500
21500
  for (const U of s) {
21501
21501
  const W = t.getTile(U), ee = W.fbo;
21502
21502
  if (!ee) continue;
21503
- const H = P.getMeshFromTileID(M, U.canonical, x, !0, "raster"), $ = (S = d.style.map.terrain) === null || S === void 0 ? void 0 : S.getTerrainData(U);
21503
+ const H = P.getMeshFromTileID(M, U.canonical, x, !0, "raster"), G = (S = d.style.map.terrain) === null || S === void 0 ? void 0 : S.getTerrainData(U);
21504
21504
  M.activeTexture.set(R.TEXTURE0), R.bindTexture(R.TEXTURE_2D, ee.colorAttachment.get());
21505
21505
  const Q = A.getProjectionData({ overscaledTileID: U, aligned: q, applyGlobeMatrix: !w, applyTerrainMatrix: !0 });
21506
- j.draw(M, R.TRIANGLES, f, c[U.overscaledZ], y, pt.backCCW, Ih(d, W, n), $, Q, n.id, H.vertexBuffer, H.indexBuffer, H.segments);
21506
+ j.draw(M, R.TRIANGLES, f, c[U.overscaledZ], y, pt.backCCW, Ih(d, W, n), G, Q, n.id, H.vertexBuffer, H.indexBuffer, H.segments);
21507
21507
  }
21508
21508
  }
21509
21509
  let Un = 0;
@@ -21512,14 +21512,14 @@ uniform ${P} ${M} u_${A};
21512
21512
  const P = d.style.projection, M = d.context, A = d.transform, R = M.gl, B = d.useProgram("colorRelief"), j = !d.options.moving, q = n.paint.get("resampling") === "nearest" ? R.NEAREST : R.LINEAR;
21513
21513
  let U = !0, W = 0;
21514
21514
  for (const ee of s) {
21515
- const H = t.getTile(ee), $ = H.dem;
21515
+ const H = t.getTile(ee), G = H.dem;
21516
21516
  if (U) {
21517
21517
  Un || (Un = R.getParameter(R.MAX_TEXTURE_SIZE));
21518
- const we = Un, { elevationTexture: be, colorTexture: Be } = n.getColorRampTextures(M, we, $.getUnpackVector());
21518
+ const we = Un, { elevationTexture: be, colorTexture: Be } = n.getColorRampTextures(M, we, G.getUnpackVector());
21519
21519
  M.activeTexture.set(R.TEXTURE1), be.bind(R.NEAREST, R.CLAMP_TO_EDGE), M.activeTexture.set(R.TEXTURE4), Be.bind(R.LINEAR, R.CLAMP_TO_EDGE), U = !1, W = be.size[0];
21520
21520
  }
21521
- if (!$?.data) continue;
21522
- const Q = $.stride, X = $.getPixels();
21521
+ if (!G?.data) continue;
21522
+ const Q = G.stride, X = G.getPixels();
21523
21523
  if (M.activeTexture.set(R.TEXTURE0), M.pixelStoreUnpackPremultiplyAlpha.set(!1), H.demTexture || (H.demTexture = d.getTileTexture(Q)), H.demTexture) {
21524
21524
  const we = H.demTexture;
21525
21525
  we.update(X, { premultiply: !1 }), we.bind(q, R.CLAMP_TO_EDGE);
@@ -21531,11 +21531,11 @@ uniform ${P} ${M} u_${A};
21531
21531
  const wa = [new u.P(0, 0), new u.P(u.a6, 0), new u.P(u.a6, u.a6), new u.P(0, u.a6)];
21532
21532
  function Qa(d, t, n, s, c, f, y, x, w = !1, S = !1) {
21533
21533
  var P;
21534
- const M = s[s.length - 1].overscaledZ, A = d.context, R = A.gl, B = d.useProgram("raster"), j = d.transform, q = d.style.projection, U = d.colorModeForRenderPass(), W = !d.options.moving, ee = n.paint.get("raster-opacity"), H = n.paint.get("resampling") === "nearest" || n.paint.get("raster-resampling") === "nearest" ? R.NEAREST : R.LINEAR, $ = n.paint.get("raster-fade-duration"), Q = !!d.style.map.terrain;
21534
+ const M = s[s.length - 1].overscaledZ, A = d.context, R = A.gl, B = d.useProgram("raster"), j = d.transform, q = d.style.projection, U = d.colorModeForRenderPass(), W = !d.options.moving, ee = n.paint.get("raster-opacity"), H = n.paint.get("resampling") === "nearest" || n.paint.get("raster-resampling") === "nearest" ? R.NEAREST : R.LINEAR, G = n.paint.get("raster-fade-duration"), Q = !!d.style.map.terrain;
21535
21535
  for (const X of s) {
21536
21536
  const oe = d.getDepthModeForSublayer(X.overscaledZ - M, ee === 1 ? nt.ReadWrite : nt.ReadOnly, R.LESS), de = t.getTile(X);
21537
21537
  A.activeTexture.set(R.TEXTURE0), de.texture.bind(H, R.CLAMP_TO_EDGE, R.LINEAR_MIPMAP_NEAREST), A.activeTexture.set(R.TEXTURE1);
21538
- const { parentTile: pe, parentScaleBy: we, parentTopLeft: be, fadeValues: Be } = Tu(de, t, $, Q);
21538
+ const { parentTile: pe, parentScaleBy: we, parentTopLeft: be, fadeValues: Be } = Tu(de, t, G, Q);
21539
21539
  de.fadeOpacity = Be.tileOpacity, pe ? (pe.fadeOpacity = Be.parentTileOpacity, pe.texture.bind(H, R.CLAMP_TO_EDGE, R.LINEAR_MIPMAP_NEAREST)) : de.texture.bind(H, R.CLAMP_TO_EDGE, R.LINEAR_MIPMAP_NEAREST), de.texture.useMipmap && A.extTextureFilterAnisotropic && d.transform.pitch > d.options.anisotropicFilterPitch && R.texParameterf(R.TEXTURE_2D, A.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, A.extTextureFilterAnisotropicMax);
21540
21540
  const Ce = (P = d.style.map.terrain) === null || P === void 0 ? void 0 : P.getTerrainData(X), ve = j.getProjectionData({ overscaledTileID: X, aligned: W, applyGlobeMatrix: !S, applyTerrainMatrix: !0 }), Re = Ol(be, we, Be.fadeMix, n, x), Ue = q.getMeshFromTileID(A, X.canonical, f, y, "raster");
21541
21541
  B.draw(A, R.TRIANGLES, oe, c ? c[X.overscaledZ] : gt.disabled, U, w ? pt.frontCCW : pt.backCCW, Re, Ce, ve, n.id, Ue.vertexBuffer, Ue.indexBuffer, Ue.segments);
@@ -21562,7 +21562,7 @@ uniform ${P} ${M} u_${A};
21562
21562
  }
21563
21563
  return c;
21564
21564
  }
21565
- const Su = new u.bo(1, 0, 0, 1), Pu = new u.bo(0, 1, 0, 1), Iu = new u.bo(0, 0, 1, 1), Eu = new u.bo(1, 0, 1, 1), Gn = new u.bo(0, 1, 1, 1);
21565
+ const Su = new u.bo(1, 0, 0, 1), Pu = new u.bo(0, 1, 0, 1), Iu = new u.bo(0, 0, 1, 1), Eu = new u.bo(1, 0, 1, 1), $n = new u.bo(0, 1, 1, 1);
21566
21566
  function Xl(d, t, n, s) {
21567
21567
  Ro(d, 0, t + n / 2, d.transform.width, n, s);
21568
21568
  }
@@ -21581,8 +21581,8 @@ uniform ${P} ${M} u_${A};
21581
21581
  let q = n.canonical.toString();
21582
21582
  n.overscaledZ !== n.canonical.z && (q += ` => ${n.overscaledZ}`), (function(W, ee) {
21583
21583
  W.initDebugOverlayCanvas();
21584
- const H = W.debugOverlayCanvas, $ = W.context.gl, Q = W.debugOverlayCanvas.getContext("2d");
21585
- Q.clearRect(0, 0, H.width, H.height), Q.shadowColor = "white", Q.shadowBlur = 2, Q.lineWidth = 1.5, Q.strokeStyle = "white", Q.textBaseline = "top", Q.font = "bold 36px Open Sans, sans-serif", Q.fillText(ee, 5, 5), Q.strokeText(ee, 5, 5), W.debugOverlayTexture.update(H), W.debugOverlayTexture.bind($.LINEAR, $.CLAMP_TO_EDGE);
21584
+ const H = W.debugOverlayCanvas, G = W.context.gl, Q = W.debugOverlayCanvas.getContext("2d");
21585
+ Q.clearRect(0, 0, H.width, H.height), Q.shadowColor = "white", Q.shadowBlur = 2, Q.lineWidth = 1.5, Q.strokeStyle = "white", Q.textBaseline = "top", Q.font = "bold 36px Open Sans, sans-serif", Q.fillText(ee, 5, 5), Q.strokeText(ee, 5, 5), W.debugOverlayTexture.update(H), W.debugOverlayTexture.bind(G.LINEAR, G.CLAMP_TO_EDGE);
21586
21586
  })(d, `${q} ${R}kB`);
21587
21587
  const U = d.transform.getProjectionData({ overscaledTileID: n, applyGlobeMatrix: !0, applyTerrainMatrix: !0 });
21588
21588
  y.draw(c, f.TRIANGLES, x, w, zt.alphaBlended, pt.disabled, kl(u.bo.transparent, j), null, U, P, d.debugBuffer, d.quadTriangleIndexBuffer, d.debugSegments), y.draw(c, f.LINE_STRIP, x, w, S, pt.disabled, kl(u.bo.red), M, U, P, d.debugBuffer, d.tileBorderIndexBuffer, d.debugSegments);
@@ -21611,14 +21611,14 @@ uniform ${P} ${M} u_${A};
21611
21611
  const { isRenderingToTexture: y } = f, x = gt.disabled, w = d.colorModeForRenderPass();
21612
21612
  (n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && (function(S, P, M, A, R, B, j, q, U) {
21613
21613
  var W;
21614
- const ee = P.transform, H = P.style.map.terrain, $ = R === "map", Q = B === "map";
21614
+ const ee = P.transform, H = P.style.map.terrain, G = R === "map", Q = B === "map";
21615
21615
  for (const X of S) {
21616
21616
  const oe = A.getTile(X), de = oe.getBucket(M);
21617
21617
  if (!(!((W = de?.text) === null || W === void 0) && W.segments.get().length)) continue;
21618
- const pe = u.aw(de.textSizeData, ee.zoom), we = u.aK(oe, 1, P.transform.zoom), be = ei($, P.transform, we), Be = M.layout.get("icon-text-fit") !== "none" && de.hasIconData();
21618
+ const pe = u.aw(de.textSizeData, ee.zoom), we = u.aK(oe, 1, P.transform.zoom), be = ei(G, P.transform, we), Be = M.layout.get("icon-text-fit") !== "none" && de.hasIconData();
21619
21619
  if (pe) {
21620
21620
  const Ce = Math.pow(2, ee.zoom - oe.tileID.overscaledZ), ve = H ? (Re, Ue) => H.getElevation(X, Re, Ue) : null;
21621
- Ao(de, $, Q, U, ee, be, Ce, pe, Be, u.aL(ee, oe, j, q), X.toUnwrapped(), ve);
21621
+ Ao(de, G, Q, U, ee, be, Ce, pe, Be, u.aL(ee, oe, j, q), X.toUnwrapped(), ve);
21622
21622
  }
21623
21623
  }
21624
21624
  })(s, d, n, t, n.layout.get("text-rotation-alignment"), n.layout.get("text-pitch-alignment"), n.paint.get("text-translate"), n.paint.get("text-translate-anchor"), c), n.paint.get("icon-opacity").constantOr(1) !== 0 && ql(d, t, n, s, !1, n.paint.get("icon-translate"), n.paint.get("icon-translate-anchor"), n.layout.get("icon-rotation-alignment"), n.layout.get("icon-pitch-alignment"), n.layout.get("icon-keep-upright"), x, w, y), n.paint.get("text-opacity").constantOr(1) !== 0 && ql(d, t, n, s, !0, n.paint.get("text-translate"), n.paint.get("text-translate-anchor"), n.layout.get("text-rotation-alignment"), n.layout.get("text-pitch-alignment"), n.layout.get("text-keep-upright"), x, w, y), t.map.showCollisionBoxes && (Ya(d, t, n, s, !0), Ya(d, t, n, s, !1));
@@ -21629,18 +21629,18 @@ uniform ${P} ${M} u_${A};
21629
21629
  if (x.constantOr(1) === 0 && (w.constantOr(1) === 0 || S.constantOr(1) === 0)) return;
21630
21630
  const M = d.context, A = M.gl, R = d.transform, B = d.getDepthModeForSublayer(0, nt.ReadOnly), j = gt.disabled, q = d.colorModeForRenderPass(), U = [], W = R.getCircleRadiusCorrection();
21631
21631
  for (const ee of s) {
21632
- const H = t.getTile(ee), $ = H.getBucket(n);
21633
- if (!$) continue;
21634
- const Q = n.paint.get("circle-translate"), X = n.paint.get("circle-translate-anchor"), oe = u.aL(R, H, Q, X), de = $.programConfigurations.get(n.id), pe = d.useProgram("circle", de), we = $.layoutVertexBuffer, be = $.indexBuffer, Be = (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(ee), Ce = { programConfiguration: de, program: pe, layoutVertexBuffer: we, indexBuffer: be, uniformValues: ou(d, H, n, oe, W), terrainData: Be, projectionData: R.getProjectionData({ overscaledTileID: ee, applyGlobeMatrix: !y, applyTerrainMatrix: !0 }) };
21632
+ const H = t.getTile(ee), G = H.getBucket(n);
21633
+ if (!G) continue;
21634
+ const Q = n.paint.get("circle-translate"), X = n.paint.get("circle-translate-anchor"), oe = u.aL(R, H, Q, X), de = G.programConfigurations.get(n.id), pe = d.useProgram("circle", de), we = G.layoutVertexBuffer, be = G.indexBuffer, Be = (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(ee), Ce = { programConfiguration: de, program: pe, layoutVertexBuffer: we, indexBuffer: be, uniformValues: ou(d, H, n, oe, W), terrainData: Be, projectionData: R.getProjectionData({ overscaledTileID: ee, applyGlobeMatrix: !y, applyTerrainMatrix: !0 }) };
21635
21635
  if (P) {
21636
- const ve = $.segments.get();
21636
+ const ve = G.segments.get();
21637
21637
  for (const Re of ve) U.push({ segments: new u.aV([Re]), sortKey: Re.sortKey, state: Ce });
21638
- } else U.push({ segments: $.segments, sortKey: 0, state: Ce });
21638
+ } else U.push({ segments: G.segments, sortKey: 0, state: Ce });
21639
21639
  }
21640
21640
  P && U.sort(((ee, H) => ee.sortKey - H.sortKey));
21641
21641
  for (const ee of U) {
21642
- const { programConfiguration: H, program: $, layoutVertexBuffer: Q, indexBuffer: X, uniformValues: oe, terrainData: de, projectionData: pe } = ee.state;
21643
- $.draw(M, A.TRIANGLES, B, j, q, pt.backCCW, oe, de, pe, n.id, Q, X, ee.segments, n.paint, d.transform.zoom, H);
21642
+ const { programConfiguration: H, program: G, layoutVertexBuffer: Q, indexBuffer: X, uniformValues: oe, terrainData: de, projectionData: pe } = ee.state;
21643
+ G.draw(M, A.TRIANGLES, B, j, q, pt.backCCW, oe, de, pe, n.id, Q, X, ee.segments, n.paint, d.transform.zoom, H);
21644
21644
  }
21645
21645
  }, heatmap: function(d, t, n, s, c) {
21646
21646
  if (n.paint.get("heatmap-opacity") === 0) return;
@@ -21656,15 +21656,15 @@ uniform ${P} ${M} u_${A};
21656
21656
  (function(U, W, ee) {
21657
21657
  const H = U.gl;
21658
21658
  U.activeTexture.set(H.TEXTURE1), U.viewport.set([0, 0, W.width / 4, W.height / 4]);
21659
- let $ = ee.heatmapFbos.get(u.cd);
21660
- $ ? (H.bindTexture(H.TEXTURE_2D, $.colorAttachment.get()), U.bindFramebuffer.set($.framebuffer)) : ($ = Hl(U, W.width / 4, W.height / 4), ee.heatmapFbos.set(u.cd, $));
21659
+ let G = ee.heatmapFbos.get(u.cd);
21660
+ G ? (H.bindTexture(H.TEXTURE_2D, G.colorAttachment.get()), U.bindFramebuffer.set(G.framebuffer)) : (G = Hl(U, W.width / 4, W.height / 4), ee.heatmapFbos.set(u.cd, G));
21661
21661
  })(A, w, P), A.clear({ color: u.bo.transparent });
21662
21662
  for (const U of M) {
21663
21663
  if (S.hasRenderableParent(U)) continue;
21664
21664
  const W = S.getTile(U), ee = W.getBucket(P);
21665
21665
  if (!ee) continue;
21666
- const H = ee.programConfigurations.get(P.id), $ = w.useProgram("heatmap", H), Q = B.getProjectionData({ overscaledTileID: U, applyGlobeMatrix: !0, applyTerrainMatrix: !1 }), X = B.getCircleRadiusCorrection();
21667
- $.draw(A, R.TRIANGLES, nt.disabled, j, q, pt.backCCW, Ll(W, B.zoom, P.paint.get("heatmap-intensity"), X), null, Q, P.id, ee.layoutVertexBuffer, ee.indexBuffer, ee.segments, P.paint, B.zoom, H);
21666
+ const H = ee.programConfigurations.get(P.id), G = w.useProgram("heatmap", H), Q = B.getProjectionData({ overscaledTileID: U, applyGlobeMatrix: !0, applyTerrainMatrix: !1 }), X = B.getCircleRadiusCorrection();
21667
+ G.draw(A, R.TRIANGLES, nt.disabled, j, q, pt.backCCW, Ll(W, B.zoom, P.paint.get("heatmap-intensity"), X), null, Q, P.id, ee.layoutVertexBuffer, ee.indexBuffer, ee.segments, P.paint, B.zoom, H);
21668
21668
  }
21669
21669
  A.viewport.set([0, 0, w.width, w.height]);
21670
21670
  })(d, t, n, s) : d.renderPass === "translucent" && (function(w, S) {
@@ -21682,13 +21682,13 @@ uniform ${P} ${M} u_${A};
21682
21682
  let U;
21683
21683
  U = B ? "linePattern" : A && j ? "lineGradientSDF" : A ? "lineSDF" : j ? "lineGradient" : "line";
21684
21684
  const W = d.context, ee = W.gl, H = d.transform;
21685
- let $ = !0;
21685
+ let G = !0;
21686
21686
  for (const Q of s) {
21687
21687
  const X = t.getTile(Q);
21688
21688
  if (B && !X.patternsLoaded()) continue;
21689
21689
  const oe = X.getBucket(n);
21690
21690
  if (!oe) continue;
21691
- const de = oe.programConfigurations.get(n.id), pe = d.context.program.get(), we = d.useProgram(U, de), be = $ || we.program !== pe, Be = (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(Q), Ce = R.constantOr(null), ve = M?.constantOr(null);
21691
+ const de = oe.programConfigurations.get(n.id), pe = d.context.program.get(), we = d.useProgram(U, de), be = G || we.program !== pe, Be = (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(Q), Ce = R.constantOr(null), ve = M?.constantOr(null);
21692
21692
  if (Ce && X.imageAtlas) {
21693
21693
  const Mt = X.imageAtlas, mi = Mt.patternPositions[Ce.to.toString()], xi = Mt.patternPositions[Ce.from.toString()];
21694
21694
  mi && xi && de.setConstantPatternPositions(mi, xi);
@@ -21700,7 +21700,7 @@ uniform ${P} ${M} u_${A};
21700
21700
  let St;
21701
21701
  B ? (St = cu(d, X, n, Ue, q), Bh(W, ee, X, de, q)) : A && j ? (St = uu(d, X, n, Ue, q, oe.lineClipsArray.length), ba(d, t, W, ee, n, oe, Q, de, q)) : A ? (St = Fl(d, X, n, Ue, q), wu(d, W, ee, de, be, q)) : j ? (St = lu(d, X, n, Ue, oe.lineClipsArray.length), ui(d, t, W, ee, n, oe, Q)) : St = To(d, X, n, Ue);
21702
21702
  const hi = d.stencilModeForClipping(Q);
21703
- we.draw(W, ee.TRIANGLES, S, hi, P, pt.disabled, St, Be, Re, n.id, oe.layoutVertexBuffer, oe.indexBuffer, oe.segments, n.paint, d.transform.zoom, de, oe.layoutVertexBuffer2), $ = !1;
21703
+ we.draw(W, ee.TRIANGLES, S, hi, P, pt.disabled, St, Be, Re, n.id, oe.layoutVertexBuffer, oe.indexBuffer, oe.segments, n.paint, d.transform.zoom, de, oe.layoutVertexBuffer2), G = !1;
21704
21704
  }
21705
21705
  }, fill: function(d, t, n, s, c) {
21706
21706
  const f = n.paint.get("fill-color"), y = n.paint.get("fill-opacity");
@@ -21732,20 +21732,20 @@ uniform ${P} ${M} u_${A};
21732
21732
  if (d.renderPass === "offscreen") (function(P, M, A, R, B, j, q) {
21733
21733
  const U = P.context, W = U.gl, ee = R.paint.get("resampling") === "nearest" ? W.NEAREST : W.LINEAR;
21734
21734
  for (const H of A) {
21735
- const $ = M.getTile(H), Q = $.dem;
21736
- if (!Q?.data || !$.needsHillshadePrepare) continue;
21735
+ const G = M.getTile(H), Q = G.dem;
21736
+ if (!Q?.data || !G.needsHillshadePrepare) continue;
21737
21737
  const X = Q.dim, oe = Q.stride, de = Q.getPixels();
21738
- if (U.activeTexture.set(W.TEXTURE1), U.pixelStoreUnpackPremultiplyAlpha.set(!1), $.demTexture || ($.demTexture = P.getTileTexture(oe)), $.demTexture) {
21739
- const we = $.demTexture;
21738
+ if (U.activeTexture.set(W.TEXTURE1), U.pixelStoreUnpackPremultiplyAlpha.set(!1), G.demTexture || (G.demTexture = P.getTileTexture(oe)), G.demTexture) {
21739
+ const we = G.demTexture;
21740
21740
  we.update(de, { premultiply: !1 }), we.bind(W.NEAREST, W.CLAMP_TO_EDGE);
21741
- } else $.demTexture = new u.T(U, de, W.RGBA, { premultiply: !1 }), $.demTexture.bind(W.NEAREST, W.CLAMP_TO_EDGE);
21741
+ } else G.demTexture = new u.T(U, de, W.RGBA, { premultiply: !1 }), G.demTexture.bind(W.NEAREST, W.CLAMP_TO_EDGE);
21742
21742
  U.activeTexture.set(W.TEXTURE0);
21743
- let pe = $.fbo;
21743
+ let pe = G.fbo;
21744
21744
  if (!pe) {
21745
21745
  const we = new u.T(U, { width: X, height: X, data: null }, W.RGBA);
21746
- we.bind(ee, W.CLAMP_TO_EDGE), pe = $.fbo = U.createFramebuffer(X, X, !0, !1), pe.colorAttachment.set(we.texture);
21746
+ we.bind(ee, W.CLAMP_TO_EDGE), pe = G.fbo = U.createFramebuffer(X, X, !0, !1), pe.colorAttachment.set(we.texture);
21747
21747
  }
21748
- U.bindFramebuffer.set(pe.framebuffer), U.viewport.set([0, 0, X, X]), P.useProgram("hillshadePrepare").draw(U, W.TRIANGLES, B, j, q, pt.disabled, fs($.tileID, Q), null, null, R.id, P.rasterBoundsBuffer, P.quadTriangleIndexBuffer, P.rasterBoundsSegments), $.needsHillshadePrepare = !1;
21748
+ U.bindFramebuffer.set(pe.framebuffer), U.viewport.set([0, 0, X, X]), P.useProgram("hillshadePrepare").draw(U, W.TRIANGLES, B, j, q, pt.disabled, fs(G.tileID, Q), null, null, R.id, P.rasterBoundsBuffer, P.quadTriangleIndexBuffer, P.rasterBoundsSegments), G.needsHillshadePrepare = !1;
21749
21749
  }
21750
21750
  })(d, t, s, n, w, gt.disabled, S), y.viewport.set([0, 0, d.width, d.height]);
21751
21751
  else if (d.renderPass === "translucent") if (x) {
@@ -21768,7 +21768,7 @@ uniform ${P} ${M} u_${A};
21768
21768
  }, raster: function(d, t, n, s, c) {
21769
21769
  if (d.renderPass !== "translucent" || n.paint.get("raster-opacity") === 0 || !s.length) return;
21770
21770
  const { isRenderingToTexture: f } = c, y = t.getSource(), x = d.style.projection.useSubdivision;
21771
- if (y instanceof $r) Qa(d, t, n, s, null, !1, !1, y.tileCoords, y.flippedWindingOrder, f);
21771
+ if (y instanceof Gr) Qa(d, t, n, s, null, !1, !1, y.tileCoords, y.flippedWindingOrder, f);
21772
21772
  else if (x) {
21773
21773
  const [w, S, P] = d.stencilConfigForOverlapTwoPass(s);
21774
21774
  Qa(d, t, n, P, w, !1, !0, wa, !1, f), Qa(d, t, n, P, S, !0, !0, wa, !1, f);
@@ -21786,9 +21786,9 @@ uniform ${P} ${M} u_${A};
21786
21786
  if (d.renderPass !== j) return;
21787
21787
  const q = gt.disabled, U = d.getDepthModeForSublayer(0, j === "opaque" ? nt.ReadWrite : nt.ReadOnly), W = d.colorModeForRenderPass(), ee = d.useProgram(B ? "backgroundPattern" : "background"), H = s || dr(A, { tileSize: R, terrain: d.style.map.terrain });
21788
21788
  B && (S.activeTexture.set(P.TEXTURE0), d.imageManager.bind(d.context));
21789
- const $ = n.getCrossfadeParameters();
21789
+ const G = n.getCrossfadeParameters();
21790
21790
  for (const Q of H) {
21791
- const X = A.getProjectionData({ overscaledTileID: Q, applyGlobeMatrix: !w, applyTerrainMatrix: !0 }), oe = B ? Vl(x, d, B, { tileID: Q, tileSize: R }, $) : _a(x, y), de = (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(Q), pe = M.getMeshFromTileID(S, Q.canonical, !1, !0, "raster");
21791
+ const X = A.getProjectionData({ overscaledTileID: Q, applyGlobeMatrix: !w, applyTerrainMatrix: !0 }), oe = B ? Vl(x, d, B, { tileID: Q, tileSize: R }, G) : _a(x, y), de = (f = d.style.map.terrain) === null || f === void 0 ? void 0 : f.getTerrainData(Q), pe = M.getMeshFromTileID(S, Q.canonical, !1, !0, "raster");
21792
21792
  ee.draw(S, P.TRIANGLES, U, q, W, pt.backCCW, oe, de, X, n.id, pe.vertexBuffer, pe.indexBuffer, pe.segments);
21793
21793
  }
21794
21794
  }, sky: function(d, t) {
@@ -21827,7 +21827,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
21827
21827
  const n = d.transform.centerPoint;
21828
21828
  (function(s, c, f, y) {
21829
21829
  Ro(s, c - 1, f - 10, 2, 20, y), Ro(s, c - 10, f - 1, 20, 2, y);
21830
- })(d, n.x, d.transform.height - n.y, Gn);
21830
+ })(d, n.x, d.transform.height - n.y, $n);
21831
21831
  }, terrainDepth: function(d, t) {
21832
21832
  const n = d.context, s = n.gl, c = d.transform, f = zt.unblended, y = new nt(s.LEQUAL, nt.ReadWrite, [0, 1]), x = t.tileManager.getRenderableTiles(), w = d.useProgram("terrainDepth");
21833
21833
  n.bindFramebuffer.set(t.getFramebuffer("depth").framebuffer), n.viewport.set([0, 0, d.width / devicePixelRatio, d.height / devicePixelRatio]), n.clear({ color: u.bo.transparent, depth: 1 });
@@ -21984,11 +21984,11 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
21984
21984
  if (M.isRenderingGlobe && this.drawFunctions.atmosphere(this, this.style.sky, this.style.light), this.options.showTileBoundaries) {
21985
21985
  const R = (function(B, j) {
21986
21986
  let q = null;
21987
- const U = Object.values(B._layers).flatMap((($) => $.source && !$.isHidden(j) ? [B.tileManagers[$.source]] : [])), W = U.filter((($) => $.getSource().type === "vector")), ee = U.filter((($) => $.getSource().type !== "vector")), H = ($) => {
21988
- (!q || q.getSource().maxzoom < $.getSource().maxzoom) && (q = $);
21987
+ const U = Object.values(B._layers).flatMap(((G) => G.source && !G.isHidden(j) ? [B.tileManagers[G.source]] : [])), W = U.filter(((G) => G.getSource().type === "vector")), ee = U.filter(((G) => G.getSource().type !== "vector")), H = (G) => {
21988
+ (!q || q.getSource().maxzoom < G.getSource().maxzoom) && (q = G);
21989
21989
  };
21990
- for (const $ of W) H($);
21991
- if (!q) for (const $ of ee) H($);
21990
+ for (const G of W) H(G);
21991
+ if (!q) for (const G of ee) H(G);
21992
21992
  return q;
21993
21993
  })(this.style, this.transform.zoom);
21994
21994
  R && this.drawFunctions.debug(this, R, R.getVisibleCoordinates());
@@ -22951,7 +22951,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
22951
22951
  return this._active;
22952
22952
  }
22953
22953
  }
22954
- class Gh {
22954
+ class $h {
22955
22955
  constructor() {
22956
22956
  this._tap = new Bo({ numTouches: 1, numTaps: 1 }), this._zoomRate = 1, this.reset();
22957
22957
  }
@@ -23103,7 +23103,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23103
23103
  }), 100));
23104
23104
  }
23105
23105
  }
23106
- const $n = (d) => d.zoom || d.drag || d.roll || d.pitch || d.rotate;
23106
+ const Gn = (d) => d.zoom || d.drag || d.roll || d.pitch || d.rotate;
23107
23107
  class Vu extends u.n {
23108
23108
  }
23109
23109
  function to(d) {
@@ -23164,33 +23164,33 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23164
23164
  this._add("cooperativeGestures", f), t.cooperativeGestures && f.enable();
23165
23165
  const y = new ku(n), x = new ju(n);
23166
23166
  n.doubleClickZoom = new lc(x, y), this._add("tapZoom", y), this._add("clickZoom", x), t.interactive && t.doubleClickZoom && n.doubleClickZoom.enable();
23167
- const w = new Gh();
23167
+ const w = new $h();
23168
23168
  this._add("tapDragZoom", w);
23169
23169
  const S = n.touchPitch = new Pn(n);
23170
23170
  this._add("touchPitch", S), t.interactive && t.touchPitch && n.touchPitch.enable(t.touchPitch);
23171
- const P = () => n.project(n.getCenter()), M = (function({ enable: H, clickTolerance: $, aroundCenter: Q = !0, minPixelCenterThreshold: X = 100, rotateDegreesPerPixelMoved: oe = 0.8 }, de) {
23171
+ const P = () => n.project(n.getCenter()), M = (function({ enable: H, clickTolerance: G, aroundCenter: Q = !0, minPixelCenterThreshold: X = 100, rotateDegreesPerPixelMoved: oe = 0.8 }, de) {
23172
23172
  const pe = new Ta({ checkCorrectEvent: (we) => we.button === 0 && we.ctrlKey || we.button === 2 && !we.ctrlKey });
23173
- return new Sn({ clickTolerance: $, move: (we, be) => {
23173
+ return new Sn({ clickTolerance: G, move: (we, be) => {
23174
23174
  const Be = de();
23175
23175
  if (Q && Math.abs(Be.y - we.y) > X) return { bearingDelta: u.cx(new u.P(we.x, be.y), be, Be) };
23176
23176
  let Ce = (be.x - we.x) * oe;
23177
23177
  return Q && be.y < Be.y && (Ce = -Ce), { bearingDelta: Ce };
23178
23178
  }, moveStateManager: pe, enable: H, assignEvents: Cs });
23179
- })(t, P), A = (function({ enable: H, clickTolerance: $, pitchDegreesPerPixelMoved: Q = -0.5 }) {
23179
+ })(t, P), A = (function({ enable: H, clickTolerance: G, pitchDegreesPerPixelMoved: Q = -0.5 }) {
23180
23180
  const X = new Ta({ checkCorrectEvent: (oe) => oe.button === 0 && oe.ctrlKey || oe.button === 2 });
23181
- return new Sn({ clickTolerance: $, move: (oe, de) => ({ pitchDelta: (de.y - oe.y) * Q }), moveStateManager: X, enable: H, assignEvents: Cs });
23182
- })(t), R = (function({ enable: H, clickTolerance: $, rollDegreesPerPixelMoved: Q = 0.3 }, X) {
23181
+ return new Sn({ clickTolerance: G, move: (oe, de) => ({ pitchDelta: (de.y - oe.y) * Q }), moveStateManager: X, enable: H, assignEvents: Cs });
23182
+ })(t), R = (function({ enable: H, clickTolerance: G, rollDegreesPerPixelMoved: Q = 0.3 }, X) {
23183
23183
  const oe = new Ta({ checkCorrectEvent: (de) => de.button === 2 && de.ctrlKey });
23184
- return new Sn({ clickTolerance: $, move: (de, pe) => {
23184
+ return new Sn({ clickTolerance: G, move: (de, pe) => {
23185
23185
  const we = X();
23186
23186
  let be = (pe.x - de.x) * Q;
23187
23187
  return pe.y < we.y && (be = -be), { rollDelta: be };
23188
23188
  }, moveStateManager: oe, enable: H, assignEvents: Cs });
23189
23189
  })(t, P);
23190
23190
  n.dragRotate = new Vo(t, M, A, R), this._add("mouseRotate", M, ["mousePitch"]), this._add("mousePitch", A, ["mouseRotate", "mouseRoll"]), this._add("mouseRoll", R, ["mousePitch"]), t.interactive && t.dragRotate && n.dragRotate.enable();
23191
- const B = (function({ enable: H, clickTolerance: $ }) {
23191
+ const B = (function({ enable: H, clickTolerance: G }) {
23192
23192
  const Q = new Ta({ checkCorrectEvent: (X) => X.button === 0 && !X.ctrlKey });
23193
- return new Sn({ clickTolerance: $, move: (X, oe) => ({ around: oe, panDelta: oe.sub(X) }), activateOnStart: !0, moveStateManager: Q, enable: H, assignEvents: Cs });
23193
+ return new Sn({ clickTolerance: G, move: (X, oe) => ({ around: oe, panDelta: oe.sub(X) }), activateOnStart: !0, moveStateManager: Q, enable: H, assignEvents: Cs });
23194
23194
  })(t), j = new Fu(t, n);
23195
23195
  n.dragPan = new en(s, B, j), this._add("mousePan", B), this._add("touchPan", j, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
23196
23196
  const q = new Bu(), U = new Ou();
@@ -23220,7 +23220,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23220
23220
  return !!this._eventsInProgress.rotate;
23221
23221
  }
23222
23222
  isMoving() {
23223
- return !!$n(this._eventsInProgress) || this.isZooming();
23223
+ return !!Gn(this._eventsInProgress) || this.isZooming();
23224
23224
  }
23225
23225
  _blockedByActive(t, n, s) {
23226
23226
  for (const c in t) if (c !== s && !n?.includes(c)) return !0;
@@ -23259,7 +23259,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23259
23259
  x.handleMapControlsPan(s, n, c);
23260
23260
  }
23261
23261
  _fireEvents(t, n, s) {
23262
- const c = $n(this._eventsInProgress), f = $n(t), y = {};
23262
+ const c = Gn(this._eventsInProgress), f = Gn(t), y = {};
23263
23263
  for (const M in t) {
23264
23264
  const { originalEvent: A } = t[M];
23265
23265
  this._eventsInProgress[M] || (y[`${M}start`] = A), this._eventsInProgress[M] = t[M];
@@ -23278,7 +23278,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23278
23278
  this._handlersById[A].isActive() || (delete this._eventsInProgress[M], w = n[A] || R, x[`${M}end`] = w);
23279
23279
  }
23280
23280
  for (const M in x) this._fireEvent(M, x[M]);
23281
- const S = $n(this._eventsInProgress), P = (c || f) && !S;
23281
+ const S = Gn(this._eventsInProgress), P = (c || f) && !S;
23282
23282
  if (P && this._terrainMovement) {
23283
23283
  this._map._elevationFreeze = !1, this._terrainMovement = !1;
23284
23284
  const M = this._map._getTransformForUpdate();
@@ -23402,7 +23402,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23402
23402
  return this.jumpTo({ roll: t }, n), this;
23403
23403
  }
23404
23404
  cameraForBounds(t, n) {
23405
- t = $e.convert(t).adjustAntiMeridian();
23405
+ t = Ge.convert(t).adjustAntiMeridian();
23406
23406
  const s = n?.bearing || 0;
23407
23407
  return this._cameraForBoxAndBearing(t.getNorthWest(), t.getSouthEast(), s, n);
23408
23408
  }
@@ -23414,7 +23414,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23414
23414
  }
23415
23415
  const y = u.e(f, c.padding);
23416
23416
  c.padding = y;
23417
- const x = this.transform, w = new $e(t, n), S = this.cameraHelper.cameraForBoxAndBearing(c, y, w, s, x);
23417
+ const x = this.transform, w = new Ge(t, n), S = this.cameraHelper.cameraForBoxAndBearing(c, y, w, s, x);
23418
23418
  return S && this._zoomSnap && (S.zoom = u.cw(S.zoom, this._zoomSnap, -1)), S;
23419
23419
  }
23420
23420
  fitBounds(t, n, s) {
@@ -23520,7 +23520,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23520
23520
  const U = Math.max(s.width, s.height), W = U / j.scaleOfZoom, ee = j.pixelPathLength;
23521
23521
  typeof j.scaleOfMinZoom == "number" && (q = Math.sqrt(U / j.scaleOfMinZoom / ee * 2));
23522
23522
  const H = q * q;
23523
- function $(be) {
23523
+ function G(be) {
23524
23524
  const Be = (W * W - U * U + (be ? -1 : 1) * H * H * ee * ee) / (2 * (be ? W : U) * H * ee);
23525
23525
  return Math.log(Math.sqrt(Be * Be + 1) - Be);
23526
23526
  }
@@ -23530,13 +23530,13 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23530
23530
  function X(be) {
23531
23531
  return (Math.exp(be) + Math.exp(-be)) / 2;
23532
23532
  }
23533
- const oe = $(!1);
23533
+ const oe = G(!1);
23534
23534
  let de = function(be) {
23535
23535
  return X(oe) / X(oe + q * be);
23536
23536
  }, pe = function(be) {
23537
23537
  return U * ((X(oe) * (Q(Be = oe + q * be) / X(Be)) - Q(oe)) / H) / ee;
23538
23538
  var Be;
23539
- }, we = ($(!0) - oe) / q;
23539
+ }, we = (G(!0) - oe) / q;
23540
23540
  if (Math.abs(ee) < 2e-6 || !isFinite(we)) {
23541
23541
  if (Math.abs(U - W) < 1e-6) return this.easeTo(t, n);
23542
23542
  const be = W < U ? -1 : 1;
@@ -23647,7 +23647,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23647
23647
  this._container.remove(), this._map.off("resize", this._updateCompact), this._map = void 0, this._compact = void 0;
23648
23648
  }
23649
23649
  }
23650
- class $h {
23650
+ class Gh {
23651
23651
  constructor() {
23652
23652
  this._queue = [], this._id = 0, this._cleared = !1, this._currentlyRunning = !1;
23653
23653
  }
@@ -23852,9 +23852,9 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23852
23852
  for (let X = 0; X <= P; X++) w.emplaceBack(X * M, q, U);
23853
23853
  for (let X = 0; X <= P; X++) w.emplaceBack(X * M, W, ee);
23854
23854
  for (let X = 0; X < P; X++) S.emplaceBack(j + X, B + X, B + X + 1), S.emplaceBack(j + X, B + X + 1, j + X + 1), S.emplaceBack(0 + X, R + X + 1, R + X), S.emplaceBack(0 + X, 0 + X + 1, R + X + 1);
23855
- const H = w.length, $ = H + 2 * (P + 1);
23855
+ const H = w.length, G = H + 2 * (P + 1);
23856
23856
  for (const X of [0, 1]) for (let oe = 0; oe <= P; oe++) for (const de of [0, 1]) w.emplaceBack(X * u.a6, oe * M, de);
23857
- for (let X = 0; X < 2 * P; X += 2) S.emplaceBack(H + X, H + X + 1, H + X + 3), S.emplaceBack(H + X, H + X + 3, H + X + 2), S.emplaceBack($ + X, $ + X + 3, $ + X + 1), S.emplaceBack($ + X, $ + X + 2, $ + X + 3);
23857
+ for (let X = 0; X < 2 * P; X += 2) S.emplaceBack(H + X, H + X + 1, H + X + 3), S.emplaceBack(H + X, H + X + 3, H + X + 2), S.emplaceBack(G + X, G + X + 3, G + X + 1), S.emplaceBack(G + X, G + X + 2, G + X + 3);
23858
23858
  const Q = new Dt(x.createVertexBuffer(w, Zh.members), x.createIndexBuffer(S), u.aV.simpleSegment(0, 0, w.length, S.length));
23859
23859
  return this._meshCache[y] = Q, Q;
23860
23860
  }
@@ -23913,7 +23913,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23913
23913
  }
23914
23914
  }
23915
23915
  const Lt = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0, "color-relief": !0 };
23916
- class Gu {
23916
+ class $u {
23917
23917
  constructor(t, n) {
23918
23918
  this.painter = t, this.terrain = n, this.pool = new Wt(t.context, 30, n.tileManager.tileSize * n.qualityFactor);
23919
23919
  }
@@ -23928,7 +23928,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23928
23928
  this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.tileManager.getRenderableTiles(), this._renderableLayerIds = t._order.filter(((y) => !t._layers[y].isHidden(n))), this._coordsAscending = {};
23929
23929
  for (const y in t.tileManagers) {
23930
23930
  this._coordsAscending[y] = {};
23931
- const x = t.tileManagers[y].getVisibleCoordinates(), w = t.tileManagers[y].getSource(), S = w instanceof $r ? w.terrainTileRanges : null;
23931
+ const x = t.tileManagers[y].getVisibleCoordinates(), w = t.tileManagers[y].getSource(), S = w instanceof Gr ? w.terrainTileRanges : null;
23932
23932
  for (const P of x) {
23933
23933
  const M = this.terrain.tileManager.getTerrainCoords(P, S);
23934
23934
  for (const A in M) (f = this._coordsAscending[y])[A] || (f[A] = []), this._coordsAscending[y][A].push(M[A]);
@@ -23975,7 +23975,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23975
23975
  return !1;
23976
23976
  }
23977
23977
  }
23978
- const Go = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Drag to rotate map, click to reset north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "GlobeControl.Enable": "Enable globe", "GlobeControl.Disable": "Disable globe", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, ks = _e, Ls = { hash: !1, interactive: !0, bearingSnap: 7, zoomSnap: 0, attributionControl: Rs, maplibreLogo: !1, refreshExpiredTiles: !0, canvasContextAttributes: { antialias: !1, preserveDrawingBuffer: !1, powerPreference: "high-performance", failIfMajorPerformanceCaveat: !1, desynchronized: !1, contextType: void 0 }, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], elevation: 0, zoom: 0, bearing: 0, pitch: 0, roll: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: u.c.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, transformConstrain: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, rollEnabled: !1, reduceMotion: void 0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0, centerClampedToGround: !0, experimentalZoomLevelsToOverscale: void 0, anisotropicFilterPitch: 20 };
23978
+ const $o = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Drag to rotate map, click to reset north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "GlobeControl.Enable": "Enable globe", "GlobeControl.Disable": "Disable globe", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, ks = _e, Ls = { hash: !1, interactive: !0, bearingSnap: 7, zoomSnap: 0, attributionControl: Rs, maplibreLogo: !1, refreshExpiredTiles: !0, canvasContextAttributes: { antialias: !1, preserveDrawingBuffer: !1, powerPreference: "high-performance", failIfMajorPerformanceCaveat: !1, desynchronized: !1, contextType: void 0 }, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], elevation: 0, zoom: 0, bearing: 0, pitch: 0, roll: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: u.c.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, transformConstrain: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, rollEnabled: !1, reduceMotion: void 0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0, centerClampedToGround: !0, experimentalZoomLevelsToOverscale: void 0, anisotropicFilterPitch: 20 };
23979
23979
  let Fs = class extends Uu {
23980
23980
  get _ownerWindow() {
23981
23981
  var d, t;
@@ -23989,7 +23989,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
23989
23989
  if (c.minPitch != null && c.minPitch < 0) throw new Error("minPitch must be greater than or equal to 0");
23990
23990
  if (c.maxPitch != null && c.maxPitch > 180) throw new Error("maxPitch must be less than or equal to 180");
23991
23991
  const f = new ua(), y = new ha();
23992
- c.minZoom !== void 0 && f.setMinZoom(c.minZoom), c.maxZoom !== void 0 && f.setMaxZoom(c.maxZoom), c.minPitch !== void 0 && f.setMinPitch(c.minPitch), c.maxPitch !== void 0 && f.setMaxPitch(c.maxPitch), c.renderWorldCopies !== void 0 && f.setRenderWorldCopies(c.renderWorldCopies), c.transformConstrain !== null && f.setConstrainOverride(c.transformConstrain), super(f, y, { bearingSnap: c.bearingSnap, zoomSnap: c.zoomSnap }), this._idleTriggered = !1, this._crossFadingFactor = 1, this._renderTaskQueue = new $h(), this._controls = [], this._mapId = u.ad(), this._lostContextStyle = { style: null, images: null }, this._contextLost = (w) => {
23992
+ c.minZoom !== void 0 && f.setMinZoom(c.minZoom), c.maxZoom !== void 0 && f.setMaxZoom(c.maxZoom), c.minPitch !== void 0 && f.setMinPitch(c.minPitch), c.maxPitch !== void 0 && f.setMaxPitch(c.maxPitch), c.renderWorldCopies !== void 0 && f.setRenderWorldCopies(c.renderWorldCopies), c.transformConstrain !== null && f.setConstrainOverride(c.transformConstrain), super(f, y, { bearingSnap: c.bearingSnap, zoomSnap: c.zoomSnap }), this._idleTriggered = !1, this._crossFadingFactor = 1, this._renderTaskQueue = new Gh(), this._controls = [], this._mapId = u.ad(), this._lostContextStyle = { style: null, images: null }, this._contextLost = (w) => {
23993
23993
  if (w.preventDefault(), this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this.painter.destroy(), this._lostContextStyle = this._getStyleAndImages(), this.style) {
23994
23994
  for (const S of Object.values(this.style._layers)) if (S.type === "custom" && console.warn(`Custom layer with id '${S.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`), S._listeners) for (const [P] of Object.entries(S._listeners)) console.warn(`Custom layer with id '${S.id}' had event listeners for event '${P}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);
23995
23995
  this.style.destroy(), this.style = null, this.fire(new u.n("webglcontextlost", { originalEvent: w }));
@@ -24000,7 +24000,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24000
24000
  if (w.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, !1;
24001
24001
  }, this._onWindowOnline = () => {
24002
24002
  this._update();
24003
- }, this._interactive = c.interactive, this._maxTileCacheSize = c.maxTileCacheSize, this._maxTileCacheZoomLevels = c.maxTileCacheZoomLevels, this._canvasContextAttributes = Object.assign({}, c.canvasContextAttributes), this._trackResize = c.trackResize === !0, this._bearingSnap = c.bearingSnap, this._zoomSnap = c.zoomSnap, this._centerClampedToGround = c.centerClampedToGround, this._refreshExpiredTiles = c.refreshExpiredTiles === !0, this._fadeDuration = c.fadeDuration, this._crossSourceCollisions = c.crossSourceCollisions === !0, this._collectResourceTiming = c.collectResourceTiming === !0, this._locale = Object.assign(Object.assign({}, Go), c.locale), this._clickTolerance = c.clickTolerance, this._overridePixelRatio = c.pixelRatio, this._maxCanvasSize = c.maxCanvasSize, this._zoomLevelsToOverscale = c.experimentalZoomLevelsToOverscale, this.transformCameraUpdate = c.transformCameraUpdate, this.transformConstrain = c.transformConstrain, this.cancelPendingTileRequestsWhileZooming = c.cancelPendingTileRequestsWhileZooming === !0, this.setAnisotropicFilterPitch(c.anisotropicFilterPitch), c.reduceMotion !== void 0 && (dt.prefersReducedMotion = c.reduceMotion), this._imageQueueHandle = $t.addThrottleControl((() => this.isMoving())), this._requestManager = new ft(c.transformRequest), this._container = this._resolveContainer(c.container), c.maxBounds && this.setMaxBounds(c.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", (() => this._update(!1))), this.on("moveend", (() => this._update(!1))), this.on("zoom", (() => this._update(!0))), this.on("terrain", (() => {
24003
+ }, this._interactive = c.interactive, this._maxTileCacheSize = c.maxTileCacheSize, this._maxTileCacheZoomLevels = c.maxTileCacheZoomLevels, this._canvasContextAttributes = Object.assign({}, c.canvasContextAttributes), this._trackResize = c.trackResize === !0, this._bearingSnap = c.bearingSnap, this._zoomSnap = c.zoomSnap, this._centerClampedToGround = c.centerClampedToGround, this._refreshExpiredTiles = c.refreshExpiredTiles === !0, this._fadeDuration = c.fadeDuration, this._crossSourceCollisions = c.crossSourceCollisions === !0, this._collectResourceTiming = c.collectResourceTiming === !0, this._locale = Object.assign(Object.assign({}, $o), c.locale), this._clickTolerance = c.clickTolerance, this._overridePixelRatio = c.pixelRatio, this._maxCanvasSize = c.maxCanvasSize, this._zoomLevelsToOverscale = c.experimentalZoomLevelsToOverscale, this.transformCameraUpdate = c.transformCameraUpdate, this.transformConstrain = c.transformConstrain, this.cancelPendingTileRequestsWhileZooming = c.cancelPendingTileRequestsWhileZooming === !0, this.setAnisotropicFilterPitch(c.anisotropicFilterPitch), c.reduceMotion !== void 0 && (dt.prefersReducedMotion = c.reduceMotion), this._imageQueueHandle = Gt.addThrottleControl((() => this.isMoving())), this._requestManager = new ft(c.transformRequest), this._container = this._resolveContainer(c.container), c.maxBounds && this.setMaxBounds(c.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", (() => this._update(!1))), this.on("moveend", (() => this._update(!1))), this.on("zoom", (() => this._update(!0))), this.on("terrain", (() => {
24004
24004
  this.painter.terrainFacilitator.depthDirty = !0, this._update(!0);
24005
24005
  })), this.once("idle", (() => this._idleTriggered = !0)), typeof window < "u" && (this._ownerWindow.addEventListener("online", this._onWindowOnline, !1), this._setupResizeObserver()), this.handlers = new rr(this, c), this._hash = c.hash ? new Lo(typeof c.hash == "string" && c.hash || void 0).addTo(this) : void 0, !((t = this._hash) === null || t === void 0) && t._onHashChange() || (this.jumpTo({ center: c.center, elevation: c.elevation, zoom: c.zoom, bearing: c.bearing, pitch: c.pitch, roll: c.roll }), c.bounds && (this.resize(), this.fitBounds(c.bounds, u.e({}, c.fitBoundsOptions, { duration: 0 }))));
24006
24006
  const x = typeof c.style == "string" || ((s = (n = c.style) === null || n === void 0 ? void 0 : n.projection) === null || s === void 0 ? void 0 : s.type) !== "globe";
@@ -24086,7 +24086,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24086
24086
  return this.transform.getMaxBounds();
24087
24087
  }
24088
24088
  setMaxBounds(d) {
24089
- return this.transform.setMaxBounds($e.convert(d)), this._update();
24089
+ return this.transform.setMaxBounds(Ge.convert(d)), this._update();
24090
24090
  }
24091
24091
  setMinZoom(d) {
24092
24092
  if ((d = d ?? -2) >= -2 && d <= this.transform.maxZoom) {
@@ -24320,7 +24320,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24320
24320
  const s = this.style._layers[n];
24321
24321
  s.type === "hillshade" && s.source === d.source && u.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."), s.type === "color-relief" && s.source === d.source && u.w("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.");
24322
24322
  }
24323
- this.terrain = new Uo(this.painter, t, d), this.painter.renderToTexture = new Gu(this.painter, this.terrain), this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this._terrainDataCallback = (n) => {
24323
+ this.terrain = new Uo(this.painter, t, d), this.painter.renderToTexture = new $u(this.painter, this.terrain), this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this._terrainDataCallback = (n) => {
24324
24324
  var s;
24325
24325
  n.dataType === "style" ? this.terrain.tileManager.freeRtt() : n.dataType === "source" && n.tile && (n.sourceId !== d.source || this._elevationFreeze || (this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this._centerClampedToGround && this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center, this.transform.tileZoom))), ((s = n.source) === null || s === void 0 ? void 0 : s.type) === "image" ? this.terrain.tileManager.freeRtt() : this.terrain.tileManager.freeRtt(n.tile.tileID));
24326
24326
  }, this.style.on("data", this._terrainDataCallback);
@@ -24390,7 +24390,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24390
24390
  }
24391
24391
  loadImage(d) {
24392
24392
  return u._(this, void 0, void 0, (function* () {
24393
- return $t.getImage(yield this._requestManager.transformRequest(d, "Image"), new AbortController());
24393
+ return Gt.getImage(yield this._requestManager.transformRequest(d, "Image"), new AbortController());
24394
24394
  }));
24395
24395
  }
24396
24396
  listImages() {
@@ -24574,7 +24574,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24574
24574
  var d, t;
24575
24575
  this._hash && this._hash.remove();
24576
24576
  for (const s of this._controls) s.onRemove(this);
24577
- this._controls = [], this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._renderTaskQueue.clear(), (d = this._diffStyleRequest) === null || d === void 0 || d.abort(), this.painter.destroy(), this.handlers.destroy(), delete this.handlers, this.setStyle(null), typeof window < "u" && this._ownerWindow.removeEventListener("online", this._onWindowOnline, !1), $t.removeThrottleControl(this._imageQueueHandle), (t = this._resizeObserver) === null || t === void 0 || t.disconnect();
24577
+ this._controls = [], this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._renderTaskQueue.clear(), (d = this._diffStyleRequest) === null || d === void 0 || d.abort(), this.painter.destroy(), this.handlers.destroy(), delete this.handlers, this.setStyle(null), typeof window < "u" && this._ownerWindow.removeEventListener("online", this._onWindowOnline, !1), Gt.removeThrottleControl(this._imageQueueHandle), (t = this._resizeObserver) === null || t === void 0 || t.disconnect();
24578
24578
  const n = this.painter.context.gl.getExtension("WEBGL_lose_context");
24579
24579
  n?.loseContext && n.loseContext(), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, !1), this._canvas.removeEventListener("webglcontextlost", this._contextLost, !1), this._canvasContainer.remove(), this._controlContainer.remove(), this._container.removeEventListener("scroll", this._onMapScroll, !1), this._container.classList.remove("maplibregl-map"), this._removed = !0, this.fire(new u.n("remove"));
24580
24580
  }
@@ -24641,7 +24641,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24641
24641
  }
24642
24642
  };
24643
24643
  const uc = { showCompass: !0, showZoom: !0, visualizePitch: !1, visualizeRoll: !0 };
24644
- class $o {
24644
+ class Go {
24645
24645
  constructor(t, n, s = !1) {
24646
24646
  this.mousedown = (f) => {
24647
24647
  this.startMove(f, ye.mousePos(this.element, f)), window.addEventListener("mousemove", this.mousemove), window.addEventListener("mouseup", this.mouseup);
@@ -24970,7 +24970,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24970
24970
  this.options.showUserLocation && this._watchState !== "OFF" && this._updateMarker(t), this.options.trackUserLocation && this._watchState !== "ACTIVE_LOCK" || this._updateCamera(t), this.options.showUserLocation && this._dotElement.classList.remove("maplibregl-user-location-dot-stale"), this.fire(new u.n("geolocate", t)), this._finish();
24971
24971
  }
24972
24972
  }, this._updateCamera = (t) => {
24973
- const n = new u.W(t.coords.longitude, t.coords.latitude), s = t.coords.accuracy, c = this._map.getBearing(), f = u.e({ bearing: c }, this.options.fitBoundsOptions), y = $e.fromLngLat(n, s);
24973
+ const n = new u.W(t.coords.longitude, t.coords.latitude), s = t.coords.accuracy, c = this._map.getBearing(), f = u.e({ bearing: c }, this.options.fitBoundsOptions), y = Ge.fromLngLat(n, s);
24974
24974
  this._map.fitBounds(y, f, { geolocateSource: !0 });
24975
24975
  }, this._updateMarker = (t) => {
24976
24976
  if (t) {
@@ -25121,7 +25121,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
25121
25121
  onRemove() {
25122
25122
  this._container.remove(), this._map.off("styledata", this._updateGlobeIcon), this._map.off("projectiontransition", this._updateGlobeIcon), this._globeButton.removeEventListener("click", this._toggleProjection), this._map = void 0;
25123
25123
  }
25124
- }, D.Hash = Lo, D.ImageSource = $r, D.KeyboardHandler = Nu, D.LngLatBounds = $e, D.LogoControl = cc, D.Map = Fs, D.MapLibreMap = Fs, D.MapMouseEvent = Ir, D.MapTouchEvent = Oo, D.MapWheelEvent = Du, D.Marker = qo, D.NavigationControl = class {
25124
+ }, D.Hash = Lo, D.ImageSource = Gr, D.KeyboardHandler = Nu, D.LngLatBounds = Ge, D.LogoControl = cc, D.Map = Fs, D.MapLibreMap = Fs, D.MapMouseEvent = Ir, D.MapTouchEvent = Oo, D.MapWheelEvent = Du, D.Marker = qo, D.NavigationControl = class {
25125
25125
  constructor(d) {
25126
25126
  this._updateZoomButtons = () => {
25127
25127
  const t = this._map.getZoom(), n = t === this._map.getMaxZoom(), s = t === this._map.getMinZoom();
@@ -25136,7 +25136,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
25136
25136
  })), this._compassIcon = ye.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true"));
25137
25137
  }
25138
25138
  onAdd(d) {
25139
- return this._map = d, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this.options.visualizeRoll && this._map.on("roll", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new $o(this._map, this._compass, this.options.visualizePitch)), this._container;
25139
+ return this._map = d, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this.options.visualizeRoll && this._map.on("roll", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new Go(this._map, this._compass, this.options.visualizePitch)), this._container;
25140
25140
  }
25141
25141
  onRemove() {
25142
25142
  this._container.remove(), this.options.showZoom && this._map.off("zoom", this._updateZoomButtons), this.options.showCompass && (this.options.visualizePitch && this._map.off("pitch", this._rotateCompassArrow), this.options.visualizeRoll && this._map.off("roll", this._rotateCompassArrow), this._map.off("rotate", this._rotateCompassArrow), this._handler.off(), delete this._handler), delete this._map;
@@ -25316,20 +25316,20 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
25316
25316
  }
25317
25317
  var vv = yv();
25318
25318
  const Nc = /* @__PURE__ */ M0(vv);
25319
- function Zm(Z, G) {
25320
- (G == null || G > Z.length) && (G = Z.length);
25321
- for (var Y = 0, ne = Array(G); Y < G; Y++) ne[Y] = Z[Y];
25319
+ function Zm(Z, $) {
25320
+ ($ == null || $ > Z.length) && ($ = Z.length);
25321
+ for (var Y = 0, ne = Array($); Y < $; Y++) ne[Y] = Z[Y];
25322
25322
  return ne;
25323
25323
  }
25324
25324
  function xv(Z) {
25325
25325
  if (Array.isArray(Z)) return Z;
25326
25326
  }
25327
- function bv(Z, G) {
25327
+ function bv(Z, $) {
25328
25328
  var Y = Z == null ? null : typeof Symbol < "u" && Z[Symbol.iterator] || Z["@@iterator"];
25329
25329
  if (Y != null) {
25330
25330
  var ne, ce, Te, D, u = [], _e = !0, Je = !1;
25331
25331
  try {
25332
- if (Te = (Y = Y.call(Z)).next, G !== 0) for (; !(_e = (ne = Te.call(Y)).done) && (u.push(ne.value), u.length !== G); _e = !0) ;
25332
+ if (Te = (Y = Y.call(Z)).next, $ !== 0) for (; !(_e = (ne = Te.call(Y)).done) && (u.push(ne.value), u.length !== $); _e = !0) ;
25333
25333
  } catch (He) {
25334
25334
  Je = !0, ce = He;
25335
25335
  } finally {
@@ -25346,78 +25346,78 @@ function wv() {
25346
25346
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25347
25347
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
25348
25348
  }
25349
- function Tv(Z, G) {
25350
- return xv(Z) || bv(Z, G) || Sv(Z, G) || wv();
25349
+ function Tv(Z, $) {
25350
+ return xv(Z) || bv(Z, $) || Sv(Z, $) || wv();
25351
25351
  }
25352
- function Sv(Z, G) {
25352
+ function Sv(Z, $) {
25353
25353
  if (Z) {
25354
- if (typeof Z == "string") return Zm(Z, G);
25354
+ if (typeof Z == "string") return Zm(Z, $);
25355
25355
  var Y = {}.toString.call(Z).slice(8, -1);
25356
- return Y === "Object" && Z.constructor && (Y = Z.constructor.name), Y === "Map" || Y === "Set" ? Array.from(Z) : Y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y) ? Zm(Z, G) : void 0;
25356
+ return Y === "Object" && Z.constructor && (Y = Z.constructor.name), Y === "Map" || Y === "Set" ? Array.from(Z) : Y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y) ? Zm(Z, $) : void 0;
25357
25357
  }
25358
25358
  }
25359
25359
  const Sg = Object.entries, qm = Object.setPrototypeOf, Pv = Object.isFrozen, Iv = Object.getPrototypeOf, Ev = Object.getOwnPropertyDescriptor;
25360
25360
  let zr = Object.freeze, _n = Object.seal, vl = Object.create, Pg = typeof Reflect < "u" && Reflect, dp = Pg.apply, pp = Pg.construct;
25361
- zr || (zr = function(G) {
25362
- return G;
25361
+ zr || (zr = function($) {
25362
+ return $;
25363
25363
  });
25364
- _n || (_n = function(G) {
25365
- return G;
25364
+ _n || (_n = function($) {
25365
+ return $;
25366
25366
  });
25367
- dp || (dp = function(G, Y) {
25367
+ dp || (dp = function($, Y) {
25368
25368
  for (var ne = arguments.length, ce = new Array(ne > 2 ? ne - 2 : 0), Te = 2; Te < ne; Te++)
25369
25369
  ce[Te - 2] = arguments[Te];
25370
- return G.apply(Y, ce);
25370
+ return $.apply(Y, ce);
25371
25371
  });
25372
- pp || (pp = function(G) {
25372
+ pp || (pp = function($) {
25373
25373
  for (var Y = arguments.length, ne = new Array(Y > 1 ? Y - 1 : 0), ce = 1; ce < Y; ce++)
25374
25374
  ne[ce - 1] = arguments[ce];
25375
- return new G(...ne);
25375
+ return new $(...ne);
25376
25376
  });
25377
25377
  const ml = Oi(Array.prototype.forEach), Mv = Oi(Array.prototype.lastIndexOf), Wm = Oi(Array.prototype.pop), gl = Oi(Array.prototype.push), Av = Oi(Array.prototype.splice), Dr = Array.isArray, Uc = Oi(String.prototype.toLowerCase), np = Oi(String.prototype.toString), Hm = Oi(String.prototype.match), _l = Oi(String.prototype.replace), Xm = Oi(String.prototype.indexOf), Cv = Oi(String.prototype.trim), Dv = Oi(Number.prototype.toString), zv = Oi(Boolean.prototype.toString), Ym = typeof BigInt > "u" ? null : Oi(BigInt.prototype.toString), Km = typeof Symbol > "u" ? null : Oi(Symbol.prototype.toString), Ti = Oi(Object.prototype.hasOwnProperty), jc = Oi(Object.prototype.toString), ur = Oi(RegExp.prototype.test), Vc = Rv(TypeError);
25378
25378
  function Oi(Z) {
25379
- return function(G) {
25380
- G instanceof RegExp && (G.lastIndex = 0);
25379
+ return function($) {
25380
+ $ instanceof RegExp && ($.lastIndex = 0);
25381
25381
  for (var Y = arguments.length, ne = new Array(Y > 1 ? Y - 1 : 0), ce = 1; ce < Y; ce++)
25382
25382
  ne[ce - 1] = arguments[ce];
25383
- return dp(Z, G, ne);
25383
+ return dp(Z, $, ne);
25384
25384
  };
25385
25385
  }
25386
25386
  function Rv(Z) {
25387
25387
  return function() {
25388
- for (var G = arguments.length, Y = new Array(G), ne = 0; ne < G; ne++)
25388
+ for (var $ = arguments.length, Y = new Array($), ne = 0; ne < $; ne++)
25389
25389
  Y[ne] = arguments[ne];
25390
25390
  return pp(Z, Y);
25391
25391
  };
25392
25392
  }
25393
- function ht(Z, G) {
25393
+ function ht(Z, $) {
25394
25394
  let Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Uc;
25395
- if (qm && qm(Z, null), !Dr(G))
25395
+ if (qm && qm(Z, null), !Dr($))
25396
25396
  return Z;
25397
- let ne = G.length;
25397
+ let ne = $.length;
25398
25398
  for (; ne--; ) {
25399
- let ce = G[ne];
25399
+ let ce = $[ne];
25400
25400
  if (typeof ce == "string") {
25401
25401
  const Te = Y(ce);
25402
- Te !== ce && (Pv(G) || (G[ne] = Te), ce = Te);
25402
+ Te !== ce && (Pv($) || ($[ne] = Te), ce = Te);
25403
25403
  }
25404
25404
  Z[ce] = !0;
25405
25405
  }
25406
25406
  return Z;
25407
25407
  }
25408
25408
  function kv(Z) {
25409
- for (let G = 0; G < Z.length; G++)
25410
- Ti(Z, G) || (Z[G] = null);
25409
+ for (let $ = 0; $ < Z.length; $++)
25410
+ Ti(Z, $) || (Z[$] = null);
25411
25411
  return Z;
25412
25412
  }
25413
25413
  function yr(Z) {
25414
- const G = vl(null);
25414
+ const $ = vl(null);
25415
25415
  for (const ne of Sg(Z)) {
25416
25416
  var Y = Tv(ne, 2);
25417
25417
  const ce = Y[0], Te = Y[1];
25418
- Ti(Z, ce) && (Dr(Te) ? G[ce] = kv(Te) : Te && typeof Te == "object" && Te.constructor === Object ? G[ce] = yr(Te) : G[ce] = Te);
25418
+ Ti(Z, ce) && (Dr(Te) ? $[ce] = kv(Te) : Te && typeof Te == "object" && Te.constructor === Object ? $[ce] = yr(Te) : $[ce] = Te);
25419
25419
  }
25420
- return G;
25420
+ return $;
25421
25421
  }
25422
25422
  function Lv(Z) {
25423
25423
  switch (typeof Z) {
@@ -25437,9 +25437,9 @@ function Lv(Z) {
25437
25437
  case "object": {
25438
25438
  if (Z === null)
25439
25439
  return jc(Z);
25440
- const G = Z, Y = ea(G, "toString");
25440
+ const $ = Z, Y = ea($, "toString");
25441
25441
  if (typeof Y == "function") {
25442
- const ne = Y(G);
25442
+ const ne = Y($);
25443
25443
  return typeof ne == "string" ? ne : jc(ne);
25444
25444
  }
25445
25445
  return jc(Z);
@@ -25448,9 +25448,9 @@ function Lv(Z) {
25448
25448
  return jc(Z);
25449
25449
  }
25450
25450
  }
25451
- function ea(Z, G) {
25451
+ function ea(Z, $) {
25452
25452
  for (; Z !== null; ) {
25453
- const ne = Ev(Z, G);
25453
+ const ne = Ev(Z, $);
25454
25454
  if (ne) {
25455
25455
  if (ne.get)
25456
25456
  return Oi(ne.get);
@@ -25471,10 +25471,10 @@ function Fv(Z) {
25471
25471
  return !1;
25472
25472
  }
25473
25473
  }
25474
- const Jm = zr(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ap = zr(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), op = zr(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ov = zr(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), sp = zr(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Bv = zr(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qm = zr(["#text"]), eg = zr(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), lp = zr(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), tg = zr(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), _h = zr(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nv = _n(/{{[\w\W]*|^[\w\W]*}}/g), jv = _n(/<%[\w\W]*|^[\w\W]*%>/g), Vv = _n(/\${[\w\W]*/g), Uv = _n(/^data-[\-\w.\u00B7-\uFFFF]+$/), Gv = _n(/^aria-[\-\w]+$/), ig = _n(
25474
+ const Jm = zr(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ap = zr(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), op = zr(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ov = zr(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), sp = zr(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Bv = zr(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qm = zr(["#text"]), eg = zr(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), lp = zr(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), tg = zr(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), _h = zr(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nv = _n(/{{[\w\W]*|^[\w\W]*}}/g), jv = _n(/<%[\w\W]*|^[\w\W]*%>/g), Vv = _n(/\${[\w\W]*/g), Uv = _n(/^data-[\-\w.\u00B7-\uFFFF]+$/), $v = _n(/^aria-[\-\w]+$/), ig = _n(
25475
25475
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
25476
25476
  // eslint-disable-line no-useless-escape
25477
- ), $v = _n(/^(?:\w+script|data):/i), Zv = _n(
25477
+ ), Gv = _n(/^(?:\w+script|data):/i), Zv = _n(
25478
25478
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
25479
25479
  // eslint-disable-line no-control-regex
25480
25480
  ), qv = _n(/^html$/i), Wv = _n(/^[a-z][.\w]*(-[.\w]+)+$/i), Qn = {
@@ -25495,15 +25495,15 @@ const Jm = zr(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
25495
25495
  // Deprecated
25496
25496
  }, Hv = function() {
25497
25497
  return typeof window > "u" ? null : window;
25498
- }, Xv = function(G, Y) {
25499
- if (typeof G != "object" || typeof G.createPolicy != "function")
25498
+ }, Xv = function($, Y) {
25499
+ if (typeof $ != "object" || typeof $.createPolicy != "function")
25500
25500
  return null;
25501
25501
  let ne = null;
25502
25502
  const ce = "data-tt-policy-suffix";
25503
25503
  Y && Y.hasAttribute(ce) && (ne = Y.getAttribute(ce));
25504
25504
  const Te = "dompurify" + (ne ? "#" + ne : "");
25505
25505
  try {
25506
- return G.createPolicy(Te, {
25506
+ return $.createPolicy(Te, {
25507
25507
  createHTML(D) {
25508
25508
  return D;
25509
25509
  },
@@ -25529,15 +25529,15 @@ const Jm = zr(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
25529
25529
  };
25530
25530
  function Ig() {
25531
25531
  let Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Hv();
25532
- const G = (Ve) => Ig(Ve);
25533
- if (G.version = "3.4.7", G.removed = [], !Z || !Z.document || Z.document.nodeType !== Qn.document || !Z.Element)
25534
- return G.isSupported = !1, G;
25532
+ const $ = (Ve) => Ig(Ve);
25533
+ if ($.version = "3.4.7", $.removed = [], !Z || !Z.document || Z.document.nodeType !== Qn.document || !Z.Element)
25534
+ return $.isSupported = !1, $;
25535
25535
  let Y = Z.document;
25536
25536
  const ne = Y, ce = ne.currentScript;
25537
25537
  Z.DocumentFragment;
25538
25538
  const Te = Z.HTMLTemplateElement, D = Z.Node, u = Z.Element, _e = Z.NodeFilter, Je = Z.NamedNodeMap;
25539
25539
  Je === void 0 && (Z.NamedNodeMap || Z.MozNamedAttrMap), Z.HTMLFormElement;
25540
- const He = Z.DOMParser, Fe = Z.trustedTypes, Ye = u.prototype, dt = ea(Ye, "cloneNode"), jt = ea(Ye, "remove"), Oe = ea(Ye, "nextSibling"), Kt = ea(Ye, "childNodes"), $t = ea(Ye, "parentNode"), ye = ea(Ye, "shadowRoot"), ft = ea(Ye, "attributes"), yt = D && D.prototype ? ea(D.prototype, "nodeType") : null, Zt = D && D.prototype ? ea(D.prototype, "nodeName") : null;
25540
+ const He = Z.DOMParser, Fe = Z.trustedTypes, Ye = u.prototype, dt = ea(Ye, "cloneNode"), jt = ea(Ye, "remove"), Oe = ea(Ye, "nextSibling"), Kt = ea(Ye, "childNodes"), Gt = ea(Ye, "parentNode"), ye = ea(Ye, "shadowRoot"), ft = ea(Ye, "attributes"), yt = D && D.prototype ? ea(D.prototype, "nodeType") : null, Zt = D && D.prototype ? ea(D.prototype, "nodeName") : null;
25541
25541
  if (typeof Te == "function") {
25542
25542
  const Ve = Y.createElement("template");
25543
25543
  Ve.content && Ve.content.ownerDocument && (Y = Ve.content.ownerDocument);
@@ -25545,8 +25545,8 @@ function Ig() {
25545
25545
  let Vt, hr = "";
25546
25546
  const at = Y, K = at.implementation, ie = at.createNodeIterator, ae = at.createDocumentFragment, Pe = at.getElementsByTagName, Le = ne.importNode;
25547
25547
  let We = rg();
25548
- G.isSupported = typeof Sg == "function" && typeof $t == "function" && K && K.createHTMLDocument !== void 0;
25549
- const Ge = Nv, tt = jv, Ke = Vv, ut = Uv, je = Gv, kt = $v, Ct = Zv, Bi = Wv;
25548
+ $.isSupported = typeof Sg == "function" && typeof Gt == "function" && K && K.createHTMLDocument !== void 0;
25549
+ const $e = Nv, tt = jv, Ke = Vv, ut = Uv, je = $v, kt = Gv, Ct = Zv, Bi = Wv;
25550
25550
  let oi = ig, vt = null;
25551
25551
  const Ni = ht({}, [...Jm, ...ap, ...op, ...sp, ...Qm]);
25552
25552
  let It = null;
@@ -25585,9 +25585,9 @@ function Ig() {
25585
25585
  value: null
25586
25586
  }
25587
25587
  }));
25588
- let vr = !0, $e = !0, pi = !1, yi = !0, si = !1, Qt = !0, li = !1, Ur = !1, ta = !1, an = !1, xr = !1, Gr = !1, ia = !0, $r = !1;
25588
+ let vr = !0, Ge = !0, pi = !1, yi = !0, si = !1, Qt = !0, li = !1, Ur = !1, ta = !1, an = !1, xr = !1, $r = !1, ia = !0, Gr = !1;
25589
25589
  const on = "user-content-";
25590
- let ra = !0, yn = !1, Zr = {}, Gi = null;
25590
+ let ra = !0, yn = !1, Zr = {}, $i = null;
25591
25591
  const za = ht({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
25592
25592
  let na = null;
25593
25593
  const qr = ht({}, ["audio", "video", "img", "source", "image", "track"]);
@@ -25607,9 +25607,9 @@ function Ig() {
25607
25607
  if (dr && dr === J)
25608
25608
  return;
25609
25609
  (!J || typeof J != "object") && (J = {}), J = yr(J), vn = // eslint-disable-next-line unicorn/prefer-includes
25610
- fo.indexOf(J.PARSER_MEDIA_TYPE) === -1 ? xt : J.PARSER_MEDIA_TYPE, mt = vn === "application/xhtml+xml" ? np : Uc, vt = Ti(J, "ALLOWED_TAGS") && Dr(J.ALLOWED_TAGS) ? ht({}, J.ALLOWED_TAGS, mt) : Ni, It = Ti(J, "ALLOWED_ATTR") && Dr(J.ALLOWED_ATTR) ? ht({}, J.ALLOWED_ATTR, mt) : Jt, Hr = Ti(J, "ALLOWED_NAMESPACES") && Dr(J.ALLOWED_NAMESPACES) ? ht({}, J.ALLOWED_NAMESPACES, np) : aa, br = Ti(J, "ADD_URI_SAFE_ATTR") && Dr(J.ADD_URI_SAFE_ATTR) ? ht(yr(Qi), J.ADD_URI_SAFE_ATTR, mt) : Qi, na = Ti(J, "ADD_DATA_URI_TAGS") && Dr(J.ADD_DATA_URI_TAGS) ? ht(yr(qr), J.ADD_DATA_URI_TAGS, mt) : qr, Gi = Ti(J, "FORBID_CONTENTS") && Dr(J.FORBID_CONTENTS) ? ht({}, J.FORBID_CONTENTS, mt) : za, di = Ti(J, "FORBID_TAGS") && Dr(J.FORBID_TAGS) ? ht({}, J.FORBID_TAGS, mt) : yr({}), Rr = Ti(J, "FORBID_ATTR") && Dr(J.FORBID_ATTR) ? ht({}, J.FORBID_ATTR, mt) : yr({}), Zr = Ti(J, "USE_PROFILES") ? J.USE_PROFILES && typeof J.USE_PROFILES == "object" ? yr(J.USE_PROFILES) : J.USE_PROFILES : !1, vr = J.ALLOW_ARIA_ATTR !== !1, $e = J.ALLOW_DATA_ATTR !== !1, pi = J.ALLOW_UNKNOWN_PROTOCOLS || !1, yi = J.ALLOW_SELF_CLOSE_IN_ATTR !== !1, si = J.SAFE_FOR_TEMPLATES || !1, Qt = J.SAFE_FOR_XML !== !1, li = J.WHOLE_DOCUMENT || !1, an = J.RETURN_DOM || !1, xr = J.RETURN_DOM_FRAGMENT || !1, Gr = J.RETURN_TRUSTED_TYPE || !1, ta = J.FORCE_BODY || !1, ia = J.SANITIZE_DOM !== !1, $r = J.SANITIZE_NAMED_PROPS || !1, ra = J.KEEP_CONTENT !== !1, yn = J.IN_PLACE || !1, oi = Fv(J.ALLOWED_URI_REGEXP) ? J.ALLOWED_URI_REGEXP : ig, Ei = typeof J.NAMESPACE == "string" ? J.NAMESPACE : Ii, ln = Ti(J, "MATHML_TEXT_INTEGRATION_POINTS") && J.MATHML_TEXT_INTEGRATION_POINTS && typeof J.MATHML_TEXT_INTEGRATION_POINTS == "object" ? yr(J.MATHML_TEXT_INTEGRATION_POINTS) : ht({}, ["mi", "mo", "mn", "ms", "mtext"]), Fn = Ti(J, "HTML_INTEGRATION_POINTS") && J.HTML_INTEGRATION_POINTS && typeof J.HTML_INTEGRATION_POINTS == "object" ? yr(J.HTML_INTEGRATION_POINTS) : ht({}, ["annotation-xml"]);
25610
+ fo.indexOf(J.PARSER_MEDIA_TYPE) === -1 ? xt : J.PARSER_MEDIA_TYPE, mt = vn === "application/xhtml+xml" ? np : Uc, vt = Ti(J, "ALLOWED_TAGS") && Dr(J.ALLOWED_TAGS) ? ht({}, J.ALLOWED_TAGS, mt) : Ni, It = Ti(J, "ALLOWED_ATTR") && Dr(J.ALLOWED_ATTR) ? ht({}, J.ALLOWED_ATTR, mt) : Jt, Hr = Ti(J, "ALLOWED_NAMESPACES") && Dr(J.ALLOWED_NAMESPACES) ? ht({}, J.ALLOWED_NAMESPACES, np) : aa, br = Ti(J, "ADD_URI_SAFE_ATTR") && Dr(J.ADD_URI_SAFE_ATTR) ? ht(yr(Qi), J.ADD_URI_SAFE_ATTR, mt) : Qi, na = Ti(J, "ADD_DATA_URI_TAGS") && Dr(J.ADD_DATA_URI_TAGS) ? ht(yr(qr), J.ADD_DATA_URI_TAGS, mt) : qr, $i = Ti(J, "FORBID_CONTENTS") && Dr(J.FORBID_CONTENTS) ? ht({}, J.FORBID_CONTENTS, mt) : za, di = Ti(J, "FORBID_TAGS") && Dr(J.FORBID_TAGS) ? ht({}, J.FORBID_TAGS, mt) : yr({}), Rr = Ti(J, "FORBID_ATTR") && Dr(J.FORBID_ATTR) ? ht({}, J.FORBID_ATTR, mt) : yr({}), Zr = Ti(J, "USE_PROFILES") ? J.USE_PROFILES && typeof J.USE_PROFILES == "object" ? yr(J.USE_PROFILES) : J.USE_PROFILES : !1, vr = J.ALLOW_ARIA_ATTR !== !1, Ge = J.ALLOW_DATA_ATTR !== !1, pi = J.ALLOW_UNKNOWN_PROTOCOLS || !1, yi = J.ALLOW_SELF_CLOSE_IN_ATTR !== !1, si = J.SAFE_FOR_TEMPLATES || !1, Qt = J.SAFE_FOR_XML !== !1, li = J.WHOLE_DOCUMENT || !1, an = J.RETURN_DOM || !1, xr = J.RETURN_DOM_FRAGMENT || !1, $r = J.RETURN_TRUSTED_TYPE || !1, ta = J.FORCE_BODY || !1, ia = J.SANITIZE_DOM !== !1, Gr = J.SANITIZE_NAMED_PROPS || !1, ra = J.KEEP_CONTENT !== !1, yn = J.IN_PLACE || !1, oi = Fv(J.ALLOWED_URI_REGEXP) ? J.ALLOWED_URI_REGEXP : ig, Ei = typeof J.NAMESPACE == "string" ? J.NAMESPACE : Ii, ln = Ti(J, "MATHML_TEXT_INTEGRATION_POINTS") && J.MATHML_TEXT_INTEGRATION_POINTS && typeof J.MATHML_TEXT_INTEGRATION_POINTS == "object" ? yr(J.MATHML_TEXT_INTEGRATION_POINTS) : ht({}, ["mi", "mo", "mn", "ms", "mtext"]), Fn = Ti(J, "HTML_INTEGRATION_POINTS") && J.HTML_INTEGRATION_POINTS && typeof J.HTML_INTEGRATION_POINTS == "object" ? yr(J.HTML_INTEGRATION_POINTS) : ht({}, ["annotation-xml"]);
25611
25611
  const xe = Ti(J, "CUSTOM_ELEMENT_HANDLING") && J.CUSTOM_ELEMENT_HANDLING && typeof J.CUSTOM_ELEMENT_HANDLING == "object" ? yr(J.CUSTOM_ELEMENT_HANDLING) : vl(null);
25612
- if (Pt = vl(null), Ti(xe, "tagNameCheck") && mo(xe.tagNameCheck) && (Pt.tagNameCheck = xe.tagNameCheck), Ti(xe, "attributeNameCheck") && mo(xe.attributeNameCheck) && (Pt.attributeNameCheck = xe.attributeNameCheck), Ti(xe, "allowCustomizedBuiltInElements") && typeof xe.allowCustomizedBuiltInElements == "boolean" && (Pt.allowCustomizedBuiltInElements = xe.allowCustomizedBuiltInElements), si && ($e = !1), xr && (an = !0), Zr && (vt = ht({}, Qm), It = vl(null), Zr.html === !0 && (ht(vt, Jm), ht(It, eg)), Zr.svg === !0 && (ht(vt, ap), ht(It, lp), ht(It, _h)), Zr.svgFilters === !0 && (ht(vt, op), ht(It, lp), ht(It, _h)), Zr.mathMl === !0 && (ht(vt, sp), ht(It, tg), ht(It, _h))), _i.tagCheck = null, _i.attributeCheck = null, Ti(J, "ADD_TAGS") && (typeof J.ADD_TAGS == "function" ? _i.tagCheck = J.ADD_TAGS : Dr(J.ADD_TAGS) && (vt === Ni && (vt = yr(vt)), ht(vt, J.ADD_TAGS, mt))), Ti(J, "ADD_ATTR") && (typeof J.ADD_ATTR == "function" ? _i.attributeCheck = J.ADD_ATTR : Dr(J.ADD_ATTR) && (It === Jt && (It = yr(It)), ht(It, J.ADD_ATTR, mt))), Ti(J, "ADD_URI_SAFE_ATTR") && Dr(J.ADD_URI_SAFE_ATTR) && ht(br, J.ADD_URI_SAFE_ATTR, mt), Ti(J, "FORBID_CONTENTS") && Dr(J.FORBID_CONTENTS) && (Gi === za && (Gi = yr(Gi)), ht(Gi, J.FORBID_CONTENTS, mt)), Ti(J, "ADD_FORBID_CONTENTS") && Dr(J.ADD_FORBID_CONTENTS) && (Gi === za && (Gi = yr(Gi)), ht(Gi, J.ADD_FORBID_CONTENTS, mt)), ra && (vt["#text"] = !0), li && ht(vt, ["html", "head", "body"]), vt.table && (ht(vt, ["tbody"]), delete di.tbody), J.TRUSTED_TYPES_POLICY) {
25612
+ if (Pt = vl(null), Ti(xe, "tagNameCheck") && mo(xe.tagNameCheck) && (Pt.tagNameCheck = xe.tagNameCheck), Ti(xe, "attributeNameCheck") && mo(xe.attributeNameCheck) && (Pt.attributeNameCheck = xe.attributeNameCheck), Ti(xe, "allowCustomizedBuiltInElements") && typeof xe.allowCustomizedBuiltInElements == "boolean" && (Pt.allowCustomizedBuiltInElements = xe.allowCustomizedBuiltInElements), si && (Ge = !1), xr && (an = !0), Zr && (vt = ht({}, Qm), It = vl(null), Zr.html === !0 && (ht(vt, Jm), ht(It, eg)), Zr.svg === !0 && (ht(vt, ap), ht(It, lp), ht(It, _h)), Zr.svgFilters === !0 && (ht(vt, op), ht(It, lp), ht(It, _h)), Zr.mathMl === !0 && (ht(vt, sp), ht(It, tg), ht(It, _h))), _i.tagCheck = null, _i.attributeCheck = null, Ti(J, "ADD_TAGS") && (typeof J.ADD_TAGS == "function" ? _i.tagCheck = J.ADD_TAGS : Dr(J.ADD_TAGS) && (vt === Ni && (vt = yr(vt)), ht(vt, J.ADD_TAGS, mt))), Ti(J, "ADD_ATTR") && (typeof J.ADD_ATTR == "function" ? _i.attributeCheck = J.ADD_ATTR : Dr(J.ADD_ATTR) && (It === Jt && (It = yr(It)), ht(It, J.ADD_ATTR, mt))), Ti(J, "ADD_URI_SAFE_ATTR") && Dr(J.ADD_URI_SAFE_ATTR) && ht(br, J.ADD_URI_SAFE_ATTR, mt), Ti(J, "FORBID_CONTENTS") && Dr(J.FORBID_CONTENTS) && ($i === za && ($i = yr($i)), ht($i, J.FORBID_CONTENTS, mt)), Ti(J, "ADD_FORBID_CONTENTS") && Dr(J.ADD_FORBID_CONTENTS) && ($i === za && ($i = yr($i)), ht($i, J.ADD_FORBID_CONTENTS, mt)), ra && (vt["#text"] = !0), li && ht(vt, ["html", "head", "body"]), vt.table && (ht(vt, ["tbody"]), delete di.tbody), J.TRUSTED_TYPES_POLICY) {
25613
25613
  if (typeof J.TRUSTED_TYPES_POLICY.createHTML != "function")
25614
25614
  throw Vc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
25615
25615
  if (typeof J.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -25619,7 +25619,7 @@ function Ig() {
25619
25619
  Vt === void 0 && (Vt = Xv(Fe, ce)), Vt !== null && typeof hr == "string" && (hr = Vt.createHTML(""));
25620
25620
  (We.uponSanitizeElement.length > 0 || We.uponSanitizeAttribute.length > 0) && vt === Ni && (vt = yr(vt)), We.uponSanitizeAttribute.length > 0 && It === Jt && (It = yr(It)), zr && zr(J), dr = J;
25621
25621
  }, oa = ht({}, [...ap, ...op, ...Ov]), Ra = ht({}, [...sp, ...Bv]), rs = function(J) {
25622
- let xe = $t(J);
25622
+ let xe = Gt(J);
25623
25623
  (!xe || !xe.tagName) && (xe = {
25624
25624
  namespaceURI: Ei,
25625
25625
  tagName: "template"
@@ -25627,22 +25627,22 @@ function Ig() {
25627
25627
  const De = Uc(J.tagName), Ze = Uc(xe.tagName);
25628
25628
  return Hr[J.namespaceURI] ? J.namespaceURI === Ln ? xe.namespaceURI === Ii ? De === "svg" : xe.namespaceURI === Wr ? De === "svg" && (Ze === "annotation-xml" || ln[Ze]) : !!oa[De] : J.namespaceURI === Wr ? xe.namespaceURI === Ii ? De === "math" : xe.namespaceURI === Ln ? De === "math" && Fn[Ze] : !!Ra[De] : J.namespaceURI === Ii ? xe.namespaceURI === Ln && !Fn[Ze] || xe.namespaceURI === Wr && !ln[Ze] ? !1 : !Ra[De] && (ge[De] || !oa[De]) : !!(vn === "application/xhtml+xml" && Hr[J.namespaceURI]) : !1;
25629
25629
  }, Se = function(J) {
25630
- gl(G.removed, {
25630
+ gl($.removed, {
25631
25631
  element: J
25632
25632
  });
25633
25633
  try {
25634
- $t(J).removeChild(J);
25634
+ Gt(J).removeChild(J);
25635
25635
  } catch {
25636
25636
  jt(J);
25637
25637
  }
25638
25638
  }, er = function(J, xe) {
25639
25639
  try {
25640
- gl(G.removed, {
25640
+ gl($.removed, {
25641
25641
  attribute: xe.getAttributeNode(J),
25642
25642
  from: xe
25643
25643
  });
25644
25644
  } catch {
25645
- gl(G.removed, {
25645
+ gl($.removed, {
25646
25646
  attribute: null,
25647
25647
  from: xe
25648
25648
  });
@@ -25702,7 +25702,7 @@ function Ig() {
25702
25702
  let De = xe.nextNode();
25703
25703
  for (; De; ) {
25704
25704
  let Ze = De.data;
25705
- ml([Ge, tt, Ke], (lt) => {
25705
+ ml([$e, tt, Ke], (lt) => {
25706
25706
  Ze = _l(Ze, lt, " ");
25707
25707
  }), De.data = Ze, De = xe.nextNode();
25708
25708
  }
@@ -25751,7 +25751,7 @@ function Ig() {
25751
25751
  };
25752
25752
  function ei(Ve, J, xe) {
25753
25753
  ml(Ve, (De) => {
25754
- De.call(G, J, xe, dr);
25754
+ De.call($, J, xe, dr);
25755
25755
  });
25756
25756
  }
25757
25757
  const sa = function(J) {
@@ -25767,8 +25767,8 @@ function Ig() {
25767
25767
  if (di[De] || !(_i.tagCheck instanceof Function && _i.tagCheck(De)) && !vt[De]) {
25768
25768
  if (!di[De] && On(De) && (Pt.tagNameCheck instanceof RegExp && ur(Pt.tagNameCheck, De) || Pt.tagNameCheck instanceof Function && Pt.tagNameCheck(De)))
25769
25769
  return !1;
25770
- if (ra && !Gi[De]) {
25771
- const lt = $t(J), wt = Kt(J);
25770
+ if (ra && !$i[De]) {
25771
+ const lt = Gt(J), wt = Kt(J);
25772
25772
  if (wt && lt) {
25773
25773
  const Mi = wt.length;
25774
25774
  for (let Ai = Mi - 1; Ai >= 0; --Ai) {
@@ -25779,16 +25779,16 @@ function Ig() {
25779
25779
  }
25780
25780
  return Se(J), !0;
25781
25781
  }
25782
- return (yt ? yt(J) : J.nodeType) === Qn.element && !rs(J) || (De === "noscript" || De === "noembed" || De === "noframes") && ur(/<\/no(script|embed|frames)/i, J.innerHTML) ? (Se(J), !0) : (si && J.nodeType === Qn.text && (xe = J.textContent, ml([Ge, tt, Ke], (lt) => {
25782
+ return (yt ? yt(J) : J.nodeType) === Qn.element && !rs(J) || (De === "noscript" || De === "noembed" || De === "noframes") && ur(/<\/no(script|embed|frames)/i, J.innerHTML) ? (Se(J), !0) : (si && J.nodeType === Qn.text && (xe = J.textContent, ml([$e, tt, Ke], (lt) => {
25783
25783
  xe = _l(xe, lt, " ");
25784
- }), J.textContent !== xe && (gl(G.removed, {
25784
+ }), J.textContent !== xe && (gl($.removed, {
25785
25785
  element: J.cloneNode()
25786
25786
  }), J.textContent = xe)), ei(We.afterSanitizeElements, J, null), !1);
25787
25787
  }, kr = function(J, xe, De) {
25788
25788
  if (Rr[xe] || ia && (xe === "id" || xe === "name") && (De in Y || De in is))
25789
25789
  return !1;
25790
25790
  const Ze = It[xe] || _i.attributeCheck instanceof Function && _i.attributeCheck(xe, J);
25791
- if (!($e && !Rr[xe] && ur(ut, xe))) {
25791
+ if (!(Ge && !Rr[xe] && ur(ut, xe))) {
25792
25792
  if (!(vr && ur(je, xe))) {
25793
25793
  if (!Ze || Rr[xe]) {
25794
25794
  if (
@@ -25830,7 +25830,7 @@ function Ig() {
25830
25830
  for (; Ze--; ) {
25831
25831
  const lt = xe[Ze], wt = lt.name, Mi = lt.namespaceURI, Ai = lt.value, ti = mt(wt), La = Ai;
25832
25832
  let Ft = wt === "value" ? La : Cv(La);
25833
- if (De.attrName = ti, De.attrValue = Ft, De.keepAttr = !0, De.forceKeepAttr = void 0, ei(We.uponSanitizeAttribute, J, De), Ft = De.attrValue, $r && (ti === "id" || ti === "name") && Xm(Ft, on) !== 0 && (er(wt, J), Ft = on + Ft), Qt && ur(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ft)) {
25833
+ if (De.attrName = ti, De.attrValue = Ft, De.keepAttr = !0, De.forceKeepAttr = void 0, ei(We.uponSanitizeAttribute, J, De), Ft = De.attrValue, Gr && (ti === "id" || ti === "name") && Xm(Ft, on) !== 0 && (er(wt, J), Ft = on + Ft), Qt && ur(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ft)) {
25834
25834
  er(wt, J);
25835
25835
  continue;
25836
25836
  }
@@ -25848,7 +25848,7 @@ function Ig() {
25848
25848
  er(wt, J);
25849
25849
  continue;
25850
25850
  }
25851
- si && ml([Ge, tt, Ke], (Ot) => {
25851
+ si && ml([$e, tt, Ke], (Ot) => {
25852
25852
  Ft = _l(Ft, Ot, " ");
25853
25853
  });
25854
25854
  const la = mt(J.nodeName);
@@ -25869,7 +25869,7 @@ function Ig() {
25869
25869
  }
25870
25870
  if (Ft !== La)
25871
25871
  try {
25872
- Mi ? J.setAttributeNS(Mi, wt, Ft) : J.setAttribute(wt, Ft), Ae(J) ? Se(J) : Wm(G.removed);
25872
+ Mi ? J.setAttributeNS(Mi, wt, Ft) : J.setAttribute(wt, Ft), Ae(J) ? Se(J) : Wm($.removed);
25873
25873
  } catch {
25874
25874
  er(wt, J);
25875
25875
  }
@@ -25907,13 +25907,13 @@ function Ig() {
25907
25907
  }
25908
25908
  }
25909
25909
  };
25910
- return G.sanitize = function(Ve) {
25910
+ return $.sanitize = function(Ve) {
25911
25911
  let J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, xe = null, De = null, Ze = null, lt = null;
25912
25912
  if (sn = !Ve, sn && (Ve = "<!-->"), typeof Ve != "string" && !it(Ve) && (Ve = Lv(Ve), typeof Ve != "string"))
25913
25913
  throw Vc("dirty is not a string, aborting");
25914
- if (!G.isSupported)
25914
+ if (!$.isSupported)
25915
25915
  return Ve;
25916
- if (Ur || go(J), G.removed = [], typeof Ve == "string" && (yn = !1), yn) {
25916
+ if (Ur || go(J), $.removed = [], typeof Ve == "string" && (yn = !1), yn) {
25917
25917
  const Ai = Zt ? Zt(Ve) : Ve.nodeName;
25918
25918
  if (typeof Ai == "string") {
25919
25919
  const ti = mt(Ai);
@@ -25928,9 +25928,9 @@ function Ig() {
25928
25928
  else {
25929
25929
  if (!an && !si && !li && // eslint-disable-next-line unicorn/prefer-includes
25930
25930
  Ve.indexOf("<") === -1)
25931
- return Vt && Gr ? Vt.createHTML(Ve) : Ve;
25931
+ return Vt && $r ? Vt.createHTML(Ve) : Ve;
25932
25932
  if (xe = vi(Ve), !xe)
25933
- return an ? null : Gr ? hr : "";
25933
+ return an ? null : $r ? hr : "";
25934
25934
  }
25935
25935
  xe && ta && Se(xe.firstChild);
25936
25936
  const wt = ka(yn ? Ve : xe);
@@ -25948,31 +25948,31 @@ function Ig() {
25948
25948
  }
25949
25949
  let Mi = li ? xe.outerHTML : xe.innerHTML;
25950
25950
  return li && vt["!doctype"] && xe.ownerDocument && xe.ownerDocument.doctype && xe.ownerDocument.doctype.name && ur(qv, xe.ownerDocument.doctype.name) && (Mi = "<!DOCTYPE " + xe.ownerDocument.doctype.name + `>
25951
- ` + Mi), si && ml([Ge, tt, Ke], (Ai) => {
25951
+ ` + Mi), si && ml([$e, tt, Ke], (Ai) => {
25952
25952
  Mi = _l(Mi, Ai, " ");
25953
- }), Vt && Gr ? Vt.createHTML(Mi) : Mi;
25954
- }, G.setConfig = function() {
25953
+ }), Vt && $r ? Vt.createHTML(Mi) : Mi;
25954
+ }, $.setConfig = function() {
25955
25955
  let Ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
25956
25956
  go(Ve), Ur = !0;
25957
- }, G.clearConfig = function() {
25957
+ }, $.clearConfig = function() {
25958
25958
  dr = null, Ur = !1;
25959
- }, G.isValidAttribute = function(Ve, J, xe) {
25959
+ }, $.isValidAttribute = function(Ve, J, xe) {
25960
25960
  dr || go({});
25961
25961
  const De = mt(Ve), Ze = mt(J);
25962
25962
  return kr(De, Ze, xe);
25963
- }, G.addHook = function(Ve, J) {
25963
+ }, $.addHook = function(Ve, J) {
25964
25964
  typeof J == "function" && gl(We[Ve], J);
25965
- }, G.removeHook = function(Ve, J) {
25965
+ }, $.removeHook = function(Ve, J) {
25966
25966
  if (J !== void 0) {
25967
25967
  const xe = Mv(We[Ve], J);
25968
25968
  return xe === -1 ? void 0 : Av(We[Ve], xe, 1)[0];
25969
25969
  }
25970
25970
  return Wm(We[Ve]);
25971
- }, G.removeHooks = function(Ve) {
25971
+ }, $.removeHooks = function(Ve) {
25972
25972
  We[Ve] = [];
25973
- }, G.removeAllHooks = function() {
25973
+ }, $.removeAllHooks = function() {
25974
25974
  We = rg();
25975
- }, G;
25975
+ }, $;
25976
25976
  }
25977
25977
  var ng = Ig();
25978
25978
  const Yv = 8, Kv = "Bright", Jv = { "mapbox:autocomposite": !1, "mapbox:groups": { "1444849242106.713": { collapsed: !1, name: "Places" }, "1444849334699.1902": { collapsed: !0, name: "Bridges" }, "1444849345966.4436": { collapsed: !1, name: "Roads" }, "1444849354174.1904": { collapsed: !0, name: "Tunnels" }, "1444849364238.8171": { collapsed: !1, name: "Buildings" }, "1444849382550.77": { collapsed: !1, name: "Water" }, "1444849388993.3071": { collapsed: !1, name: "Land" } }, "mapbox:type": "template", "openmaptiles:mapbox:owner": "openmaptiles", "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t", "openmaptiles:version": "3.x", "maputnik:renderer": "mbgljs" }, Qv = [0, 0], ex = 1, tx = 0, ix = 0, rx = { openmaptiles: { type: "vector", url: "https://openmaptiles.geo.data.gouv.fr/data/planet-vector.json" }, "decoupage-administratif": { type: "vector", url: "https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json" } }, nx = "https://openmaptiles.github.io/osm-bright-gl-style/sprite", ax = "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf", ox = /* @__PURE__ */ JSON.parse('[{"id":"background","type":"background","minzoom":0,"maxzoom":24,"layout":{"visibility":"visible"},"paint":{"background-color":"rgba(255, 246, 241, 1)"}},{"id":"landcover-glacier","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","subclass","glacier"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-opacity":{"base":1,"stops":[[0,0.9],[10,0.3]]}}},{"id":"landcover-wood","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","class","wood"],"paint":{"fill-antialias":{"base":1,"stops":[[0,false],[9,true]]},"fill-color":"#6a4","fill-opacity":0.1,"fill-outline-color":"hsla(0, 0%, 0%, 0.03)"}},{"id":"landcover-grass","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","class","grass"],"paint":{"fill-color":"#d8e8c8","fill-opacity":1}},{"id":"landcover-grass-park","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"park","filter":["==","class","public_park"],"paint":{"fill-color":"#d8e8c8","fill-opacity":0.8}},{"id":"landuse-residential","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["in","class","residential","suburb","neighbourhood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"base":1,"stops":[[12,"hsla(30, 19%, 90%, 0.4)"],[16,"hsla(30, 19%, 90%, 0.2)"]]}}},{"id":"landuse-commercial","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["==","$type","Polygon"],["==","class","commercial"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsla(0, 60%, 87%, 0.23)"}},{"id":"landuse-industrial","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["==","$type","Polygon"],["==","class","industrial"]],"paint":{"fill-color":"hsla(49, 100%, 88%, 0.34)"}},{"id":"landuse-cemetery","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","cemetery"],"paint":{"fill-color":"#e0e4dd"}},{"id":"landuse-hospital","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","hospital"],"paint":{"fill-color":"#fde"}},{"id":"landuse-school","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","school"],"paint":{"fill-color":"#f0e8f8"}},{"id":"landuse-railway","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","railway"],"paint":{"fill-color":"hsla(30, 19%, 90%, 0.4)"}},{"id":"waterway_tunnel","type":"line","source":"openmaptiles","source-layer":"waterway","minzoom":14,"filter":["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-dasharray":[2,4],"line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]}}},{"id":"waterway-other","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","class","canal","river","stream"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,2]]}}},{"id":"waterway-other-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","class","canal","river","stream"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,2]]},"line-dasharray":[4,3]}},{"id":"waterway-stream-canal","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["in","class","canal","stream"],["!=","brunnel","tunnel"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]}}},{"id":"waterway-stream-canal-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["in","class","canal","stream"],["!=","brunnel","tunnel"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]},"line-dasharray":[4,3]}},{"id":"waterway-river","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["==","class","river"],["!=","brunnel","tunnel"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.2,"stops":[[10,0.8],[20,6]]}}},{"id":"waterway-river-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["==","class","river"],["!=","brunnel","tunnel"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.2,"stops":[[10,0.8],[20,6]]},"line-dasharray":[3,2.5]}},{"id":"water-offset","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","maxzoom":8,"filter":["==","$type","Polygon"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#a0c8f0","fill-opacity":1,"fill-translate":{"base":1,"stops":[[6,[2,0]],[8,[0,0]]]}}},{"id":"water","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","filter":["all",["!=","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(210, 67%, 85%)"}},{"id":"water-intermittent","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","filter":["all",["==","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0.7}},{"id":"landcover-ice-shelf","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"landcover","filter":["==","subclass","ice_shelf"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-opacity":{"base":1,"stops":[[0,0.9],[10,0.3]]}}},{"id":"landcover-sand","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"landcover","filter":["all",["==","class","sand"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(245, 238, 188, 1)","fill-opacity":1}},{"id":"building","type":"fill","metadata":{"mapbox:group":"1444849364238.8171"},"source":"openmaptiles","source-layer":"building","layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":{"base":1,"stops":[[15.5,"#f2eae2"],[16,"#dfdbd7"]]}}},{"id":"building-top","type":"fill","metadata":{"mapbox:group":"1444849364238.8171"},"source":"openmaptiles","source-layer":"building","layout":{"visibility":"none"},"paint":{"fill-color":"#f2eae2","fill-opacity":{"base":1,"stops":[[13,0],[16,1]]},"fill-outline-color":"#dfdbd7","fill-translate":{"base":1,"stops":[[14,[0,0]],[16,[-2,-2]]]}}},{"id":"tunnel-service-track-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#cfcdca","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[15,1],[16,4],[20,11]]}}},{"id":"tunnel-minor-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,1]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"tunnel-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"tunnel-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"tunnel-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"tunnel-path","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"tunnel-service-track","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-width":{"base":1.2,"stops":[[15.5,0],[16,2],[20,7.5]]}}},{"id":"tunnel-minor","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor_road"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"tunnel-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,10]]}}},{"id":"tunnel-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"tunnel-motorway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#ffdaa6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"tunnel-railway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-dasharray":[2,2],"line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"ferry","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["in","class","ferry"]],"layout":{"line-join":"round","visibility":"none"},"paint":{"line-color":"rgba(108, 159, 182, 1)","line-dasharray":[2,2],"line-width":1.1}},{"id":"aeroway-taxiway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","taxiway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,2],[17,12]]}}},{"id":"aeroway-runway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","runway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,5],[17,55]]}}},{"id":"aeroway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["==","$type","Polygon"],["in","class","runway","taxiway"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(255, 255, 255, 1)","fill-opacity":{"base":1,"stops":[[13,0],[14,1]]}}},{"id":"aeroway-taxiway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","taxiway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":{"base":1,"stops":[[11,0],[12,1]]},"line-width":{"base":1.5,"stops":[[11,1],[17,10]]}}},{"id":"aeroway-runway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","runway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":{"base":1,"stops":[[11,0],[12,1]]},"line-width":{"base":1.5,"stops":[[11,4],[17,50]]}}},{"id":"road_area_pier","type":"fill","metadata":{},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["==","class","pier"]],"layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":"#f8f4f0"}},{"id":"road_pier","type":"line","metadata":{},"source":"openmaptiles","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["in","class","pier"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"#f8f4f0","line-width":{"base":1.2,"stops":[[15,1],[17,4]]}}},{"id":"highway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["!in","class","pier"]],"layout":{"visibility":"visible"},"paint":{"fill-antialias":false,"fill-color":"hsla(0, 0%, 89%, 0.56)","fill-opacity":0.9,"fill-outline-color":"#cfcdca"}},{"id":"highway-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-minor-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,1]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"highway-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"highway-primary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[7,0],[8,1]]},"line-width":{"base":1.2,"stops":[[7,0],[8,0.6],[9,1.5],[20,22]]}}},{"id":"highway-trunk-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[5,0],[6,1]]},"line-width":{"base":1.2,"stops":[[5,0],[6,0.6],[7,1.5],[20,22]]}}},{"id":"highway-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":4,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[4,0],[5,1]]},"line-width":{"base":1.2,"stops":[[4,0],[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"highway-path","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"highway-motorway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-minor","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"highway-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[8,0.5],[20,13]]}}},{"id":"highway-primary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[8.5,0],[9,0.5],[20,18]]}}},{"id":"highway-trunk","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"highway-motorway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"railway-transit","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-transit-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway-service","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-service-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"railway-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"bridge-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,28]]}}},{"id":"bridge-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"hsl(28, 76%, 67%)","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,26]]}}},{"id":"bridge-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"bridge-path-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#f8f4f0","line-width":{"base":1.2,"stops":[[15,1.2],[20,18]]}}},{"id":"bridge-path","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"bridge-motorway-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,20]]}}},{"id":"bridge-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"bridge-motorway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"bridge-railway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"bridge-railway-hatching","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"cablecar","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-width":{"base":1,"stops":[[11,1],[19,2.5]]}}},{"id":"cablecar-dash","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-dasharray":[2,3],"line-width":{"base":1,"stops":[[11,3],[19,5.5]]}}},{"id":"boundary-land-level-4","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{"base":1.4,"stops":[[4,0.4],[5,1],[12,3]]}}},{"id":"boundary-land-level-2","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(248, 7%, 66%)","line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"boundary-land-disputed","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["!=","maritime",1],["==","disputed",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"boundary-water","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["in","admin_level",2,4],["==","maritime",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(154, 189, 214, 1)","line-opacity":{"stops":[[6,0.6],[10,1]]},"line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"waterway-name","type":"symbol","source":"openmaptiles","source-layer":"waterway","minzoom":13,"filter":["all",["==","$type","LineString"],["has","name"]],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14,"visibility":"visible"},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"communes","type":"line","source":"decoupage-administratif","source-layer":"communes","minzoom":10,"maxzoom":24,"layout":{"visibility":"visible"},"paint":{"line-opacity":0.3,"line-color":"black","line-width":0.5}},{"id":"departements","type":"line","source":"decoupage-administratif","source-layer":"departements","layout":{"visibility":"visible"},"paint":{"line-opacity":0.3,"line-color":"black","line-width":0.5}},{"id":"water-name-lakeline","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["==","$type","LineString"],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water-name-ocean","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["==","class","ocean"]],"layout":{"symbol-placement":"point","symbol-spacing":350,"text-field":"{name:latin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water-name-other","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["!in","class","ocean"]],"layout":{"symbol-placement":"point","symbol-spacing":350,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":{"stops":[[0,10],[6,14]]},"visibility":"visible"},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"road_oneway","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"icon-image":"oneway","icon-padding":2,"icon-rotate":90,"icon-rotation-alignment":"map","icon-size":{"stops":[[15,0.5],[19,1]]},"symbol-placement":"line","symbol-spacing":75,"visibility":"visible"},"paint":{"icon-opacity":0.5}},{"id":"road_oneway_opposite","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"icon-image":"oneway","icon-padding":2,"icon-rotate":-90,"icon-rotation-alignment":"map","icon-size":{"stops":[[15,0.5],[19,1]]},"symbol-placement":"line","symbol-spacing":75,"visibility":"visible"},"paint":{"icon-opacity":0.5}},{"id":"highway-name-path","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15.5,"filter":["==","class","path"],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"hsl(30, 23%, 62%)","text-halo-color":"#f8f4f0","text-halo-width":0.5}},{"id":"highway-name-minor","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15,"filter":["all",["==","$type","LineString"],["in","class","minor","service","track"]],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"#765","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-name-major","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":12.2,"filter":["in","class","primary","secondary","tertiary","trunk"],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"#765","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-shield","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":8,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],"layout":{"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{}},{"id":"highway-shield-us-interstate","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":7,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],"layout":{"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[7,"point"],[7,"line"],[8,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"highway-shield-us-other","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":9,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],"layout":{"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"airport-label-major","type":"symbol","source":"openmaptiles","source-layer":"aerodrome_label","minzoom":10,"filter":["all",["has","iata"]],"layout":{"icon-image":"airport_11","icon-size":1,"text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-optional":true,"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-3","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":16,"filter":["all",["==","$type","Point"],[">=","rank",25],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-2","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":15,"filter":["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-1","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":14,"filter":["all",["==","$type","Point"],["<=","rank",14],["has","name"],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-railway","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":13,"filter":["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],"layout":{"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-image":"{class}_11","icon-optional":false,"text-allow-overlap":false,"text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-ignore-placement":false,"text-max-width":9,"text-offset":[0,0.6],"text-optional":true,"text-padding":2,"text-size":12},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"place-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["!in","class","city","town","village","country","continent"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Bold"],"text-letter-spacing":0.1,"text-max-width":9,"text-size":{"base":1.2,"stops":[[12,10],[15,14]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#633","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-village","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["==","class","village"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[10,12],[15,22]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-town","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["==","class","town"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[10,14],[15,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-city","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["!=","capital",2],["==","class","city"]],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-city-capital","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","capital",2],["==","class","city"]],"layout":{"icon-image":"star_11","icon-size":0.8,"text-anchor":"left","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-offset":[0.4,0],"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-country-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Italic"],"text-max-width":6.25,"text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-3","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-2","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[2,11],[5,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-1","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[1,11],[4,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-continent","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","maxzoom":1,"filter":["==","class","continent"],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":14,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}}]'), sx = "bright", lx = {
@@ -26004,7 +26004,7 @@ const Yv = 8, Kv = "Bright", Jv = { "mapbox:autocomposite": !1, "mapbox:groups":
26004
26004
  dataset: {}
26005
26005
  },
26006
26006
  setup(Z) {
26007
- const G = Z, { t: Y } = A0(), { formatDate: ne } = C0(), ce = D0(), Te = w0(!1), D = Oc(() => G.resource.extras["analysis:parsing:pmtiles_url"] ? G.resource.extras["analysis:parsing:pmtiles_url"] : G.resource.url), u = Oc(() => ce.pmtilesViewerBaseUrl ? `${ce.pmtilesViewerBaseUrl}${encodeURIComponent(D.value)}` : null), _e = Oc(() => G.resource.extras["analysis:parsing:pmtiles_url"] ? ne(G.resource.extras["analysis:parsing:finished_at"]) : ne(G.resource.last_modified)), Je = T0("containerRef"), He = Oc(() => !G.dataset.organization && !G.dataset.owner ? "" : `© <a href="${z0(G.dataset)}" target="_blank">${R0(G.dataset)}</a>`);
26007
+ const $ = Z, { t: Y } = A0(), { formatDate: ne } = C0(), ce = D0(), Te = w0(!1), D = Oc(() => $.resource.extras["analysis:parsing:pmtiles_url"] ? $.resource.extras["analysis:parsing:pmtiles_url"] : $.resource.url), u = Oc(() => ce.pmtilesViewerBaseUrl ? `${ce.pmtilesViewerBaseUrl}${encodeURIComponent(D.value)}` : null), _e = Oc(() => $.resource.extras["analysis:parsing:pmtiles_url"] ? ne($.resource.extras["analysis:parsing:finished_at"]) : ne($.resource.last_modified)), Je = T0("containerRef"), He = Oc(() => !$.dataset.organization && !$.dataset.owner ? "" : `© <a href="${z0($.dataset)}" target="_blank">${R0($.dataset)}</a>`);
26008
26008
  async function Fe() {
26009
26009
  await Promise.resolve({ });
26010
26010
  const Ye = new lv();
@@ -26032,7 +26032,7 @@ const Yv = 8, Kv = "Bright", Jv = { "mapbox:autocomposite": !1, "mapbox:groups":
26032
26032
  closeButton: !0,
26033
26033
  closeOnClick: !0
26034
26034
  }).addClassName("rounded-full").setMaxWidth("300px");
26035
- function $t(ye) {
26035
+ function Gt(ye) {
26036
26036
  if (!ye.features || !ye.features[0])
26037
26037
  Kt.remove();
26038
26038
  else {
@@ -26069,7 +26069,7 @@ const Yv = 8, Kv = "Bright", Jv = { "mapbox:autocomposite": !1, "mapbox:groups":
26069
26069
  [`${Zt.value}-color`]: "steelblue",
26070
26070
  [`${Zt.value}-opacity`]: { base: 1, stops: [[0, 0.9], [10, 0.6]] }
26071
26071
  }
26072
- }), Oe.on("click", yt.layer, $t), Oe.on("mouseenter", yt.layer, () => {
26072
+ }), Oe.on("click", yt.layer, Gt), Oe.on("mouseenter", yt.layer, () => {
26073
26073
  Oe.getCanvas().style.cursor = "pointer";
26074
26074
  }), Oe.on("mouseleave", yt.layer, () => {
26075
26075
  Oe.getCanvas().style.cursor = "";
@@ -26084,7 +26084,7 @@ const Yv = 8, Kv = "Bright", Jv = { "mapbox:autocomposite": !1, "mapbox:groups":
26084
26084
  }), (Ye, dt) => (gh(), tp("div", null, [
26085
26085
  Te.value ? (gh(), P0(k0, { key: 0 }, {
26086
26086
  default: Um(() => [
26087
- Gm(Bc(ts(Y)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
26087
+ $m(Bc(ts(Y)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
26088
26088
  ]),
26089
26089
  _: 1
26090
26090
  })) : (gh(), tp("div", cx, [
@@ -26105,7 +26105,7 @@ const Yv = 8, Kv = "Bright", Jv = { "mapbox:autocomposite": !1, "mapbox:groups":
26105
26105
  "icon-right": ""
26106
26106
  }, {
26107
26107
  default: Um(() => [
26108
- Gm(Bc(ts(Y)("Explorer la carte")), 1)
26108
+ $m(Bc(ts(Y)("Explorer la carte")), 1)
26109
26109
  ]),
26110
26110
  _: 1
26111
26111
  }, 8, ["href", "icon"])