@abi-software/flatmap-viewer 3.2.1 → 3.2.2

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.
Files changed (3) hide show
  1. package/README.rst +1 -1
  2. package/dist/index.js +328 -324
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2057,7 +2057,7 @@ var Ek = { exports: {} };
2057
2057
  return this.args.every((c) => c.outputDefined());
2058
2058
  }
2059
2059
  }
2060
- const H2 = { "to-boolean": cr, "to-color": Jn, "to-number": _e, "to-string": br };
2060
+ const C2 = { "to-boolean": cr, "to-color": Jn, "to-number": _e, "to-string": br };
2061
2061
  class w1 {
2062
2062
  constructor(c, f) {
2063
2063
  this.type = c, this.args = f;
@@ -2066,11 +2066,11 @@ var Ek = { exports: {} };
2066
2066
  if (c.length < 2)
2067
2067
  return f.error("Expected at least one argument.");
2068
2068
  const g = c[0];
2069
- if (!H2[g])
2069
+ if (!C2[g])
2070
2070
  throw new Error(`Can't parse ${g} as it is not part of the known types`);
2071
2071
  if ((g === "to-boolean" || g === "to-string") && c.length !== 2)
2072
2072
  return f.error("Expected one argument.");
2073
- const x = H2[g], M = [];
2073
+ const x = C2[g], M = [];
2074
2074
  for (let S = 1; S < c.length; S++) {
2075
2075
  const O = f.parse(c[S], S, ur);
2076
2076
  if (!O)
@@ -3048,7 +3048,7 @@ var Ek = { exports: {} };
3048
3048
  function No(u, c) {
3049
3049
  u[0] = Math.min(u[0], c[0]), u[1] = Math.min(u[1], c[1]), u[2] = Math.max(u[2], c[0]), u[3] = Math.max(u[3], c[1]);
3050
3050
  }
3051
- function O2(u, c) {
3051
+ function H2(u, c) {
3052
3052
  return !(u[0] <= c[0] || u[2] >= c[2] || u[1] <= c[1] || u[3] >= c[3]);
3053
3053
  }
3054
3054
  function zr(u, c, f) {
@@ -3191,7 +3191,7 @@ var Ek = { exports: {} };
3191
3191
  const x = [1 / 0, 1 / 0, -1 / 0, -1 / 0], M = [1 / 0, 1 / 0, -1 / 0, -1 / 0], S = f.canonicalID();
3192
3192
  if (g.type === "Polygon") {
3193
3193
  const O = Ms(g.coordinates, M, S), R = o6(f.geometry(), x, M, S);
3194
- if (!O2(x, M))
3194
+ if (!H2(x, M))
3195
3195
  return !1;
3196
3196
  for (const j of R)
3197
3197
  if (!_a(j, O))
@@ -3199,7 +3199,7 @@ var Ek = { exports: {} };
3199
3199
  }
3200
3200
  if (g.type === "MultiPolygon") {
3201
3201
  const O = i6(g.coordinates, M, S), R = o6(f.geometry(), x, M, S);
3202
- if (!O2(x, M))
3202
+ if (!H2(x, M))
3203
3203
  return !1;
3204
3204
  for (const j of R)
3205
3205
  if (!As(j, O))
@@ -3212,7 +3212,7 @@ var Ek = { exports: {} };
3212
3212
  const x = [1 / 0, 1 / 0, -1 / 0, -1 / 0], M = [1 / 0, 1 / 0, -1 / 0, -1 / 0], S = f.canonicalID();
3213
3213
  if (g.type === "Polygon") {
3214
3214
  const O = Ms(g.coordinates, M, S), R = E3(f.geometry(), x, M, S);
3215
- if (!O2(x, M))
3215
+ if (!H2(x, M))
3216
3216
  return !1;
3217
3217
  for (const j of R)
3218
3218
  if (!Es(j, O))
@@ -3220,7 +3220,7 @@ var Ek = { exports: {} };
3220
3220
  }
3221
3221
  if (g.type === "MultiPolygon") {
3222
3222
  const O = i6(g.coordinates, M, S), R = E3(f.geometry(), x, M, S);
3223
- if (!O2(x, M))
3223
+ if (!H2(x, M))
3224
3224
  return !1;
3225
3225
  for (const j of R)
3226
3226
  if (!K5(j, O))
@@ -3360,7 +3360,7 @@ var Ek = { exports: {} };
3360
3360
  function Ps(u) {
3361
3361
  return u[1] - u[0] + 1;
3362
3362
  }
3363
- function P2(u, c) {
3363
+ function O2(u, c) {
3364
3364
  return u[1] >= u[0] && u[1] < c;
3365
3365
  }
3366
3366
  function l6(u, c) {
@@ -3379,7 +3379,7 @@ var Ek = { exports: {} };
3379
3379
  return [[u[0], u[0] + g], [u[0] + g + 1, u[1]]];
3380
3380
  }
3381
3381
  function c6(u, c) {
3382
- if (!P2(c, u.length))
3382
+ if (!O2(c, u.length))
3383
3383
  return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
3384
3384
  const f = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
3385
3385
  for (let g = c[0]; g <= c[1]; ++g)
@@ -3396,7 +3396,7 @@ var Ek = { exports: {} };
3396
3396
  function xa(u) {
3397
3397
  return u[0] !== -1 / 0 && u[1] !== -1 / 0 && u[2] !== 1 / 0 && u[3] !== 1 / 0;
3398
3398
  }
3399
- function D2(u, c, f) {
3399
+ function P2(u, c, f) {
3400
3400
  if (!xa(u) || !xa(c))
3401
3401
  return NaN;
3402
3402
  let g = 0, x = 0;
@@ -3406,12 +3406,12 @@ var Ek = { exports: {} };
3406
3406
  const g = f.pointOnLine(c, u);
3407
3407
  return f.distance(u, g.point);
3408
3408
  }
3409
- function I2(u, c, f, g, x) {
3409
+ function D2(u, c, f, g, x) {
3410
3410
  const M = Math.min(N1(u, [f, g], x), N1(c, [f, g], x)), S = Math.min(N1(f, [u, c], x), N1(g, [u, c], x));
3411
3411
  return Math.min(M, S);
3412
3412
  }
3413
3413
  function Is(u, c, f, g, x) {
3414
- if (!P2(c, u.length) || !P2(g, f.length))
3414
+ if (!O2(c, u.length) || !O2(g, f.length))
3415
3415
  return 1 / 0;
3416
3416
  let M = 1 / 0;
3417
3417
  for (let S = c[0]; S < c[1]; ++S) {
@@ -3420,13 +3420,13 @@ var Ek = { exports: {} };
3420
3420
  const U = f[j], X = f[j + 1];
3421
3421
  if (A3(O, R, U, X))
3422
3422
  return 0;
3423
- M = Math.min(M, I2(O, R, U, X, x));
3423
+ M = Math.min(M, D2(O, R, U, X, x));
3424
3424
  }
3425
3425
  }
3426
3426
  return M;
3427
3427
  }
3428
3428
  function sn(u, c, f, g, x) {
3429
- if (!P2(c, u.length) || !P2(g, f.length))
3429
+ if (!O2(c, u.length) || !O2(g, f.length))
3430
3430
  return NaN;
3431
3431
  let M = 1 / 0;
3432
3432
  for (let S = c[0]; S <= c[1]; ++S)
@@ -3450,7 +3450,7 @@ var Ek = { exports: {} };
3450
3450
  return g;
3451
3451
  }
3452
3452
  function wr(u, c, f, g) {
3453
- if (!P2(c, u.length))
3453
+ if (!O2(c, u.length))
3454
3454
  return NaN;
3455
3455
  for (let M = c[0]; M <= c[1]; ++M)
3456
3456
  if (_a(u[M], f, !0))
@@ -3463,7 +3463,7 @@ var Ek = { exports: {} };
3463
3463
  const tt = R[X], it = R[j];
3464
3464
  if (A3(S, O, tt, it))
3465
3465
  return 0;
3466
- x = Math.min(x, I2(S, O, tt, it, g));
3466
+ x = Math.min(x, D2(S, O, tt, it, g));
3467
3467
  }
3468
3468
  }
3469
3469
  return x;
@@ -3477,9 +3477,9 @@ var Ek = { exports: {} };
3477
3477
  }
3478
3478
  function ln(u, c, f, g = 1 / 0) {
3479
3479
  const x = Ds(u), M = Ds(c);
3480
- if (g !== 1 / 0 && D2(x, M, f) >= g)
3480
+ if (g !== 1 / 0 && P2(x, M, f) >= g)
3481
3481
  return g;
3482
- if (O2(x, M)) {
3482
+ if (H2(x, M)) {
3483
3483
  if (ho(u, c))
3484
3484
  return 0;
3485
3485
  } else if (ho(c, u))
@@ -3493,7 +3493,7 @@ var Ek = { exports: {} };
3493
3493
  const Lt = it[_t], $t = it[st];
3494
3494
  if (A3(X, tt, Lt, $t))
3495
3495
  return 0;
3496
- S = Math.min(S, I2(X, tt, Lt, $t, f));
3496
+ S = Math.min(S, D2(X, tt, Lt, $t, f));
3497
3497
  }
3498
3498
  }
3499
3499
  return S;
@@ -3501,13 +3501,13 @@ var Ek = { exports: {} };
3501
3501
  function rn(u, c, f, g, x, M) {
3502
3502
  if (!M)
3503
3503
  return;
3504
- const S = D2(c6(g, M), x, f);
3504
+ const S = P2(c6(g, M), x, f);
3505
3505
  S < c && u.push([S, M, [0, 0]]);
3506
3506
  }
3507
3507
  function $o(u, c, f, g, x, M, S) {
3508
3508
  if (!M || !S)
3509
3509
  return;
3510
- const O = D2(c6(g, M), c6(x, S), f);
3510
+ const O = P2(c6(g, M), c6(x, S), f);
3511
3511
  O < c && u.push([O, M, S]);
3512
3512
  }
3513
3513
  function S3(u, c, f, g, x = 1 / 0) {
@@ -3521,7 +3521,7 @@ var Ek = { exports: {} };
3521
3521
  continue;
3522
3522
  const j = R[1], U = c ? 50 : 100;
3523
3523
  if (Ps(j) <= U) {
3524
- if (!P2(j, u.length))
3524
+ if (!O2(j, u.length))
3525
3525
  return NaN;
3526
3526
  if (c) {
3527
3527
  const X = wr(u, j, f, g);
@@ -3552,7 +3552,7 @@ var Ek = { exports: {} };
3552
3552
  continue;
3553
3553
  const j = R[1], U = R[2], X = c ? 50 : 100, tt = g ? 50 : 100;
3554
3554
  if (Ps(j) <= X && Ps(U) <= tt) {
3555
- if (!P2(j, u.length) && P2(U, f.length))
3555
+ if (!O2(j, u.length) && O2(U, f.length))
3556
3556
  return NaN;
3557
3557
  let it;
3558
3558
  if (c && g)
@@ -3755,7 +3755,7 @@ var Ek = { exports: {} };
3755
3755
  function u6(u, c) {
3756
3756
  return u in c;
3757
3757
  }
3758
- function V2(u, c) {
3758
+ function I2(u, c) {
3759
3759
  const f = c[u];
3760
3760
  return f === void 0 ? null : f;
3761
3761
  }
@@ -3926,7 +3926,7 @@ var Ek = { exports: {} };
3926
3926
  }], typeof: [br, [ur], (u, [c]) => nt(Yr(c.evaluate(u)))], "to-rgba": [rt(_e, 4), [Jn], (u, [c]) => {
3927
3927
  const [f, g, x, M] = c.evaluate(u).rgb;
3928
3928
  return [255 * f, 255 * g, 255 * x, M];
3929
- }], rgb: [Jn, [_e, _e, _e], Q2], rgba: [Jn, [_e, _e, _e, _e], Q2], has: { type: cr, overloads: [[[br], (u, [c]) => u6(c.evaluate(u), u.properties())], [[br, fi], (u, [c, f]) => u6(c.evaluate(u), f.evaluate(u))]] }, get: { type: ur, overloads: [[[br], (u, [c]) => V2(c.evaluate(u), u.properties())], [[br, fi], (u, [c, f]) => V2(c.evaluate(u), f.evaluate(u))]] }, "feature-state": [ur, [br], (u, [c]) => V2(c.evaluate(u), u.featureState || {})], properties: [fi, [], (u) => u.properties()], "geometry-type": [br, [], (u) => u.geometryType()], id: [ur, [], (u) => u.id()], zoom: [_e, [], (u) => u.globals.zoom], "heatmap-density": [_e, [], (u) => u.globals.heatmapDensity || 0], "line-progress": [_e, [], (u) => u.globals.lineProgress || 0], accumulated: [ur, [], (u) => u.globals.accumulated === void 0 ? null : u.globals.accumulated], "+": [_e, fo(_e), (u, c) => {
3929
+ }], rgb: [Jn, [_e, _e, _e], Q2], rgba: [Jn, [_e, _e, _e, _e], Q2], has: { type: cr, overloads: [[[br], (u, [c]) => u6(c.evaluate(u), u.properties())], [[br, fi], (u, [c, f]) => u6(c.evaluate(u), f.evaluate(u))]] }, get: { type: ur, overloads: [[[br], (u, [c]) => I2(c.evaluate(u), u.properties())], [[br, fi], (u, [c, f]) => I2(c.evaluate(u), f.evaluate(u))]] }, "feature-state": [ur, [br], (u, [c]) => I2(c.evaluate(u), u.featureState || {})], properties: [fi, [], (u) => u.properties()], "geometry-type": [br, [], (u) => u.geometryType()], id: [ur, [], (u) => u.id()], zoom: [_e, [], (u) => u.globals.zoom], "heatmap-density": [_e, [], (u) => u.globals.heatmapDensity || 0], "line-progress": [_e, [], (u) => u.globals.lineProgress || 0], accumulated: [ur, [], (u) => u.globals.accumulated === void 0 ? null : u.globals.accumulated], "+": [_e, fo(_e), (u, c) => {
3930
3930
  let f = 0;
3931
3931
  for (const g of c)
3932
3932
  f += g.evaluate(u);
@@ -4081,7 +4081,7 @@ var Ek = { exports: {} };
4081
4081
  g instanceof Gn ? c = g : !c && g ? c = new Gn("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : c && g && c !== g && (c = new Gn("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
4082
4082
  }), c;
4083
4083
  }
4084
- function R2(u) {
4084
+ function V2(u) {
4085
4085
  if (u === !0 || u === !1)
4086
4086
  return !0;
4087
4087
  if (!Array.isArray(u) || u.length === 0)
@@ -4105,7 +4105,7 @@ var Ek = { exports: {} };
4105
4105
  case "any":
4106
4106
  case "all":
4107
4107
  for (const c of u.slice(1))
4108
- if (!R2(c) && typeof c != "boolean")
4108
+ if (!V2(c) && typeof c != "boolean")
4109
4109
  return !1;
4110
4110
  return !0;
4111
4111
  default:
@@ -4116,7 +4116,7 @@ var Ek = { exports: {} };
4116
4116
  function Rs(u) {
4117
4117
  if (u == null)
4118
4118
  return { filter: () => !0, needGeometry: !1 };
4119
- R2(u) || (u = on(u));
4119
+ V2(u) || (u = on(u));
4120
4120
  const c = j1(u, mo);
4121
4121
  if (c.result === "error")
4122
4122
  throw new Error(c.value.map((f) => `${f.key}: ${f.message}`).join(", "));
@@ -4199,7 +4199,7 @@ var Ek = { exports: {} };
4199
4199
  c += `/${y1(u[f])}`;
4200
4200
  return c;
4201
4201
  }
4202
- function k2(u) {
4202
+ function R2(u) {
4203
4203
  const c = u.value;
4204
4204
  return c ? [new fe(u.key, c, "constants have been deprecated as of v8")] : [];
4205
4205
  }
@@ -4339,7 +4339,7 @@ var Ek = { exports: {} };
4339
4339
  return Array.isArray(g.values) ? g.values.indexOf(Qn(f)) === -1 && x.push(new fe(c, f, `expected one of [${g.values.join(", ")}], ${JSON.stringify(f)} found`)) : Object.keys(g.values).indexOf(Qn(f)) === -1 && x.push(new fe(c, f, `expected one of [${Object.keys(g.values).join(", ")}], ${JSON.stringify(f)} found`)), x;
4340
4340
  }
4341
4341
  function wa(u) {
4342
- return R2(X1(u.value)) ? yo(B1({}, u, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : O3(u);
4342
+ return V2(X1(u.value)) ? yo(B1({}, u, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : O3(u);
4343
4343
  }
4344
4344
  function O3(u) {
4345
4345
  const c = u.value, f = u.key;
@@ -4537,7 +4537,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4537
4537
  }, number: ks, color: function(u) {
4538
4538
  const c = u.key, f = u.value, g = Ct(f);
4539
4539
  return g !== "string" ? [new fe(c, f, `color expected, ${g} found`)] : Vr.parse(String(f)) ? [] : [new fe(c, f, `color expected, "${f}" found`)];
4540
- }, constants: k2, enum: Di, filter: wa, function: Uo, layer: l8, object: _1, source: T6, light: c8, sky: u8, terrain: h8, projection: function(u) {
4540
+ }, constants: R2, enum: Di, filter: wa, function: Uo, layer: l8, object: _1, source: T6, light: c8, sky: u8, terrain: h8, projection: function(u) {
4541
4541
  const c = u.value, f = u.styleSpec, g = f.projection, x = u.style, M = Ct(c);
4542
4542
  if (c === void 0)
4543
4543
  return [];
@@ -4582,7 +4582,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4582
4582
  }
4583
4583
  function g2(u, c = Ot) {
4584
4584
  let f = [];
4585
- return f = f.concat(Bs({ key: "", value: u, valueSpec: c.$root, styleSpec: c, style: u, validateSpec: Bs, objectElementValidators: { glyphs: Ch, "*": () => [] } })), u.constants && (f = f.concat(k2({ key: "constants", value: u.constants, style: u, styleSpec: c, validateSpec: Bs }))), T8(f);
4585
+ return f = f.concat(Bs({ key: "", value: u, valueSpec: c.$root, styleSpec: c, style: u, validateSpec: Bs, objectElementValidators: { glyphs: Ch, "*": () => [] } })), u.constants && (f = f.concat(R2({ key: "constants", value: u.constants, style: u, styleSpec: c, validateSpec: Bs }))), T8(f);
4586
4586
  }
4587
4587
  function _o(u) {
4588
4588
  return function(c) {
@@ -4592,12 +4592,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4592
4592
  function T8(u) {
4593
4593
  return [].concat(u).sort((c, f) => c.line - f.line);
4594
4594
  }
4595
- function B2(u) {
4595
+ function k2(u) {
4596
4596
  return function(...c) {
4597
4597
  return T8(u.apply(this, c));
4598
4598
  };
4599
4599
  }
4600
- g2.source = B2(_o(T6)), g2.sprite = B2(_o(f8)), g2.glyphs = B2(_o(Ch)), g2.light = B2(_o(c8)), g2.sky = B2(_o(u8)), g2.terrain = B2(_o(h8)), g2.layer = B2(_o(l8)), g2.filter = B2(_o(wa)), g2.paintProperty = B2(_o(Zo)), g2.layoutProperty = B2(_o(s8));
4600
+ g2.source = k2(_o(T6)), g2.sprite = k2(_o(f8)), g2.glyphs = k2(_o(Ch)), g2.light = k2(_o(c8)), g2.sky = k2(_o(u8)), g2.terrain = k2(_o(h8)), g2.layer = k2(_o(l8)), g2.filter = k2(_o(wa)), g2.paintProperty = k2(_o(Zo)), g2.layoutProperty = k2(_o(s8));
4601
4601
  const D3 = g2, Dg = D3.light, Ig = D3.sky, Hh = D3.paintProperty, Oh = D3.layoutProperty;
4602
4602
  function d8(u, c) {
4603
4603
  let f = !1;
@@ -5825,7 +5825,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5825
5825
  }
5826
5826
  }
5827
5827
  Be("SymbolLineVertexArray", K1);
5828
- class F2 extends v {
5828
+ class B2 extends v {
5829
5829
  get textAnchor() {
5830
5830
  return this._structArray.uint16[this._pos2 + 0];
5831
5831
  }
@@ -5836,10 +5836,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5836
5836
  return this._structArray.float32[this._pos4 + 2];
5837
5837
  }
5838
5838
  }
5839
- F2.prototype.size = 12;
5839
+ B2.prototype.size = 12;
5840
5840
  class Dn extends De {
5841
5841
  get(c) {
5842
- return new F2(this, c);
5842
+ return new B2(this, c);
5843
5843
  }
5844
5844
  }
5845
5845
  Be("TextAnchorOffsetArray", Dn);
@@ -5885,7 +5885,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5885
5885
  }
5886
5886
  class Ea extends Vt {
5887
5887
  }
5888
- class N2 extends Ut {
5888
+ class F2 extends Ut {
5889
5889
  }
5890
5890
  class $1 extends ve {
5891
5891
  }
@@ -6350,7 +6350,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6350
6350
  }
6351
6351
  class zg {
6352
6352
  constructor(c) {
6353
- this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((f) => f.id), this.index = c.index, this.hasPattern = !1, this.layoutVertexArray = new di(), this.indexArray = new N2(), this.segments = new jr(), this.programConfigurations = new y6(c.layers, c.zoom), this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
6353
+ this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((f) => f.id), this.index = c.index, this.hasPattern = !1, this.layoutVertexArray = new di(), this.indexArray = new F2(), this.segments = new jr(), this.programConfigurations = new y6(c.layers, c.zoom), this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
6354
6354
  }
6355
6355
  populate(c, f, g) {
6356
6356
  const x = this.layers[0], M = [];
@@ -6618,7 +6618,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6618
6618
  Gg(c, f, g, x, M, 1);
6619
6619
  }
6620
6620
  }
6621
- class j2 {
6621
+ class N2 {
6622
6622
  constructor(c, f) {
6623
6623
  qg(this, c, 4, f);
6624
6624
  }
@@ -6629,14 +6629,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6629
6629
  f ? this.data.set(c) : this.data = c instanceof Uint8ClampedArray ? new Uint8Array(c.buffer) : c;
6630
6630
  }
6631
6631
  clone() {
6632
- return new j2({ width: this.width, height: this.height }, new Uint8Array(this.data));
6632
+ return new N2({ width: this.width, height: this.height }, new Uint8Array(this.data));
6633
6633
  }
6634
6634
  static copy(c, f, g, x, M) {
6635
6635
  Gg(c, f, g, x, M, 4);
6636
6636
  }
6637
6637
  }
6638
6638
  function kE(u) {
6639
- const c = {}, f = u.resolution || 256, g = u.clips ? u.clips.length : 1, x = u.image || new j2({ width: f, height: g });
6639
+ const c = {}, f = u.resolution || 256, g = u.clips ? u.clips.length : 1, x = u.image || new N2({ width: f, height: g });
6640
6640
  if (Math.log(f) / Math.LN2 % 1 != 0)
6641
6641
  throw new Error(`width is not a power of 2 - ${f}`);
6642
6642
  const M = (S, O, R) => {
@@ -6655,7 +6655,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6655
6655
  M(0, O, S / (f - 1));
6656
6656
  return x;
6657
6657
  }
6658
- Be("AlphaImage", A8), Be("RGBAImage", j2);
6658
+ Be("AlphaImage", A8), Be("RGBAImage", N2);
6659
6659
  const Xg = "big-fb";
6660
6660
  class hU extends d {
6661
6661
  createBucket(c) {
@@ -6978,7 +6978,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6978
6978
  }
6979
6979
  class ey {
6980
6980
  constructor(c) {
6981
- this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((f) => f.id), this.index = c.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new xo(), this.indexArray = new N2(), this.indexArray2 = new $1(), this.programConfigurations = new y6(c.layers, c.zoom), this.segments = new jr(), this.segments2 = new jr(), this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
6981
+ this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((f) => f.id), this.index = c.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new xo(), this.indexArray = new F2(), this.indexArray2 = new $1(), this.programConfigurations = new y6(c.layers, c.zoom), this.segments = new jr(), this.segments2 = new jr(), this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
6982
6982
  }
6983
6983
  populate(c, f, g) {
6984
6984
  this.hasPattern = Jg("fill", this.layers, f);
@@ -7195,7 +7195,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7195
7195
  }
7196
7196
  class ny {
7197
7197
  constructor(c) {
7198
- this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((f) => f.id), this.index = c.index, this.hasPattern = !1, this.layoutVertexArray = new Us(), this.centroidVertexArray = new Y1(), this.indexArray = new N2(), this.programConfigurations = new y6(c.layers, c.zoom), this.segments = new jr(), this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
7198
+ this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((f) => f.id), this.index = c.index, this.hasPattern = !1, this.layoutVertexArray = new Us(), this.centroidVertexArray = new Y1(), this.indexArray = new F2(), this.programConfigurations = new y6(c.layers, c.zoom), this.segments = new jr(), this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
7199
7199
  }
7200
7200
  populate(c, f, g) {
7201
7201
  this.features = [], this.hasPattern = Jg("fill-extrusion", this.layers, f);
@@ -7366,7 +7366,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7366
7366
  constructor(c) {
7367
7367
  this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((f) => f.id), this.index = c.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((f) => {
7368
7368
  this.gradients[f.id] = {};
7369
- }), this.layoutVertexArray = new l0(), this.layoutVertexArray2 = new Zs(), this.indexArray = new N2(), this.programConfigurations = new y6(c.layers, c.zoom), this.segments = new jr(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
7369
+ }), this.layoutVertexArray = new l0(), this.layoutVertexArray2 = new Zs(), this.indexArray = new F2(), this.programConfigurations = new y6(c.layers, c.zoom), this.segments = new jr(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((f) => f.isStateDependent()).map((f) => f.id);
7370
7370
  }
7371
7371
  populate(c, f, g) {
7372
7372
  this.hasPattern = Jg("line", this.layers, f);
@@ -7999,14 +7999,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7999
7999
  this.haveRenderCallbacks = [];
8000
8000
  const M = [];
8001
8001
  this.addImages(c, g, M), this.addImages(f, x, M);
8002
- const { w: S, h: O } = fM(M), R = new j2({ width: S || 1, height: O || 1 });
8002
+ const { w: S, h: O } = fM(M), R = new N2({ width: S || 1, height: O || 1 });
8003
8003
  for (const j in c) {
8004
8004
  const U = c[j], X = g[j].paddedRect;
8005
- j2.copy(U.data, R, { x: 0, y: 0 }, { x: X.x + n2, y: X.y + n2 }, U.data);
8005
+ N2.copy(U.data, R, { x: 0, y: 0 }, { x: X.x + n2, y: X.y + n2 }, U.data);
8006
8006
  }
8007
8007
  for (const j in f) {
8008
8008
  const U = f[j], X = x[j].paddedRect, tt = X.x + n2, it = X.y + n2, st = U.data.width, ft = U.data.height;
8009
- j2.copy(U.data, R, { x: 0, y: 0 }, { x: tt, y: it }, U.data), j2.copy(U.data, R, { x: 0, y: ft - 1 }, { x: tt, y: it - 1 }, { width: st, height: 1 }), j2.copy(U.data, R, { x: 0, y: 0 }, { x: tt, y: it + ft }, { width: st, height: 1 }), j2.copy(U.data, R, { x: st - 1, y: 0 }, { x: tt - 1, y: it }, { width: 1, height: ft }), j2.copy(U.data, R, { x: 0, y: 0 }, { x: tt + st, y: it }, { width: 1, height: ft });
8009
+ N2.copy(U.data, R, { x: 0, y: 0 }, { x: tt, y: it }, U.data), N2.copy(U.data, R, { x: 0, y: ft - 1 }, { x: tt, y: it - 1 }, { width: st, height: 1 }), N2.copy(U.data, R, { x: 0, y: 0 }, { x: tt, y: it + ft }, { width: st, height: 1 }), N2.copy(U.data, R, { x: st - 1, y: 0 }, { x: tt - 1, y: it }, { width: 1, height: ft }), N2.copy(U.data, R, { x: 0, y: 0 }, { x: tt + st, y: it }, { width: 1, height: ft });
8010
8010
  }
8011
8011
  this.image = R, this.iconPositions = g, this.patternPositions = x;
8012
8012
  }
@@ -8165,16 +8165,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8165
8165
  let b2 = 0, r1 = null, L0 = null, Ca = null, Ha = A1;
8166
8166
  const Lo = !(Ve === a.ah.horizontal || !er && !y8(In) || er && (Kh[In] || (P1 = In, new RegExp("\\p{sc=Arab}", "u").test(String.fromCodePoint(P1)))));
8167
8167
  if (Wr.imageName) {
8168
- const U2 = lr[Wr.imageName];
8169
- if (!U2)
8168
+ const z2 = lr[Wr.imageName];
8169
+ if (!z2)
8170
8170
  continue;
8171
- Ca = Wr.imageName, Xt.iconsInText = Xt.iconsInText || !0, L0 = U2.paddedRect;
8172
- const z1 = U2.displaySize;
8171
+ Ca = Wr.imageName, Xt.iconsInText = Xt.iconsInText || !0, L0 = z2.paddedRect;
8172
+ const z1 = z2.displaySize;
8173
8173
  Wr.scale = Wr.scale * A1 / Ge, r1 = { width: z1[0], height: z1[1], left: n2, top: -hM, advance: Lo ? z1[1] : z1[0] }, b2 = Qi + (A1 - z1[1] * Wr.scale), Ha = r1.advance;
8174
8174
  const k3 = Lo ? z1[0] * Wr.scale - A1 * D1 : z1[1] * Wr.scale - A1 * D1;
8175
8175
  k3 > 0 && k3 > ni && (ni = k3);
8176
8176
  } else {
8177
- const U2 = Pe[Wr.fontStack], z1 = U2 && U2[In];
8177
+ const z2 = Pe[Wr.fontStack], z1 = z2 && z2[In];
8178
8178
  if (z1 && z1.rect)
8179
8179
  L0 = z1.rect, r1 = z1.metrics;
8180
8180
  else {
@@ -8188,15 +8188,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8188
8188
  Lo ? (Xt.verticalizable = !0, Fi.push({ glyph: In, imageName: Ca, x: mr, y: pn + b2, vertical: Lo, scale: Wr.scale, fontStack: Wr.fontStack, sectionIndex: vn, metrics: r1, rect: L0 }), mr += Ha * Wr.scale + ne) : (Fi.push({ glyph: In, imageName: Ca, x: mr, y: pn + b2, vertical: Lo, scale: Wr.scale, fontStack: Wr.fontStack, sectionIndex: vn, metrics: r1, rect: L0 }), mr += r1.advance * Wr.scale + ne);
8189
8189
  }
8190
8190
  Fi.length !== 0 && (Tn = Math.max(mr - ne, Tn), pZ(Fi, 0, Fi.length - 1, bo, ni)), mr = 0;
8191
- const z2 = we * D1 + ni;
8192
- ri.lineOffset = Math.max(ni, Qi), pn += z2, O1 = Math.max(z2, O1), ++ei;
8191
+ const $2 = we * D1 + ni;
8192
+ ri.lineOffset = Math.max(ni, Qi), pn += $2, O1 = Math.max($2, O1), ++ei;
8193
8193
  }
8194
8194
  var P1;
8195
8195
  const Ri = pn - P8, { horizontalAlign: ki, verticalAlign: Bi } = uy(Ke);
8196
- (function(a1, D1, Qi, ri, Fi, ni, z2, i2, Wr) {
8196
+ (function(a1, D1, Qi, ri, Fi, ni, $2, i2, Wr) {
8197
8197
  const vn = (D1 - Qi) * Fi;
8198
8198
  let In = 0;
8199
- In = ni !== z2 ? -i2 * ri - P8 : (-ri * Wr + 0.5) * z2;
8199
+ In = ni !== $2 ? -i2 * ri - P8 : (-ri * Wr + 0.5) * $2;
8200
8200
  for (const b2 of a1)
8201
8201
  for (const r1 of b2.positionedGlyphs)
8202
8202
  r1.x += vn, r1.y += In;
@@ -8367,7 +8367,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8367
8367
  }
8368
8368
  class Ty {
8369
8369
  constructor(c) {
8370
- this.layoutVertexArray = new c0(), this.indexArray = new N2(), this.programConfigurations = c, this.segments = new jr(), this.dynamicLayoutVertexArray = new x8(), this.opacityVertexArray = new v2(), this.hasVisibleVertices = !1, this.placedSymbolArray = new On();
8370
+ this.layoutVertexArray = new c0(), this.indexArray = new F2(), this.programConfigurations = c, this.segments = new jr(), this.dynamicLayoutVertexArray = new x8(), this.opacityVertexArray = new v2(), this.hasVisibleVertices = !1, this.placedSymbolArray = new On();
8371
8371
  }
8372
8372
  isEmpty() {
8373
8373
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
@@ -8883,14 +8883,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8883
8883
  this.wrap = c, this.canonical = f, this.key = R8(c, f.z, f.z, f.x, f.y);
8884
8884
  }
8885
8885
  }
8886
- class $2 {
8886
+ class j2 {
8887
8887
  constructor(c, f, g, x, M) {
8888
8888
  if (c < g)
8889
8889
  throw new Error(`overscaledZ should be >= z; overscaledZ = ${c}; z = ${g}`);
8890
8890
  this.overscaledZ = c, this.wrap = f, this.canonical = new gy(g, +x, +M), this.key = R8(f, c, g, x, M);
8891
8891
  }
8892
8892
  clone() {
8893
- return new $2(this.overscaledZ, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y);
8893
+ return new j2(this.overscaledZ, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y);
8894
8894
  }
8895
8895
  equals(c) {
8896
8896
  return this.overscaledZ === c.overscaledZ && this.wrap === c.wrap && this.canonical.equals(c.canonical);
@@ -8899,7 +8899,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8899
8899
  if (c > this.overscaledZ)
8900
8900
  throw new Error(`targetZ > this.overscaledZ; targetZ = ${c}; overscaledZ = ${this.overscaledZ}`);
8901
8901
  const f = this.canonical.z - c;
8902
- return c > this.canonical.z ? new $2(c, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y) : new $2(c, this.wrap, c, this.canonical.x >> f, this.canonical.y >> f);
8902
+ return c > this.canonical.z ? new j2(c, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y) : new j2(c, this.wrap, c, this.canonical.x >> f, this.canonical.y >> f);
8903
8903
  }
8904
8904
  calculateScaledKey(c, f) {
8905
8905
  if (c > this.overscaledZ)
@@ -8915,18 +8915,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8915
8915
  }
8916
8916
  children(c) {
8917
8917
  if (this.overscaledZ >= c)
8918
- return [new $2(this.overscaledZ + 1, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y)];
8918
+ return [new j2(this.overscaledZ + 1, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y)];
8919
8919
  const f = this.canonical.z + 1, g = 2 * this.canonical.x, x = 2 * this.canonical.y;
8920
- return [new $2(f, this.wrap, f, g, x), new $2(f, this.wrap, f, g + 1, x), new $2(f, this.wrap, f, g, x + 1), new $2(f, this.wrap, f, g + 1, x + 1)];
8920
+ return [new j2(f, this.wrap, f, g, x), new j2(f, this.wrap, f, g + 1, x), new j2(f, this.wrap, f, g, x + 1), new j2(f, this.wrap, f, g + 1, x + 1)];
8921
8921
  }
8922
8922
  isLessThan(c) {
8923
8923
  return this.wrap < c.wrap || !(this.wrap > c.wrap) && (this.overscaledZ < c.overscaledZ || !(this.overscaledZ > c.overscaledZ) && (this.canonical.x < c.canonical.x || !(this.canonical.x > c.canonical.x) && this.canonical.y < c.canonical.y));
8924
8924
  }
8925
8925
  wrapped() {
8926
- return new $2(this.overscaledZ, 0, this.canonical.z, this.canonical.x, this.canonical.y);
8926
+ return new j2(this.overscaledZ, 0, this.canonical.z, this.canonical.x, this.canonical.y);
8927
8927
  }
8928
8928
  unwrapTo(c) {
8929
- return new $2(this.overscaledZ, c, this.canonical.z, this.canonical.x, this.canonical.y);
8929
+ return new j2(this.overscaledZ, c, this.canonical.z, this.canonical.x, this.canonical.y);
8930
8930
  }
8931
8931
  overscaleFactor() {
8932
8932
  return Math.pow(2, this.overscaledZ - this.canonical.z);
@@ -8946,7 +8946,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8946
8946
  const M = 1 << f;
8947
8947
  return (M * M * u + M * x + g).toString(36) + f.toString(36) + c.toString(36);
8948
8948
  }
8949
- Be("CanonicalTileID", gy), Be("OverscaledTileID", $2, { omit: ["posMatrix"] });
8949
+ Be("CanonicalTileID", gy), Be("OverscaledTileID", j2, { omit: ["posMatrix"] });
8950
8950
  class PM {
8951
8951
  constructor(c, f, g, x = 1, M = 1, S = 1, O = 0) {
8952
8952
  if (this.uid = c, f.height !== f.width)
@@ -8990,7 +8990,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8990
8990
  return c * this.redFactor + f * this.greenFactor + g * this.blueFactor - this.baseShift;
8991
8991
  }
8992
8992
  getPixels() {
8993
- return new j2({ width: this.stride, height: this.stride }, new Uint8Array(this.data.buffer));
8993
+ return new N2({ width: this.stride, height: this.stride }, new Uint8Array(this.data.buffer));
8994
8994
  }
8995
8995
  backfillBorder(c, f, g) {
8996
8996
  if (this.dim !== c.dim)
@@ -9285,8 +9285,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9285
9285
  const Wr = Math.sin(ni), vn = Math.cos(ni), In = [vn, -Wr, Wr, vn];
9286
9286
  Bi._matMult(In), a1._matMult(In), Qi._matMult(In), D1._matMult(In);
9287
9287
  }
9288
- const z2 = ne.stretch + ne.fixed, i2 = er.stretch + er.fixed;
9289
- return { tl: Bi, tr: a1, bl: Qi, br: D1, tex: { x: M.paddedRect.x + x0 + z2, y: M.paddedRect.y + x0 + i2, w: Ge.stretch + Ge.fixed - z2, h: mr.stretch + mr.fixed - i2 }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: ri, pixelOffsetBR: Fi, minFontScaleX: ue / S / Ke, minFontScaleY: lr / S / Ne, isSDF: f };
9288
+ const $2 = ne.stretch + ne.fixed, i2 = er.stretch + er.fixed;
9289
+ return { tl: Bi, tr: a1, bl: Qi, br: D1, tex: { x: M.paddedRect.x + x0 + $2, y: M.paddedRect.y + x0 + i2, w: Ge.stretch + Ge.fixed - $2, h: mr.stretch + mr.fixed - i2 }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: ri, pixelOffsetBR: Fi, minFontScaleX: ue / S / Ke, minFontScaleY: lr / S / Ne, isSDF: f };
9290
9290
  };
9291
9291
  if (g && (M.stretchX || M.stretchY)) {
9292
9292
  const ne = ZM(U, ft, it), er = ZM(X, _t, st);
@@ -9538,43 +9538,43 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9538
9538
  let Ne;
9539
9539
  g && Ke !== "none" && (u.allowVerticalPlacement && f.vertical && (Ne = yM(g, f.vertical, Ke, tt.get("icon-text-fit-padding"), it, ft)), st && (g = yM(g, st, Ke, tt.get("icon-text-fit-padding"), it, ft)));
9540
9540
  const Ve = (ne, er) => {
9541
- er.x < 0 || er.x >= v1 || er.y < 0 || er.y >= v1 || function(Ge, mr, pn, Tn, O1, bo, ei, P1, Ri, ki, Bi, a1, D1, Qi, ri, Fi, ni, z2, i2, Wr, vn, In, b2, r1, L0) {
9541
+ er.x < 0 || er.x >= v1 || er.y < 0 || er.y >= v1 || function(Ge, mr, pn, Tn, O1, bo, ei, P1, Ri, ki, Bi, a1, D1, Qi, ri, Fi, ni, $2, i2, Wr, vn, In, b2, r1, L0) {
9542
9542
  const Ca = Ge.addToLineVertexArray(mr, pn);
9543
- let Ha, Lo, U2, z1, k3 = 0, F8 = 0, tS = 0, eS = 0, My = -1, Sy = -1;
9543
+ let Ha, Lo, z2, z1, k3 = 0, F8 = 0, tS = 0, eS = 0, My = -1, Sy = -1;
9544
9544
  const B3 = {};
9545
9545
  let rS = u0("");
9546
9546
  if (Ge.allowVerticalPlacement && Tn.vertical) {
9547
9547
  const pi = P1.layout.get("text-rotate").evaluate(vn, {}, r1) + 90;
9548
- U2 = new nf(Ri, mr, ki, Bi, a1, Tn.vertical, D1, Qi, ri, pi), ei && (z1 = new nf(Ri, mr, ki, Bi, a1, ei, ni, z2, ri, pi));
9548
+ z2 = new nf(Ri, mr, ki, Bi, a1, Tn.vertical, D1, Qi, ri, pi), ei && (z1 = new nf(Ri, mr, ki, Bi, a1, ei, ni, $2, ri, pi));
9549
9549
  }
9550
9550
  if (O1) {
9551
- const pi = P1.layout.get("icon-rotate").evaluate(vn, {}), Z2 = P1.layout.get("icon-text-fit") !== "none", b6 = UM(O1, pi, b2, Z2), Go = ei ? UM(ei, pi, b2, Z2) : void 0;
9552
- Lo = new nf(Ri, mr, ki, Bi, a1, O1, ni, z2, !1, pi), k3 = 4 * b6.length;
9551
+ const pi = P1.layout.get("icon-rotate").evaluate(vn, {}), U2 = P1.layout.get("icon-text-fit") !== "none", b6 = UM(O1, pi, b2, U2), Go = ei ? UM(ei, pi, b2, U2) : void 0;
9552
+ Lo = new nf(Ri, mr, ki, Bi, a1, O1, ni, $2, !1, pi), k3 = 4 * b6.length;
9553
9553
  const L6 = Ge.iconSizeData;
9554
9554
  let Oa = null;
9555
9555
  L6.kind === "source" ? (Oa = [Sa * P1.layout.get("icon-size").evaluate(vn, {})], Oa[0] > Js && Zt(`${Ge.layerIds[0]}: Value for "icon-size" is >= ${I8}. Reduce your "icon-size".`)) : L6.kind === "composite" && (Oa = [Sa * In.compositeIconSizes[0].evaluate(vn, {}, r1), Sa * In.compositeIconSizes[1].evaluate(vn, {}, r1)], (Oa[0] > Js || Oa[1] > Js) && Zt(`${Ge.layerIds[0]}: Value for "icon-size" is >= ${I8}. Reduce your "icon-size".`)), Ge.addSymbols(Ge.icon, b6, Oa, Wr, i2, vn, a.ah.none, mr, Ca.lineStartIndex, Ca.lineLength, -1, r1), My = Ge.icon.placedSymbolArray.length - 1, Go && (F8 = 4 * Go.length, Ge.addSymbols(Ge.icon, Go, Oa, Wr, i2, vn, a.ah.vertical, mr, Ca.lineStartIndex, Ca.lineLength, -1, r1), Sy = Ge.icon.placedSymbolArray.length - 1);
9556
9556
  }
9557
9557
  const nS = Object.keys(Tn.horizontal);
9558
9558
  for (const pi of nS) {
9559
- const Z2 = Tn.horizontal[pi];
9559
+ const U2 = Tn.horizontal[pi];
9560
9560
  if (!Ha) {
9561
- rS = u0(Z2.text);
9561
+ rS = u0(U2.text);
9562
9562
  const Go = P1.layout.get("text-rotate").evaluate(vn, {}, r1);
9563
- Ha = new nf(Ri, mr, ki, Bi, a1, Z2, D1, Qi, ri, Go);
9563
+ Ha = new nf(Ri, mr, ki, Bi, a1, U2, D1, Qi, ri, Go);
9564
9564
  }
9565
- const b6 = Z2.positionedLines.length === 1;
9566
- if (tS += GM(Ge, mr, Z2, bo, P1, ri, vn, Fi, Ca, Tn.vertical ? a.ah.horizontal : a.ah.horizontalOnly, b6 ? nS : [pi], B3, My, In, r1), b6)
9565
+ const b6 = U2.positionedLines.length === 1;
9566
+ if (tS += GM(Ge, mr, U2, bo, P1, ri, vn, Fi, Ca, Tn.vertical ? a.ah.horizontal : a.ah.horizontalOnly, b6 ? nS : [pi], B3, My, In, r1), b6)
9567
9567
  break;
9568
9568
  }
9569
9569
  Tn.vertical && (eS += GM(Ge, mr, Tn.vertical, bo, P1, ri, vn, Fi, Ca, a.ah.vertical, ["vertical"], B3, Sy, In, r1));
9570
- const VZ = Ha ? Ha.boxStartIndex : Ge.collisionBoxArray.length, RZ = Ha ? Ha.boxEndIndex : Ge.collisionBoxArray.length, kZ = U2 ? U2.boxStartIndex : Ge.collisionBoxArray.length, BZ = U2 ? U2.boxEndIndex : Ge.collisionBoxArray.length, FZ = Lo ? Lo.boxStartIndex : Ge.collisionBoxArray.length, NZ = Lo ? Lo.boxEndIndex : Ge.collisionBoxArray.length, jZ = z1 ? z1.boxStartIndex : Ge.collisionBoxArray.length, $Z = z1 ? z1.boxEndIndex : Ge.collisionBoxArray.length;
9570
+ const VZ = Ha ? Ha.boxStartIndex : Ge.collisionBoxArray.length, RZ = Ha ? Ha.boxEndIndex : Ge.collisionBoxArray.length, kZ = z2 ? z2.boxStartIndex : Ge.collisionBoxArray.length, BZ = z2 ? z2.boxEndIndex : Ge.collisionBoxArray.length, FZ = Lo ? Lo.boxStartIndex : Ge.collisionBoxArray.length, NZ = Lo ? Lo.boxEndIndex : Ge.collisionBoxArray.length, jZ = z1 ? z1.boxStartIndex : Ge.collisionBoxArray.length, $Z = z1 ? z1.boxEndIndex : Ge.collisionBoxArray.length;
9571
9571
  let qo = -1;
9572
- const af = (pi, Z2) => pi && pi.circleDiameter ? Math.max(pi.circleDiameter, Z2) : Z2;
9573
- qo = af(Ha, qo), qo = af(U2, qo), qo = af(Lo, qo), qo = af(z1, qo);
9572
+ const af = (pi, U2) => pi && pi.circleDiameter ? Math.max(pi.circleDiameter, U2) : U2;
9573
+ qo = af(Ha, qo), qo = af(z2, qo), qo = af(Lo, qo), qo = af(z1, qo);
9574
9574
  const iS = qo > -1 ? 1 : 0;
9575
9575
  iS && (qo *= L0 / A1), Ge.glyphOffsetArray.length >= v0.MAX_GLYPHS && Zt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), vn.sortKey !== void 0 && Ge.addToSortKeyRanges(Ge.symbolInstances.length, vn.sortKey);
9576
- const zZ = qM(P1, vn, r1), [UZ, ZZ] = function(pi, Z2) {
9577
- const b6 = pi.length, Go = Z2 == null ? void 0 : Z2.values;
9576
+ const zZ = qM(P1, vn, r1), [UZ, ZZ] = function(pi, U2) {
9577
+ const b6 = pi.length, Go = U2 == null ? void 0 : U2.values;
9578
9578
  if ((Go == null ? void 0 : Go.length) > 0)
9579
9579
  for (let L6 = 0; L6 < Go.length; L6 += 2) {
9580
9580
  const Oa = Go[L6 + 1];
@@ -9636,8 +9636,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9636
9636
  const Wr = Math.sin(we), vn = Math.cos(we), In = [vn, -Wr, Wr, vn];
9637
9637
  Qi._matMult(In), ri._matMult(In), Fi._matMult(In), ni._matMult(In);
9638
9638
  }
9639
- const z2 = new p(0, 0), i2 = new p(0, 0);
9640
- Ke.push({ tl: Qi, tr: ri, bl: Fi, br: ni, tex: ne, writingMode: Ht.writingMode, glyphOffset: bo, sectionIndex: Ve.sectionIndex, isSDF: Ge, pixelOffsetTL: z2, pixelOffsetBR: i2, minFontScaleX: 0, minFontScaleY: 0 });
9639
+ const $2 = new p(0, 0), i2 = new p(0, 0);
9640
+ Ke.push({ tl: Qi, tr: ri, bl: Fi, br: ni, tex: ne, writingMode: Ht.writingMode, glyphOffset: bo, sectionIndex: Ve.sectionIndex, isSDF: Ge, pixelOffsetTL: $2, pixelOffsetBR: i2, minFontScaleX: 0, minFontScaleY: 0 });
9641
9641
  }
9642
9642
  return Ke;
9643
9643
  }(0, f, O, x, M, S, g, u.allowVerticalPlacement), _t = u.textSizeData;
@@ -9877,7 +9877,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9877
9877
  x in u && (f[x] = u[x]);
9878
9878
  }
9879
9879
  return f;
9880
- }, a.N = t4, a.O = MM, a.P = p, a.Q = SM, a.R = j2, a.S = $2, a.T = o0, a.U = E, a.V = H, a.W = Mn, a.X = v1, a.Y = D, a.Z = V8, a._ = s, a.a = Je, a.a$ = function(u, c) {
9880
+ }, a.N = t4, a.O = MM, a.P = p, a.Q = SM, a.R = N2, a.S = j2, a.T = o0, a.U = E, a.V = H, a.W = Mn, a.X = v1, a.Y = D, a.Z = V8, a._ = s, a.a = Je, a.a$ = function(u, c) {
9881
9881
  var f = u[0], g = u[1], x = u[2], M = u[3], S = u[4], O = u[5], R = u[6], j = u[7], U = u[8], X = u[9], tt = u[10], it = u[11], st = u[12], ft = u[13], _t = u[14], Lt = u[15], $t = c[0], Ht = c[1], kt = c[2], Xt = c[3], ue = c[4], Pe = c[5], lr = c[6], Se = c[7], we = c[8], Ke = c[9], Ne = c[10], Ve = c[11], ne = c[12], er = c[13], Ge = c[14], mr = c[15];
9882
9882
  return Math.abs(f - $t) <= Vi * Math.max(1, Math.abs(f), Math.abs($t)) && Math.abs(g - Ht) <= Vi * Math.max(1, Math.abs(g), Math.abs(Ht)) && Math.abs(x - kt) <= Vi * Math.max(1, Math.abs(x), Math.abs(kt)) && Math.abs(M - Xt) <= Vi * Math.max(1, Math.abs(M), Math.abs(Xt)) && Math.abs(S - ue) <= Vi * Math.max(1, Math.abs(S), Math.abs(ue)) && Math.abs(O - Pe) <= Vi * Math.max(1, Math.abs(O), Math.abs(Pe)) && Math.abs(R - lr) <= Vi * Math.max(1, Math.abs(R), Math.abs(lr)) && Math.abs(j - Se) <= Vi * Math.max(1, Math.abs(j), Math.abs(Se)) && Math.abs(U - we) <= Vi * Math.max(1, Math.abs(U), Math.abs(we)) && Math.abs(X - Ke) <= Vi * Math.max(1, Math.abs(X), Math.abs(Ke)) && Math.abs(tt - Ne) <= Vi * Math.max(1, Math.abs(tt), Math.abs(Ne)) && Math.abs(it - Ve) <= Vi * Math.max(1, Math.abs(it), Math.abs(Ve)) && Math.abs(st - ne) <= Vi * Math.max(1, Math.abs(st), Math.abs(ne)) && Math.abs(ft - er) <= Vi * Math.max(1, Math.abs(ft), Math.abs(er)) && Math.abs(_t - Ge) <= Vi * Math.max(1, Math.abs(_t), Math.abs(Ge)) && Math.abs(Lt - mr) <= Vi * Math.max(1, Math.abs(Lt), Math.abs(mr));
9883
9883
  }, a.a0 = jr, a.a1 = gy, a.a2 = fe, a.a3 = (u) => {
@@ -10019,7 +10019,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10019
10019
  }, a.aS = JU, a.aT = class extends Ut {
10020
10020
  }, a.aU = Xg, a.aV = function(u) {
10021
10021
  return u <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(u) / Math.LN2));
10022
- }, a.aW = kE, a.aX = Y1, a.aY = N2, a.aZ = class extends Ze {
10022
+ }, a.aW = kE, a.aX = Y1, a.aY = F2, a.aZ = class extends Ze {
10023
10023
  }, a.a_ = function(u, c) {
10024
10024
  return u[0] === c[0] && u[1] === c[1] && u[2] === c[2] && u[3] === c[3] && u[4] === c[4] && u[5] === c[5] && u[6] === c[6] && u[7] === c[7] && u[8] === c[8] && u[9] === c[9] && u[10] === c[10] && u[11] === c[11] && u[12] === c[12] && u[13] === c[13] && u[14] === c[14] && u[15] === c[15];
10025
10025
  }, a.aa = function(u) {
@@ -13898,7 +13898,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13898
13898
  let kr = 0;
13899
13899
  kr = Ze.length <= 0.5 * De ? 1 : Math.ceil(Ze.paddedLength / pr) + 1;
13900
13900
  for (let Pn = 0; Pn < kr; Pn++) {
13901
- const K1 = Pn / Math.max(kr - 1, 1), F2 = Ze.lerp(K1), Dn = F2.x + fr, Ii = F2.y + fr;
13901
+ const K1 = Pn / Math.max(kr - 1, 1), B2 = Ze.lerp(K1), Dn = B2.x + fr, Ii = B2.y + fr;
13902
13902
  Et.push(Dn, Ii, De, 0);
13903
13903
  const Ti = Dn - De, Y1 = Ii - De, di = Dn + De, xo = Ii + De;
13904
13904
  if (Ae = Ae && this.isOffscreen(Ti, Y1, di, xo), pe = pe || this.isInsideGrid(Ti, Y1, di, xo), l !== "always" && this.grid.hitTestCircle(Dn, Ii, De, l, at) && (ie = !0, !Y))
@@ -14086,7 +14086,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14086
14086
  return;
14087
14087
  if (Tt)
14088
14088
  return void (this.placements[Le.crossTileID] = new Qr(!1, !1, !1));
14089
- let kr = !1, Pn = !1, K1 = !0, F2 = null, Dn = { box: null, placeable: !1, offscreen: null }, Ii = { box: null, placeable: !1, offscreen: null }, Ti = null, Y1 = null, di = null, xo = 0, Us = 0, l0 = 0;
14089
+ let kr = !1, Pn = !1, K1 = !0, B2 = null, Dn = { box: null, placeable: !1, offscreen: null }, Ii = { box: null, placeable: !1, offscreen: null }, Ti = null, Y1 = null, di = null, xo = 0, Us = 0, l0 = 0;
14090
14090
  He.textFeatureIndex ? xo = He.textFeatureIndex : Le.useRuntimeCollisionCircles && (xo = Le.featureIndex), He.verticalTextFeatureIndex && (Us = He.verticalTextFeatureIndex);
14091
14091
  const Zs = He.textBox;
14092
14092
  if (Zs) {
@@ -14104,8 +14104,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14104
14104
  break;
14105
14105
  } else
14106
14106
  Dn = $1();
14107
- }, Ea = Le.textAnchorOffsetStartIndex, N2 = Le.textAnchorOffsetEndIndex;
14108
- if (N2 === Ea) {
14107
+ }, Ea = Le.textAnchorOffsetStartIndex, F2 = Le.textAnchorOffsetEndIndex;
14108
+ if (F2 === Ea) {
14109
14109
  const $1 = (J1, r2) => {
14110
14110
  const jr = this.collisionIndex.placeCollisionBox(J1, yt, at, N, W, pe, ie, D, wt.predicate, Ze);
14111
14111
  return jr && jr.placeable && (this.markUsedOrientation(v, r2, Le), this.placedOrientations[Le.crossTileID] = r2), jr;
@@ -14121,13 +14121,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14121
14121
  let Ma = null, Bh = yt === "never" ? 1 : 2, u0 = "never";
14122
14122
  $1 && Bh++;
14123
14123
  for (let m6 = 0; m6 < Bh; m6++) {
14124
- for (let h0 = Ea; h0 < N2; h0++) {
14124
+ for (let h0 = Ea; h0 < F2; h0++) {
14125
14125
  const f0 = v.textAnchorOffsets.get(h0);
14126
14126
  if ($1 && f0.textAnchor !== $1)
14127
14127
  continue;
14128
14128
  const Gs = this.attemptAnchorPlacement(f0, jr, qs, Rh, Ng, ie, pe, at, N, W, wt, u0, Le, v, Ws, D, k, kh, Ze);
14129
14129
  if (Gs && (Ma = Gs.placedGlyphBoxes, Ma && Ma.placeable))
14130
- return kr = !0, F2 = Gs.shift, Ma;
14130
+ return kr = !0, B2 = Gs.shift, Ma;
14131
14131
  }
14132
14132
  $1 ? $1 = null : u0 = yt;
14133
14133
  }
@@ -14149,7 +14149,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14149
14149
  Y1 = this.collisionIndex.placeCollisionCircles(yt, v2, v.lineVertexArray, v.glyphOffsetArray, x2, N, W, Y, J, _, pe, wt.predicate, Le.collisionCircleDiameter, Ea, D, Ze), Y1.circles.length && Y1.collisionDetected && !_ && s.w("Collisions detected, but collision boxes are not shown"), kr = It || Y1.circles.length > 0 && !Y1.collisionDetected, K1 = K1 && Y1.offscreen;
14150
14150
  }
14151
14151
  if (He.iconFeatureIndex && (l0 = He.iconFeatureIndex), He.iconBox) {
14152
- const v2 = (x2) => this.collisionIndex.placeCollisionBox(x2, Vt, at, N, W, pe, ie, k, wt.predicate, Ze, Ae && F2 ? F2 : void 0);
14152
+ const v2 = (x2) => this.collisionIndex.placeCollisionBox(x2, Vt, at, N, W, pe, ie, k, wt.predicate, Ze, Ae && B2 ? B2 : void 0);
14153
14153
  Ii && Ii.placeable && He.verticalIconBox ? (di = v2(He.verticalIconBox), Pn = di.placeable) : (di = v2(He.iconBox), Pn = di.placeable), K1 = K1 && di.offscreen;
14154
14154
  }
14155
14155
  const _2 = Et || Le.numHorizontalGlyphVertices === 0 && Le.numVerticalGlyphVertices === 0, c0 = Mt || Le.numIconVertices === 0;
@@ -14510,7 +14510,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14510
14510
  return d;
14511
14511
  }
14512
14512
  }
14513
- class H2 {
14513
+ class C2 {
14514
14514
  constructor() {
14515
14515
  this.layerIndexes = {}, this.crossTileIDs = new lo(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};
14516
14516
  }
@@ -14543,7 +14543,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14543
14543
  const v = this.sourceCaches[_].getSource().type;
14544
14544
  v !== "vector" && v !== "geojson" || this.sourceCaches[_].reload();
14545
14545
  }
14546
- }, this.map = l, this.dispatcher = new se(ce(), l._getMapId()), this.dispatcher.registerMessageHandler("GG", (_, v) => this.getGlyphs(_, v)), this.dispatcher.registerMessageHandler("GI", (_, v) => this.getImages(_, v)), this.imageManager = new Zt(), this.imageManager.setEventedParent(this), this.glyphManager = new _r(l._requestManager, d.localIdeographFontFamily), this.lineAtlas = new Me(256, 512), this.crossTileSymbolIndex = new H2(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new s.ax(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", s.ay()), Q1().on(fe, this._rtlPluginLoaded), this.on("data", (_) => {
14546
+ }, this.map = l, this.dispatcher = new se(ce(), l._getMapId()), this.dispatcher.registerMessageHandler("GG", (_, v) => this.getGlyphs(_, v)), this.dispatcher.registerMessageHandler("GI", (_, v) => this.getImages(_, v)), this.imageManager = new Zt(), this.imageManager.setEventedParent(this), this.glyphManager = new _r(l._requestManager, d.localIdeographFontFamily), this.lineAtlas = new Me(256, 512), this.crossTileSymbolIndex = new C2(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new s.ax(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", s.ay()), Q1().on(fe, this._rtlPluginLoaded), this.on("data", (_) => {
14547
14547
  if (_.dataType !== "source" || _.sourceDataType !== "metadata")
14548
14548
  return;
14549
14549
  const v = this.sourceCaches[_.sourceId];
@@ -16053,7 +16053,7 @@ uniform ${Y} ${J} u_${at};
16053
16053
  }
16054
16054
  }
16055
16055
  const No = /* @__PURE__ */ new WeakMap();
16056
- function O2(A) {
16056
+ function H2(A) {
16057
16057
  var l;
16058
16058
  if (No.has(A))
16059
16059
  return No.get(A);
@@ -16330,7 +16330,7 @@ uniform ${Y} ${J} u_${at};
16330
16330
  d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, l), this.current = l, this.dirty = !1;
16331
16331
  }
16332
16332
  }
16333
- class P2 extends zr {
16333
+ class O2 extends zr {
16334
16334
  getDefault() {
16335
16335
  return null;
16336
16336
  }
@@ -16339,7 +16339,7 @@ uniform ${Y} ${J} u_${at};
16339
16339
  if (l === this.current && !this.dirty)
16340
16340
  return;
16341
16341
  const _ = this.gl;
16342
- O2(_) ? _.bindVertexArray(l) : (d = _.getExtension("OES_vertex_array_object")) === null || d === void 0 || d.bindVertexArrayOES(l), this.current = l, this.dirty = !1;
16342
+ H2(_) ? _.bindVertexArray(l) : (d = _.getExtension("OES_vertex_array_object")) === null || d === void 0 || d.bindVertexArrayOES(l), this.current = l, this.dirty = !1;
16343
16343
  }
16344
16344
  }
16345
16345
  class l6 extends zr {
@@ -16383,7 +16383,7 @@ uniform ${Y} ${J} u_${at};
16383
16383
  return null;
16384
16384
  }
16385
16385
  }
16386
- class D2 extends xa {
16386
+ class P2 extends xa {
16387
16387
  setDirty() {
16388
16388
  this.dirty = !0;
16389
16389
  }
@@ -16404,7 +16404,7 @@ uniform ${Y} ${J} u_${at};
16404
16404
  d.framebufferRenderbuffer(d.FRAMEBUFFER, d.DEPTH_ATTACHMENT, d.RENDERBUFFER, l), this.current = l, this.dirty = !1;
16405
16405
  }
16406
16406
  }
16407
- class I2 extends xa {
16407
+ class D2 extends xa {
16408
16408
  set(l) {
16409
16409
  if (l === this.current && !this.dirty)
16410
16410
  return;
@@ -16417,8 +16417,8 @@ uniform ${Y} ${J} u_${at};
16417
16417
  constructor(l, d, _, v, w) {
16418
16418
  this.context = l, this.width = d, this.height = _;
16419
16419
  const D = l.gl, k = this.framebuffer = D.createFramebuffer();
16420
- if (this.colorAttachment = new D2(l, k), v)
16421
- this.depthAttachment = w ? new I2(l, k) : new N1(l, k);
16420
+ if (this.colorAttachment = new P2(l, k), v)
16421
+ this.depthAttachment = w ? new D2(l, k) : new N1(l, k);
16422
16422
  else if (w)
16423
16423
  throw new Error("Stencil cannot be set without depth");
16424
16424
  if (D.checkFramebufferStatus(D.FRAMEBUFFER) !== D.FRAMEBUFFER_COMPLETE)
@@ -16442,7 +16442,7 @@ uniform ${Y} ${J} u_${at};
16442
16442
  class o8 {
16443
16443
  constructor(l) {
16444
16444
  var d, _;
16445
- if (this.gl = l, this.clearColor = new A3(this), this.clearDepth = new r8(this), this.clearStencil = new _a(this), this.colorMask = new As(this), this.depthMask = new Es(this), this.stencilMask = new K5(this), this.stencilFunc = new Xi(this), this.stencilOp = new Ms(this), this.stencilTest = new i6(this), this.depthRange = new Y5(this), this.depthTest = new o6(this), this.depthFunc = new E3(this), this.blend = new co(this), this.blendFunc = new a6(this), this.blendColor = new n8(this), this.blendEquation = new uo(this), this.cullFace = new va(this), this.cullFaceSide = new i8(this), this.frontFace = new Ss(this), this.program = new s6(this), this.activeTexture = new M3(this), this.viewport = new Cs(this), this.bindFramebuffer = new Hs(this), this.bindRenderbuffer = new Os(this), this.bindTexture = new jo(this), this.bindVertexBuffer = new J5(this), this.bindElementBuffer = new Ps(this), this.bindVertexArray = new P2(this), this.pixelStoreUnpack = new l6(this), this.pixelStoreUnpackPremultiplyAlpha = new c6(this), this.pixelStoreUnpackFlipY = new Ds(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), O2(l)) {
16445
+ if (this.gl = l, this.clearColor = new A3(this), this.clearDepth = new r8(this), this.clearStencil = new _a(this), this.colorMask = new As(this), this.depthMask = new Es(this), this.stencilMask = new K5(this), this.stencilFunc = new Xi(this), this.stencilOp = new Ms(this), this.stencilTest = new i6(this), this.depthRange = new Y5(this), this.depthTest = new o6(this), this.depthFunc = new E3(this), this.blend = new co(this), this.blendFunc = new a6(this), this.blendColor = new n8(this), this.blendEquation = new uo(this), this.cullFace = new va(this), this.cullFaceSide = new i8(this), this.frontFace = new Ss(this), this.program = new s6(this), this.activeTexture = new M3(this), this.viewport = new Cs(this), this.bindFramebuffer = new Hs(this), this.bindRenderbuffer = new Os(this), this.bindTexture = new jo(this), this.bindVertexBuffer = new J5(this), this.bindElementBuffer = new Ps(this), this.bindVertexArray = new O2(this), this.pixelStoreUnpack = new l6(this), this.pixelStoreUnpackPremultiplyAlpha = new c6(this), this.pixelStoreUnpackFlipY = new Ds(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), H2(l)) {
16446
16446
  this.HALF_FLOAT = l.HALF_FLOAT;
16447
16447
  const v = l.getExtension("EXT_color_buffer_half_float");
16448
16448
  this.RGBA16F = (d = l.RGBA16F) !== null && d !== void 0 ? d : v == null ? void 0 : v.RGBA16F_EXT, this.RGB16F = (_ = l.RGB16F) !== null && _ !== void 0 ? _ : v == null ? void 0 : v.RGB16F_EXT, l.getExtension("EXT_color_buffer_float");
@@ -16490,11 +16490,11 @@ uniform ${Y} ${J} u_${at};
16490
16490
  }
16491
16491
  createVertexArray() {
16492
16492
  var l;
16493
- return O2(this.gl) ? this.gl.createVertexArray() : (l = this.gl.getExtension("OES_vertex_array_object")) === null || l === void 0 ? void 0 : l.createVertexArrayOES();
16493
+ return H2(this.gl) ? this.gl.createVertexArray() : (l = this.gl.getExtension("OES_vertex_array_object")) === null || l === void 0 ? void 0 : l.createVertexArrayOES();
16494
16494
  }
16495
16495
  deleteVertexArray(l) {
16496
16496
  var d;
16497
- return O2(this.gl) ? this.gl.deleteVertexArray(l) : (d = this.gl.getExtension("OES_vertex_array_object")) === null || d === void 0 ? void 0 : d.deleteVertexArrayOES(l);
16497
+ return H2(this.gl) ? this.gl.deleteVertexArray(l) : (d = this.gl.getExtension("OES_vertex_array_object")) === null || d === void 0 ? void 0 : d.deleteVertexArrayOES(l);
16498
16498
  }
16499
16499
  unbindVAO() {
16500
16500
  this.bindVertexArray.set(null);
@@ -16631,22 +16631,22 @@ uniform ${Y} ${J} u_${at};
16631
16631
  if (!yr || !yr.segments.get().length || !yr.hasVisibleVertices)
16632
16632
  continue;
16633
16633
  const Le = yr.programConfigurations.get(d.id), He = v || Ze.sdfIcons, pr = v ? Ze.textSizeData : Ze.iconSizeData, On = Et || dt.pitch !== 0, Er = A.useProgram(Hi(He, v, Ze), Le), kr = s.ag(pr, dt.zoom), Pn = A.style.map.terrain && A.style.map.terrain.getTerrainData(xe);
16634
- let K1, F2, Dn, Ii, Ti = [0, 0], Y1 = null;
16634
+ let K1, B2, Dn, Ii, Ti = [0, 0], Y1 = null;
16635
16635
  if (v)
16636
- F2 = ve.glyphAtlasTexture, Dn = Tt.LINEAR, K1 = ve.glyphAtlasTexture.size, Ze.iconsInText && (Ti = ve.imageAtlasTexture.size, Y1 = ve.imageAtlasTexture, Ii = On || A.options.rotating || A.options.zooming || pr.kind === "composite" || pr.kind === "camera" ? Tt.LINEAR : Tt.NEAREST);
16636
+ B2 = ve.glyphAtlasTexture, Dn = Tt.LINEAR, K1 = ve.glyphAtlasTexture.size, Ze.iconsInText && (Ti = ve.imageAtlasTexture.size, Y1 = ve.imageAtlasTexture, Ii = On || A.options.rotating || A.options.zooming || pr.kind === "composite" || pr.kind === "camera" ? Tt.LINEAR : Tt.NEAREST);
16637
16637
  else {
16638
16638
  const jr = d.layout.get("icon-size").constantOr(0) !== 1 || Ze.iconsNeedLinear;
16639
- F2 = ve.imageAtlasTexture, Dn = He || A.options.rotating || A.options.zooming || jr || On ? Tt.LINEAR : Tt.NEAREST, K1 = ve.imageAtlasTexture.size;
16639
+ B2 = ve.imageAtlasTexture, Dn = He || A.options.rotating || A.options.zooming || jr || On ? Tt.LINEAR : Tt.NEAREST, K1 = ve.imageAtlasTexture.size;
16640
16640
  }
16641
16641
  const di = Ar(ve, 1, A.transform.zoom), xo = It ? xe.posMatrix : ba, Us = q1(xo, Et, wt, A.transform, di), l0 = zn(xo, Et, wt, A.transform, di), Zs = zn(xe.posMatrix, Et, wt, A.transform, di), _2 = vt.translatePosition(A.transform, ve, w, D), c0 = pe && Ze.hasTextData(), x8 = d.layout.get("icon-text-fit") !== "none" && c0 && Ze.hasIconData();
16642
16642
  if (Mt) {
16643
16643
  const jr = A.style.map.terrain ? (Ws, qs) => A.style.map.terrain.getElevation(xe, Ws, qs) : null, I3 = d.layout.get("text-rotation-alignment") === "map";
16644
16644
  ht(Ze, xe.posMatrix, A, v, Us, Zs, Et, W, I3, vt, xe.toUnwrapped(), dt.width, dt.height, _2, jr);
16645
16645
  }
16646
- const v2 = xe.posMatrix, x2 = v && pe || x8, Ea = Mt || x2 ? ba : Us, N2 = l0, $1 = He && d.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
16646
+ const v2 = xe.posMatrix, x2 = v && pe || x8, Ea = Mt || x2 ? ba : Us, F2 = l0, $1 = He && d.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
16647
16647
  let J1;
16648
- J1 = He ? Ze.iconsInText ? Ls(pr.kind, kr, yt, Et, Mt, x2, A, v2, Ea, N2, _2, K1, Ti, De) : ya(pr.kind, kr, yt, Et, Mt, x2, A, v2, Ea, N2, _2, v, K1, !0, De) : T2(pr.kind, kr, yt, Et, Mt, x2, A, v2, Ea, N2, _2, v, K1, De);
16649
- const r2 = { program: Er, buffers: yr, uniformValues: J1, atlasTexture: F2, atlasTextureIcon: Y1, atlasInterpolation: Dn, atlasInterpolationIcon: Ii, isSDF: He, hasHalo: $1 };
16648
+ J1 = He ? Ze.iconsInText ? Ls(pr.kind, kr, yt, Et, Mt, x2, A, v2, Ea, F2, _2, K1, Ti, De) : ya(pr.kind, kr, yt, Et, Mt, x2, A, v2, Ea, F2, _2, v, K1, !0, De) : T2(pr.kind, kr, yt, Et, Mt, x2, A, v2, Ea, F2, _2, v, K1, De);
16649
+ const r2 = { program: Er, buffers: yr, uniformValues: J1, atlasTexture: B2, atlasTextureIcon: Y1, atlasInterpolation: Dn, atlasInterpolationIcon: Ii, isSDF: He, hasHalo: $1 };
16650
16650
  if (Vt && Ze.canOverlap) {
16651
16651
  Ut = !0;
16652
16652
  const jr = yr.segments.get();
@@ -16669,7 +16669,7 @@ uniform ${Y} ${J} u_${at};
16669
16669
  const Y = _.context;
16670
16670
  v.draw(Y, Y.gl.TRIANGLES, w, D, k, rn.disabled, N, W, d.id, A.layoutVertexBuffer, A.indexBuffer, l, d.paint, _.transform.zoom, A.programConfigurations.get(d.id), A.dynamicLayoutVertexBuffer, A.opacityVertexBuffer);
16671
16671
  }
16672
- function V2(A, l, d, _) {
16672
+ function I2(A, l, d, _) {
16673
16673
  const v = A.context, w = v.gl, D = ln.disabled, k = new sn([w.ONE, w.ONE], s.aM.transparent, [!0, !0, !0, !0]), N = l.getBucket(d);
16674
16674
  if (!N)
16675
16675
  return;
@@ -16828,7 +16828,7 @@ uniform ${Y} ${J} u_${at};
16828
16828
  }
16829
16829
  class Kn {
16830
16830
  constructor(l, d) {
16831
- this.context = new o8(l), this.transform = d, this._tileTextures = {}, this.terrainFacilitator = { dirty: !0, matrix: s.an(new Float64Array(16)), renderTime: 0 }, this.setup(), this.numSublayers = cr.maxUnderzooming + cr.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.crossTileSymbolIndex = new H2();
16831
+ this.context = new o8(l), this.transform = d, this._tileTextures = {}, this.terrainFacilitator = { dirty: !0, matrix: s.an(new Float64Array(16)), renderTime: 0 }, this.setup(), this.numSublayers = cr.maxUnderzooming + cr.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.crossTileSymbolIndex = new C2();
16832
16832
  }
16833
16833
  resize(l, d, _) {
16834
16834
  if (this.width = Math.floor(l * _), this.height = Math.floor(d * _), this.pixelRatio = _, this.context.viewport.set([0, 0, this.width, this.height]), this.style)
@@ -17050,7 +17050,7 @@ uniform ${Y} ${J} u_${at};
17050
17050
  if (w.style.map.terrain) {
17051
17051
  for (const Y of N) {
17052
17052
  const J = D.getTile(Y);
17053
- D.hasRenderableParent(Y) || (w.renderPass === "offscreen" ? V2(w, J, k, Y) : w.renderPass === "translucent" && fo(w, k, Y));
17053
+ D.hasRenderableParent(Y) || (w.renderPass === "offscreen" ? I2(w, J, k, Y) : w.renderPass === "translucent" && fo(w, k, Y));
17054
17054
  }
17055
17055
  W.viewport.set([0, 0, w.width, w.height]);
17056
17056
  } else
@@ -17713,7 +17713,7 @@ uniform ${Y} ${J} u_${at};
17713
17713
  };
17714
17714
  return (...k) => (_ = !0, w = this, d = k, v || D(), v);
17715
17715
  }
17716
- class R2 {
17716
+ class V2 {
17717
17717
  constructor(l) {
17718
17718
  this._getCurrentHash = () => {
17719
17719
  const d = window.location.hash.replace("#", "");
@@ -17856,7 +17856,7 @@ uniform ${Y} ${J} u_${at};
17856
17856
  super(l, { originalEvent: _ }), this._defaultPrevented = !1;
17857
17857
  }
17858
17858
  }
17859
- class k2 {
17859
+ class R2 {
17860
17860
  constructor(l, d) {
17861
17861
  this._map = l, this._clickTolerance = d.clickTolerance;
17862
17862
  }
@@ -18453,7 +18453,7 @@ uniform ${Y} ${J} u_${at};
18453
18453
  return A * (2 - A);
18454
18454
  }
18455
18455
  const T8 = 4.000244140625;
18456
- class B2 {
18456
+ class k2 {
18457
18457
  constructor(l, d) {
18458
18458
  this._onTimeout = (_) => {
18459
18459
  this._type = "wheel", this._delta -= this._lastValue, this._active || this._start(_);
@@ -18764,7 +18764,7 @@ uniform ${Y} ${J} u_${at};
18764
18764
  }
18765
18765
  _addDefaultHandlers(l) {
18766
18766
  const d = this._map, _ = d.getCanvasContainer();
18767
- this._add("mapEvent", new k2(d, l));
18767
+ this._add("mapEvent", new R2(d, l));
18768
18768
  const v = d.boxZoom = new _1(d, l);
18769
18769
  this._add("boxZoom", v), l.interactive && l.boxZoom && v.enable();
18770
18770
  const w = d.cooperativeGestures = new Fs(d, l.cooperativeGestures);
@@ -18784,7 +18784,7 @@ uniform ${Y} ${J} u_${at};
18784
18784
  d.dragPan = new Hh(_, at, Tt), this._add("mousePan", at), this._add("touchPan", Tt, ["touchZoom", "touchRotate"]), l.interactive && l.dragPan && d.dragPan.enable(l.dragPan);
18785
18785
  const dt = new f8(), vt = new u8();
18786
18786
  d.touchZoomRotate = new d8(_, vt, dt, N), this._add("touchRotate", dt, ["touchPan", "touchZoom"]), this._add("touchZoom", vt, ["touchPan", "touchRotate"]), l.interactive && l.touchZoomRotate && d.touchZoomRotate.enable(l.touchZoomRotate);
18787
- const wt = d.scrollZoom = new B2(d, () => this._triggerRenderFrame());
18787
+ const wt = d.scrollZoom = new k2(d, () => this._triggerRenderFrame());
18788
18788
  this._add("scrollZoom", wt, ["mousePan"]), l.interactive && l.scrollZoom && d.scrollZoom.enable(l.scrollZoom);
18789
18789
  const Et = d.keyboard = new g2(d);
18790
18790
  this._add("keyboard", Et), l.interactive && l.keyboard && d.keyboard.enable(), this._add("blockableMapEvent", new Qn(d));
@@ -20037,7 +20037,7 @@ uniform ${Y} ${J} u_${at};
20037
20037
  _clearWatch() {
20038
20038
  window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
20039
20039
  }
20040
- }, a.Hash = R2, a.ImageSource = wi, a.KeyboardHandler = g2, a.LngLatBounds = Ot, a.LogoControl = p8, a.Map = class extends Ph {
20040
+ }, a.Hash = V2, a.ImageSource = wi, a.KeyboardHandler = g2, a.LngLatBounds = Ot, a.LogoControl = p8, a.Map = class extends Ph {
20041
20041
  constructor(A) {
20042
20042
  s.bf.mark(s.bg.create);
20043
20043
  const l = Object.assign(Object.assign({}, kg), A);
@@ -20080,7 +20080,7 @@ uniform ${Y} ${J} u_${at};
20080
20080
  d ? _(v) : d = !0;
20081
20081
  }), this._resizeObserver.observe(this._container);
20082
20082
  }
20083
- this.handlers = new Q8(this, l), this._hash = l.hash && new R2(typeof l.hash == "string" && l.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: l.center, zoom: l.zoom, bearing: l.bearing, pitch: l.pitch }), l.bounds && (this.resize(), this.fitBounds(l.bounds, s.e({}, l.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = l.localIdeographFontFamily, this._validateStyle = l.validateStyle, l.style && this.setStyle(l.style, { localIdeographFontFamily: l.localIdeographFontFamily }), l.attributionControl && this.addControl(new js(typeof l.attributionControl == "boolean" ? void 0 : l.attributionControl)), l.maplibreLogo && this.addControl(new p8(), l.logoPosition), this.on("style.load", () => {
20083
+ this.handlers = new Q8(this, l), this._hash = l.hash && new V2(typeof l.hash == "string" && l.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: l.center, zoom: l.zoom, bearing: l.bearing, pitch: l.pitch }), l.bounds && (this.resize(), this.fitBounds(l.bounds, s.e({}, l.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = l.localIdeographFontFamily, this._validateStyle = l.validateStyle, l.style && this.setStyle(l.style, { localIdeographFontFamily: l.localIdeographFontFamily }), l.attributionControl && this.addControl(new js(typeof l.attributionControl == "boolean" ? void 0 : l.attributionControl)), l.maplibreLogo && this.addControl(new p8(), l.logoPosition), this.on("style.load", () => {
20084
20084
  this.transform.unmodified && this.jumpTo(this.style.stylesheet);
20085
20085
  }), this.on("data", (d) => {
20086
20086
  this._update(d.dataType === "style"), this.fire(new s.k(`${d.dataType}data`, d));
@@ -20781,7 +20781,7 @@ uniform ${Y} ${J} u_${at};
20781
20781
  onRemove() {
20782
20782
  m.remove(this._container), this._map.off("move", this._onMove), this._map = void 0;
20783
20783
  }
20784
- }, a.ScrollZoomHandler = B2, a.Style = ga, a.TerrainControl = class {
20784
+ }, a.ScrollZoomHandler = k2, a.Style = ga, a.TerrainControl = class {
20785
20785
  constructor(A) {
20786
20786
  this._toggleTerrain = () => {
20787
20787
  this._map.getTerrain() ? this._map.setTerrain(null) : this._map.setTerrain(this.options), this._updateTerrainIcon();
@@ -20924,22 +20924,22 @@ function ort(e, t, r) {
20924
20924
  function bx(e) {
20925
20925
  return !isNaN(e) && e !== null && !Array.isArray(e);
20926
20926
  }
20927
- var W2 = 63710088e-1, art = {
20928
- centimeters: W2 * 100,
20929
- centimetres: W2 * 100,
20927
+ var Z2 = 63710088e-1, art = {
20928
+ centimeters: Z2 * 100,
20929
+ centimetres: Z2 * 100,
20930
20930
  degrees: 360 / (2 * Math.PI),
20931
- feet: W2 * 3.28084,
20932
- inches: W2 * 39.37,
20933
- kilometers: W2 / 1e3,
20934
- kilometres: W2 / 1e3,
20935
- meters: W2,
20936
- metres: W2,
20937
- miles: W2 / 1609.344,
20938
- millimeters: W2 * 1e3,
20939
- millimetres: W2 * 1e3,
20940
- nauticalmiles: W2 / 1852,
20931
+ feet: Z2 * 3.28084,
20932
+ inches: Z2 * 39.37,
20933
+ kilometers: Z2 / 1e3,
20934
+ kilometres: Z2 / 1e3,
20935
+ meters: Z2,
20936
+ metres: Z2,
20937
+ miles: Z2 / 1609.344,
20938
+ millimeters: Z2 * 1e3,
20939
+ millimetres: Z2 * 1e3,
20940
+ nauticalmiles: Z2 / 1852,
20941
20941
  radians: 1,
20942
- yards: W2 * 1.0936
20942
+ yards: Z2 * 1.0936
20943
20943
  };
20944
20944
  function srt(e, t = "kilometers") {
20945
20945
  const r = art[t];
@@ -22854,22 +22854,22 @@ function zx(e) {
22854
22854
  }));
22855
22855
  }
22856
22856
  Ln(zx, "explode");
22857
- var q2 = 63710088e-1, SB = {
22858
- centimeters: q2 * 100,
22859
- centimetres: q2 * 100,
22857
+ var W2 = 63710088e-1, SB = {
22858
+ centimeters: W2 * 100,
22859
+ centimetres: W2 * 100,
22860
22860
  degrees: 360 / (2 * Math.PI),
22861
- feet: q2 * 3.28084,
22862
- inches: q2 * 39.37,
22863
- kilometers: q2 / 1e3,
22864
- kilometres: q2 / 1e3,
22865
- meters: q2,
22866
- metres: q2,
22867
- miles: q2 / 1609.344,
22868
- millimeters: q2 * 1e3,
22869
- millimetres: q2 * 1e3,
22870
- nauticalmiles: q2 / 1852,
22861
+ feet: W2 * 3.28084,
22862
+ inches: W2 * 39.37,
22863
+ kilometers: W2 / 1e3,
22864
+ kilometres: W2 / 1e3,
22865
+ meters: W2,
22866
+ metres: W2,
22867
+ miles: W2 / 1609.344,
22868
+ millimeters: W2 * 1e3,
22869
+ millimetres: W2 * 1e3,
22870
+ nauticalmiles: W2 / 1852,
22871
22871
  radians: 1,
22872
- yards: q2 * 1.0936
22872
+ yards: W2 * 1.0936
22873
22873
  }, RH = {
22874
22874
  acres: 247105e-9,
22875
22875
  centimeters: 1e4,
@@ -24572,22 +24572,22 @@ function nat(e, t) {
24572
24572
  let r = xw(t, e);
24573
24573
  return r = (r + 180) % 360, r;
24574
24574
  }
24575
- var G2 = 63710088e-1, iat = {
24576
- centimeters: G2 * 100,
24577
- centimetres: G2 * 100,
24575
+ var q2 = 63710088e-1, iat = {
24576
+ centimeters: q2 * 100,
24577
+ centimetres: q2 * 100,
24578
24578
  degrees: 360 / (2 * Math.PI),
24579
- feet: G2 * 3.28084,
24580
- inches: G2 * 39.37,
24581
- kilometers: G2 / 1e3,
24582
- kilometres: G2 / 1e3,
24583
- meters: G2,
24584
- metres: G2,
24585
- miles: G2 / 1609.344,
24586
- millimeters: G2 * 1e3,
24587
- millimetres: G2 * 1e3,
24588
- nauticalmiles: G2 / 1852,
24579
+ feet: q2 * 3.28084,
24580
+ inches: q2 * 39.37,
24581
+ kilometers: q2 / 1e3,
24582
+ kilometres: q2 / 1e3,
24583
+ meters: q2,
24584
+ metres: q2,
24585
+ miles: q2 / 1609.344,
24586
+ millimeters: q2 * 1e3,
24587
+ millimetres: q2 * 1e3,
24588
+ nauticalmiles: q2 / 1852,
24589
24589
  radians: 1,
24590
- yards: G2 * 1.0936
24590
+ yards: q2 * 1.0936
24591
24591
  };
24592
24592
  function oat(e, t, r = {}) {
24593
24593
  const n = { type: "Feature" };
@@ -24789,22 +24789,22 @@ function Zx(e) {
24789
24789
  }));
24790
24790
  }
24791
24791
  wn(Zx, "explode");
24792
- var X2 = 63710088e-1, XB = {
24793
- centimeters: X2 * 100,
24794
- centimetres: X2 * 100,
24792
+ var G2 = 63710088e-1, XB = {
24793
+ centimeters: G2 * 100,
24794
+ centimetres: G2 * 100,
24795
24795
  degrees: 360 / (2 * Math.PI),
24796
- feet: X2 * 3.28084,
24797
- inches: X2 * 39.37,
24798
- kilometers: X2 / 1e3,
24799
- kilometres: X2 / 1e3,
24800
- meters: X2,
24801
- metres: X2,
24802
- miles: X2 / 1609.344,
24803
- millimeters: X2 * 1e3,
24804
- millimetres: X2 * 1e3,
24805
- nauticalmiles: X2 / 1852,
24796
+ feet: G2 * 3.28084,
24797
+ inches: G2 * 39.37,
24798
+ kilometers: G2 / 1e3,
24799
+ kilometres: G2 / 1e3,
24800
+ meters: G2,
24801
+ metres: G2,
24802
+ miles: G2 / 1609.344,
24803
+ millimeters: G2 * 1e3,
24804
+ millimetres: G2 * 1e3,
24805
+ nauticalmiles: G2 / 1852,
24806
24806
  radians: 1,
24807
- yards: X2 * 1.0936
24807
+ yards: G2 * 1.0936
24808
24808
  }, tO = {
24809
24809
  acres: 247105e-9,
24810
24810
  centimeters: 1e4,
@@ -25275,22 +25275,22 @@ function Wx(e) {
25275
25275
  }));
25276
25276
  }
25277
25277
  An(Wx, "explode");
25278
- var K2 = 63710088e-1, oF = {
25279
- centimeters: K2 * 100,
25280
- centimetres: K2 * 100,
25278
+ var X2 = 63710088e-1, oF = {
25279
+ centimeters: X2 * 100,
25280
+ centimetres: X2 * 100,
25281
25281
  degrees: 360 / (2 * Math.PI),
25282
- feet: K2 * 3.28084,
25283
- inches: K2 * 39.37,
25284
- kilometers: K2 / 1e3,
25285
- kilometres: K2 / 1e3,
25286
- meters: K2,
25287
- metres: K2,
25288
- miles: K2 / 1609.344,
25289
- millimeters: K2 * 1e3,
25290
- millimetres: K2 * 1e3,
25291
- nauticalmiles: K2 / 1852,
25282
+ feet: X2 * 3.28084,
25283
+ inches: X2 * 39.37,
25284
+ kilometers: X2 / 1e3,
25285
+ kilometres: X2 / 1e3,
25286
+ meters: X2,
25287
+ metres: X2,
25288
+ miles: X2 / 1609.344,
25289
+ millimeters: X2 * 1e3,
25290
+ millimetres: X2 * 1e3,
25291
+ nauticalmiles: X2 / 1852,
25292
25292
  radians: 1,
25293
- yards: K2 * 1.0936
25293
+ yards: X2 * 1.0936
25294
25294
  }, nO = {
25295
25295
  acres: 247105e-9,
25296
25296
  centimeters: 1e4,
@@ -45900,7 +45900,7 @@ const cA = {
45900
45900
  3316: 0,
45901
45901
  3315: 0,
45902
45902
  32877: 0
45903
- }, I1 = (e, t, r) => t ? e.enable(r) : e.disable(r), BP = (e, t, r) => e.hint(r, t), Y2 = (e, t, r) => e.pixelStorei(r, t), FP = (e, t, r) => {
45903
+ }, I1 = (e, t, r) => t ? e.enable(r) : e.disable(r), BP = (e, t, r) => e.hint(r, t), K2 = (e, t, r) => e.pixelStorei(r, t), FP = (e, t, r) => {
45904
45904
  const n = r === 36006 ? 36009 : 36008;
45905
45905
  return e.bindFramebuffer(n, t);
45906
45906
  }, tc = (e, t, r) => {
@@ -46000,19 +46000,19 @@ const S9t = {
46000
46000
  12294: I1,
46001
46001
  12295: I1,
46002
46002
  // PIXEL PACK/UNPACK MODES
46003
- 3333: Y2,
46004
- 3317: Y2,
46005
- 37440: Y2,
46006
- 37441: Y2,
46007
- 37443: Y2,
46008
- 3330: Y2,
46009
- 3332: Y2,
46010
- 3331: Y2,
46011
- 3314: Y2,
46012
- 32878: Y2,
46013
- 3316: Y2,
46014
- 3315: Y2,
46015
- 32877: Y2,
46003
+ 3333: K2,
46004
+ 3317: K2,
46005
+ 37440: K2,
46006
+ 37441: K2,
46007
+ 37443: K2,
46008
+ 3330: K2,
46009
+ 3332: K2,
46010
+ 3331: K2,
46011
+ 3314: K2,
46012
+ 32878: K2,
46013
+ 3316: K2,
46014
+ 3315: K2,
46015
+ 32877: K2,
46016
46016
  // Function-style setters
46017
46017
  framebuffer: (e, t) => {
46018
46018
  const r = t && "handle" in t ? t.handle : t;
@@ -50534,10 +50534,10 @@ var Kj = { exports: {} };
50534
50534
  return this._super.attrTest.call(this, F) && (Math.abs(F.rotation) > this.options.threshold || this.state & p1);
50535
50535
  }
50536
50536
  });
50537
- function H2() {
50537
+ function C2() {
50538
50538
  m1.apply(this, arguments);
50539
50539
  }
50540
- H(H2, m1, {
50540
+ H(C2, m1, {
50541
50541
  /**
50542
50542
  * @namespace
50543
50543
  * @memberof SwipeRecognizer
@@ -50660,7 +50660,7 @@ var Kj = { exports: {} };
50660
50660
  // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
50661
50661
  [H1, { enable: !1 }],
50662
50662
  [gn, { enable: !1 }, ["rotate"]],
50663
- [H2, { direction: Ot }],
50663
+ [C2, { direction: Ot }],
50664
50664
  [C1, { direction: Ot }, ["swipe"]],
50665
50665
  [w1],
50666
50666
  [w1, { event: "doubletap", taps: 2 }, ["tap"]],
@@ -50892,7 +50892,7 @@ var Kj = { exports: {} };
50892
50892
  AttrRecognizer: m1,
50893
50893
  Tap: w1,
50894
50894
  Pan: C1,
50895
- Swipe: H2,
50895
+ Swipe: C2,
50896
50896
  Pinch: gn,
50897
50897
  Rotate: H1,
50898
50898
  Press: lo,
@@ -57675,7 +57675,7 @@ var x$ = { exports: {} };
57675
57675
  return F.source ? F : Pr(F, { id: F.id + "." + z, source: z === "hot" ? m.HOT : m.COLD });
57676
57676
  });
57677
57677
  }
57678
- var H2 = { exports: {} };
57678
+ var C2 = { exports: {} };
57679
57679
  (function(P, z) {
57680
57680
  var F = "__lodash_hash_undefined__", q = 9007199254740991, et = "[object Arguments]", ct = "[object Array]", Qt = "[object Boolean]", jt = "[object Date]", ee = "[object Error]", Te = "[object Function]", de = "[object Map]", he = "[object Number]", Xe = "[object Object]", hn = "[object Promise]", sr = "[object RegExp]", $r = "[object Set]", oe = "[object String]", ze = "[object Symbol]", Zr = "[object WeakMap]", c1 = "[object ArrayBuffer]", yn = "[object DataView]", r6 = /^\[object .+?Constructor\]$/, G5 = /^(?:0|[1-9]\d*)$/, dn = {};
57681
57681
  dn["[object Float32Array]"] = dn["[object Float64Array]"] = dn["[object Int8Array]"] = dn["[object Int16Array]"] = dn["[object Int32Array]"] = dn["[object Uint8Array]"] = dn["[object Uint8ClampedArray]"] = dn["[object Uint16Array]"] = dn["[object Uint32Array]"] = !0, dn[et] = dn[ct] = dn[c1] = dn[Qt] = dn[yn] = dn[jt] = dn[ee] = dn[Te] = dn[de] = dn[he] = dn[Xe] = dn[sr] = dn[$r] = dn[oe] = dn[Zr] = !1;
@@ -57703,10 +57703,10 @@ var x$ = { exports: {} };
57703
57703
  Ee[++Yt] = ar;
57704
57704
  }), Ee;
57705
57705
  }
57706
- var O2, zr, A3, r8 = Array.prototype, _a = Function.prototype, As = Object.prototype, Es = T2["__core-js_shared__"], K5 = _a.toString, Xi = As.hasOwnProperty, Ms = (O2 = /[^.]+$/.exec(Es && Es.keys && Es.keys.IE_PROTO || "")) ? "Symbol(src)_1." + O2 : "", i6 = As.toString, Y5 = RegExp("^" + K5.call(Xi).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), o6 = L3 ? T2.Buffer : void 0, E3 = T2.Symbol, co = T2.Uint8Array, a6 = As.propertyIsEnumerable, n8 = r8.splice, uo = E3 ? E3.toStringTag : void 0, va = Object.getOwnPropertySymbols, i8 = o6 ? o6.isBuffer : void 0, Ss = (zr = Object.keys, A3 = Object, function(Ct) {
57706
+ var H2, zr, A3, r8 = Array.prototype, _a = Function.prototype, As = Object.prototype, Es = T2["__core-js_shared__"], K5 = _a.toString, Xi = As.hasOwnProperty, Ms = (H2 = /[^.]+$/.exec(Es && Es.keys && Es.keys.IE_PROTO || "")) ? "Symbol(src)_1." + H2 : "", i6 = As.toString, Y5 = RegExp("^" + K5.call(Xi).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), o6 = L3 ? T2.Buffer : void 0, E3 = T2.Symbol, co = T2.Uint8Array, a6 = As.propertyIsEnumerable, n8 = r8.splice, uo = E3 ? E3.toStringTag : void 0, va = Object.getOwnPropertySymbols, i8 = o6 ? o6.isBuffer : void 0, Ss = (zr = Object.keys, A3 = Object, function(Ct) {
57707
57707
  return zr(A3(Ct));
57708
- }), s6 = Ki(T2, "DataView"), M3 = Ki(T2, "Map"), Cs = Ki(T2, "Promise"), Hs = Ki(T2, "Set"), Os = Ki(T2, "WeakMap"), jo = Ki(Object, "create"), J5 = V2(s6), Ps = V2(M3), P2 = V2(Cs), l6 = V2(Hs), c6 = V2(Os), Ds = E3 ? E3.prototype : void 0, xa = Ds ? Ds.valueOf : void 0;
57709
- function D2(Ct) {
57708
+ }), s6 = Ki(T2, "DataView"), M3 = Ki(T2, "Map"), Cs = Ki(T2, "Promise"), Hs = Ki(T2, "Set"), Os = Ki(T2, "WeakMap"), jo = Ki(Object, "create"), J5 = I2(s6), Ps = I2(M3), O2 = I2(Cs), l6 = I2(Hs), c6 = I2(Os), Ds = E3 ? E3.prototype : void 0, xa = Ds ? Ds.valueOf : void 0;
57709
+ function P2(Ct) {
57710
57710
  var Yt = -1, Ee = Ct == null ? 0 : Ct.length;
57711
57711
  for (this.clear(); ++Yt < Ee; ) {
57712
57712
  var ar = Ct[Yt];
@@ -57720,7 +57720,7 @@ var x$ = { exports: {} };
57720
57720
  this.set(ar[0], ar[1]);
57721
57721
  }
57722
57722
  }
57723
- function I2(Ct) {
57723
+ function D2(Ct) {
57724
57724
  var Yt = -1, Ee = Ct == null ? 0 : Ct.length;
57725
57725
  for (this.clear(); ++Yt < Ee; ) {
57726
57726
  var ar = Ct[Yt];
@@ -57729,7 +57729,7 @@ var x$ = { exports: {} };
57729
57729
  }
57730
57730
  function Is(Ct) {
57731
57731
  var Yt = -1, Ee = Ct == null ? 0 : Ct.length;
57732
- for (this.__data__ = new I2(); ++Yt < Ee; )
57732
+ for (this.__data__ = new D2(); ++Yt < Ee; )
57733
57733
  this.add(Ct[Yt]);
57734
57734
  }
57735
57735
  function sn(Ct) {
@@ -57771,13 +57771,13 @@ var x$ = { exports: {} };
57771
57771
  }
57772
57772
  function rn(Ct, Yt, Ee, ar, nn) {
57773
57773
  return Ct === Yt || (Ct == null || Yt == null || !p2(Ct) && !p2(Yt) ? Ct != Ct && Yt != Yt : function(Rr, _n, e1, Oi, Xn, Kn) {
57774
- var j1 = To(Rr), G1 = To(_n), o1 = j1 ? ct : Q2(Rr), Yi = G1 ? ct : Q2(_n), Ji = (o1 = o1 == et ? Xe : o1) == Xe, po = (Yi = Yi == et ? Xe : Yi) == Xe, R2 = o1 == Yi;
57775
- if (R2 && Qo(Rr)) {
57774
+ var j1 = To(Rr), G1 = To(_n), o1 = j1 ? ct : Q2(Rr), Yi = G1 ? ct : Q2(_n), Ji = (o1 = o1 == et ? Xe : o1) == Xe, po = (Yi = Yi == et ? Xe : Yi) == Xe, V2 = o1 == Yi;
57775
+ if (V2 && Qo(Rr)) {
57776
57776
  if (!Qo(_n))
57777
57777
  return !1;
57778
57778
  j1 = !0, Ji = !1;
57779
57779
  }
57780
- if (R2 && !Ji)
57780
+ if (V2 && !Ji)
57781
57781
  return Kn || (Kn = new sn()), j1 || h6(Rr) ? ba(Rr, _n, e1, Oi, Xn, Kn) : function(on, Jr, go, Pi, g1, y1, m2) {
57782
57782
  switch (go) {
57783
57783
  case yn:
@@ -57796,16 +57796,16 @@ var x$ = { exports: {} };
57796
57796
  case oe:
57797
57797
  return on == Jr + "";
57798
57798
  case de:
57799
- var k2 = n6;
57799
+ var R2 = n6;
57800
57800
  case $r:
57801
57801
  var Qn = 1 & Pi;
57802
- if (k2 || (k2 = No), on.size != Jr.size && !Qn)
57802
+ if (R2 || (R2 = No), on.size != Jr.size && !Qn)
57803
57803
  return !1;
57804
57804
  var X1 = m2.get(on);
57805
57805
  if (X1)
57806
57806
  return X1 == Jr;
57807
57807
  Pi |= 2, m2.set(on, Jr);
57808
- var _1 = ba(k2(on), k2(Jr), Pi, g1, y1, m2);
57808
+ var _1 = ba(R2(on), R2(Jr), Pi, g1, y1, m2);
57809
57809
  return m2.delete(on), _1;
57810
57810
  case ze:
57811
57811
  if (xa)
@@ -57820,12 +57820,12 @@ var x$ = { exports: {} };
57820
57820
  return Kn || (Kn = new sn()), Xn(a8, t0, e1, Oi, Kn);
57821
57821
  }
57822
57822
  }
57823
- return R2 ? (Kn || (Kn = new sn()), function(on, Jr, go, Pi, g1, y1) {
57824
- var m2 = 1 & go, k2 = Vs(on), Qn = k2.length, X1 = Vs(Jr).length;
57823
+ return V2 ? (Kn || (Kn = new sn()), function(on, Jr, go, Pi, g1, y1) {
57824
+ var m2 = 1 & go, R2 = Vs(on), Qn = R2.length, X1 = Vs(Jr).length;
57825
57825
  if (Qn != X1 && !m2)
57826
57826
  return !1;
57827
57827
  for (var _1 = Qn; _1--; ) {
57828
- var t2 = k2[_1];
57828
+ var t2 = R2[_1];
57829
57829
  if (!(m2 ? t2 in Jr : Xi.call(Jr, t2)))
57830
57830
  return !1;
57831
57831
  }
@@ -57835,7 +57835,7 @@ var x$ = { exports: {} };
57835
57835
  var Uo = !0;
57836
57836
  y1.set(on, Jr), y1.set(Jr, on);
57837
57837
  for (var yo = m2; ++_1 < Qn; ) {
57838
- var Di = on[t2 = k2[_1]], wa = Jr[t2];
57838
+ var Di = on[t2 = R2[_1]], wa = Jr[t2];
57839
57839
  if (Pi)
57840
57840
  var O3 = m2 ? Pi(wa, Di, t2, Jr, on, y1) : Pi(Di, wa, t2, on, Jr, y1);
57841
57841
  if (!(O3 === void 0 ? Di === wa || g1(Di, wa, go, Pi, y1) : O3)) {
@@ -57855,7 +57855,7 @@ var x$ = { exports: {} };
57855
57855
  function $o(Ct) {
57856
57856
  return !(!zo(Ct) || function(Yt) {
57857
57857
  return !!Ms && Ms in Yt;
57858
- }(Ct)) && (La(Ct) ? Y5 : r6).test(V2(Ct));
57858
+ }(Ct)) && (La(Ct) ? Y5 : r6).test(I2(Ct));
57859
57859
  }
57860
57860
  function S3(Ct) {
57861
57861
  if (Ee = (Yt = Ct) && Yt.constructor, ar = typeof Ee == "function" && Ee.prototype || As, Yt !== ar)
@@ -57884,9 +57884,9 @@ var x$ = { exports: {} };
57884
57884
  break;
57885
57885
  }
57886
57886
  if (G1) {
57887
- if (!e8(Yt, function(po, R2) {
57888
- if (mo = R2, !G1.has(mo) && (o1 === po || nn(o1, po, Ee, ar, Rr)))
57889
- return G1.push(R2);
57887
+ if (!e8(Yt, function(po, V2) {
57888
+ if (mo = V2, !G1.has(mo) && (o1 === po || nn(o1, po, Ee, ar, Rr)))
57889
+ return G1.push(V2);
57890
57890
  var mo;
57891
57891
  })) {
57892
57892
  j1 = !1;
@@ -57919,22 +57919,22 @@ var x$ = { exports: {} };
57919
57919
  }(Ct, Yt);
57920
57920
  return $o(Ee) ? Ee : void 0;
57921
57921
  }
57922
- D2.prototype.clear = function() {
57922
+ P2.prototype.clear = function() {
57923
57923
  this.__data__ = jo ? jo(null) : {}, this.size = 0;
57924
- }, D2.prototype.delete = function(Ct) {
57924
+ }, P2.prototype.delete = function(Ct) {
57925
57925
  var Yt = this.has(Ct) && delete this.__data__[Ct];
57926
57926
  return this.size -= Yt ? 1 : 0, Yt;
57927
- }, D2.prototype.get = function(Ct) {
57927
+ }, P2.prototype.get = function(Ct) {
57928
57928
  var Yt = this.__data__;
57929
57929
  if (jo) {
57930
57930
  var Ee = Yt[Ct];
57931
57931
  return Ee === F ? void 0 : Ee;
57932
57932
  }
57933
57933
  return Xi.call(Yt, Ct) ? Yt[Ct] : void 0;
57934
- }, D2.prototype.has = function(Ct) {
57934
+ }, P2.prototype.has = function(Ct) {
57935
57935
  var Yt = this.__data__;
57936
57936
  return jo ? Yt[Ct] !== void 0 : Xi.call(Yt, Ct);
57937
- }, D2.prototype.set = function(Ct, Yt) {
57937
+ }, P2.prototype.set = function(Ct, Yt) {
57938
57938
  var Ee = this.__data__;
57939
57939
  return this.size += this.has(Ct) ? 0 : 1, Ee[Ct] = jo && Yt === void 0 ? F : Yt, this;
57940
57940
  }, N1.prototype.clear = function() {
@@ -57950,16 +57950,16 @@ var x$ = { exports: {} };
57950
57950
  }, N1.prototype.set = function(Ct, Yt) {
57951
57951
  var Ee = this.__data__, ar = wr(Ee, Ct);
57952
57952
  return ar < 0 ? (++this.size, Ee.push([Ct, Yt])) : Ee[ar][1] = Yt, this;
57953
- }, I2.prototype.clear = function() {
57954
- this.size = 0, this.__data__ = { hash: new D2(), map: new (M3 || N1)(), string: new D2() };
57955
- }, I2.prototype.delete = function(Ct) {
57953
+ }, D2.prototype.clear = function() {
57954
+ this.size = 0, this.__data__ = { hash: new P2(), map: new (M3 || N1)(), string: new P2() };
57955
+ }, D2.prototype.delete = function(Ct) {
57956
57956
  var Yt = d2(this, Ct).delete(Ct);
57957
57957
  return this.size -= Yt ? 1 : 0, Yt;
57958
- }, I2.prototype.get = function(Ct) {
57958
+ }, D2.prototype.get = function(Ct) {
57959
57959
  return d2(this, Ct).get(Ct);
57960
- }, I2.prototype.has = function(Ct) {
57960
+ }, D2.prototype.has = function(Ct) {
57961
57961
  return d2(this, Ct).has(Ct);
57962
- }, I2.prototype.set = function(Ct, Yt) {
57962
+ }, D2.prototype.set = function(Ct, Yt) {
57963
57963
  var Ee = d2(this, Ct), ar = Ee.size;
57964
57964
  return Ee.set(Ct, Yt), this.size += Ee.size == ar ? 0 : 1, this;
57965
57965
  }, Is.prototype.add = Is.prototype.push = function(Ct) {
@@ -57981,7 +57981,7 @@ var x$ = { exports: {} };
57981
57981
  var ar = Ee.__data__;
57982
57982
  if (!M3 || ar.length < 199)
57983
57983
  return ar.push([Ct, Yt]), this.size = ++Ee.size, this;
57984
- Ee = this.__data__ = new I2(ar);
57984
+ Ee = this.__data__ = new D2(ar);
57985
57985
  }
57986
57986
  return Ee.set(Ct, Yt), this.size = Ee.size, this;
57987
57987
  };
@@ -58001,7 +58001,7 @@ var x$ = { exports: {} };
58001
58001
  function u6(Ct, Yt) {
58002
58002
  return !!(Yt = Yt ?? q) && (typeof Ct == "number" || G5.test(Ct)) && Ct > -1 && Ct % 1 == 0 && Ct < Yt;
58003
58003
  }
58004
- function V2(Ct) {
58004
+ function I2(Ct) {
58005
58005
  if (Ct != null) {
58006
58006
  try {
58007
58007
  return K5.call(Ct);
@@ -58018,14 +58018,14 @@ var x$ = { exports: {} };
58018
58018
  return Ct === Yt || Ct != Ct && Yt != Yt;
58019
58019
  }
58020
58020
  (s6 && Q2(new s6(new ArrayBuffer(1))) != yn || M3 && Q2(new M3()) != de || Cs && Q2(Cs.resolve()) != hn || Hs && Q2(new Hs()) != $r || Os && Q2(new Os()) != Zr) && (Q2 = function(Ct) {
58021
- var Yt = ho(Ct), Ee = Yt == Xe ? Ct.constructor : void 0, ar = Ee ? V2(Ee) : "";
58021
+ var Yt = ho(Ct), Ee = Yt == Xe ? Ct.constructor : void 0, ar = Ee ? I2(Ee) : "";
58022
58022
  if (ar)
58023
58023
  switch (ar) {
58024
58024
  case J5:
58025
58025
  return yn;
58026
58026
  case Ps:
58027
58027
  return de;
58028
- case P2:
58028
+ case O2:
58029
58029
  return hn;
58030
58030
  case l6:
58031
58031
  return $r;
@@ -58071,8 +58071,8 @@ var x$ = { exports: {} };
58071
58071
  P.exports = function(Ct, Yt) {
58072
58072
  return rn(Ct, Yt);
58073
58073
  };
58074
- })(H2, H2.exports);
58075
- var w1 = n(H2.exports);
58074
+ })(C2, C2.exports);
58075
+ var w1 = n(C2.exports);
58076
58076
  function Si(P, z) {
58077
58077
  return P.length === z.length && JSON.stringify(P.map(function(F) {
58078
58078
  return F;
@@ -58270,12 +58270,12 @@ Ul = new WeakSet(), WT = function(t) {
58270
58270
  }, es = new WeakSet(), F6 = function(t, r) {
58271
58271
  r.id && this.__uncommittedFeatureIds.add(r.id), this.__flatmap.annotationEvent(t, r);
58272
58272
  };
58273
- var o2, J2, to, WQ, d9, ra, Zl, E2, a5, s5, H4;
58273
+ var o2, Y2, J2, WQ, d9, ra, Zl, E2, a5, s5, H4;
58274
58274
  class lQt {
58275
58275
  constructor(t, r) {
58276
58276
  Rt(this, o2, void 0);
58277
+ Rt(this, Y2, void 0);
58277
58278
  Rt(this, J2, void 0);
58278
- Rt(this, to, void 0);
58279
58279
  Rt(this, WQ, void 0);
58280
58280
  Rt(this, d9, void 0);
58281
58281
  Rt(this, ra, void 0);
@@ -58290,28 +58290,28 @@ class lQt {
58290
58290
  return "top-right";
58291
58291
  }
58292
58292
  onAdd(t) {
58293
- qt(this, Zl, t), qt(this, to, document.createElement("div")), K(this, to).id = "centreline-nerve-ctrl", K(this, to).className = "maplibregl-ctrl", qt(this, ra, document.createElement("div")), K(this, ra).id = "centreline-key-text", K(this, ra).className = "flatmap-nerve-grid centreline-nerve-grid", qt(this, E2, K(this, H4).getNerveDetails().sort((n, i) => n.label.localeCompare(i.label)));
58293
+ qt(this, Zl, t), qt(this, J2, document.createElement("div")), K(this, J2).id = "centreline-nerve-ctrl", K(this, J2).className = "maplibregl-ctrl", qt(this, ra, document.createElement("div")), K(this, ra).id = "centreline-key-text", K(this, ra).className = "flatmap-nerve-grid centreline-nerve-grid", qt(this, E2, K(this, H4).getNerveDetails().sort((n, i) => n.label.localeCompare(i.label)));
58294
58294
  const r = [];
58295
58295
  r.push('<label class="heading" for="nerve-all-nerves">PATH NERVES:</label></div><input id="nerve-all-nerves" type="checkbox" checked/>'), r.push('<label for="show-centrelines">Show centrelines?</label></div><input id="show-centrelines" type="checkbox"/>'), r.push('<label for="nerve-NO-NERVES">No associated nerves</label></div><input id="nerve-NO-NERVES" type="checkbox" checked/>');
58296
58296
  for (const n of K(this, E2))
58297
58297
  n.models !== "NO-NERVES" && r.push(`<label for="nerve-${n.models}">${n.label}</label></div><input id="nerve-${n.models}" type="checkbox" checked/>`);
58298
58298
  return qt(this, s5, new Map(K(this, E2).map((n) => [n.models, !0]))), K(this, ra).innerHTML = r.join(`
58299
- `), qt(this, J2, K(this, E2).length), qt(this, d9, Math.trunc(K(this, E2).length / 2)), qt(this, o2, document.createElement("button")), K(this, o2).id = "centreline-key-button", K(this, o2).className = "control-button text-button", K(this, o2).setAttribute("type", "button"), K(this, o2).setAttribute("aria-label", "Neuron paths associated with nerves"), K(this, o2).setAttribute("control-visible", "false"), K(this, o2).textContent = "NERVES", K(this, o2).title = "Show/hide neuron paths associated with nerves", K(this, to).appendChild(K(this, o2)), K(this, to).addEventListener("click", this.onClick_.bind(this)), K(this, to);
58299
+ `), qt(this, Y2, K(this, E2).length), qt(this, d9, Math.trunc(K(this, E2).length / 2)), qt(this, o2, document.createElement("button")), K(this, o2).id = "centreline-key-button", K(this, o2).className = "control-button text-button", K(this, o2).setAttribute("type", "button"), K(this, o2).setAttribute("aria-label", "Neuron paths associated with nerves"), K(this, o2).setAttribute("control-visible", "false"), K(this, o2).textContent = "NERVES", K(this, o2).title = "Show/hide neuron paths associated with nerves", K(this, J2).appendChild(K(this, o2)), K(this, J2).addEventListener("click", this.onClick_.bind(this)), K(this, J2);
58300
58300
  }
58301
58301
  onRemove() {
58302
- K(this, to).parentNode.removeChild(K(this, to)), qt(this, Zl, void 0);
58302
+ K(this, J2).parentNode.removeChild(K(this, J2)), qt(this, Zl, void 0);
58303
58303
  }
58304
58304
  onClick_(t) {
58305
58305
  if (t.target.id === "centreline-key-button")
58306
58306
  if (K(this, o2).getAttribute("control-visible") === "false") {
58307
- K(this, to).appendChild(K(this, ra)), K(this, o2).setAttribute("control-visible", "true");
58307
+ K(this, J2).appendChild(K(this, ra)), K(this, o2).setAttribute("control-visible", "true");
58308
58308
  const r = document.getElementById("nerve-all-nerves");
58309
- r.indeterminate = K(this, J2) < K(this, E2).length && K(this, J2) > 0, K(this, ra).focus();
58309
+ r.indeterminate = K(this, Y2) < K(this, E2).length && K(this, Y2) > 0, K(this, ra).focus();
58310
58310
  } else
58311
- qt(this, ra, K(this, to).removeChild(K(this, ra))), K(this, o2).setAttribute("control-visible", "false");
58311
+ qt(this, ra, K(this, J2).removeChild(K(this, ra))), K(this, o2).setAttribute("control-visible", "false");
58312
58312
  else if (t.target.tagName === "INPUT") {
58313
58313
  if (t.target.id === "nerve-all-nerves") {
58314
- t.target.indeterminate && (t.target.checked = K(this, J2) >= K(this, d9), t.target.indeterminate = !1), t.target.checked ? qt(this, J2, K(this, E2).length) : qt(this, J2, 0);
58314
+ t.target.indeterminate && (t.target.checked = K(this, Y2) >= K(this, d9), t.target.indeterminate = !1), t.target.checked ? qt(this, Y2, K(this, E2).length) : qt(this, Y2, 0);
58315
58315
  for (const r of K(this, E2)) {
58316
58316
  const n = document.getElementById(`nerve-${r.models}`);
58317
58317
  n && (n.checked = t.target.checked);
@@ -58319,9 +58319,9 @@ class lQt {
58319
58319
  K(this, H4).enableNeuronPathsByNerve(K(this, E2).map((r) => r.models), t.target.checked, K(this, a5)), qt(this, s5, new Map(K(this, E2).map((r) => [r.models, t.target.checked])));
58320
58320
  } else if (t.target.id.startsWith("nerve-")) {
58321
58321
  const r = t.target.id.substring(6);
58322
- K(this, H4).enableNeuronPathsByNerve(r, t.target.checked, K(this, a5)), K(this, s5).set(r, t.target.checked), t.target.checked ? qt(this, J2, K(this, J2) + 1) : qt(this, J2, K(this, J2) - 1);
58322
+ K(this, H4).enableNeuronPathsByNerve(r, t.target.checked, K(this, a5)), K(this, s5).set(r, t.target.checked), t.target.checked ? qt(this, Y2, K(this, Y2) + 1) : qt(this, Y2, K(this, Y2) - 1);
58323
58323
  const n = document.getElementById("nerve-all-nerves");
58324
- K(this, J2) === 0 ? (n.checked = !1, n.indeterminate = !1) : K(this, J2) === K(this, E2).length ? (n.checked = !0, n.indeterminate = !1) : n.indeterminate = !0;
58324
+ K(this, Y2) === 0 ? (n.checked = !1, n.indeterminate = !1) : K(this, Y2) === K(this, E2).length ? (n.checked = !0, n.indeterminate = !1) : n.indeterminate = !0;
58325
58325
  } else if (t.target.id === "show-centrelines") {
58326
58326
  qt(this, a5, t.target.checked);
58327
58327
  const r = [...K(this, s5).entries()].filter((n) => n[1]).map((n) => n[0]);
@@ -58331,7 +58331,7 @@ class lQt {
58331
58331
  t.stopPropagation();
58332
58332
  }
58333
58333
  }
58334
- o2 = new WeakMap(), J2 = new WeakMap(), to = new WeakMap(), WQ = new WeakMap(), d9 = new WeakMap(), ra = new WeakMap(), Zl = new WeakMap(), E2 = new WeakMap(), a5 = new WeakMap(), s5 = new WeakMap(), H4 = new WeakMap();
58334
+ o2 = new WeakMap(), Y2 = new WeakMap(), J2 = new WeakMap(), WQ = new WeakMap(), d9 = new WeakMap(), ra = new WeakMap(), Zl = new WeakMap(), E2 = new WeakMap(), a5 = new WeakMap(), s5 = new WeakMap(), H4 = new WeakMap();
58335
58335
  class cQt {
58336
58336
  constructor(t, r) {
58337
58337
  this._flatmap = t, this._map = void 0, this.__pathTypes = r;
@@ -65732,7 +65732,7 @@ var bi = {};
65732
65732
  };
65733
65733
  }(e.TexConstant || (e.TexConstant = {}));
65734
65734
  })(bi);
65735
- var C2 = {}, x3 = {};
65735
+ var S2 = {}, x3 = {};
65736
65736
  (function(e) {
65737
65737
  Object.defineProperty(e, "__esModule", { value: !0 }), e.px = e.emRounded = e.em = e.percent = e.length2em = e.MATHSPACE = e.RELUNITS = e.UNITS = e.BIGDIMEN = void 0, e.BIGDIMEN = 1e6, e.UNITS = {
65738
65738
  px: 1,
@@ -65848,7 +65848,7 @@ var E7 = I && I.__assign || function() {
65848
65848
  }, Vp = I && I.__importDefault || function(e) {
65849
65849
  return e && e.__esModule ? e : { default: e };
65850
65850
  };
65851
- Object.defineProperty(C2, "__esModule", { value: !0 });
65851
+ Object.defineProperty(S2, "__esModule", { value: !0 });
65852
65852
  var MA = emt(Tr), Fe = Vp(Wn), W1 = Vp(un), Rp = Vp(Wi()), SA = bi, E1 = Vp(qn()), G7 = dr, I$ = vs, V$ = x3, Xb = J9, rmt = ui, or = {}, nmt = 1.2 / 0.85, imt = {
65853
65853
  fontfamily: 1,
65854
65854
  fontsize: 1,
@@ -66338,7 +66338,7 @@ or.MathChoice = function(e, t) {
66338
66338
  var r = e.ParseArg(t), n = e.ParseArg(t), i = e.ParseArg(t), o = e.ParseArg(t);
66339
66339
  e.Push(e.create("node", "MathChoice", [r, n, i, o]));
66340
66340
  };
66341
- C2.default = or;
66341
+ S2.default = or;
66342
66342
  var da = {}, omt = I && I.__read || function(e, t) {
66343
66343
  var r = typeof Symbol == "function" && e[Symbol.iterator];
66344
66344
  if (!r)
@@ -66441,7 +66441,7 @@ var lmt = I && I.__createBinding || (Object.create ? function(e, t, r, n) {
66441
66441
  return cmt(t, e), t;
66442
66442
  }, CA = I && I.__importDefault || function(e) {
66443
66443
  return e && e.__esModule ? e : { default: e };
66444
- }, Qa = umt(gr), Oe = bi, HA = CA(C2), t6 = CA(da), hmt = CA(qn()), Lr = dr, w2 = x3;
66444
+ }, Qa = umt(gr), Oe = bi, HA = CA(S2), t6 = CA(da), hmt = CA(qn()), Lr = dr, w2 = x3;
66445
66445
  new Qa.RegExpMap("letter", t6.default.variable, /[a-z]/i);
66446
66446
  new Qa.RegExpMap("digit", t6.default.digit, /[0-9.,]/);
66447
66447
  new Qa.RegExpMap("command", t6.default.controlSequence, /^\\/);
@@ -68365,7 +68365,7 @@ var igt = function() {
68365
68365
  }, e;
68366
68366
  }();
68367
68367
  $p.AbstractWrapper = igt;
68368
- var S2 = {}, Jd = I && I.__assign || function() {
68368
+ var M2 = {}, Jd = I && I.__assign || function() {
68369
68369
  return Jd = Object.assign || function(e) {
68370
68370
  for (var t, r = 1, n = arguments.length; r < n; r++) {
68371
68371
  t = arguments[r];
@@ -68410,12 +68410,12 @@ var S2 = {}, Jd = I && I.__assign || function() {
68410
68410
  };
68411
68411
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
68412
68412
  };
68413
- Object.defineProperty(S2, "__esModule", { value: !0 });
68414
- S2.FontData = S2.NOSTRETCH = S2.H = S2.V = void 0;
68413
+ Object.defineProperty(M2, "__esModule", { value: !0 });
68414
+ M2.FontData = M2.NOSTRETCH = M2.H = M2.V = void 0;
68415
68415
  var oI = ui;
68416
- S2.V = 1;
68417
- S2.H = 2;
68418
- S2.NOSTRETCH = { dir: 0 };
68416
+ M2.V = 1;
68417
+ M2.H = 2;
68418
+ M2.NOSTRETCH = { dir: 0 };
68419
68419
  var ogt = function() {
68420
68420
  function e(t) {
68421
68421
  var r, n, i, o;
@@ -68733,7 +68733,7 @@ var ogt = function() {
68733
68733
  extra_ic: 0.033
68734
68734
  }, e.defaultDelimiters = {}, e.defaultChars = {}, e.defaultSizeVariants = [], e.defaultStretchVariants = [], e;
68735
68735
  }();
68736
- S2.FontData = ogt;
68736
+ M2.FontData = ogt;
68737
68737
  var agt = I && I.__extends || /* @__PURE__ */ function() {
68738
68738
  var e = function(t, r) {
68739
68739
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -68810,7 +68810,7 @@ var agt = I && I.__extends || /* @__PURE__ */ function() {
68810
68810
  };
68811
68811
  Object.defineProperty(jp, "__esModule", { value: !0 });
68812
68812
  jp.CommonWrapper = void 0;
68813
- var hgt = $p, sI = dr, fgt = s1, uc = cgt(x3), lI = ih, hc = pa, cI = S2, uI = 2 / 18;
68813
+ var hgt = $p, sI = dr, fgt = s1, uc = cgt(x3), lI = ih, hc = pa, cI = M2, uI = 2 / 18;
68814
68814
  function hI(e, t) {
68815
68815
  return e ? t < uI ? 0 : uI : t;
68816
68816
  }
@@ -70248,7 +70248,7 @@ var dc = {}, M7 = {}, Hgt = I && I.__extends || /* @__PURE__ */ function() {
70248
70248
  }, rT;
70249
70249
  Object.defineProperty(M7, "__esModule", { value: !0 });
70250
70250
  M7.CommonMoMixin = M7.DirectionVH = void 0;
70251
- var mI = pa, Dgt = s1, Igt = S2;
70251
+ var mI = pa, Dgt = s1, Igt = M2;
70252
70252
  M7.DirectionVH = (rT = {}, rT[1] = "v", rT[2] = "h", rT);
70253
70253
  function Vgt(e) {
70254
70254
  return function(t) {
@@ -76914,8 +76914,8 @@ var cm = {}, d1 = {};
76914
76914
  throw new TypeError(Q ? "Object is not iterable." : "Symbol.iterator is not defined.");
76915
76915
  };
76916
76916
  Object.defineProperty(e, "__esModule", { value: !0 }), e.AddPaths = e.SVGFontData = void 0;
76917
- var a = S2;
76918
- i(S2, e);
76917
+ var a = M2;
76918
+ i(M2, e);
76919
76919
  var s = function(T) {
76920
76920
  t(Q, T);
76921
76921
  function Q() {
@@ -82038,7 +82038,7 @@ tg.texVariant = (0, ext.AddPaths)(rxt.texVariant, {
82038
82038
  var rz = {};
82039
82039
  (function(e) {
82040
82040
  Object.defineProperty(e, "__esModule", { value: !0 }), e.delimiters = e.VSIZES = e.HDW3 = e.HDW2 = e.HDW1 = void 0;
82041
- var t = S2;
82041
+ var t = M2;
82042
82042
  e.HDW1 = [0.75, 0.25, 0.875], e.HDW2 = [0.85, 0.349, 0.667], e.HDW3 = [0.583, 0.082, 0.5], e.VSIZES = [1, 1.2, 1.8, 2.4, 3];
82043
82043
  var r = { c: 47, dir: t.V, sizes: e.VSIZES }, n = { c: 175, dir: t.H, sizes: [0.5], stretch: [0, 175], HDW: [0.59, -0.544, 0.5] }, i = { c: 710, dir: t.H, sizes: [0.5, 0.556, 1, 1.444, 1.889] }, o = { c: 732, dir: t.H, sizes: [0.5, 0.556, 1, 1.444, 1.889] }, a = { c: 8211, dir: t.H, sizes: [0.5], stretch: [0, 8211], HDW: [0.285, -0.248, 0.5] }, s = { c: 8592, dir: t.H, sizes: [1], stretch: [8592, 8722], HDW: e.HDW3 }, h = { c: 8594, dir: t.H, sizes: [1], stretch: [0, 8722, 8594], HDW: e.HDW3 }, T = { c: 8596, dir: t.H, sizes: [1], stretch: [8592, 8722, 8594], HDW: e.HDW3 }, Q = { c: 8612, dir: t.H, stretch: [8592, 8722, 8739], HDW: e.HDW3, min: 1.278 }, p = { c: 8614, dir: t.H, sizes: [1], stretch: [8739, 8722, 8594], HDW: e.HDW3 }, m = { c: 8656, dir: t.H, sizes: [1], stretch: [8656, 61], HDW: e.HDW3 }, y = { c: 8658, dir: t.H, sizes: [1], stretch: [0, 61, 8658], HDW: e.HDW3 }, b = { c: 8660, dir: t.H, sizes: [1], stretch: [8656, 61, 8658], HDW: e.HDW3 }, L = { c: 8722, dir: t.H, sizes: [0.778], stretch: [0, 8722], HDW: e.HDW3 }, C = { c: 8739, dir: t.V, sizes: [1], stretch: [0, 8739], HDW: [0.627, 0.015, 0.333] }, E = {
82044
82044
  c: 9180,
@@ -84437,7 +84437,7 @@ var UA = {}, Obt = {};
84437
84437
  return a && a.__esModule ? a : { default: a };
84438
84438
  };
84439
84439
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ActionConfiguration = e.ActionMethods = void 0;
84440
- var r = tn, n = t(Wi()), i = gr, o = t(C2);
84440
+ var r = tn, n = t(Wi()), i = gr, o = t(S2);
84441
84441
  e.ActionMethods = {}, e.ActionMethods.Macro = o.default.Macro, e.ActionMethods.Toggle = function(a, s) {
84442
84442
  for (var h = [], T; (T = a.GetArgument(s)) !== "\\endtoggle"; )
84443
84443
  h.push(new n.default(T, a.stack.env, a.configuration).mml());
@@ -84591,7 +84591,7 @@ var X7 = {};
84591
84591
  return L && L.__esModule ? L : { default: L };
84592
84592
  };
84593
84593
  Object.defineProperty(e, "__esModule", { value: !0 }), e.NEW_OPS = e.AmsMethods = void 0;
84594
- var i = n(qn()), o = n(da), a = n(Wn), s = bi, h = n(Wi()), T = n(un), Q = ha, p = n(C2), m = dr;
84594
+ var i = n(qn()), o = n(da), a = n(Wn), s = bi, h = n(Wi()), T = n(un), Q = ha, p = n(S2), m = dr;
84595
84595
  e.AmsMethods = {}, e.AmsMethods.AmsEqnArray = function(L, C, E, H, V, B, $) {
84596
84596
  var Z = L.GetBrackets("\\begin{" + C.getName() + "}"), G = p.default.EqnArray(L, C, E, H, V, B, $);
84597
84597
  return i.default.setArrayAlign(G, Z);
@@ -85450,7 +85450,7 @@ var YA = {}, pz = I && I.__importDefault || function(e) {
85450
85450
  return e && e.__esModule ? e : { default: e };
85451
85451
  };
85452
85452
  Object.defineProperty(YA, "__esModule", { value: !0 });
85453
- var rLt = pz(C2), qv = dr, nLt = pz(un), _g = {};
85453
+ var rLt = pz(S2), qv = dr, nLt = pz(un), _g = {};
85454
85454
  _g.Macro = rLt.default.Macro;
85455
85455
  _g.Braket = function(e, t, r, n, i, o) {
85456
85456
  var a = e.GetNext();
@@ -86245,7 +86245,7 @@ var _Lt = {}, rE = {};
86245
86245
  return b && b.__esModule ? b : { default: b };
86246
86246
  }, n;
86247
86247
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CasesConfiguration = e.CasesMethods = e.CasesTags = e.CasesBeginItem = void 0;
86248
- var i = tn, o = gr, a = r(qn()), s = r(C2), h = r(un), T = Tr, Q = D7, p = rE, m = function(b) {
86248
+ var i = tn, o = gr, a = r(qn()), s = r(S2), h = r(un), T = Tr, Q = D7, p = rE, m = function(b) {
86249
86249
  t(L, b);
86250
86250
  function L() {
86251
86251
  return b !== null && b.apply(this, arguments) || this;
@@ -86345,7 +86345,7 @@ var Hu = {}, vLt = I && I.__values || function(e) {
86345
86345
  };
86346
86346
  Object.defineProperty(Hu, "__esModule", { value: !0 });
86347
86347
  Hu.CenternotConfiguration = Hu.filterCenterOver = void 0;
86348
- var xLt = tn, $V = nE(Wi()), zV = nE(Wn), bLt = gr, LLt = nE(C2);
86348
+ var xLt = tn, $V = nE(Wi()), zV = nE(Wn), bLt = gr, LLt = nE(S2);
86349
86349
  new bLt.CommandMap("centernot", {
86350
86350
  centerOver: "CenterOver",
86351
86351
  centernot: ["Macro", "\\centerOver{#1}{{⧸}}", 1]
@@ -86836,7 +86836,7 @@ var kLt = I && I.__createBinding || (Object.create ? function(e, t, r, n) {
86836
86836
  return e && e.__esModule ? e : { default: e };
86837
86837
  };
86838
86838
  Object.defineProperty(wh, "__esModule", { value: !0 });
86839
- var NLt = wg(un), jLt = FLt(gr), $Lt = wg(C2), L5 = wg(qn()), R1 = wg(Y7), no = {};
86839
+ var NLt = wg(un), jLt = FLt(gr), $Lt = wg(S2), L5 = wg(qn()), R1 = wg(Y7), no = {};
86840
86840
  no.NewCommand = function(e, t) {
86841
86841
  var r = R1.default.GetCsNameArgument(e, t), n = R1.default.GetArgCount(e, t), i = e.GetBrackets(t), o = e.GetArgument(t);
86842
86842
  R1.default.addMacro(e, r, no.Macro, [o, n, i]);
@@ -87452,7 +87452,7 @@ function Bz() {
87452
87452
  return E && E.__esModule ? E : { default: E };
87453
87453
  };
87454
87454
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MathtoolsMethods = void 0;
87455
- var o = i(qn()), a = X7, s = i(C2), h = i(Wi()), T = i(un), Q = i(Wn), p = dr, m = x3, y = ui, b = i(Y7), L = i(wh), C = kz();
87455
+ var o = i(qn()), a = X7, s = i(S2), h = i(Wi()), T = i(un), Q = i(Wn), p = dr, m = x3, y = ui, b = i(Y7), L = i(wh), C = kz();
87456
87456
  e.MathtoolsMethods = {
87457
87457
  MtMatrix: function(E, H, V, B) {
87458
87458
  var $ = E.GetBrackets("\\begin{".concat(H.getName(), "}"), "c");
@@ -89685,7 +89685,7 @@ var ye = {
89685
89685
  };
89686
89686
  Object.defineProperty(uE, "__esModule", { value: !0 });
89687
89687
  uE.MhchemConfiguration = void 0;
89688
- var Swt = tn, Cwt = gr, Hwt = Nz(un), Owt = Nz(C2), Pwt = X7, Dwt = Cg, Hg = {};
89688
+ var Swt = tn, Cwt = gr, Hwt = Nz(un), Owt = Nz(S2), Pwt = X7, Dwt = Cg, Hg = {};
89689
89689
  Hg.Macro = Owt.default.Macro;
89690
89690
  Hg.xArrow = Pwt.AmsMethods.xArrow;
89691
89691
  Hg.Machine = function(e, t, r) {
@@ -89865,7 +89865,7 @@ var QE = {}, Uwt = I && I.__read || function(e, t) {
89865
89865
  return e && e.__esModule ? e : { default: e };
89866
89866
  };
89867
89867
  Object.defineProperty(QE, "__esModule", { value: !0 });
89868
- var pE = Mh(C2), ci = Mh(Wi()), I7 = Mh(un), mE = dr, cu = Mh(qn()), yL = Mh(Wn), Zwt = q7, En = {}, jz = {
89868
+ var pE = Mh(S2), ci = Mh(Wi()), I7 = Mh(un), mE = dr, cu = Mh(qn()), yL = Mh(Wn), Zwt = q7, En = {}, jz = {
89869
89869
  "(": ")",
89870
89870
  "[": "]",
89871
89871
  "{": "}",
@@ -90463,7 +90463,7 @@ var rAt = {};
90463
90463
  return m && m.__esModule ? m : { default: m };
90464
90464
  };
90465
90465
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SetOptionsConfiguration = e.SetOptionsUtil = void 0;
90466
- var n = tn, i = gr, o = r(un), a = r(qn()), s = ha, h = r(C2), T = ui;
90466
+ var n = tn, i = gr, o = r(un), a = r(qn()), s = ha, h = r(S2), T = ui;
90467
90467
  e.SetOptionsUtil = {
90468
90468
  filterPackage: function(m, y) {
90469
90469
  if (y !== "tex" && !n.ConfigurationHandler.get(y))
@@ -90614,7 +90614,7 @@ var yE = {}, J7 = {}, qz = I && I.__importDefault || function(e) {
90614
90614
  };
90615
90615
  Object.defineProperty(J7, "__esModule", { value: !0 });
90616
90616
  J7.TextMacrosMethods = void 0;
90617
- var oAt = qz(Wi()), aAt = U4, W0 = qz(C2);
90617
+ var oAt = qz(Wi()), aAt = U4, W0 = qz(S2);
90618
90618
  J7.TextMacrosMethods = {
90619
90619
  Comment: function(e, t) {
90620
90620
  for (; e.i < e.string.length && e.string.charAt(e.i) !== `
@@ -92089,20 +92089,20 @@ const FAt = [
92089
92089
  class c2 {
92090
92090
  }
92091
92091
  ut(c2, "FUNCTIONAL", "functional"), ut(c2, "ANATOMICAL", "anatomical"), ut(c2, "CENTRELINE", "centreline"), ut(c2, "GENERIC", "flatmap");
92092
- var s7, l7, is, M2, c7, os, m5, A9, bL;
92092
+ var s7, l7, is, to, c7, os, m5, A9, bL;
92093
92093
  class UAt {
92094
92094
  constructor(t, r, n, i) {
92095
92095
  Rt(this, A9);
92096
92096
  Rt(this, s7, void 0);
92097
92097
  Rt(this, l7, []);
92098
92098
  Rt(this, is, "");
92099
- Rt(this, M2, void 0);
92099
+ Rt(this, to, void 0);
92100
92100
  Rt(this, c7, void 0);
92101
92101
  Rt(this, os, -1);
92102
92102
  Rt(this, m5, /* @__PURE__ */ new Map());
92103
- qt(this, M2, r), qt(this, s7, r.url()), this.__id = n.id, this.__uuid = n.uuid, this.__details = n.details, this.__provenance = n.provenance, this.__created = n.created, this.__taxon = n.taxon, this.__biologicalSex = n.biologicalSex, this._mapNumber = n.number, K(this, l7).push(n.callback), this._layers = n.layers, this._markers = n.markers, this._options = n.options, this._pathways = n.pathways, this._resolve = i, this._map = null, this.__searchIndex = new Xot(this), this.__idToAnnotation = /* @__PURE__ */ new Map(), this.__datasetToFeatureIds = /* @__PURE__ */ new Map(), this.__modelToFeatureIds = /* @__PURE__ */ new Map(), this.__mapSourceToFeatureIds = /* @__PURE__ */ new Map(), this.__annIdToFeatureId = /* @__PURE__ */ new Map(), this.__taxonToFeatureIds = /* @__PURE__ */ new Map(), this.__featurePropertyValues = /* @__PURE__ */ new Map(), qt(this, c7, new n6t(n.sparcTermGraph));
92103
+ qt(this, to, r), qt(this, s7, r.url()), this.__id = n.id, this.__uuid = n.uuid, this.__details = n.details, this.__provenance = n.provenance, this.__created = n.created, this.__taxon = n.taxon, this.__biologicalSex = n.biologicalSex, this._mapNumber = n.number, K(this, l7).push(n.callback), this._layers = n.layers, this._markers = n.markers, this._options = n.options, this._pathways = n.pathways, this._resolve = i, this._map = null, this.__searchIndex = new Xot(this), this.__idToAnnotation = /* @__PURE__ */ new Map(), this.__datasetToFeatureIds = /* @__PURE__ */ new Map(), this.__modelToFeatureIds = /* @__PURE__ */ new Map(), this.__mapSourceToFeatureIds = /* @__PURE__ */ new Map(), this.__annIdToFeatureId = /* @__PURE__ */ new Map(), this.__taxonToFeatureIds = /* @__PURE__ */ new Map(), this.__featurePropertyValues = /* @__PURE__ */ new Map(), qt(this, c7, new n6t(n.sparcTermGraph));
92104
92104
  const o = n.details.connectivity;
92105
- o === void 0 ? qt(this, is, K(this, M2).latestSource) : "knowledge-source" in o ? qt(this, is, o["knowledge-source"]) : "npo" in o ? qt(this, is, `${o.npo.release}-npo`) : qt(this, is, K(this, M2).latestSource);
92105
+ o === void 0 ? qt(this, is, K(this, to).latestSource) : "knowledge-source" in o ? qt(this, is, o["knowledge-source"]) : "npo" in o ? qt(this, is, `${o.npo.release}-npo`) : qt(this, is, K(this, to).latestSource);
92106
92106
  for (const [s, h] of Object.entries(n.annotations))
92107
92107
  this.__saveAnnotation(s, h), this.__searchIndex.indexMetadata(s, h);
92108
92108
  for (const [s, h] of Object.entries(n.style.sources))
@@ -92144,7 +92144,7 @@ class UAt {
92144
92144
  for (const r of this._options.images)
92145
92145
  await this.addImage(r.id, r.url, "", r.options);
92146
92146
  await s6t(this._map);
92147
- const t = await K(this, M2).loadJSON(`flatmap/${this.__uuid}/termgraph`);
92147
+ const t = await K(this, to).loadJSON(`flatmap/${this.__uuid}/termgraph`);
92148
92148
  K(this, c7).load(t), this._userInteractions = new BAt(this), qt(this, os, 1);
92149
92149
  }
92150
92150
  /**
@@ -93100,15 +93100,34 @@ class UAt {
93100
93100
  * @return {EntityLabel[]} An ``EntityLabel`` array.
93101
93101
  */
93102
93102
  async queryLabels(t) {
93103
- const r = Array.isArray(t) ? t : [t];
93104
- return r.length > 0 ? (await K(this, M2).queryKnowledge(
93105
- `select entity, label from labels
93106
- where entity in (?${", ?".repeat(r.length - 1)})`,
93107
- r
93108
- )).map((i) => ({
93109
- entity: i[0],
93110
- label: i[1]
93111
- })) : [];
93103
+ const r = [], n = Array.isArray(t) ? t : [t];
93104
+ if (n.length > 0)
93105
+ if (K(this, to).knowledgeSchema >= kH) {
93106
+ const i = await K(this, to).queryKnowledge(
93107
+ `select source, entity, knowledge from knowledge
93108
+ where (source=? or source is null)
93109
+ and entity in (?${", ?".repeat(n.length - 1)})`,
93110
+ [K(this, is), ...n]
93111
+ );
93112
+ let o = null;
93113
+ for (const a of i)
93114
+ if (a[1] !== o) {
93115
+ const s = JSON.parse(a[2]);
93116
+ r.push({
93117
+ entity: a[1],
93118
+ label: s.label || a[1]
93119
+ }), o = a[1];
93120
+ }
93121
+ } else
93122
+ return (await K(this, to).queryKnowledge(
93123
+ `select entity, label from labels
93124
+ where entity in (?${", ?".repeat(n.length - 1)})`,
93125
+ n
93126
+ )).map((o) => ({
93127
+ entity: o[0],
93128
+ label: o[1]
93129
+ }));
93130
+ return r;
93112
93131
  }
93113
93132
  /**
93114
93133
  * Get knowledge about an entity from the flatmap's server's knowledge store.
@@ -93117,33 +93136,18 @@ class UAt {
93117
93136
  * @return {Object} JSON describing the entity.
93118
93137
  */
93119
93138
  async queryKnowledge(t) {
93120
- const r = K(this, M2).knowledgeSchema >= kH ? await K(this, M2).queryKnowledge(
93121
- "select knowledge from knowledge where source=? and entity=?",
93139
+ const r = K(this, to).knowledgeSchema >= kH ? await K(this, to).queryKnowledge(
93140
+ "select knowledge from knowledge where (source=? or source is null) and entity=? order by source desc",
93122
93141
  [K(this, is), t]
93123
- ) : await K(this, M2).queryKnowledge(
93142
+ ) : await K(this, to).queryKnowledge(
93124
93143
  "select knowledge from knowledge where entity=?",
93125
93144
  [t]
93126
93145
  );
93127
- return r.length ? JSON.parse(r) : {};
93128
- }
93129
- /**
93130
- * Get publications about an entity from the flatmap's server's knowledge store.
93131
- *
93132
- * @param {string} entity The URI of an entity.
93133
- * @return {string[]} A list of publication URIs.
93134
- */
93135
- async queryPublications(t) {
93136
- return (K(this, M2).knowledgeSchema >= kH ? await K(this, M2).queryKnowledge(
93137
- "select distinct publication from publications where source=? and entity=?",
93138
- [K(this, is), t]
93139
- ) : await K(this, M2).queryKnowledge(
93140
- "select distinct publication from publications where entity=?",
93141
- [t]
93142
- )).map((n) => n[0]);
93146
+ return r.length ? JSON.parse(r[0]) : {};
93143
93147
  }
93144
93148
  //==========================================================================
93145
93149
  }
93146
- s7 = new WeakMap(), l7 = new WeakMap(), is = new WeakMap(), M2 = new WeakMap(), c7 = new WeakMap(), os = new WeakMap(), m5 = new WeakMap(), A9 = new WeakSet(), bL = async function(t) {
93150
+ s7 = new WeakMap(), l7 = new WeakMap(), is = new WeakMap(), to = new WeakMap(), c7 = new WeakMap(), os = new WeakMap(), m5 = new WeakMap(), A9 = new WeakSet(), bL = async function(t) {
93147
93151
  if (!K(this, m5).has(t)) {
93148
93152
  const r = await this.queryLabels(t);
93149
93153
  if (r.length && "label" in r[0])