@opengis/partsmap 0.0.55 → 0.0.57
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/PartsMap.js +440 -438
- package/dist/PartsMap.umd.cjs +14 -14
- package/package.json +1 -1
package/dist/PartsMap.js
CHANGED
@@ -7,12 +7,12 @@ function yc(g, w, P) {
|
|
7
7
|
g = $d(g * P), w = $d(w * P);
|
8
8
|
var E = (g - w) * 2;
|
9
9
|
E < 0 && (E = -E - 1);
|
10
|
-
for (var
|
11
|
-
|
12
|
-
return
|
10
|
+
for (var V = ""; E >= 32; )
|
11
|
+
V += String.fromCharCode((32 | E & 31) + 63), E /= 32;
|
12
|
+
return V += String.fromCharCode((E | 0) + 63), V;
|
13
13
|
}
|
14
14
|
$s.decode = function(g, w) {
|
15
|
-
for (var P = 0, E = 0,
|
15
|
+
for (var P = 0, E = 0, V = 0, X = [], T = 0, c = 0, _e = null, xe, ve, ae = Math.pow(10, Number.isInteger(w) ? w : 5); P < g.length; ) {
|
16
16
|
_e = null, T = 1, c = 0;
|
17
17
|
do
|
18
18
|
_e = g.charCodeAt(P++) - 63, c += (_e & 31) * T, T *= 32;
|
@@ -21,15 +21,15 @@ $s.decode = function(g, w) {
|
|
21
21
|
do
|
22
22
|
_e = g.charCodeAt(P++) - 63, c += (_e & 31) * T, T *= 32;
|
23
23
|
while (_e >= 32);
|
24
|
-
ve = c & 1 ? (-c - 1) / 2 : c / 2, E += xe,
|
24
|
+
ve = c & 1 ? (-c - 1) / 2 : c / 2, E += xe, V += ve, X.push([E / ae, V / ae]);
|
25
25
|
}
|
26
26
|
return X;
|
27
27
|
};
|
28
28
|
$s.encode = function(g, w) {
|
29
29
|
if (!g.length)
|
30
30
|
return "";
|
31
|
-
for (var P = Math.pow(10, Number.isInteger(w) ? w : 5), E = yc(g[0][0], 0, P) + yc(g[0][1], 0, P),
|
32
|
-
var X = g[
|
31
|
+
for (var P = Math.pow(10, Number.isInteger(w) ? w : 5), E = yc(g[0][0], 0, P) + yc(g[0][1], 0, P), V = 1; V < g.length; V++) {
|
32
|
+
var X = g[V], T = g[V - 1];
|
33
33
|
E += yc(X[0], T[0], P), E += yc(X[1], T[1], P);
|
34
34
|
}
|
35
35
|
return E;
|
@@ -67,13 +67,13 @@ var cp = { exports: {} };
|
|
67
67
|
g.exports = E();
|
68
68
|
})(Um, function() {
|
69
69
|
var P = {}, E = {};
|
70
|
-
function
|
70
|
+
function V(T, c, _e) {
|
71
71
|
if (E[T] = _e, T === "index") {
|
72
72
|
var xe = "var sharedModule = {}; (" + E.shared + ")(sharedModule); (" + E.worker + ")(sharedModule);", ve = {};
|
73
73
|
return E.shared(ve), E.index(P, ve), typeof window < "u" && P.setWorkerUrl(window.URL.createObjectURL(new Blob([xe], { type: "text/javascript" }))), P;
|
74
74
|
}
|
75
75
|
}
|
76
|
-
|
76
|
+
V("shared", ["exports"], function(T) {
|
77
77
|
function c(i, e, r, s) {
|
78
78
|
return new (r || (r = Promise))(function(l, d) {
|
79
79
|
function p(x) {
|
@@ -3690,7 +3690,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3690
3690
|
}
|
3691
3691
|
}
|
3692
3692
|
B.prototype.bytesPerElement = 8, Fe("StructArrayLayout4i8", B);
|
3693
|
-
class
|
3693
|
+
class N extends v {
|
3694
3694
|
_refreshViews() {
|
3695
3695
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
3696
3696
|
}
|
@@ -3703,7 +3703,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3703
3703
|
return this.int16[_ + 0] = r, this.int16[_ + 1] = s, this.int16[_ + 2] = l, this.int16[_ + 3] = d, this.int16[_ + 4] = p, this.int16[_ + 5] = f, e;
|
3704
3704
|
}
|
3705
3705
|
}
|
3706
|
-
|
3706
|
+
N.prototype.bytesPerElement = 12, Fe("StructArrayLayout2i4i12", N);
|
3707
3707
|
class Z extends v {
|
3708
3708
|
_refreshViews() {
|
3709
3709
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
@@ -4231,7 +4231,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4231
4231
|
}
|
4232
4232
|
class Wn extends C {
|
4233
4233
|
}
|
4234
|
-
class Pn extends
|
4234
|
+
class Pn extends N {
|
4235
4235
|
}
|
4236
4236
|
class Io extends Z {
|
4237
4237
|
}
|
@@ -8215,7 +8215,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8215
8215
|
}, T.o = Za, T.p = Xu, T.q = o, T.r = Gc, T.s = pn, T.t = Ma, T.u = ze, T.v = he, T.w = hi, T.x = Rr, T.y = function([i, e, r]) {
|
8216
8216
|
return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: i * Math.cos(e) * Math.sin(r), y: i * Math.sin(e) * Math.sin(r), z: i * Math.cos(r) };
|
8217
8217
|
}, T.z = $i;
|
8218
|
-
}),
|
8218
|
+
}), V("worker", ["./shared"], function(T) {
|
8219
8219
|
class c {
|
8220
8220
|
constructor(z) {
|
8221
8221
|
this.keyCache = {}, z && this.replace(z);
|
@@ -9264,7 +9264,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9264
9264
|
}
|
9265
9265
|
}
|
9266
9266
|
return T.i(self) && (self.worker = new vr(self)), vr;
|
9267
|
-
}),
|
9267
|
+
}), V("index", ["exports", "./shared"], function(T, c) {
|
9268
9268
|
var _e = "4.5.2";
|
9269
9269
|
let xe, ve;
|
9270
9270
|
const ae = { now: typeof performance < "u" && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (u) => new Promise((t, n) => {
|
@@ -9379,9 +9379,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9379
9379
|
});
|
9380
9380
|
const h = (v) => c._(this, void 0, void 0, function* () {
|
9381
9381
|
v.state = "running";
|
9382
|
-
const { requestParameters: b, supportImageRefresh: A, onError: C, onSuccess: L, abortController: B } = v,
|
9382
|
+
const { requestParameters: b, supportImageRefresh: A, onError: C, onSuccess: L, abortController: B } = v, N = A === !1 && !c.i(self) && !c.g(b.url) && (!b.headers || Object.keys(b.headers).reduce((H, K) => H && K === "accept", !0));
|
9383
9383
|
n++;
|
9384
|
-
const Z =
|
9384
|
+
const Z = N ? y(b, B) : c.m(b, B);
|
9385
9385
|
try {
|
9386
9386
|
const H = yield Z;
|
9387
9387
|
delete v.abortController, v.state = "completed", H.data instanceof HTMLImageElement || c.b(H.data) ? L(H) : H.data && L({ data: yield (j = H.data, typeof createImageBitmap == "function" ? c.d(j) : c.f(j)), cacheControl: H.cacheControl, expires: H.expires });
|
@@ -9401,8 +9401,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9401
9401
|
A.abortController.signal.aborted ? b-- : h(A);
|
9402
9402
|
}
|
9403
9403
|
}, y = (v, b) => new Promise((A, C) => {
|
9404
|
-
const L = new Image(), B = v.url,
|
9405
|
-
|
9404
|
+
const L = new Image(), B = v.url, N = v.credentials;
|
9405
|
+
N && N === "include" ? L.crossOrigin = "use-credentials" : (N && N === "same-origin" || !c.s(B)) && (L.crossOrigin = "anonymous"), b.signal.addEventListener("abort", () => {
|
9406
9406
|
L.src = "", C(c.c());
|
9407
9407
|
}), L.fetchPriority = "high", L.onload = () => {
|
9408
9408
|
L.onerror = L.onload = null, A({ data: L });
|
@@ -9691,9 +9691,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9691
9691
|
draw(u) {
|
9692
9692
|
const { width: t, actualBoundingBoxAscent: n, actualBoundingBoxDescent: o, actualBoundingBoxLeft: a, actualBoundingBoxRight: h } = this.ctx.measureText(u), m = Math.ceil(n), y = Math.max(0, Math.min(this.size - this.buffer, Math.ceil(h - a))), v = Math.min(this.size - this.buffer, m + Math.ceil(o)), b = y + 2 * this.buffer, A = v + 2 * this.buffer, C = Math.max(b * A, 0), L = new Uint8ClampedArray(C), B = { data: L, width: b, height: A, glyphWidth: y, glyphHeight: v, glyphTop: m, glyphLeft: 0, glyphAdvance: t };
|
9693
9693
|
if (y === 0 || v === 0) return B;
|
9694
|
-
const { ctx:
|
9695
|
-
|
9696
|
-
const K =
|
9694
|
+
const { ctx: N, buffer: Z, gridInner: j, gridOuter: H } = this;
|
9695
|
+
N.clearRect(Z, Z, y, v), N.fillText(u, Z, Z + m);
|
9696
|
+
const K = N.getImageData(Z, Z, y, v);
|
9697
9697
|
H.fill(Ti, 0, C), j.fill(0, 0, C);
|
9698
9698
|
for (let U = 0; U < v; U++) for (let ee = 0; ee < y; ee++) {
|
9699
9699
|
const ne = K.data[4 * (U * y + ee) + 3] / 255;
|
@@ -9810,11 +9810,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9810
9810
|
b / v.right > 1 && (v = t[++y]);
|
9811
9811
|
const A = Math.abs(b - v.left), C = Math.abs(b - v.right), L = Math.min(A, C);
|
9812
9812
|
let B;
|
9813
|
-
const
|
9813
|
+
const N = h / o * (a + 1);
|
9814
9814
|
if (v.isDash) {
|
9815
|
-
const Z = a - Math.abs(
|
9815
|
+
const Z = a - Math.abs(N);
|
9816
9816
|
B = Math.sqrt(L * L + Z * Z);
|
9817
|
-
} else B = a - Math.sqrt(L * L +
|
9817
|
+
} else B = a - Math.sqrt(L * L + N * N);
|
9818
9818
|
this.data[m + b] = Math.max(0, Math.min(255, B + 128));
|
9819
9819
|
}
|
9820
9820
|
}
|
@@ -9914,12 +9914,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9914
9914
|
}
|
9915
9915
|
function qr(u, t, n, o, a, h) {
|
9916
9916
|
const m = function(C, L, B) {
|
9917
|
-
if (C) for (const
|
9918
|
-
const Z = L[
|
9917
|
+
if (C) for (const N of C) {
|
9918
|
+
const Z = L[N];
|
9919
9919
|
if (Z && Z.source === B && Z.type === "fill-extrusion") return !0;
|
9920
9920
|
}
|
9921
|
-
else for (const
|
9922
|
-
const Z = L[
|
9921
|
+
else for (const N in L) {
|
9922
|
+
const Z = L[N];
|
9923
9923
|
if (Z.source === B && Z.type === "fill-extrusion") return !0;
|
9924
9924
|
}
|
9925
9925
|
return !1;
|
@@ -9929,8 +9929,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9929
9929
|
for (const C of v) b.push({ wrappedTileID: C.tileID.wrapped().key, queryResults: C.tile.queryRenderedFeatures(t, n, u._state, C.queryGeometry, C.cameraQueryGeometry, C.scale, a, h, y, kr(u.transform, C.tileID)) });
|
9930
9930
|
const A = function(C) {
|
9931
9931
|
const L = {}, B = {};
|
9932
|
-
for (const
|
9933
|
-
const Z =
|
9932
|
+
for (const N of C) {
|
9933
|
+
const Z = N.queryResults, j = N.wrappedTileID, H = B[j] = B[j] || {};
|
9934
9934
|
for (const K in Z) {
|
9935
9935
|
const U = Z[K], ee = H[K] = H[K] || {}, ne = L[K] = L[K] || [];
|
9936
9936
|
for (const le of U) ee[le.featureIndex] || (ee[le.featureIndex] = !0, ne.push(le));
|
@@ -9939,8 +9939,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9939
9939
|
return L;
|
9940
9940
|
}(b);
|
9941
9941
|
for (const C in A) A[C].forEach((L) => {
|
9942
|
-
const B = L.feature,
|
9943
|
-
B.source = B.layer.source, B.layer["source-layer"] && (B.sourceLayer = B.layer["source-layer"]), B.state =
|
9942
|
+
const B = L.feature, N = u.getFeatureState(B.layer["source-layer"], B.id);
|
9943
|
+
B.source = B.layer.source, B.layer["source-layer"] && (B.sourceLayer = B.layer["source-layer"]), B.state = N;
|
9944
9944
|
});
|
9945
9945
|
return A;
|
9946
9946
|
}
|
@@ -10645,7 +10645,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10645
10645
|
const j = c.a8(B, !0);
|
10646
10646
|
if (!y.filter(new c.a9(this.tileID.overscaledZ), j, this.tileID.canonical)) continue;
|
10647
10647
|
} else if (!y.filter(new c.a9(this.tileID.overscaledZ), B)) continue;
|
10648
|
-
const
|
10648
|
+
const N = o.getId(B, h), Z = new c.aa(B, v, b, A, N);
|
10649
10649
|
Z.tile = C, t.push(Z);
|
10650
10650
|
}
|
10651
10651
|
}
|
@@ -11004,7 +11004,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11004
11004
|
for (const C of b) {
|
11005
11005
|
const L = t[C], B = this._tiles[C];
|
11006
11006
|
if (!B || B.fadeEndTime !== 0 && B.fadeEndTime <= A) continue;
|
11007
|
-
const
|
11007
|
+
const N = this.findLoadedParent(L, n), Z = this.findLoadedSibling(L), j = N || Z || null;
|
11008
11008
|
j && (this._addTile(j.tileID), y[j.tileID.key] = j.tileID), v[C] = L;
|
11009
11009
|
}
|
11010
11010
|
this._retainLoadedChildren(v, a, o, t);
|
@@ -11013,11 +11013,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11013
11013
|
const C = {}, L = {};
|
11014
11014
|
for (const B of h) this._tiles[B.key].hasData() ? C[B.key] = B : L[B.key] = B;
|
11015
11015
|
for (const B in L) {
|
11016
|
-
const
|
11017
|
-
this._tiles[
|
11016
|
+
const N = L[B].children(this._source.maxzoom);
|
11017
|
+
this._tiles[N[0].key] && this._tiles[N[1].key] && this._tiles[N[2].key] && this._tiles[N[3].key] && (C[N[0].key] = t[N[0].key] = N[0], C[N[1].key] = t[N[1].key] = N[1], C[N[2].key] = t[N[2].key] = N[2], C[N[3].key] = t[N[3].key] = N[3], delete L[B]);
|
11018
11018
|
}
|
11019
11019
|
for (const B in L) {
|
11020
|
-
const
|
11020
|
+
const N = L[B], Z = this.findLoadedParent(N, this._source.minzoom), j = this.findLoadedSibling(N), H = Z || j || null;
|
11021
11021
|
if (H) {
|
11022
11022
|
C[H.tileID.key] = t[H.tileID.key] = H.tileID;
|
11023
11023
|
for (const K in C) C[K].isChildOf(H.tileID) && delete C[K];
|
@@ -11082,8 +11082,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11082
11082
|
const B = b.scaledTo(L);
|
11083
11083
|
if (h[B.key]) break;
|
11084
11084
|
if (h[B.key] = !0, A = this.getTile(B), !A && C && (A = this._addTile(B)), A) {
|
11085
|
-
const
|
11086
|
-
if ((
|
11085
|
+
const N = A.hasData();
|
11086
|
+
if ((N || !(!((o = this.map) === null || o === void 0) && o.cancelPendingTileRequestsWhileZooming) || C) && (a[B.key] = B), C = A.wasRequested(), N) break;
|
11087
11087
|
}
|
11088
11088
|
}
|
11089
11089
|
}
|
@@ -11144,11 +11144,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11144
11144
|
tilesIn(t, n, o) {
|
11145
11145
|
const a = [], h = this.transform;
|
11146
11146
|
if (!h) return a;
|
11147
|
-
const m = o ? h.getCameraQueryGeometry(t) : t, y = t.map((
|
11147
|
+
const m = o ? h.getCameraQueryGeometry(t) : t, y = t.map((N) => h.pointCoordinate(N, this.terrain)), v = m.map((N) => h.pointCoordinate(N, this.terrain)), b = this.getIds();
|
11148
11148
|
let A = 1 / 0, C = 1 / 0, L = -1 / 0, B = -1 / 0;
|
11149
|
-
for (const
|
11150
|
-
for (let
|
11151
|
-
const Z = this._tiles[b[
|
11149
|
+
for (const N of v) A = Math.min(A, N.x), C = Math.min(C, N.y), L = Math.max(L, N.x), B = Math.max(B, N.y);
|
11150
|
+
for (let N = 0; N < b.length; N++) {
|
11151
|
+
const Z = this._tiles[b[N]];
|
11152
11152
|
if (Z.holdingForFade()) continue;
|
11153
11153
|
const j = Z.tileID, H = Math.pow(2, h.zoom - Z.tileID.overscaledZ), K = n * Z.queryPadding * c.X / Z.tileSize / H, U = [j.getTilePoint(new c.Z(A, C)), j.getTilePoint(new c.Z(L, B))];
|
11154
11154
|
if (U[0].x - K < c.X && U[0].y - K < c.X && U[1].x + K >= 0 && U[1].y + K >= 0) {
|
@@ -11270,21 +11270,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11270
11270
|
_queryCell(t, n, o, a, h, m, y, v) {
|
11271
11271
|
const { seenUids: b, hitTest: A, overlapMode: C } = y, L = this.boxCells[h];
|
11272
11272
|
if (L !== null) {
|
11273
|
-
const
|
11273
|
+
const N = this.bboxes;
|
11274
11274
|
for (const Z of L) if (!b.box[Z]) {
|
11275
11275
|
b.box[Z] = !0;
|
11276
11276
|
const j = 4 * Z, H = this.boxKeys[Z];
|
11277
|
-
if (t <=
|
11277
|
+
if (t <= N[j + 2] && n <= N[j + 3] && o >= N[j + 0] && a >= N[j + 1] && (!v || v(H)) && (!A || !xr(C, H.overlapMode)) && (m.push({ key: H, x1: N[j], y1: N[j + 1], x2: N[j + 2], y2: N[j + 3] }), A)) return !0;
|
11278
11278
|
}
|
11279
11279
|
}
|
11280
11280
|
const B = this.circleCells[h];
|
11281
11281
|
if (B !== null) {
|
11282
|
-
const
|
11282
|
+
const N = this.circles;
|
11283
11283
|
for (const Z of B) if (!b.circle[Z]) {
|
11284
11284
|
b.circle[Z] = !0;
|
11285
11285
|
const j = 3 * Z, H = this.circleKeys[Z];
|
11286
|
-
if (this._circleAndRectCollide(
|
11287
|
-
const K =
|
11286
|
+
if (this._circleAndRectCollide(N[j], N[j + 1], N[j + 2], t, n, o, a) && (!v || v(H)) && (!A || !xr(C, H.overlapMode))) {
|
11287
|
+
const K = N[j], U = N[j + 1], ee = N[j + 2];
|
11288
11288
|
if (m.push({ key: H, x1: K - ee, y1: U - ee, x2: K + ee, y2: U + ee }), A) return !0;
|
11289
11289
|
}
|
11290
11290
|
}
|
@@ -11294,26 +11294,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11294
11294
|
_queryCellCircle(t, n, o, a, h, m, y, v) {
|
11295
11295
|
const { circle: b, seenUids: A, overlapMode: C } = y, L = this.boxCells[h];
|
11296
11296
|
if (L !== null) {
|
11297
|
-
const
|
11297
|
+
const N = this.bboxes;
|
11298
11298
|
for (const Z of L) if (!A.box[Z]) {
|
11299
11299
|
A.box[Z] = !0;
|
11300
11300
|
const j = 4 * Z, H = this.boxKeys[Z];
|
11301
|
-
if (this._circleAndRectCollide(b.x, b.y, b.radius,
|
11301
|
+
if (this._circleAndRectCollide(b.x, b.y, b.radius, N[j + 0], N[j + 1], N[j + 2], N[j + 3]) && (!v || v(H)) && !xr(C, H.overlapMode)) return m.push(!0), !0;
|
11302
11302
|
}
|
11303
11303
|
}
|
11304
11304
|
const B = this.circleCells[h];
|
11305
11305
|
if (B !== null) {
|
11306
|
-
const
|
11306
|
+
const N = this.circles;
|
11307
11307
|
for (const Z of B) if (!A.circle[Z]) {
|
11308
11308
|
A.circle[Z] = !0;
|
11309
11309
|
const j = 3 * Z, H = this.circleKeys[Z];
|
11310
|
-
if (this._circlesCollide(
|
11310
|
+
if (this._circlesCollide(N[j], N[j + 1], N[j + 2], b.x, b.y, b.radius) && (!v || v(H)) && !xr(C, H.overlapMode)) return m.push(!0), !0;
|
11311
11311
|
}
|
11312
11312
|
}
|
11313
11313
|
}
|
11314
11314
|
_forEachCell(t, n, o, a, h, m, y, v) {
|
11315
11315
|
const b = this._convertToXCellCoord(t), A = this._convertToYCellCoord(n), C = this._convertToXCellCoord(o), L = this._convertToYCellCoord(a);
|
11316
|
-
for (let B = b; B <= C; B++) for (let
|
11316
|
+
for (let B = b; B <= C; B++) for (let N = A; N <= L; N++) if (h.call(this, t, n, o, a, this.xCellCount * N + B, m, y, v)) return;
|
11317
11317
|
}
|
11318
11318
|
_convertToXCellCoord(t) {
|
11319
11319
|
return Math.max(0, Math.min(this.xCellCount - 1, Math.floor(t * this.xScale)));
|
@@ -11361,7 +11361,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11361
11361
|
function M(u, t) {
|
11362
11362
|
return u.x >= -t[0] && u.x <= t[0] && u.y >= -t[1] && u.y <= t[1];
|
11363
11363
|
}
|
11364
|
-
function O(u, t, n, o, a, h, m, y, v, b, A, C, L, B,
|
11364
|
+
function O(u, t, n, o, a, h, m, y, v, b, A, C, L, B, N) {
|
11365
11365
|
const Z = o ? u.textSizeData : u.iconSizeData, j = c.ah(Z, n.transform.zoom), H = [256 / n.width * 2 + 1, 256 / n.height * 2 + 1], K = o ? u.text.dynamicLayoutVertexArray : u.icon.dynamicLayoutVertexArray;
|
11366
11366
|
K.clear();
|
11367
11367
|
const U = u.lineVertexArray, ee = o ? u.text.placedSymbolArray : u.icon.placedSymbolArray, ne = n.transform.width / n.transform.height;
|
@@ -11373,12 +11373,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11373
11373
|
continue;
|
11374
11374
|
}
|
11375
11375
|
le = !1;
|
11376
|
-
const De = G(new c.P(be.anchorX, be.anchorY), t,
|
11376
|
+
const De = G(new c.P(be.anchorX, be.anchorY), t, N);
|
11377
11377
|
if (!M(De.point, H)) {
|
11378
11378
|
He(be.numGlyphs, K);
|
11379
11379
|
continue;
|
11380
11380
|
}
|
11381
|
-
const Re = z(n.transform.cameraToCenterDistance, De.signedDistanceFromCamera), we = c.aj(Z, j, be), Se = m ? we / Re : we * Re, Ve = { getElevation:
|
11381
|
+
const Re = z(n.transform.cameraToCenterDistance, De.signedDistanceFromCamera), we = c.aj(Z, j, be), Se = m ? we / Re : we * Re, Ve = { getElevation: N, labelPlaneMatrix: a, lineVertexArray: U, pitchWithMap: m, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: b, tileAnchorPoint: new c.P(be.anchorX, be.anchorY), unwrappedTileID: A, width: C, height: L, translation: B }, Qe = te(Ve, be, Se, !1, y, t, h, u.glyphOffsetArray, K, ne, v);
|
11382
11382
|
le = Qe.useVertical, (Qe.notEnoughRoom || le || Qe.needsFlipping && te(Ve, be, Se, !0, y, t, h, u.glyphOffsetArray, K, ne, v).notEnoughRoom) && He(be.numGlyphs, K);
|
11383
11383
|
}
|
11384
11384
|
o ? u.text.dynamicLayoutVertexBuffer.updateData(K) : u.icon.dynamicLayoutVertexBuffer.updateData(K);
|
@@ -11386,15 +11386,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11386
11386
|
function q(u, t, n, o, a, h, m, y) {
|
11387
11387
|
const v = h.glyphStartIndex + h.numGlyphs, b = h.lineStartIndex, A = h.lineStartIndex + h.lineLength, C = t.getoffsetX(h.glyphStartIndex), L = t.getoffsetX(v - 1), B = Ie(u * C, n, o, a, h.segment, b, A, y, m);
|
11388
11388
|
if (!B) return null;
|
11389
|
-
const
|
11390
|
-
return
|
11389
|
+
const N = Ie(u * L, n, o, a, h.segment, b, A, y, m);
|
11390
|
+
return N ? y.projectionCache.anyProjectionOccluded ? null : { first: B, last: N } : null;
|
11391
11391
|
}
|
11392
11392
|
function Q(u, t, n, o) {
|
11393
11393
|
return u === c.ai.horizontal && Math.abs(n.y - t.y) > Math.abs(n.x - t.x) * o ? { useVertical: !0 } : (u === c.ai.vertical ? t.y < n.y : t.x > n.x) ? { needsFlipping: !0 } : null;
|
11394
11394
|
}
|
11395
11395
|
function te(u, t, n, o, a, h, m, y, v, b, A) {
|
11396
11396
|
const C = n / 24, L = t.lineOffsetX * C, B = t.lineOffsetY * C;
|
11397
|
-
let
|
11397
|
+
let N;
|
11398
11398
|
if (t.numGlyphs > 1) {
|
11399
11399
|
const Z = t.glyphStartIndex + t.numGlyphs, j = t.lineStartIndex, H = t.lineStartIndex + t.lineLength, K = q(C, y, L, B, o, t, A, u);
|
11400
11400
|
if (!K) return { notEnoughRoom: !0 };
|
@@ -11403,9 +11403,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11403
11403
|
const ne = Q(t.writingMode, U, ee, b);
|
11404
11404
|
if (ne) return ne;
|
11405
11405
|
}
|
11406
|
-
|
11407
|
-
for (let ne = t.glyphStartIndex + 1; ne < Z - 1; ne++)
|
11408
|
-
|
11406
|
+
N = [K.first];
|
11407
|
+
for (let ne = t.glyphStartIndex + 1; ne < Z - 1; ne++) N.push(Ie(C * y.getoffsetX(ne), L, B, o, t.segment, j, H, u, A));
|
11408
|
+
N.push(K.last);
|
11409
11409
|
} else {
|
11410
11410
|
if (a && !o) {
|
11411
11411
|
const j = G(u.tileAnchorPoint, h, u.getElevation).point, H = t.lineStartIndex + t.segment + 1, K = new c.P(u.lineVertexArray.getx(H), u.lineVertexArray.gety(H)), U = G(K, h, u.getElevation), ee = U.signedDistanceFromCamera > 0 ? U.point : function(le, me, be, De, Re, we) {
|
@@ -11415,9 +11415,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11415
11415
|
}
|
11416
11416
|
const Z = Ie(C * y.getoffsetX(t.glyphStartIndex), L, B, o, t.segment, t.lineStartIndex, t.lineStartIndex + t.lineLength, u, A);
|
11417
11417
|
if (!Z || u.projectionCache.anyProjectionOccluded) return { notEnoughRoom: !0 };
|
11418
|
-
|
11418
|
+
N = [Z];
|
11419
11419
|
}
|
11420
|
-
for (const Z of
|
11420
|
+
for (const Z of N) c.ak(v, Z.point, Z.angle);
|
11421
11421
|
return {};
|
11422
11422
|
}
|
11423
11423
|
function re(u, t, n, o, a, h) {
|
@@ -11455,18 +11455,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11455
11455
|
o && (A *= -1, C = Math.PI), A < 0 && (C += Math.PI);
|
11456
11456
|
let L, B = A > 0 ? h + a : h + a + 1;
|
11457
11457
|
y.projectionCache.cachedAnchorPoint ? L = y.projectionCache.cachedAnchorPoint : (L = de(y.tileAnchorPoint.x, y.tileAnchorPoint.y, y).point, y.projectionCache.cachedAnchorPoint = L);
|
11458
|
-
let
|
11458
|
+
let N, Z, j = L, H = L, K = 0, U = 0;
|
11459
11459
|
const ee = Math.abs(b), ne = [];
|
11460
11460
|
let le;
|
11461
11461
|
for (; K + U <= ee; ) {
|
11462
11462
|
if (B += A, B < h || B >= m) return null;
|
11463
|
-
K += U, H = j, Z =
|
11463
|
+
K += U, H = j, Z = N;
|
11464
11464
|
const De = { absOffsetX: ee, direction: A, distanceFromAnchor: K, previousVertex: H };
|
11465
11465
|
if (j = J(B, y, De), n === 0) ne.push(H), le = j.sub(H);
|
11466
11466
|
else {
|
11467
11467
|
let Re;
|
11468
11468
|
const we = j.sub(H);
|
11469
|
-
Re = we.mag() === 0 ? ge(J(B + A, y, De).sub(j), n, A) : ge(we, n, A), Z || (Z = H.add(Re)),
|
11469
|
+
Re = we.mag() === 0 ? ge(J(B + A, y, De).sub(j), n, A) : ge(we, n, A), Z || (Z = H.add(Re)), N = ce(B, Re, j, h, m, Z, n, y, De), ne.push(Z), le = N.sub(Z);
|
11470
11470
|
}
|
11471
11471
|
U = le.mag();
|
11472
11472
|
}
|
@@ -11486,14 +11486,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11486
11486
|
this.transform = t, this.mapProjection = n, this.grid = o, this.ignoredGrid = a, this.pitchFactor = Math.cos(t._pitch) * t.cameraToCenterDistance, this.screenRightBoundary = t.width + nt, this.screenBottomBoundary = t.height + nt, this.gridRightBoundary = t.width + 200, this.gridBottomBoundary = t.height + 200, this.perspectiveRatioCutoff = 0.6;
|
11487
11487
|
}
|
11488
11488
|
placeCollisionBox(t, n, o, a, h, m, y, v, b, A, C) {
|
11489
|
-
const L = t.anchorPointX + v[0], B = t.anchorPointY + v[1],
|
11490
|
-
return this.mapProjection.useSpecialProjectionForSymbols && (m ? Z.allPointsOccluded : this.mapProjection.isOccluded(L, B, h)) ||
|
11489
|
+
const L = t.anchorPointX + v[0], B = t.anchorPointY + v[1], N = this.projectAndGetPerspectiveRatio(a, L, B, h, A), Z = this._projectCollisionBox(t, o, a, h, m, y, v, N, A, C), [j, H, K, U] = Z.box;
|
11490
|
+
return this.mapProjection.useSpecialProjectionForSymbols && (m ? Z.allPointsOccluded : this.mapProjection.isOccluded(L, B, h)) || N.perspectiveRatio < this.perspectiveRatioCutoff || !this.isInsideGrid(j, H, K, U) || n !== "always" && this.grid.hitTest(j, H, K, U, n, b) ? { box: [j, H, K, U], placeable: !1, offscreen: !1 } : { box: [j, H, K, U], placeable: !0, offscreen: this.isOffscreen(j, H, K, U) };
|
11491
11491
|
}
|
11492
|
-
placeCollisionCircles(t, n, o, a, h, m, y, v, b, A, C, L, B,
|
11492
|
+
placeCollisionCircles(t, n, o, a, h, m, y, v, b, A, C, L, B, N, Z, j) {
|
11493
11493
|
const H = [], K = new c.P(n.anchorX, n.anchorY), U = this.getPerspectiveRatio(m, K.x, K.y, y, j), ee = (C ? h / U : h * U) / c.aq, ne = { getElevation: j, labelPlaneMatrix: v, lineVertexArray: o, pitchWithMap: C, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: this.mapProjection, tileAnchorPoint: K, unwrappedTileID: y, width: this.transform.width, height: this.transform.height, translation: Z }, le = q(ee, a, n.lineOffsetX * ee, n.lineOffsetY * ee, !1, n, !1, ne);
|
11494
11494
|
let me = !1, be = !1, De = !0;
|
11495
11495
|
if (le) {
|
11496
|
-
const Re = 0.5 * B * U +
|
11496
|
+
const Re = 0.5 * B * U + N, we = new c.P(-100, -100), Se = new c.P(this.screenRightBoundary, this.screenBottomBoundary), Ve = new it(), Qe = le.first, Pe = le.last;
|
11497
11497
|
let Ee = [];
|
11498
11498
|
for (let st = Qe.path.length - 1; st >= 1; st--) Ee.push(Qe.path[st]);
|
11499
11499
|
for (let st = 1; st < Pe.path.length; st++) Ee.push(Pe.path[st]);
|
@@ -11570,9 +11570,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11570
11570
|
_projectCollisionBox(t, n, o, a, h, m, y, v, b, A) {
|
11571
11571
|
const C = n * v.perspectiveRatio;
|
11572
11572
|
let L = new c.P(1, 0), B = new c.P(0, 1);
|
11573
|
-
const
|
11573
|
+
const N = new c.P(t.anchorPointX + y[0], t.anchorPointY + y[1]);
|
11574
11574
|
if (m && !h) {
|
11575
|
-
const Re = this.projectAndGetPerspectiveRatio(o,
|
11575
|
+
const Re = this.projectAndGetPerspectiveRatio(o, N.x + 1, N.y, a, b).point.sub(v.point).unit(), we = Math.atan(Re.y / Re.x) + (Re.x < 0 ? Math.PI : 0), Se = Math.sin(we), Ve = Math.cos(we);
|
11576
11576
|
L = new c.P(Ve, Se), B = new c.P(-Se, Ve);
|
11577
11577
|
} else if (!m && h) {
|
11578
11578
|
const Re = -this.transform.angle, we = Math.sin(Re), Se = Math.cos(Re);
|
@@ -11580,9 +11580,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11580
11580
|
}
|
11581
11581
|
let Z = v.point, j = C;
|
11582
11582
|
if (h) {
|
11583
|
-
Z =
|
11583
|
+
Z = N;
|
11584
11584
|
const Re = this.transform.zoom - Math.floor(this.transform.zoom);
|
11585
|
-
j = Math.pow(2, -Re), j *= this.mapProjection.getPitchedTextCorrection(this.transform,
|
11585
|
+
j = Math.pow(2, -Re), j *= this.mapProjection.getPitchedTextCorrection(this.transform, N, a), A || (j *= c.ad(0.5 + v.signedDistanceFromCamera / this.transform.cameraToCenterDistance * 0.5, 0, 4));
|
11586
11586
|
}
|
11587
11587
|
A && (Z = Z.add(L.mult(A.x * j)).add(B.mult(A.y * j)));
|
11588
11588
|
const H = t.x1 * j, K = t.x2 * j, U = (H + K) / 2, ee = t.y1 * j, ne = t.y2 * j, le = (ee + ne) / 2, me = [{ offsetX: H, offsetY: ee }, { offsetX: U, offsetY: ee }, { offsetX: K, offsetY: ee }, { offsetX: K, offsetY: le }, { offsetX: K, offsetY: ne }, { offsetX: U, offsetY: ne }, { offsetX: H, offsetY: ne }, { offsetX: H, offsetY: le }];
|
@@ -11658,10 +11658,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11658
11658
|
getBucketParts(t, n, o, a) {
|
11659
11659
|
const h = o.getBucket(n), m = o.latestFeatureIndex;
|
11660
11660
|
if (!h || !m || n.id !== h.layerIds[0]) return;
|
11661
|
-
const y = o.collisionBoxArray, v = h.layers[0].layout, b = h.layers[0].paint, A = Math.pow(2, this.transform.zoom - o.tileID.overscaledZ), C = o.tileSize / c.X, L = o.tileID.toUnwrapped(), B = this.transform.calculatePosMatrix(L),
|
11661
|
+
const y = o.collisionBoxArray, v = h.layers[0].layout, b = h.layers[0].paint, A = Math.pow(2, this.transform.zoom - o.tileID.overscaledZ), C = o.tileSize / c.X, L = o.tileID.toUnwrapped(), B = this.transform.calculatePosMatrix(L), N = v.get("text-pitch-alignment") === "map", Z = v.get("text-rotation-alignment") === "map", j = rt(o, 1, this.transform.zoom), H = this.collisionIndex.mapProjection.translatePosition(this.transform, o, b.get("text-translate"), b.get("text-translate-anchor")), K = this.collisionIndex.mapProjection.translatePosition(this.transform, o, b.get("icon-translate"), b.get("icon-translate-anchor")), U = Wr(B, N, Z, this.transform, j);
|
11662
11662
|
let ee = null;
|
11663
|
-
if (
|
11664
|
-
const le = vr(B,
|
11663
|
+
if (N) {
|
11664
|
+
const le = vr(B, N, Z, this.transform, j);
|
11665
11665
|
ee = c.L([], this.transform.labelPlaneMatrix, le);
|
11666
11666
|
}
|
11667
11667
|
this.retainedQueryData[h.bucketInstanceId] = new vt(h.bucketInstanceId, m, h.sourceLayerIndex, h.index, o.tileID);
|
@@ -11672,17 +11672,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11672
11672
|
}
|
11673
11673
|
else t.push({ symbolInstanceStart: 0, symbolInstanceEnd: h.symbolInstances.length, parameters: ne });
|
11674
11674
|
}
|
11675
|
-
attemptAnchorPlacement(t, n, o, a, h, m, y, v, b, A, C, L, B,
|
11675
|
+
attemptAnchorPlacement(t, n, o, a, h, m, y, v, b, A, C, L, B, N, Z, j, H, K, U) {
|
11676
11676
|
const ee = c.ar[t.textAnchor], ne = [t.textOffset0, t.textOffset1], le = ii(ee, o, a, ne, h), me = this.collisionIndex.placeCollisionBox(n, L, v, b, A, y, m, j, C.predicate, U, le);
|
11677
11677
|
if ((!K || this.collisionIndex.placeCollisionBox(K, L, v, b, A, y, m, H, C.predicate, U, le).placeable) && me.placeable) {
|
11678
11678
|
let be;
|
11679
11679
|
if (this.prevPlacement && this.prevPlacement.variableOffsets[B.crossTileID] && this.prevPlacement.placements[B.crossTileID] && this.prevPlacement.placements[B.crossTileID].text && (be = this.prevPlacement.variableOffsets[B.crossTileID].anchor), B.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
11680
|
-
return this.variableOffsets[B.crossTileID] = { textOffset: ne, width: o, height: a, anchor: ee, textBoxScale: h, prevAnchor: be }, this.markUsedJustification(
|
11680
|
+
return this.variableOffsets[B.crossTileID] = { textOffset: ne, width: o, height: a, anchor: ee, textBoxScale: h, prevAnchor: be }, this.markUsedJustification(N, ee, B, Z), N.allowVerticalPlacement && (this.markUsedOrientation(N, Z, B), this.placedOrientations[B.crossTileID] = Z), { shift: le, placedGlyphBoxes: me };
|
11681
11681
|
}
|
11682
11682
|
}
|
11683
11683
|
placeLayerBucketPart(t, n, o) {
|
11684
|
-
const { bucket: a, layout: h, translationText: m, translationIcon: y, posMatrix: v, unwrappedTileID: b, textLabelPlaneMatrix: A, labelToScreenMatrix: C, textPixelRatio: L, holdingForFade: B, collisionBoxArray:
|
11685
|
-
!a.collisionArrays &&
|
11684
|
+
const { bucket: a, layout: h, translationText: m, translationIcon: y, posMatrix: v, unwrappedTileID: b, textLabelPlaneMatrix: A, labelToScreenMatrix: C, textPixelRatio: L, holdingForFade: B, collisionBoxArray: N, partiallyEvaluatedTextSize: Z, collisionGroup: j } = t.parameters, H = h.get("text-optional"), K = h.get("icon-optional"), U = c.as(h, "text-overlap", "text-allow-overlap"), ee = U === "always", ne = c.as(h, "icon-overlap", "icon-allow-overlap"), le = ne === "always", me = h.get("text-rotation-alignment") === "map", be = h.get("text-pitch-alignment") === "map", De = h.get("icon-text-fit") !== "none", Re = h.get("symbol-z-order") === "viewport-y", we = ee && (le || !a.hasIconData() || K), Se = le && (ee || !a.hasTextData() || H);
|
11685
|
+
!a.collisionArrays && N && a.deserializeCollisionBoxes(N);
|
11686
11686
|
const Ve = this._getTerrainElevationFunc(this.retainedQueryData[a.bucketInstanceId].tileID), Qe = (Pe, Ee, Ke) => {
|
11687
11687
|
var Rt, st;
|
11688
11688
|
if (n[Pe.crossTileID]) return;
|
@@ -11822,7 +11822,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11822
11822
|
}
|
11823
11823
|
updateBucketOpacities(t, n, o, a) {
|
11824
11824
|
t.hasTextData() && (t.text.opacityVertexArray.clear(), t.text.hasVisibleVertices = !1), t.hasIconData() && (t.icon.opacityVertexArray.clear(), t.icon.hasVisibleVertices = !1), t.hasIconCollisionBoxData() && t.iconCollisionBox.collisionVertexArray.clear(), t.hasTextCollisionBoxData() && t.textCollisionBox.collisionVertexArray.clear();
|
11825
|
-
const h = t.layers[0], m = h.layout, y = new Zt(null, 0, !1, !1, !0), v = m.get("text-allow-overlap"), b = m.get("icon-allow-overlap"), A = h._unevaluatedLayout.hasValue("text-variable-anchor") || h._unevaluatedLayout.hasValue("text-variable-anchor-offset"), C = m.get("text-rotation-alignment") === "map", L = m.get("text-pitch-alignment") === "map", B = m.get("icon-text-fit") !== "none",
|
11825
|
+
const h = t.layers[0], m = h.layout, y = new Zt(null, 0, !1, !1, !0), v = m.get("text-allow-overlap"), b = m.get("icon-allow-overlap"), A = h._unevaluatedLayout.hasValue("text-variable-anchor") || h._unevaluatedLayout.hasValue("text-variable-anchor-offset"), C = m.get("text-rotation-alignment") === "map", L = m.get("text-pitch-alignment") === "map", B = m.get("icon-text-fit") !== "none", N = new Zt(null, 0, v && (b || !t.hasIconData() || m.get("icon-optional")), b && (v || !t.hasTextData() || m.get("text-optional")), !0);
|
11826
11826
|
!t.collisionArrays && a && (t.hasIconCollisionBoxData() || t.hasTextCollisionBoxData()) && t.deserializeCollisionBoxes(a);
|
11827
11827
|
const Z = (H, K, U) => {
|
11828
11828
|
for (let ee = 0; ee < K / 4; ee++) H.opacityVertexArray.emplaceBack(U);
|
@@ -11831,7 +11831,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11831
11831
|
for (let H = 0; H < t.symbolInstances.length; H++) {
|
11832
11832
|
const K = t.symbolInstances.get(H), { numHorizontalGlyphVertices: U, numVerticalGlyphVertices: ee, crossTileID: ne } = K;
|
11833
11833
|
let le = this.opacities[ne];
|
11834
|
-
o[ne] ? le = y : le || (le =
|
11834
|
+
o[ne] ? le = y : le || (le = N, this.opacities[ne] = le), o[ne] = !0;
|
11835
11835
|
const me = K.numIconVertices > 0, be = this.placedOrientations[K.crossTileID], De = be === c.ai.vertical, Re = be === c.ai.horizontal || be === c.ai.horizontalOnly;
|
11836
11836
|
if (U > 0 || ee > 0) {
|
11837
11837
|
const Se = ji(le.text);
|
@@ -12158,18 +12158,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12158
12158
|
this.imageManager.setLoaded(!1), this._spriteRequest = new AbortController(), function(h, m, y, v) {
|
12159
12159
|
return c._(this, void 0, void 0, function* () {
|
12160
12160
|
const b = Si(h), A = y > 1 ? "@2x" : "", C = {}, L = {};
|
12161
|
-
for (const { id: B, url:
|
12162
|
-
const Z = m.transformRequest(jr(
|
12161
|
+
for (const { id: B, url: N } of b) {
|
12162
|
+
const Z = m.transformRequest(jr(N, A, ".json"), "SpriteJSON");
|
12163
12163
|
C[B] = c.h(Z, v);
|
12164
|
-
const j = m.transformRequest(jr(
|
12164
|
+
const j = m.transformRequest(jr(N, A, ".png"), "SpriteImage");
|
12165
12165
|
L[B] = Ae.getImage(j, v);
|
12166
12166
|
}
|
12167
|
-
return yield Promise.all([...Object.values(C), ...Object.values(L)]), function(B,
|
12167
|
+
return yield Promise.all([...Object.values(C), ...Object.values(L)]), function(B, N) {
|
12168
12168
|
return c._(this, void 0, void 0, function* () {
|
12169
12169
|
const Z = {};
|
12170
12170
|
for (const j in B) {
|
12171
12171
|
Z[j] = {};
|
12172
|
-
const H = ae.getImageCanvasContext((yield
|
12172
|
+
const H = ae.getImageCanvasContext((yield N[j]).data), K = (yield B[j]).data;
|
12173
12173
|
for (const U in K) {
|
12174
12174
|
const { width: ee, height: ne, x: le, y: me, sdf: be, pixelRatio: De, stretchX: Re, stretchY: we, content: Se, textFitWidth: Ve, textFitHeight: Qe } = K[U];
|
12175
12175
|
Z[j][U] = { data: null, pixelRatio: De, sdf: be, stretchX: Re, stretchY: we, content: Se, textFitWidth: Ve, textFitHeight: Qe, spriteData: { width: ee, height: ne, x: le, y: me, context: H } };
|
@@ -12560,13 +12560,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12560
12560
|
const m = this._serializedAllLayers();
|
12561
12561
|
for (const y in this.sourceCaches) n.layers && !a[y] || h.push(qr(this.sourceCaches[y], this._layers, m, t, n, o));
|
12562
12562
|
return this.placement && h.push(function(y, v, b, A, C, L, B) {
|
12563
|
-
const
|
12563
|
+
const N = {}, Z = L.queryRenderedSymbols(A), j = [];
|
12564
12564
|
for (const H of Object.keys(Z).map(Number)) j.push(B[H]);
|
12565
12565
|
j.sort(Zr);
|
12566
12566
|
for (const H of j) {
|
12567
12567
|
const K = H.featureIndex.lookupSymbolFeatures(Z[H.bucketInstanceId], v, H.bucketIndex, H.sourceLayerIndex, C.filter, C.layers, C.availableImages, y);
|
12568
12568
|
for (const U in K) {
|
12569
|
-
const ee =
|
12569
|
+
const ee = N[U] = N[U] || [], ne = K[U];
|
12570
12570
|
ne.sort((le, me) => {
|
12571
12571
|
const be = H.featureSortOrder;
|
12572
12572
|
if (be) {
|
@@ -12578,11 +12578,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12578
12578
|
for (const le of ne) ee.push(le);
|
12579
12579
|
}
|
12580
12580
|
}
|
12581
|
-
for (const H in
|
12581
|
+
for (const H in N) N[H].forEach((K) => {
|
12582
12582
|
const U = K.feature, ee = b[y[H].source].getFeatureState(U.layer["source-layer"], U.id);
|
12583
12583
|
U.source = U.layer.source, U.layer["source-layer"] && (U.sourceLayer = U.layer["source-layer"]), U.state = ee;
|
12584
12584
|
});
|
12585
|
-
return
|
12585
|
+
return N;
|
12586
12586
|
}(this._layers, m, this.sourceCaches, t, n, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(h);
|
12587
12587
|
}
|
12588
12588
|
querySourceFeatures(t, n) {
|
@@ -12660,7 +12660,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12660
12660
|
if (A.type !== "symbol") continue;
|
12661
12661
|
if (!v[A.source]) {
|
12662
12662
|
const L = this.sourceCaches[A.source];
|
12663
|
-
v[A.source] = L.getRenderableIds(!0).map((B) => L.getTileByID(B)).sort((B,
|
12663
|
+
v[A.source] = L.getRenderableIds(!0).map((B) => L.getTileByID(B)).sort((B, N) => N.tileID.overscaledZ - B.tileID.overscaledZ || (B.tileID.isLessThan(N.tileID) ? -1 : 1));
|
12664
12664
|
}
|
12665
12665
|
const C = this.crossTileSymbolIndex.addLayer(A, v[A.source], t.center.lng);
|
12666
12666
|
m = m || C;
|
@@ -13253,7 +13253,7 @@ uniform ${A} ${C} u_${L};
|
|
13253
13253
|
${A} ${C} ${L} = u_${L};
|
13254
13254
|
#endif
|
13255
13255
|
`)), vertexSource: t = t.replace(n, (v, b, A, C, L) => {
|
13256
|
-
const B = C === "float" ? "vec2" : "vec4",
|
13256
|
+
const B = C === "float" ? "vec2" : "vec4", N = L.match(/color/) ? "color" : B;
|
13257
13257
|
return y[L] ? b === "define" ? `
|
13258
13258
|
#ifndef HAS_UNIFORM_u_${L}
|
13259
13259
|
uniform lowp float u_${L}_t;
|
@@ -13262,7 +13262,7 @@ varying ${A} ${C} ${L};
|
|
13262
13262
|
#else
|
13263
13263
|
uniform ${A} ${C} u_${L};
|
13264
13264
|
#endif
|
13265
|
-
` :
|
13265
|
+
` : N === "vec4" ? `
|
13266
13266
|
#ifndef HAS_UNIFORM_u_${L}
|
13267
13267
|
${L} = a_${L};
|
13268
13268
|
#else
|
@@ -13270,7 +13270,7 @@ uniform ${A} ${C} u_${L};
|
|
13270
13270
|
#endif
|
13271
13271
|
` : `
|
13272
13272
|
#ifndef HAS_UNIFORM_u_${L}
|
13273
|
-
${L} = unpack_mix_${
|
13273
|
+
${L} = unpack_mix_${N}(a_${L}, u_${L}_t);
|
13274
13274
|
#else
|
13275
13275
|
${A} ${C} ${L} = u_${L};
|
13276
13276
|
#endif
|
@@ -13281,7 +13281,7 @@ attribute ${A} ${B} a_${L};
|
|
13281
13281
|
#else
|
13282
13282
|
uniform ${A} ${C} u_${L};
|
13283
13283
|
#endif
|
13284
|
-
` :
|
13284
|
+
` : N === "vec4" ? `
|
13285
13285
|
#ifndef HAS_UNIFORM_u_${L}
|
13286
13286
|
${A} ${C} ${L} = a_${L};
|
13287
13287
|
#else
|
@@ -13289,7 +13289,7 @@ uniform ${A} ${C} u_${L};
|
|
13289
13289
|
#endif
|
13290
13290
|
` : `
|
13291
13291
|
#ifndef HAS_UNIFORM_u_${L}
|
13292
|
-
${A} ${C} ${L} = unpack_mix_${
|
13292
|
+
${A} ${C} ${L} = unpack_mix_${N}(a_${L}, u_${L}_t);
|
13293
13293
|
#else
|
13294
13294
|
${A} ${C} ${L} = u_${L};
|
13295
13295
|
#endif
|
@@ -13332,8 +13332,8 @@ uniform ${A} ${C} u_${L};
|
|
13332
13332
|
constructor(t, n, o, a, h, m) {
|
13333
13333
|
const y = t.gl;
|
13334
13334
|
this.program = y.createProgram();
|
13335
|
-
const v = ms(n.staticAttributes), b = o ? o.getBinderAttributes() : [], A = v.concat(b), C = Jr.prelude.staticUniforms ? ms(Jr.prelude.staticUniforms) : [], L = n.staticUniforms ? ms(n.staticUniforms) : [], B = o ? o.getBinderUniforms() : [],
|
13336
|
-
for (const le of
|
13335
|
+
const v = ms(n.staticAttributes), b = o ? o.getBinderAttributes() : [], A = v.concat(b), C = Jr.prelude.staticUniforms ? ms(Jr.prelude.staticUniforms) : [], L = n.staticUniforms ? ms(n.staticUniforms) : [], B = o ? o.getBinderUniforms() : [], N = C.concat(L).concat(B), Z = [];
|
13336
|
+
for (const le of N) Z.indexOf(le) < 0 && Z.push(le);
|
13337
13337
|
const j = o ? o.defines() : [];
|
13338
13338
|
h && j.push("#define OVERDRAW_INSPECTOR;"), m && j.push("#define TERRAIN3D;");
|
13339
13339
|
const H = j.concat(Jr.prelude.fragmentSource, n.fragmentSource).join(`
|
@@ -13360,7 +13360,7 @@ uniform ${A} ${C} u_${L};
|
|
13360
13360
|
}
|
13361
13361
|
this.fixedUniforms = a(t, ne), this.terrainUniforms = ((le, me) => ({ u_depth: new c.aI(le, me.u_depth), u_terrain: new c.aI(le, me.u_terrain), u_terrain_dim: new c.aJ(le, me.u_terrain_dim), u_terrain_matrix: new c.aK(le, me.u_terrain_matrix), u_terrain_unpack: new c.aL(le, me.u_terrain_unpack), u_terrain_exaggeration: new c.aJ(le, me.u_terrain_exaggeration) }))(t, ne), this.binderUniforms = o ? o.getUniforms(t, ne) : [];
|
13362
13362
|
}
|
13363
|
-
draw(t, n, o, a, h, m, y, v, b, A, C, L, B,
|
13363
|
+
draw(t, n, o, a, h, m, y, v, b, A, C, L, B, N, Z, j, H, K) {
|
13364
13364
|
const U = t.gl;
|
13365
13365
|
if (this.failedToCreate) return;
|
13366
13366
|
if (t.program.set(this.program), t.setDepthMode(o), t.setStencilMode(a), t.setColorMode(h), t.setCullFace(m), v) {
|
@@ -13368,7 +13368,7 @@ uniform ${A} ${C} u_${L};
|
|
13368
13368
|
for (const ne in this.terrainUniforms) this.terrainUniforms[ne].set(v[ne]);
|
13369
13369
|
}
|
13370
13370
|
for (const ne in this.fixedUniforms) this.fixedUniforms[ne].set(y[ne]);
|
13371
|
-
Z && Z.setUniforms(t, this.binderUniforms, B, { zoom:
|
13371
|
+
Z && Z.setUniforms(t, this.binderUniforms, B, { zoom: N });
|
13372
13372
|
let ee = 0;
|
13373
13373
|
switch (n) {
|
13374
13374
|
case U.LINES:
|
@@ -13399,8 +13399,8 @@ uniform ${A} ${C} u_${L};
|
|
13399
13399
|
var C = Math.sin(A), L = Math.cos(A);
|
13400
13400
|
b[0] = L, b[1] = C, b[2] = 0, b[3] = -C, b[4] = L, b[5] = 0, b[6] = 0, b[7] = 0, b[8] = 1;
|
13401
13401
|
}(y, -t.transform.angle), function(b, A, C) {
|
13402
|
-
var L = A[0], B = A[1],
|
13403
|
-
b[0] = L * C[0] + B * C[3] +
|
13402
|
+
var L = A[0], B = A[1], N = A[2];
|
13403
|
+
b[0] = L * C[0] + B * C[3] + N * C[6], b[1] = L * C[1] + B * C[4] + N * C[7], b[2] = L * C[2] + B * C[5] + N * C[8];
|
13404
13404
|
}(m, m, y);
|
13405
13405
|
const v = a.properties.get("color");
|
13406
13406
|
return { u_matrix: u, u_lightpos: m, u_lightintensity: a.properties.get("intensity"), u_lightcolor: [v.r, v.g, v.b], u_vertical_gradient: +n, u_opacity: o };
|
@@ -13443,13 +13443,13 @@ uniform ${A} ${C} u_${L};
|
|
13443
13443
|
return [(2 * n + 1) / 3, (-Math.sqrt(3) * t - n + 1) / 3, (Math.sqrt(3) * t - n + 1) / 3];
|
13444
13444
|
}
|
13445
13445
|
const _l = (u, t, n, o, a, h, m, y, v, b, A, C, L, B) => {
|
13446
|
-
const
|
13447
|
-
return { u_is_size_zoom_constant: +(u === "constant" || u === "source"), u_is_size_feature_constant: +(u === "constant" || u === "camera"), u_size_t: t ? t.uSizeT : 0, u_size: t ? t.uSize : 0, u_camera_to_center_distance:
|
13448
|
-
}, yl = (u, t, n, o, a, h, m, y, v, b, A, C, L, B,
|
13446
|
+
const N = m.transform;
|
13447
|
+
return { u_is_size_zoom_constant: +(u === "constant" || u === "source"), u_is_size_feature_constant: +(u === "constant" || u === "camera"), u_size_t: t ? t.uSizeT : 0, u_size: t ? t.uSize : 0, u_camera_to_center_distance: N.cameraToCenterDistance, u_pitch: N.pitch / 360 * 2 * Math.PI, u_rotate_symbol: +n, u_aspect_ratio: N.width / N.height, u_fade_change: m.options.fadeDuration ? m.symbolFadeChange : 1, u_matrix: y, u_label_plane_matrix: v, u_coord_matrix: b, u_is_text: +C, u_pitch_with_map: +o, u_is_along_line: a, u_is_variable_anchor: h, u_texsize: L, u_texture: 0, u_translation: A, u_pitched_scale: B };
|
13448
|
+
}, yl = (u, t, n, o, a, h, m, y, v, b, A, C, L, B, N) => {
|
13449
13449
|
const Z = m.transform;
|
13450
|
-
return c.e(_l(u, t, n, o, a, h, m, y, v, b, A, C, L,
|
13450
|
+
return c.e(_l(u, t, n, o, a, h, m, y, v, b, A, C, L, N), { u_gamma_scale: o ? Math.cos(Z._pitch) * Z.cameraToCenterDistance : 1, u_device_pixel_ratio: m.pixelRatio, u_is_halo: +B });
|
13451
13451
|
}, Bc = (u, t, n, o, a, h, m, y, v, b, A, C, L, B) => c.e(yl(u, t, n, o, a, h, m, y, v, b, A, !0, C, !0, B), { u_texsize_icon: L, u_texture_icon: 1 }), to = (u, t, n) => ({ u_matrix: u, u_opacity: t, u_color: n }), Wo = (u, t, n, o, a, h) => c.e(function(m, y, v, b) {
|
13452
|
-
const A = v.imageManager.getPattern(m.from.toString()), C = v.imageManager.getPattern(m.to.toString()), { width: L, height: B } = v.imageManager.getPixelSize(),
|
13452
|
+
const A = v.imageManager.getPattern(m.from.toString()), C = v.imageManager.getPattern(m.to.toString()), { width: L, height: B } = v.imageManager.getPixelSize(), N = Math.pow(2, b.tileID.overscaledZ), Z = b.tileSize * Math.pow(2, v.transform.tileZoom) / N, j = Z * (b.tileID.canonical.x + b.tileID.wrap * N), H = Z * b.tileID.canonical.y;
|
13453
13453
|
return { u_image: 0, u_pattern_tl_a: A.tl, u_pattern_br_a: A.br, u_pattern_tl_b: C.tl, u_pattern_br_b: C.br, u_texsize: [L, B], u_mix: y.t, u_pattern_size_a: A.displaySize, u_pattern_size_b: C.displaySize, u_scale_a: y.fromScale, u_scale_b: y.toScale, u_tile_units_to_pixels: 1 / rt(b, 1, v.transform.tileZoom), u_pixel_coord_upper: [j >> 16, H >> 16], u_pixel_coord_lower: [65535 & j, 65535 & H] };
|
13454
13454
|
}(o, h, n, a), { u_matrix: u, u_opacity: t }), io = { fillExtrusion: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_lightpos: new c.aO(u, t.u_lightpos), u_lightintensity: new c.aJ(u, t.u_lightintensity), u_lightcolor: new c.aO(u, t.u_lightcolor), u_vertical_gradient: new c.aJ(u, t.u_vertical_gradient), u_opacity: new c.aJ(u, t.u_opacity) }), fillExtrusionPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_lightpos: new c.aO(u, t.u_lightpos), u_lightintensity: new c.aJ(u, t.u_lightintensity), u_lightcolor: new c.aO(u, t.u_lightcolor), u_vertical_gradient: new c.aJ(u, t.u_vertical_gradient), u_height_factor: new c.aJ(u, t.u_height_factor), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade), u_opacity: new c.aJ(u, t.u_opacity) }), fill: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix) }), fillPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), fillOutline: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world) }), fillOutlinePattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), circle: (u, t) => ({ u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_scale_with_map: new c.aI(u, t.u_scale_with_map), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_extrude_scale: new c.aP(u, t.u_extrude_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_matrix: new c.aK(u, t.u_matrix) }), collisionBox: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_pixel_extrude_scale: new c.aP(u, t.u_pixel_extrude_scale) }), collisionCircle: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_inv_matrix: new c.aK(u, t.u_inv_matrix), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_viewport_size: new c.aP(u, t.u_viewport_size) }), debug: (u, t) => ({ u_color: new c.aM(u, t.u_color), u_matrix: new c.aK(u, t.u_matrix), u_overlay: new c.aI(u, t.u_overlay), u_overlay_scale: new c.aJ(u, t.u_overlay_scale) }), clippingMask: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix) }), heatmap: (u, t) => ({ u_extrude_scale: new c.aJ(u, t.u_extrude_scale), u_intensity: new c.aJ(u, t.u_intensity), u_matrix: new c.aK(u, t.u_matrix) }), heatmapTexture: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world), u_image: new c.aI(u, t.u_image), u_color_ramp: new c.aI(u, t.u_color_ramp), u_opacity: new c.aJ(u, t.u_opacity) }), hillshade: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_latrange: new c.aP(u, t.u_latrange), u_light: new c.aP(u, t.u_light), u_shadow: new c.aM(u, t.u_shadow), u_highlight: new c.aM(u, t.u_highlight), u_accent: new c.aM(u, t.u_accent) }), hillshadePrepare: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_dimension: new c.aP(u, t.u_dimension), u_zoom: new c.aJ(u, t.u_zoom), u_unpack: new c.aL(u, t.u_unpack) }), line: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels) }), lineGradient: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_image: new c.aI(u, t.u_image), u_image_height: new c.aJ(u, t.u_image_height) }), linePattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texsize: new c.aP(u, t.u_texsize), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_image: new c.aI(u, t.u_image), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), lineSDF: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_patternscale_a: new c.aP(u, t.u_patternscale_a), u_patternscale_b: new c.aP(u, t.u_patternscale_b), u_sdfgamma: new c.aJ(u, t.u_sdfgamma), u_image: new c.aI(u, t.u_image), u_tex_y_a: new c.aJ(u, t.u_tex_y_a), u_tex_y_b: new c.aJ(u, t.u_tex_y_b), u_mix: new c.aJ(u, t.u_mix) }), raster: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_tl_parent: new c.aP(u, t.u_tl_parent), u_scale_parent: new c.aJ(u, t.u_scale_parent), u_buffer_scale: new c.aJ(u, t.u_buffer_scale), u_fade_t: new c.aJ(u, t.u_fade_t), u_opacity: new c.aJ(u, t.u_opacity), u_image0: new c.aI(u, t.u_image0), u_image1: new c.aI(u, t.u_image1), u_brightness_low: new c.aJ(u, t.u_brightness_low), u_brightness_high: new c.aJ(u, t.u_brightness_high), u_saturation_factor: new c.aJ(u, t.u_saturation_factor), u_contrast_factor: new c.aJ(u, t.u_contrast_factor), u_spin_weights: new c.aO(u, t.u_spin_weights) }), symbolIcon: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texture: new c.aI(u, t.u_texture), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), symbolSDF: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texture: new c.aI(u, t.u_texture), u_gamma_scale: new c.aJ(u, t.u_gamma_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_is_halo: new c.aI(u, t.u_is_halo), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), symbolTextAndIcon: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texsize_icon: new c.aP(u, t.u_texsize_icon), u_texture: new c.aI(u, t.u_texture), u_texture_icon: new c.aI(u, t.u_texture_icon), u_gamma_scale: new c.aJ(u, t.u_gamma_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_is_halo: new c.aI(u, t.u_is_halo), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), background: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_opacity: new c.aJ(u, t.u_opacity), u_color: new c.aM(u, t.u_color) }), backgroundPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_opacity: new c.aJ(u, t.u_opacity), u_image: new c.aI(u, t.u_image), u_pattern_tl_a: new c.aP(u, t.u_pattern_tl_a), u_pattern_br_a: new c.aP(u, t.u_pattern_br_a), u_pattern_tl_b: new c.aP(u, t.u_pattern_tl_b), u_pattern_br_b: new c.aP(u, t.u_pattern_br_b), u_texsize: new c.aP(u, t.u_texsize), u_mix: new c.aJ(u, t.u_mix), u_pattern_size_a: new c.aP(u, t.u_pattern_size_a), u_pattern_size_b: new c.aP(u, t.u_pattern_size_b), u_scale_a: new c.aJ(u, t.u_scale_a), u_scale_b: new c.aJ(u, t.u_scale_b), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_tile_units_to_pixels: new c.aJ(u, t.u_tile_units_to_pixels) }), terrain: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texture: new c.aI(u, t.u_texture), u_ele_delta: new c.aJ(u, t.u_ele_delta), u_fog_matrix: new c.aK(u, t.u_fog_matrix), u_fog_color: new c.aM(u, t.u_fog_color), u_fog_ground_blend: new c.aJ(u, t.u_fog_ground_blend), u_fog_ground_blend_opacity: new c.aJ(u, t.u_fog_ground_blend_opacity), u_horizon_color: new c.aM(u, t.u_horizon_color), u_horizon_fog_blend: new c.aJ(u, t.u_horizon_fog_blend) }), terrainDepth: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ele_delta: new c.aJ(u, t.u_ele_delta) }), terrainCoords: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texture: new c.aI(u, t.u_texture), u_terrain_coords_id: new c.aJ(u, t.u_terrain_coords_id), u_ele_delta: new c.aJ(u, t.u_ele_delta) }), sky: (u, t) => ({ u_sky_color: new c.aM(u, t.u_sky_color), u_horizon_color: new c.aM(u, t.u_horizon_color), u_horizon: new c.aJ(u, t.u_horizon), u_sky_horizon_blend: new c.aJ(u, t.u_sky_horizon_blend) }) };
|
13455
13455
|
class Xo {
|
@@ -13966,10 +13966,10 @@ uniform ${A} ${C} u_${L};
|
|
13966
13966
|
if (!a || !v.length) return;
|
13967
13967
|
const L = u.useProgram("collisionCircle"), B = new c.aS();
|
13968
13968
|
B.resize(4 * b), B._trim();
|
13969
|
-
let
|
13969
|
+
let N = 0;
|
13970
13970
|
for (const H of v) for (let K = 0; K < H.circleArray.length / 4; K++) {
|
13971
13971
|
const U = 4 * K, ee = H.circleArray[U + 0], ne = H.circleArray[U + 1], le = H.circleArray[U + 2], me = H.circleArray[U + 3];
|
13972
|
-
B.emplace(
|
13972
|
+
B.emplace(N++, ee, ne, le, me, 0), B.emplace(N++, ee, ne, le, me, 1), B.emplace(N++, ee, ne, le, me, 2), B.emplace(N++, ee, ne, le, me, 3);
|
13973
13973
|
}
|
13974
13974
|
(!ws || ws.length < 2 * b) && (ws = function(H) {
|
13975
13975
|
const K = 2 * H, U = new c.aU();
|
@@ -14006,10 +14006,10 @@ uniform ${A} ${C} u_${L};
|
|
14006
14006
|
return u.add(o);
|
14007
14007
|
}
|
14008
14008
|
function lo(u, t, n, o, a, h, m, y, v, b, A, C, L, B) {
|
14009
|
-
const
|
14009
|
+
const N = u.text.placedSymbolArray, Z = u.text.dynamicLayoutVertexArray, j = u.icon.dynamicLayoutVertexArray, H = {};
|
14010
14010
|
Z.clear();
|
14011
|
-
for (let K = 0; K <
|
14012
|
-
const U =
|
14011
|
+
for (let K = 0; K < N.length; K++) {
|
14012
|
+
const U = N.get(K), ee = U.hidden || !U.crossTileID || u.allowVerticalPlacement && !U.placedOrientation ? null : o[U.crossTileID];
|
14013
14013
|
if (ee) {
|
14014
14014
|
const ne = new c.P(U.anchorX, U.anchorY), le = { getElevation: B, width: a.width, height: a.height, labelPlaneMatrix: h, lineVertexArray: null, pitchWithMap: n, projection: A, projectionCache: null, tileAnchorPoint: ne, translation: C, unwrappedTileID: L }, me = n ? G(ne, m, B) : de(ne.x, ne.y, le), be = z(a.cameraToCenterDistance, me.signedDistanceFromCamera);
|
14015
14015
|
let De = c.aj(u.textSizeData, v, U) * be / c.aq;
|
@@ -14039,15 +14039,15 @@ uniform ${A} ${C} u_${L};
|
|
14039
14039
|
return n.iconsInText && t ? "symbolTextAndIcon" : u ? "symbolSDF" : "symbolIcon";
|
14040
14040
|
}
|
14041
14041
|
function Yr(u, t, n, o, a, h, m, y, v, b, A, C) {
|
14042
|
-
const L = u.context, B = L.gl,
|
14042
|
+
const L = u.context, B = L.gl, N = u.transform, Z = Hs(), j = y === "map", H = v === "map", K = y !== "viewport" && n.layout.get("symbol-placement") !== "point", U = j && !H && !K, ee = !H && K, ne = !n.layout.get("symbol-sort-key").isConstant();
|
14043
14043
|
let le = !1;
|
14044
|
-
const me = u.depthModeForSublayer(0, ct.ReadOnly), be = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), De = [], Re = Z.getCircleRadiusCorrection(
|
14044
|
+
const me = u.depthModeForSublayer(0, ct.ReadOnly), be = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), De = [], Re = Z.getCircleRadiusCorrection(N);
|
14045
14045
|
for (const we of o) {
|
14046
14046
|
const Se = t.getTile(we), Ve = Se.getBucket(n);
|
14047
14047
|
if (!Ve) continue;
|
14048
14048
|
const Qe = a ? Ve.text : Ve.icon;
|
14049
14049
|
if (!Qe || !Qe.segments.get().length || !Qe.hasVisibleVertices) continue;
|
14050
|
-
const Pe = Qe.programConfigurations.get(n.id), Ee = a || Ve.sdfIcons, Ke = a ? Ve.textSizeData : Ve.iconSizeData, Rt = H ||
|
14050
|
+
const Pe = Qe.programConfigurations.get(n.id), Ee = a || Ve.sdfIcons, Ke = a ? Ve.textSizeData : Ve.iconSizeData, Rt = H || N.pitch !== 0, st = u.useProgram(oa(Ee, a, Ve), Pe), ht = c.ah(Ke, N.zoom), Bt = u.style.map.terrain && u.style.map.terrain.getTerrainData(we);
|
14051
14051
|
let fi, sr, Ft, Di, Ai = [0, 0], mi = null;
|
14052
14052
|
if (a) sr = Se.glyphAtlasTexture, Ft = B.LINEAR, fi = Se.glyphAtlasTexture.size, Ve.iconsInText && (Ai = Se.imageAtlasTexture.size, mi = Se.imageAtlasTexture, Di = Rt || u.options.rotating || u.options.zooming || Ke.kind === "composite" || Ke.kind === "camera" ? B.LINEAR : B.NEAREST);
|
14053
14053
|
else {
|
@@ -14057,7 +14057,7 @@ uniform ${A} ${C} u_${L};
|
|
14057
14057
|
const gi = rt(Se, 1, u.transform.zoom), or = ee ? we.posMatrix : sa, In = Wr(or, H, j, u.transform, gi), To = vr(or, H, j, u.transform, gi), Wn = vr(we.posMatrix, H, j, u.transform, gi), Pn = Z.translatePosition(u.transform, Se, h, m), Io = be && Ve.hasTextData(), Fa = n.layout.get("icon-text-fit") !== "none" && Io && Ve.hasIconData();
|
14058
14058
|
if (K) {
|
14059
14059
|
const jt = u.style.map.terrain ? (Oa, ri) => u.style.map.terrain.getElevation(we, Oa, ri) : null, Jn = n.layout.get("text-rotation-alignment") === "map";
|
14060
|
-
O(Ve, we.posMatrix, u, a, In, Wn, H, b, Jn, Z, we.toUnwrapped(),
|
14060
|
+
O(Ve, we.posMatrix, u, a, In, Wn, H, b, Jn, Z, we.toUnwrapped(), N.width, N.height, Pn, jt);
|
14061
14061
|
}
|
14062
14062
|
const li = we.posMatrix, ar = a && be || Fa, tn = K || ar ? sa : In, Xn = To, _i = Ee && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
14063
14063
|
let yi;
|
@@ -14095,7 +14095,7 @@ uniform ${A} ${C} u_${L};
|
|
14095
14095
|
}
|
14096
14096
|
function aa(u, t, n, o, a, h, m) {
|
14097
14097
|
const y = u.context.gl, v = "fill-pattern", b = n.paint.get(v), A = b && b.constantOr(1), C = n.getCrossfadeParameters();
|
14098
|
-
let L, B,
|
14098
|
+
let L, B, N, Z, j;
|
14099
14099
|
m ? (B = A && !n.getPaintProperty("fill-outline-color") ? "fillOutlinePattern" : "fillOutline", L = y.LINES) : (B = A ? "fillPattern" : "fill", L = y.TRIANGLES);
|
14100
14100
|
const H = b.constantOr(null);
|
14101
14101
|
for (const K of o) {
|
@@ -14109,18 +14109,18 @@ uniform ${A} ${C} u_${L};
|
|
14109
14109
|
if (m) {
|
14110
14110
|
Z = ee.indexBuffer2, j = ee.segments2;
|
14111
14111
|
const Re = [y.drawingBufferWidth, y.drawingBufferHeight];
|
14112
|
-
|
14113
|
-
} else Z = ee.indexBuffer, j = ee.segments,
|
14114
|
-
le.draw(u.context, L, a, u.stencilModeForClipping(K), h, Dt.disabled,
|
14112
|
+
N = B === "fillOutlinePattern" && A ? zc(De, u, C, U, Re) : Mc(De, Re);
|
14113
|
+
} else Z = ee.indexBuffer, j = ee.segments, N = A ? Fn(De, u, C, U) : gs(De);
|
14114
|
+
le.draw(u.context, L, a, u.stencilModeForClipping(K), h, Dt.disabled, N, me, n.id, ee.layoutVertexBuffer, Z, j, n.paint, u.transform.zoom, ne);
|
14115
14115
|
}
|
14116
14116
|
}
|
14117
14117
|
function co(u, t, n, o, a, h, m) {
|
14118
|
-
const y = u.context, v = y.gl, b = "fill-extrusion-pattern", A = n.paint.get(b), C = A.constantOr(1), L = n.getCrossfadeParameters(), B = n.paint.get("fill-extrusion-opacity"),
|
14118
|
+
const y = u.context, v = y.gl, b = "fill-extrusion-pattern", A = n.paint.get(b), C = A.constantOr(1), L = n.getCrossfadeParameters(), B = n.paint.get("fill-extrusion-opacity"), N = A.constantOr(null);
|
14119
14119
|
for (const Z of o) {
|
14120
14120
|
const j = t.getTile(Z), H = j.getBucket(n);
|
14121
14121
|
if (!H) continue;
|
14122
14122
|
const K = u.style.map.terrain && u.style.map.terrain.getTerrainData(Z), U = H.programConfigurations.get(n.id), ee = u.useProgram(C ? "fillExtrusionPattern" : "fillExtrusion", U);
|
14123
|
-
C && (u.context.activeTexture.set(v.TEXTURE0), j.imageAtlasTexture.bind(v.LINEAR, v.CLAMP_TO_EDGE), U.updatePaintBuffers(L)), Zi(U, b,
|
14123
|
+
C && (u.context.activeTexture.set(v.TEXTURE0), j.imageAtlasTexture.bind(v.LINEAR, v.CLAMP_TO_EDGE), U.updatePaintBuffers(L)), Zi(U, b, N, j, n);
|
14124
14124
|
const ne = u.translatePosMatrix(Z.posMatrix, j, n.paint.get("fill-extrusion-translate"), n.paint.get("fill-extrusion-translate-anchor")), le = n.paint.get("fill-extrusion-vertical-gradient"), me = C ? Qs(ne, u, le, B, Z, L, j) : Ys(ne, u, le, B);
|
14125
14125
|
ee.draw(y, y.gl.TRIANGLES, a, h, m, Dt.backCCW, me, K, n.id, H.layoutVertexBuffer, H.indexBuffer, H.segments, n.paint, u.transform.zoom, U, u.style.map.terrain && H.centroidVertexBuffer);
|
14126
14126
|
}
|
@@ -14129,12 +14129,12 @@ uniform ${A} ${C} u_${L};
|
|
14129
14129
|
const y = u.context, v = y.gl, b = n.fbo;
|
14130
14130
|
if (!b) return;
|
14131
14131
|
const A = u.useProgram("hillshade"), C = u.style.map.terrain && u.style.map.terrain.getTerrainData(t);
|
14132
|
-
y.activeTexture.set(v.TEXTURE0), v.bindTexture(v.TEXTURE_2D, b.colorAttachment.get()), A.draw(y, v.TRIANGLES, a, h, m, Dt.disabled, ((L, B,
|
14133
|
-
const j =
|
14134
|
-
let U =
|
14135
|
-
|
14132
|
+
y.activeTexture.set(v.TEXTURE0), v.bindTexture(v.TEXTURE_2D, b.colorAttachment.get()), A.draw(y, v.TRIANGLES, a, h, m, Dt.disabled, ((L, B, N, Z) => {
|
14133
|
+
const j = N.paint.get("hillshade-shadow-color"), H = N.paint.get("hillshade-highlight-color"), K = N.paint.get("hillshade-accent-color");
|
14134
|
+
let U = N.paint.get("hillshade-illumination-direction") * (Math.PI / 180);
|
14135
|
+
N.paint.get("hillshade-illumination-anchor") === "viewport" && (U -= L.transform.angle);
|
14136
14136
|
const ee = !L.options.moving;
|
14137
|
-
return { u_matrix: Z ? Z.posMatrix : L.transform.calculatePosMatrix(B.tileID.toUnwrapped(), ee), u_image: 0, u_latrange: qi(0, B.tileID), u_light: [
|
14137
|
+
return { u_matrix: Z ? Z.posMatrix : L.transform.calculatePosMatrix(B.tileID.toUnwrapped(), ee), u_image: 0, u_latrange: qi(0, B.tileID), u_light: [N.paint.get("hillshade-exaggeration"), U], u_shadow: j, u_highlight: H, u_accent: K };
|
14138
14138
|
})(u, n, o, C ? t : null), C, o.id, u.rasterBoundsBuffer, u.quadTriangleIndexBuffer, u.rasterBoundsSegments);
|
14139
14139
|
}
|
14140
14140
|
function xn(u, t, n, o, a, h) {
|
@@ -14151,9 +14151,9 @@ uniform ${A} ${C} u_${L};
|
|
14151
14151
|
const B = new wt(m, { width: b, height: b, data: null }, y.RGBA);
|
14152
14152
|
B.bind(y.LINEAR, y.CLAMP_TO_EDGE), L = t.fbo = m.createFramebuffer(b, b, !0, !1), L.colorAttachment.set(B.texture);
|
14153
14153
|
}
|
14154
|
-
m.bindFramebuffer.set(L.framebuffer), m.viewport.set([0, 0, b, b]), u.useProgram("hillshadePrepare").draw(m, y.TRIANGLES, o, a, h, Dt.disabled, ((B,
|
14155
|
-
const Z =
|
14156
|
-
return c.aQ(j, 0, c.X, -c.X, 0, 0, 1), c.J(j, j, [0, -c.X, 0]), { u_matrix: j, u_image: 1, u_dimension: [Z, Z], u_zoom: B.overscaledZ, u_unpack:
|
14154
|
+
m.bindFramebuffer.set(L.framebuffer), m.viewport.set([0, 0, b, b]), u.useProgram("hillshadePrepare").draw(m, y.TRIANGLES, o, a, h, Dt.disabled, ((B, N) => {
|
14155
|
+
const Z = N.stride, j = c.H();
|
14156
|
+
return c.aQ(j, 0, c.X, -c.X, 0, 0, 1), c.J(j, j, [0, -c.X, 0]), { u_matrix: j, u_image: 1, u_dimension: [Z, Z], u_zoom: B.overscaledZ, u_unpack: N.getUnpackVector() };
|
14157
14157
|
})(t.tileID, v), null, n.id, u.rasterBoundsBuffer, u.quadTriangleIndexBuffer, u.rasterBoundsSegments), t.needsHillshadePrepare = !1;
|
14158
14158
|
}
|
14159
14159
|
}
|
@@ -14179,7 +14179,7 @@ uniform ${A} ${C} u_${L};
|
|
14179
14179
|
function mt(u, t, n) {
|
14180
14180
|
const o = u.context, a = o.gl, h = n.posMatrix, m = u.useProgram("debug"), y = ct.disabled, v = Nt.disabled, b = u.colorModeForRenderPass(), A = "$debug", C = u.style.map.terrain && u.style.map.terrain.getTerrainData(n);
|
14181
14181
|
o.activeTexture.set(a.TEXTURE0);
|
14182
|
-
const L = t.getTileByID(n.key).latestRawTileData, B = Math.floor((L && L.byteLength || 0) / 1024),
|
14182
|
+
const L = t.getTileByID(n.key).latestRawTileData, B = Math.floor((L && L.byteLength || 0) / 1024), N = t.getTile(n).tileSize, Z = 512 / Math.min(N, 512) * (n.overscaledZ / u.transform.zoom) * 0.5;
|
14183
14183
|
let j = n.canonical.toString();
|
14184
14184
|
n.overscaledZ !== n.canonical.z && (j += ` => ${n.overscaledZ}`), function(H, K) {
|
14185
14185
|
H.initDebugOverlayCanvas();
|
@@ -14193,7 +14193,7 @@ uniform ${A} ${C} u_${L};
|
|
14193
14193
|
for (const b of n) {
|
14194
14194
|
const A = u.renderToTexture.getTexture(b), C = t.getTerrainData(b.tileID);
|
14195
14195
|
o.activeTexture.set(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, A.texture);
|
14196
|
-
const L = u.transform.calculatePosMatrix(b.tileID.toUnwrapped()), B = t.getMeshFrameDelta(u.transform.zoom),
|
14196
|
+
const L = u.transform.calculatePosMatrix(b.tileID.toUnwrapped()), B = t.getMeshFrameDelta(u.transform.zoom), N = u.transform.calculateFogMatrix(b.tileID.toUnwrapped()), Z = Ho(L, B, N, u.style.sky, u.transform.pitch);
|
14197
14197
|
y.draw(o, a.TRIANGLES, m, Nt.disabled, h, Dt.backCCW, Z, C, "terrain", v.vertexBuffer, v.indexBuffer, v.segments);
|
14198
14198
|
}
|
14199
14199
|
}
|
@@ -14298,14 +14298,14 @@ uniform ${A} ${C} u_${L};
|
|
14298
14298
|
(A.type === "custom" || C.length) && this.renderLayer(this, h[A.source], A, C);
|
14299
14299
|
}
|
14300
14300
|
if (this.context.bindFramebuffer.set(null), this.context.clear({ color: n.showOverdrawInspector ? c.aN.black : c.aN.transparent, depth: 1 }), this.clearStencil(), !((o = this.style.stylesheet) === null || o === void 0) && o.sky && function(b, A) {
|
14301
|
-
const C = b.context, L = C.gl, B = ((K, U, ee) => ({ u_sky_color: K.properties.get("sky-color"), u_horizon_color: K.properties.get("horizon-color"), u_horizon: (U.height / 2 + U.getHorizon()) * ee, u_sky_horizon_blend: K.properties.get("sky-horizon-blend") * U.height / 2 * ee }))(A, b.style.map.transform, b.pixelRatio),
|
14301
|
+
const C = b.context, L = C.gl, B = ((K, U, ee) => ({ u_sky_color: K.properties.get("sky-color"), u_horizon_color: K.properties.get("horizon-color"), u_horizon: (U.height / 2 + U.getHorizon()) * ee, u_sky_horizon_blend: K.properties.get("sky-horizon-blend") * U.height / 2 * ee }))(A, b.style.map.transform, b.pixelRatio), N = new ct(L.LEQUAL, ct.ReadWrite, [0, 1]), Z = Nt.disabled, j = b.colorModeForRenderPass(), H = b.useProgram("sky");
|
14302
14302
|
if (!A.mesh) {
|
14303
14303
|
const K = new c.aX();
|
14304
14304
|
K.emplaceBack(-1, -1), K.emplaceBack(1, -1), K.emplaceBack(1, 1), K.emplaceBack(-1, 1);
|
14305
14305
|
const U = new c.aY();
|
14306
14306
|
U.emplaceBack(0, 1, 2), U.emplaceBack(0, 2, 3), A.mesh = new Ll(C.createVertexBuffer(K, fs.members), C.createIndexBuffer(U), c.a0.simpleSegment(0, 0, K.length, U.length));
|
14307
14307
|
}
|
14308
|
-
H.draw(C, L.TRIANGLES,
|
14308
|
+
H.draw(C, L.TRIANGLES, N, Z, j, Dt.disabled, B, void 0, "sky", A.mesh.vertexBuffer, A.mesh.indexBuffer, A.mesh.segments);
|
14309
14309
|
}(this, this.style.sky), this._showOverdrawInspector = n.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a.length - 1; this.currentLayer >= 0; this.currentLayer--) {
|
14310
14310
|
const b = this.style._layers[a[this.currentLayer]], A = h[b.source], C = m[b.source];
|
14311
14311
|
this._renderTileClippingMasks(b, C), this.renderLayer(this, A, b, C);
|
@@ -14319,10 +14319,10 @@ uniform ${A} ${C} u_${L};
|
|
14319
14319
|
if (this.options.showTileBoundaries) {
|
14320
14320
|
const b = function(A, C) {
|
14321
14321
|
let L = null;
|
14322
|
-
const B = Object.values(A._layers).flatMap((H) => H.source && !H.isHidden(C) ? [A.sourceCaches[H.source]] : []),
|
14322
|
+
const B = Object.values(A._layers).flatMap((H) => H.source && !H.isHidden(C) ? [A.sourceCaches[H.source]] : []), N = B.filter((H) => H.getSource().type === "vector"), Z = B.filter((H) => H.getSource().type !== "vector"), j = (H) => {
|
14323
14323
|
(!L || L.getSource().maxzoom < H.getSource().maxzoom) && (L = H);
|
14324
14324
|
};
|
14325
|
-
return
|
14325
|
+
return N.forEach((H) => j(H)), L || Z.forEach((H) => j(H)), L;
|
14326
14326
|
}(this.style, this.transform.zoom);
|
14327
14327
|
b && function(A, C, L) {
|
14328
14328
|
for (let B = 0; B < L.length; B++) mt(A, C, L[B]);
|
@@ -14332,8 +14332,8 @@ uniform ${A} ${C} u_${L};
|
|
14332
14332
|
const A = b.transform.padding;
|
14333
14333
|
vn(b, b.transform.height - (A.top || 0), 3, uo), vn(b, A.bottom || 0, 3, Ss), ca(b, A.left || 0, 3, po), ca(b, b.transform.width - (A.right || 0), 3, Dl);
|
14334
14334
|
const C = b.transform.centerPoint;
|
14335
|
-
(function(L, B,
|
14336
|
-
Un(L, B - 1,
|
14335
|
+
(function(L, B, N, Z) {
|
14336
|
+
Un(L, B - 1, N - 10, 2, 20, Z), Un(L, B - 10, N - 1, 20, 2, Z);
|
14337
14337
|
})(b, C.x, b.transform.height - C.y, Nn);
|
14338
14338
|
}(this), this.context.setDefault();
|
14339
14339
|
}
|
@@ -14344,19 +14344,19 @@ uniform ${A} ${C} u_${L};
|
|
14344
14344
|
a || (a = t ? !c.a_(n, o) : !c.a$(n, o)), a || (a = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), a && (c.b0(n, o), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = !1, function(h, m) {
|
14345
14345
|
const y = h.context, v = y.gl, b = kt.unblended, A = new ct(v.LEQUAL, ct.ReadWrite, [0, 1]), C = m.getTerrainMesh(), L = m.sourceCache.getRenderableTiles(), B = h.useProgram("terrainDepth");
|
14346
14346
|
y.bindFramebuffer.set(m.getFramebuffer("depth").framebuffer), y.viewport.set([0, 0, h.width / devicePixelRatio, h.height / devicePixelRatio]), y.clear({ color: c.aN.transparent, depth: 1 });
|
14347
|
-
for (const
|
14348
|
-
const Z = m.getTerrainData(
|
14347
|
+
for (const N of L) {
|
14348
|
+
const Z = m.getTerrainData(N.tileID), j = { u_matrix: h.transform.calculatePosMatrix(N.tileID.toUnwrapped()), u_ele_delta: m.getMeshFrameDelta(h.transform.zoom) };
|
14349
14349
|
B.draw(y, v.TRIANGLES, A, Nt.disabled, b, Dt.backCCW, j, Z, "terrain", C.vertexBuffer, C.indexBuffer, C.segments);
|
14350
14350
|
}
|
14351
14351
|
y.bindFramebuffer.set(null), y.viewport.set([0, 0, h.width, h.height]);
|
14352
14352
|
}(this, this.style.map.terrain), function(h, m) {
|
14353
|
-
const y = h.context, v = y.gl, b = kt.unblended, A = new ct(v.LEQUAL, ct.ReadWrite, [0, 1]), C = m.getTerrainMesh(), L = m.getCoordsTexture(), B = m.sourceCache.getRenderableTiles(),
|
14353
|
+
const y = h.context, v = y.gl, b = kt.unblended, A = new ct(v.LEQUAL, ct.ReadWrite, [0, 1]), C = m.getTerrainMesh(), L = m.getCoordsTexture(), B = m.sourceCache.getRenderableTiles(), N = h.useProgram("terrainCoords");
|
14354
14354
|
y.bindFramebuffer.set(m.getFramebuffer("coords").framebuffer), y.viewport.set([0, 0, h.width / devicePixelRatio, h.height / devicePixelRatio]), y.clear({ color: c.aN.transparent, depth: 1 }), m.coordsIndex = [];
|
14355
14355
|
for (const Z of B) {
|
14356
14356
|
const j = m.getTerrainData(Z.tileID);
|
14357
14357
|
y.activeTexture.set(v.TEXTURE0), v.bindTexture(v.TEXTURE_2D, L.texture);
|
14358
14358
|
const H = { u_matrix: h.transform.calculatePosMatrix(Z.tileID.toUnwrapped()), u_terrain_coords_id: (255 - m.coordsIndex.length) / 255, u_texture: 0, u_ele_delta: m.getMeshFrameDelta(h.transform.zoom) };
|
14359
|
-
|
14359
|
+
N.draw(y, v.TRIANGLES, A, Nt.disabled, b, Dt.backCCW, H, j, "terrain", C.vertexBuffer, C.indexBuffer, C.segments), m.coordsIndex.push(Z.tileID.key);
|
14360
14360
|
}
|
14361
14361
|
y.bindFramebuffer.set(null), y.viewport.set([0, 0, h.width, h.height]);
|
14362
14362
|
}(this, this.style.map.terrain));
|
@@ -14367,12 +14367,12 @@ uniform ${A} ${C} u_${L};
|
|
14367
14367
|
(function(h, m, y, v, b) {
|
14368
14368
|
if (h.renderPass !== "translucent") return;
|
14369
14369
|
const A = Nt.disabled, C = h.colorModeForRenderPass();
|
14370
|
-
(y._unevaluatedLayout.hasValue("text-variable-anchor") || y._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(L, B,
|
14370
|
+
(y._unevaluatedLayout.hasValue("text-variable-anchor") || y._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(L, B, N, Z, j, H, K, U, ee) {
|
14371
14371
|
const ne = B.transform, le = Hs(), me = j === "map", be = H === "map";
|
14372
14372
|
for (const De of L) {
|
14373
|
-
const Re = Z.getTile(De), we = Re.getBucket(
|
14373
|
+
const Re = Z.getTile(De), we = Re.getBucket(N);
|
14374
14374
|
if (!we || !we.text || !we.text.segments.get().length) continue;
|
14375
|
-
const Se = c.ah(we.textSizeData, ne.zoom), Ve = rt(Re, 1, B.transform.zoom), Qe = Wr(De.posMatrix, be, me, B.transform, Ve), Pe =
|
14375
|
+
const Se = c.ah(we.textSizeData, ne.zoom), Ve = rt(Re, 1, B.transform.zoom), Qe = Wr(De.posMatrix, be, me, B.transform, Ve), Pe = N.layout.get("icon-text-fit") !== "none" && we.hasIconData();
|
14376
14376
|
if (Se) {
|
14377
14377
|
const Ee = Math.pow(2, ne.zoom - Re.tileID.overscaledZ), Ke = B.style.map.terrain ? (st, ht) => B.style.map.terrain.getElevation(De, st, ht) : null, Rt = le.translatePosition(ne, Re, K, U);
|
14378
14378
|
lo(we, me, be, ee, ne, Qe, De.posMatrix, Ee, Se, Pe, le, Rt, De.toUnwrapped(), Ke);
|
@@ -14386,7 +14386,7 @@ uniform ${A} ${C} u_${L};
|
|
14386
14386
|
if (h.renderPass !== "translucent") return;
|
14387
14387
|
const b = y.paint.get("circle-opacity"), A = y.paint.get("circle-stroke-width"), C = y.paint.get("circle-stroke-opacity"), L = !y.layout.get("circle-sort-key").isConstant();
|
14388
14388
|
if (b.constantOr(1) === 0 && (A.constantOr(1) === 0 || C.constantOr(1) === 0)) return;
|
14389
|
-
const B = h.context,
|
14389
|
+
const B = h.context, N = B.gl, Z = h.depthModeForSublayer(0, ct.ReadOnly), j = Nt.disabled, H = h.colorModeForRenderPass(), K = [];
|
14390
14390
|
for (let U = 0; U < v.length; U++) {
|
14391
14391
|
const ee = v[U], ne = m.getTile(ee), le = ne.getBucket(y);
|
14392
14392
|
if (!le) continue;
|
@@ -14399,7 +14399,7 @@ uniform ${A} ${C} u_${L};
|
|
14399
14399
|
L && K.sort((U, ee) => U.sortKey - ee.sortKey);
|
14400
14400
|
for (const U of K) {
|
14401
14401
|
const { programConfiguration: ee, program: ne, layoutVertexBuffer: le, indexBuffer: me, uniformValues: be, terrainData: De } = U.state;
|
14402
|
-
ne.draw(B,
|
14402
|
+
ne.draw(B, N.TRIANGLES, Z, j, H, Dt.disabled, be, De, y.id, le, me, U.segments, y.paint, h.transform.zoom, ee);
|
14403
14403
|
}
|
14404
14404
|
})(t, n, o, a);
|
14405
14405
|
break;
|
@@ -14407,35 +14407,35 @@ uniform ${A} ${C} u_${L};
|
|
14407
14407
|
(function(h, m, y, v) {
|
14408
14408
|
if (y.paint.get("heatmap-opacity") !== 0) if (h.renderPass === "offscreen") {
|
14409
14409
|
const b = h.context, A = b.gl, C = Nt.disabled, L = new kt([A.ONE, A.ONE], c.aN.transparent, [!0, !0, !0, !0]);
|
14410
|
-
(function(B,
|
14410
|
+
(function(B, N, Z) {
|
14411
14411
|
const j = B.gl;
|
14412
|
-
B.activeTexture.set(j.TEXTURE1), B.viewport.set([0, 0,
|
14412
|
+
B.activeTexture.set(j.TEXTURE1), B.viewport.set([0, 0, N.width / 4, N.height / 4]);
|
14413
14413
|
let H = Z.heatmapFbo;
|
14414
14414
|
if (H) j.bindTexture(j.TEXTURE_2D, H.colorAttachment.get()), B.bindFramebuffer.set(H.framebuffer);
|
14415
14415
|
else {
|
14416
14416
|
const K = j.createTexture();
|
14417
|
-
j.bindTexture(j.TEXTURE_2D, K), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_WRAP_S, j.CLAMP_TO_EDGE), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_WRAP_T, j.CLAMP_TO_EDGE), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_MIN_FILTER, j.LINEAR), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_MAG_FILTER, j.LINEAR), H = Z.heatmapFbo = B.createFramebuffer(
|
14417
|
+
j.bindTexture(j.TEXTURE_2D, K), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_WRAP_S, j.CLAMP_TO_EDGE), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_WRAP_T, j.CLAMP_TO_EDGE), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_MIN_FILTER, j.LINEAR), j.texParameteri(j.TEXTURE_2D, j.TEXTURE_MAG_FILTER, j.LINEAR), H = Z.heatmapFbo = B.createFramebuffer(N.width / 4, N.height / 4, !1, !1), function(U, ee, ne, le) {
|
14418
14418
|
var me, be;
|
14419
14419
|
const De = U.gl, Re = (me = U.HALF_FLOAT) !== null && me !== void 0 ? me : De.UNSIGNED_BYTE, we = (be = U.RGBA16F) !== null && be !== void 0 ? be : De.RGBA;
|
14420
14420
|
De.texImage2D(De.TEXTURE_2D, 0, we, ee.width / 4, ee.height / 4, 0, De.RGBA, Re, null), le.colorAttachment.set(ne);
|
14421
|
-
}(B,
|
14421
|
+
}(B, N, K, H);
|
14422
14422
|
}
|
14423
14423
|
})(b, h, y), b.clear({ color: c.aN.transparent });
|
14424
14424
|
for (let B = 0; B < v.length; B++) {
|
14425
|
-
const
|
14426
|
-
if (m.hasRenderableParent(
|
14427
|
-
const Z = m.getTile(
|
14425
|
+
const N = v[B];
|
14426
|
+
if (m.hasRenderableParent(N)) continue;
|
14427
|
+
const Z = m.getTile(N), j = Z.getBucket(y);
|
14428
14428
|
if (!j) continue;
|
14429
14429
|
const H = j.programConfigurations.get(y.id), K = h.useProgram("heatmap", H), { zoom: U } = h.transform;
|
14430
|
-
K.draw(b, A.TRIANGLES, ct.disabled, C, L, Dt.disabled, $i(
|
14430
|
+
K.draw(b, A.TRIANGLES, ct.disabled, C, L, Dt.disabled, $i(N.posMatrix, Z, U, y.paint.get("heatmap-intensity")), null, y.id, j.layoutVertexBuffer, j.indexBuffer, j.segments, y.paint, h.transform.zoom, H);
|
14431
14431
|
}
|
14432
14432
|
b.viewport.set([0, 0, h.width, h.height]);
|
14433
14433
|
} else h.renderPass === "translucent" && (h.context.setColorMode(h.colorModeForRenderPass()), function(b, A) {
|
14434
14434
|
const C = b.context, L = C.gl, B = A.heatmapFbo;
|
14435
14435
|
if (!B) return;
|
14436
14436
|
C.activeTexture.set(L.TEXTURE0), L.bindTexture(L.TEXTURE_2D, B.colorAttachment.get()), C.activeTexture.set(L.TEXTURE1);
|
14437
|
-
let
|
14438
|
-
|
14437
|
+
let N = A.colorRampTexture;
|
14438
|
+
N || (N = A.colorRampTexture = new wt(C, A.colorRamp, L.RGBA)), N.bind(L.LINEAR, L.CLAMP_TO_EDGE), b.useProgram("heatmapTexture").draw(C, L.TRIANGLES, ct.disabled, Nt.disabled, b.colorModeForRenderPass(), Dt.disabled, ((Z, j, H, K) => {
|
14439
14439
|
const U = c.H();
|
14440
14440
|
c.aQ(U, 0, Z.width, Z.height, 0, 0, 1);
|
14441
14441
|
const ee = Z.context.gl;
|
@@ -14449,14 +14449,14 @@ uniform ${A} ${C} u_${L};
|
|
14449
14449
|
if (h.renderPass !== "translucent") return;
|
14450
14450
|
const b = y.paint.get("line-opacity"), A = y.paint.get("line-width");
|
14451
14451
|
if (b.constantOr(1) === 0 || A.constantOr(1) === 0) return;
|
14452
|
-
const C = h.depthModeForSublayer(0, ct.ReadOnly), L = h.colorModeForRenderPass(), B = y.paint.get("line-dasharray"),
|
14452
|
+
const C = h.depthModeForSublayer(0, ct.ReadOnly), L = h.colorModeForRenderPass(), B = y.paint.get("line-dasharray"), N = y.paint.get("line-pattern"), Z = N.constantOr(1), j = y.paint.get("line-gradient"), H = y.getCrossfadeParameters(), K = Z ? "linePattern" : B ? "lineSDF" : j ? "lineGradient" : "line", U = h.context, ee = U.gl;
|
14453
14453
|
let ne = !0;
|
14454
14454
|
for (const le of v) {
|
14455
14455
|
const me = m.getTile(le);
|
14456
14456
|
if (Z && !me.patternsLoaded()) continue;
|
14457
14457
|
const be = me.getBucket(y);
|
14458
14458
|
if (!be) continue;
|
14459
|
-
const De = be.programConfigurations.get(y.id), Re = h.context.program.get(), we = h.useProgram(K, De), Se = ne || we.program !== Re, Ve = h.style.map.terrain && h.style.map.terrain.getTerrainData(le), Qe =
|
14459
|
+
const De = be.programConfigurations.get(y.id), Re = h.context.program.get(), we = h.useProgram(K, De), Se = ne || we.program !== Re, Ve = h.style.map.terrain && h.style.map.terrain.getTerrainData(le), Qe = N.constantOr(null);
|
14460
14460
|
if (Qe && me.imageAtlas) {
|
14461
14461
|
const Ke = me.imageAtlas, Rt = Ke.patternPositions[Qe.to.toString()], st = Ke.patternPositions[Qe.from.toString()];
|
14462
14462
|
Rt && st && De.setConstantPatternPositions(Rt, st);
|
@@ -14487,12 +14487,12 @@ uniform ${A} ${C} u_${L};
|
|
14487
14487
|
if (A.constantOr(1) === 0) return;
|
14488
14488
|
const C = h.colorModeForRenderPass(), L = y.paint.get("fill-pattern"), B = h.opaquePassEnabledForLayer() && !L.constantOr(1) && b.constantOr(c.aN.transparent).a === 1 && A.constantOr(0) === 1 ? "opaque" : "translucent";
|
14489
14489
|
if (h.renderPass === B) {
|
14490
|
-
const
|
14491
|
-
aa(h, m, y, v,
|
14490
|
+
const N = h.depthModeForSublayer(1, h.renderPass === "opaque" ? ct.ReadWrite : ct.ReadOnly);
|
14491
|
+
aa(h, m, y, v, N, C, !1);
|
14492
14492
|
}
|
14493
14493
|
if (h.renderPass === "translucent" && y.paint.get("fill-antialias")) {
|
14494
|
-
const
|
14495
|
-
aa(h, m, y, v,
|
14494
|
+
const N = h.depthModeForSublayer(y.getPaintProperty("fill-outline-color") ? 2 : 0, ct.ReadOnly);
|
14495
|
+
aa(h, m, y, v, N, C, !0);
|
14496
14496
|
}
|
14497
14497
|
})(t, n, o, a);
|
14498
14498
|
break;
|
@@ -14513,9 +14513,9 @@ uniform ${A} ${C} u_${L};
|
|
14513
14513
|
(function(h, m, y, v) {
|
14514
14514
|
if (h.renderPass !== "offscreen" && h.renderPass !== "translucent") return;
|
14515
14515
|
const b = h.context, A = h.depthModeForSublayer(0, ct.ReadOnly), C = h.colorModeForRenderPass(), [L, B] = h.renderPass === "translucent" ? h.stencilConfigForOverlap(v) : [{}, v];
|
14516
|
-
for (const
|
14517
|
-
const Z = m.getTile(
|
14518
|
-
Z.needsHillshadePrepare !== void 0 && Z.needsHillshadePrepare && h.renderPass === "offscreen" ? xn(h, Z, y, A, Nt.disabled, C) : h.renderPass === "translucent" && la(h,
|
14516
|
+
for (const N of B) {
|
14517
|
+
const Z = m.getTile(N);
|
14518
|
+
Z.needsHillshadePrepare !== void 0 && Z.needsHillshadePrepare && h.renderPass === "offscreen" ? xn(h, Z, y, A, Nt.disabled, C) : h.renderPass === "translucent" && la(h, N, Z, y, A, L[N.overscaledZ], C);
|
14519
14519
|
}
|
14520
14520
|
b.viewport.set([0, 0, h.width, h.height]);
|
14521
14521
|
})(t, n, o, a);
|
@@ -14523,7 +14523,7 @@ uniform ${A} ${C} u_${L};
|
|
14523
14523
|
case "raster":
|
14524
14524
|
(function(h, m, y, v) {
|
14525
14525
|
if (h.renderPass !== "translucent" || y.paint.get("raster-opacity") === 0 || !v.length) return;
|
14526
|
-
const b = h.context, A = b.gl, C = m.getSource(), L = h.useProgram("raster"), B = h.colorModeForRenderPass(), [
|
14526
|
+
const b = h.context, A = b.gl, C = m.getSource(), L = h.useProgram("raster"), B = h.colorModeForRenderPass(), [N, Z] = C instanceof Er ? [{}, v] : h.stencilConfigForOverlap(v), j = Z[Z.length - 1].overscaledZ, H = !h.options.moving;
|
14527
14527
|
for (const K of Z) {
|
14528
14528
|
const U = h.depthModeForSublayer(K.overscaledZ - j, y.paint.get("raster-opacity") === 1 ? ct.ReadWrite : ct.ReadOnly, A.LESS), ee = m.getTile(K);
|
14529
14529
|
ee.registerFadeDuration(y.paint.get("raster-fade-duration"));
|
@@ -14532,7 +14532,7 @@ uniform ${A} ${C} u_${L};
|
|
14532
14532
|
const Re = y.paint.get("raster-resampling") === "nearest" ? A.NEAREST : A.LINEAR;
|
14533
14533
|
b.activeTexture.set(A.TEXTURE0), ee.texture.bind(Re, A.CLAMP_TO_EDGE, A.LINEAR_MIPMAP_NEAREST), b.activeTexture.set(A.TEXTURE1), ne ? (ne.texture.bind(Re, A.CLAMP_TO_EDGE, A.LINEAR_MIPMAP_NEAREST), be = Math.pow(2, ne.tileID.overscaledZ - ee.tileID.overscaledZ), De = [ee.tileID.canonical.x * be % 1, ee.tileID.canonical.y * be % 1]) : ee.texture.bind(Re, A.CLAMP_TO_EDGE, A.LINEAR_MIPMAP_NEAREST), ee.texture.useMipmap && b.extTextureFilterAnisotropic && h.transform.pitch > 20 && A.texParameterf(A.TEXTURE_2D, b.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, b.extTextureFilterAnisotropicMax);
|
14534
14534
|
const we = h.style.map.terrain && h.style.map.terrain.getTerrainData(K), Se = we ? K : null, Ve = Se ? Se.posMatrix : h.transform.calculatePosMatrix(K.toUnwrapped(), H), Qe = Lc(Ve, De || [0, 0], be || 1, me, y);
|
14535
|
-
C instanceof Er ? L.draw(b, A.TRIANGLES, U, Nt.disabled, B, Dt.disabled, Qe, we, y.id, C.boundsBuffer, h.quadTriangleIndexBuffer, C.boundsSegments) : L.draw(b, A.TRIANGLES, U,
|
14535
|
+
C instanceof Er ? L.draw(b, A.TRIANGLES, U, Nt.disabled, B, Dt.disabled, Qe, we, y.id, C.boundsBuffer, h.quadTriangleIndexBuffer, C.boundsSegments) : L.draw(b, A.TRIANGLES, U, N[K.overscaledZ], B, Dt.disabled, Qe, we, y.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
|
14536
14536
|
}
|
14537
14537
|
})(t, n, o, a);
|
14538
14538
|
break;
|
@@ -14540,15 +14540,15 @@ uniform ${A} ${C} u_${L};
|
|
14540
14540
|
(function(h, m, y, v) {
|
14541
14541
|
const b = y.paint.get("background-color"), A = y.paint.get("background-opacity");
|
14542
14542
|
if (A === 0) return;
|
14543
|
-
const C = h.context, L = C.gl, B = h.transform,
|
14543
|
+
const C = h.context, L = C.gl, B = h.transform, N = B.tileSize, Z = y.paint.get("background-pattern");
|
14544
14544
|
if (h.isPatternMissing(Z)) return;
|
14545
14545
|
const j = !Z && b.a === 1 && A === 1 && h.opaquePassEnabledForLayer() ? "opaque" : "translucent";
|
14546
14546
|
if (h.renderPass !== j) return;
|
14547
|
-
const H = Nt.disabled, K = h.depthModeForSublayer(0, j === "opaque" ? ct.ReadWrite : ct.ReadOnly), U = h.colorModeForRenderPass(), ee = h.useProgram(Z ? "backgroundPattern" : "background"), ne = v || B.coveringTiles({ tileSize:
|
14547
|
+
const H = Nt.disabled, K = h.depthModeForSublayer(0, j === "opaque" ? ct.ReadWrite : ct.ReadOnly), U = h.colorModeForRenderPass(), ee = h.useProgram(Z ? "backgroundPattern" : "background"), ne = v || B.coveringTiles({ tileSize: N, terrain: h.style.map.terrain });
|
14548
14548
|
Z && (C.activeTexture.set(L.TEXTURE0), h.imageManager.bind(h.context));
|
14549
14549
|
const le = y.getCrossfadeParameters();
|
14550
14550
|
for (const me of ne) {
|
14551
|
-
const be = v ? me.posMatrix : h.transform.calculatePosMatrix(me.toUnwrapped()), De = Z ? Wo(be, A, h, Z, { tileID: me, tileSize:
|
14551
|
+
const be = v ? me.posMatrix : h.transform.calculatePosMatrix(me.toUnwrapped()), De = Z ? Wo(be, A, h, Z, { tileID: me, tileSize: N }, le) : to(be, A, b), Re = h.style.map.terrain && h.style.map.terrain.getTerrainData(me);
|
14552
14552
|
ee.draw(C, L.TRIANGLES, K, H, U, Dt.disabled, De, Re, y.id, h.tileExtentBuffer, h.quadTriangleIndexBuffer, h.tileExtentSegments);
|
14553
14553
|
}
|
14554
14554
|
})(t, 0, o, a);
|
@@ -14624,10 +14624,10 @@ uniform ${A} ${C} u_${L};
|
|
14624
14624
|
return c.b1(y, y, [v, v, 1 / y[3], v]);
|
14625
14625
|
}), m = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map((y) => {
|
14626
14626
|
const v = function(L, B) {
|
14627
|
-
var
|
14627
|
+
var N = B[0], Z = B[1], j = B[2], H = N * N + Z * Z + j * j;
|
14628
14628
|
return H > 0 && (H = 1 / Math.sqrt(H)), L[0] = B[0] * H, L[1] = B[1] * H, L[2] = B[2] * H, L;
|
14629
|
-
}([], function(L, B,
|
14630
|
-
var Z = B[0], j = B[1], H = B[2], K =
|
14629
|
+
}([], function(L, B, N) {
|
14630
|
+
var Z = B[0], j = B[1], H = B[2], K = N[0], U = N[1], ee = N[2];
|
14631
14631
|
return L[0] = j * ee - H * U, L[1] = H * K - Z * ee, L[2] = Z * U - j * K, L;
|
14632
14632
|
}([], $t([], h[y[0]], h[y[1]]), $t([], h[y[2]], h[y[1]]))), b = -((A = v)[0] * (C = h[y[1]])[0] + A[1] * C[1] + A[2] * C[2]);
|
14633
14633
|
var A, C;
|
@@ -14831,9 +14831,9 @@ uniform ${A} ${C} u_${L};
|
|
14831
14831
|
const m = this.pointCoordinate(this.getCameraPoint()), y = c.Z.fromLngLat(this.center), v = Math.pow(2, a), b = [v * m.x, v * m.y, 0], A = [v * y.x, v * y.y, 0], C = bn.fromInvProjectionMatrix(this.invModelViewProjectionMatrix, this.worldSize, a);
|
14832
14832
|
let L = t.minzoom || 0;
|
14833
14833
|
!t.terrain && this.pitch <= 60 && this._edgeInsets.top < 0.1 && (L = a);
|
14834
|
-
const B = t.terrain ? 2 / Math.min(this.tileSize, t.tileSize) * this.tileSize : 3,
|
14835
|
-
if (this._renderWorldCopies) for (let U = 1; U <= 3; U++) Z.push(
|
14836
|
-
for (Z.push(
|
14834
|
+
const B = t.terrain ? 2 / Math.min(this.tileSize, t.tileSize) * this.tileSize : 3, N = (U) => ({ aabb: new fo([U * v, 0, 0], [(U + 1) * v, v, 0]), zoom: 0, x: 0, y: 0, wrap: U, fullyVisible: !1 }), Z = [], j = [], H = a, K = t.reparseOverscaled ? h : a;
|
14835
|
+
if (this._renderWorldCopies) for (let U = 1; U <= 3; U++) Z.push(N(-U)), Z.push(N(U));
|
14836
|
+
for (Z.push(N(0)); Z.length > 0; ) {
|
14837
14837
|
const U = Z.pop(), ee = U.x, ne = U.y;
|
14838
14838
|
let le = U.fullyVisible;
|
14839
14839
|
if (!le) {
|
@@ -14966,11 +14966,11 @@ uniform ${A} ${C} u_${L};
|
|
14966
14966
|
m = c.Q(U[1]) * h, y = c.Q(U[0]) * h, y - m < B && (A = B / (y - m));
|
14967
14967
|
}
|
14968
14968
|
a && (v = c.b3(c.O(a[0]) * h, 0, h), b = c.b3(c.O(a[1]) * h, 0, h), b < v && (b += h), b - v < L && (C = L / (b - v)));
|
14969
|
-
const { x:
|
14969
|
+
const { x: N, y: Z } = this.project.call({ worldSize: h }, t);
|
14970
14970
|
let j, H;
|
14971
14971
|
const K = Math.max(C || 0, A || 0);
|
14972
14972
|
if (K) {
|
14973
|
-
const U = new c.P(C ? (b + v) / 2 :
|
14973
|
+
const U = new c.P(C ? (b + v) / 2 : N, A ? (y + m) / 2 : Z);
|
14974
14974
|
return o.center = this.unproject.call({ worldSize: h }, U).wrap(), o.zoom += this.scaleZoom(K), o;
|
14975
14975
|
}
|
14976
14976
|
if (this.latRange) {
|
@@ -14979,13 +14979,13 @@ uniform ${A} ${C} u_${L};
|
|
14979
14979
|
}
|
14980
14980
|
if (a) {
|
14981
14981
|
const U = (v + b) / 2;
|
14982
|
-
let ee =
|
14983
|
-
this._renderWorldCopies && (ee = c.b3(
|
14982
|
+
let ee = N;
|
14983
|
+
this._renderWorldCopies && (ee = c.b3(N, U - h / 2, U + h / 2));
|
14984
14984
|
const ne = L / 2;
|
14985
14985
|
ee - ne < v && (j = v + ne), ee + ne > b && (j = b - ne);
|
14986
14986
|
}
|
14987
14987
|
if (j !== void 0 || H !== void 0) {
|
14988
|
-
const U = new c.P(j ??
|
14988
|
+
const U = new c.P(j ?? N, H ?? Z);
|
14989
14989
|
o.center = this.unproject.call({ worldSize: h }, U).wrap();
|
14990
14990
|
}
|
14991
14991
|
return o;
|
@@ -15002,7 +15002,7 @@ uniform ${A} ${C} u_${L};
|
|
15002
15002
|
this.cameraToCenterDistance = 0.5 / Math.tan(this._fov / 2) * this.height, this._pixelPerMeter = c.b5(1, this.center.lat) * this.worldSize;
|
15003
15003
|
let a = c.ao(new Float64Array(16));
|
15004
15004
|
c.K(a, a, [this.width / 2, -this.height / 2, 1]), c.J(a, a, [1, -1, 0]), this.labelPlaneMatrix = a, a = c.ao(new Float64Array(16)), c.K(a, a, [1, -1, 1]), c.J(a, a, [-1, -1, 0]), c.K(a, a, [2 / this.width, 2 / this.height, 1]), this.glCoordMatrix = a;
|
15005
|
-
const h = this.cameraToCenterDistance + this._elevation * this._pixelPerMeter / Math.cos(this._pitch), m = Math.min(this.elevation, this.minElevationForCurrentTile), y = h - m * this._pixelPerMeter / Math.cos(this._pitch), v = m < 0 ? y : h, b = Math.PI / 2 + this._pitch, A = this._fov * (0.5 + t.y / this.height), C = Math.sin(A) * v / Math.sin(c.ad(Math.PI - b - A, 0.01, Math.PI - 0.01)), L = this.getHorizon(), B = 2 * Math.atan(L / this.cameraToCenterDistance) * (0.5 + t.y / (2 * L)),
|
15005
|
+
const h = this.cameraToCenterDistance + this._elevation * this._pixelPerMeter / Math.cos(this._pitch), m = Math.min(this.elevation, this.minElevationForCurrentTile), y = h - m * this._pixelPerMeter / Math.cos(this._pitch), v = m < 0 ? y : h, b = Math.PI / 2 + this._pitch, A = this._fov * (0.5 + t.y / this.height), C = Math.sin(A) * v / Math.sin(c.ad(Math.PI - b - A, 0.01, Math.PI - 0.01)), L = this.getHorizon(), B = 2 * Math.atan(L / this.cameraToCenterDistance) * (0.5 + t.y / (2 * L)), N = Math.sin(B) * v / Math.sin(c.ad(Math.PI - b - B, 0.01, Math.PI - 0.01)), Z = Math.min(C, N);
|
15006
15006
|
this.farZ = 1.01 * (Math.cos(Math.PI / 2 - this._pitch) * Z + v), this.nearZ = this.height / 50, a = new Float64Array(16), c.b6(a, this._fov, this.width / this.height, this.nearZ, this.farZ), a[8] = 2 * -t.x / this.width, a[9] = 2 * t.y / this.height, this.projectionMatrix = c.af(a), c.K(a, a, [1, -1, 1]), c.J(a, a, [0, 0, -this.cameraToCenterDistance]), c.b7(a, a, this._pitch), c.ae(a, a, this.angle), c.J(a, a, [-n, -o, 0]), this.mercatorMatrix = c.K([], a, [this.worldSize, this.worldSize, this.worldSize]), c.K(a, a, [1, 1, this._pixelPerMeter]), this.pixelMatrix = c.L(new Float64Array(16), this.labelPlaneMatrix, a), c.J(a, a, [0, 0, -this.elevation]), this.modelViewProjectionMatrix = a, this.invModelViewProjectionMatrix = c.at([], a), this.fogMatrix = new Float64Array(16), c.b6(this.fogMatrix, this._fov, this.width / this.height, h, this.farZ), this.fogMatrix[8] = 2 * -t.x / this.width, this.fogMatrix[9] = 2 * t.y / this.height, c.K(this.fogMatrix, this.fogMatrix, [1, -1, 1]), c.J(this.fogMatrix, this.fogMatrix, [0, 0, -this.cameraToCenterDistance]), c.b7(this.fogMatrix, this.fogMatrix, this._pitch), c.ae(this.fogMatrix, this.fogMatrix, this.angle), c.J(this.fogMatrix, this.fogMatrix, [-n, -o, 0]), c.K(this.fogMatrix, this.fogMatrix, [1, 1, this._pixelPerMeter]), c.J(this.fogMatrix, this.fogMatrix, [0, 0, -this.elevation]), this.pixelMatrix3D = c.L(new Float64Array(16), this.labelPlaneMatrix, a);
|
15007
15007
|
const j = this.width % 2 / 2, H = this.height % 2 / 2, K = Math.cos(this.angle), U = Math.sin(this.angle), ee = n - Math.round(n) + K * j + U * H, ne = o - Math.round(o) + K * H + U * j, le = new Float64Array(a);
|
15008
15008
|
if (c.J(le, le, [ee > 0.5 ? ee - 1 : ee, ne > 0.5 ? ne - 1 : ne, 0]), this.alignedModelViewProjectionMatrix = le, a = c.at(new Float64Array(16), this.pixelMatrix), !a) throw new Error("failed to invert matrix");
|
@@ -15083,10 +15083,10 @@ uniform ${A} ${C} u_${L};
|
|
15083
15083
|
if (A += t ? `/${m}/${y}/${o}` : `${o}/${y}/${m}`, (v || b) && (A += "/" + Math.round(10 * v) / 10), b && (A += `/${Math.round(b)}`), this._hashName) {
|
15084
15084
|
const C = this._hashName;
|
15085
15085
|
let L = !1;
|
15086
|
-
const B = window.location.hash.slice(1).split("&").map((
|
15087
|
-
const Z =
|
15088
|
-
return Z === C ? (L = !0, `${Z}=${A}`) :
|
15089
|
-
}).filter((
|
15086
|
+
const B = window.location.hash.slice(1).split("&").map((N) => {
|
15087
|
+
const Z = N.split("=")[0];
|
15088
|
+
return Z === C ? (L = !0, `${Z}=${A}`) : N;
|
15089
|
+
}).filter((N) => N);
|
15090
15090
|
return L || B.push(`${C}=${A}`), `#${B.join("&")}`;
|
15091
15091
|
}
|
15092
15092
|
return `#${A}`;
|
@@ -16028,8 +16028,8 @@ uniform ${A} ${C} u_${L};
|
|
16028
16028
|
const B = {};
|
16029
16029
|
for (const Z in this._previousActiveHandlers) b[Z] || (B[Z] = m);
|
16030
16030
|
this._previousActiveHandlers = b, (Object.keys(B).length || Ea(y)) && (this._changes.push([y, v, B]), this._triggerRenderFrame()), (Object.keys(b).length || Ea(y)) && this._map._stop(!0), this._updatingCamera = !1;
|
16031
|
-
const { cameraAnimation:
|
16032
|
-
|
16031
|
+
const { cameraAnimation: N } = y;
|
16032
|
+
N && (this._inertia.clear(), this._fireEvents({}, {}, !0), this._changes = [], N(this._map));
|
16033
16033
|
}, this._map = t, this._el = this._map.getCanvasContainer(), this._handlers = [], this._handlersById = {}, this._changes = [], this._inertia = new yo(t), this._bearingSnap = n.bearingSnap, this._previousActiveHandlers = {}, this._eventsInProgress = {}, this._addDefaultHandlers(n);
|
16034
16034
|
const o = this._el;
|
16035
16035
|
this._listeners = [[o, "touchstart", { passive: !0 }], [o, "touchmove", { passive: !1 }], [o, "touchend", void 0], [o, "touchcancel", void 0], [o, "mousedown", void 0], [o, "mousemove", void 0], [o, "mouseup", void 0], [document, "mousemove", { capture: !0 }], [document, "mouseup", void 0], [o, "mouseover", void 0], [o, "mouseout", void 0], [o, "dblclick", void 0], [o, "click", void 0], [o, "keydown", { capture: !1 }], [o, "keyup", void 0], [o, "wheel", { passive: !1 }], [o, "contextmenu", void 0], [window, "blur", void 0]];
|
@@ -16058,8 +16058,8 @@ uniform ${A} ${C} u_${L};
|
|
16058
16058
|
return new Lt({ clickTolerance: U, move: (ne, le) => ({ around: le, panDelta: le.sub(ne) }), activateOnStart: !0, moveStateManager: ee, enable: K, assignEvents: As });
|
16059
16059
|
})(t), B = new Cs(t, n);
|
16060
16060
|
n.dragPan = new Ji(o, L, B), this._add("mousePan", L), this._add("touchPan", B, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
|
16061
|
-
const
|
16062
|
-
n.touchZoomRotate = new ka(o, Z,
|
16061
|
+
const N = new Sa(), Z = new ba();
|
16062
|
+
n.touchZoomRotate = new ka(o, Z, N, v), this._add("touchRotate", N, ["touchPan", "touchZoom"]), this._add("touchZoom", Z, ["touchPan", "touchRotate"]), t.interactive && t.touchZoomRotate && n.touchZoomRotate.enable(t.touchZoomRotate);
|
16063
16063
|
const j = n.scrollZoom = new Aa(n, () => this._triggerRenderFrame());
|
16064
16064
|
this._add("scrollZoom", j, ["mousePan"]), t.interactive && t.scrollZoom && n.scrollZoom.enable(t.scrollZoom);
|
16065
16065
|
const H = n.keyboard = new Ia(n);
|
@@ -16237,7 +16237,7 @@ uniform ${A} ${C} u_${L};
|
|
16237
16237
|
a.padding = { top: we, bottom: we, right: we, left: we };
|
16238
16238
|
}
|
16239
16239
|
a.padding = c.e(h, a.padding);
|
16240
|
-
const m = this.transform, y = m.padding, v = new he(t, n), b = m.project(v.getNorthWest()), A = m.project(v.getNorthEast()), C = m.project(v.getSouthEast()), L = m.project(v.getSouthWest()), B = c.ba(-o),
|
16240
|
+
const m = this.transform, y = m.padding, v = new he(t, n), b = m.project(v.getNorthWest()), A = m.project(v.getNorthEast()), C = m.project(v.getSouthEast()), L = m.project(v.getSouthWest()), B = c.ba(-o), N = b.rotate(B), Z = A.rotate(B), j = C.rotate(B), H = L.rotate(B), K = new c.P(Math.max(N.x, Z.x, H.x, j.x), Math.max(N.y, Z.y, H.y, j.y)), U = new c.P(Math.min(N.x, Z.x, H.x, j.x), Math.min(N.y, Z.y, H.y, j.y)), ee = K.sub(U), ne = (m.width - (y.left + y.right + a.padding.left + a.padding.right)) / ee.x, le = (m.height - (y.top + y.bottom + a.padding.top + a.padding.bottom)) / ee.y;
|
16241
16241
|
if (le < 0 || ne < 0) return void c.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
|
16242
16242
|
const me = Math.min(m.scaleZoom(m.scale * Math.min(ne, le)), a.maxZoom), be = c.P.convert(a.offset), De = new c.P((a.padding.left - a.padding.right) / 2, (a.padding.top - a.padding.bottom) / 2).rotate(c.ba(o)), Re = be.add(De).mult(m.scale / m.zoomScale(me));
|
16243
16243
|
return { center: m.unproject(b.add(C).div(2).sub(Re)), zoom: me, bearing: o };
|
@@ -16261,17 +16261,17 @@ uniform ${A} ${C} u_${L};
|
|
16261
16261
|
const h = c.Z.fromLngLat(t, n), m = c.Z.fromLngLat(o, a), y = m.x - h.x, v = m.y - h.y, b = m.z - h.z, A = Math.hypot(y, v, b);
|
16262
16262
|
if (A === 0) throw new Error("Can't calculate camera options with same From and To");
|
16263
16263
|
const C = Math.hypot(y, v), L = this.transform.scaleZoom(this.transform.cameraToCenterDistance / A / this.transform.tileSize), B = 180 * Math.atan2(y, -v) / Math.PI;
|
16264
|
-
let
|
16265
|
-
return
|
16264
|
+
let N = 180 * Math.acos(C / A) / Math.PI;
|
16265
|
+
return N = b < 0 ? 90 - N : 90 + N, { center: m.toLngLat(), zoom: L, pitch: N, bearing: B };
|
16266
16266
|
}
|
16267
16267
|
easeTo(t, n) {
|
16268
16268
|
var o;
|
16269
16269
|
this._stop(!1, t.easeId), ((t = c.e({ offset: [0, 0], duration: 500, easing: c.b9 }, t)).animate === !1 || !t.essential && ae.prefersReducedMotion) && (t.duration = 0);
|
16270
16270
|
const a = this._getTransformForUpdate(), h = a.zoom, m = a.bearing, y = a.pitch, v = a.padding, b = "bearing" in t ? this._normalizeBearing(t.bearing, m) : m, A = "pitch" in t ? +t.pitch : y, C = "padding" in t ? t.padding : a.padding, L = c.P.convert(t.offset);
|
16271
16271
|
let B = a.centerPoint.add(L);
|
16272
|
-
const
|
16272
|
+
const N = a.pointLocation(B), { center: Z, zoom: j } = a.getConstrained(c.N.convert(t.center || N), (o = t.zoom) !== null && o !== void 0 ? o : h);
|
16273
16273
|
this._normalizeCenter(Z, a);
|
16274
|
-
const H = a.project(
|
16274
|
+
const H = a.project(N), K = a.project(Z).sub(H), U = a.zoomScale(j - h);
|
16275
16275
|
let ee, ne;
|
16276
16276
|
t.around && (ee = c.N.convert(t.around), ne = a.locationPoint(ee));
|
16277
16277
|
const le = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching };
|
@@ -16343,9 +16343,9 @@ uniform ${A} ${C} u_${L};
|
|
16343
16343
|
this.stop(), t = c.e({ offset: [0, 0], speed: 1.2, curve: 1.42, easing: c.b9 }, t);
|
16344
16344
|
const a = this._getTransformForUpdate(), h = a.zoom, m = a.bearing, y = a.pitch, v = a.padding, b = "bearing" in t ? this._normalizeBearing(t.bearing, m) : m, A = "pitch" in t ? +t.pitch : y, C = "padding" in t ? t.padding : a.padding, L = c.P.convert(t.offset);
|
16345
16345
|
let B = a.centerPoint.add(L);
|
16346
|
-
const
|
16346
|
+
const N = a.pointLocation(B), { center: Z, zoom: j } = a.getConstrained(c.N.convert(t.center || N), (o = t.zoom) !== null && o !== void 0 ? o : h);
|
16347
16347
|
this._normalizeCenter(Z, a);
|
16348
|
-
const H = a.zoomScale(j - h), K = a.project(
|
16348
|
+
const H = a.zoomScale(j - h), K = a.project(N), U = a.project(Z).sub(K);
|
16349
16349
|
let ee = t.curve;
|
16350
16350
|
const ne = Math.max(a.width, a.height), le = ne / H, me = U.mag();
|
16351
16351
|
if ("minZoom" in t) {
|
@@ -16578,9 +16578,9 @@ uniform ${A} ${C} u_${L};
|
|
16578
16578
|
if (!(n >= 0 && n < a && o >= 0 && o < a)) return 0;
|
16579
16579
|
const m = this.getTerrainData(t), y = (h = m.tile) === null || h === void 0 ? void 0 : h.dem;
|
16580
16580
|
if (!y) return 0;
|
16581
|
-
const v = function(
|
16581
|
+
const v = function(N, Z, j) {
|
16582
16582
|
var H = Z[0], K = Z[1];
|
16583
|
-
return
|
16583
|
+
return N[0] = j[0] * H + j[4] * K + j[12], N[1] = j[1] * H + j[5] * K + j[13], N;
|
16584
16584
|
}([], [n / a * c.X, o / a * c.X], m.u_terrain_matrix), b = [v[0] * y.dim, v[1] * y.dim], A = Math.floor(b[0]), C = Math.floor(b[1]), L = b[0] - A, B = b[1] - C;
|
16585
16585
|
return y.get(A, C) * (1 - L) * (1 - B) + y.get(A + 1, C) * L * (1 - B) + y.get(A, C + 1) * (1 - L) * B + y.get(A + 1, C + 1) * L * B;
|
16586
16586
|
}
|
@@ -16896,12 +16896,12 @@ uniform ${A} ${C} u_${L};
|
|
16896
16896
|
L.setAttributeNS(null, "d", "M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"), C.appendChild(L);
|
16897
16897
|
const B = oe.createNS("http://www.w3.org/2000/svg", "g");
|
16898
16898
|
B.setAttributeNS(null, "transform", "translate(6.0, 7.0)"), B.setAttributeNS(null, "fill", "#FFFFFF");
|
16899
|
-
const
|
16900
|
-
|
16899
|
+
const N = oe.createNS("http://www.w3.org/2000/svg", "g");
|
16900
|
+
N.setAttributeNS(null, "transform", "translate(8.0, 8.0)");
|
16901
16901
|
const Z = oe.createNS("http://www.w3.org/2000/svg", "circle");
|
16902
16902
|
Z.setAttributeNS(null, "fill", "#000000"), Z.setAttributeNS(null, "opacity", "0.25"), Z.setAttributeNS(null, "cx", "5.5"), Z.setAttributeNS(null, "cy", "5.5"), Z.setAttributeNS(null, "r", "5.4999962");
|
16903
16903
|
const j = oe.createNS("http://www.w3.org/2000/svg", "circle");
|
16904
|
-
j.setAttributeNS(null, "fill", "#FFFFFF"), j.setAttributeNS(null, "cx", "5.5"), j.setAttributeNS(null, "cy", "5.5"), j.setAttributeNS(null, "r", "5.4999962"),
|
16904
|
+
j.setAttributeNS(null, "fill", "#FFFFFF"), j.setAttributeNS(null, "cx", "5.5"), j.setAttributeNS(null, "cy", "5.5"), j.setAttributeNS(null, "r", "5.4999962"), N.appendChild(Z), N.appendChild(j), m.appendChild(y), m.appendChild(b), m.appendChild(C), m.appendChild(B), m.appendChild(N), n.appendChild(m), n.setAttributeNS(null, "height", o * this._scale + "px"), n.setAttributeNS(null, "width", a * this._scale + "px"), this._element.appendChild(n), this._offset = c.P.convert(t && t.offset || [0, -14]);
|
16905
16905
|
}
|
16906
16906
|
if (this._element.classList.add("maplibregl-marker"), this._element.addEventListener("dragstart", (n) => {
|
16907
16907
|
n.preventDefault();
|
@@ -18026,8 +18026,8 @@ const Yh = {
|
|
18026
18026
|
},
|
18027
18027
|
async setVisible(g, w = !0, P = this.map) {
|
18028
18028
|
if (!g) return;
|
18029
|
-
const E = (g == null ? void 0 : g.id) || g,
|
18030
|
-
if (!(
|
18029
|
+
const E = (g == null ? void 0 : g.id) || g, V = this.layerList.find((T) => T.id === g) || g;
|
18030
|
+
if (!(V != null && V.id)) throw new Error("MixinError: Layer has no id");
|
18031
18031
|
const X = P.getStyle().layers.filter((T) => T.id.match(E));
|
18032
18032
|
X.forEach((T) => {
|
18033
18033
|
P.setLayoutProperty(
|
@@ -18035,7 +18035,7 @@ const Yh = {
|
|
18035
18035
|
"visibility",
|
18036
18036
|
w ? "visible" : "none"
|
18037
18037
|
);
|
18038
|
-
}), !X.length && w && await this.addLayer(
|
18038
|
+
}), !X.length && w && await this.addLayer(V);
|
18039
18039
|
},
|
18040
18040
|
async addLayer(g, w = {}, P = this == null ? void 0 : this.map) {
|
18041
18041
|
var X, T, c;
|
@@ -18079,8 +18079,8 @@ const Yh = {
|
|
18079
18079
|
});
|
18080
18080
|
},
|
18081
18081
|
async addGeoJsonLayer(g, w = this.map) {
|
18082
|
-
var
|
18083
|
-
const P = g.data || ((
|
18082
|
+
var V;
|
18083
|
+
const P = g.data || ((V = g == null ? void 0 : g.url) != null && V.startsWith("http") ? "" : window.location.origin) + g.url;
|
18084
18084
|
w.addSource(g.id, { type: "geojson", data: P }), (qd(g.style) || g.layers || []).forEach((X) => {
|
18085
18085
|
const T = {
|
18086
18086
|
...X,
|
@@ -18102,7 +18102,7 @@ const Yh = {
|
|
18102
18102
|
}), w.getSource(g) && await w.removeSource(g);
|
18103
18103
|
},
|
18104
18104
|
async setFilter(g, w) {
|
18105
|
-
const P = this.layerList.find((
|
18105
|
+
const P = this.layerList.find((V) => V.id === g), E = await this.map.getSource(g);
|
18106
18106
|
await (E == null ? void 0 : E.setTiles([
|
18107
18107
|
`${window.location.origin}${P.url.split("&filter")[0]}${P.url.includes("?") ? "&" : "?"}filter=${w}${P.props ? `&props=${P.props}` : ""}`
|
18108
18108
|
]));
|
@@ -18122,8 +18122,8 @@ const Yh = {
|
|
18122
18122
|
}
|
18123
18123
|
}, hn = (g, w) => {
|
18124
18124
|
const P = g.__vccOpts || g;
|
18125
|
-
for (const [E,
|
18126
|
-
P[E] =
|
18125
|
+
for (const [E, V] of w)
|
18126
|
+
P[E] = V;
|
18127
18127
|
return P;
|
18128
18128
|
}, Hm = {}, Wm = {
|
18129
18129
|
class: "w-48 mx-auto mb-4",
|
@@ -18169,9 +18169,9 @@ const ig = Ic("string"), fr = Ic("function"), pp = Ic("number"), Pc = (g) => g !
|
|
18169
18169
|
function ul(g, w, { allOwnKeys: P = !1 } = {}) {
|
18170
18170
|
if (g === null || typeof g > "u")
|
18171
18171
|
return;
|
18172
|
-
let E,
|
18172
|
+
let E, V;
|
18173
18173
|
if (typeof g != "object" && (g = [g]), jo(g))
|
18174
|
-
for (E = 0,
|
18174
|
+
for (E = 0, V = g.length; E < V; E++)
|
18175
18175
|
w.call(null, g[E], E, g);
|
18176
18176
|
else {
|
18177
18177
|
const X = P ? Object.getOwnPropertyNames(g) : Object.keys(g), T = X.length;
|
@@ -18183,35 +18183,35 @@ function ul(g, w, { allOwnKeys: P = !1 } = {}) {
|
|
18183
18183
|
function fp(g, w) {
|
18184
18184
|
w = w.toLowerCase();
|
18185
18185
|
const P = Object.keys(g);
|
18186
|
-
let E = P.length,
|
18186
|
+
let E = P.length, V;
|
18187
18187
|
for (; E-- > 0; )
|
18188
|
-
if (
|
18189
|
-
return
|
18188
|
+
if (V = P[E], w === V.toLowerCase())
|
18189
|
+
return V;
|
18190
18190
|
return null;
|
18191
18191
|
}
|
18192
18192
|
const Us = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, mp = (g) => !hl(g) && g !== Us;
|
18193
18193
|
function $h() {
|
18194
|
-
const { caseless: g } = mp(this) && this || {}, w = {}, P = (E,
|
18195
|
-
const X = g && fp(w,
|
18194
|
+
const { caseless: g } = mp(this) && this || {}, w = {}, P = (E, V) => {
|
18195
|
+
const X = g && fp(w, V) || V;
|
18196
18196
|
xc(w[X]) && xc(E) ? w[X] = $h(w[X], E) : xc(E) ? w[X] = $h({}, E) : jo(E) ? w[X] = E.slice() : w[X] = E;
|
18197
18197
|
};
|
18198
|
-
for (let E = 0,
|
18198
|
+
for (let E = 0, V = arguments.length; E < V; E++)
|
18199
18199
|
arguments[E] && ul(arguments[E], P);
|
18200
18200
|
return w;
|
18201
18201
|
}
|
18202
|
-
const gg = (g, w, P, { allOwnKeys: E } = {}) => (ul(w, (
|
18203
|
-
P && fr(
|
18202
|
+
const gg = (g, w, P, { allOwnKeys: E } = {}) => (ul(w, (V, X) => {
|
18203
|
+
P && fr(V) ? g[X] = up(V, P) : g[X] = V;
|
18204
18204
|
}, { allOwnKeys: E }), g), _g = (g) => (g.charCodeAt(0) === 65279 && (g = g.slice(1)), g), yg = (g, w, P, E) => {
|
18205
18205
|
g.prototype = Object.create(w.prototype, E), g.prototype.constructor = g, Object.defineProperty(g, "super", {
|
18206
18206
|
value: w.prototype
|
18207
18207
|
}), P && Object.assign(g.prototype, P);
|
18208
18208
|
}, xg = (g, w, P, E) => {
|
18209
|
-
let
|
18209
|
+
let V, X, T;
|
18210
18210
|
const c = {};
|
18211
18211
|
if (w = w || {}, g == null) return w;
|
18212
18212
|
do {
|
18213
|
-
for (
|
18214
|
-
T =
|
18213
|
+
for (V = Object.getOwnPropertyNames(g), X = V.length; X-- > 0; )
|
18214
|
+
T = V[X], (!E || E(T, g, w)) && !c[T] && (w[T] = g[T], c[T] = !0);
|
18215
18215
|
g = P !== !1 && Qh(g);
|
18216
18216
|
} while (g && (!P || P(g, w)) && g !== Object.prototype);
|
18217
18217
|
return w;
|
@@ -18230,9 +18230,9 @@ const gg = (g, w, P, { allOwnKeys: E } = {}) => (ul(w, (N, X) => {
|
|
18230
18230
|
return P;
|
18231
18231
|
}, wg = /* @__PURE__ */ ((g) => (w) => g && w instanceof g)(typeof Uint8Array < "u" && Qh(Uint8Array)), Sg = (g, w) => {
|
18232
18232
|
const E = (g && g[Symbol.iterator]).call(g);
|
18233
|
-
let
|
18234
|
-
for (; (
|
18235
|
-
const X =
|
18233
|
+
let V;
|
18234
|
+
for (; (V = E.next()) && !V.done; ) {
|
18235
|
+
const X = V.value;
|
18236
18236
|
w.call(g, X[0], X[1]);
|
18237
18237
|
}
|
18238
18238
|
}, Tg = (g, w) => {
|
@@ -18243,14 +18243,14 @@ const gg = (g, w, P, { allOwnKeys: E } = {}) => (ul(w, (N, X) => {
|
|
18243
18243
|
return E;
|
18244
18244
|
}, Ig = Nr("HTMLFormElement"), Pg = (g) => g.toLowerCase().replace(
|
18245
18245
|
/[-_\s]([a-z\d])(\w*)/g,
|
18246
|
-
function(P, E,
|
18247
|
-
return E.toUpperCase() +
|
18246
|
+
function(P, E, V) {
|
18247
|
+
return E.toUpperCase() + V;
|
18248
18248
|
}
|
18249
18249
|
), Zd = (({ hasOwnProperty: g }) => (w, P) => g.call(w, P))(Object.prototype), Ag = Nr("RegExp"), gp = (g, w) => {
|
18250
18250
|
const P = Object.getOwnPropertyDescriptors(g), E = {};
|
18251
|
-
ul(P, (
|
18251
|
+
ul(P, (V, X) => {
|
18252
18252
|
let T;
|
18253
|
-
(T = w(
|
18253
|
+
(T = w(V, X, g)) !== !1 && (E[X] = T || V);
|
18254
18254
|
}), Object.defineProperties(g, E);
|
18255
18255
|
}, Cg = (g) => {
|
18256
18256
|
gp(g, (w, P) => {
|
@@ -18268,8 +18268,8 @@ const gg = (g, w, P, { allOwnKeys: E } = {}) => (ul(w, (N, X) => {
|
|
18268
18268
|
}
|
18269
18269
|
});
|
18270
18270
|
}, kg = (g, w) => {
|
18271
|
-
const P = {}, E = (
|
18272
|
-
|
18271
|
+
const P = {}, E = (V) => {
|
18272
|
+
V.forEach((X) => {
|
18273
18273
|
P[X] = !0;
|
18274
18274
|
});
|
18275
18275
|
};
|
@@ -18290,26 +18290,26 @@ function Dg(g) {
|
|
18290
18290
|
return !!(g && fr(g.append) && g[Symbol.toStringTag] === "FormData" && g[Symbol.iterator]);
|
18291
18291
|
}
|
18292
18292
|
const Lg = (g) => {
|
18293
|
-
const w = new Array(10), P = (E,
|
18293
|
+
const w = new Array(10), P = (E, V) => {
|
18294
18294
|
if (Pc(E)) {
|
18295
18295
|
if (w.indexOf(E) >= 0)
|
18296
18296
|
return;
|
18297
18297
|
if (!("toJSON" in E)) {
|
18298
|
-
w[
|
18298
|
+
w[V] = E;
|
18299
18299
|
const X = jo(E) ? [] : {};
|
18300
18300
|
return ul(E, (T, c) => {
|
18301
|
-
const _e = P(T,
|
18301
|
+
const _e = P(T, V + 1);
|
18302
18302
|
!hl(_e) && (X[c] = _e);
|
18303
|
-
}), w[
|
18303
|
+
}), w[V] = void 0, X;
|
18304
18304
|
}
|
18305
18305
|
}
|
18306
18306
|
return E;
|
18307
18307
|
};
|
18308
18308
|
return P(g, 0);
|
18309
|
-
}, Rg = Nr("AsyncFunction"), Bg = (g) => g && (Pc(g) || fr(g)) && fr(g.then) && fr(g.catch), yp = ((g, w) => g ? setImmediate : w ? ((P, E) => (Us.addEventListener("message", ({ source:
|
18310
|
-
|
18311
|
-
}, !1), (
|
18312
|
-
E.push(
|
18309
|
+
}, Rg = Nr("AsyncFunction"), Bg = (g) => g && (Pc(g) || fr(g)) && fr(g.then) && fr(g.catch), yp = ((g, w) => g ? setImmediate : w ? ((P, E) => (Us.addEventListener("message", ({ source: V, data: X }) => {
|
18310
|
+
V === Us && X === P && E.length && E.shift()();
|
18311
|
+
}, !1), (V) => {
|
18312
|
+
E.push(V), Us.postMessage(P, "*");
|
18313
18313
|
}))(`axios@${Math.random()}`, []) : (P) => setTimeout(P))(
|
18314
18314
|
typeof setImmediate == "function",
|
18315
18315
|
fr(Us.postMessage)
|
@@ -18373,8 +18373,8 @@ const Lg = (g) => {
|
|
18373
18373
|
setImmediate: yp,
|
18374
18374
|
asap: Fg
|
18375
18375
|
};
|
18376
|
-
function lt(g, w, P, E,
|
18377
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = g, this.name = "AxiosError", w && (this.code = w), P && (this.config = P), E && (this.request = E),
|
18376
|
+
function lt(g, w, P, E, V) {
|
18377
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = g, this.name = "AxiosError", w && (this.code = w), P && (this.config = P), E && (this.request = E), V && (this.response = V);
|
18378
18378
|
}
|
18379
18379
|
pe.inherits(lt, Error, {
|
18380
18380
|
toJSON: function() {
|
@@ -18417,11 +18417,11 @@ const xp = lt.prototype, vp = {};
|
|
18417
18417
|
});
|
18418
18418
|
Object.defineProperties(lt, vp);
|
18419
18419
|
Object.defineProperty(xp, "isAxiosError", { value: !0 });
|
18420
|
-
lt.from = (g, w, P, E,
|
18420
|
+
lt.from = (g, w, P, E, V, X) => {
|
18421
18421
|
const T = Object.create(xp);
|
18422
18422
|
return pe.toFlatObject(g, T, function(_e) {
|
18423
18423
|
return _e !== Error.prototype;
|
18424
|
-
}, (c) => c !== "isAxiosError"), lt.call(T, g.message, w, P, E,
|
18424
|
+
}, (c) => c !== "isAxiosError"), lt.call(T, g.message, w, P, E, V), T.cause = g, T.name = g.name, X && Object.assign(T, X), T;
|
18425
18425
|
};
|
18426
18426
|
const Og = null;
|
18427
18427
|
function qh(g) {
|
@@ -18431,8 +18431,8 @@ function bp(g) {
|
|
18431
18431
|
return pe.endsWith(g, "[]") ? g.slice(0, -2) : g;
|
18432
18432
|
}
|
18433
18433
|
function Hd(g, w, P) {
|
18434
|
-
return g ? g.concat(w).map(function(
|
18435
|
-
return
|
18434
|
+
return g ? g.concat(w).map(function(V, X) {
|
18435
|
+
return V = bp(V), !P && X ? "[" + V + "]" : V;
|
18436
18436
|
}).join(P ? "." : "") : w;
|
18437
18437
|
}
|
18438
18438
|
function Vg(g) {
|
@@ -18451,8 +18451,8 @@ function Ac(g, w, P) {
|
|
18451
18451
|
}, !1, function(tt, Ne) {
|
18452
18452
|
return !pe.isUndefined(Ne[tt]);
|
18453
18453
|
});
|
18454
|
-
const E = P.metaTokens,
|
18455
|
-
if (!pe.isFunction(
|
18454
|
+
const E = P.metaTokens, V = P.visitor || ve, X = P.dots, T = P.indexes, _e = (P.Blob || typeof Blob < "u" && Blob) && pe.isSpecCompliantForm(w);
|
18455
|
+
if (!pe.isFunction(V))
|
18456
18456
|
throw new TypeError("visitor must be a function");
|
18457
18457
|
function xe(qe) {
|
18458
18458
|
if (qe === null) return "";
|
@@ -18488,7 +18488,7 @@ function Ac(g, w, P) {
|
|
18488
18488
|
if (ae.indexOf(qe) !== -1)
|
18489
18489
|
throw Error("Circular reference detected in " + tt.join("."));
|
18490
18490
|
ae.push(qe), pe.forEach(qe, function(pt, zt) {
|
18491
|
-
(!(pe.isUndefined(pt) || pt === null) &&
|
18491
|
+
(!(pe.isUndefined(pt) || pt === null) && V.call(
|
18492
18492
|
w,
|
18493
18493
|
pt,
|
18494
18494
|
pe.isString(zt) ? zt.trim() : zt,
|
@@ -18527,8 +18527,8 @@ wp.toString = function(w) {
|
|
18527
18527
|
const P = w ? function(E) {
|
18528
18528
|
return w.call(this, E, Wd);
|
18529
18529
|
} : Wd;
|
18530
|
-
return this._pairs.map(function(
|
18531
|
-
return P(
|
18530
|
+
return this._pairs.map(function(V) {
|
18531
|
+
return P(V[0]) + "=" + P(V[1]);
|
18532
18532
|
}, "").join("&");
|
18533
18533
|
};
|
18534
18534
|
function Ug(g) {
|
@@ -18537,9 +18537,9 @@ function Ug(g) {
|
|
18537
18537
|
function Sp(g, w, P) {
|
18538
18538
|
if (!w)
|
18539
18539
|
return g;
|
18540
|
-
const E = P && P.encode || Ug,
|
18540
|
+
const E = P && P.encode || Ug, V = P && P.serialize;
|
18541
18541
|
let X;
|
18542
|
-
if (
|
18542
|
+
if (V ? X = V(w, P) : X = pe.isURLSearchParams(w) ? w.toString() : new eu(w, P).toString(E), X) {
|
18543
18543
|
const T = g.indexOf("#");
|
18544
18544
|
T !== -1 && (g = g.slice(0, T)), g += (g.indexOf("?") === -1 ? "?" : "&") + X;
|
18545
18545
|
}
|
@@ -18624,7 +18624,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Wg
|
|
18624
18624
|
};
|
18625
18625
|
function Jg(g, w) {
|
18626
18626
|
return Ac(g, new Vr.classes.URLSearchParams(), Object.assign({
|
18627
|
-
visitor: function(P, E,
|
18627
|
+
visitor: function(P, E, V, X) {
|
18628
18628
|
return Vr.isNode && pe.isBuffer(P) ? (this.append(E, P.toString("base64")), !1) : X.defaultVisitor.apply(this, arguments);
|
18629
18629
|
}
|
18630
18630
|
}, w));
|
@@ -18635,23 +18635,23 @@ function Kg(g) {
|
|
18635
18635
|
function Yg(g) {
|
18636
18636
|
const w = {}, P = Object.keys(g);
|
18637
18637
|
let E;
|
18638
|
-
const
|
18638
|
+
const V = P.length;
|
18639
18639
|
let X;
|
18640
|
-
for (E = 0; E <
|
18640
|
+
for (E = 0; E < V; E++)
|
18641
18641
|
X = P[E], w[X] = g[X];
|
18642
18642
|
return w;
|
18643
18643
|
}
|
18644
18644
|
function Ip(g) {
|
18645
|
-
function w(P, E,
|
18645
|
+
function w(P, E, V, X) {
|
18646
18646
|
let T = P[X++];
|
18647
18647
|
if (T === "__proto__") return !0;
|
18648
18648
|
const c = Number.isFinite(+T), _e = X >= P.length;
|
18649
|
-
return T = !T && pe.isArray(
|
18649
|
+
return T = !T && pe.isArray(V) ? V.length : T, _e ? (pe.hasOwnProp(V, T) ? V[T] = [V[T], E] : V[T] = E, !c) : ((!V[T] || !pe.isObject(V[T])) && (V[T] = []), w(P, E, V[T], X) && pe.isArray(V[T]) && (V[T] = Yg(V[T])), !c);
|
18650
18650
|
}
|
18651
18651
|
if (pe.isFormData(g) && pe.isFunction(g.entries)) {
|
18652
18652
|
const P = {};
|
18653
|
-
return pe.forEachEntry(g, (E,
|
18654
|
-
w(Kg(E),
|
18653
|
+
return pe.forEachEntry(g, (E, V) => {
|
18654
|
+
w(Kg(E), V, P, 0);
|
18655
18655
|
}), P;
|
18656
18656
|
}
|
18657
18657
|
return null;
|
@@ -18670,9 +18670,9 @@ const dl = {
|
|
18670
18670
|
transitional: Tp,
|
18671
18671
|
adapter: ["xhr", "http", "fetch"],
|
18672
18672
|
transformRequest: [function(w, P) {
|
18673
|
-
const E = P.getContentType() || "",
|
18673
|
+
const E = P.getContentType() || "", V = E.indexOf("application/json") > -1, X = pe.isObject(w);
|
18674
18674
|
if (X && pe.isHTMLForm(w) && (w = new FormData(w)), pe.isFormData(w))
|
18675
|
-
return
|
18675
|
+
return V ? JSON.stringify(Ip(w)) : w;
|
18676
18676
|
if (pe.isArrayBuffer(w) || pe.isBuffer(w) || pe.isStream(w) || pe.isFile(w) || pe.isBlob(w) || pe.isReadableStream(w))
|
18677
18677
|
return w;
|
18678
18678
|
if (pe.isArrayBufferView(w))
|
@@ -18692,14 +18692,14 @@ const dl = {
|
|
18692
18692
|
);
|
18693
18693
|
}
|
18694
18694
|
}
|
18695
|
-
return X ||
|
18695
|
+
return X || V ? (P.setContentType("application/json", !1), Qg(w)) : w;
|
18696
18696
|
}],
|
18697
18697
|
transformResponse: [function(w) {
|
18698
|
-
const P = this.transitional || dl.transitional, E = P && P.forcedJSONParsing,
|
18698
|
+
const P = this.transitional || dl.transitional, E = P && P.forcedJSONParsing, V = this.responseType === "json";
|
18699
18699
|
if (pe.isResponse(w) || pe.isReadableStream(w))
|
18700
18700
|
return w;
|
18701
|
-
if (w && pe.isString(w) && (E && !this.responseType ||
|
18702
|
-
const T = !(P && P.silentJSONParsing) &&
|
18701
|
+
if (w && pe.isString(w) && (E && !this.responseType || V)) {
|
18702
|
+
const T = !(P && P.silentJSONParsing) && V;
|
18703
18703
|
try {
|
18704
18704
|
return JSON.parse(w);
|
18705
18705
|
} catch (c) {
|
@@ -18755,10 +18755,10 @@ const e_ = pe.toObjectSet([
|
|
18755
18755
|
"user-agent"
|
18756
18756
|
]), t_ = (g) => {
|
18757
18757
|
const w = {};
|
18758
|
-
let P, E,
|
18758
|
+
let P, E, V;
|
18759
18759
|
return g && g.split(`
|
18760
18760
|
`).forEach(function(T) {
|
18761
|
-
|
18761
|
+
V = T.indexOf(":"), P = T.substring(0, V).trim().toLowerCase(), E = T.substring(V + 1).trim(), !(!P || w[P] && e_[P]) && (P === "set-cookie" ? w[P] ? w[P].push(E) : w[P] = [E] : w[P] = w[P] ? w[P] + ", " + E : E);
|
18762
18762
|
}), w;
|
18763
18763
|
}, Jd = Symbol("internals");
|
18764
18764
|
function sl(g) {
|
@@ -18775,10 +18775,10 @@ function i_(g) {
|
|
18775
18775
|
return w;
|
18776
18776
|
}
|
18777
18777
|
const r_ = (g) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(g.trim());
|
18778
|
-
function Vh(g, w, P, E,
|
18778
|
+
function Vh(g, w, P, E, V) {
|
18779
18779
|
if (pe.isFunction(E))
|
18780
18780
|
return E.call(this, w, P);
|
18781
|
-
if (
|
18781
|
+
if (V && (w = P), !!pe.isString(w)) {
|
18782
18782
|
if (pe.isString(E))
|
18783
18783
|
return w.indexOf(E) !== -1;
|
18784
18784
|
if (pe.isRegExp(E))
|
@@ -18792,8 +18792,8 @@ function s_(g, w) {
|
|
18792
18792
|
const P = pe.toCamelCase(" " + w);
|
18793
18793
|
["get", "set", "has"].forEach((E) => {
|
18794
18794
|
Object.defineProperty(g, E + P, {
|
18795
|
-
value: function(
|
18796
|
-
return this[E].call(this, w,
|
18795
|
+
value: function(V, X, T) {
|
18796
|
+
return this[E].call(this, w, V, X, T);
|
18797
18797
|
},
|
18798
18798
|
configurable: !0
|
18799
18799
|
});
|
@@ -18804,13 +18804,13 @@ class Qi {
|
|
18804
18804
|
w && this.set(w);
|
18805
18805
|
}
|
18806
18806
|
set(w, P, E) {
|
18807
|
-
const
|
18807
|
+
const V = this;
|
18808
18808
|
function X(c, _e, xe) {
|
18809
18809
|
const ve = sl(_e);
|
18810
18810
|
if (!ve)
|
18811
18811
|
throw new Error("header name must be a non-empty string");
|
18812
|
-
const ae = pe.findKey(
|
18813
|
-
(!ae ||
|
18812
|
+
const ae = pe.findKey(V, ve);
|
18813
|
+
(!ae || V[ae] === void 0 || xe === !0 || xe === void 0 && V[ae] !== !1) && (V[ae || _e] = vc(c));
|
18814
18814
|
}
|
18815
18815
|
const T = (c, _e) => pe.forEach(c, (xe, ve) => X(xe, ve, _e));
|
18816
18816
|
if (pe.isPlainObject(w) || w instanceof this.constructor)
|
@@ -18828,15 +18828,15 @@ class Qi {
|
|
18828
18828
|
if (w = sl(w), w) {
|
18829
18829
|
const E = pe.findKey(this, w);
|
18830
18830
|
if (E) {
|
18831
|
-
const
|
18831
|
+
const V = this[E];
|
18832
18832
|
if (!P)
|
18833
|
-
return
|
18833
|
+
return V;
|
18834
18834
|
if (P === !0)
|
18835
|
-
return i_(
|
18835
|
+
return i_(V);
|
18836
18836
|
if (pe.isFunction(P))
|
18837
|
-
return P.call(this,
|
18837
|
+
return P.call(this, V, E);
|
18838
18838
|
if (pe.isRegExp(P))
|
18839
|
-
return P.exec(
|
18839
|
+
return P.exec(V);
|
18840
18840
|
throw new TypeError("parser must be boolean|regexp|function");
|
18841
18841
|
}
|
18842
18842
|
}
|
@@ -18850,34 +18850,34 @@ class Qi {
|
|
18850
18850
|
}
|
18851
18851
|
delete(w, P) {
|
18852
18852
|
const E = this;
|
18853
|
-
let
|
18853
|
+
let V = !1;
|
18854
18854
|
function X(T) {
|
18855
18855
|
if (T = sl(T), T) {
|
18856
18856
|
const c = pe.findKey(E, T);
|
18857
|
-
c && (!P || Vh(E, E[c], c, P)) && (delete E[c],
|
18857
|
+
c && (!P || Vh(E, E[c], c, P)) && (delete E[c], V = !0);
|
18858
18858
|
}
|
18859
18859
|
}
|
18860
|
-
return pe.isArray(w) ? w.forEach(X) : X(w),
|
18860
|
+
return pe.isArray(w) ? w.forEach(X) : X(w), V;
|
18861
18861
|
}
|
18862
18862
|
clear(w) {
|
18863
18863
|
const P = Object.keys(this);
|
18864
|
-
let E = P.length,
|
18864
|
+
let E = P.length, V = !1;
|
18865
18865
|
for (; E--; ) {
|
18866
18866
|
const X = P[E];
|
18867
|
-
(!w || Vh(this, this[X], X, w, !0)) && (delete this[X],
|
18867
|
+
(!w || Vh(this, this[X], X, w, !0)) && (delete this[X], V = !0);
|
18868
18868
|
}
|
18869
|
-
return
|
18869
|
+
return V;
|
18870
18870
|
}
|
18871
18871
|
normalize(w) {
|
18872
18872
|
const P = this, E = {};
|
18873
|
-
return pe.forEach(this, (
|
18873
|
+
return pe.forEach(this, (V, X) => {
|
18874
18874
|
const T = pe.findKey(E, X);
|
18875
18875
|
if (T) {
|
18876
|
-
P[T] = vc(
|
18876
|
+
P[T] = vc(V), delete P[X];
|
18877
18877
|
return;
|
18878
18878
|
}
|
18879
18879
|
const c = w ? n_(X) : String(X).trim();
|
18880
|
-
c !== X && delete P[X], P[c] = vc(
|
18880
|
+
c !== X && delete P[X], P[c] = vc(V), E[c] = !0;
|
18881
18881
|
}), this;
|
18882
18882
|
}
|
18883
18883
|
concat(...w) {
|
@@ -18885,8 +18885,8 @@ class Qi {
|
|
18885
18885
|
}
|
18886
18886
|
toJSON(w) {
|
18887
18887
|
const P = /* @__PURE__ */ Object.create(null);
|
18888
|
-
return pe.forEach(this, (E,
|
18889
|
-
E != null && E !== !1 && (P[
|
18888
|
+
return pe.forEach(this, (E, V) => {
|
18889
|
+
E != null && E !== !1 && (P[V] = w && pe.isArray(E) ? E.join(", ") : E);
|
18890
18890
|
}), P;
|
18891
18891
|
}
|
18892
18892
|
[Symbol.iterator]() {
|
@@ -18904,15 +18904,15 @@ class Qi {
|
|
18904
18904
|
}
|
18905
18905
|
static concat(w, ...P) {
|
18906
18906
|
const E = new this(w);
|
18907
|
-
return P.forEach((
|
18907
|
+
return P.forEach((V) => E.set(V)), E;
|
18908
18908
|
}
|
18909
18909
|
static accessor(w) {
|
18910
18910
|
const E = (this[Jd] = this[Jd] = {
|
18911
18911
|
accessors: {}
|
18912
|
-
}).accessors,
|
18912
|
+
}).accessors, V = this.prototype;
|
18913
18913
|
function X(T) {
|
18914
18914
|
const c = sl(T);
|
18915
|
-
E[c] || (s_(
|
18915
|
+
E[c] || (s_(V, T), E[c] = !0);
|
18916
18916
|
}
|
18917
18917
|
return pe.isArray(w) ? w.forEach(X) : X(w), this;
|
18918
18918
|
}
|
@@ -18929,11 +18929,11 @@ pe.reduceDescriptors(Qi.prototype, ({ value: g }, w) => {
|
|
18929
18929
|
});
|
18930
18930
|
pe.freezeMethods(Qi);
|
18931
18931
|
function Nh(g, w) {
|
18932
|
-
const P = this || dl, E = w || P,
|
18932
|
+
const P = this || dl, E = w || P, V = Qi.from(E.headers);
|
18933
18933
|
let X = E.data;
|
18934
18934
|
return pe.forEach(g, function(c) {
|
18935
|
-
X = c.call(P, X,
|
18936
|
-
}),
|
18935
|
+
X = c.call(P, X, V.normalize(), w ? w.status : void 0);
|
18936
|
+
}), V.normalize(), X;
|
18937
18937
|
}
|
18938
18938
|
function Pp(g) {
|
18939
18939
|
return !!(g && g.__CANCEL__);
|
@@ -18961,36 +18961,36 @@ function o_(g) {
|
|
18961
18961
|
function a_(g, w) {
|
18962
18962
|
g = g || 10;
|
18963
18963
|
const P = new Array(g), E = new Array(g);
|
18964
|
-
let
|
18964
|
+
let V = 0, X = 0, T;
|
18965
18965
|
return w = w !== void 0 ? w : 1e3, function(_e) {
|
18966
18966
|
const xe = Date.now(), ve = E[X];
|
18967
|
-
T || (T = xe), P[
|
18967
|
+
T || (T = xe), P[V] = _e, E[V] = xe;
|
18968
18968
|
let ae = X, oe = 0;
|
18969
|
-
for (; ae !==
|
18969
|
+
for (; ae !== V; )
|
18970
18970
|
oe += P[ae++], ae = ae % g;
|
18971
|
-
if (
|
18971
|
+
if (V = (V + 1) % g, V === X && (X = (X + 1) % g), xe - T < w)
|
18972
18972
|
return;
|
18973
18973
|
const _t = ve && xe - ve;
|
18974
18974
|
return _t ? Math.round(oe * 1e3 / _t) : void 0;
|
18975
18975
|
};
|
18976
18976
|
}
|
18977
18977
|
function l_(g, w) {
|
18978
|
-
let P = 0, E = 1e3 / w,
|
18978
|
+
let P = 0, E = 1e3 / w, V, X;
|
18979
18979
|
const T = (xe, ve = Date.now()) => {
|
18980
|
-
P = ve,
|
18980
|
+
P = ve, V = null, X && (clearTimeout(X), X = null), g.apply(null, xe);
|
18981
18981
|
};
|
18982
18982
|
return [(...xe) => {
|
18983
18983
|
const ve = Date.now(), ae = ve - P;
|
18984
|
-
ae >= E ? T(xe, ve) : (
|
18985
|
-
X = null, T(
|
18984
|
+
ae >= E ? T(xe, ve) : (V = xe, X || (X = setTimeout(() => {
|
18985
|
+
X = null, T(V);
|
18986
18986
|
}, E - ae)));
|
18987
|
-
}, () =>
|
18987
|
+
}, () => V && T(V)];
|
18988
18988
|
}
|
18989
18989
|
const wc = (g, w, P = 3) => {
|
18990
18990
|
let E = 0;
|
18991
|
-
const
|
18991
|
+
const V = a_(50, 250);
|
18992
18992
|
return l_((X) => {
|
18993
|
-
const T = X.loaded, c = X.lengthComputable ? X.total : void 0, _e = T - E, xe =
|
18993
|
+
const T = X.loaded, c = X.lengthComputable ? X.total : void 0, _e = T - E, xe = V(_e), ve = T <= c;
|
18994
18994
|
E = T;
|
18995
18995
|
const ae = {
|
18996
18996
|
loaded: T,
|
@@ -19018,7 +19018,7 @@ const wc = (g, w, P = 3) => {
|
|
19018
19018
|
function() {
|
19019
19019
|
const w = /(msie|trident)/i.test(navigator.userAgent), P = document.createElement("a");
|
19020
19020
|
let E;
|
19021
|
-
function
|
19021
|
+
function V(X) {
|
19022
19022
|
let T = X;
|
19023
19023
|
return w && (P.setAttribute("href", T), T = P.href), P.setAttribute("href", T), {
|
19024
19024
|
href: P.href,
|
@@ -19031,8 +19031,8 @@ const wc = (g, w, P = 3) => {
|
|
19031
19031
|
pathname: P.pathname.charAt(0) === "/" ? P.pathname : "/" + P.pathname
|
19032
19032
|
};
|
19033
19033
|
}
|
19034
|
-
return E =
|
19035
|
-
const c = pe.isString(T) ?
|
19034
|
+
return E = V(window.location.href), function(T) {
|
19035
|
+
const c = pe.isString(T) ? V(T) : T;
|
19036
19036
|
return c.protocol === E.protocol && c.host === E.host;
|
19037
19037
|
};
|
19038
19038
|
}()
|
@@ -19046,9 +19046,9 @@ const wc = (g, w, P = 3) => {
|
|
19046
19046
|
), h_ = Vr.hasStandardBrowserEnv ? (
|
19047
19047
|
// Standard browser envs support document.cookie
|
19048
19048
|
{
|
19049
|
-
write(g, w, P, E,
|
19049
|
+
write(g, w, P, E, V, X) {
|
19050
19050
|
const T = [g + "=" + encodeURIComponent(w)];
|
19051
|
-
pe.isNumber(P) && T.push("expires=" + new Date(P).toGMTString()), pe.isString(E) && T.push("path=" + E), pe.isString(
|
19051
|
+
pe.isNumber(P) && T.push("expires=" + new Date(P).toGMTString()), pe.isString(E) && T.push("path=" + E), pe.isString(V) && T.push("domain=" + V), X === !0 && T.push("secure"), document.cookie = T.join("; ");
|
19052
19052
|
},
|
19053
19053
|
read(g) {
|
19054
19054
|
const w = document.cookie.match(new RegExp("(^|;\\s*)(" + g + ")=([^;]*)"));
|
@@ -19086,7 +19086,7 @@ function qs(g, w) {
|
|
19086
19086
|
function E(xe, ve, ae) {
|
19087
19087
|
return pe.isPlainObject(xe) && pe.isPlainObject(ve) ? pe.merge.call({ caseless: ae }, xe, ve) : pe.isPlainObject(ve) ? pe.merge({}, ve) : pe.isArray(ve) ? ve.slice() : ve;
|
19088
19088
|
}
|
19089
|
-
function
|
19089
|
+
function V(xe, ve, ae) {
|
19090
19090
|
if (pe.isUndefined(ve)) {
|
19091
19091
|
if (!pe.isUndefined(xe))
|
19092
19092
|
return E(void 0, xe, ae);
|
@@ -19137,16 +19137,16 @@ function qs(g, w) {
|
|
19137
19137
|
socketPath: T,
|
19138
19138
|
responseEncoding: T,
|
19139
19139
|
validateStatus: c,
|
19140
|
-
headers: (xe, ve) =>
|
19140
|
+
headers: (xe, ve) => V(Qd(xe), Qd(ve), !0)
|
19141
19141
|
};
|
19142
19142
|
return pe.forEach(Object.keys(Object.assign({}, g, w)), function(ve) {
|
19143
|
-
const ae = _e[ve] ||
|
19143
|
+
const ae = _e[ve] || V, oe = ae(g[ve], w[ve], ve);
|
19144
19144
|
pe.isUndefined(oe) && ae !== c || (P[ve] = oe);
|
19145
19145
|
}), P;
|
19146
19146
|
}
|
19147
19147
|
const kp = (g) => {
|
19148
19148
|
const w = qs({}, g);
|
19149
|
-
let { data: P, withXSRFToken: E, xsrfHeaderName:
|
19149
|
+
let { data: P, withXSRFToken: E, xsrfHeaderName: V, xsrfCookieName: X, headers: T, auth: c } = w;
|
19150
19150
|
w.headers = T = Qi.from(T), w.url = Sp(Cp(w.baseURL, w.url), g.params, g.paramsSerializer), c && T.set(
|
19151
19151
|
"Authorization",
|
19152
19152
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
@@ -19161,21 +19161,21 @@ const kp = (g) => {
|
|
19161
19161
|
}
|
19162
19162
|
}
|
19163
19163
|
if (Vr.hasStandardBrowserEnv && (E && pe.isFunction(E) && (E = E(w)), E || E !== !1 && c_(w.url))) {
|
19164
|
-
const xe =
|
19165
|
-
xe && T.set(
|
19164
|
+
const xe = V && X && h_.read(X);
|
19165
|
+
xe && T.set(V, xe);
|
19166
19166
|
}
|
19167
19167
|
return w;
|
19168
19168
|
}, p_ = typeof XMLHttpRequest < "u", f_ = p_ && function(g) {
|
19169
19169
|
return new Promise(function(P, E) {
|
19170
|
-
const
|
19171
|
-
let X =
|
19172
|
-
const T = Qi.from(
|
19173
|
-
let { responseType: c, onUploadProgress: _e, onDownloadProgress: xe } =
|
19170
|
+
const V = kp(g);
|
19171
|
+
let X = V.data;
|
19172
|
+
const T = Qi.from(V.headers).normalize();
|
19173
|
+
let { responseType: c, onUploadProgress: _e, onDownloadProgress: xe } = V, ve, ae, oe, _t, qe;
|
19174
19174
|
function tt() {
|
19175
|
-
_t && _t(), qe && qe(),
|
19175
|
+
_t && _t(), qe && qe(), V.cancelToken && V.cancelToken.unsubscribe(ve), V.signal && V.signal.removeEventListener("abort", ve);
|
19176
19176
|
}
|
19177
19177
|
let Ne = new XMLHttpRequest();
|
19178
|
-
Ne.open(
|
19178
|
+
Ne.open(V.method.toUpperCase(), V.url, !0), Ne.timeout = V.timeout;
|
19179
19179
|
function pt() {
|
19180
19180
|
if (!Ne)
|
19181
19181
|
return;
|
@@ -19202,9 +19202,9 @@ const kp = (g) => {
|
|
19202
19202
|
}, Ne.onerror = function() {
|
19203
19203
|
E(new lt("Network Error", lt.ERR_NETWORK, g, Ne)), Ne = null;
|
19204
19204
|
}, Ne.ontimeout = function() {
|
19205
|
-
let At =
|
19206
|
-
const It =
|
19207
|
-
|
19205
|
+
let At = V.timeout ? "timeout of " + V.timeout + "ms exceeded" : "timeout exceeded";
|
19206
|
+
const It = V.transitional || Tp;
|
19207
|
+
V.timeoutErrorMessage && (At = V.timeoutErrorMessage), E(new lt(
|
19208
19208
|
At,
|
19209
19209
|
It.clarifyTimeoutError ? lt.ETIMEDOUT : lt.ECONNABORTED,
|
19210
19210
|
g,
|
@@ -19212,10 +19212,10 @@ const kp = (g) => {
|
|
19212
19212
|
)), Ne = null;
|
19213
19213
|
}, X === void 0 && T.setContentType(null), "setRequestHeader" in Ne && pe.forEach(T.toJSON(), function(At, It) {
|
19214
19214
|
Ne.setRequestHeader(It, At);
|
19215
|
-
}), pe.isUndefined(
|
19215
|
+
}), pe.isUndefined(V.withCredentials) || (Ne.withCredentials = !!V.withCredentials), c && c !== "json" && (Ne.responseType = V.responseType), xe && ([oe, qe] = wc(xe, !0), Ne.addEventListener("progress", oe)), _e && Ne.upload && ([ae, _t] = wc(_e), Ne.upload.addEventListener("progress", ae), Ne.upload.addEventListener("loadend", _t)), (V.cancelToken || V.signal) && (ve = (Ae) => {
|
19216
19216
|
Ne && (E(!Ae || Ae.type ? new $o(null, g, Ne) : Ae), Ne.abort(), Ne = null);
|
19217
|
-
},
|
19218
|
-
const zt = o_(
|
19217
|
+
}, V.cancelToken && V.cancelToken.subscribe(ve), V.signal && (V.signal.aborted ? ve() : V.signal.addEventListener("abort", ve)));
|
19218
|
+
const zt = o_(V.url);
|
19219
19219
|
if (zt && Vr.protocols.indexOf(zt) === -1) {
|
19220
19220
|
E(new lt("Unsupported protocol " + zt + ":", lt.ERR_BAD_REQUEST, g));
|
19221
19221
|
return;
|
@@ -19224,7 +19224,7 @@ const kp = (g) => {
|
|
19224
19224
|
});
|
19225
19225
|
}, m_ = (g, w) => {
|
19226
19226
|
let P = new AbortController(), E;
|
19227
|
-
const
|
19227
|
+
const V = function(_e) {
|
19228
19228
|
if (!E) {
|
19229
19229
|
E = !0, T();
|
19230
19230
|
const xe = _e instanceof Error ? _e : this.reason;
|
@@ -19232,14 +19232,14 @@ const kp = (g) => {
|
|
19232
19232
|
}
|
19233
19233
|
};
|
19234
19234
|
let X = w && setTimeout(() => {
|
19235
|
-
|
19235
|
+
V(new lt(`timeout ${w} of ms exceeded`, lt.ETIMEDOUT));
|
19236
19236
|
}, w);
|
19237
19237
|
const T = () => {
|
19238
19238
|
g && (X && clearTimeout(X), X = null, g.forEach((_e) => {
|
19239
|
-
_e && (_e.removeEventListener ? _e.removeEventListener("abort",
|
19239
|
+
_e && (_e.removeEventListener ? _e.removeEventListener("abort", V) : _e.unsubscribe(V));
|
19240
19240
|
}), g = null);
|
19241
19241
|
};
|
19242
|
-
g.forEach((_e) => _e && _e.addEventListener && _e.addEventListener("abort",
|
19242
|
+
g.forEach((_e) => _e && _e.addEventListener && _e.addEventListener("abort", V));
|
19243
19243
|
const { signal: c } = P;
|
19244
19244
|
return c.unsubscribe = T, [c, () => {
|
19245
19245
|
X && clearTimeout(X), X = null;
|
@@ -19250,14 +19250,14 @@ const kp = (g) => {
|
|
19250
19250
|
yield g;
|
19251
19251
|
return;
|
19252
19252
|
}
|
19253
|
-
let E = 0,
|
19253
|
+
let E = 0, V;
|
19254
19254
|
for (; E < P; )
|
19255
|
-
|
19255
|
+
V = E + w, yield g.slice(E, V), E = V;
|
19256
19256
|
}, __ = async function* (g, w, P) {
|
19257
19257
|
for await (const E of g)
|
19258
19258
|
yield* g_(ArrayBuffer.isView(E) ? E : await P(String(E)), w);
|
19259
|
-
}, ep = (g, w, P, E,
|
19260
|
-
const X = __(g, w,
|
19259
|
+
}, ep = (g, w, P, E, V) => {
|
19260
|
+
const X = __(g, w, V);
|
19261
19261
|
let T = 0, c, _e = (xe) => {
|
19262
19262
|
c || (c = !0, E && E(xe));
|
19263
19263
|
};
|
@@ -19330,7 +19330,7 @@ const x_ = async (g) => {
|
|
19330
19330
|
url: w,
|
19331
19331
|
method: P,
|
19332
19332
|
data: E,
|
19333
|
-
signal:
|
19333
|
+
signal: V,
|
19334
19334
|
cancelToken: X,
|
19335
19335
|
timeout: T,
|
19336
19336
|
onDownloadProgress: c,
|
@@ -19341,7 +19341,7 @@ const x_ = async (g) => {
|
|
19341
19341
|
fetchOptions: oe
|
19342
19342
|
} = kp(g);
|
19343
19343
|
xe = xe ? (xe + "").toLowerCase() : "text";
|
19344
|
-
let [_t, qe] =
|
19344
|
+
let [_t, qe] = V || X || T ? m_([V, X], T) : [], tt, Ne;
|
19345
19345
|
const pt = () => {
|
19346
19346
|
!tt && setTimeout(() => {
|
19347
19347
|
_t && _t.unsubscribe();
|
@@ -19429,7 +19429,7 @@ const ip = (g) => `- ${g}`, w_ = (g) => pe.isFunction(g) || g === null || g ===
|
|
19429
19429
|
g = pe.isArray(g) ? g : [g];
|
19430
19430
|
const { length: w } = g;
|
19431
19431
|
let P, E;
|
19432
|
-
const
|
19432
|
+
const V = {};
|
19433
19433
|
for (let X = 0; X < w; X++) {
|
19434
19434
|
P = g[X];
|
19435
19435
|
let T;
|
@@ -19437,10 +19437,10 @@ const ip = (g) => `- ${g}`, w_ = (g) => pe.isFunction(g) || g === null || g ===
|
|
19437
19437
|
throw new lt(`Unknown adapter '${T}'`);
|
19438
19438
|
if (E)
|
19439
19439
|
break;
|
19440
|
-
|
19440
|
+
V[T || "#" + X] = E;
|
19441
19441
|
}
|
19442
19442
|
if (!E) {
|
19443
|
-
const X = Object.entries(
|
19443
|
+
const X = Object.entries(V).map(
|
19444
19444
|
([c, _e]) => `adapter ${c} ` + (_e === !1 ? "is not supported by the environment" : "is not available in the build")
|
19445
19445
|
);
|
19446
19446
|
let T = w ? X.length > 1 ? `since :
|
@@ -19485,17 +19485,17 @@ const Dp = "1.7.4", iu = {};
|
|
19485
19485
|
});
|
19486
19486
|
const np = {};
|
19487
19487
|
iu.transitional = function(w, P, E) {
|
19488
|
-
function
|
19488
|
+
function V(X, T) {
|
19489
19489
|
return "[Axios v" + Dp + "] Transitional option '" + X + "'" + T + (E ? ". " + E : "");
|
19490
19490
|
}
|
19491
19491
|
return (X, T, c) => {
|
19492
19492
|
if (w === !1)
|
19493
19493
|
throw new lt(
|
19494
|
-
|
19494
|
+
V(T, " has been removed" + (P ? " in " + P : "")),
|
19495
19495
|
lt.ERR_DEPRECATED
|
19496
19496
|
);
|
19497
19497
|
return P && !np[T] && (np[T] = !0, console.warn(
|
19498
|
-
|
19498
|
+
V(
|
19499
19499
|
T,
|
19500
19500
|
" has been deprecated since v" + P + " and will be removed in the near future"
|
19501
19501
|
)
|
@@ -19506,9 +19506,9 @@ function S_(g, w, P) {
|
|
19506
19506
|
if (typeof g != "object")
|
19507
19507
|
throw new lt("options must be an object", lt.ERR_BAD_OPTION_VALUE);
|
19508
19508
|
const E = Object.keys(g);
|
19509
|
-
let
|
19510
|
-
for (;
|
19511
|
-
const X = E[
|
19509
|
+
let V = E.length;
|
19510
|
+
for (; V-- > 0; ) {
|
19511
|
+
const X = E[V], T = w[X];
|
19512
19512
|
if (T) {
|
19513
19513
|
const c = g[X], _e = c === void 0 || T(c, X, g);
|
19514
19514
|
if (_e !== !0)
|
@@ -19543,9 +19543,9 @@ class js {
|
|
19543
19543
|
return await this._request(w, P);
|
19544
19544
|
} catch (E) {
|
19545
19545
|
if (E instanceof Error) {
|
19546
|
-
let
|
19547
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
19548
|
-
const X =
|
19546
|
+
let V;
|
19547
|
+
Error.captureStackTrace ? Error.captureStackTrace(V = {}) : V = new Error();
|
19548
|
+
const X = V.stack ? V.stack.replace(/^.+\n/, "") : "";
|
19549
19549
|
try {
|
19550
19550
|
E.stack ? X && !String(E.stack).endsWith(X.replace(/^.+\n.+\n/, "")) && (E.stack += `
|
19551
19551
|
` + X) : E.stack = X;
|
@@ -19557,14 +19557,14 @@ class js {
|
|
19557
19557
|
}
|
19558
19558
|
_request(w, P) {
|
19559
19559
|
typeof w == "string" ? (P = P || {}, P.url = w) : P = w || {}, P = qs(this.defaults, P);
|
19560
|
-
const { transitional: E, paramsSerializer:
|
19560
|
+
const { transitional: E, paramsSerializer: V, headers: X } = P;
|
19561
19561
|
E !== void 0 && Wh.assertOptions(E, {
|
19562
19562
|
silentJSONParsing: ss.transitional(ss.boolean),
|
19563
19563
|
forcedJSONParsing: ss.transitional(ss.boolean),
|
19564
19564
|
clarifyTimeoutError: ss.transitional(ss.boolean)
|
19565
|
-
}, !1),
|
19566
|
-
serialize:
|
19567
|
-
} : Wh.assertOptions(
|
19565
|
+
}, !1), V != null && (pe.isFunction(V) ? P.paramsSerializer = {
|
19566
|
+
serialize: V
|
19567
|
+
} : Wh.assertOptions(V, {
|
19568
19568
|
encode: ss.function,
|
19569
19569
|
serialize: ss.function
|
19570
19570
|
}, !0)), P.method = (P.method || this.defaults.method || "get").toLowerCase();
|
@@ -19653,17 +19653,17 @@ class ru {
|
|
19653
19653
|
P = X;
|
19654
19654
|
});
|
19655
19655
|
const E = this;
|
19656
|
-
this.promise.then((
|
19656
|
+
this.promise.then((V) => {
|
19657
19657
|
if (!E._listeners) return;
|
19658
19658
|
let X = E._listeners.length;
|
19659
19659
|
for (; X-- > 0; )
|
19660
|
-
E._listeners[X](
|
19660
|
+
E._listeners[X](V);
|
19661
19661
|
E._listeners = null;
|
19662
|
-
}), this.promise.then = (
|
19662
|
+
}), this.promise.then = (V) => {
|
19663
19663
|
let X;
|
19664
19664
|
const T = new Promise((c) => {
|
19665
19665
|
E.subscribe(c), X = c;
|
19666
|
-
}).then(
|
19666
|
+
}).then(V);
|
19667
19667
|
return T.cancel = function() {
|
19668
19668
|
E.unsubscribe(X);
|
19669
19669
|
}, T;
|
@@ -19704,8 +19704,8 @@ class ru {
|
|
19704
19704
|
static source() {
|
19705
19705
|
let w;
|
19706
19706
|
return {
|
19707
|
-
token: new ru(function(
|
19708
|
-
w =
|
19707
|
+
token: new ru(function(V) {
|
19708
|
+
w = V;
|
19709
19709
|
}),
|
19710
19710
|
cancel: w
|
19711
19711
|
};
|
@@ -19789,8 +19789,8 @@ Object.entries(Xh).forEach(([g, w]) => {
|
|
19789
19789
|
});
|
19790
19790
|
function Lp(g) {
|
19791
19791
|
const w = new js(g), P = up(js.prototype.request, w);
|
19792
|
-
return pe.extend(P, js.prototype, w, { allOwnKeys: !0 }), pe.extend(P, w, null, { allOwnKeys: !0 }), P.create = function(
|
19793
|
-
return Lp(qs(g,
|
19792
|
+
return pe.extend(P, js.prototype, w, { allOwnKeys: !0 }), pe.extend(P, w, null, { allOwnKeys: !0 }), P.create = function(V) {
|
19793
|
+
return Lp(qs(g, V));
|
19794
19794
|
}, P;
|
19795
19795
|
}
|
19796
19796
|
const Ht = Lp(dl);
|
@@ -19815,9 +19815,9 @@ Ht.HttpStatusCode = Xh;
|
|
19815
19815
|
Ht.default = Ht;
|
19816
19816
|
const jh = (g, w = 300) => {
|
19817
19817
|
let P;
|
19818
|
-
return function(...
|
19818
|
+
return function(...V) {
|
19819
19819
|
clearTimeout(P), P = setTimeout(() => {
|
19820
|
-
g.apply(this,
|
19820
|
+
g.apply(this, V);
|
19821
19821
|
}, w);
|
19822
19822
|
};
|
19823
19823
|
};
|
@@ -19840,15 +19840,15 @@ function P_(g, w, P = {}) {
|
|
19840
19840
|
}, w, P);
|
19841
19841
|
}
|
19842
19842
|
function Rp(g, w, P = {}) {
|
19843
|
-
for (const
|
19844
|
-
if (
|
19843
|
+
for (const V of g) {
|
19844
|
+
if (V.length < 4)
|
19845
19845
|
throw new Error(
|
19846
19846
|
"Each LinearRing of a Polygon must have 4 or more Positions."
|
19847
19847
|
);
|
19848
|
-
if (
|
19848
|
+
if (V[V.length - 1].length !== V[0].length)
|
19849
19849
|
throw new Error("First and last Position are not equivalent.");
|
19850
|
-
for (let X = 0; X <
|
19851
|
-
if (
|
19850
|
+
for (let X = 0; X < V[V.length - 1].length; X++)
|
19851
|
+
if (V[V.length - 1][X] !== V[0][X])
|
19852
19852
|
throw new Error("First and last Position are not equivalent.");
|
19853
19853
|
}
|
19854
19854
|
return kc({
|
@@ -19873,7 +19873,7 @@ function sp(g) {
|
|
19873
19873
|
}
|
19874
19874
|
function Op(g, w, P) {
|
19875
19875
|
if (g !== null)
|
19876
|
-
for (var E,
|
19876
|
+
for (var E, V, X, T, c, _e, xe, ve = 0, ae = 0, oe, _t = g.type, qe = _t === "FeatureCollection", tt = _t === "Feature", Ne = qe ? g.features.length : 1, pt = 0; pt < Ne; pt++) {
|
19877
19877
|
xe = qe ? g.features[pt].geometry : tt ? g.geometry : g, oe = xe ? xe.type === "GeometryCollection" : !1, c = oe ? xe.geometries.length : 1;
|
19878
19878
|
for (var zt = 0; zt < c; zt++) {
|
19879
19879
|
var Ae = 0, At = 0;
|
@@ -19912,9 +19912,9 @@ function Op(g, w, P) {
|
|
19912
19912
|
case "Polygon":
|
19913
19913
|
case "MultiLineString":
|
19914
19914
|
for (E = 0; E < _e.length; E++) {
|
19915
|
-
for (
|
19915
|
+
for (V = 0; V < _e[E].length - ve; V++) {
|
19916
19916
|
if (w(
|
19917
|
-
_e[E][
|
19917
|
+
_e[E][V],
|
19918
19918
|
ae,
|
19919
19919
|
pt,
|
19920
19920
|
Ae,
|
@@ -19929,10 +19929,10 @@ function Op(g, w, P) {
|
|
19929
19929
|
break;
|
19930
19930
|
case "MultiPolygon":
|
19931
19931
|
for (E = 0; E < _e.length; E++) {
|
19932
|
-
for (At = 0,
|
19933
|
-
for (X = 0; X < _e[E][
|
19932
|
+
for (At = 0, V = 0; V < _e[E].length; V++) {
|
19933
|
+
for (X = 0; X < _e[E][V].length - ve; X++) {
|
19934
19934
|
if (w(
|
19935
|
-
_e[E][
|
19935
|
+
_e[E][V][X],
|
19936
19936
|
ae,
|
19937
19937
|
pt,
|
19938
19938
|
Ae,
|
@@ -19967,8 +19967,8 @@ function Vp(g, w = {}) {
|
|
19967
19967
|
}), P;
|
19968
19968
|
}
|
19969
19969
|
function Np(g, w = {}) {
|
19970
|
-
const P = Vp(g), E = (P[0] + P[2]) / 2,
|
19971
|
-
return P_([E,
|
19970
|
+
const P = Vp(g), E = (P[0] + P[2]) / 2, V = (P[1] + P[3]) / 2;
|
19971
|
+
return P_([E, V], w.properties, w);
|
19972
19972
|
}
|
19973
19973
|
const A_ = {
|
19974
19974
|
mixins: [Yh],
|
@@ -20038,11 +20038,11 @@ const A_ = {
|
|
20038
20038
|
}
|
20039
20039
|
}
|
20040
20040
|
}, C_ = { class: "vs-map-slot-layers" }, k_ = ["onClick"], E_ = ["src"];
|
20041
|
-
function M_(g, w, P, E,
|
20041
|
+
function M_(g, w, P, E, V, X) {
|
20042
20042
|
return dt(), Ut("div", C_, [
|
20043
20043
|
(dt(!0), Ut(ol, null, al(P.baseLayers, (T, c) => (dt(), Ut("div", {
|
20044
20044
|
key: T.id,
|
20045
|
-
class: Uo(["vs-map-slot-layers__layer relative", { focused: T.id ==
|
20045
|
+
class: Uo(["vs-map-slot-layers__layer relative", { focused: T.id == V.selectedLayer }]),
|
20046
20046
|
onClick: (_e) => X.toggleLayerVisibility(T.id)
|
20047
20047
|
}, [
|
20048
20048
|
et("img", {
|
@@ -20071,7 +20071,7 @@ const z_ = /* @__PURE__ */ hn(A_, [["render", M_], ["__scopeId", "data-v-d4fbd7d
|
|
20071
20071
|
key: 0,
|
20072
20072
|
class: "flex justify-start items-center gap-2"
|
20073
20073
|
}, O_ = { class: "ml-1 text-[0.875rem]" };
|
20074
|
-
function V_(g, w, P, E,
|
20074
|
+
function V_(g, w, P, E, V, X) {
|
20075
20075
|
return dt(), Ut("div", L_, [
|
20076
20076
|
P.title ? (dt(), Ut("div", R_, Mn(P.title), 1)) : pr("", !0),
|
20077
20077
|
(dt(!0), Ut(ol, null, al(P.colors, (T) => (dt(), Ut("div", B_, [
|
@@ -20127,34 +20127,37 @@ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), U_ = {
|
|
20127
20127
|
},
|
20128
20128
|
async mounted() {
|
20129
20129
|
var g, w, P, E;
|
20130
|
-
|
20131
|
-
|
20132
|
-
|
20133
|
-
|
20134
|
-
|
20135
|
-
|
20136
|
-
|
20137
|
-
|
20138
|
-
|
20139
|
-
|
20140
|
-
|
20141
|
-
|
20142
|
-
|
20143
|
-
|
20144
|
-
|
20145
|
-
|
20146
|
-
|
20147
|
-
|
20148
|
-
|
20149
|
-
|
20130
|
+
try {
|
20131
|
+
if (await this.createMap(), (g = this.row) != null && g.geom) {
|
20132
|
+
const { type: V, coordinates: X } = this.row.geom;
|
20133
|
+
console.log(this.row);
|
20134
|
+
let T;
|
20135
|
+
switch (V) {
|
20136
|
+
case "Polygon":
|
20137
|
+
T = Rp(X);
|
20138
|
+
break;
|
20139
|
+
case "MultiPolygon":
|
20140
|
+
T = Fp(X);
|
20141
|
+
break;
|
20142
|
+
case "MultiPoint":
|
20143
|
+
T = Bp(X);
|
20144
|
+
break;
|
20145
|
+
default:
|
20146
|
+
(w = this.map) == null || w.fitBounds([X, X], {
|
20147
|
+
maxZoom: this.zoom,
|
20148
|
+
padding: 30
|
20149
|
+
}), this.isSelectObj = !0;
|
20150
|
+
return;
|
20151
|
+
}
|
20152
|
+
const c = Np(T).geometry.coordinates;
|
20153
|
+
(P = this.map) == null || P.fitBounds([c, c], {
|
20154
|
+
maxZoom: this.zoom,
|
20155
|
+
padding: 30
|
20156
|
+
});
|
20150
20157
|
}
|
20151
|
-
|
20152
|
-
|
20153
|
-
maxZoom: this.zoom,
|
20154
|
-
padding: 30
|
20155
|
-
});
|
20158
|
+
(E = this.map) == null || E.fitBounds(this.center);
|
20159
|
+
} catch {
|
20156
20160
|
}
|
20157
|
-
(E = this.map) == null || E.fitBounds(this.center);
|
20158
20161
|
},
|
20159
20162
|
watch: {
|
20160
20163
|
filtersParam(g) {
|
@@ -20173,10 +20176,10 @@ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), U_ = {
|
|
20173
20176
|
const {
|
20174
20177
|
data: { rows: w }
|
20175
20178
|
} = await Ht.get(`/api/data/${this.table}/${this.colorAttr}`), P = w.reduce(
|
20176
|
-
(E,
|
20179
|
+
(E, V, X) => V != null && V.id ? [
|
20177
20180
|
...E,
|
20178
|
-
|
20179
|
-
|
20181
|
+
V.id.toString(),
|
20182
|
+
V.color || g[0][X % 5]
|
20180
20183
|
] : E,
|
20181
20184
|
["match", ["get", this.colorAttr]]
|
20182
20185
|
);
|
@@ -20187,7 +20190,7 @@ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), U_ = {
|
|
20187
20190
|
},
|
20188
20191
|
async handleMapLoad() {
|
20189
20192
|
var P, E;
|
20190
|
-
const g = await this.getColorStyle(), w = ((E = (P = location.search.split("&").find((
|
20193
|
+
const g = await this.getColorStyle(), w = ((E = (P = location.search.split("&").find((V) => V.includes("filter="))) == null ? void 0 : P.split("filter=")) == null ? void 0 : E[1]) || "";
|
20191
20194
|
await this.addLayer({
|
20192
20195
|
id: this.table,
|
20193
20196
|
service: "vector",
|
@@ -20264,7 +20267,7 @@ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), U_ = {
|
|
20264
20267
|
}
|
20265
20268
|
}
|
20266
20269
|
}, j_ = { class: "vs-map-portal relative" };
|
20267
|
-
function $_(g, w, P, E,
|
20270
|
+
function $_(g, w, P, E, V, X) {
|
20268
20271
|
const T = Yi("MapLegend"), c = Yi("MapSlotLayers");
|
20269
20272
|
return dt(), Ut("div", j_, [
|
20270
20273
|
et("div", {
|
@@ -20274,13 +20277,13 @@ function $_(g, w, P, E, N, X) {
|
|
20274
20277
|
style: ap({ height: P.height })
|
20275
20278
|
}, null, 4),
|
20276
20279
|
Jh(cn(T, {
|
20277
|
-
colors:
|
20280
|
+
colors: V.colors,
|
20278
20281
|
title: P.legendname
|
20279
20282
|
}, null, 8, ["colors", "title"]), [
|
20280
20283
|
[Kh, P.legend]
|
20281
20284
|
]),
|
20282
20285
|
cn(c, {
|
20283
|
-
map:
|
20286
|
+
map: V.map,
|
20284
20287
|
baseLayers: P.basemap
|
20285
20288
|
}, null, 8, ["map", "baseLayers"])
|
20286
20289
|
]);
|
@@ -20420,7 +20423,7 @@ const by = /* @__PURE__ */ hn(my, [["render", vy]]), wy = {
|
|
20420
20423
|
key: 0,
|
20421
20424
|
class: "flex justify-end gap-x-2"
|
20422
20425
|
};
|
20423
|
-
function zy(g, w, P, E,
|
20426
|
+
function zy(g, w, P, E, V, X) {
|
20424
20427
|
return dt(), ln(Bm, { to: "#modal" }, [
|
20425
20428
|
cn(jd, { name: "fade" }, {
|
20426
20429
|
default: ll(() => [
|
@@ -20577,13 +20580,13 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20577
20580
|
g || this.getData();
|
20578
20581
|
},
|
20579
20582
|
async regionSelectValue(g, w) {
|
20580
|
-
var
|
20583
|
+
var V, X;
|
20581
20584
|
if (!this.regionSelectValue) {
|
20582
20585
|
this.map.removeSource("region-search-id");
|
20583
20586
|
return;
|
20584
20587
|
}
|
20585
20588
|
g && this.selectedId && this.closeObjCard(), this.polyline = this.regionSelectValue.encoded_geom, this.getData();
|
20586
|
-
const P = ((
|
20589
|
+
const P = ((V = this.regionSelectValue) == null ? void 0 : V.geom) || $s.toGeoJSON(this.regionSelectValue.encoded_geom), E = this.map.getSource("region-search-id");
|
20587
20590
|
if (this.currentBbox = Vp(P), E)
|
20588
20591
|
E.setData({
|
20589
20592
|
type: "Feature",
|
@@ -20623,8 +20626,8 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20623
20626
|
mounted() {
|
20624
20627
|
this.rows || this.getData();
|
20625
20628
|
const w = new URLSearchParams(window.location.search).get("filter"), P = w == null ? void 0 : w.split("|");
|
20626
|
-
P == null || P.forEach((
|
20627
|
-
const [X, T] =
|
20629
|
+
P == null || P.forEach((V) => {
|
20630
|
+
const [X, T] = V.split("=");
|
20628
20631
|
T != null && T.includes(",") ? this.mountedFilter[X] = T == null ? void 0 : T.split(",") : this.mountedFilter[X] = T;
|
20629
20632
|
});
|
20630
20633
|
const E = new URLSearchParams(window.location.search);
|
@@ -20656,7 +20659,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20656
20659
|
polyline: this.polyline
|
20657
20660
|
};
|
20658
20661
|
this.filtersParam !== "" && this.filtersParam !== "no-url" ? P.filter = this.filtersParam : P.filter = decodeURIComponent(
|
20659
|
-
((w = (g = location.search.split("&").find((
|
20662
|
+
((w = (g = location.search.split("&").find((V) => V.includes("filter="))) == null ? void 0 : g.split("filter=")) == null ? void 0 : w[1]) || ""
|
20660
20663
|
), this.addressSelectValue && (P.filter += P.filter ? `&address_id=${this.addressSelectValue.id}` : `address_id=${this.addressSelectValue.id}`);
|
20661
20664
|
const { data: E } = await Ht.get(`/api/data/${this.table}`, { params: P });
|
20662
20665
|
this.tableData = E == null ? void 0 : E.rows, this.total = E.filtered, this.filtered = E.filtered;
|
@@ -20795,8 +20798,8 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20795
20798
|
return;
|
20796
20799
|
const P = window.location.pathname, E = new URLSearchParams(window.location.search);
|
20797
20800
|
E.set("id", `${(X = w[0]) == null ? void 0 : X.properties.id}`), this.getObjectData((c = (T = w[0]) == null ? void 0 : T.properties) == null ? void 0 : c.id);
|
20798
|
-
const
|
20799
|
-
window.history.pushState({}, "",
|
20801
|
+
const V = `${P}?${E.toString()}`;
|
20802
|
+
window.history.pushState({}, "", V), this.isSelectObj = !0, g.lngLat && ((oe = this.map) == null || oe.fitBounds(
|
20800
20803
|
[
|
20801
20804
|
[(_e = g.lngLat) == null ? void 0 : _e.lng, (xe = g.lngLat) == null ? void 0 : xe.lat],
|
20802
20805
|
[(ve = g.lngLat) == null ? void 0 : ve.lng, (ae = g.lngLat) == null ? void 0 : ae.lat]
|
@@ -20818,9 +20821,9 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20818
20821
|
this.isMapVisible = !0;
|
20819
20822
|
const P = await (await fetch(`/api/data/${this.table}/${g.id}`)).json();
|
20820
20823
|
this.selectedRow = ((T = P == null ? void 0 : P.rows) == null ? void 0 : T[0]) || g;
|
20821
|
-
const E = window.location.pathname,
|
20822
|
-
|
20823
|
-
const X = `${E}?${
|
20824
|
+
const E = window.location.pathname, V = new URLSearchParams(window.location.search);
|
20825
|
+
V.set("id", `${g.id}`);
|
20826
|
+
const X = `${E}?${V.toString()}`;
|
20824
20827
|
if (window.history.pushState({}, "", X), this.checkUrl(), g != null && g.geom) {
|
20825
20828
|
const { type: xe, coordinates: ve } = g.geom;
|
20826
20829
|
let ae;
|
@@ -20867,8 +20870,8 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20867
20870
|
(g = this.map) != null && g.getLayer("highlighted-polygon") && ((w = this.map) == null || w.removeLayer("highlighted-polygon"), (P = this.map) == null || P.removeSource("highlighted-polygon"));
|
20868
20871
|
},
|
20869
20872
|
highlightPolygon(g) {
|
20870
|
-
var w, P, E,
|
20871
|
-
this.deletePulsePoint(), this.deleteHighlighPolygon(), (
|
20873
|
+
var w, P, E, V, X, T;
|
20874
|
+
this.deletePulsePoint(), this.deleteHighlighPolygon(), (V = this.map) == null || V.addSource("highlighted-polygon", {
|
20872
20875
|
type: "geojson",
|
20873
20876
|
data: {
|
20874
20877
|
geometry: {
|
@@ -20915,14 +20918,14 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20915
20918
|
}), (T = this.map) == null || T.moveLayer("highlighted-polygon");
|
20916
20919
|
},
|
20917
20920
|
async handleMapHover(g) {
|
20918
|
-
var
|
20921
|
+
var V, X, T;
|
20919
20922
|
this.hoverObject && (this.map.setFeatureState(this.hoverObject, { hover: !1 }), this.hoverObject = null), this.popup || (this.popup = new bc.Popup({
|
20920
20923
|
maxWidth: "400px",
|
20921
20924
|
closeButton: !1,
|
20922
20925
|
closeOnClick: !1
|
20923
20926
|
}));
|
20924
20927
|
const w = this.map.queryRenderedFeatures(g.point);
|
20925
|
-
if (this.map.getCanvas().style.cursor = "pointer", !(w != null && w.length) || ((
|
20928
|
+
if (this.map.getCanvas().style.cursor = "pointer", !(w != null && w.length) || ((V = w == null ? void 0 : w[0]) == null ? void 0 : V.source) === "region-search-id") {
|
20926
20929
|
this.map.getCanvas().style.cursor = "", this.popup.remove();
|
20927
20930
|
return;
|
20928
20931
|
}
|
@@ -20962,7 +20965,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20962
20965
|
ref: "popup",
|
20963
20966
|
style: { display: "none" }
|
20964
20967
|
};
|
20965
|
-
function h0(g, w, P, E,
|
20968
|
+
function h0(g, w, P, E, V, X) {
|
20966
20969
|
var zt;
|
20967
20970
|
const T = Yi("VsAutocompleteOption"), c = Yi("vs-autocomplete"), _e = Yi("VsTextMask"), xe = Yi("vs-text"), ve = Yi("FilterIcon"), ae = Yi("VsFilterList"), oe = Yi("VisibleMapIcon"), _t = Yi("HiddenMapIcon"), qe = Yi("CloseIcon"), tt = Yi("NoData"), Ne = Yi("VsPagination"), pt = Yi("MapPortal");
|
20968
20971
|
return dt(), Ut("section", Ry, [
|
@@ -21052,7 +21055,6 @@ function h0(g, w, P, E, N, X) {
|
|
21052
21055
|
scheme: g.filters,
|
21053
21056
|
"apply-vue-router": "",
|
21054
21057
|
history: "",
|
21055
|
-
closeFilterBtn: !0,
|
21056
21058
|
view: "plain",
|
21057
21059
|
clearable: !1,
|
21058
21060
|
name: "filter",
|
@@ -21096,7 +21098,7 @@ function h0(g, w, P, E, N, X) {
|
|
21096
21098
|
}, [
|
21097
21099
|
et("h1", $y, [
|
21098
21100
|
et("span", qy, Mn(g.title), 1),
|
21099
|
-
et("span", Zy, Mn(g.
|
21101
|
+
et("span", Zy, Mn(g.total), 1),
|
21100
21102
|
Gy
|
21101
21103
|
]),
|
21102
21104
|
et("div", Hy, [
|