sunpeak 0.20.60 → 0.20.62

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 (57) hide show
  1. package/bin/commands/inspect.mjs +2 -1
  2. package/bin/commands/new.mjs +11 -8
  3. package/bin/commands/test-init.mjs +1 -0
  4. package/bin/commands/test.mjs +8 -4
  5. package/bin/lib/resolve-bin.mjs +18 -0
  6. package/bin/lib/test/base-config.mjs +3 -1
  7. package/bin/lib/test/test-config.mjs +11 -2
  8. package/bin/sunpeak.js +4 -2
  9. package/dist/chatgpt/index.cjs +1 -1
  10. package/dist/chatgpt/index.js +1 -1
  11. package/dist/claude/index.cjs +1 -1
  12. package/dist/claude/index.js +1 -1
  13. package/dist/embed.css +1 -1
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/inspector/index.cjs +1 -1
  17. package/dist/inspector/index.js +1 -1
  18. package/dist/{inspector-WIO0nm2Q.cjs → inspector-Cl5w_7yQ.cjs} +7 -4
  19. package/dist/inspector-Cl5w_7yQ.cjs.map +1 -0
  20. package/dist/{inspector-CFSIZYOm.js → inspector-DPJeSQAd.js} +7 -4
  21. package/dist/inspector-DPJeSQAd.js.map +1 -0
  22. package/dist/protocol-DVkrOIAq.cjs.map +1 -1
  23. package/dist/protocol-fGgeFIiL.js.map +1 -1
  24. package/dist/style.css +1 -1
  25. package/package.json +16 -15
  26. package/template/dist/albums/albums.html +4 -4
  27. package/template/dist/albums/albums.json +1 -1
  28. package/template/dist/carousel/carousel.html +7 -7
  29. package/template/dist/carousel/carousel.json +1 -1
  30. package/template/dist/map/map.html +7 -7
  31. package/template/dist/map/map.json +1 -1
  32. package/template/dist/review/review.html +4 -4
  33. package/template/dist/review/review.json +1 -1
  34. package/template/node_modules/.bin/playwright +2 -2
  35. package/template/node_modules/.bin/vite +2 -2
  36. package/template/node_modules/.bin/vitest +2 -2
  37. package/template/node_modules/.vite/deps/_metadata.json +4 -4
  38. package/template/node_modules/.vite-mcp/deps/_metadata.json +21 -21
  39. package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js +2 -1
  40. package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js.map +1 -1
  41. package/template/node_modules/.vite-mcp/deps/external-D8EJN_Cc.js.map +1 -1
  42. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +114 -87
  43. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js.map +1 -1
  44. package/template/node_modules/.vite-mcp/deps/tailwind-merge.js.map +1 -1
  45. package/template/node_modules/.vite-mcp/deps/vitest.js +40 -24
  46. package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -1
  47. package/template/package.json +6 -5
  48. package/template/tests/e2e/carousel.spec.ts +9 -9
  49. package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-chatgpt-darwin.png +0 -0
  50. package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-claude-darwin.png +0 -0
  51. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-darwin.png +0 -0
  52. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-darwin.png +0 -0
  53. package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-chatgpt-darwin.png +0 -0
  54. package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-claude-darwin.png +0 -0
  55. package/template/vitest.config.ts +2 -0
  56. package/dist/inspector-CFSIZYOm.js.map +0 -1
  57. package/dist/inspector-WIO0nm2Q.cjs.map +0 -1
@@ -912,7 +912,10 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
912
912
  if (r && "SecurityError" !== r.message && lt(r.toString()), i && o) return u(i);
913
913
  const l = Date.now();
