@mapsindoors/map-template 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{combo-box-item.entry-e8433c10.mjs → combo-box-item.entry-5c861670.mjs} +1 -1
- package/dist/{combo-box-item.entry-43f9c279.mjs → combo-box-item.entry-8e7e870f.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +11 -11
- package/dist/mapsindoors-webcomponent.es.js +1 -1
- package/dist/mapsindoors-webcomponent.umd.js +15 -15
- package/dist/{mi-card_2.entry-3e05c64a.mjs → mi-card_2.entry-5e87398d.mjs} +1 -1
- package/dist/{mi-card_2.entry-34ea9c0f.mjs → mi-card_2.entry-ac419d49.mjs} +1 -1
- package/dist/{mi-chip.entry-b29664ab.mjs → mi-chip.entry-3fc65b66.mjs} +1 -1
- package/dist/{mi-chip.entry-bf880d43.mjs → mi-chip.entry-78d189cc.mjs} +1 -1
- package/dist/{mi-column.entry-b05b9fd8.mjs → mi-column.entry-32d237ae.mjs} +1 -1
- package/dist/{mi-column.entry-c9a43b07.mjs → mi-column.entry-d80a620c.mjs} +1 -1
- package/dist/{mi-combo-box.entry-52b45b1c.mjs → mi-combo-box.entry-3672c03b.mjs} +1 -1
- package/dist/{mi-combo-box.entry-c7e38ae9.mjs → mi-combo-box.entry-8fdef847.mjs} +1 -1
- package/dist/{mi-data-table.entry-345217f7.mjs → mi-data-table.entry-133d1e3b.mjs} +1 -1
- package/dist/{mi-data-table.entry-88f8fabf.mjs → mi-data-table.entry-a24cbda2.mjs} +1 -1
- package/dist/{mi-distance_2.entry-f1f63523.mjs → mi-distance_2.entry-944f1983.mjs} +1 -1
- package/dist/{mi-distance_2.entry-e874bfd9.mjs → mi-distance_2.entry-d829ac38.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-846d3691.mjs → mi-dropdown-item.entry-1eee94d1.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-5550e2ab.mjs → mi-dropdown-item.entry-b1975c55.mjs} +1 -1
- package/dist/{mi-dropdown.entry-d30b7a6a.mjs → mi-dropdown.entry-38ad5cc1.mjs} +1 -1
- package/dist/{mi-dropdown.entry-f52d6276.mjs → mi-dropdown.entry-e33d10cb.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-56ad7df0.mjs → mi-floor-selector.entry-4f69c419.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-c0ff1982.mjs → mi-floor-selector.entry-ecd3fce2.mjs} +1 -1
- package/dist/{mi-keyboard.entry-509077c1.mjs → mi-keyboard.entry-b1ac377a.mjs} +1 -1
- package/dist/{mi-keyboard.entry-8f4489a3.mjs → mi-keyboard.entry-c35597ad.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-e39d6cde.mjs → mi-list-item-category.entry-d571c522.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-e817d618.mjs → mi-list-item-category.entry-ed1f0016.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-7e068a6c.mjs → mi-list-item-location.entry-983d18dc.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-2d7f1aba.mjs → mi-list-item-location.entry-e20d72d5.mjs} +1 -1
- package/dist/{mi-list.entry-b589d513.mjs → mi-list.entry-934a1960.mjs} +1 -1
- package/dist/{mi-list.entry-149a2b0e.mjs → mi-list.entry-b209fc9e.mjs} +1 -1
- package/dist/{mi-location-booking.entry-fdb30ddd.mjs → mi-location-booking.entry-ba90c0f5.mjs} +1 -1
- package/dist/{mi-location-booking.entry-9d803fdd.mjs → mi-location-booking.entry-d3e55066.mjs} +1 -1
- package/dist/{mi-location-info.entry-db791bda.mjs → mi-location-info.entry-6836727e.mjs} +1 -1
- package/dist/{mi-location-info.entry-2dc24888.mjs → mi-location-info.entry-a6fb57ae.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-815c327c.mjs → mi-map-googlemaps.entry-9a87fa24.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-693c17b1.mjs → mi-map-googlemaps.entry-f5b270d4.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-38bfe2e4.mjs → mi-map-mapbox.entry-202a4e8b.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-ce854ebd.mjs → mi-map-mapbox.entry-59feb00a.mjs} +1 -1
- package/dist/{mi-metric-card.entry-fa5470f0.mjs → mi-metric-card.entry-c05cb967.mjs} +1 -1
- package/dist/{mi-metric-card.entry-24ff6739.mjs → mi-metric-card.entry-de136941.mjs} +1 -1
- package/dist/{mi-my-position.entry-008c64f6.mjs → mi-my-position.entry-24076fd3.mjs} +1 -1
- package/dist/{mi-my-position.entry-577a8255.mjs → mi-my-position.entry-398c634c.mjs} +1 -1
- package/dist/{mi-notification.entry-0f43047e.mjs → mi-notification.entry-959f12f4.mjs} +1 -1
- package/dist/{mi-notification.entry-d10ac69d.mjs → mi-notification.entry-d9ab0be7.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-35bf73b0.mjs → mi-route-instructions-heading.entry-9eb6705b.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-a2a1c988.mjs → mi-route-instructions-heading.entry-bd47631f.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver_2.entry-475eb284.mjs → mi-route-instructions-maneuver_2.entry-b76ddf67.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver_2.entry-0ede8a6a.mjs → mi-route-instructions-maneuver_2.entry-dbe93897.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-04669a50.mjs → mi-route-instructions-step-legacy.entry-6d0db095.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-e0a8cb0b.mjs → mi-route-instructions-step-legacy.entry-9ec0b55f.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-e570147c.mjs → mi-route-instructions-step.entry-b6c97032.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-c202fe43.mjs → mi-route-instructions-step.entry-e954a9fb.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-df8d5925.mjs → mi-route-instructions.entry-8b75c569.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-8e6e5228.mjs → mi-route-instructions.entry-cdf599f1.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-771f293a.mjs → mi-scroll-buttons.entry-8942f2b8.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-22dd70ea.mjs → mi-scroll-buttons.entry-949ed154.mjs} +1 -1
- package/dist/{mi-search.entry-fb05a198.mjs → mi-search.entry-29c3e575.mjs} +1 -1
- package/dist/{mi-search.entry-1c387b2e.mjs → mi-search.entry-42818342.mjs} +1 -1
- package/dist/{mi-share-sms.entry-2397d0ec.mjs → mi-share-sms.entry-17289e35.mjs} +1 -1
- package/dist/{mi-share-sms.entry-001986ee.mjs → mi-share-sms.entry-770fed69.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-c8b82dcc.mjs → mi-step-switcher.entry-07befa38.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-47d7f6bb.mjs → mi-step-switcher.entry-7d05e984.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-69a9a2a6.mjs → mi-tab-panel.entry-8f8f1c67.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-dbf1b501.mjs → mi-tab-panel.entry-b0b5328b.mjs} +1 -1
- package/dist/{mi-tab.entry-5dc2e1a4.mjs → mi-tab.entry-186e9c96.mjs} +1 -1
- package/dist/{mi-tab.entry-5850ff32.mjs → mi-tab.entry-2df457c7.mjs} +1 -1
- package/dist/{mi-tabs.entry-9a45d53c.mjs → mi-tabs.entry-37d57017.mjs} +1 -1
- package/dist/{mi-tabs.entry-c1548c35.mjs → mi-tabs.entry-5062f40f.mjs} +1 -1
- package/dist/{reactcomponent-8d2c3766.mjs → reactcomponent-f8a06053.mjs} +475 -475
- package/dist/{webcomponent-41fdf0bf.mjs → webcomponent-fe58a055.mjs} +746 -746
- package/package.json +1 -1
|
@@ -350,9 +350,9 @@ function dw() {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
var
|
|
353
|
+
var Yr = Array.isArray;
|
|
354
354
|
function mn(F) {
|
|
355
|
-
return
|
|
355
|
+
return Yr(F);
|
|
356
356
|
}
|
|
357
357
|
function cr(F) {
|
|
358
358
|
{
|
|
@@ -370,18 +370,18 @@ function dw() {
|
|
|
370
370
|
function hr(F) {
|
|
371
371
|
return "" + F;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Sr(F) {
|
|
374
374
|
if (ur(F))
|
|
375
375
|
return We("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", cr(F)), hr(F);
|
|
376
376
|
}
|
|
377
|
-
var Un = Rt.ReactCurrentOwner,
|
|
377
|
+
var Un = Rt.ReactCurrentOwner, Kr = {
|
|
378
378
|
key: !0,
|
|
379
379
|
ref: !0,
|
|
380
380
|
__self: !0,
|
|
381
381
|
__source: !0
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
function
|
|
382
|
+
}, Cr, Rn, Ar;
|
|
383
|
+
Ar = {};
|
|
384
|
+
function Mr(F) {
|
|
385
385
|
if (ft.call(F, "ref")) {
|
|
386
386
|
var X = Object.getOwnPropertyDescriptor(F, "ref").get;
|
|
387
387
|
if (X && X.isReactWarning)
|
|
@@ -400,13 +400,13 @@ function dw() {
|
|
|
400
400
|
function pr(F, X) {
|
|
401
401
|
if (typeof F.ref == "string" && Un.current && X && Un.current.stateNode !== X) {
|
|
402
402
|
var ae = Jt(Un.current.type);
|
|
403
|
-
|
|
403
|
+
Ar[ae] || (We('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Jt(Un.current.type), F.ref), Ar[ae] = !0);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
function Ie(F, X) {
|
|
407
407
|
{
|
|
408
408
|
var ae = function() {
|
|
409
|
-
|
|
409
|
+
Cr || (Cr = !0, We("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", X));
|
|
410
410
|
};
|
|
411
411
|
ae.isReactWarning = !0, Object.defineProperty(F, "key", {
|
|
412
412
|
get: ae,
|
|
@@ -457,9 +457,9 @@ function dw() {
|
|
|
457
457
|
function Tt(F, X, ae, Ae, Ke) {
|
|
458
458
|
{
|
|
459
459
|
var Be, pt = {}, ut = null, Ct = null;
|
|
460
|
-
ae !== void 0 && (
|
|
460
|
+
ae !== void 0 && (Sr(ae), ut = "" + ae), dr(X) && (Sr(X.key), ut = "" + X.key), Mr(X) && (Ct = X.ref, pr(X, Ke));
|
|
461
461
|
for (Be in X)
|
|
462
|
-
ft.call(X, Be) && !
|
|
462
|
+
ft.call(X, Be) && !Kr.hasOwnProperty(Be) && (pt[Be] = X[Be]);
|
|
463
463
|
if (F && F.defaultProps) {
|
|
464
464
|
var Lt = F.defaultProps;
|
|
465
465
|
for (Be in Lt)
|
|
@@ -1070,7 +1070,7 @@ function t2(m, g) {
|
|
|
1070
1070
|
function L0(m) {
|
|
1071
1071
|
return Md.get(m);
|
|
1072
1072
|
}
|
|
1073
|
-
var
|
|
1073
|
+
var Er = {
|
|
1074
1074
|
nodes: Sa,
|
|
1075
1075
|
recoilValues: vm,
|
|
1076
1076
|
registerNode: Kw,
|
|
@@ -1413,8 +1413,8 @@ var o2 = r2(function(m) {
|
|
|
1413
1413
|
return on(Ie, this);
|
|
1414
1414
|
};
|
|
1415
1415
|
var fn = function(be) {
|
|
1416
|
-
return be &&
|
|
1417
|
-
},
|
|
1416
|
+
return be && Yr(be[0], be[1], be[2], be[3], be[4]);
|
|
1417
|
+
}, Yr = function(be, lt, Tt, Et, Pt) {
|
|
1418
1418
|
for (; Tt < be; ) {
|
|
1419
1419
|
var Ut = lt[Tt++];
|
|
1420
1420
|
if (Ut && !kt(Ut))
|
|
@@ -1432,7 +1432,7 @@ var o2 = r2(function(m) {
|
|
|
1432
1432
|
case pe:
|
|
1433
1433
|
case Dt:
|
|
1434
1434
|
var Et = be.children;
|
|
1435
|
-
return
|
|
1435
|
+
return Yr(Et.length, Et, 0, lt, Tt);
|
|
1436
1436
|
default:
|
|
1437
1437
|
return fn(Tt);
|
|
1438
1438
|
}
|
|
@@ -1452,31 +1452,31 @@ var o2 = r2(function(m) {
|
|
|
1452
1452
|
};
|
|
1453
1453
|
var hr = function(be, lt) {
|
|
1454
1454
|
return new ur(mn(be._root, lt));
|
|
1455
|
-
},
|
|
1455
|
+
}, Sr = function(be) {
|
|
1456
1456
|
return [be.key, be.value];
|
|
1457
1457
|
}, Un = x.entries = function(Ie) {
|
|
1458
|
-
return hr(Ie,
|
|
1458
|
+
return hr(Ie, Sr);
|
|
1459
1459
|
};
|
|
1460
1460
|
ge.prototype.entries = ge.prototype[Symbol.iterator] = function() {
|
|
1461
1461
|
return Un(this);
|
|
1462
1462
|
};
|
|
1463
|
-
var
|
|
1463
|
+
var Kr = function(be) {
|
|
1464
1464
|
return be.key;
|
|
1465
|
-
},
|
|
1466
|
-
return hr(Ie,
|
|
1465
|
+
}, Cr = x.keys = function(Ie) {
|
|
1466
|
+
return hr(Ie, Kr);
|
|
1467
1467
|
};
|
|
1468
1468
|
ge.prototype.keys = function() {
|
|
1469
|
-
return
|
|
1469
|
+
return Cr(this);
|
|
1470
1470
|
};
|
|
1471
1471
|
var Rn = function(be) {
|
|
1472
1472
|
return be.value;
|
|
1473
|
-
},
|
|
1473
|
+
}, Ar = x.values = ge.prototype.values = function(Ie) {
|
|
1474
1474
|
return hr(Ie, Rn);
|
|
1475
1475
|
};
|
|
1476
1476
|
ge.prototype.values = function() {
|
|
1477
|
-
return
|
|
1477
|
+
return Ar(this);
|
|
1478
1478
|
};
|
|
1479
|
-
var
|
|
1479
|
+
var Mr = x.fold = function(Ie, be, lt) {
|
|
1480
1480
|
var Tt = lt._root;
|
|
1481
1481
|
if (Tt.type === We)
|
|
1482
1482
|
return Ie(be, Tt.value, Tt.key);
|
|
@@ -1488,10 +1488,10 @@ var o2 = r2(function(m) {
|
|
|
1488
1488
|
return be;
|
|
1489
1489
|
};
|
|
1490
1490
|
ge.prototype.fold = function(Ie, be) {
|
|
1491
|
-
return
|
|
1491
|
+
return Mr(Ie, be, this);
|
|
1492
1492
|
};
|
|
1493
1493
|
var dr = x.forEach = function(Ie, be) {
|
|
1494
|
-
return
|
|
1494
|
+
return Mr(function(lt, Tt, Et) {
|
|
1495
1495
|
return Ie(Tt, Et, be);
|
|
1496
1496
|
}, null, be);
|
|
1497
1497
|
};
|
|
@@ -1774,7 +1774,7 @@ const {
|
|
|
1774
1774
|
getNode: Iu,
|
|
1775
1775
|
getNodeMaybe: L2,
|
|
1776
1776
|
recoilValuesForKeys: Ay
|
|
1777
|
-
} =
|
|
1777
|
+
} = Er, {
|
|
1778
1778
|
RetentionZone: My
|
|
1779
1779
|
} = $d, {
|
|
1780
1780
|
setByAddingToSet: k2
|
|
@@ -1925,9 +1925,9 @@ const {
|
|
|
1925
1925
|
} = jd, {
|
|
1926
1926
|
getNode: H2,
|
|
1927
1927
|
getNodeMaybe: G0
|
|
1928
|
-
} =
|
|
1928
|
+
} = Er, {
|
|
1929
1929
|
DefaultValue: Em
|
|
1930
|
-
} =
|
|
1930
|
+
} = Er, {
|
|
1931
1931
|
reactMode: X2
|
|
1932
1932
|
} = Vl, {
|
|
1933
1933
|
AbstractRecoilValue: Y2,
|
|
@@ -2138,7 +2138,7 @@ const {
|
|
|
2138
2138
|
} = As, {
|
|
2139
2139
|
deleteNodeConfigIfPossible: fT,
|
|
2140
2140
|
getNode: X0
|
|
2141
|
-
} =
|
|
2141
|
+
} = Er, {
|
|
2142
2142
|
RetentionZone: Y0
|
|
2143
2143
|
} = $d, mT = 12e4, K0 = /* @__PURE__ */ new Set();
|
|
2144
2144
|
function J0(m, g) {
|
|
@@ -2380,7 +2380,7 @@ const {
|
|
|
2380
2380
|
DEFAULT_VALUE: GT,
|
|
2381
2381
|
recoilValues: Iy,
|
|
2382
2382
|
recoilValuesForKeys: Ry
|
|
2383
|
-
} =
|
|
2383
|
+
} = Er, {
|
|
2384
2384
|
AbstractRecoilValue: ZT,
|
|
2385
2385
|
getRecoilValueAsLoadable: qT,
|
|
2386
2386
|
setRecoilValue: Dy,
|
|
@@ -2941,7 +2941,7 @@ const {
|
|
|
2941
2941
|
batchUpdates: ZE
|
|
2942
2942
|
} = Gd, {
|
|
2943
2943
|
DEFAULT_VALUE: m1
|
|
2944
|
-
} =
|
|
2944
|
+
} = Er, {
|
|
2945
2945
|
currentRendererSupportsUseSyncExternalStore: qE,
|
|
2946
2946
|
reactMode: Ma,
|
|
2947
2947
|
useMutableSource: WE,
|
|
@@ -2958,7 +2958,7 @@ const {
|
|
|
2958
2958
|
setUnvalidatedRecoilValue: KE,
|
|
2959
2959
|
subscribeToRecoilValue: Fl
|
|
2960
2960
|
} = Io, {
|
|
2961
|
-
useCallback:
|
|
2961
|
+
useCallback: Tr,
|
|
2962
2962
|
useEffect: Ul,
|
|
2963
2963
|
useMemo: _1,
|
|
2964
2964
|
useRef: Su,
|
|
@@ -2985,10 +2985,10 @@ function lr(m, g) {
|
|
|
2985
2985
|
function eS() {
|
|
2986
2986
|
const m = Du(), g = Ro(), [, x] = Mm([]), b = Su(/* @__PURE__ */ new Set());
|
|
2987
2987
|
b.current = /* @__PURE__ */ new Set();
|
|
2988
|
-
const S = Su(/* @__PURE__ */ new Set()), D = Su(/* @__PURE__ */ new Map()), B =
|
|
2988
|
+
const S = Su(/* @__PURE__ */ new Set()), D = Su(/* @__PURE__ */ new Map()), B = Tr((P) => {
|
|
2989
2989
|
const $ = D.current.get(P);
|
|
2990
2990
|
$ && ($.release(), D.current.delete(P));
|
|
2991
|
-
}, [D]), o =
|
|
2991
|
+
}, [D]), o = Tr((P, $) => {
|
|
2992
2992
|
D.current.has($) && x([]);
|
|
2993
2993
|
}, []);
|
|
2994
2994
|
return Ul(() => {
|
|
@@ -3051,7 +3051,7 @@ const ku = {
|
|
|
3051
3051
|
current: 0
|
|
3052
3052
|
};
|
|
3053
3053
|
function tS(m) {
|
|
3054
|
-
const g = Ro(), x = Du(), b =
|
|
3054
|
+
const g = Ro(), x = Du(), b = Tr(() => {
|
|
3055
3055
|
var o;
|
|
3056
3056
|
process.env.NODE_ENV !== "production" && ku.current++;
|
|
3057
3057
|
const P = g.current, $ = P.getState(), ie = Ma().early && (o = $.nextTree) !== null && o !== void 0 ? o : $.currentTree;
|
|
@@ -3059,14 +3059,14 @@ function tS(m) {
|
|
|
3059
3059
|
loadable: Lu(P, m, ie),
|
|
3060
3060
|
key: m.key
|
|
3061
3061
|
};
|
|
3062
|
-
}, [g, m]), S =
|
|
3062
|
+
}, [g, m]), S = Tr((o) => {
|
|
3063
3063
|
let P;
|
|
3064
3064
|
return () => {
|
|
3065
3065
|
var $, ie;
|
|
3066
3066
|
const Q = o();
|
|
3067
3067
|
return ($ = P) !== null && $ !== void 0 && $.loadable.is(Q.loadable) && ((ie = P) === null || ie === void 0 ? void 0 : ie.key) === Q.key ? P : (P = Q, Q);
|
|
3068
3068
|
};
|
|
3069
|
-
}, []), D = _1(() => S(b), [b, S]), B =
|
|
3069
|
+
}, []), D = _1(() => S(b), [b, S]), B = Tr((o) => {
|
|
3070
3070
|
const P = g.current;
|
|
3071
3071
|
return Fl(P, m, o, x).release;
|
|
3072
3072
|
}, [g, m, x]);
|
|
@@ -3079,11 +3079,11 @@ function tS(m) {
|
|
|
3079
3079
|
).loadable;
|
|
3080
3080
|
}
|
|
3081
3081
|
function iS(m) {
|
|
3082
|
-
const g = Ro(), x =
|
|
3082
|
+
const g = Ro(), x = Tr(() => {
|
|
3083
3083
|
var $;
|
|
3084
3084
|
const ie = g.current, Q = ie.getState(), se = Ma().early && ($ = Q.nextTree) !== null && $ !== void 0 ? $ : Q.currentTree;
|
|
3085
3085
|
return Lu(ie, m, se);
|
|
3086
|
-
}, [g, m]), b =
|
|
3086
|
+
}, [g, m]), b = Tr(() => (process.env.NODE_ENV !== "production" && ku.current++, x()), [x]), S = Du(), D = Tr(($, ie) => {
|
|
3087
3087
|
const Q = g.current;
|
|
3088
3088
|
return Fl(Q, m, () => {
|
|
3089
3089
|
if (!cn("recoil_suppress_rerender_in_callback"))
|
|
@@ -3100,15 +3100,15 @@ function iS(m) {
|
|
|
3100
3100
|
}), o;
|
|
3101
3101
|
}
|
|
3102
3102
|
function tm(m) {
|
|
3103
|
-
const g = Ro(), x = Du(), b =
|
|
3103
|
+
const g = Ro(), x = Du(), b = Tr(() => {
|
|
3104
3104
|
var P;
|
|
3105
3105
|
process.env.NODE_ENV !== "production" && ku.current++;
|
|
3106
3106
|
const $ = g.current, ie = $.getState(), Q = Ma().early && (P = ie.nextTree) !== null && P !== void 0 ? P : ie.currentTree;
|
|
3107
3107
|
return Lu($, m, Q);
|
|
3108
|
-
}, [g, m]), S =
|
|
3108
|
+
}, [g, m]), S = Tr(() => ({
|
|
3109
3109
|
loadable: b(),
|
|
3110
3110
|
key: m.key
|
|
3111
|
-
}), [b, m.key]), D =
|
|
3111
|
+
}), [b, m.key]), D = Tr((P) => {
|
|
3112
3112
|
const $ = S();
|
|
3113
3113
|
return P.loadable.is($.loadable) && P.key === $.key ? P : $;
|
|
3114
3114
|
}, [S]);
|
|
@@ -3122,7 +3122,7 @@ function tm(m) {
|
|
|
3122
3122
|
return B.key !== m.key ? S().loadable : B.loadable;
|
|
3123
3123
|
}
|
|
3124
3124
|
function nS(m) {
|
|
3125
|
-
const g = Ro(), [, x] = Mm([]), b = Du(), S =
|
|
3125
|
+
const g = Ro(), [, x] = Mm([]), b = Du(), S = Tr(() => {
|
|
3126
3126
|
var o;
|
|
3127
3127
|
process.env.NODE_ENV !== "production" && ku.current++;
|
|
3128
3128
|
const P = g.current, $ = P.getState(), ie = Ma().early && (o = $.nextTree) !== null && o !== void 0 ? o : $.currentTree;
|
|
@@ -3175,14 +3175,14 @@ function g1(m) {
|
|
|
3175
3175
|
function Xd(m) {
|
|
3176
3176
|
process.env.NODE_ENV !== "production" && lr(m, "useSetRecoilState");
|
|
3177
3177
|
const g = Ro();
|
|
3178
|
-
return
|
|
3178
|
+
return Tr((x) => {
|
|
3179
3179
|
Rd(g.current, m, x);
|
|
3180
3180
|
}, [g, m]);
|
|
3181
3181
|
}
|
|
3182
3182
|
function rS(m) {
|
|
3183
3183
|
process.env.NODE_ENV !== "production" && lr(m, "useResetRecoilState");
|
|
3184
3184
|
const g = Ro();
|
|
3185
|
-
return
|
|
3185
|
+
return Tr(() => {
|
|
3186
3186
|
Rd(g.current, m, m1);
|
|
3187
3187
|
}, [g, m]);
|
|
3188
3188
|
}
|
|
@@ -3256,7 +3256,7 @@ const {
|
|
|
3256
3256
|
DEFAULT_VALUE: gS,
|
|
3257
3257
|
getNode: x1,
|
|
3258
3258
|
nodes: yS
|
|
3259
|
-
} =
|
|
3259
|
+
} = Er, {
|
|
3260
3260
|
useStoreRef: Dm
|
|
3261
3261
|
} = Xo, {
|
|
3262
3262
|
AbstractRecoilValue: vS,
|
|
@@ -3413,7 +3413,7 @@ const {
|
|
|
3413
3413
|
} = As, {
|
|
3414
3414
|
DEFAULT_VALUE: FS,
|
|
3415
3415
|
getNode: US
|
|
3416
|
-
} =
|
|
3416
|
+
} = Er, {
|
|
3417
3417
|
copyTreeState: jS,
|
|
3418
3418
|
getRecoilValueAsLoadable: $S,
|
|
3419
3419
|
invalidateDownstreams: VS,
|
|
@@ -3481,7 +3481,7 @@ const {
|
|
|
3481
3481
|
batchUpdates: JS
|
|
3482
3482
|
} = Gd, {
|
|
3483
3483
|
DEFAULT_VALUE: QS
|
|
3484
|
-
} =
|
|
3484
|
+
} = Er, {
|
|
3485
3485
|
useStoreRef: eC
|
|
3486
3486
|
} = Xo, {
|
|
3487
3487
|
refreshRecoilValue: tC,
|
|
@@ -3789,7 +3789,7 @@ function IC({
|
|
|
3789
3789
|
}
|
|
3790
3790
|
var Vy = IC;
|
|
3791
3791
|
const RC = 15;
|
|
3792
|
-
function
|
|
3792
|
+
function Xr(m, g, x) {
|
|
3793
3793
|
if (typeof m == "string" && !m.includes('"') && !m.includes("\\"))
|
|
3794
3794
|
return `"${m}"`;
|
|
3795
3795
|
switch (typeof m) {
|
|
@@ -3816,30 +3816,30 @@ function Hr(m, g, x) {
|
|
|
3816
3816
|
if (ln(m))
|
|
3817
3817
|
return "__PROMISE__";
|
|
3818
3818
|
if (Array.isArray(m))
|
|
3819
|
-
return `[${m.map((S, D) =>
|
|
3819
|
+
return `[${m.map((S, D) => Xr(S, g, D.toString()))}]`;
|
|
3820
3820
|
if (typeof m.toJSON == "function")
|
|
3821
|
-
return
|
|
3821
|
+
return Xr(m.toJSON(x), g, x);
|
|
3822
3822
|
if (m instanceof Map) {
|
|
3823
3823
|
const S = {};
|
|
3824
3824
|
for (const [D, B] of m)
|
|
3825
|
-
S[typeof D == "string" ? D :
|
|
3826
|
-
return
|
|
3825
|
+
S[typeof D == "string" ? D : Xr(D, g)] = B;
|
|
3826
|
+
return Xr(S, g, x);
|
|
3827
3827
|
}
|
|
3828
|
-
return m instanceof Set ?
|
|
3828
|
+
return m instanceof Set ? Xr(
|
|
3829
3829
|
// $FlowFixMe[missing-local-annot]
|
|
3830
|
-
Array.from(m).sort((S, D) =>
|
|
3830
|
+
Array.from(m).sort((S, D) => Xr(S, g).localeCompare(Xr(D, g))),
|
|
3831
3831
|
g,
|
|
3832
3832
|
x
|
|
3833
|
-
) : Symbol !== void 0 && m[Symbol.iterator] != null && typeof m[Symbol.iterator] == "function" ?
|
|
3833
|
+
) : Symbol !== void 0 && m[Symbol.iterator] != null && typeof m[Symbol.iterator] == "function" ? Xr(Array.from(m), g, x) : `{${Object.keys(m).filter((S) => m[S] !== void 0).sort().map((S) => `${Xr(S, g)}:${Xr(m[S], g, S)}`).join(",")}}`;
|
|
3834
3834
|
}
|
|
3835
3835
|
function DC(m, g = {
|
|
3836
3836
|
allowFunctions: !1
|
|
3837
3837
|
}) {
|
|
3838
3838
|
if (process.env.NODE_ENV !== "production" && typeof window < "u") {
|
|
3839
|
-
const x = window.performance ? window.performance.now() : 0, b =
|
|
3839
|
+
const x = window.performance ? window.performance.now() : 0, b = Xr(m, g), S = window.performance ? window.performance.now() : 0;
|
|
3840
3840
|
return S - x > RC && (console.groupCollapsed(`Recoil: Spent ${S - x}ms computing a cache key`), console.warn(m, b), console.groupEnd()), b;
|
|
3841
3841
|
}
|
|
3842
|
-
return
|
|
3842
|
+
return Xr(m, g);
|
|
3843
3843
|
}
|
|
3844
3844
|
var Jd = DC;
|
|
3845
3845
|
const {
|
|
@@ -3948,7 +3948,7 @@ const {
|
|
|
3948
3948
|
getConfigDeletionHandler: YC,
|
|
3949
3949
|
getNode: KC,
|
|
3950
3950
|
registerNode: Gy
|
|
3951
|
-
} =
|
|
3951
|
+
} = Er, {
|
|
3952
3952
|
isRecoilValue: JC
|
|
3953
3953
|
} = Ea, {
|
|
3954
3954
|
markRecoilValueModified: Zy
|
|
@@ -4322,7 +4322,7 @@ const {
|
|
|
4322
4322
|
getConfigDeletionHandler: O1,
|
|
4323
4323
|
registerNode: oA,
|
|
4324
4324
|
setConfigDeletionHandler: sA
|
|
4325
|
-
} =
|
|
4325
|
+
} = Er, {
|
|
4326
4326
|
isRecoilValue: aA
|
|
4327
4327
|
} = Ea, {
|
|
4328
4328
|
getRecoilValueAsLoadable: lA,
|
|
@@ -4665,7 +4665,7 @@ function bA(m, g, x) {
|
|
|
4665
4665
|
var N1 = vA;
|
|
4666
4666
|
const {
|
|
4667
4667
|
setConfigDeletionHandler: wA
|
|
4668
|
-
} =
|
|
4668
|
+
} = Er;
|
|
4669
4669
|
function TA(m) {
|
|
4670
4670
|
var g, x;
|
|
4671
4671
|
const b = N1({
|
|
@@ -4712,7 +4712,7 @@ function TA(m) {
|
|
|
4712
4712
|
var EA = TA;
|
|
4713
4713
|
const {
|
|
4714
4714
|
setConfigDeletionHandler: SA
|
|
4715
|
-
} =
|
|
4715
|
+
} = Er;
|
|
4716
4716
|
let CA = 0;
|
|
4717
4717
|
function AA(m) {
|
|
4718
4718
|
var g, x;
|
|
@@ -4911,7 +4911,7 @@ const {
|
|
|
4911
4911
|
RecoilLoadable: GA
|
|
4912
4912
|
} = Au, {
|
|
4913
4913
|
DefaultValue: ZA
|
|
4914
|
-
} =
|
|
4914
|
+
} = Er, {
|
|
4915
4915
|
RecoilRoot: qA,
|
|
4916
4916
|
useRecoilStoreID: WA
|
|
4917
4917
|
} = Xo, {
|
|
@@ -4999,7 +4999,7 @@ const _M = (m, g) => {
|
|
|
4999
4999
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(S.bind(null, new Error("Unknown variable dynamic import: " + g)));
|
|
5000
5000
|
});
|
|
5001
5001
|
}, gM = "mi-components";
|
|
5002
|
-
let Ad, $1,
|
|
5002
|
+
let Ad, $1, Pr = !1, rm = !1;
|
|
5003
5003
|
const Ho = (m, g = "") => () => {
|
|
5004
5004
|
}, yM = (m, g) => () => {
|
|
5005
5005
|
}, vM = "{visibility:hidden}.hydrated{visibility:inherit}", Hy = "http://www.w3.org/1999/xlink", Xy = {}, xM = "http://www.w3.org/2000/svg", bM = "http://www.w3.org/1999/xhtml", wM = (m) => m != null, km = (m) => (m = typeof m, m === "object" || m === "function");
|
|
@@ -5113,10 +5113,10 @@ const TM = (m, g, ...x) => {
|
|
|
5113
5113
|
if (S.$text$ !== null)
|
|
5114
5114
|
B = S.$elm$ = Mo.createTextNode(S.$text$);
|
|
5115
5115
|
else {
|
|
5116
|
-
if (
|
|
5116
|
+
if (Pr || (Pr = S.$tag$ === "svg"), B = S.$elm$ = Mo.createElementNS(Pr ? xM : bM, S.$tag$), Pr && S.$tag$ === "foreignObject" && (Pr = !1), q1(null, S, Pr), wM(Ad) && B["s-si"] !== Ad && B.classList.add(B["s-si"] = Ad), S.$children$)
|
|
5117
5117
|
for (D = 0; D < S.$children$.length; ++D)
|
|
5118
5118
|
o = Ld(m, S, D), o && B.appendChild(o);
|
|
5119
|
-
S.$tag$ === "svg" ?
|
|
5119
|
+
S.$tag$ === "svg" ? Pr = !1 : B.tagName === "foreignObject" && (Pr = !0);
|
|
5120
5120
|
}
|
|
5121
5121
|
return B;
|
|
5122
5122
|
}, W1 = (m, g, x, b, S, D) => {
|
|
@@ -5156,7 +5156,7 @@ const TM = (m, g, ...x) => {
|
|
|
5156
5156
|
S > P ? W1(m, b[Q + 1] == null ? null : b[Q + 1].$elm$, x, b, D, Q) : D > Q && H1(g, S, P);
|
|
5157
5157
|
}, Td = (m, g) => m.$tag$ === g.$tag$ ? m.$key$ === g.$key$ : !1, kl = (m, g) => {
|
|
5158
5158
|
const x = g.$elm$ = m.$elm$, b = m.$children$, S = g.$children$, D = g.$tag$, B = g.$text$;
|
|
5159
|
-
B === null ? (
|
|
5159
|
+
B === null ? (Pr = D === "svg" ? !0 : D === "foreignObject" ? !1 : Pr, D === "slot" || q1(m, g, Pr), b !== null && S !== null ? LM(x, b, g, S) : S !== null ? (m.$text$ !== null && (x.textContent = ""), W1(x, null, g, S, 0, S.length - 1)) : b !== null && H1(b, 0, b.length - 1), Pr && D === "svg" && (Pr = !1)) : m.$text$ !== B && (x.data = B);
|
|
5160
5160
|
}, X1 = (m) => {
|
|
5161
5161
|
m.$attrs$ && m.$attrs$.ref && m.$attrs$.ref(null), m.$children$ && m.$children$.map(X1);
|
|
5162
5162
|
}, kM = (m, g) => {
|
|
@@ -5395,7 +5395,7 @@ const TM = (m, g, ...x) => {
|
|
|
5395
5395
|
if (D)
|
|
5396
5396
|
return D[b];
|
|
5397
5397
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
5398
|
-
return _M(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-
|
|
5398
|
+
return _M(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-8e7e870f.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-5e87398d.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-3fc65b66.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-32d237ae.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-3672c03b.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-133d1e3b.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-d829ac38.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-b1975c55.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-38ad5cc1.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-4f69c419.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-b1ac377a.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-d571c522.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-983d18dc.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-934a1960.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-d3e55066.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-6836727e.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-9a87fa24.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-59feb00a.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-de136941.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-24076fd3.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-d9ab0be7.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-9eb6705b.mjs"), "./mi-route-instructions-maneuver_2.entry.js": () => import("./mi-route-instructions-maneuver_2.entry-dbe93897.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-6d0db095.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-b6c97032.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-8b75c569.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-949ed154.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-42818342.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-17289e35.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-7d05e984.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-b0b5328b.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-2df457c7.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-37d57017.mjs") }), `./${S}.entry.js`).then((B) => (t0.set(S, B), B[b]), Ia);
|
|
5399
5399
|
}, kd = /* @__PURE__ */ new Map(), Pu = typeof window < "u" ? window : {}, Mo = Pu.document || { head: {} }, qn = {
|
|
5400
5400
|
$flags$: 0,
|
|
5401
5401
|
$resourcesUrl$: "",
|
|
@@ -5965,18 +5965,18 @@ var rv = { exports: {} };
|
|
|
5965
5965
|
function fn(t, e) {
|
|
5966
5966
|
return [t[4 * e], t[4 * e + 1], t[4 * e + 2], t[4 * e + 3]];
|
|
5967
5967
|
}
|
|
5968
|
-
const
|
|
5968
|
+
const Yr = "mapbox-tiles";
|
|
5969
5969
|
let mn, cr, ur = 500, hr = 50;
|
|
5970
|
-
function
|
|
5970
|
+
function Sr() {
|
|
5971
5971
|
try {
|
|
5972
5972
|
return P.caches;
|
|
5973
5973
|
} catch {
|
|
5974
5974
|
}
|
|
5975
5975
|
}
|
|
5976
5976
|
function Un() {
|
|
5977
|
-
|
|
5977
|
+
Sr() && !mn && (mn = P.caches.open(Yr));
|
|
5978
5978
|
}
|
|
5979
|
-
function
|
|
5979
|
+
function Kr(t) {
|
|
5980
5980
|
const e = t.indexOf("?");
|
|
5981
5981
|
if (e < 0)
|
|
5982
5982
|
return t;
|
|
@@ -5989,10 +5989,10 @@ var rv = { exports: {} };
|
|
|
5989
5989
|
});
|
|
5990
5990
|
return r.length ? `${t.slice(0, e)}?${r.join("&")}` : t.slice(0, e);
|
|
5991
5991
|
}
|
|
5992
|
-
let
|
|
5992
|
+
let Cr = 1 / 0;
|
|
5993
5993
|
const Rn = { Unknown: "Unknown", Style: "Style", Source: "Source", Tile: "Tile", Glyphs: "Glyphs", SpriteImage: "SpriteImage", SpriteJSON: "SpriteJSON", Image: "Image" };
|
|
5994
5994
|
typeof Object.freeze == "function" && Object.freeze(Rn);
|
|
5995
|
-
class
|
|
5995
|
+
class Ar extends Error {
|
|
5996
5996
|
constructor(e, i, r) {
|
|
5997
5997
|
i === 401 && Zt(r) && (e += ": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"), super(e), this.status = i, this.url = r;
|
|
5998
5998
|
}
|
|
@@ -6000,11 +6000,11 @@ var rv = { exports: {} };
|
|
|
6000
6000
|
return `${this.name}: ${this.message} (${this.status}): ${this.url}`;
|
|
6001
6001
|
}
|
|
6002
6002
|
}
|
|
6003
|
-
const
|
|
6004
|
-
if (!(/^file:/.test(i = t.url) || /^file:/.test(
|
|
6003
|
+
const Mr = ci() ? () => self.worker && self.worker.referrer : () => (P.location.protocol === "blob:" ? P.parent : P).location.href, dr = function(t, e) {
|
|
6004
|
+
if (!(/^file:/.test(i = t.url) || /^file:/.test(Mr()) && !/^\w+:/.test(i))) {
|
|
6005
6005
|
if (P.fetch && P.Request && P.AbortController && P.Request.prototype.hasOwnProperty("signal"))
|
|
6006
6006
|
return function(r, a) {
|
|
6007
|
-
const c = new P.AbortController(), h = new P.Request(r.url, { method: r.method || "GET", body: r.body, credentials: r.credentials, headers: r.headers, referrer:
|
|
6007
|
+
const c = new P.AbortController(), h = new P.Request(r.url, { method: r.method || "GET", body: r.body, credentials: r.credentials, headers: r.headers, referrer: Mr(), signal: c.signal });
|
|
6008
6008
|
let p = !1, _ = !1;
|
|
6009
6009
|
const y = (T = h.url).indexOf("sku=") > 0 && Zt(T);
|
|
6010
6010
|
var T;
|
|
@@ -6020,7 +6020,7 @@ var rv = { exports: {} };
|
|
|
6020
6020
|
const le = y ? te.clone() : null;
|
|
6021
6021
|
return A(te, le, j);
|
|
6022
6022
|
}
|
|
6023
|
-
return a(new
|
|
6023
|
+
return a(new Ar(te.statusText, te.status, r.url));
|
|
6024
6024
|
}).catch((te) => {
|
|
6025
6025
|
te.code !== 20 && a(new Error(te.message));
|
|
6026
6026
|
});
|
|
@@ -6046,7 +6046,7 @@ var rv = { exports: {} };
|
|
|
6046
6046
|
cr ? Ce(Me.body) : Me.blob().then(Ce);
|
|
6047
6047
|
}(le, (Me) => {
|
|
6048
6048
|
const Ce = new P.Response(Me, oe);
|
|
6049
|
-
Un(), mn && mn.then((Ne) => Ne.put(
|
|
6049
|
+
Un(), mn && mn.then((Ne) => Ne.put(Kr(te.url), Ce)).catch((Ne) => Ze(Ne.message));
|
|
6050
6050
|
}));
|
|
6051
6051
|
}(h, L, O), p = !0, a(null, j, R.headers.get("Cache-Control"), R.headers.get("Expires")));
|
|
6052
6052
|
}).catch((j) => {
|
|
@@ -6056,7 +6056,7 @@ var rv = { exports: {} };
|
|
|
6056
6056
|
return y ? function(R, L) {
|
|
6057
6057
|
if (Un(), !mn)
|
|
6058
6058
|
return L(null);
|
|
6059
|
-
const O =
|
|
6059
|
+
const O = Kr(R.url);
|
|
6060
6060
|
mn.then((j) => {
|
|
6061
6061
|
j.match(O).then((te) => {
|
|
6062
6062
|
const le = function(ee) {
|
|
@@ -6094,7 +6094,7 @@ var rv = { exports: {} };
|
|
|
6094
6094
|
}
|
|
6095
6095
|
a(null, h, c.getResponseHeader("Cache-Control"), c.getResponseHeader("Expires"));
|
|
6096
6096
|
} else
|
|
6097
|
-
a(new
|
|
6097
|
+
a(new Ar(c.statusText, c.status, r.url));
|
|
6098
6098
|
}, c.send(r.body), { cancel: () => c.abort() };
|
|
6099
6099
|
}(t, e);
|
|
6100
6100
|
}, pr = function(t, e) {
|
|
@@ -6409,12 +6409,12 @@ var rv = { exports: {} };
|
|
|
6409
6409
|
r !== -1 && i[t].splice(r, 1);
|
|
6410
6410
|
}
|
|
6411
6411
|
}
|
|
6412
|
-
class
|
|
6412
|
+
class zr {
|
|
6413
6413
|
constructor(e, i = {}) {
|
|
6414
6414
|
Oe(this, i), this.type = e;
|
|
6415
6415
|
}
|
|
6416
6416
|
}
|
|
6417
|
-
class
|
|
6417
|
+
class co extends zr {
|
|
6418
6418
|
constructor(e, i = {}) {
|
|
6419
6419
|
super("error", Oe({ error: e }, i));
|
|
6420
6420
|
}
|
|
@@ -6430,7 +6430,7 @@ var rv = { exports: {} };
|
|
|
6430
6430
|
return i ? (this._oneTimeListeners = this._oneTimeListeners || {}, Li(e, i, this._oneTimeListeners), this) : new Promise((r) => this.once(e, r));
|
|
6431
6431
|
}
|
|
6432
6432
|
fire(e, i) {
|
|
6433
|
-
typeof e == "string" && (e = new
|
|
6433
|
+
typeof e == "string" && (e = new zr(e, i || {}));
|
|
6434
6434
|
const r = e.type;
|
|
6435
6435
|
if (this.listens(r)) {
|
|
6436
6436
|
e.target = this;
|
|
@@ -6443,7 +6443,7 @@ var rv = { exports: {} };
|
|
|
6443
6443
|
const h = this._eventedParent;
|
|
6444
6444
|
h && (Oe(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), h.fire(e));
|
|
6445
6445
|
} else
|
|
6446
|
-
e instanceof
|
|
6446
|
+
e instanceof co && console.error(e.error);
|
|
6447
6447
|
return this;
|
|
6448
6448
|
}
|
|
6449
6449
|
listens(e) {
|
|
@@ -6454,7 +6454,7 @@ var rv = { exports: {} };
|
|
|
6454
6454
|
}
|
|
6455
6455
|
}
|
|
6456
6456
|
var je = JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');
|
|
6457
|
-
function
|
|
6457
|
+
function Jr(t, ...e) {
|
|
6458
6458
|
for (const i of e)
|
|
6459
6459
|
for (const r in i)
|
|
6460
6460
|
t[r] = i[r];
|
|
@@ -6463,13 +6463,13 @@ var rv = { exports: {} };
|
|
|
6463
6463
|
function Tn(t) {
|
|
6464
6464
|
return t instanceof Number || t instanceof String || t instanceof Boolean ? t.valueOf() : t;
|
|
6465
6465
|
}
|
|
6466
|
-
function
|
|
6466
|
+
function Qr(t) {
|
|
6467
6467
|
if (Array.isArray(t))
|
|
6468
|
-
return t.map(
|
|
6468
|
+
return t.map(Qr);
|
|
6469
6469
|
if (t instanceof Object && !(t instanceof Number || t instanceof String || t instanceof Boolean)) {
|
|
6470
6470
|
const e = {};
|
|
6471
6471
|
for (const i in t)
|
|
6472
|
-
e[i] =
|
|
6472
|
+
e[i] = Qr(t[i]);
|
|
6473
6473
|
return e;
|
|
6474
6474
|
}
|
|
6475
6475
|
return Tn(t);
|
|
@@ -6501,7 +6501,7 @@ var rv = { exports: {} };
|
|
|
6501
6501
|
}
|
|
6502
6502
|
}
|
|
6503
6503
|
var Bu = Ra;
|
|
6504
|
-
const Hn = { kind: "null" }, bt = { kind: "number" }, xi = { kind: "string" }, _i = { kind: "boolean" },
|
|
6504
|
+
const Hn = { kind: "null" }, bt = { kind: "number" }, xi = { kind: "string" }, _i = { kind: "boolean" }, Ir = { kind: "color" }, Do = { kind: "object" }, pi = { kind: "value" }, Rs = { kind: "collator" }, Jo = { kind: "formatted" }, uo = { kind: "resolvedImage" };
|
|
6505
6505
|
function Ln(t, e) {
|
|
6506
6506
|
return { kind: "array", itemType: t, N: e };
|
|
6507
6507
|
}
|
|
@@ -6512,7 +6512,7 @@ var rv = { exports: {} };
|
|
|
6512
6512
|
}
|
|
6513
6513
|
return t.kind;
|
|
6514
6514
|
}
|
|
6515
|
-
const
|
|
6515
|
+
const Or = [Hn, bt, xi, _i, Ir, Jo, Do, Ln(pi), uo];
|
|
6516
6516
|
function Ds(t, e) {
|
|
6517
6517
|
if (e.kind === "error")
|
|
6518
6518
|
return null;
|
|
@@ -6523,7 +6523,7 @@ var rv = { exports: {} };
|
|
|
6523
6523
|
if (t.kind === e.kind)
|
|
6524
6524
|
return null;
|
|
6525
6525
|
if (t.kind === "value") {
|
|
6526
|
-
for (const i of
|
|
6526
|
+
for (const i of Or)
|
|
6527
6527
|
if (!Ds(i, e))
|
|
6528
6528
|
return null;
|
|
6529
6529
|
}
|
|
@@ -6537,11 +6537,11 @@ var rv = { exports: {} };
|
|
|
6537
6537
|
return e.some((i) => i === "null" ? t === null : i === "array" ? Array.isArray(t) : i === "object" ? t && !Array.isArray(t) && typeof t == "object" : i === typeof t);
|
|
6538
6538
|
}
|
|
6539
6539
|
var Ps, Zl = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255, 1], antiquewhite: [250, 235, 215, 1], aqua: [0, 255, 255, 1], aquamarine: [127, 255, 212, 1], azure: [240, 255, 255, 1], beige: [245, 245, 220, 1], bisque: [255, 228, 196, 1], black: [0, 0, 0, 1], blanchedalmond: [255, 235, 205, 1], blue: [0, 0, 255, 1], blueviolet: [138, 43, 226, 1], brown: [165, 42, 42, 1], burlywood: [222, 184, 135, 1], cadetblue: [95, 158, 160, 1], chartreuse: [127, 255, 0, 1], chocolate: [210, 105, 30, 1], coral: [255, 127, 80, 1], cornflowerblue: [100, 149, 237, 1], cornsilk: [255, 248, 220, 1], crimson: [220, 20, 60, 1], cyan: [0, 255, 255, 1], darkblue: [0, 0, 139, 1], darkcyan: [0, 139, 139, 1], darkgoldenrod: [184, 134, 11, 1], darkgray: [169, 169, 169, 1], darkgreen: [0, 100, 0, 1], darkgrey: [169, 169, 169, 1], darkkhaki: [189, 183, 107, 1], darkmagenta: [139, 0, 139, 1], darkolivegreen: [85, 107, 47, 1], darkorange: [255, 140, 0, 1], darkorchid: [153, 50, 204, 1], darkred: [139, 0, 0, 1], darksalmon: [233, 150, 122, 1], darkseagreen: [143, 188, 143, 1], darkslateblue: [72, 61, 139, 1], darkslategray: [47, 79, 79, 1], darkslategrey: [47, 79, 79, 1], darkturquoise: [0, 206, 209, 1], darkviolet: [148, 0, 211, 1], deeppink: [255, 20, 147, 1], deepskyblue: [0, 191, 255, 1], dimgray: [105, 105, 105, 1], dimgrey: [105, 105, 105, 1], dodgerblue: [30, 144, 255, 1], firebrick: [178, 34, 34, 1], floralwhite: [255, 250, 240, 1], forestgreen: [34, 139, 34, 1], fuchsia: [255, 0, 255, 1], gainsboro: [220, 220, 220, 1], ghostwhite: [248, 248, 255, 1], gold: [255, 215, 0, 1], goldenrod: [218, 165, 32, 1], gray: [128, 128, 128, 1], green: [0, 128, 0, 1], greenyellow: [173, 255, 47, 1], grey: [128, 128, 128, 1], honeydew: [240, 255, 240, 1], hotpink: [255, 105, 180, 1], indianred: [205, 92, 92, 1], indigo: [75, 0, 130, 1], ivory: [255, 255, 240, 1], khaki: [240, 230, 140, 1], lavender: [230, 230, 250, 1], lavenderblush: [255, 240, 245, 1], lawngreen: [124, 252, 0, 1], lemonchiffon: [255, 250, 205, 1], lightblue: [173, 216, 230, 1], lightcoral: [240, 128, 128, 1], lightcyan: [224, 255, 255, 1], lightgoldenrodyellow: [250, 250, 210, 1], lightgray: [211, 211, 211, 1], lightgreen: [144, 238, 144, 1], lightgrey: [211, 211, 211, 1], lightpink: [255, 182, 193, 1], lightsalmon: [255, 160, 122, 1], lightseagreen: [32, 178, 170, 1], lightskyblue: [135, 206, 250, 1], lightslategray: [119, 136, 153, 1], lightslategrey: [119, 136, 153, 1], lightsteelblue: [176, 196, 222, 1], lightyellow: [255, 255, 224, 1], lime: [0, 255, 0, 1], limegreen: [50, 205, 50, 1], linen: [250, 240, 230, 1], magenta: [255, 0, 255, 1], maroon: [128, 0, 0, 1], mediumaquamarine: [102, 205, 170, 1], mediumblue: [0, 0, 205, 1], mediumorchid: [186, 85, 211, 1], mediumpurple: [147, 112, 219, 1], mediumseagreen: [60, 179, 113, 1], mediumslateblue: [123, 104, 238, 1], mediumspringgreen: [0, 250, 154, 1], mediumturquoise: [72, 209, 204, 1], mediumvioletred: [199, 21, 133, 1], midnightblue: [25, 25, 112, 1], mintcream: [245, 255, 250, 1], mistyrose: [255, 228, 225, 1], moccasin: [255, 228, 181, 1], navajowhite: [255, 222, 173, 1], navy: [0, 0, 128, 1], oldlace: [253, 245, 230, 1], olive: [128, 128, 0, 1], olivedrab: [107, 142, 35, 1], orange: [255, 165, 0, 1], orangered: [255, 69, 0, 1], orchid: [218, 112, 214, 1], palegoldenrod: [238, 232, 170, 1], palegreen: [152, 251, 152, 1], paleturquoise: [175, 238, 238, 1], palevioletred: [219, 112, 147, 1], papayawhip: [255, 239, 213, 1], peachpuff: [255, 218, 185, 1], peru: [205, 133, 63, 1], pink: [255, 192, 203, 1], plum: [221, 160, 221, 1], powderblue: [176, 224, 230, 1], purple: [128, 0, 128, 1], rebeccapurple: [102, 51, 153, 1], red: [255, 0, 0, 1], rosybrown: [188, 143, 143, 1], royalblue: [65, 105, 225, 1], saddlebrown: [139, 69, 19, 1], salmon: [250, 128, 114, 1], sandybrown: [244, 164, 96, 1], seagreen: [46, 139, 87, 1], seashell: [255, 245, 238, 1], sienna: [160, 82, 45, 1], silver: [192, 192, 192, 1], skyblue: [135, 206, 235, 1], slateblue: [106, 90, 205, 1], slategray: [112, 128, 144, 1], slategrey: [112, 128, 144, 1], snow: [255, 250, 250, 1], springgreen: [0, 255, 127, 1], steelblue: [70, 130, 180, 1], tan: [210, 180, 140, 1], teal: [0, 128, 128, 1], thistle: [216, 191, 216, 1], tomato: [255, 99, 71, 1], turquoise: [64, 224, 208, 1], violet: [238, 130, 238, 1], wheat: [245, 222, 179, 1], white: [255, 255, 255, 1], whitesmoke: [245, 245, 245, 1], yellow: [255, 255, 0, 1], yellowgreen: [154, 205, 50, 1] };
|
|
6540
|
-
function
|
|
6540
|
+
function ho(t) {
|
|
6541
6541
|
return (t = Math.round(t)) < 0 ? 0 : t > 255 ? 255 : t;
|
|
6542
6542
|
}
|
|
6543
6543
|
function zs(t) {
|
|
6544
|
-
return
|
|
6544
|
+
return ho(t[t.length - 1] === "%" ? parseFloat(t) / 100 * 255 : parseInt(t));
|
|
6545
6545
|
}
|
|
6546
6546
|
function Da(t) {
|
|
6547
6547
|
return (e = t[t.length - 1] === "%" ? parseFloat(t) / 100 : parseFloat(t)) < 0 ? 0 : e > 1 ? 1 : e;
|
|
@@ -6575,7 +6575,7 @@ var rv = { exports: {} };
|
|
|
6575
6575
|
if (h.length !== 3)
|
|
6576
6576
|
return null;
|
|
6577
6577
|
var _ = (parseFloat(h[0]) % 360 + 360) % 360 / 360, y = Da(h[1]), T = Da(h[2]), C = T <= 0.5 ? T * (y + 1) : T + y - T * y, A = 2 * T - C;
|
|
6578
|
-
return [
|
|
6578
|
+
return [ho(255 * ql(A, C, _ + 1 / 3)), ho(255 * ql(A, C, _)), ho(255 * ql(A, C, _ - 1 / 3)), p];
|
|
6579
6579
|
default:
|
|
6580
6580
|
return null;
|
|
6581
6581
|
}
|
|
@@ -6707,13 +6707,13 @@ var rv = { exports: {} };
|
|
|
6707
6707
|
if (typeof t == "number")
|
|
6708
6708
|
return bt;
|
|
6709
6709
|
if (t instanceof dn)
|
|
6710
|
-
return
|
|
6710
|
+
return Ir;
|
|
6711
6711
|
if (t instanceof Os)
|
|
6712
6712
|
return Rs;
|
|
6713
6713
|
if (t instanceof kn)
|
|
6714
6714
|
return Jo;
|
|
6715
6715
|
if (t instanceof mr)
|
|
6716
|
-
return
|
|
6716
|
+
return uo;
|
|
6717
6717
|
if (Array.isArray(t)) {
|
|
6718
6718
|
const e = t.length;
|
|
6719
6719
|
let i;
|
|
@@ -6834,7 +6834,7 @@ var rv = { exports: {} };
|
|
|
6834
6834
|
return i.concat(this.args.map((r) => r.serialize()));
|
|
6835
6835
|
}
|
|
6836
6836
|
}
|
|
6837
|
-
var
|
|
6837
|
+
var eo = Xl;
|
|
6838
6838
|
class Fs {
|
|
6839
6839
|
constructor(e) {
|
|
6840
6840
|
this.type = Jo, this.sections = e;
|
|
@@ -6858,7 +6858,7 @@ var rv = { exports: {} };
|
|
|
6858
6858
|
if (p["text-font"] && (y = i.parse(p["text-font"], 1, Ln(xi)), !y))
|
|
6859
6859
|
return null;
|
|
6860
6860
|
let T = null;
|
|
6861
|
-
if (p["text-color"] && (T = i.parse(p["text-color"], 1,
|
|
6861
|
+
if (p["text-color"] && (T = i.parse(p["text-color"], 1, Ir), !T))
|
|
6862
6862
|
return null;
|
|
6863
6863
|
const C = a[a.length - 1];
|
|
6864
6864
|
C.scale = _, C.font = y, C.textColor = T;
|
|
@@ -6877,7 +6877,7 @@ var rv = { exports: {} };
|
|
|
6877
6877
|
evaluate(e) {
|
|
6878
6878
|
return new kn(this.sections.map((i) => {
|
|
6879
6879
|
const r = i.content.evaluate(e);
|
|
6880
|
-
return En(r) ===
|
|
6880
|
+
return En(r) === uo ? new Wl("", r, null, null, null) : new Wl(Bs(r), null, i.scale ? i.scale.evaluate(e) : null, i.font ? i.font.evaluate(e).join(",") : null, i.textColor ? i.textColor.evaluate(e) : null);
|
|
6881
6881
|
}));
|
|
6882
6882
|
}
|
|
6883
6883
|
eachChild(e) {
|
|
@@ -6899,7 +6899,7 @@ var rv = { exports: {} };
|
|
|
6899
6899
|
}
|
|
6900
6900
|
class ka {
|
|
6901
6901
|
constructor(e) {
|
|
6902
|
-
this.type =
|
|
6902
|
+
this.type = uo, this.input = e;
|
|
6903
6903
|
}
|
|
6904
6904
|
static parse(e, i) {
|
|
6905
6905
|
if (e.length !== 2)
|
|
@@ -6921,7 +6921,7 @@ var rv = { exports: {} };
|
|
|
6921
6921
|
return ["image", this.input.serialize()];
|
|
6922
6922
|
}
|
|
6923
6923
|
}
|
|
6924
|
-
const ap = { "to-boolean": _i, "to-color":
|
|
6924
|
+
const ap = { "to-boolean": _i, "to-color": Ir, "to-number": bt, "to-string": xi };
|
|
6925
6925
|
class Yl {
|
|
6926
6926
|
constructor(e, i) {
|
|
6927
6927
|
this.type = e, this.args = i;
|
|
@@ -7090,7 +7090,7 @@ var rv = { exports: {} };
|
|
|
7090
7090
|
e[r] = es;
|
|
7091
7091
|
}
|
|
7092
7092
|
}
|
|
7093
|
-
var
|
|
7093
|
+
var po = es;
|
|
7094
7094
|
class za {
|
|
7095
7095
|
constructor(e, i, r) {
|
|
7096
7096
|
this.type = Rs, this.locale = r, this.caseSensitive = e, this.diacriticSensitive = i;
|
|
@@ -7331,7 +7331,7 @@ var rv = { exports: {} };
|
|
|
7331
7331
|
}
|
|
7332
7332
|
var Ql = Vs;
|
|
7333
7333
|
function ts(t) {
|
|
7334
|
-
if (t instanceof
|
|
7334
|
+
if (t instanceof po && (t.name === "get" && t.args.length === 1 || t.name === "feature-state" || t.name === "has" && t.args.length === 1 || t.name === "properties" || t.name === "geometry-type" || t.name === "id" || /^filter-/.test(t.name)) || t instanceof Ql)
|
|
7335
7335
|
return !1;
|
|
7336
7336
|
let e = !0;
|
|
7337
7337
|
return t.eachChild((i) => {
|
|
@@ -7339,7 +7339,7 @@ var rv = { exports: {} };
|
|
|
7339
7339
|
}), e;
|
|
7340
7340
|
}
|
|
7341
7341
|
function Fa(t) {
|
|
7342
|
-
if (t instanceof
|
|
7342
|
+
if (t instanceof po && t.name === "feature-state")
|
|
7343
7343
|
return !1;
|
|
7344
7344
|
let e = !0;
|
|
7345
7345
|
return t.eachChild((i) => {
|
|
@@ -7347,7 +7347,7 @@ var rv = { exports: {} };
|
|
|
7347
7347
|
}), e;
|
|
7348
7348
|
}
|
|
7349
7349
|
function Gs(t, e) {
|
|
7350
|
-
if (t instanceof
|
|
7350
|
+
if (t instanceof po && e.indexOf(t.name) >= 0)
|
|
7351
7351
|
return !1;
|
|
7352
7352
|
let i = !0;
|
|
7353
7353
|
return t.eachChild((r) => {
|
|
@@ -7386,7 +7386,7 @@ var rv = { exports: {} };
|
|
|
7386
7386
|
}
|
|
7387
7387
|
_parse(e, i) {
|
|
7388
7388
|
function r(a, c, h) {
|
|
7389
|
-
return h === "assert" ? new
|
|
7389
|
+
return h === "assert" ? new eo(c, [a]) : h === "coerce" ? new Lo(c, [a]) : a;
|
|
7390
7390
|
}
|
|
7391
7391
|
if (e !== null && typeof e != "string" && typeof e != "boolean" && typeof e != "number" || (e = ["literal", e]), Array.isArray(e)) {
|
|
7392
7392
|
if (e.length === 0)
|
|
@@ -7441,9 +7441,9 @@ var rv = { exports: {} };
|
|
|
7441
7441
|
function is(t) {
|
|
7442
7442
|
if (t instanceof ec)
|
|
7443
7443
|
return is(t.boundExpression);
|
|
7444
|
-
if (t instanceof
|
|
7444
|
+
if (t instanceof po && t.name === "error" || t instanceof za || t instanceof Ql)
|
|
7445
7445
|
return !1;
|
|
7446
|
-
const e = t instanceof Lo || t instanceof
|
|
7446
|
+
const e = t instanceof Lo || t instanceof eo;
|
|
7447
7447
|
let i = !0;
|
|
7448
7448
|
return t.eachChild((r) => {
|
|
7449
7449
|
i = e ? i && is(r) : i && r instanceof Ns;
|
|
@@ -7612,7 +7612,7 @@ var rv = { exports: {} };
|
|
|
7612
7612
|
return null;
|
|
7613
7613
|
const p = [];
|
|
7614
7614
|
let _ = null;
|
|
7615
|
-
r === "interpolate-hcl" || r === "interpolate-lab" ? _ =
|
|
7615
|
+
r === "interpolate-hcl" || r === "interpolate-lab" ? _ = Ir : i.expectedType && i.expectedType.kind !== "value" && (_ = i.expectedType);
|
|
7616
7616
|
for (let y = 0; y < h.length; y += 2) {
|
|
7617
7617
|
const T = h[y], C = h[y + 1], A = y + 3, R = y + 4;
|
|
7618
7618
|
if (typeof T != "number")
|
|
@@ -7660,7 +7660,7 @@ var rv = { exports: {} };
|
|
|
7660
7660
|
const a = r - i, c = t - i;
|
|
7661
7661
|
return a === 0 ? 0 : e === 1 ? c / a : (Math.pow(e, c) - 1) / (Math.pow(e, a) - 1);
|
|
7662
7662
|
}
|
|
7663
|
-
var
|
|
7663
|
+
var Br = Ha;
|
|
7664
7664
|
class Xa {
|
|
7665
7665
|
constructor(e, i) {
|
|
7666
7666
|
this.type = e, this.args = i;
|
|
@@ -8039,7 +8039,7 @@ var rv = { exports: {} };
|
|
|
8039
8039
|
return h.concat(2).error(`"${p}" comparisons are not supported for type '${sn(y.type)}'.`);
|
|
8040
8040
|
if (_.type.kind !== y.type.kind && _.type.kind !== "value" && y.type.kind !== "value")
|
|
8041
8041
|
return h.error(`Cannot compare types '${sn(_.type)}' and '${sn(y.type)}'.`);
|
|
8042
|
-
r && (_.type.kind === "value" && y.type.kind !== "value" ? _ = new
|
|
8042
|
+
r && (_.type.kind === "value" && y.type.kind !== "value" ? _ = new eo(y.type, [_]) : _.type.kind !== "value" && y.type.kind === "value" && (y = new eo(_.type, [y])));
|
|
8043
8043
|
let T = null;
|
|
8044
8044
|
if (c.length === 4) {
|
|
8045
8045
|
if (_.type.kind !== "string" && y.type.kind !== "string" && _.type.kind !== "value" && y.type.kind !== "value")
|
|
@@ -8171,7 +8171,7 @@ var rv = { exports: {} };
|
|
|
8171
8171
|
}), e;
|
|
8172
8172
|
}
|
|
8173
8173
|
}
|
|
8174
|
-
const oh = { "==": nh, "!=": rh, ">": pp, "<": cc, ">=": mp, "<=": fp, array:
|
|
8174
|
+
const oh = { "==": nh, "!=": rh, ">": pp, "<": cc, ">=": mp, "<=": fp, array: eo, at: Ju, boolean: eo, case: eh, coalesce: sc, collator: za, format: Fs, image: ka, in: Qu, "index-of": up, interpolate: Br, "interpolate-hcl": Br, "interpolate-lab": Br, length: hc, let: Ku, literal: Ns, match: hp, number: eo, "number-format": uc, object: eo, slice: dp, step: Va, string: eo, "to-boolean": Lo, "to-color": Lo, "to-number": Lo, "to-string": Lo, var: ec, within: Ql };
|
|
8175
8175
|
function sh(t, [e, i, r, a]) {
|
|
8176
8176
|
e = e.evaluate(t), i = i.evaluate(t), r = r.evaluate(t);
|
|
8177
8177
|
const c = a ? a.evaluate(t) : 1, h = Nu(e, i, r, c);
|
|
@@ -8186,22 +8186,22 @@ var rv = { exports: {} };
|
|
|
8186
8186
|
const i = e[t];
|
|
8187
8187
|
return i === void 0 ? null : i;
|
|
8188
8188
|
}
|
|
8189
|
-
function
|
|
8189
|
+
function Nr(t) {
|
|
8190
8190
|
return { type: t };
|
|
8191
8191
|
}
|
|
8192
|
-
|
|
8192
|
+
po.register(oh, { error: [{ kind: "error" }, [xi], (t, [e]) => {
|
|
8193
8193
|
throw new Dn(e.evaluate(t));
|
|
8194
|
-
}], typeof: [xi, [pi], (t, [e]) => sn(En(e.evaluate(t)))], "to-rgba": [Ln(bt, 4), [
|
|
8194
|
+
}], typeof: [xi, [pi], (t, [e]) => sn(En(e.evaluate(t)))], "to-rgba": [Ln(bt, 4), [Ir], (t, [e]) => e.evaluate(t).toArray()], rgb: [Ir, [bt, bt, bt], sh], rgba: [Ir, [bt, bt, bt, bt], sh], has: { type: _i, overloads: [[[xi], (t, [e]) => dc(e.evaluate(t), t.properties())], [[xi, Do], (t, [e, i]) => dc(e.evaluate(t), i.evaluate(t))]] }, get: { type: pi, overloads: [[[xi], (t, [e]) => Qa(e.evaluate(t), t.properties())], [[xi, Do], (t, [e, i]) => Qa(e.evaluate(t), i.evaluate(t))]] }, "feature-state": [pi, [xi], (t, [e]) => Qa(e.evaluate(t), t.featureState || {})], properties: [Do, [], (t) => t.properties()], "geometry-type": [xi, [], (t) => t.geometryType()], id: [pi, [], (t) => t.id()], zoom: [bt, [], (t) => t.globals.zoom], pitch: [bt, [], (t) => t.globals.pitch || 0], "distance-from-center": [bt, [], (t) => t.distanceFromCenter()], "heatmap-density": [bt, [], (t) => t.globals.heatmapDensity || 0], "line-progress": [bt, [], (t) => t.globals.lineProgress || 0], "sky-radial-progress": [bt, [], (t) => t.globals.skyRadialProgress || 0], accumulated: [pi, [], (t) => t.globals.accumulated === void 0 ? null : t.globals.accumulated], "+": [bt, Nr(bt), (t, e) => {
|
|
8195
8195
|
let i = 0;
|
|
8196
8196
|
for (const r of e)
|
|
8197
8197
|
i += r.evaluate(t);
|
|
8198
8198
|
return i;
|
|
8199
|
-
}], "*": [bt,
|
|
8199
|
+
}], "*": [bt, Nr(bt), (t, e) => {
|
|
8200
8200
|
let i = 1;
|
|
8201
8201
|
for (const r of e)
|
|
8202
8202
|
i *= r.evaluate(t);
|
|
8203
8203
|
return i;
|
|
8204
|
-
}], "-": { type: bt, overloads: [[[bt, bt], (t, [e, i]) => e.evaluate(t) - i.evaluate(t)], [[bt], (t, [e]) => -e.evaluate(t)]] }, "/": [bt, [bt, bt], (t, [e, i]) => e.evaluate(t) / i.evaluate(t)], "%": [bt, [bt, bt], (t, [e, i]) => e.evaluate(t) % i.evaluate(t)], ln2: [bt, [], () => Math.LN2], pi: [bt, [], () => Math.PI], e: [bt, [], () => Math.E], "^": [bt, [bt, bt], (t, [e, i]) => Math.pow(e.evaluate(t), i.evaluate(t))], sqrt: [bt, [bt], (t, [e]) => Math.sqrt(e.evaluate(t))], log10: [bt, [bt], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN10], ln: [bt, [bt], (t, [e]) => Math.log(e.evaluate(t))], log2: [bt, [bt], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN2], sin: [bt, [bt], (t, [e]) => Math.sin(e.evaluate(t))], cos: [bt, [bt], (t, [e]) => Math.cos(e.evaluate(t))], tan: [bt, [bt], (t, [e]) => Math.tan(e.evaluate(t))], asin: [bt, [bt], (t, [e]) => Math.asin(e.evaluate(t))], acos: [bt, [bt], (t, [e]) => Math.acos(e.evaluate(t))], atan: [bt, [bt], (t, [e]) => Math.atan(e.evaluate(t))], min: [bt,
|
|
8204
|
+
}], "-": { type: bt, overloads: [[[bt, bt], (t, [e, i]) => e.evaluate(t) - i.evaluate(t)], [[bt], (t, [e]) => -e.evaluate(t)]] }, "/": [bt, [bt, bt], (t, [e, i]) => e.evaluate(t) / i.evaluate(t)], "%": [bt, [bt, bt], (t, [e, i]) => e.evaluate(t) % i.evaluate(t)], ln2: [bt, [], () => Math.LN2], pi: [bt, [], () => Math.PI], e: [bt, [], () => Math.E], "^": [bt, [bt, bt], (t, [e, i]) => Math.pow(e.evaluate(t), i.evaluate(t))], sqrt: [bt, [bt], (t, [e]) => Math.sqrt(e.evaluate(t))], log10: [bt, [bt], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN10], ln: [bt, [bt], (t, [e]) => Math.log(e.evaluate(t))], log2: [bt, [bt], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN2], sin: [bt, [bt], (t, [e]) => Math.sin(e.evaluate(t))], cos: [bt, [bt], (t, [e]) => Math.cos(e.evaluate(t))], tan: [bt, [bt], (t, [e]) => Math.tan(e.evaluate(t))], asin: [bt, [bt], (t, [e]) => Math.asin(e.evaluate(t))], acos: [bt, [bt], (t, [e]) => Math.acos(e.evaluate(t))], atan: [bt, [bt], (t, [e]) => Math.atan(e.evaluate(t))], min: [bt, Nr(bt), (t, e) => Math.min(...e.map((i) => i.evaluate(t)))], max: [bt, Nr(bt), (t, e) => Math.max(...e.map((i) => i.evaluate(t)))], abs: [bt, [bt], (t, [e]) => Math.abs(e.evaluate(t))], round: [bt, [bt], (t, [e]) => {
|
|
8205
8205
|
const i = e.evaluate(t);
|
|
8206
8206
|
return i < 0 ? -Math.round(-i) : Math.round(i);
|
|
8207
8207
|
}], floor: [bt, [bt], (t, [e]) => Math.floor(e.evaluate(t))], ceil: [bt, [bt], (t, [e]) => Math.ceil(e.evaluate(t))], "filter-==": [_i, [xi, pi], (t, [e, i]) => t.properties()[e.value] === i.value], "filter-id-==": [_i, [pi], (t, [e]) => t.id() === e.value], "filter-type-==": [_i, [xi], (t, [e]) => t.geometryType() === e.value], "filter-<": [_i, [xi, pi], (t, [e, i]) => {
|
|
@@ -8236,12 +8236,12 @@ var rv = { exports: {} };
|
|
|
8236
8236
|
a[p] > r ? h = p - 1 : c = p + 1;
|
|
8237
8237
|
}
|
|
8238
8238
|
return !1;
|
|
8239
|
-
}(t.properties()[e.value], i.value, 0, i.value.length - 1)], all: { type: _i, overloads: [[[_i, _i], (t, [e, i]) => e.evaluate(t) && i.evaluate(t)], [
|
|
8239
|
+
}(t.properties()[e.value], i.value, 0, i.value.length - 1)], all: { type: _i, overloads: [[[_i, _i], (t, [e, i]) => e.evaluate(t) && i.evaluate(t)], [Nr(_i), (t, e) => {
|
|
8240
8240
|
for (const i of e)
|
|
8241
8241
|
if (!i.evaluate(t))
|
|
8242
8242
|
return !1;
|
|
8243
8243
|
return !0;
|
|
8244
|
-
}]] }, any: { type: _i, overloads: [[[_i, _i], (t, [e, i]) => e.evaluate(t) || i.evaluate(t)], [
|
|
8244
|
+
}]] }, any: { type: _i, overloads: [[[_i, _i], (t, [e, i]) => e.evaluate(t) || i.evaluate(t)], [Nr(_i), (t, e) => {
|
|
8245
8245
|
for (const i of e)
|
|
8246
8246
|
if (i.evaluate(t))
|
|
8247
8247
|
return !0;
|
|
@@ -8249,7 +8249,7 @@ var rv = { exports: {} };
|
|
|
8249
8249
|
}]] }, "!": [_i, [_i], (t, [e]) => !e.evaluate(t)], "is-supported-script": [_i, [xi], (t, [e]) => {
|
|
8250
8250
|
const i = t.globals && t.globals.isSupportedScript;
|
|
8251
8251
|
return !i || i(e.evaluate(t));
|
|
8252
|
-
}], upcase: [xi, [xi], (t, [e]) => e.evaluate(t).toUpperCase()], downcase: [xi, [xi], (t, [e]) => e.evaluate(t).toLowerCase()], concat: [xi,
|
|
8252
|
+
}], upcase: [xi, [xi], (t, [e]) => e.evaluate(t).toUpperCase()], downcase: [xi, [xi], (t, [e]) => e.evaluate(t).toLowerCase()], concat: [xi, Nr(pi), (t, e) => e.map((i) => Bs(i.evaluate(t))).join("")], "resolved-locale": [xi, [Rs], (t, [e]) => e.evaluate(t).resolvedLocale()] });
|
|
8253
8253
|
var Hs = oh;
|
|
8254
8254
|
function ah(t) {
|
|
8255
8255
|
return { result: "success", value: t };
|
|
@@ -8277,7 +8277,7 @@ var rv = { exports: {} };
|
|
|
8277
8277
|
}
|
|
8278
8278
|
function el(t, e) {
|
|
8279
8279
|
const i = e.type === "color", r = t.stops && typeof t.stops[0][0] == "object", a = r || !(r || t.property !== void 0), c = t.type || (pc(e) ? "exponential" : "interval");
|
|
8280
|
-
if (i && ((t =
|
|
8280
|
+
if (i && ((t = Jr({}, t)).stops && (t.stops = t.stops.map((y) => [y[0], dn.parse(y[1])])), t.default = dn.parse(t.default ? t.default : e.default)), t.colorSpace && t.colorSpace !== "rgb" && !Yu[t.colorSpace])
|
|
8281
8281
|
throw new Error(`Unknown color space: ${t.colorSpace}`);
|
|
8282
8282
|
let h, p, _;
|
|
8283
8283
|
if (c === "exponential")
|
|
@@ -8304,11 +8304,11 @@ var rv = { exports: {} };
|
|
|
8304
8304
|
for (const R of T)
|
|
8305
8305
|
C.push([y[R].zoom, el(y[R], e)]);
|
|
8306
8306
|
const A = { name: "linear" };
|
|
8307
|
-
return { kind: "composite", interpolationType: A, interpolationFactor:
|
|
8307
|
+
return { kind: "composite", interpolationType: A, interpolationFactor: Br.interpolationFactor.bind(void 0, A), zoomStops: C.map((R) => R[0]), evaluate: ({ zoom: R }, L) => mc({ stops: C, base: t.base }, e, R).evaluate(R, L) };
|
|
8308
8308
|
}
|
|
8309
8309
|
if (a) {
|
|
8310
8310
|
const y = c === "exponential" ? { name: "exponential", base: t.base !== void 0 ? t.base : 1 } : null;
|
|
8311
|
-
return { kind: "camera", interpolationType: y, interpolationFactor:
|
|
8311
|
+
return { kind: "camera", interpolationType: y, interpolationFactor: Br.interpolationFactor.bind(void 0, y), zoomStops: t.stops.map((T) => T[0]), evaluate: ({ zoom: T }) => h(t, e, T, p, _) };
|
|
8312
8312
|
}
|
|
8313
8313
|
return { kind: "source", evaluate(y, T) {
|
|
8314
8314
|
const C = T && T.properties ? T.properties[t.property] : void 0;
|
|
@@ -8385,14 +8385,14 @@ var rv = { exports: {} };
|
|
|
8385
8385
|
function Ys(t) {
|
|
8386
8386
|
return Array.isArray(t) && t.length > 0 && typeof t[0] == "string" && t[0] in Hs;
|
|
8387
8387
|
}
|
|
8388
|
-
function
|
|
8388
|
+
function fo(t, e) {
|
|
8389
8389
|
const i = new Po(Hs, [], e ? function(a) {
|
|
8390
|
-
const c = { color:
|
|
8390
|
+
const c = { color: Ir, string: xi, number: bt, enum: xi, boolean: _i, formatted: Jo, resolvedImage: uo };
|
|
8391
8391
|
return a.type === "array" ? Ln(c[a.value] || pi, a.length) : c[a.type];
|
|
8392
8392
|
}(e) : void 0), r = i.parse(t, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
8393
8393
|
return r ? ah(new tl(r, e)) : sr(i.errors);
|
|
8394
8394
|
}
|
|
8395
|
-
class
|
|
8395
|
+
class mo {
|
|
8396
8396
|
constructor(e, i) {
|
|
8397
8397
|
this.kind = e, this._styleExpression = i, this.isStateDependent = e !== "constant" && !Fa(i.expression);
|
|
8398
8398
|
}
|
|
@@ -8414,11 +8414,11 @@ var rv = { exports: {} };
|
|
|
8414
8414
|
return this._styleExpression.evaluate(e, i, r, a, c, h);
|
|
8415
8415
|
}
|
|
8416
8416
|
interpolationFactor(e, i, r) {
|
|
8417
|
-
return this.interpolationType ?
|
|
8417
|
+
return this.interpolationType ? Br.interpolationFactor(this.interpolationType, e, i, r) : 0;
|
|
8418
8418
|
}
|
|
8419
8419
|
}
|
|
8420
8420
|
function gc(t, e) {
|
|
8421
|
-
if ((t =
|
|
8421
|
+
if ((t = fo(t, e)).result === "error")
|
|
8422
8422
|
return t;
|
|
8423
8423
|
const i = t.value.expression, r = ts(i);
|
|
8424
8424
|
if (!r && !Oo(e))
|
|
@@ -8427,11 +8427,11 @@ var rv = { exports: {} };
|
|
|
8427
8427
|
if (!a && !Bo(e))
|
|
8428
8428
|
return sr([new or("", "zoom expressions not supported")]);
|
|
8429
8429
|
const c = Ks(i);
|
|
8430
|
-
return c || a ? c instanceof or ? sr([c]) : c instanceof
|
|
8430
|
+
return c || a ? c instanceof or ? sr([c]) : c instanceof Br && !pc(e) ? sr([new or("", '"interpolate" expressions cannot be used with this property')]) : ah(c ? new il(r ? "camera" : "composite", t.value, c.labels, c instanceof Br ? c.interpolation : void 0) : new mo(r ? "constant" : "source", t.value)) : sr([new or("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
|
8431
8431
|
}
|
|
8432
8432
|
class ss {
|
|
8433
8433
|
constructor(e, i) {
|
|
8434
|
-
this._parameters = e, this._specification = i,
|
|
8434
|
+
this._parameters = e, this._specification = i, Jr(this, el(this._parameters, this._specification));
|
|
8435
8435
|
}
|
|
8436
8436
|
static deserialize(e) {
|
|
8437
8437
|
return new ss(e._parameters, e._specification);
|
|
@@ -8449,7 +8449,7 @@ var rv = { exports: {} };
|
|
|
8449
8449
|
if (e = Ks(i), e)
|
|
8450
8450
|
break;
|
|
8451
8451
|
} else
|
|
8452
|
-
(t instanceof Va || t instanceof
|
|
8452
|
+
(t instanceof Va || t instanceof Br) && t.input instanceof po && t.input.name === "zoom" && (e = t);
|
|
8453
8453
|
return e instanceof or || t.eachChild((i) => {
|
|
8454
8454
|
const r = Ks(i);
|
|
8455
8455
|
r instanceof or ? e = r : !e && r ? e = new or("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : e && r && e !== r && (e = new or("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
|
|
@@ -8542,7 +8542,7 @@ var rv = { exports: {} };
|
|
|
8542
8542
|
te !== c && (c = te, a = void 0, h = {}), L = L.concat(_r({ key: `${j}[0]`, value: O[0], valueSpec: { zoom: {} }, style: R.style, styleSpec: R.styleSpec, objectElementValidators: { zoom: ch, value: A } }));
|
|
8543
8543
|
} else
|
|
8544
8544
|
L = L.concat(A({ key: `${j}[0]`, value: O[0], valueSpec: {}, style: R.style, styleSpec: R.styleSpec }, O));
|
|
8545
|
-
return Ys(
|
|
8545
|
+
return Ys(Qr(O[1])) ? L.concat([new St(`${j}[1]`, O[1], "expressions are not allowed in function stops.")]) : L.concat(jn({ key: `${j}[1]`, value: O[1], valueSpec: e, style: R.style, styleSpec: R.styleSpec }));
|
|
8546
8546
|
}
|
|
8547
8547
|
function A(R, L) {
|
|
8548
8548
|
const O = Di(R.value), j = Tn(R.value), te = R.value !== null ? R.value : L;
|
|
@@ -8561,7 +8561,7 @@ var rv = { exports: {} };
|
|
|
8561
8561
|
}
|
|
8562
8562
|
}
|
|
8563
8563
|
function as(t) {
|
|
8564
|
-
const e = (t.expressionContext === "property" ? gc :
|
|
8564
|
+
const e = (t.expressionContext === "property" ? gc : fo)(Qr(t.value), t.valueSpec);
|
|
8565
8565
|
if (e.result === "error")
|
|
8566
8566
|
return e.value.map((r) => new St(`${t.key}${r.key}`, t.value, r.message));
|
|
8567
8567
|
const i = e.value.expression || e.value._styleExpression.expression;
|
|
@@ -8587,7 +8587,7 @@ var rv = { exports: {} };
|
|
|
8587
8587
|
if (i.size === 0)
|
|
8588
8588
|
return [];
|
|
8589
8589
|
const r = [];
|
|
8590
|
-
return t instanceof
|
|
8590
|
+
return t instanceof po && i.has(t.name) ? [new St(e.key, e.value, `["${t.name}"] expression is not supported in a filter for a ${e.object.type} layer with id: ${e.object.id}`)] : (t.eachChild((a) => {
|
|
8591
8591
|
r.push(...hh(a, e));
|
|
8592
8592
|
}), r);
|
|
8593
8593
|
}
|
|
@@ -8636,7 +8636,7 @@ var rv = { exports: {} };
|
|
|
8636
8636
|
r = function(y) {
|
|
8637
8637
|
if (!cs(y))
|
|
8638
8638
|
return y;
|
|
8639
|
-
let T =
|
|
8639
|
+
let T = Qr(y);
|
|
8640
8640
|
return Qs(T), T = Qn(T), T;
|
|
8641
8641
|
}(i);
|
|
8642
8642
|
} catch {
|
|
@@ -8648,14 +8648,14 @@ Filter Expression:
|
|
|
8648
8648
|
${JSON.stringify(i, null, 2)}
|
|
8649
8649
|
`);
|
|
8650
8650
|
}
|
|
8651
|
-
const a = je[`filter_${e}`], c =
|
|
8651
|
+
const a = je[`filter_${e}`], c = fo(r, a);
|
|
8652
8652
|
let h = null;
|
|
8653
8653
|
if (c.result === "error")
|
|
8654
8654
|
throw new Error(c.value.map((y) => `${y.key}: ${y.message}`).join(", "));
|
|
8655
8655
|
h = (y, T, C) => c.value.evaluate(y, T, {}, C);
|
|
8656
8656
|
let p = null, _ = null;
|
|
8657
8657
|
if (r !== i) {
|
|
8658
|
-
const y =
|
|
8658
|
+
const y = fo(i, a);
|
|
8659
8659
|
if (y.result === "error")
|
|
8660
8660
|
throw new Error(y.value.map((T) => `${T.key}: ${T.message}`).join(", "));
|
|
8661
8661
|
p = (T, C, A, R, L) => y.value.evaluate(T, C, {}, A, void 0, void 0, R, L), _ = !ts(y.value.expression);
|
|
@@ -8764,7 +8764,7 @@ ${JSON.stringify(i, null, 2)}
|
|
|
8764
8764
|
return ["!", t];
|
|
8765
8765
|
}
|
|
8766
8766
|
function ea(t) {
|
|
8767
|
-
return ls(
|
|
8767
|
+
return ls(Qr(t.value)) ? as(Jr({}, t, { expressionContext: "filter", valueSpec: t.styleSpec[`filter_${t.layerType || "fill"}`] })) : fh(t);
|
|
8768
8768
|
}
|
|
8769
8769
|
function fh(t) {
|
|
8770
8770
|
const e = t.value, i = t.key;
|
|
@@ -8819,7 +8819,7 @@ ${JSON.stringify(i, null, 2)}
|
|
|
8819
8819
|
return [new St(i, c, `"${h}" does not support interpolation syntax
|
|
8820
8820
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(T[1])} }\`.`)];
|
|
8821
8821
|
const C = [];
|
|
8822
|
-
return t.layerType === "symbol" && (h === "text-field" && r && !r.glyphs && C.push(new St(i, c, 'use of "text-field" requires a style "glyphs" property')), h === "text-font" && Xs(
|
|
8822
|
+
return t.layerType === "symbol" && (h === "text-field" && r && !r.glyphs && C.push(new St(i, c, 'use of "text-field" requires a style "glyphs" property')), h === "text-font" && Xs(Qr(c)) && Tn(c.type) === "identity" && C.push(new St(i, c, '"text-font" does not support identity functions'))), C.concat(jn({ key: t.key, value: c, valueSpec: y, style: r, styleSpec: a, expressionContext: "property", propertyType: e, propertyKey: h }));
|
|
8823
8823
|
}
|
|
8824
8824
|
function xc(t) {
|
|
8825
8825
|
return vc(t, "paint");
|
|
@@ -8853,19 +8853,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8853
8853
|
_ ? y === "vector" && h === "raster" ? e.push(new St(r, i.source, `layer "${i.id}" requires a raster source`)) : y === "raster" && h !== "raster" ? e.push(new St(r, i.source, `layer "${i.id}" requires a vector source`)) : y !== "vector" || i["source-layer"] ? y === "raster-dem" && h !== "hillshade" ? e.push(new St(r, i.source, "raster-dem source can only be used with layer type 'hillshade'.")) : h !== "line" || !i.paint || !i.paint["line-gradient"] && !i.paint["line-trim-offset"] || y === "geojson" && _.lineMetrics || e.push(new St(r, i, `layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new St(r, i, `layer "${i.id}" must specify a "source-layer"`)) : e.push(new St(r, i.source, `source "${i.source}" not found`));
|
|
8854
8854
|
} else
|
|
8855
8855
|
e.push(new St(r, i, 'missing required property "source"'));
|
|
8856
|
-
return e = e.concat(_r({ key: r, value: i, valueSpec: c.layer, style: t.style, styleSpec: t.styleSpec, objectElementValidators: { "*": () => [], type: () => jn({ key: `${r}.type`, value: i.type, valueSpec: c.layer.type, style: t.style, styleSpec: t.styleSpec, object: i, objectKey: "type" }), filter: (_) => ea(
|
|
8856
|
+
return e = e.concat(_r({ key: r, value: i, valueSpec: c.layer, style: t.style, styleSpec: t.styleSpec, objectElementValidators: { "*": () => [], type: () => jn({ key: `${r}.type`, value: i.type, valueSpec: c.layer.type, style: t.style, styleSpec: t.styleSpec, object: i, objectKey: "type" }), filter: (_) => ea(Jr({ layerType: h }, _)), layout: (_) => _r({ layer: i, key: _.key, value: _.value, valueSpec: {}, style: _.style, styleSpec: _.styleSpec, objectElementValidators: { "*": (y) => mh(Jr({ layerType: h }, y)) } }), paint: (_) => _r({ layer: i, key: _.key, value: _.value, valueSpec: {}, style: _.style, styleSpec: _.styleSpec, objectElementValidators: { "*": (y) => xc(Jr({ layerType: h }, y)) } }) } })), e;
|
|
8857
8857
|
}
|
|
8858
|
-
function
|
|
8858
|
+
function to(t) {
|
|
8859
8859
|
const e = t.value, i = t.key, r = Di(e);
|
|
8860
8860
|
return r !== "string" ? [new St(i, e, `string expected, ${r} found`)] : [];
|
|
8861
8861
|
}
|
|
8862
8862
|
const bc = { promoteId: function({ key: t, value: e }) {
|
|
8863
8863
|
if (Di(e) === "string")
|
|
8864
|
-
return
|
|
8864
|
+
return to({ key: t, value: e });
|
|
8865
8865
|
{
|
|
8866
8866
|
const i = [];
|
|
8867
8867
|
for (const r in e)
|
|
8868
|
-
i.push(...
|
|
8868
|
+
i.push(...to({ key: `${t}.${r}`, value: e[r] }));
|
|
8869
8869
|
return i;
|
|
8870
8870
|
}
|
|
8871
8871
|
} };
|
|
@@ -8956,10 +8956,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8956
8956
|
}, number: ch, color: function(t) {
|
|
8957
8957
|
const e = t.key, i = t.value, r = Di(i);
|
|
8958
8958
|
return r !== "string" ? [new St(e, i, `color expected, ${r} found`)] : Ps(i) === null ? [new St(e, i, `color expected, "${i}" found`)] : [];
|
|
8959
|
-
}, enum: nl, filter: ea, function: uh, layer: sl, object: _r, source: _h, light: yh, terrain: al, fog: vh, string:
|
|
8960
|
-
return
|
|
8959
|
+
}, enum: nl, filter: ea, function: uh, layer: sl, object: _r, source: _h, light: yh, terrain: al, fog: vh, string: to, formatted: function(t) {
|
|
8960
|
+
return to(t).length === 0 ? [] : as(t);
|
|
8961
8961
|
}, resolvedImage: function(t) {
|
|
8962
|
-
return
|
|
8962
|
+
return to(t).length === 0 ? [] : as(t);
|
|
8963
8963
|
}, projection: function(t) {
|
|
8964
8964
|
const e = t.value, i = t.styleSpec, r = i.projection, a = t.style;
|
|
8965
8965
|
let c = [];
|
|
@@ -8973,28 +8973,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8973
8973
|
} };
|
|
8974
8974
|
function jn(t) {
|
|
8975
8975
|
const e = t.value, i = t.valueSpec, r = t.styleSpec;
|
|
8976
|
-
return i.expression && Xs(Tn(e)) ? uh(t) : i.expression && Ys(
|
|
8976
|
+
return i.expression && Xs(Tn(e)) ? uh(t) : i.expression && Ys(Qr(e)) ? as(t) : i.type && xh[i.type] ? xh[i.type](t) : _r(Jr({}, t, { valueSpec: i.type ? r[i.type] : i }));
|
|
8977
8977
|
}
|
|
8978
8978
|
function vp(t) {
|
|
8979
|
-
const e = t.value, i = t.key, r =
|
|
8979
|
+
const e = t.value, i = t.key, r = to(t);
|
|
8980
8980
|
return r.length || (e.indexOf("{fontstack}") === -1 && r.push(new St(i, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && r.push(new St(i, e, '"glyphs" url must include a "{range}" token'))), r;
|
|
8981
8981
|
}
|
|
8982
8982
|
function wc(t, e = je) {
|
|
8983
|
-
return
|
|
8983
|
+
return io(jn({ key: "", value: t, valueSpec: e.$root, styleSpec: e, style: t, objectElementValidators: { glyphs: vp, "*": () => [] } }));
|
|
8984
8984
|
}
|
|
8985
|
-
const xp = (t) =>
|
|
8986
|
-
function
|
|
8985
|
+
const xp = (t) => io(xc(t)), bp = (t) => io(mh(t));
|
|
8986
|
+
function io(t) {
|
|
8987
8987
|
return t.slice().sort((e, i) => e.line && i.line ? e.line - i.line : 0);
|
|
8988
8988
|
}
|
|
8989
8989
|
function bh(t, e) {
|
|
8990
8990
|
let i = !1;
|
|
8991
8991
|
if (e && e.length)
|
|
8992
8992
|
for (const r of e)
|
|
8993
|
-
t.fire(new
|
|
8993
|
+
t.fire(new co(new Error(r.message))), i = !0;
|
|
8994
8994
|
return i;
|
|
8995
8995
|
}
|
|
8996
|
-
var hs =
|
|
8997
|
-
function
|
|
8996
|
+
var hs = Fr;
|
|
8997
|
+
function Fr(t, e, i) {
|
|
8998
8998
|
var r = this.cells = [];
|
|
8999
8999
|
if (t instanceof ArrayBuffer) {
|
|
9000
9000
|
this.arrayBuffer = t;
|
|
@@ -9016,19 +9016,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9016
9016
|
var T = i / e * t;
|
|
9017
9017
|
this.min = -T, this.max = t + T;
|
|
9018
9018
|
}
|
|
9019
|
-
|
|
9019
|
+
Fr.prototype.insert = function(t, e, i, r, a) {
|
|
9020
9020
|
this._forEachCell(e, i, r, a, this._insertCell, this.uid++), this.keys.push(t), this.bboxes.push(e), this.bboxes.push(i), this.bboxes.push(r), this.bboxes.push(a);
|
|
9021
|
-
},
|
|
9021
|
+
}, Fr.prototype._insertReadonly = function() {
|
|
9022
9022
|
throw "Cannot insert into a GridIndex created from an ArrayBuffer.";
|
|
9023
|
-
},
|
|
9023
|
+
}, Fr.prototype._insertCell = function(t, e, i, r, a, c) {
|
|
9024
9024
|
this.cells[a].push(c);
|
|
9025
|
-
},
|
|
9025
|
+
}, Fr.prototype.query = function(t, e, i, r, a) {
|
|
9026
9026
|
var c = this.min, h = this.max;
|
|
9027
9027
|
if (t <= c && e <= c && h <= i && h <= r && !a)
|
|
9028
9028
|
return Array.prototype.slice.call(this.keys);
|
|
9029
9029
|
var p = [];
|
|
9030
9030
|
return this._forEachCell(t, e, i, r, this._queryCell, p, {}, a), p;
|
|
9031
|
-
},
|
|
9031
|
+
}, Fr.prototype._queryCell = function(t, e, i, r, a, c, h, p) {
|
|
9032
9032
|
var _ = this.cells[a];
|
|
9033
9033
|
if (_ !== null)
|
|
9034
9034
|
for (var y = this.keys, T = this.bboxes, C = 0; C < _.length; C++) {
|
|
@@ -9038,18 +9038,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9038
9038
|
(p ? p(T[R + 0], T[R + 1], T[R + 2], T[R + 3]) : t <= T[R + 2] && e <= T[R + 3] && i >= T[R + 0] && r >= T[R + 1]) ? (h[A] = !0, c.push(y[A])) : h[A] = !1;
|
|
9039
9039
|
}
|
|
9040
9040
|
}
|
|
9041
|
-
},
|
|
9041
|
+
}, Fr.prototype._forEachCell = function(t, e, i, r, a, c, h, p) {
|
|
9042
9042
|
for (var _ = this._convertToCellCoord(t), y = this._convertToCellCoord(e), T = this._convertToCellCoord(i), C = this._convertToCellCoord(r), A = _; A <= T; A++)
|
|
9043
9043
|
for (var R = y; R <= C; R++) {
|
|
9044
9044
|
var L = this.d * R + A;
|
|
9045
9045
|
if ((!p || p(this._convertFromCellCoord(A), this._convertFromCellCoord(R), this._convertFromCellCoord(A + 1), this._convertFromCellCoord(R + 1))) && a.call(this, t, e, i, r, L, c, h, p))
|
|
9046
9046
|
return;
|
|
9047
9047
|
}
|
|
9048
|
-
},
|
|
9048
|
+
}, Fr.prototype._convertFromCellCoord = function(t) {
|
|
9049
9049
|
return (t - this.padding) / this.scale;
|
|
9050
|
-
},
|
|
9050
|
+
}, Fr.prototype._convertToCellCoord = function(t) {
|
|
9051
9051
|
return Math.max(0, Math.min(this.d - 1, Math.floor(t * this.scale) + this.padding));
|
|
9052
|
-
},
|
|
9052
|
+
}, Fr.prototype.toArrayBuffer = function() {
|
|
9053
9053
|
if (this.arrayBuffer)
|
|
9054
9054
|
return this.arrayBuffer;
|
|
9055
9055
|
for (var t = this.cells, e = 3 + this.cells.length + 1 + 1, i = 0, r = 0; r < this.cells.length; r++)
|
|
@@ -9071,7 +9071,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9071
9071
|
return e && e.push(i), { buffer: i };
|
|
9072
9072
|
}, hs.deserialize = function(t) {
|
|
9073
9073
|
return new hs(t.buffer);
|
|
9074
|
-
}, Object.defineProperty(hs, "name", { value: "Grid" }), It(hs, "Grid"), It(dn, "Color"), It(Error, "Error"), It(
|
|
9074
|
+
}, Object.defineProperty(hs, "name", { value: "Grid" }), It(hs, "Grid"), It(dn, "Color"), It(Error, "Error"), It(Ar, "AJAXError"), It(mr, "ResolvedImage"), It(ss, "StylePropertyFunction"), It(tl, "StyleExpression", { omit: ["_evaluator"] }), It(il, "ZoomDependentExpression"), It(mo, "ZoomConstantExpression"), It(po, "CompoundExpression", { omit: ["_evaluate"] });
|
|
9075
9075
|
for (const t in Hs)
|
|
9076
9076
|
ll[Hs[t]._classRegistryKey] || It(Hs[t], `Expression${t}`);
|
|
9077
9077
|
function wh(t) {
|
|
@@ -9080,7 +9080,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9080
9080
|
function Th(t) {
|
|
9081
9081
|
return P.ImageBitmap && t instanceof P.ImageBitmap;
|
|
9082
9082
|
}
|
|
9083
|
-
function
|
|
9083
|
+
function _o(t, e) {
|
|
9084
9084
|
if (t == null || typeof t == "boolean" || typeof t == "number" || typeof t == "string" || t instanceof Boolean || t instanceof Number || t instanceof String || t instanceof Date || t instanceof RegExp)
|
|
9085
9085
|
return t;
|
|
9086
9086
|
if (wh(t) || Th(t))
|
|
@@ -9094,7 +9094,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9094
9094
|
if (Array.isArray(t)) {
|
|
9095
9095
|
const i = [];
|
|
9096
9096
|
for (const r of t)
|
|
9097
|
-
i.push(
|
|
9097
|
+
i.push(_o(r, e));
|
|
9098
9098
|
return i;
|
|
9099
9099
|
}
|
|
9100
9100
|
if (typeof t == "object") {
|
|
@@ -9104,7 +9104,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9104
9104
|
const a = i.serialize ? i.serialize(t, e) : {};
|
|
9105
9105
|
if (!i.serialize) {
|
|
9106
9106
|
for (const c in t)
|
|
9107
|
-
t.hasOwnProperty(c) && (ll[r].omit.indexOf(c) >= 0 || (a[c] =
|
|
9107
|
+
t.hasOwnProperty(c) && (ll[r].omit.indexOf(c) >= 0 || (a[c] = _o(t[c], e)));
|
|
9108
9108
|
t instanceof Error && (a.message = t.message);
|
|
9109
9109
|
}
|
|
9110
9110
|
if (a.$name)
|
|
@@ -9173,7 +9173,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9173
9173
|
t && typeof t == "string" && t.indexOf("NetworkError") > -1 && (J = "error"), G && G(t);
|
|
9174
9174
|
};
|
|
9175
9175
|
function de() {
|
|
9176
|
-
ue.fire(new
|
|
9176
|
+
ue.fire(new zr("pluginStateChange", { pluginStatus: J, pluginURL: K }));
|
|
9177
9177
|
}
|
|
9178
9178
|
const ue = new fr(), me = function() {
|
|
9179
9179
|
return J;
|
|
@@ -9551,7 +9551,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9551
9551
|
}
|
|
9552
9552
|
}
|
|
9553
9553
|
Xn.prototype.bytesPerElement = 12, It(Xn, "StructArrayLayout4ui1f12");
|
|
9554
|
-
class
|
|
9554
|
+
class Ur extends $t {
|
|
9555
9555
|
_refreshViews() {
|
|
9556
9556
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
9557
9557
|
}
|
|
@@ -9564,7 +9564,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9564
9564
|
return this.uint16[h + 0] = i, this.uint16[h + 1] = r, this.uint16[h + 2] = a, this.uint16[h + 3] = c, e;
|
|
9565
9565
|
}
|
|
9566
9566
|
}
|
|
9567
|
-
|
|
9567
|
+
Ur.prototype.bytesPerElement = 8, It(Ur, "StructArrayLayout4ui8");
|
|
9568
9568
|
class Xi extends $t {
|
|
9569
9569
|
_refreshViews() {
|
|
9570
9570
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
@@ -9676,7 +9676,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9676
9676
|
}
|
|
9677
9677
|
}
|
|
9678
9678
|
ra.prototype.bytesPerElement = 12, It(ra, "StructArrayLayout2ub2f12");
|
|
9679
|
-
class
|
|
9679
|
+
class no extends $t {
|
|
9680
9680
|
_refreshViews() {
|
|
9681
9681
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
9682
9682
|
}
|
|
@@ -9689,7 +9689,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9689
9689
|
return this.float32[c + 0] = i, this.float32[c + 1] = r, this.float32[c + 2] = a, e;
|
|
9690
9690
|
}
|
|
9691
9691
|
}
|
|
9692
|
-
|
|
9692
|
+
no.prototype.bytesPerElement = 12, It(no, "StructArrayLayout3f12");
|
|
9693
9693
|
class Vn extends $t {
|
|
9694
9694
|
_refreshViews() {
|
|
9695
9695
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
@@ -9718,7 +9718,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9718
9718
|
}
|
|
9719
9719
|
}
|
|
9720
9720
|
gr.prototype.bytesPerElement = 60, It(gr, "StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");
|
|
9721
|
-
class
|
|
9721
|
+
class jr extends $t {
|
|
9722
9722
|
_refreshViews() {
|
|
9723
9723
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer);
|
|
9724
9724
|
}
|
|
@@ -9731,8 +9731,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9731
9731
|
return this.int16[Pe + 0] = i, this.int16[Pe + 1] = r, this.int16[Pe + 2] = a, this.float32[mt + 2] = c, this.float32[mt + 3] = h, this.int16[Pe + 8] = p, this.int16[Pe + 9] = _, this.int16[Pe + 10] = y, this.int16[Pe + 11] = T, this.int16[Pe + 12] = C, this.int16[Pe + 13] = A, this.uint16[Pe + 14] = R, this.uint16[Pe + 15] = L, this.uint16[Pe + 16] = O, this.uint16[Pe + 17] = j, this.uint16[Pe + 18] = te, this.uint16[Pe + 19] = le, this.uint16[Pe + 20] = ee, this.uint16[Pe + 21] = oe, this.uint16[Pe + 22] = he, this.uint16[Pe + 23] = ce, this.uint16[Pe + 24] = Me, this.uint16[Pe + 25] = Ce, this.uint16[Pe + 26] = Ne, this.uint16[Pe + 27] = et, this.uint16[Pe + 28] = ke, this.uint32[mt + 15] = Ve, this.float32[mt + 16] = qe, this.float32[mt + 17] = Ye, this.float32[mt + 18] = tt, e;
|
|
9732
9732
|
}
|
|
9733
9733
|
}
|
|
9734
|
-
|
|
9735
|
-
class
|
|
9734
|
+
jr.prototype.bytesPerElement = 76, It(jr, "StructArrayLayout3i2f6i15ui1ul3f76");
|
|
9735
|
+
class $r extends $t {
|
|
9736
9736
|
_refreshViews() {
|
|
9737
9737
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
9738
9738
|
}
|
|
@@ -9744,7 +9744,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9744
9744
|
return this.float32[1 * e + 0] = i, e;
|
|
9745
9745
|
}
|
|
9746
9746
|
}
|
|
9747
|
-
|
|
9747
|
+
$r.prototype.bytesPerElement = 4, It($r, "StructArrayLayout1f4");
|
|
9748
9748
|
class oa extends $t {
|
|
9749
9749
|
_refreshViews() {
|
|
9750
9750
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
@@ -9773,7 +9773,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9773
9773
|
}
|
|
9774
9774
|
}
|
|
9775
9775
|
ps.prototype.bytesPerElement = 12, It(ps, "StructArrayLayout1ul3ui12");
|
|
9776
|
-
class
|
|
9776
|
+
class Vr extends $t {
|
|
9777
9777
|
_refreshViews() {
|
|
9778
9778
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
9779
9779
|
}
|
|
@@ -9786,7 +9786,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9786
9786
|
return this.uint16[a + 0] = i, this.uint16[a + 1] = r, e;
|
|
9787
9787
|
}
|
|
9788
9788
|
}
|
|
9789
|
-
|
|
9789
|
+
Vr.prototype.bytesPerElement = 4, It(Vr, "StructArrayLayout2ui4");
|
|
9790
9790
|
class Dc extends $t {
|
|
9791
9791
|
_refreshViews() {
|
|
9792
9792
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
@@ -10042,13 +10042,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10042
10042
|
}
|
|
10043
10043
|
}
|
|
10044
10044
|
Xm.prototype.size = 76;
|
|
10045
|
-
class Ym extends
|
|
10045
|
+
class Ym extends jr {
|
|
10046
10046
|
get(e) {
|
|
10047
10047
|
return new Xm(this, e);
|
|
10048
10048
|
}
|
|
10049
10049
|
}
|
|
10050
10050
|
It(Ym, "SymbolInstanceArray");
|
|
10051
|
-
class Km extends
|
|
10051
|
+
class Km extends $r {
|
|
10052
10052
|
getoffsetX(e) {
|
|
10053
10053
|
return this.float32[1 * e + 0];
|
|
10054
10054
|
}
|
|
@@ -10084,7 +10084,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10084
10084
|
}
|
|
10085
10085
|
}
|
|
10086
10086
|
It(e_, "FeatureIndexArray");
|
|
10087
|
-
class t_ extends
|
|
10087
|
+
class t_ extends Vr {
|
|
10088
10088
|
geta_centroid_pos0(e) {
|
|
10089
10089
|
return this.uint16[2 * e + 0];
|
|
10090
10090
|
}
|
|
@@ -10272,7 +10272,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10272
10272
|
this.paintVertexBuffer && this.paintVertexBuffer.destroy();
|
|
10273
10273
|
}
|
|
10274
10274
|
}
|
|
10275
|
-
class
|
|
10275
|
+
class ro {
|
|
10276
10276
|
constructor(e, i, r, a, c, h) {
|
|
10277
10277
|
this.expression = e, this.uniformNames = i.map((p) => `u_${p}_t`), this.type = r, this.useIntegerZoom = a, this.zoom = c, this.maxValue = 0, this.paintVertexAttributes = i.map((p) => ({ name: `a_${p}`, type: "Float32", components: r === "color" ? 4 : 2, offset: 0 })), this.paintVertexArray = new h();
|
|
10278
10278
|
}
|
|
@@ -10357,7 +10357,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10357
10357
|
this.binders[c] = C ? new fs(_, p, y, R, e.id) : new Uo(_, p, y, R), a.push(`/a_${c}`);
|
|
10358
10358
|
} else {
|
|
10359
10359
|
const R = l_(c, y, "composite");
|
|
10360
|
-
this.binders[c] = new
|
|
10360
|
+
this.binders[c] = new ro(_, p, y, T, i, R), a.push(`/z_${c}`);
|
|
10361
10361
|
}
|
|
10362
10362
|
else
|
|
10363
10363
|
this.binders[c] = C ? new hl(_.value, p) : new Lc(_.value, p, y), a.push(`/u_${c}`);
|
|
@@ -10366,12 +10366,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10366
10366
|
}
|
|
10367
10367
|
getMaxValue(e) {
|
|
10368
10368
|
const i = this.binders[e];
|
|
10369
|
-
return i instanceof Uo || i instanceof
|
|
10369
|
+
return i instanceof Uo || i instanceof ro ? i.maxValue : 0;
|
|
10370
10370
|
}
|
|
10371
10371
|
populatePaintArrays(e, i, r, a, c, h) {
|
|
10372
10372
|
for (const p in this.binders) {
|
|
10373
10373
|
const _ = this.binders[p];
|
|
10374
|
-
(_ instanceof Uo || _ instanceof
|
|
10374
|
+
(_ instanceof Uo || _ instanceof ro || _ instanceof fs) && _.populatePaintArray(e, i, r, a, c, h);
|
|
10375
10375
|
}
|
|
10376
10376
|
}
|
|
10377
10377
|
setConstantPatternPositions(e) {
|
|
@@ -10388,7 +10388,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10388
10388
|
const C = r.feature(T.index);
|
|
10389
10389
|
for (const A in this.binders) {
|
|
10390
10390
|
const R = this.binders[A];
|
|
10391
|
-
if ((R instanceof Uo || R instanceof
|
|
10391
|
+
if ((R instanceof Uo || R instanceof ro || R instanceof fs) && R.expression.isStateDependent === !0) {
|
|
10392
10392
|
const L = a.paint.get(A);
|
|
10393
10393
|
R.expression = L.value, R.updatePaintArray(T.start, T.end, C, e[_], c, h), p = !0;
|
|
10394
10394
|
}
|
|
@@ -10409,7 +10409,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10409
10409
|
const e = [];
|
|
10410
10410
|
for (const i in this.binders) {
|
|
10411
10411
|
const r = this.binders[i];
|
|
10412
|
-
if (r instanceof Uo || r instanceof
|
|
10412
|
+
if (r instanceof Uo || r instanceof ro || r instanceof fs)
|
|
10413
10413
|
for (let a = 0; a < r.paintVertexAttributes.length; a++)
|
|
10414
10414
|
e.push(r.paintVertexAttributes[a].name);
|
|
10415
10415
|
}
|
|
@@ -10419,7 +10419,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10419
10419
|
const e = [];
|
|
10420
10420
|
for (const i in this.binders) {
|
|
10421
10421
|
const r = this.binders[i];
|
|
10422
|
-
if (r instanceof Lc || r instanceof hl || r instanceof
|
|
10422
|
+
if (r instanceof Lc || r instanceof hl || r instanceof ro)
|
|
10423
10423
|
for (const a of r.uniformNames)
|
|
10424
10424
|
e.push(a);
|
|
10425
10425
|
}
|
|
@@ -10432,7 +10432,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10432
10432
|
const i = [];
|
|
10433
10433
|
for (const r in this.binders) {
|
|
10434
10434
|
const a = this.binders[r];
|
|
10435
|
-
if (a instanceof Lc || a instanceof hl || a instanceof
|
|
10435
|
+
if (a instanceof Lc || a instanceof hl || a instanceof ro)
|
|
10436
10436
|
for (const c of a.uniformNames)
|
|
10437
10437
|
i.push({ name: c, property: r, binding: a.getBinding(e, c) });
|
|
10438
10438
|
}
|
|
@@ -10446,20 +10446,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10446
10446
|
this._buffers = [];
|
|
10447
10447
|
for (const e in this.binders) {
|
|
10448
10448
|
const i = this.binders[e];
|
|
10449
|
-
(i instanceof Uo || i instanceof
|
|
10449
|
+
(i instanceof Uo || i instanceof ro || i instanceof fs) && i.paintVertexBuffer && this._buffers.push(i.paintVertexBuffer);
|
|
10450
10450
|
}
|
|
10451
10451
|
}
|
|
10452
10452
|
upload(e) {
|
|
10453
10453
|
for (const i in this.binders) {
|
|
10454
10454
|
const r = this.binders[i];
|
|
10455
|
-
(r instanceof Uo || r instanceof
|
|
10455
|
+
(r instanceof Uo || r instanceof ro || r instanceof fs) && r.upload(e);
|
|
10456
10456
|
}
|
|
10457
10457
|
this.updatePaintBuffers();
|
|
10458
10458
|
}
|
|
10459
10459
|
destroy() {
|
|
10460
10460
|
for (const e in this.binders) {
|
|
10461
10461
|
const i = this.binders[e];
|
|
10462
|
-
(i instanceof Uo || i instanceof
|
|
10462
|
+
(i instanceof Uo || i instanceof ro || i instanceof fs) && i.destroy();
|
|
10463
10463
|
}
|
|
10464
10464
|
}
|
|
10465
10465
|
}
|
|
@@ -10498,14 +10498,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10498
10498
|
function Uv(t, e) {
|
|
10499
10499
|
return Fv[t] || [t.replace(`${e}-`, "").replace(/-/g, "_")];
|
|
10500
10500
|
}
|
|
10501
|
-
const jv = { "line-pattern": { source: Xn, composite: Xn }, "fill-pattern": { source: Xn, composite: Xn }, "fill-extrusion-pattern": { source: Xn, composite: Xn }, "line-dasharray": { source:
|
|
10501
|
+
const jv = { "line-pattern": { source: Xn, composite: Xn }, "fill-pattern": { source: Xn, composite: Xn }, "fill-extrusion-pattern": { source: Xn, composite: Xn }, "line-dasharray": { source: Ur, composite: Ur } }, $v = { color: { source: kh, composite: ar }, number: { source: $r, composite: kh } };
|
|
10502
10502
|
function l_(t, e, i) {
|
|
10503
10503
|
const r = jv[t];
|
|
10504
10504
|
return r && r[i] || $v[e][i];
|
|
10505
10505
|
}
|
|
10506
|
-
It(Lc, "ConstantBinder"), It(hl, "PatternConstantBinder"), It(Uo, "SourceExpressionBinder"), It(fs, "PatternCompositeBinder"), It(
|
|
10506
|
+
It(Lc, "ConstantBinder"), It(hl, "PatternConstantBinder"), It(Uo, "SourceExpressionBinder"), It(fs, "PatternCompositeBinder"), It(ro, "CompositeExpressionBinder"), It(ms, "ProgramConfiguration", { omit: ["_buffers"] }), It(sa, "ProgramConfigurationSet");
|
|
10507
10507
|
const Bh = "-transition";
|
|
10508
|
-
class
|
|
10508
|
+
class oo extends fr {
|
|
10509
10509
|
constructor(e, i) {
|
|
10510
10510
|
if (super(), this.id = e.id, this.type = e.type, this._featureFilter = { filter: () => !0, needGeometry: !1, needFeature: !1 }, this._filterCompiled = !1, e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && e.type !== "sky" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter), i.layout && (this._unevaluatedLayout = new ze(i.layout)), i.paint)) {
|
|
10511
10511
|
this._transitionablePaint = new Fe(i.paint);
|
|
@@ -10732,16 +10732,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10732
10732
|
function Sp(t) {
|
|
10733
10733
|
return c_ * Math.cos(t * Math.PI / 180);
|
|
10734
10734
|
}
|
|
10735
|
-
function
|
|
10735
|
+
function go(t) {
|
|
10736
10736
|
return (180 + t) / 360;
|
|
10737
10737
|
}
|
|
10738
|
-
function
|
|
10738
|
+
function yo(t) {
|
|
10739
10739
|
return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + t * Math.PI / 360))) / 360;
|
|
10740
10740
|
}
|
|
10741
|
-
function
|
|
10741
|
+
function Gr(t, e) {
|
|
10742
10742
|
return t / Sp(e);
|
|
10743
10743
|
}
|
|
10744
|
-
function
|
|
10744
|
+
function Rr(t) {
|
|
10745
10745
|
return 360 * t - 180;
|
|
10746
10746
|
}
|
|
10747
10747
|
function Gn(t) {
|
|
@@ -10750,7 +10750,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10750
10750
|
function u_(t, e) {
|
|
10751
10751
|
return t * Sp(Gn(e));
|
|
10752
10752
|
}
|
|
10753
|
-
const
|
|
10753
|
+
const vo = 85.051129;
|
|
10754
10754
|
function h_(t) {
|
|
10755
10755
|
return 1 / Math.cos(t * Math.PI / 180);
|
|
10756
10756
|
}
|
|
@@ -10760,10 +10760,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10760
10760
|
}
|
|
10761
10761
|
static fromLngLat(e, i = 0) {
|
|
10762
10762
|
const r = Ei.convert(e);
|
|
10763
|
-
return new dl(
|
|
10763
|
+
return new dl(go(r.lng), yo(r.lat), Gr(i, r.lat));
|
|
10764
10764
|
}
|
|
10765
10765
|
toLngLat() {
|
|
10766
|
-
return new Ei(
|
|
10766
|
+
return new Ei(Rr(this.x), Gn(this.y));
|
|
10767
10767
|
}
|
|
10768
10768
|
toAltitude() {
|
|
10769
10769
|
return u_(this.z, this.y);
|
|
@@ -10814,7 +10814,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10814
10814
|
const r = t.loadGeometry(), a = t.extent, c = Yt / a;
|
|
10815
10815
|
if (e && i && i.projection.isReprojectedInTileSpace) {
|
|
10816
10816
|
const h = 1 << e.z, { scale: p, x: _, y, projection: T } = i, C = (A) => {
|
|
10817
|
-
const R =
|
|
10817
|
+
const R = Rr((e.x + A.x / a) / h), L = Gn((e.y + A.y / a) / h), O = T.project(R, L);
|
|
10818
10818
|
A.x = (O.x * p - _) * a, A.y = (O.y * p - y) * a;
|
|
10819
10819
|
};
|
|
10820
10820
|
for (let A = 0; A < r.length; A++)
|
|
@@ -11038,7 +11038,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11038
11038
|
var r = e[0], a = e[1], c = e[2], h = e[3], p = e[4], _ = e[5], y = e[6], T = e[7], C = e[8], A = i[0], R = i[1], L = i[2], O = i[3], j = i[4], te = i[5], le = i[6], ee = i[7], oe = i[8];
|
|
11039
11039
|
return t[0] = A * r + R * h + L * y, t[1] = A * a + R * p + L * T, t[2] = A * c + R * _ + L * C, t[3] = O * r + j * h + te * y, t[4] = O * a + j * p + te * T, t[5] = O * c + j * _ + te * C, t[6] = le * r + ee * h + oe * y, t[7] = le * a + ee * p + oe * T, t[8] = le * c + ee * _ + oe * C, t;
|
|
11040
11040
|
}
|
|
11041
|
-
function
|
|
11041
|
+
function so(t) {
|
|
11042
11042
|
return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 1, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 1, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
|
|
11043
11043
|
}
|
|
11044
11044
|
function Lp(t, e) {
|
|
@@ -11108,7 +11108,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11108
11108
|
function Oc(t, e, i) {
|
|
11109
11109
|
return t[0] = Math.max(e[0], i[0]), t[1] = Math.max(e[1], i[1]), t[2] = Math.max(e[2], i[2]), t;
|
|
11110
11110
|
}
|
|
11111
|
-
function
|
|
11111
|
+
function Dr(t, e, i) {
|
|
11112
11112
|
return t[0] = e[0] * i, t[1] = e[1] * i, t[2] = e[2] * i, t;
|
|
11113
11113
|
}
|
|
11114
11114
|
function Bc(t, e, i, r) {
|
|
@@ -11118,7 +11118,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11118
11118
|
var i = e[0], r = e[1], a = e[2], c = i * i + r * r + a * a;
|
|
11119
11119
|
return c > 0 && (c = 1 / Math.sqrt(c)), t[0] = e[0] * c, t[1] = e[1] * c, t[2] = e[2] * c, t;
|
|
11120
11120
|
}
|
|
11121
|
-
function
|
|
11121
|
+
function Zr(t, e) {
|
|
11122
11122
|
return t[0] * e[0] + t[1] * e[1] + t[2] * e[2];
|
|
11123
11123
|
}
|
|
11124
11124
|
function Op(t, e, i) {
|
|
@@ -11133,7 +11133,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11133
11133
|
var r = i[0], a = i[1], c = i[2], h = e[0], p = e[1], _ = e[2], y = a * _ - c * p, T = c * h - r * _, C = r * p - a * h, A = a * C - c * T, R = c * y - r * C, L = r * T - a * y, O = 2 * i[3];
|
|
11134
11134
|
return T *= O, C *= O, R *= 2, L *= 2, t[0] = h + (y *= O) + (A *= 2), t[1] = p + T + R, t[2] = _ + C + L, t;
|
|
11135
11135
|
}
|
|
11136
|
-
var Nc,
|
|
11136
|
+
var Nc, ao = zp, ex = C_, tx = Pc;
|
|
11137
11137
|
function M_(t, e, i) {
|
|
11138
11138
|
return t[0] = e[0] * i, t[1] = e[1] * i, t[2] = e[2] * i, t[3] = e[3] * i, t;
|
|
11139
11139
|
}
|
|
@@ -11170,7 +11170,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11170
11170
|
this.pos = e, this.dir = i;
|
|
11171
11171
|
}
|
|
11172
11172
|
intersectsPlane(e, i, r) {
|
|
11173
|
-
const a =
|
|
11173
|
+
const a = Zr(i, this.dir);
|
|
11174
11174
|
if (Math.abs(a) < 1e-6)
|
|
11175
11175
|
return !1;
|
|
11176
11176
|
const c = ((e[0] - this.pos[0]) * i[0] + (e[1] - this.pos[1]) * i[1] + (e[2] - this.pos[2]) * i[2]) / a;
|
|
@@ -11217,7 +11217,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11217
11217
|
return C[0] = A[0] * R[0], C[1] = A[1] * R[1], C[2] = A[2] * R[2], C[3] = A[3] * R[3], C;
|
|
11218
11218
|
}(y, y, [T, T, a ? 1 / y[3] : T, T]);
|
|
11219
11219
|
}), p = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map((_) => {
|
|
11220
|
-
const y = tr([], Op([],
|
|
11220
|
+
const y = tr([], Op([], ao([], h[_[0]], h[_[1]]), ao([], h[_[2]], h[_[1]]))), T = -Zr(y, h[_[1]]);
|
|
11221
11221
|
return y.concat(T);
|
|
11222
11222
|
});
|
|
11223
11223
|
return new Fp(h, p);
|
|
@@ -11237,7 +11237,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11237
11237
|
return ir.fromPoints(r);
|
|
11238
11238
|
}
|
|
11239
11239
|
constructor(e, i) {
|
|
11240
|
-
this.min = e, this.max = i, this.center =
|
|
11240
|
+
this.min = e, this.max = i, this.center = Dr([], $o([], this.min, this.max), 0.5);
|
|
11241
11241
|
}
|
|
11242
11242
|
quadrant(e) {
|
|
11243
11243
|
const i = [e % 2 == 0, e < 2], r = S_(this.min), a = S_(this.max);
|
|
@@ -11265,7 +11265,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11265
11265
|
const c = e.planes[a];
|
|
11266
11266
|
let h = 0;
|
|
11267
11267
|
for (let p = 0; p < i.length; p++)
|
|
11268
|
-
h +=
|
|
11268
|
+
h += Zr(c, i[p]) + c[3] >= 0;
|
|
11269
11269
|
if (h === 0)
|
|
11270
11270
|
return 0;
|
|
11271
11271
|
h !== i.length && (r = !1);
|
|
@@ -11299,7 +11299,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11299
11299
|
const j = c ? R : nx(O.x, O.y, O.z, r), te = c ? t.tilespaceRays.map((ee) => ox(ee, L)) : t.queryGeometry.screenGeometry, le = ha([], [O.x, O.y, O.z, 1], r);
|
|
11300
11300
|
if (!h && c ? _ *= le[3] / i.cameraToCenterDistance : h && !c && (_ *= i.cameraToCenterDistance / le[3]), c) {
|
|
11301
11301
|
const ee = Gn((A.y / Yt + y.y) / (1 << y.z));
|
|
11302
|
-
_ /= i.projection.pixelsPerMeter(ee, 1) /
|
|
11302
|
+
_ /= i.projection.pixelsPerMeter(ee, 1) / Gr(1, ee);
|
|
11303
11303
|
}
|
|
11304
11304
|
if (Wv(te, j, _))
|
|
11305
11305
|
return !0;
|
|
@@ -11716,7 +11716,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11716
11716
|
};
|
|
11717
11717
|
class Hh {
|
|
11718
11718
|
constructor(e) {
|
|
11719
|
-
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((i) => i.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Mi(), this.indexArray = new Vn(), this.indexArray2 = new
|
|
11719
|
+
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((i) => i.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Mi(), this.indexArray = new Vn(), this.indexArray2 = new Vr(), this.programConfigurations = new sa(e.layers, e.zoom), this.segments = new Sn(), this.segments2 = new Sn(), this.stateDependentLayerIds = this.layers.filter((i) => i.isStateDependent()).map((i) => i.id), this.projection = e.projection;
|
|
11720
11720
|
}
|
|
11721
11721
|
populate(e, i, r, a) {
|
|
11722
11722
|
this.hasPattern = qp("fill", this.layers, i);
|
|
@@ -12163,7 +12163,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12163
12163
|
return i * Math.sqrt(1 + 2 * e * e) - i;
|
|
12164
12164
|
}
|
|
12165
12165
|
function eg(t, e, i) {
|
|
12166
|
-
const r = 1 << i.z, a =
|
|
12166
|
+
const r = 1 << i.z, a = Rr(i.x / r), c = Rr((i.x + 1) / r), h = Gn(i.y / r), p = Gn((i.y + 1) / r);
|
|
12167
12167
|
return function(_, y, T, C, A = 0, R) {
|
|
12168
12168
|
const L = [];
|
|
12169
12169
|
if (!_.length || !T || !C)
|
|
@@ -12197,7 +12197,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12197
12197
|
return 0.5 * (y + T);
|
|
12198
12198
|
{
|
|
12199
12199
|
const C = Gn((i.y + y / Yt) / r);
|
|
12200
|
-
return (
|
|
12200
|
+
return (yo(0.5 * (Gn((i.y + T / Yt) / r) + C)) * r - i.y) * Yt;
|
|
12201
12201
|
}
|
|
12202
12202
|
});
|
|
12203
12203
|
}
|
|
@@ -12541,7 +12541,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12541
12541
|
const lg = At([{ name: "a_pos", components: 3, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), Jx = At([{ name: "a_pos_2f", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
|
|
12542
12542
|
At([{ name: "triangle", components: 3, type: "Uint16" }]), At([{ type: "Int16", name: "projectedAnchorX" }, { type: "Int16", name: "projectedAnchorY" }, { type: "Int16", name: "projectedAnchorZ" }, { type: "Float32", name: "tileAnchorX" }, { type: "Float32", name: "tileAnchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }, { type: "Uint8", name: "flipState" }]), At([{ type: "Int16", name: "projectedAnchorX" }, { type: "Int16", name: "projectedAnchorY" }, { type: "Int16", name: "projectedAnchorZ" }, { type: "Float32", name: "tileAnchorX" }, { type: "Float32", name: "tileAnchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", components: 2, name: "textOffset" }, { type: "Float32", name: "collisionCircleDiameter" }]), At([{ type: "Float32", name: "offsetX" }]), At([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }]);
|
|
12543
12543
|
var Zn = 24;
|
|
12544
|
-
const
|
|
12544
|
+
const xo = 128;
|
|
12545
12545
|
function Xp(t, e) {
|
|
12546
12546
|
const { expression: i } = e;
|
|
12547
12547
|
if (i.kind === "constant")
|
|
@@ -12563,19 +12563,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12563
12563
|
}
|
|
12564
12564
|
}
|
|
12565
12565
|
function ed(t, { uSize: e, uSizeT: i }, { lowerSize: r, upperSize: a }) {
|
|
12566
|
-
return t.kind === "source" ? r /
|
|
12566
|
+
return t.kind === "source" ? r / xo : t.kind === "composite" ? Si(r / xo, a / xo, i) : e;
|
|
12567
12567
|
}
|
|
12568
12568
|
function yl(t, e) {
|
|
12569
12569
|
let i = 0, r = 0;
|
|
12570
12570
|
if (t.kind === "constant")
|
|
12571
12571
|
r = t.layoutSize;
|
|
12572
12572
|
else if (t.kind !== "source") {
|
|
12573
|
-
const { interpolationType: a, minZoom: c, maxZoom: h } = t, p = a ? Ft(
|
|
12573
|
+
const { interpolationType: a, minZoom: c, maxZoom: h } = t, p = a ? Ft(Br.interpolationFactor(a, e, c, h), 0, 1) : 0;
|
|
12574
12574
|
t.kind === "camera" ? r = Si(t.minSize, t.maxSize, p) : i = p;
|
|
12575
12575
|
}
|
|
12576
12576
|
return { uSizeT: i, uSize: r };
|
|
12577
12577
|
}
|
|
12578
|
-
var Qx = Object.freeze({ __proto__: null, getSizeData: Xp, evaluateSizeForFeature: ed, evaluateSizeForZoom: yl, SIZE_PACK_FACTOR:
|
|
12578
|
+
var Qx = Object.freeze({ __proto__: null, getSizeData: Xp, evaluateSizeForFeature: ed, evaluateSizeForZoom: yl, SIZE_PACK_FACTOR: xo });
|
|
12579
12579
|
function eb(t, e, i) {
|
|
12580
12580
|
return t.sections.forEach((r) => {
|
|
12581
12581
|
r.text = function(a, c, h) {
|
|
@@ -13013,7 +13013,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13013
13013
|
}
|
|
13014
13014
|
}
|
|
13015
13015
|
It(Jp, "ImagePosition"), It(mg, "ImageAtlas");
|
|
13016
|
-
const
|
|
13016
|
+
const Lr = { horizontal: 1, vertical: 2, horizontalOnly: 3 };
|
|
13017
13017
|
class Kc {
|
|
13018
13018
|
constructor() {
|
|
13019
13019
|
this.scale = 1, this.fontStack = "", this.imageName = null;
|
|
@@ -13102,7 +13102,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13102
13102
|
}
|
|
13103
13103
|
function Qp(t, e, i, r, a, c, h, p, _, y, T, C, A, R, L) {
|
|
13104
13104
|
const O = bl.fromFeature(t, a);
|
|
13105
|
-
C ===
|
|
13105
|
+
C === Lr.vertical && O.verticalizePunctuation(A);
|
|
13106
13106
|
let j = [];
|
|
13107
13107
|
const te = function(ce, Me, Ce, Ne, et, ke) {
|
|
13108
13108
|
if (!ce)
|
|
@@ -13181,7 +13181,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13181
13181
|
for (let Ni = 0; Ni < ti.length(); Ni++) {
|
|
13182
13182
|
const Cn = ti.getSection(Ni), bn = ti.getSectionIndex(Ni), Ai = ti.getCharCode(Ni);
|
|
13183
13183
|
let an = Cn.scale, In = null, Vi = null, yn = null, Kn = Zn, On = 0;
|
|
13184
|
-
const Bn = !(Ye ===
|
|
13184
|
+
const Bn = !(Ye === Lr.horizontal || !Pe && !I(Ai) || Pe && (id[Ai] || (fi = Ai, Tc(fi) || Eh(fi) || Ec(fi) || l(fi) || d(fi))));
|
|
13185
13185
|
if (Cn.imageName) {
|
|
13186
13186
|
const rr = Ne[Cn.imageName];
|
|
13187
13187
|
if (!rr)
|
|
@@ -13774,7 +13774,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13774
13774
|
}
|
|
13775
13775
|
let tt = R ? "center" : T.get("text-justify").evaluate(O, {}, p);
|
|
13776
13776
|
const Pe = T.get("symbol-placement") === "point", mt = Pe ? T.get("text-max-width").evaluate(O, {}, p) * Zn : 1 / 0, Gt = (xt) => {
|
|
13777
|
-
t.allowVerticalPlacement && v(Ne) && (ee.vertical = Qp(oe, e, i, a, j, mt, ke, qe, xt, Ve, ce,
|
|
13777
|
+
t.allowVerticalPlacement && v(Ne) && (ee.vertical = Qp(oe, e, i, a, j, mt, ke, qe, xt, Ve, ce, Lr.vertical, !0, le, te));
|
|
13778
13778
|
};
|
|
13779
13779
|
if (!R && Ye) {
|
|
13780
13780
|
const xt = tt === "auto" ? Ye.map((gt) => rf(gt)) : [tt];
|
|
@@ -13785,14 +13785,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13785
13785
|
if (Bt)
|
|
13786
13786
|
ee.horizontal[qt] = ee.horizontal[0];
|
|
13787
13787
|
else {
|
|
13788
|
-
const gi = Qp(oe, e, i, a, j, mt, ke, "center", qt, Ve, ce,
|
|
13788
|
+
const gi = Qp(oe, e, i, a, j, mt, ke, "center", qt, Ve, ce, Lr.horizontal, !1, le, te);
|
|
13789
13789
|
gi && (ee.horizontal[qt] = gi, Bt = gi.positionedLines.length === 1);
|
|
13790
13790
|
}
|
|
13791
13791
|
}
|
|
13792
13792
|
Gt("left");
|
|
13793
13793
|
} else {
|
|
13794
13794
|
if (tt === "auto" && (tt = rf(qe)), Pe || T.get("text-writing-mode").indexOf("horizontal") >= 0 || !v(Ne)) {
|
|
13795
|
-
const xt = Qp(oe, e, i, a, j, mt, ke, qe, tt, Ve, ce,
|
|
13795
|
+
const xt = Qp(oe, e, i, a, j, mt, ke, qe, tt, Ve, ce, Lr.horizontal, !1, le, te);
|
|
13796
13796
|
xt && (ee.horizontal[tt] = xt);
|
|
13797
13797
|
}
|
|
13798
13798
|
Gt(Pe ? "left" : tt);
|
|
@@ -13840,7 +13840,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13840
13840
|
(function(Bt, gt, qt, gi, fi, ui, Ht, Bi, ti, yi, $i, Yi, Hi, Ki, en, pn, zn, Ni, Cn, bn, Ai, an, In, Vi, yn) {
|
|
13841
13841
|
const Kn = Bt.addToLineVertexArray(gt, gi);
|
|
13842
13842
|
let On, Bn, rr, Nn, Wo, Rl, cu, uu = 0, yy = 0, vy = 0, xy = 0, bf = -1, wf = -1;
|
|
13843
|
-
const
|
|
13843
|
+
const So = {};
|
|
13844
13844
|
let by = ul.exports("");
|
|
13845
13845
|
const _a = qt ? qt.anchor : gt;
|
|
13846
13846
|
let Tf = 0, Ef = 0;
|
|
@@ -13858,21 +13858,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13858
13858
|
Bn = sd(yi, _a, gt, $i, Yi, Hi, ui, Ni, xr), uu = 4 * hu.length;
|
|
13859
13859
|
const wy = Bt.iconSizeData;
|
|
13860
13860
|
let ga = null;
|
|
13861
|
-
wy.kind === "source" ? (ga = [
|
|
13861
|
+
wy.kind === "source" ? (ga = [xo * ti.layout.get("icon-size").evaluate(Ai, {}, yn)], ga[0] > gs && Ze(`${Bt.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : wy.kind === "composite" && (ga = [xo * an.compositeIconSizes[0].evaluate(Ai, {}, yn), xo * an.compositeIconSizes[1].evaluate(Ai, {}, yn)], (ga[0] > gs || ga[1] > gs) && Ze(`${Bt.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), Bt.addSymbols(Bt.icon, hu, ga, bn, Cn, Ai, !1, qt, gt, Kn.lineStartIndex, Kn.lineLength, -1, Vi, yn), bf = Bt.icon.placedSymbolArray.length - 1, Cf && (yy = 4 * Cf.length, Bt.addSymbols(Bt.icon, Cf, ga, bn, Cn, Ai, Lr.vertical, qt, gt, Kn.lineStartIndex, Kn.lineLength, -1, Vi, yn), wf = Bt.icon.placedSymbolArray.length - 1);
|
|
13862
13862
|
}
|
|
13863
13863
|
for (const xr in fi.horizontal) {
|
|
13864
13864
|
const br = fi.horizontal[xr];
|
|
13865
13865
|
On || (by = ul.exports(br.text), en ? Wo = of(br) : On = sd(yi, _a, gt, $i, Yi, Hi, br, Ki, ti.layout.get("text-rotate").evaluate(Ai, {}, yn), pn));
|
|
13866
13866
|
const hu = br.positionedLines.length === 1;
|
|
13867
|
-
if (vy += kg(Bt, qt, gt, br, Ht, ti, en, Ai, pn, Kn, fi.vertical ?
|
|
13867
|
+
if (vy += kg(Bt, qt, gt, br, Ht, ti, en, Ai, pn, Kn, fi.vertical ? Lr.horizontal : Lr.horizontalOnly, hu ? Object.keys(fi.horizontal) : [xr], So, bf, an, Vi, yn), hu)
|
|
13868
13868
|
break;
|
|
13869
13869
|
}
|
|
13870
|
-
fi.vertical && (xy += kg(Bt, qt, gt, fi.vertical, Ht, ti, en, Ai, pn, Kn,
|
|
13870
|
+
fi.vertical && (xy += kg(Bt, qt, gt, fi.vertical, Ht, ti, en, Ai, pn, Kn, Lr.vertical, ["vertical"], So, wf, an, Vi, yn));
|
|
13871
13871
|
let Ts = -1;
|
|
13872
13872
|
const Sf = (xr, br) => xr ? Math.max(xr, br) : br;
|
|
13873
13873
|
Ts = Sf(Wo, Ts), Ts = Sf(Rl, Ts), Ts = Sf(cu, Ts);
|
|
13874
13874
|
const ow = Ts > -1 ? 1 : 0;
|
|
13875
|
-
Bt.glyphOffsetArray.length >= vs.MAX_GLYPHS && Ze("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Ai.sortKey !== void 0 && Bt.addToSortKeyRanges(Bt.symbolInstances.length, Ai.sortKey), Bt.symbolInstances.emplaceBack(_a.x, _a.y, _a.z, gt.x, gt.y,
|
|
13875
|
+
Bt.glyphOffsetArray.length >= vs.MAX_GLYPHS && Ze("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Ai.sortKey !== void 0 && Bt.addToSortKeyRanges(Bt.symbolInstances.length, Ai.sortKey), Bt.symbolInstances.emplaceBack(_a.x, _a.y, _a.z, gt.x, gt.y, So.right >= 0 ? So.right : -1, So.center >= 0 ? So.center : -1, So.left >= 0 ? So.left : -1, So.vertical >= 0 ? So.vertical : -1, bf, wf, by, On !== void 0 ? On : Bt.collisionBoxArray.length, On !== void 0 ? On + 1 : Bt.collisionBoxArray.length, rr !== void 0 ? rr : Bt.collisionBoxArray.length, rr !== void 0 ? rr + 1 : Bt.collisionBoxArray.length, Bn !== void 0 ? Bn : Bt.collisionBoxArray.length, Bn !== void 0 ? Bn + 1 : Bt.collisionBoxArray.length, Nn || Bt.collisionBoxArray.length, Nn ? Nn + 1 : Bt.collisionBoxArray.length, $i, vy, xy, uu, yy, ow, 0, Tf, Ef, Ts);
|
|
13876
13876
|
})(t, mt, xt, Pe, i, r, a, Ye, t.layers[0], t.collisionBoxArray, e.index, e.sourceLayerIndex, t.index, he, Ce, _, 0, ce, Ne, O, e, c, y, T, C);
|
|
13877
13877
|
};
|
|
13878
13878
|
if (et === "line")
|
|
@@ -13964,7 +13964,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13964
13964
|
return Ve;
|
|
13965
13965
|
}(0, r, _, c, h, p, a, t.allowVerticalPlacement), le = t.textSizeData;
|
|
13966
13966
|
let ee = null;
|
|
13967
|
-
le.kind === "source" ? (ee = [
|
|
13967
|
+
le.kind === "source" ? (ee = [xo * c.layout.get("text-size").evaluate(p, {}, j)], ee[0] > gs && Ze(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)) : le.kind === "composite" && (ee = [xo * L.compositeTextSizes[0].evaluate(p, {}, j), xo * L.compositeTextSizes[1].evaluate(p, {}, j)], (ee[0] > gs || ee[1] > gs) && Ze(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)), t.addSymbols(t.text, te, ee, _, h, p, T, e, i, y.lineStartIndex, y.lineLength, R, O, j);
|
|
13968
13968
|
for (const oe of C)
|
|
13969
13969
|
A[oe] = t.text.placedSymbolArray.length - 1;
|
|
13970
13970
|
return 4 * te.length;
|
|
@@ -14002,33 +14002,33 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14002
14002
|
}
|
|
14003
14003
|
const Ib = At([{ type: "Float32", name: "a_globe_pos", components: 3 }, { type: "Float32", name: "a_uv", components: 2 }]), { members: zg } = Ib, Og = At([{ name: "a_pos_3", components: 3, type: "Int16" }]);
|
|
14004
14004
|
var Qc = At([{ name: "a_pos", type: "Int16", components: 2 }]);
|
|
14005
|
-
const qo = Yt / Math.PI / 2, sf = 2 *
|
|
14005
|
+
const qo = Yt / Math.PI / 2, sf = 2 * Gr(1, 0) * qo * Math.PI, El = 64, Sl = [El, 32, 16], qr = -qo, Wr = qo, Rb = [new ir([qr, qr, qr], [Wr, Wr, Wr]), new ir([qr, qr, qr], [0, 0, Wr]), new ir([0, qr, qr], [Wr, 0, Wr]), new ir([qr, 0, qr], [0, Wr, Wr]), new ir([0, 0, qr], [Wr, Wr, Wr])];
|
|
14006
14006
|
function Bg(t, e, i, r = !0) {
|
|
14007
|
-
const a =
|
|
14007
|
+
const a = Dr([], t._camera.position, t.worldSize), c = [e, i, 1, 1];
|
|
14008
14008
|
ha(c, c, t.pixelMatrixInverse), M_(c, c, 1 / c[3]);
|
|
14009
|
-
const h = tr([],
|
|
14009
|
+
const h = tr([], ao([], c, a)), p = t.globeMatrix, _ = [p[12], p[13], p[14]], y = ao([], _, a), T = Pc(y), C = tr([], y), A = t.worldSize / (2 * Math.PI), R = Zr(C, h), L = Math.asin(A / T);
|
|
14010
14010
|
if (L < Math.acos(R)) {
|
|
14011
14011
|
if (!r)
|
|
14012
14012
|
return null;
|
|
14013
14013
|
const et = [], ke = [];
|
|
14014
|
-
|
|
14014
|
+
Dr(et, h, T / R), tr(ke, ao(ke, et, y)), tr(h, $o(h, y, Dr(h, ke, Math.tan(L) * T)));
|
|
14015
14015
|
}
|
|
14016
14016
|
const O = [];
|
|
14017
14017
|
new Bp(a, h).closestPointOnSphere(_, A, O);
|
|
14018
|
-
const j = tr([], fn(p, 0)), te = tr([], fn(p, 1)), le = tr([], fn(p, 2)), ee =
|
|
14018
|
+
const j = tr([], fn(p, 0)), te = tr([], fn(p, 1)), le = tr([], fn(p, 2)), ee = Zr(j, O), oe = Zr(te, O), he = Zr(le, O), ce = ht(Math.asin(-oe / A));
|
|
14019
14019
|
let Me = ht(Math.atan2(ee, he));
|
|
14020
14020
|
Me = t.center.lng + function(et, ke) {
|
|
14021
14021
|
const Ve = (ke - et + 180) % 360 - 180;
|
|
14022
14022
|
return Ve < -180 ? Ve + 360 : Ve;
|
|
14023
14023
|
}(t.center.lng, Me);
|
|
14024
|
-
const Ce =
|
|
14024
|
+
const Ce = go(Me), Ne = Ft(yo(ce), 0, 1);
|
|
14025
14025
|
return new dl(Ce, Ne);
|
|
14026
14026
|
}
|
|
14027
14027
|
class Db {
|
|
14028
14028
|
constructor(e, i, r) {
|
|
14029
|
-
this.a =
|
|
14029
|
+
this.a = ao([], e, r), this.b = ao([], i, r), this.center = r;
|
|
14030
14030
|
const a = tr([], this.a), c = tr([], this.b);
|
|
14031
|
-
this.angle = Math.acos(
|
|
14031
|
+
this.angle = Math.acos(Zr(a, c));
|
|
14032
14032
|
}
|
|
14033
14033
|
}
|
|
14034
14034
|
function af(t, e) {
|
|
@@ -14040,30 +14040,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14040
14040
|
return r * (Math.sin((1 - h) * c) / p) + a * (Math.sin(h * c) / p);
|
|
14041
14041
|
}(t.a[e], t.b[e], t.angle, Ft(i, 0, 1)) + t.center[e];
|
|
14042
14042
|
}
|
|
14043
|
-
function
|
|
14043
|
+
function bo(t) {
|
|
14044
14044
|
if (t.z <= 1)
|
|
14045
14045
|
return Rb[t.z + 2 * t.y + t.x];
|
|
14046
14046
|
const e = lf(ad(t));
|
|
14047
14047
|
return ir.fromPoints(e);
|
|
14048
14048
|
}
|
|
14049
14049
|
function pa(t, e, i) {
|
|
14050
|
-
return
|
|
14050
|
+
return Dr(t, t, 1 - i), Bc(t, t, e, i);
|
|
14051
14051
|
}
|
|
14052
14052
|
function Ng(t, e) {
|
|
14053
14053
|
const i = Al(e.zoom);
|
|
14054
14054
|
if (i === 0)
|
|
14055
|
-
return
|
|
14056
|
-
const r = ad(t), a = lf(r), c =
|
|
14055
|
+
return bo(t);
|
|
14056
|
+
const r = ad(t), a = lf(r), c = go(r.getWest()) * e.worldSize, h = go(r.getEast()) * e.worldSize, p = yo(r.getNorth()) * e.worldSize, _ = yo(r.getSouth()) * e.worldSize, y = [c, p, 0], T = [h, p, 0], C = [c, _, 0], A = [h, _, 0], R = Lp([], e.globeMatrix);
|
|
14057
14057
|
return gn(y, y, R), gn(T, T, R), gn(C, C, R), gn(A, A, R), a[0] = pa(a[0], C, i), a[1] = pa(a[1], A, i), a[2] = pa(a[2], T, i), a[3] = pa(a[3], y, i), ir.fromPoints(a);
|
|
14058
14058
|
}
|
|
14059
14059
|
function Fg(t, e, i) {
|
|
14060
14060
|
for (const r of t)
|
|
14061
|
-
gn(r, r, e),
|
|
14061
|
+
gn(r, r, e), Dr(r, r, i);
|
|
14062
14062
|
}
|
|
14063
14063
|
function Lb(t, e, i) {
|
|
14064
14064
|
const r = e / t.worldSize, a = t.globeMatrix;
|
|
14065
14065
|
if (i.z <= 1) {
|
|
14066
|
-
const Ce =
|
|
14066
|
+
const Ce = bo(i).getCorners();
|
|
14067
14067
|
return Fg(Ce, a, r), ir.fromPoints(Ce);
|
|
14068
14068
|
}
|
|
14069
14069
|
const c = ad(i), h = lf(c);
|
|
@@ -14076,9 +14076,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14076
14076
|
const Ce = t.point, Ne = [Ce.x * r, Ce.y * r, 0];
|
|
14077
14077
|
return zc(y, y, Ne), Oc(_, _, Ne), new ir(y, _);
|
|
14078
14078
|
}
|
|
14079
|
-
const T = [a[12] * r, a[13] * r, a[14] * r], C = c.getCenter(), A = Ft(t.center.lat, -85.051129,
|
|
14080
|
-
let j = L -
|
|
14081
|
-
const te = O -
|
|
14079
|
+
const T = [a[12] * r, a[13] * r, a[14] * r], C = c.getCenter(), A = Ft(t.center.lat, -85.051129, vo), R = Ft(C.lat, -85.051129, vo), L = go(t.center.lng), O = yo(A);
|
|
14080
|
+
let j = L - go(C.lng);
|
|
14081
|
+
const te = O - yo(R);
|
|
14082
14082
|
j > 0.5 ? j -= 1 : j < -0.5 && (j += 1);
|
|
14083
14083
|
let le = 0;
|
|
14084
14084
|
Math.abs(j) > Math.abs(te) ? le = j >= 0 ? 1 : 3 : (le = te >= 0 ? 0 : 2, Bc(T, T, [a[4] * r, a[5] * r, a[6] * r], -Math.sin(Xe(te >= 0 ? c.getSouth() : c.getNorth())) * qo));
|
|
@@ -14093,14 +14093,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14093
14093
|
for (let et = 0; et < h.length; et++)
|
|
14094
14094
|
pa(h[et], Ce[et], Me);
|
|
14095
14095
|
const Ne = $o([], Ce[le], Ce[(le + 1) % 4]);
|
|
14096
|
-
|
|
14096
|
+
Dr(Ne, Ne, 0.5), pa(ce, Ne, Me);
|
|
14097
14097
|
}
|
|
14098
14098
|
for (const Ce of h)
|
|
14099
14099
|
zc(y, y, Ce), Oc(_, _, Ce);
|
|
14100
14100
|
return y[2] = Math.min(ee[2], oe[2]), zc(y, y, ce), Oc(_, _, ce), new ir(y, _);
|
|
14101
14101
|
}
|
|
14102
14102
|
function ad({ x: t, y: e, z: i }) {
|
|
14103
|
-
const r = 1 / (1 << i), a = new Ei(
|
|
14103
|
+
const r = 1 / (1 << i), a = new Ei(Rr(t * r), Gn((e + 1) * r)), c = new Ei(Rr((t + 1) * r), Gn(e * r));
|
|
14104
14104
|
return new _s(a, c);
|
|
14105
14105
|
}
|
|
14106
14106
|
function lf(t) {
|
|
@@ -14115,7 +14115,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14115
14115
|
}
|
|
14116
14116
|
function tu(t, e, i, r) {
|
|
14117
14117
|
const a = 1 << i.z, c = (t / Yt + i.x) / a;
|
|
14118
|
-
return eu(Gn((e / Yt + i.y) / a),
|
|
14118
|
+
return eu(Gn((e / Yt + i.y) / a), Rr(c), r);
|
|
14119
14119
|
}
|
|
14120
14120
|
function ld({ min: t, max: e }) {
|
|
14121
14121
|
return 16383 / Math.max(e[0] - t[0], e[1] - t[1], e[2] - t[2]);
|
|
@@ -14136,7 +14136,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14136
14136
|
const c = function(_) {
|
|
14137
14137
|
const y = Yt / (2 * Math.PI);
|
|
14138
14138
|
return _ / (2 * Math.PI) / y;
|
|
14139
|
-
}(i), h = [t, e, -i / (2 * Math.PI)], p =
|
|
14139
|
+
}(i), h = [t, e, -i / (2 * Math.PI)], p = so(new Float64Array(16));
|
|
14140
14140
|
return kc(p, p, h), ua(p, p, [c, c, c]), kp(p, p, Xe(-a)), Vh(p, p, Xe(-r)), p;
|
|
14141
14141
|
}
|
|
14142
14142
|
function Al(t) {
|
|
@@ -14149,9 +14149,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14149
14149
|
const te = E_([], -L.angle, O);
|
|
14150
14150
|
j = gn(j, j, te), E_(te, -L._pitch, j);
|
|
14151
14151
|
const le = tr([], O);
|
|
14152
|
-
return
|
|
14152
|
+
return Dr(le, le, L.cameraToCenterDistance / L.pixelsPerMeter * sf), gn(le, le, te), $o([], O, le);
|
|
14153
14153
|
}(t);
|
|
14154
|
-
return h = (a = zp([], r, i))[0], p = a[1], _ = a[2], y = (c = i)[0], T = c[1], C = c[2], R = (A = Math.sqrt(h * h + p * p + _ * _) * Math.sqrt(y * y + T * T + C * C)) &&
|
|
14154
|
+
return h = (a = zp([], r, i))[0], p = a[1], _ = a[2], y = (c = i)[0], T = c[1], C = c[2], R = (A = Math.sqrt(h * h + p * p + _ * _) * Math.sqrt(y * y + T * T + C * C)) && Zr(a, c) / A, Math.acos(Math.min(Math.max(R, -1), 1));
|
|
14155
14155
|
var a, c, h, p, _, y, T, C, A, R;
|
|
14156
14156
|
}
|
|
14157
14157
|
function uf(t, e) {
|
|
@@ -14165,18 +14165,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14165
14165
|
function fa(t, e) {
|
|
14166
14166
|
if (!e.isReprojectedInTileSpace)
|
|
14167
14167
|
return { scale: 1 << t.z, x: t.x, y: t.y, x2: t.x + 1, y2: t.y + 1, projection: e };
|
|
14168
|
-
const i = Math.pow(2, -t.z), r = t.x * i, a = (t.x + 1) * i, c = t.y * i, h = (t.y + 1) * i, p =
|
|
14168
|
+
const i = Math.pow(2, -t.z), r = t.x * i, a = (t.x + 1) * i, c = t.y * i, h = (t.y + 1) * i, p = Rr(r), _ = Rr(a), y = Gn(c), T = Gn(h), C = e.project(p, y), A = e.project(_, y), R = e.project(_, T), L = e.project(p, T);
|
|
14169
14169
|
let O = Math.min(C.x, A.x, R.x, L.x), j = Math.min(C.y, A.y, R.y, L.y), te = Math.max(C.x, A.x, R.x, L.x), le = Math.max(C.y, A.y, R.y, L.y);
|
|
14170
14170
|
const ee = i / 16;
|
|
14171
14171
|
function oe(ce, Me, Ce, Ne, et, ke) {
|
|
14172
|
-
const Ve = (Ce + et) / 2, qe = (Ne + ke) / 2, Ye = e.project(
|
|
14172
|
+
const Ve = (Ce + et) / 2, qe = (Ne + ke) / 2, Ye = e.project(Rr(Ve), Gn(qe)), tt = Math.max(0, O - Ye.x, j - Ye.y, Ye.x - te, Ye.y - le);
|
|
14173
14173
|
O = Math.min(O, Ye.x), te = Math.max(te, Ye.x), j = Math.min(j, Ye.y), le = Math.max(le, Ye.y), tt > ee && (oe(ce, Ye, Ce, Ne, Ve, qe), oe(Ye, Me, Ve, qe, et, ke));
|
|
14174
14174
|
}
|
|
14175
14175
|
oe(C, A, r, c, a, c), oe(A, R, a, c, a, h), oe(R, L, a, h, r, h), oe(L, C, r, h, r, c), O -= ee, j -= ee, te += ee, le += ee;
|
|
14176
14176
|
const he = 1 / Math.max(te - O, le - j);
|
|
14177
14177
|
return { scale: he, x: O * he, y: j * he, x2: te * he, y2: le * he, projection: e };
|
|
14178
14178
|
}
|
|
14179
|
-
const zb =
|
|
14179
|
+
const zb = so(new Float32Array(16));
|
|
14180
14180
|
class ys {
|
|
14181
14181
|
constructor(e) {
|
|
14182
14182
|
this.spec = e, this.name = e.name, this.wrap = !1, this.requiresDraping = !1, this.supportsWorldCopies = !1, this.supportsTerrain = !1, this.supportsFog = !1, this.supportsFreeCamera = !1, this.zAxisUnit = "meters", this.isReprojectedInTileSpace = !0, this.unsupportedLayers = ["custom"], this.center = [0, 0], this.range = [3.5, 7];
|
|
@@ -14194,7 +14194,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14194
14194
|
return e._coordinatePoint(e.locationCoordinate(i), r);
|
|
14195
14195
|
}
|
|
14196
14196
|
pixelsPerMeter(e, i) {
|
|
14197
|
-
return
|
|
14197
|
+
return Gr(1, e) * i;
|
|
14198
14198
|
}
|
|
14199
14199
|
pixelSpaceConversion(e, i, r) {
|
|
14200
14200
|
return 1;
|
|
@@ -14226,7 +14226,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14226
14226
|
}
|
|
14227
14227
|
createTileMatrix(e, i, r) {
|
|
14228
14228
|
let a, c, h;
|
|
14229
|
-
const p = r.canonical, _ =
|
|
14229
|
+
const p = r.canonical, _ = so(new Float64Array(16));
|
|
14230
14230
|
if (this.isReprojectedInTileSpace) {
|
|
14231
14231
|
const y = fa(p, this);
|
|
14232
14232
|
a = 1, c = y.x + r.wrap * y.scale, h = y.y, ua(_, _, [a / y.scale, a / y.scale, e.pixelsPerMeter / i]);
|
|
@@ -14257,7 +14257,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14257
14257
|
h * r < 0 && (p -= Math.PI * Math.sign(e) * Math.sign(h));
|
|
14258
14258
|
const _ = Xe(this.center[0]) * r;
|
|
14259
14259
|
p = Pi(p, -Math.PI - _, Math.PI - _);
|
|
14260
|
-
const y = Ft(ht(p / r) + this.center[0], -180, 180), T = Math.asin(Ft((a - (e * e + h * h) * r * r) / (2 * r), -1, 1)), C = Ft(ht(T), -85.051129,
|
|
14260
|
+
const y = Ft(ht(p / r) + this.center[0], -180, 180), T = Math.asin(Ft((a - (e * e + h * h) * r * r) / (2 * r), -1, 1)), C = Ft(ht(T), -85.051129, vo);
|
|
14261
14261
|
return new Ei(y, C);
|
|
14262
14262
|
}
|
|
14263
14263
|
}
|
|
@@ -14273,7 +14273,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14273
14273
|
let r = i = (2 * (1 - i) - 1) * Math.PI, a = r * r, c = a * a * a;
|
|
14274
14274
|
for (let T, C, A, R = 0; R < 12 && (C = r * (nu + ru * a + c * (ou + su * a)) - i, A = nu + 3 * ru * a + c * (7 * ou + 9 * su * a), T = C / A, r = Ft(r - T, -Math.PI / 3, Math.PI / 3), a = r * r, c = a * a * a, !(Math.abs(T) < 1e-12)); ++R)
|
|
14275
14275
|
;
|
|
14276
|
-
const h = cd * e * (nu + 3 * ru * a + c * (7 * ou + 9 * su * a)) / Math.cos(r), p = Math.asin(Math.sin(r) / cd), _ = Ft(180 * h / Math.PI, -180, 180), y = Ft(180 * p / Math.PI, -85.051129,
|
|
14276
|
+
const h = cd * e * (nu + 3 * ru * a + c * (7 * ou + 9 * su * a)) / Math.cos(r), p = Math.asin(Math.sin(r) / cd), _ = Ft(180 * h / Math.PI, -180, 180), y = Ft(180 * p / Math.PI, -85.051129, vo);
|
|
14277
14277
|
return new Ei(_, y);
|
|
14278
14278
|
}
|
|
14279
14279
|
}
|
|
@@ -14285,7 +14285,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14285
14285
|
return { x: 0.5 + e / 360, y: 0.5 - i / 360, z: 0 };
|
|
14286
14286
|
}
|
|
14287
14287
|
unproject(e, i) {
|
|
14288
|
-
const r = 360 * (e - 0.5), a = Ft(360 * (0.5 - i), -85.051129,
|
|
14288
|
+
const r = 360 * (e - 0.5), a = Ft(360 * (0.5 - i), -85.051129, vo);
|
|
14289
14289
|
return new Ei(r, a);
|
|
14290
14290
|
}
|
|
14291
14291
|
}
|
|
@@ -14315,7 +14315,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14315
14315
|
const { n: r, f: a } = this, c = a - i, h = Math.sign(c), p = Math.sign(r) * Math.sqrt(e * e + c * c);
|
|
14316
14316
|
let _ = Math.atan2(e, Math.abs(c)) * h;
|
|
14317
14317
|
c * r < 0 && (_ -= Math.PI * Math.sign(e) * h);
|
|
14318
|
-
const y = Ft(ht(_ / r) + this.center[0], -180, 180), T = Ft(ht(2 * Math.atan(Math.pow(a / p, 1 / r)) - Ml), -85.051129,
|
|
14318
|
+
const y = Ft(ht(_ / r) + this.center[0], -180, 180), T = Ft(ht(2 * Math.atan(Math.pow(a / p, 1 / r)) - Ml), -85.051129, vo);
|
|
14319
14319
|
return new Ei(y, this.southernCenter ? -T : T);
|
|
14320
14320
|
}
|
|
14321
14321
|
}
|
|
@@ -14324,14 +14324,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14324
14324
|
super(e), this.wrap = !0, this.supportsWorldCopies = !0, this.supportsTerrain = !0, this.supportsFog = !0, this.supportsFreeCamera = !0, this.isReprojectedInTileSpace = !1, this.unsupportedLayers = [], this.range = null;
|
|
14325
14325
|
}
|
|
14326
14326
|
project(e, i) {
|
|
14327
|
-
return { x:
|
|
14327
|
+
return { x: go(e), y: yo(i), z: 0 };
|
|
14328
14328
|
}
|
|
14329
14329
|
unproject(e, i) {
|
|
14330
|
-
const r =
|
|
14330
|
+
const r = Rr(e), a = Gn(i);
|
|
14331
14331
|
return new Ei(r, a);
|
|
14332
14332
|
}
|
|
14333
14333
|
}
|
|
14334
|
-
const qg = Xe(
|
|
14334
|
+
const qg = Xe(vo);
|
|
14335
14335
|
class Ub extends ys {
|
|
14336
14336
|
project(e, i) {
|
|
14337
14337
|
const r = (i = Xe(i)) * i, a = r * r;
|
|
@@ -14350,7 +14350,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14350
14350
|
return new Ei(p, _);
|
|
14351
14351
|
}
|
|
14352
14352
|
}
|
|
14353
|
-
const Wg = Xe(
|
|
14353
|
+
const Wg = Xe(vo);
|
|
14354
14354
|
class jb extends ys {
|
|
14355
14355
|
project(e, i) {
|
|
14356
14356
|
i = Xe(i), e = Xe(e);
|
|
@@ -14377,7 +14377,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14377
14377
|
return { x: Xe(e) * a * r + 0.5, y: -Math.sin(Xe(i)) / a * r + 0.5, z: 0 };
|
|
14378
14378
|
}
|
|
14379
14379
|
unproject(e, i) {
|
|
14380
|
-
const { scale: r, cosPhi: a } = this, c = -(i - 0.5) / r, h = Ft(ht((e - 0.5) / r) / a, -180, 180), p = Math.asin(Ft(c * a, -1, 1)), _ = Ft(ht(p), -85.051129,
|
|
14380
|
+
const { scale: r, cosPhi: a } = this, c = -(i - 0.5) / r, h = Ft(ht((e - 0.5) / r) / a, -180, 180), p = Math.asin(Ft(c * a, -1, 1)), _ = Ft(ht(p), -85.051129, vo);
|
|
14381
14381
|
return new Ei(h, _);
|
|
14382
14382
|
}
|
|
14383
14383
|
}
|
|
@@ -14387,27 +14387,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14387
14387
|
}
|
|
14388
14388
|
projectTilePoint(e, i, r) {
|
|
14389
14389
|
const a = tu(e, i, r);
|
|
14390
|
-
return gn(a, a, iu(
|
|
14390
|
+
return gn(a, a, iu(bo(r))), { x: a[0], y: a[1], z: a[2] };
|
|
14391
14391
|
}
|
|
14392
14392
|
locationPoint(e, i) {
|
|
14393
14393
|
const r = eu(i.lat, i.lng), a = tr([], r), c = e.elevation ? e.elevation.getAtPointOrZero(e.locationCoordinate(i), e._centerAltitude) : e._centerAltitude;
|
|
14394
|
-
Bc(r, r, a,
|
|
14395
|
-
const h =
|
|
14394
|
+
Bc(r, r, a, Gr(1, 0) * Yt * c);
|
|
14395
|
+
const h = so(new Float64Array(16));
|
|
14396
14396
|
return ca(h, e.pixelMatrix, e.globeMatrix), gn(r, r, h), new pe(r[0], r[1]);
|
|
14397
14397
|
}
|
|
14398
14398
|
pixelsPerMeter(e, i) {
|
|
14399
|
-
return
|
|
14399
|
+
return Gr(1, 0) * i;
|
|
14400
14400
|
}
|
|
14401
14401
|
pixelSpaceConversion(e, i, r) {
|
|
14402
|
-
const a =
|
|
14402
|
+
const a = Gr(1, e) * i, c = Si(Gr(1, 45) * i, a, r);
|
|
14403
14403
|
return this.pixelsPerMeter(e, i) / c;
|
|
14404
14404
|
}
|
|
14405
14405
|
createTileMatrix(e, i, r) {
|
|
14406
|
-
const a = cf(
|
|
14406
|
+
const a = cf(bo(r.canonical));
|
|
14407
14407
|
return ca(new Float64Array(16), e.globeMatrix, a);
|
|
14408
14408
|
}
|
|
14409
14409
|
createInversionMatrix(e, i) {
|
|
14410
|
-
const { center: r } = e, a = iu(
|
|
14410
|
+
const { center: r } = e, a = iu(bo(i));
|
|
14411
14411
|
return Vh(a, a, Xe(r.lng)), kp(a, a, Xe(r.lat)), ua(a, a, [e._pixelsPerMercatorPixel, e._pixelsPerMercatorPixel, 1]), Float32Array.from(a);
|
|
14412
14412
|
}
|
|
14413
14413
|
pointCoordinate(e, i, r, a) {
|
|
@@ -14422,23 +14422,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14422
14422
|
}
|
|
14423
14423
|
farthestPixelDistance(e) {
|
|
14424
14424
|
const i = function(a, c) {
|
|
14425
|
-
const h = a.cameraToCenterDistance, p = a._centerAltitude * c, _ = a._camera, y = a._camera.forward(), T = $o([],
|
|
14425
|
+
const h = a.cameraToCenterDistance, p = a._centerAltitude * c, _ = a._camera, y = a._camera.forward(), T = $o([], Dr([], y, -h), [0, 0, p]), C = a.worldSize / (2 * Math.PI), A = [0, 0, -C], R = a.width / a.height, L = Math.tan(a.fovAboveCenter), O = Dr([], _.up(), L), j = Dr([], _.right(), L * R), te = tr([], $o([], $o([], y, O), j)), le = [];
|
|
14426
14426
|
let ee;
|
|
14427
14427
|
if (new Bp(T, te).closestPointOnSphere(A, C, le)) {
|
|
14428
|
-
const oe = $o([], le, A), he =
|
|
14428
|
+
const oe = $o([], le, A), he = ao([], oe, T);
|
|
14429
14429
|
ee = Math.cos(a.fovAboveCenter) * Pc(he);
|
|
14430
14430
|
} else {
|
|
14431
|
-
const oe =
|
|
14431
|
+
const oe = ao([], T, A), he = ao([], A, T);
|
|
14432
14432
|
tr(he, he);
|
|
14433
14433
|
const ce = Pc(oe) - C;
|
|
14434
14434
|
ee = Math.sqrt(ce * (ce + 2 * C));
|
|
14435
|
-
const Me = Math.acos(ee / (C + ce)) - Math.acos(
|
|
14435
|
+
const Me = Math.acos(ee / (C + ce)) - Math.acos(Zr(y, he));
|
|
14436
14436
|
ee *= Math.cos(Me);
|
|
14437
14437
|
}
|
|
14438
14438
|
return 1.01 * ee;
|
|
14439
14439
|
}(e, this.pixelsPerMeter(e.center.lat, e.worldSize)), r = Al(e.zoom);
|
|
14440
14440
|
if (r > 0) {
|
|
14441
|
-
const a = Gg(e,
|
|
14441
|
+
const a = Gg(e, Gr(1, e.center.lat) * e.worldSize), c = e.worldSize / (2 * Math.PI), h = Math.max(e.width, e.height) / e.worldSize * Math.PI;
|
|
14442
14442
|
return Si(i, a + c * (1 - Math.cos(h)), Math.pow(r, 10));
|
|
14443
14443
|
}
|
|
14444
14444
|
return i;
|
|
@@ -14447,7 +14447,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14447
14447
|
return tu(i, r, e, 1);
|
|
14448
14448
|
}
|
|
14449
14449
|
upVectorScale(e) {
|
|
14450
|
-
return { metersToTile: sf * ld(
|
|
14450
|
+
return { metersToTile: sf * ld(bo(e)) };
|
|
14451
14451
|
}
|
|
14452
14452
|
}
|
|
14453
14453
|
function Xg(t) {
|
|
@@ -14506,7 +14506,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14506
14506
|
It(hf, "SymbolBuffers");
|
|
14507
14507
|
class df {
|
|
14508
14508
|
constructor(e, i, r) {
|
|
14509
|
-
this.layoutVertexArray = new e(), this.layoutAttributes = i, this.indexArray = new r(), this.segments = new Sn(), this.collisionVertexArray = new ra(), this.collisionVertexArrayExt = new
|
|
14509
|
+
this.layoutVertexArray = new e(), this.layoutAttributes = i, this.indexArray = new r(), this.segments = new Sn(), this.collisionVertexArray = new ra(), this.collisionVertexArrayExt = new no();
|
|
14510
14510
|
}
|
|
14511
14511
|
upload(e) {
|
|
14512
14512
|
this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, Yx.members, !0), this.collisionVertexBufferExt = e.createVertexBuffer(this.collisionVertexArrayExt, Kx.members, !0);
|
|
@@ -14518,11 +14518,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14518
14518
|
It(df, "CollisionBuffers");
|
|
14519
14519
|
class vs {
|
|
14520
14520
|
constructor(e) {
|
|
14521
|
-
this.collisionBoxArray = e.collisionBoxArray, this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((h) => h.id), this.index = e.index, this.pixelRatio = e.pixelRatio, this.sourceLayerIndex = e.sourceLayerIndex, this.hasPattern = !1, this.hasRTLText = !1, this.fullyClipped = !1, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix =
|
|
14521
|
+
this.collisionBoxArray = e.collisionBoxArray, this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((h) => h.id), this.index = e.index, this.pixelRatio = e.pixelRatio, this.sourceLayerIndex = e.sourceLayerIndex, this.hasPattern = !1, this.hasRTLText = !1, this.fullyClipped = !1, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = so([]), this.placementViewportMatrix = so([]);
|
|
14522
14522
|
const i = this.layers[0]._unevaluatedLayout._values;
|
|
14523
14523
|
this.textSizeData = Xp(this.zoom, i["text-size"]), this.iconSizeData = Xp(this.zoom, i["icon-size"]);
|
|
14524
14524
|
const r = this.layers[0].layout, a = r.get("symbol-sort-key"), c = r.get("symbol-z-order");
|
|
14525
|
-
this.canOverlap = r.get("text-allow-overlap") || r.get("icon-allow-overlap") || r.get("text-ignore-placement") || r.get("icon-ignore-placement"), this.sortFeaturesByKey = c !== "viewport-y" && a.constantOr(1) !== void 0, this.sortFeaturesByY = (c === "viewport-y" || c === "auto" && !this.sortFeaturesByKey) && this.canOverlap, this.writingModes = r.get("text-writing-mode").map((h) =>
|
|
14525
|
+
this.canOverlap = r.get("text-allow-overlap") || r.get("icon-allow-overlap") || r.get("text-ignore-placement") || r.get("icon-ignore-placement"), this.sortFeaturesByKey = c !== "viewport-y" && a.constantOr(1) !== void 0, this.sortFeaturesByY = (c === "viewport-y" || c === "auto" && !this.sortFeaturesByKey) && this.canOverlap, this.writingModes = r.get("text-writing-mode").map((h) => Lr[h]), this.stateDependentLayerIds = this.layers.filter((h) => h.isStateDependent()).map((h) => h.id), this.sourceID = e.sourceID, this.projection = e.projection;
|
|
14526
14526
|
}
|
|
14527
14527
|
createArrays() {
|
|
14528
14528
|
this.text = new hf(new sa(this.layers, this.zoom, (e) => /^text/.test(e))), this.icon = new hf(new sa(this.layers, this.zoom, (e) => /^icon/.test(e))), this.glyphOffsetArray = new Km(), this.lineVertexArray = new Jm(), this.symbolInstances = new Ym();
|
|
@@ -14544,7 +14544,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14544
14544
|
if (!c._featureFilter.filter(te, Me, r))
|
|
14545
14545
|
continue;
|
|
14546
14546
|
if (ce || (Me.geometry = jo(le, r, a)), p && le.type !== 1 && r.z <= 5) {
|
|
14547
|
-
const ke = Me.geometry, Ve = 0.98078528056, qe = (Ye, tt) =>
|
|
14547
|
+
const ke = Me.geometry, Ve = 0.98078528056, qe = (Ye, tt) => Zr(tu(Ye.x, Ye.y, r, 1), tu(tt.x, tt.y, r, 1)) < Ve;
|
|
14548
14548
|
for (let Ye = 0; Ye < ke.length; Ye++)
|
|
14549
14549
|
ke[Ye] = Zv(ke[Ye], qe);
|
|
14550
14550
|
}
|
|
@@ -14562,7 +14562,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14562
14562
|
const et = this.sortFeaturesByKey ? R.evaluate(Me, {}, r) : void 0;
|
|
14563
14563
|
if (this.features.push({ id: ee, text: Ce, icon: Ne, index: oe, sourceLayerIndex: he, geometry: Me.geometry, properties: le.properties, type: Vb[le.type], sortKey: et }), Ne && (L[Ne.name] = !0), Ce) {
|
|
14564
14564
|
const ke = _.evaluate(Me, {}, r).join(","), Ve = h.get("text-rotation-alignment") === "map" && h.get("symbol-placement") !== "point";
|
|
14565
|
-
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(
|
|
14565
|
+
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(Lr.vertical) >= 0;
|
|
14566
14566
|
for (const qe of Ce.sections)
|
|
14567
14567
|
if (qe.image)
|
|
14568
14568
|
L[qe.image.name] = !0;
|
|
@@ -14635,7 +14635,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14635
14635
|
return { lineStartIndex: r, lineLength: this.lineVertexArray.length - r };
|
|
14636
14636
|
}
|
|
14637
14637
|
addSymbols(e, i, r, a, c, h, p, _, y, T, C, A, R, L) {
|
|
14638
|
-
const O = e.indexArray, j = e.layoutVertexArray, te = e.globeExtVertexArray, le = e.segments.prepareSegment(4 * i.length, j, O, this.canOverlap ? h.sortKey : void 0), ee = this.glyphOffsetArray.length, oe = le.vertexLength, he = this.allowVerticalPlacement && p ===
|
|
14638
|
+
const O = e.indexArray, j = e.layoutVertexArray, te = e.globeExtVertexArray, le = e.segments.prepareSegment(4 * i.length, j, O, this.canOverlap ? h.sortKey : void 0), ee = this.glyphOffsetArray.length, oe = le.vertexLength, he = this.allowVerticalPlacement && p === Lr.vertical ? Math.PI / 2 : 0, ce = h.text && h.text.sections;
|
|
14639
14639
|
for (let Ce = 0; Ce < i.length; Ce++) {
|
|
14640
14640
|
const { tl: Ne, tr: et, bl: ke, br: Ve, tex: qe, pixelOffsetTL: Ye, pixelOffsetBR: tt, minFontScaleX: Pe, minFontScaleY: mt, glyphOffset: Gt, isSDF: xt, sectionIndex: Bt } = i[Ce], gt = le.vertexLength, qt = Gt[1];
|
|
14641
14641
|
if (hd(j, y.x, y.y, Ne.x, qt + Ne.y, qe.x, qe.y, r, xt, Ye.x, Ye.y, Pe, mt), hd(j, y.x, y.y, et.x, qt + et.y, qe.x + qe.w, qe.y, r, xt, tt.x, Ye.y, Pe, mt), hd(j, y.x, y.y, ke.x, qt + ke.y, qe.x, qe.y + qe.h, r, xt, Ye.x, tt.y, Pe, mt), hd(j, y.x, y.y, Ve.x, qt + Ve.y, qe.x + qe.w, qe.y + qe.h, r, xt, tt.x, tt.y, Pe, mt), _) {
|
|
@@ -14672,7 +14672,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14672
14672
|
}
|
|
14673
14673
|
}
|
|
14674
14674
|
generateCollisionDebugBuffers(e, i) {
|
|
14675
|
-
this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new df(qi, lg.members,
|
|
14675
|
+
this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new df(qi, lg.members, Vr), this.iconCollisionBox = new df(qi, lg.members, Vr);
|
|
14676
14676
|
const r = yl(this.iconSizeData, e), a = yl(this.textSizeData, e);
|
|
14677
14677
|
for (let c = 0; c < this.symbolInstances.length; c++) {
|
|
14678
14678
|
const h = this.symbolInstances.get(c);
|
|
@@ -14790,7 +14790,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14790
14790
|
}
|
|
14791
14791
|
It(vs, "SymbolBucket", { omit: ["layers", "collisionBoxArray", "features", "compareText"] }), vs.MAX_GLYPHS = 65535, vs.addDynamicAttributes = pd;
|
|
14792
14792
|
const qb = new jt({ "symbol-placement": new ve(je.layout_symbol["symbol-placement"]), "symbol-spacing": new ve(je.layout_symbol["symbol-spacing"]), "symbol-avoid-edges": new ve(je.layout_symbol["symbol-avoid-edges"]), "symbol-sort-key": new De(je.layout_symbol["symbol-sort-key"]), "symbol-z-order": new ve(je.layout_symbol["symbol-z-order"]), "icon-allow-overlap": new ve(je.layout_symbol["icon-allow-overlap"]), "icon-ignore-placement": new ve(je.layout_symbol["icon-ignore-placement"]), "icon-optional": new ve(je.layout_symbol["icon-optional"]), "icon-rotation-alignment": new ve(je.layout_symbol["icon-rotation-alignment"]), "icon-size": new De(je.layout_symbol["icon-size"]), "icon-text-fit": new ve(je.layout_symbol["icon-text-fit"]), "icon-text-fit-padding": new ve(je.layout_symbol["icon-text-fit-padding"]), "icon-image": new De(je.layout_symbol["icon-image"]), "icon-rotate": new De(je.layout_symbol["icon-rotate"]), "icon-padding": new ve(je.layout_symbol["icon-padding"]), "icon-keep-upright": new ve(je.layout_symbol["icon-keep-upright"]), "icon-offset": new De(je.layout_symbol["icon-offset"]), "icon-anchor": new De(je.layout_symbol["icon-anchor"]), "icon-pitch-alignment": new ve(je.layout_symbol["icon-pitch-alignment"]), "text-pitch-alignment": new ve(je.layout_symbol["text-pitch-alignment"]), "text-rotation-alignment": new ve(je.layout_symbol["text-rotation-alignment"]), "text-field": new De(je.layout_symbol["text-field"]), "text-font": new De(je.layout_symbol["text-font"]), "text-size": new De(je.layout_symbol["text-size"]), "text-max-width": new De(je.layout_symbol["text-max-width"]), "text-line-height": new De(je.layout_symbol["text-line-height"]), "text-letter-spacing": new De(je.layout_symbol["text-letter-spacing"]), "text-justify": new De(je.layout_symbol["text-justify"]), "text-radial-offset": new De(je.layout_symbol["text-radial-offset"]), "text-variable-anchor": new ve(je.layout_symbol["text-variable-anchor"]), "text-anchor": new De(je.layout_symbol["text-anchor"]), "text-max-angle": new ve(je.layout_symbol["text-max-angle"]), "text-writing-mode": new ve(je.layout_symbol["text-writing-mode"]), "text-rotate": new De(je.layout_symbol["text-rotate"]), "text-padding": new ve(je.layout_symbol["text-padding"]), "text-keep-upright": new ve(je.layout_symbol["text-keep-upright"]), "text-transform": new De(je.layout_symbol["text-transform"]), "text-offset": new De(je.layout_symbol["text-offset"]), "text-allow-overlap": new ve(je.layout_symbol["text-allow-overlap"]), "text-ignore-placement": new ve(je.layout_symbol["text-ignore-placement"]), "text-optional": new ve(je.layout_symbol["text-optional"]) });
|
|
14793
|
-
var pf = { paint: new jt({ "icon-opacity": new De(je.paint_symbol["icon-opacity"]), "icon-color": new De(je.paint_symbol["icon-color"]), "icon-halo-color": new De(je.paint_symbol["icon-halo-color"]), "icon-halo-width": new De(je.paint_symbol["icon-halo-width"]), "icon-halo-blur": new De(je.paint_symbol["icon-halo-blur"]), "icon-translate": new ve(je.paint_symbol["icon-translate"]), "icon-translate-anchor": new ve(je.paint_symbol["icon-translate-anchor"]), "text-opacity": new De(je.paint_symbol["text-opacity"]), "text-color": new De(je.paint_symbol["text-color"], { runtimeType:
|
|
14793
|
+
var pf = { paint: new jt({ "icon-opacity": new De(je.paint_symbol["icon-opacity"]), "icon-color": new De(je.paint_symbol["icon-color"]), "icon-halo-color": new De(je.paint_symbol["icon-halo-color"]), "icon-halo-width": new De(je.paint_symbol["icon-halo-width"]), "icon-halo-blur": new De(je.paint_symbol["icon-halo-blur"]), "icon-translate": new ve(je.paint_symbol["icon-translate"]), "icon-translate-anchor": new ve(je.paint_symbol["icon-translate-anchor"]), "text-opacity": new De(je.paint_symbol["text-opacity"]), "text-color": new De(je.paint_symbol["text-color"], { runtimeType: Ir, getOverride: (t) => t.textColor, hasOverride: (t) => !!t.textColor }), "text-halo-color": new De(je.paint_symbol["text-halo-color"]), "text-halo-width": new De(je.paint_symbol["text-halo-width"]), "text-halo-blur": new De(je.paint_symbol["text-halo-blur"]), "text-translate": new ve(je.paint_symbol["text-translate"]), "text-translate-anchor": new ve(je.paint_symbol["text-translate-anchor"]) }), layout: qb };
|
|
14794
14794
|
class Yg {
|
|
14795
14795
|
constructor(e) {
|
|
14796
14796
|
this.type = e.property.overrides ? e.property.overrides.runtimeType : Hn, this.defaultValue = e;
|
|
@@ -14814,7 +14814,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14814
14814
|
}
|
|
14815
14815
|
}
|
|
14816
14816
|
It(Yg, "FormatSectionOverride", { omit: ["defaultValue"] });
|
|
14817
|
-
class fd extends
|
|
14817
|
+
class fd extends oo {
|
|
14818
14818
|
constructor(e) {
|
|
14819
14819
|
super(e, pf);
|
|
14820
14820
|
}
|
|
@@ -14851,7 +14851,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14851
14851
|
continue;
|
|
14852
14852
|
const i = this.paint.get(e), r = new Yg(i), a = new tl(r, i.property.specification);
|
|
14853
14853
|
let c = null;
|
|
14854
|
-
c = i.value.kind === "constant" || i.value.kind === "source" ? new
|
|
14854
|
+
c = i.value.kind === "constant" || i.value.kind === "source" ? new mo("source", a) : new il("composite", a, i.value.zoomStops, i.value._interpolationType), this.paint._values[e] = new He(i.property, c, i.parameters);
|
|
14855
14855
|
}
|
|
14856
14856
|
}
|
|
14857
14857
|
_handleOverridablePaintPropertyUpdate(e, i, r) {
|
|
@@ -14880,7 +14880,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14880
14880
|
}
|
|
14881
14881
|
}
|
|
14882
14882
|
var Wb = { paint: new jt({ "background-color": new ve(je.paint_background["background-color"]), "background-pattern": new ve(je.paint_background["background-pattern"]), "background-opacity": new ve(je.paint_background["background-opacity"]) }) }, Hb = { paint: new jt({ "raster-opacity": new ve(je.paint_raster["raster-opacity"]), "raster-hue-rotate": new ve(je.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new ve(je.paint_raster["raster-brightness-min"]), "raster-brightness-max": new ve(je.paint_raster["raster-brightness-max"]), "raster-saturation": new ve(je.paint_raster["raster-saturation"]), "raster-contrast": new ve(je.paint_raster["raster-contrast"]), "raster-resampling": new ve(je.paint_raster["raster-resampling"]), "raster-fade-duration": new ve(je.paint_raster["raster-fade-duration"]) }) };
|
|
14883
|
-
class Xb extends
|
|
14883
|
+
class Xb extends oo {
|
|
14884
14884
|
constructor(e) {
|
|
14885
14885
|
super(e, {}), this.implementation = e;
|
|
14886
14886
|
}
|
|
@@ -14911,7 +14911,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14911
14911
|
const r = [0, 0, 1], a = D_([]);
|
|
14912
14912
|
return k_(a, a, i ? -Xe(t) + Math.PI : Xe(t)), L_(a, a, -Xe(e)), A_(r, r, a), tr(r, r);
|
|
14913
14913
|
}
|
|
14914
|
-
const Kb = { circle: class extends
|
|
14914
|
+
const Kb = { circle: class extends oo {
|
|
14915
14915
|
constructor(t) {
|
|
14916
14916
|
super(t, Jv);
|
|
14917
14917
|
}
|
|
@@ -14932,7 +14932,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14932
14932
|
getProgramConfiguration(t) {
|
|
14933
14933
|
return new ms(this, t);
|
|
14934
14934
|
}
|
|
14935
|
-
}, heatmap: class extends
|
|
14935
|
+
}, heatmap: class extends oo {
|
|
14936
14936
|
createBucket(t) {
|
|
14937
14937
|
return new O_(t);
|
|
14938
14938
|
}
|
|
@@ -14964,7 +14964,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14964
14964
|
getProgramConfiguration(t) {
|
|
14965
14965
|
return new ms(this, t);
|
|
14966
14966
|
}
|
|
14967
|
-
}, hillshade: class extends
|
|
14967
|
+
}, hillshade: class extends oo {
|
|
14968
14968
|
constructor(t) {
|
|
14969
14969
|
super(t, ax);
|
|
14970
14970
|
}
|
|
@@ -14974,7 +14974,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14974
14974
|
getProgramIds() {
|
|
14975
14975
|
return ["hillshade", "hillshadePrepare"];
|
|
14976
14976
|
}
|
|
14977
|
-
}, fill: class extends
|
|
14977
|
+
}, fill: class extends oo {
|
|
14978
14978
|
constructor(t) {
|
|
14979
14979
|
super(t, Tx);
|
|
14980
14980
|
}
|
|
@@ -15002,7 +15002,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15002
15002
|
isTileClipped() {
|
|
15003
15003
|
return !0;
|
|
15004
15004
|
}
|
|
15005
|
-
}, "fill-extrusion": class extends
|
|
15005
|
+
}, "fill-extrusion": class extends oo {
|
|
15006
15006
|
constructor(t) {
|
|
15007
15007
|
super(t, Fx);
|
|
15008
15008
|
}
|
|
@@ -15091,7 +15091,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15091
15091
|
return Me !== 1 / 0 && Me;
|
|
15092
15092
|
}(te, le, ee.isPointQuery() ? ee.screenBounds : ee.screenGeometry);
|
|
15093
15093
|
}
|
|
15094
|
-
}, line: class extends
|
|
15094
|
+
}, line: class extends oo {
|
|
15095
15095
|
constructor(t) {
|
|
15096
15096
|
super(t, og), this.gradientVersion = 0;
|
|
15097
15097
|
}
|
|
@@ -15152,21 +15152,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15152
15152
|
isTileClipped() {
|
|
15153
15153
|
return !0;
|
|
15154
15154
|
}
|
|
15155
|
-
}, symbol: fd, background: class extends
|
|
15155
|
+
}, symbol: fd, background: class extends oo {
|
|
15156
15156
|
constructor(t) {
|
|
15157
15157
|
super(t, Wb);
|
|
15158
15158
|
}
|
|
15159
15159
|
getProgramIds() {
|
|
15160
15160
|
return [this.paint.get("background-pattern") ? "backgroundPattern" : "background"];
|
|
15161
15161
|
}
|
|
15162
|
-
}, raster: class extends
|
|
15162
|
+
}, raster: class extends oo {
|
|
15163
15163
|
constructor(t) {
|
|
15164
15164
|
super(t, Hb);
|
|
15165
15165
|
}
|
|
15166
15166
|
getProgramIds() {
|
|
15167
15167
|
return ["raster"];
|
|
15168
15168
|
}
|
|
15169
|
-
}, sky: class extends
|
|
15169
|
+
}, sky: class extends oo {
|
|
15170
15170
|
constructor(t) {
|
|
15171
15171
|
super(t, Yb), this._updateColorRamp();
|
|
15172
15172
|
}
|
|
@@ -15336,17 +15336,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15336
15336
|
return e;
|
|
15337
15337
|
}
|
|
15338
15338
|
}
|
|
15339
|
-
const
|
|
15339
|
+
const Hr = 32, wo = 33, xs = new Uint16Array(8184);
|
|
15340
15340
|
for (let t = 0; t < 2046; t++) {
|
|
15341
15341
|
let e = t + 2, i = 0, r = 0, a = 0, c = 0, h = 0, p = 0;
|
|
15342
|
-
for (1 & e ? a = c = h =
|
|
15342
|
+
for (1 & e ? a = c = h = Hr : i = r = p = Hr; (e >>= 1) > 1; ) {
|
|
15343
15343
|
const y = i + a >> 1, T = r + c >> 1;
|
|
15344
15344
|
1 & e ? (a = i, c = r, i = h, r = p) : (i = a, r = c, a = h, c = p), h = y, p = T;
|
|
15345
15345
|
}
|
|
15346
15346
|
const _ = 4 * t;
|
|
15347
15347
|
xs[_ + 0] = i, xs[_ + 1] = r, xs[_ + 2] = a, xs[_ + 3] = c;
|
|
15348
15348
|
}
|
|
15349
|
-
const
|
|
15349
|
+
const To = new Uint16Array(2178), bs = new Uint8Array(1089), md = new Uint16Array(1089);
|
|
15350
15350
|
function Qg(t) {
|
|
15351
15351
|
return t === 0 ? -0.03125 : t === 32 ? 0.03125 : 0;
|
|
15352
15352
|
}
|
|
@@ -15556,35 +15556,35 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15556
15556
|
if (this.isRaster) {
|
|
15557
15557
|
const h = function(p, _) {
|
|
15558
15558
|
const y = fa(p, _), T = Math.pow(2, p.z);
|
|
15559
|
-
for (let j = 0; j <
|
|
15560
|
-
for (let te = 0; te <
|
|
15561
|
-
const le =
|
|
15562
|
-
|
|
15559
|
+
for (let j = 0; j < wo; j++)
|
|
15560
|
+
for (let te = 0; te < wo; te++) {
|
|
15561
|
+
const le = Rr((p.x + (te + Qg(te)) / Hr) / T), ee = Gn((p.y + (j + Qg(j)) / Hr) / T), oe = _.project(le, ee), he = j * wo + te;
|
|
15562
|
+
To[2 * he + 0] = Math.round((oe.x * y.scale - y.x) * Yt), To[2 * he + 1] = Math.round((oe.y * y.scale - y.y) * Yt);
|
|
15563
15563
|
}
|
|
15564
15564
|
bs.fill(0), md.fill(0);
|
|
15565
15565
|
for (let j = 2045; j >= 0; j--) {
|
|
15566
|
-
const te = 4 * j, le = xs[te + 0], ee = xs[te + 1], oe = xs[te + 2], he = xs[te + 3], ce = le + oe >> 1, Me = ee + he >> 1, Ce = ce + Me - ee, Ne = Me + le - ce, et = ee *
|
|
15566
|
+
const te = 4 * j, le = xs[te + 0], ee = xs[te + 1], oe = xs[te + 2], he = xs[te + 3], ce = le + oe >> 1, Me = ee + he >> 1, Ce = ce + Me - ee, Ne = Me + le - ce, et = ee * wo + le, ke = he * wo + oe, Ve = Me * wo + ce, qe = Math.hypot((To[2 * et + 0] + To[2 * ke + 0]) / 2 - To[2 * Ve + 0], (To[2 * et + 1] + To[2 * ke + 1]) / 2 - To[2 * Ve + 1]) >= 16;
|
|
15567
15567
|
if (bs[Ve] = bs[Ve] || (qe ? 1 : 0), j < 1022) {
|
|
15568
|
-
const Ye = (ee + Ne >> 1) *
|
|
15568
|
+
const Ye = (ee + Ne >> 1) * wo + (le + Ce >> 1), tt = (he + Ne >> 1) * wo + (oe + Ce >> 1);
|
|
15569
15569
|
bs[Ve] = bs[Ve] || bs[Ye] || bs[tt];
|
|
15570
15570
|
}
|
|
15571
15571
|
}
|
|
15572
15572
|
const C = new ji(), A = new Vn();
|
|
15573
15573
|
let R = 0;
|
|
15574
15574
|
function L(j, te) {
|
|
15575
|
-
const le = te *
|
|
15576
|
-
return md[le] === 0 && (C.emplaceBack(
|
|
15575
|
+
const le = te * wo + j;
|
|
15576
|
+
return md[le] === 0 && (C.emplaceBack(To[2 * le + 0], To[2 * le + 1], j * Yt / Hr, te * Yt / Hr), md[le] = ++R), md[le] - 1;
|
|
15577
15577
|
}
|
|
15578
15578
|
function O(j, te, le, ee, oe, he) {
|
|
15579
15579
|
const ce = j + le >> 1, Me = te + ee >> 1;
|
|
15580
|
-
if (Math.abs(j - oe) + Math.abs(te - he) > 1 && bs[Me *
|
|
15580
|
+
if (Math.abs(j - oe) + Math.abs(te - he) > 1 && bs[Me * wo + ce])
|
|
15581
15581
|
O(oe, he, j, te, ce, Me), O(le, ee, oe, he, ce, Me);
|
|
15582
15582
|
else {
|
|
15583
15583
|
const Ce = L(j, te), Ne = L(le, ee), et = L(oe, he);
|
|
15584
15584
|
A.emplaceBack(Ce, Ne, et);
|
|
15585
15585
|
}
|
|
15586
15586
|
}
|
|
15587
|
-
return O(0, 0,
|
|
15587
|
+
return O(0, 0, Hr, Hr, Hr, 0), O(Hr, Hr, 0, 0, 0, Hr), { vertices: C, indices: A };
|
|
15588
15588
|
}(this.tileID.canonical, i);
|
|
15589
15589
|
a = h.vertices, c = h.indices;
|
|
15590
15590
|
} else {
|
|
@@ -15608,7 +15608,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15608
15608
|
_globePoint(e, i, r, a, c, h, p) {
|
|
15609
15609
|
let _ = tu(e, i, r);
|
|
15610
15610
|
if (h) {
|
|
15611
|
-
const y = 1 << r.z, T =
|
|
15611
|
+
const y = 1 << r.z, T = go(a.center.lng), C = yo(a.center.lat), A = (r.x + 0.5) / y - T;
|
|
15612
15612
|
let R = 0;
|
|
15613
15613
|
A > 0.5 ? R = -1 : A < -0.5 && (R = 1);
|
|
15614
15614
|
let L = (e / Yt + r.x) / y + R, O = (i / Yt + r.y) / y;
|
|
@@ -16036,19 +16036,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16036
16036
|
}
|
|
16037
16037
|
}
|
|
16038
16038
|
gf.disabled = new gf({ func: 519, mask: 0 }, 0, 0, _f, _f, _f);
|
|
16039
|
-
class
|
|
16039
|
+
class Eo {
|
|
16040
16040
|
constructor(e, i, r) {
|
|
16041
16041
|
this.blendFunction = e, this.blendColor = i, this.mask = r;
|
|
16042
16042
|
}
|
|
16043
16043
|
}
|
|
16044
|
-
|
|
16044
|
+
Eo.Replace = [1, 0], Eo.disabled = new Eo(Eo.Replace, dn.transparent, [!1, !1, !1, !1]), Eo.unblended = new Eo(Eo.Replace, dn.transparent, [!0, !0, !0, !0]), Eo.alphaBlended = new Eo([1, 771], dn.transparent, [!0, !0, !0, !0]);
|
|
16045
16045
|
const yf = 1029, vf = 2305;
|
|
16046
|
-
class
|
|
16046
|
+
class lo {
|
|
16047
16047
|
constructor(e, i, r) {
|
|
16048
16048
|
this.enable = e, this.mode = i, this.frontFace = r;
|
|
16049
16049
|
}
|
|
16050
16050
|
}
|
|
16051
|
-
|
|
16051
|
+
lo.disabled = new lo(!1, yf, vf), lo.backCCW = new lo(!0, yf, vf), lo.backCW = new lo(!0, yf, 2304), lo.frontCW = new lo(!0, 1028, 2304), lo.frontCCW = new lo(!0, 1028, vf);
|
|
16052
16052
|
class ma extends fr {
|
|
16053
16053
|
constructor(e, i, r) {
|
|
16054
16054
|
super(), this.id = e, this._onlySymbols = r, i.on("data", (a) => {
|
|
@@ -16142,14 +16142,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16142
16142
|
_tileLoaded(e, i, r, a) {
|
|
16143
16143
|
if (a)
|
|
16144
16144
|
if (e.state = "errored", a.status !== 404)
|
|
16145
|
-
this._source.fire(new
|
|
16145
|
+
this._source.fire(new co(a, { tile: e }));
|
|
16146
16146
|
else if (this._source.type === "raster-dem" && this.usedForTerrain && this.map.painter.terrain) {
|
|
16147
16147
|
const c = this.map.painter.terrain;
|
|
16148
16148
|
this.update(this.transform, c.getScaledDemTileSize(), !0), c.resetTileLookupCache(this.id);
|
|
16149
16149
|
} else
|
|
16150
16150
|
this.update(this.transform);
|
|
16151
16151
|
else
|
|
16152
|
-
e.timeAdded = Nt.now(), r === "expired" && (e.refreshedUponExpiration = !0), this._setTileReloadTimer(i, e), this._source.type === "raster-dem" && e.dem && this._backfillDEM(e), this._state.initializeTileState(e, this.map ? this.map.painter : null), this._source.fire(new
|
|
16152
|
+
e.timeAdded = Nt.now(), r === "expired" && (e.refreshedUponExpiration = !0), this._setTileReloadTimer(i, e), this._source.type === "raster-dem" && e.dem && this._backfillDEM(e), this._state.initializeTileState(e, this.map ? this.map.painter : null), this._source.fire(new zr("data", { dataType: "source", tile: e, coord: e.tileID, sourceCacheId: this.id }));
|
|
16153
16153
|
}
|
|
16154
16154
|
_backfillDEM(e) {
|
|
16155
16155
|
const i = this.getRenderableIds();
|
|
@@ -16343,7 +16343,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16343
16343
|
const a = this.map ? this.map.painter : null;
|
|
16344
16344
|
i = new mf(e, this._source.tileSize * e.overscaleFactor(), this.transform.tileZoom, a, this._isRaster), this._loadTile(i, this._tileLoaded.bind(this, i, e.key, i.state));
|
|
16345
16345
|
}
|
|
16346
|
-
return i ? (i.uses++, this._tiles[e.key] = i, r || this._source.fire(new
|
|
16346
|
+
return i ? (i.uses++, this._tiles[e.key] = i, r || this._source.fire(new zr("dataloading", { tile: i, coord: i.tileID, dataType: "source" })), i) : null;
|
|
16347
16347
|
}
|
|
16348
16348
|
_setTileReloadTimer(e, i) {
|
|
16349
16349
|
e in this._timers && (clearTimeout(this._timers[e]), delete this._timers[e]);
|
|
@@ -16366,7 +16366,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16366
16366
|
const a = [], c = this.transform;
|
|
16367
16367
|
if (!c)
|
|
16368
16368
|
return a;
|
|
16369
|
-
const h = c.projection.name === "globe", p =
|
|
16369
|
+
const h = c.projection.name === "globe", p = go(c.center.lng);
|
|
16370
16370
|
for (const _ in this._tiles) {
|
|
16371
16371
|
const y = this._tiles[_];
|
|
16372
16372
|
if (r && y.clearQueryDebugViz(), y.holdingForFade())
|
|
@@ -16476,7 +16476,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16476
16476
|
return this._dem.get(e, i, !!r);
|
|
16477
16477
|
}
|
|
16478
16478
|
getMeterToDEM(e) {
|
|
16479
|
-
return (1 << this._demTile.tileID.canonical.z) *
|
|
16479
|
+
return (1 << this._demTile.tileID.canonical.z) * Gr(1, e) * this._dem.stride;
|
|
16480
16480
|
}
|
|
16481
16481
|
}
|
|
16482
16482
|
class dy {
|
|
@@ -16820,7 +16820,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16820
16820
|
const h = Math.round(1e18 * Math.random()).toString(36).substring(0, 10);
|
|
16821
16821
|
i && (i.metadata = c, this.callbacks[h] = i);
|
|
16822
16822
|
const p = rn(this.globalScope) ? void 0 : [];
|
|
16823
|
-
return this.target.postMessage({ id: h, type: t, hasCallback: !!i, targetMapId: r, mustQueue: a, sourceMapId: this.mapId, data:
|
|
16823
|
+
return this.target.postMessage({ id: h, type: t, hasCallback: !!i, targetMapId: r, mustQueue: a, sourceMapId: this.mapId, data: _o(e, p) }, p), { cancel: () => {
|
|
16824
16824
|
i && delete this.callbacks[h], this.target.postMessage({ id: h, type: "<cancel>", targetMapId: r, sourceMapId: this.mapId });
|
|
16825
16825
|
} };
|
|
16826
16826
|
}
|
|
@@ -16842,7 +16842,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16842
16842
|
delete this.callbacks[t], i && (e.error ? i(ta(e.error)) : i(null, ta(e.data)));
|
|
16843
16843
|
} else {
|
|
16844
16844
|
const i = rn(this.globalScope) ? void 0 : [], r = e.hasCallback ? (c, h) => {
|
|
16845
|
-
delete this.cancelCallbacks[t], this.target.postMessage({ id: t, type: "<response>", sourceMapId: this.mapId, error: c ?
|
|
16845
|
+
delete this.cancelCallbacks[t], this.target.postMessage({ id: t, type: "<response>", sourceMapId: this.mapId, error: c ? _o(c) : null, data: _o(h, i) }, i);
|
|
16846
16846
|
} : (c) => {
|
|
16847
16847
|
}, a = ta(e.data);
|
|
16848
16848
|
if (this.parent[e.type])
|
|
@@ -16857,7 +16857,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16857
16857
|
remove() {
|
|
16858
16858
|
this.scheduler.remove(), this.target.removeEventListener("message", this.receive, !1);
|
|
16859
16859
|
}
|
|
16860
|
-
}, o.CanonicalTileID = Jh, o.Color = dn, o.ColorMode =
|
|
16860
|
+
}, o.CanonicalTileID = Jh, o.Color = dn, o.ColorMode = Eo, o.CullFaceMode = lo, o.DEMData = _d, o.DataConstantProperty = ve, o.DedupedRequest = _y, o.DepthMode = Il, o.EXTENT = Yt, o.Elevation = class {
|
|
16861
16861
|
isDataAvailableAtPoint(t) {
|
|
16862
16862
|
const e = this._source();
|
|
16863
16863
|
if (this.isUsingMockSource() || !e || t.y < 0 || t.y > 1)
|
|
@@ -16888,7 +16888,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16888
16888
|
getAtTileOffsetFunc(t, e, i, r) {
|
|
16889
16889
|
return (a) => {
|
|
16890
16890
|
const c = this.getAtTileOffset(t, a.x, a.y), h = r.upVector(t.canonical, a.x, a.y);
|
|
16891
|
-
return
|
|
16891
|
+
return Dr(h, h, c * r.upVectorScale(t.canonical, e, i).metersToTile), h;
|
|
16892
16892
|
};
|
|
16893
16893
|
}
|
|
16894
16894
|
getForTilePoints(t, e, i, r) {
|
|
@@ -16938,7 +16938,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16938
16938
|
get visibleDemTiles() {
|
|
16939
16939
|
throw new Error("Getter must be implemented in subclass.");
|
|
16940
16940
|
}
|
|
16941
|
-
}, o.ErrorEvent =
|
|
16941
|
+
}, o.ErrorEvent = co, o.EvaluationParameters = ye, o.Event = zr, o.Evented = fr, o.FillExtrusionBucket = qc, o.Frustum = Fp, o.FrustumCorners = Np, o.GLOBE_METERS_TO_ECEF = sf, o.GLOBE_RADIUS = qo, o.GLOBE_SCALE_MATCH_LATITUDE = 45, o.GLOBE_ZOOM_THRESHOLD_MAX = 6, o.GLOBE_ZOOM_THRESHOLD_MIN = 5, o.GlobeSharedBuffers = class {
|
|
16942
16942
|
constructor(t) {
|
|
16943
16943
|
this._createGrid(t), this._createPoles(t);
|
|
16944
16944
|
}
|
|
@@ -16998,7 +16998,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16998
16998
|
}
|
|
16999
16999
|
getWirefameBuffers(t, e) {
|
|
17000
17000
|
if (!this._wireframeSegments) {
|
|
17001
|
-
const i = new
|
|
17001
|
+
const i = new Vr(), r = El, a = r + 1;
|
|
17002
17002
|
this._wireframeSegments = [];
|
|
17003
17003
|
for (let c = 0, h = 0; c < Sl.length; c++) {
|
|
17004
17004
|
const p = Sl[c];
|
|
@@ -17014,7 +17014,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17014
17014
|
}
|
|
17015
17015
|
return [this._gridBuffer, this._wireframeIndexBuffer, this._wireframeSegments[e]];
|
|
17016
17016
|
}
|
|
17017
|
-
}, o.GlyphManager = wl, o.ImagePosition = Jp, o.LivePerformanceUtils = Ke, o.LngLat = Ei, o.LngLatBounds = _s, o.LocalGlyphMode = tf, o.MAX_MERCATOR_LATITUDE =
|
|
17017
|
+
}, o.GlyphManager = wl, o.ImagePosition = Jp, o.LivePerformanceUtils = Ke, o.LngLat = Ei, o.LngLatBounds = _s, o.LocalGlyphMode = tf, o.MAX_MERCATOR_LATITUDE = vo, o.MercatorCoordinate = dl, o.ONE_EM = Zn, o.OverscaledTileID = nr, o.PerformanceMarkers = Ae, o.Properties = jt, o.RGBAImage = vr, o.Ray = Bp, o.RequestManager = class {
|
|
17018
17018
|
constructor(t, e, i) {
|
|
17019
17019
|
this._transformRequestFn = t, this._customAccessToken = e, this._silenceAuthErrors = !!i, this._createSkuToken();
|
|
17020
17020
|
}
|
|
@@ -17101,7 +17101,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17101
17101
|
}
|
|
17102
17102
|
return t.params = t.params.filter((a) => a.indexOf("access_token") === -1), t.params.push(`access_token=${e || ""}`), hn(t);
|
|
17103
17103
|
}
|
|
17104
|
-
}, o.ResourceType = Rn, o.SegmentVector = Sn, o.SourceCache = ma, o.StencilMode = gf, o.StructArrayLayout1ui2 = Dc, o.StructArrayLayout2f1f2i16 = Yn, o.StructArrayLayout2i4 = Mi, o.StructArrayLayout2ui4 =
|
|
17104
|
+
}, o.ResourceType = Rn, o.SegmentVector = Sn, o.SourceCache = ma, o.StencilMode = gf, o.StructArrayLayout1ui2 = Dc, o.StructArrayLayout2f1f2i16 = Yn, o.StructArrayLayout2i4 = Mi, o.StructArrayLayout2ui4 = Vr, o.StructArrayLayout3f12 = no, o.StructArrayLayout3ui6 = Vn, o.StructArrayLayout4i8 = ji, o.StructArrayLayout5f20 = oa, o.Texture = au, o.Tile = mf, o.Transitionable = Fe, o.Uniform1f = Oh, o.Uniform1i = class extends Fo {
|
|
17105
17105
|
constructor(t) {
|
|
17106
17106
|
super(t), this.current = 0;
|
|
17107
17107
|
}
|
|
@@ -17212,7 +17212,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17212
17212
|
const i = this.loaded, r = t.uid;
|
|
17213
17213
|
i && i[r] && delete i[r], e();
|
|
17214
17214
|
}
|
|
17215
|
-
}, o.WritingMode =
|
|
17215
|
+
}, o.WritingMode = Lr, o.add = $o, o.addDynamicAttributes = pd, o.adjoint = function(t, e) {
|
|
17216
17216
|
var i = e[0], r = e[1], a = e[2], c = e[3], h = e[4], p = e[5], _ = e[6], y = e[7], T = e[8];
|
|
17217
17217
|
return t[0] = h * T - p * y, t[1] = a * y - r * T, t[2] = r * p - a * h, t[3] = p * _ - c * T, t[4] = i * T - a * _, t[5] = a * c - i * p, t[6] = c * y - h * _, t[7] = r * _ - i * y, t[8] = i * h - r * c, t;
|
|
17218
17218
|
}, o.asyncAll = Ui, o.bezier = Jt, o.bindAll = Qe, o.boundsAttributes = ey, o.bufferConvexPolygon = function(t, e) {
|
|
@@ -17223,20 +17223,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17223
17223
|
}
|
|
17224
17224
|
return i;
|
|
17225
17225
|
}, o.cacheEntryPossiblyAdded = function(t) {
|
|
17226
|
-
|
|
17226
|
+
Cr++, Cr > hr && (t.getActor().send("enforceCacheSizeLimit", ur), Cr = 0);
|
|
17227
17227
|
}, o.calculateGlobeLabelMatrix = function(t, e) {
|
|
17228
17228
|
const { x: i, y: r } = t.point, a = jg(i, r, t.worldSize / t._pixelsPerMercatorPixel, 0, 0);
|
|
17229
|
-
return ca(a, a, cf(
|
|
17229
|
+
return ca(a, a, cf(bo(e)));
|
|
17230
17230
|
}, o.calculateGlobeMatrix = function(t) {
|
|
17231
17231
|
const { x: e, y: i } = t.point, { lng: r, lat: a } = t._center;
|
|
17232
17232
|
return jg(e, i, t.worldSize, r, a);
|
|
17233
17233
|
}, o.calculateGlobeMercatorMatrix = function(t) {
|
|
17234
|
-
const e = t.pixelsPerMeter, i = e /
|
|
17234
|
+
const e = t.pixelsPerMeter, i = e / Gr(1, t.center.lat), r = so(new Float64Array(16));
|
|
17235
17235
|
return kc(r, r, [t.point.x, t.point.y, 0]), ua(r, r, [i, i, e]), Float32Array.from(r);
|
|
17236
17236
|
}, o.circumferenceAtLatitude = Sp, o.clamp = Ft, o.clearTileCache = function(t) {
|
|
17237
|
-
if (!
|
|
17237
|
+
if (!Sr())
|
|
17238
17238
|
return;
|
|
17239
|
-
const e = P.caches.delete(
|
|
17239
|
+
const e = P.caches.delete(Yr);
|
|
17240
17240
|
t && e.catch(t).then(() => t());
|
|
17241
17241
|
}, o.clipLine = Ag, o.clone = function(t) {
|
|
17242
17242
|
var e = new yr(16);
|
|
@@ -17246,13 +17246,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17246
17246
|
}, o.create = function() {
|
|
17247
17247
|
var t = new yr(16);
|
|
17248
17248
|
return yr != Float32Array && (t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0), t[0] = 1, t[5] = 1, t[10] = 1, t[15] = 1, t;
|
|
17249
|
-
}, o.create$1 = b_, o.createExpression =
|
|
17249
|
+
}, o.create$1 = b_, o.createExpression = fo, o.createLayout = At, o.createStyleLayer = function(t) {
|
|
17250
17250
|
return t.type === "custom" ? new Xb(t) : new Kb[t.type](t);
|
|
17251
17251
|
}, o.cross = Op, o.degToRad = Xe, o.distance = function(t, e) {
|
|
17252
17252
|
return Math.hypot(e[0] - t[0], e[1] - t[1], e[2] - t[2]);
|
|
17253
17253
|
}, o.div = function(t, e, i) {
|
|
17254
17254
|
return t[0] = e[0] / i[0], t[1] = e[1] / i[1], t[2] = e[2] / i[2], t;
|
|
17255
|
-
}, o.dot =
|
|
17255
|
+
}, o.dot = Zr, o.earthRadius = Nh, o.ease = li, o.easeCubicInOut = ri, o.ecefToLatLng = function([t, e, i]) {
|
|
17256
17256
|
const r = Math.hypot(t, e, i), a = Math.atan2(t, i), c = 0.5 * Math.PI - Math.acos(-e / r);
|
|
17257
17257
|
return new Ei(ht(a), ht(c));
|
|
17258
17258
|
}, o.emitValidationErrors = bh, o.endsWith = ct, o.enforceCacheSizeLimit = function(t) {
|
|
@@ -17266,7 +17266,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17266
17266
|
return t[0] === e[0] && t[1] === e[1] && t[2] === e[2] && t[3] === e[3];
|
|
17267
17267
|
}, o.exactEquals$1 = function(t, e) {
|
|
17268
17268
|
return t[0] === e[0] && t[1] === e[1] && t[2] === e[2];
|
|
17269
|
-
}, o.exported = Nt, o.exported$1 = se, o.extend = Oe, o.extend$1 =
|
|
17269
|
+
}, o.exported = Nt, o.exported$1 = se, o.extend = Oe, o.extend$1 = Jr, o.fillExtrusionHeightLift = Q_, o.filterObject = at, o.fromMat4 = function(t, e) {
|
|
17270
17270
|
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[4], t[4] = e[5], t[5] = e[6], t[6] = e[8], t[7] = e[9], t[8] = e[10], t;
|
|
17271
17271
|
}, o.fromQuat = function(t, e) {
|
|
17272
17272
|
var i = e[0], r = e[1], a = e[2], c = e[3], h = i + i, p = r + r, _ = a + a, y = i * h, T = r * h, C = r * p, A = a * h, R = a * p, L = a * _, O = c * h, j = c * p, te = c * _;
|
|
@@ -17303,7 +17303,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17303
17303
|
t = Ft(t, -80.051129, e) / e * 90;
|
|
17304
17304
|
const i = Math.pow(Math.abs(Math.sin(Xe(t))), 3);
|
|
17305
17305
|
return Math.round(i * (Sl.length - 1));
|
|
17306
|
-
}, o.getMapSessionAPI = X, o.getPerformanceMeasurement = ut, o.getProjection = Xg, o.getRTLTextPluginStatus = me, o.getReferrer =
|
|
17306
|
+
}, o.getMapSessionAPI = X, o.getPerformanceMeasurement = ut, o.getProjection = Xg, o.getRTLTextPluginStatus = me, o.getReferrer = Mr, o.getTilePoint = function(t, { x: e, y: i }, r = 0) {
|
|
17307
17307
|
return new pe(((e - r) * t.scale - t.x) * Yt, (i * t.scale - t.y) * Yt);
|
|
17308
17308
|
}, o.getTileVec3 = function(t, e, i = 0) {
|
|
17309
17309
|
return fl(((e.x - i) * t.scale - t.x) * Yt, (e.y * t.scale - t.y) * Yt, u_(e.z, e.y));
|
|
@@ -17319,20 +17319,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17319
17319
|
return { cancel: () => {
|
|
17320
17320
|
} };
|
|
17321
17321
|
}, o.globeCenterToScreenPoint = function(t) {
|
|
17322
|
-
const e = [0, 0, 0], i =
|
|
17322
|
+
const e = [0, 0, 0], i = so(new Float64Array(16));
|
|
17323
17323
|
return ca(i, t.pixelMatrix, t.globeMatrix), gn(e, e, i), new pe(e[0], e[1]);
|
|
17324
17324
|
}, o.globeDenormalizeECEF = cf, o.globeECEFOrigin = function(t, e) {
|
|
17325
17325
|
const i = [0, 0, 0];
|
|
17326
|
-
return gn(i, i, iu(
|
|
17326
|
+
return gn(i, i, iu(bo(e.canonical))), gn(i, i, t), i;
|
|
17327
17327
|
}, o.globeNormalizeECEF = iu, o.globePixelsToTileUnits = function(t, e) {
|
|
17328
|
-
return Yt / (512 * Math.pow(2, t)) * ld(
|
|
17328
|
+
return Yt / (512 * Math.pow(2, t)) * ld(bo(e));
|
|
17329
17329
|
}, o.globePoleMatrixForTile = function(t, e, i) {
|
|
17330
|
-
const r =
|
|
17330
|
+
const r = so(new Float64Array(16)), a = (e / (1 << t) - 0.5) * Math.PI * 2;
|
|
17331
17331
|
return Vh(r, i.globeMatrix, a), Float32Array.from(r);
|
|
17332
|
-
}, o.globeTileBounds =
|
|
17332
|
+
}, o.globeTileBounds = bo, o.globeTiltAtLngLat = $g, o.globeToMercatorTransition = Al, o.globeUseCustomAntiAliasing = function(t, e, i) {
|
|
17333
17333
|
const r = Al(i.zoom), a = t.style.map._antialias, c = !!e.extStandardDerivatives, h = e.extStandardDerivativesForceOff || t.terrain && t.terrain.exaggeration() > 0;
|
|
17334
17334
|
return r === 0 && !a && !h && c;
|
|
17335
|
-
}, o.identity =
|
|
17335
|
+
}, o.identity = so, o.identity$1 = D_, o.invert = Lp, o.isFullscreen = function() {
|
|
17336
17336
|
return !!P.document.fullscreenElement || !!P.document.webkitFullscreenElement;
|
|
17337
17337
|
}, o.isLngLatBehindGlobe = uf, o.isMapAuthenticated = function(t) {
|
|
17338
17338
|
return ae.has(t);
|
|
@@ -17341,9 +17341,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17341
17341
|
return !!rn(t) && e && (e.match("Version/15.4") || e.match("Version/15.5") || e.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/));
|
|
17342
17342
|
}, o.latFromMercatorY = Gn, o.latLngToECEF = eu, o.len = tx, o.length = Pc, o.length$1 = function(t) {
|
|
17343
17343
|
return Math.hypot(t[0], t[1], t[2], t[3]);
|
|
17344
|
-
}, o.lngFromMercatorX =
|
|
17344
|
+
}, o.lngFromMercatorX = Rr, o.loadVectorTile = gy, o.makeRequest = dr, o.mapValue = function(t, e, i, r, a) {
|
|
17345
17345
|
return Ft((t - e) / (i - e) * (a - r) + r, r, a);
|
|
17346
|
-
}, o.mercatorScale = h_, o.mercatorXfromLng =
|
|
17346
|
+
}, o.mercatorScale = h_, o.mercatorXfromLng = go, o.mercatorYfromLat = yo, o.mercatorZfromAltitude = Gr, o.mul = Qv, o.mul$1 = ex, o.multiply = ca, o.multiply$1 = w_, o.multiply$2 = C_, o.nextPowerOfTwo = Ge, o.normalize = tr, o.normalize$1 = ix, o.normalize$2 = I_, o.number = Si, o.ortho = function(t, e, i, r, a, c, h) {
|
|
17347
17347
|
var p = 1 / (e - i), _ = 1 / (r - a), y = 1 / (c - h);
|
|
17348
17348
|
return t[0] = -2 * p, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = -2 * _, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 2 * y, t[11] = 0, t[12] = (e + i) * p, t[13] = (a + r) * _, t[14] = (h + c) * y, t[15] = 1, t;
|
|
17349
17349
|
}, o.pbf = Yc, o.perspective = function(t, e, i, r, a) {
|
|
@@ -17357,9 +17357,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17357
17357
|
}
|
|
17358
17358
|
return i;
|
|
17359
17359
|
}, o.plugin = Se, o.pointGeometry = pe, o.polesInViewport = function(t) {
|
|
17360
|
-
const e =
|
|
17360
|
+
const e = so(new Float64Array(16));
|
|
17361
17361
|
ca(e, t.pixelMatrix, t.globeMatrix);
|
|
17362
|
-
const i = [0,
|
|
17362
|
+
const i = [0, qr, 0], r = [0, Wr, 0];
|
|
17363
17363
|
return gn(i, i, e), gn(r, r, e), [i[0] > 0 && i[0] <= t.width && i[1] > 0 && i[1] <= t.height && !uf(t, new Ei(t.center.lat, 90)), r[0] > 0 && r[0] <= t.width && r[1] > 0 && r[1] <= t.height && !uf(t, new Ei(t.center.lat, -90))];
|
|
17364
17364
|
}, o.polygonContainsPoint = la, o.polygonIntersectsBox = y_, o.polygonIntersectsPolygon = f_, o.polygonizeBounds = function(t, e, i = 0, r = !0) {
|
|
17365
17365
|
const a = new pe(i, i), c = t.sub(a), h = e.add(a), p = [c, new pe(h.x, c.y), h, new pe(c.x, h.y)];
|
|
@@ -17377,7 +17377,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17377
17377
|
i *= 0.5;
|
|
17378
17378
|
var r = e[0], a = e[1], c = e[2], h = e[3], p = Math.sin(i), _ = Math.cos(i);
|
|
17379
17379
|
return t[0] = r * _ + a * p, t[1] = a * _ - r * p, t[2] = c * _ + h * p, t[3] = h * _ - c * p, t;
|
|
17380
|
-
}, o.scale = ua, o.scale$1 = M_, o.scale$2 =
|
|
17380
|
+
}, o.scale = ua, o.scale$1 = M_, o.scale$2 = Dr, o.scaleAndAdd = Bc, o.set = function(t, e, i, r) {
|
|
17381
17381
|
return t[0] = e, t[1] = i, t[2] = r, t;
|
|
17382
17382
|
}, o.setCacheLimits = function(t, e) {
|
|
17383
17383
|
ur = t, hr = e;
|
|
@@ -17392,7 +17392,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17392
17392
|
return e * e + i * i + r * r;
|
|
17393
17393
|
}, o.storeAuthState = function(t, e) {
|
|
17394
17394
|
e ? ae.add(t) : ae.delete(t);
|
|
17395
|
-
}, o.sub =
|
|
17395
|
+
}, o.sub = ao, o.subtract = zp, o.symbolSize = Qx, o.tileAABB = function(t, e, i, r, a, c, h, p, _) {
|
|
17396
17396
|
if (_.name === "globe")
|
|
17397
17397
|
return Lb(t, e, new Jh(i, r, a));
|
|
17398
17398
|
const y = fa({ z: i, x: r, y: a }, _);
|
|
@@ -17413,7 +17413,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17413
17413
|
}, o.validateCustomStyleLayer = function(t) {
|
|
17414
17414
|
const e = [], i = t.id;
|
|
17415
17415
|
return i === void 0 && e.push({ message: `layers.${i}: missing required property "id"` }), t.render === void 0 && e.push({ message: `layers.${i}: missing required method "render"` }), t.renderingMode && t.renderingMode !== "2d" && t.renderingMode !== "3d" && e.push({ message: `layers.${i}: property "renderingMode" must be either "2d" or "3d"` }), e;
|
|
17416
|
-
}, o.validateFilter = (t) =>
|
|
17416
|
+
}, o.validateFilter = (t) => io(ea(t)), o.validateFog = (t) => io(vh(t)), o.validateLayer = (t) => io(sl(t)), o.validateLight = (t) => io(yh(t)), o.validateSource = (t) => io(_h(t)), o.validateStyle = wc, o.validateTerrain = (t) => io(al(t)), o.values = nn, o.vectorTile = Xh, o.version = $, o.warnOnce = Ze, o.window = P, o.wrap = Pi;
|
|
17417
17417
|
}), D(["./shared"], function(o) {
|
|
17418
17418
|
function P(Y) {
|
|
17419
17419
|
if (typeof Y == "number" || typeof Y == "boolean" || typeof Y == "string" || Y == null)
|
|
@@ -17911,7 +17911,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17911
17911
|
}
|
|
17912
17912
|
function fn(Y, k, N, W) {
|
|
17913
17913
|
for (var ne, fe = W, xe = N - k >> 1, F = N - k, X = Y[k], ae = Y[k + 1], Ae = Y[N], Ke = Y[N + 1], Be = k + 3; Be < N; Be += 3) {
|
|
17914
|
-
var pt =
|
|
17914
|
+
var pt = Yr(Y[Be], Y[Be + 1], X, ae, Ae, Ke);
|
|
17915
17915
|
if (pt > fe)
|
|
17916
17916
|
ne = Be, fe = pt;
|
|
17917
17917
|
else if (pt === fe) {
|
|
@@ -17921,7 +17921,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17921
17921
|
}
|
|
17922
17922
|
fe > W && (ne - k > 3 && fn(Y, k, ne, W), Y[ne + 2] = fe, N - ne > 3 && fn(Y, ne, N, W));
|
|
17923
17923
|
}
|
|
17924
|
-
function
|
|
17924
|
+
function Yr(Y, k, N, W, ne, fe) {
|
|
17925
17925
|
var xe = ne - N, F = fe - W;
|
|
17926
17926
|
if (xe !== 0 || F !== 0) {
|
|
17927
17927
|
var X = ((Y - N) * xe + (k - W) * F) / (xe * xe + F * F);
|
|
@@ -17957,11 +17957,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17957
17957
|
for (var ae = 0; ae < ne.length; ae++)
|
|
17958
17958
|
hr(ne[ae], F);
|
|
17959
17959
|
else if (fe === "LineString")
|
|
17960
|
-
|
|
17960
|
+
Sr(ne, F, xe, !1);
|
|
17961
17961
|
else if (fe === "MultiLineString") {
|
|
17962
17962
|
if (N.lineMetrics) {
|
|
17963
17963
|
for (ae = 0; ae < ne.length; ae++)
|
|
17964
|
-
|
|
17964
|
+
Sr(ne[ae], F = [], xe, !1), Y.push(mn(X, "LineString", F, k.properties));
|
|
17965
17965
|
return;
|
|
17966
17966
|
}
|
|
17967
17967
|
Un(ne, F, xe, !1);
|
|
@@ -17985,11 +17985,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17985
17985
|
}
|
|
17986
17986
|
}
|
|
17987
17987
|
function hr(Y, k) {
|
|
17988
|
-
k.push(
|
|
17988
|
+
k.push(Kr(Y[0])), k.push(Cr(Y[1])), k.push(0);
|
|
17989
17989
|
}
|
|
17990
|
-
function
|
|
17990
|
+
function Sr(Y, k, N, W) {
|
|
17991
17991
|
for (var ne, fe, xe = 0, F = 0; F < Y.length; F++) {
|
|
17992
|
-
var X =
|
|
17992
|
+
var X = Kr(Y[F][0]), ae = Cr(Y[F][1]);
|
|
17993
17993
|
k.push(X), k.push(ae), k.push(0), F > 0 && (xe += W ? (ne * ae - X * fe) / 2 : Math.sqrt(Math.pow(X - ne, 2) + Math.pow(ae - fe, 2))), ne = X, fe = ae;
|
|
17994
17994
|
}
|
|
17995
17995
|
var Ae = k.length - 3;
|
|
@@ -17998,13 +17998,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17998
17998
|
function Un(Y, k, N, W) {
|
|
17999
17999
|
for (var ne = 0; ne < Y.length; ne++) {
|
|
18000
18000
|
var fe = [];
|
|
18001
|
-
|
|
18001
|
+
Sr(Y[ne], fe, N, W), k.push(fe);
|
|
18002
18002
|
}
|
|
18003
18003
|
}
|
|
18004
|
-
function
|
|
18004
|
+
function Kr(Y) {
|
|
18005
18005
|
return Y / 360 + 0.5;
|
|
18006
18006
|
}
|
|
18007
|
-
function
|
|
18007
|
+
function Cr(Y) {
|
|
18008
18008
|
var k = Math.sin(Y * Math.PI / 180), N = 0.5 - 0.25 * Math.log((1 + k) / (1 - k)) / Math.PI;
|
|
18009
18009
|
return N < 0 ? 0 : N > 1 ? 1 : N;
|
|
18010
18010
|
}
|
|
@@ -18020,9 +18020,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18020
18020
|
else if (!(ut < N || pt >= W)) {
|
|
18021
18021
|
var Ct = [];
|
|
18022
18022
|
if (Be === "Point" || Be === "MultiPoint")
|
|
18023
|
-
|
|
18023
|
+
Ar(Ke, Ct, N, W, ne);
|
|
18024
18024
|
else if (Be === "LineString")
|
|
18025
|
-
|
|
18025
|
+
Mr(Ke, Ct, N, W, ne, !1, F.lineMetrics);
|
|
18026
18026
|
else if (Be === "MultiLineString")
|
|
18027
18027
|
pr(Ke, Ct, N, W, ne, !1);
|
|
18028
18028
|
else if (Be === "Polygon")
|
|
@@ -18044,13 +18044,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18044
18044
|
}
|
|
18045
18045
|
return X.length ? X : null;
|
|
18046
18046
|
}
|
|
18047
|
-
function
|
|
18047
|
+
function Ar(Y, k, N, W, ne) {
|
|
18048
18048
|
for (var fe = 0; fe < Y.length; fe += 3) {
|
|
18049
18049
|
var xe = Y[fe + ne];
|
|
18050
18050
|
xe >= N && xe <= W && (k.push(Y[fe]), k.push(Y[fe + 1]), k.push(Y[fe + 2]));
|
|
18051
18051
|
}
|
|
18052
18052
|
}
|
|
18053
|
-
function
|
|
18053
|
+
function Mr(Y, k, N, W, ne, fe, xe) {
|
|
18054
18054
|
for (var F, X, ae = dr(Y), Ae = ne === 0 ? be : lt, Ke = Y.start, Be = 0; Be < Y.length - 3; Be += 3) {
|
|
18055
18055
|
var pt = Y[Be], ut = Y[Be + 1], Ct = Y[Be + 2], Lt = Y[Be + 3], Vt = Y[Be + 4], oi = ne === 0 ? pt : ut, Nt = ne === 0 ? Lt : Vt, Li = !1;
|
|
18056
18056
|
xe && (F = Math.sqrt(Math.pow(pt - Lt, 2) + Math.pow(ut - Vt, 2))), oi < N ? Nt > N && (X = Ae(ae, pt, ut, Lt, Vt, N), xe && (ae.start = Ke + F * X)) : oi > W ? Nt < W && (X = Ae(ae, pt, ut, Lt, Vt, W), xe && (ae.start = Ke + F * X)) : Ie(ae, pt, ut, Ct), Nt < N && oi >= N && (X = Ae(ae, pt, ut, Lt, Vt, N), Li = !0), Nt > W && oi <= W && (X = Ae(ae, pt, ut, Lt, Vt, W), Li = !0), !fe && Li && (xe && (ae.end = Ke + F * X), k.push(ae), ae = dr(Y)), xe && (Ke += F);
|
|
@@ -18064,7 +18064,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18064
18064
|
}
|
|
18065
18065
|
function pr(Y, k, N, W, ne, fe) {
|
|
18066
18066
|
for (var xe = 0; xe < Y.length; xe++)
|
|
18067
|
-
|
|
18067
|
+
Mr(Y[xe], k, N, W, ne, fe, !1);
|
|
18068
18068
|
}
|
|
18069
18069
|
function Ie(Y, k, N, W) {
|
|
18070
18070
|
Y.push(k), Y.push(N), Y.push(W);
|
|
@@ -18235,8 +18235,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18235
18235
|
continue;
|
|
18236
18236
|
if (Be.source = null, Y.length !== 0) {
|
|
18237
18237
|
ae > 1 && console.time("clipping");
|
|
18238
|
-
var Ct, Lt, Vt, oi, Nt, Li, wi = 0.5 * X.buffer / X.extent,
|
|
18239
|
-
Ct = Lt = Vt = oi = null, Nt = Rn(Y, Ae, N - wi, N +
|
|
18238
|
+
var Ct, Lt, Vt, oi, Nt, Li, wi = 0.5 * X.buffer / X.extent, zr = 0.5 - wi, co = 0.5 + wi, fr = 1 + wi;
|
|
18239
|
+
Ct = Lt = Vt = oi = null, Nt = Rn(Y, Ae, N - wi, N + co, 0, Be.minX, Be.maxX, X), Li = Rn(Y, Ae, N + zr, N + fr, 0, Be.minX, Be.maxX, X), Y = null, Nt && (Ct = Rn(Nt, Ae, W - wi, W + co, 1, Be.minY, Be.maxY, X), Lt = Rn(Nt, Ae, W + zr, W + fr, 1, Be.minY, Be.maxY, X), Nt = null), Li && (Vt = Rn(Li, Ae, W - wi, W + co, 1, Be.minY, Be.maxY, X), oi = Rn(Li, Ae, W + zr, W + fr, 1, Be.minY, Be.maxY, X), Li = null), ae > 1 && console.timeEnd("clipping"), F.push(Ct || [], k + 1, 2 * N, 2 * W), F.push(Lt || [], k + 1, 2 * N, 2 * W + 1), F.push(Vt || [], k + 1, 2 * N + 1, 2 * W), F.push(oi || [], k + 1, 2 * N + 1, 2 * W + 1);
|
|
18240
18240
|
}
|
|
18241
18241
|
}
|
|
18242
18242
|
}, Ii.prototype.getTile = function(Y, k, N) {
|
|
@@ -19129,7 +19129,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19129
19129
|
(n !== this.current || this.dirty) && (this.gl.stencilMask(n), this.current = n, this.dirty = !1);
|
|
19130
19130
|
}
|
|
19131
19131
|
}
|
|
19132
|
-
class
|
|
19132
|
+
class Yr extends wt {
|
|
19133
19133
|
getDefault() {
|
|
19134
19134
|
return { func: this.gl.ALWAYS, ref: 0, mask: 255 };
|
|
19135
19135
|
}
|
|
@@ -19179,7 +19179,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19179
19179
|
n ? s.enable(s.DEPTH_TEST) : s.disable(s.DEPTH_TEST), this.current = n, this.dirty = !1;
|
|
19180
19180
|
}
|
|
19181
19181
|
}
|
|
19182
|
-
class
|
|
19182
|
+
class Sr extends wt {
|
|
19183
19183
|
getDefault() {
|
|
19184
19184
|
return this.gl.LESS;
|
|
19185
19185
|
}
|
|
@@ -19198,7 +19198,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19198
19198
|
n ? s.enable(s.BLEND) : s.disable(s.BLEND), this.current = n, this.dirty = !1;
|
|
19199
19199
|
}
|
|
19200
19200
|
}
|
|
19201
|
-
class
|
|
19201
|
+
class Kr extends wt {
|
|
19202
19202
|
getDefault() {
|
|
19203
19203
|
const n = this.gl;
|
|
19204
19204
|
return [n.ONE, n.ZERO];
|
|
@@ -19208,7 +19208,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19208
19208
|
(n[0] !== s[0] || n[1] !== s[1] || this.dirty) && (this.gl.blendFunc(n[0], n[1]), this.current = n, this.dirty = !1);
|
|
19209
19209
|
}
|
|
19210
19210
|
}
|
|
19211
|
-
class
|
|
19211
|
+
class Cr extends wt {
|
|
19212
19212
|
getDefault() {
|
|
19213
19213
|
return o.Color.transparent;
|
|
19214
19214
|
}
|
|
@@ -19225,7 +19225,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19225
19225
|
(n !== this.current || this.dirty) && (this.gl.blendEquation(n), this.current = n, this.dirty = !1);
|
|
19226
19226
|
}
|
|
19227
19227
|
}
|
|
19228
|
-
class
|
|
19228
|
+
class Ar extends wt {
|
|
19229
19229
|
getDefault() {
|
|
19230
19230
|
return !1;
|
|
19231
19231
|
}
|
|
@@ -19236,7 +19236,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19236
19236
|
n ? s.enable(s.CULL_FACE) : s.disable(s.CULL_FACE), this.current = n, this.dirty = !1;
|
|
19237
19237
|
}
|
|
19238
19238
|
}
|
|
19239
|
-
class
|
|
19239
|
+
class Mr extends wt {
|
|
19240
19240
|
getDefault() {
|
|
19241
19241
|
return this.gl.BACK;
|
|
19242
19242
|
}
|
|
@@ -19429,7 +19429,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19429
19429
|
}
|
|
19430
19430
|
class k {
|
|
19431
19431
|
constructor(n) {
|
|
19432
|
-
this.gl = n, this.extVertexArrayObject = this.gl.getExtension("OES_vertex_array_object"), this.clearColor = new ci(this), this.clearDepth = new ft(this), this.clearStencil = new ii(this), this.colorMask = new rn(this), this.depthMask = new on(this), this.stencilMask = new fn(this), this.stencilFunc = new
|
|
19432
|
+
this.gl = n, this.extVertexArrayObject = this.gl.getExtension("OES_vertex_array_object"), this.clearColor = new ci(this), this.clearDepth = new ft(this), this.clearStencil = new ii(this), this.colorMask = new rn(this), this.depthMask = new on(this), this.stencilMask = new fn(this), this.stencilFunc = new Yr(this), this.stencilOp = new mn(this), this.stencilTest = new cr(this), this.depthRange = new ur(this), this.depthTest = new hr(this), this.depthFunc = new Sr(this), this.blend = new Un(this), this.blendFunc = new Kr(this), this.blendColor = new Cr(this), this.blendEquation = new Rn(this), this.cullFace = new Ar(this), this.cullFaceSide = new Mr(this), this.frontFace = new dr(this), this.program = new pr(this), this.activeTexture = new Ie(this), this.viewport = new be(this), this.bindFramebuffer = new lt(this), this.bindRenderbuffer = new Tt(this), this.bindTexture = new Et(this), this.bindVertexBuffer = new Pt(this), this.bindElementBuffer = new Ut(this), this.bindVertexArrayOES = this.extVertexArrayObject && new Zt(this), this.pixelStoreUnpack = new Xt(this), this.pixelStoreUnpackPremultiplyAlpha = new ni(this), this.pixelStoreUnpackFlipY = new Ii(this), this.extTextureFilterAnisotropic = n.getExtension("EXT_texture_filter_anisotropic") || n.getExtension("MOZ_EXT_texture_filter_anisotropic") || n.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = n.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.extTextureFilterAnisotropicForceOff = !1, this.extStandardDerivativesForceOff = !1, this.extDebugRendererInfo = n.getExtension("WEBGL_debug_renderer_info"), this.extDebugRendererInfo && (this.renderer = n.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL), this.vendor = n.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)), this.extTextureHalfFloat = n.getExtension("OES_texture_half_float"), this.extTextureHalfFloat && (n.getExtension("OES_texture_half_float_linear"), this.extRenderToTextureHalfFloat = n.getExtension("EXT_color_buffer_half_float")), this.extStandardDerivatives = n.getExtension("OES_standard_derivatives"), this.extTimerQuery = n.getExtension("EXT_disjoint_timer_query"), this.maxTextureSize = n.getParameter(n.MAX_TEXTURE_SIZE);
|
|
19433
19433
|
}
|
|
19434
19434
|
setDefault() {
|
|
19435
19435
|
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();
|
|
@@ -20011,10 +20011,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20011
20011
|
function wi(l, n, s) {
|
|
20012
20012
|
n.push({ command: Nt.removeSource, args: [l] }), s[l] = !0;
|
|
20013
20013
|
}
|
|
20014
|
-
function
|
|
20014
|
+
function zr(l, n, s, u) {
|
|
20015
20015
|
wi(l, s, u), Li(l, n, s);
|
|
20016
20016
|
}
|
|
20017
|
-
function
|
|
20017
|
+
function co(l, n, s) {
|
|
20018
20018
|
let u;
|
|
20019
20019
|
for (u in l[s])
|
|
20020
20020
|
if (l[s].hasOwnProperty(u) && u !== "data" && !P(l[s][u], n[s][u]))
|
|
@@ -20034,7 +20034,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20034
20034
|
function je(l) {
|
|
20035
20035
|
return l.id;
|
|
20036
20036
|
}
|
|
20037
|
-
function
|
|
20037
|
+
function Jr(l, n) {
|
|
20038
20038
|
return l[n.id] = n, l;
|
|
20039
20039
|
}
|
|
20040
20040
|
class Tn {
|
|
@@ -20059,7 +20059,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20059
20059
|
return this.points[f].mult(1 - E).add(this.points[s].mult(E));
|
|
20060
20060
|
}
|
|
20061
20061
|
}
|
|
20062
|
-
class
|
|
20062
|
+
class Qr {
|
|
20063
20063
|
constructor(n, s, u) {
|
|
20064
20064
|
const d = this.boxCells = [], f = this.circleCells = [];
|
|
20065
20065
|
this.xCellCount = Math.ceil(n / u), this.yCellCount = Math.ceil(s / u);
|
|
@@ -20283,11 +20283,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20283
20283
|
}
|
|
20284
20284
|
u ? (l.text.dynamicLayoutVertexBuffer.updateData(H), V && l.text.globeExtVertexBuffer.updateData(V)) : (l.icon.dynamicLayoutVertexBuffer.updateData(H), V && l.icon.globeExtVertexBuffer.updateData(V));
|
|
20285
20285
|
}
|
|
20286
|
-
function
|
|
20287
|
-
const { lineStartIndex: V, glyphStartIndex: G, segment: J } = w, K = G + w.numGlyphs, re = V + w.lineLength, de = n.getoffsetX(G), ue = n.getoffsetX(K - 1), me =
|
|
20286
|
+
function Ir(l, n, s, u, d, f, v, w, E, I, M, z, U, q, Z, H) {
|
|
20287
|
+
const { lineStartIndex: V, glyphStartIndex: G, segment: J } = w, K = G + w.numGlyphs, re = V + w.lineLength, de = n.getoffsetX(G), ue = n.getoffsetX(K - 1), me = uo(l * de, s, u, d, f, v, J, V, re, E, I, M, z, U, !0, q, Z, H);
|
|
20288
20288
|
if (!me)
|
|
20289
20289
|
return null;
|
|
20290
|
-
const Re =
|
|
20290
|
+
const Re = uo(l * ue, s, u, d, f, v, J, V, re, E, I, M, z, U, !0, q, Z, H);
|
|
20291
20291
|
return Re ? { first: me, last: Re } : null;
|
|
20292
20292
|
}
|
|
20293
20293
|
function Do(l, n, s, u) {
|
|
@@ -20305,7 +20305,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20305
20305
|
o.addDynamicAttributes(I, Je, ze, He, Le.angle);
|
|
20306
20306
|
};
|
|
20307
20307
|
if (Re > 1) {
|
|
20308
|
-
const Le =
|
|
20308
|
+
const Le = Ir(K, w, re, de, s, z, U, l, E, f, q, H, !1, V, G, J);
|
|
20309
20309
|
if (!Le)
|
|
20310
20310
|
return { notEnoughRoom: !0 };
|
|
20311
20311
|
if (u && !s) {
|
|
@@ -20317,7 +20317,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20317
20317
|
}
|
|
20318
20318
|
Fe(Le.first);
|
|
20319
20319
|
for (let Je = me + 1; Je < me + Re - 1; Je++) {
|
|
20320
|
-
const ze =
|
|
20320
|
+
const ze = uo(K * w.getoffsetX(Je), re, de, s, z, U, Se, ue, we, E, f, q, H, !1, !1, V, G, J);
|
|
20321
20321
|
if (!ze)
|
|
20322
20322
|
return I.length -= 4 * (Je - me), { notEnoughRoom: !0 };
|
|
20323
20323
|
Fe(ze);
|
|
@@ -20329,7 +20329,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20329
20329
|
if (l.flipState = De && De.needsFlipping ? 1 : 2, De)
|
|
20330
20330
|
return De;
|
|
20331
20331
|
}
|
|
20332
|
-
const Le =
|
|
20332
|
+
const Le = uo(K * w.getoffsetX(me), re, de, s, z, U, Se, ue, we, E, f, q, H, !1, !1, V, G, J);
|
|
20333
20333
|
if (!Le)
|
|
20334
20334
|
return { notEnoughRoom: !0 };
|
|
20335
20335
|
Fe(Le);
|
|
@@ -20347,7 +20347,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20347
20347
|
const E = Rs(l.sub(n)._unit()._add(l), w, d, v, f);
|
|
20348
20348
|
return o.sub(E, s, E), o.normalize(E, E), o.scaleAndAdd(E, s, E, u);
|
|
20349
20349
|
}
|
|
20350
|
-
function
|
|
20350
|
+
function uo(l, n, s, u, d, f, v, w, E, I, M, z, U, q, Z, H, V, G) {
|
|
20351
20351
|
const J = u ? l - n : l + n;
|
|
20352
20352
|
let K = J > 0 ? 1 : -1, re = 0;
|
|
20353
20353
|
u && (K *= -1, re = Math.PI), K < 0 && (re += Math.PI);
|
|
@@ -20386,10 +20386,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20386
20386
|
const u = n[0], d = n[1];
|
|
20387
20387
|
return l[0] = s[0] * u + s[4] * d + s[12], l[1] = s[1] * u + s[5] * d + s[13], l[3] = s[3] * u + s[7] * d + s[15], l;
|
|
20388
20388
|
}
|
|
20389
|
-
const
|
|
20389
|
+
const Or = 100;
|
|
20390
20390
|
class Ds {
|
|
20391
|
-
constructor(n, s, u = new
|
|
20392
|
-
this.transform = n, this.grid = u, this.ignoredGrid = d, this.pitchfactor = Math.cos(n._pitch) * n.cameraToCenterDistance, this.screenRightBoundary = n.width +
|
|
20391
|
+
constructor(n, s, u = new Qr(n.width + 200, n.height + 200, 25), d = new Qr(n.width + 200, n.height + 200, 25)) {
|
|
20392
|
+
this.transform = n, this.grid = u, this.ignoredGrid = d, this.pitchfactor = Math.cos(n._pitch) * n.cameraToCenterDistance, this.screenRightBoundary = n.width + Or, this.screenBottomBoundary = n.height + Or, this.gridRightBoundary = n.width + 200, this.gridBottomBoundary = n.height + 200, this.fogState = s;
|
|
20393
20393
|
}
|
|
20394
20394
|
placeCollisionBox(n, s, u, d, f, v, w, E) {
|
|
20395
20395
|
let I = u.projectedAnchorX, M = u.projectedAnchorY, z = u.projectedAnchorZ;
|
|
@@ -20408,7 +20408,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20408
20408
|
const [He, nt, ve] = K(re);
|
|
20409
20409
|
de += He, ue += nt, me += ve;
|
|
20410
20410
|
}
|
|
20411
|
-
const Re = J.name === "globe", Se = this.projectAndGetPerspectiveRatio(w, de, ue, me, H, Re || !!G || this.transform.pitch > 0, J), { perspectiveRatio: ye } = Se, it = (z ? v / ye : v * ye) / o.ONE_EM, we = Hn(de, ue, me, E), Fe = Se.signedDistanceFromCamera > 0 ?
|
|
20411
|
+
const Re = J.name === "globe", Se = this.projectAndGetPerspectiveRatio(w, de, ue, me, H, Re || !!G || this.transform.pitch > 0, J), { perspectiveRatio: ye } = Se, it = (z ? v / ye : v * ye) / o.ONE_EM, we = Hn(de, ue, me, E), Fe = Se.signedDistanceFromCamera > 0 ? Ir(it, f, u.lineOffsetX * it, u.lineOffsetY * it, !1, we, re, u, d, E, {}, G && !z ? K : null, z && !!G, J, H, z) : null;
|
|
20412
20412
|
let Le = !1, Je = !1, ze = !0;
|
|
20413
20413
|
if (Fe && !Se.occluded) {
|
|
20414
20414
|
const He = 0.5 * q * ye + Z, nt = new o.pointGeometry(-100, -100), ve = new o.pointGeometry(this.screenRightBoundary, this.screenBottomBoundary), De = new Tn(), { first: zt, last: jt } = Fe, Ot = zt.path.length;
|
|
@@ -20431,10 +20431,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20431
20431
|
let Oi = 0;
|
|
20432
20432
|
Oi = De.length <= 0.5 * He ? 1 : Math.ceil(De.paddedLength / ai) + 1;
|
|
20433
20433
|
for (let Mi = 0; Mi < Oi; Mi++) {
|
|
20434
|
-
const Gi = Mi / Math.max(Oi - 1, 1), ji = De.lerp(Gi), er = ji.x +
|
|
20434
|
+
const Gi = Mi / Math.max(Oi - 1, 1), ji = De.lerp(Gi), er = ji.x + Or, ar = ji.y + Or;
|
|
20435
20435
|
V.push(er, ar, He, 0);
|
|
20436
|
-
const Xn = er - He,
|
|
20437
|
-
if (ze = ze && this.isOffscreen(Xn,
|
|
20436
|
+
const Xn = er - He, Ur = ar - He, Xi = er + He, Zi = ar + He;
|
|
20437
|
+
if (ze = ze && this.isOffscreen(Xn, Ur, Xi, Zi), Je = Je || this.isInsideGrid(Xn, Ur, Xi, Zi), !s && this.grid.hitTestCircle(er, ar, He, U) && (Le = !0, !M))
|
|
20438
20438
|
return { circles: [], offscreen: !1, collisionDetected: Le, occluded: !1 };
|
|
20439
20439
|
}
|
|
20440
20440
|
}
|
|
@@ -20447,7 +20447,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20447
20447
|
const s = [];
|
|
20448
20448
|
let u = 1 / 0, d = 1 / 0, f = -1 / 0, v = -1 / 0;
|
|
20449
20449
|
for (const M of n) {
|
|
20450
|
-
const z = new o.pointGeometry(M.x +
|
|
20450
|
+
const z = new o.pointGeometry(M.x + Or, M.y + Or);
|
|
20451
20451
|
u = Math.min(u, z.x), d = Math.min(d, z.y), f = Math.max(f, z.x), v = Math.max(v, z.y), s.push(z);
|
|
20452
20452
|
}
|
|
20453
20453
|
const w = this.grid.query(u, d, f, v).concat(this.ignoredGrid.query(u, d, f, v)), E = {}, I = {};
|
|
@@ -20481,10 +20481,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20481
20481
|
} else
|
|
20482
20482
|
sn(E, E, n);
|
|
20483
20483
|
const M = E[3];
|
|
20484
|
-
return { point: new o.pointGeometry((E[0] / M + 1) / 2 * this.transform.width +
|
|
20484
|
+
return { point: new o.pointGeometry((E[0] / M + 1) / 2 * this.transform.width + Or, (-E[1] / M + 1) / 2 * this.transform.height + Or), perspectiveRatio: Math.min(0.5 + this.transform.getCameraToCenterDistance(w) / M * 0.5, 1.5), signedDistanceFromCamera: M, occluded: v && E[2] > M || I };
|
|
20485
20485
|
}
|
|
20486
20486
|
isOffscreen(n, s, u, d) {
|
|
20487
|
-
return u <
|
|
20487
|
+
return u < Or || n >= this.screenRightBoundary || d < Or || s > this.screenBottomBoundary;
|
|
20488
20488
|
}
|
|
20489
20489
|
isInsideGrid(n, s, u, d) {
|
|
20490
20490
|
return u >= 0 && n < this.gridRightBoundary && d >= 0 && s < this.gridBottomBoundary;
|
|
@@ -20515,7 +20515,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20515
20515
|
return this.opacity === 0 && !this.placed;
|
|
20516
20516
|
}
|
|
20517
20517
|
}
|
|
20518
|
-
class
|
|
20518
|
+
class ho {
|
|
20519
20519
|
constructor(n, s, u, d, f, v = !1) {
|
|
20520
20520
|
this.text = new Zl(n ? n.text : null, s, u, f), this.icon = new Zl(n ? n.icon : null, s, d, f), this.clipped = v;
|
|
20521
20521
|
}
|
|
@@ -20655,18 +20655,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20655
20655
|
Ci.indexOf(qi.anchor) > 0 && (Ci = Ci.filter((Yn) => Yn !== qi.anchor), Ci.unshift(qi.anchor));
|
|
20656
20656
|
}
|
|
20657
20657
|
const _n = (qi, Yn, ra) => {
|
|
20658
|
-
const
|
|
20659
|
-
|
|
20660
|
-
let
|
|
20658
|
+
const no = f.getSymbolInstanceTextSize(Z, we, this.transform.zoom, Fe), Vn = (qi.x2 - qi.x1) * no + 2 * qi.padding, gr = (qi.y2 - qi.y1) * no + 2 * qi.padding, jr = me && !re ? Yn : null;
|
|
20659
|
+
jr && ji(jr);
|
|
20660
|
+
let $r = { box: [], offscreen: !1, occluded: !1 };
|
|
20661
20661
|
const oa = K ? 2 * Ci.length : Ci.length;
|
|
20662
20662
|
for (let ps = 0; ps < oa; ++ps) {
|
|
20663
|
-
const
|
|
20664
|
-
if (
|
|
20665
|
-
He = !0, jt =
|
|
20663
|
+
const Vr = this.attemptAnchorPlacement(Ci[ps % Ci.length], qi, Vn, gr, no, de, ue, z, w, V, ps >= Ci.length, we, Fe, f, ra, jr, Z, H);
|
|
20664
|
+
if (Vr && ($r = Vr.placedGlyphBoxes, $r && $r.box && $r.box.length)) {
|
|
20665
|
+
He = !0, jt = Vr.shift;
|
|
20666
20666
|
break;
|
|
20667
20667
|
}
|
|
20668
20668
|
}
|
|
20669
|
-
return
|
|
20669
|
+
return $r;
|
|
20670
20670
|
};
|
|
20671
20671
|
Zi(() => _n(er, Le.iconBox, o.WritingMode.horizontal), () => {
|
|
20672
20672
|
const qi = Le.verticalTextBox;
|
|
@@ -20708,8 +20708,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20708
20708
|
for (let Ci = 0; Ci < $t.circles.length; Ci += 4)
|
|
20709
20709
|
Zi.circles.push($t.circles[Ci + 0]), Zi.circles.push($t.circles[Ci + 1]), Zi.circles.push($t.circles[Ci + 2]), Zi.circles.push($t.collisionDetected ? 1 : 0);
|
|
20710
20710
|
}
|
|
20711
|
-
const
|
|
20712
|
-
Se = Se && (
|
|
20711
|
+
const Ur = f.projection.name !== "globe";
|
|
20712
|
+
Se = Se && (Ur || !De), ye = ye && (Ur || !zt), this.placements[Je] = new zs(He || Se, nt || ye, ve || f.justReloaded), s[Je] = !0;
|
|
20713
20713
|
};
|
|
20714
20714
|
if (Re) {
|
|
20715
20715
|
const we = f.getSortedSymbolIndexes(this.transform.angle);
|
|
@@ -20742,12 +20742,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20742
20742
|
const d = s ? s.symbolFadeChange(n) : 1, f = s ? s.opacities : {}, v = s ? s.variableOffsets : {}, w = s ? s.placedOrientations : {};
|
|
20743
20743
|
for (const E in this.placements) {
|
|
20744
20744
|
const I = this.placements[E], M = f[E];
|
|
20745
|
-
M ? (this.opacities[E] = new
|
|
20745
|
+
M ? (this.opacities[E] = new ho(M, d, I.text, I.icon, null, I.clipped), u = u || I.text !== M.text.placed || I.icon !== M.icon.placed) : (this.opacities[E] = new ho(null, d, I.text, I.icon, I.skipFade, I.clipped), u = u || I.text || I.icon);
|
|
20746
20746
|
}
|
|
20747
20747
|
for (const E in f) {
|
|
20748
20748
|
const I = f[E];
|
|
20749
20749
|
if (!this.opacities[E]) {
|
|
20750
|
-
const M = new
|
|
20750
|
+
const M = new ho(I, d, !1, !1);
|
|
20751
20751
|
M.isHidden() || (this.opacities[E] = M, u = u || I.text.placed || I.icon.placed);
|
|
20752
20752
|
}
|
|
20753
20753
|
}
|
|
@@ -20766,7 +20766,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20766
20766
|
}
|
|
20767
20767
|
updateBucketOpacities(n, s, u) {
|
|
20768
20768
|
n.hasTextData() && n.text.opacityVertexArray.clear(), n.hasIconData() && n.icon.opacityVertexArray.clear(), n.hasIconCollisionBoxData() && n.iconCollisionBox.collisionVertexArray.clear(), n.hasTextCollisionBoxData() && n.textCollisionBox.collisionVertexArray.clear();
|
|
20769
|
-
const d = n.layers[0].layout, f = !!n.layers[0].dynamicFilter(), v = new
|
|
20769
|
+
const d = n.layers[0].layout, f = !!n.layers[0].dynamicFilter(), v = new ho(null, 0, !1, !1, !0), w = d.get("text-allow-overlap"), E = d.get("icon-allow-overlap"), I = d.get("text-variable-anchor"), M = d.get("text-rotation-alignment") === "map", z = d.get("text-pitch-alignment") === "map", U = d.get("icon-text-fit") !== "none", q = new ho(null, 0, w && (E || !n.hasIconData() || d.get("icon-optional")), E && (w || !n.hasTextData() || d.get("text-optional")), !0);
|
|
20770
20770
|
!n.collisionArrays && u && (n.hasIconCollisionBoxData() || n.hasTextCollisionBoxData()) && n.deserializeCollisionBoxes(u);
|
|
20771
20771
|
const Z = (V, G, J) => {
|
|
20772
20772
|
for (let K = 0; K < G / 4; K++)
|
|
@@ -20860,7 +20860,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20860
20860
|
return !1;
|
|
20861
20861
|
}
|
|
20862
20862
|
}
|
|
20863
|
-
class
|
|
20863
|
+
class eo {
|
|
20864
20864
|
constructor(n, s, u, d, f, v, w, E) {
|
|
20865
20865
|
this.placement = new Wl(n, f, v, w, E), this._currentPlacementIndex = s.length - 1, this._forceFullPlacement = u, this._showCollisionBoxes = d, this._done = !1;
|
|
20866
20866
|
}
|
|
@@ -21011,7 +21011,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21011
21011
|
s[u] || delete this.layerIndexes[u];
|
|
21012
21012
|
}
|
|
21013
21013
|
}
|
|
21014
|
-
const Pa = (l, n) => o.emitValidationErrors(l, n && n.filter((s) => s.identifier !== "source.canvas")), Fu = o.pick(Nt, ["addLayer", "removeLayer", "setPaintProperty", "setLayoutProperty", "setFilter", "addSource", "removeSource", "setLayerZoomRange", "setLight", "setTransition", "setGeoJSONSourceData", "setTerrain", "setFog", "setProjection"]), es = o.pick(Nt, ["setCenter", "setZoom", "setBearing", "setPitch"]),
|
|
21014
|
+
const Pa = (l, n) => o.emitValidationErrors(l, n && n.filter((s) => s.identifier !== "source.canvas")), Fu = o.pick(Nt, ["addLayer", "removeLayer", "setPaintProperty", "setLayoutProperty", "setFilter", "addSource", "removeSource", "setLayerZoomRange", "setLight", "setTransition", "setGeoJSONSourceData", "setTerrain", "setFog", "setProjection"]), es = o.pick(Nt, ["setCenter", "setZoom", "setBearing", "setPitch"]), po = { version: 8, layers: [], sources: {} }, za = { fill: !0, line: !0, background: !0, hillshade: !0, raster: !0 };
|
|
21015
21015
|
class Pn extends o.Evented {
|
|
21016
21016
|
constructor(n, s = {}) {
|
|
21017
21017
|
super(), this.map = n, this.dispatcher = new Ue(Lt(), this), this.imageManager = new Kt(), this.imageManager.setEventedParent(this), this.glyphManager = new o.GlyphManager(n._requestManager, s.localFontFamily ? o.LocalGlyphMode.all : s.localIdeographFontFamily ? o.LocalGlyphMode.ideographs : o.LocalGlyphMode.none, s.localFontFamily || s.localIdeographFontFamily), this.crossTileSymbolIndex = new Lo(), this._layers = {}, this._num3DLayers = 0, this._numSymbolLayers = 0, this._numCircleLayers = 0, this._serializedLayers = {}, this._sourceCaches = {}, this._otherSourceCaches = {}, this._symbolSourceCaches = {}, this._loaded = !1, this._availableImages = [], this._order = [], this._drapedFirstOrder = [], this._markersNeedUpdate = !1, this._resetUpdates(), this.dispatcher.broadcast("setReferrer", o.getReferrer());
|
|
@@ -21050,7 +21050,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21050
21050
|
});
|
|
21051
21051
|
}
|
|
21052
21052
|
loadEmpty() {
|
|
21053
|
-
this.fire(new o.Event("dataloading", { dataType: "style" })), this._load(
|
|
21053
|
+
this.fire(new o.Event("dataloading", { dataType: "style" })), this._load(po, !1);
|
|
21054
21054
|
}
|
|
21055
21055
|
_updateLayerCount(n, s) {
|
|
21056
21056
|
const u = s ? 1 : -1;
|
|
@@ -21233,7 +21233,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21233
21233
|
for (H in U = U || {}, z = z || {})
|
|
21234
21234
|
z.hasOwnProperty(H) && (U.hasOwnProperty(H) || wi(H, q, Z));
|
|
21235
21235
|
for (H in U)
|
|
21236
|
-
U.hasOwnProperty(H) && (z.hasOwnProperty(H) ? P(z[H], U[H]) || (z[H].type === "geojson" && U[H].type === "geojson" &&
|
|
21236
|
+
U.hasOwnProperty(H) && (z.hasOwnProperty(H) ? P(z[H], U[H]) || (z[H].type === "geojson" && U[H].type === "geojson" && co(z, U, H) ? q.push({ command: Nt.setGeoJSONSourceData, args: [H, U[H].data] }) : zr(H, U, q, Z)) : Li(H, U, q));
|
|
21237
21237
|
})(d.sources, f.sources, E, w);
|
|
21238
21238
|
const I = [];
|
|
21239
21239
|
d.layers && d.layers.forEach((z) => {
|
|
@@ -21242,7 +21242,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21242
21242
|
let M = d.terrain;
|
|
21243
21243
|
M && w[M.source] && (v.push({ command: Nt.setTerrain, args: [void 0] }), M = void 0), v = v.concat(E), P(M, f.terrain) || v.push({ command: Nt.setTerrain, args: [f.terrain] }), function(z, U, q) {
|
|
21244
21244
|
U = U || [];
|
|
21245
|
-
const Z = (z = z || []).map(je), H = U.map(je), V = z.reduce(
|
|
21245
|
+
const Z = (z = z || []).map(je), H = U.map(je), V = z.reduce(Jr, {}), G = U.reduce(Jr, {}), J = Z.slice(), K = /* @__PURE__ */ Object.create(null);
|
|
21246
21246
|
let re, de, ue, me, Re, Se, ye;
|
|
21247
21247
|
for (re = 0, de = 0; re < Z.length; re++)
|
|
21248
21248
|
ue = Z[re], G.hasOwnProperty(ue) ? de++ : (q.push({ command: Nt.removeLayer, args: [ue] }), J.splice(J.indexOf(ue, de), 1));
|
|
@@ -21744,7 +21744,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21744
21744
|
const z = this.crossTileSymbolIndex.addLayer(M, E[M.source], n.center.lng, n.projection);
|
|
21745
21745
|
v = v || z;
|
|
21746
21746
|
}
|
|
21747
|
-
if (this.crossTileSymbolIndex.pruneUnusedLayers(this._order), f = f || this._layerOrderChanged || u === 0, this._layerOrderChanged && this.fire(new o.Event("neworder")), (f || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(o.exported.now(), n.zoom)) && (this.pauseablePlacement = new
|
|
21747
|
+
if (this.crossTileSymbolIndex.pruneUnusedLayers(this._order), f = f || this._layerOrderChanged || u === 0, this._layerOrderChanged && this.fire(new o.Event("neworder")), (f || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(o.exported.now(), n.zoom)) && (this.pauseablePlacement = new eo(n, this._order, f, s, u, d, this.placement, this.fog && n.projection.supportsFog ? this.fog.state : null), this._layerOrderChanged = !1), this.pauseablePlacement.isDone() ? this.placement.setStale() : (this.pauseablePlacement.continuePlacement(this._order, this._layers, E), this.pauseablePlacement.isDone() && (this.placement = this.pauseablePlacement.commit(o.exported.now()), w = !0), v && this.pauseablePlacement.placement.setStale()), w || v)
|
|
21748
21748
|
for (const I of this._order) {
|
|
21749
21749
|
const M = this._layers[I];
|
|
21750
21750
|
M.type === "symbol" && this.placement.updateLayerOpacities(M, E[M.source]);
|
|
@@ -24047,7 +24047,7 @@ precision highp float;
|
|
|
24047
24047
|
}, oc = (l, n, s, u, d, f, v) => {
|
|
24048
24048
|
const w = l.transform, E = w.calculatePixelsToTileUnitsMatrix(n);
|
|
24049
24049
|
return { u_matrix: sc(l, n, s, u), u_pixels_to_tile_units: E, u_device_pixel_ratio: f, u_units_to_pixels: [1 / w.pixelsToGLUnits[0], 1 / w.pixelsToGLUnits[1]], u_dash_image: 0, u_gradient_image: 1, u_image_height: d, u_texsize: Ya(s) ? n.lineAtlasTexture.size : [0, 0], u_tile_units_to_pixels: Xa(n, l.transform), u_alpha_discard_threshold: 0, u_trim_offset: v };
|
|
24050
|
-
},
|
|
24050
|
+
}, Br = (l, n, s, u, d) => {
|
|
24051
24051
|
const f = l.transform;
|
|
24052
24052
|
return { u_matrix: sc(l, n, s, u), u_texsize: n.imageAtlasTexture.size, u_pixels_to_tile_units: f.calculatePixelsToTileUnitsMatrix(n), u_device_pixel_ratio: d, u_image: 0, u_tile_units_to_pixels: Xa(n, f), u_units_to_pixels: [1 / f.pixelsToGLUnits[0], 1 / f.pixelsToGLUnits[1]], u_alpha_discard_threshold: 0 };
|
|
24053
24053
|
};
|
|
@@ -24201,22 +24201,22 @@ precision highp float;
|
|
|
24201
24201
|
const gr = s.layout.get("icon-size").constantOr(0) !== 1 || Le.iconsNeedLinear;
|
|
24202
24202
|
jt = Fe.imageAtlasTexture, Ot = He || l.options.rotating || l.options.zooming || gr || ve ? q.LINEAR : q.NEAREST, zt = Fe.imageAtlasTexture.size;
|
|
24203
24203
|
}
|
|
24204
|
-
const At = Le.projection.name === "globe", Oi = At ? it : ye, Mi = At ? o.globeToMercatorTransition(Z.zoom) : 0, Gi = Ps(we, Le.getProjection(), Z), ji = Z.calculatePixelsToTileUnitsMatrix(Fe), er = or(Gi, Fe.tileID.canonical, V, H, Z, Le.getProjection(), ji), ar = l.terrain && V && G ? o.invert(o.create(), er) : Ws, Xn = Bu(Gi, Fe.tileID.canonical, V, H, Z, Le.getProjection(), ji),
|
|
24204
|
+
const At = Le.projection.name === "globe", Oi = At ? it : ye, Mi = At ? o.globeToMercatorTransition(Z.zoom) : 0, Gi = Ps(we, Le.getProjection(), Z), ji = Z.calculatePixelsToTileUnitsMatrix(Fe), er = or(Gi, Fe.tileID.canonical, V, H, Z, Le.getProjection(), ji), ar = l.terrain && V && G ? o.invert(o.create(), er) : Ws, Xn = Bu(Gi, Fe.tileID.canonical, V, H, Z, Le.getProjection(), ji), Ur = me && Le.hasTextData(), Xi = s.layout.get("icon-text-fit") !== "none" && Ur && Le.hasIconData();
|
|
24205
24205
|
if (G) {
|
|
24206
|
-
const gr = Z.elevation,
|
|
24207
|
-
_i(Le, Gi, l, d,
|
|
24206
|
+
const gr = Z.elevation, jr = gr ? gr.getAtTileOffsetFunc(we, Z.center.lat, Z.worldSize, Le.getProjection()) : null, $r = Ra(Gi, Fe.tileID.canonical, V, H, Z, Le.getProjection(), ji);
|
|
24207
|
+
_i(Le, Gi, l, d, $r, Xn, V, I, jr, we);
|
|
24208
24208
|
}
|
|
24209
24209
|
const Zi = G || d && me || Xi, Ci = l.translatePosMatrix(Gi, Fe, f, v), _n = Zi ? Ws : er, $n = l.translatePosMatrix(Xn, Fe, f, v, !0), qi = Le.getProjection().createInversionMatrix(Z, we.canonical), Yn = [];
|
|
24210
24210
|
l.terrainRenderModeElevated() && V && Yn.push("PITCH_WITH_MAP_TERRAIN"), At && Yn.push("PROJECTION_GLOBE_VIEW"), Zi && Yn.push("PROJECTED_POS_ON_VIEWPORT");
|
|
24211
24211
|
const ra = He && s.paint.get(d ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
24212
|
-
let
|
|
24213
|
-
|
|
24214
|
-
const Vn = { program: l.useProgram(ih(He, d, Le), ze, Yn), buffers: Je, uniformValues:
|
|
24212
|
+
let no;
|
|
24213
|
+
no = He ? Le.iconsInText ? Ja(nt.kind, De, J, V, l, Ci, _n, $n, zt, ai, we, Mi, ue, qi, Oi, Le.getProjection()) : Qu(nt.kind, De, J, V, l, Ci, _n, $n, d, zt, !0, we, Mi, ue, qi, Oi, Le.getProjection()) : Ka(nt.kind, De, J, V, l, Ci, _n, $n, d, zt, we, Mi, ue, qi, Oi, Le.getProjection());
|
|
24214
|
+
const Vn = { program: l.useProgram(ih(He, d, Le), ze, Yn), buffers: Je, uniformValues: no, atlasTexture: jt, atlasTextureIcon: $t, atlasInterpolation: Ot, atlasInterpolationIcon: Wt, isSDF: He, hasHalo: ra, tile: Fe, labelPlaneMatrixInv: ar };
|
|
24215
24215
|
if (K && Le.canOverlap) {
|
|
24216
24216
|
re = !0;
|
|
24217
24217
|
const gr = Je.segments.get();
|
|
24218
|
-
for (const
|
|
24219
|
-
Se.push({ segments: new o.SegmentVector([
|
|
24218
|
+
for (const jr of gr)
|
|
24219
|
+
Se.push({ segments: new o.SegmentVector([jr]), sortKey: jr.sortKey, state: Vn });
|
|
24220
24220
|
} else
|
|
24221
24221
|
Se.push({ segments: Je.segments, sortKey: 0, state: Vn });
|
|
24222
24222
|
}
|
|
@@ -24397,12 +24397,12 @@ precision highp float;
|
|
|
24397
24397
|
I.draw(u, f.TRIANGLES, z, U, o.ColorMode.alphaBlended, o.CullFaceMode.disabled, ns(E, o.Color.transparent, de), Z, me, Re, Se, null, null, null, [M._globeTileDebugTextBuffer]);
|
|
24398
24398
|
}
|
|
24399
24399
|
function dc(l, n, s, u) {
|
|
24400
|
-
|
|
24400
|
+
Nr(l, 0, n + s / 2, l.transform.width, s, u);
|
|
24401
24401
|
}
|
|
24402
24402
|
function Qa(l, n, s, u) {
|
|
24403
|
-
|
|
24403
|
+
Nr(l, n - s / 2, 0, s, l.transform.height, u);
|
|
24404
24404
|
}
|
|
24405
|
-
function
|
|
24405
|
+
function Nr(l, n, s, u, d, f) {
|
|
24406
24406
|
const v = l.context, w = v.gl;
|
|
24407
24407
|
w.enable(w.SCISSOR_TEST), w.scissor(n * o.exported.devicePixelRatio, s * o.exported.devicePixelRatio, u * o.exported.devicePixelRatio, d * o.exported.devicePixelRatio), v.clear({ color: f }), w.disable(w.SCISSOR_TEST);
|
|
24408
24408
|
}
|
|
@@ -24552,7 +24552,7 @@ precision highp float;
|
|
|
24552
24552
|
}
|
|
24553
24553
|
let [we, Fe] = s.paint.get("line-trim-offset");
|
|
24554
24554
|
(it === "round" || it === "square") && we !== Fe && (we === 0 && (we -= 1), Fe === 1 && (Fe += 1));
|
|
24555
|
-
const Le = l.terrain ? re.projMatrix : null, Je = q ?
|
|
24555
|
+
const Le = l.terrain ? re.projMatrix : null, Je = q ? Br(l, de, s, Le, E) : oc(l, de, s, Le, ue.lineClipsArray.length, E, [we, Fe]);
|
|
24556
24556
|
if (Z) {
|
|
24557
24557
|
const He = ue.gradients[s.id];
|
|
24558
24558
|
let nt = He.texture;
|
|
@@ -24902,7 +24902,7 @@ precision highp float;
|
|
|
24902
24902
|
dc(E, E.transform.height - (I.top || 0), 3, fp), dc(E, I.bottom || 0, 3, mp), Qa(E, I.left || 0, 3, uc), Qa(E, E.transform.width - (I.right || 0), 3, hc);
|
|
24903
24903
|
const M = E.transform.centerPoint;
|
|
24904
24904
|
(function(z, U, q, Z) {
|
|
24905
|
-
|
|
24905
|
+
Nr(z, U - 1, q - 10, 2, 20, Z), Nr(z, U - 10, q - 1, 20, 2, Z);
|
|
24906
24906
|
})(E, M.x, E.transform.height - M.y, oh);
|
|
24907
24907
|
}(this), this.context.setDefault(), this.frameCounter = (this.frameCounter + 1) % Number.MAX_SAFE_INTEGER, this.tileLoaded && this.options.speedIndexTiming && (this.loadTimeStamps.push(o.window.performance.now()), this.saveCanvasCopy());
|
|
24908
24908
|
}
|
|
@@ -25188,13 +25188,13 @@ precision highp float;
|
|
|
25188
25188
|
}
|
|
25189
25189
|
}
|
|
25190
25190
|
function tl(l, n) {
|
|
25191
|
-
const s =
|
|
25192
|
-
const M = new o.LngLat(w.lng - 180 *
|
|
25191
|
+
const s = fo(l.projection, l.zoom, l.width, l.height), u = function(f, v, w, E, I) {
|
|
25192
|
+
const M = new o.LngLat(w.lng - 180 * mo, w.lat), z = new o.LngLat(w.lng + 180 * mo, w.lat), U = f.project(M.lng, M.lat), q = f.project(z.lng, z.lat), Z = -Math.atan2(q.y - U.y, q.x - U.x), H = o.MercatorCoordinate.fromLngLat(w);
|
|
25193
25193
|
H.y = o.clamp(H.y, -0.999975, 0.999975);
|
|
25194
25194
|
const V = H.toLngLat(), G = f.project(V.lng, V.lat), J = o.MercatorCoordinate.fromLngLat(V);
|
|
25195
|
-
J.x +=
|
|
25195
|
+
J.x += mo;
|
|
25196
25196
|
const K = J.toLngLat(), re = f.project(K.lng, K.lat), de = gc(re.x - G.x, re.y - G.y, Z), ue = o.MercatorCoordinate.fromLngLat(V);
|
|
25197
|
-
ue.y +=
|
|
25197
|
+
ue.y += mo;
|
|
25198
25198
|
const me = ue.toLngLat(), Re = f.project(me.lng, me.lat), Se = gc(Re.x - G.x, Re.y - G.y, Z), ye = Math.abs(de.x) / Math.abs(Se.y), it = o.identity([]);
|
|
25199
25199
|
o.rotateZ(it, it, -Z * (1 - (I ? 0 : E)));
|
|
25200
25200
|
const we = o.identity([]);
|
|
@@ -25203,19 +25203,19 @@ precision highp float;
|
|
|
25203
25203
|
return o.scale(u, u, [d, d, 1]), u;
|
|
25204
25204
|
}
|
|
25205
25205
|
function Ys(l) {
|
|
25206
|
-
const n = l.projection, s =
|
|
25206
|
+
const n = l.projection, s = fo(l.projection, l.zoom, l.width, l.height), u = il(n, l.center), d = il(n, o.LngLat.convert(n.center));
|
|
25207
25207
|
return Math.pow(2, u * s + (1 - s) * d);
|
|
25208
25208
|
}
|
|
25209
|
-
function
|
|
25209
|
+
function fo(l, n, s, u, d = 1 / 0) {
|
|
25210
25210
|
const f = l.range;
|
|
25211
25211
|
if (!f)
|
|
25212
25212
|
return 0;
|
|
25213
25213
|
const v = Math.min(d, Math.max(s, u)), w = Math.log(v / 1024) / Math.LN2;
|
|
25214
25214
|
return o.smoothstep(f[0] + w, f[1] + w, n);
|
|
25215
25215
|
}
|
|
25216
|
-
const
|
|
25216
|
+
const mo = 1 / 4e4;
|
|
25217
25217
|
function il(l, n) {
|
|
25218
|
-
const s = o.clamp(n.lat, -o.MAX_MERCATOR_LATITUDE, o.MAX_MERCATOR_LATITUDE), u = new o.LngLat(n.lng - 180 *
|
|
25218
|
+
const s = o.clamp(n.lat, -o.MAX_MERCATOR_LATITUDE, o.MAX_MERCATOR_LATITUDE), u = new o.LngLat(n.lng - 180 * mo, s), d = new o.LngLat(n.lng + 180 * mo, s), f = l.project(u.lng, s), v = l.project(d.lng, s), w = o.MercatorCoordinate.fromLngLat(u), E = o.MercatorCoordinate.fromLngLat(d), I = v.x - f.x, M = v.y - f.y, z = E.x - w.x, U = E.y - w.y, q = Math.sqrt((z * z + U * U) / (I * I + M * M));
|
|
25219
25219
|
return Math.log(q) / Math.LN2;
|
|
25220
25220
|
}
|
|
25221
25221
|
function gc(l, n, s) {
|
|
@@ -25800,7 +25800,7 @@ precision highp float;
|
|
|
25800
25800
|
return;
|
|
25801
25801
|
const n = this.centerOffset, s = this.pixelsPerMeter;
|
|
25802
25802
|
this.projection.name === "globe" && (this._mercatorScaleRatio = o.mercatorZfromAltitude(1, this.center.lat) / o.mercatorZfromAltitude(1, o.GLOBE_SCALE_MATCH_LATITUDE));
|
|
25803
|
-
const u =
|
|
25803
|
+
const u = fo(this.projection, this.zoom, this.width, this.height, 1024);
|
|
25804
25804
|
this._pixelsPerMercatorPixel = this.projection.pixelSpaceConversion(this.center.lat, this.worldSize, u), this.cameraToCenterDistance = 0.5 / Math.tan(0.5 * this._fov) * this.height * this._pixelsPerMercatorPixel, this._updateCameraState(), this._farZ = this.projection.farthestPixelDistance(this), this._nearZ = this.height / 50;
|
|
25805
25805
|
const d = this._camera.getWorldToCamera(this.worldSize, this.projection.zAxisUnit === "meters" ? s : 1), f = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, this._farZ);
|
|
25806
25806
|
f[8] = 2 * -n.x / this.width, f[9] = 2 * n.y / this.height;
|
|
@@ -25920,7 +25920,7 @@ precision highp float;
|
|
|
25920
25920
|
}
|
|
25921
25921
|
}
|
|
25922
25922
|
getCameraToCenterDistance(n, s = this.zoom) {
|
|
25923
|
-
const u =
|
|
25923
|
+
const u = fo(n, s, this.width, this.height, 1024), d = n.pixelSpaceConversion(this.center.lat, this.worldSize, u);
|
|
25924
25924
|
return 0.5 / Math.tan(0.5 * this._fov) * this.height * d;
|
|
25925
25925
|
}
|
|
25926
25926
|
getWorldToCameraMatrix() {
|
|
@@ -26484,7 +26484,7 @@ precision highp float;
|
|
|
26484
26484
|
if (!d)
|
|
26485
26485
|
return;
|
|
26486
26486
|
n.preventDefault();
|
|
26487
|
-
const [f, v] = d, w =
|
|
26487
|
+
const [f, v] = d, w = to(u, s, f), E = to(u, s, v);
|
|
26488
26488
|
if (!w || !E)
|
|
26489
26489
|
return;
|
|
26490
26490
|
const I = this._aroundCenter ? null : w.add(E).div(2);
|
|
@@ -26493,7 +26493,7 @@ precision highp float;
|
|
|
26493
26493
|
touchend(n, s, u) {
|
|
26494
26494
|
if (!this._firstTwoTouches)
|
|
26495
26495
|
return;
|
|
26496
|
-
const [d, f] = this._firstTwoTouches, v =
|
|
26496
|
+
const [d, f] = this._firstTwoTouches, v = to(u, s, d), w = to(u, s, f);
|
|
26497
26497
|
v && w || (this._active && Dt(), this.reset());
|
|
26498
26498
|
}
|
|
26499
26499
|
touchcancel() {
|
|
@@ -26512,7 +26512,7 @@ precision highp float;
|
|
|
26512
26512
|
return this._active;
|
|
26513
26513
|
}
|
|
26514
26514
|
}
|
|
26515
|
-
function
|
|
26515
|
+
function to(l, n, s) {
|
|
26516
26516
|
for (let u = 0; u < l.length; u++)
|
|
26517
26517
|
if (l[u].identifier === s)
|
|
26518
26518
|
return n[u];
|
|
@@ -26771,7 +26771,7 @@ precision highp float;
|
|
|
26771
26771
|
return this._clickZoom.isActive() || this._tapZoom.isActive();
|
|
26772
26772
|
}
|
|
26773
26773
|
}
|
|
26774
|
-
class
|
|
26774
|
+
class io {
|
|
26775
26775
|
constructor() {
|
|
26776
26776
|
this.reset();
|
|
26777
26777
|
}
|
|
@@ -26856,7 +26856,7 @@ precision highp float;
|
|
|
26856
26856
|
return this._mousePan.isActive() || this._touchPan.isActive();
|
|
26857
26857
|
}
|
|
26858
26858
|
}
|
|
26859
|
-
class
|
|
26859
|
+
class Fr {
|
|
26860
26860
|
constructor(n, s, u) {
|
|
26861
26861
|
this._pitchWithRotate = n.pitchWithRotate, this._mouseRotate = s, this._mousePitch = u;
|
|
26862
26862
|
}
|
|
@@ -26917,7 +26917,7 @@ precision highp float;
|
|
|
26917
26917
|
return s;
|
|
26918
26918
|
}
|
|
26919
26919
|
}
|
|
26920
|
-
function
|
|
26920
|
+
function _o(l) {
|
|
26921
26921
|
return l.panDelta && l.panDelta.mag() || l.zoomDelta || l.bearingDelta || l.pitchDelta;
|
|
26922
26922
|
}
|
|
26923
26923
|
class ta {
|
|
@@ -26937,14 +26937,14 @@ precision highp float;
|
|
|
26937
26937
|
this._add("mapEvent", new gp(s, n));
|
|
26938
26938
|
const d = s.boxZoom = new dh(s, n);
|
|
26939
26939
|
this._add("boxZoom", d);
|
|
26940
|
-
const f = new ph(), v = new
|
|
26940
|
+
const f = new ph(), v = new io();
|
|
26941
26941
|
s.doubleClickZoom = new bp(v, f), this._add("tapZoom", f), this._add("clickZoom", v);
|
|
26942
26942
|
const w = new bh();
|
|
26943
26943
|
this._add("tapDragZoom", w);
|
|
26944
26944
|
const E = s.touchPitch = new vh(s);
|
|
26945
26945
|
this._add("touchPitch", E);
|
|
26946
26946
|
const I = new vc(n), M = new xc(n);
|
|
26947
|
-
s.dragRotate = new
|
|
26947
|
+
s.dragRotate = new Fr(n, I, M), this._add("mouseRotate", I, ["mousePitch"]), this._add("mousePitch", M, ["mouseRotate"]);
|
|
26948
26948
|
const z = new fh(n), U = new mh(s, n);
|
|
26949
26949
|
s.dragPan = new hs(u, z, U), this._add("mousePan", z), this._add("touchPan", U, ["touchZoom", "touchRotate"]);
|
|
26950
26950
|
const q = new yh(), Z = new _h();
|
|
@@ -27011,7 +27011,7 @@ precision highp float;
|
|
|
27011
27011
|
const M = {};
|
|
27012
27012
|
for (const U in this._previousActiveHandlers)
|
|
27013
27013
|
w[U] || (M[U] = d);
|
|
27014
|
-
this._previousActiveHandlers = w, (Object.keys(M).length ||
|
|
27014
|
+
this._previousActiveHandlers = w, (Object.keys(M).length || _o(f)) && (this._changes.push([f, v, M]), this._triggerRenderFrame()), (Object.keys(w).length || _o(f)) && this._map._stop(!0), this._updatingCamera = !1;
|
|
27015
27015
|
const { cameraAnimation: z } = f;
|
|
27016
27016
|
z && (this._inertia.clear(), this._fireEvents({}, {}, !0), this._changes = [], z(this._map));
|
|
27017
27017
|
}
|
|
@@ -27033,11 +27033,11 @@ precision highp float;
|
|
|
27033
27033
|
if (((J) => {
|
|
27034
27034
|
const K = this._eventsInProgress.drag;
|
|
27035
27035
|
return K && !this._handlersById[K.handlerName].isActive();
|
|
27036
|
-
})() && !
|
|
27036
|
+
})() && !_o(n)) {
|
|
27037
27037
|
const J = f.zoom;
|
|
27038
27038
|
f.cameraElevationReference = "sea", f.recenterOnTerrain(), f.cameraElevationReference = "ground", J !== f.zoom && this._map._update(!0);
|
|
27039
27039
|
}
|
|
27040
|
-
if (f._isCameraConstrained && d._stop(!0), !
|
|
27040
|
+
if (f._isCameraConstrained && d._stop(!0), !_o(n))
|
|
27041
27041
|
return void this._fireEvents(s, u, !0);
|
|
27042
27042
|
let { panDelta: w, zoomDelta: E, bearingDelta: I, pitchDelta: M, around: z, aroundCoord: U, pinchAround: q } = n;
|
|
27043
27043
|
f._isCameraConstrained && (E > 0 && (E = 0), f._isCameraConstrained = !1), q !== void 0 && (z = q), ((J) => s.drag && !this._eventsInProgress.drag)() && z && (this._dragOrigin = v(f.pointCoordinate3D(z)), this._trackingEllipsoid.setup(f._camera.position, this._dragOrigin)), f.cameraElevationReference = "sea", d._stop(!0), z = z || d.transform.centerPoint, I && (f.bearing += I), M && (f.pitch += M), f._updateCameraState();
|
|
@@ -30819,7 +30819,7 @@ function HI({ selectionChanged: m, children: g }) {
|
|
|
30819
30819
|
const Zm = Mn({
|
|
30820
30820
|
key: "directionsResponse",
|
|
30821
30821
|
default: null
|
|
30822
|
-
}),
|
|
30822
|
+
}), kr = {
|
|
30823
30823
|
TO: "TO",
|
|
30824
30824
|
FROM: "FROM"
|
|
30825
30825
|
}, XI = "data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";
|
|
@@ -30829,9 +30829,9 @@ function Mv({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30829
30829
|
return Ee === Cs.Google && ft.properties.type === "google_places" ? qI(ft) : Promise.resolve(ft);
|
|
30830
30830
|
}
|
|
30831
30831
|
function Qe(ft) {
|
|
30832
|
-
ot ===
|
|
30832
|
+
ot === kr.TO ? _t(ft).then((ii) => {
|
|
30833
30833
|
Kt(ii), P.current.setDisplayText(ii.properties.name);
|
|
30834
|
-
}, () => st(!1)) : ot ===
|
|
30834
|
+
}, () => st(!1)) : ot === kr.FROM && _t(ft).then((ii) => {
|
|
30835
30835
|
Jt(ii), $.current.setDisplayText(ii.properties.name);
|
|
30836
30836
|
}, () => st(!1)), ge(!1), kt(!1), Xe([]);
|
|
30837
30837
|
}
|
|
@@ -30862,17 +30862,17 @@ function Mv({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30862
30862
|
Rt(ft), ei(ft), Xe([]), st(!0), ge(!1);
|
|
30863
30863
|
}
|
|
30864
30864
|
function ei(ft) {
|
|
30865
|
-
ft ===
|
|
30865
|
+
ft === kr.TO ? Kt() : ft === kr.FROM && Jt();
|
|
30866
30866
|
}
|
|
30867
30867
|
function wt(ft) {
|
|
30868
|
-
ft ===
|
|
30868
|
+
ft === kr.TO ? (Xe([]), P.current.getValue() && (kt(!0), P.current.triggerSearch())) : ft === kr.FROM && (Xe([]), $.current.getValue() && (kt(!0), $.current.triggerSearch()));
|
|
30869
30869
|
}
|
|
30870
30870
|
function ci() {
|
|
30871
30871
|
(ht || ri) && (ri ? P.current.setDisplayText(ri.properties.name) : P.current.clear(), ht ? $.current.setDisplayText(ht.properties.name) : $.current.clear(), Kt(ri), Jt(ht));
|
|
30872
30872
|
}
|
|
30873
30873
|
return hi(() => {
|
|
30874
30874
|
var ft;
|
|
30875
|
-
if (vt(Fn.MAX), (b == null ? void 0 : b.id) === "USER_POSITION" && (x == null ? void 0 : x.id) === "USER_POSITION" && (x = void 0), x != null && x.properties && !Te && (P.current.setDisplayText(x.properties.name), Kt(x)), b != null && b.properties ? ($.current.setDisplayText(b.properties.name), Jt(b)) : Rt(
|
|
30875
|
+
if (vt(Fn.MAX), (b == null ? void 0 : b.id) === "USER_POSITION" && (x == null ? void 0 : x.id) === "USER_POSITION" && (x = void 0), x != null && x.properties && !Te && (P.current.setDisplayText(x.properties.name), Kt(x)), b != null && b.properties ? ($.current.setDisplayText(b.properties.name), Jt(b)) : Rt(kr.FROM), D && !((ft = $.current) != null && ft.getValue())) {
|
|
30876
30876
|
const ii = B.current.closest(".sheet");
|
|
30877
30877
|
ii ? ii.addEventListener("transitionend", () => {
|
|
30878
30878
|
b !== "USER_POSITION_PENDING" && (x == null ? void 0 : x.id) !== "USER_POSITION" && $.current.focusInput();
|
|
@@ -30926,9 +30926,9 @@ function Mv({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30926
30926
|
mapsindoors: !0,
|
|
30927
30927
|
google: Ee === Cs.Google,
|
|
30928
30928
|
placeholder: "Search by name, category, building...",
|
|
30929
|
-
results: (ft) => ct(ft,
|
|
30930
|
-
clicked: () => si(
|
|
30931
|
-
cleared: () => Ze(
|
|
30929
|
+
results: (ft) => ct(ft, kr.FROM),
|
|
30930
|
+
clicked: () => si(kr.FROM),
|
|
30931
|
+
cleared: () => Ze(kr.FROM)
|
|
30932
30932
|
}
|
|
30933
30933
|
)
|
|
30934
30934
|
] }),
|
|
@@ -30950,9 +30950,9 @@ function Mv({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30950
30950
|
mapsindoors: !0,
|
|
30951
30951
|
google: Ee === Cs.Google,
|
|
30952
30952
|
placeholder: "Search by name, category, building...",
|
|
30953
|
-
results: (ft) => ct(ft,
|
|
30954
|
-
clicked: () => si(
|
|
30955
|
-
cleared: () => Ze(
|
|
30953
|
+
results: (ft) => ct(ft, kr.TO),
|
|
30954
|
+
clicked: () => si(kr.TO),
|
|
30955
|
+
cleared: () => Ze(kr.TO)
|
|
30956
30956
|
}
|
|
30957
30957
|
)
|
|
30958
30958
|
] }),
|
|
@@ -31137,14 +31137,14 @@ const _m = (m) => {
|
|
|
31137
31137
|
return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
31138
31138
|
}, [g, m]), g;
|
|
31139
31139
|
}, QI = window.mapsindoors;
|
|
31140
|
-
let
|
|
31140
|
+
let wr;
|
|
31141
31141
|
function Rv({ isOpen: m, onBack: g }) {
|
|
31142
31142
|
const [x, b] = Qt(null), S = An(null), D = An(null), [B, o] = Qt(), [P, $] = Qt(), ie = Ti(Yo), Q = Ti(Sv), se = Ti(Zm), [, Te] = tn(Iv), Ee = _m("(min-width: 992px)");
|
|
31143
31143
|
hi(() => {
|
|
31144
31144
|
if (b(null), m && se) {
|
|
31145
31145
|
o(se.totalDistance), $(se.totalTime);
|
|
31146
31146
|
const yt = Math.min(window.innerHeight, window.innerWidth) * 0.06;
|
|
31147
|
-
|
|
31147
|
+
wr == null || wr.setRoute(null), wr = null, wr = new QI.directions.DirectionsRenderer({
|
|
31148
31148
|
mapsIndoors: ie,
|
|
31149
31149
|
fitBoundsPadding: {
|
|
31150
31150
|
top: yt,
|
|
@@ -31152,10 +31152,10 @@ function Rv({ isOpen: m, onBack: g }) {
|
|
|
31152
31152
|
left: Ee ? st() : yt,
|
|
31153
31153
|
right: yt
|
|
31154
31154
|
}
|
|
31155
|
-
}),
|
|
31155
|
+
}), wr.setRoute(se.directionsResult), wr.setStepIndex(0), D.current.location = se.originLocation, S.current.location = se.destinationLocation, se.destinationLocation.properties.name === "My Position" ? b(null) : b(ie.getDisplayRule(se.destinationLocation));
|
|
31156
31156
|
}
|
|
31157
31157
|
}, [m, se, ie, Q]), hi(() => {
|
|
31158
|
-
!m &&
|
|
31158
|
+
!m && wr && Dt();
|
|
31159
31159
|
}, [m]);
|
|
31160
31160
|
function $e() {
|
|
31161
31161
|
return se ? se.directionsResult.legs.reduce((yt, kt) => {
|
|
@@ -31167,10 +31167,10 @@ function Rv({ isOpen: m, onBack: g }) {
|
|
|
31167
31167
|
}, []) : [];
|
|
31168
31168
|
}
|
|
31169
31169
|
function ot() {
|
|
31170
|
-
|
|
31170
|
+
wr && wr.nextStep();
|
|
31171
31171
|
}
|
|
31172
31172
|
function Rt() {
|
|
31173
|
-
|
|
31173
|
+
wr && wr.previousStep();
|
|
31174
31174
|
}
|
|
31175
31175
|
function We() {
|
|
31176
31176
|
const yt = document.querySelector(".sheet--active");
|
|
@@ -31181,7 +31181,7 @@ function Rv({ isOpen: m, onBack: g }) {
|
|
|
31181
31181
|
return yt.offsetWidth + yt.offsetLeft * 2;
|
|
31182
31182
|
}
|
|
31183
31183
|
function Dt() {
|
|
31184
|
-
|
|
31184
|
+
wr.setRoute(null), wr = null;
|
|
31185
31185
|
}
|
|
31186
31186
|
function pe() {
|
|
31187
31187
|
Te(0), Dt(), g();
|