@opengis/partsmap 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PartsMap.js +638 -637
- package/dist/PartsMap.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/PartsMap.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { openBlock as xt, createElementBlock as Ut, createStaticVNode as np, Fragment as
|
1
|
+
import { openBlock as xt, createElementBlock as Ut, createStaticVNode as np, Fragment as xc, renderList as vc, normalizeClass as al, createElementVNode as Qe, toDisplayString as ss, normalizeStyle as sp, createCommentVNode as Or, resolveComponent as Wi, createVNode as Vr, createBlock as ns, Teleport as Lm, Transition as Vd, withCtx as sl, withDirectives as Rm, renderSlot as ol, vShow as Fm, pushScopeId as Bm, popScopeId as Om, defineComponent as Vm, createTextVNode as Nm } from "vue";
|
2
2
|
var $s = {};
|
3
3
|
function Nd(y) {
|
4
4
|
return Math.floor(Math.abs(y) + 0.5) * (y >= 0 ? 1 : -1);
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function gc(y, S, k) {
|
7
7
|
y = Nd(y * k), S = Nd(S * k);
|
8
8
|
var z = (y - S) * 2;
|
9
9
|
z < 0 && (z = -z - 1);
|
@@ -28,9 +28,9 @@ $s.decode = function(y, S) {
|
|
28
28
|
$s.encode = function(y, S) {
|
29
29
|
if (!y.length)
|
30
30
|
return "";
|
31
|
-
for (var k = Math.pow(10, Number.isInteger(S) ? S : 5), z =
|
31
|
+
for (var k = Math.pow(10, Number.isInteger(S) ? S : 5), z = gc(y[0][0], 0, k) + gc(y[0][1], 0, k), N = 1; N < y.length; N++) {
|
32
32
|
var X = y[N], T = y[N - 1];
|
33
|
-
z +=
|
33
|
+
z += gc(X[0], T[0], k), z += gc(X[1], T[1], k);
|
34
34
|
}
|
35
35
|
return z;
|
36
36
|
};
|
@@ -208,9 +208,9 @@ var ap = { exports: {} };
|
|
208
208
|
return this.sampleCurveY(this.solveCurveX(i, e));
|
209
209
|
} };
|
210
210
|
var Ze = _e(oe);
|
211
|
-
let
|
211
|
+
let et, Ne;
|
212
212
|
function dt() {
|
213
|
-
return
|
213
|
+
return et == null && (et = typeof OffscreenCanvas < "u" && new OffscreenCanvas(1, 1).getContext("2d") && typeof createImageBitmap == "function"), et;
|
214
214
|
}
|
215
215
|
function Ot() {
|
216
216
|
if (Ne == null && (Ne = !1, dt())) {
|
@@ -368,7 +368,7 @@ var ap = { exports: {} };
|
|
368
368
|
const e = new URL(i), r = window.location;
|
369
369
|
return e.protocol === r.protocol && e.host === r.host;
|
370
370
|
}
|
371
|
-
function
|
371
|
+
function os(i, e, r) {
|
372
372
|
r[i] && r[i].indexOf(e) !== -1 || (r[i] = r[i] || [], r[i].push(e));
|
373
373
|
}
|
374
374
|
function Cr(i, e, r) {
|
@@ -389,13 +389,13 @@ var ap = { exports: {} };
|
|
389
389
|
}
|
390
390
|
class Dn {
|
391
391
|
on(e, r) {
|
392
|
-
return this._listeners = this._listeners || {},
|
392
|
+
return this._listeners = this._listeners || {}, os(e, r, this._listeners), this;
|
393
393
|
}
|
394
394
|
off(e, r) {
|
395
395
|
return Cr(e, r, this._listeners), Cr(e, r, this._oneTimeListeners), this;
|
396
396
|
}
|
397
397
|
once(e, r) {
|
398
|
-
return r ? (this._oneTimeListeners = this._oneTimeListeners || {},
|
398
|
+
return r ? (this._oneTimeListeners = this._oneTimeListeners || {}, os(e, r, this._oneTimeListeners), this) : new Promise((s) => this.once(e, s));
|
399
399
|
}
|
400
400
|
fire(e, r) {
|
401
401
|
typeof e == "string" && (e = new Zr(e, r || {}));
|
@@ -420,7 +420,7 @@ var ap = { exports: {} };
|
|
420
420
|
}
|
421
421
|
var he = { $version: 8, $root: { version: { required: !0, type: "enum", values: [8] }, name: { type: "string" }, metadata: { type: "*" }, center: { type: "array", value: "number" }, zoom: { type: "number" }, bearing: { type: "number", default: 0, period: 360, units: "degrees" }, pitch: { type: "number", default: 0, units: "degrees" }, light: { type: "light" }, sky: { type: "sky" }, projection: { type: "projection" }, terrain: { type: "terrain" }, sources: { required: !0, type: "sources" }, sprite: { type: "sprite" }, glyphs: { type: "string" }, transition: { type: "transition" }, layers: { required: !0, type: "array", value: "layer" } }, sources: { "*": { type: "source" } }, source: ["source_vector", "source_raster", "source_raster_dem", "source_geojson", "source_video", "source_image"], source_vector: { type: { required: !0, type: "enum", values: { vector: {} } }, url: { type: "string" }, tiles: { type: "array", value: "string" }, bounds: { type: "array", value: "number", length: 4, default: [-180, -85.051129, 180, 85.051129] }, scheme: { type: "enum", values: { xyz: {}, tms: {} }, default: "xyz" }, minzoom: { type: "number", default: 0 }, maxzoom: { type: "number", default: 22 }, attribution: { type: "string" }, promoteId: { type: "promoteId" }, volatile: { type: "boolean", default: !1 }, "*": { type: "*" } }, source_raster: { type: { required: !0, type: "enum", values: { raster: {} } }, url: { type: "string" }, tiles: { type: "array", value: "string" }, bounds: { type: "array", value: "number", length: 4, default: [-180, -85.051129, 180, 85.051129] }, minzoom: { type: "number", default: 0 }, maxzoom: { type: "number", default: 22 }, tileSize: { type: "number", default: 512, units: "pixels" }, scheme: { type: "enum", values: { xyz: {}, tms: {} }, default: "xyz" }, attribution: { type: "string" }, volatile: { type: "boolean", default: !1 }, "*": { type: "*" } }, source_raster_dem: { type: { required: !0, type: "enum", values: { "raster-dem": {} } }, url: { type: "string" }, tiles: { type: "array", value: "string" }, bounds: { type: "array", value: "number", length: 4, default: [-180, -85.051129, 180, 85.051129] }, minzoom: { type: "number", default: 0 }, maxzoom: { type: "number", default: 22 }, tileSize: { type: "number", default: 512, units: "pixels" }, attribution: { type: "string" }, encoding: { type: "enum", values: { terrarium: {}, mapbox: {}, custom: {} }, default: "mapbox" }, redFactor: { type: "number", default: 1 }, blueFactor: { type: "number", default: 1 }, greenFactor: { type: "number", default: 1 }, baseShift: { type: "number", default: 0 }, volatile: { type: "boolean", default: !1 }, "*": { type: "*" } }, source_geojson: { type: { required: !0, type: "enum", values: { geojson: {} } }, data: { required: !0, type: "*" }, maxzoom: { type: "number", default: 18 }, attribution: { type: "string" }, buffer: { type: "number", default: 128, maximum: 512, minimum: 0 }, filter: { type: "*" }, tolerance: { type: "number", default: 0.375 }, cluster: { type: "boolean", default: !1 }, clusterRadius: { type: "number", default: 50, minimum: 0 }, clusterMaxZoom: { type: "number" }, clusterMinPoints: { type: "number" }, clusterProperties: { type: "*" }, lineMetrics: { type: "boolean", default: !1 }, generateId: { type: "boolean", default: !1 }, promoteId: { type: "promoteId" } }, source_video: { type: { required: !0, type: "enum", values: { video: {} } }, urls: { required: !0, type: "array", value: "string" }, coordinates: { required: !0, type: "array", length: 4, value: { type: "array", length: 2, value: "number" } } }, source_image: { type: { required: !0, type: "enum", values: { image: {} } }, url: { required: !0, type: "string" }, coordinates: { required: !0, type: "array", length: 4, value: { type: "array", length: 2, value: "number" } } }, layer: { id: { type: "string", required: !0 }, type: { type: "enum", values: { fill: {}, line: {}, symbol: {}, circle: {}, heatmap: {}, "fill-extrusion": {}, raster: {}, hillshade: {}, background: {} }, required: !0 }, metadata: { type: "*" }, source: { type: "string" }, "source-layer": { type: "string" }, minzoom: { type: "number", minimum: 0, maximum: 24 }, maxzoom: { type: "number", minimum: 0, maximum: 24 }, filter: { type: "filter" }, layout: { type: "layout" }, paint: { type: "paint" } }, layout: ["layout_fill", "layout_line", "layout_circle", "layout_heatmap", "layout_fill-extrusion", "layout_symbol", "layout_raster", "layout_hillshade", "layout_background"], layout_background: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_fill: { "fill-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_circle: { "circle-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_heatmap: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, "layout_fill-extrusion": { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_line: { "line-cap": { type: "enum", values: { butt: {}, round: {}, square: {} }, default: "butt", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-join": { type: "enum", values: { bevel: {}, round: {}, miter: {} }, default: "miter", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "line-miter-limit": { type: "number", default: 2, requires: [{ "line-join": "miter" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-round-limit": { type: "number", default: 1.05, requires: [{ "line-join": "round" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_symbol: { "symbol-placement": { type: "enum", values: { point: {}, line: {}, "line-center": {} }, default: "point", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "symbol-spacing": { type: "number", default: 250, minimum: 1, units: "pixels", requires: [{ "symbol-placement": "line" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "symbol-avoid-edges": { type: "boolean", default: !1, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "symbol-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "symbol-z-order": { type: "enum", values: { auto: {}, "viewport-y": {}, source: {} }, default: "auto", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-allow-overlap": { type: "boolean", default: !1, requires: ["icon-image", { "!": "icon-overlap" }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-overlap": { type: "enum", values: { never: {}, always: {}, cooperative: {} }, requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-ignore-placement": { type: "boolean", default: !1, requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-optional": { type: "boolean", default: !1, requires: ["icon-image", "text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-rotation-alignment": { type: "enum", values: { map: {}, viewport: {}, auto: {} }, default: "auto", requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-size": { type: "number", default: 1, minimum: 0, units: "factor of the original icon size", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-text-fit": { type: "enum", values: { none: {}, width: {}, height: {}, both: {} }, default: "none", requires: ["icon-image", "text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-text-fit-padding": { type: "array", value: "number", length: 4, default: [0, 0, 0, 0], units: "pixels", requires: ["icon-image", "text-field", { "icon-text-fit": ["both", "width", "height"] }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-image": { type: "resolvedImage", tokens: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-rotate": { type: "number", default: 0, period: 360, units: "degrees", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-padding": { type: "padding", default: [2], units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-keep-upright": { type: "boolean", default: !1, requires: ["icon-image", { "icon-rotation-alignment": "map" }, { "symbol-placement": ["line", "line-center"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-offset": { type: "array", value: "number", length: 2, default: [0, 0], requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-anchor": { type: "enum", values: { center: {}, left: {}, right: {}, top: {}, bottom: {}, "top-left": {}, "top-right": {}, "bottom-left": {}, "bottom-right": {} }, default: "center", requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-pitch-alignment": { type: "enum", values: { map: {}, viewport: {}, auto: {} }, default: "auto", requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-pitch-alignment": { type: "enum", values: { map: {}, viewport: {}, auto: {} }, default: "auto", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-rotation-alignment": { type: "enum", values: { map: {}, viewport: {}, "viewport-glyph": {}, auto: {} }, default: "auto", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-field": { type: "formatted", default: "", tokens: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-font": { type: "array", value: "string", default: ["Open Sans Regular", "Arial Unicode MS Regular"], requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-size": { type: "number", default: 16, minimum: 0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-max-width": { type: "number", default: 10, minimum: 0, units: "ems", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-line-height": { type: "number", default: 1.2, units: "ems", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-letter-spacing": { type: "number", default: 0, units: "ems", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-justify": { type: "enum", values: { auto: {}, left: {}, center: {}, right: {} }, default: "center", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-radial-offset": { type: "number", units: "ems", default: 0, requires: ["text-field"], "property-type": "data-driven", expression: { interpolated: !0, parameters: ["zoom", "feature"] } }, "text-variable-anchor": { type: "array", value: "enum", values: { center: {}, left: {}, right: {}, top: {}, bottom: {}, "top-left": {}, "top-right": {}, "bottom-left": {}, "bottom-right": {} }, requires: ["text-field", { "symbol-placement": ["point"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-variable-anchor-offset": { type: "variableAnchorOffsetCollection", requires: ["text-field", { "symbol-placement": ["point"] }], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-anchor": { type: "enum", values: { center: {}, left: {}, right: {}, top: {}, bottom: {}, "top-left": {}, "top-right": {}, "bottom-left": {}, "bottom-right": {} }, default: "center", requires: ["text-field", { "!": "text-variable-anchor" }], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-max-angle": { type: "number", default: 45, units: "degrees", requires: ["text-field", { "symbol-placement": ["line", "line-center"] }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-writing-mode": { type: "array", value: "enum", values: { horizontal: {}, vertical: {} }, requires: ["text-field", { "symbol-placement": ["point"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-rotate": { type: "number", default: 0, period: 360, units: "degrees", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-padding": { type: "number", default: 2, minimum: 0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-keep-upright": { type: "boolean", default: !0, requires: ["text-field", { "text-rotation-alignment": "map" }, { "symbol-placement": ["line", "line-center"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-transform": { type: "enum", values: { none: {}, uppercase: {}, lowercase: {} }, default: "none", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-offset": { type: "array", value: "number", units: "ems", length: 2, default: [0, 0], requires: ["text-field", { "!": "text-radial-offset" }], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-allow-overlap": { type: "boolean", default: !1, requires: ["text-field", { "!": "text-overlap" }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-overlap": { type: "enum", values: { never: {}, always: {}, cooperative: {} }, requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-ignore-placement": { type: "boolean", default: !1, requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-optional": { type: "boolean", default: !1, requires: ["text-field", "icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_raster: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_hillshade: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, filter: { type: "array", value: "*" }, filter_operator: { type: "enum", values: { "==": {}, "!=": {}, ">": {}, ">=": {}, "<": {}, "<=": {}, in: {}, "!in": {}, all: {}, any: {}, none: {}, has: {}, "!has": {} } }, geometry_type: { type: "enum", values: { Point: {}, LineString: {}, Polygon: {} } }, function: { expression: { type: "expression" }, stops: { type: "array", value: "function_stop" }, base: { type: "number", default: 1, minimum: 0 }, property: { type: "string", default: "$zoom" }, type: { type: "enum", values: { identity: {}, exponential: {}, interval: {}, categorical: {} }, default: "exponential" }, colorSpace: { type: "enum", values: { rgb: {}, lab: {}, hcl: {} }, default: "rgb" }, default: { type: "*", required: !1 } }, function_stop: { type: "array", minimum: 0, maximum: 24, value: ["number", "color"], length: 2 }, expression: { type: "array", value: "*", minimum: 1 }, light: { anchor: { type: "enum", default: "viewport", values: { map: {}, viewport: {} }, "property-type": "data-constant", transition: !1, expression: { interpolated: !1, parameters: ["zoom"] } }, position: { type: "array", default: [1.15, 210, 30], length: 3, value: "number", "property-type": "data-constant", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] } }, color: { type: "color", "property-type": "data-constant", default: "#ffffff", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, intensity: { type: "number", "property-type": "data-constant", default: 0.5, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 } }, sky: { "sky-color": { type: "color", "property-type": "data-constant", default: "#88C6FC", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "horizon-color": { type: "color", "property-type": "data-constant", default: "#ffffff", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "fog-color": { type: "color", "property-type": "data-constant", default: "#ffffff", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "fog-ground-blend": { type: "number", "property-type": "data-constant", default: 0.5, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "horizon-fog-blend": { type: "number", "property-type": "data-constant", default: 0.8, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "sky-horizon-blend": { type: "number", "property-type": "data-constant", default: 0.8, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "atmosphere-blend": { type: "number", "property-type": "data-constant", default: 0.8, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 } }, terrain: { source: { type: "string", required: !0 }, exaggeration: { type: "number", minimum: 0, default: 1 } }, projection: { type: { type: "enum", default: "mercator", values: { mercator: {}, globe: {} } } }, paint: ["paint_fill", "paint_line", "paint_circle", "paint_heatmap", "paint_fill-extrusion", "paint_symbol", "paint_raster", "paint_hillshade", "paint_background"], paint_fill: { "fill-antialias": { type: "boolean", default: !0, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "fill-pattern" }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-outline-color": { type: "color", transition: !0, requires: [{ "!": "fill-pattern" }, { "fill-antialias": !0 }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["fill-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "cross-faded-data-driven" } }, "paint_fill-extrusion": { "fill-extrusion-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-extrusion-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "fill-extrusion-pattern" }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-extrusion-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-extrusion-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["fill-extrusion-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-extrusion-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "cross-faded-data-driven" }, "fill-extrusion-height": { type: "number", default: 0, minimum: 0, units: "meters", transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-extrusion-base": { type: "number", default: 0, minimum: 0, units: "meters", transition: !0, requires: ["fill-extrusion-height"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-extrusion-vertical-gradient": { type: "boolean", default: !0, transition: !1, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_line: { "line-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "line-pattern" }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["line-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-width": { type: "number", default: 1, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-gap-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-offset": { type: "number", default: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-blur": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-dasharray": { type: "array", value: "number", minimum: 0, transition: !0, units: "line widths", requires: [{ "!": "line-pattern" }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "cross-faded" }, "line-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "cross-faded-data-driven" }, "line-gradient": { type: "color", transition: !1, requires: [{ "!": "line-dasharray" }, { "!": "line-pattern" }, { source: "geojson", has: { lineMetrics: !0 } }], expression: { interpolated: !0, parameters: ["line-progress"] }, "property-type": "color-ramp" } }, paint_circle: { "circle-radius": { type: "number", default: 5, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-blur": { type: "number", default: 0, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["circle-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-pitch-scale": { type: "enum", values: { map: {}, viewport: {} }, default: "map", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-pitch-alignment": { type: "enum", values: { map: {}, viewport: {} }, default: "viewport", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-stroke-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-stroke-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-stroke-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" } }, paint_heatmap: { "heatmap-radius": { type: "number", default: 30, minimum: 1, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "heatmap-weight": { type: "number", default: 1, minimum: 0, transition: !1, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "heatmap-intensity": { type: "number", default: 1, minimum: 0, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "heatmap-color": { type: "color", default: ["interpolate", ["linear"], ["heatmap-density"], 0, "rgba(0, 0, 255, 0)", 0.1, "royalblue", 0.3, "cyan", 0.5, "lime", 0.7, "yellow", 1, "red"], transition: !1, expression: { interpolated: !0, parameters: ["heatmap-density"] }, "property-type": "color-ramp" }, "heatmap-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_symbol: { "icon-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-color": { type: "color", default: "#000000", transition: !0, requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-halo-color": { type: "color", default: "rgba(0, 0, 0, 0)", transition: !0, requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-halo-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-halo-blur": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["icon-image", "icon-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-color": { type: "color", default: "#000000", transition: !0, overridable: !0, requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-halo-color": { type: "color", default: "rgba(0, 0, 0, 0)", transition: !0, requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-halo-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-halo-blur": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["text-field", "text-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_raster: { "raster-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-hue-rotate": { type: "number", default: 0, period: 360, transition: !0, units: "degrees", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-brightness-min": { type: "number", default: 0, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-brightness-max": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-saturation": { type: "number", default: 0, minimum: -1, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-contrast": { type: "number", default: 0, minimum: -1, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-resampling": { type: "enum", values: { linear: {}, nearest: {} }, default: "linear", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-fade-duration": { type: "number", default: 300, minimum: 0, transition: !1, units: "milliseconds", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_hillshade: { "hillshade-illumination-direction": { type: "number", default: 335, minimum: 0, maximum: 359, transition: !1, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-illumination-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "viewport", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-exaggeration": { type: "number", default: 0.5, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-shadow-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-highlight-color": { type: "color", default: "#FFFFFF", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-accent-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_background: { "background-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "background-pattern" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "background-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "cross-faded" }, "background-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, transition: { duration: { type: "number", default: 300, minimum: 0, units: "milliseconds" }, delay: { type: "number", default: 0, minimum: 0, units: "milliseconds" } }, "property-type": { "data-driven": { type: "property-type" }, "cross-faded": { type: "property-type" }, "cross-faded-data-driven": { type: "property-type" }, "color-ramp": { type: "property-type" }, "data-constant": { type: "property-type" }, constant: { type: "property-type" } }, promoteId: { "*": { type: "string" } } };
|
422
422
|
const pn = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
|
423
|
-
function
|
423
|
+
function as(i, e) {
|
424
424
|
const r = {};
|
425
425
|
for (const s in i) s !== "ref" && (r[s] = i[s]);
|
426
426
|
return pn.forEach((s) => {
|
@@ -443,14 +443,14 @@ var ap = { exports: {} };
|
|
443
443
|
function qt(i, e) {
|
444
444
|
i.push(e);
|
445
445
|
}
|
446
|
-
function
|
446
|
+
function ls(i, e, r) {
|
447
447
|
qt(r, { command: "addSource", args: [i, e[i]] });
|
448
448
|
}
|
449
449
|
function Hr(i, e, r) {
|
450
450
|
qt(e, { command: "removeSource", args: [i] }), r[i] = !0;
|
451
451
|
}
|
452
452
|
function kr(i, e, r, s) {
|
453
|
-
Hr(i, r, s),
|
453
|
+
Hr(i, r, s), ls(i, e, r);
|
454
454
|
}
|
455
455
|
function Ln(i, e, r) {
|
456
456
|
let s;
|
@@ -463,10 +463,10 @@ var ap = { exports: {} };
|
|
463
463
|
for (const p in i) Object.prototype.hasOwnProperty.call(i, p) && (_t(i[p], e[p]) || r.push({ command: d, args: [s, p, e[p], l] }));
|
464
464
|
for (const p in e) Object.prototype.hasOwnProperty.call(e, p) && !Object.prototype.hasOwnProperty.call(i, p) && (_t(i[p], e[p]) || r.push({ command: d, args: [s, p, e[p], l] }));
|
465
465
|
}
|
466
|
-
function
|
466
|
+
function cs(i) {
|
467
467
|
return i.id;
|
468
468
|
}
|
469
|
-
function
|
469
|
+
function hs(i, e) {
|
470
470
|
return i[e.id] = e, i;
|
471
471
|
}
|
472
472
|
class Te {
|
@@ -572,7 +572,7 @@ var ap = { exports: {} };
|
|
572
572
|
function di(i) {
|
573
573
|
return !i.some(Number.isNaN);
|
574
574
|
}
|
575
|
-
const
|
575
|
+
const us = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
|
576
576
|
class bt {
|
577
577
|
constructor(e, r, s, l = 1, d = !0) {
|
578
578
|
this.r = e, this.g = r, this.b = s, this.a = l, d || (this.r *= l, this.g *= l, this.b *= l, l || this.overwriteGetter("rgb", [e, r, s, l]));
|
@@ -582,7 +582,7 @@ var ap = { exports: {} };
|
|
582
582
|
if (typeof e != "string") return;
|
583
583
|
const r = function(s) {
|
584
584
|
if ((s = s.toLowerCase().trim()) === "transparent") return [0, 0, 0, 0];
|
585
|
-
const l =
|
585
|
+
const l = us[s];
|
586
586
|
if (l) {
|
587
587
|
const [p, f, g] = l;
|
588
588
|
return [p / 255, f / 255, g / 255, 1];
|
@@ -737,14 +737,14 @@ var ap = { exports: {} };
|
|
737
737
|
function Hs(i, e, r, s) {
|
738
738
|
return typeof i == "number" && i >= 0 && i <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof r == "number" && r >= 0 && r <= 255 ? s === void 0 || typeof s == "number" && s >= 0 && s <= 1 ? null : `Invalid rgba value [${[i, e, r, s].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof s == "number" ? [i, e, r, s] : [i, e, r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
|
739
739
|
}
|
740
|
-
function
|
740
|
+
function ds(i) {
|
741
741
|
if (i === null || typeof i == "string" || typeof i == "boolean" || typeof i == "number" || i instanceof bt || i instanceof $o || i instanceof Ni || i instanceof ji || i instanceof Ui || i instanceof pi) return !0;
|
742
742
|
if (Array.isArray(i)) {
|
743
|
-
for (const e of i) if (!
|
743
|
+
for (const e of i) if (!ds(e)) return !1;
|
744
744
|
return !0;
|
745
745
|
}
|
746
746
|
if (typeof i == "object") {
|
747
|
-
for (const e in i) if (!
|
747
|
+
for (const e in i) if (!ds(i[e])) return !1;
|
748
748
|
return !0;
|
749
749
|
}
|
750
750
|
return !1;
|
@@ -786,7 +786,7 @@ var ap = { exports: {} };
|
|
786
786
|
}
|
787
787
|
static parse(e, r) {
|
788
788
|
if (e.length !== 2) return r.error(`'literal' expression requires exactly one argument, but found ${e.length - 1} instead.`);
|
789
|
-
if (!
|
789
|
+
if (!ds(e[1])) return r.error("invalid value");
|
790
790
|
const s = e[1];
|
791
791
|
let l = ei(s);
|
792
792
|
const d = r.expectedType;
|
@@ -857,7 +857,7 @@ var ap = { exports: {} };
|
|
857
857
|
return this.args.every((e) => e.outputDefined());
|
858
858
|
}
|
859
859
|
}
|
860
|
-
const
|
860
|
+
const ps = { "to-boolean": Je, "to-color": Mi, "to-number": Ae, "to-string": ot };
|
861
861
|
class Jr {
|
862
862
|
constructor(e, r) {
|
863
863
|
this.type = e, this.args = r;
|
@@ -865,9 +865,9 @@ var ap = { exports: {} };
|
|
865
865
|
static parse(e, r) {
|
866
866
|
if (e.length < 2) return r.error("Expected at least one argument.");
|
867
867
|
const s = e[0];
|
868
|
-
if (!
|
868
|
+
if (!ps[s]) throw new Error(`Can't parse ${s} as it is not part of the known types`);
|
869
869
|
if ((s === "to-boolean" || s === "to-string") && e.length !== 2) return r.error("Expected one argument.");
|
870
|
-
const l =
|
870
|
+
const l = ps[s], d = [];
|
871
871
|
for (let p = 1; p < e.length; p++) {
|
872
872
|
const f = r.parse(e[p], p, it);
|
873
873
|
if (!f) return null;
|
@@ -933,7 +933,7 @@ var ap = { exports: {} };
|
|
933
933
|
}
|
934
934
|
}
|
935
935
|
const Zo = ["Unknown", "Point", "LineString", "Polygon"];
|
936
|
-
class
|
936
|
+
class fs {
|
937
937
|
constructor() {
|
938
938
|
this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = {}, this.availableImages = null, this.canonical = null;
|
939
939
|
}
|
@@ -986,7 +986,7 @@ var ap = { exports: {} };
|
|
986
986
|
else p = s(p, f, r.typeAnnotation || "assert");
|
987
987
|
}
|
988
988
|
if (!(p instanceof fn) && p.type.kind !== "resolvedImage" && this._isConstant(p)) {
|
989
|
-
const f = new
|
989
|
+
const f = new fs();
|
990
990
|
try {
|
991
991
|
p = new fn(p.type, p.evaluate(f));
|
992
992
|
} catch (g) {
|
@@ -1082,14 +1082,14 @@ var ap = { exports: {} };
|
|
1082
1082
|
return !1;
|
1083
1083
|
}
|
1084
1084
|
}
|
1085
|
-
class
|
1085
|
+
class ms {
|
1086
1086
|
constructor(e, r) {
|
1087
1087
|
this.type = Je, this.needle = e, this.haystack = r;
|
1088
1088
|
}
|
1089
1089
|
static parse(e, r) {
|
1090
1090
|
if (e.length !== 3) return r.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
|
1091
1091
|
const s = r.parse(e[1], 1, it), l = r.parse(e[2], 2, it);
|
1092
|
-
return s && l ? Q(s.type, [Je, ot, Ae, Wr, it]) ? new
|
1092
|
+
return s && l ? Q(s.type, [Je, ot, Ae, Wr, it]) ? new ms(s, l) : r.error(`Expected first argument to be of type boolean, string, number or null, but found ${E(s.type)} instead`) : null;
|
1093
1093
|
}
|
1094
1094
|
evaluate(e) {
|
1095
1095
|
const r = this.needle.evaluate(e), s = this.haystack.evaluate(e);
|
@@ -1248,7 +1248,7 @@ var ap = { exports: {} };
|
|
1248
1248
|
return !1;
|
1249
1249
|
}
|
1250
1250
|
}
|
1251
|
-
function
|
1251
|
+
function gs(i, e) {
|
1252
1252
|
const r = i.length - 1;
|
1253
1253
|
let s, l, d = 0, p = r, f = 0;
|
1254
1254
|
for (; d <= p; ) if (f = Math.floor((d + p) / 2), s = i[f], l = i[f + 1], s <= e) {
|
@@ -1289,7 +1289,7 @@ var ap = { exports: {} };
|
|
1289
1289
|
const l = this.input.evaluate(e);
|
1290
1290
|
if (l <= r[0]) return s[0].evaluate(e);
|
1291
1291
|
const d = r.length;
|
1292
|
-
return l >= r[d - 1] ? s[d - 1].evaluate(e) : s[
|
1292
|
+
return l >= r[d - 1] ? s[d - 1].evaluate(e) : s[gs(r, l)].evaluate(e);
|
1293
1293
|
}
|
1294
1294
|
eachChild(e) {
|
1295
1295
|
e(this.input);
|
@@ -1302,11 +1302,11 @@ var ap = { exports: {} };
|
|
1302
1302
|
function Ec(i) {
|
1303
1303
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
1304
1304
|
}
|
1305
|
-
var Mc =
|
1306
|
-
function
|
1305
|
+
var Mc = ul;
|
1306
|
+
function ul(i, e, r, s) {
|
1307
1307
|
this.cx = 3 * i, this.bx = 3 * (r - i) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * e, this.by = 3 * (s - e) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = i, this.p1y = e, this.p2x = r, this.p2y = s;
|
1308
1308
|
}
|
1309
|
-
|
1309
|
+
ul.prototype = { sampleCurveX: function(i) {
|
1310
1310
|
return ((this.ax * i + this.bx) * i + this.cx) * i;
|
1311
1311
|
}, sampleCurveY: function(i) {
|
1312
1312
|
return ((this.ay * i + this.by) * i + this.cy) * i;
|
@@ -1332,13 +1332,13 @@ var ap = { exports: {} };
|
|
1332
1332
|
function Yr(i, e, r) {
|
1333
1333
|
return i + r * (e - i);
|
1334
1334
|
}
|
1335
|
-
function
|
1335
|
+
function _s(i, e, r) {
|
1336
1336
|
return i.map((s, l) => Yr(s, e[l], r));
|
1337
1337
|
}
|
1338
1338
|
const $i = { number: Yr, color: function(i, e, r, s = "rgb") {
|
1339
1339
|
switch (s) {
|
1340
1340
|
case "rgb": {
|
1341
|
-
const [l, d, p, f] =
|
1341
|
+
const [l, d, p, f] = _s(i.rgb, e.rgb, r);
|
1342
1342
|
return new bt(l, d, p, f, !1);
|
1343
1343
|
}
|
1344
1344
|
case "hcl": {
|
@@ -1355,12 +1355,12 @@ var ap = { exports: {} };
|
|
1355
1355
|
return new bt(R, B, $, W, !1);
|
1356
1356
|
}
|
1357
1357
|
case "lab": {
|
1358
|
-
const [l, d, p, f] = Qt(
|
1358
|
+
const [l, d, p, f] = Qt(_s(i.lab, e.lab, r));
|
1359
1359
|
return new bt(l, d, p, f, !1);
|
1360
1360
|
}
|
1361
1361
|
}
|
1362
|
-
}, array:
|
1363
|
-
return new ji(
|
1362
|
+
}, array: _s, padding: function(i, e, r) {
|
1363
|
+
return new ji(_s(i.values, e.values, r));
|
1364
1364
|
}, variableAnchorOffsetCollection: function(i, e, r) {
|
1365
1365
|
const s = i.values, l = e.values;
|
1366
1366
|
if (s.length !== l.length) throw new Kt(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${e.toString()}`);
|
@@ -1380,11 +1380,11 @@ var ap = { exports: {} };
|
|
1380
1380
|
}
|
1381
1381
|
static interpolationFactor(e, r, s, l) {
|
1382
1382
|
let d = 0;
|
1383
|
-
if (e.name === "exponential") d =
|
1384
|
-
else if (e.name === "linear") d =
|
1383
|
+
if (e.name === "exponential") d = ys(r, e.base, s, l);
|
1384
|
+
else if (e.name === "linear") d = ys(r, 1, s, l);
|
1385
1385
|
else if (e.name === "cubic-bezier") {
|
1386
1386
|
const p = e.controlPoints;
|
1387
|
-
d = new zc(p[0], p[1], p[2], p[3]).solve(
|
1387
|
+
d = new zc(p[0], p[1], p[2], p[3]).solve(ys(r, 1, s, l));
|
1388
1388
|
}
|
1389
1389
|
return d;
|
1390
1390
|
}
|
@@ -1427,7 +1427,7 @@ var ap = { exports: {} };
|
|
1427
1427
|
if (l <= r[0]) return s[0].evaluate(e);
|
1428
1428
|
const d = r.length;
|
1429
1429
|
if (l >= r[d - 1]) return s[d - 1].evaluate(e);
|
1430
|
-
const p =
|
1430
|
+
const p = gs(r, l), f = qi.interpolationFactor(this.interpolation, l, r[p], r[p + 1]), g = s[p].evaluate(e), x = s[p + 1].evaluate(e);
|
1431
1431
|
switch (this.operator) {
|
1432
1432
|
case "interpolate":
|
1433
1433
|
return $i[this.type.kind](g, x, f);
|
@@ -1445,7 +1445,7 @@ var ap = { exports: {} };
|
|
1445
1445
|
return this.outputs.every((e) => e.outputDefined());
|
1446
1446
|
}
|
1447
1447
|
}
|
1448
|
-
function
|
1448
|
+
function ys(i, e, r, s) {
|
1449
1449
|
const l = s - r, d = i - r;
|
1450
1450
|
return l === 0 ? 0 : e === 1 ? d / l : (Math.pow(e, d) - 1) / (Math.pow(e, l) - 1);
|
1451
1451
|
}
|
@@ -1480,10 +1480,10 @@ var ap = { exports: {} };
|
|
1480
1480
|
return this.args.every((e) => e.outputDefined());
|
1481
1481
|
}
|
1482
1482
|
}
|
1483
|
-
function
|
1483
|
+
function dl(i, e) {
|
1484
1484
|
return i === "==" || i === "!=" ? e.kind === "boolean" || e.kind === "string" || e.kind === "number" || e.kind === "null" || e.kind === "value" : e.kind === "string" || e.kind === "number" || e.kind === "value";
|
1485
1485
|
}
|
1486
|
-
function
|
1486
|
+
function pl(i, e, r, s) {
|
1487
1487
|
return s.compare(e, r) === 0;
|
1488
1488
|
}
|
1489
1489
|
function mn(i, e, r) {
|
@@ -1497,10 +1497,10 @@ var ap = { exports: {} };
|
|
1497
1497
|
const f = d[0];
|
1498
1498
|
let g = p.parse(d[1], 1, it);
|
1499
1499
|
if (!g) return null;
|
1500
|
-
if (!
|
1500
|
+
if (!dl(f, g.type)) return p.concat(1).error(`"${f}" comparisons are not supported for type '${E(g.type)}'.`);
|
1501
1501
|
let x = p.parse(d[2], 2, it);
|
1502
1502
|
if (!x) return null;
|
1503
|
-
if (!
|
1503
|
+
if (!dl(f, x.type)) return p.concat(2).error(`"${f}" comparisons are not supported for type '${E(x.type)}'.`);
|
1504
1504
|
if (g.type.kind !== x.type.kind && g.type.kind !== "value" && x.type.kind !== "value") return p.error(`Cannot compare types '${E(g.type)}' and '${E(x.type)}'.`);
|
1505
1505
|
s && (g.type.kind === "value" && x.type.kind !== "value" ? g = new Ji(x.type, [g]) : g.type.kind !== "value" && x.type.kind === "value" && (x = new Ji(g.type, [x])));
|
1506
1506
|
let w = null;
|
@@ -1530,21 +1530,21 @@ var ap = { exports: {} };
|
|
1530
1530
|
}
|
1531
1531
|
};
|
1532
1532
|
}
|
1533
|
-
const
|
1533
|
+
const fl = mn("==", function(i, e, r) {
|
1534
1534
|
return e === r;
|
1535
|
-
},
|
1535
|
+
}, pl), Dc = mn("!=", function(i, e, r) {
|
1536
1536
|
return e !== r;
|
1537
1537
|
}, function(i, e, r, s) {
|
1538
|
-
return !
|
1538
|
+
return !pl(0, e, r, s);
|
1539
1539
|
}), Lc = mn("<", function(i, e, r) {
|
1540
1540
|
return e < r;
|
1541
1541
|
}, function(i, e, r, s) {
|
1542
1542
|
return s.compare(e, r) < 0;
|
1543
|
-
}),
|
1543
|
+
}), ml = mn(">", function(i, e, r) {
|
1544
1544
|
return e > r;
|
1545
1545
|
}, function(i, e, r, s) {
|
1546
1546
|
return s.compare(e, r) > 0;
|
1547
|
-
}),
|
1547
|
+
}), gl = mn("<=", function(i, e, r) {
|
1548
1548
|
return e <= r;
|
1549
1549
|
}, function(i, e, r, s) {
|
1550
1550
|
return s.compare(e, r) <= 0;
|
@@ -1706,7 +1706,7 @@ var ap = { exports: {} };
|
|
1706
1706
|
function ut(i, e) {
|
1707
1707
|
i[0] = Math.min(i[0], e[0]), i[1] = Math.min(i[1], e[1]), i[2] = Math.max(i[2], e[0]), i[3] = Math.max(i[3], e[1]);
|
1708
1708
|
}
|
1709
|
-
function
|
1709
|
+
function xs(i, e) {
|
1710
1710
|
return !(i[0] <= e[0] || i[2] >= e[2] || i[1] <= e[1] || i[3] >= e[3]);
|
1711
1711
|
}
|
1712
1712
|
function Fc(i, e, r) {
|
@@ -1714,7 +1714,7 @@ var ap = { exports: {} };
|
|
1714
1714
|
return s * p - d * l == 0 && s * d <= 0 && l * p <= 0;
|
1715
1715
|
}
|
1716
1716
|
function ro(i, e, r, s) {
|
1717
|
-
return (l = [s[0] - r[0], s[1] - r[1]])[0] * (d = [e[0] - i[0], e[1] - i[1]])[1] - l[1] * d[0] != 0 && !(!
|
1717
|
+
return (l = [s[0] - r[0], s[1] - r[1]])[0] * (d = [e[0] - i[0], e[1] - i[1]])[1] - l[1] * d[0] != 0 && !(!yl(i, e, r, s) || !yl(r, s, i, e));
|
1718
1718
|
var l, d;
|
1719
1719
|
}
|
1720
1720
|
function Bc(i, e, r) {
|
@@ -1734,16 +1734,16 @@ var ap = { exports: {} };
|
|
1734
1734
|
for (const r of e) if (Bn(i, r)) return !0;
|
1735
1735
|
return !1;
|
1736
1736
|
}
|
1737
|
-
function
|
1737
|
+
function _l(i, e) {
|
1738
1738
|
for (const r of i) if (!Bn(r, e)) return !1;
|
1739
1739
|
for (let r = 0; r < i.length - 1; ++r) if (Bc(i[r], i[r + 1], e)) return !1;
|
1740
1740
|
return !0;
|
1741
1741
|
}
|
1742
1742
|
function Vc(i, e) {
|
1743
|
-
for (const r of e) if (
|
1743
|
+
for (const r of e) if (_l(i, r)) return !0;
|
1744
1744
|
return !1;
|
1745
1745
|
}
|
1746
|
-
function
|
1746
|
+
function yl(i, e, r, s) {
|
1747
1747
|
const l = s[0] - r[0], d = s[1] - r[1], p = (i[0] - r[0]) * d - l * (i[1] - r[1]), f = (e[0] - r[0]) * d - l * (e[1] - r[1]);
|
1748
1748
|
return p > 0 && f < 0 || p < 0 && f > 0;
|
1749
1749
|
}
|
@@ -1759,7 +1759,7 @@ var ap = { exports: {} };
|
|
1759
1759
|
}
|
1760
1760
|
return s;
|
1761
1761
|
}
|
1762
|
-
function
|
1762
|
+
function xl(i, e, r) {
|
1763
1763
|
const s = [];
|
1764
1764
|
for (let l = 0; l < i.length; l++) {
|
1765
1765
|
const d = Ko(i[l], e, r);
|
@@ -1767,7 +1767,7 @@ var ap = { exports: {} };
|
|
1767
1767
|
}
|
1768
1768
|
return s;
|
1769
1769
|
}
|
1770
|
-
function
|
1770
|
+
function vl(i, e, r, s) {
|
1771
1771
|
if (i[0] < r[0] || i[0] > r[2]) {
|
1772
1772
|
const l = 0.5 * s;
|
1773
1773
|
let d = i[0] - r[0] > l ? -s : r[0] - i[0] > l ? s : 0;
|
@@ -1775,15 +1775,15 @@ var ap = { exports: {} };
|
|
1775
1775
|
}
|
1776
1776
|
ut(e, i);
|
1777
1777
|
}
|
1778
|
-
function
|
1778
|
+
function bl(i, e, r, s) {
|
1779
1779
|
const l = Math.pow(2, s.z) * vr, d = [s.x * vr, s.y * vr], p = [];
|
1780
1780
|
for (const f of i) for (const g of f) {
|
1781
1781
|
const x = [g.x + d[0], g.y + d[1]];
|
1782
|
-
|
1782
|
+
vl(x, e, r, l), p.push(x);
|
1783
1783
|
}
|
1784
1784
|
return p;
|
1785
1785
|
}
|
1786
|
-
function
|
1786
|
+
function wl(i, e, r, s) {
|
1787
1787
|
const l = Math.pow(2, s.z) * vr, d = [s.x * vr, s.y * vr], p = [];
|
1788
1788
|
for (const g of i) {
|
1789
1789
|
const x = [];
|
@@ -1795,7 +1795,7 @@ var ap = { exports: {} };
|
|
1795
1795
|
}
|
1796
1796
|
if (e[2] - e[0] <= l / 2) {
|
1797
1797
|
(f = e)[0] = f[1] = 1 / 0, f[2] = f[3] = -1 / 0;
|
1798
|
-
for (const g of p) for (const x of g)
|
1798
|
+
for (const g of p) for (const x of g) vl(x, e, r, l);
|
1799
1799
|
}
|
1800
1800
|
var f;
|
1801
1801
|
return p;
|
@@ -1806,7 +1806,7 @@ var ap = { exports: {} };
|
|
1806
1806
|
}
|
1807
1807
|
static parse(e, r) {
|
1808
1808
|
if (e.length !== 2) return r.error(`'within' expression requires exactly one argument, but found ${e.length - 1} instead.`);
|
1809
|
-
if (
|
1809
|
+
if (ds(e[1])) {
|
1810
1810
|
const s = e[1];
|
1811
1811
|
if (s.type === "FeatureCollection") {
|
1812
1812
|
const l = [];
|
@@ -1827,13 +1827,13 @@ var ap = { exports: {} };
|
|
1827
1827
|
if (e.geometryType() === "Point") return function(r, s) {
|
1828
1828
|
const l = [1 / 0, 1 / 0, -1 / 0, -1 / 0], d = [1 / 0, 1 / 0, -1 / 0, -1 / 0], p = r.canonicalID();
|
1829
1829
|
if (s.type === "Polygon") {
|
1830
|
-
const f = Ko(s.coordinates, d, p), g =
|
1831
|
-
if (!
|
1830
|
+
const f = Ko(s.coordinates, d, p), g = bl(r.geometry(), l, d, p);
|
1831
|
+
if (!xs(l, d)) return !1;
|
1832
1832
|
for (const x of g) if (!Bn(x, f)) return !1;
|
1833
1833
|
}
|
1834
1834
|
if (s.type === "MultiPolygon") {
|
1835
|
-
const f =
|
1836
|
-
if (!
|
1835
|
+
const f = xl(s.coordinates, d, p), g = bl(r.geometry(), l, d, p);
|
1836
|
+
if (!xs(l, d)) return !1;
|
1837
1837
|
for (const x of g) if (!Oc(x, f)) return !1;
|
1838
1838
|
}
|
1839
1839
|
return !0;
|
@@ -1841,13 +1841,13 @@ var ap = { exports: {} };
|
|
1841
1841
|
if (e.geometryType() === "LineString") return function(r, s) {
|
1842
1842
|
const l = [1 / 0, 1 / 0, -1 / 0, -1 / 0], d = [1 / 0, 1 / 0, -1 / 0, -1 / 0], p = r.canonicalID();
|
1843
1843
|
if (s.type === "Polygon") {
|
1844
|
-
const f = Ko(s.coordinates, d, p), g =
|
1845
|
-
if (!
|
1846
|
-
for (const x of g) if (!
|
1844
|
+
const f = Ko(s.coordinates, d, p), g = wl(r.geometry(), l, d, p);
|
1845
|
+
if (!xs(l, d)) return !1;
|
1846
|
+
for (const x of g) if (!_l(x, f)) return !1;
|
1847
1847
|
}
|
1848
1848
|
if (s.type === "MultiPolygon") {
|
1849
|
-
const f =
|
1850
|
-
if (!
|
1849
|
+
const f = xl(s.coordinates, d, p), g = wl(r.geometry(), l, d, p);
|
1850
|
+
if (!xs(l, d)) return !1;
|
1851
1851
|
for (const x of g) if (!Vc(x, f)) return !1;
|
1852
1852
|
}
|
1853
1853
|
return !0;
|
@@ -1861,7 +1861,7 @@ var ap = { exports: {} };
|
|
1861
1861
|
return !0;
|
1862
1862
|
}
|
1863
1863
|
}
|
1864
|
-
let
|
1864
|
+
let Sl = class {
|
1865
1865
|
constructor(i = [], e = Nc) {
|
1866
1866
|
if (this.data = i, this.length = this.data.length, this.compare = e, this.length > 0) for (let r = (this.length >> 1) - 1; r >= 0; r--) this._down(r);
|
1867
1867
|
}
|
@@ -1900,23 +1900,23 @@ var ap = { exports: {} };
|
|
1900
1900
|
return i < e ? -1 : i > e ? 1 : 0;
|
1901
1901
|
}
|
1902
1902
|
function jc(i, e, r, s, l) {
|
1903
|
-
|
1903
|
+
Tl(i, e, r, s || i.length - 1, l || Uc);
|
1904
1904
|
}
|
1905
|
-
function
|
1905
|
+
function Tl(i, e, r, s, l) {
|
1906
1906
|
for (; s > r; ) {
|
1907
1907
|
if (s - r > 600) {
|
1908
1908
|
var d = s - r + 1, p = e - r + 1, f = Math.log(d), g = 0.5 * Math.exp(2 * f / 3), x = 0.5 * Math.sqrt(f * g * (d - g) / d) * (p - d / 2 < 0 ? -1 : 1);
|
1909
|
-
|
1909
|
+
Tl(i, e, Math.max(r, Math.floor(e - p * g / d + x)), Math.min(s, Math.floor(e + (d - p) * g / d + x)), l);
|
1910
1910
|
}
|
1911
1911
|
var w = i[e], I = r, C = s;
|
1912
|
-
for (
|
1913
|
-
for (
|
1912
|
+
for (vs(i, r, e), l(i[s], w) > 0 && vs(i, r, s); I < C; ) {
|
1913
|
+
for (vs(i, I, C), I++, C--; l(i[I], w) < 0; ) I++;
|
1914
1914
|
for (; l(i[C], w) > 0; ) C--;
|
1915
1915
|
}
|
1916
|
-
l(i[r], w) === 0 ?
|
1916
|
+
l(i[r], w) === 0 ? vs(i, r, C) : vs(i, ++C, s), C <= e && (r = C + 1), e <= C && (s = C - 1);
|
1917
1917
|
}
|
1918
1918
|
}
|
1919
|
-
function
|
1919
|
+
function vs(i, e, r) {
|
1920
1920
|
var s = i[e];
|
1921
1921
|
i[e] = i[r], i[r] = s;
|
1922
1922
|
}
|
@@ -1942,11 +1942,11 @@ var ap = { exports: {} };
|
|
1942
1942
|
for (let r, s, l = 0, d = i.length, p = d - 1; l < d; p = l++) r = i[l], s = i[p], e += (s.x - r.x) * (r.y + s.y);
|
1943
1943
|
return e;
|
1944
1944
|
}
|
1945
|
-
const
|
1945
|
+
const Il = 1 / 298.257223563, Pl = Il * (2 - Il), Al = Math.PI / 180;
|
1946
1946
|
class Yo {
|
1947
1947
|
constructor(e) {
|
1948
|
-
const r = 6378.137 *
|
1949
|
-
this.kx = r * d * s, this.ky = r * d * l * (1 -
|
1948
|
+
const r = 6378.137 * Al * 1e3, s = Math.cos(e * Al), l = 1 / (1 - Pl * (1 - s * s)), d = Math.sqrt(l);
|
1949
|
+
this.kx = r * d * s, this.ky = r * d * l * (1 - Pl);
|
1950
1950
|
}
|
1951
1951
|
distance(e, r) {
|
1952
1952
|
const s = this.wrap(e[0] - r[0]) * this.kx, l = (e[1] - r[1]) * this.ky;
|
@@ -1968,7 +1968,7 @@ var ap = { exports: {} };
|
|
1968
1968
|
return e;
|
1969
1969
|
}
|
1970
1970
|
}
|
1971
|
-
function
|
1971
|
+
function Cl(i, e) {
|
1972
1972
|
return e[0] - i[0];
|
1973
1973
|
}
|
1974
1974
|
function so(i) {
|
@@ -1977,7 +1977,7 @@ var ap = { exports: {} };
|
|
1977
1977
|
function zr(i, e) {
|
1978
1978
|
return i[1] >= i[0] && i[1] < e;
|
1979
1979
|
}
|
1980
|
-
function
|
1980
|
+
function bs(i, e) {
|
1981
1981
|
if (i[0] > i[1]) return [null, null];
|
1982
1982
|
const r = so(i);
|
1983
1983
|
if (e) {
|
@@ -2000,11 +2000,11 @@ var ap = { exports: {} };
|
|
2000
2000
|
for (const r of i) for (const s of r) ut(e, s);
|
2001
2001
|
return e;
|
2002
2002
|
}
|
2003
|
-
function
|
2003
|
+
function kl(i) {
|
2004
2004
|
return i[0] !== -1 / 0 && i[1] !== -1 / 0 && i[2] !== 1 / 0 && i[3] !== 1 / 0;
|
2005
2005
|
}
|
2006
2006
|
function ta(i, e, r) {
|
2007
|
-
if (!
|
2007
|
+
if (!kl(i) || !kl(e)) return NaN;
|
2008
2008
|
let s = 0, l = 0;
|
2009
2009
|
return i[2] < e[0] && (s = e[0] - i[2]), i[0] > e[2] && (s = i[0] - e[2]), i[1] > e[3] && (l = i[1] - e[3]), i[3] < e[1] && (l = e[1] - i[3]), r.distance([0, 0], [s, l]);
|
2010
2010
|
}
|
@@ -2060,16 +2060,16 @@ var ap = { exports: {} };
|
|
2060
2060
|
}
|
2061
2061
|
return l;
|
2062
2062
|
}
|
2063
|
-
function
|
2063
|
+
function ws(i, e) {
|
2064
2064
|
for (const r of i) for (const s of r) if (Bn(s, e, !0)) return !0;
|
2065
2065
|
return !1;
|
2066
2066
|
}
|
2067
|
-
function
|
2067
|
+
function El(i, e, r, s = 1 / 0) {
|
2068
2068
|
const l = ea(i), d = ea(e);
|
2069
2069
|
if (s !== 1 / 0 && ta(l, d, r) >= s) return s;
|
2070
|
-
if (
|
2071
|
-
if (
|
2072
|
-
} else if (
|
2070
|
+
if (xs(l, d)) {
|
2071
|
+
if (ws(i, e)) return 0;
|
2072
|
+
} else if (ws(e, i)) return 0;
|
2073
2073
|
let p = 1 / 0;
|
2074
2074
|
for (const f of i) for (let g = 0, x = f.length, w = x - 1; g < x; w = g++) {
|
2075
2075
|
const I = f[w], C = f[g];
|
@@ -2094,7 +2094,7 @@ var ap = { exports: {} };
|
|
2094
2094
|
function ao(i, e, r, s, l = 1 / 0) {
|
2095
2095
|
let d = Math.min(s.distance(i[0], r[0][0]), l);
|
2096
2096
|
if (d === 0) return d;
|
2097
|
-
const p = new
|
2097
|
+
const p = new Sl([[0, [0, i.length - 1], [0, 0]]], Cl), f = ea(r);
|
2098
2098
|
for (; p.length > 0; ) {
|
2099
2099
|
const g = p.pop();
|
2100
2100
|
if (g[0] >= d) continue;
|
@@ -2110,7 +2110,7 @@ var ap = { exports: {} };
|
|
2110
2110
|
if (d = Math.min(d, C), d === 0) return 0;
|
2111
2111
|
}
|
2112
2112
|
} else {
|
2113
|
-
const I =
|
2113
|
+
const I = bs(x, e);
|
2114
2114
|
na(p, d, s, i, f, I[0]), na(p, d, s, i, f, I[1]);
|
2115
2115
|
}
|
2116
2116
|
}
|
@@ -2119,7 +2119,7 @@ var ap = { exports: {} };
|
|
2119
2119
|
function lo(i, e, r, s, l, d = 1 / 0) {
|
2120
2120
|
let p = Math.min(d, l.distance(i[0], r[0]));
|
2121
2121
|
if (p === 0) return p;
|
2122
|
-
const f = new
|
2122
|
+
const f = new Sl([[0, [0, i.length - 1], [0, r.length - 1]]], Cl);
|
2123
2123
|
for (; f.length > 0; ) {
|
2124
2124
|
const g = f.pop();
|
2125
2125
|
if (g[0] >= p) continue;
|
@@ -2136,7 +2136,7 @@ var ap = { exports: {} };
|
|
2136
2136
|
for (let B = x[0]; B <= x[1]; ++B) if (D = kt(i[B], R, l), p = Math.min(p, D), p === 0) return p;
|
2137
2137
|
} else D = ra(i, x, r, w, l), p = Math.min(p, D);
|
2138
2138
|
} else {
|
2139
|
-
const D =
|
2139
|
+
const D = bs(x, e), R = bs(w, s);
|
2140
2140
|
oo(f, p, l, i, r, D[0], R[0]), oo(f, p, l, i, r, D[0], R[1]), oo(f, p, l, i, r, D[1], R[0]), oo(f, p, l, i, r, D[1], R[1]);
|
2141
2141
|
}
|
2142
2142
|
}
|
@@ -2151,7 +2151,7 @@ var ap = { exports: {} };
|
|
2151
2151
|
}
|
2152
2152
|
static parse(e, r) {
|
2153
2153
|
if (e.length !== 2) return r.error(`'distance' expression requires exactly one argument, but found ${e.length - 1} instead.`);
|
2154
|
-
if (
|
2154
|
+
if (ds(e[1])) {
|
2155
2155
|
const s = e[1];
|
2156
2156
|
if (s.type === "FeatureCollection") return new Qr(s, s.features.map((l) => sa(l.geometry)).flat());
|
2157
2157
|
if (s.type === "Feature") return new Qr(s, sa(s.geometry));
|
@@ -2215,7 +2215,7 @@ var ap = { exports: {} };
|
|
2215
2215
|
f = Math.min(f, ao(g.coordinates, !0, x, p, f));
|
2216
2216
|
break;
|
2217
2217
|
case "Polygon":
|
2218
|
-
f = Math.min(f,
|
2218
|
+
f = Math.min(f, El(x, g.coordinates, p, f));
|
2219
2219
|
}
|
2220
2220
|
if (f === 0) return f;
|
2221
2221
|
}
|
@@ -2230,7 +2230,7 @@ var ap = { exports: {} };
|
|
2230
2230
|
return !0;
|
2231
2231
|
}
|
2232
2232
|
}
|
2233
|
-
const _n = { "==":
|
2233
|
+
const _n = { "==": fl, "!=": Dc, ">": ml, "<": Lc, ">=": Rc, "<=": gl, array: Ji, at: Go, boolean: Ji, case: Ys, coalesce: eo, collator: to, format: io, image: Wo, in: ms, "index-of": Js, interpolate: qi, "interpolate-hcl": qi, "interpolate-lab": qi, length: Xo, let: yt, literal: fn, match: Ks, number: Ji, "number-format": Ho, object: Ji, slice: Qs, step: Rn, string: Ji, "to-boolean": Jr, "to-color": Jr, "to-number": Jr, "to-string": Jr, var: Xs, within: gn, distance: Qr };
|
2234
2234
|
class Zi {
|
2235
2235
|
constructor(e, r, s, l) {
|
2236
2236
|
this.name = e, this.type = r, this._evaluate = s, this.args = l;
|
@@ -2322,11 +2322,11 @@ var ap = { exports: {} };
|
|
2322
2322
|
e && !uo(r) && (e = !1);
|
2323
2323
|
}), e;
|
2324
2324
|
}
|
2325
|
-
function
|
2325
|
+
function Ss(i) {
|
2326
2326
|
if (i instanceof Zi && i.name === "feature-state") return !1;
|
2327
2327
|
let e = !0;
|
2328
2328
|
return i.eachChild((r) => {
|
2329
|
-
e && !
|
2329
|
+
e && !Ss(r) && (e = !1);
|
2330
2330
|
}), e;
|
2331
2331
|
}
|
2332
2332
|
function po(i, e) {
|
@@ -2336,7 +2336,7 @@ var ap = { exports: {} };
|
|
2336
2336
|
r && !po(s, e) && (r = !1);
|
2337
2337
|
}), r;
|
2338
2338
|
}
|
2339
|
-
function
|
2339
|
+
function Ml(i) {
|
2340
2340
|
return { result: "success", value: i };
|
2341
2341
|
}
|
2342
2342
|
function On(i) {
|
@@ -2354,13 +2354,13 @@ var ap = { exports: {} };
|
|
2354
2354
|
function ft(i) {
|
2355
2355
|
return i instanceof Number ? "number" : i instanceof String ? "string" : i instanceof Boolean ? "boolean" : Array.isArray(i) ? "array" : i === null ? "null" : typeof i;
|
2356
2356
|
}
|
2357
|
-
function
|
2357
|
+
function Ts(i) {
|
2358
2358
|
return typeof i == "object" && i !== null && !Array.isArray(i);
|
2359
2359
|
}
|
2360
|
-
function
|
2360
|
+
function zl(i) {
|
2361
2361
|
return i;
|
2362
2362
|
}
|
2363
|
-
function
|
2363
|
+
function Dl(i, e) {
|
2364
2364
|
const r = e.type === "color", s = i.stops && typeof i.stops[0][0] == "object", l = s || !(s || i.property !== void 0), d = i.type || (Vn(e) ? "exponential" : "interval");
|
2365
2365
|
if (r || e.type === "padding") {
|
2366
2366
|
const w = r ? bt.parse : ji.parse;
|
@@ -2386,7 +2386,7 @@ var ap = { exports: {} };
|
|
2386
2386
|
w[$] === void 0 && (w[$] = { zoom: $, type: i.type, property: i.property, default: i.default, stops: [] }, I.push($)), w[$].stops.push([B[0].value, B[1]]);
|
2387
2387
|
}
|
2388
2388
|
const C = [];
|
2389
|
-
for (const R of I) C.push([w[R].zoom,
|
2389
|
+
for (const R of I) C.push([w[R].zoom, Dl(w[R], e)]);
|
2390
2390
|
const D = { name: "linear" };
|
2391
2391
|
return { kind: "composite", interpolationType: D, interpolationFactor: qi.interpolationFactor.bind(void 0, D), zoomStops: C.map((R) => R[0]), evaluate: ({ zoom: R }, B) => ca({ stops: C, base: i.base }, e, R).evaluate(R, B) };
|
2392
2392
|
}
|
@@ -2410,7 +2410,7 @@ var ap = { exports: {} };
|
|
2410
2410
|
const s = i.stops.length;
|
2411
2411
|
if (s === 1 || r <= i.stops[0][0]) return i.stops[0][1];
|
2412
2412
|
if (r >= i.stops[s - 1][0]) return i.stops[s - 1][1];
|
2413
|
-
const l =
|
2413
|
+
const l = gs(i.stops.map((d) => d[0]), r);
|
2414
2414
|
return i.stops[l][1];
|
2415
2415
|
}
|
2416
2416
|
function ca(i, e, r) {
|
@@ -2419,10 +2419,10 @@ var ap = { exports: {} };
|
|
2419
2419
|
const l = i.stops.length;
|
2420
2420
|
if (l === 1 || r <= i.stops[0][0]) return i.stops[0][1];
|
2421
2421
|
if (r >= i.stops[l - 1][0]) return i.stops[l - 1][1];
|
2422
|
-
const d =
|
2422
|
+
const d = gs(i.stops.map((w) => w[0]), r), p = function(w, I, C, D) {
|
2423
2423
|
const R = D - C, B = w - C;
|
2424
2424
|
return R === 0 ? 0 : I === 1 ? B / R : (Math.pow(I, B) - 1) / (Math.pow(I, R) - 1);
|
2425
|
-
}(r, s, i.stops[d][0], i.stops[d + 1][0]), f = i.stops[d][1], g = i.stops[d + 1][1], x = $i[e.type] ||
|
2425
|
+
}(r, s, i.stops[d][0], i.stops[d + 1][0]), f = i.stops[d][1], g = i.stops[d + 1][1], x = $i[e.type] || zl;
|
2426
2426
|
return typeof f.evaluate == "function" ? { evaluate(...w) {
|
2427
2427
|
const I = f.evaluate.apply(void 0, w), C = g.evaluate.apply(void 0, w);
|
2428
2428
|
if (I !== void 0 && C !== void 0) return x(I, C, p, i.colorSpace);
|
@@ -2507,7 +2507,7 @@ var ap = { exports: {} };
|
|
2507
2507
|
class go {
|
2508
2508
|
constructor(e, r) {
|
2509
2509
|
var s;
|
2510
|
-
this.expression = e, this._warningHistory = {}, this._evaluator = new
|
2510
|
+
this.expression = e, this._warningHistory = {}, this._evaluator = new fs(), this._defaultValue = r ? (s = r).type === "color" && Ts(s.default) ? new bt(0, 0, 0, 0) : s.type === "color" ? bt.parse(s.default) || null : s.type === "padding" ? ji.parse(s.default) || null : s.type === "variableAnchorOffsetCollection" ? Ui.parse(s.default) || null : s.default === void 0 ? null : s.default : null, this._enumValues = r && r.type === "enum" ? r.values : null;
|
2511
2511
|
}
|
2512
2512
|
evaluateWithoutErrorHandling(e, r, s, l, d, p) {
|
2513
2513
|
return this._evaluator.globals = e, this._evaluator.feature = r, this._evaluator.featureState = s, this._evaluator.canonical = l, this._evaluator.availableImages = d || null, this._evaluator.formattedSection = p, this.expression.evaluate(this._evaluator);
|
@@ -2524,7 +2524,7 @@ var ap = { exports: {} };
|
|
2524
2524
|
}
|
2525
2525
|
}
|
2526
2526
|
}
|
2527
|
-
function
|
2527
|
+
function Is(i) {
|
2528
2528
|
return Array.isArray(i) && i.length > 0 && typeof i[0] == "string" && i[0] in _n;
|
2529
2529
|
}
|
2530
2530
|
function bn(i, e) {
|
@@ -2532,11 +2532,11 @@ var ap = { exports: {} };
|
|
2532
2532
|
const d = { color: Mi, string: ot, number: Ae, enum: ot, boolean: Je, formatted: Er, padding: Xr, resolvedImage: xr, variableAnchorOffsetCollection: G };
|
2533
2533
|
return l.type === "array" ? M(d[l.value] || it, l.length) : d[l.type];
|
2534
2534
|
}(e) : void 0), s = r.parse(i, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
2535
|
-
return s ?
|
2535
|
+
return s ? Ml(new go(s, e)) : On(r.errors);
|
2536
2536
|
}
|
2537
2537
|
class ua {
|
2538
2538
|
constructor(e, r) {
|
2539
|
-
this.kind = e, this._styleExpression = r, this.isStateDependent = e !== "constant" && !
|
2539
|
+
this.kind = e, this._styleExpression = r, this.isStateDependent = e !== "constant" && !Ss(r.expression);
|
2540
2540
|
}
|
2541
2541
|
evaluateWithoutErrorHandling(e, r, s, l, d, p) {
|
2542
2542
|
return this._styleExpression.evaluateWithoutErrorHandling(e, r, s, l, d, p);
|
@@ -2547,7 +2547,7 @@ var ap = { exports: {} };
|
|
2547
2547
|
}
|
2548
2548
|
class da {
|
2549
2549
|
constructor(e, r, s, l) {
|
2550
|
-
this.kind = e, this.zoomStops = s, this._styleExpression = r, this.isStateDependent = e !== "camera" && !
|
2550
|
+
this.kind = e, this.zoomStops = s, this._styleExpression = r, this.isStateDependent = e !== "camera" && !Ss(r.expression), this.interpolationType = l;
|
2551
2551
|
}
|
2552
2552
|
evaluateWithoutErrorHandling(e, r, s, l, d, p) {
|
2553
2553
|
return this._styleExpression.evaluateWithoutErrorHandling(e, r, s, l, d, p);
|
@@ -2559,7 +2559,7 @@ var ap = { exports: {} };
|
|
2559
2559
|
return this.interpolationType ? qi.interpolationFactor(this.interpolationType, e, r, s) : 0;
|
2560
2560
|
}
|
2561
2561
|
}
|
2562
|
-
function
|
2562
|
+
function Ll(i, e) {
|
2563
2563
|
const r = bn(i, e);
|
2564
2564
|
if (r.result === "error") return r;
|
2565
2565
|
const s = r.value.expression, l = uo(s);
|
@@ -2567,11 +2567,11 @@ var ap = { exports: {} };
|
|
2567
2567
|
const d = po(s, ["zoom"]);
|
2568
2568
|
if (!d && !la(e)) return On([new Ii("", "zoom expressions not supported")]);
|
2569
2569
|
const p = yo(s);
|
2570
|
-
return p || d ? p instanceof Ii ? On([p]) : p instanceof qi && !Vn(e) ? On([new Ii("", '"interpolate" expressions cannot be used with this property')]) :
|
2570
|
+
return p || d ? p instanceof Ii ? On([p]) : p instanceof qi && !Vn(e) ? On([new Ii("", '"interpolate" expressions cannot be used with this property')]) : Ml(p ? new da(l ? "camera" : "composite", r.value, p.labels, p instanceof qi ? p.interpolation : void 0) : new ua(l ? "constant" : "source", r.value)) : On([new Ii("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
2571
2571
|
}
|
2572
2572
|
class _o {
|
2573
2573
|
constructor(e, r) {
|
2574
|
-
this._parameters = e, this._specification = r, gr(this,
|
2574
|
+
this._parameters = e, this._specification = r, gr(this, Dl(this._parameters, this._specification));
|
2575
2575
|
}
|
2576
2576
|
static deserialize(e) {
|
2577
2577
|
return new _o(e._parameters, e._specification);
|
@@ -2626,7 +2626,7 @@ var ap = { exports: {} };
|
|
2626
2626
|
if (e.result === "error") throw new Error(e.value.map((r) => `${r.key}: ${r.message}`).join(", "));
|
2627
2627
|
return { filter: (r, s, l) => e.value.evaluate(r, s, {}, l), needGeometry: pa(i) };
|
2628
2628
|
}
|
2629
|
-
function
|
2629
|
+
function Ps(i, e) {
|
2630
2630
|
return i < e ? -1 : i > e ? 1 : 0;
|
2631
2631
|
}
|
2632
2632
|
function pa(i) {
|
@@ -2659,7 +2659,7 @@ var ap = { exports: {} };
|
|
2659
2659
|
case "$id":
|
2660
2660
|
return ["filter-id-in", ["literal", e]];
|
2661
2661
|
default:
|
2662
|
-
return e.length > 200 && !e.some((r) => typeof r != typeof e[0]) ? ["filter-in-large", i, ["literal", e.sort(
|
2662
|
+
return e.length > 200 && !e.some((r) => typeof r != typeof e[0]) ? ["filter-in-large", i, ["literal", e.sort(Ps)]] : ["filter-in-small", i, ["literal", e]];
|
2663
2663
|
}
|
2664
2664
|
}
|
2665
2665
|
function ma(i) {
|
@@ -2693,7 +2693,7 @@ var ap = { exports: {} };
|
|
2693
2693
|
for (const r of pn) e += `/${ga(i[r])}`;
|
2694
2694
|
return e;
|
2695
2695
|
}
|
2696
|
-
function
|
2696
|
+
function Rl(i) {
|
2697
2697
|
const e = i.value;
|
2698
2698
|
return e ? [new Te(i.key, e, "constants have been deprecated as of v8")] : [];
|
2699
2699
|
}
|
@@ -2743,7 +2743,7 @@ var ap = { exports: {} };
|
|
2743
2743
|
for (let x = 0; x < e.length; x++) g = g.concat(p({ array: e, arrayIndex: x, value: e[x], valueSpec: f, validateSpec: i.validateSpec, style: s, styleSpec: l, key: `${d}[${x}]` }));
|
2744
2744
|
return g;
|
2745
2745
|
}
|
2746
|
-
function
|
2746
|
+
function As(i) {
|
2747
2747
|
const e = i.key, r = i.value, s = i.valueSpec;
|
2748
2748
|
let l = ft(r);
|
2749
2749
|
return l === "number" && r != r && (l = "NaN"), l !== "number" ? [new Te(e, r, `number expected, ${l} found`)] : "minimum" in s && r < s.minimum ? [new Te(e, r, `${r} is less than the minimum value ${s.minimum}`)] : "maximum" in s && r > s.maximum ? [new Te(e, r, `${r} is greater than the maximum value ${s.maximum}`)] : [];
|
@@ -2770,9 +2770,9 @@ var ap = { exports: {} };
|
|
2770
2770
|
if (B[0].zoom === void 0) return [new Te($, B, "object stop key must have zoom")];
|
2771
2771
|
if (B[0].value === void 0) return [new Te($, B, "object stop key must have value")];
|
2772
2772
|
if (d && d > Dt(B[0].zoom)) return [new Te($, B[0].zoom, "stop zoom values must appear in ascending order")];
|
2773
|
-
Dt(B[0].zoom) !== d && (d = Dt(B[0].zoom), l = void 0, p = {}), R = R.concat(zi({ key: `${$}[0]`, value: B[0], valueSpec: { zoom: {} }, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec, objectElementValidators: { zoom:
|
2773
|
+
Dt(B[0].zoom) !== d && (d = Dt(B[0].zoom), l = void 0, p = {}), R = R.concat(zi({ key: `${$}[0]`, value: B[0], valueSpec: { zoom: {} }, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec, objectElementValidators: { zoom: As, value: C } }));
|
2774
2774
|
} else R = R.concat(C({ key: `${$}[0]`, value: B[0], valueSpec: {}, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec }, B));
|
2775
|
-
return
|
2775
|
+
return Is(wn(B[1])) ? R.concat([new Te(`${$}[1]`, B[1], "expressions are not allowed in function stops.")]) : R.concat(D.validateSpec({ key: `${$}[1]`, value: B[1], valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec }));
|
2776
2776
|
}
|
2777
2777
|
function C(D, R) {
|
2778
2778
|
const B = ft(D.value), $ = Dt(D.value), W = D.value !== null ? D.value : R;
|
@@ -2788,32 +2788,32 @@ var ap = { exports: {} };
|
|
2788
2788
|
}
|
2789
2789
|
}
|
2790
2790
|
function Sn(i) {
|
2791
|
-
const e = (i.expressionContext === "property" ?
|
2791
|
+
const e = (i.expressionContext === "property" ? Ll : bn)(wn(i.value), i.valueSpec);
|
2792
2792
|
if (e.result === "error") return e.value.map((s) => new Te(`${i.key}${s.key}`, i.value, s.message));
|
2793
2793
|
const r = e.value.expression || e.value._styleExpression.expression;
|
2794
2794
|
if (i.expressionContext === "property" && i.propertyKey === "text-font" && !r.outputDefined()) return [new Te(i.key, i.value, `Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];
|
2795
|
-
if (i.expressionContext === "property" && i.propertyType === "layout" && !
|
2796
|
-
if (i.expressionContext === "filter" && !
|
2795
|
+
if (i.expressionContext === "property" && i.propertyType === "layout" && !Ss(r)) return [new Te(i.key, i.value, '"feature-state" data expressions are not supported with layout properties.')];
|
2796
|
+
if (i.expressionContext === "filter" && !Ss(r)) return [new Te(i.key, i.value, '"feature-state" data expressions are not supported with filters.')];
|
2797
2797
|
if (i.expressionContext && i.expressionContext.indexOf("cluster") === 0) {
|
2798
2798
|
if (!po(r, ["zoom", "feature-state"])) return [new Te(i.key, i.value, '"zoom" and "feature-state" expressions are not supported with cluster properties.')];
|
2799
2799
|
if (i.expressionContext === "cluster-initial" && !uo(r)) return [new Te(i.key, i.value, "Feature data expressions are not supported with initial expression part of cluster properties.")];
|
2800
2800
|
}
|
2801
2801
|
return [];
|
2802
2802
|
}
|
2803
|
-
function
|
2803
|
+
function Cs(i) {
|
2804
2804
|
const e = i.key, r = i.value, s = i.valueSpec, l = [];
|
2805
2805
|
return Array.isArray(s.values) ? s.values.indexOf(Dt(r)) === -1 && l.push(new Te(e, r, `expected one of [${s.values.join(", ")}], ${JSON.stringify(r)} found`)) : Object.keys(s.values).indexOf(Dt(r)) === -1 && l.push(new Te(e, r, `expected one of [${Object.keys(s.values).join(", ")}], ${JSON.stringify(r)} found`)), l;
|
2806
2806
|
}
|
2807
|
-
function Cs(i) {
|
2808
|
-
return Nn(wn(i.value)) ? Sn(gr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : ks(i);
|
2809
|
-
}
|
2810
2807
|
function ks(i) {
|
2808
|
+
return Nn(wn(i.value)) ? Sn(gr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Es(i);
|
2809
|
+
}
|
2810
|
+
function Es(i) {
|
2811
2811
|
const e = i.value, r = i.key;
|
2812
2812
|
if (ft(e) !== "array") return [new Te(r, e, `array expected, ${ft(e)} found`)];
|
2813
2813
|
const s = i.styleSpec;
|
2814
2814
|
let l, d = [];
|
2815
2815
|
if (e.length < 1) return [new Te(r, e, "filter array must have at least 1 element")];
|
2816
|
-
switch (d = d.concat(
|
2816
|
+
switch (d = d.concat(Cs({ key: `${r}[0]`, value: e[0], valueSpec: s.filter_operator, style: i.style, styleSpec: i.styleSpec })), Dt(e[0])) {
|
2817
2817
|
case "<":
|
2818
2818
|
case "<=":
|
2819
2819
|
case ">":
|
@@ -2825,12 +2825,12 @@ var ap = { exports: {} };
|
|
2825
2825
|
case "in":
|
2826
2826
|
case "!in":
|
2827
2827
|
e.length >= 2 && (l = ft(e[1]), l !== "string" && d.push(new Te(`${r}[1]`, e[1], `string expected, ${l} found`)));
|
2828
|
-
for (let p = 2; p < e.length; p++) l = ft(e[p]), Dt(e[1]) === "$type" ? d = d.concat(
|
2828
|
+
for (let p = 2; p < e.length; p++) l = ft(e[p]), Dt(e[1]) === "$type" ? d = d.concat(Cs({ key: `${r}[${p}]`, value: e[p], valueSpec: s.geometry_type, style: i.style, styleSpec: i.styleSpec })) : l !== "string" && l !== "number" && l !== "boolean" && d.push(new Te(`${r}[${p}]`, e[p], `string, number, or boolean expected, ${l} found`));
|
2829
2829
|
break;
|
2830
2830
|
case "any":
|
2831
2831
|
case "all":
|
2832
2832
|
case "none":
|
2833
|
-
for (let p = 1; p < e.length; p++) d = d.concat(
|
2833
|
+
for (let p = 1; p < e.length; p++) d = d.concat(Es({ key: `${r}[${p}]`, value: e[p], style: i.style, styleSpec: i.styleSpec }));
|
2834
2834
|
break;
|
2835
2835
|
case "has":
|
2836
2836
|
case "!has":
|
@@ -2849,7 +2849,7 @@ var ap = { exports: {} };
|
|
2849
2849
|
if (ft(p) === "string" && xn(w) && !w.tokens && (I = /^{([^}]+)}$/.exec(p))) return [new Te(r, p, `"${f}" does not support interpolation syntax
|
2850
2850
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(I[1])} }\`.`)];
|
2851
2851
|
const C = [];
|
2852
|
-
return i.layerType === "symbol" && (f === "text-field" && l && !l.glyphs && C.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" &&
|
2852
|
+
return i.layerType === "symbol" && (f === "text-field" && l && !l.glyphs && C.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && Ts(wn(p)) && Dt(p.type) === "identity" && C.push(new Te(r, p, '"text-font" does not support identity functions'))), C.concat(s({ key: i.key, value: p, valueSpec: w, style: l, styleSpec: d, expressionContext: "property", propertyType: e, propertyKey: f }));
|
2853
2853
|
}
|
2854
2854
|
function va(i) {
|
2855
2855
|
return xa(i, "paint");
|
@@ -2881,7 +2881,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2881
2881
|
const g = l.sources && l.sources[r.source], x = g && Dt(g.type);
|
2882
2882
|
g ? x === "vector" && p === "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster source`)) : x !== "raster-dem" && p === "hillshade" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster-dem source`)) : x === "raster" && p !== "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a vector source`)) : x !== "vector" || r["source-layer"] ? x === "raster-dem" && p !== "hillshade" ? e.push(new Te(s, r.source, "raster-dem source can only be used with layer type 'hillshade'.")) : p !== "line" || !r.paint || !r.paint["line-gradient"] || x === "geojson" && g.lineMetrics || e.push(new Te(s, r, `layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new Te(s, r, `layer "${r.id}" must specify a "source-layer"`)) : e.push(new Te(s, r.source, `source "${r.source}" not found`));
|
2883
2883
|
} else e.push(new Te(s, r, 'missing required property "source"'));
|
2884
|
-
return e = e.concat(zi({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter:
|
2884
|
+
return e = e.concat(zi({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: ks, layout: (g) => zi({ layer: r, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (x) => ba(gr({ layerType: p }, x)) } }), paint: (g) => zi({ layer: r, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (x) => va(gr({ layerType: p }, x)) } }) } })), e;
|
2885
2885
|
}
|
2886
2886
|
function Dr(i) {
|
2887
2887
|
const e = i.value, r = i.key, s = ft(e);
|
@@ -2895,7 +2895,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2895
2895
|
return r;
|
2896
2896
|
}
|
2897
2897
|
} };
|
2898
|
-
function
|
2898
|
+
function Fl(i) {
|
2899
2899
|
const e = i.value, r = i.key, s = i.styleSpec, l = i.style, d = i.validateSpec;
|
2900
2900
|
if (!e.type) return [new Te(r, e, '"type" is required')];
|
2901
2901
|
const p = Dt(e.type);
|
@@ -2929,7 +2929,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2929
2929
|
case "canvas":
|
2930
2930
|
return [new Te(r, null, "Please use runtime APIs to add canvas sources, rather than including them in stylesheets.", "source.canvas")];
|
2931
2931
|
default:
|
2932
|
-
return
|
2932
|
+
return Cs({ key: `${r}.type`, value: e.type, valueSpec: { values: ["vector", "raster", "raster-dem", "geojson", "video", "image"] }, style: l, validateSpec: d, styleSpec: s });
|
2933
2933
|
}
|
2934
2934
|
}
|
2935
2935
|
function Ta(i) {
|
@@ -2944,7 +2944,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2944
2944
|
}
|
2945
2945
|
return d;
|
2946
2946
|
}
|
2947
|
-
function
|
2947
|
+
function Bl(i) {
|
2948
2948
|
const e = i.value, r = i.styleSpec, s = r.sky, l = i.style, d = ft(e);
|
2949
2949
|
if (e === void 0) return [];
|
2950
2950
|
if (d !== "object") return [new Te("sky", e, `object expected, ${d} found`)];
|
@@ -2974,10 +2974,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2974
2974
|
const Aa = { "*": () => [], array: bo, boolean: function(i) {
|
2975
2975
|
const e = i.value, r = i.key, s = ft(e);
|
2976
2976
|
return s !== "boolean" ? [new Te(r, e, `boolean expected, ${s} found`)] : [];
|
2977
|
-
}, number:
|
2977
|
+
}, number: As, color: function(i) {
|
2978
2978
|
const e = i.key, r = i.value, s = ft(r);
|
2979
2979
|
return s !== "string" ? [new Te(e, r, `color expected, ${s} found`)] : bt.parse(String(r)) ? [] : [new Te(e, r, `color expected, "${r}" found`)];
|
2980
|
-
}, constants:
|
2980
|
+
}, constants: Rl, enum: Cs, filter: ks, function: ya, layer: wa, object: zi, source: Fl, light: Ta, sky: Bl, terrain: Ia, projection: function(i) {
|
2981
2981
|
const e = i.value, r = i.styleSpec, s = r.projection, l = i.style, d = ft(e);
|
2982
2982
|
if (e === void 0) return [];
|
2983
2983
|
if (d !== "object") return [new Te("projection", e, `object expected, ${d} found`)];
|
@@ -2997,29 +2997,29 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2997
2997
|
for (let d = 0; d < r.length; d++) l = l.concat(i.validateSpec({ key: `${e}[${d}]`, value: r[d], validateSpec: i.validateSpec, valueSpec: s }));
|
2998
2998
|
return l;
|
2999
2999
|
}
|
3000
|
-
return
|
3000
|
+
return As({ key: e, value: r, valueSpec: {} });
|
3001
3001
|
}, variableAnchorOffsetCollection: function(i) {
|
3002
3002
|
const e = i.key, r = i.value, s = ft(r), l = i.styleSpec;
|
3003
3003
|
if (s !== "array" || r.length < 1 || r.length % 2 != 0) return [new Te(e, r, "variableAnchorOffsetCollection requires a non-empty array of even length")];
|
3004
3004
|
let d = [];
|
3005
|
-
for (let p = 0; p < r.length; p += 2) d = d.concat(
|
3005
|
+
for (let p = 0; p < r.length; p += 2) d = d.concat(Cs({ key: `${e}[${p}]`, value: r[p], valueSpec: l.layout_symbol["text-anchor"] })), d = d.concat(bo({ key: `${e}[${p + 1}]`, value: r[p + 1], valueSpec: { length: 2, value: "number" }, validateSpec: i.validateSpec, style: i.style, styleSpec: l }));
|
3006
3006
|
return d;
|
3007
3007
|
}, sprite: Pa };
|
3008
|
-
function
|
3008
|
+
function Ms(i) {
|
3009
3009
|
const e = i.value, r = i.valueSpec, s = i.styleSpec;
|
3010
|
-
return i.validateSpec =
|
3010
|
+
return i.validateSpec = Ms, r.expression && Ts(Dt(e)) ? ya(i) : r.expression && Is(wn(e)) ? Sn(i) : r.type && Aa[r.type] ? Aa[r.type](i) : zi(gr({}, i, { valueSpec: r.type ? s[r.type] : r }));
|
3011
3011
|
}
|
3012
|
-
function
|
3012
|
+
function Ol(i) {
|
3013
3013
|
const e = i.value, r = i.key, s = Dr(i);
|
3014
3014
|
return s.length || (e.indexOf("{fontstack}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{range}" token'))), s;
|
3015
3015
|
}
|
3016
3016
|
function Ki(i, e = he) {
|
3017
3017
|
let r = [];
|
3018
|
-
return r = r.concat(
|
3018
|
+
return r = r.concat(Ms({ key: "", value: i, valueSpec: e.$root, styleSpec: e, style: i, validateSpec: Ms, objectElementValidators: { glyphs: Ol, "*": () => [] } })), i.constants && (r = r.concat(Rl({ key: "constants", value: i.constants, style: i, styleSpec: e, validateSpec: Ms }))), Ca(r);
|
3019
3019
|
}
|
3020
3020
|
function rr(i) {
|
3021
3021
|
return function(e) {
|
3022
|
-
return i({ ...e, validateSpec:
|
3022
|
+
return i({ ...e, validateSpec: Ms });
|
3023
3023
|
};
|
3024
3024
|
}
|
3025
3025
|
function Ca(i) {
|
@@ -3030,7 +3030,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3030
3030
|
return Ca(i.apply(this, e));
|
3031
3031
|
};
|
3032
3032
|
}
|
3033
|
-
Ki.source = nr(rr(
|
3033
|
+
Ki.source = nr(rr(Fl)), Ki.sprite = nr(rr(Pa)), Ki.glyphs = nr(rr(Ol)), Ki.light = nr(rr(Ta)), Ki.sky = nr(rr(Bl)), Ki.terrain = nr(rr(Ia)), Ki.layer = nr(rr(wa)), Ki.filter = nr(rr(ks)), Ki.paintProperty = nr(rr(va)), Ki.layoutProperty = nr(rr(ba));
|
3034
3034
|
const Lr = Ki, Zc = Lr.light, ka = Lr.sky, Gc = Lr.paintProperty, Hc = Lr.layoutProperty;
|
3035
3035
|
function Ea(i, e) {
|
3036
3036
|
let r = !1;
|
@@ -3131,24 +3131,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3131
3131
|
}
|
3132
3132
|
Be("Object", Object), Be("TransferableGridIndex", $n), Be("Color", bt), Be("Error", Error), Be("AJAXError", Vi), Be("ResolvedImage", pi), Be("StylePropertyFunction", _o), Be("StyleExpression", go, { omit: ["_evaluator"] }), Be("ZoomDependentExpression", da), Be("ZoomConstantExpression", ua), Be("CompoundExpression", Zi, { omit: ["_evaluate"] });
|
3133
3133
|
for (const i in _n) _n[i]._classRegistryKey || Be(`Expression_${i}`, _n[i]);
|
3134
|
-
function
|
3134
|
+
function Vl(i) {
|
3135
3135
|
return i && typeof ArrayBuffer < "u" && (i instanceof ArrayBuffer || i.constructor && i.constructor.name === "ArrayBuffer");
|
3136
3136
|
}
|
3137
3137
|
function Ma(i) {
|
3138
3138
|
return i.$name || i.constructor._classRegistryKey;
|
3139
3139
|
}
|
3140
|
-
function
|
3140
|
+
function Nl(i) {
|
3141
3141
|
return !function(e) {
|
3142
3142
|
if (e === null || typeof e != "object") return !1;
|
3143
3143
|
const r = Ma(e);
|
3144
3144
|
return !(!r || r === "Object");
|
3145
|
-
}(i) && (i == null || typeof i == "boolean" || typeof i == "number" || typeof i == "string" || i instanceof Boolean || i instanceof Number || i instanceof String || i instanceof Date || i instanceof RegExp || i instanceof Blob || i instanceof Error ||
|
3145
|
+
}(i) && (i == null || typeof i == "boolean" || typeof i == "number" || typeof i == "string" || i instanceof Boolean || i instanceof Number || i instanceof String || i instanceof Date || i instanceof RegExp || i instanceof Blob || i instanceof Error || Vl(i) || fr(i) || ArrayBuffer.isView(i) || i instanceof ImageData);
|
3146
3146
|
}
|
3147
|
-
function
|
3148
|
-
if (
|
3147
|
+
function zs(i, e) {
|
3148
|
+
if (Nl(i)) return (Vl(i) || fr(i)) && e && e.push(i), ArrayBuffer.isView(i) && e && e.push(i.buffer), i instanceof ImageData && e && e.push(i.data.buffer), i;
|
3149
3149
|
if (Array.isArray(i)) {
|
3150
3150
|
const d = [];
|
3151
|
-
for (const p of i) d.push(
|
3151
|
+
for (const p of i) d.push(zs(p, e));
|
3152
3152
|
return d;
|
3153
3153
|
}
|
3154
3154
|
if (typeof i != "object") throw new Error("can't serialize object of type " + typeof i);
|
@@ -3162,7 +3162,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3162
3162
|
for (const d in i) {
|
3163
3163
|
if (!i.hasOwnProperty(d) || br[r].omit.indexOf(d) >= 0) continue;
|
3164
3164
|
const p = i[d];
|
3165
|
-
l[d] = br[r].shallow.indexOf(d) >= 0 ? p :
|
3165
|
+
l[d] = br[r].shallow.indexOf(d) >= 0 ? p : zs(p, e);
|
3166
3166
|
}
|
3167
3167
|
i instanceof Error && (l.message = i.message);
|
3168
3168
|
}
|
@@ -3170,7 +3170,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3170
3170
|
return r !== "Object" && (l.$name = r), l;
|
3171
3171
|
}
|
3172
3172
|
function wr(i) {
|
3173
|
-
if (
|
3173
|
+
if (Nl(i)) return i;
|
3174
3174
|
if (Array.isArray(i)) return i.map(wr);
|
3175
3175
|
if (typeof i != "object") throw new Error("can't deserialize object of type " + typeof i);
|
3176
3176
|
const e = Ma(i) || "Object";
|
@@ -3186,7 +3186,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3186
3186
|
}
|
3187
3187
|
return s;
|
3188
3188
|
}
|
3189
|
-
class
|
3189
|
+
class jl {
|
3190
3190
|
constructor() {
|
3191
3191
|
this.first = !0;
|
3192
3192
|
}
|
@@ -3201,16 +3201,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3201
3201
|
return !1;
|
3202
3202
|
}
|
3203
3203
|
function Wc(i) {
|
3204
|
-
for (const e of i) if (!
|
3204
|
+
for (const e of i) if (!Ul(e.charCodeAt(0))) return !1;
|
3205
3205
|
return !0;
|
3206
3206
|
}
|
3207
|
-
function
|
3207
|
+
function Ul(i) {
|
3208
3208
|
return !(ze.Arabic(i) || ze["Arabic Supplement"](i) || ze["Arabic Extended-A"](i) || ze["Arabic Presentation Forms-A"](i) || ze["Arabic Presentation Forms-B"](i));
|
3209
3209
|
}
|
3210
3210
|
function Da(i) {
|
3211
3211
|
return !(i !== 746 && i !== 747 && (i < 4352 || !(ze["Bopomofo Extended"](i) || ze.Bopomofo(i) || ze["CJK Compatibility Forms"](i) && !(i >= 65097 && i <= 65103) || ze["CJK Compatibility Ideographs"](i) || ze["CJK Compatibility"](i) || ze["CJK Radicals Supplement"](i) || ze["CJK Strokes"](i) || !(!ze["CJK Symbols and Punctuation"](i) || i >= 12296 && i <= 12305 || i >= 12308 && i <= 12319 || i === 12336) || ze["CJK Unified Ideographs Extension A"](i) || ze["CJK Unified Ideographs"](i) || ze["Enclosed CJK Letters and Months"](i) || ze["Hangul Compatibility Jamo"](i) || ze["Hangul Jamo Extended-A"](i) || ze["Hangul Jamo Extended-B"](i) || ze["Hangul Jamo"](i) || ze["Hangul Syllables"](i) || ze.Hiragana(i) || ze["Ideographic Description Characters"](i) || ze.Kanbun(i) || ze["Kangxi Radicals"](i) || ze["Katakana Phonetic Extensions"](i) || ze.Katakana(i) && i !== 12540 || !(!ze["Halfwidth and Fullwidth Forms"](i) || i === 65288 || i === 65289 || i === 65293 || i >= 65306 && i <= 65310 || i === 65339 || i === 65341 || i === 65343 || i >= 65371 && i <= 65503 || i === 65507 || i >= 65512 && i <= 65519) || !(!ze["Small Form Variants"](i) || i >= 65112 && i <= 65118 || i >= 65123 && i <= 65126) || ze["Unified Canadian Aboriginal Syllabics"](i) || ze["Unified Canadian Aboriginal Syllabics Extended"](i) || ze["Vertical Forms"](i) || ze["Yijing Hexagram Symbols"](i) || ze["Yi Syllables"](i) || ze["Yi Radicals"](i))));
|
3212
3212
|
}
|
3213
|
-
function
|
3213
|
+
function $l(i) {
|
3214
3214
|
return !(Da(i) || function(e) {
|
3215
3215
|
return !!(ze["Latin-1 Supplement"](e) && (e === 167 || e === 169 || e === 174 || e === 177 || e === 188 || e === 189 || e === 190 || e === 215 || e === 247) || ze["General Punctuation"](e) && (e === 8214 || e === 8224 || e === 8225 || e === 8240 || e === 8241 || e === 8251 || e === 8252 || e === 8258 || e === 8263 || e === 8264 || e === 8265 || e === 8273) || ze["Letterlike Symbols"](e) || ze["Number Forms"](e) || ze["Miscellaneous Technical"](e) && (e >= 8960 && e <= 8967 || e >= 8972 && e <= 8991 || e >= 8996 && e <= 9e3 || e === 9003 || e >= 9085 && e <= 9114 || e >= 9150 && e <= 9165 || e === 9167 || e >= 9169 && e <= 9179 || e >= 9186 && e <= 9215) || ze["Control Pictures"](e) && e !== 9251 || ze["Optical Character Recognition"](e) || ze["Enclosed Alphanumerics"](e) || ze["Geometric Shapes"](e) || ze["Miscellaneous Symbols"](e) && !(e >= 9754 && e <= 9759) || ze["Miscellaneous Symbols and Arrows"](e) && (e >= 11026 && e <= 11055 || e >= 11088 && e <= 11097 || e >= 11192 && e <= 11243) || ze["CJK Symbols and Punctuation"](e) || ze.Katakana(e) || ze["Private Use Area"](e) || ze["CJK Compatibility Forms"](e) || ze["Small Form Variants"](e) || ze["Halfwidth and Fullwidth Forms"](e) || e === 8734 || e === 8756 || e === 8757 || e >= 9984 && e <= 10087 || e >= 10102 && e <= 10131 || e === 65532 || e === 65533);
|
3216
3216
|
}(i));
|
@@ -3218,7 +3218,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3218
3218
|
function en(i) {
|
3219
3219
|
return i >= 1424 && i <= 2303 || ze["Arabic Presentation Forms-A"](i) || ze["Arabic Presentation Forms-B"](i);
|
3220
3220
|
}
|
3221
|
-
function
|
3221
|
+
function ql(i, e) {
|
3222
3222
|
return !(!e && en(i) || i >= 2304 && i <= 3583 || i >= 3840 && i <= 4255 || ze.Khmer(i));
|
3223
3223
|
}
|
3224
3224
|
function La(i) {
|
@@ -3250,11 +3250,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3250
3250
|
}();
|
3251
3251
|
class Et {
|
3252
3252
|
constructor(e, r) {
|
3253
|
-
this.zoom = e, r ? (this.now = r.now, this.fadeDuration = r.fadeDuration, this.zoomHistory = r.zoomHistory, this.transition = r.transition) : (this.now = 0, this.fadeDuration = 0, this.zoomHistory = new
|
3253
|
+
this.zoom = e, r ? (this.now = r.now, this.fadeDuration = r.fadeDuration, this.zoomHistory = r.zoomHistory, this.transition = r.transition) : (this.now = 0, this.fadeDuration = 0, this.zoomHistory = new jl(), this.transition = {});
|
3254
3254
|
}
|
3255
3255
|
isSupportedScript(e) {
|
3256
3256
|
return function(r, s) {
|
3257
|
-
for (const l of r) if (
|
3257
|
+
for (const l of r) if (!ql(l.charCodeAt(0), s)) return !1;
|
3258
3258
|
return !0;
|
3259
3259
|
}(e, tn.getRTLTextPluginStatus() === "loaded");
|
3260
3260
|
}
|
@@ -3269,9 +3269,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3269
3269
|
class wo {
|
3270
3270
|
constructor(e, r) {
|
3271
3271
|
this.property = e, this.value = r, this.expression = function(s, l) {
|
3272
|
-
if (
|
3273
|
-
if (
|
3274
|
-
const d =
|
3272
|
+
if (Ts(s)) return new _o(s, l);
|
3273
|
+
if (Is(s)) {
|
3274
|
+
const d = Ll(s, l);
|
3275
3275
|
if (d.result === "error") throw new Error(d.value.map((p) => `${p.key}: ${p.message}`).join(", "));
|
3276
3276
|
return d.value;
|
3277
3277
|
}
|
@@ -3293,10 +3293,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3293
3293
|
this.property = e, this.value = new wo(e, void 0);
|
3294
3294
|
}
|
3295
3295
|
transitioned(e, r) {
|
3296
|
-
return new
|
3296
|
+
return new Zl(this.property, this.value, r, $t({}, e.transition, this.transition), e.now);
|
3297
3297
|
}
|
3298
3298
|
untransitioned() {
|
3299
|
-
return new
|
3299
|
+
return new Zl(this.property, this.value, null, {}, 0);
|
3300
3300
|
}
|
3301
3301
|
}
|
3302
3302
|
class Zn {
|
@@ -3336,7 +3336,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3336
3336
|
return e;
|
3337
3337
|
}
|
3338
3338
|
}
|
3339
|
-
class
|
3339
|
+
class Zl {
|
3340
3340
|
constructor(e, r, s, l, d) {
|
3341
3341
|
this.property = e, this.value = r, this.begin = d + l.delay || 0, this.end = this.begin + l.duration || 0, e.specification.transition && (l.delay || l.duration) && (this.prior = s);
|
3342
3342
|
}
|
@@ -3373,7 +3373,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3373
3373
|
return !1;
|
3374
3374
|
}
|
3375
3375
|
}
|
3376
|
-
class
|
3376
|
+
class Ds {
|
3377
3377
|
constructor(e) {
|
3378
3378
|
this._properties = e, this._values = Object.create(e.defaultPropertyValues);
|
3379
3379
|
}
|
@@ -3529,7 +3529,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3529
3529
|
const a = "-transition";
|
3530
3530
|
class h extends Dn {
|
3531
3531
|
constructor(e, r) {
|
3532
|
-
if (super(), this.id = e.id, this.type = e.type, this._featureFilter = { filter: () => !0, needGeometry: !1 }, e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter), r.layout && (this._unevaluatedLayout = new
|
3532
|
+
if (super(), this.id = e.id, this.type = e.type, this._featureFilter = { filter: () => !0, needGeometry: !1 }, e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter), r.layout && (this._unevaluatedLayout = new Ds(r.layout)), r.paint)) {
|
3533
3533
|
this._transitionablePaint = new Zn(r.paint);
|
3534
3534
|
for (const s in e.paint) this.setPaintProperty(s, e.paint[s], { validate: !1 });
|
3535
3535
|
for (const s in e.layout) this.setLayoutProperty(s, e.layout[s], { validate: !1 });
|
@@ -3912,7 +3912,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3912
3912
|
}
|
3913
3913
|
}
|
3914
3914
|
Ve.prototype.bytesPerElement = 12, Be("StructArrayLayout1ui2f12", Ve);
|
3915
|
-
class
|
3915
|
+
class tt extends v {
|
3916
3916
|
_refreshViews() {
|
3917
3917
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
3918
3918
|
}
|
@@ -3925,7 +3925,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3925
3925
|
return this.uint32[2 * e + 0] = r, this.uint16[d + 2] = s, this.uint16[d + 3] = l, e;
|
3926
3926
|
}
|
3927
3927
|
}
|
3928
|
-
|
3928
|
+
tt.prototype.bytesPerElement = 8, Be("StructArrayLayout1ul2ui8", tt);
|
3929
3929
|
class Pe extends v {
|
3930
3930
|
_refreshViews() {
|
3931
3931
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
@@ -4219,7 +4219,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4219
4219
|
}
|
4220
4220
|
}
|
4221
4221
|
gi.prototype.size = 8;
|
4222
|
-
class or extends
|
4222
|
+
class or extends tt {
|
4223
4223
|
get(e) {
|
4224
4224
|
return new gi(this, e);
|
4225
4225
|
}
|
@@ -4272,7 +4272,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4272
4272
|
return new ri([{ vertexOffset: e, primitiveOffset: r, vertexLength: s, primitiveLength: l, vaos: {}, sortKey: 0 }]);
|
4273
4273
|
}
|
4274
4274
|
}
|
4275
|
-
function
|
4275
|
+
function Gl(i, e) {
|
4276
4276
|
return 256 * (i = It(Math.floor(i), 0, 255)) + It(Math.floor(e), 0, 255);
|
4277
4277
|
}
|
4278
4278
|
ri.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, Be("SegmentVector", ri);
|
@@ -4291,7 +4291,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4291
4291
|
}
|
4292
4292
|
return l ^= i.length, l = 2246822507 * (65535 & (l ^= l >>> 16)) + ((2246822507 * (l >>> 16) & 65535) << 16) & 4294967295, l = 3266489909 * (65535 & (l ^= l >>> 13)) + ((3266489909 * (l >>> 16) & 65535) << 16) & 4294967295, (l ^= l >>> 16) >>> 0;
|
4293
4293
|
};
|
4294
|
-
var
|
4294
|
+
var Hl = nn.exports, Oa = { exports: {} };
|
4295
4295
|
Oa.exports = function(i, e) {
|
4296
4296
|
for (var r, s = i.length, l = e ^ s, d = 0; s >= 4; ) r = 1540483477 * (65535 & (r = 255 & i.charCodeAt(d) | (255 & i.charCodeAt(++d)) << 8 | (255 & i.charCodeAt(++d)) << 16 | (255 & i.charCodeAt(++d)) << 24)) + ((1540483477 * (r >>> 16) & 65535) << 16), l = 1540483477 * (65535 & l) + ((1540483477 * (l >>> 16) & 65535) << 16) ^ (r = 1540483477 * (65535 & (r ^= r >>> 24)) + ((1540483477 * (r >>> 16) & 65535) << 16)), s -= 4, ++d;
|
4297
4297
|
switch (s) {
|
@@ -4304,7 +4304,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4304
4304
|
}
|
4305
4305
|
return l = 1540483477 * (65535 & (l ^= l >>> 13)) + ((1540483477 * (l >>> 16) & 65535) << 16), (l ^= l >>> 15) >>> 0;
|
4306
4306
|
};
|
4307
|
-
var Va =
|
4307
|
+
var Va = Hl, Na = Oa.exports;
|
4308
4308
|
Ao.exports = Va, Ao.exports.murmur3 = Va, Ao.exports.murmur2 = Na;
|
4309
4309
|
var Co = _e(Ao.exports);
|
4310
4310
|
class Xn {
|
@@ -4351,22 +4351,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4351
4351
|
p--;
|
4352
4352
|
while (i[p] > l);
|
4353
4353
|
if (d >= p) break;
|
4354
|
-
|
4354
|
+
Wl(i, d, p), Wl(e, 3 * d, 3 * p), Wl(e, 3 * d + 1, 3 * p + 1), Wl(e, 3 * d + 2, 3 * p + 2);
|
4355
4355
|
}
|
4356
4356
|
p - r < s - p ? (Xc(i, e, r, p), r = p + 1) : (Xc(i, e, p + 1, s), s = p);
|
4357
4357
|
}
|
4358
4358
|
}
|
4359
|
-
function
|
4359
|
+
function Wl(i, e, r) {
|
4360
4360
|
const s = i[e];
|
4361
4361
|
i[e] = i[r], i[r] = s;
|
4362
4362
|
}
|
4363
4363
|
Be("FeaturePositionMap", Xn);
|
4364
|
-
class
|
4364
|
+
class Ls {
|
4365
4365
|
constructor(e, r) {
|
4366
4366
|
this.gl = e.gl, this.location = r;
|
4367
4367
|
}
|
4368
4368
|
}
|
4369
|
-
class
|
4369
|
+
class Xl extends Ls {
|
4370
4370
|
constructor(e, r) {
|
4371
4371
|
super(e, r), this.current = 0;
|
4372
4372
|
}
|
@@ -4374,7 +4374,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4374
4374
|
this.current !== e && (this.current = e, this.gl.uniform1f(this.location, e));
|
4375
4375
|
}
|
4376
4376
|
}
|
4377
|
-
class iu extends
|
4377
|
+
class iu extends Ls {
|
4378
4378
|
constructor(e, r) {
|
4379
4379
|
super(e, r), this.current = [0, 0, 0, 0];
|
4380
4380
|
}
|
@@ -4382,7 +4382,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4382
4382
|
e[0] === this.current[0] && e[1] === this.current[1] && e[2] === this.current[2] && e[3] === this.current[3] || (this.current = e, this.gl.uniform4f(this.location, e[0], e[1], e[2], e[3]));
|
4383
4383
|
}
|
4384
4384
|
}
|
4385
|
-
class ru extends
|
4385
|
+
class ru extends Ls {
|
4386
4386
|
constructor(e, r) {
|
4387
4387
|
super(e, r), this.current = bt.transparent;
|
4388
4388
|
}
|
@@ -4392,7 +4392,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4392
4392
|
}
|
4393
4393
|
const jp = new Float32Array(16);
|
4394
4394
|
function Jc(i) {
|
4395
|
-
return [
|
4395
|
+
return [Gl(255 * i.r, 255 * i.g), Gl(255 * i.b, 255 * i.a)];
|
4396
4396
|
}
|
4397
4397
|
class ja {
|
4398
4398
|
constructor(e, r, s) {
|
@@ -4402,7 +4402,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4402
4402
|
e.set(s.constantOr(this.value));
|
4403
4403
|
}
|
4404
4404
|
getBinding(e, r, s) {
|
4405
|
-
return this.type === "color" ? new ru(e, r) : new
|
4405
|
+
return this.type === "color" ? new ru(e, r) : new Xl(e, r);
|
4406
4406
|
}
|
4407
4407
|
}
|
4408
4408
|
class ko {
|
@@ -4417,7 +4417,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4417
4417
|
d && e.set(d);
|
4418
4418
|
}
|
4419
4419
|
getBinding(e, r, s) {
|
4420
|
-
return s.substr(0, 9) === "u_pattern" ? new iu(e, r) : new
|
4420
|
+
return s.substr(0, 9) === "u_pattern" ? new iu(e, r) : new Xl(e, r);
|
4421
4421
|
}
|
4422
4422
|
}
|
4423
4423
|
class Pn {
|
@@ -4480,7 +4480,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4480
4480
|
e.set(l);
|
4481
4481
|
}
|
4482
4482
|
getBinding(e, r, s) {
|
4483
|
-
return new
|
4483
|
+
return new Xl(e, r);
|
4484
4484
|
}
|
4485
4485
|
}
|
4486
4486
|
class Jn {
|
@@ -4627,7 +4627,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4627
4627
|
}
|
4628
4628
|
}
|
4629
4629
|
}
|
4630
|
-
class
|
4630
|
+
class Rs {
|
4631
4631
|
constructor(e, r, s = () => !0) {
|
4632
4632
|
this.programConfigurations = {};
|
4633
4633
|
for (const l of e) this.programConfigurations[l.id] = new nu(l, r, s);
|
@@ -4662,9 +4662,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4662
4662
|
}(i);
|
4663
4663
|
return l && l[r] || s[e][r];
|
4664
4664
|
}
|
4665
|
-
Be("ConstantBinder", ja), Be("CrossFadedConstantBinder", ko), Be("SourceExpressionBinder", Pn), Be("CrossFadedCompositeBinder", Jn), Be("CompositeExpressionBinder", Rr), Be("ProgramConfiguration", nu, { omit: ["_buffers"] }), Be("ProgramConfigurationSet",
|
4665
|
+
Be("ConstantBinder", ja), Be("CrossFadedConstantBinder", ko), Be("SourceExpressionBinder", Pn), Be("CrossFadedCompositeBinder", Jn), Be("CompositeExpressionBinder", Rr), Be("ProgramConfiguration", nu, { omit: ["_buffers"] }), Be("ProgramConfigurationSet", Rs);
|
4666
4666
|
const ti = 8192, Kc = Math.pow(2, 14) - 1, ou = -Kc - 1;
|
4667
|
-
function
|
4667
|
+
function Fs(i) {
|
4668
4668
|
const e = ti / i.extent, r = i.loadGeometry();
|
4669
4669
|
for (let s = 0; s < r.length; s++) {
|
4670
4670
|
const l = r[s];
|
@@ -4675,24 +4675,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4675
4675
|
}
|
4676
4676
|
return r;
|
4677
4677
|
}
|
4678
|
-
function
|
4679
|
-
return { type: i.type, id: i.id, properties: i.properties, geometry: e ?
|
4678
|
+
function Bs(i, e) {
|
4679
|
+
return { type: i.type, id: i.id, properties: i.properties, geometry: e ? Fs(i) : [] };
|
4680
4680
|
}
|
4681
|
-
function
|
4681
|
+
function Jl(i, e, r, s, l) {
|
4682
4682
|
i.emplaceBack(2 * e + (s + 1) / 2, 2 * r + (l + 1) / 2);
|
4683
4683
|
}
|
4684
4684
|
class Yc {
|
4685
4685
|
constructor(e) {
|
4686
|
-
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new To(), this.indexArray = new si(), this.segments = new ri(), this.programConfigurations = new
|
4686
|
+
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new To(), this.indexArray = new si(), this.segments = new ri(), this.programConfigurations = new Rs(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
|
4687
4687
|
}
|
4688
4688
|
populate(e, r, s) {
|
4689
4689
|
const l = this.layers[0], d = [];
|
4690
4690
|
let p = null, f = !1;
|
4691
4691
|
l.type === "circle" && (p = l.layout.get("circle-sort-key"), f = !p.isConstant());
|
4692
4692
|
for (const { feature: g, id: x, index: w, sourceLayerIndex: I } of e) {
|
4693
|
-
const C = this.layers[0]._featureFilter.needGeometry, D =
|
4693
|
+
const C = this.layers[0]._featureFilter.needGeometry, D = Bs(g, C);
|
4694
4694
|
if (!this.layers[0]._featureFilter.filter(new Et(this.zoom), D, s)) continue;
|
4695
|
-
const R = f ? p.evaluate(D, {}, s) : void 0, B = { id: x, properties: g.properties, type: g.type, sourceLayerIndex: I, index: w, geometry: C ? D.geometry :
|
4695
|
+
const R = f ? p.evaluate(D, {}, s) : void 0, B = { id: x, properties: g.properties, type: g.type, sourceLayerIndex: I, index: w, geometry: C ? D.geometry : Fs(g), patterns: {}, sortKey: R };
|
4696
4696
|
d.push(B);
|
4697
4697
|
}
|
4698
4698
|
f && d.sort((g, x) => g.sortKey - x.sortKey);
|
@@ -4721,7 +4721,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4721
4721
|
const f = p.x, g = p.y;
|
4722
4722
|
if (f < 0 || f >= ti || g < 0 || g >= ti) continue;
|
4723
4723
|
const x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray, e.sortKey), w = x.vertexLength;
|
4724
|
-
|
4724
|
+
Jl(this.layoutVertexArray, f, g, -1, -1), Jl(this.layoutVertexArray, f, g, 1, -1), Jl(this.layoutVertexArray, f, g, 1, 1), Jl(this.layoutVertexArray, f, g, -1, 1), this.indexArray.emplaceBack(w, w + 1, w + 2), this.indexArray.emplaceBack(w, w + 3, w + 2), x.vertexLength += 4, x.primitiveLength += 2;
|
4725
4725
|
}
|
4726
4726
|
this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, s, {}, l);
|
4727
4727
|
}
|
@@ -4801,10 +4801,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4801
4801
|
const s = e.paint.get(i).value;
|
4802
4802
|
return s.kind === "constant" ? s.value : r.programConfigurations.get(e.id).getMaxValue(i);
|
4803
4803
|
}
|
4804
|
-
function
|
4804
|
+
function Kl(i) {
|
4805
4805
|
return Math.sqrt(i[0] * i[0] + i[1] * i[1]);
|
4806
4806
|
}
|
4807
|
-
function
|
4807
|
+
function Yl(i, e, r, s, l) {
|
4808
4808
|
if (!e[0] && !e[1]) return i;
|
4809
4809
|
const d = le.convert(e)._mult(l);
|
4810
4810
|
r === "viewport" && d._rotate(-s);
|
@@ -4831,7 +4831,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4831
4831
|
return Math.sqrt(i);
|
4832
4832
|
});
|
4833
4833
|
var $a, Wp = pu;
|
4834
|
-
function
|
4834
|
+
function Ql(i, e, r) {
|
4835
4835
|
var s = e[0], l = e[1], d = e[2], p = e[3];
|
4836
4836
|
return i[0] = r[0] * s + r[4] * l + r[8] * d + r[12] * p, i[1] = r[1] * s + r[5] * l + r[9] * d + r[13] * p, i[2] = r[2] * s + r[6] * l + r[10] * d + r[14] * p, i[3] = r[3] * s + r[7] * l + r[11] * d + r[15] * p, i;
|
4837
4837
|
}
|
@@ -4845,23 +4845,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4845
4845
|
}
|
4846
4846
|
queryRadius(e) {
|
4847
4847
|
const r = e;
|
4848
|
-
return Ua("circle-radius", this, r) + Ua("circle-stroke-width", this, r) +
|
4848
|
+
return Ua("circle-radius", this, r) + Ua("circle-stroke-width", this, r) + Kl(this.paint.get("circle-translate"));
|
4849
4849
|
}
|
4850
4850
|
queryIntersectsFeature(e, r, s, l, d, p, f, g) {
|
4851
|
-
const x =
|
4851
|
+
const x = Yl(e, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), p.angle, f), w = this.paint.get("circle-radius").evaluate(r, s) + this.paint.get("circle-stroke-width").evaluate(r, s), I = this.paint.get("circle-pitch-alignment") === "map", C = I ? x : function(R, B) {
|
4852
4852
|
return R.map(($) => fu($, B));
|
4853
4853
|
}(x, g), D = I ? w * f : w;
|
4854
4854
|
for (const R of l) for (const B of R) {
|
4855
4855
|
const $ = I ? B : fu(B, g);
|
4856
4856
|
let W = D;
|
4857
|
-
const se =
|
4857
|
+
const se = Ql([], [B.x, B.y, 0, 1], g);
|
4858
4858
|
if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]), $p(C, $, W)) return !0;
|
4859
4859
|
}
|
4860
4860
|
return !1;
|
4861
4861
|
}
|
4862
4862
|
}
|
4863
4863
|
function fu(i, e) {
|
4864
|
-
const r =
|
4864
|
+
const r = Ql([], [i.x, i.y, 0, 1], e);
|
4865
4865
|
return new le(r[0] / r[3], r[1] / r[3]);
|
4866
4866
|
}
|
4867
4867
|
class mu extends Yc {
|
@@ -5015,14 +5015,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5015
5015
|
return w;
|
5016
5016
|
}(i, e, r, s) > 0) for (let p = e; p < r; p += s) d = Tu(p / s | 0, i[p], i[p + 1], d);
|
5017
5017
|
else for (let p = r - s; p >= e; p -= s) d = Tu(p / s | 0, i[p], i[p + 1], d);
|
5018
|
-
return d &&
|
5018
|
+
return d && ec(d, d.next) && (Ha(d), d = d.next), d;
|
5019
5019
|
}
|
5020
|
-
function
|
5020
|
+
function Os(i, e) {
|
5021
5021
|
if (!i) return i;
|
5022
5022
|
e || (e = i);
|
5023
5023
|
let r, s = i;
|
5024
5024
|
do
|
5025
|
-
if (r = !1, s.steiner || !
|
5025
|
+
if (r = !1, s.steiner || !ec(s, s.next) && Yt(s.prev, s, s.next) !== 0) s = s.next;
|
5026
5026
|
else {
|
5027
5027
|
if (Ha(s), s = e = s.prev, s === s.next) break;
|
5028
5028
|
r = !0;
|
@@ -5060,7 +5060,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5060
5060
|
const g = i.prev, x = i.next;
|
5061
5061
|
if (d ? nf(i, s, l, d) : rf(i)) e.push(g.i, i.i, x.i), Ha(i), i = x.next, f = x.next;
|
5062
5062
|
else if ((i = x) === f) {
|
5063
|
-
p ? p === 1 ? Za(i = sf(
|
5063
|
+
p ? p === 1 ? Za(i = sf(Os(i), e), e, r, s, l, d, 2) : p === 2 && of(i, e, r, s, l, d) : Za(Os(i), e, r, s, l, d, 1);
|
5064
5064
|
break;
|
5065
5065
|
}
|
5066
5066
|
}
|
@@ -5099,9 +5099,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5099
5099
|
let r = i;
|
5100
5100
|
do {
|
5101
5101
|
const s = r.prev, l = r.next.next;
|
5102
|
-
!
|
5102
|
+
!ec(s, l) && wu(s, r, r.next, l) && Ga(s, l) && Ga(l, s) && (e.push(s.i, r.i, l.i), Ha(r), Ha(r.next), r = i = l), r = r.next;
|
5103
5103
|
} while (r !== i);
|
5104
|
-
return
|
5104
|
+
return Os(r);
|
5105
5105
|
}
|
5106
5106
|
function of(i, e, r, s, l, d) {
|
5107
5107
|
let p = i;
|
@@ -5110,7 +5110,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5110
5110
|
for (; f !== p.prev; ) {
|
5111
5111
|
if (p.i !== f.i && uf(p, f)) {
|
5112
5112
|
let g = Su(p, f);
|
5113
|
-
return p =
|
5113
|
+
return p = Os(p, p.next), g = Os(g, g.next), Za(p, e, r, s, l, d, 0), void Za(g, e, r, s, l, d, 0);
|
5114
5114
|
}
|
5115
5115
|
f = f.next;
|
5116
5116
|
}
|
@@ -5147,7 +5147,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5147
5147
|
}(i, e);
|
5148
5148
|
if (!r) return e;
|
5149
5149
|
const s = Su(r, i);
|
5150
|
-
return
|
5150
|
+
return Os(s, s.next), Os(r, r.next);
|
5151
5151
|
}
|
5152
5152
|
function cf(i, e) {
|
5153
5153
|
return Yt(i.prev, i, e.prev) < 0 && Yt(e.next, i, i.next) < 0;
|
@@ -5180,22 +5180,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5180
5180
|
l.y > f != l.next.y > f && l.next.y !== l.y && p < (l.next.x - l.x) * (f - l.y) / (l.next.y - l.y) + l.x && (d = !d), l = l.next;
|
5181
5181
|
while (l !== r);
|
5182
5182
|
return d;
|
5183
|
-
}(i, e) && (Yt(i.prev, i, e.prev) || Yt(i, e.prev, e)) ||
|
5183
|
+
}(i, e) && (Yt(i.prev, i, e.prev) || Yt(i, e.prev, e)) || ec(i, e) && Yt(i.prev, i, i.next) > 0 && Yt(e.prev, e, e.next) > 0);
|
5184
5184
|
}
|
5185
5185
|
function Yt(i, e, r) {
|
5186
5186
|
return (e.y - i.y) * (r.x - e.x) - (e.x - i.x) * (r.y - e.y);
|
5187
5187
|
}
|
5188
|
-
function
|
5188
|
+
function ec(i, e) {
|
5189
5189
|
return i.x === e.x && i.y === e.y;
|
5190
5190
|
}
|
5191
5191
|
function wu(i, e, r, s) {
|
5192
|
-
const l =
|
5193
|
-
return l !== d && p !== f || !(l !== 0 || !
|
5192
|
+
const l = ic(Yt(i, e, r)), d = ic(Yt(i, e, s)), p = ic(Yt(r, s, i)), f = ic(Yt(r, s, e));
|
5193
|
+
return l !== d && p !== f || !(l !== 0 || !tc(i, r, e)) || !(d !== 0 || !tc(i, s, e)) || !(p !== 0 || !tc(r, i, s)) || !(f !== 0 || !tc(r, e, s));
|
5194
5194
|
}
|
5195
|
-
function
|
5195
|
+
function tc(i, e, r) {
|
5196
5196
|
return e.x <= Math.max(i.x, r.x) && e.x >= Math.min(i.x, r.x) && e.y <= Math.max(i.y, r.y) && e.y >= Math.min(i.y, r.y);
|
5197
5197
|
}
|
5198
|
-
function
|
5198
|
+
function ic(i) {
|
5199
5199
|
return i > 0 ? 1 : i < 0 ? -1 : 0;
|
5200
5200
|
}
|
5201
5201
|
function Ga(i, e) {
|
@@ -5239,15 +5239,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5239
5239
|
}
|
5240
5240
|
class lh {
|
5241
5241
|
constructor(e) {
|
5242
|
-
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Gn(), this.indexArray = new si(), this.indexArray2 = new jt(), this.programConfigurations = new
|
5242
|
+
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Gn(), this.indexArray = new si(), this.indexArray2 = new jt(), this.programConfigurations = new Rs(e.layers, e.zoom), this.segments = new ri(), this.segments2 = new ri(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
|
5243
5243
|
}
|
5244
5244
|
populate(e, r, s) {
|
5245
5245
|
this.hasPattern = oh("fill", this.layers, r);
|
5246
5246
|
const l = this.layers[0].layout.get("fill-sort-key"), d = !l.isConstant(), p = [];
|
5247
5247
|
for (const { feature: f, id: g, index: x, sourceLayerIndex: w } of e) {
|
5248
|
-
const I = this.layers[0]._featureFilter.needGeometry, C =
|
5248
|
+
const I = this.layers[0]._featureFilter.needGeometry, C = Bs(f, I);
|
5249
5249
|
if (!this.layers[0]._featureFilter.filter(new Et(this.zoom), C, s)) continue;
|
5250
|
-
const D = d ? l.evaluate(C, {}, s, r.availableImages) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry :
|
5250
|
+
const D = d ? l.evaluate(C, {}, s, r.availableImages) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry : Fs(f), patterns: {}, sortKey: D };
|
5251
5251
|
p.push(R);
|
5252
5252
|
}
|
5253
5253
|
d && p.sort((f, g) => f.sortKey - g.sortKey);
|
@@ -5318,10 +5318,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5318
5318
|
return new lh(e);
|
5319
5319
|
}
|
5320
5320
|
queryRadius() {
|
5321
|
-
return
|
5321
|
+
return Kl(this.paint.get("fill-translate"));
|
5322
5322
|
}
|
5323
5323
|
queryIntersectsFeature(e, r, s, l, d, p, f) {
|
5324
|
-
return lu(
|
5324
|
+
return lu(Yl(e, this.paint.get("fill-translate"), this.paint.get("fill-translate-anchor"), p.angle, f), l);
|
5325
5325
|
}
|
5326
5326
|
isTileClipped() {
|
5327
5327
|
return !0;
|
@@ -5438,14 +5438,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5438
5438
|
}
|
5439
5439
|
class hh {
|
5440
5440
|
constructor(e) {
|
5441
|
-
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new In(), this.centroidVertexArray = new Tn(), this.indexArray = new si(), this.programConfigurations = new
|
5441
|
+
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new In(), this.centroidVertexArray = new Tn(), this.indexArray = new si(), this.programConfigurations = new Rs(e.layers, e.zoom), this.segments = new ri(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
|
5442
5442
|
}
|
5443
5443
|
populate(e, r, s) {
|
5444
5444
|
this.features = [], this.hasPattern = oh("fill-extrusion", this.layers, r);
|
5445
5445
|
for (const { feature: l, id: d, index: p, sourceLayerIndex: f } of e) {
|
5446
|
-
const g = this.layers[0]._featureFilter.needGeometry, x =
|
5446
|
+
const g = this.layers[0]._featureFilter.needGeometry, x = Bs(l, g);
|
5447
5447
|
if (!this.layers[0]._featureFilter.filter(new Et(this.zoom), x, s)) continue;
|
5448
|
-
const w = { id: d, sourceLayerIndex: f, index: p, geometry: g ? x.geometry :
|
5448
|
+
const w = { id: d, sourceLayerIndex: f, index: p, geometry: g ? x.geometry : Fs(l), properties: l.properties, type: l.type, patterns: {} };
|
5449
5449
|
this.hasPattern ? this.features.push(ah("fill-extrusion", this.layers, w, this.zoom, r)) : this.addFeature(w, w.geometry, p, s, {}), r.featureIndex.insert(l, w.geometry, p, f, this.index, !0);
|
5450
5450
|
}
|
5451
5451
|
}
|
@@ -5532,17 +5532,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5532
5532
|
return new hh(e);
|
5533
5533
|
}
|
5534
5534
|
queryRadius() {
|
5535
|
-
return
|
5535
|
+
return Kl(this.paint.get("fill-extrusion-translate"));
|
5536
5536
|
}
|
5537
5537
|
is3D() {
|
5538
5538
|
return !0;
|
5539
5539
|
}
|
5540
5540
|
queryIntersectsFeature(e, r, s, l, d, p, f, g) {
|
5541
|
-
const x =
|
5541
|
+
const x = Yl(e, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), p.angle, f), w = this.paint.get("fill-extrusion-height").evaluate(r, s), I = this.paint.get("fill-extrusion-base").evaluate(r, s), C = function(R, B, $, W) {
|
5542
5542
|
const se = [];
|
5543
5543
|
for (const Y of R) {
|
5544
5544
|
const ie = [Y.x, Y.y, 0, 1];
|
5545
|
-
|
5545
|
+
Ql(ie, ie, B), se.push(new le(ie[0] / ie[3], ie[1] / ie[3]));
|
5546
5546
|
}
|
5547
5547
|
return se;
|
5548
5548
|
}(x, g), D = function(R, B, $, W) {
|
@@ -5599,15 +5599,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5599
5599
|
constructor(e) {
|
5600
5600
|
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
|
5601
5601
|
this.gradients[r.id] = {};
|
5602
|
-
}), this.layoutVertexArray = new Io(), this.layoutVertexArray2 = new Fa(), this.indexArray = new si(), this.programConfigurations = new
|
5602
|
+
}), this.layoutVertexArray = new Io(), this.layoutVertexArray2 = new Fa(), this.indexArray = new si(), this.programConfigurations = new Rs(e.layers, e.zoom), this.segments = new ri(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
|
5603
5603
|
}
|
5604
5604
|
populate(e, r, s) {
|
5605
5605
|
this.hasPattern = oh("line", this.layers, r);
|
5606
5606
|
const l = this.layers[0].layout.get("line-sort-key"), d = !l.isConstant(), p = [];
|
5607
5607
|
for (const { feature: f, id: g, index: x, sourceLayerIndex: w } of e) {
|
5608
|
-
const I = this.layers[0]._featureFilter.needGeometry, C =
|
5608
|
+
const I = this.layers[0]._featureFilter.needGeometry, C = Bs(f, I);
|
5609
5609
|
if (!this.layers[0]._featureFilter.filter(new Et(this.zoom), C, s)) continue;
|
5610
|
-
const D = d ? l.evaluate(C, {}, s) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry :
|
5610
|
+
const D = d ? l.evaluate(C, {}, s) : void 0, R = { id: g, properties: f.properties, type: f.type, sourceLayerIndex: w, index: x, geometry: I ? C.geometry : Fs(f), patterns: {}, sortKey: D };
|
5611
5611
|
p.push(R);
|
5612
5612
|
}
|
5613
5613
|
d && p.sort((f, g) => f.sortKey - g.sortKey);
|
@@ -5747,10 +5747,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5747
5747
|
return r = $t({}, r, { zoom: Math.floor(r.zoom) }), super.evaluate(e, r, s, l);
|
5748
5748
|
}
|
5749
5749
|
}
|
5750
|
-
let
|
5750
|
+
let rc;
|
5751
5751
|
class Ff extends h {
|
5752
5752
|
constructor(e) {
|
5753
|
-
super(e, Ru), this.gradientVersion = 0,
|
5753
|
+
super(e, Ru), this.gradientVersion = 0, rc || (rc = new Rf(Ru.paint.properties["line-width"].specification), rc.useIntegerZoom = !0);
|
5754
5754
|
}
|
5755
5755
|
_handleSpecialPaintPropertyUpdate(e) {
|
5756
5756
|
if (e === "line-gradient") {
|
@@ -5764,17 +5764,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5764
5764
|
return this._transitionablePaint._values["line-gradient"].value.expression;
|
5765
5765
|
}
|
5766
5766
|
recalculate(e, r) {
|
5767
|
-
super.recalculate(e, r), this.paint._values["line-floorwidth"] =
|
5767
|
+
super.recalculate(e, r), this.paint._values["line-floorwidth"] = rc.possiblyEvaluate(this._transitioningPaint._values["line-width"].value, e);
|
5768
5768
|
}
|
5769
5769
|
createBucket(e) {
|
5770
5770
|
return new uh(e);
|
5771
5771
|
}
|
5772
5772
|
queryRadius(e) {
|
5773
5773
|
const r = e, s = Fu(Ua("line-width", this, r), Ua("line-gap-width", this, r)), l = Ua("line-offset", this, r);
|
5774
|
-
return s / 2 + Math.abs(l) +
|
5774
|
+
return s / 2 + Math.abs(l) + Kl(this.paint.get("line-translate"));
|
5775
5775
|
}
|
5776
5776
|
queryIntersectsFeature(e, r, s, l, d, p, f) {
|
5777
|
-
const g =
|
5777
|
+
const g = Yl(e, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), p.angle, f), x = f / 2 * Fu(this.paint.get("line-width").evaluate(r, s), this.paint.get("line-gap-width").evaluate(r, s)), w = this.paint.get("line-offset").evaluate(r, s);
|
5778
5778
|
return w && (l = function(I, C) {
|
5779
5779
|
const D = [];
|
5780
5780
|
for (let R = 0; R < I.length; R++) {
|
@@ -5878,7 +5878,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5878
5878
|
function Jf(i, e) {
|
5879
5879
|
for (var r = 0; r < i.length; r++) e.writeSFixed64(i[r]);
|
5880
5880
|
}
|
5881
|
-
function
|
5881
|
+
function nc(i, e) {
|
5882
5882
|
return (i[e] | i[e + 1] << 8 | i[e + 2] << 16) + 16777216 * i[e + 3];
|
5883
5883
|
}
|
5884
5884
|
function Ro(i, e, r) {
|
@@ -5898,16 +5898,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5898
5898
|
}, readMessage: function(i, e) {
|
5899
5899
|
return this.readFields(i, e, this.readVarint() + this.pos);
|
5900
5900
|
}, readFixed32: function() {
|
5901
|
-
var i =
|
5901
|
+
var i = nc(this.buf, this.pos);
|
5902
5902
|
return this.pos += 4, i;
|
5903
5903
|
}, readSFixed32: function() {
|
5904
5904
|
var i = qu(this.buf, this.pos);
|
5905
5905
|
return this.pos += 4, i;
|
5906
5906
|
}, readFixed64: function() {
|
5907
|
-
var i =
|
5907
|
+
var i = nc(this.buf, this.pos) + nc(this.buf, this.pos + 4) * dh;
|
5908
5908
|
return this.pos += 8, i;
|
5909
5909
|
}, readSFixed64: function() {
|
5910
|
-
var i =
|
5910
|
+
var i = nc(this.buf, this.pos) + qu(this.buf, this.pos + 4) * dh;
|
5911
5911
|
return this.pos += 8, i;
|
5912
5912
|
}, readFloat: function() {
|
5913
5913
|
var i = Vu(this.buf, this.pos, !0, 23, 4);
|
@@ -6240,16 +6240,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6240
6240
|
let r = "";
|
6241
6241
|
for (let s = 0; s < e.length; s++) {
|
6242
6242
|
const l = e.charCodeAt(s + 1) || null, d = e.charCodeAt(s - 1) || null;
|
6243
|
-
r += l &&
|
6243
|
+
r += l && $l(l) && !Ja[e[s + 1]] || d && $l(d) && !Ja[e[s - 1]] || !Ja[e[s]] ? e[s] : Ja[e[s]];
|
6244
6244
|
}
|
6245
6245
|
return r;
|
6246
6246
|
}(this.text);
|
6247
6247
|
}
|
6248
6248
|
trim() {
|
6249
6249
|
let e = 0;
|
6250
|
-
for (let s = 0; s < this.text.length &&
|
6250
|
+
for (let s = 0; s < this.text.length && oc[this.text.charCodeAt(s)]; s++) e++;
|
6251
6251
|
let r = this.text.length;
|
6252
|
-
for (let s = this.text.length - 1; s >= 0 && s >= e &&
|
6252
|
+
for (let s = this.text.length - 1; s >= 0 && s >= e && oc[this.text.charCodeAt(s)]; s--) r--;
|
6253
6253
|
this.text = this.text.substring(e, r), this.sectionIndex = this.sectionIndex.slice(e, r);
|
6254
6254
|
}
|
6255
6255
|
substring(e, r) {
|
@@ -6277,7 +6277,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6277
6277
|
return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
|
6278
6278
|
}
|
6279
6279
|
}
|
6280
|
-
function
|
6280
|
+
function sc(i, e, r, s, l, d, p, f, g, x, w, I, C, D, R) {
|
6281
6281
|
const B = Fo.fromFeature(i, l);
|
6282
6282
|
let $;
|
6283
6283
|
I === T.ai.vertical && B.verticalizePunctuation();
|
@@ -6322,7 +6322,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6322
6322
|
for (let Hi = 0; Hi < Xt.length(); Hi++) {
|
6323
6323
|
const mt = Xt.getSection(Hi), Mt = Xt.getSectionIndex(Hi), Bt = Xt.getCharCode(Hi);
|
6324
6324
|
let Yi = 0, Gt = null, No = null, on = null, an = ni;
|
6325
|
-
const Ir = !(Fe === T.ai.horizontal || !qe && !Da(Bt) || qe && (
|
6325
|
+
const Ir = !(Fe === T.ai.horizontal || !qe && !Da(Bt) || qe && (oc[Bt] || (Wt = Bt, ze.Arabic(Wt) || ze["Arabic Supplement"](Wt) || ze["Arabic Extended-A"](Wt) || ze["Arabic Presentation Forms-A"](Wt) || ze["Arabic Presentation Forms-B"](Wt))));
|
6326
6326
|
if (mt.imageName) {
|
6327
6327
|
const ur = We[mt.imageName];
|
6328
6328
|
if (!ur) continue;
|
@@ -6360,7 +6360,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6360
6360
|
return !0;
|
6361
6361
|
}(Y) && ie;
|
6362
6362
|
}
|
6363
|
-
const
|
6363
|
+
const oc = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 }, em = { 10: !0, 32: !0, 38: !0, 41: !0, 43: !0, 45: !0, 47: !0, 173: !0, 183: !0, 8203: !0, 8208: !0, 8211: !0, 8231: !0 }, tm = { 40: !0 };
|
6364
6364
|
function Wu(i, e, r, s, l, d) {
|
6365
6365
|
if (e.imageName) {
|
6366
6366
|
const p = s[e.imageName];
|
@@ -6403,7 +6403,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6403
6403
|
let x = 0;
|
6404
6404
|
for (let I = 0; I < i.length(); I++) {
|
6405
6405
|
const C = i.getSection(I), D = i.getCharCode(I);
|
6406
|
-
if (
|
6406
|
+
if (oc[D] || (x += Wu(D, C, s, l, e, d)), I < i.length() - 1) {
|
6407
6407
|
const R = !((w = D) < 11904 || !(ze["Bopomofo Extended"](w) || ze.Bopomofo(w) || ze["CJK Compatibility Forms"](w) || ze["CJK Compatibility Ideographs"](w) || ze["CJK Compatibility"](w) || ze["CJK Radicals Supplement"](w) || ze["CJK Strokes"](w) || ze["CJK Symbols and Punctuation"](w) || ze["CJK Unified Ideographs Extension A"](w) || ze["CJK Unified Ideographs"](w) || ze["Enclosed CJK Letters and Months"](w) || ze["Halfwidth and Fullwidth Forms"](w) || ze.Hiragana(w) || ze["Ideographic Description Characters"](w) || ze["Kangxi Radicals"](w) || ze["Katakana Phonetic Extensions"](w) || ze.Katakana(w) || ze["Vertical Forms"](w) || ze["Yi Radicals"](w) || ze["Yi Syllables"](w)));
|
6408
6408
|
(em[D] || R || C.imageName || I !== i.length() - 2 && tm[i.getCharCode(I + 1)]) && p.push(Ju(I + 1, x, f, p, im(D, i.getCharCode(I + 1), R && g), !1));
|
6409
6409
|
}
|
@@ -6497,7 +6497,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6497
6497
|
return l ? s = l : i.get(r) && (s = "always"), s;
|
6498
6498
|
}
|
6499
6499
|
const sm = Kn.VectorTileFeature.types, om = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
|
6500
|
-
function
|
6500
|
+
function ac(i, e, r, s, l, d, p, f, g, x, w, I, C) {
|
6501
6501
|
const D = f ? Math.min(Qn, Math.round(f[0])) : 0, R = f ? Math.min(Qn, Math.round(f[1])) : 0;
|
6502
6502
|
i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (D << 1) + (g ? 1 : 0), R, 16 * x, 16 * w, 256 * I, 256 * C);
|
6503
6503
|
}
|
@@ -6544,7 +6544,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6544
6544
|
this.canOverlap = yh(s, "text-overlap", "text-allow-overlap") !== "never" || yh(s, "icon-overlap", "icon-allow-overlap") !== "never" || s.get("text-ignore-placement") || s.get("icon-ignore-placement"), this.sortFeaturesByKey = d !== "viewport-y" && !l.isConstant(), this.sortFeaturesByY = (d === "viewport-y" || d === "auto" && !this.sortFeaturesByKey) && this.canOverlap, s.get("symbol-placement") === "point" && (this.writingModes = s.get("text-writing-mode").map((p) => T.ai[p])), this.stateDependentLayerIds = this.layers.filter((p) => p.isStateDependent()).map((p) => p.id), this.sourceID = e.sourceID;
|
6545
6545
|
}
|
6546
6546
|
createArrays() {
|
6547
|
-
this.text = new vh(new
|
6547
|
+
this.text = new vh(new Rs(this.layers, this.zoom, (e) => /^text/.test(e))), this.icon = new vh(new Rs(this.layers, this.zoom, (e) => /^icon/.test(e))), this.glyphOffsetArray = new Ft(), this.lineVertexArray = new Di(), this.symbolInstances = new sr(), this.textAnchorOffsets = new mi();
|
6548
6548
|
}
|
6549
6549
|
calculateGlyphDependencies(e, r, s, l, d) {
|
6550
6550
|
for (let p = 0; p < e.length; p++) if (r[e.charCodeAt(p)] = !0, (s || l) && d) {
|
@@ -6557,10 +6557,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6557
6557
|
if (this.features = [], !x && !w) return;
|
6558
6558
|
const C = r.iconDependencies, D = r.glyphDependencies, R = r.availableImages, B = new Et(this.zoom);
|
6559
6559
|
for (const { feature: $, id: W, index: se, sourceLayerIndex: Y } of e) {
|
6560
|
-
const ie = l._featureFilter.needGeometry, ue =
|
6560
|
+
const ie = l._featureFilter.needGeometry, ue = Bs($, ie);
|
6561
6561
|
if (!l._featureFilter.filter(B, ue, s)) continue;
|
6562
6562
|
let xe, Le;
|
6563
|
-
if (ie || (ue.geometry =
|
6563
|
+
if (ie || (ue.geometry = Fs($)), x) {
|
6564
6564
|
const Me = l.getValueAndResolveTokens("text-field", ue, s, R), Ce = Ni.factory(Me), Ue = this.hasRTLText = this.hasRTLText || am(Ce);
|
6565
6565
|
(!Ue || tn.getRTLTextPluginStatus() === "unavailable" || Ue && tn.isParsed()) && (xe = jf(Ce, l, ue));
|
6566
6566
|
}
|
@@ -6649,7 +6649,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6649
6649
|
const D = e.indexArray, R = e.layoutVertexArray, B = e.segments.prepareSegment(4 * r.length, R, D, this.canOverlap ? p.sortKey : void 0), $ = this.glyphOffsetArray.length, W = B.vertexLength, se = this.allowVerticalPlacement && f === T.ai.vertical ? Math.PI / 2 : 0, Y = p.text && p.text.sections;
|
6650
6650
|
for (let ie = 0; ie < r.length; ie++) {
|
6651
6651
|
const { tl: ue, tr: xe, bl: Le, br: We, tex: Me, pixelOffsetTL: Ce, pixelOffsetBR: Ue, minFontScaleX: Oe, minFontScaleY: Fe, glyphOffset: fe, isSDF: qe, sectionIndex: je } = r[ie], Ye = B.vertexLength, Pt = fe[1];
|
6652
|
-
|
6652
|
+
ac(R, g.x, g.y, ue.x, Pt + ue.y, Me.x, Me.y, s, qe, Ce.x, Ce.y, Oe, Fe), ac(R, g.x, g.y, xe.x, Pt + xe.y, Me.x + Me.w, Me.y, s, qe, Ue.x, Ce.y, Oe, Fe), ac(R, g.x, g.y, Le.x, Pt + Le.y, Me.x, Me.y + Me.h, s, qe, Ce.x, Ue.y, Oe, Fe), ac(R, g.x, g.y, We.x, Pt + We.y, Me.x + Me.w, Me.y + Me.h, s, qe, Ue.x, Ue.y, Oe, Fe), xh(e.dynamicLayoutVertexArray, g, se), D.emplaceBack(Ye, Ye + 1, Ye + 2), D.emplaceBack(Ye + 1, Ye + 2, Ye + 3), B.vertexLength += 4, B.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(fe[0]), ie !== r.length - 1 && je === r[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(R.length, p, p.index, {}, C, Y && Y[je]);
|
6653
6653
|
}
|
6654
6654
|
e.placedSymbolArray.emplaceBack(g.x, g.y, $, this.glyphOffsetArray.length - $, W, x, w, g.segment, s ? s[0] : 0, s ? s[1] : 0, l[0], l[1], f, 0, !1, 0, I);
|
6655
6655
|
}
|
@@ -6782,7 +6782,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6782
6782
|
}
|
6783
6783
|
}
|
6784
6784
|
Be("FormatSectionOverride", rd, { omit: ["defaultValue"] });
|
6785
|
-
class
|
6785
|
+
class lc extends h {
|
6786
6786
|
constructor(e) {
|
6787
6787
|
super(e, wh);
|
6788
6788
|
}
|
@@ -6799,7 +6799,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6799
6799
|
}
|
6800
6800
|
getValueAndResolveTokens(e, r, s, l) {
|
6801
6801
|
const d = this.layout.get(e).evaluate(r, {}, s, l), p = this._unevaluatedLayout._values[e];
|
6802
|
-
return p.isDataDriven() ||
|
6802
|
+
return p.isDataDriven() || Is(p.value) || !d ? d : function(f, g) {
|
6803
6803
|
return g.replace(/{([^{}]+)}/g, (x, w) => f && w in f ? String(f[w]) : "");
|
6804
6804
|
}(r.properties, d);
|
6805
6805
|
}
|
@@ -6814,14 +6814,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6814
6814
|
}
|
6815
6815
|
_setPaintOverrides() {
|
6816
6816
|
for (const e of wh.paint.overridableProperties) {
|
6817
|
-
if (!
|
6817
|
+
if (!lc.hasPaintOverride(this.layout, e)) continue;
|
6818
6818
|
const r = this.paint.get(e), s = new rd(r), l = new go(s, r.property.specification);
|
6819
6819
|
let d = null;
|
6820
6820
|
d = r.value.kind === "constant" || r.value.kind === "source" ? new ua("source", l) : new da("composite", l, r.value.zoomStops), this.paint._values[e] = new Sr(r.property, d, r.parameters);
|
6821
6821
|
}
|
6822
6822
|
}
|
6823
6823
|
_handleOverridablePaintPropertyUpdate(e, r, s) {
|
6824
|
-
return !(!this.layout || r.isDataDriven() || s.isDataDriven()) &&
|
6824
|
+
return !(!this.layout || r.isDataDriven() || s.isDataDriven()) && lc.hasPaintOverride(this.layout, e);
|
6825
6825
|
}
|
6826
6826
|
static hasPaintOverride(e, r) {
|
6827
6827
|
const s = e.get("text-field"), l = wh.paint.properties[r];
|
@@ -6940,13 +6940,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6940
6940
|
function Th(i) {
|
6941
6941
|
return 360 / Math.PI * Math.atan(Math.exp((180 - 360 * i) * Math.PI / 180)) - 90;
|
6942
6942
|
}
|
6943
|
-
class
|
6943
|
+
class cc {
|
6944
6944
|
constructor(e, r, s = 0) {
|
6945
6945
|
this.x = +e, this.y = +r, this.z = +s;
|
6946
6946
|
}
|
6947
6947
|
static fromLngLat(e, r = 0) {
|
6948
6948
|
const s = es.convert(e);
|
6949
|
-
return new
|
6949
|
+
return new cc(ld(s.lng), cd(s.lat), hd(r, s.lat));
|
6950
6950
|
}
|
6951
6951
|
toLngLat() {
|
6952
6952
|
return new es(360 * this.x - 180, Th(this.y));
|
@@ -7048,7 +7048,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7048
7048
|
return `${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`;
|
7049
7049
|
}
|
7050
7050
|
getTilePoint(e) {
|
7051
|
-
return this.canonical.getTilePoint(new
|
7051
|
+
return this.canonical.getTilePoint(new cc(e.x - this.wrap, e.y));
|
7052
7052
|
}
|
7053
7053
|
}
|
7054
7054
|
function el(i, e, r, s, l) {
|
@@ -7192,7 +7192,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7192
7192
|
B = W;
|
7193
7193
|
const se = this.featureIndexArray.get(W);
|
7194
7194
|
let Y = null;
|
7195
|
-
this.loadMatchingFeature(R, se.bucketIndex, se.sourceLayerIndex, se.featureIndex, f, d.layers, d.availableImages, r, s, l, (ie, ue, xe) => (Y || (Y =
|
7195
|
+
this.loadMatchingFeature(R, se.bucketIndex, se.sourceLayerIndex, se.featureIndex, f, d.layers, d.availableImages, r, s, l, (ie, ue, xe) => (Y || (Y = Fs(ie)), ue.queryIntersectsFeature(g, ie, xe, Y, this.z, e.transform, p, e.pixelPosMatrix)));
|
7196
7196
|
}
|
7197
7197
|
return R;
|
7198
7198
|
}
|
@@ -7204,7 +7204,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7204
7204
|
}(p, C)) return;
|
7205
7205
|
const D = this.sourceLayerCoder.decode(s), R = this.vtLayers[D].feature(l);
|
7206
7206
|
if (d.needGeometry) {
|
7207
|
-
const $ =
|
7207
|
+
const $ = Bs(R, !0);
|
7208
7208
|
if (!d.filter(new Et(this.tileID.overscaledZ), $, this.tileID.canonical)) return;
|
7209
7209
|
} else if (!d.filter(new Et(this.tileID.overscaledZ), R)) return;
|
7210
7210
|
const B = this.getId(R, D);
|
@@ -7350,10 +7350,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7350
7350
|
let W = 0, se = D, Y = 0, ie = R, ue = 0, xe = B, Le = 0, We = $;
|
7351
7351
|
if (d.content && s) {
|
7352
7352
|
const fe = d.content, qe = fe[2] - fe[0], je = fe[3] - fe[1];
|
7353
|
-
(d.textFitWidth || d.textFitHeight) && (x = Yu(i)), W =
|
7353
|
+
(d.textFitWidth || d.textFitHeight) && (x = Yu(i)), W = hc(w, 0, fe[0]), Y = hc(I, 0, fe[1]), se = hc(w, fe[0], fe[2]), ie = hc(I, fe[1], fe[3]), ue = fe[0] - W, Le = fe[1] - Y, xe = qe - se, We = je - ie;
|
7354
7354
|
}
|
7355
7355
|
const Me = x.x1, Ce = x.y1, Ue = x.x2 - Me, Oe = x.y2 - Ce, Fe = (fe, qe, je, Ye) => {
|
7356
|
-
const Pt =
|
7356
|
+
const Pt = uc(fe.stretch - W, se, Ue, Me), Tt = dc(fe.fixed - ue, xe, fe.stretch, D), oi = uc(qe.stretch - Y, ie, Oe, Ce), Tr = dc(qe.fixed - Le, We, qe.stretch, R), vi = uc(je.stretch - W, se, Ue, Me), Wt = dc(je.fixed - ue, xe, je.stretch, D), Ri = uc(Ye.stretch - Y, ie, Oe, Ce), Fi = dc(Ye.fixed - Le, We, Ye.stretch, R), Bi = new le(Pt, oi), Xt = new le(vi, oi), ai = new le(vi, Ri), Ci = new le(Pt, Ri), bi = new le(Tt / p, Tr / p), Oi = new le(Wt / p, Fi / p), wi = e * Math.PI / 180;
|
7357
7357
|
if (wi) {
|
7358
7358
|
const mt = Math.sin(wi), Mt = Math.cos(wi), Bt = [Mt, -mt, mt, Mt];
|
7359
7359
|
Bi._matMult(Bt), Xt._matMult(Bt), Ci._matMult(Bt), ai._matMult(Bt);
|
@@ -7370,7 +7370,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7370
7370
|
} else l.push(Fe({ fixed: 0, stretch: -1 }, { fixed: 0, stretch: -1 }, { fixed: 0, stretch: f + 1 }, { fixed: 0, stretch: g + 1 }));
|
7371
7371
|
return l;
|
7372
7372
|
}
|
7373
|
-
function
|
7373
|
+
function hc(i, e, r) {
|
7374
7374
|
let s = 0;
|
7375
7375
|
for (const l of i) s += Math.max(e, Math.min(r, l[1])) - Math.max(e, Math.min(r, l[0]));
|
7376
7376
|
return s;
|
@@ -7383,13 +7383,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7383
7383
|
}
|
7384
7384
|
return s.push({ fixed: e + Oo, stretch: r }), s;
|
7385
7385
|
}
|
7386
|
-
function
|
7386
|
+
function uc(i, e, r, s) {
|
7387
7387
|
return i / e * r + s;
|
7388
7388
|
}
|
7389
|
-
function
|
7389
|
+
function dc(i, e, r, s) {
|
7390
7390
|
return i - e * r / s;
|
7391
7391
|
}
|
7392
|
-
class
|
7392
|
+
class pc {
|
7393
7393
|
constructor(e, r, s, l, d, p, f, g, x, w) {
|
7394
7394
|
var I;
|
7395
7395
|
if (this.boxStartIndex = e.length, x) {
|
@@ -7606,14 +7606,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7606
7606
|
let Fd = Co("");
|
7607
7607
|
if (je.allowVerticalPlacement && Tt.vertical) {
|
7608
7608
|
const ki = Wt.layout.get("text-rotate").evaluate(Mt, {}, Gt) + 90;
|
7609
|
-
ur = new
|
7609
|
+
ur = new pc(Ri, Ye, Fi, Bi, Xt, Tt.vertical, ai, Ci, bi, ki), vi && (ci = new pc(Ri, Ye, Fi, Bi, Xt, vi, wi, hr, bi, ki));
|
7610
7610
|
}
|
7611
7611
|
if (oi) {
|
7612
|
-
const ki = Wt.layout.get("icon-rotate").evaluate(Mt, {}), dr = Wt.layout.get("icon-text-fit") !== "none",
|
7613
|
-
Ir = new
|
7614
|
-
const
|
7612
|
+
const ki = Wt.layout.get("icon-rotate").evaluate(Mt, {}), dr = Wt.layout.get("icon-text-fit") !== "none", Vs = Id(oi, ki, Yi, dr), Br = vi ? Id(vi, ki, Yi, dr) : void 0;
|
7613
|
+
Ir = new pc(Ri, Ye, Fi, Bi, Xt, oi, wi, hr, !1, ki), Cn = 4 * Vs.length;
|
7614
|
+
const Ns = je.iconSizeData;
|
7615
7615
|
let ln = null;
|
7616
|
-
|
7616
|
+
Ns.kind === "source" ? (ln = [sn * Wt.layout.get("icon-size").evaluate(Mt, {})], ln[0] > Qn && hi(`${je.layerIds[0]}: Value for "icon-size" is >= ${Qa}. Reduce your "icon-size".`)) : Ns.kind === "composite" && (ln = [sn * Bt.compositeIconSizes[0].evaluate(Mt, {}, Gt), sn * Bt.compositeIconSizes[1].evaluate(Mt, {}, Gt)], (ln[0] > Qn || ln[1] > Qn) && hi(`${je.layerIds[0]}: Value for "icon-size" is >= ${Qa}. Reduce your "icon-size".`)), je.addSymbols(je.icon, Vs, ln, mt, Hi, Mt, T.ai.none, Ye, on.lineStartIndex, on.lineLength, -1, Gt), Rh = je.icon.placedSymbolArray.length - 1, Br && (rl = 4 * Br.length, je.addSymbols(je.icon, Br, ln, mt, Hi, Mt, T.ai.vertical, Ye, on.lineStartIndex, on.lineLength, -1, Gt), Fh = je.icon.placedSymbolArray.length - 1);
|
7617
7617
|
}
|
7618
7618
|
const Bd = Object.keys(Tt.horizontal);
|
7619
7619
|
for (const ki of Bd) {
|
@@ -7621,25 +7621,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7621
7621
|
if (!an) {
|
7622
7622
|
Fd = Co(dr.text);
|
7623
7623
|
const Br = Wt.layout.get("text-rotate").evaluate(Mt, {}, Gt);
|
7624
|
-
an = new
|
7624
|
+
an = new pc(Ri, Ye, Fi, Bi, Xt, dr, ai, Ci, bi, Br);
|
7625
7625
|
}
|
7626
|
-
const
|
7627
|
-
if (Ld += kd(je, Ye, dr, Tr, Wt, bi, Mt, Oi, on, Tt.vertical ? T.ai.horizontal : T.ai.horizontalOnly,
|
7626
|
+
const Vs = dr.positionedLines.length === 1;
|
7627
|
+
if (Ld += kd(je, Ye, dr, Tr, Wt, bi, Mt, Oi, on, Tt.vertical ? T.ai.horizontal : T.ai.horizontalOnly, Vs ? Bd : [ki], kn, Rh, Bt, Gt), Vs) break;
|
7628
7628
|
}
|
7629
7629
|
Tt.vertical && (Rd += kd(je, Ye, Tt.vertical, Tr, Wt, bi, Mt, Oi, on, T.ai.vertical, ["vertical"], kn, Fh, Bt, Gt));
|
7630
7630
|
const Sm = an ? an.boxStartIndex : je.collisionBoxArray.length, Tm = an ? an.boxEndIndex : je.collisionBoxArray.length, Im = ur ? ur.boxStartIndex : je.collisionBoxArray.length, Pm = ur ? ur.boxEndIndex : je.collisionBoxArray.length, Am = Ir ? Ir.boxStartIndex : je.collisionBoxArray.length, Cm = Ir ? Ir.boxEndIndex : je.collisionBoxArray.length, km = ci ? ci.boxStartIndex : je.collisionBoxArray.length, Em = ci ? ci.boxEndIndex : je.collisionBoxArray.length;
|
7631
7631
|
let Fr = -1;
|
7632
|
-
const
|
7633
|
-
Fr =
|
7632
|
+
const mc = (ki, dr) => ki && ki.circleDiameter ? Math.max(ki.circleDiameter, dr) : dr;
|
7633
|
+
Fr = mc(an, Fr), Fr = mc(ur, Fr), Fr = mc(Ir, Fr), Fr = mc(ci, Fr);
|
7634
7634
|
const Od = Fr > -1 ? 1 : 0;
|
7635
7635
|
Od && (Fr *= No / ni), je.glyphOffsetArray.length >= Bo.MAX_GLYPHS && hi("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Mt.sortKey !== void 0 && je.addToSortKeyRanges(je.symbolInstances.length, Mt.sortKey);
|
7636
7636
|
const Mm = Cd(Wt, Mt, Gt), [zm, Dm] = function(ki, dr) {
|
7637
|
-
const
|
7638
|
-
if ((Br == null ? void 0 : Br.length) > 0) for (let
|
7639
|
-
const ln = Br[
|
7640
|
-
ki.emplaceBack(T.ar[Br[
|
7637
|
+
const Vs = ki.length, Br = dr == null ? void 0 : dr.values;
|
7638
|
+
if ((Br == null ? void 0 : Br.length) > 0) for (let Ns = 0; Ns < Br.length; Ns += 2) {
|
7639
|
+
const ln = Br[Ns + 1];
|
7640
|
+
ki.emplaceBack(T.ar[Br[Ns]], ln[0], ln[1]);
|
7641
7641
|
}
|
7642
|
-
return [
|
7642
|
+
return [Vs, ki.length];
|
7643
7643
|
}(je.textAnchorOffsets, Mm);
|
7644
7644
|
je.symbolInstances.emplaceBack(Ye.x, Ye.y, kn.right >= 0 ? kn.right : -1, kn.center >= 0 ? kn.center : -1, kn.left >= 0 ? kn.left : -1, kn.vertical || -1, Rh, Fh, Fd, Sm, Tm, Im, Pm, Am, Cm, km, Em, Fi, Ld, Rd, Cn, rl, Od, 0, ai, Fr, zm, Dm);
|
7645
7645
|
}(i, qe, fe, r, s, l, Oe, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], Le, g, se, ue, We, D, e, d, x, w, p);
|
@@ -7800,14 +7800,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7800
7800
|
}
|
7801
7801
|
var Mh;
|
7802
7802
|
T.bf = void 0, (Mh = T.bf || (T.bf = {})).create = "create", Mh.load = "load", Mh.fullLoad = "fullLoad";
|
7803
|
-
let
|
7803
|
+
let fc = null, il = [];
|
7804
7804
|
const zh = 1e3 / 60, Dh = "loadTime", Lh = "fullLoadTime", wm = { mark(i) {
|
7805
7805
|
performance.mark(i);
|
7806
7806
|
}, frame(i) {
|
7807
7807
|
const e = i;
|
7808
|
-
|
7808
|
+
fc != null && il.push(e - fc), fc = e;
|
7809
7809
|
}, clearMetrics() {
|
7810
|
-
|
7810
|
+
fc = null, il = [], performance.clearMeasures(Dh), performance.clearMeasures(Lh);
|
7811
7811
|
for (const i in T.bf) performance.clearMarks(T.bf[i]);
|
7812
7812
|
}, getPerformanceMetrics() {
|
7813
7813
|
performance.measure(Dh, T.bf.create, T.bf.load), performance.measure(Lh, T.bf.create, T.bf.fullLoad);
|
@@ -7840,7 +7840,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7840
7840
|
const f = { id: l, type: "<cancel>", origin: location.origin, targetMapId: i.targetMapId, sourceMapId: this.mapId };
|
7841
7841
|
this.target.postMessage(f);
|
7842
7842
|
}, { once: !0 });
|
7843
|
-
const d = [], p = Object.assign(Object.assign({}, i), { id: l, sourceMapId: this.mapId, origin: location.origin, data:
|
7843
|
+
const d = [], p = Object.assign(Object.assign({}, i), { id: l, sourceMapId: this.mapId, origin: location.origin, data: zs(i.data, d) });
|
7844
7844
|
this.target.postMessage(p, { transfer: d });
|
7845
7845
|
});
|
7846
7846
|
}
|
@@ -7881,7 +7881,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7881
7881
|
completeTask(i, e, r) {
|
7882
7882
|
const s = [];
|
7883
7883
|
delete this.abortControllers[i];
|
7884
|
-
const l = { id: i, type: "<response>", sourceMapId: this.mapId, origin: location.origin, error: e ?
|
7884
|
+
const l = { id: i, type: "<response>", sourceMapId: this.mapId, origin: location.origin, error: e ? zs(e) : null, data: zs(r, s) };
|
7885
7885
|
this.target.postMessage(l, { transfer: s });
|
7886
7886
|
}
|
7887
7887
|
remove() {
|
@@ -7903,7 +7903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7903
7903
|
l in i && (r[l] = i[l]);
|
7904
7904
|
}
|
7905
7905
|
return r;
|
7906
|
-
}, T.N = es, T.O = ld, T.P = le, T.Q = cd, T.R = lr, T.S = cr, T.T = Zn, T.U = dt, T.V = Ot, T.W = hn, T.X = ti, T.Y = b, T.Z =
|
7906
|
+
}, T.N = es, T.O = ld, T.P = le, T.Q = cd, T.R = lr, T.S = cr, T.T = Zn, T.U = dt, T.V = Ot, T.W = hn, T.X = ti, T.Y = b, T.Z = cc, T._ = c, T.a = qr, T.a$ = function(i, e) {
|
7907
7907
|
var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], f = i[5], g = i[6], x = i[7], w = i[8], I = i[9], C = i[10], D = i[11], R = i[12], B = i[13], $ = i[14], W = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], xe = e[4], Le = e[5], We = e[6], Me = e[7], Ce = e[8], Ue = e[9], Oe = e[10], Fe = e[11], fe = e[12], qe = e[13], je = e[14], Ye = e[15];
|
7908
7908
|
return Math.abs(r - se) <= Li * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Li * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Li * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Li * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - xe) <= Li * Math.max(1, Math.abs(p), Math.abs(xe)) && Math.abs(f - Le) <= Li * Math.max(1, Math.abs(f), Math.abs(Le)) && Math.abs(g - We) <= Li * Math.max(1, Math.abs(g), Math.abs(We)) && Math.abs(x - Me) <= Li * Math.max(1, Math.abs(x), Math.abs(Me)) && Math.abs(w - Ce) <= Li * Math.max(1, Math.abs(w), Math.abs(Ce)) && Math.abs(I - Ue) <= Li * Math.max(1, Math.abs(I), Math.abs(Ue)) && Math.abs(C - Oe) <= Li * Math.max(1, Math.abs(C), Math.abs(Oe)) && Math.abs(D - Fe) <= Li * Math.max(1, Math.abs(D), Math.abs(Fe)) && Math.abs(R - fe) <= Li * Math.max(1, Math.abs(R), Math.abs(fe)) && Math.abs(B - qe) <= Li * Math.max(1, Math.abs(B), Math.abs(qe)) && Math.abs($ - je) <= Li * Math.max(1, Math.abs($), Math.abs(je)) && Math.abs(W - Ye) <= Li * Math.max(1, Math.abs(W), Math.abs(Ye));
|
7909
7909
|
}, T.a0 = ri, T.a1 = Ih, T.a2 = Te, T.a3 = (i) => {
|
@@ -7919,11 +7919,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7919
7919
|
});
|
7920
7920
|
}, T.a4 = function() {
|
7921
7921
|
return Ur++;
|
7922
|
-
}, T.a5 = st, T.a6 = Bo, T.a7 = Pi, T.a8 =
|
7922
|
+
}, T.a5 = st, T.a6 = Bo, T.a7 = Pi, T.a8 = Bs, T.a9 = Et, T.aA = function(i) {
|
7923
7923
|
i = i.slice();
|
7924
7924
|
const e = /* @__PURE__ */ Object.create(null);
|
7925
7925
|
for (let r = 0; r < i.length; r++) e[i[r].id] = i[r];
|
7926
|
-
for (let r = 0; r < i.length; r++) "ref" in i[r] && (i[r] =
|
7926
|
+
for (let r = 0; r < i.length; r++) "ref" in i[r] && (i[r] = as(i[r], e[i[r].ref]));
|
7927
7927
|
return i;
|
7928
7928
|
}, T.aB = function(i) {
|
7929
7929
|
if (i.type === "custom") return new dm(i);
|
@@ -7945,7 +7945,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7945
7945
|
case "raster":
|
7946
7946
|
return new um(i);
|
7947
7947
|
case "symbol":
|
7948
|
-
return new
|
7948
|
+
return new lc(i);
|
7949
7949
|
}
|
7950
7950
|
}, T.aC = wt, T.aD = function(i, e) {
|
7951
7951
|
if (!i) return [{ command: "setStyle", args: [e] }];
|
@@ -7957,14 +7957,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7957
7957
|
(function(p, f, g, x) {
|
7958
7958
|
let w;
|
7959
7959
|
for (w in f = f || {}, p = p || {}) Object.prototype.hasOwnProperty.call(p, w) && (Object.prototype.hasOwnProperty.call(f, w) || Hr(w, g, x));
|
7960
|
-
for (w in f) Object.prototype.hasOwnProperty.call(f, w) && (Object.prototype.hasOwnProperty.call(p, w) ? _t(p[w], f[w]) || (p[w].type === "geojson" && f[w].type === "geojson" && Ln(p, f, w) ? qt(g, { command: "setGeoJSONSourceData", args: [w, f[w].data] }) : kr(w, f, g, x)) :
|
7960
|
+
for (w in f) Object.prototype.hasOwnProperty.call(f, w) && (Object.prototype.hasOwnProperty.call(p, w) ? _t(p[w], f[w]) || (p[w].type === "geojson" && f[w].type === "geojson" && Ln(p, f, w) ? qt(g, { command: "setGeoJSONSourceData", args: [w, f[w].data] }) : kr(w, f, g, x)) : ls(w, f, g));
|
7961
7961
|
})(i.sources, e.sources, l, s);
|
7962
7962
|
const d = [];
|
7963
7963
|
i.layers && i.layers.forEach((p) => {
|
7964
7964
|
"source" in p && s[p.source] ? r.push({ command: "removeLayer", args: [p.id] }) : d.push(p);
|
7965
7965
|
}), r = r.concat(l), function(p, f, g) {
|
7966
7966
|
f = f || [];
|
7967
|
-
const x = (p = p || []).map(
|
7967
|
+
const x = (p = p || []).map(cs), w = f.map(cs), I = p.reduce(hs, {}), C = f.reduce(hs, {}), D = x.slice(), R = /* @__PURE__ */ Object.create(null);
|
7968
7968
|
let B, $, W, se, Y;
|
7969
7969
|
for (let ie = 0, ue = 0; ie < x.length; ie++) B = x[ie], Object.prototype.hasOwnProperty.call(C, B) ? ue++ : (qt(g, { command: "removeLayer", args: [B] }), D.splice(D.indexOf(B, ue), 1));
|
7970
7970
|
for (let ie = 0, ue = 0; ie < w.length; ie++) B = w[w.length - 1 - ie], D[D.length - 1 - ie] !== B && (Object.prototype.hasOwnProperty.call(I, B) ? (qt(g, { command: "removeLayer", args: [B] }), D.splice(D.lastIndexOf(B, D.length - ue), 1)) : ue++, se = D[D.length - ie], qt(g, { command: "addLayer", args: [C[B], se] }), D.splice(D.length - ie, 0, B), R[B] = !0);
|
@@ -7992,14 +7992,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7992
7992
|
return !0;
|
7993
7993
|
}
|
7994
7994
|
return e === r;
|
7995
|
-
}, T.aG = Si, T.aH = $r, T.aI = class extends
|
7995
|
+
}, T.aG = Si, T.aH = $r, T.aI = class extends Ls {
|
7996
7996
|
constructor(i, e) {
|
7997
7997
|
super(i, e), this.current = 0;
|
7998
7998
|
}
|
7999
7999
|
set(i) {
|
8000
8000
|
this.current !== i && (this.current = i, this.gl.uniform1i(this.location, i));
|
8001
8001
|
}
|
8002
|
-
}, T.aJ =
|
8002
|
+
}, T.aJ = Xl, T.aK = class extends Ls {
|
8003
8003
|
constructor(i, e) {
|
8004
8004
|
super(i, e), this.current = jp;
|
8005
8005
|
}
|
@@ -8010,14 +8010,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8010
8010
|
break;
|
8011
8011
|
}
|
8012
8012
|
}
|
8013
|
-
}, T.aL = iu, T.aM = ru, T.aN = bt, T.aO = class extends
|
8013
|
+
}, T.aL = iu, T.aM = ru, T.aN = bt, T.aO = class extends Ls {
|
8014
8014
|
constructor(i, e) {
|
8015
8015
|
super(i, e), this.current = [0, 0, 0];
|
8016
8016
|
}
|
8017
8017
|
set(i) {
|
8018
8018
|
i[0] === this.current[0] && i[1] === this.current[1] && i[2] === this.current[2] || (this.current = i, this.gl.uniform3f(this.location, i[0], i[1], i[2]));
|
8019
8019
|
}
|
8020
|
-
}, T.aP = class extends
|
8020
|
+
}, T.aP = class extends Ls {
|
8021
8021
|
constructor(i, e) {
|
8022
8022
|
super(i, e), this.current = [0, 0];
|
8023
8023
|
}
|
@@ -8054,7 +8054,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8054
8054
|
}, T.af = function(i) {
|
8055
8055
|
var e = new Mo(16);
|
8056
8056
|
return e[0] = i[0], e[1] = i[1], e[2] = i[2], e[3] = i[3], e[4] = i[4], e[5] = i[5], e[6] = i[6], e[7] = i[7], e[8] = i[8], e[9] = i[9], e[10] = i[10], e[11] = i[11], e[12] = i[12], e[13] = i[13], e[14] = i[14], e[15] = i[15], e;
|
8057
|
-
}, T.ag =
|
8057
|
+
}, T.ag = Ql, T.ah = function(i, e) {
|
8058
8058
|
let r = 0, s = 0;
|
8059
8059
|
if (i.kind === "constant") s = i.layoutSize;
|
8060
8060
|
else if (i.kind !== "source") {
|
@@ -8086,7 +8086,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8086
8086
|
}
|
8087
8087
|
}
|
8088
8088
|
return i;
|
8089
|
-
}, T.ay =
|
8089
|
+
}, T.ay = jl, T.az = tr, T.b = fr, T.b0 = function(i, e) {
|
8090
8090
|
return i[0] = e[0], i[1] = e[1], i[2] = e[2], i[3] = e[3], i[4] = e[4], i[5] = e[5], i[6] = e[6], i[7] = e[7], i[8] = e[8], i[9] = e[9], i[10] = e[10], i[11] = e[11], i[12] = e[12], i[13] = e[13], i[14] = e[14], i[15] = e[15], i;
|
8091
8091
|
}, T.b1 = function(i, e, r) {
|
8092
8092
|
return i[0] = e[0] * r[0], i[1] = e[1] * r[1], i[2] = e[2] * r[2], i[3] = e[3] * r[3], i;
|
@@ -8143,7 +8143,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8143
8143
|
}
|
8144
8144
|
let Me = p ? "center" : r.get("text-justify").evaluate(x, {}, i.canonical);
|
8145
8145
|
const Ce = r.get("symbol-placement") === "point" ? r.get("text-max-width").evaluate(x, {}, i.canonical) * ni : 1 / 0, Ue = () => {
|
8146
|
-
i.bucket.allowVerticalPlacement && za(ie) && (R.vertical =
|
8146
|
+
i.bucket.allowVerticalPlacement && za(ie) && (R.vertical = sc(B, i.glyphMap, i.glyphPositions, i.imagePositions, w, Ce, d, Le, "left", xe, W, T.ai.vertical, !0, C, I));
|
8147
8147
|
};
|
8148
8148
|
if (!p && We) {
|
8149
8149
|
const Oe = /* @__PURE__ */ new Set();
|
@@ -8152,14 +8152,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8152
8152
|
let Fe = !1;
|
8153
8153
|
for (const fe of Oe) if (!R.horizontal[fe]) if (Fe) R.horizontal[fe] = R.horizontal[0];
|
8154
8154
|
else {
|
8155
|
-
const qe =
|
8155
|
+
const qe = sc(B, i.glyphMap, i.glyphPositions, i.imagePositions, w, Ce, d, "center", fe, xe, W, T.ai.horizontal, !1, C, I);
|
8156
8156
|
qe && (R.horizontal[fe] = qe, Fe = qe.positionedLines.length === 1);
|
8157
8157
|
}
|
8158
8158
|
Ue();
|
8159
8159
|
} else {
|
8160
8160
|
Me === "auto" && (Me = Ah(Le));
|
8161
|
-
const Oe =
|
8162
|
-
Oe && (R.horizontal[Me] = Oe), Ue(), za(ie) && p && f && (R.vertical =
|
8161
|
+
const Oe = sc(B, i.glyphMap, i.glyphPositions, i.imagePositions, w, Ce, d, Le, Me, xe, W, T.ai.horizontal, !1, C, I);
|
8162
|
+
Oe && (R.horizontal[Me] = Oe), Ue(), za(ie) && p && f && (R.vertical = sc(B, i.glyphMap, i.glyphPositions, i.imagePositions, w, Ce, d, Le, Me, xe, W, T.ai.vertical, !1, C, I));
|
8163
8163
|
}
|
8164
8164
|
}
|
8165
8165
|
let se = !1;
|
@@ -8286,12 +8286,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8286
8286
|
vt.version === 1 && T.w(`Vector tile source "${this.source}" layer "${at}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
|
8287
8287
|
const Vt = Q.encode(at), ii = [];
|
8288
8288
|
for (let ui = 0; ui < vt.length; ui++) {
|
8289
|
-
const di = vt.feature(ui),
|
8290
|
-
ii.push({ feature: di, id:
|
8289
|
+
const di = vt.feature(ui), us = te.getId(di, at);
|
8290
|
+
ii.push({ feature: di, id: us, index: ui, sourceLayerIndex: Vt });
|
8291
8291
|
}
|
8292
8292
|
for (const ui of de[at]) {
|
8293
8293
|
const di = ui[0];
|
8294
|
-
di.source !== this.source && T.w(`layer.source = ${di.source} does not equal this.source = ${this.source}`), di.minzoom && this.zoom < Math.floor(di.minzoom) || di.maxzoom && this.zoom >= di.maxzoom || di.visibility !== "none" && (we(ui, this.zoom, O), (re[di.id] = di.createBucket({ index: te.bucketLayerIDs.length, layers: ui, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: Vt, sourceID: this.source })).populate(ii, J, this.tileID.canonical), te.bucketLayerIDs.push(ui.map((
|
8294
|
+
di.source !== this.source && T.w(`layer.source = ${di.source} does not equal this.source = ${this.source}`), di.minzoom && this.zoom < Math.floor(di.minzoom) || di.maxzoom && this.zoom >= di.maxzoom || di.visibility !== "none" && (we(ui, this.zoom, O), (re[di.id] = di.createBucket({ index: te.bucketLayerIDs.length, layers: ui, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: Vt, sourceID: this.source })).populate(ii, J, this.tileID.canonical), te.bucketLayerIDs.push(ui.map((us) => us.id)));
|
8295
8295
|
}
|
8296
8296
|
}
|
8297
8297
|
const ge = T.aG(J.glyphDependencies, (at) => Object.keys(at).map(Number));
|
@@ -8429,7 +8429,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8429
8429
|
}
|
8430
8430
|
E + O >= 0 != !!M && G.reverse();
|
8431
8431
|
}
|
8432
|
-
var
|
8432
|
+
var et = T.bx(function G(M, E) {
|
8433
8433
|
var O, q = M && M.type;
|
8434
8434
|
if (q === "FeatureCollection") for (O = 0; O < M.features.length; O++) G(M.features[O], E);
|
8435
8435
|
else if (q === "GeometryCollection") for (O = 0; O < M.geometries.length; O++) G(M.geometries[O], E);
|
@@ -8708,7 +8708,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8708
8708
|
let te, re = E - M;
|
8709
8709
|
const J = G[M], de = G[M + 1], ge = G[E], ce = G[E + 1];
|
8710
8710
|
for (let Ie = M + 3; Ie < E; Ie += 3) {
|
8711
|
-
const Ge =
|
8711
|
+
const Ge = os(G[Ie], G[Ie + 1], J, de, ge, ce);
|
8712
8712
|
if (Ge > q) te = Ie, q = Ge;
|
8713
8713
|
else if (Ge === q) {
|
8714
8714
|
const He = Math.abs(Ie - Q);
|
@@ -8717,7 +8717,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8717
8717
|
}
|
8718
8718
|
q > O && (te - M > 3 && dn(G, M, te, O), G[te + 2] = q, E - te > 3 && dn(G, te, E, O));
|
8719
8719
|
}
|
8720
|
-
function
|
8720
|
+
function os(G, M, E, O, q, Q) {
|
8721
8721
|
let te = q - E, re = Q - O;
|
8722
8722
|
if (te !== 0 || re !== 0) {
|
8723
8723
|
const J = ((G - E) * te + (M - O) * re) / (te * te + re * re);
|
@@ -8768,12 +8768,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8768
8768
|
G.push(Cr(J, Q, re, M.properties));
|
8769
8769
|
}
|
8770
8770
|
function Dn(G, M) {
|
8771
|
-
M.push(
|
8771
|
+
M.push(as(G[0]), _t(G[1]), 0);
|
8772
8772
|
}
|
8773
8773
|
function he(G, M, E, O) {
|
8774
8774
|
let q, Q, te = 0;
|
8775
8775
|
for (let J = 0; J < G.length; J++) {
|
8776
|
-
const de =
|
8776
|
+
const de = as(G[J][0]), ge = _t(G[J][1]);
|
8777
8777
|
M.push(de, ge, 0), J > 0 && (te += O ? (q * ge - de * Q) / 2 : Math.sqrt(Math.pow(de - q, 2) + Math.pow(ge - Q, 2))), q = de, Q = ge;
|
8778
8778
|
}
|
8779
8779
|
const re = M.length - 3;
|
@@ -8785,7 +8785,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8785
8785
|
he(G[q], Q, E, O), M.push(Q);
|
8786
8786
|
}
|
8787
8787
|
}
|
8788
|
-
function
|
8788
|
+
function as(G) {
|
8789
8789
|
return G / 360 + 0.5;
|
8790
8790
|
}
|
8791
8791
|
function _t(G) {
|
@@ -8806,7 +8806,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8806
8806
|
}
|
8807
8807
|
if (Ge < E || Ie >= O) continue;
|
8808
8808
|
let He = [];
|
8809
|
-
if (ce === "Point" || ce === "MultiPoint")
|
8809
|
+
if (ce === "Point" || ce === "MultiPoint") ls(ge, He, E, O, q);
|
8810
8810
|
else if (ce === "LineString") Hr(ge, He, E, O, q, !1, re.lineMetrics);
|
8811
8811
|
else if (ce === "MultiLineString") Ln(ge, He, E, O, q, !1);
|
8812
8812
|
else if (ce === "Polygon") Ln(ge, He, E, O, q, !0);
|
@@ -8824,7 +8824,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8824
8824
|
}
|
8825
8825
|
return J.length ? J : null;
|
8826
8826
|
}
|
8827
|
-
function
|
8827
|
+
function ls(G, M, E, O, q) {
|
8828
8828
|
for (let Q = 0; Q < G.length; Q += 3) {
|
8829
8829
|
const te = G[Q + q];
|
8830
8830
|
te >= E && te <= O && Xi(M, G[Q], G[Q + 1], G[Q + 2]);
|
@@ -8832,7 +8832,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8832
8832
|
}
|
8833
8833
|
function Hr(G, M, E, O, q, Q, te) {
|
8834
8834
|
let re = kr(G);
|
8835
|
-
const J = q === 0 ?
|
8835
|
+
const J = q === 0 ? cs : hs;
|
8836
8836
|
let de, ge, ce = G.start;
|
8837
8837
|
for (let pt = 0; pt < G.length - 3; pt += 3) {
|
8838
8838
|
const rt = G[pt], Ct = G[pt + 1], Zt = G[pt + 2], Qt = G[pt + 3], at = G[pt + 4], vt = q === 0 ? rt : Ct, Vt = q === 0 ? Qt : at;
|
@@ -8853,11 +8853,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8853
8853
|
function Xi(G, M, E, O) {
|
8854
8854
|
G.push(M, E, O);
|
8855
8855
|
}
|
8856
|
-
function
|
8856
|
+
function cs(G, M, E, O, q, Q) {
|
8857
8857
|
const te = (Q - M) / (O - M);
|
8858
8858
|
return Xi(G, Q, E + (q - E) * te, 1), te;
|
8859
8859
|
}
|
8860
|
-
function
|
8860
|
+
function hs(G, M, E, O, q, Q) {
|
8861
8861
|
const te = (Q - E) / (q - E);
|
8862
8862
|
return Xi(G, M + (O - M) * te, Q, 1), te;
|
8863
8863
|
}
|
@@ -9126,7 +9126,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9126
9126
|
return T._(this, void 0, void 0, function* () {
|
9127
9127
|
let O = yield this.loadGeoJSON(M, E);
|
9128
9128
|
if (delete this._pendingRequest, typeof O != "object") throw new Error(`Input data given to '${M.source}' is not a valid GeoJSON object.`);
|
9129
|
-
if (
|
9129
|
+
if (et(O, !0), M.filter) {
|
9130
9130
|
const q = T.bB(M.filter, { type: "boolean", "property-type": "data-driven", overridable: !1, transition: !1 });
|
9131
9131
|
if (q.result === "error") throw new Error(q.value.map((te) => `${te.key}: ${te.message}`).join(", "));
|
9132
9132
|
O = { type: "FeatureCollection", features: O.features.filter((te) => q.value.evaluate({ zoom: 0 }, te)) };
|
@@ -9343,25 +9343,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9343
9343
|
}
|
9344
9344
|
oe.docStyle = typeof window < "u" && window.document && window.document.documentElement.style, oe.selectProp = oe.testProp(["userSelect", "MozUserSelect", "WebkitUserSelect", "msUserSelect"]), oe.transformProp = oe.testProp(["transform", "WebkitTransform"]);
|
9345
9345
|
const gt = { supported: !1, testSupport: function(u) {
|
9346
|
-
!Ne &&
|
9346
|
+
!Ne && et && (dt ? Ot(u) : Ze = u);
|
9347
9347
|
} };
|
9348
|
-
let Ze,
|
9348
|
+
let Ze, et, Ne = !1, dt = !1;
|
9349
9349
|
function Ot(u) {
|
9350
9350
|
const t = u.createTexture();
|
9351
9351
|
u.bindTexture(u.TEXTURE_2D, t);
|
9352
9352
|
try {
|
9353
|
-
if (u.texImage2D(u.TEXTURE_2D, 0, u.RGBA, u.RGBA, u.UNSIGNED_BYTE,
|
9353
|
+
if (u.texImage2D(u.TEXTURE_2D, 0, u.RGBA, u.RGBA, u.UNSIGNED_BYTE, et), u.isContextLost()) return;
|
9354
9354
|
gt.supported = !0;
|
9355
9355
|
} catch {
|
9356
9356
|
}
|
9357
9357
|
u.deleteTexture(t), Ne = !0;
|
9358
9358
|
}
|
9359
9359
|
var ke;
|
9360
|
-
typeof document < "u" && (
|
9360
|
+
typeof document < "u" && (et = document.createElement("img"), et.onload = () => {
|
9361
9361
|
Ze && Ot(Ze), Ze = null, dt = !0;
|
9362
|
-
},
|
9362
|
+
}, et.onerror = () => {
|
9363
9363
|
Ne = !0, Ze = null;
|
9364
|
-
},
|
9364
|
+
}, et.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), function(u) {
|
9365
9365
|
let t, n, o, a;
|
9366
9366
|
u.resetRequestQueue = () => {
|
9367
9367
|
t = [], n = 0, o = 0, a = {};
|
@@ -9905,7 +9905,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9905
9905
|
for (const o of this.actors) o.registerMessageHandler(t, n);
|
9906
9906
|
}
|
9907
9907
|
}
|
9908
|
-
function
|
9908
|
+
function os() {
|
9909
9909
|
return tr || (tr = new dn(un(), c.G), tr.registerMessageHandler("GR", (u, t, n) => c.m(t, n))), tr;
|
9910
9910
|
}
|
9911
9911
|
function Cr(u, t) {
|
@@ -10037,7 +10037,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10037
10037
|
return t.x >= o && t.x < h && t.y >= a && t.y < m;
|
10038
10038
|
}
|
10039
10039
|
}
|
10040
|
-
class
|
10040
|
+
class as extends c.E {
|
10041
10041
|
constructor(t, n, o, a) {
|
10042
10042
|
if (super(), this.id = t, this.dispatcher = o, this.type = "vector", this.minzoom = 0, this.maxzoom = 22, this.scheme = "xyz", this.tileSize = 512, this.reparseOverscaled = !0, this.isTileClipped = !0, this._loaded = !1, c.e(this, c.M(n, ["url", "scheme", "tileSize", "promoteId"])), this._options = c.e({ type: "vector" }, n), this._collectResourceTiming = n.collectResourceTiming, this.tileSize !== 512) throw new Error("vector tile sources must have a tileSize of 512");
|
10043
10043
|
this.setEventedParent(a);
|
@@ -10247,7 +10247,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10247
10247
|
});
|
10248
10248
|
}
|
10249
10249
|
}
|
10250
|
-
class
|
10250
|
+
class ls extends c.E {
|
10251
10251
|
constructor(t, n, o, a) {
|
10252
10252
|
super(), this.id = t, this.type = "geojson", this.minzoom = 0, this.maxzoom = 18, this.tileSize = 512, this.isTileClipped = !0, this.reparseOverscaled = !0, this._removed = !1, this._pendingLoads = 0, this.actor = o.getActor(), this.setEventedParent(a), this._data = n.data, this._options = c.e({}, n), this._collectResourceTiming = n.collectResourceTiming, n.maxzoom !== void 0 && (this.maxzoom = n.maxzoom), n.type && (this.type = n.type), n.attribution && (this.attribution = n.attribution), this.promoteId = n.promoteId;
|
10253
10253
|
const h = c.X / this.tileSize;
|
@@ -10505,10 +10505,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10505
10505
|
return !1;
|
10506
10506
|
}
|
10507
10507
|
}
|
10508
|
-
const
|
10508
|
+
const cs = {}, hs = (u) => {
|
10509
10509
|
switch (u) {
|
10510
10510
|
case "geojson":
|
10511
|
-
return
|
10511
|
+
return ls;
|
10512
10512
|
case "image":
|
10513
10513
|
return kr;
|
10514
10514
|
case "raster":
|
@@ -10516,17 +10516,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10516
10516
|
case "raster-dem":
|
10517
10517
|
return qt;
|
10518
10518
|
case "vector":
|
10519
|
-
return
|
10519
|
+
return as;
|
10520
10520
|
case "video":
|
10521
10521
|
return Ln;
|
10522
10522
|
case "canvas":
|
10523
10523
|
return Xi;
|
10524
10524
|
}
|
10525
|
-
return
|
10525
|
+
return cs[u];
|
10526
10526
|
}, Te = "RTLPluginLoaded";
|
10527
10527
|
class gr extends c.E {
|
10528
10528
|
constructor() {
|
10529
|
-
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher =
|
10529
|
+
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = os();
|
10530
10530
|
}
|
10531
10531
|
_syncState(t) {
|
10532
10532
|
return this.status = t, this.dispatcher.broadcast("SRPS", { pluginStatus: t, pluginURL: this.url }).catch((n) => {
|
@@ -10835,7 +10835,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10835
10835
|
}), this.on("error", () => {
|
10836
10836
|
this._sourceErrored = this._source.loaded();
|
10837
10837
|
}), this._source = ((a, h, m, _) => {
|
10838
|
-
const v = new (
|
10838
|
+
const v = new (hs(h.type))(a, h, m, _);
|
10839
10839
|
if (v.id !== a) throw new Error(`Expected Source id to be ${a} instead of ${v.id}`);
|
10840
10840
|
return v;
|
10841
10841
|
})(t, n, o, this), this._tiles = {}, this._cache = new Ae(0, (a) => this._unloadTile(a)), this._timers = {}, this._cacheTimers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new ot(), this._didEmitContent = !1, this._updated = !1;
|
@@ -11378,8 +11378,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11378
11378
|
He(ve.numGlyphs, K);
|
11379
11379
|
continue;
|
11380
11380
|
}
|
11381
|
-
const Re = M(n.transform.cameraToCenterDistance, De.signedDistanceFromCamera), be = c.aj(Z, U, ve), Se = m ? be / Re : be * Re, Ve = { getElevation: V, labelPlaneMatrix: a, lineVertexArray: j, pitchWithMap: m, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: b, tileAnchorPoint: new c.P(ve.anchorX, ve.anchorY), unwrappedTileID: P, width: A, height: L, translation: F },
|
11382
|
-
ae =
|
11381
|
+
const Re = M(n.transform.cameraToCenterDistance, De.signedDistanceFromCamera), be = c.aj(Z, U, ve), Se = m ? be / Re : be * Re, Ve = { getElevation: V, labelPlaneMatrix: a, lineVertexArray: j, pitchWithMap: m, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: b, tileAnchorPoint: new c.P(ve.anchorX, ve.anchorY), unwrappedTileID: P, width: A, height: L, translation: F }, tt = te(Ve, ve, Se, !1, _, t, h, u.glyphOffsetArray, K, ne, v);
|
11382
|
+
ae = tt.useVertical, (tt.notEnoughRoom || ae || tt.needsFlipping && te(Ve, ve, Se, !0, _, t, h, u.glyphOffsetArray, K, ne, v).notEnoughRoom) && He(ve.numGlyphs, K);
|
11383
11383
|
}
|
11384
11384
|
o ? u.text.dynamicLayoutVertexBuffer.updateData(K) : u.icon.dynamicLayoutVertexBuffer.updateData(K);
|
11385
11385
|
}
|
@@ -11493,9 +11493,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11493
11493
|
const H = [], K = new c.P(n.anchorX, n.anchorY), j = this.getPerspectiveRatio(m, K.x, K.y, _, U), ee = (A ? h / j : h * j) / c.aq, ne = { getElevation: U, labelPlaneMatrix: v, lineVertexArray: o, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: this.mapProjection, tileAnchorPoint: K, unwrappedTileID: _, width: this.transform.width, height: this.transform.height, translation: Z }, ae = q(ee, a, n.lineOffsetX * ee, n.lineOffsetY * ee, !1, n, !1, ne);
|
11494
11494
|
let me = !1, ve = !1, De = !0;
|
11495
11495
|
if (ae) {
|
11496
|
-
const Re = 0.5 * F * j + V, be = new c.P(-100, -100), Se = new c.P(this.screenRightBoundary, this.screenBottomBoundary), Ve = new it(),
|
11496
|
+
const Re = 0.5 * F * j + V, be = new c.P(-100, -100), Se = new c.P(this.screenRightBoundary, this.screenBottomBoundary), Ve = new it(), tt = ae.first, Pe = ae.last;
|
11497
11497
|
let Ee = [];
|
11498
|
-
for (let st =
|
11498
|
+
for (let st = tt.path.length - 1; st >= 1; st--) Ee.push(tt.path[st]);
|
11499
11499
|
for (let st = 1; st < Pe.path.length; st++) Ee.push(Pe.path[st]);
|
11500
11500
|
const Ke = 2.5 * Re;
|
11501
11501
|
if (b) {
|
@@ -11683,7 +11683,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11683
11683
|
placeLayerBucketPart(t, n, o) {
|
11684
11684
|
const { bucket: a, layout: h, translationText: m, translationIcon: _, posMatrix: v, unwrappedTileID: b, textLabelPlaneMatrix: P, labelToScreenMatrix: A, textPixelRatio: L, holdingForFade: F, collisionBoxArray: V, partiallyEvaluatedTextSize: Z, collisionGroup: U } = t.parameters, H = h.get("text-optional"), K = h.get("icon-optional"), j = c.as(h, "text-overlap", "text-allow-overlap"), ee = j === "always", ne = c.as(h, "icon-overlap", "icon-allow-overlap"), ae = ne === "always", me = h.get("text-rotation-alignment") === "map", ve = h.get("text-pitch-alignment") === "map", De = h.get("icon-text-fit") !== "none", Re = h.get("symbol-z-order") === "viewport-y", be = ee && (ae || !a.hasIconData() || K), Se = ae && (ee || !a.hasTextData() || H);
|
11685
11685
|
!a.collisionArrays && V && a.deserializeCollisionBoxes(V);
|
11686
|
-
const Ve = this._getTerrainElevationFunc(this.retainedQueryData[a.bucketInstanceId].tileID),
|
11686
|
+
const Ve = this._getTerrainElevationFunc(this.retainedQueryData[a.bucketInstanceId].tileID), tt = (Pe, Ee, Ke) => {
|
11687
11687
|
var Lt, st;
|
11688
11688
|
if (n[Pe.crossTileID]) return;
|
11689
11689
|
if (F) return void (this.placements[Pe.crossTileID] = new Qt(!1, !1, !1));
|
@@ -11715,14 +11715,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11715
11715
|
} else {
|
11716
11716
|
let _i = c.ar[(st = (Lt = this.prevPlacement) === null || Lt === void 0 ? void 0 : Lt.variableOffsets[Pe.crossTileID]) === null || st === void 0 ? void 0 : st.anchor];
|
11717
11717
|
const yi = (jt, Wn, Ba) => {
|
11718
|
-
const ri = jt.x2 - jt.x1,
|
11719
|
-
let nn = null,
|
11720
|
-
_i &&
|
11721
|
-
for (let Va = 0; Va <
|
11718
|
+
const ri = jt.x2 - jt.x1, Gl = jt.y2 - jt.y1, Po = Pe.textBoxScale, Ao = De && ne === "never" ? Wn : null;
|
11719
|
+
let nn = null, Hl = j === "never" ? 1 : 2, Oa = "never";
|
11720
|
+
_i && Hl++;
|
11721
|
+
for (let Va = 0; Va < Hl; Va++) {
|
11722
11722
|
for (let Na = rn; Na < Hn; Na++) {
|
11723
11723
|
const Co = a.textAnchorOffsets.get(Na);
|
11724
11724
|
if (_i && Co.textAnchor !== _i) continue;
|
11725
|
-
const Xn = this.attemptAnchorPlacement(Co, jt, ri,
|
11725
|
+
const Xn = this.attemptAnchorPlacement(Co, jt, ri, Gl, Po, me, ve, L, v, b, U, Oa, Pe, a, Ba, m, _, Ao, Ve);
|
11726
11726
|
if (Xn && (nn = Xn.placedGlyphBoxes, nn && nn.placeable)) return ht = !0, sr = Xn.shift, nn;
|
11727
11727
|
}
|
11728
11728
|
_i ? _i = null : Oa = j;
|
@@ -11760,9 +11760,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11760
11760
|
const Pe = a.getSortedSymbolIndexes(this.transform.angle);
|
11761
11761
|
for (let Ee = Pe.length - 1; Ee >= 0; --Ee) {
|
11762
11762
|
const Ke = Pe[Ee];
|
11763
|
-
|
11763
|
+
tt(a.symbolInstances.get(Ke), a.collisionArrays[Ke], Ke);
|
11764
11764
|
}
|
11765
|
-
} else for (let Pe = t.symbolInstanceStart; Pe < t.symbolInstanceEnd; Pe++)
|
11765
|
+
} else for (let Pe = t.symbolInstanceStart; Pe < t.symbolInstanceEnd; Pe++) tt(a.symbolInstances.get(Pe), a.collisionArrays[Pe], Pe);
|
11766
11766
|
if (o && a.bucketInstanceId in this.collisionCircleArrays) {
|
11767
11767
|
const Pe = this.collisionCircleArrays[a.bucketInstanceId];
|
11768
11768
|
c.at(Pe.invProjMatrix, v), Pe.viewportMatrix = this.collisionIndex.getViewportMatrix();
|
@@ -11840,8 +11840,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11840
11840
|
[K.rightJustifiedTextSymbolIndex, K.centerJustifiedTextSymbolIndex, K.leftJustifiedTextSymbolIndex].forEach((Ee) => {
|
11841
11841
|
Ee >= 0 && (t.text.placedSymbolArray.get(Ee).hidden = Ve || De ? 1 : 0);
|
11842
11842
|
}), K.verticalPlacedTextSymbolIndex >= 0 && (t.text.placedSymbolArray.get(K.verticalPlacedTextSymbolIndex).hidden = Ve || Re ? 1 : 0);
|
11843
|
-
const
|
11844
|
-
|
11843
|
+
const tt = this.variableOffsets[K.crossTileID];
|
11844
|
+
tt && this.markUsedJustification(t, tt.anchor, K, ve);
|
11845
11845
|
const Pe = this.placedOrientations[K.crossTileID];
|
11846
11846
|
Pe && (this.markUsedJustification(t, "left", K, Pe), this.markUsedOrientation(t, Pe, K));
|
11847
11847
|
}
|
@@ -11855,20 +11855,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11855
11855
|
if (Se) {
|
11856
11856
|
let Ve = new c.P(0, 0);
|
11857
11857
|
if (Se.textBox || Se.verticalTextBox) {
|
11858
|
-
let
|
11858
|
+
let tt = !0;
|
11859
11859
|
if (P) {
|
11860
11860
|
const Pe = this.variableOffsets[ne];
|
11861
|
-
Pe ? (Ve = ii(Pe.anchor, Pe.width, Pe.height, Pe.textOffset, Pe.textBoxScale), A && Ve._rotate(L ? this.transform.angle : -this.transform.angle)) :
|
11861
|
+
Pe ? (Ve = ii(Pe.anchor, Pe.width, Pe.height, Pe.textOffset, Pe.textBoxScale), A && Ve._rotate(L ? this.transform.angle : -this.transform.angle)) : tt = !1;
|
11862
11862
|
}
|
11863
11863
|
if (Se.textBox || Se.verticalTextBox) {
|
11864
11864
|
let Pe;
|
11865
|
-
Se.textBox && (Pe = De), Se.verticalTextBox && (Pe = Re), di(t.textCollisionBox.collisionVertexArray, ae.text.placed, !
|
11865
|
+
Se.textBox && (Pe = De), Se.verticalTextBox && (Pe = Re), di(t.textCollisionBox.collisionVertexArray, ae.text.placed, !tt || Pe, be.text, Ve.x, Ve.y);
|
11866
11866
|
}
|
11867
11867
|
}
|
11868
11868
|
if (Se.iconBox || Se.verticalIconBox) {
|
11869
|
-
const
|
11869
|
+
const tt = !!(!Re && Se.verticalIconBox);
|
11870
11870
|
let Pe;
|
11871
|
-
Se.iconBox && (Pe =
|
11871
|
+
Se.iconBox && (Pe = tt), Se.verticalIconBox && (Pe = !tt), di(t.iconCollisionBox.collisionVertexArray, ae.icon.placed, Pe, be.icon, F ? Ve.x : 0, F ? Ve.y : 0);
|
11872
11872
|
}
|
11873
11873
|
}
|
11874
11874
|
}
|
@@ -11902,12 +11902,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11902
11902
|
const m = o[0] - nt, _ = o[1] - nt, v = o[2] - nt, b = o[3] - nt;
|
11903
11903
|
u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, m, _), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, v, _), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, v, b), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, m, b);
|
11904
11904
|
}
|
11905
|
-
const
|
11905
|
+
const us = Math.pow(2, 25), bt = Math.pow(2, 24), $o = Math.pow(2, 17), qo = Math.pow(2, 16), Ni = Math.pow(2, 9), ji = Math.pow(2, 8), kc = Math.pow(2, 1);
|
11906
11906
|
function Ui(u) {
|
11907
11907
|
if (u.opacity === 0 && !u.placed) return 0;
|
11908
11908
|
if (u.opacity === 1 && u.placed) return 4294967295;
|
11909
11909
|
const t = u.placed ? 1 : 0, n = Math.floor(127 * u.opacity);
|
11910
|
-
return n *
|
11910
|
+
return n * us + t * bt + n * $o + t * qo + n * Ni + t * ji + n * kc + t;
|
11911
11911
|
}
|
11912
11912
|
const pi = 0;
|
11913
11913
|
function Hs() {
|
@@ -11925,7 +11925,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11925
11925
|
return [v ? m[0] : rt(h, m[0], a.zoom), v ? m[1] : rt(h, m[1], a.zoom)];
|
11926
11926
|
}(u, t, n, o), getCircleRadiusCorrection: (u) => 1 };
|
11927
11927
|
}
|
11928
|
-
class
|
11928
|
+
class ds {
|
11929
11929
|
constructor(t) {
|
11930
11930
|
this._sortAcrossTiles = t.layout.get("symbol-z-order") !== "viewport-y" && !t.layout.get("symbol-sort-key").isConstant(), this._currentTileIndex = 0, this._currentPartIndex = 0, this._seenCrossTileIDs = {}, this._bucketParts = [];
|
11931
11931
|
}
|
@@ -11948,7 +11948,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11948
11948
|
for (; this._currentPlacementIndex >= 0; ) {
|
11949
11949
|
const m = n[t[this._currentPlacementIndex]], _ = this.placement.collisionIndex.transform.zoom;
|
11950
11950
|
if (m.type === "symbol" && (!m.minzoom || m.minzoom <= _) && (!m.maxzoom || m.maxzoom > _)) {
|
11951
|
-
if (this._inProgressLayer || (this._inProgressLayer = new
|
11951
|
+
if (this._inProgressLayer || (this._inProgressLayer = new ds(m)), this._inProgressLayer.continuePlacement(o[m.source], this.placement, this._showCollisionBoxes, m, h)) return;
|
11952
11952
|
delete this._inProgressLayer;
|
11953
11953
|
}
|
11954
11954
|
this._currentPlacementIndex--;
|
@@ -12097,7 +12097,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12097
12097
|
for (const o in this.layerIndexes) n[o] || delete this.layerIndexes[o];
|
12098
12098
|
}
|
12099
12099
|
}
|
12100
|
-
const
|
12100
|
+
const ps = (u, t) => c.t(u, t && t.filter((n) => n.identifier !== "source.canvas")), Jr = c.ax();
|
12101
12101
|
class Zo extends c.E {
|
12102
12102
|
constructor(t, n = {}) {
|
12103
12103
|
super(), this._rtlPluginLoaded = () => {
|
@@ -12139,7 +12139,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12139
12139
|
_load(t, n, o) {
|
12140
12140
|
var a;
|
12141
12141
|
const h = n.transformStyle ? n.transformStyle(o, t) : t;
|
12142
|
-
if (!n.validate || !
|
12142
|
+
if (!n.validate || !ps(this, c.x(h))) {
|
12143
12143
|
this._loaded = !0, this.stylesheet = h;
|
12144
12144
|
for (const m in h.sources) this.addSource(m, h.sources[m], { validate: !1 });
|
12145
12145
|
h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Ar(this.stylesheet.light), this.sky = new er(this.stylesheet.sky), this.map.setTerrain((a = this.stylesheet.terrain) !== null && a !== void 0 ? a : null), this.fire(new c.k("data", { dataType: "style" })), this.fire(new c.k("style.load"));
|
@@ -12171,8 +12171,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12171
12171
|
Z[U] = {};
|
12172
12172
|
const H = le.getImageCanvasContext((yield V[U]).data), K = (yield F[U]).data;
|
12173
12173
|
for (const j in K) {
|
12174
|
-
const { width: ee, height: ne, x: ae, y: me, sdf: ve, pixelRatio: De, stretchX: Re, stretchY: be, content: Se, textFitWidth: Ve, textFitHeight:
|
12175
|
-
Z[U][j] = { data: null, pixelRatio: De, sdf: ve, stretchX: Re, stretchY: be, content: Se, textFitWidth: Ve, textFitHeight:
|
12174
|
+
const { width: ee, height: ne, x: ae, y: me, sdf: ve, pixelRatio: De, stretchX: Re, stretchY: be, content: Se, textFitWidth: Ve, textFitHeight: tt } = K[j];
|
12175
|
+
Z[U][j] = { data: null, pixelRatio: De, sdf: ve, stretchX: Re, stretchY: be, content: Se, textFitWidth: Ve, textFitHeight: tt, spriteData: { width: ee, height: ne, x: ae, y: me, context: H } };
|
12176
12176
|
}
|
12177
12177
|
}
|
12178
12178
|
return Z;
|
@@ -12295,7 +12295,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12295
12295
|
var o;
|
12296
12296
|
this._checkLoaded();
|
12297
12297
|
const a = this.serialize();
|
12298
|
-
if (t = n.transformStyle ? n.transformStyle(a, t) : t, ((o = n.validate) === null || o === void 0 || o) &&
|
12298
|
+
if (t = n.transformStyle ? n.transformStyle(a, t) : t, ((o = n.validate) === null || o === void 0 || o) && ps(this, c.x(t))) return !1;
|
12299
12299
|
(t = c.aC(t)).layers = c.aA(t.layers);
|
12300
12300
|
const h = c.aD(a, t), m = this._getOperationsToPerform(h);
|
12301
12301
|
if (m.unimplemented.length > 0) throw new Error(`Unimplemented: ${m.unimplemented.join(", ")}.`);
|
@@ -12411,7 +12411,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12411
12411
|
if (this.getLayer(a)) return void this.fire(new c.j(new Error(`Layer "${a}" already exists on this map.`)));
|
12412
12412
|
let h;
|
12413
12413
|
if (t.type === "custom") {
|
12414
|
-
if (
|
12414
|
+
if (ps(this, c.aE(t))) return;
|
12415
12415
|
h = c.aB(t);
|
12416
12416
|
} else {
|
12417
12417
|
if ("source" in t && typeof t.source == "object" && (this.addSource(a, t.source), t = c.aC(t), t = c.e(t, { source: a })), this._validate(c.x.layer, `layers.${a}`, t, { arrayIndex: -1 }, o)) return;
|
@@ -12629,7 +12629,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12629
12629
|
this.stylesheet.sky = t, this.sky.setSky(t, n), this.sky.updateTransitions(h);
|
12630
12630
|
}
|
12631
12631
|
_validate(t, n, o, a, h = {}) {
|
12632
|
-
return (!h || h.validate !== !1) &&
|
12632
|
+
return (!h || h.validate !== !1) && ps(this, t.call(c.x, c.e({ key: n, style: this.serialize(), value: o, styleSpec: c.v }, a)));
|
12633
12633
|
}
|
12634
12634
|
_remove(t = !0) {
|
12635
12635
|
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), _r().off(Te, this._rtlPluginLoaded);
|
@@ -12714,7 +12714,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12714
12714
|
this._checkLoaded(), t && this._validate(c.x.sprite, "sprite", t, null, n) || (this.stylesheet.sprite = t, t ? this._loadSprite(t, !0, o) : (this._unloadSprite(), o && o(null)));
|
12715
12715
|
}
|
12716
12716
|
}
|
12717
|
-
var
|
12717
|
+
var fs = c.Y([{ name: "a_pos", type: "Int16", components: 2 }]);
|
12718
12718
|
const Kr = { prelude: yt(`#ifdef GL_ES
|
12719
12719
|
precision mediump float;
|
12720
12720
|
#else
|
@@ -13319,7 +13319,7 @@ uniform ${P} ${A} u_${L};
|
|
13319
13319
|
}
|
13320
13320
|
}
|
13321
13321
|
const Go = (u, t, n, o, a) => ({ u_matrix: u, u_texture: 0, u_ele_delta: t, u_fog_matrix: n, u_fog_color: o ? o.properties.get("fog-color") : c.aN.white, u_fog_ground_blend: o ? o.properties.get("fog-ground-blend") : 1, u_fog_ground_blend_opacity: o ? o.calculateFogBlendOpacity(a) : 0, u_horizon_color: o ? o.properties.get("horizon-color") : c.aN.white, u_horizon_fog_blend: o ? o.properties.get("horizon-fog-blend") : 1 });
|
13322
|
-
function
|
13322
|
+
function ms(u) {
|
13323
13323
|
const t = [];
|
13324
13324
|
for (let n = 0; n < u.length; n++) {
|
13325
13325
|
if (u[n] === null) continue;
|
@@ -13332,7 +13332,7 @@ uniform ${P} ${A} u_${L};
|
|
13332
13332
|
constructor(t, n, o, a, h, m) {
|
13333
13333
|
const _ = t.gl;
|
13334
13334
|
this.program = _.createProgram();
|
13335
|
-
const v =
|
13335
|
+
const v = ms(n.staticAttributes), b = o ? o.getBinderAttributes() : [], P = v.concat(b), A = Kr.prelude.staticUniforms ? ms(Kr.prelude.staticUniforms) : [], L = n.staticUniforms ? ms(n.staticUniforms) : [], F = o ? o.getBinderUniforms() : [], V = A.concat(L).concat(F), Z = [];
|
13336
13336
|
for (const ae of V) Z.indexOf(ae) < 0 && Z.push(ae);
|
13337
13337
|
const U = o ? o.defines() : [];
|
13338
13338
|
h && U.push("#define OVERDRAW_INSPECTOR;"), m && U.push("#define TERRAIN3D;");
|
@@ -13404,7 +13404,7 @@ uniform ${P} ${A} u_${L};
|
|
13404
13404
|
}(m, m, _);
|
13405
13405
|
const v = a.properties.get("color");
|
13406
13406
|
return { u_matrix: u, u_lightpos: m, u_lightintensity: a.properties.get("intensity"), u_lightcolor: [v.r, v.g, v.b], u_vertical_gradient: +n, u_opacity: o };
|
13407
|
-
}, Qs = (u, t, n, o, a, h, m) => c.e(Ys(u, t, n, o), Ks(h, t, m), { u_height_factor: -Math.pow(2, a.overscaledZ) / m.tileSize / 8 }),
|
13407
|
+
}, Qs = (u, t, n, o, a, h, m) => c.e(Ys(u, t, n, o), Ks(h, t, m), { u_height_factor: -Math.pow(2, a.overscaledZ) / m.tileSize / 8 }), gs = (u) => ({ u_matrix: u }), Rn = (u, t, n, o) => c.e(gs(u), Ks(n, t, o)), Ec = (u, t) => ({ u_matrix: u, u_world: t }), Mc = (u, t, n, o, a) => c.e(Rn(u, t, n, o), { u_world: a }), ul = (u, t, n, o) => {
|
13408
13408
|
const a = u.transform;
|
13409
13409
|
let h, m;
|
13410
13410
|
if (o.paint.get("circle-pitch-alignment") === "map") {
|
@@ -13412,25 +13412,25 @@ uniform ${P} ${A} u_${L};
|
|
13412
13412
|
h = !0, m = [_, _];
|
13413
13413
|
} else h = !1, m = a.pixelsToGLUnits;
|
13414
13414
|
return { u_camera_to_center_distance: a.cameraToCenterDistance, u_scale_with_map: +(o.paint.get("circle-pitch-scale") === "map"), u_matrix: u.translatePosMatrix(t.posMatrix, n, o.paint.get("circle-translate"), o.paint.get("circle-translate-anchor")), u_pitch_with_map: +h, u_device_pixel_ratio: u.pixelRatio, u_extrude_scale: m };
|
13415
|
-
}, zc = (u, t, n) => ({ u_matrix: u, u_inv_matrix: t, u_camera_to_center_distance: n.cameraToCenterDistance, u_viewport_size: [n.width, n.height] }), Yr = (u, t, n = 1) => ({ u_matrix: u, u_color: t, u_overlay: 0, u_overlay_scale: n }),
|
13415
|
+
}, zc = (u, t, n) => ({ u_matrix: u, u_inv_matrix: t, u_camera_to_center_distance: n.cameraToCenterDistance, u_viewport_size: [n.width, n.height] }), Yr = (u, t, n = 1) => ({ u_matrix: u, u_color: t, u_overlay: 0, u_overlay_scale: n }), _s = (u) => ({ u_matrix: u }), $i = (u, t, n, o) => ({ u_matrix: u, u_extrude_scale: rt(t, 1, n), u_intensity: o });
|
13416
13416
|
function qi(u, t) {
|
13417
13417
|
const n = Math.pow(2, t.canonical.z), o = t.canonical.y;
|
13418
13418
|
return [new c.Z(0, o / n).toLngLat().lat, new c.Z(0, (o + 1) / n).toLngLat().lat];
|
13419
13419
|
}
|
13420
|
-
const
|
13420
|
+
const ys = (u, t, n, o) => {
|
13421
13421
|
const a = u.transform;
|
13422
|
-
return { u_matrix:
|
13423
|
-
}, eo = (u, t, n, o, a) => c.e(
|
13422
|
+
return { u_matrix: fl(u, t, n, o), u_ratio: 1 / rt(t, 1, a.zoom), u_device_pixel_ratio: u.pixelRatio, u_units_to_pixels: [1 / a.pixelsToGLUnits[0], 1 / a.pixelsToGLUnits[1]] };
|
13423
|
+
}, eo = (u, t, n, o, a) => c.e(ys(u, t, n, a), { u_image: 0, u_image_height: o }), dl = (u, t, n, o, a) => {
|
13424
13424
|
const h = u.transform, m = mn(t, h);
|
13425
|
-
return { u_matrix:
|
13426
|
-
},
|
13425
|
+
return { u_matrix: fl(u, t, n, a), u_texsize: t.imageAtlasTexture.size, u_ratio: 1 / rt(t, 1, h.zoom), u_device_pixel_ratio: u.pixelRatio, u_image: 0, u_scale: [m, o.fromScale, o.toScale], u_fade: o.t, u_units_to_pixels: [1 / h.pixelsToGLUnits[0], 1 / h.pixelsToGLUnits[1]] };
|
13426
|
+
}, pl = (u, t, n, o, a, h) => {
|
13427
13427
|
const m = u.lineAtlas, _ = mn(t, u.transform), v = n.layout.get("line-cap") === "round", b = m.getDash(o.from, v), P = m.getDash(o.to, v), A = b.width * a.fromScale, L = P.width * a.toScale;
|
13428
|
-
return c.e(
|
13428
|
+
return c.e(ys(u, t, n, h), { u_patternscale_a: [_ / A, -b.height / 2], u_patternscale_b: [_ / L, -P.height / 2], u_sdfgamma: m.width / (256 * Math.min(A, L) * u.pixelRatio) / 2, u_image: 0, u_tex_y_a: b.y, u_tex_y_b: P.y, u_mix: a.t });
|
13429
13429
|
};
|
13430
13430
|
function mn(u, t) {
|
13431
13431
|
return 1 / rt(u, 1, t.tileZoom);
|
13432
13432
|
}
|
13433
|
-
function
|
13433
|
+
function fl(u, t, n, o) {
|
13434
13434
|
return u.translatePosMatrix(o ? o.posMatrix : t.tileID.posMatrix, t, n.paint.get("line-translate"), n.paint.get("line-translate-anchor"));
|
13435
13435
|
}
|
13436
13436
|
const Dc = (u, t, n, o, a) => {
|
@@ -13442,13 +13442,13 @@ uniform ${P} ${A} u_${L};
|
|
13442
13442
|
const t = Math.sin(u), n = Math.cos(u);
|
13443
13443
|
return [(2 * n + 1) / 3, (-Math.sqrt(3) * t - n + 1) / 3, (Math.sqrt(3) * t - n + 1) / 3];
|
13444
13444
|
}
|
13445
|
-
const
|
13445
|
+
const ml = (u, t, n, o, a, h, m, _, v, b, P, A, L, F) => {
|
13446
13446
|
const V = m.transform;
|
13447
13447
|
return { u_is_size_zoom_constant: +(u === "constant" || u === "source"), u_is_size_feature_constant: +(u === "constant" || u === "camera"), u_size_t: t ? t.uSizeT : 0, u_size: t ? t.uSize : 0, u_camera_to_center_distance: V.cameraToCenterDistance, u_pitch: V.pitch / 360 * 2 * Math.PI, u_rotate_symbol: +n, u_aspect_ratio: V.width / V.height, u_fade_change: m.options.fadeDuration ? m.symbolFadeChange : 1, u_matrix: _, u_label_plane_matrix: v, u_coord_matrix: b, u_is_text: +A, u_pitch_with_map: +o, u_is_along_line: a, u_is_variable_anchor: h, u_texsize: L, u_texture: 0, u_translation: P, u_pitched_scale: F };
|
13448
|
-
},
|
13448
|
+
}, gl = (u, t, n, o, a, h, m, _, v, b, P, A, L, F, V) => {
|
13449
13449
|
const Z = m.transform;
|
13450
|
-
return c.e(
|
13451
|
-
}, Rc = (u, t, n, o, a, h, m, _, v, b, P, A, L, F) => c.e(
|
13450
|
+
return c.e(ml(u, t, n, o, a, h, m, _, v, b, P, A, L, V), { u_gamma_scale: o ? Math.cos(Z._pitch) * Z.cameraToCenterDistance : 1, u_device_pixel_ratio: m.pixelRatio, u_is_halo: +F });
|
13451
|
+
}, Rc = (u, t, n, o, a, h, m, _, v, b, P, A, L, F) => c.e(gl(u, t, n, o, a, h, m, _, v, b, P, !0, A, !0, F), { u_texsize_icon: L, u_texture_icon: 1 }), to = (u, t, n) => ({ u_matrix: u, u_opacity: t, u_color: n }), Ho = (u, t, n, o, a, h) => c.e(function(m, _, v, b) {
|
13452
13452
|
const P = v.imageManager.getPattern(m.from.toString()), A = v.imageManager.getPattern(m.to.toString()), { width: L, height: F } = v.imageManager.getPixelSize(), V = Math.pow(2, b.tileID.overscaledZ), Z = b.tileSize * Math.pow(2, v.transform.tileZoom) / V, U = Z * (b.tileID.canonical.x + b.tileID.wrap * V), H = Z * b.tileID.canonical.y;
|
13453
13453
|
return { u_image: 0, u_pattern_tl_a: P.tl, u_pattern_br_a: P.br, u_pattern_tl_b: A.tl, u_pattern_br_b: A.br, u_texsize: [L, F], u_mix: _.t, u_pattern_size_a: P.displaySize, u_pattern_size_b: A.displaySize, u_scale_a: _.fromScale, u_scale_b: _.toScale, u_tile_units_to_pixels: 1 / rt(b, 1, v.transform.tileZoom), u_pixel_coord_upper: [U >> 16, H >> 16], u_pixel_coord_lower: [65535 & U, 65535 & H] };
|
13454
13454
|
}(o, h, n, a), { u_matrix: u, u_opacity: t }), io = { fillExtrusion: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_lightpos: new c.aO(u, t.u_lightpos), u_lightintensity: new c.aJ(u, t.u_lightintensity), u_lightcolor: new c.aO(u, t.u_lightcolor), u_vertical_gradient: new c.aJ(u, t.u_vertical_gradient), u_opacity: new c.aJ(u, t.u_opacity) }), fillExtrusionPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_lightpos: new c.aO(u, t.u_lightpos), u_lightintensity: new c.aJ(u, t.u_lightintensity), u_lightcolor: new c.aO(u, t.u_lightcolor), u_vertical_gradient: new c.aJ(u, t.u_vertical_gradient), u_height_factor: new c.aJ(u, t.u_height_factor), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade), u_opacity: new c.aJ(u, t.u_opacity) }), fill: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix) }), fillPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), fillOutline: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world) }), fillOutlinePattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), circle: (u, t) => ({ u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_scale_with_map: new c.aI(u, t.u_scale_with_map), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_extrude_scale: new c.aP(u, t.u_extrude_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_matrix: new c.aK(u, t.u_matrix) }), collisionBox: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_pixel_extrude_scale: new c.aP(u, t.u_pixel_extrude_scale) }), collisionCircle: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_inv_matrix: new c.aK(u, t.u_inv_matrix), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_viewport_size: new c.aP(u, t.u_viewport_size) }), debug: (u, t) => ({ u_color: new c.aM(u, t.u_color), u_matrix: new c.aK(u, t.u_matrix), u_overlay: new c.aI(u, t.u_overlay), u_overlay_scale: new c.aJ(u, t.u_overlay_scale) }), clippingMask: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix) }), heatmap: (u, t) => ({ u_extrude_scale: new c.aJ(u, t.u_extrude_scale), u_intensity: new c.aJ(u, t.u_intensity), u_matrix: new c.aK(u, t.u_matrix) }), heatmapTexture: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world), u_image: new c.aI(u, t.u_image), u_color_ramp: new c.aI(u, t.u_color_ramp), u_opacity: new c.aJ(u, t.u_opacity) }), hillshade: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_latrange: new c.aP(u, t.u_latrange), u_light: new c.aP(u, t.u_light), u_shadow: new c.aM(u, t.u_shadow), u_highlight: new c.aM(u, t.u_highlight), u_accent: new c.aM(u, t.u_accent) }), hillshadePrepare: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_dimension: new c.aP(u, t.u_dimension), u_zoom: new c.aJ(u, t.u_zoom), u_unpack: new c.aL(u, t.u_unpack) }), line: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels) }), lineGradient: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_image: new c.aI(u, t.u_image), u_image_height: new c.aJ(u, t.u_image_height) }), linePattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texsize: new c.aP(u, t.u_texsize), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_image: new c.aI(u, t.u_image), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), lineSDF: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_patternscale_a: new c.aP(u, t.u_patternscale_a), u_patternscale_b: new c.aP(u, t.u_patternscale_b), u_sdfgamma: new c.aJ(u, t.u_sdfgamma), u_image: new c.aI(u, t.u_image), u_tex_y_a: new c.aJ(u, t.u_tex_y_a), u_tex_y_b: new c.aJ(u, t.u_tex_y_b), u_mix: new c.aJ(u, t.u_mix) }), raster: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_tl_parent: new c.aP(u, t.u_tl_parent), u_scale_parent: new c.aJ(u, t.u_scale_parent), u_buffer_scale: new c.aJ(u, t.u_buffer_scale), u_fade_t: new c.aJ(u, t.u_fade_t), u_opacity: new c.aJ(u, t.u_opacity), u_image0: new c.aI(u, t.u_image0), u_image1: new c.aI(u, t.u_image1), u_brightness_low: new c.aJ(u, t.u_brightness_low), u_brightness_high: new c.aJ(u, t.u_brightness_high), u_saturation_factor: new c.aJ(u, t.u_saturation_factor), u_contrast_factor: new c.aJ(u, t.u_contrast_factor), u_spin_weights: new c.aO(u, t.u_spin_weights) }), symbolIcon: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texture: new c.aI(u, t.u_texture), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), symbolSDF: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texture: new c.aI(u, t.u_texture), u_gamma_scale: new c.aJ(u, t.u_gamma_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_is_halo: new c.aI(u, t.u_is_halo), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), symbolTextAndIcon: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texsize_icon: new c.aP(u, t.u_texsize_icon), u_texture: new c.aI(u, t.u_texture), u_texture_icon: new c.aI(u, t.u_texture_icon), u_gamma_scale: new c.aJ(u, t.u_gamma_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_is_halo: new c.aI(u, t.u_is_halo), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), background: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_opacity: new c.aJ(u, t.u_opacity), u_color: new c.aM(u, t.u_color) }), backgroundPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_opacity: new c.aJ(u, t.u_opacity), u_image: new c.aI(u, t.u_image), u_pattern_tl_a: new c.aP(u, t.u_pattern_tl_a), u_pattern_br_a: new c.aP(u, t.u_pattern_br_a), u_pattern_tl_b: new c.aP(u, t.u_pattern_tl_b), u_pattern_br_b: new c.aP(u, t.u_pattern_br_b), u_texsize: new c.aP(u, t.u_texsize), u_mix: new c.aJ(u, t.u_mix), u_pattern_size_a: new c.aP(u, t.u_pattern_size_a), u_pattern_size_b: new c.aP(u, t.u_pattern_size_b), u_scale_a: new c.aJ(u, t.u_scale_a), u_scale_b: new c.aJ(u, t.u_scale_b), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_tile_units_to_pixels: new c.aJ(u, t.u_tile_units_to_pixels) }), terrain: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texture: new c.aI(u, t.u_texture), u_ele_delta: new c.aJ(u, t.u_ele_delta), u_fog_matrix: new c.aK(u, t.u_fog_matrix), u_fog_color: new c.aM(u, t.u_fog_color), u_fog_ground_blend: new c.aJ(u, t.u_fog_ground_blend), u_fog_ground_blend_opacity: new c.aJ(u, t.u_fog_ground_blend_opacity), u_horizon_color: new c.aM(u, t.u_horizon_color), u_horizon_fog_blend: new c.aJ(u, t.u_horizon_fog_blend) }), terrainDepth: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ele_delta: new c.aJ(u, t.u_ele_delta) }), terrainCoords: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texture: new c.aI(u, t.u_texture), u_terrain_coords_id: new c.aJ(u, t.u_terrain_coords_id), u_ele_delta: new c.aJ(u, t.u_ele_delta) }), sky: (u, t) => ({ u_sky_color: new c.aM(u, t.u_sky_color), u_horizon_color: new c.aM(u, t.u_horizon_color), u_horizon: new c.aJ(u, t.u_horizon), u_sky_horizon_blend: new c.aJ(u, t.u_sky_horizon_blend) }) };
|
@@ -13526,7 +13526,7 @@ uniform ${P} ${A} u_${L};
|
|
13526
13526
|
this.set(this.default);
|
13527
13527
|
}
|
13528
13528
|
}
|
13529
|
-
class
|
13529
|
+
class xs extends ut {
|
13530
13530
|
getDefault() {
|
13531
13531
|
return c.aN.transparent;
|
13532
13532
|
}
|
@@ -13576,7 +13576,7 @@ uniform ${P} ${A} u_${L};
|
|
13576
13576
|
(t !== this.current || this.dirty) && (this.gl.stencilMask(t), this.current = t, this.dirty = !1);
|
13577
13577
|
}
|
13578
13578
|
}
|
13579
|
-
class
|
13579
|
+
class _l extends ut {
|
13580
13580
|
getDefault() {
|
13581
13581
|
return { func: this.gl.ALWAYS, ref: 0, mask: 255 };
|
13582
13582
|
}
|
@@ -13595,7 +13595,7 @@ uniform ${P} ${A} u_${L};
|
|
13595
13595
|
(t[0] !== n[0] || t[1] !== n[1] || t[2] !== n[2] || this.dirty) && (this.gl.stencilOp(t[0], t[1], t[2]), this.current = t, this.dirty = !1);
|
13596
13596
|
}
|
13597
13597
|
}
|
13598
|
-
class
|
13598
|
+
class yl extends ut {
|
13599
13599
|
getDefault() {
|
13600
13600
|
return !1;
|
13601
13601
|
}
|
@@ -13614,7 +13614,7 @@ uniform ${P} ${A} u_${L};
|
|
13614
13614
|
(t[0] !== n[0] || t[1] !== n[1] || this.dirty) && (this.gl.depthRange(t[0], t[1]), this.current = t, this.dirty = !1);
|
13615
13615
|
}
|
13616
13616
|
}
|
13617
|
-
class
|
13617
|
+
class xl extends ut {
|
13618
13618
|
getDefault() {
|
13619
13619
|
return !1;
|
13620
13620
|
}
|
@@ -13624,7 +13624,7 @@ uniform ${P} ${A} u_${L};
|
|
13624
13624
|
t ? n.enable(n.DEPTH_TEST) : n.disable(n.DEPTH_TEST), this.current = t, this.dirty = !1;
|
13625
13625
|
}
|
13626
13626
|
}
|
13627
|
-
class
|
13627
|
+
class vl extends ut {
|
13628
13628
|
getDefault() {
|
13629
13629
|
return this.gl.LESS;
|
13630
13630
|
}
|
@@ -13632,7 +13632,7 @@ uniform ${P} ${A} u_${L};
|
|
13632
13632
|
(t !== this.current || this.dirty) && (this.gl.depthFunc(t), this.current = t, this.dirty = !1);
|
13633
13633
|
}
|
13634
13634
|
}
|
13635
|
-
class
|
13635
|
+
class bl extends ut {
|
13636
13636
|
getDefault() {
|
13637
13637
|
return !1;
|
13638
13638
|
}
|
@@ -13642,7 +13642,7 @@ uniform ${P} ${A} u_${L};
|
|
13642
13642
|
t ? n.enable(n.BLEND) : n.disable(n.BLEND), this.current = t, this.dirty = !1;
|
13643
13643
|
}
|
13644
13644
|
}
|
13645
|
-
class
|
13645
|
+
class wl extends ut {
|
13646
13646
|
getDefault() {
|
13647
13647
|
const t = this.gl;
|
13648
13648
|
return [t.ONE, t.ZERO];
|
@@ -13661,7 +13661,7 @@ uniform ${P} ${A} u_${L};
|
|
13661
13661
|
(t.r !== n.r || t.g !== n.g || t.b !== n.b || t.a !== n.a || this.dirty) && (this.gl.blendColor(t.r, t.g, t.b, t.a), this.current = t, this.dirty = !1);
|
13662
13662
|
}
|
13663
13663
|
}
|
13664
|
-
class
|
13664
|
+
class Sl extends ut {
|
13665
13665
|
getDefault() {
|
13666
13666
|
return this.gl.FUNC_ADD;
|
13667
13667
|
}
|
@@ -13687,7 +13687,7 @@ uniform ${P} ${A} u_${L};
|
|
13687
13687
|
(t !== this.current || this.dirty) && (this.gl.cullFace(t), this.current = t, this.dirty = !1);
|
13688
13688
|
}
|
13689
13689
|
}
|
13690
|
-
class
|
13690
|
+
class Tl extends ut {
|
13691
13691
|
getDefault() {
|
13692
13692
|
return this.gl.CCW;
|
13693
13693
|
}
|
@@ -13695,7 +13695,7 @@ uniform ${P} ${A} u_${L};
|
|
13695
13695
|
(t !== this.current || this.dirty) && (this.gl.frontFace(t), this.current = t, this.dirty = !1);
|
13696
13696
|
}
|
13697
13697
|
}
|
13698
|
-
class
|
13698
|
+
class vs extends ut {
|
13699
13699
|
getDefault() {
|
13700
13700
|
return null;
|
13701
13701
|
}
|
@@ -13741,7 +13741,7 @@ uniform ${P} ${A} u_${L};
|
|
13741
13741
|
n.bindRenderbuffer(n.RENDERBUFFER, t), this.current = t, this.dirty = !1;
|
13742
13742
|
}
|
13743
13743
|
}
|
13744
|
-
class
|
13744
|
+
class Il extends ut {
|
13745
13745
|
getDefault() {
|
13746
13746
|
return null;
|
13747
13747
|
}
|
@@ -13751,7 +13751,7 @@ uniform ${P} ${A} u_${L};
|
|
13751
13751
|
n.bindTexture(n.TEXTURE_2D, t), this.current = t, this.dirty = !1;
|
13752
13752
|
}
|
13753
13753
|
}
|
13754
|
-
class
|
13754
|
+
class Pl extends ut {
|
13755
13755
|
getDefault() {
|
13756
13756
|
return null;
|
13757
13757
|
}
|
@@ -13761,7 +13761,7 @@ uniform ${P} ${A} u_${L};
|
|
13761
13761
|
n.bindBuffer(n.ARRAY_BUFFER, t), this.current = t, this.dirty = !1;
|
13762
13762
|
}
|
13763
13763
|
}
|
13764
|
-
class
|
13764
|
+
class Al extends ut {
|
13765
13765
|
getDefault() {
|
13766
13766
|
return null;
|
13767
13767
|
}
|
@@ -13781,7 +13781,7 @@ uniform ${P} ${A} u_${L};
|
|
13781
13781
|
Fn(o) ? o.bindVertexArray(t) : (n = o.getExtension("OES_vertex_array_object")) === null || n === void 0 || n.bindVertexArrayOES(t), this.current = t, this.dirty = !1;
|
13782
13782
|
}
|
13783
13783
|
}
|
13784
|
-
class
|
13784
|
+
class Cl extends ut {
|
13785
13785
|
getDefault() {
|
13786
13786
|
return 4;
|
13787
13787
|
}
|
@@ -13811,7 +13811,7 @@ uniform ${P} ${A} u_${L};
|
|
13811
13811
|
n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, t), this.current = t, this.dirty = !1;
|
13812
13812
|
}
|
13813
13813
|
}
|
13814
|
-
class
|
13814
|
+
class bs extends ut {
|
13815
13815
|
constructor(t, n) {
|
13816
13816
|
super(t), this.context = t, this.parent = n;
|
13817
13817
|
}
|
@@ -13819,7 +13819,7 @@ uniform ${P} ${A} u_${L};
|
|
13819
13819
|
return null;
|
13820
13820
|
}
|
13821
13821
|
}
|
13822
|
-
class Qo extends
|
13822
|
+
class Qo extends bs {
|
13823
13823
|
setDirty() {
|
13824
13824
|
this.dirty = !0;
|
13825
13825
|
}
|
@@ -13830,7 +13830,7 @@ uniform ${P} ${A} u_${L};
|
|
13830
13830
|
n.framebufferTexture2D(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.TEXTURE_2D, t, 0), this.current = t, this.dirty = !1;
|
13831
13831
|
}
|
13832
13832
|
}
|
13833
|
-
class ea extends
|
13833
|
+
class ea extends bs {
|
13834
13834
|
set(t) {
|
13835
13835
|
if (t === this.current && !this.dirty) return;
|
13836
13836
|
this.context.bindFramebuffer.set(this.parent);
|
@@ -13838,7 +13838,7 @@ uniform ${P} ${A} u_${L};
|
|
13838
13838
|
n.framebufferRenderbuffer(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.RENDERBUFFER, t), this.current = t, this.dirty = !1;
|
13839
13839
|
}
|
13840
13840
|
}
|
13841
|
-
class
|
13841
|
+
class kl extends bs {
|
13842
13842
|
set(t) {
|
13843
13843
|
if (t === this.current && !this.dirty) return;
|
13844
13844
|
this.context.bindFramebuffer.set(this.parent);
|
@@ -13850,7 +13850,7 @@ uniform ${P} ${A} u_${L};
|
|
13850
13850
|
constructor(t, n, o, a, h) {
|
13851
13851
|
this.context = t, this.width = n, this.height = o;
|
13852
13852
|
const m = t.gl, _ = this.framebuffer = m.createFramebuffer();
|
13853
|
-
if (this.colorAttachment = new Qo(t, _), a) this.depthAttachment = h ? new
|
13853
|
+
if (this.colorAttachment = new Qo(t, _), a) this.depthAttachment = h ? new kl(t, _) : new ea(t, _);
|
13854
13854
|
else if (h) throw new Error("Stencil cannot be set without depth");
|
13855
13855
|
if (m.checkFramebufferStatus(m.FRAMEBUFFER) !== m.FRAMEBUFFER_COMPLETE) throw new Error("Framebuffer is not complete");
|
13856
13856
|
}
|
@@ -13872,7 +13872,7 @@ uniform ${P} ${A} u_${L};
|
|
13872
13872
|
class ia {
|
13873
13873
|
constructor(t) {
|
13874
13874
|
var n, o;
|
13875
|
-
if (this.gl = t, this.clearColor = new
|
13875
|
+
if (this.gl = t, this.clearColor = new xs(this), this.clearDepth = new Fc(this), this.clearStencil = new ro(this), this.colorMask = new Bc(this), this.depthMask = new Bn(this), this.stencilMask = new Oc(this), this.stencilFunc = new _l(this), this.stencilOp = new Vc(this), this.stencilTest = new yl(this), this.depthRange = new Ko(this), this.depthTest = new xl(this), this.depthFunc = new vl(this), this.blend = new bl(this), this.blendFunc = new wl(this), this.blendColor = new gn(this), this.blendEquation = new Sl(this), this.cullFace = new Nc(this), this.cullFaceSide = new jc(this), this.frontFace = new Tl(this), this.program = new vs(this), this.activeTexture = new Uc(this), this.viewport = new no(this), this.bindFramebuffer = new $c(this), this.bindRenderbuffer = new qc(this), this.bindTexture = new Il(this), this.bindVertexBuffer = new Pl(this), this.bindElementBuffer = new Al(this), this.bindVertexArray = new Yo(this), this.pixelStoreUnpack = new Cl(this), this.pixelStoreUnpackPremultiplyAlpha = new so(this), this.pixelStoreUnpackFlipY = new zr(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Fn(t)) {
|
13876
13876
|
this.HALF_FLOAT = t.HALF_FLOAT;
|
13877
13877
|
const a = t.getExtension("EXT_color_buffer_half_float");
|
13878
13878
|
this.RGBA16F = (n = t.RGBA16F) !== null && n !== void 0 ? n : a == null ? void 0 : a.RGBA16F_EXT, this.RGB16F = (o = t.RGB16F) !== null && o !== void 0 ? o : a == null ? void 0 : a.RGB16F_EXT, t.getExtension("EXT_color_buffer_float");
|
@@ -13948,8 +13948,8 @@ uniform ${P} ${A} u_${L};
|
|
13948
13948
|
this.enable = t, this.mode = n, this.frontFace = o;
|
13949
13949
|
}
|
13950
13950
|
}
|
13951
|
-
let
|
13952
|
-
function
|
13951
|
+
let ws;
|
13952
|
+
function El(u, t, n, o, a) {
|
13953
13953
|
const h = u.context, m = h.gl, _ = u.useProgram("collisionBox"), v = [];
|
13954
13954
|
let b = 0, P = 0;
|
13955
13955
|
for (let H = 0; H < o.length; H++) {
|
@@ -13971,7 +13971,7 @@ uniform ${P} ${A} u_${L};
|
|
13971
13971
|
const j = 4 * K, ee = H.circleArray[j + 0], ne = H.circleArray[j + 1], ae = H.circleArray[j + 2], me = H.circleArray[j + 3];
|
13972
13972
|
F.emplace(V++, ee, ne, ae, me, 0), F.emplace(V++, ee, ne, ae, me, 1), F.emplace(V++, ee, ne, ae, me, 2), F.emplace(V++, ee, ne, ae, me, 3);
|
13973
13973
|
}
|
13974
|
-
(!
|
13974
|
+
(!ws || ws.length < 2 * b) && (ws = function(H) {
|
13975
13975
|
const K = 2 * H, j = new c.aU();
|
13976
13976
|
j.resize(K), j._trim();
|
13977
13977
|
for (let ee = 0; ee < K; ee++) {
|
@@ -13980,7 +13980,7 @@ uniform ${P} ${A} u_${L};
|
|
13980
13980
|
}
|
13981
13981
|
return j;
|
13982
13982
|
}(b));
|
13983
|
-
const Z = h.createIndexBuffer(
|
13983
|
+
const Z = h.createIndexBuffer(ws, !0), U = h.createVertexBuffer(F, c.aT.members, !0);
|
13984
13984
|
for (const H of v) {
|
13985
13985
|
const K = zc(H.transform, H.invTransform, u.transform);
|
13986
13986
|
L.draw(h, m.TRIANGLES, ct.disabled, Nt.disabled, u.colorModeForRenderPass(), zt.disabled, K, u.style.map.terrain && u.style.map.terrain.getTerrainData(H.coord), n.id, U, Z, c.a0.simpleSegment(0, 2 * H.circleOffset, H.circleArray.length, H.circleArray.length / 2), null, u.transform.zoom, null, null, null);
|
@@ -14014,7 +14014,7 @@ uniform ${P} ${A} u_${L};
|
|
14014
14014
|
const ne = new c.P(j.anchorX, j.anchorY), ae = { getElevation: F, width: a.width, height: a.height, labelPlaneMatrix: h, lineVertexArray: null, pitchWithMap: n, projection: P, projectionCache: null, tileAnchorPoint: ne, translation: A, unwrappedTileID: L }, me = n ? G(ne, m, F) : de(ne.x, ne.y, ae), ve = M(a.cameraToCenterDistance, me.signedDistanceFromCamera);
|
14015
14015
|
let De = c.aj(u.textSizeData, v, j) * ve / c.aq;
|
14016
14016
|
n && (De *= u.tilePixelRatio / _);
|
14017
|
-
const { width: Re, height: be, anchor: Se, textOffset: Ve, textBoxScale:
|
14017
|
+
const { width: Re, height: be, anchor: Se, textOffset: Ve, textBoxScale: tt } = ee, Pe = oo(Se, Re, be, Ve, tt, De), Ee = P.getPitchedTextCorrection(a, ne.add(new c.P(A[0], A[1])), L), Ke = ao(me.point, ae, t, Pe, a.angle, Ee), Lt = u.allowVerticalPlacement && j.placedOrientation === c.ai.vertical ? Math.PI / 2 : 0;
|
14018
14018
|
for (let st = 0; st < j.numGlyphs; st++) c.ak(Z, Ke, Lt);
|
14019
14019
|
b && j.associatedIconIndex >= 0 && (H[j.associatedIconIndex] = { shiftedAnchor: Ke, angle: Lt });
|
14020
14020
|
} else He(j.numGlyphs, Z);
|
@@ -14045,9 +14045,9 @@ uniform ${P} ${A} u_${L};
|
|
14045
14045
|
for (const be of o) {
|
14046
14046
|
const Se = t.getTile(be), Ve = Se.getBucket(n);
|
14047
14047
|
if (!Ve) continue;
|
14048
|
-
const
|
14049
|
-
if (!
|
14050
|
-
const Pe =
|
14048
|
+
const tt = a ? Ve.text : Ve.icon;
|
14049
|
+
if (!tt || !tt.segments.get().length || !tt.hasVisibleVertices) continue;
|
14050
|
+
const Pe = tt.programConfigurations.get(n.id), Ee = a || Ve.sdfIcons, Ke = a ? Ve.textSizeData : Ve.iconSizeData, Lt = H || V.pitch !== 0, st = u.useProgram(sa(Ee, a, Ve), Pe), ht = c.ah(Ke, V.zoom), Rt = u.style.map.terrain && u.style.map.terrain.getTerrainData(be);
|
14051
14051
|
let fi, sr, Ft, Di, Ai = [0, 0], mi = null;
|
14052
14052
|
if (a) sr = Se.glyphAtlasTexture, Ft = F.LINEAR, fi = Se.glyphAtlasTexture.size, Ve.iconsInText && (Ai = Se.imageAtlasTexture.size, mi = Se.imageAtlasTexture, Di = Lt || u.options.rotating || u.options.zooming || Ke.kind === "composite" || Ke.kind === "camera" ? F.LINEAR : F.NEAREST);
|
14053
14053
|
else {
|
@@ -14061,13 +14061,13 @@ uniform ${P} ${A} u_${L};
|
|
14061
14061
|
}
|
14062
14062
|
const li = be.posMatrix, ar = a && ve || Fa, rn = K || ar ? na : Tn, Hn = To, _i = Ee && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
14063
14063
|
let yi;
|
14064
|
-
yi = Ee ? Ve.iconsInText ? Rc(Ke.kind, ht, j, H, K, ar, u, li, rn, Hn, In, fi, Ai, Re) :
|
14065
|
-
const si = { program: st, buffers:
|
14064
|
+
yi = Ee ? Ve.iconsInText ? Rc(Ke.kind, ht, j, H, K, ar, u, li, rn, Hn, In, fi, Ai, Re) : gl(Ke.kind, ht, j, H, K, ar, u, li, rn, Hn, In, a, fi, !0, Re) : ml(Ke.kind, ht, j, H, K, ar, u, li, rn, Hn, In, a, fi, Re);
|
14065
|
+
const si = { program: st, buffers: tt, uniformValues: yi, atlasTexture: sr, atlasTextureIcon: mi, atlasInterpolation: Ft, atlasInterpolationIcon: Di, isSDF: Ee, hasHalo: _i };
|
14066
14066
|
if (ne && Ve.canOverlap) {
|
14067
14067
|
ae = !0;
|
14068
|
-
const jt =
|
14068
|
+
const jt = tt.segments.get();
|
14069
14069
|
for (const Wn of jt) De.push({ segments: new c.a0([Wn]), sortKey: Wn.sortKey, state: si, terrainData: Rt });
|
14070
|
-
} else De.push({ segments:
|
14070
|
+
} else De.push({ segments: tt.segments, sortKey: 0, state: si, terrainData: Rt });
|
14071
14071
|
}
|
14072
14072
|
ae && De.sort((be, Se) => be.sortKey - Se.sortKey);
|
14073
14073
|
for (const be of De) {
|
@@ -14110,7 +14110,7 @@ uniform ${P} ${A} u_${L};
|
|
14110
14110
|
Z = ee.indexBuffer2, U = ee.segments2;
|
14111
14111
|
const Re = [_.drawingBufferWidth, _.drawingBufferHeight];
|
14112
14112
|
V = F === "fillOutlinePattern" && P ? Mc(De, u, A, j, Re) : Ec(De, Re);
|
14113
|
-
} else Z = ee.indexBuffer, U = ee.segments, V = P ? Rn(De, u, A, j) :
|
14113
|
+
} else Z = ee.indexBuffer, U = ee.segments, V = P ? Rn(De, u, A, j) : gs(De);
|
14114
14114
|
ae.draw(u.context, L, a, u.stencilModeForClipping(K), h, zt.disabled, V, me, n.id, ee.layoutVertexBuffer, Z, U, n.paint, u.transform.zoom, ne);
|
14115
14115
|
}
|
14116
14116
|
}
|
@@ -14165,7 +14165,7 @@ uniform ${P} ${A} u_${L};
|
|
14165
14165
|
}
|
14166
14166
|
return { opacity: 1, mix: 0 };
|
14167
14167
|
}
|
14168
|
-
const uo = new c.aN(1, 0, 0, 1),
|
14168
|
+
const uo = new c.aN(1, 0, 0, 1), Ss = new c.aN(0, 1, 0, 1), po = new c.aN(0, 0, 1, 1), Ml = new c.aN(1, 0, 1, 1), On = new c.aN(0, 1, 1, 1);
|
14169
14169
|
function xn(u, t, n, o) {
|
14170
14170
|
Vn(u, 0, t + n / 2, u.transform.width, n, o);
|
14171
14171
|
}
|
@@ -14187,7 +14187,7 @@ uniform ${P} ${A} u_${L};
|
|
14187
14187
|
ne.clearRect(0, 0, j.width, j.height), ne.shadowColor = "white", ne.shadowBlur = 2, ne.lineWidth = 1.5, ne.strokeStyle = "white", ne.textBaseline = "top", ne.font = "bold 36px Open Sans, sans-serif", ne.fillText(K, 5, 5), ne.strokeText(K, 5, 5), H.debugOverlayTexture.update(j), H.debugOverlayTexture.bind(ee.LINEAR, ee.CLAMP_TO_EDGE);
|
14188
14188
|
}(u, `${U} ${F}kB`), m.draw(o, a.TRIANGLES, _, v, kt.alphaBlended, zt.disabled, Yr(h, c.aN.transparent, Z), null, P, u.debugBuffer, u.quadTriangleIndexBuffer, u.debugSegments), m.draw(o, a.LINE_STRIP, _, v, b, zt.disabled, Yr(h, c.aN.red), A, P, u.debugBuffer, u.tileBorderIndexBuffer, u.debugSegments);
|
14189
14189
|
}
|
14190
|
-
function
|
14190
|
+
function Ts(u, t, n) {
|
14191
14191
|
const o = u.context, a = o.gl, h = u.colorModeForRenderPass(), m = new ct(a.LEQUAL, ct.ReadWrite, u.depthRangeFor3D), _ = u.useProgram("terrain"), v = t.getTerrainMesh();
|
14192
14192
|
o.bindFramebuffer.set(null), o.viewport.set([0, 0, u.width, u.height]);
|
14193
14193
|
for (const b of n) {
|
@@ -14197,7 +14197,7 @@ uniform ${P} ${A} u_${L};
|
|
14197
14197
|
_.draw(o, a.TRIANGLES, m, Nt.disabled, h, zt.backCCW, Z, A, "terrain", v.vertexBuffer, v.indexBuffer, v.segments);
|
14198
14198
|
}
|
14199
14199
|
}
|
14200
|
-
class
|
14200
|
+
class zl {
|
14201
14201
|
constructor(t, n, o) {
|
14202
14202
|
this.vertexBuffer = t, this.indexBuffer = n, this.segments = o;
|
14203
14203
|
}
|
@@ -14205,7 +14205,7 @@ uniform ${P} ${A} u_${L};
|
|
14205
14205
|
this.vertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.vertexBuffer = null, this.indexBuffer = null, this.segments = null;
|
14206
14206
|
}
|
14207
14207
|
}
|
14208
|
-
class
|
14208
|
+
class Dl {
|
14209
14209
|
constructor(t, n) {
|
14210
14210
|
this.context = new ia(t), this.transform = n, this._tileTextures = {}, this.terrainFacilitator = { dirty: !0, matrix: c.ao(new Float64Array(16)), renderTime: 0 }, this.setup(), this.numSublayers = Je.maxUnderzooming + Je.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.crossTileSymbolIndex = new Ji();
|
14211
14211
|
}
|
@@ -14214,13 +14214,13 @@ uniform ${P} ${A} u_${L};
|
|
14214
14214
|
}
|
14215
14215
|
setup() {
|
14216
14216
|
const t = this.context, n = new c.aX();
|
14217
|
-
n.emplaceBack(0, 0), n.emplaceBack(c.X, 0), n.emplaceBack(0, c.X), n.emplaceBack(c.X, c.X), this.tileExtentBuffer = t.createVertexBuffer(n,
|
14217
|
+
n.emplaceBack(0, 0), n.emplaceBack(c.X, 0), n.emplaceBack(0, c.X), n.emplaceBack(c.X, c.X), this.tileExtentBuffer = t.createVertexBuffer(n, fs.members), this.tileExtentSegments = c.a0.simpleSegment(0, 0, 4, 2);
|
14218
14218
|
const o = new c.aX();
|
14219
|
-
o.emplaceBack(0, 0), o.emplaceBack(c.X, 0), o.emplaceBack(0, c.X), o.emplaceBack(c.X, c.X), this.debugBuffer = t.createVertexBuffer(o,
|
14219
|
+
o.emplaceBack(0, 0), o.emplaceBack(c.X, 0), o.emplaceBack(0, c.X), o.emplaceBack(c.X, c.X), this.debugBuffer = t.createVertexBuffer(o, fs.members), this.debugSegments = c.a0.simpleSegment(0, 0, 4, 5);
|
14220
14220
|
const a = new c.$();
|
14221
14221
|
a.emplaceBack(0, 0, 0, 0), a.emplaceBack(c.X, 0, c.X, 0), a.emplaceBack(0, c.X, 0, c.X), a.emplaceBack(c.X, c.X, c.X, c.X), this.rasterBoundsBuffer = t.createVertexBuffer(a, Hr.members), this.rasterBoundsSegments = c.a0.simpleSegment(0, 0, 4, 2);
|
14222
14222
|
const h = new c.aX();
|
14223
|
-
h.emplaceBack(0, 0), h.emplaceBack(1, 0), h.emplaceBack(0, 1), h.emplaceBack(1, 1), this.viewportBuffer = t.createVertexBuffer(h,
|
14223
|
+
h.emplaceBack(0, 0), h.emplaceBack(1, 0), h.emplaceBack(0, 1), h.emplaceBack(1, 1), this.viewportBuffer = t.createVertexBuffer(h, fs.members), this.viewportSegments = c.a0.simpleSegment(0, 0, 4, 2);
|
14224
14224
|
const m = new c.aZ();
|
14225
14225
|
m.emplaceBack(0), m.emplaceBack(1), m.emplaceBack(3), m.emplaceBack(2), m.emplaceBack(0), this.tileBorderIndexBuffer = t.createIndexBuffer(m);
|
14226
14226
|
const _ = new c.aY();
|
@@ -14232,7 +14232,7 @@ uniform ${P} ${A} u_${L};
|
|
14232
14232
|
const t = this.context, n = t.gl;
|
14233
14233
|
this.nextStencilID = 1, this.currentStencilSource = void 0;
|
14234
14234
|
const o = c.H();
|
14235
|
-
c.aQ(o, 0, this.width, this.height, 0, 0, 1), c.K(o, o, [n.drawingBufferWidth, n.drawingBufferHeight, 0]), this.useProgram("clippingMask").draw(t, n.TRIANGLES, ct.disabled, this.stencilClearMode, kt.disabled, zt.disabled,
|
14235
|
+
c.aQ(o, 0, this.width, this.height, 0, 0, 1), c.K(o, o, [n.drawingBufferWidth, n.drawingBufferHeight, 0]), this.useProgram("clippingMask").draw(t, n.TRIANGLES, ct.disabled, this.stencilClearMode, kt.disabled, zt.disabled, _s(o), null, "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
|
14236
14236
|
}
|
14237
14237
|
_renderTileClippingMasks(t, n) {
|
14238
14238
|
if (this.currentStencilSource === t.source || !t.isTileClipped() || !n || !n.length) return;
|
@@ -14243,7 +14243,7 @@ uniform ${P} ${A} u_${L};
|
|
14243
14243
|
this._tileClippingMaskIDs = {};
|
14244
14244
|
for (const m of n) {
|
14245
14245
|
const _ = this._tileClippingMaskIDs[m.key] = this.nextStencilID++, v = this.style.map.terrain && this.style.map.terrain.getTerrainData(m);
|
14246
|
-
h.draw(o, a.TRIANGLES, ct.disabled, new Nt({ func: a.ALWAYS, mask: 0 }, _, 255, a.KEEP, a.KEEP, a.REPLACE), kt.disabled, zt.disabled,
|
14246
|
+
h.draw(o, a.TRIANGLES, ct.disabled, new Nt({ func: a.ALWAYS, mask: 0 }, _, 255, a.KEEP, a.KEEP, a.REPLACE), kt.disabled, zt.disabled, _s(m.posMatrix), v, "$clipping", this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);
|
14247
14247
|
}
|
14248
14248
|
}
|
14249
14249
|
stencilModeFor3D() {
|
@@ -14303,7 +14303,7 @@ uniform ${P} ${A} u_${L};
|
|
14303
14303
|
const K = new c.aX();
|
14304
14304
|
K.emplaceBack(-1, -1), K.emplaceBack(1, -1), K.emplaceBack(1, 1), K.emplaceBack(-1, 1);
|
14305
14305
|
const j = new c.aY();
|
14306
|
-
j.emplaceBack(0, 1, 2), j.emplaceBack(0, 2, 3), P.mesh = new
|
14306
|
+
j.emplaceBack(0, 1, 2), j.emplaceBack(0, 2, 3), P.mesh = new zl(A.createVertexBuffer(K, fs.members), A.createIndexBuffer(j), c.a0.simpleSegment(0, 0, K.length, j.length));
|
14307
14307
|
}
|
14308
14308
|
H.draw(A, L.TRIANGLES, V, Z, U, zt.disabled, F, void 0, "sky", P.mesh.vertexBuffer, P.mesh.indexBuffer, P.mesh.segments);
|
14309
14309
|
}(this, this.style.sky), this._showOverdrawInspector = n.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a.length - 1; this.currentLayer >= 0; this.currentLayer--) {
|
@@ -14330,7 +14330,7 @@ uniform ${P} ${A} u_${L};
|
|
14330
14330
|
}
|
14331
14331
|
this.options.showPadding && function(b) {
|
14332
14332
|
const P = b.transform.padding;
|
14333
|
-
xn(b, b.transform.height - (P.top || 0), 3, uo), xn(b, P.bottom || 0, 3,
|
14333
|
+
xn(b, b.transform.height - (P.top || 0), 3, uo), xn(b, P.bottom || 0, 3, Ss), la(b, P.left || 0, 3, po), la(b, b.transform.width - (P.right || 0), 3, Ml);
|
14334
14334
|
const A = b.transform.centerPoint;
|
14335
14335
|
(function(L, F, V, Z) {
|
14336
14336
|
Vn(L, F - 1, V - 10, 2, 20, Z), Vn(L, F - 10, V - 1, 20, 2, Z);
|
@@ -14372,13 +14372,13 @@ uniform ${P} ${A} u_${L};
|
|
14372
14372
|
for (const De of L) {
|
14373
14373
|
const Re = Z.getTile(De), be = Re.getBucket(V);
|
14374
14374
|
if (!be || !be.text || !be.text.segments.get().length) continue;
|
14375
|
-
const Se = c.ah(be.textSizeData, ne.zoom), Ve = rt(Re, 1, F.transform.zoom),
|
14375
|
+
const Se = c.ah(be.textSizeData, ne.zoom), Ve = rt(Re, 1, F.transform.zoom), tt = Xr(De.posMatrix, ve, me, F.transform, Ve), Pe = V.layout.get("icon-text-fit") !== "none" && be.hasIconData();
|
14376
14376
|
if (Se) {
|
14377
14377
|
const Ee = Math.pow(2, ne.zoom - Re.tileID.overscaledZ), Ke = F.style.map.terrain ? (st, ht) => F.style.map.terrain.getElevation(De, st, ht) : null, Lt = ae.translatePosition(ne, Re, K, j);
|
14378
|
-
lo(be, me, ve, ee, ne,
|
14378
|
+
lo(be, me, ve, ee, ne, tt, De.posMatrix, Ee, Se, Pe, ae, Lt, De.toUnwrapped(), Ke);
|
14379
14379
|
}
|
14380
14380
|
}
|
14381
|
-
}(v, h, _, m, _.layout.get("text-rotation-alignment"), _.layout.get("text-pitch-alignment"), _.paint.get("text-translate"), _.paint.get("text-translate-anchor"), b), _.paint.get("icon-opacity").constantOr(1) !== 0 && Qr(h, m, _, v, !1, _.paint.get("icon-translate"), _.paint.get("icon-translate-anchor"), _.layout.get("icon-rotation-alignment"), _.layout.get("icon-pitch-alignment"), _.layout.get("icon-keep-upright"), P, A), _.paint.get("text-opacity").constantOr(1) !== 0 && Qr(h, m, _, v, !0, _.paint.get("text-translate"), _.paint.get("text-translate-anchor"), _.layout.get("text-rotation-alignment"), _.layout.get("text-pitch-alignment"), _.layout.get("text-keep-upright"), P, A), m.map.showCollisionBoxes && (
|
14381
|
+
}(v, h, _, m, _.layout.get("text-rotation-alignment"), _.layout.get("text-pitch-alignment"), _.paint.get("text-translate"), _.paint.get("text-translate-anchor"), b), _.paint.get("icon-opacity").constantOr(1) !== 0 && Qr(h, m, _, v, !1, _.paint.get("icon-translate"), _.paint.get("icon-translate-anchor"), _.layout.get("icon-rotation-alignment"), _.layout.get("icon-pitch-alignment"), _.layout.get("icon-keep-upright"), P, A), _.paint.get("text-opacity").constantOr(1) !== 0 && Qr(h, m, _, v, !0, _.paint.get("text-translate"), _.paint.get("text-translate-anchor"), _.layout.get("text-rotation-alignment"), _.layout.get("text-pitch-alignment"), _.layout.get("text-keep-upright"), P, A), m.map.showCollisionBoxes && (El(h, m, _, v, !0), El(h, m, _, v, !1));
|
14382
14382
|
})(t, n, o, a, this.style.placement.variableOffsets);
|
14383
14383
|
break;
|
14384
14384
|
case "circle":
|
@@ -14390,10 +14390,10 @@ uniform ${P} ${A} u_${L};
|
|
14390
14390
|
for (let j = 0; j < v.length; j++) {
|
14391
14391
|
const ee = v[j], ne = m.getTile(ee), ae = ne.getBucket(_);
|
14392
14392
|
if (!ae) continue;
|
14393
|
-
const me = ae.programConfigurations.get(_.id), ve = h.useProgram("circle", me), De = ae.layoutVertexBuffer, Re = ae.indexBuffer, be = h.style.map.terrain && h.style.map.terrain.getTerrainData(ee), Se = { programConfiguration: me, program: ve, layoutVertexBuffer: De, indexBuffer: Re, uniformValues:
|
14393
|
+
const me = ae.programConfigurations.get(_.id), ve = h.useProgram("circle", me), De = ae.layoutVertexBuffer, Re = ae.indexBuffer, be = h.style.map.terrain && h.style.map.terrain.getTerrainData(ee), Se = { programConfiguration: me, program: ve, layoutVertexBuffer: De, indexBuffer: Re, uniformValues: ul(h, ee, ne, _), terrainData: be };
|
14394
14394
|
if (L) {
|
14395
14395
|
const Ve = ae.segments.get();
|
14396
|
-
for (const
|
14396
|
+
for (const tt of Ve) K.push({ segments: new c.a0([tt]), sortKey: tt.sortKey, state: Se });
|
14397
14397
|
} else K.push({ segments: ae.segments, sortKey: 0, state: Se });
|
14398
14398
|
}
|
14399
14399
|
L && K.sort((j, ee) => j.sortKey - ee.sortKey);
|
@@ -14456,12 +14456,12 @@ uniform ${P} ${A} u_${L};
|
|
14456
14456
|
if (Z && !me.patternsLoaded()) continue;
|
14457
14457
|
const ve = me.getBucket(_);
|
14458
14458
|
if (!ve) continue;
|
14459
|
-
const De = ve.programConfigurations.get(_.id), Re = h.context.program.get(), be = h.useProgram(K, De), Se = ne || be.program !== Re, Ve = h.style.map.terrain && h.style.map.terrain.getTerrainData(ae),
|
14460
|
-
if (
|
14461
|
-
const Ke = me.imageAtlas, Lt = Ke.patternPositions[
|
14459
|
+
const De = ve.programConfigurations.get(_.id), Re = h.context.program.get(), be = h.useProgram(K, De), Se = ne || be.program !== Re, Ve = h.style.map.terrain && h.style.map.terrain.getTerrainData(ae), tt = V.constantOr(null);
|
14460
|
+
if (tt && me.imageAtlas) {
|
14461
|
+
const Ke = me.imageAtlas, Lt = Ke.patternPositions[tt.to.toString()], st = Ke.patternPositions[tt.from.toString()];
|
14462
14462
|
Lt && st && De.setConstantPatternPositions(Lt, st);
|
14463
14463
|
}
|
14464
|
-
const Pe = Ve ? ae : null, Ee = Z ?
|
14464
|
+
const Pe = Ve ? ae : null, Ee = Z ? dl(h, me, _, H, Pe) : F ? pl(h, me, _, F, H, Pe) : U ? eo(h, me, _, ve.lineClipsArray.length, Pe) : ys(h, me, _, Pe);
|
14465
14465
|
if (Z) j.activeTexture.set(ee.TEXTURE0), me.imageAtlasTexture.bind(ee.LINEAR, ee.CLAMP_TO_EDGE), De.updatePaintBuffers(H);
|
14466
14466
|
else if (F && (Se || h.lineAtlas.dirty)) j.activeTexture.set(ee.TEXTURE0), h.lineAtlas.bind(j);
|
14467
14467
|
else if (U) {
|
@@ -14531,8 +14531,8 @@ uniform ${P} ${A} u_${L};
|
|
14531
14531
|
let ve, De;
|
14532
14532
|
const Re = _.paint.get("raster-resampling") === "nearest" ? P.NEAREST : P.LINEAR;
|
14533
14533
|
b.activeTexture.set(P.TEXTURE0), ee.texture.bind(Re, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), b.activeTexture.set(P.TEXTURE1), ne ? (ne.texture.bind(Re, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), ve = Math.pow(2, ne.tileID.overscaledZ - ee.tileID.overscaledZ), De = [ee.tileID.canonical.x * ve % 1, ee.tileID.canonical.y * ve % 1]) : ee.texture.bind(Re, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), ee.texture.useMipmap && b.extTextureFilterAnisotropic && h.transform.pitch > 20 && P.texParameterf(P.TEXTURE_2D, b.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, b.extTextureFilterAnisotropicMax);
|
14534
|
-
const be = h.style.map.terrain && h.style.map.terrain.getTerrainData(K), Se = be ? K : null, Ve = Se ? Se.posMatrix : h.transform.calculatePosMatrix(K.toUnwrapped(), H),
|
14535
|
-
A instanceof kr ? L.draw(b, P.TRIANGLES, j, Nt.disabled, F, zt.disabled,
|
14534
|
+
const be = h.style.map.terrain && h.style.map.terrain.getTerrainData(K), Se = be ? K : null, Ve = Se ? Se.posMatrix : h.transform.calculatePosMatrix(K.toUnwrapped(), H), tt = Dc(Ve, De || [0, 0], ve || 1, me, _);
|
14535
|
+
A instanceof kr ? L.draw(b, P.TRIANGLES, j, Nt.disabled, F, zt.disabled, tt, be, _.id, A.boundsBuffer, h.quadTriangleIndexBuffer, A.boundsSegments) : L.draw(b, P.TRIANGLES, j, V[K.overscaledZ], F, zt.disabled, tt, be, _.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
|
14536
14536
|
}
|
14537
14537
|
})(t, n, o, a);
|
14538
14538
|
break;
|
@@ -14846,13 +14846,13 @@ uniform ${P} ${A} u_${L};
|
|
14846
14846
|
const be = H - j.zoom, Se = b[0] - 0.5 - (ee << be), Ve = b[1] - 0.5 - (ne << be);
|
14847
14847
|
U.push({ tileID: new c.S(j.zoom === H ? K : j.zoom, j.wrap, j.zoom, ee, ne), distanceSq: Ur([P[0] - 0.5 - ee, P[1] - 0.5 - ne]), tileDistanceToCamera: Math.sqrt(Se * Se + Ve * Ve) });
|
14848
14848
|
} else for (let be = 0; be < 4; be++) {
|
14849
|
-
const Se = (ee << 1) + be % 2, Ve = (ne << 1) + (be >> 1),
|
14849
|
+
const Se = (ee << 1) + be % 2, Ve = (ne << 1) + (be >> 1), tt = j.zoom + 1;
|
14850
14850
|
let Pe = j.aabb.quadrant(be);
|
14851
14851
|
if (t.terrain) {
|
14852
|
-
const Ee = new c.S(
|
14852
|
+
const Ee = new c.S(tt, j.wrap, tt, Se, Ve), Ke = t.terrain.getMinMaxElevation(Ee), Lt = (n = Ke.minElevation) !== null && n !== void 0 ? n : this.elevation, st = (o = Ke.maxElevation) !== null && o !== void 0 ? o : this.elevation;
|
14853
14853
|
Pe = new fo([Pe.min[0], Pe.min[1], Lt], [Pe.max[0], Pe.max[1], st]);
|
14854
14854
|
}
|
14855
|
-
Z.push({ aabb: Pe, zoom:
|
14855
|
+
Z.push({ aabb: Pe, zoom: tt, x: Se, y: Ve, wrap: j.wrap, fullyVisible: ae });
|
14856
14856
|
}
|
14857
14857
|
}
|
14858
14858
|
return U.sort((j, ee) => j.distanceSq - ee.distanceSq).map((j) => j.tileID);
|
@@ -15038,7 +15038,7 @@ uniform ${P} ${A} u_${L};
|
|
15038
15038
|
};
|
15039
15039
|
return (..._) => (o = !0, h = this, n = _, a || m(), a);
|
15040
15040
|
}
|
15041
|
-
class
|
15041
|
+
class Is {
|
15042
15042
|
constructor(t) {
|
15043
15043
|
this._getCurrentHash = () => {
|
15044
15044
|
const n = window.location.hash.replace("#", "");
|
@@ -15092,7 +15092,7 @@ uniform ${P} ${A} u_${L};
|
|
15092
15092
|
return `#${P}`;
|
15093
15093
|
}
|
15094
15094
|
}
|
15095
|
-
const bn = { linearity: 0.3, easing: c.b8(0, 0, 0.3, 1) }, ua = c.e({ deceleration: 2500, maxSpeed: 1400 }, bn), da = c.e({ deceleration: 20, maxSpeed: 1400 }, bn),
|
15095
|
+
const bn = { linearity: 0.3, easing: c.b8(0, 0, 0.3, 1) }, ua = c.e({ deceleration: 2500, maxSpeed: 1400 }, bn), da = c.e({ deceleration: 20, maxSpeed: 1400 }, bn), Ll = c.e({ deceleration: 1e3, maxSpeed: 360 }, bn), _o = c.e({ deceleration: 1e3, maxSpeed: 90 }, bn);
|
15096
15096
|
class yo {
|
15097
15097
|
constructor(t) {
|
15098
15098
|
this._map = t, this.clear();
|
@@ -15121,7 +15121,7 @@ uniform ${P} ${A} u_${L};
|
|
15121
15121
|
a.zoom = this._map.transform.zoom + h.amount, Nn(a, h);
|
15122
15122
|
}
|
15123
15123
|
if (n.bearing) {
|
15124
|
-
const h = xo(n.bearing, o,
|
15124
|
+
const h = xo(n.bearing, o, Ll);
|
15125
15125
|
a.bearing = this._map.transform.bearing + c.ad(h.amount, -179, 179), Nn(a, h);
|
15126
15126
|
}
|
15127
15127
|
if (n.pitch) {
|
@@ -15154,7 +15154,7 @@ uniform ${P} ${A} u_${L};
|
|
15154
15154
|
super(t, c.e({ point: h, lngLat: m, originalEvent: o }, a)), this._defaultPrevented = !1, this.target = n;
|
15155
15155
|
}
|
15156
15156
|
}
|
15157
|
-
class
|
15157
|
+
class Ps extends c.k {
|
15158
15158
|
preventDefault() {
|
15159
15159
|
this._defaultPrevented = !0;
|
15160
15160
|
}
|
@@ -15206,16 +15206,16 @@ uniform ${P} ${A} u_${L};
|
|
15206
15206
|
this._map.fire(new Pi(t.type, this._map, t));
|
15207
15207
|
}
|
15208
15208
|
touchstart(t) {
|
15209
|
-
return this._firePreventable(new
|
15209
|
+
return this._firePreventable(new Ps(t.type, this._map, t));
|
15210
15210
|
}
|
15211
15211
|
touchmove(t) {
|
15212
|
-
this._map.fire(new
|
15212
|
+
this._map.fire(new Ps(t.type, this._map, t));
|
15213
15213
|
}
|
15214
15214
|
touchend(t) {
|
15215
|
-
this._map.fire(new
|
15215
|
+
this._map.fire(new Ps(t.type, this._map, t));
|
15216
15216
|
}
|
15217
15217
|
touchcancel(t) {
|
15218
|
-
this._map.fire(new
|
15218
|
+
this._map.fire(new Ps(t.type, this._map, t));
|
15219
15219
|
}
|
15220
15220
|
_firePreventable(t) {
|
15221
15221
|
if (this._map.fire(t), t.defaultPrevented) return {};
|
@@ -15384,7 +15384,7 @@ uniform ${P} ${A} u_${L};
|
|
15384
15384
|
}
|
15385
15385
|
}
|
15386
15386
|
}
|
15387
|
-
class
|
15387
|
+
class Rl {
|
15388
15388
|
constructor(t) {
|
15389
15389
|
this._tr = new jn(t), this._zoomIn = new _a({ numTouches: 1, numTaps: 2 }), this._zoomOut = new _a({ numTouches: 2, numTaps: 1 }), this.reset();
|
15390
15390
|
}
|
@@ -15509,18 +15509,18 @@ uniform ${P} ${A} u_${L};
|
|
15509
15509
|
return this._isOneFingerTouch(t) && this._isSameTouchEvent(t);
|
15510
15510
|
}
|
15511
15511
|
}
|
15512
|
-
const
|
15512
|
+
const As = (u) => {
|
15513
15513
|
u.mousedown = u.dragStart, u.mousemoveWindow = u.dragMove, u.mouseup = u.dragEnd, u.contextmenu = (t) => {
|
15514
15514
|
t.preventDefault();
|
15515
15515
|
};
|
15516
15516
|
}, ya = ({ enable: u, clickTolerance: t, bearingDegreesPerPixelMoved: n = 0.8 }) => {
|
15517
15517
|
const o = new zi({ checkCorrectEvent: (a) => oe.mouseButton(a) === 0 && a.ctrlKey || oe.mouseButton(a) === 2 });
|
15518
|
-
return new Dt({ clickTolerance: t, move: (a, h) => ({ bearingDelta: (h.x - a.x) * n }), moveStateManager: o, enable: u, assignEvents:
|
15518
|
+
return new Dt({ clickTolerance: t, move: (a, h) => ({ bearingDelta: (h.x - a.x) * n }), moveStateManager: o, enable: u, assignEvents: As });
|
15519
15519
|
}, Sn = ({ enable: u, clickTolerance: t, pitchDegreesPerPixelMoved: n = -0.5 }) => {
|
15520
15520
|
const o = new zi({ checkCorrectEvent: (a) => oe.mouseButton(a) === 0 && a.ctrlKey || oe.mouseButton(a) === 2 });
|
15521
|
-
return new Dt({ clickTolerance: t, move: (a, h) => ({ pitchDelta: (h.y - a.y) * n }), moveStateManager: o, enable: u, assignEvents:
|
15521
|
+
return new Dt({ clickTolerance: t, move: (a, h) => ({ pitchDelta: (h.y - a.y) * n }), moveStateManager: o, enable: u, assignEvents: As });
|
15522
15522
|
};
|
15523
|
-
class
|
15523
|
+
class Cs {
|
15524
15524
|
constructor(t, n) {
|
15525
15525
|
this._clickTolerance = t.clickTolerance || 1, this._map = n, this.reset();
|
15526
15526
|
}
|
@@ -15570,7 +15570,7 @@ uniform ${P} ${A} u_${L};
|
|
15570
15570
|
return this._active;
|
15571
15571
|
}
|
15572
15572
|
}
|
15573
|
-
class
|
15573
|
+
class ks {
|
15574
15574
|
constructor() {
|
15575
15575
|
this.reset();
|
15576
15576
|
}
|
@@ -15583,14 +15583,14 @@ uniform ${P} ${A} u_${L};
|
|
15583
15583
|
touchmove(t, n, o) {
|
15584
15584
|
if (!this._firstTwoTouches) return;
|
15585
15585
|
t.preventDefault();
|
15586
|
-
const [a, h] = this._firstTwoTouches, m =
|
15586
|
+
const [a, h] = this._firstTwoTouches, m = Es(o, n, a), _ = Es(o, n, h);
|
15587
15587
|
if (!m || !_) return;
|
15588
15588
|
const v = this._aroundCenter ? null : m.add(_).div(2);
|
15589
15589
|
return this._move([m, _], v, t);
|
15590
15590
|
}
|
15591
15591
|
touchend(t, n, o) {
|
15592
15592
|
if (!this._firstTwoTouches) return;
|
15593
|
-
const [a, h] = this._firstTwoTouches, m =
|
15593
|
+
const [a, h] = this._firstTwoTouches, m = Es(o, n, a), _ = Es(o, n, h);
|
15594
15594
|
m && _ || (this._active && oe.suppressClick(), this.reset());
|
15595
15595
|
}
|
15596
15596
|
touchcancel() {
|
@@ -15609,13 +15609,13 @@ uniform ${P} ${A} u_${L};
|
|
15609
15609
|
return !!this._active;
|
15610
15610
|
}
|
15611
15611
|
}
|
15612
|
-
function
|
15612
|
+
function Es(u, t, n) {
|
15613
15613
|
for (let o = 0; o < u.length; o++) if (u[o].identifier === n) return t[o];
|
15614
15614
|
}
|
15615
15615
|
function xa(u, t) {
|
15616
15616
|
return Math.log(u / t) / Math.LN2;
|
15617
15617
|
}
|
15618
|
-
class va extends
|
15618
|
+
class va extends ks {
|
15619
15619
|
reset() {
|
15620
15620
|
super.reset(), delete this._distance, delete this._startDistance;
|
15621
15621
|
}
|
@@ -15630,7 +15630,7 @@ uniform ${P} ${A} u_${L};
|
|
15630
15630
|
function ba(u, t) {
|
15631
15631
|
return 180 * u.angleWith(t) / Math.PI;
|
15632
15632
|
}
|
15633
|
-
class wa extends
|
15633
|
+
class wa extends ks {
|
15634
15634
|
reset() {
|
15635
15635
|
super.reset(), delete this._minDiameter, delete this._startVector, delete this._vector;
|
15636
15636
|
}
|
@@ -15650,7 +15650,7 @@ uniform ${P} ${A} u_${L};
|
|
15650
15650
|
function Dr(u) {
|
15651
15651
|
return Math.abs(u.y) > Math.abs(u.x);
|
15652
15652
|
}
|
15653
|
-
class Sa extends
|
15653
|
+
class Sa extends ks {
|
15654
15654
|
constructor(t) {
|
15655
15655
|
super(), this._currentTouchCount = 0, this._map = t;
|
15656
15656
|
}
|
@@ -15677,11 +15677,11 @@ uniform ${P} ${A} u_${L};
|
|
15677
15677
|
return Dr(t) && Dr(n) && m;
|
15678
15678
|
}
|
15679
15679
|
}
|
15680
|
-
const
|
15680
|
+
const Fl = { panStep: 100, bearingStep: 15, pitchStep: 10 };
|
15681
15681
|
class Ta {
|
15682
15682
|
constructor(t) {
|
15683
15683
|
this._tr = new jn(t);
|
15684
|
-
const n =
|
15684
|
+
const n = Fl;
|
15685
15685
|
this._panStep = n.panStep, this._bearingStep = n.bearingStep, this._pitchStep = n.pitchStep, this._rotationDisabled = !1;
|
15686
15686
|
}
|
15687
15687
|
reset() {
|
@@ -15719,7 +15719,7 @@ uniform ${P} ${A} u_${L};
|
|
15719
15719
|
}
|
15720
15720
|
return this._rotationDisabled && (o = 0, a = 0), { cameraAnimation: (_) => {
|
15721
15721
|
const v = this._tr;
|
15722
|
-
_.easeTo({ duration: 300, easeId: "keyboardHandler", easing:
|
15722
|
+
_.easeTo({ duration: 300, easeId: "keyboardHandler", easing: Bl, zoom: n ? Math.round(v.zoom) + n * (t.shiftKey ? 2 : 1) : v.zoom, bearing: v.bearing + o * this._bearingStep, pitch: v.pitch + a * this._pitchStep, offset: [-h * this._panStep, -m * this._panStep], center: v.center }, { originalEvent: t });
|
15723
15723
|
} };
|
15724
15724
|
}
|
15725
15725
|
enable() {
|
@@ -15741,7 +15741,7 @@ uniform ${P} ${A} u_${L};
|
|
15741
15741
|
this._rotationDisabled = !1;
|
15742
15742
|
}
|
15743
15743
|
}
|
15744
|
-
function
|
15744
|
+
function Bl(u) {
|
15745
15745
|
return u * (2 - u);
|
15746
15746
|
}
|
15747
15747
|
const Ia = 4.000244140625;
|
@@ -15838,7 +15838,7 @@ uniform ${P} ${A} u_${L};
|
|
15838
15838
|
return this._clickZoom.isActive() || this._tapZoom.isActive();
|
15839
15839
|
}
|
15840
15840
|
}
|
15841
|
-
class
|
15841
|
+
class Ms {
|
15842
15842
|
constructor(t) {
|
15843
15843
|
this._tr = new jn(t), this.reset();
|
15844
15844
|
}
|
@@ -15863,7 +15863,7 @@ uniform ${P} ${A} u_${L};
|
|
15863
15863
|
return this._active;
|
15864
15864
|
}
|
15865
15865
|
}
|
15866
|
-
class
|
15866
|
+
class Ol {
|
15867
15867
|
constructor() {
|
15868
15868
|
this._tap = new _a({ numTouches: 1, numTaps: 1 }), this.reset();
|
15869
15869
|
}
|
@@ -16045,9 +16045,9 @@ uniform ${P} ${A} u_${L};
|
|
16045
16045
|
this._add("boxZoom", a), t.interactive && t.boxZoom && a.enable();
|
16046
16046
|
const h = n.cooperativeGestures = new nr(n, t.cooperativeGestures);
|
16047
16047
|
this._add("cooperativeGestures", h), t.cooperativeGestures && h.enable();
|
16048
|
-
const m = new
|
16048
|
+
const m = new Rl(n), _ = new Ms(n);
|
16049
16049
|
n.doubleClickZoom = new Aa(_, m), this._add("tapZoom", m), this._add("clickZoom", _), t.interactive && t.doubleClickZoom && n.doubleClickZoom.enable();
|
16050
|
-
const v = new
|
16050
|
+
const v = new Ol();
|
16051
16051
|
this._add("tapDragZoom", v);
|
16052
16052
|
const b = n.touchPitch = new Sa(n);
|
16053
16053
|
this._add("touchPitch", b), t.interactive && t.touchPitch && n.touchPitch.enable(t.touchPitch);
|
@@ -16055,8 +16055,8 @@ uniform ${P} ${A} u_${L};
|
|
16055
16055
|
n.dragRotate = new rr(t, P, A), this._add("mouseRotate", P, ["mousePitch"]), this._add("mousePitch", A, ["mouseRotate"]), t.interactive && t.dragRotate && n.dragRotate.enable();
|
16056
16056
|
const L = (({ enable: K, clickTolerance: j }) => {
|
16057
16057
|
const ee = new zi({ checkCorrectEvent: (ne) => oe.mouseButton(ne) === 0 && !ne.ctrlKey });
|
16058
|
-
return new Dt({ clickTolerance: j, move: (ne, ae) => ({ around: ae, panDelta: ae.sub(ne) }), activateOnStart: !0, moveStateManager: ee, enable: K, assignEvents:
|
16059
|
-
})(t), F = new
|
16058
|
+
return new Dt({ clickTolerance: j, move: (ne, ae) => ({ around: ae, panDelta: ae.sub(ne) }), activateOnStart: !0, moveStateManager: ee, enable: K, assignEvents: As });
|
16059
|
+
})(t), F = new Cs(t, n);
|
16060
16060
|
n.dragPan = new Ki(o, L, F), this._add("mousePan", L), this._add("touchPan", F, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
|
16061
16061
|
const V = new wa(), Z = new va();
|
16062
16062
|
n.touchZoomRotate = new Ca(o, Z, V, v), this._add("touchRotate", V, ["touchPan", "touchZoom"]), this._add("touchZoom", Z, ["touchPan", "touchRotate"]), t.interactive && t.touchZoomRotate && n.touchZoomRotate.enable(t.touchZoomRotate);
|
@@ -16366,19 +16366,19 @@ uniform ${P} ${A} u_${L};
|
|
16366
16366
|
const Se = De(!1);
|
16367
16367
|
let Ve = function(Ee) {
|
16368
16368
|
return be(Se) / be(Se + ee * Ee);
|
16369
|
-
},
|
16369
|
+
}, tt = function(Ee) {
|
16370
16370
|
return ne * ((be(Se) * (Re(Ke = Se + ee * Ee) / be(Ke)) - Re(Se)) / ve) / me;
|
16371
16371
|
var Ke;
|
16372
16372
|
}, Pe = (De(!0) - Se) / ee;
|
16373
16373
|
if (Math.abs(me) < 1e-6 || !isFinite(Pe)) {
|
16374
16374
|
if (Math.abs(ne - ae) < 1e-6) return this.easeTo(t, n);
|
16375
16375
|
const Ee = ae < ne ? -1 : 1;
|
16376
|
-
Pe = Math.abs(Math.log(ae / ne)) / ee,
|
16376
|
+
Pe = Math.abs(Math.log(ae / ne)) / ee, tt = () => 0, Ve = (Ke) => Math.exp(Ee * ee * Ke);
|
16377
16377
|
}
|
16378
16378
|
return t.duration = "duration" in t ? +t.duration : 1e3 * Pe / ("screenSpeed" in t ? +t.screenSpeed / ee : +t.speed), t.maxDuration && t.duration > t.maxDuration && (t.duration = 0), this._zooming = !0, this._rotating = m !== b, this._pitching = P !== _, this._padding = !a.isPaddingEqual(A), this._prepareEase(n, !1), this.terrain && this._prepareElevation(Z), this._ease((Ee) => {
|
16379
16379
|
const Ke = Ee * Pe, Lt = 1 / Ve(Ke);
|
16380
16380
|
a.zoom = Ee === 1 ? U : h + a.scaleZoom(Lt), this._rotating && (a.bearing = c.z.number(m, b, Ee)), this._pitching && (a.pitch = c.z.number(_, P, Ee)), this._padding && (a.interpolatePadding(v, A, Ee), F = a.centerPoint.add(L)), this.terrain && !t.freezeElevation && this._updateElevation(Ee);
|
16381
|
-
const st = Ee === 1 ? Z : a.unproject(K.add(j.mult(
|
16381
|
+
const st = Ee === 1 ? Z : a.unproject(K.add(j.mult(tt(Ke))).mult(Lt));
|
16382
16382
|
a.setLocationAtPoint(a.renderWorldCopies ? st.wrap() : st, F), this._applyUpdatedTransform(a), this._fireMoveEvents(n);
|
16383
16383
|
}, () => {
|
16384
16384
|
this.terrain && t.freezeElevation && this._finalizeElevation(), this._afterEase(n);
|
@@ -16509,7 +16509,7 @@ uniform ${P} ${A} u_${L};
|
|
16509
16509
|
this._currentlyRunning && (this._cleared = !0), this._queue = [];
|
16510
16510
|
}
|
16511
16511
|
}
|
16512
|
-
var
|
16512
|
+
var Vl = c.Y([{ name: "a_pos3d", type: "Int16", components: 3 }]);
|
16513
16513
|
class Ma extends c.E {
|
16514
16514
|
constructor(t) {
|
16515
16515
|
super(), this.sourceCache = t, this._tiles = {}, this._renderableTilesKeys = [], this._sourceTileCache = {}, this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.deltaZoom = 1, t.usedForTerrain = !0, t.tileSize = this.tileSize * 2 ** this.deltaZoom;
|
@@ -16569,7 +16569,7 @@ uniform ${P} ${A} u_${L};
|
|
16569
16569
|
return Object.values(this._tiles).filter((n) => n.timeAdded >= t);
|
16570
16570
|
}
|
16571
16571
|
}
|
16572
|
-
class
|
16572
|
+
class Nl {
|
16573
16573
|
constructor(t, n, o) {
|
16574
16574
|
this.painter = t, this.sourceCache = new Ma(n), this.options = o, this.exaggeration = typeof o.exaggeration == "number" ? o.exaggeration : 1, this.qualityFactor = 2, this.meshSize = 128, this._demMatrixCache = {}, this.coordsIndex = [], this._coordsTextureSize = 1024;
|
16575
16575
|
}
|
@@ -16647,7 +16647,7 @@ uniform ${P} ${A} u_${L};
|
|
16647
16647
|
const b = n.length, P = b + 2 * (a + 1);
|
16648
16648
|
for (const A of [0, 1]) for (let L = 0; L <= a; L++) for (const F of [0, 1]) n.emplaceBack(A * c.X, L * h, F);
|
16649
16649
|
for (let A = 0; A < 2 * a; A += 2) o.emplaceBack(b + A, b + A + 1, b + A + 3), o.emplaceBack(b + A, b + A + 3, b + A + 2), o.emplaceBack(P + A, P + A + 3, P + A + 1), o.emplaceBack(P + A, P + A + 2, P + A + 3);
|
16650
|
-
return this._mesh = new
|
16650
|
+
return this._mesh = new zl(t.createVertexBuffer(n, Vl.members), t.createIndexBuffer(o), c.a0.simpleSegment(0, 0, n.length, o.length)), this._mesh;
|
16651
16651
|
}
|
16652
16652
|
getMeshFrameDelta(t) {
|
16653
16653
|
return 2 * Math.PI * c.bd / Math.pow(2, t) / 5;
|
@@ -16666,7 +16666,7 @@ uniform ${P} ${A} u_${L};
|
|
16666
16666
|
return { tileID: new c.S(n, 0, n, _, v), mercatorX: h, mercatorY: m };
|
16667
16667
|
}
|
16668
16668
|
}
|
16669
|
-
class
|
16669
|
+
class zs {
|
16670
16670
|
constructor(t, n, o) {
|
16671
16671
|
this._context = t, this._size = n, this._tileSize = o, this._objects = [], this._recentlyUsed = [], this._stamp = 0;
|
16672
16672
|
}
|
@@ -16703,9 +16703,9 @@ uniform ${P} ${A} u_${L};
|
|
16703
16703
|
}
|
16704
16704
|
}
|
16705
16705
|
const wr = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
|
16706
|
-
class
|
16706
|
+
class jl {
|
16707
16707
|
constructor(t, n) {
|
16708
|
-
this.painter = t, this.terrain = n, this.pool = new
|
16708
|
+
this.painter = t, this.terrain = n, this.pool = new zs(t.context, 30, n.sourceCache.tileSize * n.qualityFactor);
|
16709
16709
|
}
|
16710
16710
|
destruct() {
|
16711
16711
|
this.pool.destruct();
|
@@ -16744,7 +16744,7 @@ uniform ${P} ${A} u_${L};
|
|
16744
16744
|
this._prevType = n;
|
16745
16745
|
const h = this._stacks.length - 1, m = this._stacks[h] || [];
|
16746
16746
|
for (const _ of this._renderableTiles) {
|
16747
|
-
if (this.pool.isFull() && (
|
16747
|
+
if (this.pool.isFull() && (Ts(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects()), this._rttTiles.push(_), _.rtt[h]) {
|
16748
16748
|
const b = this.pool.getObjectForId(_.rtt[h].id);
|
16749
16749
|
if (b.stamp === _.rtt[h].stamp) {
|
16750
16750
|
this.pool.useObject(b);
|
@@ -16758,15 +16758,15 @@ uniform ${P} ${A} u_${L};
|
|
16758
16758
|
o.context.viewport.set([0, 0, v.fbo.width, v.fbo.height]), o._renderTileClippingMasks(P, A), o.renderLayer(o, o.style.sourceCaches[P.source], P, A), P.source && (_.rttCoords[P.source] = this._coordsDescendingInvStr[P.source][_.tileID.key]);
|
16759
16759
|
}
|
16760
16760
|
}
|
16761
|
-
return
|
16761
|
+
return Ts(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects(), wr[n];
|
16762
16762
|
}
|
16763
16763
|
return !1;
|
16764
16764
|
}
|
16765
16765
|
}
|
16766
|
-
const ze = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, za = _e, Wc = { hash: !1, interactive: !0, bearingSnap: 7, attributionControl: Ea, maplibreLogo: !1, failIfMajorPerformanceCaveat: !1, preserveDrawingBuffer: !1, refreshExpiredTiles: !0, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], zoom: 0, bearing: 0, pitch: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: c.a.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0 },
|
16766
|
+
const ze = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, za = _e, Wc = { hash: !1, interactive: !0, bearingSnap: 7, attributionControl: Ea, maplibreLogo: !1, failIfMajorPerformanceCaveat: !1, preserveDrawingBuffer: !1, refreshExpiredTiles: !0, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], zoom: 0, bearing: 0, pitch: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: c.a.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0 }, Ul = (u) => {
|
16767
16767
|
u.touchstart = u.dragStart, u.touchmoveWindow = u.dragMove, u.touchend = u.dragEnd;
|
16768
16768
|
}, Da = { showCompass: !0, showZoom: !0, visualizePitch: !1 };
|
16769
|
-
class
|
16769
|
+
class $l {
|
16770
16770
|
constructor(t, n, o = !1) {
|
16771
16771
|
this.mousedown = (m) => {
|
16772
16772
|
this.startMouse(c.e({}, m, { ctrlKey: !0, preventDefault: () => m.preventDefault() }), oe.mousePos(this.element, m)), oe.addEventListener(window, "mousemove", this.mousemove), oe.addEventListener(window, "mouseup", this.mouseup);
|
@@ -16786,10 +16786,10 @@ uniform ${P} ${A} u_${L};
|
|
16786
16786
|
const a = t.dragRotate._mouseRotate.getClickTolerance(), h = t.dragRotate._mousePitch.getClickTolerance();
|
16787
16787
|
this.element = n, this.mouseRotate = ya({ clickTolerance: a, enable: !0 }), this.touchRotate = (({ enable: m, clickTolerance: _, bearingDegreesPerPixelMoved: v = 0.8 }) => {
|
16788
16788
|
const b = new bo();
|
16789
|
-
return new Dt({ clickTolerance: _, move: (P, A) => ({ bearingDelta: (A.x - P.x) * v }), moveStateManager: b, enable: m, assignEvents:
|
16789
|
+
return new Dt({ clickTolerance: _, move: (P, A) => ({ bearingDelta: (A.x - P.x) * v }), moveStateManager: b, enable: m, assignEvents: Ul });
|
16790
16790
|
})({ clickTolerance: a, enable: !0 }), this.map = t, o && (this.mousePitch = Sn({ clickTolerance: h, enable: !0 }), this.touchPitch = (({ enable: m, clickTolerance: _, pitchDegreesPerPixelMoved: v = -0.5 }) => {
|
16791
16791
|
const b = new bo();
|
16792
|
-
return new Dt({ clickTolerance: _, move: (P, A) => ({ pitchDelta: (A.y - P.y) * v }), moveStateManager: b, enable: m, assignEvents:
|
16792
|
+
return new Dt({ clickTolerance: _, move: (P, A) => ({ pitchDelta: (A.y - P.y) * v }), moveStateManager: b, enable: m, assignEvents: Ul });
|
16793
16793
|
})({ clickTolerance: h, enable: !0 })), oe.addEventListener(n, "mousedown", this.mousedown), oe.addEventListener(n, "touchstart", this.touchstart, { passive: !1 }), oe.addEventListener(n, "touchcancel", this.reset);
|
16794
16794
|
}
|
16795
16795
|
startMouse(t, n) {
|
@@ -16821,7 +16821,7 @@ uniform ${P} ${A} u_${L};
|
|
16821
16821
|
}
|
16822
16822
|
}
|
16823
16823
|
let en;
|
16824
|
-
function
|
16824
|
+
function ql(u, t, n) {
|
16825
16825
|
const o = new c.N(u.lng, u.lat);
|
16826
16826
|
if (u = new c.N(u.lng, u.lat), t) {
|
16827
16827
|
const a = new c.N(u.lng - 360, u.lat), h = new c.N(u.lng + 360, u.lat), m = n.locationPoint(u).distSqr(t);
|
@@ -16852,7 +16852,7 @@ uniform ${P} ${A} u_${L};
|
|
16852
16852
|
var o;
|
16853
16853
|
if (!this._map) return;
|
16854
16854
|
const a = this._map.loaded() && !this._map.isMoving();
|
16855
|
-
((n == null ? void 0 : n.type) === "terrain" || (n == null ? void 0 : n.type) === "render" && !a) && this._map.once("render", this._update), this._lngLat = this._map.transform.renderWorldCopies ?
|
16855
|
+
((n == null ? void 0 : n.type) === "terrain" || (n == null ? void 0 : n.type) === "render" && !a) && this._map.once("render", this._update), this._lngLat = this._map.transform.renderWorldCopies ? ql(this._lngLat, this._flatPos, this._map.transform) : (o = this._lngLat) === null || o === void 0 ? void 0 : o.wrap(), this._flatPos = this._pos = this._map.project(this._lngLat)._add(this._offset), this._map.terrain && (this._flatPos = this._map.transform.locationPoint(this._lngLat)._add(this._offset));
|
16856
16856
|
let h = "";
|
16857
16857
|
this._rotationAlignment === "viewport" || this._rotationAlignment === "auto" ? h = `rotateZ(${this._rotation}deg)` : this._rotationAlignment === "map" && (h = `rotateZ(${this._rotation - this._map.getBearing()}deg)`);
|
16858
16858
|
let m = "";
|
@@ -17005,15 +17005,15 @@ uniform ${P} ${A} u_${L};
|
|
17005
17005
|
}
|
17006
17006
|
const wo = { positionOptions: { enableHighAccuracy: !1, maximumAge: 0, timeout: 6e3 }, fitBoundsOptions: { maxZoom: 15 }, trackUserLocation: !1, showAccuracyCircle: !0, showUserLocation: !0 };
|
17007
17007
|
let qn = 0, Zn = !1;
|
17008
|
-
const
|
17008
|
+
const Zl = { maxWidth: 100, unit: "metric" };
|
17009
17009
|
function Ra(u, t, n) {
|
17010
17010
|
const o = n && n.maxWidth || 100, a = u._container.clientHeight / 2, h = u.unproject([0, a]), m = u.unproject([o, a]), _ = h.distanceTo(m);
|
17011
17011
|
if (n && n.unit === "imperial") {
|
17012
17012
|
const v = 3.2808 * _;
|
17013
|
-
v > 5280 ?
|
17014
|
-
} else n && n.unit === "nautical" ?
|
17013
|
+
v > 5280 ? Ds(t, o, v / 5280, u._getUIString("ScaleControl.Miles")) : Ds(t, o, v, u._getUIString("ScaleControl.Feet"));
|
17014
|
+
} else n && n.unit === "nautical" ? Ds(t, o, _ / 1852, u._getUIString("ScaleControl.NauticalMiles")) : _ >= 1e3 ? Ds(t, o, _ / 1e3, u._getUIString("ScaleControl.Kilometers")) : Ds(t, o, _, u._getUIString("ScaleControl.Meters"));
|
17015
17015
|
}
|
17016
|
-
function
|
17016
|
+
function Ds(u, t, n, o) {
|
17017
17017
|
const a = function(h) {
|
17018
17018
|
const m = Math.pow(10, `${Math.floor(h)}`.length - 1);
|
17019
17019
|
let _ = h / m;
|
@@ -17083,7 +17083,7 @@ uniform ${P} ${A} u_${L};
|
|
17083
17083
|
_togglePseudoFullScreen() {
|
17084
17084
|
this._container.classList.toggle("maplibregl-pseudo-fullscreen"), this._handleFullscreenChange(), this._map.resize();
|
17085
17085
|
}
|
17086
|
-
}, T.GeoJSONSource =
|
17086
|
+
}, T.GeoJSONSource = ls, T.GeolocateControl = class extends c.E {
|
17087
17087
|
constructor(u) {
|
17088
17088
|
super(), this._onSuccess = (t) => {
|
17089
17089
|
if (this._map) {
|
@@ -17229,7 +17229,7 @@ uniform ${P} ${A} u_${L};
|
|
17229
17229
|
_clearWatch() {
|
17230
17230
|
window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
|
17231
17231
|
}
|
17232
|
-
}, T.Hash =
|
17232
|
+
}, T.Hash = Is, T.ImageSource = kr, T.KeyboardHandler = Ta, T.LngLatBounds = he, T.LogoControl = br, T.Map = class extends Hc {
|
17233
17233
|
constructor(u) {
|
17234
17234
|
c.be.mark(c.bf.create);
|
17235
17235
|
const t = Object.assign(Object.assign({}, Wc), u);
|
@@ -17265,7 +17265,7 @@ uniform ${P} ${A} u_${L};
|
|
17265
17265
|
n ? o(a) : n = !0;
|
17266
17266
|
}), this._resizeObserver.observe(this._container);
|
17267
17267
|
}
|
17268
|
-
this.handlers = new Gc(this, t), this._hash = t.hash && new
|
17268
|
+
this.handlers = new Gc(this, t), this._hash = t.hash && new Is(typeof t.hash == "string" && t.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: t.center, zoom: t.zoom, bearing: t.bearing, pitch: t.pitch }), t.bounds && (this.resize(), this.fitBounds(t.bounds, c.e({}, t.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = t.localIdeographFontFamily, this._validateStyle = t.validateStyle, t.style && this.setStyle(t.style, { localIdeographFontFamily: t.localIdeographFontFamily }), t.attributionControl && this.addControl(new $n(typeof t.attributionControl == "boolean" ? void 0 : t.attributionControl)), t.maplibreLogo && this.addControl(new br(), t.logoPosition), this.on("style.load", () => {
|
17269
17269
|
this.transform.unmodified && this.jumpTo(this.style.stylesheet);
|
17270
17270
|
}), this.on("data", (n) => {
|
17271
17271
|
this._update(n.dataType === "style"), this.fire(new c.k(`${n.dataType}data`, n));
|
@@ -17507,7 +17507,7 @@ uniform ${P} ${A} u_${L};
|
|
17507
17507
|
const o = this.style._layers[n];
|
17508
17508
|
o.type === "hillshade" && o.source === u.source && c.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.");
|
17509
17509
|
}
|
17510
|
-
this.terrain = new
|
17510
|
+
this.terrain = new Nl(this.painter, t, u), this.painter.renderToTexture = new jl(this.painter, this.terrain), this.transform.minElevationForCurrentTile = this.terrain.getMinTileElevationForLngLatZoom(this.transform.center, this.transform.tileZoom), this.transform.elevation = this.terrain.getElevationForLngLatZoom(this.transform.center, this.transform.tileZoom), this._terrainDataCallback = (n) => {
|
17511
17511
|
n.dataType === "style" ? this.terrain.sourceCache.freeRtt() : n.dataType === "source" && n.tile && (n.sourceId !== u.source || this._elevationFreeze || (this.transform.minElevationForCurrentTile = this.terrain.getMinTileElevationForLngLatZoom(this.transform.center, this.transform.tileZoom), this.transform.elevation = this.terrain.getElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this.terrain.sourceCache.freeRtt(n.tile.tileID));
|
17512
17512
|
}, this.style.on("data", this._terrainDataCallback);
|
17513
17513
|
} else this.terrain && this.terrain.sourceCache.destruct(), this.terrain = null, this.painter.renderToTexture && this.painter.renderToTexture.destruct(), this.painter.renderToTexture = null, this.transform.minElevationForCurrentTile = 0, this.transform.elevation = 0;
|
@@ -17690,7 +17690,7 @@ uniform ${P} ${A} u_${L};
|
|
17690
17690
|
const o = "Failed to initialize WebGL";
|
17691
17691
|
throw t ? (t.message = o, new Error(JSON.stringify(t))) : new Error(o);
|
17692
17692
|
}
|
17693
|
-
this.painter = new
|
17693
|
+
this.painter = new Dl(n, this.transform), gt.testSupport(n);
|
17694
17694
|
}
|
17695
17695
|
loaded() {
|
17696
17696
|
return !this._styleDirty && !this._sourcesDirty && !!this.style && this.style.loaded();
|
@@ -17778,7 +17778,7 @@ uniform ${P} ${A} u_${L};
|
|
17778
17778
|
getCameraTargetElevation() {
|
17779
17779
|
return this.transform.elevation;
|
17780
17780
|
}
|
17781
|
-
}, T.MapMouseEvent = Pi, T.MapTouchEvent =
|
17781
|
+
}, T.MapMouseEvent = Pi, T.MapTouchEvent = Ps, T.MapWheelEvent = pa, T.Marker = Et, T.NavigationControl = class {
|
17782
17782
|
constructor(u) {
|
17783
17783
|
this._updateZoomButtons = () => {
|
17784
17784
|
const t = this._map.getZoom(), n = t === this._map.getMaxZoom(), o = t === this._map.getMinZoom();
|
@@ -17794,7 +17794,7 @@ uniform ${P} ${A} u_${L};
|
|
17794
17794
|
}), this._compassIcon = oe.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true"));
|
17795
17795
|
}
|
17796
17796
|
onAdd(u) {
|
17797
|
-
return this._map = u, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new
|
17797
|
+
return this._map = u, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new $l(this._map, this._compass, this.options.visualizePitch)), this._container;
|
17798
17798
|
}
|
17799
17799
|
onRemove() {
|
17800
17800
|
oe.remove(this._container), this.options.showZoom && this._map.off("zoom", this._updateZoomButtons), this.options.showCompass && (this.options.visualizePitch && this._map.off("pitch", this._rotateCompassArrow), this._map.off("rotate", this._rotateCompassArrow), this._handler.off(), delete this._handler), delete this._map;
|
@@ -17818,7 +17818,7 @@ uniform ${P} ${A} u_${L};
|
|
17818
17818
|
if (this._container = oe.create("div", "maplibregl-popup", this._map.getContainer()), this._tip = oe.create("div", "maplibregl-popup-tip", this._container), this._container.appendChild(this._content), this.options.className) for (const _ of this.options.className.split(" ")) this._container.classList.add(_);
|
17819
17819
|
this._closeButton && this._closeButton.setAttribute("aria-label", this._map._getUIString("Popup.Close")), this._trackPointer && this._container.classList.add("maplibregl-popup-track-pointer");
|
17820
17820
|
}
|
17821
|
-
if (this.options.maxWidth && this._container.style.maxWidth !== this.options.maxWidth && (this._container.style.maxWidth = this.options.maxWidth), this._lngLat = this._map.transform.renderWorldCopies && !this._trackPointer ?
|
17821
|
+
if (this.options.maxWidth && this._container.style.maxWidth !== this.options.maxWidth && (this._container.style.maxWidth = this.options.maxWidth), this._lngLat = this._map.transform.renderWorldCopies && !this._trackPointer ? ql(this._lngLat, this._flatPos, this._map.transform) : (n = this._lngLat) === null || n === void 0 ? void 0 : n.wrap(), this._trackPointer && !t) return;
|
17822
17822
|
const o = this._flatPos = this._pos = this._trackPointer && t ? t : this._map.project(this._lngLat);
|
17823
17823
|
this._map.terrain && (this._flatPos = this._trackPointer && t ? t : this._map.transform.locationPoint(this._lngLat));
|
17824
17824
|
let a = this.options.anchor;
|
@@ -17902,7 +17902,7 @@ uniform ${P} ${A} u_${L};
|
|
17902
17902
|
Ra(this._map, this._container, this.options);
|
17903
17903
|
}, this.setUnit = (t) => {
|
17904
17904
|
this.options.unit = t, Ra(this._map, this._container, this.options);
|
17905
|
-
}, this.options = Object.assign(Object.assign({},
|
17905
|
+
}, this.options = Object.assign(Object.assign({}, Zl), u);
|
17906
17906
|
}
|
17907
17907
|
getDefaultPosition() {
|
17908
17908
|
return "bottom-left";
|
@@ -17927,10 +17927,10 @@ uniform ${P} ${A} u_${L};
|
|
17927
17927
|
onRemove() {
|
17928
17928
|
oe.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
|
17929
17929
|
}
|
17930
|
-
}, T.TwoFingersTouchPitchHandler = Sa, T.TwoFingersTouchRotateHandler = wa, T.TwoFingersTouchZoomHandler = va, T.TwoFingersTouchZoomRotateHandler = Ca, T.VectorTileSource =
|
17931
|
-
if (
|
17930
|
+
}, T.TwoFingersTouchPitchHandler = Sa, T.TwoFingersTouchRotateHandler = wa, T.TwoFingersTouchZoomHandler = va, T.TwoFingersTouchZoomRotateHandler = Ca, T.VectorTileSource = as, T.VideoSource = Ln, T.addSourceType = (u, t) => c._(void 0, void 0, void 0, function* () {
|
17931
|
+
if (hs(u)) throw new Error(`A source type called "${u}" already exists.`);
|
17932
17932
|
((n, o) => {
|
17933
|
-
|
17933
|
+
cs[n] = o;
|
17934
17934
|
})(u, t);
|
17935
17935
|
}), T.clearPrewarmedResources = function() {
|
17936
17936
|
const u = Vi;
|
@@ -17946,7 +17946,7 @@ uniform ${P} ${A} u_${L};
|
|
17946
17946
|
}, T.getWorkerUrl = function() {
|
17947
17947
|
return c.a.WORKER_URL;
|
17948
17948
|
}, T.importScriptInWorkers = function(u) {
|
17949
|
-
return
|
17949
|
+
return os().broadcast("IS", u);
|
17950
17950
|
}, T.prewarm = function() {
|
17951
17951
|
un().acquire(qr);
|
17952
17952
|
}, T.setMaxParallelImageRequests = function(u) {
|
@@ -18038,9 +18038,9 @@ const Xh = {
|
|
18038
18038
|
}), !X.length && S && await this.addLayer(N);
|
18039
18039
|
},
|
18040
18040
|
async addLayer(y, S = {}, k = this == null ? void 0 : this.map) {
|
18041
|
-
var X, T;
|
18042
|
-
const z = this.layerList.find((
|
18043
|
-
this.map.getStyle().layers.find((
|
18041
|
+
var X, T, c;
|
18042
|
+
const z = this.layerList.find((_e) => _e.id === y) || y;
|
18043
|
+
this.map.getStyle().layers.find((_e) => _e.id === z.id) || (this.layerList.find((_e) => _e.id === z.id) || this.layerList.push(z), (z.service === "vtile" || z.service === "vector" || (X = z.url) != null && X.includes(".vmt")) && this.addVtileLayer(z, k), z.service === "geojson" && this.addGeoJsonLayer(z, k), ((T = z.url) != null && T.includes(".png") || ["tms", "raster"].includes((c = z.service) == null ? void 0 : c.toLowerCase())) && await this.addRasterLayer(z, S, k));
|
18044
18044
|
},
|
18045
18045
|
async addRasterLayer(y, S, k = this == null ? void 0 : this.map) {
|
18046
18046
|
await k.addSource(y.id, {
|
@@ -18147,16 +18147,16 @@ function cp(y, S) {
|
|
18147
18147
|
const { toString: Qm } = Object.prototype, { getPrototypeOf: Jh } = Object, Sc = /* @__PURE__ */ ((y) => (S) => {
|
18148
18148
|
const k = Qm.call(S);
|
18149
18149
|
return y[k] || (y[k] = k.slice(8, -1).toLowerCase());
|
18150
|
-
})(/* @__PURE__ */ Object.create(null)), jr = (y) => (y = y.toLowerCase(), (S) => Sc(S) === y), Tc = (y) => (S) => typeof S === y, { isArray: jo } = Array,
|
18150
|
+
})(/* @__PURE__ */ Object.create(null)), jr = (y) => (y = y.toLowerCase(), (S) => Sc(S) === y), Tc = (y) => (S) => typeof S === y, { isArray: jo } = Array, ll = Tc("undefined");
|
18151
18151
|
function eg(y) {
|
18152
|
-
return y !== null && !
|
18152
|
+
return y !== null && !ll(y) && y.constructor !== null && !ll(y.constructor) && pr(y.constructor.isBuffer) && y.constructor.isBuffer(y);
|
18153
18153
|
}
|
18154
18154
|
const hp = jr("ArrayBuffer");
|
18155
18155
|
function tg(y) {
|
18156
18156
|
let S;
|
18157
18157
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? S = ArrayBuffer.isView(y) : S = y && y.buffer && hp(y.buffer), S;
|
18158
18158
|
}
|
18159
|
-
const ig = Tc("string"), pr = Tc("function"), up = Tc("number"), Ic = (y) => y !== null && typeof y == "object", rg = (y) => y === !0 || y === !1,
|
18159
|
+
const ig = Tc("string"), pr = Tc("function"), up = Tc("number"), Ic = (y) => y !== null && typeof y == "object", rg = (y) => y === !0 || y === !1, _c = (y) => {
|
18160
18160
|
if (Sc(y) !== "object")
|
18161
18161
|
return !1;
|
18162
18162
|
const S = Jh(y);
|
@@ -18166,7 +18166,7 @@ const ig = Tc("string"), pr = Tc("function"), up = Tc("number"), Ic = (y) => y !
|
|
18166
18166
|
return y && (typeof FormData == "function" && y instanceof FormData || pr(y.append) && ((S = Sc(y)) === "formdata" || // detect form-data instance
|
18167
18167
|
S === "object" && pr(y.toString) && y.toString() === "[object FormData]"));
|
18168
18168
|
}, hg = jr("URLSearchParams"), [ug, dg, pg, fg] = ["ReadableStream", "Request", "Response", "Headers"].map(jr), mg = (y) => y.trim ? y.trim() : y.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
18169
|
-
function
|
18169
|
+
function cl(y, S, { allOwnKeys: k = !1 } = {}) {
|
18170
18170
|
if (y === null || typeof y > "u")
|
18171
18171
|
return;
|
18172
18172
|
let z, N;
|
@@ -18189,17 +18189,17 @@ function dp(y, S) {
|
|
18189
18189
|
return N;
|
18190
18190
|
return null;
|
18191
18191
|
}
|
18192
|
-
const js = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, pp = (y) => !
|
18192
|
+
const js = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, pp = (y) => !ll(y) && y !== js;
|
18193
18193
|
function Uh() {
|
18194
18194
|
const { caseless: y } = pp(this) && this || {}, S = {}, k = (z, N) => {
|
18195
18195
|
const X = y && dp(S, N) || N;
|
18196
|
-
|
18196
|
+
_c(S[X]) && _c(z) ? S[X] = Uh(S[X], z) : _c(z) ? S[X] = Uh({}, z) : jo(z) ? S[X] = z.slice() : S[X] = z;
|
18197
18197
|
};
|
18198
18198
|
for (let z = 0, N = arguments.length; z < N; z++)
|
18199
|
-
arguments[z] &&
|
18199
|
+
arguments[z] && cl(arguments[z], k);
|
18200
18200
|
return S;
|
18201
18201
|
}
|
18202
|
-
const gg = (y, S, k, { allOwnKeys: z } = {}) => (
|
18202
|
+
const gg = (y, S, k, { allOwnKeys: z } = {}) => (cl(S, (N, X) => {
|
18203
18203
|
k && pr(N) ? y[X] = cp(N, k) : y[X] = N;
|
18204
18204
|
}, { allOwnKeys: z }), y), _g = (y) => (y.charCodeAt(0) === 65279 && (y = y.slice(1)), y), yg = (y, S, k, z) => {
|
18205
18205
|
y.prototype = Object.create(S.prototype, z), y.prototype.constructor = y, Object.defineProperty(y, "super", {
|
@@ -18248,7 +18248,7 @@ const gg = (y, S, k, { allOwnKeys: z } = {}) => (ll(S, (N, X) => {
|
|
18248
18248
|
}
|
18249
18249
|
), Ud = (({ hasOwnProperty: y }) => (S, k) => y.call(S, k))(Object.prototype), Ag = jr("RegExp"), fp = (y, S) => {
|
18250
18250
|
const k = Object.getOwnPropertyDescriptors(y), z = {};
|
18251
|
-
|
18251
|
+
cl(k, (N, X) => {
|
18252
18252
|
let T;
|
18253
18253
|
(T = S(N, X, y)) !== !1 && (z[X] = T || N);
|
18254
18254
|
}), Object.defineProperties(y, z);
|
@@ -18297,9 +18297,9 @@ const Lg = (y) => {
|
|
18297
18297
|
if (!("toJSON" in z)) {
|
18298
18298
|
S[N] = z;
|
18299
18299
|
const X = jo(z) ? [] : {};
|
18300
|
-
return
|
18300
|
+
return cl(z, (T, c) => {
|
18301
18301
|
const _e = k(T, N + 1);
|
18302
|
-
!
|
18302
|
+
!ll(_e) && (X[c] = _e);
|
18303
18303
|
}), S[N] = void 0, X;
|
18304
18304
|
}
|
18305
18305
|
}
|
@@ -18323,12 +18323,12 @@ const Lg = (y) => {
|
|
18323
18323
|
isNumber: up,
|
18324
18324
|
isBoolean: rg,
|
18325
18325
|
isObject: Ic,
|
18326
|
-
isPlainObject:
|
18326
|
+
isPlainObject: _c,
|
18327
18327
|
isReadableStream: ug,
|
18328
18328
|
isRequest: dg,
|
18329
18329
|
isResponse: pg,
|
18330
18330
|
isHeaders: fg,
|
18331
|
-
isUndefined:
|
18331
|
+
isUndefined: ll,
|
18332
18332
|
isDate: ng,
|
18333
18333
|
isFile: sg,
|
18334
18334
|
isBlob: og,
|
@@ -18338,7 +18338,7 @@ const Lg = (y) => {
|
|
18338
18338
|
isURLSearchParams: hg,
|
18339
18339
|
isTypedArray: wg,
|
18340
18340
|
isFileList: ag,
|
18341
|
-
forEach:
|
18341
|
+
forEach: cl,
|
18342
18342
|
merge: Uh,
|
18343
18343
|
extend: gg,
|
18344
18344
|
trim: mg,
|
@@ -18448,8 +18448,8 @@ function Pc(y, S, k) {
|
|
18448
18448
|
metaTokens: !0,
|
18449
18449
|
dots: !1,
|
18450
18450
|
indexes: !1
|
18451
|
-
}, !1, function(
|
18452
|
-
return !pe.isUndefined(Ne[
|
18451
|
+
}, !1, function(et, Ne) {
|
18452
|
+
return !pe.isUndefined(Ne[et]);
|
18453
18453
|
});
|
18454
18454
|
const z = k.metaTokens, N = k.visitor || we, X = k.dots, T = k.indexes, _e = (k.Blob || typeof Blob < "u" && Blob) && pe.isSpecCompliantForm(S);
|
18455
18455
|
if (!pe.isFunction(N))
|
@@ -18462,39 +18462,39 @@ function Pc(y, S, k) {
|
|
18462
18462
|
throw new lt("Blob is not supported. Use a Buffer instead.");
|
18463
18463
|
return pe.isArrayBuffer(Ze) || pe.isTypedArray(Ze) ? _e && typeof Blob == "function" ? new Blob([Ze]) : Buffer.from(Ze) : Ze;
|
18464
18464
|
}
|
18465
|
-
function we(Ze,
|
18465
|
+
function we(Ze, et, Ne) {
|
18466
18466
|
let dt = Ze;
|
18467
18467
|
if (Ze && !Ne && typeof Ze == "object") {
|
18468
|
-
if (pe.endsWith(
|
18469
|
-
|
18470
|
-
else if (pe.isArray(Ze) && Vg(Ze) || (pe.isFileList(Ze) || pe.endsWith(
|
18471
|
-
return
|
18468
|
+
if (pe.endsWith(et, "{}"))
|
18469
|
+
et = z ? et : et.slice(0, -2), Ze = JSON.stringify(Ze);
|
18470
|
+
else if (pe.isArray(Ze) && Vg(Ze) || (pe.isFileList(Ze) || pe.endsWith(et, "[]")) && (dt = pe.toArray(Ze)))
|
18471
|
+
return et = xp(et), dt.forEach(function(ke, At) {
|
18472
18472
|
!(pe.isUndefined(ke) || ke === null) && S.append(
|
18473
18473
|
// eslint-disable-next-line no-nested-ternary
|
18474
|
-
T === !0 ? qd([
|
18474
|
+
T === !0 ? qd([et], At, X) : T === null ? et : et + "[]",
|
18475
18475
|
ye(ke)
|
18476
18476
|
);
|
18477
18477
|
}), !1;
|
18478
18478
|
}
|
18479
|
-
return $h(Ze) ? !0 : (S.append(qd(Ne,
|
18479
|
+
return $h(Ze) ? !0 : (S.append(qd(Ne, et, X), ye(Ze)), !1);
|
18480
18480
|
}
|
18481
18481
|
const le = [], oe = Object.assign(Ng, {
|
18482
18482
|
defaultVisitor: we,
|
18483
18483
|
convertValue: ye,
|
18484
18484
|
isVisitable: $h
|
18485
18485
|
});
|
18486
|
-
function gt(Ze,
|
18486
|
+
function gt(Ze, et) {
|
18487
18487
|
if (!pe.isUndefined(Ze)) {
|
18488
18488
|
if (le.indexOf(Ze) !== -1)
|
18489
|
-
throw Error("Circular reference detected in " +
|
18489
|
+
throw Error("Circular reference detected in " + et.join("."));
|
18490
18490
|
le.push(Ze), pe.forEach(Ze, function(dt, Ot) {
|
18491
18491
|
(!(pe.isUndefined(dt) || dt === null) && N.call(
|
18492
18492
|
S,
|
18493
18493
|
dt,
|
18494
18494
|
pe.isString(Ot) ? Ot.trim() : Ot,
|
18495
|
-
|
18495
|
+
et,
|
18496
18496
|
oe
|
18497
|
-
)) === !0 && gt(dt,
|
18497
|
+
)) === !0 && gt(dt, et ? et.concat(Ot) : [Ot]);
|
18498
18498
|
}), le.pop();
|
18499
18499
|
}
|
18500
18500
|
}
|
@@ -18666,7 +18666,7 @@ function Qg(y, S, k) {
|
|
18666
18666
|
}
|
18667
18667
|
return (k || JSON.stringify)(y);
|
18668
18668
|
}
|
18669
|
-
const
|
18669
|
+
const hl = {
|
18670
18670
|
transitional: wp,
|
18671
18671
|
adapter: ["xhr", "http", "fetch"],
|
18672
18672
|
transformRequest: [function(S, k) {
|
@@ -18695,7 +18695,7 @@ const cl = {
|
|
18695
18695
|
return X || N ? (k.setContentType("application/json", !1), Qg(S)) : S;
|
18696
18696
|
}],
|
18697
18697
|
transformResponse: [function(S) {
|
18698
|
-
const k = this.transitional ||
|
18698
|
+
const k = this.transitional || hl.transitional, z = k && k.forcedJSONParsing, N = this.responseType === "json";
|
18699
18699
|
if (pe.isResponse(S) || pe.isReadableStream(S))
|
18700
18700
|
return S;
|
18701
18701
|
if (S && pe.isString(S) && (z && !this.responseType || N)) {
|
@@ -18733,7 +18733,7 @@ const cl = {
|
|
18733
18733
|
}
|
18734
18734
|
};
|
18735
18735
|
pe.forEach(["delete", "get", "head", "post", "put", "patch"], (y) => {
|
18736
|
-
|
18736
|
+
hl.headers[y] = {};
|
18737
18737
|
});
|
18738
18738
|
const e_ = pe.toObjectSet([
|
18739
18739
|
"age",
|
@@ -18764,8 +18764,8 @@ const e_ = pe.toObjectSet([
|
|
18764
18764
|
function nl(y) {
|
18765
18765
|
return y && String(y).trim().toLowerCase();
|
18766
18766
|
}
|
18767
|
-
function
|
18768
|
-
return y === !1 || y == null ? y : pe.isArray(y) ? y.map(
|
18767
|
+
function yc(y) {
|
18768
|
+
return y === !1 || y == null ? y : pe.isArray(y) ? y.map(yc) : String(y);
|
18769
18769
|
}
|
18770
18770
|
function i_(y) {
|
18771
18771
|
const S = /* @__PURE__ */ Object.create(null), k = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
@@ -18810,7 +18810,7 @@ class Qi {
|
|
18810
18810
|
if (!we)
|
18811
18811
|
throw new Error("header name must be a non-empty string");
|
18812
18812
|
const le = pe.findKey(N, we);
|
18813
|
-
(!le || N[le] === void 0 || ye === !0 || ye === void 0 && N[le] !== !1) && (N[le || _e] =
|
18813
|
+
(!le || N[le] === void 0 || ye === !0 || ye === void 0 && N[le] !== !1) && (N[le || _e] = yc(c));
|
18814
18814
|
}
|
18815
18815
|
const T = (c, _e) => pe.forEach(c, (ye, we) => X(ye, we, _e));
|
18816
18816
|
if (pe.isPlainObject(S) || S instanceof this.constructor)
|
@@ -18873,11 +18873,11 @@ class Qi {
|
|
18873
18873
|
return pe.forEach(this, (N, X) => {
|
18874
18874
|
const T = pe.findKey(z, X);
|
18875
18875
|
if (T) {
|
18876
|
-
k[T] =
|
18876
|
+
k[T] = yc(N), delete k[X];
|
18877
18877
|
return;
|
18878
18878
|
}
|
18879
18879
|
const c = S ? n_(X) : String(X).trim();
|
18880
|
-
c !== X && delete k[X], k[c] =
|
18880
|
+
c !== X && delete k[X], k[c] = yc(N), z[c] = !0;
|
18881
18881
|
}), this;
|
18882
18882
|
}
|
18883
18883
|
concat(...S) {
|
@@ -18929,7 +18929,7 @@ pe.reduceDescriptors(Qi.prototype, ({ value: y }, S) => {
|
|
18929
18929
|
});
|
18930
18930
|
pe.freezeMethods(Qi);
|
18931
18931
|
function Vh(y, S) {
|
18932
|
-
const k = this ||
|
18932
|
+
const k = this || hl, z = S || k, N = Qi.from(z.headers);
|
18933
18933
|
let X = z.data;
|
18934
18934
|
return pe.forEach(y, function(c) {
|
18935
18935
|
X = c.call(k, X, N.normalize(), S ? S.status : void 0);
|
@@ -19171,7 +19171,7 @@ const Ap = (y) => {
|
|
19171
19171
|
let X = N.data;
|
19172
19172
|
const T = Qi.from(N.headers).normalize();
|
19173
19173
|
let { responseType: c, onUploadProgress: _e, onDownloadProgress: ye } = N, we, le, oe, gt, Ze;
|
19174
|
-
function
|
19174
|
+
function et() {
|
19175
19175
|
gt && gt(), Ze && Ze(), N.cancelToken && N.cancelToken.unsubscribe(we), N.signal && N.signal.removeEventListener("abort", we);
|
19176
19176
|
}
|
19177
19177
|
let Ne = new XMLHttpRequest();
|
@@ -19190,9 +19190,9 @@ const Ap = (y) => {
|
|
19190
19190
|
request: Ne
|
19191
19191
|
};
|
19192
19192
|
Ip(function($t) {
|
19193
|
-
k($t),
|
19193
|
+
k($t), et();
|
19194
19194
|
}, function($t) {
|
19195
|
-
z($t),
|
19195
|
+
z($t), et();
|
19196
19196
|
}, It), Ne = null;
|
19197
19197
|
}
|
19198
19198
|
"onloadend" in Ne ? Ne.onloadend = dt : Ne.onreadystatechange = function() {
|
@@ -19341,11 +19341,11 @@ const x_ = async (y) => {
|
|
19341
19341
|
fetchOptions: oe
|
19342
19342
|
} = Ap(y);
|
19343
19343
|
ye = ye ? (ye + "").toLowerCase() : "text";
|
19344
|
-
let [gt, Ze] = N || X || T ? m_([N, X], T) : [],
|
19344
|
+
let [gt, Ze] = N || X || T ? m_([N, X], T) : [], et, Ne;
|
19345
19345
|
const dt = () => {
|
19346
|
-
!
|
19346
|
+
!et && setTimeout(() => {
|
19347
19347
|
gt && gt.unsubscribe();
|
19348
|
-
}),
|
19348
|
+
}), et = !0;
|
19349
19349
|
};
|
19350
19350
|
let Ot;
|
19351
19351
|
try {
|
@@ -19463,7 +19463,7 @@ function ep(y) {
|
|
19463
19463
|
return Nh(y), y.headers = Qi.from(y.headers), y.data = Vh.call(
|
19464
19464
|
y,
|
19465
19465
|
y.transformRequest
|
19466
|
-
), ["post", "put", "patch"].indexOf(y.method) !== -1 && y.headers.setContentType("application/x-www-form-urlencoded", !1), Ep.getAdapter(y.adapter ||
|
19466
|
+
), ["post", "put", "patch"].indexOf(y.method) !== -1 && y.headers.setContentType("application/x-www-form-urlencoded", !1), Ep.getAdapter(y.adapter || hl.adapter)(y).then(function(z) {
|
19467
19467
|
return Nh(y), z.data = Vh.call(
|
19468
19468
|
y,
|
19469
19469
|
y.transformResponse,
|
@@ -19580,12 +19580,12 @@ class Us {
|
|
19580
19580
|
), k.headers = Qi.concat(T, X);
|
19581
19581
|
const c = [];
|
19582
19582
|
let _e = !0;
|
19583
|
-
this.interceptors.request.forEach(function(
|
19584
|
-
typeof
|
19583
|
+
this.interceptors.request.forEach(function(et) {
|
19584
|
+
typeof et.runWhen == "function" && et.runWhen(k) === !1 || (_e = _e && et.synchronous, c.unshift(et.fulfilled, et.rejected));
|
19585
19585
|
});
|
19586
19586
|
const ye = [];
|
19587
|
-
this.interceptors.response.forEach(function(
|
19588
|
-
ye.push(
|
19587
|
+
this.interceptors.response.forEach(function(et) {
|
19588
|
+
ye.push(et.fulfilled, et.rejected);
|
19589
19589
|
});
|
19590
19590
|
let we, le = 0, oe;
|
19591
19591
|
if (!_e) {
|
@@ -19597,11 +19597,11 @@ class Us {
|
|
19597
19597
|
oe = c.length;
|
19598
19598
|
let gt = k;
|
19599
19599
|
for (le = 0; le < oe; ) {
|
19600
|
-
const Ze = c[le++],
|
19600
|
+
const Ze = c[le++], et = c[le++];
|
19601
19601
|
try {
|
19602
19602
|
gt = Ze(gt);
|
19603
19603
|
} catch (Ne) {
|
19604
|
-
|
19604
|
+
et.call(this, Ne);
|
19605
19605
|
break;
|
19606
19606
|
}
|
19607
19607
|
}
|
@@ -19793,7 +19793,7 @@ function zp(y) {
|
|
19793
19793
|
return zp(qs(y, N));
|
19794
19794
|
}, k;
|
19795
19795
|
}
|
19796
|
-
const Jt = zp(
|
19796
|
+
const Jt = zp(hl);
|
19797
19797
|
Jt.Axios = Us;
|
19798
19798
|
Jt.CanceledError = Uo;
|
19799
19799
|
Jt.CancelToken = eu;
|
@@ -19873,8 +19873,8 @@ function rp(y) {
|
|
19873
19873
|
}
|
19874
19874
|
function Fp(y, S, k) {
|
19875
19875
|
if (y !== null)
|
19876
|
-
for (var z, N, X, T, c, _e, ye, we = 0, le = 0, oe, gt = y.type, Ze = gt === "FeatureCollection",
|
19877
|
-
ye = Ze ? y.features[dt].geometry :
|
19876
|
+
for (var z, N, X, T, c, _e, ye, we = 0, le = 0, oe, gt = y.type, Ze = gt === "FeatureCollection", et = gt === "Feature", Ne = Ze ? y.features.length : 1, dt = 0; dt < Ne; dt++) {
|
19877
|
+
ye = Ze ? y.features[dt].geometry : et ? y.geometry : y, oe = ye ? ye.type === "GeometryCollection" : !1, c = oe ? ye.geometries.length : 1;
|
19878
19878
|
for (var Ot = 0; Ot < c; Ot++) {
|
19879
19879
|
var ke = 0, At = 0;
|
19880
19880
|
if (T = oe ? ye.geometries[Ot] : ye, T !== null) {
|
@@ -20036,25 +20036,27 @@ const A_ = {
|
|
20036
20036
|
this.selectedLayer = y, this.changeBaseLayer(this.selectedLayer);
|
20037
20037
|
}
|
20038
20038
|
}
|
20039
|
-
}, C_ = { class: "vs-map-slot-layers" }, k_ = ["onClick"], E_ = ["src"
|
20039
|
+
}, C_ = { class: "vs-map-slot-layers" }, k_ = ["onClick"], E_ = ["src"];
|
20040
20040
|
function M_(y, S, k, z, N, X) {
|
20041
20041
|
return xt(), Ut("div", C_, [
|
20042
|
-
(xt(!0), Ut(
|
20042
|
+
(xt(!0), Ut(xc, null, vc(k.baseLayers, (T, c) => (xt(), Ut("div", {
|
20043
20043
|
key: T.id,
|
20044
|
-
class:
|
20045
|
-
onClick: (
|
20044
|
+
class: al(["vs-map-slot-layers__layer relative", { focused: T.id == N.selectedLayer }]),
|
20045
|
+
onClick: (_e) => X.toggleLayerVisibility(T.id)
|
20046
20046
|
}, [
|
20047
|
-
|
20048
|
-
width: "50",
|
20049
|
-
height: "50",
|
20047
|
+
Qe("img", {
|
20050
20048
|
src: T.image,
|
20051
|
-
class: "vs-map-slot-layers__image"
|
20052
|
-
|
20053
|
-
|
20049
|
+
class: "vs-map-slot-layers__image"
|
20050
|
+
}, null, 8, E_),
|
20051
|
+
Qe("div", {
|
20052
|
+
class: al(["absolute py-2 px-4 text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg top-[-46px] text-nowrap p-2 hidden", [
|
20053
|
+
c === 0 ? "left-[-10px]" : "left-[50%] translate-x-[-50%] "
|
20054
|
+
]])
|
20055
|
+
}, ss(T == null ? void 0 : T.name), 3)
|
20054
20056
|
], 10, k_))), 128))
|
20055
20057
|
]);
|
20056
20058
|
}
|
20057
|
-
const z_ = /* @__PURE__ */ cn(A_, [["render", M_], ["__scopeId", "data-v-
|
20059
|
+
const z_ = /* @__PURE__ */ cn(A_, [["render", M_], ["__scopeId", "data-v-feacf7c0"]]), D_ = {
|
20058
20060
|
props: ["colors"],
|
20059
20061
|
methods: {
|
20060
20062
|
capitalizeFirstLetter(y) {
|
@@ -20067,13 +20069,13 @@ const z_ = /* @__PURE__ */ cn(A_, [["render", M_], ["__scopeId", "data-v-6644a27
|
|
20067
20069
|
}, B_ = { class: "ml-1" };
|
20068
20070
|
function O_(y, S, k, z, N, X) {
|
20069
20071
|
return xt(), Ut("div", L_, [
|
20070
|
-
(xt(!0), Ut(
|
20072
|
+
(xt(!0), Ut(xc, null, vc(k.colors, (T) => (xt(), Ut("div", R_, [
|
20071
20073
|
T.id > 0 ? (xt(), Ut("div", F_, [
|
20072
|
-
|
20074
|
+
Qe("div", {
|
20073
20075
|
class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
|
20074
20076
|
style: sp({ backgroundColor: T.color })
|
20075
20077
|
}, null, 4),
|
20076
|
-
|
20078
|
+
Qe("div", B_, ss(X.capitalizeFirstLetter(T.text)), 1)
|
20077
20079
|
])) : Or("", !0)
|
20078
20080
|
]))), 256))
|
20079
20081
|
]);
|
@@ -20254,7 +20256,7 @@ const V_ = /* @__PURE__ */ cn(D_, [["render", O_]]), N_ = {
|
|
20254
20256
|
function U_(y, S, k, z, N, X) {
|
20255
20257
|
const T = Wi("MapLegend"), c = Wi("MapSlotLayers");
|
20256
20258
|
return xt(), Ut("div", j_, [
|
20257
|
-
|
20259
|
+
Qe("div", {
|
20258
20260
|
id: "maplibre-map",
|
20259
20261
|
ref: "maplibreMap",
|
20260
20262
|
style: sp({ height: k.height, width: k.width })
|
@@ -20294,11 +20296,11 @@ const X_ = /* @__PURE__ */ cn(q_, [["render", W_]]), J_ = {}, K_ = {
|
|
20294
20296
|
"stroke-linecap": "round",
|
20295
20297
|
"stroke-linejoin": "round",
|
20296
20298
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-collapse"
|
20297
|
-
}, Y_ = /* @__PURE__ */
|
20299
|
+
}, Y_ = /* @__PURE__ */ Qe("path", {
|
20298
20300
|
stroke: "none",
|
20299
20301
|
d: "M0 0h24v24H0z",
|
20300
20302
|
fill: "none"
|
20301
|
-
}, null, -1), Q_ = /* @__PURE__ */
|
20303
|
+
}, null, -1), Q_ = /* @__PURE__ */ Qe("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1), ey = /* @__PURE__ */ Qe("path", { d: "M15 4v16" }, null, -1), ty = /* @__PURE__ */ Qe("path", { d: "M9 10l2 2l-2 2" }, null, -1), iy = [
|
20302
20304
|
Y_,
|
20303
20305
|
Q_,
|
20304
20306
|
ey,
|
@@ -20318,11 +20320,11 @@ const ny = /* @__PURE__ */ cn(J_, [["render", ry]]), sy = {}, oy = {
|
|
20318
20320
|
"stroke-linecap": "round",
|
20319
20321
|
"stroke-linejoin": "round",
|
20320
20322
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-expand"
|
20321
|
-
}, ay = /* @__PURE__ */
|
20323
|
+
}, ay = /* @__PURE__ */ Qe("path", {
|
20322
20324
|
stroke: "none",
|
20323
20325
|
d: "M0 0h24v24H0z",
|
20324
20326
|
fill: "none"
|
20325
|
-
}, null, -1), ly = /* @__PURE__ */
|
20327
|
+
}, null, -1), ly = /* @__PURE__ */ Qe("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1), cy = /* @__PURE__ */ Qe("path", { d: "M15 4v16" }, null, -1), hy = /* @__PURE__ */ Qe("path", { d: "M10 10l-2 2l2 2" }, null, -1), uy = [
|
20326
20328
|
ay,
|
20327
20329
|
ly,
|
20328
20330
|
cy,
|
@@ -20342,7 +20344,7 @@ const py = /* @__PURE__ */ cn(sy, [["render", dy]]), fy = {}, my = {
|
|
20342
20344
|
"stroke-width": "2",
|
20343
20345
|
"stroke-linecap": "round",
|
20344
20346
|
"stroke-linejoin": "round"
|
20345
|
-
}, gy = /* @__PURE__ */
|
20347
|
+
}, gy = /* @__PURE__ */ Qe("path", { d: "M18 6 6 18" }, null, -1), _y = /* @__PURE__ */ Qe("path", { d: "m6 6 12 12" }, null, -1), yy = [
|
20346
20348
|
gy,
|
20347
20349
|
_y
|
20348
20350
|
];
|
@@ -20380,7 +20382,7 @@ const vy = /* @__PURE__ */ cn(fy, [["render", xy]]), by = {
|
|
20380
20382
|
this.$emit("update:visible", !1), this.$emit("onClose");
|
20381
20383
|
}
|
20382
20384
|
}
|
20383
|
-
}, Vp = (y) => (Bm("data-v-0a173fd8"), y = y(), Om(), y), wy = { class: "vsTailwind ui-dialog__wrapper" }, Sy = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, Ty = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, Iy = { class: "font-medium text-gray-800" }, Py = /* @__PURE__ */ Vp(() => /* @__PURE__ */
|
20385
|
+
}, Vp = (y) => (Bm("data-v-0a173fd8"), y = y(), Om(), y), wy = { class: "vsTailwind ui-dialog__wrapper" }, Sy = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, Ty = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, Iy = { class: "font-medium text-gray-800" }, Py = /* @__PURE__ */ Vp(() => /* @__PURE__ */ Qe("span", { class: "sr-only" }, "Close", -1)), Ay = /* @__PURE__ */ Vp(() => /* @__PURE__ */ Qe("svg", {
|
20384
20386
|
class: "flex-shrink-0 w-4 h-4",
|
20385
20387
|
xmlns: "http://www.w3.org/2000/svg",
|
20386
20388
|
width: "24",
|
@@ -20392,8 +20394,8 @@ const vy = /* @__PURE__ */ cn(fy, [["render", xy]]), by = {
|
|
20392
20394
|
"stroke-linecap": "round",
|
20393
20395
|
"stroke-linejoin": "round"
|
20394
20396
|
}, [
|
20395
|
-
/* @__PURE__ */
|
20396
|
-
/* @__PURE__ */
|
20397
|
+
/* @__PURE__ */ Qe("path", { d: "M18 6 6 18" }),
|
20398
|
+
/* @__PURE__ */ Qe("path", { d: "m6 6 12 12" })
|
20397
20399
|
], -1)), Cy = [
|
20398
20400
|
Py,
|
20399
20401
|
Ay
|
@@ -20405,25 +20407,25 @@ function My(y, S, k, z, N, X) {
|
|
20405
20407
|
return xt(), ns(Lm, { to: "#modal" }, [
|
20406
20408
|
Vr(Vd, { name: "fade" }, {
|
20407
20409
|
default: sl(() => [
|
20408
|
-
Rm(
|
20409
|
-
|
20410
|
+
Rm(Qe("div", wy, [
|
20411
|
+
Qe("div", Sy, [
|
20410
20412
|
Vr(Vd, {
|
20411
20413
|
name: "content",
|
20412
20414
|
appear: ""
|
20413
20415
|
}, {
|
20414
20416
|
default: sl(() => [
|
20415
|
-
|
20416
|
-
class:
|
20417
|
+
Qe("div", {
|
20418
|
+
class: al(["ui-dialog__modal opacity-1 transition-all flex flex-col bg-white border pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl", [X.checkSize]])
|
20417
20419
|
}, [
|
20418
|
-
|
20419
|
-
|
20420
|
-
|
20420
|
+
Qe("div", Ty, [
|
20421
|
+
Qe("h3", Iy, ss(k.title), 1),
|
20422
|
+
Qe("button", {
|
20421
20423
|
type: "button",
|
20422
20424
|
class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
|
20423
20425
|
onClick: S[0] || (S[0] = (...T) => X.handleClose && X.handleClose(...T))
|
20424
20426
|
}, Cy)
|
20425
20427
|
]),
|
20426
|
-
|
20428
|
+
Qe("div", ky, [
|
20427
20429
|
ol(y.$slots, "default", {}, void 0, !0)
|
20428
20430
|
]),
|
20429
20431
|
X.hasSlot ? (xt(), Ut("div", Ey, [
|
@@ -20461,14 +20463,18 @@ const zy = /* @__PURE__ */ cn(by, [["render", My], ["__scopeId", "data-v-0a173fd
|
|
20461
20463
|
rows: { type: String, default: () => null },
|
20462
20464
|
initTotal: { type: String, default: () => "" },
|
20463
20465
|
colorAttr: { type: String, default: () => "" },
|
20464
|
-
maxBounds: {
|
20465
|
-
|
20466
|
-
[
|
20467
|
-
|
20466
|
+
maxBounds: {
|
20467
|
+
type: String,
|
20468
|
+
default: () => [
|
20469
|
+
[22, 44.4],
|
20470
|
+
[40, 52.5]
|
20471
|
+
]
|
20472
|
+
},
|
20468
20473
|
id: { type: String, default: () => "" },
|
20469
20474
|
isAutocomplete: { type: Boolean, default: () => !1 },
|
20470
20475
|
zoom: { type: String, default: () => "13" },
|
20471
|
-
maskForSearch: { type: String, default: () => null }
|
20476
|
+
maskForSearch: { type: String, default: () => null },
|
20477
|
+
basemap: { type: Array }
|
20472
20478
|
},
|
20473
20479
|
mixins: [Xh],
|
20474
20480
|
components: {
|
@@ -20669,10 +20675,7 @@ const zy = /* @__PURE__ */ cn(by, [["render", My], ["__scopeId", "data-v-0a173fd
|
|
20669
20675
|
async handleSearchRegionValue(y) {
|
20670
20676
|
var k;
|
20671
20677
|
const S = this.map.getLayer("region-search-id");
|
20672
|
-
this.searchRegion = y, y === "" && S ? ((k = this.map) == null || k.fitBounds(
|
20673
|
-
this.maxBounds,
|
20674
|
-
{}
|
20675
|
-
), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData()) : y === "" && this.getData();
|
20678
|
+
this.searchRegion = y, y === "" && S ? ((k = this.map) == null || k.fitBounds(this.maxBounds, {}), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData()) : y === "" && this.getData();
|
20676
20679
|
},
|
20677
20680
|
handleFilterChange(y) {
|
20678
20681
|
this.currentPage = y.state.page || 1, this.filterUrl = y.url.split("|").filter((S) => !S.includes("page=")).join("|");
|
@@ -20683,10 +20686,7 @@ const zy = /* @__PURE__ */ cn(by, [["render", My], ["__scopeId", "data-v-0a173fd
|
|
20683
20686
|
},
|
20684
20687
|
handleFilterSubmit() {
|
20685
20688
|
var y;
|
20686
|
-
this.isSelectObj = "", this.selectedId = "", this.selectedId = !1, (y = this.map) == null || y.fitBounds(
|
20687
|
-
this.maxBounds,
|
20688
|
-
{}
|
20689
|
-
), this.isFilterVisible = !1;
|
20689
|
+
this.isSelectObj = "", this.selectedId = "", this.selectedId = !1, (y = this.map) == null || y.fitBounds(this.maxBounds, {}), this.isFilterVisible = !1;
|
20690
20690
|
},
|
20691
20691
|
toggleFilterShown() {
|
20692
20692
|
this.isFilterVisible = !this.isFilterVisible;
|
@@ -20800,19 +20800,19 @@ const zy = /* @__PURE__ */ cn(by, [["render", My], ["__scopeId", "data-v-0a173fd
|
|
20800
20800
|
}), Ly = { class: "ml-3 pt-5" }, Ry = { class: "w-full gap-5 flex justify-between mb-[10px] pr-3" }, Fy = { class: "flex gap-[20px]" }, By = {
|
20801
20801
|
key: 0,
|
20802
20802
|
class: "font-medium text-[10px] min-w-[16px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full"
|
20803
|
-
}, Oy = { class: "p-4 flex-1 flex flex-wrap justify-end items-center gap-2" }, Vy = ["title"], Ny = /* @__PURE__ */
|
20803
|
+
}, Oy = { class: "p-4 flex-1 flex flex-wrap justify-end items-center gap-2" }, Vy = ["title"], Ny = /* @__PURE__ */ Qe("span", { class: "sr-only" }, "Відкрити мапу", -1), jy = { class: "flex" }, Uy = { class: "py-[15px] pb-[24px] pl-2" }, $y = { class: "font-bold text-2xl mr-[10px]" }, qy = { class: "text-sm text-stone-500 font-medium" }, Zy = /* @__PURE__ */ Qe("span", { class: "text-sm text-stone-500 font-medium" }, " об'єктів", -1), Gy = {
|
20804
20804
|
class: "wrapperTable flex flex-col",
|
20805
20805
|
style: { height: "calc(100vh - 302px)" }
|
20806
20806
|
}, Hy = {
|
20807
20807
|
key: 0,
|
20808
20808
|
class: "flex gap-x-2 flex-wrap"
|
20809
|
-
}, Wy = { class: "font-medium" }, Xy = /* @__PURE__ */
|
20809
|
+
}, Wy = { class: "font-medium" }, Xy = /* @__PURE__ */ Qe("span", { class: "h-3 mx-2 border-s border-gray-200" }, null, -1), Jy = { class: "text-gray-500" }, Ky = ["onClick"], Yy = {
|
20810
20810
|
key: 0,
|
20811
20811
|
class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full"
|
20812
|
-
}, Qy = /* @__PURE__ */
|
20812
|
+
}, Qy = /* @__PURE__ */ Qe("span", { class: "font-medium" }, " Очистити ", -1), e0 = {
|
20813
20813
|
key: 2,
|
20814
20814
|
class: "text-center py-28"
|
20815
|
-
}, t0 = /* @__PURE__ */
|
20815
|
+
}, t0 = /* @__PURE__ */ Qe("h2", { class: "font-medium text-base text-gray-500 rounded-xl" }, " За вашим запитом даних не знайдено! ", -1), i0 = /* @__PURE__ */ Qe("p", { class: "font-normal text-sm text-gray-500 rounded-xl" }, " Введіть, будь ласка, інші значення для пошуку. ", -1), r0 = { key: 0 }, n0 = {
|
20816
20816
|
key: 1,
|
20817
20817
|
class: "my-5 pr-2"
|
20818
20818
|
}, s0 = { class: "flex justify-between" }, o0 = {
|
@@ -20823,11 +20823,11 @@ const zy = /* @__PURE__ */ cn(by, [["render", My], ["__scopeId", "data-v-0a173fd
|
|
20823
20823
|
style: { display: "none" }
|
20824
20824
|
};
|
20825
20825
|
function c0(y, S, k, z, N, X) {
|
20826
|
-
const T = Wi("VsAutocompleteOption"), c = Wi("vs-autocomplete"), _e = Wi("VsTextMask"), ye = Wi("vs-text"), we = Wi("FilterIcon"), le = Wi("VsFilter"), oe = Wi("VsDialog"), gt = Wi("VisibleMapIcon"), Ze = Wi("HiddenMapIcon"),
|
20826
|
+
const T = Wi("VsAutocompleteOption"), c = Wi("vs-autocomplete"), _e = Wi("VsTextMask"), ye = Wi("vs-text"), we = Wi("FilterIcon"), le = Wi("VsFilter"), oe = Wi("VsDialog"), gt = Wi("VisibleMapIcon"), Ze = Wi("HiddenMapIcon"), et = Wi("CloseIcon"), Ne = Wi("NoData"), dt = Wi("VsPagination"), Ot = Wi("MapPortal");
|
20827
20827
|
return xt(), Ut("section", Ly, [
|
20828
|
-
|
20829
|
-
|
20830
|
-
|
20828
|
+
Qe("div", null, [
|
20829
|
+
Qe("div", Ry, [
|
20830
|
+
Qe("div", Fy, [
|
20831
20831
|
y.isAutocomplete ? (xt(), ns(c, {
|
20832
20832
|
key: 0,
|
20833
20833
|
modelValue: y.regionSelectValue,
|
@@ -20844,7 +20844,7 @@ function c0(y, S, k, z, N, X) {
|
|
20844
20844
|
class: "w-[350px]"
|
20845
20845
|
}, {
|
20846
20846
|
default: sl(() => [
|
20847
|
-
(xt(!0), Ut(
|
20847
|
+
(xt(!0), Ut(xc, null, vc(y.searchRegionResult, (ke) => (xt(), ns(T, {
|
20848
20848
|
class: "cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
20849
20849
|
key: ke == null ? void 0 : ke.id,
|
20850
20850
|
value: ke,
|
@@ -20877,14 +20877,14 @@ function c0(y, S, k, z, N, X) {
|
|
20877
20877
|
style: { height: "38px", "min-width": "300px", "max-width": "300px" },
|
20878
20878
|
ref: "searchInput"
|
20879
20879
|
}, null, 8, ["model-value", "onUpdate:modelValue"])),
|
20880
|
-
|
20880
|
+
Qe("button", {
|
20881
20881
|
type: "button",
|
20882
20882
|
class: "py-2 px-2.5 max-h-[38px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
|
20883
20883
|
onClick: S[1] || (S[1] = (...ke) => y.toggleFilterShown && y.toggleFilterShown(...ke))
|
20884
20884
|
}, [
|
20885
20885
|
Vr(we),
|
20886
20886
|
Nm(" Фільтри "),
|
20887
|
-
y.activeFiltersCount >= 1 ? (xt(), Ut("span", By,
|
20887
|
+
y.activeFiltersCount >= 1 ? (xt(), Ut("span", By, ss(y.activeFiltersCount), 1)) : Or("", !0)
|
20888
20888
|
]),
|
20889
20889
|
Vr(oe, {
|
20890
20890
|
visible: y.isFilterVisible,
|
@@ -20896,12 +20896,12 @@ function c0(y, S, k, z, N, X) {
|
|
20896
20896
|
})
|
20897
20897
|
}, {
|
20898
20898
|
footer: sl(() => [
|
20899
|
-
|
20900
|
-
|
20899
|
+
Qe("div", Oy, [
|
20900
|
+
Qe("button", {
|
20901
20901
|
onClick: S[2] || (S[2] = (...ke) => y.resetFilters && y.resetFilters(...ke)),
|
20902
20902
|
class: "py-2 px-3 inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
20903
20903
|
}, " Очистити все "),
|
20904
|
-
|
20904
|
+
Qe("button", {
|
20905
20905
|
onClick: S[3] || (S[3] = (...ke) => y.updateTableAndMap && y.updateTableAndMap(...ke)),
|
20906
20906
|
class: "py-2 px-3 inline-flex justify-center items-center gap-x-2 text-start bg-blue-600 border border-blue-600 text-white text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"
|
20907
20907
|
}, " Застосувати ")
|
@@ -20922,7 +20922,7 @@ function c0(y, S, k, z, N, X) {
|
|
20922
20922
|
_: 1
|
20923
20923
|
}, 8, ["visible"])
|
20924
20924
|
]),
|
20925
|
-
|
20925
|
+
Qe("button", {
|
20926
20926
|
type: "button",
|
20927
20927
|
class: "py-2 px-2 inline-flex items-center gap-x-1.5 text-sm rounded-lg border border-gray-200 bg-white text-gray-600 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100",
|
20928
20928
|
title: y.isMapVisible ? "Приховати карту" : "Показати карту",
|
@@ -20932,44 +20932,44 @@ function c0(y, S, k, z, N, X) {
|
|
20932
20932
|
Ny
|
20933
20933
|
], 8, Vy)
|
20934
20934
|
]),
|
20935
|
-
|
20936
|
-
|
20937
|
-
class:
|
20935
|
+
Qe("div", jy, [
|
20936
|
+
Qe("div", {
|
20937
|
+
class: al([
|
20938
20938
|
"relative overflow-hidden",
|
20939
20939
|
y.isMapVisible ? "w-2/4 mr-0" : "w-full mr-3",
|
20940
20940
|
y.isSelectObj ? "hidden" : ""
|
20941
20941
|
])
|
20942
20942
|
}, [
|
20943
|
-
|
20944
|
-
|
20945
|
-
|
20943
|
+
Qe("h1", Uy, [
|
20944
|
+
Qe("span", $y, ss(y.title), 1),
|
20945
|
+
Qe("span", qy, ss(y.total), 1),
|
20946
20946
|
Zy
|
20947
20947
|
]),
|
20948
|
-
|
20948
|
+
Qe("div", Gy, [
|
20949
20949
|
y.activeFilters ? (xt(), Ut("div", Hy, [
|
20950
|
-
(xt(!0), Ut(
|
20950
|
+
(xt(!0), Ut(xc, null, vc(y.activeFilters, (ke, At, It) => (xt(), Ut("span", {
|
20951
20951
|
class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",
|
20952
20952
|
key: It
|
20953
20953
|
}, [
|
20954
|
-
|
20954
|
+
Qe("span", Wy, ss(y.getLabelById(At)), 1),
|
20955
20955
|
Xy,
|
20956
|
-
|
20957
|
-
|
20956
|
+
Qe("span", Jy, ss(y.getOptionsLabelById(At, ke)), 1),
|
20957
|
+
Qe("button", {
|
20958
20958
|
type: "button",
|
20959
20959
|
class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
|
20960
20960
|
onClick: (Ht) => y.clearFilter(At)
|
20961
20961
|
}, [
|
20962
|
-
Vr(
|
20962
|
+
Vr(et)
|
20963
20963
|
], 8, Ky)
|
20964
20964
|
]))), 128)),
|
20965
20965
|
Object.keys(y.activeFilters).length >= 2 ? (xt(), Ut("span", Yy, [
|
20966
20966
|
Qy,
|
20967
|
-
|
20967
|
+
Qe("button", {
|
20968
20968
|
type: "button",
|
20969
20969
|
class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
|
20970
20970
|
onClick: S[7] || (S[7] = (...ke) => y.resetFilters && y.resetFilters(...ke))
|
20971
20971
|
}, [
|
20972
|
-
Vr(
|
20972
|
+
Vr(et)
|
20973
20973
|
])
|
20974
20974
|
])) : Or("", !0)
|
20975
20975
|
])) : Or("", !0),
|
@@ -20983,7 +20983,7 @@ function c0(y, S, k, z, N, X) {
|
|
20983
20983
|
Vr(Ne),
|
20984
20984
|
t0,
|
20985
20985
|
i0,
|
20986
|
-
|
20986
|
+
Qe("button", {
|
20987
20987
|
type: "button",
|
20988
20988
|
class: "mt-[10px] py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs rounded-lg border border-stone-200 bg-white text-stone-800 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100",
|
20989
20989
|
onClick: S[8] || (S[8] = (...ke) => y.resetFilters && y.resetFilters(...ke))
|
@@ -20992,7 +20992,7 @@ function c0(y, S, k, z, N, X) {
|
|
20992
20992
|
]),
|
20993
20993
|
y.total >= 1 ? (xt(), Ut("hr", r0)) : Or("", !0),
|
20994
20994
|
y.total >= 1 ? (xt(), Ut("div", n0, [
|
20995
|
-
|
20995
|
+
Qe("div", s0, [
|
20996
20996
|
Vr(dt, {
|
20997
20997
|
total: y.total,
|
20998
20998
|
maxPages: 7,
|
@@ -21011,7 +21011,7 @@ function c0(y, S, k, z, N, X) {
|
|
21011
21011
|
], 2),
|
21012
21012
|
y.isSelectObj ? (xt(), Ut("div", {
|
21013
21013
|
key: 0,
|
21014
|
-
class:
|
21014
|
+
class: al(y.isMapVisible ? "w-2/4 mr-0 pb-5" : "w-full pb-5 mr-3"),
|
21015
21015
|
style: { height: "calc(100vh - 152px)" }
|
21016
21016
|
}, [
|
21017
21017
|
ol(y.$slots, "details", {
|
@@ -21023,7 +21023,7 @@ function c0(y, S, k, z, N, X) {
|
|
21023
21023
|
})
|
21024
21024
|
], 2)) : Or("", !0),
|
21025
21025
|
y.isMapVisible ? (xt(), Ut("div", o0, [
|
21026
|
-
|
21026
|
+
Qe("section", a0, [
|
21027
21027
|
Vr(Ot, {
|
21028
21028
|
height: "calc(100vh - 152px)",
|
21029
21029
|
width: "w-2/4",
|
@@ -21032,12 +21032,13 @@ function c0(y, S, k, z, N, X) {
|
|
21032
21032
|
row: y.selectedRow,
|
21033
21033
|
colorAttr: y.colorAttr,
|
21034
21034
|
maxBounds: y.maxBounds,
|
21035
|
-
zoom: y.zoom
|
21036
|
-
|
21035
|
+
zoom: y.zoom,
|
21036
|
+
basemap: y.basemap
|
21037
|
+
}, null, 8, ["table", "filtersParam", "row", "colorAttr", "maxBounds", "zoom", "basemap"])
|
21037
21038
|
])
|
21038
21039
|
])) : Or("", !0)
|
21039
21040
|
]),
|
21040
|
-
|
21041
|
+
Qe("div", l0, [
|
21041
21042
|
ol(y.$slots, "popup", { data: y.hoverData })
|
21042
21043
|
], 512)
|
21043
21044
|
])
|