914
914
  fetch(n).then((r) => {
915
- if (r.ok) return u(r, a ? r.clone() : null, l);
915
+ if (r.ok) {
916
+ const e = a ? r.clone() : null;
917
+ return u(r, e, l);
918
+ }
916
919
  return t(new Qt(r.statusText, r.status, e.url));
917
920
  }).catch((r) => {
918
921
  "AbortError" !== r.name && t(/* @__PURE__ */ new Error(`${r.message} ${e.url}`));
@@ -3122,8 +3125,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3122
3125
  }, On = 1 / 298.257223563, Un = On * (2 - On), Nn = Math.PI / 180;
3123
3126
  class jn {
3124
3127
  static fromTile(e, t, r) {
3125
- const n = Math.PI * (1 - 2 * (e + .5) / Math.pow(2, t));
3126
- return new jn(Math.atan(.5 * (Math.exp(n) - Math.exp(-n))) / Nn, r);
3128
+ const n = Math.PI * (1 - 2 * (e + .5) / Math.pow(2, t)), i = Math.atan(.5 * (Math.exp(n) - Math.exp(-n))) / Nn;
3129
+ return new jn(i, r);
3127
3130
  }
3128
3131
  static get units() {
3129
3132
  return Ln;
@@ -4048,7 +4051,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4048
4051
  if (!e) return null;
4049
4052
  r = r || e.type, i.push(e);
4050
4053
  }
4051
- return new Ji(n && i.some((e) => $r(n, e.type)) ? Rr : r, i);
4054
+ const s = n && i.some((e) => $r(n, e.type));
4055
+ return new Ji(s ? Rr : r, i);
4052
4056
  }
4053
4057
  evaluate(e) {
4054
4058
  let t, r = null, n = 0;
@@ -11289,7 +11293,7 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11289
11293
  for (let r = 0; r < e.length - 1; r++) {
11290
11294
  const n = e[r], i = e[r + 1], s = n.dist(i);
11291
11295
  if (l + s > u) {
11292
- const c = (u - l) / s, p = new Gd(wr(n.x, i.x, c), wr(n.y, i.y, c), 0, i.angleTo(n), r);
11296
+ const c = (u - l) / s, h = wr(n.x, i.x, c), d = wr(n.y, i.y, c), p = new Gd(h, d, 0, i.angleTo(n), r);
11293
11297
  return !a || $d(e, p, o, a, t) ? p : void 0;
11294
11298
  }
11295
11299
  l += s;
@@ -11742,8 +11746,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11742
11746
  }
11743
11747
  }
11744
11748
  dp.loadGlyphRange = function(e, t, r, n, i) {
11745
- const s = 256 * t, a = s + 255;
11746
- ar(n.transformRequest(n.normalizeGlyphsURL(r).replace("{fontstack}", e).replace("{range}", `${s}-${a}`), Jt.Glyphs), (e, t) => {
11749
+ const s = 256 * t, a = s + 255, o = n.transformRequest(n.normalizeGlyphsURL(r).replace("{fontstack}", e).replace("{range}", `${s}-${a}`), Jt.Glyphs);
11750
+ ar(o, (e, t) => {
11747
11751
  if (e) i(e);
11748
11752
  else if (t) {
11749
11753
  const e = {}, r = function(e) {
@@ -12645,8 +12649,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12645
12649
  -1,
12646
12650
  -1,
12647
12651
  1
12648
- ];
12649
- return new gf($(n, n, e), $(i, i, e), $(s, s, e), $(a, a, e), t / r);
12652
+ ], o = $(n, n, e), l = $(i, i, e), u = $(s, s, e), c = $(a, a, e);
12653
+ return new gf(o, l, u, c, t / r);
12650
12654
  }
12651
12655
  }
12652
12656
  function xf(e, t, r, n) {
@@ -13119,7 +13123,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13119
13123
  const r = (t - e + 180) % 360 - 180;
13120
13124
  return r < -180 ? r + 360 : r;
13121
13125
  }(e.center.lng, A);
13122
- return new Dl(_n(A), Ze(An(_), 0, 1));
13126
+ const I = _n(A), M = Ze(An(_), 0, 1);
13127
+ return new Dl(I, M);
13123
13128
  }
13124
13129
  class Tf {
13125
13130
  constructor(e, t, r) {
@@ -13255,8 +13260,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13255
13260
  return c[2] = Math.min(v[2], w[2]), k(c, c, A), V(u, u, A), new If(c, u);
13256
13261
  }
13257
13262
  function Df({ x: e, y: t, z: r }, n = !1) {
13258
- const i = 1 / (1 << r);
13259
- return new Sl(new Ml(In(e * i), t === (1 << r) - 1 && n ? -90 : Mn((t + 1) * i)), new Ml(In((e + 1) * i), 0 === t && n ? 90 : Mn(t * i)));
13263
+ const i = 1 / (1 << r), s = new Ml(In(e * i), t === (1 << r) - 1 && n ? -90 : Mn((t + 1) * i)), a = new Ml(In((e + 1) * i), 0 === t && n ? 90 : Mn(t * i));
13264
+ return new Sl(s, a);
13260
13265
  }
13261
13266
  function Cf(e, t = yl) {
13262
13267
  const r = Ge(e.getNorth()), n = Ge(e.getSouth()), i = Math.cos(r), s = Math.cos(n), a = Math.sin(r), o = Math.sin(n), l = e.getWest(), u = e.getEast();
@@ -13581,7 +13586,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13581
13586
  s * r < 0 && (a -= Math.PI * Math.sign(e) * Math.sign(s));
13582
13587
  const o = Ge(this.center[0]) * r;
13583
13588
  a = Ye(a, -Math.PI - o, Math.PI - o);
13584
- return new Ml(Ze($e(a / r) + this.center[0], -180, 180), Ze($e(Math.asin(Ze((n - (e * e + s * s) * r * r) / (2 * r), -1, 1))), -85.051129, zl));
13589
+ const l = Ze($e(a / r) + this.center[0], -180, 180), c = Ze($e(Math.asin(Ze((n - (e * e + s * s) * r * r) / (2 * r), -1, 1))), -85.051129, zl);
13590
+ return new Ml(l, c);
13585
13591
  }
13586
13592
  }
13587
13593
  const lm = 1.340264, um = -.081106, cm = 893e-6, hm = .003796, dm = Math.sqrt(3) / 2;
@@ -13599,8 +13605,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13599
13605
  e = (2 * e - .5) * Math.PI;
13600
13606
  let r = t = (2 * (1 - t) - 1) * Math.PI, n = r * r, i = n * n * n;
13601
13607
  for (let e, s, a, o = 0; o < 12 && (s = r * (lm + um * n + i * (cm + hm * n)) - t, a = lm + 3 * um * n + i * (7 * cm + 9 * hm * n), e = s / a, r = Ze(r - e, -Math.PI / 3, Math.PI / 3), n = r * r, i = n * n * n, !(Math.abs(e) < 1e-12)); ++o);
13602
- const s = dm * e * (lm + 3 * um * n + i * (7 * cm + 9 * hm * n)) / Math.cos(r), a = Math.asin(Math.sin(r) / dm);
13603
- return new Ml(Ze(180 * s / Math.PI, -180, 180), Ze(180 * a / Math.PI, -85.051129, zl));
13608
+ const s = dm * e * (lm + 3 * um * n + i * (7 * cm + 9 * hm * n)) / Math.cos(r), a = Math.asin(Math.sin(r) / dm), o = Ze(180 * s / Math.PI, -180, 180), l = Ze(180 * a / Math.PI, -85.051129, zl);
13609
+ return new Ml(o, l);
13604
13610
  }
13605
13611
  }
13606
13612
  class fm extends am {
@@ -13615,7 +13621,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13615
13621
  };
13616
13622
  }
