@opengis/partsmap 0.0.84 → 0.0.85

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
@@ -1,4 +1,4 @@
1
- import { openBlock as it, createElementBlock as mt, createStaticVNode as _p, Fragment as ls, renderList as Wo, normalizeClass as Zs, createElementVNode as Re, toDisplayString as Mr, resolveComponent as ii, createBlock as gr, withCtx as _r, createVNode as Ji, createTextVNode as Xo, createCommentVNode as ci, withDirectives as Hs, vShow as Jo, pushScopeId as yp, popScopeId as xp, vModelRadio as jm, normalizeStyle as Jh, Teleport as qm, Transition as Wd, renderSlot as Ho, defineComponent as Zm } from "vue";
1
+ import { openBlock as it, createElementBlock as mt, createStaticVNode as _p, Fragment as ls, renderList as Wo, normalizeClass as Zs, createElementVNode as Re, toDisplayString as Mr, resolveComponent as ii, createBlock as ir, withCtx as _r, createVNode as tr, createTextVNode as Xo, createCommentVNode as oi, withDirectives as Hs, vShow as Jo, pushScopeId as yp, popScopeId as xp, vModelRadio as jm, normalizeStyle as Jh, Teleport as qm, Transition as Wd, renderSlot as Ho, defineComponent as Zm } from "vue";
2
2
  var Ws = {};
3
3
  function Xd(f) {
4
4
  return Math.floor(Math.abs(f) + 0.5) * (f >= 0 ? 1 : -1);
@@ -296,9 +296,9 @@ var bp = { exports: {} };
296
296
  });
297
297
  }
298
298
  let Lr, zi;
299
- const rr = "AbortError";
299
+ const nr = "AbortError";
300
300
  function Dn() {
301
- return new Error(rr);
301
+ return new Error(nr);
302
302
  }
303
303
  const Wr = { MAX_PARALLEL_IMAGE_REQUESTS: 16, MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8, MAX_TILE_CACHE_ZOOM_LEVELS: 5, REGISTERED_PROTOCOLS: {}, WORKER_URL: "" };
304
304
  function vr(i) {
@@ -310,16 +310,16 @@ var bp = { exports: {} };
310
310
  super(`AJAXError: ${r} (${e}): ${s}`), this.status = e, this.statusText = r, this.url = s, this.body = l;
311
311
  }
312
312
  }
