@mapsindoors/map-template 1.54.4 → 1.54.6

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 (48) hide show
  1. package/dist/{_commonjsHelpers-ba3f0406-c620b3e7.mjs → _commonjsHelpers-ba3f0406-2e541099.mjs} +2 -2
  2. package/dist/{combo-box-item.entry-20ff4683.mjs → combo-box-item.entry-1e527717.mjs} +2 -2
  3. package/dist/{icon-b8d01d6f-5dea9946.mjs → icon-b8d01d6f-b7b75cbe.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +1 -1
  5. package/dist/mapsindoors-react.umd.js +20 -20
  6. package/dist/mapsindoors-webcomponent.es.js +976 -947
  7. package/dist/mapsindoors-webcomponent.umd.js +23 -23
  8. package/dist/{mi-card_2.entry-0077d978.mjs → mi-card_2.entry-ef5cf4e3.mjs} +2 -2
  9. package/dist/{mi-chip.entry-164865b0.mjs → mi-chip.entry-b1c0b31b.mjs} +2 -2
  10. package/dist/{mi-column.entry-cb91af9f.mjs → mi-column.entry-c12a255e.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-263005c5.mjs → mi-combo-box.entry-a1cb2538.mjs} +4 -4
  12. package/dist/{mi-data-table.entry-a61ef3e6.mjs → mi-data-table.entry-00f529c6.mjs} +3 -3
  13. package/dist/{mi-distance_2.entry-7bd70a26.mjs → mi-distance_2.entry-8e8f9bfa.mjs} +3 -3
  14. package/dist/{mi-dropdown-item.entry-75464d86.mjs → mi-dropdown-item.entry-86106df9.mjs} +2 -2
  15. package/dist/{mi-dropdown.entry-6be86f1b.mjs → mi-dropdown.entry-54ce4c82.mjs} +4 -4
  16. package/dist/{mi-floor-selector.entry-ca24084d.mjs → mi-floor-selector.entry-a212dd27.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-fe2ffa8d.mjs → mi-keyboard.entry-f1926af5.mjs} +3 -3
  18. package/dist/{mi-list-item-category.entry-6b5bec2d.mjs → mi-list-item-category.entry-27655022.mjs} +4 -4
  19. package/dist/{mi-list-item-location.entry-c7858b00.mjs → mi-list-item-location.entry-8835b851.mjs} +4 -4
  20. package/dist/{mi-list.entry-a66642ce.mjs → mi-list.entry-3a14a295.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-f22f062f.mjs → mi-location-booking.entry-4fe15e50.mjs} +3 -3
  22. package/dist/{mi-location-info.entry-6d16bcc8.mjs → mi-location-info.entry-3bb7d5a3.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-ce44d141.mjs → mi-map-googlemaps.entry-91505322.mjs} +3 -3
  24. package/dist/{mi-map-mapbox.entry-a306e6ba.mjs → mi-map-mapbox.entry-dcc7835b.mjs} +3 -3
  25. package/dist/{mi-metric-card.entry-b5415afb.mjs → mi-metric-card.entry-bc733e6c.mjs} +3 -3
  26. package/dist/{mi-my-position.entry-16b19c3f.mjs → mi-my-position.entry-337ab799.mjs} +3 -3
  27. package/dist/{mi-notification.entry-0ef70e3b.mjs → mi-notification.entry-7d905ebf.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-a0ed3d5d.mjs → mi-route-instructions-heading.entry-fa5942bf.mjs} +4 -4
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-d948b065.mjs → mi-route-instructions-maneuver-legacy.entry-9ab07108.mjs} +3 -3
  30. package/dist/{mi-route-instructions-maneuver.entry-016e2a72.mjs → mi-route-instructions-maneuver.entry-1edbe5a0.mjs} +3 -3
  31. package/dist/{mi-route-instructions-step-legacy.entry-97e6924f.mjs → mi-route-instructions-step-legacy.entry-43ff59fe.mjs} +4 -4
  32. package/dist/{mi-route-instructions-step.entry-93e2c3c0.mjs → mi-route-instructions-step.entry-3e961c3f.mjs} +4 -4
  33. package/dist/{mi-route-instructions.entry-1200089e.mjs → mi-route-instructions.entry-bd9de511.mjs} +5 -5
  34. package/dist/{mi-scroll-buttons.entry-c9232c59.mjs → mi-scroll-buttons.entry-97288812.mjs} +28 -5
  35. package/dist/{mi-search.entry-06eb19b5.mjs → mi-search.entry-b8181fba.mjs} +3 -3
  36. package/dist/{mi-share-sms.entry-3802bc7d.mjs → mi-share-sms.entry-38c4ee21.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-d48ee021.mjs → mi-step-switcher.entry-33ba607b.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-08da611e.mjs → mi-tab-panel.entry-b852798e.mjs} +2 -2
  39. package/dist/{mi-tab.entry-a087b248.mjs → mi-tab.entry-6cbdf502.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-29206466.mjs → mi-tabs.entry-6fe98894.mjs} +2 -2
  41. package/dist/{mi-time.entry-16be7097.mjs → mi-time.entry-3208c231.mjs} +2 -2
  42. package/dist/{mi-variables-9a6c8d4d-cb9efe43.mjs → mi-variables-9a6c8d4d-a62c7bcb.mjs} +2 -2
  43. package/dist/{reactcomponent-72d27d4a.mjs → reactcomponent-a8dc7afc.mjs} +475 -469
  44. package/dist/{route-travel-mode.enum-7f4ce9c7-f9562dc8.mjs → route-travel-mode.enum-7f4ce9c7-326e48be.mjs} +2 -2
  45. package/dist/{sort-order.enum-64ce8998-95fead6f.mjs → sort-order.enum-64ce8998-56d0b342.mjs} +3 -3
  46. package/dist/{unit-system.enum-eaefb53e-b269f1f4.mjs → unit-system.enum-eaefb53e-727bf7ef.mjs} +2 -2
  47. package/dist/{utils-ae714467-dea3c334.mjs → utils-ae714467-49f964ab.mjs} +2 -2
  48. package/package.json +1 -1
@@ -4,12 +4,12 @@ import md, { createPortal as rO } from "react-dom";
4
4
  (function() {
5
5
  try {
6
6
  var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, r = new Error().stack;
7
- r && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[r] = "9c2e1a84-5ab0-4aa7-a015-92c55f6dd253", i._sentryDebugIdIdentifier = "sentry-dbid-9c2e1a84-5ab0-4aa7-a015-92c55f6dd253");
7
+ r && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[r] = "7791fa51-b018-4dd1-9460-aebfdf62562c", i._sentryDebugIdIdentifier = "sentry-dbid-7791fa51-b018-4dd1-9460-aebfdf62562c");
8
8
  } catch {
9
9
  }
10
10
  })();
11
11
  var oO = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
12
- oO.SENTRY_RELEASE = { id: "4eefe3121a46acf2cdafc0adaefc3686b0f3b018" };
12
+ oO.SENTRY_RELEASE = { id: "f2c4d2119477b8f021beed7e1011f7c648df42f5" };
13
13
  var sO = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
14
  function gw(i) {
15
15
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
@@ -303,7 +303,7 @@ function lO() {
303
303
  var se = De.prototype;
304
304
  return !!(se && se.isReactComponent);
305
305
  }
306
- function Hn(De, se, j) {
306
+ function Un(De, se, j) {
307
307
  if (De == null)
308
308
  return "";
309
309
  if (typeof De == "function")
@@ -321,28 +321,28 @@ function lO() {
321
321
  case A:
322
322
  return wn(De.render);
323
323
  case U:
324
- return Hn(De.type, se, j);
324
+ return Un(De.type, se, j);
325
325
  case $: {
326
326
  var q = De, ie = q._payload, me = q._init;
327
327
  try {
328
- return Hn(me(ie), se, j);
328
+ return Un(me(ie), se, j);
329
329
  } catch {
330
330
  }
331
331
  }
332
332
  }
333
333
  return "";
334
334
  }
335
- var Qn = Object.prototype.hasOwnProperty, di = {}, _r = Ie.ReactDebugCurrentFrame;
335
+ var qn = Object.prototype.hasOwnProperty, di = {}, _r = Ie.ReactDebugCurrentFrame;
336
336
  function Ot(De) {
337
337
  if (De) {
338
- var se = De._owner, j = Hn(De.type, De._source, se ? se.type : null);
338
+ var se = De._owner, j = Un(De.type, De._source, se ? se.type : null);
339
339
  _r.setExtraStackFrame(j);
340
340
  } else
341
341
  _r.setExtraStackFrame(null);
342
342
  }
343
343
  function yt(De, se, j, q, ie) {
344
344
  {
345
- var me = Function.call.bind(Qn);
345
+ var me = Function.call.bind(qn);
346
346
  for (var de in De)
347
347
  if (me(De, de)) {
348
348
  var _e = void 0;
@@ -363,7 +363,7 @@ function lO() {
363
363
  function li(De) {
364
364
  return Sn(De);
365
365
  }
366
- function Vn(De) {
366
+ function $n(De) {
367
367
  {
368
368
  var se = typeof Symbol == "function" && Symbol.toStringTag, j = se && De[Symbol.toStringTag] || De.constructor.name || "Object";
369
369
  return j;
@@ -381,7 +381,7 @@ function lO() {
381
381
  }
382
382
  function xo(De) {
383
383
  if (fr(De))
384
- return ve("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Vn(De)), Pr(De);
384
+ return ve("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $n(De)), Pr(De);
385
385
  }
386
386
  var Tr = Ie.ReactCurrentOwner, bo = {
387
387
  key: !0,
@@ -391,7 +391,7 @@ function lO() {
391
391
  }, so, wo, ao;
392
392
  ao = {};
393
393
  function lo(De) {
394
- if (Qn.call(De, "ref")) {
394
+ if (qn.call(De, "ref")) {
395
395
  var se = Object.getOwnPropertyDescriptor(De, "ref").get;
396
396
  if (se && se.isReactWarning)
397
397
  return !1;
@@ -399,7 +399,7 @@ function lO() {
399
399
  return De.ref !== void 0;
400
400
  }
401
401
  function Lr(De) {
402
- if (Qn.call(De, "key")) {
402
+ if (qn.call(De, "key")) {
403
403
  var se = Object.getOwnPropertyDescriptor(De, "key").get;
404
404
  if (se && se.isReactWarning)
405
405
  return !1;
@@ -468,7 +468,7 @@ function lO() {
468
468
  var me, de = {}, _e = null, ke = null;
469
469
  j !== void 0 && (xo(j), _e = "" + j), Lr(se) && (xo(se.key), _e = "" + se.key), lo(se) && (ke = se.ref, cs(se, ie));
470
470
  for (me in se)
471
- Qn.call(se, me) && !bo.hasOwnProperty(me) && (de[me] = se[me]);
471
+ qn.call(se, me) && !bo.hasOwnProperty(me) && (de[me] = se[me]);
472
472
  if (De && De.defaultProps) {
473
473
  var Se = De.defaultProps;
474
474
  for (me in Se)
@@ -484,7 +484,7 @@ function lO() {
484
484
  var Qt = Ie.ReactCurrentOwner, nn = Ie.ReactDebugCurrentFrame;
485
485
  function mn(De) {
486
486
  if (De) {
487
- var se = De._owner, j = Hn(De.type, De._source, se ? se.type : null);
487
+ var se = De._owner, j = Un(De.type, De._source, se ? se.type : null);
488
488
  nn.setExtraStackFrame(j);
489
489
  } else
490
490
  nn.setExtraStackFrame(null);
@@ -9521,7 +9521,7 @@ function mc(i = {}) {
9521
9521
  crossOriginIframeMirror: Yt.crossOriginIframeMirror,
9522
9522
  crossOriginIframeStyleMirror: Yt.crossOriginIframeStyleMirror
9523
9523
  });
9524
- const Hn = new M8(), Qn = P8(Ke, {
9524
+ const Un = new M8(), qn = P8(Ke, {
9525
9525
  mirror: Gs,
9526
9526
  win: window,
9527
9527
  mutationCb: (Ot) => Je(Br({
@@ -9563,9 +9563,9 @@ function mc(i = {}) {
9563
9563
  slimDOMOptions: ot,
9564
9564
  iframeManager: Yt,
9565
9565
  stylesheetManager: wn,
9566
- canvasManager: Qn,
9566
+ canvasManager: qn,
9567
9567
  keepIframeSrcFn: kt,
9568
- processedNodeManager: Hn
9568
+ processedNodeManager: Un
9569
9569
  },
9570
9570
  mirror: Gs
9571
9571
  }), _r = (Ot = !1) => {
@@ -9622,79 +9622,79 @@ function mc(i = {}) {
9622
9622
  const Ot = [], yt = (li) => Pi(S8)({
9623
9623
  onMutation: dn,
9624
9624
  mutationCb: Nt,
9625
- mousemoveCb: (Vn, fr) => Je(Br({
9625
+ mousemoveCb: ($n, fr) => Je(Br({
9626
9626
  type: _i.IncrementalSnapshot,
9627
9627
  data: {
9628
9628
  source: fr,
9629
- positions: Vn
9629
+ positions: $n
9630
9630
  }
9631
9631
  })),
9632
- mouseInteractionCb: (Vn) => Je(Br({
9632
+ mouseInteractionCb: ($n) => Je(Br({
9633
9633
  type: _i.IncrementalSnapshot,
9634
9634
  data: {
9635
9635
  source: yi.MouseInteraction,
9636
- ...Vn
9636
+ ...$n
9637
9637
  }
9638
9638
  })),
9639
9639
  scrollCb: jt,
9640
- viewportResizeCb: (Vn) => Je(Br({
9640
+ viewportResizeCb: ($n) => Je(Br({
9641
9641
  type: _i.IncrementalSnapshot,
9642
9642
  data: {
9643
9643
  source: yi.ViewportResize,
9644
- ...Vn
9644
+ ...$n
9645
9645
  }
9646
9646
  })),
9647
- inputCb: (Vn) => Je(Br({
9647
+ inputCb: ($n) => Je(Br({
9648
9648
  type: _i.IncrementalSnapshot,
9649
9649
  data: {
9650
9650
  source: yi.Input,
9651
- ...Vn
9651
+ ...$n
9652
9652
  }
9653
9653
  })),
9654
- mediaInteractionCb: (Vn) => Je(Br({
9654
+ mediaInteractionCb: ($n) => Je(Br({
9655
9655
  type: _i.IncrementalSnapshot,
9656
9656
  data: {
9657
9657
  source: yi.MediaInteraction,
9658
- ...Vn
9658
+ ...$n
9659
9659
  }
9660
9660
  })),
9661
- styleSheetRuleCb: (Vn) => Je(Br({
9661
+ styleSheetRuleCb: ($n) => Je(Br({
9662
9662
  type: _i.IncrementalSnapshot,
9663
9663
  data: {
9664
9664
  source: yi.StyleSheetRule,
9665
- ...Vn
9665
+ ...$n
9666
9666
  }
9667
9667
  })),
9668
- styleDeclarationCb: (Vn) => Je(Br({
9668
+ styleDeclarationCb: ($n) => Je(Br({
9669
9669
  type: _i.IncrementalSnapshot,
9670
9670
  data: {
9671
9671
  source: yi.StyleDeclaration,
9672
- ...Vn
9672
+ ...$n
9673
9673
  }
9674
9674
  })),
9675
9675
  canvasMutationCb: Nn,
9676
- fontCb: (Vn) => Je(Br({
9676
+ fontCb: ($n) => Je(Br({
9677
9677
  type: _i.IncrementalSnapshot,
9678
9678
  data: {
9679
9679
  source: yi.Font,
9680
- ...Vn
9680
+ ...$n
9681
9681
  }
9682
9682
  })),
9683
- selectionCb: (Vn) => {
9683
+ selectionCb: ($n) => {
9684
9684
  Je(Br({
9685
9685
  type: _i.IncrementalSnapshot,
9686
9686
  data: {
9687
9687
  source: yi.Selection,
9688
- ...Vn
9688
+ ...$n
9689
9689
  }
9690
9690
  }));
9691
9691
  },
9692
- customElementCb: (Vn) => {
9692
+ customElementCb: ($n) => {
9693
9693
  Je(Br({
9694
9694
  type: _i.IncrementalSnapshot,
9695
9695
  data: {
9696
9696
  source: yi.CustomElement,
9697
- ...Vn
9697
+ ...$n
9698
9698
  }
9699
9699
  }));
9700
9700
  },
@@ -9726,19 +9726,19 @@ function mc(i = {}) {
9726
9726
  iframeManager: Yt,
9727
9727
  stylesheetManager: wn,
9728
9728
  shadowDomManager: di,
9729
- processedNodeManager: Hn,
9730
- canvasManager: Qn,
9729
+ processedNodeManager: Un,
9730
+ canvasManager: qn,
9731
9731
  ignoreCSSAttributes: rn,
9732
9732
  plugins: Rx([
9733
9733
  bn,
9734
9734
  "optionalAccess",
9735
- (Vn) => Vn.filter,
9735
+ ($n) => $n.filter,
9736
9736
  "call",
9737
- (Vn) => Vn((fr) => fr.observer),
9737
+ ($n) => $n((fr) => fr.observer),
9738
9738
  "optionalAccess",
9739
- (Vn) => Vn.map,
9739
+ ($n) => $n.map,
9740
9740
  "call",
9741
- (Vn) => Vn((fr) => ({
9741
+ ($n) => $n((fr) => ({
9742
9742
  observer: fr.observer,
9743
9743
  options: fr.options,
9744
9744
  callback: (Pr) => Je(Br({
@@ -9754,8 +9754,8 @@ function mc(i = {}) {
9754
9754
  Yt.addLoadListener((li) => {
9755
9755
  try {
9756
9756
  Ot.push(yt(li.contentDocument));
9757
- } catch (Vn) {
9758
- console.warn(Vn);
9757
+ } catch ($n) {
9758
+ console.warn($n);
9759
9759
  }
9760
9760
  });
9761
9761
  const Sn = () => {
@@ -9772,7 +9772,7 @@ function mc(i = {}) {
9772
9772
  data: {}
9773
9773
  })), Dt === "load" && Sn();
9774
9774
  }, window))), () => {
9775
- Ot.forEach((li) => li()), Hn.destroy(), e0 = void 0, h8();
9775
+ Ot.forEach((li) => li()), Un.destroy(), e0 = void 0, h8();
9776
9776
  };
9777
9777
  } catch (Ot) {
9778
9778
  console.warn(Ot);
@@ -12650,14 +12650,14 @@ function NU() {
12650
12650
  case U:
12651
12651
  return Yt;
12652
12652
  default:
12653
- var Hn = Yt && Yt.$$typeof;
12654
- switch (Hn) {
12653
+ var Un = Yt && Yt.$$typeof;
12654
+ switch (Un) {
12655
12655
  case o:
12656
12656
  case z:
12657
12657
  case Q:
12658
12658
  case W:
12659
12659
  case T:
12660
- return Hn;
12660
+ return Un;
12661
12661
  default:
12662
12662
  return wn;
12663
12663
  }
@@ -13661,17 +13661,17 @@ var q9 = H9(function(i) {
13661
13661
  Pe.prototype.set = function(ze, We) {
13662
13662
  return wn(ze, We, this);
13663
13663
  };
13664
- var Yt = k(A), Hn = l.removeHash = function(ze, We, Et) {
13664
+ var Yt = k(A), Un = l.removeHash = function(ze, We, Et) {
13665
13665
  return jt(Yt, ze, We, Et);
13666
13666
  };
13667
13667
  Pe.prototype.removeHash = Pe.prototype.deleteHash = function(ze, We) {
13668
- return Hn(ze, We, this);
13668
+ return Un(ze, We, this);
13669
13669
  };
13670
- var Qn = l.remove = function(ze, We) {
13671
- return Hn(We._config.hash(ze), ze, We);
13670
+ var qn = l.remove = function(ze, We) {
13671
+ return Un(We._config.hash(ze), ze, We);
13672
13672
  };
13673
13673
  Pe.prototype.remove = Pe.prototype.delete = function(ze) {
13674
- return Qn(ze, this);
13674
+ return qn(ze, this);
13675
13675
  };
13676
13676
  var di = l.beginMutation = function(ze) {
13677
13677
  return new Pe(ze._editable + 1, ze._edit + 1, ze._config, ze._root, ze._size);
@@ -13716,7 +13716,7 @@ var q9 = H9(function(i) {
13716
13716
  default:
13717
13717
  return yt(tn);
13718
13718
  }
13719
- }, Vn = {
13719
+ }, $n = {
13720
13720
  done: !0
13721
13721
  };
13722
13722
  function fr(ze) {
@@ -13724,7 +13724,7 @@ var q9 = H9(function(i) {
13724
13724
  }
13725
13725
  fr.prototype.next = function() {
13726
13726
  if (!this.v)
13727
- return Vn;
13727
+ return $n;
13728
13728
  var ze = this.v;
13729
13729
  return this.v = yt(ze.rest), ze;
13730
13730
  }, fr.prototype[Symbol.iterator] = function() {
@@ -16362,25 +16362,25 @@ function OP(i) {
16362
16362
  loadingDepPromise: null
16363
16363
  }, wn = /* @__PURE__ */ new Map();
16364
16364
  function Yt({
16365
- key: Qn
16365
+ key: qn
16366
16366
  }) {
16367
- const di = Iy(Pe, ut, Qn);
16368
- switch (wn.set(Qn, di), bt || (fe(Pe, ut, new Set(wn.keys()), ot), Me(Pe, ot)), di.state) {
16367
+ const di = Iy(Pe, ut, qn);
16368
+ switch (wn.set(qn, di), bt || (fe(Pe, ut, new Set(wn.keys()), ot), Me(Pe, ot)), di.state) {
16369
16369
  case "hasValue":
16370
16370
  return di.contents;
16371
16371
  case "hasError":
16372
16372
  throw di.contents;
16373
16373
  case "loading":
16374
- throw Qe.loadingDepKey = Qn, Qe.loadingDepPromise = di.contents, di.contents;
16374
+ throw Qe.loadingDepKey = qn, Qe.loadingDepPromise = di.contents, di.contents;
16375
16375
  }
16376
16376
  throw oi("Invalid Loadable state");
16377
16377
  }
16378
- const Hn = (Qn) => (...di) => {
16378
+ const Un = (qn) => (...di) => {
16379
16379
  if ($t)
16380
16380
  throw oi("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");
16381
16381
  return r == null && (process.env.NODE_ENV !== "production" ? ha(!1, "Recoil Value can never be null") : ha(!1)), jH(
16382
16382
  Pe,
16383
- Qn,
16383
+ qn,
16384
16384
  di,
16385
16385
  {
16386
16386
  node: r
@@ -16391,10 +16391,10 @@ function OP(i) {
16391
16391
  try {
16392
16392
  Nt = h({
16393
16393
  get: Yt,
16394
- getCallback: Hn
16394
+ getCallback: Un
16395
16395
  }), Nt = FH(Nt) ? Yt(Nt) : Nt, PH(Nt) && (Nt.state === "hasError" && (jt = !0), Nt = Nt.contents), er(Nt) ? Nt = Ae(Pe, Nt, ut, wn, ot, Qe).finally(Je) : Je(), Nt = Nt instanceof kP ? Nt.value : Nt;
16396
- } catch (Qn) {
16397
- Nt = Qn, er(Nt) ? Nt = we(Pe, Nt, ut, wn, ot, Qe).finally(Je) : (jt = !0, Je());
16396
+ } catch (qn) {
16397
+ Nt = qn, er(Nt) ? Nt = we(Pe, Nt, ut, wn, ot, Qe).finally(Je) : (jt = !0, Je());
16398
16398
  }
16399
16399
  return jt ? Nn = Cy(Nt) : er(Nt) ? Nn = LH(Nt) : Nn = qx(Nt), bt = !1, pt(Pe, ot, wn), fe(Pe, ut, new Set(wn.keys()), ot), [Nn, wn];
16400
16400
  }
@@ -16542,15 +16542,15 @@ function OP(i) {
16542
16542
  }
16543
16543
  function Nt(Qe, wn) {
16544
16544
  if (bt) {
16545
- const Qn = "Recoil: Async selector sets are not currently supported.";
16546
- throw io(Qn), oi(Qn);
16545
+ const qn = "Recoil: Async selector sets are not currently supported.";
16546
+ throw io(qn), oi(qn);
16547
16547
  }
16548
16548
  const Yt = typeof wn == "function" ? (
16549
16549
  // cast to any because we can't restrict type S from being a function itself without losing support for opaque types
16550
16550
  // flowlint-next-line unclear-type:off
16551
16551
  wn(Je(Qe))
16552
16552
  ) : wn;
16553
- DH(ut, ot, Qe.key, Yt).forEach((Qn, di) => $t.set(di, Qn));
16553
+ DH(ut, ot, Qe.key, Yt).forEach((qn, di) => $t.set(di, qn));
16554
16554
  }
16555
16555
  function jt(Qe) {
16556
16556
  Nt(Qe, zH);
@@ -16724,8 +16724,8 @@ function QH(i) {
16724
16724
  const Je = (Ht = bt.atomValues.get(r)) !== null && Ht !== void 0 ? Ht : T;
16725
16725
  if (Je.state === "hasValue") {
16726
16726
  var Nt, jt, Nn, Qe;
16727
- const wn = Je.contents, Yt = (Nt = $t.atomValues.get(r)) !== null && Nt !== void 0 ? Nt : T, Hn = Yt.state === "hasValue" ? Yt.contents : Cu;
16728
- ((jt = Ft) === null || jt === void 0 ? void 0 : jt.effect) !== Ke || ((Nn = Ft) === null || Nn === void 0 ? void 0 : Nn.value) !== wn ? Tt(wn, Hn, !bt.atomValues.has(r)) : ((Qe = Ft) === null || Qe === void 0 ? void 0 : Qe.effect) === Ke && (Ft = null);
16727
+ const wn = Je.contents, Yt = (Nt = $t.atomValues.get(r)) !== null && Nt !== void 0 ? Nt : T, Un = Yt.state === "hasValue" ? Yt.contents : Cu;
16728
+ ((jt = Ft) === null || jt === void 0 ? void 0 : jt.effect) !== Ke || ((Nn = Ft) === null || Nn === void 0 ? void 0 : Nn.value) !== wn ? Tt(wn, Un, !bt.atomValues.has(r)) : ((Qe = Ft) === null || Qe === void 0 ? void 0 : Qe.effect) === Ke && (Ft = null);
16729
16729
  }
16730
16730
  }, r);
16731
16731
  A.set(ve, [...(Pe = A.get(ve)) !== null && Pe !== void 0 ? Pe : [], ut]);
@@ -17675,7 +17675,7 @@ const uW = (i, r, ...l) => {
17675
17675
  if (x)
17676
17676
  return x[h];
17677
17677
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
17678
- return iW(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-20ff4683.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-0077d978.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-164865b0.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-cb91af9f.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-263005c5.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-a61ef3e6.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-7bd70a26.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-75464d86.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-6be86f1b.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-ca24084d.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-fe2ffa8d.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-6b5bec2d.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-c7858b00.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-a66642ce.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-f22f062f.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-6d16bcc8.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-ce44d141.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-a306e6ba.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-b5415afb.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-16b19c3f.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-0ef70e3b.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-a0ed3d5d.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-d948b065.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-016e2a72.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-97e6924f.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-93e2c3c0.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-1200089e.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-c9232c59.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-06eb19b5.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-3802bc7d.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-d48ee021.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-08da611e.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-a087b248.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-29206466.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-16be7097.mjs") }), `./${g}.entry.js`).then((T) => (g3.set(g, T), T[h]), Gu);
17678
+ return iW(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-1e527717.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-ef5cf4e3.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-b1c0b31b.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-c12a255e.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-a1cb2538.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-00f529c6.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-8e8f9bfa.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-86106df9.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-54ce4c82.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-a212dd27.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-f1926af5.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-27655022.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-8835b851.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-3a14a295.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-4fe15e50.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-3bb7d5a3.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-91505322.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-dcc7835b.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-bc733e6c.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-337ab799.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-7d905ebf.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-fa5942bf.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-9ab07108.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-1edbe5a0.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-43ff59fe.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-3e961c3f.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-bd9de511.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-97288812.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-b8181fba.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-38c4ee21.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-33ba607b.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-b852798e.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-6cbdf502.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-6fe98894.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-3208c231.mjs") }), `./${g}.entry.js`).then((T) => (g3.set(g, T), T[h]), Gu);
17679
17679
  }, c0 = /* @__PURE__ */ new Map(), eg = typeof window < "u" ? window : {}, ga = eg.document || { head: {} }, to = {
17680
17680
  $flags$: 0,
17681
17681
  $resourcesUrl$: "",
@@ -17702,7 +17702,7 @@ const uW = (i, r, ...l) => {
17702
17702
  i.length = 0;
17703
17703
  }, ew = () => {
17704
17704
  y3(_3), y3(rL), (Jb = _3.length > 0) && to.raf(ew);
17705
- }, y2 = (i) => iL().then(i), BW = /* @__PURE__ */ NW(rL, !0), FW = () => iL(), UW = (i, r) => typeof window > "u" ? Promise.resolve() : FW().then(() => RW([["mi-route-instructions", [[1, "mi-route-instructions", { activeStep: [1040], unit: [1], route: [16], hideIndoorSubsteps: [4, "hide-indoor-substeps"], travelMode: [1, "travel-mode"], originLocation: [16], originName: [1, "origin-name"], destinationLocation: [16], destinationName: [1, "destination-name"], translations: [16] }]]], ["mi-route-instructions-step", [[1, "mi-route-instructions-step", { step: [1], hideIndoorSubsteps: [4, "hide-indoor-substeps"], fromRouteContext: [1, "from-route-context"], fromTravelMode: [1, "from-travel-mode"], fromTransitStop: [1, "from-transit-stop"], destinationLocation: [1, "destination-location"], unit: [1], showToggleButton: [4, "show-toggle-button"], translations: [1], stepData: [32], translationsData: [32], substepsAreOpen: [32], openSubsteps: [64], closeSubsteps: [64] }]]], ["mi-route-instructions-heading", [[1, "mi-route-instructions-heading", { originName: [1, "origin-name"], destinationName: [1, "destination-name"], totalTravelTime: [2, "total-travel-time"], totalWalkingDistance: [2, "total-walking-distance"], travelMode: [1, "travel-mode"], unit: [1], translations: [16] }]]], ["mi-list", [[1, "mi-list", { scrollButtonsEnabled: [4, "scroll-buttons-enabled"], scrollLength: [2, "scroll-length"] }, [[0, "listItemDidRender", "updateScrollButtonsState"]]]]], ["mi-list-item-location", [[1, "mi-list-item-location", { location: [8], showExternalId: [4, "show-external-id"], unit: [1], icon: [1], level: [1], iconBadge: [1, "icon-badge"], iconBadgeValue: [1, "icon-badge-value"], iconURLToRender: [32] }]]], ["mi-metric-card", [[1, "mi-metric-card", { label: [1], value: [1], tip: [1], spinner: [4], error: [1], showToolTip: [32] }]]], ["mi-location-booking", [[1, "mi-location-booking", { location: [16], duration: [2], translations: [16], show: [2], startHour: [2, "start-hour"], stopHour: [2, "stop-hour"], bookingTitle: [1, "booking-title"], timeSlots: [32] }]]], ["mi-share-sms", [[0, "mi-share-sms", { venueId: [1, "venue"], originLocationId: [1, "origin"], destinationLocationId: [1, "destination"], countryCode: [1, "country-code"], phoneNumberInputPlaceholder: [1, "input-placeholder"], submitButtonLabel: [1, "submit-button-label"] }]]], ["combo-box-item", [[0, "combo-box-item", { selected: [4], disabled: [4], excludefromall: [4], value: [1], text: [1] }]]], ["mi-chip", [[0, "mi-chip", { icon: [1], content: [1], backgroundColor: [1, "background-color"], active: [4] }]]], ["mi-column", [[1, "mi-column", { monospace: [4], alignContent: [1, "align-content"], label: [1], sortable: [1], sort: [1], binding: [1], fitContent: [4, "fit-content"], width: [1] }, [[0, "cellContentClicked", "cellContentClickedHandler"]]]]], ["mi-combo-box", [[1, "mi-combo-box", { open: [4], items: [16], itemsOrder: [1, "items-order"], filterable: [4], selected: [16], noResultsMessage: [1, "no-results-message"], disabled: [4], currentItems: [32] }, [[8, "click", "checkForClickOutside"], [1, "mousemove", "mouseMoveEventHandler"], [11, "scroll", "scrollEventHandler"], [11, "resize", "resizeEventHandler"]]]]], ["mi-data-table", [[1, "mi-data-table", { rows: [16], maxRows: [2, "max-rows"], page: [2], selectable: [4], selected: [16], emptyPageHeader: [1, "empty-page-header"], emptyPageSubheader: [1, "empty-page-subheader"], isHeaderSticky: [4, "sticky-header"], numberOfSelectedRows: [32], tableRows: [32], currentPage: [32], sortByColumn: [32] }]]], ["mi-dropdown", [[1, "mi-dropdown", { open: [4], items: [16], itemsOrder: [1, "items-order"], label: [1], filterable: [4], multiple: [4], selected: [16], noResultsMessage: [1, "no-results-message"], iconSrc: [1, "icon"], iconAlt: [1, "icon-alt"], disabled: [4], currentItems: [32] }, [[8, "keydown", "handleKeyDown"], [10, "click", "checkForClickOutside"], [1, "mousemove", "mouseMoveEventHandler"], [11, "scroll", "scrollEventHandler"], [11, "resize", "resizeEventHandler"]]]]], ["mi-dropdown-item", [[0, "mi-dropdown-item", { selected: [4], disabled: [4], excludefromall: [4], value: [1], text: [1] }]]], ["mi-floor-selector", [[0, "mi-floor-selector", { mapsindoors: [8], primaryColor: [1, "primary-color"], floors: [32], currentFloor: [32], floorSelectorClosed: [32], fadeFloorSelectorOnTop: [32], fadeFloorSelectorOnBottom: [32] }]]], ["mi-list-item-category", [[1, "mi-list-item-category", { category: [8], orientation: [513] }]]], ["mi-map-googlemaps", [[1, "mi-map-googlemaps", { gmApiKey: [1, "gm-api-key"], miApiKey: [1, "mi-api-key"], gmOptions: [16], disableExternalLinks: [4, "disable-external-links"], floorSelectorControlPosition: [1, "floor-selector-control-position"], floorIndex: [1537, "floor-index"], myPositionControlPosition: [1, "my-position-control-position"], polygonHighlightOptions: [16], language: [1], polylineOptions: [16], getMapInstance: [64], getMapsIndoorsInstance: [64], getDirectionsServiceInstance: [64], getDirectionsRendererInstance: [64], highlightLocation: [64], clearHighlightLocation: [64] }]]], ["mi-map-mapbox", [[1, "mi-map-mapbox", { accessToken: [1, "access-token"], miApiKey: [1, "mi-api-key"], disableExternalLinks: [4, "disable-external-links"], floorSelectorControlPosition: [1, "floor-selector-control-position"], floorIndex: [1537, "floor-index"], myPositionControlPosition: [1, "my-position-control-position"], polygonHighlightOptions: [16], polylineOptions: [16], zoom: [1537], maxPitch: [1538, "max-pitch"], maxZoom: [1537, "max-zoom"], bearing: [1537], pitch: [1537], language: [1], getMapInstance: [64], getMapsIndoorsInstance: [64], getDirectionsServiceInstance: [64], getDirectionsRendererInstance: [64], highlightLocation: [64], clearHighlightLocation: [64] }]]], ["mi-my-position", [[0, "mi-my-position", { mapsindoors: [8], myPositionOptions: [8, "my-position-options"], positionState: [32], watchPosition: [64] }]]], ["mi-notification", [[1, "mi-notification", { position: [1], duration: [2], push: [64], clearAll: [64] }]]], ["mi-search", [[0, "mi-search", { placeholder: [1], idAttribute: [1, "id-attribute"], dataAttributes: [16], mapsindoors: [4], google: [4], mapbox: [4], language: [1], miFields: [1, "mi-fields"], miTake: [2, "mi-take"], miSkip: [2, "mi-skip"], miOrder: [1, "mi-order"], miCategories: [1, "mi-categories"], miNear: [1, "mi-near"], miVenue: [1, "mi-venue"], gmCountryCode: [1, "gm-country-code"], value: [1537], disabled: [4], sessionToken: [1, "session-token"], userPosition: [1, "user-position"], clear: [64], triggerSearch: [64], setDisplayText: [64], focusInput: [64], getInputField: [64] }]]], ["mi-step-switcher", [[1, "mi-step-switcher", { heading: [1], steps: [16], stepIndex: [514, "step-index"] }]]], ["mi-tab", [[1, "mi-tab", { label: [1], tabFor: [1, "tab-for"] }]]], ["mi-tab-panel", [[1, "mi-tab-panel", { isActive: [32], active: [64] }]]], ["mi-tabs", [[1, "mi-tabs", { active: [2], bordered: [4], tabs: [32] }]]], ["mi-distance_2", [[1, "mi-distance", { meters: [2], unit: [1] }], [1, "mi-icon", { iconName: [1, "icon-name"] }]]], ["mi-route-instructions-step-legacy", [[1, "mi-route-instructions-step-legacy", { step: [1], hideIndoorSubsteps: [4, "hide-indoor-substeps"], fromRouteContext: [1, "from-route-context"], fromTravelMode: [1, "from-travel-mode"], fromTransitStop: [1, "from-transit-stop"], unit: [1], translations: [1], stepData: [32], translationsData: [32], substepsAreOpen: [32] }]]], ["mi-route-instructions-maneuver", [[1, "mi-route-instructions-maneuver", { maneuver: [1], translations: [1], unit: [1], maneuverData: [32], translationsData: [32] }]]], ["mi-scroll-buttons", [[1, "mi-scroll-buttons", { scrollContainerElementRef: [16], scrollLength: [2, "scroll-length"], updateScrollButtonsState: [64] }]]], ["mi-keyboard", [[0, "mi-keyboard", { inputElement: [16], layout: [1], language: [1], clearInputField: [64] }]]], ["mi-route-instructions-maneuver-legacy", [[1, "mi-route-instructions-maneuver-legacy", { maneuver: [1], translations: [1], unit: [1], maneuverData: [32], translationsData: [32] }]]], ["mi-card_2", [[1, "mi-card"], [1, "mi-spinner", { inverse: [4] }]]], ["mi-location-info", [[1, "mi-location-info", { location: [8], level: [1], showExternalId: [4, "show-external-id"] }]]], ["mi-time", [[1, "mi-time", { seconds: [2], translations: [1], translationsData: [32] }]]]], r)), jW = {
17705
+ }, y2 = (i) => iL().then(i), BW = /* @__PURE__ */ NW(rL, !0), FW = () => iL(), UW = (i, r) => typeof window > "u" ? Promise.resolve() : FW().then(() => RW([["mi-route-instructions", [[1, "mi-route-instructions", { activeStep: [1040], unit: [1], route: [16], hideIndoorSubsteps: [4, "hide-indoor-substeps"], travelMode: [1, "travel-mode"], originLocation: [16], originName: [1, "origin-name"], destinationLocation: [16], destinationName: [1, "destination-name"], translations: [16] }]]], ["mi-route-instructions-step", [[1, "mi-route-instructions-step", { step: [1], hideIndoorSubsteps: [4, "hide-indoor-substeps"], fromRouteContext: [1, "from-route-context"], fromTravelMode: [1, "from-travel-mode"], fromTransitStop: [1, "from-transit-stop"], destinationLocation: [1, "destination-location"], unit: [1], showToggleButton: [4, "show-toggle-button"], translations: [1], stepData: [32], translationsData: [32], substepsAreOpen: [32], openSubsteps: [64], closeSubsteps: [64] }]]], ["mi-route-instructions-heading", [[1, "mi-route-instructions-heading", { originName: [1, "origin-name"], destinationName: [1, "destination-name"], totalTravelTime: [2, "total-travel-time"], totalWalkingDistance: [2, "total-walking-distance"], travelMode: [1, "travel-mode"], unit: [1], translations: [16] }]]], ["mi-list", [[1, "mi-list", { scrollButtonsEnabled: [4, "scroll-buttons-enabled"], scrollLength: [2, "scroll-length"] }, [[0, "listItemDidRender", "updateScrollButtonsState"]]]]], ["mi-list-item-location", [[1, "mi-list-item-location", { location: [8], showExternalId: [4, "show-external-id"], unit: [1], icon: [1], level: [1], iconBadge: [1, "icon-badge"], iconBadgeValue: [1, "icon-badge-value"], iconURLToRender: [32] }]]], ["mi-metric-card", [[1, "mi-metric-card", { label: [1], value: [1], tip: [1], spinner: [4], error: [1], showToolTip: [32] }]]], ["mi-location-booking", [[1, "mi-location-booking", { location: [16], duration: [2], translations: [16], show: [2], startHour: [2, "start-hour"], stopHour: [2, "stop-hour"], bookingTitle: [1, "booking-title"], timeSlots: [32] }]]], ["mi-share-sms", [[0, "mi-share-sms", { venueId: [1, "venue"], originLocationId: [1, "origin"], destinationLocationId: [1, "destination"], countryCode: [1, "country-code"], phoneNumberInputPlaceholder: [1, "input-placeholder"], submitButtonLabel: [1, "submit-button-label"] }]]], ["combo-box-item", [[0, "combo-box-item", { selected: [4], disabled: [4], excludefromall: [4], value: [1], text: [1] }]]], ["mi-chip", [[0, "mi-chip", { icon: [1], content: [1], backgroundColor: [1, "background-color"], active: [4] }]]], ["mi-column", [[1, "mi-column", { monospace: [4], alignContent: [1, "align-content"], label: [1], sortable: [1], sort: [1], binding: [1], fitContent: [4, "fit-content"], width: [1] }, [[0, "cellContentClicked", "cellContentClickedHandler"]]]]], ["mi-combo-box", [[1, "mi-combo-box", { open: [4], items: [16], itemsOrder: [1, "items-order"], filterable: [4], selected: [16], noResultsMessage: [1, "no-results-message"], disabled: [4], currentItems: [32] }, [[8, "click", "checkForClickOutside"], [1, "mousemove", "mouseMoveEventHandler"], [11, "scroll", "scrollEventHandler"], [11, "resize", "resizeEventHandler"]]]]], ["mi-data-table", [[1, "mi-data-table", { rows: [16], maxRows: [2, "max-rows"], page: [2], selectable: [4], selected: [16], emptyPageHeader: [1, "empty-page-header"], emptyPageSubheader: [1, "empty-page-subheader"], isHeaderSticky: [4, "sticky-header"], numberOfSelectedRows: [32], tableRows: [32], currentPage: [32], sortByColumn: [32] }]]], ["mi-dropdown", [[1, "mi-dropdown", { open: [4], items: [16], itemsOrder: [1, "items-order"], label: [1], filterable: [4], multiple: [4], selected: [16], noResultsMessage: [1, "no-results-message"], iconSrc: [1, "icon"], iconAlt: [1, "icon-alt"], disabled: [4], currentItems: [32] }, [[8, "keydown", "handleKeyDown"], [10, "click", "checkForClickOutside"], [1, "mousemove", "mouseMoveEventHandler"], [11, "scroll", "scrollEventHandler"], [11, "resize", "resizeEventHandler"]]]]], ["mi-dropdown-item", [[0, "mi-dropdown-item", { selected: [4], disabled: [4], excludefromall: [4], value: [1], text: [1] }]]], ["mi-floor-selector", [[0, "mi-floor-selector", { mapsindoors: [8], primaryColor: [1, "primary-color"], floors: [32], currentFloor: [32], floorSelectorClosed: [32], fadeFloorSelectorOnTop: [32], fadeFloorSelectorOnBottom: [32] }]]], ["mi-list-item-category", [[1, "mi-list-item-category", { category: [8], orientation: [513] }]]], ["mi-map-googlemaps", [[1, "mi-map-googlemaps", { gmApiKey: [1, "gm-api-key"], miApiKey: [1, "mi-api-key"], gmOptions: [16], disableExternalLinks: [4, "disable-external-links"], floorSelectorControlPosition: [1, "floor-selector-control-position"], floorIndex: [1537, "floor-index"], myPositionControlPosition: [1, "my-position-control-position"], polygonHighlightOptions: [16], language: [1], polylineOptions: [16], getMapInstance: [64], getMapsIndoorsInstance: [64], getDirectionsServiceInstance: [64], getDirectionsRendererInstance: [64], highlightLocation: [64], clearHighlightLocation: [64] }]]], ["mi-map-mapbox", [[1, "mi-map-mapbox", { accessToken: [1, "access-token"], miApiKey: [1, "mi-api-key"], disableExternalLinks: [4, "disable-external-links"], floorSelectorControlPosition: [1, "floor-selector-control-position"], floorIndex: [1537, "floor-index"], myPositionControlPosition: [1, "my-position-control-position"], polygonHighlightOptions: [16], polylineOptions: [16], zoom: [1537], maxPitch: [1538, "max-pitch"], maxZoom: [1537, "max-zoom"], bearing: [1537], pitch: [1537], language: [1], getMapInstance: [64], getMapsIndoorsInstance: [64], getDirectionsServiceInstance: [64], getDirectionsRendererInstance: [64], highlightLocation: [64], clearHighlightLocation: [64] }]]], ["mi-my-position", [[0, "mi-my-position", { mapsindoors: [8], myPositionOptions: [8, "my-position-options"], positionState: [32], watchPosition: [64] }]]], ["mi-notification", [[1, "mi-notification", { position: [1], duration: [2], push: [64], clearAll: [64] }]]], ["mi-search", [[0, "mi-search", { placeholder: [1], idAttribute: [1, "id-attribute"], dataAttributes: [16], mapsindoors: [4], google: [4], mapbox: [4], language: [1], miFields: [1, "mi-fields"], miTake: [2, "mi-take"], miSkip: [2, "mi-skip"], miOrder: [1, "mi-order"], miCategories: [1, "mi-categories"], miNear: [1, "mi-near"], miVenue: [1, "mi-venue"], gmCountryCode: [1, "gm-country-code"], value: [1537], disabled: [4], sessionToken: [1, "session-token"], userPosition: [1, "user-position"], clear: [64], triggerSearch: [64], setDisplayText: [64], focusInput: [64], getInputField: [64] }]]], ["mi-step-switcher", [[1, "mi-step-switcher", { heading: [1], steps: [16], stepIndex: [514, "step-index"] }]]], ["mi-tab", [[1, "mi-tab", { label: [1], tabFor: [1, "tab-for"] }]]], ["mi-tab-panel", [[1, "mi-tab-panel", { isActive: [32], active: [64] }]]], ["mi-tabs", [[1, "mi-tabs", { active: [2], bordered: [4], tabs: [32] }]]], ["mi-distance_2", [[1, "mi-distance", { meters: [2], unit: [1] }], [1, "mi-icon", { iconName: [1, "icon-name"] }]]], ["mi-route-instructions-step-legacy", [[1, "mi-route-instructions-step-legacy", { step: [1], hideIndoorSubsteps: [4, "hide-indoor-substeps"], fromRouteContext: [1, "from-route-context"], fromTravelMode: [1, "from-travel-mode"], fromTransitStop: [1, "from-transit-stop"], unit: [1], translations: [1], stepData: [32], translationsData: [32], substepsAreOpen: [32] }]]], ["mi-route-instructions-maneuver", [[1, "mi-route-instructions-maneuver", { maneuver: [1], translations: [1], unit: [1], maneuverData: [32], translationsData: [32] }]]], ["mi-scroll-buttons", [[1, "mi-scroll-buttons", { scrollContainerElementRef: [16], scrollLength: [2, "scroll-length"], updateScrollButtons: [64], updateScrollButtonsState: [64] }]]], ["mi-keyboard", [[0, "mi-keyboard", { inputElement: [16], layout: [1], language: [1], clearInputField: [64] }]]], ["mi-route-instructions-maneuver-legacy", [[1, "mi-route-instructions-maneuver-legacy", { maneuver: [1], translations: [1], unit: [1], maneuverData: [32], translationsData: [32] }]]], ["mi-card_2", [[1, "mi-card"], [1, "mi-spinner", { inverse: [4] }]]], ["mi-location-info", [[1, "mi-location-info", { location: [8], level: [1], showExternalId: [4, "show-external-id"] }]]], ["mi-time", [[1, "mi-time", { seconds: [2], translations: [1], translationsData: [32] }]]]], r)), jW = {
17706
17706
  type: "logger",
17707
17707
  log(i) {
17708
17708
  this.output("log", i);
@@ -20645,9 +20645,9 @@ var hL = { exports: {} };
20645
20645
  return I > 0 ? (n[0] = 2 * (_ * f + E * a + y * d - w * c) / I, n[1] = 2 * (y * f + E * c + w * a - _ * d) / I, n[2] = 2 * (w * f + E * d + _ * c - y * a) / I) : (n[0] = 2 * (_ * f + E * a + y * d - w * c), n[1] = 2 * (y * f + E * c + w * a - _ * d), n[2] = 2 * (w * f + E * d + _ * c - y * a)), Yt(t, e, n), t;
20646
20646
  }, Je.getTranslation = function(t, e) {
20647
20647
  return t[0] = e[12], t[1] = e[13], t[2] = e[14], t;
20648
- }, Je.getScaling = Hn, Je.getRotation = function(t, e) {
20648
+ }, Je.getScaling = Un, Je.getRotation = function(t, e) {
20649
20649
  var n = new jt.ARRAY_TYPE(3);
20650
- Hn(n, e);
20650
+ Un(n, e);
20651
20651
  var a = 1 / n[0], c = 1 / n[1], d = 1 / n[2], f = e[0] * a, _ = e[1] * c, y = e[2] * d, w = e[4] * a, E = e[5] * c, I = e[6] * d, M = e[8] * a, L = e[9] * c, D = e[10] * d, N = f + E + D, F = 0;
20652
20652
  return N > 0 ? (F = 2 * Math.sqrt(N + 1), t[3] = 0.25 * F, t[0] = (I - L) / F, t[1] = (M - y) / F, t[2] = (_ - w) / F) : f > E && f > D ? (F = 2 * Math.sqrt(1 + f - E - D), t[3] = (I - L) / F, t[0] = 0.25 * F, t[1] = (_ + w) / F, t[2] = (M + y) / F) : E > D ? (F = 2 * Math.sqrt(1 + E - f - D), t[3] = (M - y) / F, t[0] = (_ + w) / F, t[1] = 0.25 * F, t[2] = (I + L) / F) : (F = 2 * Math.sqrt(1 + D - f - E), t[3] = (_ - w) / F, t[0] = (M + y) / F, t[1] = (I + L) / F, t[2] = 0.25 * F), t;
20653
20653
  }, Je.fromRotationTranslationScale = function(t, e, n, a) {
@@ -20662,7 +20662,7 @@ var hL = { exports: {} };
20662
20662
  }, Je.frustum = function(t, e, n, a, c, d, f) {
20663
20663
  var _ = 1 / (n - e), y = 1 / (c - a), w = 1 / (d - f);
20664
20664
  return t[0] = 2 * d * _, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 2 * d * y, t[6] = 0, t[7] = 0, t[8] = (n + e) * _, t[9] = (c + a) * y, t[10] = (f + d) * w, t[11] = -1, t[12] = 0, t[13] = 0, t[14] = f * d * 2 * w, t[15] = 0, t;
20665
- }, Je.perspectiveNO = Qn, Je.perspectiveZO = function(t, e, n, a, c) {
20665
+ }, Je.perspectiveNO = qn, Je.perspectiveZO = function(t, e, n, a, c) {
20666
20666
  var d, f = 1 / Math.tan(e / 2);
20667
20667
  return t[0] = f / n, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = f, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[11] = -1, t[12] = 0, t[13] = 0, t[15] = 0, c != null && c !== 1 / 0 ? (t[10] = c * (d = 1 / (a - c)), t[14] = c * a * d) : (t[10] = -1, t[14] = -a), t;
20668
20668
  }, Je.perspectiveFromFieldOfView = function(t, e, n, a) {
@@ -20730,11 +20730,11 @@ var hL = { exports: {} };
20730
20730
  var a = e[0], c = e[1], d = e[2], f = e[3], _ = a + a, y = c + c, w = d + d, E = a * _, I = a * y, M = a * w, L = c * y, D = c * w, N = d * w, F = f * _, H = f * y, ee = f * w;
20731
20731
  return t[0] = 1 - (L + N), t[1] = I + ee, t[2] = M - H, t[3] = 0, t[4] = I - ee, t[5] = 1 - (E + N), t[6] = D + F, t[7] = 0, t[8] = M + H, t[9] = D - F, t[10] = 1 - (E + L), t[11] = 0, t[12] = n[0], t[13] = n[1], t[14] = n[2], t[15] = 1, t;
20732
20732
  }
20733
- function Hn(t, e) {
20733
+ function Un(t, e) {
20734
20734
  var n = e[4], a = e[5], c = e[6], d = e[8], f = e[9], _ = e[10];
20735
20735
  return t[0] = Math.hypot(e[0], e[1], e[2]), t[1] = Math.hypot(n, a, c), t[2] = Math.hypot(d, f, _), t;
20736
20736
  }
20737
- function Qn(t, e, n, a, c) {
20737
+ function qn(t, e, n, a, c) {
20738
20738
  var d, f = 1 / Math.tan(e / 2);
20739
20739
  return t[0] = f / n, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = f, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[11] = -1, t[12] = 0, t[13] = 0, t[15] = 0, c != null && c !== 1 / 0 ? (t[10] = (c + a) * (d = 1 / (a - c)), t[14] = 2 * c * a * d) : (t[10] = -1, t[14] = -2 * a), t;
20740
20740
  }
@@ -20745,7 +20745,7 @@ var hL = { exports: {} };
20745
20745
  function _r(t, e, n) {
20746
20746
  return t[0] = e[0] - n[0], t[1] = e[1] - n[1], t[2] = e[2] - n[2], t[3] = e[3] - n[3], t[4] = e[4] - n[4], t[5] = e[5] - n[5], t[6] = e[6] - n[6], t[7] = e[7] - n[7], t[8] = e[8] - n[8], t[9] = e[9] - n[9], t[10] = e[10] - n[10], t[11] = e[11] - n[11], t[12] = e[12] - n[12], t[13] = e[13] - n[13], t[14] = e[14] - n[14], t[15] = e[15] - n[15], t;
20747
20747
  }
20748
- Je.perspective = Qn, Je.ortho = di, Je.mul = wn, Je.sub = _r;
20748
+ Je.perspective = qn, Je.ortho = di, Je.mul = wn, Je.sub = _r;
20749
20749
  var Ot = {}, yt = {};
20750
20750
  function Sn(t) {
20751
20751
  return Sn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -20839,7 +20839,7 @@ var hL = { exports: {} };
20839
20839
  return t;
20840
20840
  if (t === null || Sn(t) !== "object" && typeof t != "function")
20841
20841
  return { default: t };
20842
- var n = Vn(void 0);
20842
+ var n = $n(void 0);
20843
20843
  if (n && n.has(t))
20844
20844
  return n.get(t);
20845
20845
  var a = {}, c = Object.defineProperty && Object.getOwnPropertyDescriptor;
@@ -20850,11 +20850,11 @@ var hL = { exports: {} };
20850
20850
  }
20851
20851
  return a.default = t, n && n.set(t, a), a;
20852
20852
  }(fe);
20853
- function Vn(t) {
20853
+ function $n(t) {
20854
20854
  if (typeof WeakMap != "function")
20855
20855
  return null;
20856
20856
  var e = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
20857
- return (Vn = function(a) {
20857
+ return ($n = function(a) {
20858
20858
  return a ? n : e;
20859
20859
  })(t);
20860
20860
  }
@@ -21163,10 +21163,10 @@ var hL = { exports: {} };
21163
21163
  return q(on, e, c, d), q(Ln, n, a, d), q(t, on, Ln, 2 * d * (1 - d)), t;
21164
21164
  });
21165
21165
  Ot.sqlerp = Bn;
21166
- var En, Yn = (En = Er.create(), function(t, e, n, a) {
21166
+ var En, Xn = (En = Er.create(), function(t, e, n, a) {
21167
21167
  return En[0] = n[0], En[3] = n[1], En[6] = n[2], En[1] = a[0], En[4] = a[1], En[7] = a[2], En[2] = -e[0], En[5] = -e[1], En[8] = -e[2], Se(t, ie(t, En));
21168
21168
  });
21169
- Ot.setAxes = Yn;
21169
+ Ot.setAxes = Xn;
21170
21170
  var Kt = {};
21171
21171
  function Di(t) {
21172
21172
  return Di = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -21194,7 +21194,7 @@ var hL = { exports: {} };
21194
21194
  }, Kt.fromRotation = function(t, e) {
21195
21195
  return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = 0, t[5] = 0, t[6] = 0, t[7] = 0, t;
21196
21196
  }, Kt.fromMat4 = function(t, e) {
21197
- var n = Kn.create();
21197
+ var n = Jn.create();
21198
21198
  rr.getRotation(n, e);
21199
21199
  var a = new fi.ARRAY_TYPE(3);
21200
21200
  return rr.getTranslation(a, e), Ur(t, n, a), t;
@@ -21214,13 +21214,13 @@ var hL = { exports: {} };
21214
21214
  return t[0] = a, t[1] = c, t[2] = d, t[3] = f, t[4] = f * _ + c * w - d * y + E, t[5] = f * y + d * _ - a * w + I, t[6] = f * w + a * y - c * _ + M, t[7] = -a * _ - c * y - d * w + L, t;
21215
21215
  }, Kt.rotateX = function(t, e, n) {
21216
21216
  var a = -e[0], c = -e[1], d = -e[2], f = e[3], _ = e[4], y = e[5], w = e[6], E = e[7], I = _ * f + E * a + y * d - w * c, M = y * f + E * c + w * a - _ * d, L = w * f + E * d + _ * c - y * a, D = E * f - _ * a - y * c - w * d;
21217
- return Kn.rotateX(t, e, n), t[4] = I * (f = t[3]) + D * (a = t[0]) + M * (d = t[2]) - L * (c = t[1]), t[5] = M * f + D * c + L * a - I * d, t[6] = L * f + D * d + I * c - M * a, t[7] = D * f - I * a - M * c - L * d, t;
21217
+ return Jn.rotateX(t, e, n), t[4] = I * (f = t[3]) + D * (a = t[0]) + M * (d = t[2]) - L * (c = t[1]), t[5] = M * f + D * c + L * a - I * d, t[6] = L * f + D * d + I * c - M * a, t[7] = D * f - I * a - M * c - L * d, t;
21218
21218
  }, Kt.rotateY = function(t, e, n) {
21219
21219
  var a = -e[0], c = -e[1], d = -e[2], f = e[3], _ = e[4], y = e[5], w = e[6], E = e[7], I = _ * f + E * a + y * d - w * c, M = y * f + E * c + w * a - _ * d, L = w * f + E * d + _ * c - y * a, D = E * f - _ * a - y * c - w * d;
21220
- return Kn.rotateY(t, e, n), t[4] = I * (f = t[3]) + D * (a = t[0]) + M * (d = t[2]) - L * (c = t[1]), t[5] = M * f + D * c + L * a - I * d, t[6] = L * f + D * d + I * c - M * a, t[7] = D * f - I * a - M * c - L * d, t;
21220
+ return Jn.rotateY(t, e, n), t[4] = I * (f = t[3]) + D * (a = t[0]) + M * (d = t[2]) - L * (c = t[1]), t[5] = M * f + D * c + L * a - I * d, t[6] = L * f + D * d + I * c - M * a, t[7] = D * f - I * a - M * c - L * d, t;
21221
21221
  }, Kt.rotateZ = function(t, e, n) {
21222
21222
  var a = -e[0], c = -e[1], d = -e[2], f = e[3], _ = e[4], y = e[5], w = e[6], E = e[7], I = _ * f + E * a + y * d - w * c, M = y * f + E * c + w * a - _ * d, L = w * f + E * d + _ * c - y * a, D = E * f - _ * a - y * c - w * d;
21223
- return Kn.rotateZ(t, e, n), t[4] = I * (f = t[3]) + D * (a = t[0]) + M * (d = t[2]) - L * (c = t[1]), t[5] = M * f + D * c + L * a - I * d, t[6] = L * f + D * d + I * c - M * a, t[7] = D * f - I * a - M * c - L * d, t;
21223
+ return Jn.rotateZ(t, e, n), t[4] = I * (f = t[3]) + D * (a = t[0]) + M * (d = t[2]) - L * (c = t[1]), t[5] = M * f + D * c + L * a - I * d, t[6] = L * f + D * d + I * c - M * a, t[7] = D * f - I * a - M * c - L * d, t;
21224
21224
  }, Kt.rotateByQuatAppend = function(t, e, n) {
21225
21225
  var a = n[0], c = n[1], d = n[2], f = n[3], _ = e[0], y = e[1], w = e[2], E = e[3];
21226
21226
  return t[0] = _ * f + E * a + y * d - w * c, t[1] = y * f + E * c + w * a - _ * d, t[2] = w * f + E * d + _ * c - y * a, t[3] = E * f - _ * a - y * c - w * d, t[4] = (_ = e[4]) * f + (E = e[7]) * a + (y = e[5]) * d - (w = e[6]) * c, t[5] = y * f + E * c + w * a - _ * d, t[6] = w * f + E * d + _ * c - y * a, t[7] = E * f - _ * a - y * c - w * d, t;
@@ -21264,7 +21264,7 @@ var hL = { exports: {} };
21264
21264
  var n = t[0], a = t[1], c = t[2], d = t[3], f = t[4], _ = t[5], y = t[6], w = t[7], E = e[0], I = e[1], M = e[2], L = e[3], D = e[4], N = e[5], F = e[6], H = e[7];
21265
21265
  return Math.abs(n - E) <= fi.EPSILON * Math.max(1, Math.abs(n), Math.abs(E)) && Math.abs(a - I) <= fi.EPSILON * Math.max(1, Math.abs(a), Math.abs(I)) && Math.abs(c - M) <= fi.EPSILON * Math.max(1, Math.abs(c), Math.abs(M)) && Math.abs(d - L) <= fi.EPSILON * Math.max(1, Math.abs(d), Math.abs(L)) && Math.abs(f - D) <= fi.EPSILON * Math.max(1, Math.abs(f), Math.abs(D)) && Math.abs(_ - N) <= fi.EPSILON * Math.max(1, Math.abs(_), Math.abs(N)) && Math.abs(y - F) <= fi.EPSILON * Math.max(1, Math.abs(y), Math.abs(F)) && Math.abs(w - H) <= fi.EPSILON * Math.max(1, Math.abs(w), Math.abs(H));
21266
21266
  }, Kt.sqrLen = Kt.squaredLength = Kt.len = Kt.length = Kt.dot = Kt.mul = Kt.setReal = Kt.getReal = void 0;
21267
- var fi = pr(fe), Kn = pr(Ot), rr = pr(Je);
21267
+ var fi = pr(fe), Jn = pr(Ot), rr = pr(Je);
21268
21268
  function Oi(t) {
21269
21269
  if (typeof WeakMap != "function")
21270
21270
  return null;
@@ -21300,12 +21300,12 @@ var hL = { exports: {} };
21300
21300
  var a = e[0], c = e[1], d = e[2], f = e[3], _ = n[4], y = n[5], w = n[6], E = n[7], I = e[4], M = e[5], L = e[6], D = e[7], N = n[0], F = n[1], H = n[2], ee = n[3];
21301
21301
  return t[0] = a * ee + f * N + c * H - d * F, t[1] = c * ee + f * F + d * N - a * H, t[2] = d * ee + f * H + a * F - c * N, t[3] = f * ee - a * N - c * F - d * H, t[4] = a * E + f * _ + c * w - d * y + I * ee + D * N + M * H - L * F, t[5] = c * E + f * y + d * _ - a * w + M * ee + D * F + L * N - I * H, t[6] = d * E + f * w + a * y - c * _ + L * ee + D * H + I * F - M * N, t[7] = f * E - a * _ - c * y - d * w + D * ee - I * N - M * F - L * H, t;
21302
21302
  }
21303
- Kt.getReal = Kn.copy, Kt.setReal = Kn.copy, Kt.mul = Sa;
21304
- var nf = Kn.dot;
21303
+ Kt.getReal = Jn.copy, Kt.setReal = Jn.copy, Kt.mul = Sa;
21304
+ var nf = Jn.dot;
21305
21305
  Kt.dot = nf;
21306
- var lg = Kn.length;
21306
+ var lg = Jn.length;
21307
21307
  Kt.length = lg, Kt.len = lg;
21308
- var Ic = Kn.squaredLength;
21308
+ var Ic = Jn.squaredLength;
21309
21309
  Kt.squaredLength = Ic, Kt.sqrLen = Ic;
21310
21310
  var Rn = {};
21311
21311
  function rf(t) {
@@ -21469,8 +21469,8 @@ var hL = { exports: {} };
21469
21469
  o.ad = we.mat4 = dg;
21470
21470
  var fl = ds(Ot);
21471
21471
  o.av = we.quat = fl;
21472
- var qn = ds(Kt);
21473
- we.quat2 = qn;
21472
+ var Wn = ds(Kt);
21473
+ we.quat2 = Wn;
21474
21474
  var T1 = ds(Rn);
21475
21475
  we.vec2 = T1;
21476
21476
  var E1 = ds(yt);
@@ -21612,7 +21612,7 @@ var hL = { exports: {} };
21612
21612
  };
21613
21613
  var Pt = Ae(Wu);
21614
21614
  const gf = Math.PI / 180, Zu = 180 / Math.PI;
21615
- function Wn(t) {
21615
+ function Zn(t) {
21616
21616
  return t * gf;
21617
21617
  }
21618
21618
  function Zr(t) {
@@ -21720,7 +21720,7 @@ var hL = { exports: {} };
21720
21720
  return e;
21721
21721
  }
21722
21722
  function Xr([t, e, n]) {
21723
- const a = Wn(e + 90), c = Wn(n);
21723
+ const a = Zn(e + 90), c = Zn(n);
21724
21724
  return { x: t * Math.cos(a) * Math.sin(c), y: t * Math.sin(a) * Math.sin(c), z: t * Math.cos(c), azimuthal: e, polar: n };
21725
21725
  }
21726
21726
  function Lc() {
@@ -22487,7 +22487,7 @@ var hL = { exports: {} };
22487
22487
  return !!this.bindings[e] || !!this.parent && this.parent.has(e);
22488
22488
  }
22489
22489
  }
22490
- const Zo = { kind: "null" }, Gt = { kind: "number" }, ni = { kind: "string" }, Jn = { kind: "boolean" }, Oo = { kind: "color" }, bl = { kind: "object" }, Fn = { kind: "value" }, jc = { kind: "collator" }, gs = { kind: "formatted" }, Vc = { kind: "resolvedImage" };
22490
+ const Zo = { kind: "null" }, Gt = { kind: "number" }, ni = { kind: "string" }, Qn = { kind: "boolean" }, Oo = { kind: "color" }, bl = { kind: "object" }, Fn = { kind: "value" }, jc = { kind: "collator" }, gs = { kind: "formatted" }, Vc = { kind: "resolvedImage" };
22491
22491
  function ho(t, e) {
22492
22492
  return { kind: "array", itemType: t, N: e };
22493
22493
  }
@@ -22498,7 +22498,7 @@ var hL = { exports: {} };
22498
22498
  }
22499
22499
  return t.kind;
22500
22500
  }
22501
- const L1 = [Zo, Gt, ni, Jn, Oo, gs, bl, ho(Fn), Vc];
22501
+ const L1 = [Zo, Gt, ni, Qn, Oo, gs, bl, ho(Fn), Vc];
22502
22502
  function $c(t, e) {
22503
22503
  if (e.kind === "error")
22504
22504
  return null;
@@ -22608,7 +22608,7 @@ var hL = { exports: {} };
22608
22608
  if (typeof t == "string")
22609
22609
  return ni;
22610
22610
  if (typeof t == "boolean")
22611
- return Jn;
22611
+ return Qn;
22612
22612
  if (typeof t == "number")
22613
22613
  return Gt;
22614
22614
  if (t instanceof ti)
@@ -22674,7 +22674,7 @@ var hL = { exports: {} };
22674
22674
  return this.message;
22675
22675
  }
22676
22676
  }
22677
- const $f = { string: ni, number: Gt, boolean: Jn, object: bl };
22677
+ const $f = { string: ni, number: Gt, boolean: Qn, object: bl };
22678
22678
  class Ko {
22679
22679
  constructor(e, n) {
22680
22680
  this.type = e, this.args = n;
@@ -22833,7 +22833,7 @@ var hL = { exports: {} };
22833
22833
  function Da(t) {
22834
22834
  return t instanceof Number ? "number" : t instanceof String ? "string" : t instanceof Boolean ? "boolean" : Array.isArray(t) ? "array" : t === null ? "null" : typeof t;
22835
22835
  }
22836
- const Gf = { "to-boolean": Jn, "to-color": Oo, "to-number": Gt, "to-string": ni };
22836
+ const Gf = { "to-boolean": Qn, "to-color": Oo, "to-number": Gt, "to-string": ni };
22837
22837
  class _s {
22838
22838
  constructor(e, n) {
22839
22839
  this.type = e, this.args = n;
@@ -23054,10 +23054,10 @@ var hL = { exports: {} };
23054
23054
  const a = e[1];
23055
23055
  if (typeof a != "object" || Array.isArray(a))
23056
23056
  return n.error("Collator options argument must be an object.");
23057
- const c = n.parse(a["case-sensitive"] !== void 0 && a["case-sensitive"], 1, Jn);
23057
+ const c = n.parse(a["case-sensitive"] !== void 0 && a["case-sensitive"], 1, Qn);
23058
23058
  if (!c)
23059
23059
  return null;
23060
- const d = n.parse(a["diacritic-sensitive"] !== void 0 && a["diacritic-sensitive"], 1, Jn);
23060
+ const d = n.parse(a["diacritic-sensitive"] !== void 0 && a["diacritic-sensitive"], 1, Qn);
23061
23061
  if (!d)
23062
23062
  return null;
23063
23063
  let f = null;
@@ -23117,7 +23117,7 @@ var hL = { exports: {} };
23117
23117
  const a = t[0] - e[0], c = t[1] - e[1], d = t[0] - n[0], f = t[1] - n[1];
23118
23118
  return a * f - d * c == 0 && a * d <= 0 && c * f <= 0;
23119
23119
  }
23120
- function Zn(t, e, n = !1) {
23120
+ function Yn(t, e, n = !1) {
23121
23121
  let a = !1;
23122
23122
  for (let _ = 0, y = e.length; _ < y; _++) {
23123
23123
  const w = e[_];
@@ -23146,7 +23146,7 @@ var hL = { exports: {} };
23146
23146
  }
23147
23147
  function gh(t, e) {
23148
23148
  for (let n = 0; n < e.length; n++)
23149
- if (Zn(t, e[n]))
23149
+ if (Yn(t, e[n]))
23150
23150
  return !0;
23151
23151
  return !1;
23152
23152
  }
@@ -23159,7 +23159,7 @@ var hL = { exports: {} };
23159
23159
  }
23160
23160
  function Qc(t, e) {
23161
23161
  for (let n = 0; n < t.length; ++n)
23162
- if (!Zn(t[n], e))
23162
+ if (!Yn(t[n], e))
23163
23163
  return !1;
23164
23164
  for (let n = 0; n < t.length - 1; ++n)
23165
23165
  if (_h(t[n], t[n + 1], e))
@@ -23234,7 +23234,7 @@ var hL = { exports: {} };
23234
23234
  }
23235
23235
  class Ps {
23236
23236
  constructor(e, n) {
23237
- this.type = Jn, this.geojson = e, this.geometries = n;
23237
+ this.type = Qn, this.geojson = e, this.geometries = n;
23238
23238
  }
23239
23239
  static parse(e, n) {
23240
23240
  if (e.length !== 2)
@@ -23268,7 +23268,7 @@ var hL = { exports: {} };
23268
23268
  if (!Kc(c, d))
23269
23269
  return !1;
23270
23270
  for (const w of y)
23271
- if (!Zn(w, _))
23271
+ if (!Yn(w, _))
23272
23272
  return !1;
23273
23273
  }
23274
23274
  if (a.type === "MultiPolygon") {
@@ -23595,7 +23595,7 @@ var hL = { exports: {} };
23595
23595
  return d;
23596
23596
  }
23597
23597
  function Qo(t, e, n) {
23598
- if (Zn(t, e, !0))
23598
+ if (Yn(t, e, !0))
23599
23599
  return 0;
23600
23600
  let a = 1 / 0;
23601
23601
  for (const c of e) {
@@ -23611,7 +23611,7 @@ var hL = { exports: {} };
23611
23611
  if (!fo(e, t.length))
23612
23612
  return NaN;
23613
23613
  for (let d = e[0]; d <= e[1]; ++d)
23614
- if (Zn(t[d], n, !0))
23614
+ if (Yn(t[d], n, !0))
23615
23615
  return 0;
23616
23616
  let c = 1 / 0;
23617
23617
  for (let d = e[0]; d < e[1]; ++d)
@@ -23626,7 +23626,7 @@ var hL = { exports: {} };
23626
23626
  function $g(t, e) {
23627
23627
  for (const n of t)
23628
23628
  for (let a = 0; a <= n.length - 1; ++a)
23629
- if (Zn(n[a], e, !0))
23629
+ if (Yn(n[a], e, !0))
23630
23630
  return !0;
23631
23631
  return !1;
23632
23632
  }
@@ -24369,13 +24369,13 @@ var hL = { exports: {} };
24369
24369
  }
24370
24370
  class up {
24371
24371
  constructor(e, n) {
24372
- this.type = Jn, this.needle = e, this.haystack = n;
24372
+ this.type = Qn, this.needle = e, this.haystack = n;
24373
24373
  }
24374
24374
  static parse(e, n) {
24375
24375
  if (e.length !== 3)
24376
24376
  return n.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
24377
24377
  const a = n.parse(e[1], 1, Fn), c = n.parse(e[2], 2, Fn);
24378
- return a && c ? ph(a.type, [Jn, ni, Gt, Zo, Fn]) ? new up(a, c) : n.error(`Expected first argument to be of type boolean, string, number or null, but found ${or(a.type)} instead`) : null;
24378
+ return a && c ? ph(a.type, [Qn, ni, Gt, Zo, Fn]) ? new up(a, c) : n.error(`Expected first argument to be of type boolean, string, number or null, but found ${or(a.type)} instead`) : null;
24379
24379
  }
24380
24380
  evaluate(e) {
24381
24381
  const n = this.needle.evaluate(e), a = this.haystack.evaluate(e);
@@ -24407,7 +24407,7 @@ var hL = { exports: {} };
24407
24407
  const a = n.parse(e[1], 1, Fn), c = n.parse(e[2], 2, Fn);
24408
24408
  if (!a || !c)
24409
24409
  return null;
24410
- if (!ph(a.type, [Jn, ni, Gt, Zo, Fn]))
24410
+ if (!ph(a.type, [Qn, ni, Gt, Zo, Fn]))
24411
24411
  return n.error(`Expected first argument to be of type boolean, string, number or null, but found ${or(a.type)} instead`);
24412
24412
  if (e.length === 4) {
24413
24413
  const d = n.parse(e[3], 3, Gt);
@@ -24522,7 +24522,7 @@ var hL = { exports: {} };
24522
24522
  n.expectedType && n.expectedType.kind !== "value" && (a = n.expectedType);
24523
24523
  const c = [];
24524
24524
  for (let f = 1; f < e.length - 1; f += 2) {
24525
- const _ = n.parse(e[f], f, Jn);
24525
+ const _ = n.parse(e[f], f, Qn);
24526
24526
  if (!_)
24527
24527
  return null;
24528
24528
  const y = n.parse(e[f + 1], f + 1, a);
@@ -24606,7 +24606,7 @@ var hL = { exports: {} };
24606
24606
  const a = t !== "==" && t !== "!=";
24607
24607
  return class dL {
24608
24608
  constructor(d, f, _) {
24609
- this.type = Jn, this.lhs = d, this.rhs = f, this.collator = _, this.hasUntypedArgument = d.type.kind === "value" || f.type.kind === "value";
24609
+ this.type = Qn, this.lhs = d, this.rhs = f, this.collator = _, this.hasUntypedArgument = d.type.kind === "value" || f.type.kind === "value";
24610
24610
  }
24611
24611
  static parse(d, f) {
24612
24612
  if (d.length !== 3 && d.length !== 4)
@@ -24906,7 +24906,7 @@ var hL = { exports: {} };
24906
24906
  }
24907
24907
  Kr.register(Dl, { error: [{ kind: "error" }, [ni], (t, [e]) => {
24908
24908
  throw new br(e.evaluate(t));
24909
- }], typeof: [ni, [Fn], (t, [e]) => or(ur(e.evaluate(t)))], "to-rgba": [ho(Gt, 4), [Oo], (t, [e]) => e.evaluate(t).toRenderColor(null).toArray()], rgb: [Oo, [Gt, Gt, Gt], n_], rgba: [Oo, [Gt, Gt, Gt, Gt], n_], hsl: [Oo, [Gt, Gt, Gt], i_], hsla: [Oo, [Gt, Gt, Gt, Gt], i_], has: { type: Jn, overloads: [[[ni], (t, [e]) => r_(e.evaluate(t), t.properties())], [[ni, bl], (t, [e, n]) => r_(e.evaluate(t), n.evaluate(t))]] }, get: { type: Fn, overloads: [[[ni], (t, [e]) => vp(e.evaluate(t), t.properties())], [[ni, bl], (t, [e, n]) => vp(e.evaluate(t), n.evaluate(t))]] }, "feature-state": [Fn, [ni], (t, [e]) => vp(e.evaluate(t), t.featureState || {})], properties: [bl, [], (t) => t.properties()], "geometry-type": [ni, [], (t) => t.geometryType()], id: [Fn, [], (t) => t.id()], zoom: [Gt, [], (t) => t.globals.zoom], pitch: [Gt, [], (t) => t.globals.pitch || 0], "distance-from-center": [Gt, [], (t) => t.distanceFromCenter()], "measure-light": [Gt, [ni], (t, [e]) => t.measureLight(e.evaluate(t))], "heatmap-density": [Gt, [], (t) => t.globals.heatmapDensity || 0], "line-progress": [Gt, [], (t) => t.globals.lineProgress || 0], "raster-value": [Gt, [], (t) => t.globals.rasterValue || 0], "raster-particle-speed": [Gt, [], (t) => t.globals.rasterParticleSpeed || 0], "sky-radial-progress": [Gt, [], (t) => t.globals.skyRadialProgress || 0], accumulated: [Fn, [], (t) => t.globals.accumulated === void 0 ? null : t.globals.accumulated], "+": [Gt, ja(Gt), (t, e) => {
24909
+ }], typeof: [ni, [Fn], (t, [e]) => or(ur(e.evaluate(t)))], "to-rgba": [ho(Gt, 4), [Oo], (t, [e]) => e.evaluate(t).toRenderColor(null).toArray()], rgb: [Oo, [Gt, Gt, Gt], n_], rgba: [Oo, [Gt, Gt, Gt, Gt], n_], hsl: [Oo, [Gt, Gt, Gt], i_], hsla: [Oo, [Gt, Gt, Gt, Gt], i_], has: { type: Qn, overloads: [[[ni], (t, [e]) => r_(e.evaluate(t), t.properties())], [[ni, bl], (t, [e, n]) => r_(e.evaluate(t), n.evaluate(t))]] }, get: { type: Fn, overloads: [[[ni], (t, [e]) => vp(e.evaluate(t), t.properties())], [[ni, bl], (t, [e, n]) => vp(e.evaluate(t), n.evaluate(t))]] }, "feature-state": [Fn, [ni], (t, [e]) => vp(e.evaluate(t), t.featureState || {})], properties: [bl, [], (t) => t.properties()], "geometry-type": [ni, [], (t) => t.geometryType()], id: [Fn, [], (t) => t.id()], zoom: [Gt, [], (t) => t.globals.zoom], pitch: [Gt, [], (t) => t.globals.pitch || 0], "distance-from-center": [Gt, [], (t) => t.distanceFromCenter()], "measure-light": [Gt, [ni], (t, [e]) => t.measureLight(e.evaluate(t))], "heatmap-density": [Gt, [], (t) => t.globals.heatmapDensity || 0], "line-progress": [Gt, [], (t) => t.globals.lineProgress || 0], "raster-value": [Gt, [], (t) => t.globals.rasterValue || 0], "raster-particle-speed": [Gt, [], (t) => t.globals.rasterParticleSpeed || 0], "sky-radial-progress": [Gt, [], (t) => t.globals.skyRadialProgress || 0], accumulated: [Fn, [], (t) => t.globals.accumulated === void 0 ? null : t.globals.accumulated], "+": [Gt, ja(Gt), (t, e) => {
24910
24910
  let n = 0;
24911
24911
  for (const a of e)
24912
24912
  n += a.evaluate(t);
@@ -24919,31 +24919,31 @@ var hL = { exports: {} };
24919
24919
  }], "-": { type: Gt, overloads: [[[Gt, Gt], (t, [e, n]) => e.evaluate(t) - n.evaluate(t)], [[Gt], (t, [e]) => -e.evaluate(t)]] }, "/": [Gt, [Gt, Gt], (t, [e, n]) => e.evaluate(t) / n.evaluate(t)], "%": [Gt, [Gt, Gt], (t, [e, n]) => e.evaluate(t) % n.evaluate(t)], ln2: [Gt, [], () => Math.LN2], pi: [Gt, [], () => Math.PI], e: [Gt, [], () => Math.E], "^": [Gt, [Gt, Gt], (t, [e, n]) => Math.pow(e.evaluate(t), n.evaluate(t))], sqrt: [Gt, [Gt], (t, [e]) => Math.sqrt(e.evaluate(t))], log10: [Gt, [Gt], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN10], ln: [Gt, [Gt], (t, [e]) => Math.log(e.evaluate(t))], log2: [Gt, [Gt], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN2], sin: [Gt, [Gt], (t, [e]) => Math.sin(e.evaluate(t))], cos: [Gt, [Gt], (t, [e]) => Math.cos(e.evaluate(t))], tan: [Gt, [Gt], (t, [e]) => Math.tan(e.evaluate(t))], asin: [Gt, [Gt], (t, [e]) => Math.asin(e.evaluate(t))], acos: [Gt, [Gt], (t, [e]) => Math.acos(e.evaluate(t))], atan: [Gt, [Gt], (t, [e]) => Math.atan(e.evaluate(t))], min: [Gt, ja(Gt), (t, e) => Math.min(...e.map((n) => n.evaluate(t)))], max: [Gt, ja(Gt), (t, e) => Math.max(...e.map((n) => n.evaluate(t)))], abs: [Gt, [Gt], (t, [e]) => Math.abs(e.evaluate(t))], round: [Gt, [Gt], (t, [e]) => {
24920
24920
  const n = e.evaluate(t);
24921
24921
  return n < 0 ? -Math.round(-n) : Math.round(n);
24922
- }], floor: [Gt, [Gt], (t, [e]) => Math.floor(e.evaluate(t))], ceil: [Gt, [Gt], (t, [e]) => Math.ceil(e.evaluate(t))], "filter-==": [Jn, [ni, Fn], (t, [e, n]) => t.properties()[e.value] === n.value], "filter-id-==": [Jn, [Fn], (t, [e]) => t.id() === e.value], "filter-type-==": [Jn, [ni], (t, [e]) => t.geometryType() === e.value], "filter-<": [Jn, [ni, Fn], (t, [e, n]) => {
24922
+ }], floor: [Gt, [Gt], (t, [e]) => Math.floor(e.evaluate(t))], ceil: [Gt, [Gt], (t, [e]) => Math.ceil(e.evaluate(t))], "filter-==": [Qn, [ni, Fn], (t, [e, n]) => t.properties()[e.value] === n.value], "filter-id-==": [Qn, [Fn], (t, [e]) => t.id() === e.value], "filter-type-==": [Qn, [ni], (t, [e]) => t.geometryType() === e.value], "filter-<": [Qn, [ni, Fn], (t, [e, n]) => {
24923
24923
  const a = t.properties()[e.value], c = n.value;
24924
24924
  return typeof a == typeof c && a < c;
24925
- }], "filter-id-<": [Jn, [Fn], (t, [e]) => {
24925
+ }], "filter-id-<": [Qn, [Fn], (t, [e]) => {
24926
24926
  const n = t.id(), a = e.value;
24927
24927
  return typeof n == typeof a && n < a;
24928
- }], "filter->": [Jn, [ni, Fn], (t, [e, n]) => {
24928
+ }], "filter->": [Qn, [ni, Fn], (t, [e, n]) => {
24929
24929
  const a = t.properties()[e.value], c = n.value;
24930
24930
  return typeof a == typeof c && a > c;
24931
- }], "filter-id->": [Jn, [Fn], (t, [e]) => {
24931
+ }], "filter-id->": [Qn, [Fn], (t, [e]) => {
24932
24932
  const n = t.id(), a = e.value;
24933
24933
  return typeof n == typeof a && n > a;
24934
- }], "filter-<=": [Jn, [ni, Fn], (t, [e, n]) => {
24934
+ }], "filter-<=": [Qn, [ni, Fn], (t, [e, n]) => {
24935
24935
  const a = t.properties()[e.value], c = n.value;
24936
24936
  return typeof a == typeof c && a <= c;
24937
- }], "filter-id-<=": [Jn, [Fn], (t, [e]) => {
24937
+ }], "filter-id-<=": [Qn, [Fn], (t, [e]) => {
24938
24938
  const n = t.id(), a = e.value;
24939
24939
  return typeof n == typeof a && n <= a;
24940
- }], "filter->=": [Jn, [ni, Fn], (t, [e, n]) => {
24940
+ }], "filter->=": [Qn, [ni, Fn], (t, [e, n]) => {
24941
24941
  const a = t.properties()[e.value], c = n.value;
24942
24942
  return typeof a == typeof c && a >= c;
24943
- }], "filter-id->=": [Jn, [Fn], (t, [e]) => {
24943
+ }], "filter-id->=": [Qn, [Fn], (t, [e]) => {
24944
24944
  const n = t.id(), a = e.value;
24945
24945
  return typeof n == typeof a && n >= a;
24946
- }], "filter-has": [Jn, [Fn], (t, [e]) => e.value in t.properties()], "filter-has-id": [Jn, [], (t) => t.id() !== null && t.id() !== void 0], "filter-type-in": [Jn, [ho(ni)], (t, [e]) => e.value.indexOf(t.geometryType()) >= 0], "filter-id-in": [Jn, [ho(Fn)], (t, [e]) => e.value.indexOf(t.id()) >= 0], "filter-in-small": [Jn, [ni, ho(Fn)], (t, [e, n]) => n.value.indexOf(t.properties()[e.value]) >= 0], "filter-in-large": [Jn, [ni, ho(Fn)], (t, [e, n]) => function(a, c, d, f) {
24946
+ }], "filter-has": [Qn, [Fn], (t, [e]) => e.value in t.properties()], "filter-has-id": [Qn, [], (t) => t.id() !== null && t.id() !== void 0], "filter-type-in": [Qn, [ho(ni)], (t, [e]) => e.value.indexOf(t.geometryType()) >= 0], "filter-id-in": [Qn, [ho(Fn)], (t, [e]) => e.value.indexOf(t.id()) >= 0], "filter-in-small": [Qn, [ni, ho(Fn)], (t, [e, n]) => n.value.indexOf(t.properties()[e.value]) >= 0], "filter-in-large": [Qn, [ni, ho(Fn)], (t, [e, n]) => function(a, c, d, f) {
24947
24947
  for (; d <= f; ) {
24948
24948
  const _ = d + f >> 1;
24949
24949
  if (c[_] === a)
@@ -24951,17 +24951,17 @@ var hL = { exports: {} };
24951
24951
  c[_] > a ? f = _ - 1 : d = _ + 1;
24952
24952
  }
24953
24953
  return !1;
24954
- }(t.properties()[e.value], n.value, 0, n.value.length - 1)], all: { type: Jn, overloads: [[[Jn, Jn], (t, [e, n]) => e.evaluate(t) && n.evaluate(t)], [ja(Jn), (t, e) => {
24954
+ }(t.properties()[e.value], n.value, 0, n.value.length - 1)], all: { type: Qn, overloads: [[[Qn, Qn], (t, [e, n]) => e.evaluate(t) && n.evaluate(t)], [ja(Qn), (t, e) => {
24955
24955
  for (const n of e)
24956
24956
  if (!n.evaluate(t))
24957
24957
  return !1;
24958
24958
  return !0;
24959
- }]] }, any: { type: Jn, overloads: [[[Jn, Jn], (t, [e, n]) => e.evaluate(t) || n.evaluate(t)], [ja(Jn), (t, e) => {
24959
+ }]] }, any: { type: Qn, overloads: [[[Qn, Qn], (t, [e, n]) => e.evaluate(t) || n.evaluate(t)], [ja(Qn), (t, e) => {
24960
24960
  for (const n of e)
24961
24961
  if (n.evaluate(t))
24962
24962
  return !0;
24963
24963
  return !1;
24964
- }]] }, "!": [Jn, [Jn], (t, [e]) => !e.evaluate(t)], "is-supported-script": [Jn, [ni], (t, [e]) => {
24964
+ }]] }, "!": [Qn, [Qn], (t, [e]) => !e.evaluate(t)], "is-supported-script": [Qn, [ni], (t, [e]) => {
24965
24965
  const n = t.globals && t.globals.isSupportedScript;
24966
24966
  return !n || n(e.evaluate(t));
24967
24967
  }], upcase: [ni, [ni], (t, [e]) => e.evaluate(t).toUpperCase()], downcase: [ni, [ni], (t, [e]) => e.evaluate(t).toLowerCase()], concat: [ni, ja(Fn), (t, e) => e.map((n) => Xo(n.evaluate(t))).join("")], "resolved-locale": [ni, [jc], (t, [e]) => e.evaluate(t).resolvedLocale()], random: [Gt, [Gt, Gt, Fn], (t, e) => {
@@ -25013,7 +25013,7 @@ var hL = { exports: {} };
25013
25013
  }
25014
25014
  function G(t, e, n, a) {
25015
25015
  const c = new wh(Dl, [], e ? function(f) {
25016
- const _ = { color: Oo, string: ni, number: Gt, enum: ni, boolean: Jn, formatted: gs, resolvedImage: Vc };
25016
+ const _ = { color: Oo, string: ni, number: Gt, enum: ni, boolean: Qn, formatted: gs, resolvedImage: Vc };
25017
25017
  return f.type === "array" ? ho(_[f.value] || Fn, f.length) : _[f.type];
25018
25018
  }(e) : void 0, void 0, void 0, n, a), d = c.parse(t, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
25019
25019
  return d ? o_(new B(d, e, n, a)) : Va(c.errors);
@@ -25280,7 +25280,7 @@ var hL = { exports: {} };
25280
25280
  function fn() {
25281
25281
  vn.fire(new So("pluginStateChange", { pluginStatus: Ye, pluginURL: qt }));
25282
25282
  }
25283
- const vn = new La(), $n = function() {
25283
+ const vn = new La(), Gn = function() {
25284
25284
  return Ye;
25285
25285
  }, ki = function() {
25286
25286
  if (Ye !== It || !qt)
@@ -25288,9 +25288,9 @@ var hL = { exports: {} };
25288
25288
  Ye = Bt, fn(), qt && Xs({ url: qt }, (t) => {
25289
25289
  t ? Mn(t) : (Ye = At, fn());
25290
25290
  });
25291
- }, Un = { applyArabicShaping: null, processBidirectionalText: null, processStyledBidirectionalText: null, isLoaded: () => Ye === At || Un.applyArabicShaping != null, isLoading: () => Ye === Bt, setState(t) {
25291
+ }, jn = { applyArabicShaping: null, processBidirectionalText: null, processStyledBidirectionalText: null, isLoaded: () => Ye === At || jn.applyArabicShaping != null, isLoading: () => Ye === Bt, setState(t) {
25292
25292
  Ye = t.pluginStatus, qt = t.pluginURL;
25293
- }, isParsed: () => Un.applyArabicShaping != null && Un.processBidirectionalText != null && Un.processStyledBidirectionalText != null, getPluginURL: () => qt };
25293
+ }, isParsed: () => jn.applyArabicShaping != null && jn.processBidirectionalText != null && jn.processStyledBidirectionalText != null, getPluginURL: () => qt };
25294
25294
  class _n {
25295
25295
  constructor(e, n) {
25296
25296
  this.zoom = e, n ? (this.now = n.now, this.fadeDuration = n.fadeDuration, this.transition = n.transition, this.pitch = n.pitch, this.brightness = n.brightness) : (this.now = 0, this.fadeDuration = 0, this.transition = {}, this.pitch = 0, this.brightness = 0);
@@ -25301,7 +25301,7 @@ var hL = { exports: {} };
25301
25301
  if (!et(c.charCodeAt(0), a))
25302
25302
  return !1;
25303
25303
  return !0;
25304
- }(e, Un.isLoaded());
25304
+ }(e, jn.isLoaded());
25305
25305
  }
25306
25306
  }
25307
25307
  class xi {
@@ -25339,7 +25339,7 @@ var hL = { exports: {} };
25339
25339
  return new Tn(this.property, this.value, null, {}, 0);
25340
25340
  }
25341
25341
  }
25342
- class Gn {
25342
+ class Hn {
25343
25343
  constructor(e, n, a) {
25344
25344
  this._properties = e, this._values = Object.create(e.defaultTransitionablePropertyValues), this._scope = n, this._options = a, this.isConfigDependent = !1;
25345
25345
  }
@@ -25723,7 +25723,7 @@ ${JSON.stringify(n, null, 2)}
25723
25723
  class Gr extends La {
25724
25724
  constructor(e, n, a, c, d) {
25725
25725
  if (super(), this.id = e.id, this.fqid = Mh(this.id, a), this.type = e.type, this.scope = a, this.lut = c, this.options = d, this._featureFilter = { filter: () => !0, needGeometry: !1, needFeature: !1 }, this._filterCompiled = !1, this.isConfigDependent = !1, e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && e.type !== "sky" && e.type !== "slot" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter), e.slot && (this.slot = e.slot), n.layout && (this._unevaluatedLayout = new Xi(n.layout, this.scope, d), this.isConfigDependent = this.isConfigDependent || this._unevaluatedLayout.isConfigDependent), n.paint)) {
25726
- this._transitionablePaint = new Gn(n.paint, this.scope, d);
25726
+ this._transitionablePaint = new Hn(n.paint, this.scope, d);
25727
25727
  for (const f in e.paint)
25728
25728
  this.setPaintProperty(f, e.paint[f]);
25729
25729
  for (const f in e.layout)
@@ -27120,10 +27120,10 @@ ${JSON.stringify(n, null, 2)}
27120
27120
  J(Ep, "ConstantBinder"), J(Lh, "PatternConstantBinder"), J(Wa, "SourceExpressionBinder"), J($l, "PatternCompositeBinder"), J(Os, "CompositeExpressionBinder"), J(lu, "ProgramConfiguration", { omit: ["_buffers"] }), J(Gl, "ProgramConfigurationSet");
27121
27121
  const go = St / Math.PI / 2, uv = 5, oS = 6, wk = 16383, kh = 64, hv = [kh, 32, 16], xs = -go, bs = go;
27122
27122
  function Dh(t, e, n, a = go) {
27123
- return n = Wn(n), [t * Math.sin(n) * a, -e * a, t * Math.cos(n) * a];
27123
+ return n = Zn(n), [t * Math.sin(n) * a, -e * a, t * Math.cos(n) * a];
27124
27124
  }
27125
27125
  function cu(t, e, n) {
27126
- return Dh(Math.cos(Wn(t)), Math.sin(Wn(t)), e, n);
27126
+ return Dh(Math.cos(Zn(t)), Math.sin(Zn(t)), e, n);
27127
27127
  }
27128
27128
  const Oh = 63710088e-1, dv = 2 * Math.PI * Oh;
27129
27129
  class ei {
@@ -27371,7 +27371,7 @@ ${JSON.stringify(n, null, 2)}
27371
27371
  }
27372
27372
  const sr = 85.051129;
27373
27373
  function cS(t) {
27374
- return Math.cos(Wn(Cn(t, -sr, sr)));
27374
+ return Math.cos(Zn(Cn(t, -sr, sr)));
27375
27375
  }
27376
27376
  function hu(t, e) {
27377
27377
  const n = Cn(e, Ek, Ck), a = Math.pow(2, n);
@@ -27974,7 +27974,7 @@ ${JSON.stringify(n, null, 2)}
27974
27974
  te = H >= 0 ? 1 : 3;
27975
27975
  else {
27976
27976
  te = ee >= 0 ? 0 : 2;
27977
- const Oe = [d[4] * c, d[5] * c, d[6] * c], He = -Math.sin(Wn(ee >= 0 ? f.getSouth() : f.getNorth())) * go;
27977
+ const Oe = [d[4] * c, d[5] * c, d[6] * c], He = -Math.sin(Zn(ee >= 0 ? f.getSouth() : f.getNorth())) * go;
27978
27978
  o._.scaleAndAdd(I, I, Oe, He);
27979
27979
  }
27980
27980
  const ne = _[te], he = _[(te + 1) % 4], ce = new Nk(ne, he, I), be = [Ev(ce, 0) || ne[0], Ev(ce, 1) || ne[1], Ev(ce, 2) || ne[2]], Ee = Xa(t.zoom);
@@ -27999,7 +27999,7 @@ ${JSON.stringify(n, null, 2)}
27999
27999
  return new Hl(d, f);
28000
28000
  }
28001
28001
  function Cv(t, e = go) {
28002
- const n = Wn(t.getNorth()), a = Wn(t.getSouth()), c = Math.cos(n), d = Math.cos(a), f = Math.sin(n), _ = Math.sin(a), y = t.getWest(), w = t.getEast();
28002
+ const n = Zn(t.getNorth()), a = Zn(t.getSouth()), c = Math.cos(n), d = Math.cos(a), f = Math.sin(n), _ = Math.sin(a), y = t.getWest(), w = t.getEast();
28003
28003
  return [Dh(d, _, y, e), Dh(d, _, w, e), Dh(c, f, w, e), Dh(c, f, y, e)];
28004
28004
  }
28005
28005
  function Mp(t, e, n, a) {
@@ -28027,7 +28027,7 @@ ${JSON.stringify(n, null, 2)}
28027
28027
  }
28028
28028
  function MS(t, e, n, a, c) {
28029
28029
  const d = Av(n), f = [t, e, -n / (2 * Math.PI)], _ = o.ad.identity(new Float64Array(16));
28030
- return o.ad.translate(_, _, f), o.ad.scale(_, _, [d, d, d]), o.ad.rotateX(_, _, Wn(-c)), o.ad.rotateY(_, _, Wn(-a)), _;
28030
+ return o.ad.translate(_, _, f), o.ad.scale(_, _, [d, d, d]), o.ad.rotateX(_, _, Zn(-c)), o.ad.rotateY(_, _, Zn(-a)), _;
28031
28031
  }
28032
28032
  function Xa(t) {
28033
28033
  return Pc(uv, oS, t);
@@ -28046,7 +28046,7 @@ ${JSON.stringify(n, null, 2)}
28046
28046
  function Mv(t, e) {
28047
28047
  return RS(t, e) > Math.PI / 2 * 1.01;
28048
28048
  }
28049
- const PS = Wn(85), Bk = Math.cos(PS), Fk = Math.sin(PS), Uk = o.ad.create(), LS = (t) => {
28049
+ const PS = Zn(85), Bk = Math.cos(PS), Fk = Math.sin(PS), Uk = o.ad.create(), LS = (t) => {
28050
28050
  const e = [];
28051
28051
  return t.paint.get("circle-pitch-alignment") === "map" && e.push("PITCH_WITH_MAP"), t.paint.get("circle-pitch-scale") === "map" && e.push("SCALE_WITH_MAP"), e;
28052
28052
  };
@@ -29472,27 +29472,27 @@ ${JSON.stringify(n, null, 2)}
29472
29472
  he && (mt = In.sub(an)._perp()._unit(), sn = !sn);
29473
29473
  continue;
29474
29474
  }
29475
- const gn = an.sub(vt)._perp(), Pn = gn.x / (Math.abs(gn.x) + Math.abs(gn.y)), An = gn.y > 0 ? 1 : 0, jn = vt.dist(an);
29476
- if (Jt + jn > 32768 && (Jt = 0), he) {
29475
+ const gn = an.sub(vt)._perp(), Pn = gn.x / (Math.abs(gn.x) + Math.abs(gn.y)), An = gn.y > 0 ? 1 : 0, Vn = vt.dist(an);
29476
+ if (Jt + Vn > 32768 && (Jt = 0), he) {
29477
29477
  xt = In.sub(an)._perp()._unit();
29478
29478
  let ii = _T(vt, an, In, gT(mt, xt), he);
29479
29479
  isNaN(ii) && (ii = 0);
29480
- const Xn = an.sub(vt)._unit();
29481
- vt = vt.add(Xn.mult(_t))._round(), an = an.add(Xn.mult(-ii))._round(), _t = ii, mt = xt, F && this.zoom >= 17 && (be(ht, vt) || ht.push(vt), be(ht, an) || ht.push(an));
29480
+ const Kn = an.sub(vt)._unit();
29481
+ vt = vt.add(Kn.mult(_t))._round(), an = an.add(Kn.mult(-ii))._round(), _t = ii, mt = xt, F && this.zoom >= 17 && (be(ht, vt) || ht.push(vt), be(ht, an) || ht.push(an));
29482
29482
  }
29483
29483
  const pn = tt.vertexLength, vi = qe.length > 4 && vT(vt, an, In);
29484
29484
  let gi = xT(Jt, ct, sn);
29485
- if (zp(this.layoutVertexArray, vt.x, vt.y, Pn, An, 0, 0, gi), zp(this.layoutVertexArray, vt.x, vt.y, Pn, An, 0, 1, gi), Jt += jn, gi = xT(Jt, vi, !sn), ct = vi, zp(this.layoutVertexArray, an.x, an.y, Pn, An, 0, 0, gi), zp(this.layoutVertexArray, an.x, an.y, Pn, An, 0, 1, gi), tt.vertexLength += 4, this.indexArray.emplaceBack(pn + 0, pn + 1, pn + 2), this.indexArray.emplaceBack(pn + 1, pn + 3, pn + 2), tt.primitiveLength += 2, he) {
29486
- const ii = He + (en === 1 ? qe.length - 2 : en - 2), Xn = en === 1 ? He : ii + 1;
29487
- if (this.indexArray.emplaceBack(pn + 1, ii, pn + 3), this.indexArray.emplaceBack(ii, Xn, pn + 3), tt.primitiveLength += 2, Ut === void 0 && (Ut = pn), !Fv(In, qe[en], Oe)) {
29485
+ if (zp(this.layoutVertexArray, vt.x, vt.y, Pn, An, 0, 0, gi), zp(this.layoutVertexArray, vt.x, vt.y, Pn, An, 0, 1, gi), Jt += Vn, gi = xT(Jt, vi, !sn), ct = vi, zp(this.layoutVertexArray, an.x, an.y, Pn, An, 0, 0, gi), zp(this.layoutVertexArray, an.x, an.y, Pn, An, 0, 1, gi), tt.vertexLength += 4, this.indexArray.emplaceBack(pn + 0, pn + 1, pn + 2), this.indexArray.emplaceBack(pn + 1, pn + 3, pn + 2), tt.primitiveLength += 2, he) {
29486
+ const ii = He + (en === 1 ? qe.length - 2 : en - 2), Kn = en === 1 ? He : ii + 1;
29487
+ if (this.indexArray.emplaceBack(pn + 1, ii, pn + 3), this.indexArray.emplaceBack(ii, Kn, pn + 3), tt.primitiveLength += 2, Ut === void 0 && (Ut = pn), !Fv(In, qe[en], Oe)) {
29488
29488
  const ri = en === qe.length - 1 ? Ut : tt.vertexLength;
29489
- this.indexArray.emplaceBack(pn + 2, pn + 3, ri), this.indexArray.emplaceBack(pn + 3, ri + 1, ri), this.indexArray.emplaceBack(pn + 3, Xn, ri + 1), tt.primitiveLength += 3;
29489
+ this.indexArray.emplaceBack(pn + 2, pn + 3, ri), this.indexArray.emplaceBack(pn + 3, ri + 1, ri), this.indexArray.emplaceBack(pn + 3, Kn, ri + 1), tt.primitiveLength += 3;
29490
29490
  }
29491
29491
  sn = !sn;
29492
29492
  }
29493
29493
  if (M) {
29494
- const ii = this.layoutVertexExtArray, Xn = I.projectTilePoint(vt.x, vt.y, c), ri = I.projectTilePoint(an.x, an.y, c), Mi = I.upVector(c, vt.x, vt.y), wi = I.upVector(c, an.x, an.y);
29495
- Np(ii, Xn, Mi), Np(ii, Xn, Mi), Np(ii, ri, wi), Np(ii, ri, wi);
29494
+ const ii = this.layoutVertexExtArray, Kn = I.projectTilePoint(vt.x, vt.y, c), ri = I.projectTilePoint(an.x, an.y, c), Mi = I.upVector(c, vt.x, vt.y), wi = I.upVector(c, an.x, an.y);
29495
+ Np(ii, Kn, Mi), Np(ii, Kn, Mi), Np(ii, ri, wi), Np(ii, ri, wi);
29496
29496
  }
29497
29497
  }
29498
29498
  L && (He += qe.length - 1), F && he && this.zoom >= 17 && (ht.length !== 0 && be(ht, ht[0]) && ht.pop(), this.groundEffect.addData(ht, Oe, w, he > 0));
@@ -30781,7 +30781,7 @@ ${JSON.stringify(n, null, 2)}
30781
30781
  return t.sections.forEach((a) => {
30782
30782
  a.text = function(c, d, f) {
30783
30783
  const _ = d.layout.get("text-transform").evaluate(f, {});
30784
- return _ === "uppercase" ? c = c.toLocaleUpperCase() : _ === "lowercase" && (c = c.toLocaleLowerCase()), Un.applyArabicShaping && (c = Un.applyArabicShaping(c)), c;
30784
+ return _ === "uppercase" ? c = c.toLocaleUpperCase() : _ === "lowercase" && (c = c.toLocaleLowerCase()), jn.applyArabicShaping && (c = jn.applyArabicShaping(c)), c;
30785
30785
  }(a.text, e, n);
30786
30786
  }), t;
30787
30787
  }
@@ -30918,7 +30918,7 @@ ${JSON.stringify(n, null, 2)}
30918
30918
  }
30919
30919
  var qe;
30920
30920
  return WT(qT(ce.length(), lt, ft, tt, 0, !0));
30921
- }(N, w, d, e, a, L), { processBidirectionalText: ee, processStyledBidirectionalText: te } = Un;
30921
+ }(N, w, d, e, a, L), { processBidirectionalText: ee, processStyledBidirectionalText: te } = jn;
30922
30922
  if (ee && N.sections.length === 1) {
30923
30923
  const ce = ee(N.toString(), H);
30924
30924
  for (const be of ce) {
@@ -30964,15 +30964,15 @@ ${JSON.stringify(n, null, 2)}
30964
30964
  In.trim();
30965
30965
  const gn = In.getMaxScale(), Pn = (gn - 1) * Hr, An = { positionedGlyphs: [], lineOffset: 0 };
30966
30966
  ce.positionedLines[sn] = An;
30967
- const jn = An.positionedGlyphs;
30967
+ const Vn = An.positionedGlyphs;
30968
30968
  let pn = 0;
30969
30969
  if (!In.length()) {
30970
30970
  ht += Ve, ++sn;
30971
30971
  continue;
30972
30972
  }
30973
30973
  let vi = 0, gi = 0;
30974
- for (let Xn = 0; Xn < In.length(); Xn++) {
30975
- const ri = In.getSection(Xn), Mi = In.getSectionIndex(Xn), wi = In.getCodePoint(Xn);
30974
+ for (let Kn = 0; Kn < In.length(); Kn++) {
30975
+ const ri = In.getSection(Kn), Mi = In.getSectionIndex(Kn), wi = In.getCodePoint(Kn);
30976
30976
  let Wi = ri.scale, ji = null, eo = null, Qi = null, Fi = Hr, mr = 0;
30977
30977
  const zr = !(Xe === ns.horizontal || !qe && !rt(wi) || qe && (U_[wi] || (en = wi, ye.Arabic(en) || ye["Arabic Supplement"](en) || ye["Arabic Extended-A"](en) || ye["Arabic Presentation Forms-A"](en) || ye["Arabic Presentation Forms-B"](en))));
30978
30978
  if (ri.imageName) {
@@ -31001,19 +31001,19 @@ ${JSON.stringify(n, null, 2)}
31001
31001
  } else
31002
31002
  mr = (gn - Wi) * Hr - 17;
31003
31003
  }
31004
- zr ? (ce.verticalizable = !0, jn.push({ glyph: wi, imageName: Qi, x: _t, y: ht + mr, vertical: zr, scale: Wi, localGlyph: ji.localGlyph, fontStack: ri.fontStack, sectionIndex: Mi, metrics: ji, rect: eo }), _t += Fi * Wi + lt) : (jn.push({ glyph: wi, imageName: Qi, x: _t, y: ht + mr, vertical: zr, scale: Wi, localGlyph: ji.localGlyph, fontStack: ri.fontStack, sectionIndex: Mi, metrics: ji, rect: eo }), _t += ji.advance * Wi + lt);
31004
+ zr ? (ce.verticalizable = !0, Vn.push({ glyph: wi, imageName: Qi, x: _t, y: ht + mr, vertical: zr, scale: Wi, localGlyph: ji.localGlyph, fontStack: ri.fontStack, sectionIndex: Mi, metrics: ji, rect: eo }), _t += Fi * Wi + lt) : (Vn.push({ glyph: wi, imageName: Qi, x: _t, y: ht + mr, vertical: zr, scale: Wi, localGlyph: ji.localGlyph, fontStack: ri.fontStack, sectionIndex: Mi, metrics: ji, rect: eo }), _t += ji.advance * Wi + lt);
31005
31005
  }
31006
- jn.length !== 0 && (Ut = Math.max(_t - lt, Ut), xt ? ZT(jn, mt, pn, gi, Ve * gn / 2) : ZT(jn, mt, pn, 0, Ve / 2)), _t = 0;
31006
+ Vn.length !== 0 && (Ut = Math.max(_t - lt, Ut), xt ? ZT(Vn, mt, pn, gi, Ve * gn / 2) : ZT(Vn, mt, pn, 0, Ve / 2)), _t = 0;
31007
31007
  const ii = Ve * gn + pn;
31008
31008
  An.lineOffset = Math.max(pn, Pn), ht += ii, ++sn;
31009
31009
  }
31010
31010
  var en;
31011
31011
  const Jt = ht, { horizontalAlign: vt, verticalAlign: an } = Hv(tt);
31012
- (function(In, gn, Pn, An, jn, pn) {
31013
- const vi = (gn - Pn) * jn, gi = -pn * An;
31012
+ (function(In, gn, Pn, An, Vn, pn) {
31013
+ const vi = (gn - Pn) * Vn, gi = -pn * An;
31014
31014
  for (const ii of In)
31015
- for (const Xn of ii.positionedGlyphs)
31016
- Xn.x += vi, Xn.y += gi;
31015
+ for (const Kn of ii.positionedGlyphs)
31016
+ Kn.x += vi, Kn.y += gi;
31017
31017
  })(ce.positionedLines, mt, vt, an, Ut, Jt), ce.top += -an * Jt, ce.bottom = ce.top + Jt, ce.left += -vt * Ut, ce.right = ce.left + Ut, ce.hasBaseline = xt;
31018
31018
  }(he, e, n, a, F, f, _, y, I, w, M, D), !function(ce) {
31019
31019
  for (const be of ce)
@@ -31425,11 +31425,11 @@ ${JSON.stringify(n, null, 2)}
31425
31425
  const He = (Ve, tt, ft, Xe) => {
31426
31426
  const lt = V_(Ve.stretch - ee, te, w, t.left), qe = $_(Ve.fixed - ce, be, Ve.stretch, D), ct = V_(tt.stretch - ne, he, E, t.top), _t = $_(tt.fixed - Ee, Oe, tt.stretch, N), ht = V_(ft.stretch - ee, te, w, t.left), Ut = $_(ft.fixed - ce, be, ft.stretch, D), mt = V_(Xe.stretch - ne, he, E, t.top), xt = $_(Xe.fixed - Ee, Oe, Xe.stretch, N), sn = new Pt(lt, ct), en = new Pt(ht, ct), Jt = new Pt(ht, mt), vt = new Pt(lt, mt), an = new Pt(qe / f, _t / f), In = new Pt(Ut / f, xt / f), gn = e * Math.PI / 180;
31427
31427
  if (gn) {
31428
- const gi = Math.sin(gn), ii = Math.cos(gn), Xn = [ii, -gi, gi, ii];
31429
- sn._matMult(Xn), en._matMult(Xn), vt._matMult(Xn), Jt._matMult(Xn);
31428
+ const gi = Math.sin(gn), ii = Math.cos(gn), Kn = [ii, -gi, gi, ii];
31429
+ sn._matMult(Kn), en._matMult(Kn), vt._matMult(Kn), Jt._matMult(Kn);
31430
31430
  }
31431
- const Pn = Ve.stretch + Ve.fixed, An = ft.stretch + ft.fixed, jn = tt.stretch + tt.fixed, pn = Xe.stretch + Xe.fixed, vi = t.imageSecondary;
31432
- return { tl: sn, tr: en, bl: vt, br: Jt, texPrimary: { x: d.paddedRect.x + Xl + Pn, y: d.paddedRect.y + Xl + jn, w: An - Pn, h: pn - jn }, texSecondary: vi ? { x: vi.paddedRect.x + Xl + Pn, y: vi.paddedRect.y + Xl + jn, w: An - Pn, h: pn - jn } : void 0, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: an, pixelOffsetBR: In, minFontScaleX: be / f / w, minFontScaleY: Oe / f / E, isSDF: n };
31431
+ const Pn = Ve.stretch + Ve.fixed, An = ft.stretch + ft.fixed, Vn = tt.stretch + tt.fixed, pn = Xe.stretch + Xe.fixed, vi = t.imageSecondary;
31432
+ return { tl: sn, tr: en, bl: vt, br: Jt, texPrimary: { x: d.paddedRect.x + Xl + Pn, y: d.paddedRect.y + Xl + Vn, w: An - Pn, h: pn - Vn }, texSecondary: vi ? { x: vi.paddedRect.x + Xl + Pn, y: vi.paddedRect.y + Xl + Vn, w: An - Pn, h: pn - Vn } : void 0, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: an, pixelOffsetBR: In, minFontScaleX: be / f / w, minFontScaleY: Oe / f / E, isSDF: n };
31433
31433
  };
31434
31434
  if (a && (d.stretchX || d.stretchY)) {
31435
31435
  const Ve = aE(I, F, D), tt = aE(M, H, N);
@@ -31592,7 +31592,7 @@ ${JSON.stringify(n, null, 2)}
31592
31592
  function R5(t, e, n, a, c, d, f, _, y, w, E, I, M, L, D) {
31593
31593
  let N = d.textMaxSize.evaluate(e, {}, I);
31594
31594
  N === void 0 && (N = f);
31595
- const F = t.layers[0].layout, H = F.get("icon-offset").evaluate(e, {}, I), ee = uE(n.horizontal) || n.vertical, te = M.name === "globe", ne = Hr, he = f / ne, ce = t.tilePixelRatio * N / ne, be = (lt = t.overscaling, t.zoom > 18 && lt > 2 && (lt >>= 1), Math.max(St / (512 * lt), 1) * F.get("symbol-spacing")), Ee = F.get("text-padding") * t.tilePixelRatio, Oe = F.get("icon-padding") * t.tilePixelRatio, He = Wn(F.get("text-max-angle")), Ve = F.get("text-rotation-alignment") === "map" && F.get("symbol-placement") !== "point", tt = F.get("icon-rotation-alignment") === "map" && F.get("symbol-placement") !== "point", ft = F.get("symbol-placement"), Xe = be / 2;
31595
+ const F = t.layers[0].layout, H = F.get("icon-offset").evaluate(e, {}, I), ee = uE(n.horizontal) || n.vertical, te = M.name === "globe", ne = Hr, he = f / ne, ce = t.tilePixelRatio * N / ne, be = (lt = t.overscaling, t.zoom > 18 && lt > 2 && (lt >>= 1), Math.max(St / (512 * lt), 1) * F.get("symbol-spacing")), Ee = F.get("text-padding") * t.tilePixelRatio, Oe = F.get("icon-padding") * t.tilePixelRatio, He = Zn(F.get("text-max-angle")), Ve = F.get("text-rotation-alignment") === "map" && F.get("symbol-placement") !== "point", tt = F.get("icon-rotation-alignment") === "map" && F.get("symbol-placement") !== "point", ft = F.get("symbol-placement"), Xe = be / 2;
31596
31596
  var lt;
31597
31597
  const qe = F.get("icon-text-fit").evaluate(e, {}, I), ct = F.get("icon-text-fit-padding").evaluate(e, {}, I), _t = qe !== "none";
31598
31598
  let ht;
@@ -31605,7 +31605,7 @@ ${JSON.stringify(n, null, 2)}
31605
31605
  const { x: Jt, y: vt, z: an } = M.projectTilePoint(xt.x, xt.y, sn);
31606
31606
  en = { anchor: new Ja(Jt, vt, an, 0, void 0), up: M.upVector(sn, xt.x, xt.y) };
31607
31607
  }
31608
- (function(Jt, vt, an, In, gn, Pn, An, jn, pn, vi, gi, ii, Xn, ri, Mi, wi, Wi, ji, eo, Qi, Fi, mr, zr, Nr, Ci, yo, Qa) {
31608
+ (function(Jt, vt, an, In, gn, Pn, An, Vn, pn, vi, gi, ii, Kn, ri, Mi, wi, Wi, ji, eo, Qi, Fi, mr, zr, Nr, Ci, yo, Qa) {
31609
31609
  const Ts = Jt.addToLineVertexArray(vt, In);
31610
31610
  let $s, ic, rc, xu, hC, dC, fC, pC = 0, mC = 0, gC = 0, _C = 0, Sx = -1, Tx = -1;
31611
31611
  const la = {};
@@ -31615,22 +31615,22 @@ ${JSON.stringify(n, null, 2)}
31615
31615
  if (pn._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [Cx, Ix] = pn.layout.get("text-offset").evaluate(Fi, {}, Ci).map((Fo) => Fo * Hr) : (Cx = pn.layout.get("text-radial-offset").evaluate(Fi, {}, Ci) * Hr, Ix = Zv), Jt.allowVerticalPlacement && gn.vertical) {
31616
31616
  const Fo = gn.vertical;
31617
31617
  if (Mi)
31618
- dC = Xv(Fo), jn && (fC = Xv(jn));
31618
+ dC = Xv(Fo), Vn && (fC = Xv(Vn));
31619
31619
  else {
31620
31620
  const Uo = pn.layout.get("text-rotate").evaluate(Fi, {}, Ci) + 90;
31621
- rc = G_(vi, bu, vt, gi, ii, Xn, Fo, ri, Uo, wi), jn && (xu = G_(vi, bu, vt, gi, ii, Xn, jn, ji, Uo));
31621
+ rc = G_(vi, bu, vt, gi, ii, Kn, Fo, ri, Uo, wi), Vn && (xu = G_(vi, bu, vt, gi, ii, Kn, Vn, ji, Uo));
31622
31622
  }
31623
31623
  }
31624
31624
  if (Pn) {
31625
- const Fo = pn.layout.get("icon-rotate").evaluate(Fi, {}, Ci), Uo = sE(Pn, Fo, zr, Ex), id = jn ? sE(jn, Fo, zr, Ex) : void 0;
31626
- ic = G_(vi, bu, vt, gi, ii, Xn, Pn, ji, Fo), pC = 4 * Uo.length;
31625
+ const Fo = pn.layout.get("icon-rotate").evaluate(Fi, {}, Ci), Uo = sE(Pn, Fo, zr, Ex), id = Vn ? sE(Vn, Fo, zr, Ex) : void 0;
31626
+ ic = G_(vi, bu, vt, gi, ii, Kn, Pn, ji, Fo), pC = 4 * Uo.length;
31627
31627
  const vC = Jt.iconSizeData;
31628
31628
  let wu = null;
31629
31629
  vC.kind === "source" ? (wu = [Ns * pn.layout.get("icon-size").evaluate(Fi, {}, Ci)], wu[0] > Kl && Ji(`${Jt.layerIds[0]}: Value for "icon-size" is >= ${Vp}. Reduce your "icon-size".`)) : vC.kind === "composite" && (wu = [Ns * mr.compositeIconSizes[0].evaluate(Fi, {}, Ci), Ns * mr.compositeIconSizes[1].evaluate(Fi, {}, Ci)], (wu[0] > Kl || wu[1] > Kl) && Ji(`${Jt.layerIds[0]}: Value for "icon-size" is >= ${Vp}. Reduce your "icon-size".`)), Jt.addSymbols(Jt.icon, Uo, wu, Qi, eo, Fi, !1, an, vt, Ts.lineStartIndex, Ts.lineLength, -1, Nr, Ci, yo, Qa), Sx = Jt.icon.placedSymbolArray.length - 1, id && (mC = 4 * id.length, Jt.addSymbols(Jt.icon, id, wu, Qi, eo, Fi, ns.vertical, an, vt, Ts.lineStartIndex, Ts.lineLength, -1, Nr, Ci, yo, Qa), Tx = Jt.icon.placedSymbolArray.length - 1);
31630
31630
  }
31631
31631
  for (const Fo in gn.horizontal) {
31632
31632
  const Uo = gn.horizontal[Fo];
31633
- $s || (yC = Uc(Uo.text), Mi ? hC = Xv(Uo) : $s = G_(vi, bu, vt, gi, ii, Xn, Uo, ri, pn.layout.get("text-rotate").evaluate(Fi, {}, Ci), wi));
31633
+ $s || (yC = Uc(Uo.text), Mi ? hC = Xv(Uo) : $s = G_(vi, bu, vt, gi, ii, Kn, Uo, ri, pn.layout.get("text-rotate").evaluate(Fi, {}, Ci), wi));
31634
31634
  const id = Uo.positionedLines.length === 1;
31635
31635
  if (gC += cE(Jt, an, vt, Uo, An, pn, Mi, Fi, wi, Ts, gn.vertical ? ns.horizontal : ns.horizontalOnly, id ? Object.keys(gn.horizontal) : [Fo], la, Sx, mr, Nr, Ci, yo), id)
31636
31636
  break;
@@ -31705,18 +31705,18 @@ ${JSON.stringify(n, null, 2)}
31705
31705
  if (An === null)
31706
31706
  continue;
31707
31707
  tt && ce.verticalizable && (an = xt.imageName ? gn - xt.metrics.width * xt.scale / 2 : 0);
31708
- const jn = Oe ? [xt.x + gn, xt.y] : [0, 0];
31708
+ const Vn = Oe ? [xt.x + gn, xt.y] : [0, 0];
31709
31709
  let pn = [0, 0], vi = [0, 0], gi = !1;
31710
31710
  Oe || (In ? (vi = [xt.x + gn + lt[0], xt.y + lt[1] - an], gi = !0) : pn = [xt.x + gn + be[0], xt.y + be[1] - an]);
31711
- const ii = An.w * xt.scale / (vt * (xt.localGlyph ? Bs : 1)), Xn = An.h * xt.scale / (vt * (xt.localGlyph ? Bs : 1));
31711
+ const ii = An.w * xt.scale / (vt * (xt.localGlyph ? Bs : 1)), Kn = An.h * xt.scale / (vt * (xt.localGlyph ? Bs : 1));
31712
31712
  let ri, Mi, wi, Wi;
31713
31713
  if (In) {
31714
31714
  const Qi = xt.y - ht, Fi = new Pt(-gn, gn - Qi), mr = -Math.PI / 2, zr = new Pt(...vi);
31715
31715
  ri = new Pt(-gn + pn[0], pn[1]), ri._rotateAround(mr, Fi)._add(zr), ri.x += -Qi + gn, ri.y -= (Pn.left - en) * xt.scale;
31716
31716
  const Nr = xt.imageName ? Pn.advance * xt.scale : Hr * xt.scale, Ci = String.fromCodePoint(xt.glyph);
31717
- g5(Ci) ? ri.x += (1 - en) * xt.scale : _5(Ci) ? ri.x += Nr - Pn.height * xt.scale + (-en - 1) * xt.scale : ri.x += xt.imageName || Pn.width + 2 * en === An.w && Pn.height + 2 * en === An.h ? (Nr - Xn) / 2 : (Nr - (Pn.height + 2 * en) * xt.scale) / 2, Mi = new Pt(ri.x, ri.y - ii), wi = new Pt(ri.x + Xn, ri.y), Wi = new Pt(ri.x + Xn, ri.y - ii);
31717
+ g5(Ci) ? ri.x += (1 - en) * xt.scale : _5(Ci) ? ri.x += Nr - Pn.height * xt.scale + (-en - 1) * xt.scale : ri.x += xt.imageName || Pn.width + 2 * en === An.w && Pn.height + 2 * en === An.h ? (Nr - Kn) / 2 : (Nr - (Pn.height + 2 * en) * xt.scale) / 2, Mi = new Pt(ri.x, ri.y - ii), wi = new Pt(ri.x + Kn, ri.y), Wi = new Pt(ri.x + Kn, ri.y - ii);
31718
31718
  } else {
31719
- const Qi = (Pn.left - en) * xt.scale - gn + pn[0], Fi = (-Pn.top - en) * xt.scale + pn[1], mr = Qi + ii, zr = Fi + Xn;
31719
+ const Qi = (Pn.left - en) * xt.scale - gn + pn[0], Fi = (-Pn.top - en) * xt.scale + pn[1], mr = Qi + ii, zr = Fi + Kn;
31720
31720
  ri = new Pt(Qi, Fi), Mi = new Pt(mr, Fi), wi = new Pt(Qi, zr), Wi = new Pt(mr, zr);
31721
31721
  }
31722
31722
  if (Xe) {
@@ -31724,7 +31724,7 @@ ${JSON.stringify(n, null, 2)}
31724
31724
  Qi = Oe ? new Pt(0, 0) : gi ? new Pt(lt[0], lt[1]) : new Pt(be[0], be[1]), ri._rotateAround(Xe, Qi), Mi._rotateAround(Xe, Qi), wi._rotateAround(Xe, Qi), Wi._rotateAround(Xe, Qi);
31725
31725
  }
31726
31726
  const ji = new Pt(0, 0), eo = new Pt(0, 0);
31727
- ft.push({ tl: ri, tr: Mi, bl: wi, br: Wi, texPrimary: sn, texSecondary: void 0, writingMode: ce.writingMode, glyphOffset: jn, sectionIndex: xt.sectionIndex, isSDF: Jt, pixelOffsetTL: ji, pixelOffsetBR: eo, minFontScaleX: 0, minFontScaleY: 0 });
31727
+ ft.push({ tl: ri, tr: Mi, bl: wi, br: Wi, texPrimary: sn, texSecondary: void 0, writingMode: ce.writingMode, glyphOffset: Vn, sectionIndex: xt.sectionIndex, isSDF: Jt, pixelOffsetTL: ji, pixelOffsetBR: eo, minFontScaleX: 0, minFontScaleY: 0 });
31728
31728
  }
31729
31729
  }
31730
31730
  return ft;
@@ -31744,7 +31744,7 @@ ${JSON.stringify(n, null, 2)}
31744
31744
  let E = f.top, I = f.bottom, M = f.left, L = f.right;
31745
31745
  const D = f.collisionPadding;
31746
31746
  if (D && (M -= D[0], E -= D[1], L += D[2], I += D[3]), y) {
31747
- const N = new Pt(M, E), F = new Pt(L, E), H = new Pt(M, I), ee = new Pt(L, I), te = Wn(y);
31747
+ const N = new Pt(M, E), F = new Pt(L, E), H = new Pt(M, I), ee = new Pt(L, I), te = Zn(y);
31748
31748
  let ne = new Pt(0, 0);
31749
31749
  w && (ne = new Pt(w[0], w[1])), N._rotateAround(te, ne), F._rotateAround(te, ne), H._rotateAround(te, ne), ee._rotateAround(te, ne), M = Math.min(N.x, F.x, H.x, ee.x), L = Math.max(N.x, F.x, H.x, ee.x), E = Math.min(N.y, F.y, H.y, ee.y), I = Math.max(N.y, F.y, H.y, ee.y);
31750
31750
  }
@@ -31855,18 +31855,18 @@ ${JSON.stringify(n, null, 2)}
31855
31855
  class k5 extends Jl {
31856
31856
  constructor(e) {
31857
31857
  super(e), this.range = [4, 7], this.center = e.center || [-96, 37.5];
31858
- const [n, a] = this.parallels = e.parallels || [29.5, 45.5], c = Math.sin(Wn(n));
31859
- this.n = (c + Math.sin(Wn(a))) / 2, this.c = 1 + c * (2 * this.n - c), this.r0 = Math.sqrt(this.c) / this.n;
31858
+ const [n, a] = this.parallels = e.parallels || [29.5, 45.5], c = Math.sin(Zn(n));
31859
+ this.n = (c + Math.sin(Zn(a))) / 2, this.c = 1 + c * (2 * this.n - c), this.r0 = Math.sqrt(this.c) / this.n;
31860
31860
  }
31861
31861
  project(e, n) {
31862
- const { n: a, c, r0: d } = this, f = Wn(e - this.center[0]), _ = Wn(n), y = Math.sqrt(c - 2 * a * Math.sin(_)) / a;
31862
+ const { n: a, c, r0: d } = this, f = Zn(e - this.center[0]), _ = Zn(n), y = Math.sqrt(c - 2 * a * Math.sin(_)) / a;
31863
31863
  return { x: y * Math.sin(f * a), y: y * Math.cos(f * a) - d, z: 0 };
31864
31864
  }
31865
31865
  unproject(e, n) {
31866
31866
  const { n: a, c, r0: d } = this, f = d + n;
31867
31867
  let _ = Math.atan2(e, Math.abs(f)) * Math.sign(f);
31868
31868
  f * a < 0 && (_ -= Math.PI * Math.sign(e) * Math.sign(f));
31869
- const y = Wn(this.center[0]) * a;
31869
+ const y = Zn(this.center[0]) * a;
31870
31870
  _ = Ea(_, -Math.PI - y, Math.PI - y);
31871
31871
  const w = Cn(Zr(_ / a) + this.center[0], -180, 180), E = Math.asin(Cn((c - (e * e + f * f) * a * a) / (2 * a), -1, 1)), I = Cn(Zr(E), -sr, sr);
31872
31872
  return new ei(w, I);
@@ -31908,13 +31908,13 @@ ${JSON.stringify(n, null, 2)}
31908
31908
  constructor(e) {
31909
31909
  super(e), this.center = e.center || [0, 30];
31910
31910
  const [n, a] = this.parallels = e.parallels || [30, 30];
31911
- let c = Wn(n), d = Wn(a);
31911
+ let c = Zn(n), d = Zn(a);
31912
31912
  this.southernCenter = c + d < 0, this.southernCenter && (c = -c, d = -d);
31913
31913
  const f = Math.cos(c), _ = q_(c);
31914
31914
  this.n = c === d ? Math.sin(c) : Math.log(f / Math.cos(d)) / Math.log(q_(d) / _), this.f = f * Math.pow(q_(c), this.n) / this.n;
31915
31915
  }
31916
31916
  project(e, n) {
31917
- n = Wn(n), this.southernCenter && (n = -n), e = Wn(e - this.center[0]);
31917
+ n = Zn(n), this.southernCenter && (n = -n), e = Zn(e - this.center[0]);
31918
31918
  const a = 1e-6, { n: c, f: d } = this;
31919
31919
  d > 0 ? n < -Zh + a && (n = -Zh + a) : n > Zh - a && (n = Zh - a);
31920
31920
  const f = d / Math.pow(q_(n), c);
@@ -31942,11 +31942,11 @@ ${JSON.stringify(n, null, 2)}
31942
31942
  return new ei(a, c);
31943
31943
  }
31944
31944
  }
31945
- const pE = Wn(sr);
31945
+ const pE = Zn(sr);
31946
31946
  class N5 extends Jl {
31947
31947
  project(e, n) {
31948
- const a = (n = Wn(n)) * n, c = a * a;
31949
- return { x: 0.5 * ((e = Wn(e)) * (0.8707 - 0.131979 * a + c * (c * (3971e-6 * a - 1529e-6 * c) - 0.013791)) / Math.PI + 0.5), y: 1 - 0.5 * (n * (1.007226 + a * (0.015085 + c * (0.028874 * a - 0.044475 - 5916e-6 * c))) / Math.PI + 1), z: 0 };
31948
+ const a = (n = Zn(n)) * n, c = a * a;
31949
+ return { x: 0.5 * ((e = Zn(e)) * (0.8707 - 0.131979 * a + c * (c * (3971e-6 * a - 1529e-6 * c) - 0.013791)) / Math.PI + 0.5), y: 1 - 0.5 * (n * (1.007226 + a * (0.015085 + c * (0.028874 * a - 0.044475 - 5916e-6 * c))) / Math.PI + 1), z: 0 };
31950
31950
  }
31951
31951
  unproject(e, n) {
31952
31952
  e = (2 * e - 0.5) * Math.PI;
@@ -31961,10 +31961,10 @@ ${JSON.stringify(n, null, 2)}
31961
31961
  return new ei(_, y);
31962
31962
  }
31963
31963
  }
31964
- const mE = Wn(sr);
31964
+ const mE = Zn(sr);
31965
31965
  class B5 extends Jl {
31966
31966
  project(e, n) {
31967
- n = Wn(n), e = Wn(e);
31967
+ n = Zn(n), e = Zn(e);
31968
31968
  const a = Math.cos(n), c = 2 / Math.PI, d = Math.acos(a * Math.cos(e / 2)), f = Math.sin(d) / d, _ = 0.5 * (e * c + 2 * a * Math.sin(e / 2) / f) || 0, y = 0.5 * (n + Math.sin(n) / f) || 0;
31969
31969
  return { x: 0.5 * (_ / Math.PI + 0.5), y: 1 - 0.5 * (y / Math.PI + 1), z: 0 };
31970
31970
  }
@@ -31981,11 +31981,11 @@ ${JSON.stringify(n, null, 2)}
31981
31981
  }
31982
31982
  class gE extends Jl {
31983
31983
  constructor(e) {
31984
- super(e), this.center = e.center || [0, 0], this.parallels = e.parallels || [0, 0], this.cosPhi = Math.max(0.01, Math.cos(Wn(this.parallels[0]))), this.scale = 1 / (2 * Math.max(Math.PI * this.cosPhi, 1 / this.cosPhi)), this.wrap = !0, this.supportsWorldCopies = !0;
31984
+ super(e), this.center = e.center || [0, 0], this.parallels = e.parallels || [0, 0], this.cosPhi = Math.max(0.01, Math.cos(Zn(this.parallels[0]))), this.scale = 1 / (2 * Math.max(Math.PI * this.cosPhi, 1 / this.cosPhi)), this.wrap = !0, this.supportsWorldCopies = !0;
31985
31985
  }
31986
31986
  project(e, n) {
31987
31987
  const { scale: a, cosPhi: c } = this;
31988
- return { x: Wn(e) * c * a + 0.5, y: -Math.sin(Wn(n)) / c * a + 0.5, z: 0 };
31988
+ return { x: Zn(e) * c * a + 0.5, y: -Math.sin(Zn(n)) / c * a + 0.5, z: 0 };
31989
31989
  }
31990
31990
  unproject(e, n) {
31991
31991
  const { scale: a, cosPhi: c } = this, d = -(n - 0.5) / a, f = Cn(Zr((e - 0.5) / a) / c, -180, 180), _ = Math.asin(Cn(d * c, -1, 1)), y = Cn(Zr(_), -sr, sr);
@@ -32019,7 +32019,7 @@ ${JSON.stringify(n, null, 2)}
32019
32019
  }
32020
32020
  createInversionMatrix(e, n) {
32021
32021
  const { center: a } = e, c = Rp(ra(n));
32022
- return o.ad.rotateY(c, c, Wn(a.lng)), o.ad.rotateX(c, c, Wn(a.lat)), o.ad.scale(c, c, [e._pixelsPerMercatorPixel, e._pixelsPerMercatorPixel, 1]), Float32Array.from(c);
32022
+ return o.ad.rotateY(c, c, Zn(a.lng)), o.ad.rotateX(c, c, Zn(a.lat)), o.ad.scale(c, c, [e._pixelsPerMercatorPixel, e._pixelsPerMercatorPixel, 1]), Float32Array.from(c);
32023
32023
  }
32024
32024
  pointCoordinate(e, n, a, c) {
32025
32025
  return SS(e, n, a, !0) || new Qr(0, 0);
@@ -32227,7 +32227,7 @@ ${JSON.stringify(n, null, 2)}
32227
32227
  let Ee, Oe;
32228
32228
  if (I) {
32229
32229
  const Ve = d.getValueAndResolveTokens("text-field", be, a, F), tt = Dr.factory(Ve);
32230
- V5(tt) && (this.hasRTLText = !0), (!this.hasRTLText || $n() === "unavailable" || this.hasRTLText && Un.isParsed()) && (Ee = m5(tt, d, be));
32230
+ V5(tt) && (this.hasRTLText = !0), (!this.hasRTLText || Gn() === "unavailable" || this.hasRTLText && jn.isParsed()) && (Ee = m5(tt, d, be));
32231
32231
  }
32232
32232
  if (M) {
32233
32233
  const Ve = d.getValueAndResolveTokens("icon-image", be, a, F);
@@ -32649,7 +32649,7 @@ ${JSON.stringify(n, null, 2)}
32649
32649
  for (const c in this.buckets) {
32650
32650
  const d = this.buckets[c];
32651
32651
  if (d instanceof Xh && d.hasRTLText) {
32652
- this.hasRTLText = !0, Un.isLoading() || Un.isLoaded() || $n() !== "deferred" || ki();
32652
+ this.hasRTLText = !0, jn.isLoading() || jn.isLoaded() || Gn() !== "deferred" || ki();
32653
32653
  break;
32654
32654
  }
32655
32655
  }
@@ -33316,12 +33316,12 @@ ${JSON.stringify(n, null, 2)}
33316
33316
  ct = Us(ce, _t, 1);
33317
33317
  var Jt = Us(ce, _t + 1, 3);
33318
33318
  if (_t += 3, !Jt) {
33319
- var vt = ce[(Xn = 4 + ((_t + 7) / 8 | 0)) - 4] | ce[Xn - 3] << 8, an = Xn + vt;
33319
+ var vt = ce[(Kn = 4 + ((_t + 7) / 8 | 0)) - 4] | ce[Kn - 3] << 8, an = Kn + vt;
33320
33320
  if (an > He) {
33321
33321
  ft && js(0);
33322
33322
  break;
33323
33323
  }
33324
- tt && qe(ht + vt), Ee.set(ce.subarray(Xn, an), ht), be.b = ht += vt, be.p = _t = 8 * an, be.f = ct;
33324
+ tt && qe(ht + vt), Ee.set(ce.subarray(Kn, an), ht), be.b = ht += vt, be.p = _t = 8 * an, be.f = ct;
33325
33325
  continue;
33326
33326
  }
33327
33327
  if (Jt == 1)
@@ -33329,17 +33329,17 @@ ${JSON.stringify(n, null, 2)}
33329
33329
  else if (Jt == 2) {
33330
33330
  var In = Us(ce, _t, 31) + 257, gn = Us(ce, _t + 10, 15) + 4, Pn = In + Us(ce, _t + 5, 31) + 1;
33331
33331
  _t += 14;
33332
- for (var An = new is(Pn), jn = new is(19), pn = 0; pn < gn; ++pn)
33333
- jn[i4[pn]] = Us(ce, _t + 3 * pn, 7);
33332
+ for (var An = new is(Pn), Vn = new is(19), pn = 0; pn < gn; ++pn)
33333
+ Vn[i4[pn]] = Us(ce, _t + 3 * pn, 7);
33334
33334
  _t += 3 * gn;
33335
- var vi = rx(jn), gi = (1 << vi) - 1, ii = Zp(jn, vi, 1);
33335
+ var vi = rx(Vn), gi = (1 << vi) - 1, ii = Zp(Vn, vi, 1);
33336
33336
  for (pn = 0; pn < Pn; ) {
33337
- var Xn, ri = ii[Us(ce, _t, gi)];
33338
- if (_t += 15 & ri, (Xn = ri >> 4) < 16)
33339
- An[pn++] = Xn;
33337
+ var Kn, ri = ii[Us(ce, _t, gi)];
33338
+ if (_t += 15 & ri, (Kn = ri >> 4) < 16)
33339
+ An[pn++] = Kn;
33340
33340
  else {
33341
33341
  var Mi = 0, wi = 0;
33342
- for (Xn == 16 ? (wi = 3 + Us(ce, _t, 3), _t += 2, Mi = An[pn - 1]) : Xn == 17 ? (wi = 3 + Us(ce, _t, 7), _t += 3) : Xn == 18 && (wi = 11 + Us(ce, _t, 127), _t += 7); wi--; )
33342
+ for (Kn == 16 ? (wi = 3 + Us(ce, _t, 3), _t += 2, Mi = An[pn - 1]) : Kn == 17 ? (wi = 3 + Us(ce, _t, 7), _t += 3) : Kn == 18 && (wi = 11 + Us(ce, _t, 127), _t += 7); wi--; )
33343
33343
  An[pn++] = Mi;
33344
33344
  }
33345
33345
  }
@@ -34409,7 +34409,7 @@ ${JSON.stringify(n, null, 2)}
34409
34409
  var I4 = { paint: new si({ "sky-type": new nt(Ne.paint_sky["sky-type"]), "sky-atmosphere-sun": new nt(Ne.paint_sky["sky-atmosphere-sun"]), "sky-atmosphere-sun-intensity": new nt(Ne.paint_sky["sky-atmosphere-sun-intensity"]), "sky-gradient-center": new nt(Ne.paint_sky["sky-gradient-center"]), "sky-gradient-radius": new nt(Ne.paint_sky["sky-gradient-radius"]), "sky-gradient": new Cr(Ne.paint_sky["sky-gradient"]), "sky-atmosphere-halo-color": new nt(Ne.paint_sky["sky-atmosphere-halo-color"]), "sky-atmosphere-color": new nt(Ne.paint_sky["sky-atmosphere-color"]), "sky-opacity": new nt(Ne.paint_sky["sky-opacity"]) }), layout: C4 };
34410
34410
  function cx(t, e, n) {
34411
34411
  const a = [0, 0, 1], c = o.av.identity([]);
34412
- return o.av.rotateY(c, c, n ? -Wn(t) + Math.PI : Wn(t)), o.av.rotateX(c, c, -Wn(e)), o._.transformQuat(a, a, c), o._.normalize(a, a);
34412
+ return o.av.rotateY(c, c, n ? -Zn(t) + Math.PI : Zn(t)), o.av.rotateX(c, c, -Zn(e)), o._.transformQuat(a, a, c), o._.normalize(a, a);
34413
34413
  }
34414
34414
  var A4 = { paint: new si({}) };
34415
34415
  function zE(t, e) {
@@ -34448,7 +34448,7 @@ ${JSON.stringify(n, null, 2)}
34448
34448
  return { x: t * a - e * c, y: t * c + e * a };
34449
34449
  }
34450
34450
  function UE(t, e, n) {
34451
- o.ad.identity(t), o.ad.rotateZ(t, t, Wn(e[2])), o.ad.rotateX(t, t, Wn(e[0])), o.ad.rotateY(t, t, Wn(e[1])), o.ad.scale(t, t, n), o.ad.multiply(t, t, [1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
34451
+ o.ad.identity(t), o.ad.rotateZ(t, t, Zn(e[2])), o.ad.rotateX(t, t, Zn(e[0])), o.ad.rotateY(t, t, Zn(e[1])), o.ad.scale(t, t, n), o.ad.multiply(t, t, [1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
34452
34452
  }
34453
34453
  function oy(t, e, n, a, c, d, f, _) {
34454
34454
  const y = [n[0] - e[0], n[1] - e[1], 0], w = [a[0] - e[0], a[1] - e[1], 0];
@@ -34482,7 +34482,7 @@ ${JSON.stringify(n, null, 2)}
34482
34482
  if (a > 0) {
34483
34483
  const d = function(f, _) {
34484
34484
  const y = _.worldSize, w = _o(1, 0) * y * hu(_.center.lat, _.zoom) / Av(y), E = _o(1, _.center.lat) * y, I = o.ad.identity([]);
34485
- return o.ad.rotateY(I, I, Wn(_.center.lng)), o.ad.rotateX(I, I, Wn(_.center.lat)), o.ad.translate(I, I, [0, 0, go]), o.ad.scale(I, I, [w, w, w * E]), o.ad.translate(I, I, [_.point.x - 0.5 * y, _.point.y - 0.5 * y, 0]), o.ad.multiply(I, I, f), o.ad.multiply(I, _.globeMatrix, I);
34485
+ return o.ad.rotateY(I, I, Zn(_.center.lng)), o.ad.rotateX(I, I, Zn(_.center.lat)), o.ad.translate(I, I, [0, 0, go]), o.ad.scale(I, I, [w, w, w * E]), o.ad.translate(I, I, [_.point.x - 0.5 * y, _.point.y - 0.5 * y, 0]), o.ad.multiply(I, I, f), o.ad.multiply(I, _.globeMatrix, I);
34486
34486
  }(t, e);
34487
34487
  return function(f, _, y) {
34488
34488
  const w = (D, N, F) => {
@@ -34717,10 +34717,10 @@ ${JSON.stringify(n, null, 2)}
34717
34717
  const Xe = Ni.projectAabbCorners(He, Ve), lt = _o(1, tt.lat) * Oe.worldSize, qe = function(an, In) {
34718
34718
  const gn = [0, 0, 1], Pn = [{ corners: [0, 1, 3, 2], dotProductWithUp: 0 }, { corners: [1, 5, 2, 6], dotProductWithUp: 0 }, { corners: [0, 4, 1, 5], dotProductWithUp: 0 }, { corners: [2, 6, 3, 7], dotProductWithUp: 0 }, { corners: [4, 7, 5, 6], dotProductWithUp: 0 }, { corners: [0, 3, 4, 7], dotProductWithUp: 0 }];
34719
34719
  for (const An of Pn) {
34720
- const jn = an[An.corners[0]], pn = an[An.corners[1]], vi = an[An.corners[2]], gi = [pn[0] - jn[0], pn[1] - jn[1], In * (pn[2] - jn[2])], ii = o._.cross(gi, gi, [vi[0] - jn[0], vi[1] - jn[1], In * (vi[2] - jn[2])]);
34720
+ const Vn = an[An.corners[0]], pn = an[An.corners[1]], vi = an[An.corners[2]], gi = [pn[0] - Vn[0], pn[1] - Vn[1], In * (pn[2] - Vn[2])], ii = o._.cross(gi, gi, [vi[0] - Vn[0], vi[1] - Vn[1], In * (vi[2] - Vn[2])]);
34721
34721
  o._.normalize(ii, ii), An.dotProductWithUp = o._.dot(ii, gn);
34722
34722
  }
34723
- return Pn.sort((An, jn) => An.dotProductWithUp - jn.dotProductWithUp), Pn[0].corners;
34723
+ return Pn.sort((An, Vn) => An.dotProductWithUp - Vn.dotProductWithUp), Pn[0].corners;
34724
34724
  }(Xe, lt), ct = Xe[qe[0]], _t = Xe[qe[1]], ht = Xe[qe[2]], Ut = Xe[qe[3]], mt = ft.getAtPointOrZero(new Qr(ct[0] / Oe.worldSize, ct[1] / Oe.worldSize), 0), xt = ft.getAtPointOrZero(new Qr(_t[0] / Oe.worldSize, _t[1] / Oe.worldSize), 0), sn = ft.getAtPointOrZero(new Qr(ht[0] / Oe.worldSize, ht[1] / Oe.worldSize), 0), en = ft.getAtPointOrZero(new Qr(Ut[0] / Oe.worldSize, Ut[1] / Oe.worldSize), 0), Jt = (mt + en) / 2, vt = (xt + sn) / 2;
34725
34725
  return Jt > vt ? xt < sn ? oy(Ee, _t, Ut, ct, xt, en, mt, lt) : oy(Ee, ht, ct, Ut, sn, mt, en, lt) : mt < en ? oy(Ee, ct, _t, ht, mt, xt, sn, lt) : oy(Ee, Ut, ht, _t, en, sn, xt, lt), Math.max(Jt, vt);
34726
34726
  }(he, n, e.aabb, t, a);
@@ -35059,8 +35059,8 @@ ${JSON.stringify(n, null, 2)}
35059
35059
  const Pn = gn.length + 7 & -8;
35060
35060
  let An = Jt;
35061
35061
  Pn >= vt && (an = Pn, An = In = he(Pn));
35062
- for (let jn = 0; jn < gn.length; jn++)
35063
- D[An + jn] = gn[jn];
35062
+ for (let Vn = 0; Vn < gn.length; Vn++)
35063
+ D[An + Vn] = gn[Vn];
35064
35064
  return An;
35065
35065
  };
35066
35066
  })();
@@ -35790,15 +35790,15 @@ ${JSON.stringify(n, null, 2)}
35790
35790
  return ne.projection.name === "globe" ? function(lt, qe, ct, _t, ht, Ut, mt, xt, sn, en, Jt) {
35791
35791
  const vt = [], an = [], In = lt.projection.upVectorScale(Jt, lt.center.lat, lt.worldSize).metersToTile, gn = [0, 0, 0, 1], Pn = [0, 0, 0, 1], An = (pn, vi, gi, ii) => {
35792
35792
  pn[0] = vi, pn[1] = gi, pn[2] = ii, pn[3] = 1;
35793
- }, jn = bT();
35794
- ct > 0 && (ct += jn), _t += jn;
35793
+ }, Vn = bT();
35794
+ ct > 0 && (ct += Vn), _t += Vn;
35795
35795
  for (const pn of qe) {
35796
35796
  const vi = [], gi = [];
35797
35797
  for (const ii of pn) {
35798
- const Xn = ii.x + ht.x, ri = ii.y + ht.y, Mi = lt.projection.projectTilePoint(Xn, ri, Jt), wi = lt.projection.upVector(Jt, ii.x, ii.y);
35798
+ const Kn = ii.x + ht.x, ri = ii.y + ht.y, Mi = lt.projection.projectTilePoint(Kn, ri, Jt), wi = lt.projection.upVector(Jt, ii.x, ii.y);
35799
35799
  let Wi = ct, ji = _t;
35800
35800
  if (mt) {
35801
- const eo = TT(Xn, ri, ct, _t, mt, xt, sn, en);
35801
+ const eo = TT(Kn, ri, ct, _t, mt, xt, sn, en);
35802
35802
  Wi += eo.base, ji += eo.top;
35803
35803
  }
35804
35804
  ct !== 0 ? An(gn, Mi.x + wi[0] * In * Wi, Mi.y + wi[1] * In * Wi, Mi.z + wi[2] * In * Wi) : An(gn, Mi.x, Mi.y, Mi.z), An(Pn, Mi.x + wi[0] * In * ji, Mi.y + wi[1] * In * ji, Mi.z + wi[2] * In * ji), o._.transformMat4(gn, gn, Ut), o._.transformMat4(Pn, Pn, Ut), vi.push(new fu(gn[0], gn[1], gn[2])), gi.push(new fu(Pn[0], Pn[1], Pn[2]));
@@ -35811,10 +35811,10 @@ ${JSON.stringify(n, null, 2)}
35811
35811
  for (const an of lt) {
35812
35812
  const In = [], gn = [];
35813
35813
  for (const Pn of an) {
35814
- const An = Pn.x + _t.x, jn = Pn.y + _t.y, pn = TT(An, jn, qe, ct, Ut, mt, xt, sn);
35815
- vt[0] = An, vt[1] = jn, vt[2] = pn.base, vt[3] = 1, o.aA.transformMat4(vt, vt, ht), vt[3] = Math.max(vt[3], 1e-5);
35814
+ const An = Pn.x + _t.x, Vn = Pn.y + _t.y, pn = TT(An, Vn, qe, ct, Ut, mt, xt, sn);
35815
+ vt[0] = An, vt[1] = Vn, vt[2] = pn.base, vt[3] = 1, o.aA.transformMat4(vt, vt, ht), vt[3] = Math.max(vt[3], 1e-5);
35816
35816
  const vi = new fu(vt[0] / vt[3], vt[1] / vt[3], vt[2] / vt[3]);
35817
- vt[0] = An, vt[1] = jn, vt[2] = pn.top, vt[3] = 1, o.aA.transformMat4(vt, vt, ht), vt[3] = Math.max(vt[3], 1e-5);
35817
+ vt[0] = An, vt[1] = Vn, vt[2] = pn.top, vt[3] = 1, o.aA.transformMat4(vt, vt, ht), vt[3] = Math.max(vt[3], 1e-5);
35818
35818
  const gi = new fu(vt[0] / vt[3], vt[1] / vt[3], vt[2] / vt[3]);
35819
35819
  In.push(vi), gn.push(gi);
35820
35820
  }
@@ -35824,12 +35824,12 @@ ${JSON.stringify(n, null, 2)}
35824
35824
  }(he, ce, be, Ee, Oe, He, Ve, tt, ft) : function(lt, qe, ct, _t, ht) {
35825
35825
  const Ut = [], mt = [], xt = ht[8] * qe, sn = ht[9] * qe, en = ht[10] * qe, Jt = ht[11] * qe, vt = ht[8] * ct, an = ht[9] * ct, In = ht[10] * ct, gn = ht[11] * ct;
35826
35826
  for (const Pn of lt) {
35827
- const An = [], jn = [];
35827
+ const An = [], Vn = [];
35828
35828
  for (const pn of Pn) {
35829
- const vi = pn.x + _t.x, gi = pn.y + _t.y, ii = ht[0] * vi + ht[4] * gi + ht[12], Xn = ht[1] * vi + ht[5] * gi + ht[13], ri = ht[2] * vi + ht[6] * gi + ht[14], Mi = ht[3] * vi + ht[7] * gi + ht[15], wi = ii + xt, Wi = Xn + sn, ji = ri + en, eo = Math.max(Mi + Jt, 1e-5), Qi = ii + vt, Fi = Xn + an, mr = ri + In, zr = Math.max(Mi + gn, 1e-5);
35830
- An.push(new fu(wi / eo, Wi / eo, ji / eo)), jn.push(new fu(Qi / zr, Fi / zr, mr / zr));
35829
+ const vi = pn.x + _t.x, gi = pn.y + _t.y, ii = ht[0] * vi + ht[4] * gi + ht[12], Kn = ht[1] * vi + ht[5] * gi + ht[13], ri = ht[2] * vi + ht[6] * gi + ht[14], Mi = ht[3] * vi + ht[7] * gi + ht[15], wi = ii + xt, Wi = Kn + sn, ji = ri + en, eo = Math.max(Mi + Jt, 1e-5), Qi = ii + vt, Fi = Kn + an, mr = ri + In, zr = Math.max(Mi + gn, 1e-5);
35830
+ An.push(new fu(wi / eo, Wi / eo, ji / eo)), Vn.push(new fu(Qi / zr, Fi / zr, mr / zr));
35831
35831
  }
35832
- Ut.push(An), mt.push(jn);
35832
+ Ut.push(An), mt.push(Vn);
35833
35833
  }
35834
35834
  return [Ut, mt];
35835
35835
  }(he, ce, be, Ee, Oe);
@@ -36239,7 +36239,7 @@ ${JSON.stringify(n, null, 2)}
36239
36239
  interpolate(t, e, n) {
36240
36240
  return { x: hn(t.x, e.x, n), y: hn(t.y, e.y, n), z: hn(t.z, e.z, n), azimuthal: hn(t.azimuthal, e.azimuthal, n), polar: hn(t.polar, e.polar, n) };
36241
36241
  }
36242
- }, o.R = rh, o.S = nv, o.T = ws, o.U = Gn, o.V = sy, o.W = Yr, o.X = _n, o.Y = Qr, o.Z = Y, o.a = Bo, o.a$ = function(t) {
36242
+ }, o.R = rh, o.S = nv, o.T = ws, o.U = Hn, o.V = sy, o.W = Yr, o.X = _n, o.Y = Qr, o.Z = Y, o.a = Bo, o.a$ = function(t) {
36243
36243
  const { x: e, y: n } = t.point, { lng: a, lat: c } = t._center;
36244
36244
  return MS(e, n, t.worldSize, a, c);
36245
36245
  }, o.a0 = Ei, o.a1 = Xa, o.a2 = hn, o.a3 = St, o.a4 = Mg, o.a5 = class {
@@ -36282,7 +36282,7 @@ ${JSON.stringify(n, null, 2)}
36282
36282
  }, o.aX = ry, o.aY = zE, o.aZ = function(t) {
36283
36283
  const e = zE(t, !0);
36284
36284
  return o.aC.invert([], [e[0], e[1], e[4], e[5]]);
36285
- }, o.a_ = Sv, o.aa = mo, o.ab = Wn, o.ac = function(t, e, n) {
36285
+ }, o.a_ = Sv, o.aa = mo, o.ab = Zn, o.ac = function(t, e, n) {
36286
36286
  const a = Math.sqrt(t * t + e * e + n * n), c = a > 0 ? Math.acos(n / a) * Zu : 0;
36287
36287
  let d = t !== 0 || e !== 0 ? Math.atan2(-e, -t) * Zu + 90 : 0;
36288
36288
  return d < 0 && (d += 360), [a, d, c];
@@ -36387,7 +36387,7 @@ ${JSON.stringify(n, null, 2)}
36387
36387
  }, o.bc = b_, o.bd = function(t) {
36388
36388
  const e = sr - 5;
36389
36389
  t = Cn(t, -e, e) / e * 90;
36390
- const n = Math.pow(Math.abs(Math.sin(Wn(t))), 3);
36390
+ const n = Math.pow(Math.abs(Math.sin(Zn(t))), 3);
36391
36391
  return Math.round(n * (hv.length - 1));
36392
36392
  }, o.be = function(t, e, n, a) {
36393
36393
  const c = e.getNorth(), d = e.getSouth(), f = e.getWest(), _ = e.getEast(), y = 1 << t.z, w = _ - f, E = c - d, I = w / kh, M = -E / hv[n], L = [0, I, 0, M, 0, 0, c, f, 0];
@@ -36697,7 +36697,7 @@ ${JSON.stringify(n, null, 2)}
36697
36697
  let E = w / kh, I = 0;
36698
36698
  const M = hn(0, y, E), [L, D, N] = Dh(Bk, Fk, M, go);
36699
36699
  n.emplaceBack(L, D, N, E, I), a.emplaceBack(L, D, N, E, 1 - I);
36700
- const F = Wn(M);
36700
+ const F = Zn(M);
36701
36701
  E = 0.5 + 0.5 * Math.sin(F), I = 0.5 + 0.5 * Math.cos(F), c.emplaceBack(L, D, N, E, I), d.emplaceBack(L, D, N, E, 1 - I);
36702
36702
  }
36703
36703
  this._poleSegments.push(Ui.simpleSegment(_, 0, 66, 64)), _ += 66;
@@ -36917,7 +36917,7 @@ ${JSON.stringify(n, null, 2)}
36917
36917
  if (Ye === It || Ye === Bt || Ye === At)
36918
36918
  throw new Error("setRTLTextPlugin cannot be called multiple times.");
36919
36919
  qt = kr.resolveURL(t), Ye = It, wt = e, fn(), n || ki();
36920
- }, o.dw = $n, o.dx = function() {
36920
+ }, o.dw = Gn, o.dx = function() {
36921
36921
  ly().acquire(px);
36922
36922
  }, o.dy = function() {
36923
36923
  const t = em;
@@ -36937,7 +36937,7 @@ ${JSON.stringify(n, null, 2)}
36937
36937
  a.lights && (a.lightMeshIndex = a.meshes.length, a.meshes.push(J4(a.lights, e)));
36938
36938
  }
36939
36939
  return n;
36940
- }, o.e5 = dy, o.e6 = qE, o.e7 = Un, o.e8 = function(t) {
36940
+ }, o.e5 = dy, o.e6 = qE, o.e7 = jn, o.e8 = function(t) {
36941
36941
  Dc(), As && As.then((e) => {
36942
36942
  e.keys().then((n) => {
36943
36943
  for (let a = 0; a < n.length - t; a++)
@@ -37057,10 +37057,10 @@ ${JSON.stringify(n, null, 2)}
37057
37057
  const Di = j.layers[Kt];
37058
37058
  if (!Di)
37059
37059
  continue;
37060
- let fi = !1, Kn = !1, rr = !1;
37060
+ let fi = !1, Jn = !1, rr = !1;
37061
37061
  for (const Ur of dt[Kt])
37062
- Ur[0].type === "symbol" ? fi = !0 : Kn = !0, Ur[0].is3D() && Ur[0].type !== "model" && (rr = !0);
37063
- if (this.extraShadowCaster && !rr || this.isSymbolTile === !0 && !fi || this.isSymbolTile === !1 && !Kn)
37062
+ Ur[0].type === "symbol" ? fi = !0 : Jn = !0, Ur[0].is3D() && Ur[0].type !== "model" && (rr = !0);
37063
+ if (this.extraShadowCaster && !rr || this.isSymbolTile === !0 && !fi || this.isSymbolTile === !1 && !Jn)
37064
37064
  continue;
37065
37065
  Di.version === 1 && o.w(`Vector tile source "${this.source}" layer "${Kt}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
37066
37066
  const Oi = _e.encode(Kt), pr = [];
@@ -37075,7 +37075,7 @@ ${JSON.stringify(n, null, 2)}
37075
37075
  }
37076
37076
  let Xt, on, Ln, Bn;
37077
37077
  Fe.trim();
37078
- const En = { type: "maybePrepare", isSymbolTile: this.isSymbolTile, zoom: this.zoom }, Yn = () => {
37078
+ const En = { type: "maybePrepare", isSymbolTile: this.isSymbolTile, zoom: this.zoom }, Xn = () => {
37079
37079
  if (Xt)
37080
37080
  return this.status = "done", de(Xt);
37081
37081
  if (this.extraShadowCaster)
@@ -37083,27 +37083,27 @@ ${JSON.stringify(n, null, 2)}
37083
37083
  else if (on && Ln && Bn) {
37084
37084
  const Kt = new W(on), Di = new o.dQ(Ln, Bn, this.lut);
37085
37085
  for (const fi in Se) {
37086
- const Kn = Se[fi];
37087
- Kn instanceof o.dR ? (ue(Kn.layers, this.zoom, gt.brightness, ie), o.dS(Kn, on, Kt.positions, Ln, Di.iconPositions, this.showCollisionBoxes, ie, this.tileID.canonical, this.tileZoom, this.projection, this.brightness)) : Kn.hasPattern && (Kn instanceof o.dT || Kn instanceof o.dU || Kn instanceof o.b_) && (ue(Kn.layers, this.zoom, gt.brightness, ie), Kn.addFeatures(gt, this.tileID.canonical, Di.patternPositions, ie, this.tileTransform, this.brightness));
37086
+ const Jn = Se[fi];
37087
+ Jn instanceof o.dR ? (ue(Jn.layers, this.zoom, gt.brightness, ie), o.dS(Jn, on, Kt.positions, Ln, Di.iconPositions, this.showCollisionBoxes, ie, this.tileID.canonical, this.tileZoom, this.projection, this.brightness)) : Jn.hasPattern && (Jn instanceof o.dT || Jn instanceof o.dU || Jn instanceof o.b_) && (ue(Jn.layers, this.zoom, gt.brightness, ie), Jn.addFeatures(gt, this.tileID.canonical, Di.patternPositions, ie, this.tileTransform, this.brightness));
37088
37088
  }
37089
37089
  this.status = "done", de(null, { buckets: o.dG(Se).filter((fi) => !fi.isEmpty()), featureIndex: ke, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Kt.image, lineAtlas: Fe, imageAtlas: Di, brightness: gt.brightness });
37090
37090
  }
37091
37091
  };
37092
37092
  if (!this.extraShadowCaster) {
37093
- const Kt = o.dP(gt.glyphDependencies, (Kn) => Object.keys(Kn).map(Number));
37094
- Object.keys(Kt).length ? me.send("getGlyphs", { uid: this.uid, stacks: Kt, scope: this.scope }, (Kn, rr) => {
37095
- Xt || (Xt = Kn, on = rr, Yn());
37093
+ const Kt = o.dP(gt.glyphDependencies, (Jn) => Object.keys(Jn).map(Number));
37094
+ Object.keys(Kt).length ? me.send("getGlyphs", { uid: this.uid, stacks: Kt, scope: this.scope }, (Jn, rr) => {
37095
+ Xt || (Xt = Jn, on = rr, Xn());
37096
37096
  }, void 0, !1, En) : on = {};
37097
37097
  const Di = Object.keys(gt.iconDependencies);
37098
- Di.length ? me.send("getImages", { icons: Di, source: this.source, scope: this.scope, tileID: this.tileID, type: "icons" }, (Kn, rr) => {
37099
- Xt || (Xt = Kn, Ln = rr, Yn());
37098
+ Di.length ? me.send("getImages", { icons: Di, source: this.source, scope: this.scope, tileID: this.tileID, type: "icons" }, (Jn, rr) => {
37099
+ Xt || (Xt = Jn, Ln = rr, Xn());
37100
37100
  }, void 0, !1, En) : Ln = {};
37101
37101
  const fi = Object.keys(gt.patternDependencies);
37102
- fi.length ? me.send("getImages", { icons: fi, source: this.source, scope: this.scope, tileID: this.tileID, type: "patterns" }, (Kn, rr) => {
37103
- Xt || (Xt = Kn, Bn = rr, Yn());
37102
+ fi.length ? me.send("getImages", { icons: fi, source: this.source, scope: this.scope, tileID: this.tileID, type: "patterns" }, (Jn, rr) => {
37103
+ Xt || (Xt = Jn, Bn = rr, Xn());
37104
37104
  }, void 0, !1, En) : Bn = {};
37105
37105
  }
37106
- Yn();
37106
+ Xn();
37107
37107
  }
37108
37108
  }
37109
37109
  function ue(se, j, q, ie) {
@@ -37415,9 +37415,9 @@ ${JSON.stringify(n, null, 2)}
37415
37415
  return ot({ layers: q });
37416
37416
  }, kt.exports.GeoJSONWrapper = ut;
37417
37417
  var Qe = o.e1(kt.exports);
37418
- const wn = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (se) => se }, Yt = Math.fround || (Hn = new Float32Array(1), (se) => (Hn[0] = +se, Hn[0]));
37419
- var Hn;
37420
- const Qn = 3, di = 5, _r = 6;
37418
+ const wn = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (se) => se }, Yt = Math.fround || (Un = new Float32Array(1), (se) => (Un[0] = +se, Un[0]));
37419
+ var Un;
37420
+ const qn = 3, di = 5, _r = 6;
37421
37421
  class Ot {
37422
37422
  constructor(j) {
37423
37423
  this.options = Object.assign(Object.create(wn), j), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
@@ -37432,7 +37432,7 @@ ${JSON.stringify(n, null, 2)}
37432
37432
  const Fe = j[Se];
37433
37433
  if (!Fe.geometry)
37434
37434
  continue;
37435
- const [gt, dt] = Fe.geometry.coordinates, Xt = Yt(li(gt)), on = Yt(Vn(dt));
37435
+ const [gt, dt] = Fe.geometry.coordinates, Xt = Yt(li(gt)), on = Yt($n(dt));
37436
37436
  _e.push(Xt, on, 1 / 0, Se, -1, 1), this.options.reduce && _e.push(0);
37437
37437
  }
37438
37438
  let ke = this.trees[me + 1] = this._createTree(_e);
@@ -37454,10 +37454,10 @@ ${JSON.stringify(n, null, 2)}
37454
37454
  const dt = this.getClusters([ie, me, 180, _e], q), Xt = this.getClusters([-180, me, de, _e], q);
37455
37455
  return dt.concat(Xt);
37456
37456
  }
37457
- const ke = this.trees[this._limitZoom(q)], Se = ke.range(li(ie), Vn(_e), li(de), Vn(me)), Fe = ke.data, gt = [];
37457
+ const ke = this.trees[this._limitZoom(q)], Se = ke.range(li(ie), $n(_e), li(de), $n(me)), Fe = ke.data, gt = [];
37458
37458
  for (const dt of Se) {
37459
37459
  const Xt = this.stride * dt;
37460
- gt.push(Fe[Xt + di] > 1 ? yt(Fe, Xt, this.clusterProps) : this.points[Fe[Xt + Qn]]);
37460
+ gt.push(Fe[Xt + di] > 1 ? yt(Fe, Xt, this.clusterProps) : this.points[Fe[Xt + qn]]);
37461
37461
  }
37462
37462
  return gt;
37463
37463
  }
@@ -37471,7 +37471,7 @@ ${JSON.stringify(n, null, 2)}
37471
37471
  const ke = this.options.radius / (this.options.extent * Math.pow(2, ie - 1)), Se = de.within(_e[q * this.stride], _e[q * this.stride + 1], ke), Fe = [];
37472
37472
  for (const gt of Se) {
37473
37473
  const dt = gt * this.stride;
37474
- _e[dt + 4] === j && Fe.push(_e[dt + di] > 1 ? yt(_e, dt, this.clusterProps) : this.points[_e[dt + Qn]]);
37474
+ _e[dt + 4] === j && Fe.push(_e[dt + di] > 1 ? yt(_e, dt, this.clusterProps) : this.points[_e[dt + qn]]);
37475
37475
  }
37476
37476
  if (Fe.length === 0)
37477
37477
  throw new Error(me);
@@ -37517,14 +37517,14 @@ ${JSON.stringify(n, null, 2)}
37517
37517
  if (Fe)
37518
37518
  gt = Sn(q, Se, this.clusterProps), dt = q[Se], Xt = q[Se + 1];
37519
37519
  else {
37520
- const Bn = this.points[q[Se + Qn]];
37520
+ const Bn = this.points[q[Se + qn]];
37521
37521
  gt = Bn.properties;
37522
- const [En, Yn] = Bn.geometry.coordinates;
37523
- dt = li(En), Xt = Vn(Yn);
37522
+ const [En, Xn] = Bn.geometry.coordinates;
37523
+ dt = li(En), Xt = $n(Xn);
37524
37524
  }
37525
37525
  const on = { type: 1, geometry: [[Math.round(this.options.extent * (dt * de - ie)), Math.round(this.options.extent * (Xt * de - me))]], tags: gt };
37526
37526
  let Ln;
37527
- Ln = Fe || this.options.generateId ? q[Se + Qn] : this.points[q[Se + Qn]].id, Ln !== void 0 && (on.id = Ln), _e.features.push(on);
37527
+ Ln = Fe || this.options.generateId ? q[Se + qn] : this.points[q[Se + qn]].id, Ln !== void 0 && (on.id = Ln), _e.features.push(on);
37528
37528
  }
37529
37529
  }
37530
37530
  _limitZoom(j) {
@@ -37538,28 +37538,28 @@ ${JSON.stringify(n, null, 2)}
37538
37538
  Se[dt + 2] = q;
37539
37539
  const Xt = Se[dt], on = Se[dt + 1], Ln = j.within(Se[dt], Se[dt + 1], ke), Bn = Se[dt + di];
37540
37540
  let En = Bn;
37541
- for (const Yn of Ln) {
37542
- const Kt = Yn * gt;
37541
+ for (const Xn of Ln) {
37542
+ const Kt = Xn * gt;
37543
37543
  Se[Kt + 2] > q && (En += Se[Kt + di]);
37544
37544
  }
37545
37545
  if (En > Bn && En >= _e) {
37546
- let Yn, Kt = Xt * Bn, Di = on * Bn, fi = -1;
37547
- const Kn = (dt / gt << 5) + (q + 1) + this.points.length;
37546
+ let Xn, Kt = Xt * Bn, Di = on * Bn, fi = -1;
37547
+ const Jn = (dt / gt << 5) + (q + 1) + this.points.length;
37548
37548
  for (const rr of Ln) {
37549
37549
  const Oi = rr * gt;
37550
37550
  if (Se[Oi + 2] <= q)
37551
37551
  continue;
37552
37552
  Se[Oi + 2] = q;
37553
37553
  const pr = Se[Oi + di];
37554
- Kt += Se[Oi] * pr, Di += Se[Oi + 1] * pr, Se[Oi + 4] = Kn, de && (Yn || (Yn = this._map(Se, dt, !0), fi = this.clusterProps.length, this.clusterProps.push(Yn)), de(Yn, this._map(Se, Oi)));
37554
+ Kt += Se[Oi] * pr, Di += Se[Oi + 1] * pr, Se[Oi + 4] = Jn, de && (Xn || (Xn = this._map(Se, dt, !0), fi = this.clusterProps.length, this.clusterProps.push(Xn)), de(Xn, this._map(Se, Oi)));
37555
37555
  }
37556
- Se[dt + 4] = Kn, Fe.push(Kt / En, Di / En, 1 / 0, Kn, -1, En), de && Fe.push(fi);
37556
+ Se[dt + 4] = Jn, Fe.push(Kt / En, Di / En, 1 / 0, Jn, -1, En), de && Fe.push(fi);
37557
37557
  } else {
37558
- for (let Yn = 0; Yn < gt; Yn++)
37559
- Fe.push(Se[dt + Yn]);
37558
+ for (let Xn = 0; Xn < gt; Xn++)
37559
+ Fe.push(Se[dt + Xn]);
37560
37560
  if (En > 1)
37561
- for (const Yn of Ln) {
37562
- const Kt = Yn * gt;
37561
+ for (const Xn of Ln) {
37562
+ const Kt = Xn * gt;
37563
37563
  if (!(Se[Kt + 2] <= q)) {
37564
37564
  Se[Kt + 2] = q;
37565
37565
  for (let Di = 0; Di < gt; Di++)
@@ -37581,22 +37581,22 @@ ${JSON.stringify(n, null, 2)}
37581
37581
  const _e = this.clusterProps[j[q + _r]];
37582
37582
  return ie ? Object.assign({}, _e) : _e;
37583
37583
  }
37584
- const me = this.points[j[q + Qn]].properties, de = this.options.map(me);
37584
+ const me = this.points[j[q + qn]].properties, de = this.options.map(me);
37585
37585
  return ie && de === me ? Object.assign({}, de) : de;
37586
37586
  }
37587
37587
  }
37588
37588
  function yt(se, j, q) {
37589
- return { type: "Feature", id: se[j + Qn], properties: Sn(se, j, q), geometry: { type: "Point", coordinates: [(ie = se[j], 360 * (ie - 0.5)), fr(se[j + 1])] } };
37589
+ return { type: "Feature", id: se[j + qn], properties: Sn(se, j, q), geometry: { type: "Point", coordinates: [(ie = se[j], 360 * (ie - 0.5)), fr(se[j + 1])] } };
37590
37590
  var ie;
37591
37591
  }
37592
37592
  function Sn(se, j, q) {
37593
37593
  const ie = se[j + di], me = ie >= 1e4 ? `${Math.round(ie / 1e3)}k` : ie >= 1e3 ? Math.round(ie / 100) / 10 + "k" : ie, de = se[j + _r], _e = de === -1 ? {} : Object.assign({}, q[de]);
37594
- return Object.assign(_e, { cluster: !0, cluster_id: se[j + Qn], point_count: ie, point_count_abbreviated: me });
37594
+ return Object.assign(_e, { cluster: !0, cluster_id: se[j + qn], point_count: ie, point_count_abbreviated: me });
37595
37595
  }
37596
37596
  function li(se) {
37597
37597
  return se / 360 + 0.5;
37598
37598
  }
37599
- function Vn(se) {
37599
+ function $n(se) {
37600
37600
  const j = Math.sin(se * Math.PI / 180), q = 0.5 - 0.25 * Math.log((1 + j) / (1 - j)) / Math.PI;
37601
37601
  return q < 0 ? 0 : q > 1 ? 1 : q;
37602
37602
  }
@@ -37763,9 +37763,9 @@ ${JSON.stringify(n, null, 2)}
37763
37763
  const Se = me === 0 ? mn : xn;
37764
37764
  let Fe, gt, dt = se.start;
37765
37765
  for (let En = 0; En < se.length - 3; En += 3) {
37766
- const Yn = se[En], Kt = se[En + 1], Di = se[En + 2], fi = se[En + 3], Kn = se[En + 4], rr = me === 0 ? Yn : Kt, Oi = me === 0 ? fi : Kn;
37766
+ const Xn = se[En], Kt = se[En + 1], Di = se[En + 2], fi = se[En + 3], Jn = se[En + 4], rr = me === 0 ? Xn : Kt, Oi = me === 0 ? fi : Jn;
37767
37767
  let pr = !1;
37768
- _e && (Fe = Math.sqrt(Math.pow(Yn - fi, 2) + Math.pow(Kt - Kn, 2))), rr < q ? Oi > q && (gt = Se(ke, Yn, Kt, fi, Kn, q), _e && (ke.start = dt + Fe * gt)) : rr > ie ? Oi < ie && (gt = Se(ke, Yn, Kt, fi, Kn, ie), _e && (ke.start = dt + Fe * gt)) : nn(ke, Yn, Kt, Di), Oi < q && rr >= q && (gt = Se(ke, Yn, Kt, fi, Kn, q), pr = !0), Oi > ie && rr <= ie && (gt = Se(ke, Yn, Kt, fi, Kn, ie), pr = !0), !de && pr && (_e && (ke.end = dt + Fe * gt), j.push(ke), ke = tn(se)), _e && (dt += Fe);
37768
+ _e && (Fe = Math.sqrt(Math.pow(Xn - fi, 2) + Math.pow(Kt - Jn, 2))), rr < q ? Oi > q && (gt = Se(ke, Xn, Kt, fi, Jn, q), _e && (ke.start = dt + Fe * gt)) : rr > ie ? Oi < ie && (gt = Se(ke, Xn, Kt, fi, Jn, ie), _e && (ke.start = dt + Fe * gt)) : nn(ke, Xn, Kt, Di), Oi < q && rr >= q && (gt = Se(ke, Xn, Kt, fi, Jn, q), pr = !0), Oi > ie && rr <= ie && (gt = Se(ke, Xn, Kt, fi, Jn, ie), pr = !0), !de && pr && (_e && (ke.end = dt + Fe * gt), j.push(ke), ke = tn(se)), _e && (dt += Fe);
37769
37769
  }
37770
37770
  let Xt = se.length - 3;
37771
37771
  const on = se[Xt], Ln = se[Xt + 1], Bn = me === 0 ? on : Ln;
@@ -37949,9 +37949,9 @@ ${JSON.stringify(n, null, 2)}
37949
37949
  if (on.source = null, j.length === 0)
37950
37950
  continue;
37951
37951
  gt > 1 && console.time("clipping");
37952
- const Ln = 0.5 * Fe.buffer / Fe.extent, Bn = 0.5 - Ln, En = 0.5 + Ln, Yn = 1 + Ln;
37953
- let Kt = null, Di = null, fi = null, Kn = null, rr = ze(j, dt, ie - Ln, ie + En, 0, on.minX, on.maxX, Fe), Oi = ze(j, dt, ie + Bn, ie + Yn, 0, on.minX, on.maxX, Fe);
37954
- j = null, rr && (Kt = ze(rr, dt, me - Ln, me + En, 1, on.minY, on.maxY, Fe), Di = ze(rr, dt, me + Bn, me + Yn, 1, on.minY, on.maxY, Fe), rr = null), Oi && (fi = ze(Oi, dt, me - Ln, me + En, 1, on.minY, on.maxY, Fe), Kn = ze(Oi, dt, me + Bn, me + Yn, 1, on.minY, on.maxY, Fe), Oi = null), gt > 1 && console.timeEnd("clipping"), Se.push(Kt || [], q + 1, 2 * ie, 2 * me), Se.push(Di || [], q + 1, 2 * ie, 2 * me + 1), Se.push(fi || [], q + 1, 2 * ie + 1, 2 * me), Se.push(Kn || [], q + 1, 2 * ie + 1, 2 * me + 1);
37952
+ const Ln = 0.5 * Fe.buffer / Fe.extent, Bn = 0.5 - Ln, En = 0.5 + Ln, Xn = 1 + Ln;
37953
+ let Kt = null, Di = null, fi = null, Jn = null, rr = ze(j, dt, ie - Ln, ie + En, 0, on.minX, on.maxX, Fe), Oi = ze(j, dt, ie + Bn, ie + Xn, 0, on.minX, on.maxX, Fe);
37954
+ j = null, rr && (Kt = ze(rr, dt, me - Ln, me + En, 1, on.minY, on.maxY, Fe), Di = ze(rr, dt, me + Bn, me + Xn, 1, on.minY, on.maxY, Fe), rr = null), Oi && (fi = ze(Oi, dt, me - Ln, me + En, 1, on.minY, on.maxY, Fe), Jn = ze(Oi, dt, me + Bn, me + Xn, 1, on.minY, on.maxY, Fe), Oi = null), gt > 1 && console.timeEnd("clipping"), Se.push(Kt || [], q + 1, 2 * ie, 2 * me), Se.push(Di || [], q + 1, 2 * ie, 2 * me + 1), Se.push(fi || [], q + 1, 2 * ie + 1, 2 * me), Se.push(Jn || [], q + 1, 2 * ie + 1, 2 * me + 1);
37955
37955
  }
37956
37956
  }
37957
37957
  getTile(j, q, ie) {
@@ -38007,19 +38007,19 @@ ${JSON.stringify(n, null, 2)}
38007
38007
  return Se;
38008
38008
  const gt = {}, dt = {}, Xt = { accumulated: null, zoom: 0 }, on = { properties: null }, Ln = Object.keys(Fe);
38009
38009
  for (const Bn of Ln) {
38010
- const [En, Yn] = Fe[Bn], Kt = o.y(Yn), Di = o.y(typeof En == "string" ? [En, ["accumulated"], ["get", Bn]] : En);
38010
+ const [En, Xn] = Fe[Bn], Kt = o.y(Xn), Di = o.y(typeof En == "string" ? [En, ["accumulated"], ["get", Bn]] : En);
38011
38011
  gt[Bn] = Kt.value, dt[Bn] = Di.value;
38012
38012
  }
38013
38013
  return Se.map = (Bn) => {
38014
38014
  on.properties = Bn;
38015
38015
  const En = {};
38016
- for (const Yn of Ln)
38017
- En[Yn] = gt[Yn].evaluate(Xt, on);
38016
+ for (const Xn of Ln)
38017
+ En[Xn] = gt[Xn].evaluate(Xt, on);
38018
38018
  return En;
38019
38019
  }, Se.reduce = (Bn, En) => {
38020
38020
  on.properties = En;
38021
- for (const Yn of Ln)
38022
- Xt.accumulated = Bn[Yn], Bn[Yn] = dt[Yn].evaluate(Xt, on);
38021
+ for (const Xn of Ln)
38022
+ Xt.accumulated = Bn[Xn], Bn[Xn] = dt[Xn].evaluate(Xt, on);
38023
38023
  }, Se;
38024
38024
  }(j)).load(_e.features) : j.dynamic ? this._dynamicIndex : function(Se, Fe) {
38025
38025
  return new ir(Se, Fe);
@@ -38090,8 +38090,8 @@ ${JSON.stringify(n, null, 2)}
38090
38090
  for (const Bn of ke[Ln]) {
38091
38091
  const En = Bn[0];
38092
38092
  Se.bucketLayerIDs.push(Bn.map((Kt) => Kt.id)), En.recalculate(on, []);
38093
- const Yn = new o.e5(gt, de, dt, Xt, this.brightness, Se);
38094
- dt || (Yn.needsUpload = !0), _e[En.fqid] = Yn, Yn.evaluate(En);
38093
+ const Xn = new o.e5(gt, de, dt, Xt, this.brightness, Se);
38094
+ dt || (Xn.needsUpload = !0), _e[En.fqid] = Xn, Xn.evaluate(En);
38095
38095
  }
38096
38096
  this.status = "done", me(null, { buckets: _e, featureIndex: Se });
38097
38097
  }).catch((Fe) => me(new Error(Fe.message)));
@@ -38674,7 +38674,7 @@ ${JSON.stringify(n, null, 2)}
38674
38674
  (s[0] !== u[0] || s[1] !== u[1] || s[2] !== u[2] || s[3] !== u[3] || this.dirty) && (this.gl.viewport(s[0], s[1], s[2], s[3]), this.current = s, this.dirty = !1);
38675
38675
  }
38676
38676
  }
38677
- class Hn extends pt {
38677
+ class Un extends pt {
38678
38678
  getDefault() {
38679
38679
  return null;
38680
38680
  }
@@ -38685,7 +38685,7 @@ ${JSON.stringify(n, null, 2)}
38685
38685
  u.bindFramebuffer(u.FRAMEBUFFER, s), this.current = s, this.dirty = !1;
38686
38686
  }
38687
38687
  }
38688
- class Qn extends pt {
38688
+ class qn extends pt {
38689
38689
  getDefault() {
38690
38690
  return null;
38691
38691
  }
@@ -38757,7 +38757,7 @@ ${JSON.stringify(n, null, 2)}
38757
38757
  u.pixelStorei(u.UNPACK_PREMULTIPLY_ALPHA_WEBGL, s), this.current = s, this.dirty = !1;
38758
38758
  }
38759
38759
  }
38760
- class Vn extends pt {
38760
+ class $n extends pt {
38761
38761
  getDefault() {
38762
38762
  return !1;
38763
38763
  }
@@ -38842,7 +38842,7 @@ ${JSON.stringify(n, null, 2)}
38842
38842
  }
38843
38843
  class wo {
38844
38844
  constructor(s, u) {
38845
- this.gl = s, this.clearColor = new Ft(this), this.clearDepth = new zt(this), this.clearStencil = new bn(this), this.colorMask = new kt(this), this.depthMask = new rn(this), this.stencilMask = new Wt(this), this.stencilFunc = new dn(this), this.stencilOp = new Ke(this), this.stencilTest = new Tt(this), this.depthRange = new Pe(this), this.depthTest = new ut(this), this.depthFunc = new ot(this), this.blend = new Ht(this), this.blendFunc = new bt(this), this.blendColor = new $t(this), this.blendEquation = new Je(this), this.cullFace = new Nt(this), this.cullFaceSide = new jt(this), this.frontFace = new Nn(this), this.program = new Qe(this), this.activeTexture = new wn(this), this.viewport = new Yt(this), this.bindFramebuffer = new Hn(this), this.bindRenderbuffer = new Qn(this), this.bindTexture = new di(this), this.bindVertexBuffer = new _r(this), this.bindElementBuffer = new Ot(this), this.bindVertexArrayOES = new yt(this), this.pixelStoreUnpack = new Sn(this), this.pixelStoreUnpackPremultiplyAlpha = new li(this), this.pixelStoreUnpackFlipY = new Vn(this), this.options = u ? { ...u } : {}, this.options.extTextureFilterAnisotropicForceOff || (this.extTextureFilterAnisotropic = s.getExtension("EXT_texture_filter_anisotropic") || s.getExtension("MOZ_EXT_texture_filter_anisotropic") || s.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = s.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT))), this.extDebugRendererInfo = s.getExtension("WEBGL_debug_renderer_info"), this.extDebugRendererInfo && (this.renderer = s.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL), this.vendor = s.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)), this.options.extTextureFloatLinearForceOff || (this.extTextureFloatLinear = s.getExtension("OES_texture_float_linear")), this.extRenderToTextureHalfFloat = s.getExtension("EXT_color_buffer_half_float"), this.extTimerQuery = s.getExtension("EXT_disjoint_timer_query_webgl2"), this.maxTextureSize = s.getParameter(s.MAX_TEXTURE_SIZE), this.maxPointSize = s.getParameter(s.ALIASED_POINT_SIZE_RANGE)[1];
38845
+ this.gl = s, this.clearColor = new Ft(this), this.clearDepth = new zt(this), this.clearStencil = new bn(this), this.colorMask = new kt(this), this.depthMask = new rn(this), this.stencilMask = new Wt(this), this.stencilFunc = new dn(this), this.stencilOp = new Ke(this), this.stencilTest = new Tt(this), this.depthRange = new Pe(this), this.depthTest = new ut(this), this.depthFunc = new ot(this), this.blend = new Ht(this), this.blendFunc = new bt(this), this.blendColor = new $t(this), this.blendEquation = new Je(this), this.cullFace = new Nt(this), this.cullFaceSide = new jt(this), this.frontFace = new Nn(this), this.program = new Qe(this), this.activeTexture = new wn(this), this.viewport = new Yt(this), this.bindFramebuffer = new Un(this), this.bindRenderbuffer = new qn(this), this.bindTexture = new di(this), this.bindVertexBuffer = new _r(this), this.bindElementBuffer = new Ot(this), this.bindVertexArrayOES = new yt(this), this.pixelStoreUnpack = new Sn(this), this.pixelStoreUnpackPremultiplyAlpha = new li(this), this.pixelStoreUnpackFlipY = new $n(this), this.options = u ? { ...u } : {}, this.options.extTextureFilterAnisotropicForceOff || (this.extTextureFilterAnisotropic = s.getExtension("EXT_texture_filter_anisotropic") || s.getExtension("MOZ_EXT_texture_filter_anisotropic") || s.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = s.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT))), this.extDebugRendererInfo = s.getExtension("WEBGL_debug_renderer_info"), this.extDebugRendererInfo && (this.renderer = s.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL), this.vendor = s.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)), this.options.extTextureFloatLinearForceOff || (this.extTextureFloatLinear = s.getExtension("OES_texture_float_linear")), this.extRenderToTextureHalfFloat = s.getExtension("EXT_color_buffer_half_float"), this.extTimerQuery = s.getExtension("EXT_disjoint_timer_query_webgl2"), this.maxTextureSize = s.getParameter(s.MAX_TEXTURE_SIZE), this.maxPointSize = s.getParameter(s.ALIASED_POINT_SIZE_RANGE)[1];
38846
38846
  }
38847
38847
  setDefault() {
38848
38848
  this.unbindVAO(), this.clearColor.setDefault(), this.clearDepth.setDefault(), this.clearStencil.setDefault(), this.colorMask.setDefault(), this.depthMask.setDefault(), this.stencilMask.setDefault(), this.stencilFunc.setDefault(), this.stencilOp.setDefault(), this.stencilTest.setDefault(), this.depthRange.setDefault(), this.depthTest.setDefault(), this.depthFunc.setDefault(), this.blend.setDefault(), this.blendFunc.setDefault(), this.blendColor.setDefault(), this.blendEquation.setDefault(), this.cullFace.setDefault(), this.cullFaceSide.setDefault(), this.frontFace.setDefault(), this.program.setDefault(), this.activeTexture.setDefault(), this.bindFramebuffer.setDefault(), this.pixelStoreUnpack.setDefault(), this.pixelStoreUnpackPremultiplyAlpha.setDefault(), this.pixelStoreUnpackFlipY.setDefault();
@@ -39565,10 +39565,10 @@ Use an identity property function instead: ${G}.`)];
39565
39565
  m instanceof o.m ? o.w(m.message) : (p.fire(new o.d(new Error(m.message))), u = !0);
39566
39566
  return u;
39567
39567
  }
39568
- const Yn = new o.N({ anchor: new o.O(o.L.light.anchor), position: new o.Q(o.L.light.position), color: new o.O(o.L.light.color), intensity: new o.O(o.L.light.intensity) });
39568
+ const Xn = new o.N({ anchor: new o.O(o.L.light.anchor), position: new o.Q(o.L.light.position), color: new o.O(o.L.light.color), intensity: new o.O(o.L.light.intensity) });
39569
39569
  class Kt extends o.E {
39570
39570
  constructor(s, u = "flat") {
39571
- super(), this._transitionable = new o.U(Yn), this.setLight(s, u), this._transitioning = this._transitionable.untransitioned();
39571
+ super(), this._transitionable = new o.U(Xn), this.setLight(s, u), this._transitioning = this._transitionable.untransitioned();
39572
39572
  }
39573
39573
  getLight() {
39574
39574
  return this._transitionable.serialize();
@@ -39617,9 +39617,9 @@ Use an identity property function instead: ${G}.`)];
39617
39617
  return p != null && p.value != null && p.value.expression != null && p.value.expression instanceof o.Z;
39618
39618
  }
39619
39619
  };
39620
- const Kn = 45, rr = 65, Oi = 0.05;
39620
+ const Jn = 45, rr = 65, Oi = 0.05;
39621
39621
  function pr(p, s, u, m) {
39622
- const v = o.$(Kn, rr, u), [b, S] = Ur(p, m);
39622
+ const v = o.$(Jn, rr, u), [b, S] = Ur(p, m);
39623
39623
  let C = 1 - Math.min(1, Math.exp((s - b) / (S - b) * -6));
39624
39624
  return C *= C * C, C = Math.min(1, 1.00747 * C), C * v * p.alpha;
39625
39625
  }
@@ -39664,7 +39664,7 @@ Use an identity property function instead: ${G}.`)];
39664
39664
  if (!this._transform.projection.supportsFog)
39665
39665
  return 0;
39666
39666
  const u = this.properties && this.properties.get("color") || 1;
39667
- return (this._transform.projection.name === "globe" ? 1 : o.$(Kn, rr, s)) * u.a;
39667
+ return (this._transform.projection.name === "globe" ? 1 : o.$(Jn, rr, s)) * u.a;
39668
39668
  }
39669
39669
  getOpacityAtLatLng(s, u) {
39670
39670
  return this._transform.projection.supportsFog ? function(m, v, b) {
@@ -39923,9 +39923,9 @@ return 0.5*(u_shadow_bias.x+clamp(u_shadow_bias.y*tan(acos(NDotL)),0.0,u_shadow_
39923
39923
  #ifdef LIGHTING_3D_MODE
39924
39924
  uniform mediump vec3 u_lighting_ambient_color;uniform mediump vec3 u_lighting_directional_dir;uniform mediump vec3 u_lighting_directional_color;uniform mediump vec3 u_ground_radiance;float calculate_ambient_directional_factor(vec3 normal) {float NdotL=dot(normal,u_lighting_directional_dir);const float factor_reduction_max=0.3;float dir_luminance=dot(u_lighting_directional_color,vec3(0.2126,0.7152,0.0722));float directional_factor_min=1.0-factor_reduction_max*min(dir_luminance,1.0);float ambient_directional_factor=mix(directional_factor_min,1.0,min((NdotL+1.0),1.0));const float vertical_factor_min=0.92;float vertical_factor=mix(vertical_factor_min,1.0,normal.z*0.5+0.5);return vertical_factor*ambient_directional_factor;}vec3 linearProduct(vec3 srgbIn,vec3 k) {return srgbIn*pow(k,vec3(1./2.2));}vec3 apply_lighting(vec3 color,vec3 normal,float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return linearProduct(color,ambient_contrib+directional_contrib);}vec4 apply_lighting(vec4 color,vec3 normal,float dir_factor) {return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting(vec3 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return apply_lighting(color.rgb,normal,dir_factor);}vec4 apply_lighting(vec4 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting_ground(vec3 color) {return color*u_ground_radiance;}vec4 apply_lighting_ground(vec4 color) {return vec4(apply_lighting_ground(color.rgb),color.a);}float calculate_NdotL(vec3 normal) {const float ext=0.70710678118;return (clamp(dot(normal,u_lighting_directional_dir),-ext,1.0)+ext)/(1.0+ext);}vec4 apply_lighting_with_emission_ground(vec4 color,float emissive_strength) {return mix(apply_lighting_ground(color),color,emissive_strength);}vec3 compute_flood_lighting(vec3 flood_light_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=flood_light_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);float occlusion_ramp=smoothstep(0.0,0.2,1.0-occlusion);return mix(fully_occluded_color,flood_light_color,occlusion_ramp);}vec3 compute_emissive_draped(vec3 unlit_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=unlit_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);return mix(fully_occluded_color,unlit_color,1.0-occlusion);}
39925
39925
  #endif//LIGHTING_3D_MODE`, "_prelude_raster_array.glsl": hf, "_prelude_raster_particle.glsl": df }, qu = {};
39926
- qn("", lf), qn(uf, cf), qn(cg, ff), qn(hf, ""), qn(df, "");
39927
- const ug = qn(of, sf), hg = Ws;
39928
- var dg = { background: qn(`#include "_prelude_fog.fragment.glsl"
39926
+ Wn("", lf), Wn(uf, cf), Wn(cg, ff), Wn(hf, ""), Wn(df, "");
39927
+ const ug = Wn(of, sf), hg = Ws;
39928
+ var dg = { background: Wn(`#include "_prelude_fog.fragment.glsl"
39929
39929
  #include "_prelude_lighting.glsl"
39930
39930
  uniform vec4 u_color;uniform float u_opacity;
39931
39931
  #ifdef LIGHTING_3D_MODE
@@ -39957,7 +39957,7 @@ v_color=apply_lighting_with_emission_ground(u_color,u_emissive_strength);
39957
39957
  #ifdef FOG
39958
39958
  v_fog_pos=fog_position(a_pos);
39959
39959
  #endif
39960
- }`), backgroundPattern: qn(`#include "_prelude_fog.fragment.glsl"
39960
+ }`), backgroundPattern: Wn(`#include "_prelude_fog.fragment.glsl"
39961
39961
  #include "_prelude_lighting.glsl"
39962
39962
  uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform float u_emissive_strength;uniform sampler2D u_image;in vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=textureLodCustom(u_image,pos,v_pos);
39963
39963
  #ifdef LIGHTING_3D_MODE
@@ -39975,7 +39975,7 @@ uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upp
39975
39975
  #ifdef FOG
39976
39976
  v_fog_pos=fog_position(a_pos);
39977
39977
  #endif
39978
- }`), circle: qn(`#include "_prelude_fog.fragment.glsl"
39978
+ }`), circle: Wn(`#include "_prelude_fog.fragment.glsl"
39979
39979
  #include "_prelude_lighting.glsl"
39980
39980
  in vec3 v_data;in float v_visibility;
39981
39981
  #pragma mapbox: define highp vec4 color
@@ -40093,7 +40093,7 @@ v_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radiu
40093
40093
  #ifdef FOG
40094
40094
  v_fog_pos=fog_position(world_center.xyz);
40095
40095
  #endif
40096
- }`), clippingMask: qn("void main() {glFragColor=vec4(1.0);}", "in vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), heatmap: qn(`#include "_prelude_fog.fragment.glsl"
40096
+ }`), clippingMask: Wn("void main() {glFragColor=vec4(1.0);}", "in vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), heatmap: Wn(`#include "_prelude_fog.fragment.glsl"
40097
40097
  uniform highp float u_intensity;in vec2 v_extrude;
40098
40098
  #pragma mapbox: define highp float weight
40099
40099
  #define GAUSS_COEF 0.3989422804014327
@@ -40130,15 +40130,15 @@ gl_Position=u_matrix*vec4(pos,1);
40130
40130
  #ifdef FOG
40131
40131
  v_fog_pos=fog_position(pos);
40132
40132
  #endif
40133
- }`), heatmapTexture: qn(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));glFragColor=color*u_opacity;
40133
+ }`), heatmapTexture: Wn(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));glFragColor=color*u_opacity;
40134
40134
  #ifdef OVERDRAW_INSPECTOR
40135
40135
  glFragColor=vec4(0.0);
40136
40136
  #endif
40137
- HANDLE_WIREFRAME_DEBUG;}`, "in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"), collisionBox: qn("in float v_placed;in float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);glFragColor =mix(red,blue,step(0.5,v_placed))*0.5;glFragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}", `#include "_prelude_terrain.vertex.glsl"
40137
+ HANDLE_WIREFRAME_DEBUG;}`, "in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"), collisionBox: Wn("in float v_placed;in float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);glFragColor =mix(red,blue,step(0.5,v_placed))*0.5;glFragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}", `#include "_prelude_terrain.vertex.glsl"
40138
40138
  in vec3 a_pos;in vec2 a_anchor_pos;in vec2 a_extrude;in vec2 a_placed;in vec2 a_shift;in float a_size_scale;in vec2 a_padding;in float a_z_offset;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;out float v_placed;out float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*(a_z_offset+elevation(a_anchor_pos)),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(
40139
- 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}`), collisionCircle: qn("in float v_radius;in vec2 v_extrude;in float v_perspective_ratio;in float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);glFragColor=color*alpha*opacity_t;}", `in vec2 a_pos_2f;in float a_radius;in vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;out float v_radius;out vec2 v_extrude;out float v_perspective_ratio;out float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(
40139
+ 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}`), collisionCircle: Wn("in float v_radius;in vec2 v_extrude;in float v_perspective_ratio;in float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);glFragColor=color*alpha*opacity_t;}", `in vec2 a_pos_2f;in float a_radius;in vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;out float v_radius;out vec2 v_extrude;out float v_perspective_ratio;out float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(
40140
40140
  mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(
40141
- 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}`), debug: qn("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);glFragColor=mix(u_color,overlay_color,overlay_color.a);}", `#include "_prelude_terrain.vertex.glsl"
40141
+ 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}`), debug: Wn("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);glFragColor=mix(u_color,overlay_color,overlay_color.a);}", `#include "_prelude_terrain.vertex.glsl"
40142
40142
  in vec2 a_pos;
40143
40143
  #ifdef PROJECTION_GLOBE_VIEW
40144
40144
  in vec3 a_pos_3;
@@ -40149,7 +40149,7 @@ gl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);
40149
40149
  #else
40150
40150
  gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);
40151
40151
  #endif
40152
- }`), fill: qn(`#include "_prelude_fog.fragment.glsl"
40152
+ }`), fill: Wn(`#include "_prelude_fog.fragment.glsl"
40153
40153
  #include "_prelude_lighting.glsl"
40154
40154
  #pragma mapbox: define highp vec4 color
40155
40155
  #pragma mapbox: define lowp float opacity
@@ -40178,7 +40178,7 @@ gl_Position=u_matrix*vec4(a_pos,0,1);
40178
40178
  #ifdef FOG
40179
40179
  v_fog_pos=fog_position(a_pos);
40180
40180
  #endif
40181
- }`), fillOutline: qn(`#include "_prelude_fog.fragment.glsl"
40181
+ }`), fillOutline: Wn(`#include "_prelude_fog.fragment.glsl"
40182
40182
  #include "_prelude_lighting.glsl"
40183
40183
  in highp vec2 v_pos;uniform float u_emissive_strength;
40184
40184
  #pragma mapbox: define highp vec4 outline_color
@@ -40208,7 +40208,7 @@ gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.
40208
40208
  #ifdef FOG
40209
40209
  v_fog_pos=fog_position(a_pos);
40210
40210
  #endif
40211
- }`), fillOutlinePattern: qn(`#include "_prelude_fog.fragment.glsl"
40211
+ }`), fillOutlinePattern: Wn(`#include "_prelude_fog.fragment.glsl"
40212
40212
  #include "_prelude_lighting.glsl"
40213
40213
  uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_emissive_strength;in highp vec2 v_pos;in highp vec2 v_pos_world;
40214
40214
  #pragma mapbox: define lowp float opacity
@@ -40240,7 +40240,7 @@ vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(
40240
40240
  #ifdef FOG
40241
40241
  v_fog_pos=fog_position(a_pos);
40242
40242
  #endif
40243
- }`), fillPattern: qn(`#include "_prelude_fog.fragment.glsl"
40243
+ }`), fillPattern: Wn(`#include "_prelude_fog.fragment.glsl"
40244
40244
  #include "_prelude_lighting.glsl"
40245
40245
  uniform vec2 u_texsize;uniform sampler2D u_image;in vec2 v_pos;uniform float u_emissive_strength;
40246
40246
  #pragma mapbox: define lowp float opacity
@@ -40272,7 +40272,7 @@ vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern
40272
40272
  #ifdef FOG
40273
40273
  v_fog_pos=fog_position(a_pos);
40274
40274
  #endif
40275
- }`), fillExtrusion: qn(`#include "_prelude_fog.fragment.glsl"
40275
+ }`), fillExtrusion: Wn(`#include "_prelude_fog.fragment.glsl"
40276
40276
  #include "_prelude_shadow.fragment.glsl"
40277
40277
  #include "_prelude_lighting.glsl"
40278
40278
  in vec4 v_color;in vec4 v_flat;
@@ -40451,7 +40451,7 @@ float roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity)
40451
40451
  #ifdef FOG
40452
40452
  v_fog_pos=fog_position(pos);
40453
40453
  #endif
40454
- }`), fillExtrusionDepth: qn(`in highp float v_depth;void main() {
40454
+ }`), fillExtrusionDepth: Wn(`in highp float v_depth;void main() {
40455
40455
  #ifndef DEPTH_TEXTURE
40456
40456
  glFragColor=pack_depth(v_depth);
40457
40457
  #endif
@@ -40472,7 +40472,7 @@ bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);fl
40472
40472
  #else
40473
40473
  pos=vec3(pos_nx.xy,t > 0.0 ? height : base);
40474
40474
  #endif
40475
- float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);v_depth=gl_Position.z/gl_Position.w;}`), fillExtrusionPattern: qn(`#include "_prelude_fog.fragment.glsl"
40475
+ float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);v_depth=gl_Position.z/gl_Position.w;}`), fillExtrusionPattern: Wn(`#include "_prelude_fog.fragment.glsl"
40476
40476
  #include "_prelude_lighting.glsl"
40477
40477
  uniform vec2 u_texsize;uniform sampler2D u_image;
40478
40478
  #ifdef FAUX_AO
@@ -40579,7 +40579,7 @@ v_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolo
40579
40579
  #ifdef FOG
40580
40580
  v_fog_pos=fog_position(p);
40581
40581
  #endif
40582
- }`), groundShadow: qn(`#include "_prelude_shadow.fragment.glsl"
40582
+ }`), groundShadow: Wn(`#include "_prelude_shadow.fragment.glsl"
40583
40583
  precision highp float;uniform vec3 u_ground_shadow_factor;in vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;
40584
40584
  #ifdef FOG
40585
40585
  in float v_fog_opacity;
@@ -40603,7 +40603,7 @@ void main() {gl_Position=u_matrix*vec4(a_pos,0.0,1.0);v_pos_light_view_0=u_light
40603
40603
  #ifdef FOG
40604
40604
  v_fog_pos=fog_position(a_pos);v_fog_opacity=fog(v_fog_pos);
40605
40605
  #endif
40606
- }`), fillExtrusionGroundEffect: qn(`uniform highp float u_ao_pass;uniform highp float u_opacity;uniform highp float u_flood_light_intensity;uniform highp vec3 u_flood_light_color;uniform highp float u_attenuation;uniform sampler2D u_fb;uniform float u_fb_size;
40606
+ }`), fillExtrusionGroundEffect: Wn(`uniform highp float u_ao_pass;uniform highp float u_opacity;uniform highp float u_flood_light_intensity;uniform highp vec3 u_flood_light_color;uniform highp float u_attenuation;uniform sampler2D u_fb;uniform float u_fb_size;
40607
40607
  #ifdef SDF_SUBPASS
40608
40608
  in highp vec2 v_pos;in highp vec4 v_line_segment;in highp float v_flood_light_radius_tile;in highp vec2 v_ao;float line_df(highp vec2 a,highp vec2 b,highp vec2 p) {highp vec2 ba=b-a;highp vec2 pa=p-a;highp float r=clamp(dot(pa,ba)/dot(ba,ba),0.0,1.0);return length(pa-r*ba);}
40609
40609
  #ifdef FOG
@@ -40663,10 +40663,10 @@ float isFloodlit=float(fl_ground_radius > 0.0 && u_flood_light_intensity > 0.0);
40663
40663
  #ifdef RENDER_CUTOFF
40664
40664
  v_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);
40665
40665
  #endif
40666
- }`), hillshadePrepare: qn(`precision highp float;uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;float getElevation(vec2 coord) {return texture(u_image,coord).r/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(
40666
+ }`), hillshadePrepare: Wn(`precision highp float;uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;float getElevation(vec2 coord) {return texture(u_image,coord).r/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(
40667
40667
  (c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)
40668
40668
  )/pow(2.0,exaggeration+(19.2562-u_zoom));glFragColor=clamp(vec4(
40669
- deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);}`, "uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"), hillshade: qn(`#include "_prelude_fog.fragment.glsl"
40669
+ deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);}`, "uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"), hillshade: Wn(`#include "_prelude_fog.fragment.glsl"
40670
40670
  #include "_prelude_lighting.glsl"
40671
40671
  uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;uniform float u_emissive_strength;void main() {vec4 pixel=texture(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);glFragColor=accent_color*(1.0-shade_color.a)+shade_color;
40672
40672
  #ifdef LIGHTING_3D_MODE
@@ -40683,7 +40683,7 @@ uniform mat4 u_matrix;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void ma
40683
40683
  #ifdef FOG
40684
40684
  v_fog_pos=fog_position(a_pos);
40685
40685
  #endif
40686
- }`), line: qn(`#include "_prelude_fog.fragment.glsl"
40686
+ }`), line: Wn(`#include "_prelude_fog.fragment.glsl"
40687
40687
  #include "_prelude_lighting.glsl"
40688
40688
  uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;uniform lowp vec2 u_trim_fade_range;uniform lowp vec4 u_trim_color;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec4 v_uv;
40689
40689
  #ifdef RENDER_LINE_DASH
@@ -40807,7 +40807,7 @@ v_width2=vec2(outset,inset);
40807
40807
  #ifdef FOG
40808
40808
  v_fog_pos=fog_position(pos);
40809
40809
  #endif
40810
- }`), linePattern: qn(`#include "_prelude_fog.fragment.glsl"
40810
+ }`), linePattern: Wn(`#include "_prelude_fog.fragment.glsl"
40811
40811
  #include "_prelude_lighting.glsl"
40812
40812
  uniform highp float u_device_pixel_ratio;uniform highp float u_alpha_discard_threshold;uniform highp vec2 u_texsize;uniform highp float u_tile_units_to_pixels;uniform highp vec2 u_trim_offset;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in highp float v_linesofar;in float v_gamma_scale;in float v_width;
40813
40813
  #ifdef RENDER_LINE_TRIM_OFFSET
@@ -40902,7 +40902,7 @@ v_width=floorwidth+ANTIALIASING;mediump float pixels_to_tile_units=1.0/u_tile_un
40902
40902
  #ifdef FOG
40903
40903
  v_fog_pos=fog_position(pos);
40904
40904
  #endif
40905
- }`), raster: qn(`#include "_prelude_fog.fragment.glsl"
40905
+ }`), raster: Wn(`#include "_prelude_fog.fragment.glsl"
40906
40906
  #include "_prelude_lighting.glsl"
40907
40907
  #include "_prelude_raster_array.glsl"
40908
40908
  uniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;uniform highp float u_zoom_transition;in vec2 v_pos0;in vec2 v_pos1;in float v_depth;
@@ -40995,7 +40995,7 @@ v_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;v_pos0=u_texture_offset.x+u
40995
40995
  #ifdef RENDER_CUTOFF
40996
40996
  v_depth=gl_Position.z;
40997
40997
  #endif
40998
- }`), rasterParticle: qn(`#include "_prelude_fog.fragment.glsl"
40998
+ }`), rasterParticle: Wn(`#include "_prelude_fog.fragment.glsl"
40999
40999
  #include "_prelude_lighting.glsl"
41000
41000
  uniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;in vec2 v_pos0;in vec2 v_pos1;uniform sampler2D u_image0;uniform sampler2D u_image1;void main() {vec4 color0,color1,color;color0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 out_color=color.rgb;
41001
41001
  #ifdef LIGHTING_3D_MODE
@@ -41023,12 +41023,12 @@ uv=a_texture_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*w,u_raster_elevation*w,w
41023
41023
  v_fog_pos=fog_position(a_pos);
41024
41024
  #endif
41025
41025
  #endif
41026
- v_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`), rasterParticleDraw: qn("uniform sampler2D u_color_ramp;in float v_particle_speed;void main() {glFragColor=texture(u_color_ramp,vec2(v_particle_speed,0.5));}", `#include "_prelude_raster_particle.glsl"
41026
+ v_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`), rasterParticleDraw: Wn("uniform sampler2D u_color_ramp;in float v_particle_speed;void main() {glFragColor=texture(u_color_ramp,vec2(v_particle_speed,0.5));}", `#include "_prelude_raster_particle.glsl"
41027
41027
  in float a_index;uniform sampler2D u_particle_texture;uniform float u_particle_texture_side_len;uniform vec2 u_tile_offset;out float v_particle_speed;void main() {ivec2 pixel_coord=ivec2(
41028
- mod(a_index,u_particle_texture_side_len),a_index/u_particle_texture_side_len);vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);vec2 pos=unpack_pos_from_rgba(pixel)+u_tile_offset;vec2 tex_coord=fract(pos);vec2 velocity=lookup_velocity(tex_coord);if (velocity==INVALID_VELOCITY) {gl_Position=AWAY;v_particle_speed=0.0;} else {gl_Position=vec4(2.0*pos-1.0,0,1);v_particle_speed=length(velocity);}gl_PointSize=1.0;}`), rasterParticleTexture: qn("uniform sampler2D u_texture;uniform float u_opacity;in vec2 v_tex_pos;void main() {vec4 color=texture(u_texture,v_tex_pos);glFragColor=vec4(floor(255.0*color*u_opacity)/255.0);}", "in vec2 a_pos;out vec2 v_tex_pos;void main() {vec2 uv=0.5*a_pos+vec2(0.5);v_tex_pos=uv;gl_Position=vec4(a_pos,0.0,1.0);}"), rasterParticleUpdate: qn(`#include "_prelude_raster_particle.glsl"
41028
+ mod(a_index,u_particle_texture_side_len),a_index/u_particle_texture_side_len);vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);vec2 pos=unpack_pos_from_rgba(pixel)+u_tile_offset;vec2 tex_coord=fract(pos);vec2 velocity=lookup_velocity(tex_coord);if (velocity==INVALID_VELOCITY) {gl_Position=AWAY;v_particle_speed=0.0;} else {gl_Position=vec4(2.0*pos-1.0,0,1);v_particle_speed=length(velocity);}gl_PointSize=1.0;}`), rasterParticleTexture: Wn("uniform sampler2D u_texture;uniform float u_opacity;in vec2 v_tex_pos;void main() {vec4 color=texture(u_texture,v_tex_pos);glFragColor=vec4(floor(255.0*color*u_opacity)/255.0);}", "in vec2 a_pos;out vec2 v_tex_pos;void main() {vec2 uv=0.5*a_pos+vec2(0.5);v_tex_pos=uv;gl_Position=vec4(a_pos,0.0,1.0);}"), rasterParticleUpdate: Wn(`#include "_prelude_raster_particle.glsl"
41029
41029
  uniform sampler2D u_particle_texture;uniform mediump float u_particle_texture_side_len;uniform mediump float u_speed_factor;uniform highp float u_reset_rate;uniform highp float u_rand_seed;in highp vec2 v_tex_coord;vec2 linearstep(vec2 edge0,vec2 edge1,vec2 x) {return clamp((x-edge0)/(edge1-edge0),vec2(0),vec2(1));}const highp vec3 rand_constants=vec3(12.9898,78.233,4375.85453);highp float rand(const highp vec2 co) {highp float t=dot(rand_constants.xy,co);return fract(sin(t)*(rand_constants.z+t));}void main() {ivec2 pixel_coord=ivec2(v_tex_coord*u_particle_texture_side_len);highp vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);highp vec2 pos=unpack_pos_from_rgba(pixel);highp vec2 velocity=lookup_velocity(clamp(pos,0.0,1.0));highp vec2 dp=velocity==INVALID_VELOCITY ? vec2(0) : velocity*u_speed_factor;pos=pos+dp;highp vec2 seed=(pos+v_tex_coord)*u_rand_seed;highp vec2 random_pos=vec2(rand(seed+1.3),rand(seed+2.1));highp vec2 persist_rate=pow(
41030
41030
  linearstep(vec2(-u_particle_pos_offset),vec2(0),pos)*linearstep(vec2(1.0+u_particle_pos_offset),vec2(1),pos),vec2(4)
41031
- );highp vec2 per_frame_persist=pow(persist_rate,abs(dp)/u_particle_pos_offset);highp float drop_rate=1.0-per_frame_persist.x*per_frame_persist.y;drop_rate=any(greaterThanEqual(abs(pos-0.5),vec2(0.5+u_particle_pos_offset))) ? 1.0 : drop_rate;highp float drop=step(1.0-drop_rate-u_reset_rate,rand(seed));highp vec2 next_pos=mix(pos,random_pos,drop);glFragColor=pack_pos_to_rgba(next_pos);}`, "in vec2 a_pos;out vec2 v_tex_coord;void main() {v_tex_coord=0.5*(a_pos+vec2(1.0));gl_Position=vec4(a_pos,0.0,1.0);}"), symbolIcon: qn(`#include "_prelude_lighting.glsl"
41031
+ );highp vec2 per_frame_persist=pow(persist_rate,abs(dp)/u_particle_pos_offset);highp float drop_rate=1.0-per_frame_persist.x*per_frame_persist.y;drop_rate=any(greaterThanEqual(abs(pos-0.5),vec2(0.5+u_particle_pos_offset))) ? 1.0 : drop_rate;highp float drop=step(1.0-drop_rate-u_reset_rate,rand(seed));highp vec2 next_pos=mix(pos,random_pos,drop);glFragColor=pack_pos_to_rgba(next_pos);}`, "in vec2 a_pos;out vec2 v_tex_coord;void main() {v_tex_coord=0.5*(a_pos+vec2(1.0));gl_Position=vec4(a_pos,0.0,1.0);}"), symbolIcon: Wn(`#include "_prelude_lighting.glsl"
41032
41032
  uniform sampler2D u_texture;
41033
41033
  #ifdef ICON_TRANSITION
41034
41034
  uniform float u_icon_transition;
@@ -41145,7 +41145,7 @@ v_fade_opacity=out_fade_opacity;
41145
41145
  #ifdef OCCLUSION_QUERIES
41146
41146
  float occludedFadeMultiplier=mix(occlusion_opacity,1.0,a_occlusion_query_opacity);v_fade_opacity*=occludedFadeMultiplier;
41147
41147
  #endif
41148
- }`), symbolSDF: qn(`#include "_prelude_lighting.glsl"
41148
+ }`), symbolSDF: Wn(`#include "_prelude_lighting.glsl"
41149
41149
  #define SDF_PX 8.0
41150
41150
  uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;uniform bool u_is_halo;in float v_draw_halo;in vec2 v_data0;in vec3 v_data1;
41151
41151
  #pragma mapbox: define highp vec4 fill_color
@@ -41249,7 +41249,7 @@ vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec
41249
41249
  #else
41250
41250
  gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);
41251
41251
  #endif
41252
- float gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,out_fade_opacity);}`), symbolTextAndIcon: qn(`#include "_prelude_lighting.glsl"
41252
+ float gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,out_fade_opacity);}`), symbolTextAndIcon: Wn(`#include "_prelude_lighting.glsl"
41253
41253
  #define SDF_PX 8.0
41254
41254
  #define SDF 1.0
41255
41255
  #define ICON 0.0
@@ -41353,7 +41353,7 @@ vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec
41353
41353
  #else
41354
41354
  gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);
41355
41355
  #endif
41356
- float gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,out_fade_opacity,is_sdf);}`), terrainRaster: qn(`#include "_prelude_fog.fragment.glsl"
41356
+ float gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,out_fade_opacity,is_sdf);}`), terrainRaster: Wn(`#include "_prelude_fog.fragment.glsl"
41357
41357
  #include "_prelude_shadow.fragment.glsl"
41358
41358
  #include "_prelude_lighting.glsl"
41359
41359
  uniform sampler2D u_image0;in vec2 v_pos0;
@@ -41416,8 +41416,8 @@ v_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));
41416
41416
  #ifdef RENDER_SHADOWS
41417
41417
  vec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);
41418
41418
  #endif
41419
- }`), terrainDepth: qn("precision highp float;in float v_depth;void main() {glFragColor=pack_depth(v_depth);}", `#include "_prelude_terrain.vertex.glsl"
41420
- uniform mat4 u_matrix;in vec2 a_pos;out float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}`), skybox: qn(`#include "_prelude_fog.fragment.glsl"
41419
+ }`), terrainDepth: Wn("precision highp float;in float v_depth;void main() {glFragColor=pack_depth(v_depth);}", `#include "_prelude_terrain.vertex.glsl"
41420
+ uniform mat4 u_matrix;in vec2 a_pos;out float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}`), skybox: Wn(`#include "_prelude_fog.fragment.glsl"
41421
41421
  in lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(
41422
41422
  cos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=texture(u_cubemap,uv).rgb;
41423
41423
  #ifdef FOG
@@ -41427,7 +41427,7 @@ sky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+
41427
41427
  #ifdef OVERDRAW_INSPECTOR
41428
41428
  glFragColor=vec4(1.0);
41429
41429
  #endif
41430
- }`, af), skyboxGradient: qn(`#include "_prelude_fog.fragment.glsl"
41430
+ }`, af), skyboxGradient: Wn(`#include "_prelude_fog.fragment.glsl"
41431
41431
  in highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture(u_color_ramp,vec2(progress,0.5));
41432
41432
  #ifdef FOG
41433
41433
  color.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;
@@ -41436,7 +41436,7 @@ color*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);g
41436
41436
  #ifdef OVERDRAW_INSPECTOR
41437
41437
  glFragColor=vec4(1.0);
41438
41438
  #endif
41439
- }`, af), skyboxCapture: qn(`
41439
+ }`, af), skyboxCapture: Wn(`
41440
41440
  in highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;precision highp float;
41441
41441
  #define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)
41442
41442
  #define BETA_M vec3(21e-6,21e-6,21e-6)
@@ -41447,7 +41447,7 @@ in highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float
41447
41447
  #define ATMOSPHERE_RADIUS 6420e3
41448
41448
  #define SAMPLE_STEPS 10
41449
41449
  #define DENSITY_STEPS 4
41450
- float ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;glFragColor=vec4(color,1.0);}`, "in highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;out highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"), globeRaster: qn(`#include "_prelude_fog.fragment.glsl"
41450
+ float ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;glFragColor=vec4(color,1.0);}`, "in highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;out highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"), globeRaster: Wn(`#include "_prelude_fog.fragment.glsl"
41451
41451
  #include "_prelude_lighting.glsl"
41452
41452
  uniform sampler2D u_image0;uniform float u_far_z_cutoff;in vec2 v_pos0;
41453
41453
  #ifndef FOG
@@ -41516,7 +41516,7 @@ gl_Position=u_proj_matrix*interpolated_pos;
41516
41516
  #ifdef FOG
41517
41517
  v_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);
41518
41518
  #endif
41519
- }`), globeAtmosphere: qn(`#include "_prelude_fog.fragment.glsl"
41519
+ }`), globeAtmosphere: Wn(`#include "_prelude_fog.fragment.glsl"
41520
41520
  uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec4 u_color;uniform vec4 u_high_color;uniform vec4 u_space_color;uniform float u_horizon_angle;in highp vec3 v_ray_dir;in highp vec3 v_horizon_dir;void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;
41521
41521
  #ifdef PROJECTION_GLOBE_VIEW
41522
41522
  globe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {
@@ -41552,7 +41552,7 @@ glFragColor=vec4(c*t,t);
41552
41552
  #endif
41553
41553
  }`, `in vec3 a_pos;in vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;out highp vec3 v_ray_dir;out highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(
41554
41554
  mix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(
41555
- mix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}`), model: qn(`#include "_prelude_fog.fragment.glsl"
41555
+ mix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}`), model: Wn(`#include "_prelude_fog.fragment.glsl"
41556
41556
  #include "_prelude_shadow.fragment.glsl"
41557
41557
  #include "_prelude_lighting.glsl"
41558
41558
  uniform float u_opacity;uniform vec3 u_lightcolor;uniform vec3 u_lightpos;uniform float u_lightintensity;uniform vec4 u_baseColorFactor;uniform vec4 u_emissiveFactor;uniform float u_metallicFactor;uniform float u_roughnessFactor;uniform float u_emissive_strength;in highp vec4 v_position_height;in lowp vec4 v_color_mix;
@@ -41833,7 +41833,7 @@ vec3 offset=shadow_normal_offset_model(normalize(normal_3f));shadow_pos.xyz+=off
41833
41833
  #endif
41834
41834
  v_pos_light_view_0=u_light_matrix_0*shadow_pos;v_pos_light_view_1=u_light_matrix_1*shadow_pos;v_depth_shadows=gl_Position.w;
41835
41835
  #endif
41836
- }`), modelDepth: qn(`in highp float v_depth;void main() {
41836
+ }`), modelDepth: Wn(`in highp float v_depth;void main() {
41837
41837
  #ifndef DEPTH_TEXTURE
41838
41838
  glFragColor=pack_depth(v_depth);
41839
41839
  #endif
@@ -41858,9 +41858,9 @@ vec3 pos_color=instance[0].xyz;vec4 translate=instance[1];vec3 pos_a=floor(pos_c
41858
41858
  #else
41859
41859
  gl_Position=u_matrix*vec4(a_pos_3f,1);
41860
41860
  #endif
41861
- v_depth=gl_Position.z/gl_Position.w;}`), stars: qn(`in highp vec2 v_uv;in mediump float v_intensity;float shapeCircle(in vec2 uv)
41861
+ v_depth=gl_Position.z/gl_Position.w;}`), stars: Wn(`in highp vec2 v_uv;in mediump float v_intensity;float shapeCircle(in vec2 uv)
41862
41862
  {float beginFade=0.6;float lengthFromCenter=length(v_uv);return 1.0-clamp((lengthFromCenter-beginFade)/(1.0-beginFade),0.0,1.0);}void main() {float alpha=shapeCircle(v_uv);vec3 color=vec3(1.0,1.0,1.0);alpha*=v_intensity;glFragColor=vec4(color*alpha,alpha);HANDLE_WIREFRAME_DEBUG;}`, `
41863
- in vec3 a_pos_3f;in vec2 a_uv;in float a_size_scale;in float a_fade_opacity;uniform mat4 u_matrix;uniform vec3 u_up;uniform vec3 u_right;uniform float u_intensity_multiplier;out highp vec2 v_uv;out mediump float v_intensity;void main() {v_uv=a_uv;v_intensity=a_fade_opacity*u_intensity_multiplier;vec3 pos=a_pos_3f;pos+=a_uv.x*u_right*a_size_scale;pos+=a_uv.y*u_up*a_size_scale;gl_Position=u_matrix*vec4(pos,1.0);}`), occlusion: qn("uniform vec4 u_color;void main() {glFragColor=u_color;}", `#include "_prelude_terrain.vertex.glsl"
41863
+ in vec3 a_pos_3f;in vec2 a_uv;in float a_size_scale;in float a_fade_opacity;uniform mat4 u_matrix;uniform vec3 u_up;uniform vec3 u_right;uniform float u_intensity_multiplier;out highp vec2 v_uv;out mediump float v_intensity;void main() {v_uv=a_uv;v_intensity=a_fade_opacity*u_intensity_multiplier;vec3 pos=a_pos_3f;pos+=a_uv.x*u_right*a_size_scale;pos+=a_uv.y*u_up*a_size_scale;gl_Position=u_matrix*vec4(pos,1.0);}`), occlusion: Wn("uniform vec4 u_color;void main() {glFragColor=u_color;}", `#include "_prelude_terrain.vertex.glsl"
41864
41864
  in highp vec2 a_offset_xy;uniform highp vec3 u_anchorPos;uniform mat4 u_matrix;uniform vec2 u_screenSizePx;uniform vec2 u_occluderSizePx;void main() {vec3 world_pos=u_anchorPos;
41865
41865
  #ifdef TERRAIN
41866
41866
  float e=elevation(world_pos.xy);world_pos.z+=e;
@@ -41878,7 +41878,7 @@ vec4 projected_point=u_matrix*vec4(world_pos,1.0);projected_point.xy+=projected_
41878
41878
  s.includes(b) || s.push(b);
41879
41879
  }
41880
41880
  }
41881
- function qn(p, s) {
41881
+ function Wn(p, s) {
41882
41882
  const u = /#include\s+"([^"]+)"/g, m = /#pragma mapbox: ([\w\-]+) ([\w]+) ([\w]+) ([\w]+)/g;
41883
41883
  let v = s.match(/(attribute(\S*)|(^\s*|;)in) (highp |mediump |lowp )?([\w]+) ([\w]+)/gm);
41884
41884
  v && (v = v.map((P) => {
@@ -42261,7 +42261,7 @@ uniform ${B} ${V} u_${G};
42261
42261
  const u = o.aw(p, 3);
42262
42262
  o.ad.fromQuat(p, s), o.az(p, 3, u);
42263
42263
  }
42264
- function Wn(p, s) {
42264
+ function Zn(p, s) {
42265
42265
  const u = o.av.identity([]);
42266
42266
  return o.av.rotateZ(u, u, -s), o.av.rotateX(u, u, -p), u;
42267
42267
  }
@@ -42275,7 +42275,7 @@ uniform ${B} ${V} u_${G};
42275
42275
  if (o._.len(v) < 1e-15)
42276
42276
  return null;
42277
42277
  const b = Math.atan2(-v[1], v[0]);
42278
- return Wn(Math.atan2(Math.sqrt(p[0] * p[0] + p[1] * p[1]), -p[2]), b);
42278
+ return Zn(Math.atan2(Math.sqrt(p[0] * p[0] + p[1] * p[1]), -p[2]), b);
42279
42279
  }
42280
42280
  class fg {
42281
42281
  constructor(s, u) {
@@ -42298,7 +42298,7 @@ uniform ${B} ${V} u_${G};
42298
42298
  u || (u = [0, 0, 1]), u[2] = Math.abs(u[2]), this.orientation = Zr(S, u);
42299
42299
  }
42300
42300
  setPitchBearing(s, u) {
42301
- this.orientation = Wn(o.ab(s), o.ab(-u));
42301
+ this.orientation = Zn(o.ab(s), o.ab(-u));
42302
42302
  }
42303
42303
  }
42304
42304
  class Rc {
@@ -42328,7 +42328,7 @@ uniform ${B} ${V} u_${G};
42328
42328
  return { bearing: Math.atan2(-u[1], u[0]), pitch: Math.atan2(Math.sqrt(s[0] * s[0] + s[1] * s[1]), -s[2]) };
42329
42329
  }
42330
42330
  setPitchBearing(s, u) {
42331
- this._orientation = Wn(s, u), Zu(this._transform, this._orientation);
42331
+ this._orientation = Zn(s, u), Zu(this._transform, this._orientation);
42332
42332
  }
42333
42333
  forward() {
42334
42334
  const s = o.aw(this._transform, 2);
@@ -42885,8 +42885,8 @@ uniform ${B} ${V} u_${G};
42885
42885
  let Ct = $e, It = 1;
42886
42886
  if (B) {
42887
42887
  Ct = Re.aabb.distanceZ(K);
42888
- const fn = Math.pow(2, Re.zoom), vn = o.ay((Re.y + 1) / fn), $n = o.ay(Re.y / fn), ki = Math.min(Math.max(R, vn), $n), Un = o.b4(ki) / o.b4(R);
42889
- if (It = ki === R ? 1 / Math.max(1, this._mercatorScaleRatio - 0.3) : Math.min(1, Un / this._mercatorScaleRatio), this.zoom <= o.b1 && Re.zoom === Ce - 1 && Un >= 0.9)
42888
+ const fn = Math.pow(2, Re.zoom), vn = o.ay((Re.y + 1) / fn), Gn = o.ay(Re.y / fn), ki = Math.min(Math.max(R, vn), Gn), jn = o.b4(ki) / o.b4(R);
42889
+ if (It = ki === R ? 1 / Math.max(1, this._mercatorScaleRatio - 0.3) : Math.min(1, jn / this._mercatorScaleRatio), this.zoom <= o.b1 && Re.zoom === Ce - 1 && jn >= 0.9)
42890
42890
  return !0;
42891
42891
  } else if (b && (Ct = Re.aabb.distanceZ(K) * Y), this.projection.isReprojectedInTileSpace && m <= 5) {
42892
42892
  const fn = Math.pow(2, Re.zoom), vn = J(new o.Y((Re.x + 0.5) / fn, (Re.y + 0.5) / fn));
@@ -42963,7 +42963,7 @@ uniform ${B} ${V} u_${G};
42963
42963
  const fn = this.calculateProjMatrix(et.tileID.toUnwrapped());
42964
42964
  let vn;
42965
42965
  s.isTerrainDEM || (vn = Mn.getMinMaxForTile(et.tileID)), vn || (vn = { min: pe, max: ge });
42966
- const $n = o.b2(this.rotation), ki = [$n[0] * o.a3, $n[1] * o.a3, vn.max];
42966
+ const Gn = o.b2(this.rotation), ki = [Gn[0] * o.a3, Gn[1] * o.a3, vn.max];
42967
42967
  o._.transformMat4(ki, ki, fn), qt = (1 - ki[1]) * this.height * 0.5 < Ge;
42968
42968
  }
42969
42969
  return Ye < Re || qt;
@@ -45119,7 +45119,7 @@ ${m.vertexSource}`;
45119
45119
  const wt = s.getTile(At), Ye = wt.getBucket(u);
45120
45120
  if (!Ye || Ye.projection.name === "mercator" && Ct || Ye.fullyClipped)
45121
45121
  continue;
45122
- const qt = Ye.projection.name === "globe", Mn = qt ? o.a1(le.zoom) : 0, fn = ch(At, Ye.getProjection(), le), vn = le.calculatePixelsToTileUnitsMatrix(wt), $n = et && Ye.hasTextData(), ki = Ye.hasIconTextFit() && $n && Ye.hasIconData(), Un = Ye.getProjection().createInversionMatrix(le, At.canonical), _n = () => {
45122
+ const qt = Ye.projection.name === "globe", Mn = qt ? o.a1(le.zoom) : 0, fn = ch(At, Ye.getProjection(), le), vn = le.calculatePixelsToTileUnitsMatrix(wt), Gn = et && Ye.hasTextData(), ki = Ye.hasIconTextFit() && Gn && Ye.hasIconData(), jn = Ye.getProjection().createInversionMatrix(le, At.canonical), _n = () => {
45123
45123
  const Ei = Te && u.layout.get("symbol-placement") !== "point", nt = [];
45124
45124
  u.hasInitialOcclusionOpacityProperties && $e && p.symbolParams.useOcclusionQueries && !qt && !Ct && nt.push("OCCLUSION_QUERIES"), u.hasInitialOcclusionOpacityProperties || nt.push("SYMBOL_OCCLUSION_BY_TERRAIN_DEPTH");
45125
45125
  const Vt = Ei || ki, Cr = u.paint.get("icon-image-cross-fade").constantOr(0);
@@ -45131,10 +45131,10 @@ ${m.vertexSource}`;
45131
45131
  !Ct && !le.mercatorFromTransition || Te || ($a = Fc(le));
45132
45132
  const Ol = qt ? $a : Bt;
45133
45133
  if (Ye.sdfIcons && !Ye.iconsInText)
45134
- Jr = Ra(Ir.kind, $r, vs, Ce, p, ea, ta, Qs, !1, Vr, !0, At, Mn, Ge, Un, Ol, Ye.getProjection());
45134
+ Jr = Ra(Ir.kind, $r, vs, Ce, p, ea, ta, Qs, !1, Vr, !0, At, Mn, Ge, jn, Ol, Ye.getProjection());
45135
45135
  else {
45136
45136
  const Ga = u.getColorAdjustmentMatrix(K, re, oe, ae);
45137
- Jr = Wo(Ir.kind, $r, vs, Ce, p, ea, ta, Qs, !1, Vr, At, Mn, Ge, Un, Ol, Ye.getProjection(), Ga, Cr);
45137
+ Jr = Wo(Ir.kind, $r, vs, Ce, p, ea, ta, Qs, !1, Vr, At, Mn, Ge, jn, Ol, Ye.getProjection(), Ga, Cr);
45138
45138
  }
45139
45139
  const ou = wt.imageAtlasTexture ? wt.imageAtlasTexture : null, zl = u.layout.get("icon-size").constantOr(0) !== 1 || Ye.iconsNeedLinear, Nl = Ye.sdfIcons || p.options.rotating || p.options.zooming || zl || es ? J.LINEAR : J.NEAREST, Mh = Ye.sdfIcons && u.paint.get("icon-halo-width").constantOr(1) !== 0, Rh = p.terrain && Ce && Ei ? o.ad.invert(o.ad.create(), ks) : Pa;
45140
45140
  if (Ei && Ye.icon) {
@@ -45154,14 +45154,14 @@ ${m.vertexSource}`;
45154
45154
  !Ct && !le.mercatorFromTransition || Be || ($a = Fc(le));
45155
45155
  const Ol = qt ? $a : Bt;
45156
45156
  let ou;
45157
- ou = Ye.iconsInText ? wg(Ir.kind, es, vs, ye, p, ea, ta, Qs, $r, Jr, At, Mn, Ge, Un, Ol, Ye.getProjection()) : Ra(Ir.kind, es, vs, ye, p, ea, ta, Qs, !0, $r, !0, At, Mn, Ge, Un, Ol, Ye.getProjection());
45157
+ ou = Ye.iconsInText ? wg(Ir.kind, es, vs, ye, p, ea, ta, Qs, $r, Jr, At, Mn, Ge, jn, Ol, Ye.getProjection()) : Ra(Ir.kind, es, vs, ye, p, ea, ta, Qs, !0, $r, !0, At, Mn, Ge, jn, Ol, Ye.getProjection());
45158
45158
  const zl = wt.glyphAtlasTexture ? wt.glyphAtlasTexture : null, Nl = J.LINEAR, Mh = u.paint.get("text-halo-width").constantOr(1) !== 0, Rh = p.terrain && ye && Ei ? o.ad.invert(o.ad.create(), ks) : Pa;
45159
45159
  if (Ei && Ye.text) {
45160
45160
  const Ga = le.elevation, Gr = Ga ? Ga.getAtTileOffsetFunc(At, le.center.lat, le.worldSize, Ye.getProjection()) : null, bp = Pc(fn, wt.tileID.canonical, ye, Be, le, Ye.getProjection(), vn);
45161
45161
  pg(Ye, fn, p, !0, bp, Co, ye, X, Gr, At);
45162
45162
  }
45163
45163
  return { program: si, buffers: Ye.text, uniformValues: ou, atlasTexture: zl, atlasTextureIcon: Vr, atlasInterpolation: Nl, atlasInterpolationIcon: Ne, isSDF: !0, hasHalo: Mh, tile: wt, labelPlaneMatrixInv: Rh };
45164
- }, ui = Ye.icon.segments.get().length, Gn = Ye.text.segments.get().length, Tn = ui && !S.onlyText ? _n() : null, Ti = Gn && !S.onlyIcons ? xi() : null, Xi = u.paint.get("icon-opacity").constantOr(1), mi = u.paint.get("text-opacity").constantOr(1);
45164
+ }, ui = Ye.icon.segments.get().length, Hn = Ye.text.segments.get().length, Tn = ui && !S.onlyText ? _n() : null, Ti = Hn && !S.onlyIcons ? xi() : null, Xi = u.paint.get("icon-opacity").constantOr(1), mi = u.paint.get("text-opacity").constantOr(1);
45165
45165
  if (at && Ye.canOverlap) {
45166
45166
  rt = !0;
45167
45167
  const Ei = Xi && !S.onlyText ? Ye.icon.segments.get() : [], nt = mi && !S.onlyIcons ? Ye.text.segments.get() : [];
@@ -45242,39 +45242,39 @@ ${m.vertexSource}`;
45242
45242
  at && (At = at.getMaxCascadeForTile(Ct.toUnwrapped()) === 0);
45243
45243
  const wt = p.isTileAffectedByFog(Ct), Ye = Bt.programConfigurations.get(u.id), qt = p.getOrCreateProgram(Ge, { config: Ye, defines: At ? $e : ye, overrideFog: wt });
45244
45244
  if (p.terrain && p.terrain.setupElevationDraw(It, qt, { useMeterToDem: !0 }), !Bt.centroidVertexBuffer) {
45245
- const Un = qt.attributes.a_centroid_pos;
45246
- Un !== void 0 && P.vertexAttrib2f(Un, 0, 0);
45245
+ const jn = qt.attributes.a_centroid_pos;
45246
+ jn !== void 0 && P.vertexAttrib2f(jn, 0, 0);
45247
45247
  }
45248
45248
  !st && at && at.setupShadows(It.tileID.toUnwrapped(), qt, "vector-tile", It.tileID.overscaledZ), V && (p.context.activeTexture.set(P.TEXTURE0), It.imageAtlasTexture && It.imageAtlasTexture.bind(P.LINEAR, P.CLAMP_TO_EDGE), Ye.updatePaintBuffers());
45249
45249
  const Mn = B.constantOr(null);
45250
45250
  if (Mn && It.imageAtlas) {
45251
- const Un = It.imageAtlas.patternPositions[Mn.toString()];
45252
- Un && Ye.setConstantPatternPositions(Un);
45251
+ const jn = It.imageAtlas.patternPositions[Mn.toString()];
45252
+ jn && Ye.setConstantPatternPositions(jn);
45253
45253
  }
45254
45254
  const fn = u.paint.get("fill-extrusion-vertical-gradient");
45255
45255
  let vn;
45256
45256
  if (st && at) {
45257
45257
  if (hh(It.tileID, Bt, p))
45258
45258
  continue;
45259
- const Un = at.calculateShadowPassMatrixFromTile(It.tileID.toUnwrapped());
45260
- vn = zc(Un, oe, Te);
45259
+ const jn = at.calculateShadowPassMatrixFromTile(It.tileID.toUnwrapped());
45260
+ vn = zc(jn, oe, Te);
45261
45261
  } else {
45262
- const Un = p.translatePosMatrix(Ct.expandedProjMatrix, It, u.paint.get("fill-extrusion-translate"), u.paint.get("fill-extrusion-translate-anchor")), _n = O.projection.createInversionMatrix(O, Ct.canonical);
45263
- vn = V ? yl(Un, p, fn, G, X, oe, Ct, It, ae, pe, xe, _n, J, Te) : Oc(Un, p, fn, G, X, oe, Ct, ae, pe, xe, _n, J, Te, le, Re, Ce);
45262
+ const jn = p.translatePosMatrix(Ct.expandedProjMatrix, It, u.paint.get("fill-extrusion-translate"), u.paint.get("fill-extrusion-translate-anchor")), _n = O.projection.createInversionMatrix(O, Ct.canonical);
45263
+ vn = V ? yl(jn, p, fn, G, X, oe, Ct, It, ae, pe, xe, _n, J, Te) : Oc(jn, p, fn, G, X, oe, Ct, ae, pe, xe, _n, J, Te, le, Re, Ce);
45264
45264
  }
45265
45265
  p.uploadCommonUniforms(R, qt, Ct.toUnwrapped(), null, Be);
45266
- let $n = Bt.segments;
45267
- if (O.projection.name === "mercator" && !st && ($n = Bt.getVisibleSegments(It.tileID, p.terrain, p.transform.getFrustum(0)), !$n.get().length))
45266
+ let Gn = Bt.segments;
45267
+ if (O.projection.name === "mercator" && !st && (Gn = Bt.getVisibleSegments(It.tileID, p.terrain, p.transform.getFrustum(0)), !Gn.get().length))
45268
45268
  continue;
45269
45269
  if (et)
45270
45270
  if (st)
45271
- for (const Un of $n.get())
45272
- et.numRenderedVerticesInShadowPass += Un.primitiveLength;
45271
+ for (const jn of Gn.get())
45272
+ et.numRenderedVerticesInShadowPass += jn.primitiveLength;
45273
45273
  else
45274
- for (const Un of $n.get())
45275
- et.numRenderedVerticesInTransparentPass += Un.primitiveLength;
45274
+ for (const jn of Gn.get())
45275
+ et.numRenderedVerticesInTransparentPass += jn.primitiveLength;
45276
45276
  const ki = [];
45277
- (p.terrain || C) && ki.push(Bt.centroidVertexBuffer), ge && ki.push(Bt.layoutVertexExtBuffer), qt.draw(p, R.gl.TRIANGLES, v, b, S, o.af.backCCW, vn, u.id, Bt.layoutVertexBuffer, Bt.indexBuffer, $n, u.paint, p.transform.zoom, Ye, ki);
45277
+ (p.terrain || C) && ki.push(Bt.centroidVertexBuffer), ge && ki.push(Bt.layoutVertexExtBuffer), qt.draw(p, R.gl.TRIANGLES, v, b, S, o.af.backCCW, vn, u.id, Bt.layoutVertexBuffer, Bt.indexBuffer, Gn, u.paint, p.transform.zoom, Ye, ki);
45278
45278
  }
45279
45279
  p.shadowRenderer && (p.shadowRenderer.useNormalOffset = !1);
45280
45280
  }
@@ -45282,7 +45282,7 @@ ${m.vertexSource}`;
45282
45282
  const oe = p.context, ae = oe.gl, ge = p.transform, pe = p.transform.zoom, xe = [], J = Ia(p, u.paint.get("fill-extrusion-cutoff-fade-range"));
45283
45283
  P === "clear" ? (xe.push("CLEAR_SUBPASS"), re && (xe.push("CLEAR_FROM_TEXTURE"), oe.activeTexture.set(ae.TEXTURE0), re.bind(ae.LINEAR, ae.CLAMP_TO_EDGE))) : P === "sdf" && xe.push("SDF_SUBPASS"), X && xe.push("HAS_CENTROID"), J.shouldRenderCutoff && xe.push("RENDER_CUTOFF");
45284
45284
  const le = u.layout.get("fill-extrusion-edge-radius"), Te = (Be, Ce, ye, $e, st) => {
45285
- const at = Ce.programConfigurations.get(u.id), rt = p.isTileAffectedByFog(Be), Re = p.getOrCreateProgram("fillExtrusionGroundEffect", { config: at, defines: xe, overrideFog: rt }), Ge = ((Ct, It, Bt, At, wt, Ye, qt, Mn, fn, vn, $n) => ({ u_matrix: It, u_opacity: Bt, u_ao_pass: At ? 1 : 0, u_meter_to_tile: wt, u_ao: Ye, u_flood_light_intensity: qt, u_flood_light_color: Mn, u_attenuation: fn, u_edge_radius: vn, u_fb: 0, u_fb_size: $n }))(0, $e, O, R, st, [B, V * st], G, Z, Y, pe >= 17 ? 0 : le * st, re ? re.size[0] : 0), et = [];
45285
+ const at = Ce.programConfigurations.get(u.id), rt = p.isTileAffectedByFog(Be), Re = p.getOrCreateProgram("fillExtrusionGroundEffect", { config: at, defines: xe, overrideFog: rt }), Ge = ((Ct, It, Bt, At, wt, Ye, qt, Mn, fn, vn, Gn) => ({ u_matrix: It, u_opacity: Bt, u_ao_pass: At ? 1 : 0, u_meter_to_tile: wt, u_ao: Ye, u_flood_light_intensity: qt, u_flood_light_color: Mn, u_attenuation: fn, u_edge_radius: vn, u_fb: 0, u_fb_size: Gn }))(0, $e, O, R, st, [B, V * st], G, Z, Y, pe >= 17 ? 0 : le * st, re ? re.size[0] : 0), et = [];
45286
45286
  X && et.push(Ce.hiddenByLandmarkVertexBuffer), p.uploadCommonUniforms(oe, Re, Be.toUnwrapped(), null, J), Re.draw(p, oe.gl.TRIANGLES, v, b, S, C, Ge, u.id, Ce.vertexBuffer, Ce.indexBuffer, ye, u.paint, pe, at, et);
45287
45287
  };
45288
45288
  for (const Be of m) {
@@ -45491,12 +45491,12 @@ ${m.vertexSource}`;
45491
45491
  Z.draw(p, P.TRIANGLES, X, K, o.a.alphaBlended, o.af.disabled, oh(V, o.C.transparent, J), oe, le, Te, Be, null, null, null, [Y._globeTileDebugTextBuffer]);
45492
45492
  }
45493
45493
  function Gt(p, s, u, m) {
45494
- Jn(p, 0, s + u / 2, p.transform.width, u, m);
45494
+ Qn(p, 0, s + u / 2, p.transform.width, u, m);
45495
45495
  }
45496
45496
  function ni(p, s, u, m) {
45497
- Jn(p, s - u / 2, 0, u, p.transform.height, m);
45497
+ Qn(p, s - u / 2, 0, u, p.transform.height, m);
45498
45498
  }
45499
- function Jn(p, s, u, m, v, b) {
45499
+ function Qn(p, s, u, m, v, b) {
45500
45500
  const S = p.context, C = S.gl;
45501
45501
  C.enable(C.SCISSOR_TEST), C.scissor(s * o.e.devicePixelRatio, u * o.e.devicePixelRatio, m * o.e.devicePixelRatio, v * o.e.devicePixelRatio), S.clear({ color: b }), C.disable(C.SCISSOR_TEST);
45502
45502
  }
@@ -46132,33 +46132,33 @@ ${m.vertexSource}`;
46132
46132
  const Ye = p.transform;
46133
46133
  let qt;
46134
46134
  const Mn = C ? Uf(Ye) : [0, 0, 0, 0];
46135
- let fn, vn, $n, ki, Un, _n = 0;
46135
+ let fn, vn, Gn, ki, jn, _n = 0;
46136
46136
  if (R && B instanceof o.bm && B.coordinates.length > 3)
46137
- fn = Float32Array.from(o.bf(o.bg(new o.aO(0, 0, 0)))), vn = Float32Array.from(Ye.globeMatrix), $n = Float32Array.from(o.bb(Ye)), ki = [o.aj(Ye.center.lng), o.ak(Ye.center.lat)], qt = B.elevatedGlobePerspectiveTransform, Un = B.elevatedGlobeGridMatrix || new Float32Array(9);
46137
+ fn = Float32Array.from(o.bf(o.bg(new o.aO(0, 0, 0)))), vn = Float32Array.from(Ye.globeMatrix), Gn = Float32Array.from(o.bb(Ye)), ki = [o.aj(Ye.center.lng), o.ak(Ye.center.lat)], qt = B.elevatedGlobePerspectiveTransform, jn = B.elevatedGlobeGridMatrix || new Float32Array(9);
46138
46138
  else if (R) {
46139
46139
  const Tn = o.bc(le.canonical);
46140
- _n = o.bd(Tn.getCenter().lat), fn = Float32Array.from(o.bf(o.bg(le.canonical))), vn = Float32Array.from(Ye.globeMatrix), $n = Float32Array.from(o.bb(Ye)), ki = [o.aj(Ye.center.lng), o.ak(Ye.center.lat)], qt = [0, 0], Un = Float32Array.from(o.be(le.canonical, Tn, _n, Ye.worldSize / Ye._pixelsPerMercatorPixel));
46140
+ _n = o.bd(Tn.getCenter().lat), fn = Float32Array.from(o.bf(o.bg(le.canonical))), vn = Float32Array.from(Ye.globeMatrix), Gn = Float32Array.from(o.bb(Ye)), ki = [o.aj(Ye.center.lng), o.ak(Ye.center.lat)], qt = [0, 0], jn = Float32Array.from(o.be(le.canonical, Tn, _n, Ye.worldSize / Ye._pixelsPerMercatorPixel));
46141
46141
  } else
46142
- qt = B instanceof o.bm ? B.perspectiveTransform : [0, 0], fn = new Float32Array(16), vn = new Float32Array(9), $n = new Float32Array(16), ki = [0, 0], Un = new Float32Array(9);
46143
- const xi = Lf(Ge, fn, vn, $n, Un, wt || [0, 0], o.a1(p.transform.zoom), ki, Mn, At || 1, Bt, u, qt, C ? u.paint.get("raster-elevation") : 0, 2, $e, st, V.range, at, rt, G), ui = p.isTileAffectedByFog(le), Gn = p.getOrCreateProgram("raster", { defines: V.defines, overrideFog: ui });
46144
- if (p.uploadCommonUniforms(P, Gn, Te), B instanceof o.bm) {
46142
+ qt = B instanceof o.bm ? B.perspectiveTransform : [0, 0], fn = new Float32Array(16), vn = new Float32Array(9), Gn = new Float32Array(16), ki = [0, 0], jn = new Float32Array(9);
46143
+ const xi = Lf(Ge, fn, vn, Gn, jn, wt || [0, 0], o.a1(p.transform.zoom), ki, Mn, At || 1, Bt, u, qt, C ? u.paint.get("raster-elevation") : 0, 2, $e, st, V.range, at, rt, G), ui = p.isTileAffectedByFog(le), Hn = p.getOrCreateProgram("raster", { defines: V.defines, overrideFog: ui });
46144
+ if (p.uploadCommonUniforms(P, Hn, Te), B instanceof o.bm) {
46145
46145
  const Tn = B.elevatedGlobeVertexBuffer, Ti = B.elevatedGlobeIndexBuffer;
46146
46146
  if (Y || !S)
46147
- B.boundsBuffer && B.boundsSegments && Gn.draw(p, O.TRIANGLES, Re, o.ag.disabled, Z, o.af.disabled, xi, u.id, B.boundsBuffer, p.quadTriangleIndexBuffer, B.boundsSegments);
46147
+ B.boundsBuffer && B.boundsSegments && Hn.draw(p, O.TRIANGLES, Re, o.ag.disabled, Z, o.af.disabled, xi, u.id, B.boundsBuffer, p.quadTriangleIndexBuffer, B.boundsSegments);
46148
46148
  else if (Tn && Ti) {
46149
46149
  const Xi = Ye.zoom <= o.b1 ? B.elevatedGlobeSegments : B.getSegmentsForLongitude(Ye.center.lng);
46150
- Xi && Gn.draw(p, O.TRIANGLES, Re, o.ag.disabled, Z, xe, xi, u.id, Tn, Ti, Xi);
46150
+ Xi && Hn.draw(p, O.TRIANGLES, Re, o.ag.disabled, Z, xe, xi, u.id, Tn, Ti, Xi);
46151
46151
  }
46152
46152
  } else if (R) {
46153
46153
  Re = new o.ae(O.LEQUAL, o.ae.ReadOnly, p.depthRangeFor3D);
46154
46154
  const Tn = p.globeSharedBuffers;
46155
46155
  if (Tn) {
46156
46156
  const [Ti, Xi, mi] = Tn.getGridBuffers(_n, !1);
46157
- Gn.draw(p, O.TRIANGLES, Re, J || et, p.colorModeForRenderPass(), xe, xi, u.id, Ti, Xi, mi);
46157
+ Hn.draw(p, O.TRIANGLES, Re, J || et, p.colorModeForRenderPass(), xe, xi, u.id, Ti, Xi, mi);
46158
46158
  }
46159
46159
  } else {
46160
46160
  const { tileBoundsBuffer: Tn, tileBoundsIndexBuffer: Ti, tileBoundsSegments: Xi } = p.getTileBoundsBuffers(Be);
46161
- Gn.draw(p, O.TRIANGLES, Re, et, Z, o.af.disabled, xi, u.id, Tn, Ti, Xi);
46161
+ Hn.draw(p, O.TRIANGLES, Re, et, Z, o.af.disabled, xi, u.id, Tn, Ti, Xi);
46162
46162
  }
46163
46163
  }
46164
46164
  if (!(B instanceof o.bm) && R)
@@ -46464,8 +46464,8 @@ ${m.vertexSource}`;
46464
46464
  (function(At, wt, Ye, qt) {
46465
46465
  const Mn = At.terrain ? At.terrain.exaggeration() : 0, fn = At.transform.zoom;
46466
46466
  for (const vn of qt) {
46467
- const $n = wt.getTile(vn).getBucket(Ye);
46468
- $n && (At.conflationActive && $n.updateReplacement(vn, At.replacementSource), $n.evaluateScale(At, Ye), At.terrain && Mn > 0 && $n.elevationUpdate(At.terrain, Mn, vn, Ye.source), $n.needsReEvaluation(At, fn, Ye) && $n.evaluate(Ye));
46467
+ const Gn = wt.getTile(vn).getBucket(Ye);
46468
+ Gn && (At.conflationActive && Gn.updateReplacement(vn, At.replacementSource), Gn.evaluateScale(At, Ye), At.terrain && Mn > 0 && Gn.elevationUpdate(At.terrain, Mn, vn, Ye.source), Gn.needsReEvaluation(At, fn, Ye) && Gn.evaluate(Ye));
46469
46469
  }
46470
46470
  })(K, re, oe, ae), function() {
46471
46471
  let At, wt, Ye;
@@ -46476,33 +46476,33 @@ ${m.vertexSource}`;
46476
46476
  continue;
46477
46477
  let vn = !1;
46478
46478
  J && (vn = J.getMaxCascadeForTile(Mn.toUnwrapped()) === 0);
46479
- const $n = pe.calculatePosMatrix(Mn.toUnwrapped(), pe.worldSize), ki = fn.modelTraits, Un = [];
46479
+ const Gn = pe.calculatePosMatrix(Mn.toUnwrapped(), pe.worldSize), ki = fn.modelTraits, jn = [];
46480
46480
  for (const _n of fn.getNodesInfo()) {
46481
46481
  if (_n.hiddenByReplacement || !_n.node.meshes)
46482
46482
  continue;
46483
46483
  const xi = _n.node;
46484
46484
  let ui = 0;
46485
46485
  K.terrain && xi.elevation && (ui = xi.elevation * K.terrain.exaggeration());
46486
- const Gn = _n.evaluatedScale;
46487
- if (Gn[0] <= 1 && Gn[1] <= 1 && Gn[2] <= 1 && (() => {
46486
+ const Hn = _n.evaluatedScale;
46487
+ if (Hn[0] <= 1 && Hn[1] <= 1 && Hn[2] <= 1 && (() => {
46488
46488
  const si = _n.aabb;
46489
- return rt.min = [...si.min], rt.max = [...si.max], rt.min[2] += ui, rt.max[2] += ui, o._.transformMat4(rt.min, rt.min, $n), o._.transformMat4(rt.max, rt.max, $n), rt;
46489
+ return rt.min = [...si.min], rt.max = [...si.max], rt.min[2] += ui, rt.max[2] += ui, o._.transformMat4(rt.min, rt.min, Gn), o._.transformMat4(rt.max, rt.max, Gn), rt;
46490
46490
  })().intersects(Ge) === 0)
46491
46491
  continue;
46492
- const Tn = [...$n], Ti = xi.anchor ? xi.anchor[0] : 0, Xi = xi.anchor ? xi.anchor[1] : 0;
46493
- o.ad.translate(Tn, Tn, [Ti * (Gn[0] - 1), Xi * (Gn[1] - 1), ui]), o._.exactEquals(Gn, o.cj) || o.ad.scale(Tn, Tn, Gn);
46492
+ const Tn = [...Gn], Ti = xi.anchor ? xi.anchor[0] : 0, Xi = xi.anchor ? xi.anchor[1] : 0;
46493
+ o.ad.translate(Tn, Tn, [Ti * (Hn[0] - 1), Xi * (Hn[1] - 1), ui]), o._.exactEquals(Hn, o.cj) || o.ad.scale(Tn, Tn, Hn);
46494
46494
  const mi = o.ad.multiply([], Tn, xi.matrix), Ei = o.ad.multiply([], pe.expandedFarZProjMatrix, mi), nt = o.ad.multiply([], pe.expandedFarZProjMatrix, Tn), Vt = o.aA.transformMat4([], [Ti, Xi, ui, 1], Ei)[2];
46495
46495
  xi.hidden = !1;
46496
46496
  let Cr = $e;
46497
- Re || (Ct && (Cr *= $f(Tn, pe, _n.aabb, et)), Cr *= br(It, Vt)), Cr !== 0 ? Un.push({ nodeInfo: _n, depth: Vt, opacity: Cr, wvpForNode: Ei, wvpForTile: nt, nodeModelMatrix: mi, tileModelMatrix: Tn }) : xi.hidden = !0;
46497
+ Re || (Ct && (Cr *= $f(Tn, pe, _n.aabb, et)), Cr *= br(It, Vt)), Cr !== 0 ? jn.push({ nodeInfo: _n, depth: Vt, opacity: Cr, wvpForNode: Ei, wvpForTile: nt, nodeModelMatrix: mi, tileModelMatrix: Tn }) : xi.hidden = !0;
46498
46498
  }
46499
- Re || Un.sort((_n, xi) => !Ct || _n.opacity === 1 && xi.opacity === 1 ? _n.depth < xi.depth ? -1 : 1 : _n.opacity === 1 ? -1 : xi.opacity === 1 ? 1 : _n.depth > xi.depth ? -1 : 1);
46500
- for (const _n of Un) {
46499
+ Re || jn.sort((_n, xi) => !Ct || _n.opacity === 1 && xi.opacity === 1 ? _n.depth < xi.depth ? -1 : 1 : _n.opacity === 1 ? -1 : xi.opacity === 1 ? 1 : _n.depth > xi.depth ? -1 : 1);
46500
+ for (const _n of jn) {
46501
46501
  const xi = _n.nodeInfo, ui = xi.node;
46502
- let Gn = o.ad.multiply([], ye, _n.tileModelMatrix);
46503
- o.ad.multiply(Gn, Be, Gn);
46504
- const Tn = o.ad.invert([], Gn);
46505
- o.ad.transpose(Tn, Tn), o.ad.scale(Tn, Tn, Xo), Gn = o.ad.multiply(Gn, Gn, ui.matrix);
46502
+ let Hn = o.ad.multiply([], ye, _n.tileModelMatrix);
46503
+ o.ad.multiply(Hn, Be, Hn);
46504
+ const Tn = o.ad.invert([], Hn);
46505
+ o.ad.transpose(Tn, Tn), o.ad.scale(Tn, Tn, Xo), Hn = o.ad.multiply(Hn, Hn, ui.matrix);
46506
46506
  const Ti = K.renderPass === "light-beam", Xi = ki & o.cl.HasMapboxMeshFeatures, mi = Xi ? 0 : xi.evaluatedRMEA[0][2];
46507
46507
  for (let Ei = 0; Ei < ui.meshes.length; ++Ei) {
46508
46508
  const nt = ui.meshes[Ei], Vt = Ei === ui.lightMeshIndex;
@@ -46535,7 +46535,7 @@ ${m.vertexSource}`;
46535
46535
  !Re && J && J.setupShadowsFromMatrix(_n.tileModelMatrix, $r, J.useNormalOffset), K.uploadCommonUniforms(ge, $r, null, Jr);
46536
46536
  const es = Vr.pbrMetallicRoughness;
46537
46537
  es.metallicFactor = 0.9, es.roughnessFactor = 0.5;
46538
- const ks = zf(new Float32Array(Cr), new Float32Array(Gn), new Float32Array(Tn), new Float32Array(ui.matrix), K, _n.opacity, es.baseColorFactor.toRenderColor(null), Vr.emissiveFactor, es.metallicFactor, es.roughnessFactor, Vr, mi, oe, [0, 0, 0], Ir);
46538
+ const ks = zf(new Float32Array(Cr), new Float32Array(Hn), new Float32Array(Tn), new Float32Array(ui.matrix), K, _n.opacity, es.baseColorFactor.toRenderColor(null), Vr.emissiveFactor, es.metallicFactor, es.roughnessFactor, Vr, mi, oe, [0, 0, 0], Ir);
46539
46539
  !Vt && (xi.hasTranslucentParts || _n.opacity < 1) && $r.draw(K, ge.gl.TRIANGLES, st, o.ag.disabled, o.a.disabled, o.af.backCCW, ks, oe.id, nt.vertexBuffer, nt.indexBuffer, nt.segments, oe.paint, K.transform.zoom, void 0, Ne), $r.draw(K, ge.gl.TRIANGLES, Vt ? at : st, o.ag.disabled, Vt || _n.opacity < 1 || xi.hasTranslucentParts ? o.a.alphaBlended : o.a.unblended, o.af.backCCW, ks, oe.id, nt.vertexBuffer, nt.indexBuffer, nt.segments, oe.paint, K.transform.zoom, void 0, Ne);
46540
46540
  }
46541
46541
  }
@@ -46943,7 +46943,7 @@ ${m.vertexSource}`;
46943
46943
  Gt(J, J.transform.height - (le.top || 0), 3, Mg), Gt(J, le.bottom || 0, 3, fh), ni(J, le.left || 0, 3, jf), ni(J, J.transform.width - (le.right || 0), 3, ms);
46944
46944
  const Te = J.transform.centerPoint;
46945
46945
  (function(Be, Ce, ye, $e) {
46946
- Jn(Be, Ce - 1, ye - 10, 2, 20, $e), Jn(Be, Ce - 10, ye - 1, 20, 2, $e);
46946
+ Qn(Be, Ce - 1, ye - 10, 2, 20, $e), Qn(Be, Ce - 10, ye - 1, 20, 2, $e);
46947
46947
  })(J, Te.x, J.transform.height - Te.y, Vf);
46948
46948
  }(this), this.context.setDefault(), this.frameCounter = (this.frameCounter + 1) % Number.MAX_SAFE_INTEGER, this.tileLoaded && this.options.speedIndexTiming && (this.loadTimeStamps.push(performance.now()), this.saveCanvasCopy()), P || (this.conflationActive = !1);
46949
46949
  }
@@ -47406,12 +47406,12 @@ ${m.vertexSource}`;
47406
47406
  "ref" in p[u] && (p[u] = Kc(p[u], s[p[u].ref]));
47407
47407
  return p;
47408
47408
  }
47409
- const Zn = { setStyle: "setStyle", addLayer: "addLayer", removeLayer: "removeLayer", setPaintProperty: "setPaintProperty", setLayoutProperty: "setLayoutProperty", setSlot: "setSlot", setFilter: "setFilter", addSource: "addSource", removeSource: "removeSource", setGeoJSONSourceData: "setGeoJSONSourceData", setLayerZoomRange: "setLayerZoomRange", setLayerProperty: "setLayerProperty", setCenter: "setCenter", setZoom: "setZoom", setBearing: "setBearing", setPitch: "setPitch", setSprite: "setSprite", setGlyphs: "setGlyphs", setTransition: "setTransition", setLight: "setLight", setTerrain: "setTerrain", setFog: "setFog", setCamera: "setCamera", setLights: "setLights", setProjection: "setProjection", addImport: "addImport", removeImport: "removeImport", updateImport: "updateImport" };
47409
+ const Yn = { setStyle: "setStyle", addLayer: "addLayer", removeLayer: "removeLayer", setPaintProperty: "setPaintProperty", setLayoutProperty: "setLayoutProperty", setSlot: "setSlot", setFilter: "setFilter", addSource: "addSource", removeSource: "removeSource", setGeoJSONSourceData: "setGeoJSONSourceData", setLayerZoomRange: "setLayerZoomRange", setLayerProperty: "setLayerProperty", setCenter: "setCenter", setZoom: "setZoom", setBearing: "setBearing", setPitch: "setPitch", setSprite: "setSprite", setGlyphs: "setGlyphs", setTransition: "setTransition", setLight: "setLight", setTerrain: "setTerrain", setFog: "setFog", setCamera: "setCamera", setLights: "setLights", setProjection: "setProjection", addImport: "addImport", removeImport: "removeImport", updateImport: "updateImport" };
47410
47410
  function Hf(p, s, u) {
47411
- u.push({ command: Zn.addSource, args: [p, s[p]] });
47411
+ u.push({ command: Yn.addSource, args: [p, s[p]] });
47412
47412
  }
47413
47413
  function Jc(p, s, u) {
47414
- s.push({ command: Zn.removeSource, args: [p] }), u[p] = !0;
47414
+ s.push({ command: Yn.removeSource, args: [p] }), u[p] = !0;
47415
47415
  }
47416
47416
  function Ks(p, s, u, m) {
47417
47417
  Jc(p, u, m), Hf(p, s, u);
@@ -47640,19 +47640,19 @@ ${m.vertexSource}`;
47640
47640
  let Ye = [];
47641
47641
  if (At.length > 0) {
47642
47642
  let qt = 1 / 0, Mn = -1 / 0, fn = 1 / 0, vn = -1 / 0;
47643
- for (const $n of At)
47644
- qt = Math.min(qt, $n[0]), fn = Math.min(fn, $n[1]), Mn = Math.max(Mn, $n[0]), vn = Math.max(vn, $n[1]);
47645
- Mn >= Re.x && qt <= Ge.x && vn >= Re.y && fn <= Ge.y && (Ye = [At.map(($n) => new o.P($n[0], $n[1]))], (qt < Re.x || Mn > Ge.x || fn < Re.y || vn > Ge.y) && (Ye = o.cF(Ye, Re.x, Re.y, Ge.x, Ge.y)));
47643
+ for (const Gn of At)
47644
+ qt = Math.min(qt, Gn[0]), fn = Math.min(fn, Gn[1]), Mn = Math.max(Mn, Gn[0]), vn = Math.max(vn, Gn[1]);
47645
+ Mn >= Re.x && qt <= Ge.x && vn >= Re.y && fn <= Ge.y && (Ye = [At.map((Gn) => new o.P(Gn[0], Gn[1]))], (qt < Re.x || Mn > Ge.x || fn < Re.y || vn > Ge.y) && (Ye = o.cF(Ye, Re.x, Re.y, Ge.x, Ge.y)));
47646
47646
  }
47647
47647
  for (const qt of Ye) {
47648
47648
  et.reset(qt, 0.25 * rt);
47649
47649
  let Mn = 0;
47650
47650
  Mn = et.length <= 0.5 * rt ? 1 : Math.ceil(et.paddedLength / wt) + 1;
47651
47651
  for (let fn = 0; fn < Mn; fn++) {
47652
- const vn = fn / Math.max(Mn - 1, 1), $n = et.lerp(vn), ki = $n.x + Jo, Un = $n.y + Jo;
47653
- X.push(ki, Un, rt, 0);
47654
- const _n = ki - rt, xi = Un - rt, ui = ki + rt, Gn = Un + rt;
47655
- if (at = at && this.isOffscreen(_n, xi, ui, Gn), st = st || this.isInsideGrid(_n, xi, ui, Gn), !u && this.grid.hitTestCircle(ki, Un, rt, V) && ($e = !0, !O))
47652
+ const vn = fn / Math.max(Mn - 1, 1), Gn = et.lerp(vn), ki = Gn.x + Jo, jn = Gn.y + Jo;
47653
+ X.push(ki, jn, rt, 0);
47654
+ const _n = ki - rt, xi = jn - rt, ui = ki + rt, Hn = jn + rt;
47655
+ if (at = at && this.isOffscreen(_n, xi, ui, Hn), st = st || this.isInsideGrid(_n, xi, ui, Hn), !u && this.grid.hitTestCircle(ki, jn, rt, V) && ($e = !0, !O))
47656
47656
  return { circles: [], offscreen: !1, collisionDetected: $e, occluded: !1 };
47657
47657
  }
47658
47658
  }
@@ -47812,12 +47812,12 @@ ${m.vertexSource}`;
47812
47812
  const { crossTileID: st, numVerticalGlyphVertices: at } = Ce;
47813
47813
  if (O) {
47814
47814
  const ui = { zoom: this.transform.zoom, pitch: this.transform.pitch };
47815
- let Gn = null;
47815
+ let Hn = null;
47816
47816
  if (O.dynamicFilterNeedsFeature) {
47817
47817
  const Tn = this.retainedQueryData[b.bucketInstanceId];
47818
- Gn = O.featureIndex.loadFeature({ featureIndex: Ce.featureIndex, bucketIndex: Tn.bucketIndex, sourceLayerIndex: Tn.sourceLayerIndex, layoutVertexArrayOffset: 0 });
47818
+ Hn = O.featureIndex.loadFeature({ featureIndex: Ce.featureIndex, bucketIndex: Tn.bucketIndex, sourceLayerIndex: Tn.sourceLayerIndex, layoutVertexArrayOffset: 0 });
47819
47819
  }
47820
- if (!(0, O.dynamicFilter)(ui, Gn, this.retainedQueryData[b.bucketInstanceId].tileID.canonical, new o.P(Ce.tileAnchorX, Ce.tileAnchorY), this.transform.calculateDistanceTileData(O.unwrappedTileID)))
47820
+ if (!(0, O.dynamicFilter)(ui, Hn, this.retainedQueryData[b.bucketInstanceId].tileID.canonical, new o.P(Ce.tileAnchorX, Ce.tileAnchorY), this.transform.calculateDistanceTileData(O.unwrappedTileID)))
47821
47821
  return this.placements[st] = new Ps(!1, !1, !1, !0), void u.add(st);
47822
47822
  }
47823
47823
  if (u.has(st))
@@ -47826,13 +47826,13 @@ ${m.vertexSource}`;
47826
47826
  return void (this.placements[st] = new Ps(!1, !1, !1));
47827
47827
  let rt = !1, Re = !1, Ge = !0, et = !1, Ct = !1, It = null, Bt = { box: null, offscreen: null, occluded: null }, At = { box: null, offscreen: null, occluded: null }, wt = null, Ye = null, qt = null, Mn = 0, fn = 0, vn = 0;
47828
47828
  $e.textFeatureIndex ? Mn = $e.textFeatureIndex : Ce.useRuntimeCollisionCircles && (Mn = Ce.featureIndex), $e.verticalTextFeatureIndex && (fn = $e.verticalTextFeatureIndex);
47829
- const $n = (ui) => {
47829
+ const Gn = (ui) => {
47830
47830
  ui.tileID = this.retainedQueryData[b.bucketInstanceId].tileID;
47831
- const Gn = this.transform.elevation;
47832
- ui.elevation = Ce.zOffset + (Gn ? Gn.getAtTileOffset(ui.tileID, ui.tileAnchorX, ui.tileAnchorY) : 0);
47831
+ const Hn = this.transform.elevation;
47832
+ ui.elevation = Ce.zOffset + (Hn ? Hn.getAtTileOffset(ui.tileID, ui.tileAnchorX, ui.tileAnchorY) : 0);
47833
47833
  }, ki = $e.textBox;
47834
47834
  if (ki) {
47835
- $n(ki);
47835
+ Gn(ki);
47836
47836
  const ui = (Tn) => {
47837
47837
  let Ti = o.aE.horizontal;
47838
47838
  if (b.allowVerticalPlacement && !Tn && this.prevPlacement) {
@@ -47840,7 +47840,7 @@ ${m.vertexSource}`;
47840
47840
  Xi && (this.placedOrientations[st] = Xi, Ti = Xi, this.markUsedOrientation(b, Ti, Ce));
47841
47841
  }
47842
47842
  return Ti;
47843
- }, Gn = (Tn, Ti) => {
47843
+ }, Hn = (Tn, Ti) => {
47844
47844
  if (b.allowVerticalPlacement && at > 0 && $e.verticalTextBox) {
47845
47845
  for (const Xi of b.writingModes)
47846
47846
  if (Xi === o.aE.vertical ? (Bt = Ti(), At = Bt) : Bt = Tn(), Bt && Bt.box && Bt.box.length)
@@ -47856,7 +47856,7 @@ ${m.vertexSource}`;
47856
47856
  }
47857
47857
  const Ti = (mi, Ei, nt) => {
47858
47858
  const Vt = b.getSymbolInstanceTextSize(Z, Ce, this.transform.zoom, ye), Cr = (mi.x2 - mi.x1) * Vt + 2 * mi.padding, si = (mi.y2 - mi.y1) * Vt + 2 * mi.padding, Ne = Ce.hasIconTextFit && !ae ? Ei : null;
47859
- Ne && $n(Ne);
47859
+ Ne && Gn(Ne);
47860
47860
  let Jr = { box: [], offscreen: !1, occluded: !1 };
47861
47861
  const Vr = oe ? 2 * Tn.length : Tn.length;
47862
47862
  for (let Ir = 0; Ir < Vr; ++Ir) {
@@ -47868,9 +47868,9 @@ ${m.vertexSource}`;
47868
47868
  }
47869
47869
  return Jr;
47870
47870
  };
47871
- Gn(() => Ti(ki, $e.iconBox, o.aE.horizontal), () => {
47871
+ Hn(() => Ti(ki, $e.iconBox, o.aE.horizontal), () => {
47872
47872
  const mi = $e.verticalTextBox;
47873
- return mi && $n(mi), b.allowVerticalPlacement && !(Bt && Bt.box && Bt.box.length) && at > 0 && mi ? Ti(mi, $e.verticalIconBox, o.aE.vertical) : { box: null, offscreen: null, occluded: null };
47873
+ return mi && Gn(mi), b.allowVerticalPlacement && !(Bt && Bt.box && Bt.box.length) && at > 0 && mi ? Ti(mi, $e.verticalIconBox, o.aE.vertical) : { box: null, offscreen: null, occluded: null };
47874
47874
  }), Bt && (rt = Bt.box, Ge = Bt.offscreen, et = Bt.occluded);
47875
47875
  const Xi = ui(!(!Bt || !Bt.box));
47876
47876
  if (!rt && this.prevPlacement) {
@@ -47882,31 +47882,31 @@ ${m.vertexSource}`;
47882
47882
  const mi = b.getSymbolInstanceTextSize(Z, Ce, this.transform.zoom, ye), Ei = this.collisionIndex.placeCollisionBox(b, mi, Ti, new o.P(0, 0), oe, B, C, X.predicate);
47883
47883
  return Ei && Ei.box && Ei.box.length && (this.markUsedOrientation(b, Xi, Ce), this.placedOrientations[st] = Xi), Ei;
47884
47884
  };
47885
- Gn(() => Tn(ki, o.aE.horizontal), () => {
47885
+ Hn(() => Tn(ki, o.aE.horizontal), () => {
47886
47886
  const Ti = $e.verticalTextBox;
47887
- return b.allowVerticalPlacement && at > 0 && Ti ? ($n(Ti), Tn(Ti, o.aE.vertical)) : { box: null, offscreen: null, occluded: null };
47887
+ return b.allowVerticalPlacement && at > 0 && Ti ? (Gn(Ti), Tn(Ti, o.aE.vertical)) : { box: null, offscreen: null, occluded: null };
47888
47888
  }), ui(!!(Bt && Bt.box && Bt.box.length));
47889
47889
  }
47890
47890
  }
47891
47891
  if (wt = Bt, rt = wt && wt.box && wt.box.length > 0, Ge = wt && wt.offscreen, et = wt && wt.occluded, Ce.useRuntimeCollisionCircles) {
47892
- const ui = b.text.placedSymbolArray.get(Ce.centerJustifiedTextSymbolIndex >= 0 ? Ce.centerJustifiedTextSymbolIndex : Ce.verticalPlacedTextSymbolIndex), Gn = o.aF(b.textSizeData, Z, ui), Tn = S.get("text-padding");
47893
- Ye = this.collisionIndex.placeCollisionCircles(b, oe, ui, b.lineVertexArray, b.glyphOffsetArray, Gn, C, R, P, m, pe, X.predicate, Ce.collisionCircleDiameter * Gn / o.bN, Tn, this.retainedQueryData[b.bucketInstanceId].tileID), rt = oe || Ye.circles.length > 0 && !Ye.collisionDetected, Ge = Ge && Ye.offscreen, et = Ye.occluded;
47892
+ const ui = b.text.placedSymbolArray.get(Ce.centerJustifiedTextSymbolIndex >= 0 ? Ce.centerJustifiedTextSymbolIndex : Ce.verticalPlacedTextSymbolIndex), Hn = o.aF(b.textSizeData, Z, ui), Tn = S.get("text-padding");
47893
+ Ye = this.collisionIndex.placeCollisionCircles(b, oe, ui, b.lineVertexArray, b.glyphOffsetArray, Hn, C, R, P, m, pe, X.predicate, Ce.collisionCircleDiameter * Hn / o.bN, Tn, this.retainedQueryData[b.bucketInstanceId].tileID), rt = oe || Ye.circles.length > 0 && !Ye.collisionDetected, Ge = Ge && Ye.offscreen, et = Ye.occluded;
47894
47894
  }
47895
47895
  if ($e.iconFeatureIndex && (vn = $e.iconFeatureIndex), $e.iconBox) {
47896
- const ui = (Gn) => {
47897
- $n(Gn);
47896
+ const ui = (Hn) => {
47897
+ Gn(Hn);
47898
47898
  const Tn = Ce.hasIconTextFit && It ? Oa(It.x, It.y, ge, pe, this.transform.angle) : new o.P(0, 0), Ti = b.getSymbolInstanceIconSize(Y, this.transform.zoom, Ce.placedIconSymbolIndex);
47899
- return this.collisionIndex.placeCollisionBox(b, Ti, Gn, Tn, ae, B, C, X.predicate);
47899
+ return this.collisionIndex.placeCollisionBox(b, Ti, Hn, Tn, ae, B, C, X.predicate);
47900
47900
  };
47901
47901
  At && At.box && At.box.length && $e.verticalIconBox ? (qt = ui($e.verticalIconBox), Re = qt.box.length > 0) : (qt = ui($e.iconBox), Re = qt.box.length > 0), Ge = Ge && qt.offscreen, Ct = qt.occluded;
47902
47902
  }
47903
- const Un = K || Ce.numHorizontalGlyphVertices === 0 && at === 0, _n = re || Ce.numIconVertices === 0;
47904
- if (Un || _n ? _n ? Un || (Re = Re && rt) : rt = Re && rt : Re = rt = Re && rt, rt && wt && wt.box && this.collisionIndex.insertCollisionBox(wt.box, S.get("text-ignore-placement"), b.bucketInstanceId, At && At.box && fn ? fn : Mn, X.ID), Re && qt && this.collisionIndex.insertCollisionBox(qt.box, S.get("icon-ignore-placement"), b.bucketInstanceId, vn, X.ID), Ye && (rt && this.collisionIndex.insertCollisionCircles(Ye.circles, S.get("text-ignore-placement"), b.bucketInstanceId, Mn, X.ID), m)) {
47903
+ const jn = K || Ce.numHorizontalGlyphVertices === 0 && at === 0, _n = re || Ce.numIconVertices === 0;
47904
+ if (jn || _n ? _n ? jn || (Re = Re && rt) : rt = Re && rt : Re = rt = Re && rt, rt && wt && wt.box && this.collisionIndex.insertCollisionBox(wt.box, S.get("text-ignore-placement"), b.bucketInstanceId, At && At.box && fn ? fn : Mn, X.ID), Re && qt && this.collisionIndex.insertCollisionBox(qt.box, S.get("icon-ignore-placement"), b.bucketInstanceId, vn, X.ID), Ye && (rt && this.collisionIndex.insertCollisionCircles(Ye.circles, S.get("text-ignore-placement"), b.bucketInstanceId, Mn, X.ID), m)) {
47905
47905
  const ui = b.bucketInstanceId;
47906
- let Gn = this.collisionCircleArrays[ui];
47907
- Gn === void 0 && (Gn = this.collisionCircleArrays[ui] = new vh());
47906
+ let Hn = this.collisionCircleArrays[ui];
47907
+ Hn === void 0 && (Hn = this.collisionCircleArrays[ui] = new vh());
47908
47908
  for (let Tn = 0; Tn < Ye.circles.length; Tn += 4)
47909
- Gn.circles.push(Ye.circles[Tn + 0]), Gn.circles.push(Ye.circles[Tn + 1]), Gn.circles.push(Ye.circles[Tn + 2]), Gn.circles.push(Ye.collisionDetected ? 1 : 0);
47909
+ Hn.circles.push(Ye.circles[Tn + 0]), Hn.circles.push(Ye.circles[Tn + 1]), Hn.circles.push(Ye.circles[Tn + 2]), Hn.circles.push(Ye.collisionDetected ? 1 : 0);
47910
47910
  }
47911
47911
  const xi = b.projection.name !== "globe";
47912
47912
  le = le && (xi || !et), Te = Te && (xi || !Ct), this.placements[st] = new Ps(rt || le, Re || Te, Ge || b.justReloaded), u.add(st);
@@ -48226,7 +48226,7 @@ ${m.vertexSource}`;
48226
48226
  u[m] || delete this.layerIndexes[m];
48227
48227
  }
48228
48228
  }
48229
- const F1 = new o.N({ data: new o.O(o.L.colorTheme.data) }), Js = (p, s) => En(p, s && s.filter((u) => u.identifier !== "source.canvas")), Fg = o.ah(Zn, ["addLayer", "removeLayer", "setLights", "setPaintProperty", "setLayoutProperty", "setSlot", "setFilter", "addSource", "removeSource", "setLayerZoomRange", "setLight", "setTransition", "setGeoJSONSourceData", "setTerrain", "setFog", "setProjection", "setCamera", "addImport", "removeImport", "updateImport"]), Jf = o.ah(Zn, ["setCenter", "setZoom", "setBearing", "setPitch"]), Ug = { version: 8, layers: [], sources: {} }, jg = { duration: 300, delay: 0 };
48229
+ const F1 = new o.N({ data: new o.O(o.L.colorTheme.data) }), Js = (p, s) => En(p, s && s.filter((u) => u.identifier !== "source.canvas")), Fg = o.ah(Yn, ["addLayer", "removeLayer", "setLights", "setPaintProperty", "setLayoutProperty", "setSlot", "setFilter", "addSource", "removeSource", "setLayerZoomRange", "setLight", "setTransition", "setGeoJSONSourceData", "setTerrain", "setFog", "setProjection", "setCamera", "addImport", "removeImport", "updateImport"]), Jf = o.ah(Yn, ["setCenter", "setZoom", "setBearing", "setPitch"]), Ug = { version: 8, layers: [], sources: {} }, jg = { duration: 300, delay: 0 };
48230
48230
  class Qo extends o.E {
48231
48231
  constructor(s, u = {}) {
48232
48232
  super(), this.map = s, this.scope = u.scope || "", this.globalId = null, this.fragments = [], this.importDepth = u.importDepth || 0, this.importsCache = u.importsCache || /* @__PURE__ */ new Map(), this.resolvedImports = u.resolvedImports || /* @__PURE__ */ new Set(), this.transition = o.W({}, jg), this._buildingIndex = new Xc(this), this.crossTileSymbolIndex = new Kf(), this._mergedOrder = [], this._drapedFirstOrder = [], this._mergedLayers = {}, this._mergedSourceCaches = {}, this._mergedOtherSourceCaches = {}, this._mergedSymbolSourceCaches = {}, this._clipLayerIndices = [], this._has3DLayers = !1, this._hasCircleLayers = !1, this._hasSymbolLayers = !1, this._changes = u.styleChanges || new Lt(), this.dispatcher = u.dispatcher ? u.dispatcher : new o.bw(o.bx(), this), u.imageManager ? this.imageManager = u.imageManager : (this.imageManager = new We(), this.imageManager.setEventedParent(this)), this.imageManager.createScope(this.scope), this.glyphManager = u.glyphManager ? u.glyphManager : new o.cM(s._requestManager, u.localFontFamily ? o.cN.all : u.localIdeographFontFamily ? o.cN.ideographs : o.cN.none, u.localFontFamily || u.localIdeographFontFamily), u.modelManager ? this.modelManager = u.modelManager : (this.modelManager = new cs(s._requestManager), this.modelManager.setEventedParent(this)), this._layers = {}, this._serializedLayers = {}, this._sourceCaches = {}, this._otherSourceCaches = {}, this._symbolSourceCaches = {}, this._loaded = !1, this._precompileDone = !1, this._shouldPrecompile = !1, this._availableImages = [], this._order = [], this._markersNeedUpdate = !1, this._styleColorTheme = { lut: null, lutLoading: !1, lutLoadingCorrelationID: 0, colorTheme: null }, this._styleColorThemeForScope = {}, this.options = u.configOptions ? u.configOptions : /* @__PURE__ */ new Map(), this._configDependentLayers = u.configDependentLayers ? u.configDependentLayers : /* @__PURE__ */ new Set(), this._config = u.config, this._initialConfig = u.initialConfig, this.dispatcher.broadcast("setReferrer", o.cO());
@@ -48719,25 +48719,25 @@ ${m.vertexSource}`;
48719
48719
  (s = o.cT(s)).layers = Lg(s.layers);
48720
48720
  const m = function(S, C) {
48721
48721
  if (!S)
48722
- return [{ command: Zn.setStyle, args: [C] }];
48722
+ return [{ command: Yn.setStyle, args: [C] }];
48723
48723
  let R = [];
48724
48724
  try {
48725
48725
  if (!A(S.version, C.version))
48726
- return [{ command: Zn.setStyle, args: [C] }];
48727
- if (A(S.center, C.center) || R.push({ command: Zn.setCenter, args: [C.center] }), A(S.zoom, C.zoom) || R.push({ command: Zn.setZoom, args: [C.zoom] }), A(S.bearing, C.bearing) || R.push({ command: Zn.setBearing, args: [C.bearing] }), A(S.pitch, C.pitch) || R.push({ command: Zn.setPitch, args: [C.pitch] }), A(S.sprite, C.sprite) || R.push({ command: Zn.setSprite, args: [C.sprite] }), A(S.glyphs, C.glyphs) || R.push({ command: Zn.setGlyphs, args: [C.glyphs] }), A(S.imports, C.imports) || function(G = [], Z = [], Y) {
48726
+ return [{ command: Yn.setStyle, args: [C] }];
48727
+ if (A(S.center, C.center) || R.push({ command: Yn.setCenter, args: [C.center] }), A(S.zoom, C.zoom) || R.push({ command: Yn.setZoom, args: [C.zoom] }), A(S.bearing, C.bearing) || R.push({ command: Yn.setBearing, args: [C.bearing] }), A(S.pitch, C.pitch) || R.push({ command: Yn.setPitch, args: [C.pitch] }), A(S.sprite, C.sprite) || R.push({ command: Yn.setSprite, args: [C.sprite] }), A(S.glyphs, C.glyphs) || R.push({ command: Yn.setGlyphs, args: [C.glyphs] }), A(S.imports, C.imports) || function(G = [], Z = [], Y) {
48728
48728
  Z = Z || [];
48729
48729
  const X = (G = G || []).map(_h), K = Z.map(_h), re = G.reduce(Qc, {}), oe = Z.reduce(Qc, {}), ae = X.slice();
48730
48730
  let ge, pe, xe, J;
48731
48731
  for (ge = 0, pe = 0; ge < X.length; ge++)
48732
- xe = X[ge], oe.hasOwnProperty(xe) ? pe++ : (Y.push({ command: Zn.removeImport, args: [xe] }), ae.splice(ae.indexOf(xe, pe), 1));
48732
+ xe = X[ge], oe.hasOwnProperty(xe) ? pe++ : (Y.push({ command: Yn.removeImport, args: [xe] }), ae.splice(ae.indexOf(xe, pe), 1));
48733
48733
  for (ge = 0, pe = 0; ge < K.length; ge++)
48734
- xe = K[K.length - 1 - ge], ae[ae.length - 1 - ge] !== xe && (re.hasOwnProperty(xe) ? (Y.push({ command: Zn.removeImport, args: [xe] }), ae.splice(ae.lastIndexOf(xe, ae.length - pe), 1)) : pe++, J = ae[ae.length - ge], Y.push({ command: Zn.addImport, args: [oe[xe], J] }), ae.splice(ae.length - ge, 0, xe));
48734
+ xe = K[K.length - 1 - ge], ae[ae.length - 1 - ge] !== xe && (re.hasOwnProperty(xe) ? (Y.push({ command: Yn.removeImport, args: [xe] }), ae.splice(ae.lastIndexOf(xe, ae.length - pe), 1)) : pe++, J = ae[ae.length - ge], Y.push({ command: Yn.addImport, args: [oe[xe], J] }), ae.splice(ae.length - ge, 0, xe));
48735
48735
  for (const le of Z) {
48736
48736
  const Te = re[le.id];
48737
- Te && !A(Te, le) && Y.push({ command: Zn.updateImport, args: [le.id, le] });
48737
+ Te && !A(Te, le) && Y.push({ command: Yn.updateImport, args: [le.id, le] });
48738
48738
  }
48739
- }(S.imports, C.imports, R), A(S.transition, C.transition) || R.push({ command: Zn.setTransition, args: [C.transition] }), A(S.light, C.light) || R.push({ command: Zn.setLight, args: [C.light] }), A(S.fog, C.fog) || R.push({ command: Zn.setFog, args: [C.fog] }), A(S.projection, C.projection) || R.push({ command: Zn.setProjection, args: [C.projection] }), A(S.lights, C.lights) || R.push({ command: Zn.setLights, args: [C.lights] }), A(S.camera, C.camera) || R.push({ command: Zn.setCamera, args: [C.camera] }), !A(S["color-theme"], C["color-theme"]))
48740
- return [{ command: Zn.setStyle, args: [C] }];
48739
+ }(S.imports, C.imports, R), A(S.transition, C.transition) || R.push({ command: Yn.setTransition, args: [C.transition] }), A(S.light, C.light) || R.push({ command: Yn.setLight, args: [C.light] }), A(S.fog, C.fog) || R.push({ command: Yn.setFog, args: [C.fog] }), A(S.projection, C.projection) || R.push({ command: Yn.setProjection, args: [C.projection] }), A(S.lights, C.lights) || R.push({ command: Yn.setLights, args: [C.lights] }), A(S.camera, C.camera) || R.push({ command: Yn.setCamera, args: [C.camera] }), !A(S["color-theme"], C["color-theme"]))
48740
+ return [{ command: Yn.setStyle, args: [C] }];
48741
48741
  const P = {}, O = [];
48742
48742
  (function(G, Z, Y, X) {
48743
48743
  let K;
@@ -48747,34 +48747,34 @@ ${m.vertexSource}`;
48747
48747
  if (!Z.hasOwnProperty(K))
48748
48748
  continue;
48749
48749
  const re = Z[K];
48750
- G.hasOwnProperty(K) ? A(G[K], re) || (G[K].type === "geojson" && re.type === "geojson" && O1(G, Z, K) ? Y.push({ command: Zn.setGeoJSONSourceData, args: [K, re.data] }) : Ks(K, Z, Y, X)) : Hf(K, Z, Y);
48750
+ G.hasOwnProperty(K) ? A(G[K], re) || (G[K].type === "geojson" && re.type === "geojson" && O1(G, Z, K) ? Y.push({ command: Yn.setGeoJSONSourceData, args: [K, re.data] }) : Ks(K, Z, Y, X)) : Hf(K, Z, Y);
48751
48751
  }
48752
48752
  })(S.sources, C.sources, O, P);
48753
48753
  const B = [];
48754
48754
  S.layers && S.layers.forEach((G) => {
48755
- G.source && P[G.source] ? R.push({ command: Zn.removeLayer, args: [G.id] }) : B.push(G);
48755
+ G.source && P[G.source] ? R.push({ command: Yn.removeLayer, args: [G.id] }) : B.push(G);
48756
48756
  });
48757
48757
  let V = S.terrain;
48758
- V && P[V.source] && (R.push({ command: Zn.setTerrain, args: [void 0] }), V = void 0), R = R.concat(O), A(V, C.terrain) || R.push({ command: Zn.setTerrain, args: [C.terrain] }), function(G, Z, Y) {
48758
+ V && P[V.source] && (R.push({ command: Yn.setTerrain, args: [void 0] }), V = void 0), R = R.concat(O), A(V, C.terrain) || R.push({ command: Yn.setTerrain, args: [C.terrain] }), function(G, Z, Y) {
48759
48759
  Z = Z || [];
48760
48760
  const X = (G = G || []).map(_h), K = Z.map(_h), re = G.reduce(Qc, {}), oe = Z.reduce(Qc, {}), ae = X.slice(), ge = /* @__PURE__ */ Object.create(null);
48761
48761
  let pe, xe, J, le, Te, Be, Ce;
48762
48762
  for (pe = 0, xe = 0; pe < X.length; pe++)
48763
- J = X[pe], oe.hasOwnProperty(J) ? xe++ : (Y.push({ command: Zn.removeLayer, args: [J] }), ae.splice(ae.indexOf(J, xe), 1));
48763
+ J = X[pe], oe.hasOwnProperty(J) ? xe++ : (Y.push({ command: Yn.removeLayer, args: [J] }), ae.splice(ae.indexOf(J, xe), 1));
48764
48764
  for (pe = 0, xe = 0; pe < K.length; pe++)
48765
- J = K[K.length - 1 - pe], ae[ae.length - 1 - pe] !== J && (re.hasOwnProperty(J) ? (Y.push({ command: Zn.removeLayer, args: [J] }), ae.splice(ae.lastIndexOf(J, ae.length - xe), 1)) : xe++, Be = ae[ae.length - pe], Y.push({ command: Zn.addLayer, args: [oe[J], Be] }), ae.splice(ae.length - pe, 0, J), ge[J] = !0);
48765
+ J = K[K.length - 1 - pe], ae[ae.length - 1 - pe] !== J && (re.hasOwnProperty(J) ? (Y.push({ command: Yn.removeLayer, args: [J] }), ae.splice(ae.lastIndexOf(J, ae.length - xe), 1)) : xe++, Be = ae[ae.length - pe], Y.push({ command: Yn.addLayer, args: [oe[J], Be] }), ae.splice(ae.length - pe, 0, J), ge[J] = !0);
48766
48766
  for (pe = 0; pe < K.length; pe++)
48767
48767
  if (J = K[pe], le = re[J], Te = oe[J], !ge[J] && !A(le, Te))
48768
48768
  if (A(le.source, Te.source) && A(le["source-layer"], Te["source-layer"]) && A(le.type, Te.type)) {
48769
- for (Ce in gh(le.layout, Te.layout, Y, J, null, Zn.setLayoutProperty), gh(le.paint, Te.paint, Y, J, null, Zn.setPaintProperty), A(le.slot, Te.slot) || Y.push({ command: Zn.setSlot, args: [J, Te.slot] }), A(le.filter, Te.filter) || Y.push({ command: Zn.setFilter, args: [J, Te.filter] }), A(le.minzoom, Te.minzoom) && A(le.maxzoom, Te.maxzoom) || Y.push({ command: Zn.setLayerZoomRange, args: [J, Te.minzoom, Te.maxzoom] }), le)
48770
- le.hasOwnProperty(Ce) && Ce !== "layout" && Ce !== "paint" && Ce !== "filter" && Ce !== "metadata" && Ce !== "minzoom" && Ce !== "maxzoom" && Ce !== "slot" && (Ce.indexOf("paint.") === 0 ? gh(le[Ce], Te[Ce], Y, J, Ce.slice(6), Zn.setPaintProperty) : A(le[Ce], Te[Ce]) || Y.push({ command: Zn.setLayerProperty, args: [J, Ce, Te[Ce]] }));
48769
+ for (Ce in gh(le.layout, Te.layout, Y, J, null, Yn.setLayoutProperty), gh(le.paint, Te.paint, Y, J, null, Yn.setPaintProperty), A(le.slot, Te.slot) || Y.push({ command: Yn.setSlot, args: [J, Te.slot] }), A(le.filter, Te.filter) || Y.push({ command: Yn.setFilter, args: [J, Te.filter] }), A(le.minzoom, Te.minzoom) && A(le.maxzoom, Te.maxzoom) || Y.push({ command: Yn.setLayerZoomRange, args: [J, Te.minzoom, Te.maxzoom] }), le)
48770
+ le.hasOwnProperty(Ce) && Ce !== "layout" && Ce !== "paint" && Ce !== "filter" && Ce !== "metadata" && Ce !== "minzoom" && Ce !== "maxzoom" && Ce !== "slot" && (Ce.indexOf("paint.") === 0 ? gh(le[Ce], Te[Ce], Y, J, Ce.slice(6), Yn.setPaintProperty) : A(le[Ce], Te[Ce]) || Y.push({ command: Yn.setLayerProperty, args: [J, Ce, Te[Ce]] }));
48771
48771
  for (Ce in Te)
48772
- Te.hasOwnProperty(Ce) && !le.hasOwnProperty(Ce) && Ce !== "layout" && Ce !== "paint" && Ce !== "filter" && Ce !== "metadata" && Ce !== "minzoom" && Ce !== "maxzoom" && Ce !== "slot" && (Ce.indexOf("paint.") === 0 ? gh(le[Ce], Te[Ce], Y, J, Ce.slice(6), Zn.setPaintProperty) : A(le[Ce], Te[Ce]) || Y.push({ command: Zn.setLayerProperty, args: [J, Ce, Te[Ce]] }));
48772
+ Te.hasOwnProperty(Ce) && !le.hasOwnProperty(Ce) && Ce !== "layout" && Ce !== "paint" && Ce !== "filter" && Ce !== "metadata" && Ce !== "minzoom" && Ce !== "maxzoom" && Ce !== "slot" && (Ce.indexOf("paint.") === 0 ? gh(le[Ce], Te[Ce], Y, J, Ce.slice(6), Yn.setPaintProperty) : A(le[Ce], Te[Ce]) || Y.push({ command: Yn.setLayerProperty, args: [J, Ce, Te[Ce]] }));
48773
48773
  } else
48774
- Y.push({ command: Zn.removeLayer, args: [J] }), Be = ae[ae.lastIndexOf(J) + 1], Y.push({ command: Zn.addLayer, args: [Te, Be] });
48774
+ Y.push({ command: Yn.removeLayer, args: [J] }), Be = ae[ae.lastIndexOf(J) + 1], Y.push({ command: Yn.addLayer, args: [Te, Be] });
48775
48775
  }(B, C.layers, R);
48776
48776
  } catch (P) {
48777
- console.warn("Unable to compute style diff:", P), R = [{ command: Zn.setStyle, args: [C] }];
48777
+ console.warn("Unable to compute style diff:", P), R = [{ command: Yn.setStyle, args: [C] }];
48778
48778
  }
48779
48779
  return R;
48780
48780
  }(this.serialize(), s).filter((S) => !(S.command in Jf));
@@ -53793,14 +53793,14 @@ function oY() {
53793
53793
  case U:
53794
53794
  return Yt;
53795
53795
  default:
53796
- var Hn = Yt && Yt.$$typeof;
53797
- switch (Hn) {
53796
+ var Un = Yt && Yt.$$typeof;
53797
+ switch (Un) {
53798
53798
  case o:
53799
53799
  case z:
53800
53800
  case Q:
53801
53801
  case W:
53802
53802
  case T:
53803
- return Hn;
53803
+ return Un;
53804
53804
  default:
53805
53805
  return wn;
53806
53806
  }
@@ -55463,7 +55463,7 @@ function UL({
55463
55463
  we(!1), kt(!1), it([]);
55464
55464
  else {
55465
55465
  we(!0), it(yt);
55466
- const li = yt.filter((Vn) => Vn.properties.type === "google_places").length > 0;
55466
+ const li = yt.filter(($n) => $n.properties.type === "google_places").length > 0;
55467
55467
  kt(li);
55468
55468
  }
55469
55469
  }
@@ -55483,10 +55483,10 @@ function UL({
55483
55483
  function Yt(yt) {
55484
55484
  Ie(yt), di(yt), ve(!0), kt(!1), Qe(yt);
55485
55485
  }
55486
- function Hn(yt) {
55487
- Ke(!0), Ie(yt), Qn(yt), it([]), ve(!0), kt(!1), we(!0);
55486
+ function Un(yt) {
55487
+ Ke(!0), Ie(yt), qn(yt), it([]), ve(!0), kt(!1), we(!0);
55488
55488
  }
55489
- function Qn(yt) {
55489
+ function qn(yt) {
55490
55490
  yt === qr.TO ? Ze() : yt === qr.FROM && pt();
55491
55491
  }
55492
55492
  function di(yt) {
@@ -55509,8 +55509,8 @@ function UL({
55509
55509
  }, {
55510
55510
  once: !0
55511
55511
  }) : h !== "USER_POSITION_PENDING" && (l == null ? void 0 : l.id) !== "USER_POSITION" && z.current.focusInput(), $ && !Dt && (l == null ? void 0 : l.id) !== "USER_POSITION" && !yt) {
55512
- const Vn = cw($);
55513
- z.current.setDisplayText(Vn.properties.name), pt(Vn), ve(!0), we(!0), it([]);
55512
+ const $n = cw($);
55513
+ z.current.setDisplayText($n.properties.name), pt($n), ve(!0), we(!0), it([]);
55514
55514
  }
55515
55515
  }
55516
55516
  }, [x, l, h]), Zt(() => {
@@ -55524,12 +55524,12 @@ function UL({
55524
55524
  /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__locations", children: [
55525
55525
  /* @__PURE__ */ Le.jsxs("label", { className: "wayfinding__label", children: [
55526
55526
  T("From").toUpperCase(),
55527
- /* @__PURE__ */ Le.jsx(lw, { ref: z, mapsindoors: !0, google: Q === Ro.Google, mapbox: Q === Ro.Mapbox, placeholder: T("Search by name, category, building..."), results: (yt) => Nt(yt, qr.FROM), clicked: () => Yt(qr.FROM), cleared: () => Hn(qr.FROM), changed: () => wn(qr.FROM), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
55527
+ /* @__PURE__ */ Le.jsx(lw, { ref: z, mapsindoors: !0, google: Q === Ro.Google, mapbox: Q === Ro.Mapbox, placeholder: T("Search by name, category, building..."), results: (yt) => Nt(yt, qr.FROM), clicked: () => Yt(qr.FROM), cleared: () => Un(qr.FROM), changed: () => wn(qr.FROM), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
55528
55528
  ] }),
55529
55529
  /* @__PURE__ */ Le.jsx("button", { onClick: () => _r(), "aria-label": T("Switch"), className: "wayfinding__switch", children: /* @__PURE__ */ Le.jsx(DY, { "data-sentry-element": "SwitchIcon", "data-sentry-source-file": "Wayfinding.jsx" }) }),
55530
55530
  /* @__PURE__ */ Le.jsxs("label", { className: "wayfinding__label", children: [
55531
55531
  T("To").toUpperCase(),
55532
- /* @__PURE__ */ Le.jsx(lw, { ref: k, mapsindoors: !0, google: Q === Ro.Google, mapbox: Q === Ro.Mapbox, placeholder: T("Search by name, category, building..."), results: (yt) => Nt(yt, qr.TO), clicked: () => Yt(qr.TO), cleared: () => Hn(qr.TO), changed: () => wn(qr.TO), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
55532
+ /* @__PURE__ */ Le.jsx(lw, { ref: k, mapsindoors: !0, google: Q === Ro.Google, mapbox: Q === Ro.Mapbox, placeholder: T("Search by name, category, building..."), results: (yt) => Nt(yt, qr.TO), clicked: () => Yt(qr.TO), cleared: () => Un(qr.TO), changed: () => wn(qr.TO), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
55533
55533
  ] })
55534
55534
  ] })
55535
55535
  ] }),
@@ -55990,17 +55990,23 @@ function qL({
55990
55990
  t: l
55991
55991
  } = Cs(), h = Si(), g = Si(), x = Si(), T = Si(), [o, A] = un(!0), [k, z] = ln(y1), U = Mt(Jd), $ = Mt($L), [W, Q] = un(!1), [ue, Me] = ln(N2), Ie = ef(), [ve, Ae] = un(), we = Mt(Ho), [, fe] = ln(l1), [, je] = ln(Ec), [, Ue] = ln(L2), [it, Lt] = ln(Qd), Ze = Mt(tf), Dt = cl(), pt = Mt(hl), [Ft, zt] = un(!1), bn = Mt(O2), kt = og(), [, rn] = ln(v1), [Wt, dn] = un(!1), Ke = Mt(HL), Tt = Mt(g1), Pe = Mt(ig), ut = Mt(B2);
55992
55992
  function ot(Yt) {
55993
- var Hn;
55993
+ var Un;
55994
55994
  window.mapsindoors.services.LocationsService.getLocations({
55995
55995
  categories: Yt,
55996
- venue: Tt || (Hn = Pe.find((Qn) => Qn.name.toLowerCase() === it.toLowerCase())) == null ? void 0 : Hn.name
55996
+ venue: Tt || (Un = Pe.find((qn) => qn.name.toLowerCase() === it.toLowerCase())) == null ? void 0 : Un.name
55997
55997
  }).then(bt);
55998
55998
  }
55999
55999
  function Ht(Yt) {
56000
56000
  typeof i == "function" && i(Yt);
56001
56001
  }
56002
56002
  function bt(Yt) {
56003
- z(Yt), fe(Yt), Q(Yt.length === 0);
56003
+ var Un;
56004
+ z(Yt), fe(Yt), Q(Yt.length === 0), kt && ((Un = h.current) == null || Un.addEventListener("transitionend", () => {
56005
+ var qn;
56006
+ (qn = g == null ? void 0 : g.current) == null || qn.updateScrollButtons();
56007
+ }, {
56008
+ once: !0
56009
+ }));
56004
56010
  }
56005
56011
  function $t() {
56006
56012
  z([]), Q(!1), ue && ot(ue), fe([]), g0(T.current) || T.current.clearInputField();
@@ -56019,19 +56025,19 @@ function qL({
56019
56025
  }
56020
56026
  function jt(Yt) {
56021
56027
  je(Yt), Yt.properties.venueId.toLowerCase() !== it.toLowerCase() && (Lt(Yt.properties.venueId), Ue(!0));
56022
- const Hn = we.getFloor(), Qn = Yt.properties.floor;
56023
- Qn !== Hn && we.setFloor(Qn), Promise.all([Nn(), Qe()]).then(([di, _r]) => {
56028
+ const Un = we.getFloor(), qn = Yt.properties.floor;
56029
+ qn !== Un && we.setFloor(qn), Promise.all([Nn(), Qe()]).then(([di, _r]) => {
56024
56030
  JY(Yt, we, di, _r);
56025
56031
  });
56026
56032
  }
56027
56033
  function Nn() {
56028
56034
  return new Promise((Yt) => {
56029
- Dt ? pt ? E2().then((Hn) => Yt(Hn)) : Yt(0) : Yt(200);
56035
+ Dt ? pt ? E2().then((Un) => Yt(Un)) : Yt(0) : Yt(200);
56030
56036
  });
56031
56037
  }
56032
56038
  function Qe() {
56033
56039
  return new Promise((Yt) => {
56034
- Dt ? pt ? Yt(0) : I2().then((Hn) => Yt(Hn)) : Yt(0);
56040
+ Dt ? pt ? Yt(0) : I2().then((Un) => Yt(Un)) : Yt(0);
56035
56041
  });
56036
56042
  }
56037
56043
  function wn() {
@@ -56063,8 +56069,8 @@ function qL({
56063
56069
  }
56064
56070
  }, [k, r]), Zt(() => {
56065
56071
  if ($) {
56066
- const Yt = (Hn) => {
56067
- Hn.target.closest("mi-keyboard") || Hn.target.tagName.toUpperCase() === "MI-SEARCH" || Hn.target.tagName.toUpperCase() === "INPUT" ? zt(!0) : zt(!1);
56072
+ const Yt = (Un) => {
56073
+ Un.target.closest("mi-keyboard") || Un.target.tagName.toUpperCase() === "MI-SEARCH" || Un.target.tagName.toUpperCase() === "INPUT" ? zt(!0) : zt(!1);
56068
56074
  };
56069
56075
  return window.addEventListener("click", Yt, !1), () => {
56070
56076
  window.removeEventListener("click", Yt, !1);
@@ -57865,13 +57871,13 @@ function rK({
57865
57871
  showRoadNames: Ze,
57866
57872
  showExternalIDs: Dt
57867
57873
  }) {
57868
- const [, pt] = ln(S2), [, Ft] = ln(o1), [, zt] = ln(ng), [bn, kt] = ln(A2), [rn, Wt] = ln(ig), [dn, Ke] = ln(Ec), Tt = Mt(Jd), [, Pe] = ln(u1), [, ut] = ln(Is), [, ot] = ln(M2), [, Ht] = ln(cL), bt = Mt(Ho), [$t, Je] = ln(tf), [, Nt] = ln(hl), [, jt] = ln(bL), [, Nn] = ln(TL), Qe = EL(), [, wn] = ln(tK), [, Yt] = ln($L), [, Hn] = ln(fL), [, Qn] = ln(N2), [, di] = ln(g1), [, _r] = ln(GL), [, Ot] = ln(CL), [, yt] = ln(m1), [, Sn] = ln(pL), [li, Vn] = un(!0), [fr, Pr] = un(!0), xo = eA(A), Tr = eA(k), [bo, so] = un(!1), [, wo] = ln(c1), [ao, lo] = ln(l1), [Lr, cs] = un(), [ze, We] = ln(uk), [, Et] = ln(s1), [, tn] = ln(gL), [, Qt] = ln(wL), [, nn] = ln(tg), [, mn] = ln(Kd), xn = cl(), yn = uL("(max-width: 991px)"), Dn = lX(), [pi, Yi, Ai, Ki, bi, Er] = aX(), ir = Si(), [On, co] = un(!1), qo = Mt(_1), us = Mt(v1), [hs, De] = un(0), [se, j] = iK();
57874
+ const [, pt] = ln(S2), [, Ft] = ln(o1), [, zt] = ln(ng), [bn, kt] = ln(A2), [rn, Wt] = ln(ig), [dn, Ke] = ln(Ec), Tt = Mt(Jd), [, Pe] = ln(u1), [, ut] = ln(Is), [, ot] = ln(M2), [, Ht] = ln(cL), bt = Mt(Ho), [$t, Je] = ln(tf), [, Nt] = ln(hl), [, jt] = ln(bL), [, Nn] = ln(TL), Qe = EL(), [, wn] = ln(tK), [, Yt] = ln($L), [, Un] = ln(fL), [, qn] = ln(N2), [, di] = ln(g1), [, _r] = ln(GL), [, Ot] = ln(CL), [, yt] = ln(m1), [, Sn] = ln(pL), [li, $n] = un(!0), [fr, Pr] = un(!0), xo = eA(A), Tr = eA(k), [bo, so] = un(!1), [, wo] = ln(c1), [ao, lo] = ln(l1), [Lr, cs] = un(), [ze, We] = ln(uk), [, Et] = ln(s1), [, tn] = ln(gL), [, Qt] = ln(wL), [, nn] = ln(tg), [, mn] = ln(Kd), xn = cl(), yn = uL("(max-width: 991px)"), Dn = lX(), [pi, Yi, Ai, Ki, bi, Er] = aX(), ir = Si(), [On, co] = un(!1), qo = Mt(_1), us = Mt(v1), [hs, De] = un(0), [se, j] = iK();
57869
57875
  function q() {
57870
57876
  return new Promise((_e) => {
57871
57877
  if (window.mapsindoors !== void 0)
57872
57878
  return _e();
57873
57879
  const ke = document.createElement("script");
57874
- ke.setAttribute("type", "text/javascript"), ke.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.36.1/mapsindoors-4.36.1.js.gz"), ke.setAttribute("integrity", "sha384-1q0Vh8TQZcjeSByW22njbeVz4E327cilRcZZs6uAOS5ZihXmonR7Qm02nvg/vTIR"), ke.setAttribute("crossorigin", "anonymous"), document.body.appendChild(ke), ke.onload = () => {
57880
+ ke.setAttribute("type", "text/javascript"), ke.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.36.2/mapsindoors-4.36.2.js.gz"), ke.setAttribute("integrity", "sha384-S/xO5B5WzQeUYCK1QJE26gX50/Q++SiOzkp8JI6A4Cf/okBpWZ+YK3WcdXkcdzHK"), ke.setAttribute("crossorigin", "anonymous"), document.body.appendChild(ke), ke.onload = () => {
57875
57881
  _e();
57876
57882
  };
57877
57883
  });
@@ -57939,13 +57945,13 @@ function rK({
57939
57945
  }, [W]), Zt(() => {
57940
57946
  ot(T);
57941
57947
  }, [T]), Zt(() => {
57942
- Hn(je);
57948
+ Un(je);
57943
57949
  }, [je]), Zt(() => {
57944
57950
  dn && dn.id !== Ie ? bt != null && bt.selectLocation && bt.selectLocation(dn) : bt != null && bt.deselectLocation && bt.deselectLocation();
57945
57951
  }, [dn]), Zt(() => {
57946
57952
  On && (jt(Ie), Ie ? window.mapsindoors.services.LocationsService.getLocation(Ie).then((_e) => {
57947
57953
  se(_e.properties.venueId), Nt(_e);
57948
- }) : Nt(), Ie && xn ? (Vn(!1), Pr(!1)) : (Vn(!0), Pr(!0)));
57954
+ }) : Nt(), Ie && xn ? ($n(!1), Pr(!1)) : ($n(!0), Pr(!0)));
57949
57955
  }, [Ie, On]), Zt(() => {
57950
57956
  Nn(fe);
57951
57957
  }, [fe]), Zt(() => {
@@ -57953,7 +57959,7 @@ function rK({
57953
57959
  }, [Ae]), Zt(() => {
57954
57960
  On && we && Ie && Yt(we);
57955
57961
  }, [we, Ie, On]), Zt(() => {
57956
- On && Ue && Tt.find((_e) => _e[0] === Ue) && Qn(Ue);
57962
+ On && Ue && Tt.find((_e) => _e[0] === Ue) && qn(Ue);
57957
57963
  }, [Ue, Tt, On]), Zt(() => {
57958
57964
  On && it && di(it);
57959
57965
  }, [it, On]), Zt(() => {
@@ -57973,7 +57979,7 @@ function rK({
57973
57979
  Dn(), Er(), De((_e) => _e + 1);
57974
57980
  }
57975
57981
  return Zt(() => {
57976
- On && Ue && Tt.find((_e) => _e[0] === Ue) && (Qn(Ue), _r(Ue));
57982
+ On && Ue && Tt.find((_e) => _e[0] === Ue) && (qn(Ue), _r(Ue));
57977
57983
  }, [Ue, Tt, On]), /* @__PURE__ */ Le.jsxs("div", { className: `mapsindoors-map
57978
57984
  ${ir.current ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"}
57979
57985
  ${rn.length > 1 && li ? "" : "mapsindoors-map--hide-venue-selector"}
@@ -58076,4 +58082,4 @@ export {
58076
58082
  uW as h,
58077
58083
  cK as r
58078
58084
  };
58079
- //# sourceMappingURL=reactcomponent-72d27d4a.mjs.map
58085
+ //# sourceMappingURL=reactcomponent-a8dc7afc.mjs.map