@mapsindoors/map-template 1.28.1 → 1.29.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-fd8614c9.mjs → combo-box-item.entry-31ffc1f2.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +26 -26
- package/dist/mapsindoors-webcomponent.es.js +979 -975
- package/dist/mapsindoors-webcomponent.umd.js +22 -22
- package/dist/{mi-card_2.entry-66fb656b.mjs → mi-card_2.entry-92831cc9.mjs} +1 -1
- package/dist/{mi-chip.entry-8addecba.mjs → mi-chip.entry-2969f778.mjs} +1 -1
- package/dist/{mi-column.entry-bdde1ba7.mjs → mi-column.entry-4ae9b170.mjs} +1 -1
- package/dist/{mi-combo-box.entry-fc3efb26.mjs → mi-combo-box.entry-399c04b9.mjs} +1 -1
- package/dist/{mi-data-table.entry-5bf63762.mjs → mi-data-table.entry-3a6ad546.mjs} +1 -1
- package/dist/{mi-distance_2.entry-1a5803a2.mjs → mi-distance_2.entry-32c5b61c.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-c3e44b3e.mjs → mi-dropdown-item.entry-8b168705.mjs} +1 -1
- package/dist/{mi-dropdown.entry-85890ee3.mjs → mi-dropdown.entry-a0958c8e.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-580652ad.mjs → mi-floor-selector.entry-d830a172.mjs} +1 -1
- package/dist/{mi-keyboard.entry-3ebbf18d.mjs → mi-keyboard.entry-77a815ed.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-8f68e321.mjs → mi-list-item-category.entry-8f01c41c.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-fcae73e7.mjs → mi-list-item-location.entry-dbfc72a9.mjs} +1 -1
- package/dist/{mi-list.entry-ad301ee2.mjs → mi-list.entry-6e4f31b3.mjs} +1 -1
- package/dist/{mi-location-booking.entry-a1f7f149.mjs → mi-location-booking.entry-bad308c4.mjs} +1 -1
- package/dist/{mi-location-info.entry-72574ce5.mjs → mi-location-info.entry-ff36930b.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-e0835297.mjs → mi-map-googlemaps.entry-f7791b85.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-1c66fbb1.mjs → mi-map-mapbox.entry-16a07aae.mjs} +1 -1
- package/dist/{mi-metric-card.entry-9a3cf9e9.mjs → mi-metric-card.entry-9dbf8a16.mjs} +1 -1
- package/dist/{mi-my-position.entry-1e945e68.mjs → mi-my-position.entry-feea0844.mjs} +1 -1
- package/dist/{mi-notification.entry-5278153f.mjs → mi-notification.entry-ebe7092b.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-ee4ef584.mjs → mi-route-instructions-heading.entry-425ef4e9.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-daf5fad1.mjs → mi-route-instructions-maneuver-legacy.entry-37f80796.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-dee27ba4.mjs → mi-route-instructions-maneuver.entry-d6e7f0cd.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-70c5f04b.mjs → mi-route-instructions-step-legacy.entry-5ead9a12.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-1626b0a8.mjs → mi-route-instructions-step.entry-8506967e.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-986ee264.mjs → mi-route-instructions.entry-6b3b132a.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-e906bd17.mjs → mi-scroll-buttons.entry-d8ada22f.mjs} +1 -1
- package/dist/{mi-search.entry-11a9f5a8.mjs → mi-search.entry-a0b3816f.mjs} +47 -46
- package/dist/{mi-share-sms.entry-6aee172e.mjs → mi-share-sms.entry-43a7dc60.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-50e62e06.mjs → mi-step-switcher.entry-8164577f.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-86250f11.mjs → mi-tab-panel.entry-e780b498.mjs} +1 -1
- package/dist/{mi-tab.entry-6b8a5866.mjs → mi-tab.entry-bcd650d1.mjs} +1 -1
- package/dist/{mi-tabs.entry-575c4c93.mjs → mi-tabs.entry-e888abb2.mjs} +1 -1
- package/dist/{mi-time.entry-9aef5f6b.mjs → mi-time.entry-63613eba.mjs} +1 -1
- package/dist/{reactcomponent-80b1433b.mjs → reactcomponent-600b77ca.mjs} +516 -513
- package/package.json +1 -1
|
@@ -80,7 +80,7 @@ function yT() {
|
|
|
80
80
|
// with.
|
|
81
81
|
$.$$typeof === at || $.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Zt($, Q, ue) {
|
|
84
84
|
var ke = $.displayName;
|
|
85
85
|
if (ke)
|
|
86
86
|
return ke;
|
|
@@ -120,7 +120,7 @@ function yT() {
|
|
|
120
120
|
var ue = $;
|
|
121
121
|
return un(ue._context) + ".Provider";
|
|
122
122
|
case A:
|
|
123
|
-
return
|
|
123
|
+
return Zt($, $.render, "ForwardRef");
|
|
124
124
|
case j:
|
|
125
125
|
var ke = $.displayName || null;
|
|
126
126
|
return ke !== null ? ke : Tt($.type) || "Memo";
|
|
@@ -284,7 +284,7 @@ function yT() {
|
|
|
284
284
|
} finally {
|
|
285
285
|
_t = !1, Ue.current = qe, vt(), Error.prepareStackTrace = rt;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
287
|
+
var qt = $ ? $.displayName || $.name : "", Fn = qt ? xt(qt) : "";
|
|
288
288
|
return typeof $ == "function" && Pt.set($, Fn), Fn;
|
|
289
289
|
}
|
|
290
290
|
function ln($, Q, ue) {
|
|
@@ -324,14 +324,14 @@ function yT() {
|
|
|
324
324
|
return "";
|
|
325
325
|
}
|
|
326
326
|
var Qn = Object.prototype.hasOwnProperty, Kn = {}, Ti = Pe.ReactDebugCurrentFrame;
|
|
327
|
-
function
|
|
327
|
+
function qi($) {
|
|
328
328
|
if ($) {
|
|
329
329
|
var Q = $._owner, ue = Nn($.type, $._source, Q ? Q.type : null);
|
|
330
330
|
Ti.setExtraStackFrame(ue);
|
|
331
331
|
} else
|
|
332
332
|
Ti.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Gt($, Q, ue, ke, rt) {
|
|
335
335
|
{
|
|
336
336
|
var qe = Function.call.bind(Qn);
|
|
337
337
|
for (var yt in $)
|
|
@@ -346,15 +346,15 @@ function yT() {
|
|
|
346
346
|
} catch (Bt) {
|
|
347
347
|
mt = Bt;
|
|
348
348
|
}
|
|
349
|
-
mt && !(mt instanceof Error) && (
|
|
349
|
+
mt && !(mt instanceof Error) && (qi(rt), _e("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ke || "React class", ue, yt, typeof mt), qi(null)), mt instanceof Error && !(mt.message in Kn) && (Kn[mt.message] = !0, qi(rt), _e("Failed %s type: %s", ue, mt.message), qi(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
var
|
|
354
|
-
function
|
|
355
|
-
return
|
|
353
|
+
var fi = Array.isArray;
|
|
354
|
+
function ei($) {
|
|
355
|
+
return fi($);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Zi($) {
|
|
358
358
|
{
|
|
359
359
|
var Q = typeof Symbol == "function" && Symbol.toStringTag, ue = Q && $[Symbol.toStringTag] || $.constructor.name || "Object";
|
|
360
360
|
return ue;
|
|
@@ -362,17 +362,17 @@ function yT() {
|
|
|
362
362
|
}
|
|
363
363
|
function cr($) {
|
|
364
364
|
try {
|
|
365
|
-
return
|
|
365
|
+
return nr($), !1;
|
|
366
366
|
} catch {
|
|
367
367
|
return !0;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function nr($) {
|
|
371
371
|
return "" + $;
|
|
372
372
|
}
|
|
373
373
|
function yr($) {
|
|
374
374
|
if (cr($))
|
|
375
|
-
return _e("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
375
|
+
return _e("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Zi($)), nr($);
|
|
376
376
|
}
|
|
377
377
|
var Ai = Pe.ReactCurrentOwner, Dr = {
|
|
378
378
|
key: !0,
|
|
@@ -381,7 +381,7 @@ function yT() {
|
|
|
381
381
|
__source: !0
|
|
382
382
|
}, Di, Ei, zi;
|
|
383
383
|
zi = {};
|
|
384
|
-
function
|
|
384
|
+
function Wi($) {
|
|
385
385
|
if (Qn.call($, "ref")) {
|
|
386
386
|
var Q = Object.getOwnPropertyDescriptor($, "ref").get;
|
|
387
387
|
if (Q && Q.isReactWarning)
|
|
@@ -457,7 +457,7 @@ function yT() {
|
|
|
457
457
|
function At($, Q, ue, ke, rt) {
|
|
458
458
|
{
|
|
459
459
|
var qe, yt = {}, mt = null, Rt = null;
|
|
460
|
-
ue !== void 0 && (yr(ue), mt = "" + ue), Gn(Q) && (yr(Q.key), mt = "" + Q.key),
|
|
460
|
+
ue !== void 0 && (yr(ue), mt = "" + ue), Gn(Q) && (yr(Q.key), mt = "" + Q.key), Wi(Q) && (Rt = Q.ref, ur(Q, rt));
|
|
461
461
|
for (qe in Q)
|
|
462
462
|
Qn.call(Q, qe) && !Dr.hasOwnProperty(qe) && (yt[qe] = Q[qe]);
|
|
463
463
|
if ($ && $.defaultProps) {
|
|
@@ -538,7 +538,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
538
538
|
{
|
|
539
539
|
if (typeof $ != "object")
|
|
540
540
|
return;
|
|
541
|
-
if (
|
|
541
|
+
if (ei($))
|
|
542
542
|
for (var ue = 0; ue < $.length; ue++) {
|
|
543
543
|
var ke = $[ue];
|
|
544
544
|
Ft(ke) && mi(ke, Q);
|
|
@@ -569,7 +569,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
569
569
|
return;
|
|
570
570
|
if (ue) {
|
|
571
571
|
var ke = Tt(Q);
|
|
572
|
-
|
|
572
|
+
Gt(ue, $.props, "prop", ke, $);
|
|
573
573
|
} else if (Q.PropTypes !== void 0 && !Ct) {
|
|
574
574
|
Ct = !0;
|
|
575
575
|
var rt = Tt(Q);
|
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
599
599
|
var Rt = bn(rt);
|
|
600
600
|
Rt ? mt += Rt : mt += cn();
|
|
601
601
|
var Bt;
|
|
602
|
-
$ === null ? Bt = "null" :
|
|
602
|
+
$ === null ? Bt = "null" : ei($) ? Bt = "array" : $ !== void 0 && $.$$typeof === u ? (Bt = "<" + (Tt($.type) || "Unknown") + " />", mt = " Did you accidentally export a JSX literal instead of a component?") : Bt = typeof $, _e("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Bt, mt);
|
|
603
603
|
}
|
|
604
604
|
var Jt = At($, Q, ue, rt, qe);
|
|
605
605
|
if (Jt == null)
|
|
@@ -608,9 +608,9 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
608
608
|
var pn = Q.children;
|
|
609
609
|
if (pn !== void 0)
|
|
610
610
|
if (ke)
|
|
611
|
-
if (
|
|
612
|
-
for (var
|
|
613
|
-
Ii(pn[
|
|
611
|
+
if (ei(pn)) {
|
|
612
|
+
for (var qt = 0; qt < pn.length; qt++)
|
|
613
|
+
Ii(pn[qt], $);
|
|
614
614
|
Object.freeze && Object.freeze(pn);
|
|
615
615
|
} else
|
|
616
616
|
_e("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -645,7 +645,7 @@ var xT = vT, xn = xT;
|
|
|
645
645
|
function bT(c) {
|
|
646
646
|
return !!c && typeof c.then == "function";
|
|
647
647
|
}
|
|
648
|
-
var
|
|
648
|
+
var di = bT;
|
|
649
649
|
function wT(c, u) {
|
|
650
650
|
if (c != null)
|
|
651
651
|
return c;
|
|
@@ -715,9 +715,9 @@ class TT extends yp {
|
|
|
715
715
|
map(u) {
|
|
716
716
|
try {
|
|
717
717
|
const p = u(this.contents);
|
|
718
|
-
return
|
|
718
|
+
return di(p) ? Pa(p) : Yl(p) ? p : Wu(p);
|
|
719
719
|
} catch (p) {
|
|
720
|
-
return
|
|
720
|
+
return di(p) ? (
|
|
721
721
|
// If we "suspended", then try again.
|
|
722
722
|
// errors and subsequent retries will be handled in 'loading' case
|
|
723
723
|
// $FlowFixMe[prop-missing]
|
|
@@ -786,7 +786,7 @@ class uv extends yp {
|
|
|
786
786
|
}
|
|
787
787
|
return m;
|
|
788
788
|
}).catch((p) => {
|
|
789
|
-
if (
|
|
789
|
+
if (di(p))
|
|
790
790
|
return p.then(() => this.map(u).contents);
|
|
791
791
|
throw p;
|
|
792
792
|
}));
|
|
@@ -809,7 +809,7 @@ function ST(c) {
|
|
|
809
809
|
return c.every((u) => u.state === "hasValue") ? Wu(c.map((u) => u.contents)) : c.some((u) => u.state === "hasError") ? vp(wi(c.find((u) => u.state === "hasError"), "Invalid loadable passed to loadableAll").contents) : Pa(Promise.all(c.map((u) => u.contents)));
|
|
810
810
|
}
|
|
811
811
|
function dv(c) {
|
|
812
|
-
const p = (Array.isArray(c) ? c : Object.getOwnPropertyNames(c).map((v) => c[v])).map((v) => Yl(v) ? v :
|
|
812
|
+
const p = (Array.isArray(c) ? c : Object.getOwnPropertyNames(c).map((v) => c[v])).map((v) => Yl(v) ? v : di(v) ? Pa(v) : Wu(v)), m = ST(p);
|
|
813
813
|
return Array.isArray(c) ? (
|
|
814
814
|
// $FlowIssue[incompatible-return]
|
|
815
815
|
m
|
|
@@ -830,7 +830,7 @@ function Yl(c) {
|
|
|
830
830
|
return c instanceof yp;
|
|
831
831
|
}
|
|
832
832
|
const CT = {
|
|
833
|
-
of: (c) =>
|
|
833
|
+
of: (c) => di(c) ? Pa(c) : Yl(c) ? c : Wu(c),
|
|
834
834
|
error: (c) => vp(c),
|
|
835
835
|
// $FlowIssue[incompatible-return]
|
|
836
836
|
loading: () => hv(),
|
|
@@ -899,13 +899,13 @@ xp.setFail = (c) => {
|
|
|
899
899
|
xp.clear = () => {
|
|
900
900
|
sc.RECOIL_GKS_ENABLED.clear();
|
|
901
901
|
};
|
|
902
|
-
var
|
|
902
|
+
var pi = xp;
|
|
903
903
|
function BT(c, u, {
|
|
904
904
|
error: p
|
|
905
905
|
} = {}) {
|
|
906
906
|
return process.env.NODE_ENV !== "production" && console.error(c, p), null;
|
|
907
907
|
}
|
|
908
|
-
var NT = BT,
|
|
908
|
+
var NT = BT, tr = NT, vm, xm, bm;
|
|
909
909
|
const FT = (
|
|
910
910
|
// flowlint-next-line unclear-type:off
|
|
911
911
|
(vm = Vn.createMutableSource) !== null && vm !== void 0 ? vm : Vn.unstable_createMutableSource
|
|
@@ -931,18 +931,18 @@ function UT() {
|
|
|
931
931
|
* https://fb.workplace.com/groups/reactjs/posts/9558682330846963/ */
|
|
932
932
|
Vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
933
933
|
), v = ((c = u == null ? void 0 : u.current) !== null && c !== void 0 ? c : p.currentDispatcher).useSyncExternalStore != null;
|
|
934
|
-
return Tg && !v && !G1 && (G1 = !0,
|
|
934
|
+
return Tg && !v && !G1 && (G1 = !0, tr("A React renderer without React 18+ API support is being used with React 18+.")), v;
|
|
935
935
|
}
|
|
936
936
|
function jT() {
|
|
937
|
-
return
|
|
937
|
+
return pi("recoil_transition_support") ? {
|
|
938
938
|
mode: "TRANSITION_SUPPORT",
|
|
939
939
|
early: !0,
|
|
940
940
|
concurrent: !0
|
|
941
|
-
} :
|
|
941
|
+
} : pi("recoil_sync_external_store") && Tg != null ? {
|
|
942
942
|
mode: "SYNC_EXTERNAL_STORE",
|
|
943
943
|
early: !0,
|
|
944
944
|
concurrent: !1
|
|
945
|
-
} :
|
|
945
|
+
} : pi("recoil_mutable_source") && pv != null && typeof window < "u" && !window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE ? pi("recoil_suppress_rerender_in_callback") ? {
|
|
946
946
|
mode: "MUTABLE_SOURCE",
|
|
947
947
|
early: !0,
|
|
948
948
|
concurrent: !0
|
|
@@ -950,7 +950,7 @@ function jT() {
|
|
|
950
950
|
mode: "MUTABLE_SOURCE",
|
|
951
951
|
early: !1,
|
|
952
952
|
concurrent: !1
|
|
953
|
-
} :
|
|
953
|
+
} : pi("recoil_suppress_rerender_in_callback") ? {
|
|
954
954
|
mode: "LEGACY",
|
|
955
955
|
early: !0,
|
|
956
956
|
concurrent: !1
|
|
@@ -1056,7 +1056,7 @@ function oE(c) {
|
|
|
1056
1056
|
const ip = /* @__PURE__ */ new Map();
|
|
1057
1057
|
function sE(c) {
|
|
1058
1058
|
var u;
|
|
1059
|
-
if (!
|
|
1059
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
1060
1060
|
return;
|
|
1061
1061
|
const p = za.get(c);
|
|
1062
1062
|
if (p != null && (u = p.shouldDeleteConfigOnRelease) !== null && u !== void 0 && u.call(p)) {
|
|
@@ -1065,7 +1065,7 @@ function sE(c) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
function aE(c, u) {
|
|
1068
|
-
|
|
1068
|
+
pi("recoil_memory_managament_2020") && (u === void 0 ? ip.delete(c) : ip.set(c, u));
|
|
1069
1069
|
}
|
|
1070
1070
|
function yv(c) {
|
|
1071
1071
|
return ip.get(c);
|
|
@@ -1180,7 +1180,7 @@ var hE = uE(function(c) {
|
|
|
1180
1180
|
children: At,
|
|
1181
1181
|
_modify: ze
|
|
1182
1182
|
};
|
|
1183
|
-
},
|
|
1183
|
+
}, Zt = function(Ce, ft, At) {
|
|
1184
1184
|
return {
|
|
1185
1185
|
type: J,
|
|
1186
1186
|
edit: Ce,
|
|
@@ -1193,7 +1193,7 @@ var hE = uE(function(c) {
|
|
|
1193
1193
|
}, Tt = function(Ce, ft, At, St, Nt) {
|
|
1194
1194
|
for (var ct = [], Ct = St, Ft = 0, cn = 0; Ct; ++cn)
|
|
1195
1195
|
Ct & 1 && (ct[cn] = Nt[Ft++]), Ct >>>= 1;
|
|
1196
|
-
return ct[ft] = At,
|
|
1196
|
+
return ct[ft] = At, Zt(Ce, Ft + 1, ct);
|
|
1197
1197
|
}, nn = function(Ce, ft, At, St) {
|
|
1198
1198
|
for (var Nt = new Array(ft - 1), ct = 0, Ct = 0, Ft = 0, cn = St.length; Ft < cn; ++Ft)
|
|
1199
1199
|
if (Ft !== At) {
|
|
@@ -1263,7 +1263,7 @@ var hE = uE(function(c) {
|
|
|
1263
1263
|
Ii = pe(mi, bn, Ge, cn);
|
|
1264
1264
|
} else
|
|
1265
1265
|
Ii = pe(mi, bn, Rn, cn);
|
|
1266
|
-
return mi ? (this.size = Ft, this.children = Ii, this) :
|
|
1266
|
+
return mi ? (this.size = Ft, this.children = Ii, this) : Zt(Ce, Ft, Ii);
|
|
1267
1267
|
};
|
|
1268
1268
|
Ge._modify = function(Oe, Ce, ft, At, St, Nt, ct) {
|
|
1269
1269
|
var Ct = At();
|
|
@@ -1405,23 +1405,23 @@ var hE = uE(function(c) {
|
|
|
1405
1405
|
be.prototype.endMutation = function() {
|
|
1406
1406
|
return Ti(this);
|
|
1407
1407
|
};
|
|
1408
|
-
var
|
|
1408
|
+
var qi = p.mutate = function(Oe, Ce) {
|
|
1409
1409
|
var ft = Kn(Ce);
|
|
1410
1410
|
return Oe(ft), Ti(ft);
|
|
1411
1411
|
};
|
|
1412
1412
|
be.prototype.mutate = function(Oe) {
|
|
1413
|
-
return
|
|
1413
|
+
return qi(Oe, this);
|
|
1414
1414
|
};
|
|
1415
|
-
var
|
|
1416
|
-
return Ce &&
|
|
1417
|
-
},
|
|
1415
|
+
var Gt = function(Ce) {
|
|
1416
|
+
return Ce && fi(Ce[0], Ce[1], Ce[2], Ce[3], Ce[4]);
|
|
1417
|
+
}, fi = function(Ce, ft, At, St, Nt) {
|
|
1418
1418
|
for (; At < Ce; ) {
|
|
1419
1419
|
var ct = ft[At++];
|
|
1420
1420
|
if (ct && !ot(ct))
|
|
1421
|
-
return
|
|
1421
|
+
return ei(ct, St, [Ce, ft, At, St, Nt]);
|
|
1422
1422
|
}
|
|
1423
|
-
return
|
|
1424
|
-
},
|
|
1423
|
+
return Gt(Nt);
|
|
1424
|
+
}, ei = function(Ce, ft, At) {
|
|
1425
1425
|
switch (Ce.type) {
|
|
1426
1426
|
case _e:
|
|
1427
1427
|
return {
|
|
@@ -1432,11 +1432,11 @@ var hE = uE(function(c) {
|
|
|
1432
1432
|
case J:
|
|
1433
1433
|
case Ie:
|
|
1434
1434
|
var St = Ce.children;
|
|
1435
|
-
return
|
|
1435
|
+
return fi(St.length, St, 0, ft, At);
|
|
1436
1436
|
default:
|
|
1437
|
-
return
|
|
1437
|
+
return Gt(At);
|
|
1438
1438
|
}
|
|
1439
|
-
},
|
|
1439
|
+
}, Zi = {
|
|
1440
1440
|
done: !0
|
|
1441
1441
|
};
|
|
1442
1442
|
function cr(Oe) {
|
|
@@ -1444,18 +1444,18 @@ var hE = uE(function(c) {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
cr.prototype.next = function() {
|
|
1446
1446
|
if (!this.v)
|
|
1447
|
-
return
|
|
1447
|
+
return Zi;
|
|
1448
1448
|
var Oe = this.v;
|
|
1449
|
-
return this.v =
|
|
1449
|
+
return this.v = Gt(Oe.rest), Oe;
|
|
1450
1450
|
}, cr.prototype[Symbol.iterator] = function() {
|
|
1451
1451
|
return this;
|
|
1452
1452
|
};
|
|
1453
|
-
var
|
|
1454
|
-
return new cr(
|
|
1453
|
+
var nr = function(Ce, ft) {
|
|
1454
|
+
return new cr(ei(Ce._root, ft));
|
|
1455
1455
|
}, yr = function(Ce) {
|
|
1456
1456
|
return [Ce.key, Ce.value];
|
|
1457
1457
|
}, Ai = p.entries = function(Oe) {
|
|
1458
|
-
return
|
|
1458
|
+
return nr(Oe, yr);
|
|
1459
1459
|
};
|
|
1460
1460
|
be.prototype.entries = be.prototype[Symbol.iterator] = function() {
|
|
1461
1461
|
return Ai(this);
|
|
@@ -1463,7 +1463,7 @@ var hE = uE(function(c) {
|
|
|
1463
1463
|
var Dr = function(Ce) {
|
|
1464
1464
|
return Ce.key;
|
|
1465
1465
|
}, Di = p.keys = function(Oe) {
|
|
1466
|
-
return
|
|
1466
|
+
return nr(Oe, Dr);
|
|
1467
1467
|
};
|
|
1468
1468
|
be.prototype.keys = function() {
|
|
1469
1469
|
return Di(this);
|
|
@@ -1471,12 +1471,12 @@ var hE = uE(function(c) {
|
|
|
1471
1471
|
var Ei = function(Ce) {
|
|
1472
1472
|
return Ce.value;
|
|
1473
1473
|
}, zi = p.values = be.prototype.values = function(Oe) {
|
|
1474
|
-
return
|
|
1474
|
+
return nr(Oe, Ei);
|
|
1475
1475
|
};
|
|
1476
1476
|
be.prototype.values = function() {
|
|
1477
1477
|
return zi(this);
|
|
1478
1478
|
};
|
|
1479
|
-
var
|
|
1479
|
+
var Wi = p.fold = function(Oe, Ce, ft) {
|
|
1480
1480
|
var At = ft._root;
|
|
1481
1481
|
if (At.type === _e)
|
|
1482
1482
|
return Oe(Ce, At.value, At.key);
|
|
@@ -1488,10 +1488,10 @@ var hE = uE(function(c) {
|
|
|
1488
1488
|
return Ce;
|
|
1489
1489
|
};
|
|
1490
1490
|
be.prototype.fold = function(Oe, Ce) {
|
|
1491
|
-
return
|
|
1491
|
+
return Wi(Oe, Ce, this);
|
|
1492
1492
|
};
|
|
1493
1493
|
var Gn = p.forEach = function(Oe, Ce) {
|
|
1494
|
-
return
|
|
1494
|
+
return Wi(function(ft, At, St) {
|
|
1495
1495
|
return Oe(At, St, Ce);
|
|
1496
1496
|
}, null, Ce);
|
|
1497
1497
|
};
|
|
@@ -1574,7 +1574,7 @@ class Cg {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
1576
|
function Ag(c) {
|
|
1577
|
-
return
|
|
1577
|
+
return pi("recoil_hamt_2020") ? new Cg(c) : new dE(c);
|
|
1578
1578
|
}
|
|
1579
1579
|
var pE = {
|
|
1580
1580
|
persistentMap: Ag
|
|
@@ -1637,7 +1637,7 @@ function wm(c, u, p, m) {
|
|
|
1637
1637
|
function xE(c, u, p, m) {
|
|
1638
1638
|
var v, b, S, r;
|
|
1639
1639
|
const A = p.getState();
|
|
1640
|
-
m === A.currentTree.version || m === ((v = A.nextTree) === null || v === void 0 ? void 0 : v.version) || m === ((b = A.previousTree) === null || b === void 0 ? void 0 : b.version) ||
|
|
1640
|
+
m === A.currentTree.version || m === ((v = A.nextTree) === null || v === void 0 ? void 0 : v.version) || m === ((b = A.previousTree) === null || b === void 0 ? void 0 : b.version) || tr("Tried to save dependencies to a discarded tree");
|
|
1641
1641
|
const D = p.getGraph(m);
|
|
1642
1642
|
if (wm(c, u, D), m === ((S = A.previousTree) === null || S === void 0 ? void 0 : S.version)) {
|
|
1643
1643
|
const j = p.getGraph(A.currentTree.version);
|
|
@@ -1782,7 +1782,7 @@ const {
|
|
|
1782
1782
|
class jE extends Error {
|
|
1783
1783
|
}
|
|
1784
1784
|
function $E(c, u, p) {
|
|
1785
|
-
if (!
|
|
1785
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
1786
1786
|
return () => {
|
|
1787
1787
|
};
|
|
1788
1788
|
const {
|
|
@@ -1798,7 +1798,7 @@ function $E(c, u, p) {
|
|
|
1798
1798
|
for (const b of p)
|
|
1799
1799
|
v(b);
|
|
1800
1800
|
return () => {
|
|
1801
|
-
if (!
|
|
1801
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
1802
1802
|
return;
|
|
1803
1803
|
const {
|
|
1804
1804
|
retention: b
|
|
@@ -1942,7 +1942,7 @@ function aS(c, {
|
|
|
1942
1942
|
}, p = c.getState().currentTree) {
|
|
1943
1943
|
var m, v;
|
|
1944
1944
|
const b = c.getState();
|
|
1945
|
-
p.version === b.currentTree.version || p.version === ((m = b.nextTree) === null || m === void 0 ? void 0 : m.version) || p.version === ((v = b.previousTree) === null || v === void 0 ? void 0 : v.version) ||
|
|
1945
|
+
p.version === b.currentTree.version || p.version === ((m = b.nextTree) === null || m === void 0 ? void 0 : m.version) || p.version === ((v = b.previousTree) === null || v === void 0 ? void 0 : v.version) || tr("Tried to read from a discarded tree");
|
|
1946
1946
|
const S = Mv(c, p, u);
|
|
1947
1947
|
return S.state === "loading" && S.contents.catch(() => {
|
|
1948
1948
|
}), S;
|
|
@@ -1960,7 +1960,7 @@ function cS(c, u, {
|
|
|
1960
1960
|
const v = Mv(c, u, p);
|
|
1961
1961
|
if (v.state === "loading") {
|
|
1962
1962
|
const b = `Tried to set atom or selector "${p}" using an updater function while the current state is pending, this is not currently supported.`;
|
|
1963
|
-
throw
|
|
1963
|
+
throw tr(b), xn(b);
|
|
1964
1964
|
} else if (v.state === "hasError")
|
|
1965
1965
|
throw v.contents;
|
|
1966
1966
|
return m(v.contents);
|
|
@@ -2000,7 +2000,7 @@ function uS(c, u, p) {
|
|
|
2000
2000
|
} = p, S = Rv(v);
|
|
2001
2001
|
S == null || (m = S.invalidate) === null || m === void 0 || m.call(S, u), u.atomValues.delete(v), u.nonvalidatedAtoms.set(v, b), u.dirtyAtoms.add(v);
|
|
2002
2002
|
} else
|
|
2003
|
-
|
|
2003
|
+
tr(`Unknown action ${p.type}`);
|
|
2004
2004
|
}
|
|
2005
2005
|
function Zm(c, u, p) {
|
|
2006
2006
|
p.state === "hasValue" && p.contents instanceof Rg ? c.atomValues.delete(u) : c.atomValues.set(u, p), c.dirtyAtoms.add(u), c.nonvalidatedAtoms.delete(u);
|
|
@@ -2027,7 +2027,7 @@ function hS() {
|
|
|
2027
2027
|
return $u.push(c), () => {
|
|
2028
2028
|
for (const [p, m] of c)
|
|
2029
2029
|
Lv(p, m);
|
|
2030
|
-
$u.pop() !== c &&
|
|
2030
|
+
$u.pop() !== c && tr("Incorrect order of batch popping");
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
2033
|
function kv(c) {
|
|
@@ -2088,7 +2088,7 @@ function mS(c, {
|
|
|
2088
2088
|
release: () => {
|
|
2089
2089
|
const r = c.getState(), A = r.nodeToComponentSubscriptions.get(u);
|
|
2090
2090
|
if (A === void 0 || !A.has(v)) {
|
|
2091
|
-
|
|
2091
|
+
tr(`Subscription missing at release time for atom ${u}. This is a bug in Recoil.`);
|
|
2092
2092
|
return;
|
|
2093
2093
|
}
|
|
2094
2094
|
A.delete(v), A.size === 0 && r.nodeToComponentSubscriptions.delete(u);
|
|
@@ -2144,7 +2144,7 @@ const {
|
|
|
2144
2144
|
function Nv(c, u) {
|
|
2145
2145
|
const p = c.getState(), m = p.currentTree;
|
|
2146
2146
|
if (p.nextTree) {
|
|
2147
|
-
|
|
2147
|
+
tr("releaseNodesNowOnCurrentTree should only be called at the end of a batch");
|
|
2148
2148
|
return;
|
|
2149
2149
|
}
|
|
2150
2150
|
const v = /* @__PURE__ */ new Set();
|
|
@@ -2221,7 +2221,7 @@ function TS(c, u, p, m, v) {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
2223
|
function ES(c, u, p) {
|
|
2224
|
-
if (!
|
|
2224
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
2225
2225
|
return;
|
|
2226
2226
|
vS(c, p);
|
|
2227
2227
|
const m = c.getState();
|
|
@@ -2260,18 +2260,18 @@ function CS(c, u) {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
function AS(c, u, p) {
|
|
2262
2262
|
var m;
|
|
2263
|
-
if (!
|
|
2263
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
2264
2264
|
return;
|
|
2265
2265
|
const v = c.getState().retention.referenceCounts, b = ((m = v.get(u)) !== null && m !== void 0 ? m : 0) + p;
|
|
2266
2266
|
b === 0 ? Uv(c, u) : v.set(u, b);
|
|
2267
2267
|
}
|
|
2268
2268
|
function Uv(c, u) {
|
|
2269
|
-
if (!
|
|
2269
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
2270
2270
|
return;
|
|
2271
2271
|
c.getState().retention.referenceCounts.delete(u), CS(c, u);
|
|
2272
2272
|
}
|
|
2273
2273
|
function IS(c) {
|
|
2274
|
-
if (!
|
|
2274
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
2275
2275
|
return;
|
|
2276
2276
|
const u = c.getState();
|
|
2277
2277
|
Nv(c, u.retention.retainablesToCheckForRelease), u.retention.retainablesToCheckForRelease.clear();
|
|
@@ -2462,7 +2462,7 @@ class Ip {
|
|
|
2462
2462
|
if (this._refCount <= 0) {
|
|
2463
2463
|
if (process.env.NODE_ENV !== "production")
|
|
2464
2464
|
throw xn("Snapshot has already been released.");
|
|
2465
|
-
|
|
2465
|
+
tr("Attempt to retain() Snapshot that was already released.");
|
|
2466
2466
|
}
|
|
2467
2467
|
this._refCount++;
|
|
2468
2468
|
let u = !1;
|
|
@@ -2479,16 +2479,16 @@ class Ip {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
_release() {
|
|
2481
2481
|
if (this._refCount--, this._refCount === 0) {
|
|
2482
|
-
if (this._store.getState().nodeCleanupFunctions.forEach((u) => u()), this._store.getState().nodeCleanupFunctions.clear(), !
|
|
2482
|
+
if (this._store.getState().nodeCleanupFunctions.forEach((u) => u()), this._store.getState().nodeCleanupFunctions.clear(), !pi("recoil_memory_managament_2020"))
|
|
2483
2483
|
return;
|
|
2484
2484
|
} else
|
|
2485
|
-
this._refCount < 0 && process.env.NODE_ENV !== "production" &&
|
|
2485
|
+
this._refCount < 0 && process.env.NODE_ENV !== "production" && tr("Snapshot released an extra time.");
|
|
2486
2486
|
}
|
|
2487
2487
|
isRetained() {
|
|
2488
2488
|
return this._refCount > 0;
|
|
2489
2489
|
}
|
|
2490
2490
|
checkRefCount_INTERNAL() {
|
|
2491
|
-
|
|
2491
|
+
pi("recoil_memory_managament_2020") && this._refCount <= 0 && process.env.NODE_ENV !== "production" && tr(oC);
|
|
2492
2492
|
}
|
|
2493
2493
|
getStore_INTERNAL() {
|
|
2494
2494
|
return this.checkRefCount_INTERNAL(), this._store;
|
|
@@ -2669,7 +2669,7 @@ function Q1(c) {
|
|
|
2669
2669
|
throw xn("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");
|
|
2670
2670
|
const u = c.getState();
|
|
2671
2671
|
if (u.nextTree === null) {
|
|
2672
|
-
|
|
2672
|
+
pi("recoil_memory_managament_2020") && pi("recoil_release_on_cascading_update_killswitch_2021") && u.commitDepth > 0 && Hv(c);
|
|
2673
2673
|
const p = u.currentTree.version, m = gC();
|
|
2674
2674
|
u.nextTree = {
|
|
2675
2675
|
...u.currentTree,
|
|
@@ -2718,7 +2718,7 @@ function LC(c) {
|
|
|
2718
2718
|
} = u;
|
|
2719
2719
|
if (p == null)
|
|
2720
2720
|
return;
|
|
2721
|
-
u.previousTree = u.currentTree, u.currentTree = p, u.nextTree = null, Qv(c), u.previousTree != null ? u.graphsByVersion.delete(u.previousTree.version) :
|
|
2721
|
+
u.previousTree = u.currentTree, u.currentTree = p, u.nextTree = null, Qv(c), u.previousTree != null ? u.graphsByVersion.delete(u.previousTree.version) : tr("Ended batch with no previous state, which is unexpected", "recoil"), u.previousTree = null, pi("recoil_memory_managament_2020") && p == null && Hv(c);
|
|
2722
2722
|
} finally {
|
|
2723
2723
|
u.commitDepth--;
|
|
2724
2724
|
}
|
|
@@ -2898,13 +2898,13 @@ const {
|
|
|
2898
2898
|
isSSR: t0
|
|
2899
2899
|
} = Yu;
|
|
2900
2900
|
function HC(c) {
|
|
2901
|
-
if (
|
|
2901
|
+
if (pi("recoil_memory_managament_2020"))
|
|
2902
2902
|
return XC(c);
|
|
2903
2903
|
}
|
|
2904
2904
|
function XC(c) {
|
|
2905
2905
|
const p = (Array.isArray(c) ? c : [c]).map((S) => S instanceof qC ? S : S.key), m = VC();
|
|
2906
2906
|
ZC(() => {
|
|
2907
|
-
if (!
|
|
2907
|
+
if (!pi("recoil_memory_managament_2020"))
|
|
2908
2908
|
return;
|
|
2909
2909
|
const S = m.current;
|
|
2910
2910
|
if (v.current && !t0)
|
|
@@ -2973,7 +2973,7 @@ function zg(c, u, p) {
|
|
|
2973
2973
|
return c.contents;
|
|
2974
2974
|
throw c.state === "loading" ? new Promise((v) => {
|
|
2975
2975
|
const b = p.current.getState().suspendedComponentResolvers;
|
|
2976
|
-
b.add(v), o3 &&
|
|
2976
|
+
b.add(v), o3 && di(c.contents) && c.contents.finally(() => {
|
|
2977
2977
|
b.delete(v);
|
|
2978
2978
|
});
|
|
2979
2979
|
}) : c.state === "hasError" ? c.contents : xn(`Invalid value of loadable atom "${u.key}"`);
|
|
@@ -3086,7 +3086,7 @@ function l3(c) {
|
|
|
3086
3086
|
}, [u, c]), m = kr(() => (process.env.NODE_ENV !== "production" && eh.current++, p()), [p]), v = Ju(), b = kr((D, N) => {
|
|
3087
3087
|
const j = u.current;
|
|
3088
3088
|
return Jl(j, c, () => {
|
|
3089
|
-
if (!
|
|
3089
|
+
if (!pi("recoil_suppress_rerender_in_callback"))
|
|
3090
3090
|
return N();
|
|
3091
3091
|
const se = p();
|
|
3092
3092
|
A.current.is(se) || N(), A.current = se;
|
|
@@ -3133,7 +3133,7 @@ function c3(c) {
|
|
|
3133
3133
|
}), Ql(() => {
|
|
3134
3134
|
const r = u.current, A = r.getState(), D = Jl(r, c, (j) => {
|
|
3135
3135
|
var V;
|
|
3136
|
-
if (!
|
|
3136
|
+
if (!pi("recoil_suppress_rerender_in_callback"))
|
|
3137
3137
|
return p([]);
|
|
3138
3138
|
const se = v();
|
|
3139
3139
|
(V = S.current) !== null && V !== void 0 && V.is(se) || p(se), S.current = se;
|
|
@@ -3144,7 +3144,7 @@ function c3(c) {
|
|
|
3144
3144
|
});
|
|
3145
3145
|
else {
|
|
3146
3146
|
var N;
|
|
3147
|
-
if (!
|
|
3147
|
+
if (!pi("recoil_suppress_rerender_in_callback"))
|
|
3148
3148
|
return p([]);
|
|
3149
3149
|
const j = v();
|
|
3150
3150
|
(N = S.current) !== null && N !== void 0 && N.is(j) || p(j), S.current = j;
|
|
@@ -3153,7 +3153,7 @@ function c3(c) {
|
|
|
3153
3153
|
}, [m, v, c, u]), b;
|
|
3154
3154
|
}
|
|
3155
3155
|
function Og(c) {
|
|
3156
|
-
return process.env.NODE_ENV !== "production" && wr(c, "useRecoilValueLoadable"),
|
|
3156
|
+
return process.env.NODE_ENV !== "production" && wr(c, "useRecoilValueLoadable"), pi("recoil_memory_managament_2020") && Pg(c), {
|
|
3157
3157
|
TRANSITION_SUPPORT: Jm,
|
|
3158
3158
|
// Recoil will attemp to detect if `useSyncExternalStore()` is supported with
|
|
3159
3159
|
// `reactMode()` before calling it. However, sometimes the host React
|
|
@@ -3201,7 +3201,7 @@ function p3() {
|
|
|
3201
3201
|
};
|
|
3202
3202
|
}
|
|
3203
3203
|
function rx(c) {
|
|
3204
|
-
return process.env.NODE_ENV !== "production" && (wr(c, "useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE"), Na().early ||
|
|
3204
|
+
return process.env.NODE_ENV !== "production" && (wr(c, "useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE"), Na().early || tr("Attepmt to use a hook with UNSTABLE_TRANSITION_SUPPORT in a rendering mode incompatible with concurrent rendering. Try enabling the recoil_sync_external_store or recoil_transition_support GKs.")), pi("recoil_memory_managament_2020") && Pg(c), Jm(c);
|
|
3205
3205
|
}
|
|
3206
3206
|
function ox(c) {
|
|
3207
3207
|
process.env.NODE_ENV !== "production" && wr(c, "useRecoilValue_TRANSITION_SUPPORT_UNSTABLE");
|
|
@@ -3288,7 +3288,7 @@ function M3(c) {
|
|
|
3288
3288
|
Dp(Pp((u) => {
|
|
3289
3289
|
let p = u.getState().previousTree;
|
|
3290
3290
|
const m = u.getState().currentTree;
|
|
3291
|
-
p || (
|
|
3291
|
+
p || (tr("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"), p = u.getState().currentTree);
|
|
3292
3292
|
const v = r0(m), b = r0(p), S = rp(E3, (A) => {
|
|
3293
3293
|
var D, N, j, V;
|
|
3294
3294
|
return {
|
|
@@ -3522,7 +3522,7 @@ function dx(c, u, p, m) {
|
|
|
3522
3522
|
if (typeof D != "function")
|
|
3523
3523
|
throw xn(r);
|
|
3524
3524
|
v = D(...p);
|
|
3525
|
-
}), v instanceof hx && (process.env.NODE_ENV !== "production" ? Po(!1, "batchUpdates should return immediately") : Po(!1)),
|
|
3525
|
+
}), v instanceof hx && (process.env.NODE_ENV !== "production" ? Po(!1, "batchUpdates should return immediately") : Po(!1)), di(v))
|
|
3526
3526
|
v = v.finally(() => {
|
|
3527
3527
|
var r;
|
|
3528
3528
|
(r = b) === null || r === void 0 || r();
|
|
@@ -3693,7 +3693,7 @@ class AA {
|
|
|
3693
3693
|
}
|
|
3694
3694
|
invalidCacheError() {
|
|
3695
3695
|
const u = CA() ? "Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache." : "Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";
|
|
3696
|
-
throw
|
|
3696
|
+
throw tr(u + (this._name != null ? ` - ${this._name}` : "")), new a0();
|
|
3697
3697
|
}
|
|
3698
3698
|
}
|
|
3699
3699
|
var IA = {
|
|
@@ -3813,7 +3813,7 @@ function no(c, u, p) {
|
|
|
3813
3813
|
var m;
|
|
3814
3814
|
return (m = JSON.stringify(c)) !== null && m !== void 0 ? m : "";
|
|
3815
3815
|
}
|
|
3816
|
-
if (
|
|
3816
|
+
if (di(c))
|
|
3817
3817
|
return "__PROMISE__";
|
|
3818
3818
|
if (Array.isArray(c))
|
|
3819
3819
|
return `[${c.map((v, b) => no(v, u, b.toString()))}]`;
|
|
@@ -3910,7 +3910,7 @@ function WA(c) {
|
|
|
3910
3910
|
case "number":
|
|
3911
3911
|
return !0;
|
|
3912
3912
|
}
|
|
3913
|
-
return !!(c["@@__IMMUTABLE_ITERABLE__@@"] != null || c["@@__IMMUTABLE_KEYED__@@"] != null || c["@@__IMMUTABLE_INDEXED__@@"] != null || c["@@__IMMUTABLE_ORDERED__@@"] != null || c["@@__IMMUTABLE_RECORD__@@"] != null || GA(c) ||
|
|
3913
|
+
return !!(c["@@__IMMUTABLE_ITERABLE__@@"] != null || c["@@__IMMUTABLE_KEYED__@@"] != null || c["@@__IMMUTABLE_INDEXED__@@"] != null || c["@@__IMMUTABLE_ORDERED__@@"] != null || c["@@__IMMUTABLE_RECORD__@@"] != null || GA(c) || di(c) || c instanceof Error || ArrayBuffer.isView(c) || !qA && ZA(c));
|
|
3914
3914
|
}
|
|
3915
3915
|
function _x(c) {
|
|
3916
3916
|
if (!(typeof c != "object" || WA(c))) {
|
|
@@ -3984,7 +3984,7 @@ function xx(c) {
|
|
|
3984
3984
|
}, p), A = oI(c.retainedBy_UNSTABLE), D = /* @__PURE__ */ new Map();
|
|
3985
3985
|
let N = 0;
|
|
3986
3986
|
function j() {
|
|
3987
|
-
return !
|
|
3987
|
+
return !pi("recoil_memory_managament_2020") || N > 0;
|
|
3988
3988
|
}
|
|
3989
3989
|
function V(be) {
|
|
3990
3990
|
return be.getState().knownSelectors.add(p), N++, () => {
|
|
@@ -4024,7 +4024,7 @@ function xx(c) {
|
|
|
4024
4024
|
}).catch((xt) => {
|
|
4025
4025
|
if (!j())
|
|
4026
4026
|
throw Tt(be), Pu;
|
|
4027
|
-
if (
|
|
4027
|
+
if (di(xt))
|
|
4028
4028
|
return Ie(be, xt, Ke, vt, Ue, pt);
|
|
4029
4029
|
const _t = qd(xt);
|
|
4030
4030
|
throw oe(be, Ke, Ue, _t, vt), xt;
|
|
@@ -4112,11 +4112,11 @@ function xx(c) {
|
|
|
4112
4112
|
_t = m({
|
|
4113
4113
|
get: Qt,
|
|
4114
4114
|
getCallback: Nn
|
|
4115
|
-
}), _t = rI(_t) ? Qt(_t) : _t, KA(_t) && (_t.state === "hasError" && (Pt = !0), _t = _t.contents),
|
|
4115
|
+
}), _t = rI(_t) ? Qt(_t) : _t, KA(_t) && (_t.state === "hasError" && (Pt = !0), _t = _t.contents), di(_t) ? _t = Ee(be, _t, He, ln, Ke, Qe).finally(xt) : xt(), _t = _t instanceof yx ? _t.value : _t;
|
|
4116
4116
|
} catch (Qn) {
|
|
4117
|
-
_t = Qn,
|
|
4117
|
+
_t = Qn, di(_t) ? _t = Ie(be, _t, He, ln, Ke, Qe).finally(xt) : (Pt = !0, xt());
|
|
4118
4118
|
}
|
|
4119
|
-
return Pt ? mn = qd(_t) :
|
|
4119
|
+
return Pt ? mn = qd(_t) : di(_t) ? mn = YA(_t) : mn = Em(_t), Ue = !1, un(be, Ke, ln), J(be, He, new Set(ln.keys()), Ke), [mn, ln];
|
|
4120
4120
|
}
|
|
4121
4121
|
function ot(be, He) {
|
|
4122
4122
|
let Ke = He.atomValues.get(p);
|
|
@@ -4148,7 +4148,7 @@ function xx(c) {
|
|
|
4148
4148
|
return ((Ue = vt.loadingLoadable) === null || Ue === void 0 ? void 0 : Ue.state) === "loading" && _e(be, vt.executionID), vt.loadingLoadable;
|
|
4149
4149
|
}
|
|
4150
4150
|
const pt = lI(), [xt, _t] = Ge(be, He, pt);
|
|
4151
|
-
return xt.state === "loading" ? (
|
|
4151
|
+
return xt.state === "loading" ? (Zt(be, pt, xt, _t, He), _e(be, pt)) : (Tt(be), fn(He, xt, _t)), xt;
|
|
4152
4152
|
}
|
|
4153
4153
|
function at(be, He) {
|
|
4154
4154
|
const Ke = jv([D.has(be) ? [wi(D.get(be))] : [], Tp(Ig(D, ([Ue]) => Ue !== be), ([, Ue]) => Ue)]);
|
|
@@ -4172,7 +4172,7 @@ function xx(c) {
|
|
|
4172
4172
|
function gt(be) {
|
|
4173
4173
|
return D.get(be);
|
|
4174
4174
|
}
|
|
4175
|
-
function
|
|
4175
|
+
function Zt(be, He, Ke, vt, Ue) {
|
|
4176
4176
|
D.set(be, {
|
|
4177
4177
|
depValuesDiscoveredSoFarDuringAsyncWork: vt,
|
|
4178
4178
|
executionID: He,
|
|
@@ -4256,14 +4256,14 @@ function xx(c) {
|
|
|
4256
4256
|
return ln.contents;
|
|
4257
4257
|
if (ln.state === "loading") {
|
|
4258
4258
|
const Qt = `Getting value of asynchronous atom or selector "${Qe}" in a pending state while setting selector "${p}" is not yet supported.`;
|
|
4259
|
-
throw
|
|
4259
|
+
throw tr(Qt), xn(Qt);
|
|
4260
4260
|
} else
|
|
4261
4261
|
throw ln.contents;
|
|
4262
4262
|
}
|
|
4263
4263
|
function _t(Qe, ln) {
|
|
4264
4264
|
if (Ue) {
|
|
4265
4265
|
const Qn = "Recoil: Async selector sets are not currently supported.";
|
|
4266
|
-
throw
|
|
4266
|
+
throw tr(Qn), xn(Qn);
|
|
4267
4267
|
}
|
|
4268
4268
|
const Qt = typeof ln == "function" ? (
|
|
4269
4269
|
// cast to any because we can't restrict type S from being a function itself without losing support for opaque types
|
|
@@ -4281,7 +4281,7 @@ function xx(c) {
|
|
|
4281
4281
|
reset: Pt
|
|
4282
4282
|
}, vt);
|
|
4283
4283
|
if (mn !== void 0)
|
|
4284
|
-
throw
|
|
4284
|
+
throw di(mn) ? xn("Recoil: Async selector sets are not currently supported.") : xn("Recoil: selector set should be a void function.");
|
|
4285
4285
|
return Ue = !0, pt;
|
|
4286
4286
|
},
|
|
4287
4287
|
init: V,
|
|
@@ -4343,7 +4343,7 @@ function yI(c) {
|
|
|
4343
4343
|
throw S = Sm(Ee), Ee;
|
|
4344
4344
|
}));
|
|
4345
4345
|
}
|
|
4346
|
-
let S =
|
|
4346
|
+
let S = di(c.default) ? b(c.default) : cI(c.default) ? c.default.state === "loading" ? b(c.default.contents) : c.default : (
|
|
4347
4347
|
// $FlowFixMe[incompatible-call]
|
|
4348
4348
|
$l(zu(c.default))
|
|
4349
4349
|
);
|
|
@@ -4351,7 +4351,7 @@ function yI(c) {
|
|
|
4351
4351
|
let r;
|
|
4352
4352
|
const A = /* @__PURE__ */ new Map();
|
|
4353
4353
|
function D(_e) {
|
|
4354
|
-
return process.env.NODE_ENV !== "production" && c.dangerouslyAllowMutability !== !0 ?
|
|
4354
|
+
return process.env.NODE_ENV !== "production" && c.dangerouslyAllowMutability !== !0 ? di(_e) ? _e.then((Ee) => (Qm(Ee), Ee)) : (Qm(_e), _e) : _e;
|
|
4355
4355
|
}
|
|
4356
4356
|
function N(_e, Ee) {
|
|
4357
4357
|
const Ie = Ee.then((J) => {
|
|
@@ -4368,21 +4368,21 @@ function yI(c) {
|
|
|
4368
4368
|
v++;
|
|
4369
4369
|
const Ge = () => {
|
|
4370
4370
|
var gt;
|
|
4371
|
-
v--, (gt = A.get(_e)) === null || gt === void 0 || gt.forEach((
|
|
4371
|
+
v--, (gt = A.get(_e)) === null || gt === void 0 || gt.forEach((Zt) => Zt()), A.delete(_e);
|
|
4372
4372
|
};
|
|
4373
4373
|
if (_e.getState().knownAtoms.add(u), S.state === "loading") {
|
|
4374
4374
|
const gt = () => {
|
|
4375
|
-
var
|
|
4376
|
-
((
|
|
4375
|
+
var Zt;
|
|
4376
|
+
((Zt = _e.getState().nextTree) !== null && Zt !== void 0 ? Zt : _e.getState().currentTree).atomValues.has(u) || mI(_e, Pe);
|
|
4377
4377
|
};
|
|
4378
4378
|
S.contents.finally(gt);
|
|
4379
4379
|
}
|
|
4380
4380
|
const ot = (J = c.effects) !== null && J !== void 0 ? J : c.effects_UNSTABLE;
|
|
4381
4381
|
if (ot != null) {
|
|
4382
4382
|
let nn = function(ze) {
|
|
4383
|
-
if (
|
|
4383
|
+
if (Zt && ze.key === u) {
|
|
4384
4384
|
const Je = gt;
|
|
4385
|
-
return Je instanceof ks ? V(_e, Ee) :
|
|
4385
|
+
return Je instanceof ks ? V(_e, Ee) : di(Je) ? Cm(Je.then((be) => be instanceof ks ? (
|
|
4386
4386
|
// Cast T to S
|
|
4387
4387
|
S.toPromise()
|
|
4388
4388
|
) : be)) : (
|
|
@@ -4396,24 +4396,24 @@ function yI(c) {
|
|
|
4396
4396
|
}, fn = function(ze) {
|
|
4397
4397
|
var Je;
|
|
4398
4398
|
const be = uI(_e, (Je = _e.getState().nextTree) !== null && Je !== void 0 ? Je : _e.getState().currentTree, ze.key);
|
|
4399
|
-
return
|
|
4399
|
+
return Zt && ze.key === u && !(gt instanceof ks) ? {
|
|
4400
4400
|
...be,
|
|
4401
4401
|
isSet: !0,
|
|
4402
4402
|
loadable: nn(ze)
|
|
4403
4403
|
} : be;
|
|
4404
|
-
}, gt = Ra,
|
|
4404
|
+
}, gt = Ra, Zt = !0, un = !1, Tt = null;
|
|
4405
4405
|
const it = (ze) => (Je) => {
|
|
4406
|
-
if (
|
|
4406
|
+
if (Zt) {
|
|
4407
4407
|
const be = nn(Pe), He = be.state === "hasValue" ? be.contents : Ra;
|
|
4408
4408
|
gt = typeof Je == "function" ? (
|
|
4409
4409
|
// cast to any because we can't restrict T from being a function without losing support for opaque types
|
|
4410
4410
|
Je(He)
|
|
4411
|
-
) : Je,
|
|
4411
|
+
) : Je, di(gt) && (gt = gt.then((Ke) => (Tt = {
|
|
4412
4412
|
effect: ze,
|
|
4413
4413
|
value: Ke
|
|
4414
4414
|
}, Ke)));
|
|
4415
4415
|
} else {
|
|
4416
|
-
if (
|
|
4416
|
+
if (di(Je))
|
|
4417
4417
|
throw xn("Setting atoms to async values is not implemented.");
|
|
4418
4418
|
typeof Je != "function" && (Tt = {
|
|
4419
4419
|
effect: ze,
|
|
@@ -4440,7 +4440,7 @@ function yI(c) {
|
|
|
4440
4440
|
currentTree: Ue,
|
|
4441
4441
|
previousTree: pt
|
|
4442
4442
|
} = Ke.getState();
|
|
4443
|
-
pt || (
|
|
4443
|
+
pt || (tr("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"), pt = Ue);
|
|
4444
4444
|
const xt = (vt = Ue.atomValues.get(u)) !== null && vt !== void 0 ? vt : S;
|
|
4445
4445
|
if (xt.state === "hasValue") {
|
|
4446
4446
|
var _t, Pt, mn, Qe;
|
|
@@ -4471,9 +4471,9 @@ function yI(c) {
|
|
|
4471
4471
|
} catch (Je) {
|
|
4472
4472
|
gt = Je, un = !0;
|
|
4473
4473
|
}
|
|
4474
|
-
if (
|
|
4474
|
+
if (Zt = !1, !(gt instanceof ks)) {
|
|
4475
4475
|
var at;
|
|
4476
|
-
const ze = un ? Sm(gt) :
|
|
4476
|
+
const ze = un ? Sm(gt) : di(gt) ? Cm(N(_e, gt)) : $l(zu(gt));
|
|
4477
4477
|
D(ze.contents), Ee.atomValues.set(u, ze), (at = _e.getState().nextTree) === null || at === void 0 || at.atomValues.set(u, ze);
|
|
4478
4478
|
}
|
|
4479
4479
|
}
|
|
@@ -4805,7 +4805,7 @@ function Op(c, u) {
|
|
|
4805
4805
|
return [p, m];
|
|
4806
4806
|
}
|
|
4807
4807
|
function $I(c) {
|
|
4808
|
-
return c != null && !
|
|
4808
|
+
return c != null && !di(c);
|
|
4809
4809
|
}
|
|
4810
4810
|
function Bp(c) {
|
|
4811
4811
|
return Array.isArray(c) ? c : Object.getOwnPropertyNames(c).map((u) => c[u]);
|
|
@@ -4820,7 +4820,7 @@ function eg(c, u) {
|
|
|
4820
4820
|
);
|
|
4821
4821
|
}
|
|
4822
4822
|
function Kl(c, u, p) {
|
|
4823
|
-
const m = p.map((v, b) => v == null ? Ax(u[b]) :
|
|
4823
|
+
const m = p.map((v, b) => v == null ? Ax(u[b]) : di(v) ? Cx(v) : Sx(v));
|
|
4824
4824
|
return eg(c, m);
|
|
4825
4825
|
}
|
|
4826
4826
|
function VI(c, u) {
|
|
@@ -4850,9 +4850,9 @@ const GI = zs({
|
|
|
4850
4850
|
get: u
|
|
4851
4851
|
}) => {
|
|
4852
4852
|
const p = Bp(c), [m, v] = Op(u, p);
|
|
4853
|
-
return v.some((b) => !
|
|
4853
|
+
return v.some((b) => !di(b)) ? Kl(c, m, v) : new Promise((b) => {
|
|
4854
4854
|
for (const [S, r] of v.entries())
|
|
4855
|
-
|
|
4855
|
+
di(r) && r.then((A) => {
|
|
4856
4856
|
m[S] = A, v[S] = void 0, b(Kl(c, m, v));
|
|
4857
4857
|
}).catch((A) => {
|
|
4858
4858
|
v[S] = A, b(Kl(c, m, v));
|
|
@@ -4880,7 +4880,7 @@ const GI = zs({
|
|
|
4880
4880
|
get: u
|
|
4881
4881
|
}) => {
|
|
4882
4882
|
const p = Bp(c), [m, v] = Op(u, p);
|
|
4883
|
-
return v.every((b) => !
|
|
4883
|
+
return v.every((b) => !di(b)) ? Kl(c, m, v) : Promise.all(v.map((b, S) => di(b) ? b.then((r) => {
|
|
4884
4884
|
m[S] = r, v[S] = void 0;
|
|
4885
4885
|
}).catch((r) => {
|
|
4886
4886
|
m[S] = void 0, v[S] = r;
|
|
@@ -4895,7 +4895,7 @@ const GI = zs({
|
|
|
4895
4895
|
try {
|
|
4896
4896
|
return ec.value(Ax(u(c)));
|
|
4897
4897
|
} catch (p) {
|
|
4898
|
-
return ec.value(
|
|
4898
|
+
return ec.value(di(p) ? Cx(p) : Sx(p));
|
|
4899
4899
|
}
|
|
4900
4900
|
},
|
|
4901
4901
|
dangerouslyAllowMutability: !0
|
|
@@ -5042,7 +5042,7 @@ const RM = (c, u, ...p) => {
|
|
|
5042
5042
|
})
|
|
5043
5043
|
};
|
|
5044
5044
|
}, Rx = (c, u, p) => {
|
|
5045
|
-
const m =
|
|
5045
|
+
const m = er.ce(u, p);
|
|
5046
5046
|
return c.dispatchEvent(m), m;
|
|
5047
5047
|
}, m0 = /* @__PURE__ */ new WeakMap(), zM = (c, u, p) => {
|
|
5048
5048
|
let m = lp.get(c);
|
|
@@ -5058,7 +5058,7 @@ const RM = (c, u, ...p) => {
|
|
|
5058
5058
|
if (r || m0.set(c, r = /* @__PURE__ */ new Set()), !r.has(b)) {
|
|
5059
5059
|
{
|
|
5060
5060
|
A = zo.createElement("style"), A.innerHTML = S;
|
|
5061
|
-
const D = (v =
|
|
5061
|
+
const D = (v = er.$nonce$) !== null && v !== void 0 ? v : Mx(zo);
|
|
5062
5062
|
D != null && A.setAttribute("nonce", D), c.insertBefore(A, c.querySelector("link"));
|
|
5063
5063
|
}
|
|
5064
5064
|
r && r.add(b);
|
|
@@ -5084,7 +5084,7 @@ const RM = (c, u, ...p) => {
|
|
|
5084
5084
|
if (u === "ref")
|
|
5085
5085
|
m && m(c);
|
|
5086
5086
|
else if (!S && u[0] === "o" && u[1] === "n")
|
|
5087
|
-
u[2] === "-" ? u = u.slice(3) : v0(nh, r) ? u = r.slice(2) : u = r[2] + u.slice(3), p &&
|
|
5087
|
+
u[2] === "-" ? u = u.slice(3) : v0(nh, r) ? u = r.slice(2) : u = r[2] + u.slice(3), p && er.rel(c, u, p, !1), m && er.ael(c, u, m, !1);
|
|
5088
5088
|
else {
|
|
5089
5089
|
const A = Fg(m);
|
|
5090
5090
|
if ((S || A && m !== null) && !v)
|
|
@@ -5247,7 +5247,7 @@ const RM = (c, u, ...p) => {
|
|
|
5247
5247
|
}), p & 1) {
|
|
5248
5248
|
const b = /* @__PURE__ */ new Map();
|
|
5249
5249
|
v.attributeChangedCallback = function(S, r, A) {
|
|
5250
|
-
|
|
5250
|
+
er.jmp(() => {
|
|
5251
5251
|
const D = b.get(S);
|
|
5252
5252
|
if (this.hasOwnProperty(D))
|
|
5253
5253
|
A = this[D], delete this[D];
|
|
@@ -5301,7 +5301,7 @@ const RM = (c, u, ...p) => {
|
|
|
5301
5301
|
}, Ux = (c) => {
|
|
5302
5302
|
ka(c, "connectedCallback");
|
|
5303
5303
|
}, HM = (c) => {
|
|
5304
|
-
if (!(
|
|
5304
|
+
if (!(er.$flags$ & 1)) {
|
|
5305
5305
|
const u = Os(c), p = u.$cmpMeta$, m = is("connectedCallback", p.$tagName$);
|
|
5306
5306
|
if (u.$flags$ & 1)
|
|
5307
5307
|
jx(c, u, p.$listeners$), Ux(u.$lazyInstance$);
|
|
@@ -5325,7 +5325,7 @@ const RM = (c, u, ...p) => {
|
|
|
5325
5325
|
m();
|
|
5326
5326
|
}
|
|
5327
5327
|
}, XM = (c) => {
|
|
5328
|
-
if (!(
|
|
5328
|
+
if (!(er.$flags$ & 1)) {
|
|
5329
5329
|
const u = Os(c), p = u.$lazyInstance$;
|
|
5330
5330
|
u.$rmListeners$ && (u.$rmListeners$.map((m) => m()), u.$rmListeners$ = void 0), ka(p, "disconnectedCallback");
|
|
5331
5331
|
}
|
|
@@ -5333,7 +5333,7 @@ const RM = (c, u, ...p) => {
|
|
|
5333
5333
|
var p;
|
|
5334
5334
|
const m = is(), v = [], b = u.exclude || [], S = nh.customElements, r = zo.head, A = /* @__PURE__ */ r.querySelector("meta[charset]"), D = /* @__PURE__ */ zo.createElement("style"), N = [];
|
|
5335
5335
|
let j, V = !0;
|
|
5336
|
-
Object.assign(
|
|
5336
|
+
Object.assign(er, u), er.$resourcesUrl$ = new URL(u.resourcesUrl || "./", zo.baseURI).href, c.map((se) => {
|
|
5337
5337
|
se[1].map((oe) => {
|
|
5338
5338
|
const pe = {
|
|
5339
5339
|
$flags$: oe[0],
|
|
@@ -5348,10 +5348,10 @@ const RM = (c, u, ...p) => {
|
|
|
5348
5348
|
super(_e), _e = this, eR(_e, pe), pe.$flags$ & 1 && _e.attachShadow({ mode: "open" });
|
|
5349
5349
|
}
|
|
5350
5350
|
connectedCallback() {
|
|
5351
|
-
j && (clearTimeout(j), j = null), V ? N.push(this) :
|
|
5351
|
+
j && (clearTimeout(j), j = null), V ? N.push(this) : er.jmp(() => HM(this));
|
|
5352
5352
|
}
|
|
5353
5353
|
disconnectedCallback() {
|
|
5354
|
-
|
|
5354
|
+
er.jmp(() => XM(this));
|
|
5355
5355
|
}
|
|
5356
5356
|
componentOnReady() {
|
|
5357
5357
|
return Os(this).$onReadyPromise$;
|
|
@@ -5367,14 +5367,14 @@ const RM = (c, u, ...p) => {
|
|
|
5367
5367
|
});
|
|
5368
5368
|
{
|
|
5369
5369
|
D.innerHTML = v + CM, D.setAttribute("data-styles", "");
|
|
5370
|
-
const se = (p =
|
|
5370
|
+
const se = (p = er.$nonce$) !== null && p !== void 0 ? p : Mx(zo);
|
|
5371
5371
|
se != null && D.setAttribute("nonce", se), r.insertBefore(D, A ? A.nextSibling : r.firstChild);
|
|
5372
5372
|
}
|
|
5373
|
-
V = !1, N.length ? N.map((se) => se.connectedCallback()) :
|
|
5373
|
+
V = !1, N.length ? N.map((se) => se.connectedCallback()) : er.jmp(() => j = setTimeout(Bx, 30)), m();
|
|
5374
5374
|
}, jx = (c, u, p, m) => {
|
|
5375
5375
|
p && p.map(([v, b, S]) => {
|
|
5376
5376
|
const r = JM(c, v), A = YM(u, S), D = QM(v);
|
|
5377
|
-
|
|
5377
|
+
er.ael(r, b, A, D), (u.$rmListeners$ = u.$rmListeners$ || []).push(() => er.rel(r, b, A, D));
|
|
5378
5378
|
});
|
|
5379
5379
|
}, YM = (c, u) => (p) => {
|
|
5380
5380
|
try {
|
|
@@ -5395,8 +5395,8 @@ const RM = (c, u, ...p) => {
|
|
|
5395
5395
|
if (b)
|
|
5396
5396
|
return b[m];
|
|
5397
5397
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
5398
|
-
return TM(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-
|
|
5399
|
-
}, lp = /* @__PURE__ */ new Map(), nh = typeof window < "u" ? window : {}, zo = nh.document || { head: {} },
|
|
5398
|
+
return TM(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-31ffc1f2.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-92831cc9.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-2969f778.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-4ae9b170.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-399c04b9.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-3a6ad546.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-32c5b61c.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-8b168705.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-a0958c8e.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-d830a172.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-77a815ed.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-8f01c41c.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-dbfc72a9.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-6e4f31b3.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-bad308c4.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-ff36930b.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-f7791b85.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-16a07aae.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-9dbf8a16.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-feea0844.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-ebe7092b.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-425ef4e9.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-37f80796.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-d6e7f0cd.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-5ead9a12.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-8506967e.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-6b3b132a.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-d8ada22f.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-a0b3816f.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-43a7dc60.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-8164577f.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-e780b498.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-bcd650d1.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-e888abb2.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-63613eba.mjs") }), `./${v}.entry.js`).then((S) => (x0.set(v, S), S[m]), Fa);
|
|
5399
|
+
}, lp = /* @__PURE__ */ new Map(), nh = typeof window < "u" ? window : {}, zo = nh.document || { head: {} }, er = {
|
|
5400
5400
|
$flags$: 0,
|
|
5401
5401
|
$resourcesUrl$: "",
|
|
5402
5402
|
jmp: (c) => c(),
|
|
@@ -5411,7 +5411,7 @@ const RM = (c, u, ...p) => {
|
|
|
5411
5411
|
}
|
|
5412
5412
|
return !1;
|
|
5413
5413
|
})(), b0 = [], Vx = [], iR = (c, u) => (p) => {
|
|
5414
|
-
c.push(p), tg || (tg = !0, u &&
|
|
5414
|
+
c.push(p), tg || (tg = !0, u && er.$flags$ & 4 ? jg(ig) : er.raf(ig));
|
|
5415
5415
|
}, w0 = (c) => {
|
|
5416
5416
|
for (let u = 0; u < c.length; u++)
|
|
5417
5417
|
try {
|
|
@@ -5421,7 +5421,7 @@ const RM = (c, u, ...p) => {
|
|
|
5421
5421
|
}
|
|
5422
5422
|
c.length = 0;
|
|
5423
5423
|
}, ig = () => {
|
|
5424
|
-
w0(b0), w0(Vx), (tg = b0.length > 0) &&
|
|
5424
|
+
w0(b0), w0(Vx), (tg = b0.length > 0) && er.raf(ig);
|
|
5425
5425
|
}, jg = (c) => $x().then(c), rR = /* @__PURE__ */ iR(Vx, !0), oR = () => $x(), sR = (c, u) => typeof window > "u" ? Promise.resolve() : oR().then(() => KM([["mi-route-instructions", [[1, "mi-route-instructions", { activeStep: [1040], unit: [1], route: [16], hideIndoorSubsteps: [4, "hide-indoor-substeps"], travelMode: [1, "travel-mode"], originLocation: [16], originName: [1, "origin-name"], destinationLocation: [16], destinationName: [1, "destination-name"], translations: [16] }]]], ["mi-route-instructions-step", [[1, "mi-route-instructions-step", { step: [1], hideIndoorSubsteps: [4, "hide-indoor-substeps"], fromRouteContext: [1, "from-route-context"], fromTravelMode: [1, "from-travel-mode"], fromTransitStop: [1, "from-transit-stop"], destinationLocation: [1, "destination-location"], unit: [1], translations: [1], stepData: [32], translationsData: [32], substepsAreOpen: [32], openSubsteps: [64], closeSubsteps: [64] }]]], ["mi-route-instructions-heading", [[1, "mi-route-instructions-heading", { originName: [1, "origin-name"], destinationName: [1, "destination-name"], totalTravelTime: [2, "total-travel-time"], totalWalkingDistance: [2, "total-walking-distance"], travelMode: [1, "travel-mode"], unit: [1], translations: [16] }]]], ["mi-list-item-location", [[1, "mi-list-item-location", { location: [8], showExternalId: [4, "show-external-id"], unit: [1], icon: [1], level: [1], iconBadge: [1, "icon-badge"], iconBadgeValue: [1, "icon-badge-value"], iconURLToRender: [32] }]]], ["mi-metric-card", [[1, "mi-metric-card", { label: [1], value: [1], tip: [1], spinner: [4], error: [1], showToolTip: [32] }]]], ["mi-list", [[1, "mi-list", { scrollButtonsEnabled: [4, "scroll-buttons-enabled"], scrollLength: [2, "scroll-length"] }, [[0, "listItemDidRender", "updateScrollButtonsState"]]]]], ["mi-location-booking", [[1, "mi-location-booking", { location: [16], duration: [2], translations: [16], show: [2], startHour: [2, "start-hour"], stopHour: [2, "stop-hour"], bookingTitle: [1, "booking-title"], timeSlots: [32] }]]], ["mi-share-sms", [[0, "mi-share-sms", { venueId: [1, "venue"], originLocationId: [1, "origin"], destinationLocationId: [1, "destination"], countryCode: [1, "country-code"], phoneNumberInputPlaceholder: [1, "input-placeholder"], submitButtonLabel: [1, "submit-button-label"] }]]], ["combo-box-item", [[0, "combo-box-item", { selected: [4], value: [1], text: [1] }]]], ["mi-chip", [[0, "mi-chip", { icon: [1], content: [1], backgroundColor: [1, "background-color"], active: [4] }]]], ["mi-column", [[1, "mi-column", { monospace: [4], alignContent: [1, "align-content"], label: [1], sortable: [1], sort: [1], binding: [1], fitContent: [4, "fit-content"], width: [1] }, [[0, "cellContentClicked", "cellContentClickedHandler"]]]]], ["mi-combo-box", [[1, "mi-combo-box", { open: [4], items: [16], itemsOrder: [1, "items-order"], filterable: [4], selected: [16], noResultsMessage: [1, "no-results-message"], disabled: [4], currentItems: [32] }, [[8, "click", "checkForClickOutside"], [1, "mousemove", "mouseMoveEventHandler"], [11, "scroll", "scrollEventHandler"], [11, "resize", "resizeEventHandler"]]]]], ["mi-data-table", [[1, "mi-data-table", { rows: [16], maxRows: [2, "max-rows"], selectable: [4], selected: [16], emptyPageHeader: [1, "empty-page-header"], emptyPageSubheader: [1, "empty-page-subheader"], isHeaderSticky: [4, "sticky-header"], numberOfSelectedRows: [32], tableRows: [32], sortByColumn: [32] }]]], ["mi-dropdown", [[1, "mi-dropdown", { open: [4], items: [16], itemsOrder: [1, "items-order"], label: [1], filterable: [4], multiple: [4], selected: [16], noResultsMessage: [1, "no-results-message"], iconSrc: [1, "icon"], iconAlt: [1, "icon-alt"], disabled: [4], currentItems: [32] }, [[0, "focusout", "focusOutEventHandler"], [8, "click", "checkForClickOutside"], [1, "mousemove", "mouseMoveEventHandler"], [11, "scroll", "scrollEventHandler"], [11, "resize", "resizeEventHandler"]]]]], ["mi-dropdown-item", [[0, "mi-dropdown-item", { selected: [4], value: [1], text: [1] }]]], ["mi-floor-selector", [[0, "mi-floor-selector", { mapsindoors: [8], primaryColor: [1, "primary-color"], floors: [32], currentFloor: [32], floorSelectorClosed: [32], fadeFloorSelectorOnTop: [32], fadeFloorSelectorOnBottom: [32] }]]], ["mi-list-item-category", [[1, "mi-list-item-category", { category: [8], orientation: [513] }]]], ["mi-map-googlemaps", [[1, "mi-map-googlemaps", { gmApiKey: [1, "gm-api-key"], miApiKey: [1, "mi-api-key"], gmOptions: [16], disableExternalLinks: [4, "disable-external-links"], floorSelectorControlPosition: [1, "floor-selector-control-position"], floorIndex: [1537, "floor-index"], myPositionControlPosition: [1, "my-position-control-position"], polygonHighlightOptions: [16], language: [1], polylineOptions: [16], getMapInstance: [64], getMapsIndoorsInstance: [64], getDirectionsServiceInstance: [64], getDirectionsRendererInstance: [64], highlightLocation: [64], clearHighlightLocation: [64] }]]], ["mi-map-mapbox", [[1, "mi-map-mapbox", { accessToken: [1, "access-token"], miApiKey: [1, "mi-api-key"], disableExternalLinks: [4, "disable-external-links"], floorSelectorControlPosition: [1, "floor-selector-control-position"], floorIndex: [1537, "floor-index"], myPositionControlPosition: [1, "my-position-control-position"], polygonHighlightOptions: [16], polylineOptions: [16], zoom: [1537], maxPitch: [1538, "max-pitch"], maxZoom: [1537, "max-zoom"], bearing: [1537], pitch: [1537], language: [1], getMapInstance: [64], getMapsIndoorsInstance: [64], getDirectionsServiceInstance: [64], getDirectionsRendererInstance: [64], highlightLocation: [64], clearHighlightLocation: [64] }]]], ["mi-my-position", [[0, "mi-my-position", { mapsindoors: [8], myPositionOptions: [8, "my-position-options"], positionState: [32], watchPosition: [64] }]]], ["mi-notification", [[1, "mi-notification", { position: [1], duration: [2], push: [64], clearAll: [64] }]]], ["mi-search", [[0, "mi-search", { placeholder: [1], idAttribute: [1, "id-attribute"], dataAttributes: [16], mapsindoors: [4], google: [4], mapbox: [4], language: [1], miFields: [1, "mi-fields"], miTake: [2, "mi-take"], miSkip: [2, "mi-skip"], miOrder: [1, "mi-order"], miCategories: [1, "mi-categories"], miNear: [1, "mi-near"], miVenue: [1, "mi-venue"], gmCountryCode: [1, "gm-country-code"], value: [1537], disabled: [4], sessionToken: [1, "session-token"], userPosition: [1, "user-position"], clear: [64], triggerSearch: [64], setDisplayText: [64], focusInput: [64], getInputField: [64] }]]], ["mi-step-switcher", [[1, "mi-step-switcher", { heading: [1], steps: [16], stepIndex: [514, "step-index"] }]]], ["mi-tab", [[1, "mi-tab", { label: [1], tabFor: [1, "tab-for"] }]]], ["mi-tab-panel", [[1, "mi-tab-panel", { isActive: [32], active: [64] }]]], ["mi-tabs", [[1, "mi-tabs", { active: [2], bordered: [4], tabs: [32] }]]], ["mi-distance_2", [[1, "mi-distance", { meters: [2], unit: [1] }], [1, "mi-icon", { iconName: [1, "icon-name"] }]]], ["mi-route-instructions-step-legacy", [[1, "mi-route-instructions-step-legacy", { step: [1], hideIndoorSubsteps: [4, "hide-indoor-substeps"], fromRouteContext: [1, "from-route-context"], fromTravelMode: [1, "from-travel-mode"], fromTransitStop: [1, "from-transit-stop"], unit: [1], translations: [1], stepData: [32], translationsData: [32], substepsAreOpen: [32] }]]], ["mi-route-instructions-maneuver", [[1, "mi-route-instructions-maneuver", { maneuver: [1], translations: [1], unit: [1], maneuverData: [32], translationsData: [32] }]]], ["mi-keyboard", [[0, "mi-keyboard", { inputElement: [16], layout: [1], language: [1], clearInputField: [64] }]]], ["mi-scroll-buttons", [[1, "mi-scroll-buttons", { scrollContainerElementRef: [16], scrollLength: [2, "scroll-length"], updateScrollButtonsState: [64] }]]], ["mi-route-instructions-maneuver-legacy", [[1, "mi-route-instructions-maneuver-legacy", { maneuver: [1], translations: [1], unit: [1], maneuverData: [32], translationsData: [32] }]]], ["mi-card_2", [[1, "mi-card"], [1, "mi-spinner", { inverse: [4] }]]], ["mi-location-info", [[1, "mi-location-info", { location: [8], level: [1], showExternalId: [4, "show-external-id"] }]]], ["mi-time", [[1, "mi-time", { seconds: [2], translations: [1], translationsData: [32] }]]]], u)), aR = {
|
|
5426
5426
|
type: "logger",
|
|
5427
5427
|
log(c) {
|
|
@@ -6949,22 +6949,22 @@ class qu extends Fp {
|
|
|
6949
6949
|
};
|
|
6950
6950
|
}
|
|
6951
6951
|
}
|
|
6952
|
-
const
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
const AR =
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6952
|
+
const lr = qu.createInstance();
|
|
6953
|
+
lr.createInstance = qu.createInstance;
|
|
6954
|
+
lr.createInstance;
|
|
6955
|
+
lr.dir;
|
|
6956
|
+
lr.init;
|
|
6957
|
+
lr.loadResources;
|
|
6958
|
+
lr.reloadResources;
|
|
6959
|
+
lr.use;
|
|
6960
|
+
lr.changeLanguage;
|
|
6961
|
+
lr.getFixedT;
|
|
6962
|
+
const AR = lr.t;
|
|
6963
|
+
lr.exists;
|
|
6964
|
+
lr.setDefaultNamespace;
|
|
6965
|
+
lr.hasLoadedNamespace;
|
|
6966
|
+
lr.loadNamespaces;
|
|
6967
|
+
lr.loadLanguages;
|
|
6968
6968
|
function fp() {
|
|
6969
6969
|
return fp = Object.assign ? Object.assign.bind() : function(c) {
|
|
6970
6970
|
for (var u = 1; u < arguments.length; u++) {
|
|
@@ -7437,7 +7437,7 @@ const VR = {
|
|
|
7437
7437
|
Done: "Fini"
|
|
7438
7438
|
};
|
|
7439
7439
|
function WR(c) {
|
|
7440
|
-
|
|
7440
|
+
lr.use(FR).init({
|
|
7441
7441
|
resources: {
|
|
7442
7442
|
en: {
|
|
7443
7443
|
translation: VR
|
|
@@ -7890,7 +7890,7 @@ var Xx = { exports: {} };
|
|
|
7890
7890
|
function gt(t) {
|
|
7891
7891
|
return t * zt;
|
|
7892
7892
|
}
|
|
7893
|
-
const
|
|
7893
|
+
const Zt = [[0, 0], [1, 0], [1, 1], [0, 1]];
|
|
7894
7894
|
function un(t) {
|
|
7895
7895
|
if (t <= 0)
|
|
7896
7896
|
return 0;
|
|
@@ -8013,7 +8013,7 @@ var Xx = { exports: {} };
|
|
|
8013
8013
|
}
|
|
8014
8014
|
return Kn;
|
|
8015
8015
|
}
|
|
8016
|
-
function
|
|
8016
|
+
function qi(t) {
|
|
8017
8017
|
try {
|
|
8018
8018
|
const e = A[t];
|
|
8019
8019
|
return e.setItem("_mapbox_test_", 1), e.removeItem("_mapbox_test_"), !0;
|
|
@@ -8021,11 +8021,11 @@ var Xx = { exports: {} };
|
|
|
8021
8021
|
return !1;
|
|
8022
8022
|
}
|
|
8023
8023
|
}
|
|
8024
|
-
function
|
|
8024
|
+
function Gt(t, e) {
|
|
8025
8025
|
return [t[4 * e], t[4 * e + 1], t[4 * e + 2], t[4 * e + 3]];
|
|
8026
8026
|
}
|
|
8027
|
-
const
|
|
8028
|
-
let
|
|
8027
|
+
const fi = "mapbox-tiles";
|
|
8028
|
+
let ei, Zi, cr = 500, nr = 50;
|
|
8029
8029
|
function yr() {
|
|
8030
8030
|
try {
|
|
8031
8031
|
return A.caches;
|
|
@@ -8033,7 +8033,7 @@ var Xx = { exports: {} };
|
|
|
8033
8033
|
}
|
|
8034
8034
|
}
|
|
8035
8035
|
function Ai() {
|
|
8036
|
-
yr() && !
|
|
8036
|
+
yr() && !ei && (ei = A.caches.open(fi));
|
|
8037
8037
|
}
|
|
8038
8038
|
function Dr(t) {
|
|
8039
8039
|
const e = t.indexOf("?");
|
|
@@ -8059,11 +8059,11 @@ var Xx = { exports: {} };
|
|
|
8059
8059
|
return `${this.name}: ${this.message} (${this.status}): ${this.url}`;
|
|
8060
8060
|
}
|
|
8061
8061
|
}
|
|
8062
|
-
const
|
|
8063
|
-
if (!(/^file:/.test(n = t.url) || /^file:/.test(
|
|
8062
|
+
const Wi = Nn() ? () => self.worker && self.worker.referrer : () => (A.location.protocol === "blob:" ? A.parent : A).location.href, Gn = function(t, e) {
|
|
8063
|
+
if (!(/^file:/.test(n = t.url) || /^file:/.test(Wi()) && !/^\w+:/.test(n))) {
|
|
8064
8064
|
if (A.fetch && A.Request && A.AbortController && A.Request.prototype.hasOwnProperty("signal"))
|
|
8065
8065
|
return function(o, a) {
|
|
8066
|
-
const h = new A.AbortController(), f = new A.Request(o.url, { method: o.method || "GET", body: o.body, credentials: o.credentials, headers: o.headers, referrer:
|
|
8066
|
+
const h = new A.AbortController(), f = new A.Request(o.url, { method: o.method || "GET", body: o.body, credentials: o.credentials, headers: o.headers, referrer: Wi(), signal: h.signal });
|
|
8067
8067
|
let _ = !1, x = !1;
|
|
8068
8068
|
const w = (C = f.url).indexOf("sku=") > 0 && Ct(C);
|
|
8069
8069
|
var C;
|
|
@@ -8086,7 +8086,7 @@ var Xx = { exports: {} };
|
|
|
8086
8086
|
}, R = (P, z, F) => {
|
|
8087
8087
|
(o.type === "arrayBuffer" ? P.arrayBuffer() : o.type === "json" ? P.json() : P.text()).then((q) => {
|
|
8088
8088
|
x || (z && F && function(re, he, ie) {
|
|
8089
|
-
if (Ai(), !
|
|
8089
|
+
if (Ai(), !ei)
|
|
8090
8090
|
return;
|
|
8091
8091
|
const ce = { status: he.status, statusText: he.statusText, headers: new A.Headers() };
|
|
8092
8092
|
he.headers.forEach((De, Le) => ce.headers.set(Le, De));
|
|
@@ -8096,16 +8096,16 @@ var Xx = { exports: {} };
|
|
|
8096
8096
|
me["max-age"] && ce.headers.set("Expires", new Date(ie + 1e3 * me["max-age"]).toUTCString());
|
|
8097
8097
|
const de = ce.headers.get("Expires");
|
|
8098
8098
|
de && (new Date(de).getTime() - ie < 42e4 || function(De, Le) {
|
|
8099
|
-
if (
|
|
8099
|
+
if (Zi === void 0)
|
|
8100
8100
|
try {
|
|
8101
|
-
new Response(new ReadableStream()),
|
|
8101
|
+
new Response(new ReadableStream()), Zi = !0;
|
|
8102
8102
|
} catch {
|
|
8103
|
-
|
|
8103
|
+
Zi = !1;
|
|
8104
8104
|
}
|
|
8105
|
-
|
|
8105
|
+
Zi ? Le(De.body) : De.blob().then(Le);
|
|
8106
8106
|
}(he, (De) => {
|
|
8107
8107
|
const Le = new A.Response(De, ce);
|
|
8108
|
-
Ai(),
|
|
8108
|
+
Ai(), ei && ei.then((Ze) => Ze.put(Dr(re.url), Le)).catch((Ze) => Qe(Ze.message));
|
|
8109
8109
|
}));
|
|
8110
8110
|
}(f, z, F), _ = !0, a(null, q, P.headers.get("Cache-Control"), P.headers.get("Expires")));
|
|
8111
8111
|
}).catch((q) => {
|
|
@@ -8113,10 +8113,10 @@ var Xx = { exports: {} };
|
|
|
8113
8113
|
});
|
|
8114
8114
|
};
|
|
8115
8115
|
return w ? function(P, z) {
|
|
8116
|
-
if (Ai(), !
|
|
8116
|
+
if (Ai(), !ei)
|
|
8117
8117
|
return z(null);
|
|
8118
8118
|
const F = Dr(P.url);
|
|
8119
|
-
|
|
8119
|
+
ei.then((q) => {
|
|
8120
8120
|
q.match(F).then((re) => {
|
|
8121
8121
|
const he = function(ie) {
|
|
8122
8122
|
if (!ie)
|
|
@@ -8252,7 +8252,7 @@ var Xx = { exports: {} };
|
|
|
8252
8252
|
return o = n && n.u ? A.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g, (a, h) => String.fromCharCode(+("0x" + h)))) : j.ACCESS_TOKEN || "", e ? `mapbox.eventData.${e}:${o}` : `mapbox.eventData:${o}`;
|
|
8253
8253
|
}
|
|
8254
8254
|
fetchEventData() {
|
|
8255
|
-
const e =
|
|
8255
|
+
const e = qi("localStorage"), n = this.getStorageKey(), o = this.getStorageKey("uuid");
|
|
8256
8256
|
if (e)
|
|
8257
8257
|
try {
|
|
8258
8258
|
const a = A.localStorage.getItem(n);
|
|
@@ -8264,7 +8264,7 @@ var Xx = { exports: {} };
|
|
|
8264
8264
|
}
|
|
8265
8265
|
}
|
|
8266
8266
|
saveEventData() {
|
|
8267
|
-
const e =
|
|
8267
|
+
const e = qi("localStorage"), n = this.getStorageKey(), o = this.getStorageKey("uuid");
|
|
8268
8268
|
if (e)
|
|
8269
8269
|
try {
|
|
8270
8270
|
A.localStorage.setItem(o, this.anonId), Object.keys(this.eventData).length >= 1 && A.localStorage.setItem(n, JSON.stringify(this.eventData));
|
|
@@ -8440,7 +8440,7 @@ var Xx = { exports: {} };
|
|
|
8440
8440
|
return yt.getEntriesByName(e);
|
|
8441
8441
|
}
|
|
8442
8442
|
let Rt, Bt, Jt, pn;
|
|
8443
|
-
const
|
|
8443
|
+
const qt = { now: () => Jt !== void 0 ? Jt : A.performance.now(), setNow(t) {
|
|
8444
8444
|
Jt = t;
|
|
8445
8445
|
}, restoreNow() {
|
|
8446
8446
|
Jt = void 0;
|
|
@@ -8560,18 +8560,18 @@ var Xx = { exports: {} };
|
|
|
8560
8560
|
}
|
|
8561
8561
|
}
|
|
8562
8562
|
var ch = ja;
|
|
8563
|
-
const
|
|
8563
|
+
const ir = { kind: "null" }, It = { kind: "number" }, Cn = { kind: "string" }, wn = { kind: "boolean" }, zr = { kind: "color" }, Uo = { kind: "object" }, yn = { kind: "value" }, Us = { kind: "collator" }, ss = { kind: "formatted" }, yo = { kind: "resolvedImage" };
|
|
8564
8564
|
function Bi(t, e) {
|
|
8565
8565
|
return { kind: "array", itemType: t, N: e };
|
|
8566
8566
|
}
|
|
8567
|
-
function
|
|
8567
|
+
function ui(t) {
|
|
8568
8568
|
if (t.kind === "array") {
|
|
8569
|
-
const e =
|
|
8569
|
+
const e = ui(t.itemType);
|
|
8570
8570
|
return typeof t.N == "number" ? `array<${e}, ${t.N}>` : t.itemType.kind === "value" ? "array" : `array<${e}>`;
|
|
8571
8571
|
}
|
|
8572
8572
|
return t.kind;
|
|
8573
8573
|
}
|
|
8574
|
-
const Vr = [
|
|
8574
|
+
const Vr = [ir, It, Cn, wn, zr, ss, Uo, Bi(yn), yo];
|
|
8575
8575
|
function js(t, e) {
|
|
8576
8576
|
if (e.kind === "error")
|
|
8577
8577
|
return null;
|
|
@@ -8587,7 +8587,7 @@ var Xx = { exports: {} };
|
|
|
8587
8587
|
return null;
|
|
8588
8588
|
}
|
|
8589
8589
|
}
|
|
8590
|
-
return `Expected ${
|
|
8590
|
+
return `Expected ${ui(t)} but found ${ui(e)} instead.`;
|
|
8591
8591
|
}
|
|
8592
8592
|
function $s(t, e) {
|
|
8593
8593
|
return e.some((n) => n.kind === t.kind);
|
|
@@ -8758,7 +8758,7 @@ var Xx = { exports: {} };
|
|
|
8758
8758
|
}
|
|
8759
8759
|
function Ri(t) {
|
|
8760
8760
|
if (t === null)
|
|
8761
|
-
return
|
|
8761
|
+
return ir;
|
|
8762
8762
|
if (typeof t == "string")
|
|
8763
8763
|
return Cn;
|
|
8764
8764
|
if (typeof t == "boolean")
|
|
@@ -8870,7 +8870,7 @@ var Xx = { exports: {} };
|
|
|
8870
8870
|
if (!js(this.type, Ri(o)))
|
|
8871
8871
|
return o;
|
|
8872
8872
|
if (n === this.args.length - 1)
|
|
8873
|
-
throw new Oi(`Expected value to be of type ${
|
|
8873
|
+
throw new Oi(`Expected value to be of type ${ui(this.type)}, but found ${ui(Ri(o))} instead.`);
|
|
8874
8874
|
}
|
|
8875
8875
|
return null;
|
|
8876
8876
|
}
|
|
@@ -9130,14 +9130,14 @@ var Xx = { exports: {} };
|
|
|
9130
9130
|
n.errors.push(...x.errors);
|
|
9131
9131
|
else {
|
|
9132
9132
|
const w = (_.length ? _ : f).map(([M]) => {
|
|
9133
|
-
return R = M, Array.isArray(R) ? `(${R.map(
|
|
9133
|
+
return R = M, Array.isArray(R) ? `(${R.map(ui).join(", ")})` : `(${ui(R.type)}...)`;
|
|
9134
9134
|
var R;
|
|
9135
9135
|
}).join(" | "), C = [];
|
|
9136
9136
|
for (let M = 1; M < e.length; M++) {
|
|
9137
9137
|
const R = n.parse(e[M], 1 + C.length);
|
|
9138
9138
|
if (!R)
|
|
9139
9139
|
return null;
|
|
9140
|
-
C.push(
|
|
9140
|
+
C.push(ui(R.type));
|
|
9141
9141
|
}
|
|
9142
9142
|
n.error(`Expected arguments of type ${w}, but found (${C.join(", ")}) instead.`);
|
|
9143
9143
|
}
|
|
@@ -9683,7 +9683,7 @@ var Xx = { exports: {} };
|
|
|
9683
9683
|
return null;
|
|
9684
9684
|
x = x || z.type, _.push([C, z]);
|
|
9685
9685
|
}
|
|
9686
|
-
return x.kind === "number" || x.kind === "color" || x.kind === "array" && x.itemType.kind === "number" && typeof x.N == "number" ? new ol(x, o, a, h, _) : n.error(`Type ${
|
|
9686
|
+
return x.kind === "number" || x.kind === "color" || x.kind === "array" && x.itemType.kind === "number" && typeof x.N == "number" ? new ol(x, o, a, h, _) : n.error(`Type ${ui(x)} is not interpolatable.`);
|
|
9687
9687
|
}
|
|
9688
9688
|
evaluate(e) {
|
|
9689
9689
|
const n = this.labels, o = this.outputs;
|
|
@@ -9844,16 +9844,16 @@ var Xx = { exports: {} };
|
|
|
9844
9844
|
if (e.length !== 3)
|
|
9845
9845
|
return n.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
|
|
9846
9846
|
const o = n.parse(e[1], 1, yn), a = n.parse(e[2], 2, yn);
|
|
9847
|
-
return o && a ? $s(o.type, [wn, Cn, It,
|
|
9847
|
+
return o && a ? $s(o.type, [wn, Cn, It, ir, yn]) ? new ll(o, a) : n.error(`Expected first argument to be of type boolean, string, number or null, but found ${ui(o.type)} instead`) : null;
|
|
9848
9848
|
}
|
|
9849
9849
|
evaluate(e) {
|
|
9850
9850
|
const n = this.needle.evaluate(e), o = this.haystack.evaluate(e);
|
|
9851
9851
|
if (o == null)
|
|
9852
9852
|
return !1;
|
|
9853
9853
|
if (!Vs(n, ["boolean", "string", "number", "null"]))
|
|
9854
|
-
throw new Oi(`Expected first argument to be of type boolean, string, number or null, but found ${
|
|
9854
|
+
throw new Oi(`Expected first argument to be of type boolean, string, number or null, but found ${ui(Ri(n))} instead.`);
|
|
9855
9855
|
if (!Vs(o, ["string", "array"]))
|
|
9856
|
-
throw new Oi(`Expected second argument to be of type array or string, but found ${
|
|
9856
|
+
throw new Oi(`Expected second argument to be of type array or string, but found ${ui(Ri(o))} instead.`);
|
|
9857
9857
|
return o.indexOf(n) >= 0;
|
|
9858
9858
|
}
|
|
9859
9859
|
eachChild(e) {
|
|
@@ -9877,8 +9877,8 @@ var Xx = { exports: {} };
|
|
|
9877
9877
|
const o = n.parse(e[1], 1, yn), a = n.parse(e[2], 2, yn);
|
|
9878
9878
|
if (!o || !a)
|
|
9879
9879
|
return null;
|
|
9880
|
-
if (!$s(o.type, [wn, Cn, It,
|
|
9881
|
-
return n.error(`Expected first argument to be of type boolean, string, number or null, but found ${
|
|
9880
|
+
if (!$s(o.type, [wn, Cn, It, ir, yn]))
|
|
9881
|
+
return n.error(`Expected first argument to be of type boolean, string, number or null, but found ${ui(o.type)} instead`);
|
|
9882
9882
|
if (e.length === 4) {
|
|
9883
9883
|
const h = n.parse(e[3], 3, It);
|
|
9884
9884
|
return h ? new cl(o, a, h) : null;
|
|
@@ -9888,9 +9888,9 @@ var Xx = { exports: {} };
|
|
|
9888
9888
|
evaluate(e) {
|
|
9889
9889
|
const n = this.needle.evaluate(e), o = this.haystack.evaluate(e);
|
|
9890
9890
|
if (!Vs(n, ["boolean", "string", "number", "null"]))
|
|
9891
|
-
throw new Oi(`Expected first argument to be of type boolean, string, number or null, but found ${
|
|
9891
|
+
throw new Oi(`Expected first argument to be of type boolean, string, number or null, but found ${ui(Ri(n))} instead.`);
|
|
9892
9892
|
if (!Vs(o, ["string", "array"]))
|
|
9893
|
-
throw new Oi(`Expected second argument to be of type array or string, but found ${
|
|
9893
|
+
throw new Oi(`Expected second argument to be of type array or string, but found ${ui(Ri(o))} instead.`);
|
|
9894
9894
|
if (this.fromIndex) {
|
|
9895
9895
|
const a = this.fromIndex.evaluate(e);
|
|
9896
9896
|
return o.indexOf(n, a);
|
|
@@ -10038,7 +10038,7 @@ var Xx = { exports: {} };
|
|
|
10038
10038
|
if (!o || !a)
|
|
10039
10039
|
return null;
|
|
10040
10040
|
if (!$s(o.type, [Bi(yn), Cn, yn]))
|
|
10041
|
-
return n.error(`Expected first argument to be of type array or string, but found ${
|
|
10041
|
+
return n.error(`Expected first argument to be of type array or string, but found ${ui(o.type)} instead`);
|
|
10042
10042
|
if (e.length === 4) {
|
|
10043
10043
|
const h = n.parse(e[3], 3, It);
|
|
10044
10044
|
return h ? new ia(o.type, o, a, h) : null;
|
|
@@ -10048,7 +10048,7 @@ var Xx = { exports: {} };
|
|
|
10048
10048
|
evaluate(e) {
|
|
10049
10049
|
const n = this.input.evaluate(e), o = this.beginIndex.evaluate(e);
|
|
10050
10050
|
if (!Vs(n, ["string", "array"]))
|
|
10051
|
-
throw new Oi(`Expected first argument to be of type array or string, but found ${
|
|
10051
|
+
throw new Oi(`Expected first argument to be of type array or string, but found ${ui(Ri(n))} instead.`);
|
|
10052
10052
|
if (this.endIndex) {
|
|
10053
10053
|
const a = this.endIndex.evaluate(e);
|
|
10054
10054
|
return n.slice(o, a);
|
|
@@ -10090,14 +10090,14 @@ var Xx = { exports: {} };
|
|
|
10090
10090
|
if (!x)
|
|
10091
10091
|
return null;
|
|
10092
10092
|
if (!Ah(_, x.type))
|
|
10093
|
-
return f.concat(1).error(`"${_}" comparisons are not supported for type '${
|
|
10093
|
+
return f.concat(1).error(`"${_}" comparisons are not supported for type '${ui(x.type)}'.`);
|
|
10094
10094
|
let w = f.parse(h[2], 2, yn);
|
|
10095
10095
|
if (!w)
|
|
10096
10096
|
return null;
|
|
10097
10097
|
if (!Ah(_, w.type))
|
|
10098
|
-
return f.concat(2).error(`"${_}" comparisons are not supported for type '${
|
|
10098
|
+
return f.concat(2).error(`"${_}" comparisons are not supported for type '${ui(w.type)}'.`);
|
|
10099
10099
|
if (x.type.kind !== w.type.kind && x.type.kind !== "value" && w.type.kind !== "value")
|
|
10100
|
-
return f.error(`Cannot compare types '${
|
|
10100
|
+
return f.error(`Cannot compare types '${ui(x.type)}' and '${ui(w.type)}'.`);
|
|
10101
10101
|
o && (x.type.kind === "value" && w.type.kind !== "value" ? x = new so(w.type, [x]) : x.type.kind !== "value" && w.type.kind === "value" && (w = new so(x.type, [w])));
|
|
10102
10102
|
let C = null;
|
|
10103
10103
|
if (h.length === 4) {
|
|
@@ -10209,13 +10209,13 @@ var Xx = { exports: {} };
|
|
|
10209
10209
|
if (e.length !== 2)
|
|
10210
10210
|
return n.error(`Expected 1 argument, but found ${e.length - 1} instead.`);
|
|
10211
10211
|
const o = n.parse(e[1], 1);
|
|
10212
|
-
return o ? o.type.kind !== "array" && o.type.kind !== "string" && o.type.kind !== "value" ? n.error(`Expected argument of type string or array, but found ${
|
|
10212
|
+
return o ? o.type.kind !== "array" && o.type.kind !== "string" && o.type.kind !== "value" ? n.error(`Expected argument of type string or array, but found ${ui(o.type)} instead.`) : new Ic(o) : null;
|
|
10213
10213
|
}
|
|
10214
10214
|
evaluate(e) {
|
|
10215
10215
|
const n = this.input.evaluate(e);
|
|
10216
10216
|
if (typeof n == "string" || Array.isArray(n))
|
|
10217
10217
|
return n.length;
|
|
10218
|
-
throw new Oi(`Expected value to be of type string or array, but found ${
|
|
10218
|
+
throw new Oi(`Expected value to be of type string or array, but found ${ui(Ri(n))} instead.`);
|
|
10219
10219
|
}
|
|
10220
10220
|
eachChild(e) {
|
|
10221
10221
|
e(this.input);
|
|
@@ -10250,7 +10250,7 @@ var Xx = { exports: {} };
|
|
|
10250
10250
|
}
|
|
10251
10251
|
xo.register(Lh, { error: [{ kind: "error" }, [Cn], (t, [e]) => {
|
|
10252
10252
|
throw new Oi(e.evaluate(t));
|
|
10253
|
-
}], typeof: [Cn, [yn], (t, [e]) =>
|
|
10253
|
+
}], typeof: [Cn, [yn], (t, [e]) => ui(Ri(e.evaluate(t)))], "to-rgba": [Bi(It, 4), [zr], (t, [e]) => e.evaluate(t).toArray()], rgb: [zr, [It, It, It], kh], rgba: [zr, [It, It, It, It], kh], has: { type: wn, overloads: [[[Cn], (t, [e]) => Mc(e.evaluate(t), t.properties())], [[Cn, Uo], (t, [e, n]) => Mc(e.evaluate(t), n.evaluate(t))]] }, get: { type: yn, overloads: [[[Cn], (t, [e]) => ul(e.evaluate(t), t.properties())], [[Cn, Uo], (t, [e, n]) => ul(e.evaluate(t), n.evaluate(t))]] }, "feature-state": [yn, [Cn], (t, [e]) => ul(e.evaluate(t), t.featureState || {})], properties: [Uo, [], (t) => t.properties()], "geometry-type": [Cn, [], (t) => t.geometryType()], id: [yn, [], (t) => t.id()], zoom: [It, [], (t) => t.globals.zoom], pitch: [It, [], (t) => t.globals.pitch || 0], "distance-from-center": [It, [], (t) => t.distanceFromCenter()], "heatmap-density": [It, [], (t) => t.globals.heatmapDensity || 0], "line-progress": [It, [], (t) => t.globals.lineProgress || 0], "sky-radial-progress": [It, [], (t) => t.globals.skyRadialProgress || 0], accumulated: [yn, [], (t) => t.globals.accumulated === void 0 ? null : t.globals.accumulated], "+": [It, qr(It), (t, e) => {
|
|
10254
10254
|
let n = 0;
|
|
10255
10255
|
for (const o of e)
|
|
10256
10256
|
n += o.evaluate(t);
|
|
@@ -10528,14 +10528,14 @@ var Xx = { exports: {} };
|
|
|
10528
10528
|
for (const w in n) {
|
|
10529
10529
|
const C = w.split(".")[0], M = o[C] || o["*"];
|
|
10530
10530
|
let R;
|
|
10531
|
-
a[C] ? R = a[C] : o[C] ? R =
|
|
10531
|
+
a[C] ? R = a[C] : o[C] ? R = Hi : a["*"] ? R = a["*"] : o["*"] && (R = Hi), R ? _ = _.concat(R({ key: (e && `${e}.`) + w, value: n[w], valueSpec: M, style: h, styleSpec: f, object: n, objectKey: w }, n)) : _.push(new Mt(e, n[w], `unknown property "${w}"`));
|
|
10532
10532
|
}
|
|
10533
10533
|
for (const w in o)
|
|
10534
10534
|
a[w] || o[w].required && o[w].default === void 0 && n[w] === void 0 && _.push(new Mt(e, n, `missing required property "${w}"`));
|
|
10535
10535
|
return _;
|
|
10536
10536
|
}
|
|
10537
10537
|
function la(t) {
|
|
10538
|
-
const e = t.value, n = t.valueSpec, o = t.style, a = t.styleSpec, h = t.key, f = t.arrayElementValidator ||
|
|
10538
|
+
const e = t.value, n = t.valueSpec, o = t.style, a = t.styleSpec, h = t.key, f = t.arrayElementValidator || Hi;
|
|
10539
10539
|
if (Bn(e) !== "array")
|
|
10540
10540
|
return [new Mt(h, e, `array expected, ${Bn(e)} found`)];
|
|
10541
10541
|
if (n.length && e.length !== n.length)
|
|
@@ -10576,7 +10576,7 @@ var Xx = { exports: {} };
|
|
|
10576
10576
|
const F = P.value;
|
|
10577
10577
|
return z = z.concat(la({ key: P.key, value: F, valueSpec: P.valueSpec, style: P.style, styleSpec: P.styleSpec, arrayElementValidator: M })), Bn(F) === "array" && F.length === 0 && z.push(new Mt(P.key, F, "array must have at least one stop")), z;
|
|
10578
10578
|
}, default: function(P) {
|
|
10579
|
-
return
|
|
10579
|
+
return Hi({ key: P.key, value: P.value, valueSpec: e, style: P.style, styleSpec: P.styleSpec });
|
|
10580
10580
|
} } });
|
|
10581
10581
|
return n === "identity" && _ && C.push(new Mt(t.key, t.value, 'missing required property "property"')), n === "identity" || t.value.stops || C.push(new Mt(t.key, t.value, 'missing required property "stops"')), n === "exponential" && t.valueSpec.expression && !Rc(t.valueSpec) && C.push(new Mt(t.key, t.value, "exponential functions not supported")), t.styleSpec.$version >= 8 && (x && !qo(t.valueSpec) ? C.push(new Mt(t.key, t.value, "property functions not supported")) : _ && !Zo(t.valueSpec) && C.push(new Mt(t.key, t.value, "zoom functions not supported"))), n !== "categorical" && !w || t.value.property !== void 0 || C.push(new Mt(t.key, t.value, '"property" property is required')), C;
|
|
10582
10582
|
function M(P) {
|
|
@@ -10601,7 +10601,7 @@ var Xx = { exports: {} };
|
|
|
10601
10601
|
re !== h && (h = re, a = void 0, f = {}), z = z.concat(Sr({ key: `${q}[0]`, value: F[0], valueSpec: { zoom: {} }, style: P.style, styleSpec: P.styleSpec, objectElementValidators: { zoom: zh, value: R } }));
|
|
10602
10602
|
} else
|
|
10603
10603
|
z = z.concat(R({ key: `${q}[0]`, value: F[0], valueSpec: {}, style: P.style, styleSpec: P.styleSpec }, F));
|
|
10604
|
-
return sa(oo(F[1])) ? z.concat([new Mt(`${q}[1]`, F[1], "expressions are not allowed in function stops.")]) : z.concat(
|
|
10604
|
+
return sa(oo(F[1])) ? z.concat([new Mt(`${q}[1]`, F[1], "expressions are not allowed in function stops.")]) : z.concat(Hi({ key: `${q}[1]`, value: F[1], valueSpec: e, style: P.style, styleSpec: P.styleSpec }));
|
|
10605
10605
|
}
|
|
10606
10606
|
function R(P, z) {
|
|
10607
10607
|
const F = Bn(P.value), q = Mi(P.value), re = P.value !== null ? P.value : z;
|
|
@@ -10869,7 +10869,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
10869
10869
|
return [];
|
|
10870
10870
|
const x = f.match(/^(.*)-transition$/);
|
|
10871
10871
|
if (e === "paint" && x && _[x[1]] && _[x[1]].transition)
|
|
10872
|
-
return
|
|
10872
|
+
return Hi({ key: n, value: h, valueSpec: a.transition, style: o, styleSpec: a });
|
|
10873
10873
|
const w = t.valueSpec || _[f];
|
|
10874
10874
|
if (!w)
|
|
10875
10875
|
return [new Mt(n, h, `unknown property "${f}"`)];
|
|
@@ -10878,7 +10878,7 @@ ${JSON.stringify(n, null, 2)}
|
|
|
10878
10878
|
return [new Mt(n, h, `"${f}" does not support interpolation syntax
|
|
10879
10879
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(C[1])} }\`.`)];
|
|
10880
10880
|
const M = [];
|
|
10881
|
-
return t.layerType === "symbol" && (f === "text-field" && o && !o.glyphs && M.push(new Mt(n, h, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && oa(oo(h)) && Mi(h.type) === "identity" && M.push(new Mt(n, h, '"text-font" does not support identity functions'))), M.concat(
|
|
10881
|
+
return t.layerType === "symbol" && (f === "text-field" && o && !o.glyphs && M.push(new Mt(n, h, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && oa(oo(h)) && Mi(h.type) === "identity" && M.push(new Mt(n, h, '"text-font" does not support identity functions'))), M.concat(Hi({ key: t.key, value: h, valueSpec: w, style: o, styleSpec: a, expressionContext: "property", propertyType: e, propertyKey: f }));
|
|
10882
10882
|
}
|
|
10883
10883
|
function Bc(t) {
|
|
10884
10884
|
return Oc(t, "paint");
|
|
@@ -10912,7 +10912,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10912
10912
|
x ? w === "vector" && f === "raster" ? e.push(new Mt(o, n.source, `layer "${n.id}" requires a raster source`)) : w === "raster" && f !== "raster" ? e.push(new Mt(o, n.source, `layer "${n.id}" requires a vector source`)) : w !== "vector" || n["source-layer"] ? w === "raster-dem" && f !== "hillshade" ? e.push(new Mt(o, n.source, "raster-dem source can only be used with layer type 'hillshade'.")) : f !== "line" || !n.paint || !n.paint["line-gradient"] && !n.paint["line-trim-offset"] || w === "geojson" && x.lineMetrics || e.push(new Mt(o, n, `layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new Mt(o, n, `layer "${n.id}" must specify a "source-layer"`)) : e.push(new Mt(o, n.source, `source "${n.source}" not found`));
|
|
10913
10913
|
} else
|
|
10914
10914
|
e.push(new Mt(o, n, 'missing required property "source"'));
|
|
10915
|
-
return e = e.concat(Sr({ key: o, value: n, valueSpec: h.layer, style: t.style, styleSpec: t.styleSpec, objectElementValidators: { "*": () => [], type: () =>
|
|
10915
|
+
return e = e.concat(Sr({ key: o, value: n, valueSpec: h.layer, style: t.style, styleSpec: t.styleSpec, objectElementValidators: { "*": () => [], type: () => Hi({ key: `${o}.type`, value: n.type, valueSpec: h.layer.type, style: t.style, styleSpec: t.styleSpec, object: n, objectKey: "type" }), filter: (x) => ua(ro({ layerType: f }, x)), layout: (x) => Sr({ layer: n, key: x.key, value: x.value, valueSpec: {}, style: x.style, styleSpec: x.styleSpec, objectElementValidators: { "*": (w) => jh(ro({ layerType: f }, w)) } }), paint: (x) => Sr({ layer: n, key: x.key, value: x.value, valueSpec: {}, style: x.style, styleSpec: x.styleSpec, objectElementValidators: { "*": (w) => Bc(ro({ layerType: f }, w)) } }) } })), e;
|
|
10916
10916
|
}
|
|
10917
10917
|
function ao(t) {
|
|
10918
10918
|
const e = t.value, n = t.key, o = Bn(e);
|
|
@@ -10972,7 +10972,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10972
10972
|
return h = h.concat([new Mt("light", e, `object expected, ${f} found`)]), h;
|
|
10973
10973
|
for (const _ in e) {
|
|
10974
10974
|
const x = _.match(/^(.*)-transition$/);
|
|
10975
|
-
h = h.concat(x && o[x[1]] && o[x[1]].transition ?
|
|
10975
|
+
h = h.concat(x && o[x[1]] && o[x[1]].transition ? Hi({ key: _, value: e[_], valueSpec: n.transition, style: a, styleSpec: n }) : o[_] ? Hi({ key: _, value: e[_], valueSpec: o[_], style: a, styleSpec: n }) : [new Mt(_, e[_], `unknown property "${_}"`)]);
|
|
10976
10976
|
}
|
|
10977
10977
|
return h;
|
|
10978
10978
|
}
|
|
@@ -10986,7 +10986,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10986
10986
|
return f = f.concat([new Mt("terrain", e, `object expected, ${_} found`)]), f;
|
|
10987
10987
|
for (const x in e) {
|
|
10988
10988
|
const w = x.match(/^(.*)-transition$/);
|
|
10989
|
-
f = f.concat(w && h[w[1]] && h[w[1]].transition ?
|
|
10989
|
+
f = f.concat(w && h[w[1]] && h[w[1]].transition ? Hi({ key: x, value: e[x], valueSpec: a.transition, style: o, styleSpec: a }) : h[x] ? Hi({ key: x, value: e[x], valueSpec: h[x], style: o, styleSpec: a }) : [new Mt(x, e[x], `unknown property "${x}"`)]);
|
|
10990
10990
|
}
|
|
10991
10991
|
if (e.source) {
|
|
10992
10992
|
const x = o.sources && o.sources[e.source], w = x && Mi(x.type);
|
|
@@ -11005,7 +11005,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11005
11005
|
return h = h.concat([new Mt("fog", e, `object expected, ${f} found`)]), h;
|
|
11006
11006
|
for (const _ in e) {
|
|
11007
11007
|
const x = _.match(/^(.*)-transition$/);
|
|
11008
|
-
h = h.concat(x && a[x[1]] && a[x[1]].transition ?
|
|
11008
|
+
h = h.concat(x && a[x[1]] && a[x[1]].transition ? Hi({ key: _, value: e[_], valueSpec: o.transition, style: n, styleSpec: o }) : a[_] ? Hi({ key: _, value: e[_], valueSpec: a[_], style: n, styleSpec: o }) : [new Mt(_, e[_], `unknown property "${_}"`)]);
|
|
11009
11009
|
}
|
|
11010
11010
|
return h;
|
|
11011
11011
|
}
|
|
@@ -11025,12 +11025,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11025
11025
|
const f = Bn(e);
|
|
11026
11026
|
if (f === "object")
|
|
11027
11027
|
for (const _ in e)
|
|
11028
|
-
h = h.concat(
|
|
11028
|
+
h = h.concat(Hi({ key: _, value: e[_], valueSpec: o[_], style: a, styleSpec: n }));
|
|
11029
11029
|
else
|
|
11030
11030
|
f !== "string" && (h = h.concat([new Mt("projection", e, `object or string expected, ${f} found`)]));
|
|
11031
11031
|
return h;
|
|
11032
11032
|
} };
|
|
11033
|
-
function
|
|
11033
|
+
function Hi(t) {
|
|
11034
11034
|
const e = t.value, n = t.valueSpec, o = t.styleSpec;
|
|
11035
11035
|
return n.expression && oa(Mi(e)) ? Oh(t) : n.expression && sa(oo(e)) ? ms(t) : n.type && Zh[n.type] ? Zh[n.type](t) : Sr(ro({}, t, { valueSpec: n.type ? o[n.type] : n }));
|
|
11036
11036
|
}
|
|
@@ -11039,7 +11039,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11039
11039
|
return o.length || (e.indexOf("{fontstack}") === -1 && o.push(new Mt(n, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && o.push(new Mt(n, e, '"glyphs" url must include a "{range}" token'))), o;
|
|
11040
11040
|
}
|
|
11041
11041
|
function Fc(t, e = Xe) {
|
|
11042
|
-
return lo(
|
|
11042
|
+
return lo(Hi({ key: "", value: t, valueSpec: e.$root, styleSpec: e, style: t, objectElementValidators: { glyphs: df, "*": () => [] } }));
|
|
11043
11043
|
}
|
|
11044
11044
|
const pf = (t) => lo(Bc(t)), ff = (t) => lo(jh(t));
|
|
11045
11045
|
function lo(t) {
|
|
@@ -11596,7 +11596,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11596
11596
|
}
|
|
11597
11597
|
}
|
|
11598
11598
|
br.prototype.bytesPerElement = 16, Dt(br, "StructArrayLayout4f16");
|
|
11599
|
-
class
|
|
11599
|
+
class rr extends Kt {
|
|
11600
11600
|
_refreshViews() {
|
|
11601
11601
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
11602
11602
|
}
|
|
@@ -11609,7 +11609,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11609
11609
|
return this.uint16[_ + 0] = n, this.uint16[_ + 1] = o, this.uint16[_ + 2] = a, this.uint16[_ + 3] = h, this.float32[x + 2] = f, e;
|
|
11610
11610
|
}
|
|
11611
11611
|
}
|
|
11612
|
-
|
|
11612
|
+
rr.prototype.bytesPerElement = 12, Dt(rr, "StructArrayLayout4ui1f12");
|
|
11613
11613
|
class Wr extends Kt {
|
|
11614
11614
|
_refreshViews() {
|
|
11615
11615
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
@@ -11679,7 +11679,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11679
11679
|
}
|
|
11680
11680
|
}
|
|
11681
11681
|
yi.prototype.bytesPerElement = 4, Dt(yi, "StructArrayLayout1ul4");
|
|
11682
|
-
class
|
|
11682
|
+
class Xi extends Kt {
|
|
11683
11683
|
_refreshViews() {
|
|
11684
11684
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
11685
11685
|
}
|
|
@@ -11692,7 +11692,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11692
11692
|
return this.int16[F + 0] = n, this.int16[F + 1] = o, this.int16[F + 2] = a, this.int16[F + 3] = h, this.int16[F + 4] = f, this.float32[q + 3] = _, this.float32[q + 4] = x, this.float32[q + 5] = w, this.float32[q + 6] = C, this.int16[F + 14] = M, this.uint32[q + 8] = R, this.uint16[F + 18] = P, this.uint16[F + 19] = z, e;
|
|
11693
11693
|
}
|
|
11694
11694
|
}
|
|
11695
|
-
|
|
11695
|
+
Xi.prototype.bytesPerElement = 40, Dt(Xi, "StructArrayLayout5i4f1i1ul2ui40");
|
|
11696
11696
|
class ti extends Kt {
|
|
11697
11697
|
_refreshViews() {
|
|
11698
11698
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
@@ -11707,7 +11707,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11707
11707
|
}
|
|
11708
11708
|
}
|
|
11709
11709
|
ti.prototype.bytesPerElement = 16, Dt(ti, "StructArrayLayout3i2i2i16");
|
|
11710
|
-
class
|
|
11710
|
+
class or extends Kt {
|
|
11711
11711
|
_refreshViews() {
|
|
11712
11712
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
11713
11713
|
}
|
|
@@ -11720,7 +11720,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11720
11720
|
return this.float32[_ + 0] = n, this.float32[_ + 1] = o, this.float32[_ + 2] = a, this.int16[x + 6] = h, this.int16[x + 7] = f, e;
|
|
11721
11721
|
}
|
|
11722
11722
|
}
|
|
11723
|
-
|
|
11723
|
+
or.prototype.bytesPerElement = 16, Dt(or, "StructArrayLayout2f1f2i16");
|
|
11724
11724
|
class fa extends Kt {
|
|
11725
11725
|
_refreshViews() {
|
|
11726
11726
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
@@ -11749,7 +11749,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11749
11749
|
}
|
|
11750
11750
|
}
|
|
11751
11751
|
co.prototype.bytesPerElement = 12, Dt(co, "StructArrayLayout3f12");
|
|
11752
|
-
class
|
|
11752
|
+
class Ki extends Kt {
|
|
11753
11753
|
_refreshViews() {
|
|
11754
11754
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
11755
11755
|
}
|
|
@@ -11762,7 +11762,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11762
11762
|
return this.uint16[h + 0] = n, this.uint16[h + 1] = o, this.uint16[h + 2] = a, e;
|
|
11763
11763
|
}
|
|
11764
11764
|
}
|
|
11765
|
-
|
|
11765
|
+
Ki.prototype.bytesPerElement = 6, Dt(Ki, "StructArrayLayout3ui6");
|
|
11766
11766
|
class Cr extends Kt {
|
|
11767
11767
|
_refreshViews() {
|
|
11768
11768
|
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);
|
|
@@ -11915,7 +11915,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11915
11915
|
}
|
|
11916
11916
|
}
|
|
11917
11917
|
h_.prototype.size = 40;
|
|
11918
|
-
class mf extends
|
|
11918
|
+
class mf extends Xi {
|
|
11919
11919
|
get(e) {
|
|
11920
11920
|
return new h_(this, e);
|
|
11921
11921
|
}
|
|
@@ -12557,7 +12557,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12557
12557
|
function Kb(t, e) {
|
|
12558
12558
|
return Xb[t] || [t.replace(`${e}-`, "").replace(/-/g, "_")];
|
|
12559
12559
|
}
|
|
12560
|
-
const Yb = { "line-pattern": { source:
|
|
12560
|
+
const Yb = { "line-pattern": { source: rr, composite: rr }, "fill-pattern": { source: rr, composite: rr }, "fill-extrusion-pattern": { source: rr, composite: rr }, "line-dasharray": { source: Wr, composite: Wr } }, Jb = { color: { source: od, composite: br }, number: { source: Xr, composite: od } };
|
|
12561
12561
|
function A_(t, e, n) {
|
|
12562
12562
|
const o = Yb[t];
|
|
12563
12563
|
return o && o[n] || Jb[e][n];
|
|
@@ -12803,11 +12803,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12803
12803
|
function Or(t) {
|
|
12804
12804
|
return 360 * t - 180;
|
|
12805
12805
|
}
|
|
12806
|
-
function
|
|
12806
|
+
function Yi(t) {
|
|
12807
12807
|
return 360 / Math.PI * Math.atan(Math.exp((180 - 360 * t) * Math.PI / 180)) - 90;
|
|
12808
12808
|
}
|
|
12809
12809
|
function M_(t, e) {
|
|
12810
|
-
return t * yf(
|
|
12810
|
+
return t * yf(Yi(e));
|
|
12811
12811
|
}
|
|
12812
12812
|
const Co = 85.051129;
|
|
12813
12813
|
function R_(t) {
|
|
@@ -12822,13 +12822,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12822
12822
|
return new Tl(Eo(o.lng), So(o.lat), Yr(n, o.lat));
|
|
12823
12823
|
}
|
|
12824
12824
|
toLngLat() {
|
|
12825
|
-
return new Mn(Or(this.x),
|
|
12825
|
+
return new Mn(Or(this.x), Yi(this.y));
|
|
12826
12826
|
}
|
|
12827
12827
|
toAltitude() {
|
|
12828
12828
|
return M_(this.z, this.y);
|
|
12829
12829
|
}
|
|
12830
12830
|
meterInMercatorCoordinateUnits() {
|
|
12831
|
-
return 1 / I_ * R_(
|
|
12831
|
+
return 1 / I_ * R_(Yi(this.y));
|
|
12832
12832
|
}
|
|
12833
12833
|
}
|
|
12834
12834
|
function vf(t, e, n, o, a, h, f, _, x) {
|
|
@@ -12873,7 +12873,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12873
12873
|
const o = t.loadGeometry(), a = t.extent, h = sn / a;
|
|
12874
12874
|
if (e && n && n.projection.isReprojectedInTileSpace) {
|
|
12875
12875
|
const f = 1 << e.z, { scale: _, x, y: w, projection: C } = n, M = (R) => {
|
|
12876
|
-
const P = Or((e.x + R.x / a) / f), z =
|
|
12876
|
+
const P = Or((e.x + R.x / a) / f), z = Yi((e.y + R.y / a) / f), F = C.project(P, z);
|
|
12877
12877
|
R.x = (F.x * _ - x) * a, R.y = (F.y * _ - w) * a;
|
|
12878
12878
|
};
|
|
12879
12879
|
for (let R = 0; R < o.length; R++)
|
|
@@ -12902,7 +12902,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12902
12902
|
}
|
|
12903
12903
|
class wf {
|
|
12904
12904
|
constructor(e) {
|
|
12905
|
-
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((n) => n.id), this.index = e.index, this.hasPattern = !1, this.projection = e.projection, this.layoutVertexArray = new zn(), this.indexArray = new
|
|
12905
|
+
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((n) => n.id), this.index = e.index, this.hasPattern = !1, this.projection = e.projection, this.layoutVertexArray = new zn(), this.indexArray = new Ki(), this.segments = new Li(), this.programConfigurations = new ga(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter((n) => n.isStateDependent()).map((n) => n.id);
|
|
12906
12906
|
}
|
|
12907
12907
|
populate(e, n, o, a) {
|
|
12908
12908
|
const h = this.layers[0], f = [];
|
|
@@ -13357,7 +13357,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13357
13357
|
}
|
|
13358
13358
|
const q = h ? P : pw(F.x, F.y, F.z, o), re = h ? t.tilespaceRays.map((ie) => mw(ie, z)) : t.queryGeometry.screenGeometry, he = ba([], [F.x, F.y, F.z, 1], o);
|
|
13359
13359
|
if (!f && h ? x *= he[3] / n.cameraToCenterDistance : f && !h && (x *= n.cameraToCenterDistance / he[3]), h) {
|
|
13360
|
-
const ie =
|
|
13360
|
+
const ie = Yi((R.y / sn + w.y) / (1 << w.z));
|
|
13361
13361
|
x /= n.projection.pixelsPerMeter(ie, 1) / Yr(1, ie);
|
|
13362
13362
|
}
|
|
13363
13363
|
if (iw(re, q, x))
|
|
@@ -13775,7 +13775,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13775
13775
|
};
|
|
13776
13776
|
class xd {
|
|
13777
13777
|
constructor(e) {
|
|
13778
|
-
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((n) => n.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new zn(), this.indexArray = new
|
|
13778
|
+
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((n) => n.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new zn(), this.indexArray = new Ki(), this.indexArray2 = new Kr(), this.programConfigurations = new ga(e.layers, e.zoom), this.segments = new Li(), this.segments2 = new Li(), this.stateDependentLayerIds = this.layers.filter((n) => n.isStateDependent()).map((n) => n.id), this.projection = e.projection;
|
|
13779
13779
|
}
|
|
13780
13780
|
populate(e, n, o, a) {
|
|
13781
13781
|
this.hasPattern = Ff("fill", this.layers, n);
|
|
@@ -14033,7 +14033,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14033
14033
|
}
|
|
14034
14034
|
class cu {
|
|
14035
14035
|
constructor(e) {
|
|
14036
|
-
this.zoom = e.zoom, this.canonical = e.canonical, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((n) => n.id), this.index = e.index, this.hasPattern = !1, this.edgeRadius = 0, this.projection = e.projection, this.layoutVertexArray = new Zn(), this.centroidVertexArray = new x_(), this.indexArray = new
|
|
14036
|
+
this.zoom = e.zoom, this.canonical = e.canonical, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((n) => n.id), this.index = e.index, this.hasPattern = !1, this.edgeRadius = 0, this.projection = e.projection, this.layoutVertexArray = new Zn(), this.centroidVertexArray = new x_(), this.indexArray = new Ki(), this.programConfigurations = new ga(e.layers, e.zoom), this.segments = new Li(), this.stateDependentLayerIds = this.layers.filter((n) => n.isStateDependent()).map((n) => n.id), this.enableTerrain = e.enableTerrain;
|
|
14037
14037
|
}
|
|
14038
14038
|
populate(e, n, o, a) {
|
|
14039
14039
|
this.features = [], this.hasPattern = Ff("fill-extrusion", this.layers, n), this.featuresOnBorder = [], this.borders = [[], [], [], []], this.borderDoneWithNeighborZ = [-1, -1, -1, -1], this.tileToMeter = function(h) {
|
|
@@ -14222,7 +14222,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14222
14222
|
return n * Math.sqrt(1 + 2 * e * e) - n;
|
|
14223
14223
|
}
|
|
14224
14224
|
function vy(t, e, n) {
|
|
14225
|
-
const o = 1 << n.z, a = Or(n.x / o), h = Or((n.x + 1) / o), f =
|
|
14225
|
+
const o = 1 << n.z, a = Or(n.x / o), h = Or((n.x + 1) / o), f = Yi(n.y / o), _ = Yi((n.y + 1) / o);
|
|
14226
14226
|
return function(x, w, C, M, R = 0, P) {
|
|
14227
14227
|
const z = [];
|
|
14228
14228
|
if (!x.length || !C || !M)
|
|
@@ -14255,8 +14255,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14255
14255
|
if (x === 0)
|
|
14256
14256
|
return 0.5 * (w + C);
|
|
14257
14257
|
{
|
|
14258
|
-
const M =
|
|
14259
|
-
return (So(0.5 * (
|
|
14258
|
+
const M = Yi((n.y + w / sn) / o);
|
|
14259
|
+
return (So(0.5 * (Yi((n.y + C / sn) / o) + M)) * o - n.y) * sn;
|
|
14260
14260
|
}
|
|
14261
14261
|
});
|
|
14262
14262
|
}
|
|
@@ -14397,7 +14397,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14397
14397
|
constructor(e) {
|
|
14398
14398
|
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((n) => n.id), this.index = e.index, this.projection = e.projection, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((n) => {
|
|
14399
14399
|
this.gradients[n.id] = {};
|
|
14400
|
-
}), this.layoutVertexArray = new pr(), this.layoutVertexArray2 = new br(), this.indexArray = new
|
|
14400
|
+
}), this.layoutVertexArray = new pr(), this.layoutVertexArray2 = new br(), this.indexArray = new Ki(), this.programConfigurations = new ga(e.layers, e.zoom), this.segments = new Li(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((n) => n.isStateDependent()).map((n) => n.id);
|
|
14401
14401
|
}
|
|
14402
14402
|
populate(e, n, o, a) {
|
|
14403
14403
|
this.hasPattern = Ff("line", this.layers, n);
|
|
@@ -14599,7 +14599,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14599
14599
|
Lt([{ type: "Int16", name: "projectedAnchorX" }, { type: "Int16", name: "projectedAnchorY" }, { type: "Int16", name: "projectedAnchorZ" }, { type: "Int16", name: "tileAnchorX" }, { type: "Int16", name: "tileAnchorY" }, { type: "Float32", name: "x1" }, { type: "Float32", name: "y1" }, { type: "Float32", name: "x2" }, { type: "Float32", name: "y2" }, { type: "Int16", name: "padding" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
|
|
14600
14600
|
const Ay = Lt([{ name: "a_pos", components: 3, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), l2 = Lt([{ name: "a_pos_2f", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
|
|
14601
14601
|
Lt([{ name: "triangle", components: 3, type: "Uint16" }]), Lt([{ 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" }]), Lt([{ 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" }]), Lt([{ type: "Float32", name: "offsetX" }]), Lt([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }]);
|
|
14602
|
-
var
|
|
14602
|
+
var Ji = 24;
|
|
14603
14603
|
const Ao = 128;
|
|
14604
14604
|
function $f(t, e) {
|
|
14605
14605
|
const { expression: n } = e;
|
|
@@ -15228,7 +15228,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15228
15228
|
let Tn = 0;
|
|
15229
15229
|
for (const hn of lt) {
|
|
15230
15230
|
hn.trim();
|
|
15231
|
-
const En = hn.getMaxScale(), Wn = (En - 1) *
|
|
15231
|
+
const En = hn.getMaxScale(), Wn = (En - 1) * Ji, oi = { positionedGlyphs: [], lineOffset: 0 };
|
|
15232
15232
|
de.positionedLines[Tn] = oi;
|
|
15233
15233
|
const ii = oi.positionedGlyphs;
|
|
15234
15234
|
let si = 0;
|
|
@@ -15239,7 +15239,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15239
15239
|
let ci = 0, _i = 0;
|
|
15240
15240
|
for (let $n = 0; $n < hn.length(); $n++) {
|
|
15241
15241
|
const ki = hn.getSection($n), Ci = hn.getSectionIndex($n), Pn = hn.getCharCode($n);
|
|
15242
|
-
let
|
|
15242
|
+
let hi = ki.scale, Pi = null, Hn = null, xi = null, sr = Ji, ji = 0;
|
|
15243
15243
|
const $i = !(nt === Nr.horizontal || !$e && !k(Pn) || $e && (Id[Pn] || (vn = Pn, Uc(vn) || Kh(vn) || jc(vn) || l(vn) || g(vn))));
|
|
15244
15244
|
if (ki.imageName) {
|
|
15245
15245
|
const _r = Ze[ki.imageName];
|
|
@@ -15247,8 +15247,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15247
15247
|
continue;
|
|
15248
15248
|
xi = ki.imageName, de.iconsInText = de.iconsInText || !0, Hn = _r.paddedRect;
|
|
15249
15249
|
const Vi = _r.displaySize;
|
|
15250
|
-
|
|
15251
|
-
const ns = ($i ? Vi[0] : Vi[1]) *
|
|
15250
|
+
hi = hi * Ji / bt, Pi = { width: Vi[0], height: Vi[1], left: 1, top: -3, advance: $i ? Vi[1] : Vi[0], localGlyph: !1 }, ji = tn ? -Pi.height * hi : En * Ji - 17 - Vi[1] * hi, sr = Pi.advance;
|
|
15251
|
+
const ns = ($i ? Vi[0] : Vi[1]) * hi - Ji * En;
|
|
15252
15252
|
ns > 0 && ns > si && (si = ns);
|
|
15253
15253
|
} else {
|
|
15254
15254
|
const _r = Le[ki.fontStack];
|
|
@@ -15261,13 +15261,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15261
15261
|
const ns = Vi.glyphs[Pn];
|
|
15262
15262
|
if (!ns)
|
|
15263
15263
|
continue;
|
|
15264
|
-
if (Pi = ns.metrics,
|
|
15265
|
-
const jl = Vi.ascender !== void 0 ? Math.abs(Vi.ascender) : 0, Cu = Vi.descender !== void 0 ? Math.abs(Vi.descender) : 0, Au = (jl + Cu) *
|
|
15266
|
-
ci < Au && (ci = Au, _i = (jl - Cu) / 2 *
|
|
15264
|
+
if (Pi = ns.metrics, sr = Pn !== 8203 ? Ji : 0, tn) {
|
|
15265
|
+
const jl = Vi.ascender !== void 0 ? Math.abs(Vi.ascender) : 0, Cu = Vi.descender !== void 0 ? Math.abs(Vi.descender) : 0, Au = (jl + Cu) * hi;
|
|
15266
|
+
ci < Au && (ci = Au, _i = (jl - Cu) / 2 * hi), ji = -jl * hi;
|
|
15267
15267
|
} else
|
|
15268
|
-
ji = (En -
|
|
15268
|
+
ji = (En - hi) * Ji - 17;
|
|
15269
15269
|
}
|
|
15270
|
-
$i ? (de.verticalizable = !0, ii.push({ glyph: Pn, imageName: xi, x: en, y: Et + ji, vertical: $i, scale:
|
|
15270
|
+
$i ? (de.verticalizable = !0, ii.push({ glyph: Pn, imageName: xi, x: en, y: Et + ji, vertical: $i, scale: hi, localGlyph: Pi.localGlyph, fontStack: ki.fontStack, sectionIndex: Ci, metrics: Pi, rect: Hn }), en += sr * hi + ut) : (ii.push({ glyph: Pn, imageName: xi, x: en, y: Et + ji, vertical: $i, scale: hi, localGlyph: Pi.localGlyph, fontStack: ki.fontStack, sectionIndex: Ci, metrics: Pi, rect: Hn }), en += Pi.advance * hi + ut);
|
|
15271
15271
|
}
|
|
15272
15272
|
ii.length !== 0 && ($t = Math.max(en - ut, $t), tn ? Fy(ii, wt, si, _i, je * En / 2) : Fy(ii, wt, si, 0, je / 2)), en = 0;
|
|
15273
15273
|
const Ui = je * En + si;
|
|
@@ -15292,7 +15292,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15292
15292
|
function zy(t, e, n, o, a, h) {
|
|
15293
15293
|
if (e.imageName) {
|
|
15294
15294
|
const f = o[e.imageName];
|
|
15295
|
-
return f ? f.displaySize[0] * e.scale *
|
|
15295
|
+
return f ? f.displaySize[0] * e.scale * Ji / h + a : 0;
|
|
15296
15296
|
}
|
|
15297
15297
|
{
|
|
15298
15298
|
const f = n[e.fontStack], _ = f && f.glyphs[t];
|
|
@@ -15826,13 +15826,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15826
15826
|
const q = C.get("text-font").evaluate(F, {}, _).join(","), re = z.evaluate(F, {}, _), he = R.layoutTextSize.evaluate(F, {}, _), ie = (R.layoutIconSize.evaluate(F, {}, _), { horizontal: {}, vertical: void 0 }), ce = F.text;
|
|
15827
15827
|
let me, de = [0, 0];
|
|
15828
15828
|
if (ce) {
|
|
15829
|
-
const Ze = ce.toString(), lt = C.get("text-letter-spacing").evaluate(F, {}, _) *
|
|
15829
|
+
const Ze = ce.toString(), lt = C.get("text-letter-spacing").evaluate(F, {}, _) * Ji, je = C.get("text-line-height").evaluate(F, {}, _) * Ji, Ye = E(Ze) ? lt : 0, et = C.get("text-anchor").evaluate(F, {}, _), nt = C.get("text-variable-anchor");
|
|
15830
15830
|
if (!nt) {
|
|
15831
15831
|
const Et = C.get("text-radial-offset").evaluate(F, {}, _);
|
|
15832
|
-
de = Et ? Yy(et, [Et *
|
|
15832
|
+
de = Et ? Yy(et, [Et * Ji, Xf]) : C.get("text-offset").evaluate(F, {}, _).map(($t) => $t * Ji);
|
|
15833
15833
|
}
|
|
15834
15834
|
let ut = P ? "center" : C.get("text-justify").evaluate(F, {}, _);
|
|
15835
|
-
const $e = C.get("symbol-placement") === "point", bt = $e ? C.get("text-max-width").evaluate(F, {}, _) *
|
|
15835
|
+
const $e = C.get("symbol-placement") === "point", bt = $e ? C.get("text-max-width").evaluate(F, {}, _) * Ji : 1 / 0, en = (Et) => {
|
|
15836
15836
|
t.allowVerticalPlacement && T(Ze) && (ie.vertical = Zf(ce, e, n, a, q, bt, je, et, Et, Ye, de, Nr.vertical, !0, he, re));
|
|
15837
15837
|
};
|
|
15838
15838
|
if (!P && nt) {
|
|
@@ -15896,14 +15896,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15896
15896
|
const { x: $t, y: wt, z: tn } = R.projectTilePoint(bt.x, bt.y, en);
|
|
15897
15897
|
Et = { anchor: new es($t, wt, tn, 0, void 0), up: R.upVector(en, bt.x, bt.y) };
|
|
15898
15898
|
}
|
|
15899
|
-
(function($t, wt, tn, Tn, vn, _n, on, jn, hn, En, Wn, oi, ii, si, ci, _i, Ui, $n, ki, Ci, Pn,
|
|
15900
|
-
const
|
|
15899
|
+
(function($t, wt, tn, Tn, vn, _n, on, jn, hn, En, Wn, oi, ii, si, ci, _i, Ui, $n, ki, Ci, Pn, hi, Pi, Hn, xi) {
|
|
15900
|
+
const sr = $t.addToLineVertexArray(wt, Tn);
|
|
15901
15901
|
let ji, $i, _r, Vi, ns, jl, Cu, Au = 0, B1 = 0, N1 = 0, F1 = 0, pm = -1, fm = -1;
|
|
15902
15902
|
const ko = {};
|
|
15903
15903
|
let U1 = bl.exports("");
|
|
15904
15904
|
const Ca = tn ? tn.anchor : wt;
|
|
15905
15905
|
let mm = 0, gm = 0;
|
|
15906
|
-
if (hn._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [mm, gm] = hn.layout.get("text-offset").evaluate(Pn, {}, xi).map((Mr) => Mr *
|
|
15906
|
+
if (hn._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [mm, gm] = hn.layout.get("text-offset").evaluate(Pn, {}, xi).map((Mr) => Mr * Ji) : (mm = hn.layout.get("text-radial-offset").evaluate(Pn, {}, xi) * Ji, gm = Xf), $t.allowVerticalPlacement && vn.vertical) {
|
|
15907
15907
|
const Mr = vn.vertical;
|
|
15908
15908
|
if (ci)
|
|
15909
15909
|
jl = Yf(Mr), jn && (Cu = Yf(jn));
|
|
@@ -15917,16 +15917,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15917
15917
|
$i = kd(En, Ca, wt, Wn, oi, ii, _n, $n, Mr), Au = 4 * Iu.length;
|
|
15918
15918
|
const j1 = $t.iconSizeData;
|
|
15919
15919
|
let Aa = null;
|
|
15920
|
-
j1.kind === "source" ? (Aa = [Ao * hn.layout.get("icon-size").evaluate(Pn, {}, xi)], Aa[0] > Ss && Qe(`${$t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : j1.kind === "composite" && (Aa = [Ao *
|
|
15920
|
+
j1.kind === "source" ? (Aa = [Ao * hn.layout.get("icon-size").evaluate(Pn, {}, xi)], Aa[0] > Ss && Qe(`${$t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : j1.kind === "composite" && (Aa = [Ao * hi.compositeIconSizes[0].evaluate(Pn, {}, xi), Ao * hi.compositeIconSizes[1].evaluate(Pn, {}, xi)], (Aa[0] > Ss || Aa[1] > Ss) && Qe(`${$t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), $t.addSymbols($t.icon, Iu, Aa, Ci, ki, Pn, !1, tn, wt, sr.lineStartIndex, sr.lineLength, -1, Hn, xi), pm = $t.icon.placedSymbolArray.length - 1, ym && (B1 = 4 * ym.length, $t.addSymbols($t.icon, ym, Aa, Ci, ki, Pn, Nr.vertical, tn, wt, sr.lineStartIndex, sr.lineLength, -1, Hn, xi), fm = $t.icon.placedSymbolArray.length - 1);
|
|
15921
15921
|
}
|
|
15922
15922
|
for (const Mr in vn.horizontal) {
|
|
15923
15923
|
const Rr = vn.horizontal[Mr];
|
|
15924
15924
|
ji || (U1 = bl.exports(Rr.text), ci ? ns = Yf(Rr) : ji = kd(En, Ca, wt, Wn, oi, ii, Rr, si, hn.layout.get("text-rotate").evaluate(Pn, {}, xi), _i));
|
|
15925
15925
|
const Iu = Rr.positionedLines.length === 1;
|
|
15926
|
-
if (N1 += Jy($t, tn, wt, Rr, on, hn, ci, Pn, _i,
|
|
15926
|
+
if (N1 += Jy($t, tn, wt, Rr, on, hn, ci, Pn, _i, sr, vn.vertical ? Nr.horizontal : Nr.horizontalOnly, Iu ? Object.keys(vn.horizontal) : [Mr], ko, pm, hi, Hn, xi), Iu)
|
|
15927
15927
|
break;
|
|
15928
15928
|
}
|
|
15929
|
-
vn.vertical && (F1 += Jy($t, tn, wt, vn.vertical, on, hn, ci, Pn, _i,
|
|
15929
|
+
vn.vertical && (F1 += Jy($t, tn, wt, vn.vertical, on, hn, ci, Pn, _i, sr, Nr.vertical, ["vertical"], ko, fm, hi, Hn, xi));
|
|
15930
15930
|
let Ls = -1;
|
|
15931
15931
|
const _m = (Mr, Rr) => Mr ? Math.max(Mr, Rr) : Rr;
|
|
15932
15932
|
Ls = _m(ns, Ls), Ls = _m(jl, Ls), Ls = _m(Cu, Ls);
|
|
@@ -16004,20 +16004,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16004
16004
|
const _i = Wn.w * wt.scale / (_n * (wt.localGlyph ? 2 : 1)), Ui = Wn.h * wt.scale / (_n * (wt.localGlyph ? 2 : 1));
|
|
16005
16005
|
let $n, ki, Ci, Pn;
|
|
16006
16006
|
if (jn) {
|
|
16007
|
-
const Hn = wt.y - en, xi = new J(-hn, hn - Hn),
|
|
16008
|
-
$n = new J(-hn + ii[0], ii[1]), $n._rotateAround(
|
|
16009
|
-
const $i = wt.imageName ? En.advance * wt.scale :
|
|
16007
|
+
const Hn = wt.y - en, xi = new J(-hn, hn - Hn), sr = -Math.PI / 2, ji = new J(...si);
|
|
16008
|
+
$n = new J(-hn + ii[0], ii[1]), $n._rotateAround(sr, xi)._add(ji), $n.x += -Hn + hn, $n.y -= (En.left - Tn) * wt.scale;
|
|
16009
|
+
const $i = wt.imageName ? En.advance * wt.scale : Ji * wt.scale, _r = String.fromCharCode(wt.glyph);
|
|
16010
16010
|
h2(_r) ? $n.x += (1 - Tn) * wt.scale : d2(_r) ? $n.x += $i - En.height * wt.scale + (-Tn - 1) * wt.scale : $n.x += wt.imageName || En.width + 2 * Tn === Wn.w && En.height + 2 * Tn === Wn.h ? ($i - Ui) / 2 : ($i - (En.height + 2 * Tn) * wt.scale) / 2, ki = new J($n.x, $n.y - _i), Ci = new J($n.x + Ui, $n.y), Pn = new J($n.x + Ui, $n.y - _i);
|
|
16011
16011
|
} else {
|
|
16012
|
-
const Hn = (En.left - Tn) * wt.scale - hn + ii[0], xi = (-En.top - Tn) * wt.scale + ii[1],
|
|
16013
|
-
$n = new J(Hn, xi), ki = new J(
|
|
16012
|
+
const Hn = (En.left - Tn) * wt.scale - hn + ii[0], xi = (-En.top - Tn) * wt.scale + ii[1], sr = Hn + _i, ji = xi + Ui;
|
|
16013
|
+
$n = new J(Hn, xi), ki = new J(sr, xi), Ci = new J(Hn, ji), Pn = new J(sr, ji);
|
|
16014
16014
|
}
|
|
16015
16015
|
if (et) {
|
|
16016
16016
|
let Hn;
|
|
16017
16017
|
Hn = Le ? new J(0, 0) : ci ? new J(nt[0], nt[1]) : new J(de[0], de[1]), $n._rotateAround(et, Hn), ki._rotateAround(et, Hn), Ci._rotateAround(et, Hn), Pn._rotateAround(et, Hn);
|
|
16018
16018
|
}
|
|
16019
|
-
const
|
|
16020
|
-
Ye.push({ tl: $n, tr: ki, bl: Ci, br: Pn, tex: tn, writingMode: me.writingMode, glyphOffset: oi, sectionIndex: wt.sectionIndex, isSDF: vn, pixelOffsetTL:
|
|
16019
|
+
const hi = new J(0, 0), Pi = new J(0, 0);
|
|
16020
|
+
Ye.push({ tl: $n, tr: ki, bl: Ci, br: Pn, tex: tn, writingMode: me.writingMode, glyphOffset: oi, sectionIndex: wt.sectionIndex, isSDF: vn, pixelOffsetTL: hi, pixelOffsetBR: Pi, minFontScaleX: 0, minFontScaleY: 0 });
|
|
16021
16021
|
}
|
|
16022
16022
|
}
|
|
16023
16023
|
return Ye;
|
|
@@ -16074,7 +16074,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16074
16074
|
}
|
|
16075
16075
|
const F = [];
|
|
16076
16076
|
new Rf(a, f).closestPointOnSphere(x, R, F);
|
|
16077
|
-
const q = fr([],
|
|
16077
|
+
const q = fr([], Gt(_, 0)), re = fr([], Gt(_, 1)), he = fr([], Gt(_, 2)), ie = Jr(q, F), ce = Jr(re, F), me = Jr(he, F), de = gt(Math.asin(-ce / R));
|
|
16078
16078
|
let De = gt(Math.atan2(ie, me));
|
|
16079
16079
|
De = t.center.lng + function(lt, je) {
|
|
16080
16080
|
const Ye = (je - lt + 180) % 360 - 180;
|
|
@@ -16159,7 +16159,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16159
16159
|
return w[2] = Math.min(ie[2], ce[2]), Jc(w, w, de), Qc(x, x, de), new mr(w, x);
|
|
16160
16160
|
}
|
|
16161
16161
|
function Pd({ x: t, y: e, z: n }) {
|
|
16162
|
-
const o = 1 / (1 << n), a = new Mn(Or(t * o),
|
|
16162
|
+
const o = 1 / (1 << n), a = new Mn(Or(t * o), Yi((e + 1) * o)), h = new Mn(Or((t + 1) * o), Yi(e * o));
|
|
16163
16163
|
return new Es(a, h);
|
|
16164
16164
|
}
|
|
16165
16165
|
function em(t) {
|
|
@@ -16174,7 +16174,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16174
16174
|
}
|
|
16175
16175
|
function yu(t, e, n, o) {
|
|
16176
16176
|
const a = 1 << n.z, h = (t / sn + n.x) / a;
|
|
16177
|
-
return _u(
|
|
16177
|
+
return _u(Yi((e / sn + n.y) / a), Or(h), o);
|
|
16178
16178
|
}
|
|
16179
16179
|
function Dd({ min: t, max: e }) {
|
|
16180
16180
|
return 16383 / Math.max(e[0] - t[0], e[1] - t[1], e[2] - t[2]);
|
|
@@ -16224,11 +16224,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16224
16224
|
function Ea(t, e) {
|
|
16225
16225
|
if (!e.isReprojectedInTileSpace)
|
|
16226
16226
|
return { scale: 1 << t.z, x: t.x, y: t.y, x2: t.x + 1, y2: t.y + 1, projection: e };
|
|
16227
|
-
const n = Math.pow(2, -t.z), o = t.x * n, a = (t.x + 1) * n, h = t.y * n, f = (t.y + 1) * n, _ = Or(o), x = Or(a), w =
|
|
16227
|
+
const n = Math.pow(2, -t.z), o = t.x * n, a = (t.x + 1) * n, h = t.y * n, f = (t.y + 1) * n, _ = Or(o), x = Or(a), w = Yi(h), C = Yi(f), M = e.project(_, w), R = e.project(x, w), P = e.project(x, C), z = e.project(_, C);
|
|
16228
16228
|
let F = Math.min(M.x, R.x, P.x, z.x), q = Math.min(M.y, R.y, P.y, z.y), re = Math.max(M.x, R.x, P.x, z.x), he = Math.max(M.y, R.y, P.y, z.y);
|
|
16229
16229
|
const ie = n / 16;
|
|
16230
16230
|
function ce(de, De, Le, Ze, lt, je) {
|
|
16231
|
-
const Ye = (Le + lt) / 2, et = (Ze + je) / 2, nt = e.project(Or(Ye),
|
|
16231
|
+
const Ye = (Le + lt) / 2, et = (Ze + je) / 2, nt = e.project(Or(Ye), Yi(et)), ut = Math.max(0, F - nt.x, q - nt.y, nt.x - re, nt.y - he);
|
|
16232
16232
|
F = Math.min(F, nt.x), re = Math.max(re, nt.x), q = Math.min(q, nt.y), he = Math.max(he, nt.y), ut > ie && (ce(de, nt, Le, Ze, Ye, et), ce(nt, De, Ye, et, lt, je));
|
|
16233
16233
|
}
|
|
16234
16234
|
ce(M, R, o, h, a, h), ce(R, P, a, h, a, f), ce(P, z, a, f, o, f), ce(z, M, o, f, o, h), F -= ie, q -= ie, re += ie, he += ie;
|
|
@@ -16386,7 +16386,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16386
16386
|
return { x: Eo(e), y: So(n), z: 0 };
|
|
16387
16387
|
}
|
|
16388
16388
|
unproject(e, n) {
|
|
16389
|
-
const o = Or(e), a =
|
|
16389
|
+
const o = Or(e), a = Yi(n);
|
|
16390
16390
|
return new Mn(o, a);
|
|
16391
16391
|
}
|
|
16392
16392
|
}
|
|
@@ -16550,7 +16550,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16550
16550
|
}
|
|
16551
16551
|
class im {
|
|
16552
16552
|
constructor(e) {
|
|
16553
|
-
this.layoutVertexArray = new Jn(), this.indexArray = new
|
|
16553
|
+
this.layoutVertexArray = new Jn(), this.indexArray = new Ki(), this.programConfigurations = e, this.segments = new Li(), this.dynamicLayoutVertexArray = new br(), this.opacityVertexArray = new yi(), this.placedSymbolArray = new p_(), this.globeExtVertexArray = new kn();
|
|
16554
16554
|
}
|
|
16555
16555
|
isEmpty() {
|
|
16556
16556
|
return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
|
|
@@ -16739,7 +16739,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16739
16739
|
}
|
|
16740
16740
|
}
|
|
16741
16741
|
getSymbolInstanceTextSize(e, n, o, a) {
|
|
16742
|
-
const h = this.text.placedSymbolArray.get(n.rightJustifiedTextSymbolIndex >= 0 ? n.rightJustifiedTextSymbolIndex : n.centerJustifiedTextSymbolIndex >= 0 ? n.centerJustifiedTextSymbolIndex : n.leftJustifiedTextSymbolIndex >= 0 ? n.leftJustifiedTextSymbolIndex : n.verticalPlacedTextSymbolIndex >= 0 ? n.verticalPlacedTextSymbolIndex : a), f = Cd(this.textSizeData, e, h) /
|
|
16742
|
+
const h = this.text.placedSymbolArray.get(n.rightJustifiedTextSymbolIndex >= 0 ? n.rightJustifiedTextSymbolIndex : n.centerJustifiedTextSymbolIndex >= 0 ? n.centerJustifiedTextSymbolIndex : n.leftJustifiedTextSymbolIndex >= 0 ? n.leftJustifiedTextSymbolIndex : n.verticalPlacedTextSymbolIndex >= 0 ? n.verticalPlacedTextSymbolIndex : a), f = Cd(this.textSizeData, e, h) / Ji;
|
|
16743
16743
|
return this.tilePixelRatio * f;
|
|
16744
16744
|
}
|
|
16745
16745
|
getSymbolInstanceIconSize(e, n, o) {
|
|
@@ -16852,7 +16852,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16852
16852
|
var om = { paint: new Xt({ "icon-opacity": new Ne(Xe.paint_symbol["icon-opacity"]), "icon-color": new Ne(Xe.paint_symbol["icon-color"]), "icon-halo-color": new Ne(Xe.paint_symbol["icon-halo-color"]), "icon-halo-width": new Ne(Xe.paint_symbol["icon-halo-width"]), "icon-halo-blur": new Ne(Xe.paint_symbol["icon-halo-blur"]), "icon-translate": new Se(Xe.paint_symbol["icon-translate"]), "icon-translate-anchor": new Se(Xe.paint_symbol["icon-translate-anchor"]), "text-opacity": new Ne(Xe.paint_symbol["text-opacity"]), "text-color": new Ne(Xe.paint_symbol["text-color"], { runtimeType: zr, getOverride: (t) => t.textColor, hasOverride: (t) => !!t.textColor }), "text-halo-color": new Ne(Xe.paint_symbol["text-halo-color"]), "text-halo-width": new Ne(Xe.paint_symbol["text-halo-width"]), "text-halo-blur": new Ne(Xe.paint_symbol["text-halo-blur"]), "text-translate": new Se(Xe.paint_symbol["text-translate"]), "text-translate-anchor": new Se(Xe.paint_symbol["text-translate-anchor"]) }), layout: nT };
|
|
16853
16853
|
class m1 {
|
|
16854
16854
|
constructor(e) {
|
|
16855
|
-
this.type = e.property.overrides ? e.property.overrides.runtimeType :
|
|
16855
|
+
this.type = e.property.overrides ? e.property.overrides.runtimeType : ir, this.defaultValue = e;
|
|
16856
16856
|
}
|
|
16857
16857
|
evaluate(e) {
|
|
16858
16858
|
if (e.formattedSection) {
|
|
@@ -17099,12 +17099,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17099
17099
|
const ci = [], _i = [];
|
|
17100
17100
|
for (const Ui of si) {
|
|
17101
17101
|
const $n = Ui.x + Et.x, ki = Ui.y + Et.y, Ci = ut.projection.projectTilePoint($n, ki, _n), Pn = ut.projection.upVector(_n, Ui.x, Ui.y);
|
|
17102
|
-
let
|
|
17102
|
+
let hi = bt, Pi = en;
|
|
17103
17103
|
if (wt) {
|
|
17104
17104
|
const Hn = Ty($n, ki, bt, en, wt, tn, Tn, vn);
|
|
17105
|
-
|
|
17105
|
+
hi += Hn.base, Pi += Hn.top;
|
|
17106
17106
|
}
|
|
17107
|
-
bt !== 0 ? oi(En, Ci.x + Pn[0] * hn *
|
|
17107
|
+
bt !== 0 ? oi(En, Ci.x + Pn[0] * hn * hi, Ci.y + Pn[1] * hn * hi, Ci.z + Pn[2] * hn * hi) : oi(En, Ci.x, Ci.y, Ci.z), oi(Wn, Ci.x + Pn[0] * hn * Pi, Ci.y + Pn[1] * hn * Pi, Ci.z + Pn[2] * hn * Pi), vi(En, En, $t), vi(Wn, Wn, $t), ci.push(new Il(En[0], En[1], En[2])), _i.push(new Il(Wn[0], Wn[1], Wn[2]));
|
|
17108
17108
|
}
|
|
17109
17109
|
on.push(ci), jn.push(_i);
|
|
17110
17110
|
}
|
|
@@ -17129,8 +17129,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17129
17129
|
for (const Wn of ut) {
|
|
17130
17130
|
const oi = [], ii = [];
|
|
17131
17131
|
for (const si of Wn) {
|
|
17132
|
-
const ci = si.x + en.x, _i = si.y + en.y, Ui = Et[0] * ci + Et[4] * _i + Et[12], $n = Et[1] * ci + Et[5] * _i + Et[13], ki = Et[2] * ci + Et[6] * _i + Et[14], Ci = Et[3] * ci + Et[7] * _i + Et[15], Pn = Ui + tn,
|
|
17133
|
-
oi.push(new Il(Pn / Hn,
|
|
17132
|
+
const ci = si.x + en.x, _i = si.y + en.y, Ui = Et[0] * ci + Et[4] * _i + Et[12], $n = Et[1] * ci + Et[5] * _i + Et[13], ki = Et[2] * ci + Et[6] * _i + Et[14], Ci = Et[3] * ci + Et[7] * _i + Et[15], Pn = Ui + tn, hi = $n + Tn, Pi = ki + vn, Hn = Math.max(Ci + _n, 1e-5), xi = Ui + on, sr = $n + jn, ji = ki + hn, $i = Math.max(Ci + En, 1e-5);
|
|
17133
|
+
oi.push(new Il(Pn / Hn, hi / Hn, Pi / Hn)), ii.push(new Il(xi / $i, sr / $i, ji / $i));
|
|
17134
17134
|
}
|
|
17135
17135
|
$t.push(oi), wt.push(ii);
|
|
17136
17136
|
}
|
|
@@ -17417,7 +17417,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17417
17417
|
}
|
|
17418
17418
|
registerFadeDuration(e) {
|
|
17419
17419
|
const n = e + this.timeAdded;
|
|
17420
|
-
n <
|
|
17420
|
+
n < qt.now() || this.fadeEndTime && n < this.fadeEndTime || (this.fadeEndTime = n);
|
|
17421
17421
|
}
|
|
17422
17422
|
wasRequested() {
|
|
17423
17423
|
return this.state === "errored" || this.state === "loaded" || this.state === "reloading";
|
|
@@ -17566,13 +17566,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17566
17566
|
return this.symbolFadeHoldUntil !== void 0;
|
|
17567
17567
|
}
|
|
17568
17568
|
symbolFadeFinished() {
|
|
17569
|
-
return !this.symbolFadeHoldUntil || this.symbolFadeHoldUntil <
|
|
17569
|
+
return !this.symbolFadeHoldUntil || this.symbolFadeHoldUntil < qt.now();
|
|
17570
17570
|
}
|
|
17571
17571
|
clearFadeHold() {
|
|
17572
17572
|
this.symbolFadeHoldUntil = void 0;
|
|
17573
17573
|
}
|
|
17574
17574
|
setHoldDuration(e) {
|
|
17575
|
-
this.symbolFadeHoldUntil =
|
|
17575
|
+
this.symbolFadeHoldUntil = qt.now() + e;
|
|
17576
17576
|
}
|
|
17577
17577
|
setTexture(e, n) {
|
|
17578
17578
|
const o = n.context, a = o.gl;
|
|
@@ -17617,7 +17617,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17617
17617
|
const w = Ea(_, x), C = Math.pow(2, _.z);
|
|
17618
17618
|
for (let q = 0; q < Mo; q++)
|
|
17619
17619
|
for (let re = 0; re < Mo; re++) {
|
|
17620
|
-
const he = Or((_.x + (re + y1(re)) / to) / C), ie =
|
|
17620
|
+
const he = Or((_.x + (re + y1(re)) / to) / C), ie = Yi((_.y + (q + y1(q)) / to) / C), ce = x.project(he, ie), me = q * Mo + re;
|
|
17621
17621
|
Ro[2 * me + 0] = Math.round((ce.x * w.scale - w.x) * sn), Ro[2 * me + 1] = Math.round((ce.y * w.scale - w.y) * sn);
|
|
17622
17622
|
}
|
|
17623
17623
|
Ms.fill(0), jd.fill(0);
|
|
@@ -17628,7 +17628,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17628
17628
|
Ms[Ye] = Ms[Ye] || Ms[nt] || Ms[ut];
|
|
17629
17629
|
}
|
|
17630
17630
|
}
|
|
17631
|
-
const M = new Zn(), R = new
|
|
17631
|
+
const M = new Zn(), R = new Ki();
|
|
17632
17632
|
let P = 0;
|
|
17633
17633
|
function z(q, re) {
|
|
17634
17634
|
const he = re * Mo + q;
|
|
@@ -17647,7 +17647,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17647
17647
|
}(this.tileID.canonical, n);
|
|
17648
17648
|
a = f.vertices, h = f.indices;
|
|
17649
17649
|
} else {
|
|
17650
|
-
a = new Zn(), h = new
|
|
17650
|
+
a = new Zn(), h = new Ki();
|
|
17651
17651
|
for (const { x: _, y: x } of o)
|
|
17652
17652
|
a.emplaceBack(_, x, 0, 0);
|
|
17653
17653
|
const f = nu.exports(a.int16, void 0, 4);
|
|
@@ -17690,7 +17690,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17690
17690
|
C(0, 0, M, 0, 16), C(M, 0, M, M, 16), C(M, M, 0, M, 16), C(0, M, 0, 0, 16), this._tileDebugIndexBuffer = e.createIndexBuffer(x), this._tileDebugBuffer = e.createVertexBuffer(_, gu.members), this._globeTileDebugBorderBuffer = e.createVertexBuffer(w, t1.members), this._tileDebugSegments = Li.simpleSegment(0, 0, _.length, x.length);
|
|
17691
17691
|
}
|
|
17692
17692
|
_makeGlobeTileDebugTextBuffer(e, n, o, a, h, f) {
|
|
17693
|
-
const _ = new zn(), x = new
|
|
17693
|
+
const _ = new zn(), x = new Ki(), w = new Yn(), C = 25;
|
|
17694
17694
|
x.reserve(32), _.reserve(C), w.reserve(C);
|
|
17695
17695
|
const M = (R, P) => C * R + P;
|
|
17696
17696
|
for (let R = 0; R < C; R++) {
|
|
@@ -18208,7 +18208,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18208
18208
|
} else
|
|
18209
18209
|
this.update(this.transform);
|
|
18210
18210
|
else
|
|
18211
|
-
e.timeAdded =
|
|
18211
|
+
e.timeAdded = qt.now(), o === "expired" && (e.refreshedUponExpiration = !0), this._setTileReloadTimer(n, 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 $r("data", { dataType: "source", tile: e, coord: e.tileID, sourceCacheId: this.id }));
|
|
18212
18212
|
}
|
|
18213
18213
|
_backfillDEM(e) {
|
|
18214
18214
|
const n = this.getRenderableIds();
|
|
@@ -18297,7 +18297,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18297
18297
|
const _ = {}, x = {}, w = Object.keys(h);
|
|
18298
18298
|
for (const M of w) {
|
|
18299
18299
|
const R = h[M], P = this._tiles[M];
|
|
18300
|
-
if (!P || P.fadeEndTime && P.fadeEndTime <=
|
|
18300
|
+
if (!P || P.fadeEndTime && P.fadeEndTime <= qt.now())
|
|
18301
18301
|
continue;
|
|
18302
18302
|
const z = this.findLoadedParent(R, Math.max(R.overscaledZ - Sa.maxOverzooming, this._source.minzoom));
|
|
18303
18303
|
z && (this._addTile(z.tileID), _[z.tileID.key] = z.tileID), x[M] = R;
|
|
@@ -18461,7 +18461,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18461
18461
|
if (R1(this._source.type))
|
|
18462
18462
|
for (const e in this._tiles) {
|
|
18463
18463
|
const n = this._tiles[e];
|
|
18464
|
-
if (n.fadeEndTime !== void 0 && n.fadeEndTime >=
|
|
18464
|
+
if (n.fadeEndTime !== void 0 && n.fadeEndTime >= qt.now())
|
|
18465
18465
|
return !0;
|
|
18466
18466
|
}
|
|
18467
18467
|
return !1;
|
|
@@ -19014,7 +19014,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19014
19014
|
}
|
|
19015
19015
|
}
|
|
19016
19016
|
_createGrid(t) {
|
|
19017
|
-
const e = new zn(), n = new
|
|
19017
|
+
const e = new zn(), n = new Ki(), o = 65;
|
|
19018
19018
|
for (let a = 0; a < o; a++)
|
|
19019
19019
|
for (let h = 0; h < o; h++)
|
|
19020
19020
|
e.emplaceBack(h, a);
|
|
@@ -19032,7 +19032,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19032
19032
|
this._gridBuffer = t.createVertexBuffer(e, gu.members), this._gridIndexBuffer = t.createIndexBuffer(n, !0);
|
|
19033
19033
|
}
|
|
19034
19034
|
_createPoles(t) {
|
|
19035
|
-
const e = new
|
|
19035
|
+
const e = new Ki();
|
|
19036
19036
|
for (let a = 0; a <= zl; a++)
|
|
19037
19037
|
e.emplaceBack(0, a + 1, a + 2);
|
|
19038
19038
|
this._poleIndexBuffer = t.createIndexBuffer(e, !0);
|
|
@@ -19073,7 +19073,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19073
19073
|
}
|
|
19074
19074
|
return [this._gridBuffer, this._wireframeIndexBuffer, this._wireframeSegments[e]];
|
|
19075
19075
|
}
|
|
19076
|
-
}, r.GlyphManager = Pl, r.ImagePosition = qf, r.LivePerformanceUtils = rt, r.LngLat = Mn, r.LngLatBounds = Es, r.LocalGlyphMode = Hf, r.MAX_MERCATOR_LATITUDE = Co, r.MercatorCoordinate = Tl, r.ONE_EM =
|
|
19076
|
+
}, r.GlyphManager = Pl, r.ImagePosition = qf, r.LivePerformanceUtils = rt, r.LngLat = Mn, r.LngLatBounds = Es, r.LocalGlyphMode = Hf, r.MAX_MERCATOR_LATITUDE = Co, r.MercatorCoordinate = Tl, r.ONE_EM = Ji, r.OverscaledTileID = gr, r.PerformanceMarkers = ke, r.Properties = Xt, r.RGBAImage = Ir, r.Ray = Rf, r.RequestManager = class {
|
|
19077
19077
|
constructor(t, e, n) {
|
|
19078
19078
|
this._transformRequestFn = t, this._customAccessToken = e, this._silenceAuthErrors = !!n, this._createSkuToken();
|
|
19079
19079
|
}
|
|
@@ -19160,7 +19160,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19160
19160
|
}
|
|
19161
19161
|
return t.params = t.params.filter((a) => a.indexOf("access_token") === -1), t.params.push(`access_token=${e || ""}`), mi(t);
|
|
19162
19162
|
}
|
|
19163
|
-
}, r.ResourceType = Ei, r.SegmentVector = Li, r.SourceCache = Sa, r.StencilMode = cm, r.StructArrayLayout1ui2 = Hc, r.StructArrayLayout2f1f2i16 =
|
|
19163
|
+
}, r.ResourceType = Ei, r.SegmentVector = Li, r.SourceCache = Sa, r.StencilMode = cm, r.StructArrayLayout1ui2 = Hc, r.StructArrayLayout2f1f2i16 = or, r.StructArrayLayout2i4 = zn, r.StructArrayLayout2ui4 = Kr, r.StructArrayLayout3f12 = co, r.StructArrayLayout3ui6 = Ki, r.StructArrayLayout4i8 = Zn, r.StructArrayLayout5f20 = ma, r.Texture = Eu, r.Tile = am, r.Transitionable = We, r.Uniform1f = ld, r.Uniform1i = class extends Ho {
|
|
19164
19164
|
constructor(t) {
|
|
19165
19165
|
super(t), this.current = 0;
|
|
19166
19166
|
}
|
|
@@ -19282,7 +19282,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19282
19282
|
}
|
|
19283
19283
|
return n;
|
|
19284
19284
|
}, r.cacheEntryPossiblyAdded = function(t) {
|
|
19285
|
-
Di++, Di >
|
|
19285
|
+
Di++, Di > nr && (t.getActor().send("enforceCacheSizeLimit", cr), Di = 0);
|
|
19286
19286
|
}, r.calculateGlobeLabelMatrix = function(t, e) {
|
|
19287
19287
|
const { x: n, y: o } = t.point, a = s1(n, o, t.worldSize / t._pixelsPerMercatorPixel, 0, 0);
|
|
19288
19288
|
return va(a, a, tm(Io(e)));
|
|
@@ -19295,7 +19295,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19295
19295
|
}, r.circumferenceAtLatitude = yf, r.clamp = Ot, r.clearTileCache = function(t) {
|
|
19296
19296
|
if (!yr())
|
|
19297
19297
|
return;
|
|
19298
|
-
const e = A.caches.delete(
|
|
19298
|
+
const e = A.caches.delete(fi);
|
|
19299
19299
|
t && e.catch(t).then(() => t());
|
|
19300
19300
|
}, r.clipLine = Zy, r.clone = function(t) {
|
|
19301
19301
|
var e = new Ar(16);
|
|
@@ -19315,7 +19315,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19315
19315
|
const o = Math.hypot(t, e, n), a = Math.atan2(t, n), h = 0.5 * Math.PI - Math.acos(-e / o);
|
|
19316
19316
|
return new Mn(gt(a), gt(h));
|
|
19317
19317
|
}, r.emitValidationErrors = Wh, r.endsWith = pt, r.enforceCacheSizeLimit = function(t) {
|
|
19318
|
-
Ai(),
|
|
19318
|
+
Ai(), ei && ei.then((e) => {
|
|
19319
19319
|
e.keys().then((n) => {
|
|
19320
19320
|
for (let o = 0; o < n.length - t; o++)
|
|
19321
19321
|
e.delete(n[o]);
|
|
@@ -19325,7 +19325,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19325
19325
|
return t[0] === e[0] && t[1] === e[1] && t[2] === e[2] && t[3] === e[3];
|
|
19326
19326
|
}, r.exactEquals$1 = function(t, e) {
|
|
19327
19327
|
return t[0] === e[0] && t[1] === e[1] && t[2] === e[2];
|
|
19328
|
-
}, r.exported =
|
|
19328
|
+
}, r.exported = qt, r.exported$1 = V, r.extend = ze, r.extend$1 = ro, r.fillExtrusionHeightLift = yy, r.filterObject = _t, r.fromMat4 = function(t, e) {
|
|
19329
19329
|
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;
|
|
19330
19330
|
}, r.fromQuat = function(t, e) {
|
|
19331
19331
|
var n = e[0], o = e[1], a = e[2], h = e[3], f = n + n, _ = o + o, x = a + a, w = n * f, C = o * f, M = o * _, R = a * f, P = a * _, z = a * x, F = h * f, q = h * _, re = h * x;
|
|
@@ -19335,7 +19335,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19335
19335
|
return t[0] = o, t[1] = n, t[2] = 0, t[3] = -n, t[4] = o, t[5] = 0, t[6] = 0, t[7] = 0, t[8] = 1, t;
|
|
19336
19336
|
}, r.fromScaling = $_, r.furthestTileCorner = function(t) {
|
|
19337
19337
|
const e = Math.round((t + 45 + 360) % 360 / 90) % 4;
|
|
19338
|
-
return
|
|
19338
|
+
return Zt[e];
|
|
19339
19339
|
}, r.getAABBPointSquareDist = function(t, e, n) {
|
|
19340
19340
|
let o = 0;
|
|
19341
19341
|
for (let a = 0; a < 2; ++a) {
|
|
@@ -19348,7 +19348,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19348
19348
|
for (const h of t)
|
|
19349
19349
|
e = Math.min(e, h.x), n = Math.min(n, h.y), o = Math.max(o, h.x), a = Math.max(a, h.y);
|
|
19350
19350
|
return { min: new J(e, n), max: new J(o, a) };
|
|
19351
|
-
}, r.getColumn =
|
|
19351
|
+
}, r.getColumn = Gt, r.getGridMatrix = function(t, e, n, o) {
|
|
19352
19352
|
const a = e.getNorth(), h = e.getSouth(), f = e.getWest(), _ = e.getEast(), x = 1 << t.z, w = _ - f, C = a - h, M = w / zl, R = -C / Ol[n], P = [0, M, 0, R, 0, 0, a, f, 0];
|
|
19353
19353
|
if (t.z > 0) {
|
|
19354
19354
|
const z = 180 / o;
|
|
@@ -19362,7 +19362,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19362
19362
|
t = Ot(t, -80.051129, e) / e * 90;
|
|
19363
19363
|
const n = Math.pow(Math.abs(Math.sin(at(t))), 3);
|
|
19364
19364
|
return Math.round(n * (Ol.length - 1));
|
|
19365
|
-
}, r.getMapSessionAPI = Q, r.getPerformanceMeasurement = mt, r.getProjection = f1, r.getRTLTextPluginStatus = xe, r.getReferrer =
|
|
19365
|
+
}, r.getMapSessionAPI = Q, r.getPerformanceMeasurement = mt, r.getProjection = f1, r.getRTLTextPluginStatus = xe, r.getReferrer = Wi, r.getTilePoint = function(t, { x: e, y: n }, o = 0) {
|
|
19366
19366
|
return new J(((e - o) * t.scale - t.x) * sn, (n * t.scale - t.y) * sn);
|
|
19367
19367
|
}, r.getTileVec3 = function(t, e, n = 0) {
|
|
19368
19368
|
return Sl(((e.x - n) * t.scale - t.x) * sn, (e.y * t.scale - t.y) * sn, M_(e.z, e.y));
|
|
@@ -19398,7 +19398,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19398
19398
|
}, r.isMapboxURL = ct, r.isSafariWithAntialiasingBug = function(t) {
|
|
19399
19399
|
const e = t.navigator ? t.navigator.userAgent : null;
|
|
19400
19400
|
return !!Ti(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/));
|
|
19401
|
-
}, r.latFromMercatorY =
|
|
19401
|
+
}, r.latFromMercatorY = Yi, r.latLngToECEF = _u, r.len = hw, r.length = Yc, r.length$1 = function(t) {
|
|
19402
19402
|
return Math.hypot(t[0], t[1], t[2], t[3]);
|
|
19403
19403
|
}, r.lngFromMercatorX = Or, r.loadVectorTile = O1, r.makeRequest = Gn, r.mapValue = function(t, e, n, o, a) {
|
|
19404
19404
|
return Ot((t - e) / (n - e) * (a - o) + o, o, a);
|
|
@@ -19439,13 +19439,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19439
19439
|
}, r.scale = xa, r.scale$1 = W_, r.scale$2 = Br, r.scaleAndAdd = eu, r.set = function(t, e, n, o) {
|
|
19440
19440
|
return t[0] = e, t[1] = n, t[2] = o, t;
|
|
19441
19441
|
}, r.setCacheLimits = function(t, e) {
|
|
19442
|
-
cr = t,
|
|
19442
|
+
cr = t, nr = e;
|
|
19443
19443
|
}, r.setColumn = function(t, e, n) {
|
|
19444
19444
|
t[4 * e + 0] = n[0], t[4 * e + 1] = n[1], t[4 * e + 2] = n[2], t[4 * e + 3] = n[3];
|
|
19445
19445
|
}, r.setRTLTextPlugin = function(t, e, n = !1) {
|
|
19446
19446
|
if (ne === H || ne === Y || ne === Z)
|
|
19447
19447
|
throw new Error("setRTLTextPlugin cannot be called multiple times.");
|
|
19448
|
-
te =
|
|
19448
|
+
te = qt.resolveURL(t), ne = H, W = e, ge(), n || Be();
|
|
19449
19449
|
}, r.smoothstep = fn, r.spec = Xe, r.squaredLength = function(t) {
|
|
19450
19450
|
var e = t[0], n = t[1], o = t[2];
|
|
19451
19451
|
return e * e + n * n + o * o;
|
|
@@ -19642,10 +19642,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19642
19642
|
var O = new zt();
|
|
19643
19643
|
return function(U, K) {
|
|
19644
19644
|
for (var ae in U.layers)
|
|
19645
|
-
K.writeMessage(3,
|
|
19645
|
+
K.writeMessage(3, Zt, U.layers[ae]);
|
|
19646
19646
|
}(ee, O), O.finish();
|
|
19647
19647
|
}
|
|
19648
|
-
function
|
|
19648
|
+
function Zt(ee, O) {
|
|
19649
19649
|
var U;
|
|
19650
19650
|
O.writeVarintField(15, ee.version || 1), O.writeStringField(1, ee.name || ""), O.writeVarintField(5, ee.extent || 4096);
|
|
19651
19651
|
var K = { keys: [], values: [], keycache: {}, valuecache: {} };
|
|
@@ -19758,10 +19758,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19758
19758
|
mt = Ae[2 * In], Rt = Ae[2 * In + 1], mt >= $ && mt <= ue && Rt >= Q && Rt <= ke && yt.push(ye[In]);
|
|
19759
19759
|
continue;
|
|
19760
19760
|
}
|
|
19761
|
-
const
|
|
19762
|
-
mt = Ae[2 *
|
|
19761
|
+
const qt = Math.floor((pn + Jt) / 2);
|
|
19762
|
+
mt = Ae[2 * qt], Rt = Ae[2 * qt + 1], mt >= $ && mt <= ue && Rt >= Q && Rt <= ke && yt.push(ye[qt]);
|
|
19763
19763
|
const Fn = (Bt + 1) % 2;
|
|
19764
|
-
(Bt === 0 ? $ <= mt : Q <= Rt) && (qe.push(pn), qe.push(
|
|
19764
|
+
(Bt === 0 ? $ <= mt : Q <= Rt) && (qe.push(pn), qe.push(qt - 1), qe.push(Fn)), (Bt === 0 ? ue >= mt : ke >= Rt) && (qe.push(qt + 1), qe.push(Jt), qe.push(Fn));
|
|
19765
19765
|
}
|
|
19766
19766
|
return yt;
|
|
19767
19767
|
}(this.ids, this.coords, O, U, K, ae, this.nodeSize);
|
|
@@ -19778,8 +19778,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19778
19778
|
}
|
|
19779
19779
|
const Bt = Math.floor((Rt + mt) / 2), Jt = ye[2 * Bt], pn = ye[2 * Bt + 1];
|
|
19780
19780
|
be(Jt, pn, Ae, $) <= qe && rt.push(ae[Bt]);
|
|
19781
|
-
const
|
|
19782
|
-
(yt === 0 ? Ae - Q <= Jt : $ - Q <= pn) && (ke.push(Rt), ke.push(Bt - 1), ke.push(
|
|
19781
|
+
const qt = (yt + 1) % 2;
|
|
19782
|
+
(yt === 0 ? Ae - Q <= Jt : $ - Q <= pn) && (ke.push(Rt), ke.push(Bt - 1), ke.push(qt)), (yt === 0 ? Ae + Q >= Jt : $ + Q >= pn) && (ke.push(Bt + 1), ke.push(mt), ke.push(qt));
|
|
19783
19783
|
}
|
|
19784
19784
|
return rt;
|
|
19785
19785
|
}(this.ids, this.coords, O, U, K, this.nodeSize);
|
|
@@ -19799,10 +19799,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19799
19799
|
let $ = [];
|
|
19800
19800
|
for (let Q = 0; Q < O.length; Q++)
|
|
19801
19801
|
O[Q].geometry && $.push(mn(O[Q], Q));
|
|
19802
|
-
this.trees[ae + 1] = new vt($, Ti,
|
|
19802
|
+
this.trees[ae + 1] = new vt($, Ti, qi, ye, Float32Array), U && console.timeEnd(Ae);
|
|
19803
19803
|
for (let Q = ae; Q >= K; Q--) {
|
|
19804
19804
|
const ue = +Date.now();
|
|
19805
|
-
$ = this._cluster($, Q), this.trees[Q] = new vt($, Ti,
|
|
19805
|
+
$ = this._cluster($, Q), this.trees[Q] = new vt($, Ti, qi, ye, Float32Array), U && console.log("z%d: %d clusters in %dms", Q, $.length, +Date.now() - ue);
|
|
19806
19806
|
}
|
|
19807
19807
|
return U && console.timeEnd("total time"), this;
|
|
19808
19808
|
}
|
|
@@ -19901,8 +19901,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19901
19901
|
if (mt > yt && mt >= $) {
|
|
19902
19902
|
let Rt = ke.x * yt, Bt = ke.y * yt, Jt = Ae && yt > 1 ? this._map(ke, !0) : null;
|
|
19903
19903
|
const pn = (ue << 5) + (U + 1) + this.points.length;
|
|
19904
|
-
for (const
|
|
19905
|
-
const Fn = rt.points[
|
|
19904
|
+
for (const qt of qe) {
|
|
19905
|
+
const Fn = rt.points[qt];
|
|
19906
19906
|
if (Fn.zoom <= U)
|
|
19907
19907
|
continue;
|
|
19908
19908
|
Fn.zoom = U;
|
|
@@ -19965,12 +19965,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19965
19965
|
function Ti(ee) {
|
|
19966
19966
|
return ee.x;
|
|
19967
19967
|
}
|
|
19968
|
-
function
|
|
19968
|
+
function qi(ee) {
|
|
19969
19969
|
return ee.y;
|
|
19970
19970
|
}
|
|
19971
|
-
function
|
|
19971
|
+
function Gt(ee, O, U, K) {
|
|
19972
19972
|
for (var ae, ye = K, Ae = U - O >> 1, $ = U - O, Q = ee[O], ue = ee[O + 1], ke = ee[U], rt = ee[U + 1], qe = O + 3; qe < U; qe += 3) {
|
|
19973
|
-
var yt =
|
|
19973
|
+
var yt = fi(ee[qe], ee[qe + 1], Q, ue, ke, rt);
|
|
19974
19974
|
if (yt > ye)
|
|
19975
19975
|
ae = qe, ye = yt;
|
|
19976
19976
|
else if (yt === ye) {
|
|
@@ -19978,9 +19978,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19978
19978
|
mt < $ && (ae = qe, $ = mt);
|
|
19979
19979
|
}
|
|
19980
19980
|
}
|
|
19981
|
-
ye > K && (ae - O > 3 &&
|
|
19981
|
+
ye > K && (ae - O > 3 && Gt(ee, O, ae, K), ee[ae + 2] = ye, U - ae > 3 && Gt(ee, ae, U, K));
|
|
19982
19982
|
}
|
|
19983
|
-
function
|
|
19983
|
+
function fi(ee, O, U, K, ae, ye) {
|
|
19984
19984
|
var Ae = ae - U, $ = ye - K;
|
|
19985
19985
|
if (Ae !== 0 || $ !== 0) {
|
|
19986
19986
|
var Q = ((ee - U) * Ae + (O - K) * $) / (Ae * Ae + $ * $);
|
|
@@ -19988,22 +19988,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19988
19988
|
}
|
|
19989
19989
|
return (Ae = ee - U) * Ae + ($ = O - K) * $;
|
|
19990
19990
|
}
|
|
19991
|
-
function
|
|
19991
|
+
function ei(ee, O, U, K) {
|
|
19992
19992
|
var ae = { id: ee === void 0 ? null : ee, type: O, geometry: U, tags: K, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
19993
19993
|
return function(ye) {
|
|
19994
19994
|
var Ae = ye.geometry, $ = ye.type;
|
|
19995
19995
|
if ($ === "Point" || $ === "MultiPoint" || $ === "LineString")
|
|
19996
|
-
|
|
19996
|
+
Zi(ye, Ae);
|
|
19997
19997
|
else if ($ === "Polygon" || $ === "MultiLineString")
|
|
19998
19998
|
for (var Q = 0; Q < Ae.length; Q++)
|
|
19999
|
-
|
|
19999
|
+
Zi(ye, Ae[Q]);
|
|
20000
20000
|
else if ($ === "MultiPolygon")
|
|
20001
20001
|
for (Q = 0; Q < Ae.length; Q++)
|
|
20002
20002
|
for (var ue = 0; ue < Ae[Q].length; ue++)
|
|
20003
|
-
|
|
20003
|
+
Zi(ye, Ae[Q][ue]);
|
|
20004
20004
|
}(ae), ae;
|
|
20005
20005
|
}
|
|
20006
|
-
function
|
|
20006
|
+
function Zi(ee, O) {
|
|
20007
20007
|
for (var U = 0; U < O.length; U += 3)
|
|
20008
20008
|
ee.minX = Math.min(ee.minX, O[U]), ee.minY = Math.min(ee.minY, O[U + 1]), ee.maxX = Math.max(ee.maxX, O[U]), ee.maxY = Math.max(ee.maxY, O[U + 1]);
|
|
20009
20009
|
}
|
|
@@ -20011,16 +20011,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20011
20011
|
if (O.geometry) {
|
|
20012
20012
|
var ae = O.geometry.coordinates, ye = O.geometry.type, Ae = Math.pow(U.tolerance / ((1 << U.maxZoom) * U.extent), 2), $ = [], Q = O.id;
|
|
20013
20013
|
if (U.promoteId ? Q = O.properties[U.promoteId] : U.generateId && (Q = K || 0), ye === "Point")
|
|
20014
|
-
|
|
20014
|
+
nr(ae, $);
|
|
20015
20015
|
else if (ye === "MultiPoint")
|
|
20016
20016
|
for (var ue = 0; ue < ae.length; ue++)
|
|
20017
|
-
|
|
20017
|
+
nr(ae[ue], $);
|
|
20018
20018
|
else if (ye === "LineString")
|
|
20019
20019
|
yr(ae, $, Ae, !1);
|
|
20020
20020
|
else if (ye === "MultiLineString") {
|
|
20021
20021
|
if (U.lineMetrics) {
|
|
20022
20022
|
for (ue = 0; ue < ae.length; ue++)
|
|
20023
|
-
yr(ae[ue], $ = [], Ae, !1), ee.push(
|
|
20023
|
+
yr(ae[ue], $ = [], Ae, !1), ee.push(ei(Q, "LineString", $, O.properties));
|
|
20024
20024
|
return;
|
|
20025
20025
|
}
|
|
20026
20026
|
Ai(ae, $, Ae, !1);
|
|
@@ -20040,10 +20040,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20040
20040
|
Ai(ae[ue], ke, Ae, !0), $.push(ke);
|
|
20041
20041
|
}
|
|
20042
20042
|
}
|
|
20043
|
-
ee.push(
|
|
20043
|
+
ee.push(ei(Q, ye, $, O.properties));
|
|
20044
20044
|
}
|
|
20045
20045
|
}
|
|
20046
|
-
function
|
|
20046
|
+
function nr(ee, O) {
|
|
20047
20047
|
O.push(Dr(ee[0])), O.push(Di(ee[1])), O.push(0);
|
|
20048
20048
|
}
|
|
20049
20049
|
function yr(ee, O, U, K) {
|
|
@@ -20052,7 +20052,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20052
20052
|
O.push(Q), O.push(ue), O.push(0), $ > 0 && (Ae += K ? (ae * ue - Q * ye) / 2 : Math.sqrt(Math.pow(Q - ae, 2) + Math.pow(ue - ye, 2))), ae = Q, ye = ue;
|
|
20053
20053
|
}
|
|
20054
20054
|
var ke = O.length - 3;
|
|
20055
|
-
O[2] = 1,
|
|
20055
|
+
O[2] = 1, Gt(O, 0, ke, U), O[ke + 2] = 1, O.size = Math.abs(Ae), O.start = 0, O.end = O.size;
|
|
20056
20056
|
}
|
|
20057
20057
|
function Ai(ee, O, U, K) {
|
|
20058
20058
|
for (var ae = 0; ae < ee.length; ae++) {
|
|
@@ -20081,7 +20081,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20081
20081
|
if (qe === "Point" || qe === "MultiPoint")
|
|
20082
20082
|
zi(rt, Rt, U, K, ae);
|
|
20083
20083
|
else if (qe === "LineString")
|
|
20084
|
-
|
|
20084
|
+
Wi(rt, Rt, U, K, ae, !1, $.lineMetrics);
|
|
20085
20085
|
else if (qe === "MultiLineString")
|
|
20086
20086
|
ur(rt, Rt, U, K, ae, !1);
|
|
20087
20087
|
else if (qe === "Polygon")
|
|
@@ -20094,10 +20094,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20094
20094
|
if (Rt.length) {
|
|
20095
20095
|
if ($.lineMetrics && qe === "LineString") {
|
|
20096
20096
|
for (Bt = 0; Bt < Rt.length; Bt++)
|
|
20097
|
-
Q.push(
|
|
20097
|
+
Q.push(ei(ke.id, qe, Rt[Bt], ke.tags));
|
|
20098
20098
|
continue;
|
|
20099
20099
|
}
|
|
20100
|
-
qe !== "LineString" && qe !== "MultiLineString" || (Rt.length === 1 ? (qe = "LineString", Rt = Rt[0]) : qe = "MultiLineString"), qe !== "Point" && qe !== "MultiPoint" || (qe = Rt.length === 3 ? "Point" : "MultiPoint"), Q.push(
|
|
20100
|
+
qe !== "LineString" && qe !== "MultiLineString" || (Rt.length === 1 ? (qe = "LineString", Rt = Rt[0]) : qe = "MultiLineString"), qe !== "Point" && qe !== "MultiPoint" || (qe = Rt.length === 3 ? "Point" : "MultiPoint"), Q.push(ei(ke.id, qe, Rt, ke.tags));
|
|
20101
20101
|
}
|
|
20102
20102
|
}
|
|
20103
20103
|
}
|
|
@@ -20109,10 +20109,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20109
20109
|
Ae >= U && Ae <= K && (O.push(ee[ye]), O.push(ee[ye + 1]), O.push(ee[ye + 2]));
|
|
20110
20110
|
}
|
|
20111
20111
|
}
|
|
20112
|
-
function
|
|
20112
|
+
function Wi(ee, O, U, K, ae, ye, Ae) {
|
|
20113
20113
|
for (var $, Q, ue = Gn(ee), ke = ae === 0 ? Ce : ft, rt = ee.start, qe = 0; qe < ee.length - 3; qe += 3) {
|
|
20114
|
-
var yt = ee[qe], mt = ee[qe + 1], Rt = ee[qe + 2], Bt = ee[qe + 3], Jt = ee[qe + 4], pn = ae === 0 ? yt : mt,
|
|
20115
|
-
Ae && ($ = Math.sqrt(Math.pow(yt - Bt, 2) + Math.pow(mt - Jt, 2))), pn < U ?
|
|
20114
|
+
var yt = ee[qe], mt = ee[qe + 1], Rt = ee[qe + 2], Bt = ee[qe + 3], Jt = ee[qe + 4], pn = ae === 0 ? yt : mt, qt = ae === 0 ? Bt : Jt, Fn = !1;
|
|
20115
|
+
Ae && ($ = Math.sqrt(Math.pow(yt - Bt, 2) + Math.pow(mt - Jt, 2))), pn < U ? qt > U && (Q = ke(ue, yt, mt, Bt, Jt, U), Ae && (ue.start = rt + $ * Q)) : pn > K ? qt < K && (Q = ke(ue, yt, mt, Bt, Jt, K), Ae && (ue.start = rt + $ * Q)) : Oe(ue, yt, mt, Rt), qt < U && pn >= U && (Q = ke(ue, yt, mt, Bt, Jt, U), Fn = !0), qt > K && pn <= K && (Q = ke(ue, yt, mt, Bt, Jt, K), Fn = !0), !ye && Fn && (Ae && (ue.end = rt + $ * Q), O.push(ue), ue = Gn(ee)), Ae && (rt += $);
|
|
20116
20116
|
}
|
|
20117
20117
|
var In = ee.length - 3;
|
|
20118
20118
|
yt = ee[In], mt = ee[In + 1], Rt = ee[In + 2], (pn = ae === 0 ? yt : mt) >= U && pn <= K && Oe(ue, yt, mt, Rt), In = ue.length - 3, ye && In >= 3 && (ue[In] !== ue[0] || ue[In + 1] !== ue[1]) && Oe(ue, ue[0], ue[1], ue[2]), ue.length && O.push(ue);
|
|
@@ -20123,7 +20123,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20123
20123
|
}
|
|
20124
20124
|
function ur(ee, O, U, K, ae, ye) {
|
|
20125
20125
|
for (var Ae = 0; Ae < ee.length; Ae++)
|
|
20126
|
-
|
|
20126
|
+
Wi(ee[Ae], O, U, K, ae, ye, !1);
|
|
20127
20127
|
}
|
|
20128
20128
|
function Oe(ee, O, U, K) {
|
|
20129
20129
|
ee.push(O), ee.push(U), ee.push(K);
|
|
@@ -20151,7 +20151,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20151
20151
|
Q.push(St(ye.geometry[$][ue], O));
|
|
20152
20152
|
ae.push(Q);
|
|
20153
20153
|
}
|
|
20154
|
-
U.push(
|
|
20154
|
+
U.push(ei(ye.id, Ae, ae, ye.tags));
|
|
20155
20155
|
}
|
|
20156
20156
|
return U;
|
|
20157
20157
|
}
|
|
@@ -20294,8 +20294,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20294
20294
|
continue;
|
|
20295
20295
|
if (qe.source = null, ee.length !== 0) {
|
|
20296
20296
|
ue > 1 && console.time("clipping");
|
|
20297
|
-
var Rt, Bt, Jt, pn,
|
|
20298
|
-
Rt = Bt = Jt = pn = null,
|
|
20297
|
+
var Rt, Bt, Jt, pn, qt, Fn, In = 0.5 * Q.buffer / Q.extent, $r = 0.5 - In, _o = 0.5 + In, Tr = 1 + In;
|
|
20298
|
+
Rt = Bt = Jt = pn = null, qt = Ei(ee, ke, U - In, U + _o, 0, qe.minX, qe.maxX, Q), Fn = Ei(ee, ke, U + $r, U + Tr, 0, qe.minX, qe.maxX, Q), ee = null, qt && (Rt = Ei(qt, ke, K - In, K + _o, 1, qe.minY, qe.maxY, Q), Bt = Ei(qt, ke, K + $r, K + Tr, 1, qe.minY, qe.maxY, Q), qt = null), Fn && (Jt = Ei(Fn, ke, K - In, K + _o, 1, qe.minY, qe.maxY, Q), pn = Ei(Fn, ke, K + $r, K + Tr, 1, qe.minY, qe.maxY, Q), Fn = null), ue > 1 && console.timeEnd("clipping"), $.push(Rt || [], O + 1, 2 * U, 2 * K), $.push(Bt || [], O + 1, 2 * U, 2 * K + 1), $.push(Jt || [], O + 1, 2 * U + 1, 2 * K), $.push(pn || [], O + 1, 2 * U + 1, 2 * K + 1);
|
|
20299
20299
|
}
|
|
20300
20300
|
}
|
|
20301
20301
|
}, bn.prototype.getTile = function(ee, O, U) {
|
|
@@ -20335,8 +20335,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20335
20335
|
return Q;
|
|
20336
20336
|
const ke = {}, rt = {}, qe = { accumulated: null, zoom: 0 }, yt = { properties: null }, mt = Object.keys(ue);
|
|
20337
20337
|
for (const Rt of mt) {
|
|
20338
|
-
const [Bt, Jt] = ue[Rt], pn = r.createExpression(Jt),
|
|
20339
|
-
ke[Rt] = pn.value, rt[Rt] =
|
|
20338
|
+
const [Bt, Jt] = ue[Rt], pn = r.createExpression(Jt), qt = r.createExpression(typeof Bt == "string" ? [Bt, ["accumulated"], ["get", Rt]] : Bt);
|
|
20339
|
+
ke[Rt] = pn.value, rt[Rt] = qt.value;
|
|
20340
20340
|
}
|
|
20341
20341
|
return Q.map = (Rt) => {
|
|
20342
20342
|
yt.properties = Rt;
|
|
@@ -20637,7 +20637,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20637
20637
|
const { userImage: i } = l;
|
|
20638
20638
|
return !!(i && i.render && i.render()) && (l.data.replace(new Uint8Array(i.data.buffer)), !0);
|
|
20639
20639
|
}
|
|
20640
|
-
class
|
|
20640
|
+
class Zt extends r.Evented {
|
|
20641
20641
|
constructor() {
|
|
20642
20642
|
super(), this.images = {}, this.updatedImages = {}, this.callbackDispatchedThisFrame = {}, this.loaded = !1, this.requestors = [], this.patterns = {}, this.atlasImage = new r.RGBAImage({ width: 1, height: 1 }), this.dirty = !0;
|
|
20643
20643
|
}
|
|
@@ -21172,7 +21172,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21172
21172
|
(i[0] !== s[0] || i[1] !== s[1] || i[2] !== s[2] || i[3] !== s[3] || this.dirty) && (this.gl.colorMask(i[0], i[1], i[2], i[3]), this.current = i, this.dirty = !1);
|
|
21173
21173
|
}
|
|
21174
21174
|
}
|
|
21175
|
-
class
|
|
21175
|
+
class qi extends Qt {
|
|
21176
21176
|
getDefault() {
|
|
21177
21177
|
return !0;
|
|
21178
21178
|
}
|
|
@@ -21180,7 +21180,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21180
21180
|
(i !== this.current || this.dirty) && (this.gl.depthMask(i), this.current = i, this.dirty = !1);
|
|
21181
21181
|
}
|
|
21182
21182
|
}
|
|
21183
|
-
class
|
|
21183
|
+
class Gt extends Qt {
|
|
21184
21184
|
getDefault() {
|
|
21185
21185
|
return 255;
|
|
21186
21186
|
}
|
|
@@ -21188,7 +21188,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21188
21188
|
(i !== this.current || this.dirty) && (this.gl.stencilMask(i), this.current = i, this.dirty = !1);
|
|
21189
21189
|
}
|
|
21190
21190
|
}
|
|
21191
|
-
class
|
|
21191
|
+
class fi extends Qt {
|
|
21192
21192
|
getDefault() {
|
|
21193
21193
|
return { func: this.gl.ALWAYS, ref: 0, mask: 255 };
|
|
21194
21194
|
}
|
|
@@ -21197,7 +21197,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21197
21197
|
(i.func !== s.func || i.ref !== s.ref || i.mask !== s.mask || this.dirty) && (this.gl.stencilFunc(i.func, i.ref, i.mask), this.current = i, this.dirty = !1);
|
|
21198
21198
|
}
|
|
21199
21199
|
}
|
|
21200
|
-
class
|
|
21200
|
+
class ei extends Qt {
|
|
21201
21201
|
getDefault() {
|
|
21202
21202
|
const i = this.gl;
|
|
21203
21203
|
return [i.KEEP, i.KEEP, i.KEEP];
|
|
@@ -21207,7 +21207,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21207
21207
|
(i[0] !== s[0] || i[1] !== s[1] || i[2] !== s[2] || this.dirty) && (this.gl.stencilOp(i[0], i[1], i[2]), this.current = i, this.dirty = !1);
|
|
21208
21208
|
}
|
|
21209
21209
|
}
|
|
21210
|
-
class
|
|
21210
|
+
class Zi extends Qt {
|
|
21211
21211
|
getDefault() {
|
|
21212
21212
|
return !1;
|
|
21213
21213
|
}
|
|
@@ -21227,7 +21227,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21227
21227
|
(i[0] !== s[0] || i[1] !== s[1] || this.dirty) && (this.gl.depthRange(i[0], i[1]), this.current = i, this.dirty = !1);
|
|
21228
21228
|
}
|
|
21229
21229
|
}
|
|
21230
|
-
class
|
|
21230
|
+
class nr extends Qt {
|
|
21231
21231
|
getDefault() {
|
|
21232
21232
|
return !1;
|
|
21233
21233
|
}
|
|
@@ -21295,7 +21295,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21295
21295
|
i ? s.enable(s.CULL_FACE) : s.disable(s.CULL_FACE), this.current = i, this.dirty = !1;
|
|
21296
21296
|
}
|
|
21297
21297
|
}
|
|
21298
|
-
class
|
|
21298
|
+
class Wi extends Qt {
|
|
21299
21299
|
getDefault() {
|
|
21300
21300
|
return this.gl.BACK;
|
|
21301
21301
|
}
|
|
@@ -21488,7 +21488,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21488
21488
|
}
|
|
21489
21489
|
class O {
|
|
21490
21490
|
constructor(i) {
|
|
21491
|
-
this.gl = i, this.extVertexArrayObject = this.gl.getExtension("OES_vertex_array_object"), this.clearColor = new Nn(this), this.clearDepth = new Qn(this), this.clearStencil = new Kn(this), this.colorMask = new Ti(this), this.depthMask = new
|
|
21491
|
+
this.gl = i, this.extVertexArrayObject = this.gl.getExtension("OES_vertex_array_object"), this.clearColor = new Nn(this), this.clearDepth = new Qn(this), this.clearStencil = new Kn(this), this.colorMask = new Ti(this), this.depthMask = new qi(this), this.stencilMask = new Gt(this), this.stencilFunc = new fi(this), this.stencilOp = new ei(this), this.stencilTest = new Zi(this), this.depthRange = new cr(this), this.depthTest = new nr(this), this.depthFunc = new yr(this), this.blend = new Ai(this), this.blendFunc = new Dr(this), this.blendColor = new Di(this), this.blendEquation = new Ei(this), this.cullFace = new zi(this), this.cullFaceSide = new Wi(this), this.frontFace = new Gn(this), this.program = new ur(this), this.activeTexture = new Oe(this), this.viewport = new Ce(this), this.bindFramebuffer = new ft(this), this.bindRenderbuffer = new At(this), this.bindTexture = new St(this), this.bindVertexBuffer = new Nt(this), this.bindElementBuffer = new ct(this), this.bindVertexArrayOES = this.extVertexArrayObject && new Ct(this), this.pixelStoreUnpack = new Ft(this), this.pixelStoreUnpackPremultiplyAlpha = new cn(this), this.pixelStoreUnpackFlipY = new bn(this), this.extTextureFilterAnisotropic = i.getExtension("EXT_texture_filter_anisotropic") || i.getExtension("MOZ_EXT_texture_filter_anisotropic") || i.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = i.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.extTextureFilterAnisotropicForceOff = !1, this.extStandardDerivativesForceOff = !1, this.extDebugRendererInfo = i.getExtension("WEBGL_debug_renderer_info"), this.extDebugRendererInfo && (this.renderer = i.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL), this.vendor = i.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)), this.extTextureHalfFloat = i.getExtension("OES_texture_half_float"), this.extTextureHalfFloat && (i.getExtension("OES_texture_half_float_linear"), this.extRenderToTextureHalfFloat = i.getExtension("EXT_color_buffer_half_float")), this.extStandardDerivatives = i.getExtension("OES_standard_derivatives"), this.extTimerQuery = i.getExtension("EXT_disjoint_timer_query"), this.maxTextureSize = i.getParameter(i.MAX_TEXTURE_SIZE);
|
|
21492
21492
|
}
|
|
21493
21493
|
setDefault() {
|
|
21494
21494
|
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();
|
|
@@ -22063,12 +22063,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22063
22063
|
return l;
|
|
22064
22064
|
}
|
|
22065
22065
|
mt.workerCount = 2;
|
|
22066
|
-
const
|
|
22066
|
+
const qt = { setStyle: "setStyle", addLayer: "addLayer", removeLayer: "removeLayer", setPaintProperty: "setPaintProperty", setLayoutProperty: "setLayoutProperty", setFilter: "setFilter", addSource: "addSource", removeSource: "removeSource", setGeoJSONSourceData: "setGeoJSONSourceData", setLayerZoomRange: "setLayerZoomRange", setLayerProperty: "setLayerProperty", setCenter: "setCenter", setZoom: "setZoom", setBearing: "setBearing", setPitch: "setPitch", setSprite: "setSprite", setGlyphs: "setGlyphs", setTransition: "setTransition", setLight: "setLight", setTerrain: "setTerrain", setFog: "setFog", setProjection: "setProjection" };
|
|
22067
22067
|
function Fn(l, i, s) {
|
|
22068
|
-
s.push({ command:
|
|
22068
|
+
s.push({ command: qt.addSource, args: [l, i[l]] });
|
|
22069
22069
|
}
|
|
22070
22070
|
function In(l, i, s) {
|
|
22071
|
-
i.push({ command:
|
|
22071
|
+
i.push({ command: qt.removeSource, args: [l] }), s[l] = !0;
|
|
22072
22072
|
}
|
|
22073
22073
|
function $r(l, i, s, d) {
|
|
22074
22074
|
In(l, s, d), Fn(l, i, s);
|
|
@@ -22293,9 +22293,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22293
22293
|
}
|
|
22294
22294
|
return g.glCoordMatrix;
|
|
22295
22295
|
}
|
|
22296
|
-
function
|
|
22296
|
+
function ir(l, i, s, d) {
|
|
22297
22297
|
const g = [l, i, s, 1];
|
|
22298
|
-
s ? r.transformMat4$1(g, g, d) :
|
|
22298
|
+
s ? r.transformMat4$1(g, g, d) : ui(g, g, d);
|
|
22299
22299
|
const y = g[3];
|
|
22300
22300
|
return g[0] /= y, g[1] /= y, g[2] /= y, g;
|
|
22301
22301
|
}
|
|
@@ -22331,7 +22331,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22331
22331
|
Bi(Be, Y);
|
|
22332
22332
|
continue;
|
|
22333
22333
|
}
|
|
22334
|
-
const st = It(s.transform.cameraToCenterDistance, Fe[3]), Ve = r.evaluateSizeForFeature(B, G, xe), tt = T ? Ve / st : Ve * st, dt =
|
|
22334
|
+
const st = It(s.transform.cameraToCenterDistance, Fe[3]), Ve = r.evaluateSizeForFeature(B, G, xe), tt = T ? Ve / st : Ve * st, dt = ir(ht, Me, We, g);
|
|
22335
22335
|
if (dt[3] <= 0) {
|
|
22336
22336
|
Bi(Be, Y);
|
|
22337
22337
|
continue;
|
|
@@ -22369,7 +22369,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22369
22369
|
return { notEnoughRoom: !0 };
|
|
22370
22370
|
if (d && !s) {
|
|
22371
22371
|
let [st, Ve, tt] = Fe.first.point, [dt, Se, Ne] = Fe.last.point;
|
|
22372
|
-
[st, Ve] =
|
|
22372
|
+
[st, Ve] = ir(st, Ve, tt, T), [dt, Se] = ir(dt, Se, Ne, T);
|
|
22373
22373
|
const Ut = Uo(we, ht, (dt - st) * H, Se - Ve);
|
|
22374
22374
|
if (l.flipState = Ut && Ut.needsFlipping ? 1 : 2, Ut)
|
|
22375
22375
|
return Ut;
|
|
@@ -22384,7 +22384,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22384
22384
|
We(Fe.last);
|
|
22385
22385
|
} else {
|
|
22386
22386
|
if (d && !s) {
|
|
22387
|
-
const st =
|
|
22387
|
+
const st = ir(G.x, G.y, 0, g), Ve = fe + Re + 1, tt = new r.pointGeometry(I.getx(Ve), I.gety(Ve)), dt = ir(tt.x, tt.y, 0, g), Se = dt[3] > 0 ? dt : ss(G, tt, st, 1, g, void 0, Z, W.canonical), Ne = Uo(we, ht, (Se[0] - st[0]) * H, Se[1] - st[1]);
|
|
22388
22388
|
if (l.flipState = Ne && Ne.needsFlipping ? 1 : 2, Ne)
|
|
22389
22389
|
return Ne;
|
|
22390
22390
|
}
|
|
@@ -22398,9 +22398,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22398
22398
|
function Us(l, i, s, d, g) {
|
|
22399
22399
|
const { x: y, y: T, z: E } = d.projectTilePoint(l.x, l.y, i);
|
|
22400
22400
|
if (!g)
|
|
22401
|
-
return
|
|
22401
|
+
return ir(y, T, E, s);
|
|
22402
22402
|
const [I, k, L] = g(l);
|
|
22403
|
-
return
|
|
22403
|
+
return ir(y + I, T + k, E + L, s);
|
|
22404
22404
|
}
|
|
22405
22405
|
function ss(l, i, s, d, g, y, T, E) {
|
|
22406
22406
|
const I = Us(l.sub(i)._unit()._add(l), E, g, T, y);
|
|
@@ -22441,7 +22441,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22441
22441
|
const s = i.length, d = s + 4 * l;
|
|
22442
22442
|
i.resize(d), i.float32.fill(-1 / 0, 4 * s, 4 * d);
|
|
22443
22443
|
}
|
|
22444
|
-
function
|
|
22444
|
+
function ui(l, i, s) {
|
|
22445
22445
|
const d = i[0], g = i[1];
|
|
22446
22446
|
return l[0] = s[0] * d + s[4] * g + s[12], l[1] = s[1] * d + s[5] * g + s[13], l[3] = s[3] * d + s[7] * g + s[15], l;
|
|
22447
22447
|
}
|
|
@@ -22467,7 +22467,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22467
22467
|
const [tt, dt, Se] = te(le);
|
|
22468
22468
|
ge += tt, fe += dt, xe += Se;
|
|
22469
22469
|
}
|
|
22470
|
-
const Be = ne.name === "globe", Re = this.projectAndGetPerspectiveRatio(E, ge, fe, xe, Y, Be || !!W || this.transform.pitch > 0, ne), { perspectiveRatio: we } = Re, ht = (B ? T / we : T * we) / r.ONE_EM, Me =
|
|
22470
|
+
const Be = ne.name === "globe", Re = this.projectAndGetPerspectiveRatio(E, ge, fe, xe, Y, Be || !!W || this.transform.pitch > 0, ne), { perspectiveRatio: we } = Re, ht = (B ? T / we : T * we) / r.ONE_EM, Me = ir(ge, fe, xe, I), We = Re.signedDistanceFromCamera > 0 ? zr(ht, y, d.lineOffsetX * ht, d.lineOffsetY * ht, !1, Me, le, d, g, I, {}, W && !B ? te : null, B && !!W, ne, Y, B) : null;
|
|
22471
22471
|
let Fe = !1, st = !1, Ve = !0;
|
|
22472
22472
|
if (We && !Re.occluded) {
|
|
22473
22473
|
const tt = 0.5 * X * we + H, dt = new r.pointGeometry(-100, -100), Se = new r.pointGeometry(this.screenRightBoundary, this.screenBottomBoundary), Ne = new Mi(), { first: Ut, last: Xt } = We, jt = Ut.path.length;
|
|
@@ -22477,7 +22477,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22477
22477
|
for (let Lt = 1; Lt < Xt.path.length; Lt++)
|
|
22478
22478
|
rn.push(Xt.path[Lt]);
|
|
22479
22479
|
const gn = 2.5 * tt;
|
|
22480
|
-
k && (rn = rn.map(([Lt, Un, zn], Yn) => (te && !Be && (zn = te(Yn < jt - 1 ? Ut.tilePath[jt - 1 - Yn] : Xt.tilePath[Yn - jt + 2])[2]),
|
|
22480
|
+
k && (rn = rn.map(([Lt, Un, zn], Yn) => (te && !Be && (zn = te(Yn < jt - 1 ? Ut.tilePath[jt - 1 - Yn] : Xt.tilePath[Yn - jt + 2])[2]), ir(Lt, Un, zn, k))), rn.some((Lt) => Lt[3] <= 0) && (rn = []));
|
|
22481
22481
|
let Kt = [];
|
|
22482
22482
|
if (rn.length > 0) {
|
|
22483
22483
|
let Lt = 1 / 0, Un = -1 / 0, zn = 1 / 0, Yn = -1 / 0;
|
|
@@ -22492,8 +22492,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22492
22492
|
for (let zn = 0; zn < Un; zn++) {
|
|
22493
22493
|
const Yn = zn / Math.max(Un - 1, 1), Zn = Ne.lerp(Yn), pr = Zn.x + Vr, br = Zn.y + Vr;
|
|
22494
22494
|
Z.push(pr, br, tt, 0);
|
|
22495
|
-
const
|
|
22496
|
-
if (Ve = Ve && this.isOffscreen(
|
|
22495
|
+
const rr = pr - tt, Wr = br - tt, ri = pr + tt, Jn = br + tt;
|
|
22496
|
+
if (Ve = Ve && this.isOffscreen(rr, Wr, ri, Jn), st = st || this.isInsideGrid(rr, Wr, ri, Jn), !s && this.grid.hitTestCircle(pr, br, tt, G) && (Fe = !0, !L))
|
|
22497
22497
|
return { circles: [], offscreen: !1, collisionDetected: Fe, occluded: !1 };
|
|
22498
22498
|
}
|
|
22499
22499
|
}
|
|
@@ -22538,7 +22538,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22538
22538
|
return r.transformMat4(le, le, te), Vt(X, le, ne.pitch, ne._fov);
|
|
22539
22539
|
}(this.fogState, s, d, g, y.toUnwrapped(), this.transform) > 0.9);
|
|
22540
22540
|
} else
|
|
22541
|
-
|
|
22541
|
+
ui(I, I, i);
|
|
22542
22542
|
const L = I[3];
|
|
22543
22543
|
return { point: new r.pointGeometry((I[0] / L + 1) / 2 * this.transform.width + Vr, (-I[1] / L + 1) / 2 * this.transform.height + Vr), perspectiveRatio: Math.min(0.5 + this.transform.getCameraToCenterDistance(E) / L * 0.5, 1.5), signedDistanceFromCamera: L, occluded: T && I[2] > L || k };
|
|
22544
22544
|
}
|
|
@@ -22695,14 +22695,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22695
22695
|
const ri = (kn) => {
|
|
22696
22696
|
let yi = r.WritingMode.horizontal;
|
|
22697
22697
|
if (y.allowVerticalPlacement && !kn && this.prevPlacement) {
|
|
22698
|
-
const
|
|
22699
|
-
|
|
22698
|
+
const Xi = this.prevPlacement.placedOrientations[st];
|
|
22699
|
+
Xi && (this.placedOrientations[st] = Xi, yi = Xi, this.markUsedOrientation(y, yi, Me));
|
|
22700
22700
|
}
|
|
22701
22701
|
return yi;
|
|
22702
22702
|
}, Jn = (kn, yi) => {
|
|
22703
22703
|
if (y.allowVerticalPlacement && Ve > 0 && Fe.verticalTextBox) {
|
|
22704
|
-
for (const
|
|
22705
|
-
if (
|
|
22704
|
+
for (const Xi of y.writingModes)
|
|
22705
|
+
if (Xi === r.WritingMode.vertical ? (jt = yi(), rn = jt) : jt = kn(), jt && jt.box && jt.box.length)
|
|
22706
22706
|
break;
|
|
22707
22707
|
} else
|
|
22708
22708
|
jt = kn();
|
|
@@ -22711,15 +22711,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22711
22711
|
let kn = T.get("text-variable-anchor");
|
|
22712
22712
|
if (this.prevPlacement && this.prevPlacement.variableOffsets[st]) {
|
|
22713
22713
|
const ti = this.prevPlacement.variableOffsets[st];
|
|
22714
|
-
kn.indexOf(ti.anchor) > 0 && (kn = kn.filter((
|
|
22714
|
+
kn.indexOf(ti.anchor) > 0 && (kn = kn.filter((or) => or !== ti.anchor), kn.unshift(ti.anchor));
|
|
22715
22715
|
}
|
|
22716
|
-
const yi = (ti,
|
|
22717
|
-
const co = y.getSymbolInstanceTextSize(H, Me, this.transform.zoom, We),
|
|
22716
|
+
const yi = (ti, or, fa) => {
|
|
22717
|
+
const co = y.getSymbolInstanceTextSize(H, Me, this.transform.zoom, We), Ki = (ti.x2 - ti.x1) * co + 2 * ti.padding, Cr = (ti.y2 - ti.y1) * co + 2 * ti.padding, Hr = xe && !le ? or : null;
|
|
22718
22718
|
Hr && Zn(Hr);
|
|
22719
22719
|
let Xr = { box: [], offscreen: !1, occluded: !1 };
|
|
22720
22720
|
const ma = te ? 2 * kn.length : kn.length;
|
|
22721
22721
|
for (let bs = 0; bs < ma; ++bs) {
|
|
22722
|
-
const Kr = this.attemptAnchorPlacement(kn[bs % kn.length], ti,
|
|
22722
|
+
const Kr = this.attemptAnchorPlacement(kn[bs % kn.length], ti, Ki, Cr, co, ge, fe, B, E, Z, bs >= kn.length, Me, We, y, fa, Hr, H, Y);
|
|
22723
22723
|
if (Kr && (Xr = Kr.placedGlyphBoxes, Xr && Xr.box && Xr.box.length)) {
|
|
22724
22724
|
tt = !0, Xt = Kr.shift;
|
|
22725
22725
|
break;
|
|
@@ -22731,15 +22731,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22731
22731
|
const ti = Fe.verticalTextBox;
|
|
22732
22732
|
return ti && Zn(ti), y.allowVerticalPlacement && !(jt && jt.box && jt.box.length) && Ve > 0 && ti ? yi(ti, Fe.verticalIconBox, r.WritingMode.vertical) : { box: null, offscreen: null, occluded: null };
|
|
22733
22733
|
}), jt && (tt = jt.box, Se = jt.offscreen, Ne = jt.occluded);
|
|
22734
|
-
const
|
|
22734
|
+
const Xi = ri(jt && jt.box);
|
|
22735
22735
|
if (!tt && this.prevPlacement) {
|
|
22736
22736
|
const ti = this.prevPlacement.variableOffsets[st];
|
|
22737
|
-
ti && (this.variableOffsets[st] = ti, this.markUsedJustification(y, ti.anchor, Me,
|
|
22737
|
+
ti && (this.variableOffsets[st] = ti, this.markUsedJustification(y, ti.anchor, Me, Xi));
|
|
22738
22738
|
}
|
|
22739
22739
|
} else {
|
|
22740
|
-
const kn = (yi,
|
|
22741
|
-
const ti = y.getSymbolInstanceTextSize(H, Me, this.transform.zoom, We),
|
|
22742
|
-
return
|
|
22740
|
+
const kn = (yi, Xi) => {
|
|
22741
|
+
const ti = y.getSymbolInstanceTextSize(H, Me, this.transform.zoom, We), or = this.collisionIndex.placeCollisionBox(y, ti, yi, new r.pointGeometry(0, 0), te, B, E, Z.predicate);
|
|
22742
|
+
return or && or.box && or.box.length && (this.markUsedOrientation(y, Xi, Me), this.placedOrientations[st] = Xi), or;
|
|
22743
22743
|
};
|
|
22744
22744
|
Jn(() => kn(pr, r.WritingMode.horizontal), () => {
|
|
22745
22745
|
const yi = Fe.verticalTextBox;
|
|
@@ -22759,8 +22759,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22759
22759
|
};
|
|
22760
22760
|
rn && rn.box && rn.box.length && Fe.verticalIconBox ? (Lt = ri(Fe.verticalIconBox), dt = Lt.box.length > 0) : (Lt = ri(Fe.iconBox), dt = Lt.box.length > 0), Se = Se && Lt.offscreen, Ut = Lt.occluded;
|
|
22761
22761
|
}
|
|
22762
|
-
const br = W || Me.numHorizontalGlyphVertices === 0 && Ve === 0,
|
|
22763
|
-
if (br ||
|
|
22762
|
+
const br = W || Me.numHorizontalGlyphVertices === 0 && Ve === 0, rr = ne || Me.numIconVertices === 0;
|
|
22763
|
+
if (br || rr ? rr ? br || (dt = dt && tt) : tt = dt && tt : dt = tt = dt && tt, tt && gn && gn.box && this.collisionIndex.insertCollisionBox(gn.box, T.get("text-ignore-placement"), y.bucketInstanceId, rn && rn.box && zn ? zn : Un, Z.ID), dt && Lt && this.collisionIndex.insertCollisionBox(Lt.box, T.get("icon-ignore-placement"), y.bucketInstanceId, Yn, Z.ID), Kt && (tt && this.collisionIndex.insertCollisionCircles(Kt.circles, T.get("text-ignore-placement"), y.bucketInstanceId, Un, Z.ID), d)) {
|
|
22764
22764
|
const ri = y.bucketInstanceId;
|
|
22765
22765
|
let Jn = this.collisionCircleArrays[ri];
|
|
22766
22766
|
Jn === void 0 && (Jn = this.collisionCircleArrays[ri] = new $a());
|
|
@@ -23070,10 +23070,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
23070
23070
|
s[d] || delete this.layerIndexes[d];
|
|
23071
23071
|
}
|
|
23072
23072
|
}
|
|
23073
|
-
const qa = (l, i) => r.emitValidationErrors(l, i && i.filter((s) => s.identifier !== "source.canvas")), hh = r.pick(
|
|
23073
|
+
const qa = (l, i) => r.emitValidationErrors(l, i && i.filter((s) => s.identifier !== "source.canvas")), hh = r.pick(qt, ["addLayer", "removeLayer", "setPaintProperty", "setLayoutProperty", "setFilter", "addSource", "removeSource", "setLayerZoomRange", "setLight", "setTransition", "setGeoJSONSourceData", "setTerrain", "setFog", "setProjection"]), ls = r.pick(qt, ["setCenter", "setZoom", "setBearing", "setPitch"]), xo = { version: 8, layers: [], sources: {} }, Za = { fill: !0, line: !0, background: !0, hillshade: !0, raster: !0 };
|
|
23074
23074
|
class Fi extends r.Evented {
|
|
23075
23075
|
constructor(i, s = {}) {
|
|
23076
|
-
super(), this.map = i, this.dispatcher = new He(Bt(), this), this.imageManager = new
|
|
23076
|
+
super(), this.map = i, this.dispatcher = new He(Bt(), this), this.imageManager = new Zt(), this.imageManager.setEventedParent(this), this.glyphManager = new r.GlyphManager(i._requestManager, s.localFontFamily ? r.LocalGlyphMode.all : s.localIdeographFontFamily ? r.LocalGlyphMode.ideographs : r.LocalGlyphMode.none, s.localFontFamily || s.localIdeographFontFamily), this.crossTileSymbolIndex = new jo(), 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", r.getReferrer());
|
|
23077
23077
|
const d = this;
|
|
23078
23078
|
this._rtlTextPluginCallback = Fi.registerForPluginStateChange((g) => {
|
|
23079
23079
|
d.dispatcher.broadcast("syncRTLPluginState", { pluginStatus: g.pluginStatus, pluginURL: g.pluginURL }, (y, T) => {
|
|
@@ -23280,45 +23280,45 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
23280
23280
|
(i = r.clone$1(i)).layers = pn(i.layers);
|
|
23281
23281
|
const s = function(g, y) {
|
|
23282
23282
|
if (!g)
|
|
23283
|
-
return [{ command:
|
|
23283
|
+
return [{ command: qt.setStyle, args: [y] }];
|
|
23284
23284
|
let T = [];
|
|
23285
23285
|
try {
|
|
23286
23286
|
if (!A(g.version, y.version))
|
|
23287
|
-
return [{ command:
|
|
23288
|
-
A(g.center, y.center) || T.push({ command:
|
|
23287
|
+
return [{ command: qt.setStyle, args: [y] }];
|
|
23288
|
+
A(g.center, y.center) || T.push({ command: qt.setCenter, args: [y.center] }), A(g.zoom, y.zoom) || T.push({ command: qt.setZoom, args: [y.zoom] }), A(g.bearing, y.bearing) || T.push({ command: qt.setBearing, args: [y.bearing] }), A(g.pitch, y.pitch) || T.push({ command: qt.setPitch, args: [y.pitch] }), A(g.sprite, y.sprite) || T.push({ command: qt.setSprite, args: [y.sprite] }), A(g.glyphs, y.glyphs) || T.push({ command: qt.setGlyphs, args: [y.glyphs] }), A(g.transition, y.transition) || T.push({ command: qt.setTransition, args: [y.transition] }), A(g.light, y.light) || T.push({ command: qt.setLight, args: [y.light] }), A(g.fog, y.fog) || T.push({ command: qt.setFog, args: [y.fog] }), A(g.projection, y.projection) || T.push({ command: qt.setProjection, args: [y.projection] });
|
|
23289
23289
|
const E = {}, I = [];
|
|
23290
23290
|
(function(B, G, X, H) {
|
|
23291
23291
|
let Y;
|
|
23292
23292
|
for (Y in G = G || {}, B = B || {})
|
|
23293
23293
|
B.hasOwnProperty(Y) && (G.hasOwnProperty(Y) || In(Y, X, H));
|
|
23294
23294
|
for (Y in G)
|
|
23295
|
-
G.hasOwnProperty(Y) && (B.hasOwnProperty(Y) ? A(B[Y], G[Y]) || (B[Y].type === "geojson" && G[Y].type === "geojson" && _o(B, G, Y) ? X.push({ command:
|
|
23295
|
+
G.hasOwnProperty(Y) && (B.hasOwnProperty(Y) ? A(B[Y], G[Y]) || (B[Y].type === "geojson" && G[Y].type === "geojson" && _o(B, G, Y) ? X.push({ command: qt.setGeoJSONSourceData, args: [Y, G[Y].data] }) : $r(Y, G, X, H)) : Fn(Y, G, X));
|
|
23296
23296
|
})(g.sources, y.sources, I, E);
|
|
23297
23297
|
const k = [];
|
|
23298
23298
|
g.layers && g.layers.forEach((B) => {
|
|
23299
|
-
B.source && E[B.source] ? T.push({ command:
|
|
23299
|
+
B.source && E[B.source] ? T.push({ command: qt.removeLayer, args: [B.id] }) : k.push(B);
|
|
23300
23300
|
});
|
|
23301
23301
|
let L = g.terrain;
|
|
23302
|
-
L && E[L.source] && (T.push({ command:
|
|
23302
|
+
L && E[L.source] && (T.push({ command: qt.setTerrain, args: [void 0] }), L = void 0), T = T.concat(I), A(L, y.terrain) || T.push({ command: qt.setTerrain, args: [y.terrain] }), function(B, G, X) {
|
|
23303
23303
|
G = G || [];
|
|
23304
23304
|
const H = (B = B || []).map(Xe), Y = G.map(Xe), Z = B.reduce(ro, {}), W = G.reduce(ro, {}), ne = H.slice(), te = /* @__PURE__ */ Object.create(null);
|
|
23305
23305
|
let le, ge, fe, xe, Be, Re, we;
|
|
23306
23306
|
for (le = 0, ge = 0; le < H.length; le++)
|
|
23307
|
-
fe = H[le], W.hasOwnProperty(fe) ? ge++ : (X.push({ command:
|
|
23307
|
+
fe = H[le], W.hasOwnProperty(fe) ? ge++ : (X.push({ command: qt.removeLayer, args: [fe] }), ne.splice(ne.indexOf(fe, ge), 1));
|
|
23308
23308
|
for (le = 0, ge = 0; le < Y.length; le++)
|
|
23309
|
-
fe = Y[Y.length - 1 - le], ne[ne.length - 1 - le] !== fe && (Z.hasOwnProperty(fe) ? (X.push({ command:
|
|
23309
|
+
fe = Y[Y.length - 1 - le], ne[ne.length - 1 - le] !== fe && (Z.hasOwnProperty(fe) ? (X.push({ command: qt.removeLayer, args: [fe] }), ne.splice(ne.lastIndexOf(fe, ne.length - ge), 1)) : ge++, Re = ne[ne.length - le], X.push({ command: qt.addLayer, args: [W[fe], Re] }), ne.splice(ne.length - le, 0, fe), te[fe] = !0);
|
|
23310
23310
|
for (le = 0; le < Y.length; le++)
|
|
23311
23311
|
if (fe = Y[le], xe = Z[fe], Be = W[fe], !te[fe] && !A(xe, Be))
|
|
23312
23312
|
if (A(xe.source, Be.source) && A(xe["source-layer"], Be["source-layer"]) && A(xe.type, Be.type)) {
|
|
23313
|
-
for (we in Tr(xe.layout, Be.layout, X, fe, null,
|
|
23314
|
-
xe.hasOwnProperty(we) && we !== "layout" && we !== "paint" && we !== "filter" && we !== "metadata" && we !== "minzoom" && we !== "maxzoom" && (we.indexOf("paint.") === 0 ? Tr(xe[we], Be[we], X, fe, we.slice(6),
|
|
23313
|
+
for (we in Tr(xe.layout, Be.layout, X, fe, null, qt.setLayoutProperty), Tr(xe.paint, Be.paint, X, fe, null, qt.setPaintProperty), A(xe.filter, Be.filter) || X.push({ command: qt.setFilter, args: [fe, Be.filter] }), A(xe.minzoom, Be.minzoom) && A(xe.maxzoom, Be.maxzoom) || X.push({ command: qt.setLayerZoomRange, args: [fe, Be.minzoom, Be.maxzoom] }), xe)
|
|
23314
|
+
xe.hasOwnProperty(we) && we !== "layout" && we !== "paint" && we !== "filter" && we !== "metadata" && we !== "minzoom" && we !== "maxzoom" && (we.indexOf("paint.") === 0 ? Tr(xe[we], Be[we], X, fe, we.slice(6), qt.setPaintProperty) : A(xe[we], Be[we]) || X.push({ command: qt.setLayerProperty, args: [fe, we, Be[we]] }));
|
|
23315
23315
|
for (we in Be)
|
|
23316
|
-
Be.hasOwnProperty(we) && !xe.hasOwnProperty(we) && we !== "layout" && we !== "paint" && we !== "filter" && we !== "metadata" && we !== "minzoom" && we !== "maxzoom" && (we.indexOf("paint.") === 0 ? Tr(xe[we], Be[we], X, fe, we.slice(6),
|
|
23316
|
+
Be.hasOwnProperty(we) && !xe.hasOwnProperty(we) && we !== "layout" && we !== "paint" && we !== "filter" && we !== "metadata" && we !== "minzoom" && we !== "maxzoom" && (we.indexOf("paint.") === 0 ? Tr(xe[we], Be[we], X, fe, we.slice(6), qt.setPaintProperty) : A(xe[we], Be[we]) || X.push({ command: qt.setLayerProperty, args: [fe, we, Be[we]] }));
|
|
23317
23317
|
} else
|
|
23318
|
-
X.push({ command:
|
|
23318
|
+
X.push({ command: qt.removeLayer, args: [fe] }), Re = ne[ne.lastIndexOf(fe) + 1], X.push({ command: qt.addLayer, args: [Be, Re] });
|
|
23319
23319
|
}(k, y.layers, T);
|
|
23320
23320
|
} catch (E) {
|
|
23321
|
-
console.warn("Unable to compute style diff:", E), T = [{ command:
|
|
23321
|
+
console.warn("Unable to compute style diff:", E), T = [{ command: qt.setStyle, args: [y] }];
|
|
23322
23322
|
}
|
|
23323
23323
|
return T;
|
|
23324
23324
|
}(this.serialize(), i).filter((g) => !(g.command in ls));
|
|
@@ -26197,12 +26197,12 @@ precision highp float;
|
|
|
26197
26197
|
const Ut = W ? W.getAtTileOffset(E, ge, fe) : 0, [Xt, jt, rn] = Y.upVector(E.canonical, ge, fe);
|
|
26198
26198
|
we = Ut * Xt * ne, ht = Ut * jt * ne, Me = Ut * rn * ne;
|
|
26199
26199
|
}
|
|
26200
|
-
let [We, Fe, st, Ve] =
|
|
26200
|
+
let [We, Fe, st, Ve] = ir(le.projectedAnchorX + we, le.projectedAnchorY + ht, le.projectedAnchorZ + Me, s ? Z : T);
|
|
26201
26201
|
const tt = It(y.getCameraToCenterDistance(Y), Ve);
|
|
26202
26202
|
let dt = g.evaluateSizeForFeature(l.textSizeData, k, le) * tt / r.ONE_EM;
|
|
26203
26203
|
s && (dt *= l.tilePixelRatio / I);
|
|
26204
26204
|
const Se = of(Re, dt);
|
|
26205
|
-
s ? ({ x: We, y: Fe, z: st } = Y.projectTilePoint(ge + Se.x, fe + Se.y, E.canonical), [We, Fe, st] =
|
|
26205
|
+
s ? ({ x: We, y: Fe, z: st } = Y.projectTilePoint(ge + Se.x, fe + Se.y, E.canonical), [We, Fe, st] = ir(We + we, Fe + ht, st + Me, T)) : (i && Se._rotate(-y.angle), We += Se.x, Fe += Se.y, st = 0);
|
|
26206
26206
|
const Ne = l.allowVerticalPlacement && le.placedOrientation === r.WritingMode.vertical ? Math.PI / 2 : 0;
|
|
26207
26207
|
for (let Ut = 0; Ut < xe; Ut++)
|
|
26208
26208
|
r.addDynamicAttributes(G, We, Fe, st, Ne);
|
|
@@ -26260,24 +26260,24 @@ precision highp float;
|
|
|
26260
26260
|
const Cr = s.layout.get("icon-size").constantOr(0) !== 1 || Fe.iconsNeedLinear;
|
|
26261
26261
|
Xt = We.imageAtlasTexture, jt = tt || l.options.rotating || l.options.zooming || Cr || Se ? X.LINEAR : X.NEAREST, Ut = We.imageAtlasTexture.size;
|
|
26262
26262
|
}
|
|
26263
|
-
const Lt = Fe.projection.name === "globe", Un = Lt ? ht : we, zn = Lt ? r.globeToMercatorTransition(H.zoom) : 0, Yn = Gs(Me, Fe.getProjection(), H), Zn = H.calculatePixelsToTileUnitsMatrix(We), pr = vr(Yn, We.tileID.canonical, Z, Y, H, Fe.getProjection(), Zn), br = l.terrain && Z && W ? r.invert(r.create(), pr) : ia,
|
|
26263
|
+
const Lt = Fe.projection.name === "globe", Un = Lt ? ht : we, zn = Lt ? r.globeToMercatorTransition(H.zoom) : 0, Yn = Gs(Me, Fe.getProjection(), H), Zn = H.calculatePixelsToTileUnitsMatrix(We), pr = vr(Yn, We.tileID.canonical, Z, Y, H, Fe.getProjection(), Zn), br = l.terrain && Z && W ? r.invert(r.create(), pr) : ia, rr = ch(Yn, We.tileID.canonical, Z, Y, H, Fe.getProjection(), Zn), Wr = xe && Fe.hasTextData(), ri = s.layout.get("icon-text-fit") !== "none" && Wr && Fe.hasIconData();
|
|
26264
26264
|
if (W) {
|
|
26265
26265
|
const Cr = H.elevation, Hr = Cr ? Cr.getAtTileOffsetFunc(Me, H.center.lat, H.worldSize, Fe.getProjection()) : null, Xr = ja(Yn, We.tileID.canonical, Z, Y, H, Fe.getProjection(), Zn);
|
|
26266
|
-
wn(Fe, Yn, l, g, Xr,
|
|
26266
|
+
wn(Fe, Yn, l, g, Xr, rr, Z, k, Hr, Me);
|
|
26267
26267
|
}
|
|
26268
|
-
const Jn = W || g && xe || ri, kn = l.translatePosMatrix(Yn, We, y, T), yi = Jn ? ia : pr,
|
|
26269
|
-
l.terrainRenderModeElevated() && Z &&
|
|
26268
|
+
const Jn = W || g && xe || ri, kn = l.translatePosMatrix(Yn, We, y, T), yi = Jn ? ia : pr, Xi = l.translatePosMatrix(rr, We, y, T, !0), ti = Fe.getProjection().createInversionMatrix(H, Me.canonical), or = [];
|
|
26269
|
+
l.terrainRenderModeElevated() && Z && or.push("PITCH_WITH_MAP_TERRAIN"), Lt && or.push("PROJECTION_GLOBE_VIEW"), Jn && or.push("PROJECTED_POS_ON_VIEWPORT");
|
|
26270
26270
|
const fa = tt && s.paint.get(g ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
26271
26271
|
let co;
|
|
26272
|
-
co = tt ? Fe.iconsInText ? cl(dt.kind, Ne, ne, Z, l, kn, yi,
|
|
26273
|
-
const
|
|
26272
|
+
co = tt ? Fe.iconsInText ? cl(dt.kind, Ne, ne, Z, l, kn, yi, Xi, Ut, gn, Me, zn, fe, ti, Un, Fe.getProjection()) : Sh(dt.kind, Ne, ne, Z, l, kn, yi, Xi, g, Ut, !0, Me, zn, fe, ti, Un, Fe.getProjection()) : ll(dt.kind, Ne, ne, Z, l, kn, yi, Xi, g, Ut, Me, zn, fe, ti, Un, Fe.getProjection());
|
|
26273
|
+
const Ki = { program: l.useProgram(Ih(tt, g, Fe), Ve, or), buffers: st, uniformValues: co, atlasTexture: Xt, atlasTextureIcon: Kt, atlasInterpolation: jt, atlasInterpolationIcon: rn, isSDF: tt, hasHalo: fa, tile: We, labelPlaneMatrixInv: br };
|
|
26274
26274
|
if (te && Fe.canOverlap) {
|
|
26275
26275
|
le = !0;
|
|
26276
26276
|
const Cr = st.segments.get();
|
|
26277
26277
|
for (const Hr of Cr)
|
|
26278
|
-
Re.push({ segments: new r.SegmentVector([Hr]), sortKey: Hr.sortKey, state:
|
|
26278
|
+
Re.push({ segments: new r.SegmentVector([Hr]), sortKey: Hr.sortKey, state: Ki });
|
|
26279
26279
|
} else
|
|
26280
|
-
Re.push({ segments: st.segments, sortKey: 0, state:
|
|
26280
|
+
Re.push({ segments: st.segments, sortKey: 0, state: Ki });
|
|
26281
26281
|
}
|
|
26282
26282
|
le && Re.sort((Me, We) => Me.sortKey - We.sortKey);
|
|
26283
26283
|
for (const Me of Re) {
|
|
@@ -28649,7 +28649,7 @@ precision highp float;
|
|
|
28649
28649
|
}
|
|
28650
28650
|
}
|
|
28651
28651
|
const Zh = { panStep: 100, bearingStep: 15, pitchStep: 10 };
|
|
28652
|
-
class
|
|
28652
|
+
class Hi {
|
|
28653
28653
|
constructor() {
|
|
28654
28654
|
const i = Zh;
|
|
28655
28655
|
this._panStep = i.panStep, this._bearingStep = i.bearingStep, this._pitchStep = i.pitchStep, this._rotationDisabled = !1;
|
|
@@ -29010,7 +29010,7 @@ precision highp float;
|
|
|
29010
29010
|
s.touchZoomRotate = new vl(d, H, X, E), this._add("touchRotate", X, ["touchPan", "touchZoom"]), this._add("touchZoom", H, ["touchPan", "touchRotate"]), this._add("blockableMapEvent", new hf(s));
|
|
29011
29011
|
const Y = s.scrollZoom = new pf(s, this);
|
|
29012
29012
|
this._add("scrollZoom", Y, ["mousePan"]);
|
|
29013
|
-
const Z = s.keyboard = new
|
|
29013
|
+
const Z = s.keyboard = new Hi();
|
|
29014
29014
|
this._add("keyboard", Z);
|
|
29015
29015
|
for (const W of ["boxZoom", "doubleClickZoom", "tapDragZoom", "touchPitch", "dragRotate", "dragPan", "touchZoomRotate", "scrollZoom", "keyboard"])
|
|
29016
29016
|
i.interactive && i[W] && s[W].enable(i[W]);
|
|
@@ -31066,11 +31066,11 @@ function QR() {
|
|
|
31066
31066
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
31067
31067
|
return Yd(JR);
|
|
31068
31068
|
}
|
|
31069
|
-
const
|
|
31069
|
+
const ar = [];
|
|
31070
31070
|
for (let c = 0; c < 256; ++c)
|
|
31071
|
-
|
|
31071
|
+
ar.push((c + 256).toString(16).slice(1));
|
|
31072
31072
|
function e5(c, u = 0) {
|
|
31073
|
-
return
|
|
31073
|
+
return ar[c[u + 0]] + ar[c[u + 1]] + ar[c[u + 2]] + ar[c[u + 3]] + "-" + ar[c[u + 4]] + ar[c[u + 5]] + "-" + ar[c[u + 6]] + ar[c[u + 7]] + "-" + ar[c[u + 8]] + ar[c[u + 9]] + "-" + ar[c[u + 10]] + ar[c[u + 11]] + ar[c[u + 12]] + ar[c[u + 13]] + ar[c[u + 14]] + ar[c[u + 15]];
|
|
31074
31074
|
}
|
|
31075
31075
|
const t5 = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), B0 = {
|
|
31076
31076
|
randomUUID: t5
|
|
@@ -31451,7 +31451,7 @@ const Yg = Dn({
|
|
|
31451
31451
|
}), ag = "MI-MAP-TEMPLATE-LAST-VENUE";
|
|
31452
31452
|
let Rm;
|
|
31453
31453
|
function p5({ onLocationClick: c, onVenueChangedOnMap: u, useMapProviderModule: p }) {
|
|
31454
|
-
const m = kt(qg), v = kt(Up), b = kt(ih), [S, r] = dn(Yx), [A, D] = dn(io), [, N] = dn(Vp), [, j] = dn(Gg), V = kt(Vg), se = kt(Gp), oe = kt(Zg), pe = kt(qp), Te = kt(Jx), Pe = kt(Qx), _e = kt(jp), Ee = kt($p), [, Ie] = dn(eb), J = kt(Yg), Ge = kt(Zp), ot = kt(Wg), [, zt] = dn(rb), at = kt(Ns), gt = kt(Hg),
|
|
31454
|
+
const m = kt(qg), v = kt(Up), b = kt(ih), [S, r] = dn(Yx), [A, D] = dn(io), [, N] = dn(Vp), [, j] = dn(Gg), V = kt(Vg), se = kt(Gp), oe = kt(Zg), pe = kt(qp), Te = kt(Jx), Pe = kt(Qx), _e = kt(jp), Ee = kt($p), [, Ie] = dn(eb), J = kt(Yg), Ge = kt(Zp), ot = kt(Wg), [, zt] = dn(rb), at = kt(Ns), gt = kt(Hg), Zt = tc("(min-width: 992px)");
|
|
31455
31455
|
HR(m), Wt(() => {
|
|
31456
31456
|
if (!J || v === null && b === null)
|
|
31457
31457
|
return;
|
|
@@ -31464,7 +31464,7 @@ function p5({ onLocationClick: c, onVenueChangedOnMap: u, useMapProviderModule:
|
|
|
31464
31464
|
const it = j0(se, V);
|
|
31465
31465
|
it && !ot && !Ge && !at ? un(it, A).then(() => {
|
|
31466
31466
|
u(it);
|
|
31467
|
-
}) : it && !ot && !Ge && at && !
|
|
31467
|
+
}) : it && !ot && !Ge && at && !Zt ? un(it, A).then(() => {
|
|
31468
31468
|
u(it);
|
|
31469
31469
|
}) : it && u(it);
|
|
31470
31470
|
}
|
|
@@ -31494,7 +31494,7 @@ function p5({ onLocationClick: c, onVenueChangedOnMap: u, useMapProviderModule:
|
|
|
31494
31494
|
const ze = new window.mapsindoors.services.DirectionsService(Vt);
|
|
31495
31495
|
j(ze);
|
|
31496
31496
|
const Je = j0(se, V);
|
|
31497
|
-
(Je && !Ge && !at || Je && !Ge && at && !
|
|
31497
|
+
(Je && !Ge && !at || Je && !Ge && at && !Zt) && un(Je, Yt);
|
|
31498
31498
|
}, fn = (it) => {
|
|
31499
31499
|
it.nodeName === "MI-MY-POSITION" ? it.addEventListener("position_received", (Vt) => {
|
|
31500
31500
|
Vt.detail.accurate === !0 && N(Vt.detail.position);
|
|
@@ -31506,7 +31506,7 @@ function p5({ onLocationClick: c, onVenueChangedOnMap: u, useMapProviderModule:
|
|
|
31506
31506
|
Rm = Te || "default", nn(A);
|
|
31507
31507
|
}, [Te]), Wt(() => {
|
|
31508
31508
|
if (gt && A)
|
|
31509
|
-
if (at &&
|
|
31509
|
+
if (at && Zt) {
|
|
31510
31510
|
const it = A.getDisplayRule(at);
|
|
31511
31511
|
it.visible = !0, it.iconSize = { width: it.iconSize.width * 2, height: it.iconSize.height * 2 }, it.iconVisible = !0, it.zoomFrom = 0, it.zoomTo = 999, it.clickable = !1, A.setDisplayRule(at.id, it);
|
|
31512
31512
|
const Vt = at.properties.floor;
|
|
@@ -31515,7 +31515,7 @@ function p5({ onLocationClick: c, onVenueChangedOnMap: u, useMapProviderModule:
|
|
|
31515
31515
|
Ge && window.mapsindoors.services.LocationsService.getLocation(Ge).then((it) => {
|
|
31516
31516
|
if (it) {
|
|
31517
31517
|
const Vt = it.properties.floor;
|
|
31518
|
-
A.setFloor(Vt), sg(it, A,
|
|
31518
|
+
A.setFloor(Vt), sg(it, A, Zt ? 0 : ib(), Zt ? Xg() : 0, Pe, Ee, _e);
|
|
31519
31519
|
}
|
|
31520
31520
|
});
|
|
31521
31521
|
}, [at, Ge, gt, Pe, Ee, _e]), /* @__PURE__ */ ve.jsxs(ve.Fragment, { children: [
|
|
@@ -31711,7 +31711,7 @@ function g5() {
|
|
|
31711
31711
|
}
|
|
31712
31712
|
}
|
|
31713
31713
|
}
|
|
31714
|
-
var J = A, Ge = D, ot = r, zt = S, at = u, gt = N,
|
|
31714
|
+
var J = A, Ge = D, ot = r, zt = S, at = u, gt = N, Zt = m, un = oe, Tt = se, nn = p, Ot = b, fn = v, it = j, Vt = !1;
|
|
31715
31715
|
function Yt(Qe) {
|
|
31716
31716
|
return Vt || (Vt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ze(Qe) || Ie(Qe) === A;
|
|
31717
31717
|
}
|
|
@@ -31751,7 +31751,7 @@ function g5() {
|
|
|
31751
31751
|
function mn(Qe) {
|
|
31752
31752
|
return Ie(Qe) === j;
|
|
31753
31753
|
}
|
|
31754
|
-
li.AsyncMode = J, li.ConcurrentMode = Ge, li.ContextConsumer = ot, li.ContextProvider = zt, li.Element = at, li.ForwardRef = gt, li.Fragment =
|
|
31754
|
+
li.AsyncMode = J, li.ConcurrentMode = Ge, li.ContextConsumer = ot, li.ContextProvider = zt, li.Element = at, li.ForwardRef = gt, li.Fragment = Zt, li.Lazy = un, li.Memo = Tt, li.Portal = nn, li.Profiler = Ot, li.StrictMode = fn, li.Suspense = it, li.isAsyncMode = Yt, li.isConcurrentMode = ze, li.isContextConsumer = Je, li.isContextProvider = be, li.isElement = He, li.isForwardRef = Ke, li.isFragment = vt, li.isLazy = Ue, li.isMemo = pt, li.isPortal = xt, li.isProfiler = _t, li.isStrictMode = Pt, li.isSuspense = mn, li.isValidElementType = Ee, li.typeOf = Ie;
|
|
31755
31755
|
}()), li;
|
|
31756
31756
|
}
|
|
31757
31757
|
var G0;
|
|
@@ -32025,7 +32025,7 @@ function y5() {
|
|
|
32025
32025
|
}
|
|
32026
32026
|
return Te(ze);
|
|
32027
32027
|
}
|
|
32028
|
-
function
|
|
32028
|
+
function Zt(ze, Je, be, He, Ke) {
|
|
32029
32029
|
return new pe(
|
|
32030
32030
|
(ze || "React class") + ": " + Je + " type `" + be + "." + He + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Ke + "`."
|
|
32031
32031
|
);
|
|
@@ -32038,7 +32038,7 @@ function y5() {
|
|
|
32038
32038
|
for (var _t in ze) {
|
|
32039
32039
|
var Pt = ze[_t];
|
|
32040
32040
|
if (typeof Pt != "function")
|
|
32041
|
-
return
|
|
32041
|
+
return Zt(Ke, vt, Ue, _t, it(Pt));
|
|
32042
32042
|
var mn = Pt(pt, _t, Ke, vt, Ue + "." + _t, p);
|
|
32043
32043
|
if (mn)
|
|
32044
32044
|
return mn;
|
|
@@ -32056,7 +32056,7 @@ function y5() {
|
|
|
32056
32056
|
for (var Pt in _t) {
|
|
32057
32057
|
var mn = ze[Pt];
|
|
32058
32058
|
if (m(ze, Pt) && typeof mn != "function")
|
|
32059
|
-
return
|
|
32059
|
+
return Zt(Ke, vt, Ue, Pt, it(mn));
|
|
32060
32060
|
if (!mn)
|
|
32061
32061
|
return new pe(
|
|
32062
32062
|
"Invalid " + vt + " `" + Ue + "` key `" + Pt + "` supplied to `" + Ke + "`.\nBad object: " + JSON.stringify(be[He], null, " ") + `
|
|
@@ -32827,7 +32827,7 @@ function j5(c, u) {
|
|
|
32827
32827
|
const { clientX: oe, clientY: pe } = se ? N.touches[0] : N, [Te, Pe] = ev([oe, pe], V.rotationAngle), _e = Te - j.xy[0], Ee = Pe - j.xy[1], Ie = Math.abs(_e), J = Math.abs(Ee), Ge = (N.timeStamp || 0) - j.start, ot = Math.sqrt(Ie * Ie + J * J) / (Ge || 1), zt = [_e / (Ge || 1), Ee / (Ge || 1)], at = U5(Ie, J, _e, Ee), gt = typeof V.delta == "number" ? V.delta : V.delta[at.toLowerCase()] || Xl.delta;
|
|
32828
32828
|
if (Ie < gt && J < gt && !j.swiping)
|
|
32829
32829
|
return j;
|
|
32830
|
-
const
|
|
32830
|
+
const Zt = {
|
|
32831
32831
|
absX: Ie,
|
|
32832
32832
|
absY: J,
|
|
32833
32833
|
deltaX: _e,
|
|
@@ -32839,12 +32839,12 @@ function j5(c, u) {
|
|
|
32839
32839
|
velocity: ot,
|
|
32840
32840
|
vxvy: zt
|
|
32841
32841
|
};
|
|
32842
|
-
|
|
32842
|
+
Zt.first && V.onSwipeStart && V.onSwipeStart(Zt), V.onSwiping && V.onSwiping(Zt);
|
|
32843
32843
|
let un = !1;
|
|
32844
32844
|
return (V.onSwiping || V.onSwiped || V[`onSwiped${at}`]) && (un = !0), un && V.preventScrollOnSwipe && V.trackTouch && N.cancelable && N.preventDefault(), Object.assign(Object.assign({}, j), {
|
|
32845
32845
|
// first is now always false
|
|
32846
32846
|
first: !1,
|
|
32847
|
-
eventData:
|
|
32847
|
+
eventData: Zt,
|
|
32848
32848
|
swiping: !0
|
|
32849
32849
|
});
|
|
32850
32850
|
});
|
|
@@ -33024,7 +33024,7 @@ const n_ = Dn({
|
|
|
33024
33024
|
default: Do.WALKING
|
|
33025
33025
|
});
|
|
33026
33026
|
function gb({ onBack: c, onStartWayfinding: u, onSetSize: p, snapPointSwiped: m, onStartDirections: v }) {
|
|
33027
|
-
const { t: b } = go(), S = Xn(null), r = Xn(null), A = Xn(null), [D, N] = Ht(!1), [j, V] = Ht(!1), [se, oe] = Ht(!1), [pe, Te] = Ht(null), Pe = kt(io), _e = kt(Ua), [Ee, Ie] = V5(_e, A), J = oh(), Ge = kt(Bs), ot = kt(Ns), zt = kt(Gg), [at, gt] = Ht(), [
|
|
33027
|
+
const { t: b } = go(), S = Xn(null), r = Xn(null), A = Xn(null), [D, N] = Ht(!1), [j, V] = Ht(!1), [se, oe] = Ht(!1), [pe, Te] = Ht(null), Pe = kt(io), _e = kt(Ua), [Ee, Ie] = V5(_e, A), J = oh(), Ge = kt(Bs), ot = kt(Ns), zt = kt(Gg), [at, gt] = Ht(), [Zt, un] = Ht(), Tt = tc("(min-width: 992px)"), nn = kt(i_), Ot = Ht(!1), [, , fn] = mb(Zt, at, zt, nn, Ot);
|
|
33028
33028
|
Wt(() => {
|
|
33029
33029
|
N(!1), V(!1), oe(!1), Te(null), _e && (S.current.location = _e, Te(Pe.getDisplayRule(_e)), gt(_e)), ot && un(ot);
|
|
33030
33030
|
}, [_e, Pe, ot]);
|
|
@@ -33257,67 +33257,70 @@ const vb = wM({
|
|
|
33257
33257
|
FROM: "FROM"
|
|
33258
33258
|
}, Q5 = "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";
|
|
33259
33259
|
function xb({ onStartDirections: c, onBack: u, directionsToLocation: p, directionsFromLocation: m, onSetSize: v, isActive: b }) {
|
|
33260
|
-
const { t: S } = go(), r = Xn(), A = Xn(), D = Xn(), N = Xn(), j = kt(Gg), V = kt(Vp), se = kt(Ua), oe = kt(Yx), pe = kt(Bs), [Te, Pe] = Ht(), [, _e] = dn(fb), [Ee, Ie] = Ht(!0), [J, Ge] = Ht(!1), [ot, zt] = Ht([]), [at, gt] = Ht(), [
|
|
33261
|
-
function pt(
|
|
33262
|
-
return oe === Ur.Google &&
|
|
33263
|
-
}
|
|
33264
|
-
function xt(
|
|
33265
|
-
Te === Gi.TO ? pt(
|
|
33266
|
-
gt(
|
|
33267
|
-
}, () => _e(!1)) : Te === Gi.FROM && pt(
|
|
33268
|
-
un(
|
|
33260
|
+
const { t: S } = go(), r = Xn(), A = Xn(), D = Xn(), N = Xn(), j = kt(Gg), V = kt(Vp), se = kt(Ua), oe = kt(Yx), pe = kt(Bs), [Te, Pe] = Ht(), [, _e] = dn(fb), [Ee, Ie] = Ht(!0), [J, Ge] = Ht(!1), [ot, zt] = Ht([]), [at, gt] = Ht(), [Zt, un] = Ht(), [Tt, nn] = Ht(!1), Ot = oh(), [fn, it] = Ht(!1), [Vt, Yt] = dn(i_), [ze, Je] = Ht(!1), be = kt(ih), He = kt(vb), [Ke, vt, Ue] = mb(Zt, at, j, Vt, Tt);
|
|
33261
|
+
function pt(Gt) {
|
|
33262
|
+
return oe === Ur.Google && Gt.properties.type === "google_places" ? H5(Gt) : oe === Ur.Mapbox && Gt.properties.type === "mapbox_places" ? J5(Gt, be) : Promise.resolve(Gt);
|
|
33263
|
+
}
|
|
33264
|
+
function xt(Gt) {
|
|
33265
|
+
Te === Gi.TO ? pt(Gt).then((fi) => {
|
|
33266
|
+
gt(fi), D.current.setDisplayText(fi.properties.name);
|
|
33267
|
+
}, () => _e(!1)) : Te === Gi.FROM && pt(Gt).then((fi) => {
|
|
33268
|
+
un(fi), N.current.setDisplayText(fi.properties.name);
|
|
33269
33269
|
}, () => _e(!1)), it(!1), Ge(!1), zt([]), Je(!1);
|
|
33270
33270
|
}
|
|
33271
|
-
function _t(
|
|
33272
|
-
if (Pe(
|
|
33271
|
+
function _t(Gt, fi) {
|
|
33272
|
+
if (Pe(fi), _e(!0), Gt.length === 0)
|
|
33273
33273
|
Ie(!1), it(!1), zt([]);
|
|
33274
33274
|
else {
|
|
33275
|
-
Ie(!0), zt(
|
|
33276
|
-
const
|
|
33277
|
-
it(
|
|
33275
|
+
Ie(!0), zt(Gt);
|
|
33276
|
+
const ei = Gt.filter((Zi) => Zi.properties.type === "google_places").length > 0;
|
|
33277
|
+
it(ei);
|
|
33278
33278
|
}
|
|
33279
33279
|
}
|
|
33280
|
-
function Pt(
|
|
33281
|
-
typeof v == "function" && v(
|
|
33280
|
+
function Pt(Gt) {
|
|
33281
|
+
typeof v == "function" && v(Gt);
|
|
33282
33282
|
}
|
|
33283
33283
|
function mn() {
|
|
33284
|
-
const
|
|
33285
|
-
Te === Gi.TO ? (D.current.setDisplayText(
|
|
33284
|
+
const Gt = fg(V);
|
|
33285
|
+
Te === Gi.TO ? (D.current.setDisplayText(Gt.properties.name), gt(Gt)) : Te === Gi.FROM && (N.current.setDisplayText(Gt.properties.name), un(Gt)), zt([]), _e(!0), Ie(!0), it(!1), Ge(!1), Je(!1);
|
|
33286
33286
|
}
|
|
33287
|
-
function Qe(
|
|
33288
|
-
(
|
|
33287
|
+
function Qe(Gt) {
|
|
33288
|
+
(Zt == null ? void 0 : Zt.id) === "USER_POSITION" && Gt === Gi.TO || (at == null ? void 0 : at.id) === "USER_POSITION" && Gt === Gi.FROM ? Je(!1) : Je(!0);
|
|
33289
33289
|
}
|
|
33290
|
-
function ln(
|
|
33291
|
-
Qe(
|
|
33290
|
+
function ln(Gt) {
|
|
33291
|
+
Qe(Gt);
|
|
33292
33292
|
}
|
|
33293
|
-
function Qt(
|
|
33294
|
-
Pe(
|
|
33293
|
+
function Qt(Gt) {
|
|
33294
|
+
Pe(Gt), Kn(Gt), _e(!0), it(!1), Qe(Gt);
|
|
33295
33295
|
}
|
|
33296
|
-
function Nn(
|
|
33297
|
-
Je(!0), Pe(
|
|
33296
|
+
function Nn(Gt) {
|
|
33297
|
+
Je(!0), Pe(Gt), Qn(Gt), zt([]), _e(!0), it(!1), Ie(!0);
|
|
33298
33298
|
}
|
|
33299
|
-
function Qn(
|
|
33300
|
-
|
|
33299
|
+
function Qn(Gt) {
|
|
33300
|
+
Gt === Gi.TO ? gt() : Gt === Gi.FROM && un();
|
|
33301
33301
|
}
|
|
33302
|
-
function Kn(
|
|
33303
|
-
|
|
33302
|
+
function Kn(Gt) {
|
|
33303
|
+
Gt === Gi.TO ? (zt([]), D.current.getValue() && (Ge(!0), D.current.triggerSearch())) : Gt === Gi.FROM && (zt([]), N.current.getValue() && (Ge(!0), N.current.triggerSearch()));
|
|
33304
33304
|
}
|
|
33305
33305
|
function Ti() {
|
|
33306
|
-
(at ||
|
|
33306
|
+
(at || Zt) && (Zt ? D.current.setDisplayText(Zt.properties.name) : D.current.clear(), at ? N.current.setDisplayText(at.properties.name) : N.current.clear(), gt(Zt), un(at));
|
|
33307
|
+
}
|
|
33308
|
+
function qi() {
|
|
33309
|
+
un(), N.current.setDisplayText(""), u();
|
|
33307
33310
|
}
|
|
33308
33311
|
return Wt(() => {
|
|
33309
|
-
var
|
|
33310
|
-
if (Pt(bi.MAX), (m == null ? void 0 : m.id) === "USER_POSITION" && (p == null ? void 0 : p.id) === "USER_POSITION" && (p = void 0), p != null && p.properties && !se && (D.current.setDisplayText(p.properties.name), gt(p)), m != null && m.properties ? (N.current.setDisplayText(m.properties.name), un(m)) : Pe(Gi.FROM), b && !((
|
|
33311
|
-
const
|
|
33312
|
-
if (
|
|
33312
|
+
var Gt;
|
|
33313
|
+
if (Pt(bi.MAX), (m == null ? void 0 : m.id) === "USER_POSITION" && (p == null ? void 0 : p.id) === "USER_POSITION" && (p = void 0), p != null && p.properties && !se && (D.current.setDisplayText(p.properties.name), gt(p)), m != null && m.properties ? (N.current.setDisplayText(m.properties.name), un(m)) : Pe(Gi.FROM), b && !((Gt = N.current) != null && Gt.getValue())) {
|
|
33314
|
+
const fi = r.current.closest(".sheet");
|
|
33315
|
+
if (fi ? fi.addEventListener("transitionend", () => {
|
|
33313
33316
|
m !== "USER_POSITION_PENDING" && (p == null ? void 0 : p.id) !== "USER_POSITION" && N.current.focusInput();
|
|
33314
|
-
}, { once: !0 }) : m !== "USER_POSITION_PENDING" && (p == null ? void 0 : p.id) !== "USER_POSITION" && N.current.focusInput(), V && !
|
|
33315
|
-
const
|
|
33316
|
-
N.current.setDisplayText(
|
|
33317
|
+
}, { once: !0 }) : m !== "USER_POSITION_PENDING" && (p == null ? void 0 : p.id) !== "USER_POSITION" && N.current.focusInput(), V && !Zt && (p == null ? void 0 : p.id) !== "USER_POSITION") {
|
|
33318
|
+
const ei = fg(V);
|
|
33319
|
+
N.current.setDisplayText(ei.properties.name), un(ei), _e(!0), Ie(!0), zt([]);
|
|
33317
33320
|
}
|
|
33318
33321
|
}
|
|
33319
33322
|
}, [b, p, m]), Wt(() => {
|
|
33320
|
-
oe === Ur.Mapbox && (it(!1), zt(ot.filter((
|
|
33323
|
+
oe === Ur.Mapbox && (it(!1), zt(ot.filter((Gt) => Gt.properties.type !== "google_places")));
|
|
33321
33324
|
}, [oe]), Wt(() => {
|
|
33322
33325
|
se && (gt(se), D.current.setDisplayText(se.properties.name));
|
|
33323
33326
|
}, [se]), /* @__PURE__ */ ve.jsxs("div", { className: "wayfinding", ref: r, children: [
|
|
@@ -33327,7 +33330,7 @@ function xb({ onStartDirections: c, onBack: u, directionsToLocation: p, directio
|
|
|
33327
33330
|
"button",
|
|
33328
33331
|
{
|
|
33329
33332
|
className: "wayfinding__close",
|
|
33330
|
-
onClick: () =>
|
|
33333
|
+
onClick: () => qi(),
|
|
33331
33334
|
"aria-label": "Close",
|
|
33332
33335
|
children: /* @__PURE__ */ ve.jsx(rh, {})
|
|
33333
33336
|
}
|
|
@@ -33343,7 +33346,7 @@ function xb({ onStartDirections: c, onBack: u, directionsToLocation: p, directio
|
|
|
33343
33346
|
google: oe === Ur.Google,
|
|
33344
33347
|
mapbox: oe === Ur.Mapbox,
|
|
33345
33348
|
placeholder: S("Search by name, category, building..."),
|
|
33346
|
-
results: (
|
|
33349
|
+
results: (Gt) => _t(Gt, Gi.FROM),
|
|
33347
33350
|
clicked: () => Qt(Gi.FROM),
|
|
33348
33351
|
cleared: () => Nn(Gi.FROM),
|
|
33349
33352
|
changed: () => ln(Gi.FROM)
|
|
@@ -33369,7 +33372,7 @@ function xb({ onStartDirections: c, onBack: u, directionsToLocation: p, directio
|
|
|
33369
33372
|
google: oe === Ur.Google,
|
|
33370
33373
|
mapbox: oe === Ur.Mapbox,
|
|
33371
33374
|
placeholder: S("Search by name, category, building..."),
|
|
33372
|
-
results: (
|
|
33375
|
+
results: (Gt) => _t(Gt, Gi.TO),
|
|
33373
33376
|
clicked: () => Qt(Gi.TO),
|
|
33374
33377
|
cleared: () => Nn(Gi.TO),
|
|
33375
33378
|
changed: () => ln(Gi.TO)
|
|
@@ -33386,26 +33389,26 @@ function xb({ onStartDirections: c, onBack: u, directionsToLocation: p, directio
|
|
|
33386
33389
|
] }),
|
|
33387
33390
|
ot.length > 0 && /* @__PURE__ */ ve.jsx("div", { className: "wayfinding__scrollable", ...Ot, children: /* @__PURE__ */ ve.jsxs("div", { className: "wayfinding__results", children: [
|
|
33388
33391
|
ot.map(
|
|
33389
|
-
(
|
|
33392
|
+
(Gt) => /* @__PURE__ */ ve.jsx(
|
|
33390
33393
|
r_,
|
|
33391
33394
|
{
|
|
33392
|
-
icon:
|
|
33393
|
-
location:
|
|
33394
|
-
locationClicked: (
|
|
33395
|
+
icon: Gt.properties.type === "google_places" || Gt.properties.type === "mapbox_places" ? Q5 : void 0,
|
|
33396
|
+
location: Gt,
|
|
33397
|
+
locationClicked: (fi) => xt(fi)
|
|
33395
33398
|
},
|
|
33396
|
-
|
|
33399
|
+
Gt.id
|
|
33397
33400
|
)
|
|
33398
33401
|
),
|
|
33399
33402
|
fn && /* @__PURE__ */ ve.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: X5 })
|
|
33400
33403
|
] }) }),
|
|
33401
|
-
!J && !ze && Ue && !fn &&
|
|
33404
|
+
!J && !ze && Ue && !fn && Zt && at && /* @__PURE__ */ ve.jsxs("div", { className: "wayfinding__details", ref: A, children: [
|
|
33402
33405
|
/* @__PURE__ */ ve.jsxs("div", { className: "wayfinding__settings", children: [
|
|
33403
33406
|
/* @__PURE__ */ ve.jsxs("div", { className: "wayfinding__accessibility", children: [
|
|
33404
|
-
/* @__PURE__ */ ve.jsx("input", { className: "mi-toggle", type: "checkbox", checked: Tt, onChange: (
|
|
33407
|
+
/* @__PURE__ */ ve.jsx("input", { className: "mi-toggle", type: "checkbox", checked: Tt, onChange: (Gt) => nn(Gt.target.checked), style: { backgroundColor: Tt ? pe : "" } }),
|
|
33405
33408
|
/* @__PURE__ */ ve.jsx("div", { children: S("Accessibility") }),
|
|
33406
33409
|
/* @__PURE__ */ ve.jsx(Z5, { text: S("Turn on Accessibility to get directions that avoid stairs and escalators.") })
|
|
33407
33410
|
] }),
|
|
33408
|
-
/* @__PURE__ */ ve.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ ve.jsxs(Y5, { selectionChanged: (
|
|
33411
|
+
/* @__PURE__ */ ve.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ ve.jsxs(Y5, { selectionChanged: (Gt) => Yt(Gt[0].value), children: [
|
|
33409
33412
|
/* @__PURE__ */ ve.jsxs("mi-dropdown-item", { selected: !0, value: Do.WALKING, children: [
|
|
33410
33413
|
/* @__PURE__ */ ve.jsx(dg, {}),
|
|
33411
33414
|
S("Walk")
|
|
@@ -33595,14 +33598,14 @@ const o_ = Dn({
|
|
|
33595
33598
|
key: "supportsUrlParameters",
|
|
33596
33599
|
default: !1
|
|
33597
33600
|
});
|
|
33598
|
-
let
|
|
33601
|
+
let Qi;
|
|
33599
33602
|
function Tb({ isOpen: c, onBack: u, onSetSize: p, snapPointSwiped: m }) {
|
|
33600
33603
|
const { t: v } = go(), [b, S] = Ht(null), r = Xn(null), A = Xn(null), D = Xn(null), [N, j] = Ht(), [V, se] = Ht(), oe = kt(io), pe = kt(i_), Te = kt(n_), Pe = kt(vb), [, _e] = dn(bb), [Ee, Ie] = dn(Wp), J = kt(Ns), Ge = tc("(min-width: 992px)"), [, ot] = dn(o_), zt = kt(wb);
|
|
33601
33604
|
Wt(() => {
|
|
33602
33605
|
if (S(null), c && Te) {
|
|
33603
33606
|
j(Te.totalDistance), se(Te.totalTime);
|
|
33604
33607
|
const Yt = Math.min(window.innerHeight, window.innerWidth) * 0.06;
|
|
33605
|
-
|
|
33608
|
+
Qi == null || Qi.setRoute(null), Qi = null, Qi = new window.mapsindoors.directions.DirectionsRenderer({
|
|
33606
33609
|
mapsIndoors: oe,
|
|
33607
33610
|
fitBoundsPadding: {
|
|
33608
33611
|
top: Yt,
|
|
@@ -33610,7 +33613,7 @@ function Tb({ isOpen: c, onBack: u, onSetSize: p, snapPointSwiped: m }) {
|
|
|
33610
33613
|
left: gt(Yt),
|
|
33611
33614
|
right: Yt
|
|
33612
33615
|
}
|
|
33613
|
-
}),
|
|
33616
|
+
}), Qi.setRoute(Te.directionsResult), Qi.setStepIndex(0), A.current.location = Te.originLocation, r.current.location = Te.destinationLocation, Te.destinationLocation.id === "USER_POSITION" ? S(null) : S(oe.getDisplayRule(Te.destinationLocation));
|
|
33614
33617
|
}
|
|
33615
33618
|
}, [c, Te, oe, pe]);
|
|
33616
33619
|
function at(Yt) {
|
|
@@ -33620,9 +33623,9 @@ function Tb({ isOpen: c, onBack: u, onSetSize: p, snapPointSwiped: m }) {
|
|
|
33620
33623
|
return Ge ? J ? Yt : Xg() : Yt;
|
|
33621
33624
|
}
|
|
33622
33625
|
Wt(() => {
|
|
33623
|
-
!c &&
|
|
33626
|
+
!c && Qi && Ot();
|
|
33624
33627
|
}, [c]);
|
|
33625
|
-
function
|
|
33628
|
+
function Zt() {
|
|
33626
33629
|
return Te ? Te.directionsResult.legs.reduce((Yt, ze) => {
|
|
33627
33630
|
for (const Je in ze.steps) {
|
|
33628
33631
|
const be = ze.steps[Je];
|
|
@@ -33632,16 +33635,16 @@ function Tb({ isOpen: c, onBack: u, onSetSize: p, snapPointSwiped: m }) {
|
|
|
33632
33635
|
}, []) : [];
|
|
33633
33636
|
}
|
|
33634
33637
|
function un() {
|
|
33635
|
-
D.current.scrollTop = 0,
|
|
33638
|
+
D.current.scrollTop = 0, Qi && Qi.nextStep();
|
|
33636
33639
|
}
|
|
33637
33640
|
function Tt() {
|
|
33638
|
-
D.current.scrollTop = 0,
|
|
33641
|
+
D.current.scrollTop = 0, Qi && Qi.previousStep();
|
|
33639
33642
|
}
|
|
33640
33643
|
function nn() {
|
|
33641
|
-
|
|
33644
|
+
Qi && Qi.setStepIndex(Qi.getStepIndex(), Qi.getLegIndex());
|
|
33642
33645
|
}
|
|
33643
33646
|
function Ot() {
|
|
33644
|
-
|
|
33647
|
+
Qi.setRoute(null), Qi = null;
|
|
33645
33648
|
}
|
|
33646
33649
|
function fn() {
|
|
33647
33650
|
_e(0), Ie(!1), Vt(bi.FIT);
|
|
@@ -33712,7 +33715,7 @@ function Tb({ isOpen: c, onBack: u, onSetSize: p, snapPointSwiped: m }) {
|
|
|
33712
33715
|
/* @__PURE__ */ ve.jsx(
|
|
33713
33716
|
s4,
|
|
33714
33717
|
{
|
|
33715
|
-
steps:
|
|
33718
|
+
steps: Zt(),
|
|
33716
33719
|
originLocation: Te == null ? void 0 : Te.originLocation,
|
|
33717
33720
|
onNextStep: () => un(),
|
|
33718
33721
|
isOpen: c,
|
|
@@ -33738,7 +33741,7 @@ const Eb = Dn({
|
|
|
33738
33741
|
}, [c]), /* @__PURE__ */ ve.jsx("mi-keyboard", { language: m, ref: p });
|
|
33739
33742
|
});
|
|
33740
33743
|
function Sb({ onSetSize: c }) {
|
|
33741
|
-
const { t: u } = go(), p = Xn(), m = Xn(), v = Xn(), [b, S] = Ht(!0), [r, A] = Ht([]), D = kt(t_), N = kt(Eb), [j, V] = Ht(!1), se = Xn(), [oe, pe] = Ht(), Te = oh(), Pe = kt(Bs), [_e, Ee] = Ht(), Ie = kt(io), [, J] = dn(Zg), [, Ge] = dn(Ua), [, ot] = dn(Wg), [zt, at] = dn(Gp), gt = kt(sh),
|
|
33744
|
+
const { t: u } = go(), p = Xn(), m = Xn(), v = Xn(), [b, S] = Ht(!0), [r, A] = Ht([]), D = kt(t_), N = kt(Eb), [j, V] = Ht(!1), se = Xn(), [oe, pe] = Ht(), Te = oh(), Pe = kt(Bs), [_e, Ee] = Ht(), Ie = kt(io), [, J] = dn(Zg), [, Ge] = dn(Ua), [, ot] = dn(Wg), [zt, at] = dn(Gp), gt = kt(sh), Zt = tc("(min-width: 992px)"), un = kt(Ns), [Tt, nn] = Ht(!1), Ot = kt(yb);
|
|
33742
33745
|
function fn(Ue) {
|
|
33743
33746
|
window.mapsindoors.services.LocationsService.getLocations({
|
|
33744
33747
|
categories: Ue
|
|
@@ -33772,10 +33775,10 @@ function Sb({ onSetSize: c }) {
|
|
|
33772
33775
|
xt !== pt && Ie.setFloor(xt), sg(Ue, Ie, Ke(), vt());
|
|
33773
33776
|
}
|
|
33774
33777
|
function Ke() {
|
|
33775
|
-
return
|
|
33778
|
+
return Zt ? un ? Kg() : 0 : 200;
|
|
33776
33779
|
}
|
|
33777
33780
|
function vt() {
|
|
33778
|
-
return
|
|
33781
|
+
return Zt ? un ? 0 : Xg() : 0;
|
|
33779
33782
|
}
|
|
33780
33783
|
return Wt(() => {
|
|
33781
33784
|
oe && (A([]), pe(null));
|
|
@@ -33844,7 +33847,7 @@ function Sb({ onSetSize: c }) {
|
|
|
33844
33847
|
)
|
|
33845
33848
|
) })
|
|
33846
33849
|
] }),
|
|
33847
|
-
Tt &&
|
|
33850
|
+
Tt && Zt && /* @__PURE__ */ ve.jsx(a4, { ref: v, searchInputElement: Ot })
|
|
33848
33851
|
]
|
|
33849
33852
|
}
|
|
33850
33853
|
);
|
|
@@ -33880,12 +33883,12 @@ function Cb({ onBack: c, onLocationClick: u, locations: p, onSetSize: m }) {
|
|
|
33880
33883
|
function l4({ directionsFromLocation: c, directionsToLocation: u, pushAppView: p, currentAppView: m, appViews: v }) {
|
|
33881
33884
|
const b = Xn(), [S, r] = Ht(), [A, D] = Ht(), [N, j] = Ht(), [V, se] = Ht(), [oe, pe] = Ht(), [Te, Pe] = Ht(), [_e, Ee] = Ht(), Ie = kt(t_), [J, Ge] = dn(Ua), [ot, zt] = dn(qp), [, at] = dn(Zp);
|
|
33882
33885
|
Wt(() => {
|
|
33883
|
-
c && u && m === v.DIRECTIONS || (c && u ? p(v.WAYFINDING) : J ? p(v.LOCATION_DETAILS, J) : (ot == null ? void 0 : ot.length) > 1 ? p(v.EXTERNALIDS) : (ot == null ? void 0 : ot.length) === 1 ? (Ge(ot[0]), at(ot[0].id)) : p(v.SEARCH));
|
|
33886
|
+
c && u && m === v.DIRECTIONS || (c && u || c ? p(v.WAYFINDING) : J ? p(v.LOCATION_DETAILS, J) : (ot == null ? void 0 : ot.length) > 1 ? p(v.EXTERNALIDS) : (ot == null ? void 0 : ot.length) === 1 ? (Ge(ot[0]), at(ot[0].id)) : p(v.SEARCH));
|
|
33884
33887
|
}, [J, c, u, ot]);
|
|
33885
33888
|
function gt() {
|
|
33886
33889
|
(ot == null ? void 0 : ot.length) > 1 ? (p(v.EXTERNALIDS), Ge()) : (ot == null ? void 0 : ot.length) === 1 ? (p(v.SEARCH), Ge(), zt([])) : (p(v.SEARCH), Ge());
|
|
33887
33890
|
}
|
|
33888
|
-
function
|
|
33891
|
+
function Zt() {
|
|
33889
33892
|
p(v.SEARCH), Ge(), zt([]);
|
|
33890
33893
|
}
|
|
33891
33894
|
const un = [
|
|
@@ -33914,7 +33917,7 @@ function l4({ directionsFromLocation: c, directionsToLocation: u, pushAppView: p
|
|
|
33914
33917
|
Cb,
|
|
33915
33918
|
{
|
|
33916
33919
|
onSetSize: (Tt) => Ee(Tt),
|
|
33917
|
-
onBack: () =>
|
|
33920
|
+
onBack: () => Zt(),
|
|
33918
33921
|
locations: ot,
|
|
33919
33922
|
onLocationClick: (Tt) => Ge(Tt),
|
|
33920
33923
|
onLocationsFiltered: (Tt) => zt(Tt)
|
|
@@ -34034,7 +34037,7 @@ function Nu({ children: c, isOpen: u }) {
|
|
|
34034
34037
|
function h4({ directionsFromLocation: c, directionsToLocation: u, pushAppView: p, currentAppView: m, appViews: v }) {
|
|
34035
34038
|
const [b, S] = dn(Ua), [r, A] = dn(qp), [, D] = dn(Zp), N = kt(Ns);
|
|
34036
34039
|
Wt(() => {
|
|
34037
|
-
c && u && m === v.DIRECTIONS || (c && u ? p(v.WAYFINDING) : b ? p(v.LOCATION_DETAILS, b) : (r == null ? void 0 : r.length) > 1 ? p(v.EXTERNALIDS) : (r == null ? void 0 : r.length) === 1 ? (S(r[0]), D(r[0].id)) : p(v.SEARCH));
|
|
34040
|
+
c && u && m === v.DIRECTIONS || (c && u || c ? p(v.WAYFINDING) : b ? p(v.LOCATION_DETAILS, b) : (r == null ? void 0 : r.length) > 1 ? p(v.EXTERNALIDS) : (r == null ? void 0 : r.length) === 1 ? (S(r[0]), D(r[0].id)) : p(v.SEARCH));
|
|
34038
34041
|
}, [b, c, u, r]);
|
|
34039
34042
|
function j() {
|
|
34040
34043
|
(r == null ? void 0 : r.length) > 1 ? (p(v.EXTERNALIDS), S()) : (r == null ? void 0 : r.length) === 1 ? (p(v.SEARCH), S(), A([])) : (p(v.SEARCH), S());
|
|
@@ -35271,11 +35274,11 @@ var O4 = Fb.exports;
|
|
|
35271
35274
|
for (let Ge = 0; Ge < Pe.length; Ge++) {
|
|
35272
35275
|
const ot = Pe[Ge], zt = [];
|
|
35273
35276
|
for (let at = 0; at < ot.length; at++) {
|
|
35274
|
-
const gt = ot[at],
|
|
35275
|
-
zt.push(
|
|
35277
|
+
const gt = ot[at], Zt = "" + Ge + at;
|
|
35278
|
+
zt.push(Zt), Ee[Zt] = { node: gt, lastCount: 0 }, Ie[Zt] = {};
|
|
35276
35279
|
for (let un = 0; un < J.length; un++) {
|
|
35277
35280
|
const Tt = J[un];
|
|
35278
|
-
Ee[Tt] && Ee[Tt].node.mode === gt.mode ? (Ie[Tt][
|
|
35281
|
+
Ee[Tt] && Ee[Tt].node.mode === gt.mode ? (Ie[Tt][Zt] = V(Ee[Tt].lastCount + gt.length, gt.mode) - V(Ee[Tt].lastCount, gt.mode), Ee[Tt].lastCount += gt.length) : (Ee[Tt] && (Ee[Tt].lastCount = gt.length), Ie[Tt][Zt] = V(gt.length, gt.mode) + 4 + u.getCharCountIndicator(gt.mode, _e));
|
|
35279
35282
|
}
|
|
35280
35283
|
}
|
|
35281
35284
|
J = zt;
|
|
@@ -35622,7 +35625,7 @@ function nL() {
|
|
|
35622
35625
|
}
|
|
35623
35626
|
sR();
|
|
35624
35627
|
function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId: v, primaryColor: b, logo: S, appUserRoles: r, directionsFrom: A, directionsTo: D, externalIDs: N, tileStyle: j, startZoomLevel: V, bearing: se, pitch: oe, gmMapId: pe, useMapProviderModule: Te, kioskOriginLocationId: Pe, language: _e, supportsUrlParameters: Ee, useKeyboard: Ie }) {
|
|
35625
|
-
const [, J] = dn(qg), [, Ge] = dn(Up), [, ot] = dn(ih), [zt, at] = dn(Hg), [gt,
|
|
35628
|
+
const [, J] = dn(qg), [, Ge] = dn(Up), [, ot] = dn(ih), [zt, at] = dn(Hg), [gt, Zt] = dn(Vg), [, un] = dn(Gp), [Tt, nn] = dn(Ua), [Ot, fn] = dn(t_), [, it] = dn(Zp), [, Vt] = dn(Bs), [, Yt] = dn(Jg), [, ze] = dn(Hx), Je = kt(io), [be, He] = dn(sh), [, Ke] = dn(Ns), [, vt] = dn(wb), [, Ue] = dn(Eb), [pt, xt] = Ht(!0), [_t, Pt] = Ht(!0), mn = nv(A), Qe = nv(D), [, ln] = dn(qp), [Qt, Nn] = dn(Zg), [Qn, Kn] = Ht(), [Ti, qi] = Ht(), [, Gt] = dn(Yg), [, fi] = dn(Jx), [, ei] = dn(Qx), [, Zi] = dn(jp), [, cr] = dn($p), nr = tc("(min-width: 992px)"), yr = tc("(max-width: 991px)"), [Ai, Dr, Di, Ei, zi] = u4(), Wi = Xn(), [Gn, ur] = Ht(!1), Oe = kt(o_);
|
|
35626
35629
|
function Ce() {
|
|
35627
35630
|
return new Promise((ct) => {
|
|
35628
35631
|
if (window.mapsindoors !== void 0)
|
|
@@ -35642,22 +35645,22 @@ function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId
|
|
|
35642
35645
|
const ct = _e || navigator.language;
|
|
35643
35646
|
window.mapsindoors.MapsIndoors.setLanguage(ct), window.mapsindoors.services.LocationsService.once("update_completed", () => {
|
|
35644
35647
|
Ot.length > 0 && St(m), gt.length > 0 && window.mapsindoors.services.VenuesService.getVenues().then((Ct) => {
|
|
35645
|
-
Ct = Ct.map((Ft) => (Ft.image = Ti.venueImages[Ft.name.toLowerCase()], Ft)),
|
|
35648
|
+
Ct = Ct.map((Ft) => (Ft.image = Ti.venueImages[Ft.name.toLowerCase()], Ft)), Zt(Ct);
|
|
35646
35649
|
}), Tt && window.mapsindoors.services.LocationsService.getLocation(Tt.id).then((Ct) => nn(Ct));
|
|
35647
|
-
}), be ?
|
|
35650
|
+
}), be ? lr.changeLanguage(ct) : WR(ct), He(ct);
|
|
35648
35651
|
}
|
|
35649
35652
|
}, [_e, Gn]), Wt(() => {
|
|
35650
35653
|
Gn && (J(c), at(!1), window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(c), Promise.all([
|
|
35651
35654
|
// Fetch all Venues in the Solution
|
|
35652
35655
|
window.mapsindoors.services.VenuesService.getVenues(),
|
|
35653
35656
|
// Fetch the App Config belonging to the given API key. This is needed for checking access tokens and Venue images.
|
|
35654
|
-
window.mapsindoors.services.AppConfigService.getConfig().then((ct) => (
|
|
35657
|
+
window.mapsindoors.services.AppConfigService.getConfig().then((ct) => (qi(ct), ct)),
|
|
35655
35658
|
// Fetch solution info in order to see what modules are enabled
|
|
35656
|
-
window.mapsindoors.services.SolutionsService.getSolution().then((ct) => (
|
|
35659
|
+
window.mapsindoors.services.SolutionsService.getSolution().then((ct) => (Gt(ct), ct)),
|
|
35657
35660
|
// Ensure a minimum waiting time of 3 seconds
|
|
35658
35661
|
new Promise((ct) => setTimeout(ct, 3e3))
|
|
35659
35662
|
]).then(([ct, Ct]) => {
|
|
35660
|
-
ct = ct.map((Ft) => (Ft.image = Ct.venueImages[Ft.name.toLowerCase()], Ft)),
|
|
35663
|
+
ct = ct.map((Ft) => (Ft.image = Ct.venueImages[Ft.name.toLowerCase()], Ft)), Zt(ct);
|
|
35661
35664
|
}), at(!1));
|
|
35662
35665
|
}, [c, Gn]), Wt(() => {
|
|
35663
35666
|
var ct, Ct;
|
|
@@ -35678,19 +35681,19 @@ function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId
|
|
|
35678
35681
|
}, [v, Gn]), Wt(() => {
|
|
35679
35682
|
Gn && ze(pe);
|
|
35680
35683
|
}, [pe, Gn]), Wt(() => {
|
|
35681
|
-
Di === zi.LOCATION_DETAILS && Ei && !Tt && nn(Ei),
|
|
35684
|
+
Di === zi.LOCATION_DETAILS && Ei && !Tt && nn(Ei), Wi.current = Di === zi.DIRECTIONS, Wi.current ? (Kn(Qt), Nn([])) : Nn(Qn);
|
|
35682
35685
|
}, [Di]), Wt(() => {
|
|
35683
35686
|
un(m);
|
|
35684
35687
|
}, [m]), Wt(() => {
|
|
35685
|
-
|
|
35688
|
+
fi(j);
|
|
35686
35689
|
}, [j]), Wt(() => {
|
|
35687
35690
|
Vt(b);
|
|
35688
35691
|
}, [b]), Wt(() => {
|
|
35689
|
-
|
|
35692
|
+
ei(V);
|
|
35690
35693
|
}, [V]), Wt(() => {
|
|
35691
35694
|
cr(oe);
|
|
35692
35695
|
}, [oe]), Wt(() => {
|
|
35693
|
-
|
|
35696
|
+
Zi(se);
|
|
35694
35697
|
}, [se]), Wt(() => {
|
|
35695
35698
|
Yt(S);
|
|
35696
35699
|
}, [S]), Wt(() => {
|
|
@@ -35698,7 +35701,7 @@ function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId
|
|
|
35698
35701
|
}, [Tt]), Wt(() => {
|
|
35699
35702
|
Gn && (Pe ? window.mapsindoors.services.LocationsService.getLocation(Pe).then((ct) => {
|
|
35700
35703
|
Ke(ct);
|
|
35701
|
-
}) : Ke(), Pe &&
|
|
35704
|
+
}) : Ke(), Pe && nr ? (xt(!1), Pt(!1)) : (xt(!0), Pt(!0)));
|
|
35702
35705
|
}, [Pe, Gn]), Wt(() => {
|
|
35703
35706
|
vt(Ee);
|
|
35704
35707
|
}, [Ee]), Wt(() => {
|
|
@@ -35708,7 +35711,7 @@ function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId
|
|
|
35708
35711
|
zt === !1 && at(!0), St(ct.name);
|
|
35709
35712
|
}
|
|
35710
35713
|
function At(ct) {
|
|
35711
|
-
|
|
35714
|
+
Wi.current !== !0 && ct.id !== Pe && nn(ct);
|
|
35712
35715
|
}
|
|
35713
35716
|
function St(ct) {
|
|
35714
35717
|
window.mapsindoors.services.LocationsService.getLocations({}).then((Ct) => {
|
|
@@ -35731,7 +35734,7 @@ function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId
|
|
|
35731
35734
|
}
|
|
35732
35735
|
Ct = Array.from(Ct).sort((Ft, cn) => cn[1].count - Ft[1].count), fn(Ct);
|
|
35733
35736
|
}
|
|
35734
|
-
return /* @__PURE__ */ ve.jsxs("div", { className: `mapsindoors-map ${
|
|
35737
|
+
return /* @__PURE__ */ ve.jsxs("div", { className: `mapsindoors-map ${Wi.current ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"} ${_t ? "mapsindoors-map--show-my-position" : "mapsindoors-map--hide-my-position"}`, children: [
|
|
35735
35738
|
/* @__PURE__ */ ve.jsx(d4, {}),
|
|
35736
35739
|
!zt && /* @__PURE__ */ ve.jsx(f5, {}),
|
|
35737
35740
|
gt.length > 1 && pt && /* @__PURE__ */ ve.jsx(
|
|
@@ -35744,7 +35747,7 @@ function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId
|
|
|
35744
35747
|
),
|
|
35745
35748
|
Oe && /* @__PURE__ */ ve.jsx(nL, {}),
|
|
35746
35749
|
zt && /* @__PURE__ */ ve.jsxs(ve.Fragment, { children: [
|
|
35747
|
-
|
|
35750
|
+
nr && /* @__PURE__ */ ve.jsx(
|
|
35748
35751
|
h4,
|
|
35749
35752
|
{
|
|
35750
35753
|
directionsFromLocation: mn,
|
|
@@ -35778,7 +35781,7 @@ function iL({ apiKey: c, gmApiKey: u, mapboxAccessToken: p, venue: m, locationId
|
|
|
35778
35781
|
function cL(c) {
|
|
35779
35782
|
const [u, p] = Ht();
|
|
35780
35783
|
return Wt(() => {
|
|
35781
|
-
var gt,
|
|
35784
|
+
var gt, Zt;
|
|
35782
35785
|
const m = window.location.search, v = new URLSearchParams(m), b = {
|
|
35783
35786
|
apiKey: "3ddemo",
|
|
35784
35787
|
venue: "WEWORK",
|
|
@@ -35787,7 +35790,7 @@ function cL(c) {
|
|
|
35787
35790
|
// --brand-colors-dark-pine-100 from MIDT
|
|
35788
35791
|
useMapProviderModule: !1,
|
|
35789
35792
|
useKeyboard: !1
|
|
35790
|
-
}, S = v.get("apiKey"), r = v.get("venue"), A = v.get("locationId"), D = v.get("logo"), N = v.get("directionsFrom"), j = v.get("directionsTo"), V = v.get("tileStyle"), se = v.get("startZoomLevel"), oe = v.get("pitch"), pe = v.get("bearing"), Te = v.get("gmApiKey"), Pe = v.get("mapboxAccessToken"), _e = v.get("primaryColor"), Ee = (gt = v.get("appUserRoles")) == null ? void 0 : gt.split(","), Ie = (
|
|
35793
|
+
}, S = v.get("apiKey"), r = v.get("venue"), A = v.get("locationId"), D = v.get("logo"), N = v.get("directionsFrom"), j = v.get("directionsTo"), V = v.get("tileStyle"), se = v.get("startZoomLevel"), oe = v.get("pitch"), pe = v.get("bearing"), Te = v.get("gmApiKey"), Pe = v.get("mapboxAccessToken"), _e = v.get("primaryColor"), Ee = (gt = v.get("appUserRoles")) == null ? void 0 : gt.split(","), Ie = (Zt = v.get("externalIDs")) == null ? void 0 : Zt.split(","), J = v.get("gmMapId"), Ge = sv(v.get("useMapProviderModule")), ot = v.get("kioskOriginLocationId"), zt = v.get("language"), at = sv(v.get("useKeyboard"));
|
|
35791
35794
|
p({
|
|
35792
35795
|
apiKey: c.supportsUrlParameters && S ? S : c.apiKey || b.apiKey,
|
|
35793
35796
|
venue: c.supportsUrlParameters && r ? r : c.venue || b.venue,
|