13617
13623
  unproject(e, t) {
13618
- return new Ml(360 * (e - .5), Ze(360 * (.5 - t), -85.051129, zl));
13624
+ const r = 360 * (e - .5), n = Ze(360 * (.5 - t), -85.051129, zl);
13625
+ return new Ml(r, n);
13619
13626
  }
13620
13627
  }
13621
13628
  const mm = Math.PI / 2;
@@ -13664,7 +13671,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13664
13671
  };
13665
13672
  }
13666
13673
  unproject(e, t) {
13667
- return new Ml(In(e), Mn(t));
13674
+ const r = In(e), n = Mn(t);
13675
+ return new Ml(r, n);
13668
13676
  }
13669
13677
  }
13670
13678
  const bm = Ge(zl);
@@ -13686,7 +13694,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13686
13694
  i = (r * (1.007226 + s * (.015085 + e * (.028874 * s - .044475 - .005916 * e))) - t) / (1.007226 + s * (.045255 + e * (.259866 * s - .311325 - .005916 * 11 * e))), r = Ze(r - i, -bm, bm);
13687
13695
  } while (Math.abs(i) > 1e-6 && --n > 0);
13688
13696
  s = r * r;
13689
- return new Ml(Ze($e(e / (.8707 + s * (s * (s * s * s * (.003971 - .001529 * s) - .013791) - .131979))), -180, 180), $e(r));
13697
+ const a = Ze($e(e / (.8707 + s * (s * (s * s * s * (.003971 - .001529 * s) - .013791) - .131979))), -180, 180), o = $e(r);
13698
+ return new Ml(a, o);
13690
13699
  }
13691
13700
  }
13692
13701
  const wm = Ge(zl);
@@ -13724,8 +13733,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13724
13733
  };
13725
13734
  }
