@abi-software/flatmap-viewer 3.2.10 → 3.2.12

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 +195 -169
  3. package/package.json +1 -1
package/README.rst CHANGED
@@ -38,7 +38,7 @@ The map server endpoint is specified as ``MAP_ENDPOINT`` in ``src/main.js``. It
38
38
  Package Installation
39
39
  ====================
40
40
 
41
- * ``npm install @abi-software/flatmap-viewer@3.2.10``
41
+ * ``npm install @abi-software/flatmap-viewer@3.2.12``
42
42
 
43
43
  Documentation
44
44
  -------------
package/dist/index.js CHANGED
@@ -1616,7 +1616,7 @@ var Ck = { exports: {} };
1616
1616
  for (const S in c)
1617
1617
  Object.prototype.hasOwnProperty.call(c, S) && !Object.prototype.hasOwnProperty.call(u, S) && (xr(u[S], c[S]) || f.push({ command: M, args: [g, S, c[S], x] }));
1618
1618
  }
1619
- function hi(u) {
1619
+ function fi(u) {
1620
1620
  return u.id;
1621
1621
  }
1622
1622
  function f2(u, c) {
@@ -1658,7 +1658,7 @@ var Ck = { exports: {} };
1658
1658
  return !!this.bindings[c] || !!this.parent && this.parent.has(c);
1659
1659
  }
1660
1660
  }
1661
- const F1 = { kind: "null" }, _e = { kind: "number" }, br = { kind: "string" }, cr = { kind: "boolean" }, Jn = { kind: "color" }, fi = { kind: "object" }, ur = { kind: "value" }, L1 = { kind: "collator" }, Ei = { kind: "formatted" }, q1 = { kind: "padding" }, zn = { kind: "resolvedImage" }, xt = { kind: "variableAnchorOffsetCollection" };
1661
+ const F1 = { kind: "null" }, _e = { kind: "number" }, br = { kind: "string" }, cr = { kind: "boolean" }, Jn = { kind: "color" }, Ti = { kind: "object" }, ur = { kind: "value" }, L1 = { kind: "collator" }, Ei = { kind: "formatted" }, q1 = { kind: "padding" }, zn = { kind: "resolvedImage" }, xt = { kind: "variableAnchorOffsetCollection" };
1662
1662
  function rt(u, c) {
1663
1663
  return { kind: "array", itemType: u, N: c };
1664
1664
  }
@@ -1669,7 +1669,7 @@ var Ck = { exports: {} };
1669
1669
  }
1670
1670
  return u.kind;
1671
1671
  }
1672
- const ht = [F1, _e, br, cr, Jn, Ei, fi, rt(ur), q1, zn, xt];
1672
+ const ht = [F1, _e, br, cr, Jn, Ei, Ti, rt(ur), q1, zn, xt];
1673
1673
  function mt(u, c) {
1674
1674
  if (c.kind === "error")
1675
1675
  return null;
@@ -1964,7 +1964,7 @@ var Ck = { exports: {} };
1964
1964
  }
1965
1965
  return rt(f || ur, c);
1966
1966
  }
1967
- return fi;
1967
+ return Ti;
1968
1968
  }
1969
1969
  function m1(u) {
1970
1970
  const c = typeof u;
@@ -2001,7 +2001,7 @@ var Ck = { exports: {} };
2001
2001
  return this.message;
2002
2002
  }
2003
2003
  }
