@datagouv/components-next 0.0.18 → 0.0.19
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/{JsonPreview.client-DvhnzVAV.js → JsonPreview.client-BV0aJz23.js} +33 -32
- package/dist/{MapContainer.client-BTa4cY2w.js → MapContainer.client-CxqfY1ge.js} +3 -2
- package/dist/{PdfPreview.client-CFMYzFUs.js → PdfPreview.client-Brxtbt2i.js} +32 -31
- package/dist/{Pmtiles.client-CCMKYGsj.js → Pmtiles.client-AIjEzaIg.js} +694 -693
- package/dist/Swagger.client-C8O-wVwV.js +4 -0
- package/dist/{XmlPreview.client-0NtLStzb.js → XmlPreview.client-XiPNQxwG.js} +27 -26
- package/dist/components-next.js +25 -25
- package/dist/main-CUy8gy19.js +101710 -0
- package/dist/{pdf-vue3-D5SzycIl.js → pdf-vue3-Dm2ZCc3P.js} +1 -1
- package/dist/{text-clamp.esm-D43nX9La.js → text-clamp.esm-Mb7Qdtu9.js} +5 -5
- package/dist/{vue3-json-viewer-BiPkSVJb.js → vue3-json-viewer-B1fiyuLU.js} +100 -100
- package/dist/vue3-xml-viewer.common-BvRWr7iE.js +759 -0
- package/package.json +1 -1
- package/dist/Swagger.client-Ci_pwa2Z.js +0 -4
- package/dist/main-BGN65wY4.js +0 -100461
- package/dist/vue3-xml-viewer.common-ARb4d9zr.js +0 -5443
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent as Wm, ref as Xm, computed as Kc, onMounted as Km, createElementBlock as wh, openBlock as Yc, createBlock as Ym, withCtx as Sd, createVNode as Id, createElementVNode as ia, unref as za, toDisplayString as Al, createCommentVNode as Jm, createTextVNode as Qm } from "vue";
|
|
2
|
+
import { g as eg, u as tg, b as ig, d as rg, a as ng, F as ag, f as sg, e as og, K as lg } from "./main-CUy8gy19.js";
|
|
2
3
|
var Qr = Uint8Array, vo = Uint16Array, cg = Int32Array, jd = new Qr([
|
|
3
4
|
0,
|
|
4
5
|
0,
|
|
@@ -77,10 +78,10 @@ var Qr = Uint8Array, vo = Uint16Array, cg = Int32Array, jd = new Qr([
|
|
|
77
78
|
return { b: K, r: we };
|
|
78
79
|
}, Vd = Ud(jd, 2), Zd = Vd.b, hg = Vd.r;
|
|
79
80
|
Zd[28] = 258, hg[258] = 28;
|
|
80
|
-
var pg = Ud(Nd, 0), dg = pg.b,
|
|
81
|
+
var pg = Ud(Nd, 0), dg = pg.b, Ah = new vo(32768);
|
|
81
82
|
for (var oi = 0; oi < 32768; ++oi) {
|
|
82
83
|
var ka = (oi & 43690) >> 1 | (oi & 21845) << 1;
|
|
83
|
-
ka = (ka & 52428) >> 2 | (ka & 13107) << 2, ka = (ka & 61680) >> 4 | (ka & 3855) << 4,
|
|
84
|
+
ka = (ka & 52428) >> 2 | (ka & 13107) << 2, ka = (ka & 61680) >> 4 | (ka & 3855) << 4, Ah[oi] = ((ka & 65280) >> 8 | (ka & 255) << 8) >> 1;
|
|
84
85
|
}
|
|
85
86
|
var Bl = function(Q, G, K) {
|
|
86
87
|
for (var ae = Q.length, we = 0, De = new vo(G); we < ae; ++we)
|
|
@@ -95,10 +96,10 @@ var Bl = function(Q, G, K) {
|
|
|
95
96
|
for (we = 0; we < ae; ++we)
|
|
96
97
|
if (Q[we])
|
|
97
98
|
for (var Qe = we << 4 | Q[we], it = G - Q[we], $e = S[Q[we] - 1]++ << it, Fe = $e | (1 << it) - 1; $e <= Fe; ++$e)
|
|
98
|
-
c[
|
|
99
|
+
c[Ah[$e] >> rt] = Qe;
|
|
99
100
|
} else
|
|
100
101
|
for (c = new vo(ae), we = 0; we < ae; ++we)
|
|
101
|
-
Q[we] && (c[we] =
|
|
102
|
+
Q[we] && (c[we] = Ah[S[Q[we] - 1]++] >> 15 - Q[we]);
|
|
102
103
|
return c;
|
|
103
104
|
}, Ol = new Qr(288);
|
|
104
105
|
for (var oi = 0; oi < 144; ++oi)
|
|
@@ -159,14 +160,14 @@ var fg = /* @__PURE__ */ Bl(Ol, 9, 1), mg = /* @__PURE__ */ Bl($d, 5, 1), Th = f
|
|
|
159
160
|
var ci = new Qr(Math.max(ri * 2, Ti));
|
|
160
161
|
ci.set(K), K = ci;
|
|
161
162
|
}
|
|
162
|
-
}, it = G.f || 0, $e = G.p || 0, Fe = G.b || 0, pe = G.l, je = G.d,
|
|
163
|
+
}, it = G.f || 0, $e = G.p || 0, Fe = G.b || 0, pe = G.l, je = G.d, At = G.m, pi = G.n, di = we * 8;
|
|
163
164
|
do {
|
|
164
165
|
if (!pe) {
|
|
165
166
|
it = In(Q, $e, 1);
|
|
166
167
|
var Kt = In(Q, $e + 1, 3);
|
|
167
168
|
if ($e += 3, Kt)
|
|
168
169
|
if (Kt == 1)
|
|
169
|
-
pe = fg, je = mg,
|
|
170
|
+
pe = fg, je = mg, At = 9, pi = 5;
|
|
170
171
|
else if (Kt == 2) {
|
|
171
172
|
var Dt = In(Q, $e, 31) + 257, nr = In(Q, $e + 10, 15) + 4, Ft = Dt + In(Q, $e + 5, 31) + 1;
|
|
172
173
|
$e += 14;
|
|
@@ -186,7 +187,7 @@ var fg = /* @__PURE__ */ Bl(Ol, 9, 1), mg = /* @__PURE__ */ Bl($d, 5, 1), Th = f
|
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
var Pt = zr.subarray(0, Dt), wi = zr.subarray(Dt);
|
|
189
|
-
|
|
190
|
+
At = Th(Pt), pi = Th(wi), pe = Bl(Pt, At, 1), je = Bl(wi, pi, 1);
|
|
190
191
|
} else
|
|
191
192
|
Jr(1);
|
|
192
193
|
else {
|
|
@@ -204,7 +205,7 @@ var fg = /* @__PURE__ */ Bl(Ol, 9, 1), mg = /* @__PURE__ */ Bl($d, 5, 1), Th = f
|
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
c && Qe(Fe + 131072);
|
|
207
|
-
for (var sr = (1 <<
|
|
208
|
+
for (var sr = (1 << At) - 1, Ut = (1 << pi) - 1, zi = $e; ; zi = $e) {
|
|
208
209
|
var ar = pe[Mh(Q, $e) & sr], Lt = ar >> 4;
|
|
209
210
|
if ($e += ar & 15, $e > di) {
|
|
210
211
|
rt && Jr(0);
|
|
@@ -243,7 +244,7 @@ var fg = /* @__PURE__ */ Bl(Ol, 9, 1), mg = /* @__PURE__ */ Bl($d, 5, 1), Th = f
|
|
|
243
244
|
K[Fe] = K[Fe - wi];
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
|
-
G.l = pe, G.p = zi, G.b = Fe, G.f = it, pe && (it = 1, G.m =
|
|
247
|
+
G.l = pe, G.p = zi, G.b = Fe, G.f = it, pe && (it = 1, G.m = At, G.d = je, G.n = pi);
|
|
247
248
|
} while (!it);
|
|
248
249
|
return Fe != K.length && S ? _g(K, 0, Fe) : K.subarray(0, Fe);
|
|
249
250
|
}, xg = /* @__PURE__ */ new Qr(0), vg = function(Q) {
|
|
@@ -277,7 +278,7 @@ try {
|
|
|
277
278
|
Ig.decode(xg, { stream: !0 }), Cg = 1;
|
|
278
279
|
} catch {
|
|
279
280
|
}
|
|
280
|
-
var
|
|
281
|
+
var Eg = Object.defineProperty, Fl = Math.pow, Xt = (Q, G) => Eg(Q, "name", { value: G, configurable: !0 }), rr = (Q, G, K) => new Promise((ae, we) => {
|
|
281
282
|
var De = (rt) => {
|
|
282
283
|
try {
|
|
283
284
|
c(K.next(rt));
|
|
@@ -314,7 +315,7 @@ Xt((Q, G) => {
|
|
|
314
315
|
}, "_removeTile") });
|
|
315
316
|
return new we(G);
|
|
316
317
|
}, "leafletRasterLayer");
|
|
317
|
-
var
|
|
318
|
+
var Ag = Xt((Q) => (G, K) => {
|
|
318
319
|
if (K instanceof AbortController) return Q(G, K);
|
|
319
320
|
let ae = new AbortController();
|
|
320
321
|
return Q(G, ae).then((we) => K(void 0, we.data, we.cacheControl || "", we.expires || ""), (we) => K(we)).catch((we) => K(we)), { cancel: Xt(() => ae.abort(), "cancel") };
|
|
@@ -324,8 +325,8 @@ var Eg = Xt((Q) => (G, K) => {
|
|
|
324
325
|
if (K.type === "json") {
|
|
325
326
|
let pe = K.url.substr(10), je = this.tiles.get(pe);
|
|
326
327
|
if (je || (je = new kh(pe), this.tiles.set(pe, je)), this.metadata) return { data: yield je.getTileJson(K.url) };
|
|
327
|
-
let
|
|
328
|
-
return (
|
|
328
|
+
let At = yield je.getHeader();
|
|
329
|
+
return (At.minLon >= At.maxLon || At.minLat >= At.maxLat) && console.error(`Bounds of PMTiles archive ${At.minLon},${At.minLat},${At.maxLon},${At.maxLat} are not valid.`), { data: { tiles: [`${K.url}/{z}/{x}/{y}`], minzoom: At.minZoom, maxzoom: At.maxZoom, bounds: [At.minLon, At.minLat, At.maxLon, At.maxLat] } };
|
|
329
330
|
}
|
|
330
331
|
let we = new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/), De = K.url.match(we);
|
|
331
332
|
if (!De) throw new Error("Invalid PMTiles protocol URL");
|
|
@@ -338,7 +339,7 @@ var Eg = Xt((Q) => (G, K) => {
|
|
|
338
339
|
return { data: new Uint8Array() };
|
|
339
340
|
}
|
|
340
341
|
return { data: null };
|
|
341
|
-
}), "tilev4"), this.tile =
|
|
342
|
+
}), "tilev4"), this.tile = Ag(this.tilev4), this.tiles = /* @__PURE__ */ new Map(), this.metadata = (G == null ? void 0 : G.metadata) || !1, this.errorOnMissingTile = (G == null ? void 0 : G.errorOnMissingTile) || !1;
|
|
342
343
|
}
|
|
343
344
|
add(G) {
|
|
344
345
|
this.tiles.set(G.source.getKey(), G);
|
|
@@ -812,7 +813,7 @@ function Vg() {
|
|
|
812
813
|
}, Qe;
|
|
813
814
|
}
|
|
814
815
|
typeof SuppressedError == "function" && SuppressedError;
|
|
815
|
-
var Fe, pe, je = rt($e()),
|
|
816
|
+
var Fe, pe, je = rt($e()), At = function() {
|
|
816
817
|
if (pe) return Fe;
|
|
817
818
|
function n(t, r, a, l) {
|
|
818
819
|
this.cx = 3 * t, this.bx = 3 * (a - t) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * r, this.by = 3 * (l - r) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = t, this.p1y = r, this.p2x = a, this.p2y = l;
|
|
@@ -839,7 +840,7 @@ function Vg() {
|
|
|
839
840
|
}, solve: function(t, r) {
|
|
840
841
|
return this.sampleCurveY(this.solveCurveX(t, r));
|
|
841
842
|
} }, Fe;
|
|
842
|
-
}(), pi = rt(
|
|
843
|
+
}(), pi = rt(At);
|
|
843
844
|
let di, Kt;
|
|
844
845
|
function Nt() {
|
|
845
846
|
return di == null && (di = typeof OffscreenCanvas < "u" && new OffscreenCanvas(1, 1).getContext("2d") && typeof createImageBitmap == "function"), di;
|
|
@@ -971,9 +972,9 @@ function Vg() {
|
|
|
971
972
|
const d = p == null ? void 0 : p.format;
|
|
972
973
|
if (!d || !d.startsWith("BGR") && !d.startsWith("RGB")) throw new Error(`Unrecognized format ${d}`);
|
|
973
974
|
const m = d.startsWith("BGR"), _ = new Uint8ClampedArray(a * l * 4);
|
|
974
|
-
if (yield p.copyTo(_, function(x, b, T, I,
|
|
975
|
-
const
|
|
976
|
-
return { rect: { x: $, y: re, width: Math.min(x.width, b + I) - $, height: Math.min(x.height, T +
|
|
975
|
+
if (yield p.copyTo(_, function(x, b, T, I, E) {
|
|
976
|
+
const A = 4 * Math.max(1, 0), D = (Math.max(0, T) - T) * I * 4 + A, O = 4 * I, $ = Math.max(0, b), re = Math.max(0, T);
|
|
977
|
+
return { rect: { x: $, y: re, width: Math.min(x.width, b + I) - $, height: Math.min(x.height, T + E) - re }, layout: [{ offset: D, stride: O }] };
|
|
977
978
|
}(n, t, r, a, l)), m) for (let x = 0; x < _.length; x += 4) {
|
|
978
979
|
const b = _[x];
|
|
979
980
|
_[x] = _[x + 2], _[x + 2] = b;
|
|
@@ -1206,7 +1207,7 @@ function Vg() {
|
|
|
1206
1207
|
return !!this.bindings[t] || !!this.parent && this.parent.has(t);
|
|
1207
1208
|
}
|
|
1208
1209
|
}
|
|
1209
|
-
const Je = { kind: "null" }, Pe = { kind: "number" }, Ge = { kind: "string" }, at = { kind: "boolean" }, Zt = { kind: "color" }, $t = { kind: "projectionDefinition" }, $i = { kind: "object" }, ot = { kind: "value" }, Xe = { kind: "collator" }, oe = { kind: "formatted" }, ke = { kind: "padding" }, He = { kind: "colorArray" },
|
|
1210
|
+
const Je = { kind: "null" }, Pe = { kind: "number" }, Ge = { kind: "string" }, at = { kind: "boolean" }, Zt = { kind: "color" }, $t = { kind: "projectionDefinition" }, $i = { kind: "object" }, ot = { kind: "value" }, Xe = { kind: "collator" }, oe = { kind: "formatted" }, ke = { kind: "padding" }, He = { kind: "colorArray" }, Et = { kind: "numberArray" }, Yt = { kind: "resolvedImage" }, ft = { kind: "variableAnchorOffsetCollection" };
|
|
1210
1211
|
function Ot(n, t) {
|
|
1211
1212
|
return { kind: "array", itemType: n, N: t };
|
|
1212
1213
|
}
|
|
@@ -1217,7 +1218,7 @@ function Vg() {
|
|
|
1217
1218
|
}
|
|
1218
1219
|
return n.kind;
|
|
1219
1220
|
}
|
|
1220
|
-
const $r = [Je, Pe, Ge, at, Zt, $t, oe, $i, Ot(ot), ke,
|
|
1221
|
+
const $r = [Je, Pe, Ge, at, Zt, $t, oe, $i, Ot(ot), ke, Et, He, Yt, ft];
|
|
1221
1222
|
function ui(n, t) {
|
|
1222
1223
|
if (t.kind === "error") return null;
|
|
1223
1224
|
if (n.kind === "array") {
|
|
@@ -1313,11 +1314,11 @@ function Vg() {
|
|
|
1313
1314
|
if (a.startsWith("rgb")) {
|
|
1314
1315
|
const d = a.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
|
|
1315
1316
|
if (d) {
|
|
1316
|
-
const [m, _, x, b, T, I,
|
|
1317
|
+
const [m, _, x, b, T, I, E, A, D, O, $, re] = d, W = [b || " ", E || " ", O].join("");
|
|
1317
1318
|
if (W === " " || W === " /" || W === ",," || W === ",,,") {
|
|
1318
1319
|
const C = [x, I, D].join(""), F = C === "%%%" ? 100 : C === "" ? 255 : 0;
|
|
1319
1320
|
if (F) {
|
|
1320
|
-
const X = [lr(+_ / F, 0, 1), lr(+T / F, 0, 1), lr(+
|
|
1321
|
+
const X = [lr(+_ / F, 0, 1), lr(+T / F, 0, 1), lr(+A / F, 0, 1), $ ? Po(+$, re) : 1];
|
|
1321
1322
|
if (Mt(X)) return X;
|
|
1322
1323
|
}
|
|
1323
1324
|
}
|
|
@@ -1326,9 +1327,9 @@ function Vg() {
|
|
|
1326
1327
|
}
|
|
1327
1328
|
const p = a.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
|
|
1328
1329
|
if (p) {
|
|
1329
|
-
const [d, m, _, x, b, T, I,
|
|
1330
|
+
const [d, m, _, x, b, T, I, E, A] = p, D = [_ || " ", b || " ", I].join("");
|
|
1330
1331
|
if (D === " " || D === " /" || D === ",," || D === ",,,") {
|
|
1331
|
-
const O = [+m, lr(+x, 0, 100), lr(+T, 0, 100),
|
|
1332
|
+
const O = [+m, lr(+x, 0, 100), lr(+T, 0, 100), E ? Po(+E, A) : 1];
|
|
1332
1333
|
if (Mt(O)) return function([$, re, W, C]) {
|
|
1333
1334
|
function F(X) {
|
|
1334
1335
|
const me = (X + $ / 30) % 12, Ie = re * Math.min(W, 1 - W);
|
|
@@ -1369,15 +1370,15 @@ function Vg() {
|
|
|
1369
1370
|
}
|
|
1370
1371
|
case "hcl": {
|
|
1371
1372
|
const [p, d, m, _] = t.hcl, [x, b, T, I] = r.hcl;
|
|
1372
|
-
let
|
|
1373
|
-
if (isNaN(p) || isNaN(x)) isNaN(p) ? isNaN(x) ?
|
|
1373
|
+
let E, A;
|
|
1374
|
+
if (isNaN(p) || isNaN(x)) isNaN(p) ? isNaN(x) ? E = NaN : (E = x, m !== 1 && m !== 0 || (A = b)) : (E = p, T !== 1 && T !== 0 || (A = d));
|
|
1374
1375
|
else {
|
|
1375
1376
|
let W = x - p;
|
|
1376
|
-
x > p && W > 180 ? W -= 360 : x < p && p - x > 180 && (W += 360),
|
|
1377
|
+
x > p && W > 180 ? W -= 360 : x < p && p - x > 180 && (W += 360), E = p + a * W;
|
|
1377
1378
|
}
|
|
1378
1379
|
const [D, O, $, re] = function([W, C, F, X]) {
|
|
1379
1380
|
return W = isNaN(W) ? 0 : W * au, Zl([F, Math.cos(W) * C, Math.sin(W) * C, X]);
|
|
1380
|
-
}([
|
|
1381
|
+
}([E, A ?? cr(d, b, a), cr(m, T, a), cr(_, I, a)]);
|
|
1381
1382
|
return new _t(D, O, $, re, !1);
|
|
1382
1383
|
}
|
|
1383
1384
|
case "lab": {
|
|
@@ -1586,7 +1587,7 @@ function Vg() {
|
|
|
1586
1587
|
if (n instanceof La) return Xe;
|
|
1587
1588
|
if (n instanceof gr) return oe;
|
|
1588
1589
|
if (n instanceof Gi) return ke;
|
|
1589
|
-
if (n instanceof mi) return
|
|
1590
|
+
if (n instanceof mi) return Et;
|
|
1590
1591
|
if (n instanceof qi) return He;
|
|
1591
1592
|
if (n instanceof ur) return ft;
|
|
1592
1593
|
if (n instanceof wr) return Yt;
|
|
@@ -1994,19 +1995,19 @@ function Vg() {
|
|
|
1994
1995
|
Array.isArray(b) || (b = [b]);
|
|
1995
1996
|
const I = r.concat(x);
|
|
1996
1997
|
if (b.length === 0) return I.error("Expected at least one branch label.");
|
|
1997
|
-
for (const
|
|
1998
|
-
if (typeof
|
|
1999
|
-
if (typeof
|
|
2000
|
-
if (typeof
|
|
1998
|
+
for (const A of b) {
|
|
1999
|
+
if (typeof A != "number" && typeof A != "string") return I.error("Branch labels must be numbers or strings.");
|
|
2000
|
+
if (typeof A == "number" && Math.abs(A) > Number.MAX_SAFE_INTEGER) return I.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);
|
|
2001
|
+
if (typeof A == "number" && Math.floor(A) !== A) return I.error("Numeric branch labels must be integer values.");
|
|
2001
2002
|
if (a) {
|
|
2002
|
-
if (I.checkSubtype(a, ni(
|
|
2003
|
-
} else a = ni(
|
|
2004
|
-
if (p[String(
|
|
2005
|
-
p[String(
|
|
2003
|
+
if (I.checkSubtype(a, ni(A))) return null;
|
|
2004
|
+
} else a = ni(A);
|
|
2005
|
+
if (p[String(A)] !== void 0) return I.error("Branch labels must be unique.");
|
|
2006
|
+
p[String(A)] = d.length;
|
|
2006
2007
|
}
|
|
2007
|
-
const
|
|
2008
|
-
if (!
|
|
2009
|
-
l = l ||
|
|
2008
|
+
const E = r.parse(T, x, l);
|
|
2009
|
+
if (!E) return null;
|
|
2010
|
+
l = l || E.type, d.push(E);
|
|
2010
2011
|
}
|
|
2011
2012
|
const m = r.parse(t[1], 1, ot);
|
|
2012
2013
|
if (!m) return null;
|
|
@@ -2099,7 +2100,7 @@ function Vg() {
|
|
|
2099
2100
|
}
|
|
2100
2101
|
return 0;
|
|
2101
2102
|
}
|
|
2102
|
-
class
|
|
2103
|
+
class En {
|
|
2103
2104
|
constructor(t, r, a) {
|
|
2104
2105
|
this.type = t, this.input = r, this.labels = [], this.outputs = [];
|
|
2105
2106
|
for (const [l, p] of a) this.labels.push(l), this.outputs.push(p);
|
|
@@ -2120,7 +2121,7 @@ function Vg() {
|
|
|
2120
2121
|
if (!T) return null;
|
|
2121
2122
|
p = p || T.type, l.push([m, T]);
|
|
2122
2123
|
}
|
|
2123
|
-
return new
|
|
2124
|
+
return new En(p, a, l);
|
|
2124
2125
|
}
|
|
2125
2126
|
evaluate(t) {
|
|
2126
2127
|
const r = this.labels, a = this.outputs;
|
|
@@ -2207,14 +2208,14 @@ function Vg() {
|
|
|
2207
2208
|
let _ = null;
|
|
2208
2209
|
a !== "interpolate-hcl" && a !== "interpolate-lab" || r.expectedType == He ? r.expectedType && r.expectedType.kind !== "value" && (_ = r.expectedType) : _ = Zt;
|
|
2209
2210
|
for (let x = 0; x < d.length; x += 2) {
|
|
2210
|
-
const b = d[x], T = d[x + 1], I = x + 3,
|
|
2211
|
+
const b = d[x], T = d[x + 1], I = x + 3, E = x + 4;
|
|
2211
2212
|
if (typeof b != "number") return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.', I);
|
|
2212
2213
|
if (m.length && m[m.length - 1][0] >= b) return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.', I);
|
|
2213
|
-
const
|
|
2214
|
-
if (!
|
|
2215
|
-
_ = _ ||
|
|
2214
|
+
const A = r.parse(T, E, _);
|
|
2215
|
+
if (!A) return null;
|
|
2216
|
+
_ = _ || A.type, m.push([b, A]);
|
|
2216
2217
|
}
|
|
2217
|
-
return yn(_, Pe) || yn(_, $t) || yn(_, Zt) || yn(_, ke) || yn(_,
|
|
2218
|
+
return yn(_, Pe) || yn(_, $t) || yn(_, Zt) || yn(_, ke) || yn(_, Et) || yn(_, He) || yn(_, ft) || yn(_, Ot(Pe)) ? new Qi(_, a, l, p, m) : r.error(`Type ${Tt(_)} is not interpolatable.`);
|
|
2218
2219
|
}
|
|
2219
2220
|
evaluate(t) {
|
|
2220
2221
|
const r = this.labels, a = this.outputs;
|
|
@@ -2360,7 +2361,7 @@ function Vg() {
|
|
|
2360
2361
|
return t !== r;
|
|
2361
2362
|
}, function(n, t, r, a) {
|
|
2362
2363
|
return !Or(0, t, r, a);
|
|
2363
|
-
}),
|
|
2364
|
+
}), Eo = qn("<", function(n, t, r) {
|
|
2364
2365
|
return t < r;
|
|
2365
2366
|
}, function(n, t, r, a) {
|
|
2366
2367
|
return a.compare(t, r) < 0;
|
|
@@ -2528,7 +2529,7 @@ function Vg() {
|
|
|
2528
2529
|
const r = (180 + n[0]) / 360, a = (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + n[1] * Math.PI / 360))) / 360, l = Math.pow(2, t.z);
|
|
2529
2530
|
return [Math.round(r * l * ln), Math.round(a * l * ln)];
|
|
2530
2531
|
}
|
|
2531
|
-
function
|
|
2532
|
+
function Ao(n, t) {
|
|
2532
2533
|
const r = Math.pow(2, t.z);
|
|
2533
2534
|
return [(l = (n[0] / ln + t.x) / r, 360 * l - 180), (a = (n[1] / ln + t.y) / r, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * a) * Math.PI / 180)) - 90)];
|
|
2534
2535
|
var a, l;
|
|
@@ -2543,12 +2544,12 @@ function Vg() {
|
|
|
2543
2544
|
const a = n[0] - t[0], l = n[1] - t[1], p = n[0] - r[0], d = n[1] - r[1];
|
|
2544
2545
|
return a * d - p * l == 0 && a * p <= 0 && l * d <= 0;
|
|
2545
2546
|
}
|
|
2546
|
-
function
|
|
2547
|
+
function Es(n, t, r, a) {
|
|
2547
2548
|
return (l = [a[0] - r[0], a[1] - r[1]])[0] * (p = [t[0] - n[0], t[1] - n[1]])[1] - l[1] * p[0] != 0 && !(!Xl(n, t, r, a) || !Xl(r, a, n, t));
|
|
2548
2549
|
var l, p;
|
|
2549
2550
|
}
|
|
2550
2551
|
function ql(n, t, r) {
|
|
2551
|
-
for (const a of r) for (let l = 0; l < a.length - 1; ++l) if (
|
|
2552
|
+
for (const a of r) for (let l = 0; l < a.length - 1; ++l) if (Es(n, t, a[l], a[l + 1])) return !0;
|
|
2552
2553
|
return !1;
|
|
2553
2554
|
}
|
|
2554
2555
|
function Hn(n, t, r = !1) {
|
|
@@ -2630,7 +2631,7 @@ function Vg() {
|
|
|
2630
2631
|
var m;
|
|
2631
2632
|
return d;
|
|
2632
2633
|
}
|
|
2633
|
-
class
|
|
2634
|
+
class An {
|
|
2634
2635
|
constructor(t, r) {
|
|
2635
2636
|
this.type = at, this.geojson = t, this.geometries = r;
|
|
2636
2637
|
}
|
|
@@ -2644,11 +2645,11 @@ function Vg() {
|
|
|
2644
2645
|
const { type: d, coordinates: m } = p.geometry;
|
|
2645
2646
|
d === "Polygon" && l.push(m), d === "MultiPolygon" && l.push(...m);
|
|
2646
2647
|
}
|
|
2647
|
-
if (l.length) return new
|
|
2648
|
+
if (l.length) return new An(a, { type: "MultiPolygon", coordinates: l });
|
|
2648
2649
|
} else if (a.type === "Feature") {
|
|
2649
2650
|
const l = a.geometry.type;
|
|
2650
|
-
if (l === "Polygon" || l === "MultiPolygon") return new
|
|
2651
|
-
} else if (a.type === "Polygon" || a.type === "MultiPolygon") return new
|
|
2651
|
+
if (l === "Polygon" || l === "MultiPolygon") return new An(a, a.geometry);
|
|
2652
|
+
} else if (a.type === "Polygon" || a.type === "MultiPolygon") return new An(a, a);
|
|
2652
2653
|
}
|
|
2653
2654
|
return r.error("'within' expression requires valid geojson object that contains polygon geometry type.");
|
|
2654
2655
|
}
|
|
@@ -2748,7 +2749,7 @@ function Vg() {
|
|
|
2748
2749
|
function tc(n, t) {
|
|
2749
2750
|
return n < t ? -1 : n > t ? 1 : 0;
|
|
2750
2751
|
}
|
|
2751
|
-
function
|
|
2752
|
+
function As(n, t) {
|
|
2752
2753
|
if (n.length <= 1) return [n];
|
|
2753
2754
|
const r = [];
|
|
2754
2755
|
let a, l;
|
|
@@ -2780,10 +2781,10 @@ function Vg() {
|
|
|
2780
2781
|
pointOnLine(t, r) {
|
|
2781
2782
|
let a, l, p, d, m = 1 / 0;
|
|
2782
2783
|
for (let _ = 0; _ < t.length - 1; _++) {
|
|
2783
|
-
let x = t[_][0], b = t[_][1], T = this.wrap(t[_ + 1][0] - x) * this.kx, I = (t[_ + 1][1] - b) * this.ky,
|
|
2784
|
-
T === 0 && I === 0 || (
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2784
|
+
let x = t[_][0], b = t[_][1], T = this.wrap(t[_ + 1][0] - x) * this.kx, I = (t[_ + 1][1] - b) * this.ky, E = 0;
|
|
2785
|
+
T === 0 && I === 0 || (E = (this.wrap(r[0] - x) * this.kx * T + (r[1] - b) * this.ky * I) / (T * T + I * I), E > 1 ? (x = t[_ + 1][0], b = t[_ + 1][1]) : E > 0 && (x += T / this.kx * E, b += I / this.ky * E)), T = this.wrap(r[0] - x) * this.kx, I = (r[1] - b) * this.ky;
|
|
2786
|
+
const A = T * T + I * I;
|
|
2787
|
+
A < m && (m = A, a = x, l = b, p = _, d = E);
|
|
2787
2788
|
}
|
|
2788
2789
|
return { point: [a, l], index: p, t: Math.max(0, Math.min(1, d)) };
|
|
2789
2790
|
}
|
|
@@ -2848,7 +2849,7 @@ function Vg() {
|
|
|
2848
2849
|
const m = n[d], _ = n[d + 1];
|
|
2849
2850
|
for (let x = a[0]; x < a[1]; ++x) {
|
|
2850
2851
|
const b = r[x], T = r[x + 1];
|
|
2851
|
-
if (
|
|
2852
|
+
if (Es(m, _, b, T)) return 0;
|
|
2852
2853
|
p = Math.min(p, Oo(m, _, b, T, l));
|
|
2853
2854
|
}
|
|
2854
2855
|
}
|
|
@@ -2878,9 +2879,9 @@ function Vg() {
|
|
|
2878
2879
|
for (let p = t[0]; p < t[1]; ++p) {
|
|
2879
2880
|
const d = n[p], m = n[p + 1];
|
|
2880
2881
|
for (const _ of r) for (let x = 0, b = _.length, T = b - 1; x < b; T = x++) {
|
|
2881
|
-
const I = _[T],
|
|
2882
|
-
if (
|
|
2883
|
-
l = Math.min(l, Oo(d, m, I,
|
|
2882
|
+
const I = _[T], E = _[x];
|
|
2883
|
+
if (Es(d, m, I, E)) return 0;
|
|
2884
|
+
l = Math.min(l, Oo(d, m, I, E, a));
|
|
2884
2885
|
}
|
|
2885
2886
|
}
|
|
2886
2887
|
return l;
|
|
@@ -2898,9 +2899,9 @@ function Vg() {
|
|
|
2898
2899
|
let d = 1 / 0;
|
|
2899
2900
|
for (const m of n) for (let _ = 0, x = m.length, b = x - 1; _ < x; b = _++) {
|
|
2900
2901
|
const T = m[b], I = m[_];
|
|
2901
|
-
for (const
|
|
2902
|
-
const $ =
|
|
2903
|
-
if (
|
|
2902
|
+
for (const E of t) for (let A = 0, D = E.length, O = D - 1; A < D; O = A++) {
|
|
2903
|
+
const $ = E[O], re = E[A];
|
|
2904
|
+
if (Es(T, I, $, re)) return 0;
|
|
2904
2905
|
d = Math.min(d, Oo(T, I, $, re, r));
|
|
2905
2906
|
}
|
|
2906
2907
|
}
|
|
@@ -2951,18 +2952,18 @@ function Vg() {
|
|
|
2951
2952
|
const x = _[1], b = _[2], T = t ? 50 : 100, I = a ? 50 : 100;
|
|
2952
2953
|
if (It(x) <= T && It(b) <= I) {
|
|
2953
2954
|
if (!xn(x, n.length) && xn(b, r.length)) return NaN;
|
|
2954
|
-
let
|
|
2955
|
-
if (t && a)
|
|
2955
|
+
let E;
|
|
2956
|
+
if (t && a) E = _u(n, x, r, b, l), d = Math.min(d, E);
|
|
2956
2957
|
else if (t && !a) {
|
|
2957
|
-
const
|
|
2958
|
-
for (let D = b[0]; D <= b[1]; ++D) if (
|
|
2958
|
+
const A = n.slice(x[0], x[1] + 1);
|
|
2959
|
+
for (let D = b[0]; D <= b[1]; ++D) if (E = Wn(r[D], A, l), d = Math.min(d, E), d === 0) return d;
|
|
2959
2960
|
} else if (!t && a) {
|
|
2960
|
-
const
|
|
2961
|
-
for (let D = x[0]; D <= x[1]; ++D) if (
|
|
2962
|
-
} else
|
|
2961
|
+
const A = r.slice(b[0], b[1] + 1);
|
|
2962
|
+
for (let D = x[0]; D <= x[1]; ++D) if (E = Wn(n[D], A, l), d = Math.min(d, E), d === 0) return d;
|
|
2963
|
+
} else E = yu(n, x, r, b, l), d = Math.min(d, E);
|
|
2963
2964
|
} else {
|
|
2964
|
-
const
|
|
2965
|
-
zs(m, d, l, n, r,
|
|
2965
|
+
const E = Ro(x, t), A = Ro(b, a);
|
|
2966
|
+
zs(m, d, l, n, r, E[0], A[0]), zs(m, d, l, n, r, E[0], A[1]), zs(m, d, l, n, r, E[1], A[0]), zs(m, d, l, n, r, E[1], A[1]);
|
|
2966
2967
|
}
|
|
2967
2968
|
}
|
|
2968
2969
|
return d;
|
|
@@ -2987,7 +2988,7 @@ function Vg() {
|
|
|
2987
2988
|
evaluate(t) {
|
|
2988
2989
|
if (t.geometry() != null && t.canonicalID() != null) {
|
|
2989
2990
|
if (t.geometryType() === "Point") return function(r, a) {
|
|
2990
|
-
const l = r.geometry(), p = l.flat().map((_) =>
|
|
2991
|
+
const l = r.geometry(), p = l.flat().map((_) => Ao([_.x, _.y], r.canonical));
|
|
2991
2992
|
if (l.length === 0) return NaN;
|
|
2992
2993
|
const d = new Do(p[0][1]);
|
|
2993
2994
|
let m = 1 / 0;
|
|
@@ -3007,7 +3008,7 @@ function Vg() {
|
|
|
3007
3008
|
return m;
|
|
3008
3009
|
}(t, this.geometries);
|
|
3009
3010
|
if (t.geometryType() === "LineString") return function(r, a) {
|
|
3010
|
-
const l = r.geometry(), p = l.flat().map((_) =>
|
|
3011
|
+
const l = r.geometry(), p = l.flat().map((_) => Ao([_.x, _.y], r.canonical));
|
|
3011
3012
|
if (l.length === 0) return NaN;
|
|
3012
3013
|
const d = new Do(p[0][1]);
|
|
3013
3014
|
let m = 1 / 0;
|
|
@@ -3029,7 +3030,7 @@ function Vg() {
|
|
|
3029
3030
|
if (t.geometryType() === "Polygon") return function(r, a) {
|
|
3030
3031
|
const l = r.geometry();
|
|
3031
3032
|
if (l.length === 0 || l[0].length === 0) return NaN;
|
|
3032
|
-
const p =
|
|
3033
|
+
const p = As(l, 0).map((_) => _.map((x) => x.map((b) => Ao([b.x, b.y], r.canonical)))), d = new Do(p[0][0][0][1]);
|
|
3033
3034
|
let m = 1 / 0;
|
|
3034
3035
|
for (const _ of a) for (const x of p) {
|
|
3035
3036
|
switch (_.type) {
|
|
@@ -3075,7 +3076,7 @@ function Vg() {
|
|
|
3075
3076
|
return !1;
|
|
3076
3077
|
}
|
|
3077
3078
|
}
|
|
3078
|
-
const pa = { "==": Ms, "!=": cu, ">": uu, "<":
|
|
3079
|
+
const pa = { "==": Ms, "!=": cu, ">": uu, "<": Eo, ">=": pu, "<=": hu, array: ct, at: Co, boolean: ct, case: Di, coalesce: Gn, collator: Ps, format: Ss, image: Is, in: bs, "index-of": Na, interpolate: Qi, "interpolate-hcl": Qi, "interpolate-lab": Qi, length: Cs, let: ca, literal: st, match: Zn, number: ct, "number-format": ua, object: ct, slice: $n, step: En, string: ct, "to-boolean": Ji, "to-color": Ji, "to-number": Ji, "to-string": Ji, var: ja, within: An, distance: Xn, "global-state": Rs };
|
|
3079
3080
|
class jr {
|
|
3080
3081
|
constructor(t, r, a, l) {
|
|
3081
3082
|
this.name = t, this.type = r, this._evaluate = a, this.args = l;
|
|
@@ -3098,8 +3099,8 @@ function Vg() {
|
|
|
3098
3099
|
_ = new Oa(r.registry, Ls, r.path, null, r.scope);
|
|
3099
3100
|
const T = [];
|
|
3100
3101
|
let I = !1;
|
|
3101
|
-
for (let
|
|
3102
|
-
const
|
|
3102
|
+
for (let E = 1; E < t.length; E++) {
|
|
3103
|
+
const A = t[E], D = Array.isArray(x) ? x[E - 1] : x.type, O = _.parse(A, 1 + T.length, D);
|
|
3103
3104
|
if (!O) {
|
|
3104
3105
|
I = !0;
|
|
3105
3106
|
break;
|
|
@@ -3108,9 +3109,9 @@ function Vg() {
|
|
|
3108
3109
|
}
|
|
3109
3110
|
if (!I) if (Array.isArray(x) && x.length !== T.length) _.error(`Expected ${x.length} arguments, but found ${T.length} instead.`);
|
|
3110
3111
|
else {
|
|
3111
|
-
for (let
|
|
3112
|
-
const
|
|
3113
|
-
_.concat(
|
|
3112
|
+
for (let E = 0; E < T.length; E++) {
|
|
3113
|
+
const A = Array.isArray(x) ? x[E] : x.type, D = T[E];
|
|
3114
|
+
_.concat(E + 1).checkSubtype(A, D.type);
|
|
3114
3115
|
}
|
|
3115
3116
|
if (_.errors.length === 0) return new jr(a, p, b, T);
|
|
3116
3117
|
}
|
|
@@ -3153,7 +3154,7 @@ function Vg() {
|
|
|
3153
3154
|
}
|
|
3154
3155
|
function Ls(n) {
|
|
3155
3156
|
if (n instanceof ja) return Ls(n.boundExpression);
|
|
3156
|
-
if (n instanceof jr && n.name === "error" || n instanceof Ps || n instanceof
|
|
3157
|
+
if (n instanceof jr && n.name === "error" || n instanceof Ps || n instanceof An || n instanceof Xn || n instanceof Rs) return !1;
|
|
3157
3158
|
const t = n instanceof Ji || n instanceof ct;
|
|
3158
3159
|
let r = !0;
|
|
3159
3160
|
return n.eachChild((a) => {
|
|
@@ -3161,7 +3162,7 @@ function Vg() {
|
|
|
3161
3162
|
}), !!r && Bs(n) && Fs(n, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]);
|
|
3162
3163
|
}
|
|
3163
3164
|
function Bs(n) {
|
|
3164
|
-
if (n instanceof jr && (n.name === "get" && n.args.length === 1 || n.name === "feature-state" || n.name === "has" && n.args.length === 1 || n.name === "properties" || n.name === "geometry-type" || n.name === "id" || /^filter-/.test(n.name)) || n instanceof
|
|
3165
|
+
if (n instanceof jr && (n.name === "get" && n.args.length === 1 || n.name === "feature-state" || n.name === "has" && n.args.length === 1 || n.name === "properties" || n.name === "geometry-type" || n.name === "id" || /^filter-/.test(n.name)) || n instanceof An || n instanceof Xn) return !1;
|
|
3165
3166
|
let t = !0;
|
|
3166
3167
|
return n.eachChild((r) => {
|
|
3167
3168
|
t && !Bs(r) && (t = !1);
|
|
@@ -3244,14 +3245,14 @@ function Vg() {
|
|
|
3244
3245
|
}
|
|
3245
3246
|
if (r) {
|
|
3246
3247
|
const b = {}, T = [];
|
|
3247
|
-
for (let
|
|
3248
|
-
const D = n.stops[
|
|
3248
|
+
for (let A = 0; A < n.stops.length; A++) {
|
|
3249
|
+
const D = n.stops[A], O = D[0].zoom;
|
|
3249
3250
|
b[O] === void 0 && (b[O] = { zoom: O, type: n.type, property: n.property, default: n.default, stops: [] }, T.push(O)), b[O].stops.push([D[0].value, D[1]]);
|
|
3250
3251
|
}
|
|
3251
3252
|
const I = [];
|
|
3252
|
-
for (const
|
|
3253
|
-
const
|
|
3254
|
-
return { kind: "composite", interpolationType:
|
|
3253
|
+
for (const A of T) I.push([b[A].zoom, Uo(b[A], t)]);
|
|
3254
|
+
const E = { name: "linear" };
|
|
3255
|
+
return { kind: "composite", interpolationType: E, interpolationFactor: Qi.interpolationFactor.bind(void 0, E), zoomStops: I.map((A) => A[0]), evaluate: ({ zoom: A }, D) => hc({ stops: I, base: n.base }, t, A).evaluate(A, D) };
|
|
3255
3256
|
}
|
|
3256
3257
|
if (a) {
|
|
3257
3258
|
const b = l === "exponential" ? { name: "exponential", base: n.base !== void 0 ? n.base : 1 } : null;
|
|
@@ -3282,9 +3283,9 @@ function Vg() {
|
|
|
3282
3283
|
const l = n.stops.length;
|
|
3283
3284
|
if (l === 1 || r <= n.stops[0][0]) return n.stops[0][1];
|
|
3284
3285
|
if (r >= n.stops[l - 1][0]) return n.stops[l - 1][1];
|
|
3285
|
-
const p = Ua(n.stops.map((b) => b[0]), r), d = function(b, T, I,
|
|
3286
|
-
const
|
|
3287
|
-
return
|
|
3286
|
+
const p = Ua(n.stops.map((b) => b[0]), r), d = function(b, T, I, E) {
|
|
3287
|
+
const A = E - I, D = b - I;
|
|
3288
|
+
return A === 0 ? 0 : T === 1 ? D / A : (Math.pow(T, D) - 1) / (Math.pow(T, A) - 1);
|
|
3288
3289
|
}(r, a, n.stops[p][0], n.stops[p + 1][0]), m = n.stops[p][1], _ = n.stops[p + 1][1], x = on[t.type] || Us;
|
|
3289
3290
|
return typeof m.evaluate == "function" ? { evaluate(...b) {
|
|
3290
3291
|
const T = m.evaluate.apply(void 0, b), I = _.evaluate.apply(void 0, b);
|
|
@@ -3415,7 +3416,7 @@ function Vg() {
|
|
|
3415
3416
|
}
|
|
3416
3417
|
function Zs(n, t) {
|
|
3417
3418
|
const r = new Oa(pa, Ls, [], t ? function(l) {
|
|
3418
|
-
const p = { color: Zt, string: Ge, number: Pe, enum: Ge, boolean: at, formatted: oe, padding: ke, numberArray:
|
|
3419
|
+
const p = { color: Zt, string: Ge, number: Pe, enum: Ge, boolean: at, formatted: oe, padding: ke, numberArray: Et, colorArray: He, projectionDefinition: $t, resolvedImage: Yt, variableAnchorOffsetCollection: ft };
|
|
3419
3420
|
return l.type === "array" ? Ot(p[l.value] || ot, l.length) : p[l.type];
|
|
3420
3421
|
}(t) : void 0), a = r.parse(n, void 0, void 0, void 0, t && t.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
3421
3422
|
return a ? Os(new Vs(a, t)) : da(r.errors);
|
|
@@ -3471,7 +3472,7 @@ function Vg() {
|
|
|
3471
3472
|
if (n instanceof ca) t = Ya(n.result);
|
|
3472
3473
|
else if (n instanceof Gn) {
|
|
3473
3474
|
for (const r of n.args) if (t = Ya(r), t) break;
|
|
3474
|
-
} else (n instanceof
|
|
3475
|
+
} else (n instanceof En || n instanceof Qi) && n.input instanceof jr && n.input.name === "zoom" && (t = n);
|
|
3475
3476
|
return t instanceof ht || n.eachChild((r) => {
|
|
3476
3477
|
const a = Ya(r);
|
|
3477
3478
|
a instanceof ht ? t = a : !t && a ? t = new ht("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : t && a && t !== a && (t = new ht("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
|
|
@@ -3602,18 +3603,18 @@ function Vg() {
|
|
|
3602
3603
|
if (x !== "object") return [new _e(t, r, `object expected, ${x} found`)];
|
|
3603
3604
|
for (const b in r) {
|
|
3604
3605
|
const T = b.split(".")[0], I = Da(a, T) || a["*"];
|
|
3605
|
-
let
|
|
3606
|
-
if (Da(l, T))
|
|
3607
|
-
else if (Da(a, T))
|
|
3608
|
-
else if (l["*"])
|
|
3606
|
+
let E;
|
|
3607
|
+
if (Da(l, T)) E = l[T];
|
|
3608
|
+
else if (Da(a, T)) E = m;
|
|
3609
|
+
else if (l["*"]) E = l["*"];
|
|
3609
3610
|
else {
|
|
3610
3611
|
if (!a["*"]) {
|
|
3611
3612
|
_.push(new _e(t, r[b], `unknown property "${b}"`));
|
|
3612
3613
|
continue;
|
|
3613
3614
|
}
|
|
3614
|
-
|
|
3615
|
+
E = m;
|
|
3615
3616
|
}
|
|
3616
|
-
_ = _.concat(
|
|
3617
|
+
_ = _.concat(E({ key: (t && `${t}.`) + b, value: r[b], valueSpec: I, style: p, styleSpec: d, object: r, objectKey: b, validateSpec: m }, r));
|
|
3617
3618
|
}
|
|
3618
3619
|
for (const b in a) l[b] || a[b].required && a[b].default === void 0 && r[b] === void 0 && _.push(new _e(t, r, `missing required property "${b}"`));
|
|
3619
3620
|
return _;
|
|
@@ -3637,18 +3638,18 @@ function Vg() {
|
|
|
3637
3638
|
function Ho(n) {
|
|
3638
3639
|
const t = n.valueSpec, r = hi(n.value.type);
|
|
3639
3640
|
let a, l, p, d = {};
|
|
3640
|
-
const m = r !== "categorical" && n.value.property === void 0, _ = !m, x = pt(n.value.stops) === "array" && pt(n.value.stops[0]) === "array" && pt(n.value.stops[0][0]) === "object", b = Tr({ key: n.key, value: n.value, valueSpec: n.styleSpec.function, validateSpec: n.validateSpec, style: n.style, styleSpec: n.styleSpec, objectElementValidators: { stops: function(
|
|
3641
|
-
if (r === "identity") return [new _e(
|
|
3642
|
-
let
|
|
3643
|
-
const D =
|
|
3644
|
-
return
|
|
3645
|
-
}, default: function(
|
|
3646
|
-
return
|
|
3641
|
+
const m = r !== "categorical" && n.value.property === void 0, _ = !m, x = pt(n.value.stops) === "array" && pt(n.value.stops[0]) === "array" && pt(n.value.stops[0][0]) === "object", b = Tr({ key: n.key, value: n.value, valueSpec: n.styleSpec.function, validateSpec: n.validateSpec, style: n.style, styleSpec: n.styleSpec, objectElementValidators: { stops: function(E) {
|
|
3642
|
+
if (r === "identity") return [new _e(E.key, E.value, 'identity function may not have a "stops" property')];
|
|
3643
|
+
let A = [];
|
|
3644
|
+
const D = E.value;
|
|
3645
|
+
return A = A.concat(qo({ key: E.key, value: D, valueSpec: E.valueSpec, validateSpec: E.validateSpec, style: E.style, styleSpec: E.styleSpec, arrayElementValidator: T })), pt(D) === "array" && D.length === 0 && A.push(new _e(E.key, D, "array must have at least one stop")), A;
|
|
3646
|
+
}, default: function(E) {
|
|
3647
|
+
return E.validateSpec({ key: E.key, value: E.value, valueSpec: t, validateSpec: E.validateSpec, style: E.style, styleSpec: E.styleSpec });
|
|
3647
3648
|
} } });
|
|
3648
3649
|
return r === "identity" && m && b.push(new _e(n.key, n.value, 'missing required property "property"')), r === "identity" || n.value.stops || b.push(new _e(n.key, n.value, 'missing required property "stops"')), r === "exponential" && n.valueSpec.expression && !js(n.valueSpec) && b.push(new _e(n.key, n.value, "exponential functions not supported")), n.styleSpec.$version >= 8 && (_ && !fa(n.valueSpec) ? b.push(new _e(n.key, n.value, "property functions not supported")) : m && !uc(n.valueSpec) && b.push(new _e(n.key, n.value, "zoom functions not supported"))), r !== "categorical" && !x || n.value.property !== void 0 || b.push(new _e(n.key, n.value, '"property" property is required')), b;
|
|
3649
|
-
function T(
|
|
3650
|
-
let
|
|
3651
|
-
const D =
|
|
3650
|
+
function T(E) {
|
|
3651
|
+
let A = [];
|
|
3652
|
+
const D = E.value, O = E.key;
|
|
3652
3653
|
if (pt(D) !== "array") return [new _e(O, D, `array expected, ${pt(D)} found`)];
|
|
3653
3654
|
if (D.length !== 2) return [new _e(O, D, `array length 2 expected, length ${D.length} found`)];
|
|
3654
3655
|
if (x) {
|
|
@@ -3656,21 +3657,21 @@ function Vg() {
|
|
|
3656
3657
|
if (D[0].zoom === void 0) return [new _e(O, D, "object stop key must have zoom")];
|
|
3657
3658
|
if (D[0].value === void 0) return [new _e(O, D, "object stop key must have value")];
|
|
3658
3659
|
if (p && p > hi(D[0].zoom)) return [new _e(O, D[0].zoom, "stop zoom values must appear in ascending order")];
|
|
3659
|
-
hi(D[0].zoom) !== p && (p = hi(D[0].zoom), l = void 0, d = {}),
|
|
3660
|
-
} else
|
|
3661
|
-
return Xa(zn(D[1])) ?
|
|
3660
|
+
hi(D[0].zoom) !== p && (p = hi(D[0].zoom), l = void 0, d = {}), A = A.concat(Tr({ key: `${O}[0]`, value: D[0], valueSpec: { zoom: {} }, validateSpec: E.validateSpec, style: E.style, styleSpec: E.styleSpec, objectElementValidators: { zoom: ts, value: I } }));
|
|
3661
|
+
} else A = A.concat(I({ key: `${O}[0]`, value: D[0], validateSpec: E.validateSpec, style: E.style, styleSpec: E.styleSpec }, D));
|
|
3662
|
+
return Xa(zn(D[1])) ? A.concat([new _e(`${O}[1]`, D[1], "expressions are not allowed in function stops.")]) : A.concat(E.validateSpec({ key: `${O}[1]`, value: D[1], valueSpec: t, validateSpec: E.validateSpec, style: E.style, styleSpec: E.styleSpec }));
|
|
3662
3663
|
}
|
|
3663
|
-
function I(
|
|
3664
|
-
const D = pt(
|
|
3664
|
+
function I(E, A) {
|
|
3665
|
+
const D = pt(E.value), O = hi(E.value), $ = E.value !== null ? E.value : A;
|
|
3665
3666
|
if (a) {
|
|
3666
|
-
if (D !== a) return [new _e(
|
|
3667
|
+
if (D !== a) return [new _e(E.key, $, `${D} stop domain type must match previous stop domain type ${a}`)];
|
|
3667
3668
|
} else a = D;
|
|
3668
|
-
if (D !== "number" && D !== "string" && D !== "boolean") return [new _e(
|
|
3669
|
+
if (D !== "number" && D !== "string" && D !== "boolean") return [new _e(E.key, $, "stop domain value must be a number, string, or boolean")];
|
|
3669
3670
|
if (D !== "number" && r !== "categorical") {
|
|
3670
3671
|
let re = `number expected, ${D} found`;
|
|
3671
|
-
return fa(t) && r === void 0 && (re += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new _e(
|
|
3672
|
+
return fa(t) && r === void 0 && (re += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new _e(E.key, $, re)];
|
|
3672
3673
|
}
|
|
3673
|
-
return r !== "categorical" || D !== "number" || isFinite(O) && Math.floor(O) === O ? r !== "categorical" && D === "number" && l !== void 0 && O < l ? [new _e(
|
|
3674
|
+
return r !== "categorical" || D !== "number" || isFinite(O) && Math.floor(O) === O ? r !== "categorical" && D === "number" && l !== void 0 && O < l ? [new _e(E.key, $, "stop domain values must appear in ascending order")] : (l = O, r === "categorical" && O in d ? [new _e(E.key, $, "stop domain values must be unique")] : (d[O] = !0, [])) : [new _e(E.key, $, `integer expected, found ${O}`)];
|
|
3674
3675
|
}
|
|
3675
3676
|
}
|
|
3676
3677
|
function cn(n) {
|
|
@@ -3798,13 +3799,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3798
3799
|
case "raster-dem":
|
|
3799
3800
|
return m = function(_) {
|
|
3800
3801
|
var x;
|
|
3801
|
-
const b = (x = _.sourceName) !== null && x !== void 0 ? x : "", T = _.value, I = _.styleSpec,
|
|
3802
|
+
const b = (x = _.sourceName) !== null && x !== void 0 ? x : "", T = _.value, I = _.styleSpec, E = I.source_raster_dem, A = _.style;
|
|
3802
3803
|
let D = [];
|
|
3803
3804
|
const O = pt(T);
|
|
3804
3805
|
if (T === void 0) return D;
|
|
3805
3806
|
if (O !== "object") return D.push(new _e("source_raster_dem", T, `object expected, ${O} found`)), D;
|
|
3806
3807
|
const $ = hi(T.encoding) === "custom", re = ["redFactor", "greenFactor", "blueFactor", "baseShift"], W = _.value.encoding ? `"${_.value.encoding}"` : "Default";
|
|
3807
|
-
for (const C in T) !$ && re.includes(C) ? D.push(new _e(C, T[C], `In "${b}": "${C}" is only valid when "encoding" is set to "custom". ${W} encoding found`)) :
|
|
3808
|
+
for (const C in T) !$ && re.includes(C) ? D.push(new _e(C, T[C], `In "${b}": "${C}" is only valid when "encoding" is set to "custom". ${W} encoding found`)) : E[C] ? D = D.concat(_.validateSpec({ key: C, value: T[C], valueSpec: E[C], validateSpec: _.validateSpec, style: A, styleSpec: I })) : D.push(new _e(C, T[C], `unknown property "${C}"`));
|
|
3808
3809
|
return D;
|
|
3809
3810
|
}({ sourceName: r, value: t, style: n.style, styleSpec: a, validateSpec: p }), m;
|
|
3810
3811
|
case "geojson":
|
|
@@ -4002,19 +4003,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4002
4003
|
if (x !== null) {
|
|
4003
4004
|
const b = this.keys, T = this.bboxes;
|
|
4004
4005
|
for (let I = 0; I < x.length; I++) {
|
|
4005
|
-
const
|
|
4006
|
-
if (m[
|
|
4007
|
-
const
|
|
4008
|
-
(_ ? _(T[
|
|
4006
|
+
const E = x[I];
|
|
4007
|
+
if (m[E] === void 0) {
|
|
4008
|
+
const A = 4 * E;
|
|
4009
|
+
(_ ? _(T[A + 0], T[A + 1], T[A + 2], T[A + 3]) : t <= T[A + 2] && r <= T[A + 3] && a >= T[A + 0] && l >= T[A + 1]) ? (m[E] = !0, d.push(b[E])) : m[E] = !1;
|
|
4009
4010
|
}
|
|
4010
4011
|
}
|
|
4011
4012
|
}
|
|
4012
4013
|
}
|
|
4013
4014
|
_forEachCell(t, r, a, l, p, d, m, _) {
|
|
4014
4015
|
const x = this._convertToCellCoord(t), b = this._convertToCellCoord(r), T = this._convertToCellCoord(a), I = this._convertToCellCoord(l);
|
|
4015
|
-
for (let
|
|
4016
|
-
const D = this.d *
|
|
4017
|
-
if ((!_ || _(this._convertFromCellCoord(
|
|
4016
|
+
for (let E = x; E <= T; E++) for (let A = b; A <= I; A++) {
|
|
4017
|
+
const D = this.d * A + E;
|
|
4018
|
+
if ((!_ || _(this._convertFromCellCoord(E), this._convertFromCellCoord(A), this._convertFromCellCoord(E + 1), this._convertFromCellCoord(A + 1))) && p.call(this, t, r, a, l, D, d, m, _)) return;
|
|
4018
4019
|
}
|
|
4019
4020
|
}
|
|
4020
4021
|
_convertFromCellCoord(t) {
|
|
@@ -4155,7 +4156,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4155
4156
|
function Cu(n, t) {
|
|
4156
4157
|
return !(!t && io(n) || n >= 2304 && n <= 3583 || n >= 3840 && n <= 4255 || dt.Khmer(n));
|
|
4157
4158
|
}
|
|
4158
|
-
function
|
|
4159
|
+
function Eu(n) {
|
|
4159
4160
|
for (const t of n) if (io(t.charCodeAt(0))) return !0;
|
|
4160
4161
|
return !1;
|
|
4161
4162
|
}
|
|
@@ -4317,7 +4318,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4317
4318
|
return !1;
|
|
4318
4319
|
}
|
|
4319
4320
|
}
|
|
4320
|
-
class
|
|
4321
|
+
class Au {
|
|
4321
4322
|
constructor(t) {
|
|
4322
4323
|
this._properties = t, this._values = Object.create(t.defaultPropertyValues);
|
|
4323
4324
|
}
|
|
@@ -4473,7 +4474,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4473
4474
|
const sl = "-transition";
|
|
4474
4475
|
class Nr extends te {
|
|
4475
4476
|
constructor(t, r) {
|
|
4476
|
-
if (super(), this.id = t.id, this.type = t.type, this._featureFilter = { filter: () => !0, needGeometry: !1 }, t.type !== "custom" && (this.metadata = t.metadata, this.minzoom = t.minzoom, this.maxzoom = t.maxzoom, t.type !== "background" && (this.source = t.source, this.sourceLayer = t["source-layer"], this.filter = t.filter), r.layout && (this._unevaluatedLayout = new
|
|
4477
|
+
if (super(), this.id = t.id, this.type = t.type, this._featureFilter = { filter: () => !0, needGeometry: !1 }, t.type !== "custom" && (this.metadata = t.metadata, this.minzoom = t.minzoom, this.maxzoom = t.maxzoom, t.type !== "background" && (this.source = t.source, this.sourceLayer = t["source-layer"], this.filter = t.filter), r.layout && (this._unevaluatedLayout = new Au(r.layout)), r.paint)) {
|
|
4477
4478
|
this._transitionablePaint = new Sc(r.paint);
|
|
4478
4479
|
for (const a in t.paint) this.setPaintProperty(a, t.paint[a], { validate: !1 });
|
|
4479
4480
|
for (const a in t.layout) this.setLayoutProperty(a, t.layout[a], { validate: !1 });
|
|
@@ -4545,7 +4546,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4545
4546
|
return !1;
|
|
4546
4547
|
}
|
|
4547
4548
|
}
|
|
4548
|
-
const
|
|
4549
|
+
const Ec = { Int8: Int8Array, Uint8: Uint8Array, Int16: Int16Array, Uint16: Uint16Array, Int32: Int32Array, Uint32: Uint32Array, Float32: Float32Array };
|
|
4549
4550
|
class Yn {
|
|
4550
4551
|
constructor(t, r) {
|
|
4551
4552
|
this._structArray = t, this._pos1 = r * this.size, this._pos2 = this._pos1 / 2, this._pos4 = this._pos1 / 4, this._pos8 = this._pos1 / 8;
|
|
@@ -4585,7 +4586,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4585
4586
|
function Jt(n, t = 1) {
|
|
4586
4587
|
let r = 0, a = 0;
|
|
4587
4588
|
return { members: n.map((l) => {
|
|
4588
|
-
const p =
|
|
4589
|
+
const p = Ec[l.type].BYTES_PER_ELEMENT, d = r = Ma(r, Math.max(t, p)), m = l.components || 1;
|
|
4589
4590
|
return a = Math.max(a, p), r += p * m, { name: l.name, type: l.type, components: m, offset: d };
|
|
4590
4591
|
}), size: Ma(r, Math.max(a, t)), alignment: t };
|
|
4591
4592
|
}
|
|
@@ -4695,12 +4696,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4695
4696
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
4696
4697
|
}
|
|
4697
4698
|
emplaceBack(t, r, a, l, p, d, m, _, x, b, T, I) {
|
|
4698
|
-
const
|
|
4699
|
-
return this.resize(
|
|
4699
|
+
const E = this.length;
|
|
4700
|
+
return this.resize(E + 1), this.emplace(E, t, r, a, l, p, d, m, _, x, b, T, I);
|
|
4700
4701
|
}
|
|
4701
|
-
emplace(t, r, a, l, p, d, m, _, x, b, T, I,
|
|
4702
|
-
const
|
|
4703
|
-
return this.int16[
|
|
4702
|
+
emplace(t, r, a, l, p, d, m, _, x, b, T, I, E) {
|
|
4703
|
+
const A = 12 * t;
|
|
4704
|
+
return this.int16[A + 0] = r, this.int16[A + 1] = a, this.int16[A + 2] = l, this.int16[A + 3] = p, this.uint16[A + 4] = d, this.uint16[A + 5] = m, this.uint16[A + 6] = _, this.uint16[A + 7] = x, this.int16[A + 8] = b, this.int16[A + 9] = T, this.int16[A + 10] = I, this.int16[A + 11] = E, t;
|
|
4704
4705
|
}
|
|
4705
4706
|
}
|
|
4706
4707
|
u.prototype.bytesPerElement = 24, Ne("StructArrayLayout4i4ui4i24", u);
|
|
@@ -4805,13 +4806,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4805
4806
|
_refreshViews() {
|
|
4806
4807
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
4807
4808
|
}
|
|
4808
|
-
emplaceBack(t, r, a, l, p, d, m, _, x, b, T, I,
|
|
4809
|
+
emplaceBack(t, r, a, l, p, d, m, _, x, b, T, I, E, A, D, O, $) {
|
|
4809
4810
|
const re = this.length;
|
|
4810
|
-
return this.resize(re + 1), this.emplace(re, t, r, a, l, p, d, m, _, x, b, T, I,
|
|
4811
|
+
return this.resize(re + 1), this.emplace(re, t, r, a, l, p, d, m, _, x, b, T, I, E, A, D, O, $);
|
|
4811
4812
|
}
|
|
4812
|
-
emplace(t, r, a, l, p, d, m, _, x, b, T, I,
|
|
4813
|
+
emplace(t, r, a, l, p, d, m, _, x, b, T, I, E, A, D, O, $, re) {
|
|
4813
4814
|
const W = 24 * t, C = 12 * t, F = 48 * t;
|
|
4814
|
-
return this.int16[W + 0] = r, this.int16[W + 1] = a, this.uint16[W + 2] = l, this.uint16[W + 3] = p, this.uint32[C + 2] = d, this.uint32[C + 3] = m, this.uint32[C + 4] = _, this.uint16[W + 10] = x, this.uint16[W + 11] = b, this.uint16[W + 12] = T, this.float32[C + 7] = I, this.float32[C + 8] =
|
|
4815
|
+
return this.int16[W + 0] = r, this.int16[W + 1] = a, this.uint16[W + 2] = l, this.uint16[W + 3] = p, this.uint32[C + 2] = d, this.uint32[C + 3] = m, this.uint32[C + 4] = _, this.uint16[W + 10] = x, this.uint16[W + 11] = b, this.uint16[W + 12] = T, this.float32[C + 7] = I, this.float32[C + 8] = E, this.uint8[F + 36] = A, this.uint8[F + 37] = D, this.uint8[F + 38] = O, this.uint32[C + 10] = $, this.int16[W + 22] = re, t;
|
|
4815
4816
|
}
|
|
4816
4817
|
}
|
|
4817
4818
|
y.prototype.bytesPerElement = 48, Ne("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", y);
|
|
@@ -4819,13 +4820,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4819
4820
|
_refreshViews() {
|
|
4820
4821
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
4821
4822
|
}
|
|
4822
|
-
emplaceBack(t, r, a, l, p, d, m, _, x, b, T, I,
|
|
4823
|
+
emplaceBack(t, r, a, l, p, d, m, _, x, b, T, I, E, A, D, O, $, re, W, C, F, X, me, Ie, ge, be, Ae, Ce) {
|
|
4823
4824
|
const ze = this.length;
|
|
4824
|
-
return this.resize(ze + 1), this.emplace(ze, t, r, a, l, p, d, m, _, x, b, T, I,
|
|
4825
|
+
return this.resize(ze + 1), this.emplace(ze, t, r, a, l, p, d, m, _, x, b, T, I, E, A, D, O, $, re, W, C, F, X, me, Ie, ge, be, Ae, Ce);
|
|
4825
4826
|
}
|
|
4826
|
-
emplace(t, r, a, l, p, d, m, _, x, b, T, I,
|
|
4827
|
+
emplace(t, r, a, l, p, d, m, _, x, b, T, I, E, A, D, O, $, re, W, C, F, X, me, Ie, ge, be, Ae, Ce, ze) {
|
|
4827
4828
|
const Me = 32 * t, Ue = 16 * t;
|
|
4828
|
-
return this.int16[Me + 0] = r, this.int16[Me + 1] = a, this.int16[Me + 2] = l, this.int16[Me + 3] = p, this.int16[Me + 4] = d, this.int16[Me + 5] = m, this.int16[Me + 6] = _, this.int16[Me + 7] = x, this.uint16[Me + 8] = b, this.uint16[Me + 9] = T, this.uint16[Me + 10] = I, this.uint16[Me + 11] =
|
|
4829
|
+
return this.int16[Me + 0] = r, this.int16[Me + 1] = a, this.int16[Me + 2] = l, this.int16[Me + 3] = p, this.int16[Me + 4] = d, this.int16[Me + 5] = m, this.int16[Me + 6] = _, this.int16[Me + 7] = x, this.uint16[Me + 8] = b, this.uint16[Me + 9] = T, this.uint16[Me + 10] = I, this.uint16[Me + 11] = E, this.uint16[Me + 12] = A, this.uint16[Me + 13] = D, this.uint16[Me + 14] = O, this.uint16[Me + 15] = $, this.uint16[Me + 16] = re, this.uint16[Me + 17] = W, this.uint16[Me + 18] = C, this.uint16[Me + 19] = F, this.uint16[Me + 20] = X, this.uint16[Me + 21] = me, this.uint16[Me + 22] = Ie, this.uint32[Ue + 12] = ge, this.float32[Ue + 13] = be, this.float32[Ue + 14] = Ae, this.uint16[Me + 30] = Ce, this.uint16[Me + 31] = ze, t;
|
|
4829
4830
|
}
|
|
4830
4831
|
}
|
|
4831
4832
|
v.prototype.bytesPerElement = 64, Ne("StructArrayLayout8i15ui1ul2f2ui64", v);
|
|
@@ -5175,7 +5176,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5175
5176
|
}
|
|
5176
5177
|
class Re extends os {
|
|
5177
5178
|
}
|
|
5178
|
-
class
|
|
5179
|
+
class Ee extends ol {
|
|
5179
5180
|
}
|
|
5180
5181
|
class Ve extends ll {
|
|
5181
5182
|
}
|
|
@@ -5327,7 +5328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5327
5328
|
this.current !== t && (this.current = t, this.gl.uniform1f(this.location, t));
|
|
5328
5329
|
}
|
|
5329
5330
|
}
|
|
5330
|
-
class
|
|
5331
|
+
class Ac extends Ht {
|
|
5331
5332
|
constructor(t, r) {
|
|
5332
5333
|
super(t, r), this.current = [0, 0, 0, 0];
|
|
5333
5334
|
}
|
|
@@ -5370,7 +5371,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5370
5371
|
p && t.set(p);
|
|
5371
5372
|
}
|
|
5372
5373
|
getBinding(t, r, a) {
|
|
5373
|
-
return a.substr(0, 9) === "u_pattern" ? new
|
|
5374
|
+
return a.substr(0, 9) === "u_pattern" ? new Ac(t, r) : new no(t, r);
|
|
5374
5375
|
}
|
|
5375
5376
|
}
|
|
5376
5377
|
class pn {
|
|
@@ -5470,11 +5471,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5470
5471
|
const m = hl(p, t.type), _ = d.value, x = d.property.specification.type, b = d.property.useIntegerZoom, T = d.property.specification["property-type"], I = T === "cross-faded" || T === "cross-faded-data-driven";
|
|
5471
5472
|
if (_.kind === "constant") this.binders[p] = I ? new Ur(_.value, m) : new us(_.value, m, x), l.push(`/u_${p}`);
|
|
5472
5473
|
else if (_.kind === "source" || I) {
|
|
5473
|
-
const
|
|
5474
|
-
this.binders[p] = I ? new wn(_, x, b, r,
|
|
5474
|
+
const E = Nh(p, x, "source");
|
|
5475
|
+
this.binders[p] = I ? new wn(_, x, b, r, E, t.id) : new pn(_, m, x, E), l.push(`/a_${p}`);
|
|
5475
5476
|
} else {
|
|
5476
|
-
const
|
|
5477
|
-
this.binders[p] = new Vr(_, m, x, b, r,
|
|
5477
|
+
const E = Nh(p, x, "composite");
|
|
5478
|
+
this.binders[p] = new Vr(_, m, x, b, r, E), l.push(`/z_${p}`);
|
|
5478
5479
|
}
|
|
5479
5480
|
}
|
|
5480
5481
|
this.cacheKey = l.sort().join("");
|
|
@@ -5504,8 +5505,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5504
5505
|
for (const T in this.binders) {
|
|
5505
5506
|
const I = this.binders[T];
|
|
5506
5507
|
if ((I instanceof pn || I instanceof Vr || I instanceof wn) && I.expression.isStateDependent === !0) {
|
|
5507
|
-
const
|
|
5508
|
-
I.expression =
|
|
5508
|
+
const E = l.paint.get(T);
|
|
5509
|
+
I.expression = E.value, I.updatePaintArray(x.start, x.end, b, t[m], p), d = !0;
|
|
5509
5510
|
}
|
|
5510
5511
|
}
|
|
5511
5512
|
}
|
|
@@ -5647,16 +5648,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5647
5648
|
d = b.layout.get("circle-sort-key"), m = !d.isConstant(), _ = _ || b.paint.get("circle-pitch-alignment") === "map";
|
|
5648
5649
|
}
|
|
5649
5650
|
const x = _ ? r.subdivisionGranularity.circle : 1;
|
|
5650
|
-
for (const { feature: b, id: T, index: I, sourceLayerIndex:
|
|
5651
|
-
const
|
|
5651
|
+
for (const { feature: b, id: T, index: I, sourceLayerIndex: E } of t) {
|
|
5652
|
+
const A = this.layers[0]._featureFilter.needGeometry, D = ps(b, A);
|
|
5652
5653
|
if (!this.layers[0]._featureFilter.filter(new qt(this.zoom), D, a)) continue;
|
|
5653
|
-
const O = m ? d.evaluate(D, {}, a) : void 0, $ = { id: T, properties: b.properties, type: b.type, sourceLayerIndex:
|
|
5654
|
+
const O = m ? d.evaluate(D, {}, a) : void 0, $ = { id: T, properties: b.properties, type: b.type, sourceLayerIndex: E, index: I, geometry: A ? D.geometry : hs(b), patterns: {}, sortKey: O };
|
|
5654
5655
|
p.push($);
|
|
5655
5656
|
}
|
|
5656
5657
|
m && p.sort((b, T) => b.sortKey - T.sortKey);
|
|
5657
5658
|
for (const b of p) {
|
|
5658
|
-
const { geometry: T, index: I, sourceLayerIndex:
|
|
5659
|
-
this.addFeature(b, T, I, a, x), r.featureIndex.insert(
|
|
5659
|
+
const { geometry: T, index: I, sourceLayerIndex: E } = b, A = t[I].feature;
|
|
5660
|
+
this.addFeature(b, T, I, a, x), r.featureIndex.insert(A, T, I, E, this.index);
|
|
5660
5661
|
}
|
|
5661
5662
|
}
|
|
5662
5663
|
update(t, r, a) {
|
|
@@ -5696,10 +5697,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5696
5697
|
for (const _ of r) for (const x of _) {
|
|
5697
5698
|
const b = x.x, T = x.y;
|
|
5698
5699
|
if (b < 0 || b >= Pt || T < 0 || T >= Pt) continue;
|
|
5699
|
-
const I = this.segments.prepareSegment(m * m, this.layoutVertexArray, this.indexArray, t.sortKey),
|
|
5700
|
-
for (let
|
|
5701
|
-
for (let
|
|
5702
|
-
const O =
|
|
5700
|
+
const I = this.segments.prepareSegment(m * m, this.layoutVertexArray, this.indexArray, t.sortKey), E = I.vertexLength;
|
|
5701
|
+
for (let A = 0; A < m; A++) for (let D = 0; D < m; D++) uf(this.layoutVertexArray, b, T, d[D], d[A]);
|
|
5702
|
+
for (let A = 0; A < m - 1; A++) for (let D = 0; D < m - 1; D++) {
|
|
5703
|
+
const O = E + A * m + D, $ = E + (A + 1) * m + D;
|
|
5703
5704
|
this.indexArray.emplaceBack(O, $ + 1, O + 1), this.indexArray.emplaceBack(O, $, $ + 1);
|
|
5704
5705
|
}
|
|
5705
5706
|
I.vertexLength += m * m, I.primitiveLength += (m - 1) * (m - 1) * 2;
|
|
@@ -5808,12 +5809,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5808
5809
|
return pl("circle-radius", this, r) + pl("circle-stroke-width", this, r) + kc(this.paint.get("circle-translate"));
|
|
5809
5810
|
}
|
|
5810
5811
|
queryIntersectsFeature({ queryGeometry: t, feature: r, featureState: a, geometry: l, transform: p, pixelsToTileUnits: d, unwrappedTileID: m, getElevation: _ }) {
|
|
5811
|
-
const x = Dc(t, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), -p.bearingInRadians, d), b = this.paint.get("circle-radius").evaluate(r, a) + this.paint.get("circle-stroke-width").evaluate(r, a), T = this.paint.get("circle-pitch-alignment") === "map", I = T ? x : function(
|
|
5812
|
-
return
|
|
5813
|
-
}(x, p, m, _),
|
|
5814
|
-
for (const
|
|
5812
|
+
const x = Dc(t, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), -p.bearingInRadians, d), b = this.paint.get("circle-radius").evaluate(r, a) + this.paint.get("circle-stroke-width").evaluate(r, a), T = this.paint.get("circle-pitch-alignment") === "map", I = T ? x : function(A, D, O, $) {
|
|
5813
|
+
return A.map((re) => Xh(re, D, O, $));
|
|
5814
|
+
}(x, p, m, _), E = T ? b * d : b;
|
|
5815
|
+
for (const A of l) for (const D of A) {
|
|
5815
5816
|
const O = T ? D : Xh(D, p, m, _);
|
|
5816
|
-
let $ =
|
|
5817
|
+
let $ = E;
|
|
5817
5818
|
const re = p.projectTileCoordinates(D.x, D.y, m, _).signedDistanceFromCamera;
|
|
5818
5819
|
if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? $ *= re / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && ($ *= p.cameraToCenterDistance / re), hf(I, O, $)) return !0;
|
|
5819
5820
|
}
|
|
@@ -6001,22 +6002,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6001
6002
|
do
|
|
6002
6003
|
I.z === 0 && (I.z = Uu(I.x, I.y, x, b, T)), I.prevZ = I.prev, I.nextZ = I.next, I = I.next;
|
|
6003
6004
|
while (I !== _);
|
|
6004
|
-
I.prevZ.nextZ = null, I.prevZ = null, function(
|
|
6005
|
-
let
|
|
6005
|
+
I.prevZ.nextZ = null, I.prevZ = null, function(E) {
|
|
6006
|
+
let A, D = 1;
|
|
6006
6007
|
do {
|
|
6007
|
-
let O, $ =
|
|
6008
|
-
|
|
6008
|
+
let O, $ = E;
|
|
6009
|
+
E = null;
|
|
6009
6010
|
let re = null;
|
|
6010
|
-
for (
|
|
6011
|
-
|
|
6011
|
+
for (A = 0; $; ) {
|
|
6012
|
+
A++;
|
|
6012
6013
|
let W = $, C = 0;
|
|
6013
6014
|
for (let X = 0; X < D && (C++, W = W.nextZ, W); X++) ;
|
|
6014
6015
|
let F = D;
|
|
6015
|
-
for (; C > 0 || F > 0 && W; ) C !== 0 && (F === 0 || !W || $.z <= W.z) ? (O = $, $ = $.nextZ, C--) : (O = W, W = W.nextZ, F--), re ? re.nextZ = O :
|
|
6016
|
+
for (; C > 0 || F > 0 && W; ) C !== 0 && (F === 0 || !W || $.z <= W.z) ? (O = $, $ = $.nextZ, C--) : (O = W, W = W.nextZ, F--), re ? re.nextZ = O : E = O, O.prevZ = re, re = O;
|
|
6016
6017
|
$ = W;
|
|
6017
6018
|
}
|
|
6018
6019
|
re.nextZ = null, D *= 2;
|
|
6019
|
-
} while (
|
|
6020
|
+
} while (A > 1);
|
|
6020
6021
|
}(I);
|
|
6021
6022
|
}(n, a, l, p);
|
|
6022
6023
|
let m = n;
|
|
@@ -6032,29 +6033,29 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6032
6033
|
function Tf(n) {
|
|
6033
6034
|
const t = n.prev, r = n, a = n.next;
|
|
6034
6035
|
if (gi(t, r, a) >= 0) return !1;
|
|
6035
|
-
const l = t.x, p = r.x, d = a.x, m = t.y, _ = r.y, x = a.y, b = Math.min(l, p, d), T = Math.min(m, _, x), I = Math.max(l, p, d),
|
|
6036
|
-
let
|
|
6037
|
-
for (;
|
|
6038
|
-
if (
|
|
6039
|
-
|
|
6036
|
+
const l = t.x, p = r.x, d = a.x, m = t.y, _ = r.y, x = a.y, b = Math.min(l, p, d), T = Math.min(m, _, x), I = Math.max(l, p, d), E = Math.max(m, _, x);
|
|
6037
|
+
let A = a.next;
|
|
6038
|
+
for (; A !== t; ) {
|
|
6039
|
+
if (A.x >= b && A.x <= I && A.y >= T && A.y <= E && ml(l, m, p, _, d, x, A.x, A.y) && gi(A.prev, A, A.next) >= 0) return !1;
|
|
6040
|
+
A = A.next;
|
|
6040
6041
|
}
|
|
6041
6042
|
return !0;
|
|
6042
6043
|
}
|
|
6043
6044
|
function Mf(n, t, r, a) {
|
|
6044
6045
|
const l = n.prev, p = n, d = n.next;
|
|
6045
6046
|
if (gi(l, p, d) >= 0) return !1;
|
|
6046
|
-
const m = l.x, _ = p.x, x = d.x, b = l.y, T = p.y, I = d.y,
|
|
6047
|
+
const m = l.x, _ = p.x, x = d.x, b = l.y, T = p.y, I = d.y, E = Math.min(m, _, x), A = Math.min(b, T, I), D = Math.max(m, _, x), O = Math.max(b, T, I), $ = Uu(E, A, t, r, a), re = Uu(D, O, t, r, a);
|
|
6047
6048
|
let W = n.prevZ, C = n.nextZ;
|
|
6048
6049
|
for (; W && W.z >= $ && C && C.z <= re; ) {
|
|
6049
|
-
if (W.x >=
|
|
6050
|
+
if (W.x >= E && W.x <= D && W.y >= A && W.y <= O && W !== l && W !== d && ml(m, b, _, T, x, I, W.x, W.y) && gi(W.prev, W, W.next) >= 0 || (W = W.prevZ, C.x >= E && C.x <= D && C.y >= A && C.y <= O && C !== l && C !== d && ml(m, b, _, T, x, I, C.x, C.y) && gi(C.prev, C, C.next) >= 0)) return !1;
|
|
6050
6051
|
C = C.nextZ;
|
|
6051
6052
|
}
|
|
6052
6053
|
for (; W && W.z >= $; ) {
|
|
6053
|
-
if (W.x >=
|
|
6054
|
+
if (W.x >= E && W.x <= D && W.y >= A && W.y <= O && W !== l && W !== d && ml(m, b, _, T, x, I, W.x, W.y) && gi(W.prev, W, W.next) >= 0) return !1;
|
|
6054
6055
|
W = W.prevZ;
|
|
6055
6056
|
}
|
|
6056
6057
|
for (; C && C.z <= re; ) {
|
|
6057
|
-
if (C.x >=
|
|
6058
|
+
if (C.x >= E && C.x <= D && C.y >= A && C.y <= O && C !== l && C !== d && ml(m, b, _, T, x, I, C.x, C.y) && gi(C.prev, C, C.next) >= 0) return !1;
|
|
6058
6059
|
C = C.nextZ;
|
|
6059
6060
|
}
|
|
6060
6061
|
return !0;
|
|
@@ -6100,13 +6101,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6100
6101
|
d = d.next;
|
|
6101
6102
|
} while (d !== p);
|
|
6102
6103
|
if (!x) return null;
|
|
6103
|
-
const T = x, I = x.x,
|
|
6104
|
-
let
|
|
6104
|
+
const T = x, I = x.x, E = x.y;
|
|
6105
|
+
let A = 1 / 0;
|
|
6105
6106
|
d = x;
|
|
6106
6107
|
do {
|
|
6107
|
-
if (m >= d.x && d.x >= I && m !== d.x && ip(_ <
|
|
6108
|
+
if (m >= d.x && d.x >= I && m !== d.x && ip(_ < E ? m : b, _, I, E, _ < E ? b : m, _, d.x, d.y)) {
|
|
6108
6109
|
const D = Math.abs(_ - d.y) / (m - d.x);
|
|
6109
|
-
gl(d, l) && (D <
|
|
6110
|
+
gl(d, l) && (D < A || D === A && (d.x > x.x || d.x === x.x && Ef(x, d))) && (x = d, A = D);
|
|
6110
6111
|
}
|
|
6111
6112
|
d = d.next;
|
|
6112
6113
|
} while (d !== T);
|
|
@@ -6116,13 +6117,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6116
6117
|
const a = np(r, n);
|
|
6117
6118
|
return fs(a, a.next), fs(r, r.next);
|
|
6118
6119
|
}
|
|
6119
|
-
function
|
|
6120
|
+
function Ef(n, t) {
|
|
6120
6121
|
return gi(n.prev, n, t.prev) < 0 && gi(t.next, n, n.next) < 0;
|
|
6121
6122
|
}
|
|
6122
6123
|
function Uu(n, t, r, a, l) {
|
|
6123
6124
|
return (n = 1431655765 & ((n = 858993459 & ((n = 252645135 & ((n = 16711935 & ((n = (n - r) * l | 0) | n << 8)) | n << 4)) | n << 2)) | n << 1)) | (t = 1431655765 & ((t = 858993459 & ((t = 252645135 & ((t = 16711935 & ((t = (t - a) * l | 0) | t << 8)) | t << 4)) | t << 2)) | t << 1)) << 1;
|
|
6124
6125
|
}
|
|
6125
|
-
function
|
|
6126
|
+
function Af(n) {
|
|
6126
6127
|
let t = n, r = n;
|
|
6127
6128
|
do
|
|
6128
6129
|
(t.x < r.x || t.x === r.x && t.y < r.y) && (r = t), t = t.next;
|
|
@@ -6233,8 +6234,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6233
6234
|
m = Math.min(m, O), x = Math.max(x, O), _ = Math.min(_, $), b = Math.max(b, $);
|
|
6234
6235
|
}
|
|
6235
6236
|
if (m === x || _ === b) continue;
|
|
6236
|
-
const T = Math.floor(m / this._granularityCellSize), I = Math.ceil(x / this._granularityCellSize),
|
|
6237
|
-
if (T !== I ||
|
|
6237
|
+
const T = Math.floor(m / this._granularityCellSize), I = Math.ceil(x / this._granularityCellSize), E = Math.floor(_ / this._granularityCellSize), A = Math.ceil(b / this._granularityCellSize);
|
|
6238
|
+
if (T !== I || E !== A) for (let D = E; D < A; D++) {
|
|
6238
6239
|
const O = this._scanlineGenerateVertexRingForCellRow(D, d, p);
|
|
6239
6240
|
Df(this._vertexBuffer, O, r);
|
|
6240
6241
|
}
|
|
@@ -6245,32 +6246,32 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6245
6246
|
_scanlineGenerateVertexRingForCellRow(t, r, a) {
|
|
6246
6247
|
const l = t * this._granularityCellSize, p = l + this._granularityCellSize, d = [];
|
|
6247
6248
|
for (let m = 0; m < 3; m++) {
|
|
6248
|
-
const _ = r[2 * m], x = r[2 * m + 1], b = r[2 * (m + 1) % 6], T = r[(2 * (m + 1) + 1) % 6], I = r[2 * (m + 2) % 6],
|
|
6249
|
+
const _ = r[2 * m], x = r[2 * m + 1], b = r[2 * (m + 1) % 6], T = r[(2 * (m + 1) + 1) % 6], I = r[2 * (m + 2) % 6], E = r[(2 * (m + 2) + 1) % 6], A = b - _, D = T - x, O = A === 0, $ = D === 0, re = (l - x) / D, W = (p - x) / D, C = Math.min(re, W), F = Math.max(re, W);
|
|
6249
6250
|
if (!$ && (C >= 1 || F <= 0) || $ && (x < l || x > p)) {
|
|
6250
6251
|
T >= l && T <= p && d.push(a[(m + 1) % 3]);
|
|
6251
6252
|
continue;
|
|
6252
6253
|
}
|
|
6253
|
-
!$ && C > 0 && d.push(this._vertexToIndex(_ +
|
|
6254
|
-
const X = _ +
|
|
6255
|
-
O || this._generateIntraEdgeVertices(d, _, x, b, T, X, me), !$ && F < 1 && d.push(this._vertexToIndex(_ +
|
|
6254
|
+
!$ && C > 0 && d.push(this._vertexToIndex(_ + A * C, x + D * C));
|
|
6255
|
+
const X = _ + A * Math.max(C, 0), me = _ + A * Math.min(F, 1);
|
|
6256
|
+
O || this._generateIntraEdgeVertices(d, _, x, b, T, X, me), !$ && F < 1 && d.push(this._vertexToIndex(_ + A * F, x + D * F)), ($ || T >= l && T <= p) && d.push(a[(m + 1) % 3]), !$ && (T <= l || T >= p) && this._generateInterEdgeVertices(d, _, x, b, T, I, E, me, l, p);
|
|
6256
6257
|
}
|
|
6257
6258
|
return d;
|
|
6258
6259
|
}
|
|
6259
6260
|
_generateIntraEdgeVertices(t, r, a, l, p, d, m) {
|
|
6260
|
-
const _ = l - r, x = p - a, b = x === 0, T = b ? Math.min(r, l) : Math.min(d, m), I = b ? Math.max(r, l) : Math.max(d, m),
|
|
6261
|
-
if (b ? r < l : d < m) for (let D =
|
|
6261
|
+
const _ = l - r, x = p - a, b = x === 0, T = b ? Math.min(r, l) : Math.min(d, m), I = b ? Math.max(r, l) : Math.max(d, m), E = Math.floor(T / this._granularityCellSize) + 1, A = Math.ceil(I / this._granularityCellSize) - 1;
|
|
6262
|
+
if (b ? r < l : d < m) for (let D = E; D <= A; D++) {
|
|
6262
6263
|
const O = D * this._granularityCellSize;
|
|
6263
6264
|
t.push(this._vertexToIndex(O, a + x * (O - r) / _));
|
|
6264
6265
|
}
|
|
6265
|
-
else for (let D =
|
|
6266
|
+
else for (let D = A; D >= E; D--) {
|
|
6266
6267
|
const O = D * this._granularityCellSize;
|
|
6267
6268
|
t.push(this._vertexToIndex(O, a + x * (O - r) / _));
|
|
6268
6269
|
}
|
|
6269
6270
|
}
|
|
6270
6271
|
_generateInterEdgeVertices(t, r, a, l, p, d, m, _, x, b) {
|
|
6271
|
-
const T = p - a, I = d - l,
|
|
6272
|
+
const T = p - a, I = d - l, E = m - p, A = (x - p) / E, D = (b - p) / E, O = Math.min(A, D), $ = Math.max(A, D), re = l + I * O;
|
|
6272
6273
|
let W = Math.floor(Math.min(re, _) / this._granularityCellSize) + 1, C = Math.ceil(Math.max(re, _) / this._granularityCellSize) - 1, F = _ < re;
|
|
6273
|
-
const X =
|
|
6274
|
+
const X = E === 0;
|
|
6274
6275
|
if (X && (m === x || m === b)) return;
|
|
6275
6276
|
if (X || O >= 1 || $ <= 0) {
|
|
6276
6277
|
const Ie = a - m, ge = d + (r - d) * Math.min((x - m) / Ie, (b - m) / Ie);
|
|
@@ -6306,8 +6307,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6306
6307
|
_fillPoles(t, r, a) {
|
|
6307
6308
|
const l = this._vertexBuffer, p = Pt, d = t.length;
|
|
6308
6309
|
for (let m = 2; m < d; m += 3) {
|
|
6309
|
-
const _ = t[m - 2], x = t[m - 1], b = t[m], T = l[2 * _], I = l[2 * _ + 1],
|
|
6310
|
-
r && (I === 0 &&
|
|
6310
|
+
const _ = t[m - 2], x = t[m - 1], b = t[m], T = l[2 * _], I = l[2 * _ + 1], E = l[2 * x], A = l[2 * x + 1], D = l[2 * b], O = l[2 * b + 1];
|
|
6311
|
+
r && (I === 0 && A === 0 && this._generatePoleQuad(t, _, x, T, E, lo), A === 0 && O === 0 && this._generatePoleQuad(t, x, b, E, D, lo), O === 0 && I === 0 && this._generatePoleQuad(t, b, _, D, T, lo)), a && (I === p && A === p && this._generatePoleQuad(t, _, x, T, E, yl), A === p && O === p && this._generatePoleQuad(t, x, b, E, D, yl), O === p && I === p && this._generatePoleQuad(t, b, _, D, T, yl));
|
|
6311
6312
|
}
|
|
6312
6313
|
}
|
|
6313
6314
|
_initializeVertices(t) {
|
|
@@ -6328,30 +6329,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6328
6329
|
this._initializeVertices(a);
|
|
6329
6330
|
try {
|
|
6330
6331
|
const m = function(x, b, T = 2) {
|
|
6331
|
-
const I = b && b.length,
|
|
6332
|
-
let
|
|
6332
|
+
const I = b && b.length, E = I ? b[0] * T : x.length;
|
|
6333
|
+
let A = tp(x, 0, E, T, !0);
|
|
6333
6334
|
const D = [];
|
|
6334
|
-
if (!
|
|
6335
|
+
if (!A || A.next === A.prev) return D;
|
|
6335
6336
|
let O, $, re;
|
|
6336
|
-
if (I && (
|
|
6337
|
+
if (I && (A = function(W, C, F, X) {
|
|
6337
6338
|
const me = [];
|
|
6338
6339
|
for (let Ie = 0, ge = C.length; Ie < ge; Ie++) {
|
|
6339
6340
|
const be = tp(W, C[Ie] * X, Ie < ge - 1 ? C[Ie + 1] * X : W.length, X, !1);
|
|
6340
|
-
be === be.next && (be.steiner = !0), me.push(
|
|
6341
|
+
be === be.next && (be.steiner = !0), me.push(Af(be));
|
|
6341
6342
|
}
|
|
6342
6343
|
me.sort(If);
|
|
6343
6344
|
for (let Ie = 0; Ie < me.length; Ie++) F = Cf(me[Ie], F);
|
|
6344
6345
|
return F;
|
|
6345
|
-
}(x, b,
|
|
6346
|
+
}(x, b, A, T)), x.length > 80 * T) {
|
|
6346
6347
|
O = 1 / 0, $ = 1 / 0;
|
|
6347
6348
|
let W = -1 / 0, C = -1 / 0;
|
|
6348
|
-
for (let F = T; F <
|
|
6349
|
+
for (let F = T; F < E; F += T) {
|
|
6349
6350
|
const X = x[F], me = x[F + 1];
|
|
6350
6351
|
X < O && (O = X), me < $ && ($ = me), X > W && (W = X), me > C && (C = me);
|
|
6351
6352
|
}
|
|
6352
6353
|
re = Math.max(W - O, C - $), re = re !== 0 ? 32767 / re : 0;
|
|
6353
6354
|
}
|
|
6354
|
-
return fl(
|
|
6355
|
+
return fl(A, D, T, O, $, re, 0), D;
|
|
6355
6356
|
}(a, l), _ = this._convertIndices(a, m);
|
|
6356
6357
|
p = this._subdivideTrianglesScanline(_);
|
|
6357
6358
|
} catch (m) {
|
|
@@ -6386,19 +6387,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6386
6387
|
m.push(new je(n[0].x, n[0].y));
|
|
6387
6388
|
const _ = n.length, x = p ? _ : _ - 1;
|
|
6388
6389
|
for (let b = 0; b < x; b++) {
|
|
6389
|
-
const T = n[b], I = b < _ - 1 ? n[b + 1] : n[0],
|
|
6390
|
+
const T = n[b], I = b < _ - 1 ? n[b + 1] : n[0], E = T.x, A = T.y, D = I.x, O = I.y, $ = E !== D, re = A !== O;
|
|
6390
6391
|
if (!$ && !re) continue;
|
|
6391
|
-
const W = D -
|
|
6392
|
-
let me =
|
|
6392
|
+
const W = D - E, C = O - A, F = Math.abs(W), X = Math.abs(C);
|
|
6393
|
+
let me = E, Ie = A;
|
|
6393
6394
|
for (; ; ) {
|
|
6394
|
-
const be = W > 0 ? (Math.floor(me / d) + 1) * d : (Math.ceil(me / d) - 1) * d,
|
|
6395
|
+
const be = W > 0 ? (Math.floor(me / d) + 1) * d : (Math.ceil(me / d) - 1) * d, Ae = C > 0 ? (Math.floor(Ie / d) + 1) * d : (Math.ceil(Ie / d) - 1) * d, Ce = Math.abs(me - be), ze = Math.abs(Ie - Ae), Me = Math.abs(me - D), Ue = Math.abs(Ie - O), Ye = $ ? Ce / F : Number.POSITIVE_INFINITY, Ke = re ? ze / X : Number.POSITIVE_INFINITY;
|
|
6395
6396
|
if ((Me <= Ce || !$) && (Ue <= ze || !re)) break;
|
|
6396
6397
|
if (Ye < Ke && $ || !re) {
|
|
6397
6398
|
me = be, Ie += C * Ye;
|
|
6398
6399
|
const Ze = new je(me, Math.round(Ie));
|
|
6399
6400
|
m[m.length - 1].x === Ze.x && m[m.length - 1].y === Ze.y || m.push(Ze);
|
|
6400
6401
|
} else {
|
|
6401
|
-
me += W * Ke, Ie =
|
|
6402
|
+
me += W * Ke, Ie = Ae;
|
|
6402
6403
|
const Ze = new je(Math.round(me), Ie);
|
|
6403
6404
|
m[m.length - 1].x === Ze.x && m[m.length - 1].y === Ze.y || m.push(Ze);
|
|
6404
6405
|
}
|
|
@@ -6418,13 +6419,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6418
6419
|
const p = t.length;
|
|
6419
6420
|
let d = a, m = (d + 1) % p;
|
|
6420
6421
|
for (; ; ) {
|
|
6421
|
-
const _ = d - 1 >= 0 ? d - 1 : p - 1, x = (m + 1) % p, b = n[2 * t[_]], T = n[2 * t[x]], I = n[2 * t[d]],
|
|
6422
|
+
const _ = d - 1 >= 0 ? d - 1 : p - 1, x = (m + 1) % p, b = n[2 * t[_]], T = n[2 * t[x]], I = n[2 * t[d]], E = n[2 * t[d] + 1], A = n[2 * t[m] + 1];
|
|
6422
6423
|
let D = !1;
|
|
6423
6424
|
if (b < T) D = !0;
|
|
6424
6425
|
else if (b > T) D = !1;
|
|
6425
6426
|
else {
|
|
6426
|
-
const O =
|
|
6427
|
-
((b - I) * O + (n[2 * t[_] + 1] -
|
|
6427
|
+
const O = A - E, $ = -(n[2 * t[m]] - I), re = E < A ? 1 : -1;
|
|
6428
|
+
((b - I) * O + (n[2 * t[_] + 1] - E) * $) * re > ((T - I) * O + (n[2 * t[x] + 1] - E) * $) * re && (D = !0);
|
|
6428
6429
|
}
|
|
6429
6430
|
if (D) {
|
|
6430
6431
|
const O = t[_], $ = t[d], re = t[m];
|
|
@@ -6441,39 +6442,39 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6441
6442
|
if (x < kt.MAX_VERTEX_ARRAY_LENGTH) {
|
|
6442
6443
|
const T = t.prepareSegment(x, r, a), I = T.vertexLength;
|
|
6443
6444
|
for (let D = 0; D < p.length; D += 3) a.emplaceBack(I + p[D], I + p[D + 1], I + p[D + 2]);
|
|
6444
|
-
let
|
|
6445
|
-
T.vertexLength += x, T.primitiveLength += p.length / 3, b && (
|
|
6445
|
+
let E, A;
|
|
6446
|
+
T.vertexLength += x, T.primitiveLength += p.length / 3, b && (A = d.prepareSegment(x, r, m), E = A.vertexLength, A.vertexLength += x);
|
|
6446
6447
|
for (let D = 0; D < l.length; D += 2) n(l[D], l[D + 1]);
|
|
6447
6448
|
if (b) for (let D = 0; D < _.length; D++) {
|
|
6448
6449
|
const O = _[D];
|
|
6449
|
-
for (let $ = 1; $ < O.length; $ += 2) m.emplaceBack(
|
|
6450
|
-
|
|
6450
|
+
for (let $ = 1; $ < O.length; $ += 2) m.emplaceBack(E + O[$ - 1], E + O[$]);
|
|
6451
|
+
A.primitiveLength += O.length / 2;
|
|
6451
6452
|
}
|
|
6452
|
-
} else (function(T, I,
|
|
6453
|
+
} else (function(T, I, E, A, D, O) {
|
|
6453
6454
|
const $ = [];
|
|
6454
|
-
for (let X = 0; X <
|
|
6455
|
+
for (let X = 0; X < A.length / 2; X++) $.push(-1);
|
|
6455
6456
|
const re = { count: 0 };
|
|
6456
|
-
let W = 0, C = T.getOrCreateLatestSegment(I,
|
|
6457
|
+
let W = 0, C = T.getOrCreateLatestSegment(I, E), F = C.vertexLength;
|
|
6457
6458
|
for (let X = 2; X < D.length; X += 3) {
|
|
6458
6459
|
const me = D[X - 2], Ie = D[X - 1], ge = D[X];
|
|
6459
|
-
let be = $[me] < W,
|
|
6460
|
-
C.vertexLength + ((be ? 1 : 0) + (
|
|
6461
|
-
const ze = xl($,
|
|
6462
|
-
|
|
6460
|
+
let be = $[me] < W, Ae = $[Ie] < W, Ce = $[ge] < W;
|
|
6461
|
+
C.vertexLength + ((be ? 1 : 0) + (Ae ? 1 : 0) + (Ce ? 1 : 0)) > kt.MAX_VERTEX_ARRAY_LENGTH && (C = T.createNewSegment(I, E), W = re.count, be = !0, Ae = !0, Ce = !0, F = 0);
|
|
6462
|
+
const ze = xl($, A, O, re, me, be, C), Me = xl($, A, O, re, Ie, Ae, C), Ue = xl($, A, O, re, ge, Ce, C);
|
|
6463
|
+
E.emplaceBack(F + ze - W, F + Me - W, F + Ue - W), C.primitiveLength++;
|
|
6463
6464
|
}
|
|
6464
|
-
})(t, r, a, l, p, n), b && function(T, I,
|
|
6465
|
+
})(t, r, a, l, p, n), b && function(T, I, E, A, D, O) {
|
|
6465
6466
|
const $ = [];
|
|
6466
|
-
for (let X = 0; X <
|
|
6467
|
+
for (let X = 0; X < A.length / 2; X++) $.push(-1);
|
|
6467
6468
|
const re = { count: 0 };
|
|
6468
|
-
let W = 0, C = T.getOrCreateLatestSegment(I,
|
|
6469
|
+
let W = 0, C = T.getOrCreateLatestSegment(I, E), F = C.vertexLength;
|
|
6469
6470
|
for (let X = 0; X < D.length; X++) {
|
|
6470
6471
|
const me = D[X];
|
|
6471
6472
|
for (let Ie = 1; Ie < D[X].length; Ie += 2) {
|
|
6472
6473
|
const ge = me[Ie - 1], be = me[Ie];
|
|
6473
|
-
let
|
|
6474
|
-
C.vertexLength + ((
|
|
6475
|
-
const ze = xl($,
|
|
6476
|
-
|
|
6474
|
+
let Ae = $[ge] < W, Ce = $[be] < W;
|
|
6475
|
+
C.vertexLength + ((Ae ? 1 : 0) + (Ce ? 1 : 0)) > kt.MAX_VERTEX_ARRAY_LENGTH && (C = T.createNewSegment(I, E), W = re.count, Ae = !0, Ce = !0, F = 0);
|
|
6476
|
+
const ze = xl($, A, O, re, ge, Ae, C), Me = xl($, A, O, re, be, Ce, C);
|
|
6477
|
+
E.emplaceBack(F + ze - W, F + Me - W), C.primitiveLength++;
|
|
6477
6478
|
}
|
|
6478
6479
|
}
|
|
6479
6480
|
}(d, r, m, l, _, n), t.forceNewSegmentOnNextPrepare(), d == null || d.forceNewSegmentOnNextPrepare();
|
|
@@ -6495,8 +6496,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6495
6496
|
for (const { feature: m, id: _, index: x, sourceLayerIndex: b } of t) {
|
|
6496
6497
|
const T = this.layers[0]._featureFilter.needGeometry, I = ps(m, T);
|
|
6497
6498
|
if (!this.layers[0]._featureFilter.filter(new qt(this.zoom), I, a)) continue;
|
|
6498
|
-
const
|
|
6499
|
-
d.push(
|
|
6499
|
+
const E = p ? l.evaluate(I, {}, a, r.availableImages) : void 0, A = { id: _, properties: m.properties, type: m.type, sourceLayerIndex: b, index: x, geometry: T ? I.geometry : hs(m), patterns: {}, sortKey: E };
|
|
6500
|
+
d.push(A);
|
|
6500
6501
|
}
|
|
6501
6502
|
p && d.sort((m, _) => m.sortKey - _.sortKey);
|
|
6502
6503
|
for (const m of d) {
|
|
@@ -6527,7 +6528,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6527
6528
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.indexBuffer2.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.segments2.destroy());
|
|
6528
6529
|
}
|
|
6529
6530
|
addFeature(t, r, a, l, p, d) {
|
|
6530
|
-
for (const m of
|
|
6531
|
+
for (const m of As(r, 500)) {
|
|
6531
6532
|
const _ = sp(m, l, d.fill.getGranularityForZoomLevel(l.z)), x = this.layoutVertexArray;
|
|
6532
6533
|
op((b, T) => {
|
|
6533
6534
|
x.emplaceBack(b, T);
|
|
@@ -6604,18 +6605,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6604
6605
|
}, t.prototype.bbox = function() {
|
|
6605
6606
|
var l = this._pbf;
|
|
6606
6607
|
l.pos = this._geometry;
|
|
6607
|
-
for (var p = l.readVarint() + l.pos, d = 1, m = 0, _ = 0, x = 0, b = 1 / 0, T = -1 / 0, I = 1 / 0,
|
|
6608
|
+
for (var p = l.readVarint() + l.pos, d = 1, m = 0, _ = 0, x = 0, b = 1 / 0, T = -1 / 0, I = 1 / 0, E = -1 / 0; l.pos < p; ) {
|
|
6608
6609
|
if (m <= 0) {
|
|
6609
|
-
var
|
|
6610
|
-
d = 7 &
|
|
6610
|
+
var A = l.readVarint();
|
|
6611
|
+
d = 7 & A, m = A >> 3;
|
|
6611
6612
|
}
|
|
6612
|
-
if (m--, d === 1 || d === 2) (_ += l.readSVarint()) < b && (b = _), _ > T && (T = _), (x += l.readSVarint()) < I && (I = x), x >
|
|
6613
|
+
if (m--, d === 1 || d === 2) (_ += l.readSVarint()) < b && (b = _), _ > T && (T = _), (x += l.readSVarint()) < I && (I = x), x > E && (E = x);
|
|
6613
6614
|
else if (d !== 7) throw new Error("unknown command " + d);
|
|
6614
6615
|
}
|
|
6615
|
-
return [b, I, T,
|
|
6616
|
+
return [b, I, T, E];
|
|
6616
6617
|
}, t.prototype.toGeoJSON = function(l, p, d) {
|
|
6617
|
-
var m, _, x = this.extent * Math.pow(2, d), b = this.extent * l, T = this.extent * p, I = this.loadGeometry(),
|
|
6618
|
-
function
|
|
6618
|
+
var m, _, x = this.extent * Math.pow(2, d), b = this.extent * l, T = this.extent * p, I = this.loadGeometry(), E = t.types[this.type];
|
|
6619
|
+
function A($) {
|
|
6619
6620
|
for (var re = 0; re < $.length; re++) {
|
|
6620
6621
|
var W = $[re];
|
|
6621
6622
|
$[re] = [360 * (W.x + b) / x - 180, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * (W.y + T) / x) * Math.PI / 180)) - 90];
|
|
@@ -6625,10 +6626,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6625
6626
|
case 1:
|
|
6626
6627
|
var D = [];
|
|
6627
6628
|
for (m = 0; m < I.length; m++) D[m] = I[m][0];
|
|
6628
|
-
|
|
6629
|
+
A(I = D);
|
|
6629
6630
|
break;
|
|
6630
6631
|
case 2:
|
|
6631
|
-
for (m = 0; m < I.length; m++)
|
|
6632
|
+
for (m = 0; m < I.length; m++) A(I[m]);
|
|
6632
6633
|
break;
|
|
6633
6634
|
case 3:
|
|
6634
6635
|
for (I = function($) {
|
|
@@ -6639,10 +6640,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6639
6640
|
me !== 0 && (C === void 0 && (C = me < 0), C === me < 0 ? (W && F.push(W), W = [$[X]]) : W.push($[X]));
|
|
6640
6641
|
}
|
|
6641
6642
|
return W && F.push(W), F;
|
|
6642
|
-
}(I), m = 0; m < I.length; m++) for (_ = 0; _ < I[m].length; _++)
|
|
6643
|
+
}(I), m = 0; m < I.length; m++) for (_ = 0; _ < I[m].length; _++) A(I[m][_]);
|
|
6643
6644
|
}
|
|
6644
|
-
I.length === 1 ? I = I[0] :
|
|
6645
|
-
var O = { type: "Feature", geometry: { type:
|
|
6645
|
+
I.length === 1 ? I = I[0] : E = "Multi" + E;
|
|
6646
|
+
var O = { type: "Feature", geometry: { type: E, coordinates: I }, properties: this.properties };
|
|
6646
6647
|
return "id" in this && (O.id = this.id), O;
|
|
6647
6648
|
}, $u;
|
|
6648
6649
|
}
|
|
@@ -6692,7 +6693,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6692
6693
|
}
|
|
6693
6694
|
class Wu {
|
|
6694
6695
|
constructor(t) {
|
|
6695
|
-
this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map((r) => r.id), this.index = t.index, this.hasPattern = !1, this.layoutVertexArray = new
|
|
6696
|
+
this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map((r) => r.id), this.index = t.index, this.hasPattern = !1, this.layoutVertexArray = new Ee(), this.centroidVertexArray = new ve(), this.indexArray = new zt(), this.programConfigurations = new Fn(t.layers, t.zoom), this.segments = new kt(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
|
|
6696
6697
|
}
|
|
6697
6698
|
populate(t, r, a) {
|
|
6698
6699
|
this.features = [], this.hasPattern = ju("fill-extrusion", this.layers, r);
|
|
@@ -6725,11 +6726,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6725
6726
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.centroidVertexBuffer.destroy());
|
|
6726
6727
|
}
|
|
6727
6728
|
addFeature(t, r, a, l, p, d) {
|
|
6728
|
-
for (const m of
|
|
6729
|
+
for (const m of As(r, 500)) {
|
|
6729
6730
|
const _ = { x: 0, y: 0, sampleCount: 0 }, x = this.layoutVertexArray.length;
|
|
6730
6731
|
this.processPolygon(_, l, t, m, d);
|
|
6731
6732
|
const b = this.layoutVertexArray.length - x, T = Math.floor(_.x / _.sampleCount), I = Math.floor(_.y / _.sampleCount);
|
|
6732
|
-
for (let
|
|
6733
|
+
for (let E = 0; E < b; E++) this.centroidVertexArray.emplaceBack(T, I);
|
|
6733
6734
|
}
|
|
6734
6735
|
this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, t, a, p, l);
|
|
6735
6736
|
}
|
|
@@ -6792,20 +6793,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6792
6793
|
return !0;
|
|
6793
6794
|
}
|
|
6794
6795
|
queryIntersectsFeature({ queryGeometry: t, feature: r, featureState: a, geometry: l, transform: p, pixelsToTileUnits: d, pixelPosMatrix: m }) {
|
|
6795
|
-
const _ = Dc(t, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), -p.bearingInRadians, d), x = this.paint.get("fill-extrusion-height").evaluate(r, a), b = this.paint.get("fill-extrusion-base").evaluate(r, a), T = function(
|
|
6796
|
+
const _ = Dc(t, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), -p.bearingInRadians, d), x = this.paint.get("fill-extrusion-height").evaluate(r, a), b = this.paint.get("fill-extrusion-base").evaluate(r, a), T = function(E, A, D) {
|
|
6796
6797
|
const O = [];
|
|
6797
|
-
for (const $ of
|
|
6798
|
+
for (const $ of E) {
|
|
6798
6799
|
const re = [$.x, $.y, 0, 1];
|
|
6799
|
-
li(re, re,
|
|
6800
|
+
li(re, re, A), O.push(new je(re[0] / re[3], re[1] / re[3]));
|
|
6800
6801
|
}
|
|
6801
6802
|
return O;
|
|
6802
|
-
}(_, m), I = function(
|
|
6803
|
-
const $ = [], re = [], W = O[8] *
|
|
6804
|
-
for (const
|
|
6803
|
+
}(_, m), I = function(E, A, D, O) {
|
|
6804
|
+
const $ = [], re = [], W = O[8] * A, C = O[9] * A, F = O[10] * A, X = O[11] * A, me = O[8] * D, Ie = O[9] * D, ge = O[10] * D, be = O[11] * D;
|
|
6805
|
+
for (const Ae of E) {
|
|
6805
6806
|
const Ce = [], ze = [];
|
|
6806
|
-
for (const Me of
|
|
6807
|
-
const Ue = Me.x, Ye = Me.y, Ke = O[0] * Ue + O[4] * Ye + O[12], Ze = O[1] * Ue + O[5] * Ye + O[13], mt = O[2] * Ue + O[6] * Ye + O[14], si = O[3] * Ue + O[7] * Ye + O[15],
|
|
6808
|
-
Bi.z =
|
|
6807
|
+
for (const Me of Ae) {
|
|
6808
|
+
const Ue = Me.x, Ye = Me.y, Ke = O[0] * Ue + O[4] * Ye + O[12], Ze = O[1] * Ue + O[5] * Ye + O[13], mt = O[2] * Ue + O[6] * Ye + O[14], si = O[3] * Ue + O[7] * Ye + O[15], Ei = mt + F, ir = si + X, Xr = Ke + me, Sr = Ze + Ie, Wi = mt + ge, ii = si + be, Bi = new je((Ke + W) / ir, (Ze + C) / ir);
|
|
6809
|
+
Bi.z = Ei / ir, Ce.push(Bi);
|
|
6809
6810
|
const Xi = new je(Xr / ii, Sr / ii);
|
|
6810
6811
|
Xi.z = Wi / ii, ze.push(Xi);
|
|
6811
6812
|
}
|
|
@@ -6813,11 +6814,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6813
6814
|
}
|
|
6814
6815
|
return [$, re];
|
|
6815
6816
|
}(l, b, x, m);
|
|
6816
|
-
return function(
|
|
6817
|
+
return function(E, A, D) {
|
|
6817
6818
|
let O = 1 / 0;
|
|
6818
|
-
$h(D,
|
|
6819
|
-
for (let $ = 0; $ <
|
|
6820
|
-
const re =
|
|
6819
|
+
$h(D, A) && (O = xp(D, A[0]));
|
|
6820
|
+
for (let $ = 0; $ < A.length; $++) {
|
|
6821
|
+
const re = A[$], W = E[$];
|
|
6821
6822
|
for (let C = 0; C < re.length - 1; C++) {
|
|
6822
6823
|
const F = re[C], X = [F, re[C + 1], W[C + 1], W[C], F];
|
|
6823
6824
|
Zh(D, X) && (O = Math.min(O, xp(D, X)));
|
|
@@ -6837,7 +6838,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6837
6838
|
let l;
|
|
6838
6839
|
for (; !l || a.equals(l); ) if (l = t[r++], !l) return 1 / 0;
|
|
6839
6840
|
for (; r < t.length; r++) {
|
|
6840
|
-
const p = t[r], d = n[0], m = l.sub(a), _ = p.sub(a), x = d.sub(a), b = wl(m, m), T = wl(m, _), I = wl(_, _),
|
|
6841
|
+
const p = t[r], d = n[0], m = l.sub(a), _ = p.sub(a), x = d.sub(a), b = wl(m, m), T = wl(m, _), I = wl(_, _), E = wl(x, m), A = wl(x, _), D = b * I - T * T, O = (I * E - T * A) / D, $ = (b * A - T * E) / D, re = a.z * (1 - O - $) + l.z * O + p.z * $;
|
|
6841
6842
|
if (isFinite(re)) return re;
|
|
6842
6843
|
}
|
|
6843
6844
|
return 1 / 0;
|
|
@@ -6861,8 +6862,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6861
6862
|
for (const { feature: m, id: _, index: x, sourceLayerIndex: b } of t) {
|
|
6862
6863
|
const T = this.layers[0]._featureFilter.needGeometry, I = ps(m, T);
|
|
6863
6864
|
if (!this.layers[0]._featureFilter.filter(new qt(this.zoom), I, a)) continue;
|
|
6864
|
-
const
|
|
6865
|
-
d.push(
|
|
6865
|
+
const E = p ? l.evaluate(I, {}, a) : void 0, A = { id: _, properties: m.properties, type: m.type, sourceLayerIndex: b, index: x, geometry: T ? I.geometry : hs(m), patterns: {}, sortKey: E };
|
|
6866
|
+
d.push(A);
|
|
6866
6867
|
}
|
|
6867
6868
|
p && d.sort((m, _) => m.sortKey - _.sortKey);
|
|
6868
6869
|
for (const m of d) {
|
|
@@ -6914,35 +6915,35 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6914
6915
|
for (; T < b - 1 && t[T].equals(t[T + 1]); ) T++;
|
|
6915
6916
|
if (b < (x ? 3 : 2)) return;
|
|
6916
6917
|
a === "bevel" && (p = 1.05);
|
|
6917
|
-
const I = this.overscaling <= 16 ? 15 * Pt / (512 * this.overscaling) : 0,
|
|
6918
|
-
let
|
|
6919
|
-
this.e1 = this.e2 = -1, x && (
|
|
6918
|
+
const I = this.overscaling <= 16 ? 15 * Pt / (512 * this.overscaling) : 0, E = this.segments.prepareSegment(10 * b, this.layoutVertexArray, this.indexArray);
|
|
6919
|
+
let A, D, O, $, re;
|
|
6920
|
+
this.e1 = this.e2 = -1, x && (A = t[b - 2], re = t[T].sub(A)._unit()._perp());
|
|
6920
6921
|
for (let W = T; W < b; W++) {
|
|
6921
6922
|
if (O = W === b - 1 ? x ? t[T + 1] : void 0 : t[W + 1], O && t[W].equals(O)) continue;
|
|
6922
|
-
re && ($ = re),
|
|
6923
|
+
re && ($ = re), A && (D = A), A = t[W], re = O ? O.sub(A)._unit()._perp() : $, $ = $ || re;
|
|
6923
6924
|
let C = $.add(re);
|
|
6924
6925
|
C.x === 0 && C.y === 0 || C._unit();
|
|
6925
6926
|
const F = $.x * re.x + $.y * re.y, X = C.x * re.x + C.y * re.y, me = X !== 0 ? 1 / X : 1 / 0, Ie = 2 * Math.sqrt(2 - 2 * X), ge = X < Xf && D && O, be = $.x * re.y - $.y * re.x > 0;
|
|
6926
6927
|
if (ge && W > T) {
|
|
6927
|
-
const ze =
|
|
6928
|
+
const ze = A.dist(D);
|
|
6928
6929
|
if (ze > 2 * I) {
|
|
6929
|
-
const Me =
|
|
6930
|
-
this.updateDistance(D, Me), this.addCurrentVertex(Me, $, 0, 0,
|
|
6930
|
+
const Me = A.sub(A.sub(D)._mult(I / ze)._round());
|
|
6931
|
+
this.updateDistance(D, Me), this.addCurrentVertex(Me, $, 0, 0, E), D = Me;
|
|
6931
6932
|
}
|
|
6932
6933
|
}
|
|
6933
|
-
const
|
|
6934
|
-
let Ce =
|
|
6935
|
-
if (
|
|
6934
|
+
const Ae = D && O;
|
|
6935
|
+
let Ce = Ae ? a : x ? "butt" : l;
|
|
6936
|
+
if (Ae && Ce === "round" && (me < d ? Ce = "miter" : me <= 2 && (Ce = "fakeround")), Ce === "miter" && me > p && (Ce = "bevel"), Ce === "bevel" && (me > 2 && (Ce = "flipbevel"), me < p && (Ce = "miter")), D && this.updateDistance(D, A), Ce === "miter") C._mult(me), this.addCurrentVertex(A, C, 0, 0, E);
|
|
6936
6937
|
else if (Ce === "flipbevel") {
|
|
6937
6938
|
if (me > 100) C = re.mult(-1);
|
|
6938
6939
|
else {
|
|
6939
6940
|
const ze = me * $.add(re).mag() / $.sub(re).mag();
|
|
6940
6941
|
C._perp()._mult(ze * (be ? -1 : 1));
|
|
6941
6942
|
}
|
|
6942
|
-
this.addCurrentVertex(
|
|
6943
|
+
this.addCurrentVertex(A, C, 0, 0, E), this.addCurrentVertex(A, C.mult(-1), 0, 0, E);
|
|
6943
6944
|
} else if (Ce === "bevel" || Ce === "fakeround") {
|
|
6944
6945
|
const ze = -Math.sqrt(me * me - 1), Me = be ? ze : 0, Ue = be ? 0 : ze;
|
|
6945
|
-
if (D && this.addCurrentVertex(
|
|
6946
|
+
if (D && this.addCurrentVertex(A, $, Me, Ue, E), Ce === "fakeround") {
|
|
6946
6947
|
const Ye = Math.round(180 * Ie / Math.PI / 20);
|
|
6947
6948
|
for (let Ke = 1; Ke < Ye; Ke++) {
|
|
6948
6949
|
let Ze = Ke / Ye;
|
|
@@ -6951,20 +6952,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6951
6952
|
Ze += Ze * si * (Ze - 1) * ((1.0904 + F * (F * (3.55645 - 1.43519 * F) - 3.2452)) * si * si + (0.848013 + F * (0.215638 * F - 1.06021)));
|
|
6952
6953
|
}
|
|
6953
6954
|
const mt = re.sub($)._mult(Ze)._add($)._unit()._mult(be ? -1 : 1);
|
|
6954
|
-
this.addHalfVertex(
|
|
6955
|
+
this.addHalfVertex(A, mt.x, mt.y, !1, be, 0, E);
|
|
6955
6956
|
}
|
|
6956
6957
|
}
|
|
6957
|
-
O && this.addCurrentVertex(
|
|
6958
|
-
} else if (Ce === "butt") this.addCurrentVertex(
|
|
6958
|
+
O && this.addCurrentVertex(A, re, -Me, -Ue, E);
|
|
6959
|
+
} else if (Ce === "butt") this.addCurrentVertex(A, C, 0, 0, E);
|
|
6959
6960
|
else if (Ce === "square") {
|
|
6960
6961
|
const ze = D ? 1 : -1;
|
|
6961
|
-
this.addCurrentVertex(
|
|
6962
|
-
} else Ce === "round" && (D && (this.addCurrentVertex(
|
|
6962
|
+
this.addCurrentVertex(A, C, ze, ze, E);
|
|
6963
|
+
} else Ce === "round" && (D && (this.addCurrentVertex(A, $, 0, 0, E), this.addCurrentVertex(A, $, 1, 1, E, !0)), O && (this.addCurrentVertex(A, re, -1, -1, E, !0), this.addCurrentVertex(A, re, 0, 0, E)));
|
|
6963
6964
|
if (ge && W < b - 1) {
|
|
6964
|
-
const ze =
|
|
6965
|
+
const ze = A.dist(O);
|
|
6965
6966
|
if (ze > 2 * I) {
|
|
6966
|
-
const Me =
|
|
6967
|
-
this.updateDistance(
|
|
6967
|
+
const Me = A.add(O.sub(A)._mult(I / ze)._round());
|
|
6968
|
+
this.updateDistance(A, Me), this.addCurrentVertex(Me, re, 0, 0, E), A = Me;
|
|
6968
6969
|
}
|
|
6969
6970
|
}
|
|
6970
6971
|
}
|
|
@@ -7011,7 +7012,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7011
7012
|
const r = this.gradientExpression();
|
|
7012
7013
|
this.stepInterpolant = !!function(a) {
|
|
7013
7014
|
return a._styleExpression !== void 0;
|
|
7014
|
-
}(r) && r._styleExpression.expression instanceof
|
|
7015
|
+
}(r) && r._styleExpression.expression instanceof En, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER;
|
|
7015
7016
|
}
|
|
7016
7017
|
}
|
|
7017
7018
|
gradientExpression() {
|
|
@@ -7031,22 +7032,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7031
7032
|
const m = Dc(t, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), -p.bearingInRadians, d), _ = d / 2 * Mp(this.paint.get("line-width").evaluate(r, a), this.paint.get("line-gap-width").evaluate(r, a)), x = this.paint.get("line-offset").evaluate(r, a);
|
|
7032
7033
|
return x && (l = function(b, T) {
|
|
7033
7034
|
const I = [];
|
|
7034
|
-
for (let
|
|
7035
|
-
const
|
|
7036
|
-
for (let O = 0; O <
|
|
7037
|
-
const $ =
|
|
7035
|
+
for (let E = 0; E < b.length; E++) {
|
|
7036
|
+
const A = b[E], D = [];
|
|
7037
|
+
for (let O = 0; O < A.length; O++) {
|
|
7038
|
+
const $ = A[O - 1], re = A[O], W = A[O + 1], C = O === 0 ? new je(0, 0) : re.sub($)._unit()._perp(), F = O === A.length - 1 ? new je(0, 0) : W.sub(re)._unit()._perp(), X = C._add(F)._unit(), me = X.x * F.x + X.y * F.y;
|
|
7038
7039
|
me !== 0 && X._mult(1 / me), D.push(X._mult(T)._add(re));
|
|
7039
7040
|
}
|
|
7040
7041
|
I.push(D);
|
|
7041
7042
|
}
|
|
7042
7043
|
return I;
|
|
7043
7044
|
}(l, x * d)), function(b, T, I) {
|
|
7044
|
-
for (let
|
|
7045
|
-
const
|
|
7045
|
+
for (let E = 0; E < T.length; E++) {
|
|
7046
|
+
const A = T[E];
|
|
7046
7047
|
if (b.length >= 3) {
|
|
7047
|
-
for (let D = 0; D <
|
|
7048
|
+
for (let D = 0; D < A.length; D++) if (ds(b, A[D])) return !0;
|
|
7048
7049
|
}
|
|
7049
|
-
if (pf(b,
|
|
7050
|
+
if (pf(b, A, I)) return !0;
|
|
7050
7051
|
}
|
|
7051
7052
|
return !1;
|
|
7052
7053
|
}(m, l, _);
|
|
@@ -7076,20 +7077,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7076
7077
|
var Sp, Ku, Ip, Ci = 24, Yu = {};
|
|
7077
7078
|
function rm() {
|
|
7078
7079
|
return Sp || (Sp = 1, Yu.read = function(n, t, r, a, l) {
|
|
7079
|
-
var p, d, m = 8 * l - a - 1, _ = (1 << m) - 1, x = _ >> 1, b = -7, T = r ? l - 1 : 0, I = r ? -1 : 1,
|
|
7080
|
-
for (T += I, p =
|
|
7080
|
+
var p, d, m = 8 * l - a - 1, _ = (1 << m) - 1, x = _ >> 1, b = -7, T = r ? l - 1 : 0, I = r ? -1 : 1, E = n[t + T];
|
|
7081
|
+
for (T += I, p = E & (1 << -b) - 1, E >>= -b, b += m; b > 0; p = 256 * p + n[t + T], T += I, b -= 8) ;
|
|
7081
7082
|
for (d = p & (1 << -b) - 1, p >>= -b, b += a; b > 0; d = 256 * d + n[t + T], T += I, b -= 8) ;
|
|
7082
7083
|
if (p === 0) p = 1 - x;
|
|
7083
7084
|
else {
|
|
7084
|
-
if (p === _) return d ? NaN : 1 / 0 * (
|
|
7085
|
+
if (p === _) return d ? NaN : 1 / 0 * (E ? -1 : 1);
|
|
7085
7086
|
d += Math.pow(2, a), p -= x;
|
|
7086
7087
|
}
|
|
7087
|
-
return (
|
|
7088
|
+
return (E ? -1 : 1) * d * Math.pow(2, p - a);
|
|
7088
7089
|
}, Yu.write = function(n, t, r, a, l, p) {
|
|
7089
|
-
var d, m, _, x = 8 * p - l - 1, b = (1 << x) - 1, T = b >> 1, I = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
|
|
7090
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, d = b) : (d = Math.floor(Math.log(t) / Math.LN2), t * (_ = Math.pow(2, -d)) < 1 && (d--, _ *= 2), (t += d + T >= 1 ? I / _ : I * Math.pow(2, 1 - T)) * _ >= 2 && (d++, _ /= 2), d + T >= b ? (m = 0, d = b) : d + T >= 1 ? (m = (t * _ - 1) * Math.pow(2, l), d += T) : (m = t * Math.pow(2, T - 1) * Math.pow(2, l), d = 0)); l >= 8; n[r +
|
|
7091
|
-
for (d = d << l | m, x += l; x > 0; n[r +
|
|
7092
|
-
n[r +
|
|
7090
|
+
var d, m, _, x = 8 * p - l - 1, b = (1 << x) - 1, T = b >> 1, I = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, E = a ? 0 : p - 1, A = a ? 1 : -1, D = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
7091
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, d = b) : (d = Math.floor(Math.log(t) / Math.LN2), t * (_ = Math.pow(2, -d)) < 1 && (d--, _ *= 2), (t += d + T >= 1 ? I / _ : I * Math.pow(2, 1 - T)) * _ >= 2 && (d++, _ /= 2), d + T >= b ? (m = 0, d = b) : d + T >= 1 ? (m = (t * _ - 1) * Math.pow(2, l), d += T) : (m = t * Math.pow(2, T - 1) * Math.pow(2, l), d = 0)); l >= 8; n[r + E] = 255 & m, E += A, m /= 256, l -= 8) ;
|
|
7092
|
+
for (d = d << l | m, x += l; x > 0; n[r + E] = 255 & d, E += A, d /= 256, x -= 8) ;
|
|
7093
|
+
n[r + E - A] |= 128 * D;
|
|
7093
7094
|
}), Yu;
|
|
7094
7095
|
}
|
|
7095
7096
|
function Cp() {
|
|
@@ -7127,10 +7128,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7127
7128
|
function I(C, F) {
|
|
7128
7129
|
for (var X = 0; X < C.length; X++) F.writeBoolean(C[X]);
|
|
7129
7130
|
}
|
|
7130
|
-
function
|
|
7131
|
+
function E(C, F) {
|
|
7131
7132
|
for (var X = 0; X < C.length; X++) F.writeFixed32(C[X]);
|
|
7132
7133
|
}
|
|
7133
|
-
function
|
|
7134
|
+
function A(C, F) {
|
|
7134
7135
|
for (var X = 0; X < C.length; X++) F.writeSFixed32(C[X]);
|
|
7135
7136
|
}
|
|
7136
7137
|
function D(C, F) {
|
|
@@ -7179,8 +7180,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7179
7180
|
}, readVarint: function(C) {
|
|
7180
7181
|
var F, X, me = this.buf;
|
|
7181
7182
|
return F = 127 & (X = me[this.pos++]), X < 128 ? F : (F |= (127 & (X = me[this.pos++])) << 7, X < 128 ? F : (F |= (127 & (X = me[this.pos++])) << 14, X < 128 ? F : (F |= (127 & (X = me[this.pos++])) << 21, X < 128 ? F : function(Ie, ge, be) {
|
|
7182
|
-
var
|
|
7183
|
-
if (
|
|
7183
|
+
var Ae, Ce, ze = be.buf;
|
|
7184
|
+
if (Ae = (112 & (Ce = ze[be.pos++])) >> 4, Ce < 128 || (Ae |= (127 & (Ce = ze[be.pos++])) << 3, Ce < 128) || (Ae |= (127 & (Ce = ze[be.pos++])) << 10, Ce < 128) || (Ae |= (127 & (Ce = ze[be.pos++])) << 17, Ce < 128) || (Ae |= (127 & (Ce = ze[be.pos++])) << 24, Ce < 128) || (Ae |= (1 & (Ce = ze[be.pos++])) << 31, Ce < 128)) return d(Ie, Ae, ge);
|
|
7184
7185
|
throw new Error("Expected varint not more than 10 bytes");
|
|
7185
7186
|
}(F |= (15 & (X = me[this.pos])) << 28, C, this))));
|
|
7186
7187
|
}, readVarint64: function() {
|
|
@@ -7196,9 +7197,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7196
7197
|
return l.decode(X.subarray(me, Ie));
|
|
7197
7198
|
}(this.buf, F, C) : function(X, me, Ie) {
|
|
7198
7199
|
for (var ge = "", be = me; be < Ie; ) {
|
|
7199
|
-
var
|
|
7200
|
+
var Ae, Ce, ze, Me = X[be], Ue = null, Ye = Me > 239 ? 4 : Me > 223 ? 3 : Me > 191 ? 2 : 1;
|
|
7200
7201
|
if (be + Ye > Ie) break;
|
|
7201
|
-
Ye === 1 ? Me < 128 && (Ue = Me) : Ye === 2 ? (192 & (
|
|
7202
|
+
Ye === 1 ? Me < 128 && (Ue = Me) : Ye === 2 ? (192 & (Ae = X[be + 1])) == 128 && (Ue = (31 & Me) << 6 | 63 & Ae) <= 127 && (Ue = null) : Ye === 3 ? (Ce = X[be + 2], (192 & (Ae = X[be + 1])) == 128 && (192 & Ce) == 128 && ((Ue = (15 & Me) << 12 | (63 & Ae) << 6 | 63 & Ce) <= 2047 || Ue >= 55296 && Ue <= 57343) && (Ue = null)) : Ye === 4 && (Ce = X[be + 2], ze = X[be + 3], (192 & (Ae = X[be + 1])) == 128 && (192 & Ce) == 128 && (192 & ze) == 128 && ((Ue = (15 & Me) << 18 | (63 & Ae) << 12 | (63 & Ce) << 6 | 63 & ze) <= 65535 || Ue >= 1114112) && (Ue = null)), Ue === null ? (Ue = 65533, Ye = 1) : Ue > 65535 && (Ue -= 65536, ge += String.fromCharCode(Ue >>> 10 & 1023 | 55296), Ue = 56320 | 1023 & Ue), ge += String.fromCharCode(Ue), be += Ye;
|
|
7202
7203
|
}
|
|
7203
7204
|
return ge;
|
|
7204
7205
|
}(this.buf, F, C);
|
|
@@ -7281,11 +7282,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7281
7282
|
(C = +C || 0) > 268435455 || C < 0 ? function(F, X) {
|
|
7282
7283
|
var me, Ie;
|
|
7283
7284
|
if (F >= 0 ? (me = F % 4294967296 | 0, Ie = F / 4294967296 | 0) : (Ie = ~(-F / 4294967296), 4294967295 ^ (me = ~(-F % 4294967296)) ? me = me + 1 | 0 : (me = 0, Ie = Ie + 1 | 0)), F >= 18446744073709552e3 || F < -18446744073709552e3) throw new Error("Given varint doesn't fit into 10 bytes");
|
|
7284
|
-
X.realloc(10), function(ge, be,
|
|
7285
|
-
|
|
7285
|
+
X.realloc(10), function(ge, be, Ae) {
|
|
7286
|
+
Ae.buf[Ae.pos++] = 127 & ge | 128, ge >>>= 7, Ae.buf[Ae.pos++] = 127 & ge | 128, ge >>>= 7, Ae.buf[Ae.pos++] = 127 & ge | 128, ge >>>= 7, Ae.buf[Ae.pos++] = 127 & ge | 128, Ae.buf[Ae.pos] = 127 & (ge >>>= 7);
|
|
7286
7287
|
}(me, 0, X), function(ge, be) {
|
|
7287
|
-
var
|
|
7288
|
-
be.buf[be.pos++] |=
|
|
7288
|
+
var Ae = (7 & ge) << 4;
|
|
7289
|
+
be.buf[be.pos++] |= Ae | ((ge >>>= 3) ? 128 : 0), ge && (be.buf[be.pos++] = 127 & ge | ((ge >>>= 7) ? 128 : 0), ge && (be.buf[be.pos++] = 127 & ge | ((ge >>>= 7) ? 128 : 0), ge && (be.buf[be.pos++] = 127 & ge | ((ge >>>= 7) ? 128 : 0), ge && (be.buf[be.pos++] = 127 & ge | ((ge >>>= 7) ? 128 : 0), ge && (be.buf[be.pos++] = 127 & ge)))));
|
|
7289
7290
|
}(Ie, X);
|
|
7290
7291
|
}(C, this) : (this.realloc(4), this.buf[this.pos++] = 127 & C | (C > 127 ? 128 : 0), C <= 127 || (this.buf[this.pos++] = 127 & (C >>>= 7) | (C > 127 ? 128 : 0), C <= 127 || (this.buf[this.pos++] = 127 & (C >>>= 7) | (C > 127 ? 128 : 0), C <= 127 || (this.buf[this.pos++] = C >>> 7 & 127))));
|
|
7291
7292
|
}, writeSVarint: function(C) {
|
|
@@ -7296,18 +7297,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7296
7297
|
C = String(C), this.realloc(4 * C.length), this.pos++;
|
|
7297
7298
|
var F = this.pos;
|
|
7298
7299
|
this.pos = function(me, Ie, ge) {
|
|
7299
|
-
for (var be,
|
|
7300
|
+
for (var be, Ae, Ce = 0; Ce < Ie.length; Ce++) {
|
|
7300
7301
|
if ((be = Ie.charCodeAt(Ce)) > 55295 && be < 57344) {
|
|
7301
|
-
if (!
|
|
7302
|
-
be > 56319 || Ce + 1 === Ie.length ? (me[ge++] = 239, me[ge++] = 191, me[ge++] = 189) :
|
|
7302
|
+
if (!Ae) {
|
|
7303
|
+
be > 56319 || Ce + 1 === Ie.length ? (me[ge++] = 239, me[ge++] = 191, me[ge++] = 189) : Ae = be;
|
|
7303
7304
|
continue;
|
|
7304
7305
|
}
|
|
7305
7306
|
if (be < 56320) {
|
|
7306
|
-
me[ge++] = 239, me[ge++] = 191, me[ge++] = 189,
|
|
7307
|
+
me[ge++] = 239, me[ge++] = 191, me[ge++] = 189, Ae = be;
|
|
7307
7308
|
continue;
|
|
7308
7309
|
}
|
|
7309
|
-
be =
|
|
7310
|
-
} else
|
|
7310
|
+
be = Ae - 55296 << 10 | be - 56320 | 65536, Ae = null;
|
|
7311
|
+
} else Ae && (me[ge++] = 239, me[ge++] = 191, me[ge++] = 189, Ae = null);
|
|
7311
7312
|
be < 128 ? me[ge++] = be : (be < 2048 ? me[ge++] = be >> 6 | 192 : (be < 65536 ? me[ge++] = be >> 12 | 224 : (me[ge++] = be >> 18 | 240, me[ge++] = be >> 12 & 63 | 128), me[ge++] = be >> 6 & 63 | 128), me[ge++] = 63 & be | 128);
|
|
7312
7313
|
}
|
|
7313
7314
|
return ge;
|
|
@@ -7341,9 +7342,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7341
7342
|
}, writePackedDouble: function(C, F) {
|
|
7342
7343
|
F.length && this.writeMessage(C, T, F);
|
|
7343
7344
|
}, writePackedFixed32: function(C, F) {
|
|
7344
|
-
F.length && this.writeMessage(C, A, F);
|
|
7345
|
-
}, writePackedSFixed32: function(C, F) {
|
|
7346
7345
|
F.length && this.writeMessage(C, E, F);
|
|
7346
|
+
}, writePackedSFixed32: function(C, F) {
|
|
7347
|
+
F.length && this.writeMessage(C, A, F);
|
|
7347
7348
|
}, writePackedFixed64: function(C, F) {
|
|
7348
7349
|
F.length && this.writeMessage(C, D, F);
|
|
7349
7350
|
}, writePackedSFixed64: function(C, F) {
|
|
@@ -7387,7 +7388,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7387
7388
|
n === 1 ? t.id = r.readVarint() : n === 2 ? t.bitmap = r.readBytes() : n === 3 ? t.width = r.readVarint() : n === 4 ? t.height = r.readVarint() : n === 5 ? t.left = r.readSVarint() : n === 6 ? t.top = r.readSVarint() : n === 7 && (t.advance = r.readVarint());
|
|
7388
7389
|
}
|
|
7389
7390
|
const om = Qu;
|
|
7390
|
-
function
|
|
7391
|
+
function Ep(n) {
|
|
7391
7392
|
let t = 0, r = 0;
|
|
7392
7393
|
for (const d of n) t += d.w * d.h, r = Math.max(r, d.w);
|
|
7393
7394
|
n.sort((d, m) => m.h - d.h);
|
|
@@ -7423,20 +7424,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7423
7424
|
return [(this.paddedRect.w - 2 * Pr) / this.pixelRatio, (this.paddedRect.h - 2 * Pr) / this.pixelRatio];
|
|
7424
7425
|
}
|
|
7425
7426
|
}
|
|
7426
|
-
class
|
|
7427
|
+
class Ap {
|
|
7427
7428
|
constructor(t, r) {
|
|
7428
7429
|
const a = {}, l = {};
|
|
7429
7430
|
this.haveRenderCallbacks = [];
|
|
7430
7431
|
const p = [];
|
|
7431
7432
|
this.addImages(t, a, p), this.addImages(r, l, p);
|
|
7432
|
-
const { w: d, h: m } =
|
|
7433
|
+
const { w: d, h: m } = Ep(p), _ = new Hr({ width: d || 1, height: m || 1 });
|
|
7433
7434
|
for (const x in t) {
|
|
7434
7435
|
const b = t[x], T = a[x].paddedRect;
|
|
7435
7436
|
Hr.copy(b.data, _, { x: 0, y: 0 }, { x: T.x + Pr, y: T.y + Pr }, b.data);
|
|
7436
7437
|
}
|
|
7437
7438
|
for (const x in r) {
|
|
7438
|
-
const b = r[x], T = l[x].paddedRect, I = T.x + Pr,
|
|
7439
|
-
Hr.copy(b.data, _, { x: 0, y: 0 }, { x: I, y:
|
|
7439
|
+
const b = r[x], T = l[x].paddedRect, I = T.x + Pr, E = T.y + Pr, A = b.data.width, D = b.data.height;
|
|
7440
|
+
Hr.copy(b.data, _, { x: 0, y: 0 }, { x: I, y: E }, b.data), Hr.copy(b.data, _, { x: 0, y: D - 1 }, { x: I, y: E - 1 }, { width: A, height: 1 }), Hr.copy(b.data, _, { x: 0, y: 0 }, { x: I, y: E + D }, { width: A, height: 1 }), Hr.copy(b.data, _, { x: A - 1, y: 0 }, { x: I - 1, y: E }, { width: 1, height: D }), Hr.copy(b.data, _, { x: 0, y: 0 }, { x: I + A, y: E }, { width: 1, height: D });
|
|
7440
7441
|
}
|
|
7441
7442
|
this.image = _, this.iconPositions = a, this.patternPositions = l;
|
|
7442
7443
|
}
|
|
@@ -7458,7 +7459,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7458
7459
|
}
|
|
7459
7460
|
}
|
|
7460
7461
|
var Sa;
|
|
7461
|
-
Ne("ImagePosition", eh), Ne("ImageAtlas",
|
|
7462
|
+
Ne("ImagePosition", eh), Ne("ImageAtlas", Ap), S.al = void 0, (Sa = S.al || (S.al = {}))[Sa.none = 0] = "none", Sa[Sa.horizontal = 1] = "horizontal", Sa[Sa.vertical = 2] = "vertical", Sa[Sa.horizontalOnly = 3] = "horizontalOnly";
|
|
7462
7463
|
const jc = -17;
|
|
7463
7464
|
class Ml {
|
|
7464
7465
|
constructor() {
|
|
@@ -7552,14 +7553,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7552
7553
|
return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
|
|
7553
7554
|
}
|
|
7554
7555
|
}
|
|
7555
|
-
function Nc(n, t, r, a, l, p, d, m, _, x, b, T, I,
|
|
7556
|
+
function Nc(n, t, r, a, l, p, d, m, _, x, b, T, I, E, A) {
|
|
7556
7557
|
const D = co.fromFeature(n, l);
|
|
7557
7558
|
let O;
|
|
7558
7559
|
T === S.al.vertical && D.verticalizePunctuation();
|
|
7559
7560
|
const { processBidirectionalText: $, processStyledBidirectionalText: re } = vn;
|
|
7560
7561
|
if ($ && D.sections.length === 1) {
|
|
7561
7562
|
O = [];
|
|
7562
|
-
const F = $(D.toString(), th(D, x, p, t, a,
|
|
7563
|
+
const F = $(D.toString(), th(D, x, p, t, a, E));
|
|
7563
7564
|
for (const X of F) {
|
|
7564
7565
|
const me = new co();
|
|
7565
7566
|
me.text = X, me.sections = D.sections;
|
|
@@ -7568,7 +7569,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7568
7569
|
}
|
|
7569
7570
|
} else if (re) {
|
|
7570
7571
|
O = [];
|
|
7571
|
-
const F = re(D.text, D.sectionIndex, th(D, x, p, t, a,
|
|
7572
|
+
const F = re(D.text, D.sectionIndex, th(D, x, p, t, a, E));
|
|
7572
7573
|
for (const X of F) {
|
|
7573
7574
|
const me = new co();
|
|
7574
7575
|
me.text = X[0], me.sectionIndex = X[1], me.sections = D.sections, O.push(me);
|
|
@@ -7578,11 +7579,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7578
7579
|
let ge = 0;
|
|
7579
7580
|
for (const be of X) me.push(F.substring(ge, be)), ge = be;
|
|
7580
7581
|
return ge < Ie.length && me.push(F.substring(ge, Ie.length)), me;
|
|
7581
|
-
}(D, th(D, x, p, t, a,
|
|
7582
|
+
}(D, th(D, x, p, t, a, E));
|
|
7582
7583
|
const W = [], C = { positionedLines: W, text: D.toString(), top: b[1], bottom: b[1], left: b[0], right: b[0], writingMode: T, iconsInText: !1, verticalizable: !1 };
|
|
7583
|
-
return function(F, X, me, Ie, ge, be,
|
|
7584
|
+
return function(F, X, me, Ie, ge, be, Ae, Ce, ze, Me, Ue, Ye) {
|
|
7584
7585
|
let Ke = 0, Ze = 0, mt = 0, si = 0;
|
|
7585
|
-
const
|
|
7586
|
+
const Ei = Ce === "right" ? 1 : Ce === "left" ? 0 : 0.5, ir = Ci / Ye;
|
|
7586
7587
|
let Xr = 0;
|
|
7587
7588
|
for (const ii of ge) {
|
|
7588
7589
|
ii.trim();
|
|
@@ -7596,27 +7597,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7596
7597
|
}
|
|
7597
7598
|
const Kr = hm(Ie, ii, ir);
|
|
7598
7599
|
for (let Ir = 0; Ir < ii.length(); Ir++) {
|
|
7599
|
-
const
|
|
7600
|
+
const Ai = ii.getSection(Ir), Oi = ii.getSectionIndex(Ir), ji = ii.getCharCode(Ir), bi = pm(ze, Ue, ji);
|
|
7600
7601
|
let Wt;
|
|
7601
|
-
if (
|
|
7602
|
-
if (F.iconsInText = !0,
|
|
7602
|
+
if (Ai.imageName) {
|
|
7603
|
+
if (F.iconsInText = !0, Ai.scale = Ai.scale * ir, Wt = fm(Ai, bi, Bi, Kr, Ie), !Wt) continue;
|
|
7603
7604
|
yr = Math.max(yr, Wt.imageOffset);
|
|
7604
|
-
} else if (Wt = dm(
|
|
7605
|
+
} else if (Wt = dm(Ai, ji, bi, Kr, X, me), !Wt) continue;
|
|
7605
7606
|
const { rect: Tn, metrics: fo, baselineOffset: Mn } = Wt;
|
|
7606
|
-
Ki.push({ glyph: ji, imageName:
|
|
7607
|
+
Ki.push({ glyph: ji, imageName: Ai.imageName, x: Ke, y: Ze + Mn + jc, vertical: bi, scale: Ai.scale, fontStack: Ai.fontStack, sectionIndex: Oi, metrics: fo, rect: Tn }), bi ? (F.verticalizable = !0, Ke += (Ai.imageName ? fo.advance : Ci) * Ai.scale + Me) : Ke += fo.advance * Ai.scale + Me;
|
|
7607
7608
|
}
|
|
7608
|
-
Ki.length !== 0 && (mt = Math.max(Ke - Me, mt), mm(Ki, 0, Ki.length - 1,
|
|
7609
|
+
Ki.length !== 0 && (mt = Math.max(Ke - Me, mt), mm(Ki, 0, Ki.length - 1, Ei)), Ke = 0, Xi.lineOffset = Math.max(yr, (Bi - 1) * Ci);
|
|
7609
7610
|
const Fi = be * Bi + yr;
|
|
7610
7611
|
Ze += Fi, si = Math.max(Fi, si), ++Xr;
|
|
7611
7612
|
}
|
|
7612
|
-
const { horizontalAlign: Sr, verticalAlign: Wi } = ih(
|
|
7613
|
-
(function(ii, Bi, Xi, Ki, yr, Kr, Fi, Ir,
|
|
7613
|
+
const { horizontalAlign: Sr, verticalAlign: Wi } = ih(Ae);
|
|
7614
|
+
(function(ii, Bi, Xi, Ki, yr, Kr, Fi, Ir, Ai) {
|
|
7614
7615
|
const Oi = (Bi - Xi) * yr;
|
|
7615
7616
|
let ji = 0;
|
|
7616
|
-
ji = Kr !== Fi ? -Ir * Ki - jc : -Ki *
|
|
7617
|
+
ji = Kr !== Fi ? -Ir * Ki - jc : -Ki * Ai * Fi + 0.5 * Fi;
|
|
7617
7618
|
for (const bi of ii) for (const Wt of bi.positionedGlyphs) Wt.x += Oi, Wt.y += ji;
|
|
7618
|
-
})(F.positionedLines,
|
|
7619
|
-
}(C, t, r, a, O, d, m, _, T, x, I,
|
|
7619
|
+
})(F.positionedLines, Ei, Sr, Wi, mt, si, be, Ze, ge.length), F.top += -Wi * Ze, F.bottom = F.top + Ze, F.left += -Sr * mt, F.right = F.left + mt;
|
|
7620
|
+
}(C, t, r, a, O, d, m, _, T, x, I, A), !function(F) {
|
|
7620
7621
|
for (const X of F) if (X.positionedGlyphs.length !== 0) return !1;
|
|
7621
7622
|
return !0;
|
|
7622
7623
|
}(W) && C;
|
|
@@ -7653,20 +7654,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7653
7654
|
}
|
|
7654
7655
|
function th(n, t, r, a, l, p) {
|
|
7655
7656
|
if (!n) return [];
|
|
7656
|
-
const d = [], m = function(T, I,
|
|
7657
|
+
const d = [], m = function(T, I, E, A, D, O) {
|
|
7657
7658
|
let $ = 0;
|
|
7658
7659
|
for (let re = 0; re < T.length(); re++) {
|
|
7659
7660
|
const W = T.getSection(re);
|
|
7660
|
-
$ += zp(T.getCharCode(re), W,
|
|
7661
|
+
$ += zp(T.getCharCode(re), W, A, D, I, O);
|
|
7661
7662
|
}
|
|
7662
|
-
return $ / Math.max(1, Math.ceil($ /
|
|
7663
|
+
return $ / Math.max(1, Math.ceil($ / E));
|
|
7663
7664
|
}(n, t, r, a, l, p), _ = n.text.indexOf("") >= 0;
|
|
7664
7665
|
let x = 0;
|
|
7665
7666
|
for (let T = 0; T < n.length(); T++) {
|
|
7666
|
-
const I = n.getSection(T),
|
|
7667
|
-
if (Uc[
|
|
7668
|
-
const
|
|
7669
|
-
(lm[
|
|
7667
|
+
const I = n.getSection(T), E = n.getCharCode(T);
|
|
7668
|
+
if (Uc[E] || (x += zp(E, I, a, l, t, p)), T < n.length() - 1) {
|
|
7669
|
+
const A = !((b = E) < 11904) && (!!dt["CJK Compatibility Forms"](b) || !!dt["CJK Compatibility"](b) || !!dt["CJK Strokes"](b) || !!dt["CJK Symbols and Punctuation"](b) || !!dt["Enclosed CJK Letters and Months"](b) || !!dt["Halfwidth and Fullwidth Forms"](b) || !!dt["Ideographic Description Characters"](b) || !!dt["Vertical Forms"](b) || il.test(String.fromCodePoint(b)));
|
|
7670
|
+
(lm[E] || A || I.imageName || T !== n.length() - 2 && cm[n.getCharCode(T + 1)]) && d.push(Dp(T + 1, x, m, d, um(E, n.getCharCode(T + 1), A && _), !1));
|
|
7670
7671
|
}
|
|
7671
7672
|
}
|
|
7672
7673
|
var b;
|
|
@@ -7719,8 +7720,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7719
7720
|
function dm(n, t, r, a, l, p) {
|
|
7720
7721
|
const d = p[n.fontStack], m = function(x, b, T, I) {
|
|
7721
7722
|
if (x && x.rect) return x;
|
|
7722
|
-
const
|
|
7723
|
-
return
|
|
7723
|
+
const E = b[T.fontStack], A = E && E[I];
|
|
7724
|
+
return A ? { rect: null, metrics: A.metrics } : null;
|
|
7724
7725
|
}(d && d[t], l, n, t);
|
|
7725
7726
|
if (m === null) return null;
|
|
7726
7727
|
let _;
|
|
@@ -7775,10 +7776,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7775
7776
|
m = [O[0] / $, O[1] / $, d.displaySize[0] - O[2] / $, d.displaySize[1] - O[3] / $];
|
|
7776
7777
|
}
|
|
7777
7778
|
const _ = t.left * p, x = t.right * p;
|
|
7778
|
-
let b, T, I,
|
|
7779
|
-
r === "width" || r === "both" ? (
|
|
7780
|
-
const
|
|
7781
|
-
return r === "height" || r === "both" ? (b = l[1] +
|
|
7779
|
+
let b, T, I, E;
|
|
7780
|
+
r === "width" || r === "both" ? (E = l[0] + _ - a[3], T = l[0] + x + a[1]) : (E = l[0] + (_ + x - d.displaySize[0]) / 2, T = E + d.displaySize[0]);
|
|
7781
|
+
const A = t.top * p, D = t.bottom * p;
|
|
7782
|
+
return r === "height" || r === "both" ? (b = l[1] + A - a[0], I = l[1] + D + a[2]) : (b = l[1] + (A + D - d.displaySize[1]) / 2, I = b + d.displaySize[1]), { image: d, top: b, right: T, bottom: I, left: E, collisionPadding: m };
|
|
7782
7783
|
}
|
|
7783
7784
|
const Pl = 255, On = 128, Ia = Pl * On;
|
|
7784
7785
|
function Op(n, t) {
|
|
@@ -7804,14 +7805,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7804
7805
|
}
|
|
7805
7806
|
const _m = vl.VectorTileFeature.types, ym = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
|
|
7806
7807
|
function Vc(n, t, r, a, l, p, d, m, _, x, b, T, I) {
|
|
7807
|
-
const
|
|
7808
|
-
n.emplaceBack(t, r, Math.round(32 * a), Math.round(32 * l), p, d, (
|
|
7808
|
+
const E = m ? Math.min(Ia, Math.round(m[0])) : 0, A = m ? Math.min(Ia, Math.round(m[1])) : 0;
|
|
7809
|
+
n.emplaceBack(t, r, Math.round(32 * a), Math.round(32 * l), p, d, (E << 1) + (_ ? 1 : 0), A, 16 * x, 16 * b, 256 * T, 256 * I);
|
|
7809
7810
|
}
|
|
7810
7811
|
function nh(n, t, r) {
|
|
7811
7812
|
n.emplaceBack(t.x, t.y, r), n.emplaceBack(t.x, t.y, r), n.emplaceBack(t.x, t.y, r), n.emplaceBack(t.x, t.y, r);
|
|
7812
7813
|
}
|
|
7813
7814
|
function xm(n) {
|
|
7814
|
-
for (const t of n.sections) if (
|
|
7815
|
+
for (const t of n.sections) if (Eu(t.text)) return !0;
|
|
7815
7816
|
return !1;
|
|
7816
7817
|
}
|
|
7817
7818
|
class ah {
|
|
@@ -7861,17 +7862,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7861
7862
|
populate(t, r, a) {
|
|
7862
7863
|
const l = this.layers[0], p = l.layout, d = p.get("text-font"), m = p.get("text-field"), _ = p.get("icon-image"), x = (m.value.kind !== "constant" || m.value.value instanceof gr && !m.value.value.isEmpty() || m.value.value.toString().length > 0) && (d.value.kind !== "constant" || d.value.value.length > 0), b = _.value.kind !== "constant" || !!_.value.value || Object.keys(_.parameters).length > 0, T = p.get("symbol-sort-key");
|
|
7863
7864
|
if (this.features = [], !x && !b) return;
|
|
7864
|
-
const I = r.iconDependencies,
|
|
7865
|
+
const I = r.iconDependencies, E = r.glyphDependencies, A = r.availableImages, D = new qt(this.zoom);
|
|
7865
7866
|
for (const { feature: O, id: $, index: re, sourceLayerIndex: W } of t) {
|
|
7866
7867
|
const C = l._featureFilter.needGeometry, F = ps(O, C);
|
|
7867
7868
|
if (!l._featureFilter.filter(D, F, a)) continue;
|
|
7868
7869
|
let X, me;
|
|
7869
7870
|
if (C || (F.geometry = hs(O)), x) {
|
|
7870
|
-
const ge = l.getValueAndResolveTokens("text-field", F, a,
|
|
7871
|
-
(!
|
|
7871
|
+
const ge = l.getValueAndResolveTokens("text-field", F, a, A), be = gr.factory(ge), Ae = this.hasRTLText = this.hasRTLText || xm(be);
|
|
7872
|
+
(!Ae || vn.getRTLTextPluginStatus() === "unavailable" || Ae && vn.isParsed()) && (X = im(be, l, F));
|
|
7872
7873
|
}
|
|
7873
7874
|
if (b) {
|
|
7874
|
-
const ge = l.getValueAndResolveTokens("icon-image", F, a,
|
|
7875
|
+
const ge = l.getValueAndResolveTokens("icon-image", F, a, A);
|
|
7875
7876
|
me = ge instanceof wr ? ge : wr.fromString(ge);
|
|
7876
7877
|
}
|
|
7877
7878
|
if (!X && !me) continue;
|
|
@@ -7879,10 +7880,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7879
7880
|
if (this.features.push({ id: $, text: X, icon: me, index: re, sourceLayerIndex: W, geometry: F.geometry, properties: O.properties, type: _m[O.type], sortKey: Ie }), me && (I[me.name] = !0), X) {
|
|
7880
7881
|
const ge = d.evaluate(F, {}, a).join(","), be = p.get("text-rotation-alignment") !== "viewport" && p.get("symbol-placement") !== "point";
|
|
7881
7882
|
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(S.al.vertical) >= 0;
|
|
7882
|
-
for (const
|
|
7883
|
+
for (const Ae of X.sections) if (Ae.image) I[Ae.image.name] = !0;
|
|
7883
7884
|
else {
|
|
7884
|
-
const Ce = eo(X.toString()), ze =
|
|
7885
|
-
this.calculateGlyphDependencies(
|
|
7885
|
+
const Ce = eo(X.toString()), ze = Ae.fontStack || ge, Me = E[ze] = E[ze] || {};
|
|
7886
|
+
this.calculateGlyphDependencies(Ae.text, Me, be, this.allowVerticalPlacement, Ce);
|
|
7886
7887
|
}
|
|
7887
7888
|
}
|
|
7888
7889
|
}
|
|
@@ -7892,29 +7893,29 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7892
7893
|
function F(ge) {
|
|
7893
7894
|
W.push(O[ge]), C++;
|
|
7894
7895
|
}
|
|
7895
|
-
function X(ge, be,
|
|
7896
|
+
function X(ge, be, Ae) {
|
|
7896
7897
|
const Ce = re[ge];
|
|
7897
|
-
return delete re[ge], re[be] = Ce, W[Ce].geometry[0].pop(), W[Ce].geometry[0] = W[Ce].geometry[0].concat(
|
|
7898
|
+
return delete re[ge], re[be] = Ce, W[Ce].geometry[0].pop(), W[Ce].geometry[0] = W[Ce].geometry[0].concat(Ae[0]), Ce;
|
|
7898
7899
|
}
|
|
7899
|
-
function me(ge, be,
|
|
7900
|
+
function me(ge, be, Ae) {
|
|
7900
7901
|
const Ce = $[be];
|
|
7901
|
-
return delete $[be], $[ge] = Ce, W[Ce].geometry[0].shift(), W[Ce].geometry[0] =
|
|
7902
|
+
return delete $[be], $[ge] = Ce, W[Ce].geometry[0].shift(), W[Ce].geometry[0] = Ae[0].concat(W[Ce].geometry[0]), Ce;
|
|
7902
7903
|
}
|
|
7903
|
-
function Ie(ge, be,
|
|
7904
|
-
const Ce =
|
|
7904
|
+
function Ie(ge, be, Ae) {
|
|
7905
|
+
const Ce = Ae ? be[0][be[0].length - 1] : be[0][0];
|
|
7905
7906
|
return `${ge}:${Ce.x}:${Ce.y}`;
|
|
7906
7907
|
}
|
|
7907
7908
|
for (let ge = 0; ge < O.length; ge++) {
|
|
7908
|
-
const be = O[ge],
|
|
7909
|
+
const be = O[ge], Ae = be.geometry, Ce = be.text ? be.text.toString() : null;
|
|
7909
7910
|
if (!Ce) {
|
|
7910
7911
|
F(ge);
|
|
7911
7912
|
continue;
|
|
7912
7913
|
}
|
|
7913
|
-
const ze = Ie(Ce,
|
|
7914
|
+
const ze = Ie(Ce, Ae), Me = Ie(Ce, Ae, !0);
|
|
7914
7915
|
if (ze in re && Me in $ && re[ze] !== $[Me]) {
|
|
7915
|
-
const Ue = me(ze, Me,
|
|
7916
|
+
const Ue = me(ze, Me, Ae), Ye = X(ze, Me, W[Ue].geometry);
|
|
7916
7917
|
delete $[ze], delete re[Me], re[Ie(Ce, W[Ye].geometry, !0)] = Ye, W[Ue].geometry = null;
|
|
7917
|
-
} else ze in re ? X(ze, Me,
|
|
7918
|
+
} else ze in re ? X(ze, Me, Ae) : Me in $ ? me(ze, Me, Ae) : (F(ge), $[ze] = C - 1, re[Me] = C - 1);
|
|
7918
7919
|
}
|
|
7919
7920
|
return W.filter((ge) => ge.geometry);
|
|
7920
7921
|
}(this.features)), this.sortFeaturesByKey && this.features.sort((O, $) => O.sortKey - $.sortKey);
|
|
@@ -7952,10 +7953,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7952
7953
|
return { lineStartIndex: a, lineLength: this.lineVertexArray.length - a };
|
|
7953
7954
|
}
|
|
7954
7955
|
addSymbols(t, r, a, l, p, d, m, _, x, b, T, I) {
|
|
7955
|
-
const
|
|
7956
|
+
const E = t.indexArray, A = t.layoutVertexArray, D = t.segments.prepareSegment(4 * r.length, A, E, this.canOverlap ? d.sortKey : void 0), O = this.glyphOffsetArray.length, $ = D.vertexLength, re = this.allowVerticalPlacement && m === S.al.vertical ? Math.PI / 2 : 0, W = d.text && d.text.sections;
|
|
7956
7957
|
for (let C = 0; C < r.length; C++) {
|
|
7957
|
-
const { tl: F, tr: X, bl: me, br: Ie, tex: ge, pixelOffsetTL: be, pixelOffsetBR:
|
|
7958
|
-
Vc(
|
|
7958
|
+
const { tl: F, tr: X, bl: me, br: Ie, tex: ge, pixelOffsetTL: be, pixelOffsetBR: Ae, minFontScaleX: Ce, minFontScaleY: ze, glyphOffset: Me, isSDF: Ue, sectionIndex: Ye } = r[C], Ke = D.vertexLength, Ze = Me[1];
|
|
7959
|
+
Vc(A, _.x, _.y, F.x, Ze + F.y, ge.x, ge.y, a, Ue, be.x, be.y, Ce, ze), Vc(A, _.x, _.y, X.x, Ze + X.y, ge.x + ge.w, ge.y, a, Ue, Ae.x, be.y, Ce, ze), Vc(A, _.x, _.y, me.x, Ze + me.y, ge.x, ge.y + ge.h, a, Ue, be.x, Ae.y, Ce, ze), Vc(A, _.x, _.y, Ie.x, Ze + Ie.y, ge.x + ge.w, ge.y + ge.h, a, Ue, Ae.x, Ae.y, Ce, ze), nh(t.dynamicLayoutVertexArray, _, re), E.emplaceBack(Ke, Ke + 2, Ke + 1), E.emplaceBack(Ke + 1, Ke + 2, Ke + 3), D.vertexLength += 4, D.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Me[0]), C !== r.length - 1 && Ye === r[C + 1].sectionIndex || t.programConfigurations.populatePaintArrays(A.length, d, d.index, {}, I, W && W[Ye]);
|
|
7959
7960
|
}
|
|
7960
7961
|
t.placedSymbolArray.emplaceBack(_.x, _.y, O, this.glyphOffsetArray.length - O, $, x, b, _.segment, a ? a[0] : 0, a ? a[1] : 0, l[0], l[1], m, 0, !1, 0, T);
|
|
7961
7962
|
}
|
|
@@ -7963,10 +7964,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7963
7964
|
return r.emplaceBack(0, 0), t.emplaceBack(a.x, a.y, l, p, Math.round(d.x), Math.round(d.y));
|
|
7964
7965
|
}
|
|
7965
7966
|
addCollisionDebugVertices(t, r, a, l, p, d, m) {
|
|
7966
|
-
const _ = p.segments.prepareSegment(4, p.layoutVertexArray, p.indexArray), x = _.vertexLength, b = p.layoutVertexArray, T = p.collisionVertexArray, I = m.anchorX,
|
|
7967
|
-
this._addCollisionDebugVertex(b, T, d, I,
|
|
7968
|
-
const
|
|
7969
|
-
|
|
7967
|
+
const _ = p.segments.prepareSegment(4, p.layoutVertexArray, p.indexArray), x = _.vertexLength, b = p.layoutVertexArray, T = p.collisionVertexArray, I = m.anchorX, E = m.anchorY;
|
|
7968
|
+
this._addCollisionDebugVertex(b, T, d, I, E, new je(t, r)), this._addCollisionDebugVertex(b, T, d, I, E, new je(a, r)), this._addCollisionDebugVertex(b, T, d, I, E, new je(a, l)), this._addCollisionDebugVertex(b, T, d, I, E, new je(t, l)), _.vertexLength += 4;
|
|
7969
|
+
const A = p.indexArray;
|
|
7970
|
+
A.emplaceBack(x, x + 1), A.emplaceBack(x + 1, x + 2), A.emplaceBack(x + 2, x + 3), A.emplaceBack(x + 3, x), _.primitiveLength += 4;
|
|
7970
7971
|
}
|
|
7971
7972
|
addDebugCollisionBoxes(t, r, a, l) {
|
|
7972
7973
|
for (let p = t; p < r; p++) {
|
|
@@ -8285,9 +8286,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8285
8286
|
url(t, r, a) {
|
|
8286
8287
|
const l = (d = this.y, m = this.z, _ = Kp(256 * (p = this.x), 256 * (d = Math.pow(2, m) - d - 1), m), x = Kp(256 * (p + 1), 256 * (d + 1), m), _[0] + "," + _[1] + "," + x[0] + "," + x[1]);
|
|
8287
8288
|
var p, d, m, _, x;
|
|
8288
|
-
const b = function(T, I,
|
|
8289
|
-
let
|
|
8290
|
-
for (let O = T; O > 0; O--)
|
|
8289
|
+
const b = function(T, I, E) {
|
|
8290
|
+
let A, D = "";
|
|
8291
|
+
for (let O = T; O > 0; O--) A = 1 << O - 1, D += (I & A ? 1 : 0) + (E & A ? 2 : 0);
|
|
8291
8292
|
return D;
|
|
8292
8293
|
}(this.z, this.x, this.y);
|
|
8293
8294
|
return t[(this.x + this.y) % t.length].replace(/{prefix}/g, (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace(/{z}/g, String(this.z)).replace(/{x}/g, String(this.x)).replace(/{y}/g, String(a === "tms" ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace(/{ratio}/g, r > 1 ? "@2x" : "").replace(/{quadkey}/g, b).replace(/{bbox-epsg-3857}/g, l);
|
|
@@ -8473,8 +8474,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8473
8474
|
for (let x = 0; x < r.length; x++) {
|
|
8474
8475
|
const b = r[x], T = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
8475
8476
|
for (let I = 0; I < b.length; I++) {
|
|
8476
|
-
const
|
|
8477
|
-
T[0] = Math.min(T[0],
|
|
8477
|
+
const E = b[I];
|
|
8478
|
+
T[0] = Math.min(T[0], E.x), T[1] = Math.min(T[1], E.y), T[2] = Math.max(T[2], E.x), T[3] = Math.max(T[3], E.y);
|
|
8478
8479
|
}
|
|
8479
8480
|
T[0] < Pt && T[1] < Pt && T[2] >= 0 && T[3] >= 0 && _.insert(m, T[0], T[1], T[2], T[3]);
|
|
8480
8481
|
}
|
|
@@ -8484,7 +8485,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8484
8485
|
}
|
|
8485
8486
|
query(t, r, a, l) {
|
|
8486
8487
|
this.loadVTLayers();
|
|
8487
|
-
const p = t.params, d = Pt / t.tileSize / t.scale, m = Qa(p.filter), _ = t.queryGeometry, x = t.queryPadding * d, b = rd(_), T = this.grid.query(b.minX - x, b.minY - x, b.maxX + x, b.maxY + x), I = rd(t.cameraQueryGeometry),
|
|
8488
|
+
const p = t.params, d = Pt / t.tileSize / t.scale, m = Qa(p.filter), _ = t.queryGeometry, x = t.queryPadding * d, b = rd(_), T = this.grid.query(b.minX - x, b.minY - x, b.maxX + x, b.maxY + x), I = rd(t.cameraQueryGeometry), E = this.grid3D.query(I.minX - x, I.minY - x, I.maxX + x, I.maxY + x, (O, $, re, W) => function(C, F, X, me, Ie) {
|
|
8488
8489
|
for (const be of C) if (F <= be.x && X <= be.y && me >= be.x && Ie >= be.y) return !0;
|
|
8489
8490
|
const ge = [new je(F, X), new je(F, Ie), new je(me, Ie), new je(me, X)];
|
|
8490
8491
|
if (C.length > 2) {
|
|
@@ -8493,9 +8494,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8493
8494
|
for (let be = 0; be < C.length - 1; be++) if (ff(C[be], C[be + 1], ge)) return !0;
|
|
8494
8495
|
return !1;
|
|
8495
8496
|
}(t.cameraQueryGeometry, O - x, $ - x, re + x, W + x));
|
|
8496
|
-
for (const O of
|
|
8497
|
+
for (const O of E) T.push(O);
|
|
8497
8498
|
T.sort(Im);
|
|
8498
|
-
const
|
|
8499
|
+
const A = {};
|
|
8499
8500
|
let D;
|
|
8500
8501
|
for (let O = 0; O < T.length; O++) {
|
|
8501
8502
|
const $ = T[O];
|
|
@@ -8503,19 +8504,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8503
8504
|
D = $;
|
|
8504
8505
|
const re = this.featureIndexArray.get($);
|
|
8505
8506
|
let W = null;
|
|
8506
|
-
this.loadMatchingFeature(
|
|
8507
|
+
this.loadMatchingFeature(A, re.bucketIndex, re.sourceLayerIndex, re.featureIndex, m, p.layers, p.availableImages, r, a, l, (C, F, X) => (W || (W = hs(C)), F.queryIntersectsFeature({ queryGeometry: _, feature: C, featureState: X, geometry: W, zoom: this.z, transform: t.transform, pixelsToTileUnits: d, pixelPosMatrix: t.pixelPosMatrix, unwrappedTileID: this.tileID.toUnwrapped(), getElevation: t.getElevation })));
|
|
8507
8508
|
}
|
|
8508
|
-
return
|
|
8509
|
+
return A;
|
|
8509
8510
|
}
|
|
8510
8511
|
loadMatchingFeature(t, r, a, l, p, d, m, _, x, b, T) {
|
|
8511
8512
|
const I = this.bucketLayerIDs[r];
|
|
8512
8513
|
if (d && !I.some((O) => d.has(O))) return;
|
|
8513
|
-
const
|
|
8514
|
+
const E = this.sourceLayerCoder.decode(a), A = this.vtLayers[E].feature(l);
|
|
8514
8515
|
if (p.needGeometry) {
|
|
8515
|
-
const O = ps(
|
|
8516
|
+
const O = ps(A, !0);
|
|
8516
8517
|
if (!p.filter(new qt(this.tileID.overscaledZ), O, this.tileID.canonical)) return;
|
|
8517
|
-
} else if (!p.filter(new qt(this.tileID.overscaledZ),
|
|
8518
|
-
const D = this.getId(
|
|
8518
|
+
} else if (!p.filter(new qt(this.tileID.overscaledZ), A)) return;
|
|
8519
|
+
const D = this.getId(A, E);
|
|
8519
8520
|
for (let O = 0; O < I.length; O++) {
|
|
8520
8521
|
const $ = I[O];
|
|
8521
8522
|
if (d && !d.has($)) continue;
|
|
@@ -8524,10 +8525,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8524
8525
|
let W = {};
|
|
8525
8526
|
D && b && (W = b.getState(re.sourceLayer || "_geojsonTileLayer", D));
|
|
8526
8527
|
const C = fi({}, x[$]);
|
|
8527
|
-
C.paint = id(C.paint, re.paint,
|
|
8528
|
-
const F = !T || T(
|
|
8528
|
+
C.paint = id(C.paint, re.paint, A, W, m), C.layout = id(C.layout, re.layout, A, W, m);
|
|
8529
|
+
const F = !T || T(A, re, W);
|
|
8529
8530
|
if (!F) continue;
|
|
8530
|
-
const X = new ed(
|
|
8531
|
+
const X = new ed(A, this.z, this.x, this.y, D);
|
|
8531
8532
|
X.layer = C;
|
|
8532
8533
|
let me = t[$];
|
|
8533
8534
|
me === void 0 && (me = t[$] = []), me.push({ featureIndex: l, feature: X, intersectionZ: F });
|
|
@@ -8577,12 +8578,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8577
8578
|
return p;
|
|
8578
8579
|
}
|
|
8579
8580
|
Ne("FeatureIndex", td, { omit: ["rawTileData", "sourceLayerCoder"] });
|
|
8580
|
-
class
|
|
8581
|
+
class Ea extends je {
|
|
8581
8582
|
constructor(t, r, a, l) {
|
|
8582
8583
|
super(t, r), this.angle = a, l !== void 0 && (this.segment = l);
|
|
8583
8584
|
}
|
|
8584
8585
|
clone() {
|
|
8585
|
-
return new
|
|
8586
|
+
return new Ea(this.x, this.y, this.angle, this.segment);
|
|
8586
8587
|
}
|
|
8587
8588
|
}
|
|
8588
8589
|
function ad(n, t, r, a, l) {
|
|
@@ -8621,57 +8622,57 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8621
8622
|
let _ = 0;
|
|
8622
8623
|
const x = sd(n) / 2;
|
|
8623
8624
|
for (let b = 0; b < n.length - 1; b++) {
|
|
8624
|
-
const T = n[b], I = n[b + 1],
|
|
8625
|
-
if (_ +
|
|
8626
|
-
const
|
|
8625
|
+
const T = n[b], I = n[b + 1], E = T.dist(I);
|
|
8626
|
+
if (_ + E > x) {
|
|
8627
|
+
const A = (x - _) / E, D = on.number(T.x, I.x, A), O = on.number(T.y, I.y, A), $ = new Ea(D, O, I.angleTo(T), b);
|
|
8627
8628
|
return $._round(), !d || ad(n, $, m, d, t) ? $ : void 0;
|
|
8628
8629
|
}
|
|
8629
|
-
_ +=
|
|
8630
|
+
_ += E;
|
|
8630
8631
|
}
|
|
8631
8632
|
}
|
|
8632
|
-
function
|
|
8633
|
+
function Em(n, t, r, a, l, p, d, m, _) {
|
|
8633
8634
|
const x = od(a, p, d), b = ld(a, l), T = b * d, I = n[0].x === 0 || n[0].x === _ || n[0].y === 0 || n[0].y === _;
|
|
8634
8635
|
return t - T < t / 4 && (t = T + t / 4), cd(n, I ? t / 2 * m % t : (b / 2 + 2 * p) * d * m % t, t, x, r, T, I, !1, _);
|
|
8635
8636
|
}
|
|
8636
8637
|
function cd(n, t, r, a, l, p, d, m, _) {
|
|
8637
8638
|
const x = p / 2, b = sd(n);
|
|
8638
|
-
let T = 0, I = t - r,
|
|
8639
|
-
for (let
|
|
8640
|
-
const D = n[
|
|
8639
|
+
let T = 0, I = t - r, E = [];
|
|
8640
|
+
for (let A = 0; A < n.length - 1; A++) {
|
|
8641
|
+
const D = n[A], O = n[A + 1], $ = D.dist(O), re = O.angleTo(D);
|
|
8641
8642
|
for (; I + r < T + $; ) {
|
|
8642
8643
|
I += r;
|
|
8643
8644
|
const W = (I - T) / $, C = on.number(D.x, O.x, W), F = on.number(D.y, O.y, W);
|
|
8644
8645
|
if (C >= 0 && C < _ && F >= 0 && F < _ && I - x >= 0 && I + x <= b) {
|
|
8645
|
-
const X = new
|
|
8646
|
-
X._round(), a && !ad(n, X, p, a, l) ||
|
|
8646
|
+
const X = new Ea(C, F, re, A);
|
|
8647
|
+
X._round(), a && !ad(n, X, p, a, l) || E.push(X);
|
|
8647
8648
|
}
|
|
8648
8649
|
}
|
|
8649
8650
|
T += $;
|
|
8650
8651
|
}
|
|
8651
|
-
return m ||
|
|
8652
|
+
return m || E.length || d || (E = cd(n, T / 2, r, a, l, p, d, !0, _)), E;
|
|
8652
8653
|
}
|
|
8653
|
-
Ne("Anchor",
|
|
8654
|
+
Ne("Anchor", Ea);
|
|
8654
8655
|
const Il = Pr;
|
|
8655
8656
|
function ud(n, t, r, a) {
|
|
8656
8657
|
const l = [], p = n.image, d = p.pixelRatio, m = p.paddedRect.w - 2 * Il, _ = p.paddedRect.h - 2 * Il;
|
|
8657
8658
|
let x = { x1: n.left, y1: n.top, x2: n.right, y2: n.bottom };
|
|
8658
|
-
const b = p.stretchX || [[0, m]], T = p.stretchY || [[0, _]], I = (Me, Ue) => Me + Ue[1] - Ue[0],
|
|
8659
|
-
let $ = 0, re =
|
|
8659
|
+
const b = p.stretchX || [[0, m]], T = p.stretchY || [[0, _]], I = (Me, Ue) => Me + Ue[1] - Ue[0], E = b.reduce(I, 0), A = T.reduce(I, 0), D = m - E, O = _ - A;
|
|
8660
|
+
let $ = 0, re = E, W = 0, C = A, F = 0, X = D, me = 0, Ie = O;
|
|
8660
8661
|
if (p.content && a) {
|
|
8661
8662
|
const Me = p.content, Ue = Me[2] - Me[0], Ye = Me[3] - Me[1];
|
|
8662
8663
|
(p.textFitWidth || p.textFitHeight) && (x = Bp(n)), $ = $c(b, 0, Me[0]), W = $c(T, 0, Me[1]), re = $c(b, Me[0], Me[2]), C = $c(T, Me[1], Me[3]), F = Me[0] - $, me = Me[1] - W, X = Ue - re, Ie = Ye - C;
|
|
8663
8664
|
}
|
|
8664
|
-
const ge = x.x1, be = x.y1,
|
|
8665
|
-
const Ze = Gc(Me.stretch - $, re,
|
|
8665
|
+
const ge = x.x1, be = x.y1, Ae = x.x2 - ge, Ce = x.y2 - be, ze = (Me, Ue, Ye, Ke) => {
|
|
8666
|
+
const Ze = Gc(Me.stretch - $, re, Ae, ge), mt = qc(Me.fixed - F, X, Me.stretch, E), si = Gc(Ue.stretch - W, C, Ce, be), Ei = qc(Ue.fixed - me, Ie, Ue.stretch, A), ir = Gc(Ye.stretch - $, re, Ae, ge), Xr = qc(Ye.fixed - F, X, Ye.stretch, E), Sr = Gc(Ke.stretch - W, C, Ce, be), Wi = qc(Ke.fixed - me, Ie, Ke.stretch, A), ii = new je(Ze, si), Bi = new je(ir, si), Xi = new je(ir, Sr), Ki = new je(Ze, Sr), yr = new je(mt / d, Ei / d), Kr = new je(Xr / d, Wi / d), Fi = t * Math.PI / 180;
|
|
8666
8667
|
if (Fi) {
|
|
8667
8668
|
const Oi = Math.sin(Fi), ji = Math.cos(Fi), bi = [ji, -Oi, Oi, ji];
|
|
8668
8669
|
ii._matMult(bi), Bi._matMult(bi), Ki._matMult(bi), Xi._matMult(bi);
|
|
8669
8670
|
}
|
|
8670
|
-
const Ir = Me.stretch + Me.fixed,
|
|
8671
|
-
return { tl: ii, tr: Bi, bl: Ki, br: Xi, tex: { x: p.paddedRect.x + Il + Ir, y: p.paddedRect.y + Il +
|
|
8671
|
+
const Ir = Me.stretch + Me.fixed, Ai = Ue.stretch + Ue.fixed;
|
|
8672
|
+
return { tl: ii, tr: Bi, bl: Ki, br: Xi, tex: { x: p.paddedRect.x + Il + Ir, y: p.paddedRect.y + Il + Ai, w: Ye.stretch + Ye.fixed - Ir, h: Ke.stretch + Ke.fixed - Ai }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: yr, pixelOffsetBR: Kr, minFontScaleX: X / d / Ae, minFontScaleY: Ie / d / Ce, isSDF: r };
|
|
8672
8673
|
};
|
|
8673
8674
|
if (a && (p.stretchX || p.stretchY)) {
|
|
8674
|
-
const Me = hd(b, D,
|
|
8675
|
+
const Me = hd(b, D, E), Ue = hd(T, O, A);
|
|
8675
8676
|
for (let Ye = 0; Ye < Me.length - 1; Ye++) {
|
|
8676
8677
|
const Ke = Me[Ye], Ze = Me[Ye + 1];
|
|
8677
8678
|
for (let mt = 0; mt < Ue.length - 1; mt++) l.push(ze(Ke, Ue[mt], Ze, Ue[mt + 1]));
|
|
@@ -8702,25 +8703,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8702
8703
|
constructor(t, r, a, l, p, d, m, _, x, b) {
|
|
8703
8704
|
var T;
|
|
8704
8705
|
if (this.boxStartIndex = t.length, x) {
|
|
8705
|
-
let I = d.top,
|
|
8706
|
-
const
|
|
8707
|
-
|
|
8708
|
-
let D =
|
|
8706
|
+
let I = d.top, E = d.bottom;
|
|
8707
|
+
const A = d.collisionPadding;
|
|
8708
|
+
A && (I -= A[1], E += A[3]);
|
|
8709
|
+
let D = E - I;
|
|
8709
8710
|
D > 0 && (D = Math.max(10, D), this.circleDiameter = D);
|
|
8710
8711
|
} else {
|
|
8711
8712
|
const I = !((T = d.image) === null || T === void 0) && T.content && (d.image.textFitWidth || d.image.textFitHeight) ? Bp(d) : { x1: d.left, y1: d.top, x2: d.right, y2: d.bottom };
|
|
8712
8713
|
I.y1 = I.y1 * m - _[0], I.y2 = I.y2 * m + _[2], I.x1 = I.x1 * m - _[3], I.x2 = I.x2 * m + _[1];
|
|
8713
|
-
const
|
|
8714
|
-
if (
|
|
8715
|
-
const
|
|
8716
|
-
|
|
8714
|
+
const E = d.collisionPadding;
|
|
8715
|
+
if (E && (I.x1 -= E[0] * m, I.y1 -= E[1] * m, I.x2 += E[2] * m, I.y2 += E[3] * m), b) {
|
|
8716
|
+
const A = new je(I.x1, I.y1), D = new je(I.x2, I.y1), O = new je(I.x1, I.y2), $ = new je(I.x2, I.y2), re = b * Math.PI / 180;
|
|
8717
|
+
A._rotate(re), D._rotate(re), O._rotate(re), $._rotate(re), I.x1 = Math.min(A.x, D.x, O.x, $.x), I.x2 = Math.max(A.x, D.x, O.x, $.x), I.y1 = Math.min(A.y, D.y, O.y, $.y), I.y2 = Math.max(A.y, D.y, O.y, $.y);
|
|
8717
8718
|
}
|
|
8718
8719
|
t.emplaceBack(r.x, r.y, I.x1, I.y1, I.x2, I.y2, a, l, p);
|
|
8719
8720
|
}
|
|
8720
8721
|
this.boxEndIndex = t.length;
|
|
8721
8722
|
}
|
|
8722
8723
|
}
|
|
8723
|
-
class
|
|
8724
|
+
class Am {
|
|
8724
8725
|
constructor(t = [], r = (a, l) => a < l ? -1 : a > l ? 1 : 0) {
|
|
8725
8726
|
if (this.data = t, this.length = this.data.length, this.compare = r, this.length > 0) for (let a = (this.length >> 1) - 1; a >= 0; a--) this._down(a);
|
|
8726
8727
|
}
|
|
@@ -8758,27 +8759,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8758
8759
|
function zm(n, t = 1, r = !1) {
|
|
8759
8760
|
let a = 1 / 0, l = 1 / 0, p = -1 / 0, d = -1 / 0;
|
|
8760
8761
|
const m = n[0];
|
|
8761
|
-
for (let
|
|
8762
|
-
const
|
|
8763
|
-
(!
|
|
8762
|
+
for (let E = 0; E < m.length; E++) {
|
|
8763
|
+
const A = m[E];
|
|
8764
|
+
(!E || A.x < a) && (a = A.x), (!E || A.y < l) && (l = A.y), (!E || A.x > p) && (p = A.x), (!E || A.y > d) && (d = A.y);
|
|
8764
8765
|
}
|
|
8765
8766
|
const _ = Math.min(p - a, d - l);
|
|
8766
8767
|
let x = _ / 2;
|
|
8767
|
-
const b = new
|
|
8768
|
+
const b = new Am([], km);
|
|
8768
8769
|
if (_ === 0) return new je(a, l);
|
|
8769
|
-
for (let
|
|
8770
|
-
let T = function(
|
|
8771
|
-
let
|
|
8772
|
-
const $ =
|
|
8770
|
+
for (let E = a; E < p; E += _) for (let A = l; A < d; A += _) b.push(new po(E + x, A + x, x, n));
|
|
8771
|
+
let T = function(E) {
|
|
8772
|
+
let A = 0, D = 0, O = 0;
|
|
8773
|
+
const $ = E[0];
|
|
8773
8774
|
for (let re = 0, W = $.length, C = W - 1; re < W; C = re++) {
|
|
8774
8775
|
const F = $[re], X = $[C], me = F.x * X.y - X.x * F.y;
|
|
8775
|
-
D += (F.x + X.x) * me, O += (F.y + X.y) * me,
|
|
8776
|
+
D += (F.x + X.x) * me, O += (F.y + X.y) * me, A += 3 * me;
|
|
8776
8777
|
}
|
|
8777
|
-
return new po(D /
|
|
8778
|
+
return new po(D / A, O / A, 0, E);
|
|
8778
8779
|
}(n), I = b.length;
|
|
8779
8780
|
for (; b.length; ) {
|
|
8780
|
-
const
|
|
8781
|
-
(
|
|
8781
|
+
const E = b.pop();
|
|
8782
|
+
(E.d > T.d || !T.d) && (T = E, r && console.log("found best %d after %d probes", Math.round(1e4 * E.d) / 1e4, I)), E.max - T.d <= t || (x = E.h / 2, b.push(new po(E.p.x - x, E.p.y - x, x, n)), b.push(new po(E.p.x + x, E.p.y - x, x, n)), b.push(new po(E.p.x - x, E.p.y + x, x, n)), b.push(new po(E.p.x + x, E.p.y + x, x, n)), I += 4);
|
|
8782
8783
|
}
|
|
8783
8784
|
return r && (console.log(`num probes: ${I}`), console.log(`best distance: ${T.d}`)), T.p;
|
|
8784
8785
|
}
|
|
@@ -8791,8 +8792,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8791
8792
|
for (let _ = 0; _ < p.length; _++) {
|
|
8792
8793
|
const x = p[_];
|
|
8793
8794
|
for (let b = 0, T = x.length, I = T - 1; b < T; I = b++) {
|
|
8794
|
-
const
|
|
8795
|
-
|
|
8795
|
+
const E = x[b], A = x[I];
|
|
8796
|
+
E.y > l.y != A.y > l.y && l.x < (A.x - E.x) * (l.y - E.y) / (A.y - E.y) + E.x && (d = !d), m = Math.min(m, Gh(l, E, A));
|
|
8796
8797
|
}
|
|
8797
8798
|
}
|
|
8798
8799
|
return (d ? 1 : -1) * Math.sqrt(m);
|
|
@@ -8800,7 +8801,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8800
8801
|
}
|
|
8801
8802
|
var tr;
|
|
8802
8803
|
S.aB = void 0, (tr = S.aB || (S.aB = {}))[tr.center = 1] = "center", tr[tr.left = 2] = "left", tr[tr.right = 3] = "right", tr[tr.top = 4] = "top", tr[tr.bottom = 5] = "bottom", tr[tr["top-left"] = 6] = "top-left", tr[tr["top-right"] = 7] = "top-right", tr[tr["bottom-left"] = 8] = "bottom-left", tr[tr["bottom-right"] = 9] = "bottom-right";
|
|
8803
|
-
const
|
|
8804
|
+
const Aa = 7, hh = Number.POSITIVE_INFINITY;
|
|
8804
8805
|
function pd(n, t) {
|
|
8805
8806
|
return t[1] !== hh ? function(r, a, l) {
|
|
8806
8807
|
let p = 0, d = 0;
|
|
@@ -8808,12 +8809,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8808
8809
|
case "top-right":
|
|
8809
8810
|
case "top-left":
|
|
8810
8811
|
case "top":
|
|
8811
|
-
d = l -
|
|
8812
|
+
d = l - Aa;
|
|
8812
8813
|
break;
|
|
8813
8814
|
case "bottom-right":
|
|
8814
8815
|
case "bottom-left":
|
|
8815
8816
|
case "bottom":
|
|
8816
|
-
d = -l +
|
|
8817
|
+
d = -l + Aa;
|
|
8817
8818
|
}
|
|
8818
8819
|
switch (r) {
|
|
8819
8820
|
case "top-right":
|
|
@@ -8834,17 +8835,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8834
8835
|
switch (r) {
|
|
8835
8836
|
case "top-right":
|
|
8836
8837
|
case "top-left":
|
|
8837
|
-
p = d -
|
|
8838
|
+
p = d - Aa;
|
|
8838
8839
|
break;
|
|
8839
8840
|
case "bottom-right":
|
|
8840
8841
|
case "bottom-left":
|
|
8841
|
-
p = -d +
|
|
8842
|
+
p = -d + Aa;
|
|
8842
8843
|
break;
|
|
8843
8844
|
case "bottom":
|
|
8844
|
-
p = -a +
|
|
8845
|
+
p = -a + Aa;
|
|
8845
8846
|
break;
|
|
8846
8847
|
case "top":
|
|
8847
|
-
p = a -
|
|
8848
|
+
p = a - Aa;
|
|
8848
8849
|
}
|
|
8849
8850
|
switch (r) {
|
|
8850
8851
|
case "top-right":
|
|
@@ -8871,7 +8872,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8871
8872
|
const m = p.values, _ = [];
|
|
8872
8873
|
for (let x = 0; x < m.length; x += 2) {
|
|
8873
8874
|
const b = _[x] = m[x], T = m[x + 1].map((I) => I * Ci);
|
|
8874
|
-
b.startsWith("top") ? T[1] -=
|
|
8875
|
+
b.startsWith("top") ? T[1] -= Aa : b.startsWith("bottom") && (T[1] += Aa), _[x + 1] = T;
|
|
8875
8876
|
}
|
|
8876
8877
|
return new ur(_);
|
|
8877
8878
|
}
|
|
@@ -8901,41 +8902,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8901
8902
|
function Dm(n, t, r, a, l, p, d, m, _, x, b, T) {
|
|
8902
8903
|
let I = p.textMaxSize.evaluate(t, {});
|
|
8903
8904
|
I === void 0 && (I = d);
|
|
8904
|
-
const
|
|
8905
|
-
const si = Ye.get("icon-padding").evaluate(Ke, {}, Ze),
|
|
8906
|
-
return [
|
|
8907
|
-
}(
|
|
8905
|
+
const E = n.layers[0].layout, A = E.get("icon-offset").evaluate(t, {}, b), D = md(r.horizontal), O = d / 24, $ = n.tilePixelRatio * O, re = n.tilePixelRatio * I / 24, W = n.tilePixelRatio * m, C = n.tilePixelRatio * E.get("symbol-spacing"), F = E.get("text-padding") * n.tilePixelRatio, X = function(Ye, Ke, Ze, mt = 1) {
|
|
8906
|
+
const si = Ye.get("icon-padding").evaluate(Ke, {}, Ze), Ei = si && si.values;
|
|
8907
|
+
return [Ei[0] * mt, Ei[1] * mt, Ei[2] * mt, Ei[3] * mt];
|
|
8908
|
+
}(E, t, b, n.tilePixelRatio), me = E.get("text-max-angle") / 180 * Math.PI, Ie = E.get("text-rotation-alignment") !== "viewport" && E.get("symbol-placement") !== "point", ge = E.get("icon-rotation-alignment") === "map" && E.get("symbol-placement") !== "point", be = E.get("symbol-placement"), Ae = C / 2, Ce = E.get("icon-text-fit");
|
|
8908
8909
|
let ze;
|
|
8909
|
-
a && Ce !== "none" && (n.allowVerticalPlacement && r.vertical && (ze = Fp(a, r.vertical, Ce,
|
|
8910
|
+
a && Ce !== "none" && (n.allowVerticalPlacement && r.vertical && (ze = Fp(a, r.vertical, Ce, E.get("icon-text-fit-padding"), A, O)), D && (a = Fp(a, D, Ce, E.get("icon-text-fit-padding"), A, O)));
|
|
8910
8911
|
const Me = b ? T.line.getGranularityForZoomLevel(b.z) : 1, Ue = (Ye, Ke) => {
|
|
8911
|
-
Ke.x < 0 || Ke.x >= Pt || Ke.y < 0 || Ke.y >= Pt || function(Ze, mt, si,
|
|
8912
|
+
Ke.x < 0 || Ke.x >= Pt || Ke.y < 0 || Ke.y >= Pt || function(Ze, mt, si, Ei, ir, Xr, Sr, Wi, ii, Bi, Xi, Ki, yr, Kr, Fi, Ir, Ai, Oi, ji, bi, Wt, Tn, fo, Mn, Bm) {
|
|
8912
8913
|
const mo = Ze.addToLineVertexArray(mt, si);
|
|
8913
8914
|
let gs, go, _o, yo, xd = 0, vd = 0, bd = 0, wd = 0, vh = -1, bh = -1;
|
|
8914
8915
|
const ta = {};
|
|
8915
8916
|
let Td = bn("");
|
|
8916
|
-
if (Ze.allowVerticalPlacement &&
|
|
8917
|
+
if (Ze.allowVerticalPlacement && Ei.vertical) {
|
|
8917
8918
|
const dr = Wi.layout.get("text-rotate").evaluate(Wt, {}, Mn) + 90;
|
|
8918
|
-
_o = new Hc(ii, mt, Bi, Xi, Ki,
|
|
8919
|
+
_o = new Hc(ii, mt, Bi, Xi, Ki, Ei.vertical, yr, Kr, Fi, dr), Sr && (yo = new Hc(ii, mt, Bi, Xi, Ki, Sr, Ai, Oi, Fi, dr));
|
|
8919
8920
|
}
|
|
8920
8921
|
if (ir) {
|
|
8921
8922
|
const dr = Wi.layout.get("icon-rotate").evaluate(Wt, {}), Yr = Wi.layout.get("icon-text-fit") !== "none", _s = ud(ir, dr, fo, Yr), Sn = Sr ? ud(Sr, dr, fo, Yr) : void 0;
|
|
8922
|
-
go = new Hc(ii, mt, Bi, Xi, Ki, ir,
|
|
8923
|
+
go = new Hc(ii, mt, Bi, Xi, Ki, ir, Ai, Oi, !1, dr), xd = 4 * _s.length;
|
|
8923
8924
|
const ys = Ze.iconSizeData;
|
|
8924
8925
|
let jn = null;
|
|
8925
8926
|
ys.kind === "source" ? (jn = [On * Wi.layout.get("icon-size").evaluate(Wt, {})], jn[0] > Ia && ci(`${Ze.layerIds[0]}: Value for "icon-size" is >= ${Pl}. Reduce your "icon-size".`)) : ys.kind === "composite" && (jn = [On * Tn.compositeIconSizes[0].evaluate(Wt, {}, Mn), On * Tn.compositeIconSizes[1].evaluate(Wt, {}, Mn)], (jn[0] > Ia || jn[1] > Ia) && ci(`${Ze.layerIds[0]}: Value for "icon-size" is >= ${Pl}. Reduce your "icon-size".`)), Ze.addSymbols(Ze.icon, _s, jn, bi, ji, Wt, S.al.none, mt, mo.lineStartIndex, mo.lineLength, -1, Mn), vh = Ze.icon.placedSymbolArray.length - 1, Sn && (vd = 4 * Sn.length, Ze.addSymbols(Ze.icon, Sn, jn, bi, ji, Wt, S.al.vertical, mt, mo.lineStartIndex, mo.lineLength, -1, Mn), bh = Ze.icon.placedSymbolArray.length - 1);
|
|
8926
8927
|
}
|
|
8927
|
-
const Md = Object.keys(
|
|
8928
|
+
const Md = Object.keys(Ei.horizontal);
|
|
8928
8929
|
for (const dr of Md) {
|
|
8929
|
-
const Yr =
|
|
8930
|
+
const Yr = Ei.horizontal[dr];
|
|
8930
8931
|
if (!gs) {
|
|
8931
8932
|
Td = bn(Yr.text);
|
|
8932
8933
|
const Sn = Wi.layout.get("text-rotate").evaluate(Wt, {}, Mn);
|
|
8933
8934
|
gs = new Hc(ii, mt, Bi, Xi, Ki, Yr, yr, Kr, Fi, Sn);
|
|
8934
8935
|
}
|
|
8935
8936
|
const _s = Yr.positionedLines.length === 1;
|
|
8936
|
-
if (bd += fd(Ze, mt, Yr, Xr, Wi, Fi, Wt, Ir, mo,
|
|
8937
|
+
if (bd += fd(Ze, mt, Yr, Xr, Wi, Fi, Wt, Ir, mo, Ei.vertical ? S.al.horizontal : S.al.horizontalOnly, _s ? Md : [dr], ta, vh, Tn, Mn), _s) break;
|
|
8937
8938
|
}
|
|
8938
|
-
|
|
8939
|
+
Ei.vertical && (wd += fd(Ze, mt, Ei.vertical, Xr, Wi, Fi, Wt, Ir, mo, S.al.vertical, ["vertical"], ta, bh, Tn, Mn));
|
|
8939
8940
|
const Fm = gs ? gs.boxStartIndex : Ze.collisionBoxArray.length, Om = gs ? gs.boxEndIndex : Ze.collisionBoxArray.length, jm = _o ? _o.boxStartIndex : Ze.collisionBoxArray.length, Nm = _o ? _o.boxEndIndex : Ze.collisionBoxArray.length, Um = go ? go.boxStartIndex : Ze.collisionBoxArray.length, Vm = go ? go.boxEndIndex : Ze.collisionBoxArray.length, Zm = yo ? yo.boxStartIndex : Ze.collisionBoxArray.length, $m = yo ? yo.boxEndIndex : Ze.collisionBoxArray.length;
|
|
8940
8941
|
let Pn = -1;
|
|
8941
8942
|
const Xc = (dr, Yr) => dr && dr.circleDiameter ? Math.max(dr.circleDiameter, Yr) : Yr;
|
|
@@ -8951,30 +8952,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8951
8952
|
return [_s, dr.length];
|
|
8952
8953
|
}(Ze.textAnchorOffsets, Gm);
|
|
8953
8954
|
Ze.symbolInstances.emplaceBack(mt.x, mt.y, ta.right >= 0 ? ta.right : -1, ta.center >= 0 ? ta.center : -1, ta.left >= 0 ? ta.left : -1, ta.vertical || -1, vh, bh, Td, Fm, Om, jm, Nm, Um, Vm, Zm, $m, Bi, bd, wd, xd, vd, Pd, 0, yr, Pn, qm, Hm);
|
|
8954
|
-
}(n, Ke, Ye, r, a, l, ze, n.layers[0], n.collisionBoxArray, t.index, t.sourceLayerIndex, n.index, $, [F, F, F, F], Ie, _, W, X, ge,
|
|
8955
|
+
}(n, Ke, Ye, r, a, l, ze, n.layers[0], n.collisionBoxArray, t.index, t.sourceLayerIndex, n.index, $, [F, F, F, F], Ie, _, W, X, ge, A, t, p, x, b, d);
|
|
8955
8956
|
};
|
|
8956
8957
|
if (be === "line") for (const Ye of nd(t.geometry, 0, 0, Pt, Pt)) {
|
|
8957
|
-
const Ke = ms(Ye, Me), Ze =
|
|
8958
|
-
for (const mt of Ze) D && Rm(n, D.text,
|
|
8958
|
+
const Ke = ms(Ye, Me), Ze = Em(Ke, C, me, r.vertical || D, a, 24, re, n.overscaling, Pt);
|
|
8959
|
+
for (const mt of Ze) D && Rm(n, D.text, Ae, mt) || Ue(Ke, mt);
|
|
8959
8960
|
}
|
|
8960
8961
|
else if (be === "line-center") {
|
|
8961
8962
|
for (const Ye of t.geometry) if (Ye.length > 1) {
|
|
8962
8963
|
const Ke = ms(Ye, Me), Ze = Cm(Ke, me, r.vertical || D, a, 24, re);
|
|
8963
8964
|
Ze && Ue(Ke, Ze);
|
|
8964
8965
|
}
|
|
8965
|
-
} else if (t.type === "Polygon") for (const Ye of
|
|
8966
|
+
} else if (t.type === "Polygon") for (const Ye of As(t.geometry, 0)) {
|
|
8966
8967
|
const Ke = zm(Ye, 16);
|
|
8967
|
-
Ue(ms(Ye[0], Me, !0), new
|
|
8968
|
+
Ue(ms(Ye[0], Me, !0), new Ea(Ke.x, Ke.y, 0));
|
|
8968
8969
|
}
|
|
8969
8970
|
else if (t.type === "LineString") for (const Ye of t.geometry) {
|
|
8970
8971
|
const Ke = ms(Ye, Me);
|
|
8971
|
-
Ue(Ke, new
|
|
8972
|
+
Ue(Ke, new Ea(Ke[0].x, Ke[0].y, 0));
|
|
8972
8973
|
}
|
|
8973
|
-
else if (t.type === "Point") for (const Ye of t.geometry) for (const Ke of Ye) Ue([Ke], new
|
|
8974
|
+
else if (t.type === "Point") for (const Ye of t.geometry) for (const Ke of Ye) Ue([Ke], new Ea(Ke.x, Ke.y, 0));
|
|
8974
8975
|
}
|
|
8975
|
-
function fd(n, t, r, a, l, p, d, m, _, x, b, T, I,
|
|
8976
|
+
function fd(n, t, r, a, l, p, d, m, _, x, b, T, I, E, A) {
|
|
8976
8977
|
const D = function(re, W, C, F, X, me, Ie, ge) {
|
|
8977
|
-
const be = F.layout.get("text-rotate").evaluate(me, {}) * Math.PI / 180,
|
|
8978
|
+
const be = F.layout.get("text-rotate").evaluate(me, {}) * Math.PI / 180, Ae = [];
|
|
8978
8979
|
for (const Ce of W.positionedLines) for (const ze of Ce.positionedGlyphs) {
|
|
8979
8980
|
if (!ze.rect) continue;
|
|
8980
8981
|
const Me = ze.rect || {};
|
|
@@ -8984,7 +8985,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8984
8985
|
const Oi = Ie[ze.imageName];
|
|
8985
8986
|
Ye = Oi.sdf, Ke = Oi.pixelRatio, Ue = Pr / Ke;
|
|
8986
8987
|
}
|
|
8987
|
-
const
|
|
8988
|
+
const Ei = X ? [ze.x + si, ze.y] : [0, 0];
|
|
8988
8989
|
let ir = X ? [0, 0] : [ze.x + si + C[0], ze.y + C[1] - Ze], Xr = [0, 0];
|
|
8989
8990
|
mt && (Xr = ir, ir = [0, 0]);
|
|
8990
8991
|
const Sr = ze.metrics.isDoubleResolution ? 2 : 1, Wi = (ze.metrics.left - Ue) * ze.scale - si + ir[0], ii = (-ze.metrics.top - Ue) * ze.scale + ir[1], Bi = Wi + Me.w / Sr * ze.scale / Ke, Xi = ii + Me.h / Sr * ze.scale / Ke, Ki = new je(Wi, ii), yr = new je(Bi, ii), Kr = new je(Wi, Xi), Fi = new je(Bi, Xi);
|
|
@@ -8996,13 +8997,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8996
8997
|
const Oi = Math.sin(be), ji = Math.cos(be), bi = [ji, -Oi, Oi, ji];
|
|
8997
8998
|
Ki._matMult(bi), yr._matMult(bi), Kr._matMult(bi), Fi._matMult(bi);
|
|
8998
8999
|
}
|
|
8999
|
-
const Ir = new je(0, 0),
|
|
9000
|
-
|
|
9000
|
+
const Ir = new je(0, 0), Ai = new je(0, 0);
|
|
9001
|
+
Ae.push({ tl: Ki, tr: yr, bl: Kr, br: Fi, tex: Me, writingMode: W.writingMode, glyphOffset: Ei, sectionIndex: ze.sectionIndex, isSDF: Ye, pixelOffsetTL: Ir, pixelOffsetBR: Ai, minFontScaleX: 0, minFontScaleY: 0 });
|
|
9001
9002
|
}
|
|
9002
|
-
return
|
|
9003
|
+
return Ae;
|
|
9003
9004
|
}(0, r, m, l, p, d, a, n.allowVerticalPlacement), O = n.textSizeData;
|
|
9004
9005
|
let $ = null;
|
|
9005
|
-
O.kind === "source" ? ($ = [On * l.layout.get("text-size").evaluate(d, {})], $[0] > Ia && ci(`${n.layerIds[0]}: Value for "text-size" is >= ${Pl}. Reduce your "text-size".`)) : O.kind === "composite" && ($ = [On *
|
|
9006
|
+
O.kind === "source" ? ($ = [On * l.layout.get("text-size").evaluate(d, {})], $[0] > Ia && ci(`${n.layerIds[0]}: Value for "text-size" is >= ${Pl}. Reduce your "text-size".`)) : O.kind === "composite" && ($ = [On * E.compositeTextSizes[0].evaluate(d, {}, A), On * E.compositeTextSizes[1].evaluate(d, {}, A)], ($[0] > Ia || $[1] > Ia) && ci(`${n.layerIds[0]}: Value for "text-size" is >= ${Pl}. Reduce your "text-size".`)), n.addSymbols(n.text, D, $, m, p, d, x, t, _.lineStartIndex, _.lineLength, I, A);
|
|
9006
9007
|
for (const re of b) T[re] = n.text.placedSymbolArray.length - 1;
|
|
9007
9008
|
return 4 * D.length;
|
|
9008
9009
|
}
|
|
@@ -9059,8 +9060,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9059
9060
|
}
|
|
9060
9061
|
continue;
|
|
9061
9062
|
}
|
|
9062
|
-
const
|
|
9063
|
-
|
|
9063
|
+
const E = I + T >> 1, A = d[2 * E], D = d[2 * E + 1];
|
|
9064
|
+
A >= t && A <= a && D >= r && D <= l && x.push(p[E]), (b === 0 ? t <= A : r <= D) && (_.push(I), _.push(E - 1), _.push(1 - b)), (b === 0 ? a >= A : l >= D) && (_.push(E + 1), _.push(T), _.push(1 - b));
|
|
9064
9065
|
}
|
|
9065
9066
|
return x;
|
|
9066
9067
|
}
|
|
@@ -9073,8 +9074,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9073
9074
|
for (let O = I; O <= T; O++) yd(p[2 * O], p[2 * O + 1], t, r) <= x && _.push(l[O]);
|
|
9074
9075
|
continue;
|
|
9075
9076
|
}
|
|
9076
|
-
const
|
|
9077
|
-
yd(
|
|
9077
|
+
const E = I + T >> 1, A = p[2 * E], D = p[2 * E + 1];
|
|
9078
|
+
yd(A, D, t, r) <= x && _.push(l[E]), (b === 0 ? t - a <= A : r - a <= D) && (m.push(I), m.push(E - 1), m.push(1 - b)), (b === 0 ? t + a >= A : r + a >= D) && (m.push(E + 1), m.push(T), m.push(1 - b));
|
|
9078
9079
|
}
|
|
9079
9080
|
return _;
|
|
9080
9081
|
}
|
|
@@ -9087,8 +9088,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9087
9088
|
function _d(n, t, r, a, l, p) {
|
|
9088
9089
|
for (; l > a; ) {
|
|
9089
9090
|
if (l - a > 600) {
|
|
9090
|
-
const x = l - a + 1, b = r - a + 1, T = Math.log(x), I = 0.5 * Math.exp(2 * T / 3),
|
|
9091
|
-
_d(n, t, r, Math.max(a, Math.floor(r - b * I / x +
|
|
9091
|
+
const x = l - a + 1, b = r - a + 1, T = Math.log(x), I = 0.5 * Math.exp(2 * T / 3), E = 0.5 * Math.sqrt(T * I * (x - I) / x) * (b - x / 2 < 0 ? -1 : 1);
|
|
9092
|
+
_d(n, t, r, Math.max(a, Math.floor(r - b * I / x + E)), Math.min(l, Math.floor(r + (x - b) * I / x + E)), p);
|
|
9092
9093
|
}
|
|
9093
9094
|
const d = t[2 * r + p];
|
|
9094
9095
|
let m = a, _ = l;
|
|
@@ -9112,18 +9113,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9112
9113
|
}
|
|
9113
9114
|
var gh;
|
|
9114
9115
|
S.co = void 0, (gh = S.co || (S.co = {})).create = "create", gh.load = "load", gh.fullLoad = "fullLoad";
|
|
9115
|
-
let Wc = null,
|
|
9116
|
+
let Wc = null, El = [];
|
|
9116
9117
|
const _h = 1e3 / 60, yh = "loadTime", xh = "fullLoadTime", Lm = { mark(n) {
|
|
9117
9118
|
performance.mark(n);
|
|
9118
9119
|
}, frame(n) {
|
|
9119
9120
|
const t = n;
|
|
9120
|
-
Wc != null &&
|
|
9121
|
+
Wc != null && El.push(t - Wc), Wc = t;
|
|
9121
9122
|
}, clearMetrics() {
|
|
9122
|
-
Wc = null,
|
|
9123
|
+
Wc = null, El = [], performance.clearMeasures(yh), performance.clearMeasures(xh);
|
|
9123
9124
|
for (const n in S.co) performance.clearMarks(S.co[n]);
|
|
9124
9125
|
}, getPerformanceMetrics() {
|
|
9125
9126
|
performance.measure(yh, S.co.create, S.co.load), performance.measure(xh, S.co.create, S.co.fullLoad);
|
|
9126
|
-
const n = performance.getEntriesByName(yh)[0].duration, t = performance.getEntriesByName(xh)[0].duration, r =
|
|
9127
|
+
const n = performance.getEntriesByName(yh)[0].duration, t = performance.getEntriesByName(xh)[0].duration, r = El.length, a = 1 / (El.reduce((p, d) => p + d, 0) / r / 1e3), l = El.filter((p) => p > _h).reduce((p, d) => p + (d - _h) / _h, 0);
|
|
9127
9128
|
return { loadTime: n, fullLoadTime: t, fps: a, percentDroppedFrames: l / (r + l) * 100, totalFrames: r };
|
|
9128
9129
|
} };
|
|
9129
9130
|
S.$ = Sl, S.A = Dt, S.B = on, S.C = qt, S.D = qe, S.E = te, S.F = Pu, S.G = function(n) {
|
|
@@ -9202,14 +9203,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9202
9203
|
var n = new Dt(16);
|
|
9203
9204
|
return Dt != Float32Array && (n[1] = 0, n[2] = 0, n[3] = 0, n[4] = 0, n[6] = 0, n[7] = 0, n[8] = 0, n[9] = 0, n[11] = 0, n[12] = 0, n[13] = 0, n[14] = 0), n[0] = 1, n[5] = 1, n[10] = 1, n[15] = 1, n;
|
|
9204
9205
|
}, S.L = function(n, t, r) {
|
|
9205
|
-
var a, l, p, d, m, _, x, b, T, I,
|
|
9206
|
-
return t === n ? (n[12] = t[0] * D + t[4] * O + t[8] * $ + t[12], n[13] = t[1] * D + t[5] * O + t[9] * $ + t[13], n[14] = t[2] * D + t[6] * O + t[10] * $ + t[14], n[15] = t[3] * D + t[7] * O + t[11] * $ + t[15]) : (l = t[1], p = t[2], d = t[3], m = t[4], _ = t[5], x = t[6], b = t[7], T = t[8], I = t[9],
|
|
9206
|
+
var a, l, p, d, m, _, x, b, T, I, E, A, D = r[0], O = r[1], $ = r[2];
|
|
9207
|
+
return t === n ? (n[12] = t[0] * D + t[4] * O + t[8] * $ + t[12], n[13] = t[1] * D + t[5] * O + t[9] * $ + t[13], n[14] = t[2] * D + t[6] * O + t[10] * $ + t[14], n[15] = t[3] * D + t[7] * O + t[11] * $ + t[15]) : (l = t[1], p = t[2], d = t[3], m = t[4], _ = t[5], x = t[6], b = t[7], T = t[8], I = t[9], E = t[10], A = t[11], n[0] = a = t[0], n[1] = l, n[2] = p, n[3] = d, n[4] = m, n[5] = _, n[6] = x, n[7] = b, n[8] = T, n[9] = I, n[10] = E, n[11] = A, n[12] = a * D + m * O + T * $ + t[12], n[13] = l * D + _ * O + I * $ + t[13], n[14] = p * D + x * O + E * $ + t[14], n[15] = d * D + b * O + A * $ + t[15]), n;
|
|
9207
9208
|
}, S.M = function(n, t, r) {
|
|
9208
9209
|
var a = r[0], l = r[1], p = r[2];
|
|
9209
9210
|
return n[0] = t[0] * a, n[1] = t[1] * a, n[2] = t[2] * a, n[3] = t[3] * a, n[4] = t[4] * l, n[5] = t[5] * l, n[6] = t[6] * l, n[7] = t[7] * l, n[8] = t[8] * p, n[9] = t[9] * p, n[10] = t[10] * p, n[11] = t[11] * p, n[12] = t[12], n[13] = t[13], n[14] = t[14], n[15] = t[15], n;
|
|
9210
9211
|
}, S.N = function(n, t, r) {
|
|
9211
|
-
var a = t[0], l = t[1], p = t[2], d = t[3], m = t[4], _ = t[5], x = t[6], b = t[7], T = t[8], I = t[9],
|
|
9212
|
-
return n[0] = W * a + C * m + F * T + X * D, n[1] = W * l + C * _ + F * I + X * O, n[2] = W * p + C * x + F *
|
|
9212
|
+
var a = t[0], l = t[1], p = t[2], d = t[3], m = t[4], _ = t[5], x = t[6], b = t[7], T = t[8], I = t[9], E = t[10], A = t[11], D = t[12], O = t[13], $ = t[14], re = t[15], W = r[0], C = r[1], F = r[2], X = r[3];
|
|
9213
|
+
return n[0] = W * a + C * m + F * T + X * D, n[1] = W * l + C * _ + F * I + X * O, n[2] = W * p + C * x + F * E + X * $, n[3] = W * d + C * b + F * A + X * re, n[4] = (W = r[4]) * a + (C = r[5]) * m + (F = r[6]) * T + (X = r[7]) * D, n[5] = W * l + C * _ + F * I + X * O, n[6] = W * p + C * x + F * E + X * $, n[7] = W * d + C * b + F * A + X * re, n[8] = (W = r[8]) * a + (C = r[9]) * m + (F = r[10]) * T + (X = r[11]) * D, n[9] = W * l + C * _ + F * I + X * O, n[10] = W * p + C * x + F * E + X * $, n[11] = W * d + C * b + F * A + X * re, n[12] = (W = r[12]) * a + (C = r[13]) * m + (F = r[14]) * T + (X = r[15]) * D, n[13] = W * l + C * _ + F * I + X * O, n[14] = W * p + C * x + F * E + X * $, n[15] = W * d + C * b + F * A + X * re, n;
|
|
9213
9214
|
}, S.O = function(n, t) {
|
|
9214
9215
|
const r = {};
|
|
9215
9216
|
for (let a = 0; a < t.length; a++) {
|
|
@@ -9301,8 +9302,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9301
9302
|
}, S.am = function(n, { uSize: t, uSizeT: r }, { lowerSize: a, upperSize: l }) {
|
|
9302
9303
|
return n.kind === "source" ? a / On : n.kind === "composite" ? on.number(a / On, l / On, r) : t;
|
|
9303
9304
|
}, S.an = function(n, t) {
|
|
9304
|
-
var r = t[0], a = t[1], l = t[2], p = t[3], d = t[4], m = t[5], _ = t[6], x = t[7], b = t[8], T = t[9], I = t[10],
|
|
9305
|
-
return Me ? (n[0] = (m * ze - _ * Ce + x *
|
|
9305
|
+
var r = t[0], a = t[1], l = t[2], p = t[3], d = t[4], m = t[5], _ = t[6], x = t[7], b = t[8], T = t[9], I = t[10], E = t[11], A = t[12], D = t[13], O = t[14], $ = t[15], re = r * m - a * d, W = r * _ - l * d, C = r * x - p * d, F = a * _ - l * m, X = a * x - p * m, me = l * x - p * _, Ie = b * D - T * A, ge = b * O - I * A, be = b * $ - E * A, Ae = T * O - I * D, Ce = T * $ - E * D, ze = I * $ - E * O, Me = re * ze - W * Ce + C * Ae + F * be - X * ge + me * Ie;
|
|
9306
|
+
return Me ? (n[0] = (m * ze - _ * Ce + x * Ae) * (Me = 1 / Me), n[1] = (l * Ce - a * ze - p * Ae) * Me, n[2] = (D * me - O * X + $ * F) * Me, n[3] = (I * X - T * me - E * F) * Me, n[4] = (_ * be - d * ze - x * ge) * Me, n[5] = (r * ze - l * be + p * ge) * Me, n[6] = (O * C - A * me - $ * W) * Me, n[7] = (b * me - I * C + E * W) * Me, n[8] = (d * Ce - m * be + x * Ie) * Me, n[9] = (a * be - r * Ce - p * Ie) * Me, n[10] = (A * X - D * C + $ * re) * Me, n[11] = (T * C - b * X - E * re) * Me, n[12] = (m * ge - d * Ae - _ * Ie) * Me, n[13] = (r * Ae - a * ge + l * Ie) * Me, n[14] = (D * W - A * F - O * re) * Me, n[15] = (b * F - T * W + I * re) * Me, n) : null;
|
|
9306
9307
|
}, S.ao = ar, S.ap = function(n) {
|
|
9307
9308
|
return Math.hypot(n[0], n[1]);
|
|
9308
9309
|
}, S.aq = function(n) {
|
|
@@ -9332,16 +9333,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9332
9333
|
return function(l, p, d, m) {
|
|
9333
9334
|
var _ = 0.5 * Math.PI / 180;
|
|
9334
9335
|
p *= _, d *= _, m *= _;
|
|
9335
|
-
var x = Math.sin(p), b = Math.cos(p), T = Math.sin(d), I = Math.cos(d),
|
|
9336
|
-
l[0] = x * I *
|
|
9336
|
+
var x = Math.sin(p), b = Math.cos(p), T = Math.sin(d), I = Math.cos(d), E = Math.sin(m), A = Math.cos(m);
|
|
9337
|
+
l[0] = x * I * A - b * T * E, l[1] = b * T * A + x * I * E, l[2] = b * I * E - x * T * A, l[3] = b * I * A + x * T * E;
|
|
9337
9338
|
}(a, n, t - 90, r), a;
|
|
9338
9339
|
}, S.b4 = function(n, t, r, a) {
|
|
9339
|
-
var l, p, d, m, _, x = t[0], b = t[1], T = t[2], I = t[3],
|
|
9340
|
-
return (p = x *
|
|
9340
|
+
var l, p, d, m, _, x = t[0], b = t[1], T = t[2], I = t[3], E = r[0], A = r[1], D = r[2], O = r[3];
|
|
9341
|
+
return (p = x * E + b * A + T * D + I * O) < 0 && (p = -p, E = -E, A = -A, D = -D, O = -O), 1 - p > Rt ? (l = Math.acos(p), d = Math.sin(l), m = Math.sin((1 - a) * l) / d, _ = Math.sin(a * l) / d) : (m = 1 - a, _ = a), n[0] = m * x + _ * E, n[1] = m * b + _ * A, n[2] = m * T + _ * D, n[3] = m * I + _ * O, n;
|
|
9341
9342
|
}, S.b5 = function(n) {
|
|
9342
9343
|
const t = new Float64Array(9);
|
|
9343
|
-
var r, a, l, p, d, m, _, x, b, T, I,
|
|
9344
|
-
T = (l = (a = n)[0]) * (_ = l + l), I = (p = a[1]) * _,
|
|
9344
|
+
var r, a, l, p, d, m, _, x, b, T, I, E, A, D, O, $, re, W;
|
|
9345
|
+
T = (l = (a = n)[0]) * (_ = l + l), I = (p = a[1]) * _, A = (d = a[2]) * _, D = d * (x = p + p), $ = (m = a[3]) * _, re = m * x, W = m * (b = d + d), (r = t)[0] = 1 - (E = p * x) - (O = d * b), r[3] = I - W, r[6] = A + re, r[1] = I + W, r[4] = 1 - T - O, r[7] = D - $, r[2] = A - re, r[5] = D + $, r[8] = 1 - T - E;
|
|
9345
9346
|
const C = or(-Math.asin(lt(t[2], -1, 1)));
|
|
9346
9347
|
let F, X;
|
|
9347
9348
|
return Math.hypot(t[5], t[8]) < 1e-3 ? (F = 0, X = -or(Math.atan2(t[3], t[4]))) : (F = or(t[5] === 0 && t[8] === 0 ? 0 : Math.atan2(t[5], t[8])), X = or(t[1] === 0 && t[0] === 0 ? 0 : Math.atan2(t[1], t[0]))), { roll: F, pitch: C + 90, bearing: X };
|
|
@@ -9386,14 +9387,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9386
9387
|
"source" in d && a[d.source] ? r.push({ command: "removeLayer", args: [d.id] }) : p.push(d);
|
|
9387
9388
|
}), r = r.concat(l), function(d, m, _) {
|
|
9388
9389
|
m = m || [];
|
|
9389
|
-
const x = (d = d || []).map(nt), b = m.map(nt), T = d.reduce(tt, {}), I = m.reduce(tt, {}),
|
|
9390
|
+
const x = (d = d || []).map(nt), b = m.map(nt), T = d.reduce(tt, {}), I = m.reduce(tt, {}), E = x.slice(), A = /* @__PURE__ */ Object.create(null);
|
|
9390
9391
|
let D, O, $, re, W;
|
|
9391
|
-
for (let C = 0, F = 0; C < x.length; C++) D = x[C], Object.prototype.hasOwnProperty.call(I, D) ? F++ : (he(_, { command: "removeLayer", args: [D] }),
|
|
9392
|
-
for (let C = 0, F = 0; C < b.length; C++) D = b[b.length - 1 - C],
|
|
9393
|
-
for (let C = 0; C < b.length; C++) if (D = b[C], O = T[D], $ = I[D], !
|
|
9392
|
+
for (let C = 0, F = 0; C < x.length; C++) D = x[C], Object.prototype.hasOwnProperty.call(I, D) ? F++ : (he(_, { command: "removeLayer", args: [D] }), E.splice(E.indexOf(D, F), 1));
|
|
9393
|
+
for (let C = 0, F = 0; C < b.length; C++) D = b[b.length - 1 - C], E[E.length - 1 - C] !== D && (Object.prototype.hasOwnProperty.call(T, D) ? (he(_, { command: "removeLayer", args: [D] }), E.splice(E.lastIndexOf(D, E.length - F), 1)) : F++, re = E[E.length - C], he(_, { command: "addLayer", args: [I[D], re] }), E.splice(E.length - C, 0, D), A[D] = !0);
|
|
9394
|
+
for (let C = 0; C < b.length; C++) if (D = b[C], O = T[D], $ = I[D], !A[D] && !ue(O, $)) if (ue(O.source, $.source) && ue(O["source-layer"], $["source-layer"]) && ue(O.type, $.type)) {
|
|
9394
9395
|
for (W in We(O.layout, $.layout, _, D, null, "setLayoutProperty"), We(O.paint, $.paint, _, D, null, "setPaintProperty"), ue(O.filter, $.filter) || he(_, { command: "setFilter", args: [D, $.filter] }), ue(O.minzoom, $.minzoom) && ue(O.maxzoom, $.maxzoom) || he(_, { command: "setLayerZoomRange", args: [D, $.minzoom, $.maxzoom] }), O) Object.prototype.hasOwnProperty.call(O, W) && W !== "layout" && W !== "paint" && W !== "filter" && W !== "metadata" && W !== "minzoom" && W !== "maxzoom" && (W.indexOf("paint.") === 0 ? We(O[W], $[W], _, D, W.slice(6), "setPaintProperty") : ue(O[W], $[W]) || he(_, { command: "setLayerProperty", args: [D, W, $[W]] }));
|
|
9395
9396
|
for (W in $) Object.prototype.hasOwnProperty.call($, W) && !Object.prototype.hasOwnProperty.call(O, W) && W !== "layout" && W !== "paint" && W !== "filter" && W !== "metadata" && W !== "minzoom" && W !== "maxzoom" && (W.indexOf("paint.") === 0 ? We(O[W], $[W], _, D, W.slice(6), "setPaintProperty") : ue(O[W], $[W]) || he(_, { command: "setLayerProperty", args: [D, W, $[W]] }));
|
|
9396
|
-
} else he(_, { command: "removeLayer", args: [D] }), re =
|
|
9397
|
+
} else he(_, { command: "removeLayer", args: [D] }), re = E[E.lastIndexOf(D) + 1], he(_, { command: "addLayer", args: [$, re] });
|
|
9397
9398
|
}(p, t.layers, r);
|
|
9398
9399
|
} catch (a) {
|
|
9399
9400
|
console.warn("Unable to compute style diff:", a), r = [{ command: "setStyle", args: [t] }];
|
|
@@ -9432,7 +9433,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9432
9433
|
break;
|
|
9433
9434
|
}
|
|
9434
9435
|
}
|
|
9435
|
-
}, S.bK =
|
|
9436
|
+
}, S.bK = Ac, S.bL = class extends Ht {
|
|
9436
9437
|
constructor(n, t) {
|
|
9437
9438
|
super(n, t), this.current = [0, 0, 0];
|
|
9438
9439
|
}
|
|
@@ -9540,8 +9541,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9540
9541
|
}, S.c = Lr, S.c0 = function(n, t) {
|
|
9541
9542
|
return n[0] === t[0] && n[1] === t[1] && n[2] === t[2] && n[3] === t[3] && n[4] === t[4] && n[5] === t[5] && n[6] === t[6] && n[7] === t[7] && n[8] === t[8] && n[9] === t[9] && n[10] === t[10] && n[11] === t[11] && n[12] === t[12] && n[13] === t[13] && n[14] === t[14] && n[15] === t[15];
|
|
9542
9543
|
}, S.c1 = function(n, t) {
|
|
9543
|
-
var r = n[0], a = n[1], l = n[2], p = n[3], d = n[4], m = n[5], _ = n[6], x = n[7], b = n[8], T = n[9], I = n[10],
|
|
9544
|
-
return Math.abs(r - re) <= Rt * Math.max(1, Math.abs(r), Math.abs(re)) && Math.abs(a - W) <= Rt * Math.max(1, Math.abs(a), Math.abs(W)) && Math.abs(l - C) <= Rt * Math.max(1, Math.abs(l), Math.abs(C)) && Math.abs(p - F) <= Rt * Math.max(1, Math.abs(p), Math.abs(F)) && Math.abs(d - X) <= Rt * Math.max(1, Math.abs(d), Math.abs(X)) && Math.abs(m - me) <= Rt * Math.max(1, Math.abs(m), Math.abs(me)) && Math.abs(_ - Ie) <= Rt * Math.max(1, Math.abs(_), Math.abs(Ie)) && Math.abs(x - ge) <= Rt * Math.max(1, Math.abs(x), Math.abs(ge)) && Math.abs(b - be) <= Rt * Math.max(1, Math.abs(b), Math.abs(be)) && Math.abs(T -
|
|
9544
|
+
var r = n[0], a = n[1], l = n[2], p = n[3], d = n[4], m = n[5], _ = n[6], x = n[7], b = n[8], T = n[9], I = n[10], E = n[11], A = n[12], D = n[13], O = n[14], $ = n[15], re = t[0], W = t[1], C = t[2], F = t[3], X = t[4], me = t[5], Ie = t[6], ge = t[7], be = t[8], Ae = t[9], Ce = t[10], ze = t[11], Me = t[12], Ue = t[13], Ye = t[14], Ke = t[15];
|
|
9545
|
+
return Math.abs(r - re) <= Rt * Math.max(1, Math.abs(r), Math.abs(re)) && Math.abs(a - W) <= Rt * Math.max(1, Math.abs(a), Math.abs(W)) && Math.abs(l - C) <= Rt * Math.max(1, Math.abs(l), Math.abs(C)) && Math.abs(p - F) <= Rt * Math.max(1, Math.abs(p), Math.abs(F)) && Math.abs(d - X) <= Rt * Math.max(1, Math.abs(d), Math.abs(X)) && Math.abs(m - me) <= Rt * Math.max(1, Math.abs(m), Math.abs(me)) && Math.abs(_ - Ie) <= Rt * Math.max(1, Math.abs(_), Math.abs(Ie)) && Math.abs(x - ge) <= Rt * Math.max(1, Math.abs(x), Math.abs(ge)) && Math.abs(b - be) <= Rt * Math.max(1, Math.abs(b), Math.abs(be)) && Math.abs(T - Ae) <= Rt * Math.max(1, Math.abs(T), Math.abs(Ae)) && Math.abs(I - Ce) <= Rt * Math.max(1, Math.abs(I), Math.abs(Ce)) && Math.abs(E - ze) <= Rt * Math.max(1, Math.abs(E), Math.abs(ze)) && Math.abs(A - Me) <= Rt * Math.max(1, Math.abs(A), Math.abs(Me)) && Math.abs(D - Ue) <= Rt * Math.max(1, Math.abs(D), Math.abs(Ue)) && Math.abs(O - Ye) <= Rt * Math.max(1, Math.abs(O), Math.abs(Ye)) && Math.abs($ - Ke) <= Rt * Math.max(1, Math.abs($), Math.abs(Ke));
|
|
9545
9546
|
}, S.c2 = function(n, t) {
|
|
9546
9547
|
return n[0] = t[0], n[1] = t[1], n[2] = t[2], n[3] = t[3], n[4] = t[4], n[5] = t[5], n[6] = t[6], n[7] = t[7], n[8] = t[8], n[9] = t[9], n[10] = t[10], n[11] = t[11], n[12] = t[12], n[13] = t[13], n[14] = t[14], n[15] = t[15], n;
|
|
9547
9548
|
}, S.c3 = (n) => n.type === "symbol", S.c4 = (n) => n.type === "circle", S.c5 = (n) => n.type === "heatmap", S.c6 = (n) => n.type === "line", S.c7 = (n) => n.type === "fill", S.c8 = (n) => n.type === "fill-extrusion", S.c9 = (n) => n.type === "hillshade", S.cA = Zu, S.cB = Wu, S.cC = vl, S.cD = Ju, S.cE = class {
|
|
@@ -9602,7 +9603,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9602
9603
|
const a = [];
|
|
9603
9604
|
for (const l in r) a.push(r[l]);
|
|
9604
9605
|
return a;
|
|
9605
|
-
}, S.cu = Ne, S.cv = Qp, S.cw = td, S.cx =
|
|
9606
|
+
}, S.cu = Ne, S.cv = Qp, S.cw = td, S.cx = Ap, S.cy = function(n) {
|
|
9606
9607
|
n.bucket.createArrays(), n.bucket.tilePixelRatio = Pt / (512 * n.bucket.overscaling), n.bucket.compareText = {}, n.bucket.iconsNeedLinear = !1;
|
|
9607
9608
|
const t = n.bucket.layers[0], r = t.layout, a = t._unevaluatedLayout._values, l = { layoutIconSize: a["icon-size"].possiblyEvaluate(new qt(n.bucket.zoom + 1), n.canonical), layoutTextSize: a["text-size"].possiblyEvaluate(new qt(n.bucket.zoom + 1), n.canonical), textMaxSize: a["text-size"].possiblyEvaluate(new qt(18)) };
|
|
9608
9609
|
if (n.bucket.textSizeData.kind === "composite") {
|
|
@@ -9615,7 +9616,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9615
9616
|
}
|
|
9616
9617
|
const p = r.get("text-line-height") * Ci, d = r.get("text-rotation-alignment") !== "viewport" && r.get("symbol-placement") !== "point", m = r.get("text-keep-upright"), _ = r.get("text-size");
|
|
9617
9618
|
for (const x of n.bucket.features) {
|
|
9618
|
-
const b = r.get("text-font").evaluate(x, {}, n.canonical).join(","), T = _.evaluate(x, {}, n.canonical), I = l.layoutTextSize.evaluate(x, {}, n.canonical),
|
|
9619
|
+
const b = r.get("text-font").evaluate(x, {}, n.canonical).join(","), T = _.evaluate(x, {}, n.canonical), I = l.layoutTextSize.evaluate(x, {}, n.canonical), E = l.layoutIconSize.evaluate(x, {}, n.canonical), A = { horizontal: {}, vertical: void 0 }, D = x.text;
|
|
9619
9620
|
let O, $ = [0, 0];
|
|
9620
9621
|
if (D) {
|
|
9621
9622
|
const C = D.toString(), F = r.get("text-letter-spacing").evaluate(x, {}, n.canonical) * Ci, X = Su(C) ? F : 0, me = r.get("text-anchor").evaluate(x, {}, n.canonical), Ie = dd(t, x, n.canonical);
|
|
@@ -9624,24 +9625,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9624
9625
|
$ = Ce ? pd(me, [Ce * Ci, hh]) : r.get("text-offset").evaluate(x, {}, n.canonical).map((ze) => ze * Ci);
|
|
9625
9626
|
}
|
|
9626
9627
|
let ge = d ? "center" : r.get("text-justify").evaluate(x, {}, n.canonical);
|
|
9627
|
-
const be = r.get("symbol-placement") === "point" ? r.get("text-max-width").evaluate(x, {}, n.canonical) * Ci : 1 / 0,
|
|
9628
|
-
n.bucket.allowVerticalPlacement && eo(C) && (
|
|
9628
|
+
const be = r.get("symbol-placement") === "point" ? r.get("text-max-width").evaluate(x, {}, n.canonical) * Ci : 1 / 0, Ae = () => {
|
|
9629
|
+
n.bucket.allowVerticalPlacement && eo(C) && (A.vertical = Nc(D, n.glyphMap, n.glyphPositions, n.imagePositions, b, be, p, me, "left", X, $, S.al.vertical, !0, I, T));
|
|
9629
9630
|
};
|
|
9630
9631
|
if (!d && Ie) {
|
|
9631
9632
|
const Ce = /* @__PURE__ */ new Set();
|
|
9632
9633
|
if (ge === "auto") for (let Me = 0; Me < Ie.values.length; Me += 2) Ce.add(ph(Ie.values[Me]));
|
|
9633
9634
|
else Ce.add(ge);
|
|
9634
9635
|
let ze = !1;
|
|
9635
|
-
for (const Me of Ce) if (!
|
|
9636
|
+
for (const Me of Ce) if (!A.horizontal[Me]) if (ze) A.horizontal[Me] = A.horizontal[0];
|
|
9636
9637
|
else {
|
|
9637
9638
|
const Ue = Nc(D, n.glyphMap, n.glyphPositions, n.imagePositions, b, be, p, "center", Me, X, $, S.al.horizontal, !1, I, T);
|
|
9638
|
-
Ue && (
|
|
9639
|
+
Ue && (A.horizontal[Me] = Ue, ze = Ue.positionedLines.length === 1);
|
|
9639
9640
|
}
|
|
9640
|
-
|
|
9641
|
+
Ae();
|
|
9641
9642
|
} else {
|
|
9642
9643
|
ge === "auto" && (ge = ph(me));
|
|
9643
9644
|
const Ce = Nc(D, n.glyphMap, n.glyphPositions, n.imagePositions, b, be, p, me, ge, X, $, S.al.horizontal, !1, I, T);
|
|
9644
|
-
Ce && (
|
|
9645
|
+
Ce && (A.horizontal[ge] = Ce), Ae(), eo(C) && d && m && (A.vertical = Nc(D, n.glyphMap, n.glyphPositions, n.imagePositions, b, be, p, me, ge, X, $, S.al.vertical, !1, I, T));
|
|
9645
9646
|
}
|
|
9646
9647
|
}
|
|
9647
9648
|
let re = !1;
|
|
@@ -9649,8 +9650,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9649
9650
|
const C = n.imageMap[x.icon.name];
|
|
9650
9651
|
C && (O = gm(n.imagePositions[x.icon.name], r.get("icon-offset").evaluate(x, {}, n.canonical), r.get("icon-anchor").evaluate(x, {}, n.canonical)), re = !!C.sdf, n.bucket.sdfIcons === void 0 ? n.bucket.sdfIcons = re : n.bucket.sdfIcons !== re && ci("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (C.pixelRatio !== n.bucket.pixelRatio || r.get("icon-rotate").constantOr(1) !== 0) && (n.bucket.iconsNeedLinear = !0));
|
|
9651
9652
|
}
|
|
9652
|
-
const W = md(
|
|
9653
|
-
n.bucket.iconsInText = !!W && W.iconsInText, (W || O) && Dm(n.bucket, x,
|
|
9653
|
+
const W = md(A.horizontal) || A.vertical;
|
|
9654
|
+
n.bucket.iconsInText = !!W && W.iconsInText, (W || O) && Dm(n.bucket, x, A, O, n.imageMap, l, I, E, $, re, n.canonical, n.subdivisionGranularity);
|
|
9654
9655
|
}
|
|
9655
9656
|
n.showCollisionBoxes && n.bucket.generateCollisionDebugBuffers();
|
|
9656
9657
|
}, S.cz = Xu, S.d = le, S.e = fi, S.f = (n) => c(void 0, void 0, void 0, function* () {
|
|
@@ -9672,7 +9673,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9672
9673
|
a.src = n.byteLength ? URL.createObjectURL(l) : nn;
|
|
9673
9674
|
}), S.i = mr, S.j = (n, t) => _i(fi(n, { type: "json" }), t), S.k = H, S.l = N, S.m = _i, S.n = (n, t) => _i(fi(n, { type: "arrayBuffer" }), t), S.o = function(n) {
|
|
9674
9675
|
return new Ju(n).readFields(nm, []);
|
|
9675
|
-
}, S.p =
|
|
9676
|
+
}, S.p = Ep, S.q = dl, S.r = yi, S.s = mn, S.t = Ks, S.u = dt, S.v = j, S.w = ci, S.x = Qo, S.y = ba, S.z = function([n, t, r]) {
|
|
9676
9677
|
return t += 90, t *= Math.PI / 180, r *= Math.PI / 180, { x: n * Math.cos(t) * Math.sin(r), y: n * Math.sin(t) * Math.sin(r), z: n * Math.cos(r) };
|
|
9677
9678
|
};
|
|
9678
9679
|
}), we("worker", ["./shared"], function(S) {
|
|
@@ -9876,7 +9877,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9876
9877
|
B && B[N] && delete B[N];
|
|
9877
9878
|
}
|
|
9878
9879
|
}
|
|
9879
|
-
var pe, je,
|
|
9880
|
+
var pe, je, At = function() {
|
|
9880
9881
|
if (je) return pe;
|
|
9881
9882
|
function le(B, N) {
|
|
9882
9883
|
if (B.length !== 0) {
|
|
@@ -9900,7 +9901,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9900
9901
|
else if (j === "MultiPolygon") for (te = 0; te < N.coordinates.length; te++) le(N.coordinates[te], H);
|
|
9901
9902
|
return N;
|
|
9902
9903
|
};
|
|
9903
|
-
}(), pi = S.cH(
|
|
9904
|
+
}(), pi = S.cH(At);
|
|
9904
9905
|
const di = S.cC.VectorTileFeature.prototype.toGeoJSON;
|
|
9905
9906
|
class Kt {
|
|
9906
9907
|
constructor(R) {
|
|
@@ -10831,9 +10832,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10831
10832
|
}
|
|
10832
10833
|
pe.docStyle = typeof window < "u" && window.document && window.document.documentElement.style, pe.selectProp = pe.testProp(["userSelect", "MozUserSelect", "WebkitUserSelect", "msUserSelect"]), pe.transformProp = pe.testProp(["transform", "WebkitTransform"]);
|
|
10833
10834
|
const je = { supported: !1, testSupport: function(u) {
|
|
10834
|
-
!di && pi && (Kt ? Nt(u) :
|
|
10835
|
+
!di && pi && (Kt ? Nt(u) : At = u);
|
|
10835
10836
|
} };
|
|
10836
|
-
let
|
|
10837
|
+
let At, pi, di = !1, Kt = !1;
|
|
10837
10838
|
function Nt(u) {
|
|
10838
10839
|
const e = u.createTexture();
|
|
10839
10840
|
u.bindTexture(u.TEXTURE_2D, e);
|
|
@@ -10846,9 +10847,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10846
10847
|
}
|
|
10847
10848
|
var gt;
|
|
10848
10849
|
typeof document < "u" && (pi = document.createElement("img"), pi.onload = () => {
|
|
10849
|
-
|
|
10850
|
+
At && Nt(At), At = null, Kt = !0;
|
|
10850
10851
|
}, pi.onerror = () => {
|
|
10851
|
-
di = !0,
|
|
10852
|
+
di = !0, At = null;
|
|
10852
10853
|
}, pi.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), function(u) {
|
|
10853
10854
|
let e, i, s, o;
|
|
10854
10855
|
u.resetRequestQueue = () => {
|
|
@@ -12408,8 +12409,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12408
12409
|
const Be = Math.min(ve, w);
|
|
12409
12410
|
if (ee.wrap = f.getWrap(h, Te, ee.wrap), ee.zoom >= Be) {
|
|
12410
12411
|
if (ee.zoom < v) continue;
|
|
12411
|
-
const Re = P - ee.zoom,
|
|
12412
|
-
Y.push({ tileID: new c.Y(ee.zoom === w ? ut : ee.zoom, ee.wrap, ee.zoom, ne, ie), distanceSq: c.ai([k[0] - 0.5 - ne, k[1] - 0.5 - ie]), tileDistanceToCamera: Math.sqrt(
|
|
12412
|
+
const Re = P - ee.zoom, Ee = z[0] - 0.5 - (ne << Re), Ve = z[1] - 0.5 - (ie << Re), ut = e.reparseOverscaled ? Math.max(ee.zoom, ve) : ee.zoom;
|
|
12413
|
+
Y.push({ tileID: new c.Y(ee.zoom === w ? ut : ee.zoom, ee.wrap, ee.zoom, ne, ie), distanceSq: c.ai([k[0] - 0.5 - ne, k[1] - 0.5 - ie]), tileDistanceToCamera: Math.sqrt(Ee * Ee + Ve * Ve) });
|
|
12413
12414
|
} else for (let Re = 0; Re < 4; Re++) J.push({ zoom: ee.zoom + 1, x: (ne << 1) + Re % 2, y: (ie << 1) + (Re >> 1), wrap: ee.wrap, fullyVisible: fe });
|
|
12414
12415
|
}
|
|
12415
12416
|
return Y.sort((ee, ne) => ee.distanceSq - ne.distanceSq).map((ee) => ee.tileID);
|
|
@@ -12973,17 +12974,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12973
12974
|
for (let ee = 0; ee < q.length; ee++) {
|
|
12974
12975
|
const ne = q.get(ee);
|
|
12975
12976
|
if (ne.hidden || ne.writingMode === c.al.vertical && !Y) {
|
|
12976
|
-
|
|
12977
|
+
Et(ne.numGlyphs, U);
|
|
12977
12978
|
continue;
|
|
12978
12979
|
}
|
|
12979
12980
|
Y = !1;
|
|
12980
12981
|
const ie = new c.P(ne.anchorX, ne.anchorY), fe = { getElevation: M, pitchedLabelPlaneMatrix: s, lineVertexArray: Z, pitchWithMap: h, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, transform: e.transform, tileAnchorPoint: ie, unwrappedTileID: y, width: v, height: w, translation: P }, Te = ot(ne.anchorX, ne.anchorY, fe);
|
|
12981
12982
|
if (!ht(Te.point, V)) {
|
|
12982
|
-
|
|
12983
|
+
Et(ne.numGlyphs, U);
|
|
12983
12984
|
continue;
|
|
12984
12985
|
}
|
|
12985
12986
|
const ye = bt(e.transform.cameraToCenterDistance, Te.signedDistanceFromCamera), xe = c.am(z, k, ne), ve = h ? xe * e.transform.getPitchedTextCorrection(ne.anchorX, ne.anchorY, y) / ye : xe * ye, Be = Ge({ projectionContext: fe, pitchedLabelPlaneMatrixInverse: o, symbol: ne, fontSize: ve, flip: !1, keepUpright: f, glyphOffsetArray: u.glyphOffsetArray, dynamicLayoutVertexArray: U, aspectRatio: J, rotateToLine: g });
|
|
12986
|
-
Y = Be.useVertical, (Be.notEnoughRoom || Y || Be.needsFlipping && Ge({ projectionContext: fe, pitchedLabelPlaneMatrixInverse: o, symbol: ne, fontSize: ve, flip: !0, keepUpright: f, glyphOffsetArray: u.glyphOffsetArray, dynamicLayoutVertexArray: U, aspectRatio: J, rotateToLine: g }).notEnoughRoom) &&
|
|
12987
|
+
Y = Be.useVertical, (Be.notEnoughRoom || Y || Be.needsFlipping && Ge({ projectionContext: fe, pitchedLabelPlaneMatrixInverse: o, symbol: ne, fontSize: ve, flip: !0, keepUpright: f, glyphOffsetArray: u.glyphOffsetArray, dynamicLayoutVertexArray: U, aspectRatio: J, rotateToLine: g }).notEnoughRoom) && Et(ne.numGlyphs, U);
|
|
12987
12988
|
}
|
|
12988
12989
|
i ? u.text.dynamicLayoutVertexBuffer.updateData(U) : u.icon.dynamicLayoutVertexBuffer.updateData(U);
|
|
12989
12990
|
}
|
|
@@ -13084,7 +13085,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13084
13085
|
return ee.push(ie), { point: ie, angle: y ? fe : 0, path: ee };
|
|
13085
13086
|
}
|
|
13086
13087
|
const He = new Float32Array([-1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0]);
|
|
13087
|
-
function
|
|
13088
|
+
function Et(u, e) {
|
|
13088
13089
|
for (let i = 0; i < u; i++) {
|
|
13089
13090
|
const s = e.length;
|
|
13090
13091
|
e.resize(s + 4), e.float32.set(He, 3 * s);
|
|
@@ -13119,7 +13120,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13119
13120
|
let Re = [];
|
|
13120
13121
|
for (let ut = ve.path.length - 1; ut >= 1; ut--) Re.push(ve.path[ut]);
|
|
13121
13122
|
for (let ut = 1; ut < Be.path.length; ut++) Re.push(Be.path[ut]);
|
|
13122
|
-
const
|
|
13123
|
+
const Ee = 2.5 * fe;
|
|
13123
13124
|
if (v) {
|
|
13124
13125
|
const ut = this.projectPathToScreenSpace(Re, J);
|
|
13125
13126
|
Re = ut.some((xt) => xt.signedDistanceFromCamera <= 0) ? [] : ut.map((xt) => xt.point);
|
|
@@ -13133,7 +13134,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13133
13134
|
for (const ut of Ve) {
|
|
13134
13135
|
xe.reset(ut, 0.25 * fe);
|
|
13135
13136
|
let xt = 0;
|
|
13136
|
-
xt = xe.length <= 0.5 * fe ? 1 : Math.ceil(xe.paddedLength /
|
|
13137
|
+
xt = xe.length <= 0.5 * fe ? 1 : Math.ceil(xe.paddedLength / Ee) + 1;
|
|
13137
13138
|
for (let Qt = 0; Qt < xt; Qt++) {
|
|
13138
13139
|
const jt = Qt / Math.max(xt - 1, 1), ei = xe.lerp(jt), ti = ei.x + ft, Vt = ei.y + ft;
|
|
13139
13140
|
V.push(ti, Vt, fe, 0);
|
|
@@ -13212,7 +13213,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13212
13213
|
let M = 1, z = 0, k = 0, V = 1;
|
|
13213
13214
|
const U = e.anchorPointX + g[0], Z = e.anchorPointY + g[1];
|
|
13214
13215
|
if (f && !h) {
|
|
13215
|
-
const Re = this.projectAndGetPerspectiveRatio(U + 1, Z, o, v, P),
|
|
13216
|
+
const Re = this.projectAndGetPerspectiveRatio(U + 1, Z, o, v, P), Ee = Re.x - y.x, Ve = Math.atan((Re.y - y.y) / Ee) + (Ee < 0 ? Math.PI : 0), ut = Math.sin(Ve), xt = Math.cos(Ve);
|
|
13216
13217
|
M = xt, z = ut, k = -ut, V = xt;
|
|
13217
13218
|
} else if (!f && h) {
|
|
13218
13219
|
const Re = tt(this.transform);
|
|
@@ -13222,11 +13223,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13222
13223
|
h && (q = U, J = Z, Y = Math.pow(2, -(this.transform.zoom - s.overscaledZ)), Y *= this.transform.getPitchedTextCorrection(U, Z, o), w || (Y *= c.ae(0.5 + y.signedDistanceFromCamera / this.transform.cameraToCenterDistance * 0.5, 0, 4))), w && (q += M * w.x * Y + k * w.y * Y, J += z * w.x * Y + V * w.y * Y);
|
|
13223
13224
|
const ee = e.x1 * Y, ne = e.x2 * Y, ie = (ee + ne) / 2, fe = e.y1 * Y, Te = e.y2 * Y, ye = (fe + Te) / 2, xe = [{ offsetX: ee, offsetY: fe }, { offsetX: ie, offsetY: fe }, { offsetX: ne, offsetY: fe }, { offsetX: ne, offsetY: ye }, { offsetX: ne, offsetY: Te }, { offsetX: ie, offsetY: Te }, { offsetX: ee, offsetY: Te }, { offsetX: ee, offsetY: ye }];
|
|
13224
13225
|
let ve = [];
|
|
13225
|
-
for (const { offsetX: Re, offsetY:
|
|
13226
|
+
for (const { offsetX: Re, offsetY: Ee } of xe) ve.push(new c.P(q + M * Re + k * Ee, J + z * Re + V * Ee));
|
|
13226
13227
|
let Be = !1;
|
|
13227
13228
|
if (h) {
|
|
13228
|
-
const Re = ve.map((
|
|
13229
|
-
Be = Re.some((
|
|
13229
|
+
const Re = ve.map((Ee) => this.projectAndGetPerspectiveRatio(Ee.x, Ee.y, o, v, P));
|
|
13230
|
+
Be = Re.some((Ee) => !Ee.isOccluded), ve = Re.map((Ee) => new c.P(Ee.x, Ee.y));
|
|
13230
13231
|
} else Be = !0;
|
|
13231
13232
|
return { box: c.ax(ve), allPointsOccluded: !Be };
|
|
13232
13233
|
}
|
|
@@ -13305,46 +13306,46 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13305
13306
|
placeLayerBucketPart(e, i, s) {
|
|
13306
13307
|
const { bucket: o, layout: h, translationText: f, translationIcon: g, unwrappedTileID: y, pitchedLabelPlaneMatrix: v, textPixelRatio: w, holdingForFade: P, collisionBoxArray: M, partiallyEvaluatedTextSize: z, collisionGroup: k } = e.parameters, V = h.get("text-optional"), U = h.get("icon-optional"), Z = c.aC(h, "text-overlap", "text-allow-overlap"), q = Z === "always", J = c.aC(h, "icon-overlap", "icon-allow-overlap"), Y = J === "always", ee = h.get("text-rotation-alignment") === "map", ne = h.get("text-pitch-alignment") === "map", ie = h.get("icon-text-fit") !== "none", fe = h.get("symbol-z-order") === "viewport-y", Te = q && (Y || !o.hasIconData() || U), ye = Y && (q || !o.hasTextData() || V);
|
|
13307
13308
|
!o.collisionArrays && M && o.deserializeCollisionBoxes(M);
|
|
13308
|
-
const xe = this.retainedQueryData[o.bucketInstanceId].tileID, ve = this._getTerrainElevationFunc(xe), Be = this.transform.getFastPathSimpleProjectionMatrix(xe), Re = (
|
|
13309
|
+
const xe = this.retainedQueryData[o.bucketInstanceId].tileID, ve = this._getTerrainElevationFunc(xe), Be = this.transform.getFastPathSimpleProjectionMatrix(xe), Re = (Ee, Ve, ut) => {
|
|
13309
13310
|
var xt, Qt;
|
|
13310
|
-
if (i[
|
|
13311
|
-
if (P) return void (this.placements[
|
|
13311
|
+
if (i[Ee.crossTileID]) return;
|
|
13312
|
+
if (P) return void (this.placements[Ee.crossTileID] = new ui(!1, !1, !1));
|
|
13312
13313
|
let jt = !1, ei = !1, ti = !0, Vt = null, zt = { box: null, placeable: !1, offscreen: null, occluded: !1 }, Ii = { placeable: !1 }, Li = null, Hi = null, kt = null, kn = 0, hn = 0, Dn = 0;
|
|
13313
|
-
Ve.textFeatureIndex ? kn = Ve.textFeatureIndex :
|
|
13314
|
+
Ve.textFeatureIndex ? kn = Ve.textFeatureIndex : Ee.useRuntimeCollisionCircles && (kn = Ee.featureIndex), Ve.verticalTextFeatureIndex && (hn = Ve.verticalTextFeatureIndex);
|
|
13314
13315
|
const Qn = Ve.textBox;
|
|
13315
13316
|
if (Qn) {
|
|
13316
13317
|
const Mr = (xi) => {
|
|
13317
13318
|
let vi = c.al.horizontal;
|
|
13318
13319
|
if (o.allowVerticalPlacement && !xi && this.prevPlacement) {
|
|
13319
|
-
const pr = this.prevPlacement.placedOrientations[
|
|
13320
|
-
pr && (this.placedOrientations[
|
|
13320
|
+
const pr = this.prevPlacement.placedOrientations[Ee.crossTileID];
|
|
13321
|
+
pr && (this.placedOrientations[Ee.crossTileID] = pr, vi = pr, this.markUsedOrientation(o, vi, Ee));
|
|
13321
13322
|
}
|
|
13322
13323
|
return vi;
|
|
13323
13324
|
}, Ln = (xi, vi) => {
|
|
13324
|
-
if (o.allowVerticalPlacement &&
|
|
13325
|
+
if (o.allowVerticalPlacement && Ee.numVerticalGlyphVertices > 0 && Ve.verticalTextBox) {
|
|
13325
13326
|
for (const pr of o.writingModes) if (pr === c.al.vertical ? (zt = vi(), Ii = zt) : zt = xi(), zt && zt.placeable) break;
|
|
13326
13327
|
} else zt = xi();
|
|
13327
|
-
}, bn =
|
|
13328
|
+
}, bn = Ee.textAnchorOffsetStartIndex, Bn = Ee.textAnchorOffsetEndIndex;
|
|
13328
13329
|
if (Bn === bn) {
|
|
13329
13330
|
const xi = (vi, pr) => {
|
|
13330
13331
|
const Ht = this.collisionIndex.placeCollisionBox(vi, Z, w, xe, y, ne, ee, f, k.predicate, ve, void 0, Be);
|
|
13331
|
-
return Ht && Ht.placeable && (this.markUsedOrientation(o, pr,
|
|
13332
|
+
return Ht && Ht.placeable && (this.markUsedOrientation(o, pr, Ee), this.placedOrientations[Ee.crossTileID] = pr), Ht;
|
|
13332
13333
|
};
|
|
13333
13334
|
Ln(() => xi(Qn, c.al.horizontal), () => {
|
|
13334
13335
|
const vi = Ve.verticalTextBox;
|
|
13335
|
-
return o.allowVerticalPlacement &&
|
|
13336
|
+
return o.allowVerticalPlacement && Ee.numVerticalGlyphVertices > 0 && vi ? xi(vi, c.al.vertical) : { box: null, offscreen: null };
|
|
13336
13337
|
}), Mr(zt && zt.placeable);
|
|
13337
13338
|
} else {
|
|
13338
|
-
let xi = c.aB[(Qt = (xt = this.prevPlacement) === null || xt === void 0 ? void 0 : xt.variableOffsets[
|
|
13339
|
-
const vi = (Ht, no,
|
|
13340
|
-
const zc = Ht.x2 - Ht.x1, zu = Ht.y2 - Ht.y1, ul =
|
|
13339
|
+
let xi = c.aB[(Qt = (xt = this.prevPlacement) === null || xt === void 0 ? void 0 : xt.variableOffsets[Ee.crossTileID]) === null || Qt === void 0 ? void 0 : Qt.anchor];
|
|
13340
|
+
const vi = (Ht, no, Ac) => {
|
|
13341
|
+
const zc = Ht.x2 - Ht.x1, zu = Ht.y2 - Ht.y1, ul = Ee.textBoxScale, us = ie && J === "never" ? no : null;
|
|
13341
13342
|
let Ur = null, pn = Z === "never" ? 1 : 2, Vr = "never";
|
|
13342
13343
|
xi && pn++;
|
|
13343
13344
|
for (let wn = 0; wn < pn; wn++) {
|
|
13344
13345
|
for (let ao = bn; ao < Bn; ao++) {
|
|
13345
13346
|
const Fn = o.textAnchorOffsets.get(ao);
|
|
13346
13347
|
if (xi && Fn.textAnchor !== xi) continue;
|
|
13347
|
-
const hl = this.attemptAnchorPlacement(Fn, Ht, zc, zu, ul, ee, ne, w, xe, y, k, Vr,
|
|
13348
|
+
const hl = this.attemptAnchorPlacement(Fn, Ht, zc, zu, ul, ee, ne, w, xe, y, k, Vr, Ee, o, Ac, f, g, us, ve);
|
|
13348
13349
|
if (hl && (Ur = hl.placedGlyphBoxes, Ur && Ur.placeable)) return jt = !0, Vt = hl.shift, Ur;
|
|
13349
13350
|
}
|
|
13350
13351
|
xi ? xi = null : Vr = Z;
|
|
@@ -13353,38 +13354,38 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13353
13354
|
};
|
|
13354
13355
|
Ln(() => vi(Qn, Ve.iconBox, c.al.horizontal), () => {
|
|
13355
13356
|
const Ht = Ve.verticalTextBox;
|
|
13356
|
-
return o.allowVerticalPlacement && (!zt || !zt.placeable) &&
|
|
13357
|
+
return o.allowVerticalPlacement && (!zt || !zt.placeable) && Ee.numVerticalGlyphVertices > 0 && Ht ? vi(Ht, Ve.verticalIconBox, c.al.vertical) : { box: null, occluded: !0, offscreen: null };
|
|
13357
13358
|
}), zt && (jt = zt.placeable, ti = zt.offscreen);
|
|
13358
13359
|
const pr = Mr(zt && zt.placeable);
|
|
13359
13360
|
if (!jt && this.prevPlacement) {
|
|
13360
|
-
const Ht = this.prevPlacement.variableOffsets[
|
|
13361
|
-
Ht && (this.variableOffsets[
|
|
13361
|
+
const Ht = this.prevPlacement.variableOffsets[Ee.crossTileID];
|
|
13362
|
+
Ht && (this.variableOffsets[Ee.crossTileID] = Ht, this.markUsedJustification(o, Ht.anchor, Ee, pr));
|
|
13362
13363
|
}
|
|
13363
13364
|
}
|
|
13364
13365
|
}
|
|
13365
|
-
if (Li = zt, jt = Li && Li.placeable, ti = Li && Li.offscreen,
|
|
13366
|
-
const Mr = o.text.placedSymbolArray.get(
|
|
13367
|
-
Hi = this.collisionIndex.placeCollisionCircles(Z, Mr, o.lineVertexArray, o.glyphOffsetArray, Ln, y, v, s, ne, k.predicate,
|
|
13366
|
+
if (Li = zt, jt = Li && Li.placeable, ti = Li && Li.offscreen, Ee.useRuntimeCollisionCircles) {
|
|
13367
|
+
const Mr = o.text.placedSymbolArray.get(Ee.centerJustifiedTextSymbolIndex), Ln = c.am(o.textSizeData, z, Mr), bn = h.get("text-padding");
|
|
13368
|
+
Hi = this.collisionIndex.placeCollisionCircles(Z, Mr, o.lineVertexArray, o.glyphOffsetArray, Ln, y, v, s, ne, k.predicate, Ee.collisionCircleDiameter, bn, f, ve), Hi.circles.length && Hi.collisionDetected && !s && c.w("Collisions detected, but collision boxes are not shown"), jt = q || Hi.circles.length > 0 && !Hi.collisionDetected, ti = ti && Hi.offscreen;
|
|
13368
13369
|
}
|
|
13369
13370
|
if (Ve.iconFeatureIndex && (Dn = Ve.iconFeatureIndex), Ve.iconBox) {
|
|
13370
13371
|
const Mr = (Ln) => this.collisionIndex.placeCollisionBox(Ln, J, w, xe, y, ne, ee, g, k.predicate, ve, ie && Vt ? Vt : void 0, Be);
|
|
13371
13372
|
Ii && Ii.placeable && Ve.verticalIconBox ? (kt = Mr(Ve.verticalIconBox), ei = kt.placeable) : (kt = Mr(Ve.iconBox), ei = kt.placeable), ti = ti && kt.offscreen;
|
|
13372
13373
|
}
|
|
13373
|
-
const cs = V ||
|
|
13374
|
+
const cs = V || Ee.numHorizontalGlyphVertices === 0 && Ee.numVerticalGlyphVertices === 0, Rn = U || Ee.numIconVertices === 0;
|
|
13374
13375
|
cs || Rn ? Rn ? cs || (ei = ei && jt) : jt = ei && jt : ei = jt = ei && jt;
|
|
13375
13376
|
const ea = ei && kt.placeable;
|
|
13376
|
-
if (jt && Li.placeable && this.collisionIndex.insertCollisionBox(Li.box, Z, h.get("text-ignore-placement"), o.bucketInstanceId, Ii && Ii.placeable && hn ? hn : kn, k.ID), ea && this.collisionIndex.insertCollisionBox(kt.box, J, h.get("icon-ignore-placement"), o.bucketInstanceId, Dn, k.ID), Hi && jt && this.collisionIndex.insertCollisionCircles(Hi.circles, Z, h.get("text-ignore-placement"), o.bucketInstanceId, kn, k.ID), s && this.storeCollisionData(o.bucketInstanceId, ut, Ve, Li, kt, Hi),
|
|
13377
|
+
if (jt && Li.placeable && this.collisionIndex.insertCollisionBox(Li.box, Z, h.get("text-ignore-placement"), o.bucketInstanceId, Ii && Ii.placeable && hn ? hn : kn, k.ID), ea && this.collisionIndex.insertCollisionBox(kt.box, J, h.get("icon-ignore-placement"), o.bucketInstanceId, Dn, k.ID), Hi && jt && this.collisionIndex.insertCollisionCircles(Hi.circles, Z, h.get("text-ignore-placement"), o.bucketInstanceId, kn, k.ID), s && this.storeCollisionData(o.bucketInstanceId, ut, Ve, Li, kt, Hi), Ee.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
|
13377
13378
|
if (o.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
|
|
13378
|
-
this.placements[
|
|
13379
|
+
this.placements[Ee.crossTileID] = new ui((jt || Te) && !(Li != null && Li.occluded), (ei || ye) && !(kt != null && kt.occluded), ti || o.justReloaded), i[Ee.crossTileID] = !0;
|
|
13379
13380
|
};
|
|
13380
13381
|
if (fe) {
|
|
13381
13382
|
if (e.symbolInstanceStart !== 0) throw new Error("bucket.bucketInstanceId should be 0");
|
|
13382
|
-
const
|
|
13383
|
-
for (let Ve =
|
|
13384
|
-
const ut =
|
|
13383
|
+
const Ee = o.getSortedSymbolIndexes(-this.transform.bearingInRadians);
|
|
13384
|
+
for (let Ve = Ee.length - 1; Ve >= 0; --Ve) {
|
|
13385
|
+
const ut = Ee[Ve];
|
|
13385
13386
|
Re(o.symbolInstances.get(ut), o.collisionArrays[ut], ut);
|
|
13386
13387
|
}
|
|
13387
|
-
} else for (let
|
|
13388
|
+
} else for (let Ee = e.symbolInstanceStart; Ee < e.symbolInstanceEnd; Ee++) Re(o.symbolInstances.get(Ee), o.collisionArrays[Ee], Ee);
|
|
13388
13389
|
o.justReloaded = !1;
|
|
13389
13390
|
}
|
|
13390
13391
|
storeCollisionData(e, i, s, o, h, f) {
|
|
@@ -13460,8 +13461,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13460
13461
|
}), q.verticalPlacedTextSymbolIndex >= 0 && (e.text.placedSymbolArray.get(q.verticalPlacedTextSymbolIndex).hidden = Be || ye ? 1 : 0);
|
|
13461
13462
|
const Re = this.variableOffsets[q.crossTileID];
|
|
13462
13463
|
Re && this.markUsedJustification(e, Re.anchor, q, fe);
|
|
13463
|
-
const
|
|
13464
|
-
|
|
13464
|
+
const Ee = this.placedOrientations[q.crossTileID];
|
|
13465
|
+
Ee && (this.markUsedJustification(e, "left", q, Ee), this.markUsedOrientation(e, Ee, q));
|
|
13465
13466
|
}
|
|
13466
13467
|
if (ie) {
|
|
13467
13468
|
const ve = wo(ne.icon), Be = !(z && q.verticalPlacedIconSymbolIndex && Te);
|
|
@@ -13475,18 +13476,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13475
13476
|
if (ve.textBox || ve.verticalTextBox) {
|
|
13476
13477
|
let Re = !0;
|
|
13477
13478
|
if (w) {
|
|
13478
|
-
const
|
|
13479
|
-
|
|
13479
|
+
const Ee = this.variableOffsets[ee];
|
|
13480
|
+
Ee ? (Be = yn(Ee.anchor, Ee.width, Ee.height, Ee.textOffset, Ee.textBoxScale), P && Be._rotate(M ? -this.transform.bearingInRadians : this.transform.bearingInRadians)) : Re = !1;
|
|
13480
13481
|
}
|
|
13481
13482
|
if (ve.textBox || ve.verticalTextBox) {
|
|
13482
|
-
let
|
|
13483
|
-
ve.textBox && (
|
|
13483
|
+
let Ee;
|
|
13484
|
+
ve.textBox && (Ee = Te), ve.verticalTextBox && (Ee = ye), bo(e.textCollisionBox.collisionVertexArray, ne.text.placed, !Re || Ee, xe.text, Be.x, Be.y);
|
|
13484
13485
|
}
|
|
13485
13486
|
}
|
|
13486
13487
|
if (ve.iconBox || ve.verticalIconBox) {
|
|
13487
13488
|
const Re = !!(!ye && ve.verticalIconBox);
|
|
13488
|
-
let
|
|
13489
|
-
ve.iconBox && (
|
|
13489
|
+
let Ee;
|
|
13490
|
+
ve.iconBox && (Ee = Re), ve.verticalIconBox && (Ee = !Re), bo(e.iconCollisionBox.collisionVertexArray, ne.icon.placed, Ee, xe.icon, z ? Be.x : 0, z ? Be.y : 0);
|
|
13490
13491
|
}
|
|
13491
13492
|
}
|
|
13492
13493
|
}
|
|
@@ -15619,15 +15620,15 @@ uniform ${w} ${P} u_${M};
|
|
|
15619
15620
|
}
|
|
15620
15621
|
return new c.Q(0, e);
|
|
15621
15622
|
}
|
|
15622
|
-
function
|
|
15623
|
+
function En(u) {
|
|
15623
15624
|
return Math.cos(u * Math.PI / 180);
|
|
15624
15625
|
}
|
|
15625
15626
|
function Ri(u, e) {
|
|
15626
|
-
const i =
|
|
15627
|
+
const i = En(u), s = En(e);
|
|
15627
15628
|
return c.ah(s / i);
|
|
15628
15629
|
}
|
|
15629
15630
|
function ws(u, e) {
|
|
15630
|
-
const i = u.rotate(e.bearingInRadians), s = e.zoom + Ri(e.center.lat, 0), o = c.bc(1 /
|
|
15631
|
+
const i = u.rotate(e.bearingInRadians), s = e.zoom + Ri(e.center.lat, 0), o = c.bc(1 / En(e.center.lat), 1 / En(Math.min(Math.abs(e.center.lat), 60)), c.bf(s, 7, 3, 0, 1)), h = 360 / Na({ worldSize: e.worldSize, center: { lat: e.center.lat } });
|
|
15631
15632
|
return new c.Q(e.center.lng - i.x * h * o, c.ae(e.center.lat + i.y * h, -85.051129, c.af));
|
|
15632
15633
|
}
|
|
15633
15634
|
function Ts(u) {
|
|
@@ -16600,7 +16601,7 @@ uniform ${w} ${P} u_${M};
|
|
|
16600
16601
|
}
|
|
16601
16602
|
}
|
|
16602
16603
|
const Ms = (u, e) => c.x(u, e && e.filter((i) => i.identifier !== "source.canvas")), cu = c.bw();
|
|
16603
|
-
class
|
|
16604
|
+
class Eo extends c.E {
|
|
16604
16605
|
constructor(e, i = {}) {
|
|
16605
16606
|
super(), this._rtlPluginLoaded = () => {
|
|
16606
16607
|
for (const s in this.sourceCaches) {
|
|
@@ -17366,7 +17367,7 @@ uniform ${w} ${P} u_${M};
|
|
|
17366
17367
|
o.properties.get("anchor") === "viewport" && c.bO(g, u.transform.bearingInRadians), c.bP(f, f, g);
|
|
17367
17368
|
const y = u.transform.transformLightDirection(f), v = o.properties.get("color");
|
|
17368
17369
|
return { u_lightpos: f, u_lightpos_globe: y, u_lightintensity: o.properties.get("intensity"), u_lightcolor: [v.r, v.g, v.b], u_vertical_gradient: +e, u_opacity: i, u_fill_translate: s };
|
|
17369
|
-
}, ln = (u, e, i, s, o, h, f) => c.e(Cs(u, e, i, s), Is(h, u, f), { u_height_factor: -Math.pow(2, o.overscaledZ) / f.tileSize / 8 }), Gl = (u, e, i, s) => c.e(Is(e, u, i), { u_fill_translate: s }),
|
|
17370
|
+
}, ln = (u, e, i, s, o, h, f) => c.e(Cs(u, e, i, s), Is(h, u, f), { u_height_factor: -Math.pow(2, o.overscaledZ) / f.tileSize / 8 }), Gl = (u, e, i, s) => c.e(Is(e, u, i), { u_fill_translate: s }), Ao = (u, e) => ({ u_world: u, u_fill_translate: e }), $a = (u, e, i, s, o) => c.e(Gl(u, e, i, o), { u_world: s }), Ga = (u, e, i, s, o) => {
|
|
17370
17371
|
const h = u.transform;
|
|
17371
17372
|
let f, g, y = 0;
|
|
17372
17373
|
if (i.paint.get("circle-pitch-alignment") === "map") {
|
|
@@ -17374,7 +17375,7 @@ uniform ${w} ${P} u_${M};
|
|
|
17374
17375
|
f = !0, g = [v, v], y = v / (c.Z * Math.pow(2, e.tileID.overscaledZ)) * 2 * Math.PI * o;
|
|
17375
17376
|
} else f = !1, g = h.pixelsToGLUnits;
|
|
17376
17377
|
return { u_camera_to_center_distance: h.cameraToCenterDistance, u_scale_with_map: +(i.paint.get("circle-pitch-scale") === "map"), u_pitch_with_map: +f, u_device_pixel_ratio: u.pixelRatio, u_extrude_scale: g, u_globe_extrude_scale: y, u_translate: s };
|
|
17377
|
-
}, du = (u) => ({ u_pixel_extrude_scale: [1 / u.width, 1 / u.height] }),
|
|
17378
|
+
}, du = (u) => ({ u_pixel_extrude_scale: [1 / u.width, 1 / u.height] }), Es = (u) => ({ u_viewport_size: [u.width, u.height] }), ql = (u, e = 1) => ({ u_color: u, u_overlay: 0, u_overlay_scale: e }), Hn = (u, e, i, s) => {
|
|
17378
17379
|
const o = c.az(u, 1, e) / (c.Z * Math.pow(2, u.tileID.overscaledZ)) * 2 * Math.PI * s;
|
|
17379
17380
|
return { u_extrude_scale: c.az(u, 1, e), u_intensity: i, u_globe_extrude_scale: o };
|
|
17380
17381
|
}, Hl = (u, e, i, s) => {
|
|
@@ -17414,10 +17415,10 @@ uniform ${w} ${P} u_${M};
|
|
|
17414
17415
|
}
|
|
17415
17416
|
const qa = (u, e, i, s) => {
|
|
17416
17417
|
const o = u.transform;
|
|
17417
|
-
return { u_translation:
|
|
17418
|
+
return { u_translation: An(u, e, i), u_ratio: s / c.az(e, 1, o.zoom), u_device_pixel_ratio: u.pixelRatio, u_units_to_pixels: [1 / o.pixelsToGLUnits[0], 1 / o.pixelsToGLUnits[1]] };
|
|
17418
17419
|
}, Kl = (u, e, i, s, o) => c.e(qa(u, e, i, s), { u_image: 0, u_image_height: o }), Yl = (u, e, i, s, o) => {
|
|
17419
17420
|
const h = u.transform, f = zo(e, h);
|
|
17420
|
-
return { u_translation:
|
|
17421
|
+
return { u_translation: An(u, e, i), u_texsize: e.imageAtlasTexture.size, u_ratio: s / c.az(e, 1, h.zoom), u_device_pixel_ratio: u.pixelRatio, u_image: 0, u_scale: [f, o.fromScale, o.toScale], u_fade: o.t, u_units_to_pixels: [1 / h.pixelsToGLUnits[0], 1 / h.pixelsToGLUnits[1]] };
|
|
17421
17422
|
}, Jl = (u, e, i, s, o, h) => {
|
|
17422
17423
|
const f = u.lineAtlas, g = zo(e, u.transform), y = i.layout.get("line-cap") === "round", v = f.getDash(o.from, y), w = f.getDash(o.to, y), P = v.width * h.fromScale, M = w.width * h.toScale;
|
|
17423
17424
|
return c.e(qa(u, e, i, s), { u_patternscale_a: [g / P, -v.height / 2], u_patternscale_b: [g / M, -w.height / 2], u_sdfgamma: f.width / (256 * Math.min(P, M) * u.pixelRatio) / 2, u_image: 0, u_tex_y_a: v.y, u_tex_y_b: w.y, u_mix: h.t });
|
|
@@ -17425,7 +17426,7 @@ uniform ${w} ${P} u_${M};
|
|
|
17425
17426
|
function zo(u, e) {
|
|
17426
17427
|
return 1 / c.az(u, 1, e.tileZoom);
|
|
17427
17428
|
}
|
|
17428
|
-
function
|
|
17429
|
+
function An(u, e, i) {
|
|
17429
17430
|
return c.aA(u.transform, e, i.paint.get("line-translate"), i.paint.get("line-translate-anchor"));
|
|
17430
17431
|
}
|
|
17431
17432
|
const Ql = (u, e, i, s, o) => {
|
|
@@ -17443,7 +17444,7 @@ uniform ${w} ${P} u_${M};
|
|
|
17443
17444
|
}, tc = (u, e, i, s, o, h, f, g, y, v, w, P, M, z) => {
|
|
17444
17445
|
const k = f.transform;
|
|
17445
17446
|
return c.e(ha(u, e, i, s, o, h, f, g, y, v, w, P, z), { u_gamma_scale: s ? Math.cos(k.pitch * Math.PI / 180) * k.cameraToCenterDistance : 1, u_device_pixel_ratio: f.pixelRatio, u_is_halo: 1 });
|
|
17446
|
-
},
|
|
17447
|
+
}, As = (u, e, i, s, o, h, f, g, y, v, w, P, M) => c.e(tc(u, e, i, s, o, h, f, g, y, v, !0, w, 0, M), { u_texsize_icon: P, u_texture_icon: 1 }), mu = (u, e) => ({ u_opacity: u, u_color: e }), gu = (u, e, i, s, o) => c.e(function(h, f, g, y) {
|
|
17447
17448
|
const v = g.imageManager.getPattern(h.from.toString()), w = g.imageManager.getPattern(h.to.toString()), { width: P, height: M } = g.imageManager.getPixelSize(), z = Math.pow(2, y.tileID.overscaledZ), k = y.tileSize * Math.pow(2, g.transform.tileZoom) / z, V = k * (y.tileID.canonical.x + y.tileID.wrap * z), U = k * y.tileID.canonical.y;
|
|
17448
17449
|
return { u_image: 0, u_pattern_tl_a: v.tl, u_pattern_br_a: v.br, u_pattern_tl_b: w.tl, u_pattern_br_b: w.br, u_texsize: [P, M], u_mix: f.t, u_pattern_size_a: v.displaySize, u_pattern_size_b: w.displaySize, u_scale_a: f.fromScale, u_scale_b: f.toScale, u_tile_units_to_pixels: 1 / c.az(y, 1, g.transform.tileZoom), u_pixel_coord_upper: [V >> 16, U >> 16], u_pixel_coord_lower: [65535 & V, 65535 & U] };
|
|
17449
17450
|
}(i, o, e, s), { u_opacity: u }), ko = (u, e) => {
|
|
@@ -17941,7 +17942,7 @@ uniform ${w} ${P} u_${M};
|
|
|
17941
17942
|
}(w));
|
|
17942
17943
|
const V = h.createIndexBuffer(Us, !0), U = h.createVertexBuffer(z, c.bU.members, !0);
|
|
17943
17944
|
for (const Z of v) {
|
|
17944
|
-
const q =
|
|
17945
|
+
const q = Es(u.transform);
|
|
17945
17946
|
M.draw(h, g.TRIANGLES, st.disabled, ct.disabled, u.colorModeForRenderPass(), yt.disabled, q, u.style.map.terrain && u.style.map.terrain.getTerrainData(Z.coord), null, i.id, U, V, c.aJ.simpleSegment(0, 2 * Z.circleOffset, Z.circleArray.length, Z.circleArray.length / 2), null, u.transform.zoom, null, null, null);
|
|
17946
17947
|
}
|
|
17947
17948
|
U.destroy(), V.destroy();
|
|
@@ -17974,21 +17975,21 @@ uniform ${w} ${P} u_${M};
|
|
|
17974
17975
|
const J = new c.P(Z.anchorX, Z.anchorY), Y = { getElevation: P, width: o.width, height: o.height, pitchedLabelPlaneMatrix: h, pitchWithMap: i, transform: o, tileAnchorPoint: J, translation: v, unwrappedTileID: w }, ee = i ? ot(J.x, J.y, Y) : $t(J.x, J.y, Y), ne = bt(o.cameraToCenterDistance, ee.signedDistanceFromCamera);
|
|
17975
17976
|
let ie = c.am(u.textSizeData, g, Z) * ne / c.ay;
|
|
17976
17977
|
i && (ie *= u.tilePixelRatio / f);
|
|
17977
|
-
const { width: fe, height: Te, anchor: ye, textOffset: xe, textBoxScale: ve } = q, Be = wu(ye, fe, Te, xe, ve, ie), Re = o.getPitchedTextCorrection(J.x + v[0], J.y + v[1], w),
|
|
17978
|
-
for (let ut = 0; ut < Z.numGlyphs; ut++) c.as(z,
|
|
17979
|
-
y && Z.associatedIconIndex >= 0 && (V[Z.associatedIconIndex] = { shiftedAnchor:
|
|
17980
|
-
} else
|
|
17978
|
+
const { width: fe, height: Te, anchor: ye, textOffset: xe, textBoxScale: ve } = q, Be = wu(ye, fe, Te, xe, ve, ie), Re = o.getPitchedTextCorrection(J.x + v[0], J.y + v[1], w), Ee = Tu(ee.point, Y, e, Be, -o.bearingInRadians, Re), Ve = u.allowVerticalPlacement && Z.placedOrientation === c.al.vertical ? Math.PI / 2 : 0;
|
|
17979
|
+
for (let ut = 0; ut < Z.numGlyphs; ut++) c.as(z, Ee, Ve);
|
|
17980
|
+
y && Z.associatedIconIndex >= 0 && (V[Z.associatedIconIndex] = { shiftedAnchor: Ee, angle: Ve });
|
|
17981
|
+
} else Et(Z.numGlyphs, z);
|
|
17981
17982
|
}
|
|
17982
17983
|
if (y) {
|
|
17983
17984
|
k.clear();
|
|
17984
17985
|
const U = u.icon.placedSymbolArray;
|
|
17985
17986
|
for (let Z = 0; Z < U.length; Z++) {
|
|
17986
17987
|
const q = U.get(Z);
|
|
17987
|
-
if (q.hidden)
|
|
17988
|
+
if (q.hidden) Et(q.numGlyphs, k);
|
|
17988
17989
|
else {
|
|
17989
17990
|
const J = V[Z];
|
|
17990
17991
|
if (J) for (let Y = 0; Y < q.numGlyphs; Y++) c.as(k, J.shiftedAnchor, J.angle);
|
|
17991
|
-
else
|
|
17992
|
+
else Et(q.numGlyphs, k);
|
|
17992
17993
|
}
|
|
17993
17994
|
}
|
|
17994
17995
|
u.icon.dynamicLayoutVertexBuffer.updateData(k);
|
|
@@ -18007,12 +18008,12 @@ uniform ${w} ${P} u_${M};
|
|
|
18007
18008
|
if (!ve) continue;
|
|
18008
18009
|
const Be = o ? ve.text : ve.icon;
|
|
18009
18010
|
if (!Be || !Be.segments.get().length || !Be.hasVisibleVertices) continue;
|
|
18010
|
-
const Re = Be.programConfigurations.get(i.id),
|
|
18011
|
+
const Re = Be.programConfigurations.get(i.id), Ee = o || ve.sdfIcons, Ve = o ? ve.textSizeData : ve.iconSizeData, ut = Z || V.pitch !== 0, xt = u.useProgram(Mu(Ee, o, ve), Re), Qt = c.ak(Ve, V.zoom), jt = u.style.map.terrain && u.style.map.terrain.getTerrainData(ye);
|
|
18011
18012
|
let ei, ti, Vt, zt, Ii = [0, 0], Li = null;
|
|
18012
18013
|
if (o) ti = xe.glyphAtlasTexture, Vt = k.LINEAR, ei = xe.glyphAtlasTexture.size, ve.iconsInText && (Ii = xe.imageAtlasTexture.size, Li = xe.imageAtlasTexture, zt = ut || u.options.rotating || u.options.zooming || Ve.kind === "composite" || Ve.kind === "camera" ? k.LINEAR : k.NEAREST);
|
|
18013
18014
|
else {
|
|
18014
18015
|
const xi = i.layout.get("icon-size").constantOr(0) !== 1 || ve.iconsNeedLinear;
|
|
18015
|
-
ti = xe.imageAtlasTexture, Vt =
|
|
18016
|
+
ti = xe.imageAtlasTexture, Vt = Ee || u.options.rotating || u.options.zooming || xi || ut ? k.LINEAR : k.NEAREST, ei = xe.imageAtlasTexture.size;
|
|
18016
18017
|
}
|
|
18017
18018
|
const Hi = c.az(xe, 1, u.transform.zoom), kt = We(U, u.transform, Hi), kn = c.K();
|
|
18018
18019
|
c.an(kn, kt);
|
|
@@ -18021,10 +18022,10 @@ uniform ${w} ${P} u_${M};
|
|
|
18021
18022
|
const xi = u.style.map.terrain ? (pr, Ht) => u.style.map.terrain.getElevation(ye, pr, Ht) : null, vi = i.layout.get("text-rotation-alignment") === "map";
|
|
18022
18023
|
wt(ve, u, o, kt, kn, Z, v, vi, ye.toUnwrapped(), V.width, V.height, Dn, xi);
|
|
18023
18024
|
}
|
|
18024
|
-
const ea = o && ie || Rn, Mr = q || ea ? Wa : Z ? kt : u.transform.clipSpaceToPixelsMatrix, Ln =
|
|
18025
|
+
const ea = o && ie || Rn, Mr = q || ea ? Wa : Z ? kt : u.transform.clipSpaceToPixelsMatrix, Ln = Ee && i.paint.get(o ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
18025
18026
|
let bn;
|
|
18026
|
-
bn =
|
|
18027
|
-
const Bn = { program: xt, buffers: Be, uniformValues: bn, projectionData: Qn, atlasTexture: ti, atlasTextureIcon: Li, atlasInterpolation: Vt, atlasInterpolationIcon: zt, isSDF:
|
|
18027
|
+
bn = Ee ? ve.iconsInText ? As(Ve.kind, Qt, J, Z, q, ea, u, Mr, hn, Dn, ei, Ii, Te) : tc(Ve.kind, Qt, J, Z, q, ea, u, Mr, hn, Dn, o, ei, 0, Te) : ha(Ve.kind, Qt, J, Z, q, ea, u, Mr, hn, Dn, o, ei, Te);
|
|
18028
|
+
const Bn = { program: xt, buffers: Be, uniformValues: bn, projectionData: Qn, atlasTexture: ti, atlasTextureIcon: Li, atlasInterpolation: Vt, atlasInterpolationIcon: zt, isSDF: Ee, hasHalo: Ln };
|
|
18028
18029
|
if (Y && ve.canOverlap) {
|
|
18029
18030
|
ee = !0;
|
|
18030
18031
|
const xi = Be.segments.get();
|
|
@@ -18101,8 +18102,8 @@ uniform ${w} ${P} u_${M};
|
|
|
18101
18102
|
const ve = q.getProjectionData({ overscaledTileID: ne, applyGlobeMatrix: !g, applyTerrainMatrix: !0 }), Be = c.aA(q, ie, J, Y);
|
|
18102
18103
|
if (f) {
|
|
18103
18104
|
U = fe.indexBuffer2, Z = fe.segments2;
|
|
18104
|
-
const
|
|
18105
|
-
V = k === "fillOutlinePattern" && P ? $a(u, M, ie,
|
|
18105
|
+
const Ee = [y.drawingBufferWidth, y.drawingBufferHeight];
|
|
18106
|
+
V = k === "fillOutlinePattern" && P ? $a(u, M, ie, Ee, Be) : Ao(Ee, Be);
|
|
18106
18107
|
} else U = fe.indexBuffer, Z = fe.segments, V = P ? Gl(u, M, ie, Be) : { u_fill_translate: Be };
|
|
18107
18108
|
const Re = u.stencilModeForClipping(ne);
|
|
18108
18109
|
ye.draw(u.context, z, o, Re, h, yt.backCCW, V, xe, ve, i.id, fe.layoutVertexBuffer, U, Z, i.paint, u.transform.zoom, Te);
|
|
@@ -18338,13 +18339,13 @@ uniform ${w} ${P} u_${M};
|
|
|
18338
18339
|
}
|
|
18339
18340
|
if (w.isRenderingGlobe && function(M, z, k) {
|
|
18340
18341
|
const V = M.context, U = V.gl, Z = M.useProgram("atmosphere"), q = new st(U.LEQUAL, st.ReadOnly, [0, 1]), J = M.transform, Y = function(ve, Be) {
|
|
18341
|
-
const Re = ve.properties.get("position"),
|
|
18342
|
-
return ve.properties.get("anchor") === "map" && (c.a_(Ve, Ve, Be.rollInRadians), c.a$(Ve, Ve, -Be.pitchInRadians), c.a_(Ve, Ve, Be.bearingInRadians), c.a$(Ve, Ve, Be.center.lat * Math.PI / 180), c.bp(Ve, Ve, -Be.center.lng * Math.PI / 180)), c.bZ(
|
|
18342
|
+
const Re = ve.properties.get("position"), Ee = [-Re.x, -Re.y, -Re.z], Ve = c.ad(new Float64Array(16));
|
|
18343
|
+
return ve.properties.get("anchor") === "map" && (c.a_(Ve, Ve, Be.rollInRadians), c.a$(Ve, Ve, -Be.pitchInRadians), c.a_(Ve, Ve, Be.bearingInRadians), c.a$(Ve, Ve, Be.center.lat * Math.PI / 180), c.bp(Ve, Ve, -Be.center.lng * Math.PI / 180)), c.bZ(Ee, Ee, Ve), Ee;
|
|
18343
18344
|
}(k, M.transform), ee = J.getProjectionData({ overscaledTileID: null, applyGlobeMatrix: !0, applyTerrainMatrix: !0 }), ne = z.properties.get("atmosphere-blend") * ee.projectionTransition;
|
|
18344
18345
|
if (ne === 0) return;
|
|
18345
18346
|
const ie = $n(J.worldSize, J.center.lat), fe = J.inverseProjectionMatrix, Te = new Float64Array(4);
|
|
18346
18347
|
Te[3] = 1, c.at(Te, Te, J.modelViewProjectionMatrix), Te[0] /= Te[3], Te[1] /= Te[3], Te[2] /= Te[3], Te[3] = 1, c.at(Te, Te, fe), Te[0] /= Te[3], Te[1] /= Te[3], Te[2] /= Te[3], Te[3] = 1;
|
|
18347
|
-
const ye = /* @__PURE__ */ ((ve, Be, Re,
|
|
18348
|
+
const ye = /* @__PURE__ */ ((ve, Be, Re, Ee, Ve) => ({ u_sun_pos: ve, u_atmosphere_blend: Be, u_globe_position: Re, u_globe_radius: Ee, u_inv_proj_matrix: Ve }))(Y, ne, [Te[0], Te[1], Te[2]], ie, fe), xe = Tr(V, z);
|
|
18348
18349
|
Z.draw(V, U.TRIANGLES, q, ct.disabled, Bt.alphaBlended, yt.disabled, ye, null, null, "atmosphere", xe.vertexBuffer, xe.indexBuffer, xe.segments);
|
|
18349
18350
|
}(this, this.style.sky, this.style.light), this.options.showTileBoundaries) {
|
|
18350
18351
|
const M = function(z, k) {
|
|
@@ -18400,10 +18401,10 @@ uniform ${w} ${P} u_${M};
|
|
|
18400
18401
|
for (const ve of V) {
|
|
18401
18402
|
const Be = q.getTile(ve), Re = Be.getBucket(Z);
|
|
18402
18403
|
if (!Re || !Re.text || !Re.text.segments.get().length) continue;
|
|
18403
|
-
const
|
|
18404
|
-
if (
|
|
18404
|
+
const Ee = c.ak(Re.textSizeData, fe.zoom), Ve = c.az(Be, 1, U.transform.zoom), ut = We(ye, U.transform, Ve), xt = Z.layout.get("icon-text-fit") !== "none" && Re.hasIconData();
|
|
18405
|
+
if (Ee) {
|
|
18405
18406
|
const Qt = Math.pow(2, fe.zoom - Be.tileID.overscaledZ), jt = Te ? (ei, ti) => Te.getElevation(ve, ei, ti) : null;
|
|
18406
|
-
hc(Re, ye, xe, ie, fe, ut, Qt,
|
|
18407
|
+
hc(Re, ye, xe, ie, fe, ut, Qt, Ee, xt, c.aA(fe, Be, ee, ne), ve.toUnwrapped(), jt);
|
|
18407
18408
|
}
|
|
18408
18409
|
}
|
|
18409
18410
|
}(v, f, y, g, y.layout.get("text-rotation-alignment"), y.layout.get("text-pitch-alignment"), y.paint.get("text-translate"), y.paint.get("text-translate-anchor"), w), y.paint.get("icon-opacity").constantOr(1) !== 0 && Vs(f, g, y, v, !1, y.paint.get("icon-translate"), y.paint.get("icon-translate-anchor"), y.layout.get("icon-rotation-alignment"), y.layout.get("icon-pitch-alignment"), y.layout.get("icon-keep-upright"), z, k, M), y.paint.get("text-opacity").constantOr(1) !== 0 && Vs(f, g, y, v, !0, y.paint.get("text-translate"), y.paint.get("text-translate-anchor"), y.layout.get("text-rotation-alignment"), y.layout.get("text-pitch-alignment"), y.layout.get("text-keep-upright"), z, k, M), g.map.showCollisionBoxes && (Uo(f, g, y, v, !0), Uo(f, g, y, v, !1));
|
|
@@ -18415,7 +18416,7 @@ uniform ${w} ${P} u_${M};
|
|
|
18415
18416
|
for (let fe = 0; fe < v.length; fe++) {
|
|
18416
18417
|
const Te = v[fe], ye = g.getTile(Te), xe = ye.getBucket(y);
|
|
18417
18418
|
if (!xe) continue;
|
|
18418
|
-
const ve = y.paint.get("circle-translate"), Be = y.paint.get("circle-translate-anchor"), Re = c.aA(q, ye, ve, Be),
|
|
18419
|
+
const ve = y.paint.get("circle-translate"), Be = y.paint.get("circle-translate-anchor"), Re = c.aA(q, ye, ve, Be), Ee = xe.programConfigurations.get(y.id), Ve = f.useProgram("circle", Ee), ut = xe.layoutVertexBuffer, xt = xe.indexBuffer, Qt = f.style.map.terrain && f.style.map.terrain.getTerrainData(Te), jt = { programConfiguration: Ee, program: Ve, layoutVertexBuffer: ut, indexBuffer: xt, uniformValues: Ga(f, ye, y, Re, ie), terrainData: Qt, projectionData: q.getProjectionData({ overscaledTileID: Te, applyGlobeMatrix: !P, applyTerrainMatrix: !0 }) };
|
|
18419
18420
|
if (V) {
|
|
18420
18421
|
const ei = xe.segments.get();
|
|
18421
18422
|
for (const ti of ei) ne.push({ segments: new c.aJ([ti]), sortKey: ti.sortKey, state: jt });
|
|
@@ -18423,8 +18424,8 @@ uniform ${w} ${P} u_${M};
|
|
|
18423
18424
|
}
|
|
18424
18425
|
V && ne.sort((fe, Te) => fe.sortKey - Te.sortKey);
|
|
18425
18426
|
for (const fe of ne) {
|
|
18426
|
-
const { programConfiguration: Te, program: ye, layoutVertexBuffer: xe, indexBuffer: ve, uniformValues: Be, terrainData: Re, projectionData:
|
|
18427
|
-
ye.draw(U, Z.TRIANGLES, J, Y, ee, yt.backCCW, Be, Re,
|
|
18427
|
+
const { programConfiguration: Te, program: ye, layoutVertexBuffer: xe, indexBuffer: ve, uniformValues: Be, terrainData: Re, projectionData: Ee } = fe.state;
|
|
18428
|
+
ye.draw(U, Z.TRIANGLES, J, Y, ee, yt.backCCW, Be, Re, Ee, y.id, xe, ve, fe.segments, y.paint, f.transform.zoom, Te);
|
|
18428
18429
|
}
|
|
18429
18430
|
}(e, i, s, o, h) : c.c5(s) ? function(f, g, y, v, w) {
|
|
18430
18431
|
if (y.paint.get("heatmap-opacity") === 0) return;
|
|
@@ -18469,7 +18470,7 @@ uniform ${w} ${P} u_${M};
|
|
|
18469
18470
|
if (q && !xe.patternsLoaded()) continue;
|
|
18470
18471
|
const ve = xe.getBucket(y);
|
|
18471
18472
|
if (!ve) continue;
|
|
18472
|
-
const Be = ve.programConfigurations.get(y.id), Re = f.context.program.get(),
|
|
18473
|
+
const Be = ve.programConfigurations.get(y.id), Re = f.context.program.get(), Ee = f.useProgram(ee, Be), Ve = Te || Ee.program !== Re, ut = f.style.map.terrain && f.style.map.terrain.getTerrainData(ye), xt = Z.constantOr(null);
|
|
18473
18474
|
if (xt && xe.imageAtlas) {
|
|
18474
18475
|
const Vt = xe.imageAtlas, zt = Vt.patternPositions[xt.to.toString()], Ii = Vt.patternPositions[xt.from.toString()];
|
|
18475
18476
|
zt && Ii && Be.setConstantPatternPositions(zt, Ii);
|
|
@@ -18491,7 +18492,7 @@ uniform ${w} ${P} u_${M};
|
|
|
18491
18492
|
ne.activeTexture.set(ie.TEXTURE0), zt.bind(y.stepInterpolant ? ie.NEAREST : ie.LINEAR, ie.CLAMP_TO_EDGE);
|
|
18492
18493
|
}
|
|
18493
18494
|
const ti = f.stencilModeForClipping(ye);
|
|
18494
|
-
|
|
18495
|
+
Ee.draw(ne, ie.TRIANGLES, k, ti, V, yt.disabled, ei, ut, Qt, y.id, ve.layoutVertexBuffer, ve.indexBuffer, ve.segments, y.paint, f.transform.zoom, Be, ve.layoutVertexBuffer2), Te = !1;
|
|
18495
18496
|
}
|
|
18496
18497
|
}(e, i, s, o, h) : c.c7(s) ? function(f, g, y, v, w) {
|
|
18497
18498
|
const P = y.paint.get("fill-color"), M = y.paint.get("fill-opacity");
|
|
@@ -18531,12 +18532,12 @@ uniform ${w} ${P} u_${M};
|
|
|
18531
18532
|
Ve.update(Re, { premultiply: !1 }), Ve.bind(fe.NEAREST, fe.CLAMP_TO_EDGE);
|
|
18532
18533
|
} else ye.demTexture = new Ft(ie, Re, fe.RGBA, { premultiply: !1 }), ye.demTexture.bind(fe.NEAREST, fe.CLAMP_TO_EDGE);
|
|
18533
18534
|
ie.activeTexture.set(fe.TEXTURE0);
|
|
18534
|
-
let
|
|
18535
|
-
if (!
|
|
18535
|
+
let Ee = ye.fbo;
|
|
18536
|
+
if (!Ee) {
|
|
18536
18537
|
const Ve = new Ft(ie, { width: ve, height: ve, data: null }, fe.RGBA);
|
|
18537
|
-
Ve.bind(fe.LINEAR, fe.CLAMP_TO_EDGE),
|
|
18538
|
+
Ve.bind(fe.LINEAR, fe.CLAMP_TO_EDGE), Ee = ye.fbo = ie.createFramebuffer(ve, ve, !0, !1), Ee.colorAttachment.set(Ve.texture);
|
|
18538
18539
|
}
|
|
18539
|
-
ie.bindFramebuffer.set(
|
|
18540
|
+
ie.bindFramebuffer.set(Ee.framebuffer), ie.viewport.set([0, 0, ve, ve]), U.useProgram("hillshadePrepare").draw(ie, fe.TRIANGLES, Y, ee, ne, yt.disabled, fu(ye.tileID, xe), null, null, J.id, U.rasterBoundsBuffer, U.quadTriangleIndexBuffer, U.rasterBoundsSegments), ye.needsHillshadePrepare = !1;
|
|
18540
18541
|
}
|
|
18541
18542
|
})(f, g, v, y, k, ct.disabled, V), M.viewport.set([0, 0, f.width, f.height]);
|
|
18542
18543
|
else if (f.renderPass === "translucent") if (z) {
|
|
@@ -18568,8 +18569,8 @@ uniform ${w} ${P} u_${M};
|
|
|
18568
18569
|
J && (k.activeTexture.set(V.TEXTURE0), f.imageManager.bind(f.context));
|
|
18569
18570
|
const ye = y.getCrossfadeParameters();
|
|
18570
18571
|
for (const xe of Te) {
|
|
18571
|
-
const ve = Z.getProjectionData({ overscaledTileID: xe, applyGlobeMatrix: !z, applyTerrainMatrix: !0 }), Be = J ? gu(M, f, J, { tileID: xe, tileSize: q }, ye) : mu(M, P), Re = f.style.map.terrain && f.style.map.terrain.getTerrainData(xe),
|
|
18572
|
-
fe.draw(k, V.TRIANGLES, ne, ee, ie, yt.backCCW, Be, Re, ve, y.id,
|
|
18572
|
+
const ve = Z.getProjectionData({ overscaledTileID: xe, applyGlobeMatrix: !z, applyTerrainMatrix: !0 }), Be = J ? gu(M, f, J, { tileID: xe, tileSize: q }, ye) : mu(M, P), Re = f.style.map.terrain && f.style.map.terrain.getTerrainData(xe), Ee = U.getMeshFromTileID(k, xe.canonical, !1, !0, "raster");
|
|
18573
|
+
fe.draw(k, V.TRIANGLES, ne, ee, ie, yt.backCCW, Be, Re, ve, y.id, Ee.vertexBuffer, Ee.indexBuffer, Ee.segments);
|
|
18573
18574
|
}
|
|
18574
18575
|
}(e, 0, s, o, h) : c.cc(s) && function(f, g, y, v) {
|
|
18575
18576
|
const { isRenderingGlobe: w } = v, P = f.context, M = y.implementation, z = f.style.projection, k = f.transform, V = k.getProjectionDataForCustomLayer(w), U = { farZ: k.farZ, nearZ: k.nearZ, fov: k.fov * Math.PI / 180, modelViewProjectionMatrix: k.modelViewProjectionMatrix, projectionMatrix: k.projectionMatrix, shaderData: { variantName: z.shaderVariantName, vertexShaderPrelude: `const float PI = 3.141592653589793;
|
|
@@ -19815,7 +19816,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
19815
19816
|
this._frameId === void 0 && (this._frameId = this._requestFrame());
|
|
19816
19817
|
}
|
|
19817
19818
|
}
|
|
19818
|
-
class
|
|
19819
|
+
class Eu extends c.E {
|
|
19819
19820
|
constructor(e, i, s) {
|
|
19820
19821
|
super(), this._renderFrameCallback = () => {
|
|
19821
19822
|
const o = Math.min((Fe.now() - this._easeStart) / this._easeOptions.duration, 1);
|
|
@@ -20050,8 +20051,8 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
20050
20051
|
xe = Math.abs(Math.log(q / Z)) / U, ye = () => 0, Te = (Be) => Math.exp(ve * U * Be);
|
|
20051
20052
|
}
|
|
20052
20053
|
return e.duration = "duration" in e ? +e.duration : 1e3 * xe / ("screenSpeed" in e ? +e.screenSpeed / U : +e.speed), e.maxDuration && e.duration > e.maxDuration && (e.duration = 0), this._zooming = !0, this._rotating = o !== y, this._pitching = v !== h, this._rolling = w !== f, this._padding = !s.isPaddingEqual(P), this._prepareEase(i, !1), this.terrain && this._prepareElevation(V.targetCenter), this._ease((ve) => {
|
|
20053
|
-
const Be = ve * xe, Re = 1 / Te(Be),
|
|
20054
|
-
this._rotating && s.setBearing(c.B.number(o, y, ve)), this._pitching && s.setPitch(c.B.number(h, v, ve)), this._rolling && s.setRoll(c.B.number(f, w, ve)), this._padding && (s.interpolatePadding(g, P, ve), z = s.centerPoint.add(M)), V.easeFunc(ve, Re,
|
|
20054
|
+
const Be = ve * xe, Re = 1 / Te(Be), Ee = ye(Be);
|
|
20055
|
+
this._rotating && s.setBearing(c.B.number(o, y, ve)), this._pitching && s.setPitch(c.B.number(h, v, ve)), this._rolling && s.setRoll(c.B.number(f, w, ve)), this._padding && (s.interpolatePadding(g, P, ve), z = s.centerPoint.add(M)), V.easeFunc(ve, Re, Ee, z), this.terrain && !e.freezeElevation && this._updateElevation(ve), this._applyUpdatedTransform(s), this._fireMoveEvents(i);
|
|
20055
20056
|
}, () => {
|
|
20056
20057
|
this.terrain && e.freezeElevation && this._finalizeElevation(), this._afterEase(i);
|
|
20057
20058
|
}, e), this;
|
|
@@ -20359,7 +20360,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
20359
20360
|
return { tileID: new c.Y(i, 0, i, g, y), mercatorX: h, mercatorY: f };
|
|
20360
20361
|
}
|
|
20361
20362
|
}
|
|
20362
|
-
class
|
|
20363
|
+
class Au {
|
|
20363
20364
|
constructor(e, i, s) {
|
|
20364
20365
|
this._context = e, this._size = i, this._tileSize = s, this._objects = [], this._recentlyUsed = [], this._stamp = 0;
|
|
20365
20366
|
}
|
|
@@ -20398,7 +20399,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
20398
20399
|
const hr = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
|
|
20399
20400
|
class ro {
|
|
20400
20401
|
constructor(e, i) {
|
|
20401
|
-
this.painter = e, this.terrain = i, this.pool = new
|
|
20402
|
+
this.painter = e, this.terrain = i, this.pool = new Au(e.context, 30, i.sourceCache.tileSize * i.qualityFactor);
|
|
20402
20403
|
}
|
|
20403
20404
|
destruct() {
|
|
20404
20405
|
this.pool.destruct();
|
|
@@ -20512,7 +20513,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
20512
20513
|
return u.lng !== o.lng && i.isPointOnMapSurface(i.locationToScreenPoint(u)) ? u : o;
|
|
20513
20514
|
}
|
|
20514
20515
|
const Nr = { center: "translate(-50%,-50%)", top: "translate(-50%,0)", "top-left": "translate(0,0)", "top-right": "translate(-100%,0)", bottom: "translate(-50%,-100%)", "bottom-left": "translate(0,-100%)", "bottom-right": "translate(-100%,-100%)", left: "translate(0,-50%)", right: "translate(-100%,-50%)" };
|
|
20515
|
-
function
|
|
20516
|
+
function Ec(u, e, i) {
|
|
20516
20517
|
const s = u.classList;
|
|
20517
20518
|
for (const o in Nr) s.remove(`maplibregl-${i}-anchor-${o}`);
|
|
20518
20519
|
s.add(`maplibregl-${i}-anchor-${e}`);
|
|
@@ -20583,7 +20584,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
20583
20584
|
i.preventDefault();
|
|
20584
20585
|
}), this._element.addEventListener("mousedown", (i) => {
|
|
20585
20586
|
i.preventDefault();
|
|
20586
|
-
}),
|
|
20587
|
+
}), Ec(this._element, this._anchor, "marker"), e && e.className) for (const i of e.className.split(" ")) this._element.classList.add(i);
|
|
20587
20588
|
this._popup = null;
|
|
20588
20589
|
}
|
|
20589
20590
|
addTo(e) {
|
|
@@ -20926,7 +20927,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
20926
20927
|
onRemove() {
|
|
20927
20928
|
pe.remove(this._container), this._map.off("styledata", this._updateGlobeIcon), this._globeButton.removeEventListener("click", this._toggleProjection), this._map = void 0;
|
|
20928
20929
|
}
|
|
20929
|
-
}, S.Hash = Ho, S.ImageSource = Yi, S.KeyboardHandler = Ta, S.LngLatBounds = St, S.LogoControl = as, S.Map = class extends
|
|
20930
|
+
}, S.Hash = Ho, S.ImageSource = Yi, S.KeyboardHandler = Ta, S.LngLatBounds = St, S.LogoControl = as, S.Map = class extends Eu {
|
|
20930
20931
|
constructor(u) {
|
|
20931
20932
|
var e, i;
|
|
20932
20933
|
c.cn.mark(c.co.create);
|
|
@@ -21186,10 +21187,10 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
21186
21187
|
var i, s;
|
|
21187
21188
|
if (e.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", () => this._updateStyle(u, e));
|
|
21188
21189
|
const o = this.style && e.transformStyle ? this.style.serialize() : void 0;
|
|
21189
|
-
return this.style && (this.style.setEventedParent(null), this.style._remove(!u)), u ? (this.style = new
|
|
21190
|
+
return this.style && (this.style.setEventedParent(null), this.style._remove(!u)), u ? (this.style = new Eo(this, e || {}), this.style.setEventedParent(this, { style: this.style }), typeof u == "string" ? this.style.loadURL(u, e, o) : this.style.loadJSON(u, e, o), this) : ((s = (i = this.style) === null || i === void 0 ? void 0 : i.projection) === null || s === void 0 || s.destroy(), delete this.style, this);
|
|
21190
21191
|
}
|
|
21191
21192
|
_lazyInitEmptyStyle() {
|
|
21192
|
-
this.style || (this.style = new
|
|
21193
|
+
this.style || (this.style = new Eo(this, {}), this.style.setEventedParent(this, { style: this.style }), this.style.loadEmpty());
|
|
21193
21194
|
}
|
|
21194
21195
|
_diffStyle(u, e) {
|
|
21195
21196
|
if (typeof u == "string") {
|
|
@@ -21585,7 +21586,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
21585
21586
|
y = i.y + o.bottom.y < g ? ["top"] : i.y > this._map.transform.height - g ? ["bottom"] : [], i.x < f / 2 ? y.push("left") : i.x > this._map.transform.width - f / 2 && y.push("right"), s = y.length === 0 ? "bottom" : y.join("-");
|
|
21586
21587
|
}
|
|
21587
21588
|
let h = i.add(o[s]);
|
|
21588
|
-
this.options.subpixelPositioning || (h = h.round()), pe.setTransform(this._container, `${Nr[s]} translate(${h.x}px,${h.y}px)`),
|
|
21589
|
+
this.options.subpixelPositioning || (h = h.round()), pe.setTransform(this._container, `${Nr[s]} translate(${h.x}px,${h.y}px)`), Ec(this._container, s, "popup"), this._updateOpacity();
|
|
21589
21590
|
}, this._onClose = () => {
|
|
21590
21591
|
this.remove();
|
|
21591
21592
|
}, this.options = c.e(Object.create(ol), u);
|
|
@@ -21669,7 +21670,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
21669
21670
|
onRemove() {
|
|
21670
21671
|
pe.remove(this._container), this._map.off("move", this._onMove), this._map = void 0;
|
|
21671
21672
|
}
|
|
21672
|
-
}, S.ScrollZoomHandler = dt, S.Style =
|
|
21673
|
+
}, S.ScrollZoomHandler = dt, S.Style = Eo, S.TerrainControl = class {
|
|
21673
21674
|
constructor(u) {
|
|
21674
21675
|
this._toggleTerrain = () => {
|
|
21675
21676
|
this._map.getTerrain() ? this._map.setTerrain(null) : this._map.setTerrain(this.options), this._updateTerrainIcon();
|
|
@@ -21721,24 +21722,24 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
21721
21722
|
}(tu)), tu.exports;
|
|
21722
21723
|
}
|
|
21723
21724
|
var Zg = Vg();
|
|
21724
|
-
const Jc = /* @__PURE__ */
|
|
21725
|
+
const Jc = /* @__PURE__ */ eg(Zg);
|
|
21725
21726
|
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
|
21726
21727
|
const {
|
|
21727
21728
|
entries: af,
|
|
21728
|
-
setPrototypeOf:
|
|
21729
|
+
setPrototypeOf: Ed,
|
|
21729
21730
|
isFrozen: $g,
|
|
21730
21731
|
getPrototypeOf: Gg,
|
|
21731
21732
|
getOwnPropertyDescriptor: qg
|
|
21732
21733
|
} = Object;
|
|
21733
21734
|
let {
|
|
21734
|
-
freeze:
|
|
21735
|
+
freeze: Er,
|
|
21735
21736
|
seal: fn,
|
|
21736
21737
|
create: sf
|
|
21737
21738
|
} = Object, {
|
|
21738
21739
|
apply: Dh,
|
|
21739
21740
|
construct: Rh
|
|
21740
21741
|
} = typeof Reflect < "u" && Reflect;
|
|
21741
|
-
|
|
21742
|
+
Er || (Er = function(G) {
|
|
21742
21743
|
return G;
|
|
21743
21744
|
});
|
|
21744
21745
|
fn || (fn = function(G) {
|
|
@@ -21750,8 +21751,8 @@ Dh || (Dh = function(G, K, ae) {
|
|
|
21750
21751
|
Rh || (Rh = function(G, K) {
|
|
21751
21752
|
return new G(...K);
|
|
21752
21753
|
});
|
|
21753
|
-
const Qc =
|
|
21754
|
-
function
|
|
21754
|
+
const Qc = Ar(Array.prototype.forEach), Hg = Ar(Array.prototype.lastIndexOf), Ad = Ar(Array.prototype.pop), zl = Ar(Array.prototype.push), Wg = Ar(Array.prototype.splice), iu = Ar(String.prototype.toLowerCase), Ph = Ar(String.prototype.toString), zd = Ar(String.prototype.match), kl = Ar(String.prototype.replace), Xg = Ar(String.prototype.indexOf), Kg = Ar(String.prototype.trim), Cn = Ar(Object.prototype.hasOwnProperty), Cr = Ar(RegExp.prototype.test), Dl = Yg(TypeError);
|
|
21755
|
+
function Ar(Q) {
|
|
21755
21756
|
return function(G) {
|
|
21756
21757
|
G instanceof RegExp && (G.lastIndex = 0);
|
|
21757
21758
|
for (var K = arguments.length, ae = new Array(K > 1 ? K - 1 : 0), we = 1; we < K; we++)
|
|
@@ -21768,7 +21769,7 @@ function Yg(Q) {
|
|
|
21768
21769
|
}
|
|
21769
21770
|
function Ct(Q, G) {
|
|
21770
21771
|
let K = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : iu;
|
|
21771
|
-
|
|
21772
|
+
Ed && Ed(Q, null);
|
|
21772
21773
|
let ae = G.length;
|
|
21773
21774
|
for (; ae--; ) {
|
|
21774
21775
|
let we = G[ae];
|
|
@@ -21796,9 +21797,9 @@ function Rl(Q, G) {
|
|
|
21796
21797
|
const ae = qg(Q, G);
|
|
21797
21798
|
if (ae) {
|
|
21798
21799
|
if (ae.get)
|
|
21799
|
-
return
|
|
21800
|
+
return Ar(ae.get);
|
|
21800
21801
|
if (typeof ae.value == "function")
|
|
21801
|
-
return
|
|
21802
|
+
return Ar(ae.value);
|
|
21802
21803
|
}
|
|
21803
21804
|
Q = Gg(Q);
|
|
21804
21805
|
}
|
|
@@ -21807,7 +21808,7 @@ function Rl(Q, G) {
|
|
|
21807
21808
|
}
|
|
21808
21809
|
return K;
|
|
21809
21810
|
}
|
|
21810
|
-
const kd =
|
|
21811
|
+
const kd = Er(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Sh = Er(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ih = Er(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Qg = Er(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ch = Er(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), e_ = Er(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Dd = Er(["#text"]), Rd = Er(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Eh = Er(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ld = Er(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), eu = Er(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), t_ = fn(/\{\{[\w\W]*|[\w\W]*\}\}/gm), i_ = fn(/<%[\w\W]*|[\w\W]*%>/gm), r_ = fn(/\$\{[\w\W]*/gm), n_ = fn(/^data-[\-\w.\u00B7-\uFFFF]+$/), a_ = fn(/^aria-[\-\w]+$/), of = fn(
|
|
21811
21812
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
21812
21813
|
// eslint-disable-line no-useless-escape
|
|
21813
21814
|
), s_ = fn(/^(?:\w+script|data):/i), o_ = fn(
|
|
@@ -21886,7 +21887,7 @@ function cf() {
|
|
|
21886
21887
|
HTMLFormElement: $e,
|
|
21887
21888
|
DOMParser: Fe,
|
|
21888
21889
|
trustedTypes: pe
|
|
21889
|
-
} = Q, je = rt.prototype,
|
|
21890
|
+
} = Q, je = rt.prototype, At = Rl(je, "cloneNode"), pi = Rl(je, "remove"), di = Rl(je, "nextSibling"), Kt = Rl(je, "childNodes"), Nt = Rl(je, "parentNode");
|
|
21890
21891
|
if (typeof S == "function") {
|
|
21891
21892
|
const Xe = K.createElement("template");
|
|
21892
21893
|
Xe.content && Xe.content.ownerDocument && (K = Xe.content.ownerDocument);
|
|
@@ -21917,7 +21918,7 @@ function cf() {
|
|
|
21917
21918
|
} = Bd, Ut = null;
|
|
21918
21919
|
const zi = Ct({}, [...kd, ...Sh, ...Ih, ...Ch, ...Dd]);
|
|
21919
21920
|
let Lt = null;
|
|
21920
|
-
const Vi = Ct({}, [...Rd, ...
|
|
21921
|
+
const Vi = Ct({}, [...Rd, ...Eh, ...Ld, ...eu]);
|
|
21921
21922
|
let lt = Object.seal(sf(null, {
|
|
21922
21923
|
tagNameCheck: {
|
|
21923
21924
|
writable: !0,
|
|
@@ -21958,7 +21959,7 @@ function cf() {
|
|
|
21958
21959
|
let oe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
21959
21960
|
if (!(ce && ce === oe)) {
|
|
21960
21961
|
if ((!oe || typeof oe != "object") && (oe = {}), oe = xs(oe), de = // eslint-disable-next-line unicorn/prefer-includes
|
|
21961
|
-
se.indexOf(oe.PARSER_MEDIA_TYPE) === -1 ? ue : oe.PARSER_MEDIA_TYPE, he = de === "application/xhtml+xml" ? Ph : iu, Ut = Cn(oe, "ALLOWED_TAGS") ? Ct({}, oe.ALLOWED_TAGS, he) : zi, Lt = Cn(oe, "ALLOWED_ATTR") ? Ct({}, oe.ALLOWED_ATTR, he) : Vi, B = Cn(oe, "ALLOWED_NAMESPACES") ? Ct({}, oe.ALLOWED_NAMESPACES, Ph) : N, Fr = Cn(oe, "ADD_URI_SAFE_ATTR") ? Ct(xs(_n), oe.ADD_URI_SAFE_ATTR, he) : _n, Lr = Cn(oe, "ADD_DATA_URI_TAGS") ? Ct(xs(Br), oe.ADD_DATA_URI_TAGS, he) : Br, br = Cn(oe, "FORBID_CONTENTS") ? Ct({}, oe.FORBID_CONTENTS, he) : gn, ki = Cn(oe, "FORBID_TAGS") ? Ct({}, oe.FORBID_TAGS, he) : {}, fi = Cn(oe, "FORBID_ATTR") ? Ct({}, oe.FORBID_ATTR, he) : {}, vr = Cn(oe, "USE_PROFILES") ? oe.USE_PROFILES : !1, Dr = oe.ALLOW_ARIA_ATTR !== !1, fr = oe.ALLOW_DATA_ATTR !== !1, rn = oe.ALLOW_UNKNOWN_PROTOCOLS || !1, Ti = oe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ri = oe.SAFE_FOR_TEMPLATES || !1, ci = oe.SAFE_FOR_XML !== !1, St = oe.WHOLE_DOCUMENT || !1, Mi = oe.RETURN_DOM || !1, nn = oe.RETURN_DOM_FRAGMENT || !1, an = oe.RETURN_TRUSTED_TYPE || !1, Rr = oe.FORCE_BODY || !1, Yi = oe.SANITIZE_DOM !== !1, xr = oe.SANITIZE_NAMED_PROPS || !1, Zr = oe.KEEP_CONTENT !== !1, or = oe.IN_PLACE || !1, sr = oe.ALLOWED_URI_REGEXP || of, le = oe.NAMESPACE || _i, H = oe.MATHML_TEXT_INTEGRATION_POINTS || H, te = oe.HTML_INTEGRATION_POINTS || te, lt = oe.CUSTOM_ELEMENT_HANDLING || {}, oe.CUSTOM_ELEMENT_HANDLING && Le(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (lt.tagNameCheck = oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck), oe.CUSTOM_ELEMENT_HANDLING && Le(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (lt.attributeNameCheck = oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), oe.CUSTOM_ELEMENT_HANDLING && typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (lt.allowCustomizedBuiltInElements = oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ri && (fr = !1), nn && (Mi = !0), vr && (Ut = Ct({}, Dd), Lt = [], vr.html === !0 && (Ct(Ut, kd), Ct(Lt, Rd)), vr.svg === !0 && (Ct(Ut, Sh), Ct(Lt,
|
|
21962
|
+
se.indexOf(oe.PARSER_MEDIA_TYPE) === -1 ? ue : oe.PARSER_MEDIA_TYPE, he = de === "application/xhtml+xml" ? Ph : iu, Ut = Cn(oe, "ALLOWED_TAGS") ? Ct({}, oe.ALLOWED_TAGS, he) : zi, Lt = Cn(oe, "ALLOWED_ATTR") ? Ct({}, oe.ALLOWED_ATTR, he) : Vi, B = Cn(oe, "ALLOWED_NAMESPACES") ? Ct({}, oe.ALLOWED_NAMESPACES, Ph) : N, Fr = Cn(oe, "ADD_URI_SAFE_ATTR") ? Ct(xs(_n), oe.ADD_URI_SAFE_ATTR, he) : _n, Lr = Cn(oe, "ADD_DATA_URI_TAGS") ? Ct(xs(Br), oe.ADD_DATA_URI_TAGS, he) : Br, br = Cn(oe, "FORBID_CONTENTS") ? Ct({}, oe.FORBID_CONTENTS, he) : gn, ki = Cn(oe, "FORBID_TAGS") ? Ct({}, oe.FORBID_TAGS, he) : {}, fi = Cn(oe, "FORBID_ATTR") ? Ct({}, oe.FORBID_ATTR, he) : {}, vr = Cn(oe, "USE_PROFILES") ? oe.USE_PROFILES : !1, Dr = oe.ALLOW_ARIA_ATTR !== !1, fr = oe.ALLOW_DATA_ATTR !== !1, rn = oe.ALLOW_UNKNOWN_PROTOCOLS || !1, Ti = oe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ri = oe.SAFE_FOR_TEMPLATES || !1, ci = oe.SAFE_FOR_XML !== !1, St = oe.WHOLE_DOCUMENT || !1, Mi = oe.RETURN_DOM || !1, nn = oe.RETURN_DOM_FRAGMENT || !1, an = oe.RETURN_TRUSTED_TYPE || !1, Rr = oe.FORCE_BODY || !1, Yi = oe.SANITIZE_DOM !== !1, xr = oe.SANITIZE_NAMED_PROPS || !1, Zr = oe.KEEP_CONTENT !== !1, or = oe.IN_PLACE || !1, sr = oe.ALLOWED_URI_REGEXP || of, le = oe.NAMESPACE || _i, H = oe.MATHML_TEXT_INTEGRATION_POINTS || H, te = oe.HTML_INTEGRATION_POINTS || te, lt = oe.CUSTOM_ELEMENT_HANDLING || {}, oe.CUSTOM_ELEMENT_HANDLING && Le(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (lt.tagNameCheck = oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck), oe.CUSTOM_ELEMENT_HANDLING && Le(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (lt.attributeNameCheck = oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), oe.CUSTOM_ELEMENT_HANDLING && typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (lt.allowCustomizedBuiltInElements = oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ri && (fr = !1), nn && (Mi = !0), vr && (Ut = Ct({}, Dd), Lt = [], vr.html === !0 && (Ct(Ut, kd), Ct(Lt, Rd)), vr.svg === !0 && (Ct(Ut, Sh), Ct(Lt, Eh), Ct(Lt, eu)), vr.svgFilters === !0 && (Ct(Ut, Ih), Ct(Lt, Eh), Ct(Lt, eu)), vr.mathMl === !0 && (Ct(Ut, Ch), Ct(Lt, Ld), Ct(Lt, eu))), oe.ADD_TAGS && (Ut === zi && (Ut = xs(Ut)), Ct(Ut, oe.ADD_TAGS, he)), oe.ADD_ATTR && (Lt === Vi && (Lt = xs(Lt)), Ct(Lt, oe.ADD_ATTR, he)), oe.ADD_URI_SAFE_ATTR && Ct(Fr, oe.ADD_URI_SAFE_ATTR, he), oe.FORBID_CONTENTS && (br === gn && (br = xs(br)), Ct(br, oe.FORBID_CONTENTS, he)), Zr && (Ut["#text"] = !0), St && Ct(Ut, ["html", "head", "body"]), Ut.table && (Ct(Ut, ["tbody"]), delete ki.tbody), oe.TRUSTED_TYPES_POLICY) {
|
|
21962
21963
|
if (typeof oe.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
21963
21964
|
throw Dl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
21964
21965
|
if (typeof oe.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -21966,7 +21967,7 @@ function cf() {
|
|
|
21966
21967
|
gt = oe.TRUSTED_TYPES_POLICY, Rt = gt.createHTML("");
|
|
21967
21968
|
} else
|
|
21968
21969
|
gt === void 0 && (gt = u_(pe, we)), gt !== null && typeof Rt == "string" && (Rt = gt.createHTML(""));
|
|
21969
|
-
|
|
21970
|
+
Er && Er(oe), ce = oe;
|
|
21970
21971
|
}
|
|
21971
21972
|
}, We = Ct({}, [...Sh, ...Ih, ...Qg]), nt = Ct({}, [...Ch, ...e_]), tt = function(oe) {
|
|
21972
21973
|
let ke = Nt(oe);
|
|
@@ -21974,8 +21975,8 @@ function cf() {
|
|
|
21974
21975
|
namespaceURI: le,
|
|
21975
21976
|
tagName: "template"
|
|
21976
21977
|
});
|
|
21977
|
-
const He = iu(oe.tagName),
|
|
21978
|
-
return B[oe.namespaceURI] ? oe.namespaceURI === Pi ? ke.namespaceURI === _i ? He === "svg" : ke.namespaceURI === Zi ? He === "svg" && (
|
|
21978
|
+
const He = iu(oe.tagName), Et = iu(ke.tagName);
|
|
21979
|
+
return B[oe.namespaceURI] ? oe.namespaceURI === Pi ? ke.namespaceURI === _i ? He === "svg" : ke.namespaceURI === Zi ? He === "svg" && (Et === "annotation-xml" || H[Et]) : !!We[He] : oe.namespaceURI === Zi ? ke.namespaceURI === _i ? He === "math" : ke.namespaceURI === Pi ? He === "math" && te[Et] : !!nt[He] : oe.namespaceURI === _i ? ke.namespaceURI === Pi && !te[Et] || ke.namespaceURI === Zi && !H[Et] ? !1 : !nt[He] && (j[He] || !We[He]) : !!(de === "application/xhtml+xml" && B[oe.namespaceURI]) : !1;
|
|
21979
21980
|
}, _e = function(oe) {
|
|
21980
21981
|
zl(G.removed, {
|
|
21981
21982
|
element: oe
|
|
@@ -22017,16 +22018,16 @@ function cf() {
|
|
|
22017
22018
|
He = ft && ft[0];
|
|
22018
22019
|
}
|
|
22019
22020
|
de === "application/xhtml+xml" && le === _i && (oe = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + oe + "</body></html>");
|
|
22020
|
-
const
|
|
22021
|
+
const Et = gt ? gt.createHTML(oe) : oe;
|
|
22021
22022
|
if (le === _i)
|
|
22022
22023
|
try {
|
|
22023
|
-
ke = new Fe().parseFromString(
|
|
22024
|
+
ke = new Fe().parseFromString(Et, de);
|
|
22024
22025
|
} catch {
|
|
22025
22026
|
}
|
|
22026
22027
|
if (!ke || !ke.documentElement) {
|
|
22027
22028
|
ke = Dt.createDocument(le, "template", null);
|
|
22028
22029
|
try {
|
|
22029
|
-
ke.documentElement.innerHTML = R ? Rt :
|
|
22030
|
+
ke.documentElement.innerHTML = R ? Rt : Et;
|
|
22030
22031
|
} catch {
|
|
22031
22032
|
}
|
|
22032
22033
|
}
|
|
@@ -22064,19 +22065,19 @@ function cf() {
|
|
|
22064
22065
|
if (!ki[He] && $t(He) && (lt.tagNameCheck instanceof RegExp && Cr(lt.tagNameCheck, He) || lt.tagNameCheck instanceof Function && lt.tagNameCheck(He)))
|
|
22065
22066
|
return !1;
|
|
22066
22067
|
if (Zr && !br[He]) {
|
|
22067
|
-
const
|
|
22068
|
-
if (Yt &&
|
|
22068
|
+
const Et = Nt(oe) || oe.parentNode, Yt = Kt(oe) || oe.childNodes;
|
|
22069
|
+
if (Yt && Et) {
|
|
22069
22070
|
const ft = Yt.length;
|
|
22070
22071
|
for (let Ot = ft - 1; Ot >= 0; --Ot) {
|
|
22071
|
-
const Tt =
|
|
22072
|
-
Tt.__removalCount = (oe.__removalCount || 0) + 1,
|
|
22072
|
+
const Tt = At(Yt[Ot], !0);
|
|
22073
|
+
Tt.__removalCount = (oe.__removalCount || 0) + 1, Et.insertBefore(Tt, di(oe));
|
|
22073
22074
|
}
|
|
22074
22075
|
}
|
|
22075
22076
|
}
|
|
22076
22077
|
return _e(oe), !0;
|
|
22077
22078
|
}
|
|
22078
|
-
return oe instanceof rt && !tt(oe) || (He === "noscript" || He === "noembed" || He === "noframes") && Cr(/<\/no(script|embed|frames)/i, oe.innerHTML) ? (_e(oe), !0) : (ri && oe.nodeType === Ll.text && (ke = oe.textContent, Qc([Ni, Ui, li], (
|
|
22079
|
-
ke = kl(ke,
|
|
22079
|
+
return oe instanceof rt && !tt(oe) || (He === "noscript" || He === "noembed" || He === "noframes") && Cr(/<\/no(script|embed|frames)/i, oe.innerHTML) ? (_e(oe), !0) : (ri && oe.nodeType === Ll.text && (ke = oe.textContent, Qc([Ni, Ui, li], (Et) => {
|
|
22080
|
+
ke = kl(ke, Et, " ");
|
|
22080
22081
|
}), oe.textContent !== ke && (zl(G.removed, {
|
|
22081
22082
|
element: oe.cloneNode()
|
|
22082
22083
|
}), oe.textContent = ke)), Ge(vt.afterSanitizeElements, oe, null), !1);
|
|
@@ -22123,9 +22124,9 @@ function cf() {
|
|
|
22123
22124
|
allowedAttributes: Lt,
|
|
22124
22125
|
forceKeepAttr: void 0
|
|
22125
22126
|
};
|
|
22126
|
-
let
|
|
22127
|
-
for (;
|
|
22128
|
-
const Yt = ke[
|
|
22127
|
+
let Et = ke.length;
|
|
22128
|
+
for (; Et--; ) {
|
|
22129
|
+
const Yt = ke[Et], {
|
|
22129
22130
|
name: ft,
|
|
22130
22131
|
namespaceURI: Ot,
|
|
22131
22132
|
value: Tt
|
|
@@ -22158,7 +22159,7 @@ function cf() {
|
|
|
22158
22159
|
}
|
|
22159
22160
|
}
|
|
22160
22161
|
try {
|
|
22161
|
-
Ot ? oe.setAttributeNS(Ot, ft, ui) : oe.setAttribute(ft, ui), Je(oe) ? _e(oe) :
|
|
22162
|
+
Ot ? oe.setAttributeNS(Ot, ft, ui) : oe.setAttribute(ft, ui), Je(oe) ? _e(oe) : Ad(G.removed);
|
|
22162
22163
|
} catch {
|
|
22163
22164
|
}
|
|
22164
22165
|
}
|
|
@@ -22172,7 +22173,7 @@ function cf() {
|
|
|
22172
22173
|
Ge(vt.afterSanitizeShadowDOM, oe, null);
|
|
22173
22174
|
};
|
|
22174
22175
|
return G.sanitize = function(Xe) {
|
|
22175
|
-
let oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ke = null, He = null,
|
|
22176
|
+
let oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ke = null, He = null, Et = null, Yt = null;
|
|
22176
22177
|
if (R = !Xe, R && (Xe = "<!-->"), typeof Xe != "string" && !Pe(Xe))
|
|
22177
22178
|
if (typeof Xe.toString == "function") {
|
|
22178
22179
|
if (Xe = Xe.toString(), typeof Xe != "string")
|
|
@@ -22198,8 +22199,8 @@ function cf() {
|
|
|
22198
22199
|
}
|
|
22199
22200
|
ke && Rr && _e(ke.firstChild);
|
|
22200
22201
|
const ft = wt(or ? Xe : ke);
|
|
22201
|
-
for (;
|
|
22202
|
-
at(
|
|
22202
|
+
for (; Et = ft.nextNode(); )
|
|
22203
|
+
at(Et), $i(Et), Et.content instanceof De && ot(Et.content);
|
|
22203
22204
|
if (or)
|
|
22204
22205
|
return Xe;
|
|
22205
22206
|
if (Mi) {
|
|
@@ -22222,8 +22223,8 @@ function cf() {
|
|
|
22222
22223
|
ce = null, mr = !1;
|
|
22223
22224
|
}, G.isValidAttribute = function(Xe, oe, ke) {
|
|
22224
22225
|
ce || Oe({});
|
|
22225
|
-
const He = he(Xe),
|
|
22226
|
-
return Zt(He,
|
|
22226
|
+
const He = he(Xe), Et = he(oe);
|
|
22227
|
+
return Zt(He, Et, ke);
|
|
22227
22228
|
}, G.addHook = function(Xe, oe) {
|
|
22228
22229
|
typeof oe == "function" && zl(vt[Xe], oe);
|
|
22229
22230
|
}, G.removeHook = function(Xe, oe) {
|
|
@@ -22231,7 +22232,7 @@ function cf() {
|
|
|
22231
22232
|
const ke = Hg(vt[Xe], oe);
|
|
22232
22233
|
return ke === -1 ? void 0 : Wg(vt[Xe], ke, 1)[0];
|
|
22233
22234
|
}
|
|
22234
|
-
return
|
|
22235
|
+
return Ad(vt[Xe]);
|
|
22235
22236
|
}, G.removeHooks = function(Xe) {
|
|
22236
22237
|
vt[Xe] = [];
|
|
22237
22238
|
}, G.removeAllHooks = function() {
|
|
@@ -22258,16 +22259,16 @@ const h_ = 8, p_ = "Bright", d_ = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
22258
22259
|
}, P_ = {
|
|
22259
22260
|
key: 0,
|
|
22260
22261
|
class: "bg-blue-100 text-datagouv fr-hidden fr-unhidden-md p-4"
|
|
22261
|
-
}, S_ = { class: "fr-grid-row fr-grid-row--middle fr-grid-row--gutters" }, I_ = ["innerHTML"], C_ = { class: "fr-col" },
|
|
22262
|
+
}, S_ = { class: "fr-grid-row fr-grid-row--middle fr-grid-row--gutters" }, I_ = ["innerHTML"], C_ = { class: "fr-col" }, E_ = { class: "fr-text--bold fr-m-0" }, A_ = { class: "fr-text--sm fr-m-0 f-italic" }, z_ = { class: "fr-col-auto fr-my-0" }, k_ = {
|
|
22262
22263
|
ref: "containerRef",
|
|
22263
22264
|
style: { height: "600px" }
|
|
22264
|
-
}, D_ = { class: "fr-px-5v fr-pt-5v" },
|
|
22265
|
+
}, D_ = { class: "fr-px-5v fr-pt-5v" }, Z_ = /* @__PURE__ */ Wm({
|
|
22265
22266
|
__name: "Pmtiles.client",
|
|
22266
22267
|
props: {
|
|
22267
22268
|
resource: {}
|
|
22268
22269
|
},
|
|
22269
22270
|
setup(Q) {
|
|
22270
|
-
const G = Q, { t: K } =
|
|
22271
|
+
const G = Q, { t: K } = tg(), { formatDate: ae } = ig(), we = rg(), De = Xm(!1), S = Kc(() => G.resource.extras["analysis:parsing:pmtiles_url"]), c = Kc(() => we.pmtilesViewerBaseUrl ? `${we.pmtilesViewerBaseUrl}${encodeURIComponent(S.value)}` : null), rt = Kc(() => ae(G.resource.extras["analysis:parsing:finished_at"])), Qe = useTemplateRef("containerRef");
|
|
22271
22272
|
async function it() {
|
|
22272
22273
|
await Promise.resolve({ });
|
|
22273
22274
|
const $e = new zg();
|
|
@@ -22282,16 +22283,16 @@ const h_ = 8, p_ = "Bright", d_ = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
22282
22283
|
center: [pe.centerLon, pe.centerLat]
|
|
22283
22284
|
});
|
|
22284
22285
|
je.addControl(new Jc.NavigationControl());
|
|
22285
|
-
const
|
|
22286
|
+
const At = new Jc.Popup({
|
|
22286
22287
|
closeButton: !1,
|
|
22287
22288
|
closeOnClick: !1
|
|
22288
22289
|
});
|
|
22289
22290
|
function pi(di) {
|
|
22290
22291
|
if (!di.features || !di.features[0])
|
|
22291
|
-
|
|
22292
|
+
At.remove();
|
|
22292
22293
|
else {
|
|
22293
22294
|
const Kt = di.lngLat, Nt = Object.keys(di.features[0].properties).map((gt) => `<b>${Od.sanitize(gt)} :</b> ${Od.sanitize(di.features[0].properties[gt])}`).join("<br>");
|
|
22294
|
-
|
|
22295
|
+
At.setLngLat(Kt).setHTML(Nt).addTo(je);
|
|
22295
22296
|
}
|
|
22296
22297
|
}
|
|
22297
22298
|
je.on("load", () => {
|
|
@@ -22328,17 +22329,17 @@ const h_ = 8, p_ = "Bright", d_ = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
22328
22329
|
});
|
|
22329
22330
|
}).catch(() => De.value = !0);
|
|
22330
22331
|
}
|
|
22331
|
-
return
|
|
22332
|
+
return Km(() => {
|
|
22332
22333
|
it();
|
|
22333
22334
|
}), ($e, Fe) => (Yc(), wh("div", null, [
|
|
22334
|
-
De.value ? (Yc(),
|
|
22335
|
+
De.value ? (Yc(), Ym(ng, {
|
|
22335
22336
|
key: 0,
|
|
22336
22337
|
type: "warning",
|
|
22337
22338
|
class: "flex items-center space-x-2"
|
|
22338
22339
|
}, {
|
|
22339
22340
|
default: Sd(() => [
|
|
22340
|
-
Id(za(
|
|
22341
|
-
ia("span", null,
|
|
22341
|
+
Id(za(ag), { class: "shink-0 size-6" }),
|
|
22342
|
+
ia("span", null, Al(za(K)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
22342
22343
|
]),
|
|
22343
22344
|
_: 1
|
|
22344
22345
|
})) : (Yc(), wh("div", M_, [
|
|
@@ -22346,32 +22347,32 @@ const h_ = 8, p_ = "Bright", d_ = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
22346
22347
|
ia("div", S_, [
|
|
22347
22348
|
ia("div", {
|
|
22348
22349
|
class: "fr-col-auto",
|
|
22349
|
-
innerHTML: za(
|
|
22350
|
+
innerHTML: za(sg)
|
|
22350
22351
|
}, null, 8, I_),
|
|
22351
22352
|
ia("div", C_, [
|
|
22352
|
-
ia("p",
|
|
22353
|
-
ia("p",
|
|
22353
|
+
ia("p", E_, Al(za(K)("Explorer les données en détail")), 1),
|
|
22354
|
+
ia("p", A_, Al(za(K)("Utiliser un visualisateur PMTiles pour obtenir un aperçu des données.")), 1)
|
|
22354
22355
|
]),
|
|
22355
22356
|
ia("p", z_, [
|
|
22356
|
-
Id(
|
|
22357
|
+
Id(og, {
|
|
22357
22358
|
href: c.value,
|
|
22358
|
-
icon: za(
|
|
22359
|
+
icon: za(lg),
|
|
22359
22360
|
"icon-right": ""
|
|
22360
22361
|
}, {
|
|
22361
22362
|
default: Sd(() => [
|
|
22362
|
-
|
|
22363
|
+
Qm(Al(za(K)("Explorer la carte")), 1)
|
|
22363
22364
|
]),
|
|
22364
22365
|
_: 1
|
|
22365
22366
|
}, 8, ["href", "icon"])
|
|
22366
22367
|
])
|
|
22367
22368
|
])
|
|
22368
|
-
])) :
|
|
22369
|
+
])) : Jm("", !0),
|
|
22369
22370
|
ia("div", k_, null, 512),
|
|
22370
|
-
ia("div", D_,
|
|
22371
|
+
ia("div", D_, Al(za(K)("Aperçu de la carte mis à jour le {date}", { date: rt.value })), 1)
|
|
22371
22372
|
]))
|
|
22372
22373
|
]));
|
|
22373
22374
|
}
|
|
22374
22375
|
});
|
|
22375
22376
|
export {
|
|
22376
|
-
|
|
22377
|
+
Z_ as default
|
|
22377
22378
|
};
|