13726
13735
  unproject(e, t) {
13727
- const { scale: r, cosPhi: n } = this, i = -(t - .5) / r;
13728
- return new Ml(Ze($e((e - .5) / r) / n, -180, 180), Ze($e(Math.asin(Ze(i * n, -1, 1))), -85.051129, zl));
13736
+ const { scale: r, cosPhi: n } = this, i = -(t - .5) / r, s = Ze($e((e - .5) / r) / n, -180, 180), o = Ze($e(Math.asin(Ze(i * n, -1, 1))), -85.051129, zl);
13737
+ return new Ml(s, o);
13729
13738
  }
13730
13739
  }
13731
13740
  class Im extends xm {
@@ -15723,7 +15732,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15723
15732
  v = M * c, d = yy * M, p = d - (d - M), f = M - p, d = yy * c, m = d - (d - c), y = c - m, w = f * y - (v - p * m - f * m - p * y), _ = B * u, d = yy * B, p = d - (d - B), f = B - p, d = yy * u, m = d - (d - u), y = u - m, A = f * y - (_ - p * m - f * m - p * y), g = w - A, h = w - g, Iy[0] = w - (g + h) + (h - A), x = v + g, h = x - v, b = v - (x - h) + (g - h), g = b - _, h = b - g, Iy[1] = b - (g + h) + (h - _), I = x + g, h = I - x, Iy[2] = x - (I - h) + (g - h), Iy[3] = I;
15724
15733
  const k = xy(E, wy, 4, Iy, _y);
15725
15734
  v = o * c, d = yy * o, p = d - (d - o), f = o - p, d = yy * c, m = d - (d - c), y = c - m, w = f * y - (v - p * m - f * m - p * y), _ = l * u, d = yy * l, p = d - (d - l), f = l - p, d = yy * u, m = d - (d - u), y = u - m, A = f * y - (_ - p * m - f * m - p * y), g = w - A, h = w - g, Iy[0] = w - (g + h) + (h - A), x = v + g, h = x - v, b = v - (x - h) + (g - h), g = b - _, h = b - g, Iy[1] = b - (g + h) + (h - _), I = x + g, h = I - x, Iy[2] = x - (I - h) + (g - h), Iy[3] = I;
15726
- return Ay[xy(k, _y, 4, Iy, Ay) - 1];
15735
+ const V = xy(k, _y, 4, Iy, Ay);
15736
+ return Ay[V - 1];
15727
15737
  }(e, t, r, n, i, s, u);
15728
15738
  }(e[0], e[1], t[0], t[1], r[0], r[1]);
15729
15739
  return n > 0 ? -1 : n < 0 ? 1 : 0;
@@ -16478,8 +16488,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16478
16488
  m(this.ptr);
16479
16489
  }
16480
16490
  DecodeArrayToMesh(e, t, r) {
16481
- const n = I(e);
16482
- return !!l(c(this.ptr, n, t, r.ptr));
16491
+ const n = I(e), i = c(this.ptr, n, t, r.ptr);
16492
+ return !!l(i);
16483
16493
  }
16484
16494
  GetAttributeByUniqueId(e, t) {
16485
16495
  return { ptr: h(this.ptr, e.ptr, t) };
@@ -19791,7 +19801,7 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19791
19801
  _setPaintOverrides() {
19792
19802
  for (const e of Uv().paint.overridableProperties) {
19793
19803
  if (!Nv.hasPaintOverride(this.layout, e)) continue;
19794
- const t = this.paint.get(e), n = new $s(new Ov(t), t.property.specification, this.scope, this.options, this.layout.get("icon-image-use-theme"));
19804
+ const t = this.paint.get(e), r = new Ov(t), n = new $s(r, t.property.specification, this.scope, this.options, this.layout.get("icon-image-use-theme"));
19795
19805
  let i = null;
19796
19806
  i = "constant" === t.value.kind || "source" === t.value.kind ? new Xs("source", n) : new Zs("composite", n, t.value.zoomStops, t.value.interpolationType), this.paint._values[e] = new ao(t.property, i, t.parameters);
19797
19807
  }
@@ -19957,7 +19967,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19957
19967
  return u > 0 && c > 0 && h > 0 && d > 0 || u < 0 && c < 0 && h < 0 && d < 0;
19958
19968
  }(r)) return console.warn("Image source coordinates are defining non-convex area in the Mercator projection"), void (this._unsupportedCoords = !0);
19959
19969
  const n = nm(this.tileID, this.map.transform.projection), [i, s, l, u] = this.coordinates.map((e) => {
19960
- return im(n, n.projection.project(e[0], e[1]))._round();
19970
+ const t = n.projection.project(e[0], e[1]);
19971
+ return im(n, t)._round();
19961
19972
  });
