@opengis/partsmap 0.0.90 → 0.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/PartsMap.js CHANGED
@@ -181,11 +181,11 @@ var bp = { exports: {} };
181
181
  } }, xe.convert = function(i) {
182
182
  return i instanceof xe ? i : Array.isArray(i) ? new xe(i[0], i[1]) : i;
183
183
  };
184
- var oe = pe(fe), ae = ut;
185
- function ut(i, e, r, s) {
184
+ var oe = pe(fe), ae = pt;
185
+ function pt(i, e, r, s) {
186
186
  this.cx = 3 * i, this.bx = 3 * (r - i) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * e, this.by = 3 * (s - e) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = i, this.p1y = e, this.p2x = r, this.p2y = s;
187
187
  }
188
- ut.prototype = { sampleCurveX: function(i) {
188
+ pt.prototype = { sampleCurveX: function(i) {
189
189
  return ((this.ax * i + this.bx) * i + this.cx) * i;
190
190
  }, sampleCurveY: function(i) {
191
191
  return ((this.ay * i + this.by) * i + this.cy) * i;
@@ -207,7 +207,7 @@ var bp = { exports: {} };
207
207
  }, solve: function(i, e) {
208
208
  return this.sampleCurveY(this.solveCurveX(i, e));
209
209
  } };
210
- var $e = pe(ae);
210
+ var Ue = pe(ae);
211
211
  let Ke, Oe;
212
212
  function gt() {
213
213
  return Ke == null && (Ke = typeof OffscreenCanvas < "u" && new OffscreenCanvas(1, 1).getContext("2d") && typeof createImageBitmap == "function"), Ke;
@@ -230,7 +230,7 @@ var bp = { exports: {} };
230
230
  return Oe || !1;
231
231
  }
232
232
  function He(i, e, r, s) {
233
- const l = new $e(i, e, r, s);
233
+ const l = new Ue(i, e, r, s);
234
234
  return (d) => l.solve(d);
235
235
  }
236
236
  const Vt = He(0.25, 0.1, 0.25, 1);
@@ -2016,7 +2016,7 @@ var bp = { exports: {} };
2016
2016
  const d = Math.min(Et(i, [r, s], l), Et(e, [r, s], l)), p = Math.min(Et(r, [i, e], l), Et(s, [i, e], l));
2017
2017
  return Math.min(d, p);
2018
2018
  }
2019
- function dt(i, e, r, s, l) {
2019
+ function ut(i, e, r, s, l) {
2020
2020
  if (!Or(e, i.length) || !Or(s, r.length)) return 1 / 0;
2021
2021
  let d = 1 / 0;
2022
2022
  for (let p = e[0]; p < e[1]; ++p) {
@@ -2127,7 +2127,7 @@ var bp = { exports: {} };
2127
2127
  if (ho(v) <= k && ho(T) <= E) {
2128
2128
  if (!Or(v, i.length) && Or(T, r.length)) return NaN;
2129
2129
  let D;
2130
- if (e && s) D = dt(i, v, r, T, l), p = Math.min(p, D);
2130
+ if (e && s) D = ut(i, v, r, T, l), p = Math.min(p, D);
2131
2131
  else if (e && !s) {
2132
2132
  const B = i.slice(v[0], v[1] + 1);
2133
2133
  for (let O = T[0]; O <= T[1]; ++O) if (D = Et(r[O], B, l), p = Math.min(p, D), p === 0) return p;
@@ -4006,7 +4006,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4006
4006
  }
4007
4007
  }
4008
4008
  Fe("CollisionBoxArray", at);
4009
- class pt extends y {
4009
+ class dt extends y {
4010
4010
  get anchorX() {
4011
4011
  return this._structArray.int16[this._pos2 + 0];
4012
4012
  }
@@ -4068,10 +4068,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4068
4068
  return this._structArray.int16[this._pos2 + 22];
4069
4069
  }
4070
4070
  }
4071
- pt.prototype.size = 48;
4071
+ dt.prototype.size = 48;
4072
4072
  class Bt extends De {
4073
4073
  get(e) {
4074
- return new pt(this, e);
4074
+ return new dt(this, e);
4075
4075
  }
4076
4076
  }
4077
4077
  Fe("PlacedSymbolArray", Bt);
@@ -5550,7 +5550,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5550
5550
  for (const Ve of B) {
5551
5551
  const Be = [], ge = [];
5552
5552
  for (const Ze of Ve) {
5553
- const Ue = Ze.x, et = Ze.y, At = X[0] * Ue + X[4] * et + X[12], Pt = X[1] * Ue + X[5] * et + X[13], li = X[2] * Ue + X[6] * et + X[14], Cr = X[3] * Ue + X[7] * et + X[15], wi = li + ve, Ht = Cr + Le, Fi = At + Xe, Oi = Pt + Ee, Vi = li + Ae, Wt = Cr + je, ci = new oe((At + ie) / Ht, (Pt + ue) / Ht);
5553
+ const $e = Ze.x, et = Ze.y, At = X[0] * $e + X[4] * et + X[12], Pt = X[1] * $e + X[5] * et + X[13], li = X[2] * $e + X[6] * et + X[14], Cr = X[3] * $e + X[7] * et + X[15], wi = li + ve, Ht = Cr + Le, Fi = At + Xe, Oi = Pt + Ee, Vi = li + Ae, Wt = Cr + je, ci = new oe((At + ie) / Ht, (Pt + ue) / Ht);
5554
5554
  ci.z = wi / Ht, Be.push(ci);
5555
5555
  const Ei = new oe(Fi / Wt, Oi / Wt);
5556
5556
  Ei.z = Vi / Wt, ge.push(Ei);
@@ -5691,12 +5691,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5691
5691
  if (D && this.addCurrentVertex(E, O, Ve, Be, k), Ae === "fakeround") {
5692
5692
  const ge = Math.round(180 * ve / Math.PI / 20);
5693
5693
  for (let Ze = 1; Ze < ge; Ze++) {
5694
- let Ue = Ze / ge;
5695
- if (Ue !== 0.5) {
5696
- const At = Ue - 0.5;
5697
- Ue += Ue * At * (Ue - 1) * ((1.0904 + Y * (Y * (3.55645 - 1.43519 * Y) - 3.2452)) * At * At + (0.848013 + Y * (0.215638 * Y - 1.06021)));
5694
+ let $e = Ze / ge;
5695
+ if ($e !== 0.5) {
5696
+ const At = $e - 0.5;
5697
+ $e += $e * At * ($e - 1) * ((1.0904 + Y * (Y * (3.55645 - 1.43519 * Y) - 3.2452)) * At * At + (0.848013 + Y * (0.215638 * Y - 1.06021)));
5698
5698
  }
5699
- const et = q.sub(O)._mult(Ue)._add(O)._unit()._mult(Xe ? -1 : 1);
5699
+ const et = q.sub(O)._mult($e)._add(O)._unit()._mult(Xe ? -1 : 1);
5700
5700
  this.addHalfVertex(E, et.x, et.y, !1, Xe, 0, k);
5701
5701
  }
5702
5702
  }
@@ -6305,7 +6305,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6305
6305
  return Ee < Xe.length && Le.push(ue.substring(Ee, Xe.length)), Le;
6306
6306
  }(O, Th(O, v, d, e, s, D));
6307
6307
  const Y = [], ie = { positionedLines: Y, text: O.toString(), top: T[1], bottom: T[1], left: T[0], right: T[0], writingMode: k, iconsInText: !1, verticalizable: !1 };
6308
- return function(ue, ve, Le, Xe, Ee, Ae, je, Ve, Be, ge, Ze, Ue) {
6308
+ return function(ue, ve, Le, Xe, Ee, Ae, je, Ve, Be, ge, Ze, $e) {
6309
6309
  let et = 0, At = al, Pt = 0, li = 0;
6310
6310
  const Cr = Ve === "right" ? 1 : Ve === "left" ? 0 : 0.5;
6311
6311
  let wi = 0;
@@ -6328,7 +6328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6328
6328
  if (!mr) continue;
6329
6329
  hn = xt.imageName, ue.iconsInText = ue.iconsInText || !0, Zo = mr.paddedRect;
6330
6330
  const ui = mr.displaySize;
6331
- xt.scale = xt.scale * si / Ue, Gt = { width: ui[0], height: ui[1], left: Wi, top: -ed, advance: Er ? ui[1] : ui[0] }, er = Ei + (si - ui[1] * xt.scale), un = Gt.advance;
6331
+ xt.scale = xt.scale * si / $e, Gt = { width: ui[0], height: ui[1], left: Wi, top: -ed, advance: Er ? ui[1] : ui[0] }, er = Ei + (si - ui[1] * xt.scale), un = Gt.advance;
6332
6332
  const Mn = Er ? ui[0] * xt.scale - si * ci : ui[1] * xt.scale - si * ci;
6333
6333
  Mn > 0 && Mn > Ti && (Ti = Mn);
6334
6334
  } else {
@@ -6606,8 +6606,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6606
6606
  }
6607
6607
  const Be = Xe(Ve, je), ge = Xe(Ve, je, !0);
6608
6608
  if (Be in se && ge in X && se[Be] !== X[ge]) {
6609
- const Ze = Le(Be, ge, je), Ue = ve(Be, ge, Y[Ze].geometry);
6610
- delete X[Be], delete se[ge], se[Xe(Ve, Y[Ue].geometry, !0)] = Ue, Y[Ze].geometry = null;
6609
+ const Ze = Le(Be, ge, je), $e = ve(Be, ge, Y[Ze].geometry);
6610
+ delete X[Be], delete se[ge], se[Xe(Ve, Y[$e].geometry, !0)] = $e, Y[Ze].geometry = null;
6611
6611
  } else Be in se ? ve(Be, ge, je) : ge in X ? Le(Be, ge, je) : (ue(Ee), X[Be] = ie - 1, se[ge] = ie - 1);
6612
6612
  }
6613
6613
  return Y.filter((Ee) => Ee.geometry);
@@ -6648,8 +6648,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6648
6648
  addSymbols(e, r, s, l, d, p, m, _, v, T, k, E) {
6649
6649
  const D = e.indexArray, B = e.layoutVertexArray, O = e.segments.prepareSegment(4 * r.length, B, D, this.canOverlap ? p.sortKey : void 0), q = this.glyphOffsetArray.length, X = O.vertexLength, se = this.allowVerticalPlacement && m === S.ai.vertical ? Math.PI / 2 : 0, Y = p.text && p.text.sections;
6650
6650
  for (let ie = 0; ie < r.length; ie++) {
6651
- const { tl: ue, tr: ve, bl: Le, br: Xe, tex: Ee, pixelOffsetTL: Ae, pixelOffsetBR: je, minFontScaleX: Ve, minFontScaleY: Be, glyphOffset: ge, isSDF: Ze, sectionIndex: Ue } = r[ie], et = O.vertexLength, At = ge[1];
6652
- gc(B, _.x, _.y, ue.x, At + ue.y, Ee.x, Ee.y, s, Ze, Ae.x, Ae.y, Ve, Be), gc(B, _.x, _.y, ve.x, At + ve.y, Ee.x + Ee.w, Ee.y, s, Ze, je.x, Ae.y, Ve, Be), gc(B, _.x, _.y, Le.x, At + Le.y, Ee.x, Ee.y + Ee.h, s, Ze, Ae.x, je.y, Ve, Be), gc(B, _.x, _.y, Xe.x, At + Xe.y, Ee.x + Ee.w, Ee.y + Ee.h, s, Ze, je.x, je.y, Ve, Be), Ph(e.dynamicLayoutVertexArray, _, se), D.emplaceBack(et, et + 1, et + 2), D.emplaceBack(et + 1, et + 2, et + 3), O.vertexLength += 4, O.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(ge[0]), ie !== r.length - 1 && Ue === r[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(B.length, p, p.index, {}, E, Y && Y[Ue]);
6651
+ const { tl: ue, tr: ve, bl: Le, br: Xe, tex: Ee, pixelOffsetTL: Ae, pixelOffsetBR: je, minFontScaleX: Ve, minFontScaleY: Be, glyphOffset: ge, isSDF: Ze, sectionIndex: $e } = r[ie], et = O.vertexLength, At = ge[1];
6652
+ gc(B, _.x, _.y, ue.x, At + ue.y, Ee.x, Ee.y, s, Ze, Ae.x, Ae.y, Ve, Be), gc(B, _.x, _.y, ve.x, At + ve.y, Ee.x + Ee.w, Ee.y, s, Ze, je.x, Ae.y, Ve, Be), gc(B, _.x, _.y, Le.x, At + Le.y, Ee.x, Ee.y + Ee.h, s, Ze, Ae.x, je.y, Ve, Be), gc(B, _.x, _.y, Xe.x, At + Xe.y, Ee.x + Ee.w, Ee.y + Ee.h, s, Ze, je.x, je.y, Ve, Be), Ph(e.dynamicLayoutVertexArray, _, se), D.emplaceBack(et, et + 1, et + 2), D.emplaceBack(et + 1, et + 2, et + 3), O.vertexLength += 4, O.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(ge[0]), ie !== r.length - 1 && $e === r[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(B.length, p, p.index, {}, E, Y && Y[$e]);
6653
6653
  }
6654
6654
  e.placedSymbolArray.emplaceBack(_.x, _.y, q, this.glyphOffsetArray.length - q, X, v, T, _.segment, s ? s[0] : 0, s ? s[1] : 0, l[0], l[1], m, 0, !1, 0, k);
6655
6655
  }
@@ -7349,22 +7349,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7349
7349
  const T = d.stretchX || [[0, m]], k = d.stretchY || [[0, _]], E = (ge, Ze) => ge + Ze[1] - Ze[0], D = T.reduce(E, 0), B = k.reduce(E, 0), O = m - D, q = _ - B;
7350
7350
  let X = 0, se = D, Y = 0, ie = B, ue = 0, ve = O, Le = 0, Xe = q;
7351
7351
  if (d.content && s) {
7352
- const ge = d.content, Ze = ge[2] - ge[0], Ue = ge[3] - ge[1];
7353
- (d.textFitWidth || d.textFitHeight) && (v = ad(i)), X = xc(T, 0, ge[0]), Y = xc(k, 0, ge[1]), se = xc(T, ge[0], ge[2]), ie = xc(k, ge[1], ge[3]), ue = ge[0] - X, Le = ge[1] - Y, ve = Ze - se, Xe = Ue - ie;
7352
+ const ge = d.content, Ze = ge[2] - ge[0], $e = ge[3] - ge[1];
7353
+ (d.textFitWidth || d.textFitHeight) && (v = ad(i)), X = xc(T, 0, ge[0]), Y = xc(k, 0, ge[1]), se = xc(T, ge[0], ge[2]), ie = xc(k, ge[1], ge[3]), ue = ge[0] - X, Le = ge[1] - Y, ve = Ze - se, Xe = $e - ie;
7354
7354
  }
7355
- const Ee = v.x1, Ae = v.y1, je = v.x2 - Ee, Ve = v.y2 - Ae, Be = (ge, Ze, Ue, et) => {
7356
- const At = vc(ge.stretch - X, se, je, Ee), Pt = bc(ge.fixed - ue, ve, ge.stretch, D), li = vc(Ze.stretch - Y, ie, Ve, Ae), Cr = bc(Ze.fixed - Le, Xe, Ze.stretch, B), wi = vc(Ue.stretch - X, se, je, Ee), Ht = bc(Ue.fixed - ue, ve, Ue.stretch, D), Fi = vc(et.stretch - Y, ie, Ve, Ae), Oi = bc(et.fixed - Le, Xe, et.stretch, B), Vi = new oe(At, li), Wt = new oe(wi, li), ci = new oe(wi, Fi), Ei = new oe(At, Fi), Si = new oe(Pt / p, Cr / p), Ni = new oe(Ht / p, Oi / p), Ti = e * Math.PI / 180;
7355
+ const Ee = v.x1, Ae = v.y1, je = v.x2 - Ee, Ve = v.y2 - Ae, Be = (ge, Ze, $e, et) => {
7356
+ const At = vc(ge.stretch - X, se, je, Ee), Pt = bc(ge.fixed - ue, ve, ge.stretch, D), li = vc(Ze.stretch - Y, ie, Ve, Ae), Cr = bc(Ze.fixed - Le, Xe, Ze.stretch, B), wi = vc($e.stretch - X, se, je, Ee), Ht = bc($e.fixed - ue, ve, $e.stretch, D), Fi = vc(et.stretch - Y, ie, Ve, Ae), Oi = bc(et.fixed - Le, Xe, et.stretch, B), Vi = new oe(At, li), Wt = new oe(wi, li), ci = new oe(wi, Fi), Ei = new oe(At, Fi), Si = new oe(Pt / p, Cr / p), Ni = new oe(Ht / p, Oi / p), Ti = e * Math.PI / 180;
7357
7357
  if (Ti) {
7358
7358
  const xt = Math.sin(Ti), zt = Math.cos(Ti), Ot = [zt, -xt, xt, zt];
7359
7359
  Vi._matMult(Ot), Wt._matMult(Ot), Ei._matMult(Ot), ci._matMult(Ot);
7360
7360
  }
7361
7361
  const fr = ge.stretch + ge.fixed, Xi = Ze.stretch + Ze.fixed;
7362
- return { tl: Vi, tr: Wt, bl: Ei, br: ci, tex: { x: d.paddedRect.x + jo + fr, y: d.paddedRect.y + jo + Xi, w: Ue.stretch + Ue.fixed - fr, h: et.stretch + et.fixed - Xi }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Si, pixelOffsetBR: Ni, minFontScaleX: ve / p / je, minFontScaleY: Xe / p / Ve, isSDF: r };
7362
+ return { tl: Vi, tr: Wt, bl: Ei, br: ci, tex: { x: d.paddedRect.x + jo + fr, y: d.paddedRect.y + jo + Xi, w: $e.stretch + $e.fixed - fr, h: et.stretch + et.fixed - Xi }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Si, pixelOffsetBR: Ni, minFontScaleX: ve / p / je, minFontScaleY: Xe / p / Ve, isSDF: r };
7363
7363
  };
7364
7364
  if (s && (d.stretchX || d.stretchY)) {
7365
7365
  const ge = Rd(T, O, D), Ze = Rd(k, q, B);
7366
- for (let Ue = 0; Ue < ge.length - 1; Ue++) {
7367
- const et = ge[Ue], At = ge[Ue + 1];
7366
+ for (let $e = 0; $e < ge.length - 1; $e++) {
7367
+ const et = ge[$e], At = ge[$e + 1];
7368
7368
  for (let Pt = 0; Pt < Ze.length - 1; Pt++) l.push(Be(et, Ze[Pt], At, Ze[Pt + 1]));
7369
7369
  }
7370
7370
  } else l.push(Be({ fixed: 0, stretch: -1 }, { fixed: 0, stretch: -1 }, { fixed: 0, stretch: m + 1 }, { fixed: 0, stretch: _ + 1 }));
@@ -7592,28 +7592,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7592
7592
  function Cm(i, e, r, s, l, d, p, m, _, v, T) {
7593
7593
  let k = d.textMaxSize.evaluate(e, {});
7594
7594
  k === void 0 && (k = p);
7595
- const E = i.layers[0].layout, D = E.get("icon-offset").evaluate(e, {}, T), B = Vd(r.horizontal), O = p / 24, q = i.tilePixelRatio * O, X = i.tilePixelRatio * k / 24, se = i.tilePixelRatio * m, Y = i.tilePixelRatio * E.get("symbol-spacing"), ie = E.get("text-padding") * i.tilePixelRatio, ue = function(ge, Ze, Ue, et = 1) {
7596
- const At = ge.get("icon-padding").evaluate(Ze, {}, Ue), Pt = At && At.values;
7595
+ const E = i.layers[0].layout, D = E.get("icon-offset").evaluate(e, {}, T), B = Vd(r.horizontal), O = p / 24, q = i.tilePixelRatio * O, X = i.tilePixelRatio * k / 24, se = i.tilePixelRatio * m, Y = i.tilePixelRatio * E.get("symbol-spacing"), ie = E.get("text-padding") * i.tilePixelRatio, ue = function(ge, Ze, $e, et = 1) {
7596
+ const At = ge.get("icon-padding").evaluate(Ze, {}, $e), Pt = At && At.values;
7597
7597
  return [Pt[0] * et, Pt[1] * et, Pt[2] * et, Pt[3] * et];
7598
7598
  }(E, e, T, i.tilePixelRatio), ve = E.get("text-max-angle") / 180 * Math.PI, Le = E.get("text-rotation-alignment") !== "viewport" && E.get("symbol-placement") !== "point", Xe = E.get("icon-rotation-alignment") === "map" && E.get("symbol-placement") !== "point", Ee = E.get("symbol-placement"), Ae = Y / 2, je = E.get("icon-text-fit");
7599
7599
  let Ve;
7600
7600
  s && je !== "none" && (i.allowVerticalPlacement && r.vertical && (Ve = ld(s, r.vertical, je, E.get("icon-text-fit-padding"), D, O)), B && (s = ld(s, B, je, E.get("icon-text-fit-padding"), D, O)));
7601
7601
  const Be = (ge, Ze) => {
7602
- Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function(Ue, et, At, Pt, li, Cr, wi, Ht, Fi, Oi, Vi, Wt, ci, Ei, Si, Ni, Ti, fr, Xi, xt, zt, Ot, er, Gt, Zo) {
7603
- const hn = Ue.addToLineVertexArray(et, At);
7602
+ Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function($e, et, At, Pt, li, Cr, wi, Ht, Fi, Oi, Vi, Wt, ci, Ei, Si, Ni, Ti, fr, Xi, xt, zt, Ot, er, Gt, Zo) {
7603
+ const hn = $e.addToLineVertexArray(et, At);
7604
7604
  let un, Er, mr, ui, Mn = 0, pl = 0, jd = 0, qd = 0, jh = -1, qh = -1;
7605
7605
  const zn = {};
7606
7606
  let Zd = Lo("");
7607
- if (Ue.allowVerticalPlacement && Pt.vertical) {
7607
+ if ($e.allowVerticalPlacement && Pt.vertical) {
7608
7608
  const Mi = Ht.layout.get("text-rotate").evaluate(zt, {}, Gt) + 90;
7609
7609
  mr = new wc(Fi, et, Oi, Vi, Wt, Pt.vertical, ci, Ei, Si, Mi), wi && (ui = new wc(Fi, et, Oi, Vi, Wt, wi, Ti, fr, Si, Mi));
7610
7610
  }
7611
7611
  if (li) {
7612
7612
  const Mi = Ht.layout.get("icon-rotate").evaluate(zt, {}), gr = Ht.layout.get("icon-text-fit") !== "none", Us = Dd(li, Mi, er, gr), jr = wi ? Dd(wi, Mi, er, gr) : void 0;
7613
7613
  Er = new wc(Fi, et, Oi, Vi, Wt, li, Ti, fr, !1, Mi), Mn = 4 * Us.length;
7614
- const js = Ue.iconSizeData;
7614
+ const js = $e.iconSizeData;
7615
7615
  let dn = null;
7616
- js.kind === "source" ? (dn = [cn * Ht.layout.get("icon-size").evaluate(zt, {})], dn[0] > is && di(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${cl}. Reduce your "icon-size".`)) : js.kind === "composite" && (dn = [cn * Ot.compositeIconSizes[0].evaluate(zt, {}, Gt), cn * Ot.compositeIconSizes[1].evaluate(zt, {}, Gt)], (dn[0] > is || dn[1] > is) && di(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${cl}. Reduce your "icon-size".`)), Ue.addSymbols(Ue.icon, Us, dn, xt, Xi, zt, S.ai.none, et, hn.lineStartIndex, hn.lineLength, -1, Gt), jh = Ue.icon.placedSymbolArray.length - 1, jr && (pl = 4 * jr.length, Ue.addSymbols(Ue.icon, jr, dn, xt, Xi, zt, S.ai.vertical, et, hn.lineStartIndex, hn.lineLength, -1, Gt), qh = Ue.icon.placedSymbolArray.length - 1);
7616
+ js.kind === "source" ? (dn = [cn * Ht.layout.get("icon-size").evaluate(zt, {})], dn[0] > is && di(`${$e.layerIds[0]}: Value for "icon-size" is >= ${cl}. Reduce your "icon-size".`)) : js.kind === "composite" && (dn = [cn * Ot.compositeIconSizes[0].evaluate(zt, {}, Gt), cn * Ot.compositeIconSizes[1].evaluate(zt, {}, Gt)], (dn[0] > is || dn[1] > is) && di(`${$e.layerIds[0]}: Value for "icon-size" is >= ${cl}. Reduce your "icon-size".`)), $e.addSymbols($e.icon, Us, dn, xt, Xi, zt, S.ai.none, et, hn.lineStartIndex, hn.lineLength, -1, Gt), jh = $e.icon.placedSymbolArray.length - 1, jr && (pl = 4 * jr.length, $e.addSymbols($e.icon, jr, dn, xt, Xi, zt, S.ai.vertical, et, hn.lineStartIndex, hn.lineLength, -1, Gt), qh = $e.icon.placedSymbolArray.length - 1);
7617
7617
  }
7618
7618
  const Gd = Object.keys(Pt.horizontal);
7619
7619
  for (const Mi of Gd) {
@@ -7624,15 +7624,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7624
7624
  un = new wc(Fi, et, Oi, Vi, Wt, gr, ci, Ei, Si, jr);
7625
7625
  }
7626
7626
  const Us = gr.positionedLines.length === 1;
7627
- if (jd += Od(Ue, et, gr, Cr, Ht, Si, zt, Ni, hn, Pt.vertical ? S.ai.horizontal : S.ai.horizontalOnly, Us ? Gd : [Mi], zn, jh, Ot, Gt), Us) break;
7627
+ if (jd += Od($e, et, gr, Cr, Ht, Si, zt, Ni, hn, Pt.vertical ? S.ai.horizontal : S.ai.horizontalOnly, Us ? Gd : [Mi], zn, jh, Ot, Gt), Us) break;
7628
7628
  }
7629
- Pt.vertical && (qd += Od(Ue, et, Pt.vertical, Cr, Ht, Si, zt, Ni, hn, S.ai.vertical, ["vertical"], zn, qh, Ot, Gt));
7630
- const zm = un ? un.boxStartIndex : Ue.collisionBoxArray.length, Lm = un ? un.boxEndIndex : Ue.collisionBoxArray.length, Dm = mr ? mr.boxStartIndex : Ue.collisionBoxArray.length, Rm = mr ? mr.boxEndIndex : Ue.collisionBoxArray.length, Bm = Er ? Er.boxStartIndex : Ue.collisionBoxArray.length, Fm = Er ? Er.boxEndIndex : Ue.collisionBoxArray.length, Om = ui ? ui.boxStartIndex : Ue.collisionBoxArray.length, Vm = ui ? ui.boxEndIndex : Ue.collisionBoxArray.length;
7629
+ Pt.vertical && (qd += Od($e, et, Pt.vertical, Cr, Ht, Si, zt, Ni, hn, S.ai.vertical, ["vertical"], zn, qh, Ot, Gt));
7630
+ const zm = un ? un.boxStartIndex : $e.collisionBoxArray.length, Lm = un ? un.boxEndIndex : $e.collisionBoxArray.length, Dm = mr ? mr.boxStartIndex : $e.collisionBoxArray.length, Rm = mr ? mr.boxEndIndex : $e.collisionBoxArray.length, Bm = Er ? Er.boxStartIndex : $e.collisionBoxArray.length, Fm = Er ? Er.boxEndIndex : $e.collisionBoxArray.length, Om = ui ? ui.boxStartIndex : $e.collisionBoxArray.length, Vm = ui ? ui.boxEndIndex : $e.collisionBoxArray.length;
7631
7631
  let Ur = -1;
7632
7632
  const Tc = (Mi, gr) => Mi && Mi.circleDiameter ? Math.max(Mi.circleDiameter, gr) : gr;
7633
7633
  Ur = Tc(un, Ur), Ur = Tc(mr, Ur), Ur = Tc(Er, Ur), Ur = Tc(ui, Ur);
7634
7634
  const Hd = Ur > -1 ? 1 : 0;
7635
- Hd && (Ur *= Zo / si), Ue.glyphOffsetArray.length >= Uo.MAX_GLYPHS && di("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), zt.sortKey !== void 0 && Ue.addToSortKeyRanges(Ue.symbolInstances.length, zt.sortKey);
7635
+ Hd && (Ur *= Zo / si), $e.glyphOffsetArray.length >= Uo.MAX_GLYPHS && di("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), zt.sortKey !== void 0 && $e.addToSortKeyRanges($e.symbolInstances.length, zt.sortKey);
7636
7636
  const Nm = Fd(Ht, zt, Gt), [$m, Um] = function(Mi, gr) {
7637
7637
  const Us = Mi.length, jr = gr == null ? void 0 : gr.values;
7638
7638
  if ((jr == null ? void 0 : jr.length) > 0) for (let js = 0; js < jr.length; js += 2) {
@@ -7640,13 +7640,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7640
7640
  Mi.emplaceBack(S.ar[jr[js]], dn[0], dn[1]);
7641
7641
  }
7642
7642
  return [Us, Mi.length];
7643
- }(Ue.textAnchorOffsets, Nm);
7644
- Ue.symbolInstances.emplaceBack(et.x, et.y, zn.right >= 0 ? zn.right : -1, zn.center >= 0 ? zn.center : -1, zn.left >= 0 ? zn.left : -1, zn.vertical || -1, jh, qh, Zd, zm, Lm, Dm, Rm, Bm, Fm, Om, Vm, Oi, jd, qd, Mn, pl, Hd, 0, ci, Ur, $m, Um);
7643
+ }($e.textAnchorOffsets, Nm);
7644
+ $e.symbolInstances.emplaceBack(et.x, et.y, zn.right >= 0 ? zn.right : -1, zn.center >= 0 ? zn.center : -1, zn.left >= 0 ? zn.left : -1, zn.vertical || -1, jh, qh, Zd, zm, Lm, Dm, Rm, Bm, Fm, Om, Vm, Oi, jd, qd, Mn, pl, Hd, 0, ci, Ur, $m, Um);
7645
7645
  }(i, Ze, ge, r, s, l, Ve, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, q, [ie, ie, ie, ie], Le, _, se, ue, Xe, D, e, d, v, T, p);
7646
7646
  };
7647
7647
  if (Ee === "line") for (const ge of Ad(e.geometry, 0, 0, ti, ti)) {
7648
7648
  const Ze = Im(ge, Y, ve, r.vertical || B, s, 24, X, i.overscaling, ti);
7649
- for (const Ue of Ze) B && Em(i, B.text, Ae, Ue) || Be(ge, Ue);
7649
+ for (const $e of Ze) B && Em(i, B.text, Ae, $e) || Be(ge, $e);
7650
7650
  }
7651
7651
  else if (Ee === "line-center") {
7652
7652
  for (const ge of e.geometry) if (ge.length > 1) {
@@ -7666,11 +7666,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7666
7666
  for (const Ve of Y.positionedLines) for (const Be of Ve.positionedGlyphs) {
7667
7667
  if (!Be.rect) continue;
7668
7668
  const ge = Be.rect || {};
7669
- let Ze = ed + 1, Ue = !0, et = 1, At = 0;
7669
+ let Ze = ed + 1, $e = !0, et = 1, At = 0;
7670
7670
  const Pt = (ve || Ee) && Be.vertical, li = Be.metrics.advance * Be.scale / 2;
7671
7671
  if (Ee && Y.verticalizable && (At = Ve.lineOffset / 2 - (Be.imageName ? -(si - Be.metrics.width * Be.scale) / 2 : (Be.scale - 1) * si)), Be.imageName) {
7672
7672
  const xt = Xe[Be.imageName];
7673
- Ue = xt.sdf, et = xt.pixelRatio, Ze = Wi / et;
7673
+ $e = xt.sdf, et = xt.pixelRatio, Ze = Wi / et;
7674
7674
  }
7675
7675
  const Cr = ve ? [Be.x + li, Be.y] : [0, 0];
7676
7676
  let wi = ve ? [0, 0] : [Be.x + li + ie[0], Be.y + ie[1] - At], Ht = [0, 0];
@@ -7685,7 +7685,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7685
7685
  Ei._matMult(Ot), Si._matMult(Ot), Ni._matMult(Ot), Ti._matMult(Ot);
7686
7686
  }
7687
7687
  const fr = new oe(0, 0), Xi = new oe(0, 0);
7688
- je.push({ tl: Ei, tr: Si, bl: Ni, br: Ti, tex: ge, writingMode: Y.writingMode, glyphOffset: Cr, sectionIndex: Be.sectionIndex, isSDF: Ue, pixelOffsetTL: fr, pixelOffsetBR: Xi, minFontScaleX: 0, minFontScaleY: 0 });
7688
+ je.push({ tl: Ei, tr: Si, bl: Ni, br: Ti, tex: ge, writingMode: Y.writingMode, glyphOffset: Cr, sectionIndex: Be.sectionIndex, isSDF: $e, pixelOffsetTL: fr, pixelOffsetBR: Xi, minFontScaleX: 0, minFontScaleY: 0 });
7689
7689
  }
7690
7690
  return je;
7691
7691
  }(0, r, m, l, d, p, s, i.allowVerticalPlacement), q = i.textSizeData;
@@ -7904,8 +7904,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7904
7904
  }
7905
7905
  return r;
7906
7906
  }, S.N = rs, S.O = _d, S.P = oe, S.Q = yd, S.R = dr, S.S = pr, S.T = Wn, S.U = gt, S.V = ot, S.W = pn, S.X = ti, S.Y = w, S.Z = yc, S._ = c, S.a = Wr, S.a$ = function(i, e) {
7907
- var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], m = i[5], _ = i[6], v = i[7], T = i[8], k = i[9], E = i[10], D = i[11], B = i[12], O = i[13], q = i[14], X = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], ve = e[4], Le = e[5], Xe = e[6], Ee = e[7], Ae = e[8], je = e[9], Ve = e[10], Be = e[11], ge = e[12], Ze = e[13], Ue = e[14], et = e[15];
7908
- return Math.abs(r - se) <= Bi * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Bi * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Bi * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Bi * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - ve) <= Bi * Math.max(1, Math.abs(p), Math.abs(ve)) && Math.abs(m - Le) <= Bi * Math.max(1, Math.abs(m), Math.abs(Le)) && Math.abs(_ - Xe) <= Bi * Math.max(1, Math.abs(_), Math.abs(Xe)) && Math.abs(v - Ee) <= Bi * Math.max(1, Math.abs(v), Math.abs(Ee)) && Math.abs(T - Ae) <= Bi * Math.max(1, Math.abs(T), Math.abs(Ae)) && Math.abs(k - je) <= Bi * Math.max(1, Math.abs(k), Math.abs(je)) && Math.abs(E - Ve) <= Bi * Math.max(1, Math.abs(E), Math.abs(Ve)) && Math.abs(D - Be) <= Bi * Math.max(1, Math.abs(D), Math.abs(Be)) && Math.abs(B - ge) <= Bi * Math.max(1, Math.abs(B), Math.abs(ge)) && Math.abs(O - Ze) <= Bi * Math.max(1, Math.abs(O), Math.abs(Ze)) && Math.abs(q - Ue) <= Bi * Math.max(1, Math.abs(q), Math.abs(Ue)) && Math.abs(X - et) <= Bi * Math.max(1, Math.abs(X), Math.abs(et));
7907
+ var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], m = i[5], _ = i[6], v = i[7], T = i[8], k = i[9], E = i[10], D = i[11], B = i[12], O = i[13], q = i[14], X = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], ve = e[4], Le = e[5], Xe = e[6], Ee = e[7], Ae = e[8], je = e[9], Ve = e[10], Be = e[11], ge = e[12], Ze = e[13], $e = e[14], et = e[15];
7908
+ return Math.abs(r - se) <= Bi * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Bi * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Bi * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Bi * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - ve) <= Bi * Math.max(1, Math.abs(p), Math.abs(ve)) && Math.abs(m - Le) <= Bi * Math.max(1, Math.abs(m), Math.abs(Le)) && Math.abs(_ - Xe) <= Bi * Math.max(1, Math.abs(_), Math.abs(Xe)) && Math.abs(v - Ee) <= Bi * Math.max(1, Math.abs(v), Math.abs(Ee)) && Math.abs(T - Ae) <= Bi * Math.max(1, Math.abs(T), Math.abs(Ae)) && Math.abs(k - je) <= Bi * Math.max(1, Math.abs(k), Math.abs(je)) && Math.abs(E - Ve) <= Bi * Math.max(1, Math.abs(E), Math.abs(Ve)) && Math.abs(D - Be) <= Bi * Math.max(1, Math.abs(D), Math.abs(Be)) && Math.abs(B - ge) <= Bi * Math.max(1, Math.abs(B), Math.abs(ge)) && Math.abs(O - Ze) <= Bi * Math.max(1, Math.abs(O), Math.abs(Ze)) && Math.abs(q - $e) <= Bi * Math.max(1, Math.abs(q), Math.abs($e)) && Math.abs(X - et) <= Bi * Math.max(1, Math.abs(X), Math.abs(et));
7909
7909
  }, S.a0 = ni, S.a1 = Lh, S.a2 = Te, S.a3 = (i) => {
7910
7910
  const e = window.document.createElement("video");
7911
7911
  return e.muted = !0, new Promise((r) => {
@@ -8416,13 +8416,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8416
8416
  M && M[V] && delete M[V];
8417
8417
  }
8418
8418
  }
8419
- function ut(H, z) {
8419
+ function pt(H, z) {
8420
8420
  if (H.length !== 0) {
8421
- $e(H[0], z);
8422
- for (var M = 1; M < H.length; M++) $e(H[M], !z);
8421
+ Ue(H[0], z);
8422
+ for (var M = 1; M < H.length; M++) Ue(H[M], !z);
8423
8423
  }
8424
8424
  }
8425
- function $e(H, z) {
8425
+ function Ue(H, z) {
8426
8426
  for (var M = 0, V = 0, Z = 0, Q = H.length, te = Q - 1; Z < Q; te = Z++) {
8427
8427
  var re = (H[Z][0] - H[te][0]) * (H[te][1] + H[Z][1]), J = M + re;
8428
8428
  V += Math.abs(M) >= Math.abs(re) ? M - J + re : re - J + M, M = J;
@@ -8434,8 +8434,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8434
8434
  if (Z === "FeatureCollection") for (V = 0; V < z.features.length; V++) H(z.features[V], M);
8435
8435
  else if (Z === "GeometryCollection") for (V = 0; V < z.geometries.length; V++) H(z.geometries[V], M);
8436
8436
  else if (Z === "Feature") H(z.geometry, M);
8437
- else if (Z === "Polygon") ut(z.coordinates, M);
8438
- else if (Z === "MultiPolygon") for (V = 0; V < z.coordinates.length; V++) ut(z.coordinates[V], M);
8437
+ else if (Z === "Polygon") pt(z.coordinates, M);
8438
+ else if (Z === "MultiPolygon") for (V = 0; V < z.coordinates.length; V++) pt(z.coordinates[V], M);
8439
8439
  return z;
8440
8440
  });
8441
8441
  const Oe = S.bs.VectorTileFeature.prototype.toGeoJSON;
@@ -9342,25 +9342,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9342
9342
  }
9343
9343
  }
9344
9344
  ae.docStyle = typeof window < "u" && window.document && window.document.documentElement.style, ae.selectProp = ae.testProp(["userSelect", "MozUserSelect", "WebkitUserSelect", "msUserSelect"]), ae.transformProp = ae.testProp(["transform", "WebkitTransform"]);
9345
- const ut = { supported: !1, testSupport: function(u) {
9346
- !Oe && Ke && (gt ? ot(u) : $e = u);
9345
+ const pt = { supported: !1, testSupport: function(u) {
9346
+ !Oe && Ke && (gt ? ot(u) : Ue = u);
9347
9347
  } };
9348
- let $e, Ke, Oe = !1, gt = !1;
9348
+ let Ue, Ke, Oe = !1, gt = !1;
9349
9349
  function ot(u) {
9350
9350
  const t = u.createTexture();
9351
9351
  u.bindTexture(u.TEXTURE_2D, t);
9352
9352
  try {
9353
9353
  if (u.texImage2D(u.TEXTURE_2D, 0, u.RGBA, u.RGBA, u.UNSIGNED_BYTE, Ke), u.isContextLost()) return;
9354
- ut.supported = !0;
9354
+ pt.supported = !0;
9355
9355
  } catch {
9356
9356
  }
9357
9357
  u.deleteTexture(t), Oe = !0;
9358
9358
  }
9359
9359
  var He;
9360
9360
  typeof document < "u" && (Ke = document.createElement("img"), Ke.onload = () => {
9361
- $e && ot($e), $e = null, gt = !0;
9361
+ Ue && ot(Ue), Ue = null, gt = !0;
9362
9362
  }, Ke.onerror = () => {
9363
- Oe = !0, $e = null;
9363
+ Oe = !0, Ue = null;
9364
9364
  }, Ke.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), function(u) {
9365
9365
  let t, n, o, a;
9366
9366
  u.resetRequestQueue = () => {
@@ -9371,7 +9371,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9371
9371
  }, u.removeThrottleControl = (b) => {
9372
9372
  delete a[b], g();
9373
9373
  }, u.getImage = (b, w, P = !0) => new Promise((A, R) => {
9374
- ut.supported && (b.headers || (b.headers = {}), b.headers.accept = "image/webp,*/*"), c.e(b, { type: "image" }), t.push({ abortController: w, requestParameters: b, supportImageRefresh: P, state: "queued", onError: (F) => {
9374
+ pt.supported && (b.headers || (b.headers = {}), b.headers.accept = "image/webp,*/*"), c.e(b, { type: "image" }), t.push({ abortController: w, requestParameters: b, supportImageRefresh: P, state: "queued", onError: (F) => {
9375
9375
  R(F);
9376
9376
  }, onSuccess: (F) => {
9377
9377
  A(F);
@@ -11500,20 +11500,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11500
11500
  const Qe = 2.5 * De;
11501
11501
  if (w) {
11502
11502
  const at = this.projectPathToScreenSpace(Ce, ne, w);
11503
- Ce = at.some((pt) => pt.signedDistanceFromCamera <= 0) ? [] : at.map((pt) => pt.point);
11503
+ Ce = at.some((dt) => dt.signedDistanceFromCamera <= 0) ? [] : at.map((dt) => dt.point);
11504
11504
  }
11505
11505
  let Rt = [];
11506
11506
  if (Ce.length > 0) {
11507
- const at = Ce[0].clone(), pt = Ce[0].clone();
11508
- for (let Bt = 1; Bt < Ce.length; Bt++) at.x = Math.min(at.x, Ce[Bt].x), at.y = Math.min(at.y, Ce[Bt].y), pt.x = Math.max(pt.x, Ce[Bt].x), pt.y = Math.max(pt.y, Ce[Bt].y);
11509
- Rt = at.x >= we.x && pt.x <= Se.x && at.y >= we.y && pt.y <= Se.y ? [Ce] : pt.x < we.x || at.x > Se.x || pt.y < we.y || at.y > Se.y ? [] : c.am([Ce], we.x, we.y, Se.x, Se.y);
11507
+ const at = Ce[0].clone(), dt = Ce[0].clone();
11508
+ for (let Bt = 1; Bt < Ce.length; Bt++) at.x = Math.min(at.x, Ce[Bt].x), at.y = Math.min(at.y, Ce[Bt].y), dt.x = Math.max(dt.x, Ce[Bt].x), dt.y = Math.max(dt.y, Ce[Bt].y);
11509
+ Rt = at.x >= we.x && dt.x <= Se.x && at.y >= we.y && dt.y <= Se.y ? [Ce] : dt.x < we.x || at.x > Se.x || dt.y < we.y || at.y > Se.y ? [] : c.am([Ce], we.x, we.y, Se.x, Se.y);
11510
11510
  }
11511
11511
  for (const at of Rt) {
11512
11512
  Ne.reset(at, 0.25 * De);
11513
- let pt = 0;
11514
- pt = Ne.length <= 0.5 * De ? 1 : Math.ceil(Ne.paddedLength / Qe) + 1;
11515
- for (let Bt = 0; Bt < pt; Bt++) {
11516
- const gi = Bt / Math.max(pt - 1, 1), cr = Ne.lerp(gi), Ft = cr.x + st, Ri = cr.y + st;
11513
+ let dt = 0;
11514
+ dt = Ne.length <= 0.5 * De ? 1 : Math.ceil(Ne.paddedLength / Qe) + 1;
11515
+ for (let Bt = 0; Bt < dt; Bt++) {
11516
+ const gi = Bt / Math.max(dt - 1, 1), cr = Ne.lerp(gi), Ft = cr.x + st, Ri = cr.y + st;
11517
11517
  W.push(Ft, Ri, De, 0);
11518
11518
  const Ci = Ft - De, _i = Ri - De, yi = Ft + De, hr = Ri + De;
11519
11519
  if (ze = ze && this.isOffscreen(Ci, _i, yi, hr), be = be || this.isInsideGrid(Ci, _i, yi, hr), t !== "always" && this.grid.hitTestCircle(Ft, Ri, De, t, R) && (_e = !0, !P)) return { circles: [], offscreen: !1, collisionDetected: _e };
@@ -11687,7 +11687,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11687
11687
  var Rt, at;
11688
11688
  if (n[ke.crossTileID]) return;
11689
11689
  if (F) return void (this.placements[ke.crossTileID] = new Qt(!1, !1, !1));
11690
- let pt = !1, Bt = !1, gi = !0, cr = null, Ft = { box: null, placeable: !1, offscreen: null }, Ri = { box: null, placeable: !1, offscreen: null }, Ci = null, _i = null, yi = null, hr = 0, Pn = 0, Co = 0;
11690
+ let dt = !1, Bt = !1, gi = !0, cr = null, Ft = { box: null, placeable: !1, offscreen: null }, Ri = { box: null, placeable: !1, offscreen: null }, Ci = null, _i = null, yi = null, hr = 0, Pn = 0, Co = 0;
11691
11691
  Ce.textFeatureIndex ? hr = Ce.textFeatureIndex : ke.useRuntimeCollisionCircles && (hr = ke.featureIndex), Ce.verticalTextFeatureIndex && (Pn = Ce.verticalTextFeatureIndex);
11692
11692
  const Xn = Ce.textBox;
11693
11693
  if (Xn) {
@@ -11723,7 +11723,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11723
11723
  const Lo = a.textAnchorOffsets.get(Ja);
11724
11724
  if (xi && Lo.textAnchor !== xi) continue;
11725
11725
  const Yn = this.attemptAnchorPlacement(Lo, Ut, ni, tc, Mo, _e, be, R, b, w, j, Wa, ke, a, Ha, g, y, zo, Ne);
11726
- if (Yn && (ln = Yn.placedGlyphBoxes, ln && ln.placeable)) return pt = !0, cr = Yn.shift, ln;
11726
+ if (Yn && (ln = Yn.placedGlyphBoxes, ln && ln.placeable)) return dt = !0, cr = Yn.shift, ln;
11727
11727
  }
11728
11728
  xi ? xi = null : Wa = $;
11729
11729
  }
@@ -11732,28 +11732,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11732
11732
  ur(() => vi(Xn, Ce.iconBox, c.ai.horizontal), () => {
11733
11733
  const Ut = Ce.verticalTextBox;
11734
11734
  return a.allowVerticalPlacement && (!Ft || !Ft.placeable) && ke.numVerticalGlyphVertices > 0 && Ut ? vi(Ut, Ce.verticalIconBox, c.ai.vertical) : { box: null, occluded: !0, offscreen: null };
11735
- }), Ft && (pt = Ft.placeable, gi = Ft.offscreen);
11735
+ }), Ft && (dt = Ft.placeable, gi = Ft.offscreen);
11736
11736
  const ai = hi(Ft && Ft.placeable);
11737
- if (!pt && this.prevPlacement) {
11737
+ if (!dt && this.prevPlacement) {
11738
11738
  const Ut = this.prevPlacement.variableOffsets[ke.crossTileID];
11739
11739
  Ut && (this.variableOffsets[ke.crossTileID] = Ut, this.markUsedJustification(a, Ut.anchor, ke, ai));
11740
11740
  }
11741
11741
  }
11742
11742
  }
11743
- if (Ci = Ft, pt = Ci && Ci.placeable, gi = Ci && Ci.offscreen, ke.useRuntimeCollisionCircles) {
11743
+ if (Ci = Ft, dt = Ci && Ci.placeable, gi = Ci && Ci.offscreen, ke.useRuntimeCollisionCircles) {
11744
11744
  const hi = a.text.placedSymbolArray.get(ke.centerJustifiedTextSymbolIndex), ur = c.aj(a.textSizeData, G, hi), an = h.get("text-padding");
11745
- _i = this.collisionIndex.placeCollisionCircles($, hi, a.lineVertexArray, a.glyphOffsetArray, ur, b, w, P, A, o, be, j.predicate, ke.collisionCircleDiameter, an, g, Ne), _i.circles.length && _i.collisionDetected && !o && c.w("Collisions detected, but collision boxes are not shown"), pt = ee || _i.circles.length > 0 && !_i.collisionDetected, gi = gi && _i.offscreen;
11745
+ _i = this.collisionIndex.placeCollisionCircles($, hi, a.lineVertexArray, a.glyphOffsetArray, ur, b, w, P, A, o, be, j.predicate, ke.collisionCircleDiameter, an, g, Ne), _i.circles.length && _i.collisionDetected && !o && c.w("Collisions detected, but collision boxes are not shown"), dt = ee || _i.circles.length > 0 && !_i.collisionDetected, gi = gi && _i.offscreen;
11746
11746
  }
11747
11747
  if (Ce.iconFeatureIndex && (Co = Ce.iconFeatureIndex), Ce.iconBox) {
11748
11748
  const hi = (ur) => this.collisionIndex.placeCollisionBox(ur, ne, R, b, w, be, _e, y, j.predicate, Ne, ze && cr ? cr : void 0);
11749
11749
  Ri && Ri.placeable && Ce.verticalIconBox ? (yi = hi(Ce.verticalIconBox), Bt = yi.placeable) : (yi = hi(Ce.iconBox), Bt = yi.placeable), gi = gi && yi.offscreen;
11750
11750
  }
11751
11751
  const An = W || ke.numHorizontalGlyphVertices === 0 && ke.numVerticalGlyphVertices === 0, Eo = K || ke.numIconVertices === 0;
11752
- An || Eo ? Eo ? An || (Bt = Bt && pt) : pt = Bt && pt : Bt = pt = Bt && pt;
11752
+ An || Eo ? Eo ? An || (Bt = Bt && dt) : dt = Bt && dt : Bt = dt = Bt && dt;
11753
11753
  const Ga = Bt && yi.placeable;
11754
- if (pt && Ci.placeable && this.collisionIndex.insertCollisionBox(Ci.box, $, h.get("text-ignore-placement"), a.bucketInstanceId, Ri && Ri.placeable && Pn ? Pn : hr, j.ID), Ga && this.collisionIndex.insertCollisionBox(yi.box, ne, h.get("icon-ignore-placement"), a.bucketInstanceId, Co, j.ID), _i && pt && this.collisionIndex.insertCollisionCircles(_i.circles, $, h.get("text-ignore-placement"), a.bucketInstanceId, hr, j.ID), o && this.storeCollisionData(a.bucketInstanceId, Qe, Ce, Ci, yi, _i), ke.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
11754
+ if (dt && Ci.placeable && this.collisionIndex.insertCollisionBox(Ci.box, $, h.get("text-ignore-placement"), a.bucketInstanceId, Ri && Ri.placeable && Pn ? Pn : hr, j.ID), Ga && this.collisionIndex.insertCollisionBox(yi.box, ne, h.get("icon-ignore-placement"), a.bucketInstanceId, Co, j.ID), _i && dt && this.collisionIndex.insertCollisionCircles(_i.circles, $, h.get("text-ignore-placement"), a.bucketInstanceId, hr, j.ID), o && this.storeCollisionData(a.bucketInstanceId, Qe, Ce, Ci, yi, _i), ke.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
11755
11755
  if (a.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
11756
- this.placements[ke.crossTileID] = new Qt(pt || we, Bt || Se, gi || a.justReloaded), n[ke.crossTileID] = !0;
11756
+ this.placements[ke.crossTileID] = new Qt(dt || we, Bt || Se, gi || a.justReloaded), n[ke.crossTileID] = !0;
11757
11757
  };
11758
11758
  if (De) {
11759
11759
  if (t.symbolInstanceStart !== 0) throw new Error("bucket.bucketInstanceId should be 0");
@@ -13930,12 +13930,12 @@ uniform ${P} ${A} u_${R};
13930
13930
  this.bindVertexArray.set(null);
13931
13931
  }
13932
13932
  }
13933
- class dt {
13933
+ class ut {
13934
13934
  constructor(t, n, o) {
13935
13935
  this.func = t, this.mask = n, this.range = o;
13936
13936
  }
13937
13937
  }
13938
- dt.ReadOnly = !1, dt.ReadWrite = !0, dt.disabled = new dt(519, dt.ReadOnly, [0, 1]);
13938
+ ut.ReadOnly = !1, ut.ReadWrite = !0, ut.disabled = new ut(519, ut.ReadOnly, [0, 1]);
13939
13939
  const pa = 7680;
13940
13940
  class $t {
13941
13941
  constructor(t, n, o, a, h, g) {
@@ -13960,7 +13960,7 @@ uniform ${P} ${A} u_${R};
13960
13960
  const le = c.H();
13961
13961
  c.aR(le, $.placementInvProjMatrix, u.transform.glCoordMatrix), c.aR(le, le, $.placementViewportMatrix), b.push({ circleArray: ne, circleOffset: P, transform: K.posMatrix, invTransform: le, coord: K }), w += ne.length / 4, P = w;
13962
13962
  }
13963
- ee && y.draw(h, g.LINES, dt.disabled, $t.disabled, u.colorModeForRenderPass(), Lt.disabled, { u_matrix: K.posMatrix, u_pixel_extrude_scale: [1 / (A = u.transform).width, 1 / A.height] }, u.style.map.terrain && u.style.map.terrain.getTerrainData(K), n.id, ee.layoutVertexBuffer, ee.indexBuffer, ee.segments, null, u.transform.zoom, null, null, ee.collisionVertexBuffer);
13963
+ ee && y.draw(h, g.LINES, ut.disabled, $t.disabled, u.colorModeForRenderPass(), Lt.disabled, { u_matrix: K.posMatrix, u_pixel_extrude_scale: [1 / (A = u.transform).width, 1 / A.height] }, u.style.map.terrain && u.style.map.terrain.getTerrainData(K), n.id, ee.layoutVertexBuffer, ee.indexBuffer, ee.segments, null, u.transform.zoom, null, null, ee.collisionVertexBuffer);
13964
13964
  }
13965
13965
  var A;
13966
13966
  if (!a || !b.length) return;
@@ -13983,7 +13983,7 @@ uniform ${P} ${A} u_${R};
13983
13983
  const G = h.createIndexBuffer(Is, !0), j = h.createVertexBuffer(F, c.aT.members, !0);
13984
13984
  for (const W of b) {
13985
13985
  const K = Nc(W.transform, W.invTransform, u.transform);
13986
- R.draw(h, g.TRIANGLES, dt.disabled, $t.disabled, u.colorModeForRenderPass(), Lt.disabled, K, u.style.map.terrain && u.style.map.terrain.getTerrainData(W.coord), n.id, j, G, c.a0.simpleSegment(0, 2 * W.circleOffset, W.circleArray.length, W.circleArray.length / 2), null, u.transform.zoom, null, null, null);
13986
+ R.draw(h, g.TRIANGLES, ut.disabled, $t.disabled, u.colorModeForRenderPass(), Lt.disabled, K, u.style.map.terrain && u.style.map.terrain.getTerrainData(W.coord), n.id, j, G, c.a0.simpleSegment(0, 2 * W.circleOffset, W.circleArray.length, W.circleArray.length / 2), null, u.transform.zoom, null, null, null);
13987
13987
  }
13988
13988
  j.destroy(), G.destroy();
13989
13989
  }
@@ -14041,13 +14041,13 @@ uniform ${P} ${A} u_${R};
14041
14041
  function nn(u, t, n, o, a, h, g, y, b, w, P, A) {
14042
14042
  const R = u.context, F = R.gl, N = u.transform, G = Ys(), j = y === "map", W = b === "map", K = y !== "viewport" && n.layout.get("symbol-placement") !== "point", $ = j && !W && !K, ee = !W && K, ne = !n.layout.get("symbol-sort-key").isConstant();
14043
14043
  let le = !1;
14044
- const _e = u.depthModeForSublayer(0, dt.ReadOnly), be = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), ze = [], De = G.getCircleRadiusCorrection(N);
14044
+ const _e = u.depthModeForSublayer(0, ut.ReadOnly), be = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), ze = [], De = G.getCircleRadiusCorrection(N);
14045
14045
  for (const we of o) {
14046
14046
  const Se = t.getTile(we), Ne = Se.getBucket(n);
14047
14047
  if (!Ne) continue;
14048
14048
  const tt = a ? Ne.text : Ne.icon;
14049
14049
  if (!tt || !tt.segments.get().length || !tt.hasVisibleVertices) continue;
14050
- const ke = tt.programConfigurations.get(n.id), Ce = a || Ne.sdfIcons, Qe = a ? Ne.textSizeData : Ne.iconSizeData, Rt = W || N.pitch !== 0, at = u.useProgram(ma(Ce, a, Ne), ke), pt = c.ah(Qe, N.zoom), Bt = u.style.map.terrain && u.style.map.terrain.getTerrainData(we);
14050
+ const ke = tt.programConfigurations.get(n.id), Ce = a || Ne.sdfIcons, Qe = a ? Ne.textSizeData : Ne.iconSizeData, Rt = W || N.pitch !== 0, at = u.useProgram(ma(Ce, a, Ne), ke), dt = c.ah(Qe, N.zoom), Bt = u.style.map.terrain && u.style.map.terrain.getTerrainData(we);
14051
14051
  let gi, cr, Ft, Ri, Ci = [0, 0], _i = null;
14052
14052
  if (a) cr = Se.glyphAtlasTexture, Ft = F.LINEAR, gi = Se.glyphAtlasTexture.size, Ne.iconsInText && (Ci = Se.imageAtlasTexture.size, _i = Se.imageAtlasTexture, Ri = Rt || u.options.rotating || u.options.zooming || Qe.kind === "composite" || Qe.kind === "camera" ? F.LINEAR : F.NEAREST);
14053
14053
  else {
@@ -14061,7 +14061,7 @@ uniform ${P} ${A} u_${R};
14061
14061
  }
14062
14062
  const hi = we.posMatrix, ur = a && be || Ga, an = K || ur ? fa : Pn, Jn = Co, xi = Ce && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14063
14063
  let vi;
14064
- vi = Ce ? Ne.iconsInText ? jc(Qe.kind, pt, $, W, K, ur, u, hi, an, Jn, An, gi, Ci, De) : Il(Qe.kind, pt, $, W, K, ur, u, hi, an, Jn, An, a, gi, !0, De) : Tl(Qe.kind, pt, $, W, K, ur, u, hi, an, Jn, An, a, gi, De);
14064
+ vi = Ce ? Ne.iconsInText ? jc(Qe.kind, dt, $, W, K, ur, u, hi, an, Jn, An, gi, Ci, De) : Il(Qe.kind, dt, $, W, K, ur, u, hi, an, Jn, An, a, gi, !0, De) : Tl(Qe.kind, dt, $, W, K, ur, u, hi, an, Jn, An, a, gi, De);
14065
14065
  const ai = { program: at, buffers: tt, uniformValues: vi, atlasTexture: cr, atlasTextureIcon: _i, atlasInterpolation: Ft, atlasInterpolationIcon: Ri, isSDF: Ce, hasHalo: xi };
14066
14066
  if (ne && Ne.canOverlap) {
14067
14067
  le = !0;
@@ -14177,7 +14177,7 @@ uniform ${P} ${A} u_${R};
14177
14177
  y.enable(y.SCISSOR_TEST), y.scissor(t * u.pixelRatio, n * u.pixelRatio, o * u.pixelRatio, a * u.pixelRatio), g.clear({ color: h }), y.disable(y.SCISSOR_TEST);
14178
14178
  }
14179
14179
  function yt(u, t, n) {
14180
- const o = u.context, a = o.gl, h = n.posMatrix, g = u.useProgram("debug"), y = dt.disabled, b = $t.disabled, w = u.colorModeForRenderPass(), P = "$debug", A = u.style.map.terrain && u.style.map.terrain.getTerrainData(n);
14180
+ const o = u.context, a = o.gl, h = n.posMatrix, g = u.useProgram("debug"), y = ut.disabled, b = $t.disabled, w = u.colorModeForRenderPass(), P = "$debug", A = u.style.map.terrain && u.style.map.terrain.getTerrainData(n);
14181
14181
  o.activeTexture.set(a.TEXTURE0);
14182
14182
  const R = t.getTileByID(n.key).latestRawTileData, F = Math.floor((R && R.byteLength || 0) / 1024), N = t.getTile(n).tileSize, G = 512 / Math.min(N, 512) * (n.overscaledZ / u.transform.zoom) * 0.5;
14183
14183
  let j = n.canonical.toString();
@@ -14188,7 +14188,7 @@ uniform ${P} ${A} u_${R};
14188
14188
  }(u, `${j} ${F}kB`), g.draw(o, a.TRIANGLES, y, b, Et.alphaBlended, Lt.disabled, rn(h, c.aN.transparent, G), null, P, u.debugBuffer, u.quadTriangleIndexBuffer, u.debugSegments), g.draw(o, a.LINE_STRIP, y, b, w, Lt.disabled, rn(h, c.aN.red), A, P, u.debugBuffer, u.tileBorderIndexBuffer, u.debugSegments);
14189
14189
  }
14190
14190
  function Ps(u, t, n) {
14191
- const o = u.context, a = o.gl, h = u.colorModeForRenderPass(), g = new dt(a.LEQUAL, dt.ReadWrite, u.depthRangeFor3D), y = u.useProgram("terrain"), b = t.getTerrainMesh();
14191
+ const o = u.context, a = o.gl, h = u.colorModeForRenderPass(), g = new ut(a.LEQUAL, ut.ReadWrite, u.depthRangeFor3D), y = u.useProgram("terrain"), b = t.getTerrainMesh();
14192
14192
  o.bindFramebuffer.set(null), o.viewport.set([0, 0, u.width, u.height]);
14193
14193
  for (const w of n) {
14194
14194
  const P = u.renderToTexture.getTexture(w), A = t.getTerrainData(w.tileID);
@@ -14232,18 +14232,18 @@ uniform ${P} ${A} u_${R};
14232
14232
  const t = this.context, n = t.gl;
14233
14233
  this.nextStencilID = 1, this.currentStencilSource = void 0;
14234
14234
  const o = c.H();
14235
- c.aQ(o, 0, this.width, this.height, 0, 0, 1), c.K(o, o, [n.drawingBufferWidth, n.drawingBufferHeight, 0]), this.useProgram("clippingMask").draw(t, n.TRIANGLES, dt.disabled, this.stencilClearMode, Et.disabled, Lt.disabled, vs(o), null, "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
14235
+ c.aQ(o, 0, this.width, this.height, 0, 0, 1), c.K(o, o, [n.drawingBufferWidth, n.drawingBufferHeight, 0]), this.useProgram("clippingMask").draw(t, n.TRIANGLES, ut.disabled, this.stencilClearMode, Et.disabled, Lt.disabled, vs(o), null, "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
14236
14236
  }
14237
14237
  _renderTileClippingMasks(t, n) {
14238
14238
  if (this.currentStencilSource === t.source || !t.isTileClipped() || !n || !n.length) return;
14239
14239
  this.currentStencilSource = t.source;
14240
14240
  const o = this.context, a = o.gl;
14241
- this.nextStencilID + n.length > 256 && this.clearStencil(), o.setColorMode(Et.disabled), o.setDepthMode(dt.disabled);
14241
+ this.nextStencilID + n.length > 256 && this.clearStencil(), o.setColorMode(Et.disabled), o.setDepthMode(ut.disabled);
14242
14242
  const h = this.useProgram("clippingMask");
14243
14243
  this._tileClippingMaskIDs = {};
14244
14244
  for (const g of n) {
14245
14245
  const y = this._tileClippingMaskIDs[g.key] = this.nextStencilID++, b = this.style.map.terrain && this.style.map.terrain.getTerrainData(g);
14246
- h.draw(o, a.TRIANGLES, dt.disabled, new $t({ func: a.ALWAYS, mask: 0 }, y, 255, a.KEEP, a.KEEP, a.REPLACE), Et.disabled, Lt.disabled, vs(g.posMatrix), b, "$clipping", this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);
14246
+ h.draw(o, a.TRIANGLES, ut.disabled, new $t({ func: a.ALWAYS, mask: 0 }, y, 255, a.KEEP, a.KEEP, a.REPLACE), Et.disabled, Lt.disabled, vs(g.posMatrix), b, "$clipping", this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);
14247
14247
  }
14248
14248
  }
14249
14249
  stencilModeFor3D() {
@@ -14270,9 +14270,9 @@ uniform ${P} ${A} u_${R};
14270
14270
  return this._showOverdrawInspector ? new Et([t.CONSTANT_COLOR, t.ONE], new c.aN(0.125, 0.125, 0.125, 0), [!0, !0, !0, !0]) : this.renderPass === "opaque" ? Et.unblended : Et.alphaBlended;
14271
14271
  }
14272
14272
  depthModeForSublayer(t, n, o) {
14273
- if (!this.opaquePassEnabledForLayer()) return dt.disabled;
14273
+ if (!this.opaquePassEnabledForLayer()) return ut.disabled;
14274
14274
  const a = 1 - ((1 + this.currentLayer) * this.numSublayers + t) * this.depthEpsilon;
14275
- return new dt(o || this.context.gl.LEQUAL, n, [a, a]);
14275
+ return new ut(o || this.context.gl.LEQUAL, n, [a, a]);
14276
14276
  }
14277
14277
  opaquePassEnabledForLayer() {
14278
14278
  return this.currentLayer < this.opaquePassCutoff;
@@ -14298,7 +14298,7 @@ uniform ${P} ${A} u_${R};
14298
14298
  (P.type === "custom" || A.length) && this.renderLayer(this, h[P.source], P, A);
14299
14299
  }
14300
14300
  if (this.context.bindFramebuffer.set(null), this.context.clear({ color: n.showOverdrawInspector ? c.aN.black : c.aN.transparent, depth: 1 }), this.clearStencil(), !((o = this.style.stylesheet) === null || o === void 0) && o.sky && function(w, P) {
14301
- const A = w.context, R = A.gl, F = ((K, $, ee) => ({ u_sky_color: K.properties.get("sky-color"), u_horizon_color: K.properties.get("horizon-color"), u_horizon: ($.height / 2 + $.getHorizon()) * ee, u_sky_horizon_blend: K.properties.get("sky-horizon-blend") * $.height / 2 * ee }))(P, w.style.map.transform, w.pixelRatio), N = new dt(R.LEQUAL, dt.ReadWrite, [0, 1]), G = $t.disabled, j = w.colorModeForRenderPass(), W = w.useProgram("sky");
14301
+ const A = w.context, R = A.gl, F = ((K, $, ee) => ({ u_sky_color: K.properties.get("sky-color"), u_horizon_color: K.properties.get("horizon-color"), u_horizon: ($.height / 2 + $.getHorizon()) * ee, u_sky_horizon_blend: K.properties.get("sky-horizon-blend") * $.height / 2 * ee }))(P, w.style.map.transform, w.pixelRatio), N = new ut(R.LEQUAL, ut.ReadWrite, [0, 1]), G = $t.disabled, j = w.colorModeForRenderPass(), W = w.useProgram("sky");
14302
14302
  if (!P.mesh) {
14303
14303
  const K = new c.aX();
14304
14304
  K.emplaceBack(-1, -1), K.emplaceBack(1, -1), K.emplaceBack(1, 1), K.emplaceBack(-1, 1);
@@ -14342,7 +14342,7 @@ uniform ${P} ${A} u_${R};
14342
14342
  const n = this.terrainFacilitator.matrix, o = this.transform.modelViewProjectionMatrix;
14343
14343
  let a = this.terrainFacilitator.dirty;
14344
14344
  a || (a = t ? !c.a_(n, o) : !c.a$(n, o)), a || (a = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), a && (c.b0(n, o), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = !1, function(h, g) {
14345
- const y = h.context, b = y.gl, w = Et.unblended, P = new dt(b.LEQUAL, dt.ReadWrite, [0, 1]), A = g.getTerrainMesh(), R = g.sourceCache.getRenderableTiles(), F = h.useProgram("terrainDepth");
14345
+ const y = h.context, b = y.gl, w = Et.unblended, P = new ut(b.LEQUAL, ut.ReadWrite, [0, 1]), A = g.getTerrainMesh(), R = g.sourceCache.getRenderableTiles(), F = h.useProgram("terrainDepth");
14346
14346
  y.bindFramebuffer.set(g.getFramebuffer("depth").framebuffer), y.viewport.set([0, 0, h.width / devicePixelRatio, h.height / devicePixelRatio]), y.clear({ color: c.aN.transparent, depth: 1 });
14347
14347
  for (const N of R) {
14348
14348
  const G = g.getTerrainData(N.tileID), j = { u_matrix: h.transform.calculatePosMatrix(N.tileID.toUnwrapped()), u_ele_delta: g.getMeshFrameDelta(h.transform.zoom) };
@@ -14350,7 +14350,7 @@ uniform ${P} ${A} u_${R};
14350
14350
  }
14351
14351
  y.bindFramebuffer.set(null), y.viewport.set([0, 0, h.width, h.height]);
14352
14352
  }(this, this.style.map.terrain), function(h, g) {
14353
- const y = h.context, b = y.gl, w = Et.unblended, P = new dt(b.LEQUAL, dt.ReadWrite, [0, 1]), A = g.getTerrainMesh(), R = g.getCoordsTexture(), F = g.sourceCache.getRenderableTiles(), N = h.useProgram("terrainCoords");
14353
+ const y = h.context, b = y.gl, w = Et.unblended, P = new ut(b.LEQUAL, ut.ReadWrite, [0, 1]), A = g.getTerrainMesh(), R = g.getCoordsTexture(), F = g.sourceCache.getRenderableTiles(), N = h.useProgram("terrainCoords");
14354
14354
  y.bindFramebuffer.set(g.getFramebuffer("coords").framebuffer), y.viewport.set([0, 0, h.width / devicePixelRatio, h.height / devicePixelRatio]), y.clear({ color: c.aN.transparent, depth: 1 }), g.coordsIndex = [];
14355
14355
  for (const G of F) {
14356
14356
  const j = g.getTerrainData(G.tileID);
@@ -14374,7 +14374,7 @@ uniform ${P} ${A} u_${R};
14374
14374
  if (!we || !we.text || !we.text.segments.get().length) continue;
14375
14375
  const Se = c.ah(we.textSizeData, ne.zoom), Ne = nt(De, 1, F.transform.zoom), tt = Qr(ze.posMatrix, be, _e, F.transform, Ne), ke = N.layout.get("icon-text-fit") !== "none" && we.hasIconData();
14376
14376
  if (Se) {
14377
- const Ce = Math.pow(2, ne.zoom - De.tileID.overscaledZ), Qe = F.style.map.terrain ? (at, pt) => F.style.map.terrain.getElevation(ze, at, pt) : null, Rt = le.translatePosition(ne, De, K, $);
14377
+ const Ce = Math.pow(2, ne.zoom - De.tileID.overscaledZ), Qe = F.style.map.terrain ? (at, dt) => F.style.map.terrain.getElevation(ze, at, dt) : null, Rt = le.translatePosition(ne, De, K, $);
14378
14378
  fo(we, _e, be, ee, ne, tt, ze.posMatrix, Ce, Se, ke, le, Rt, ze.toUnwrapped(), Qe);
14379
14379
  }
14380
14380
  }
@@ -14386,7 +14386,7 @@ uniform ${P} ${A} u_${R};
14386
14386
  if (h.renderPass !== "translucent") return;
14387
14387
  const w = y.paint.get("circle-opacity"), P = y.paint.get("circle-stroke-width"), A = y.paint.get("circle-stroke-opacity"), R = !y.layout.get("circle-sort-key").isConstant();
14388
14388
  if (w.constantOr(1) === 0 && (P.constantOr(1) === 0 || A.constantOr(1) === 0)) return;
14389
- const F = h.context, N = F.gl, G = h.depthModeForSublayer(0, dt.ReadOnly), j = $t.disabled, W = h.colorModeForRenderPass(), K = [];
14389
+ const F = h.context, N = F.gl, G = h.depthModeForSublayer(0, ut.ReadOnly), j = $t.disabled, W = h.colorModeForRenderPass(), K = [];
14390
14390
  for (let $ = 0; $ < b.length; $++) {
14391
14391
  const ee = b[$], ne = g.getTile(ee), le = ne.getBucket(y);
14392
14392
  if (!le) continue;
@@ -14427,7 +14427,7 @@ uniform ${P} ${A} u_${R};
14427
14427
  const G = g.getTile(N), j = G.getBucket(y);
14428
14428
  if (!j) continue;
14429
14429
  const W = j.programConfigurations.get(y.id), K = h.useProgram("heatmap", W), { zoom: $ } = h.transform;
14430
- K.draw(w, P.TRIANGLES, dt.disabled, A, R, Lt.disabled, Zi(N.posMatrix, G, $, y.paint.get("heatmap-intensity")), null, y.id, j.layoutVertexBuffer, j.indexBuffer, j.segments, y.paint, h.transform.zoom, W);
14430
+ K.draw(w, P.TRIANGLES, ut.disabled, A, R, Lt.disabled, Zi(N.posMatrix, G, $, y.paint.get("heatmap-intensity")), null, y.id, j.layoutVertexBuffer, j.indexBuffer, j.segments, y.paint, h.transform.zoom, W);
14431
14431
  }
14432
14432
  w.viewport.set([0, 0, h.width, h.height]);
14433
14433
  } else h.renderPass === "translucent" && (h.context.setColorMode(h.colorModeForRenderPass()), function(w, P) {
@@ -14435,7 +14435,7 @@ uniform ${P} ${A} u_${R};
14435
14435
  if (!F) return;
14436
14436
  A.activeTexture.set(R.TEXTURE0), R.bindTexture(R.TEXTURE_2D, F.colorAttachment.get()), A.activeTexture.set(R.TEXTURE1);
14437
14437
  let N = P.colorRampTexture;
14438
- N || (N = P.colorRampTexture = new It(A, P.colorRamp, R.RGBA)), N.bind(R.LINEAR, R.CLAMP_TO_EDGE), w.useProgram("heatmapTexture").draw(A, R.TRIANGLES, dt.disabled, $t.disabled, w.colorModeForRenderPass(), Lt.disabled, ((G, j, W, K) => {
14438
+ N || (N = P.colorRampTexture = new It(A, P.colorRamp, R.RGBA)), N.bind(R.LINEAR, R.CLAMP_TO_EDGE), w.useProgram("heatmapTexture").draw(A, R.TRIANGLES, ut.disabled, $t.disabled, w.colorModeForRenderPass(), Lt.disabled, ((G, j, W, K) => {
14439
14439
  const $ = c.H();
14440
14440
  c.aQ($, 0, G.width, G.height, 0, 0, 1);
14441
14441
  const ee = G.context.gl;
@@ -14449,7 +14449,7 @@ uniform ${P} ${A} u_${R};
14449
14449
  if (h.renderPass !== "translucent") return;
14450
14450
  const w = y.paint.get("line-opacity"), P = y.paint.get("line-width");
14451
14451
  if (w.constantOr(1) === 0 || P.constantOr(1) === 0) return;
14452
- const A = h.depthModeForSublayer(0, dt.ReadOnly), R = h.colorModeForRenderPass(), F = y.paint.get("line-dasharray"), N = y.paint.get("line-pattern"), G = N.constantOr(1), j = y.paint.get("line-gradient"), W = y.getCrossfadeParameters(), K = G ? "linePattern" : F ? "lineSDF" : j ? "lineGradient" : "line", $ = h.context, ee = $.gl;
14452
+ const A = h.depthModeForSublayer(0, ut.ReadOnly), R = h.colorModeForRenderPass(), F = y.paint.get("line-dasharray"), N = y.paint.get("line-pattern"), G = N.constantOr(1), j = y.paint.get("line-gradient"), W = y.getCrossfadeParameters(), K = G ? "linePattern" : F ? "lineSDF" : j ? "lineGradient" : "line", $ = h.context, ee = $.gl;
14453
14453
  let ne = !0;
14454
14454
  for (const le of b) {
14455
14455
  const _e = g.getTile(le);
@@ -14470,7 +14470,7 @@ uniform ${P} ${A} u_${R};
14470
14470
  if (y.gradientVersion !== Qe.version) {
14471
14471
  let at = 256;
14472
14472
  if (y.stepInterpolant) {
14473
- const pt = g.getSource().maxzoom, Bt = le.canonical.z === pt ? Math.ceil(1 << h.transform.maxZoom - le.canonical.z) : 1;
14473
+ const dt = g.getSource().maxzoom, Bt = le.canonical.z === dt ? Math.ceil(1 << h.transform.maxZoom - le.canonical.z) : 1;
14474
14474
  at = c.ad(c.aV(be.maxLineLength / c.X * 1024 * Bt), 256, $.maxTextureSize);
14475
14475
  }
14476
14476
  Qe.gradient = c.aW({ expression: y.gradientExpression(), evaluationKey: "lineProgress", resolution: at, image: Qe.gradient || void 0, clips: be.lineClipsArray }), Qe.texture ? Qe.texture.update(Qe.gradient) : Qe.texture = new It($, Qe.gradient, ee.RGBA), Qe.version = y.gradientVersion, Rt = Qe.texture;
@@ -14487,11 +14487,11 @@ uniform ${P} ${A} u_${R};
14487
14487
  if (P.constantOr(1) === 0) return;
14488
14488
  const A = h.colorModeForRenderPass(), R = y.paint.get("fill-pattern"), F = h.opaquePassEnabledForLayer() && !R.constantOr(1) && w.constantOr(c.aN.transparent).a === 1 && P.constantOr(0) === 1 ? "opaque" : "translucent";
14489
14489
  if (h.renderPass === F) {
14490
- const N = h.depthModeForSublayer(1, h.renderPass === "opaque" ? dt.ReadWrite : dt.ReadOnly);
14490
+ const N = h.depthModeForSublayer(1, h.renderPass === "opaque" ? ut.ReadWrite : ut.ReadOnly);
14491
14491
  ga(h, g, y, b, N, A, !1);
14492
14492
  }
14493
14493
  if (h.renderPass === "translucent" && y.paint.get("fill-antialias")) {
14494
- const N = h.depthModeForSublayer(y.getPaintProperty("fill-outline-color") ? 2 : 0, dt.ReadOnly);
14494
+ const N = h.depthModeForSublayer(y.getPaintProperty("fill-outline-color") ? 2 : 0, ut.ReadOnly);
14495
14495
  ga(h, g, y, b, N, A, !0);
14496
14496
  }
14497
14497
  })(t, n, o, a);
@@ -14500,7 +14500,7 @@ uniform ${P} ${A} u_${R};
14500
14500
  (function(h, g, y, b) {
14501
14501
  const w = y.paint.get("fill-extrusion-opacity");
14502
14502
  if (w !== 0 && h.renderPass === "translucent") {
14503
- const P = new dt(h.context.gl.LEQUAL, dt.ReadWrite, h.depthRangeFor3D);
14503
+ const P = new ut(h.context.gl.LEQUAL, ut.ReadWrite, h.depthRangeFor3D);
14504
14504
  if (w !== 1 || y.paint.get("fill-extrusion-pattern").constantOr(1)) mo(h, g, y, b, P, $t.disabled, Et.disabled), mo(h, g, y, b, P, h.stencilModeFor3D(), h.colorModeForRenderPass());
14505
14505
  else {
14506
14506
  const A = h.colorModeForRenderPass();
@@ -14512,7 +14512,7 @@ uniform ${P} ${A} u_${R};
14512
14512
  case "hillshade":
14513
14513
  (function(h, g, y, b) {
14514
14514
  if (h.renderPass !== "offscreen" && h.renderPass !== "translucent") return;
14515
- const w = h.context, P = h.depthModeForSublayer(0, dt.ReadOnly), A = h.colorModeForRenderPass(), [R, F] = h.renderPass === "translucent" ? h.stencilConfigForOverlap(b) : [{}, b];
14515
+ const w = h.context, P = h.depthModeForSublayer(0, ut.ReadOnly), A = h.colorModeForRenderPass(), [R, F] = h.renderPass === "translucent" ? h.stencilConfigForOverlap(b) : [{}, b];
14516
14516
  for (const N of F) {
14517
14517
  const G = g.getTile(N);
14518
14518
  G.needsHillshadePrepare !== void 0 && G.needsHillshadePrepare && h.renderPass === "offscreen" ? bn(h, G, y, P, $t.disabled, A) : h.renderPass === "translucent" && _a(h, N, G, y, P, R[N.overscaledZ], A);
@@ -14525,7 +14525,7 @@ uniform ${P} ${A} u_${R};
14525
14525
  if (h.renderPass !== "translucent" || y.paint.get("raster-opacity") === 0 || !b.length) return;
14526
14526
  const w = h.context, P = w.gl, A = g.getSource(), R = h.useProgram("raster"), F = h.colorModeForRenderPass(), [N, G] = A instanceof Rr ? [{}, b] : h.stencilConfigForOverlap(b), j = G[G.length - 1].overscaledZ, W = !h.options.moving;
14527
14527
  for (const K of G) {
14528
- const $ = h.depthModeForSublayer(K.overscaledZ - j, y.paint.get("raster-opacity") === 1 ? dt.ReadWrite : dt.ReadOnly, P.LESS), ee = g.getTile(K);
14528
+ const $ = h.depthModeForSublayer(K.overscaledZ - j, y.paint.get("raster-opacity") === 1 ? ut.ReadWrite : ut.ReadOnly, P.LESS), ee = g.getTile(K);
14529
14529
  ee.registerFadeDuration(y.paint.get("raster-fade-duration"));
14530
14530
  const ne = g.findLoadedParent(K, 0), le = g.findLoadedSibling(K), _e = go(ee, ne || le || null, g, y, h.transform, h.style.map.terrain);
14531
14531
  let be, ze;
@@ -14544,7 +14544,7 @@ uniform ${P} ${A} u_${R};
14544
14544
  if (h.isPatternMissing(G)) return;
14545
14545
  const j = !G && w.a === 1 && P === 1 && h.opaquePassEnabledForLayer() ? "opaque" : "translucent";
14546
14546
  if (h.renderPass !== j) return;
14547
- const W = $t.disabled, K = h.depthModeForSublayer(0, j === "opaque" ? dt.ReadWrite : dt.ReadOnly), $ = h.colorModeForRenderPass(), ee = h.useProgram(G ? "backgroundPattern" : "background"), ne = b || F.coveringTiles({ tileSize: N, terrain: h.style.map.terrain });
14547
+ const W = $t.disabled, K = h.depthModeForSublayer(0, j === "opaque" ? ut.ReadWrite : ut.ReadOnly), $ = h.colorModeForRenderPass(), ee = h.useProgram(G ? "backgroundPattern" : "background"), ne = b || F.coveringTiles({ tileSize: N, terrain: h.style.map.terrain });
14548
14548
  G && (A.activeTexture.set(R.TEXTURE0), h.imageManager.bind(h.context));
14549
14549
  const le = y.getCrossfadeParameters();
14550
14550
  for (const _e of ne) {
@@ -14561,7 +14561,7 @@ uniform ${P} ${A} u_${R};
14561
14561
  P && (h.setCustomLayerDefaults(), b.setColorMode(h.colorModeForRenderPass()), P.call(w, b.gl, h.transform.customLayerMatrix()), b.setDirty(), h.setBaseState());
14562
14562
  } else if (h.renderPass === "translucent") {
14563
14563
  h.setCustomLayerDefaults(), b.setColorMode(h.colorModeForRenderPass()), b.setStencilMode($t.disabled);
14564
- const P = w.renderingMode === "3d" ? new dt(h.context.gl.LEQUAL, dt.ReadWrite, h.depthRangeFor3D) : h.depthModeForSublayer(0, dt.ReadOnly);
14564
+ const P = w.renderingMode === "3d" ? new ut(h.context.gl.LEQUAL, ut.ReadWrite, h.depthRangeFor3D) : h.depthModeForSublayer(0, ut.ReadOnly);
14565
14565
  b.setDepthMode(P), w.render(b.gl, h.transform.customLayerMatrix(), { farZ: h.transform.farZ, nearZ: h.transform.nearZ, fov: h.transform._fov, modelViewProjectionMatrix: h.transform.modelViewProjectionMatrix, projectionMatrix: h.transform.projectionMatrix }), b.setDirty(), h.setBaseState(), b.bindFramebuffer.set(null);
14566
14566
  }
14567
14567
  })(t, 0, o);
@@ -17690,7 +17690,7 @@ uniform ${P} ${A} u_${R};
17690
17690
  const o = "Failed to initialize WebGL";
17691
17691
  throw t ? (t.message = o, new Error(JSON.stringify(t))) : new Error(o);
17692
17692
  }
17693
- this.painter = new Ul(n, this.transform), ut.testSupport(n);
17693
+ this.painter = new Ul(n, this.transform), pt.testSupport(n);
17694
17694
  }
17695
17695
  loaded() {
17696
17696
  return !this._styleDirty && !this._sourcesDirty && !!this.style && this.style.loaded();
@@ -18104,8 +18104,8 @@ async function Zh(f, x, I, C) {
18104
18104
  });
18105
18105
  const S = L.iconAttr ? await Yd(x, L.iconAttr, C) : null;
18106
18106
  if (S == null || S.forEach((c, pe) => {
18107
- var ut, $e, Ke, Oe;
18108
- const fe = c.icon || ((ut = L.iconSet) == null ? void 0 : ut[c.id]) || (($e = L.iconPattern) == null ? void 0 : $e.replace("{id}", c.id)) || ((Ke = L.iconSet) == null ? void 0 : Ke[pe]) || (L.iconPrefix ? null : Qm[pe]);
18107
+ var pt, Ue, Ke, Oe;
18108
+ const fe = c.icon || ((pt = L.iconSet) == null ? void 0 : pt[c.id]) || ((Ue = L.iconPattern) == null ? void 0 : Ue.replace("{id}", c.id)) || ((Ke = L.iconSet) == null ? void 0 : Ke[pe]) || (L.iconPrefix ? null : Qm[pe]);
18109
18109
  if (!fe) return;
18110
18110
  const xe = c.color || ((Oe = L.color) == null ? void 0 : Oe.replace("#", "")) || "red", [oe = "pin6", ae = "m"] = L.icon ? L.icon.split("-") : [];
18111
18111
  c.icon = L.iconPrefix || fe != null && fe.includes("/") ? (L.iconPrefix || "") + fe : `${oe}-${ae}-${fe}+${xe}.png`;
@@ -18658,20 +18658,20 @@ function Lc(f, x, I) {
18658
18658
  const C = I.metaTokens, L = I.visitor || xe, U = I.dots, S = I.indexes, pe = (I.Blob || typeof Blob < "u" && Blob) && me.isSpecCompliantForm(x);
18659
18659
  if (!me.isFunction(L))
18660
18660
  throw new TypeError("visitor must be a function");
18661
- function fe($e) {
18662
- if ($e === null) return "";
18663
- if (me.isDate($e))
18664
- return $e.toISOString();
18665
- if (!pe && me.isBlob($e))
18661
+ function fe(Ue) {
18662
+ if (Ue === null) return "";
18663
+ if (me.isDate(Ue))
18664
+ return Ue.toISOString();
18665
+ if (!pe && me.isBlob(Ue))
18666
18666
  throw new ht("Blob is not supported. Use a Buffer instead.");
18667
- return me.isArrayBuffer($e) || me.isTypedArray($e) ? pe && typeof Blob == "function" ? new Blob([$e]) : Buffer.from($e) : $e;
18667
+ return me.isArrayBuffer(Ue) || me.isTypedArray(Ue) ? pe && typeof Blob == "function" ? new Blob([Ue]) : Buffer.from(Ue) : Ue;
18668
18668
  }
18669
- function xe($e, Ke, Oe) {
18670
- let gt = $e;
18671
- if ($e && !Oe && typeof $e == "object") {
18669
+ function xe(Ue, Ke, Oe) {
18670
+ let gt = Ue;
18671
+ if (Ue && !Oe && typeof Ue == "object") {
18672
18672
  if (me.endsWith(Ke, "{}"))
18673
- Ke = C ? Ke : Ke.slice(0, -2), $e = JSON.stringify($e);
18674
- else if (me.isArray($e) && Hg($e) || (me.isFileList($e) || me.endsWith(Ke, "[]")) && (gt = me.toArray($e)))
18673
+ Ke = C ? Ke : Ke.slice(0, -2), Ue = JSON.stringify(Ue);
18674
+ else if (me.isArray(Ue) && Hg(Ue) || (me.isFileList(Ue) || me.endsWith(Ke, "[]")) && (gt = me.toArray(Ue)))
18675
18675
  return Ke = Lp(Ke), gt.forEach(function(He, Vt) {
18676
18676
  !(me.isUndefined(He) || He === null) && x.append(
18677
18677
  // eslint-disable-next-line no-nested-ternary
@@ -18680,31 +18680,31 @@ function Lc(f, x, I) {
18680
18680
  );
18681
18681
  }), !1;
18682
18682
  }
18683
- return Yh($e) ? !0 : (x.append(tp(Oe, Ke, U), fe($e)), !1);
18683
+ return Yh(Ue) ? !0 : (x.append(tp(Oe, Ke, U), fe(Ue)), !1);
18684
18684
  }
18685
18685
  const oe = [], ae = Object.assign(Wg, {
18686
18686
  defaultVisitor: xe,
18687
18687
  convertValue: fe,
18688
18688
  isVisitable: Yh
18689
18689
  });
18690
- function ut($e, Ke) {
18691
- if (!me.isUndefined($e)) {
18692
- if (oe.indexOf($e) !== -1)
18690
+ function pt(Ue, Ke) {
18691
+ if (!me.isUndefined(Ue)) {
18692
+ if (oe.indexOf(Ue) !== -1)
18693
18693
  throw Error("Circular reference detected in " + Ke.join("."));
18694
- oe.push($e), me.forEach($e, function(gt, ot) {
18694
+ oe.push(Ue), me.forEach(Ue, function(gt, ot) {
18695
18695
  (!(me.isUndefined(gt) || gt === null) && L.call(
18696
18696
  x,
18697
18697
  gt,
18698
18698
  me.isString(ot) ? ot.trim() : ot,
18699
18699
  Ke,
18700
18700
  ae
18701
- )) === !0 && ut(gt, Ke ? Ke.concat(ot) : [ot]);
18701
+ )) === !0 && pt(gt, Ke ? Ke.concat(ot) : [ot]);
18702
18702
  }), oe.pop();
18703
18703
  }
18704
18704
  }
18705
18705
  if (!me.isObject(f))
18706
18706
  throw new TypeError("data must be an object");
18707
- return ut(f), x;
18707
+ return pt(f), x;
18708
18708
  }
18709
18709
  function ip(f) {
18710
18710
  const x = {
@@ -19174,8 +19174,8 @@ function m_(f, x) {
19174
19174
  ae += I[oe++], oe = oe % f;
19175
19175
  if (L = (L + 1) % f, L === U && (U = (U + 1) % f), fe - S < x)
19176
19176
  return;
19177
- const ut = xe && fe - xe;
19178
- return ut ? Math.round(ae * 1e3 / ut) : void 0;
19177
+ const pt = xe && fe - xe;
19178
+ return pt ? Math.round(ae * 1e3 / pt) : void 0;
19179
19179
  };
19180
19180
  }
19181
19181
  function g_(f, x) {
@@ -19374,9 +19374,9 @@ const $p = (f) => {
19374
19374
  const L = $p(f);
19375
19375
  let U = L.data;
19376
19376
  const S = rr.from(L.headers).normalize();
19377
- let { responseType: c, onUploadProgress: pe, onDownloadProgress: fe } = L, xe, oe, ae, ut, $e;
19377
+ let { responseType: c, onUploadProgress: pe, onDownloadProgress: fe } = L, xe, oe, ae, pt, Ue;
19378
19378
  function Ke() {
19379
- ut && ut(), $e && $e(), L.cancelToken && L.cancelToken.unsubscribe(xe), L.signal && L.signal.removeEventListener("abort", xe);
19379
+ pt && pt(), Ue && Ue(), L.cancelToken && L.cancelToken.unsubscribe(xe), L.signal && L.signal.removeEventListener("abort", xe);
19380
19380
  }
19381
19381
  let Oe = new XMLHttpRequest();
19382
19382
  Oe.open(L.method.toUpperCase(), L.url, !0), Oe.timeout = L.timeout;
@@ -19416,7 +19416,7 @@ const $p = (f) => {
19416
19416
  )), Oe = null;
19417
19417
  }, U === void 0 && S.setContentType(null), "setRequestHeader" in Oe && me.forEach(S.toJSON(), function(Vt, Tt) {
19418
19418
  Oe.setRequestHeader(Tt, Vt);
19419
- }), me.isUndefined(L.withCredentials) || (Oe.withCredentials = !!L.withCredentials), c && c !== "json" && (Oe.responseType = L.responseType), fe && ([ae, $e] = Ac(fe, !0), Oe.addEventListener("progress", ae)), pe && Oe.upload && ([oe, ut] = Ac(pe), Oe.upload.addEventListener("progress", oe), Oe.upload.addEventListener("loadend", ut)), (L.cancelToken || L.signal) && (xe = (He) => {
19419
+ }), me.isUndefined(L.withCredentials) || (Oe.withCredentials = !!L.withCredentials), c && c !== "json" && (Oe.responseType = L.responseType), fe && ([ae, Ue] = Ac(fe, !0), Oe.addEventListener("progress", ae)), pe && Oe.upload && ([oe, pt] = Ac(pe), Oe.upload.addEventListener("progress", oe), Oe.upload.addEventListener("loadend", pt)), (L.cancelToken || L.signal) && (xe = (He) => {
19420
19420
  Oe && (C(!He || He.type ? new Yo(null, f, Oe) : He), Oe.abort(), Oe = null);
19421
19421
  }, L.cancelToken && L.cancelToken.subscribe(xe), L.signal && (L.signal.aborted ? xe() : L.signal.addEventListener("abort", xe)));
19422
19422
  const ot = f_(L.url);
@@ -19475,8 +19475,8 @@ const $p = (f) => {
19475
19475
  }
19476
19476
  let ae = oe.byteLength;
19477
19477
  if (I) {
19478
- let ut = S += ae;
19479
- I(ut);
19478
+ let pt = S += ae;
19479
+ I(pt);
19480
19480
  }
19481
19481
  fe.enqueue(new Uint8Array(oe));
19482
19482
  } catch (xe) {
@@ -19545,10 +19545,10 @@ const P_ = async (f) => {
19545
19545
  fetchOptions: ae
19546
19546
  } = $p(f);
19547
19547
  fe = fe ? (fe + "").toLowerCase() : "text";
19548
- let [ut, $e] = L || U || S ? S_([L, U], S) : [], Ke, Oe;
19548
+ let [pt, Ue] = L || U || S ? S_([L, U], S) : [], Ke, Oe;
19549
19549
  const gt = () => {
19550
19550
  !Ke && setTimeout(() => {
19551
- ut && ut.unsubscribe();
19551
+ pt && pt.unsubscribe();
19552
19552
  }), Ke = !0;
19553
19553
  };
19554
19554
  let ot;
@@ -19569,7 +19569,7 @@ const P_ = async (f) => {
19569
19569
  }
19570
19570
  me.isString(oe) || (oe = oe ? "include" : "omit"), Oe = new Request(x, {
19571
19571
  ...ae,
19572
- signal: ut,
19572
+ signal: pt,
19573
19573
  method: I.toUpperCase(),
19574
19574
  headers: xe.normalize().toJSON(),
19575
19575
  body: C,
@@ -19596,7 +19596,7 @@ const P_ = async (f) => {
19596
19596
  }
19597
19597
  fe = fe || "text";
19598
19598
  let Tt = await Cc[me.findKey(Cc, fe) || "text"](He, f);
19599
- return !Vt && gt(), $e && $e(), await new Promise((Jt, jt) => {
19599
+ return !Vt && gt(), Ue && Ue(), await new Promise((Jt, jt) => {
19600
19600
  Vp(Jt, jt, {
19601
19601
  data: Tt,
19602
19602
  headers: rr.from(He.headers),
@@ -19778,8 +19778,8 @@ class Gs {
19778
19778
  );
19779
19779
  U && me.forEach(
19780
19780
  ["delete", "get", "head", "post", "put", "patch", "common"],
19781
- ($e) => {
19782
- delete U[$e];
19781
+ (Ue) => {
19782
+ delete U[Ue];
19783
19783
  }
19784
19784
  ), I.headers = rr.concat(S, U);
19785
19785
  const c = [];
@@ -19793,26 +19793,26 @@ class Gs {
19793
19793
  });
19794
19794
  let xe, oe = 0, ae;
19795
19795
  if (!pe) {
19796
- const $e = [up.bind(this), void 0];
19797
- for ($e.unshift.apply($e, c), $e.push.apply($e, fe), ae = $e.length, xe = Promise.resolve(I); oe < ae; )
19798
- xe = xe.then($e[oe++], $e[oe++]);
19796
+ const Ue = [up.bind(this), void 0];
19797
+ for (Ue.unshift.apply(Ue, c), Ue.push.apply(Ue, fe), ae = Ue.length, xe = Promise.resolve(I); oe < ae; )
19798
+ xe = xe.then(Ue[oe++], Ue[oe++]);
19799
19799
  return xe;
19800
19800
  }
19801
19801
  ae = c.length;
19802
- let ut = I;
19802
+ let pt = I;
19803
19803
  for (oe = 0; oe < ae; ) {
19804
- const $e = c[oe++], Ke = c[oe++];
19804
+ const Ue = c[oe++], Ke = c[oe++];
19805
19805
  try {
19806
- ut = $e(ut);
19806
+ pt = Ue(pt);
19807
19807
  } catch (Oe) {
19808
19808
  Ke.call(this, Oe);
19809
19809
  break;
19810
19810
  }
19811
19811
  }
19812
19812
  try {
19813
- xe = up.call(this, ut);
19814
- } catch ($e) {
19815
- return Promise.reject($e);
19813
+ xe = up.call(this, pt);
19814
+ } catch (Ue) {
19815
+ return Promise.reject(Ue);
19816
19816
  }
19817
19817
  for (oe = 0, ae = fe.length; oe < ae; )
19818
19818
  xe = xe.then(fe[oe++], fe[oe++]);
@@ -20077,8 +20077,8 @@ function gp(f) {
20077
20077
  }
20078
20078
  function cu(f, x, I) {
20079
20079
  if (f !== null)
20080
- for (var C, L, U, S, c, pe, fe, xe = 0, oe = 0, ae, ut = f.type, $e = ut === "FeatureCollection", Ke = ut === "Feature", Oe = $e ? f.features.length : 1, gt = 0; gt < Oe; gt++) {
20081
- fe = $e ? f.features[gt].geometry : Ke ? f.geometry : f, ae = fe ? fe.type === "GeometryCollection" : !1, c = ae ? fe.geometries.length : 1;
20080
+ for (var C, L, U, S, c, pe, fe, xe = 0, oe = 0, ae, pt = f.type, Ue = pt === "FeatureCollection", Ke = pt === "Feature", Oe = Ue ? f.features.length : 1, gt = 0; gt < Oe; gt++) {
20081
+ fe = Ue ? f.features[gt].geometry : Ke ? f.geometry : f, ae = fe ? fe.type === "GeometryCollection" : !1, c = ae ? fe.geometries.length : 1;
20082
20082
  for (var ot = 0; ot < c; ot++) {
20083
20083
  var He = 0, Vt = 0;
20084
20084
  if (S = ae ? fe.geometries[ot] : fe, S !== null) {
@@ -21047,7 +21047,6 @@ const Jy = /* @__PURE__ */ Ji(Ny, [["render", Xy]]), Ky = {
21047
21047
  this.map.flyTo({
21048
21048
  center: I,
21049
21049
  zoom: 15,
21050
- duration: 0,
21051
21050
  essential: !0
21052
21051
  });
21053
21052
  break;
@@ -21366,7 +21365,7 @@ const B0 = /* @__PURE__ */ Ji(I0, [["render", R0], ["__scopeId", "data-v-3740577
21366
21365
  },
21367
21366
  activeFilters() {
21368
21367
  var f, x;
21369
- return (x = (f = this.$refs) == null ? void 0 : f.filter) == null ? void 0 : x.activeFilters;
21368
+ return this.isSelectObj && this.moveToDefaultPage(), (x = (f = this.$refs) == null ? void 0 : f.filter) == null ? void 0 : x.activeFilters;
21370
21369
  },
21371
21370
  isFilterVisible(f) {
21372
21371
  f || this.getData();
@@ -21418,9 +21417,7 @@ const B0 = /* @__PURE__ */ Ji(I0, [["render", R0], ["__scopeId", "data-v-3740577
21418
21417
  },
21419
21418
  mounted() {
21420
21419
  this.rows || this.getData();
21421
- const f = new URLSearchParams(window.location.search), x = f.get("filter");
21422
- f.get("id");
21423
- const I = x == null ? void 0 : x.split("|");
21420
+ const x = new URLSearchParams(window.location.search).get("filter"), I = x == null ? void 0 : x.split("|");
21424
21421
  I == null || I.forEach((L) => {
21425
21422
  const [U, S] = L.split("=");
21426
21423
  S != null && S.includes(",") ? this.mountedFilter[U] = S == null ? void 0 : S.split(",") : this.mountedFilter[U] = S, this.activeFilters = this.mountedFilter;
@@ -21476,7 +21473,7 @@ const B0 = /* @__PURE__ */ Ji(I0, [["render", R0], ["__scopeId", "data-v-3740577
21476
21473
  },
21477
21474
  async clearFilter(f) {
21478
21475
  var x, I, C;
21479
- await ((I = (x = this.$refs) == null ? void 0 : x.filter) == null ? void 0 : I.clearFilter(f)), this.filterUrl = (C = this.$refs) == null ? void 0 : C.filter.filterUrl, (f === "region_katottg" || f === "katottg") && this.$emit("update:filterState", {}), await this.updateTableAndMap(), await this.getData();
21476
+ await ((I = (x = this.$refs) == null ? void 0 : x.filter) == null ? void 0 : I.clearFilter(f)), this.filterUrl = (C = this.$refs) == null ? void 0 : C.filter.filterUrl, console.log(f), (f === "region_katottg" || f === "katottg") && this.$emit("update:filterState", {}), await this.updateTableAndMap(), await this.getData();
21480
21477
  },
21481
21478
  handlePageChange(f) {
21482
21479
  this.currentPage = f;
@@ -21554,16 +21551,17 @@ const B0 = /* @__PURE__ */ Ji(I0, [["render", R0], ["__scopeId", "data-v-3740577
21554
21551
  f !== this.previousLength && (this.previousLength = f, this.activeFiltersCount = f);
21555
21552
  },
21556
21553
  async handleMapClick(f) {
21557
- var U, S, c, pe, fe, xe, oe, ae, ut, $e;
21554
+ var U, S, c, pe, fe, xe, oe, ae;
21558
21555
  const x = this.map.queryRenderedFeatures(f.point);
21559
- if ((x == null ? void 0 : x.length) < 1 || ((U = x[0]) == null ? void 0 : U.source) === "region-search-id" || ((S = x[0]) == null ? void 0 : S.source) === "route-line") return;
21556
+ if ((x == null ? void 0 : x.length) < 1)
21557
+ return;
21560
21558
  const I = window.location.pathname, C = new URLSearchParams(window.location.search);
21561
- C.set("id", `${(c = x[0]) == null ? void 0 : c.properties.id}`), this.getObjectData((fe = (pe = x[0]) == null ? void 0 : pe.properties) == null ? void 0 : fe.id);
21559
+ C.set("id", `${(U = x[0]) == null ? void 0 : U.properties.id}`), this.getObjectData((c = (S = x[0]) == null ? void 0 : S.properties) == null ? void 0 : c.id);
21562
21560
  const L = `${I}?${C.toString()}`;
21563
- window.history.pushState({}, "", L), this.isSelectObj = !0, f.lngLat && (($e = this.map) == null || $e.fitBounds(
21561
+ window.history.pushState({}, "", L), this.isSelectObj = !0, f.lngLat && ((ae = this.map) == null || ae.fitBounds(
21564
21562
  [
21565
- [(xe = f.lngLat) == null ? void 0 : xe.lng, (oe = f.lngLat) == null ? void 0 : oe.lat],
21566
- [(ae = f.lngLat) == null ? void 0 : ae.lng, (ut = f.lngLat) == null ? void 0 : ut.lat]
21563
+ [(pe = f.lngLat) == null ? void 0 : pe.lng, (fe = f.lngLat) == null ? void 0 : fe.lat],
21564
+ [(xe = f.lngLat) == null ? void 0 : xe.lng, (oe = f.lngLat) == null ? void 0 : oe.lat]
21567
21565
  ],
21568
21566
  { padding: 30, duration: 0 }
21569
21567
  )), this.checkUrl();
@@ -21721,7 +21719,7 @@ const B0 = /* @__PURE__ */ Ji(I0, [["render", R0], ["__scopeId", "data-v-3740577
21721
21719
  };
21722
21720
  function px(f, x, I, C, L, U) {
21723
21721
  var Oe, gt;
21724
- const S = ii("VsTextMask"), c = ii("vs-text"), pe = ii("FilterIcon"), fe = ii("VsFilterList"), xe = ii("VisibleMapIcon"), oe = ii("HiddenMapIcon"), ae = ii("CloseIcon"), ut = ii("NoData"), $e = ii("VsPagination"), Ke = ii("MapPortal");
21722
+ const S = ii("VsTextMask"), c = ii("vs-text"), pe = ii("FilterIcon"), fe = ii("VsFilterList"), xe = ii("VisibleMapIcon"), oe = ii("HiddenMapIcon"), ae = ii("CloseIcon"), pt = ii("NoData"), Ue = ii("VsPagination"), Ke = ii("MapPortal");
21725
21723
  return it(), mt("section", O0, [
21726
21724
  Re("div", null, [
21727
21725
  Re("div", V0, [
@@ -21844,7 +21842,7 @@ function px(f, x, I, C, L, U) {
21844
21842
  addGeomMarker: f.addGeomMarker,
21845
21843
  isMapVisible: f.isMapVisible
21846
21844
  }) : (it(), mt("div", nx, [
21847
- tr(ut),
21845
+ tr(pt),
21848
21846
  sx,
21849
21847
  ox,
21850
21848
  Re("button", {
@@ -21857,7 +21855,7 @@ function px(f, x, I, C, L, U) {
21857
21855
  f.total >= 1 ? (it(), mt("hr", ax)) : oi("", !0),
21858
21856
  f.total >= 1 ? (it(), mt("div", lx, [
21859
21857
  Re("div", cx, [
21860
- tr($e, {
21858
+ tr(Ue, {
21861
21859
  total: f.total,
21862
21860
  maxPages: 7,
21863
21861
  defaultPage: f.currentPage,