@expofp/floorplan 3.7.1 → 3.7.3
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/browser/{CookieConsent-BTBtNSL4.js → CookieConsent-B9r34uCC.js} +8 -8
- package/dist/browser/{Debug-BdwQwhiQ.js → Debug-DunksSNj.js} +9 -9
- package/dist/browser/{Demo-Buqcfw7W.js → Demo-891f5t9l.js} +9 -9
- package/dist/browser/{Free-DlGGWYcj.js → Free-DVER8MHL.js} +11 -11
- package/dist/browser/{Gallery-aa79wHFQ.js → Gallery-CyRq9QY2.js} +10 -10
- package/dist/browser/{GpsLoader-Dh_U8H51.js → GpsLoader-9_3XrM1S.js} +22 -22
- package/dist/browser/{KioskStore-37p-3HM2.js → KioskStore-BOSyfMyO.js} +44 -40
- package/dist/browser/{MaplibreAdapter-GcuLfvZ5.js → MaplibreAdapter-C9a80Y5u.js} +325 -325
- package/dist/browser/{Modal-N2u3kqja.js → Modal-DcLxiT8t.js} +10 -10
- package/dist/browser/{PermissionNotice-ISmSMsbo.js → PermissionNotice-DWddxvUt.js} +7 -7
- package/dist/browser/{SetKioskMode-Du32HGMJ.js → SetKioskMode-CgzKiK3y.js} +16 -16
- package/dist/browser/ShowKiosk-DRR5jjXM.js +26 -0
- package/dist/browser/{TouchHand-8ZopG2q8.js → TouchHand-B6PlZY3K.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-4BqW-Jdf.js → ViewerMenuPanel-B46Uw94g.js} +21 -21
- package/dist/browser/{add-debug-secret-listener-BjXftNTV.js → add-debug-secret-listener-DprGe6C-.js} +1 -1
- package/dist/browser/{boolean-editor-BhMIoPsa.js → boolean-editor-CdhFegqG.js} +9 -9
- package/dist/browser/{bootIntercom-B6p5fxfJ.js → bootIntercom-C2w8EmqK.js} +2 -2
- package/dist/browser/{browser-CnPEW9Lr.js → browser-D4L-gjqm.js} +2 -2
- package/dist/browser/bundle.json +56 -56
- package/dist/browser/{classnames-CRgVhgv0.js → classnames-CDxP0X2-.js} +2 -2
- package/dist/browser/{client-BUO_kQ1k.js → client-BUGY3NJ-.js} +4 -4
- package/dist/browser/{components-BfPS9gG1.js → components-C9eYt8L8.js} +1730 -1730
- package/dist/browser/{createWayfinding-Dt1LyGu0.js → createWayfinding-B9PG8HXm.js} +406 -406
- package/dist/browser/{debug-overlay-B0EofpfU.js → debug-overlay-DHL2Ipq8.js} +10 -10
- package/dist/browser/{debug-ui-DGJ2SkEi.js → debug-ui-BE-7wgWb.js} +6 -6
- package/dist/browser/{dist-DJxbAzyk.js → dist-BY2VkOah.js} +5 -5
- package/dist/browser/{dist-DjPMrEXM.js → dist-C6qlzHIi.js} +6 -6
- package/dist/browser/{dist-TGwGfy82.js → dist-DPH_nXx1.js} +3 -3
- package/dist/browser/{efp-debug-init-DHlNt03k.js → efp-debug-init-YS7dfyN-.js} +2 -2
- package/dist/browser/{enum-editor-CDXrDwYI.js → enum-editor-D_zEjkiJ.js} +11 -11
- package/dist/browser/{event-not-found-ddjIwKQI.js → event-not-found-FYtE_1nu.js} +1 -1
- package/dist/browser/{exports-DrNfOFs_.js → exports-Cjz1yZKk.js} +1 -1
- package/dist/browser/{favicon-BU-SX7hC.js → favicon-DrjHpzP4.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CYgJBfTb.js → fetch-retry.umd-Cid9TH8f.js} +2 -2
- package/dist/browser/{flex-DhG3X7TO.js → flex-DeqbUH21.js} +5 -5
- package/dist/browser/{floorplan.loader-CLetOZGp.js → floorplan.loader-Bj-l8uDr.js} +36 -36
- package/dist/browser/{floorplan.ready-VzbeB1JK.js → floorplan.ready-ISdK-pOq.js} +304 -304
- package/dist/browser/{fuse-BwjwTuSA.js → fuse-DuhtQS_C.js} +2 -2
- package/dist/browser/{i18n-DWUkHBly.js → i18n-topUIylF.js} +3 -3
- package/dist/browser/index.js +11 -11
- package/dist/browser/{jsx-runtime-CCjvPhTZ.js → jsx-runtime-BqvudT0U.js} +2 -2
- package/dist/browser/{lib-CmUZvL-A.js → lib-Cs6Jo7Wv.js} +4 -4
- package/dist/browser/{main-D5cs84bD.js → main-BEqsYQfj.js} +1 -1
- package/dist/browser/{mobx-Crx8xVu_.js → mobx-C5AHTMbx.js} +4 -4
- package/dist/browser/{particles.min-4xFbqMer.js → particles.min-COvnIi42.js} +2 -2
- package/dist/browser/{prop-types-Df-0AVZe.js → prop-types-H1ekLSgm.js} +2 -2
- package/dist/browser/{react-CXBSzFGH.js → react-CDj0nSIt.js} +2 -2
- package/dist/browser/{react-dom-vkCA7ORh.js → react-dom-F1fx5UfT.js} +3 -3
- package/dist/browser/{reset-all-settings-_SJm36FD.js → reset-all-settings-Dj1Hc9SL.js} +7 -7
- package/dist/browser/{rolldown-runtime-CHynt3ZH.js → rolldown-runtime-CJ4NSGHF.js} +1 -1
- package/dist/browser/{settings-D8YocUE4.js → settings-bv5D0Jdx.js} +2 -2
- package/dist/browser/{settings-item-_8AjjHJ-.js → settings-item-BBkCXqTe.js} +6 -6
- package/dist/browser/{storage-BCJWp9_C.js → storage-DQBS2cde.js} +10 -10
- package/dist/browser/{store-CoBm8UFz.js → store-CG3Lvb_Y.js} +5872 -5845
- package/dist/browser/{string-editor-b0i54Igp.js → string-editor-DWJwFIbn.js} +7 -7
- package/dist/browser/{theme-D8c9f86A.js → theme-Bn3nZG-N.js} +8 -8
- package/dist/browser/{ui-7txfiTr8.js → ui-B_JKKY6c.js} +8 -8
- package/dist/browser/{useRenderTarget-D01j_Es7.js → useRenderTarget-cPhKH67H.js} +4 -4
- package/dist/esm/components/Kiosk/KioskStore.d.ts +8 -7
- package/dist/esm/components/Kiosk/KioskStore.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/constants.d.ts +1 -0
- package/dist/esm/components/Kiosk/SetKiosk/constants.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +1 -1
- package/dist/esm/components/Kiosk/kioskApi.d.ts +4 -0
- package/dist/esm/components/Kiosk/kioskApi.js +1 -0
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +1 -0
- package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFilters.js +1 -1
- package/dist/esm/tools/track-event.js +1 -1
- package/package.json +3 -3
- package/dist/browser/ShowKiosk-kDSUSRXW.js +0 -26
- package/dist/esm/components/Kiosk/requestKioskKey.d.ts +0 -3
- package/dist/esm/components/Kiosk/requestKioskKey.js +0 -1
|
@@ -2,20 +2,20 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.7.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.7.3" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "093e1131-89ac-474d-99a2-42589536e028", e._sentryDebugIdIdentifier = "sentry-dbid-093e1131-89ac-474d-99a2-42589536e028");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { t as n } from "./react-
|
|
12
|
-
import { t as r } from "./jsx-runtime-
|
|
13
|
-
import { v as i } from "./i18n-
|
|
14
|
-
import {
|
|
15
|
-
import { r as C } from "./mobx-
|
|
16
|
-
import { a as w, c as T, i as E, l as D, n as O, o as k, r as A, s as j, t as M, u as
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-CJ4NSGHF.js";
|
|
11
|
+
import { t as n } from "./react-CDj0nSIt.js";
|
|
12
|
+
import { t as r } from "./jsx-runtime-BqvudT0U.js";
|
|
13
|
+
import { v as i } from "./i18n-topUIylF.js";
|
|
14
|
+
import { Ht as a, Nt as o, Rt as s, St as c, Ut as l, an as u, cn as d, dn as f, it as p, ln as m, o as h, rn as g, s as _, sn as v, st as y, t as b, vt as x, wt as S } from "./store-CG3Lvb_Y.js";
|
|
15
|
+
import { r as C } from "./mobx-C5AHTMbx.js";
|
|
16
|
+
import { a as w, c as T, i as E, l as D, n as O, o as k, r as A, s as j, t as M, u as N } from "./createWayfinding-B9PG8HXm.js";
|
|
17
17
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
18
|
-
var
|
|
18
|
+
var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__PURE__ */ t(((e, t) => {
|
|
19
19
|
(function(n, r) {
|
|
20
20
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
|
|
21
21
|
})(e, (function() {
|
|
@@ -314,45 +314,45 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
314
314
|
function M(e, t, n) {
|
|
315
315
|
return e * (1 - n) + t * n;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function N(e) {
|
|
318
318
|
if (e <= 0) return 0;
|
|
319
319
|
if (e >= 1) return 1;
|
|
320
320
|
let t = e * e, n = t * e;
|
|
321
321
|
return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function P(e, t, n, r) {
|
|
324
324
|
let i = new o(e, t, n, r);
|
|
325
325
|
return (e) => i.solve(e);
|
|
326
326
|
}
|
|
327
|
-
let
|
|
328
|
-
function
|
|
327
|
+
let ee = P(.25, .1, .25, 1);
|
|
328
|
+
function te(e, t, n) {
|
|
329
329
|
return Math.min(n, Math.max(t, e));
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function F(e, t, n) {
|
|
332
332
|
let r = n - t, i = ((e - t) % r + r) % r + t;
|
|
333
333
|
return i === t ? n : i;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function ne(e, ...t) {
|
|
336
336
|
for (let n of t) for (let t in n) e[t] = n[t];
|
|
337
337
|
return e;
|
|
338
338
|
}
|
|
339
|
-
let
|
|
340
|
-
function
|
|
339
|
+
let re = 1;
|
|
340
|
+
function ie(e, t, n) {
|
|
341
341
|
let r = {};
|
|
342
342
|
for (let n in e) r[n] = t.call(this, e[n], n, e);
|
|
343
343
|
return r;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function ae(e, t, n) {
|
|
346
346
|
let r = {};
|
|
347
347
|
for (let n in e) t.call(this, e[n], n, e) && (r[n] = e[n]);
|
|
348
348
|
return r;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return Array.isArray(e) ? e.map(
|
|
350
|
+
function oe(e) {
|
|
351
|
+
return Array.isArray(e) ? e.map(oe) : typeof e == "object" && e ? ie(e, oe) : e;
|
|
352
352
|
}
|
|
353
|
-
let
|
|
353
|
+
let se = {};
|
|
354
354
|
function ce(e) {
|
|
355
|
-
|
|
355
|
+
se[e] || (typeof console < "u" && console.warn(e), se[e] = !0);
|
|
356
356
|
}
|
|
357
357
|
function le(e, t, n) {
|
|
358
358
|
return (n.y - e.y) * (t.x - e.x) > (t.y - e.y) * (n.x - e.x);
|
|
@@ -465,7 +465,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
465
465
|
let t = De(e.url);
|
|
466
466
|
if (t) {
|
|
467
467
|
let r = yield t(e, n);
|
|
468
|
-
return r.data || e.type !== "arrayBuffer" ? r :
|
|
468
|
+
return r.data || e.type !== "arrayBuffer" ? r : ne(r, { data: /* @__PURE__ */ new ArrayBuffer(0) });
|
|
469
469
|
}
|
|
470
470
|
if (ue(self) && (r = self.worker) != null && r.actor) return self.worker.actor.sendAsync({
|
|
471
471
|
type: "GR",
|
|
@@ -567,12 +567,12 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
567
567
|
}
|
|
568
568
|
class Fe {
|
|
569
569
|
constructor(e, t = {}) {
|
|
570
|
-
|
|
570
|
+
ne(this, t), this.type = e;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
class Ie extends Fe {
|
|
574
574
|
constructor(e, t = {}) {
|
|
575
|
-
super("error",
|
|
575
|
+
super("error", ne({ error: e }, t));
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
class Le {
|
|
@@ -598,7 +598,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
598
598
|
let a = (r = this._oneTimeListeners) != null && r[i] ? this._oneTimeListeners[i].slice() : [];
|
|
599
599
|
for (let t of a) Pe(i, t, this._oneTimeListeners), t.call(this, e);
|
|
600
600
|
let o = this._eventedParent;
|
|
601
|
-
o && (
|
|
601
|
+
o && (ne(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), o.fire(e));
|
|
602
602
|
} else e instanceof Ie && console.error(e.error);
|
|
603
603
|
return this;
|
|
604
604
|
}
|
|
@@ -8256,7 +8256,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
8256
8256
|
this.property = e, this.value = new za(e, void 0, t);
|
|
8257
8257
|
}
|
|
8258
8258
|
transitioned(e, t) {
|
|
8259
|
-
return new Ha(this.property, this.value, t,
|
|
8259
|
+
return new Ha(this.property, this.value, t, ne({}, e.transition, this.transition), e.now);
|
|
8260
8260
|
}
|
|
8261
8261
|
untransitioned() {
|
|
8262
8262
|
return new Ha(this.property, this.value, null, {}, 0);
|
|
@@ -8270,16 +8270,16 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
8270
8270
|
return e in this._properties.defaultTransitionablePropertyValues;
|
|
8271
8271
|
}
|
|
8272
8272
|
getValue(e) {
|
|
8273
|
-
return
|
|
8273
|
+
return oe(this._values[e].value.value);
|
|
8274
8274
|
}
|
|
8275
8275
|
setValue(e, t) {
|
|
8276
|
-
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 :
|
|
8276
|
+
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 : oe(t), this._globalState);
|
|
8277
8277
|
}
|
|
8278
8278
|
getTransition(e) {
|
|
8279
|
-
return
|
|
8279
|
+
return oe(this._values[e].transition);
|
|
8280
8280
|
}
|
|
8281
8281
|
setTransition(e, t) {
|
|
8282
|
-
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition =
|
|
8282
|
+
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition = oe(t) || void 0;
|
|
8283
8283
|
}
|
|
8284
8284
|
serialize() {
|
|
8285
8285
|
let e = {};
|
|
@@ -8313,7 +8313,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
8313
8313
|
if (r < this.begin) return a.possiblyEvaluate(e, t, n);
|
|
8314
8314
|
{
|
|
8315
8315
|
let o = (r - this.begin) / (this.end - this.begin);
|
|
8316
|
-
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i,
|
|
8316
|
+
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, N(o));
|
|
8317
8317
|
}
|
|
8318
8318
|
}
|
|
8319
8319
|
return i;
|
|
@@ -8344,10 +8344,10 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
8344
8344
|
return e in this._properties.defaultPropertyValues;
|
|
8345
8345
|
}
|
|
8346
8346
|
getValue(e) {
|
|
8347
|
-
return
|
|
8347
|
+
return oe(this._values[e].value);
|
|
8348
8348
|
}
|
|
8349
8349
|
setValue(e, t) {
|
|
8350
|
-
this._values[e] = new za(this._values[e].property, t === null ? void 0 :
|
|
8350
|
+
this._values[e] = new za(this._values[e].property, t === null ? void 0 : oe(t), this._globalState);
|
|
8351
8351
|
}
|
|
8352
8352
|
serialize() {
|
|
8353
8353
|
let e = {};
|
|
@@ -8636,7 +8636,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
8636
8636
|
layout: (e = this._unevaluatedLayout) == null ? void 0 : e.serialize(),
|
|
8637
8637
|
paint: (t = this._transitionablePaint) == null ? void 0 : t.serialize()
|
|
8638
8638
|
};
|
|
8639
|
-
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility),
|
|
8639
|
+
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), ae(n, ((e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length)));
|
|
8640
8640
|
}
|
|
8641
8641
|
_validate(e, t, n, r, i = {}) {
|
|
8642
8642
|
return !1 !== (i == null ? void 0 : i.validate) && pa(this, e.call(ca, {
|
|
@@ -9411,7 +9411,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
9411
9411
|
}
|
|
9412
9412
|
}
|
|
9413
9413
|
function cs(e, t) {
|
|
9414
|
-
return 256 * (e =
|
|
9414
|
+
return 256 * (e = te(Math.floor(e), 0, 255)) + te(Math.floor(t), 0, 255);
|
|
9415
9415
|
}
|
|
9416
9416
|
ss.MAX_VERTEX_ARRAY_LENGTH = 2 ** 16 - 1, X("SegmentVector", ss);
|
|
9417
9417
|
let ls = oo([
|
|
@@ -9671,7 +9671,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
9671
9671
|
this.paintVertexBuffer && this.paintVertexBuffer.destroy();
|
|
9672
9672
|
}
|
|
9673
9673
|
setUniform(e, t) {
|
|
9674
|
-
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r =
|
|
9674
|
+
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = te(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
|
|
9675
9675
|
e.set(r);
|
|
9676
9676
|
}
|
|
9677
9677
|
getBinding(e, t, n) {
|
|
@@ -9965,7 +9965,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
9965
9965
|
let t = O / e.extent, n = e.loadGeometry();
|
|
9966
9966
|
for (let e of n) for (let n of e) {
|
|
9967
9967
|
let e = Math.round(n.x * t), r = Math.round(n.y * t);
|
|
9968
|
-
n.x =
|
|
9968
|
+
n.x = te(e, Bs, zs), n.y = te(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) && ce("Geometry exceeds allowed extent, reduce your vector tile buffer size");
|
|
9969
9969
|
}
|
|
9970
9970
|
return n;
|
|
9971
9971
|
}
|
|
@@ -12842,7 +12842,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
12842
12842
|
}), super.possiblyEvaluate(e, t);
|
|
12843
12843
|
}
|
|
12844
12844
|
evaluate(e, t, n, r) {
|
|
12845
|
-
return t =
|
|
12845
|
+
return t = ne({}, t, { zoom: Math.floor(t.zoom) }), super.evaluate(e, t, n, r);
|
|
12846
12846
|
}
|
|
12847
12847
|
}
|
|
12848
12848
|
let dd;
|
|
@@ -14777,7 +14777,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
14777
14777
|
if (this.lng = +e, this.lat = +t, this.lat > 90 || this.lat < -90) throw Error("Invalid LngLat latitude value: must be between -90 and 90");
|
|
14778
14778
|
}
|
|
14779
14779
|
wrap() {
|
|
14780
|
-
return new Nf(
|
|
14780
|
+
return new Nf(F(this.lng, -180, 180), this.lat);
|
|
14781
14781
|
}
|
|
14782
14782
|
toArray() {
|
|
14783
14783
|
return [this.lng, this.lat];
|
|
@@ -17196,7 +17196,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17196
17196
|
if (!n) continue;
|
|
17197
17197
|
let i = {};
|
|
17198
17198
|
m && l && (i = l.getState(n.sourceLayer || Um, m));
|
|
17199
|
-
let d =
|
|
17199
|
+
let d = ne({}, c[t]);
|
|
17200
17200
|
d.paint = Qm(d.paint, n.paint, p, i, o), d.layout = Qm(d.layout, n.layout, p, i, o);
|
|
17201
17201
|
let f = !u || u(p, n, i);
|
|
17202
17202
|
if (!f) continue;
|
|
@@ -17228,7 +17228,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17228
17228
|
}
|
|
17229
17229
|
}
|
|
17230
17230
|
function Qm(e, t, n, r, i) {
|
|
17231
|
-
return
|
|
17231
|
+
return ie(e, ((e, a) => {
|
|
17232
17232
|
let o = t instanceof Ka ? t.get(a) : null;
|
|
17233
17233
|
return o != null && o.evaluate ? o.evaluate(n, r, i) : o;
|
|
17234
17234
|
}));
|
|
@@ -17370,33 +17370,33 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17370
17370
|
(o.textFitWidth || o.textFitHeight) && (u = lf(e)), v = hh(d, 0, t[0]), b = hh(f, 0, t[1]), y = hh(d, t[0], t[2]), x = hh(f, t[1], t[3]), S = t[0] - v, w = t[1] - b, C = n - y, T = r - x;
|
|
17371
17371
|
}
|
|
17372
17372
|
let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
|
|
17373
|
-
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d),
|
|
17374
|
-
if (
|
|
17375
|
-
let e = Math.sin(
|
|
17373
|
+
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), P = new n(l, _), ee = new n(u / s, f / s), te = new n(g / s, A / s), F = t * Math.PI / 180;
|
|
17374
|
+
if (F) {
|
|
17375
|
+
let e = Math.sin(F), t = Math.cos(F), n = [
|
|
17376
17376
|
t,
|
|
17377
17377
|
-e,
|
|
17378
17378
|
e,
|
|
17379
17379
|
t
|
|
17380
17380
|
];
|
|
17381
|
-
j._matMult(n), M._matMult(n),
|
|
17381
|
+
j._matMult(n), M._matMult(n), P._matMult(n), N._matMult(n);
|
|
17382
17382
|
}
|
|
17383
|
-
let
|
|
17383
|
+
let ne = e.stretch + e.fixed, re = i.stretch + i.fixed;
|
|
17384
17384
|
return {
|
|
17385
17385
|
tl: j,
|
|
17386
17386
|
tr: M,
|
|
17387
|
-
bl:
|
|
17388
|
-
br:
|
|
17387
|
+
bl: P,
|
|
17388
|
+
br: N,
|
|
17389
17389
|
tex: {
|
|
17390
|
-
x: o.paddedRect.x + 1 +
|
|
17391
|
-
y: o.paddedRect.y + 1 +
|
|
17392
|
-
w: a.stretch + a.fixed -
|
|
17393
|
-
h: c.stretch + c.fixed -
|
|
17390
|
+
x: o.paddedRect.x + 1 + ne,
|
|
17391
|
+
y: o.paddedRect.y + 1 + re,
|
|
17392
|
+
w: a.stretch + a.fixed - ne,
|
|
17393
|
+
h: c.stretch + c.fixed - re
|
|
17394
17394
|
},
|
|
17395
17395
|
writingMode: void 0,
|
|
17396
17396
|
glyphOffset: [0, 0],
|
|
17397
17397
|
sectionIndex: 0,
|
|
17398
|
-
pixelOffsetTL:
|
|
17399
|
-
pixelOffsetBR:
|
|
17398
|
+
pixelOffsetTL: ee,
|
|
17399
|
+
pixelOffsetBR: te,
|
|
17400
17400
|
minFontScaleX: C / s / O,
|
|
17401
17401
|
minFontScaleY: T / s / k,
|
|
17402
17402
|
isSDF: r
|
|
@@ -17655,9 +17655,9 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17655
17655
|
];
|
|
17656
17656
|
}(m, n, d, t.tilePixelRatio), w = m.get("text-max-angle") / 180 * Math.PI, T = m.get("text-rotation-alignment") !== "viewport" && m.get("symbol-placement") !== "point", E = m.get("icon-rotation-alignment") === "map" && m.get("symbol-placement") !== "point", D = m.get("symbol-placement"), k = x / 2, A = m.get("icon-text-fit"), j;
|
|
17657
17657
|
i && A !== "none" && (t.allowVerticalPlacement && r.vertical && (j = uf(i, r.vertical, A, m.get("icon-text-fit-padding"), h, _)), g && (i = uf(i, g, A, m.get("icon-text-fit-padding"), h, _)));
|
|
17658
|
-
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1,
|
|
17658
|
+
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
|
|
17659
17659
|
f.x < 0 || f.x >= O || f.y < 0 || f.y >= O || function(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T) {
|
|
17660
|
-
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0,
|
|
17660
|
+
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, P = 0, ee = -1, te = -1, F = {}, ne = _s("");
|
|
17661
17661
|
if (t.allowVerticalPlacement && i.vertical) {
|
|
17662
17662
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
|
|
17663
17663
|
k = new yh(l, n, u, d, f, i.vertical, p, m, h, e), s && (A = new yh(l, n, u, d, f, s, _, v, h, e));
|
|
@@ -17666,17 +17666,17 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17666
17666
|
let r = c.layout.get("icon-rotate").evaluate(x, {}), i = c.layout.get("icon-text-fit") !== "none", o = mh(a, r, C, i), p = s ? mh(s, r, C, i) : void 0;
|
|
17667
17667
|
O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
|
|
17668
17668
|
let m = t.iconSizeData, h = null;
|
|
17669
|
-
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ce(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ce(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w),
|
|
17669
|
+
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ce(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ce(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), ee = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), te = t.icon.placedSymbolArray.length - 1);
|
|
17670
17670
|
}
|
|
17671
|
-
let
|
|
17672
|
-
for (let r of
|
|
17671
|
+
let re = Object.keys(i.horizontal);
|
|
17672
|
+
for (let r of re) {
|
|
17673
17673
|
let a = i.horizontal[r];
|
|
17674
|
-
D || (
|
|
17674
|
+
D || (ne = _s(a.text), D = new yh(l, n, u, d, f, a, p, m, h, c.layout.get("text-rotate").evaluate(x, {}, w)));
|
|
17675
17675
|
let s = a.positionedLines.length === 1;
|
|
17676
|
-
if (
|
|
17676
|
+
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? re : [r], F, ee, S, w), s) break;
|
|
17677
17677
|
}
|
|
17678
|
-
i.vertical && (
|
|
17679
|
-
let
|
|
17678
|
+
i.vertical && (P += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], F, te, S, w));
|
|
17679
|
+
let ie = D ? D.boxStartIndex : t.collisionBoxArray.length, ae = D ? D.boxEndIndex : t.collisionBoxArray.length, oe = k ? k.boxStartIndex : t.collisionBoxArray.length, se = k ? k.boxEndIndex : t.collisionBoxArray.length, le = O ? O.boxStartIndex : t.collisionBoxArray.length, ue = O ? O.boxEndIndex : t.collisionBoxArray.length, de = A ? A.boxStartIndex : t.collisionBoxArray.length, fe = A ? A.boxEndIndex : t.collisionBoxArray.length, pe = -1, me = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
|
|
17680
17680
|
pe = me(D, pe), pe = me(k, pe), pe = me(O, pe), pe = me(A, pe);
|
|
17681
17681
|
let he = +(pe > -1);
|
|
17682
17682
|
he && (pe *= T / xd), t.glyphOffsetArray.length >= bf.MAX_GLYPHS && ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), x.sortKey !== void 0 && t.addToSortKeyRanges(t.symbolInstances.length, x.sortKey);
|
|
@@ -17688,7 +17688,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17688
17688
|
}
|
|
17689
17689
|
return [r, t.length];
|
|
17690
17690
|
}(t.textAnchorOffsets, ge);
|
|
17691
|
-
t.symbolInstances.emplaceBack(n.x, n.y,
|
|
17691
|
+
t.symbolInstances.emplaceBack(n.x, n.y, F.right >= 0 ? F.right : -1, F.center >= 0 ? F.center : -1, F.left >= 0 ? F.left : -1, F.vertical || -1, ee, te, ne, ie, ae, oe, se, le, ue, de, fe, u, N, P, j, M, he, 0, p, pe, _e, ve);
|
|
17692
17692
|
}(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
|
|
17693
17693
|
S,
|
|
17694
17694
|
S,
|
|
@@ -17698,22 +17698,22 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17698
17698
|
};
|
|
17699
17699
|
if (D === "line") for (let e of eh(n.geometry, 0, 0, O, O)) {
|
|
17700
17700
|
let n = yl(e, M), a = fh(n, x, w, r.vertical || g, i, 24, y, t.overscaling, O);
|
|
17701
|
-
for (let e of a) g && Mh(t, g.text, k, e) ||
|
|
17701
|
+
for (let e of a) g && Mh(t, g.text, k, e) || N(n, e);
|
|
17702
17702
|
}
|
|
17703
17703
|
else if (D === "line-center") {
|
|
17704
17704
|
for (let e of n.geometry) if (e.length > 1) {
|
|
17705
17705
|
let t = yl(e, M), n = dh(t, w, r.vertical || g, i, 24, y);
|
|
17706
|
-
n &&
|
|
17706
|
+
n && N(t, n);
|
|
17707
17707
|
}
|
|
17708
17708
|
} else if (n.type === "Polygon") for (let e of or(n.geometry, 0)) {
|
|
17709
17709
|
let t = xh(e, 16);
|
|
17710
|
-
|
|
17710
|
+
N(yl(e[0], M, !0), new oh(t.x, t.y, 0));
|
|
17711
17711
|
}
|
|
17712
17712
|
else if (n.type === "LineString") for (let e of n.geometry) {
|
|
17713
17713
|
let t = yl(e, M);
|
|
17714
|
-
|
|
17714
|
+
N(t, new oh(t[0].x, t[0].y, 0));
|
|
17715
17715
|
}
|
|
17716
|
-
else if (n.type === "Point") for (let e of n.geometry) for (let t of e)
|
|
17716
|
+
else if (n.type === "Point") for (let e of n.geometry) for (let t of e) N([t], new oh(t.x, t.y, 0));
|
|
17717
17717
|
}
|
|
17718
17718
|
function Ah(e, t, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
17719
17719
|
let g = function(e, t, r, i, a, o, s, c) {
|
|
@@ -17901,7 +17901,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17901
17901
|
let n = {};
|
|
17902
17902
|
for (let r of t) r in e && (n[r] = e[r]);
|
|
17903
17903
|
return n;
|
|
17904
|
-
}, e.W = Nf, e.X =
|
|
17904
|
+
}, e.W = Nf, e.X = F, e.Y = Lf, e.Z = If, e._ = t, e.a = Ce, e.a$ = function(e) {
|
|
17905
17905
|
var t = new f(3);
|
|
17906
17906
|
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t;
|
|
17907
17907
|
}, e.a0 = l, e.a1 = u, e.a2 = me, e.a3 = Kf, e.a4 = zf, e.a5 = Bf, e.a6 = O, e.a7 = Hf, e.a8 = Jf, e.a9 = 25, e.aA = function(e) {
|
|
@@ -17945,7 +17945,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17945
17945
|
}
|
|
17946
17946
|
}));
|
|
17947
17947
|
}, e.ac = z, e.ad = function() {
|
|
17948
|
-
return
|
|
17948
|
+
return re++;
|
|
17949
17949
|
}, e.ae = Po, e.af = bf, e.ag = Um, e.ah = _i, e.ai = Hs, e.aj = Xf, e.ak = function(e) {
|
|
17950
17950
|
let t = {};
|
|
17951
17951
|
if (e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((e, n, r, i) => {
|
|
@@ -17956,7 +17956,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
17956
17956
|
isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
|
|
17957
17957
|
}
|
|
17958
17958
|
return t;
|
|
17959
|
-
}, e.al =
|
|
17959
|
+
}, e.al = te, e.am = 85.051129, e.an = ve, e.ao = function(e) {
|
|
17960
17960
|
return 2 ** e;
|
|
17961
17961
|
}, e.ap = m, e.aq = Rf, e.ar = function(e) {
|
|
17962
17962
|
return Math.log(e) / Math.LN2;
|
|
@@ -18041,7 +18041,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18041
18041
|
let n = 0, r = 0;
|
|
18042
18042
|
if (e.kind === "constant") r = e.layoutSize;
|
|
18043
18043
|
else if (e.kind !== "source") {
|
|
18044
|
-
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ?
|
|
18044
|
+
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? te(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
|
|
18045
18045
|
e.kind === "camera" ? r = xn.number(e.minSize, e.maxSize, s) : n = s;
|
|
18046
18046
|
}
|
|
18047
18047
|
return {
|
|
@@ -18178,7 +18178,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18178
18178
|
case "raster": return new no(e, t);
|
|
18179
18179
|
case "symbol": return new Tf(e, t);
|
|
18180
18180
|
}
|
|
18181
|
-
}, e.bU = (e) => e.type === "raster", e.bV =
|
|
18181
|
+
}, e.bU = (e) => e.type === "raster", e.bV = oe, e.bW = function(e, t) {
|
|
18182
18182
|
if (!e) return [{
|
|
18183
18183
|
command: "setStyle",
|
|
18184
18184
|
args: [t]
|
|
@@ -18306,7 +18306,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18306
18306
|
}, e.bX = function(e) {
|
|
18307
18307
|
let t = [], n = e.id;
|
|
18308
18308
|
return n === void 0 && t.push({ message: `layers.${n}: missing required property "id"` }), e.render === void 0 && t.push({ message: `layers.${n}: missing required method "render"` }), e.renderingMode && e.renderingMode !== "2d" && e.renderingMode !== "3d" && t.push({ message: `layers.${n}: property "renderingMode" must be either "2d" or "3d"` }), t;
|
|
18309
|
-
}, e.bY =
|
|
18309
|
+
}, e.bY = ie, e.bZ = ae, e.b_ = class extends Ss {
|
|
18310
18310
|
constructor(e, t) {
|
|
18311
18311
|
super(e, t), this.current = 0;
|
|
18312
18312
|
}
|
|
@@ -18350,7 +18350,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18350
18350
|
let t = new Float64Array(9);
|
|
18351
18351
|
var n, r, i, a, o, s, c, l, u, d = (i = (r = e)[0]) * (c = i + i), f = (a = r[1]) * c, p, m = (o = r[2]) * c, h = o * (l = a + a), g, _ = (s = r[3]) * c, v = s * l, y = s * (u = o + o);
|
|
18352
18352
|
(n = t)[0] = 1 - (p = a * l) - (g = o * u), n[3] = f - y, n[6] = m + v, n[1] = f + y, n[4] = 1 - d - g, n[7] = h - _, n[2] = m - v, n[5] = h + _, n[8] = 1 - d - p;
|
|
18353
|
-
let b = ye(-Math.asin(
|
|
18353
|
+
let b = ye(-Math.asin(te(t[2], -1, 1))), x, S;
|
|
18354
18354
|
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -ye(Math.atan2(t[3], t[4]))) : (x = ye(t[5] === 0 && t[8] === 0 ? 0 : Math.atan2(t[5], t[8])), S = ye(t[1] === 0 && t[0] === 0 ? 0 : Math.atan2(t[1], t[0]))), {
|
|
18355
18355
|
roll: x,
|
|
18356
18356
|
pitch: b + 90,
|
|
@@ -18358,8 +18358,8 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18358
18358
|
};
|
|
18359
18359
|
}, e.bn = function(e, t) {
|
|
18360
18360
|
return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
|
|
18361
|
-
}, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu =
|
|
18362
|
-
return M(r, i,
|
|
18361
|
+
}, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = N, e.bv = Jt, e.bw = function(e, t, n, r, i) {
|
|
18362
|
+
return M(r, i, te((e - t) / (n - t), 0, 1));
|
|
18363
18363
|
}, e.bx = function(e, t, n, r) {
|
|
18364
18364
|
return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
|
|
18365
18365
|
}, e.by = j, e.bz = function() {
|
|
@@ -18563,11 +18563,11 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18563
18563
|
}, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
|
|
18564
18564
|
return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3] && e[4] === t[4] && e[5] === t[5] && e[6] === t[6] && e[7] === t[7] && e[8] === t[8] && e[9] === t[9] && e[10] === t[10] && e[11] === t[11] && e[12] === t[12] && e[13] === t[13] && e[14] === t[14] && e[15] === t[15];
|
|
18565
18565
|
}, e.ck = function(e, t) {
|
|
18566
|
-
var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13],
|
|
18567
|
-
return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ -
|
|
18566
|
+
var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], N = t[14], P = t[15];
|
|
18567
|
+
return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - N) <= d * Math.max(1, Math.abs(_), Math.abs(N)) && Math.abs(v - P) <= d * Math.max(1, Math.abs(v), Math.abs(P));
|
|
18568
18568
|
}, e.cl = function(e, t) {
|
|
18569
18569
|
return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[4] = t[4], e[5] = t[5], e[6] = t[6], e[7] = t[7], e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
|
|
18570
|
-
}, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv =
|
|
18570
|
+
}, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = P, e.cw = function(e, t, n) {
|
|
18571
18571
|
if (t <= 0) return e;
|
|
18572
18572
|
let r = 1 / t;
|
|
18573
18573
|
return n === void 0 || Math.abs(n) < 1e-10 ? Math.round(e * r) / r : (n > 0 ? Math.ceil(e * r - 1e-9) : Math.floor(e * r + 1e-10)) / r;
|
|
@@ -18575,7 +18575,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18575
18575
|
let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
|
|
18576
18576
|
var a, o;
|
|
18577
18577
|
return ye(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
|
|
18578
|
-
}, e.cy =
|
|
18578
|
+
}, e.cy = ee, e.cz = function(e, t) {
|
|
18579
18579
|
var n;
|
|
18580
18580
|
if (!xe[t]) return !1;
|
|
18581
18581
|
let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
@@ -18673,7 +18673,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18673
18673
|
getClusterLeaves(e, t, n) {
|
|
18674
18674
|
return this.tileIndex.getLeaves(e, t, n);
|
|
18675
18675
|
}
|
|
18676
|
-
}, e.d1 = Fa, e.e =
|
|
18676
|
+
}, e.d1 = Fa, e.e = ne, e.f = Me, e.g = De, e.h = (e) => t(void 0, void 0, void 0, (function* () {
|
|
18677
18677
|
if (e.byteLength === 0) return createImageBitmap(new ImageData(1, 1));
|
|
18678
18678
|
let t = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18679
18679
|
try {
|
|
@@ -18688,7 +18688,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
18688
18688
|
}, r.onerror = () => n(/* @__PURE__ */ Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
|
|
18689
18689
|
let i = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18690
18690
|
r.src = e.byteLength ? URL.createObjectURL(i) : pe;
|
|
18691
|
-
})), e.k = (e, t) => je(
|
|
18691
|
+
})), e.k = (e, t) => je(ne(e, { type: "json" }), t), e.l = Ie, e.m = je, e.n = Fe, e.o = (e, t) => je(ne(e, { type: "arrayBuffer" }), t), e.p = Yd, e.q = function(e) {
|
|
18692
18692
|
return new Pd(e).readFields(Kd, []);
|
|
18693
18693
|
}, e.r = function(e) {
|
|
18694
18694
|
return /[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e));
|
|
@@ -20236,12 +20236,12 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20236
20236
|
return Object.keys(this.active).length;
|
|
20237
20237
|
}
|
|
20238
20238
|
}
|
|
20239
|
-
let M = Math.floor(s.hardwareConcurrency / 2),
|
|
20240
|
-
function
|
|
20241
|
-
return
|
|
20239
|
+
let M = Math.floor(s.hardwareConcurrency / 2), N, P;
|
|
20240
|
+
function ee() {
|
|
20241
|
+
return N || (N = new j()), N;
|
|
20242
20242
|
}
|
|
20243
20243
|
j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
|
|
20244
|
-
class
|
|
20244
|
+
class te {
|
|
20245
20245
|
constructor(e, n) {
|
|
20246
20246
|
this.workerPool = e, this.actors = [], this.currentActor = 0, this.id = n;
|
|
20247
20247
|
let r = this.workerPool.acquire(n);
|
|
@@ -20273,10 +20273,10 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20273
20273
|
for (let t of this.actors) t.unregisterMessageHandler(e);
|
|
20274
20274
|
}
|
|
20275
20275
|
}
|
|
20276
|
-
function
|
|
20277
|
-
return
|
|
20276
|
+
function F() {
|
|
20277
|
+
return P || (P = new te(ee(), t.M), P.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), P;
|
|
20278
20278
|
}
|
|
20279
|
-
function
|
|
20279
|
+
function ne(e, n) {
|
|
20280
20280
|
let r = t.O();
|
|
20281
20281
|
return t.Q(r, r, [
|
|
20282
20282
|
1,
|
|
@@ -20288,7 +20288,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20288
20288
|
1
|
|
20289
20289
|
]), e.calculatePosMatrix ? t.U(r, r, e.calculatePosMatrix(n.toUnwrapped())) : r;
|
|
20290
20290
|
}
|
|
20291
|
-
function
|
|
20291
|
+
function re(e, t, n, r, i, a, o) {
|
|
20292
20292
|
var s;
|
|
20293
20293
|
let c = function(e, t, n) {
|
|
20294
20294
|
if (e) for (let r of e) {
|
|
@@ -20301,14 +20301,14 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20301
20301
|
}
|
|
20302
20302
|
return !1;
|
|
20303
20303
|
}((s = i == null ? void 0 : i.layers) == null ? null : s, t, e.id), l = a.maxPitchScaleFactor(), u = e.tilesIn(r, l, c);
|
|
20304
|
-
u.sort(
|
|
20304
|
+
u.sort(ie);
|
|
20305
20305
|
let d = [];
|
|
20306
20306
|
for (let r of u) d.push({
|
|
20307
20307
|
wrappedTileID: r.tileID.wrapped().key,
|
|
20308
|
-
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l,
|
|
20308
|
+
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l, ne(a, r.tileID), o ? (e, t) => o(r.tileID, e, t) : void 0)
|
|
20309
20309
|
});
|
|
20310
20310
|
return function(e, t) {
|
|
20311
|
-
for (let n in e) for (let r of e[n])
|
|
20311
|
+
for (let n in e) for (let r of e[n]) ae(r, t);
|
|
20312
20312
|
return e;
|
|
20313
20313
|
}(function(e) {
|
|
20314
20314
|
let t = {}, n = {};
|
|
@@ -20326,15 +20326,15 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20326
20326
|
return t;
|
|
20327
20327
|
}(d), e);
|
|
20328
20328
|
}
|
|
20329
|
-
function
|
|
20329
|
+
function ie(e, t) {
|
|
20330
20330
|
let n = e.tileID, r = t.tileID;
|
|
20331
20331
|
return n.overscaledZ - r.overscaledZ || n.canonical.y - r.canonical.y || n.wrap - r.wrap || n.canonical.x - r.canonical.x;
|
|
20332
20332
|
}
|
|
20333
|
-
function
|
|
20333
|
+
function ae(e, t) {
|
|
20334
20334
|
let n = e.feature, r = t.getFeatureState(n.layer["source-layer"], n.id);
|
|
20335
20335
|
n.source = n.layer.source, n.layer["source-layer"] && (n.sourceLayer = n.layer["source-layer"]), n.state = r;
|
|
20336
20336
|
}
|
|
20337
|
-
function
|
|
20337
|
+
function oe(e, n, r, i) {
|
|
20338
20338
|
return t._(this, void 0, void 0, (function* () {
|
|
20339
20339
|
let a = e;
|
|
20340
20340
|
if (e.url ? a = (yield t.k(yield n.transformRequest(e.url, "Source"), r)).data : yield s.frameAsync(r, i), !a) return null;
|
|
@@ -20351,7 +20351,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20351
20351
|
return "vector_layers" in a && a.vector_layers && (o.vectorLayerIds = a.vector_layers.map(((e) => e.id))), o;
|
|
20352
20352
|
}));
|
|
20353
20353
|
}
|
|
20354
|
-
class
|
|
20354
|
+
class se {
|
|
20355
20355
|
constructor(e, t) {
|
|
20356
20356
|
e && (t ? this.setSouthWest(e).setNorthEast(t) : Array.isArray(e) && (e.length === 4 ? this.setSouthWest([e[0], e[1]]).setNorthEast([e[2], e[3]]) : this.setSouthWest(e[0]).setNorthEast(e[1])));
|
|
20357
20357
|
}
|
|
@@ -20365,7 +20365,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20365
20365
|
let n = this._sw, r = this._ne, i, a;
|
|
20366
20366
|
if (e instanceof t.W) i = e, a = e;
|
|
20367
20367
|
else {
|
|
20368
|
-
if (!(e instanceof
|
|
20368
|
+
if (!(e instanceof se)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(se.convert(e)) : this.extend(t.W.convert(e)) : e && ("lng" in e || "lon" in e) && "lat" in e ? this.extend(t.W.convert(e)) : this;
|
|
20369
20369
|
if (i = e._sw, a = e._ne, !i || !a) return this;
|
|
20370
20370
|
}
|
|
20371
20371
|
return n || r ? (n.lng = Math.min(i.lng, n.lng), n.lat = Math.min(i.lat, n.lat), r.lng = Math.max(a.lng, r.lng), r.lat = Math.max(a.lat, r.lat)) : (this._sw = new t.W(i.lng, i.lat), this._ne = new t.W(a.lng, a.lat)), this;
|
|
@@ -20411,27 +20411,27 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20411
20411
|
return this._sw.lng > this._ne.lng && (i = this._sw.lng >= n && n >= this._ne.lng), this._sw.lat <= r && r <= this._ne.lat && i;
|
|
20412
20412
|
}
|
|
20413
20413
|
intersects(e) {
|
|
20414
|
-
if (!((e =
|
|
20414
|
+
if (!((e = se.convert(e)).getNorth() >= this.getSouth() && e.getSouth() <= this.getNorth())) return !1;
|
|
20415
20415
|
let n = Math.abs(this.getEast() - this.getWest()), r = Math.abs(e.getEast() - e.getWest());
|
|
20416
20416
|
if (n >= 360 || r >= 360) return !0;
|
|
20417
20417
|
let i = t.X(this.getWest(), -180, 180), a = t.X(this.getEast(), -180, 180), o = t.X(e.getWest(), -180, 180), s = t.X(e.getEast(), -180, 180), c = i > a, l = o > s;
|
|
20418
20418
|
return !(!c || !l) || (c ? s >= i || o <= a : l ? a >= o || i <= s : o <= a && s >= i);
|
|
20419
20419
|
}
|
|
20420
20420
|
static convert(e) {
|
|
20421
|
-
return e instanceof
|
|
20421
|
+
return e instanceof se ? e : e && new se(e);
|
|
20422
20422
|
}
|
|
20423
20423
|
static fromLngLat(e, n = 0) {
|
|
20424
20424
|
let r = 360 * n / 40075017, i = r / Math.cos(Math.PI / 180 * e.lat);
|
|
20425
|
-
return new
|
|
20425
|
+
return new se(new t.W(e.lng - i, e.lat - r), new t.W(e.lng + i, e.lat + r));
|
|
20426
20426
|
}
|
|
20427
20427
|
adjustAntiMeridian() {
|
|
20428
20428
|
let e = new t.W(this._sw.lng, this._sw.lat), n = new t.W(this._ne.lng, this._ne.lat);
|
|
20429
|
-
return new
|
|
20429
|
+
return new se(e, e.lng > n.lng ? new t.W(n.lng + 360, n.lat) : n);
|
|
20430
20430
|
}
|
|
20431
20431
|
}
|
|
20432
20432
|
class ce {
|
|
20433
20433
|
constructor(e, t, n) {
|
|
20434
|
-
this.bounds =
|
|
20434
|
+
this.bounds = se.convert(this.validateBounds(e)), this.minzoom = t || 0, this.maxzoom = n || 24;
|
|
20435
20435
|
}
|
|
20436
20436
|
validateBounds(e) {
|
|
20437
20437
|
return Array.isArray(e) && e.length === 4 ? [
|
|
@@ -20466,7 +20466,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20466
20466
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20467
20467
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20468
20468
|
try {
|
|
20469
|
-
let n = yield
|
|
20469
|
+
let n = yield oe(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20470
20470
|
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ce(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20471
20471
|
dataType: "source",
|
|
20472
20472
|
sourceDataType: "metadata"
|
|
@@ -20609,7 +20609,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20609
20609
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20610
20610
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20611
20611
|
try {
|
|
20612
|
-
let n = yield
|
|
20612
|
+
let n = yield oe(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20613
20613
|
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ce(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20614
20614
|
dataType: "source",
|
|
20615
20615
|
sourceDataType: "metadata"
|
|
@@ -20781,7 +20781,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
20781
20781
|
return e.type === "GeometryCollection" ? e.geometries.flatMap(((e) => ge(e))) : he(e.coordinates);
|
|
20782
20782
|
}
|
|
20783
20783
|
function _e(e) {
|
|
20784
|
-
let t = new
|
|
20784
|
+
let t = new se(), n;
|
|
20785
20785
|
switch (e.type) {
|
|
20786
20786
|
case "FeatureCollection":
|
|
20787
20787
|
n = e.features.flatMap(((e) => ge(e.geometry)));
|
|
@@ -21026,7 +21026,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
21026
21026
|
if (e.state === "unloaded") return !1;
|
|
21027
21027
|
let { buffer: r, extent: i } = this.workerOptions.geojsonVtOptions, a = function({ x: e, y: n, z: r }, i = 0) {
|
|
21028
21028
|
let a = t.a4((e - i) / 2 ** r), o = t.a5((n + 1 + i) / 2 ** r), s = t.a4((e + 1 + i) / 2 ** r), c = t.a5((n - i) / 2 ** r);
|
|
21029
|
-
return new
|
|
21029
|
+
return new se([a, o], [s, c]);
|
|
21030
21030
|
}(e.tileID.canonical, r / i);
|
|
21031
21031
|
for (let e of n) if (a.intersects(e)) return !0;
|
|
21032
21032
|
return !1;
|
|
@@ -21327,7 +21327,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
21327
21327
|
}, we = "RTLPluginLoaded";
|
|
21328
21328
|
class Te extends t.E {
|
|
21329
21329
|
constructor() {
|
|
21330
|
-
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher =
|
|
21330
|
+
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = F();
|
|
21331
21331
|
}
|
|
21332
21332
|
_syncState(e) {
|
|
21333
21333
|
return this.status = e, this.dispatcher.broadcast("SRPS", {
|
|
@@ -23011,15 +23011,15 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
23011
23011
|
var w, A;
|
|
23012
23012
|
if (n[e.crossTileID]) return;
|
|
23013
23013
|
if (d) return void (this.placements[e.crossTileID] = new St(!1, !1, !1));
|
|
23014
|
-
let j = !1, M = !1,
|
|
23014
|
+
let j = !1, M = !1, N = !0, P = null, ee = {
|
|
23015
23015
|
box: null,
|
|
23016
23016
|
placeable: !1,
|
|
23017
23017
|
offscreen: null,
|
|
23018
23018
|
occluded: !1
|
|
23019
|
-
},
|
|
23020
|
-
f.textFeatureIndex ?
|
|
23021
|
-
let
|
|
23022
|
-
if (
|
|
23019
|
+
}, te = { placeable: !1 }, F = null, ne = null, re = null, ie = 0, ae = 0, oe = 0;
|
|
23020
|
+
f.textFeatureIndex ? ie = f.textFeatureIndex : e.useRuntimeCollisionCircles && (ie = e.featureIndex), f.verticalTextFeatureIndex && (ae = f.verticalTextFeatureIndex);
|
|
23021
|
+
let se = f.textBox;
|
|
23022
|
+
if (se) {
|
|
23023
23023
|
let n = (n) => {
|
|
23024
23024
|
let r = t.ax.horizontal;
|
|
23025
23025
|
if (i.allowVerticalPlacement && !n && this.prevPlacement) {
|
|
@@ -23029,21 +23029,21 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
23029
23029
|
return r;
|
|
23030
23030
|
}, a = (n, r) => {
|
|
23031
23031
|
if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
|
|
23032
|
-
for (let e of i.writingModes) if (e === t.ax.vertical ? (
|
|
23033
|
-
} else
|
|
23032
|
+
for (let e of i.writingModes) if (e === t.ax.vertical ? (ee = r(), te = ee) : ee = n(), ee != null && ee.placeable) break;
|
|
23033
|
+
} else ee = n();
|
|
23034
23034
|
}, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
|
|
23035
23035
|
if (d === l) {
|
|
23036
23036
|
let r = (t, n) => {
|
|
23037
23037
|
let r = this.collisionIndex.placeCollisionBox(t, _, u, D, c, S, x, o, m.predicate, O, void 0, k);
|
|
23038
23038
|
return r != null && r.placeable && (this.markUsedOrientation(i, n, e), this.placedOrientations[e.crossTileID] = n), r;
|
|
23039
23039
|
};
|
|
23040
|
-
a((() => r(
|
|
23040
|
+
a((() => r(se, t.ax.horizontal)), (() => {
|
|
23041
23041
|
let n = f.verticalTextBox;
|
|
23042
23042
|
return i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && n ? r(n, t.ax.vertical) : {
|
|
23043
23043
|
box: null,
|
|
23044
23044
|
offscreen: null
|
|
23045
23045
|
};
|
|
23046
|
-
})), n(
|
|
23046
|
+
})), n(ee == null ? void 0 : ee.placeable);
|
|
23047
23047
|
} else {
|
|
23048
23048
|
let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
|
|
23049
23049
|
let f = t.x2 - t.x1, h = t.y2 - t.y1, g = e.textBoxScale, v = C && y === "never" ? n : null, b = null, w = _ === "never" ? 1 : 2, T = "never";
|
|
@@ -23053,46 +23053,46 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
23053
23053
|
let r = i.textAnchorOffsets.get(n);
|
|
23054
23054
|
if (p && r.textAnchor !== p) continue;
|
|
23055
23055
|
let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
|
|
23056
|
-
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0,
|
|
23056
|
+
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, P = l.shift, b;
|
|
23057
23057
|
}
|
|
23058
23058
|
p ? p = null : T = _;
|
|
23059
23059
|
}
|
|
23060
23060
|
return r && !b && (b = {
|
|
23061
|
-
box: this.collisionIndex.placeCollisionBox(
|
|
23061
|
+
box: this.collisionIndex.placeCollisionBox(se, "always", u, D, c, S, x, o, m.predicate, O, void 0, k).box,
|
|
23062
23062
|
offscreen: !1,
|
|
23063
23063
|
placeable: !1,
|
|
23064
23064
|
occluded: !1
|
|
23065
23065
|
}), b;
|
|
23066
23066
|
};
|
|
23067
|
-
a((() => h(
|
|
23067
|
+
a((() => h(se, f.iconBox, t.ax.horizontal)), (() => {
|
|
23068
23068
|
let n = f.verticalTextBox;
|
|
23069
|
-
return i.allowVerticalPlacement && !(
|
|
23069
|
+
return i.allowVerticalPlacement && !(ee != null && ee.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
|
|
23070
23070
|
box: null,
|
|
23071
23071
|
occluded: !0,
|
|
23072
23072
|
offscreen: null
|
|
23073
23073
|
};
|
|
23074
|
-
})),
|
|
23075
|
-
let g = n(
|
|
23074
|
+
})), ee && (j = ee.placeable, N = ee.offscreen);
|
|
23075
|
+
let g = n(ee == null ? void 0 : ee.placeable);
|
|
23076
23076
|
if (!j && this.prevPlacement) {
|
|
23077
23077
|
let t = this.prevPlacement.variableOffsets[e.crossTileID];
|
|
23078
23078
|
t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
|
|
23079
23079
|
}
|
|
23080
23080
|
}
|
|
23081
23081
|
}
|
|
23082
|
-
if (
|
|
23082
|
+
if (F = ee, j = F == null ? void 0 : F.placeable, N = F == null ? void 0 : F.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
|
|
23083
23083
|
let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
|
|
23084
|
-
|
|
23084
|
+
ne = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ne.circles.length && ne.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ne.circles.length > 0 && !ne.collisionDetected, N && (N = ne.offscreen);
|
|
23085
23085
|
}
|
|
23086
|
-
if (f.iconFeatureIndex && (
|
|
23087
|
-
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C &&
|
|
23088
|
-
|
|
23086
|
+
if (f.iconFeatureIndex && (oe = f.iconFeatureIndex), f.iconBox) {
|
|
23087
|
+
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && P ? P : void 0, k);
|
|
23088
|
+
te && te.placeable && f.verticalIconBox ? (re = e(f.verticalIconBox), M = re.placeable) : (re = e(f.iconBox), M = re.placeable), N && (N = re.offscreen);
|
|
23089
23089
|
}
|
|
23090
23090
|
let ce = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, le = g || e.numIconVertices === 0;
|
|
23091
23091
|
ce || le ? le ? ce || M && (M = j) : j = M && j : M = j = M && j;
|
|
23092
|
-
let ue = M &&
|
|
23093
|
-
if (j &&
|
|
23092
|
+
let ue = M && re.placeable;
|
|
23093
|
+
if (j && F.placeable && this.collisionIndex.insertCollisionBox(F.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, te && te.placeable && ae ? ae : ie, m.ID), ue && this.collisionIndex.insertCollisionBox(re.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, oe, m.ID), ne && j && this.collisionIndex.insertCollisionCircles(ne.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, ie, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, F, re, ne), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
|
|
23094
23094
|
if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
|
|
23095
|
-
this.placements[e.crossTileID] = new St((j || T) && !(
|
|
23095
|
+
this.placements[e.crossTileID] = new St((j || T) && !(F != null && F.occluded), (M || E) && !(re != null && re.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
|
|
23096
23096
|
};
|
|
23097
23097
|
if (w) {
|
|
23098
23098
|
if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
|
|
@@ -23792,7 +23792,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
23792
23792
|
}
|
|
23793
23793
|
getMaxBounds() {
|
|
23794
23794
|
var e, t;
|
|
23795
|
-
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new
|
|
23795
|
+
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new se([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
|
|
23796
23796
|
}
|
|
23797
23797
|
setMaxBounds(e) {
|
|
23798
23798
|
e ? (this._lngRange = [e.getWest(), e.getEast()], this._latRange = [e.getSouth(), e.getNorth()], this.constrainInternal()) : (this._lngRange = null, this._latRange = [-t.am, t.am]);
|
|
@@ -24452,7 +24452,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
24452
24452
|
}
|
|
24453
24453
|
getBounds() {
|
|
24454
24454
|
let e = Math.max(0, this._helper._height / 2 - Fe(this));
|
|
24455
|
-
return new
|
|
24455
|
+
return new se().extend(this.screenPointToLocation(new t.P(0, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new t.P(0, this._helper._height)));
|
|
24456
24456
|
}
|
|
24457
24457
|
isPointOnMapSurface(e, t) {
|
|
24458
24458
|
return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 - Fe(this);
|
|
@@ -25825,7 +25825,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
25825
25825
|
0,
|
|
25826
25826
|
-1,
|
|
25827
25827
|
0
|
|
25828
|
-
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new
|
|
25828
|
+
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new se(u);
|
|
25829
25829
|
}
|
|
25830
25830
|
calculateCenterFromCameraLngLatAlt(e, t, n, r) {
|
|
25831
25831
|
return this._helper.calculateCenterFromCameraLngLatAlt(e, t, n, r);
|
|
@@ -26500,7 +26500,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
26500
26500
|
let t = this.tileManagers[e].getSource().type;
|
|
26501
26501
|
t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
|
|
26502
26502
|
}
|
|
26503
|
-
}, this.map = e, this.dispatcher = new
|
|
26503
|
+
}, this.map = e, this.dispatcher = new te(ee(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
|
|
26504
26504
|
let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
|
|
26505
26505
|
this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new zt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), De().on(we, this._rtlPluginLoaded), this.on("data", ((e) => {
|
|
26506
26506
|
if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
|
|
@@ -27073,11 +27073,11 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
27073
27073
|
layers: s,
|
|
27074
27074
|
globalState: this._globalState
|
|
27075
27075
|
});
|
|
27076
|
-
for (let t in this.tileManagers) n.layers && !i[t] || a.push(
|
|
27076
|
+
for (let t in this.tileManagers) n.layers && !i[t] || a.push(re(this.tileManagers[t], this._layers, o, e, c, r, this.map.terrain ? (e, t, n) => this.map.terrain.getElevation(e, t, n) : void 0));
|
|
27077
27077
|
return this.placement && a.push(function(e, t, n, r, i, a, o) {
|
|
27078
27078
|
let s = {}, c = a.queryRenderedSymbols(r), l = [];
|
|
27079
27079
|
for (let e of Object.keys(c).map(Number)) l.push(o[e]);
|
|
27080
|
-
l.sort(
|
|
27080
|
+
l.sort(ie);
|
|
27081
27081
|
for (let n of l) {
|
|
27082
27082
|
let r = n.featureIndex.lookupSymbolFeatures(c[n.bucketInstanceId], t, n.bucketIndex, n.sourceLayerIndex, {
|
|
27083
27083
|
filterSpec: i.filter,
|
|
@@ -27098,7 +27098,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
27098
27098
|
}
|
|
27099
27099
|
}
|
|
27100
27100
|
return function(e, t, n) {
|
|
27101
|
-
for (let r in e) for (let i of e[r])
|
|
27101
|
+
for (let r in e) for (let i of e[r]) ae(i, n[t[r].source]);
|
|
27102
27102
|
return e;
|
|
27103
27103
|
}(s, e, n);
|
|
27104
27104
|
}(this._layers, o, this.tileManagers, e, c, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(a);
|
|
@@ -28663,34 +28663,34 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
28663
28663
|
if (!l) continue;
|
|
28664
28664
|
let d = a ? l.text : l.icon;
|
|
28665
28665
|
if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
|
|
28666
|
-
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M,
|
|
28667
|
-
if (a)
|
|
28666
|
+
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, P, ee, te = [0, 0], F = null;
|
|
28667
|
+
if (a) N = i.glyphAtlasTexture, P = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (te = i.imageAtlasTexture.size, F = i.imageAtlasTexture, ee = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
|
|
28668
28668
|
else {
|
|
28669
28669
|
let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
|
|
28670
|
-
|
|
28670
|
+
N = i.imageAtlasTexture, P = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
|
|
28671
28671
|
}
|
|
28672
|
-
let
|
|
28672
|
+
let ne = t.aK(i, 1, e.transform.zoom), re = $e(y, e.transform, ne), ie = et(b, y, e.transform, ne), ae = t.aL(v, i, o, s), oe = v.getProjectionData({
|
|
28673
28673
|
overscaledTileID: c,
|
|
28674
28674
|
applyGlobeMatrix: !p,
|
|
28675
28675
|
applyTerrainMatrix: !0
|
|
28676
|
-
}),
|
|
28676
|
+
}), se = E && l.hasTextData(), ce = r.layout.get("icon-text-fit") !== "none" && se && l.hasIconData();
|
|
28677
28677
|
if (x) {
|
|
28678
28678
|
let n = t.O();
|
|
28679
|
-
H(n,
|
|
28679
|
+
H(n, re);
|
|
28680
28680
|
let i = e.style.map.terrain ? (t, n) => e.style.map.terrain.getElevation(c, t, n) : null;
|
|
28681
|
-
it(l, e, a,
|
|
28681
|
+
it(l, e, a, re, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, ae, i);
|
|
28682
28682
|
}
|
|
28683
|
-
let le = a && E || ce, ue = x || le ? pi : b ?
|
|
28684
|
-
fe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, le, e, ue,
|
|
28683
|
+
let le = a && E || ce, ue = x || le ? pi : b ? re : e.transform.clipSpaceToPixelsMatrix, de = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, fe;
|
|
28684
|
+
fe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, le, e, ue, ie, ae, M, te, O) : vr(g.kind, A, S, b, x, le, e, ue, ie, ae, a, M, de, O) : _r(g.kind, A, S, b, x, le, e, ue, ie, ae, a, M, O);
|
|
28685
28685
|
let pe = {
|
|
28686
28686
|
program: k,
|
|
28687
28687
|
buffers: d,
|
|
28688
28688
|
uniformValues: fe,
|
|
28689
|
-
projectionData:
|
|
28690
|
-
atlasTexture:
|
|
28691
|
-
atlasTextureIcon:
|
|
28692
|
-
atlasInterpolation:
|
|
28693
|
-
atlasInterpolationIcon:
|
|
28689
|
+
projectionData: oe,
|
|
28690
|
+
atlasTexture: N,
|
|
28691
|
+
atlasTextureIcon: F,
|
|
28692
|
+
atlasInterpolation: P,
|
|
28693
|
+
atlasInterpolationIcon: ee,
|
|
28694
28694
|
isSDF: h,
|
|
28695
28695
|
hasHalo: de
|
|
28696
28696
|
};
|
|
@@ -31317,7 +31317,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
31317
31317
|
return this.jumpTo({ roll: e }, t), this;
|
|
31318
31318
|
}
|
|
31319
31319
|
cameraForBounds(e, t) {
|
|
31320
|
-
e =
|
|
31320
|
+
e = se.convert(e).adjustAntiMeridian();
|
|
31321
31321
|
let n = (t == null ? void 0 : t.bearing) || 0;
|
|
31322
31322
|
return this._cameraForBoxAndBearing(e.getNorthWest(), e.getSouthEast(), n, t);
|
|
31323
31323
|
}
|
|
@@ -31343,7 +31343,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
31343
31343
|
}
|
|
31344
31344
|
let o = t.e(a, i.padding);
|
|
31345
31345
|
i.padding = o;
|
|
31346
|
-
let s = this.transform, c = new
|
|
31346
|
+
let s = this.transform, c = new se(e, n), l = this.cameraHelper.cameraForBoxAndBearing(i, o, c, r, s);
|
|
31347
31347
|
return l && this._zoomSnap && (l.zoom = t.cw(l.zoom, this._zoomSnap, -1)), l;
|
|
31348
31348
|
}
|
|
31349
31349
|
fitBounds(e, t, n) {
|
|
@@ -32290,7 +32290,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
32290
32290
|
return this.transform.getMaxBounds();
|
|
32291
32291
|
}
|
|
32292
32292
|
setMaxBounds(e) {
|
|
32293
|
-
return this.transform.setMaxBounds(
|
|
32293
|
+
return this.transform.setMaxBounds(se.convert(e)), this._update();
|
|
32294
32294
|
}
|
|
32295
32295
|
setMinZoom(e) {
|
|
32296
32296
|
if ((e = e == null ? -2 : e) >= -2 && e <= this.transform.maxZoom) {
|
|
@@ -33374,7 +33374,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33374
33374
|
this.options.showUserLocation && this._watchState !== "OFF" && this._updateMarker(e), this.options.trackUserLocation && this._watchState !== "ACTIVE_LOCK" || this._updateCamera(e), this.options.showUserLocation && this._dotElement.classList.remove("maplibregl-user-location-dot-stale"), this.fire(new t.n("geolocate", e)), this._finish();
|
|
33375
33375
|
}
|
|
33376
33376
|
}, this._updateCamera = (e) => {
|
|
33377
|
-
let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o =
|
|
33377
|
+
let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o = se.fromLngLat(n, r);
|
|
33378
33378
|
this._map.fitBounds(o, a, { geolocateSource: !0 });
|
|
33379
33379
|
}, this._updateMarker = (e) => {
|
|
33380
33380
|
if (e) {
|
|
@@ -33526,7 +33526,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33526
33526
|
onRemove() {
|
|
33527
33527
|
this._container.remove(), this._map.off("styledata", this._updateGlobeIcon), this._map.off("projectiontransition", this._updateGlobeIcon), this._globeButton.removeEventListener("click", this._toggleProjection), this._map = void 0;
|
|
33528
33528
|
}
|
|
33529
|
-
}, e.Hash = Qi, e.ImageSource = ye, e.KeyboardHandler = Pa, e.LngLatBounds =
|
|
33529
|
+
}, e.Hash = Qi, e.ImageSource = ye, e.KeyboardHandler = Pa, e.LngLatBounds = se, e.LogoControl = Xa, e.Map = so, e.MapLibreMap = so, e.MapMouseEvent = ca, e.MapTouchEvent = la, e.MapWheelEvent = ua, e.Marker = ho, e.NavigationControl = class {
|
|
33530
33530
|
constructor(e) {
|
|
33531
33531
|
this._updateZoomButtons = () => {
|
|
33532
33532
|
let e = this._map.getZoom(), t = e === this._map.getMaxZoom(), n = e === this._map.getMinZoom();
|
|
@@ -33689,9 +33689,9 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33689
33689
|
Se[e] = t;
|
|
33690
33690
|
})(e, n);
|
|
33691
33691
|
})), e.clearPrewarmedResources = function() {
|
|
33692
|
-
let e =
|
|
33693
|
-
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A),
|
|
33694
|
-
}, e.createTileMesh = fn, e.getGlobalDispatcher =
|
|
33692
|
+
let e = N;
|
|
33693
|
+
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), N = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));
|
|
33694
|
+
}, e.createTileMesh = fn, e.getGlobalDispatcher = F, e.getMaxParallelImageRequests = function() {
|
|
33695
33695
|
return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
|
|
33696
33696
|
}, e.getRTLTextPluginStatus = function() {
|
|
33697
33697
|
return De().getRTLTextPluginStatus();
|
|
@@ -33702,11 +33702,11 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33702
33702
|
}, e.getWorkerUrl = function() {
|
|
33703
33703
|
return t.c.WORKER_URL;
|
|
33704
33704
|
}, e.importScriptInWorkers = function(e) {
|
|
33705
|
-
return
|
|
33705
|
+
return F().broadcast("IS", e);
|
|
33706
33706
|
}, e.isTimeFrozen = function() {
|
|
33707
33707
|
return c.isFrozen();
|
|
33708
33708
|
}, e.now = l, e.prewarm = function() {
|
|
33709
|
-
|
|
33709
|
+
ee().acquire(A);
|
|
33710
33710
|
}, e.restoreNow = function() {
|
|
33711
33711
|
c.restoreNow();
|
|
33712
33712
|
}, e.setMaxParallelImageRequests = function(e) {
|
|
@@ -33722,7 +33722,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33722
33722
|
};
|
|
33723
33723
|
})), e;
|
|
33724
33724
|
}));
|
|
33725
|
-
})))(),
|
|
33725
|
+
})))(), F = Uint8Array, ne = Uint16Array, re = Int32Array, ie = new F([
|
|
33726
33726
|
0,
|
|
33727
33727
|
0,
|
|
33728
33728
|
0,
|
|
@@ -33755,7 +33755,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33755
33755
|
0,
|
|
33756
33756
|
0,
|
|
33757
33757
|
0
|
|
33758
|
-
]),
|
|
33758
|
+
]), ae = new F([
|
|
33759
33759
|
0,
|
|
33760
33760
|
0,
|
|
33761
33761
|
0,
|
|
@@ -33788,7 +33788,7 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33788
33788
|
13,
|
|
33789
33789
|
0,
|
|
33790
33790
|
0
|
|
33791
|
-
]),
|
|
33791
|
+
]), oe = new F([
|
|
33792
33792
|
16,
|
|
33793
33793
|
17,
|
|
33794
33794
|
18,
|
|
@@ -33808,37 +33808,37 @@ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(d(), 1), ne = (/* @__P
|
|
|
33808
33808
|
14,
|
|
33809
33809
|
1,
|
|
33810
33810
|
15
|
|
33811
|
-
]),
|
|
33812
|
-
for (var n = new
|
|
33813
|
-
for (var i = new
|
|
33811
|
+
]), se = function(e, t) {
|
|
33812
|
+
for (var n = new ne(31), r = 0; r < 31; ++r) n[r] = t += 1 << e[r - 1];
|
|
33813
|
+
for (var i = new re(n[30]), r = 1; r < 30; ++r) for (var a = n[r]; a < n[r + 1]; ++a) i[a] = a - n[r] << 5 | r;
|
|
33814
33814
|
return {
|
|
33815
33815
|
b: n,
|
|
33816
33816
|
r: i
|
|
33817
33817
|
};
|
|
33818
|
-
}, ce =
|
|
33818
|
+
}, ce = se(ie, 2), le = ce.b, ue = ce.r;
|
|
33819
33819
|
le[28] = 258, ue[258] = 28;
|
|
33820
|
-
var de =
|
|
33820
|
+
var de = se(ae, 0), fe = de.b;
|
|
33821
33821
|
de.r;
|
|
33822
|
-
for (var pe = new
|
|
33822
|
+
for (var pe = new ne(32768), me = 0; me < 32768; ++me) {
|
|
33823
33823
|
var he = (me & 43690) >> 1 | (me & 21845) << 1;
|
|
33824
33824
|
he = (he & 52428) >> 2 | (he & 13107) << 2, he = (he & 61680) >> 4 | (he & 3855) << 4, pe[me] = ((he & 65280) >> 8 | (he & 255) << 8) >> 1;
|
|
33825
33825
|
}
|
|
33826
33826
|
for (var ge = (function(e, t, n) {
|
|
33827
|
-
for (var r = e.length, i = 0, a = new
|
|
33828
|
-
var o = new
|
|
33827
|
+
for (var r = e.length, i = 0, a = new ne(t); i < r; ++i) e[i] && ++a[e[i] - 1];
|
|
33828
|
+
var o = new ne(t);
|
|
33829
33829
|
for (i = 1; i < t; ++i) o[i] = o[i - 1] + a[i - 1] << 1;
|
|
33830
33830
|
var s;
|
|
33831
33831
|
if (n) {
|
|
33832
|
-
s = new
|
|
33832
|
+
s = new ne(1 << t);
|
|
33833
33833
|
var c = 15 - t;
|
|
33834
33834
|
for (i = 0; i < r; ++i) if (e[i]) for (var l = i << 4 | e[i], u = t - e[i], d = o[e[i] - 1]++ << u, f = d | (1 << u) - 1; d <= f; ++d) s[pe[d] >> c] = l;
|
|
33835
|
-
} else for (s = new
|
|
33835
|
+
} else for (s = new ne(r), i = 0; i < r; ++i) e[i] && (s[i] = pe[o[e[i] - 1]++] >> 15 - e[i]);
|
|
33836
33836
|
return s;
|
|
33837
|
-
}), _e = new
|
|
33837
|
+
}), _e = new F(288), me = 0; me < 144; ++me) _e[me] = 8;
|
|
33838
33838
|
for (var me = 144; me < 256; ++me) _e[me] = 9;
|
|
33839
33839
|
for (var me = 256; me < 280; ++me) _e[me] = 7;
|
|
33840
33840
|
for (var me = 280; me < 288; ++me) _e[me] = 8;
|
|
33841
|
-
for (var ve = new
|
|
33841
|
+
for (var ve = new F(32), me = 0; me < 32; ++me) ve[me] = 5;
|
|
33842
33842
|
var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = function(e) {
|
|
33843
33843
|
for (var t = e[0], n = 1; n < e.length; ++n) e[n] > t && (t = e[n]);
|
|
33844
33844
|
return t;
|
|
@@ -33851,7 +33851,7 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
|
|
|
33851
33851
|
}, we = function(e) {
|
|
33852
33852
|
return (e + 7) / 8 | 0;
|
|
33853
33853
|
}, Te = function(e, t, n) {
|
|
33854
|
-
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new
|
|
33854
|
+
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new F(e.subarray(t, n));
|
|
33855
33855
|
}, Ee = [
|
|
33856
33856
|
"unexpected EOF",
|
|
33857
33857
|
"invalid block type",
|
|
@@ -33873,13 +33873,13 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
|
|
|
33873
33873
|
return r;
|
|
33874
33874
|
}, Oe = function(e, t, n, r) {
|
|
33875
33875
|
var i = e.length, a = r ? r.length : 0;
|
|
33876
|
-
if (!i || t.f && !t.l) return n || new
|
|
33876
|
+
if (!i || t.f && !t.l) return n || new F(0);
|
|
33877
33877
|
var o = !n, s = o || t.i != 2, c = t.i;
|
|
33878
|
-
o && (n = new
|
|
33878
|
+
o && (n = new F(i * 3));
|
|
33879
33879
|
var l = function(e) {
|
|
33880
33880
|
var t = n.length;
|
|
33881
33881
|
if (e > t) {
|
|
33882
|
-
var r = new
|
|
33882
|
+
var r = new F(Math.max(t * 2, e));
|
|
33883
33883
|
r.set(n), n = r;
|
|
33884
33884
|
}
|
|
33885
33885
|
}, u = t.f || 0, d = t.p || 0, f = t.b || 0, p = t.l, m = t.d, h = t.m, g = t.n, _ = i * 8;
|
|
@@ -33899,7 +33899,7 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
|
|
|
33899
33899
|
else if (v == 2) {
|
|
33900
33900
|
var S = Se(e, d, 31) + 257, C = Se(e, d + 10, 15) + 4, w = S + Se(e, d + 5, 31) + 1;
|
|
33901
33901
|
d += 14;
|
|
33902
|
-
for (var T = new
|
|
33902
|
+
for (var T = new F(w), E = new F(19), D = 0; D < C; ++D) E[oe[D]] = Se(e, d + D * 3, 7);
|
|
33903
33903
|
d += C * 3;
|
|
33904
33904
|
for (var O = xe(E), k = (1 << O) - 1, A = ge(E, O, 1), D = 0; D < w;) {
|
|
33905
33905
|
var j = A[Se(e, d, k)];
|
|
@@ -33907,12 +33907,12 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
|
|
|
33907
33907
|
var y = j >> 4;
|
|
33908
33908
|
if (y < 16) T[D++] = y;
|
|
33909
33909
|
else {
|
|
33910
|
-
var M = 0,
|
|
33911
|
-
for (y == 16 ? (
|
|
33910
|
+
var M = 0, N = 0;
|
|
33911
|
+
for (y == 16 ? (N = 3 + Se(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + Se(e, d, 7), d += 3) : y == 18 && (N = 11 + Se(e, d, 127), d += 7); N--;) T[D++] = M;
|
|
33912
33912
|
}
|
|
33913
33913
|
}
|
|
33914
|
-
var
|
|
33915
|
-
h = xe(
|
|
33914
|
+
var P = T.subarray(0, S), ee = T.subarray(S);
|
|
33915
|
+
h = xe(P), g = xe(ee), p = ge(P, h, 1), m = ge(ee, g, 1);
|
|
33916
33916
|
} else De(1);
|
|
33917
33917
|
if (d > _) {
|
|
33918
33918
|
c && De(0);
|
|
@@ -33920,28 +33920,28 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
|
|
|
33920
33920
|
}
|
|
33921
33921
|
}
|
|
33922
33922
|
s && l(f + 131072);
|
|
33923
|
-
for (var
|
|
33924
|
-
var M = p[Ce(e, d) &
|
|
33923
|
+
for (var te = (1 << h) - 1, ne = (1 << g) - 1, re = d;; re = d) {
|
|
33924
|
+
var M = p[Ce(e, d) & te], se = M >> 4;
|
|
33925
33925
|
if (d += M & 15, d > _) {
|
|
33926
33926
|
c && De(0);
|
|
33927
33927
|
break;
|
|
33928
33928
|
}
|
|
33929
|
-
if (M || De(2),
|
|
33930
|
-
else if (
|
|
33931
|
-
|
|
33929
|
+
if (M || De(2), se < 256) n[f++] = se;
|
|
33930
|
+
else if (se == 256) {
|
|
33931
|
+
re = d, p = null;
|
|
33932
33932
|
break;
|
|
33933
33933
|
} else {
|
|
33934
|
-
var ce =
|
|
33935
|
-
if (
|
|
33936
|
-
var D =
|
|
33934
|
+
var ce = se - 254;
|
|
33935
|
+
if (se > 264) {
|
|
33936
|
+
var D = se - 257, ue = ie[D];
|
|
33937
33937
|
ce = Se(e, d, (1 << ue) - 1) + le[D], d += ue;
|
|
33938
33938
|
}
|
|
33939
|
-
var de = m[Ce(e, d) &
|
|
33939
|
+
var de = m[Ce(e, d) & ne], pe = de >> 4;
|
|
33940
33940
|
de || De(3), d += de & 15;
|
|
33941
|
-
var
|
|
33941
|
+
var ee = fe[pe];
|
|
33942
33942
|
if (pe > 3) {
|
|
33943
|
-
var ue =
|
|
33944
|
-
|
|
33943
|
+
var ue = ae[pe];
|
|
33944
|
+
ee += Ce(e, d) & (1 << ue) - 1, d += ue;
|
|
33945
33945
|
}
|
|
33946
33946
|
if (d > _) {
|
|
33947
33947
|
c && De(0);
|
|
@@ -33949,17 +33949,17 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
|
|
|
33949
33949
|
}
|
|
33950
33950
|
s && l(f + 131072);
|
|
33951
33951
|
var me = f + ce;
|
|
33952
|
-
if (f <
|
|
33953
|
-
var he = a -
|
|
33952
|
+
if (f < ee) {
|
|
33953
|
+
var he = a - ee, _e = Math.min(ee, me);
|
|
33954
33954
|
for (he + f < 0 && De(3); f < _e; ++f) n[f] = r[he + f];
|
|
33955
33955
|
}
|
|
33956
|
-
for (; f < me; ++f) n[f] = n[f -
|
|
33956
|
+
for (; f < me; ++f) n[f] = n[f - ee];
|
|
33957
33957
|
}
|
|
33958
33958
|
}
|
|
33959
|
-
t.l = p, t.p =
|
|
33959
|
+
t.l = p, t.p = re, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
|
|
33960
33960
|
} while (!u);
|
|
33961
33961
|
return f != n.length && o ? Te(n, 0, f) : n.subarray(0, f);
|
|
33962
|
-
}, ke = /*#__PURE__*/ new
|
|
33962
|
+
}, ke = /*#__PURE__*/ new F(0), Ae = function(e) {
|
|
33963
33963
|
(e[0] != 31 || e[1] != 139 || e[2] != 8) && De(6, "invalid gzip data");
|
|
33964
33964
|
var t = e[3], n = 10;
|
|
33965
33965
|
t & 4 && (n += (e[10] | e[11] << 8) + 2);
|
|
@@ -33976,7 +33976,7 @@ function Ne(e, t) {
|
|
|
33976
33976
|
}
|
|
33977
33977
|
function Pe(e, t) {
|
|
33978
33978
|
var n = Ae(e);
|
|
33979
|
-
return n + 8 > e.length && De(6, "invalid gzip data"), Oe(e.subarray(n, -8), { i: 2 }, t && t.out || new
|
|
33979
|
+
return n + 8 > e.length && De(6, "invalid gzip data"), Oe(e.subarray(n, -8), { i: 2 }, t && t.out || new F(je(e)), t && t.dictionary);
|
|
33980
33980
|
}
|
|
33981
33981
|
function Fe(e, t) {
|
|
33982
33982
|
return Oe(e.subarray(Me(e, t && t.dictionary), -4), { i: 2 }, t && t.out, t && t.dictionary);
|
|
@@ -34568,26 +34568,26 @@ function St() {
|
|
|
34568
34568
|
if (!mt) {
|
|
34569
34569
|
mt = new He();
|
|
34570
34570
|
try {
|
|
34571
|
-
(0,
|
|
34571
|
+
(0, te.addProtocol)("pmtiles", mt.tile);
|
|
34572
34572
|
} catch (e) {
|
|
34573
34573
|
console.warn("Maplibre PMTiles protocol registration failed.", e);
|
|
34574
34574
|
}
|
|
34575
34575
|
}
|
|
34576
34576
|
}
|
|
34577
|
-
function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOptions: i, onRendererReady: a, onMapDimLayerReady:
|
|
34578
|
-
let
|
|
34577
|
+
function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOptions: i, onRendererReady: a, onMapDimLayerReady: o, onMapLoadError: s }) {
|
|
34578
|
+
let c = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(a), p = (0, P.useRef)(o), m = (0, P.useRef)(s), h = (0, P.useRef)({
|
|
34579
34579
|
sceneDef: e,
|
|
34580
34580
|
geoConfig: t,
|
|
34581
34581
|
staticTransform: n,
|
|
34582
34582
|
tileSource: r,
|
|
34583
34583
|
mapOptions: i
|
|
34584
34584
|
});
|
|
34585
|
-
return (0,
|
|
34586
|
-
f.current = a, p.current =
|
|
34587
|
-
}), (0,
|
|
34585
|
+
return (0, P.useEffect)(() => {
|
|
34586
|
+
f.current = a, p.current = o, m.current = s;
|
|
34587
|
+
}), (0, P.useEffect)(() => {
|
|
34588
34588
|
var e, t;
|
|
34589
|
-
if (!
|
|
34590
|
-
let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions:
|
|
34589
|
+
if (!c.current) return;
|
|
34590
|
+
let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } = h.current, s = !1, g = { ...n };
|
|
34591
34591
|
g.rootLayer = { ...n.rootLayer };
|
|
34592
34592
|
let _ = n.rootLayer.children;
|
|
34593
34593
|
g.rootLayer.children = _.filter((e) => {
|
|
@@ -34603,16 +34603,16 @@ function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34603
34603
|
} : {
|
|
34604
34604
|
center: r.center,
|
|
34605
34605
|
zoom: r.zoom
|
|
34606
|
-
}, y = new
|
|
34607
|
-
container:
|
|
34606
|
+
}, y = new te.Map({
|
|
34607
|
+
container: c.current,
|
|
34608
34608
|
style: a.style,
|
|
34609
34609
|
...v,
|
|
34610
34610
|
bearing: r.bearing,
|
|
34611
|
-
pitch: (e =
|
|
34612
|
-
maxPitch: (t =
|
|
34613
|
-
minZoom:
|
|
34614
|
-
maxZoom:
|
|
34615
|
-
maxBounds:
|
|
34611
|
+
pitch: (e = o == null ? void 0 : o.pitch) == null ? 30 : e,
|
|
34612
|
+
maxPitch: (t = o == null ? void 0 : o.maxPitch) == null ? 70 : t,
|
|
34613
|
+
minZoom: o == null ? void 0 : o.minZoom,
|
|
34614
|
+
maxZoom: o == null ? void 0 : o.maxZoom,
|
|
34615
|
+
maxBounds: o == null ? void 0 : o.maxBounds,
|
|
34616
34616
|
canvasContextAttributes: { antialias: !0 }
|
|
34617
34617
|
});
|
|
34618
34618
|
r.zoomAdjustment && y.jumpTo({ zoom: y.getZoom() + r.zoomAdjustment }), u.current = y, y.once("error", (e) => {
|
|
@@ -34625,12 +34625,12 @@ function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34625
34625
|
renderingMode: "3d",
|
|
34626
34626
|
onAdd(e, t) {
|
|
34627
34627
|
var n;
|
|
34628
|
-
if (
|
|
34629
|
-
let r = new
|
|
34628
|
+
if (s) return;
|
|
34629
|
+
let r = new l({
|
|
34630
34630
|
canvas: y.getCanvas(),
|
|
34631
34631
|
gl: t
|
|
34632
34632
|
});
|
|
34633
|
-
if (
|
|
34633
|
+
if (s) {
|
|
34634
34634
|
r.dispose();
|
|
34635
34635
|
return;
|
|
34636
34636
|
}
|
|
@@ -34662,10 +34662,10 @@ function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34662
34662
|
};
|
|
34663
34663
|
return y.on("style.load", x), () => {
|
|
34664
34664
|
var e;
|
|
34665
|
-
|
|
34665
|
+
s = !0, y.off("style.load", x), (e = d.current) == null || e.dispose(), d.current = null, y.remove(), u.current = null;
|
|
34666
34666
|
};
|
|
34667
34667
|
}, []), /* @__PURE__ */ (0, ut.jsx)("div", {
|
|
34668
|
-
ref:
|
|
34668
|
+
ref: c,
|
|
34669
34669
|
style: {
|
|
34670
34670
|
position: "absolute",
|
|
34671
34671
|
top: 0,
|
|
@@ -34678,26 +34678,26 @@ function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34678
34678
|
var wt = .02, Tt = .15;
|
|
34679
34679
|
function Et(e) {
|
|
34680
34680
|
let t = [
|
|
34681
|
-
[
|
|
34682
|
-
[
|
|
34683
|
-
[
|
|
34684
|
-
[
|
|
34685
|
-
].map(([t, n]) =>
|
|
34681
|
+
[u.x1, u.y1],
|
|
34682
|
+
[u.x2, u.y1],
|
|
34683
|
+
[u.x2, u.y2],
|
|
34684
|
+
[u.x1, u.y2]
|
|
34685
|
+
].map(([t, n]) => p(t, n, e));
|
|
34686
34686
|
if (!t.every(([e, t]) => Number.isFinite(e) && Number.isFinite(t))) return;
|
|
34687
34687
|
let n = t.map(([e]) => e), r = t.map(([, e]) => e), i = Math.min(...n), a = Math.max(...n), o = Math.min(...r), s = Math.max(...r), c = Math.max((a - i) * 3, wt), l = Math.max((s - o) * 3, wt);
|
|
34688
34688
|
return [[i - c, o - l], [a + c, s + l]];
|
|
34689
34689
|
}
|
|
34690
34690
|
function Dt(e, t) {
|
|
34691
34691
|
let n = [
|
|
34692
|
-
|
|
34693
|
-
|
|
34694
|
-
|
|
34695
|
-
|
|
34692
|
+
p(e.x1, e.y1, t),
|
|
34693
|
+
p(e.x2, e.y1, t),
|
|
34694
|
+
p(e.x2, e.y2, t),
|
|
34695
|
+
p(e.x1, e.y2, t)
|
|
34696
34696
|
], r = n.map(([e]) => e), i = n.map(([, e]) => e);
|
|
34697
34697
|
return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
|
|
34698
34698
|
}
|
|
34699
34699
|
function Ot(e = 0) {
|
|
34700
|
-
let t =
|
|
34700
|
+
let t = _.canvasVisibleRectPx, n = _.screenSize;
|
|
34701
34701
|
return !t || !n ? {
|
|
34702
34702
|
top: e,
|
|
34703
34703
|
bottom: e,
|
|
@@ -34712,8 +34712,8 @@ function Ot(e = 0) {
|
|
|
34712
34712
|
}
|
|
34713
34713
|
function kt() {
|
|
34714
34714
|
var e, t;
|
|
34715
|
-
if (!(!(
|
|
34716
|
-
let n =
|
|
34715
|
+
if (!(!(y == null || (e = y.properties) == null) && e.config)) return null;
|
|
34716
|
+
let n = y.properties.config;
|
|
34717
34717
|
return {
|
|
34718
34718
|
center: [(n.p0.lng + n.p2.lng) / 2, (n.p0.lat + n.p2.lat) / 2],
|
|
34719
34719
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
@@ -34733,7 +34733,7 @@ function At(e, t, n, r = {}) {
|
|
|
34733
34733
|
}
|
|
34734
34734
|
//#endregion
|
|
34735
34735
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34736
|
-
var jt =
|
|
34736
|
+
var jt = _;
|
|
34737
34737
|
function Mt(e, t) {
|
|
34738
34738
|
C(() => jt.moveToBooths, (n) => {
|
|
34739
34739
|
let r = e.current;
|
|
@@ -34741,7 +34741,7 @@ function Mt(e, t) {
|
|
|
34741
34741
|
let i = n.filter((e) => e.rect);
|
|
34742
34742
|
if (i.length === 0) return;
|
|
34743
34743
|
let a = i.map((e) => e.rect);
|
|
34744
|
-
At(r,
|
|
34744
|
+
At(r, d.fromMultiple(a), t), jt.moveToBooths = null;
|
|
34745
34745
|
}), C(() => jt.moveToRect, (n) => {
|
|
34746
34746
|
let r = e.current;
|
|
34747
34747
|
!n || !r || !t || (At(r, n, t), jt.moveToRect = null);
|
|
@@ -34752,25 +34752,25 @@ function Mt(e, t) {
|
|
|
34752
34752
|
animate: !0,
|
|
34753
34753
|
duration: 500
|
|
34754
34754
|
}), jt.zoomBy = null);
|
|
34755
|
-
}), C(() =>
|
|
34756
|
-
let r = e.current, i =
|
|
34755
|
+
}), C(() => _.moveToLocation, (n) => {
|
|
34756
|
+
let r = e.current, i = h.routeStore.currentPosition;
|
|
34757
34757
|
if (!n || !r || !i) return;
|
|
34758
34758
|
let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o), c;
|
|
34759
34759
|
if (s) c = [a, o];
|
|
34760
34760
|
else {
|
|
34761
34761
|
if (!t) return;
|
|
34762
|
-
c =
|
|
34762
|
+
c = p(i.x, i.y, t.gpsConfig);
|
|
34763
34763
|
}
|
|
34764
34764
|
r.flyTo({
|
|
34765
34765
|
center: c,
|
|
34766
34766
|
animate: !0,
|
|
34767
34767
|
duration: 1e3
|
|
34768
34768
|
}), r.once("moveend", () => {
|
|
34769
|
-
|
|
34769
|
+
_.moveToLocation = !1;
|
|
34770
34770
|
});
|
|
34771
|
-
}), C(() =>
|
|
34771
|
+
}), C(() => _.centerMap, (n) => {
|
|
34772
34772
|
let r = e.current;
|
|
34773
|
-
!n || !r || !t || (
|
|
34773
|
+
!n || !r || !t || (_.list.type === "search" && !_.list.text || At(r, h.layerStore.rectangle || u, t, { padding: 0 }), _.centerMap = !1);
|
|
34774
34774
|
});
|
|
34775
34775
|
}
|
|
34776
34776
|
//#endregion
|
|
@@ -34802,18 +34802,18 @@ function W(e, t, n = !1) {
|
|
|
34802
34802
|
}
|
|
34803
34803
|
function Rt() {
|
|
34804
34804
|
var e, t;
|
|
34805
|
-
let n = (e = (t =
|
|
34805
|
+
let n = (e = (t = h.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
|
|
34806
34806
|
return n != null && n.style ? { style: n.style } : n != null && n.styleUrl ? { style: n.styleUrl } : Nt;
|
|
34807
34807
|
}
|
|
34808
34808
|
//#endregion
|
|
34809
34809
|
//#region src/components/Maplibre/useDimming.ts
|
|
34810
34810
|
function zt(e, t) {
|
|
34811
|
-
let n = (0,
|
|
34812
|
-
(0,
|
|
34811
|
+
let n = (0, P.useRef)(t);
|
|
34812
|
+
(0, P.useEffect)(() => {
|
|
34813
34813
|
n.current = t;
|
|
34814
34814
|
}, [t]);
|
|
34815
|
-
let r = (0,
|
|
34816
|
-
return (0,
|
|
34815
|
+
let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
|
|
34816
|
+
return (0, P.useEffect)(() => {
|
|
34817
34817
|
let t = w((t) => {
|
|
34818
34818
|
It(e.current, t * A);
|
|
34819
34819
|
}), a = w((e) => {
|
|
@@ -34822,15 +34822,15 @@ function zt(e, t) {
|
|
|
34822
34822
|
return r.current = t, i.current = a, () => {
|
|
34823
34823
|
t.stop(), a.stop(), r.current = null, i.current = null;
|
|
34824
34824
|
};
|
|
34825
|
-
}, [e]), C(() =>
|
|
34825
|
+
}, [e]), C(() => _.dimmed, (e) => {
|
|
34826
34826
|
var t, n;
|
|
34827
34827
|
(t = r.current) == null || t.setTarget(e), (n = i.current) == null || n.setTarget(e);
|
|
34828
34828
|
}), {
|
|
34829
34829
|
mapDimAnimatorRef: r,
|
|
34830
34830
|
venueDimAnimatorRef: i,
|
|
34831
|
-
handleMapDimLayerReady: (0,
|
|
34831
|
+
handleMapDimLayerReady: (0, P.useCallback)((e) => {
|
|
34832
34832
|
var t, n;
|
|
34833
|
-
It(e, ((t = (n = r.current) == null ? void 0 : n.getValue()) == null ? +!!
|
|
34833
|
+
It(e, ((t = (n = r.current) == null ? void 0 : n.getValue()) == null ? +!!_.dimmed : t) * A);
|
|
34834
34834
|
}, [])
|
|
34835
34835
|
};
|
|
34836
34836
|
}
|
|
@@ -34847,7 +34847,7 @@ function Bt(e, t = /* @__PURE__ */ new Map()) {
|
|
|
34847
34847
|
return t;
|
|
34848
34848
|
}
|
|
34849
34849
|
function Vt(e) {
|
|
34850
|
-
return e != null && e.shape ?
|
|
34850
|
+
return e != null && e.shape ? b.booths.find((t) => {
|
|
34851
34851
|
var n;
|
|
34852
34852
|
return (n = t.shapes) == null ? void 0 : n.some((t) => t.shape === e.shape);
|
|
34853
34853
|
}) : null;
|
|
@@ -34855,8 +34855,8 @@ function Vt(e) {
|
|
|
34855
34855
|
//#endregion
|
|
34856
34856
|
//#region src/components/Maplibre/useLayerVisibilitySync.ts
|
|
34857
34857
|
function G(e, t, n) {
|
|
34858
|
-
let r = (0,
|
|
34859
|
-
C(() =>
|
|
34858
|
+
let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
|
|
34859
|
+
C(() => h.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
|
|
34860
34860
|
var a, o;
|
|
34861
34861
|
let s = e.scene;
|
|
34862
34862
|
if (!s) return;
|
|
@@ -34865,7 +34865,7 @@ function G(e, t, n) {
|
|
|
34865
34865
|
defsByName: Bt(s.rootLayer)
|
|
34866
34866
|
});
|
|
34867
34867
|
let c = r.current.defsByName, l = [];
|
|
34868
|
-
for (let e of
|
|
34868
|
+
for (let e of h.layerStore.layers) {
|
|
34869
34869
|
let t = c.get(e.name);
|
|
34870
34870
|
if (t != null && t.length) for (let n of t) {
|
|
34871
34871
|
let t = !e.visible;
|
|
@@ -34873,42 +34873,42 @@ function G(e, t, n) {
|
|
|
34873
34873
|
}
|
|
34874
34874
|
}
|
|
34875
34875
|
l.length && e.update(...l);
|
|
34876
|
-
let u =
|
|
34876
|
+
let u = h.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
|
|
34877
34877
|
!u || i.current === u.name || (i.current = u.name, At(t.current, (o = u.viewbox) == null ? u.rect : o, n));
|
|
34878
34878
|
});
|
|
34879
34879
|
}
|
|
34880
34880
|
//#endregion
|
|
34881
34881
|
//#region src/components/Maplibre/useRendererEvents.ts
|
|
34882
|
-
var Ht =
|
|
34882
|
+
var Ht = _;
|
|
34883
34883
|
function Ut(e, t) {
|
|
34884
|
-
(0,
|
|
34884
|
+
(0, P.useEffect)(() => {
|
|
34885
34885
|
if (!e) return;
|
|
34886
34886
|
let n = ({ data: e }) => {
|
|
34887
|
-
if (
|
|
34887
|
+
if (_.setKioskModeEnabled) return;
|
|
34888
34888
|
let { point: t, defs: n } = s(e), r = O(t.x, t.y), i = Vt(n[0]);
|
|
34889
34889
|
Ht.hoveredBooth = r || i;
|
|
34890
34890
|
}, r = () => {
|
|
34891
|
-
|
|
34891
|
+
_.setKioskModeEnabled || (Ht.hoveredBooth = null);
|
|
34892
34892
|
}, i = ({ data: e }) => {
|
|
34893
34893
|
var n, r;
|
|
34894
|
-
if (!(
|
|
34895
|
-
(n = (r = window).__resett) == null || n.call(r),
|
|
34894
|
+
if (!(_ != null && _.rootElement)) return;
|
|
34895
|
+
(n = (r = window).__resett) == null || n.call(r), _.overlayPosition === "bottom" && _.overlaySize === "full" && h.showMap();
|
|
34896
34896
|
let { point: i, defs: a } = s(e), { x: o, y: c } = i;
|
|
34897
|
-
if (
|
|
34898
|
-
let e =
|
|
34899
|
-
|
|
34897
|
+
if (_.onGetCoordsClick) {
|
|
34898
|
+
let e = h.layerStore.layers.find((e) => e.visible && (e.mode === x.TurnedOn || e.mode === x.TurnedOff));
|
|
34899
|
+
_.onGetCoordsClick({
|
|
34900
34900
|
x: o,
|
|
34901
34901
|
y: c,
|
|
34902
34902
|
z: (e == null ? void 0 : e.name) || null
|
|
34903
34903
|
});
|
|
34904
34904
|
}
|
|
34905
|
-
if (
|
|
34906
|
-
if (
|
|
34907
|
-
let e =
|
|
34908
|
-
|
|
34905
|
+
if (_.setKioskModeEnabled) return;
|
|
34906
|
+
if (_.onMarkerClick) {
|
|
34907
|
+
let e = N(o, c, t.scale);
|
|
34908
|
+
_.onMarkerClick(e);
|
|
34909
34909
|
}
|
|
34910
|
-
let l = O(i.x, i.y),
|
|
34911
|
-
|
|
34910
|
+
let l = O(i.x, i.y), u = Vt(a[0]);
|
|
34911
|
+
h.clickBooth(l || u);
|
|
34912
34912
|
}, a = () => {
|
|
34913
34913
|
var e, t;
|
|
34914
34914
|
return (e = (t = window).__resett) == null ? void 0 : e.call(t);
|
|
@@ -34921,7 +34921,7 @@ function Ut(e, t) {
|
|
|
34921
34921
|
//#endregion
|
|
34922
34922
|
//#region src/components/Maplibre/useWayfindingAndMarkers.ts
|
|
34923
34923
|
function Wt(e, t) {
|
|
34924
|
-
(0,
|
|
34924
|
+
(0, P.useEffect)(() => {
|
|
34925
34925
|
if (!e) return;
|
|
34926
34926
|
let n = M(t), r = D(t);
|
|
34927
34927
|
return () => {
|
|
@@ -34941,7 +34941,7 @@ function Jt(e, t) {
|
|
|
34941
34941
|
], o = [], s = [], c = [];
|
|
34942
34942
|
for (let e of a) {
|
|
34943
34943
|
Xt(e), s.push([e.x, e.y]);
|
|
34944
|
-
let t =
|
|
34944
|
+
let t = te.MercatorCoordinate.fromLngLat([e.lng, e.lat], 0), n = t.meterInMercatorCoordinateUnits();
|
|
34945
34945
|
Zt(t.x), Zt(t.y), Zt(n), o.push(n), c.push([t.x, t.y]);
|
|
34946
34946
|
}
|
|
34947
34947
|
let l = [], u = [];
|
|
@@ -35043,9 +35043,9 @@ function rn(e, t) {
|
|
|
35043
35043
|
var an = "routes-api.expofp.com";
|
|
35044
35044
|
function on() {
|
|
35045
35045
|
i(() => {
|
|
35046
|
-
|
|
35046
|
+
h.layerStore.layers.forEach((e) => {
|
|
35047
35047
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35048
|
-
}),
|
|
35048
|
+
}), h.layerStore.layersLoaded = !1;
|
|
35049
35049
|
});
|
|
35050
35050
|
}
|
|
35051
35051
|
function sn(e, t) {
|
|
@@ -35053,74 +35053,74 @@ function sn(e, t) {
|
|
|
35053
35053
|
for (let r of e.rollRegistry.invoke(t)) Array.isArray(r) ? n.push(...r) : n.push(r);
|
|
35054
35054
|
n.length && e.update(...n);
|
|
35055
35055
|
}
|
|
35056
|
-
var K =
|
|
35057
|
-
let [t, n] = (0,
|
|
35058
|
-
center:
|
|
35059
|
-
bearing:
|
|
35060
|
-
zoom:
|
|
35061
|
-
bounds: Dt(
|
|
35056
|
+
var K = f(function({ viewMode: e }) {
|
|
35057
|
+
let [t, n] = (0, P.useState)(null), [r, i] = (0, P.useState)(null), s = h.rendererService, l = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useMemo)(() => kt(), []), y = (0, P.useMemo)(() => m ? {
|
|
35058
|
+
center: m.center,
|
|
35059
|
+
bearing: m.bearing,
|
|
35060
|
+
zoom: m.zoom,
|
|
35061
|
+
bounds: Dt(u, m.gpsConfig),
|
|
35062
35062
|
fitPadding: Ot(0),
|
|
35063
35063
|
zoomAdjustment: Tt
|
|
35064
|
-
} : null, [
|
|
35064
|
+
} : null, [m]), b = (0, P.useMemo)(() => {
|
|
35065
35065
|
var e;
|
|
35066
|
-
return
|
|
35067
|
-
}, [
|
|
35066
|
+
return m ? Jt(m.gpsConfig, (e = g()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35067
|
+
}, [m]), x = (0, P.useMemo)(() => ({
|
|
35068
35068
|
...e === "map2d" ? Ft : Pt,
|
|
35069
|
-
maxBounds:
|
|
35070
|
-
}), [
|
|
35071
|
-
(0,
|
|
35072
|
-
if (!
|
|
35069
|
+
maxBounds: m ? Et(m.gpsConfig) : void 0
|
|
35070
|
+
}), [m, e]), C = (0, P.useRef)(x), w = (0, P.useMemo)(() => Rt(), []), { mapDimAnimatorRef: E, venueDimAnimatorRef: D, handleMapDimLayerReady: O } = zt(d, s);
|
|
35071
|
+
(0, P.useEffect)(() => {
|
|
35072
|
+
if (!m) return;
|
|
35073
35073
|
let e = !1;
|
|
35074
35074
|
on();
|
|
35075
|
-
let t = T(
|
|
35075
|
+
let t = T(s).then((t) => {
|
|
35076
35076
|
if (e) return;
|
|
35077
|
-
let r = (0,
|
|
35078
|
-
n(
|
|
35077
|
+
let r = (0, ee.default)(v.backgroundColor === "none" ? "#ebebeb" : v.backgroundColor).string();
|
|
35078
|
+
n(o(t, a.fromCoreRect(u), r));
|
|
35079
35079
|
}).catch((t) => {
|
|
35080
35080
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35081
|
-
}), r = E.current,
|
|
35081
|
+
}), r = E.current, c = D.current;
|
|
35082
35082
|
return () => {
|
|
35083
35083
|
var n;
|
|
35084
35084
|
e = !0, on();
|
|
35085
|
-
let
|
|
35086
|
-
t.finally(() =>
|
|
35085
|
+
let a = l.current;
|
|
35086
|
+
t.finally(() => s.disposeIfCurrent(a)), (n = f.current) == null || n.call(f), f.current = null, l.current = null, d.current = null, p.current = null, i(null), r == null || r.stop(), c == null || c.stop(), _.sceneDefReady = !1;
|
|
35087
35087
|
};
|
|
35088
35088
|
}, [
|
|
35089
|
-
|
|
35089
|
+
m,
|
|
35090
35090
|
E,
|
|
35091
|
-
|
|
35091
|
+
s,
|
|
35092
35092
|
D
|
|
35093
35093
|
]);
|
|
35094
|
-
let A = (0,
|
|
35095
|
-
var
|
|
35096
|
-
|
|
35097
|
-
let
|
|
35098
|
-
t.on("rotate",
|
|
35099
|
-
t.off("rotate",
|
|
35100
|
-
},
|
|
35101
|
-
let
|
|
35102
|
-
|
|
35094
|
+
let A = (0, P.useCallback)((e, t, n, r) => {
|
|
35095
|
+
var a, o, u;
|
|
35096
|
+
l.current = e, d.current = t, p.current = r, i(e), s.attach(e, n, r), W(t, C.current), (a = E.current) == null || a.setTarget(_.dimmed, { immediate: !0 }), (o = D.current) == null || o.setTarget(_.dimmed, { immediate: !0 }), (u = f.current) == null || u.call(f);
|
|
35097
|
+
let m = () => sn(s, S(t.getBearing()));
|
|
35098
|
+
t.on("rotate", m), t.on("rotateend", m), f.current = () => {
|
|
35099
|
+
t.off("rotate", m), t.off("rotateend", m);
|
|
35100
|
+
}, c(s);
|
|
35101
|
+
let g = s.ptScaleRegistry.invoke(s.scale || 1);
|
|
35102
|
+
g.length && s.update(...g), sn(s, S(t.getBearing())), h.layerStore.layersLoaded = !0, h.fp.onFpConfigured && h.fp.onFpConfigured(), _.sceneDefReady = !0, r();
|
|
35103
35103
|
}, [
|
|
35104
|
-
|
|
35104
|
+
s,
|
|
35105
35105
|
E,
|
|
35106
35106
|
D
|
|
35107
35107
|
]);
|
|
35108
|
-
(0,
|
|
35109
|
-
C.current = x, W(
|
|
35110
|
-
}, [x]), Ut(r,
|
|
35111
|
-
enabled:
|
|
35112
|
-
rendererService:
|
|
35108
|
+
(0, P.useEffect)(() => {
|
|
35109
|
+
C.current = x, W(d.current, x, !0);
|
|
35110
|
+
}, [x]), Ut(r, s), Wt(r, s), G(s, d, m), Mt(d, m), j({
|
|
35111
|
+
enabled: h.layerStore.layersLoaded && _.buildRoute,
|
|
35112
|
+
rendererService: s
|
|
35113
35113
|
}), k({
|
|
35114
|
-
permission:
|
|
35115
|
-
rendererService:
|
|
35116
|
-
dataJsonUrl: `https://${an}/v1/routes?expo=${
|
|
35117
|
-
websocketUrl: `wss://${an}/locations?expo=${
|
|
35114
|
+
permission: h.layerStore.layersLoaded,
|
|
35115
|
+
rendererService: s,
|
|
35116
|
+
dataJsonUrl: `https://${an}/v1/routes?expo=${v.EXPO}`,
|
|
35117
|
+
websocketUrl: `wss://${an}/locations?expo=${v.EXPO}`
|
|
35118
35118
|
});
|
|
35119
|
-
let M = (0,
|
|
35120
|
-
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e),
|
|
35119
|
+
let M = (0, P.useCallback)((e) => {
|
|
35120
|
+
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), h.maplibreStore.deactivateMaplibre();
|
|
35121
35121
|
}, []);
|
|
35122
|
-
if (!
|
|
35123
|
-
let
|
|
35122
|
+
if (!m || !y || !b || !t) return null;
|
|
35123
|
+
let N = `${y.center.join(",")}:${y.bearing}:${y.zoom}`;
|
|
35124
35124
|
return /* @__PURE__ */ (0, ut.jsx)(Ct, {
|
|
35125
35125
|
sceneDef: t,
|
|
35126
35126
|
geoConfig: y,
|
|
@@ -35130,7 +35130,7 @@ var K = b(function({ viewMode: e }) {
|
|
|
35130
35130
|
onRendererReady: A,
|
|
35131
35131
|
onMapDimLayerReady: O,
|
|
35132
35132
|
onMapLoadError: M
|
|
35133
|
-
},
|
|
35133
|
+
}, N);
|
|
35134
35134
|
});
|
|
35135
35135
|
//#endregion
|
|
35136
35136
|
export { K as default };
|