@opengis/gis 0.1.51 → 0.1.53
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/import-file.cjs +22 -22
- package/dist/import-file.js +371 -409
- package/module/gis/form/gis.maps.form.json +3 -3
- package/package.json +3 -10
- package/server/routes/gis/registers/gis.export.js +47 -47
package/dist/import-file.js
CHANGED
|
@@ -1027,10 +1027,10 @@ const ry = (u) => {
|
|
|
1027
1027
|
config: u,
|
|
1028
1028
|
request: Z
|
|
1029
1029
|
};
|
|
1030
|
-
ey(function(
|
|
1031
|
-
y(
|
|
1032
|
-
}, function(
|
|
1033
|
-
x(
|
|
1030
|
+
ey(function(Oe) {
|
|
1031
|
+
y(Oe), j();
|
|
1032
|
+
}, function(Oe) {
|
|
1033
|
+
x(Oe), j();
|
|
1034
1034
|
}, pe), Z = null;
|
|
1035
1035
|
}
|
|
1036
1036
|
"onloadend" in Z ? Z.onloadend = re : Z.onreadystatechange = function() {
|
|
@@ -1212,11 +1212,11 @@ const Yv = async (u) => {
|
|
|
1212
1212
|
duplex: "half"
|
|
1213
1213
|
}), Pe;
|
|
1214
1214
|
if (je.isFormData(x) && (Pe = pe.headers.get("content-type")) && I.setContentType(Pe), pe.body) {
|
|
1215
|
-
const [
|
|
1215
|
+
const [Oe, Ge] = Lm(
|
|
1216
1216
|
Z,
|
|
1217
1217
|
xh(Rm(D))
|
|
1218
1218
|
);
|
|
1219
|
-
x = Dm(pe.body, Bm,
|
|
1219
|
+
x = Dm(pe.body, Bm, Oe, Ge);
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
je.isString(O) || (O = O ? "include" : "omit");
|
|
@@ -1237,12 +1237,12 @@ const Yv = async (u) => {
|
|
|
1237
1237
|
["status", "statusText", "headers"].forEach((St) => {
|
|
1238
1238
|
pe[St] = se[St];
|
|
1239
1239
|
});
|
|
1240
|
-
const Pe = je.toFiniteNumber(se.headers.get("content-length")), [
|
|
1240
|
+
const Pe = je.toFiniteNumber(se.headers.get("content-length")), [Oe, Ge] = s && Lm(
|
|
1241
1241
|
Pe,
|
|
1242
1242
|
xh(Rm(s), !0)
|
|
1243
1243
|
) || [];
|
|
1244
1244
|
se = new Response(
|
|
1245
|
-
Dm(se.body, Bm,
|
|
1245
|
+
Dm(se.body, Bm, Oe, () => {
|
|
1246
1246
|
Ge && Ge(), j && j();
|
|
1247
1247
|
}),
|
|
1248
1248
|
pe
|
|
@@ -2116,12 +2116,12 @@ ${I}` : I;
|
|
|
2116
2116
|
for (; u; ) {
|
|
2117
2117
|
const Pe = u.split(`
|
|
2118
2118
|
`, 1)[0];
|
|
2119
|
-
let
|
|
2120
|
-
if (M = Pe, this.options.pedantic ? (M = M.replace(this.rules.other.listReplaceNesting, " "),
|
|
2119
|
+
let Oe;
|
|
2120
|
+
if (M = Pe, this.options.pedantic ? (M = M.replace(this.rules.other.listReplaceNesting, " "), Oe = M) : Oe = M.replace(this.rules.other.tabCharGlobal, " "), Te.test(M) || $.test(M) || pe.test(M) || re.test(M) || se.test(M))
|
|
2121
2121
|
break;
|
|
2122
|
-
if (
|
|
2122
|
+
if (Oe.search(this.rules.other.nonSpaceChar) >= k || !M.trim())
|
|
2123
2123
|
I += `
|
|
2124
|
-
` +
|
|
2124
|
+
` + Oe.slice(k);
|
|
2125
2125
|
else {
|
|
2126
2126
|
if (T || O.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Te.test(O) || $.test(O) || se.test(O))
|
|
2127
2127
|
break;
|
|
@@ -2129,7 +2129,7 @@ ${I}` : I;
|
|
|
2129
2129
|
` + M;
|
|
2130
2130
|
}
|
|
2131
2131
|
!T && !M.trim() && (T = !0), L += Pe + `
|
|
2132
|
-
`, u = u.substring(Pe.length + 1), O =
|
|
2132
|
+
`, u = u.substring(Pe.length + 1), O = Oe.slice(k);
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
2135
2135
|
A.loose || (v ? A.loose = !0 : this.rules.other.doubleBlankLine.test(L) && (v = !0));
|
|
@@ -3443,7 +3443,7 @@ function Nx() {
|
|
|
3443
3443
|
return se || !1;
|
|
3444
3444
|
}
|
|
3445
3445
|
var pe = 1e-6, Pe = typeof Float32Array < "u" ? Float32Array : Array;
|
|
3446
|
-
function
|
|
3446
|
+
function Oe() {
|
|
3447
3447
|
var n = new Pe(9);
|
|
3448
3448
|
return Pe != Float32Array && (n[1] = 0, n[2] = 0, n[3] = 0, n[5] = 0, n[6] = 0, n[7] = 0), n[0] = 1, n[4] = 1, n[8] = 1, n;
|
|
3449
3449
|
}
|
|
@@ -3482,7 +3482,7 @@ function Nx() {
|
|
|
3482
3482
|
var i = new Pe(2);
|
|
3483
3483
|
return i[0] = n, i[1] = t, i;
|
|
3484
3484
|
}
|
|
3485
|
-
St(), it = new Pe(4), Pe != Float32Array && (it[0] = 0, it[1] = 0, it[2] = 0, it[3] = 0), St(), Ye(1, 0, 0), Ye(0, 1, 0), vr(), vr(),
|
|
3485
|
+
St(), it = new Pe(4), Pe != Float32Array && (it[0] = 0, it[1] = 0, it[2] = 0, it[3] = 0), St(), Ye(1, 0, 0), Ye(0, 1, 0), vr(), vr(), Oe(), Er();
|
|
3486
3486
|
const ir = 8192;
|
|
3487
3487
|
function ln(n, t, i) {
|
|
3488
3488
|
return t * (ir / (n.tileSize * Math.pow(2, i - n.tileID.overscaledZ)));
|
|
@@ -3756,7 +3756,7 @@ function Nx() {
|
|
|
3756
3756
|
function wt(n, t) {
|
|
3757
3757
|
return n[t.id] = t, n;
|
|
3758
3758
|
}
|
|
3759
|
-
class
|
|
3759
|
+
class Fe {
|
|
3760
3760
|
constructor(t, i, o, c) {
|
|
3761
3761
|
this.message = (t ? `${t}: ` : "") + o, c && (this.identifier = c), i != null && i.__line__ && (this.line = i.__line__);
|
|
3762
3762
|
}
|
|
@@ -6162,7 +6162,7 @@ function Nx() {
|
|
|
6162
6162
|
}
|
|
6163
6163
|
function Ao(n) {
|
|
6164
6164
|
const t = n.value;
|
|
6165
|
-
return t ? [new
|
|
6165
|
+
return t ? [new Fe(n.key, t, "constants have been deprecated as of v8")] : [];
|
|
6166
6166
|
}
|
|
6167
6167
|
function qr(n) {
|
|
6168
6168
|
return n instanceof Number || n instanceof String || n instanceof Boolean ? n.valueOf() : n;
|
|
@@ -6180,7 +6180,7 @@ function Nx() {
|
|
|
6180
6180
|
const t = n.key, i = n.value, o = n.valueSpec || {}, c = n.objectElementValidators || {}, d = n.style, m = n.styleSpec, _ = n.validateSpec;
|
|
6181
6181
|
let w = [];
|
|
6182
6182
|
const C = Vt(i);
|
|
6183
|
-
if (C !== "object") return [new
|
|
6183
|
+
if (C !== "object") return [new Fe(t, i, `object expected, ${C} found`)];
|
|
6184
6184
|
for (const R in i) {
|
|
6185
6185
|
const B = R.split(".")[0], q = ro(o, B) || o["*"];
|
|
6186
6186
|
let N;
|
|
@@ -6189,21 +6189,21 @@ function Nx() {
|
|
|
6189
6189
|
else if (c["*"]) N = c["*"];
|
|
6190
6190
|
else {
|
|
6191
6191
|
if (!o["*"]) {
|
|
6192
|
-
w.push(new
|
|
6192
|
+
w.push(new Fe(t, i[R], `unknown property "${R}"`));
|
|
6193
6193
|
continue;
|
|
6194
6194
|
}
|
|
6195
6195
|
N = _;
|
|
6196
6196
|
}
|
|
6197
6197
|
w = w.concat(N({ key: (t && `${t}.`) + R, value: i[R], valueSpec: q, style: d, styleSpec: m, object: i, objectKey: R, validateSpec: _ }, i));
|
|
6198
6198
|
}
|
|
6199
|
-
for (const R in o) c[R] || o[R].required && o[R].default === void 0 && i[R] === void 0 && w.push(new
|
|
6199
|
+
for (const R in o) c[R] || o[R].required && o[R].default === void 0 && i[R] === void 0 && w.push(new Fe(t, i, `missing required property "${R}"`));
|
|
6200
6200
|
return w;
|
|
6201
6201
|
}
|
|
6202
6202
|
function Pl(n) {
|
|
6203
6203
|
const t = n.value, i = n.valueSpec, o = n.style, c = n.styleSpec, d = n.key, m = n.arrayElementValidator || n.validateSpec;
|
|
6204
|
-
if (Vt(t) !== "array") return [new
|
|
6205
|
-
if (i.length && t.length !== i.length) return [new
|
|
6206
|
-
if (i["min-length"] && t.length < i["min-length"]) return [new
|
|
6204
|
+
if (Vt(t) !== "array") return [new Fe(d, t, `array expected, ${Vt(t)} found`)];
|
|
6205
|
+
if (i.length && t.length !== i.length) return [new Fe(d, t, `array length ${i.length} expected, length ${t.length} found`)];
|
|
6206
|
+
if (i["min-length"] && t.length < i["min-length"]) return [new Fe(d, t, `array length at least ${i["min-length"]} expected, length ${t.length} found`)];
|
|
6207
6207
|
let _ = { type: i.value, values: i.values };
|
|
6208
6208
|
c.$version < 7 && (_.function = i.function), Vt(i.value) === "object" && (_ = i.value);
|
|
6209
6209
|
let w = [];
|
|
@@ -6213,90 +6213,90 @@ function Nx() {
|
|
|
6213
6213
|
function ko(n) {
|
|
6214
6214
|
const t = n.key, i = n.value, o = n.valueSpec;
|
|
6215
6215
|
let c = Vt(i);
|
|
6216
|
-
return c === "number" && i != i && (c = "NaN"), c !== "number" ? [new
|
|
6216
|
+
return c === "number" && i != i && (c = "NaN"), c !== "number" ? [new Fe(t, i, `number expected, ${c} found`)] : "minimum" in o && i < o.minimum ? [new Fe(t, i, `${i} is less than the minimum value ${o.minimum}`)] : "maximum" in o && i > o.maximum ? [new Fe(t, i, `${i} is greater than the maximum value ${o.maximum}`)] : [];
|
|
6217
6217
|
}
|
|
6218
6218
|
function Il(n) {
|
|
6219
6219
|
const t = n.valueSpec, i = qr(n.value.type);
|
|
6220
6220
|
let o, c, d, m = {};
|
|
6221
6221
|
const _ = i !== "categorical" && n.value.property === void 0, w = !_, C = Vt(n.value.stops) === "array" && Vt(n.value.stops[0]) === "array" && Vt(n.value.stops[0][0]) === "object", R = Hi({ key: n.key, value: n.value, valueSpec: n.styleSpec.function, validateSpec: n.validateSpec, style: n.style, styleSpec: n.styleSpec, objectElementValidators: { stops: function(N) {
|
|
6222
|
-
if (i === "identity") return [new
|
|
6222
|
+
if (i === "identity") return [new Fe(N.key, N.value, 'identity function may not have a "stops" property')];
|
|
6223
6223
|
let W = [];
|
|
6224
6224
|
const J = N.value;
|
|
6225
|
-
return W = W.concat(Pl({ key: N.key, value: J, valueSpec: N.valueSpec, validateSpec: N.validateSpec, style: N.style, styleSpec: N.styleSpec, arrayElementValidator: B })), Vt(J) === "array" && J.length === 0 && W.push(new
|
|
6225
|
+
return W = W.concat(Pl({ key: N.key, value: J, valueSpec: N.valueSpec, validateSpec: N.validateSpec, style: N.style, styleSpec: N.styleSpec, arrayElementValidator: B })), Vt(J) === "array" && J.length === 0 && W.push(new Fe(N.key, J, "array must have at least one stop")), W;
|
|
6226
6226
|
}, default: function(N) {
|
|
6227
6227
|
return N.validateSpec({ key: N.key, value: N.value, valueSpec: t, validateSpec: N.validateSpec, style: N.style, styleSpec: N.styleSpec });
|
|
6228
6228
|
} } });
|
|
6229
|
-
return i === "identity" && _ && R.push(new
|
|
6229
|
+
return i === "identity" && _ && R.push(new Fe(n.key, n.value, 'missing required property "property"')), i === "identity" || n.value.stops || R.push(new Fe(n.key, n.value, 'missing required property "stops"')), i === "exponential" && n.valueSpec.expression && !ma(n.valueSpec) && R.push(new Fe(n.key, n.value, "exponential functions not supported")), n.styleSpec.$version >= 8 && (w && !Bs(n.valueSpec) ? R.push(new Fe(n.key, n.value, "property functions not supported")) : _ && !Yc(n.valueSpec) && R.push(new Fe(n.key, n.value, "zoom functions not supported"))), i !== "categorical" && !C || n.value.property !== void 0 || R.push(new Fe(n.key, n.value, '"property" property is required')), R;
|
|
6230
6230
|
function B(N) {
|
|
6231
6231
|
let W = [];
|
|
6232
6232
|
const J = N.value, ee = N.key;
|
|
6233
|
-
if (Vt(J) !== "array") return [new
|
|
6234
|
-
if (J.length !== 2) return [new
|
|
6233
|
+
if (Vt(J) !== "array") return [new Fe(ee, J, `array expected, ${Vt(J)} found`)];
|
|
6234
|
+
if (J.length !== 2) return [new Fe(ee, J, `array length 2 expected, length ${J.length} found`)];
|
|
6235
6235
|
if (C) {
|
|
6236
|
-
if (Vt(J[0]) !== "object") return [new
|
|
6237
|
-
if (J[0].zoom === void 0) return [new
|
|
6238
|
-
if (J[0].value === void 0) return [new
|
|
6239
|
-
if (d && d > qr(J[0].zoom)) return [new
|
|
6236
|
+
if (Vt(J[0]) !== "object") return [new Fe(ee, J, `object expected, ${Vt(J[0])} found`)];
|
|
6237
|
+
if (J[0].zoom === void 0) return [new Fe(ee, J, "object stop key must have zoom")];
|
|
6238
|
+
if (J[0].value === void 0) return [new Fe(ee, J, "object stop key must have value")];
|
|
6239
|
+
if (d && d > qr(J[0].zoom)) return [new Fe(ee, J[0].zoom, "stop zoom values must appear in ascending order")];
|
|
6240
6240
|
qr(J[0].zoom) !== d && (d = qr(J[0].zoom), c = void 0, m = {}), W = W.concat(Hi({ key: `${ee}[0]`, value: J[0], valueSpec: { zoom: {} }, validateSpec: N.validateSpec, style: N.style, styleSpec: N.styleSpec, objectElementValidators: { zoom: ko, value: q } }));
|
|
6241
6241
|
} else W = W.concat(q({ key: `${ee}[0]`, value: J[0], validateSpec: N.validateSpec, style: N.style, styleSpec: N.styleSpec }, J));
|
|
6242
|
-
return vo(Un(J[1])) ? W.concat([new
|
|
6242
|
+
return vo(Un(J[1])) ? W.concat([new Fe(`${ee}[1]`, J[1], "expressions are not allowed in function stops.")]) : W.concat(N.validateSpec({ key: `${ee}[1]`, value: J[1], valueSpec: t, validateSpec: N.validateSpec, style: N.style, styleSpec: N.styleSpec }));
|
|
6243
6243
|
}
|
|
6244
6244
|
function q(N, W) {
|
|
6245
6245
|
const J = Vt(N.value), ee = qr(N.value), le = N.value !== null ? N.value : W;
|
|
6246
6246
|
if (o) {
|
|
6247
|
-
if (J !== o) return [new
|
|
6247
|
+
if (J !== o) return [new Fe(N.key, le, `${J} stop domain type must match previous stop domain type ${o}`)];
|
|
6248
6248
|
} else o = J;
|
|
6249
|
-
if (J !== "number" && J !== "string" && J !== "boolean") return [new
|
|
6249
|
+
if (J !== "number" && J !== "string" && J !== "boolean") return [new Fe(N.key, le, "stop domain value must be a number, string, or boolean")];
|
|
6250
6250
|
if (J !== "number" && i !== "categorical") {
|
|
6251
6251
|
let ve = `number expected, ${J} found`;
|
|
6252
|
-
return Bs(t) && i === void 0 && (ve += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new
|
|
6252
|
+
return Bs(t) && i === void 0 && (ve += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Fe(N.key, le, ve)];
|
|
6253
6253
|
}
|
|
6254
|
-
return i !== "categorical" || J !== "number" || isFinite(ee) && Math.floor(ee) === ee ? i !== "categorical" && J === "number" && c !== void 0 && ee < c ? [new
|
|
6254
|
+
return i !== "categorical" || J !== "number" || isFinite(ee) && Math.floor(ee) === ee ? i !== "categorical" && J === "number" && c !== void 0 && ee < c ? [new Fe(N.key, le, "stop domain values must appear in ascending order")] : (c = ee, i === "categorical" && ee in m ? [new Fe(N.key, le, "stop domain values must be unique")] : (m[ee] = !0, [])) : [new Fe(N.key, le, `integer expected, found ${ee}`)];
|
|
6255
6255
|
}
|
|
6256
6256
|
}
|
|
6257
6257
|
function bn(n) {
|
|
6258
6258
|
const t = (n.expressionContext === "property" ? kl : va)(Un(n.value), n.valueSpec);
|
|
6259
|
-
if (t.result === "error") return t.value.map((o) => new
|
|
6259
|
+
if (t.result === "error") return t.value.map((o) => new Fe(`${n.key}${o.key}`, n.value, o.message));
|
|
6260
6260
|
const i = t.value.expression || t.value._styleExpression.expression;
|
|
6261
|
-
if (n.expressionContext === "property" && n.propertyKey === "text-font" && !i.outputDefined()) return [new
|
|
6262
|
-
if (n.expressionContext === "property" && n.propertyType === "layout" && !yo(i)) return [new
|
|
6263
|
-
if (n.expressionContext === "filter" && !yo(i)) return [new
|
|
6261
|
+
if (n.expressionContext === "property" && n.propertyKey === "text-font" && !i.outputDefined()) return [new Fe(n.key, n.value, `Invalid data expression for "${n.propertyKey}". Output values must be contained as literals within the expression.`)];
|
|
6262
|
+
if (n.expressionContext === "property" && n.propertyType === "layout" && !yo(i)) return [new Fe(n.key, n.value, '"feature-state" data expressions are not supported with layout properties.')];
|
|
6263
|
+
if (n.expressionContext === "filter" && !yo(i)) return [new Fe(n.key, n.value, '"feature-state" data expressions are not supported with filters.')];
|
|
6264
6264
|
if (n.expressionContext && n.expressionContext.indexOf("cluster") === 0) {
|
|
6265
|
-
if (!da(i, ["zoom", "feature-state"])) return [new
|
|
6266
|
-
if (n.expressionContext === "cluster-initial" && !pa(i)) return [new
|
|
6265
|
+
if (!da(i, ["zoom", "feature-state"])) return [new Fe(n.key, n.value, '"zoom" and "feature-state" expressions are not supported with cluster properties.')];
|
|
6266
|
+
if (n.expressionContext === "cluster-initial" && !pa(i)) return [new Fe(n.key, n.value, "Feature data expressions are not supported with initial expression part of cluster properties.")];
|
|
6267
6267
|
}
|
|
6268
6268
|
return [];
|
|
6269
6269
|
}
|
|
6270
6270
|
function El(n) {
|
|
6271
6271
|
const t = n.key, i = n.value, o = Vt(i);
|
|
6272
|
-
return o !== "string" ? [new
|
|
6272
|
+
return o !== "string" ? [new Fe(t, i, `color expected, ${o} found`)] : Ht.parse(String(i)) ? [] : [new Fe(t, i, `color expected, "${i}" found`)];
|
|
6273
6273
|
}
|
|
6274
6274
|
function To(n) {
|
|
6275
6275
|
const t = n.key, i = n.value, o = n.valueSpec, c = [];
|
|
6276
|
-
return Array.isArray(o.values) ? o.values.indexOf(qr(i)) === -1 && c.push(new
|
|
6276
|
+
return Array.isArray(o.values) ? o.values.indexOf(qr(i)) === -1 && c.push(new Fe(t, i, `expected one of [${o.values.join(", ")}], ${JSON.stringify(i)} found`)) : Object.keys(o.values).indexOf(qr(i)) === -1 && c.push(new Fe(t, i, `expected one of [${Object.keys(o.values).join(", ")}], ${JSON.stringify(i)} found`)), c;
|
|
6277
6277
|
}
|
|
6278
6278
|
function Ml(n) {
|
|
6279
6279
|
return wo(Un(n.value)) ? bn(er({}, n, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : nu(n);
|
|
6280
6280
|
}
|
|
6281
6281
|
function nu(n) {
|
|
6282
6282
|
const t = n.value, i = n.key;
|
|
6283
|
-
if (Vt(t) !== "array") return [new
|
|
6283
|
+
if (Vt(t) !== "array") return [new Fe(i, t, `array expected, ${Vt(t)} found`)];
|
|
6284
6284
|
const o = n.styleSpec;
|
|
6285
6285
|
let c, d = [];
|
|
6286
|
-
if (t.length < 1) return [new
|
|
6286
|
+
if (t.length < 1) return [new Fe(i, t, "filter array must have at least 1 element")];
|
|
6287
6287
|
switch (d = d.concat(To({ key: `${i}[0]`, value: t[0], valueSpec: o.filter_operator, style: n.style, styleSpec: n.styleSpec })), qr(t[0])) {
|
|
6288
6288
|
case "<":
|
|
6289
6289
|
case "<=":
|
|
6290
6290
|
case ">":
|
|
6291
6291
|
case ">=":
|
|
6292
|
-
t.length >= 2 && qr(t[1]) === "$type" && d.push(new
|
|
6292
|
+
t.length >= 2 && qr(t[1]) === "$type" && d.push(new Fe(i, t, `"$type" cannot be use with operator "${t[0]}"`));
|
|
6293
6293
|
case "==":
|
|
6294
6294
|
case "!=":
|
|
6295
|
-
t.length !== 3 && d.push(new
|
|
6295
|
+
t.length !== 3 && d.push(new Fe(i, t, `filter array for operator "${t[0]}" must have 3 elements`));
|
|
6296
6296
|
case "in":
|
|
6297
6297
|
case "!in":
|
|
6298
|
-
t.length >= 2 && (c = Vt(t[1]), c !== "string" && d.push(new
|
|
6299
|
-
for (let m = 2; m < t.length; m++) c = Vt(t[m]), qr(t[1]) === "$type" ? d = d.concat(To({ key: `${i}[${m}]`, value: t[m], valueSpec: o.geometry_type, style: n.style, styleSpec: n.styleSpec })) : c !== "string" && c !== "number" && c !== "boolean" && d.push(new
|
|
6298
|
+
t.length >= 2 && (c = Vt(t[1]), c !== "string" && d.push(new Fe(`${i}[1]`, t[1], `string expected, ${c} found`)));
|
|
6299
|
+
for (let m = 2; m < t.length; m++) c = Vt(t[m]), qr(t[1]) === "$type" ? d = d.concat(To({ key: `${i}[${m}]`, value: t[m], valueSpec: o.geometry_type, style: n.style, styleSpec: n.styleSpec })) : c !== "string" && c !== "number" && c !== "boolean" && d.push(new Fe(`${i}[${m}]`, t[m], `string, number, or boolean expected, ${c} found`));
|
|
6300
6300
|
break;
|
|
6301
6301
|
case "any":
|
|
6302
6302
|
case "all":
|
|
@@ -6305,7 +6305,7 @@ function Nx() {
|
|
|
6305
6305
|
break;
|
|
6306
6306
|
case "has":
|
|
6307
6307
|
case "!has":
|
|
6308
|
-
c = Vt(t[1]), t.length !== 2 ? d.push(new
|
|
6308
|
+
c = Vt(t[1]), t.length !== 2 ? d.push(new Fe(i, t, `filter array for "${t[0]}" operator must have 2 elements`)) : c !== "string" && d.push(new Fe(`${i}[1]`, t[1], `string expected, ${c} found`));
|
|
6309
6309
|
}
|
|
6310
6310
|
return d;
|
|
6311
6311
|
}
|
|
@@ -6315,12 +6315,12 @@ function Nx() {
|
|
|
6315
6315
|
const C = _.match(/^(.*)-transition$/);
|
|
6316
6316
|
if (t === "paint" && C && w[C[1]] && w[C[1]].transition) return o({ key: i, value: m, valueSpec: d.transition, style: c, styleSpec: d });
|
|
6317
6317
|
const R = n.valueSpec || w[_];
|
|
6318
|
-
if (!R) return [new
|
|
6318
|
+
if (!R) return [new Fe(i, m, `unknown property "${_}"`)];
|
|
6319
6319
|
let B;
|
|
6320
|
-
if (Vt(m) === "string" && Bs(R) && !R.tokens && (B = /^{([^}]+)}$/.exec(m))) return [new
|
|
6320
|
+
if (Vt(m) === "string" && Bs(R) && !R.tokens && (B = /^{([^}]+)}$/.exec(m))) return [new Fe(i, m, `"${_}" does not support interpolation syntax
|
|
6321
6321
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];
|
|
6322
6322
|
const q = [];
|
|
6323
|
-
return n.layerType === "symbol" && (_ === "text-field" && c && !c.glyphs && q.push(new
|
|
6323
|
+
return n.layerType === "symbol" && (_ === "text-field" && c && !c.glyphs && q.push(new Fe(i, m, 'use of "text-field" requires a style "glyphs" property')), _ === "text-font" && ga(Un(m)) && qr(m.type) === "identity" && q.push(new Fe(i, m, '"text-font" does not support identity functions'))), q.concat(o({ key: n.key, value: m, valueSpec: R, style: c, styleSpec: d, expressionContext: "property", propertyType: t, propertyKey: _ }));
|
|
6324
6324
|
}
|
|
6325
6325
|
function ou(n) {
|
|
6326
6326
|
return su(n, "paint");
|
|
@@ -6331,33 +6331,33 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6331
6331
|
function Fs(n) {
|
|
6332
6332
|
let t = [];
|
|
6333
6333
|
const i = n.value, o = n.key, c = n.style, d = n.styleSpec;
|
|
6334
|
-
if (Vt(i) !== "object") return [new
|
|
6335
|
-
i.type || i.ref || t.push(new
|
|
6334
|
+
if (Vt(i) !== "object") return [new Fe(o, i, `object expected, ${Vt(i)} found`)];
|
|
6335
|
+
i.type || i.ref || t.push(new Fe(o, i, 'either "type" or "ref" is required'));
|
|
6336
6336
|
let m = qr(i.type);
|
|
6337
6337
|
const _ = qr(i.ref);
|
|
6338
6338
|
if (i.id) {
|
|
6339
6339
|
const w = qr(i.id);
|
|
6340
6340
|
for (let C = 0; C < n.arrayIndex; C++) {
|
|
6341
6341
|
const R = c.layers[C];
|
|
6342
|
-
qr(R.id) === w && t.push(new
|
|
6342
|
+
qr(R.id) === w && t.push(new Fe(o, i.id, `duplicate layer id "${i.id}", previously used at line ${R.id.__line__}`));
|
|
6343
6343
|
}
|
|
6344
6344
|
}
|
|
6345
6345
|
if ("ref" in i) {
|
|
6346
6346
|
let w;
|
|
6347
6347
|
["type", "source", "source-layer", "filter", "layout"].forEach((C) => {
|
|
6348
|
-
C in i && t.push(new
|
|
6348
|
+
C in i && t.push(new Fe(o, i[C], `"${C}" is prohibited for ref layers`));
|
|
6349
6349
|
}), c.layers.forEach((C) => {
|
|
6350
6350
|
qr(C.id) === _ && (w = C);
|
|
6351
|
-
}), w ? w.ref ? t.push(new
|
|
6351
|
+
}), w ? w.ref ? t.push(new Fe(o, i.ref, "ref cannot reference another ref layer")) : m = qr(w.type) : t.push(new Fe(o, i.ref, `ref layer "${_}" not found`));
|
|
6352
6352
|
} else if (m !== "background") if (i.source) {
|
|
6353
6353
|
const w = c.sources && c.sources[i.source], C = w && qr(w.type);
|
|
6354
|
-
w ? C === "vector" && m === "raster" ? t.push(new
|
|
6355
|
-
} else t.push(new
|
|
6354
|
+
w ? C === "vector" && m === "raster" ? t.push(new Fe(o, i.source, `layer "${i.id}" requires a raster source`)) : C !== "raster-dem" && m === "hillshade" ? t.push(new Fe(o, i.source, `layer "${i.id}" requires a raster-dem source`)) : C === "raster" && m !== "raster" ? t.push(new Fe(o, i.source, `layer "${i.id}" requires a vector source`)) : C !== "vector" || i["source-layer"] ? C === "raster-dem" && m !== "hillshade" ? t.push(new Fe(o, i.source, "raster-dem source can only be used with layer type 'hillshade'.")) : m !== "line" || !i.paint || !i.paint["line-gradient"] || C === "geojson" && w.lineMetrics || t.push(new Fe(o, i, `layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : t.push(new Fe(o, i, `layer "${i.id}" must specify a "source-layer"`)) : t.push(new Fe(o, i.source, `source "${i.source}" not found`));
|
|
6355
|
+
} else t.push(new Fe(o, i, 'missing required property "source"'));
|
|
6356
6356
|
return t = t.concat(Hi({ key: o, value: i, valueSpec: d.layer, style: n.style, styleSpec: n.styleSpec, validateSpec: n.validateSpec, objectElementValidators: { "*": () => [], type: () => n.validateSpec({ key: `${o}.type`, value: i.type, valueSpec: d.layer.type, style: n.style, styleSpec: n.styleSpec, validateSpec: n.validateSpec, object: i, objectKey: "type" }), filter: Ml, layout: (w) => Hi({ layer: i, key: w.key, value: w.value, style: w.style, styleSpec: w.styleSpec, validateSpec: w.validateSpec, objectElementValidators: { "*": (C) => Os(er({ layerType: m }, C)) } }), paint: (w) => Hi({ layer: i, key: w.key, value: w.value, style: w.style, styleSpec: w.styleSpec, validateSpec: w.validateSpec, objectElementValidators: { "*": (C) => ou(er({ layerType: m }, C)) } }) } })), t;
|
|
6357
6357
|
}
|
|
6358
6358
|
function Xr(n) {
|
|
6359
6359
|
const t = n.value, i = n.key, o = Vt(t);
|
|
6360
|
-
return o !== "string" ? [new
|
|
6360
|
+
return o !== "string" ? [new Fe(i, t, `string expected, ${o} found`)] : [];
|
|
6361
6361
|
}
|
|
6362
6362
|
const Vs = { promoteId: function({ key: n, value: t }) {
|
|
6363
6363
|
if (Vt(t) === "string") return Xr({ key: n, value: t });
|
|
@@ -6369,7 +6369,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6369
6369
|
} };
|
|
6370
6370
|
function Ll(n) {
|
|
6371
6371
|
const t = n.value, i = n.key, o = n.styleSpec, c = n.style, d = n.validateSpec;
|
|
6372
|
-
if (!t.type) return [new
|
|
6372
|
+
if (!t.type) return [new Fe(i, t, '"type" is required')];
|
|
6373
6373
|
const m = qr(t.type);
|
|
6374
6374
|
let _;
|
|
6375
6375
|
switch (m) {
|
|
@@ -6383,9 +6383,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6383
6383
|
let J = [];
|
|
6384
6384
|
const ee = Vt(B);
|
|
6385
6385
|
if (B === void 0) return J;
|
|
6386
|
-
if (ee !== "object") return J.push(new
|
|
6386
|
+
if (ee !== "object") return J.push(new Fe("source_raster_dem", B, `object expected, ${ee} found`)), J;
|
|
6387
6387
|
const le = qr(B.encoding) === "custom", ve = ["redFactor", "greenFactor", "blueFactor", "baseShift"], ue = w.value.encoding ? `"${w.value.encoding}"` : "Default";
|
|
6388
|
-
for (const U in B) !le && ve.includes(U) ? J.push(new
|
|
6388
|
+
for (const U in B) !le && ve.includes(U) ? J.push(new Fe(U, B[U], `In "${R}": "${U}" is only valid when "encoding" is set to "custom". ${ue} encoding found`)) : N[U] ? J = J.concat(w.validateSpec({ key: U, value: B[U], valueSpec: N[U], validateSpec: w.validateSpec, style: W, styleSpec: q })) : J.push(new Fe(U, B[U], `unknown property "${U}"`));
|
|
6389
6389
|
return J;
|
|
6390
6390
|
}({ sourceName: i, value: t, style: n.style, styleSpec: o, validateSpec: d }), _;
|
|
6391
6391
|
case "geojson":
|
|
@@ -6399,7 +6399,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6399
6399
|
case "image":
|
|
6400
6400
|
return Hi({ key: i, value: t, valueSpec: o.source_image, style: c, validateSpec: d, styleSpec: o });
|
|
6401
6401
|
case "canvas":
|
|
6402
|
-
return [new
|
|
6402
|
+
return [new Fe(i, null, "Please use runtime APIs to add canvas sources, rather than including them in stylesheets.", "source.canvas")];
|
|
6403
6403
|
default:
|
|
6404
6404
|
return To({ key: `${i}.type`, value: t.type, valueSpec: { values: ["vector", "raster", "raster-dem", "geojson", "video", "image"] } });
|
|
6405
6405
|
}
|
|
@@ -6409,19 +6409,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6409
6409
|
let d = [];
|
|
6410
6410
|
const m = Vt(t);
|
|
6411
6411
|
if (t === void 0) return d;
|
|
6412
|
-
if (m !== "object") return d = d.concat([new
|
|
6412
|
+
if (m !== "object") return d = d.concat([new Fe("light", t, `object expected, ${m} found`)]), d;
|
|
6413
6413
|
for (const _ in t) {
|
|
6414
6414
|
const w = _.match(/^(.*)-transition$/);
|
|
6415
|
-
d = d.concat(w && o[w[1]] && o[w[1]].transition ? n.validateSpec({ key: _, value: t[_], valueSpec: i.transition, validateSpec: n.validateSpec, style: c, styleSpec: i }) : o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], validateSpec: n.validateSpec, style: c, styleSpec: i }) : [new
|
|
6415
|
+
d = d.concat(w && o[w[1]] && o[w[1]].transition ? n.validateSpec({ key: _, value: t[_], valueSpec: i.transition, validateSpec: n.validateSpec, style: c, styleSpec: i }) : o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], validateSpec: n.validateSpec, style: c, styleSpec: i }) : [new Fe(_, t[_], `unknown property "${_}"`)]);
|
|
6416
6416
|
}
|
|
6417
6417
|
return d;
|
|
6418
6418
|
}
|
|
6419
6419
|
function lu(n) {
|
|
6420
6420
|
const t = n.value, i = n.styleSpec, o = i.sky, c = n.style, d = Vt(t);
|
|
6421
6421
|
if (t === void 0) return [];
|
|
6422
|
-
if (d !== "object") return [new
|
|
6422
|
+
if (d !== "object") return [new Fe("sky", t, `object expected, ${d} found`)];
|
|
6423
6423
|
let m = [];
|
|
6424
|
-
for (const _ in t) m = m.concat(o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], style: c, styleSpec: i }) : [new
|
|
6424
|
+
for (const _ in t) m = m.concat(o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], style: c, styleSpec: i }) : [new Fe(_, t[_], `unknown property "${_}"`)]);
|
|
6425
6425
|
return m;
|
|
6426
6426
|
}
|
|
6427
6427
|
function qs(n) {
|
|
@@ -6429,8 +6429,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6429
6429
|
let d = [];
|
|
6430
6430
|
const m = Vt(t);
|
|
6431
6431
|
if (t === void 0) return d;
|
|
6432
|
-
if (m !== "object") return d = d.concat([new
|
|
6433
|
-
for (const _ in t) d = d.concat(o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], validateSpec: n.validateSpec, style: c, styleSpec: i }) : [new
|
|
6432
|
+
if (m !== "object") return d = d.concat([new Fe("terrain", t, `object expected, ${m} found`)]), d;
|
|
6433
|
+
for (const _ in t) d = d.concat(o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], validateSpec: n.validateSpec, style: c, styleSpec: i }) : [new Fe(_, t[_], `unknown property "${_}"`)]);
|
|
6434
6434
|
return d;
|
|
6435
6435
|
}
|
|
6436
6436
|
function Rl(n) {
|
|
@@ -6438,24 +6438,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6438
6438
|
const i = n.value, o = n.key;
|
|
6439
6439
|
if (Array.isArray(i)) {
|
|
6440
6440
|
const c = [], d = [];
|
|
6441
|
-
for (const m in i) i[m].id && c.includes(i[m].id) && t.push(new
|
|
6441
|
+
for (const m in i) i[m].id && c.includes(i[m].id) && t.push(new Fe(o, i, `all the sprites' ids must be unique, but ${i[m].id} is duplicated`)), c.push(i[m].id), i[m].url && d.includes(i[m].url) && t.push(new Fe(o, i, `all the sprites' URLs must be unique, but ${i[m].url} is duplicated`)), d.push(i[m].url), t = t.concat(Hi({ key: `${o}[${m}]`, value: i[m], valueSpec: { id: { type: "string", required: !0 }, url: { type: "string", required: !0 } }, validateSpec: n.validateSpec }));
|
|
6442
6442
|
return t;
|
|
6443
6443
|
}
|
|
6444
6444
|
return Xr({ key: o, value: i });
|
|
6445
6445
|
}
|
|
6446
6446
|
function ka(n) {
|
|
6447
|
-
return t = n.value, t && t.constructor === Object ? [] : [new
|
|
6447
|
+
return t = n.value, t && t.constructor === Object ? [] : [new Fe(n.key, n.value, `object expected, ${Vt(n.value)} found`)];
|
|
6448
6448
|
var t;
|
|
6449
6449
|
}
|
|
6450
6450
|
const cu = { "*": () => [], array: Pl, boolean: function(n) {
|
|
6451
6451
|
const t = n.value, i = n.key, o = Vt(t);
|
|
6452
|
-
return o !== "boolean" ? [new
|
|
6452
|
+
return o !== "boolean" ? [new Fe(i, t, `boolean expected, ${o} found`)] : [];
|
|
6453
6453
|
}, number: ko, color: El, constants: Ao, enum: To, filter: Ml, function: Il, layer: Fs, object: Hi, source: Ll, light: au, sky: lu, terrain: qs, projection: function(n) {
|
|
6454
6454
|
const t = n.value, i = n.styleSpec, o = i.projection, c = n.style, d = Vt(t);
|
|
6455
6455
|
if (t === void 0) return [];
|
|
6456
|
-
if (d !== "object") return [new
|
|
6456
|
+
if (d !== "object") return [new Fe("projection", t, `object expected, ${d} found`)];
|
|
6457
6457
|
let m = [];
|
|
6458
|
-
for (const _ in t) m = m.concat(o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], style: c, styleSpec: i }) : [new
|
|
6458
|
+
for (const _ in t) m = m.concat(o[_] ? n.validateSpec({ key: _, value: t[_], valueSpec: o[_], style: c, styleSpec: i }) : [new Fe(_, t[_], `unknown property "${_}"`)]);
|
|
6459
6459
|
return m;
|
|
6460
6460
|
}, projectionDefinition: function(n) {
|
|
6461
6461
|
const t = n.key;
|
|
@@ -6466,7 +6466,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6466
6466
|
return Array.isArray(c) && c.length === 3 && typeof c[0] == "string" && typeof c[1] == "string" && typeof c[2] == "number";
|
|
6467
6467
|
}(i) || function(c) {
|
|
6468
6468
|
return !!["interpolate", "step", "literal"].includes(c[0]);
|
|
6469
|
-
}(i) ? ["array", "string"].includes(o) ? [] : [new
|
|
6469
|
+
}(i) ? ["array", "string"].includes(o) ? [] : [new Fe(t, i, `projection expected, invalid type "${o}" found`)] : [new Fe(t, i, `projection expected, invalid array ${JSON.stringify(i)} found`)];
|
|
6470
6470
|
}, string: Xr, formatted: function(n) {
|
|
6471
6471
|
return Xr(n).length === 0 ? [] : bn(n);
|
|
6472
6472
|
}, resolvedImage: function(n) {
|
|
@@ -6474,7 +6474,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6474
6474
|
}, padding: function(n) {
|
|
6475
6475
|
const t = n.key, i = n.value;
|
|
6476
6476
|
if (Vt(i) === "array") {
|
|
6477
|
-
if (i.length < 1 || i.length > 4) return [new
|
|
6477
|
+
if (i.length < 1 || i.length > 4) return [new Fe(t, i, `padding requires 1 to 4 values; ${i.length} values found`)];
|
|
6478
6478
|
const o = { type: "number" };
|
|
6479
6479
|
let c = [];
|
|
6480
6480
|
for (let d = 0; d < i.length; d++) c = c.concat(n.validateSpec({ key: `${t}[${d}]`, value: i[d], validateSpec: n.validateSpec, valueSpec: o }));
|
|
@@ -6485,7 +6485,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6485
6485
|
const t = n.key, i = n.value;
|
|
6486
6486
|
if (Vt(i) === "array") {
|
|
6487
6487
|
const o = { type: "number" };
|
|
6488
|
-
if (i.length < 1) return [new
|
|
6488
|
+
if (i.length < 1) return [new Fe(t, i, "array length at least 1 expected, length 0 found")];
|
|
6489
6489
|
let c = [];
|
|
6490
6490
|
for (let d = 0; d < i.length; d++) c = c.concat(n.validateSpec({ key: `${t}[${d}]`, value: i[d], validateSpec: n.validateSpec, valueSpec: o }));
|
|
6491
6491
|
return c;
|
|
@@ -6494,7 +6494,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6494
6494
|
}, colorArray: function(n) {
|
|
6495
6495
|
const t = n.key, i = n.value;
|
|
6496
6496
|
if (Vt(i) === "array") {
|
|
6497
|
-
if (i.length < 1) return [new
|
|
6497
|
+
if (i.length < 1) return [new Fe(t, i, "array length at least 1 expected, length 0 found")];
|
|
6498
6498
|
let o = [];
|
|
6499
6499
|
for (let c = 0; c < i.length; c++) o = o.concat(El({ key: `${t}[${c}]`, value: i[c] }));
|
|
6500
6500
|
return o;
|
|
@@ -6502,7 +6502,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6502
6502
|
return El({ key: t, value: i });
|
|
6503
6503
|
}, variableAnchorOffsetCollection: function(n) {
|
|
6504
6504
|
const t = n.key, i = n.value, o = Vt(i), c = n.styleSpec;
|
|
6505
|
-
if (o !== "array" || i.length < 1 || i.length % 2 != 0) return [new
|
|
6505
|
+
if (o !== "array" || i.length < 1 || i.length % 2 != 0) return [new Fe(t, i, "variableAnchorOffsetCollection requires a non-empty array of even length")];
|
|
6506
6506
|
let d = [];
|
|
6507
6507
|
for (let m = 0; m < i.length; m += 2) d = d.concat(To({ key: `${t}[${m}]`, value: i[m], valueSpec: c.layout_symbol["text-anchor"] })), d = d.concat(Pl({ key: `${t}[${m + 1}]`, value: i[m + 1], valueSpec: { length: 2, value: "number" }, validateSpec: n.validateSpec, style: n.style, styleSpec: c }));
|
|
6508
6508
|
return d;
|
|
@@ -6513,7 +6513,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6513
6513
|
}
|
|
6514
6514
|
function uu(n) {
|
|
6515
6515
|
const t = n.value, i = n.key, o = Xr(n);
|
|
6516
|
-
return o.length || (t.indexOf("{fontstack}") === -1 && o.push(new
|
|
6516
|
+
return o.length || (t.indexOf("{fontstack}") === -1 && o.push(new Fe(i, t, '"glyphs" url must include a "{fontstack}" token')), t.indexOf("{range}") === -1 && o.push(new Fe(i, t, '"glyphs" url must include a "{range}" token'))), o;
|
|
6517
6517
|
}
|
|
6518
6518
|
function wi(n, t = te) {
|
|
6519
6519
|
let i = [];
|
|
@@ -7400,13 +7400,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7400
7400
|
_refreshViews() {
|
|
7401
7401
|
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);
|
|
7402
7402
|
}
|
|
7403
|
-
emplaceBack(t, i, o, c, d, m, _, w, C, R, B, q, N, W, J, ee, le, ve, ue, U, Y, de, Ee, He, Re,
|
|
7403
|
+
emplaceBack(t, i, o, c, d, m, _, w, C, R, B, q, N, W, J, ee, le, ve, ue, U, Y, de, Ee, He, Re, Ve, Je, Ze) {
|
|
7404
7404
|
const Xe = this.length;
|
|
7405
|
-
return this.resize(Xe + 1), this.emplace(Xe, t, i, o, c, d, m, _, w, C, R, B, q, N, W, J, ee, le, ve, ue, U, Y, de, Ee, He, Re,
|
|
7405
|
+
return this.resize(Xe + 1), this.emplace(Xe, t, i, o, c, d, m, _, w, C, R, B, q, N, W, J, ee, le, ve, ue, U, Y, de, Ee, He, Re, Ve, Je, Ze);
|
|
7406
7406
|
}
|
|
7407
|
-
emplace(t, i, o, c, d, m, _, w, C, R, B, q, N, W, J, ee, le, ve, ue, U, Y, de, Ee, He, Re,
|
|
7407
|
+
emplace(t, i, o, c, d, m, _, w, C, R, B, q, N, W, J, ee, le, ve, ue, U, Y, de, Ee, He, Re, Ve, Je, Ze, Xe) {
|
|
7408
7408
|
const Ue = 32 * t, lt = 16 * t;
|
|
7409
|
-
return this.int16[Ue + 0] = i, this.int16[Ue + 1] = o, this.int16[Ue + 2] = c, this.int16[Ue + 3] = d, this.int16[Ue + 4] = m, this.int16[Ue + 5] = _, this.int16[Ue + 6] = w, this.int16[Ue + 7] = C, this.uint16[Ue + 8] = R, this.uint16[Ue + 9] = B, this.uint16[Ue + 10] = q, this.uint16[Ue + 11] = N, this.uint16[Ue + 12] = W, this.uint16[Ue + 13] = J, this.uint16[Ue + 14] = ee, this.uint16[Ue + 15] = le, this.uint16[Ue + 16] = ve, this.uint16[Ue + 17] = ue, this.uint16[Ue + 18] = U, this.uint16[Ue + 19] = Y, this.uint16[Ue + 20] = de, this.uint16[Ue + 21] = Ee, this.uint16[Ue + 22] = He, this.uint32[lt + 12] = Re, this.float32[lt + 13] =
|
|
7409
|
+
return this.int16[Ue + 0] = i, this.int16[Ue + 1] = o, this.int16[Ue + 2] = c, this.int16[Ue + 3] = d, this.int16[Ue + 4] = m, this.int16[Ue + 5] = _, this.int16[Ue + 6] = w, this.int16[Ue + 7] = C, this.uint16[Ue + 8] = R, this.uint16[Ue + 9] = B, this.uint16[Ue + 10] = q, this.uint16[Ue + 11] = N, this.uint16[Ue + 12] = W, this.uint16[Ue + 13] = J, this.uint16[Ue + 14] = ee, this.uint16[Ue + 15] = le, this.uint16[Ue + 16] = ve, this.uint16[Ue + 17] = ue, this.uint16[Ue + 18] = U, this.uint16[Ue + 19] = Y, this.uint16[Ue + 20] = de, this.uint16[Ue + 21] = Ee, this.uint16[Ue + 22] = He, this.uint32[lt + 12] = Re, this.float32[lt + 13] = Ve, this.float32[lt + 14] = Je, this.uint16[Ue + 30] = Ze, this.uint16[Ue + 31] = Xe, t;
|
|
7410
7410
|
}
|
|
7411
7411
|
}
|
|
7412
7412
|
E.prototype.bytesPerElement = 64, ot("StructArrayLayout8i15ui1ul2f2ui64", E);
|
|
@@ -7726,12 +7726,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7726
7726
|
}
|
|
7727
7727
|
}
|
|
7728
7728
|
Ie.prototype.size = 12;
|
|
7729
|
-
class
|
|
7729
|
+
class qe extends V {
|
|
7730
7730
|
get(t) {
|
|
7731
7731
|
return new Ie(this, t);
|
|
7732
7732
|
}
|
|
7733
7733
|
}
|
|
7734
|
-
ot("TextAnchorOffsetArray",
|
|
7734
|
+
ot("TextAnchorOffsetArray", qe);
|
|
7735
7735
|
class ze extends fs {
|
|
7736
7736
|
get featureIndex() {
|
|
7737
7737
|
return this._structArray.uint32[this._pos4 + 0];
|
|
@@ -8917,8 +8917,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8917
8917
|
if (q && (W = function(ue, U, Y, de) {
|
|
8918
8918
|
const Ee = [];
|
|
8919
8919
|
for (let He = 0, Re = U.length; He < Re; He++) {
|
|
8920
|
-
const
|
|
8921
|
-
|
|
8920
|
+
const Ve = tf(ue, U[He] * de, He < Re - 1 ? U[He + 1] * de : ue.length, de, !1);
|
|
8921
|
+
Ve === Ve.next && (Ve.steiner = !0), Ee.push(s_(Ve));
|
|
8922
8922
|
}
|
|
8923
8923
|
Ee.sort(r_);
|
|
8924
8924
|
for (let He = 0; He < Ee.length; He++) Y = i_(Ee[He], Y);
|
|
@@ -8972,10 +8972,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8972
8972
|
const ue = J - N, U = ee - W, Y = Math.abs(ue), de = Math.abs(U);
|
|
8973
8973
|
let Ee = N, He = W;
|
|
8974
8974
|
for (; ; ) {
|
|
8975
|
-
const
|
|
8975
|
+
const Ve = ue > 0 ? (Math.floor(Ee / m) + 1) * m : (Math.ceil(Ee / m) - 1) * m, Je = U > 0 ? (Math.floor(He / m) + 1) * m : (Math.ceil(He / m) - 1) * m, Ze = Math.abs(Ee - Ve), Xe = Math.abs(He - Je), Ue = Math.abs(Ee - J), lt = Math.abs(He - ee), gt = le ? Ze / Y : Number.POSITIVE_INFINITY, ft = ve ? Xe / de : Number.POSITIVE_INFINITY;
|
|
8976
8976
|
if ((Ue <= Ze || !le) && (lt <= Xe || !ve)) break;
|
|
8977
8977
|
if (gt < ft && le || !ve) {
|
|
8978
|
-
Ee =
|
|
8978
|
+
Ee = Ve, He += U * gt;
|
|
8979
8979
|
const pt = new k(Ee, Math.round(He));
|
|
8980
8980
|
_[_.length - 1].x === pt.x && _[_.length - 1].y === pt.y || _.push(pt);
|
|
8981
8981
|
} else {
|
|
@@ -9037,9 +9037,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9037
9037
|
let ue = 0, U = B.getOrCreateLatestSegment(q, N), Y = U.vertexLength;
|
|
9038
9038
|
for (let de = 2; de < J.length; de += 3) {
|
|
9039
9039
|
const Ee = J[de - 2], He = J[de - 1], Re = J[de];
|
|
9040
|
-
let
|
|
9041
|
-
U.vertexLength + ((
|
|
9042
|
-
const Xe = tc(le, W, ee, ve, Ee,
|
|
9040
|
+
let Ve = le[Ee] < ue, Je = le[He] < ue, Ze = le[Re] < ue;
|
|
9041
|
+
U.vertexLength + ((Ve ? 1 : 0) + (Je ? 1 : 0) + (Ze ? 1 : 0)) > $t.MAX_VERTEX_ARRAY_LENGTH && (U = B.createNewSegment(q, N), ue = ve.count, Ve = !0, Je = !0, Ze = !0, Y = 0);
|
|
9042
|
+
const Xe = tc(le, W, ee, ve, Ee, Ve, U), Ue = tc(le, W, ee, ve, He, Je, U), lt = tc(le, W, ee, ve, Re, Ze, U);
|
|
9043
9043
|
N.emplaceBack(Y + Xe - ue, Y + Ue - ue, Y + lt - ue), U.primitiveLength++;
|
|
9044
9044
|
}
|
|
9045
9045
|
})(t, i, o, c, d, n), R && function(B, q, N, W, J, ee) {
|
|
@@ -9050,10 +9050,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9050
9050
|
for (let de = 0; de < J.length; de++) {
|
|
9051
9051
|
const Ee = J[de];
|
|
9052
9052
|
for (let He = 1; He < J[de].length; He += 2) {
|
|
9053
|
-
const Re = Ee[He - 1],
|
|
9054
|
-
let Je = le[Re] < ue, Ze = le[
|
|
9053
|
+
const Re = Ee[He - 1], Ve = Ee[He];
|
|
9054
|
+
let Je = le[Re] < ue, Ze = le[Ve] < ue;
|
|
9055
9055
|
U.vertexLength + ((Je ? 1 : 0) + (Ze ? 1 : 0)) > $t.MAX_VERTEX_ARRAY_LENGTH && (U = B.createNewSegment(q, N), ue = ve.count, Je = !0, Ze = !0, Y = 0);
|
|
9056
|
-
const Xe = tc(le, W, ee, ve, Re, Je, U), Ue = tc(le, W, ee, ve,
|
|
9056
|
+
const Xe = tc(le, W, ee, ve, Re, Je, U), Ue = tc(le, W, ee, ve, Ve, Ze, U);
|
|
9057
9057
|
N.emplaceBack(Y + Xe - ue, Y + Ue - ue), U.primitiveLength++;
|
|
9058
9058
|
}
|
|
9059
9059
|
}
|
|
@@ -9381,11 +9381,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9381
9381
|
}
|
|
9382
9382
|
return ee;
|
|
9383
9383
|
}(w, _), q = function(N, W, J, ee) {
|
|
9384
|
-
const le = [], ve = [], ue = ee[8] * W, U = ee[9] * W, Y = ee[10] * W, de = ee[11] * W, Ee = ee[8] * J, He = ee[9] * J, Re = ee[10] * J,
|
|
9384
|
+
const le = [], ve = [], ue = ee[8] * W, U = ee[9] * W, Y = ee[10] * W, de = ee[11] * W, Ee = ee[8] * J, He = ee[9] * J, Re = ee[10] * J, Ve = ee[11] * J;
|
|
9385
9385
|
for (const Je of N) {
|
|
9386
9386
|
const Ze = [], Xe = [];
|
|
9387
9387
|
for (const Ue of Je) {
|
|
9388
|
-
const lt = Ue.x, gt = Ue.y, ft = ee[0] * lt + ee[4] * gt + ee[12], pt = ee[1] * lt + ee[5] * gt + ee[13], jt = ee[2] * lt + ee[6] * gt + ee[14], Dr = ee[3] * lt + ee[7] * gt + ee[15], $r = jt + Y, Ai = Dr + de, fn = ft + Ee, Gi = pt + He, mi = jt + Re, Ir = Dr +
|
|
9388
|
+
const lt = Ue.x, gt = Ue.y, ft = ee[0] * lt + ee[4] * gt + ee[12], pt = ee[1] * lt + ee[5] * gt + ee[13], jt = ee[2] * lt + ee[6] * gt + ee[14], Dr = ee[3] * lt + ee[7] * gt + ee[15], $r = jt + Y, Ai = Dr + de, fn = ft + Ee, Gi = pt + He, mi = jt + Re, Ir = Dr + Ve, oi = new k((ft + ue) / Ai, (pt + U) / Ai);
|
|
9389
9389
|
oi.z = $r / Ai, Ze.push(oi);
|
|
9390
9390
|
const gi = new k(fn / Ir, Gi / Ir);
|
|
9391
9391
|
gi.z = mi / Ir, Xe.push(gi);
|
|
@@ -9503,7 +9503,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9503
9503
|
ve && (le = ve), W && (J = W), W = t[ue], ve = ee ? ee.sub(W)._unit()._perp() : le, le = le || ve;
|
|
9504
9504
|
let U = le.add(ve);
|
|
9505
9505
|
U.x === 0 && U.y === 0 || U._unit();
|
|
9506
|
-
const Y = le.x * ve.x + le.y * ve.y, de = U.x * ve.x + U.y * ve.y, Ee = de !== 0 ? 1 / de : 1 / 0, He = 2 * Math.sqrt(2 - 2 * de), Re = de < A_ && J && ee,
|
|
9506
|
+
const Y = le.x * ve.x + le.y * ve.y, de = U.x * ve.x + U.y * ve.y, Ee = de !== 0 ? 1 / de : 1 / 0, He = 2 * Math.sqrt(2 - 2 * de), Re = de < A_ && J && ee, Ve = le.x * ve.y - le.y * ve.x > 0;
|
|
9507
9507
|
if (Re && ue > B) {
|
|
9508
9508
|
const Xe = W.dist(J);
|
|
9509
9509
|
if (Xe > 2 * q) {
|
|
@@ -9518,11 +9518,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9518
9518
|
if (Ee > 100) U = ve.mult(-1);
|
|
9519
9519
|
else {
|
|
9520
9520
|
const Xe = Ee * le.add(ve).mag() / le.sub(ve).mag();
|
|
9521
|
-
U._perp()._mult(Xe * (
|
|
9521
|
+
U._perp()._mult(Xe * (Ve ? -1 : 1));
|
|
9522
9522
|
}
|
|
9523
9523
|
this.addCurrentVertex(W, U, 0, 0, N), this.addCurrentVertex(W, U.mult(-1), 0, 0, N);
|
|
9524
9524
|
} else if (Ze === "bevel" || Ze === "fakeround") {
|
|
9525
|
-
const Xe = -Math.sqrt(Ee * Ee - 1), Ue =
|
|
9525
|
+
const Xe = -Math.sqrt(Ee * Ee - 1), Ue = Ve ? Xe : 0, lt = Ve ? 0 : Xe;
|
|
9526
9526
|
if (J && this.addCurrentVertex(W, le, Ue, lt, N), Ze === "fakeround") {
|
|
9527
9527
|
const gt = Math.round(180 * He / Math.PI / 20);
|
|
9528
9528
|
for (let ft = 1; ft < gt; ft++) {
|
|
@@ -9531,8 +9531,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9531
9531
|
const Dr = pt - 0.5;
|
|
9532
9532
|
pt += pt * Dr * (pt - 1) * ((1.0904 + Y * (Y * (3.55645 - 1.43519 * Y) - 3.2452)) * Dr * Dr + (0.848013 + Y * (0.215638 * Y - 1.06021)));
|
|
9533
9533
|
}
|
|
9534
|
-
const jt = ve.sub(le)._mult(pt)._add(le)._unit()._mult(
|
|
9535
|
-
this.addHalfVertex(W, jt.x, jt.y, !1,
|
|
9534
|
+
const jt = ve.sub(le)._mult(pt)._add(le)._unit()._mult(Ve ? -1 : 1);
|
|
9535
|
+
this.addHalfVertex(W, jt.x, jt.y, !1, Ve, 0, N);
|
|
9536
9536
|
}
|
|
9537
9537
|
}
|
|
9538
9538
|
ee && this.addCurrentVertex(W, ve, -Ue, -lt, N);
|
|
@@ -9759,9 +9759,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9759
9759
|
return this.pos += 8, U;
|
|
9760
9760
|
}, readVarint: function(U) {
|
|
9761
9761
|
var Y, de, Ee = this.buf;
|
|
9762
|
-
return Y = 127 & (de = Ee[this.pos++]), de < 128 ? Y : (Y |= (127 & (de = Ee[this.pos++])) << 7, de < 128 ? Y : (Y |= (127 & (de = Ee[this.pos++])) << 14, de < 128 ? Y : (Y |= (127 & (de = Ee[this.pos++])) << 21, de < 128 ? Y : function(He, Re,
|
|
9763
|
-
var Je, Ze, Xe =
|
|
9764
|
-
if (Je = (112 & (Ze = Xe[
|
|
9762
|
+
return Y = 127 & (de = Ee[this.pos++]), de < 128 ? Y : (Y |= (127 & (de = Ee[this.pos++])) << 7, de < 128 ? Y : (Y |= (127 & (de = Ee[this.pos++])) << 14, de < 128 ? Y : (Y |= (127 & (de = Ee[this.pos++])) << 21, de < 128 ? Y : function(He, Re, Ve) {
|
|
9763
|
+
var Je, Ze, Xe = Ve.buf;
|
|
9764
|
+
if (Je = (112 & (Ze = Xe[Ve.pos++])) >> 4, Ze < 128 || (Je |= (127 & (Ze = Xe[Ve.pos++])) << 3, Ze < 128) || (Je |= (127 & (Ze = Xe[Ve.pos++])) << 10, Ze < 128) || (Je |= (127 & (Ze = Xe[Ve.pos++])) << 17, Ze < 128) || (Je |= (127 & (Ze = Xe[Ve.pos++])) << 24, Ze < 128) || (Je |= (1 & (Ze = Xe[Ve.pos++])) << 31, Ze < 128)) return m(He, Je, Re);
|
|
9765
9765
|
throw new Error("Expected varint not more than 10 bytes");
|
|
9766
9766
|
}(Y |= (15 & (de = Ee[this.pos])) << 28, U, this))));
|
|
9767
9767
|
}, readVarint64: function() {
|
|
@@ -9776,10 +9776,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9776
9776
|
return this.pos = U, U - Y >= 12 && c ? function(de, Ee, He) {
|
|
9777
9777
|
return c.decode(de.subarray(Ee, He));
|
|
9778
9778
|
}(this.buf, Y, U) : function(de, Ee, He) {
|
|
9779
|
-
for (var Re = "",
|
|
9780
|
-
var Je, Ze, Xe, Ue = de[
|
|
9781
|
-
if (
|
|
9782
|
-
gt === 1 ? Ue < 128 && (lt = Ue) : gt === 2 ? (192 & (Je = de[
|
|
9779
|
+
for (var Re = "", Ve = Ee; Ve < He; ) {
|
|
9780
|
+
var Je, Ze, Xe, Ue = de[Ve], lt = null, gt = Ue > 239 ? 4 : Ue > 223 ? 3 : Ue > 191 ? 2 : 1;
|
|
9781
|
+
if (Ve + gt > He) break;
|
|
9782
|
+
gt === 1 ? Ue < 128 && (lt = Ue) : gt === 2 ? (192 & (Je = de[Ve + 1])) == 128 && (lt = (31 & Ue) << 6 | 63 & Je) <= 127 && (lt = null) : gt === 3 ? (Ze = de[Ve + 2], (192 & (Je = de[Ve + 1])) == 128 && (192 & Ze) == 128 && ((lt = (15 & Ue) << 12 | (63 & Je) << 6 | 63 & Ze) <= 2047 || lt >= 55296 && lt <= 57343) && (lt = null)) : gt === 4 && (Ze = de[Ve + 2], Xe = de[Ve + 3], (192 & (Je = de[Ve + 1])) == 128 && (192 & Ze) == 128 && (192 & Xe) == 128 && ((lt = (15 & Ue) << 18 | (63 & Je) << 12 | (63 & Ze) << 6 | 63 & Xe) <= 65535 || lt >= 1114112) && (lt = null)), lt === null ? (lt = 65533, gt = 1) : lt > 65535 && (lt -= 65536, Re += String.fromCharCode(lt >>> 10 & 1023 | 55296), lt = 56320 | 1023 & lt), Re += String.fromCharCode(lt), Ve += gt;
|
|
9783
9783
|
}
|
|
9784
9784
|
return Re;
|
|
9785
9785
|
}(this.buf, Y, U);
|
|
@@ -9862,11 +9862,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9862
9862
|
(U = +U || 0) > 268435455 || U < 0 ? function(Y, de) {
|
|
9863
9863
|
var Ee, He;
|
|
9864
9864
|
if (Y >= 0 ? (Ee = Y % 4294967296 | 0, He = Y / 4294967296 | 0) : (He = ~(-Y / 4294967296), 4294967295 ^ (Ee = ~(-Y % 4294967296)) ? Ee = Ee + 1 | 0 : (Ee = 0, He = He + 1 | 0)), Y >= 18446744073709552e3 || Y < -18446744073709552e3) throw new Error("Given varint doesn't fit into 10 bytes");
|
|
9865
|
-
de.realloc(10), function(Re,
|
|
9865
|
+
de.realloc(10), function(Re, Ve, Je) {
|
|
9866
9866
|
Je.buf[Je.pos++] = 127 & Re | 128, Re >>>= 7, Je.buf[Je.pos++] = 127 & Re | 128, Re >>>= 7, Je.buf[Je.pos++] = 127 & Re | 128, Re >>>= 7, Je.buf[Je.pos++] = 127 & Re | 128, Je.buf[Je.pos] = 127 & (Re >>>= 7);
|
|
9867
|
-
}(Ee, 0, de), function(Re,
|
|
9867
|
+
}(Ee, 0, de), function(Re, Ve) {
|
|
9868
9868
|
var Je = (7 & Re) << 4;
|
|
9869
|
-
|
|
9869
|
+
Ve.buf[Ve.pos++] |= Je | ((Re >>>= 3) ? 128 : 0), Re && (Ve.buf[Ve.pos++] = 127 & Re | ((Re >>>= 7) ? 128 : 0), Re && (Ve.buf[Ve.pos++] = 127 & Re | ((Re >>>= 7) ? 128 : 0), Re && (Ve.buf[Ve.pos++] = 127 & Re | ((Re >>>= 7) ? 128 : 0), Re && (Ve.buf[Ve.pos++] = 127 & Re | ((Re >>>= 7) ? 128 : 0), Re && (Ve.buf[Ve.pos++] = 127 & Re)))));
|
|
9870
9870
|
}(He, de);
|
|
9871
9871
|
}(U, this) : (this.realloc(4), this.buf[this.pos++] = 127 & U | (U > 127 ? 128 : 0), U <= 127 || (this.buf[this.pos++] = 127 & (U >>>= 7) | (U > 127 ? 128 : 0), U <= 127 || (this.buf[this.pos++] = 127 & (U >>>= 7) | (U > 127 ? 128 : 0), U <= 127 || (this.buf[this.pos++] = U >>> 7 & 127))));
|
|
9872
9872
|
}, writeSVarint: function(U) {
|
|
@@ -9877,19 +9877,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9877
9877
|
U = String(U), this.realloc(4 * U.length), this.pos++;
|
|
9878
9878
|
var Y = this.pos;
|
|
9879
9879
|
this.pos = function(Ee, He, Re) {
|
|
9880
|
-
for (var
|
|
9881
|
-
if ((
|
|
9880
|
+
for (var Ve, Je, Ze = 0; Ze < He.length; Ze++) {
|
|
9881
|
+
if ((Ve = He.charCodeAt(Ze)) > 55295 && Ve < 57344) {
|
|
9882
9882
|
if (!Je) {
|
|
9883
|
-
|
|
9883
|
+
Ve > 56319 || Ze + 1 === He.length ? (Ee[Re++] = 239, Ee[Re++] = 191, Ee[Re++] = 189) : Je = Ve;
|
|
9884
9884
|
continue;
|
|
9885
9885
|
}
|
|
9886
|
-
if (
|
|
9887
|
-
Ee[Re++] = 239, Ee[Re++] = 191, Ee[Re++] = 189, Je =
|
|
9886
|
+
if (Ve < 56320) {
|
|
9887
|
+
Ee[Re++] = 239, Ee[Re++] = 191, Ee[Re++] = 189, Je = Ve;
|
|
9888
9888
|
continue;
|
|
9889
9889
|
}
|
|
9890
|
-
|
|
9890
|
+
Ve = Je - 55296 << 10 | Ve - 56320 | 65536, Je = null;
|
|
9891
9891
|
} else Je && (Ee[Re++] = 239, Ee[Re++] = 191, Ee[Re++] = 189, Je = null);
|
|
9892
|
-
|
|
9892
|
+
Ve < 128 ? Ee[Re++] = Ve : (Ve < 2048 ? Ee[Re++] = Ve >> 6 | 192 : (Ve < 65536 ? Ee[Re++] = Ve >> 12 | 224 : (Ee[Re++] = Ve >> 18 | 240, Ee[Re++] = Ve >> 12 & 63 | 128), Ee[Re++] = Ve >> 6 & 63 | 128), Ee[Re++] = 63 & Ve | 128);
|
|
9893
9893
|
}
|
|
9894
9894
|
return Re;
|
|
9895
9895
|
}(this.buf, U, this.pos);
|
|
@@ -10157,11 +10157,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10157
10157
|
} else ee = function(Y, de) {
|
|
10158
10158
|
const Ee = [], He = Y.text;
|
|
10159
10159
|
let Re = 0;
|
|
10160
|
-
for (const
|
|
10160
|
+
for (const Ve of de) Ee.push(Y.substring(Re, Ve)), Re = Ve;
|
|
10161
10161
|
return Re < He.length && Ee.push(Y.substring(Re, He.length)), Ee;
|
|
10162
10162
|
}(J, Rp(J, C, d, t, o, N));
|
|
10163
10163
|
const ue = [], U = { positionedLines: ue, text: J.toString(), top: R[1], bottom: R[1], left: R[0], right: R[0], writingMode: B, iconsInText: !1, verticalizable: !1 };
|
|
10164
|
-
return function(Y, de, Ee, He, Re,
|
|
10164
|
+
return function(Y, de, Ee, He, Re, Ve, Je, Ze, Xe, Ue, lt, gt) {
|
|
10165
10165
|
let ft = 0, pt = 0, jt = 0, Dr = 0;
|
|
10166
10166
|
const $r = Ze === "right" ? 1 : Ze === "left" ? 0 : 0.5, Ai = Yr / gt;
|
|
10167
10167
|
let fn = 0;
|
|
@@ -10172,7 +10172,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10172
10172
|
const yi = gi.positionedGlyphs;
|
|
10173
10173
|
let Oi = 0;
|
|
10174
10174
|
if (!Ir.length()) {
|
|
10175
|
-
pt +=
|
|
10175
|
+
pt += Ve, ++fn;
|
|
10176
10176
|
continue;
|
|
10177
10177
|
}
|
|
10178
10178
|
const mn = q_(He, Ir, Ai);
|
|
@@ -10187,7 +10187,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10187
10187
|
yi.push({ glyph: ci, imageName: ei.imageName, x: ft, y: pt + Ln + Cu, vertical: Gr, scale: ei.scale, fontStack: ei.fontStack, sectionIndex: li, metrics: Na, rect: Mn }), Gr ? (Y.verticalizable = !0, ft += (ei.imageName ? Na.advance : Yr) * ei.scale + Ue) : ft += Na.advance * ei.scale + Ue;
|
|
10188
10188
|
}
|
|
10189
10189
|
yi.length !== 0 && (jt = Math.max(ft - Ue, jt), W_(yi, 0, yi.length - 1, $r)), ft = 0, gi.lineOffset = Math.max(Oi, (oi - 1) * Yr);
|
|
10190
|
-
const ai =
|
|
10190
|
+
const ai = Ve * oi + Oi;
|
|
10191
10191
|
pt += ai, Dr = Math.max(ai, Dr), ++fn;
|
|
10192
10192
|
}
|
|
10193
10193
|
const { horizontalAlign: Gi, verticalAlign: mi } = zp(Je);
|
|
@@ -10196,7 +10196,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10196
10196
|
let ci = 0;
|
|
10197
10197
|
ci = mn !== ai ? -Ji * yi - Cu : -yi * ei * ai + 0.5 * ai;
|
|
10198
10198
|
for (const Gr of Ir) for (const _r of Gr.positionedGlyphs) _r.x += li, _r.y += ci;
|
|
10199
|
-
})(Y.positionedLines, $r, Gi, mi, jt, Dr,
|
|
10199
|
+
})(Y.positionedLines, $r, Gi, mi, jt, Dr, Ve, pt, Re.length), Y.top += -mi * pt, Y.bottom = Y.top + pt, Y.left += -Gi * jt, Y.right = Y.left + jt;
|
|
10200
10200
|
}(U, t, i, o, ee, m, _, w, B, C, q, W), !function(Y) {
|
|
10201
10201
|
for (const de of Y) if (de.positionedGlyphs.length !== 0) return !1;
|
|
10202
10202
|
return !0;
|
|
@@ -10431,7 +10431,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10431
10431
|
this.canOverlap = Dp(o, "text-overlap", "text-allow-overlap") !== "never" || Dp(o, "icon-overlap", "icon-allow-overlap") !== "never" || o.get("text-ignore-placement") || o.get("icon-ignore-placement"), this.sortFeaturesByKey = d !== "viewport-y" && !c.isConstant(), this.sortFeaturesByY = (d === "viewport-y" || d === "auto" && !this.sortFeaturesByKey) && this.canOverlap, o.get("symbol-placement") === "point" && (this.writingModes = o.get("text-writing-mode").map((m) => v.al[m])), this.stateDependentLayerIds = this.layers.filter((m) => m.isStateDependent()).map((m) => m.id), this.sourceID = t.sourceID;
|
|
10432
10432
|
}
|
|
10433
10433
|
createArrays() {
|
|
10434
|
-
this.text = new Op(new Kn(this.layers, this.zoom, (t) => /^text/.test(t))), this.icon = new Op(new Kn(this.layers, this.zoom, (t) => /^icon/.test(t))), this.glyphOffsetArray = new xe(), this.lineVertexArray = new ye(), this.symbolInstances = new ge(), this.textAnchorOffsets = new
|
|
10434
|
+
this.text = new Op(new Kn(this.layers, this.zoom, (t) => /^text/.test(t))), this.icon = new Op(new Kn(this.layers, this.zoom, (t) => /^icon/.test(t))), this.glyphOffsetArray = new xe(), this.lineVertexArray = new ye(), this.symbolInstances = new ge(), this.textAnchorOffsets = new qe();
|
|
10435
10435
|
}
|
|
10436
10436
|
calculateGlyphDependencies(t, i, o, c, d) {
|
|
10437
10437
|
for (let m = 0; m < t.length; m++) if (i[t.charCodeAt(m)] = !0, (o || c) && d) {
|
|
@@ -10448,8 +10448,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10448
10448
|
if (!c._featureFilter.filter(J, Y, o)) continue;
|
|
10449
10449
|
let de, Ee;
|
|
10450
10450
|
if (U || (Y.geometry = Do(ee)), C) {
|
|
10451
|
-
const Re = c.getValueAndResolveTokens("text-field", Y, o, W),
|
|
10452
|
-
(!Je || Pn.getRTLTextPluginStatus() === "unavailable" || Je && Pn.isParsed()) && (de = M_(
|
|
10451
|
+
const Re = c.getValueAndResolveTokens("text-field", Y, o, W), Ve = Di.factory(Re), Je = this.hasRTLText = this.hasRTLText || G_(Ve);
|
|
10452
|
+
(!Je || Pn.getRTLTextPluginStatus() === "unavailable" || Je && Pn.isParsed()) && (de = M_(Ve, c, Y));
|
|
10453
10453
|
}
|
|
10454
10454
|
if (R) {
|
|
10455
10455
|
const Re = c.getValueAndResolveTokens("icon-image", Y, o, W);
|
|
@@ -10458,12 +10458,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10458
10458
|
if (!de && !Ee) continue;
|
|
10459
10459
|
const He = this.sortFeaturesByKey ? B.evaluate(Y, {}, o) : void 0;
|
|
10460
10460
|
if (this.features.push({ id: le, text: de, icon: Ee, index: ve, sourceLayerIndex: ue, geometry: Y.geometry, properties: ee.properties, type: Z_[ee.type], sortKey: He }), Ee && (q[Ee.name] = !0), de) {
|
|
10461
|
-
const Re = m.evaluate(Y, {}, o).join(","),
|
|
10461
|
+
const Re = m.evaluate(Y, {}, o).join(","), Ve = d.get("text-rotation-alignment") !== "viewport" && d.get("symbol-placement") !== "point";
|
|
10462
10462
|
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(v.al.vertical) >= 0;
|
|
10463
10463
|
for (const Je of de.sections) if (Je.image) q[Je.image.name] = !0;
|
|
10464
10464
|
else {
|
|
10465
10465
|
const Ze = Ea(de.toString()), Xe = Je.fontStack || Re, Ue = N[Xe] = N[Xe] || {};
|
|
10466
|
-
this.calculateGlyphDependencies(Je.text, Ue,
|
|
10466
|
+
this.calculateGlyphDependencies(Je.text, Ue, Ve, this.allowVerticalPlacement, Ze);
|
|
10467
10467
|
}
|
|
10468
10468
|
}
|
|
10469
10469
|
}
|
|
@@ -10473,20 +10473,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10473
10473
|
function Y(Re) {
|
|
10474
10474
|
ue.push(ee[Re]), U++;
|
|
10475
10475
|
}
|
|
10476
|
-
function de(Re,
|
|
10476
|
+
function de(Re, Ve, Je) {
|
|
10477
10477
|
const Ze = ve[Re];
|
|
10478
|
-
return delete ve[Re], ve[
|
|
10478
|
+
return delete ve[Re], ve[Ve] = Ze, ue[Ze].geometry[0].pop(), ue[Ze].geometry[0] = ue[Ze].geometry[0].concat(Je[0]), Ze;
|
|
10479
10479
|
}
|
|
10480
|
-
function Ee(Re,
|
|
10481
|
-
const Ze = le[
|
|
10482
|
-
return delete le[
|
|
10480
|
+
function Ee(Re, Ve, Je) {
|
|
10481
|
+
const Ze = le[Ve];
|
|
10482
|
+
return delete le[Ve], le[Re] = Ze, ue[Ze].geometry[0].shift(), ue[Ze].geometry[0] = Je[0].concat(ue[Ze].geometry[0]), Ze;
|
|
10483
10483
|
}
|
|
10484
|
-
function He(Re,
|
|
10485
|
-
const Ze = Je ?
|
|
10484
|
+
function He(Re, Ve, Je) {
|
|
10485
|
+
const Ze = Je ? Ve[0][Ve[0].length - 1] : Ve[0][0];
|
|
10486
10486
|
return `${Re}:${Ze.x}:${Ze.y}`;
|
|
10487
10487
|
}
|
|
10488
10488
|
for (let Re = 0; Re < ee.length; Re++) {
|
|
10489
|
-
const
|
|
10489
|
+
const Ve = ee[Re], Je = Ve.geometry, Ze = Ve.text ? Ve.text.toString() : null;
|
|
10490
10490
|
if (!Ze) {
|
|
10491
10491
|
Y(Re);
|
|
10492
10492
|
continue;
|
|
@@ -10535,8 +10535,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10535
10535
|
addSymbols(t, i, o, c, d, m, _, w, C, R, B, q) {
|
|
10536
10536
|
const N = t.indexArray, W = t.layoutVertexArray, J = t.segments.prepareSegment(4 * i.length, W, N, this.canOverlap ? m.sortKey : void 0), ee = this.glyphOffsetArray.length, le = J.vertexLength, ve = this.allowVerticalPlacement && _ === v.al.vertical ? Math.PI / 2 : 0, ue = m.text && m.text.sections;
|
|
10537
10537
|
for (let U = 0; U < i.length; U++) {
|
|
10538
|
-
const { tl: Y, tr: de, bl: Ee, br: He, tex: Re, pixelOffsetTL:
|
|
10539
|
-
Eu(W, w.x, w.y, Y.x, pt + Y.y, Re.x, Re.y, o, lt,
|
|
10538
|
+
const { tl: Y, tr: de, bl: Ee, br: He, tex: Re, pixelOffsetTL: Ve, pixelOffsetBR: Je, minFontScaleX: Ze, minFontScaleY: Xe, glyphOffset: Ue, isSDF: lt, sectionIndex: gt } = i[U], ft = J.vertexLength, pt = Ue[1];
|
|
10539
|
+
Eu(W, w.x, w.y, Y.x, pt + Y.y, Re.x, Re.y, o, lt, Ve.x, Ve.y, Ze, Xe), Eu(W, w.x, w.y, de.x, pt + de.y, Re.x + Re.w, Re.y, o, lt, Je.x, Ve.y, Ze, Xe), Eu(W, w.x, w.y, Ee.x, pt + Ee.y, Re.x, Re.y + Re.h, o, lt, Ve.x, Je.y, Ze, Xe), Eu(W, w.x, w.y, He.x, pt + He.y, Re.x + Re.w, Re.y + Re.h, o, lt, Je.x, Je.y, Ze, Xe), Bp(t.dynamicLayoutVertexArray, w, ve), N.emplaceBack(ft, ft + 2, ft + 1), N.emplaceBack(ft + 1, ft + 2, ft + 3), J.vertexLength += 4, J.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Ue[0]), U !== i.length - 1 && gt === i[U + 1].sectionIndex || t.programConfigurations.populatePaintArrays(W.length, m, m.index, {}, q, ue && ue[gt]);
|
|
10540
10540
|
}
|
|
10541
10541
|
t.placedSymbolArray.emplaceBack(w.x, w.y, ee, this.glyphOffsetArray.length - ee, le, C, R, w.segment, o ? o[0] : 0, o ? o[1] : 0, c[0], c[1], _, 0, !1, 0, B);
|
|
10542
10542
|
}
|
|
@@ -11066,12 +11066,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11066
11066
|
query(t, i, o, c) {
|
|
11067
11067
|
this.loadVTLayers();
|
|
11068
11068
|
const d = t.params, m = ir / t.tileSize / t.scale, _ = So(d.filter), w = t.queryGeometry, C = t.queryPadding * m, R = nm(w), B = this.grid.query(R.minX - C, R.minY - C, R.maxX + C, R.maxY + C), q = nm(t.cameraQueryGeometry), N = this.grid3D.query(q.minX - C, q.minY - C, q.maxX + C, q.maxY + C, (ee, le, ve, ue) => function(U, Y, de, Ee, He) {
|
|
11069
|
-
for (const
|
|
11069
|
+
for (const Ve of U) if (Y <= Ve.x && de <= Ve.y && Ee >= Ve.x && He >= Ve.y) return !0;
|
|
11070
11070
|
const Re = [new k(Y, de), new k(Y, He), new k(Ee, He), new k(Ee, de)];
|
|
11071
11071
|
if (U.length > 2) {
|
|
11072
|
-
for (const
|
|
11072
|
+
for (const Ve of Re) if (Oo(U, Ve)) return !0;
|
|
11073
11073
|
}
|
|
11074
|
-
for (let
|
|
11074
|
+
for (let Ve = 0; Ve < U.length - 1; Ve++) if (Ny(U[Ve], U[Ve + 1], Re)) return !0;
|
|
11075
11075
|
return !1;
|
|
11076
11076
|
}(t.cameraQueryGeometry, ee - C, le - C, ve + C, ue + C));
|
|
11077
11077
|
for (const ee of N) B.push(ee);
|
|
@@ -11242,8 +11242,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11242
11242
|
const Ue = d.content, lt = Ue[2] - Ue[0], gt = Ue[3] - Ue[1];
|
|
11243
11243
|
(d.textFitWidth || d.textFitHeight) && (C = Of(n)), le = Lu(R, 0, Ue[0]), ue = Lu(B, 0, Ue[1]), ve = Lu(R, Ue[0], Ue[2]), U = Lu(B, Ue[1], Ue[3]), Y = Ue[0] - le, Ee = Ue[1] - ue, de = lt - ve, He = gt - U;
|
|
11244
11244
|
}
|
|
11245
|
-
const Re = C.x1,
|
|
11246
|
-
const pt = Ru(Ue.stretch - le, ve, Je, Re), jt = zu(Ue.fixed - Y, de, Ue.stretch, N), Dr = Ru(lt.stretch - ue, U, Ze,
|
|
11245
|
+
const Re = C.x1, Ve = C.y1, Je = C.x2 - Re, Ze = C.y2 - Ve, Xe = (Ue, lt, gt, ft) => {
|
|
11246
|
+
const pt = Ru(Ue.stretch - le, ve, Je, Re), jt = zu(Ue.fixed - Y, de, Ue.stretch, N), Dr = Ru(lt.stretch - ue, U, Ze, Ve), $r = zu(lt.fixed - Ee, He, lt.stretch, W), Ai = Ru(gt.stretch - le, ve, Je, Re), fn = zu(gt.fixed - Y, de, gt.stretch, N), Gi = Ru(ft.stretch - ue, U, Ze, Ve), mi = zu(ft.fixed - Ee, He, ft.stretch, W), Ir = new k(pt, Dr), oi = new k(Ai, Dr), gi = new k(Ai, Gi), yi = new k(pt, Gi), Oi = new k(jt / m, $r / m), mn = new k(fn / m, mi / m), ai = t * Math.PI / 180;
|
|
11247
11247
|
if (ai) {
|
|
11248
11248
|
const li = Math.sin(ai), ci = Math.cos(ai), Gr = [ci, -li, li, ci];
|
|
11249
11249
|
Ir._matMult(Gr), oi._matMult(Gr), yi._matMult(Gr), gi._matMult(Gr);
|
|
@@ -11485,7 +11485,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11485
11485
|
const N = n.layers[0].layout, W = N.get("icon-offset").evaluate(t, {}, R), J = gm(i.horizontal), ee = m / 24, le = n.tilePixelRatio * ee, ve = n.tilePixelRatio * q / 24, ue = n.tilePixelRatio * _, U = n.tilePixelRatio * N.get("symbol-spacing"), Y = N.get("text-padding") * n.tilePixelRatio, de = function(gt, ft, pt, jt = 1) {
|
|
11486
11486
|
const Dr = gt.get("icon-padding").evaluate(ft, {}, pt), $r = Dr && Dr.values;
|
|
11487
11487
|
return [$r[0] * jt, $r[1] * jt, $r[2] * jt, $r[3] * jt];
|
|
11488
|
-
}(N, t, R, n.tilePixelRatio), Ee = N.get("text-max-angle") / 180 * Math.PI, He = N.get("text-rotation-alignment") !== "viewport" && N.get("symbol-placement") !== "point", Re = N.get("icon-rotation-alignment") === "map" && N.get("symbol-placement") !== "point",
|
|
11488
|
+
}(N, t, R, n.tilePixelRatio), Ee = N.get("text-max-angle") / 180 * Math.PI, He = N.get("text-rotation-alignment") !== "viewport" && N.get("symbol-placement") !== "point", Re = N.get("icon-rotation-alignment") === "map" && N.get("symbol-placement") !== "point", Ve = N.get("symbol-placement"), Je = U / 2, Ze = N.get("icon-text-fit");
|
|
11489
11489
|
let Xe;
|
|
11490
11490
|
o && Ze !== "none" && (n.allowVerticalPlacement && i.vertical && (Xe = Ff(o, i.vertical, Ze, N.get("icon-text-fit-padding"), W, ee)), J && (o = Ff(o, J, Ze, N.get("icon-text-fit-padding"), W, ee)));
|
|
11491
11491
|
const Ue = R ? B.line.getGranularityForZoomLevel(R.z) : 1, lt = (gt, ft) => {
|
|
@@ -11534,11 +11534,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11534
11534
|
pt.symbolInstances.emplaceBack(jt.x, jt.y, _s.right >= 0 ? _s.right : -1, _s.center >= 0 ? _s.center : -1, _s.left >= 0 ? _s.left : -1, _s.vertical || -1, Yp, $p, Am, p0, d0, f0, m0, g0, y0, _0, v0, oi, wm, Sm, xm, bm, Tm, 0, Oi, Rn, b0, w0);
|
|
11535
11535
|
}(n, ft, gt, i, o, c, Xe, n.layers[0], n.collisionBoxArray, t.index, t.sourceLayerIndex, n.index, le, [Y, Y, Y, Y], He, w, ue, de, Re, W, t, d, C, R, m);
|
|
11536
11536
|
};
|
|
11537
|
-
if (
|
|
11537
|
+
if (Ve === "line") for (const gt of sm(t.geometry, 0, 0, ir, ir)) {
|
|
11538
11538
|
const ft = Vo(gt, Ue), pt = n0(ft, U, Ee, i.vertical || J, o, 24, ve, n.overscaling, ir);
|
|
11539
11539
|
for (const jt of pt) J && c0(n, J.text, Je, jt) || lt(ft, jt);
|
|
11540
11540
|
}
|
|
11541
|
-
else if (
|
|
11541
|
+
else if (Ve === "line-center") {
|
|
11542
11542
|
for (const gt of t.geometry) if (gt.length > 1) {
|
|
11543
11543
|
const ft = Vo(gt, Ue), pt = i0(ft, Ee, i.vertical || J, o, 24, ve);
|
|
11544
11544
|
pt && lt(ft, pt);
|
|
@@ -11555,7 +11555,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11555
11555
|
}
|
|
11556
11556
|
function mm(n, t, i, o, c, d, m, _, w, C, R, B, q, N, W) {
|
|
11557
11557
|
const J = function(ve, ue, U, Y, de, Ee, He, Re) {
|
|
11558
|
-
const
|
|
11558
|
+
const Ve = Y.layout.get("text-rotate").evaluate(Ee, {}) * Math.PI / 180, Je = [];
|
|
11559
11559
|
for (const Ze of ue.positionedLines) for (const Xe of Ze.positionedGlyphs) {
|
|
11560
11560
|
if (!Xe.rect) continue;
|
|
11561
11561
|
const Ue = Xe.rect || {};
|
|
@@ -11573,8 +11573,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11573
11573
|
const li = new k(-Dr, Dr - Cu), ci = -Math.PI / 2, Gr = Yr / 2 - Dr, _r = new k(5 - Cu - Gr, -(Xe.imageName ? Gr : 0)), Mn = new k(...fn);
|
|
11574
11574
|
yi._rotateAround(ci, li)._add(_r)._add(Mn), Oi._rotateAround(ci, li)._add(_r)._add(Mn), mn._rotateAround(ci, li)._add(_r)._add(Mn), ai._rotateAround(ci, li)._add(_r)._add(Mn);
|
|
11575
11575
|
}
|
|
11576
|
-
if (
|
|
11577
|
-
const li = Math.sin(
|
|
11576
|
+
if (Ve) {
|
|
11577
|
+
const li = Math.sin(Ve), ci = Math.cos(Ve), Gr = [ci, -li, li, ci];
|
|
11578
11578
|
yi._matMult(Gr), Oi._matMult(Gr), mn._matMult(Gr), ai._matMult(Gr);
|
|
11579
11579
|
}
|
|
11580
11580
|
const Ji = new k(0, 0), ei = new k(0, 0);
|
|
@@ -11812,7 +11812,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11812
11812
|
Se(o) || (t.crossOrigin = "Anonymous"), c.src = o, t.appendChild(c);
|
|
11813
11813
|
}
|
|
11814
11814
|
});
|
|
11815
|
-
}, v.a3 =
|
|
11815
|
+
}, v.a3 = Fe, v.a4 = function() {
|
|
11816
11816
|
return Rt++;
|
|
11817
11817
|
}, v.a5 = oe, v.a6 = qa, v.a7 = So, v.a8 = Bo, v.a9 = tm, v.aA = function(n, t, i, o, c = !1) {
|
|
11818
11818
|
if (!i[0] && !i[1]) return [0, 0];
|
|
@@ -11882,8 +11882,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11882
11882
|
}, v.am = function(n, { uSize: t, uSizeT: i }, { lowerSize: o, upperSize: c }) {
|
|
11883
11883
|
return n.kind === "source" ? o / Gn : n.kind === "composite" ? vn.number(o / Gn, c / Gn, i) : t;
|
|
11884
11884
|
}, v.an = function(n, t) {
|
|
11885
|
-
var i = t[0], o = t[1], c = t[2], d = t[3], m = t[4], _ = t[5], w = t[6], C = t[7], R = t[8], B = t[9], q = t[10], N = t[11], W = t[12], J = t[13], ee = t[14], le = t[15], ve = i * _ - o * m, ue = i * w - c * m, U = i * C - d * m, Y = o * w - c * _, de = o * C - d * _, Ee = c * C - d * w, He = R * J - B * W, Re = R * ee - q * W,
|
|
11886
|
-
return Ue ? (n[0] = (_ * Xe - w * Ze + C * Je) * (Ue = 1 / Ue), n[1] = (c * Ze - o * Xe - d * Je) * Ue, n[2] = (J * Ee - ee * de + le * Y) * Ue, n[3] = (q * de - B * Ee - N * Y) * Ue, n[4] = (w *
|
|
11885
|
+
var i = t[0], o = t[1], c = t[2], d = t[3], m = t[4], _ = t[5], w = t[6], C = t[7], R = t[8], B = t[9], q = t[10], N = t[11], W = t[12], J = t[13], ee = t[14], le = t[15], ve = i * _ - o * m, ue = i * w - c * m, U = i * C - d * m, Y = o * w - c * _, de = o * C - d * _, Ee = c * C - d * w, He = R * J - B * W, Re = R * ee - q * W, Ve = R * le - N * W, Je = B * ee - q * J, Ze = B * le - N * J, Xe = q * le - N * ee, Ue = ve * Xe - ue * Ze + U * Je + Y * Ve - de * Re + Ee * He;
|
|
11886
|
+
return Ue ? (n[0] = (_ * Xe - w * Ze + C * Je) * (Ue = 1 / Ue), n[1] = (c * Ze - o * Xe - d * Je) * Ue, n[2] = (J * Ee - ee * de + le * Y) * Ue, n[3] = (q * de - B * Ee - N * Y) * Ue, n[4] = (w * Ve - m * Xe - C * Re) * Ue, n[5] = (i * Xe - c * Ve + d * Re) * Ue, n[6] = (ee * U - W * Ee - le * ue) * Ue, n[7] = (R * Ee - q * U + N * ue) * Ue, n[8] = (m * Ze - _ * Ve + C * He) * Ue, n[9] = (o * Ve - i * Ze - d * He) * Ue, n[10] = (W * de - J * U + le * ve) * Ue, n[11] = (B * U - R * de - N * ve) * Ue, n[12] = (_ * Re - m * Je - w * He) * Ue, n[13] = (i * Je - o * Re + c * He) * Ue, n[14] = (J * ue - W * Y - ee * ve) * Ue, n[15] = (R * Y - B * ue + q * ve) * Ue, n) : null;
|
|
11887
11887
|
}, v.ao = Er, v.ap = function(n) {
|
|
11888
11888
|
return Math.hypot(n[0], n[1]);
|
|
11889
11889
|
}, v.aq = function(n) {
|
|
@@ -12027,7 +12027,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12027
12027
|
set(n) {
|
|
12028
12028
|
n[0] === this.current[0] && n[1] === this.current[1] || (this.current = n, this.gl.uniform2f(this.location, n[0], n[1]));
|
|
12029
12029
|
}
|
|
12030
|
-
}, v.bN =
|
|
12030
|
+
}, v.bN = Oe, v.bO = function(n, t) {
|
|
12031
12031
|
var i = Math.sin(t), o = Math.cos(t);
|
|
12032
12032
|
return n[0] = o, n[1] = i, n[2] = 0, n[3] = -i, n[4] = o, n[5] = 0, n[6] = 0, n[7] = 0, n[8] = 1, n;
|
|
12033
12033
|
}, v.bP = function(n, t, i) {
|
|
@@ -12121,8 +12121,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12121
12121
|
}, v.c = Jr, v.c0 = function(n, t) {
|
|
12122
12122
|
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];
|
|
12123
12123
|
}, v.c1 = function(n, t) {
|
|
12124
|
-
var i = n[0], o = n[1], c = n[2], d = n[3], m = n[4], _ = n[5], w = n[6], C = n[7], R = n[8], B = n[9], q = n[10], N = n[11], W = n[12], J = n[13], ee = n[14], le = n[15], ve = t[0], ue = t[1], U = t[2], Y = t[3], de = t[4], Ee = t[5], He = t[6], Re = t[7],
|
|
12125
|
-
return Math.abs(i - ve) <= pe * Math.max(1, Math.abs(i), Math.abs(ve)) && Math.abs(o - ue) <= pe * Math.max(1, Math.abs(o), Math.abs(ue)) && Math.abs(c - U) <= pe * Math.max(1, Math.abs(c), Math.abs(U)) && Math.abs(d - Y) <= pe * Math.max(1, Math.abs(d), Math.abs(Y)) && Math.abs(m - de) <= pe * Math.max(1, Math.abs(m), Math.abs(de)) && Math.abs(_ - Ee) <= pe * Math.max(1, Math.abs(_), Math.abs(Ee)) && Math.abs(w - He) <= pe * Math.max(1, Math.abs(w), Math.abs(He)) && Math.abs(C - Re) <= pe * Math.max(1, Math.abs(C), Math.abs(Re)) && Math.abs(R -
|
|
12124
|
+
var i = n[0], o = n[1], c = n[2], d = n[3], m = n[4], _ = n[5], w = n[6], C = n[7], R = n[8], B = n[9], q = n[10], N = n[11], W = n[12], J = n[13], ee = n[14], le = n[15], ve = t[0], ue = t[1], U = t[2], Y = t[3], de = t[4], Ee = t[5], He = t[6], Re = t[7], Ve = t[8], Je = t[9], Ze = t[10], Xe = t[11], Ue = t[12], lt = t[13], gt = t[14], ft = t[15];
|
|
12125
|
+
return Math.abs(i - ve) <= pe * Math.max(1, Math.abs(i), Math.abs(ve)) && Math.abs(o - ue) <= pe * Math.max(1, Math.abs(o), Math.abs(ue)) && Math.abs(c - U) <= pe * Math.max(1, Math.abs(c), Math.abs(U)) && Math.abs(d - Y) <= pe * Math.max(1, Math.abs(d), Math.abs(Y)) && Math.abs(m - de) <= pe * Math.max(1, Math.abs(m), Math.abs(de)) && Math.abs(_ - Ee) <= pe * Math.max(1, Math.abs(_), Math.abs(Ee)) && Math.abs(w - He) <= pe * Math.max(1, Math.abs(w), Math.abs(He)) && Math.abs(C - Re) <= pe * Math.max(1, Math.abs(C), Math.abs(Re)) && Math.abs(R - Ve) <= pe * Math.max(1, Math.abs(R), Math.abs(Ve)) && Math.abs(B - Je) <= pe * Math.max(1, Math.abs(B), Math.abs(Je)) && Math.abs(q - Ze) <= pe * Math.max(1, Math.abs(q), Math.abs(Ze)) && Math.abs(N - Xe) <= pe * Math.max(1, Math.abs(N), Math.abs(Xe)) && Math.abs(W - Ue) <= pe * Math.max(1, Math.abs(W), Math.abs(Ue)) && Math.abs(J - lt) <= pe * Math.max(1, Math.abs(J), Math.abs(lt)) && Math.abs(ee - gt) <= pe * Math.max(1, Math.abs(ee), Math.abs(gt)) && Math.abs(le - ft) <= pe * Math.max(1, Math.abs(le), Math.abs(ft));
|
|
12126
12126
|
}, v.c2 = function(n, t) {
|
|
12127
12127
|
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;
|
|
12128
12128
|
}, v.c3 = (n) => n.type === "symbol", v.c4 = (n) => n.type === "circle", v.c5 = (n) => n.type === "heatmap", v.c6 = (n) => n.type === "line", v.c7 = (n) => n.type === "fill", v.c8 = (n) => n.type === "fill-extrusion", v.c9 = (n) => n.type === "hillshade", v.cA = bp, v.cB = Tp, v.cC = rc, v.cD = Ep, v.cE = class {
|
|
@@ -12205,8 +12205,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12205
12205
|
le = Ze ? dm(Ee, [Ze * Yr, Np]) : i.get("text-offset").evaluate(C, {}, n.canonical).map((Xe) => Xe * Yr);
|
|
12206
12206
|
}
|
|
12207
12207
|
let Re = m ? "center" : i.get("text-justify").evaluate(C, {}, n.canonical);
|
|
12208
|
-
const
|
|
12209
|
-
n.bucket.allowVerticalPlacement && Ea(U) && (W.vertical = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R,
|
|
12208
|
+
const Ve = i.get("symbol-placement") === "point" ? i.get("text-max-width").evaluate(C, {}, n.canonical) * Yr : 1 / 0, Je = () => {
|
|
12209
|
+
n.bucket.allowVerticalPlacement && Ea(U) && (W.vertical = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R, Ve, d, Ee, "left", de, le, v.al.vertical, !0, q, B));
|
|
12210
12210
|
};
|
|
12211
12211
|
if (!m && He) {
|
|
12212
12212
|
const Ze = /* @__PURE__ */ new Set();
|
|
@@ -12215,14 +12215,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12215
12215
|
let Xe = !1;
|
|
12216
12216
|
for (const Ue of Ze) if (!W.horizontal[Ue]) if (Xe) W.horizontal[Ue] = W.horizontal[0];
|
|
12217
12217
|
else {
|
|
12218
|
-
const lt = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R,
|
|
12218
|
+
const lt = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R, Ve, d, "center", Ue, de, le, v.al.horizontal, !1, q, B);
|
|
12219
12219
|
lt && (W.horizontal[Ue] = lt, Xe = lt.positionedLines.length === 1);
|
|
12220
12220
|
}
|
|
12221
12221
|
Je();
|
|
12222
12222
|
} else {
|
|
12223
12223
|
Re === "auto" && (Re = Wp(Ee));
|
|
12224
|
-
const Ze = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R,
|
|
12225
|
-
Ze && (W.horizontal[Re] = Ze), Je(), Ea(U) && m && _ && (W.vertical = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R,
|
|
12224
|
+
const Ze = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R, Ve, d, Ee, Re, de, le, v.al.horizontal, !1, q, B);
|
|
12225
|
+
Ze && (W.horizontal[Re] = Ze), Je(), Ea(U) && m && _ && (W.vertical = Pu(J, n.glyphMap, n.glyphPositions, n.imagePositions, R, Ve, d, Ee, Re, de, le, v.al.vertical, !1, q, B));
|
|
12226
12226
|
}
|
|
12227
12227
|
}
|
|
12228
12228
|
let ve = !1;
|
|
@@ -12354,12 +12354,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12354
12354
|
const bt = new AbortController();
|
|
12355
12355
|
this.inFlightDependencies.push(bt), Mt = he.sendAsync({ type: "GI", data: { icons: mt, source: this.source, tileID: this.tileID, type: "patterns" } }, bt);
|
|
12356
12356
|
}
|
|
12357
|
-
const [wt,
|
|
12357
|
+
const [wt, Fe, er] = yield Promise.all([We, nt, Mt]), Wt = new D(wt), Qt = new v.cx(Fe, er);
|
|
12358
12358
|
for (const bt in we) {
|
|
12359
12359
|
const Ne = we[bt];
|
|
12360
|
-
Ne instanceof v.a6 ? (I(Ne.layers, this.zoom, Q), v.cy({ bucket: Ne, glyphMap: wt, glyphPositions: Wt.positions, imageMap:
|
|
12360
|
+
Ne instanceof v.a6 ? (I(Ne.layers, this.zoom, Q), v.cy({ bucket: Ne, glyphMap: wt, glyphPositions: Wt.positions, imageMap: Fe, imagePositions: Qt.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical, subdivisionGranularity: Ce.subdivisionGranularity })) : Ne.hasPattern && (Ne instanceof v.cz || Ne instanceof v.cA || Ne instanceof v.cB) && (I(Ne.layers, this.zoom, Q), Ne.addFeatures(Ce, this.tileID.canonical, Qt.patternPositions));
|
|
12361
12361
|
}
|
|
12362
|
-
return this.status = "done", { buckets: Object.values(we).filter((bt) => !bt.isEmpty()), featureIndex: Me, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Wt.image, imageAtlas: Qt, glyphMap: this.returnDependencies ? wt : null, iconMap: this.returnDependencies ?
|
|
12362
|
+
return this.status = "done", { buckets: Object.values(we).filter((bt) => !bt.isEmpty()), featureIndex: Me, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Wt.image, imageAtlas: Qt, glyphMap: this.returnDependencies ? wt : null, iconMap: this.returnDependencies ? Fe : null, glyphPositions: this.returnDependencies ? Wt.positions : null };
|
|
12363
12363
|
});
|
|
12364
12364
|
}
|
|
12365
12365
|
}
|
|
@@ -12515,8 +12515,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12515
12515
|
return new se(this._features[K]);
|
|
12516
12516
|
}
|
|
12517
12517
|
}
|
|
12518
|
-
var $, pe, Pe,
|
|
12519
|
-
if (Pe) return
|
|
12518
|
+
var $, pe, Pe, Oe = { exports: {} }, Ge = function() {
|
|
12519
|
+
if (Pe) return Oe.exports;
|
|
12520
12520
|
Pe = 1;
|
|
12521
12521
|
var Se = v.cK(), K = function() {
|
|
12522
12522
|
if (pe) return $;
|
|
@@ -12534,17 +12534,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12534
12534
|
var nt = this.rawGeometry;
|
|
12535
12535
|
this.geometry = [];
|
|
12536
12536
|
for (var mt = 0; mt < nt.length; mt++) {
|
|
12537
|
-
for (var Mt = nt[mt], wt = [],
|
|
12537
|
+
for (var Mt = nt[mt], wt = [], Fe = 0; Fe < Mt.length; Fe++) wt.push(new Le(Mt[Fe][0], Mt[Fe][1]));
|
|
12538
12538
|
this.geometry.push(wt);
|
|
12539
12539
|
}
|
|
12540
12540
|
return this.geometry;
|
|
12541
12541
|
}, rt.prototype.bbox = function() {
|
|
12542
12542
|
this.geometry || this.loadGeometry();
|
|
12543
|
-
for (var nt = this.geometry, mt = 1 / 0, Mt = -1 / 0, wt = 1 / 0,
|
|
12543
|
+
for (var nt = this.geometry, mt = 1 / 0, Mt = -1 / 0, wt = 1 / 0, Fe = -1 / 0, er = 0; er < nt.length; er++) for (var Wt = nt[er], Qt = 0; Qt < Wt.length; Qt++) {
|
|
12544
12544
|
var bt = Wt[Qt];
|
|
12545
|
-
mt = Math.min(mt, bt.x), Mt = Math.max(Mt, bt.x), wt = Math.min(wt, bt.y),
|
|
12545
|
+
mt = Math.min(mt, bt.x), Mt = Math.max(Mt, bt.x), wt = Math.min(wt, bt.y), Fe = Math.max(Fe, bt.y);
|
|
12546
12546
|
}
|
|
12547
|
-
return [mt, wt, Mt,
|
|
12547
|
+
return [mt, wt, Mt, Fe];
|
|
12548
12548
|
}, rt.prototype.toGeoJSON = ke.prototype.toGeoJSON, $;
|
|
12549
12549
|
}();
|
|
12550
12550
|
function X(Le) {
|
|
@@ -12570,13 +12570,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12570
12570
|
function _e(Le, ke) {
|
|
12571
12571
|
var We = Le.feature, rt = Le.keys, nt = Le.values, mt = Le.keycache, Mt = Le.valuecache;
|
|
12572
12572
|
for (var wt in We.properties) {
|
|
12573
|
-
var
|
|
12574
|
-
if (
|
|
12573
|
+
var Fe = We.properties[wt], er = mt[wt];
|
|
12574
|
+
if (Fe !== null) {
|
|
12575
12575
|
er === void 0 && (rt.push(wt), mt[wt] = er = rt.length - 1), ke.writeVarint(er);
|
|
12576
|
-
var Wt = typeof
|
|
12577
|
-
Wt !== "string" && Wt !== "boolean" && Wt !== "number" && (
|
|
12578
|
-
var Qt = Wt + ":" +
|
|
12579
|
-
bt === void 0 && (nt.push(
|
|
12576
|
+
var Wt = typeof Fe;
|
|
12577
|
+
Wt !== "string" && Wt !== "boolean" && Wt !== "number" && (Fe = JSON.stringify(Fe));
|
|
12578
|
+
var Qt = Wt + ":" + Fe, bt = Mt[Qt];
|
|
12579
|
+
bt === void 0 && (nt.push(Fe), Mt[Qt] = bt = nt.length - 1), ke.writeVarint(bt);
|
|
12580
12580
|
}
|
|
12581
12581
|
}
|
|
12582
12582
|
}
|
|
@@ -12588,11 +12588,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12588
12588
|
}
|
|
12589
12589
|
function we(Le, ke) {
|
|
12590
12590
|
for (var We = Le.loadGeometry(), rt = Le.type, nt = 0, mt = 0, Mt = We.length, wt = 0; wt < Mt; wt++) {
|
|
12591
|
-
var
|
|
12592
|
-
rt === 1 && (er =
|
|
12593
|
-
for (var Wt = rt === 3 ?
|
|
12591
|
+
var Fe = We[wt], er = 1;
|
|
12592
|
+
rt === 1 && (er = Fe.length), ke.writeVarint(te(1, er));
|
|
12593
|
+
for (var Wt = rt === 3 ? Fe.length - 1 : Fe.length, Qt = 0; Qt < Wt; Qt++) {
|
|
12594
12594
|
Qt === 1 && rt !== 1 && ke.writeVarint(te(2, Wt - 1));
|
|
12595
|
-
var bt =
|
|
12595
|
+
var bt = Fe[Qt].x - nt, Ne = Fe[Qt].y - mt;
|
|
12596
12596
|
ke.writeVarint(Me(bt)), ke.writeVarint(Me(Ne)), nt += bt, mt += Ne;
|
|
12597
12597
|
}
|
|
12598
12598
|
rt === 3 && ke.writeVarint(te(7, 1));
|
|
@@ -12602,12 +12602,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12602
12602
|
var We = typeof Le;
|
|
12603
12603
|
We === "string" ? ke.writeStringField(1, Le) : We === "boolean" ? ke.writeBooleanField(7, Le) : We === "number" && (Le % 1 != 0 ? ke.writeDoubleField(3, Le) : Le < 0 ? ke.writeSVarintField(6, Le) : ke.writeVarintField(5, Le));
|
|
12604
12604
|
}
|
|
12605
|
-
return
|
|
12605
|
+
return Oe.exports = X, Oe.exports.fromVectorTileJs = X, Oe.exports.fromGeojsonVt = function(Le, ke) {
|
|
12606
12606
|
ke = ke || {};
|
|
12607
12607
|
var We = {};
|
|
12608
12608
|
for (var rt in Le) We[rt] = new K(Le[rt].features, ke), We[rt].name = rt, We[rt].version = ke.version, We[rt].extent = ke.extent;
|
|
12609
12609
|
return X({ layers: We });
|
|
12610
|
-
},
|
|
12610
|
+
}, Oe.exports.GeoJSONWrapper = K, Oe.exports;
|
|
12611
12611
|
}(), St = v.cH(Ge);
|
|
12612
12612
|
const et = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (Se) => Se }, Ye = Math.fround || (it = new Float32Array(1), (Se) => (it[0] = +Se, it[0]));
|
|
12613
12613
|
var it;
|
|
@@ -12723,27 +12723,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12723
12723
|
const We = we[ke], rt = we[ke + 1], nt = K.within(we[ke], we[ke + 1], Me), mt = we[ke + Ft];
|
|
12724
12724
|
let Mt = mt;
|
|
12725
12725
|
for (const wt of nt) {
|
|
12726
|
-
const
|
|
12727
|
-
we[
|
|
12726
|
+
const Fe = wt * Le;
|
|
12727
|
+
we[Fe + 2] > X && (Mt += we[Fe + Ft]);
|
|
12728
12728
|
}
|
|
12729
12729
|
if (Mt > mt && Mt >= te) {
|
|
12730
|
-
let wt,
|
|
12730
|
+
let wt, Fe = We * mt, er = rt * mt, Wt = -1;
|
|
12731
12731
|
const Qt = ((ke / Le | 0) << 5) + (X + 1) + this.points.length;
|
|
12732
12732
|
for (const bt of nt) {
|
|
12733
12733
|
const Ne = bt * Le;
|
|
12734
12734
|
if (we[Ne + 2] <= X) continue;
|
|
12735
12735
|
we[Ne + 2] = X;
|
|
12736
12736
|
const vt = we[Ne + Ft];
|
|
12737
|
-
|
|
12737
|
+
Fe += we[Ne] * vt, er += we[Ne + 1] * vt, we[Ne + 4] = Qt, _e && (wt || (wt = this._map(we, ke, !0), Wt = this.clusterProps.length, this.clusterProps.push(wt)), _e(wt, this._map(we, Ne)));
|
|
12738
12738
|
}
|
|
12739
|
-
we[ke + 4] = Qt, Ce.push(
|
|
12739
|
+
we[ke + 4] = Qt, Ce.push(Fe / Mt, er / Mt, 1 / 0, Qt, -1, Mt), _e && Ce.push(Wt);
|
|
12740
12740
|
} else {
|
|
12741
12741
|
for (let wt = 0; wt < Le; wt++) Ce.push(we[ke + wt]);
|
|
12742
12742
|
if (Mt > 1) for (const wt of nt) {
|
|
12743
|
-
const
|
|
12744
|
-
if (!(we[
|
|
12745
|
-
we[
|
|
12746
|
-
for (let er = 0; er < Le; er++) Ce.push(we[
|
|
12743
|
+
const Fe = wt * Le;
|
|
12744
|
+
if (!(we[Fe + 2] <= X)) {
|
|
12745
|
+
we[Fe + 2] = X;
|
|
12746
|
+
for (let er = 0; er < Le; er++) Ce.push(we[Fe + er]);
|
|
12747
12747
|
}
|
|
12748
12748
|
}
|
|
12749
12749
|
}
|
|
@@ -12917,9 +12917,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12917
12917
|
const we = he === 0 ? cn : Fn;
|
|
12918
12918
|
let Ce, Le, ke = Se.start;
|
|
12919
12919
|
for (let Mt = 0; Mt < Se.length - 3; Mt += 3) {
|
|
12920
|
-
const wt = Se[Mt],
|
|
12920
|
+
const wt = Se[Mt], Fe = Se[Mt + 1], er = Se[Mt + 2], Wt = Se[Mt + 3], Qt = Se[Mt + 4], bt = he === 0 ? wt : Fe, Ne = he === 0 ? Wt : Qt;
|
|
12921
12921
|
let vt = !1;
|
|
12922
|
-
te && (Ce = Math.sqrt(Math.pow(wt - Wt, 2) + Math.pow(
|
|
12922
|
+
te && (Ce = Math.sqrt(Math.pow(wt - Wt, 2) + Math.pow(Fe - Qt, 2))), bt < X ? Ne > X && (Le = we(Me, wt, Fe, Wt, Qt, X), te && (Me.start = ke + Ce * Le)) : bt > Q ? Ne < Q && (Le = we(Me, wt, Fe, Wt, Qt, Q), te && (Me.start = ke + Ce * Le)) : ui(Me, wt, Fe, er), Ne < X && bt >= X && (Le = we(Me, wt, Fe, Wt, Qt, X), vt = !0), Ne > Q && bt <= Q && (Le = we(Me, wt, Fe, Wt, Qt, Q), vt = !0), !_e && vt && (te && (Me.end = ke + Ce * Le), K.push(Me), Me = ji(Se)), te && (ke += Ce);
|
|
12923
12923
|
}
|
|
12924
12924
|
let We = Se.length - 3;
|
|
12925
12925
|
const rt = Se[We], nt = Se[We + 1], mt = he === 0 ? rt : nt;
|
|
@@ -13071,8 +13071,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13071
13071
|
if (rt.source = null, K.length === 0) continue;
|
|
13072
13072
|
Le > 1 && console.time("clipping");
|
|
13073
13073
|
const nt = 0.5 * Ce.buffer / Ce.extent, mt = 0.5 - nt, Mt = 0.5 + nt, wt = 1 + nt;
|
|
13074
|
-
let
|
|
13075
|
-
K = null, bt && (
|
|
13074
|
+
let Fe = null, er = null, Wt = null, Qt = null, bt = It(K, ke, Q - nt, Q + Mt, 0, rt.minX, rt.maxX, Ce), Ne = It(K, ke, Q + mt, Q + wt, 0, rt.minX, rt.maxX, Ce);
|
|
13075
|
+
K = null, bt && (Fe = It(bt, ke, he - nt, he + Mt, 1, rt.minY, rt.maxY, Ce), er = It(bt, ke, he + mt, he + wt, 1, rt.minY, rt.maxY, Ce), bt = null), Ne && (Wt = It(Ne, ke, he - nt, he + Mt, 1, rt.minY, rt.maxY, Ce), Qt = It(Ne, ke, he + mt, he + wt, 1, rt.minY, rt.maxY, Ce), Ne = null), Le > 1 && console.timeEnd("clipping"), we.push(Fe || [], X + 1, 2 * Q, 2 * he), we.push(er || [], X + 1, 2 * Q, 2 * he + 1), we.push(Wt || [], X + 1, 2 * Q + 1, 2 * he), we.push(Qt || [], X + 1, 2 * Q + 1, 2 * he + 1);
|
|
13076
13076
|
}
|
|
13077
13077
|
}
|
|
13078
13078
|
getTile(K, X, Q) {
|
|
@@ -13503,7 +13503,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13503
13503
|
}
|
|
13504
13504
|
return e;
|
|
13505
13505
|
}
|
|
13506
|
-
function
|
|
13506
|
+
function Oe(h, e, r) {
|
|
13507
13507
|
try {
|
|
13508
13508
|
const a = new URL(h);
|
|
13509
13509
|
return a.pathname += `${e}${r}`, a.toString();
|
|
@@ -14977,17 +14977,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14977
14977
|
for (me.push(ce(0)); me.length > 0; ) {
|
|
14978
14978
|
const ge = me.pop(), xe = ge.x, ye = ge.y;
|
|
14979
14979
|
let Ie = ge.fullyVisible;
|
|
14980
|
-
const
|
|
14980
|
+
const qe = { x: xe, y: ye, z: ge.zoom }, ze = g.getTileAABB(qe, ge.wrap, h.elevation, e);
|
|
14981
14981
|
if (!Ie) {
|
|
14982
14982
|
const $e = Q(r, ze, a);
|
|
14983
14983
|
if ($e === 0) continue;
|
|
14984
14984
|
Ie = $e === 2;
|
|
14985
14985
|
}
|
|
14986
|
-
const De = g.distanceToTile2d(l.x, l.y,
|
|
14986
|
+
const De = g.distanceToTile2d(l.x, l.y, qe, ze);
|
|
14987
14987
|
let Be = S;
|
|
14988
14988
|
b && (Be = (e.calculateTileZoom || te)(h.zoom + s.ah(h.tileSize / e.tileSize), De, ie, oe, h.fov)), Be = (e.roundZoom ? Math.round : Math.floor)(Be), Be = Math.max(0, Be);
|
|
14989
14989
|
const tt = Math.min(Be, z);
|
|
14990
|
-
if (ge.wrap = g.getWrap(p,
|
|
14990
|
+
if (ge.wrap = g.getWrap(p, qe, ge.wrap), ge.zoom >= tt) {
|
|
14991
14991
|
if (ge.zoom < E) continue;
|
|
14992
14992
|
const $e = V - ge.zoom, Ke = H[0] - 0.5 - (xe << $e), ht = H[1] - 0.5 - (ye << $e), Bt = e.reparseOverscaled ? Math.max(ge.zoom, Be) : ge.zoom;
|
|
14993
14993
|
fe.push({ tileID: new s.Y(ge.zoom === z ? Bt : ge.zoom, ge.wrap, ge.zoom, xe, ye), distanceSq: s.ai([G[0] - 0.5 - xe, G[1] - 0.5 - ye]), tileDistanceToCamera: Math.sqrt(Ke * Ke + ht * ht) });
|
|
@@ -15534,7 +15534,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15534
15534
|
const E = s.ap(S);
|
|
15535
15535
|
return E < 1e-9 ? s.aq(S) : s.ar(S, S, 1 / E), { vecEast: S, vecSouth: g };
|
|
15536
15536
|
}
|
|
15537
|
-
function
|
|
15537
|
+
function Fe(h, e, r, a) {
|
|
15538
15538
|
let l;
|
|
15539
15539
|
a ? (l = [h, e, a(h, e), 1], s.at(l, l, r)) : (l = [h, e, 0, 1], ts(l, l, r));
|
|
15540
15540
|
const p = l[3];
|
|
@@ -15558,12 +15558,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15558
15558
|
continue;
|
|
15559
15559
|
}
|
|
15560
15560
|
fe = !1;
|
|
15561
|
-
const ye = new s.P(xe.anchorX, xe.anchorY), Ie = { getElevation: F, pitchedLabelPlaneMatrix: a, lineVertexArray: oe, pitchWithMap: p, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, transform: e.transform, tileAnchorPoint: ye, unwrappedTileID: S, width: E, height: z, translation: V },
|
|
15562
|
-
if (!Wt(
|
|
15561
|
+
const ye = new s.P(xe.anchorX, xe.anchorY), Ie = { getElevation: F, pitchedLabelPlaneMatrix: a, lineVertexArray: oe, pitchWithMap: p, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, transform: e.transform, tileAnchorPoint: ye, unwrappedTileID: S, width: E, height: z, translation: V }, qe = zt(xe.anchorX, xe.anchorY, Ie);
|
|
15562
|
+
if (!Wt(qe.point, ne)) {
|
|
15563
15563
|
kn(xe.numGlyphs, ie);
|
|
15564
15564
|
continue;
|
|
15565
15565
|
}
|
|
15566
|
-
const ze = er(e.transform.cameraToCenterDistance,
|
|
15566
|
+
const ze = er(e.transform.cameraToCenterDistance, qe.signedDistanceFromCamera), De = s.am(H, G, xe), Be = p ? De * e.transform.getPitchedTextCorrection(xe.anchorX, xe.anchorY, S) / ze : De * ze, tt = vt({ projectionContext: Ie, pitchedLabelPlaneMatrixInverse: l, symbol: xe, fontSize: Be, flip: !1, keepUpright: g, glyphOffsetArray: h.glyphOffsetArray, dynamicLayoutVertexArray: ie, aspectRatio: me, rotateToLine: b });
|
|
15567
15567
|
fe = tt.useVertical, (tt.notEnoughRoom || fe || tt.needsFlipping && vt({ projectionContext: Ie, pitchedLabelPlaneMatrixInverse: l, symbol: xe, fontSize: Be, flip: !0, keepUpright: g, glyphOffsetArray: h.glyphOffsetArray, dynamicLayoutVertexArray: ie, aspectRatio: me, rotateToLine: b }).notEnoughRoom) && kn(xe.numGlyphs, ie);
|
|
15568
15568
|
}
|
|
15569
15569
|
r ? h.text.dynamicLayoutVertexBuffer.updateData(ie) : h.icon.dynamicLayoutVertexBuffer.updateData(ie);
|
|
@@ -15618,7 +15618,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15618
15618
|
function Lr(h, e, r) {
|
|
15619
15619
|
const a = h + r.translation[0], l = e + r.translation[1];
|
|
15620
15620
|
let p;
|
|
15621
|
-
return r.pitchWithMap ? (p =
|
|
15621
|
+
return r.pitchWithMap ? (p = Fe(a, l, r.pitchedLabelPlaneMatrix, r.getElevation), p.isOccluded = !1) : (p = r.transform.projectTileCoordinates(a, l, r.unwrappedTileID, r.getElevation), p.point.x = (0.5 * p.point.x + 0.5) * r.width, p.point.y = (0.5 * -p.point.y + 0.5) * r.height), p;
|
|
15622
15622
|
}
|
|
15623
15623
|
function zi(h, e, r, a) {
|
|
15624
15624
|
if (r.pitchWithMap) {
|
|
@@ -15652,12 +15652,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15652
15652
|
for (; ce + me <= fe; ) {
|
|
15653
15653
|
if (H += z, H < p || H >= g) return null;
|
|
15654
15654
|
ce += me, oe = ie, ne = G;
|
|
15655
|
-
const
|
|
15656
|
-
if (ie = Mr(H, b,
|
|
15655
|
+
const qe = { absOffsetX: fe, direction: z, distanceFromAnchor: ce, previousVertex: oe };
|
|
15656
|
+
if (ie = Mr(H, b, qe), r === 0) ge.push(oe), xe = ie.sub(oe);
|
|
15657
15657
|
else {
|
|
15658
15658
|
let ze;
|
|
15659
15659
|
const De = ie.sub(oe);
|
|
15660
|
-
ze = De.mag() === 0 ? As(Mr(H + z, b,
|
|
15660
|
+
ze = De.mag() === 0 ? As(Mr(H + z, b, qe).sub(ie), r, z) : As(De, r, z), ne || (ne = oe.add(ze)), G = $s(H, ze, ie, p, g, ne, r, b, qe), ge.push(ne), xe = G.sub(ne);
|
|
15661
15661
|
}
|
|
15662
15662
|
me = xe.mag();
|
|
15663
15663
|
}
|
|
@@ -15696,7 +15696,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15696
15696
|
const ne = [], ie = new s.P(r.anchorX, r.anchorY), oe = this.getPerspectiveRatio(ie.x, ie.y, g, G), ce = (E ? p * this.transform.getPitchedTextCorrection(r.anchorX, r.anchorY, g) / oe : p * oe) / s.ay, me = { getElevation: G, pitchedLabelPlaneMatrix: b, lineVertexArray: a, pitchWithMap: E, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, transform: this.transform, tileAnchorPoint: ie, unwrappedTileID: g, width: this.transform.width, height: this.transform.height, translation: H }, fe = bt(ce, l, r.lineOffsetX * ce, r.lineOffsetY * ce, !1, r, !1, me);
|
|
15697
15697
|
let ge = !1, xe = !1, ye = !0;
|
|
15698
15698
|
if (fe) {
|
|
15699
|
-
const Ie = 0.5 * V * oe + F,
|
|
15699
|
+
const Ie = 0.5 * V * oe + F, qe = new s.P(-100, -100), ze = new s.P(this.screenRightBoundary, this.screenBottomBoundary), De = new We(), Be = fe.first, tt = fe.last;
|
|
15700
15700
|
let $e = [];
|
|
15701
15701
|
for (let Bt = Be.path.length - 1; Bt >= 1; Bt--) $e.push(Be.path[Bt]);
|
|
15702
15702
|
for (let Bt = 1; Bt < tt.path.length; Bt++) $e.push(tt.path[Bt]);
|
|
@@ -15709,7 +15709,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15709
15709
|
if ($e.length > 0) {
|
|
15710
15710
|
const Bt = $e[0].clone(), Kt = $e[0].clone();
|
|
15711
15711
|
for (let Tr = 1; Tr < $e.length; Tr++) Bt.x = Math.min(Bt.x, $e[Tr].x), Bt.y = Math.min(Bt.y, $e[Tr].y), Kt.x = Math.max(Kt.x, $e[Tr].x), Kt.y = Math.max(Kt.y, $e[Tr].y);
|
|
15712
|
-
ht = Bt.x >=
|
|
15712
|
+
ht = Bt.x >= qe.x && Kt.x <= ze.x && Bt.y >= qe.y && Kt.y <= ze.y ? [$e] : Kt.x < qe.x || Bt.x > ze.x || Kt.y < qe.y || Bt.y > ze.y ? [] : s.av([$e], qe.x, qe.y, ze.x, ze.y);
|
|
15713
15713
|
}
|
|
15714
15714
|
for (const Bt of ht) {
|
|
15715
15715
|
De.reset(Bt, 0.25 * Ie);
|
|
@@ -15729,7 +15729,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15729
15729
|
const a = function(l, p) {
|
|
15730
15730
|
const g = s.K();
|
|
15731
15731
|
return s.an(g, p.pitchedLabelPlaneMatrix), l.map((b) => {
|
|
15732
|
-
const S =
|
|
15732
|
+
const S = Fe(b.x, b.y, g, p.getElevation), E = p.transform.projectTileCoordinates(S.point.x, S.point.y, p.unwrappedTileID, p.getElevation);
|
|
15733
15733
|
return E.point.x = (0.5 * E.point.x + 0.5) * p.width, E.point.y = (0.5 * -E.point.y + 0.5) * p.height, E;
|
|
15734
15734
|
});
|
|
15735
15735
|
}(e, r);
|
|
@@ -15801,7 +15801,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15801
15801
|
}
|
|
15802
15802
|
let ce = S.x, me = S.y, fe = r;
|
|
15803
15803
|
p && (ce = ie, me = oe, fe = Math.pow(2, -(this.transform.zoom - a.overscaledZ)), fe *= this.transform.getPitchedTextCorrection(ie, oe, l), z || (fe *= s.ae(0.5 + S.signedDistanceFromCamera / this.transform.cameraToCenterDistance * 0.5, 0, 4))), z && (ce += F * z.x * fe + G * z.y * fe, me += H * z.x * fe + ne * z.y * fe);
|
|
15804
|
-
const ge = e.x1 * fe, xe = e.x2 * fe, ye = (ge + xe) / 2, Ie = e.y1 * fe,
|
|
15804
|
+
const ge = e.x1 * fe, xe = e.x2 * fe, ye = (ge + xe) / 2, Ie = e.y1 * fe, qe = e.y2 * fe, ze = (Ie + qe) / 2, De = [{ offsetX: ge, offsetY: Ie }, { offsetX: ye, offsetY: Ie }, { offsetX: xe, offsetY: Ie }, { offsetX: xe, offsetY: ze }, { offsetX: xe, offsetY: qe }, { offsetX: ye, offsetY: qe }, { offsetX: ge, offsetY: qe }, { offsetX: ge, offsetY: ze }];
|
|
15805
15805
|
let Be = [];
|
|
15806
15806
|
for (const { offsetX: $e, offsetY: Ke } of De) Be.push(new s.P(ce + F * $e + G * Ke, me + H * $e + ne * Ke));
|
|
15807
15807
|
let tt = !1;
|
|
@@ -15878,13 +15878,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15878
15878
|
attemptAnchorPlacement(e, r, a, l, p, g, b, S, E, z, V, F, H, G, ne, ie, oe, ce, me, fe) {
|
|
15879
15879
|
const ge = s.aB[e.textAnchor], xe = [e.textOffset0, e.textOffset1], ye = Tn(ge, a, l, xe, p), Ie = this.collisionIndex.placeCollisionBox(r, F, S, E, z, b, g, ie, V.predicate, me, ye, fe);
|
|
15880
15880
|
if ((!ce || this.collisionIndex.placeCollisionBox(ce, F, S, E, z, b, g, oe, V.predicate, me, ye, fe).placeable) && Ie.placeable) {
|
|
15881
|
-
let
|
|
15882
|
-
if (this.prevPlacement && this.prevPlacement.variableOffsets[H.crossTileID] && this.prevPlacement.placements[H.crossTileID] && this.prevPlacement.placements[H.crossTileID].text && (
|
|
15883
|
-
return this.variableOffsets[H.crossTileID] = { textOffset: xe, width: a, height: l, anchor: ge, textBoxScale: p, prevAnchor:
|
|
15881
|
+
let qe;
|
|
15882
|
+
if (this.prevPlacement && this.prevPlacement.variableOffsets[H.crossTileID] && this.prevPlacement.placements[H.crossTileID] && this.prevPlacement.placements[H.crossTileID].text && (qe = this.prevPlacement.variableOffsets[H.crossTileID].anchor), H.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
|
15883
|
+
return this.variableOffsets[H.crossTileID] = { textOffset: xe, width: a, height: l, anchor: ge, textBoxScale: p, prevAnchor: qe }, this.markUsedJustification(G, ge, H, ne), G.allowVerticalPlacement && (this.markUsedOrientation(G, ne, H), this.placedOrientations[H.crossTileID] = ne), { shift: ye, placedGlyphBoxes: Ie };
|
|
15884
15884
|
}
|
|
15885
15885
|
}
|
|
15886
15886
|
placeLayerBucketPart(e, r, a) {
|
|
15887
|
-
const { bucket: l, layout: p, translationText: g, translationIcon: b, unwrappedTileID: S, pitchedLabelPlaneMatrix: E, textPixelRatio: z, holdingForFade: V, collisionBoxArray: F, partiallyEvaluatedTextSize: H, collisionGroup: G } = e.parameters, ne = p.get("text-optional"), ie = p.get("icon-optional"), oe = s.aC(p, "text-overlap", "text-allow-overlap"), ce = oe === "always", me = s.aC(p, "icon-overlap", "icon-allow-overlap"), fe = me === "always", ge = p.get("text-rotation-alignment") === "map", xe = p.get("text-pitch-alignment") === "map", ye = p.get("icon-text-fit") !== "none", Ie = p.get("symbol-z-order") === "viewport-y",
|
|
15887
|
+
const { bucket: l, layout: p, translationText: g, translationIcon: b, unwrappedTileID: S, pitchedLabelPlaneMatrix: E, textPixelRatio: z, holdingForFade: V, collisionBoxArray: F, partiallyEvaluatedTextSize: H, collisionGroup: G } = e.parameters, ne = p.get("text-optional"), ie = p.get("icon-optional"), oe = s.aC(p, "text-overlap", "text-allow-overlap"), ce = oe === "always", me = s.aC(p, "icon-overlap", "icon-allow-overlap"), fe = me === "always", ge = p.get("text-rotation-alignment") === "map", xe = p.get("text-pitch-alignment") === "map", ye = p.get("icon-text-fit") !== "none", Ie = p.get("symbol-z-order") === "viewport-y", qe = ce && (fe || !l.hasIconData() || ie), ze = fe && (ce || !l.hasTextData() || ne);
|
|
15888
15888
|
!l.collisionArrays && F && l.deserializeCollisionBoxes(F);
|
|
15889
15889
|
const De = this.retainedQueryData[l.bucketInstanceId].tileID, Be = this._getTerrainElevationFunc(De), tt = this.transform.getFastPathSimpleProjectionMatrix(De), $e = (Ke, ht, Bt) => {
|
|
15890
15890
|
var Kt, Tr;
|
|
@@ -15956,7 +15956,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15956
15956
|
const ys = Cr && $t.placeable;
|
|
15957
15957
|
if (ur && si.placeable && this.collisionIndex.insertCollisionBox(si.box, oe, p.get("text-ignore-placement"), l.bucketInstanceId, Qr && Qr.placeable && Sn ? Sn : jn, G.ID), ys && this.collisionIndex.insertCollisionBox($t.box, me, p.get("icon-ignore-placement"), l.bucketInstanceId, Nn, G.ID), fi && ur && this.collisionIndex.insertCollisionCircles(fi.circles, oe, p.get("text-ignore-placement"), l.bucketInstanceId, jn, G.ID), a && this.storeCollisionData(l.bucketInstanceId, Bt, ht, si, $t, fi), Ke.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
|
15958
15958
|
if (l.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
|
|
15959
|
-
this.placements[Ke.crossTileID] = new ks((ur ||
|
|
15959
|
+
this.placements[Ke.crossTileID] = new ks((ur || qe) && !(si != null && si.occluded), (Cr || ze) && !($t != null && $t.occluded), Pr || l.justReloaded), r[Ke.crossTileID] = !0;
|
|
15960
15960
|
};
|
|
15961
15961
|
if (Ie) {
|
|
15962
15962
|
if (e.symbolInstanceStart !== 0) throw new Error("bucket.bucketInstanceId should be 0");
|
|
@@ -16031,13 +16031,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16031
16031
|
const ce = e.symbolInstances.get(oe), { numHorizontalGlyphVertices: me, numVerticalGlyphVertices: fe, crossTileID: ge } = ce;
|
|
16032
16032
|
let xe = this.opacities[ge];
|
|
16033
16033
|
a[ge] ? xe = b : xe || (xe = G, this.opacities[ge] = xe), a[ge] = !0;
|
|
16034
|
-
const ye = ce.numIconVertices > 0, Ie = this.placedOrientations[ce.crossTileID],
|
|
16034
|
+
const ye = ce.numIconVertices > 0, Ie = this.placedOrientations[ce.crossTileID], qe = Ie === s.al.vertical, ze = Ie === s.al.horizontal || Ie === s.al.horizontalOnly;
|
|
16035
16035
|
if (me > 0 || fe > 0) {
|
|
16036
16036
|
const Be = nl(xe.text);
|
|
16037
|
-
ne(e.text, me,
|
|
16037
|
+
ne(e.text, me, qe ? is : Be), ne(e.text, fe, ze ? is : Be);
|
|
16038
16038
|
const tt = xe.text.isHidden();
|
|
16039
16039
|
[ce.rightJustifiedTextSymbolIndex, ce.centerJustifiedTextSymbolIndex, ce.leftJustifiedTextSymbolIndex].forEach((ht) => {
|
|
16040
|
-
ht >= 0 && (e.text.placedSymbolArray.get(ht).hidden = tt ||
|
|
16040
|
+
ht >= 0 && (e.text.placedSymbolArray.get(ht).hidden = tt || qe ? 1 : 0);
|
|
16041
16041
|
}), ce.verticalPlacedTextSymbolIndex >= 0 && (e.text.placedSymbolArray.get(ce.verticalPlacedTextSymbolIndex).hidden = tt || ze ? 1 : 0);
|
|
16042
16042
|
const $e = this.variableOffsets[ce.crossTileID];
|
|
16043
16043
|
$e && this.markUsedJustification(e, $e.anchor, ce, Ie);
|
|
@@ -16045,7 +16045,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16045
16045
|
Ke && (this.markUsedJustification(e, "left", ce, Ke), this.markUsedOrientation(e, Ke, ce));
|
|
16046
16046
|
}
|
|
16047
16047
|
if (ye) {
|
|
16048
|
-
const Be = nl(xe.icon), tt = !(H && ce.verticalPlacedIconSymbolIndex &&
|
|
16048
|
+
const Be = nl(xe.icon), tt = !(H && ce.verticalPlacedIconSymbolIndex && qe);
|
|
16049
16049
|
ce.placedIconSymbolIndex >= 0 && (ne(e.icon, ce.numIconVertices, tt ? Be : is), e.icon.placedSymbolArray.get(ce.placedIconSymbolIndex).hidden = xe.icon.isHidden()), ce.verticalPlacedIconSymbolIndex >= 0 && (ne(e.icon, ce.numVerticalIconVertices, tt ? is : Be), e.icon.placedSymbolArray.get(ce.verticalPlacedIconSymbolIndex).hidden = xe.icon.isHidden());
|
|
16050
16050
|
}
|
|
16051
16051
|
const De = ie && ie.has(oe) ? ie.get(oe) : { text: null, icon: null };
|
|
@@ -16061,7 +16061,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16061
16061
|
}
|
|
16062
16062
|
if (Be.textBox || Be.verticalTextBox) {
|
|
16063
16063
|
let Ke;
|
|
16064
|
-
Be.textBox && (Ke =
|
|
16064
|
+
Be.textBox && (Ke = qe), Be.verticalTextBox && (Ke = ze), il(e.textCollisionBox.collisionVertexArray, xe.text.placed, !$e || Ke, De.text, tt.x, tt.y);
|
|
16065
16065
|
}
|
|
16066
16066
|
}
|
|
16067
16067
|
if (Be.iconBox || Be.verticalIconBox) {
|
|
@@ -18630,8 +18630,8 @@ uniform ${z} ${V} u_${F};
|
|
|
18630
18630
|
const ie = s.bs(ne[1], ne[2], g[1], g[2]), oe = 0.5 * Math.PI, ce = G >= -oe && G <= oe, me = ie >= -oe && ie <= oe;
|
|
18631
18631
|
let fe, ge;
|
|
18632
18632
|
if (ce && me) {
|
|
18633
|
-
const
|
|
18634
|
-
s.bv(V,
|
|
18633
|
+
const qe = this.center.lng * Math.PI / 180, ze = this.center.lat * Math.PI / 180;
|
|
18634
|
+
s.bv(V, qe) + s.bv(G, ze) < s.bv(F, qe) + s.bv(ie, ze) ? (fe = V, ge = G) : (fe = F, ge = ie);
|
|
18635
18635
|
} else if (ce) fe = V, ge = G;
|
|
18636
18636
|
else {
|
|
18637
18637
|
if (!me) return;
|
|
@@ -19069,8 +19069,8 @@ uniform ${z} ${V} u_${F};
|
|
|
19069
19069
|
s.aP(H, V, [z[0] * F, z[1] * F, z[2] * F]);
|
|
19070
19070
|
const G = s.bo(H) - 1, ne = Math.exp(0.5 * -Math.max(G - 0.3, 0)), ie = as(r.worldSize, r.center.lat) / Math.min(r.width, r.height), oe = s.bf(ie, 0.9, 0.5, 1, 0.25), ce = (1 - s.ac(-g)) * Math.min(ne, oe), me = r.center.lat, fe = r.zoom, ge = new s.Q(r.center.lng + S * ce, s.ae(r.center.lat + E * ce, -85.051129, s.af));
|
|
19071
19071
|
r.setLocationAtPoint(l, a);
|
|
19072
|
-
const xe = r.center, ye = s.bf(Math.abs(b), 45, 85, 0, 1), Ie = s.bf(ie, 0.75, 0.35, 0, 1),
|
|
19073
|
-
r.setCenter(new s.Q(xe.lng + ze *
|
|
19072
|
+
const xe = r.center, ye = s.bf(Math.abs(b), 45, 85, 0, 1), Ie = s.bf(ie, 0.75, 0.35, 0, 1), qe = Math.pow(Math.max(ye, Ie), 0.25), ze = s.bq(xe.lng, ge.lng), De = s.bq(xe.lat, ge.lat);
|
|
19073
|
+
r.setCenter(new s.Q(xe.lng + ze * qe, xe.lat + De * qe).wrap()), r.setZoom(fe + ni(me, r.center.lat));
|
|
19074
19074
|
}
|
|
19075
19075
|
handleMapControlsPan(e, r, a) {
|
|
19076
19076
|
if (!e.panDelta) return;
|
|
@@ -19105,8 +19105,8 @@ uniform ${z} ${V} u_${F};
|
|
|
19105
19105
|
return z = ie !== a, { easeFunc: (xe) => {
|
|
19106
19106
|
if (s.b6(g, b) || Wi({ startEulerAngles: g, endEulerAngles: b, tr: e, k: xe, useSlerp: g.roll != b.roll }), E && e.interpolatePadding(p, r.padding, xe), r.around) s.w("Easing around a point is not supported under globe projection."), e.setLocationAtPoint(r.around, r.aroundPoint);
|
|
19107
19107
|
else {
|
|
19108
|
-
const ye = ce > oe ? Math.min(2, ge) : Math.max(0.5, ge), Ie = Math.pow(ye, 1 - xe),
|
|
19109
|
-
e.setCenter(
|
|
19108
|
+
const ye = ce > oe ? Math.min(2, ge) : Math.max(0.5, ge), Ie = Math.pow(ye, 1 - xe), qe = Lc(l, me, fe, xe * Ie);
|
|
19109
|
+
e.setCenter(qe.wrap());
|
|
19110
19110
|
}
|
|
19111
19111
|
if (z) {
|
|
19112
19112
|
const ye = s.B.number(oe, ce, xe) + ni(0, e.center.lat);
|
|
@@ -19122,7 +19122,7 @@ uniform ${z} ${V} u_${F};
|
|
|
19122
19122
|
const F = z.center;
|
|
19123
19123
|
Ps(e, F);
|
|
19124
19124
|
const H = function(fe, ge, xe) {
|
|
19125
|
-
const ye = ii(ge), Ie = ii(xe),
|
|
19125
|
+
const ye = ii(ge), Ie = ii(xe), qe = s.aV(ye, Ie), ze = Math.acos(qe), De = co(fe);
|
|
19126
19126
|
return ze / (2 * Math.PI) * De;
|
|
19127
19127
|
}(e, l, F), G = p + ni(l.lat, 0), ne = E + ni(F.lat, 0), ie = s.ac(ne - G);
|
|
19128
19128
|
let oe;
|
|
@@ -19134,10 +19134,10 @@ uniform ${z} ${V} u_${F};
|
|
|
19134
19134
|
return { easeFunc: (fe, ge, xe, ye) => {
|
|
19135
19135
|
const Ie = Lc(l, ce, me, xe);
|
|
19136
19136
|
b && e.interpolatePadding(g, r.padding, fe);
|
|
19137
|
-
const
|
|
19138
|
-
e.setCenter(
|
|
19137
|
+
const qe = fe === 1 ? F : Ie;
|
|
19138
|
+
e.setCenter(qe.wrap());
|
|
19139
19139
|
const ze = G + s.ah(ge);
|
|
19140
|
-
e.setZoom(fe === 1 ? E : ze + ni(0,
|
|
19140
|
+
e.setZoom(fe === 1 ? E : ze + ni(0, qe.lat));
|
|
19141
19141
|
}, scaleOfZoom: ie, targetCenter: F, scaleOfMinZoom: oe, pixelPathLength: H };
|
|
19142
19142
|
}
|
|
19143
19143
|
static solveVectorScale(e, r, a, l, p) {
|
|
@@ -19242,9 +19242,9 @@ uniform ${z} ${V} u_${F};
|
|
|
19242
19242
|
return s._(this, void 0, void 0, function* () {
|
|
19243
19243
|
const E = Pe(p), z = b > 1 ? "@2x" : "", V = {}, F = {};
|
|
19244
19244
|
for (const { id: H, url: G } of E) {
|
|
19245
|
-
const ne = g.transformRequest(
|
|
19245
|
+
const ne = g.transformRequest(Oe(G, z, ".json"), "SpriteJSON");
|
|
19246
19246
|
V[H] = s.j(ne, S);
|
|
19247
|
-
const ie = g.transformRequest(
|
|
19247
|
+
const ie = g.transformRequest(Oe(G, z, ".png"), "SpriteImage");
|
|
19248
19248
|
F[H] = $.getImage(ie, S);
|
|
19249
19249
|
}
|
|
19250
19250
|
return yield Promise.all([...Object.values(V), ...Object.values(F)]), function(H, G) {
|
|
@@ -19254,8 +19254,8 @@ uniform ${z} ${V} u_${F};
|
|
|
19254
19254
|
ne[ie] = {};
|
|
19255
19255
|
const oe = M.getImageCanvasContext((yield G[ie]).data), ce = (yield H[ie]).data;
|
|
19256
19256
|
for (const me in ce) {
|
|
19257
|
-
const { width: fe, height: ge, x: xe, y: ye, sdf: Ie, pixelRatio:
|
|
19258
|
-
ne[ie][me] = { data: null, pixelRatio:
|
|
19257
|
+
const { width: fe, height: ge, x: xe, y: ye, sdf: Ie, pixelRatio: qe, stretchX: ze, stretchY: De, content: Be, textFitWidth: tt, textFitHeight: $e } = ce[me];
|
|
19258
|
+
ne[ie][me] = { data: null, pixelRatio: qe, sdf: Ie, stretchX: ze, stretchY: De, content: Be, textFitWidth: tt, textFitHeight: $e, spriteData: { width: fe, height: ge, x: xe, y: ye, context: oe } };
|
|
19259
19259
|
}
|
|
19260
19260
|
}
|
|
19261
19261
|
return ne;
|
|
@@ -19658,13 +19658,13 @@ uniform ${z} ${V} u_${F};
|
|
|
19658
19658
|
const fe = me.featureIndex.lookupSymbolFeatures(oe[me.bucketInstanceId], z, me.bucketIndex, me.sourceLayerIndex, H.filter, H.layers, H.availableImages, E);
|
|
19659
19659
|
for (const ge in fe) {
|
|
19660
19660
|
const xe = ie[ge] = ie[ge] || [], ye = fe[ge];
|
|
19661
|
-
ye.sort((Ie,
|
|
19661
|
+
ye.sort((Ie, qe) => {
|
|
19662
19662
|
const ze = me.featureSortOrder;
|
|
19663
19663
|
if (ze) {
|
|
19664
19664
|
const De = ze.indexOf(Ie.featureIndex);
|
|
19665
|
-
return ze.indexOf(
|
|
19665
|
+
return ze.indexOf(qe.featureIndex) - De;
|
|
19666
19666
|
}
|
|
19667
|
-
return
|
|
19667
|
+
return qe.featureIndex - Ie.featureIndex;
|
|
19668
19668
|
});
|
|
19669
19669
|
for (const Ie of ye) xe.push(Ie);
|
|
19670
19670
|
}
|
|
@@ -19897,19 +19897,19 @@ uniform ${z} ${V} u_${F};
|
|
|
19897
19897
|
if (z.isContextLost()) return void (this.failedToCreate = !0);
|
|
19898
19898
|
if (z.shaderSource(Ie, xe), z.compileShader(Ie), !z.getShaderParameter(Ie, z.COMPILE_STATUS)) throw new Error(`Could not compile vertex shader: ${z.getShaderInfoLog(Ie)}`);
|
|
19899
19899
|
z.attachShader(this.program, Ie), this.attributes = {};
|
|
19900
|
-
const
|
|
19900
|
+
const qe = {};
|
|
19901
19901
|
this.numAttributes = H.length;
|
|
19902
19902
|
for (let ze = 0; ze < this.numAttributes; ze++) H[ze] && (z.bindAttribLocation(this.program, ze, H[ze]), this.attributes[H[ze]] = ze);
|
|
19903
19903
|
if (z.linkProgram(this.program), !z.getProgramParameter(this.program, z.LINK_STATUS)) throw new Error(`Program failed to link: ${z.getProgramInfoLog(this.program)}`);
|
|
19904
19904
|
z.deleteShader(Ie), z.deleteShader(ye);
|
|
19905
19905
|
for (let ze = 0; ze < me.length; ze++) {
|
|
19906
19906
|
const De = me[ze];
|
|
19907
|
-
if (De && !
|
|
19907
|
+
if (De && !qe[De]) {
|
|
19908
19908
|
const Be = z.getUniformLocation(this.program, De);
|
|
19909
|
-
Be && (
|
|
19909
|
+
Be && (qe[De] = Be);
|
|
19910
19910
|
}
|
|
19911
19911
|
}
|
|
19912
|
-
this.fixedUniforms = l(e,
|
|
19912
|
+
this.fixedUniforms = l(e, qe), this.terrainUniforms = ((ze, De) => ({ u_depth: new s.bH(ze, De.u_depth), u_terrain: new s.bH(ze, De.u_terrain), u_terrain_dim: new s.b8(ze, De.u_terrain_dim), u_terrain_matrix: new s.bJ(ze, De.u_terrain_matrix), u_terrain_unpack: new s.bK(ze, De.u_terrain_unpack), u_terrain_exaggeration: new s.b8(ze, De.u_terrain_exaggeration) }))(e, qe), this.projectionUniforms = ((ze, De) => ({ u_projection_matrix: new s.bJ(ze, De.u_projection_matrix), u_projection_tile_mercator_coords: new s.bK(ze, De.u_projection_tile_mercator_coords), u_projection_clipping_plane: new s.bK(ze, De.u_projection_clipping_plane), u_projection_transition: new s.b8(ze, De.u_projection_transition), u_projection_fallback_matrix: new s.bJ(ze, De.u_projection_fallback_matrix) }))(e, qe), this.binderUniforms = a ? a.getUniforms(e, qe) : [];
|
|
19913
19913
|
}
|
|
19914
19914
|
draw(e, r, a, l, p, g, b, S, E, z, V, F, H, G, ne, ie, oe, ce, me) {
|
|
19915
19915
|
const fe = e.gl;
|
|
@@ -20538,7 +20538,7 @@ uniform ${z} ${V} u_${F};
|
|
|
20538
20538
|
let b = a.mult(p);
|
|
20539
20539
|
r || (b = b.rotate(-l));
|
|
20540
20540
|
const S = g.add(b);
|
|
20541
|
-
return
|
|
20541
|
+
return Fe(S.x, S.y, e.pitchedLabelPlaneMatrix, e.getElevation).point;
|
|
20542
20542
|
}
|
|
20543
20543
|
if (r) {
|
|
20544
20544
|
const b = Lr(e.tileAnchorPoint.x + 1, e.tileAnchorPoint.y, e).point.sub(h), S = Math.atan(b.y / b.x) + (b.x < 0 ? Math.PI : 0);
|
|
@@ -20555,7 +20555,7 @@ uniform ${z} ${V} u_${F};
|
|
|
20555
20555
|
const me = new s.P(oe.anchorX, oe.anchorY), fe = { getElevation: V, width: l.width, height: l.height, pitchedLabelPlaneMatrix: p, pitchWithMap: r, transform: l, tileAnchorPoint: me, translation: E, unwrappedTileID: z }, ge = r ? zt(me.x, me.y, fe) : Lr(me.x, me.y, fe), xe = er(l.cameraToCenterDistance, ge.signedDistanceFromCamera);
|
|
20556
20556
|
let ye = s.am(h.textSizeData, b, oe) * xe / s.ay;
|
|
20557
20557
|
r && (ye *= h.tilePixelRatio / g);
|
|
20558
|
-
const { width: Ie, height:
|
|
20558
|
+
const { width: Ie, height: qe, anchor: ze, textOffset: De, textBoxScale: Be } = ce, tt = ep(ze, Ie, qe, De, Be, ye), $e = l.getPitchedTextCorrection(me.x + E[0], me.y + E[1], z), Ke = tp(ge.point, fe, e, tt, -l.bearingInRadians, $e), ht = h.allowVerticalPlacement && oe.placedOrientation === s.al.vertical ? Math.PI / 2 : 0;
|
|
20559
20559
|
for (let Bt = 0; Bt < oe.numGlyphs; Bt++) s.as(H, Ke, ht);
|
|
20560
20560
|
S && oe.associatedIconIndex >= 0 && (ne[oe.associatedIconIndex] = { shiftedAnchor: Ke, angle: ht });
|
|
20561
20561
|
} else kn(oe.numGlyphs, H);
|
|
@@ -20582,7 +20582,7 @@ uniform ${z} ${V} u_${F};
|
|
|
20582
20582
|
function _a(h, e, r, a, l, p, g, b, S, E, z, V, F) {
|
|
20583
20583
|
const H = h.context, G = H.gl, ne = h.transform, ie = b === "map", oe = S === "map", ce = b !== "viewport" && r.layout.get("symbol-placement") !== "point", me = ie && !oe && !ce, fe = !r.layout.get("symbol-sort-key").isConstant();
|
|
20584
20584
|
let ge = !1;
|
|
20585
|
-
const xe = h.getDepthModeForSublayer(0, Ct.ReadOnly), ye = r._unevaluatedLayout.hasValue("text-variable-anchor") || r._unevaluatedLayout.hasValue("text-variable-anchor-offset"), Ie = [],
|
|
20585
|
+
const xe = h.getDepthModeForSublayer(0, Ct.ReadOnly), ye = r._unevaluatedLayout.hasValue("text-variable-anchor") || r._unevaluatedLayout.hasValue("text-variable-anchor-offset"), Ie = [], qe = ne.getCircleRadiusCorrection();
|
|
20586
20586
|
for (const ze of a) {
|
|
20587
20587
|
const De = e.getTile(ze), Be = De.getBucket(r);
|
|
20588
20588
|
if (!Be) continue;
|
|
@@ -20604,7 +20604,7 @@ uniform ${z} ${V} u_${F};
|
|
|
20604
20604
|
}
|
|
20605
20605
|
const ys = l && ye || Wn, Zi = ce || ys ? _o : oe ? $t : h.transform.clipSpaceToPixelsMatrix, Hn = Ke && r.paint.get(l ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
20606
20606
|
let In;
|
|
20607
|
-
In = Ke ? Be.iconsInText ? oa(ht.kind, Tr, me, oe, ce, ys, h, Zi, Sn, Nn, Cr, Qr,
|
|
20607
|
+
In = Ke ? Be.iconsInText ? oa(ht.kind, Tr, me, oe, ce, ys, h, Zi, Sn, Nn, Cr, Qr, qe) : Nc(ht.kind, Tr, me, oe, ce, ys, h, Zi, Sn, Nn, l, Cr, 0, qe) : Rs(ht.kind, Tr, me, oe, ce, ys, h, Zi, Sn, Nn, l, Cr, qe);
|
|
20608
20608
|
const Zn = { program: Kt, buffers: tt, uniformValues: In, projectionData: gs, atlasTexture: Pr, atlasTextureIcon: si, atlasInterpolation: pr, atlasInterpolationIcon: Yt, isSDF: Ke, hasHalo: Hn };
|
|
20609
20609
|
if (fe && Be.canOverlap) {
|
|
20610
20610
|
ge = !0;
|
|
@@ -20677,8 +20677,8 @@ uniform ${z} ${V} u_${F};
|
|
|
20677
20677
|
if (V && !ye.patternsLoaded()) continue;
|
|
20678
20678
|
const Ie = ye.getBucket(r);
|
|
20679
20679
|
if (!Ie) continue;
|
|
20680
|
-
const
|
|
20681
|
-
V && (h.context.activeTexture.set(S.TEXTURE0), ye.imageAtlasTexture.bind(S.LINEAR, S.CLAMP_TO_EDGE),
|
|
20680
|
+
const qe = Ie.programConfigurations.get(r.id), ze = h.useProgram(G, qe), De = h.style.map.terrain && h.style.map.terrain.getTerrainData(xe);
|
|
20681
|
+
V && (h.context.activeTexture.set(S.TEXTURE0), ye.imageAtlasTexture.bind(S.LINEAR, S.CLAMP_TO_EDGE), qe.updatePaintBuffers(F)), xo(qe, E, ge, ye, r);
|
|
20682
20682
|
const Be = ce.getProjectionData({ overscaledTileID: xe, applyGlobeMatrix: !b, applyTerrainMatrix: !0 }), tt = s.aA(ce, ye, me, fe);
|
|
20683
20683
|
if (g) {
|
|
20684
20684
|
ie = Ie.indexBuffer2, oe = Ie.segments2;
|
|
@@ -20686,7 +20686,7 @@ uniform ${z} ${V} u_${F};
|
|
|
20686
20686
|
ne = G === "fillOutlinePattern" && V ? fo(h, F, ye, Ke, tt) : pl(Ke, tt);
|
|
20687
20687
|
} else ie = Ie.indexBuffer, oe = Ie.segments, ne = V ? Rc(h, F, ye, tt) : { u_fill_translate: tt };
|
|
20688
20688
|
const $e = h.stencilModeForClipping(xe);
|
|
20689
|
-
ze.draw(h.context, H, l, $e, p, Zt.backCCW, ne, De, Be, r.id, Ie.layoutVertexBuffer, ie, oe, r.paint, h.transform.zoom,
|
|
20689
|
+
ze.draw(h.context, H, l, $e, p, Zt.backCCW, ne, De, Be, r.id, Ie.layoutVertexBuffer, ie, oe, r.paint, h.transform.zoom, qe);
|
|
20690
20690
|
}
|
|
20691
20691
|
}
|
|
20692
20692
|
function wo(h, e, r, a, l, p, g, b) {
|
|
@@ -20698,7 +20698,7 @@ uniform ${z} ${V} u_${F};
|
|
|
20698
20698
|
F && (h.context.activeTexture.set(E.TEXTURE0), ce.imageAtlasTexture.bind(E.LINEAR, E.CLAMP_TO_EDGE), ge.updatePaintBuffers(H));
|
|
20699
20699
|
const ye = ie.getProjectionData({ overscaledTileID: oe, applyGlobeMatrix: !b, applyTerrainMatrix: !0 });
|
|
20700
20700
|
xo(ge, z, ne, ce, r);
|
|
20701
|
-
const Ie = s.aA(ie, ce, r.paint.get("fill-extrusion-translate"), r.paint.get("fill-extrusion-translate-anchor")),
|
|
20701
|
+
const Ie = s.aA(ie, ce, r.paint.get("fill-extrusion-translate"), r.paint.get("fill-extrusion-translate-anchor")), qe = r.paint.get("fill-extrusion-vertical-gradient"), ze = F ? xn(h, qe, G, Ie, oe, H, ce) : na(h, qe, G, Ie);
|
|
20702
20702
|
xe.draw(S, S.gl.TRIANGLES, l, p, g, Zt.backCCW, ze, fe, ye, r.id, me.layoutVertexBuffer, me.indexBuffer, me.segments, r.paint, h.transform.zoom, ge, h.style.map.terrain && me.centroidVertexBuffer);
|
|
20703
20703
|
}
|
|
20704
20704
|
}
|
|
@@ -20721,10 +20721,10 @@ uniform ${z} ${V} u_${F};
|
|
|
20721
20721
|
const me = h.getDepthModeForSublayer(ce.overscaledZ - z, r.paint.get("raster-opacity") === 1 ? Ct.ReadWrite : Ct.ReadOnly, F.LESS), fe = e.getTile(ce);
|
|
20722
20722
|
fe.registerFadeDuration(r.paint.get("raster-fade-duration"));
|
|
20723
20723
|
const ge = e.findLoadedParent(ce, 0), xe = e.findLoadedSibling(ce), ye = eu(fe, ge || xe || null, e, r, h.transform, h.style.map.terrain);
|
|
20724
|
-
let Ie,
|
|
20724
|
+
let Ie, qe;
|
|
20725
20725
|
const ze = r.paint.get("raster-resampling") === "nearest" ? F.NEAREST : F.LINEAR;
|
|
20726
|
-
V.activeTexture.set(F.TEXTURE0), fe.texture.bind(ze, F.CLAMP_TO_EDGE, F.LINEAR_MIPMAP_NEAREST), V.activeTexture.set(F.TEXTURE1), ge ? (ge.texture.bind(ze, F.CLAMP_TO_EDGE, F.LINEAR_MIPMAP_NEAREST), Ie = Math.pow(2, ge.tileID.overscaledZ - fe.tileID.overscaledZ),
|
|
20727
|
-
const De = h.style.map.terrain && h.style.map.terrain.getTerrainData(ce), Be = G.getProjectionData({ overscaledTileID: ce, aligned: oe, applyGlobeMatrix: !E, applyTerrainMatrix: !0 }), tt = Uc(
|
|
20726
|
+
V.activeTexture.set(F.TEXTURE0), fe.texture.bind(ze, F.CLAMP_TO_EDGE, F.LINEAR_MIPMAP_NEAREST), V.activeTexture.set(F.TEXTURE1), ge ? (ge.texture.bind(ze, F.CLAMP_TO_EDGE, F.LINEAR_MIPMAP_NEAREST), Ie = Math.pow(2, ge.tileID.overscaledZ - fe.tileID.overscaledZ), qe = [fe.tileID.canonical.x * Ie % 1, fe.tileID.canonical.y * Ie % 1]) : fe.texture.bind(ze, F.CLAMP_TO_EDGE, F.LINEAR_MIPMAP_NEAREST), fe.texture.useMipmap && V.extTextureFilterAnisotropic && h.transform.pitch > 20 && F.texParameterf(F.TEXTURE_2D, V.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, V.extTextureFilterAnisotropicMax);
|
|
20727
|
+
const De = h.style.map.terrain && h.style.map.terrain.getTerrainData(ce), Be = G.getProjectionData({ overscaledTileID: ce, aligned: oe, applyGlobeMatrix: !E, applyTerrainMatrix: !0 }), tt = Uc(qe || [0, 0], Ie || 1, ye, r, b), $e = ne.getMeshFromTileID(V, ce.canonical, p, g, "raster");
|
|
20728
20728
|
H.draw(V, F.TRIANGLES, me, l ? l[ce.overscaledZ] : Dt.disabled, ie, S ? Zt.frontCCW : Zt.backCCW, tt, De, Be, r.id, $e.vertexBuffer, $e.indexBuffer, $e.segments);
|
|
20729
20729
|
}
|
|
20730
20730
|
}
|
|
@@ -20900,8 +20900,8 @@ uniform ${z} ${V} u_${F};
|
|
|
20900
20900
|
}
|
|
20901
20901
|
if ((l = this.style.projection) === null || l === void 0 || l.updateGPUdependent({ context: this.context, useProgram: (F) => this.useProgram(F) }), this.context.viewport.set([0, 0, this.width, this.height]), this.context.bindFramebuffer.set(null), this.context.clear({ color: r.showOverdrawInspector ? s.b7.black : s.b7.transparent, depth: 1 }), this.clearStencil(), this.style.sky && function(F, H) {
|
|
20902
20902
|
const G = F.context, ne = G.gl, ie = ((xe, ye, Ie) => {
|
|
20903
|
-
const
|
|
20904
|
-
return { u_sky_color: xe.properties.get("sky-color"), u_horizon_color: xe.properties.get("horizon-color"), u_horizon: [(ye.width / 2 - De * ze) * Ie, (ye.height / 2 + De *
|
|
20903
|
+
const qe = Math.cos(ye.rollInRadians), ze = Math.sin(ye.rollInRadians), De = Se(ye), Be = ye.getProjectionData({ overscaledTileID: null, applyGlobeMatrix: !0, applyTerrainMatrix: !0 }).projectionTransition;
|
|
20904
|
+
return { u_sky_color: xe.properties.get("sky-color"), u_horizon_color: xe.properties.get("horizon-color"), u_horizon: [(ye.width / 2 - De * ze) * Ie, (ye.height / 2 + De * qe) * Ie], u_horizon_normal: [-ze, qe], u_sky_horizon_blend: xe.properties.get("sky-horizon-blend") * ye.height / 2 * Ie, u_sky_blend: Be };
|
|
20905
20905
|
})(H, F.style.map.transform, F.pixelRatio), oe = new Ct(ne.LEQUAL, Ct.ReadWrite, [0, 1]), ce = Dt.disabled, me = F.colorModeForRenderPass(), fe = F.useProgram("sky"), ge = Hi(G, H);
|
|
20906
20906
|
fe.draw(G, ne.TRIANGLES, oe, ce, me, Zt.disabled, ie, null, void 0, "sky", ge.vertexBuffer, ge.indexBuffer, ge.segments);
|
|
20907
20907
|
}(this, this.style.sky), this._showOverdrawInspector = r.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (e._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = p.length - 1; this.currentLayer >= 0; this.currentLayer--) {
|
|
@@ -20923,9 +20923,9 @@ uniform ${z} ${V} u_${F};
|
|
|
20923
20923
|
return Be.properties.get("anchor") === "map" && (s.a_(ht, ht, tt.rollInRadians), s.a$(ht, ht, -tt.pitchInRadians), s.a_(ht, ht, tt.bearingInRadians), s.a$(ht, ht, tt.center.lat * Math.PI / 180), s.bp(ht, ht, -tt.center.lng * Math.PI / 180)), s.bZ(Ke, Ke, ht), Ke;
|
|
20924
20924
|
}(G, F.transform), ge = me.getProjectionData({ overscaledTileID: null, applyGlobeMatrix: !0, applyTerrainMatrix: !0 }), xe = H.properties.get("atmosphere-blend") * ge.projectionTransition;
|
|
20925
20925
|
if (xe === 0) return;
|
|
20926
|
-
const ye = as(me.worldSize, me.center.lat), Ie = me.inverseProjectionMatrix,
|
|
20927
|
-
|
|
20928
|
-
const ze = /* @__PURE__ */ ((Be, tt, $e, Ke, ht) => ({ u_sun_pos: Be, u_atmosphere_blend: tt, u_globe_position: $e, u_globe_radius: Ke, u_inv_proj_matrix: ht }))(fe, xe, [
|
|
20926
|
+
const ye = as(me.worldSize, me.center.lat), Ie = me.inverseProjectionMatrix, qe = new Float64Array(4);
|
|
20927
|
+
qe[3] = 1, s.at(qe, qe, me.modelViewProjectionMatrix), qe[0] /= qe[3], qe[1] /= qe[3], qe[2] /= qe[3], qe[3] = 1, s.at(qe, qe, Ie), qe[0] /= qe[3], qe[1] /= qe[3], qe[2] /= qe[3], qe[3] = 1;
|
|
20928
|
+
const ze = /* @__PURE__ */ ((Be, tt, $e, Ke, ht) => ({ u_sun_pos: Be, u_atmosphere_blend: tt, u_globe_position: $e, u_globe_radius: Ke, u_inv_proj_matrix: ht }))(fe, xe, [qe[0], qe[1], qe[2]], ye, Ie), De = Hi(ne, H);
|
|
20929
20929
|
oe.draw(ne, ie.TRIANGLES, ce, Dt.disabled, lr.alphaBlended, Zt.disabled, ze, null, null, "atmosphere", De.vertexBuffer, De.indexBuffer, De.segments);
|
|
20930
20930
|
}(this, this.style.sky, this.style.light), this.options.showTileBoundaries) {
|
|
20931
20931
|
const F = function(H, G) {
|
|
@@ -20977,13 +20977,13 @@ uniform ${z} ${V} u_${F};
|
|
|
20977
20977
|
if (g.renderPass !== "translucent") return;
|
|
20978
20978
|
const { isRenderingToTexture: F } = V, H = Dt.disabled, G = g.colorModeForRenderPass();
|
|
20979
20979
|
(S._unevaluatedLayout.hasValue("text-variable-anchor") || S._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(ne, ie, oe, ce, me, fe, ge, xe, ye) {
|
|
20980
|
-
const Ie = ie.transform,
|
|
20980
|
+
const Ie = ie.transform, qe = ie.style.map.terrain, ze = me === "map", De = fe === "map";
|
|
20981
20981
|
for (const Be of ne) {
|
|
20982
20982
|
const tt = ce.getTile(Be), $e = tt.getBucket(oe);
|
|
20983
20983
|
if (!$e || !$e.text || !$e.text.segments.get().length) continue;
|
|
20984
20984
|
const Ke = s.ak($e.textSizeData, Ie.zoom), ht = s.az(tt, 1, ie.transform.zoom), Bt = mt(ze, ie.transform, ht), Kt = oe.layout.get("icon-text-fit") !== "none" && $e.hasIconData();
|
|
20985
20985
|
if (Ke) {
|
|
20986
|
-
const Tr = Math.pow(2, Ie.zoom - tt.tileID.overscaledZ), ur =
|
|
20986
|
+
const Tr = Math.pow(2, Ie.zoom - tt.tileID.overscaledZ), ur = qe ? (Cr, Pr) => qe.getElevation(Be, Cr, Pr) : null;
|
|
20987
20987
|
$c($e, ze, De, ye, Ie, Bt, Tr, Ke, Kt, s.aA(Ie, tt, ge, xe), Be.toUnwrapped(), ur);
|
|
20988
20988
|
}
|
|
20989
20989
|
}
|
|
@@ -20994,18 +20994,18 @@ uniform ${z} ${V} u_${F};
|
|
|
20994
20994
|
if (F.constantOr(1) === 0 && (H.constantOr(1) === 0 || G.constantOr(1) === 0)) return;
|
|
20995
20995
|
const ie = g.context, oe = ie.gl, ce = g.transform, me = g.getDepthModeForSublayer(0, Ct.ReadOnly), fe = Dt.disabled, ge = g.colorModeForRenderPass(), xe = [], ye = ce.getCircleRadiusCorrection();
|
|
20996
20996
|
for (let Ie = 0; Ie < E.length; Ie++) {
|
|
20997
|
-
const
|
|
20997
|
+
const qe = E[Ie], ze = b.getTile(qe), De = ze.getBucket(S);
|
|
20998
20998
|
if (!De) continue;
|
|
20999
|
-
const Be = S.paint.get("circle-translate"), tt = S.paint.get("circle-translate-anchor"), $e = s.aA(ce, ze, Be, tt), Ke = De.programConfigurations.get(S.id), ht = g.useProgram("circle", Ke), Bt = De.layoutVertexBuffer, Kt = De.indexBuffer, Tr = g.style.map.terrain && g.style.map.terrain.getTerrainData(
|
|
20999
|
+
const Be = S.paint.get("circle-translate"), tt = S.paint.get("circle-translate-anchor"), $e = s.aA(ce, ze, Be, tt), Ke = De.programConfigurations.get(S.id), ht = g.useProgram("circle", Ke), Bt = De.layoutVertexBuffer, Kt = De.indexBuffer, Tr = g.style.map.terrain && g.style.map.terrain.getTerrainData(qe), ur = { programConfiguration: Ke, program: ht, layoutVertexBuffer: Bt, indexBuffer: Kt, uniformValues: mo(g, ze, S, $e, ye), terrainData: Tr, projectionData: ce.getProjectionData({ overscaledTileID: qe, applyGlobeMatrix: !V, applyTerrainMatrix: !0 }) };
|
|
21000
21000
|
if (ne) {
|
|
21001
21001
|
const Cr = De.segments.get();
|
|
21002
21002
|
for (const Pr of Cr) xe.push({ segments: new s.aJ([Pr]), sortKey: Pr.sortKey, state: ur });
|
|
21003
21003
|
} else xe.push({ segments: De.segments, sortKey: 0, state: ur });
|
|
21004
21004
|
}
|
|
21005
|
-
ne && xe.sort((Ie,
|
|
21005
|
+
ne && xe.sort((Ie, qe) => Ie.sortKey - qe.sortKey);
|
|
21006
21006
|
for (const Ie of xe) {
|
|
21007
|
-
const { programConfiguration:
|
|
21008
|
-
ze.draw(ie, oe.TRIANGLES, me, fe, ge, Zt.backCCW, tt, $e, Ke, S.id, De, Be, Ie.segments, S.paint, g.transform.zoom,
|
|
21007
|
+
const { programConfiguration: qe, program: ze, layoutVertexBuffer: De, indexBuffer: Be, uniformValues: tt, terrainData: $e, projectionData: Ke } = Ie.state;
|
|
21008
|
+
ze.draw(ie, oe.TRIANGLES, me, fe, ge, Zt.backCCW, tt, $e, Ke, S.id, De, Be, Ie.segments, S.paint, g.transform.zoom, qe);
|
|
21009
21009
|
}
|
|
21010
21010
|
}(e, r, a, l, p) : s.c5(a) ? function(g, b, S, E, z) {
|
|
21011
21011
|
if (S.paint.get("heatmap-opacity") === 0) return;
|
|
@@ -21018,19 +21018,19 @@ uniform ${z} ${V} u_${F};
|
|
|
21018
21018
|
V.viewport.set([0, 0, g.width, g.height]);
|
|
21019
21019
|
} else g.renderPass === "offscreen" ? function(G, ne, ie, oe) {
|
|
21020
21020
|
const ce = G.context, me = ce.gl, fe = G.transform, ge = Dt.disabled, xe = new lr([me.ONE, me.ONE], s.b7.transparent, [!0, !0, !0, !0]);
|
|
21021
|
-
(function(ye, Ie,
|
|
21021
|
+
(function(ye, Ie, qe) {
|
|
21022
21022
|
const ze = ye.gl;
|
|
21023
21023
|
ye.activeTexture.set(ze.TEXTURE1), ye.viewport.set([0, 0, Ie.width / 4, Ie.height / 4]);
|
|
21024
|
-
let De =
|
|
21025
|
-
De ? (ze.bindTexture(ze.TEXTURE_2D, De.colorAttachment.get()), ye.bindFramebuffer.set(De.framebuffer)) : (De = xa(ye, Ie.width / 4, Ie.height / 4),
|
|
21024
|
+
let De = qe.heatmapFbos.get(s.bW);
|
|
21025
|
+
De ? (ze.bindTexture(ze.TEXTURE_2D, De.colorAttachment.get()), ye.bindFramebuffer.set(De.framebuffer)) : (De = xa(ye, Ie.width / 4, Ie.height / 4), qe.heatmapFbos.set(s.bW, De));
|
|
21026
21026
|
})(ce, G, ie), ce.clear({ color: s.b7.transparent });
|
|
21027
21027
|
for (let ye = 0; ye < oe.length; ye++) {
|
|
21028
21028
|
const Ie = oe[ye];
|
|
21029
21029
|
if (ne.hasRenderableParent(Ie)) continue;
|
|
21030
|
-
const
|
|
21030
|
+
const qe = ne.getTile(Ie), ze = qe.getBucket(ie);
|
|
21031
21031
|
if (!ze) continue;
|
|
21032
21032
|
const De = ze.programConfigurations.get(ie.id), Be = G.useProgram("heatmap", De), tt = fe.getProjectionData({ overscaledTileID: Ie, applyGlobeMatrix: !0, applyTerrainMatrix: !1 }), $e = fe.getCircleRadiusCorrection();
|
|
21033
|
-
Be.draw(ce, me.TRIANGLES, Ct.disabled, ge, xe, Zt.backCCW, us(
|
|
21033
|
+
Be.draw(ce, me.TRIANGLES, Ct.disabled, ge, xe, Zt.backCCW, us(qe, fe.zoom, ie.paint.get("heatmap-intensity"), $e), null, tt, ie.id, ze.layoutVertexBuffer, ze.indexBuffer, ze.segments, ie.paint, fe.zoom, De);
|
|
21034
21034
|
}
|
|
21035
21035
|
ce.viewport.set([0, 0, G.width, G.height]);
|
|
21036
21036
|
}(g, b, S, E) : g.renderPass === "translucent" && function(G, ne) {
|
|
@@ -21044,13 +21044,13 @@ uniform ${z} ${V} u_${F};
|
|
|
21044
21044
|
const { isRenderingToTexture: V } = z, F = S.paint.get("line-opacity"), H = S.paint.get("line-width");
|
|
21045
21045
|
if (F.constantOr(1) === 0 || H.constantOr(1) === 0) return;
|
|
21046
21046
|
const G = g.getDepthModeForSublayer(0, Ct.ReadOnly), ne = g.colorModeForRenderPass(), ie = S.paint.get("line-dasharray"), oe = S.paint.get("line-pattern"), ce = oe.constantOr(1), me = S.paint.get("line-gradient"), fe = S.getCrossfadeParameters(), ge = ce ? "linePattern" : ie ? "lineSDF" : me ? "lineGradient" : "line", xe = g.context, ye = xe.gl, Ie = g.transform;
|
|
21047
|
-
let
|
|
21047
|
+
let qe = !0;
|
|
21048
21048
|
for (const ze of E) {
|
|
21049
21049
|
const De = b.getTile(ze);
|
|
21050
21050
|
if (ce && !De.patternsLoaded()) continue;
|
|
21051
21051
|
const Be = De.getBucket(S);
|
|
21052
21052
|
if (!Be) continue;
|
|
21053
|
-
const tt = Be.programConfigurations.get(S.id), $e = g.context.program.get(), Ke = g.useProgram(ge, tt), ht =
|
|
21053
|
+
const tt = Be.programConfigurations.get(S.id), $e = g.context.program.get(), Ke = g.useProgram(ge, tt), ht = qe || Ke.program !== $e, Bt = g.style.map.terrain && g.style.map.terrain.getTerrainData(ze), Kt = oe.constantOr(null);
|
|
21054
21054
|
if (Kt && De.imageAtlas) {
|
|
21055
21055
|
const pr = De.imageAtlas, Yt = pr.patternPositions[Kt.to.toString()], Qr = pr.patternPositions[Kt.from.toString()];
|
|
21056
21056
|
Yt && Qr && tt.setConstantPatternPositions(Yt, Qr);
|
|
@@ -21072,7 +21072,7 @@ uniform ${z} ${V} u_${F};
|
|
|
21072
21072
|
xe.activeTexture.set(ye.TEXTURE0), Yt.bind(S.stepInterpolant ? ye.NEAREST : ye.LINEAR, ye.CLAMP_TO_EDGE);
|
|
21073
21073
|
}
|
|
21074
21074
|
const Pr = g.stencilModeForClipping(ze);
|
|
21075
|
-
Ke.draw(xe, ye.TRIANGLES, G, Pr, ne, Zt.disabled, Cr, Bt, Tr, S.id, Be.layoutVertexBuffer, Be.indexBuffer, Be.segments, S.paint, g.transform.zoom, tt, Be.layoutVertexBuffer2),
|
|
21075
|
+
Ke.draw(xe, ye.TRIANGLES, G, Pr, ne, Zt.disabled, Cr, Bt, Tr, S.id, Be.layoutVertexBuffer, Be.indexBuffer, Be.segments, S.paint, g.transform.zoom, tt, Be.layoutVertexBuffer2), qe = !1;
|
|
21076
21076
|
}
|
|
21077
21077
|
}(e, r, a, l, p) : s.c7(a) ? function(g, b, S, E, z) {
|
|
21078
21078
|
const V = S.paint.get("fill-color"), F = S.paint.get("fill-opacity");
|
|
@@ -21103,8 +21103,8 @@ uniform ${z} ${V} u_${F};
|
|
|
21103
21103
|
const { isRenderingToTexture: V } = z, F = g.context, H = g.style.projection.useSubdivision, G = g.getDepthModeForSublayer(0, Ct.ReadOnly), ne = g.colorModeForRenderPass();
|
|
21104
21104
|
if (g.renderPass === "offscreen") (function(ie, oe, ce, me, fe, ge, xe) {
|
|
21105
21105
|
const ye = ie.context, Ie = ye.gl;
|
|
21106
|
-
for (const
|
|
21107
|
-
const ze = oe.getTile(
|
|
21106
|
+
for (const qe of ce) {
|
|
21107
|
+
const ze = oe.getTile(qe), De = ze.dem;
|
|
21108
21108
|
if (!De || !De.data || !ze.needsHillshadePrepare) continue;
|
|
21109
21109
|
const Be = De.dim, tt = De.stride, $e = De.getPixels();
|
|
21110
21110
|
if (ye.activeTexture.set(Ie.TEXTURE1), ye.pixelStoreUnpackPremultiplyAlpha.set(!1), ze.demTexture = ze.demTexture || ie.getTileTexture(tt), ze.demTexture) {
|
|
@@ -21145,10 +21145,10 @@ uniform ${z} ${V} u_${F};
|
|
|
21145
21145
|
if (g.isPatternMissing(me)) return;
|
|
21146
21146
|
const fe = !me && V.a === 1 && F === 1 && g.opaquePassEnabledForLayer() ? "opaque" : "translucent";
|
|
21147
21147
|
if (g.renderPass !== fe) return;
|
|
21148
|
-
const ge = Dt.disabled, xe = g.getDepthModeForSublayer(0, fe === "opaque" ? Ct.ReadWrite : Ct.ReadOnly), ye = g.colorModeForRenderPass(), Ie = g.useProgram(me ? "backgroundPattern" : "background"),
|
|
21148
|
+
const ge = Dt.disabled, xe = g.getDepthModeForSublayer(0, fe === "opaque" ? Ct.ReadWrite : Ct.ReadOnly), ye = g.colorModeForRenderPass(), Ie = g.useProgram(me ? "backgroundPattern" : "background"), qe = E || we(oe, { tileSize: ce, terrain: g.style.map.terrain });
|
|
21149
21149
|
me && (G.activeTexture.set(ne.TEXTURE0), g.imageManager.bind(g.context));
|
|
21150
21150
|
const ze = S.getCrossfadeParameters();
|
|
21151
|
-
for (const De of
|
|
21151
|
+
for (const De of qe) {
|
|
21152
21152
|
const Be = oe.getProjectionData({ overscaledTileID: De, applyGlobeMatrix: !H, applyTerrainMatrix: !0 }), tt = me ? Gh(F, g, me, { tileID: De, tileSize: ce }, ze) : Kh(F, V), $e = g.style.map.terrain && g.style.map.terrain.getTerrainData(De), Ke = ie.getMeshFromTileID(G, De.canonical, !1, !0, "raster");
|
|
21153
21153
|
Ie.draw(G, ne.TRIANGLES, xe, ge, ye, Zt.backCCW, tt, $e, Be, S.id, Ke.vertexBuffer, Ke.indexBuffer, Ke.segments);
|
|
21154
21154
|
}
|
|
@@ -22267,22 +22267,22 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
|
|
|
22267
22267
|
this._add("tapDragZoom", S);
|
|
22268
22268
|
const E = r.touchPitch = new Ia(r);
|
|
22269
22269
|
this._add("touchPitch", E), e.interactive && e.touchPitch && r.touchPitch.enable(e.touchPitch);
|
|
22270
|
-
const z = () => r.project(r.getCenter()), V = function({ enable: fe, clickTolerance: ge, aroundCenter: xe = !0, minPixelCenterThreshold: ye = 100, rotateDegreesPerPixelMoved: Ie = 0.8 },
|
|
22270
|
+
const z = () => r.project(r.getCenter()), V = function({ enable: fe, clickTolerance: ge, aroundCenter: xe = !0, minPixelCenterThreshold: ye = 100, rotateDegreesPerPixelMoved: Ie = 0.8 }, qe) {
|
|
22271
22271
|
const ze = new js({ checkCorrectEvent: (De) => T.mouseButton(De) === 0 && De.ctrlKey || T.mouseButton(De) === 2 && !De.ctrlKey });
|
|
22272
22272
|
return new wi({ clickTolerance: ge, move: (De, Be) => {
|
|
22273
|
-
const tt =
|
|
22273
|
+
const tt = qe();
|
|
22274
22274
|
if (xe && Math.abs(tt.y - De.y) > ye) return { bearingDelta: s.ce(new s.P(De.x, Be.y), Be, tt) };
|
|
22275
22275
|
let $e = (Be.x - De.x) * Ie;
|
|
22276
22276
|
return xe && Be.y < tt.y && ($e = -$e), { bearingDelta: $e };
|
|
22277
22277
|
}, moveStateManager: ze, enable: fe, assignEvents: Ta });
|
|
22278
22278
|
}(e, z), F = function({ enable: fe, clickTolerance: ge, pitchDegreesPerPixelMoved: xe = -0.5 }) {
|
|
22279
22279
|
const ye = new js({ checkCorrectEvent: (Ie) => T.mouseButton(Ie) === 0 && Ie.ctrlKey || T.mouseButton(Ie) === 2 });
|
|
22280
|
-
return new wi({ clickTolerance: ge, move: (Ie,
|
|
22280
|
+
return new wi({ clickTolerance: ge, move: (Ie, qe) => ({ pitchDelta: (qe.y - Ie.y) * xe }), moveStateManager: ye, enable: fe, assignEvents: Ta });
|
|
22281
22281
|
}(e), H = function({ enable: fe, clickTolerance: ge, rollDegreesPerPixelMoved: xe = 0.3 }, ye) {
|
|
22282
|
-
const Ie = new js({ checkCorrectEvent: (
|
|
22283
|
-
return new wi({ clickTolerance: ge, move: (
|
|
22282
|
+
const Ie = new js({ checkCorrectEvent: (qe) => T.mouseButton(qe) === 2 && qe.ctrlKey });
|
|
22283
|
+
return new wi({ clickTolerance: ge, move: (qe, ze) => {
|
|
22284
22284
|
const De = ye();
|
|
22285
|
-
let Be = (ze.x -
|
|
22285
|
+
let Be = (ze.x - qe.x) * xe;
|
|
22286
22286
|
return ze.y < De.y && (Be = -Be), { rollDelta: Be };
|
|
22287
22287
|
}, moveStateManager: Ie, enable: fe, assignEvents: Ta });
|
|
22288
22288
|
}(e, z);
|
|
@@ -22619,7 +22619,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
|
|
|
22619
22619
|
return (Math.exp(Be) + Math.exp(-Be)) / 2;
|
|
22620
22620
|
}
|
|
22621
22621
|
const Ie = ge(!1);
|
|
22622
|
-
let
|
|
22622
|
+
let qe = function(Be) {
|
|
22623
22623
|
return ye(Ie) / ye(Ie + ie * Be);
|
|
22624
22624
|
}, ze = function(Be) {
|
|
22625
22625
|
return oe * ((ye(Ie) * (xe(tt = Ie + ie * Be) / ye(tt)) - xe(Ie)) / fe) / me;
|
|
@@ -22628,10 +22628,10 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
|
|
|
22628
22628
|
if (Math.abs(me) < 2e-6 || !isFinite(De)) {
|
|
22629
22629
|
if (Math.abs(oe - ce) < 1e-6) return this.easeTo(e, r);
|
|
22630
22630
|
const Be = ce < oe ? -1 : 1;
|
|
22631
|
-
De = Math.abs(Math.log(ce / oe)) / ie, ze = () => 0,
|
|
22631
|
+
De = Math.abs(Math.log(ce / oe)) / ie, ze = () => 0, qe = (tt) => Math.exp(Be * ie * tt);
|
|
22632
22632
|
}
|
|
22633
22633
|
return e.duration = "duration" in e ? +e.duration : 1e3 * De / ("screenSpeed" in e ? +e.screenSpeed / ie : +e.speed), e.maxDuration && e.duration > e.maxDuration && (e.duration = 0), this._zooming = !0, this._rotating = l !== S, this._pitching = E !== p, this._rolling = z !== g, this._padding = !a.isPaddingEqual(V), this._prepareEase(r, !1), this.terrain && this._prepareElevation(ne.targetCenter), this._ease((Be) => {
|
|
22634
|
-
const tt = Be * De, $e = 1 /
|
|
22634
|
+
const tt = Be * De, $e = 1 / qe(tt), Ke = ze(tt);
|
|
22635
22635
|
this._rotating && a.setBearing(s.B.number(l, S, Be)), this._pitching && a.setPitch(s.B.number(p, E, Be)), this._rolling && a.setRoll(s.B.number(g, z, Be)), this._padding && (a.interpolatePadding(b, V, Be), H = a.centerPoint.add(F)), ne.easeFunc(Be, $e, Ke, H), this.terrain && !e.freezeElevation && this._updateElevation(Be), this._applyUpdatedTransform(a), this._fireMoveEvents(r);
|
|
22636
22636
|
}, () => {
|
|
22637
22637
|
this.terrain && e.freezeElevation && this._finalizeElevation(), this._afterEase(r);
|
|
@@ -22918,7 +22918,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
|
|
|
22918
22918
|
for (let ye = 0; ye <= z; ye++) S.emplaceBack(ye * V, ce, me);
|
|
22919
22919
|
for (let ye = 0; ye < z; ye++) E.emplaceBack(ne + ye, G + ye, G + ye + 1), E.emplaceBack(ne + ye, G + ye + 1, ne + ye + 1), E.emplaceBack(0 + ye, H + ye + 1, H + ye), E.emplaceBack(0 + ye, 0 + ye + 1, H + ye + 1);
|
|
22920
22920
|
const fe = S.length, ge = fe + 2 * (z + 1);
|
|
22921
|
-
for (const ye of [0, 1]) for (let Ie = 0; Ie <= z; Ie++) for (const
|
|
22921
|
+
for (const ye of [0, 1]) for (let Ie = 0; Ie <= z; Ie++) for (const qe of [0, 1]) S.emplaceBack(ye * s.Z, Ie * V, qe);
|
|
22922
22922
|
for (let ye = 0; ye < 2 * z; ye += 2) E.emplaceBack(fe + ye, fe + ye + 1, fe + ye + 3), E.emplaceBack(fe + ye, fe + ye + 3, fe + ye + 2), E.emplaceBack(ge + ye, ge + ye + 3, ge + ye + 1), E.emplaceBack(ge + ye, ge + ye + 2, ge + ye + 3);
|
|
22923
22923
|
const xe = new Cs(b.createVertexBuffer(S, fu.members), b.createIndexBuffer(E), s.aJ.simpleSegment(0, 0, S.length, E.length));
|
|
22924
22924
|
return this._meshCache[g] = xe, xe;
|
|
@@ -25173,17 +25173,17 @@ const yb = { class: "w-full flex flex-col bg-white border border-stone-200 shado
|
|
|
25173
25173
|
return !re || !se ? {} : se.reduce((Te, $) => (!$.hide && !["geom", "geodata", "id"].includes($.name) && (Te[$.ua] = re[$.name] ?? "-"), Te), {});
|
|
25174
25174
|
});
|
|
25175
25175
|
async function k() {
|
|
25176
|
-
var re, se, Te;
|
|
25176
|
+
var re, se, Te, $, pe, Pe;
|
|
25177
25177
|
s.value = !0, D.value = null;
|
|
25178
25178
|
try {
|
|
25179
|
-
const
|
|
25179
|
+
const Oe = {
|
|
25180
25180
|
id: (re = y.cardValues) == null ? void 0 : re.id,
|
|
25181
|
-
layer: (se = y.cardValues) == null ? void 0 : se.layer,
|
|
25182
|
-
map: (
|
|
25183
|
-
},
|
|
25184
|
-
v.value[L.value] =
|
|
25185
|
-
} catch (
|
|
25186
|
-
D.value = (
|
|
25181
|
+
layer: typeof ((se = y.cardValues) == null ? void 0 : se.layer) == "object" ? ($ = (Te = y.cardValues) == null ? void 0 : Te.layer) == null ? void 0 : $.id : (pe = y.cardValues) == null ? void 0 : pe.layer,
|
|
25182
|
+
map: (Pe = y.cardValues) == null ? void 0 : Pe.map
|
|
25183
|
+
}, Ge = await Or.get("/api/map-format", { params: Oe });
|
|
25184
|
+
v.value[L.value] = Ge.data;
|
|
25185
|
+
} catch (Oe) {
|
|
25186
|
+
D.value = (Oe == null ? void 0 : Oe.message) || "Помилка запиту";
|
|
25187
25187
|
} finally {
|
|
25188
25188
|
s.value = !1, await _c(), x("content-resize");
|
|
25189
25189
|
}
|
|
@@ -26696,8 +26696,8 @@ function ow() {
|
|
|
26696
26696
|
var pe = $ && $[0] || 1, Pe = v.COMPILER_REVISION;
|
|
26697
26697
|
if (!(pe >= v.LAST_COMPATIBLE_COMPILER_REVISION && pe <= v.COMPILER_REVISION))
|
|
26698
26698
|
if (pe < v.LAST_COMPATIBLE_COMPILER_REVISION) {
|
|
26699
|
-
var
|
|
26700
|
-
throw new P.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" +
|
|
26699
|
+
var Oe = v.REVISION_CHANGES[Pe], Ge = v.REVISION_CHANGES[pe];
|
|
26700
|
+
throw new P.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + Oe + ") or downgrade your runtime to an older version (" + Ge + ").");
|
|
26701
26701
|
} else
|
|
26702
26702
|
throw new P.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + $[1] + ").");
|
|
26703
26703
|
}
|
|
@@ -26708,7 +26708,7 @@ function ow() {
|
|
|
26708
26708
|
throw new P.default("Unknown template object: " + typeof $);
|
|
26709
26709
|
$.main.decorator = $.main_d, pe.VM.checkRevision($.compiler);
|
|
26710
26710
|
var Pe = $.compiler && $.compiler[0] === 7;
|
|
26711
|
-
function
|
|
26711
|
+
function Oe(et, Ye, it) {
|
|
26712
26712
|
it.hash && (Ye = x.extend({}, Ye, it.hash), it.ids && (it.ids[0] = !0)), et = pe.VM.resolvePartial.call(this, et, Ye, it);
|
|
26713
26713
|
var Tt = x.extend({}, it, {
|
|
26714
26714
|
hooks: this.hooks,
|
|
@@ -26750,7 +26750,7 @@ function ow() {
|
|
|
26750
26750
|
return typeof Ye == "function" ? Ye.call(it) : Ye;
|
|
26751
26751
|
},
|
|
26752
26752
|
escapeExpression: x.escapeExpression,
|
|
26753
|
-
invokePartial:
|
|
26753
|
+
invokePartial: Oe,
|
|
26754
26754
|
fn: function(Ye) {
|
|
26755
26755
|
var it = $[Ye];
|
|
26756
26756
|
return it.decorator = $[Ye + "_d"], it;
|
|
@@ -26801,18 +26801,18 @@ function ow() {
|
|
|
26801
26801
|
return M(Ge, et, $[et], Ye, 0, it, Tt);
|
|
26802
26802
|
}, St;
|
|
26803
26803
|
}
|
|
26804
|
-
function M($, pe, Pe,
|
|
26804
|
+
function M($, pe, Pe, Oe, Ge, St, et) {
|
|
26805
26805
|
function Ye(it) {
|
|
26806
26806
|
var Tt = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], Ft = et;
|
|
26807
|
-
return et && it != et[0] && !(it === $.nullContext && et[0] === null) && (Ft = [it].concat(et)), Pe($, it, $.helpers, $.partials, Tt.data ||
|
|
26807
|
+
return et && it != et[0] && !(it === $.nullContext && et[0] === null) && (Ft = [it].concat(et)), Pe($, it, $.helpers, $.partials, Tt.data || Oe, St && [Tt.blockParams].concat(St), Ft);
|
|
26808
26808
|
}
|
|
26809
|
-
return Ye = re(Pe, Ye, $, et,
|
|
26809
|
+
return Ye = re(Pe, Ye, $, et, Oe, St), Ye.program = pe, Ye.depth = et ? et.length : 0, Ye.blockParams = Ge || 0, Ye;
|
|
26810
26810
|
}
|
|
26811
26811
|
function T($, pe, Pe) {
|
|
26812
26812
|
return $ ? !$.call && !Pe.name && (Pe.name = $, $ = Pe.partials[$]) : Pe.name === "@partial-block" ? $ = Pe.data["partial-block"] : $ = Pe.partials[Pe.name], $;
|
|
26813
26813
|
}
|
|
26814
26814
|
function k($, pe, Pe) {
|
|
26815
|
-
var
|
|
26815
|
+
var Oe = Pe.data && Pe.data["partial-block"];
|
|
26816
26816
|
Pe.partial = !0, Pe.ids && (Pe.data.contextPath = Pe.ids[0] || Pe.data.contextPath);
|
|
26817
26817
|
var Ge = void 0;
|
|
26818
26818
|
if (Pe.fn && Pe.fn !== j && function() {
|
|
@@ -26820,7 +26820,7 @@ function ow() {
|
|
|
26820
26820
|
var St = Pe.fn;
|
|
26821
26821
|
Ge = Pe.data["partial-block"] = function(Ye) {
|
|
26822
26822
|
var it = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1];
|
|
26823
|
-
return it.data = v.createFrame(it.data), it.data["partial-block"] =
|
|
26823
|
+
return it.data = v.createFrame(it.data), it.data["partial-block"] = Oe, St(Ye, it);
|
|
26824
26824
|
}, St.partials && (Pe.partials = x.extend({}, Pe.partials, St.partials));
|
|
26825
26825
|
}(), $ === void 0 && Ge && ($ = Ge), $ === void 0)
|
|
26826
26826
|
throw new P.default("The partial " + Pe.name + " could not be found");
|
|
@@ -26833,23 +26833,23 @@ function ow() {
|
|
|
26833
26833
|
function Z($, pe) {
|
|
26834
26834
|
return (!pe || !("root" in pe)) && (pe = pe ? v.createFrame(pe) : {}, pe.root = $), pe;
|
|
26835
26835
|
}
|
|
26836
|
-
function re($, pe, Pe,
|
|
26836
|
+
function re($, pe, Pe, Oe, Ge, St) {
|
|
26837
26837
|
if ($.decorator) {
|
|
26838
26838
|
var et = {};
|
|
26839
|
-
pe = $.decorator(pe, et, Pe,
|
|
26839
|
+
pe = $.decorator(pe, et, Pe, Oe && Oe[0], Ge, St, Oe), x.extend(pe, et);
|
|
26840
26840
|
}
|
|
26841
26841
|
return pe;
|
|
26842
26842
|
}
|
|
26843
26843
|
function se($, pe) {
|
|
26844
26844
|
Object.keys($).forEach(function(Pe) {
|
|
26845
|
-
var
|
|
26846
|
-
$[Pe] = Te(
|
|
26845
|
+
var Oe = $[Pe];
|
|
26846
|
+
$[Pe] = Te(Oe, pe);
|
|
26847
26847
|
});
|
|
26848
26848
|
}
|
|
26849
26849
|
function Te($, pe) {
|
|
26850
26850
|
var Pe = pe.lookupProperty;
|
|
26851
|
-
return D.wrapHelper($, function(
|
|
26852
|
-
return x.extend({ lookupProperty: Pe },
|
|
26851
|
+
return D.wrapHelper($, function(Oe) {
|
|
26852
|
+
return x.extend({ lookupProperty: Pe }, Oe);
|
|
26853
26853
|
});
|
|
26854
26854
|
}
|
|
26855
26855
|
return vs;
|
|
@@ -27193,7 +27193,7 @@ function lw() {
|
|
|
27193
27193
|
var Tt;
|
|
27194
27194
|
return Tt = D.lexer.lex() || 1, typeof Tt != "number" && (Tt = D.symbols_[Tt] || Tt), Tt;
|
|
27195
27195
|
}
|
|
27196
|
-
for (var Te, $, pe, Pe,
|
|
27196
|
+
for (var Te, $, pe, Pe, Oe = {}, Ge, St, et, Ye; ; ) {
|
|
27197
27197
|
if ($ = L[L.length - 1], this.defaultActions[$] ? pe = this.defaultActions[$] : ((Te === null || typeof Te > "u") && (Te = se()), pe = M[$] && M[$][Te]), typeof pe > "u" || !pe.length || !pe[0]) {
|
|
27198
27198
|
var it = "";
|
|
27199
27199
|
{
|
|
@@ -27211,9 +27211,9 @@ Expecting ` + Ye.join(", ") + ", got '" + (this.terminals_[Te] || Te) + "'" : it
|
|
|
27211
27211
|
L.push(Te), I.push(this.lexer.yytext), O.push(this.lexer.yylloc), L.push(pe[1]), Te = null, j = this.lexer.yyleng, T = this.lexer.yytext, k = this.lexer.yylineno, Z = this.lexer.yylloc;
|
|
27212
27212
|
break;
|
|
27213
27213
|
case 2:
|
|
27214
|
-
if (St = this.productions_[pe[1]][1],
|
|
27214
|
+
if (St = this.productions_[pe[1]][1], Oe.$ = I[I.length - St], Oe._$ = { first_line: O[O.length - (St || 1)].first_line, last_line: O[O.length - 1].last_line, first_column: O[O.length - (St || 1)].first_column, last_column: O[O.length - 1].last_column }, re && (Oe._$.range = [O[O.length - (St || 1)].range[0], O[O.length - 1].range[1]]), Pe = this.performAction.call(Oe, T, j, k, this.yy, pe[1], I, O), typeof Pe < "u")
|
|
27215
27215
|
return Pe;
|
|
27216
|
-
St && (L = L.slice(0, -1 * St * 2), I = I.slice(0, -1 * St), O = O.slice(0, -1 * St)), L.push(this.productions_[pe[1]][0]), I.push(
|
|
27216
|
+
St && (L = L.slice(0, -1 * St * 2), I = I.slice(0, -1 * St), O = O.slice(0, -1 * St)), L.push(this.productions_[pe[1]][0]), I.push(Oe.$), O.push(Oe._$), et = M[L[L.length - 2]][L[L.length - 1]], L.push(et);
|
|
27217
27217
|
break;
|
|
27218
27218
|
case 3:
|
|
27219
27219
|
return !0;
|
|
@@ -27633,8 +27633,8 @@ function uw() {
|
|
|
27633
27633
|
function D(k, j, Z) {
|
|
27634
27634
|
Z = this.locInfo(Z);
|
|
27635
27635
|
for (var re = k ? "@" : "", se = [], Te = 0, $ = 0, pe = j.length; $ < pe; $++) {
|
|
27636
|
-
var Pe = j[$].part,
|
|
27637
|
-
if (re += (j[$].separator || "") + Pe, !
|
|
27636
|
+
var Pe = j[$].part, Oe = j[$].original !== Pe;
|
|
27637
|
+
if (re += (j[$].separator || "") + Pe, !Oe && (Pe === ".." || Pe === "." || Pe === "this")) {
|
|
27638
27638
|
if (se.length > 0)
|
|
27639
27639
|
throw new y.default("Invalid path: " + re, { loc: Z });
|
|
27640
27640
|
Pe === ".." && Te++;
|
|
@@ -28102,22 +28102,22 @@ function Tc() {
|
|
|
28102
28102
|
return $;
|
|
28103
28103
|
pe = Pe.path;
|
|
28104
28104
|
}
|
|
28105
|
-
for (var
|
|
28105
|
+
for (var Oe = u.isAbsolute(pe), Ge = pe.split(/\/+/), St, et = 0, Ye = Ge.length - 1; Ye >= 0; Ye--)
|
|
28106
28106
|
St = Ge[Ye], St === "." ? Ge.splice(Ye, 1) : St === ".." ? et++ : et > 0 && (St === "" ? (Ge.splice(Ye + 1, et), et = 0) : (Ge.splice(Ye, 2), et--));
|
|
28107
|
-
return pe = Ge.join("/"), pe === "" && (pe =
|
|
28107
|
+
return pe = Ge.join("/"), pe === "" && (pe = Oe ? "/" : "."), Pe ? (Pe.path = pe, P(Pe)) : pe;
|
|
28108
28108
|
}
|
|
28109
28109
|
u.normalize = v;
|
|
28110
28110
|
function s($, pe) {
|
|
28111
28111
|
$ === "" && ($ = "."), pe === "" && (pe = ".");
|
|
28112
|
-
var Pe = A(pe),
|
|
28113
|
-
if (
|
|
28114
|
-
return
|
|
28112
|
+
var Pe = A(pe), Oe = A($);
|
|
28113
|
+
if (Oe && ($ = Oe.path || "/"), Pe && !Pe.scheme)
|
|
28114
|
+
return Oe && (Pe.scheme = Oe.scheme), P(Pe);
|
|
28115
28115
|
if (Pe || pe.match(x))
|
|
28116
28116
|
return pe;
|
|
28117
|
-
if (
|
|
28118
|
-
return
|
|
28117
|
+
if (Oe && !Oe.host && !Oe.path)
|
|
28118
|
+
return Oe.host = pe, P(Oe);
|
|
28119
28119
|
var Ge = pe.charAt(0) === "/" ? pe : v($.replace(/\/+$/, "") + "/" + pe);
|
|
28120
|
-
return
|
|
28120
|
+
return Oe ? (Oe.path = Ge, P(Oe)) : Ge;
|
|
28121
28121
|
}
|
|
28122
28122
|
u.join = s, u.isAbsolute = function($) {
|
|
28123
28123
|
return $.charAt(0) === "/" || y.test($);
|
|
@@ -28125,8 +28125,8 @@ function Tc() {
|
|
|
28125
28125
|
function D($, pe) {
|
|
28126
28126
|
$ === "" && ($ = "."), $ = $.replace(/\/$/, "");
|
|
28127
28127
|
for (var Pe = 0; pe.indexOf($ + "/") !== 0; ) {
|
|
28128
|
-
var
|
|
28129
|
-
if (
|
|
28128
|
+
var Oe = $.lastIndexOf("/");
|
|
28129
|
+
if (Oe < 0 || ($ = $.slice(0, Oe), $.match(/^([^\/]+:\/)?\/*$/)))
|
|
28130
28130
|
return pe;
|
|
28131
28131
|
++Pe;
|
|
28132
28132
|
}
|
|
@@ -28160,13 +28160,13 @@ function Tc() {
|
|
|
28160
28160
|
return !0;
|
|
28161
28161
|
}
|
|
28162
28162
|
function k($, pe, Pe) {
|
|
28163
|
-
var
|
|
28164
|
-
return
|
|
28163
|
+
var Oe = Z($.source, pe.source);
|
|
28164
|
+
return Oe !== 0 || (Oe = $.originalLine - pe.originalLine, Oe !== 0) || (Oe = $.originalColumn - pe.originalColumn, Oe !== 0 || Pe) || (Oe = $.generatedColumn - pe.generatedColumn, Oe !== 0) || (Oe = $.generatedLine - pe.generatedLine, Oe !== 0) ? Oe : Z($.name, pe.name);
|
|
28165
28165
|
}
|
|
28166
28166
|
u.compareByOriginalPositions = k;
|
|
28167
28167
|
function j($, pe, Pe) {
|
|
28168
|
-
var
|
|
28169
|
-
return
|
|
28168
|
+
var Oe = $.generatedLine - pe.generatedLine;
|
|
28169
|
+
return Oe !== 0 || (Oe = $.generatedColumn - pe.generatedColumn, Oe !== 0 || Pe) || (Oe = Z($.source, pe.source), Oe !== 0) || (Oe = $.originalLine - pe.originalLine, Oe !== 0) || (Oe = $.originalColumn - pe.originalColumn, Oe !== 0) ? Oe : Z($.name, pe.name);
|
|
28170
28170
|
}
|
|
28171
28171
|
u.compareByGeneratedPositionsDeflated = j;
|
|
28172
28172
|
function Z($, pe) {
|
|
@@ -28183,14 +28183,14 @@ function Tc() {
|
|
|
28183
28183
|
u.parseSourceMapInput = se;
|
|
28184
28184
|
function Te($, pe, Pe) {
|
|
28185
28185
|
if (pe = pe || "", $ && ($[$.length - 1] !== "/" && pe[0] !== "/" && ($ += "/"), pe = $ + pe), Pe) {
|
|
28186
|
-
var
|
|
28187
|
-
if (!
|
|
28186
|
+
var Oe = A(Pe);
|
|
28187
|
+
if (!Oe)
|
|
28188
28188
|
throw new Error("sourceMapURL could not be parsed");
|
|
28189
|
-
if (
|
|
28190
|
-
var Ge =
|
|
28191
|
-
Ge >= 0 && (
|
|
28189
|
+
if (Oe.path) {
|
|
28190
|
+
var Ge = Oe.path.lastIndexOf("/");
|
|
28191
|
+
Ge >= 0 && (Oe.path = Oe.path.substring(0, Ge + 1));
|
|
28192
28192
|
}
|
|
28193
|
-
pe = s(P(
|
|
28193
|
+
pe = s(P(Oe), pe);
|
|
28194
28194
|
}
|
|
28195
28195
|
return v(pe);
|
|
28196
28196
|
}
|
|
@@ -28560,7 +28560,7 @@ function yw() {
|
|
|
28560
28560
|
this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null;
|
|
28561
28561
|
}
|
|
28562
28562
|
v.prototype._parseMappings = function(I, O) {
|
|
28563
|
-
for (var M = 1, T = 0, k = 0, j = 0, Z = 0, re = 0, se = I.length, Te = 0, $ = {}, pe = {}, Pe = [],
|
|
28563
|
+
for (var M = 1, T = 0, k = 0, j = 0, Z = 0, re = 0, se = I.length, Te = 0, $ = {}, pe = {}, Pe = [], Oe = [], Ge, St, et, Ye, it; Te < se; )
|
|
28564
28564
|
if (I.charAt(Te) === ";")
|
|
28565
28565
|
M++, Te++, T = 0;
|
|
28566
28566
|
else if (I.charAt(Te) === ",")
|
|
@@ -28579,9 +28579,9 @@ function yw() {
|
|
|
28579
28579
|
throw new Error("Found a source and line, but no column");
|
|
28580
28580
|
$[St] = et;
|
|
28581
28581
|
}
|
|
28582
|
-
Ge.generatedColumn = T + et[0], T = Ge.generatedColumn, et.length > 1 && (Ge.source = Z + et[1], Z += et[1], Ge.originalLine = k + et[2], k = Ge.originalLine, Ge.originalLine += 1, Ge.originalColumn = j + et[3], j = Ge.originalColumn, et.length > 4 && (Ge.name = re + et[4], re += et[4])),
|
|
28582
|
+
Ge.generatedColumn = T + et[0], T = Ge.generatedColumn, et.length > 1 && (Ge.source = Z + et[1], Z += et[1], Ge.originalLine = k + et[2], k = Ge.originalLine, Ge.originalLine += 1, Ge.originalColumn = j + et[3], j = Ge.originalColumn, et.length > 4 && (Ge.name = re + et[4], re += et[4])), Oe.push(Ge), typeof Ge.originalLine == "number" && Pe.push(Ge);
|
|
28583
28583
|
}
|
|
28584
|
-
A(
|
|
28584
|
+
A(Oe, u.compareByGeneratedPositionsDeflated), this.__generatedMappings = Oe, A(Pe, u.compareByOriginalPositions), this.__originalMappings = Pe;
|
|
28585
28585
|
}, v.prototype._findMapping = function(I, O, M, T, k, j) {
|
|
28586
28586
|
if (I[M] <= 0)
|
|
28587
28587
|
throw new TypeError("Line must be greater than or equal to 1, got " + I[M]);
|
|
@@ -29098,15 +29098,15 @@ function bw() {
|
|
|
29098
29098
|
var Pe = this.createFunctionContext(Z);
|
|
29099
29099
|
if (this.isChild)
|
|
29100
29100
|
return Pe;
|
|
29101
|
-
var
|
|
29101
|
+
var Oe = {
|
|
29102
29102
|
compiler: this.compilerInfo(),
|
|
29103
29103
|
main: Pe
|
|
29104
29104
|
};
|
|
29105
|
-
this.decorators && (
|
|
29105
|
+
this.decorators && (Oe.main_d = this.decorators, Oe.useDecorators = !0);
|
|
29106
29106
|
var Ge = this.context, St = Ge.programs, et = Ge.decorators;
|
|
29107
29107
|
for ($ = 0, pe = St.length; $ < pe; $++)
|
|
29108
|
-
St[$] && (
|
|
29109
|
-
return this.environment.usePartial && (
|
|
29108
|
+
St[$] && (Oe[$] = St[$], et[$] && (Oe[$ + "_d"] = et[$], Oe.useDecorators = !0));
|
|
29109
|
+
return this.environment.usePartial && (Oe.usePartial = !0), this.options.data && (Oe.useData = !0), this.useDepths && (Oe.useDepths = !0), this.useBlockParams && (Oe.useBlockParams = !0), this.options.compat && (Oe.compat = !0), Z ? Oe.compilerOptions = this.options : (Oe.compiler = JSON.stringify(Oe.compiler), this.source.currentLocation = { start: { line: 1, column: 0 } }, Oe = this.objectLiteral(Oe), k.srcName ? (Oe = Oe.toStringWithSourceMap({ file: k.destName }), Oe.map = Oe.map && Oe.map.toString()) : Oe = Oe.toString()), Oe;
|
|
29110
29110
|
},
|
|
29111
29111
|
preamble: function() {
|
|
29112
29112
|
this.lastContext = 0, this.source = new D.default(this.options.srcName), this.decorators = new D.default(this.options.srcName);
|
|
@@ -29532,8 +29532,8 @@ function bw() {
|
|
|
29532
29532
|
setupParams: function(T, k, j) {
|
|
29533
29533
|
var Z = {}, re = [], se = [], Te = [], $ = !j, pe = void 0;
|
|
29534
29534
|
$ && (j = []), Z.name = this.quotedString(T), Z.hash = this.popStack(), this.trackIds && (Z.hashIds = this.popStack()), this.stringParams && (Z.hashTypes = this.popStack(), Z.hashContexts = this.popStack());
|
|
29535
|
-
var Pe = this.popStack(),
|
|
29536
|
-
(
|
|
29535
|
+
var Pe = this.popStack(), Oe = this.popStack();
|
|
29536
|
+
(Oe || Pe) && (Z.fn = Oe || "container.noop", Z.inverse = Pe || "container.noop");
|
|
29537
29537
|
for (var Ge = k; Ge--; )
|
|
29538
29538
|
pe = this.popStack(), j[Ge] = pe, this.trackIds && (Te[Ge] = this.popStack()), this.stringParams && (se[Ge] = this.popStack(), re[Ge] = this.popStack());
|
|
29539
29539
|
return $ && (Z.args = this.source.generateArray(j)), this.trackIds && (Z.ids = this.source.generateArray(Te)), this.stringParams && (Z.types = this.source.generateArray(se), Z.contexts = this.source.generateArray(re)), this.options.data && (Z.data = "data"), this.useBlockParams && (Z.blockParams = "blockParams"), Z;
|
|
@@ -32050,7 +32050,7 @@ const IA = /* @__PURE__ */ rr(wA, [["render", PA], ["__scopeId", "data-v-024154e
|
|
|
32050
32050
|
}
|
|
32051
32051
|
);
|
|
32052
32052
|
});
|
|
32053
|
-
const
|
|
32053
|
+
const Oe = or(() => ({
|
|
32054
32054
|
height: (f == null ? void 0 : f.height) || "100vh",
|
|
32055
32055
|
width: "100%"
|
|
32056
32056
|
})), Ge = async () => {
|
|
@@ -32191,7 +32191,7 @@ const IA = /* @__PURE__ */ rr(wA, [["render", PA], ["__scopeId", "data-v-024154e
|
|
|
32191
32191
|
var ct, Rt;
|
|
32192
32192
|
return be(), Ae("div", {
|
|
32193
32193
|
class: "maplibre-demo-map-container",
|
|
32194
|
-
style: Zo(
|
|
32194
|
+
style: Zo(Oe.value)
|
|
32195
32195
|
}, [
|
|
32196
32196
|
st[5] || (st[5] = ae("div", { id: "maplibre-demo-map" }, null, -1)),
|
|
32197
32197
|
x.value ? (be(), Ae(yt, { key: 1 }, [
|
|
@@ -32361,24 +32361,16 @@ const WA = /* @__PURE__ */ rr(VA, [["render", NA]]), HA = {
|
|
|
32361
32361
|
},
|
|
32362
32362
|
computed: {
|
|
32363
32363
|
titleCol() {
|
|
32364
|
-
return this.columns.find(
|
|
32365
|
-
(u) => u.meta === "title" || u.view_type === "title"
|
|
32366
|
-
);
|
|
32364
|
+
return this.columns.find((u) => u.meta === "title");
|
|
32367
32365
|
},
|
|
32368
32366
|
categoryCol() {
|
|
32369
|
-
return this.columns.find(
|
|
32370
|
-
(u) => u.meta === "category" || u.view_type === "category"
|
|
32371
|
-
);
|
|
32367
|
+
return this.columns.find((u) => u.meta === "category");
|
|
32372
32368
|
},
|
|
32373
32369
|
tagsCol() {
|
|
32374
|
-
return this.columns.find(
|
|
32375
|
-
(u) => u.meta === "tags" || u.view_type === "tags"
|
|
32376
|
-
);
|
|
32370
|
+
return this.columns.find((u) => u.meta === "tags");
|
|
32377
32371
|
},
|
|
32378
32372
|
featuresCols() {
|
|
32379
|
-
return this.columns.filter(
|
|
32380
|
-
(u) => u.meta === "features" || u.view_type === "features"
|
|
32381
|
-
);
|
|
32373
|
+
return this.columns.filter((u) => u.meta === "features");
|
|
32382
32374
|
}
|
|
32383
32375
|
},
|
|
32384
32376
|
methods: {
|
|
@@ -32487,29 +32479,19 @@ const nk = /* @__PURE__ */ rr(HA, [["render", ik]]), sk = {
|
|
|
32487
32479
|
},
|
|
32488
32480
|
computed: {
|
|
32489
32481
|
titleCol() {
|
|
32490
|
-
return this.columns.find(
|
|
32491
|
-
(u) => u.meta === "title" || u.view_type === "title"
|
|
32492
|
-
);
|
|
32482
|
+
return this.columns.find((u) => u.meta === "title");
|
|
32493
32483
|
},
|
|
32494
32484
|
categoryCol() {
|
|
32495
|
-
return this.columns.find(
|
|
32496
|
-
(u) => u.meta === "category" || u.view_type === "category"
|
|
32497
|
-
);
|
|
32485
|
+
return this.columns.find((u) => u.meta === "category");
|
|
32498
32486
|
},
|
|
32499
32487
|
tagsCol() {
|
|
32500
|
-
return this.columns.find(
|
|
32501
|
-
(u) => u.meta === "tags" || u.view_type === "tags"
|
|
32502
|
-
);
|
|
32488
|
+
return this.columns.find((u) => u.meta === "tags");
|
|
32503
32489
|
},
|
|
32504
32490
|
featuresCols() {
|
|
32505
|
-
return this.columns.filter(
|
|
32506
|
-
(u) => u.meta === "features" || u.view_type === "features"
|
|
32507
|
-
);
|
|
32491
|
+
return this.columns.filter((u) => u.meta === "features");
|
|
32508
32492
|
},
|
|
32509
32493
|
titleCol() {
|
|
32510
|
-
return this.columns.find(
|
|
32511
|
-
(u) => u.meta === "title" || u.view_type === "title"
|
|
32512
|
-
);
|
|
32494
|
+
return this.columns.find((u) => u.meta === "title");
|
|
32513
32495
|
}
|
|
32514
32496
|
},
|
|
32515
32497
|
methods: {
|
|
@@ -32620,27 +32602,19 @@ const vk = /* @__PURE__ */ rr(sk, [["render", _k]]), xk = {
|
|
|
32620
32602
|
},
|
|
32621
32603
|
computed: {
|
|
32622
32604
|
categoryCol() {
|
|
32623
|
-
return this.columns.find(
|
|
32624
|
-
(u) => u.meta === "category" || u.view_type === "category"
|
|
32625
|
-
);
|
|
32605
|
+
return this.columns.find((u) => u.meta === "category");
|
|
32626
32606
|
},
|
|
32627
32607
|
tagsCol() {
|
|
32628
|
-
return this.columns.find(
|
|
32629
|
-
(u) => u.meta === "tags" || u.view_type === "tags"
|
|
32630
|
-
);
|
|
32608
|
+
return this.columns.find((u) => u.meta === "tags");
|
|
32631
32609
|
},
|
|
32632
32610
|
featuresCols() {
|
|
32633
|
-
return this.columns.filter(
|
|
32634
|
-
(u) => u.meta === "features" || u.view_type === "features"
|
|
32635
|
-
);
|
|
32611
|
+
return this.columns.filter((u) => u.meta === "features");
|
|
32636
32612
|
},
|
|
32637
32613
|
colorClass() {
|
|
32638
32614
|
return "bg-blue-500";
|
|
32639
32615
|
},
|
|
32640
32616
|
titleCol() {
|
|
32641
|
-
return this.columns.find(
|
|
32642
|
-
(u) => u.meta === "title" || u.view_type === "title"
|
|
32643
|
-
);
|
|
32617
|
+
return this.columns.find((u) => u.meta === "title");
|
|
32644
32618
|
}
|
|
32645
32619
|
},
|
|
32646
32620
|
methods: {
|
|
@@ -32760,14 +32734,10 @@ const zk = /* @__PURE__ */ rr(xk, [["render", Rk]]), Dk = {
|
|
|
32760
32734
|
},
|
|
32761
32735
|
computed: {
|
|
32762
32736
|
featuresCols() {
|
|
32763
|
-
return this.columns.filter(
|
|
32764
|
-
(u) => u.meta === "features" || u.view_type === "features"
|
|
32765
|
-
);
|
|
32737
|
+
return this.columns.filter((u) => u.meta === "features");
|
|
32766
32738
|
},
|
|
32767
32739
|
titleCol() {
|
|
32768
|
-
return this.columns.find(
|
|
32769
|
-
(u) => u.meta === "title" || u.view_type === "title"
|
|
32770
|
-
);
|
|
32740
|
+
return this.columns.find((u) => u.meta === "title");
|
|
32771
32741
|
}
|
|
32772
32742
|
},
|
|
32773
32743
|
methods: {
|
|
@@ -32848,24 +32818,16 @@ const Hk = /* @__PURE__ */ rr(Dk, [["render", Wk]]), Zk = {
|
|
|
32848
32818
|
return this.columns.find((u) => u.meta === "desc") || this.columns.find((u) => u.name === "description");
|
|
32849
32819
|
},
|
|
32850
32820
|
categoryCol() {
|
|
32851
|
-
return this.columns.find(
|
|
32852
|
-
(u) => u.meta === "category" || u.view_type === "category"
|
|
32853
|
-
);
|
|
32821
|
+
return this.columns.find((u) => u.meta === "category");
|
|
32854
32822
|
},
|
|
32855
32823
|
tagsCol() {
|
|
32856
|
-
return this.columns.find(
|
|
32857
|
-
(u) => u.meta === "tags" || u.view_type === "tags"
|
|
32858
|
-
);
|
|
32824
|
+
return this.columns.find((u) => u.meta === "tags");
|
|
32859
32825
|
},
|
|
32860
32826
|
featuresCols() {
|
|
32861
|
-
return this.columns.filter(
|
|
32862
|
-
(u) => u.meta === "features" || u.view_type === "features"
|
|
32863
|
-
);
|
|
32827
|
+
return this.columns.filter((u) => u.meta === "features");
|
|
32864
32828
|
},
|
|
32865
32829
|
titleCol() {
|
|
32866
|
-
return this.columns.find(
|
|
32867
|
-
(u) => u.meta === "title" || u.view_type === "title"
|
|
32868
|
-
);
|
|
32830
|
+
return this.columns.find((u) => u.meta === "title");
|
|
32869
32831
|
}
|
|
32870
32832
|
},
|
|
32871
32833
|
methods: {
|