@mapsindoors/map-template 1.9.0 → 1.9.2
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-491f3a23.mjs → combo-box-item.entry-38e7e2f3.mjs} +1 -1
- package/dist/{combo-box-item.entry-a27edde5.mjs → combo-box-item.entry-50afb9ae.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +2 -2
- package/dist/mapsindoors-webcomponent.es.js +1 -1
- package/dist/mapsindoors-webcomponent.umd.js +1 -1
- package/dist/{mi-card_2.entry-f9e647ca.mjs → mi-card_2.entry-03722f6d.mjs} +1 -1
- package/dist/{mi-card_2.entry-b3cae653.mjs → mi-card_2.entry-50ad757c.mjs} +1 -1
- package/dist/{mi-chip.entry-c6e8dfda.mjs → mi-chip.entry-35cbf24e.mjs} +1 -1
- package/dist/{mi-chip.entry-a420c55c.mjs → mi-chip.entry-ecfbf5a3.mjs} +1 -1
- package/dist/{mi-column.entry-5200d1f6.mjs → mi-column.entry-4ca73dff.mjs} +1 -1
- package/dist/{mi-column.entry-c1afada2.mjs → mi-column.entry-528331d0.mjs} +1 -1
- package/dist/{mi-combo-box.entry-c8c842b6.mjs → mi-combo-box.entry-c4d38755.mjs} +1 -1
- package/dist/{mi-combo-box.entry-ccddcd3e.mjs → mi-combo-box.entry-d28dfefd.mjs} +1 -1
- package/dist/{mi-data-table.entry-e0fa53db.mjs → mi-data-table.entry-4a5c6b59.mjs} +1 -1
- package/dist/{mi-data-table.entry-1a3da6c8.mjs → mi-data-table.entry-f75d6c95.mjs} +1 -1
- package/dist/{mi-distance_2.entry-fda0b47c.mjs → mi-distance_2.entry-054e576b.mjs} +1 -1
- package/dist/{mi-distance_2.entry-6fd1425f.mjs → mi-distance_2.entry-20223924.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-4d659dbf.mjs → mi-dropdown-item.entry-29b133de.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-8534b3e9.mjs → mi-dropdown-item.entry-64fa259f.mjs} +1 -1
- package/dist/{mi-dropdown.entry-7a129220.mjs → mi-dropdown.entry-c45b26bc.mjs} +1 -1
- package/dist/{mi-dropdown.entry-1ea98a50.mjs → mi-dropdown.entry-ff5b449a.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-a6a1a59b.mjs → mi-floor-selector.entry-743d69d3.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-c2dd39b8.mjs → mi-floor-selector.entry-d1c4e970.mjs} +1 -1
- package/dist/{mi-keyboard.entry-21ad76e3.mjs → mi-keyboard.entry-94fd2bb2.mjs} +1 -1
- package/dist/{mi-keyboard.entry-3ff05804.mjs → mi-keyboard.entry-b5db1fea.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-acb3a4e6.mjs → mi-list-item-category.entry-0838c9d6.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-1a7d378a.mjs → mi-list-item-category.entry-fa4f755f.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-66de0f61.mjs → mi-list-item-location.entry-c9128206.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-4541e6b0.mjs → mi-list-item-location.entry-f7494c9c.mjs} +1 -1
- package/dist/{mi-list.entry-0a5883c0.mjs → mi-list.entry-bdeb8b42.mjs} +1 -1
- package/dist/{mi-list.entry-49686cb4.mjs → mi-list.entry-f6c4d013.mjs} +1 -1
- package/dist/{mi-location-booking.entry-fbb21d88.mjs → mi-location-booking.entry-15eeb862.mjs} +1 -1
- package/dist/{mi-location-booking.entry-447ed30f.mjs → mi-location-booking.entry-6c78c991.mjs} +1 -1
- package/dist/{mi-location-info.entry-1e179751.mjs → mi-location-info.entry-3baf42a6.mjs} +1 -1
- package/dist/{mi-location-info.entry-76a928d0.mjs → mi-location-info.entry-92c06835.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-82d5c9f4.mjs → mi-map-googlemaps.entry-82a93a0a.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-2d0dafa9.mjs → mi-map-googlemaps.entry-e6d04e46.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-c251cd7f.mjs → mi-map-mapbox.entry-77b461b2.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-7ff6abbb.mjs → mi-map-mapbox.entry-e95960ff.mjs} +1 -1
- package/dist/{mi-metric-card.entry-582fbaa9.mjs → mi-metric-card.entry-2cd3f434.mjs} +1 -1
- package/dist/{mi-metric-card.entry-a1083af0.mjs → mi-metric-card.entry-66e5521e.mjs} +1 -1
- package/dist/{mi-my-position.entry-cb79266c.mjs → mi-my-position.entry-6e028369.mjs} +1 -1
- package/dist/{mi-my-position.entry-45dff65a.mjs → mi-my-position.entry-bb7cf823.mjs} +1 -1
- package/dist/{mi-notification.entry-cfeb1dde.mjs → mi-notification.entry-fb345fd2.mjs} +1 -1
- package/dist/{mi-notification.entry-502af68b.mjs → mi-notification.entry-fcbd36ee.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-d59618f0.mjs → mi-route-instructions-heading.entry-3d1ae21a.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-79ab86df.mjs → mi-route-instructions-heading.entry-ac5924f4.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-59cf8ab1.mjs → mi-route-instructions-maneuver-legacy.entry-13411b11.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-8a4e4a5f.mjs → mi-route-instructions-maneuver-legacy.entry-aa875c11.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-49aa250a.mjs → mi-route-instructions-maneuver.entry-9a28083f.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-3982d45a.mjs → mi-route-instructions-maneuver.entry-9f34c4ca.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-fc17f947.mjs → mi-route-instructions-step-legacy.entry-37b02d29.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-c7d4c75d.mjs → mi-route-instructions-step-legacy.entry-b3ee15cf.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-3a05e2f2.mjs → mi-route-instructions-step.entry-be05ecbb.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-b6001884.mjs → mi-route-instructions-step.entry-fc2176ad.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-61376d64.mjs → mi-route-instructions.entry-27fb474f.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-f7474ade.mjs → mi-route-instructions.entry-d4431909.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-973345e4.mjs → mi-scroll-buttons.entry-1856d347.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-68a2990a.mjs → mi-scroll-buttons.entry-776ae40a.mjs} +1 -1
- package/dist/{mi-search.entry-0617eb4a.mjs → mi-search.entry-0c045767.mjs} +1 -1
- package/dist/{mi-search.entry-62930342.mjs → mi-search.entry-a8a4c275.mjs} +1 -1
- package/dist/{mi-share-sms.entry-41f6a2de.mjs → mi-share-sms.entry-929afd98.mjs} +1 -1
- package/dist/{mi-share-sms.entry-47a67d3a.mjs → mi-share-sms.entry-e263ab8d.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-9f9ca195.mjs → mi-step-switcher.entry-d2f40e47.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-74ff6694.mjs → mi-step-switcher.entry-feed62c1.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-48dd4dc5.mjs → mi-tab-panel.entry-a35fff95.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-fcb462fa.mjs → mi-tab-panel.entry-c82517c0.mjs} +1 -1
- package/dist/{mi-tab.entry-1e38461e.mjs → mi-tab.entry-5f4b88b6.mjs} +1 -1
- package/dist/{mi-tab.entry-cd6c7e32.mjs → mi-tab.entry-60378f56.mjs} +1 -1
- package/dist/{mi-tabs.entry-b59c57d9.mjs → mi-tabs.entry-7670351a.mjs} +1 -1
- package/dist/{mi-tabs.entry-50fd9e9c.mjs → mi-tabs.entry-bc99bad9.mjs} +1 -1
- package/dist/{mi-time.entry-e0bac6a6.mjs → mi-time.entry-05acc1aa.mjs} +1 -1
- package/dist/{mi-time.entry-ee167fd1.mjs → mi-time.entry-81184ad7.mjs} +1 -1
- package/dist/{reactcomponent-74fb79b5.mjs → reactcomponent-6ef5b30c.mjs} +685 -685
- package/dist/{webcomponent-4e32af2f.mjs → webcomponent-93f0c2dc.mjs} +577 -577
- package/package.json +1 -1
|
@@ -22,14 +22,14 @@ function aw() {
|
|
|
22
22
|
xy = 1;
|
|
23
23
|
var m = Ni, g = Symbol.for("react.element"), x = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, S = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, D = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
24
24
|
function B(o, P, G) {
|
|
25
|
-
var te, ee = {},
|
|
26
|
-
G !== void 0 && (
|
|
25
|
+
var te, ee = {}, ue = null, we = null;
|
|
26
|
+
G !== void 0 && (ue = "" + G), P.key !== void 0 && (ue = "" + P.key), P.ref !== void 0 && (we = P.ref);
|
|
27
27
|
for (te in P)
|
|
28
28
|
b.call(P, te) && !D.hasOwnProperty(te) && (ee[te] = P[te]);
|
|
29
29
|
if (o && o.defaultProps)
|
|
30
30
|
for (te in P = o.defaultProps, P)
|
|
31
31
|
ee[te] === void 0 && (ee[te] = P[te]);
|
|
32
|
-
return { $$typeof: g, type: o, key:
|
|
32
|
+
return { $$typeof: g, type: o, key: ue, ref: we, props: ee, _owner: S.current };
|
|
33
33
|
}
|
|
34
34
|
return hu.Fragment = x, hu.jsx = B, hu.jsxs = B, hu;
|
|
35
35
|
}
|
|
@@ -46,8 +46,8 @@ var du = {};
|
|
|
46
46
|
var by;
|
|
47
47
|
function lw() {
|
|
48
48
|
return by || (by = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var m = Ni, g = Symbol.for("react.element"), x = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), o = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"),
|
|
50
|
-
function
|
|
49
|
+
var m = Ni, g = Symbol.for("react.element"), x = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), o = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), ue = Symbol.for("react.lazy"), we = Symbol.for("react.offscreen"), Ee = Symbol.iterator, Ie = "@@iterator";
|
|
50
|
+
function st(F) {
|
|
51
51
|
if (F === null || typeof F != "object")
|
|
52
52
|
return null;
|
|
53
53
|
var X = Ee && F[Ee] || F[Ie];
|
|
@@ -71,14 +71,14 @@ function lw() {
|
|
|
71
71
|
Fe.unshift("Warning: " + X), Function.prototype.apply.call(console[F], console, Fe);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
var vt = !1,
|
|
75
|
-
|
|
74
|
+
var vt = !1, ce = !1, It = !1, Ft = !1, zt = !1, We;
|
|
75
|
+
We = Symbol.for("react.module.reference");
|
|
76
76
|
function ut(F) {
|
|
77
|
-
return !!(typeof F == "string" || typeof F == "function" || F === b || F === D || zt || F === S || F === G || F === te || Ft || F === we || vt ||
|
|
77
|
+
return !!(typeof F == "string" || typeof F == "function" || F === b || F === D || zt || F === S || F === G || F === te || Ft || F === we || vt || ce || It || typeof F == "object" && F !== null && (F.$$typeof === ue || F.$$typeof === ee || F.$$typeof === B || F.$$typeof === o || F.$$typeof === P || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
81
|
-
F.$$typeof ===
|
|
81
|
+
F.$$typeof === We || F.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
83
|
function Kt(F, X, se) {
|
|
84
84
|
var Ce = F.displayName;
|
|
@@ -124,7 +124,7 @@ function lw() {
|
|
|
124
124
|
case ee:
|
|
125
125
|
var Ce = F.displayName || null;
|
|
126
126
|
return Ce !== null ? Ce : Wt(F.type) || "Memo";
|
|
127
|
-
case
|
|
127
|
+
case ue: {
|
|
128
128
|
var Ke = F, Fe = Ke._payload, ft = Ke._init;
|
|
129
129
|
try {
|
|
130
130
|
return Wt(ft(Fe));
|
|
@@ -135,14 +135,14 @@ function lw() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var Ht = Object.assign, Nt = 0, Mi, Ii, Vi, sn, Be,
|
|
138
|
+
var Ht = Object.assign, Nt = 0, Mi, Ii, Vi, sn, Be, rt, ge;
|
|
139
139
|
function Ne() {
|
|
140
140
|
}
|
|
141
141
|
Ne.__reactDisabledLog = !0;
|
|
142
142
|
function Ge() {
|
|
143
143
|
{
|
|
144
144
|
if (Nt === 0) {
|
|
145
|
-
Mi = console.log, Ii = console.info, Vi = console.warn, sn = console.error, Be = console.group,
|
|
145
|
+
Mi = console.log, Ii = console.info, Vi = console.warn, sn = console.error, Be = console.group, rt = console.groupCollapsed, ge = console.groupEnd;
|
|
146
146
|
var F = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
@@ -187,7 +187,7 @@ function lw() {
|
|
|
187
187
|
value: Be
|
|
188
188
|
}),
|
|
189
189
|
groupCollapsed: Ht({}, F, {
|
|
190
|
-
value:
|
|
190
|
+
value: rt
|
|
191
191
|
}),
|
|
192
192
|
groupEnd: Ht({}, F, {
|
|
193
193
|
value: ge
|
|
@@ -313,7 +313,7 @@ function lw() {
|
|
|
313
313
|
return ni(F.render);
|
|
314
314
|
case ee:
|
|
315
315
|
return Fi(F.type, X, se);
|
|
316
|
-
case
|
|
316
|
+
case ue: {
|
|
317
317
|
var Ce = F, Ke = Ce._payload, Fe = Ce._init;
|
|
318
318
|
try {
|
|
319
319
|
return Fi(Fe(Ke), X, se);
|
|
@@ -546,7 +546,7 @@ Check the top-level render call using <` + se + ">.");
|
|
|
546
546
|
else if (ei(F))
|
|
547
547
|
F._store && (F._store.validated = !0);
|
|
548
548
|
else if (F) {
|
|
549
|
-
var Ke =
|
|
549
|
+
var Ke = st(F);
|
|
550
550
|
if (typeof Ke == "function" && Ke !== F.entries)
|
|
551
551
|
for (var Fe = Ke.call(F), ft; !(ft = Fe.next()).done; )
|
|
552
552
|
ei(ft.value) && dn(ft.value, X);
|
|
@@ -1114,7 +1114,7 @@ var t2 = e2(function(m) {
|
|
|
1114
1114
|
return lt;
|
|
1115
1115
|
}, ee = function(be) {
|
|
1116
1116
|
return be -= be >> 1 & 1431655765, be = (be & 858993459) + (be >> 2 & 858993459), be = be + (be >> 4) & 252645135, be += be >> 8, be += be >> 16, be & 127;
|
|
1117
|
-
},
|
|
1117
|
+
}, ue = function(be, lt) {
|
|
1118
1118
|
return lt >>> be & D;
|
|
1119
1119
|
}, we = function(be) {
|
|
1120
1120
|
return 1 << be;
|
|
@@ -1129,7 +1129,7 @@ var t2 = e2(function(m) {
|
|
|
1129
1129
|
Dt[Xt] = wt[Xt];
|
|
1130
1130
|
}
|
|
1131
1131
|
return Dt[lt] = bt, Dt;
|
|
1132
|
-
},
|
|
1132
|
+
}, st = function(be, lt, bt) {
|
|
1133
1133
|
var wt = bt.length - 1, Dt = 0, Ut = 0, Xt = bt;
|
|
1134
1134
|
if (be)
|
|
1135
1135
|
Dt = Ut = lt;
|
|
@@ -1151,7 +1151,7 @@ var t2 = e2(function(m) {
|
|
|
1151
1151
|
for (oi[lt] = bt; Xt < Dt; )
|
|
1152
1152
|
oi[++ei] = wt[Xt++];
|
|
1153
1153
|
return oi;
|
|
1154
|
-
}, Xe = 1, dt = 2, vt = 3,
|
|
1154
|
+
}, Xe = 1, dt = 2, vt = 3, ce = 4, It = {
|
|
1155
1155
|
__hamt_isEmpty: !0
|
|
1156
1156
|
}, Ft = function(be) {
|
|
1157
1157
|
return be === It || be && be.__hamt_isEmpty;
|
|
@@ -1164,7 +1164,7 @@ var t2 = e2(function(m) {
|
|
|
1164
1164
|
value: wt,
|
|
1165
1165
|
_modify: Vi
|
|
1166
1166
|
};
|
|
1167
|
-
},
|
|
1167
|
+
}, We = function(be, lt, bt) {
|
|
1168
1168
|
return {
|
|
1169
1169
|
type: dt,
|
|
1170
1170
|
edit: be,
|
|
@@ -1182,11 +1182,11 @@ var t2 = e2(function(m) {
|
|
|
1182
1182
|
};
|
|
1183
1183
|
}, Kt = function(be, lt, bt) {
|
|
1184
1184
|
return {
|
|
1185
|
-
type:
|
|
1185
|
+
type: ce,
|
|
1186
1186
|
edit: be,
|
|
1187
1187
|
size: lt,
|
|
1188
1188
|
children: bt,
|
|
1189
|
-
_modify:
|
|
1189
|
+
_modify: rt
|
|
1190
1190
|
};
|
|
1191
1191
|
}, Bt = function(be) {
|
|
1192
1192
|
return be === It || be.type === Xe || be.type === dt;
|
|
@@ -1203,15 +1203,15 @@ var t2 = e2(function(m) {
|
|
|
1203
1203
|
return ut(be, Xt, Dt);
|
|
1204
1204
|
}, Nt = function Re(be, lt, bt, wt, Dt, Ut) {
|
|
1205
1205
|
if (bt === Dt)
|
|
1206
|
-
return
|
|
1207
|
-
var Xt =
|
|
1206
|
+
return We(be, bt, [Ut, wt]);
|
|
1207
|
+
var Xt = ue(lt, bt), ei = ue(lt, Dt);
|
|
1208
1208
|
return ut(be, we(Xt) | we(ei), Xt === ei ? [Re(be, lt + b, bt, wt, Dt, Ut)] : Xt < ei ? [wt, Ut] : [Ut, wt]);
|
|
1209
1209
|
}, Mi = function(be, lt, bt, wt, Dt, Ut, Xt, ei) {
|
|
1210
1210
|
for (var oi = Dt.length, Ri = 0; Ri < oi; ++Ri) {
|
|
1211
1211
|
var hn = Dt[Ri];
|
|
1212
1212
|
if (bt(Xt, hn.key)) {
|
|
1213
1213
|
var Pi = hn.value, dn = Ut(Pi);
|
|
1214
|
-
return dn === Pi ? Dt : dn === P ? (--ei.value,
|
|
1214
|
+
return dn === Pi ? Dt : dn === P ? (--ei.value, st(be, Ri, Dt)) : Ie(be, Ri, zt(lt, wt, Xt, dn), Dt);
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
var Sn = Ut();
|
|
@@ -1228,12 +1228,12 @@ var t2 = e2(function(m) {
|
|
|
1228
1228
|
}, sn = function(be, lt, bt, wt, Dt, Ut, Xt) {
|
|
1229
1229
|
if (Dt === this.hash) {
|
|
1230
1230
|
var ei = Ii(be, this), oi = Mi(ei, be, lt, this.hash, this.children, wt, Ut, Xt);
|
|
1231
|
-
return oi === this.children ? this : oi.length > 1 ?
|
|
1231
|
+
return oi === this.children ? this : oi.length > 1 ? We(be, this.hash, oi) : oi[0];
|
|
1232
1232
|
}
|
|
1233
1233
|
var Ri = wt();
|
|
1234
1234
|
return Ri === P ? this : (++Xt.value, Nt(be, bt, this.hash, this, Dt, zt(be, Dt, Ut, Ri)));
|
|
1235
1235
|
}, Be = function(be, lt, bt, wt, Dt, Ut, Xt) {
|
|
1236
|
-
var ei = this.mask, oi = this.children, Ri =
|
|
1236
|
+
var ei = this.mask, oi = this.children, Ri = ue(bt, Dt), hn = we(Ri), Pi = Ee(ei, hn), dn = ei & hn, Sn = dn ? oi[Pi] : It, Y = Sn._modify(be, lt, bt + b, wt, Dt, Ut, Xt);
|
|
1237
1237
|
if (Sn === Y)
|
|
1238
1238
|
return this;
|
|
1239
1239
|
var k = Ii(be, this), N = ei, W = void 0;
|
|
@@ -1242,7 +1242,7 @@ var t2 = e2(function(m) {
|
|
|
1242
1242
|
return It;
|
|
1243
1243
|
if (oi.length <= 2 && Bt(oi[Pi ^ 1]))
|
|
1244
1244
|
return oi[Pi ^ 1];
|
|
1245
|
-
W =
|
|
1245
|
+
W = st(k, Pi, oi);
|
|
1246
1246
|
} else if (!dn && !Ft(Y)) {
|
|
1247
1247
|
if (oi.length >= B)
|
|
1248
1248
|
return Wt(be, Ri, Y, ei, oi);
|
|
@@ -1250,8 +1250,8 @@ var t2 = e2(function(m) {
|
|
|
1250
1250
|
} else
|
|
1251
1251
|
W = Ie(k, Pi, Y, oi);
|
|
1252
1252
|
return k ? (this.mask = N, this.children = W, this) : ut(be, N, W);
|
|
1253
|
-
},
|
|
1254
|
-
var ei = this.size, oi = this.children, Ri =
|
|
1253
|
+
}, rt = function(be, lt, bt, wt, Dt, Ut, Xt) {
|
|
1254
|
+
var ei = this.size, oi = this.children, Ri = ue(bt, Dt), hn = oi[Ri], Pi = (hn || It)._modify(be, lt, bt + b, wt, Dt, Ut, Xt);
|
|
1255
1255
|
if (hn === Pi)
|
|
1256
1256
|
return this;
|
|
1257
1257
|
var dn = Ii(be, this), Sn = void 0;
|
|
@@ -1290,15 +1290,15 @@ var t2 = e2(function(m) {
|
|
|
1290
1290
|
return Re;
|
|
1291
1291
|
}
|
|
1292
1292
|
case vt: {
|
|
1293
|
-
var hn =
|
|
1293
|
+
var hn = ue(Dt, be), Pi = we(hn);
|
|
1294
1294
|
if (wt.mask & Pi) {
|
|
1295
1295
|
wt = wt.children[Ee(wt.mask, Pi)], Dt += b;
|
|
1296
1296
|
break;
|
|
1297
1297
|
}
|
|
1298
1298
|
return Re;
|
|
1299
1299
|
}
|
|
1300
|
-
case
|
|
1301
|
-
if (wt = wt.children[
|
|
1300
|
+
case ce: {
|
|
1301
|
+
if (wt = wt.children[ue(Dt, be)], wt) {
|
|
1302
1302
|
Dt += b;
|
|
1303
1303
|
break;
|
|
1304
1304
|
}
|
|
@@ -1429,7 +1429,7 @@ var t2 = e2(function(m) {
|
|
|
1429
1429
|
rest: bt
|
|
1430
1430
|
};
|
|
1431
1431
|
case dt:
|
|
1432
|
-
case
|
|
1432
|
+
case ce:
|
|
1433
1433
|
case vt:
|
|
1434
1434
|
var wt = be.children;
|
|
1435
1435
|
return kn(wt.length, wt, 0, lt, bt);
|
|
@@ -1647,8 +1647,8 @@ function u2(m, g, x, b) {
|
|
|
1647
1647
|
var te;
|
|
1648
1648
|
const ee = (te = P.nextTree) === null || te === void 0 ? void 0 : te.version;
|
|
1649
1649
|
if (ee !== void 0) {
|
|
1650
|
-
const
|
|
1651
|
-
If(m, g,
|
|
1650
|
+
const ue = x.getGraph(ee);
|
|
1651
|
+
If(m, g, ue, G);
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
@@ -2181,24 +2181,24 @@ function dT(m, g) {
|
|
|
2181
2181
|
B.add(Ee);
|
|
2182
2182
|
continue;
|
|
2183
2183
|
}
|
|
2184
|
-
if (K0(Ee).some((
|
|
2184
|
+
if (K0(Ee).some((st) => x.retention.referenceCounts.get(st))) {
|
|
2185
2185
|
B.add(Ee);
|
|
2186
2186
|
continue;
|
|
2187
2187
|
}
|
|
2188
2188
|
const Ie = S.nodeToNodeSubscriptions.get(Ee);
|
|
2189
|
-
if (Ie && lT(Ie, (
|
|
2189
|
+
if (Ie && lT(Ie, (st) => B.has(st))) {
|
|
2190
2190
|
B.add(Ee);
|
|
2191
2191
|
continue;
|
|
2192
2192
|
}
|
|
2193
2193
|
D.add(Ee), G.add(Ee);
|
|
2194
2194
|
}
|
|
2195
|
-
const
|
|
2195
|
+
const ue = /* @__PURE__ */ new Set();
|
|
2196
2196
|
for (const Ee of G)
|
|
2197
2197
|
for (const Ie of (we = S.nodeDeps.get(Ee)) !== null && we !== void 0 ? we : X0) {
|
|
2198
2198
|
var we;
|
|
2199
|
-
D.has(Ie) ||
|
|
2199
|
+
D.has(Ie) || ue.add(Ie);
|
|
2200
2200
|
}
|
|
2201
|
-
|
|
2201
|
+
ue.size && o(ue);
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
function pT(m, g, x, b, S) {
|
|
@@ -2782,10 +2782,10 @@ function SE({
|
|
|
2782
2782
|
if (Ee == null) {
|
|
2783
2783
|
const {
|
|
2784
2784
|
transactionSubscriptions: Ie
|
|
2785
|
-
} = ee.current.getState(),
|
|
2786
|
-
return Ie.set(
|
|
2785
|
+
} = ee.current.getState(), st = Ly++;
|
|
2786
|
+
return Ie.set(st, we), {
|
|
2787
2787
|
release: () => {
|
|
2788
|
-
Ie.delete(
|
|
2788
|
+
Ie.delete(st);
|
|
2789
2789
|
}
|
|
2790
2790
|
};
|
|
2791
2791
|
} else {
|
|
@@ -2793,11 +2793,11 @@ function SE({
|
|
|
2793
2793
|
nodeTransactionSubscriptions: Ie
|
|
2794
2794
|
} = ee.current.getState();
|
|
2795
2795
|
Ie.has(Ee) || Ie.set(Ee, /* @__PURE__ */ new Map());
|
|
2796
|
-
const
|
|
2797
|
-
return xn(Ie.get(Ee)).set(
|
|
2796
|
+
const st = Ly++;
|
|
2797
|
+
return xn(Ie.get(Ee)).set(st, we), {
|
|
2798
2798
|
release: () => {
|
|
2799
2799
|
const Mt = Ie.get(Ee);
|
|
2800
|
-
Mt && (Mt.delete(
|
|
2800
|
+
Mt && (Mt.delete(st), Mt.size === 0 && Ie.delete(Ee));
|
|
2801
2801
|
}
|
|
2802
2802
|
};
|
|
2803
2803
|
}
|
|
@@ -2826,7 +2826,7 @@ function SE({
|
|
|
2826
2826
|
addTransactionMetadata: o
|
|
2827
2827
|
});
|
|
2828
2828
|
x != null && (ee.current = x), S = Ry(() => m != null ? TE(ee.current, m) : g != null ? EE(g) : n1());
|
|
2829
|
-
const
|
|
2829
|
+
const ue = gE(() => Rf == null ? void 0 : Rf(S, () => S.current.currentTree.version), [S]);
|
|
2830
2830
|
return Xf(() => {
|
|
2831
2831
|
const we = ee.current;
|
|
2832
2832
|
for (const Ee of new Set(we.getState().knownAtoms))
|
|
@@ -2838,7 +2838,7 @@ function SE({
|
|
|
2838
2838
|
}, [ee]), /* @__PURE__ */ Ni.createElement(c1.Provider, {
|
|
2839
2839
|
value: ee
|
|
2840
2840
|
}, /* @__PURE__ */ Ni.createElement(u1.Provider, {
|
|
2841
|
-
value:
|
|
2841
|
+
value: ue
|
|
2842
2842
|
}, /* @__PURE__ */ Ni.createElement(wE, {
|
|
2843
2843
|
setNotifyBatcherOfChange: te
|
|
2844
2844
|
}), b));
|
|
@@ -2998,7 +2998,7 @@ function YE() {
|
|
|
2998
2998
|
Nd(`Double subscription to RecoilValue "${G}"`);
|
|
2999
2999
|
return;
|
|
3000
3000
|
}
|
|
3001
|
-
const te = Fl(P, new Kf(G), (
|
|
3001
|
+
const te = Fl(P, new Kf(G), (ue) => o(ue, G), m);
|
|
3002
3002
|
D.current.set(G, te), P.getState().nextTree ? P.getState().queuedComponentCallbacks_DEPRECATED.push(() => {
|
|
3003
3003
|
o(P.getState(), G);
|
|
3004
3004
|
}) : o(P.getState(), G);
|
|
@@ -3023,15 +3023,15 @@ function YE() {
|
|
|
3023
3023
|
function te(Ee) {
|
|
3024
3024
|
var Ie;
|
|
3025
3025
|
process.env.NODE_ENV !== "production" && hr(Ee, "useRecoilValueLoadable"), b.current.has(Ee.key) || (b.current = HE(b.current, Ee.key));
|
|
3026
|
-
const
|
|
3027
|
-
return Du(g.current, Ee, Ca().early && (Ie =
|
|
3026
|
+
const st = g.current.getState();
|
|
3027
|
+
return Du(g.current, Ee, Ca().early && (Ie = st.nextTree) !== null && Ie !== void 0 ? Ie : st.currentTree);
|
|
3028
3028
|
}
|
|
3029
3029
|
function ee(Ee) {
|
|
3030
3030
|
process.env.NODE_ENV !== "production" && hr(Ee, "useRecoilValue");
|
|
3031
3031
|
const Ie = te(Ee);
|
|
3032
3032
|
return Am(Ie, Ee, g);
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function ue(Ee) {
|
|
3035
3035
|
return process.env.NODE_ENV !== "production" && hr(Ee, "useRecoilState"), [ee(Ee), P(Ee)];
|
|
3036
3036
|
}
|
|
3037
3037
|
function we(Ee) {
|
|
@@ -3040,7 +3040,7 @@ function YE() {
|
|
|
3040
3040
|
return {
|
|
3041
3041
|
getRecoilValue: ee,
|
|
3042
3042
|
getRecoilValueLoadable: te,
|
|
3043
|
-
getRecoilState:
|
|
3043
|
+
getRecoilState: ue,
|
|
3044
3044
|
getRecoilStateLoadable: we,
|
|
3045
3045
|
getSetRecoilState: P,
|
|
3046
3046
|
getResetRecoilState: G
|
|
@@ -3081,8 +3081,8 @@ function KE(m) {
|
|
|
3081
3081
|
function JE(m) {
|
|
3082
3082
|
const g = Ro(), x = Er(() => {
|
|
3083
3083
|
var G;
|
|
3084
|
-
const te = g.current, ee = te.getState(),
|
|
3085
|
-
return Du(te, m,
|
|
3084
|
+
const te = g.current, ee = te.getState(), ue = Ca().early && (G = ee.nextTree) !== null && G !== void 0 ? G : ee.currentTree;
|
|
3085
|
+
return Du(te, m, ue);
|
|
3086
3086
|
}, [g, m]), b = Er(() => (process.env.NODE_ENV !== "production" && Lu.current++, x()), [x]), S = Ru(), D = Er((G, te) => {
|
|
3087
3087
|
const ee = g.current;
|
|
3088
3088
|
return Fl(ee, m, () => {
|
|
@@ -3132,11 +3132,11 @@ function QE(m) {
|
|
|
3132
3132
|
B.current = D;
|
|
3133
3133
|
}), Ul(() => {
|
|
3134
3134
|
const o = g.current, P = o.getState(), G = Fl(o, m, (ee) => {
|
|
3135
|
-
var
|
|
3135
|
+
var ue;
|
|
3136
3136
|
if (!un("recoil_suppress_rerender_in_callback"))
|
|
3137
3137
|
return x([]);
|
|
3138
3138
|
const we = S();
|
|
3139
|
-
(
|
|
3139
|
+
(ue = B.current) !== null && ue !== void 0 && ue.is(we) || x(we), B.current = we;
|
|
3140
3140
|
}, b);
|
|
3141
3141
|
if (P.nextTree)
|
|
3142
3142
|
o.getState().queuedComponentCallbacks_DEPRECATED.push(() => {
|
|
@@ -3290,11 +3290,11 @@ function vS(m) {
|
|
|
3290
3290
|
const b = g.getState().currentTree;
|
|
3291
3291
|
x || (Yn("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"), x = g.getState().currentTree);
|
|
3292
3292
|
const S = Oy(b), D = Oy(x), B = Md(fS, (P) => {
|
|
3293
|
-
var G, te, ee,
|
|
3293
|
+
var G, te, ee, ue;
|
|
3294
3294
|
return {
|
|
3295
3295
|
persistence_UNSTABLE: {
|
|
3296
3296
|
type: (G = (te = P.persistence_UNSTABLE) === null || te === void 0 ? void 0 : te.type) !== null && G !== void 0 ? G : "none",
|
|
3297
|
-
backButton: (ee = (
|
|
3297
|
+
backButton: (ee = (ue = P.persistence_UNSTABLE) === null || ue === void 0 ? void 0 : ue.backButton) !== null && ee !== void 0 ? ee : !1
|
|
3298
3298
|
}
|
|
3299
3299
|
};
|
|
3300
3300
|
}), o = cS(b.dirtyAtoms, (P) => S.has(P) || D.has(P));
|
|
@@ -3631,21 +3631,21 @@ class gA {
|
|
|
3631
3631
|
const S = () => {
|
|
3632
3632
|
var D, B, o, P;
|
|
3633
3633
|
let G, te;
|
|
3634
|
-
for (const [
|
|
3635
|
-
var ee,
|
|
3634
|
+
for (const [st, Mt] of g) {
|
|
3635
|
+
var ee, ue, we;
|
|
3636
3636
|
const Xe = this._root;
|
|
3637
3637
|
if ((Xe == null ? void 0 : Xe.type) === "leaf")
|
|
3638
3638
|
throw this.invalidCacheError();
|
|
3639
3639
|
const dt = G;
|
|
3640
3640
|
if (G = dt ? dt.branches.get(te) : Xe, G = (ee = G) !== null && ee !== void 0 ? ee : {
|
|
3641
3641
|
type: "branch",
|
|
3642
|
-
nodeKey:
|
|
3642
|
+
nodeKey: st,
|
|
3643
3643
|
parent: dt,
|
|
3644
3644
|
branches: /* @__PURE__ */ new Map(),
|
|
3645
3645
|
branchKey: te
|
|
3646
|
-
}, G.type !== "branch" || G.nodeKey !==
|
|
3646
|
+
}, G.type !== "branch" || G.nodeKey !== st)
|
|
3647
3647
|
throw this.invalidCacheError();
|
|
3648
|
-
dt == null || dt.branches.set(te, G), b == null || (
|
|
3648
|
+
dt == null || dt.branches.set(te, G), b == null || (ue = b.onNodeVisit) === null || ue === void 0 || ue.call(b, G), te = this._mapNodeValue(Mt), this._root = (we = this._root) !== null && we !== void 0 ? we : G;
|
|
3649
3649
|
}
|
|
3650
3650
|
const Ee = G ? (D = G) === null || D === void 0 ? void 0 : D.branches.get(te) : this._root;
|
|
3651
3651
|
if (Ee != null && (Ee.type !== "leaf" || Ee.branchKey !== te))
|
|
@@ -3986,7 +3986,7 @@ function L1(m) {
|
|
|
3986
3986
|
function ee() {
|
|
3987
3987
|
return !un("recoil_memory_managament_2020") || te > 0;
|
|
3988
3988
|
}
|
|
3989
|
-
function
|
|
3989
|
+
function ue(ge) {
|
|
3990
3990
|
return ge.getState().knownSelectors.add(x), te++, () => {
|
|
3991
3991
|
te--;
|
|
3992
3992
|
};
|
|
@@ -4000,7 +4000,7 @@ function L1(m) {
|
|
|
4000
4000
|
function Ie(ge, Ne) {
|
|
4001
4001
|
Ht(ge, Ne) && Wt(ge), Mt(Ne, !0);
|
|
4002
4002
|
}
|
|
4003
|
-
function
|
|
4003
|
+
function st(ge, Ne) {
|
|
4004
4004
|
Ht(ge, Ne) && (xn(ut(ge)).stateVersions.clear(), Mt(Ne, !1));
|
|
4005
4005
|
}
|
|
4006
4006
|
function Mt(ge, Ne) {
|
|
@@ -4044,7 +4044,7 @@ function L1(m) {
|
|
|
4044
4044
|
throw at.contents;
|
|
4045
4045
|
}
|
|
4046
4046
|
if (!Ht(ge, Qe)) {
|
|
4047
|
-
const qe =
|
|
4047
|
+
const qe = We(ge, Ge);
|
|
4048
4048
|
if (qe != null)
|
|
4049
4049
|
return qe.loadingLoadable.contents;
|
|
4050
4050
|
}
|
|
@@ -4061,7 +4061,7 @@ function L1(m) {
|
|
|
4061
4061
|
throw Ee(ge, Ge, Qe, at, pt), gt;
|
|
4062
4062
|
});
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function ce(ge, Ne, Ge, pt) {
|
|
4065
4065
|
var Qe, ct, gt, at;
|
|
4066
4066
|
if (Ht(ge, pt) || Ne.version === ((Qe = ge.getState()) === null || Qe === void 0 || (ct = Qe.currentTree) === null || ct === void 0 ? void 0 : ct.version) || Ne.version === ((gt = ge.getState()) === null || gt === void 0 || (at = gt.nextTree) === null || at === void 0 ? void 0 : at.version)) {
|
|
4067
4067
|
var At, li, qe;
|
|
@@ -4085,7 +4085,7 @@ function L1(m) {
|
|
|
4085
4085
|
key: it
|
|
4086
4086
|
}) {
|
|
4087
4087
|
const jt = xd(ge, Ne, it);
|
|
4088
|
-
switch (ni.set(it, jt), Qe || (
|
|
4088
|
+
switch (ni.set(it, jt), Qe || (ce(ge, Ne, new Set(ni.keys()), Ge), st(ge, Ge)), jt.state) {
|
|
4089
4089
|
case "hasValue":
|
|
4090
4090
|
return jt.contents;
|
|
4091
4091
|
case "hasError":
|
|
@@ -4116,7 +4116,7 @@ function L1(m) {
|
|
|
4116
4116
|
} catch (it) {
|
|
4117
4117
|
at = it, cn(at) ? at = vt(ge, at, Ne, ni, Ge, qe).finally(gt) : (At = !0, gt());
|
|
4118
4118
|
}
|
|
4119
|
-
return At ? li = vd(at) : cn(at) ? li = jA(at) : li = Df(at), Qe = !1, Bt(ge, Ge, ni),
|
|
4119
|
+
return At ? li = vd(at) : cn(at) ? li = jA(at) : li = Df(at), Qe = !1, Bt(ge, Ge, ni), ce(ge, Ne, new Set(ni.keys()), Ge), [li, ni];
|
|
4120
4120
|
}
|
|
4121
4121
|
function Ft(ge, Ne) {
|
|
4122
4122
|
let Ge = Ne.atomValues.get(x);
|
|
@@ -4134,7 +4134,7 @@ function L1(m) {
|
|
|
4134
4134
|
}
|
|
4135
4135
|
if (Ge) {
|
|
4136
4136
|
var Qe;
|
|
4137
|
-
Ne.atomValues.set(x, Ge),
|
|
4137
|
+
Ne.atomValues.set(x, Ge), ce(ge, Ne, pt, (Qe = ut(ge)) === null || Qe === void 0 ? void 0 : Qe.executionID);
|
|
4138
4138
|
}
|
|
4139
4139
|
return Ge;
|
|
4140
4140
|
}
|
|
@@ -4142,7 +4142,7 @@ function L1(m) {
|
|
|
4142
4142
|
const Ge = Ft(ge, Ne);
|
|
4143
4143
|
if (Ge != null)
|
|
4144
4144
|
return Wt(ge), Ge;
|
|
4145
|
-
const pt =
|
|
4145
|
+
const pt = We(ge, Ne);
|
|
4146
4146
|
if (pt != null) {
|
|
4147
4147
|
var Qe;
|
|
4148
4148
|
return ((Qe = pt.loadingLoadable) === null || Qe === void 0 ? void 0 : Qe.state) === "loading" && Xe(ge, pt.executionID), pt.loadingLoadable;
|
|
@@ -4150,7 +4150,7 @@ function L1(m) {
|
|
|
4150
4150
|
const ct = JA(), [gt, at] = It(ge, Ne, ct);
|
|
4151
4151
|
return gt.state === "loading" ? (Kt(ge, ct, gt, at, Ne), Xe(ge, ct)) : (Wt(ge), Mi(Ne, gt, at)), gt;
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4153
|
+
function We(ge, Ne) {
|
|
4154
4154
|
const Ge = Q0([G.has(ge) ? [xn(G.get(ge))] : [], Fd(vm(G, ([Qe]) => Qe !== ge), ([, Qe]) => Qe)]);
|
|
4155
4155
|
function pt(Qe) {
|
|
4156
4156
|
for (const [ct, gt] of Qe)
|
|
@@ -4229,7 +4229,7 @@ function L1(m) {
|
|
|
4229
4229
|
function Be(ge) {
|
|
4230
4230
|
ge.atomValues.delete(x);
|
|
4231
4231
|
}
|
|
4232
|
-
function
|
|
4232
|
+
function rt(ge, Ne) {
|
|
4233
4233
|
g == null && (process.env.NODE_ENV !== "production" ? Ao(!1, "Recoil Value can never be null") : Ao(!1));
|
|
4234
4234
|
for (const pt of B) {
|
|
4235
4235
|
var Ge;
|
|
@@ -4284,9 +4284,9 @@ function L1(m) {
|
|
|
4284
4284
|
throw cn(li) ? fi("Recoil: Async selector sets are not currently supported.") : fi("Recoil: selector set should be a void function.");
|
|
4285
4285
|
return Qe = !0, ct;
|
|
4286
4286
|
},
|
|
4287
|
-
init:
|
|
4287
|
+
init: ue,
|
|
4288
4288
|
invalidate: Be,
|
|
4289
|
-
clearCache:
|
|
4289
|
+
clearCache: rt,
|
|
4290
4290
|
shouldDeleteConfigOnRelease: we,
|
|
4291
4291
|
dangerouslyAllowMutability: m.dangerouslyAllowMutability,
|
|
4292
4292
|
shouldRestoreFromSnapshots: !1,
|
|
@@ -4296,9 +4296,9 @@ function L1(m) {
|
|
|
4296
4296
|
nodeType: "selector",
|
|
4297
4297
|
peek: Vi,
|
|
4298
4298
|
get: sn,
|
|
4299
|
-
init:
|
|
4299
|
+
init: ue,
|
|
4300
4300
|
invalidate: Be,
|
|
4301
|
-
clearCache:
|
|
4301
|
+
clearCache: rt,
|
|
4302
4302
|
shouldDeleteConfigOnRelease: we,
|
|
4303
4303
|
dangerouslyAllowMutability: m.dangerouslyAllowMutability,
|
|
4304
4304
|
shouldRestoreFromSnapshots: !1,
|
|
@@ -4354,17 +4354,17 @@ function lC(m) {
|
|
|
4354
4354
|
return process.env.NODE_ENV !== "production" && m.dangerouslyAllowMutability !== !0 ? cn(Xe) ? Xe.then((dt) => (Qf(dt), dt)) : (Qf(Xe), Xe) : Xe;
|
|
4355
4355
|
}
|
|
4356
4356
|
function te(Xe, dt) {
|
|
4357
|
-
const vt = dt.then((
|
|
4357
|
+
const vt = dt.then((ce) => {
|
|
4358
4358
|
var It, Ft;
|
|
4359
|
-
return ((Ft = ((It = Xe.getState().nextTree) !== null && It !== void 0 ? It : Xe.getState().currentTree).atomValues.get(g)) === null || Ft === void 0 ? void 0 : Ft.contents) === vt && Vy(Xe, Mt,
|
|
4360
|
-
}).catch((
|
|
4359
|
+
return ((Ft = ((It = Xe.getState().nextTree) !== null && It !== void 0 ? It : Xe.getState().currentTree).atomValues.get(g)) === null || Ft === void 0 ? void 0 : Ft.contents) === vt && Vy(Xe, Mt, ce), ce;
|
|
4360
|
+
}).catch((ce) => {
|
|
4361
4361
|
var It, Ft;
|
|
4362
|
-
throw ((Ft = ((It = Xe.getState().nextTree) !== null && It !== void 0 ? It : Xe.getState().currentTree).atomValues.get(g)) === null || Ft === void 0 ? void 0 : Ft.contents) === vt && sC(Xe, Mt, Lf(
|
|
4362
|
+
throw ((Ft = ((It = Xe.getState().nextTree) !== null && It !== void 0 ? It : Xe.getState().currentTree).atomValues.get(g)) === null || Ft === void 0 ? void 0 : Ft.contents) === vt && sC(Xe, Mt, Lf(ce)), ce;
|
|
4363
4363
|
});
|
|
4364
4364
|
return vt;
|
|
4365
4365
|
}
|
|
4366
4366
|
function ee(Xe, dt, vt) {
|
|
4367
|
-
var
|
|
4367
|
+
var ce;
|
|
4368
4368
|
S++;
|
|
4369
4369
|
const It = () => {
|
|
4370
4370
|
var ut;
|
|
@@ -4377,60 +4377,60 @@ function lC(m) {
|
|
|
4377
4377
|
};
|
|
4378
4378
|
B.contents.finally(ut);
|
|
4379
4379
|
}
|
|
4380
|
-
const Ft = (
|
|
4380
|
+
const Ft = (ce = m.effects) !== null && ce !== void 0 ? ce : m.effects_UNSTABLE;
|
|
4381
4381
|
if (Ft != null) {
|
|
4382
4382
|
let Ht = function(Be) {
|
|
4383
4383
|
if (Kt && Be.key === g) {
|
|
4384
|
-
const
|
|
4385
|
-
return
|
|
4384
|
+
const rt = ut;
|
|
4385
|
+
return rt instanceof Es ? ue(Xe, dt) : cn(rt) ? kf(rt.then((ge) => ge instanceof Es ? (
|
|
4386
4386
|
// Cast T to S
|
|
4387
4387
|
B.toPromise()
|
|
4388
4388
|
) : ge)) : (
|
|
4389
4389
|
// $FlowFixMe[incompatible-call]
|
|
4390
|
-
Dl(
|
|
4390
|
+
Dl(rt)
|
|
4391
4391
|
);
|
|
4392
4392
|
}
|
|
4393
4393
|
return rC(Xe, Be);
|
|
4394
4394
|
}, Nt = function(Be) {
|
|
4395
4395
|
return Ht(Be).toPromise();
|
|
4396
4396
|
}, Mi = function(Be) {
|
|
4397
|
-
var
|
|
4398
|
-
const ge = eC(Xe, (
|
|
4397
|
+
var rt;
|
|
4398
|
+
const ge = eC(Xe, (rt = Xe.getState().nextTree) !== null && rt !== void 0 ? rt : Xe.getState().currentTree, Be.key);
|
|
4399
4399
|
return Kt && Be.key === g && !(ut instanceof Es) ? {
|
|
4400
4400
|
...ge,
|
|
4401
4401
|
isSet: !0,
|
|
4402
4402
|
loadable: Ht(Be)
|
|
4403
4403
|
} : ge;
|
|
4404
4404
|
}, ut = va, Kt = !0, Bt = !1, Wt = null;
|
|
4405
|
-
const Ii = (Be) => (
|
|
4405
|
+
const Ii = (Be) => (rt) => {
|
|
4406
4406
|
if (Kt) {
|
|
4407
4407
|
const ge = Ht(Mt), Ne = ge.state === "hasValue" ? ge.contents : va;
|
|
4408
|
-
ut = typeof
|
|
4408
|
+
ut = typeof rt == "function" ? (
|
|
4409
4409
|
// cast to any because we can't restrict T from being a function without losing support for opaque types
|
|
4410
|
-
|
|
4411
|
-
) :
|
|
4410
|
+
rt(Ne)
|
|
4411
|
+
) : rt, cn(ut) && (ut = ut.then((Ge) => (Wt = {
|
|
4412
4412
|
effect: Be,
|
|
4413
4413
|
value: Ge
|
|
4414
4414
|
}, Ge)));
|
|
4415
4415
|
} else {
|
|
4416
|
-
if (cn(
|
|
4416
|
+
if (cn(rt))
|
|
4417
4417
|
throw fi("Setting atoms to async values is not implemented.");
|
|
4418
|
-
typeof
|
|
4418
|
+
typeof rt != "function" && (Wt = {
|
|
4419
4419
|
effect: Be,
|
|
4420
|
-
value: gu(
|
|
4421
|
-
}), Vy(Xe, Mt, typeof
|
|
4420
|
+
value: gu(rt)
|
|
4421
|
+
}), Vy(Xe, Mt, typeof rt == "function" ? (ge) => {
|
|
4422
4422
|
const Ne = gu(
|
|
4423
4423
|
// cast to any because we can't restrict T from being a function without losing support for opaque types
|
|
4424
|
-
|
|
4424
|
+
rt(ge)
|
|
4425
4425
|
// flowlint-line unclear-type:off
|
|
4426
4426
|
);
|
|
4427
4427
|
return Wt = {
|
|
4428
4428
|
effect: Be,
|
|
4429
4429
|
value: Ne
|
|
4430
4430
|
}, Ne;
|
|
4431
|
-
} : gu(
|
|
4431
|
+
} : gu(rt));
|
|
4432
4432
|
}
|
|
4433
|
-
}, Vi = (Be) => () => Ii(Be)(va), sn = (Be) => (
|
|
4433
|
+
}, Vi = (Be) => () => Ii(Be)(va), sn = (Be) => (rt) => {
|
|
4434
4434
|
var ge;
|
|
4435
4435
|
const {
|
|
4436
4436
|
release: Ne
|
|
@@ -4445,14 +4445,14 @@ function lC(m) {
|
|
|
4445
4445
|
if (gt.state === "hasValue") {
|
|
4446
4446
|
var at, At, li, qe;
|
|
4447
4447
|
const ni = gt.contents, qt = (at = ct.atomValues.get(g)) !== null && at !== void 0 ? at : B, Fi = qt.state === "hasValue" ? qt.contents : va;
|
|
4448
|
-
((At = Wt) === null || At === void 0 ? void 0 : At.effect) !== Be || ((li = Wt) === null || li === void 0 ? void 0 : li.value) !== ni ?
|
|
4448
|
+
((At = Wt) === null || At === void 0 ? void 0 : At.effect) !== Be || ((li = Wt) === null || li === void 0 ? void 0 : li.value) !== ni ? rt(ni, Fi, !Qe.atomValues.has(g)) : ((qe = Wt) === null || qe === void 0 ? void 0 : qe.effect) === Be && (Wt = null);
|
|
4449
4449
|
}
|
|
4450
4450
|
}, g);
|
|
4451
4451
|
P.set(Xe, [...(ge = P.get(Xe)) !== null && ge !== void 0 ? ge : [], Ne]);
|
|
4452
4452
|
};
|
|
4453
4453
|
for (const Be of Ft)
|
|
4454
4454
|
try {
|
|
4455
|
-
const
|
|
4455
|
+
const rt = Be({
|
|
4456
4456
|
node: Mt,
|
|
4457
4457
|
storeID: Xe.storeID,
|
|
4458
4458
|
parentStoreID_UNSTABLE: Xe.parentStoreID,
|
|
@@ -4464,24 +4464,24 @@ function lC(m) {
|
|
|
4464
4464
|
getLoadable: Ht,
|
|
4465
4465
|
getInfo_UNSTABLE: Mi
|
|
4466
4466
|
});
|
|
4467
|
-
if (
|
|
4467
|
+
if (rt != null) {
|
|
4468
4468
|
var zt;
|
|
4469
|
-
P.set(Xe, [...(zt = P.get(Xe)) !== null && zt !== void 0 ? zt : [],
|
|
4469
|
+
P.set(Xe, [...(zt = P.get(Xe)) !== null && zt !== void 0 ? zt : [], rt]);
|
|
4470
4470
|
}
|
|
4471
|
-
} catch (
|
|
4472
|
-
ut =
|
|
4471
|
+
} catch (rt) {
|
|
4472
|
+
ut = rt, Bt = !0;
|
|
4473
4473
|
}
|
|
4474
4474
|
if (Kt = !1, !(ut instanceof Es)) {
|
|
4475
|
-
var
|
|
4475
|
+
var We;
|
|
4476
4476
|
const Be = Bt ? Lf(ut) : cn(ut) ? kf(te(Xe, ut)) : Dl(gu(ut));
|
|
4477
|
-
G(Be.contents), dt.atomValues.set(g, Be), (
|
|
4477
|
+
G(Be.contents), dt.atomValues.set(g, Be), (We = Xe.getState().nextTree) === null || We === void 0 || We.atomValues.set(g, Be);
|
|
4478
4478
|
}
|
|
4479
4479
|
}
|
|
4480
4480
|
return It;
|
|
4481
4481
|
}
|
|
4482
|
-
function
|
|
4483
|
-
var vt,
|
|
4484
|
-
return (vt = (
|
|
4482
|
+
function ue(Xe, dt) {
|
|
4483
|
+
var vt, ce;
|
|
4484
|
+
return (vt = (ce = dt.atomValues.get(g)) !== null && ce !== void 0 ? ce : o) !== null && vt !== void 0 ? vt : B;
|
|
4485
4485
|
}
|
|
4486
4486
|
function we(Xe, dt) {
|
|
4487
4487
|
if (dt.atomValues.has(g))
|
|
@@ -4491,8 +4491,8 @@ function lC(m) {
|
|
|
4491
4491
|
return o;
|
|
4492
4492
|
if (x == null)
|
|
4493
4493
|
return Nd(`Tried to restore a persisted value for atom ${g} but it has no persistence settings.`), B;
|
|
4494
|
-
const vt = dt.nonvalidatedAtoms.get(g),
|
|
4495
|
-
return o =
|
|
4494
|
+
const vt = dt.nonvalidatedAtoms.get(g), ce = x.validator(vt, va);
|
|
4495
|
+
return o = ce instanceof Es ? B : Dl(ce), o;
|
|
4496
4496
|
} else
|
|
4497
4497
|
return B;
|
|
4498
4498
|
}
|
|
@@ -4501,25 +4501,25 @@ function lC(m) {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
function Ie(Xe, dt, vt) {
|
|
4503
4503
|
if (dt.atomValues.has(g)) {
|
|
4504
|
-
const
|
|
4505
|
-
if (
|
|
4504
|
+
const ce = xn(dt.atomValues.get(g));
|
|
4505
|
+
if (ce.state === "hasValue" && vt === ce.contents)
|
|
4506
4506
|
return /* @__PURE__ */ new Map();
|
|
4507
4507
|
} else if (!dt.nonvalidatedAtoms.has(g) && vt instanceof Es)
|
|
4508
4508
|
return /* @__PURE__ */ new Map();
|
|
4509
4509
|
return G(vt), o = void 0, (/* @__PURE__ */ new Map()).set(g, Dl(vt));
|
|
4510
4510
|
}
|
|
4511
|
-
function
|
|
4511
|
+
function st() {
|
|
4512
4512
|
return P1(g) !== void 0 && S <= 0;
|
|
4513
4513
|
}
|
|
4514
4514
|
const Mt = tC({
|
|
4515
4515
|
key: g,
|
|
4516
4516
|
nodeType: "atom",
|
|
4517
|
-
peek:
|
|
4517
|
+
peek: ue,
|
|
4518
4518
|
get: we,
|
|
4519
4519
|
set: Ie,
|
|
4520
4520
|
init: ee,
|
|
4521
4521
|
invalidate: Ee,
|
|
4522
|
-
shouldDeleteConfigOnRelease:
|
|
4522
|
+
shouldDeleteConfigOnRelease: st,
|
|
4523
4523
|
dangerouslyAllowMutability: m.dangerouslyAllowMutability,
|
|
4524
4524
|
persistence_UNSTABLE: m.persistence_UNSTABLE ? {
|
|
4525
4525
|
type: m.persistence_UNSTABLE.type,
|
|
@@ -4725,8 +4725,8 @@ function TC(m) {
|
|
|
4725
4725
|
let B;
|
|
4726
4726
|
try {
|
|
4727
4727
|
B = b.get(S);
|
|
4728
|
-
} catch (
|
|
4729
|
-
throw fi(`Problem with cache lookup for selector ${m.key}: ${
|
|
4728
|
+
} catch (ue) {
|
|
4729
|
+
throw fi(`Problem with cache lookup for selector ${m.key}: ${ue.message}`);
|
|
4730
4730
|
}
|
|
4731
4731
|
if (B != null)
|
|
4732
4732
|
return B;
|
|
@@ -4734,14 +4734,14 @@ function TC(m) {
|
|
|
4734
4734
|
// It is possible to use functions in parameters if the user uses
|
|
4735
4735
|
// a cache with reference equality thanks to the incrementing index.
|
|
4736
4736
|
allowFunctions: !0
|
|
4737
|
-
})) !== null && D !== void 0 ? D : "void"}/${wC++}`, P = (
|
|
4737
|
+
})) !== null && D !== void 0 ? D : "void"}/${wC++}`, P = (ue) => m.get(S)(ue), G = m.cachePolicy_UNSTABLE, te = typeof m.retainedBy_UNSTABLE == "function" ? m.retainedBy_UNSTABLE(S) : m.retainedBy_UNSTABLE;
|
|
4738
4738
|
let ee;
|
|
4739
4739
|
if (m.set != null) {
|
|
4740
|
-
const
|
|
4740
|
+
const ue = m.set;
|
|
4741
4741
|
ee = jl({
|
|
4742
4742
|
key: o,
|
|
4743
4743
|
get: P,
|
|
4744
|
-
set: (Ee, Ie) =>
|
|
4744
|
+
set: (Ee, Ie) => ue(S)(Ee, Ie),
|
|
4745
4745
|
cachePolicy_UNSTABLE: G,
|
|
4746
4746
|
dangerouslyAllowMutability: m.dangerouslyAllowMutability,
|
|
4747
4747
|
retainedBy_UNSTABLE: te
|
|
@@ -5127,31 +5127,31 @@ const vM = (m, g, ...x) => {
|
|
|
5127
5127
|
for (; g <= x; ++g)
|
|
5128
5128
|
(b = m[g]) && (S = b.$elm$, W1(b), S.remove());
|
|
5129
5129
|
}, MM = (m, g, x, b) => {
|
|
5130
|
-
let S = 0, D = 0, B = 0, o = 0, P = g.length - 1, G = g[0], te = g[P], ee = b.length - 1,
|
|
5130
|
+
let S = 0, D = 0, B = 0, o = 0, P = g.length - 1, G = g[0], te = g[P], ee = b.length - 1, ue = b[0], we = b[ee], Ee, Ie;
|
|
5131
5131
|
for (; S <= P && D <= ee; )
|
|
5132
5132
|
if (G == null)
|
|
5133
5133
|
G = g[++S];
|
|
5134
5134
|
else if (te == null)
|
|
5135
5135
|
te = g[--P];
|
|
5136
|
-
else if (
|
|
5137
|
-
|
|
5136
|
+
else if (ue == null)
|
|
5137
|
+
ue = b[++D];
|
|
5138
5138
|
else if (we == null)
|
|
5139
5139
|
we = b[--ee];
|
|
5140
|
-
else if (Td(G,
|
|
5141
|
-
kl(G,
|
|
5140
|
+
else if (Td(G, ue))
|
|
5141
|
+
kl(G, ue), G = g[++S], ue = b[++D];
|
|
5142
5142
|
else if (Td(te, we))
|
|
5143
5143
|
kl(te, we), te = g[--P], we = b[--ee];
|
|
5144
5144
|
else if (Td(G, we))
|
|
5145
5145
|
kl(G, we), m.insertBefore(G.$elm$, te.$elm$.nextSibling), G = g[++S], we = b[--ee];
|
|
5146
|
-
else if (Td(te,
|
|
5147
|
-
kl(te,
|
|
5146
|
+
else if (Td(te, ue))
|
|
5147
|
+
kl(te, ue), m.insertBefore(te.$elm$, G.$elm$), te = g[--P], ue = b[++D];
|
|
5148
5148
|
else {
|
|
5149
5149
|
for (B = -1, o = S; o <= P; ++o)
|
|
5150
|
-
if (g[o] && g[o].$key$ !== null && g[o].$key$ ===
|
|
5150
|
+
if (g[o] && g[o].$key$ !== null && g[o].$key$ === ue.$key$) {
|
|
5151
5151
|
B = o;
|
|
5152
5152
|
break;
|
|
5153
5153
|
}
|
|
5154
|
-
B >= 0 ? (Ie = g[B], Ie.$tag$ !==
|
|
5154
|
+
B >= 0 ? (Ie = g[B], Ie.$tag$ !== ue.$tag$ ? Ee = Dd(g && g[D], x, B) : (kl(Ie, ue), g[B] = void 0, Ee = Ie.$elm$), ue = b[++D]) : (Ee = Dd(g && g[D], x, D), ue = b[++D]), Ee && G.$elm$.parentNode.insertBefore(Ee, G.$elm$);
|
|
5155
5155
|
}
|
|
5156
5156
|
S > P ? q1(m, b[ee + 1] == null ? null : b[ee + 1].$elm$, x, b, D, ee) : D > ee && Z1(g, S, P);
|
|
5157
5157
|
}, Td = (m, g) => m.$tag$ === g.$tag$ ? m.$key$ === g.$key$ : !1, kl = (m, g) => {
|
|
@@ -5214,9 +5214,9 @@ const vM = (m, g, ...x) => {
|
|
|
5214
5214
|
if ((!(o & 8) || B === void 0) && te && (S.$instanceValues$.set(g, x), P)) {
|
|
5215
5215
|
if (b.$watchers$ && o & 128) {
|
|
5216
5216
|
const ee = b.$watchers$[g];
|
|
5217
|
-
ee && ee.map((
|
|
5217
|
+
ee && ee.map((ue) => {
|
|
5218
5218
|
try {
|
|
5219
|
-
P[
|
|
5219
|
+
P[ue](x, B, g);
|
|
5220
5220
|
} catch (we) {
|
|
5221
5221
|
Ma(we, D);
|
|
5222
5222
|
}
|
|
@@ -5332,7 +5332,7 @@ const vM = (m, g, ...x) => {
|
|
|
5332
5332
|
}, FM = (m, g = {}) => {
|
|
5333
5333
|
var x;
|
|
5334
5334
|
const b = Ho(), S = [], D = g.exclude || [], B = ku.customElements, o = Mo.head, P = /* @__PURE__ */ o.querySelector("meta[charset]"), G = /* @__PURE__ */ Mo.createElement("style"), te = [];
|
|
5335
|
-
let ee,
|
|
5335
|
+
let ee, ue = !0;
|
|
5336
5336
|
Object.assign(Xn, g), Xn.$resourcesUrl$ = new URL(g.resourcesUrl || "./", Mo.baseURI).href, m.map((we) => {
|
|
5337
5337
|
we[1].map((Ee) => {
|
|
5338
5338
|
const Ie = {
|
|
@@ -5342,13 +5342,13 @@ const vM = (m, g, ...x) => {
|
|
|
5342
5342
|
$listeners$: Ee[3]
|
|
5343
5343
|
};
|
|
5344
5344
|
Ie.$members$ = Ee[2], Ie.$listeners$ = Ee[3], Ie.$attrsToReflect$ = [], Ie.$watchers$ = {};
|
|
5345
|
-
const
|
|
5345
|
+
const st = Ie.$tagName$, Mt = class extends HTMLElement {
|
|
5346
5346
|
// StencilLazyHost
|
|
5347
5347
|
constructor(Xe) {
|
|
5348
5348
|
super(Xe), Xe = this, VM(Xe, Ie), Ie.$flags$ & 1 && Xe.attachShadow({ mode: "open" });
|
|
5349
5349
|
}
|
|
5350
5350
|
connectedCallback() {
|
|
5351
|
-
ee && (clearTimeout(ee), ee = null),
|
|
5351
|
+
ee && (clearTimeout(ee), ee = null), ue ? te.push(this) : Xn.jmp(() => BM(this));
|
|
5352
5352
|
}
|
|
5353
5353
|
disconnectedCallback() {
|
|
5354
5354
|
Xn.jmp(() => NM(this));
|
|
@@ -5357,7 +5357,7 @@ const vM = (m, g, ...x) => {
|
|
|
5357
5357
|
return Ms(this).$onReadyPromise$;
|
|
5358
5358
|
}
|
|
5359
5359
|
};
|
|
5360
|
-
Ie.$lazyBundleId$ = we[0], !D.includes(
|
|
5360
|
+
Ie.$lazyBundleId$ = we[0], !D.includes(st) && !B.get(st) && (S.push(st), B.define(st, K1(
|
|
5361
5361
|
Mt,
|
|
5362
5362
|
Ie,
|
|
5363
5363
|
1
|
|
@@ -5370,7 +5370,7 @@ const vM = (m, g, ...x) => {
|
|
|
5370
5370
|
const we = (x = Xn.$nonce$) !== null && x !== void 0 ? x : j1(Mo);
|
|
5371
5371
|
we != null && G.setAttribute("nonce", we), o.insertBefore(G, P ? P.nextSibling : o.firstChild);
|
|
5372
5372
|
}
|
|
5373
|
-
|
|
5373
|
+
ue = !1, te.length ? te.map((we) => we.connectedCallback()) : Xn.jmp(() => ee = setTimeout(X1, 30)), b();
|
|
5374
5374
|
}, Q1 = (m, g, x, b) => {
|
|
5375
5375
|
x && x.map(([S, D, B]) => {
|
|
5376
5376
|
const o = jM(m, S), P = UM(g, B), G = $M(S);
|
|
@@ -5395,7 +5395,7 @@ const vM = (m, g, ...x) => {
|
|
|
5395
5395
|
if (D)
|
|
5396
5396
|
return D[b];
|
|
5397
5397
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
5398
|
-
return dM(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-
|
|
5398
|
+
return dM(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-38e7e2f3.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-03722f6d.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-ecfbf5a3.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-4ca73dff.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-d28dfefd.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-f75d6c95.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-20223924.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-29b133de.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-c45b26bc.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-d1c4e970.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-94fd2bb2.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-0838c9d6.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-c9128206.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-bdeb8b42.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-15eeb862.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-92c06835.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-e6d04e46.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-77b461b2.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-2cd3f434.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-6e028369.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-fb345fd2.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-3d1ae21a.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-13411b11.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-9a28083f.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-b3ee15cf.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-fc2176ad.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-d4431909.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-1856d347.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-a8a4c275.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-e263ab8d.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-feed62c1.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-a35fff95.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-60378f56.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-bc99bad9.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-81184ad7.mjs") }), `./${S}.entry.js`).then((B) => (Jy.set(S, B), B[b]), Ma);
|
|
5399
5399
|
}, Ld = /* @__PURE__ */ new Map(), ku = typeof window < "u" ? window : {}, Mo = ku.document || { head: {} }, Xn = {
|
|
5400
5400
|
$flags$: 0,
|
|
5401
5401
|
$resourcesUrl$: "",
|
|
@@ -5500,8 +5500,8 @@ class xa {
|
|
|
5500
5500
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
5501
5501
|
* ```
|
|
5502
5502
|
*/
|
|
5503
|
-
constructor({ apiKey: g, authReferrerPolicy: x, channel: b, client: S, id: D = t0, language: B, libraries: o = [], mapIds: P, nonce: G, region: te, retries: ee = 3, url:
|
|
5504
|
-
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = g, this.authReferrerPolicy = x, this.channel = b, this.client = S, this.id = D || t0, this.language = B, this.libraries = o, this.mapIds = P, this.nonce = G, this.region = te, this.retries = ee, this.url =
|
|
5503
|
+
constructor({ apiKey: g, authReferrerPolicy: x, channel: b, client: S, id: D = t0, language: B, libraries: o = [], mapIds: P, nonce: G, region: te, retries: ee = 3, url: ue = "https://maps.googleapis.com/maps/api/js", version: we }) {
|
|
5504
|
+
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = g, this.authReferrerPolicy = x, this.channel = b, this.client = S, this.id = D || t0, this.language = B, this.libraries = o, this.mapIds = P, this.nonce = G, this.region = te, this.retries = ee, this.url = ue, this.version = we, xa.instance) {
|
|
5505
5505
|
if (!KM(this.options, xa.instance.options))
|
|
5506
5506
|
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(xa.instance.options)}`);
|
|
5507
5507
|
return xa.instance;
|
|
@@ -5624,7 +5624,7 @@ const Pm = bn({
|
|
|
5624
5624
|
default: "#005655"
|
|
5625
5625
|
});
|
|
5626
5626
|
function JM({ onMapView: m, onPositionControl: g }) {
|
|
5627
|
-
const x = vi(Pm), [b, S] = ii(), [D, B] = ii(), [o, P] = ii(!1), [G, te] = ii(!1), ee = vi(Yo),
|
|
5627
|
+
const x = vi(Pm), [b, S] = ii(), [D, B] = ii(), [o, P] = ii(!1), [G, te] = ii(!1), ee = vi(Yo), ue = vi(Ia);
|
|
5628
5628
|
return si(() => {
|
|
5629
5629
|
new xa({
|
|
5630
5630
|
apiKey: x,
|
|
@@ -5640,10 +5640,10 @@ function JM({ onMapView: m, onPositionControl: g }) {
|
|
|
5640
5640
|
center: { lat: 0, lng: 0 },
|
|
5641
5641
|
// Set a large zoom so we prevent a "zoom 0 glitch" (showing the whole globe temporarily)
|
|
5642
5642
|
zoom: 21
|
|
5643
|
-
},
|
|
5644
|
-
B(
|
|
5643
|
+
}, st = new window.mapsindoors.mapView.GoogleMapsView(Ie);
|
|
5644
|
+
B(st);
|
|
5645
5645
|
const Mt = new window.mapsindoors.directions.GoogleMapsProvider();
|
|
5646
|
-
m(
|
|
5646
|
+
m(st, Mt);
|
|
5647
5647
|
});
|
|
5648
5648
|
}, []), si(() => {
|
|
5649
5649
|
if (ee && D && b && !G) {
|
|
@@ -5652,7 +5652,7 @@ function JM({ onMapView: m, onPositionControl: g }) {
|
|
|
5652
5652
|
}
|
|
5653
5653
|
if (ee && D && b && !o) {
|
|
5654
5654
|
const we = document.createElement("mi-floor-selector");
|
|
5655
|
-
we.mapsindoors = ee, we.primaryColor =
|
|
5655
|
+
we.mapsindoors = ee, we.primaryColor = ue, D.getMap().controls[b.maps.ControlPosition.RIGHT_TOP].push(we), P(!0);
|
|
5656
5656
|
}
|
|
5657
5657
|
}, [ee, D, b, o, G]), /* @__PURE__ */ me.jsx("div", { className: "map-container", id: "map" });
|
|
5658
5658
|
}
|
|
@@ -5697,23 +5697,23 @@ var iv = { exports: {} };
|
|
|
5697
5697
|
return /^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i;
|
|
5698
5698
|
}, get EVENTS_URL() {
|
|
5699
5699
|
return this.API_URL ? this.API_URL.indexOf("https://api.mapbox.cn") === 0 ? "https://events.mapbox.cn/events/v2" : this.API_URL.indexOf("https://api.mapbox.com") === 0 ? "https://events.mapbox.com/events/v2" : null : null;
|
|
5700
|
-
}, SESSION_PATH: "/map-sessions/v1", FEEDBACK_URL: "https://apps.mapbox.com/feedback", TILE_URL_VERSION: "v4", RASTER_URL_PREFIX: "raster/v1", REQUIRE_ACCESS_TOKEN: !0, ACCESS_TOKEN: null, MAX_PARALLEL_IMAGE_REQUESTS: 16 },
|
|
5701
|
-
!Ie && Ee && (
|
|
5700
|
+
}, SESSION_PATH: "/map-sessions/v1", FEEDBACK_URL: "https://apps.mapbox.com/feedback", TILE_URL_VERSION: "v4", RASTER_URL_PREFIX: "raster/v1", REQUIRE_ACCESS_TOKEN: !0, ACCESS_TOKEN: null, MAX_PARALLEL_IMAGE_REQUESTS: 16 }, ue = { supported: !1, testSupport: function(t) {
|
|
5701
|
+
!Ie && Ee && (st ? Mt(t) : we = t);
|
|
5702
5702
|
} };
|
|
5703
|
-
let we, Ee, Ie = !1,
|
|
5703
|
+
let we, Ee, Ie = !1, st = !1;
|
|
5704
5704
|
function Mt(t) {
|
|
5705
5705
|
const e = t.createTexture();
|
|
5706
5706
|
t.bindTexture(t.TEXTURE_2D, e);
|
|
5707
5707
|
try {
|
|
5708
5708
|
if (t.texImage2D(t.TEXTURE_2D, 0, t.RGBA, t.RGBA, t.UNSIGNED_BYTE, Ee), t.isContextLost())
|
|
5709
5709
|
return;
|
|
5710
|
-
|
|
5710
|
+
ue.supported = !0;
|
|
5711
5711
|
} catch {
|
|
5712
5712
|
}
|
|
5713
5713
|
t.deleteTexture(e), Ie = !0;
|
|
5714
5714
|
}
|
|
5715
5715
|
P.document && (Ee = P.document.createElement("img"), Ee.onload = function() {
|
|
5716
|
-
we && Mt(we), we = null,
|
|
5716
|
+
we && Mt(we), we = null, st = !0;
|
|
5717
5717
|
}, Ee.onerror = function() {
|
|
5718
5718
|
Ie = !0, we = null;
|
|
5719
5719
|
}, Ee.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");
|
|
@@ -5749,7 +5749,7 @@ var iv = { exports: {} };
|
|
|
5749
5749
|
}, solve: function(t, e) {
|
|
5750
5750
|
return this.sampleCurveY(this.solveCurveX(t, e));
|
|
5751
5751
|
} };
|
|
5752
|
-
var
|
|
5752
|
+
var ce = It;
|
|
5753
5753
|
function It(t, e) {
|
|
5754
5754
|
this.x = t, this.y = e;
|
|
5755
5755
|
}
|
|
@@ -5828,7 +5828,7 @@ var iv = { exports: {} };
|
|
|
5828
5828
|
return t instanceof It ? t : Array.isArray(t) ? new It(t[0], t[1]) : t;
|
|
5829
5829
|
};
|
|
5830
5830
|
const Ft = Math.PI / 180, zt = 180 / Math.PI;
|
|
5831
|
-
function
|
|
5831
|
+
function We(t) {
|
|
5832
5832
|
return t * Ft;
|
|
5833
5833
|
}
|
|
5834
5834
|
function ut(t) {
|
|
@@ -5884,9 +5884,9 @@ var iv = { exports: {} };
|
|
|
5884
5884
|
t[r] = i[r];
|
|
5885
5885
|
return t;
|
|
5886
5886
|
}
|
|
5887
|
-
let
|
|
5887
|
+
let rt = 1;
|
|
5888
5888
|
function ge() {
|
|
5889
|
-
return
|
|
5889
|
+
return rt++;
|
|
5890
5890
|
}
|
|
5891
5891
|
function Ne() {
|
|
5892
5892
|
return function t(e) {
|
|
@@ -6111,7 +6111,7 @@ var iv = { exports: {} };
|
|
|
6111
6111
|
let lt, bt;
|
|
6112
6112
|
lt = [], bt = 0;
|
|
6113
6113
|
const wt = function(t, e) {
|
|
6114
|
-
if (
|
|
6114
|
+
if (ue.supported && (t.headers || (t.headers = {}), t.headers.accept = "image/webp,*/*"), bt >= ee.MAX_PARALLEL_IMAGE_REQUESTS) {
|
|
6115
6115
|
const c = { requestParameters: t, callback: e, cancelled: !1, cancel() {
|
|
6116
6116
|
this.cancelled = !0;
|
|
6117
6117
|
} };
|
|
@@ -9303,7 +9303,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9303
9303
|
this._properties = e, this._values = Object.create(e.defaultTransitioningPropertyValues);
|
|
9304
9304
|
}
|
|
9305
9305
|
possiblyEvaluate(e, i, r) {
|
|
9306
|
-
const a = new
|
|
9306
|
+
const a = new ot(this._properties);
|
|
9307
9307
|
for (const c of Object.keys(this._values))
|
|
9308
9308
|
a._values[c] = this._values[c].possiblyEvaluate(e, i, r);
|
|
9309
9309
|
return a;
|
|
@@ -9334,13 +9334,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9334
9334
|
return e;
|
|
9335
9335
|
}
|
|
9336
9336
|
possiblyEvaluate(e, i, r) {
|
|
9337
|
-
const a = new
|
|
9337
|
+
const a = new ot(this._properties);
|
|
9338
9338
|
for (const c of Object.keys(this._values))
|
|
9339
9339
|
a._values[c] = this._values[c].possiblyEvaluate(e, i, r);
|
|
9340
9340
|
return a;
|
|
9341
9341
|
}
|
|
9342
9342
|
}
|
|
9343
|
-
class
|
|
9343
|
+
class He {
|
|
9344
9344
|
constructor(e, i, r) {
|
|
9345
9345
|
this.property = e, this.value = i, this.parameters = r;
|
|
9346
9346
|
}
|
|
@@ -9354,7 +9354,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9354
9354
|
return this.property.evaluate(this.value, this.parameters, e, i, r, a);
|
|
9355
9355
|
}
|
|
9356
9356
|
}
|
|
9357
|
-
class
|
|
9357
|
+
class ot {
|
|
9358
9358
|
constructor(e) {
|
|
9359
9359
|
this._properties = e, this._values = Object.create(e.defaultPossiblyEvaluatedValues);
|
|
9360
9360
|
}
|
|
@@ -9379,15 +9379,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9379
9379
|
this.specification = e, this.overrides = i;
|
|
9380
9380
|
}
|
|
9381
9381
|
possiblyEvaluate(e, i, r, a) {
|
|
9382
|
-
return new
|
|
9382
|
+
return new He(this, e.expression.kind === "constant" || e.expression.kind === "camera" ? { kind: "constant", value: e.expression.evaluate(i, null, {}, r, a) } : e.expression, i);
|
|
9383
9383
|
}
|
|
9384
9384
|
interpolate(e, i, r) {
|
|
9385
9385
|
if (e.value.kind !== "constant" || i.value.kind !== "constant")
|
|
9386
9386
|
return e;
|
|
9387
9387
|
if (e.value.value === void 0 || i.value.value === void 0)
|
|
9388
|
-
return new
|
|
9388
|
+
return new He(this, { kind: "constant", value: void 0 }, e.parameters);
|
|
9389
9389
|
const a = Ga[this.specification.type];
|
|
9390
|
-
return a ? new
|
|
9390
|
+
return a ? new He(this, { kind: "constant", value: a(e.value.value, i.value.value, r) }, e.parameters) : e;
|
|
9391
9391
|
}
|
|
9392
9392
|
evaluate(e, i, r, a, c, h) {
|
|
9393
9393
|
return e.kind === "constant" ? e.value : e.evaluate(i, r, a, c, h);
|
|
@@ -10351,7 +10351,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10351
10351
|
if (!r(c))
|
|
10352
10352
|
continue;
|
|
10353
10353
|
const h = e.paint.get(c);
|
|
10354
|
-
if (!(h instanceof
|
|
10354
|
+
if (!(h instanceof He && Oo(h.property.specification)))
|
|
10355
10355
|
continue;
|
|
10356
10356
|
const p = Nv(c, e.type), _ = h.value, y = h.property.specification.type, T = h.property.useIntegerZoom, A = c === "line-dasharray" || c.endsWith("pattern"), C = c === "line-dasharray" && e.layout.get("line-cap").value.kind !== "constant";
|
|
10357
10357
|
if (_.kind !== "constant" || C)
|
|
@@ -10516,7 +10516,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10516
10516
|
this.setPaintProperty(r, e.paint[r], { validate: !1 });
|
|
10517
10517
|
for (const r in e.layout)
|
|
10518
10518
|
this.setLayoutProperty(r, e.layout[r], { validate: !1 });
|
|
10519
|
-
this._transitioningPaint = this._transitionablePaint.untransitioned(), this.paint = new
|
|
10519
|
+
this._transitioningPaint = this._transitionablePaint.untransitioned(), this.paint = new ot(i.paint);
|
|
10520
10520
|
}
|
|
10521
10521
|
}
|
|
10522
10522
|
getLayoutProperty(e) {
|
|
@@ -10587,7 +10587,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10587
10587
|
isStateDependent() {
|
|
10588
10588
|
for (const e in this.paint._values) {
|
|
10589
10589
|
const i = this.paint.get(e);
|
|
10590
|
-
if (i instanceof
|
|
10590
|
+
if (i instanceof He && Oo(i.property.specification) && (i.value.kind === "source" || i.value.kind === "composite") && i.value.isStateDependent)
|
|
10591
10591
|
return !0;
|
|
10592
10592
|
}
|
|
10593
10593
|
return !1;
|
|
@@ -10776,7 +10776,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10776
10776
|
}
|
|
10777
10777
|
}
|
|
10778
10778
|
function Sp(t, e, i, r, a, c, h, p, _) {
|
|
10779
|
-
const y = (e + r) / 2, T = (i + a) / 2, A = new
|
|
10779
|
+
const y = (e + r) / 2, T = (i + a) / 2, A = new ce(y, T);
|
|
10780
10780
|
p(A), function(C, R, L, O, j, ie) {
|
|
10781
10781
|
const ae = L - j, Q = O - ie;
|
|
10782
10782
|
return Math.abs((O - R) * ae - (L - C) * Q) / Math.hypot(ae, Q);
|
|
@@ -10991,7 +10991,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10991
10991
|
for (const h of t)
|
|
10992
10992
|
if (e <= h.x && i <= h.y && r >= h.x && a >= h.y)
|
|
10993
10993
|
return !0;
|
|
10994
|
-
const c = [new
|
|
10994
|
+
const c = [new ce(e, i), new ce(e, a), new ce(r, a), new ce(r, i)];
|
|
10995
10995
|
if (t.length > 2) {
|
|
10996
10996
|
for (const h of c)
|
|
10997
10997
|
if (aa(t, h))
|
|
@@ -11019,7 +11019,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11019
11019
|
function __(t, e, i, r, a) {
|
|
11020
11020
|
if (!e[0] && !e[1])
|
|
11021
11021
|
return t;
|
|
11022
|
-
const c =
|
|
11022
|
+
const c = ce.convert(e)._mult(a);
|
|
11023
11023
|
i === "viewport" && c._rotate(-r);
|
|
11024
11024
|
const h = [];
|
|
11025
11025
|
for (let p = 0; p < t.length; p++)
|
|
@@ -11027,7 +11027,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11027
11027
|
return h;
|
|
11028
11028
|
}
|
|
11029
11029
|
function g_(t, e, i, r) {
|
|
11030
|
-
const a =
|
|
11030
|
+
const a = ce.convert(t)._mult(r);
|
|
11031
11031
|
return e === "viewport" && a._rotate(-i), a;
|
|
11032
11032
|
}
|
|
11033
11033
|
Ct(Mp, "CircleBucket", { omit: ["layers"] });
|
|
@@ -11311,12 +11311,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11311
11311
|
}
|
|
11312
11312
|
function tx(t, e, i, r) {
|
|
11313
11313
|
const a = ua([], [t, e, i, 1], r);
|
|
11314
|
-
return new
|
|
11314
|
+
return new ce(a[0] / a[3], a[1] / a[3]);
|
|
11315
11315
|
}
|
|
11316
11316
|
const L_ = fl(0, 0, 0), ix = fl(0, 0, 1);
|
|
11317
11317
|
function nx(t, e) {
|
|
11318
11318
|
const i = kp();
|
|
11319
|
-
return L_[2] = e, t.intersectsPlane(L_, ix, i), new
|
|
11319
|
+
return L_[2] = e, t.intersectsPlane(L_, ix, i), new ce(i[0], i[1]);
|
|
11320
11320
|
}
|
|
11321
11321
|
class k_ extends Mp {
|
|
11322
11322
|
}
|
|
@@ -11789,7 +11789,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11789
11789
|
const xx = new $t({ "fill-sort-key": new Le($e.layout_fill["fill-sort-key"]) });
|
|
11790
11790
|
var bx = { paint: new $t({ "fill-antialias": new ve($e.paint_fill["fill-antialias"]), "fill-opacity": new Le($e.paint_fill["fill-opacity"]), "fill-color": new Le($e.paint_fill["fill-color"]), "fill-outline-color": new Le($e.paint_fill["fill-outline-color"]), "fill-translate": new ve($e.paint_fill["fill-translate"]), "fill-translate-anchor": new ve($e.paint_fill["fill-translate-anchor"]), "fill-pattern": new Le($e.paint_fill["fill-pattern"]) }), layout: xx };
|
|
11791
11791
|
const wx = St([{ name: "a_pos_normal_ed", components: 4, type: "Int16" }]), Tx = St([{ name: "a_centroid_pos", components: 2, type: "Uint16" }]), Ex = St([{ name: "a_pos_3", components: 3, type: "Int16" }, { name: "a_pos_normal_3", components: 3, type: "Int16" }]), { members: Sx } = wx;
|
|
11792
|
-
var Xh = {}, Ax =
|
|
11792
|
+
var Xh = {}, Ax = ce, j_ = _l;
|
|
11793
11793
|
function _l(t, e, i, r, a) {
|
|
11794
11794
|
this.properties = {}, this.extent = i, this.type = 0, this._pbf = t, this._geometry = -1, this._keys = r, this._values = a, t.readFields(Cx, this, e);
|
|
11795
11795
|
}
|
|
@@ -11906,9 +11906,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11906
11906
|
}, Yh = Xh.VectorTileFeature = j_;
|
|
11907
11907
|
function Kh(t, e, i, r) {
|
|
11908
11908
|
const a = [], c = r === 0 ? (h, p, _, y, T, A) => {
|
|
11909
|
-
h.push(new
|
|
11909
|
+
h.push(new ce(A, _ + (A - p) / (y - p) * (T - _)));
|
|
11910
11910
|
} : (h, p, _, y, T, A) => {
|
|
11911
|
-
h.push(new
|
|
11911
|
+
h.push(new ce(p + (A - _) / (T - _) * (y - p), A));
|
|
11912
11912
|
};
|
|
11913
11913
|
for (const h of t) {
|
|
11914
11914
|
const p = [];
|
|
@@ -11938,10 +11938,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11938
11938
|
}
|
|
11939
11939
|
class G_ {
|
|
11940
11940
|
constructor() {
|
|
11941
|
-
this.acc = new
|
|
11941
|
+
this.acc = new ce(0, 0), this.polyCount = [];
|
|
11942
11942
|
}
|
|
11943
11943
|
startRing(e) {
|
|
11944
|
-
this.currentPolyCount = { edges: 0, top: 0 }, this.polyCount.push(this.currentPolyCount), this.min || (this.min = new
|
|
11944
|
+
this.currentPolyCount = { edges: 0, top: 0 }, this.polyCount.push(this.currentPolyCount), this.min || (this.min = new ce(e.x, e.y), this.max = new ce(e.x, e.y));
|
|
11945
11945
|
}
|
|
11946
11946
|
append(e, i) {
|
|
11947
11947
|
this.currentPolyCount.edges++, this.acc._add(e);
|
|
@@ -11966,10 +11966,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11966
11966
|
}
|
|
11967
11967
|
centroid() {
|
|
11968
11968
|
const e = this.polyCount.reduce((i, r) => i + r.edges, 0);
|
|
11969
|
-
return e !== 0 ? this.acc.div(e)._round() : new
|
|
11969
|
+
return e !== 0 ? this.acc.div(e)._round() : new ce(0, 0);
|
|
11970
11970
|
}
|
|
11971
11971
|
span() {
|
|
11972
|
-
return new
|
|
11972
|
+
return new ce(this.max.x - this.min.x, this.max.y - this.min.y);
|
|
11973
11973
|
}
|
|
11974
11974
|
intersectsCount() {
|
|
11975
11975
|
return this.borders.reduce((e, i) => e + +(i[0] !== Number.MAX_VALUE), 0);
|
|
@@ -12019,7 +12019,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12019
12019
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.centroidVertexBuffer && this.centroidVertexBuffer.destroy(), this.layoutVertexExtBuffer && this.layoutVertexExtBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
|
|
12020
12020
|
}
|
|
12021
12021
|
addFeature(e, i, r, a, c, h, p) {
|
|
12022
|
-
const _ = [new
|
|
12022
|
+
const _ = [new ce(0, 0), new ce(ti, ti)], y = p.projection, T = y.name === "globe", A = this.enableTerrain && !T ? new G_() : null, C = kx[e.type] === "Polygon";
|
|
12023
12023
|
T && !this.layoutVertexExtArray && (this.layoutVertexExtArray = new Ji());
|
|
12024
12024
|
const R = Gp(i, 500);
|
|
12025
12025
|
for (let ie = R.length - 1; ie >= 0; ie--) {
|
|
@@ -12186,11 +12186,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12186
12186
|
for (Q.length ? de.push({ polygons: oe, bounds: y, depth: 0 }) : O(oe, y); de.length; ) {
|
|
12187
12187
|
const le = de.pop(), Me = le.depth, Ae = Q[Me], Ue = le.bounds[0], et = le.bounds[1], Pe = Ae === 0 ? Ue.x : Ue.y, Ve = Ae === 0 ? et.x : et.y, Ze = R ? R(Ae, Pe, Ve) : 0.5 * (Pe + Ve), Ye = Kh(le.polygons, Pe - C, Ze + C, Ae), tt = Kh(le.polygons, Ze - C, Ve + C, Ae);
|
|
12188
12188
|
if (Ye.length) {
|
|
12189
|
-
const ze = [Ue, new
|
|
12189
|
+
const ze = [Ue, new ce(Ae === 0 ? Ze : et.x, Ae === 1 ? Ze : et.y)];
|
|
12190
12190
|
Q.length > Me + 1 ? de.push({ polygons: Ye, bounds: ze, depth: Me + 1 }) : O(Ye, ze);
|
|
12191
12191
|
}
|
|
12192
12192
|
if (tt.length) {
|
|
12193
|
-
const ze = [new
|
|
12193
|
+
const ze = [new ce(Ae === 0 ? Ze : Ue.x, Ae === 1 ? Ze : Ue.y), et];
|
|
12194
12194
|
Q.length > Me + 1 ? de.push({ polygons: tt, bounds: ze, depth: Me + 1 }) : O(tt, ze);
|
|
12195
12195
|
}
|
|
12196
12196
|
}
|
|
@@ -12297,7 +12297,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12297
12297
|
return t && i < 22 && (h += c * c * ((t < 0 ? -2 * t - 1 : 2 * t) % (1 << 2 * (22 - i)))), 16 * (32 * h + i) + (e - i);
|
|
12298
12298
|
}
|
|
12299
12299
|
Ct(Jh, "CanonicalTileID"), Ct(sr, "OverscaledTileID", { omit: ["projMatrix"] });
|
|
12300
|
-
class gl extends
|
|
12300
|
+
class gl extends ce {
|
|
12301
12301
|
constructor(e, i, r) {
|
|
12302
12302
|
super(e, i), this.z = r;
|
|
12303
12303
|
}
|
|
@@ -13312,7 +13312,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13312
13312
|
const L = e.top * c, O = e.bottom * c;
|
|
13313
13313
|
return i === "height" || i === "both" ? (T = a[1] + L - r[0], C = a[1] + O + r[2]) : (T = a[1] + (L + O - h.displaySize[1]) / 2, C = T + h.displaySize[1]), { image: h, top: T, right: A, bottom: C, left: R, collisionPadding: p };
|
|
13314
13314
|
}
|
|
13315
|
-
class qo extends
|
|
13315
|
+
class qo extends ce {
|
|
13316
13316
|
constructor(e, i, r, a, c) {
|
|
13317
13317
|
super(e, i), this.angle = a, this.z = r, c !== void 0 && (this.segment = c);
|
|
13318
13318
|
}
|
|
@@ -13398,7 +13398,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13398
13398
|
let _;
|
|
13399
13399
|
for (let y = 0; y < p.length - 1; y++) {
|
|
13400
13400
|
let T = p[y], A = p[y + 1];
|
|
13401
|
-
T.x < e && A.x < e || (T.x < e ? T = new
|
|
13401
|
+
T.x < e && A.x < e || (T.x < e ? T = new ce(e, T.y + (e - T.x) / (A.x - T.x) * (A.y - T.y))._round() : A.x < e && (A = new ce(e, T.y + (e - T.x) / (A.x - T.x) * (A.y - T.y))._round()), T.y < i && A.y < i || (T.y < i ? T = new ce(T.x + (i - T.y) / (A.y - T.y) * (A.x - T.x), i)._round() : A.y < i && (A = new ce(T.x + (i - T.y) / (A.y - T.y) * (A.x - T.x), i)._round()), T.x >= r && A.x >= r || (T.x >= r ? T = new ce(r, T.y + (r - T.x) / (A.x - T.x) * (A.y - T.y))._round() : A.x >= r && (A = new ce(r, T.y + (r - T.x) / (A.x - T.x) * (A.y - T.y))._round()), T.y >= a && A.y >= a || (T.y >= a ? T = new ce(T.x + (a - T.y) / (A.y - T.y) * (A.x - T.x), a)._round() : A.y >= a && (A = new ce(T.x + (a - T.y) / (A.y - T.y) * (A.x - T.x), a)._round()), _ && T.equals(_[_.length - 1]) || (_ = [T], c.push(_)), _.push(A)))));
|
|
13402
13402
|
}
|
|
13403
13403
|
}
|
|
13404
13404
|
return c;
|
|
@@ -13506,7 +13506,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13506
13506
|
ae = nd(A, 0, Pe[0]), oe = nd(C, 0, Pe[1]), Q = nd(A, Pe[0], Pe[2]), de = nd(C, Pe[1], Pe[3]), le = Pe[0] - ae, Ae = Pe[1] - oe, Me = Pe[2] - Pe[0] - Q, Ue = Pe[3] - Pe[1] - de;
|
|
13507
13507
|
}
|
|
13508
13508
|
const et = (Pe, Ve, Ze, Ye) => {
|
|
13509
|
-
const tt = rd(Pe.stretch - ae, Q, y, t.left), ze = od(Pe.fixed - le, Me, Pe.stretch, L), mt = rd(Ve.stretch - oe, de, T, t.top), Zt = od(Ve.fixed - Ae, Ue, Ve.stretch, O), yt = rd(Ze.stretch - ae, Q, y, t.left), Pt = od(Ze.fixed - le, Me, Ze.stretch, L), _t = rd(Ye.stretch - oe, de, T, t.top), Yt = od(Ye.fixed - Ae, Ue, Ye.stretch, O), _i = new
|
|
13509
|
+
const tt = rd(Pe.stretch - ae, Q, y, t.left), ze = od(Pe.fixed - le, Me, Pe.stretch, L), mt = rd(Ve.stretch - oe, de, T, t.top), Zt = od(Ve.fixed - Ae, Ue, Ve.stretch, O), yt = rd(Ze.stretch - ae, Q, y, t.left), Pt = od(Ze.fixed - le, Me, Ze.stretch, L), _t = rd(Ye.stretch - oe, de, T, t.top), Yt = od(Ye.fixed - Ae, Ue, Ye.stretch, O), _i = new ce(tt, mt), pi = new ce(yt, mt), ui = new ce(yt, _t), Qt = new ce(tt, _t), Oi = new ce(ze / h, Zt / h), ri = new ce(Pt / h, Yt / h), gi = e * Math.PI / 180;
|
|
13510
13510
|
if (gi) {
|
|
13511
13511
|
const Yi = Math.sin(gi), en = Math.cos(gi), rn = [en, -Yi, Yi, en];
|
|
13512
13512
|
_i._matMult(rn), pi._matMult(rn), Qt._matMult(rn), ui._matMult(rn);
|
|
@@ -13656,7 +13656,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13656
13656
|
let y = _ / 2;
|
|
13657
13657
|
const T = new vb([], wb);
|
|
13658
13658
|
if (_ === 0)
|
|
13659
|
-
return new
|
|
13659
|
+
return new ce(r, a);
|
|
13660
13660
|
for (let R = r; R < c; R += _)
|
|
13661
13661
|
for (let L = a; L < h; L += _)
|
|
13662
13662
|
T.push(new Tl(R + y, L + y, y, t));
|
|
@@ -13679,7 +13679,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13679
13679
|
return e.max - t.max;
|
|
13680
13680
|
}
|
|
13681
13681
|
function Tl(t, e, i, r) {
|
|
13682
|
-
this.p = new
|
|
13682
|
+
this.p = new ce(t, e), this.h = i, this.d = function(a, c) {
|
|
13683
13683
|
let h = !1, p = 1 / 0;
|
|
13684
13684
|
for (let _ = 0; _ < c.length; _++) {
|
|
13685
13685
|
const y = c[_];
|
|
@@ -13827,7 +13827,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13827
13827
|
function Sb(t, e, i, r, a, c, h, p, _, y, T, A, C) {
|
|
13828
13828
|
let R = c.textMaxSize.evaluate(e, {}, A);
|
|
13829
13829
|
R === void 0 && (R = h);
|
|
13830
|
-
const L = t.layers[0].layout, O = L.get("icon-offset").evaluate(e, {}, A), j = Dg(i.horizontal) || i.vertical, ie = C.name === "globe", ae = h / 24, Q = t.tilePixelRatio * R / 24, oe = (Ve = t.overscaling, t.zoom > 18 && Ve > 2 && (Ve >>= 1), Math.max(ti / (512 * Ve), 1) * L.get("symbol-spacing")), de = L.get("text-padding") * t.tilePixelRatio, le = L.get("icon-padding") * t.tilePixelRatio, Me =
|
|
13830
|
+
const L = t.layers[0].layout, O = L.get("icon-offset").evaluate(e, {}, A), j = Dg(i.horizontal) || i.vertical, ie = C.name === "globe", ae = h / 24, Q = t.tilePixelRatio * R / 24, oe = (Ve = t.overscaling, t.zoom > 18 && Ve > 2 && (Ve >>= 1), Math.max(ti / (512 * Ve), 1) * L.get("symbol-spacing")), de = L.get("text-padding") * t.tilePixelRatio, le = L.get("icon-padding") * t.tilePixelRatio, Me = We(L.get("text-max-angle")), Ae = L.get("text-rotation-alignment") === "map" && L.get("symbol-placement") !== "point", Ue = L.get("icon-rotation-alignment") === "map" && L.get("symbol-placement") !== "point", et = L.get("symbol-placement"), Pe = oe / 2;
|
|
13831
13831
|
var Ve;
|
|
13832
13832
|
const Ze = L.get("icon-text-fit");
|
|
13833
13833
|
let Ye;
|
|
@@ -13948,19 +13948,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13948
13948
|
const mn = ji.w * _t.scale / (ui * (_t.localGlyph ? 2 : 1)), Bn = ji.h * _t.scale / (ui * (_t.localGlyph ? 2 : 1));
|
|
13949
13949
|
let Bi, In, Tn, Ai;
|
|
13950
13950
|
if (Oi) {
|
|
13951
|
-
const $i = _t.y - Zt, vn = new
|
|
13952
|
-
Bi = new
|
|
13951
|
+
const $i = _t.y - Zt, vn = new ce(-ri, ri - $i), er = -Math.PI / 2, Nn = new ce(...en);
|
|
13952
|
+
Bi = new ce(-ri + Yi[0], Yi[1]), Bi._rotateAround(er, vn)._add(Nn), Bi.x += -$i + ri, Bi.y -= (gi.left - _i) * _t.scale;
|
|
13953
13953
|
const Fn = _t.imageName ? gi.advance * _t.scale : Wn * _t.scale, ar = String.fromCharCode(_t.glyph);
|
|
13954
|
-
Qx(ar) ? Bi.x += (1 - _i) * _t.scale : eb(ar) ? Bi.x += Fn - gi.height * _t.scale + (-_i - 1) * _t.scale : Bi.x += _t.imageName || gi.width + 2 * _i === ji.w && gi.height + 2 * _i === ji.h ? (Fn - Bn) / 2 : (Fn - (gi.height + 2 * _i) * _t.scale) / 2, In = new
|
|
13954
|
+
Qx(ar) ? Bi.x += (1 - _i) * _t.scale : eb(ar) ? Bi.x += Fn - gi.height * _t.scale + (-_i - 1) * _t.scale : Bi.x += _t.imageName || gi.width + 2 * _i === ji.w && gi.height + 2 * _i === ji.h ? (Fn - Bn) / 2 : (Fn - (gi.height + 2 * _i) * _t.scale) / 2, In = new ce(Bi.x, Bi.y - mn), Tn = new ce(Bi.x + Bn, Bi.y), Ai = new ce(Bi.x + Bn, Bi.y - mn);
|
|
13955
13955
|
} else {
|
|
13956
13956
|
const $i = (gi.left - _i) * _t.scale - ri + Yi[0], vn = (-gi.top - _i) * _t.scale + Yi[1], er = $i + mn, Nn = vn + Bn;
|
|
13957
|
-
Bi = new
|
|
13957
|
+
Bi = new ce($i, vn), In = new ce(er, vn), Tn = new ce($i, Nn), Ai = new ce(er, Nn);
|
|
13958
13958
|
}
|
|
13959
13959
|
if (Ze) {
|
|
13960
13960
|
let $i;
|
|
13961
|
-
$i = Ae ? new
|
|
13961
|
+
$i = Ae ? new ce(0, 0) : rn ? new ce(Ye[0], Ye[1]) : new ce(le[0], le[1]), Bi._rotateAround(Ze, $i), In._rotateAround(Ze, $i), Tn._rotateAround(Ze, $i), Ai._rotateAround(Ze, $i);
|
|
13962
13962
|
}
|
|
13963
|
-
const ln = new
|
|
13963
|
+
const ln = new ce(0, 0), Rn = new ce(0, 0);
|
|
13964
13964
|
Ve.push({ tl: Bi, tr: In, bl: Tn, br: Ai, tex: Yt, writingMode: de.writingMode, glyphOffset: Qi, sectionIndex: _t.sectionIndex, isSDF: pi, pixelOffsetTL: ln, pixelOffsetBR: Rn, minFontScaleX: 0, minFontScaleY: 0 });
|
|
13965
13965
|
}
|
|
13966
13966
|
}
|
|
@@ -13981,9 +13981,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13981
13981
|
let T = h.top, A = h.bottom, C = h.left, R = h.right;
|
|
13982
13982
|
const L = h.collisionPadding;
|
|
13983
13983
|
if (L && (C -= L[0], T -= L[1], R += L[2], A += L[3]), _) {
|
|
13984
|
-
const O = new
|
|
13985
|
-
let oe = new
|
|
13986
|
-
y && (oe = new
|
|
13984
|
+
const O = new ce(C, T), j = new ce(R, T), ie = new ce(C, A), ae = new ce(R, A), Q = We(_);
|
|
13985
|
+
let oe = new ce(0, 0);
|
|
13986
|
+
y && (oe = new ce(y[0], y[1])), O._rotateAround(Q, oe), j._rotateAround(Q, oe), ie._rotateAround(Q, oe), ae._rotateAround(Q, oe), C = Math.min(O.x, j.x, ie.x, ae.x), R = Math.max(O.x, j.x, ie.x, ae.x), T = Math.min(O.y, j.y, ie.y, ae.y), A = Math.max(O.y, j.y, ie.y, ae.y);
|
|
13987
13987
|
}
|
|
13988
13988
|
return t.emplaceBack(e.x, e.y, e.z, i.x, i.y, C, T, R, A, p, r, a, c), t.length - 1;
|
|
13989
13989
|
}
|
|
@@ -14084,7 +14084,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14084
14084
|
const ie = O - yo(R);
|
|
14085
14085
|
j > 0.5 ? j -= 1 : j < -0.5 && (j += 1);
|
|
14086
14086
|
let ae = 0;
|
|
14087
|
-
Math.abs(j) > Math.abs(ie) ? ae = j >= 0 ? 1 : 3 : (ae = ie >= 0 ? 0 : 2, Oc(T, T, [a[4] * r, a[5] * r, a[6] * r], -Math.sin(
|
|
14087
|
+
Math.abs(j) > Math.abs(ie) ? ae = j >= 0 ? 1 : 3 : (ae = ie >= 0 ? 0 : 2, Oc(T, T, [a[4] * r, a[5] * r, a[6] * r], -Math.sin(We(ie >= 0 ? c.getSouth() : c.getNorth())) * Zo));
|
|
14088
14088
|
const Q = h[ae], oe = h[(ae + 1) % 4], de = new Ib(Q, oe, T), le = [sf(de, 0) || Q[0], sf(de, 1) || Q[1], sf(de, 2) || Q[2]], Me = Cl(t.zoom);
|
|
14089
14089
|
if (Me > 0) {
|
|
14090
14090
|
const Ae = function({ x: et, y: Pe, z: Ve }, Ze, Ye, tt, ze) {
|
|
@@ -14107,14 +14107,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14107
14107
|
return new _s(a, c);
|
|
14108
14108
|
}
|
|
14109
14109
|
function af(t) {
|
|
14110
|
-
const e =
|
|
14110
|
+
const e = We(t.getNorth()), i = We(t.getSouth()), r = Math.cos(e), a = Math.cos(i), c = Math.sin(e), h = Math.sin(i), p = t.getWest(), _ = t.getEast();
|
|
14111
14111
|
return [Al(a, h, p), Al(a, h, _), Al(r, c, _), Al(r, c, p)];
|
|
14112
14112
|
}
|
|
14113
14113
|
function Al(t, e, i, r = Zo) {
|
|
14114
|
-
return i =
|
|
14114
|
+
return i = We(i), [t * Math.sin(i) * r, -e * r, t * Math.cos(i) * r];
|
|
14115
14115
|
}
|
|
14116
14116
|
function Qc(t, e, i) {
|
|
14117
|
-
return Al(Math.cos(
|
|
14117
|
+
return Al(Math.cos(We(t)), Math.sin(We(t)), e, i);
|
|
14118
14118
|
}
|
|
14119
14119
|
function eu(t, e, i, r) {
|
|
14120
14120
|
const a = 1 << i.z, c = (t / ti + i.x) / a;
|
|
@@ -14140,7 +14140,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14140
14140
|
const y = ti / (2 * Math.PI);
|
|
14141
14141
|
return _ / (2 * Math.PI) / y;
|
|
14142
14142
|
}(i), h = [t, e, -i / (2 * Math.PI)], p = so(new Float64Array(16));
|
|
14143
|
-
return Lc(p, p, h), ca(p, p, [c, c, c]), Lp(p, p,
|
|
14143
|
+
return Lc(p, p, h), ca(p, p, [c, c, c]), Lp(p, p, We(-a)), Vh(p, p, We(-r)), p;
|
|
14144
14144
|
}
|
|
14145
14145
|
function Cl(t) {
|
|
14146
14146
|
return Mi(5, 6, t);
|
|
@@ -14160,7 +14160,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14160
14160
|
function cf(t, e) {
|
|
14161
14161
|
return Fg(t, e) > Math.PI / 2 * 1.01;
|
|
14162
14162
|
}
|
|
14163
|
-
const Ug =
|
|
14163
|
+
const Ug = We(85), Db = Math.cos(Ug), Lb = Math.sin(Ug);
|
|
14164
14164
|
function jg(t, e) {
|
|
14165
14165
|
const i = t.fovAboveCenter, r = t.elevation ? t.elevation.getMinElevationBelowMSL() * e : 0, a = (t._camera.position[2] * t.worldSize - r) / Math.cos(t._pitch), c = Math.sin(i) * a / Math.sin(Math.max(Math.PI / 2 - t._pitch - i, 0.01)), h = Math.sin(t._pitch) * c + a;
|
|
14166
14166
|
return Math.min(1.01 * h, a * (1 / t._horizonShift));
|
|
@@ -14206,11 +14206,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14206
14206
|
return jg(e, e.pixelsPerMeter);
|
|
14207
14207
|
}
|
|
14208
14208
|
pointCoordinate(e, i, r, a) {
|
|
14209
|
-
const c = e.horizonLineFromTop(!1), h = new
|
|
14209
|
+
const c = e.horizonLineFromTop(!1), h = new ce(i, Math.max(c, r));
|
|
14210
14210
|
return e.rayIntersectionCoordinate(e.pointRayIntersection(h, a));
|
|
14211
14211
|
}
|
|
14212
14212
|
pointCoordinate3D(e, i, r) {
|
|
14213
|
-
const a = new
|
|
14213
|
+
const a = new ce(i, r);
|
|
14214
14214
|
if (e.elevation)
|
|
14215
14215
|
return e.elevation.pointCoordinate(a);
|
|
14216
14216
|
{
|
|
@@ -14247,18 +14247,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14247
14247
|
class Pb extends ys {
|
|
14248
14248
|
constructor(e) {
|
|
14249
14249
|
super(e), this.range = [4, 7], this.center = e.center || [-96, 37.5];
|
|
14250
|
-
const [i, r] = this.parallels = e.parallels || [29.5, 45.5], a = Math.sin(
|
|
14251
|
-
this.n = (a + Math.sin(
|
|
14250
|
+
const [i, r] = this.parallels = e.parallels || [29.5, 45.5], a = Math.sin(We(i));
|
|
14251
|
+
this.n = (a + Math.sin(We(r))) / 2, this.c = 1 + a * (2 * this.n - a), this.r0 = Math.sqrt(this.c) / this.n;
|
|
14252
14252
|
}
|
|
14253
14253
|
project(e, i) {
|
|
14254
|
-
const { n: r, c: a, r0: c } = this, h =
|
|
14254
|
+
const { n: r, c: a, r0: c } = this, h = We(e - this.center[0]), p = We(i), _ = Math.sqrt(a - 2 * r * Math.sin(p)) / r;
|
|
14255
14255
|
return { x: _ * Math.sin(h * r), y: _ * Math.cos(h * r) - c, z: 0 };
|
|
14256
14256
|
}
|
|
14257
14257
|
unproject(e, i) {
|
|
14258
14258
|
const { n: r, c: a, r0: c } = this, h = c + i;
|
|
14259
14259
|
let p = Math.atan2(e, Math.abs(h)) * Math.sign(h);
|
|
14260
14260
|
h * r < 0 && (p -= Math.PI * Math.sign(e) * Math.sign(h));
|
|
14261
|
-
const _ =
|
|
14261
|
+
const _ = We(this.center[0]) * r;
|
|
14262
14262
|
p = Ii(p, -Math.PI - _, Math.PI - _);
|
|
14263
14263
|
const y = Nt(ut(p / r) + this.center[0], -180, 180), T = Math.asin(Nt((a - (e * e + h * h) * r * r) / (2 * r), -1, 1)), A = Nt(ut(T), -85.051129, vo);
|
|
14264
14264
|
return new Ti(y, A);
|
|
@@ -14300,13 +14300,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14300
14300
|
constructor(e) {
|
|
14301
14301
|
super(e), this.center = e.center || [0, 30];
|
|
14302
14302
|
const [i, r] = this.parallels = e.parallels || [30, 30];
|
|
14303
|
-
let a =
|
|
14303
|
+
let a = We(i), c = We(r);
|
|
14304
14304
|
this.southernCenter = a + c < 0, this.southernCenter && (a = -a, c = -c);
|
|
14305
14305
|
const h = Math.cos(a), p = ud(a);
|
|
14306
14306
|
this.n = a === c ? Math.sin(a) : Math.log(h / Math.cos(c)) / Math.log(ud(c) / p), this.f = h * Math.pow(ud(a), this.n) / this.n;
|
|
14307
14307
|
}
|
|
14308
14308
|
project(e, i) {
|
|
14309
|
-
i =
|
|
14309
|
+
i = We(i), this.southernCenter && (i = -i), e = We(e - this.center[0]);
|
|
14310
14310
|
const r = 1e-6, { n: a, f: c } = this;
|
|
14311
14311
|
c > 0 ? i < -Ml + r && (i = -Ml + r) : i > Ml - r && (i = Ml - r);
|
|
14312
14312
|
const h = c / Math.pow(ud(i), a);
|
|
@@ -14334,11 +14334,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14334
14334
|
return new Ti(r, a);
|
|
14335
14335
|
}
|
|
14336
14336
|
}
|
|
14337
|
-
const Vg =
|
|
14337
|
+
const Vg = We(vo);
|
|
14338
14338
|
class Nb extends ys {
|
|
14339
14339
|
project(e, i) {
|
|
14340
|
-
const r = (i =
|
|
14341
|
-
return { x: 0.5 * ((e =
|
|
14340
|
+
const r = (i = We(i)) * i, a = r * r;
|
|
14341
|
+
return { x: 0.5 * ((e = We(e)) * (0.8707 - 0.131979 * r + a * (a * (3971e-6 * r - 1529e-6 * a) - 0.013791)) / Math.PI + 0.5), y: 1 - 0.5 * (i * (1.007226 + r * (0.015085 + a * (0.028874 * r - 0.044475 - 5916e-6 * a))) / Math.PI + 1), z: 0 };
|
|
14342
14342
|
}
|
|
14343
14343
|
unproject(e, i) {
|
|
14344
14344
|
e = (2 * e - 0.5) * Math.PI;
|
|
@@ -14353,10 +14353,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14353
14353
|
return new Ti(p, _);
|
|
14354
14354
|
}
|
|
14355
14355
|
}
|
|
14356
|
-
const Gg =
|
|
14356
|
+
const Gg = We(vo);
|
|
14357
14357
|
class Fb extends ys {
|
|
14358
14358
|
project(e, i) {
|
|
14359
|
-
i =
|
|
14359
|
+
i = We(i), e = We(e);
|
|
14360
14360
|
const r = Math.cos(i), a = 2 / Math.PI, c = Math.acos(r * Math.cos(e / 2)), h = Math.sin(c) / c, p = 0.5 * (e * a + 2 * r * Math.sin(e / 2) / h) || 0, _ = 0.5 * (i + Math.sin(i) / h) || 0;
|
|
14361
14361
|
return { x: 0.5 * (p / Math.PI + 0.5), y: 1 - 0.5 * (_ / Math.PI + 1), z: 0 };
|
|
14362
14362
|
}
|
|
@@ -14373,11 +14373,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14373
14373
|
}
|
|
14374
14374
|
class qg extends ys {
|
|
14375
14375
|
constructor(e) {
|
|
14376
|
-
super(e), this.center = e.center || [0, 0], this.parallels = e.parallels || [0, 0], this.cosPhi = Math.max(0.01, Math.cos(
|
|
14376
|
+
super(e), this.center = e.center || [0, 0], this.parallels = e.parallels || [0, 0], this.cosPhi = Math.max(0.01, Math.cos(We(this.parallels[0]))), this.scale = 1 / (2 * Math.max(Math.PI * this.cosPhi, 1 / this.cosPhi)), this.wrap = !0, this.supportsWorldCopies = !0;
|
|
14377
14377
|
}
|
|
14378
14378
|
project(e, i) {
|
|
14379
14379
|
const { scale: r, cosPhi: a } = this;
|
|
14380
|
-
return { x:
|
|
14380
|
+
return { x: We(e) * a * r + 0.5, y: -Math.sin(We(i)) / a * r + 0.5, z: 0 };
|
|
14381
14381
|
}
|
|
14382
14382
|
unproject(e, i) {
|
|
14383
14383
|
const { scale: r, cosPhi: a } = this, c = -(i - 0.5) / r, h = Nt(ut((e - 0.5) / r) / a, -180, 180), p = Math.asin(Nt(c * a, -1, 1)), _ = Nt(ut(p), -85.051129, vo);
|
|
@@ -14396,7 +14396,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14396
14396
|
const r = Qc(i.lat, i.lng), a = rr([], r), c = e.elevation ? e.elevation.getAtPointOrZero(e.locationCoordinate(i), e._centerAltitude) : e._centerAltitude;
|
|
14397
14397
|
Oc(r, r, a, qr(1, 0) * ti * c);
|
|
14398
14398
|
const h = so(new Float64Array(16));
|
|
14399
|
-
return la(h, e.pixelMatrix, e.globeMatrix), yn(r, r, h), new
|
|
14399
|
+
return la(h, e.pixelMatrix, e.globeMatrix), yn(r, r, h), new ce(r[0], r[1]);
|
|
14400
14400
|
}
|
|
14401
14401
|
pixelsPerMeter(e, i) {
|
|
14402
14402
|
return qr(1, 0) * i;
|
|
@@ -14411,7 +14411,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14411
14411
|
}
|
|
14412
14412
|
createInversionMatrix(e, i) {
|
|
14413
14413
|
const { center: r } = e, a = tu(bo(i));
|
|
14414
|
-
return Vh(a, a,
|
|
14414
|
+
return Vh(a, a, We(r.lng)), Lp(a, a, We(r.lat)), ca(a, a, [e._pixelsPerMercatorPixel, e._pixelsPerMercatorPixel, 1]), Float32Array.from(a);
|
|
14415
14415
|
}
|
|
14416
14416
|
pointCoordinate(e, i, r, a) {
|
|
14417
14417
|
return Pg(e, i, r, !0) || new dl(0, 0);
|
|
@@ -14658,7 +14658,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14658
14658
|
const _ = r.segments.prepareSegment(4, r.layoutVertexArray, r.indexArray), y = _.vertexLength, T = p.tileAnchorX, A = p.tileAnchorY;
|
|
14659
14659
|
for (let R = 0; R < 4; R++)
|
|
14660
14660
|
r.collisionVertexArray.emplaceBack(0, 0, 0, 0);
|
|
14661
|
-
r.collisionVertexArrayExt.emplaceBack(i, -e.padding, -e.padding), r.collisionVertexArrayExt.emplaceBack(i, e.padding, -e.padding), r.collisionVertexArrayExt.emplaceBack(i, e.padding, e.padding), r.collisionVertexArrayExt.emplaceBack(i, -e.padding, e.padding), this._commitLayoutVertex(r.layoutVertexArray, a, c, h, T, A, new
|
|
14661
|
+
r.collisionVertexArrayExt.emplaceBack(i, -e.padding, -e.padding), r.collisionVertexArrayExt.emplaceBack(i, e.padding, -e.padding), r.collisionVertexArrayExt.emplaceBack(i, e.padding, e.padding), r.collisionVertexArrayExt.emplaceBack(i, -e.padding, e.padding), this._commitLayoutVertex(r.layoutVertexArray, a, c, h, T, A, new ce(e.x1, e.y1)), this._commitLayoutVertex(r.layoutVertexArray, a, c, h, T, A, new ce(e.x2, e.y1)), this._commitLayoutVertex(r.layoutVertexArray, a, c, h, T, A, new ce(e.x2, e.y2)), this._commitLayoutVertex(r.layoutVertexArray, a, c, h, T, A, new ce(e.x1, e.y2)), _.vertexLength += 4;
|
|
14662
14662
|
const C = r.indexArray;
|
|
14663
14663
|
C.emplaceBack(y, y + 1), C.emplaceBack(y + 1, y + 2), C.emplaceBack(y + 2, y + 3), C.emplaceBack(y + 3, y), _.primitiveLength += 4;
|
|
14664
14664
|
}
|
|
@@ -14854,7 +14854,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14854
14854
|
continue;
|
|
14855
14855
|
const i = this.paint.get(e), r = new Wg(i), a = new tl(r, i.property.specification);
|
|
14856
14856
|
let c = null;
|
|
14857
|
-
c = i.value.kind === "constant" || i.value.kind === "source" ? new mo("source", a) : new il("composite", a, i.value.zoomStops, i.value._interpolationType), this.paint._values[e] = new
|
|
14857
|
+
c = i.value.kind === "constant" || i.value.kind === "source" ? new mo("source", a) : new il("composite", a, i.value.zoomStops, i.value._interpolationType), this.paint._values[e] = new He(i.property, c, i.parameters);
|
|
14858
14858
|
}
|
|
14859
14859
|
}
|
|
14860
14860
|
_handleOverridablePaintPropertyUpdate(e, i, r) {
|
|
@@ -14912,7 +14912,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14912
14912
|
var Hb = { paint: new $t({ "sky-type": new ve($e.paint_sky["sky-type"]), "sky-atmosphere-sun": new ve($e.paint_sky["sky-atmosphere-sun"]), "sky-atmosphere-sun-intensity": new ve($e.paint_sky["sky-atmosphere-sun-intensity"]), "sky-gradient-center": new ve($e.paint_sky["sky-gradient-center"]), "sky-gradient-radius": new ve($e.paint_sky["sky-gradient-radius"]), "sky-gradient": new Lt($e.paint_sky["sky-gradient"]), "sky-atmosphere-halo-color": new ve($e.paint_sky["sky-atmosphere-halo-color"]), "sky-atmosphere-color": new ve($e.paint_sky["sky-atmosphere-color"]), "sky-opacity": new ve($e.paint_sky["sky-opacity"]) }) };
|
|
14913
14913
|
function pf(t, e, i) {
|
|
14914
14914
|
const r = [0, 0, 1], a = M_([]);
|
|
14915
|
-
return R_(a, a, i ? -
|
|
14915
|
+
return R_(a, a, i ? -We(t) + Math.PI : We(t)), I_(a, a, -We(e)), E_(r, r, a), rr(r, r);
|
|
14916
14916
|
}
|
|
14917
14917
|
const Xb = { circle: class extends oo {
|
|
14918
14918
|
constructor(t) {
|
|
@@ -14956,7 +14956,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14956
14956
|
}
|
|
14957
14957
|
queryIntersectsFeature(t, e, i, r, a, c, h, p) {
|
|
14958
14958
|
const _ = this.paint.get("heatmap-radius").evaluate(e, i);
|
|
14959
|
-
return D_(t, r, c, h, p, !0, !0, new
|
|
14959
|
+
return D_(t, r, c, h, p, !0, !0, new ce(0, 0), _);
|
|
14960
14960
|
}
|
|
14961
14961
|
hasOffscreenPass() {
|
|
14962
14962
|
return this.paint.get("heatmap-opacity") !== 0 && this.visibility !== "none";
|
|
@@ -15032,7 +15032,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15032
15032
|
}
|
|
15033
15033
|
if (C[0] === 0 && C[1] === 1)
|
|
15034
15034
|
return !1;
|
|
15035
|
-
c.projection.name === "globe" && (r = K_([r], [new
|
|
15035
|
+
c.projection.name === "globe" && (r = K_([r], [new ce(0, 0), new ce(ti, ti)], t.tileID.canonical).map((oe) => oe.polygon).flat());
|
|
15036
15036
|
const j = R ? p : null, [ie, ae] = function(oe, de, le, Me, Ae, Ue, et, Pe, Ve, Ze, Ye) {
|
|
15037
15037
|
return oe.projection.name === "globe" ? function(tt, ze, mt, Zt, yt, Pt, _t, Yt, _i, pi, ui) {
|
|
15038
15038
|
const Qt = [], Oi = [], ri = tt.projection.upVectorScale(ui, tt.center.lat, tt.worldSize).metersToTile, gi = [0, 0, 0, 1], ji = [0, 0, 0, 1], Qi = (en, rn, mn, Bn) => {
|
|
@@ -15128,7 +15128,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15128
15128
|
return !1;
|
|
15129
15129
|
const h = __(t.tilespaceGeometry, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), c.angle, t.pixelToTileUnitsFactor), p = t.pixelToTileUnitsFactor / 2 * rg(this.paint.get("line-width").evaluate(e, i), this.paint.get("line-gap-width").evaluate(e, i)), _ = this.paint.get("line-offset").evaluate(e, i);
|
|
15130
15130
|
return _ && (r = function(y, T) {
|
|
15131
|
-
const A = [], C = new
|
|
15131
|
+
const A = [], C = new ce(0, 0);
|
|
15132
15132
|
for (let R = 0; R < y.length; R++) {
|
|
15133
15133
|
const L = y[R], O = [];
|
|
15134
15134
|
for (let j = 0; j < L.length; j++) {
|
|
@@ -15354,7 +15354,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15354
15354
|
return t === 0 ? -0.03125 : t === 32 ? 0.03125 : 0;
|
|
15355
15355
|
}
|
|
15356
15356
|
var Kg = St([{ name: "a_pos", type: "Int16", components: 2 }, { name: "a_texture_pos", type: "Int16", components: 2 }]);
|
|
15357
|
-
const Jg = { type: 2, extent: ti, loadGeometry: () => [[new
|
|
15357
|
+
const Jg = { type: 2, extent: ti, loadGeometry: () => [[new ce(0, 0), new ce(8193, 0), new ce(8193, 8193), new ce(0, 8193), new ce(0, 0)]] };
|
|
15358
15358
|
class ff {
|
|
15359
15359
|
constructor(e, i, r, a, c) {
|
|
15360
15360
|
this.tileID = e, this.uid = ge(), this.uses = 0, this.tileSize = i, this.tileZoom = r, this.buckets = {}, this.expirationTime = null, this.queryPadding = 0, this.hasSymbolBuckets = !1, this.hasRTLText = !1, this.dependencies = {}, this.isRaster = c, this.expiredRequestCount = 0, this.state = "loading", a && a.transform && (this.projection = a.transform.projection);
|
|
@@ -16118,7 +16118,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16118
16118
|
for (const r in this._tiles)
|
|
16119
16119
|
this._isIdRenderable(+r, e) && i.push(this._tiles[r]);
|
|
16120
16120
|
return e ? i.sort((r, a) => {
|
|
16121
|
-
const c = r.tileID, h = a.tileID, p = new
|
|
16121
|
+
const c = r.tileID, h = a.tileID, p = new ce(c.canonical.x, c.canonical.y)._rotate(this.transform.angle), _ = new ce(h.canonical.x, h.canonical.y)._rotate(this.transform.angle);
|
|
16122
16122
|
return c.overscaledZ - h.overscaledZ || _.y - p.y || _.x - p.x;
|
|
16123
16123
|
}).map((r) => r.tileID.key) : i.map((r) => r.tileID).sort(ay).map((r) => r.key);
|
|
16124
16124
|
}
|
|
@@ -16469,7 +16469,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16469
16469
|
}
|
|
16470
16470
|
tileCoordToPixel(e, i) {
|
|
16471
16471
|
const r = i * this._scale + this._offset[1], a = Math.floor(e * this._scale + this._offset[0]), c = Math.floor(r);
|
|
16472
|
-
return new
|
|
16472
|
+
return new ce(a, c);
|
|
16473
16473
|
}
|
|
16474
16474
|
getElevationAt(e, i, r, a) {
|
|
16475
16475
|
const c = e * this._scale + this._offset[0], h = i * this._scale + this._offset[1], p = Math.floor(c), _ = Math.floor(h), y = this._dem;
|
|
@@ -16598,7 +16598,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16598
16598
|
}
|
|
16599
16599
|
function uy(t, e, i, r, a) {
|
|
16600
16600
|
return gt(t, (c, h) => {
|
|
16601
|
-
const p = e instanceof
|
|
16601
|
+
const p = e instanceof ot ? e.get(h) : null;
|
|
16602
16602
|
return p && p.evaluate ? p.evaluate(i, r, a) : p;
|
|
16603
16603
|
});
|
|
16604
16604
|
}
|
|
@@ -17062,7 +17062,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17062
17062
|
if (this._isSkuTokenExpired() && this._createSkuToken(), t && !Ut(t))
|
|
17063
17063
|
return t;
|
|
17064
17064
|
const r = Pi(t);
|
|
17065
|
-
r.path = r.path.replace(/(\.(png|jpg)\d*)(?=$)/, `${e || i && r.authority !== "raster" && i === 512 ? "@2x" : ""}${
|
|
17065
|
+
r.path = r.path.replace(/(\.(png|jpg)\d*)(?=$)/, `${e || i && r.authority !== "raster" && i === 512 ? "@2x" : ""}${ue.supported ? ".webp" : "$1"}`), r.authority === "raster" ? r.path = `/${ee.RASTER_URL_PREFIX}${r.path}` : (r.path = r.path.replace(/^.+\/v4\//, "/"), r.path = `/${ee.TILE_URL_VERSION}${r.path}`);
|
|
17066
17066
|
const a = this._customAccessToken || function(c) {
|
|
17067
17067
|
for (const h of c) {
|
|
17068
17068
|
const p = h.match(/^access_token=(.*)$/);
|
|
@@ -17251,7 +17251,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17251
17251
|
return xr != Float32Array && (t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0), t[0] = 1, t[5] = 1, t[10] = 1, t[15] = 1, t;
|
|
17252
17252
|
}, o.create$1 = y_, o.createExpression = fo, o.createLayout = St, o.createStyleLayer = function(t) {
|
|
17253
17253
|
return t.type === "custom" ? new Wb(t) : new Xb[t.type](t);
|
|
17254
|
-
}, o.cross = zp, o.degToRad =
|
|
17254
|
+
}, o.cross = zp, o.degToRad = We, o.distance = function(t, e) {
|
|
17255
17255
|
return Math.hypot(e[0] - t[0], e[1] - t[1], e[2] - t[2]);
|
|
17256
17256
|
}, o.div = function(t, e, i) {
|
|
17257
17257
|
return t[0] = e[0] / i[0], t[1] = e[1] / i[1], t[2] = e[2] / i[2], t;
|
|
@@ -17269,7 +17269,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17269
17269
|
return t[0] === e[0] && t[1] === e[1] && t[2] === e[2] && t[3] === e[3];
|
|
17270
17270
|
}, o.exactEquals$1 = function(t, e) {
|
|
17271
17271
|
return t[0] === e[0] && t[1] === e[1] && t[2] === e[2];
|
|
17272
|
-
}, o.exported = Ot, o.exported$1 =
|
|
17272
|
+
}, o.exported = Ot, o.exported$1 = ue, o.extend = Be, o.extend$1 = Jr, o.fillExtrusionHeightLift = Y_, o.filterObject = at, o.fromMat4 = function(t, e) {
|
|
17273
17273
|
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;
|
|
17274
17274
|
}, o.fromQuat = function(t, e) {
|
|
17275
17275
|
var i = e[0], r = e[1], a = e[2], c = e[3], h = i + i, p = r + r, _ = a + a, y = i * h, T = r * h, A = r * p, C = a * h, R = a * p, L = a * _, O = c * h, j = c * p, ie = c * _;
|
|
@@ -17291,7 +17291,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17291
17291
|
let e = 1 / 0, i = 1 / 0, r = -1 / 0, a = -1 / 0;
|
|
17292
17292
|
for (const c of t)
|
|
17293
17293
|
e = Math.min(e, c.x), i = Math.min(i, c.y), r = Math.max(r, c.x), a = Math.max(a, c.y);
|
|
17294
|
-
return { min: new
|
|
17294
|
+
return { min: new ce(e, i), max: new ce(r, a) };
|
|
17295
17295
|
}, o.getColumn = _n, o.getGridMatrix = function(t, e, i, r) {
|
|
17296
17296
|
const a = e.getNorth(), c = e.getSouth(), h = e.getWest(), p = e.getEast(), _ = 1 << t.z, y = p - h, T = a - c, A = y / El, C = -T / Sl[i], R = [0, A, 0, C, 0, 0, a, h, 0];
|
|
17297
17297
|
if (t.z > 0) {
|
|
@@ -17304,10 +17304,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17304
17304
|
}, o.getLatitudinalLod = function(t) {
|
|
17305
17305
|
const e = 80.051129;
|
|
17306
17306
|
t = Nt(t, -80.051129, e) / e * 90;
|
|
17307
|
-
const i = Math.pow(Math.abs(Math.sin(
|
|
17307
|
+
const i = Math.pow(Math.abs(Math.sin(We(t))), 3);
|
|
17308
17308
|
return Math.round(i * (Sl.length - 1));
|
|
17309
17309
|
}, o.getMapSessionAPI = X, o.getPerformanceMeasurement = ht, o.getProjection = Zg, o.getRTLTextPluginStatus = _e, o.getReferrer = Ir, o.getTilePoint = function(t, { x: e, y: i }, r = 0) {
|
|
17310
|
-
return new
|
|
17310
|
+
return new ce(((e - r) * t.scale - t.x) * ti, (i * t.scale - t.y) * ti);
|
|
17311
17311
|
}, o.getTileVec3 = function(t, e, i = 0) {
|
|
17312
17312
|
return fl(((e.x - i) * t.scale - t.x) * ti, (e.y * t.scale - t.y) * ti, a_(e.z, e.y));
|
|
17313
17313
|
}, o.getVideo = function(t, e) {
|
|
@@ -17323,7 +17323,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17323
17323
|
} };
|
|
17324
17324
|
}, o.globeCenterToScreenPoint = function(t) {
|
|
17325
17325
|
const e = [0, 0, 0], i = so(new Float64Array(16));
|
|
17326
|
-
return la(i, t.pixelMatrix, t.globeMatrix), yn(e, e, i), new
|
|
17326
|
+
return la(i, t.pixelMatrix, t.globeMatrix), yn(e, e, i), new ce(e[0], e[1]);
|
|
17327
17327
|
}, o.globeDenormalizeECEF = lf, o.globeECEFOrigin = function(t, e) {
|
|
17328
17328
|
const i = [0, 0, 0];
|
|
17329
17329
|
return yn(i, i, tu(bo(e.canonical))), yn(i, i, t), i;
|
|
@@ -17359,13 +17359,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17359
17359
|
a in t && (i[a] = t[a]);
|
|
17360
17360
|
}
|
|
17361
17361
|
return i;
|
|
17362
|
-
}, o.plugin = Se, o.pointGeometry =
|
|
17362
|
+
}, o.plugin = Se, o.pointGeometry = ce, o.polesInViewport = function(t) {
|
|
17363
17363
|
const e = so(new Float64Array(16));
|
|
17364
17364
|
la(e, t.pixelMatrix, t.globeMatrix);
|
|
17365
17365
|
const i = [0, Wr, 0], r = [0, Hr, 0];
|
|
17366
17366
|
return yn(i, i, e), yn(r, r, e), [i[0] > 0 && i[0] <= t.width && i[1] > 0 && i[1] <= t.height && !cf(t, new Ti(t.center.lat, 90)), r[0] > 0 && r[0] <= t.width && r[1] > 0 && r[1] <= t.height && !cf(t, new Ti(t.center.lat, -90))];
|
|
17367
17367
|
}, o.polygonContainsPoint = aa, o.polygonIntersectsBox = m_, o.polygonIntersectsPolygon = h_, o.polygonizeBounds = function(t, e, i = 0, r = !0) {
|
|
17368
|
-
const a = new
|
|
17368
|
+
const a = new ce(i, i), c = t.sub(a), h = e.add(a), p = [c, new ce(h.x, c.y), h, new ce(c.x, h.y)];
|
|
17369
17369
|
return r && p.push(c.clone()), p;
|
|
17370
17370
|
}, o.posAttributes = Jc, o.postMapLoadEvent = ne, o.postPerformanceEvent = xe, o.postTurnstileEvent = N, o.potpack = Yp, o.prevPowerOfTwo = function(t) {
|
|
17371
17371
|
return t <= 1 ? 1 : Math.pow(2, Math.floor(Math.log(t) / Math.LN2));
|
|
@@ -17488,7 +17488,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17488
17488
|
return this.offscreenCanvasContext.clearRect(0, 0, this.offscreenCanvas.width, this.offscreenCanvas.height), W;
|
|
17489
17489
|
}
|
|
17490
17490
|
}
|
|
17491
|
-
var
|
|
17491
|
+
var ue = function Y(k, N) {
|
|
17492
17492
|
var W, ne = k && k.type;
|
|
17493
17493
|
if (ne === "FeatureCollection")
|
|
17494
17494
|
for (W = 0; W < k.features.length; W++)
|
|
@@ -17520,7 +17520,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17520
17520
|
N + W >= 0 != !!k && Y.reverse();
|
|
17521
17521
|
}
|
|
17522
17522
|
const Ie = o.VectorTileFeature.prototype.toGeoJSON;
|
|
17523
|
-
class
|
|
17523
|
+
class st {
|
|
17524
17524
|
constructor(k) {
|
|
17525
17525
|
this._feature = k, this.extent = o.EXTENT, this.type = k.type, this.properties = k.tags, "id" in k && !isNaN(k.id) && (this.id = parseInt(k.id, 10));
|
|
17526
17526
|
}
|
|
@@ -17551,10 +17551,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17551
17551
|
this.layers = { _geojsonTileLayer: this }, this.name = "_geojsonTileLayer", this.extent = o.EXTENT, this.length = k.length, this._features = k;
|
|
17552
17552
|
}
|
|
17553
17553
|
feature(k) {
|
|
17554
|
-
return new
|
|
17554
|
+
return new st(this._features[k]);
|
|
17555
17555
|
}
|
|
17556
17556
|
}
|
|
17557
|
-
var Xe = { exports: {} }, dt = o.pointGeometry, vt = o.vectorTile.VectorTileFeature,
|
|
17557
|
+
var Xe = { exports: {} }, dt = o.pointGeometry, vt = o.vectorTile.VectorTileFeature, ce = It;
|
|
17558
17558
|
function It(Y, k) {
|
|
17559
17559
|
this.options = k || {}, this.features = Y, this.length = Y.length;
|
|
17560
17560
|
}
|
|
@@ -17581,7 +17581,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17581
17581
|
}
|
|
17582
17582
|
return [k, W, N, ne];
|
|
17583
17583
|
}, Ft.prototype.toGeoJSON = vt.prototype.toGeoJSON;
|
|
17584
|
-
var zt = o.pbf,
|
|
17584
|
+
var zt = o.pbf, We = ce;
|
|
17585
17585
|
function ut(Y) {
|
|
17586
17586
|
var k = new zt();
|
|
17587
17587
|
return function(N, W) {
|
|
@@ -17665,9 +17665,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17665
17665
|
}
|
|
17666
17666
|
}
|
|
17667
17667
|
function Be(Y, k, N, W) {
|
|
17668
|
-
|
|
17668
|
+
rt(Y, N, W), rt(k, 2 * N, 2 * W), rt(k, 2 * N + 1, 2 * W + 1);
|
|
17669
17669
|
}
|
|
17670
|
-
function
|
|
17670
|
+
function rt(Y, k, N) {
|
|
17671
17671
|
const W = Y[k];
|
|
17672
17672
|
Y[k] = Y[N], Y[N] = W;
|
|
17673
17673
|
}
|
|
@@ -17679,9 +17679,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17679
17679
|
k = k || {};
|
|
17680
17680
|
var N = {};
|
|
17681
17681
|
for (var W in Y)
|
|
17682
|
-
N[W] = new
|
|
17682
|
+
N[W] = new We(Y[W].features, k), N[W].name = W, N[W].version = k.version, N[W].extent = k.extent;
|
|
17683
17683
|
return ut({ layers: N });
|
|
17684
|
-
}, Xe.exports.GeoJSONWrapper =
|
|
17684
|
+
}, Xe.exports.GeoJSONWrapper = We;
|
|
17685
17685
|
const Ne = (Y) => Y[0], Ge = (Y) => Y[1];
|
|
17686
17686
|
class pt {
|
|
17687
17687
|
constructor(k, N = Ne, W = Ge, ne = 64, fe = Float64Array) {
|
|
@@ -18266,7 +18266,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18266
18266
|
if (typeof xe != "object")
|
|
18267
18267
|
return N(new Error(`Input data given to '${k.source}' is not a valid GeoJSON object.`));
|
|
18268
18268
|
{
|
|
18269
|
-
|
|
18269
|
+
ue(xe, !0);
|
|
18270
18270
|
try {
|
|
18271
18271
|
if (k.filter) {
|
|
18272
18272
|
const X = o.createExpression(k.filter, { type: "boolean", "property-type": "data-driven", overridable: !1, transition: !1 });
|
|
@@ -18529,7 +18529,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18529
18529
|
}(l);
|
|
18530
18530
|
}
|
|
18531
18531
|
var ee = {};
|
|
18532
|
-
function
|
|
18532
|
+
function ue(l, n, s) {
|
|
18533
18533
|
const u = o.window.document.createElement(l);
|
|
18534
18534
|
return n !== void 0 && (u.className = n), s && s.appendChild(u), u;
|
|
18535
18535
|
}
|
|
@@ -18541,12 +18541,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18541
18541
|
}
|
|
18542
18542
|
te.webGLContextAttributes = { antialias: !1, alpha: !0, stencil: !0, depth: !0 };
|
|
18543
18543
|
const Ee = o.window.document && o.window.document.documentElement.style, Ie = Ee && Ee.userSelect !== void 0 ? "userSelect" : "WebkitUserSelect";
|
|
18544
|
-
let
|
|
18544
|
+
let st;
|
|
18545
18545
|
function Mt() {
|
|
18546
|
-
Ee && Ie && (
|
|
18546
|
+
Ee && Ie && (st = Ee[Ie], Ee[Ie] = "none");
|
|
18547
18547
|
}
|
|
18548
18548
|
function Xe() {
|
|
18549
|
-
Ee && Ie && (Ee[Ie] =
|
|
18549
|
+
Ee && Ie && (Ee[Ie] = st);
|
|
18550
18550
|
}
|
|
18551
18551
|
function dt(l) {
|
|
18552
18552
|
l.preventDefault(), l.stopPropagation(), o.window.removeEventListener("click", dt, !0);
|
|
@@ -18556,7 +18556,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18556
18556
|
o.window.removeEventListener("click", dt, !0);
|
|
18557
18557
|
}, 0);
|
|
18558
18558
|
}
|
|
18559
|
-
function
|
|
18559
|
+
function ce(l, n) {
|
|
18560
18560
|
const s = l.getBoundingClientRect();
|
|
18561
18561
|
return zt(l, s, n);
|
|
18562
18562
|
}
|
|
@@ -18573,7 +18573,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18573
18573
|
const u = l.offsetWidth === n.width ? 1 : l.offsetWidth / n.width;
|
|
18574
18574
|
return new o.pointGeometry((s.clientX - n.left) * u, (s.clientY - n.top) * u);
|
|
18575
18575
|
}
|
|
18576
|
-
function
|
|
18576
|
+
function We(l, n) {
|
|
18577
18577
|
var s = n[0], u = n[1], d = n[2], f = n[3], v = s * f - d * u;
|
|
18578
18578
|
return v ? (l[0] = f * (v = 1 / v), l[1] = -u * v, l[2] = -d * v, l[3] = s * v, l) : null;
|
|
18579
18579
|
}
|
|
@@ -18769,7 +18769,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18769
18769
|
const s = 0.5 / Math.tan(0.5 * n);
|
|
18770
18770
|
return [l.range[0] + s, l.range[1] + s];
|
|
18771
18771
|
}
|
|
18772
|
-
const Be = new o.Properties({ range: new o.DataConstantProperty(o.spec.fog.range), color: new o.DataConstantProperty(o.spec.fog.color), "high-color": new o.DataConstantProperty(o.spec.fog["high-color"]), "space-color": new o.DataConstantProperty(o.spec.fog["space-color"]), "horizon-blend": new o.DataConstantProperty(o.spec.fog["horizon-blend"]), "star-intensity": new o.DataConstantProperty(o.spec.fog["star-intensity"]) }),
|
|
18772
|
+
const Be = new o.Properties({ range: new o.DataConstantProperty(o.spec.fog.range), color: new o.DataConstantProperty(o.spec.fog.color), "high-color": new o.DataConstantProperty(o.spec.fog["high-color"]), "space-color": new o.DataConstantProperty(o.spec.fog["space-color"]), "horizon-blend": new o.DataConstantProperty(o.spec.fog["horizon-blend"]), "star-intensity": new o.DataConstantProperty(o.spec.fog["star-intensity"]) }), rt = "-transition";
|
|
18773
18773
|
class ge extends o.Evented {
|
|
18774
18774
|
constructor(n, s) {
|
|
18775
18775
|
super(), this._transitionable = new o.Transitionable(Be), this.set(n), this._transitioning = this._transitionable.untransitioned(), this._transform = s;
|
|
@@ -18787,7 +18787,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18787
18787
|
n && n[u] === void 0 && (n[u] = o.spec.fog[u].default);
|
|
18788
18788
|
for (const u in n) {
|
|
18789
18789
|
const d = n[u];
|
|
18790
|
-
o.endsWith(u,
|
|
18790
|
+
o.endsWith(u, rt) ? this._transitionable.setTransition(u.slice(0, -rt.length), d) : this._transitionable.setValue(u, d);
|
|
18791
18791
|
}
|
|
18792
18792
|
}
|
|
18793
18793
|
}
|
|
@@ -20213,7 +20213,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20213
20213
|
const E = o.calculateGlobeLabelMatrix(d, n);
|
|
20214
20214
|
o.multiply(w, w, E);
|
|
20215
20215
|
} else {
|
|
20216
|
-
const E =
|
|
20216
|
+
const E = We([], v);
|
|
20217
20217
|
w[0] = E[0], w[1] = E[1], w[4] = E[2], w[5] = E[3], u || o.rotateZ(w, w, d.angle);
|
|
20218
20218
|
}
|
|
20219
20219
|
else
|
|
@@ -20275,14 +20275,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20275
20275
|
Pn(De, H);
|
|
20276
20276
|
continue;
|
|
20277
20277
|
}
|
|
20278
|
-
const Je = xt(s.transform.cameraToCenterDistance, ke[3]), Oe = o.evaluateSizeForFeature(z, U, _e),
|
|
20279
|
-
if (
|
|
20278
|
+
const Je = xt(s.transform.cameraToCenterDistance, ke[3]), Oe = o.evaluateSizeForFeature(z, U, _e), He = v ? Oe / Je : Oe * Je, ot = Kn(nt, Te, je, d);
|
|
20279
|
+
if (ot[3] <= 0) {
|
|
20280
20280
|
Pn(De, H);
|
|
20281
20281
|
continue;
|
|
20282
20282
|
}
|
|
20283
20283
|
let ve = {};
|
|
20284
|
-
const Le = v ? null : E, Lt = di(_e,
|
|
20285
|
-
pe = Lt.useVertical, Le && Lt.needsFlipping && (ve = {}), (Lt.notEnoughRoom || pe || Lt.needsFlipping && di(_e,
|
|
20284
|
+
const Le = v ? null : E, Lt = di(_e, He, !1, w, n, d, f, l.glyphOffsetArray, V, H, $, ot, ye, ve, K, Le, M.projection, I, v);
|
|
20285
|
+
pe = Lt.useVertical, Le && Lt.needsFlipping && (ve = {}), (Lt.notEnoughRoom || pe || Lt.needsFlipping && di(_e, He, !0, w, n, d, f, l.glyphOffsetArray, V, H, $, ot, ye, ve, K, Le, M.projection, I, v).notEnoughRoom) && Pn(De, H);
|
|
20286
20286
|
}
|
|
20287
20287
|
u ? (l.text.dynamicLayoutVertexBuffer.updateData(H), $ && l.text.globeExtVertexBuffer.updateData($)) : (l.icon.dynamicLayoutVertexBuffer.updateData(H), $ && l.icon.globeExtVertexBuffer.updateData($));
|
|
20288
20288
|
}
|
|
@@ -20301,20 +20301,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20301
20301
|
function di(l, n, s, u, d, f, v, w, E, I, M, z, U, Z, q, H, $, V, J) {
|
|
20302
20302
|
const K = n / 24, re = l.lineOffsetX * K, pe = l.lineOffsetY * K, { lineStartIndex: he, glyphStartIndex: _e, numGlyphs: De, segment: Se, writingMode: ye, flipState: nt } = l, Te = he + l.lineLength, je = (ke) => {
|
|
20303
20303
|
if (M) {
|
|
20304
|
-
const [
|
|
20305
|
-
o.updateGlobeVertexNormal(M, Lt + 0,
|
|
20304
|
+
const [ot, ve, Le] = ke.up, Lt = I.length;
|
|
20305
|
+
o.updateGlobeVertexNormal(M, Lt + 0, ot, ve, Le), o.updateGlobeVertexNormal(M, Lt + 1, ot, ve, Le), o.updateGlobeVertexNormal(M, Lt + 2, ot, ve, Le), o.updateGlobeVertexNormal(M, Lt + 3, ot, ve, Le);
|
|
20306
20306
|
}
|
|
20307
|
-
const [Je, Oe,
|
|
20308
|
-
o.addDynamicAttributes(I, Je, Oe,
|
|
20307
|
+
const [Je, Oe, He] = ke.point;
|
|
20308
|
+
o.addDynamicAttributes(I, Je, Oe, He, ke.angle);
|
|
20309
20309
|
};
|
|
20310
20310
|
if (De > 1) {
|
|
20311
20311
|
const ke = Rr(K, w, re, pe, s, z, U, l, E, f, Z, H, !1, $, V, J);
|
|
20312
20312
|
if (!ke)
|
|
20313
20313
|
return { notEnoughRoom: !0 };
|
|
20314
20314
|
if (u && !s) {
|
|
20315
|
-
let [Je, Oe,
|
|
20316
|
-
[Je, Oe] = Kn(Je, Oe,
|
|
20317
|
-
const Lt = Do(ye, nt, (
|
|
20315
|
+
let [Je, Oe, He] = ke.first.point, [ot, ve, Le] = ke.last.point;
|
|
20316
|
+
[Je, Oe] = Kn(Je, Oe, He, v), [ot, ve] = Kn(ot, ve, Le, v);
|
|
20317
|
+
const Lt = Do(ye, nt, (ot - Je) * q, ve - Oe);
|
|
20318
20318
|
if (l.flipState = Lt && Lt.needsFlipping ? 1 : 2, Lt)
|
|
20319
20319
|
return Lt;
|
|
20320
20320
|
}
|
|
@@ -20328,7 +20328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20328
20328
|
je(ke.last);
|
|
20329
20329
|
} else {
|
|
20330
20330
|
if (u && !s) {
|
|
20331
|
-
const Je = Kn(U.x, U.y, 0, d), Oe = he + Se + 1,
|
|
20331
|
+
const Je = Kn(U.x, U.y, 0, d), Oe = he + Se + 1, He = new o.pointGeometry(E.getx(Oe), E.gety(Oe)), ot = Kn(He.x, He.y, 0, d), ve = ot[3] > 0 ? ot : Jo(U, He, Je, 1, d, void 0, $, V.canonical), Le = Do(ye, nt, (ve[0] - Je[0]) * q, ve[1] - Je[1]);
|
|
20332
20332
|
if (l.flipState = Le && Le.needsFlipping ? 1 : 2, Le)
|
|
20333
20333
|
return Le;
|
|
20334
20334
|
}
|
|
@@ -20368,18 +20368,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20368
20368
|
De += Se, Se = o.distance(_e, he);
|
|
20369
20369
|
}
|
|
20370
20370
|
q && U && (z[pe] && (he = Je(), Se = o.distance(_e, he)), z[pe] = he);
|
|
20371
|
-
const Oe = (ye - De) / Se,
|
|
20372
|
-
let Le = [0, 0, 1], Lt =
|
|
20373
|
-
if (V && (Le = H.upVector($.canonical,
|
|
20371
|
+
const Oe = (ye - De) / Se, He = je.sub(ke)._mult(Oe)._add(ke), ot = o.sub([], he, _e), ve = o.scaleAndAdd([], _e, ot, Oe);
|
|
20372
|
+
let Le = [0, 0, 1], Lt = ot[0], $t = ot[1];
|
|
20373
|
+
if (V && (Le = H.upVector($.canonical, He.x, He.y), Le[0] !== 0 || Le[1] !== 0 || Le[2] !== 1)) {
|
|
20374
20374
|
const Jt = [Le[2], 0, -Le[0]], ci = o.cross([], Le, Jt);
|
|
20375
|
-
o.normalize(Jt, Jt), o.normalize(ci, ci), Lt = o.dot(
|
|
20375
|
+
o.normalize(Jt, Jt), o.normalize(ci, ci), Lt = o.dot(ot, Jt), $t = o.dot(ot, ci);
|
|
20376
20376
|
}
|
|
20377
20377
|
if (s) {
|
|
20378
|
-
const Jt = o.cross([], Le,
|
|
20378
|
+
const Jt = o.cross([], Le, ot);
|
|
20379
20379
|
o.normalize(Jt, Jt), o.scaleAndAdd(ve, ve, Jt, s * K);
|
|
20380
20380
|
}
|
|
20381
20381
|
const kt = re + Math.atan2($t, Lt);
|
|
20382
|
-
return nt.push(ve), Z && Te.push(
|
|
20382
|
+
return nt.push(ve), Z && Te.push(He), { point: ve, angle: kt, path: nt, tilePath: Te, up: Le };
|
|
20383
20383
|
}
|
|
20384
20384
|
function Pn(l, n) {
|
|
20385
20385
|
const s = n.length, u = s + 4 * l;
|
|
@@ -20408,36 +20408,36 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20408
20408
|
const $ = [], V = this.transform.elevation, J = n.getProjection(), K = V ? V.getAtTileOffsetFunc(H, this.transform.center.lat, this.transform.worldSize, J) : null, re = new o.pointGeometry(u.tileAnchorX, u.tileAnchorY);
|
|
20409
20409
|
let { x: pe, y: he, z: _e } = J.projectTilePoint(re.x, re.y, H.canonical);
|
|
20410
20410
|
if (K) {
|
|
20411
|
-
const [
|
|
20412
|
-
pe +=
|
|
20411
|
+
const [He, ot, ve] = K(re);
|
|
20412
|
+
pe += He, he += ot, _e += ve;
|
|
20413
20413
|
}
|
|
20414
20414
|
const De = J.name === "globe", Se = this.projectAndGetPerspectiveRatio(w, pe, he, _e, H, De || !!V || this.transform.pitch > 0, J), { perspectiveRatio: ye } = Se, nt = (z ? v / ye : v * ye) / o.ONE_EM, Te = Kn(pe, he, _e, E), je = Se.signedDistanceFromCamera > 0 ? Rr(nt, f, u.lineOffsetX * nt, u.lineOffsetY * nt, !1, Te, re, u, d, E, {}, V && !z ? K : null, z && !!V, J, H, z) : null;
|
|
20415
20415
|
let ke = !1, Je = !1, Oe = !0;
|
|
20416
20416
|
if (je && !Se.occluded) {
|
|
20417
|
-
const
|
|
20417
|
+
const He = 0.5 * Z * ye + q, ot = new o.pointGeometry(-100, -100), ve = new o.pointGeometry(this.screenRightBoundary, this.screenBottomBoundary), Le = new An(), { first: Lt, last: $t } = je, kt = Lt.path.length;
|
|
20418
20418
|
let Jt = [];
|
|
20419
20419
|
for (let St = kt - 1; St >= 1; St--)
|
|
20420
20420
|
Jt.push(Lt.path[St]);
|
|
20421
20421
|
for (let St = 1; St < $t.path.length; St++)
|
|
20422
20422
|
Jt.push($t.path[St]);
|
|
20423
|
-
const ci = 2.5 *
|
|
20423
|
+
const ci = 2.5 * He;
|
|
20424
20424
|
I && (Jt = Jt.map(([St, zi, Ci], Gi) => (K && !De && (Ci = K(Gi < kt - 1 ? Lt.tilePath[kt - 1 - Gi] : $t.tilePath[Gi - kt + 2])[2]), Kn(St, zi, Ci, I))), Jt.some((St) => St[3] <= 0) && (Jt = []));
|
|
20425
20425
|
let Vt = [];
|
|
20426
20426
|
if (Jt.length > 0) {
|
|
20427
20427
|
let St = 1 / 0, zi = -1 / 0, Ci = 1 / 0, Gi = -1 / 0;
|
|
20428
20428
|
for (const Ui of Jt)
|
|
20429
20429
|
St = Math.min(St, Ui[0]), Ci = Math.min(Ci, Ui[1]), zi = Math.max(zi, Ui[0]), Gi = Math.max(Gi, Ui[1]);
|
|
20430
|
-
zi >=
|
|
20430
|
+
zi >= ot.x && St <= ve.x && Gi >= ot.y && Ci <= ve.y && (Vt = [Jt.map((Ui) => new o.pointGeometry(Ui[0], Ui[1]))], (St < ot.x || zi > ve.x || Ci < ot.y || Gi > ve.y) && (Vt = o.clipLine(Vt, ot.x, ot.y, ve.x, ve.y)));
|
|
20431
20431
|
}
|
|
20432
20432
|
for (const St of Vt) {
|
|
20433
|
-
Le.reset(St, 0.25 *
|
|
20433
|
+
Le.reset(St, 0.25 * He);
|
|
20434
20434
|
let zi = 0;
|
|
20435
|
-
zi = Le.length <= 0.5 *
|
|
20435
|
+
zi = Le.length <= 0.5 * He ? 1 : Math.ceil(Le.paddedLength / ci) + 1;
|
|
20436
20436
|
for (let Ci = 0; Ci < zi; Ci++) {
|
|
20437
20437
|
const Gi = Ci / Math.max(zi - 1, 1), Ui = Le.lerp(Gi), nr = Ui.x + Br, ur = Ui.y + Br;
|
|
20438
|
-
$.push(nr, ur,
|
|
20439
|
-
const Jn = nr -
|
|
20440
|
-
if (Oe = Oe && this.isOffscreen(Jn, jr, Ji, qi), Je = Je || this.isInsideGrid(Jn, jr, Ji, qi), !s && this.grid.hitTestCircle(nr, ur,
|
|
20438
|
+
$.push(nr, ur, He, 0);
|
|
20439
|
+
const Jn = nr - He, jr = ur - He, Ji = nr + He, qi = ur + He;
|
|
20440
|
+
if (Oe = Oe && this.isOffscreen(Jn, jr, Ji, qi), Je = Je || this.isInsideGrid(Jn, jr, Ji, qi), !s && this.grid.hitTestCircle(nr, ur, He, U) && (ke = !0, !M))
|
|
20441
20441
|
return { circles: [], offscreen: !1, collisionDetected: ke, occluded: !1 };
|
|
20442
20442
|
}
|
|
20443
20443
|
}
|
|
@@ -20627,7 +20627,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20627
20627
|
return;
|
|
20628
20628
|
if (U)
|
|
20629
20629
|
return void (this.placements[Je] = new Ps(!1, !1, !1));
|
|
20630
|
-
let
|
|
20630
|
+
let He = !1, ot = !1, ve = !0, Le = !1, Lt = !1, $t = null, kt = { box: null, offscreen: null, occluded: null }, Jt = { box: null, offscreen: null, occluded: null }, ci = null, Vt = null, St = null, zi = 0, Ci = 0, Gi = 0;
|
|
20631
20631
|
ke.textFeatureIndex ? zi = ke.textFeatureIndex : Te.useRuntimeCollisionCircles && (zi = Te.featureIndex), ke.verticalTextFeatureIndex && (Ci = ke.verticalTextFeatureIndex);
|
|
20632
20632
|
const Ui = (Ji) => {
|
|
20633
20633
|
Ji.tileID = this.retainedQueryData[f.bucketInstanceId].tileID;
|
|
@@ -20665,7 +20665,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20665
20665
|
for (let ps = 0; ps < ra; ++ps) {
|
|
20666
20666
|
const Gr = this.attemptAnchorPlacement(Si[ps % Si.length], Hi, qn, vr, no, pe, he, z, w, $, ps >= Si.length, Te, je, f, na, $r, q, H);
|
|
20667
20667
|
if (Gr && (Vr = Gr.placedGlyphBoxes, Vr && Vr.box && Vr.box.length)) {
|
|
20668
|
-
|
|
20668
|
+
He = !0, $t = Gr.shift;
|
|
20669
20669
|
break;
|
|
20670
20670
|
}
|
|
20671
20671
|
}
|
|
@@ -20674,9 +20674,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20674
20674
|
qi(() => gn(nr, ke.iconBox, o.WritingMode.horizontal), () => {
|
|
20675
20675
|
const Hi = ke.verticalTextBox;
|
|
20676
20676
|
return Hi && Ui(Hi), f.allowVerticalPlacement && !(kt && kt.box && kt.box.length) && Oe > 0 && Hi ? gn(Hi, ke.verticalIconBox, o.WritingMode.vertical) : { box: null, offscreen: null, occluded: null };
|
|
20677
|
-
}), kt && (
|
|
20677
|
+
}), kt && (He = kt.box, ve = kt.offscreen, Le = kt.occluded);
|
|
20678
20678
|
const Gn = Ji(kt && kt.box);
|
|
20679
|
-
if (!
|
|
20679
|
+
if (!He && this.prevPlacement) {
|
|
20680
20680
|
const Hi = this.prevPlacement.variableOffsets[Je];
|
|
20681
20681
|
Hi && (this.variableOffsets[Je] = Hi, this.markUsedJustification(f, Hi.anchor, Te, Gn));
|
|
20682
20682
|
}
|
|
@@ -20691,9 +20691,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20691
20691
|
}), Ji(kt && kt.box && kt.box.length);
|
|
20692
20692
|
}
|
|
20693
20693
|
}
|
|
20694
|
-
if (ci = kt,
|
|
20694
|
+
if (ci = kt, He = ci && ci.box && ci.box.length > 0, ve = ci && ci.offscreen, Le = ci && ci.occluded, Te.useRuntimeCollisionCircles) {
|
|
20695
20695
|
const Ji = f.text.placedSymbolArray.get(Te.centerJustifiedTextSymbolIndex >= 0 ? Te.centerJustifiedTextSymbolIndex : Te.verticalPlacedTextSymbolIndex), qi = o.evaluateSizeForFeature(f.textSizeData, q, Ji), Si = v.get("text-padding");
|
|
20696
|
-
Vt = this.collisionIndex.placeCollisionCircles(f, K, Ji, f.lineVertexArray, f.glyphOffsetArray, qi, w, E, I, u, he, $.predicate, Te.collisionCircleDiameter * qi / o.ONE_EM, Si, this.retainedQueryData[f.bucketInstanceId].tileID),
|
|
20696
|
+
Vt = this.collisionIndex.placeCollisionCircles(f, K, Ji, f.lineVertexArray, f.glyphOffsetArray, qi, w, E, I, u, he, $.predicate, Te.collisionCircleDiameter * qi / o.ONE_EM, Si, this.retainedQueryData[f.bucketInstanceId].tileID), He = K || Vt.circles.length > 0 && !Vt.collisionDetected, ve = ve && Vt.offscreen, Le = Vt.occluded;
|
|
20697
20697
|
}
|
|
20698
20698
|
if (ke.iconFeatureIndex && (Gi = ke.iconFeatureIndex), ke.iconBox) {
|
|
20699
20699
|
const Ji = (qi) => {
|
|
@@ -20701,10 +20701,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20701
20701
|
const Si = _e && $t ? zs($t.x, $t.y, pe, he, this.transform.angle) : new o.pointGeometry(0, 0), gn = f.getSymbolInstanceIconSize(H, this.transform.zoom, Te.placedIconSymbolIndex);
|
|
20702
20702
|
return this.collisionIndex.placeCollisionBox(f, gn, qi, Si, re, z, w, $.predicate);
|
|
20703
20703
|
};
|
|
20704
|
-
Jt && Jt.box && Jt.box.length && ke.verticalIconBox ? (St = Ji(ke.verticalIconBox),
|
|
20704
|
+
Jt && Jt.box && Jt.box.length && ke.verticalIconBox ? (St = Ji(ke.verticalIconBox), ot = St.box.length > 0) : (St = Ji(ke.iconBox), ot = St.box.length > 0), ve = ve && St.offscreen, Lt = St.occluded;
|
|
20705
20705
|
}
|
|
20706
20706
|
const ur = V || Te.numHorizontalGlyphVertices === 0 && Oe === 0, Jn = J || Te.numIconVertices === 0;
|
|
20707
|
-
if (ur || Jn ? Jn ? ur || (
|
|
20707
|
+
if (ur || Jn ? Jn ? ur || (ot = ot && He) : He = ot && He : ot = He = ot && He, He && ci && ci.box && this.collisionIndex.insertCollisionBox(ci.box, v.get("text-ignore-placement"), f.bucketInstanceId, Jt && Jt.box && Ci ? Ci : zi, $.ID), ot && St && this.collisionIndex.insertCollisionBox(St.box, v.get("icon-ignore-placement"), f.bucketInstanceId, Gi, $.ID), Vt && (He && this.collisionIndex.insertCollisionCircles(Vt.circles, v.get("text-ignore-placement"), f.bucketInstanceId, zi, $.ID), u)) {
|
|
20708
20708
|
const Ji = f.bucketInstanceId;
|
|
20709
20709
|
let qi = this.collisionCircleArrays[Ji];
|
|
20710
20710
|
qi === void 0 && (qi = this.collisionCircleArrays[Ji] = new Da());
|
|
@@ -20712,7 +20712,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20712
20712
|
qi.circles.push(Vt.circles[Si + 0]), qi.circles.push(Vt.circles[Si + 1]), qi.circles.push(Vt.circles[Si + 2]), qi.circles.push(Vt.collisionDetected ? 1 : 0);
|
|
20713
20713
|
}
|
|
20714
20714
|
const jr = f.projection.name !== "globe";
|
|
20715
|
-
Se = Se && (jr || !Le), ye = ye && (jr || !Lt), this.placements[Je] = new Ps(
|
|
20715
|
+
Se = Se && (jr || !Le), ye = ye && (jr || !Lt), this.placements[Je] = new Ps(He || Se, ot || ye, ve || f.justReloaded), s[Je] = !0;
|
|
20716
20716
|
};
|
|
20717
20717
|
if (De) {
|
|
20718
20718
|
const Te = f.getSortedSymbolIndexes(this.transform.angle);
|
|
@@ -20784,8 +20784,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
20784
20784
|
if (!_e && !De || he.isHidden() || H++, _e) {
|
|
20785
20785
|
const Te = Ln(he.text);
|
|
20786
20786
|
q(n.text, J, ye ? Qo : Te), q(n.text, K, nt ? Qo : Te);
|
|
20787
|
-
const je = he.text.isHidden(), { leftJustifiedTextSymbolIndex: ke, centerJustifiedTextSymbolIndex: Je, rightJustifiedTextSymbolIndex: Oe, verticalPlacedTextSymbolIndex:
|
|
20788
|
-
ke >= 0 && (
|
|
20787
|
+
const je = he.text.isHidden(), { leftJustifiedTextSymbolIndex: ke, centerJustifiedTextSymbolIndex: Je, rightJustifiedTextSymbolIndex: Oe, verticalPlacedTextSymbolIndex: He } = V, ot = n.text.placedSymbolArray, ve = je || ye ? 1 : 0;
|
|
20788
|
+
ke >= 0 && (ot.get(ke).hidden = ve), Je >= 0 && (ot.get(Je).hidden = ve), Oe >= 0 && (ot.get(Oe).hidden = ve), He >= 0 && (ot.get(He).hidden = je || nt ? 1 : 0);
|
|
20789
20789
|
const Le = this.variableOffsets[re];
|
|
20790
20790
|
Le && this.markUsedJustification(n, Le.anchor, V, Se);
|
|
20791
20791
|
const Lt = this.placedOrientations[re];
|
|
@@ -23490,21 +23490,21 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
23490
23490
|
const J = I.options.showTerrainWireframe ? 2 : 0, K = I.transform, re = o.globeUseCustomAntiAliasing(I, q, K), pe = (Je, Oe) => {
|
|
23491
23491
|
if (V === Je)
|
|
23492
23492
|
return;
|
|
23493
|
-
const
|
|
23494
|
-
re &&
|
|
23493
|
+
const He = [is[Je], "PROJECTION_GLOBE_VIEW"];
|
|
23494
|
+
re && He.push("CUSTOM_ANTIALIASING"), Oe && He.push(is[J]), $ = I.useProgram("globeRaster", null, He), V = Je;
|
|
23495
23495
|
}, he = I.colorModeForRenderPass(), _e = new o.DepthMode(H.LEQUAL, o.DepthMode.ReadWrite, I.depthRangeFor3D);
|
|
23496
23496
|
Po.update(Z);
|
|
23497
23497
|
const De = o.calculateGlobeMercatorMatrix(K), Se = [o.mercatorXfromLng(K.center.lng), o.mercatorYfromLat(K.center.lat)], ye = J ? [!1, !0] : [!1], nt = I.globeSharedBuffers, Te = [K.width * o.exported.devicePixelRatio, K.height * o.exported.devicePixelRatio], je = Float32Array.from(K.globeMatrix), ke = { useDenormalizedUpVectorScale: !0 };
|
|
23498
23498
|
if (ye.forEach((Je) => {
|
|
23499
23499
|
V = -1;
|
|
23500
23500
|
const Oe = Je ? H.LINES : H.TRIANGLES;
|
|
23501
|
-
for (const
|
|
23502
|
-
const
|
|
23503
|
-
ja(Le, Lt) && Po.newMorphing(
|
|
23504
|
-
const $t = Po.getMorphValuesForProxy(
|
|
23501
|
+
for (const He of U) {
|
|
23502
|
+
const ot = z.getTile(He), ve = o.StencilMode.disabled, Le = M.prevTerrainTileForTile[He.key], Lt = M.terrainTileForTile[He.key];
|
|
23503
|
+
ja(Le, Lt) && Po.newMorphing(He.key, Le, Lt, Z, 250), q.activeTexture.set(H.TEXTURE0), ot.texture.bind(H.LINEAR, H.CLAMP_TO_EDGE);
|
|
23504
|
+
const $t = Po.getMorphValuesForProxy(He.key), kt = $t ? 1 : 0;
|
|
23505
23505
|
$t && o.extend$1(ke, { morphing: { srcDemTile: $t.from, dstDemTile: $t.to, phase: o.easeCubicInOut($t.phase) } });
|
|
23506
|
-
const Jt = o.tileCornersToBounds(
|
|
23507
|
-
if (pe(kt, Je), M.setupElevationDraw(
|
|
23506
|
+
const Jt = o.tileCornersToBounds(He.canonical), ci = o.getLatitudinalLod(Jt.getCenter().lat), Vt = o.getGridMatrix(He.canonical, Jt, ci, K.worldSize / K._pixelsPerMercatorPixel), St = o.globeNormalizeECEF(o.globeTileBounds(He.canonical)), zi = Ql(K.projMatrix, je, De, St, o.globeToMercatorTransition(K.zoom), Se, K.frustumCorners.TL, K.frustumCorners.TR, K.frustumCorners.BR, K.frustumCorners.BL, K.globeCenterInViewSpace, K.globeRadius, Te, Vt);
|
|
23507
|
+
if (pe(kt, Je), M.setupElevationDraw(ot, $, ke), I.prepareDrawProgram(q, $, He.toUnwrapped()), nt) {
|
|
23508
23508
|
const [Ci, Gi, Ui] = Je ? nt.getWirefameBuffers(I.context, ci) : nt.getGridBuffers(ci);
|
|
23509
23509
|
$.draw(q, Oe, _e, ve, he, o.CullFaceMode.backCCW, zi, "globe_raster", Ci, Gi, Ui);
|
|
23510
23510
|
}
|
|
@@ -23513,11 +23513,11 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
|
|
|
23513
23513
|
const Je = ["GLOBE_POLES", "PROJECTION_GLOBE_VIEW"];
|
|
23514
23514
|
re && Je.push("CUSTOM_ANTIALIASING"), $ = I.useProgram("globeRaster", null, Je);
|
|
23515
23515
|
for (const Oe of U) {
|
|
23516
|
-
const { x:
|
|
23516
|
+
const { x: He, y: ot, z: ve } = Oe.canonical, Le = ot === 0, Lt = ot === (1 << ve) - 1, [$t, kt, Jt, ci] = nt.getPoleBuffers(ve);
|
|
23517
23517
|
if (ci && (Le || Lt)) {
|
|
23518
23518
|
const Vt = z.getTile(Oe);
|
|
23519
23519
|
q.activeTexture.set(H.TEXTURE0), Vt.texture.bind(H.LINEAR, H.CLAMP_TO_EDGE);
|
|
23520
|
-
let St = o.globePoleMatrixForTile(ve,
|
|
23520
|
+
let St = o.globePoleMatrixForTile(ve, He, K);
|
|
23521
23521
|
const zi = o.globeNormalizeECEF(o.globeTileBounds(Oe.canonical)), Ci = (Gi, Ui) => Gi.draw(q, H.TRIANGLES, _e, o.StencilMode.disabled, he, o.CullFaceMode.disabled, Ql(K.projMatrix, St, St, zi, 0, Se, K.frustumCorners.TL, K.frustumCorners.TR, K.frustumCorners.BR, K.frustumCorners.BL, K.globeCenterInViewSpace, K.globeRadius, Te), "globe_pole_raster", Ui, Jt, ci);
|
|
23522
23522
|
M.setupElevationDraw(Vt, $, ke), I.prepareDrawProgram(q, $, Oe.toUnwrapped()), Le && Ci($, $t), Lt && (St = o.scale(o.create(), St, [1, -1, 1]), Ci($, kt));
|
|
23523
23523
|
}
|
|
@@ -24142,10 +24142,10 @@ precision highp float;
|
|
|
24142
24142
|
ye = Lt * $t * J, nt = Lt * kt * J, Te = Lt * Jt * J;
|
|
24143
24143
|
}
|
|
24144
24144
|
let [je, ke, Je, Oe] = Kn(re.projectedAnchorX + ye, re.projectedAnchorY + nt, re.projectedAnchorZ + Te, s ? $ : v);
|
|
24145
|
-
const
|
|
24146
|
-
let
|
|
24147
|
-
s && (
|
|
24148
|
-
const ve = hp(Se,
|
|
24145
|
+
const He = xt(f.getCameraToCenterDistance(H), Oe);
|
|
24146
|
+
let ot = d.evaluateSizeForFeature(l.textSizeData, I, re) * He / o.ONE_EM;
|
|
24147
|
+
s && (ot *= l.tilePixelRatio / E);
|
|
24148
|
+
const ve = hp(Se, ot);
|
|
24149
24149
|
s ? ({ x: je, y: ke, z: Je } = H.projectTilePoint(pe + ve.x, he + ve.y, w.canonical), [je, ke, Je] = Kn(je + ye, ke + nt, Je + Te, v)) : (n && ve._rotate(-f.angle), je += ve.x, ke += ve.y, Je = 0);
|
|
24150
24150
|
const Le = l.allowVerticalPlacement && re.placedOrientation === o.WritingMode.vertical ? Math.PI / 2 : 0;
|
|
24151
24151
|
for (let Lt = 0; Lt < _e; Lt++)
|
|
@@ -24192,17 +24192,17 @@ precision highp float;
|
|
|
24192
24192
|
const Je = d ? ke.text : ke.icon;
|
|
24193
24193
|
if (!Je || ke.fullyClipped || !Je.segments.get().length)
|
|
24194
24194
|
continue;
|
|
24195
|
-
const Oe = Je.programConfigurations.get(s.id),
|
|
24195
|
+
const Oe = Je.programConfigurations.get(s.id), He = d || ke.sdfIcons, ot = d ? ke.textSizeData : ke.iconSizeData, ve = $ || q.pitch !== 0, Le = o.evaluateSizeForZoom(ot, q.zoom);
|
|
24196
24196
|
let Lt, $t, kt, Jt, ci = [0, 0], Vt = null;
|
|
24197
24197
|
if (d) {
|
|
24198
24198
|
if ($t = je.glyphAtlasTexture, kt = Z.LINEAR, Lt = je.glyphAtlasTexture.size, ke.iconsInText) {
|
|
24199
24199
|
ci = je.imageAtlasTexture.size, Vt = je.imageAtlasTexture;
|
|
24200
|
-
const vr =
|
|
24200
|
+
const vr = ot.kind === "composite" || ot.kind === "camera";
|
|
24201
24201
|
Jt = ve || l.options.rotating || l.options.zooming || vr ? Z.LINEAR : Z.NEAREST;
|
|
24202
24202
|
}
|
|
24203
24203
|
} else {
|
|
24204
24204
|
const vr = s.layout.get("icon-size").constantOr(0) !== 1 || ke.iconsNeedLinear;
|
|
24205
|
-
$t = je.imageAtlasTexture, kt =
|
|
24205
|
+
$t = je.imageAtlasTexture, kt = He || l.options.rotating || l.options.zooming || vr || ve ? Z.LINEAR : Z.NEAREST, Lt = je.imageAtlasTexture.size;
|
|
24206
24206
|
}
|
|
24207
24207
|
const St = ke.projection.name === "globe", zi = St ? nt : ye, Ci = St ? o.globeToMercatorTransition(q.zoom) : 0, Gi = ks(Te, ke.getProjection(), q), Ui = q.calculatePixelsToTileUnitsMatrix(je), nr = lr(Gi, je.tileID.canonical, $, H, q, ke.getProjection(), Ui), ur = l.terrain && $ && V ? o.invert(o.create(), nr) : Zs, Jn = Bu(Gi, je.tileID.canonical, $, H, q, ke.getProjection(), Ui), jr = _e && ke.hasTextData(), Ji = s.layout.get("icon-text-fit") !== "none" && jr && ke.hasIconData();
|
|
24208
24208
|
if (V) {
|
|
@@ -24211,10 +24211,10 @@ precision highp float;
|
|
|
24211
24211
|
}
|
|
24212
24212
|
const qi = V || d && _e || Ji, Si = l.translatePosMatrix(Gi, je, f, v), gn = qi ? Zs : nr, Gn = l.translatePosMatrix(Jn, je, f, v, !0), Hi = ke.getProjection().createInversionMatrix(q, Te.canonical), Qn = [];
|
|
24213
24213
|
l.terrainRenderModeElevated() && $ && Qn.push("PITCH_WITH_MAP_TERRAIN"), St && Qn.push("PROJECTION_GLOBE_VIEW"), qi && Qn.push("PROJECTED_POS_ON_VIEWPORT");
|
|
24214
|
-
const na =
|
|
24214
|
+
const na = He && s.paint.get(d ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
24215
24215
|
let no;
|
|
24216
|
-
no =
|
|
24217
|
-
const qn = { program: l.useProgram(ih(
|
|
24216
|
+
no = He ? ke.iconsInText ? Ja(ot.kind, Le, J, $, l, Si, gn, Gn, Lt, ci, Te, Ci, he, Hi, zi, ke.getProjection()) : Qu(ot.kind, Le, J, $, l, Si, gn, Gn, d, Lt, !0, Te, Ci, he, Hi, zi, ke.getProjection()) : Ka(ot.kind, Le, J, $, l, Si, gn, Gn, d, Lt, Te, Ci, he, Hi, zi, ke.getProjection());
|
|
24217
|
+
const qn = { program: l.useProgram(ih(He, d, ke), Oe, Qn), buffers: Je, uniformValues: no, atlasTexture: $t, atlasTextureIcon: Vt, atlasInterpolation: kt, atlasInterpolationIcon: Jt, isSDF: He, hasHalo: na, tile: je, labelPlaneMatrixInv: ur };
|
|
24218
24218
|
if (K && ke.canOverlap) {
|
|
24219
24219
|
re = !0;
|
|
24220
24220
|
const vr = Je.segments.get();
|
|
@@ -24545,39 +24545,39 @@ precision highp float;
|
|
|
24545
24545
|
l.prepareDrawTile();
|
|
24546
24546
|
const _e = he.programConfigurations.get(s.id), De = l.useProgram(H, _e, J), Se = U.constantOr(null);
|
|
24547
24547
|
if (Se && pe.imageAtlas) {
|
|
24548
|
-
const
|
|
24549
|
-
|
|
24548
|
+
const He = pe.imageAtlas.patternPositions[Se.toString()];
|
|
24549
|
+
He && _e.setConstantPatternPositions(He);
|
|
24550
24550
|
}
|
|
24551
24551
|
const ye = I.constantOr(null), nt = z.constantOr(null);
|
|
24552
24552
|
if (!Z && ye && nt && pe.lineAtlas) {
|
|
24553
|
-
const
|
|
24554
|
-
|
|
24553
|
+
const He = pe.lineAtlas.getDash(ye, nt);
|
|
24554
|
+
He && _e.setConstantPatternPositions(He);
|
|
24555
24555
|
}
|
|
24556
24556
|
let [Te, je] = s.paint.get("line-trim-offset");
|
|
24557
24557
|
(nt === "round" || nt === "square") && Te !== je && (Te === 0 && (Te -= 1), je === 1 && (je += 1));
|
|
24558
24558
|
const ke = l.terrain ? re.projMatrix : null, Je = Z ? Nr(l, pe, s, ke, E) : rc(l, pe, s, ke, he.lineClipsArray.length, E, [Te, je]);
|
|
24559
24559
|
if (q) {
|
|
24560
|
-
const
|
|
24561
|
-
let
|
|
24562
|
-
if (s.gradientVersion !==
|
|
24560
|
+
const He = he.gradients[s.id];
|
|
24561
|
+
let ot = He.texture;
|
|
24562
|
+
if (s.gradientVersion !== He.version) {
|
|
24563
24563
|
let ve = 256;
|
|
24564
24564
|
if (s.stepInterpolant) {
|
|
24565
24565
|
const Le = n.getSource().maxzoom, Lt = re.canonical.z === Le ? Math.ceil(1 << l.transform.maxZoom - re.canonical.z) : 1;
|
|
24566
24566
|
ve = o.clamp(o.nextPowerOfTwo(he.maxLineLength / o.EXTENT * 1024 * Lt), 256, $.maxTextureSize);
|
|
24567
24567
|
}
|
|
24568
|
-
|
|
24568
|
+
He.gradient = o.renderColorRamp({ expression: s.gradientExpression(), evaluationKey: "lineProgress", resolution: ve, image: He.gradient || void 0, clips: he.lineClipsArray }), He.texture ? He.texture.update(He.gradient) : He.texture = new o.Texture($, He.gradient, V.RGBA), He.version = s.gradientVersion, ot = He.texture;
|
|
24569
24569
|
}
|
|
24570
|
-
$.activeTexture.set(V.TEXTURE1),
|
|
24570
|
+
$.activeTexture.set(V.TEXTURE1), ot.bind(s.stepInterpolant ? V.NEAREST : V.LINEAR, V.CLAMP_TO_EDGE);
|
|
24571
24571
|
}
|
|
24572
24572
|
M && ($.activeTexture.set(V.TEXTURE0), pe.lineAtlasTexture.bind(V.LINEAR, V.REPEAT), _e.updatePaintBuffers()), Z && ($.activeTexture.set(V.TEXTURE0), pe.imageAtlasTexture.bind(V.LINEAR, V.CLAMP_TO_EDGE), _e.updatePaintBuffers()), l.prepareDrawProgram($, De, re.toUnwrapped());
|
|
24573
|
-
const Oe = (
|
|
24574
|
-
De.draw($, V.TRIANGLES, v,
|
|
24573
|
+
const Oe = (He) => {
|
|
24574
|
+
De.draw($, V.TRIANGLES, v, He, w, o.CullFaceMode.disabled, Je, s.id, he.layoutVertexBuffer, he.indexBuffer, he.segments, s.paint, l.transform.zoom, _e, [he.layoutVertexBuffer2]);
|
|
24575
24575
|
};
|
|
24576
24576
|
if (K) {
|
|
24577
|
-
const
|
|
24578
|
-
|
|
24579
|
-
const
|
|
24580
|
-
Je.u_alpha_discard_threshold = 0.8, Oe(new o.StencilMode(
|
|
24577
|
+
const He = l.stencilModeForClipping(re).ref;
|
|
24578
|
+
He === 0 && l.terrain && $.clear({ stencil: 0 });
|
|
24579
|
+
const ot = { func: V.EQUAL, mask: 255 };
|
|
24580
|
+
Je.u_alpha_discard_threshold = 0.8, Oe(new o.StencilMode(ot, He, 255, V.KEEP, V.KEEP, V.INVERT)), Je.u_alpha_discard_threshold = 0, Oe(new o.StencilMode(ot, He, 255, V.KEEP, V.KEEP, V.KEEP));
|
|
24581
24581
|
} else
|
|
24582
24582
|
Oe(l.stencilModeForClipping(re));
|
|
24583
24583
|
}
|
|
@@ -24867,7 +24867,7 @@ precision highp float;
|
|
|
24867
24867
|
if (this.style.fog && this.transform.projection.supportsFog && function(E, I) {
|
|
24868
24868
|
const M = E.context, z = M.gl, U = E.transform, Z = new o.DepthMode(z.LEQUAL, o.DepthMode.ReadOnly, [0, 1]), q = E.useProgram("globeAtmosphere", null, U.projection.name === "globe" ? ["PROJECTION_GLOBE_VIEW", "FOG"] : ["FOG"]), H = o.globeToMercatorTransition(U.zoom), $ = I.properties.get("color").toArray01(), V = I.properties.get("high-color").toArray01(), J = I.properties.get("space-color").toArray01PremultipliedAlpha(), K = o.identity$1([]);
|
|
24869
24869
|
o.rotateY$1(K, K, -o.degToRad(U._center.lng)), o.rotateX$1(K, K, o.degToRad(U._center.lat)), o.rotateZ$1(K, K, U.angle), o.rotateX$1(K, K, -U._pitch);
|
|
24870
|
-
const re = o.fromQuat(new Float32Array(16), K), pe = o.mapValue(I.properties.get("star-intensity"), 0, 1, 0, 0.25), he = 5e-4, _e = o.mapValue(I.properties.get("horizon-blend"), 0, 1, he, 0.25), De = o.globeUseCustomAntiAliasing(E, M, U) && _e === he ? U.worldSize / (2 * Math.PI * 1.025) - 1 : U.globeRadius, Se = E.frameCounter / 1e3 % 1, ye = o.length(U.globeCenterInViewSpace), nt = Math.sqrt(Math.pow(ye, 2) - Math.pow(De, 2)), Te = Math.acos(nt / ye), je = ((Je, Oe,
|
|
24870
|
+
const re = o.fromQuat(new Float32Array(16), K), pe = o.mapValue(I.properties.get("star-intensity"), 0, 1, 0, 0.25), he = 5e-4, _e = o.mapValue(I.properties.get("horizon-blend"), 0, 1, he, 0.25), De = o.globeUseCustomAntiAliasing(E, M, U) && _e === he ? U.worldSize / (2 * Math.PI * 1.025) - 1 : U.globeRadius, Se = E.frameCounter / 1e3 % 1, ye = o.length(U.globeCenterInViewSpace), nt = Math.sqrt(Math.pow(ye, 2) - Math.pow(De, 2)), Te = Math.acos(nt / ye), je = ((Je, Oe, He, ot, ve, Le, Lt, $t, kt, Jt, ci, Vt, St, zi) => ({ u_frustum_tl: Je, u_frustum_tr: Oe, u_frustum_br: He, u_frustum_bl: ot, u_horizon: ve, u_transition: Le, u_fadeout_range: Lt, u_color: $t, u_high_color: kt, u_space_color: Jt, u_star_intensity: ci, u_star_size: 5 * o.exported.devicePixelRatio, u_star_density: 0, u_temporal_offset: Vt, u_horizon_angle: St, u_rotation_matrix: zi }))(U.frustumCorners.TL, U.frustumCorners.TR, U.frustumCorners.BR, U.frustumCorners.BL, U.frustumCorners.horizon, H, _e, $, V, J, pe, Se, Te, re);
|
|
24871
24871
|
E.prepareDrawProgram(M, q);
|
|
24872
24872
|
const ke = E.atmosphereBuffer;
|
|
24873
24873
|
ke && q.draw(M, z.TRIANGLES, Z, o.StencilMode.disabled, o.ColorMode.alphaBlended, o.CullFaceMode.backCW, je, "skybox", ke.vertexBuffer, ke.indexBuffer, ke.segments);
|
|
@@ -25475,18 +25475,18 @@ precision highp float;
|
|
|
25475
25475
|
return [];
|
|
25476
25476
|
n.maxzoom !== void 0 && s > n.maxzoom && (s = n.maxzoom);
|
|
25477
25477
|
const v = this.locationCoordinate(this.center), w = this.center.lat, E = 1 << s, I = [E * v.x, E * v.y, 0], M = this.projection.name === "globe", z = !M, U = o.Frustum.fromInvProjectionMatrix(this.invProjMatrix, this.worldSize, s, z), Z = M ? this._camera.mercatorPosition : this.pointCoordinate(this.getCameraPoint()), q = E * o.mercatorZfromAltitude(1, this.center.lat), H = this._camera.position[2] / o.mercatorZfromAltitude(1, this.center.lat), $ = [E * Z.x, E * Z.y, H * (z ? 1 : q)], V = this.cameraToCenterDistance / n.tileSize * (n.roundZoom ? 1 : 0.502), J = this.pitch <= 60 && this._edgeInsets.top <= this._edgeInsets.bottom && !this._elevation && !this.projection.isReprojectedInTileSpace ? s : 0, K = n.isTerrainDEM && this._elevation ? 1e4 * this._elevation.exaggeration() : this._centerAltitude, re = n.isTerrainDEM ? -K : this._elevation ? this._elevation.getMinElevationBelowMSL() : 0, pe = this.projection.isReprojectedInTileSpace ? Xs(this) : 1, he = (Oe) => {
|
|
25478
|
-
const
|
|
25478
|
+
const ot = new o.MercatorCoordinate(Oe.x + 25e-6, Oe.y, Oe.z), ve = new o.MercatorCoordinate(Oe.x, Oe.y + 25e-6, Oe.z), Le = Oe.toLngLat(), Lt = ot.toLngLat(), $t = ve.toLngLat(), kt = this.locationCoordinate(Le), Jt = this.locationCoordinate(Lt), ci = this.locationCoordinate($t), Vt = Math.hypot(Jt.x - kt.x, Jt.y - kt.y), St = Math.hypot(ci.x - kt.x, ci.y - kt.y);
|
|
25479
25479
|
return Math.sqrt(Vt * St) * pe / 25e-6;
|
|
25480
25480
|
}, _e = (Oe) => {
|
|
25481
|
-
const
|
|
25482
|
-
return { aabb: o.tileAABB(this, E, 0, 0, 0, Oe,
|
|
25481
|
+
const He = K, ot = re;
|
|
25482
|
+
return { aabb: o.tileAABB(this, E, 0, 0, 0, Oe, ot, He, this.projection), zoom: 0, x: 0, y: 0, minZ: ot, maxZ: He, wrap: Oe, fullyVisible: !1 };
|
|
25483
25483
|
}, De = [];
|
|
25484
25484
|
let Se = [];
|
|
25485
25485
|
const ye = s, nt = n.reparseOverscaled ? u : s, Te = (Oe) => Oe * Oe, je = Te((H - this._centerAltitude) * q), ke = (Oe) => {
|
|
25486
25486
|
if (!this._elevation || !Oe.tileID || !f)
|
|
25487
25487
|
return;
|
|
25488
|
-
const
|
|
25489
|
-
|
|
25488
|
+
const He = this._elevation.getMinMaxForTile(Oe.tileID), ot = Oe.aabb;
|
|
25489
|
+
He ? (ot.min[2] = He.min, ot.max[2] = He.max, ot.center[2] = (ot.min[2] + ot.max[2]) / 2) : (Oe.shouldSplit = Je(Oe), Oe.shouldSplit || (ot.min[2] = ot.max[2] = ot.center[2] = this._centerAltitude));
|
|
25490
25490
|
}, Je = (Oe) => {
|
|
25491
25491
|
if (Oe.zoom < J)
|
|
25492
25492
|
return !0;
|
|
@@ -25494,7 +25494,7 @@ precision highp float;
|
|
|
25494
25494
|
return !1;
|
|
25495
25495
|
if (Oe.shouldSplit != null)
|
|
25496
25496
|
return Oe.shouldSplit;
|
|
25497
|
-
const
|
|
25497
|
+
const He = Oe.aabb.distanceX($), ot = Oe.aabb.distanceY($);
|
|
25498
25498
|
let ve = je, Le = 1;
|
|
25499
25499
|
if (M) {
|
|
25500
25500
|
ve = Te(Oe.aabb.distanceZ($));
|
|
@@ -25505,7 +25505,7 @@ precision highp float;
|
|
|
25505
25505
|
const kt = Math.pow(2, Oe.zoom), Jt = he(new o.MercatorCoordinate((Oe.x + 0.5) / kt, (Oe.y + 0.5) / kt));
|
|
25506
25506
|
Le = Jt > 0.85 ? 1 : Jt;
|
|
25507
25507
|
}
|
|
25508
|
-
const Lt =
|
|
25508
|
+
const Lt = He * He + ot * ot + ve, $t = Te((1 << ye - Oe.zoom) * V * Le * ((kt, Jt) => {
|
|
25509
25509
|
if (Jt * Te(0.707) < kt)
|
|
25510
25510
|
return 1;
|
|
25511
25511
|
const ci = Math.sqrt(Jt / kt);
|
|
@@ -25517,7 +25517,7 @@ precision highp float;
|
|
|
25517
25517
|
for (let Oe = 1; Oe <= 3; Oe++)
|
|
25518
25518
|
De.push(_e(-Oe)), De.push(_e(Oe));
|
|
25519
25519
|
for (De.push(_e(0)); De.length > 0; ) {
|
|
25520
|
-
const Oe = De.pop(),
|
|
25520
|
+
const Oe = De.pop(), He = Oe.x, ot = Oe.y;
|
|
25521
25521
|
let ve = Oe.fullyVisible;
|
|
25522
25522
|
if (!ve) {
|
|
25523
25523
|
const Le = Oe.aabb.intersects(U);
|
|
@@ -25527,38 +25527,38 @@ precision highp float;
|
|
|
25527
25527
|
}
|
|
25528
25528
|
if (Oe.zoom !== ye && Je(Oe))
|
|
25529
25529
|
for (let Le = 0; Le < 4; Le++) {
|
|
25530
|
-
const Lt = (
|
|
25530
|
+
const Lt = (He << 1) + Le % 2, $t = (ot << 1) + (Le >> 1), kt = { aabb: f ? Oe.aabb.quadrant(Le) : o.tileAABB(this, E, Oe.zoom + 1, Lt, $t, Oe.wrap, Oe.minZ, Oe.maxZ, this.projection), zoom: Oe.zoom + 1, x: Lt, y: $t, wrap: Oe.wrap, fullyVisible: ve, tileID: void 0, shouldSplit: void 0, minZ: Oe.minZ, maxZ: Oe.maxZ };
|
|
25531
25531
|
d && !M && (kt.tileID = new o.OverscaledTileID(Oe.zoom + 1 === ye ? nt : Oe.zoom + 1, Oe.wrap, Oe.zoom + 1, Lt, $t), ke(kt)), De.push(kt);
|
|
25532
25532
|
}
|
|
25533
25533
|
else {
|
|
25534
25534
|
const Le = Oe.zoom === ye ? nt : Oe.zoom;
|
|
25535
25535
|
if (n.minzoom && n.minzoom > Le)
|
|
25536
25536
|
continue;
|
|
25537
|
-
const Lt = I[0] - (0.5 +
|
|
25537
|
+
const Lt = I[0] - (0.5 + He + (Oe.wrap << Oe.zoom)) * (1 << s - Oe.zoom), $t = I[1] - 0.5 - ot, kt = Oe.tileID ? Oe.tileID : new o.OverscaledTileID(Le, Oe.wrap, Oe.zoom, He, ot);
|
|
25538
25538
|
Se.push({ tileID: kt, distanceSq: Lt * Lt + $t * $t });
|
|
25539
25539
|
}
|
|
25540
25540
|
}
|
|
25541
25541
|
if (this.fogCullDistSq) {
|
|
25542
|
-
const Oe = this.fogCullDistSq,
|
|
25543
|
-
Se = Se.filter((
|
|
25544
|
-
const ve = [0, 0, 0, 1], Le = [o.EXTENT, o.EXTENT, 0, 1], Lt = this.calculateFogTileMatrix(
|
|
25542
|
+
const Oe = this.fogCullDistSq, He = this.horizonLineFromTop();
|
|
25543
|
+
Se = Se.filter((ot) => {
|
|
25544
|
+
const ve = [0, 0, 0, 1], Le = [o.EXTENT, o.EXTENT, 0, 1], Lt = this.calculateFogTileMatrix(ot.tileID.toUnwrapped());
|
|
25545
25545
|
o.transformMat4$1(ve, ve, Lt), o.transformMat4$1(Le, Le, Lt);
|
|
25546
25546
|
const $t = o.getAABBPointSquareDist(ve, Le);
|
|
25547
25547
|
if ($t === 0)
|
|
25548
25548
|
return !0;
|
|
25549
25549
|
let kt = !1;
|
|
25550
25550
|
const Jt = this._elevation;
|
|
25551
|
-
if (Jt && $t > Oe &&
|
|
25552
|
-
const ci = this.calculateProjMatrix(
|
|
25551
|
+
if (Jt && $t > Oe && He !== 0) {
|
|
25552
|
+
const ci = this.calculateProjMatrix(ot.tileID.toUnwrapped());
|
|
25553
25553
|
let Vt;
|
|
25554
|
-
n.isTerrainDEM || (Vt = Jt.getMinMaxForTile(
|
|
25554
|
+
n.isTerrainDEM || (Vt = Jt.getMinMaxForTile(ot.tileID)), Vt || (Vt = { min: re, max: K });
|
|
25555
25555
|
const St = o.furthestTileCorner(this.rotation), zi = [St[0] * o.EXTENT, St[1] * o.EXTENT, Vt.max];
|
|
25556
|
-
o.transformMat4(zi, zi, ci), kt = (1 - zi[1]) * this.height * 0.5 <
|
|
25556
|
+
o.transformMat4(zi, zi, ci), kt = (1 - zi[1]) * this.height * 0.5 < He;
|
|
25557
25557
|
}
|
|
25558
25558
|
return $t < Oe || kt;
|
|
25559
25559
|
});
|
|
25560
25560
|
}
|
|
25561
|
-
return Se.sort((Oe,
|
|
25561
|
+
return Se.sort((Oe, He) => Oe.distanceSq - He.distanceSq).map((Oe) => Oe.tileID);
|
|
25562
25562
|
}
|
|
25563
25563
|
resize(n, s) {
|
|
25564
25564
|
this.width = n, this.height = s, this.pixelsToGLUnits = [2 / n, -2 / s], this._constrain(), this._calcMatrices();
|
|
@@ -25812,7 +25812,7 @@ precision highp float;
|
|
|
25812
25812
|
const pe = this.locationCoordinate(this.center), he = o.identity([]);
|
|
25813
25813
|
o.translate(he, he, [pe.x * this.worldSize, pe.y * this.worldSize, 0]), o.multiply(he, he, tl(this)), o.translate(he, he, [-pe.x * this.worldSize, -pe.y * this.worldSize, 0]), o.multiply(v, v, he), this.inverseAdjustmentMatrix = function(_e) {
|
|
25814
25814
|
const De = tl(_e, !0);
|
|
25815
|
-
return
|
|
25815
|
+
return We([], [De[0], De[1], De[4], De[5]]);
|
|
25816
25816
|
}(this);
|
|
25817
25817
|
} else
|
|
25818
25818
|
this.inverseAdjustmentMatrix = [1, 0, 0, 1];
|
|
@@ -26056,7 +26056,7 @@ precision highp float;
|
|
|
26056
26056
|
return this._defaultPrevented;
|
|
26057
26057
|
}
|
|
26058
26058
|
constructor(n, s, u, d = {}) {
|
|
26059
|
-
const f =
|
|
26059
|
+
const f = ce(s.getCanvasContainer(), u), v = s.unproject(f);
|
|
26060
26060
|
super(n, o.extend({ point: f, lngLat: v, originalEvent: u }, d)), this._defaultPrevented = !1, this.target = s;
|
|
26061
26061
|
}
|
|
26062
26062
|
}
|
|
@@ -26197,7 +26197,7 @@ precision highp float;
|
|
|
26197
26197
|
const u = s, d = this._startPos, f = this._lastPos;
|
|
26198
26198
|
if (!d || !f || f.equals(u) || !this._box && u.dist(d) < this._clickTolerance)
|
|
26199
26199
|
return;
|
|
26200
|
-
this._lastPos = u, this._box || (this._box =
|
|
26200
|
+
this._lastPos = u, this._box || (this._box = ue("div", "mapboxgl-boxzoom", this._container), this._container.classList.add("mapboxgl-crosshair"), this._fireEvent("boxzoomstart", n));
|
|
26201
26201
|
const v = Math.min(d.x, u.x), w = Math.max(d.x, u.x), E = Math.min(d.y, u.y), I = Math.max(d.y, u.y);
|
|
26202
26202
|
this._map._requestDomTask(() => {
|
|
26203
26203
|
this._box && (this._box.style.transform = `translate(${v}px,${E}px)`, this._box.style.width = w - v + "px", this._box.style.height = I - E + "px");
|
|
@@ -26459,7 +26459,7 @@ precision highp float;
|
|
|
26459
26459
|
return !!this._active;
|
|
26460
26460
|
}
|
|
26461
26461
|
_addTouchPanBlocker() {
|
|
26462
|
-
this._map && !this._alertContainer && (this._alertContainer =
|
|
26462
|
+
this._map && !this._alertContainer && (this._alertContainer = ue("div", "mapboxgl-touch-pan-blocker", this._map._container), this._alertContainer.textContent = this._map._getUIString("TouchPanBlocker.Message"), this._alertContainer.style.fontSize = `${Math.max(10, Math.min(24, Math.floor(0.05 * this._el.clientWidth)))}px`);
|
|
26463
26463
|
}
|
|
26464
26464
|
_showTouchPanBlockerAlert() {
|
|
26465
26465
|
this._alertContainer.style.visibility = "visible", this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"), this._alertContainer.setAttribute("role", "alert"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout(() => {
|
|
@@ -26707,7 +26707,7 @@ precision highp float;
|
|
|
26707
26707
|
if (!this._delta)
|
|
26708
26708
|
return;
|
|
26709
26709
|
this._frameId && (this._frameId = null), this._active = !0, this.isZooming() || (this._zooming = !0), this._finishTimeout && (clearTimeout(this._finishTimeout), delete this._finishTimeout);
|
|
26710
|
-
const s =
|
|
26710
|
+
const s = ce(this._el, n);
|
|
26711
26711
|
this._aroundPoint = this._aroundCenter ? this._map.transform.centerPoint : s, this._aroundCoord = this._map.transform.pointCoordinate3D(this._aroundPoint), this._targetZoom = void 0, this._frameId || (this._frameId = !0, this._handler._triggerRenderFrame());
|
|
26712
26712
|
}
|
|
26713
26713
|
renderFrame() {
|
|
@@ -26749,7 +26749,7 @@ precision highp float;
|
|
|
26749
26749
|
this._active = !1;
|
|
26750
26750
|
}
|
|
26751
26751
|
_addScrollZoomBlocker() {
|
|
26752
|
-
this._map && !this._alertContainer && (this._alertContainer =
|
|
26752
|
+
this._map && !this._alertContainer && (this._alertContainer = ue("div", "mapboxgl-scroll-zoom-blocker", this._map._container), this._alertContainer.textContent = /(Mac|iPad)/i.test(o.window.navigator.userAgent) ? this._map._getUIString("ScrollZoomBlocker.CmdMessage") : this._map._getUIString("ScrollZoomBlocker.CtrlMessage"), this._alertContainer.style.fontSize = `${Math.max(10, Math.min(24, Math.floor(0.05 * this._el.clientWidth)))}px`);
|
|
26753
26753
|
}
|
|
26754
26754
|
_showBlockerAlert() {
|
|
26755
26755
|
this._alertContainer.style.visibility = "visible", this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"), this._alertContainer.setAttribute("role", "alert"), clearTimeout(this._alertTimer), this._alertTimer = setTimeout(() => {
|
|
@@ -27004,7 +27004,7 @@ precision highp float;
|
|
|
27004
27004
|
}
|
|
27005
27005
|
handleEvent(n, s) {
|
|
27006
27006
|
this._updatingCamera = !0;
|
|
27007
|
-
const u = n.type === "renderFrame", d = u ? void 0 : n, f = { needsRenderFrame: !1 }, v = {}, w = {}, E = n.touches ? this._getMapTouches(n.touches) : void 0, I = E ? It(this._el, E) : u ? void 0 :
|
|
27007
|
+
const u = n.type === "renderFrame", d = u ? void 0 : n, f = { needsRenderFrame: !1 }, v = {}, w = {}, E = n.touches ? this._getMapTouches(n.touches) : void 0, I = E ? It(this._el, E) : u ? void 0 : ce(this._el, n);
|
|
27008
27008
|
for (const { handlerName: U, handler: Z, allowed: q } of this._handlers) {
|
|
27009
27009
|
if (!Z.isEnabled())
|
|
27010
27010
|
continue;
|
|
@@ -27204,8 +27204,8 @@ precision highp float;
|
|
|
27204
27204
|
o.normalize(je, je), o.scale$2(je, je, nt);
|
|
27205
27205
|
const ke = o.add([], re, je);
|
|
27206
27206
|
o.transformMat4(ke, ke, he);
|
|
27207
|
-
const Je = o.earthRadius / o.GLOBE_RADIUS, Oe = o.length(ke),
|
|
27208
|
-
return
|
|
27207
|
+
const Je = o.earthRadius / o.GLOBE_RADIUS, Oe = o.length(ke), He = o.mercatorZfromAltitude(Oe * Je - o.earthRadius, 0), ot = Math.min(w.zoomFromMercatorZAdjusted(He), E.maxZoom);
|
|
27208
|
+
return ot > 0.5 * (o.GLOBE_ZOOM_THRESHOLD_MIN + o.GLOBE_ZOOM_THRESHOLD_MAX) ? (w.setProjection({ name: "mercator" }), w.zoom = ot, this._cameraForBounds(w, s, u, d, f, v)) : { center: w.center, zoom: ot, bearing: d, pitch: f };
|
|
27209
27209
|
}
|
|
27210
27210
|
queryTerrainElevation(n, s) {
|
|
27211
27211
|
const u = this.transform.elevation;
|
|
@@ -27220,8 +27220,8 @@ precision highp float;
|
|
|
27220
27220
|
let pe = o.Aabb.fromPoints(re);
|
|
27221
27221
|
const he = w.getWorldToCameraMatrix(), _e = o.invert(new Float64Array(16), he);
|
|
27222
27222
|
pe = o.Aabb.applyTransform(pe, he);
|
|
27223
|
-
const De = o.sub([], pe.max, pe.min), Se = I.left || 0, ye = I.right || 0, nt = I.bottom || 0, Te = I.top || 0, { left: je, right: ke, top: Je, bottom: Oe } = E.padding,
|
|
27224
|
-
pe = new o.Aabb([pe.min[0] - (je +
|
|
27223
|
+
const De = o.sub([], pe.max, pe.min), Se = I.left || 0, ye = I.right || 0, nt = I.bottom || 0, Te = I.top || 0, { left: je, right: ke, top: Je, bottom: Oe } = E.padding, He = 0.5 * (Se + ye), ot = 0.5 * (Te + nt), ve = Math.min(w.scaleZoom(w.scale * Math.min((w.width - (Se + ye + je + ke)) / De[0], (w.height - (nt + Te + Oe + Je)) / De[1])), E.maxZoom), Le = w.scale / w.zoomScale(ve);
|
|
27224
|
+
pe = new o.Aabb([pe.min[0] - (je + He) * Le, pe.min[1] - (Oe + ot) * Le, pe.min[2]], [pe.max[0] + (ke + He) * Le, pe.max[1] + (Je + ot) * Le, pe.max[2]]);
|
|
27225
27225
|
const Lt = 0.5 * De[2], $t = this._minimumAABBFrustumDistance(w, pe), kt = [0, 0, 1, 0];
|
|
27226
27226
|
o.transformMat4$1(kt, kt, he), o.normalize$2(kt, kt);
|
|
27227
27227
|
const Jt = o.scale$2([], kt, $t + Lt), ci = o.add([], pe.center, Jt), Vt = (typeof E.offset.x == "number" && typeof E.offset.y == "number" ? new o.pointGeometry(E.offset.x, E.offset.y) : o.pointGeometry.convert(E.offset)).rotate(-o.degToRad(d));
|
|
@@ -27358,17 +27358,17 @@ precision highp float;
|
|
|
27358
27358
|
};
|
|
27359
27359
|
}
|
|
27360
27360
|
n.duration = "duration" in n ? +n.duration : 1e3 * ke / ("screenSpeed" in n ? +n.screenSpeed / K : +n.speed), n.maxDuration && n.duration > n.maxDuration && (n.duration = 0);
|
|
27361
|
-
const Je = f !== I, Oe = M !== v,
|
|
27361
|
+
const Je = f !== I, Oe = M !== v, He = !u.isPaddingEqual(z), ot = (ve) => (Le) => {
|
|
27362
27362
|
const Lt = Le * ke, $t = 1 / Te(Lt);
|
|
27363
|
-
ve.zoom = Le === 1 ? E : d + ve.scaleZoom($t), Je && (ve.bearing = o.number(f, I, Le)), Oe && (ve.pitch = o.number(v, M, Le)),
|
|
27363
|
+
ve.zoom = Le === 1 ? E : d + ve.scaleZoom($t), Je && (ve.bearing = o.number(f, I, Le)), Oe && (ve.pitch = o.number(v, M, Le)), He && (ve.interpolatePadding(w, z, Le), q = ve.centerPoint.add(Z));
|
|
27364
27364
|
const kt = Le === 1 ? $ : ve.unproject(V.add(J.mult(je(Lt))).mult($t));
|
|
27365
27365
|
return ve.setLocationAtPoint(ve.renderWorldCopies ? kt.wrap() : kt, q), ve._updateCameraOnTerrain(), n.preloadOnly || this._fireMoveEvents(s), ve;
|
|
27366
27366
|
};
|
|
27367
27367
|
if (n.preloadOnly) {
|
|
27368
|
-
const ve = this._emulate(
|
|
27368
|
+
const ve = this._emulate(ot, n.duration, u);
|
|
27369
27369
|
return this._preloadTiles(ve), this;
|
|
27370
27370
|
}
|
|
27371
|
-
return this._zooming = !0, this._rotating = Je, this._pitching = Oe, this._padding =
|
|
27371
|
+
return this._zooming = !0, this._rotating = Je, this._pitching = Oe, this._padding = He, this._prepareEase(s, !1), this._ease(ot(u), () => this._afterEase(s), n), this;
|
|
27372
27372
|
}
|
|
27373
27373
|
isEasing() {
|
|
27374
27374
|
return !!this._easeFrameId;
|
|
@@ -27424,7 +27424,7 @@ precision highp float;
|
|
|
27424
27424
|
}
|
|
27425
27425
|
onAdd(n) {
|
|
27426
27426
|
const s = this.options && this.options.compact;
|
|
27427
|
-
return this._map = n, this._container =
|
|
27427
|
+
return this._map = n, this._container = ue("div", "mapboxgl-ctrl mapboxgl-ctrl-attrib"), this._compactButton = ue("button", "mapboxgl-ctrl-attrib-button", this._container), ue("span", "mapboxgl-ctrl-icon", this._compactButton).setAttribute("aria-hidden", "true"), this._compactButton.type = "button", this._compactButton.addEventListener("click", this._toggleAttribution), this._setElementTitle(this._compactButton, "ToggleAttribution"), this._innerContainer = ue("div", "mapboxgl-ctrl-attrib-inner", this._container), this._innerContainer.setAttribute("role", "list"), s && this._container.classList.add("mapboxgl-compact"), this._updateAttributions(), this._updateEditLink(), this._map.on("styledata", this._updateData), this._map.on("sourcedata", this._updateData), this._map.on("moveend", this._updateEditLink), s === void 0 && (this._map.on("resize", this._updateCompact), this._updateCompact()), this._container;
|
|
27428
27428
|
}
|
|
27429
27429
|
onRemove() {
|
|
27430
27430
|
this._container.remove(), this._map.off("styledata", this._updateData), this._map.off("sourcedata", this._updateData), this._map.off("moveend", this._updateEditLink), this._map.off("resize", this._updateCompact), this._map = void 0, this._attribHTML = void 0;
|
|
@@ -27482,8 +27482,8 @@ precision highp float;
|
|
|
27482
27482
|
o.bindAll(["_updateLogo", "_updateCompact"], this);
|
|
27483
27483
|
}
|
|
27484
27484
|
onAdd(n) {
|
|
27485
|
-
this._map = n, this._container =
|
|
27486
|
-
const s =
|
|
27485
|
+
this._map = n, this._container = ue("div", "mapboxgl-ctrl");
|
|
27486
|
+
const s = ue("a", "mapboxgl-ctrl-logo");
|
|
27487
27487
|
return s.target = "_blank", s.rel = "noopener nofollow", s.href = "https://www.mapbox.com/", s.setAttribute("aria-label", this._map._getUIString("LogoControl.Title")), s.setAttribute("rel", "noopener nofollow"), this._container.appendChild(s), this._container.style.display = "none", this._map.on("sourcedata", this._updateLogo), this._updateLogo(), this._map.on("resize", this._updateCompact), this._updateCompact(), this._container;
|
|
27488
27488
|
}
|
|
27489
27489
|
onRemove() {
|
|
@@ -27561,7 +27561,7 @@ precision highp float;
|
|
|
27561
27561
|
if (super(), (n instanceof o.window.HTMLElement || s) && (n = o.extend({ element: n }, s)), o.bindAll(["_update", "_onMove", "_onUp", "_addDragHandler", "_onMapClick", "_onKeyPress", "_clearFadeTimer"], this), this._anchor = n && n.anchor || "center", this._color = n && n.color || "#3FB1CE", this._scale = n && n.scale || 1, this._draggable = n && n.draggable || !1, this._clickTolerance = n && n.clickTolerance || 0, this._isDragging = !1, this._state = "inactive", this._rotation = n && n.rotation || 0, this._rotationAlignment = n && n.rotationAlignment || "auto", this._pitchAlignment = n && n.pitchAlignment && n.pitchAlignment || "auto", this._updateMoving = () => this._update(!0), this._occludedOpacity = n && n.occludedOpacity || 0.2, n && n.element)
|
|
27562
27562
|
this._element = n.element, this._offset = o.pointGeometry.convert(n && n.offset || [0, 0]);
|
|
27563
27563
|
else {
|
|
27564
|
-
this._defaultMarker = !0, this._element =
|
|
27564
|
+
this._defaultMarker = !0, this._element = ue("div");
|
|
27565
27565
|
const d = 41, f = 27, v = we("svg", { display: "block", height: d * this._scale + "px", width: f * this._scale + "px", viewBox: `0 0 ${f} ${d}` }, this._element), w = we("radialGradient", { id: "shadowGradient" }, we("defs", {}, v));
|
|
27566
27566
|
we("stop", { offset: "10%", "stop-opacity": 0.4 }, w), we("stop", { offset: "100%", "stop-opacity": 0.05 }, w), we("ellipse", { cx: 13.5, cy: 34.8, rx: 10.5, ry: 5.25, fill: "url(#shadowGradient)" }, v), we("path", { fill: this._color, d: "M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z" }, v), we("path", { opacity: 0.25, d: "M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z" }, v), we("circle", { fill: "white", cx: 13.5, cy: 13.5, r: 5.5 }, v), this._offset = o.pointGeometry.convert(n && n.offset || [0, -14]);
|
|
27567
27567
|
}
|
|
@@ -27829,10 +27829,10 @@ precision highp float;
|
|
|
27829
27829
|
Xe(), o.window.removeEventListener("mousemove", this.mousemove), o.window.removeEventListener("mouseup", this.mouseup);
|
|
27830
27830
|
}
|
|
27831
27831
|
mousedown(n) {
|
|
27832
|
-
this.down(o.extend({}, n, { ctrlKey: !0, preventDefault: () => n.preventDefault() }),
|
|
27832
|
+
this.down(o.extend({}, n, { ctrlKey: !0, preventDefault: () => n.preventDefault() }), ce(this.element, n)), o.window.addEventListener("mousemove", this.mousemove), o.window.addEventListener("mouseup", this.mouseup);
|
|
27833
27833
|
}
|
|
27834
27834
|
mousemove(n) {
|
|
27835
|
-
this.move(n,
|
|
27835
|
+
this.move(n, ce(this.element, n));
|
|
27836
27836
|
}
|
|
27837
27837
|
mouseup(n) {
|
|
27838
27838
|
this.mouseRotate.mouseupWindow(n), this.mousePitch && this.mousePitch.mouseupWindow(n), this.offTemp();
|
|
@@ -28303,12 +28303,12 @@ precision highp float;
|
|
|
28303
28303
|
}
|
|
28304
28304
|
_setupContainer() {
|
|
28305
28305
|
const l = this._container;
|
|
28306
|
-
l.classList.add("mapboxgl-map"), (this._missingCSSCanary =
|
|
28307
|
-
const n = this._canvasContainer =
|
|
28308
|
-
this._interactive && n.classList.add("mapboxgl-interactive"), this._canvas =
|
|
28309
|
-
const s = this._controlContainer =
|
|
28306
|
+
l.classList.add("mapboxgl-map"), (this._missingCSSCanary = ue("div", "mapboxgl-canary", l)).style.visibility = "hidden", this._detectMissingCSS();
|
|
28307
|
+
const n = this._canvasContainer = ue("div", "mapboxgl-canvas-container", l);
|
|
28308
|
+
this._interactive && n.classList.add("mapboxgl-interactive"), this._canvas = ue("canvas", "mapboxgl-canvas", n), this._canvas.addEventListener("webglcontextlost", this._contextLost, !1), this._canvas.addEventListener("webglcontextrestored", this._contextRestored, !1), this._canvas.setAttribute("tabindex", "0"), this._canvas.setAttribute("aria-label", this._getUIString("Map.Title")), this._canvas.setAttribute("role", "region"), this._updateContainerDimensions(), this._resizeCanvas(this._containerWidth, this._containerHeight);
|
|
28309
|
+
const s = this._controlContainer = ue("div", "mapboxgl-control-container", l), u = this._controlPositions = {};
|
|
28310
28310
|
["top-left", "top-right", "bottom-left", "bottom-right"].forEach((d) => {
|
|
28311
|
-
u[d] =
|
|
28311
|
+
u[d] = ue("div", `mapboxgl-ctrl-${d}`, s);
|
|
28312
28312
|
}), this._container.addEventListener("scroll", this._onMapScroll, !1);
|
|
28313
28313
|
}
|
|
28314
28314
|
_resizeCanvas(l, n) {
|
|
@@ -28563,14 +28563,14 @@ precision highp float;
|
|
|
28563
28563
|
}
|
|
28564
28564
|
}, NavigationControl: class {
|
|
28565
28565
|
constructor(l) {
|
|
28566
|
-
this.options = o.extend({}, Ih, l), this._container =
|
|
28566
|
+
this.options = o.extend({}, Ih, l), this._container = ue("div", "mapboxgl-ctrl mapboxgl-ctrl-group"), this._container.addEventListener("contextmenu", (n) => n.preventDefault()), this.options.showZoom && (o.bindAll(["_setButtonTitle", "_updateZoomButtons"], this), this._zoomInButton = this._createButton("mapboxgl-ctrl-zoom-in", (n) => {
|
|
28567
28567
|
this._map && this._map.zoomIn({}, { originalEvent: n });
|
|
28568
|
-
}),
|
|
28568
|
+
}), ue("span", "mapboxgl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("mapboxgl-ctrl-zoom-out", (n) => {
|
|
28569
28569
|
this._map && this._map.zoomOut({}, { originalEvent: n });
|
|
28570
|
-
}),
|
|
28570
|
+
}), ue("span", "mapboxgl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (o.bindAll(["_rotateCompassArrow"], this), this._compass = this._createButton("mapboxgl-ctrl-compass", (n) => {
|
|
28571
28571
|
const s = this._map;
|
|
28572
28572
|
s && (this.options.visualizePitch ? s.resetNorthPitch({}, { originalEvent: n }) : s.resetNorth({}, { originalEvent: n }));
|
|
28573
|
-
}), this._compassIcon =
|
|
28573
|
+
}), this._compassIcon = ue("span", "mapboxgl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true"));
|
|
28574
28574
|
}
|
|
28575
28575
|
_updateZoomButtons() {
|
|
28576
28576
|
const l = this._map;
|
|
@@ -28596,7 +28596,7 @@ precision highp float;
|
|
|
28596
28596
|
l && (this._container.remove(), this.options.showZoom && l.off("zoom", this._updateZoomButtons), this.options.showCompass && (this.options.visualizePitch && l.off("pitch", this._rotateCompassArrow), l.off("rotate", this._rotateCompassArrow), this._handler && this._handler.off(), this._handler = void 0), this._map = void 0);
|
|
28597
28597
|
}
|
|
28598
28598
|
_createButton(l, n) {
|
|
28599
|
-
const s =
|
|
28599
|
+
const s = ue("button", l, this._container);
|
|
28600
28600
|
return s.type = "button", s.addEventListener("click", n), s;
|
|
28601
28601
|
}
|
|
28602
28602
|
_setButtonTitle(l, n) {
|
|
@@ -28610,7 +28610,7 @@ precision highp float;
|
|
|
28610
28610
|
super(), this.options = o.extend({ geolocation: o.window.navigator.geolocation }, Mc, l), o.bindAll(["_onSuccess", "_onError", "_onZoom", "_finish", "_setupUI", "_updateCamera", "_updateMarker", "_updateMarkerRotation", "_onDeviceOrientation"], this), this._updateMarkerRotationThrottled = Ys(this._updateMarkerRotation, 20), this._numberOfWatches = 0;
|
|
28611
28611
|
}
|
|
28612
28612
|
onAdd(l) {
|
|
28613
|
-
return this._map = l, this._container =
|
|
28613
|
+
return this._map = l, this._container = ue("div", "mapboxgl-ctrl mapboxgl-ctrl-group"), this._checkGeolocationSupport(this._setupUI), this._container;
|
|
28614
28614
|
}
|
|
28615
28615
|
onRemove() {
|
|
28616
28616
|
this._geolocationWatchID !== void 0 && (this.options.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0), this.options.showUserLocation && this._userLocationDotMarker && this._userLocationDotMarker.remove(), this.options.showAccuracyCircle && this._accuracyCircleMarker && this._accuracyCircleMarker.remove(), this._container.remove(), this._map.off("zoom", this._onZoom), this._map = void 0, this._numberOfWatches = 0, this._noTimeout = !1;
|
|
@@ -28696,7 +28696,7 @@ precision highp float;
|
|
|
28696
28696
|
}
|
|
28697
28697
|
_setupUI(l) {
|
|
28698
28698
|
if (this._map !== void 0) {
|
|
28699
|
-
if (this._container.addEventListener("contextmenu", (n) => n.preventDefault()), this._geolocateButton =
|
|
28699
|
+
if (this._container.addEventListener("contextmenu", (n) => n.preventDefault()), this._geolocateButton = ue("button", "mapboxgl-ctrl-geolocate", this._container), ue("span", "mapboxgl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", l === !1) {
|
|
28700
28700
|
o.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");
|
|
28701
28701
|
const n = this._map._getUIString("GeolocateControl.LocationNotAvailable");
|
|
28702
28702
|
this._geolocateButton.disabled = !0, this._geolocateButton.setAttribute("aria-label", n), this._geolocateButton.firstElementChild && this._geolocateButton.firstElementChild.setAttribute("title", n);
|
|
@@ -28704,7 +28704,7 @@ precision highp float;
|
|
|
28704
28704
|
const n = this._map._getUIString("GeolocateControl.FindMyLocation");
|
|
28705
28705
|
this._geolocateButton.setAttribute("aria-label", n), this._geolocateButton.firstElementChild && this._geolocateButton.firstElementChild.setAttribute("title", n);
|
|
28706
28706
|
}
|
|
28707
|
-
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement =
|
|
28707
|
+
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = ue("div", "mapboxgl-user-location"), this._dotElement.appendChild(ue("div", "mapboxgl-user-location-dot")), this._dotElement.appendChild(ue("div", "mapboxgl-user-location-heading")), this._userLocationDotMarker = new ta({ element: this._dotElement, rotationAlignment: "map", pitchAlignment: "map" }), this._circleElement = ue("div", "mapboxgl-user-location-accuracy-circle"), this._accuracyCircleMarker = new ta({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", this.trigger.bind(this)), this._setup = !0, this.options.trackUserLocation && this._map.on("movestart", (n) => {
|
|
28708
28708
|
n.geolocateSource || this._watchState !== "ACTIVE_LOCK" || n.originalEvent && n.originalEvent.type === "resize" || (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"), this.fire(new o.Event("trackuserlocationend")));
|
|
28709
28709
|
});
|
|
28710
28710
|
}
|
|
@@ -28794,7 +28794,7 @@ precision highp float;
|
|
|
28794
28794
|
});
|
|
28795
28795
|
}
|
|
28796
28796
|
onAdd(l) {
|
|
28797
|
-
return this._map = l, this._language = l.getLanguage(), this._container =
|
|
28797
|
+
return this._map = l, this._language = l.getLanguage(), this._container = ue("div", "mapboxgl-ctrl mapboxgl-ctrl-scale", l.getContainer()), this._container.dir = "auto", this._map.on("move", this._update), this._update(), this._container;
|
|
28798
28798
|
}
|
|
28799
28799
|
onRemove() {
|
|
28800
28800
|
this._container.remove(), this._map.off("move", this._update), this._map = void 0;
|
|
@@ -28810,7 +28810,7 @@ precision highp float;
|
|
|
28810
28810
|
this._fullscreen = !1, l && l.container && (l.container instanceof o.window.HTMLElement ? this._container = l.container : o.warnOnce("Full screen control 'container' must be a DOM element.")), o.bindAll(["_onClickFullscreen", "_changeIcon"], this), "onfullscreenchange" in o.window.document ? this._fullscreenchange = "fullscreenchange" : "onwebkitfullscreenchange" in o.window.document && (this._fullscreenchange = "webkitfullscreenchange");
|
|
28811
28811
|
}
|
|
28812
28812
|
onAdd(l) {
|
|
28813
|
-
return this._map = l, this._container || (this._container = this._map.getContainer()), this._controlContainer =
|
|
28813
|
+
return this._map = l, this._container || (this._container = this._map.getContainer()), this._controlContainer = ue("div", "mapboxgl-ctrl mapboxgl-ctrl-group"), this._checkFullscreenSupport() ? this._setupUI() : (this._controlContainer.style.display = "none", o.warnOnce("This device does not support fullscreen mode.")), this._controlContainer;
|
|
28814
28814
|
}
|
|
28815
28815
|
onRemove() {
|
|
28816
28816
|
this._controlContainer.remove(), this._map = null, o.window.document.removeEventListener(this._fullscreenchange, this._changeIcon);
|
|
@@ -28819,8 +28819,8 @@ precision highp float;
|
|
|
28819
28819
|
return !(!o.window.document.fullscreenEnabled && !o.window.document.webkitFullscreenEnabled);
|
|
28820
28820
|
}
|
|
28821
28821
|
_setupUI() {
|
|
28822
|
-
const l = this._fullscreenButton =
|
|
28823
|
-
|
|
28822
|
+
const l = this._fullscreenButton = ue("button", "mapboxgl-ctrl-fullscreen", this._controlContainer);
|
|
28823
|
+
ue("span", "mapboxgl-ctrl-icon", l).setAttribute("aria-hidden", "true"), l.type = "button", this._updateTitle(), this._fullscreenButton.addEventListener("click", this._onClickFullscreen), o.window.document.addEventListener(this._fullscreenchange, this._changeIcon);
|
|
28824
28824
|
}
|
|
28825
28825
|
_updateTitle() {
|
|
28826
28826
|
const l = this._getTitle();
|
|
@@ -28891,9 +28891,9 @@ precision highp float;
|
|
|
28891
28891
|
for (; n.hasChildNodes(); )
|
|
28892
28892
|
n.firstChild && n.removeChild(n.firstChild);
|
|
28893
28893
|
else
|
|
28894
|
-
n = this._content =
|
|
28894
|
+
n = this._content = ue("div", "mapboxgl-popup-content", this._container || void 0);
|
|
28895
28895
|
if (n.appendChild(l), this.options.closeButton) {
|
|
28896
|
-
const s = this._closeButton =
|
|
28896
|
+
const s = this._closeButton = ue("button", "mapboxgl-popup-close-button", n);
|
|
28897
28897
|
s.type = "button", s.setAttribute("aria-label", "Close popup"), s.setAttribute("aria-hidden", "true"), s.innerHTML = "×", s.addEventListener("click", this._onClose);
|
|
28898
28898
|
}
|
|
28899
28899
|
return this._update(), this._focusFirstElement(), this;
|
|
@@ -28943,7 +28943,7 @@ precision highp float;
|
|
|
28943
28943
|
if (!n || !this._lngLat && !this._trackPointer || !s)
|
|
28944
28944
|
return;
|
|
28945
28945
|
let u = this._container;
|
|
28946
|
-
if (u || (u = this._container =
|
|
28946
|
+
if (u || (u = this._container = ue("div", "mapboxgl-popup", n.getContainer()), this._tip = ue("div", "mapboxgl-popup-tip", u), u.appendChild(s)), this.options.maxWidth && u.style.maxWidth !== this.options.maxWidth && (u.style.maxWidth = this.options.maxWidth), n.transform.renderWorldCopies && !this._trackPointer && (this._lngLat = Ac(this._lngLat, this._pos, n.transform)), !this._trackPointer || l) {
|
|
28947
28947
|
const d = this._pos = this._trackPointer && l ? l : n.project(this._lngLat), f = Cc(this.options.offset), v = this._anchor = this._getAnchor(f.y), w = Cc(this.options.offset, v), E = d.add(w).round();
|
|
28948
28948
|
n._requestDomTask(() => {
|
|
28949
28949
|
this._container && v && (this._container.style.transform = `${ds[v]} translate(${E.x}px,${E.y}px)`);
|
|
@@ -29010,10 +29010,10 @@ function tI({ onMapView: m, onPositionControl: g }) {
|
|
|
29010
29010
|
const ee = {
|
|
29011
29011
|
accessToken: x,
|
|
29012
29012
|
element: document.getElementById("map")
|
|
29013
|
-
},
|
|
29014
|
-
S(
|
|
29013
|
+
}, ue = new window.mapsindoors.mapView.MapboxView(ee);
|
|
29014
|
+
S(ue);
|
|
29015
29015
|
const we = new window.mapsindoors.directions.MapboxProvider(x);
|
|
29016
|
-
m(
|
|
29016
|
+
m(ue, we);
|
|
29017
29017
|
}, []), si(() => {
|
|
29018
29018
|
if (G && b && !o) {
|
|
29019
29019
|
const ee = document.createElement("mi-my-position");
|
|
@@ -29079,57 +29079,57 @@ function hv(m) {
|
|
|
29079
29079
|
const rm = "MI-MAP-TEMPLATE-LAST-VENUE";
|
|
29080
29080
|
let Pf;
|
|
29081
29081
|
function iI({ onLocationClick: m, onVenueChangedOnMap: g }) {
|
|
29082
|
-
const x = vi(sv), b = vi(Pm), S = vi(zm), [D, B] = Zi(ov), [o, P] = Zi(Yo), [, G] = Zi(Om), [, te] = Zi(rv), ee = vi(km),
|
|
29082
|
+
const x = vi(sv), b = vi(Pm), S = vi(zm), [D, B] = Zi(ov), [o, P] = Zi(Yo), [, G] = Zi(Om), [, te] = Zi(rv), ee = vi(km), ue = vi(ip), we = vi(Bm), Ee = vi(np), Ie = vi(av), st = vi(lv), [, Mt] = Zi(cv), Xe = vi(uv);
|
|
29083
29083
|
YM(x), si(() => {
|
|
29084
29084
|
b === null && S === null || B(S ? Ss.Mapbox : Ss.Google);
|
|
29085
29085
|
}, [b, S]), si(() => {
|
|
29086
29086
|
if (o) {
|
|
29087
29087
|
window.localStorage.clear(rm);
|
|
29088
|
-
const
|
|
29089
|
-
|
|
29090
|
-
g(
|
|
29091
|
-
}) :
|
|
29088
|
+
const We = i0(ue, ee);
|
|
29089
|
+
We && !Xe ? dt(We, o).then(() => {
|
|
29090
|
+
g(We);
|
|
29091
|
+
}) : We && g(We);
|
|
29092
29092
|
}
|
|
29093
|
-
}, [
|
|
29094
|
-
o && (we ? o.filter(we.map((
|
|
29093
|
+
}, [ue, ee, st]), si(() => {
|
|
29094
|
+
o && (we ? o.filter(we.map((We) => We.id)) : Ee && o.filter(Ee.map((We) => We.id)));
|
|
29095
29095
|
}, [we, Ee, o]);
|
|
29096
|
-
const dt = (
|
|
29097
|
-
|
|
29098
|
-
})), vt = (
|
|
29099
|
-
It(
|
|
29100
|
-
},
|
|
29101
|
-
Xe &&
|
|
29096
|
+
const dt = (We, ut) => (window.localStorage.setItem(rm, We.name), ut.fitVenue(We).then(() => {
|
|
29097
|
+
st && ut.setZoom(parseInt(st));
|
|
29098
|
+
})), vt = (We) => {
|
|
29099
|
+
It(We), ce(We);
|
|
29100
|
+
}, ce = (We) => {
|
|
29101
|
+
Xe && We && window.mapsindoors.services.LocationsService.getLocation(Xe).then((ut) => {
|
|
29102
29102
|
if (ut) {
|
|
29103
29103
|
const Kt = ut.properties.floor;
|
|
29104
|
-
|
|
29104
|
+
We.setFloor(Kt);
|
|
29105
29105
|
const Bt = ut.geometry.type === "Point" ? ut.geometry.coordinates : ut.properties.anchor.coordinates;
|
|
29106
|
-
|
|
29106
|
+
We.getMapView().setCenter({ lat: Bt[1], lng: Bt[0] }), st ? We == null || We.setZoom(st) : hv(We);
|
|
29107
29107
|
}
|
|
29108
29108
|
});
|
|
29109
|
-
}, It = (
|
|
29110
|
-
if (
|
|
29111
|
-
let ut =
|
|
29109
|
+
}, It = (We) => {
|
|
29110
|
+
if (We && Pf) {
|
|
29111
|
+
let ut = We.getTileURL();
|
|
29112
29112
|
if (ut) {
|
|
29113
|
-
ut =
|
|
29114
|
-
const Kt = ut == null ? void 0 : ut.replace("{floor}",
|
|
29115
|
-
|
|
29113
|
+
ut = We.getTileURL().replace("default", Pf);
|
|
29114
|
+
const Kt = ut == null ? void 0 : ut.replace("{floor}", We.getFloor());
|
|
29115
|
+
We.getMapView().setMapsIndoorsTileURL(Kt);
|
|
29116
29116
|
}
|
|
29117
29117
|
}
|
|
29118
|
-
}, Ft = async (
|
|
29118
|
+
}, Ft = async (We, ut) => {
|
|
29119
29119
|
const Kt = new window.mapsindoors.MapsIndoors({
|
|
29120
|
-
mapView:
|
|
29120
|
+
mapView: We
|
|
29121
29121
|
});
|
|
29122
29122
|
Kt.setDisplayRule(["MI_BUILDING_OUTLINE", "MI_BUILDING", "MI_VENUE"], { visible: !1 }), Kt.on("click", (Ht) => m(Ht)), Kt.once("building_changed", () => vt(Kt)), Kt.on("floor_changed", () => It(Kt)), P(Kt);
|
|
29123
29123
|
const Bt = new window.mapsindoors.services.DirectionsService(ut);
|
|
29124
29124
|
te(Bt);
|
|
29125
|
-
const Wt = i0(
|
|
29125
|
+
const Wt = i0(ue, ee);
|
|
29126
29126
|
Wt && !Xe && dt(Wt, Kt);
|
|
29127
|
-
}, zt = (
|
|
29128
|
-
|
|
29127
|
+
}, zt = (We) => {
|
|
29128
|
+
We.nodeName === "MI-MY-POSITION" ? We.addEventListener("position_received", (ut) => {
|
|
29129
29129
|
ut.detail.accurate === !0 && G(ut.detail.position);
|
|
29130
|
-
}) :
|
|
29130
|
+
}) : We.on("position_received", (ut) => {
|
|
29131
29131
|
ut.accurate === !0 && G(ut.position);
|
|
29132
|
-
}), Mt(
|
|
29132
|
+
}), Mt(We);
|
|
29133
29133
|
};
|
|
29134
29134
|
return si(() => {
|
|
29135
29135
|
Pf = Ie || "default", It(o);
|
|
@@ -29223,28 +29223,28 @@ function sI() {
|
|
|
29223
29223
|
if (n0)
|
|
29224
29224
|
return tn;
|
|
29225
29225
|
n0 = 1;
|
|
29226
|
-
var m = typeof Symbol == "function" && Symbol.for, g = m ? Symbol.for("react.element") : 60103, x = m ? Symbol.for("react.portal") : 60106, b = m ? Symbol.for("react.fragment") : 60107, S = m ? Symbol.for("react.strict_mode") : 60108, D = m ? Symbol.for("react.profiler") : 60114, B = m ? Symbol.for("react.provider") : 60109, o = m ? Symbol.for("react.context") : 60110, P = m ? Symbol.for("react.async_mode") : 60111, G = m ? Symbol.for("react.concurrent_mode") : 60111, te = m ? Symbol.for("react.forward_ref") : 60112, ee = m ? Symbol.for("react.suspense") : 60113,
|
|
29227
|
-
function dt(
|
|
29228
|
-
if (typeof
|
|
29229
|
-
var It =
|
|
29226
|
+
var m = typeof Symbol == "function" && Symbol.for, g = m ? Symbol.for("react.element") : 60103, x = m ? Symbol.for("react.portal") : 60106, b = m ? Symbol.for("react.fragment") : 60107, S = m ? Symbol.for("react.strict_mode") : 60108, D = m ? Symbol.for("react.profiler") : 60114, B = m ? Symbol.for("react.provider") : 60109, o = m ? Symbol.for("react.context") : 60110, P = m ? Symbol.for("react.async_mode") : 60111, G = m ? Symbol.for("react.concurrent_mode") : 60111, te = m ? Symbol.for("react.forward_ref") : 60112, ee = m ? Symbol.for("react.suspense") : 60113, ue = m ? Symbol.for("react.suspense_list") : 60120, we = m ? Symbol.for("react.memo") : 60115, Ee = m ? Symbol.for("react.lazy") : 60116, Ie = m ? Symbol.for("react.block") : 60121, st = m ? Symbol.for("react.fundamental") : 60117, Mt = m ? Symbol.for("react.responder") : 60118, Xe = m ? Symbol.for("react.scope") : 60119;
|
|
29227
|
+
function dt(ce) {
|
|
29228
|
+
if (typeof ce == "object" && ce !== null) {
|
|
29229
|
+
var It = ce.$$typeof;
|
|
29230
29230
|
switch (It) {
|
|
29231
29231
|
case g:
|
|
29232
|
-
switch (
|
|
29232
|
+
switch (ce = ce.type, ce) {
|
|
29233
29233
|
case P:
|
|
29234
29234
|
case G:
|
|
29235
29235
|
case b:
|
|
29236
29236
|
case D:
|
|
29237
29237
|
case S:
|
|
29238
29238
|
case ee:
|
|
29239
|
-
return
|
|
29239
|
+
return ce;
|
|
29240
29240
|
default:
|
|
29241
|
-
switch (
|
|
29241
|
+
switch (ce = ce && ce.$$typeof, ce) {
|
|
29242
29242
|
case o:
|
|
29243
29243
|
case te:
|
|
29244
29244
|
case Ee:
|
|
29245
29245
|
case we:
|
|
29246
29246
|
case B:
|
|
29247
|
-
return
|
|
29247
|
+
return ce;
|
|
29248
29248
|
default:
|
|
29249
29249
|
return It;
|
|
29250
29250
|
}
|
|
@@ -29254,35 +29254,35 @@ function sI() {
|
|
|
29254
29254
|
}
|
|
29255
29255
|
}
|
|
29256
29256
|
}
|
|
29257
|
-
function vt(
|
|
29258
|
-
return dt(
|
|
29259
|
-
}
|
|
29260
|
-
return tn.AsyncMode = P, tn.ConcurrentMode = G, tn.ContextConsumer = o, tn.ContextProvider = B, tn.Element = g, tn.ForwardRef = te, tn.Fragment = b, tn.Lazy = Ee, tn.Memo = we, tn.Portal = x, tn.Profiler = D, tn.StrictMode = S, tn.Suspense = ee, tn.isAsyncMode = function(
|
|
29261
|
-
return vt(
|
|
29262
|
-
}, tn.isConcurrentMode = vt, tn.isContextConsumer = function(
|
|
29263
|
-
return dt(
|
|
29264
|
-
}, tn.isContextProvider = function(
|
|
29265
|
-
return dt(
|
|
29266
|
-
}, tn.isElement = function(
|
|
29267
|
-
return typeof
|
|
29268
|
-
}, tn.isForwardRef = function(
|
|
29269
|
-
return dt(
|
|
29270
|
-
}, tn.isFragment = function(
|
|
29271
|
-
return dt(
|
|
29272
|
-
}, tn.isLazy = function(
|
|
29273
|
-
return dt(
|
|
29274
|
-
}, tn.isMemo = function(
|
|
29275
|
-
return dt(
|
|
29276
|
-
}, tn.isPortal = function(
|
|
29277
|
-
return dt(
|
|
29278
|
-
}, tn.isProfiler = function(
|
|
29279
|
-
return dt(
|
|
29280
|
-
}, tn.isStrictMode = function(
|
|
29281
|
-
return dt(
|
|
29282
|
-
}, tn.isSuspense = function(
|
|
29283
|
-
return dt(
|
|
29284
|
-
}, tn.isValidElementType = function(
|
|
29285
|
-
return typeof
|
|
29257
|
+
function vt(ce) {
|
|
29258
|
+
return dt(ce) === G;
|
|
29259
|
+
}
|
|
29260
|
+
return tn.AsyncMode = P, tn.ConcurrentMode = G, tn.ContextConsumer = o, tn.ContextProvider = B, tn.Element = g, tn.ForwardRef = te, tn.Fragment = b, tn.Lazy = Ee, tn.Memo = we, tn.Portal = x, tn.Profiler = D, tn.StrictMode = S, tn.Suspense = ee, tn.isAsyncMode = function(ce) {
|
|
29261
|
+
return vt(ce) || dt(ce) === P;
|
|
29262
|
+
}, tn.isConcurrentMode = vt, tn.isContextConsumer = function(ce) {
|
|
29263
|
+
return dt(ce) === o;
|
|
29264
|
+
}, tn.isContextProvider = function(ce) {
|
|
29265
|
+
return dt(ce) === B;
|
|
29266
|
+
}, tn.isElement = function(ce) {
|
|
29267
|
+
return typeof ce == "object" && ce !== null && ce.$$typeof === g;
|
|
29268
|
+
}, tn.isForwardRef = function(ce) {
|
|
29269
|
+
return dt(ce) === te;
|
|
29270
|
+
}, tn.isFragment = function(ce) {
|
|
29271
|
+
return dt(ce) === b;
|
|
29272
|
+
}, tn.isLazy = function(ce) {
|
|
29273
|
+
return dt(ce) === Ee;
|
|
29274
|
+
}, tn.isMemo = function(ce) {
|
|
29275
|
+
return dt(ce) === we;
|
|
29276
|
+
}, tn.isPortal = function(ce) {
|
|
29277
|
+
return dt(ce) === x;
|
|
29278
|
+
}, tn.isProfiler = function(ce) {
|
|
29279
|
+
return dt(ce) === D;
|
|
29280
|
+
}, tn.isStrictMode = function(ce) {
|
|
29281
|
+
return dt(ce) === S;
|
|
29282
|
+
}, tn.isSuspense = function(ce) {
|
|
29283
|
+
return dt(ce) === ee;
|
|
29284
|
+
}, tn.isValidElementType = function(ce) {
|
|
29285
|
+
return typeof ce == "string" || typeof ce == "function" || ce === b || ce === G || ce === D || ce === S || ce === ee || ce === ue || typeof ce == "object" && ce !== null && (ce.$$typeof === Ee || ce.$$typeof === we || ce.$$typeof === B || ce.$$typeof === o || ce.$$typeof === te || ce.$$typeof === st || ce.$$typeof === Mt || ce.$$typeof === Xe || ce.$$typeof === Ie);
|
|
29286
29286
|
}, tn.typeOf = dt, tn;
|
|
29287
29287
|
}
|
|
29288
29288
|
var nn = {};
|
|
@@ -29297,10 +29297,10 @@ var nn = {};
|
|
|
29297
29297
|
var r0;
|
|
29298
29298
|
function aI() {
|
|
29299
29299
|
return r0 || (r0 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
29300
|
-
var m = typeof Symbol == "function" && Symbol.for, g = m ? Symbol.for("react.element") : 60103, x = m ? Symbol.for("react.portal") : 60106, b = m ? Symbol.for("react.fragment") : 60107, S = m ? Symbol.for("react.strict_mode") : 60108, D = m ? Symbol.for("react.profiler") : 60114, B = m ? Symbol.for("react.provider") : 60109, o = m ? Symbol.for("react.context") : 60110, P = m ? Symbol.for("react.async_mode") : 60111, G = m ? Symbol.for("react.concurrent_mode") : 60111, te = m ? Symbol.for("react.forward_ref") : 60112, ee = m ? Symbol.for("react.suspense") : 60113,
|
|
29300
|
+
var m = typeof Symbol == "function" && Symbol.for, g = m ? Symbol.for("react.element") : 60103, x = m ? Symbol.for("react.portal") : 60106, b = m ? Symbol.for("react.fragment") : 60107, S = m ? Symbol.for("react.strict_mode") : 60108, D = m ? Symbol.for("react.profiler") : 60114, B = m ? Symbol.for("react.provider") : 60109, o = m ? Symbol.for("react.context") : 60110, P = m ? Symbol.for("react.async_mode") : 60111, G = m ? Symbol.for("react.concurrent_mode") : 60111, te = m ? Symbol.for("react.forward_ref") : 60112, ee = m ? Symbol.for("react.suspense") : 60113, ue = m ? Symbol.for("react.suspense_list") : 60120, we = m ? Symbol.for("react.memo") : 60115, Ee = m ? Symbol.for("react.lazy") : 60116, Ie = m ? Symbol.for("react.block") : 60121, st = m ? Symbol.for("react.fundamental") : 60117, Mt = m ? Symbol.for("react.responder") : 60118, Xe = m ? Symbol.for("react.scope") : 60119;
|
|
29301
29301
|
function dt(qe) {
|
|
29302
29302
|
return typeof qe == "string" || typeof qe == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
29303
|
-
qe === b || qe === G || qe === D || qe === S || qe === ee || qe ===
|
|
29303
|
+
qe === b || qe === G || qe === D || qe === S || qe === ee || qe === ue || typeof qe == "object" && qe !== null && (qe.$$typeof === Ee || qe.$$typeof === we || qe.$$typeof === B || qe.$$typeof === o || qe.$$typeof === te || qe.$$typeof === st || qe.$$typeof === Mt || qe.$$typeof === Xe || qe.$$typeof === Ie);
|
|
29304
29304
|
}
|
|
29305
29305
|
function vt(qe) {
|
|
29306
29306
|
if (typeof qe == "object" && qe !== null) {
|
|
@@ -29334,14 +29334,14 @@ function aI() {
|
|
|
29334
29334
|
}
|
|
29335
29335
|
}
|
|
29336
29336
|
}
|
|
29337
|
-
var
|
|
29337
|
+
var ce = P, It = G, Ft = o, zt = B, We = g, ut = te, Kt = b, Bt = Ee, Wt = we, Ht = x, Nt = D, Mi = S, Ii = ee, Vi = !1;
|
|
29338
29338
|
function sn(qe) {
|
|
29339
29339
|
return Vi || (Vi = !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.")), Be(qe) || vt(qe) === P;
|
|
29340
29340
|
}
|
|
29341
29341
|
function Be(qe) {
|
|
29342
29342
|
return vt(qe) === G;
|
|
29343
29343
|
}
|
|
29344
|
-
function
|
|
29344
|
+
function rt(qe) {
|
|
29345
29345
|
return vt(qe) === o;
|
|
29346
29346
|
}
|
|
29347
29347
|
function ge(qe) {
|
|
@@ -29374,7 +29374,7 @@ function aI() {
|
|
|
29374
29374
|
function li(qe) {
|
|
29375
29375
|
return vt(qe) === ee;
|
|
29376
29376
|
}
|
|
29377
|
-
nn.AsyncMode =
|
|
29377
|
+
nn.AsyncMode = ce, nn.ConcurrentMode = It, nn.ContextConsumer = Ft, nn.ContextProvider = zt, nn.Element = We, nn.ForwardRef = ut, nn.Fragment = Kt, nn.Lazy = Bt, nn.Memo = Wt, nn.Portal = Ht, nn.Profiler = Nt, nn.StrictMode = Mi, nn.Suspense = Ii, nn.isAsyncMode = sn, nn.isConcurrentMode = Be, nn.isContextConsumer = rt, nn.isContextProvider = ge, nn.isElement = Ne, nn.isForwardRef = Ge, nn.isFragment = pt, nn.isLazy = Qe, nn.isMemo = ct, nn.isPortal = gt, nn.isProfiler = at, nn.isStrictMode = At, nn.isSuspense = li, nn.isValidElementType = dt, nn.typeOf = vt;
|
|
29378
29378
|
}()), nn;
|
|
29379
29379
|
}
|
|
29380
29380
|
var o0;
|
|
@@ -29426,8 +29426,8 @@ function lI() {
|
|
|
29426
29426
|
g.call(o, ee) && (P[ee] = o[ee]);
|
|
29427
29427
|
if (m) {
|
|
29428
29428
|
G = m(o);
|
|
29429
|
-
for (var
|
|
29430
|
-
x.call(o, G[
|
|
29429
|
+
for (var ue = 0; ue < G.length; ue++)
|
|
29430
|
+
x.call(o, G[ue]) && (P[G[ue]] = o[G[ue]]);
|
|
29431
29431
|
}
|
|
29432
29432
|
}
|
|
29433
29433
|
return P;
|
|
@@ -29470,10 +29470,10 @@ function cI() {
|
|
|
29470
29470
|
var ee;
|
|
29471
29471
|
try {
|
|
29472
29472
|
if (typeof D[te] != "function") {
|
|
29473
|
-
var
|
|
29473
|
+
var ue = Error(
|
|
29474
29474
|
(P || "React class") + ": " + o + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof D[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
29475
29475
|
);
|
|
29476
|
-
throw
|
|
29476
|
+
throw ue.name = "Invariant Violation", ue;
|
|
29477
29477
|
}
|
|
29478
29478
|
ee = D[te](B, te, P, o, null, g);
|
|
29479
29479
|
} catch (Ee) {
|
|
@@ -29516,11 +29516,11 @@ function uI() {
|
|
|
29516
29516
|
return Ff = function(o, P) {
|
|
29517
29517
|
var G = typeof Symbol == "function" && Symbol.iterator, te = "@@iterator";
|
|
29518
29518
|
function ee(Be) {
|
|
29519
|
-
var
|
|
29520
|
-
if (typeof
|
|
29521
|
-
return
|
|
29519
|
+
var rt = Be && (G && Be[G] || Be[te]);
|
|
29520
|
+
if (typeof rt == "function")
|
|
29521
|
+
return rt;
|
|
29522
29522
|
}
|
|
29523
|
-
var
|
|
29523
|
+
var ue = "<<anonymous>>", we = {
|
|
29524
29524
|
array: Mt("array"),
|
|
29525
29525
|
bigint: Mt("bigint"),
|
|
29526
29526
|
bool: Mt("boolean"),
|
|
@@ -29532,27 +29532,27 @@ function uI() {
|
|
|
29532
29532
|
any: Xe(),
|
|
29533
29533
|
arrayOf: dt,
|
|
29534
29534
|
element: vt(),
|
|
29535
|
-
elementType:
|
|
29535
|
+
elementType: ce(),
|
|
29536
29536
|
instanceOf: It,
|
|
29537
29537
|
node: ut(),
|
|
29538
29538
|
objectOf: zt,
|
|
29539
29539
|
oneOf: Ft,
|
|
29540
|
-
oneOfType:
|
|
29540
|
+
oneOfType: We,
|
|
29541
29541
|
shape: Bt,
|
|
29542
29542
|
exact: Wt
|
|
29543
29543
|
};
|
|
29544
|
-
function Ee(Be,
|
|
29545
|
-
return Be ===
|
|
29544
|
+
function Ee(Be, rt) {
|
|
29545
|
+
return Be === rt ? Be !== 0 || 1 / Be === 1 / rt : Be !== Be && rt !== rt;
|
|
29546
29546
|
}
|
|
29547
|
-
function Ie(Be,
|
|
29548
|
-
this.message = Be, this.data =
|
|
29547
|
+
function Ie(Be, rt) {
|
|
29548
|
+
this.message = Be, this.data = rt && typeof rt == "object" ? rt : {}, this.stack = "";
|
|
29549
29549
|
}
|
|
29550
29550
|
Ie.prototype = Error.prototype;
|
|
29551
|
-
function
|
|
29551
|
+
function st(Be) {
|
|
29552
29552
|
if (process.env.NODE_ENV !== "production")
|
|
29553
|
-
var
|
|
29553
|
+
var rt = {}, ge = 0;
|
|
29554
29554
|
function Ne(pt, Qe, ct, gt, at, At, li) {
|
|
29555
|
-
if (gt = gt ||
|
|
29555
|
+
if (gt = gt || ue, At = At || ct, li !== x) {
|
|
29556
29556
|
if (P) {
|
|
29557
29557
|
var qe = new Error(
|
|
29558
29558
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -29560,10 +29560,10 @@ function uI() {
|
|
|
29560
29560
|
throw qe.name = "Invariant Violation", qe;
|
|
29561
29561
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
29562
29562
|
var ni = gt + ":" + ct;
|
|
29563
|
-
!
|
|
29563
|
+
!rt[ni] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
29564
29564
|
ge < 3 && (D(
|
|
29565
29565
|
"You are manually calling a React.PropTypes validation function for the `" + At + "` prop on `" + gt + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
29566
|
-
),
|
|
29566
|
+
), rt[ni] = !0, ge++);
|
|
29567
29567
|
}
|
|
29568
29568
|
}
|
|
29569
29569
|
return Qe[ct] == null ? pt ? Qe[ct] === null ? new Ie("The " + at + " `" + At + "` is marked as required " + ("in `" + gt + "`, but its value is `null`.")) : new Ie("The " + at + " `" + At + "` is marked as required in " + ("`" + gt + "`, but its value is `undefined`.")) : null : Be(Qe, ct, gt, at, At);
|
|
@@ -29572,7 +29572,7 @@ function uI() {
|
|
|
29572
29572
|
return Ge.isRequired = Ne.bind(null, !0), Ge;
|
|
29573
29573
|
}
|
|
29574
29574
|
function Mt(Be) {
|
|
29575
|
-
function
|
|
29575
|
+
function rt(ge, Ne, Ge, pt, Qe, ct) {
|
|
29576
29576
|
var gt = ge[Ne], at = Mi(gt);
|
|
29577
29577
|
if (at !== Be) {
|
|
29578
29578
|
var At = Ii(gt);
|
|
@@ -29583,13 +29583,13 @@ function uI() {
|
|
|
29583
29583
|
}
|
|
29584
29584
|
return null;
|
|
29585
29585
|
}
|
|
29586
|
-
return
|
|
29586
|
+
return st(rt);
|
|
29587
29587
|
}
|
|
29588
29588
|
function Xe() {
|
|
29589
|
-
return
|
|
29589
|
+
return st(B);
|
|
29590
29590
|
}
|
|
29591
29591
|
function dt(Be) {
|
|
29592
|
-
function
|
|
29592
|
+
function rt(ge, Ne, Ge, pt, Qe) {
|
|
29593
29593
|
if (typeof Be != "function")
|
|
29594
29594
|
return new Ie("Property `" + Qe + "` of component `" + Ge + "` has invalid PropType notation inside arrayOf.");
|
|
29595
29595
|
var ct = ge[Ne];
|
|
@@ -29604,46 +29604,46 @@ function uI() {
|
|
|
29604
29604
|
}
|
|
29605
29605
|
return null;
|
|
29606
29606
|
}
|
|
29607
|
-
return
|
|
29607
|
+
return st(rt);
|
|
29608
29608
|
}
|
|
29609
29609
|
function vt() {
|
|
29610
|
-
function Be(
|
|
29611
|
-
var Qe =
|
|
29610
|
+
function Be(rt, ge, Ne, Ge, pt) {
|
|
29611
|
+
var Qe = rt[ge];
|
|
29612
29612
|
if (!o(Qe)) {
|
|
29613
29613
|
var ct = Mi(Qe);
|
|
29614
29614
|
return new Ie("Invalid " + Ge + " `" + pt + "` of type " + ("`" + ct + "` supplied to `" + Ne + "`, expected a single ReactElement."));
|
|
29615
29615
|
}
|
|
29616
29616
|
return null;
|
|
29617
29617
|
}
|
|
29618
|
-
return
|
|
29618
|
+
return st(Be);
|
|
29619
29619
|
}
|
|
29620
|
-
function
|
|
29621
|
-
function Be(
|
|
29622
|
-
var Qe =
|
|
29620
|
+
function ce() {
|
|
29621
|
+
function Be(rt, ge, Ne, Ge, pt) {
|
|
29622
|
+
var Qe = rt[ge];
|
|
29623
29623
|
if (!m.isValidElementType(Qe)) {
|
|
29624
29624
|
var ct = Mi(Qe);
|
|
29625
29625
|
return new Ie("Invalid " + Ge + " `" + pt + "` of type " + ("`" + ct + "` supplied to `" + Ne + "`, expected a single ReactElement type."));
|
|
29626
29626
|
}
|
|
29627
29627
|
return null;
|
|
29628
29628
|
}
|
|
29629
|
-
return
|
|
29629
|
+
return st(Be);
|
|
29630
29630
|
}
|
|
29631
29631
|
function It(Be) {
|
|
29632
|
-
function
|
|
29632
|
+
function rt(ge, Ne, Ge, pt, Qe) {
|
|
29633
29633
|
if (!(ge[Ne] instanceof Be)) {
|
|
29634
|
-
var ct = Be.name ||
|
|
29634
|
+
var ct = Be.name || ue, gt = sn(ge[Ne]);
|
|
29635
29635
|
return new Ie("Invalid " + pt + " `" + Qe + "` of type " + ("`" + gt + "` supplied to `" + Ge + "`, expected ") + ("instance of `" + ct + "`."));
|
|
29636
29636
|
}
|
|
29637
29637
|
return null;
|
|
29638
29638
|
}
|
|
29639
|
-
return
|
|
29639
|
+
return st(rt);
|
|
29640
29640
|
}
|
|
29641
29641
|
function Ft(Be) {
|
|
29642
29642
|
if (!Array.isArray(Be))
|
|
29643
29643
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? D(
|
|
29644
29644
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
29645
29645
|
) : D("Invalid argument supplied to oneOf, expected an array.")), B;
|
|
29646
|
-
function
|
|
29646
|
+
function rt(ge, Ne, Ge, pt, Qe) {
|
|
29647
29647
|
for (var ct = ge[Ne], gt = 0; gt < Be.length; gt++)
|
|
29648
29648
|
if (Ee(ct, Be[gt]))
|
|
29649
29649
|
return null;
|
|
@@ -29653,10 +29653,10 @@ function uI() {
|
|
|
29653
29653
|
});
|
|
29654
29654
|
return new Ie("Invalid " + pt + " `" + Qe + "` of value `" + String(ct) + "` " + ("supplied to `" + Ge + "`, expected one of " + at + "."));
|
|
29655
29655
|
}
|
|
29656
|
-
return
|
|
29656
|
+
return st(rt);
|
|
29657
29657
|
}
|
|
29658
29658
|
function zt(Be) {
|
|
29659
|
-
function
|
|
29659
|
+
function rt(ge, Ne, Ge, pt, Qe) {
|
|
29660
29660
|
if (typeof Be != "function")
|
|
29661
29661
|
return new Ie("Property `" + Qe + "` of component `" + Ge + "` has invalid PropType notation inside objectOf.");
|
|
29662
29662
|
var ct = ge[Ne], gt = Mi(ct);
|
|
@@ -29670,16 +29670,16 @@ function uI() {
|
|
|
29670
29670
|
}
|
|
29671
29671
|
return null;
|
|
29672
29672
|
}
|
|
29673
|
-
return
|
|
29673
|
+
return st(rt);
|
|
29674
29674
|
}
|
|
29675
|
-
function
|
|
29675
|
+
function We(Be) {
|
|
29676
29676
|
if (!Array.isArray(Be))
|
|
29677
29677
|
return process.env.NODE_ENV !== "production" && D("Invalid argument supplied to oneOfType, expected an instance of array."), B;
|
|
29678
|
-
for (var
|
|
29679
|
-
var ge = Be[
|
|
29678
|
+
for (var rt = 0; rt < Be.length; rt++) {
|
|
29679
|
+
var ge = Be[rt];
|
|
29680
29680
|
if (typeof ge != "function")
|
|
29681
29681
|
return D(
|
|
29682
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Vi(ge) + " at index " +
|
|
29682
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Vi(ge) + " at index " + rt + "."
|
|
29683
29683
|
), B;
|
|
29684
29684
|
}
|
|
29685
29685
|
function Ne(Ge, pt, Qe, ct, gt) {
|
|
@@ -29692,21 +29692,21 @@ function uI() {
|
|
|
29692
29692
|
var ni = at.length > 0 ? ", expected one of type [" + at.join(", ") + "]" : "";
|
|
29693
29693
|
return new Ie("Invalid " + ct + " `" + gt + "` supplied to " + ("`" + Qe + "`" + ni + "."));
|
|
29694
29694
|
}
|
|
29695
|
-
return
|
|
29695
|
+
return st(Ne);
|
|
29696
29696
|
}
|
|
29697
29697
|
function ut() {
|
|
29698
|
-
function Be(
|
|
29699
|
-
return Ht(
|
|
29698
|
+
function Be(rt, ge, Ne, Ge, pt) {
|
|
29699
|
+
return Ht(rt[ge]) ? null : new Ie("Invalid " + Ge + " `" + pt + "` supplied to " + ("`" + Ne + "`, expected a ReactNode."));
|
|
29700
29700
|
}
|
|
29701
|
-
return
|
|
29701
|
+
return st(Be);
|
|
29702
29702
|
}
|
|
29703
|
-
function Kt(Be,
|
|
29703
|
+
function Kt(Be, rt, ge, Ne, Ge) {
|
|
29704
29704
|
return new Ie(
|
|
29705
|
-
(Be || "React class") + ": " +
|
|
29705
|
+
(Be || "React class") + ": " + rt + " type `" + ge + "." + Ne + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Ge + "`."
|
|
29706
29706
|
);
|
|
29707
29707
|
}
|
|
29708
29708
|
function Bt(Be) {
|
|
29709
|
-
function
|
|
29709
|
+
function rt(ge, Ne, Ge, pt, Qe) {
|
|
29710
29710
|
var ct = ge[Ne], gt = Mi(ct);
|
|
29711
29711
|
if (gt !== "object")
|
|
29712
29712
|
return new Ie("Invalid " + pt + " `" + Qe + "` of type `" + gt + "` " + ("supplied to `" + Ge + "`, expected `object`."));
|
|
@@ -29720,10 +29720,10 @@ function uI() {
|
|
|
29720
29720
|
}
|
|
29721
29721
|
return null;
|
|
29722
29722
|
}
|
|
29723
|
-
return
|
|
29723
|
+
return st(rt);
|
|
29724
29724
|
}
|
|
29725
29725
|
function Wt(Be) {
|
|
29726
|
-
function
|
|
29726
|
+
function rt(ge, Ne, Ge, pt, Qe) {
|
|
29727
29727
|
var ct = ge[Ne], gt = Mi(ct);
|
|
29728
29728
|
if (gt !== "object")
|
|
29729
29729
|
return new Ie("Invalid " + pt + " `" + Qe + "` of type `" + gt + "` " + ("supplied to `" + Ge + "`, expected `object`."));
|
|
@@ -29743,7 +29743,7 @@ Valid keys: ` + JSON.stringify(Object.keys(Be), null, " ")
|
|
|
29743
29743
|
}
|
|
29744
29744
|
return null;
|
|
29745
29745
|
}
|
|
29746
|
-
return
|
|
29746
|
+
return st(rt);
|
|
29747
29747
|
}
|
|
29748
29748
|
function Ht(Be) {
|
|
29749
29749
|
switch (typeof Be) {
|
|
@@ -29758,10 +29758,10 @@ Valid keys: ` + JSON.stringify(Object.keys(Be), null, " ")
|
|
|
29758
29758
|
return Be.every(Ht);
|
|
29759
29759
|
if (Be === null || o(Be))
|
|
29760
29760
|
return !0;
|
|
29761
|
-
var
|
|
29762
|
-
if (
|
|
29763
|
-
var ge =
|
|
29764
|
-
if (
|
|
29761
|
+
var rt = ee(Be);
|
|
29762
|
+
if (rt) {
|
|
29763
|
+
var ge = rt.call(Be), Ne;
|
|
29764
|
+
if (rt !== Be.entries) {
|
|
29765
29765
|
for (; !(Ne = ge.next()).done; )
|
|
29766
29766
|
if (!Ht(Ne.value))
|
|
29767
29767
|
return !1;
|
|
@@ -29778,41 +29778,41 @@ Valid keys: ` + JSON.stringify(Object.keys(Be), null, " ")
|
|
|
29778
29778
|
return !1;
|
|
29779
29779
|
}
|
|
29780
29780
|
}
|
|
29781
|
-
function Nt(Be,
|
|
29782
|
-
return Be === "symbol" ? !0 :
|
|
29781
|
+
function Nt(Be, rt) {
|
|
29782
|
+
return Be === "symbol" ? !0 : rt ? rt["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && rt instanceof Symbol : !1;
|
|
29783
29783
|
}
|
|
29784
29784
|
function Mi(Be) {
|
|
29785
|
-
var
|
|
29786
|
-
return Array.isArray(Be) ? "array" : Be instanceof RegExp ? "object" : Nt(
|
|
29785
|
+
var rt = typeof Be;
|
|
29786
|
+
return Array.isArray(Be) ? "array" : Be instanceof RegExp ? "object" : Nt(rt, Be) ? "symbol" : rt;
|
|
29787
29787
|
}
|
|
29788
29788
|
function Ii(Be) {
|
|
29789
29789
|
if (typeof Be > "u" || Be === null)
|
|
29790
29790
|
return "" + Be;
|
|
29791
|
-
var
|
|
29792
|
-
if (
|
|
29791
|
+
var rt = Mi(Be);
|
|
29792
|
+
if (rt === "object") {
|
|
29793
29793
|
if (Be instanceof Date)
|
|
29794
29794
|
return "date";
|
|
29795
29795
|
if (Be instanceof RegExp)
|
|
29796
29796
|
return "regexp";
|
|
29797
29797
|
}
|
|
29798
|
-
return
|
|
29798
|
+
return rt;
|
|
29799
29799
|
}
|
|
29800
29800
|
function Vi(Be) {
|
|
29801
|
-
var
|
|
29802
|
-
switch (
|
|
29801
|
+
var rt = Ii(Be);
|
|
29802
|
+
switch (rt) {
|
|
29803
29803
|
case "array":
|
|
29804
29804
|
case "object":
|
|
29805
|
-
return "an " +
|
|
29805
|
+
return "an " + rt;
|
|
29806
29806
|
case "boolean":
|
|
29807
29807
|
case "date":
|
|
29808
29808
|
case "regexp":
|
|
29809
|
-
return "a " +
|
|
29809
|
+
return "a " + rt;
|
|
29810
29810
|
default:
|
|
29811
|
-
return
|
|
29811
|
+
return rt;
|
|
29812
29812
|
}
|
|
29813
29813
|
}
|
|
29814
29814
|
function sn(Be) {
|
|
29815
|
-
return !Be.constructor || !Be.constructor.name ?
|
|
29815
|
+
return !Be.constructor || !Be.constructor.name ? ue : Be.constructor.name;
|
|
29816
29816
|
}
|
|
29817
29817
|
return we.checkPropTypes = S, we.resetWarningCache = S.resetWarningCache, we.PropTypes = we, we;
|
|
29818
29818
|
}, Ff;
|
|
@@ -29830,10 +29830,10 @@ function hI() {
|
|
|
29830
29830
|
return x.resetWarningCache = g, Uf = function() {
|
|
29831
29831
|
function b(B, o, P, G, te, ee) {
|
|
29832
29832
|
if (ee !== m) {
|
|
29833
|
-
var
|
|
29833
|
+
var ue = new Error(
|
|
29834
29834
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
29835
29835
|
);
|
|
29836
|
-
throw
|
|
29836
|
+
throw ue.name = "Invariant Violation", ue;
|
|
29837
29837
|
}
|
|
29838
29838
|
}
|
|
29839
29839
|
b.isRequired = b;
|
|
@@ -29957,7 +29957,7 @@ var gv = function(g) {
|
|
|
29957
29957
|
status: bu
|
|
29958
29958
|
});
|
|
29959
29959
|
}, x.performEnter = function(S) {
|
|
29960
|
-
var D = this, B = this.props.enter, o = this.context ? this.context.isMounting : S, P = this.props.nodeRef ? [o] : [xu.findDOMNode(this), o], G = P[0], te = P[1], ee = this.getTimeouts(),
|
|
29960
|
+
var D = this, B = this.props.enter, o = this.context ? this.context.isMounting : S, P = this.props.nodeRef ? [o] : [xu.findDOMNode(this), o], G = P[0], te = P[1], ee = this.getTimeouts(), ue = o ? ee.appear : ee.enter;
|
|
29961
29961
|
if (!S && !B || p0.disabled) {
|
|
29962
29962
|
this.safeSetState({
|
|
29963
29963
|
status: Pl
|
|
@@ -29969,7 +29969,7 @@ var gv = function(g) {
|
|
|
29969
29969
|
this.props.onEnter(G, te), this.safeSetState({
|
|
29970
29970
|
status: ya
|
|
29971
29971
|
}, function() {
|
|
29972
|
-
D.props.onEntering(G, te), D.onTransitionEnd(
|
|
29972
|
+
D.props.onEntering(G, te), D.onTransitionEnd(ue, function() {
|
|
29973
29973
|
D.safeSetState({
|
|
29974
29974
|
status: Pl
|
|
29975
29975
|
}, function() {
|
|
@@ -30249,11 +30249,11 @@ var xI = function(g, x) {
|
|
|
30249
30249
|
var G = b.resolveArguments(o, P), te = G[0], ee = G[1];
|
|
30250
30250
|
b.removeClasses(te, "exit"), b.addClass(te, ee ? "appear" : "enter", "base"), b.props.onEnter && b.props.onEnter(o, P);
|
|
30251
30251
|
}, b.onEntering = function(o, P) {
|
|
30252
|
-
var G = b.resolveArguments(o, P), te = G[0], ee = G[1],
|
|
30253
|
-
b.addClass(te,
|
|
30252
|
+
var G = b.resolveArguments(o, P), te = G[0], ee = G[1], ue = ee ? "appear" : "enter";
|
|
30253
|
+
b.addClass(te, ue, "active"), b.props.onEntering && b.props.onEntering(o, P);
|
|
30254
30254
|
}, b.onEntered = function(o, P) {
|
|
30255
|
-
var G = b.resolveArguments(o, P), te = G[0], ee = G[1],
|
|
30256
|
-
b.removeClasses(te,
|
|
30255
|
+
var G = b.resolveArguments(o, P), te = G[0], ee = G[1], ue = ee ? "appear" : "enter";
|
|
30256
|
+
b.removeClasses(te, ue), b.addClass(te, ue, "done"), b.props.onEntered && b.props.onEntered(o, P);
|
|
30257
30257
|
}, b.onExit = function(o) {
|
|
30258
30258
|
var P = b.resolveArguments(o), G = P[0];
|
|
30259
30259
|
b.removeClasses(G, "appear"), b.removeClasses(G, "enter"), b.addClass(G, "exit", "base"), b.props.onExit && b.props.onExit(o);
|
|
@@ -30266,10 +30266,10 @@ var xI = function(g, x) {
|
|
|
30266
30266
|
}, b.resolveArguments = function(o, P) {
|
|
30267
30267
|
return b.props.nodeRef ? [b.props.nodeRef.current, o] : [o, P];
|
|
30268
30268
|
}, b.getClassNames = function(o) {
|
|
30269
|
-
var P = b.props.classNames, G = typeof P == "string", te = G && P ? P + "-" : "", ee = G ? "" + te + o : P[o],
|
|
30269
|
+
var P = b.props.classNames, G = typeof P == "string", te = G && P ? P + "-" : "", ee = G ? "" + te + o : P[o], ue = G ? ee + "-active" : P[o + "Active"], we = G ? ee + "-done" : P[o + "Done"];
|
|
30270
30270
|
return {
|
|
30271
30271
|
baseClassName: ee,
|
|
30272
|
-
activeClassName:
|
|
30272
|
+
activeClassName: ue,
|
|
30273
30273
|
doneClassName: we
|
|
30274
30274
|
};
|
|
30275
30275
|
}, b;
|
|
@@ -30484,36 +30484,36 @@ function _0(m, g) {
|
|
|
30484
30484
|
function kI(m, g) {
|
|
30485
30485
|
const x = (te) => {
|
|
30486
30486
|
const ee = "touches" in te;
|
|
30487
|
-
ee && te.touches.length > 1 || m((
|
|
30487
|
+
ee && te.touches.length > 1 || m((ue, we) => {
|
|
30488
30488
|
we.trackMouse && !ee && (document.addEventListener(f0, b), document.addEventListener(m0, B));
|
|
30489
|
-
const { clientX: Ee, clientY: Ie } = ee ? te.touches[0] : te,
|
|
30490
|
-
return we.onTouchStartOrOnMouseDown && we.onTouchStartOrOnMouseDown({ event: te }), Object.assign(Object.assign(Object.assign({},
|
|
30489
|
+
const { clientX: Ee, clientY: Ie } = ee ? te.touches[0] : te, st = _0([Ee, Ie], we.rotationAngle);
|
|
30490
|
+
return we.onTouchStartOrOnMouseDown && we.onTouchStartOrOnMouseDown({ event: te }), Object.assign(Object.assign(Object.assign({}, ue), lm), { initial: st.slice(), xy: st, start: te.timeStamp || 0 });
|
|
30491
30491
|
});
|
|
30492
30492
|
}, b = (te) => {
|
|
30493
|
-
m((ee,
|
|
30493
|
+
m((ee, ue) => {
|
|
30494
30494
|
const we = "touches" in te;
|
|
30495
30495
|
if (we && te.touches.length > 1)
|
|
30496
30496
|
return ee;
|
|
30497
|
-
if (te.timeStamp - ee.start >
|
|
30497
|
+
if (te.timeStamp - ee.start > ue.swipeDuration)
|
|
30498
30498
|
return ee.swiping ? Object.assign(Object.assign({}, ee), { swiping: !1 }) : ee;
|
|
30499
|
-
const { clientX: Ee, clientY: Ie } = we ? te.touches[0] : te, [
|
|
30500
|
-
if (vt < ut &&
|
|
30499
|
+
const { clientX: Ee, clientY: Ie } = we ? te.touches[0] : te, [st, Mt] = _0([Ee, Ie], ue.rotationAngle), Xe = st - ee.xy[0], dt = Mt - ee.xy[1], vt = Math.abs(Xe), ce = Math.abs(dt), It = (te.timeStamp || 0) - ee.start, Ft = Math.sqrt(vt * vt + ce * ce) / (It || 1), zt = [Xe / (It || 1), dt / (It || 1)], We = LI(vt, ce, Xe, dt), ut = typeof ue.delta == "number" ? ue.delta : ue.delta[We.toLowerCase()] || Ol.delta;
|
|
30500
|
+
if (vt < ut && ce < ut && !ee.swiping)
|
|
30501
30501
|
return ee;
|
|
30502
30502
|
const Kt = {
|
|
30503
30503
|
absX: vt,
|
|
30504
|
-
absY:
|
|
30504
|
+
absY: ce,
|
|
30505
30505
|
deltaX: Xe,
|
|
30506
30506
|
deltaY: dt,
|
|
30507
|
-
dir:
|
|
30507
|
+
dir: We,
|
|
30508
30508
|
event: te,
|
|
30509
30509
|
first: ee.first,
|
|
30510
30510
|
initial: ee.initial,
|
|
30511
30511
|
velocity: Ft,
|
|
30512
30512
|
vxvy: zt
|
|
30513
30513
|
};
|
|
30514
|
-
Kt.first &&
|
|
30514
|
+
Kt.first && ue.onSwipeStart && ue.onSwipeStart(Kt), ue.onSwiping && ue.onSwiping(Kt);
|
|
30515
30515
|
let Bt = !1;
|
|
30516
|
-
return (
|
|
30516
|
+
return (ue.onSwiping || ue.onSwiped || ue[`onSwiped${We}`]) && (Bt = !0), Bt && ue.preventScrollOnSwipe && ue.trackTouch && te.cancelable && te.preventDefault(), Object.assign(Object.assign({}, ee), {
|
|
30517
30517
|
// first is now always false
|
|
30518
30518
|
first: !1,
|
|
30519
30519
|
eventData: Kt,
|
|
@@ -30521,24 +30521,24 @@ function kI(m, g) {
|
|
|
30521
30521
|
});
|
|
30522
30522
|
});
|
|
30523
30523
|
}, S = (te) => {
|
|
30524
|
-
m((ee,
|
|
30524
|
+
m((ee, ue) => {
|
|
30525
30525
|
let we;
|
|
30526
30526
|
if (ee.swiping && ee.eventData) {
|
|
30527
|
-
if (te.timeStamp - ee.start <
|
|
30528
|
-
we = Object.assign(Object.assign({}, ee.eventData), { event: te }),
|
|
30529
|
-
const Ee =
|
|
30527
|
+
if (te.timeStamp - ee.start < ue.swipeDuration) {
|
|
30528
|
+
we = Object.assign(Object.assign({}, ee.eventData), { event: te }), ue.onSwiped && ue.onSwiped(we);
|
|
30529
|
+
const Ee = ue[`onSwiped${we.dir}`];
|
|
30530
30530
|
Ee && Ee(we);
|
|
30531
30531
|
}
|
|
30532
30532
|
} else
|
|
30533
|
-
|
|
30534
|
-
return
|
|
30533
|
+
ue.onTap && ue.onTap({ event: te });
|
|
30534
|
+
return ue.onTouchEndOrOnMouseUp && ue.onTouchEndOrOnMouseUp({ event: te }), Object.assign(Object.assign(Object.assign({}, ee), lm), { eventData: we });
|
|
30535
30535
|
});
|
|
30536
30536
|
}, D = () => {
|
|
30537
30537
|
document.removeEventListener(f0, b), document.removeEventListener(m0, B);
|
|
30538
30538
|
}, B = (te) => {
|
|
30539
30539
|
D(), S(te);
|
|
30540
30540
|
}, o = (te, ee) => {
|
|
30541
|
-
let
|
|
30541
|
+
let ue = () => {
|
|
30542
30542
|
};
|
|
30543
30543
|
if (te && te.addEventListener) {
|
|
30544
30544
|
const we = Object.assign(Object.assign({}, Ol.touchEventOptions), ee.touchEventOptions), Ee = [
|
|
@@ -30551,16 +30551,16 @@ function kI(m, g) {
|
|
|
30551
30551
|
],
|
|
30552
30552
|
[II, S, we]
|
|
30553
30553
|
];
|
|
30554
|
-
Ee.forEach(([Ie,
|
|
30554
|
+
Ee.forEach(([Ie, st, Mt]) => te.addEventListener(Ie, st, Mt)), ue = () => Ee.forEach(([Ie, st]) => te.removeEventListener(Ie, st));
|
|
30555
30555
|
}
|
|
30556
|
-
return
|
|
30556
|
+
return ue;
|
|
30557
30557
|
}, G = {
|
|
30558
30558
|
ref: (te) => {
|
|
30559
|
-
te !== null && m((ee,
|
|
30559
|
+
te !== null && m((ee, ue) => {
|
|
30560
30560
|
if (ee.el === te)
|
|
30561
30561
|
return ee;
|
|
30562
30562
|
const we = {};
|
|
30563
|
-
return ee.el && ee.el !== te && ee.cleanUpTouch && (ee.cleanUpTouch(), we.cleanUpTouch = void 0),
|
|
30563
|
+
return ee.el && ee.el !== te && ee.cleanUpTouch && (ee.cleanUpTouch(), we.cleanUpTouch = void 0), ue.trackTouch && te && (we.cleanUpTouch = o(te, ue)), Object.assign(Object.assign(Object.assign({}, ee), { el: te }), we);
|
|
30564
30564
|
});
|
|
30565
30565
|
}
|
|
30566
30566
|
};
|
|
@@ -30588,10 +30588,10 @@ const En = {
|
|
|
30588
30588
|
};
|
|
30589
30589
|
let $f;
|
|
30590
30590
|
function yu({ children: m, isOpen: g, minHeight: x, preferredSizeSnapPoint: b, onSwipedToSnapPoint: S }) {
|
|
30591
|
-
const D = pn(), B = pn(), [o, P] = ii(En.FIT), [G, te] = ii(!1), [ee,
|
|
30592
|
-
function Xe(
|
|
30593
|
-
|
|
30594
|
-
switch (
|
|
30591
|
+
const D = pn(), B = pn(), [o, P] = ii(En.FIT), [G, te] = ii(!1), [ee, ue] = ii(), we = ow(vv), [Ee, Ie] = ii(), [st, Mt] = ii({});
|
|
30592
|
+
function Xe(ce) {
|
|
30593
|
+
ce === En.MIN && Ee <= x || (o === En.FIT && (D.current.style.height = `${Ee}px`), requestAnimationFrame(() => {
|
|
30594
|
+
switch (ce) {
|
|
30595
30595
|
case En.MAX:
|
|
30596
30596
|
Mt({ height: `${we.current.clientHeight}px` });
|
|
30597
30597
|
break;
|
|
@@ -30602,9 +30602,9 @@ function yu({ children: m, isOpen: g, minHeight: x, preferredSizeSnapPoint: b, o
|
|
|
30602
30602
|
Mt({ height: `${x}px` });
|
|
30603
30603
|
break;
|
|
30604
30604
|
}
|
|
30605
|
-
P(
|
|
30605
|
+
P(ce);
|
|
30606
30606
|
}), typeof S == "function" && D.current.addEventListener("transitionend", () => {
|
|
30607
|
-
S(
|
|
30607
|
+
S(ce);
|
|
30608
30608
|
}, { once: !0 }));
|
|
30609
30609
|
}
|
|
30610
30610
|
si(() => {
|
|
@@ -30613,20 +30613,20 @@ function yu({ children: m, isOpen: g, minHeight: x, preferredSizeSnapPoint: b, o
|
|
|
30613
30613
|
}));
|
|
30614
30614
|
}, [b]);
|
|
30615
30615
|
const dt = xv({
|
|
30616
|
-
onSwipeStart: (
|
|
30617
|
-
te(!0), ce
|
|
30616
|
+
onSwipeStart: (ce) => {
|
|
30617
|
+
te(!0), ue(ce.dir), $f = D.current.clientHeight;
|
|
30618
30618
|
},
|
|
30619
|
-
onSwiping: (
|
|
30620
|
-
const It = Math.max($f -
|
|
30619
|
+
onSwiping: (ce) => {
|
|
30620
|
+
const It = Math.max($f - ce.deltaY, x);
|
|
30621
30621
|
Mt({ height: `${It}px` });
|
|
30622
30622
|
},
|
|
30623
|
-
onSwiped: (
|
|
30623
|
+
onSwiped: (ce) => {
|
|
30624
30624
|
te(!1);
|
|
30625
|
-
const It = Math.max($f -
|
|
30625
|
+
const It = Math.max($f - ce.deltaY, x);
|
|
30626
30626
|
let Ft, zt;
|
|
30627
30627
|
ee.toUpperCase() === "DOWN" ? (Ft = Ee - 60, zt = we.current.clientHeight - 60) : (Ft = parseInt(x) + 60, zt = Ee + 60);
|
|
30628
|
-
let
|
|
30629
|
-
It <= Ft ?
|
|
30628
|
+
let We;
|
|
30629
|
+
It <= Ft ? We = En.MIN : It <= zt ? We = En.FIT : We = En.MAX, Xe(We);
|
|
30630
30630
|
},
|
|
30631
30631
|
trackMouse: !0,
|
|
30632
30632
|
preventScrollOnSwipe: !0
|
|
@@ -30634,10 +30634,10 @@ function yu({ children: m, isOpen: g, minHeight: x, preferredSizeSnapPoint: b, o
|
|
|
30634
30634
|
si(() => {
|
|
30635
30635
|
g === !1 ? (Ie(), D.current.style.height = "") : Ie(B.current.clientHeight);
|
|
30636
30636
|
}, [m.length, g]);
|
|
30637
|
-
const vt = (
|
|
30638
|
-
dt.ref(
|
|
30637
|
+
const vt = (ce) => {
|
|
30638
|
+
dt.ref(ce), D.current = ce;
|
|
30639
30639
|
};
|
|
30640
|
-
return /* @__PURE__ */ me.jsx("div", { ...dt, ref: vt, style:
|
|
30640
|
+
return /* @__PURE__ */ me.jsx("div", { ...dt, ref: vt, style: st, className: `sheet ${g ? "sheet--active" : ""} ${G ? "sheet--dragging" : ""}`, children: /* @__PURE__ */ me.jsx("div", { ref: B, className: "sheet__content", style: st, children: m }) });
|
|
30641
30641
|
}
|
|
30642
30642
|
const zI = (m, g) => {
|
|
30643
30643
|
const [x, b] = ii(void 0), [S, D] = ii(void 0);
|
|
@@ -30653,62 +30653,62 @@ const zI = (m, g) => {
|
|
|
30653
30653
|
onSwiping: ({ event: m }) => m.stopPropagation()
|
|
30654
30654
|
});
|
|
30655
30655
|
function bv({ onBack: m, onStartWayfinding: g, onSetSize: x, snapPointSwiped: b }) {
|
|
30656
|
-
const S = pn(null), D = pn(null), B = pn(null), [o, P] = ii(!1), [G, te] = ii(!1), [ee,
|
|
30656
|
+
const S = pn(null), D = pn(null), B = pn(null), [o, P] = ii(!1), [G, te] = ii(!1), [ee, ue] = ii(!1), [we, Ee] = ii(null), Ie = vi(Yo), st = vi(zu), [Mt, Xe] = zI(st, B), dt = Ou(), vt = vi(Ia);
|
|
30657
30657
|
si(() => {
|
|
30658
|
-
P(!1), te(!1),
|
|
30659
|
-
}, [
|
|
30660
|
-
function
|
|
30658
|
+
P(!1), te(!1), ue(!1), Ee(null), st && (S.current.location = st, Ee(Ie.getDisplayRule(st)));
|
|
30659
|
+
}, [st, Ie]);
|
|
30660
|
+
function ce(Wt) {
|
|
30661
30661
|
typeof x == "function" && x(Wt);
|
|
30662
30662
|
}
|
|
30663
30663
|
si(() => {
|
|
30664
30664
|
b !== void 0 && (P(b === En.MAX), b === En.MAX ? Ft() : zt());
|
|
30665
30665
|
}, [b]);
|
|
30666
30666
|
function It() {
|
|
30667
|
-
o === !1 ? (
|
|
30667
|
+
o === !1 ? (ce(En.MAX), Ft()) : (ce(En.FIT), zt());
|
|
30668
30668
|
}
|
|
30669
30669
|
function Ft() {
|
|
30670
30670
|
requestAnimationFrame(() => {
|
|
30671
|
-
P(!0),
|
|
30671
|
+
P(!0), We();
|
|
30672
30672
|
});
|
|
30673
30673
|
}
|
|
30674
30674
|
function zt() {
|
|
30675
30675
|
P(!1), ut();
|
|
30676
30676
|
}
|
|
30677
|
-
function
|
|
30677
|
+
function We() {
|
|
30678
30678
|
requestAnimationFrame(() => {
|
|
30679
|
-
te(D.current.scrollTop > 0),
|
|
30679
|
+
te(D.current.scrollTop > 0), ue(D.current.scrollTop < D.current.scrollHeight - D.current.offsetHeight - 1);
|
|
30680
30680
|
});
|
|
30681
30681
|
}
|
|
30682
30682
|
function ut() {
|
|
30683
|
-
te(!1),
|
|
30683
|
+
te(!1), ue(!1);
|
|
30684
30684
|
}
|
|
30685
30685
|
function Kt() {
|
|
30686
|
-
P(!1), te(!1),
|
|
30686
|
+
P(!1), te(!1), ue(!1), ce(En.FIT), g();
|
|
30687
30687
|
}
|
|
30688
30688
|
function Bt() {
|
|
30689
|
-
P(!1), te(!1),
|
|
30689
|
+
P(!1), te(!1), ue(!1), ce(En.FIT), m();
|
|
30690
30690
|
}
|
|
30691
|
-
return /* @__PURE__ */ me.jsx("div", { className: `location-details ${G ? "location-details--content-above" : ""} ${ee ? "location-details--content-below" : ""}`, children:
|
|
30691
|
+
return /* @__PURE__ */ me.jsx("div", { className: `location-details ${G ? "location-details--content-above" : ""} ${ee ? "location-details--content-below" : ""}`, children: st && /* @__PURE__ */ me.jsxs(me.Fragment, { children: [
|
|
30692
30692
|
/* @__PURE__ */ me.jsxs("div", { className: "location-info", children: [
|
|
30693
30693
|
/* @__PURE__ */ me.jsx("div", { className: "location-info__icon", children: we && /* @__PURE__ */ me.jsx("img", { alt: "", src: we.icon.src ? we.icon.src : we.icon }) }),
|
|
30694
30694
|
/* @__PURE__ */ me.jsxs("div", { className: "location-info__content", children: [
|
|
30695
|
-
/* @__PURE__ */ me.jsx("div", { className: "location-info__name", children:
|
|
30695
|
+
/* @__PURE__ */ me.jsx("div", { className: "location-info__name", children: st.properties.name }),
|
|
30696
30696
|
/* @__PURE__ */ me.jsx("mi-location-info", { ref: S })
|
|
30697
30697
|
] }),
|
|
30698
30698
|
/* @__PURE__ */ me.jsx("button", { className: "location-info__close", onClick: () => Bt(), children: /* @__PURE__ */ me.jsx(Pu, {}) })
|
|
30699
30699
|
] }),
|
|
30700
|
-
/* @__PURE__ */ me.jsxs("div", { ref: D, onScroll: (Wt) =>
|
|
30701
|
-
|
|
30702
|
-
Object.keys(
|
|
30700
|
+
/* @__PURE__ */ me.jsxs("div", { ref: D, onScroll: (Wt) => We(), className: "location-details__details", children: [
|
|
30701
|
+
st.properties.imageURL && /* @__PURE__ */ me.jsx("img", { alt: "", src: st.properties.imageURL, className: "location-details__image" }),
|
|
30702
|
+
Object.keys(st.properties.categories).length > 0 && /* @__PURE__ */ me.jsx("p", { className: "location-details__categories", children: Object.values(st.properties.categories).map((Wt, Ht, Nt) => /* @__PURE__ */ me.jsxs(Ni.Fragment, { children: [
|
|
30703
30703
|
Wt,
|
|
30704
30704
|
Ht < Nt.length - 1 && /* @__PURE__ */ me.jsx(me.Fragment, { children: "・" })
|
|
30705
30705
|
] }, Wt)) }),
|
|
30706
|
-
|
|
30707
|
-
/* @__PURE__ */ me.jsx("div", { ref: B, children:
|
|
30706
|
+
st.properties.description && !o && /* @__PURE__ */ me.jsxs("section", { className: "location-details__description", children: [
|
|
30707
|
+
/* @__PURE__ */ me.jsx("div", { ref: B, children: st.properties.description }),
|
|
30708
30708
|
(Mt || Xe) && /* @__PURE__ */ me.jsx("button", { onClick: () => It(), children: "Read full description" })
|
|
30709
30709
|
] }),
|
|
30710
|
-
|
|
30711
|
-
/* @__PURE__ */ me.jsx("div", { children:
|
|
30710
|
+
st.properties.description && o && /* @__PURE__ */ me.jsxs("section", { className: "location-details__description location-details__description--full prevent-scroll", ...dt, children: [
|
|
30711
|
+
/* @__PURE__ */ me.jsx("div", { children: st.properties.description }),
|
|
30712
30712
|
Xe && /* @__PURE__ */ me.jsx("button", { onClick: () => It(), children: "Close" })
|
|
30713
30713
|
] })
|
|
30714
30714
|
] }),
|
|
@@ -30772,13 +30772,13 @@ const Ev = bn({
|
|
|
30772
30772
|
G.current.clear();
|
|
30773
30773
|
}
|
|
30774
30774
|
})), si(() => {
|
|
30775
|
-
const ee = (Ee) => x(Ee.detail), { current:
|
|
30776
|
-
g === !0 && (
|
|
30775
|
+
const ee = (Ee) => x(Ee.detail), { current: ue } = G;
|
|
30776
|
+
g === !0 && (ue.mapsindoors = "true");
|
|
30777
30777
|
function we() {
|
|
30778
|
-
|
|
30778
|
+
ue.getValue || ue.focusInput(), S();
|
|
30779
30779
|
}
|
|
30780
|
-
return
|
|
30781
|
-
|
|
30780
|
+
return ue.addEventListener("results", ee), ue.addEventListener("click", b), ue.addEventListener("cleared", we), () => {
|
|
30781
|
+
ue.removeEventListener("results", ee), ue.removeEventListener("click", b), ue.removeEventListener("cleared", we);
|
|
30782
30782
|
};
|
|
30783
30783
|
}, [m, g, x, b, S, B]), /* @__PURE__ */ me.jsx(
|
|
30784
30784
|
"mi-search",
|
|
@@ -30834,22 +30834,22 @@ const $m = bn({
|
|
|
30834
30834
|
FROM: "FROM"
|
|
30835
30835
|
}, VI = "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";
|
|
30836
30836
|
function Av({ onStartDirections: m, onBack: g, directionsToLocation: x, directionsFromLocation: b, onSetSize: S, isActive: D }) {
|
|
30837
|
-
const B = pn(), o = pn(), P = pn(), G = pn(), [, te] = Zi($m), ee = vi(rv),
|
|
30837
|
+
const B = pn(), o = pn(), P = pn(), G = pn(), [, te] = Zi($m), ee = vi(rv), ue = vi(Om), we = vi(zu), Ee = vi(ov), Ie = vi(Ia), [st, Mt] = ii(), [Xe, dt] = ii(!0), [vt, ce] = ii(!0), [It, Ft] = ii(!1), [zt, We] = ii([]), [ut, Kt] = ii(), [Bt, Wt] = ii(), [Ht, Nt] = ii(), [Mi, Ii] = ii(), [Vi, sn] = ii(!1), Be = Ou(), [rt, ge] = ii(!1), [Ne, Ge] = Zi(Tv);
|
|
30838
30838
|
function pt(it) {
|
|
30839
30839
|
return Ee === Ss.Google && it.properties.type === "google_places" ? UI(it) : Promise.resolve(it);
|
|
30840
30840
|
}
|
|
30841
30841
|
function Qe(it) {
|
|
30842
|
-
|
|
30842
|
+
st === Pr.TO ? pt(it).then((jt) => {
|
|
30843
30843
|
Kt(jt), P.current.setDisplayText(jt.properties.name);
|
|
30844
|
-
}, () => dt(!1)) :
|
|
30844
|
+
}, () => dt(!1)) : st === Pr.FROM && pt(it).then((jt) => {
|
|
30845
30845
|
Wt(jt), G.current.setDisplayText(jt.properties.name);
|
|
30846
|
-
}, () => dt(!1)), ge(!1), Ft(!1),
|
|
30846
|
+
}, () => dt(!1)), ge(!1), Ft(!1), We([]);
|
|
30847
30847
|
}
|
|
30848
30848
|
function ct(it, jt) {
|
|
30849
|
-
if (Mt(jt), it.length === 0)
|
|
30850
|
-
|
|
30849
|
+
if (Mt(jt), dt(!0), it.length === 0)
|
|
30850
|
+
ce(!1), ge(!1), We([]);
|
|
30851
30851
|
else {
|
|
30852
|
-
|
|
30852
|
+
ce(!0), We(it);
|
|
30853
30853
|
const Ki = it.filter((on) => on.properties.type === "google_places").length > 0;
|
|
30854
30854
|
ge(Ki);
|
|
30855
30855
|
}
|
|
@@ -30862,20 +30862,20 @@ function Av({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30862
30862
|
return { lat: jt[1], lng: jt[0], floor: it.properties.floor };
|
|
30863
30863
|
}
|
|
30864
30864
|
function At() {
|
|
30865
|
-
const it = Sv(
|
|
30866
|
-
G.current.setDisplayText(it.properties.name), Wt(it), dt(!0);
|
|
30865
|
+
const it = Sv(ue);
|
|
30866
|
+
G.current.setDisplayText(it.properties.name), Wt(it), dt(!0), ce(!0);
|
|
30867
30867
|
}
|
|
30868
30868
|
function li(it) {
|
|
30869
30869
|
Mt(it), qt(it), dt(!0), ge(!1);
|
|
30870
30870
|
}
|
|
30871
30871
|
function qe(it) {
|
|
30872
|
-
Mt(it), ni(it),
|
|
30872
|
+
Mt(it), ni(it), We([]), dt(!0), ge(!1), ce(!0);
|
|
30873
30873
|
}
|
|
30874
30874
|
function ni(it) {
|
|
30875
30875
|
it === Pr.TO ? Kt() : it === Pr.FROM && Wt();
|
|
30876
30876
|
}
|
|
30877
30877
|
function qt(it) {
|
|
30878
|
-
it === Pr.TO ? (
|
|
30878
|
+
it === Pr.TO ? (We([]), P.current.getValue() && (Ft(!0), P.current.triggerSearch())) : it === Pr.FROM && (We([]), G.current.getValue() && (Ft(!0), G.current.triggerSearch()));
|
|
30879
30879
|
}
|
|
30880
30880
|
function Fi() {
|
|
30881
30881
|
(ut || Bt) && (Bt ? P.current.setDisplayText(Bt.properties.name) : P.current.clear(), ut ? G.current.setDisplayText(ut.properties.name) : G.current.clear(), Kt(Bt), Wt(ut));
|
|
@@ -30886,7 +30886,7 @@ function Av({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30886
30886
|
const jt = B.current.closest(".sheet");
|
|
30887
30887
|
jt ? jt.addEventListener("transitionend", () => {
|
|
30888
30888
|
b !== "USER_POSITION_PENDING" && (x == null ? void 0 : x.id) !== "USER_POSITION" && G.current.focusInput();
|
|
30889
|
-
}, { once: !0 }) : b !== "USER_POSITION_PENDING" && (x == null ? void 0 : x.id) !== "USER_POSITION" && G.current.focusInput(),
|
|
30889
|
+
}, { once: !0 }) : b !== "USER_POSITION_PENDING" && (x == null ? void 0 : x.id) !== "USER_POSITION" && G.current.focusInput(), ue && !Bt && (x == null ? void 0 : x.id) !== "USER_POSITION" && At();
|
|
30890
30890
|
}
|
|
30891
30891
|
}, [D, x, b]), si(() => {
|
|
30892
30892
|
Bt != null && Bt.geometry && (ut != null && ut.geometry) && ee.getRoute({
|
|
@@ -30911,7 +30911,7 @@ function Av({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30911
30911
|
dt(!1);
|
|
30912
30912
|
});
|
|
30913
30913
|
}, [Bt, ut, ee, Vi, Ne]), si(() => {
|
|
30914
|
-
Ee === Ss.Mapbox && (ge(!1),
|
|
30914
|
+
Ee === Ss.Mapbox && (ge(!1), We(zt.filter((it) => it.properties.type !== "google_places")));
|
|
30915
30915
|
}, [Ee]), si(() => {
|
|
30916
30916
|
we && (Kt(we), P.current.setDisplayText(we.properties.name));
|
|
30917
30917
|
}, [we]), /* @__PURE__ */ me.jsxs("div", { className: "wayfinding", ref: B, children: [
|
|
@@ -30966,7 +30966,7 @@ function Av({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30966
30966
|
}
|
|
30967
30967
|
)
|
|
30968
30968
|
] }),
|
|
30969
|
-
|
|
30969
|
+
ue && (Bt == null ? void 0 : Bt.id) !== "USER_POSITION" && /* @__PURE__ */ me.jsx("p", { className: "wayfinding__use-current-position", children: /* @__PURE__ */ me.jsx("button", { onClick: () => At(), children: "Use My Position" }) })
|
|
30970
30970
|
] })
|
|
30971
30971
|
] }),
|
|
30972
30972
|
!Xe && /* @__PURE__ */ me.jsx("p", { className: "wayfinding__error", children: "No route found" }),
|
|
@@ -30983,9 +30983,9 @@ function Av({ onStartDirections: m, onBack: g, directionsToLocation: x, directio
|
|
|
30983
30983
|
it.id
|
|
30984
30984
|
)
|
|
30985
30985
|
),
|
|
30986
|
-
|
|
30986
|
+
rt && /* @__PURE__ */ me.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: jI })
|
|
30987
30987
|
] }) }),
|
|
30988
|
-
!It && Xe && Bt && ut && /* @__PURE__ */ me.jsxs("div", { className: "wayfinding__details", ref: o, children: [
|
|
30988
|
+
!It && Xe && !rt && Bt && ut && /* @__PURE__ */ me.jsxs("div", { className: "wayfinding__details", ref: o, children: [
|
|
30989
30989
|
/* @__PURE__ */ me.jsxs("div", { className: "wayfinding__settings", children: [
|
|
30990
30990
|
/* @__PURE__ */ me.jsxs("div", { className: "wayfinding__accessibility", children: [
|
|
30991
30991
|
/* @__PURE__ */ me.jsx("input", { className: "mi-toggle", type: "checkbox", checked: Vi, onChange: (it) => sn(it.target.checked), style: { backgroundColor: Vi ? Ie : "" } }),
|
|
@@ -31046,12 +31046,12 @@ const GI = (m) => /* @__PURE__ */ hi.createElement("svg", { width: 17, height: 1
|
|
|
31046
31046
|
o.current.closeSubsteps();
|
|
31047
31047
|
}
|
|
31048
31048
|
})), si(() => {
|
|
31049
|
-
const { current:
|
|
31049
|
+
const { current: ue } = o;
|
|
31050
31050
|
function we() {
|
|
31051
31051
|
te(!0), G(!P);
|
|
31052
31052
|
}
|
|
31053
|
-
return
|
|
31054
|
-
|
|
31053
|
+
return ue.addEventListener("substepsToggled", we), () => {
|
|
31054
|
+
ue.removeEventListener("substepsToggled", we);
|
|
31055
31055
|
};
|
|
31056
31056
|
}, [P]), /* @__PURE__ */ me.jsx(
|
|
31057
31057
|
"mi-route-instructions-step",
|
|
@@ -31066,24 +31066,24 @@ const GI = (m) => /* @__PURE__ */ hi.createElement("svg", { width: 17, height: 1
|
|
|
31066
31066
|
);
|
|
31067
31067
|
});
|
|
31068
31068
|
function HI({ steps: m, onNextStep: g, onPreviousStep: x, originLocation: b, isOpen: S, onFitCurrentDirections: D }) {
|
|
31069
|
-
const B = Ou(), o = pn(), [P, G] = ii(), [te, ee] = Zi(Cv), [
|
|
31069
|
+
const B = Ou(), o = pn(), [P, G] = ii(), [te, ee] = Zi(Cv), [ue, we] = ii(), Ee = vi($m), Ie = vi(Yo), st = vi(rp);
|
|
31070
31070
|
si(() => {
|
|
31071
|
-
const
|
|
31072
|
-
|
|
31071
|
+
const ce = { ...m[m.length - 1] };
|
|
31072
|
+
ce.travel_mode = "DESTINATION", ce.steps = null, m.push(ce), we(m);
|
|
31073
31073
|
}, [m]), si(() => {
|
|
31074
31074
|
if (S) {
|
|
31075
|
-
if (te === (
|
|
31076
|
-
const vt = Ee == null ? void 0 : Ee.destinationLocation,
|
|
31077
|
-
Ie.getMapView().setCenter({ lat:
|
|
31075
|
+
if (te === (ue == null ? void 0 : ue.length) - 1 && (Ee != null && Ee.destinationLocation)) {
|
|
31076
|
+
const vt = Ee == null ? void 0 : Ee.destinationLocation, ce = (vt == null ? void 0 : vt.geometry.type) === "Point" ? vt == null ? void 0 : vt.geometry.coordinates : vt == null ? void 0 : vt.properties.anchor.coordinates;
|
|
31077
|
+
Ie.getMapView().setCenter({ lat: ce[1], lng: ce[0] }), hv(Ie);
|
|
31078
31078
|
}
|
|
31079
|
-
|
|
31079
|
+
st === !1 ? o.current.closeSubsteps() : st === !0 && o.current.openSubsteps();
|
|
31080
31080
|
}
|
|
31081
|
-
}, [S, te,
|
|
31081
|
+
}, [S, te, ue, st]);
|
|
31082
31082
|
function Mt() {
|
|
31083
|
-
G(
|
|
31083
|
+
G(ue[te]), ee(te + 1), g();
|
|
31084
31084
|
}
|
|
31085
31085
|
function Xe() {
|
|
31086
|
-
G(
|
|
31086
|
+
G(ue[te - 2]), ee(te - 1), te === (ue == null ? void 0 : ue.length) - 1 ? D() : x();
|
|
31087
31087
|
}
|
|
31088
31088
|
const dt = {
|
|
31089
31089
|
walk: "Walk",
|
|
@@ -31119,12 +31119,12 @@ function HI({ steps: m, onNextStep: g, onPreviousStep: x, originLocation: b, isO
|
|
|
31119
31119
|
hours: "h",
|
|
31120
31120
|
minutes: "min"
|
|
31121
31121
|
};
|
|
31122
|
-
return /* @__PURE__ */ me.jsx("div", { className: "route-instructions prevent-scroll", ...B, children:
|
|
31122
|
+
return /* @__PURE__ */ me.jsx("div", { className: "route-instructions prevent-scroll", ...B, children: ue && /* @__PURE__ */ me.jsxs(me.Fragment, { children: [
|
|
31123
31123
|
/* @__PURE__ */ me.jsx(
|
|
31124
31124
|
WI,
|
|
31125
31125
|
{
|
|
31126
31126
|
translations: dt,
|
|
31127
|
-
totalSteps:
|
|
31127
|
+
totalSteps: ue,
|
|
31128
31128
|
activeStep: te,
|
|
31129
31129
|
previous: P,
|
|
31130
31130
|
directions: Ee,
|
|
@@ -31133,7 +31133,7 @@ function HI({ steps: m, onNextStep: g, onPreviousStep: x, originLocation: b, isO
|
|
|
31133
31133
|
}
|
|
31134
31134
|
),
|
|
31135
31135
|
/* @__PURE__ */ me.jsxs("div", { className: "route-instructions__footer", children: [
|
|
31136
|
-
/* @__PURE__ */ me.jsx("div", { className: "route-instructions__progress", children:
|
|
31136
|
+
/* @__PURE__ */ me.jsx("div", { className: "route-instructions__progress", children: ue.map((vt, ce) => /* @__PURE__ */ me.jsx("div", { className: `route-instructions__step ${te >= ce ? "completed" : ""}`, children: /* @__PURE__ */ me.jsx("div", { className: "step-counter" }) }, ce)) }),
|
|
31137
31137
|
/* @__PURE__ */ me.jsxs("div", { className: "route-instructions__actions", children: [
|
|
31138
31138
|
/* @__PURE__ */ me.jsx(
|
|
31139
31139
|
"button",
|
|
@@ -31149,7 +31149,7 @@ function HI({ steps: m, onNextStep: g, onPreviousStep: x, originLocation: b, isO
|
|
|
31149
31149
|
"Step ",
|
|
31150
31150
|
te + 1,
|
|
31151
31151
|
" of ",
|
|
31152
|
-
|
|
31152
|
+
ue.length
|
|
31153
31153
|
] }),
|
|
31154
31154
|
/* @__PURE__ */ me.jsx(
|
|
31155
31155
|
"button",
|
|
@@ -31157,7 +31157,7 @@ function HI({ steps: m, onNextStep: g, onPreviousStep: x, originLocation: b, isO
|
|
|
31157
31157
|
className: "route-instructions__button",
|
|
31158
31158
|
onClick: () => Mt(),
|
|
31159
31159
|
"aria-label": "Next",
|
|
31160
|
-
disabled: te ===
|
|
31160
|
+
disabled: te === ue.length - 1,
|
|
31161
31161
|
children: /* @__PURE__ */ me.jsx(GI, {})
|
|
31162
31162
|
}
|
|
31163
31163
|
)
|
|
@@ -31176,17 +31176,17 @@ const pm = (m) => {
|
|
|
31176
31176
|
};
|
|
31177
31177
|
let Hn;
|
|
31178
31178
|
function Mv({ isOpen: m, onBack: g, onSetSize: x, snapPointSwiped: b }) {
|
|
31179
|
-
const [S, D] = ii(null), B = pn(null), o = pn(null), P = pn(null), [G, te] = ii(), [ee,
|
|
31179
|
+
const [S, D] = ii(null), B = pn(null), o = pn(null), P = pn(null), [G, te] = ii(), [ee, ue] = ii(), we = vi(Yo), Ee = vi(Tv), Ie = vi($m), [, st] = Zi(Cv), [Mt, Xe] = Zi(rp), dt = pm("(min-width: 992px)");
|
|
31180
31180
|
si(() => {
|
|
31181
31181
|
if (D(null), m && Ie) {
|
|
31182
|
-
te(Ie.totalDistance),
|
|
31182
|
+
te(Ie.totalDistance), ue(Ie.totalTime);
|
|
31183
31183
|
const Ht = Math.min(window.innerHeight, window.innerWidth) * 0.06;
|
|
31184
31184
|
Hn == null || Hn.setRoute(null), Hn = null, Hn = new window.mapsindoors.directions.DirectionsRenderer({
|
|
31185
31185
|
mapsIndoors: we,
|
|
31186
31186
|
fitBoundsPadding: {
|
|
31187
31187
|
top: Ht,
|
|
31188
31188
|
bottom: dt ? Ht : zt(),
|
|
31189
|
-
left: dt ?
|
|
31189
|
+
left: dt ? We() : Ht,
|
|
31190
31190
|
right: Ht
|
|
31191
31191
|
}
|
|
31192
31192
|
}), Hn.setRoute(Ie.directionsResult), Hn.setStepIndex(0), o.current.location = Ie.originLocation, B.current.location = Ie.destinationLocation, Ie.destinationLocation.properties.name === "My Position" ? D(null) : D(we.getDisplayRule(Ie.destinationLocation));
|
|
@@ -31203,7 +31203,7 @@ function Mv({ isOpen: m, onBack: g, onSetSize: x, snapPointSwiped: b }) {
|
|
|
31203
31203
|
return Ht;
|
|
31204
31204
|
}, []) : [];
|
|
31205
31205
|
}
|
|
31206
|
-
function
|
|
31206
|
+
function ce() {
|
|
31207
31207
|
P.current.scrollTop = 0, Hn && Hn.nextStep();
|
|
31208
31208
|
}
|
|
31209
31209
|
function It() {
|
|
@@ -31216,7 +31216,7 @@ function Mv({ isOpen: m, onBack: g, onSetSize: x, snapPointSwiped: b }) {
|
|
|
31216
31216
|
const Ht = document.querySelector(".sheet--active");
|
|
31217
31217
|
return document.querySelector(".mapsindoors-map").offsetHeight - Ht.offsetTop;
|
|
31218
31218
|
}
|
|
31219
|
-
function
|
|
31219
|
+
function We() {
|
|
31220
31220
|
const Ht = document.querySelector(".modal--open");
|
|
31221
31221
|
return Ht.offsetWidth + Ht.offsetLeft * 2;
|
|
31222
31222
|
}
|
|
@@ -31224,7 +31224,7 @@ function Mv({ isOpen: m, onBack: g, onSetSize: x, snapPointSwiped: b }) {
|
|
|
31224
31224
|
Hn.setRoute(null), Hn = null;
|
|
31225
31225
|
}
|
|
31226
31226
|
function Kt() {
|
|
31227
|
-
|
|
31227
|
+
st(0), Xe(!1), Wt(En.FIT);
|
|
31228
31228
|
}
|
|
31229
31229
|
function Bt() {
|
|
31230
31230
|
Kt(), ut(), g();
|
|
@@ -31281,7 +31281,7 @@ function Mv({ isOpen: m, onBack: g, onSetSize: x, snapPointSwiped: b }) {
|
|
|
31281
31281
|
{
|
|
31282
31282
|
steps: vt(),
|
|
31283
31283
|
originLocation: Ie == null ? void 0 : Ie.originLocation,
|
|
31284
|
-
onNextStep: () =>
|
|
31284
|
+
onNextStep: () => ce(),
|
|
31285
31285
|
isOpen: m,
|
|
31286
31286
|
onPreviousStep: () => It(),
|
|
31287
31287
|
onFitCurrentDirections: () => Ft()
|
|
@@ -31291,11 +31291,11 @@ function Mv({ isOpen: m, onBack: g, onSetSize: x, snapPointSwiped: b }) {
|
|
|
31291
31291
|
] });
|
|
31292
31292
|
}
|
|
31293
31293
|
function Iv({ onLocationClick: m, onSetSize: g }) {
|
|
31294
|
-
const x = pn(), b = pn(), [S, D] = ii(!0), [B, o] = ii([]), P = vi(Um), G = vi(ip), [, te] = Zi(Bm), [ee,
|
|
31294
|
+
const x = pn(), b = pn(), [S, D] = ii(!0), [B, o] = ii([]), P = vi(Um), G = vi(ip), [, te] = Zi(Bm), [ee, ue] = ii(!1), we = pn(), [Ee, Ie] = ii(), st = Ou(), Mt = vi(Ia);
|
|
31295
31295
|
function Xe(zt) {
|
|
31296
31296
|
window.mapsindoors.services.LocationsService.getLocations({
|
|
31297
31297
|
categories: zt
|
|
31298
|
-
}).then(
|
|
31298
|
+
}).then(ce);
|
|
31299
31299
|
}
|
|
31300
31300
|
function dt(zt) {
|
|
31301
31301
|
Ie(zt), vt(En.MAX), Ee === zt ? (o([]), Ie(null), te([]), b.current.getValue() && b.current.triggerSearch()) : b.current.getValue() ? b.current.triggerSearch() : Xe(zt);
|
|
@@ -31303,11 +31303,11 @@ function Iv({ onLocationClick: m, onSetSize: g }) {
|
|
|
31303
31303
|
function vt(zt) {
|
|
31304
31304
|
typeof g == "function" && g(zt);
|
|
31305
31305
|
}
|
|
31306
|
-
function
|
|
31307
|
-
o(zt), te(zt),
|
|
31306
|
+
function ce(zt) {
|
|
31307
|
+
o(zt), te(zt), ue(zt.length === 0);
|
|
31308
31308
|
}
|
|
31309
31309
|
function It() {
|
|
31310
|
-
o([]),
|
|
31310
|
+
o([]), ue(!1), Ee && Xe(Ee), te([]);
|
|
31311
31311
|
}
|
|
31312
31312
|
function Ft() {
|
|
31313
31313
|
vt(En.MAX), D(!1);
|
|
@@ -31331,21 +31331,21 @@ function Iv({ onLocationClick: m, onSetSize: g }) {
|
|
|
31331
31331
|
ref: b,
|
|
31332
31332
|
mapsindoors: !0,
|
|
31333
31333
|
placeholder: "Search by name, category, building...",
|
|
31334
|
-
results: (zt) =>
|
|
31334
|
+
results: (zt) => ce(zt),
|
|
31335
31335
|
clicked: () => Ft(),
|
|
31336
31336
|
cleared: () => It(),
|
|
31337
31337
|
category: Ee,
|
|
31338
31338
|
disabled: S
|
|
31339
31339
|
}
|
|
31340
31340
|
),
|
|
31341
|
-
/* @__PURE__ */ me.jsxs("div", { className: "search__scrollable prevent-scroll", ...
|
|
31341
|
+
/* @__PURE__ */ me.jsxs("div", { className: "search__scrollable prevent-scroll", ...st, children: [
|
|
31342
31342
|
P.length > 0 && /* @__PURE__ */ me.jsx("div", { ref: we, className: "search__categories", children: P == null ? void 0 : P.map(
|
|
31343
|
-
([zt,
|
|
31343
|
+
([zt, We]) => /* @__PURE__ */ me.jsx(
|
|
31344
31344
|
"mi-chip",
|
|
31345
31345
|
{
|
|
31346
|
-
icon:
|
|
31346
|
+
icon: We.iconUrl,
|
|
31347
31347
|
"background-color": Mt,
|
|
31348
|
-
content:
|
|
31348
|
+
content: We.displayName,
|
|
31349
31349
|
active: Ee === zt,
|
|
31350
31350
|
onClick: () => dt(zt)
|
|
31351
31351
|
},
|
|
@@ -31358,7 +31358,7 @@ function Iv({ onLocationClick: m, onSetSize: g }) {
|
|
|
31358
31358
|
jm,
|
|
31359
31359
|
{
|
|
31360
31360
|
location: zt,
|
|
31361
|
-
locationClicked: (
|
|
31361
|
+
locationClicked: (We) => m(We)
|
|
31362
31362
|
},
|
|
31363
31363
|
zt.id
|
|
31364
31364
|
)
|
|
@@ -31396,11 +31396,11 @@ function Rv({ onBack: m, onLocationClick: g, locations: x, onSetSize: b }) {
|
|
|
31396
31396
|
] });
|
|
31397
31397
|
}
|
|
31398
31398
|
function XI({ directionsFromLocation: m, directionsToLocation: g, pushAppView: x, currentAppView: b, appViews: S }) {
|
|
31399
|
-
const D = pn(), [B, o] = ii(), [P, G] = ii(), [te, ee] = ii(), [
|
|
31399
|
+
const D = pn(), [B, o] = ii(), [P, G] = ii(), [te, ee] = ii(), [ue, we] = ii(), [Ee, Ie] = ii(), [st, Mt] = ii(), [Xe, dt] = ii(), vt = vi(Um), [ce, It] = Zi(zu), [Ft, zt] = Zi(np);
|
|
31400
31400
|
si(() => {
|
|
31401
|
-
m && g && b === S.DIRECTIONS || (m && g ? x(S.WAYFINDING) :
|
|
31402
|
-
}, [
|
|
31403
|
-
function
|
|
31401
|
+
m && g && b === S.DIRECTIONS || (m && g ? x(S.WAYFINDING) : ce ? x(S.LOCATION_DETAILS, ce) : (Ft == null ? void 0 : Ft.length) > 0 ? x(S.EXTERNALIDS) : x(S.SEARCH));
|
|
31402
|
+
}, [ce, m, g, Ft]);
|
|
31403
|
+
function We() {
|
|
31404
31404
|
(Ft == null ? void 0 : Ft.length) > 0 ? (x(S.EXTERNALIDS), It()) : (x(S.SEARCH), It());
|
|
31405
31405
|
}
|
|
31406
31406
|
function ut() {
|
|
@@ -31411,7 +31411,7 @@ function XI({ directionsFromLocation: m, directionsToLocation: g, pushAppView: x
|
|
|
31411
31411
|
yu,
|
|
31412
31412
|
{
|
|
31413
31413
|
minHeight: vt.length > 0 ? "136" : "80",
|
|
31414
|
-
preferredSizeSnapPoint:
|
|
31414
|
+
preferredSizeSnapPoint: st,
|
|
31415
31415
|
isOpen: b === S.SEARCH,
|
|
31416
31416
|
children: /* @__PURE__ */ me.jsx(
|
|
31417
31417
|
Iv,
|
|
@@ -31454,7 +31454,7 @@ function XI({ directionsFromLocation: m, directionsToLocation: g, pushAppView: x
|
|
|
31454
31454
|
{
|
|
31455
31455
|
onSetSize: (Bt) => o(Bt),
|
|
31456
31456
|
onStartWayfinding: () => x(S.WAYFINDING),
|
|
31457
|
-
onBack: () =>
|
|
31457
|
+
onBack: () => We(),
|
|
31458
31458
|
snapPointSwiped: P
|
|
31459
31459
|
}
|
|
31460
31460
|
)
|
|
@@ -31474,7 +31474,7 @@ function XI({ directionsFromLocation: m, directionsToLocation: g, pushAppView: x
|
|
|
31474
31474
|
onStartDirections: () => x(S.DIRECTIONS),
|
|
31475
31475
|
directionsToLocation: g,
|
|
31476
31476
|
directionsFromLocation: m,
|
|
31477
|
-
onBack: () => x(
|
|
31477
|
+
onBack: () => x(ce ? S.LOCATION_DETAILS : S.SEARCH),
|
|
31478
31478
|
isActive: b === S.WAYFINDING
|
|
31479
31479
|
}
|
|
31480
31480
|
)
|
|
@@ -31494,7 +31494,7 @@ function XI({ directionsFromLocation: m, directionsToLocation: g, pushAppView: x
|
|
|
31494
31494
|
onSetSize: (Bt) => ee(Bt),
|
|
31495
31495
|
isOpen: b === S.DIRECTIONS,
|
|
31496
31496
|
onBack: () => x(S.WAYFINDING),
|
|
31497
|
-
snapPointSwiped:
|
|
31497
|
+
snapPointSwiped: ue
|
|
31498
31498
|
}
|
|
31499
31499
|
)
|
|
31500
31500
|
},
|
|
@@ -31557,7 +31557,7 @@ function JI({ directionsFromLocation: m, directionsToLocation: g, pushAppView: x
|
|
|
31557
31557
|
/* @__PURE__ */ me.jsx(vu, { isOpen: b === S.SEARCH, children: /* @__PURE__ */ me.jsx(
|
|
31558
31558
|
Iv,
|
|
31559
31559
|
{
|
|
31560
|
-
onLocationClick: (
|
|
31560
|
+
onLocationClick: (ue) => B(ue)
|
|
31561
31561
|
}
|
|
31562
31562
|
) }, "A"),
|
|
31563
31563
|
/* @__PURE__ */ me.jsx(vu, { isOpen: b === S.EXTERNALIDS, children: /* @__PURE__ */ me.jsx(
|
|
@@ -31565,8 +31565,8 @@ function JI({ directionsFromLocation: m, directionsToLocation: g, pushAppView: x
|
|
|
31565
31565
|
{
|
|
31566
31566
|
onBack: () => te(),
|
|
31567
31567
|
locations: o,
|
|
31568
|
-
onLocationClick: (
|
|
31569
|
-
onLocationsFiltered: (
|
|
31568
|
+
onLocationClick: (ue) => B(ue),
|
|
31569
|
+
onLocationsFiltered: (ue) => P(ue)
|
|
31570
31570
|
}
|
|
31571
31571
|
) }, "B"),
|
|
31572
31572
|
/* @__PURE__ */ me.jsx(vu, { isOpen: b === S.LOCATION_DETAILS, children: /* @__PURE__ */ me.jsx(
|
|
@@ -31604,8 +31604,8 @@ const g0 = (m) => {
|
|
|
31604
31604
|
};
|
|
31605
31605
|
XM();
|
|
31606
31606
|
let y0;
|
|
31607
|
-
function QI({ apiKey: m, gmApiKey: g, mapboxAccessToken: x, venue: b, locationId: S, primaryColor: D, logo: B, appUserRoles: o, directionsFrom: P, directionsTo: G, externalIDs: te, tileStyle: ee, startZoomLevel:
|
|
31608
|
-
const [, we] = Zi(sv), [, Ee] = Zi(Pm), [, Ie] = Zi(zm), [
|
|
31607
|
+
function QI({ apiKey: m, gmApiKey: g, mapboxAccessToken: x, venue: b, locationId: S, primaryColor: D, logo: B, appUserRoles: o, directionsFrom: P, directionsTo: G, externalIDs: te, tileStyle: ee, startZoomLevel: ue }) {
|
|
31608
|
+
const [, we] = Zi(sv), [, Ee] = Zi(Pm), [, Ie] = Zi(zm), [st, Mt] = Zi(Ev), [Xe, dt] = Zi(km), [, vt] = Zi(ip), [ce, It] = Zi(zu), [, Ft] = Zi(Um), [, zt] = Zi(uv), [We, ut] = ii(!1), [, Kt] = Zi(Ia), Bt = g0(P), Wt = g0(G), [, Ht] = Zi(np), [Nt, Mi] = Zi(Bm), [Ii, Vi] = ii(), [, sn] = Zi(av), [, Be] = Zi(lv), rt = pm("(min-width: 992px)"), ge = pm("(max-width: 991px)"), [Ne, Ge, pt, Qe, ct] = KI(), gt = pn(), [at, At] = ii(!1);
|
|
31609
31609
|
function li() {
|
|
31610
31610
|
return new Promise((it) => {
|
|
31611
31611
|
if (window.mapsindoors !== void 0)
|
|
@@ -31647,9 +31647,9 @@ function QI({ apiKey: m, gmApiKey: g, mapboxAccessToken: x, venue: b, locationId
|
|
|
31647
31647
|
it && (vt(it.properties.venueId), It(it));
|
|
31648
31648
|
}));
|
|
31649
31649
|
}, [S, at]), si(() => {
|
|
31650
|
-
|
|
31651
|
-
}, [
|
|
31652
|
-
pt === ct.LOCATION_DETAILS && Qe && !
|
|
31650
|
+
We ? (Vi(Nt), Mi([])) : Mi(Ii);
|
|
31651
|
+
}, [We]), si(() => {
|
|
31652
|
+
pt === ct.LOCATION_DETAILS && Qe && !ce && It(Qe), ut(pt === ct.DIRECTIONS), y0 = pt === ct.DIRECTIONS;
|
|
31653
31653
|
}, [pt]), si(() => {
|
|
31654
31654
|
vt(b);
|
|
31655
31655
|
}, [b]), si(() => {
|
|
@@ -31657,10 +31657,10 @@ function QI({ apiKey: m, gmApiKey: g, mapboxAccessToken: x, venue: b, locationId
|
|
|
31657
31657
|
}, [ee]), si(() => {
|
|
31658
31658
|
Kt(D);
|
|
31659
31659
|
}, [D]), si(() => {
|
|
31660
|
-
Be(
|
|
31661
|
-
}, [
|
|
31660
|
+
Be(ue);
|
|
31661
|
+
}, [ue]);
|
|
31662
31662
|
function qe(it) {
|
|
31663
|
-
|
|
31663
|
+
st === !1 && Mt(!0), qt(it.name);
|
|
31664
31664
|
}
|
|
31665
31665
|
function ni(it) {
|
|
31666
31666
|
y0 !== !0 && It(it);
|
|
@@ -31687,8 +31687,8 @@ function QI({ apiKey: m, gmApiKey: g, mapboxAccessToken: x, venue: b, locationId
|
|
|
31687
31687
|
}
|
|
31688
31688
|
jt = Array.from(jt).sort((on, _n) => _n[1].count - on[1].count), Ft(jt);
|
|
31689
31689
|
}
|
|
31690
|
-
return /* @__PURE__ */ me.jsxs("div", { className: `mapsindoors-map ${
|
|
31691
|
-
!
|
|
31690
|
+
return /* @__PURE__ */ me.jsxs("div", { className: `mapsindoors-map ${We ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"}`, children: [
|
|
31691
|
+
!st && /* @__PURE__ */ me.jsx(oI, { logo: B }),
|
|
31692
31692
|
Xe.length > 1 && /* @__PURE__ */ me.jsx(
|
|
31693
31693
|
EI,
|
|
31694
31694
|
{
|
|
@@ -31697,8 +31697,8 @@ function QI({ apiKey: m, gmApiKey: g, mapboxAccessToken: x, venue: b, locationId
|
|
|
31697
31697
|
active: pt === ct.VENUE_SELECTOR
|
|
31698
31698
|
}
|
|
31699
31699
|
),
|
|
31700
|
-
|
|
31701
|
-
|
|
31700
|
+
st && /* @__PURE__ */ me.jsxs(me.Fragment, { children: [
|
|
31701
|
+
rt && /* @__PURE__ */ me.jsx(
|
|
31702
31702
|
JI,
|
|
31703
31703
|
{
|
|
31704
31704
|
directionsFromLocation: Bt,
|