313
- const nr = () => zr(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, fn = function(i, e) {
313
+ const sr = () => zr(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, fn = function(i, e) {
314
314
  if (/:\/\//.test(i.url) && !/^https?:|^file:/.test(i.url)) {
315
315
  const s = vr(i.url);
316
316
  if (s) return s(i, e);
317
317
  if (zr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: Rn }, e);
318
318
  }
319
- if (!(/^file:/.test(r = i.url) || /^file:/.test(nr()) && !/^\w+:/.test(r))) {
319
+ if (!(/^file:/.test(r = i.url) || /^file:/.test(sr()) && !/^\w+:/.test(r))) {
320
320
  if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return function(s, l) {
321
321
  return c(this, void 0, void 0, function* () {
322
- const d = new Request(s.url, { method: s.method || "GET", body: s.body, credentials: s.credentials, headers: s.headers, cache: s.cache, referrer: nr(), signal: l.signal });
322
+ const d = new Request(s.url, { method: s.method || "GET", body: s.body, credentials: s.credentials, headers: s.headers, cache: s.cache, referrer: sr(), signal: l.signal });
323
323
  s.type !== "json" || d.headers.has("Accept") || d.headers.set("Accept", "application/json");
324
324
  const p = yield fetch(d);
325
325
  if (!p.ok) {
@@ -458,7 +458,7 @@ var bp = { exports: {} };
458
458
  for (s in e[r]) if (Object.prototype.hasOwnProperty.call(e[r], s) && s !== "data" && !vt(i[r][s], e[r][s])) return !1;
459
459
  return !0;
460
460
  }
461
- function Yi(i, e, r, s, l, d) {
461
+ function Ki(i, e, r, s, l, d) {
462
462
  i = i || {}, e = e || {};
463
463
  for (const p in i) Object.prototype.hasOwnProperty.call(i, p) && (vt(i[p], e[p]) || r.push({ command: d, args: [s, p, e[p], l] }));
464
464
  for (const p in e) Object.prototype.hasOwnProperty.call(e, p) && !Object.prototype.hasOwnProperty.call(i, p) && (vt(i[p], e[p]) || r.push({ command: d, args: [s, p, e[p], l] }));
@@ -500,7 +500,7 @@ var bp = { exports: {} };
500
500
  return !!this.bindings[e] || !!this.parent && this.parent.has(e);
501
501
  }
502
502
  }
503
- const Yr = { kind: "null" }, ke = { kind: "number" }, lt = { kind: "string" }, Ye = { kind: "boolean" }, Li = { kind: "color" }, sr = { kind: "object" }, rt = { kind: "value" }, Sr = { kind: "collator" }, Br = { kind: "formatted" }, Qr = { kind: "padding" }, Tr = { kind: "resolvedImage" }, H = { kind: "variableAnchorOffsetCollection" };
503
+ const Yr = { kind: "null" }, ke = { kind: "number" }, lt = { kind: "string" }, Ye = { kind: "boolean" }, Li = { kind: "color" }, or = { kind: "object" }, rt = { kind: "value" }, Sr = { kind: "collator" }, Br = { kind: "formatted" }, Qr = { kind: "padding" }, Tr = { kind: "resolvedImage" }, H = { kind: "variableAnchorOffsetCollection" };
504
504
  function z(i, e) {
505
505
  return { kind: "array", itemType: i, N: e };
506
506
  }
@@ -511,7 +511,7 @@ var bp = { exports: {} };
511
511
  }
512
512
  return i.kind;
513
513
  }
514
- const V = [Yr, ke, lt, Ye, Li, Br, sr, z(rt), Qr, Tr, H];
514
+ const V = [Yr, ke, lt, Ye, Li, Br, or, z(rt), Qr, Tr, H];
515
515
  function Z(i, e) {
516
516
  if (e.kind === "error") return null;
517
517
  if (i.kind === "array") {
@@ -774,7 +774,7 @@ var bp = { exports: {} };
774
774
  }
775
775
  return z(r || rt, e);
776
776
  }
777
- return sr;
777
+ return or;
778
778
  }
779
779
  function Fr(i) {
780
780
  const e = typeof i;
@@ -809,8 +809,8 @@ var bp = { exports: {} };
809
809
  return this.message;
810
810
  }
811
811
  }
812
- const Qs = { string: lt, number: ke, boolean: Ye, object: sr };
813
- class Qi {
812
+ const Qs = { string: lt, number: ke, boolean: Ye, object: or };
813
+ class Yi {
814
814
  constructor(e, r) {
815
815
  this.type = e, this.args = r;
816
816
  }
@@ -840,7 +840,7 @@ var bp = { exports: {} };
840
840
  if (!m) return null;
841
841
  p.push(m);
842
842
  }
843
- return new Qi(s, p);
843
+ return new Yi(s, p);
844
844
  }
845
845
  evaluate(e) {
846
846
  for (let r = 0; r < this.args.length; r++) {
@@ -966,7 +966,7 @@ var bp = { exports: {} };
966
966
  }
967
967
  _parse(e, r) {
968
968
  function s(l, d, p) {
969
- return p === "assert" ? new Qi(d, [l]) : p === "coerce" ? new en(d, [l]) : l;
969
+ return p === "assert" ? new Yi(d, [l]) : p === "coerce" ? new en(d, [l]) : l;
970
970
  }
971
971
  if (e !== null && typeof e != "string" && typeof e != "boolean" && typeof e != "number" || (e = ["literal", e]), Array.isArray(e)) {
972
972
  if (e.length === 0) return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');
@@ -1502,7 +1502,7 @@ var bp = { exports: {} };
1502
1502
  if (!v) return null;
1503
1503
  if (!bl(m, v.type)) return p.concat(2).error(`"${m}" comparisons are not supported for type '${M(v.type)}'.`);
1504
1504
  if (_.type.kind !== v.type.kind && _.type.kind !== "value" && v.type.kind !== "value") return p.error(`Cannot compare types '${M(_.type)}' and '${M(v.type)}'.`);
1505
- s && (_.type.kind === "value" && v.type.kind !== "value" ? _ = new Qi(v.type, [_]) : _.type.kind !== "value" && v.type.kind === "value" && (v = new Qi(_.type, [v])));
1505
+ s && (_.type.kind === "value" && v.type.kind !== "value" ? _ = new Yi(v.type, [_]) : _.type.kind !== "value" && v.type.kind === "value" && (v = new Yi(_.type, [v])));
1506
1506
  let T = null;
1507
1507
  if (d.length === 4) {
1508
1508
  if (_.type.kind !== "string" && v.type.kind !== "string" && _.type.kind !== "value" && v.type.kind !== "value") return p.error("Cannot use collator to compare non-string types.");
@@ -2230,7 +2230,7 @@ var bp = { exports: {} };
2230
2230
  return !0;
2231
2231
  }
2232
2232
  }
2233
- const vn = { "==": Sl, "!=": $c, ">": Tl, "<": Uc, ">=": jc, "<=": Il, array: Qi, at: ia, boolean: Qi, case: ro, coalesce: so, collator: oo, format: ao, image: na, in: ys, "index-of": to, interpolate: Gi, "interpolate-hcl": Gi, "interpolate-lab": Gi, length: sa, let: bt, literal: _n, match: io, number: Qi, "number-format": ra, object: Qi, slice: no, step: On, string: Qi, "to-boolean": en, "to-color": en, "to-number": en, "to-string": en, var: eo, within: xn, distance: nn };
2233
+ const vn = { "==": Sl, "!=": $c, ">": Tl, "<": Uc, ">=": jc, "<=": Il, array: Yi, at: ia, boolean: Yi, case: ro, coalesce: so, collator: oo, format: ao, image: na, in: ys, "index-of": to, interpolate: Gi, "interpolate-hcl": Gi, "interpolate-lab": Gi, length: sa, let: bt, literal: _n, match: io, number: Yi, "number-format": ra, object: Yi, slice: no, step: On, string: Yi, "to-boolean": en, "to-color": en, "to-number": en, "to-string": en, var: eo, within: xn, distance: nn };
2234
2234
  class Hi {
2235
2235
  constructor(e, r, s, l) {
2236
2236
  this.name = e, this.type = r, this._evaluate = s, this.args = l;
@@ -2309,7 +2309,7 @@ var bp = { exports: {} };
2309
2309
  function go(i) {
2310
2310
  if (i instanceof eo) return go(i.boundExpression);
2311
2311
  if (i instanceof Hi && i.name === "error" || i instanceof oo || i instanceof xn || i instanceof nn) return !1;
2312
- const e = i instanceof en || i instanceof Qi;
2312
+ const e = i instanceof en || i instanceof Yi;
2313
2313
  let r = !0;
2314
2314
  return i.eachChild((s) => {
2315
2315
  r = e ? r && go(s) : r && s instanceof _n;
@@ -2452,7 +2452,7 @@ var bp = { exports: {} };
2452
2452
  }], typeof: [lt, [rt], (i, [e]) => M(ei(e.evaluate(i)))], "to-rgba": [z(ke, 4), [Li], (i, [e]) => {
2453
2453
  const [r, s, l, d] = e.evaluate(i).rgb;
2454
2454
  return [255 * r, 255 * s, 255 * l, d];
2455
- }], rgb: [Li, [ke, ke, ke], ga], rgba: [Li, [ke, ke, ke, ke], ga], has: { type: Ye, overloads: [[[lt], (i, [e]) => mo(e.evaluate(i), i.properties())], [[lt, sr], (i, [e, r]) => mo(e.evaluate(i), r.evaluate(i))]] }, get: { type: rt, overloads: [[[lt], (i, [e]) => _a(e.evaluate(i), i.properties())], [[lt, sr], (i, [e, r]) => _a(e.evaluate(i), r.evaluate(i))]] }, "feature-state": [rt, [lt], (i, [e]) => _a(e.evaluate(i), i.featureState || {})], properties: [sr, [], (i) => i.properties()], "geometry-type": [lt, [], (i) => i.geometryType()], id: [rt, [], (i) => i.id()], zoom: [ke, [], (i) => i.globals.zoom], "heatmap-density": [ke, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [ke, [], (i) => i.globals.lineProgress || 0], accumulated: [rt, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [ke, bn(ke), (i, e) => {
2455
+ }], rgb: [Li, [ke, ke, ke], ga], rgba: [Li, [ke, ke, ke, ke], ga], has: { type: Ye, overloads: [[[lt], (i, [e]) => mo(e.evaluate(i), i.properties())], [[lt, or], (i, [e, r]) => mo(e.evaluate(i), r.evaluate(i))]] }, get: { type: rt, overloads: [[[lt], (i, [e]) => _a(e.evaluate(i), i.properties())], [[lt, or], (i, [e, r]) => _a(e.evaluate(i), r.evaluate(i))]] }, "feature-state": [rt, [lt], (i, [e]) => _a(e.evaluate(i), i.featureState || {})], properties: [or, [], (i) => i.properties()], "geometry-type": [lt, [], (i) => i.geometryType()], id: [rt, [], (i) => i.id()], zoom: [ke, [], (i) => i.globals.zoom], "heatmap-density": [ke, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [ke, [], (i) => i.globals.lineProgress || 0], accumulated: [rt, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [ke, bn(ke), (i, e) => {
2456
2456
  let r = 0;
2457
2457
  for (const s of e) r += s.evaluate(i);
2458
2458
  return r;
@@ -3013,11 +3013,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3013
3013
  const e = i.value, r = i.key, s = Vr(i);
3014
3014
  return s.length || (e.indexOf("{fontstack}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{range}" token'))), s;
3015
3015
  }
3016
- function er(i, e = he) {
3016
+ function Qi(i, e = he) {
3017
3017
  let r = [];
3018
3018
  return r = r.concat(Ds({ key: "", value: i, valueSpec: e.$root, styleSpec: e, style: i, validateSpec: Ds, objectElementValidators: { glyphs: Hl, "*": () => [] } })), i.constants && (r = r.concat(ql({ key: "constants", value: i.constants, style: i, styleSpec: e, validateSpec: Ds }))), Oa(r);
3019
3019
  }
3020
- function or(i) {
3020
+ function ar(i) {
3021
3021
  return function(e) {
3022
3022
  return i({ ...e, validateSpec: Ds });
3023
3023
  };
@@ -3025,13 +3025,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3025
3025
  function Oa(i) {
3026
3026
  return [].concat(i).sort((e, r) => e.line - r.line);
3027
3027
  }
3028
- function ar(i) {
3028
+ function lr(i) {
3029
3029
  return function(...e) {
3030
3030
  return Oa(i.apply(this, e));
3031
3031
  };
3032
3032
  }
3033
- er.source = ar(or(Zl)), er.sprite = ar(or(Ba)), er.glyphs = ar(or(Hl)), er.light = ar(or(Da)), er.sky = ar(or(Gl)), er.terrain = ar(or(Ra)), er.layer = ar(or(za)), er.filter = ar(or(zs)), er.paintProperty = ar(or(Ea)), er.layoutProperty = ar(or(Ma));
3034
- const Nr = er, Qc = Nr.light, Va = Nr.sky, eh = Nr.paintProperty, th = Nr.layoutProperty;
3033
+ Qi.source = lr(ar(Zl)), Qi.sprite = lr(ar(Ba)), Qi.glyphs = lr(ar(Hl)), Qi.light = lr(ar(Da)), Qi.sky = lr(ar(Gl)), Qi.terrain = lr(ar(Ra)), Qi.layer = lr(ar(za)), Qi.filter = lr(ar(zs)), Qi.paintProperty = lr(ar(Ea)), Qi.layoutProperty = lr(ar(Ma));
3034
+ const Nr = Qi, Qc = Nr.light, Va = Nr.sky, eh = Nr.paintProperty, th = Nr.layoutProperty;
3035
3035
  function Na(i, e) {
3036
3036
  let r = !1;
3037
3037
  if (e && e.length) for (const s of e) i.fire(new Jr(new Error(s.message))), r = !0;
@@ -4165,12 +4165,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4165
4165
  }
4166
4166
  }
4167
4167
  gi.prototype.size = 64;
4168
- class lr extends we {
4168
+ class cr extends we {
4169
4169
  get(e) {
4170
4170
  return new gi(this, e);
4171
4171
  }
4172
4172
  }
4173
- Fe("SymbolInstanceArray", lr);
4173
+ Fe("SymbolInstanceArray", cr);
4174
4174
  class Ft extends Se {
4175
4175
  getoffsetX(e) {
4176
4176
  return this.float32[1 * e + 0];
@@ -4219,12 +4219,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4219
4219
  }
4220
4220
  }
4221
4221
  yi.prototype.size = 8;
4222
- class cr extends tt {
4222
+ class hr extends tt {
4223
4223
  get(e) {
4224
4224
  return new yi(this, e);
4225
4225
  }
4226
4226
  }
4227
- Fe("FeatureIndexArray", cr);
4227
+ Fe("FeatureIndexArray", hr);
4228
4228
  class kn extends A {
4229
4229
  }
4230
4230
  class Co extends A {
@@ -4239,7 +4239,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4239
4239
  }
4240
4240
  class hi extends W {
4241
4241
  }
4242
- class hr extends K {
4242
+ class ur extends K {
4243
4243
  }
4244
4244
  class an extends $ {
4245
4245
  }
@@ -4249,7 +4249,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4249
4249
  }
4250
4250
  class vi extends be {
4251
4251
  }
4252
- class oi extends ze {
4252
+ class ai extends ze {
4253
4253
  }
4254
4254
  class Ut extends Pe {
4255
4255
  }
@@ -4683,7 +4683,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4683
4683
  }
4684
4684
  class oh {
4685
4685
  constructor(e) {
4686
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new Co(), this.indexArray = new oi(), this.segments = new ni(), this.programConfigurations = new Os(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
4686
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new Co(), this.indexArray = new ai(), this.segments = new ni(), this.programConfigurations = new Os(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
4687
4687
  }
4688
4688
  populate(e, r, s) {
4689
4689
  const l = this.layers[0], d = [];
@@ -4909,7 +4909,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4909
4909
  uh(e, r, s, l, d, 1);
4910
4910
  }
4911
4911
  }
4912
- class ur {
4912
+ class dr {
4913
4913
  constructor(e, r) {
4914
4914
  hh(this, e, 4, r);
4915
4915
  }
@@ -4920,14 +4920,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4920
4920
  r ? this.data.set(e) : this.data = e instanceof Uint8ClampedArray ? new Uint8Array(e.buffer) : e;
4921
4921
  }
4922
4922
  clone() {
4923
- return new ur({ width: this.width, height: this.height }, new Uint8Array(this.data));
4923
+ return new dr({ width: this.width, height: this.height }, new Uint8Array(this.data));
4924
4924
  }
4925
4925
  static copy(e, r, s, l, d) {
4926
4926
  uh(e, r, s, l, d, 4);
4927
4927
  }
4928
4928
  }
4929
4929
  function ku(i) {
4930
- const e = {}, r = i.resolution || 256, s = i.clips ? i.clips.length : 1, l = i.image || new ur({ width: r, height: s });
4930
+ const e = {}, r = i.resolution || 256, s = i.clips ? i.clips.length : 1, l = i.image || new dr({ width: r, height: s });
4931
4931
  if (Math.log(r) / Math.LN2 % 1 != 0) throw new Error(`width is not a power of 2 - ${r}`);
4932
4932
  const d = (p, m, _) => {
4933
4933
  e[i.evaluationKey] = _;
@@ -4941,7 +4941,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4941
4941
  else for (let p = 0, m = 0; p < r; p++, m += 4) d(0, m, p / (r - 1));
4942
4942
  return l;
4943
4943
  }
4944
- Fe("AlphaImage", el), Fe("RGBAImage", ur);
4944
+ Fe("AlphaImage", el), Fe("RGBAImage", dr);
4945
4945
  class af extends h {
4946
4946
  createBucket(e) {
4947
4947
  return new Tu(e);
@@ -5239,7 +5239,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5239
5239
  }
5240
5240
  class gh {
5241
5241
  constructor(e) {
5242
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Xn(), this.indexArray = new oi(), this.indexArray2 = new Ut(), this.programConfigurations = new Os(e.layers, e.zoom), this.segments = new ni(), this.segments2 = new ni(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5242
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Xn(), this.indexArray = new ai(), this.indexArray2 = new Ut(), this.programConfigurations = new Os(e.layers, e.zoom), this.segments = new ni(), this.segments2 = new ni(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5243
5243
  }
5244
5244
  populate(e, r, s) {
5245
5245
  this.hasPattern = fh("fill", this.layers, r);
@@ -5438,7 +5438,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5438
5438
  }
5439
5439
  class yh {
5440
5440
  constructor(e) {
5441
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new An(), this.centroidVertexArray = new kn(), this.indexArray = new oi(), this.programConfigurations = new Os(e.layers, e.zoom), this.segments = new ni(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5441
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new An(), this.centroidVertexArray = new kn(), this.indexArray = new ai(), this.programConfigurations = new Os(e.layers, e.zoom), this.segments = new ni(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5442
5442
  }
5443
5443
  populate(e, r, s) {
5444
5444
  this.features = [], this.hasPattern = fh("fill-extrusion", this.layers, r);
@@ -5550,8 +5550,8 @@ 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 $e = Ze.x, et = Ze.y, At = X[0] * $e + X[4] * et + X[12], kt = X[1] * $e + X[5] * et + X[13], ai = X[2] * $e + X[6] * et + X[14], Cr = X[3] * $e + X[7] * et + X[15], wi = ai + ve, Ht = Cr + Le, Fi = At + Xe, Oi = kt + Ee, Vi = ai + Ae, Wt = Cr + je, li = new oe((At + ie) / Ht, (kt + ue) / Ht);
5554
- li.z = wi / Ht, Be.push(li);
5553
+ const $e = Ze.x, et = Ze.y, At = X[0] * $e + X[4] * et + X[12], kt = 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 = kt + Ee, Vi = li + Ae, Wt = Cr + je, ci = new oe((At + ie) / Ht, (kt + ue) / Ht);
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);
5557
5557
  }
@@ -5599,7 +5599,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5599
5599
  constructor(e) {
5600
5600
  this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
5601
5601
  this.gradients[r.id] = {};
5602
- }), this.layoutVertexArray = new Eo(), this.layoutVertexArray2 = new Ga(), this.indexArray = new oi(), this.programConfigurations = new Os(e.layers, e.zoom), this.segments = new ni(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5602
+ }), this.layoutVertexArray = new Eo(), this.layoutVertexArray2 = new Ga(), this.indexArray = new ai(), this.programConfigurations = new Os(e.layers, e.zoom), this.segments = new ni(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5603
5603
  }
5604
5604
  populate(e, r, s) {
5605
5605
  this.hasPattern = fh("line", this.layers, r);
@@ -6167,14 +6167,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6167
6167
  this.haveRenderCallbacks = [];
6168
6168
  const d = [];
6169
6169
  this.addImages(e, s, d), this.addImages(r, l, d);
6170
- const { w: p, h: m } = td(d), _ = new ur({ width: p || 1, height: m || 1 });
6170
+ const { w: p, h: m } = td(d), _ = new dr({ width: p || 1, height: m || 1 });
6171
6171
  for (const v in e) {
6172
6172
  const T = e[v], P = s[v].paddedRect;
6173
- ur.copy(T.data, _, { x: 0, y: 0 }, { x: P.x + Wi, y: P.y + Wi }, T.data);
6173
+ dr.copy(T.data, _, { x: 0, y: 0 }, { x: P.x + Wi, y: P.y + Wi }, T.data);
6174
6174
  }
6175
6175
  for (const v in r) {
6176
6176
  const T = r[v], P = l[v].paddedRect, E = P.x + Wi, D = P.y + Wi, B = T.data.width, O = T.data.height;
6177
- ur.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: D }, T.data), ur.copy(T.data, _, { x: 0, y: O - 1 }, { x: E, y: D - 1 }, { width: B, height: 1 }), ur.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: D + O }, { width: B, height: 1 }), ur.copy(T.data, _, { x: B - 1, y: 0 }, { x: E - 1, y: D }, { width: 1, height: O }), ur.copy(T.data, _, { x: 0, y: 0 }, { x: E + B, y: D }, { width: 1, height: O });
6177
+ dr.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: D }, T.data), dr.copy(T.data, _, { x: 0, y: O - 1 }, { x: E, y: D - 1 }, { width: B, height: 1 }), dr.copy(T.data, _, { x: 0, y: 0 }, { x: E, y: D + O }, { width: B, height: 1 }), dr.copy(T.data, _, { x: B - 1, y: 0 }, { x: E - 1, y: D }, { width: 1, height: O }), dr.copy(T.data, _, { x: 0, y: 0 }, { x: E + B, y: D }, { width: 1, height: O });
6178
6178
  }
6179
6179
  this.image = _, this.iconPositions = s, this.patternPositions = l;
6180
6180
  }
@@ -6306,12 +6306,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
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: P, iconsInText: !1, verticalizable: !1 };
6308
6308
  return function(ue, ve, Le, Xe, Ee, Ae, je, Ve, Be, ge, Ze, $e) {
6309
- let et = 0, At = al, kt = 0, ai = 0;
6309
+ let et = 0, At = al, kt = 0, li = 0;
6310
6310
  const Cr = Ve === "right" ? 1 : Ve === "left" ? 0 : 0.5;
6311
6311
  let wi = 0;
6312
6312
  for (const Wt of Ee) {
6313
6313
  Wt.trim();
6314
- const li = Wt.getMaxScale(), Ei = (li - 1) * si, Si = { positionedGlyphs: [], lineOffset: 0 };
6314
+ const ci = Wt.getMaxScale(), Ei = (ci - 1) * si, Si = { positionedGlyphs: [], lineOffset: 0 };
6315
6315
  ue.positionedLines[wi] = Si;
6316
6316
  const Ni = Si.positionedGlyphs;
6317
6317
  let Ti = 0;
@@ -6321,40 +6321,40 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6321
6321
  }
6322
6322
  for (let Xi = 0; Xi < Wt.length(); Xi++) {
6323
6323
  const xt = Wt.getSection(Xi), zt = Wt.getSectionIndex(Xi), Ot = Wt.getCharCode(Xi);
6324
- let tr = 0, Gt = null, Zo = null, hn = null, un = si;
6324
+ let er = 0, Gt = null, Zo = null, hn = null, un = si;
6325
6325
  const Er = !(Be === S.ai.horizontal || !Ze && !ja(Ot) || Ze && (mc[Ot] || (Ht = Ot, Me.Arabic(Ht) || Me["Arabic Supplement"](Ht) || Me["Arabic Extended-A"](Ht) || Me["Arabic Presentation Forms-A"](Ht) || Me["Arabic Presentation Forms-B"](Ht))));
6326
6326
  if (xt.imageName) {
6327
- const fr = Xe[xt.imageName];
6328
- if (!fr) continue;
6329
- hn = xt.imageName, ue.iconsInText = ue.iconsInText || !0, Zo = fr.paddedRect;
6330
- const ui = fr.displaySize;
6331
- xt.scale = xt.scale * si / $e, Gt = { width: ui[0], height: ui[1], left: Wi, top: -ed, advance: Er ? ui[1] : ui[0] }, tr = Ei + (si - ui[1] * xt.scale), un = Gt.advance;
6332
- const Mn = Er ? ui[0] * xt.scale - si * li : ui[1] * xt.scale - si * li;
6327
+ const mr = Xe[xt.imageName];
6328
+ if (!mr) continue;
6329
+ hn = xt.imageName, ue.iconsInText = ue.iconsInText || !0, Zo = mr.paddedRect;
6330
+ const ui = mr.displaySize;
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
+ 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 {
6335
- const fr = Le[xt.fontStack], ui = fr && fr[Ot];
6335
+ const mr = Le[xt.fontStack], ui = mr && mr[Ot];
6336
6336
  if (ui && ui.rect) Zo = ui.rect, Gt = ui.metrics;
6337
6337
  else {
6338
6338
  const Mn = ve[xt.fontStack], pl = Mn && Mn[Ot];
6339
6339
  if (!pl) continue;
6340
6340
  Gt = pl.metrics;
6341
6341
  }
6342
- tr = (li - xt.scale) * si;
6342
+ er = (ci - xt.scale) * si;
6343
6343
  }
6344
- Er ? (ue.verticalizable = !0, Ni.push({ glyph: Ot, imageName: hn, x: et, y: At + tr, vertical: Er, scale: xt.scale, fontStack: xt.fontStack, sectionIndex: zt, metrics: Gt, rect: Zo }), et += un * xt.scale + ge) : (Ni.push({ glyph: Ot, imageName: hn, x: et, y: At + tr, vertical: Er, scale: xt.scale, fontStack: xt.fontStack, sectionIndex: zt, metrics: Gt, rect: Zo }), et += Gt.advance * xt.scale + ge);
6344
+ Er ? (ue.verticalizable = !0, Ni.push({ glyph: Ot, imageName: hn, x: et, y: At + er, vertical: Er, scale: xt.scale, fontStack: xt.fontStack, sectionIndex: zt, metrics: Gt, rect: Zo }), et += un * xt.scale + ge) : (Ni.push({ glyph: Ot, imageName: hn, x: et, y: At + er, vertical: Er, scale: xt.scale, fontStack: xt.fontStack, sectionIndex: zt, metrics: Gt, rect: Zo }), et += Gt.advance * xt.scale + ge);
6345
6345
  }
6346
6346
  Ni.length !== 0 && (kt = Math.max(et - ge, kt), dm(Ni, 0, Ni.length - 1, Cr, Ti)), et = 0;
6347
- const pr = Ae * li + Ti;
6348
- Si.lineOffset = Math.max(Ti, Ei), At += pr, ai = Math.max(pr, ai), ++wi;
6347
+ const fr = Ae * ci + Ti;
6348
+ Si.lineOffset = Math.max(Ti, Ei), At += fr, li = Math.max(fr, li), ++wi;
6349
6349
  }
6350
6350
  var Ht;
6351
6351
  const Fi = At - al, { horizontalAlign: Oi, verticalAlign: Vi } = Ih(je);
6352
- (function(Wt, li, Ei, Si, Ni, Ti, pr, Xi, xt) {
6353
- const zt = (li - Ei) * Ni;
6352
+ (function(Wt, ci, Ei, Si, Ni, Ti, fr, Xi, xt) {
6353
+ const zt = (ci - Ei) * Ni;
6354
6354
  let Ot = 0;
6355
- Ot = Ti !== pr ? -Xi * Si - al : (-Si * xt + 0.5) * pr;
6356
- for (const tr of Wt) for (const Gt of tr.positionedGlyphs) Gt.x += zt, Gt.y += Ot;
6357
- })(ue.positionedLines, Cr, Oi, Vi, kt, ai, Ae, Fi, Ee.length), ue.top += -Vi * Fi, ue.bottom = ue.top + Fi, ue.left += -Oi * kt, ue.right = ue.left + kt;
6355
+ Ot = Ti !== fr ? -Xi * Si - al : (-Si * xt + 0.5) * fr;
6356
+ for (const er of Wt) for (const Gt of er.positionedGlyphs) Gt.x += zt, Gt.y += Ot;
6357
+ })(ue.positionedLines, Cr, Oi, Vi, kt, li, Ae, Fi, Ee.length), ue.top += -Vi * Fi, ue.bottom = ue.top + Fi, ue.left += -Oi * kt, ue.right = ue.left + kt;
6358
6358
  }(ie, e, r, s, q, p, m, _, P, v, E, B), !function(ue) {
6359
6359
  for (const ve of ue) if (ve.positionedGlyphs.length !== 0) return !1;
6360
6360
  return !0;
@@ -6510,7 +6510,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6510
6510
  }
6511
6511
  class Ah {
6512
6512
  constructor(e) {
6513
- this.layoutVertexArray = new hr(), this.indexArray = new oi(), this.programConfigurations = e, this.segments = new ni(), this.dynamicLayoutVertexArray = new an(), this.opacityVertexArray = new Jn(), this.hasVisibleVertices = !1, this.placedSymbolArray = new Bt();
6513
+ this.layoutVertexArray = new ur(), this.indexArray = new ai(), this.programConfigurations = e, this.segments = new ni(), this.dynamicLayoutVertexArray = new an(), this.opacityVertexArray = new Jn(), this.hasVisibleVertices = !1, this.placedSymbolArray = new Bt();
6514
6514
  }
6515
6515
  isEmpty() {
6516
6516
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
@@ -6544,7 +6544,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6544
6544
  this.canOverlap = Ph(s, "text-overlap", "text-allow-overlap") !== "never" || Ph(s, "icon-overlap", "icon-allow-overlap") !== "never" || s.get("text-ignore-placement") || s.get("icon-ignore-placement"), this.sortFeaturesByKey = d !== "viewport-y" && !l.isConstant(), this.sortFeaturesByY = (d === "viewport-y" || d === "auto" && !this.sortFeaturesByKey) && this.canOverlap, s.get("symbol-placement") === "point" && (this.writingModes = s.get("text-writing-mode").map((p) => S.ai[p])), this.stateDependentLayerIds = this.layers.filter((p) => p.isStateDependent()).map((p) => p.id), this.sourceID = e.sourceID;
6545
6545
  }
6546
6546
  createArrays() {
6547
- this.text = new Ah(new Os(this.layers, this.zoom, (e) => /^text/.test(e))), this.icon = new Ah(new Os(this.layers, this.zoom, (e) => /^icon/.test(e))), this.glyphOffsetArray = new Ft(), this.lineVertexArray = new Ri(), this.symbolInstances = new lr(), this.textAnchorOffsets = new _i();
6547
+ this.text = new Ah(new Os(this.layers, this.zoom, (e) => /^text/.test(e))), this.icon = new Ah(new Os(this.layers, this.zoom, (e) => /^icon/.test(e))), this.glyphOffsetArray = new Ft(), this.lineVertexArray = new Ri(), this.symbolInstances = new cr(), this.textAnchorOffsets = new _i();
6548
6548
  }
6549
6549
  calculateGlyphDependencies(e, r, s, l, d) {
6550
6550
  for (let p = 0; p < e.length; p++) if (r[e.charCodeAt(p)] = !0, (s || l) && d) {
@@ -6998,13 +6998,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6998
6998
  this.wrap = e, this.canonical = r, this.key = hl(e, r.z, r.z, r.x, r.y);
6999
6999
  }
7000
7000
  }
7001
- class dr {
7001
+ class pr {
7002
7002
  constructor(e, r, s, l, d) {
7003
7003
  if (e < s) throw new Error(`overscaledZ should be >= z; overscaledZ = ${e}; z = ${s}`);
7004
7004
  this.overscaledZ = e, this.wrap = r, this.canonical = new Lh(s, +l, +d), this.key = hl(r, e, s, l, d);
7005
7005
  }
7006
7006
  clone() {
7007
- return new dr(this.overscaledZ, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y);
7007
+ return new pr(this.overscaledZ, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y);
7008
7008
  }
7009
7009
  equals(e) {
7010
7010
  return this.overscaledZ === e.overscaledZ && this.wrap === e.wrap && this.canonical.equals(e.canonical);
@@ -7012,7 +7012,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7012
7012
  scaledTo(e) {
7013
7013
  if (e > this.overscaledZ) throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);
7014
7014
  const r = this.canonical.z - e;
7015
- return e > this.canonical.z ? new dr(e, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y) : new dr(e, this.wrap, e, this.canonical.x >> r, this.canonical.y >> r);
7015
+ return e > this.canonical.z ? new pr(e, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y) : new pr(e, this.wrap, e, this.canonical.x >> r, this.canonical.y >> r);
7016
7016
  }
7017
7017
  calculateScaledKey(e, r) {
7018
7018
  if (e > this.overscaledZ) throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);
@@ -7025,18 +7025,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7025
7025
  return e.overscaledZ === 0 || e.overscaledZ < this.overscaledZ && e.canonical.x === this.canonical.x >> r && e.canonical.y === this.canonical.y >> r;
7026
7026
  }
7027
7027
  children(e) {
7028
- if (this.overscaledZ >= e) return [new dr(this.overscaledZ + 1, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y)];
7028
+ if (this.overscaledZ >= e) return [new pr(this.overscaledZ + 1, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y)];
7029
7029
  const r = this.canonical.z + 1, s = 2 * this.canonical.x, l = 2 * this.canonical.y;
7030
- return [new dr(r, this.wrap, r, s, l), new dr(r, this.wrap, r, s + 1, l), new dr(r, this.wrap, r, s, l + 1), new dr(r, this.wrap, r, s + 1, l + 1)];
7030
+ return [new pr(r, this.wrap, r, s, l), new pr(r, this.wrap, r, s + 1, l), new pr(r, this.wrap, r, s, l + 1), new pr(r, this.wrap, r, s + 1, l + 1)];
7031
7031
  }
7032
7032
  isLessThan(e) {
7033
7033
  return this.wrap < e.wrap || !(this.wrap > e.wrap) && (this.overscaledZ < e.overscaledZ || !(this.overscaledZ > e.overscaledZ) && (this.canonical.x < e.canonical.x || !(this.canonical.x > e.canonical.x) && this.canonical.y < e.canonical.y));
7034
7034
  }
7035
7035
  wrapped() {
7036
- return new dr(this.overscaledZ, 0, this.canonical.z, this.canonical.x, this.canonical.y);
7036
+ return new pr(this.overscaledZ, 0, this.canonical.z, this.canonical.x, this.canonical.y);
7037
7037
  }
7038
7038
  unwrapTo(e) {
7039
- return new dr(this.overscaledZ, e, this.canonical.z, this.canonical.x, this.canonical.y);
7039
+ return new pr(this.overscaledZ, e, this.canonical.z, this.canonical.x, this.canonical.y);
7040
7040
  }
7041
7041
  overscaleFactor() {
7042
7042
  return Math.pow(2, this.overscaledZ - this.canonical.z);
@@ -7056,7 +7056,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7056
7056
  const d = 1 << r;
7057
7057
  return (d * d * i + d * l + s).toString(36) + r.toString(36) + e.toString(36);
7058
7058
  }
7059
- Fe("CanonicalTileID", Lh), Fe("OverscaledTileID", dr, { omit: ["posMatrix"] });
7059
+ Fe("CanonicalTileID", Lh), Fe("OverscaledTileID", pr, { omit: ["posMatrix"] });
7060
7060
  class wd {
7061
7061
  constructor(e, r, s, l = 1, d = 1, p = 1, m = 0) {
7062
7062
  if (this.uid = e, r.height !== r.width) throw new RangeError("DEM tiles must be square");
@@ -7095,7 +7095,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7095
7095
  return e * this.redFactor + r * this.greenFactor + s * this.blueFactor - this.baseShift;
7096
7096
  }
7097
7097
  getPixels() {
7098
- return new ur({ width: this.stride, height: this.stride }, new Uint8Array(this.data.buffer));
7098
+ return new dr({ width: this.stride, height: this.stride }, new Uint8Array(this.data.buffer));
7099
7099
  }
7100
7100
  backfillBorder(e, r, s) {
7101
7101
  if (this.dim !== e.dim) throw new Error("dem dimension mismatch");
@@ -7153,7 +7153,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7153
7153
  }
7154
7154
  class Id {
7155
7155
  constructor(e, r) {
7156
- this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new Gn(ti, 16, 0), this.grid3D = new Gn(ti, 16, 0), this.featureIndexArray = new cr(), this.promoteId = r;
7156
+ this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new Gn(ti, 16, 0), this.grid3D = new Gn(ti, 16, 0), this.featureIndexArray = new hr(), this.promoteId = r;
7157
7157
  }
7158
7158
  insert(e, r, s, l, d, p) {
7159
7159
  const m = this.featureIndexArray.length;
@@ -7353,13 +7353,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7353
7353
  (d.textFitWidth || d.textFitHeight) && (v = ad(i)), X = xc(T, 0, ge[0]), Y = xc(P, 0, ge[1]), se = xc(T, ge[0], ge[2]), ie = xc(P, ge[1], ge[3]), ue = ge[0] - X, Le = ge[1] - Y, ve = Ze - se, Xe = $e - ie;
7354
7354
  }
7355
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), kt = bc(ge.fixed - ue, ve, ge.stretch, D), ai = 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, ai), Wt = new oe(wi, ai), li = new oe(wi, Fi), Ei = new oe(At, Fi), Si = new oe(kt / p, Cr / p), Ni = new oe(Ht / p, Oi / p), Ti = e * Math.PI / 180;
7356
+ const At = vc(ge.stretch - X, se, je, Ee), kt = 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(kt / 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
- Vi._matMult(Ot), Wt._matMult(Ot), Ei._matMult(Ot), li._matMult(Ot);
7359
+ Vi._matMult(Ot), Wt._matMult(Ot), Ei._matMult(Ot), ci._matMult(Ot);
7360
7360
  }
7361
- const pr = ge.stretch + ge.fixed, Xi = Ze.stretch + Ze.fixed;
7362
- return { tl: Vi, tr: Wt, bl: Ei, br: li, tex: { x: d.paddedRect.x + jo + pr, y: d.paddedRect.y + jo + Xi, w: $e.stretch + $e.fixed - pr, 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 };
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: $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(P, q, B);
@@ -7599,49 +7599,49 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
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($e, et, At, kt, ai, Cr, wi, Ht, Fi, Oi, Vi, Wt, li, Ei, Si, Ni, Ti, pr, Xi, xt, zt, Ot, tr, Gt, Zo) {
7602
+ Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function($e, et, At, kt, li, Cr, wi, Ht, Fi, Oi, Vi, Wt, ci, Ei, Si, Ni, Ti, fr, Xi, xt, zt, Ot, er, Gt, Zo) {
7603
7603
  const hn = $e.addToLineVertexArray(et, At);
7604
- let un, Er, fr, ui, Mn = 0, pl = 0, jd = 0, qd = 0, jh = -1, qh = -1;
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
7607
  if ($e.allowVerticalPlacement && kt.vertical) {
7608
7608
  const Mi = Ht.layout.get("text-rotate").evaluate(zt, {}, Gt) + 90;
7609
- fr = new wc(Fi, et, Oi, Vi, Wt, kt.vertical, li, Ei, Si, Mi), wi && (ui = new wc(Fi, et, Oi, Vi, Wt, wi, Ti, pr, Si, Mi));
7609
+ mr = new wc(Fi, et, Oi, Vi, Wt, kt.vertical, ci, Ei, Si, Mi), wi && (ui = new wc(Fi, et, Oi, Vi, Wt, wi, Ti, fr, Si, Mi));
7610
7610
  }
7611
- if (ai) {
7612
- const Mi = Ht.layout.get("icon-rotate").evaluate(zt, {}), mr = Ht.layout.get("icon-text-fit") !== "none", Us = Dd(ai, Mi, tr, mr), jr = wi ? Dd(wi, Mi, tr, mr) : void 0;
7613
- Er = new wc(Fi, et, Oi, Vi, Wt, ai, Ti, pr, !1, Mi), Mn = 4 * Us.length;
7611
+ if (li) {
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
+ Er = new wc(Fi, et, Oi, Vi, Wt, li, Ti, fr, !1, Mi), Mn = 4 * Us.length;
7614
7614
  const js = $e.iconSizeData;
7615
7615
  let dn = null;
7616
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(kt.horizontal);
7619
7619
  for (const Mi of Gd) {
7620
- const mr = kt.horizontal[Mi];
7620
+ const gr = kt.horizontal[Mi];
7621
7621
  if (!un) {
7622
- Zd = Lo(mr.text);
7622
+ Zd = Lo(gr.text);
7623
7623
  const jr = Ht.layout.get("text-rotate").evaluate(zt, {}, Gt);
7624
- un = new wc(Fi, et, Oi, Vi, Wt, mr, li, Ei, Si, jr);
7624
+ un = new wc(Fi, et, Oi, Vi, Wt, gr, ci, Ei, Si, jr);
7625
7625
  }
7626
- const Us = mr.positionedLines.length === 1;
7627
- if (jd += Od($e, et, mr, Cr, Ht, Si, zt, Ni, hn, kt.vertical ? S.ai.horizontal : S.ai.horizontalOnly, Us ? Gd : [Mi], zn, jh, Ot, Gt), Us) break;
7626
+ const Us = gr.positionedLines.length === 1;
7627
+ if (jd += Od($e, et, gr, Cr, Ht, Si, zt, Ni, hn, kt.vertical ? S.ai.horizontal : S.ai.horizontalOnly, Us ? Gd : [Mi], zn, jh, Ot, Gt), Us) break;
7628
7628
  }
7629
7629
  kt.vertical && (qd += Od($e, et, kt.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 = fr ? fr.boxStartIndex : $e.collisionBoxArray.length, Rm = fr ? fr.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;
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
- const Tc = (Mi, mr) => Mi && Mi.circleDiameter ? Math.max(Mi.circleDiameter, mr) : mr;
7633
- Ur = Tc(un, Ur), Ur = Tc(fr, Ur), Ur = Tc(Er, Ur), Ur = Tc(ui, Ur);
7632
+ const Tc = (Mi, gr) => Mi && Mi.circleDiameter ? Math.max(Mi.circleDiameter, gr) : gr;
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
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
- const Nm = Fd(Ht, zt, Gt), [$m, Um] = function(Mi, mr) {
7637
- const Us = Mi.length, jr = mr == null ? void 0 : mr.values;
7636
+ const Nm = Fd(Ht, zt, Gt), [$m, Um] = function(Mi, gr) {
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) {
7639
7639
  const dn = jr[js + 1];
7640
7640
  Mi.emplaceBack(S.ar[jr[js]], dn[0], dn[1]);
7641
7641
  }
7642
7642
  return [Us, Mi.length];
7643
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, li, Ur, $m, Um);
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)) {
@@ -7667,25 +7667,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7667
7667
  if (!Be.rect) continue;
7668
7668
  const ge = Be.rect || {};
7669
7669
  let Ze = ed + 1, $e = !0, et = 1, At = 0;
7670
- const kt = (ve || Ee) && Be.vertical, ai = Be.metrics.advance * Be.scale / 2;
7670
+ const kt = (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
7673
  $e = xt.sdf, et = xt.pixelRatio, Ze = Wi / et;
7674
7674
  }
7675
- const Cr = ve ? [Be.x + ai, Be.y] : [0, 0];
7676
- let wi = ve ? [0, 0] : [Be.x + ai + ie[0], Be.y + ie[1] - At], Ht = [0, 0];
7675
+ const Cr = ve ? [Be.x + li, Be.y] : [0, 0];
7676
+ let wi = ve ? [0, 0] : [Be.x + li + ie[0], Be.y + ie[1] - At], Ht = [0, 0];
7677
7677
  kt && (Ht = wi, wi = [0, 0]);
7678
- const Fi = Be.metrics.isDoubleResolution ? 2 : 1, Oi = (Be.metrics.left - Ze) * Be.scale - ai + wi[0], Vi = (-Be.metrics.top - Ze) * Be.scale + wi[1], Wt = Oi + ge.w / Fi * Be.scale / et, li = Vi + ge.h / Fi * Be.scale / et, Ei = new oe(Oi, Vi), Si = new oe(Wt, Vi), Ni = new oe(Oi, li), Ti = new oe(Wt, li);
7678
+ const Fi = Be.metrics.isDoubleResolution ? 2 : 1, Oi = (Be.metrics.left - Ze) * Be.scale - li + wi[0], Vi = (-Be.metrics.top - Ze) * Be.scale + wi[1], Wt = Oi + ge.w / Fi * Be.scale / et, ci = Vi + ge.h / Fi * Be.scale / et, Ei = new oe(Oi, Vi), Si = new oe(Wt, Vi), Ni = new oe(Oi, ci), Ti = new oe(Wt, ci);
7679
7679
  if (kt) {
7680
- const xt = new oe(-ai, ai - al), zt = -Math.PI / 2, Ot = si / 2 - ai, tr = new oe(5 - al - Ot, -(Be.imageName ? Ot : 0)), Gt = new oe(...Ht);
7681
- Ei._rotateAround(zt, xt)._add(tr)._add(Gt), Si._rotateAround(zt, xt)._add(tr)._add(Gt), Ni._rotateAround(zt, xt)._add(tr)._add(Gt), Ti._rotateAround(zt, xt)._add(tr)._add(Gt);
7680
+ const xt = new oe(-li, li - al), zt = -Math.PI / 2, Ot = si / 2 - li, er = new oe(5 - al - Ot, -(Be.imageName ? Ot : 0)), Gt = new oe(...Ht);
7681
+ Ei._rotateAround(zt, xt)._add(er)._add(Gt), Si._rotateAround(zt, xt)._add(er)._add(Gt), Ni._rotateAround(zt, xt)._add(er)._add(Gt), Ti._rotateAround(zt, xt)._add(er)._add(Gt);
7682
7682
  }
7683
7683
  if (Ae) {
7684
7684
  const xt = Math.sin(Ae), zt = Math.cos(Ae), Ot = [zt, -xt, xt, zt];
7685
7685
  Ei._matMult(Ot), Si._matMult(Ot), Ni._matMult(Ot), Ti._matMult(Ot);
7686
7686
  }
7687
- const pr = 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: $e, pixelOffsetTL: pr, pixelOffsetBR: Xi, minFontScaleX: 0, minFontScaleY: 0 });
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: $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;
@@ -7903,7 +7903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7903
7903
  l in i && (r[l] = i[l]);
7904
7904
  }
7905
7905
  return r;
7906
- }, S.N = rs, S.O = _d, S.P = oe, S.Q = yd, S.R = ur, S.S = dr, 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) {
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
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], P = 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
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(P - je) <= Bi * Math.max(1, Math.abs(P), 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) => {
@@ -7969,8 +7969,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7969
7969
  for (let ie = 0, ue = 0; ie < v.length; ie++) O = v[ie], Object.prototype.hasOwnProperty.call(E, O) ? ue++ : (qt(_, { command: "removeLayer", args: [O] }), D.splice(D.indexOf(O, ue), 1));
7970
7970
  for (let ie = 0, ue = 0; ie < T.length; ie++) O = T[T.length - 1 - ie], D[D.length - 1 - ie] !== O && (Object.prototype.hasOwnProperty.call(P, O) ? (qt(_, { command: "removeLayer", args: [O] }), D.splice(D.lastIndexOf(O, D.length - ue), 1)) : ue++, se = D[D.length - ie], qt(_, { command: "addLayer", args: [E[O], se] }), D.splice(D.length - ie, 0, O), B[O] = !0);
7971
7971
  for (let ie = 0; ie < T.length; ie++) if (O = T[ie], q = P[O], X = E[O], !B[O] && !vt(q, X)) if (vt(q.source, X.source) && vt(q["source-layer"], X["source-layer"]) && vt(q.type, X.type)) {
7972
- for (Y in Yi(q.layout, X.layout, _, O, null, "setLayoutProperty"), Yi(q.paint, X.paint, _, O, null, "setPaintProperty"), vt(q.filter, X.filter) || qt(_, { command: "setFilter", args: [O, X.filter] }), vt(q.minzoom, X.minzoom) && vt(q.maxzoom, X.maxzoom) || qt(_, { command: "setLayerZoomRange", args: [O, X.minzoom, X.maxzoom] }), q) Object.prototype.hasOwnProperty.call(q, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Yi(q[Y], X[Y], _, O, Y.slice(6), "setPaintProperty") : vt(q[Y], X[Y]) || qt(_, { command: "setLayerProperty", args: [O, Y, X[Y]] }));
7973
- for (Y in X) Object.prototype.hasOwnProperty.call(X, Y) && !Object.prototype.hasOwnProperty.call(q, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Yi(q[Y], X[Y], _, O, Y.slice(6), "setPaintProperty") : vt(q[Y], X[Y]) || qt(_, { command: "setLayerProperty", args: [O, Y, X[Y]] }));
7972
+ for (Y in Ki(q.layout, X.layout, _, O, null, "setLayoutProperty"), Ki(q.paint, X.paint, _, O, null, "setPaintProperty"), vt(q.filter, X.filter) || qt(_, { command: "setFilter", args: [O, X.filter] }), vt(q.minzoom, X.minzoom) && vt(q.maxzoom, X.maxzoom) || qt(_, { command: "setLayerZoomRange", args: [O, X.minzoom, X.maxzoom] }), q) Object.prototype.hasOwnProperty.call(q, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Ki(q[Y], X[Y], _, O, Y.slice(6), "setPaintProperty") : vt(q[Y], X[Y]) || qt(_, { command: "setLayerProperty", args: [O, Y, X[Y]] }));
7973
+ for (Y in X) Object.prototype.hasOwnProperty.call(X, Y) && !Object.prototype.hasOwnProperty.call(q, Y) && Y !== "layout" && Y !== "paint" && Y !== "filter" && Y !== "metadata" && Y !== "minzoom" && Y !== "maxzoom" && (Y.indexOf("paint.") === 0 ? Ki(q[Y], X[Y], _, O, Y.slice(6), "setPaintProperty") : vt(q[Y], X[Y]) || qt(_, { command: "setLayerProperty", args: [O, Y, X[Y]] }));
7974
7974
  } else qt(_, { command: "removeLayer", args: [O] }), se = D[D.lastIndexOf(O) + 1], qt(_, { command: "addLayer", args: [X, se] });
7975
7975
  }(d, e.layers, r);
7976
7976
  } catch (s) {
@@ -8031,7 +8031,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8031
8031
  }, S.aT = Xf, S.aU = class extends ze {
8032
8032
  }, S.aV = function(i) {
8033
8033
  return i <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(i) / Math.LN2));
8034
- }, S.aW = ku, S.aX = kn, S.aY = oi, S.aZ = class extends Ce {
8034
+ }, S.aW = ku, S.aX = kn, S.aY = ai, S.aZ = class extends Ce {
8035
8035
  }, S.a_ = function(i, e) {
8036
8036
  return i[0] === e[0] && i[1] === e[1] && i[2] === e[2] && i[3] === e[3] && i[4] === e[4] && i[5] === e[5] && i[6] === e[6] && i[7] === e[7] && i[8] === e[8] && i[9] === e[9] && i[10] === e[10] && i[11] === e[11] && i[12] === e[12] && i[13] === e[13] && i[14] === e[14] && i[15] === e[15];
8037
8037
  }, S.aa = Td, S.ab = function(i) {
@@ -8086,7 +8086,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8086
8086
  }
8087
8087
  }
8088
8088
  return i;
8089
- }, S.ay = Jl, S.az = nr, S.b = xr, S.b0 = function(i, e) {
8089
+ }, S.ay = Jl, S.az = sr, S.b = xr, S.b0 = function(i, e) {
8090
8090
  return i[0] = e[0], i[1] = e[1], i[2] = e[2], i[3] = e[3], i[4] = e[4], i[5] = e[5], i[6] = e[6], i[7] = e[7], i[8] = e[8], i[9] = e[9], i[10] = e[10], i[11] = e[11], i[12] = e[12], i[13] = e[13], i[14] = e[14], i[15] = e[15], i;
8091
8091
  }, S.b1 = function(i, e, r) {
8092
8092
  return i[0] = e[0] * r[0], i[1] = e[1] * r[1], i[2] = e[2] * r[2], i[3] = e[3] * r[3], i;
@@ -8099,7 +8099,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8099
8099
  var s = Math.sin(r), l = Math.cos(r), d = e[4], p = e[5], m = e[6], _ = e[7], v = e[8], T = e[9], P = e[10], E = e[11];
8100
8100
  return e !== i && (i[0] = e[0], i[1] = e[1], i[2] = e[2], i[3] = e[3], i[12] = e[12], i[13] = e[13], i[14] = e[14], i[15] = e[15]), i[4] = d * l + v * s, i[5] = p * l + T * s, i[6] = m * l + P * s, i[7] = _ * l + E * s, i[8] = v * l - d * s, i[9] = T * l - p * s, i[10] = P * l - m * s, i[11] = E * l - _ * s, i;
8101
8101
  }, S.b8 = He, S.b9 = Vt, S.bA = function(i) {
8102
- return i.message === rr;
8102
+ return i.message === nr;
8103
8103
  }, S.bB = Tn, S.bC = on, S.ba = function(i) {
8104
8104
  return i * Math.PI / 180;
8105
8105
  }, S.bb = function(i, e) {
@@ -8529,7 +8529,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8529
8529
  var xr = S.bx(gt.exports);
8530
8530
  const Ks = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (H) => H }, pn = Math.fround || (Lr = new Float32Array(1), (H) => (Lr[0] = +H, Lr[0]));
8531
8531
  var Lr;
8532
- const zi = 3, rr = 5, Dn = 6;
8532
+ const zi = 3, nr = 5, Dn = 6;
8533
8533
  class Wr {
8534
8534
  constructor(z) {
8535
8535
  this.options = Object.assign(Object.create(Ks), z), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
@@ -8543,7 +8543,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8543
8543
  for (let J = 0; J < z.length; J++) {
8544
8544
  const de = z[J];
8545
8545
  if (!de.geometry) continue;
8546
- const [ye, ce] = de.geometry.coordinates, Ie = pn($i(ye)), Ge = pn(nr(ce));
8546
+ const [ye, ce] = de.geometry.coordinates, Ie = pn($i(ye)), Ge = pn(sr(ce));
8547
8547
  te.push(Ie, Ge, 1 / 0, J, -1, 1), this.options.reduce && te.push(0);
8548
8548
  }
8549
8549
  let re = this.trees[Z + 1] = this._createTree(te);
@@ -8564,10 +8564,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8564
8564
  const ce = this.getClusters([V, Z, 180, te], M), Ie = this.getClusters([-180, Z, Q, te], M);
8565
8565
  return ce.concat(Ie);
8566
8566
  }
8567
- const re = this.trees[this._limitZoom(M)], J = re.range($i(V), nr(te), $i(Q), nr(Z)), de = re.data, ye = [];
8567
+ const re = this.trees[this._limitZoom(M)], J = re.range($i(V), sr(te), $i(Q), sr(Z)), de = re.data, ye = [];
8568
8568
  for (const ce of J) {
8569
8569
  const Ie = this.stride * ce;
8570
- ye.push(de[Ie + rr] > 1 ? vr(de, Ie, this.clusterProps) : this.points[de[Ie + zi]]);
8570
+ ye.push(de[Ie + nr] > 1 ? vr(de, Ie, this.clusterProps) : this.points[de[Ie + zi]]);
8571
8571
  }
8572
8572
  return ye;
8573
8573
  }
@@ -8579,7 +8579,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8579
8579
  const re = this.options.radius / (this.options.extent * Math.pow(2, V - 1)), J = Q.within(te[M * this.stride], te[M * this.stride + 1], re), de = [];
8580
8580
  for (const ye of J) {
8581
8581
  const ce = ye * this.stride;
8582
- te[ce + 4] === z && de.push(te[ce + rr] > 1 ? vr(te, ce, this.clusterProps) : this.points[te[ce + zi]]);
8582
+ te[ce + 4] === z && de.push(te[ce + nr] > 1 ? vr(te, ce, this.clusterProps) : this.points[te[ce + zi]]);
8583
8583
  }
8584
8584
  if (de.length === 0) throw new Error(Z);
8585
8585
  return de;
@@ -8616,14 +8616,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8616
8616
  }
8617
8617
  _addTileFeatures(z, M, V, Z, Q, te) {
8618
8618
  for (const re of z) {
8619
- const J = re * this.stride, de = M[J + rr] > 1;
8619
+ const J = re * this.stride, de = M[J + nr] > 1;
8620
8620
  let ye, ce, Ie;
8621
8621
  if (de) ye = Rn(M, J, this.clusterProps), ce = M[J], Ie = M[J + 1];
8622
8622
  else {
8623
8623
  const st = this.points[M[J + zi]];
8624
8624
  ye = st.properties;
8625
8625
  const [_t, nt] = st.geometry.coordinates;
8626
- ce = $i(_t), Ie = nr(nt);
8626
+ ce = $i(_t), Ie = sr(nt);
8627
8627
  }
8628
8628
  const Ge = { type: 1, geometry: [[Math.round(this.options.extent * (ce * Q - V)), Math.round(this.options.extent * (Ie * Q - Z))]], tags: ye };
8629
8629
  let We;
@@ -8638,11 +8638,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8638
8638
  for (let ce = 0; ce < J.length; ce += ye) {
8639
8639
  if (J[ce + 2] <= M) continue;
8640
8640
  J[ce + 2] = M;
8641
- const Ie = J[ce], Ge = J[ce + 1], We = z.within(J[ce], J[ce + 1], re), st = J[ce + rr];
8641
+ const Ie = J[ce], Ge = J[ce + 1], We = z.within(J[ce], J[ce + 1], re), st = J[ce + nr];
8642
8642
  let _t = st;
8643
8643
  for (const nt of We) {
8644
8644
  const Ct = nt * ye;
8645
- J[Ct + 2] > M && (_t += J[Ct + rr]);
8645
+ J[Ct + 2] > M && (_t += J[Ct + nr]);
8646
8646
  }
8647
8647
  if (_t > st && _t >= te) {
8648
8648
  let nt, Ct = Ie * st, Zt = Ge * st, Qt = -1;
@@ -8651,7 +8651,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8651
8651
  const Nt = wt * ye;
8652
8652
  if (J[Nt + 2] <= M) continue;
8653
8653
  J[Nt + 2] = M;
8654
- const ri = J[Nt + rr];
8654
+ const ri = J[Nt + nr];
8655
8655
  Ct += J[Nt] * ri, Zt += J[Nt + 1] * ri, J[Nt + 4] = ct, Q && (nt || (nt = this._map(J, ce, !0), Qt = this.clusterProps.length, this.clusterProps.push(nt)), Q(nt, this._map(J, Nt)));
8656
8656
  }
8657
8657
  J[ce + 4] = ct, de.push(Ct / _t, Zt / _t, 1 / 0, ct, -1, _t), Q && de.push(Qt);
@@ -8675,7 +8675,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8675
8675
  return (z - this.points.length) % 32;
8676
8676
  }
8677
8677
  _map(z, M, V) {
8678
- if (z[M + rr] > 1) {
8678
+ if (z[M + nr] > 1) {
8679
8679
  const te = this.clusterProps[z[M + Dn]];
8680
8680
  return V ? Object.assign({}, te) : te;
8681
8681
  }
@@ -8688,13 +8688,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8688
8688
  var V;
8689
8689
  }
8690
8690
  function Rn(H, z, M) {
8691
- const V = H[z + rr], Z = V >= 1e4 ? `${Math.round(V / 1e3)}k` : V >= 1e3 ? Math.round(V / 100) / 10 + "k" : V, Q = H[z + Dn], te = Q === -1 ? {} : Object.assign({}, M[Q]);
8691
+ const V = H[z + nr], Z = V >= 1e4 ? `${Math.round(V / 1e3)}k` : V >= 1e3 ? Math.round(V / 100) / 10 + "k" : V, Q = H[z + Dn], te = Q === -1 ? {} : Object.assign({}, M[Q]);
8692
8692
  return Object.assign(te, { cluster: !0, cluster_id: H[z + zi], point_count: V, point_count_abbreviated: Z });
8693
8693
  }
8694
8694
  function $i(H) {
8695
8695
  return H / 360 + 0.5;
8696
8696
  }
8697
- function nr(H) {
8697
+ function sr(H) {
8698
8698
  const z = Math.sin(H * Math.PI / 180), M = 0.5 - 0.25 * Math.log((1 + z) / (1 - z)) / Math.PI;
8699
8699
  return M < 0 ? 0 : M > 1 ? 1 : M;
8700
8700
  }
@@ -8827,7 +8827,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8827
8827
  function us(H, z, M, V, Z) {
8828
8828
  for (let Q = 0; Q < H.length; Q += 3) {
8829
8829
  const te = H[Q + Z];
8830
- te >= M && te <= V && Yi(z, H[Q], H[Q + 1], H[Q + 2]);
8830
+ te >= M && te <= V && Ki(z, H[Q], H[Q + 1], H[Q + 2]);
8831
8831
  }
8832
8832
  }
8833
8833
  function Kr(H, z, M, V, Z, Q, te) {
@@ -8837,11 +8837,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8837
8837
  for (let _t = 0; _t < H.length - 3; _t += 3) {
8838
8838
  const nt = H[_t], Ct = H[_t + 1], Zt = H[_t + 2], Qt = H[_t + 3], ct = H[_t + 4], wt = Z === 0 ? nt : Ct, Nt = Z === 0 ? Qt : ct;
8839
8839
  let ri = !1;
8840
- te && (de = Math.sqrt(Math.pow(nt - Qt, 2) + Math.pow(Ct - ct, 2))), wt < M ? Nt > M && (ye = J(re, nt, Ct, Qt, ct, M), te && (re.start = ce + de * ye)) : wt > V ? Nt < V && (ye = J(re, nt, Ct, Qt, ct, V), te && (re.start = ce + de * ye)) : Yi(re, nt, Ct, Zt), Nt < M && wt >= M && (ye = J(re, nt, Ct, Qt, ct, M), ri = !0), Nt > V && wt <= V && (ye = J(re, nt, Ct, Qt, ct, V), ri = !0), !Q && ri && (te && (re.end = ce + de * ye), z.push(re), re = Rr(H)), te && (ce += de);
8840
+ te && (de = Math.sqrt(Math.pow(nt - Qt, 2) + Math.pow(Ct - ct, 2))), wt < M ? Nt > M && (ye = J(re, nt, Ct, Qt, ct, M), te && (re.start = ce + de * ye)) : wt > V ? Nt < V && (ye = J(re, nt, Ct, Qt, ct, V), te && (re.start = ce + de * ye)) : Ki(re, nt, Ct, Zt), Nt < M && wt >= M && (ye = J(re, nt, Ct, Qt, ct, M), ri = !0), Nt > V && wt <= V && (ye = J(re, nt, Ct, Qt, ct, V), ri = !0), !Q && ri && (te && (re.end = ce + de * ye), z.push(re), re = Rr(H)), te && (ce += de);
8841
8841
  }
8842
8842
  let Ie = H.length - 3;
8843
8843
  const Ge = H[Ie], We = H[Ie + 1], st = Z === 0 ? Ge : We;
8844
- st >= M && st <= V && Yi(re, Ge, We, H[Ie + 2]), Ie = re.length - 3, Q && Ie >= 3 && (re[Ie] !== re[0] || re[Ie + 1] !== re[1]) && Yi(re, re[0], re[1], re[2]), re.length && z.push(re);
8844
+ st >= M && st <= V && Ki(re, Ge, We, H[Ie + 2]), Ie = re.length - 3, Q && Ie >= 3 && (re[Ie] !== re[0] || re[Ie + 1] !== re[1]) && Ki(re, re[0], re[1], re[2]), re.length && z.push(re);
8845
8845
  }
8846
8846
  function Rr(H) {
8847
8847
  const z = [];
@@ -8850,16 +8850,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8850
8850
  function Fn(H, z, M, V, Z, Q) {
8851
8851
  for (const te of H) Kr(te, z, M, V, Z, Q, !1);
8852
8852
  }
8853
- function Yi(H, z, M, V) {
8853
+ function Ki(H, z, M, V) {
8854
8854
  H.push(z, M, V);
8855
8855
  }
8856
8856
  function ds(H, z, M, V, Z, Q) {
8857
8857
  const te = (Q - z) / (V - z);
8858
- return Yi(H, Q, M + (Z - M) * te, 1), te;
8858
+ return Ki(H, Q, M + (Z - M) * te, 1), te;
8859
8859
  }
8860
8860
  function ps(H, z, M, V, Z, Q) {
8861
8861
  const te = (Q - M) / (Z - M);
8862
- return Yi(H, z + (V - z) * te, Q, 1), te;
8862
+ return Ki(H, z + (V - z) * te, Q, 1), te;
8863
8863
  }
8864
8864
  function Te(H, z) {
8865
8865
  const M = [];
@@ -8970,7 +8970,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8970
8970
  const J = [z, M, V, Z], de = this.options, ye = de.debug;
8971
8971
  for (; J.length; ) {
8972
8972
  Z = J.pop(), V = J.pop(), M = J.pop(), z = J.pop();
8973
- const ce = 1 << M, Ie = sr(M, V, Z);
8973
+ const ce = 1 << M, Ie = or(M, V, Z);
8974
8974
  let Ge = this.tiles[Ie];
8975
8975
  if (!Ge && (ye > 1 && console.time("creation"), Ge = this.tiles[Ie] = Yr(z, M, V, Z, de), this.tileCoords.push({ z: M, x: V, y: Z }), ye)) {
8976
8976
  ye > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", M, V, Z, Ge.numFeatures, Ge.numPoints, Ge.numSimplified), console.timeEnd("creation"));
@@ -8997,15 +8997,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8997
8997
  z = +z, M = +M, V = +V;
8998
8998
  const Z = this.options, { extent: Q, debug: te } = Z;
8999
8999
  if (z < 0 || z > 24) return null;
9000
- const re = 1 << z, J = sr(z, M = M + re & re - 1, V);
9000
+ const re = 1 << z, J = or(z, M = M + re & re - 1, V);
9001
9001
  if (this.tiles[J]) return ki(this.tiles[J], Q);
9002
9002
  te > 1 && console.log("drilling down to z%d-%d-%d", z, M, V);
9003
9003
  let de, ye = z, ce = M, Ie = V;
9004
- for (; !de && ye > 0; ) ye--, ce >>= 1, Ie >>= 1, de = this.tiles[sr(ye, ce, Ie)];
9004
+ for (; !de && ye > 0; ) ye--, ce >>= 1, Ie >>= 1, de = this.tiles[or(ye, ce, Ie)];
9005
9005
  return de && de.source ? (te > 1 && (console.log("found parent tile z%d-%d-%d", ye, ce, Ie), console.time("drilling down")), this.splitTile(de.source, ye, ce, Ie, z, M, V), te > 1 && console.timeEnd("drilling down"), this.tiles[J] ? ki(this.tiles[J], Q) : null) : null;
9006
9006
  }
9007
9007
  }
9008
- function sr(H, z, M) {
9008
+ function or(H, z, M) {
9009
9009
  return 32 * ((1 << H) * M + z) + H;
9010
9010
  }
9011
9011
  function rt(H, z) {
@@ -9752,7 +9752,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9752
9752
  }
9753
9753
  }
9754
9754
  const zi = new c.q({ "sky-color": new c.D(c.v.sky["sky-color"]), "horizon-color": new c.D(c.v.sky["horizon-color"]), "fog-color": new c.D(c.v.sky["fog-color"]), "fog-ground-blend": new c.D(c.v.sky["fog-ground-blend"]), "horizon-fog-blend": new c.D(c.v.sky["horizon-fog-blend"]), "sky-horizon-blend": new c.D(c.v.sky["sky-horizon-blend"]), "atmosphere-blend": new c.D(c.v.sky["atmosphere-blend"]) });
9755
- class rr extends c.E {
9755
+ class nr extends c.E {
9756
9756
  constructor(t) {
9757
9757
  super(), this._transitionable = new c.T(zi), this.setSky(t), this._transitioning = this._transitionable.untransitioned();
9758
9758
  }
@@ -9873,7 +9873,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9873
9873
  }
9874
9874
  }
9875
9875
  const Rn = Math.floor(oe.hardwareConcurrency / 2);
9876
- let $i, nr;
9876
+ let $i, sr;
9877
9877
  function fn() {
9878
9878
  return $i || ($i = new vr()), $i;
9879
9879
  }
@@ -9906,7 +9906,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9906
9906
  }
9907
9907
  }
9908
9908
  function cs() {
9909
- return nr || (nr = new mn(fn(), c.G), nr.registerMessageHandler("GR", (u, t, n) => c.m(t, n))), nr;
9909
+ return sr || (sr = new mn(fn(), c.G), sr.registerMessageHandler("GR", (u, t, n) => c.m(t, n))), sr;
9910
9910
  }
9911
9911
  function Dr(u, t) {
9912
9912
  const n = c.H();
@@ -10460,7 +10460,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10460
10460
  return this.video && !this.video.paused;
10461
10461
  }
10462
10462
  }
10463
- class Yi extends Rr {
10463
+ class Ki extends Rr {
10464
10464
  constructor(t, n, o, a) {
10465
10465
  super(t, n, o, a), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some((h) => !Array.isArray(h) || h.length !== 2 || h.some((g) => typeof g != "number")) || this.fire(new c.j(new c.a2(`sources.${t}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new c.j(new c.a2(`sources.${t}`, null, 'missing required property "coordinates"'))), n.animate && typeof n.animate != "boolean" && this.fire(new c.j(new c.a2(`sources.${t}`, null, 'optional "animate" property must be a boolean value'))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof HTMLCanvasElement || this.fire(new c.j(new c.a2(`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 c.j(new c.a2(`sources.${t}`, null, 'missing required property "canvas"'))), this.options = n, this.animate = n.animate === void 0 || n.animate;
10466
10466
  }
@@ -10520,7 +10520,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10520
10520
  case "video":
10521
10521
  return Fn;
10522
10522
  case "canvas":
10523
- return Yi;
10523
+ return Ki;
10524
10524
  }
10525
10525
  return ds[u];
10526
10526
  }, Te = "RTLPluginLoaded";
@@ -11044,7 +11044,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11044
11044
  const y = o.length === 0 && !this._updated && this._didEmitContent;
11045
11045
  this._updated = !0, y && this.fire(new c.k("data", { sourceDataType: "idle", dataType: "source", sourceId: this.id }));
11046
11046
  const b = this._updateRetainedTiles(o, a);
11047
- sr(this._source.type) && this._updateCoveredAndRetainedTiles(b, h, g, a, o, n);
11047
+ or(this._source.type) && this._updateCoveredAndRetainedTiles(b, h, g, a, o, n);
11048
11048
  for (const k in b) this._tiles[k].clearFadeHold();
11049
11049
  const w = c.ac(this._tiles, b);
11050
11050
  for (const k of w) {
@@ -11165,7 +11165,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11165
11165
  }
11166
11166
  hasTransition() {
11167
11167
  if (this._source.hasTransition()) return !0;
11168
- if (sr(this._source.type)) {
11168
+ if (or(this._source.type)) {
11169
11169
  const t = oe.now();
11170
11170
  for (const n in this._tiles) if (this._tiles[n].fadeEndTime >= t) return !0;
11171
11171
  }
@@ -11193,7 +11193,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11193
11193
  const n = Math.abs(2 * u.wrap) - +(u.wrap < 0), o = Math.abs(2 * t.wrap) - +(t.wrap < 0);
11194
11194
  return u.overscaledZ - t.overscaledZ || o - n || t.canonical.y - u.canonical.y || t.canonical.x - u.canonical.x;
11195
11195
  }
11196
- function sr(u) {
11196
+ function or(u) {
11197
11197
  return u === "raster" || u === "image" || u === "video";
11198
11198
  }
11199
11199
  Ye.maxOverzooming = 10, Ye.maxUnderzooming = 3;
@@ -11513,10 +11513,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11513
11513
  let dt = 0;
11514
11514
  dt = Ne.length <= 0.5 * De ? 1 : Math.ceil(Ne.paddedLength / Qe) + 1;
11515
11515
  for (let Bt = 0; Bt < dt; Bt++) {
11516
- const gi = Bt / Math.max(dt - 1, 1), lr = Ne.lerp(gi), Ft = lr.x + st, Ri = lr.y + st;
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
- const Ci = Ft - De, _i = Ri - De, yi = Ft + De, cr = Ri + De;
11519
- if (ze = ze && this.isOffscreen(Ci, _i, yi, cr), be = be || this.isInsideGrid(Ci, _i, yi, cr), t !== "always" && this.grid.hitTestCircle(Ft, Ri, De, t, R) && (_e = !0, !k)) return { circles: [], offscreen: !1, collisionDetected: _e };
11518
+ const Ci = Ft - De, _i = Ri - De, yi = Ft + De, hr = Ri + De;
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, !k)) return { circles: [], offscreen: !1, collisionDetected: _e };
11520
11520
  }
11521
11521
  }
11522
11522
  }
@@ -11687,28 +11687,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11687
11687
  var Rt, at;
11688
11688
  if (n[Pe.crossTileID]) return;
11689
11689
  if (F) return void (this.placements[Pe.crossTileID] = new Qt(!1, !1, !1));
11690
- let dt = !1, Bt = !1, gi = !0, lr = null, Ft = { box: null, placeable: !1, offscreen: null }, Ri = { box: null, placeable: !1, offscreen: null }, Ci = null, _i = null, yi = null, cr = 0, kn = 0, Co = 0;
11691
- Ce.textFeatureIndex ? cr = Ce.textFeatureIndex : Pe.useRuntimeCollisionCircles && (cr = Pe.featureIndex), Ce.verticalTextFeatureIndex && (kn = Ce.verticalTextFeatureIndex);
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, kn = 0, Co = 0;
11691
+ Ce.textFeatureIndex ? hr = Ce.textFeatureIndex : Pe.useRuntimeCollisionCircles && (hr = Pe.featureIndex), Ce.verticalTextFeatureIndex && (kn = Ce.verticalTextFeatureIndex);
11692
11692
  const Xn = Ce.textBox;
11693
11693
  if (Xn) {
11694
11694
  const hi = (xi) => {
11695
11695
  let vi = c.ai.horizontal;
11696
11696
  if (a.allowVerticalPlacement && !xi && this.prevPlacement) {
11697
- const oi = this.prevPlacement.placedOrientations[Pe.crossTileID];
11698
- oi && (this.placedOrientations[Pe.crossTileID] = oi, vi = oi, this.markUsedOrientation(a, vi, Pe));
11697
+ const ai = this.prevPlacement.placedOrientations[Pe.crossTileID];
11698
+ ai && (this.placedOrientations[Pe.crossTileID] = ai, vi = ai, this.markUsedOrientation(a, vi, Pe));
11699
11699
  }
11700
11700
  return vi;
11701
- }, hr = (xi, vi) => {
11701
+ }, ur = (xi, vi) => {
11702
11702
  if (a.allowVerticalPlacement && Pe.numVerticalGlyphVertices > 0 && Ce.verticalTextBox) {
11703
- for (const oi of a.writingModes) if (oi === c.ai.vertical ? (Ft = vi(), Ri = Ft) : Ft = xi(), Ft && Ft.placeable) break;
11703
+ for (const ai of a.writingModes) if (ai === c.ai.vertical ? (Ft = vi(), Ri = Ft) : Ft = xi(), Ft && Ft.placeable) break;
11704
11704
  } else Ft = xi();
11705
11705
  }, an = Pe.textAnchorOffsetStartIndex, Jn = Pe.textAnchorOffsetEndIndex;
11706
11706
  if (Jn === an) {
11707
- const xi = (vi, oi) => {
11707
+ const xi = (vi, ai) => {
11708
11708
  const Ut = this.collisionIndex.placeCollisionBox(vi, $, R, b, w, be, _e, g, j.predicate, Ne);
11709
- return Ut && Ut.placeable && (this.markUsedOrientation(a, oi, Pe), this.placedOrientations[Pe.crossTileID] = oi), Ut;
11709
+ return Ut && Ut.placeable && (this.markUsedOrientation(a, ai, Pe), this.placedOrientations[Pe.crossTileID] = ai), Ut;
11710
11710
  };
11711
- hr(() => xi(Xn, c.ai.horizontal), () => {
11711
+ ur(() => xi(Xn, c.ai.horizontal), () => {
11712
11712
  const vi = Ce.verticalTextBox;
11713
11713
  return a.allowVerticalPlacement && Pe.numVerticalGlyphVertices > 0 && vi ? xi(vi, c.ai.vertical) : { box: null, offscreen: null };
11714
11714
  }), hi(Ft && Ft.placeable);
@@ -11723,35 +11723,35 @@ 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, Pe, a, Ha, g, y, zo, Ne);
11726
- if (Yn && (ln = Yn.placedGlyphBoxes, ln && ln.placeable)) return dt = !0, lr = 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
  }
11730
11730
  return o && !ln && (ln = { box: this.collisionIndex.placeCollisionBox(Xn, "always", R, b, w, be, _e, g, j.predicate, Ne, new c.P(0, 0)).box, offscreen: !1, placeable: !1 }), ln;
11731
11731
  };
11732
- hr(() => vi(Xn, Ce.iconBox, c.ai.horizontal), () => {
11732
+ ur(() => vi(Xn, Ce.iconBox, c.ai.horizontal), () => {
11733
11733
  const Ut = Ce.verticalTextBox;
11734
11734
  return a.allowVerticalPlacement && (!Ft || !Ft.placeable) && Pe.numVerticalGlyphVertices > 0 && Ut ? vi(Ut, Ce.verticalIconBox, c.ai.vertical) : { box: null, occluded: !0, offscreen: null };
11735
11735
  }), Ft && (dt = Ft.placeable, gi = Ft.offscreen);
11736
- const oi = hi(Ft && Ft.placeable);
11736
+ const ai = hi(Ft && Ft.placeable);
11737
11737
  if (!dt && this.prevPlacement) {
11738
11738
  const Ut = this.prevPlacement.variableOffsets[Pe.crossTileID];
11739
- Ut && (this.variableOffsets[Pe.crossTileID] = Ut, this.markUsedJustification(a, Ut.anchor, Pe, oi));
11739
+ Ut && (this.variableOffsets[Pe.crossTileID] = Ut, this.markUsedJustification(a, Ut.anchor, Pe, ai));
11740
11740
  }
11741
11741
  }
11742
11742
  }
11743
11743
  if (Ci = Ft, dt = Ci && Ci.placeable, gi = Ci && Ci.offscreen, Pe.useRuntimeCollisionCircles) {
11744
- const hi = a.text.placedSymbolArray.get(Pe.centerJustifiedTextSymbolIndex), hr = c.aj(a.textSizeData, G, hi), an = h.get("text-padding");
11745
- _i = this.collisionIndex.placeCollisionCircles($, hi, a.lineVertexArray, a.glyphOffsetArray, hr, b, w, k, A, o, be, j.predicate, Pe.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;
11744
+ const hi = a.text.placedSymbolArray.get(Pe.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, k, A, o, be, j.predicate, Pe.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
- const hi = (hr) => this.collisionIndex.placeCollisionBox(hr, ne, R, b, w, be, _e, y, j.predicate, Ne, ze && lr ? lr : void 0);
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 || Pe.numHorizontalGlyphVertices === 0 && Pe.numVerticalGlyphVertices === 0, Eo = K || Pe.numIconVertices === 0;
11752
11752
  An || Eo ? Eo ? An || (Bt = Bt && dt) : dt = Bt && dt : Bt = dt = Bt && dt;
11753
11753
  const Ga = Bt && yi.placeable;
11754
- if (dt && Ci.placeable && this.collisionIndex.insertCollisionBox(Ci.box, $, h.get("text-ignore-placement"), a.bucketInstanceId, Ri && Ri.placeable && kn ? kn : cr, 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, cr, j.ID), o && this.storeCollisionData(a.bucketInstanceId, Qe, Ce, Ci, yi, _i), Pe.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 && kn ? kn : 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), Pe.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
11756
  this.placements[Pe.crossTileID] = new Qt(dt || we, Bt || Se, gi || a.justReloaded), n[Pe.crossTileID] = !0;
11757
11757
  };
@@ -12073,7 +12073,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12073
12073
  return n;
12074
12074
  }
12075
12075
  }
12076
- class Qi {
12076
+ class Yi {
12077
12077
  constructor() {
12078
12078
  this.layerIndexes = {}, this.crossTileIDs = new Kt(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};
12079
12079
  }
@@ -12105,7 +12105,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12105
12105
  const a = this.sourceCaches[o].getSource().type;
12106
12106
  a !== "vector" && a !== "geojson" || this.sourceCaches[o].reload();
12107
12107
  }
12108
- }, this.map = t, this.dispatcher = new mn(fn(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", (o, a) => this.getGlyphs(o, a)), this.dispatcher.registerMessageHandler("GI", (o, a) => this.getImages(o, a)), this.imageManager = new di(), this.imageManager.setEventedParent(this), this.glyphManager = new xr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Dn(256, 512), this.crossTileSymbolIndex = new Qi(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new c.ay(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", c.az()), wr().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
12108
+ }, this.map = t, this.dispatcher = new mn(fn(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", (o, a) => this.getGlyphs(o, a)), this.dispatcher.registerMessageHandler("GI", (o, a) => this.getImages(o, a)), this.imageManager = new di(), this.imageManager.setEventedParent(this), this.glyphManager = new xr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Dn(256, 512), this.crossTileSymbolIndex = new Yi(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new c.ay(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", c.az()), wr().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
12109
12109
  if (o.dataType !== "source" || o.sourceDataType !== "metadata") return;
12110
12110
  const a = this.sourceCaches[o.sourceId];
12111
12111
  if (!a) return;
@@ -12142,7 +12142,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12142
12142
  if (!n.validate || !gs(this, c.x(h))) {
12143
12143
  this._loaded = !0, this.stylesheet = h;
12144
12144
  for (const g in h.sources) this.addSource(g, h.sources[g], { validate: !1 });
12145
- h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Lr(this.stylesheet.light), this.sky = new rr(this.stylesheet.sky), this.map.setTerrain((a = this.stylesheet.terrain) !== null && a !== void 0 ? a : null), this.fire(new c.k("data", { dataType: "style" })), this.fire(new c.k("style.load"));
12145
+ h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Lr(this.stylesheet.light), this.sky = new nr(this.stylesheet.sky), this.map.setTerrain((a = this.stylesheet.terrain) !== null && a !== void 0 ? a : null), this.fire(new c.k("data", { dataType: "style" })), this.fire(new c.k("style.load"));
12146
12146
  }
12147
12147
  }
12148
12148
  _createLayers() {
@@ -14048,26 +14048,26 @@ uniform ${k} ${A} u_${R};
14048
14048
  const tt = a ? Ne.text : Ne.icon;
14049
14049
  if (!tt || !tt.segments.get().length || !tt.hasVisibleVertices) continue;
14050
14050
  const Pe = 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), Pe), dt = c.ah(Qe, N.zoom), Bt = u.style.map.terrain && u.style.map.terrain.getTerrainData(we);
14051
- let gi, lr, Ft, Ri, Ci = [0, 0], _i = null;
14052
- if (a) lr = 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);
14051
+ let gi, cr, Ft, Ri, Ci = [0, 0], _i = null;
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 {
14054
14054
  const Ut = n.layout.get("icon-size").constantOr(0) !== 1 || Ne.iconsNeedLinear;
14055
- lr = Se.imageAtlasTexture, Ft = Ce || u.options.rotating || u.options.zooming || Ut || Rt ? F.LINEAR : F.NEAREST, gi = Se.imageAtlasTexture.size;
14055
+ cr = Se.imageAtlasTexture, Ft = Ce || u.options.rotating || u.options.zooming || Ut || Rt ? F.LINEAR : F.NEAREST, gi = Se.imageAtlasTexture.size;
14056
14056
  }
14057
- const yi = nt(Se, 1, u.transform.zoom), cr = ee ? we.posMatrix : fa, kn = Qr(cr, W, j, u.transform, yi), Co = Tr(cr, W, j, u.transform, yi), Xn = Tr(we.posMatrix, W, j, u.transform, yi), An = G.translatePosition(u.transform, Se, h, g), Eo = be && Ne.hasTextData(), Ga = n.layout.get("icon-text-fit") !== "none" && Eo && Ne.hasIconData();
14057
+ const yi = nt(Se, 1, u.transform.zoom), hr = ee ? we.posMatrix : fa, kn = Qr(hr, W, j, u.transform, yi), Co = Tr(hr, W, j, u.transform, yi), Xn = Tr(we.posMatrix, W, j, u.transform, yi), An = G.translatePosition(u.transform, Se, h, g), Eo = be && Ne.hasTextData(), Ga = n.layout.get("icon-text-fit") !== "none" && Eo && Ne.hasIconData();
14058
14058
  if (K) {
14059
14059
  const Ut = u.style.map.terrain ? (Ha, ni) => u.style.map.terrain.getElevation(we, Ha, ni) : null, Kn = n.layout.get("text-rotation-alignment") === "map";
14060
14060
  V(Ne, we.posMatrix, u, a, kn, Xn, W, w, Kn, G, we.toUnwrapped(), N.width, N.height, An, Ut);
14061
14061
  }
14062
- const hi = we.posMatrix, hr = a && be || Ga, an = K || hr ? fa : kn, Jn = Co, xi = Ce && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14062
+ const hi = we.posMatrix, ur = a && be || Ga, an = K || ur ? fa : kn, 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, dt, $, W, K, hr, u, hi, an, Jn, An, gi, Ci, De) : Il(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, a, gi, !0, De) : Tl(Qe.kind, dt, $, W, K, hr, u, hi, an, Jn, An, a, gi, De);
14065
- const oi = { program: at, buffers: tt, uniformValues: vi, atlasTexture: lr, atlasTextureIcon: _i, atlasInterpolation: Ft, atlasInterpolationIcon: Ri, isSDF: Ce, hasHalo: xi };
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
+ 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;
14068
14068
  const Ut = tt.segments.get();
14069
- for (const Kn of Ut) ze.push({ segments: new c.a0([Kn]), sortKey: Kn.sortKey, state: oi, terrainData: Bt });
14070
- } else ze.push({ segments: tt.segments, sortKey: 0, state: oi, terrainData: Bt });
14069
+ for (const Kn of Ut) ze.push({ segments: new c.a0([Kn]), sortKey: Kn.sortKey, state: ai, terrainData: Bt });
14070
+ } else ze.push({ segments: tt.segments, sortKey: 0, state: ai, terrainData: Bt });
14071
14071
  }
14072
14072
  le && ze.sort((we, Se) => we.sortKey - Se.sortKey);
14073
14073
  for (const we of ze) {
@@ -14207,7 +14207,7 @@ uniform ${k} ${A} u_${R};
14207
14207
  }
14208
14208
  class Ul {
14209
14209
  constructor(t, n) {
14210
- this.context = new da(t), this.transform = n, this._tileTextures = {}, this.terrainFacilitator = { dirty: !0, matrix: c.ao(new Float64Array(16)), renderTime: 0 }, this.setup(), this.numSublayers = Ye.maxUnderzooming + Ye.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.crossTileSymbolIndex = new Qi();
14210
+ this.context = new da(t), this.transform = n, this._tileTextures = {}, this.terrainFacilitator = { dirty: !0, matrix: c.ao(new Float64Array(16)), renderTime: 0 }, this.setup(), this.numSublayers = Ye.maxUnderzooming + Ye.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.crossTileSymbolIndex = new Yi();
14211
14211
  }
14212
14212
  resize(t, n, o) {
14213
14213
  if (this.width = Math.floor(t * o), this.height = Math.floor(n * o), this.pixelRatio = o, this.context.viewport.set([0, 0, this.width, this.height]), this.style) for (const a of this.style._order) this.style._layers[a].resize();
@@ -15908,7 +15908,7 @@ uniform ${k} ${A} u_${R};
15908
15908
  return this._active;
15909
15909
  }
15910
15910
  }
15911
- class er {
15911
+ class Qi {
15912
15912
  constructor(t, n, o) {
15913
15913
  this._el = t, this._mousePan = n, this._touchPan = o;
15914
15914
  }
@@ -15925,7 +15925,7 @@ uniform ${k} ${A} u_${R};
15925
15925
  return this._mousePan.isActive() || this._touchPan.isActive();
15926
15926
  }
15927
15927
  }
15928
- class or {
15928
+ class ar {
15929
15929
  constructor(t, n, o) {
15930
15930
  this._pitchWithRotate = t.pitchWithRotate, this._mouseRotate = n, this._mousePitch = o;
15931
15931
  }
@@ -15965,7 +15965,7 @@ uniform ${k} ${A} u_${R};
15965
15965
  this._rotationDisabled = !1, this._touchZoom.isEnabled() && this._touchRotate.enable();
15966
15966
  }
15967
15967
  }
15968
- class ar {
15968
+ class lr {
15969
15969
  constructor(t, n) {
15970
15970
  this._bypassKey = navigator.userAgent.indexOf("Mac") !== -1 ? "metaKey" : "ctrlKey", this._map = t, this._options = n, this._enabled = !1;
15971
15971
  }
@@ -16043,7 +16043,7 @@ uniform ${k} ${A} u_${R};
16043
16043
  this._add("mapEvent", new Io(n, t));
16044
16044
  const a = n.boxZoom = new Ia(n, t);
16045
16045
  this._add("boxZoom", a), t.interactive && t.boxZoom && a.enable();
16046
- const h = n.cooperativeGestures = new ar(n, t.cooperativeGestures);
16046
+ const h = n.cooperativeGestures = new lr(n, t.cooperativeGestures);
16047
16047
  this._add("cooperativeGestures", h), t.cooperativeGestures && h.enable();
16048
16048
  const g = new ql(n), y = new Ds(n);
16049
16049
  n.doubleClickZoom = new Fa(y, g), this._add("tapZoom", g), this._add("clickZoom", y), t.interactive && t.doubleClickZoom && n.doubleClickZoom.enable();
@@ -16052,12 +16052,12 @@ uniform ${k} ${A} u_${R};
16052
16052
  const w = n.touchPitch = new La(n);
16053
16053
  this._add("touchPitch", w), t.interactive && t.touchPitch && n.touchPitch.enable(t.touchPitch);
16054
16054
  const k = Aa(t), A = Pn(t);
16055
- n.dragRotate = new or(t, k, A), this._add("mouseRotate", k, ["mousePitch"]), this._add("mousePitch", A, ["mouseRotate"]), t.interactive && t.dragRotate && n.dragRotate.enable();
16055
+ n.dragRotate = new ar(t, k, A), this._add("mouseRotate", k, ["mousePitch"]), this._add("mousePitch", A, ["mouseRotate"]), t.interactive && t.dragRotate && n.dragRotate.enable();
16056
16056
  const R = (({ enable: K, clickTolerance: $ }) => {
16057
16057
  const ee = new Di({ checkCorrectEvent: (ne) => ae.mouseButton(ne) === 0 && !ne.ctrlKey });
16058
16058
  return new Dt({ clickTolerance: $, move: (ne, le) => ({ around: le, panDelta: le.sub(ne) }), activateOnStart: !0, moveStateManager: ee, enable: K, assignEvents: Es });
16059
16059
  })(t), F = new Ms(t, n);
16060
- n.dragPan = new er(o, R, F), this._add("mousePan", R), this._add("touchPan", F, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
16060
+ n.dragPan = new Qi(o, R, F), this._add("mousePan", R), this._add("touchPan", F, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
16061
16061
  const N = new za(), G = new Ea();
16062
16062
  n.touchZoomRotate = new Oa(o, G, N, b), this._add("touchRotate", N, ["touchPan", "touchZoom"]), this._add("touchZoom", G, ["touchPan", "touchRotate"]), t.interactive && t.touchZoomRotate && n.touchZoomRotate.enable(t.touchZoomRotate);
16063
16063
  const j = n.scrollZoom = new Ba(n, () => this._triggerRenderFrame());
@@ -17040,7 +17040,7 @@ uniform ${k} ${A} u_${R};
17040
17040
  return qe(new c.P(0, 0));
17041
17041
  }
17042
17042
  const Je = pe;
17043
- S.AJAXError = c.bg, S.Evented = c.E, S.LngLat = c.N, S.MercatorCoordinate = c.Z, S.Point = c.P, S.addProtocol = c.bh, S.config = c.a, S.removeProtocol = c.bi, S.AttributionControl = Gn, S.BoxZoomHandler = Ia, S.CanvasSource = Yi, S.CooperativeGesturesHandler = ar, S.DoubleClickZoomHandler = Fa, S.DragPanHandler = er, S.DragRotateHandler = or, S.EdgeInsets = vo, S.FullscreenControl = class extends c.E {
17043
+ S.AJAXError = c.bg, S.Evented = c.E, S.LngLat = c.N, S.MercatorCoordinate = c.Z, S.Point = c.P, S.addProtocol = c.bh, S.config = c.a, S.removeProtocol = c.bi, S.AttributionControl = Gn, S.BoxZoomHandler = Ia, S.CanvasSource = Ki, S.CooperativeGesturesHandler = lr, S.DoubleClickZoomHandler = Fa, S.DragPanHandler = Qi, S.DragRotateHandler = ar, S.EdgeInsets = vo, S.FullscreenControl = class extends c.E {
17044
17044
  constructor(u = {}) {
17045
17045
  super(), this._onFullscreenChange = () => {
17046
17046
  var t;
@@ -18324,7 +18324,7 @@ const _l = {
18324
18324
  }), x.getSource(f) && await x.removeSource(f), this.setVisible(f);
18325
18325
  }
18326
18326
  }
18327
- }, Ki = (f, x) => {
18327
+ }, Ji = (f, x) => {
18328
18328
  const I = f.__vccOpts || f;
18329
18329
  for (const [C, L] of x)
18330
18330
  I[C] = L;
@@ -18342,7 +18342,7 @@ const _l = {
18342
18342
  function sg(f, x) {
18343
18343
  return it(), mt("svg", ig, ng);
18344
18344
  }
18345
- const og = /* @__PURE__ */ Ki(tg, [["render", sg]]);
18345
+ const og = /* @__PURE__ */ Ji(tg, [["render", sg]]);
18346
18346
  function Sp(f, x) {
18347
18347
  return function() {
18348
18348
  return f.apply(x, arguments);
@@ -19003,7 +19003,7 @@ function p_(f, x) {
19003
19003
  });
19004
19004
  });
19005
19005
  }
19006
- class ir {
19006
+ class rr {
19007
19007
  constructor(x) {
19008
19008
  x && this.set(x);
19009
19009
  }
@@ -19121,8 +19121,8 @@ class ir {
19121
19121
  return me.isArray(x) ? x.forEach(U) : U(x), this;
19122
19122
  }
19123
19123
  }
19124
- ir.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
19125
- me.reduceDescriptors(ir.prototype, ({ value: f }, x) => {
19124
+ rr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
19125
+ me.reduceDescriptors(rr.prototype, ({ value: f }, x) => {
19126
19126
  let I = x[0].toUpperCase() + x.slice(1);
19127
19127
  return {
19128
19128
  get: () => f,
@@ -19131,9 +19131,9 @@ me.reduceDescriptors(ir.prototype, ({ value: f }, x) => {
19131
19131
  }
19132
19132
  };
19133
19133
  });
19134
- me.freezeMethods(ir);
19134
+ me.freezeMethods(rr);
19135
19135
  function Wh(f, x) {
19136
- const I = this || xl, C = x || I, L = ir.from(C.headers);
19136
+ const I = this || xl, C = x || I, L = rr.from(C.headers);
19137
19137
  let U = C.data;
19138
19138
  return me.forEach(f, function(c) {
19139
19139
  U = c.call(I, U, L.normalize(), x ? x.status : void 0);
@@ -19283,7 +19283,7 @@ function v_(f, x) {
19283
19283
  function Np(f, x) {
19284
19284
  return f && !x_(x) ? v_(f, x) : x;
19285
19285
  }
19286
- const ap = (f) => f instanceof ir ? { ...f } : f;
19286
+ const ap = (f) => f instanceof rr ? { ...f } : f;
19287
19287
  function Xs(f, x) {
19288
19288
  x = x || {};
19289
19289
  const I = {};
@@ -19351,7 +19351,7 @@ function Xs(f, x) {
19351
19351
  const $p = (f) => {
19352
19352
  const x = Xs({}, f);
19353
19353
  let { data: I, withXSRFToken: C, xsrfHeaderName: L, xsrfCookieName: U, headers: S, auth: c } = x;
19354
- x.headers = S = ir.from(S), x.url = Rp(Np(x.baseURL, x.url), f.params, f.paramsSerializer), c && S.set(
19354
+ x.headers = S = rr.from(S), x.url = Rp(Np(x.baseURL, x.url), f.params, f.paramsSerializer), c && S.set(
19355
19355
  "Authorization",
19356
19356
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
19357
19357
  );
@@ -19373,7 +19373,7 @@ const $p = (f) => {
19373
19373
  return new Promise(function(I, C) {
19374
19374
  const L = $p(f);
19375
19375
  let U = L.data;
19376
- const S = ir.from(L.headers).normalize();
19376
+ const S = rr.from(L.headers).normalize();
19377
19377
  let { responseType: c, onUploadProgress: pe, onDownloadProgress: fe } = L, xe, oe, ae, pt, Ue;
19378
19378
  function Ke() {
19379
19379
  pt && pt(), Ue && Ue(), L.cancelToken && L.cancelToken.unsubscribe(xe), L.signal && L.signal.removeEventListener("abort", xe);
@@ -19383,7 +19383,7 @@ const $p = (f) => {
19383
19383
  function gt() {
19384
19384
  if (!Oe)
19385
19385
  return;
19386
- const He = ir.from(
19386
+ const He = rr.from(
19387
19387
  "getAllResponseHeaders" in Oe && Oe.getAllResponseHeaders()
19388
19388
  ), Tt = {
19389
19389
  data: !c || c === "text" || c === "json" ? Oe.responseText : Oe.response,
@@ -19599,7 +19599,7 @@ const k_ = async (f) => {
19599
19599
  return !Vt && gt(), Ue && Ue(), await new Promise((Jt, jt) => {
19600
19600
  Vp(Jt, jt, {
19601
19601
  data: Tt,
19602
- headers: ir.from(He.headers),
19602
+ headers: rr.from(He.headers),
19603
19603
  status: He.status,
19604
19604
  statusText: He.statusText,
19605
19605
  config: f,
@@ -19664,7 +19664,7 @@ function Xh(f) {
19664
19664
  throw new Yo(null, f);
19665
19665
  }
19666
19666
  function up(f) {
19667
- return Xh(f), f.headers = ir.from(f.headers), f.data = Wh.call(
19667
+ return Xh(f), f.headers = rr.from(f.headers), f.data = Wh.call(
19668
19668
  f,
19669
19669
  f.transformRequest
19670
19670
  ), ["post", "put", "patch"].indexOf(f.method) !== -1 && f.headers.setContentType("application/x-www-form-urlencoded", !1), qp.getAdapter(f.adapter || xl.adapter)(f).then(function(C) {
@@ -19672,13 +19672,13 @@ function up(f) {
19672
19672
  f,
19673
19673
  f.transformResponse,
19674
19674
  C
19675
- ), C.headers = ir.from(C.headers), C;
19675
+ ), C.headers = rr.from(C.headers), C;
19676
19676
  }, function(C) {
19677
19677
  return Op(C) || (Xh(f), C && C.response && (C.response.data = Wh.call(
19678
19678
  f,
19679
19679
  f.transformResponse,
19680
19680
  C.response
19681
- ), C.response.headers = ir.from(C.response.headers))), Promise.reject(C);
19681
+ ), C.response.headers = rr.from(C.response.headers))), Promise.reject(C);
19682
19682
  });
19683
19683
  }
19684
19684
  const Zp = "1.7.4", au = {};
@@ -19781,7 +19781,7 @@ class Gs {
19781
19781
  (Ue) => {
19782
19782
  delete U[Ue];
19783
19783
  }
19784
- ), I.headers = ir.concat(S, U);
19784
+ ), I.headers = rr.concat(S, U);
19785
19785
  const c = [];
19786
19786
  let pe = !0;
19787
19787
  this.interceptors.request.forEach(function(Ke) {
@@ -20012,7 +20012,7 @@ Xt.all = function(x) {
20012
20012
  Xt.spread = z_;
20013
20013
  Xt.isAxiosError = L_;
20014
20014
  Xt.mergeConfig = Xs;
20015
- Xt.AxiosHeaders = ir;
20015
+ Xt.AxiosHeaders = rr;
20016
20016
  Xt.formToJSON = (f) => Fp(me.isHTMLForm(f) ? new FormData(f) : f);
20017
20017
  Xt.getAdapter = qp.getAdapter;
20018
20018
  Xt.HttpStatusCode = ru;
@@ -20267,7 +20267,7 @@ function $_(f, x, I, C, L, U) {
20267
20267
  ], 10, V_))), 128))
20268
20268
  ]);
20269
20269
  }
20270
- const U_ = /* @__PURE__ */ Ki(F_, [["render", $_], ["__scopeId", "data-v-8959e540"]]), j_ = {}, q_ = {
20270
+ const U_ = /* @__PURE__ */ Ji(F_, [["render", $_], ["__scopeId", "data-v-8959e540"]]), j_ = {}, q_ = {
20271
20271
  class: "shrink-0 size-3",
20272
20272
  xmlns: "http://www.w3.org/2000/svg",
20273
20273
  width: "24",
@@ -20285,7 +20285,7 @@ const U_ = /* @__PURE__ */ Ki(F_, [["render", $_], ["__scopeId", "data-v-8959e54
20285
20285
  function W_(f, x) {
20286
20286
  return it(), mt("svg", q_, H_);
20287
20287
  }
20288
- const Bc = /* @__PURE__ */ Ki(j_, [["render", W_]]), X_ = {}, J_ = {
20288
+ const Bc = /* @__PURE__ */ Ji(j_, [["render", W_]]), X_ = {}, J_ = {
20289
20289
  width: "24",
20290
20290
  height: "24",
20291
20291
  viewBox: "0 0 24 24",
@@ -20314,7 +20314,7 @@ const Bc = /* @__PURE__ */ Ki(j_, [["render", W_]]), X_ = {}, J_ = {
20314
20314
  function ty(f, x) {
20315
20315
  return it(), mt("svg", J_, ey);
20316
20316
  }
20317
- const iy = /* @__PURE__ */ Ki(X_, [["render", ty]]), ry = {
20317
+ const iy = /* @__PURE__ */ Ji(X_, [["render", ty]]), ry = {
20318
20318
  components: { closeIcon: Bc, layersIcon: iy },
20319
20319
  mixins: [_l],
20320
20320
  props: {
@@ -20352,7 +20352,7 @@ const iy = /* @__PURE__ */ Ki(X_, [["render", ty]]), ry = {
20352
20352
  function dy(f, x, I, C, L, U) {
20353
20353
  const S = ii("layersIcon"), c = ii("VsPopover"), pe = ii("closeIcon");
20354
20354
  return it(), mt(ls, null, [
20355
- !L.isOpen && L.mounted ? (it(), gr(c, {
20355
+ !L.isOpen && L.mounted ? (it(), ir(c, {
20356
20356
  key: 0,
20357
20357
  teleport: "body",
20358
20358
  trigger: "hover",
@@ -20362,18 +20362,18 @@ function dy(f, x, I, C, L, U) {
20362
20362
  }, {
20363
20363
  reference: _r(() => [
20364
20364
  Re("div", sy, [
20365
- Ji(S, { class: "h-5 w-5" })
20365
+ tr(S, { class: "h-5 w-5" })
20366
20366
  ])
20367
20367
  ]),
20368
20368
  default: _r(() => [
20369
20369
  Xo(" Додаткові шари ")
20370
20370
  ]),
20371
20371
  _: 1
20372
- })) : ci("", !0),
20372
+ })) : oi("", !0),
20373
20373
  Hs(Re("div", oy, [
20374
20374
  Re("div", ay, [
20375
20375
  ly,
20376
- L.mounted ? (it(), gr(c, {
20376
+ L.mounted ? (it(), ir(c, {
20377
20377
  key: 0,
20378
20378
  teleport: "body",
20379
20379
  trigger: "hover",
@@ -20386,14 +20386,14 @@ function dy(f, x, I, C, L, U) {
20386
20386
  class: "size-6 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
20387
20387
  onClick: x[1] || (x[1] = (fe) => L.isOpen = !L.isOpen)
20388
20388
  }, [
20389
- Ji(pe)
20389
+ tr(pe)
20390
20390
  ])
20391
20391
  ]),
20392
20392
  default: _r(() => [
20393
20393
  Xo(" Приховати панель ")
20394
20394
  ]),
20395
20395
  _: 1
20396
- })) : ci("", !0)
20396
+ })) : oi("", !0)
20397
20397
  ]),
20398
20398
  Hs(Re("div", cy, [
20399
20399
  (it(!0), mt(ls, null, Wo(I.layers, (fe) => (it(), mt("div", {
@@ -20420,7 +20420,7 @@ function dy(f, x, I, C, L, U) {
20420
20420
  ])
20421
20421
  ], 64);
20422
20422
  }
20423
- const py = /* @__PURE__ */ Ki(ry, [["render", dy], ["__scopeId", "data-v-4c33eaa0"]]), fy = {
20423
+ const py = /* @__PURE__ */ Ji(ry, [["render", dy], ["__scopeId", "data-v-4c33eaa0"]]), fy = {
20424
20424
  mixins: [_l],
20425
20425
  components: {
20426
20426
  closeIcon: Bc
@@ -20462,7 +20462,7 @@ function Sy(f, x, I, C, L, U) {
20462
20462
  Re("div", gy, [
20463
20463
  _y,
20464
20464
  Re("div", yy, [
20465
- L.mounted ? (it(), gr(S, {
20465
+ L.mounted ? (it(), ir(S, {
20466
20466
  key: 0,
20467
20467
  trigger: "hover",
20468
20468
  placement: "bottom",
@@ -20476,8 +20476,8 @@ function Sy(f, x, I, C, L, U) {
20476
20476
  Xo(" Згорнути панель ")
20477
20477
  ]),
20478
20478
  _: 1
20479
- })) : ci("", !0),
20480
- L.mounted ? (it(), gr(S, {
20479
+ })) : oi("", !0),
20480
+ L.mounted ? (it(), ir(S, {
20481
20481
  key: 1,
20482
20482
  trigger: "hover",
20483
20483
  placement: "bottom",
@@ -20489,14 +20489,14 @@ function Sy(f, x, I, C, L, U) {
20489
20489
  class: "size-6 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
20490
20490
  onClick: x[1] || (x[1] = (pe) => f.$emit("close"))
20491
20491
  }, [
20492
- Ji(c, { class: "cursor-pointer" })
20492
+ tr(c, { class: "cursor-pointer" })
20493
20493
  ])
20494
20494
  ]),
20495
20495
  default: _r(() => [
20496
20496
  Xo(" Приховати панель ")
20497
20497
  ]),
20498
20498
  _: 1
20499
- })) : ci("", !0)
20499
+ })) : oi("", !0)
20500
20500
  ])
20501
20501
  ]),
20502
20502
  Re("div", vy, [
@@ -20524,7 +20524,7 @@ function Sy(f, x, I, C, L, U) {
20524
20524
  [Jo, !I.collapsed]
20525
20525
  ]);
20526
20526
  }
20527
- const Ty = /* @__PURE__ */ Ki(fy, [["render", Sy]]), Iy = {}, Py = {
20527
+ const Ty = /* @__PURE__ */ Ji(fy, [["render", Sy]]), Iy = {}, Py = {
20528
20528
  width: "24",
20529
20529
  height: "24",
20530
20530
  viewBox: "0 0 24 24",
@@ -20556,7 +20556,7 @@ const Ty = /* @__PURE__ */ Ki(fy, [["render", Sy]]), Iy = {}, Py = {
20556
20556
  function My(f, x, I, C, L, U) {
20557
20557
  return it(), mt("svg", Py, Ey);
20558
20558
  }
20559
- const zy = /* @__PURE__ */ Ki(Iy, [["render", My]]), Ly = {
20559
+ const zy = /* @__PURE__ */ Ji(Iy, [["render", My]]), Ly = {
20560
20560
  components: {
20561
20561
  closeIcon: Bc,
20562
20562
  compareIcon: zy,
@@ -20680,7 +20680,7 @@ const zy = /* @__PURE__ */ Ki(Iy, [["render", My]]), Ly = {
20680
20680
  function Oy(f, x, I, C, L, U) {
20681
20681
  const S = ii("compareIcon"), c = ii("VsPopover"), pe = ii("CompareBaseLayers");
20682
20682
  return it(), mt(ls, null, [
20683
- L.mounted ? (it(), gr(c, {
20683
+ L.mounted ? (it(), ir(c, {
20684
20684
  key: 0,
20685
20685
  teleport: "body",
20686
20686
  trigger: "hover",
@@ -20691,15 +20691,15 @@ function Oy(f, x, I, C, L, U) {
20691
20691
  }, {
20692
20692
  reference: _r(() => [
20693
20693
  Re("div", Dy, [
20694
- Ji(S, { class: "w-4 h-4" })
20694
+ tr(S, { class: "w-4 h-4" })
20695
20695
  ])
20696
20696
  ]),
20697
20697
  default: _r(() => [
20698
20698
  Xo(" Порівняти шари ")
20699
20699
  ]),
20700
20700
  _: 1
20701
- }, 8, ["class", "onClick"])) : ci("", !0),
20702
- L.isOpen && L.afterMapLoaded ? (it(), gr(pe, {
20701
+ }, 8, ["class", "onClick"])) : oi("", !0),
20702
+ L.isOpen && L.afterMapLoaded ? (it(), ir(pe, {
20703
20703
  key: 1,
20704
20704
  table: I.table,
20705
20705
  map: L.afterMap,
@@ -20707,11 +20707,11 @@ function Oy(f, x, I, C, L, U) {
20707
20707
  onClose: U.destroyCompare,
20708
20708
  collapsed: L.collapsed,
20709
20709
  "onUpdate:collapsed": x[0] || (x[0] = (fe) => L.collapsed = fe)
20710
- }, null, 8, ["table", "map", "compareLayers", "onClose", "collapsed"])) : ci("", !0),
20711
- L.isOpen ? (it(), mt("div", Ry, Fy)) : ci("", !0)
20710
+ }, null, 8, ["table", "map", "compareLayers", "onClose", "collapsed"])) : oi("", !0),
20711
+ L.isOpen ? (it(), mt("div", Ry, Fy)) : oi("", !0)
20712
20712
  ], 64);
20713
20713
  }
20714
- const Vy = /* @__PURE__ */ Ki(Ly, [["render", Oy]]), Ny = {
20714
+ const Vy = /* @__PURE__ */ Ji(Ly, [["render", Oy]]), Ny = {
20715
20715
  props: ["colors", "strokes", "title"],
20716
20716
  methods: {
20717
20717
  capitalizeFirstLetter(f) {
@@ -20728,7 +20728,7 @@ const Vy = /* @__PURE__ */ Ki(Ly, [["render", Oy]]), Ny = {
20728
20728
  function Xy(f, x, I, C, L, U) {
20729
20729
  var S;
20730
20730
  return it(), mt("div", $y, [
20731
- I.title ? (it(), mt("div", Uy, Mr(I.title), 1)) : ci("", !0),
20731
+ I.title ? (it(), mt("div", Uy, Mr(I.title), 1)) : oi("", !0),
20732
20732
  (S = I.strokes) != null && S.length ? (it(), mt("div", jy, [
20733
20733
  (it(!0), mt(ls, null, Wo(I.strokes, (c) => (it(), mt("div", qy, [
20734
20734
  Re("div", {
@@ -20739,7 +20739,7 @@ function Xy(f, x, I, C, L, U) {
20739
20739
  }, null, 4),
20740
20740
  Re("div", Zy, Mr(U.capitalizeFirstLetter(c.text)), 1)
20741
20741
  ]))), 256))
20742
- ])) : ci("", !0),
20742
+ ])) : oi("", !0),
20743
20743
  (it(!0), mt(ls, null, Wo(I.colors, (c) => (it(), mt("div", Gy, [
20744
20744
  c.id > 0 ? (it(), mt("div", Hy, [
20745
20745
  Re("div", {
@@ -20747,11 +20747,11 @@ function Xy(f, x, I, C, L, U) {
20747
20747
  style: Jh({ backgroundColor: c.color })
20748
20748
  }, null, 4),
20749
20749
  Re("div", Wy, Mr(U.capitalizeFirstLetter(c.text)), 1)
20750
- ])) : ci("", !0)
20750
+ ])) : oi("", !0)
20751
20751
  ]))), 256))
20752
20752
  ]);
20753
20753
  }
20754
- const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
20754
+ const Jy = /* @__PURE__ */ Ji(Ny, [["render", Xy]]), Ky = {
20755
20755
  components: {
20756
20756
  MapSlotLayers: U_,
20757
20757
  MapLegend: Jy,
@@ -20759,6 +20759,7 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Xy]]), Ky = {
20759
20759
  MapCompare: Vy
20760
20760
  },
20761
20761
  props: {
20762
+ isMapCompare: { type: Boolean, default: !0 },
20762
20763
  polygonOpacity: { type: Number, default: () => 0 },
20763
20764
  polygonStrokeWidth: { type: Number, default: () => 4 },
20764
20765
  dashedLine: { type: Boolean, default: () => !1 },
@@ -21053,34 +21054,35 @@ function Qy(f, x, I, C, L, U) {
21053
21054
  class: "w-full compare_main_map",
21054
21055
  style: Jh({ height: I.height })
21055
21056
  }, null, 4),
21056
- Hs(Ji(S, {
21057
+ Hs(tr(S, {
21057
21058
  colors: L.colors,
21058
21059
  strokes: f.strokes,
21059
21060
  title: I.legendname
21060
21061
  }, null, 8, ["colors", "strokes", "title"]), [
21061
21062
  [Jo, I.legend]
21062
21063
  ]),
21063
- Ji(c, {
21064
+ tr(c, {
21064
21065
  map: L.map,
21065
21066
  baseLayers: I.basemap,
21066
21067
  selectedLayer: I.selectedBaseLayer,
21067
21068
  "onUpdate:selectedLayer": x[0] || (x[0] = (oe) => f.$emit("update:selectedBaseLayer", oe))
21068
21069
  }, null, 8, ["map", "baseLayers", "selectedLayer"]),
21069
- Ji(pe, {
21070
+ I.isMapCompare ? (it(), ir(pe, {
21071
+ key: 0,
21070
21072
  map: L.map,
21071
21073
  compareLayers: U.allLayers,
21072
21074
  table: I.table,
21073
21075
  onIsCompareOpen: x[1] || (x[1] = (oe) => f.$emit("isCompareOpen", oe))
21074
- }, null, 8, ["map", "compareLayers", "table"]),
21075
- (xe = I.additionalLayers) != null && xe.length ? (it(), gr(fe, {
21076
- key: 0,
21076
+ }, null, 8, ["map", "compareLayers", "table"])) : oi("", !0),
21077
+ (xe = I.additionalLayers) != null && xe.length ? (it(), ir(fe, {
21078
+ key: 1,
21077
21079
  map: L.map,
21078
21080
  layers: I.additionalLayers,
21079
21081
  basemapIds: U.basemapIds
21080
- }, null, 8, ["map", "layers", "basemapIds"])) : ci("", !0)
21082
+ }, null, 8, ["map", "layers", "basemapIds"])) : oi("", !0)
21081
21083
  ]);
21082
21084
  }
21083
- const e0 = /* @__PURE__ */ Ki(Ky, [["render", Qy]]), t0 = {}, i0 = {
21085
+ const e0 = /* @__PURE__ */ Ji(Ky, [["render", Qy]]), t0 = {}, i0 = {
21084
21086
  class: "flex-shrink-0 size-3.5",
21085
21087
  xmlns: "http://www.w3.org/2000/svg",
21086
21088
  width: "22",
@@ -21097,7 +21099,7 @@ const e0 = /* @__PURE__ */ Ki(Ky, [["render", Qy]]), t0 = {}, i0 = {
21097
21099
  function s0(f, x) {
21098
21100
  return it(), mt("svg", i0, n0);
21099
21101
  }
21100
- const o0 = /* @__PURE__ */ Ki(t0, [["render", s0]]), a0 = {}, l0 = {
21102
+ const o0 = /* @__PURE__ */ Ji(t0, [["render", s0]]), a0 = {}, l0 = {
21101
21103
  xmlns: "http://www.w3.org/2000/svg",
21102
21104
  width: "21",
21103
21105
  height: "20",
@@ -21121,7 +21123,7 @@ const o0 = /* @__PURE__ */ Ki(t0, [["render", s0]]), a0 = {}, l0 = {
21121
21123
  function f0(f, x) {
21122
21124
  return it(), mt("svg", l0, p0);
21123
21125
  }
21124
- const m0 = /* @__PURE__ */ Ki(a0, [["render", f0]]), g0 = {}, _0 = {
21126
+ const m0 = /* @__PURE__ */ Ji(a0, [["render", f0]]), g0 = {}, _0 = {
21125
21127
  xmlns: "http://www.w3.org/2000/svg",
21126
21128
  width: "21",
21127
21129
  height: "20",
@@ -21145,7 +21147,7 @@ const m0 = /* @__PURE__ */ Ki(a0, [["render", f0]]), g0 = {}, _0 = {
21145
21147
  function S0(f, x) {
21146
21148
  return it(), mt("svg", _0, w0);
21147
21149
  }
21148
- const T0 = /* @__PURE__ */ Ki(g0, [["render", S0]]), I0 = {
21150
+ const T0 = /* @__PURE__ */ Ji(g0, [["render", S0]]), I0 = {
21149
21151
  props: {
21150
21152
  visible: { type: Boolean, default: () => !1 },
21151
21153
  title: { type: String, default: () => "" },
@@ -21198,12 +21200,12 @@ const T0 = /* @__PURE__ */ Ki(g0, [["render", S0]]), I0 = {
21198
21200
  class: "flex justify-end gap-x-2"
21199
21201
  };
21200
21202
  function R0(f, x, I, C, L, U) {
21201
- return it(), gr(qm, { to: "#modal" }, [
21202
- Ji(Wd, { name: "fade" }, {
21203
+ return it(), ir(qm, { to: "#modal" }, [
21204
+ tr(Wd, { name: "fade" }, {
21203
21205
  default: _r(() => [
21204
21206
  Hs(Re("div", P0, [
21205
21207
  Re("div", k0, [
21206
- Ji(Wd, {
21208
+ tr(Wd, {
21207
21209
  name: "content",
21208
21210
  appear: ""
21209
21211
  }, {
@@ -21224,7 +21226,7 @@ function R0(f, x, I, C, L, U) {
21224
21226
  ]),
21225
21227
  U.hasSlot ? (it(), mt("div", D0, [
21226
21228
  Ho(f.$slots, "footer", {}, void 0, !0)
21227
- ])) : ci("", !0)
21229
+ ])) : oi("", !0)
21228
21230
  ], 2)
21229
21231
  ]),
21230
21232
  _: 3
@@ -21238,12 +21240,13 @@ function R0(f, x, I, C, L, U) {
21238
21240
  })
21239
21241
  ]);
21240
21242
  }
21241
- const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-37405773"]]), F0 = Zm({
21243
+ const B0 = /* @__PURE__ */ Ji(I0, [["render", R0], ["__scopeId", "data-v-37405773"]]), F0 = Zm({
21242
21244
  props: {
21243
21245
  dashedLine: { type: Boolean, default: !1 },
21244
21246
  title: { type: String, default: () => "" },
21245
21247
  table: { type: String, default: () => "" },
21246
21248
  rows: { type: Object, default: () => null },
21249
+ isMapCompare: { type: Boolean, default: !0 },
21247
21250
  initTotal: { type: [Number, String], default: () => "" },
21248
21251
  colorAttr: { type: String, default: () => "" },
21249
21252
  strokeAttr: { type: String, default: () => "" },
@@ -21401,7 +21404,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21401
21404
  const x = new URLSearchParams(window.location.search).get("filter"), I = x == null ? void 0 : x.split("|");
21402
21405
  I == null || I.forEach((L) => {
21403
21406
  const [U, S] = L.split("=");
21404
- S != null && S.includes(",") ? this.mountedFilter[U] = S == null ? void 0 : S.split(",") : this.mountedFilter[U] = S;
21407
+ S != null && S.includes(",") ? this.mountedFilter[U] = S == null ? void 0 : S.split(",") : this.mountedFilter[U] = S, this.activeFilters = this.mountedFilter;
21405
21408
  });
21406
21409
  const C = new URLSearchParams(window.location.search);
21407
21410
  this.currentPage = C.get("page") || 1, this.getFilter();
@@ -21705,7 +21708,7 @@ function px(f, x, I, C, L, U) {
21705
21708
  Re("div", null, [
21706
21709
  Re("div", V0, [
21707
21710
  Re("div", N0, [
21708
- f.maskForSearch ? (it(), gr(S, {
21711
+ f.maskForSearch ? (it(), ir(S, {
21709
21712
  key: 0,
21710
21713
  "model-value": f.search,
21711
21714
  "onUpdate:modelValue": f.handleDebouncedUpdateValue,
@@ -21717,7 +21720,7 @@ function px(f, x, I, C, L, U) {
21717
21720
  clearable: "",
21718
21721
  style: { height: "38px", "min-width": "300px", "max-width": "300px" },
21719
21722
  ref: "searchInput"
21720
- }, null, 8, ["model-value", "onUpdate:modelValue", "mask"])) : f.searchShow ? (it(), gr(c, {
21723
+ }, null, 8, ["model-value", "onUpdate:modelValue", "mask"])) : f.searchShow ? (it(), ir(c, {
21721
21724
  key: 1,
21722
21725
  "model-value": f.search,
21723
21726
  "onUpdate:modelValue": f.handleDebouncedUpdateValue,
@@ -21728,9 +21731,9 @@ function px(f, x, I, C, L, U) {
21728
21731
  clearable: "",
21729
21732
  style: { height: "38px" },
21730
21733
  ref: "searchInput"
21731
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : ci("", !0),
21734
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : oi("", !0),
21732
21735
  Re("div", $0, [
21733
- f.filters ? (it(), gr(fe, {
21736
+ f.filters ? (it(), ir(fe, {
21734
21737
  key: 0,
21735
21738
  ref: "filter",
21736
21739
  modelValue: f.mountedFilter,
@@ -21753,13 +21756,13 @@ function px(f, x, I, C, L, U) {
21753
21756
  ot ? "border border-blue-600 border-2" : "border border-gray-200"
21754
21757
  ]])
21755
21758
  }, [
21756
- Ji(pe),
21759
+ tr(pe),
21757
21760
  Xo(" Фільтри "),
21758
- f.activeFiltersCount >= 1 ? (it(), mt("span", U0, Mr(f.activeFiltersCount), 1)) : ci("", !0)
21761
+ f.activeFiltersCount >= 1 ? (it(), mt("span", U0, Mr(f.activeFiltersCount), 1)) : oi("", !0)
21759
21762
  ], 2)
21760
21763
  ]),
21761
21764
  _: 1
21762
- }, 8, ["modelValue", "scheme", "isDialog"])) : ci("", !0)
21765
+ }, 8, ["modelValue", "scheme", "isDialog"])) : oi("", !0)
21763
21766
  ])
21764
21767
  ]),
21765
21768
  Re("button", {
@@ -21768,7 +21771,7 @@ function px(f, x, I, C, L, U) {
21768
21771
  title: f.isMapVisible ? "Приховати карту" : "Показати карту",
21769
21772
  onClick: x[2] || (x[2] = (...ot) => f.toggleMapVisible && f.toggleMapVisible(...ot))
21770
21773
  }, [
21771
- f.isMapVisible ? (it(), gr(xe, { key: 0 })) : (it(), gr(oe, { key: 1 })),
21774
+ f.isMapVisible ? (it(), ir(xe, { key: 0 })) : (it(), ir(oe, { key: 1 })),
21772
21775
  q0
21773
21776
  ], 8, j0)
21774
21777
  ]),
@@ -21799,7 +21802,7 @@ function px(f, x, I, C, L, U) {
21799
21802
  class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
21800
21803
  onClick: (Tt) => f.clearFilter(He)
21801
21804
  }, [
21802
- Ji(ae)
21805
+ tr(ae)
21803
21806
  ], 8, tx)
21804
21807
  ]))), 128)),
21805
21808
  ((gt = Object.keys(f.activeFilters)) == null ? void 0 : gt.length) >= 2 ? (it(), mt("span", ix, [
@@ -21809,10 +21812,10 @@ function px(f, x, I, C, L, U) {
21809
21812
  class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
21810
21813
  onClick: x[3] || (x[3] = (ot) => f.mountedFilter = {})
21811
21814
  }, [
21812
- Ji(ae)
21815
+ tr(ae)
21813
21816
  ])
21814
- ])) : ci("", !0)
21815
- ])) : ci("", !0),
21817
+ ])) : oi("", !0)
21818
+ ])) : oi("", !0),
21816
21819
  f.total >= 1 ? Ho(f.$slots, "table", {
21817
21820
  key: 1,
21818
21821
  rows: f.tableData,
@@ -21823,7 +21826,7 @@ function px(f, x, I, C, L, U) {
21823
21826
  addGeomMarker: f.addGeomMarker,
21824
21827
  isMapVisible: f.isMapVisible
21825
21828
  }) : (it(), mt("div", nx, [
21826
- Ji(pt),
21829
+ tr(pt),
21827
21830
  sx,
21828
21831
  ox,
21829
21832
  Re("button", {
@@ -21833,10 +21836,10 @@ function px(f, x, I, C, L, U) {
21833
21836
  }, " Очистити дані пошуку ")
21834
21837
  ]))
21835
21838
  ]),
21836
- f.total >= 1 ? (it(), mt("hr", ax)) : ci("", !0),
21839
+ f.total >= 1 ? (it(), mt("hr", ax)) : oi("", !0),
21837
21840
  f.total >= 1 ? (it(), mt("div", lx, [
21838
21841
  Re("div", cx, [
21839
- Ji(Ue, {
21842
+ tr(Ue, {
21840
21843
  total: f.total,
21841
21844
  maxPages: 7,
21842
21845
  defaultPage: f.currentPage,
@@ -21850,7 +21853,7 @@ function px(f, x, I, C, L, U) {
21850
21853
  onPageSizeChange: f.changeLimit
21851
21854
  }, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
21852
21855
  ])
21853
- ])) : ci("", !0)
21856
+ ])) : oi("", !0)
21854
21857
  ], 2),
21855
21858
  f.isSelectObj ? (it(), mt("div", {
21856
21859
  key: 0,
@@ -21865,7 +21868,7 @@ function px(f, x, I, C, L, U) {
21865
21868
  closeObjCard: f.closeObjCard,
21866
21869
  isMapVisible: f.isMapVisible
21867
21870
  })
21868
- ], 2)) : ci("", !0),
21871
+ ], 2)) : oi("", !0),
21869
21872
  Hs(Re("div", hx, [
21870
21873
  Re("section", ux, [
21871
21874
  Ho(f.$slots, "default", {
@@ -21875,7 +21878,7 @@ function px(f, x, I, C, L, U) {
21875
21878
  isCompareOpen: f.isCompareOpen,
21876
21879
  selectedRow: f.selectedRow
21877
21880
  }),
21878
- Ji(Ke, {
21881
+ tr(Ke, {
21879
21882
  height: "calc(100vh - 152px)",
21880
21883
  width: "w-2/4",
21881
21884
  table: f.table,
@@ -21895,11 +21898,12 @@ function px(f, x, I, C, L, U) {
21895
21898
  additionalLayers: f.additionalLayers,
21896
21899
  pointZoom: f.pointZoom,
21897
21900
  defaultColor: f.defaultColor,
21901
+ isMapCompare: f.isMapCompare,
21898
21902
  onMap: x[5] || (x[5] = (ot) => f.map = ot),
21899
21903
  selectedBaseLayer: f.selectedBaseLayer,
21900
21904
  "onUpdate:selectedBaseLayer": x[6] || (x[6] = (ot) => f.selectedBaseLayer = ot),
21901
21905
  onIsCompareOpen: x[7] || (x[7] = (ot) => f.isCompareOpen = ot)
21902
- }, null, 8, ["table", "filtersParam", "row", "legendname", "legend", "compareLayers", "colorAttr", "strokeAttr", "maxBounds", "center", "zoom", "dashedLine", "minZoom", "basemap", "additionalLayers", "pointZoom", "defaultColor", "selectedBaseLayer"])
21906
+ }, null, 8, ["table", "filtersParam", "row", "legendname", "legend", "compareLayers", "colorAttr", "strokeAttr", "maxBounds", "center", "zoom", "dashedLine", "minZoom", "basemap", "additionalLayers", "pointZoom", "defaultColor", "isMapCompare", "selectedBaseLayer"])
21903
21907
  ])
21904
21908
  ], 512), [
21905
21909
  [Jo, f.isMapVisible]
@@ -21911,7 +21915,7 @@ function px(f, x, I, C, L, U) {
21911
21915
  ])
21912
21916
  ]);
21913
21917
  }
21914
- const Xp = /* @__PURE__ */ Ki(F0, [["render", px]]), fx = (f) => {
21918
+ const Xp = /* @__PURE__ */ Ji(F0, [["render", px]]), fx = (f) => {
21915
21919
  f.component("VsPartsMap", Xp);
21916
21920
  }, mx = {
21917
21921
  install: fx,