19962
19973
  this.perspectiveTransform = Zv(i.x, i.y, s.x, s.y, l.x, l.y, u.x, u.y);
19963
19974
  const c = this._boundsArray = new Ql();
@@ -21680,7 +21691,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21680
21691
  recalculate(e, t) {
21681
21692
  super.recalculate(e, t), this.paint._values["line-floorwidth"] = (() => {
21682
21693
  if (Vv) return Vv;
21683
- return Vv = new kv(Ev().paint.properties["line-width"].specification), Vv.useIntegerZoom = !0, Vv;
21694
+ const e = Ev();
21695
+ return Vv = new kv(e.paint.properties["line-width"].specification), Vv.useIntegerZoom = !0, Vv;
21684
21696
  })().possiblyEvaluate(this._transitioningPaint._values["line-width"].value, e);
21685
21697
  }
21686
21698
  createBucket(e) {
@@ -24056,7 +24068,7 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24056
24068
  const e = $l(n, !0);
24057
24069
  if (!a.filter(new Qa(this.tileID.overscaledZ, { worldview: this.worldview }), e, this.tileID.canonical)) continue;
24058
24070
  } else if (!a.filter(new Qa(this.tileID.overscaledZ, { worldview: this.worldview }), n)) continue;
24059
- const d = new Pw(n, o, l, u, r.getId(n, i));
24071
+ const h = r.getId(n, i), d = new Pw(n, o, l, u, h);
24060
24072
  d.tile = c, e.push(d);
24061
24073
  }
24062
24074
  }
@@ -24415,7 +24427,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24415
24427
  var r = Math.sin(t), n = Math.cos(t);
24416
24428
  return e[0] = n, e[1] = 0, e[2] = -r, e[3] = 0, e[4] = 0, e[5] = 1, e[6] = 0, e[7] = 0, e[8] = r, e[9] = 0, e[10] = n, e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, e;