2004
- const co = { string: br, number: _e, boolean: cr, object: fi };
2004
+ const co = { string: br, number: _e, boolean: cr, object: Ti };
2005
2005
  class H1 {
2006
2006
  constructor(c, f) {
2007
2007
  this.type = c, this.args = f;
@@ -3926,7 +3926,7 @@ var Ck = { 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], p2], rgba: [Jn, [_e, _e, _e, _e], p2], has: { type: cr, overloads: [[[br], (u, [c]) => f6(c.evaluate(u), u.properties())], [[br, fi], (u, [c, f]) => f6(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, To(_e), (u, c) => {
3929
+ }], rgb: [Jn, [_e, _e, _e], p2], rgba: [Jn, [_e, _e, _e, _e], p2], has: { type: cr, overloads: [[[br], (u, [c]) => f6(c.evaluate(u), u.properties())], [[br, Ti], (u, [c, f]) => f6(c.evaluate(u), f.evaluate(u))]] }, get: { type: ur, overloads: [[[br], (u, [c]) => V2(c.evaluate(u), u.properties())], [[br, Ti], (u, [c, f]) => V2(c.evaluate(u), f.evaluate(u))]] }, "feature-state": [ur, [br], (u, [c]) => V2(c.evaluate(u), u.featureState || {})], properties: [Ti, [], (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, To(_e), (u, c) => {
3930
3930
  let f = 0;
3931
3931
  for (const g of c)
3932
3932
  f += g.evaluate(u);
@@ -5855,15 +5855,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5855
5855
  }
5856
5856
  }
5857
5857
  Vi.prototype.size = 8;
5858
- class Ti extends xe {
5858
+ class di extends xe {
5859
5859
  get(c) {
5860
5860
  return new Vi(this, c);
5861
5861
  }
5862
5862
  }
5863
- Be("FeatureIndexArray", Ti);
5863
+ Be("FeatureIndexArray", di);
5864
5864
  class Y1 extends N {
5865
5865
  }
5866
- class di extends N {
5866
+ class Qi extends N {
5867
5867
  }
5868
5868
  class bo extends N {
5869
5869
  }
@@ -6350,7 +6350,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6350
6350
  }
6351
6351
  class Ug {
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 v6(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 Qi(), this.indexArray = new N2(), this.segments = new jr(), this.programConfigurations = new v6(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 = [];
@@ -7315,8 +7315,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7315
7315
  for (const er of Ne) {
7316
7316
  const Ge = er.x, mr = er.y, pn = Lt[0] * Ge + Lt[4] * mr + Lt[12], Tn = Lt[1] * Ge + Lt[5] * mr + Lt[13], O1 = Lt[2] * Ge + Lt[6] * mr + Lt[14], Lo = Lt[3] * Ge + Lt[7] * mr + Lt[15], ei = O1 + ue, P1 = Lo + Pe, ki = pn + lr, Bi = Tn + Se, Fi = O1 + we, a1 = Lo + Ke, D1 = new p((pn + kt) / P1, (Tn + Xt) / P1);
7317
7317
  D1.z = ei / P1, Ve.push(D1);
7318
- const Qi = new p(ki / a1, Bi / a1);
7319
- Qi.z = Fi / a1, ne.push(Qi);
7318
+ const pi = new p(ki / a1, Bi / a1);
7319
+ pi.z = Fi / a1, ne.push(pi);
7320
7320
  }
7321
7321
  $t.push(Ve), Ht.push(ne);
7322
7322
  }
@@ -8152,7 +8152,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8152
8152
  let ei = 0;
8153
8153
  for (const a1 of Se) {
8154
8154
  a1.trim();
8155
- const D1 = a1.getMaxScale(), Qi = (D1 - 1) * A1, ri = { positionedGlyphs: [], lineOffset: 0 };
8155
+ const D1 = a1.getMaxScale(), pi = (D1 - 1) * A1, ri = { positionedGlyphs: [], lineOffset: 0 };
8156
8156
  Xt.positionedLines[ei] = ri;
8157
8157
  const Ni = ri.positionedGlyphs;
8158
8158
  let ni = 0;
@@ -8170,7 +8170,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8170
8170
  continue;
8171
8171
  Ha = Wr.imageName, Xt.iconsInText = Xt.iconsInText || !0, A0 = U2.paddedRect;
8172
8172
  const z1 = U2.displaySize;
8173
- Wr.scale = Wr.scale * A1 / Ge, r1 = { width: z1[0], height: z1[1], left: i2, top: -QM, advance: wo ? z1[1] : z1[0] }, L2 = Qi + (A1 - z1[1] * Wr.scale), Oa = r1.advance;
8173
+ Wr.scale = Wr.scale * A1 / Ge, r1 = { width: z1[0], height: z1[1], left: i2, top: -QM, advance: wo ? z1[1] : z1[0] }, L2 = pi + (A1 - z1[1] * Wr.scale), Oa = r1.advance;
8174
8174
  const F3 = wo ? z1[0] * Wr.scale - A1 * D1 : z1[1] * Wr.scale - A1 * D1;
8175
8175
  F3 > 0 && F3 > ni && (ni = F3);
8176
8176
  } else {
@@ -8189,12 +8189,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8189
8189
  }
8190
8190
  Ni.length !== 0 && (Tn = Math.max(mr - ne, Tn), yZ(Ni, 0, Ni.length - 1, Lo, ni)), mr = 0;
8191
8191
  const z2 = we * D1 + ni;
8192
- ri.lineOffset = Math.max(ni, Qi), pn += z2, O1 = Math.max(z2, O1), ++ei;
8192
+ ri.lineOffset = Math.max(ni, pi), pn += z2, O1 = Math.max(z2, O1), ++ei;
8193
8193
  }
8194
8194
  var P1;
8195
8195
  const ki = pn - I8, { horizontalAlign: Bi, verticalAlign: Fi } = hy(Ke);
8196
- (function(a1, D1, Qi, ri, Ni, ni, z2, o2, Wr) {
8197
- const vn = (D1 - Qi) * Ni;
8196
+ (function(a1, D1, pi, ri, Ni, ni, z2, o2, Wr) {
8197
+ const vn = (D1 - pi) * Ni;
8198
8198
  let In = 0;
8199
8199
  In = ni !== z2 ? -o2 * ri - I8 : (-ri * Wr + 0.5) * z2;
8200
8200
  for (const L2 of a1)
@@ -9053,7 +9053,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9053
9053
  }
9054
9054
  class FM {
9055
9055
  constructor(c, f) {
9056
- this.tileID = c, this.x = c.canonical.x, this.y = c.canonical.y, this.z = c.canonical.z, this.grid = new Ns(v1, 16, 0), this.grid3D = new Ns(v1, 16, 0), this.featureIndexArray = new Ti(), this.promoteId = f;
9056
+ this.tileID = c, this.x = c.canonical.x, this.y = c.canonical.y, this.z = c.canonical.z, this.grid = new Ns(v1, 16, 0), this.grid3D = new Ns(v1, 16, 0), this.featureIndexArray = new di(), this.promoteId = f;
9057
9057
  }
9058
9058
  insert(c, f, g, x, M, S) {
9059
9059
  const O = this.featureIndexArray.length;
@@ -9280,13 +9280,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9280
9280
  (M.textFitWidth || M.textFitHeight) && (j = xM(u)), Lt = rf(U, 0, ne[0]), Ht = rf(X, 0, ne[1]), $t = rf(U, ne[0], ne[2]), kt = rf(X, ne[1], ne[3]), Xt = ne[0] - Lt, Pe = ne[1] - Ht, ue = er - $t, lr = Ge - kt;
9281
9281
  }
9282
9282
  const Se = j.x1, we = j.y1, Ke = j.x2 - Se, Ne = j.y2 - we, Ve = (ne, er, Ge, mr) => {
9283
- const pn = nf(ne.stretch - Lt, $t, Ke, Se), Tn = of(ne.fixed - Xt, ue, ne.stretch, it), O1 = nf(er.stretch - Ht, kt, Ne, we), Lo = of(er.fixed - Pe, lr, er.stretch, st), ei = nf(Ge.stretch - Lt, $t, Ke, Se), P1 = of(Ge.fixed - Xt, ue, Ge.stretch, it), ki = nf(mr.stretch - Ht, kt, Ne, we), Bi = of(mr.fixed - Pe, lr, mr.stretch, st), Fi = new p(pn, O1), a1 = new p(ei, O1), D1 = new p(ei, ki), Qi = new p(pn, ki), ri = new p(Tn / S, Lo / S), Ni = new p(P1 / S, Bi / S), ni = c * Math.PI / 180;
9283
+ const pn = nf(ne.stretch - Lt, $t, Ke, Se), Tn = of(ne.fixed - Xt, ue, ne.stretch, it), O1 = nf(er.stretch - Ht, kt, Ne, we), Lo = of(er.fixed - Pe, lr, er.stretch, st), ei = nf(Ge.stretch - Lt, $t, Ke, Se), P1 = of(Ge.fixed - Xt, ue, Ge.stretch, it), ki = nf(mr.stretch - Ht, kt, Ne, we), Bi = of(mr.fixed - Pe, lr, mr.stretch, st), Fi = new p(pn, O1), a1 = new p(ei, O1), D1 = new p(ei, ki), pi = new p(pn, ki), ri = new p(Tn / S, Lo / S), Ni = new p(P1 / S, Bi / S), ni = c * Math.PI / 180;
9284
9284
  if (ni) {
9285
9285
  const Wr = Math.sin(ni), vn = Math.cos(ni), In = [vn, -Wr, Wr, vn];
9286
- Fi._matMult(In), a1._matMult(In), Qi._matMult(In), D1._matMult(In);
9286
+ Fi._matMult(In), a1._matMult(In), pi._matMult(In), D1._matMult(In);
9287
9287
  }
9288
9288
  const z2 = ne.stretch + ne.fixed, o2 = er.stretch + er.fixed;
9289
- return { tl: Fi, tr: a1, bl: Qi, br: D1, tex: { x: M.paddedRect.x + L0 + z2, y: M.paddedRect.y + L0 + o2, w: Ge.stretch + Ge.fixed - z2, h: mr.stretch + mr.fixed - o2 }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: ri, pixelOffsetBR: Ni, minFontScaleX: ue / S / Ke, minFontScaleY: lr / S / Ne, isSDF: f };
9289
+ return { tl: Fi, tr: a1, bl: pi, br: D1, tex: { x: M.paddedRect.x + L0 + z2, y: M.paddedRect.y + L0 + o2, w: Ge.stretch + Ge.fixed - z2, h: mr.stretch + mr.fixed - o2 }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: ri, pixelOffsetBR: Ni, minFontScaleX: ue / S / Ke, minFontScaleY: lr / S / Ne, isSDF: f };
9290
9290
  };
9291
9291
  if (g && (M.stretchX || M.stretchY)) {
9292
9292
  const ne = XM(U, ft, it), er = XM(X, _t, st);
@@ -9538,49 +9538,49 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9538
9538
  let Ne;
9539
9539
  g && Ke !== "none" && (u.allowVerticalPlacement && f.vertical && (Ne = bM(g, f.vertical, Ke, tt.get("icon-text-fit-padding"), it, ft)), st && (g = bM(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, Lo, ei, P1, ki, Bi, Fi, a1, D1, Qi, ri, Ni, ni, z2, o2, Wr, vn, In, L2, r1, A0) {
9541
+ er.x < 0 || er.x >= v1 || er.y < 0 || er.y >= v1 || function(Ge, mr, pn, Tn, O1, Lo, ei, P1, ki, Bi, Fi, a1, D1, pi, ri, Ni, ni, z2, o2, Wr, vn, In, L2, r1, A0) {
9542
9542
  const Ha = Ge.addToLineVertexArray(mr, pn);
9543
9543
  let Oa, wo, U2, z1, F3 = 0, j8 = 0, iS = 0, oS = 0, Sy = -1, Cy = -1;
9544
9544
  const N3 = {};
9545
9545
  let aS = f0("");
9546
9546
  if (Ge.allowVerticalPlacement && Tn.vertical) {
9547
- const pi = P1.layout.get("text-rotate").evaluate(vn, {}, r1) + 90;
9548
- U2 = new af(ki, mr, Bi, Fi, a1, Tn.vertical, D1, Qi, ri, pi), ei && (z1 = new af(ki, mr, Bi, Fi, a1, ei, ni, z2, ri, pi));
9547
+ const mi = P1.layout.get("text-rotate").evaluate(vn, {}, r1) + 90;
9548
+ U2 = new af(ki, mr, Bi, Fi, a1, Tn.vertical, D1, pi, ri, mi), ei && (z1 = new af(ki, mr, Bi, Fi, a1, ei, ni, z2, ri, mi));
9549
9549
  }
9550
9550
  if (O1) {
9551
- const pi = P1.layout.get("icon-rotate").evaluate(vn, {}), Z2 = P1.layout.get("icon-text-fit") !== "none", w6 = GM(O1, pi, L2, Z2), Go = ei ? GM(ei, pi, L2, Z2) : void 0;
9552
- wo = new af(ki, mr, Bi, Fi, a1, O1, ni, z2, !1, pi), F3 = 4 * w6.length;
9551
+ const mi = P1.layout.get("icon-rotate").evaluate(vn, {}), Z2 = P1.layout.get("icon-text-fit") !== "none", w6 = GM(O1, mi, L2, Z2), Go = ei ? GM(ei, mi, L2, Z2) : void 0;
9552
+ wo = new af(ki, mr, Bi, Fi, a1, O1, ni, z2, !1, mi), F3 = 4 * w6.length;
9553
9553
  const A6 = Ge.iconSizeData;
9554
9554
  let Pa = null;
9555
9555
  A6.kind === "source" ? (Pa = [Ca * P1.layout.get("icon-size").evaluate(vn, {})], Pa[0] > t4 && Zt(`${Ge.layerIds[0]}: Value for "icon-size" is >= ${R8}. Reduce your "icon-size".`)) : A6.kind === "composite" && (Pa = [Ca * In.compositeIconSizes[0].evaluate(vn, {}, r1), Ca * In.compositeIconSizes[1].evaluate(vn, {}, r1)], (Pa[0] > t4 || Pa[1] > t4) && Zt(`${Ge.layerIds[0]}: Value for "icon-size" is >= ${R8}. Reduce your "icon-size".`)), Ge.addSymbols(Ge.icon, w6, Pa, Wr, o2, vn, a.ah.none, mr, Ha.lineStartIndex, Ha.lineLength, -1, r1), Sy = Ge.icon.placedSymbolArray.length - 1, Go && (j8 = 4 * Go.length, Ge.addSymbols(Ge.icon, Go, Pa, Wr, o2, vn, a.ah.vertical, mr, Ha.lineStartIndex, Ha.lineLength, -1, r1), Cy = Ge.icon.placedSymbolArray.length - 1);
9556
9556
  }
9557
9557
  const sS = Object.keys(Tn.horizontal);
9558
- for (const pi of sS) {
9559
- const Z2 = Tn.horizontal[pi];
9558
+ for (const mi of sS) {
9559
+ const Z2 = Tn.horizontal[mi];
9560
9560
  if (!Oa) {
9561
9561
  aS = f0(Z2.text);
9562
9562
  const Go = P1.layout.get("text-rotate").evaluate(vn, {}, r1);
9563
- Oa = new af(ki, mr, Bi, Fi, a1, Z2, D1, Qi, ri, Go);
9563
+ Oa = new af(ki, mr, Bi, Fi, a1, Z2, D1, pi, ri, Go);
9564
9564
  }
9565
9565
  const w6 = Z2.positionedLines.length === 1;
9566
- if (iS += JM(Ge, mr, Z2, Lo, P1, ri, vn, Ni, Ha, Tn.vertical ? a.ah.horizontal : a.ah.horizontalOnly, w6 ? sS : [pi], N3, Sy, In, r1), w6)
9566
+ if (iS += JM(Ge, mr, Z2, Lo, P1, ri, vn, Ni, Ha, Tn.vertical ? a.ah.horizontal : a.ah.horizontalOnly, w6 ? sS : [mi], N3, Sy, In, r1), w6)
9567
9567
  break;
9568
9568
  }
9569
9569
  Tn.vertical && (oS += JM(Ge, mr, Tn.vertical, Lo, P1, ri, vn, Ni, Ha, a.ah.vertical, ["vertical"], N3, Cy, In, r1));
9570
9570
  const BZ = Oa ? Oa.boxStartIndex : Ge.collisionBoxArray.length, FZ = Oa ? Oa.boxEndIndex : Ge.collisionBoxArray.length, NZ = U2 ? U2.boxStartIndex : Ge.collisionBoxArray.length, jZ = U2 ? U2.boxEndIndex : Ge.collisionBoxArray.length, $Z = wo ? wo.boxStartIndex : Ge.collisionBoxArray.length, zZ = wo ? wo.boxEndIndex : Ge.collisionBoxArray.length, UZ = z1 ? z1.boxStartIndex : Ge.collisionBoxArray.length, ZZ = z1 ? z1.boxEndIndex : Ge.collisionBoxArray.length;
9571
9571
  let qo = -1;
9572
- const lf = (pi, Z2) => pi && pi.circleDiameter ? Math.max(pi.circleDiameter, Z2) : Z2;
9572
+ const lf = (mi, Z2) => mi && mi.circleDiameter ? Math.max(mi.circleDiameter, Z2) : Z2;
9573
9573
  qo = lf(Oa, qo), qo = lf(U2, qo), qo = lf(wo, qo), qo = lf(z1, qo);
9574
9574
  const lS = qo > -1 ? 1 : 0;
9575
9575
  lS && (qo *= A0 / A1), Ge.glyphOffsetArray.length >= b0.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 WZ = YM(P1, vn, r1), [qZ, GZ] = function(pi, Z2) {
9577
- const w6 = pi.length, Go = Z2 == null ? void 0 : Z2.values;
9576
+ const WZ = YM(P1, vn, r1), [qZ, GZ] = function(mi, Z2) {
9577
+ const w6 = mi.length, Go = Z2 == null ? void 0 : Z2.values;
9578
9578
  if ((Go == null ? void 0 : Go.length) > 0)
9579
9579
  for (let A6 = 0; A6 < Go.length; A6 += 2) {
9580
9580
  const Pa = Go[A6 + 1];
9581
- pi.emplaceBack(a.aq[Go[A6]], Pa[0], Pa[1]);
9581
+ mi.emplaceBack(a.aq[Go[A6]], Pa[0], Pa[1]);
9582
9582
  }
9583
- return [w6, pi.length];
9583
+ return [w6, mi.length];
9584
9584
  }(Ge.textAnchorOffsets, WZ);
9585
9585
  Ge.symbolInstances.emplaceBack(mr.x, mr.y, N3.right >= 0 ? N3.right : -1, N3.center >= 0 ? N3.center : -1, N3.left >= 0 ? N3.left : -1, N3.vertical || -1, Sy, Cy, aS, BZ, FZ, NZ, jZ, $Z, zZ, UZ, ZZ, Bi, iS, oS, F3, j8, lS, 0, D1, qo, qZ, GZ);
9586
9586
  }(u, er, ne, f, g, x, Ne, u.layers[0], u.collisionBoxArray, c.index, c.sourceLayerIndex, u.index, _t, [kt, kt, kt, kt], Pe, R, $t, Xt, lr, it, c, M, j, U, S);
@@ -9627,17 +9627,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9627
9627
  const Lo = ue ? [Ve.x + O1, Ve.y] : [0, 0];
9628
9628
  let ei = ue ? [0, 0] : [Ve.x + O1 + kt[0], Ve.y + kt[1] - pn], P1 = [0, 0];
9629
9629
  Tn && (P1 = ei, ei = [0, 0]);
9630
- const ki = Ve.metrics.isDoubleResolution ? 2 : 1, Bi = (Ve.metrics.left - er) * Ve.scale - O1 + ei[0], Fi = (-Ve.metrics.top - er) * Ve.scale + ei[1], a1 = Bi + ne.w / ki * Ve.scale / mr, D1 = Fi + ne.h / ki * Ve.scale / mr, Qi = new p(Bi, Fi), ri = new p(a1, Fi), Ni = new p(Bi, D1), ni = new p(a1, D1);
9630
+ const ki = Ve.metrics.isDoubleResolution ? 2 : 1, Bi = (Ve.metrics.left - er) * Ve.scale - O1 + ei[0], Fi = (-Ve.metrics.top - er) * Ve.scale + ei[1], a1 = Bi + ne.w / ki * Ve.scale / mr, D1 = Fi + ne.h / ki * Ve.scale / mr, pi = new p(Bi, Fi), ri = new p(a1, Fi), Ni = new p(Bi, D1), ni = new p(a1, D1);
9631
9631
  if (Tn) {
9632
9632
  const Wr = new p(-O1, O1 - I8), vn = -Math.PI / 2, In = A1 / 2 - O1, L2 = new p(5 - I8 - In, -(Ve.imageName ? In : 0)), r1 = new p(...P1);
9633
- Qi._rotateAround(vn, Wr)._add(L2)._add(r1), ri._rotateAround(vn, Wr)._add(L2)._add(r1), Ni._rotateAround(vn, Wr)._add(L2)._add(r1), ni._rotateAround(vn, Wr)._add(L2)._add(r1);
9633
+ pi._rotateAround(vn, Wr)._add(L2)._add(r1), ri._rotateAround(vn, Wr)._add(L2)._add(r1), Ni._rotateAround(vn, Wr)._add(L2)._add(r1), ni._rotateAround(vn, Wr)._add(L2)._add(r1);
9634
9634
  }
9635
9635
  if (we) {
9636
9636
  const Wr = Math.sin(we), vn = Math.cos(we), In = [vn, -Wr, Wr, vn];
9637
- Qi._matMult(In), ri._matMult(In), Ni._matMult(In), ni._matMult(In);
9637
+ pi._matMult(In), ri._matMult(In), Ni._matMult(In), ni._matMult(In);
9638
9638
  }
9639
9639
  const z2 = new p(0, 0), o2 = new p(0, 0);
9640
- Ke.push({ tl: Qi, tr: ri, bl: Ni, br: ni, tex: ne, writingMode: Ht.writingMode, glyphOffset: Lo, sectionIndex: Ve.sectionIndex, isSDF: Ge, pixelOffsetTL: z2, pixelOffsetBR: o2, minFontScaleX: 0, minFontScaleY: 0 });
9640
+ Ke.push({ tl: pi, tr: ri, bl: Ni, br: ni, tex: ne, writingMode: Ht.writingMode, glyphOffset: Lo, sectionIndex: Ve.sectionIndex, isSDF: Ge, pixelOffsetTL: z2, pixelOffsetBR: o2, minFontScaleX: 0, minFontScaleY: 0 });
9641
9641
  }
9642
9642
  return Ke;
9643
9643
  }(0, f, O, x, M, S, g, u.allowVerticalPlacement), _t = u.textSizeData;
@@ -9937,7 +9937,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9937
9937
  "source" in S && g[S.source] ? f.push({ command: "removeLayer", args: [S.id] }) : M.push(S);
9938
9938
  }), f = f.concat(x), function(S, O, R) {
9939
9939
  O = O || [];
9940
- const j = (S = S || []).map(hi), U = O.map(hi), X = S.reduce(f2, {}), tt = O.reduce(f2, {}), it = j.slice(), st = /* @__PURE__ */ Object.create(null);
9940
+ const j = (S = S || []).map(fi), U = O.map(fi), X = S.reduce(f2, {}), tt = O.reduce(f2, {}), it = j.slice(), st = /* @__PURE__ */ Object.create(null);
9941
9941
  let ft, _t, Lt, $t, Ht;
9942
9942
  for (let kt = 0, Xt = 0; kt < j.length; kt++)
9943
9943
  ft = j[kt], Object.prototype.hasOwnProperty.call(tt, ft) ? Xt++ : (Pr(R, { command: "removeLayer", args: [ft] }), it.splice(it.indexOf(ft, Xt), 1));
@@ -10910,7 +10910,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10910
10910
  }
10911
10911
  function wi(xt, rt, nt, ht, mt, St, Dt) {
10912
10912
  let Nt = Ai(xt);
10913
- const At = mt === 0 ? hi : f2;
10913
+ const At = mt === 0 ? fi : f2;
10914
10914
  let Gt, re, Wt = xt.start;
10915
10915
  for (let fr = 0; fr < xt.length - 3; fr += 3) {
10916
10916
  const Sr = xt[fr], Ar = xt[fr + 1], Un = xt[fr + 2], Cr = xt[fr + 3], Qr = xt[fr + 4], Fr = mt === 0 ? Sr : Ar, Kr = mt === 0 ? Cr : Qr;
@@ -10932,7 +10932,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10932
10932
  function k1(xt, rt, nt, ht) {
10933
10933
  xt.push(rt, nt, ht);
10934
10934
  }
10935
- function hi(xt, rt, nt, ht, mt, St) {
10935
+ function fi(xt, rt, nt, ht, mt, St) {
10936
10936
  const Dt = (St - rt) / (ht - rt);
10937
10937
  return k1(xt, St, nt + (mt - nt) * Dt, 1), Dt;
10938
10938
  }
@@ -11077,7 +11077,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11077
11077
  const At = [rt, nt, ht, mt], Gt = this.options, re = Gt.debug;
11078
11078
  for (; At.length; ) {
11079
11079
  mt = At.pop(), ht = At.pop(), nt = At.pop(), rt = At.pop();
11080
- const Wt = 1 << nt, ge = fi(nt, ht, mt);
11080
+ const Wt = 1 << nt, ge = Ti(nt, ht, mt);
11081
11081
  let je = this.tiles[ge];
11082
11082
  if (!je && (re > 1 && console.time("creation"), je = this.tiles[ge] = F1(rt, nt, ht, mt, Gt), this.tileCoords.push({ z: nt, x: ht, y: mt }), re)) {
11083
11083
  re > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", nt, ht, mt, je.numFeatures, je.numPoints, je.numSimplified), console.timeEnd("creation"));
@@ -11109,17 +11109,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11109
11109
  const mt = this.options, { extent: St, debug: Dt } = mt;
11110
11110
  if (rt < 0 || rt > 24)
11111
11111
  return null;
11112
- const Nt = 1 << rt, At = fi(rt, nt = nt + Nt & Nt - 1, ht);
11112
+ const Nt = 1 << rt, At = Ti(rt, nt = nt + Nt & Nt - 1, ht);
11113
11113
  if (this.tiles[At])
11114
11114
  return Gn(this.tiles[At], St);
11115
11115
  Dt > 1 && console.log("drilling down to z%d-%d-%d", rt, nt, ht);
11116
11116
  let Gt, re = rt, Wt = nt, ge = ht;
11117
11117
  for (; !Gt && re > 0; )
11118
- re--, Wt >>= 1, ge >>= 1, Gt = this.tiles[fi(re, Wt, ge)];
11118
+ re--, Wt >>= 1, ge >>= 1, Gt = this.tiles[Ti(re, Wt, ge)];
11119
11119
  return Gt && Gt.source ? (Dt > 1 && (console.log("found parent tile z%d-%d-%d", re, Wt, ge), console.time("drilling down")), this.splitTile(Gt.source, re, Wt, ge, rt, nt, ht), Dt > 1 && console.timeEnd("drilling down"), this.tiles[At] ? Gn(this.tiles[At], St) : null) : null;
11120
11120
  }
11121
11121
  }
11122
- function fi(xt, rt, nt) {
11122
+ function Ti(xt, rt, nt) {
11123
11123
  return 32 * ((1 << xt) * nt + rt) + xt;
11124
11124
  }
11125
11125
  function ur(xt, rt) {
@@ -12747,7 +12747,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12747
12747
  return !1;
12748
12748
  }
12749
12749
  }
12750
- const hi = {}, f2 = (A) => {
12750
+ const fi = {}, f2 = (A) => {
12751
12751
  switch (A) {
12752
12752
  case "geojson":
12753
12753
  return mn;
@@ -12764,7 +12764,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12764
12764
  case "canvas":
12765
12765
  return k1;
12766
12766
  }
12767
- return hi[A];
12767
+ return fi[A];
12768
12768
  }, fe = "RTLPluginLoaded";
12769
12769
  class B1 extends s.E {
12770
12770
  constructor() {
@@ -13363,7 +13363,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13363
13363
  const k = _.length === 0 && !this._updated && this._didEmitContent;
13364
13364
  this._updated = !0, k && this.fire(new s.k("data", { sourceDataType: "idle", dataType: "source", sourceId: this.id }));
13365
13365
  const N = this._updateRetainedTiles(_, v);
13366
- fi(this._source.type) && this._updateCoveredAndRetainedTiles(N, w, D, v, _, Q);
13366
+ Ti(this._source.type) && this._updateCoveredAndRetainedTiles(N, w, D, v, _, Q);
13367
13367
  for (const Y in N)
13368
13368
  this._tiles[Y].clearFadeHold();
13369
13369
  const W = s.ab(this._tiles, N);
@@ -13499,7 +13499,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13499
13499
  hasTransition() {
13500
13500
  if (this._source.hasTransition())
13501
13501
  return !0;
13502
- if (fi(this._source.type)) {
13502
+ if (Ti(this._source.type)) {
13503
13503
  const l = p.now();
13504
13504
  for (const Q in this._tiles)
13505
13505
  if (this._tiles[Q].fadeEndTime >= l)
@@ -13530,7 +13530,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13530
13530
  const Q = Math.abs(2 * A.wrap) - +(A.wrap < 0), _ = Math.abs(2 * l.wrap) - +(l.wrap < 0);
13531
13531
  return A.overscaledZ - l.overscaledZ || _ - Q || l.canonical.y - A.canonical.y || l.canonical.x - A.canonical.x;
13532
13532
  }
13533
- function fi(A) {
13533
+ function Ti(A) {
13534
13534
  return A === "raster" || A === "image" || A === "video";
13535
13535
  }
13536
13536
  cr.maxOverzooming = 10, cr.maxUnderzooming = 3;
@@ -13900,8 +13900,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13900
13900
  for (let Pn = 0; Pn < kr; Pn++) {
13901
13901
  const K1 = Pn / Math.max(kr - 1, 1), F2 = Ze.lerp(K1), Dn = F2.x + fr, Vi = F2.y + fr;
13902
13902
  Et.push(Dn, Vi, De, 0);
13903
- const Ti = Dn - De, Y1 = Vi - De, di = Dn + De, bo = Vi + De;
13904
- if (Ae = Ae && this.isOffscreen(Ti, Y1, di, bo), pe = pe || this.isInsideGrid(Ti, Y1, di, bo), l !== "always" && this.grid.hitTestCircle(Dn, Vi, De, l, at) && (ie = !0, !Y))
13903
+ const di = Dn - De, Y1 = Vi - De, Qi = Dn + De, bo = Vi + De;
13904
+ if (Ae = Ae && this.isOffscreen(di, Y1, Qi, bo), pe = pe || this.isInsideGrid(di, Y1, Qi, bo), l !== "always" && this.grid.hitTestCircle(Dn, Vi, De, l, at) && (ie = !0, !Y))
13905
13905
  return { circles: [], offscreen: !1, collisionDetected: ie };
13906
13906
  }
13907
13907
  }
@@ -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 }, Vi = { box: null, placeable: !1, offscreen: null }, Ti = null, Y1 = null, di = null, bo = 0, Zs = 0, u0 = 0;
14089
+ let kr = !1, Pn = !1, K1 = !0, F2 = null, Dn = { box: null, placeable: !1, offscreen: null }, Vi = { box: null, placeable: !1, offscreen: null }, di = null, Y1 = null, Qi = null, bo = 0, Zs = 0, u0 = 0;
14090
14090
  He.textFeatureIndex ? bo = He.textFeatureIndex : Le.useRuntimeCollisionCircles && (bo = Le.featureIndex), He.verticalTextFeatureIndex && (Zs = He.verticalTextFeatureIndex);
14091
14091
  const Ws = He.textBox;
14092
14092
  if (Ws) {
@@ -14144,18 +14144,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14144
14144
  }
14145
14145
  }
14146
14146
  }
14147
- if (Ti = Dn, kr = Ti && Ti.placeable, K1 = Ti && Ti.offscreen, Le.useRuntimeCollisionCircles) {
14147
+ if (di = Dn, kr = di && di.placeable, K1 = di && di.offscreen, Le.useRuntimeCollisionCircles) {
14148
14148
  const x2 = v.text.placedSymbolArray.get(Le.centerJustifiedTextSymbolIndex), b2 = s.ai(v.textSizeData, vt, x2), Ma = w.get("text-padding");
14149
14149
  Y1 = this.collisionIndex.placeCollisionCircles(yt, x2, v.lineVertexArray, v.glyphOffsetArray, b2, N, W, Y, J, _, pe, wt.predicate, Le.collisionCircleDiameter, Ma, 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 && (u0 = He.iconFeatureIndex), He.iconBox) {
14152
14152
  const x2 = (b2) => this.collisionIndex.placeCollisionBox(b2, Rt, at, N, W, pe, ie, k, wt.predicate, Ze, Ae && F2 ? F2 : void 0);
14153
- Vi && Vi.placeable && He.verticalIconBox ? (di = x2(He.verticalIconBox), Pn = di.placeable) : (di = x2(He.iconBox), Pn = di.placeable), K1 = K1 && di.offscreen;
14153
+ Vi && Vi.placeable && He.verticalIconBox ? (Qi = x2(He.verticalIconBox), Pn = Qi.placeable) : (Qi = x2(He.iconBox), Pn = Qi.placeable), K1 = K1 && Qi.offscreen;
14154
14154
  }
14155
14155
  const v2 = Et || Le.numHorizontalGlyphVertices === 0 && Le.numVerticalGlyphVertices === 0, h0 = Mt || Le.numIconVertices === 0;
14156
14156
  v2 || h0 ? h0 ? v2 || (Pn = Pn && kr) : kr = Pn && kr : Pn = kr = Pn && kr;
14157
- const L8 = Pn && di.placeable;
14158
- if (kr && Ti.placeable && this.collisionIndex.insertCollisionBox(Ti.box, yt, w.get("text-ignore-placement"), v.bucketInstanceId, Vi && Vi.placeable && Zs ? Zs : bo, wt.ID), L8 && this.collisionIndex.insertCollisionBox(di.box, Rt, w.get("icon-ignore-placement"), v.bucketInstanceId, u0, wt.ID), Y1 && kr && this.collisionIndex.insertCollisionCircles(Y1.circles, yt, w.get("text-ignore-placement"), v.bucketInstanceId, bo, wt.ID), _ && this.storeCollisionData(v.bucketInstanceId, pr, He, Ti, di, Y1), Le.crossTileID === 0)
14157
+ const L8 = Pn && Qi.placeable;
14158
+ if (kr && di.placeable && this.collisionIndex.insertCollisionBox(di.box, yt, w.get("text-ignore-placement"), v.bucketInstanceId, Vi && Vi.placeable && Zs ? Zs : bo, wt.ID), L8 && this.collisionIndex.insertCollisionBox(Qi.box, Rt, w.get("icon-ignore-placement"), v.bucketInstanceId, u0, wt.ID), Y1 && kr && this.collisionIndex.insertCollisionCircles(Y1.circles, yt, w.get("text-ignore-placement"), v.bucketInstanceId, bo, wt.ID), _ && this.storeCollisionData(v.bucketInstanceId, pr, He, di, Qi, Y1), Le.crossTileID === 0)
14159
14159
  throw new Error("symbolInstance.crossTileID can't be 0");
14160
14160
  if (v.bucketInstanceId === 0)
14161
14161
  throw new Error("bucket.bucketInstanceId can't be 0");
@@ -16631,21 +16631,21 @@ 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(Q.id), He = v || Ze.sdfIcons, pr = v ? Ze.textSizeData : Ze.iconSizeData, On = Et || dt.pitch !== 0, Er = A.useProgram(Oi(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, Vi, Ti = [0, 0], Y1 = null;
16634
+ let K1, F2, Dn, Vi, di = [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, Vi = On || A.options.rotating || A.options.zooming || pr.kind === "composite" || pr.kind === "camera" ? Tt.LINEAR : Tt.NEAREST);
16636
+ F2 = ve.glyphAtlasTexture, Dn = Tt.LINEAR, K1 = ve.glyphAtlasTexture.size, Ze.iconsInText && (di = ve.imageAtlasTexture.size, Y1 = ve.imageAtlasTexture, Vi = On || A.options.rotating || A.options.zooming || pr.kind === "composite" || pr.kind === "camera" ? Tt.LINEAR : Tt.NEAREST);
16637
16637
  else {
16638
16638
  const jr = Q.layout.get("icon-size").constantOr(0) !== 1 || Ze.iconsNeedLinear;
16639
16639
  F2 = ve.imageAtlasTexture, Dn = He || A.options.rotating || A.options.zooming || jr || On ? Tt.LINEAR : Tt.NEAREST, K1 = ve.imageAtlasTexture.size;
16640
16640
  }
16641
- const di = Ar(ve, 1, A.transform.zoom), bo = It ? xe.posMatrix : La, Zs = q1(bo, Et, wt, A.transform, di), u0 = zn(bo, Et, wt, A.transform, di), Ws = zn(xe.posMatrix, Et, wt, A.transform, di), v2 = vt.translatePosition(A.transform, ve, w, D), h0 = pe && Ze.hasTextData(), L8 = Q.layout.get("icon-text-fit") !== "none" && h0 && Ze.hasIconData();
16641
+ const Qi = Ar(ve, 1, A.transform.zoom), bo = It ? xe.posMatrix : La, Zs = q1(bo, Et, wt, A.transform, Qi), u0 = zn(bo, Et, wt, A.transform, Qi), Ws = zn(xe.posMatrix, Et, wt, A.transform, Qi), v2 = vt.translatePosition(A.transform, ve, w, D), h0 = pe && Ze.hasTextData(), L8 = Q.layout.get("icon-text-fit") !== "none" && h0 && Ze.hasIconData();
16642
16642
  if (Mt) {
16643
16643
  const jr = A.style.map.terrain ? (qs, Gs) => A.style.map.terrain.getElevation(xe, qs, Gs) : null, R3 = Q.layout.get("text-rotation-alignment") === "map";
16644
16644
  ht(Ze, xe.posMatrix, A, v, Zs, Ws, Et, W, R3, vt, xe.toUnwrapped(), dt.width, dt.height, v2, jr);
16645
16645
  }
16646
16646
  const x2 = xe.posMatrix, b2 = v && pe || L8, Ma = Mt || b2 ? La : Zs, N2 = u0, $1 = He && Q.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
16647
16647
  let J1;
16648
- J1 = He ? Ze.iconsInText ? ws(pr.kind, kr, yt, Et, Mt, b2, A, x2, Ma, N2, v2, K1, Ti, De) : _a(pr.kind, kr, yt, Et, Mt, b2, A, x2, Ma, N2, v2, v, K1, !0, De) : d2(pr.kind, kr, yt, Et, Mt, b2, A, x2, Ma, N2, v2, v, K1, De);
16648
+ J1 = He ? Ze.iconsInText ? ws(pr.kind, kr, yt, Et, Mt, b2, A, x2, Ma, N2, v2, K1, di, De) : _a(pr.kind, kr, yt, Et, Mt, b2, A, x2, Ma, N2, v2, v, K1, !0, De) : d2(pr.kind, kr, yt, Et, Mt, b2, A, x2, Ma, N2, v2, v, K1, De);
16649
16649
  const n2 = { program: Er, buffers: yr, uniformValues: J1, atlasTexture: F2, atlasTextureIcon: Y1, atlasInterpolation: Dn, atlasInterpolationIcon: Vi, isSDF: He, hasHalo: $1 };
16650
16650
  if (Rt && Ze.canOverlap) {
16651
16651
  Ut = !0;
@@ -20799,7 +20799,7 @@ uniform ${Y} ${J} u_${at};
20799
20799
  if (f2(A))
20800
20800
  throw new Error(`A source type called "${A}" already exists.`);
20801
20801
  ((Q, _) => {
20802
- hi[Q] = _;
20802
+ fi[Q] = _;
20803
20803
  })(A, l);
20804
20804
  }), a.clearPrewarmedResources = function() {
20805
20805
  const A = zt;
@@ -26747,9 +26747,9 @@ class W3t {
26747
26747
  if (h in s ? K(this, So)[h] = T : (K(this, So).other.push(...T), K(this, qa)[h] = !1), h === "centreline")
26748
26748
  for (const d of T) {
26749
26749
  const p = t.annotationById(d);
26750
- (t.options.style === yi.CENTRELINE || K(this, X3).has(d)) && p && "models" in p && K(this, Ll).set(p.models, p.label || p.models);
26750
+ (t.options.style === ci.CENTRELINE || K(this, X3).has(d)) && p && "models" in p && K(this, Ll).set(p.models, p.label || p.models);
26751
26751
  }
26752
- te(this, vQ, SF).call(this), t.options.style === yi.CENTRELINE ? qt(this, wl, !0) : qt(this, Al, K(this, Ll).size > 0);
26752
+ te(this, vQ, SF).call(this), t.options.style === ci.CENTRELINE ? qt(this, wl, !0) : qt(this, Al, K(this, Ll).size > 0);
26753
26753
  }
26754
26754
  get nerveCentrelineDetails() {
26755
26755
  return [Z3t, ...K(this, Ll).entries()].map((t) => {
@@ -26781,7 +26781,7 @@ class W3t {
26781
26781
  pathTypes() {
26782
26782
  const t = [];
26783
26783
  for (const r of bd)
26784
- r.type in K(this, So) && K(this, So)[r.type].length > 0 && (r.type === "centreline" ? K(this, zu).options.style !== yi.CENTRELINE && (qt(this, Al, !0), qt(this, wl, K(this, qa)[r.type])) : t.push({
26784
+ r.type in K(this, So) && K(this, So)[r.type].length > 0 && (r.type === "centreline" ? K(this, zu).options.style !== ci.CENTRELINE && (qt(this, Al, !0), qt(this, wl, K(this, qa)[r.type])) : t.push({
26785
26785
  ...r,
26786
26786
  enabled: K(this, qa)[r.type]
26787
26787
  }));
@@ -31996,19 +31996,22 @@ class Q6t extends ao {
31996
31996
  constructor(t, r) {
31997
31997
  super(t, "body", r);
31998
31998
  }
31999
+ defaultFilter() {
32000
+ return [
32001
+ "all",
32002
+ ["==", ["geometry-type"], "Polygon"],
32003
+ [
32004
+ "any",
32005
+ ["==", ["get", "models"], "UBERON:0013702"],
32006
+ ["==", ["get", "kind"], "background"]
32007
+ ]
32008
+ ];
32009
+ }
31999
32010
  style(t, r) {
32000
32011
  return {
32001
32012
  ...super.style(t),
32002
32013
  type: "fill",
32003
- filter: [
32004
- "all",
32005
- ["==", ["geometry-type"], "Polygon"],
32006
- [
32007
- "any",
32008
- ["==", ["get", "models"], "UBERON:0013702"],
32009
- ["==", ["get", "kind"], "background"]
32010
- ]
32011
- ],
32014
+ filter: this.defaultFilter(),
32012
32015
  paint: {
32013
32016
  "fill-color": [
32014
32017
  "case",
@@ -32040,7 +32043,7 @@ class p6t extends ao {
32040
32043
  ];
32041
32044
  }
32042
32045
  paintStyle(t, r = !1) {
32043
- const n = !("colour" in t) || t.colour, i = "dimmed" in t && t.dimmed, o = t.flatmapStyle === yi.FUNCTIONAL, a = {
32046
+ const n = !("colour" in t) || t.colour, i = "dimmed" in t && t.dimmed, o = t.flatmapStyle === ci.FUNCTIONAL, a = {
32044
32047
  "fill-color": [
32045
32048
  "case",
32046
32049
  ["boolean", ["feature-state", "selected"], !1],
@@ -32107,15 +32110,26 @@ class m6t extends ao {
32107
32110
  ];
32108
32111
  }
32109
32112
  paintStyle(t, r = !1) {
32110
- const n = !("colour" in t) || t.colour, i = !("outline" in t) || t.outline, o = "dimmed" in t && t.dimmed, a = "activeRasterLayer" in t && t.activeRasterLayer, s = t.flatmapStyle === yi.FUNCTIONAL, h = ["case"];
32111
- h.push(["boolean", ["feature-state", "hidden"], !1], gp), h.push(["boolean", ["feature-state", "selected"], !1], s ? "#F80" : f6t), n && i && h.push(["boolean", ["feature-state", "active"], !1], mN), h.push(["boolean", ["feature-state", "annotated"], !1], gN), h.push(["has", "colour"], ["get", "colour"]), h.push("#444");
32113
+ const n = !("colour" in t) || t.colour, i = !("outline" in t) || t.outline, o = "dimmed" in t && t.dimmed, a = "activeRasterLayer" in t && t.activeRasterLayer, s = t.flatmapStyle === ci.FUNCTIONAL, h = ["case"];
32114
+ h.push(["boolean", ["feature-state", "hidden"], !1], gp), h.push(["boolean", ["feature-state", "selected"], !1], s ? "#F80" : f6t), n && i && h.push(["boolean", ["feature-state", "active"], !1], mN), h.push(["boolean", ["feature-state", "annotated"], !1], gN), h.push(["has", "stroke"], ["get", "stroke"]), h.push(["has", "colour"], ["get", "colour"]), h.push("#444");
32112
32115
  const T = ["case"];
32113
32116
  T.push(["boolean", ["feature-state", "hidden"], !1], 0.05), n && i && T.push(["boolean", ["feature-state", "active"], !1], 0.9), T.push(["boolean", ["feature-state", "selected"], !1], 0.9), T.push(["boolean", ["feature-state", "annotated"], !1], 0.9), a ? T.push(i && !o ? 0.3 : 0.1) : T.push(0.5);
32114
32117
  const d = ["case"];
32115
- return d.push(["boolean", ["get", "invisible"], !1], 0.2), d.push(["boolean", ["feature-state", "selected"], !1], s ? 3 : 1.5), n && i && d.push(["boolean", ["feature-state", "active"], !1], s ? 2.5 : 1.5), d.push(["boolean", ["feature-state", "annotated"], !1], 3.5), d.push(["has", "colour"], 0.7), d.push(s ? 1 : n && i ? 0.5 : 0.1), super.changedPaintStyle({
32118
+ d.push(["boolean", ["get", "invisible"], !1], 0.2), d.push(["boolean", ["feature-state", "selected"], !1], s ? 3 : 1.5), n && i && d.push(["boolean", ["feature-state", "active"], !1], s ? 2.5 : 1.5), d.push(["boolean", ["feature-state", "annotated"], !1], 3.5), d.push(["has", "colour"], 0.7), d.push(s ? 1 : n && i ? 0.5 : 0.1);
32119
+ const p = [
32120
+ "*",
32121
+ [
32122
+ "case",
32123
+ ["has", "stroke-width"],
32124
+ ["get", "stroke-width"],
32125
+ 1
32126
+ ],
32127
+ d
32128
+ ];
32129
+ return super.changedPaintStyle({
32116
32130
  "line-color": h,
32117
32131
  "line-opacity": T,
32118
- "line-width": d
32132
+ "line-width": p
32119
32133
  }, r);
32120
32134
  }
32121
32135
  style(t, r) {
@@ -35529,11 +35543,11 @@ function Dlt(e, t) {
35529
35543
  e[n] !== void 0 && (r[n] = e[n]);
35530
35544
  return r;
35531
35545
  }
35532
- const gi = class gi extends $n {
35546
+ const yi = class yi extends $n {
35533
35547
  constructor(r, n) {
35534
35548
  const i = { ...n };
35535
- (n.usage || 0) & gi.INDEX && !n.indexType && (n.data instanceof Uint32Array ? i.indexType = "uint32" : n.data instanceof Uint16Array && (i.indexType = "uint16"));
35536
- super(r, i, gi.defaultProps);
35549
+ (n.usage || 0) & yi.INDEX && !n.indexType && (n.data instanceof Uint32Array ? i.indexType = "uint32" : n.data instanceof Uint16Array && (i.indexType = "uint16"));
35550
+ super(r, i, yi.defaultProps);
35537
35551
  /** The usage with which this buffer was created */
35538
35552
  ut(this, "usage");
35539
35553
  /** For index buffers, whether indices are 16 or 32 bit */
@@ -35553,11 +35567,11 @@ const gi = class gi extends $n {
35553
35567
  }
35554
35568
  /** This doesn't handle partial non-zero offset updates correctly */
35555
35569
  _setDebugData(r, n, i) {
35556
- const o = ArrayBuffer.isView(r) ? r.buffer : r, a = Math.min(r ? r.byteLength : i, gi.DEBUG_DATA_MAX_LENGTH);
35570
+ const o = ArrayBuffer.isView(r) ? r.buffer : r, a = Math.min(r ? r.byteLength : i, yi.DEBUG_DATA_MAX_LENGTH);
35557
35571
  r === null ? this.debugData = new ArrayBuffer(a) : n === 0 && i === r.byteLength ? this.debugData = o.slice(0, a) : this.debugData = o.slice(n, n + a);
35558
35572
  }
35559
35573
  };
35560
- ut(gi, "defaultProps", {
35574
+ ut(yi, "defaultProps", {
35561
35575
  ...$n.defaultProps,
35562
35576
  usage: 0,
35563
35577
  // Buffer.COPY_DST | Buffer.COPY_SRC
@@ -35567,14 +35581,14 @@ ut(gi, "defaultProps", {
35567
35581
  indexType: "uint16",
35568
35582
  mappedAtCreation: !1
35569
35583
  }), // Usage Flags
35570
- ut(gi, "MAP_READ", 1), ut(gi, "MAP_WRITE", 2), ut(gi, "COPY_SRC", 4), ut(gi, "COPY_DST", 8), /** Index buffer */
35571
- ut(gi, "INDEX", 16), /** Vertex buffer */
35572
- ut(gi, "VERTEX", 32), /** Uniform buffer */
35573
- ut(gi, "UNIFORM", 64), /** Storage buffer */
35574
- ut(gi, "STORAGE", 128), ut(gi, "INDIRECT", 256), ut(gi, "QUERY_RESOLVE", 512), // PROTECTED METHODS (INTENDED FOR USE BY OTHER FRAMEWORK CODE ONLY)
35584
+ ut(yi, "MAP_READ", 1), ut(yi, "MAP_WRITE", 2), ut(yi, "COPY_SRC", 4), ut(yi, "COPY_DST", 8), /** Index buffer */
35585
+ ut(yi, "INDEX", 16), /** Vertex buffer */
35586
+ ut(yi, "VERTEX", 32), /** Uniform buffer */
35587
+ ut(yi, "UNIFORM", 64), /** Storage buffer */
35588
+ ut(yi, "STORAGE", 128), ut(yi, "INDIRECT", 256), ut(yi, "QUERY_RESOLVE", 512), // PROTECTED METHODS (INTENDED FOR USE BY OTHER FRAMEWORK CODE ONLY)
35575
35589
  /** Max amount of debug data saved. Two vec4's */
35576
- ut(gi, "DEBUG_DATA_MAX_LENGTH", 32);
35577
- let f1 = gi;
35590
+ ut(yi, "DEBUG_DATA_MAX_LENGTH", 32);
35591
+ let f1 = yi;
35578
35592
  function YN(e) {
35579
35593
  const t = nP[e], r = Ilt(t), n = e.includes("norm"), i = !n && !e.startsWith("float"), o = e.startsWith("s");
35580
35594
  return {
@@ -49945,7 +49959,7 @@ var t$ = { exports: {} };
49945
49959
  var jt = et.firstInput, ee = et.firstMultiple, Te = ee ? ee.center : jt.center, de = q.center = fe(ct);
49946
49960
  q.timeStamp = d(), q.deltaTime = q.timeStamp - jt.timeStamp, q.angle = F1(Te, de), q.distance = Q1(Te, de), k1(et, q), q.offsetDirection = Gn(q.deltaX, q.deltaY);
49947
49961
  var he = B1(q.deltaTime, q.deltaX, q.deltaY);
49948
- q.overallVelocityX = he.x, q.overallVelocityY = he.y, q.overallVelocity = T(he.x) > T(he.y) ? he.x : he.y, q.scale = ee ? br(ee.pointers, ct) : 1, q.rotation = ee ? _e(ee.pointers, ct) : 0, q.maxPointers = et.prevInput ? q.pointers.length > et.prevInput.maxPointers ? q.pointers.length : et.prevInput.maxPointers : q.pointers.length, hi(et, q);
49962
+ q.overallVelocityX = he.x, q.overallVelocityY = he.y, q.overallVelocity = T(he.x) > T(he.y) ? he.x : he.y, q.scale = ee ? br(ee.pointers, ct) : 1, q.rotation = ee ? _e(ee.pointers, ct) : 0, q.maxPointers = et.prevInput ? q.pointers.length > et.prevInput.maxPointers ? q.pointers.length : et.prevInput.maxPointers : q.pointers.length, fi(et, q);
49949
49963
  var Xe = F.element;
49950
49964
  ot(q.srcEvent.target, Xe) && (Xe = q.srcEvent.target), q.target = Xe;
49951
49965
  }
@@ -49959,7 +49973,7 @@ var t$ = { exports: {} };
49959
49973
  y: et.y
49960
49974
  }), q.deltaX = Qt.x + (et.x - ct.x), q.deltaY = Qt.y + (et.y - ct.y);
49961
49975
  }
49962
- function hi(F, q) {
49976
+ function fi(F, q) {
49963
49977
  var et = F.lastInterval || q, ct = q.timeStamp - et.timeStamp, Qt, jt, ee, Te;
49964
49978
  if (q.eventType != se && (ct > tr || et.velocity === i)) {
49965
49979
  var de = q.deltaX - et.deltaX, he = q.deltaY - et.deltaY, Xe = B1(ct, de, he);
@@ -50025,9 +50039,9 @@ var t$ = { exports: {} };
50025
50039
  mousedown: zt,
50026
50040
  mousemove: Jt,
50027
50041
  mouseup: ce
50028
- }, Jn = "mousedown", fi = "mousemove mouseup";
50042
+ }, Jn = "mousedown", Ti = "mousemove mouseup";
50029
50043
  function ur() {
50030
- this.evEl = Jn, this.evWin = fi, this.pressed = !1, mn.apply(this, arguments);
50044
+ this.evEl = Jn, this.evWin = Ti, this.pressed = !1, mn.apply(this, arguments);
50031
50045
  }
50032
50046
  H(ur, mn, {
50033
50047
  /**
@@ -56932,7 +56946,7 @@ var w$ = { exports: {} };
56932
56946
  function k1(P) {
56933
56947
  return !!P.originalEvent && !!P.originalEvent.shiftKey && P.originalEvent.button === 0;
56934
56948
  }
56935
- function hi(P) {
56949
+ function fi(P) {
56936
56950
  return !!P.featureTarget && !!P.featureTarget.properties && P.featureTarget.properties.active === B.ACTIVE && P.featureTarget.properties.meta === V.FEATURE;
56937
56951
  }
56938
56952
  function f2(P) {
@@ -56957,7 +56971,7 @@ var w$ = { exports: {} };
56957
56971
  function _e(P) {
56958
56972
  return P.keyCode === 13;
56959
56973
  }
56960
- var br = Object.freeze({ __proto__: null, isOfMetaType: Gi, isShiftMousedown: k1, isActiveFeature: hi, isInactiveFeature: f2, noTarget: fe, isFeature: B1, isVertex: Gn, isShiftDown: Q1, isEscapeKey: F1, isEnterKey: _e, isTrue: function() {
56974
+ var br = Object.freeze({ __proto__: null, isOfMetaType: Gi, isShiftMousedown: k1, isActiveFeature: fi, isInactiveFeature: f2, noTarget: fe, isFeature: B1, isVertex: Gn, isShiftDown: Q1, isEscapeKey: F1, isEnterKey: _e, isTrue: function() {
56961
56975
  return !0;
56962
56976
  } }), cr = Jn;
56963
56977
  function Jn(P, z) {
@@ -57037,10 +57051,10 @@ var w$ = { exports: {} };
57037
57051
  } }, Jn.convert = function(P) {
57038
57052
  return P instanceof Jn ? P : Array.isArray(P) ? new Jn(P[0], P[1]) : P;
57039
57053
  };
57040
- var fi = n(cr);
57054
+ var Ti = n(cr);
57041
57055
  function ur(P, z) {
57042
57056
  var F = z.getBoundingClientRect();
57043
- return new fi(P.clientX - F.left - (z.clientLeft || 0), P.clientY - F.top - (z.clientTop || 0));
57057
+ return new Ti(P.clientX - F.left - (z.clientLeft || 0), P.clientY - F.top - (z.clientTop || 0));
57044
57058
  }
57045
57059
  function L1(P, z, F, q) {
57046
57060
  return { type: L.FEATURE, properties: { meta: V.VERTEX, parent: P, coord_path: F, active: q ? B.ACTIVE : B.INACTIVE }, geometry: { type: L.POINT, coordinates: z } };
@@ -57464,11 +57478,11 @@ var w$ = { exports: {} };
57464
57478
  return F.doRender(jt);
57465
57479
  }), this.setSelected(ct), this.updateUIClasses({ mouse: y.MOVE })), this.doRender(ct);
57466
57480
  }, Hr.onMouseDown = function(P, z) {
57467
- return hi(z) ? this.startOnActiveFeature(P, z) : this.drawConfig.boxSelect && k1(z) ? this.startBoxSelect(P, z) : void 0;
57481
+ return fi(z) ? this.startOnActiveFeature(P, z) : this.drawConfig.boxSelect && k1(z) ? this.startBoxSelect(P, z) : void 0;
57468
57482
  }, Hr.startBoxSelect = function(P, z) {
57469
57483
  this.stopExtendedInteractions(P), this.map.dragPan.disable(), P.boxSelectStartLocation = ur(z.originalEvent, this.map.getContainer()), P.canBoxSelect = !0;
57470
57484
  }, Hr.onTouchStart = function(P, z) {
57471
- if (hi(z))
57485
+ if (fi(z))
57472
57486
  return this.startOnActiveFeature(P, z);
57473
57487
  }, Hr.onDrag = function(P, z) {
57474
57488
  return P.canDragMove ? this.dragMove(P, z) : this.drawConfig.boxSelect && P.canBoxSelect ? this.whileBoxSelect(P, z) : void 0;
@@ -57589,13 +57603,13 @@ var w$ = { exports: {} };
57589
57603
  return P.feature.removeCoordinate(z);
57590
57604
  }), this.fireUpdate(), P.selectedCoordPaths = [], this.clearSelectedCoordinates(), this.fireActionable(P), P.feature.isValid() === !1 && (this.deleteFeature([P.featureId]), this.changeMode(C.SIMPLE_SELECT, {}));
57591
57605
  }, onMouseMove: function(P, z) {
57592
- var F = hi(z), q = Cn(z), et = lo(z), ct = P.selectedCoordPaths.length === 0;
57606
+ var F = fi(z), q = Cn(z), et = lo(z), ct = P.selectedCoordPaths.length === 0;
57593
57607
  return F && ct || q && !ct ? this.updateUIClasses({ mouse: y.MOVE }) : this.updateUIClasses({ mouse: y.NONE }), (q || F || et) && P.dragMoving && this.fireUpdate(), this.stopDragging(P), !0;
57594
57608
  }, onMouseOut: function(P) {
57595
57609
  return P.dragMoving && this.fireUpdate(), !0;
57596
57610
  } };
57597
57611
  en.onTouchStart = en.onMouseDown = function(P, z) {
57598
- return Cn(z) ? this.onVertex(P, z) : hi(z) ? this.onFeature(P, z) : lo(z) ? this.onMidpoint(P, z) : void 0;
57612
+ return Cn(z) ? this.onVertex(P, z) : fi(z) ? this.onFeature(P, z) : lo(z) ? this.onMidpoint(P, z) : void 0;
57599
57613
  }, en.onDrag = function(P, z) {
57600
57614
  if (P.canDragMove === !0) {
57601
57615
  P.dragMoving = !0, z.originalEvent.stopPropagation();
@@ -57603,9 +57617,9 @@ var w$ = { exports: {} };
57603
57617
  P.selectedCoordPaths.length > 0 ? this.dragVertex(P, z, F) : this.dragFeature(P, z, F), P.dragMoveLocation = z.lngLat;
57604
57618
  }
57605
57619
  }, en.onClick = function(P, z) {
57606
- return fe(z) ? this.clickNoTarget(P, z) : hi(z) ? this.clickActiveFeature(P, z) : f2(z) ? this.clickInactive(P, z) : void this.stopDragging(P);
57620
+ return fe(z) ? this.clickNoTarget(P, z) : fi(z) ? this.clickActiveFeature(P, z) : f2(z) ? this.clickInactive(P, z) : void this.stopDragging(P);
57607
57621
  }, en.onTap = function(P, z) {
57608
- return fe(z) ? this.clickNoTarget(P, z) : hi(z) ? this.clickActiveFeature(P, z) : f2(z) ? this.clickInactive(P, z) : void 0;
57622
+ return fe(z) ? this.clickNoTarget(P, z) : fi(z) ? this.clickActiveFeature(P, z) : f2(z) ? this.clickInactive(P, z) : void 0;
57609
57623
  }, en.onTouchEnd = en.onMouseUp = function(P) {
57610
57624
  P.dragMoving && this.fireUpdate(), this.stopDragging(P);
57611
57625
  };
@@ -58855,7 +58869,7 @@ W4.retryAfter = wQt;
58855
58869
  asyncLoad: null
58856
58870
  };
58857
58871
  })(Sp);
58858
- var bA = {}, th = {}, ui = {};
58872
+ var bA = {}, th = {}, hi = {};
58859
58873
  (function(e) {
58860
58874
  var t = I && I.__values || function(H) {
58861
58875
  var V = typeof Symbol == "function" && Symbol.iterator, B = V && H[V], $ = 0;
@@ -59060,7 +59074,7 @@ var bA = {}, th = {}, ui = {};
59060
59074
  return B === void 0 && (B = null), V.hasOwnProperty(H) ? V[H] : B;
59061
59075
  }
59062
59076
  e.lookup = E;
59063
- })(ui);
59077
+ })(hi);
59064
59078
  var q5 = {}, AQt = I && I.__extends || /* @__PURE__ */ function() {
59065
59079
  var e = function(t, r) {
59066
59080
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -59169,7 +59183,7 @@ var MQt = e6, SQt = function(e) {
59169
59183
  q5.FunctionList = SQt;
59170
59184
  Object.defineProperty(th, "__esModule", { value: !0 });
59171
59185
  th.AbstractInputJax = void 0;
59172
- var OD = ui, PD = q5, CQt = function() {
59186
+ var OD = hi, PD = q5, CQt = function() {
59173
59187
  function e(t) {
59174
59188
  t === void 0 && (t = {}), this.adaptor = null, this.mmlFactory = null;
59175
59189
  var r = this.constructor;
@@ -59204,7 +59218,7 @@ th.AbstractInputJax = CQt;
59204
59218
  var Op = {}, Pp = {};
59205
59219
  Object.defineProperty(Pp, "__esModule", { value: !0 });
59206
59220
  Pp.AbstractFindMath = void 0;
59207
- var DD = ui, HQt = function() {
59221
+ var DD = hi, HQt = function() {
59208
59222
  function e(t) {
59209
59223
  var r = this.constructor;
59210
59224
  this.options = (0, DD.userOptions)((0, DD.defaultOptions)({}, r.OPTIONS), t);
@@ -62196,22 +62210,22 @@ var C6 = I && I.__values || function(e) {
62196
62210
  return e && e.__esModule ? e : { default: e };
62197
62211
  };
62198
62212
  Object.defineProperty(LA, "__esModule", { value: !0 });
62199
- var BD = dr, mi = KQt(Wn), Xb;
62213
+ var BD = dr, gi = KQt(Wn), Xb;
62200
62214
  (function(e) {
62201
62215
  e.cleanStretchy = function(o) {
62202
62216
  var a, s, h = o.data;
62203
62217
  try {
62204
62218
  for (var T = C6(h.getList("fixStretchy")), d = T.next(); !d.done; d = T.next()) {
62205
62219
  var p = d.value;
62206
- if (mi.default.getProperty(p, "fixStretchy")) {
62207
- var m = mi.default.getForm(p);
62208
- m && m[3] && m[3].stretchy && mi.default.setAttribute(p, "stretchy", !1);
62220
+ if (gi.default.getProperty(p, "fixStretchy")) {
62221
+ var m = gi.default.getForm(p);
62222
+ m && m[3] && m[3].stretchy && gi.default.setAttribute(p, "stretchy", !1);
62209
62223
  var y = p.parent;
62210
- if (!mi.default.getTexClass(p) && (!m || !m[2])) {
62224
+ if (!gi.default.getTexClass(p) && (!m || !m[2])) {
62211
62225
  var b = h.nodeFactory.create("node", "TeXAtom", [p]);
62212
62226
  y.replaceChild(b, p), b.inheritAttributesFrom(p);
62213
62227
  }
62214
- mi.default.removeProperties(p, "fixStretchy");
62228
+ gi.default.removeProperties(p, "fixStretchy");
62215
62229
  }
62216
62230
  }
62217
62231
  } catch (L) {
@@ -62253,10 +62267,10 @@ var BD = dr, mi = KQt(Wn), Xb;
62253
62267
  try {
62254
62268
  for (var p = C6(o.data.getList("mo")), m = p.next(); !m.done; m = p.next()) {
62255
62269
  var y = m.value;
62256
- if (!(y.getProperty("relationsCombined") || !y.parent || y.parent && !mi.default.isType(y.parent, "mrow") || mi.default.getTexClass(y) !== BD.TEXCLASS.REL)) {
62257
- for (var b = y.parent, L = void 0, C = b.childNodes, E = C.indexOf(y) + 1, H = mi.default.getProperty(y, "variantForm"); E < C.length && (L = C[E]) && mi.default.isType(L, "mo") && mi.default.getTexClass(L) === BD.TEXCLASS.REL; )
62258
- if (H === mi.default.getProperty(L, "variantForm") && r(y, L)) {
62259
- mi.default.appendChildren(y, mi.default.getChildren(L)), t(["stretchy", "rspace"], y, L);
62270
+ if (!(y.getProperty("relationsCombined") || !y.parent || y.parent && !gi.default.isType(y.parent, "mrow") || gi.default.getTexClass(y) !== BD.TEXCLASS.REL)) {
62271
+ for (var b = y.parent, L = void 0, C = b.childNodes, E = C.indexOf(y) + 1, H = gi.default.getProperty(y, "variantForm"); E < C.length && (L = C[E]) && gi.default.isType(L, "mo") && gi.default.getTexClass(L) === BD.TEXCLASS.REL; )
62272
+ if (H === gi.default.getProperty(L, "variantForm") && r(y, L)) {
62273
+ gi.default.appendChildren(y, gi.default.getChildren(L)), t(["stretchy", "rspace"], y, L);
62260
62274
  try {
62261
62275
  for (var V = (h = void 0, C6(L.getPropertyNames())), B = V.next(); !B.done; B = V.next()) {
62262
62276
  var $ = B.value;
@@ -62274,7 +62288,7 @@ var BD = dr, mi = KQt(Wn), Xb;
62274
62288
  }
62275
62289
  C.splice(E, 1), d.push(L), L.parent = null, L.setProperty("relationsCombined", !0);
62276
62290
  } else {
62277
- y.attributes.getExplicit("rspace") == null && mi.default.setAttribute(y, "rspace", "0pt"), L.attributes.getExplicit("lspace") == null && mi.default.setAttribute(L, "lspace", "0pt");
62291
+ y.attributes.getExplicit("rspace") == null && gi.default.setAttribute(y, "rspace", "0pt"), L.attributes.getExplicit("lspace") == null && gi.default.setAttribute(L, "lspace", "0pt");
62278
62292
  break;
62279
62293
  }
62280
62294
  y.attributes.setInherited("form", y.getForms()[0]);
@@ -62331,7 +62345,7 @@ var BD = dr, mi = KQt(Wn), Xb;
62331
62345
  var y = m.value, b = y.childNodes;
62332
62346
  if (!(b[y[a]] && b[y[s]])) {
62333
62347
  var L = y.parent, C = b[y[a]] ? o.nodeFactory.create("node", "m" + a, [b[y.base], b[y[a]]]) : o.nodeFactory.create("node", "m" + s, [b[y.base], b[y[s]]]);
62334
- mi.default.copyAttributes(y, C), L ? L.replaceChild(C, y) : o.root = C, d.push(y);
62348
+ gi.default.copyAttributes(y, C), L ? L.replaceChild(C, y) : o.root = C, d.push(y);
62335
62349
  }
62336
62350
  }
62337
62351
  } catch (E) {
@@ -62359,7 +62373,7 @@ var BD = dr, mi = KQt(Wn), Xb;
62359
62373
  var b = y.childNodes[y.base], L = b.coreMO();
62360
62374
  if (b.getProperty("movablelimits") && !L.attributes.getExplicit("movablelimits")) {
62361
62375
  var C = o.nodeFactory.create("node", s, y.childNodes);
62362
- mi.default.copyAttributes(y, C), y.parent ? y.parent.replaceChild(C, y) : o.root = C, d.push(y);
62376
+ gi.default.copyAttributes(y, C), y.parent ? y.parent.replaceChild(C, y) : o.root = C, d.push(y);
62363
62377
  }
62364
62378
  }
62365
62379
  }
@@ -64003,7 +64017,7 @@ var ypt = I && I.__read || function(e, t) {
64003
64017
  return e && e.__esModule ? e : { default: e };
64004
64018
  };
64005
64019
  Object.defineProperty(Vp, "__esModule", { value: !0 });
64006
- var vpt = O$(AA), xpt = X7, XD = O$(Wn), KD = ui, bpt = function() {
64020
+ var vpt = O$(AA), xpt = X7, XD = O$(Wn), KD = hi, bpt = function() {
64007
64021
  function e(t, r) {
64008
64022
  r === void 0 && (r = []), this.options = {}, this.packageData = /* @__PURE__ */ new Map(), this.parsers = [], this.root = null, this.nodeLists = {}, this.error = !1, this.handlers = t.handlers, this.nodeFactory = new xpt.NodeFactory(), this.nodeFactory.configuration = this, this.nodeFactory.setCreators(t.nodes), this.itemFactory = new vpt.default(t.items), this.itemFactory.configuration = this, KD.defaultOptions.apply(void 0, _pt([this.options], ypt(r), !1)), (0, KD.defaultOptions)(this.options, t.options);
64009
64023
  }
@@ -64507,7 +64521,7 @@ var tn = {}, rh = {};
64507
64521
  return C;
64508
64522
  };
64509
64523
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ParserConfiguration = e.ConfigurationHandler = e.Configuration = void 0;
64510
- var n = ui, i = rh, o = q5, a = e6, s = xs, h = function() {
64524
+ var n = hi, i = rh, o = q5, a = e6, s = xs, h = function() {
64511
64525
  function p(m, y, b, L, C, E, H, V, B, $, Z, G, ot) {
64512
64526
  y === void 0 && (y = {}), b === void 0 && (b = {}), L === void 0 && (L = {}), C === void 0 && (C = {}), E === void 0 && (E = {}), H === void 0 && (H = {}), V === void 0 && (V = []), B === void 0 && (B = []), $ === void 0 && ($ = null), Z === void 0 && (Z = null), this.name = m, this.handler = y, this.fallback = b, this.items = L, this.tags = C, this.options = E, this.nodes = H, this.preprocessors = V, this.postprocessors = B, this.initMethod = $, this.configMethod = Z, this.priority = G, this.parser = ot, this.handler = Object.assign({ character: [], delimiter: [], macro: [], environment: [] }, y);
64513
64527
  }
@@ -65894,7 +65908,7 @@ var S7 = I && I.__assign || function() {
65894
65908
  return e && e.__esModule ? e : { default: e };
65895
65909
  };
65896
65910
  Object.defineProperty(C2, "__esModule", { value: !0 });
65897
- var OA = nmt(Tr), Fe = Rp(Wn), W1 = Rp(un), kp = Rp(qi()), PA = Li, E1 = Rp(qn()), K7 = dr, k$ = xs, B$ = L3, Jb = eh, imt = ui, or = {}, omt = 1.2 / 0.85, amt = {
65911
+ var OA = nmt(Tr), Fe = Rp(Wn), W1 = Rp(un), kp = Rp(qi()), PA = Li, E1 = Rp(qn()), K7 = dr, k$ = xs, B$ = L3, Jb = eh, imt = hi, or = {}, omt = 1.2 / 0.85, amt = {
65898
65912
  fontfamily: 1,
65899
65913
  fontsize: 1,
65900
65914
  fontweight: 1,
@@ -67343,7 +67357,7 @@ var Mmt = I && I.__extends || /* @__PURE__ */ function() {
67343
67357
  return e && e.__esModule ? e : { default: e };
67344
67358
  };
67345
67359
  Object.defineProperty(bA, "__esModule", { value: !0 });
67346
- var Z$ = bA.TeX = void 0, JD = th, tI = ui, eI = Op, k0 = ih(LA), rI = ih(Wn), Cmt = ih(qi()), Hmt = ih(un), Omt = ih(Vp), Gf = xs, Pmt = tn, Dmt = function(e) {
67360
+ var Z$ = bA.TeX = void 0, JD = th, tI = hi, eI = Op, k0 = ih(LA), rI = ih(Wn), Cmt = ih(qi()), Hmt = ih(un), Omt = ih(Vp), Gf = xs, Pmt = tn, Dmt = function(e) {
67347
67361
  Mmt(t, e);
67348
67362
  function t(r) {
67349
67363
  r === void 0 && (r = {});
@@ -67396,7 +67410,7 @@ Z$ = bA.TeX = Dmt;
67396
67410
  var Lv = {}, Bp = {}, oh = {};
67397
67411
  Object.defineProperty(oh, "__esModule", { value: !0 });
67398
67412
  oh.AbstractOutputJax = void 0;
67399
- var nI = ui, Imt = q5, Vmt = function() {
67413
+ var nI = hi, Imt = q5, Vmt = function() {
67400
67414
  function e(t) {
67401
67415
  t === void 0 && (t = {}), this.adaptor = null;
67402
67416
  var r = this.constructor;
@@ -68001,7 +68015,7 @@ var Umt = I && I.__extends || /* @__PURE__ */ function() {
68001
68015
  };
68002
68016
  Object.defineProperty(Bp, "__esModule", { value: !0 });
68003
68017
  Bp.CommonOutputJax = void 0;
68004
- var aI = oh, Av = W7, Zmt = ui, Wmt = L3, qmt = ah, Gmt = Fp, Xmt = function(e) {
68018
+ var aI = oh, Av = W7, Zmt = hi, Wmt = L3, qmt = ah, Gmt = Fp, Xmt = function(e) {
68005
68019
  Umt(t, e);
68006
68020
  function t(r, n, i) {
68007
68021
  r === void 0 && (r = null), n === void 0 && (n = null), i === void 0 && (i = null);
@@ -68457,7 +68471,7 @@ var S2 = {}, tQ = I && I.__assign || function() {
68457
68471
  };
68458
68472
  Object.defineProperty(S2, "__esModule", { value: !0 });
68459
68473
  S2.FontData = S2.NOSTRETCH = S2.H = S2.V = void 0;
68460
- var lI = ui;
68474
+ var lI = hi;
68461
68475
  S2.V = 1;
68462
68476
  S2.H = 2;
68463
68477
  S2.NOSTRETCH = { dir: 0 };
@@ -83556,7 +83570,7 @@ I7.BitFieldClass = fbt;
83556
83570
  return V.concat(ot || Array.prototype.slice.call(B));
83557
83571
  };
83558
83572
  Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractMathDocument = e.resetAllOptions = e.resetOptions = e.RenderList = void 0;
83559
- var o = ui, a = th, s = oh, h = Ah, T = W7, d = lg, p = I7, m = e6, y = function(V) {
83573
+ var o = hi, a = th, s = oh, h = Ah, T = W7, d = lg, p = I7, m = e6, y = function(V) {
83560
83574
  t(B, V);
83561
83575
  function B() {
83562
83576
  return V !== null && V.apply(this, arguments) || this;
@@ -84155,7 +84169,7 @@ var gg = {}, kV = I && I.__read || function(e, t) {
84155
84169
  };
84156
84170
  Object.defineProperty(gg, "__esModule", { value: !0 });
84157
84171
  gg.HTMLDomStrings = void 0;
84158
- var kc = ui, xbt = function() {
84172
+ var kc = hi, xbt = function() {
84159
84173
  function e(t) {
84160
84174
  t === void 0 && (t = null);
84161
84175
  var r = this.constructor;
@@ -84263,7 +84277,7 @@ var bbt = I && I.__extends || /* @__PURE__ */ function() {
84263
84277
  };
84264
84278
  Object.defineProperty(Qg, "__esModule", { value: !0 });
84265
84279
  Qg.HTMLDocument = void 0;
84266
- var Uv = qA, Zv = ui, Lbt = pg, wbt = mg, BV = gg, Wv = W7, Abt = function(e) {
84280
+ var Uv = qA, Zv = hi, Lbt = pg, wbt = mg, BV = gg, Wv = W7, Abt = function(e) {
84267
84281
  bbt(t, e);
84268
84282
  function t(r, n, i) {
84269
84283
  var o = this, a = dT((0, Zv.separateOptions)(i, BV.HTMLDomStrings.OPTIONS), 2), s = a[0], h = a[1];
@@ -87033,7 +87047,7 @@ var Vz = I && I.__values || function(e) {
87033
87047
  }, rx;
87034
87048
  Object.defineProperty(uE, "__esModule", { value: !0 });
87035
87049
  uE.ConfigMacrosConfiguration = void 0;
87036
- var kz = tn, XV = ui, KV = gr, XLt = Rz(Qa), gL = fa, yL = Rz(Eh), YV = Mh, _L = "configmacros-map", vL = "configmacros-env-map";
87050
+ var kz = tn, XV = hi, KV = gr, XLt = Rz(Qa), gL = fa, yL = Rz(Eh), YV = Mh, _L = "configmacros-map", vL = "configmacros-env-map";
87037
87051
  function KLt(e) {
87038
87052
  new KV.CommandMap(_L, {}, {}), new KV.EnvironmentMap(vL, XLt.default.environment, {}, {}), e.append(kz.Configuration.local({
87039
87053
  handler: {
@@ -87401,7 +87415,7 @@ function Nz() {
87401
87415
  return d && d.__esModule ? d : { default: d };
87402
87416
  };
87403
87417
  Object.defineProperty(Bc, "__esModule", { value: !0 }), Bc.MathtoolsUtil = void 0;
87404
- var r = Tr, n = t(qn()), i = t(qi()), o = t(un), a = fa, s = ui, h = jz(), T = $z();
87418
+ var r = Tr, n = t(qn()), i = t(qi()), o = t(un), a = fa, s = hi, h = jz(), T = $z();
87405
87419
  return Bc.MathtoolsUtil = {
87406
87420
  setDisplayLevel: function(d, p) {
87407
87421
  if (p) {
@@ -87497,7 +87511,7 @@ function jz() {
87497
87511
  return E && E.__esModule ? E : { default: E };
87498
87512
  };
87499
87513
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MathtoolsMethods = void 0;
87500
- var o = i(qn()), a = Y7, s = i(C2), h = i(qi()), T = i(un), d = i(Wn), p = dr, m = L3, y = ui, b = i(t8), L = i(Eh), C = Nz();
87514
+ var o = i(qn()), a = Y7, s = i(C2), h = i(qi()), T = i(un), d = i(Wn), p = dr, m = L3, y = hi, b = i(t8), L = i(Eh), C = Nz();
87501
87515
  e.MathtoolsMethods = {
87502
87516
  MtMatrix: function(E, H, V, B) {
87503
87517
  var $ = E.GetBrackets("\\begin{".concat(H.getName(), "}"), "c");
@@ -88085,7 +88099,7 @@ function $z() {
88085
88099
  return b && b.__esModule ? b : { default: b };
88086
88100
  }, n;
88087
88101
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MathtoolsConfiguration = e.fixPrescripts = e.PAIREDDELIMS = void 0;
88088
- var i = tn, o = gr, a = r(Wn), s = ui;
88102
+ var i = tn, o = gr, a = r(Wn), s = hi;
88089
88103
  ywt();
88090
88104
  var h = Nz(), T = Sg, d = Cg;
88091
88105
  e.PAIREDDELIMS = "mathtools-paired-delims";
@@ -89910,7 +89924,7 @@ var yE = {}, Wwt = I && I.__read || function(e, t) {
89910
89924
  return e && e.__esModule ? e : { default: e };
89911
89925
  };
89912
89926
  Object.defineProperty(yE, "__esModule", { value: !0 });
89913
- var _E = Ch(C2), ci = Ch(qi()), R7 = Ch(un), vE = dr, uu = Ch(qn()), xL = Ch(Wn), qwt = X7, En = {}, Uz = {
89927
+ var _E = Ch(C2), ui = Ch(qi()), R7 = Ch(un), vE = dr, uu = Ch(qn()), xL = Ch(Wn), qwt = X7, En = {}, Uz = {
89914
89928
  "(": ")",
89915
89929
  "[": "]",
89916
89930
  "{": "}",
@@ -89941,7 +89955,7 @@ En.Quantity = function(e, t, r, n, i, o, a) {
89941
89955
  }
89942
89956
  if (h === "{") {
89943
89957
  var b = e.GetArgument(t);
89944
- h = i ? r : "\\{", m = i ? n : "\\}", b = s ? h + " " + b + " " + m : d ? "\\" + d + "l" + h + " " + b + " \\" + d + "r" + m : "\\left" + h + " " + b + " \\right" + m, e.Push(new ci.default(b, e.stack.env, e.configuration).mml());
89958
+ h = i ? r : "\\{", m = i ? n : "\\}", b = s ? h + " " + b + " " + m : d ? "\\" + d + "l" + h + " " + b + " \\" + d + "r" + m : "\\left" + h + " " + b + " \\right" + m, e.Push(new ui.default(b, e.stack.env, e.configuration).mml());
89945
89959
  return;
89946
89960
  }
89947
89961
  i && (h = r, m = n), e.i++, e.Push(e.itemFactory.create("auto open").setProperties({ open: h, close: m, big: d }));
@@ -89975,7 +89989,7 @@ En.Commutator = function(e, t, r, n) {
89975
89989
  if (o !== "{")
89976
89990
  throw new R7.default("MissingArgFor", "Missing argument for %1", e.currentCS);
89977
89991
  var s = e.GetArgument(t), h = e.GetArgument(t), T = s + "," + h;
89978
- T = i ? r + " " + T + " " + n : a ? "\\" + a + "l" + r + " " + T + " \\" + a + "r" + n : "\\left" + r + " " + T + " \\right" + n, e.Push(new ci.default(T, e.stack.env, e.configuration).mml());
89992
+ T = i ? r + " " + T + " " + n : a ? "\\" + a + "l" + r + " " + T + " \\" + a + "r" + n : "\\left" + r + " " + T + " \\right" + n, e.Push(new ui.default(T, e.stack.env, e.configuration).mml());
89979
89993
  };
89980
89994
  var Gwt = [65, 90], Xwt = [97, 122], Kwt = [913, 937], Ywt = [945, 969], Jwt = [48, 57];
89981
89995
  function Fc(e, t) {
@@ -89988,7 +90002,7 @@ function tAt(e, t, r, n) {
89988
90002
  En.VectorBold = function(e, t) {
89989
90003
  var r = e.GetStar(), n = e.GetArgument(t), i = e.configuration.nodeFactory.get("token"), o = e.stack.env.font;
89990
90004
  delete e.stack.env.font, e.configuration.nodeFactory.set("token", tAt), e.stack.env.vectorFont = r ? "bold-italic" : "bold", e.stack.env.vectorStar = r;
89991
- var a = new ci.default(n, e.stack.env, e.configuration).mml();
90005
+ var a = new ui.default(n, e.stack.env, e.configuration).mml();
89992
90006
  o && (e.stack.env.font = o), delete e.stack.env.vectorFont, delete e.stack.env.vectorStar, e.configuration.nodeFactory.set("token", i), e.Push(a);
89993
90007
  };
89994
90008
  En.StarMacro = function(e, t, r) {
@@ -90002,7 +90016,7 @@ En.StarMacro = function(e, t, r) {
90002
90016
  h = uu.default.substituteArgs(e, a, h), e.string = uu.default.addArgs(e, h, e.string.slice(e.i)), e.i = 0, uu.default.checkMaxMacros(e);
90003
90017
  };
90004
90018
  var Wz = function(e, t, r, n, i) {
90005
- var o = new ci.default(n, e.stack.env, e.configuration).mml();
90019
+ var o = new ui.default(n, e.stack.env, e.configuration).mml();
90006
90020
  e.Push(e.itemFactory.create(t, o));
90007
90021
  var a = e.GetNext(), s = Uz[a];
90008
90022
  if (s) {
@@ -90030,7 +90044,7 @@ En.Expression = function(e, t, r, n) {
90030
90044
  r === void 0 && (r = !0), n === void 0 && (n = ""), n = n || t.slice(1);
90031
90045
  var i = r ? e.GetBrackets(t) : null, o = e.create("token", "mi", { texClass: vE.TEXCLASS.OP }, n);
90032
90046
  if (i) {
90033
- var a = new ci.default(i, e.stack.env, e.configuration).mml();
90047
+ var a = new ui.default(i, e.stack.env, e.configuration).mml();
90034
90048
  o = e.create("node", "msup", [o, a]);
90035
90049
  }
90036
90050
  e.Push(e.itemFactory.create("fn", o)), e.GetNext() === "(" && (e.i++, e.Push(e.itemFactory.create("auto open").setProperties({ open: "(", close: ")" })));
@@ -90043,17 +90057,17 @@ En.Differential = function(e, t, r) {
90043
90057
  var n = e.GetBrackets(t), i = n != null ? "^{" + n + "}" : " ", o = e.GetNext() === "(", a = e.GetNext() === "{", s = r + i;
90044
90058
  if (!(o || a)) {
90045
90059
  s += e.GetArgument(t, !0) || "";
90046
- var h = new ci.default(s, e.stack.env, e.configuration).mml();
90060
+ var h = new ui.default(s, e.stack.env, e.configuration).mml();
90047
90061
  e.Push(h);
90048
90062
  return;
90049
90063
  }
90050
90064
  if (a) {
90051
90065
  s += e.GetArgument(t);
90052
- var h = new ci.default(s, e.stack.env, e.configuration).mml();
90066
+ var h = new ui.default(s, e.stack.env, e.configuration).mml();
90053
90067
  e.Push(e.create("node", "TeXAtom", [h], { texClass: vE.TEXCLASS.OP }));
90054
90068
  return;
90055
90069
  }
90056
- e.Push(new ci.default(s, e.stack.env, e.configuration).mml()), e.i++, e.Push(e.itemFactory.create("auto open").setProperties({ open: "(", close: ")" }));
90070
+ e.Push(new ui.default(s, e.stack.env, e.configuration).mml()), e.i++, e.Push(e.itemFactory.create("auto open").setProperties({ open: "(", close: ")" }));
90057
90071
  };
90058
90072
  En.Derivative = function(e, t, r, n) {
90059
90073
  var i = e.GetStar(), o = e.GetBrackets(t), a = 1, s = [];
@@ -90064,7 +90078,7 @@ En.Derivative = function(e, t, r, n) {
90064
90078
  for (var p = i ? "\\flatfrac" : "\\frac", m = s.length > 1 ? s[0] : "", y = s.length > 1 ? s[1] : s[0], b = "", L = 2, C = void 0; C = s[L]; L++)
90065
90079
  b += n + " " + C;
90066
90080
  var E = p + "{" + n + T + m + "}{" + n + " " + y + d + " " + b + "}";
90067
- e.Push(new ci.default(E, e.stack.env, e.configuration).mml()), e.GetNext() === "(" && (e.i++, e.Push(e.itemFactory.create("auto open").setProperties({ open: "(", close: ")", ignore: h })));
90081
+ e.Push(new ui.default(E, e.stack.env, e.configuration).mml()), e.GetNext() === "(" && (e.i++, e.Push(e.itemFactory.create("auto open").setProperties({ open: "(", close: ")", ignore: h })));
90068
90082
  };
90069
90083
  En.Bra = function(e, t) {
90070
90084
  var r = e.GetStar(), n = e.GetArgument(t), i = "", o = !1, a = !1;
@@ -90075,23 +90089,23 @@ En.Bra = function(e, t) {
90075
90089
  T && T.symbol === "ket" ? (o = !0, s = e.i, a = e.GetStar(), e.GetNext() === "{" ? i = e.GetArgument(h, !0) : (e.i = s, a = !1)) : e.i = s;
90076
90090
  }
90077
90091
  var d = "";
90078
- o ? d = r || a ? "\\langle{".concat(n, "}\\vert{").concat(i, "}\\rangle") : "\\left\\langle{".concat(n, "}\\middle\\vert{").concat(i, "}\\right\\rangle") : d = r || a ? "\\langle{".concat(n, "}\\vert") : "\\left\\langle{".concat(n, "}\\right\\vert{").concat(i, "}"), e.Push(new ci.default(d, e.stack.env, e.configuration).mml());
90092
+ o ? d = r || a ? "\\langle{".concat(n, "}\\vert{").concat(i, "}\\rangle") : "\\left\\langle{".concat(n, "}\\middle\\vert{").concat(i, "}\\right\\rangle") : d = r || a ? "\\langle{".concat(n, "}\\vert") : "\\left\\langle{".concat(n, "}\\right\\vert{").concat(i, "}"), e.Push(new ui.default(d, e.stack.env, e.configuration).mml());
90079
90093
  };
90080
90094
  En.Ket = function(e, t) {
90081
90095
  var r = e.GetStar(), n = e.GetArgument(t), i = r ? "\\vert{".concat(n, "}\\rangle") : "\\left\\vert{".concat(n, "}\\right\\rangle");
90082
- e.Push(new ci.default(i, e.stack.env, e.configuration).mml());
90096
+ e.Push(new ui.default(i, e.stack.env, e.configuration).mml());
90083
90097
  };
90084
90098
  En.BraKet = function(e, t) {
90085
90099
  var r = e.GetStar(), n = e.GetArgument(t), i = null;
90086
90100
  e.GetNext() === "{" && (i = e.GetArgument(t, !0));
90087
90101
  var o = "";
90088
- i == null ? o = r ? "\\langle{".concat(n, "}\\vert{").concat(n, "}\\rangle") : "\\left\\langle{".concat(n, "}\\middle\\vert{").concat(n, "}\\right\\rangle") : o = r ? "\\langle{".concat(n, "}\\vert{").concat(i, "}\\rangle") : "\\left\\langle{".concat(n, "}\\middle\\vert{").concat(i, "}\\right\\rangle"), e.Push(new ci.default(o, e.stack.env, e.configuration).mml());
90102
+ i == null ? o = r ? "\\langle{".concat(n, "}\\vert{").concat(n, "}\\rangle") : "\\left\\langle{".concat(n, "}\\middle\\vert{").concat(n, "}\\right\\rangle") : o = r ? "\\langle{".concat(n, "}\\vert{").concat(i, "}\\rangle") : "\\left\\langle{".concat(n, "}\\middle\\vert{").concat(i, "}\\right\\rangle"), e.Push(new ui.default(o, e.stack.env, e.configuration).mml());
90089
90103
  };
90090
90104
  En.KetBra = function(e, t) {
90091
90105
  var r = e.GetStar(), n = e.GetArgument(t), i = null;
90092
90106
  e.GetNext() === "{" && (i = e.GetArgument(t, !0));
90093
90107
  var o = "";
90094
- i == null ? o = r ? "\\vert{".concat(n, "}\\rangle\\!\\langle{").concat(n, "}\\vert") : "\\left\\vert{".concat(n, "}\\middle\\rangle\\!\\middle\\langle{").concat(n, "}\\right\\vert") : o = r ? "\\vert{".concat(n, "}\\rangle\\!\\langle{").concat(i, "}\\vert") : "\\left\\vert{".concat(n, "}\\middle\\rangle\\!\\middle\\langle{").concat(i, "}\\right\\vert"), e.Push(new ci.default(o, e.stack.env, e.configuration).mml());
90108
+ i == null ? o = r ? "\\vert{".concat(n, "}\\rangle\\!\\langle{").concat(n, "}\\vert") : "\\left\\vert{".concat(n, "}\\middle\\rangle\\!\\middle\\langle{").concat(n, "}\\right\\vert") : o = r ? "\\vert{".concat(n, "}\\rangle\\!\\langle{").concat(i, "}\\vert") : "\\left\\vert{".concat(n, "}\\middle\\rangle\\!\\middle\\langle{").concat(i, "}\\right\\vert"), e.Push(new ui.default(o, e.stack.env, e.configuration).mml());
90095
90109
  };
90096
90110
  function qz(e, t, r) {
90097
90111
  var n = Wwt(e, 3), i = n[0], o = n[1], a = n[2];
@@ -90101,11 +90115,11 @@ En.Expectation = function(e, t) {
90101
90115
  var r = e.GetStar(), n = r && e.GetStar(), i = e.GetArgument(t), o = null;
90102
90116
  e.GetNext() === "{" && (o = e.GetArgument(t, !0));
90103
90117
  var a = i && o ? qz([o, i, o], r, n) : r ? "\\langle {".concat(i, "} \\rangle") : "\\left\\langle {".concat(i, "} \\right\\rangle");
90104
- e.Push(new ci.default(a, e.stack.env, e.configuration).mml());
90118
+ e.Push(new ui.default(a, e.stack.env, e.configuration).mml());
90105
90119
  };
90106
90120
  En.MatrixElement = function(e, t) {
90107
90121
  var r = e.GetStar(), n = r && e.GetStar(), i = e.GetArgument(t), o = e.GetArgument(t), a = e.GetArgument(t), s = qz([i, o, a], r, n);
90108
- e.Push(new ci.default(s, e.stack.env, e.configuration).mml());
90122
+ e.Push(new ui.default(s, e.stack.env, e.configuration).mml());
90109
90123
  };
90110
90124
  En.MatrixQuantity = function(e, t, r) {
90111
90125
  var n = e.GetStar(), i = e.GetNext(), o = r ? "smallmatrix" : "array", a = "", s = "", h = "";
@@ -90127,7 +90141,7 @@ En.MatrixQuantity = function(e, t, r) {
90127
90141
  break;
90128
90142
  }
90129
90143
  var T = (s ? "\\left" : "") + s + "\\begin{" + o + "}{} " + a + "\\end{" + o + "}" + (s ? "\\right" : "") + h;
90130
- e.Push(new ci.default(T, e.stack.env, e.configuration).mml());
90144
+ e.Push(new ui.default(T, e.stack.env, e.configuration).mml());
90131
90145
  };
90132
90146
  En.IdentityMatrix = function(e, t) {
90133
90147
  var r = e.GetArgument(t), n = parseInt(r, 10);
@@ -90227,11 +90241,11 @@ En.AutoClose = function(e, t, r) {
90227
90241
  };
90228
90242
  En.Vnabla = function(e, t) {
90229
90243
  var r = e.options.physics.arrowdel ? "\\vec{\\gradientnabla}" : "{\\gradientnabla}";
90230
- return e.Push(new ci.default(r, e.stack.env, e.configuration).mml());
90244
+ return e.Push(new ui.default(r, e.stack.env, e.configuration).mml());
90231
90245
  };
90232
90246
  En.DiffD = function(e, t) {
90233
90247
  var r = e.options.physics.italicdiff ? "d" : "{\\rm d}";
90234
- return e.Push(new ci.default(r, e.stack.env, e.configuration).mml());
90248
+ return e.Push(new ui.default(r, e.stack.env, e.configuration).mml());
90235
90249
  };
90236
90250
  En.Macro = _E.default.Macro;
90237
90251
  En.NamedFn = _E.default.NamedFn;
@@ -90508,7 +90522,7 @@ var iAt = {};
90508
90522
  return m && m.__esModule ? m : { default: m };
90509
90523
  };
90510
90524
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SetOptionsConfiguration = e.SetOptionsUtil = void 0;
90511
- var n = tn, i = gr, o = r(un), a = r(qn()), s = fa, h = r(C2), T = ui;
90525
+ var n = tn, i = gr, o = r(un), a = r(qn()), s = fa, h = r(C2), T = hi;
90512
90526
  e.SetOptionsUtil = {
90513
90527
  filterPackage: function(m, y) {
90514
90528
  if (y !== "tex" && !n.ConfigurationHandler.get(y))
@@ -91394,7 +91408,7 @@ class jAt {
91394
91408
  Vt(this, Ui, /* @__PURE__ */ new Map());
91395
91409
  Vt(this, o7, void 0);
91396
91410
  this._flatmap = t, this._map = t.map, this._currentPopup = null, this._infoControl = null, this._tooltip = null, this._inQuery = !1, this._modal = !1, this.__colourOptions = { colour: !0, outline: !0 }, this.__activeMarker = null, this.__markerIdByMarker = /* @__PURE__ */ new Map(), this.__markerIdByFeatureId = /* @__PURE__ */ new Map(), this.__annotationByMarkerId = /* @__PURE__ */ new Map(), this.__markerPositions = /* @__PURE__ */ new Map(), this.__featureEnabledCount = new Map(Array.from(this._flatmap.annotations.keys()).map((o) => [+o, 0]));
91397
- const r = t.options.style !== yi.FUNCTIONAL;
91411
+ const r = t.options.style !== ci.FUNCTIONAL;
91398
91412
  this.tooltipDelay = t.options.tooltipDelay || 0, this.__pathManager = new W3t(t, this, r);
91399
91413
  const n = this.__pathManager.pathTypes();
91400
91414
  if (this._layerManager = new Gdt(t, this), this.__pathManager.enablePathLines(!0, !0), qt(this, Q5, new Ydt(n)), this._layerManager.addFilteredFacet(K(this, Q5)), qt(this, i7, new Kdt(this.__pathManager.nerveCentrelineDetails)), this._layerManager.addFilteredFacet(K(this, i7)), this.__systemsManager = new tQt(this._flatmap, this, r), qt(this, o7, new Jdt(this._flatmap.taxonIdentifiers)), this._layerManager.addFilteredFacet(K(this, o7)), t.options.minimap && (qt(this, n7, new pQt(
@@ -91405,7 +91419,7 @@ class jAt {
91405
91419
  const o = t.options.navigationControl, a = typeof o == "string" && ["top-left", "top-right", "bottom-right", "bottom-left"].includes(o) ? o : "bottom-right";
91406
91420
  this._map.addControl(new NavigationControl(t), a);
91407
91421
  }
91408
- t.options.standalone && (this._map.addControl(new TQt(t)), this._infoControl = new rQt(t), this._map.addControl(this._infoControl), this._map.addControl(new sQt(t)), this._map.addControl(new hQt(t, n)), t.options.style === yi.ANATOMICAL && this.__pathManager.haveCentrelines && this._map.addControl(new uQt(t, this)), t.options.style === yi.FUNCTIONAL ? (this._map.addControl(new mQt(t, this.__systemsManager.systems)), this._map.addControl(new oQt(t, t.options.layerOptions))) : this._map.addControl(new gQt(t)), t.has_flightpaths && this._map.addControl(new fQt(t, t.options.flightPaths)), t.options.annotator && this._map.addControl(new aQt(t)), this._map.addControl(new iQt(t, this._layerManager))), this.__setupAnnotation(), qt(this, h1, new cQt(t, !1)), this._map.addControl(K(this, h1)), t.options.flightPaths === !0 && this._layerManager.setFlightPathMode(!0);
91422
+ t.options.standalone && (this._map.addControl(new TQt(t)), this._infoControl = new rQt(t), this._map.addControl(this._infoControl), this._map.addControl(new sQt(t)), this._map.addControl(new hQt(t, n)), t.options.style === ci.ANATOMICAL && this.__pathManager.haveCentrelines && this._map.addControl(new uQt(t, this)), t.options.style === ci.FUNCTIONAL ? (this._map.addControl(new mQt(t, this.__systemsManager.systems)), this._map.addControl(new oQt(t, t.options.layerOptions))) : this._map.addControl(new gQt(t)), t.has_flightpaths && this._map.addControl(new fQt(t, t.options.flightPaths)), t.options.annotator && this._map.addControl(new aQt(t)), this._map.addControl(new iQt(t, this._layerManager))), this.__setupAnnotation(), qt(this, h1, new cQt(t, !1)), this._map.addControl(K(this, h1)), t.options.flightPaths === !0 && this._layerManager.setFlightPathMode(!0);
91409
91423
  const i = this.mouseMoveEvent_.bind(this);
91410
91424
  this._map.on("click", this.clickEvent_.bind(this)), this._map.on("dblclick", (o) => {
91411
91425
  const a = this._layerManager.featuresAtPoint(o.point);
@@ -91695,6 +91709,12 @@ class jAt {
91695
91709
  removeTooltip_() {
91696
91710
  this._tooltip && (this._tooltip.remove(), this._tooltip = null);
91697
91711
  }
91712
+ /**
91713
+ * Remove the currently active popup from the map.
91714
+ */
91715
+ removePopup() {
91716
+ this._currentPopup && (this._currentPopup.remove(), this._currentPopup = null);
91717
+ }
91698
91718
  lineTooltip_(t) {
91699
91719
  const r = [];
91700
91720
  for (const n of t) {
@@ -91768,7 +91788,7 @@ class jAt {
91768
91788
  o || i || a
91769
91789
  );
91770
91790
  } else if (r.length) {
91771
- if (this.__lastClickLngLat = t.lngLat, this._flatmap.options.style !== yi.CENTRELINE)
91791
+ if (this.__lastClickLngLat = t.lngLat, this._flatmap.options.style !== ci.CENTRELINE)
91772
91792
  te(this, s7, td).call(this, t.originalEvent), this.__featureEvent("click", i);
91773
91793
  else {
91774
91794
  const o = /* @__PURE__ */ new Set();
@@ -92034,7 +92054,7 @@ V4 = new WeakMap(), h1 = new WeakMap(), d5 = new WeakMap(), r7 = new WeakMap(),
92034
92054
  o,
92035
92055
  te(this, l7, ed).call(this, a, r)
92036
92056
  ) ? (this._lastFeatureMouseEntered = a, this._lastFeatureModelsMouse = s) : (this._lastFeatureMouseEntered = null, this._lastFeatureModelsMouse = null);
92037
- else if (this._flatmap.options.style === yi.CENTRELINE && o.properties.centreline && this._lastFeatureMouseEntered === a) {
92057
+ else if (this._flatmap.options.style === ci.CENTRELINE && o.properties.centreline && this._lastFeatureMouseEntered === a) {
92038
92058
  const y = te(this, l7, ed).call(this, a, r);
92039
92059
  "location" in y && this.__featureEvent("mousemove", o, y);
92040
92060
  }
@@ -92080,7 +92100,7 @@ V4 = new WeakMap(), h1 = new WeakMap(), d5 = new WeakMap(), r7 = new WeakMap(),
92080
92100
  r ? this.selectFeature(n, o) : this.featureSelected_(n) ? this.unselectFeature(n) : this.selectFeature(n, o);
92081
92101
  }
92082
92102
  }, l7 = new WeakSet(), ed = function(t, r) {
92083
- if (r && this._flatmap.options.style === yi.CENTRELINE) {
92103
+ if (r && this._flatmap.options.style === ci.CENTRELINE) {
92084
92104
  const n = this._flatmap.annotation(t);
92085
92105
  if (n.centreline && "lineString" in n) {
92086
92106
  const i = n.lineString, o = Lx([r.lng, r.lat]);
@@ -92131,7 +92151,7 @@ const $At = [
92131
92151
  stretchY: [[7, 9]]
92132
92152
  }
92133
92153
  }
92134
- ], zAt = "3.2.10", UAt = 1.4, ZAt = 1.6, rU = "NCBITaxon:2787823", WAt = [
92154
+ ], zAt = "3.2.12", UAt = 1.4, ZAt = 1.6, rU = "NCBITaxon:2787823", WAt = [
92135
92155
  "bounds",
92136
92156
  "class",
92137
92157
  "coordinates",
@@ -92150,9 +92170,9 @@ const $At = [
92150
92170
  "source",
92151
92171
  "tile-layer"
92152
92172
  ];
92153
- class yi {
92173
+ class ci {
92154
92174
  }
92155
- ut(yi, "FUNCTIONAL", "functional"), ut(yi, "ANATOMICAL", "anatomical"), ut(yi, "CENTRELINE", "centreline"), ut(yi, "GENERIC", "flatmap");
92175
+ ut(ci, "FUNCTIONAL", "functional"), ut(ci, "ANATOMICAL", "anatomical"), ut(ci, "CENTRELINE", "centreline"), ut(ci, "GENERIC", "flatmap");
92156
92176
  var c7, u7, oa, s2, h7, as, y5, M9, AL;
92157
92177
  class qAt {
92158
92178
  constructor(t, r, n, i) {
@@ -92453,7 +92473,7 @@ class qAt {
92453
92473
  o ? o.push(n) : r.set(i, [n]);
92454
92474
  }
92455
92475
  __updateFeatureIdMap(t, r, n, i = null) {
92456
- if (!n.centreline)
92476
+ if (!(this.options.style !== ci.CENTRELINE && n.centreline))
92457
92477
  if (t in n && n[t].length) {
92458
92478
  const o = n[t];
92459
92479
  if (Array.isArray(o))
@@ -92472,7 +92492,7 @@ class qAt {
92472
92492
  const o = this.__featurePropertyValues.get(n);
92473
92493
  Array.isArray(i) ? this.__featurePropertyValues.set(n, o.union(new d4(i.map((a) => `${a}`)))) : o.add(`${i}`);
92474
92494
  }
92475
- this.__annIdToFeatureId.set(r.id, t), this.options.style === yi.CENTRELINE && r.centreline && (r.lineString = Pk(r.coordinates), r.lineLength = zB(r.lineString));
92495
+ this.__annIdToFeatureId.set(r.id, t), this.options.style === ci.CENTRELINE && r.centreline && (r.lineString = Pk(r.coordinates), r.lineLength = zB(r.lineString));
92476
92496
  }
92477
92497
  modelFeatureIds(t) {
92478
92498
  const r = Mf(t);
@@ -92604,6 +92624,12 @@ class qAt {
92604
92624
  showPopup(t, r, n) {
92605
92625
  this._userInteractions !== null && this._userInteractions.showPopup(t, r, n);
92606
92626
  }
92627
+ /**
92628
+ * Remove the currently active popup from the map.
92629
+ */
92630
+ removePopup() {
92631
+ this._userInteractions !== null && this._userInteractions.removePopup();
92632
+ }
92607
92633
  setPaint(t = null) {
92608
92634
  t = fl(t, {
92609
92635
  colour: !0,
@@ -92922,7 +92948,7 @@ class qAt {
92922
92948
  * `draw_polygon` or `draw_point`. Options is accepted in first three modes.
92923
92949
  * More details in mapbox-gl-draw github repository.
92924
92950
  *
92925
- * @param type {Object} The object
92951
+ * @param type {Object} The object
92926
92952
  * @param type.mode {string} Either ``simple_select``, ``direct_select``, etc
92927
92953
  * @param type.options {Object} Feature id(s) object.
92928
92954
  */
@@ -93379,7 +93405,7 @@ class nU {
93379
93405
  if (h !== d)
93380
93406
  throw new Error(`Map '${h}' has wrong ID in index`);
93381
93407
  const p = Object.assign({}, this._options, i);
93382
- !("bounds" in i) && "bounds" in T && (p.bounds = T.bounds), "style" in T ? p.style = T.style : p.style = yi.GENERIC, !("image-layers" in T) && "image_layer" in T && (T["image-layers"] = T.image_layer);
93408
+ !("bounds" in i) && "bounds" in T && (p.bounds = T.bounds), "style" in T ? p.style = T.style : p.style = ci.GENERIC, !("image-layers" in T) && "image_layer" in T && (T["image-layers"] = T.image_layer);
93383
93409
  let m = [];
93384
93410
  if (!("version" in T) || T.version <= 1)
93385
93411
  for (const H of T.layers)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmap-viewer",
3
- "version": "3.2.10",
3
+ "version": "3.2.12",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": {
6
6
  "type": "git",