24417
24429
  }, t.cC = function(e) {
24418
- return qe[Math.round((e + 45 + 360) % 360 / 90) % 4];
24430
+ const t = Math.round((e + 45 + 360) % 360 / 90) % 4;
24431
+ return qe[t];
24419
24432
  }, t.cD = function(e, t, r) {
24420
24433
  let n = 0;
24421
24434
  for (let r = 0; r < 2; ++r) {
@@ -28759,7 +28772,10 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
28759
28772
  const u = t.valueSpec || c[l];
28760
28773
  if (!u) return [new $e(o, a, `unknown property "${l}"`)];
28761
28774
  let _;
28762
- if (e.dQ(a) && e.fC(u) && !u.tokens && (_ = st.exec(a))) return [new qe(o, a, `"${l}" does not support interpolation syntax\nUse an identity property function instead: ${`\`{ "type": "identity", "property": ${_ ? JSON.stringify(_[1]) : "\"_\""} }\``}.`)];
28775
+ if (e.dQ(a) && e.fC(u) && !u.tokens && (_ = st.exec(a))) {
28776
+ const e = `\`{ "type": "identity", "property": ${_ ? JSON.stringify(_[1]) : "\"_\""} }\``;
28777
+ return [new qe(o, a, `"${l}" does not support interpolation syntax\nUse an identity property function instead: ${e}.`)];
28778
+ }
28763
28779
  const f = [];
28764
28780
  if ("symbol" === t.layerType) "text-field" !== l || !r || r.glyphs || r.imports || f.push(new qe(o, a, "use of \"text-field\" requires a style \"glyphs\" property")), "text-font" === l && e.dB(e.c3(a)) && "identity" === e.fT(a.type) && f.push(new qe(o, a, "\"text-font\" does not support identity functions"));
28765
28781
  else if ("model" === t.layerType && "paint" === i && n && n.layout && Object.hasOwn(n.layout, "model-id") && e.fC(u) && (e.fB(u) || e.fD(u))) {
@@ -32075,7 +32091,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32075
32091
  let q;
32076
32092
  if (U && j) {
32077
32093
  if (To(r.tileID, g.maxHeight, t)) continue;
32078
- q = Ji(j.calculateShadowPassMatrixFromTile(r.tileID.toUnwrapped()), w, G, A, O, P);
32094
+ const e = j.calculateShadowPassMatrixFromTile(r.tileID.toUnwrapped());
32095
+ q = Ji(e, w, G, A, O, P);
32079
32096
  } else {
32080
32097
  const e = t.translatePosMatrix(u.expandedProjMatrix, r, o.paint.get("fill-extrusion-translate"), o.paint.get("fill-extrusion-translate-anchor")), i = d.projection.createInversionMatrix(d, u.canonical);
32081
32098
  q = p ? eo(e, t, k, m, y, w, G, u, r, T, O, P, S, I, i, R, A, _) : Qi(e, t, k, m, y, w, G, u, T, O, P, S, I, i, R, A, D, H, z);
@@ -35054,7 +35071,7 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
35054
35071
  if (!h) continue;
35055
35072
  const d = h.hdExt ? h.hdExt.elevatedStructures : void 0;
35056
35073
  if (!d || !d.depthSegments || 0 === d.depthSegments.segments[0].primitiveLength) continue;
35057
- const u = Fr(c.toUnwrapped(), a), f = Pr(e.translatePosMatrix(c.projMatrix, o, i.paint.get("fill-translate"), i.paint.get("fill-translate-anchor")), u, 0, 1, 0);
35074
+ const u = Fr(c.toUnwrapped(), a), _ = e.translatePosMatrix(c.projMatrix, o, i.paint.get("fill-translate"), i.paint.get("fill-translate-anchor")), f = Pr(_, u, 0, 1, 0);
35058
35075
  l.draw(e, r.TRIANGLES, n, s, $i.disabled, gi.disabled, f, i.id, d.vertexBuffer, d.indexBuffer, d.depthSegments, i.paint, e.transform.zoom);
35059
35076
  }
35060
35077
  },
@@ -35572,7 +35589,7 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
35572
35589
  function Cn(e, t, i, o, r) {
35573
35590
  const n = i.shadowRenderer;
35574
35591
  if (!n) return;
35575
- const s = n.getShadowPassDepthMode(), l = an(r || n.calculateShadowPassMatrixFromMatrix(t));
35592
+ const s = n.getShadowPassDepthMode(), a = r || n.calculateShadowPassMatrixFromMatrix(t), l = an(a);
35576
35593
  i.getOrCreateProgram("modelDepth").draw(i, i.context.gl.TRIANGLES, s, Wi.disabled, $i.disabled, gi.disabled, l, o.id, e.vertexBuffer, e.indexBuffer, e.segments, o.paint, i.transform.zoom, void 0, void 0);
35577
35594
  }
35578
35595
  function Rn(t, i, o, r) {
@@ -41135,10 +41152,10 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41135
41152
  }
41136
41153
  class ll extends Vr {
41137
41154
  constructor(e) {
41138
- const i = $n("mock-dem", {
41155
+ const t = {
41139
41156
  type: "raster-dem",
41140
41157
  maxzoom: Math.ceil(e.transform.maxZoom)
41141
- }, e.style.dispatcher, e.style);
41158
+ }, i = $n("mock-dem", t, e.style.dispatcher, e.style);
41142
41159
  super("mock-dem", i, null), i.setEventedParent(this), this._sourceLoaded = !0;
41143
41160
  }
41144
41161
  _loadTile(e, t) {
@@ -43156,8 +43173,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43156
43173
  !k && !I.mercatorFromTransition || C || (oe = jl(I));
43157
43174
  const re = u ? oe : N, ne = o.getColorAdjustmentMatrix(v, y, x, b), se = Dl(U.kind, $, ie, D, t, ee, te, J, w, !1, B, [0, 0], 0, n, _, F, G, re, s.getProjection(), R, V, ne, L, null), ae = r.imageAtlasTexture ? r.imageAtlasTexture : null, le = 1 !== o.layout.get("icon-size").constantOr(0) || s.iconsNeedLinear, ce = s.sdfIcons || t.options.rotating || t.options.zooming || le || X ? S.LINEAR : S.NEAREST, he = s.sdfIcons && 0 !== o.paint.get("icon-halo-width").constantOr(1), de = t.terrain && D && i ? e.dr(e.bT(), Y) : Ul;
43158
43175
  if (i && s.icon) {
43159
- const i = e.s.getAtTileOffsetFunc(n, I.center.lat, I.worldSize, s.getProjection()), a = Ci(f, r.tileID.canonical, D, C, I, s.getProjection(), p), l = o.layout.get("icon-size-scale-range");
43160
- Oi(s, f, t, !1, a, K, D, m, i, n, e.bG(t.scaleFactor, l[0], l[1]));
43176
+ const i = e.s.getAtTileOffsetFunc(n, I.center.lat, I.worldSize, s.getProjection()), a = Ci(f, r.tileID.canonical, D, C, I, s.getProjection(), p), l = o.layout.get("icon-size-scale-range"), c = e.bG(t.scaleFactor, l[0], l[1]);
43177
+ Oi(s, f, t, !1, a, K, D, m, i, n, c);
43161
43178
  }
43162
43179
  return {
43163
43180
  program: z,
@@ -43189,8 +43206,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43189
43206
  !k && !I.mercatorFromTransition || R || (ie = jl(I));
43190
43207
  const oe = Dl(O.kind, $, te, A, t, J, ee, Q, w, !0, B, D, 0, n, _, F, G, u ? ie : N, s.getProjection(), y, V, null, null, q), re = r.glyphAtlasTexture ? r.glyphAtlasTexture : null, ne = S.LINEAR, se = 0 !== o.paint.get("text-halo-width").constantOr(1), ae = t.terrain && A && i ? e.dr(e.bT(), X) : Ul;
43191
43208
  if (i && s.text) {
43192
- const i = e.s.getAtTileOffsetFunc(n, I.center.lat, I.worldSize, s.getProjection());
43193
- Oi(s, f, t, !0, Ci(f, r.tileID.canonical, A, R, I, s.getProjection(), p), Y, A, g, i, n, q);
43209
+ const i = e.s.getAtTileOffsetFunc(n, I.center.lat, I.worldSize, s.getProjection()), o = Ci(f, r.tileID.canonical, A, R, I, s.getProjection(), p);
43210
+ Oi(s, f, t, !0, o, Y, A, g, i, n, q);
43194
43211
  }
43195
43212
  return {
43196
43213
  program: T,
@@ -44114,34 +44131,40 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44114
44131
  y.translate = o.paint.get("fill-extrusion-translate"), y.translateAnchor = o.paint.get("fill-extrusion-translate-anchor"), y.edgeRadius = o.layout.get("fill-extrusion-edge-radius"), y.cutoffFadeRange = o.paint.get("fill-extrusion-cutoff-fade-range");
44115
44132
  const x = (s) => {
44116
44133
  const l = t.depthModeForSublayer(1, vi.ReadOnly, a.LEQUAL, !0), c = o.paint.get(s ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), h = e.dY(.1, 3, c), p = t._showOverdrawInspector;
44117
- if (!p) vo(y, t, i, o, r, l, new Wi({
44118
- func: a.ALWAYS,
44119
- mask: 255
44120
- }, 255, 255, a.KEEP, a.KEEP, a.REPLACE), new $i([
44121
- a.ONE,
44122
- a.ONE,
44123
- a.ONE,
44124
- a.ONE
44125
- ], e.i.transparent, [
44126
- !1,
44127
- !1,
44128
- !1,
44129
- !0
44130
- ], a.MIN), gi.disabled, s, "sdf", n, u, _, f, m, h, d, !1);
44131
- vo(y, t, i, o, r, l, p ? Wi.disabled : new Wi({
44132
- func: a.EQUAL,
44133
- mask: 255
44134
- }, 255, 255, a.KEEP, a.DECR, a.DECR), p ? t.colorModeForRenderPass() : new $i([
44135
- a.ONE_MINUS_DST_ALPHA,
44136
- a.DST_ALPHA,
44137
- a.ONE,
44138
- a.ONE
44139
- ], e.i.transparent, [
44140
- !0,
44141
- !0,
44142
- !0,
44143
- !0
44144
- ]), gi.disabled, s, "color", n, u, _, f, m, h, d, !1);
44134
+ if (!p) {
44135
+ const c = new Wi({
44136
+ func: a.ALWAYS,
44137
+ mask: 255
44138
+ }, 255, 255, a.KEEP, a.KEEP, a.REPLACE), p = new $i([
44139
+ a.ONE,
44140
+ a.ONE,
44141
+ a.ONE,
44142
+ a.ONE
44143
+ ], e.i.transparent, [
44144
+ !1,
44145
+ !1,
44146
+ !1,
44147
+ !0
44148
+ ], a.MIN);
44149
+ vo(y, t, i, o, r, l, c, p, gi.disabled, s, "sdf", n, u, _, f, m, h, d, !1);
44150
+ }
44151
+ {
44152
+ const c = p ? Wi.disabled : new Wi({
44153
+ func: a.EQUAL,
44154
+ mask: 255
44155
+ }, 255, 255, a.KEEP, a.DECR, a.DECR), g = p ? t.colorModeForRenderPass() : new $i([
44156
+ a.ONE_MINUS_DST_ALPHA,
44157
+ a.DST_ALPHA,
44158
+ a.ONE,
44159
+ a.ONE
44160
+ ], e.i.transparent, [
44161
+ !0,
44162
+ !0,
44163
+ !0,
44164
+ !0
44165
+ ]);
44166
+ vo(y, t, i, o, r, l, c, g, gi.disabled, s, "color", n, u, _, f, m, h, d, !1);
44167
+ }
44145
44168
  };
44146
44169
  if (c) {
44147
44170
  const c = () => {
@@ -44167,27 +44190,29 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44167
44190
  ]);
44168
44191
  vo(y, t, i, o, r, g, Wi.disabled, c, gi.disabled, s, "clear", n, u, _, f, m, x, d, l);
44169
44192
  }
44170
- vo(y, t, i, o, r, g, new Wi({
44171
- func: a.ALWAYS,
44172
- mask: 255
44173
- }, 255, 255, a.KEEP, a.KEEP, a.REPLACE), new $i([
44174
- a.ONE,
44175
- a.ONE,
44176
- a.ONE,
44177
- a.ONE
44178
- ], e.i.transparent, [
44179
- !1,
44180
- !1,
44181
- !1,
44182
- !0
44183
- ], a.MIN), gi.disabled, s, "sdf", n, u, _, f, m, x, d, l);
44193
+ {
44194
+ const c = new Wi({
44195
+ func: a.ALWAYS,
44196
+ mask: 255
44197
+ }, 255, 255, a.KEEP, a.KEEP, a.REPLACE), h = new $i([
44198
+ a.ONE,
44199
+ a.ONE,
44200
+ a.ONE,
44201
+ a.ONE
44202
+ ], e.i.transparent, [
44203
+ !1,
44204
+ !1,
44205
+ !1,
44206
+ !0
44207
+ ], a.MIN);
44208
+ vo(y, t, i, o, r, g, c, h, gi.disabled, s, "sdf", n, u, _, f, m, x, d, l);
44209
+ }
44184
44210
  h && !s && (p = c());
44185
44211
  {
44186
- const c = s ? a.ZERO : a.ONE_MINUS_DST_ALPHA;
44187
- vo(y, t, i, o, r, g, new Wi({
44212
+ const c = s ? a.ZERO : a.ONE_MINUS_DST_ALPHA, h = new Wi({
44188
44213
  func: a.EQUAL,
44189
44214
  mask: 255
44190
- }, 255, 255, a.KEEP, a.DECR, a.DECR), new $i([
44215
+ }, 255, 255, a.KEEP, a.DECR, a.DECR), p = new $i([
44191
44216
  c,
44192
44217
  a.DST_ALPHA,
44193
44218
  a.ONE_MINUS_DST_ALPHA,
@@ -44197,7 +44222,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44197
44222
  !0,
44198
44223
  !0,
44199
44224
  !0
44200
- ]), gi.disabled, s, "color", n, u, _, f, m, x, d, l);
44225
+ ]);
44226
+ vo(y, t, i, o, r, g, h, p, gi.disabled, s, "color", n, u, _, f, m, x, d, l);
44201
44227
  }
44202
44228
  if (!h || s) {
44203
44229
  const c = new $i([
@@ -44214,10 +44240,10 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44214
44240
  vo(y, t, i, o, r, g, Wi.disabled, c, gi.disabled, s, "clear", n, u, _, f, m, x, d, l, p);
44215
44241
  } else {
44216
44242
  a.drawBuffers([a.NONE, a.COLOR_ATTACHMENT1]);
44217
- vo(y, t, i, o, r, g, new Wi({
44243
+ const c = new Wi({
44218
44244
  func: a.EQUAL,
44219
44245
  mask: 255
44220
- }, 254, 255, a.KEEP, a.DECR, a.DECR), new $i([
44246
+ }, 254, 255, a.KEEP, a.DECR, a.DECR), h = new $i([
44221
44247
  a.ONE,
44222
44248
  a.ONE,
44223
44249
  a.ONE,
@@ -44227,7 +44253,8 @@ var require_mapbox_gl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44227
44253
  !1,
44228
44254
  !1,
44229
44255
  !1
44230
- ], a.MAX), gi.disabled, s, "emissive", n, u, _, f, m, x, d, l, p), a.drawBuffers([a.COLOR_ATTACHMENT0]);
44256
+ ], a.MAX);
44257
+ vo(y, t, i, o, r, g, c, h, gi.disabled, s, "emissive", n, u, _, f, m, x, d, l, p), a.drawBuffers([a.COLOR_ATTACHMENT0]);
44231
44258
  }
44232
44259
  };
44233
44260
  if (g || v) {