@nika-js/onlymap 0.11.9 → 0.11.10
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/CHANGELOG.md +5 -0
- package/README.md +2 -2
- package/dist/{basemap-t-PHB_Pu.js → basemap-Cc8v5hPA.js} +2 -2
- package/dist/{geoparquet-DTJd2aSg.js → geoparquet-B9p5-Yxf.js} +1 -1
- package/dist/{globe-view-C3wCRrI5.js → globe-view-BF6-01N_.js} +1 -1
- package/dist/{hillshade-BsFo5EQa.js → hillshade-Dd7MQHfp.js} +1 -1
- package/dist/{index-CVudT7Jx.js → index-BaR4MzNc.js} +3 -3
- package/dist/{index-B0CFKhL1.js → index-Bwdaim-c.js} +185 -169
- package/dist/{index-CvYrJQAF.js → index-C9gVsJaG.js} +2 -2
- package/dist/{index-Cz8al9P3.js → index-CCY7Rk1s.js} +1 -1
- package/dist/{index-CmebKPpS.js → index-C_0KCx9L.js} +1 -1
- package/dist/{index-CkoZRLXw.js → index-CawlYDgE.js} +1 -1
- package/dist/{index-tdZDxE69.js → index-CwoqJ6IK.js} +3 -3
- package/dist/{index-DnCja0BT.js → index-Dk12Fazj.js} +1 -1
- package/dist/{index-C-27TeLS.js → index-T5LATpR7.js} +1 -1
- package/dist/{lerc-DNRQ6_Sp.js → lerc-CElHRqrE.js} +1 -1
- package/dist/onlymap.standalone.js +675 -659
- package/dist/onlymapjs.js +1 -1
- package/dist/{post-process-effect-DAz0ISd4.js → post-process-effect-VAE0lQ4c.js} +1 -1
- package/dist/{raster-veW80Eoz.js → raster-Cn8jugd2.js} +3 -3
- package/dist/{raster-pipeline-B2vifX-A.js → raster-pipeline-D26Sl0X2.js} +1 -1
- package/dist/{text-on-path-BZxqgwi2.js → text-on-path-C6SLSkus.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-7uar2Wec.js → zarr-Do5FzYXm.js} +2 -2
- package/docs/basemaps.md +2 -1
- package/docs/cartograph.md +2 -2
- package/llms.txt +1 -1
- package/onlymapjs.html-data.json +3 -0
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +2 -2
- package/skills/onlymapjs/references/syntax.md +3 -3
|
@@ -18,7 +18,7 @@ function UgA(e) {
|
|
|
18
18
|
return /^[a-z][a-z0-9+.-]*:/i.test(e) || /\.json(?:[?#].*)?$/i.test(e);
|
|
19
19
|
}
|
|
20
20
|
const lb = /* @__PURE__ */ new Map(), fx = {};
|
|
21
|
-
function
|
|
21
|
+
function Ml(e, A) {
|
|
22
22
|
lb.set(e, A);
|
|
23
23
|
}
|
|
24
24
|
function MNA(e) {
|
|
@@ -55,12 +55,12 @@ function xNA(e, A) {
|
|
|
55
55
|
}
|
|
56
56
|
return { style: t.style, attribution: t.attribution };
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
Ml("liberty", { style: "https://tiles.openfreemap.org/styles/liberty", label: "Liberty" });
|
|
59
|
+
Ml("bright", { style: "https://tiles.openfreemap.org/styles/bright", label: "Bright" });
|
|
60
|
+
Ml("positron", { style: "https://tiles.openfreemap.org/styles/positron", label: "Positron" });
|
|
61
|
+
Ml("dark-matter", { style: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json", label: "Dark Matter" });
|
|
62
|
+
Ml("voyager", { style: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json", label: "Voyager" });
|
|
63
|
+
Ml("osm", {
|
|
64
64
|
label: "OpenStreetMap",
|
|
65
65
|
style: {
|
|
66
66
|
version: 8,
|
|
@@ -76,17 +76,33 @@ $h("osm", {
|
|
|
76
76
|
layers: [{ id: "osm", type: "raster", source: "osm" }]
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
|
|
79
|
+
Ml("satellite", {
|
|
80
|
+
label: "Satellite",
|
|
81
|
+
style: {
|
|
82
|
+
version: 8,
|
|
83
|
+
sources: {
|
|
84
|
+
satellite: {
|
|
85
|
+
type: "raster",
|
|
86
|
+
tiles: ["https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless_3857/default/g/{z}/{y}/{x}.jpg"],
|
|
87
|
+
tileSize: 256,
|
|
88
|
+
maxzoom: 14,
|
|
89
|
+
attribution: '<a href="https://cloudless.eox.at">Sentinel-2 cloudless</a> by <a href="https://eox.at">EOX IT Services GmbH</a> (contains modified Copernicus Sentinel data 2016 & 2017)'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
layers: [{ id: "satellite", type: "raster", source: "satellite" }]
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
Ml("maptiler-streets", {
|
|
80
96
|
style: "https://api.maptiler.com/maps/streets-v2/style.json?key={key}",
|
|
81
97
|
label: "MapTiler Streets",
|
|
82
98
|
requiresKey: "maptiler"
|
|
83
99
|
});
|
|
84
|
-
|
|
100
|
+
Ml("maptiler-dataviz", {
|
|
85
101
|
style: "https://api.maptiler.com/maps/dataviz/style.json?key={key}",
|
|
86
102
|
label: "MapTiler Dataviz",
|
|
87
103
|
requiresKey: "maptiler"
|
|
88
104
|
});
|
|
89
|
-
|
|
105
|
+
Ml("maptiler-satellite", {
|
|
90
106
|
style: "https://api.maptiler.com/maps/satellite/style.json?key={key}",
|
|
91
107
|
label: "MapTiler Satellite",
|
|
92
108
|
requiresKey: "maptiler"
|
|
@@ -112,12 +128,12 @@ function hs(e, A) {
|
|
|
112
128
|
if (!e)
|
|
113
129
|
throw new Error(A || "loader assertion failed.");
|
|
114
130
|
}
|
|
115
|
-
const
|
|
131
|
+
const Uh = {
|
|
116
132
|
self: typeof self < "u" && self,
|
|
117
133
|
window: typeof window < "u" && window,
|
|
118
134
|
global: typeof global < "u" && global,
|
|
119
135
|
document: typeof document < "u" && document
|
|
120
|
-
}, GNA =
|
|
136
|
+
}, GNA = Uh.self || Uh.window || Uh.global || {}, kNA = Uh.window || Uh.self || Uh.global || {}, LNA = Uh.global || Uh.self || Uh.window || {}, UNA = Uh.document || {}, MC = (
|
|
121
137
|
// @ts-ignore process does not exist on browser
|
|
122
138
|
!!(typeof process != "object" || String(process) !== "[object process]" || process.browser)
|
|
123
139
|
), TNA = typeof importScripts == "function", Fz = typeof process < "u" && process.version && /v([0-9]*)/.exec(process.version);
|
|
@@ -820,7 +836,7 @@ const CMA = {
|
|
|
820
836
|
onDebug: () => {
|
|
821
837
|
}
|
|
822
838
|
};
|
|
823
|
-
class
|
|
839
|
+
class Rh {
|
|
824
840
|
props;
|
|
825
841
|
workerPools = /* @__PURE__ */ new Map();
|
|
826
842
|
// singleton
|
|
@@ -831,7 +847,7 @@ class bh {
|
|
|
831
847
|
}
|
|
832
848
|
/** Get the singleton instance of the global worker farm */
|
|
833
849
|
static getWorkerFarm(A = {}) {
|
|
834
|
-
return
|
|
850
|
+
return Rh._workerFarm = Rh._workerFarm || new Rh({}), Rh._workerFarm.setProps(A), Rh._workerFarm;
|
|
835
851
|
}
|
|
836
852
|
/** get global instance with WorkerFarm.getWorkerFarm() */
|
|
837
853
|
constructor(A) {
|
|
@@ -898,7 +914,7 @@ function $gA(e, A = {}) {
|
|
|
898
914
|
return gC(r), r;
|
|
899
915
|
}
|
|
900
916
|
async function EMA(e, A, t = {}, i = {}) {
|
|
901
|
-
const r = uMA(e), s =
|
|
917
|
+
const r = uMA(e), s = Rh.getWorkerFarm(t), { source: n } = t, o = { name: r, source: n };
|
|
902
918
|
n || (o.url = $gA(e, t));
|
|
903
919
|
const a = s.getWorkerPool(o), g = t.jobName || e.name, l = await a.startJob(
|
|
904
920
|
g,
|
|
@@ -1023,7 +1039,7 @@ async function wMA(e) {
|
|
|
1023
1039
|
}
|
|
1024
1040
|
}
|
|
1025
1041
|
function DMA(e, A) {
|
|
1026
|
-
if (!
|
|
1042
|
+
if (!Rh.isSupported())
|
|
1027
1043
|
return !1;
|
|
1028
1044
|
const t = A?._nodeWorkers ?? A?.core?._nodeWorkers;
|
|
1029
1045
|
if (!NI && !t)
|
|
@@ -1032,7 +1048,7 @@ function DMA(e, A) {
|
|
|
1032
1048
|
return !!(e.worker && i);
|
|
1033
1049
|
}
|
|
1034
1050
|
async function SMA(e, A, t, i, r) {
|
|
1035
|
-
const s = e.id, n = $gA(e, t), a =
|
|
1051
|
+
const s = e.id, n = $gA(e, t), a = Rh.getWorkerFarm(t?.core).getWorkerPool({ name: s, url: n });
|
|
1036
1052
|
t = JSON.parse(JSON.stringify(t)), i = JSON.parse(JSON.stringify(i || {}));
|
|
1037
1053
|
const g = await a.startJob(
|
|
1038
1054
|
"process-on-worker",
|
|
@@ -1070,7 +1086,7 @@ async function bMA(e, A, t, i) {
|
|
|
1070
1086
|
}
|
|
1071
1087
|
}
|
|
1072
1088
|
function RMA(e, A) {
|
|
1073
|
-
if (!
|
|
1089
|
+
if (!Rh.isSupported())
|
|
1074
1090
|
return !1;
|
|
1075
1091
|
const t = A?._nodeWorkers ?? A?.core?._nodeWorkers, i = A?.worker ?? A?.core?.worker;
|
|
1076
1092
|
return !MC && !t ? !1 : !!(e.worker && i);
|
|
@@ -2593,10 +2609,10 @@ function* eB(e, A) {
|
|
|
2593
2609
|
})(i[Symbol.iterator]())), new e();
|
|
2594
2610
|
}
|
|
2595
2611
|
const C_A = (e) => eB(Int8Array, e), u_A = (e) => eB(Int16Array, e), E_A = (e) => eB(Int32Array, e), DIA = (e) => eB(Uint8Array, e), Q_A = (e) => eB(Uint16Array, e), d_A = (e) => eB(Uint32Array, e), f_A = (e) => eB(Float32Array, e), p_A = (e) => eB(Float64Array, e), y_A = (e) => eB(Uint8ClampedArray, e);
|
|
2596
|
-
function
|
|
2612
|
+
function vl(e, A) {
|
|
2597
2613
|
return cl(this, arguments, function* () {
|
|
2598
2614
|
if (nE(A))
|
|
2599
|
-
return yield Oi(yield Oi(yield* yN($u(
|
|
2615
|
+
return yield Oi(yield Oi(yield* yN($u(vl(e, yield Oi(A))))));
|
|
2600
2616
|
const i = function(n) {
|
|
2601
2617
|
return cl(this, arguments, function* () {
|
|
2602
2618
|
yield yield Oi(yield Oi(n));
|
|
@@ -2624,7 +2640,7 @@ function Ml(e, A) {
|
|
|
2624
2640
|
), yield Oi(new e());
|
|
2625
2641
|
});
|
|
2626
2642
|
}
|
|
2627
|
-
const m_A = (e) =>
|
|
2643
|
+
const m_A = (e) => vl(Int8Array, e), w_A = (e) => vl(Int16Array, e), D_A = (e) => vl(Int32Array, e), SIA = (e) => vl(Uint8Array, e), S_A = (e) => vl(Uint16Array, e), b_A = (e) => vl(Uint32Array, e), R_A = (e) => vl(Float32Array, e), F_A = (e) => vl(Float64Array, e), N_A = (e) => vl(Uint8ClampedArray, e);
|
|
2628
2644
|
function d4(e, A, t) {
|
|
2629
2645
|
if (e !== 0) {
|
|
2630
2646
|
t = t.slice(0, A);
|
|
@@ -2652,7 +2668,7 @@ const M_A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
2652
2668
|
memcpy: _M,
|
|
2653
2669
|
rebaseValueOffsets: d4,
|
|
2654
2670
|
toArrayBufferView: hr,
|
|
2655
|
-
toArrayBufferViewAsyncIterator:
|
|
2671
|
+
toArrayBufferViewAsyncIterator: vl,
|
|
2656
2672
|
toArrayBufferViewIterator: eB,
|
|
2657
2673
|
toBigInt64Array: WP,
|
|
2658
2674
|
toBigUint64Array: c_A,
|
|
@@ -2868,7 +2884,7 @@ var qs;
|
|
|
2868
2884
|
(function(e) {
|
|
2869
2885
|
e[e.YEAR_MONTH = 0] = "YEAR_MONTH", e[e.DAY_TIME = 1] = "DAY_TIME", e[e.MONTH_DAY_NANO = 2] = "MONTH_DAY_NANO";
|
|
2870
2886
|
})(qs || (qs = {}));
|
|
2871
|
-
const mU = 2,
|
|
2887
|
+
const mU = 2, Fh = 4, JB = 4, Fr = 4, ku = new Int32Array(2), jz = new Float32Array(ku.buffer), Zz = new Float64Array(ku.buffer), dF = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
2872
2888
|
var zP;
|
|
2873
2889
|
(function(e) {
|
|
2874
2890
|
e[e.UTF8_BYTES = 1] = "UTF8_BYTES", e[e.UTF16_STRING = 2] = "UTF16_STRING";
|
|
@@ -2979,11 +2995,11 @@ let jo = class RIA {
|
|
|
2979
2995
|
* start of a the root vtable).
|
|
2980
2996
|
*/
|
|
2981
2997
|
getBufferIdentifier() {
|
|
2982
|
-
if (this.bytes_.length < this.position_ +
|
|
2998
|
+
if (this.bytes_.length < this.position_ + Fh + JB)
|
|
2983
2999
|
throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");
|
|
2984
3000
|
let A = "";
|
|
2985
3001
|
for (let t = 0; t < JB; t++)
|
|
2986
|
-
A += String.fromCharCode(this.readInt8(this.position_ +
|
|
3002
|
+
A += String.fromCharCode(this.readInt8(this.position_ + Fh + t));
|
|
2987
3003
|
return A;
|
|
2988
3004
|
}
|
|
2989
3005
|
/**
|
|
@@ -3014,7 +3030,7 @@ let jo = class RIA {
|
|
|
3014
3030
|
__string(A, t) {
|
|
3015
3031
|
A += this.readInt32(A);
|
|
3016
3032
|
const i = this.readInt32(A);
|
|
3017
|
-
A +=
|
|
3033
|
+
A += Fh;
|
|
3018
3034
|
const r = this.bytes_.subarray(A, A + i);
|
|
3019
3035
|
return t === zP.UTF8_BYTES ? r : this.text_decoder_.decode(r);
|
|
3020
3036
|
}
|
|
@@ -3038,7 +3054,7 @@ let jo = class RIA {
|
|
|
3038
3054
|
* Get the start of data of a vector whose offset is stored at "offset" in this object.
|
|
3039
3055
|
*/
|
|
3040
3056
|
__vector(A) {
|
|
3041
|
-
return A + this.readInt32(A) +
|
|
3057
|
+
return A + this.readInt32(A) + Fh;
|
|
3042
3058
|
}
|
|
3043
3059
|
/**
|
|
3044
3060
|
* Get the length of a vector whose offset is stored at "offset" in this object.
|
|
@@ -3050,7 +3066,7 @@ let jo = class RIA {
|
|
|
3050
3066
|
if (A.length != JB)
|
|
3051
3067
|
throw new Error("FlatBuffers: file identifier must be length " + JB);
|
|
3052
3068
|
for (let t = 0; t < JB; t++)
|
|
3053
|
-
if (A.charCodeAt(t) != this.readInt8(this.position() +
|
|
3069
|
+
if (A.charCodeAt(t) != this.readInt8(this.position() + Fh + t))
|
|
3054
3070
|
return !1;
|
|
3055
3071
|
return !0;
|
|
3056
3072
|
}
|
|
@@ -3279,7 +3295,7 @@ let jo = class RIA {
|
|
|
3279
3295
|
* @param offset The offset to add.
|
|
3280
3296
|
*/
|
|
3281
3297
|
addOffset(A) {
|
|
3282
|
-
this.prep(
|
|
3298
|
+
this.prep(Fh, 0), this.writeInt32(this.offset() - A + Fh);
|
|
3283
3299
|
}
|
|
3284
3300
|
/**
|
|
3285
3301
|
* Start encoding a new object in the buffer. Users will not usually need to
|
|
@@ -3333,12 +3349,12 @@ let jo = class RIA {
|
|
|
3333
3349
|
const r = i ? Fr : 0;
|
|
3334
3350
|
if (t) {
|
|
3335
3351
|
const s = t;
|
|
3336
|
-
if (this.prep(this.minalign,
|
|
3352
|
+
if (this.prep(this.minalign, Fh + JB + r), s.length != JB)
|
|
3337
3353
|
throw new TypeError("FlatBuffers: file identifier must be length " + JB);
|
|
3338
3354
|
for (let n = JB - 1; n >= 0; n--)
|
|
3339
3355
|
this.writeInt8(s.charCodeAt(n));
|
|
3340
3356
|
}
|
|
3341
|
-
this.prep(this.minalign,
|
|
3357
|
+
this.prep(this.minalign, Fh + r), this.addOffset(A), r && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
|
|
3342
3358
|
}
|
|
3343
3359
|
/**
|
|
3344
3360
|
* Finalize a size prefixed buffer, pointing to the given `root_table`.
|
|
@@ -3365,7 +3381,7 @@ let jo = class RIA {
|
|
|
3365
3381
|
* @param alignment The alignment of the array
|
|
3366
3382
|
*/
|
|
3367
3383
|
startVector(A, t, i) {
|
|
3368
|
-
this.notNested(), this.vector_num_elems = t, this.prep(
|
|
3384
|
+
this.notNested(), this.vector_num_elems = t, this.prep(Fh, A * t), this.prep(i, A * t);
|
|
3369
3385
|
}
|
|
3370
3386
|
/**
|
|
3371
3387
|
* Finish off the creation of an array and all its elements. The array must be
|
|
@@ -3551,7 +3567,7 @@ let eS = class ZQ {
|
|
|
3551
3567
|
static createFieldNode(A, t, i) {
|
|
3552
3568
|
return A.prep(8, 16), A.writeInt64(BigInt(i ?? 0)), A.writeInt64(BigInt(t ?? 0)), A.offset();
|
|
3553
3569
|
}
|
|
3554
|
-
},
|
|
3570
|
+
}, mh = class jP {
|
|
3555
3571
|
constructor() {
|
|
3556
3572
|
this.bb = null, this.bb_pos = 0;
|
|
3557
3573
|
}
|
|
@@ -3649,7 +3665,7 @@ let eS = class ZQ {
|
|
|
3649
3665
|
}
|
|
3650
3666
|
data(A) {
|
|
3651
3667
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
3652
|
-
return t ? (A || new
|
|
3668
|
+
return t ? (A || new mh()).__init(this.bb.__indirect(this.bb_pos + t), this.bb) : null;
|
|
3653
3669
|
}
|
|
3654
3670
|
/**
|
|
3655
3671
|
* If isDelta is true the values in the dictionary are to be appended to a
|
|
@@ -4044,7 +4060,7 @@ let Xz = class tS {
|
|
|
4044
4060
|
return Hp.startFixedSizeList(A), Hp.addListSize(A, t), Hp.endFixedSizeList(A);
|
|
4045
4061
|
}
|
|
4046
4062
|
};
|
|
4047
|
-
class
|
|
4063
|
+
class Nh {
|
|
4048
4064
|
constructor() {
|
|
4049
4065
|
this.bb = null, this.bb_pos = 0;
|
|
4050
4066
|
}
|
|
@@ -4052,10 +4068,10 @@ class Fh {
|
|
|
4052
4068
|
return this.bb_pos = A, this.bb = t, this;
|
|
4053
4069
|
}
|
|
4054
4070
|
static getRootAsFloatingPoint(A, t) {
|
|
4055
|
-
return (t || new
|
|
4071
|
+
return (t || new Nh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4056
4072
|
}
|
|
4057
4073
|
static getSizePrefixedRootAsFloatingPoint(A, t) {
|
|
4058
|
-
return A.setPosition(A.position() + Fr), (t || new
|
|
4074
|
+
return A.setPosition(A.position() + Fr), (t || new Nh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4059
4075
|
}
|
|
4060
4076
|
precision() {
|
|
4061
4077
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4071,10 +4087,10 @@ class Fh {
|
|
|
4071
4087
|
return A.endObject();
|
|
4072
4088
|
}
|
|
4073
4089
|
static createFloatingPoint(A, t) {
|
|
4074
|
-
return
|
|
4090
|
+
return Nh.startFloatingPoint(A), Nh.addPrecision(A, t), Nh.endFloatingPoint(A);
|
|
4075
4091
|
}
|
|
4076
4092
|
}
|
|
4077
|
-
class
|
|
4093
|
+
class Mh {
|
|
4078
4094
|
constructor() {
|
|
4079
4095
|
this.bb = null, this.bb_pos = 0;
|
|
4080
4096
|
}
|
|
@@ -4082,10 +4098,10 @@ class Nh {
|
|
|
4082
4098
|
return this.bb_pos = A, this.bb = t, this;
|
|
4083
4099
|
}
|
|
4084
4100
|
static getRootAsInterval(A, t) {
|
|
4085
|
-
return (t || new
|
|
4101
|
+
return (t || new Mh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4086
4102
|
}
|
|
4087
4103
|
static getSizePrefixedRootAsInterval(A, t) {
|
|
4088
|
-
return A.setPosition(A.position() + Fr), (t || new
|
|
4104
|
+
return A.setPosition(A.position() + Fr), (t || new Mh()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
4089
4105
|
}
|
|
4090
4106
|
unit() {
|
|
4091
4107
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4101,7 +4117,7 @@ class Nh {
|
|
|
4101
4117
|
return A.endObject();
|
|
4102
4118
|
}
|
|
4103
4119
|
static createInterval(A, t) {
|
|
4104
|
-
return
|
|
4120
|
+
return Mh.startInterval(A), Mh.addUnit(A, t), Mh.endInterval(A);
|
|
4105
4121
|
}
|
|
4106
4122
|
}
|
|
4107
4123
|
let Aj = class rS {
|
|
@@ -4513,7 +4529,7 @@ let WI = class RN {
|
|
|
4513
4529
|
static endField(A) {
|
|
4514
4530
|
return A.endObject();
|
|
4515
4531
|
}
|
|
4516
|
-
},
|
|
4532
|
+
}, wh = class LB {
|
|
4517
4533
|
constructor() {
|
|
4518
4534
|
this.bb = null, this.bb_pos = 0;
|
|
4519
4535
|
}
|
|
@@ -4658,20 +4674,20 @@ function vIA(e, A) {
|
|
|
4658
4674
|
return Gs(e / A) + Gs(e % A) / Gs(A);
|
|
4659
4675
|
}
|
|
4660
4676
|
const _IA = Symbol.for("isArrowBigNum");
|
|
4661
|
-
function
|
|
4677
|
+
function _l(e, ...A) {
|
|
4662
4678
|
return A.length === 0 ? Object.setPrototypeOf(hr(this.TypedArray, e), this.constructor.prototype) : Object.setPrototypeOf(new this.TypedArray(e, ...A), this.constructor.prototype);
|
|
4663
4679
|
}
|
|
4664
|
-
|
|
4665
|
-
|
|
4680
|
+
_l.prototype[_IA] = !0;
|
|
4681
|
+
_l.prototype.toJSON = function() {
|
|
4666
4682
|
return `"${em(this)}"`;
|
|
4667
4683
|
};
|
|
4668
|
-
|
|
4684
|
+
_l.prototype.valueOf = function(e) {
|
|
4669
4685
|
return f4(this, e);
|
|
4670
4686
|
};
|
|
4671
|
-
|
|
4687
|
+
_l.prototype.toString = function() {
|
|
4672
4688
|
return em(this);
|
|
4673
4689
|
};
|
|
4674
|
-
|
|
4690
|
+
_l.prototype[Symbol.toPrimitive] = function(e = "default") {
|
|
4675
4691
|
switch (e) {
|
|
4676
4692
|
case "number":
|
|
4677
4693
|
return f4(this);
|
|
@@ -4683,20 +4699,20 @@ vl.prototype[Symbol.toPrimitive] = function(e = "default") {
|
|
|
4683
4699
|
return em(this);
|
|
4684
4700
|
};
|
|
4685
4701
|
function by(...e) {
|
|
4686
|
-
return
|
|
4702
|
+
return _l.apply(this, e);
|
|
4687
4703
|
}
|
|
4688
4704
|
function Ry(...e) {
|
|
4689
|
-
return
|
|
4705
|
+
return _l.apply(this, e);
|
|
4690
4706
|
}
|
|
4691
4707
|
function ub(...e) {
|
|
4692
|
-
return
|
|
4708
|
+
return _l.apply(this, e);
|
|
4693
4709
|
}
|
|
4694
4710
|
Object.setPrototypeOf(by.prototype, Object.create(Int32Array.prototype));
|
|
4695
4711
|
Object.setPrototypeOf(Ry.prototype, Object.create(Uint32Array.prototype));
|
|
4696
4712
|
Object.setPrototypeOf(ub.prototype, Object.create(Uint32Array.prototype));
|
|
4697
|
-
Object.assign(by.prototype,
|
|
4698
|
-
Object.assign(Ry.prototype,
|
|
4699
|
-
Object.assign(ub.prototype,
|
|
4713
|
+
Object.assign(by.prototype, _l.prototype, { constructor: by, signed: !0, TypedArray: Int32Array, BigIntArray: BigInt64Array });
|
|
4714
|
+
Object.assign(Ry.prototype, _l.prototype, { constructor: Ry, signed: !1, TypedArray: Uint32Array, BigIntArray: BigUint64Array });
|
|
4715
|
+
Object.assign(ub.prototype, _l.prototype, { constructor: ub, signed: !0, TypedArray: Uint32Array, BigIntArray: BigUint64Array });
|
|
4700
4716
|
const T_A = BigInt(4294967296) * BigInt(4294967296), P_A = T_A - BigInt(1);
|
|
4701
4717
|
function f4(e, A) {
|
|
4702
4718
|
const { buffer: t, byteOffset: i, byteLength: r, signed: s } = e, n = new BigUint64Array(t, i, r / 8), o = s && n.at(-1) & BigInt(1) << BigInt(63);
|
|
@@ -5363,7 +5379,7 @@ class BC extends zt {
|
|
|
5363
5379
|
}
|
|
5364
5380
|
tcA = Symbol.toStringTag;
|
|
5365
5381
|
BC[tcA] = ((e) => (e.id = null, e.indices = null, e.isOrdered = null, e.dictionary = null, e[Symbol.toStringTag] = "Dictionary"))(BC.prototype);
|
|
5366
|
-
function
|
|
5382
|
+
function bh(e) {
|
|
5367
5383
|
const A = e;
|
|
5368
5384
|
switch (e.typeId) {
|
|
5369
5385
|
case Me.Decimal:
|
|
@@ -6505,7 +6521,7 @@ class mr {
|
|
|
6505
6521
|
constructor(A, t, i, r, s, n = [], o) {
|
|
6506
6522
|
this.type = A, this.children = n, this.dictionary = o, this.offset = Math.floor(Math.max(t || 0, 0)), this.length = Math.floor(Math.max(i || 0, 0)), this._nullCount = Math.floor(Math.max(r || 0, -1));
|
|
6507
6523
|
let a;
|
|
6508
|
-
s instanceof mr ? (this.stride = s.stride, this.values = s.values, this.typeIds = s.typeIds, this.nullBitmap = s.nullBitmap, this.valueOffsets = s.valueOffsets) : (this.stride =
|
|
6524
|
+
s instanceof mr ? (this.stride = s.stride, this.values = s.values, this.typeIds = s.typeIds, this.nullBitmap = s.nullBitmap, this.valueOffsets = s.valueOffsets) : (this.stride = bh(A), s && ((a = s[0]) && (this.valueOffsets = a), (a = s[1]) && (this.values = a), (a = s[2]) && (this.nullBitmap = a), (a = s[3]) && (this.typeIds = a)));
|
|
6509
6525
|
}
|
|
6510
6526
|
getValid(A) {
|
|
6511
6527
|
const { type: t } = this;
|
|
@@ -6605,23 +6621,23 @@ class xS extends zi {
|
|
|
6605
6621
|
return new mr(t, i, o, a, [n, r, s]);
|
|
6606
6622
|
}
|
|
6607
6623
|
visitFixedSizeBinary(A) {
|
|
6608
|
-
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length /
|
|
6624
|
+
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / bh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6609
6625
|
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6610
6626
|
}
|
|
6611
6627
|
visitDate(A) {
|
|
6612
|
-
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length /
|
|
6628
|
+
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / bh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6613
6629
|
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6614
6630
|
}
|
|
6615
6631
|
visitTimestamp(A) {
|
|
6616
|
-
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length /
|
|
6632
|
+
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / bh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6617
6633
|
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6618
6634
|
}
|
|
6619
6635
|
visitTime(A) {
|
|
6620
|
-
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length /
|
|
6636
|
+
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / bh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6621
6637
|
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6622
6638
|
}
|
|
6623
6639
|
visitDecimal(A) {
|
|
6624
|
-
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length /
|
|
6640
|
+
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / bh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6625
6641
|
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6626
6642
|
}
|
|
6627
6643
|
visitList(A) {
|
|
@@ -6644,7 +6660,7 @@ class xS extends zi {
|
|
|
6644
6660
|
return new mr(t, i, o, a, [void 0, s, r], [], n);
|
|
6645
6661
|
}
|
|
6646
6662
|
visitInterval(A) {
|
|
6647
|
-
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length /
|
|
6663
|
+
const { ["type"]: t, ["offset"]: i = 0 } = A, r = nr(A.nullBitmap), s = hr(t.ArrayType, A.data), { ["length"]: n = s.length / bh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6648
6664
|
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6649
6665
|
}
|
|
6650
6666
|
visitDuration(A) {
|
|
@@ -6652,7 +6668,7 @@ class xS extends zi {
|
|
|
6652
6668
|
return new mr(t, i, n, o, [void 0, s, r]);
|
|
6653
6669
|
}
|
|
6654
6670
|
visitFixedSizeList(A) {
|
|
6655
|
-
const { ["type"]: t, ["offset"]: i = 0, ["child"]: r = new xS().visit({ type: t.valueType }) } = A, s = nr(A.nullBitmap), { ["length"]: n = r.length /
|
|
6671
|
+
const { ["type"]: t, ["offset"]: i = 0, ["child"]: r = new xS().visit({ type: t.valueType }) } = A, s = nr(A.nullBitmap), { ["length"]: n = r.length / bh(t), ["nullCount"]: o = A.nullBitmap ? -1 : 0 } = A;
|
|
6656
6672
|
return new mr(t, i, n, o, [void 0, void 0, s], [r]);
|
|
6657
6673
|
}
|
|
6658
6674
|
visitMap(A) {
|
|
@@ -6958,7 +6974,7 @@ let Li = class XQ {
|
|
|
6958
6974
|
Object.setPrototypeOf(this, nlA[n.typeId]), this._offsets = $cA(s);
|
|
6959
6975
|
break;
|
|
6960
6976
|
}
|
|
6961
|
-
this.data = s, this.type = n, this.stride =
|
|
6977
|
+
this.data = s, this.type = n, this.stride = bh(n), this.numChildren = (r = (i = n.children) === null || i === void 0 ? void 0 : i.length) !== null && r !== void 0 ? r : 0, this.length = this._offsets.at(-1);
|
|
6962
6978
|
}
|
|
6963
6979
|
/**
|
|
6964
6980
|
* The aggregate size (in bytes) of this Vector's buffers and/or child Vectors.
|
|
@@ -7365,7 +7381,7 @@ let Pa = class {
|
|
|
7365
7381
|
* @param {{ type: T, nullValues?: any[] }} options A `BuilderOptions` object used to create this `Builder`.
|
|
7366
7382
|
*/
|
|
7367
7383
|
constructor({ type: A, nullValues: t }) {
|
|
7368
|
-
this.length = 0, this.finished = !1, this.type = A, this.children = [], this.nullValues = t, this.stride =
|
|
7384
|
+
this.length = 0, this.finished = !1, this.type = A, this.children = [], this.nullValues = t, this.stride = bh(A), this._nulls = new olA(), t && t.length > 0 && (this._isValid = ZxA(t));
|
|
7369
7385
|
}
|
|
7370
7386
|
/**
|
|
7371
7387
|
* Flush the `Builder` and return a `Vector<T>`.
|
|
@@ -7606,7 +7622,7 @@ class fI {
|
|
|
7606
7622
|
}
|
|
7607
7623
|
schema(A) {
|
|
7608
7624
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
7609
|
-
return t ? (A || new
|
|
7625
|
+
return t ? (A || new wh()).__init(this.bb.__indirect(this.bb_pos + t), this.bb) : null;
|
|
7610
7626
|
}
|
|
7611
7627
|
dictionaries(A, t) {
|
|
7612
7628
|
const i = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -7780,11 +7796,11 @@ class yb {
|
|
|
7780
7796
|
const t = new $xA(), i = _r.encode(t, A.schema);
|
|
7781
7797
|
fI.startRecordBatchesVector(t, A.numRecordBatches);
|
|
7782
7798
|
for (const n of [...A.recordBatches()].slice().reverse())
|
|
7783
|
-
|
|
7799
|
+
Oh.encode(t, n);
|
|
7784
7800
|
const r = t.endVector();
|
|
7785
7801
|
fI.startDictionariesVector(t, A.numDictionaries);
|
|
7786
7802
|
for (const n of [...A.dictionaryBatches()].slice().reverse())
|
|
7787
|
-
|
|
7803
|
+
Oh.encode(t, n);
|
|
7788
7804
|
const s = t.endVector();
|
|
7789
7805
|
return fI.startFooter(t), fI.addSchema(t, i), fI.addVersion(t, bn.V5), fI.addRecordBatches(t, r), fI.addDictionaries(t, s), fI.finishFooterBuffer(t, fI.endFooter(t)), t.asUint8Array();
|
|
7790
7806
|
}
|
|
@@ -7826,7 +7842,7 @@ class eGA extends yb {
|
|
|
7826
7842
|
if (A >= 0 && A < this.numRecordBatches) {
|
|
7827
7843
|
const t = this._footer.recordBatches(A);
|
|
7828
7844
|
if (t)
|
|
7829
|
-
return
|
|
7845
|
+
return Oh.decode(t);
|
|
7830
7846
|
}
|
|
7831
7847
|
return null;
|
|
7832
7848
|
}
|
|
@@ -7834,15 +7850,15 @@ class eGA extends yb {
|
|
|
7834
7850
|
if (A >= 0 && A < this.numDictionaries) {
|
|
7835
7851
|
const t = this._footer.dictionaries(A);
|
|
7836
7852
|
if (t)
|
|
7837
|
-
return
|
|
7853
|
+
return Oh.decode(t);
|
|
7838
7854
|
}
|
|
7839
7855
|
return null;
|
|
7840
7856
|
}
|
|
7841
7857
|
}
|
|
7842
|
-
class
|
|
7858
|
+
class Oh {
|
|
7843
7859
|
/** @nocollapse */
|
|
7844
7860
|
static decode(A) {
|
|
7845
|
-
return new
|
|
7861
|
+
return new Oh(A.metaDataLength(), A.bodyLength(), A.offset());
|
|
7846
7862
|
}
|
|
7847
7863
|
/** @nocollapse */
|
|
7848
7864
|
static encode(A, t) {
|
|
@@ -7853,7 +7869,7 @@ class Kh {
|
|
|
7853
7869
|
this.metaDataLength = A, this.offset = Gs(i), this.bodyLength = Gs(t);
|
|
7854
7870
|
}
|
|
7855
7871
|
}
|
|
7856
|
-
let du = class
|
|
7872
|
+
let du = class ph {
|
|
7857
7873
|
constructor() {
|
|
7858
7874
|
this.bb = null, this.bb_pos = 0;
|
|
7859
7875
|
}
|
|
@@ -7861,10 +7877,10 @@ let du = class fh {
|
|
|
7861
7877
|
return this.bb_pos = A, this.bb = t, this;
|
|
7862
7878
|
}
|
|
7863
7879
|
static getRootAsMessage(A, t) {
|
|
7864
|
-
return (t || new
|
|
7880
|
+
return (t || new ph()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
7865
7881
|
}
|
|
7866
7882
|
static getSizePrefixedRootAsMessage(A, t) {
|
|
7867
|
-
return A.setPosition(A.position() + Fr), (t || new
|
|
7883
|
+
return A.setPosition(A.position() + Fr), (t || new ph()).__init(A.readInt32(A.position()) + A.position(), A);
|
|
7868
7884
|
}
|
|
7869
7885
|
version() {
|
|
7870
7886
|
const A = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -7927,7 +7943,7 @@ let du = class fh {
|
|
|
7927
7943
|
A.finish(t, void 0, !0);
|
|
7928
7944
|
}
|
|
7929
7945
|
static createMessage(A, t, i, r, s, n) {
|
|
7930
|
-
return
|
|
7946
|
+
return ph.startMessage(A), ph.addVersion(A, t), ph.addHeaderType(A, i), ph.addHeader(A, r), ph.addBodyLength(A, s), ph.addCustomMetadata(A, n), ph.endMessage(A);
|
|
7931
7947
|
}
|
|
7932
7948
|
};
|
|
7933
7949
|
class tGA extends zi {
|
|
@@ -7941,7 +7957,7 @@ class tGA extends zi {
|
|
|
7941
7957
|
return mI.startInt(t), mI.addBitWidth(t, A.bitWidth), mI.addIsSigned(t, A.isSigned), mI.endInt(t);
|
|
7942
7958
|
}
|
|
7943
7959
|
visitFloat(A, t) {
|
|
7944
|
-
return
|
|
7960
|
+
return Nh.startFloatingPoint(t), Nh.addPrecision(t, A.precision), Nh.endFloatingPoint(t);
|
|
7945
7961
|
}
|
|
7946
7962
|
visitBinary(A, t) {
|
|
7947
7963
|
return Xz.startBinary(t), Xz.endBinary(t);
|
|
@@ -7972,7 +7988,7 @@ class tGA extends zi {
|
|
|
7972
7988
|
return tc.startTimestamp(t), tc.addUnit(t, A.unit), i !== void 0 && tc.addTimezone(t, i), tc.endTimestamp(t);
|
|
7973
7989
|
}
|
|
7974
7990
|
visitInterval(A, t) {
|
|
7975
|
-
return
|
|
7991
|
+
return Mh.startInterval(t), Mh.addUnit(t, A.unit), Mh.endInterval(t);
|
|
7976
7992
|
}
|
|
7977
7993
|
visitDuration(A, t) {
|
|
7978
7994
|
return wN.startDuration(t), wN.addUnit(t, A.unit), wN.endDuration(t);
|
|
@@ -8253,9 +8269,9 @@ function cGA(e, A) {
|
|
|
8253
8269
|
return (() => {
|
|
8254
8270
|
switch (A) {
|
|
8255
8271
|
case Lr.Schema:
|
|
8256
|
-
return _r.decode(e.header(new
|
|
8272
|
+
return _r.decode(e.header(new wh()), /* @__PURE__ */ new Map(), e.version());
|
|
8257
8273
|
case Lr.RecordBatch:
|
|
8258
|
-
return ug.decode(e.header(new
|
|
8274
|
+
return ug.decode(e.header(new mh()), e.version());
|
|
8259
8275
|
case Lr.DictionaryBatch:
|
|
8260
8276
|
return Rl.decode(e.header(new Lp()), e.version());
|
|
8261
8277
|
}
|
|
@@ -8362,7 +8378,7 @@ function uj(e, A) {
|
|
|
8362
8378
|
return new Cg(i.isSigned(), i.bitWidth());
|
|
8363
8379
|
}
|
|
8364
8380
|
case Hi.FloatingPoint: {
|
|
8365
|
-
const i = e.type(new
|
|
8381
|
+
const i = e.type(new Nh());
|
|
8366
8382
|
return new aE(i.precision());
|
|
8367
8383
|
}
|
|
8368
8384
|
case Hi.Decimal: {
|
|
@@ -8382,7 +8398,7 @@ function uj(e, A) {
|
|
|
8382
8398
|
return new lC(i.unit(), i.timezone());
|
|
8383
8399
|
}
|
|
8384
8400
|
case Hi.Interval: {
|
|
8385
|
-
const i = e.type(new
|
|
8401
|
+
const i = e.type(new Mh());
|
|
8386
8402
|
return new gE(i.unit());
|
|
8387
8403
|
}
|
|
8388
8404
|
case Hi.Duration: {
|
|
@@ -8413,12 +8429,12 @@ function llA(e) {
|
|
|
8413
8429
|
}
|
|
8414
8430
|
function pGA(e, A) {
|
|
8415
8431
|
const t = A.fields.map((s) => Rr.encode(e, s));
|
|
8416
|
-
|
|
8417
|
-
const i =
|
|
8432
|
+
wh.startFieldsVector(e, t.length);
|
|
8433
|
+
const i = wh.createFieldsVector(e, t), r = A.metadata && A.metadata.size > 0 ? wh.createCustomMetadataVector(e, [...A.metadata].map(([s, n]) => {
|
|
8418
8434
|
const o = e.createString(`${s}`), a = e.createString(`${n}`);
|
|
8419
8435
|
return yo.startKeyValue(e), yo.addKey(e, o), yo.addValue(e, a), yo.endKeyValue(e);
|
|
8420
8436
|
})) : -1;
|
|
8421
|
-
return
|
|
8437
|
+
return wh.startSchema(e), wh.addFields(e, i), wh.addEndianness(e, bGA ? Am.Little : Am.Big), r !== -1 && wh.addCustomMetadata(e, r), wh.endSchema(e);
|
|
8422
8438
|
}
|
|
8423
8439
|
function yGA(e, A) {
|
|
8424
8440
|
let t = -1, i = -1, r = -1;
|
|
@@ -8433,16 +8449,16 @@ function yGA(e, A) {
|
|
|
8433
8449
|
}
|
|
8434
8450
|
function mGA(e, A) {
|
|
8435
8451
|
const t = A.nodes || [], i = A.buffers || [];
|
|
8436
|
-
|
|
8452
|
+
mh.startNodesVector(e, t.length);
|
|
8437
8453
|
for (const o of t.slice().reverse())
|
|
8438
8454
|
lE.encode(e, o);
|
|
8439
8455
|
const r = e.endVector();
|
|
8440
|
-
|
|
8456
|
+
mh.startBuffersVector(e, i.length);
|
|
8441
8457
|
for (const o of i.slice().reverse())
|
|
8442
8458
|
Hg.encode(e, o);
|
|
8443
8459
|
const s = e.endVector();
|
|
8444
8460
|
let n = null;
|
|
8445
|
-
return A.compression !== null && (n = hlA(e, A.compression)),
|
|
8461
|
+
return A.compression !== null && (n = hlA(e, A.compression)), mh.startRecordBatch(e), mh.addLength(e, BigInt(A.length)), mh.addNodes(e, r), mh.addBuffers(e, s), A.compression !== null && n && mh.addCompression(e, n), mh.endRecordBatch(e);
|
|
8446
8462
|
}
|
|
8447
8463
|
function hlA(e, A) {
|
|
8448
8464
|
return eS.startBodyCompression(e), eS.addCodec(e, A.type), eS.addMethod(e, A.method), eS.endBodyCompression(e);
|
|
@@ -9779,16 +9795,16 @@ function Y2(e, A) {
|
|
|
9779
9795
|
return e === A || Eg(e, A) && e.unit === A.unit && e.bitWidth === A.bitWidth;
|
|
9780
9796
|
}
|
|
9781
9797
|
function TGA(e, A) {
|
|
9782
|
-
return e === A || Eg(e, A) && e.children.length === A.children.length &&
|
|
9798
|
+
return e === A || Eg(e, A) && e.children.length === A.children.length && qh.compareManyFields(e.children, A.children);
|
|
9783
9799
|
}
|
|
9784
9800
|
function PGA(e, A) {
|
|
9785
|
-
return e === A || Eg(e, A) && e.children.length === A.children.length &&
|
|
9801
|
+
return e === A || Eg(e, A) && e.children.length === A.children.length && qh.compareManyFields(e.children, A.children);
|
|
9786
9802
|
}
|
|
9787
9803
|
function yK(e, A) {
|
|
9788
|
-
return e === A || Eg(e, A) && e.mode === A.mode && e.typeIds.every((t, i) => t === A.typeIds[i]) &&
|
|
9804
|
+
return e === A || Eg(e, A) && e.mode === A.mode && e.typeIds.every((t, i) => t === A.typeIds[i]) && qh.compareManyFields(e.children, A.children);
|
|
9789
9805
|
}
|
|
9790
9806
|
function JGA(e, A) {
|
|
9791
|
-
return e === A || Eg(e, A) && e.id === A.id && e.isOrdered === A.isOrdered &&
|
|
9807
|
+
return e === A || Eg(e, A) && e.id === A.id && e.isOrdered === A.isOrdered && qh.visit(e.indices, A.indices) && qh.visit(e.dictionary, A.dictionary);
|
|
9792
9808
|
}
|
|
9793
9809
|
function Kx(e, A) {
|
|
9794
9810
|
return e === A || Eg(e, A) && e.unit === A.unit;
|
|
@@ -9797,10 +9813,10 @@ function K2(e, A) {
|
|
|
9797
9813
|
return e === A || Eg(e, A) && e.unit === A.unit;
|
|
9798
9814
|
}
|
|
9799
9815
|
function HGA(e, A) {
|
|
9800
|
-
return e === A || Eg(e, A) && e.listSize === A.listSize && e.children.length === A.children.length &&
|
|
9816
|
+
return e === A || Eg(e, A) && e.listSize === A.listSize && e.children.length === A.children.length && qh.compareManyFields(e.children, A.children);
|
|
9801
9817
|
}
|
|
9802
9818
|
function YGA(e, A) {
|
|
9803
|
-
return e === A || Eg(e, A) && e.keysSorted === A.keysSorted && e.children.length === A.children.length &&
|
|
9819
|
+
return e === A || Eg(e, A) && e.keysSorted === A.keysSorted && e.children.length === A.children.length && qh.compareManyFields(e.children, A.children);
|
|
9804
9820
|
}
|
|
9805
9821
|
mi.prototype.visitNull = Mf;
|
|
9806
9822
|
mi.prototype.visitBool = Mf;
|
|
@@ -9853,15 +9869,15 @@ mi.prototype.visitDurationMicrosecond = K2;
|
|
|
9853
9869
|
mi.prototype.visitDurationNanosecond = K2;
|
|
9854
9870
|
mi.prototype.visitFixedSizeList = HGA;
|
|
9855
9871
|
mi.prototype.visitMap = YGA;
|
|
9856
|
-
const
|
|
9872
|
+
const qh = new mi();
|
|
9857
9873
|
function PM(e, A) {
|
|
9858
|
-
return
|
|
9874
|
+
return qh.compareSchemas(e, A);
|
|
9859
9875
|
}
|
|
9860
9876
|
function KGA(e, A) {
|
|
9861
|
-
return
|
|
9877
|
+
return qh.compareFields(e, A);
|
|
9862
9878
|
}
|
|
9863
9879
|
function UlA(e, A) {
|
|
9864
|
-
return
|
|
9880
|
+
return qh.visit(e, A);
|
|
9865
9881
|
}
|
|
9866
9882
|
function CC(e) {
|
|
9867
9883
|
const A = e.type, t = new (LGA.getVisitFn(A)())(e);
|
|
@@ -11625,7 +11641,7 @@ class q2 extends V4 {
|
|
|
11625
11641
|
}
|
|
11626
11642
|
_writeMessage(A, t = 8) {
|
|
11627
11643
|
const i = t - 1, r = Ga.encode(A), s = r.byteLength, n = this._writeLegacyIpcFormat ? 4 : 8, o = s + n + i & ~i, a = o - s - n;
|
|
11628
|
-
return A.headerType === Lr.RecordBatch ? this._recordBatchBlocks.push(new
|
|
11644
|
+
return A.headerType === Lr.RecordBatch ? this._recordBatchBlocks.push(new Oh(o, A.bodyLength, this._position)) : A.headerType === Lr.DictionaryBatch && this._dictionaryBlocks.push(new Oh(o, A.bodyLength, this._position)), this._writeLegacyIpcFormat || this._write(Int32Array.of(-1)), this._write(Int32Array.of(o - n)), s > 0 && this._write(r), this._writePadding(a);
|
|
11629
11645
|
}
|
|
11630
11646
|
_write(A) {
|
|
11631
11647
|
if (this._started) {
|
|
@@ -11765,7 +11781,7 @@ class NK extends q2 {
|
|
|
11765
11781
|
}
|
|
11766
11782
|
_writeDictionaryBatch(A, t, i = !1) {
|
|
11767
11783
|
return this._write(this._dictionaryBlocks.length === 0 ? " " : `,
|
|
11768
|
-
`), this._write(ckA(A, t, i)), this._dictionaryBlocks.push(new
|
|
11784
|
+
`), this._write(ckA(A, t, i)), this._dictionaryBlocks.push(new Oh(0, 0, 0)), this;
|
|
11769
11785
|
}
|
|
11770
11786
|
_writeRecordBatch(A) {
|
|
11771
11787
|
return this._writeDictionaries(A), this._recordBatches.push(A), this;
|
|
@@ -11785,7 +11801,7 @@ class NK extends q2 {
|
|
|
11785
11801
|
this._write(A === 0 ? `,
|
|
11786
11802
|
"batches": [
|
|
11787
11803
|
` : `,
|
|
11788
|
-
`), this._write(lkA(this._recordBatches[A])), this._recordBatchBlocks.push(new
|
|
11804
|
+
`), this._write(lkA(this._recordBatches[A])), this._recordBatchBlocks.push(new Oh(0, 0, 0));
|
|
11789
11805
|
this._write(`
|
|
11790
11806
|
]`);
|
|
11791
11807
|
}
|
|
@@ -13247,7 +13263,7 @@ async function gLA(e, A = []) {
|
|
|
13247
13263
|
t = i(t);
|
|
13248
13264
|
return t;
|
|
13249
13265
|
}
|
|
13250
|
-
async function
|
|
13266
|
+
async function Wh(e, A, t, i) {
|
|
13251
13267
|
let r, s;
|
|
13252
13268
|
!Array.isArray(A) && !Jm(A) ? (r = [], s = A) : (r = A, s = t);
|
|
13253
13269
|
const n = B4(s);
|
|
@@ -13616,7 +13632,7 @@ const zx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13616
13632
|
isResponse: vC,
|
|
13617
13633
|
isWorker: TNA,
|
|
13618
13634
|
isWritableStream: sMA,
|
|
13619
|
-
load:
|
|
13635
|
+
load: Wh,
|
|
13620
13636
|
loadInBatches: ILA,
|
|
13621
13637
|
makeIterator: vM,
|
|
13622
13638
|
makeLineIterator: kMA,
|
|
@@ -13774,7 +13790,7 @@ function qLA(e, A, t = 0) {
|
|
|
13774
13790
|
return !1;
|
|
13775
13791
|
return !0;
|
|
13776
13792
|
}
|
|
13777
|
-
const
|
|
13793
|
+
const vh = !1, GS = !0;
|
|
13778
13794
|
function kK(e) {
|
|
13779
13795
|
const A = z2(e);
|
|
13780
13796
|
return VLA(A) || ZLA(A) || zLA(A) || jLA(A) || WLA(A);
|
|
@@ -13790,15 +13806,15 @@ function WLA(e) {
|
|
|
13790
13806
|
}
|
|
13791
13807
|
function VLA(e) {
|
|
13792
13808
|
const A = z2(e);
|
|
13793
|
-
return A.byteLength >= 24 && A.getUint32(0,
|
|
13809
|
+
return A.byteLength >= 24 && A.getUint32(0, vh) === 2303741511 ? {
|
|
13794
13810
|
mimeType: "image/png",
|
|
13795
|
-
width: A.getUint32(16,
|
|
13796
|
-
height: A.getUint32(20,
|
|
13811
|
+
width: A.getUint32(16, vh),
|
|
13812
|
+
height: A.getUint32(20, vh)
|
|
13797
13813
|
} : null;
|
|
13798
13814
|
}
|
|
13799
13815
|
function zLA(e) {
|
|
13800
13816
|
const A = z2(e);
|
|
13801
|
-
return A.byteLength >= 10 && A.getUint32(0,
|
|
13817
|
+
return A.byteLength >= 10 && A.getUint32(0, vh) === 1195984440 ? {
|
|
13802
13818
|
mimeType: "image/gif",
|
|
13803
13819
|
width: A.getUint16(6, GS),
|
|
13804
13820
|
height: A.getUint16(8, GS)
|
|
@@ -13806,7 +13822,7 @@ function zLA(e) {
|
|
|
13806
13822
|
}
|
|
13807
13823
|
function jLA(e) {
|
|
13808
13824
|
const A = z2(e);
|
|
13809
|
-
return A.byteLength >= 14 && A.getUint16(0,
|
|
13825
|
+
return A.byteLength >= 14 && A.getUint16(0, vh) === 16973 && A.getUint32(2, GS) === A.byteLength ? {
|
|
13810
13826
|
mimeType: "image/bmp",
|
|
13811
13827
|
width: A.getUint32(18, GS),
|
|
13812
13828
|
height: A.getUint32(22, GS)
|
|
@@ -13814,23 +13830,23 @@ function jLA(e) {
|
|
|
13814
13830
|
}
|
|
13815
13831
|
function ZLA(e) {
|
|
13816
13832
|
const A = z2(e);
|
|
13817
|
-
if (!(A.byteLength >= 3 && A.getUint16(0,
|
|
13833
|
+
if (!(A.byteLength >= 3 && A.getUint16(0, vh) === 65496 && A.getUint8(2) === 255))
|
|
13818
13834
|
return null;
|
|
13819
13835
|
const { tableMarkers: i, sofMarkers: r } = XLA();
|
|
13820
13836
|
let s = 2;
|
|
13821
13837
|
for (; s + 9 < A.byteLength; ) {
|
|
13822
|
-
const n = A.getUint16(s,
|
|
13838
|
+
const n = A.getUint16(s, vh);
|
|
13823
13839
|
if (r.has(n))
|
|
13824
13840
|
return {
|
|
13825
13841
|
mimeType: "image/jpeg",
|
|
13826
|
-
height: A.getUint16(s + 5,
|
|
13842
|
+
height: A.getUint16(s + 5, vh),
|
|
13827
13843
|
// Number of lines
|
|
13828
|
-
width: A.getUint16(s + 7,
|
|
13844
|
+
width: A.getUint16(s + 7, vh)
|
|
13829
13845
|
// Number of pixels per line
|
|
13830
13846
|
};
|
|
13831
13847
|
if (!i.has(n))
|
|
13832
13848
|
return null;
|
|
13833
|
-
s += 2, s += A.getUint16(s,
|
|
13849
|
+
s += 2, s += A.getUint16(s, vh);
|
|
13834
13850
|
}
|
|
13835
13851
|
return null;
|
|
13836
13852
|
}
|
|
@@ -18306,7 +18322,7 @@ class MPA {
|
|
|
18306
18322
|
return A.components === 1 ? t : `${t}x${A.components}`;
|
|
18307
18323
|
}
|
|
18308
18324
|
}
|
|
18309
|
-
const Nb = new MPA(), Fa = "texture-compression-bc", ls = "texture-compression-astc",
|
|
18325
|
+
const Nb = new MPA(), Fa = "texture-compression-bc", ls = "texture-compression-astc", Eh = "texture-compression-etc2", vPA = "texture-compression-etc1-webgl", RF = "texture-compression-pvrtc-webgl", PU = "texture-compression-atc-webgl", FF = "float32-renderable-webgl", JU = "float16-renderable-webgl", _PA = "rgb9e5ufloat-renderable-webgl", HU = "snorm8-renderable-webgl", yu = "norm16-webgl", YU = "norm16-renderable-webgl", KU = "snorm16-renderable-webgl", NF = "float32-filterable", sZ = "float16-filterable-webgl";
|
|
18310
18326
|
function aBA(e) {
|
|
18311
18327
|
const A = gBA[e];
|
|
18312
18328
|
if (!A)
|
|
@@ -18404,16 +18420,16 @@ const GPA = {
|
|
|
18404
18420
|
"bc7-rgba-unorm-srgb": { f: Fa },
|
|
18405
18421
|
// WEBGL_compressed_texture_etc: device.features.has("texture-compression-etc2")
|
|
18406
18422
|
// Note: Supposedly guaranteed availability compressed formats in WebGL2, but through CPU decompression
|
|
18407
|
-
"etc2-rgb8unorm": { f:
|
|
18408
|
-
"etc2-rgb8unorm-srgb": { f:
|
|
18409
|
-
"etc2-rgb8a1unorm": { f:
|
|
18410
|
-
"etc2-rgb8a1unorm-srgb": { f:
|
|
18411
|
-
"etc2-rgba8unorm": { f:
|
|
18412
|
-
"etc2-rgba8unorm-srgb": { f:
|
|
18413
|
-
"eac-r11unorm": { f:
|
|
18414
|
-
"eac-r11snorm": { f:
|
|
18415
|
-
"eac-rg11unorm": { f:
|
|
18416
|
-
"eac-rg11snorm": { f:
|
|
18423
|
+
"etc2-rgb8unorm": { f: Eh },
|
|
18424
|
+
"etc2-rgb8unorm-srgb": { f: Eh },
|
|
18425
|
+
"etc2-rgb8a1unorm": { f: Eh },
|
|
18426
|
+
"etc2-rgb8a1unorm-srgb": { f: Eh },
|
|
18427
|
+
"etc2-rgba8unorm": { f: Eh },
|
|
18428
|
+
"etc2-rgba8unorm-srgb": { f: Eh },
|
|
18429
|
+
"eac-r11unorm": { f: Eh },
|
|
18430
|
+
"eac-r11snorm": { f: Eh },
|
|
18431
|
+
"eac-rg11unorm": { f: Eh },
|
|
18432
|
+
"eac-rg11snorm": { f: Eh },
|
|
18417
18433
|
// X_ASTC compressed formats: device.features.has("texture-compression-astc")
|
|
18418
18434
|
"astc-4x4-unorm": { f: ls },
|
|
18419
18435
|
"astc-4x4-unorm-srgb": { f: ls },
|
|
@@ -26542,7 +26558,7 @@ function Ua(e) {
|
|
|
26542
26558
|
const i = A * uc, r = t * uc, s = gm * (i + ll) / (2 * ll), n = gm * (ll + Math.log(Math.tan(JBA + r * 0.5))) / (2 * ll);
|
|
26543
26559
|
return [s, n];
|
|
26544
26560
|
}
|
|
26545
|
-
function
|
|
26561
|
+
function Vh(e) {
|
|
26546
26562
|
const [A, t] = e, i = A / gm * (2 * ll) - ll, r = 2 * (Math.atan(Math.exp(t / gm * (2 * ll) - ll)) - JBA);
|
|
26547
26563
|
return [i * p8, r * p8];
|
|
26548
26564
|
}
|
|
@@ -26578,7 +26594,7 @@ function YBA(e, A) {
|
|
|
26578
26594
|
highPrecision: !0
|
|
26579
26595
|
}), l = Ua(e);
|
|
26580
26596
|
l[0] += s * (a[0] + g[0] * n), l[1] += n * (a[1] + g[1] * n);
|
|
26581
|
-
const C =
|
|
26597
|
+
const C = Vh(l), Q = (r || 0) + (o || 0);
|
|
26582
26598
|
return Number.isFinite(r) || Number.isFinite(o) ? [C[0], C[1], Q] : C;
|
|
26583
26599
|
}
|
|
26584
26600
|
function qHA(e) {
|
|
@@ -26647,7 +26663,7 @@ function VHA(e) {
|
|
|
26647
26663
|
t - C.top - C.bottom - Math.abs(n[1]) * 2
|
|
26648
26664
|
];
|
|
26649
26665
|
EC(_[0] > 0 && _[1] > 0);
|
|
26650
|
-
const U = _[0] / S[0], Y = _[1] / S[1], O = (C.right - C.left) / 2 / U, V = (C.top - C.bottom) / 2 / Y, AA = [(f[0] + Q[0]) / 2 + O, (f[1] + Q[1]) / 2 + V], eA =
|
|
26666
|
+
const U = _[0] / S[0], Y = _[1] / S[1], O = (C.right - C.left) / 2 / U, V = (C.top - C.bottom) / 2 / Y, AA = [(f[0] + Q[0]) / 2 + O, (f[1] + Q[1]) / 2 + V], eA = Vh(AA), sA = Math.min(s, PBA(Math.abs(Math.min(U, Y))));
|
|
26651
26667
|
return EC(Number.isFinite(sA)), {
|
|
26652
26668
|
longitude: eA[0],
|
|
26653
26669
|
latitude: eA[1],
|
|
@@ -26670,7 +26686,7 @@ function jHA(e, A = 0) {
|
|
|
26670
26686
|
return l > C - 0.01 ? (a = _Z(e, 0, A), g = _Z(e, t, A)) : (a = r([0, 0], s), g = r([t, 0], s)), [n, o, g, a];
|
|
26671
26687
|
}
|
|
26672
26688
|
function _Z(e, A, t) {
|
|
26673
|
-
const { pixelUnprojectionMatrix: i } = e, r = vy(i, [A, 0, 1, 1]), s = vy(i, [A, e.height, 1, 1]), o = (t * e.distanceScales.unitsPerMeter[2] - r[2]) / (s[2] - r[2]), a = UhA([], r, s, o), g =
|
|
26689
|
+
const { pixelUnprojectionMatrix: i } = e, r = vy(i, [A, 0, 1, 1]), s = vy(i, [A, e.height, 1, 1]), o = (t * e.distanceScales.unitsPerMeter[2] - r[2]) / (s[2] - r[2]), a = UhA([], r, s, o), g = Vh(a);
|
|
26674
26690
|
return g.push(t), g;
|
|
26675
26691
|
}
|
|
26676
26692
|
const OBA = 0.01, ZHA = ["longitude", "latitude", "zoom"], qBA = {
|
|
@@ -26690,7 +26706,7 @@ function WBA(e, A, t, i) {
|
|
|
26690
26706
|
}
|
|
26691
26707
|
const f = t * g, S = Math.cosh(Q) / Math.cosh(Q + l * f), _ = o * ((Math.cosh(Q) * Math.tanh(Q + l * f) - Math.sinh(Q)) / C) / a, U = 1 / S, Y = r + HBA(U), O = k3A([], n, _);
|
|
26692
26708
|
Rb(O, O, s);
|
|
26693
|
-
const V =
|
|
26709
|
+
const V = Vh(O);
|
|
26694
26710
|
return {
|
|
26695
26711
|
longitude: V[0],
|
|
26696
26712
|
latitude: V[1],
|
|
@@ -27507,7 +27523,7 @@ function xYA({ width: e, height: A, orthographic: t, fovyRadians: i, focalDistan
|
|
|
27507
27523
|
}
|
|
27508
27524
|
return g;
|
|
27509
27525
|
}
|
|
27510
|
-
class
|
|
27526
|
+
class xl {
|
|
27511
27527
|
// eslint-disable-next-line complexity
|
|
27512
27528
|
constructor(A = {}) {
|
|
27513
27529
|
this._frustumPlanes = {}, this.id = A.id || this.constructor.displayName || "viewport", this.x = A.x || 0, this.y = A.y || 0, this.width = A.width || 1, this.height = A.height || 1, this.zoom = A.zoom || 0, this.padding = A.padding, this.distanceScales = A.distanceScales || _YA, this.focalDistance = A.focalDistance || 1, this.position = A.position || LZ, this.modelMatrix = A.modelMatrix || null;
|
|
@@ -27526,7 +27542,7 @@ class _l {
|
|
|
27526
27542
|
// Two viewports are equal if width and height are identical, and if
|
|
27527
27543
|
// their view and projection matrices are (approximately) equal.
|
|
27528
27544
|
equals(A) {
|
|
27529
|
-
return A instanceof
|
|
27545
|
+
return A instanceof xl ? this === A ? !0 : A.width === this.width && A.height === this.height && A.scale === this.scale && Cc(A.projectionMatrix, this.projectionMatrix) && Cc(A.viewMatrix, this.viewMatrix) : !1;
|
|
27530
27546
|
}
|
|
27531
27547
|
/**
|
|
27532
27548
|
* Projects xyz (possibly latitude and longitude) to pixel coordinates in window
|
|
@@ -27593,7 +27609,7 @@ class _l {
|
|
|
27593
27609
|
* Per cartographic tradition, lat and lon are specified as degrees.
|
|
27594
27610
|
*/
|
|
27595
27611
|
unprojectFlat(A) {
|
|
27596
|
-
return this.isGeospatial ?
|
|
27612
|
+
return this.isGeospatial ? Vh(A) : A;
|
|
27597
27613
|
}
|
|
27598
27614
|
/**
|
|
27599
27615
|
* Get bounds of the current viewport
|
|
@@ -27685,8 +27701,8 @@ class _l {
|
|
|
27685
27701
|
zK(Q, Q, [this.width / 2, -this.height / 2, 1]), WM(Q, Q, [1, -1, 0]), Fd(f, Q, this.viewProjectionMatrix), this.pixelProjectionMatrix = f, this.pixelUnprojectionMatrix = c8(hS(), this.pixelProjectionMatrix), this.pixelUnprojectionMatrix || li.warn("Pixel project matrix not invertible")();
|
|
27686
27702
|
}
|
|
27687
27703
|
}
|
|
27688
|
-
|
|
27689
|
-
class zg extends
|
|
27704
|
+
xl.displayName = "Viewport";
|
|
27705
|
+
class zg extends xl {
|
|
27690
27706
|
/* eslint-disable complexity, max-statements */
|
|
27691
27707
|
constructor(A = {}) {
|
|
27692
27708
|
const {
|
|
@@ -31173,7 +31189,7 @@ class W4A {
|
|
|
31173
31189
|
this._data = A;
|
|
31174
31190
|
const i = ++this._loadCount;
|
|
31175
31191
|
let r = A;
|
|
31176
|
-
typeof A == "string" && (r =
|
|
31192
|
+
typeof A == "string" && (r = Wh(A)), r instanceof Promise ? (this.isLoaded = !1, this._loader = r.then((s) => {
|
|
31177
31193
|
this._loadCount === i && (this.isLoaded = !0, this._error = void 0, this._content = s);
|
|
31178
31194
|
}).catch((s) => {
|
|
31179
31195
|
this._loadCount === i && (this.isLoaded = !0, this._error = s || !0);
|
|
@@ -31268,7 +31284,7 @@ class pCA {
|
|
|
31268
31284
|
renderPass: void 0,
|
|
31269
31285
|
stats: r || new Tm({ id: "deck.gl" }),
|
|
31270
31286
|
// Make sure context.viewport is not empty on the first layer initialization
|
|
31271
|
-
viewport: s || new
|
|
31287
|
+
viewport: s || new xl({ id: "DEFAULT-INITIAL-VIEWPORT" }),
|
|
31272
31288
|
// Current viewport, exposed to layers for project* function
|
|
31273
31289
|
timeline: n || new iCA(),
|
|
31274
31290
|
resourceManager: this.resourceManager,
|
|
@@ -32040,7 +32056,7 @@ function oKA() {
|
|
|
32040
32056
|
degreesPerUnit: [1 / A, 1 / A, 1 / e]
|
|
32041
32057
|
};
|
|
32042
32058
|
}
|
|
32043
|
-
class Zm extends
|
|
32059
|
+
class Zm extends xl {
|
|
32044
32060
|
constructor(A = {}) {
|
|
32045
32061
|
const {
|
|
32046
32062
|
longitude: t = 0,
|
|
@@ -32853,7 +32869,7 @@ class wCA extends yCA {
|
|
|
32853
32869
|
applyConstraints(A) {
|
|
32854
32870
|
const { maxPitch: t, minPitch: i, pitch: r, longitude: s, bearing: n, normalize: o, maxBounds: a } = A;
|
|
32855
32871
|
if (o && ((s < -180 || s > 180) && (A.longitude = w8(s + 180, 360) - 180), (n < -180 || n > 180) && (A.bearing = w8(n + 180, 360) - 180)), A.pitch = Xs(r, i, t), A.zoom = this._constrainZoom(A.zoom, A), a) {
|
|
32856
|
-
const g = kF(a[0]), l = kF(a[1]), C = 2 ** A.zoom, Q = A.width / 2 / C, f = A.height / 2 / C, [S, _] =
|
|
32872
|
+
const g = kF(a[0]), l = kF(a[1]), C = 2 ** A.zoom, Q = A.width / 2 / C, f = A.height / 2 / C, [S, _] = Vh([g[0] + Q, g[1] + f]), [U, Y] = Vh([l[0] - Q, l[1] - f]);
|
|
32857
32873
|
A.longitude = Xs(A.longitude, S, U), A.latitude = Xs(A.latitude, _, Y);
|
|
32858
32874
|
}
|
|
32859
32875
|
return A;
|
|
@@ -34608,17 +34624,17 @@ const YKA = {
|
|
|
34608
34624
|
viewport: (e, A, t, i, r) => e({
|
|
34609
34625
|
2978: [A, t, i, r]
|
|
34610
34626
|
})
|
|
34611
|
-
},
|
|
34612
|
-
3042:
|
|
34613
|
-
2884:
|
|
34614
|
-
2929:
|
|
34615
|
-
3024:
|
|
34616
|
-
32823:
|
|
34617
|
-
32926:
|
|
34618
|
-
32928:
|
|
34619
|
-
3089:
|
|
34620
|
-
2960:
|
|
34621
|
-
35977:
|
|
34627
|
+
}, Qh = (e, A) => e.isEnabled(A), l7 = {
|
|
34628
|
+
3042: Qh,
|
|
34629
|
+
2884: Qh,
|
|
34630
|
+
2929: Qh,
|
|
34631
|
+
3024: Qh,
|
|
34632
|
+
32823: Qh,
|
|
34633
|
+
32926: Qh,
|
|
34634
|
+
32928: Qh,
|
|
34635
|
+
3089: Qh,
|
|
34636
|
+
2960: Qh,
|
|
34637
|
+
35977: Qh
|
|
34622
34638
|
}, KKA = /* @__PURE__ */ new Set([
|
|
34623
34639
|
34016,
|
|
34624
34640
|
36388,
|
|
@@ -40704,12 +40720,12 @@ const U6A = {
|
|
|
40704
40720
|
}
|
|
40705
40721
|
});
|
|
40706
40722
|
let o = n.contains(e);
|
|
40707
|
-
return !o && !r && (n.add({ resourceId: e, data:
|
|
40723
|
+
return !o && !r && (n.add({ resourceId: e, data: Wh(e, i), persistent: !1 }), o = !0), o ? n.subscribe({
|
|
40708
40724
|
resourceId: e,
|
|
40709
40725
|
onChange: (a) => t.internalState?.reloadAsyncProp(A, a),
|
|
40710
40726
|
consumerId: t.id,
|
|
40711
40727
|
requestId: A
|
|
40712
|
-
}) :
|
|
40728
|
+
}) : Wh(e, i, r);
|
|
40713
40729
|
}
|
|
40714
40730
|
},
|
|
40715
40731
|
updateTriggers: {},
|
|
@@ -41499,7 +41515,7 @@ function O6A({ width: e, height: A, near: t, far: i, padding: r }) {
|
|
|
41499
41515
|
far: i
|
|
41500
41516
|
});
|
|
41501
41517
|
}
|
|
41502
|
-
class rR extends
|
|
41518
|
+
class rR extends xl {
|
|
41503
41519
|
constructor(A) {
|
|
41504
41520
|
const { width: t, height: i, near: r = 0.1, far: s = 1e3, zoom: n = 0, target: o = [0, 0, 0], padding: a = null, flipY: g = !0 } = A, l = A.zoomX ?? (Array.isArray(n) ? n[0] : n), C = A.zoomY ?? (Array.isArray(n) ? n[1] : n), Q = Math.min(l, C), f = Math.pow(2, Q);
|
|
41505
41521
|
let S;
|
|
@@ -42106,7 +42122,7 @@ const Z6A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
42106
42122
|
UNIT: La,
|
|
42107
42123
|
VERSION: phA,
|
|
42108
42124
|
View: nG,
|
|
42109
|
-
Viewport:
|
|
42125
|
+
Viewport: xl,
|
|
42110
42126
|
WebMercatorViewport: zg,
|
|
42111
42127
|
Widget: gG,
|
|
42112
42128
|
_CameraLight: tCA,
|
|
@@ -44479,7 +44495,7 @@ class PWA {
|
|
|
44479
44495
|
willReadFrequently: !0
|
|
44480
44496
|
});
|
|
44481
44497
|
for (const i of A)
|
|
44482
|
-
this._pendingCount++,
|
|
44498
|
+
this._pendingCount++, Wh(i.url, this._loadOptions).then((r) => {
|
|
44483
44499
|
const s = Gb(i), n = this._mapping[s], { x: o, y: a, width: g, height: l } = n, { image: C, width: Q, height: f } = kWA(t, r, g, l), S = o + (g - Q) / 2, _ = a + (l - f) / 2;
|
|
44484
44500
|
this._texture?.copyExternalImage({
|
|
44485
44501
|
image: C,
|
|
@@ -50607,7 +50623,7 @@ var yZA = GEA, mZA = NEA, wZA = MEA, DZA = vEA, SZA = _EA, bZA = xEA, RZA = kEA,
|
|
|
50607
50623
|
e[0] = A[o], e[1] = A[o + 1], s(e, e, n), A[o] = e[0], A[o + 1] = e[1];
|
|
50608
50624
|
return A;
|
|
50609
50625
|
};
|
|
50610
|
-
})(), NZA = (1 + Math.sqrt(5)) / 2, Ev = 2 * Math.PI / 5,
|
|
50626
|
+
})(), NZA = (1 + Math.sqrt(5)) / 2, Ev = 2 * Math.PI / 5, Th = Math.PI / 5, MX = Math.PI / 10, MZA = 2 * Math.atan(NZA), IJ = Math.PI - MZA, pG = (Math.sqrt(5) - 1) / 2, vZA = 3 - Math.sqrt(5), LEA = 63710072e-1;
|
|
50611
50627
|
ya.setMatrixArrayType(Float64Array);
|
|
50612
50628
|
var ZO = class cJ {
|
|
50613
50629
|
constructor(A) {
|
|
@@ -50715,11 +50731,11 @@ var ZO = class cJ {
|
|
|
50715
50731
|
}
|
|
50716
50732
|
};
|
|
50717
50733
|
ya.setMatrixArrayType(Float64Array);
|
|
50718
|
-
var UEA = [0, 0], TEA = [0, 1], sf = [0.7885966681787006, 1.6149108024237764], PEA = [1.6171013659387945, 1.054928690397459], JEA = [Math.cos(MX), Math.sin(MX)], _ZA = 2 * Yi.length(sf) * Math.cos(
|
|
50734
|
+
var UEA = [0, 0], TEA = [0, 1], sf = [0.7885966681787006, 1.6149108024237764], PEA = [1.6171013659387945, 1.054928690397459], JEA = [Math.cos(MX), Math.sin(MX)], _ZA = 2 * Yi.length(sf) * Math.cos(Th), xZA = Th - Math.atan2(sf[1], sf[0]), GZA = 2 * pG / _ZA;
|
|
50719
50735
|
[UEA, TEA, sf, PEA, JEA].forEach((e) => {
|
|
50720
50736
|
Yi.scale(e, e, GZA), Yi.rotate(e, e, [0, 0], xZA);
|
|
50721
50737
|
});
|
|
50722
|
-
var kZA = new ZO([UEA, TEA, sf, PEA, JEA]), HEA = Math.atan2(sf[1], sf[0]) -
|
|
50738
|
+
var kZA = new ZO([UEA, TEA, sf, PEA, JEA]), HEA = Math.atan2(sf[1], sf[0]) - Th, LZA = [0, 0], Qv = pG / Math.cos(Th), vX = HEA + Th, dv = [Qv * Math.cos(vX), Qv * Math.sin(vX)], _X = HEA - Th, Pb = [Qv * Math.cos(_X), Qv * Math.sin(_X)], UZA = new ZO([LZA, dv, Pb]), YEA = rf.fromValues(dv[0], dv[1], Pb[0], Pb[1]);
|
|
50723
50739
|
rf.invert(rf.create(), YEA);
|
|
50724
50740
|
var TZA = new Float64Array([
|
|
50725
50741
|
-0.0022392098386786394,
|
|
@@ -50881,8 +50897,8 @@ var jEA = ["vu", "uw", "vw", "vw", "vw"], ES = ["wu", "uw", "vw", "vu", "uw"], p
|
|
|
50881
50897
|
function ZZA() {
|
|
50882
50898
|
XF([0, 0], 0, jF[0]);
|
|
50883
50899
|
for (let e = 0; e < 5; e++) {
|
|
50884
|
-
const A = e * Ev, t = A +
|
|
50885
|
-
XF([A, IJ],
|
|
50900
|
+
const A = e * Ev, t = A + Th;
|
|
50901
|
+
XF([A, IJ], Th, jF[e + 1]), XF([t, Math.PI - IJ], Th, jF[(e + 3) % 5 + 6]);
|
|
50886
50902
|
}
|
|
50887
50903
|
XF([0, Math.PI], 0, jF[11]);
|
|
50888
50904
|
}
|
|
@@ -51280,7 +51296,7 @@ var B7A = new h7A(), C7A = class {
|
|
|
51280
51296
|
* @returns Face triangle index, value from 0 to 9
|
|
51281
51297
|
*/
|
|
51282
51298
|
getFaceTriangleIndex([e, A]) {
|
|
51283
|
-
return (Math.floor(A /
|
|
51299
|
+
return (Math.floor(A / Th) + 10) % 10;
|
|
51284
51300
|
}
|
|
51285
51301
|
/**
|
|
51286
51302
|
* Gets the face triangle for a given polar coordinate
|
|
@@ -51744,7 +51760,7 @@ var Yr = (function(e) {
|
|
|
51744
51760
|
function sB(p, w) {
|
|
51745
51761
|
p = p | 0, w = w | 0;
|
|
51746
51762
|
var D = 0, N = 0, R = 0;
|
|
51747
|
-
return (p | 0) < 0 ? (w = 2, w | 0) : (p | 0) > 13780509 ? (w =
|
|
51763
|
+
return (p | 0) < 0 ? (w = 2, w | 0) : (p | 0) > 13780509 ? (w = jl(15, w) | 0, w | 0) : (D = ((p | 0) < 0) << 31 >> 31, R = er(p | 0, D | 0, 3, 0) | 0, N = NA() | 0, D = Ct(p | 0, D | 0, 1, 0) | 0, D = er(R | 0, N | 0, D | 0, NA() | 0) | 0, D = Ct(D | 0, NA() | 0, 1, 0) | 0, p = NA() | 0, E[w >> 2] = D, E[w + 4 >> 2] = p, w = 0, w | 0);
|
|
51748
51764
|
}
|
|
51749
51765
|
function ZE(p, w, D, N) {
|
|
51750
51766
|
return p = p | 0, w = w | 0, D = D | 0, N = N | 0, XE(p, w, D, N, 0) | 0;
|
|
@@ -51757,7 +51773,7 @@ var Yr = (function(e) {
|
|
|
51757
51773
|
do
|
|
51758
51774
|
if ((D | 0) >= 0) {
|
|
51759
51775
|
if ((D | 0) > 13780509) {
|
|
51760
|
-
if (M =
|
|
51776
|
+
if (M = jl(15, k) | 0, M | 0)
|
|
51761
51777
|
break;
|
|
51762
51778
|
J = k, k = E[J >> 2] | 0, J = E[J + 4 >> 2] | 0;
|
|
51763
51779
|
} else
|
|
@@ -52102,7 +52118,7 @@ var Yr = (function(e) {
|
|
|
52102
52118
|
do
|
|
52103
52119
|
if ((D | 0) >= 0) {
|
|
52104
52120
|
if ((D | 0) > 13780509) {
|
|
52105
|
-
if (R =
|
|
52121
|
+
if (R = jl(15, k) | 0, R | 0)
|
|
52106
52122
|
break;
|
|
52107
52123
|
M = k, R = E[M >> 2] | 0, M = E[M + 4 >> 2] | 0;
|
|
52108
52124
|
} else
|
|
@@ -52296,7 +52312,7 @@ var Yr = (function(e) {
|
|
|
52296
52312
|
J = M, W = k;
|
|
52297
52313
|
break;
|
|
52298
52314
|
}
|
|
52299
|
-
Gc(DA, FA, nn) | 0,
|
|
52315
|
+
Gc(DA, FA, nn) | 0, th(p, Ei, nn) | 0 && (mA = Ct(M | 0, k | 0, 1, 0) | 0, k = NA() | 0, uA = J, E[uA >> 2] = DA, E[uA + 4 >> 2] = FA, M = De + (M << 3) | 0, E[M >> 2] = DA, E[M + 4 >> 2] = FA, M = mA), J = M, W = k;
|
|
52300
52316
|
}
|
|
52301
52317
|
while (!1);
|
|
52302
52318
|
if (PA = PA + 1 | 0, PA >>> 0 >= 7)
|
|
@@ -52332,7 +52348,7 @@ var Yr = (function(e) {
|
|
|
52332
52348
|
}
|
|
52333
52349
|
return yt(Ei), Ei = R, vA = gr, Ei | 0;
|
|
52334
52350
|
}
|
|
52335
|
-
function
|
|
52351
|
+
function Ll(p, w, D) {
|
|
52336
52352
|
p = p | 0, w = w | 0, D = D | 0;
|
|
52337
52353
|
var N = 0, R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0;
|
|
52338
52354
|
if (J = vA, vA = vA + 16 | 0, k = J, p = $f(p, w, ((w | 0) < 0) << 31 >> 31, k) | 0, p | 0)
|
|
@@ -52372,7 +52388,7 @@ var Yr = (function(e) {
|
|
|
52372
52388
|
var N = 0, R = 0, M = 0, k = 0;
|
|
52373
52389
|
return k = vA, vA = vA + 192 | 0, N = k + 176 | 0, R = k, M = k + 168 | 0, p = UI(p, w, R) | 0, p ? (M = p, vA = k, M | 0) : (E[M >> 2] = E[R >> 2], E[M + 4 >> 2] = R + 8, E[N >> 2] = E[M >> 2], E[N + 4 >> 2] = E[M + 4 >> 2], vo(N, D) | 0, hA[D >> 3] = +hA[D >> 3] * 4058973249931477e-8, M = 0, vA = k, M | 0);
|
|
52374
52390
|
}
|
|
52375
|
-
function
|
|
52391
|
+
function Ul(p, w, D) {
|
|
52376
52392
|
p = p | 0, w = w | 0, D = D | 0;
|
|
52377
52393
|
var N = 0, R = 0, M = 0, k = 0;
|
|
52378
52394
|
return k = vA, vA = vA + 192 | 0, N = k + 176 | 0, R = k, M = k + 168 | 0, p = UI(p, w, R) | 0, p ? (M = p, vA = k, M | 0) : (E[M >> 2] = E[R >> 2], E[M + 4 >> 2] = R + 8, E[N >> 2] = E[M >> 2], E[N + 4 >> 2] = E[M + 4 >> 2], vo(N, D) | 0, hA[D >> 3] = +hA[D >> 3] * 4058973249931477e-8 * 1e6, M = 0, vA = k, M | 0);
|
|
@@ -52523,7 +52539,7 @@ var Yr = (function(e) {
|
|
|
52523
52539
|
function ho(p) {
|
|
52524
52540
|
return p = p | 0, +hA[p + 16 >> 3] < +hA[p + 24 >> 3] | 0;
|
|
52525
52541
|
}
|
|
52526
|
-
function
|
|
52542
|
+
function Tl(p) {
|
|
52527
52543
|
return p = p | 0, +(+hA[p >> 3] - +hA[p + 8 >> 3]);
|
|
52528
52544
|
}
|
|
52529
52545
|
function iI(p, w) {
|
|
@@ -52562,7 +52578,7 @@ var Yr = (function(e) {
|
|
|
52562
52578
|
do
|
|
52563
52579
|
E[J >> 2] = 0, J = J + 4 | 0;
|
|
52564
52580
|
while ((J | 0) < (W | 0));
|
|
52565
|
-
return w = lB(w, $) | 0, w | 0 ? (DA = w, vA = FA, DA | 0) : (W = $, $ = E[W >> 2] | 0, W = E[W + 4 >> 2] | 0, Gc($, W, IA) | 0, UI($, W, uA) | 0, k = +
|
|
52581
|
+
return w = lB(w, $) | 0, w | 0 ? (DA = w, vA = FA, DA | 0) : (W = $, $ = E[W >> 2] | 0, W = E[W + 4 >> 2] | 0, Gc($, W, IA) | 0, UI($, W, uA) | 0, k = +Vl(IA, uA + 8 | 0), hA[IA >> 3] = +hA[p >> 3], W = IA + 8 | 0, hA[W >> 3] = +hA[p + 16 >> 3], hA[uA >> 3] = +hA[p + 8 >> 3], $ = uA + 8 | 0, hA[$ >> 3] = +hA[p + 24 >> 3], R = +Vl(IA, uA), ne = +hA[W >> 3] - +hA[$ >> 3], M = +MA(+ne), PA = +hA[IA >> 3] - +hA[uA >> 3], N = +MA(+PA), !(ne == 0 | PA == 0) && (ne = +Yc(+M, +N), ne = +ti(+(R * R / +pB(+(ne / +pB(+M, +N)), 3) / (k * (k * 2.59807621135) * 0.8))), hA[xA >> 3] = ne, mA = ~~ne >>> 0, DA = +MA(ne) >= 1 ? ne > 0 ? ~~+as(+Se(ne / 4294967296), 4294967295) >>> 0 : ~~+ti((ne - +(~~ne >>> 0)) / 4294967296) >>> 0 : 0, (E[xA + 4 >> 2] & 2146435072 | 0) != 2146435072) ? (uA = (mA | 0) == 0 & (DA | 0) == 0, w = D, E[w >> 2] = uA ? 1 : mA, E[w + 4 >> 2] = uA ? 0 : DA, w = 0) : w = 1, DA = w, vA = FA, DA | 0);
|
|
52566
52582
|
}
|
|
52567
52583
|
function Nc(p, w, D, N) {
|
|
52568
52584
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0;
|
|
@@ -52571,7 +52587,7 @@ var Yr = (function(e) {
|
|
|
52571
52587
|
do
|
|
52572
52588
|
E[R >> 2] = 0, R = R + 4 | 0;
|
|
52573
52589
|
while ((R | 0) < (M | 0));
|
|
52574
|
-
return D = lB(D, W) | 0, D | 0 ? (N = D, vA = $, N | 0) : (D = W, R = E[D >> 2] | 0, D = E[D + 4 >> 2] | 0, Gc(R, D, k) | 0, UI(R, D, J) | 0, IA = +
|
|
52590
|
+
return D = lB(D, W) | 0, D | 0 ? (N = D, vA = $, N | 0) : (D = W, R = E[D >> 2] | 0, D = E[D + 4 >> 2] | 0, Gc(R, D, k) | 0, UI(R, D, J) | 0, IA = +Vl(k, J + 8 | 0), IA = +ti(+(+Vl(p, w) / (IA * 2))), hA[xA >> 3] = IA, D = ~~IA >>> 0, R = +MA(IA) >= 1 ? IA > 0 ? ~~+as(+Se(IA / 4294967296), 4294967295) >>> 0 : ~~+ti((IA - +(~~IA >>> 0)) / 4294967296) >>> 0 : 0, (E[xA + 4 >> 2] & 2146435072 | 0) == 2146435072 ? (N = 1, vA = $, N | 0) : (W = (D | 0) == 0 & (R | 0) == 0, E[N >> 2] = W ? 1 : D, E[N + 4 >> 2] = W ? 0 : R, N = 0, vA = $, N | 0));
|
|
52575
52591
|
}
|
|
52576
52592
|
function rI(p, w) {
|
|
52577
52593
|
p = p | 0, w = +w;
|
|
@@ -52892,7 +52908,7 @@ var Yr = (function(e) {
|
|
|
52892
52908
|
var D = 0, N = 0, R = 0, M = 0, k = 0, J = 0;
|
|
52893
52909
|
return J = p, k = E[J >> 2] | 0, J = E[J + 4 >> 2] | 0, M = w, R = E[M >> 2] | 0, M = E[M + 4 >> 2] | 0, J >>> 0 < M >>> 0 | (J | 0) == (M | 0) & k >>> 0 < R >>> 0 ? (w = -1, w | 0) : J >>> 0 > M >>> 0 | (J | 0) == (M | 0) & k >>> 0 > R >>> 0 ? (w = 1, w | 0) : (N = +hA[p + 8 >> 3], D = +hA[w + 8 >> 3], N < D ? (w = -1, w | 0) : (w = N > D & 1, w | 0));
|
|
52894
52910
|
}
|
|
52895
|
-
function
|
|
52911
|
+
function Pl(p, w) {
|
|
52896
52912
|
p = p | 0, w = w | 0;
|
|
52897
52913
|
var D = 0, N = 0;
|
|
52898
52914
|
return N = +hA[p >> 3], D = +hA[w >> 3], (N > D ? -1 : N < D & 1) | 0;
|
|
@@ -52939,7 +52955,7 @@ var Yr = (function(e) {
|
|
|
52939
52955
|
function _i(p, w, D, N, R) {
|
|
52940
52956
|
return p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0, D = qC(p, w, D, N) | 0, (D | 0) == 7 ? (R = 11, R | 0) : (N = Bt(D | 0, 0, 56) | 0, w = w & -2130706433 | (NA() | 0) | 268435456, E[R >> 2] = p | N, E[R + 4 >> 2] = w, R = 0, R | 0);
|
|
52941
52957
|
}
|
|
52942
|
-
function
|
|
52958
|
+
function Jl(p, w, D) {
|
|
52943
52959
|
return p = p | 0, w = w | 0, D = D | 0, !0 & (w & 2013265920 | 0) == 268435456 ? (E[D >> 2] = p, E[D + 4 >> 2] = w & -2130706433 | 134217728, D = 0, D | 0) : (D = 6, D | 0);
|
|
52944
52960
|
}
|
|
52945
52961
|
function or(p, w, D) {
|
|
@@ -52957,7 +52973,7 @@ var Yr = (function(e) {
|
|
|
52957
52973
|
}
|
|
52958
52974
|
return D = w & -2130706433 | 134217728, !(!0 & (w & 2013265920 | 0) == 268435456) || !0 & (w & 117440512 | 0) == 16777216 & (pr(p, D) | 0) != 0 ? (D = 0, D | 0) : (D = jC(p, D) | 0, D | 0);
|
|
52959
52975
|
}
|
|
52960
|
-
function
|
|
52976
|
+
function Hl(p, w, D) {
|
|
52961
52977
|
p = p | 0, w = w | 0, D = D | 0;
|
|
52962
52978
|
var N = 0, R = 0, M = 0, k = 0;
|
|
52963
52979
|
return R = vA, vA = vA + 16 | 0, N = R, !0 & (w & 2013265920 | 0) == 268435456 ? (M = w & -2130706433 | 134217728, k = D, E[k >> 2] = p, E[k + 4 >> 2] = M, E[N >> 2] = 0, w = it(p | 0, w | 0, 56) | 0, NA() | 0, N = Ls(p, M, w & 7, N, D + 8 | 0) | 0, vA = R, N | 0) : (N = 6, vA = R, N | 0);
|
|
@@ -53049,9 +53065,9 @@ var Yr = (function(e) {
|
|
|
53049
53065
|
function A0(p, w, D) {
|
|
53050
53066
|
p = p | 0, w = w | 0, D = D | 0;
|
|
53051
53067
|
var N = 0, R = 0, M = 0, k = 0;
|
|
53052
|
-
N = vA, vA = vA + 16 | 0, R = N, k = E[p + 12 >> 2] | 0, M = +((E[p + 8 >> 2] | 0) - k | 0), hA[R >> 3] = +((E[p + 4 >> 2] | 0) - k | 0) - M * 0.5, hA[R + 8 >> 3] = M * 0.8660254037844386,
|
|
53068
|
+
N = vA, vA = vA + 16 | 0, R = N, k = E[p + 12 >> 2] | 0, M = +((E[p + 8 >> 2] | 0) - k | 0), hA[R >> 3] = +((E[p + 4 >> 2] | 0) - k | 0) - M * 0.5, hA[R + 8 >> 3] = M * 0.8660254037844386, Yl(R, E[p >> 2] | 0, w, 0, D), vA = N;
|
|
53053
53069
|
}
|
|
53054
|
-
function
|
|
53070
|
+
function Yl(p, w, D, N, R) {
|
|
53055
53071
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0;
|
|
53056
53072
|
var M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0, ne = 0;
|
|
53057
53073
|
if (M = +a0(p), M < 1e-16) {
|
|
@@ -53105,9 +53121,9 @@ var Yr = (function(e) {
|
|
|
53105
53121
|
break A;
|
|
53106
53122
|
}
|
|
53107
53123
|
}
|
|
53108
|
-
|
|
53124
|
+
sh(ys, ar, N, p, Ln), Yl(Ln, IA, ce, 1, ps), lr = E[R >> 2] | 0, Vs = +ht(+ +hA[ne >> 3]), Va = +Ye(+ +hA[FA >> 3], + +hA[ps >> 3]), hA[R + 8 + (lr << 4) >> 3] = Vs, hA[R + 8 + (lr << 4) + 8 >> 3] = Va, E[R >> 2] = (E[R >> 2] | 0) + 1;
|
|
53109
53125
|
}
|
|
53110
|
-
if ((mA | 0) < (pe | 0) && (lr = E[JA >> 2] | 0, Vs = +((E[ye >> 2] | 0) - lr | 0), hA[ys >> 3] = +((E[be >> 2] | 0) - lr | 0) - Vs * 0.5, hA[ft >> 3] = Vs * 0.8660254037844386,
|
|
53126
|
+
if ((mA | 0) < (pe | 0) && (lr = E[JA >> 2] | 0, Vs = +((E[ye >> 2] | 0) - lr | 0), hA[ys >> 3] = +((E[be >> 2] | 0) - lr | 0) - Vs * 0.5, hA[ft >> 3] = Vs * 0.8660254037844386, Yl(ys, E[Ts >> 2] | 0, ce, 1, ar), lr = E[R >> 2] | 0, Vs = +ht(+ +hA[PA >> 3]), Va = +Ye(+ +hA[DA >> 3], + +hA[ar >> 3]), hA[R + 8 + (lr << 4) >> 3] = Vs, hA[R + 8 + (lr << 4) + 8 >> 3] = Va, E[R >> 2] = (E[R >> 2] | 0) + 1), mA = mA + 1 | 0, (mA | 0) >= (Ji | 0)) {
|
|
53111
53127
|
p = 3;
|
|
53112
53128
|
break;
|
|
53113
53129
|
} else
|
|
@@ -53176,7 +53192,7 @@ var Yr = (function(e) {
|
|
|
53176
53192
|
function Mc(p, w, D, N, R) {
|
|
53177
53193
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0;
|
|
53178
53194
|
var M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0, ne = 0, ye = 0, JA = 0, be = 0, ce = 0, Ke = 0, pe = 0, ke = 0, De = 0, dt = 0, At = 0, Mt = 0, gt = 0, ft = 0, Ji = 0, ar = 0, nn = 0, Ei = 0, gr = 0, Ln = 0, ps = 0, Is = 0, Ts = 0, ys = 0;
|
|
53179
|
-
if (ps = vA, vA = vA + 272 | 0, M = ps + 256 | 0, k = ps + 240 | 0, Ei = ps, gr = ps + 224 | 0, Ln = ps + 208 | 0, At = ps + 184 | 0, Mt = ps + 168 | 0, gt = ps + 152 | 0, ft = ps + 136 | 0, Ji = ps + 120 | 0, ar = ps + 96 | 0, E[M >> 2] = w, E[k >> 2] = E[p >> 2], E[k + 4 >> 2] = E[p + 4 >> 2], E[k + 8 >> 2] = E[p + 8 >> 2], E[k + 12 >> 2] = E[p + 12 >> 2],
|
|
53195
|
+
if (ps = vA, vA = vA + 272 | 0, M = ps + 256 | 0, k = ps + 240 | 0, Ei = ps, gr = ps + 224 | 0, Ln = ps + 208 | 0, At = ps + 184 | 0, Mt = ps + 168 | 0, gt = ps + 152 | 0, ft = ps + 136 | 0, Ji = ps + 120 | 0, ar = ps + 96 | 0, E[M >> 2] = w, E[k >> 2] = E[p >> 2], E[k + 4 >> 2] = E[p + 4 >> 2], E[k + 8 >> 2] = E[p + 8 >> 2], E[k + 12 >> 2] = E[p + 12 >> 2], Kl(k, M, Ei), E[R >> 2] = 0, dt = N + D + ((N | 0) == 6 & 1) | 0, (dt | 0) <= (D | 0)) {
|
|
53180
53196
|
vA = ps;
|
|
53181
53197
|
return;
|
|
53182
53198
|
}
|
|
@@ -53201,9 +53217,9 @@ var Yr = (function(e) {
|
|
|
53201
53217
|
break A;
|
|
53202
53218
|
}
|
|
53203
53219
|
}
|
|
53204
|
-
|
|
53220
|
+
sh(Ln, At, N, p, Ji), !(g0(Ln, Ji) | 0) && !(g0(At, Ji) | 0) && (Yl(Ji, PA, ye, 1, ar), ys = E[R >> 2] | 0, Is = +ht(+ +hA[uA >> 3]), Ts = +Ye(+ +hA[$ >> 3], + +hA[ar >> 3]), hA[R + 8 + (ys << 4) >> 3] = Is, hA[R + 8 + (ys << 4) + 8 >> 3] = Ts, E[R >> 2] = (E[R >> 2] | 0) + 1);
|
|
53205
53221
|
}
|
|
53206
|
-
if ((J | 0) < (JA | 0) && (ys = E[FA >> 2] | 0, Is = +((E[DA >> 2] | 0) - ys | 0), hA[Ln >> 3] = +((E[mA >> 2] | 0) - ys | 0) - Is * 0.5, hA[ne >> 3] = Is * 0.8660254037844386,
|
|
53222
|
+
if ((J | 0) < (JA | 0) && (ys = E[FA >> 2] | 0, Is = +((E[DA >> 2] | 0) - ys | 0), hA[Ln >> 3] = +((E[mA >> 2] | 0) - ys | 0) - Is * 0.5, hA[ne >> 3] = Is * 0.8660254037844386, Yl(Ln, E[gr >> 2] | 0, ye, 1, At), ys = E[R >> 2] | 0, Is = +ht(+ +hA[IA >> 3]), Ts = +Ye(+ +hA[W >> 3], + +hA[At >> 3]), hA[R + 8 + (ys << 4) >> 3] = Is, hA[R + 8 + (ys << 4) + 8 >> 3] = Ts, E[R >> 2] = (E[R >> 2] | 0) + 1), J = J + 1 | 0, (J | 0) >= (dt | 0)) {
|
|
53207
53223
|
p = 3;
|
|
53208
53224
|
break;
|
|
53209
53225
|
} else
|
|
@@ -53214,7 +53230,7 @@ var Yr = (function(e) {
|
|
|
53214
53230
|
return;
|
|
53215
53231
|
} else (p | 0) == 8 && Nt(27157, 27120, 766, 27202);
|
|
53216
53232
|
}
|
|
53217
|
-
function
|
|
53233
|
+
function Kl(p, w, D) {
|
|
53218
53234
|
p = p | 0, w = w | 0, D = D | 0;
|
|
53219
53235
|
var N = 0, R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0;
|
|
53220
53236
|
PA = vA, vA = vA + 160 | 0, N = PA + 80 | 0, R = PA, M = N, k = 20336, J = M + 72 | 0;
|
|
@@ -53278,12 +53294,12 @@ var Yr = (function(e) {
|
|
|
53278
53294
|
var D = 0, N = 0, R = 0, M = 0, k = 0;
|
|
53279
53295
|
return !(!0 & (w & -16777216 | 0) == 134217728) || (N = it(p | 0, w | 0, 52) | 0, NA() | 0, N = N & 15, D = it(p | 0, w | 0, 45) | 0, NA() | 0, D = D & 127, D >>> 0 > 121) ? (p = 0, p | 0) : (k = (N ^ 15) * 3 | 0, R = it(p | 0, w | 0, k | 0) | 0, k = Bt(R | 0, NA() | 0, k | 0) | 0, R = NA() | 0, M = Fs(-1227133514, -1171, k | 0, R | 0) | 0, !((k & 613566756 & M | 0) == 0 & (R & 4681 & (NA() | 0) | 0) == 0) || (k = (N * 3 | 0) + 19 | 0, M = Bt(~p | 0, ~w | 0, k | 0) | 0, k = it(M | 0, NA() | 0, k | 0) | 0, !((N | 0) == 15 | (k | 0) == 0 & (NA() | 0) == 0)) ? (k = 0, k | 0) : !(me[20496 + D >> 0] | 0) || (w = w & 8191, (p | 0) == 0 & (w | 0) == 0) ? (k = 1, k | 0) : (k = gI(p | 0, w | 0) | 0, NA() | 0, ((63 - k | 0) % 3 | 0 | 0) != 0 | 0));
|
|
53280
53296
|
}
|
|
53281
|
-
function
|
|
53297
|
+
function Ol(p, w) {
|
|
53282
53298
|
p = p | 0, w = w | 0;
|
|
53283
53299
|
var D = 0, N = 0, R = 0, M = 0, k = 0;
|
|
53284
|
-
return !0 & (w & -16777216 | 0) == 134217728 && (N = it(p | 0, w | 0, 52) | 0, NA() | 0, N = N & 15, D = it(p | 0, w | 0, 45) | 0, NA() | 0, D = D & 127, D >>> 0 <= 121) && (k = (N ^ 15) * 3 | 0, R = it(p | 0, w | 0, k | 0) | 0, k = Bt(R | 0, NA() | 0, k | 0) | 0, R = NA() | 0, M = Fs(-1227133514, -1171, k | 0, R | 0) | 0, (k & 613566756 & M | 0) == 0 & (R & 4681 & (NA() | 0) | 0) == 0) && (k = (N * 3 | 0) + 19 | 0, M = Bt(~p | 0, ~w | 0, k | 0) | 0, k = it(M | 0, NA() | 0, k | 0) | 0, (N | 0) == 15 | (k | 0) == 0 & (NA() | 0) == 0) && (!(me[20496 + D >> 0] | 0) || (D = w & 8191, (p | 0) == 0 & (D | 0) == 0) || (k = gI(p | 0, D | 0) | 0, NA() | 0, (63 - k | 0) % 3 | 0 | 0)) || ma(p, w) | 0 ? (k = 1, k | 0) : (k = (
|
|
53300
|
+
return !0 & (w & -16777216 | 0) == 134217728 && (N = it(p | 0, w | 0, 52) | 0, NA() | 0, N = N & 15, D = it(p | 0, w | 0, 45) | 0, NA() | 0, D = D & 127, D >>> 0 <= 121) && (k = (N ^ 15) * 3 | 0, R = it(p | 0, w | 0, k | 0) | 0, k = Bt(R | 0, NA() | 0, k | 0) | 0, R = NA() | 0, M = Fs(-1227133514, -1171, k | 0, R | 0) | 0, (k & 613566756 & M | 0) == 0 & (R & 4681 & (NA() | 0) | 0) == 0) && (k = (N * 3 | 0) + 19 | 0, M = Bt(~p | 0, ~w | 0, k | 0) | 0, k = it(M | 0, NA() | 0, k | 0) | 0, (N | 0) == 15 | (k | 0) == 0 & (NA() | 0) == 0) && (!(me[20496 + D >> 0] | 0) || (D = w & 8191, (p | 0) == 0 & (D | 0) == 0) || (k = gI(p | 0, D | 0) | 0, NA() | 0, (63 - k | 0) % 3 | 0 | 0)) || ma(p, w) | 0 ? (k = 1, k | 0) : (k = (oh(p, w) | 0) != 0 & 1, k | 0);
|
|
53285
53301
|
}
|
|
53286
|
-
function
|
|
53302
|
+
function ql(p, w, D, N) {
|
|
53287
53303
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0;
|
|
53288
53304
|
var R = 0, M = 0, k = 0, J = 0;
|
|
53289
53305
|
if (R = Bt(w | 0, 0, 52) | 0, M = NA() | 0, D = Bt(D | 0, 0, 45) | 0, D = M | (NA() | 0) | 134225919, (w | 0) < 1) {
|
|
@@ -54370,7 +54386,7 @@ var Yr = (function(e) {
|
|
|
54370
54386
|
R = 0;
|
|
54371
54387
|
while (!1);
|
|
54372
54388
|
if (N = nI(p, w, M) | 0, !N) {
|
|
54373
|
-
R ? (Rs(M, $, IA), W = 5) : (
|
|
54389
|
+
R ? (Rs(M, $, IA), W = 5) : (Kl(M, $, IA), W = 6);
|
|
54374
54390
|
A: do
|
|
54375
54391
|
if (Ot(k) | 0)
|
|
54376
54392
|
if (!J)
|
|
@@ -54574,7 +54590,7 @@ var Yr = (function(e) {
|
|
|
54574
54590
|
while (!1);
|
|
54575
54591
|
return LI(PA, J, ye, ne) | 0 && Nt(27634, 27225, 1367, 27274), ye = ne, ne = E[ye + 4 >> 2] | 0, ((R | 0) > -1 | (R | 0) == -1 & k >>> 0 > 4294967295) & ((ne | 0) > (R | 0) | ((ne | 0) == (R | 0) ? (E[ye >> 2] | 0) >>> 0 > k >>> 0 : 0)) ? (ye = 0, vA = JA, ye | 0) : (Nt(27634, 27225, 1447, 27259), 0);
|
|
54576
54592
|
}
|
|
54577
|
-
function
|
|
54593
|
+
function Wl(p, w, D, N, R, M) {
|
|
54578
54594
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0, M = M | 0;
|
|
54579
54595
|
var k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0;
|
|
54580
54596
|
if (uA = vA, vA = vA + 16 | 0, k = uA, R >>> 0 > 15)
|
|
@@ -54708,7 +54724,7 @@ var Yr = (function(e) {
|
|
|
54708
54724
|
var D = 0, N = 0, R = 0, M = 0;
|
|
54709
54725
|
return R = +hA[w >> 3], N = +hA[p >> 3], M = +ge(+((R - N) * 0.5)), D = +ge(+((+hA[w + 8 >> 3] - +hA[p + 8 >> 3]) * 0.5)), D = M * M + D * (+YA(+R) * +YA(+N) * D), +(+Ye(+ +qA(+D), + +qA(+(1 - D))) * 2);
|
|
54710
54726
|
}
|
|
54711
|
-
function
|
|
54727
|
+
function Vl(p, w) {
|
|
54712
54728
|
p = p | 0, w = w | 0;
|
|
54713
54729
|
var D = 0, N = 0, R = 0, M = 0;
|
|
54714
54730
|
return R = +hA[w >> 3], N = +hA[p >> 3], M = +ge(+((R - N) * 0.5)), D = +ge(+((+hA[w + 8 >> 3] - +hA[p + 8 >> 3]) * 0.5)), D = M * M + D * (+YA(+R) * +YA(+N) * D), +(+Ye(+ +qA(+D), + +qA(+(1 - D))) * 2 * 6371.007180918475);
|
|
@@ -54721,7 +54737,7 @@ var Yr = (function(e) {
|
|
|
54721
54737
|
function lQ(p, w) {
|
|
54722
54738
|
return p = p | 0, w = w | 0, p >>> 0 > 15 ? (w = 4, w | 0) : (hA[w >> 3] = +hA[20624 + (p << 3) >> 3], w = 0, w | 0);
|
|
54723
54739
|
}
|
|
54724
|
-
function
|
|
54740
|
+
function zl(p, w) {
|
|
54725
54741
|
return p = p | 0, w = w | 0, p >>> 0 > 15 ? (w = 4, w | 0) : (hA[w >> 3] = +hA[20752 + (p << 3) >> 3], w = 0, w | 0);
|
|
54726
54742
|
}
|
|
54727
54743
|
function mg(p, w) {
|
|
@@ -54730,7 +54746,7 @@ var Yr = (function(e) {
|
|
|
54730
54746
|
function hQ(p, w) {
|
|
54731
54747
|
return p = p | 0, w = w | 0, p >>> 0 > 15 ? (w = 4, w | 0) : (hA[w >> 3] = +hA[21008 + (p << 3) >> 3], w = 0, w | 0);
|
|
54732
54748
|
}
|
|
54733
|
-
function
|
|
54749
|
+
function jl(p, w) {
|
|
54734
54750
|
p = p | 0, w = w | 0;
|
|
54735
54751
|
var D = 0;
|
|
54736
54752
|
return p >>> 0 > 15 ? (w = 4, w | 0) : (D = qa(7, 0, p, ((p | 0) < 0) << 31 >> 31) | 0, D = er(D | 0, NA() | 0, 120, 0) | 0, p = NA() | 0, E[w >> 2] = D | 2, E[w + 4 >> 2] = p, w = 0, w | 0);
|
|
@@ -54892,7 +54908,7 @@ var Yr = (function(e) {
|
|
|
54892
54908
|
return p | 0;
|
|
54893
54909
|
return 0;
|
|
54894
54910
|
}
|
|
54895
|
-
function
|
|
54911
|
+
function Zl(p, w, D, N, R) {
|
|
54896
54912
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0;
|
|
54897
54913
|
var M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0, ne = 0, ye = 0, JA = 0;
|
|
54898
54914
|
if (ye = vA, vA = vA + 16 | 0, ne = ye, IA = it(p | 0, w | 0, 52) | 0, NA() | 0, IA = IA & 15, DA = it(D | 0, N | 0, 52) | 0, NA() | 0, (IA | 0) != (DA & 15 | 0))
|
|
@@ -55369,7 +55385,7 @@ var Yr = (function(e) {
|
|
|
55369
55385
|
function Dw(p, w, D, N, R, M) {
|
|
55370
55386
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0, M = M | 0;
|
|
55371
55387
|
var k = 0, J = 0;
|
|
55372
|
-
return J = vA, vA = vA + 16 | 0, k = J, R | 0 ? (k = 15, vA = J, k | 0) : (p =
|
|
55388
|
+
return J = vA, vA = vA + 16 | 0, k = J, R | 0 ? (k = 15, vA = J, k | 0) : (p = Zl(p, w, D, N, k) | 0, p || (R = E[k + 4 >> 2] | 0, p = E[k + 8 >> 2] | 0, E[M >> 2] = (E[k >> 2] | 0) - p, E[M + 4 >> 2] = R - p, p = 0), k = p, vA = J, k | 0);
|
|
55373
55389
|
}
|
|
55374
55390
|
function Sw(p, w, D, N, R) {
|
|
55375
55391
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0;
|
|
@@ -55379,7 +55395,7 @@ var Yr = (function(e) {
|
|
|
55379
55395
|
function eu(p, w, D, N, R) {
|
|
55380
55396
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0;
|
|
55381
55397
|
var M = 0, k = 0, J = 0, W = 0, $ = 0;
|
|
55382
|
-
return W = vA, vA = vA + 32 | 0, k = W + 12 | 0, J = W, M =
|
|
55398
|
+
return W = vA, vA = vA + 32 | 0, k = W + 12 | 0, J = W, M = Zl(p, w, p, w, k) | 0, M | 0 ? (J = M, vA = W, J | 0) : (p = Zl(p, w, D, N, J) | 0, p | 0 ? (J = p, vA = W, J | 0) : (p = (E[k >> 2] | 0) - (E[J >> 2] | 0) | 0, $ = (p | 0) < 0, N = $ ? 0 - p | 0 : 0, D = N + ((E[k + 4 >> 2] | 0) - (E[J + 4 >> 2] | 0)) | 0, w = (D | 0) < 0, N = (E[k + 8 >> 2] | 0) - (E[J + 8 >> 2] | 0) + N + (w ? 0 - D | 0 : 0) | 0, M = (N | 0) < 0, k = M ? 0 : N, N = M ? N : 0, M = (w ? 0 : D) - N | 0, N = ($ ? 0 : p) - (w ? D : 0) - N | 0, J = (M | 0) < (N | 0) ? M : N, J = (k | 0) < (J | 0) ? k : J, J = (J | 0) > 0 ? J : 0, k = k - J | 0, M = M - J | 0, J = N - J | 0, J = (J | 0) > -1 ? J : 0 - J | 0, M = (M | 0) > -1 ? M : 0 - M | 0, k = (k | 0) > -1 ? k : 0 - k | 0, k = (M | 0) > (k | 0) ? M : k, k = (J | 0) > (k | 0) ? J : k, J = R, E[J >> 2] = k, E[J + 4 >> 2] = ((k | 0) < 0) << 31 >> 31, J = 0, vA = W, J | 0));
|
|
55383
55399
|
}
|
|
55384
55400
|
function yr(p, w, D, N, R) {
|
|
55385
55401
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0;
|
|
@@ -55394,7 +55410,7 @@ var Yr = (function(e) {
|
|
|
55394
55410
|
function CB(p, w, D, N, R, M, k, J, W, $, IA) {
|
|
55395
55411
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0, M = M | 0, k = k | 0, J = J | 0, W = W | 0, $ = $ | 0, IA = IA | 0;
|
|
55396
55412
|
var uA = 0, mA = 0, DA = 0, FA = 0, PA = 0, ne = 0, ye = 0, JA = 0, be = 0, ce = 0, Ke = 0, pe = 0, ke = 0, De = 0, dt = 0, At = 0, Mt = 0, gt = 0;
|
|
55397
|
-
if (Mt = vA, vA = vA + 48 | 0, uA = Mt + 24 | 0, mA = Mt + 12 | 0, At = Mt, E[uA >> 2] = 0, E[uA + 4 >> 2] = 0, E[uA + 8 >> 2] = 0, E[mA >> 2] = 0, E[mA + 4 >> 2] = 0, E[mA + 8 >> 2] = 0,
|
|
55413
|
+
if (Mt = vA, vA = vA + 48 | 0, uA = Mt + 24 | 0, mA = Mt + 12 | 0, At = Mt, E[uA >> 2] = 0, E[uA + 4 >> 2] = 0, E[uA + 8 >> 2] = 0, E[mA >> 2] = 0, E[mA + 4 >> 2] = 0, E[mA + 8 >> 2] = 0, Zl(p, w, p, w, uA) | 0 && Nt(27634, 27315, 696, 27575), Zl(p, w, D, N, mA) | 0 && Nt(27634, 27315, 701, 27575), PA = uA + 8 | 0, N = E[PA >> 2] | 0, D = N - (E[uA >> 2] | 0) | 0, E[uA >> 2] = D, dt = uA + 4 | 0, N = (E[dt >> 2] | 0) - N | 0, E[dt >> 2] = N, dt = N + D | 0, uA = 0 - dt | 0, E[PA >> 2] = uA, PA = mA + 8 | 0, JA = E[PA >> 2] | 0, ye = JA - (E[mA >> 2] | 0) | 0, E[mA >> 2] = ye, De = mA + 4 | 0, JA = (E[De >> 2] | 0) - JA | 0, E[De >> 2] = JA, De = JA + ye | 0, E[PA >> 2] = 0 - De, ke = 1 / (+(R >>> 0) + 4294967296 * +(M | 0)), Ke = ke * +(ye - D | 0), pe = ke * +(JA - N | 0), ke = ke * +(dt - De | 0), E[At >> 2] = D, De = At + 4 | 0, E[De >> 2] = N, dt = At + 8 | 0, E[dt >> 2] = uA, (M | 0) < 0)
|
|
55398
55414
|
return $ = 0, vA = Mt, $ | 0;
|
|
55399
55415
|
for (ce = +(D | 0), be = +(N | 0), ne = +(uA | 0), ye = 0, JA = 0; ; ) {
|
|
55400
55416
|
if (FA = +(ye >>> 0) + 4294967296 * +(JA | 0), gt = Ke * FA + ce, DA = pe * FA + be, FA = ke * FA + ne, N = ~~+yB(+gt), uA = ~~+yB(+DA), D = ~~+yB(+FA), gt = +MA(+(+(N | 0) - gt)), DA = +MA(+(+(uA | 0) - DA)), FA = +MA(+(+(D | 0) - FA)), gt > DA & gt > FA ? (mA = D + uA | 0, N = 0 - mA | 0) : (mA = 0 - N | 0, DA > FA && (uA = mA - D | 0)), E[De >> 2] = uA, E[At >> 2] = mA, E[dt >> 2] = 0, D = N + uA | 0, (N | 0) > 0 ? (E[De >> 2] = D, E[dt >> 2] = N, E[At >> 2] = 0, mA = 0) : (D = uA, N = 0), (D | 0) < 0 ? (uA = mA - D | 0, E[At >> 2] = uA, N = N - D | 0, E[dt >> 2] = N, E[De >> 2] = 0, mA = uA - N | 0, D = 0 - N | 0, (N | 0) < 0 ? (E[At >> 2] = mA, E[De >> 2] = D, E[dt >> 2] = 0, PA = D, N = 0) : (PA = 0, mA = uA)) : PA = D, D = (PA | 0) < (mA | 0) ? PA : mA, D = (N | 0) < (D | 0) ? N : D, (D | 0) > 0 && (E[At >> 2] = mA - D, E[De >> 2] = PA - D, E[dt >> 2] = N - D), D = er(ye | 0, JA | 0, $ | 0, IA | 0) | 0, D = Ct(D | 0, NA() | 0, J | 0, W | 0) | 0, NA() | 0, D = r0(p, w, At, k + (D << 3) | 0) | 0, D | 0) {
|
|
@@ -55419,7 +55435,7 @@ var Yr = (function(e) {
|
|
|
55419
55435
|
while (!((D | 0) == 0 & (N | 0) == 0));
|
|
55420
55436
|
return ai(w | 0), p | 0;
|
|
55421
55437
|
}
|
|
55422
|
-
function
|
|
55438
|
+
function Xl(p, w, D, N) {
|
|
55423
55439
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0;
|
|
55424
55440
|
var R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0;
|
|
55425
55441
|
J = vA, vA = vA + 16 | 0, M = J, k = it(p | 0, w | 0, 52) | 0, NA() | 0, k = k & 15;
|
|
@@ -55442,7 +55458,7 @@ var Yr = (function(e) {
|
|
|
55442
55458
|
function EQ(p, w, D, N) {
|
|
55443
55459
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0;
|
|
55444
55460
|
var R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0;
|
|
55445
|
-
$ = vA, vA = vA + 48 | 0, k = $ + 32 | 0, M = $ + 40 | 0, J = $,
|
|
55461
|
+
$ = vA, vA = vA + 48 | 0, k = $ + 32 | 0, M = $ + 40 | 0, J = $, ql(k, 0, 0, 0), W = E[k >> 2] | 0, k = E[k + 4 >> 2] | 0;
|
|
55446
55462
|
do
|
|
55447
55463
|
if (D >>> 0 <= 15) {
|
|
55448
55464
|
if (R = Uc(N) | 0, R | 0) {
|
|
@@ -55468,7 +55484,7 @@ var Yr = (function(e) {
|
|
|
55468
55484
|
vA = ce;
|
|
55469
55485
|
return;
|
|
55470
55486
|
}
|
|
55471
|
-
if (w = p + 28 | 0, me[w >> 0] | 0 ? (D =
|
|
55487
|
+
if (w = p + 28 | 0, me[w >> 0] | 0 ? (D = $l(D, N) | 0, N = NA() | 0) : me[w >> 0] = 1, be = p + 20 | 0, !(E[E[be >> 2] >> 2] | 0)) {
|
|
55472
55488
|
w = p + 24 | 0, D = E[w >> 2] | 0, D | 0 && yt(D), JA = p, E[JA >> 2] = 0, E[JA + 4 >> 2] = 0, E[p + 8 >> 2] = 0, E[be >> 2] = 0, E[p + 12 >> 2] = -1, E[p + 16 >> 2] = 0, E[w >> 2] = 0, vA = ce;
|
|
55473
55489
|
return;
|
|
55474
55490
|
}
|
|
@@ -55488,7 +55504,7 @@ var Yr = (function(e) {
|
|
|
55488
55504
|
ne = 15;
|
|
55489
55505
|
break e;
|
|
55490
55506
|
}
|
|
55491
|
-
if (
|
|
55507
|
+
if (th(E[be >> 2] | 0, E[mA >> 2] | 0, DA) | 0) {
|
|
55492
55508
|
ne = 19;
|
|
55493
55509
|
break e;
|
|
55494
55510
|
}
|
|
@@ -55510,7 +55526,7 @@ var Yr = (function(e) {
|
|
|
55510
55526
|
ne = 32;
|
|
55511
55527
|
break;
|
|
55512
55528
|
}
|
|
55513
|
-
if (
|
|
55529
|
+
if (Xl(D, N, FA, 0) | 0) {
|
|
55514
55530
|
ne = 36;
|
|
55515
55531
|
break;
|
|
55516
55532
|
}
|
|
@@ -55524,7 +55540,7 @@ var Yr = (function(e) {
|
|
|
55524
55540
|
}
|
|
55525
55541
|
}
|
|
55526
55542
|
if (uA) {
|
|
55527
|
-
if (w =
|
|
55543
|
+
if (w = Xl(D, N, DA, 1) | 0, R = E[mA >> 2] | 0, w | 0) {
|
|
55528
55544
|
ne = 45;
|
|
55529
55545
|
break;
|
|
55530
55546
|
}
|
|
@@ -55533,7 +55549,7 @@ var Yr = (function(e) {
|
|
|
55533
55549
|
ne = 53;
|
|
55534
55550
|
break;
|
|
55535
55551
|
}
|
|
55536
|
-
if (
|
|
55552
|
+
if (th(E[be >> 2] | 0, E[mA >> 2] | 0, J) | 0) {
|
|
55537
55553
|
ne = 53;
|
|
55538
55554
|
break;
|
|
55539
55555
|
}
|
|
@@ -55546,7 +55562,7 @@ var Yr = (function(e) {
|
|
|
55546
55562
|
}
|
|
55547
55563
|
do
|
|
55548
55564
|
if ((M | 0) < (E[PA >> 2] | 0)) {
|
|
55549
|
-
if (w =
|
|
55565
|
+
if (w = Xl(D, N, DA, 1) | 0, R = E[mA >> 2] | 0, w | 0) {
|
|
55550
55566
|
ne = 58;
|
|
55551
55567
|
break e;
|
|
55552
55568
|
}
|
|
@@ -55566,7 +55582,7 @@ var Yr = (function(e) {
|
|
|
55566
55582
|
} else
|
|
55567
55583
|
ne = 73;
|
|
55568
55584
|
while (!1);
|
|
55569
|
-
if ((ne | 0) == 73 && (ne = 0, D =
|
|
55585
|
+
if ((ne | 0) == 73 && (ne = 0, D = $l(D, N) | 0, N = NA() | 0), (D | 0) == 0 & (N | 0) == 0) {
|
|
55570
55586
|
ye = mA;
|
|
55571
55587
|
break A;
|
|
55572
55588
|
}
|
|
@@ -55635,7 +55651,7 @@ var Yr = (function(e) {
|
|
|
55635
55651
|
while (!1);
|
|
55636
55652
|
w = E[ye >> 2] | 0, w | 0 && yt(w), ne = p, E[ne >> 2] = 0, E[ne + 4 >> 2] = 0, E[p + 8 >> 2] = 0, E[be >> 2] = 0, E[p + 12 >> 2] = -1, E[JA >> 2] = 0, E[ye >> 2] = 0, vA = ce;
|
|
55637
55653
|
}
|
|
55638
|
-
function
|
|
55654
|
+
function $l(p, w) {
|
|
55639
55655
|
p = p | 0, w = w | 0;
|
|
55640
55656
|
var D = 0, N = 0, R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0;
|
|
55641
55657
|
uA = vA, vA = vA + 16 | 0, IA = uA, N = it(p | 0, w | 0, 52) | 0, NA() | 0, N = N & 15, D = it(p | 0, w | 0, 45) | 0, NA() | 0;
|
|
@@ -55655,9 +55671,9 @@ var Yr = (function(e) {
|
|
|
55655
55671
|
return IA = (W | 0) == 0 & (pr(D, R) | 0) != 0, IA = Bt((IA ? 2 : 1) + W | 0, 0, M | 0) | 0, $ = NA() | 0 | w & ~J, IA = IA | p & ~k, ai($ | 0), vA = uA, IA | 0;
|
|
55656
55672
|
}
|
|
55657
55673
|
while (!1);
|
|
55658
|
-
return D = D & 127, D >>> 0 > 120 ? ($ = 0, IA = 0, ai($ | 0), vA = uA, IA | 0) : (
|
|
55674
|
+
return D = D & 127, D >>> 0 > 120 ? ($ = 0, IA = 0, ai($ | 0), vA = uA, IA | 0) : (ql(IA, 0, D + 1 | 0, 0), $ = E[IA + 4 >> 2] | 0, IA = E[IA >> 2] | 0, ai($ | 0), vA = uA, IA | 0);
|
|
55659
55675
|
}
|
|
55660
|
-
function
|
|
55676
|
+
function Ah(p, w, D, N, R, M) {
|
|
55661
55677
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0, M = M | 0;
|
|
55662
55678
|
var k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0, FA = 0, PA = 0, ne = 0;
|
|
55663
55679
|
ne = vA, vA = vA + 160 | 0, uA = ne + 80 | 0, J = ne + 64 | 0, mA = ne + 112 | 0, PA = ne, EQ(uA, p, w, D), $ = uA, gQ(J, E[$ >> 2] | 0, E[$ + 4 >> 2] | 0, w), $ = J, W = E[$ >> 2] | 0, $ = E[$ + 4 >> 2] | 0, k = E[uA + 8 >> 2] | 0, DA = mA + 4 | 0, E[DA >> 2] = E[uA >> 2], E[DA + 4 >> 2] = E[uA + 4 >> 2], E[DA + 8 >> 2] = E[uA + 8 >> 2], E[DA + 12 >> 2] = E[uA + 12 >> 2], E[DA + 16 >> 2] = E[uA + 16 >> 2], E[DA + 20 >> 2] = E[uA + 20 >> 2], E[DA + 24 >> 2] = E[uA + 24 >> 2], E[DA + 28 >> 2] = E[uA + 28 >> 2], DA = PA, E[DA >> 2] = W, E[DA + 4 >> 2] = $, DA = PA + 8 | 0, E[DA >> 2] = k, p = PA + 12 | 0, w = mA, D = p + 36 | 0;
|
|
@@ -55688,7 +55704,7 @@ var Yr = (function(e) {
|
|
|
55688
55704
|
var R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0, DA = 0;
|
|
55689
55705
|
if (uA = vA, vA = vA + 48 | 0, W = uA + 32 | 0, J = uA + 40 | 0, $ = uA, !(E[p >> 2] | 0))
|
|
55690
55706
|
return IA = N, E[IA >> 2] = 0, E[IA + 4 >> 2] = 0, IA = 0, vA = uA, IA | 0;
|
|
55691
|
-
|
|
55707
|
+
ql(W, 0, 0, 0), k = W, R = E[k >> 2] | 0, k = E[k + 4 >> 2] | 0;
|
|
55692
55708
|
do
|
|
55693
55709
|
if (w >>> 0 > 15)
|
|
55694
55710
|
IA = $, E[IA >> 2] = 0, E[IA + 4 >> 2] = 0, E[$ + 8 >> 2] = 4, E[$ + 12 >> 2] = -1, IA = $ + 16 | 0, D = $ + 29 | 0, E[IA >> 2] = 0, E[IA + 4 >> 2] = 0, E[IA + 8 >> 2] = 0, me[IA + 12 >> 0] = 0, me[D >> 0] = me[J >> 0] | 0, me[D + 1 >> 0] = me[J + 1 >> 0] | 0, me[D + 2 >> 0] = me[J + 2 >> 0] | 0, D = 4, IA = 9;
|
|
@@ -55701,7 +55717,7 @@ var Yr = (function(e) {
|
|
|
55701
55717
|
IA = $, E[IA >> 2] = 0, E[IA + 4 >> 2] = 0, E[$ + 8 >> 2] = 13, E[$ + 12 >> 2] = -1, IA = $ + 16 | 0, D = $ + 29 | 0, E[IA >> 2] = 0, E[IA + 4 >> 2] = 0, E[IA + 8 >> 2] = 0, me[IA + 12 >> 0] = 0, me[D >> 0] = me[J >> 0] | 0, me[D + 1 >> 0] = me[J + 1 >> 0] | 0, me[D + 2 >> 0] = me[J + 2 >> 0] | 0, D = 13, IA = 9;
|
|
55702
55718
|
break;
|
|
55703
55719
|
}
|
|
55704
|
-
oI(p, D), DA = $, E[DA >> 2] = R, E[DA + 4 >> 2] = k, k = $ + 8 | 0, E[k >> 2] = 0, E[$ + 12 >> 2] = w, E[$ + 20 >> 2] = p, E[$ + 24 >> 2] = D, me[$ + 28 >> 0] = 0, R = $ + 29 | 0, me[R >> 0] = me[J >> 0] | 0, me[R + 1 >> 0] = me[J + 1 >> 0] | 0, me[R + 2 >> 0] = me[J + 2 >> 0] | 0, E[$ + 16 >> 2] = 3, mA = +
|
|
55720
|
+
oI(p, D), DA = $, E[DA >> 2] = R, E[DA + 4 >> 2] = k, k = $ + 8 | 0, E[k >> 2] = 0, E[$ + 12 >> 2] = w, E[$ + 20 >> 2] = p, E[$ + 24 >> 2] = D, me[$ + 28 >> 0] = 0, R = $ + 29 | 0, me[R >> 0] = me[J >> 0] | 0, me[R + 1 >> 0] = me[J + 1 >> 0] | 0, me[R + 2 >> 0] = me[J + 2 >> 0] | 0, E[$ + 16 >> 2] = 3, mA = +Tl(D), mA = mA * +ta(D), M = +MA(+ +hA[D >> 3]), M = mA / +YA(+ +pB(+M, + +MA(+ +hA[D + 8 >> 3]))) * 6371.007180918475 * 6371.007180918475, R = $ + 12 | 0, D = E[R >> 2] | 0;
|
|
55705
55721
|
A: do
|
|
55706
55722
|
if ((D | 0) > 0)
|
|
55707
55723
|
do {
|
|
@@ -55719,7 +55735,7 @@ var Yr = (function(e) {
|
|
|
55719
55735
|
while (!1);
|
|
55720
55736
|
return DA = D, vA = uA, DA | 0;
|
|
55721
55737
|
}
|
|
55722
|
-
function
|
|
55738
|
+
function eh(p, w, D) {
|
|
55723
55739
|
p = p | 0, w = w | 0, D = D | 0;
|
|
55724
55740
|
var N = 0, R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0;
|
|
55725
55741
|
if (!(iI(w, D) | 0) || (w = ho(w) | 0, N = +hA[D >> 3], R = +hA[D + 8 >> 3], R = w & R < 0 ? R + 6.283185307179586 : R, mA = E[p >> 2] | 0, (mA | 0) <= 0))
|
|
@@ -55802,15 +55818,15 @@ var Yr = (function(e) {
|
|
|
55802
55818
|
while ((ce | 0) < (D | 0));
|
|
55803
55819
|
}
|
|
55804
55820
|
}
|
|
55805
|
-
function
|
|
55821
|
+
function th(p, w, D) {
|
|
55806
55822
|
p = p | 0, w = w | 0, D = D | 0;
|
|
55807
55823
|
var N = 0, R = 0, M = 0;
|
|
55808
|
-
if (!(
|
|
55824
|
+
if (!(eh(p, w, D) | 0))
|
|
55809
55825
|
return R = 0, R | 0;
|
|
55810
55826
|
if (R = p + 8 | 0, (E[R >> 2] | 0) <= 0)
|
|
55811
55827
|
return R = 1, R | 0;
|
|
55812
55828
|
for (N = p + 12 | 0, p = 0; ; ) {
|
|
55813
|
-
if (M = p, p = p + 1 | 0,
|
|
55829
|
+
if (M = p, p = p + 1 | 0, eh((E[N >> 2] | 0) + (M << 3) | 0, w + (p << 5) | 0, D) | 0) {
|
|
55814
55830
|
p = 0, N = 6;
|
|
55815
55831
|
break;
|
|
55816
55832
|
}
|
|
@@ -55824,13 +55840,13 @@ var Yr = (function(e) {
|
|
|
55824
55840
|
function uB(p, w, D, N) {
|
|
55825
55841
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0;
|
|
55826
55842
|
var R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0;
|
|
55827
|
-
if ($ = vA, vA = vA + 16 | 0, J = $, k = D + 8 | 0, !(
|
|
55843
|
+
if ($ = vA, vA = vA + 16 | 0, J = $, k = D + 8 | 0, !(eh(p, w, k) | 0))
|
|
55828
55844
|
return W = 0, vA = $, W | 0;
|
|
55829
55845
|
W = p + 8 | 0;
|
|
55830
55846
|
A: do
|
|
55831
55847
|
if ((E[W >> 2] | 0) > 0) {
|
|
55832
55848
|
for (M = p + 12 | 0, R = 0; ; ) {
|
|
55833
|
-
if (IA = R, R = R + 1 | 0,
|
|
55849
|
+
if (IA = R, R = R + 1 | 0, eh((E[M >> 2] | 0) + (IA << 3) | 0, w + (R << 5) | 0, k) | 0) {
|
|
55834
55850
|
R = 0;
|
|
55835
55851
|
break;
|
|
55836
55852
|
}
|
|
@@ -55847,7 +55863,7 @@ var Yr = (function(e) {
|
|
|
55847
55863
|
if ((R | 0) > 0)
|
|
55848
55864
|
for (p = p + 12 | 0, k = 0, M = R; ; ) {
|
|
55849
55865
|
if (R = E[p >> 2] | 0, (E[R + (k << 3) >> 2] | 0) > 0) {
|
|
55850
|
-
if (
|
|
55866
|
+
if (eh(J, N, E[R + (k << 3) + 4 >> 2] | 0) | 0) {
|
|
55851
55867
|
R = 0;
|
|
55852
55868
|
break A;
|
|
55853
55869
|
}
|
|
@@ -55933,10 +55949,10 @@ var Yr = (function(e) {
|
|
|
55933
55949
|
function n0() {
|
|
55934
55950
|
return 8;
|
|
55935
55951
|
}
|
|
55936
|
-
function
|
|
55952
|
+
function ih() {
|
|
55937
55953
|
return 16;
|
|
55938
55954
|
}
|
|
55939
|
-
function
|
|
55955
|
+
function rh() {
|
|
55940
55956
|
return 168;
|
|
55941
55957
|
}
|
|
55942
55958
|
function o0() {
|
|
@@ -55959,7 +55975,7 @@ var Yr = (function(e) {
|
|
|
55959
55975
|
var w = 0, D = 0;
|
|
55960
55976
|
return D = +hA[p >> 3], w = +hA[p + 8 >> 3], + +qA(+(D * D + w * w));
|
|
55961
55977
|
}
|
|
55962
|
-
function
|
|
55978
|
+
function sh(p, w, D, N, R) {
|
|
55963
55979
|
p = p | 0, w = w | 0, D = D | 0, N = N | 0, R = R | 0;
|
|
55964
55980
|
var M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0, uA = 0, mA = 0;
|
|
55965
55981
|
$ = +hA[p >> 3], W = +hA[w >> 3] - $, J = +hA[p + 8 >> 3], k = +hA[w + 8 >> 3] - J, uA = +hA[D >> 3], M = +hA[N >> 3] - uA, mA = +hA[D + 8 >> 3], IA = +hA[N + 8 >> 3] - mA, M = (M * (J - mA) - ($ - uA) * IA) / (W * IA - k * M), hA[R >> 3] = $ + W * M, hA[R + 8 >> 3] = J + k * M;
|
|
@@ -55973,7 +55989,7 @@ var Yr = (function(e) {
|
|
|
55973
55989
|
if (M = vA, vA = vA + 16 | 0, R = M, N = pr(p, w) | 0, (D + -1 | 0) >>> 0 > 5 || (N = (N | 0) != 0, (D | 0) == 1 & N))
|
|
55974
55990
|
return R = -1, vA = M, R | 0;
|
|
55975
55991
|
do
|
|
55976
|
-
if (
|
|
55992
|
+
if (nh(p, w, R) | 0)
|
|
55977
55993
|
N = -1;
|
|
55978
55994
|
else if (N) {
|
|
55979
55995
|
N = ((E[26416 + (D << 2) >> 2] | 0) + 5 - (E[R >> 2] | 0) | 0) % 5 | 0;
|
|
@@ -55985,7 +56001,7 @@ var Yr = (function(e) {
|
|
|
55985
56001
|
while (!1);
|
|
55986
56002
|
return R = N, vA = M, R | 0;
|
|
55987
56003
|
}
|
|
55988
|
-
function
|
|
56004
|
+
function nh(p, w, D) {
|
|
55989
56005
|
p = p | 0, w = w | 0, D = D | 0;
|
|
55990
56006
|
var N = 0, R = 0, M = 0, k = 0, J = 0, W = 0, $ = 0, IA = 0;
|
|
55991
56007
|
if (IA = vA, vA = vA + 32 | 0, J = IA + 16 | 0, W = IA, N = nI(p, w, J) | 0, N | 0)
|
|
@@ -56064,7 +56080,7 @@ var Yr = (function(e) {
|
|
|
56064
56080
|
uA = (IA | 0) == 0, !uA && (PA = Bt(7, 0, (IA ^ 15) * 3 | 0) | 0, (PA & p | 0) == 0 & ((NA() | 0) & w | 0) == 0) ? R = D : M = 4;
|
|
56065
56081
|
A: do
|
|
56066
56082
|
if ((M | 0) == 4) {
|
|
56067
|
-
if (R = (pr(p, w) | 0) != 0, ((R ? 4 : 5) | 0) < (D | 0) ||
|
|
56083
|
+
if (R = (pr(p, w) | 0) != 0, ((R ? 4 : 5) | 0) < (D | 0) || nh(p, w, JA) | 0 || (M = (E[JA >> 2] | 0) + D | 0, R ? R = 26768 + (((M | 0) % 5 | 0) << 2) | 0 : R = 26800 + (((M | 0) % 6 | 0) << 2) | 0, PA = E[R >> 2] | 0, (PA | 0) == 7))
|
|
56068
56084
|
return N = 1, vA = be, N | 0;
|
|
56069
56085
|
E[ne >> 2] = 0, R = Ls(p, w, PA, ne, FA) | 0;
|
|
56070
56086
|
do
|
|
@@ -56072,7 +56088,7 @@ var Yr = (function(e) {
|
|
|
56072
56088
|
if (J = FA, $ = E[J >> 2] | 0, J = E[J + 4 >> 2] | 0, k = J >>> 0 < w >>> 0 | (J | 0) == (w | 0) & $ >>> 0 < p >>> 0, M = k ? $ : p, k = k ? J : w, !uA && (uA = Bt(7, 0, (IA ^ 15) * 3 | 0) | 0, ($ & uA | 0) == 0 & (J & (NA() | 0) | 0) == 0))
|
|
56073
56089
|
R = D;
|
|
56074
56090
|
else {
|
|
56075
|
-
if (J = (D + -1 + W | 0) % (W | 0) | 0, R = pr(p, w) | 0, (J | 0) < 0 && Nt(27634, 27636, 248, 27661), W = (R | 0) != 0, ((W ? 4 : 5) | 0) < (J | 0) && Nt(27634, 27636, 248, 27661),
|
|
56091
|
+
if (J = (D + -1 + W | 0) % (W | 0) | 0, R = pr(p, w) | 0, (J | 0) < 0 && Nt(27634, 27636, 248, 27661), W = (R | 0) != 0, ((W ? 4 : 5) | 0) < (J | 0) && Nt(27634, 27636, 248, 27661), nh(p, w, JA) | 0 && Nt(27634, 27636, 248, 27661), R = (E[JA >> 2] | 0) + J | 0, W ? R = 26768 + (((R | 0) % 5 | 0) << 2) | 0 : R = 26800 + (((R | 0) % 6 | 0) << 2) | 0, J = E[R >> 2] | 0, (J | 0) == 7 && Nt(27634, 27636, 248, 27661), E[DA >> 2] = 0, R = Ls(p, w, J, DA, mA) | 0, R | 0)
|
|
56076
56092
|
break;
|
|
56077
56093
|
$ = mA, W = E[$ >> 2] | 0, $ = E[$ + 4 >> 2] | 0;
|
|
56078
56094
|
do
|
|
@@ -56086,7 +56102,7 @@ var Yr = (function(e) {
|
|
|
56086
56102
|
break;
|
|
56087
56103
|
}
|
|
56088
56104
|
do
|
|
56089
|
-
if (
|
|
56105
|
+
if (nh(W, $, JA) | 0)
|
|
56090
56106
|
R = -1;
|
|
56091
56107
|
else if (R) {
|
|
56092
56108
|
R = ((E[26416 + (M << 2) >> 2] | 0) + 5 - (E[JA >> 2] | 0) | 0) % 5 | 0;
|
|
@@ -56105,7 +56121,7 @@ var Yr = (function(e) {
|
|
|
56105
56121
|
if ((M | 0) == ($ | 0) & (k | 0) == (J | 0)) {
|
|
56106
56122
|
if (W = (pr($, J) | 0) != 0, W ? p = qC($, J, p, w) | 0 : p = E[26864 + ((((E[ne >> 2] | 0) + (E[26832 + (PA << 2) >> 2] | 0) | 0) % 6 | 0) << 2) >> 2] | 0, R = pr($, J) | 0, (p + -1 | 0) >>> 0 <= 5 && (ye = (R | 0) != 0, !((p | 0) == 1 & ye)))
|
|
56107
56123
|
do
|
|
56108
|
-
if (
|
|
56124
|
+
if (nh($, J, JA) | 0)
|
|
56109
56125
|
R = -1;
|
|
56110
56126
|
else if (ye) {
|
|
56111
56127
|
R = ((E[26416 + (p << 2) >> 2] | 0) + 5 - (E[JA >> 2] | 0) | 0) % 5 | 0;
|
|
@@ -56138,7 +56154,7 @@ var Yr = (function(e) {
|
|
|
56138
56154
|
var N = 0, R = 0, M = 0, k = 0, J = 0, W = 0;
|
|
56139
56155
|
return W = vA, vA = vA + 192 | 0, R = W, M = W + 168 | 0, k = it(p | 0, w | 0, 56) | 0, NA() | 0, k = k & 7, J = w & -2130706433 | 134217728, N = nI(p, J, M) | 0, N | 0 ? (J = N, vA = W, J | 0) : (w = it(p | 0, w | 0, 52) | 0, NA() | 0, w = w & 15, pr(p, J) | 0 ? zC(M, w, k, 1, R) : Mc(M, w, k, 1, R), J = R + 8 | 0, E[D >> 2] = E[J >> 2], E[D + 4 >> 2] = E[J + 4 >> 2], E[D + 8 >> 2] = E[J + 8 >> 2], E[D + 12 >> 2] = E[J + 12 >> 2], J = 0, vA = W, J | 0);
|
|
56140
56156
|
}
|
|
56141
|
-
function
|
|
56157
|
+
function oh(p, w) {
|
|
56142
56158
|
p = p | 0, w = w | 0;
|
|
56143
56159
|
var D = 0, N = 0, R = 0, M = 0;
|
|
56144
56160
|
return R = vA, vA = vA + 16 | 0, D = R, !(!0 & (w & 2013265920 | 0) == 536870912) || (N = w & -2130706433 | 134217728, !(jC(p, N) | 0)) ? (N = 0, vA = R, N | 0) : (M = it(p | 0, w | 0, 56) | 0, NA() | 0, M = (Da(p, N, M & 7, D) | 0) == 0, N = D, N = M & ((E[N >> 2] | 0) == (p | 0) ? (E[N + 4 >> 2] | 0) == (w | 0) : 0) & 1, vA = R, N | 0);
|
|
@@ -57212,7 +57228,7 @@ var Yr = (function(e) {
|
|
|
57212
57228
|
function mB(p, w) {
|
|
57213
57229
|
return rn(0), 0;
|
|
57214
57230
|
}
|
|
57215
|
-
var lI = [mB, iQ, Jr,
|
|
57231
|
+
var lI = [mB, iQ, Jr, Pl];
|
|
57216
57232
|
return {
|
|
57217
57233
|
___divdi3: xr,
|
|
57218
57234
|
___muldi3: er,
|
|
@@ -57224,7 +57240,7 @@ var Yr = (function(e) {
|
|
|
57224
57240
|
_bitshift64Shl: Bt,
|
|
57225
57241
|
_calloc: sn,
|
|
57226
57242
|
_cellAreaKm2: xI,
|
|
57227
|
-
_cellAreaM2:
|
|
57243
|
+
_cellAreaM2: Ul,
|
|
57228
57244
|
_cellAreaRads2: aB,
|
|
57229
57245
|
_cellToBoundary: UI,
|
|
57230
57246
|
_cellToCenterChild: xo,
|
|
@@ -57237,13 +57253,13 @@ var Yr = (function(e) {
|
|
|
57237
57253
|
_cellToVertex: Da,
|
|
57238
57254
|
_cellToVertexes: QB,
|
|
57239
57255
|
_cellsToDirectedEdge: _i,
|
|
57240
|
-
_cellsToLinkedMultiPolygon:
|
|
57241
|
-
_childPosToCell:
|
|
57256
|
+
_cellsToLinkedMultiPolygon: Ll,
|
|
57257
|
+
_childPosToCell: Wl,
|
|
57242
57258
|
_compactCells: Ka,
|
|
57243
57259
|
_constructCell: e0,
|
|
57244
57260
|
_destroyLinkedMultiPolygon: Lc,
|
|
57245
57261
|
_directedEdgeToBoundary: pg,
|
|
57246
|
-
_directedEdgeToCells:
|
|
57262
|
+
_directedEdgeToCells: Hl,
|
|
57247
57263
|
_edgeLengthKm: BQ,
|
|
57248
57264
|
_edgeLengthM: CQ,
|
|
57249
57265
|
_edgeLengthRads: Au,
|
|
@@ -57251,18 +57267,18 @@ var Yr = (function(e) {
|
|
|
57251
57267
|
_free: yt,
|
|
57252
57268
|
_getBaseCellNumber: kI,
|
|
57253
57269
|
_getDirectedEdgeDestination: or,
|
|
57254
|
-
_getDirectedEdgeOrigin:
|
|
57270
|
+
_getDirectedEdgeOrigin: Jl,
|
|
57255
57271
|
_getHexagonAreaAvgKm2: lQ,
|
|
57256
|
-
_getHexagonAreaAvgM2:
|
|
57272
|
+
_getHexagonAreaAvgM2: zl,
|
|
57257
57273
|
_getHexagonEdgeLengthAvgKm: mg,
|
|
57258
57274
|
_getHexagonEdgeLengthAvgM: hQ,
|
|
57259
57275
|
_getIcosahedronFaces: oQ,
|
|
57260
57276
|
_getIndexDigit: rQ,
|
|
57261
|
-
_getNumCells:
|
|
57277
|
+
_getNumCells: jl,
|
|
57262
57278
|
_getPentagons: lB,
|
|
57263
57279
|
_getRes0Cells: lo,
|
|
57264
57280
|
_getResolution: Us,
|
|
57265
|
-
_greatCircleDistanceKm:
|
|
57281
|
+
_greatCircleDistanceKm: Vl,
|
|
57266
57282
|
_greatCircleDistanceM: cQ,
|
|
57267
57283
|
_greatCircleDistanceRads: i0,
|
|
57268
57284
|
_gridDisk: ZE,
|
|
@@ -57278,8 +57294,8 @@ var Yr = (function(e) {
|
|
|
57278
57294
|
_isResClassIII: xc,
|
|
57279
57295
|
_isValidCell: jC,
|
|
57280
57296
|
_isValidDirectedEdge: ma,
|
|
57281
|
-
_isValidIndex:
|
|
57282
|
-
_isValidVertex:
|
|
57297
|
+
_isValidIndex: Ol,
|
|
57298
|
+
_isValidVertex: oh,
|
|
57283
57299
|
_latLngToCell: XC,
|
|
57284
57300
|
_llvm_ctlz_i64: gI,
|
|
57285
57301
|
_llvm_maxnum_f64: Yc,
|
|
@@ -57297,18 +57313,18 @@ var Yr = (function(e) {
|
|
|
57297
57313
|
_originToDirectedEdges: sI,
|
|
57298
57314
|
_pentagonCount: kc,
|
|
57299
57315
|
_polygonToCells: Zf,
|
|
57300
|
-
_polygonToCellsExperimental:
|
|
57316
|
+
_polygonToCellsExperimental: Ah,
|
|
57301
57317
|
_readInt64AsDoubleFromPointer: bw,
|
|
57302
57318
|
_res0CellCount: GI,
|
|
57303
57319
|
_reverseDirectedEdge: WC,
|
|
57304
57320
|
_round: cI,
|
|
57305
57321
|
_sbrk: Sg,
|
|
57306
|
-
_sizeOfCellBoundary:
|
|
57322
|
+
_sizeOfCellBoundary: rh,
|
|
57307
57323
|
_sizeOfCoordIJ: tu,
|
|
57308
57324
|
_sizeOfGeoLoop: o0,
|
|
57309
57325
|
_sizeOfGeoPolygon: dQ,
|
|
57310
57326
|
_sizeOfH3Index: n0,
|
|
57311
|
-
_sizeOfLatLng:
|
|
57327
|
+
_sizeOfLatLng: ih,
|
|
57312
57328
|
_sizeOfLinkedGeoPolygon: Pi,
|
|
57313
57329
|
_uncompactCells: ZC,
|
|
57314
57330
|
_uncompactCellsSize: sQ,
|
|
@@ -61951,7 +61967,7 @@ function xAe(e, A) {
|
|
|
61951
61967
|
];
|
|
61952
61968
|
}
|
|
61953
61969
|
function GAe(e, A = 1) {
|
|
61954
|
-
const [t, i] = xAe(e, A), [r, s] =
|
|
61970
|
+
const [t, i] = xAe(e, A), [r, s] = Vh(t), [n, o] = Vh(i);
|
|
61955
61971
|
return [n, s, n, o, r, o, r, s, n, s];
|
|
61956
61972
|
}
|
|
61957
61973
|
const kAe = {
|
|
@@ -62406,7 +62422,7 @@ new Te();
|
|
|
62406
62422
|
new Te();
|
|
62407
62423
|
new Te();
|
|
62408
62424
|
new Te();
|
|
62409
|
-
const
|
|
62425
|
+
const yh = new Cs(), YAe = new Cs(), KAe = new Cs(), a1 = new Cs(), b$ = new Cs();
|
|
62410
62426
|
function OAe(e, A = {}) {
|
|
62411
62427
|
const t = $TA, i = 10;
|
|
62412
62428
|
let r = 0, s = 0;
|
|
@@ -62429,7 +62445,7 @@ const wJ = [1, 0, 0], DJ = [2, 2, 1];
|
|
|
62429
62445
|
function WAe(e) {
|
|
62430
62446
|
let A = 0;
|
|
62431
62447
|
for (let t = 0; t < 3; ++t) {
|
|
62432
|
-
const i = e[
|
|
62448
|
+
const i = e[yh.getElementIndex(DJ[t], wJ[t])];
|
|
62433
62449
|
A += 2 * i * i;
|
|
62434
62450
|
}
|
|
62435
62451
|
return Math.sqrt(A);
|
|
@@ -62438,17 +62454,17 @@ function VAe(e, A) {
|
|
|
62438
62454
|
const t = iBA;
|
|
62439
62455
|
let i = 0, r = 1;
|
|
62440
62456
|
for (let g = 0; g < 3; ++g) {
|
|
62441
|
-
const l = Math.abs(e[
|
|
62457
|
+
const l = Math.abs(e[yh.getElementIndex(DJ[g], wJ[g])]);
|
|
62442
62458
|
l > i && (r = g, i = l);
|
|
62443
62459
|
}
|
|
62444
62460
|
const s = wJ[r], n = DJ[r];
|
|
62445
62461
|
let o = 1, a = 0;
|
|
62446
|
-
if (Math.abs(e[
|
|
62447
|
-
const g = e[
|
|
62462
|
+
if (Math.abs(e[yh.getElementIndex(n, s)]) > t) {
|
|
62463
|
+
const g = e[yh.getElementIndex(n, n)], l = e[yh.getElementIndex(s, s)], C = e[yh.getElementIndex(n, s)], Q = (g - l) / 2 / C;
|
|
62448
62464
|
let f;
|
|
62449
62465
|
Q < 0 ? f = -1 / (-Q + Math.sqrt(1 + Q * Q)) : f = 1 / (Q + Math.sqrt(1 + Q * Q)), o = 1 / Math.sqrt(1 + f * f), a = f * o;
|
|
62450
62466
|
}
|
|
62451
|
-
return Cs.IDENTITY.to(A), A[
|
|
62467
|
+
return Cs.IDENTITY.to(A), A[yh.getElementIndex(s, s)] = A[yh.getElementIndex(n, n)] = o, A[yh.getElementIndex(n, s)] = a, A[yh.getElementIndex(s, n)] = -a, A;
|
|
62452
62468
|
}
|
|
62453
62469
|
const bu = new Te(), zAe = new Te(), jAe = new Te(), ZAe = new Te(), XAe = new Te(), $Ae = new Cs(), Aee = {
|
|
62454
62470
|
diagonal: new Cs(),
|
|
@@ -63622,7 +63638,7 @@ const _ee = [0, 0, 0, 255], xee = {
|
|
|
63622
63638
|
getTransformMatrix: { type: "accessor", value: [] },
|
|
63623
63639
|
textureParameters: { type: "object", ignore: !0, value: null }
|
|
63624
63640
|
};
|
|
63625
|
-
class
|
|
63641
|
+
class zh extends Fo {
|
|
63626
63642
|
getShaders() {
|
|
63627
63643
|
return super.getShaders({
|
|
63628
63644
|
vs: Nee,
|
|
@@ -63728,8 +63744,8 @@ class Vh extends Fo {
|
|
|
63728
63744
|
}
|
|
63729
63745
|
}
|
|
63730
63746
|
}
|
|
63731
|
-
|
|
63732
|
-
|
|
63747
|
+
zh.defaultProps = xee;
|
|
63748
|
+
zh.layerName = "SimpleMeshLayer";
|
|
63733
63749
|
const Gee = "4.4.3", Rv = {
|
|
63734
63750
|
/** Basis transcoder, javascript wrapper part */
|
|
63735
63751
|
TRANSCODER: "basis_transcoder.js",
|
|
@@ -69058,7 +69074,7 @@ tw.layerName = "ScenegraphLayer";
|
|
|
69058
69074
|
const Aoe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
69059
69075
|
__proto__: null,
|
|
69060
69076
|
ScenegraphLayer: tw,
|
|
69061
|
-
SimpleMeshLayer:
|
|
69077
|
+
SimpleMeshLayer: zh
|
|
69062
69078
|
}, Symbol.toStringTag, { value: "Module" })), iAA = `layout(std140) uniform meshUniforms {
|
|
69063
69079
|
bool pickFeatureIds;
|
|
69064
69080
|
} mesh;
|
|
@@ -69171,7 +69187,7 @@ const soe = {
|
|
|
69171
69187
|
pbrMaterial: { type: "object", value: null },
|
|
69172
69188
|
featureIds: { type: "array", value: null, optional: !0 }
|
|
69173
69189
|
};
|
|
69174
|
-
class mq extends
|
|
69190
|
+
class mq extends zh {
|
|
69175
69191
|
getShaders() {
|
|
69176
69192
|
const A = super.getShaders();
|
|
69177
69193
|
return A.modules.push(Vm, eoe), { ...A, vs: toe, fs: ioe };
|
|
@@ -70338,7 +70354,7 @@ class _J {
|
|
|
70338
70354
|
}
|
|
70339
70355
|
// TODO add typecheck - as const satisfies ...
|
|
70340
70356
|
};
|
|
70341
|
-
return this.content = await
|
|
70357
|
+
return this.content = await Wh(i, r, n), this.tileset.options.contentLoader && await this.tileset.options.contentLoader(this), this._isTileset() && this.tileset._initializeTileHeaders(this.content, this), this.contentState = dI.READY, this._onContentLoaded(), !0;
|
|
70342
70358
|
} catch (i) {
|
|
70343
70359
|
throw this.contentState = dI.FAILED, i;
|
|
70344
70360
|
} finally {
|
|
@@ -70654,7 +70670,7 @@ class eae extends xG {
|
|
|
70654
70670
|
isTileHeader: !0
|
|
70655
70671
|
}
|
|
70656
70672
|
};
|
|
70657
|
-
return await
|
|
70673
|
+
return await Wh(r, i, s);
|
|
70658
70674
|
}
|
|
70659
70675
|
/**
|
|
70660
70676
|
* The callback to init Tile3D instance after loading the tile JSON
|
|
@@ -71445,7 +71461,7 @@ function Bae(e, A, t, i) {
|
|
|
71445
71461
|
packer: a
|
|
71446
71462
|
};
|
|
71447
71463
|
}
|
|
71448
|
-
const
|
|
71464
|
+
const _h = (e) => e !== void 0;
|
|
71449
71465
|
function Cae(e, A, t) {
|
|
71450
71466
|
if (!A)
|
|
71451
71467
|
return null;
|
|
@@ -71457,12 +71473,12 @@ function uae(e, A) {
|
|
|
71457
71473
|
let t, i, r;
|
|
71458
71474
|
const s = e.instancesLength, n = e.classes;
|
|
71459
71475
|
let o = e.classIds, a = e.parentCounts, g = e.parentIds, l = s;
|
|
71460
|
-
|
|
71476
|
+
_h(o.byteOffset) && (o.componentType = defaultValue(o.componentType, GL.UNSIGNED_SHORT), o.type = AttributeType.SCALAR, r = getBinaryAccessor(o), o = r.createArrayBufferView(A.buffer, A.byteOffset + o.byteOffset, s));
|
|
71461
71477
|
let C;
|
|
71462
|
-
if (
|
|
71463
|
-
for (
|
|
71478
|
+
if (_h(a))
|
|
71479
|
+
for (_h(a.byteOffset) && (a.componentType = defaultValue(a.componentType, GL.UNSIGNED_SHORT), a.type = AttributeType.SCALAR, r = getBinaryAccessor(a), a = r.createArrayBufferView(A.buffer, A.byteOffset + a.byteOffset, s)), C = new Uint16Array(s), l = 0, t = 0; t < s; ++t)
|
|
71464
71480
|
C[t] = l, l += a[t];
|
|
71465
|
-
|
|
71481
|
+
_h(g) && _h(g.byteOffset) && (g.componentType = defaultValue(g.componentType, GL.UNSIGNED_SHORT), g.type = AttributeType.SCALAR, r = getBinaryAccessor(g), g = r.createArrayBufferView(A.buffer, A.byteOffset + g.byteOffset, l));
|
|
71466
71482
|
const Q = n.length;
|
|
71467
71483
|
for (t = 0; t < Q; ++t) {
|
|
71468
71484
|
const U = n[t].length, Y = n[t].instances, O = getBinaryProperties(U, Y, A);
|
|
@@ -71496,7 +71512,7 @@ function Eae(e, A, t) {
|
|
|
71496
71512
|
continue;
|
|
71497
71513
|
a[A] = g;
|
|
71498
71514
|
const C = t(e, A);
|
|
71499
|
-
if (
|
|
71515
|
+
if (_h(C))
|
|
71500
71516
|
return C;
|
|
71501
71517
|
const Q = r[A], f = n[A];
|
|
71502
71518
|
for (let S = 0; S < Q; ++S) {
|
|
@@ -71510,7 +71526,7 @@ function Qae(e, A, t) {
|
|
|
71510
71526
|
let i = !0;
|
|
71511
71527
|
for (; i; ) {
|
|
71512
71528
|
const r = t(e, A);
|
|
71513
|
-
if (
|
|
71529
|
+
if (_h(r))
|
|
71514
71530
|
return r;
|
|
71515
71531
|
const s = e.parentIds[A];
|
|
71516
71532
|
i = s !== A, A = s;
|
|
@@ -71524,10 +71540,10 @@ function dae(e) {
|
|
|
71524
71540
|
}
|
|
71525
71541
|
function NdA(e, A, t) {
|
|
71526
71542
|
const i = e.parentCounts, r = e.parentIds, s = e.parentIndexes, o = e.classIds.length;
|
|
71527
|
-
if (!
|
|
71543
|
+
if (!_h(r))
|
|
71528
71544
|
return;
|
|
71529
71545
|
assert(A < o, `Parent index ${A} exceeds the total number of instances: ${o}`), assert(t.indexOf(A) === -1, "Circular dependency detected in the batch table hierarchy."), t.push(A);
|
|
71530
|
-
const a =
|
|
71546
|
+
const a = _h(i) ? i[A] : 1, g = _h(i) ? s[A] : A;
|
|
71531
71547
|
for (let l = 0; l < a; ++l) {
|
|
71532
71548
|
const C = r[g + l];
|
|
71533
71549
|
C !== A && NdA(e, C, t);
|
|
@@ -73115,7 +73131,7 @@ async function WdA(e) {
|
|
|
73115
73131
|
let dA, SA, EA, RA;
|
|
73116
73132
|
if (gA) {
|
|
73117
73133
|
const ZA = `${f}/${Q}`, XA = kJ(ZA, U, Z, rA, nA);
|
|
73118
|
-
dA = await
|
|
73134
|
+
dA = await Wh(XA, kdA, n), RA = 0, SA = { level: U, x: Z, y: rA, z: nA }, EA = { mortonIndex: 0, localLevel: 0, localX: 0, localY: 0, localZ: 0 };
|
|
73119
73135
|
} else
|
|
73120
73136
|
dA = A, RA = (Y ** _ - 1) / (Y - 1) + tA, SA = t, EA = { mortonIndex: tA, localLevel: _, localX: sA, localY: lA, localZ: CA };
|
|
73121
73137
|
if (!X3(dA.tileAvailability, RA))
|
|
@@ -73264,7 +73280,7 @@ async function Ege(e, A, t) {
|
|
|
73264
73280
|
return i;
|
|
73265
73281
|
}
|
|
73266
73282
|
async function JAA(e, A, t, i, r) {
|
|
73267
|
-
const { subdivisionScheme: s, maximumLevel: n, availableLevels: o, subtreeLevels: a, subtrees: { uri: g } } = i, l = kJ(g, 0, 0, 0, 0), C = LJ(l, t), Q = await
|
|
73283
|
+
const { subdivisionScheme: s, maximumLevel: n, availableLevels: o, subtreeLevels: a, subtrees: { uri: g } } = i, l = kJ(g, 0, 0, 0, 0), C = LJ(l, t), Q = await Wh(C, kdA, r), f = e.content?.uri, S = f ? LJ(f, t) : "", _ = A?.root?.refine, U = e.geometricError, Y = e.boundingVolume.extensions?.["3DTILES_bounding_volume_S2"];
|
|
73268
73284
|
if (Y) {
|
|
73269
73285
|
const eA = { box: qdA(Y), s2VolumeInfo: Y };
|
|
73270
73286
|
e.boundingVolume = eA;
|
|
@@ -73447,7 +73463,7 @@ class iw extends en {
|
|
|
73447
73463
|
}
|
|
73448
73464
|
}), Object.assign(o, C);
|
|
73449
73465
|
}
|
|
73450
|
-
const g = await
|
|
73466
|
+
const g = await Wh(a, r, o.loadOptions), l = new iae(g, {
|
|
73451
73467
|
onTileLoad: this._onTileLoad.bind(this),
|
|
73452
73468
|
onTileUnload: this._onTileUnload.bind(this),
|
|
73453
73469
|
onTileError: this.props.onTileError,
|
|
@@ -73693,7 +73709,7 @@ class kG extends en {
|
|
|
73693
73709
|
return Promise.all([S, _]);
|
|
73694
73710
|
}
|
|
73695
73711
|
renderSubLayers(A) {
|
|
73696
|
-
const t = this.getSubLayerClass("mesh",
|
|
73712
|
+
const t = this.getSubLayerClass("mesh", zh), { color: i, wireframe: r, material: s } = this.props, { data: n } = A;
|
|
73697
73713
|
if (!n)
|
|
73698
73714
|
return null;
|
|
73699
73715
|
const [o, a] = n;
|
|
@@ -73754,7 +73770,7 @@ class kG extends en {
|
|
|
73754
73770
|
});
|
|
73755
73771
|
if (!i)
|
|
73756
73772
|
return null;
|
|
73757
|
-
const AA = this.getSubLayerClass("mesh",
|
|
73773
|
+
const AA = this.getSubLayerClass("mesh", zh);
|
|
73758
73774
|
return new AA(this.getSubLayerProps({
|
|
73759
73775
|
id: "mesh"
|
|
73760
73776
|
}), {
|
|
@@ -78188,7 +78204,7 @@ class Jq extends sw {
|
|
|
78188
78204
|
const g = rT(s.projectFlat(n), t);
|
|
78189
78205
|
n = s.unprojectFlat(aeA(g, t));
|
|
78190
78206
|
const l = s.constructor;
|
|
78191
|
-
s = s.isGeospatial ? new l({ longitude: n[0], latitude: n[1], zoom: 12 }) : new
|
|
78207
|
+
s = s.isGeospatial ? new l({ longitude: n[0], latitude: n[1], zoom: 12 }) : new xl({ position: [n[0], n[1], 0], zoom: 12 }), i = [Math.fround(s.center[0]), Math.fround(s.center[1])], r = Pq({
|
|
78192
78208
|
dataBounds: A,
|
|
78193
78209
|
getBinId: (C) => {
|
|
78194
78210
|
const Q = s.projectFlat(C);
|
|
@@ -78848,7 +78864,7 @@ let Hq = class extends sw {
|
|
|
78848
78864
|
Math.floor((l[1] - a[1]) / t[1]) * t[1] + a[1]
|
|
78849
78865
|
], n = s.unprojectFlat(i);
|
|
78850
78866
|
const C = s.constructor;
|
|
78851
|
-
s = s.isGeospatial ? new C({ longitude: n[0], latitude: n[1], zoom: 12 }) : new
|
|
78867
|
+
s = s.isGeospatial ? new C({ longitude: n[0], latitude: n[1], zoom: 12 }) : new xl({ position: [n[0], n[1], 0], zoom: 12 }), i = [Math.fround(s.center[0]), Math.fround(s.center[1])], r = Pq({
|
|
78852
78868
|
dataBounds: A,
|
|
78853
78869
|
getBinId: (Q) => {
|
|
78854
78870
|
const f = s.projectFlat(Q);
|
|
@@ -79258,7 +79274,7 @@ class Yq extends sw {
|
|
|
79258
79274
|
Math.floor(g[1] / t[1]) * t[1]
|
|
79259
79275
|
], n = s.unprojectFlat(i);
|
|
79260
79276
|
const l = s.constructor;
|
|
79261
|
-
s = s.isGeospatial ? new l({ longitude: n[0], latitude: n[1], zoom: 12 }) : new
|
|
79277
|
+
s = s.isGeospatial ? new l({ longitude: n[0], latitude: n[1], zoom: 12 }) : new xl({ position: [n[0], n[1], 0], zoom: 12 }), i = [Math.fround(s.center[0]), Math.fround(s.center[1])], r = Pq({
|
|
79262
79278
|
dataBounds: A,
|
|
79263
79279
|
getBinId: (C) => {
|
|
79264
79280
|
const Q = s.projectFlat(C);
|
|
@@ -80585,10 +80601,10 @@ function she(e) {
|
|
|
80585
80601
|
}
|
|
80586
80602
|
return { tint: A, opacity: t };
|
|
80587
80603
|
}
|
|
80588
|
-
class nhe extends
|
|
80604
|
+
class nhe extends zh {
|
|
80589
80605
|
static layerName = "SinglePrimitiveFeatureLayer";
|
|
80590
80606
|
static defaultProps = {
|
|
80591
|
-
...
|
|
80607
|
+
...zh.defaultProps,
|
|
80592
80608
|
pbrMaterial: { type: "object", value: null },
|
|
80593
80609
|
featureIds: { type: "array", value: null, optional: !0 },
|
|
80594
80610
|
featureStyles: { type: "array", value: null, optional: !0, compare: !0 },
|
|
@@ -82734,7 +82750,7 @@ function WJ(e, A) {
|
|
|
82734
82750
|
}
|
|
82735
82751
|
return !1;
|
|
82736
82752
|
}
|
|
82737
|
-
function
|
|
82753
|
+
function jh(e, A) {
|
|
82738
82754
|
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Xhe.test(String.fromCharCode(e)) : A === !1 ? !1 : WJ(e, e0A);
|
|
82739
82755
|
}
|
|
82740
82756
|
function fE(e, A) {
|
|
@@ -83203,7 +83219,7 @@ oi.isLet = function(e) {
|
|
|
83203
83219
|
return !1;
|
|
83204
83220
|
if (i === 123)
|
|
83205
83221
|
return !0;
|
|
83206
|
-
if (
|
|
83222
|
+
if (jh(i)) {
|
|
83207
83223
|
var r = t;
|
|
83208
83224
|
do
|
|
83209
83225
|
t += i <= 65535 ? 1 : 2;
|
|
@@ -83240,7 +83256,7 @@ oi.isUsingKeyword = function(e, A) {
|
|
|
83240
83256
|
return !1;
|
|
83241
83257
|
}
|
|
83242
83258
|
var o = this.fullCharCodeAt(i);
|
|
83243
|
-
if (!
|
|
83259
|
+
if (!jh(o) && o !== 92)
|
|
83244
83260
|
return !1;
|
|
83245
83261
|
var a = i;
|
|
83246
83262
|
do
|
|
@@ -84875,7 +84891,7 @@ si.regexp_eatRegExpIdentifierStart = function(e) {
|
|
|
84875
84891
|
return e.advance(t), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, t) && (i = e.lastIntValue), mBe(i) ? (e.lastIntValue = i, !0) : (e.pos = A, !1);
|
|
84876
84892
|
};
|
|
84877
84893
|
function mBe(e) {
|
|
84878
|
-
return
|
|
84894
|
+
return jh(e, !0) || e === 36 || e === 95;
|
|
84879
84895
|
}
|
|
84880
84896
|
si.regexp_eatRegExpIdentifierPart = function(e) {
|
|
84881
84897
|
var A = e.pos, t = this.options.ecmaVersion >= 11, i = e.current(t);
|
|
@@ -85379,7 +85395,7 @@ fr.nextToken = function() {
|
|
|
85379
85395
|
this.readToken(this.fullCharCodeAtPos());
|
|
85380
85396
|
};
|
|
85381
85397
|
fr.readToken = function(e) {
|
|
85382
|
-
return
|
|
85398
|
+
return jh(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
85383
85399
|
};
|
|
85384
85400
|
fr.fullCharCodeAt = function(e) {
|
|
85385
85401
|
var A = this.input.charCodeAt(e);
|
|
@@ -85522,7 +85538,7 @@ fr.readToken_question = function() {
|
|
|
85522
85538
|
};
|
|
85523
85539
|
fr.readToken_numberSign = function() {
|
|
85524
85540
|
var e = this.options.ecmaVersion, A = 35;
|
|
85525
|
-
if (e >= 13 && (++this.pos, A = this.fullCharCodeAtPos(),
|
|
85541
|
+
if (e >= 13 && (++this.pos, A = this.fullCharCodeAtPos(), jh(A, !0) || A === 92))
|
|
85526
85542
|
return this.finishToken(TA.privateId, this.readWord1());
|
|
85527
85543
|
this.raise(this.pos, "Unexpected character '" + yC(A) + "'");
|
|
85528
85544
|
};
|
|
@@ -85670,7 +85686,7 @@ fr.readRadixNumber = function(e) {
|
|
|
85670
85686
|
var A = this.pos;
|
|
85671
85687
|
this.pos += 2;
|
|
85672
85688
|
var t = this.readInt(e);
|
|
85673
|
-
return t == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (t = k0A(this.input.slice(A, this.pos)), ++this.pos) :
|
|
85689
|
+
return t == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (t = k0A(this.input.slice(A, this.pos)), ++this.pos) : jh(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(TA.num, t);
|
|
85674
85690
|
};
|
|
85675
85691
|
fr.readNumber = function(e) {
|
|
85676
85692
|
var A = this.pos;
|
|
@@ -85680,9 +85696,9 @@ fr.readNumber = function(e) {
|
|
|
85680
85696
|
var i = this.input.charCodeAt(this.pos);
|
|
85681
85697
|
if (!t && !e && this.options.ecmaVersion >= 11 && i === 110) {
|
|
85682
85698
|
var r = k0A(this.input.slice(A, this.pos));
|
|
85683
|
-
return ++this.pos,
|
|
85699
|
+
return ++this.pos, jh(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(TA.num, r);
|
|
85684
85700
|
}
|
|
85685
|
-
t && /[89]/.test(this.input.slice(A, this.pos)) && (t = !1), i === 46 && !t && (++this.pos, this.readInt(10), i = this.input.charCodeAt(this.pos)), (i === 69 || i === 101) && !t && (i = this.input.charCodeAt(++this.pos), (i === 43 || i === 45) && ++this.pos, this.readInt(10) === null && this.raise(A, "Invalid number")),
|
|
85701
|
+
t && /[89]/.test(this.input.slice(A, this.pos)) && (t = !1), i === 46 && !t && (++this.pos, this.readInt(10), i = this.input.charCodeAt(this.pos)), (i === 69 || i === 101) && !t && (i = this.input.charCodeAt(++this.pos), (i === 43 || i === 45) && ++this.pos, this.readInt(10) === null && this.raise(A, "Invalid number")), jh(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
85686
85702
|
var s = MBe(this.input.slice(A, this.pos), t);
|
|
85687
85703
|
return this.finishToken(TA.num, s);
|
|
85688
85704
|
};
|
|
@@ -85845,7 +85861,7 @@ fr.readWord1 = function() {
|
|
|
85845
85861
|
var s = this.pos;
|
|
85846
85862
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
85847
85863
|
var n = this.readCodePoint();
|
|
85848
|
-
(A ?
|
|
85864
|
+
(A ? jh : fE)(n, i) || this.invalidStringToken(s, "Invalid Unicode escape"), e += yC(n), t = this.pos;
|
|
85849
85865
|
} else
|
|
85850
85866
|
break;
|
|
85851
85867
|
A = !1;
|
|
@@ -85871,7 +85887,7 @@ co.acorn = {
|
|
|
85871
85887
|
TokContext: el,
|
|
85872
85888
|
tokContexts: An,
|
|
85873
85889
|
isIdentifierChar: fE,
|
|
85874
|
-
isIdentifierStart:
|
|
85890
|
+
isIdentifierStart: jh,
|
|
85875
85891
|
Token: A6,
|
|
85876
85892
|
isNewLine: ow,
|
|
85877
85893
|
lineBreak: jg,
|
|
@@ -86892,7 +86908,7 @@ function cpA(e, A) {
|
|
|
86892
86908
|
}
|
|
86893
86909
|
function lR() {
|
|
86894
86910
|
}
|
|
86895
|
-
var zb = 0.7, Xv = 1 / zb, Hy = "\\s*([+-]?\\d+)\\s*", jb = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
86911
|
+
var zb = 0.7, Xv = 1 / zb, Hy = "\\s*([+-]?\\d+)\\s*", jb = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Ph = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", qCe = /^#([0-9a-f]{3,8})$/, WCe = new RegExp(`^rgb\\(${Hy},${Hy},${Hy}\\)$`), VCe = new RegExp(`^rgb\\(${Ph},${Ph},${Ph}\\)$`), zCe = new RegExp(`^rgba\\(${Hy},${Hy},${Hy},${jb}\\)$`), jCe = new RegExp(`^rgba\\(${Ph},${Ph},${Ph},${jb}\\)$`), ZCe = new RegExp(`^hsl\\(${jb},${Ph},${Ph}\\)$`), XCe = new RegExp(`^hsla\\(${jb},${Ph},${Ph},${jb}\\)$`), ftA = {
|
|
86896
86912
|
aliceblue: 15792383,
|
|
86897
86913
|
antiquewhite: 16444375,
|
|
86898
86914
|
aqua: 65535,
|
|
@@ -89965,7 +89981,7 @@ qi("highlight-feature", (e, A) => {
|
|
|
89965
89981
|
}
|
|
89966
89982
|
r == null ? i.removeAttribute("highlighted-id") : i.setAttribute("highlighted-id", String(r));
|
|
89967
89983
|
});
|
|
89968
|
-
function
|
|
89984
|
+
function Zh(e) {
|
|
89969
89985
|
const A = e.duration;
|
|
89970
89986
|
let t = 0;
|
|
89971
89987
|
if (typeof A == "number") t = A;
|
|
@@ -89986,7 +90002,7 @@ qi("fade", (e, A) => {
|
|
|
89986
90002
|
console.warn(`[onlymapjs] fade: no <om-layer id="${t}"> found.`);
|
|
89987
90003
|
return;
|
|
89988
90004
|
}
|
|
89989
|
-
const r =
|
|
90005
|
+
const r = Zh(e).duration, s = ua(e.to) ?? 1, n = i.getAttribute("transition"), o = n ? v6(n).transitions : {};
|
|
89990
90006
|
o.opacity = r, i.setAttribute(
|
|
89991
90007
|
"transition",
|
|
89992
90008
|
Object.entries(o).map(([a, g]) => `${a} ${g}ms`).join(", ")
|
|
@@ -89998,7 +90014,7 @@ qi("pulse", (e, A, t) => {
|
|
|
89998
90014
|
console.warn("[onlymapjs] pulse: payload needs { layer }.");
|
|
89999
90015
|
return;
|
|
90000
90016
|
}
|
|
90001
|
-
const r =
|
|
90017
|
+
const r = Zh(e).duration || 1500, s = ua(e.cycles) ?? Math.max(1, Math.round(r / 600));
|
|
90002
90018
|
lf(t, i, r, {
|
|
90003
90019
|
frame: (n) => ({ opacity: $fA(n, s) }),
|
|
90004
90020
|
end: "clear"
|
|
@@ -90112,7 +90128,7 @@ qi("populate", (e, A, t, i) => {
|
|
|
90112
90128
|
uf("fade", e, A, t);
|
|
90113
90129
|
return;
|
|
90114
90130
|
}
|
|
90115
|
-
lf(t, s.id,
|
|
90131
|
+
lf(t, s.id, Zh(e).duration || 2e3, {
|
|
90116
90132
|
frame: (o) => lyA(n, o),
|
|
90117
90133
|
end: "clear"
|
|
90118
90134
|
// authored state IS the fully populated state
|
|
@@ -90143,7 +90159,7 @@ qi("trace", (e, A, t, i) => {
|
|
|
90143
90159
|
return;
|
|
90144
90160
|
}
|
|
90145
90161
|
if (e.featureId != null || typeof e.feature == "object" && e.feature !== null) {
|
|
90146
|
-
PQe(e, A, t, s,
|
|
90162
|
+
PQe(e, A, t, s, Zh(e).duration || 2e3);
|
|
90147
90163
|
return;
|
|
90148
90164
|
}
|
|
90149
90165
|
if (s.type !== "TripsLayer") {
|
|
@@ -90155,7 +90171,7 @@ qi("trace", (e, A, t, i) => {
|
|
|
90155
90171
|
console.warn(`[onlymapjs] trace: "${r}" has no usable timestamps — falling back to fade.`), uf("fade", e, A, t, i);
|
|
90156
90172
|
return;
|
|
90157
90173
|
}
|
|
90158
|
-
const { t0: o, t1: a } = n, g =
|
|
90174
|
+
const { t0: o, t1: a } = n, g = Zh(e).duration || 2e3, l = typeof e.easing == "string" ? XfA[e.easing] : void 0;
|
|
90159
90175
|
typeof e.easing == "string" && !l && console.warn(`[onlymapjs] trace: unknown easing "${e.easing}" — using linear.`);
|
|
90160
90176
|
let C = null;
|
|
90161
90177
|
if (e.follow === !0 || e.follow === "follow") {
|
|
@@ -90237,7 +90253,7 @@ qi("fly-to", (e, A, t) => {
|
|
|
90237
90253
|
console.warn("[onlymapjs] fly-to: payload needs at least one of { center, zoom, pitch, bearing }.");
|
|
90238
90254
|
return;
|
|
90239
90255
|
}
|
|
90240
|
-
t.setViewState(i,
|
|
90256
|
+
t.setViewState(i, Zh(e));
|
|
90241
90257
|
});
|
|
90242
90258
|
qi("zoom-to-feature", (e, A, t, i) => {
|
|
90243
90259
|
let r = e.feature, s;
|
|
@@ -90258,7 +90274,7 @@ qi("zoom-to-feature", (e, A, t, i) => {
|
|
|
90258
90274
|
console.warn("[onlymapjs] zoom-to-feature: payload needs either { feature } or { layer, featureId }.");
|
|
90259
90275
|
return;
|
|
90260
90276
|
}
|
|
90261
|
-
const n =
|
|
90277
|
+
const n = Zh(e), o = s === "geojson" || s === void 0 ? ayA(r) : void 0;
|
|
90262
90278
|
if (o) {
|
|
90263
90279
|
t.flyToBounds(o, void 0, n);
|
|
90264
90280
|
return;
|
|
@@ -90290,7 +90306,7 @@ qi("expand-cluster", (e, A, t) => {
|
|
|
90290
90306
|
console.warn("[onlymapjs] expand-cluster: the payload carries no position for the cluster.");
|
|
90291
90307
|
return;
|
|
90292
90308
|
}
|
|
90293
|
-
const g = e.duration === void 0 ? { ...
|
|
90309
|
+
const g = e.duration === void 0 ? { ...Zh(e), duration: OJ } : Zh(e);
|
|
90294
90310
|
t.flyTo(a, Math.max(n, t.getViewState().zoom + 1), g);
|
|
90295
90311
|
});
|
|
90296
90312
|
qi("set-layer-attribute", (e, A) => {
|
|
@@ -90565,7 +90581,7 @@ function c_(e) {
|
|
|
90565
90581
|
function jQe(e) {
|
|
90566
90582
|
t2.get(e)?.destroy(), t2.delete(e);
|
|
90567
90583
|
}
|
|
90568
|
-
function
|
|
90584
|
+
function Dh(e, A) {
|
|
90569
90585
|
const t = e ? t2.get(e) : void 0;
|
|
90570
90586
|
return t ? t.suppress(A) : A();
|
|
90571
90587
|
}
|
|
@@ -98177,7 +98193,7 @@ function rmA({ layerIRs: e, core: A, mapEl: t, selection: i, history: r, feature
|
|
|
98177
98193
|
}
|
|
98178
98194
|
};
|
|
98179
98195
|
}
|
|
98180
|
-
const smA = "0.11.
|
|
98196
|
+
const smA = "0.11.10", $pe = "https://om-api.nika.eco/v1/t", tE = { endpoint: $pe };
|
|
98181
98197
|
function Aye(e) {
|
|
98182
98198
|
for (const A of Object.keys(e))
|
|
98183
98199
|
tE[A] = e[A];
|
|
@@ -100764,7 +100780,7 @@ class hme extends KE {
|
|
|
100764
100780
|
const t = this.inSlotReparent;
|
|
100765
100781
|
this.inSlotReparent = !0;
|
|
100766
100782
|
try {
|
|
100767
|
-
|
|
100783
|
+
Dh(this, A);
|
|
100768
100784
|
} finally {
|
|
100769
100785
|
this.inSlotReparent = t;
|
|
100770
100786
|
}
|
|
@@ -100776,7 +100792,7 @@ class hme extends KE {
|
|
|
100776
100792
|
this.foldedWidgetSlots.set(A, t), this.scheduleFoldPass();
|
|
100777
100793
|
return;
|
|
100778
100794
|
}
|
|
100779
|
-
this.foldedWidgetSlots.delete(A), this.inFoldPass = !0,
|
|
100795
|
+
this.foldedWidgetSlots.delete(A), this.inFoldPass = !0, Dh(this, () => {
|
|
100780
100796
|
const n = this.slotAnchors.get(A);
|
|
100781
100797
|
n?.parentNode ? n.parentNode.insertBefore(A, n) : this.appendChild(A);
|
|
100782
100798
|
}), this.inFoldPass = !1;
|
|
@@ -100922,7 +100938,7 @@ class hme extends KE {
|
|
|
100922
100938
|
restoreFoldedWidget(A, t) {
|
|
100923
100939
|
this.foldedWidgetSlots.delete(A);
|
|
100924
100940
|
const i = this.ensureSlotContainer(t);
|
|
100925
|
-
|
|
100941
|
+
Dh(this, () => i.appendChild(A));
|
|
100926
100942
|
}
|
|
100927
100943
|
runFoldPass() {
|
|
100928
100944
|
this.measureWidgetFold();
|
|
@@ -100938,7 +100954,7 @@ class hme extends KE {
|
|
|
100938
100954
|
if (!i || i === "manual") continue;
|
|
100939
100955
|
this.foldedWidgetSlots.set(t, i);
|
|
100940
100956
|
const r = this.ensureFoldDrawer(hmA(i));
|
|
100941
|
-
t.parentElement !== r.panel && (
|
|
100957
|
+
t.parentElement !== r.panel && (Dh(this, () => r.panel.appendChild(t)), A = !0);
|
|
100942
100958
|
}
|
|
100943
100959
|
for (const t of Cye) {
|
|
100944
100960
|
const i = this.foldDrawers.get(t);
|
|
@@ -100981,7 +100997,7 @@ class hme extends KE {
|
|
|
100981
100997
|
try {
|
|
100982
100998
|
for (const [t, i] of this.slotContainers) {
|
|
100983
100999
|
const r = CmA(t).axis;
|
|
100984
|
-
|
|
101000
|
+
Dh(this, () => {
|
|
100985
101001
|
for (const a of [...i.querySelectorAll(":scope > [data-om-cluster]")]) {
|
|
100986
101002
|
for (const g of [...a.children]) A.add(g);
|
|
100987
101003
|
for (; a.firstChild; ) i.insertBefore(a.firstChild, a);
|
|
@@ -101178,8 +101194,8 @@ class hme extends KE {
|
|
|
101178
101194
|
const i = A ? { ...A, object: this.resolvePickedObject(A.layerId, A.object, A.index) } : null, r = this.selection;
|
|
101179
101195
|
if (this.selection = i, this.lastPickType = t, this.lastPickByType = { ...this.lastPickByType, [t]: i }, this.notifyWidgets((s) => s.includes("selection")), this.scheduleOverlayFlush(), i) {
|
|
101180
101196
|
const s = () => this.dispatchToBehaviors(i.type, { ...this.pickPayload(i), [EuA]: i.type }, i.layerId);
|
|
101181
|
-
i.type === "hover" ?
|
|
101182
|
-
} else r &&
|
|
101197
|
+
i.type === "hover" ? Dh(this, s) : s();
|
|
101198
|
+
} else r && Dh(this, () => this.emit("hide-tooltip", {}));
|
|
101183
101199
|
}
|
|
101184
101200
|
/**
|
|
101185
101201
|
* The single drag-pick path — deck.gl's continuous drag picks (via
|
|
@@ -101190,7 +101206,7 @@ class hme extends KE {
|
|
|
101190
101206
|
*/
|
|
101191
101207
|
handleDragPick(A) {
|
|
101192
101208
|
const t = { ...A, object: this.resolvePickedObject(A.layerId, A.object, A.index) };
|
|
101193
|
-
|
|
101209
|
+
Dh(this, () => this.dispatchToBehaviors("drag", this.pickPayload(t), t.layerId));
|
|
101194
101210
|
}
|
|
101195
101211
|
/**
|
|
101196
101212
|
* Synthetic pick entries for the test harness (spec: "Consumer Testing
|
|
@@ -102148,7 +102164,7 @@ function bme(e, A, t) {
|
|
|
102148
102164
|
if (!mmA.has(o.action)) return;
|
|
102149
102165
|
const g = typeof o.payload.layer == "string" ? o.payload.layer : null;
|
|
102150
102166
|
if (!g) return;
|
|
102151
|
-
const l = A[a]?.start ?? 0, { duration: C } =
|
|
102167
|
+
const l = A[a]?.start ?? 0, { duration: C } = Zh(o.payload);
|
|
102152
102168
|
switch (o.action) {
|
|
102153
102169
|
case "fade": {
|
|
102154
102170
|
const Q = ua(o.payload.to) ?? 1, f = r.get(g);
|
|
@@ -102434,7 +102450,7 @@ class vme extends KE {
|
|
|
102434
102450
|
return A ? (this.effectTrack = bme(this.steps, this.timeline.intervals, A), this.effectTrack) : null;
|
|
102435
102451
|
}
|
|
102436
102452
|
fireDueSteps(A, t = "inclusive") {
|
|
102437
|
-
|
|
102453
|
+
Dh(this.mapEl, () => {
|
|
102438
102454
|
for (let i = 0; i < this.steps.length; i++) {
|
|
102439
102455
|
const r = this.timeline.intervals[i].start, s = t === "inclusive" ? r <= this.elapsed : r < this.elapsed;
|
|
102440
102456
|
if (this.fired.has(i) || !s || (this.fired.add(i), mmA.has(this.steps[i].action) && this.storyClockOwnsEffects())) continue;
|
|
@@ -102508,7 +102524,7 @@ class vme extends KE {
|
|
|
102508
102524
|
this.captured = A, i && (this.capturedCamera = this.mapEl.getViewStateInternal() ?? null);
|
|
102509
102525
|
}
|
|
102510
102526
|
restoreInitial() {
|
|
102511
|
-
|
|
102527
|
+
Dh(this.mapEl, () => {
|
|
102512
102528
|
this.mapEl?.clearEffectsInternal();
|
|
102513
102529
|
for (const { el: A, attr: t, value: i } of this.captured ?? [])
|
|
102514
102530
|
i === null ? A.removeAttribute(t) : A.setAttribute(t, i);
|
|
@@ -103496,7 +103512,7 @@ const Q5e = {
|
|
|
103496
103512
|
registerAction: qi,
|
|
103497
103513
|
registerFormat: P5A,
|
|
103498
103514
|
registerSource: q5A,
|
|
103499
|
-
registerBasemap:
|
|
103515
|
+
registerBasemap: Ml,
|
|
103500
103516
|
registerTerrain: ck,
|
|
103501
103517
|
registerCrs: n0e,
|
|
103502
103518
|
registerRoutingProvider: UfA,
|
|
@@ -104932,23 +104948,23 @@ class uk {
|
|
|
104932
104948
|
this.offset -= A;
|
|
104933
104949
|
}
|
|
104934
104950
|
}
|
|
104935
|
-
const
|
|
104951
|
+
const dh = !0, WrA = !1, Pwe = 9994;
|
|
104936
104952
|
function LmA(e) {
|
|
104937
104953
|
const A = {
|
|
104938
104954
|
magic: e.getInt32(0, WrA),
|
|
104939
104955
|
// Length is stored as # of 2-byte words; multiply by 2 to get # of bytes
|
|
104940
104956
|
length: e.getInt32(24, WrA) * 2,
|
|
104941
|
-
version: e.getInt32(28,
|
|
104942
|
-
type: e.getInt32(32,
|
|
104957
|
+
version: e.getInt32(28, dh),
|
|
104958
|
+
type: e.getInt32(32, dh),
|
|
104943
104959
|
bbox: {
|
|
104944
|
-
minX: e.getFloat64(36,
|
|
104945
|
-
minY: e.getFloat64(44,
|
|
104946
|
-
minZ: e.getFloat64(68,
|
|
104947
|
-
minM: e.getFloat64(84,
|
|
104948
|
-
maxX: e.getFloat64(52,
|
|
104949
|
-
maxY: e.getFloat64(60,
|
|
104950
|
-
maxZ: e.getFloat64(76,
|
|
104951
|
-
maxM: e.getFloat64(92,
|
|
104960
|
+
minX: e.getFloat64(36, dh),
|
|
104961
|
+
minY: e.getFloat64(44, dh),
|
|
104962
|
+
minZ: e.getFloat64(68, dh),
|
|
104963
|
+
minM: e.getFloat64(84, dh),
|
|
104964
|
+
maxX: e.getFloat64(52, dh),
|
|
104965
|
+
maxY: e.getFloat64(60, dh),
|
|
104966
|
+
maxZ: e.getFloat64(76, dh),
|
|
104967
|
+
maxM: e.getFloat64(92, dh)
|
|
104952
104968
|
}
|
|
104953
104969
|
};
|
|
104954
104970
|
return A.magic !== Pwe && console.error(`SHP file: bad magic number ${A.magic}`), A.version !== 1e3 && console.error(`SHP file: bad version ${A.version}`), A;
|
|
@@ -105964,7 +105980,7 @@ function esA(e, A) {
|
|
|
105964
105980
|
t = A[i], t !== void 0 && (e[i] = t);
|
|
105965
105981
|
return e;
|
|
105966
105982
|
}
|
|
105967
|
-
function
|
|
105983
|
+
function Xh(e, A, t) {
|
|
105968
105984
|
var i = e * A;
|
|
105969
105985
|
return t / Math.sqrt(1 - i * i);
|
|
105970
105986
|
}
|
|
@@ -105986,7 +106002,7 @@ function o2(e, A) {
|
|
|
105986
106002
|
}
|
|
105987
106003
|
function mDe() {
|
|
105988
106004
|
var e = this.b / this.a;
|
|
105989
|
-
this.es = 1 - e * e, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 =
|
|
106005
|
+
this.es = 1 - e * e, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = Xh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
105990
106006
|
}
|
|
105991
106007
|
function wDe(e) {
|
|
105992
106008
|
var A = e.x, t = e.y;
|
|
@@ -106383,9 +106399,9 @@ function UDe(e, A, t, i, r, s) {
|
|
|
106383
106399
|
var n = {};
|
|
106384
106400
|
return e === void 0 || e === "none" ? n.datum_type = _H : n.datum_type = jwe, A && (n.datum_params = A.map(parseFloat), (n.datum_params[0] !== 0 || n.datum_params[1] !== 0 || n.datum_params[2] !== 0) && (n.datum_type = Ef), n.datum_params.length > 3 && (n.datum_params[3] !== 0 || n.datum_params[4] !== 0 || n.datum_params[5] !== 0 || n.datum_params[6] !== 0) && (n.datum_type = Qf, n.datum_params[3] *= Ab, n.datum_params[4] *= Ab, n.datum_params[5] *= Ab, n.datum_params[6] = n.datum_params[6] / 1e6 + 1)), n.a = t, n.b = i, n.es = r, n.ep2 = s, n;
|
|
106385
106401
|
}
|
|
106386
|
-
function
|
|
106387
|
-
if (!(this instanceof
|
|
106388
|
-
return new
|
|
106402
|
+
function Jh(e, A) {
|
|
106403
|
+
if (!(this instanceof Jh))
|
|
106404
|
+
return new Jh(e);
|
|
106389
106405
|
A = A || function(a) {
|
|
106390
106406
|
if (a)
|
|
106391
106407
|
throw a;
|
|
@@ -106395,7 +106411,7 @@ function Ph(e, A) {
|
|
|
106395
106411
|
A(e);
|
|
106396
106412
|
return;
|
|
106397
106413
|
}
|
|
106398
|
-
var i =
|
|
106414
|
+
var i = Jh.projections.get(t.projName);
|
|
106399
106415
|
if (!i) {
|
|
106400
106416
|
A(e);
|
|
106401
106417
|
return;
|
|
@@ -106408,8 +106424,8 @@ function Ph(e, A) {
|
|
|
106408
106424
|
var s = LDe(t.a, t.b, t.rf, t.ellps, t.sphere), n = kDe(s.a, s.b, s.rf, t.R_A), o = t.datum || UDe(t.datumCode, t.datum_params, s.a, s.b, n.es, n.ep2);
|
|
106409
106425
|
esA(this, t), esA(this, i), this.a = s.a, this.b = s.b, this.rf = s.rf, this.sphere = s.sphere, this.es = n.es, this.e = n.e, this.ep2 = n.ep2, this.datum = o, this.init(), A(null, this);
|
|
106410
106426
|
}
|
|
106411
|
-
|
|
106412
|
-
|
|
106427
|
+
Jh.projections = xDe;
|
|
106428
|
+
Jh.projections.start();
|
|
106413
106429
|
function TDe(e, A) {
|
|
106414
106430
|
return e.datum_type !== A.datum_type || e.a !== A.a || Math.abs(e.es - A.es) > 5e-11 ? !1 : e.datum_type === Ef ? e.datum_params[0] === A.datum_params[0] && e.datum_params[1] === A.datum_params[1] && e.datum_params[2] === A.datum_params[2] : e.datum_type === Qf ? e.datum_params[0] === A.datum_params[0] && e.datum_params[1] === A.datum_params[1] && e.datum_params[2] === A.datum_params[2] && e.datum_params[3] === A.datum_params[3] && e.datum_params[4] === A.datum_params[4] && e.datum_params[5] === A.datum_params[5] && e.datum_params[6] === A.datum_params[6] : !0;
|
|
106415
106431
|
}
|
|
@@ -106536,7 +106552,7 @@ function KDe(e, A) {
|
|
|
106536
106552
|
}
|
|
106537
106553
|
function w_(e, A, t) {
|
|
106538
106554
|
var i;
|
|
106539
|
-
if (Array.isArray(t) && (t = XmA(t)), YDe(t), e.datum && A.datum && KDe(e, A) && (i = new
|
|
106555
|
+
if (Array.isArray(t) && (t = XmA(t)), YDe(t), e.datum && A.datum && KDe(e, A) && (i = new Jh("WGS84"), t = w_(e, i, t), e = i), e.axis !== "enu" && (t = isA(e, !1, t)), e.projName === "longlat")
|
|
106540
106556
|
t = {
|
|
106541
106557
|
x: t.x * ig,
|
|
106542
106558
|
y: t.y * ig,
|
|
@@ -106562,7 +106578,7 @@ function w_(e, A, t) {
|
|
|
106562
106578
|
z: t.z || 0
|
|
106563
106579
|
})), A.axis !== "enu" ? isA(A, !0, t) : t;
|
|
106564
106580
|
}
|
|
106565
|
-
var ssA =
|
|
106581
|
+
var ssA = Jh("WGS84");
|
|
106566
106582
|
function zT(e, A, t) {
|
|
106567
106583
|
var i, r, s;
|
|
106568
106584
|
return Array.isArray(t) ? (i = w_(e, A, t) || { x: NaN, y: NaN }, t.length > 2 ? typeof e.name < "u" && e.name === "geocent" || typeof A.name < "u" && A.name === "geocent" ? typeof i.z == "number" ? [i.x, i.y, i.z].concat(t.splice(3)) : [i.x, i.y, t[2]].concat(t.splice(3)) : [i.x, i.y].concat(t.splice(2)) : [i.x, i.y]) : (r = w_(e, A, t), s = Object.keys(t), s.length === 2 || s.forEach(function(n) {
|
|
@@ -106575,7 +106591,7 @@ function zT(e, A, t) {
|
|
|
106575
106591
|
}), r);
|
|
106576
106592
|
}
|
|
106577
106593
|
function nsA(e) {
|
|
106578
|
-
return e instanceof
|
|
106594
|
+
return e instanceof Jh ? e : e.oProj ? e.oProj : Jh(e);
|
|
106579
106595
|
}
|
|
106580
106596
|
function _I(e, A, t) {
|
|
106581
106597
|
e = nsA(e);
|
|
@@ -107037,7 +107053,7 @@ function LSe(e, A, t) {
|
|
|
107037
107053
|
return A *= t, Math.tan(0.5 * (bt + e)) * Math.pow((1 - A) / (1 + A), 0.5 * t);
|
|
107038
107054
|
}
|
|
107039
107055
|
function USe() {
|
|
107040
|
-
this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Kt && (this.k0 = 0.5 * (1 + QR(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= Kt && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Kt && (this.k0 = 0.5 * this.cons *
|
|
107056
|
+
this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Kt && (this.k0 = 0.5 * (1 + QR(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= Kt && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= Kt && (this.k0 = 0.5 * this.cons * Xh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / ml(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Xh(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - bt, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
107041
107057
|
}
|
|
107042
107058
|
function TSe(e) {
|
|
107043
107059
|
var A = e.x, t = e.y, i = Math.sin(t), r = Math.cos(t), s, n, o, a, g, l, C = jt(A - this.long0);
|
|
@@ -107140,7 +107156,7 @@ function $Se() {
|
|
|
107140
107156
|
if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < Kt)) {
|
|
107141
107157
|
var e = this.b / this.a;
|
|
107142
107158
|
this.e = Math.sqrt(1 - e * e);
|
|
107143
|
-
var A = Math.sin(this.lat1), t = Math.cos(this.lat1), i =
|
|
107159
|
+
var A = Math.sin(this.lat1), t = Math.cos(this.lat1), i = Xh(this.e, A, t), r = ml(this.e, this.lat1, A), s = Math.sin(this.lat2), n = Math.cos(this.lat2), o = Xh(this.e, s, n), a = ml(this.e, this.lat2, s), g = ml(this.e, this.lat0, Math.sin(this.lat0));
|
|
107144
107160
|
Math.abs(this.lat1 - this.lat2) > Kt ? this.ns = Math.log(i / o) / Math.log(r / a) : this.ns = A, isNaN(this.ns) && (this.ns = A), this.f0 = i / (this.ns * Math.pow(r, this.ns)), this.rh = this.a * this.f0 * Math.pow(g, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
107145
107161
|
}
|
|
107146
107162
|
}
|
|
@@ -107392,7 +107408,7 @@ function mE(e) {
|
|
|
107392
107408
|
return Math.abs(e) > 1 && (e = e > 1 ? 1 : -1), Math.asin(e);
|
|
107393
107409
|
}
|
|
107394
107410
|
function Mbe() {
|
|
107395
|
-
Math.abs(this.lat1 + this.lat2) < Kt || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 =
|
|
107411
|
+
Math.abs(this.lat1 + this.lat2) < Kt || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = Xh(this.e3, this.sin_po, this.cos_po), this.qs1 = rE(this.e3, this.sin_po, this.cos_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = Xh(this.e3, this.sin_po, this.cos_po), this.qs2 = rE(this.e3, this.sin_po, this.cos_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = rE(this.e3, this.sin_po, this.cos_po), Math.abs(this.lat1 - this.lat2) > Kt ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
|
|
107396
107412
|
}
|
|
107397
107413
|
function vbe(e) {
|
|
107398
107414
|
var A = e.x, t = e.y;
|
|
@@ -107449,7 +107465,7 @@ function Hbe(e, A) {
|
|
|
107449
107465
|
return NaN;
|
|
107450
107466
|
}
|
|
107451
107467
|
function Ybe() {
|
|
107452
|
-
this.sphere || (this.k0 =
|
|
107468
|
+
this.sphere || (this.k0 = Xh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
107453
107469
|
}
|
|
107454
107470
|
function Kbe(e) {
|
|
107455
107471
|
var A = e.x, t = e.y, i, r, s = jt(A - this.long0);
|
|
@@ -107662,7 +107678,7 @@ const w2e = {
|
|
|
107662
107678
|
names: m2e
|
|
107663
107679
|
};
|
|
107664
107680
|
function D2e() {
|
|
107665
|
-
Math.abs(this.lat1 + this.lat2) < Kt || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = dR(this.es), this.e1 = fR(this.es), this.e2 = pR(this.es), this.e3 = yR(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 =
|
|
107681
|
+
Math.abs(this.lat1 + this.lat2) < Kt || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = dR(this.es), this.e1 = fR(this.es), this.e2 = pR(this.es), this.e3 = yR(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 = Xh(this.e, this.sinphi, this.cosphi), this.ml1 = lg(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < Kt ? this.ns = this.sinphi : (this.sinphi = Math.sin(this.lat2), this.cosphi = Math.cos(this.lat2), this.ms2 = Xh(this.e, this.sinphi, this.cosphi), this.ml2 = lg(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = lg(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
107666
107682
|
}
|
|
107667
107683
|
function S2e(e) {
|
|
107668
107684
|
var A = e.x, t = e.y, i;
|
|
@@ -107929,7 +107945,7 @@ function gRe(e) {
|
|
|
107929
107945
|
e.Proj.projections.add(BSe), e.Proj.projections.add(gM), e.Proj.projections.add(bSe), e.Proj.projections.add(kSe), e.Proj.projections.add(HSe), e.Proj.projections.add(WSe), e.Proj.projections.add(XSe), e.Proj.projections.add(ibe), e.Proj.projections.add(abe), e.Proj.projections.add(hbe), e.Proj.projections.add(Nbe), e.Proj.projections.add(kbe), e.Proj.projections.add(Jbe), e.Proj.projections.add(Wbe), e.Proj.projections.add(Xbe), e.Proj.projections.add(i2e), e.Proj.projections.add(a2e), e.Proj.projections.add(h2e), e.Proj.projections.add(d2e), e.Proj.projections.add(w2e), e.Proj.projections.add(F2e), e.Proj.projections.add(x2e), e.Proj.projections.add(T2e), e.Proj.projections.add(K2e), e.Proj.projections.add(z2e), e.Proj.projections.add(iRe), e.Proj.projections.add(aRe);
|
|
107930
107946
|
}
|
|
107931
107947
|
_I.defaultDatum = "WGS84";
|
|
107932
|
-
_I.Proj =
|
|
107948
|
+
_I.Proj = Jh;
|
|
107933
107949
|
_I.WGS84 = new _I.Proj("WGS84");
|
|
107934
107950
|
_I.Point = wm;
|
|
107935
107951
|
_I.toPoint = XmA;
|
|
@@ -113240,7 +113256,7 @@ let qo = class Gg {
|
|
|
113240
113256
|
static createGeometry(A, t, i, r, s, n, o, a, g) {
|
|
113241
113257
|
return Gg.startGeometry(A), Gg.addEnds(A, t), Gg.addXy(A, i), Gg.addZ(A, r), Gg.addM(A, s), Gg.addT(A, n), Gg.addTm(A, o), Gg.addType(A, a), Gg.addParts(A, g), Gg.endGeometry(A);
|
|
113242
113258
|
}
|
|
113243
|
-
},
|
|
113259
|
+
}, xh = class xu {
|
|
113244
113260
|
bb = null;
|
|
113245
113261
|
bb_pos = 0;
|
|
113246
113262
|
__init(A, t) {
|
|
@@ -113354,7 +113370,7 @@ function fk(e) {
|
|
|
113354
113370
|
fk.prototype.read = pFe;
|
|
113355
113371
|
fk.prototype.slice = yFe;
|
|
113356
113372
|
fk.prototype.cancel = dFe;
|
|
113357
|
-
const Bn = new Uint8Array([102, 103, 98, 3, 102, 103, 98, 0]),
|
|
113373
|
+
const Bn = new Uint8Array([102, 103, 98, 3, 102, 103, 98, 0]), kh = 4;
|
|
113358
113374
|
class og {
|
|
113359
113375
|
bb = null;
|
|
113360
113376
|
bb_pos = 0;
|
|
@@ -113683,7 +113699,7 @@ class l5 {
|
|
|
113683
113699
|
if (!A.subarray(0, 3).every((n, o) => Bn[o] === n)) throw Error("Not a FlatGeobuf file");
|
|
113684
113700
|
let t = new DataView(A.buffer).getUint32(Bn.length, !0);
|
|
113685
113701
|
if (t > 10485760 || t < 8) throw Error("Invalid header size");
|
|
113686
|
-
let i = A.subarray(Bn.length, Bn.length +
|
|
113702
|
+
let i = A.subarray(Bn.length, Bn.length + kh + t), r = mR(new jo(i)), s = pk(r.featuresCount, r.indexNodeSize);
|
|
113687
113703
|
return new l5(A, r, t, s);
|
|
113688
113704
|
}
|
|
113689
113705
|
async *selectBbox(A) {
|
|
@@ -113697,16 +113713,16 @@ class l5 {
|
|
|
113697
113713
|
}
|
|
113698
113714
|
}
|
|
113699
113715
|
lengthBeforeTree() {
|
|
113700
|
-
return Bn.length +
|
|
113716
|
+
return Bn.length + kh + this.headerLength;
|
|
113701
113717
|
}
|
|
113702
113718
|
lengthBeforeFeatures() {
|
|
113703
113719
|
return this.lengthBeforeTree() + this.indexLength;
|
|
113704
113720
|
}
|
|
113705
113721
|
readFeature(A) {
|
|
113706
|
-
let t = A + this.lengthBeforeFeatures(), i = new DataView(this.bytes.buffer).getUint32(t, !0), r = this.bytes.subarray(t + 4, t + 4 + i), s = new Uint8Array(i +
|
|
113707
|
-
s.set(r,
|
|
113722
|
+
let t = A + this.lengthBeforeFeatures(), i = new DataView(this.bytes.buffer).getUint32(t, !0), r = this.bytes.subarray(t + 4, t + 4 + i), s = new Uint8Array(i + kh);
|
|
113723
|
+
s.set(r, kh);
|
|
113708
113724
|
let n = new jo(s);
|
|
113709
|
-
return
|
|
113725
|
+
return xh.getSizePrefixedRootAsFeature(n);
|
|
113710
113726
|
}
|
|
113711
113727
|
}
|
|
113712
113728
|
/*! *****************************************************************************
|
|
@@ -114541,7 +114557,7 @@ class B5 {
|
|
|
114541
114557
|
})();
|
|
114542
114558
|
if (!new Uint8Array(await s.getRange(0, 8, n, "header")).subarray(0, 3).every((l, C) => Bn[C] === l)) throw Error("Not a FlatGeobuf file");
|
|
114543
114559
|
if ((r = new DataView(await s.getRange(8, 4, n, "header")).getUint32(0, !0)) > 10485760 || r < 8) throw Error("Invalid header size");
|
|
114544
|
-
let o = await s.getRange(Bn.length,
|
|
114560
|
+
let o = await s.getRange(Bn.length, kh + r, n, "header"), a = mR(new jo(new Uint8Array(o)));
|
|
114545
114561
|
if (a.indexNodeSize === 0) throw Error("No index found, cannot read features filtered by bbox");
|
|
114546
114562
|
let g = pk(a.featuresCount, a.indexNodeSize);
|
|
114547
114563
|
return new B5(s, a, r, g, t, i);
|
|
@@ -114562,7 +114578,7 @@ class B5 {
|
|
|
114562
114578
|
yield* wR.merge(o);
|
|
114563
114579
|
}
|
|
114564
114580
|
lengthBeforeTree() {
|
|
114565
|
-
return Bn.length +
|
|
114581
|
+
return Bn.length + kh + this.headerLength;
|
|
114566
114582
|
}
|
|
114567
114583
|
lengthBeforeFeatures() {
|
|
114568
114584
|
return this.lengthBeforeTree() + this.indexLength;
|
|
@@ -114581,10 +114597,10 @@ class B5 {
|
|
|
114581
114597
|
async readFeature(A, t, i) {
|
|
114582
114598
|
let r, s = t + this.lengthBeforeFeatures();
|
|
114583
114599
|
r = new DataView(await A.getRange(s, 4, i, "feature length")).getUint32(0, !0);
|
|
114584
|
-
let n = new Uint8Array(await A.getRange(s + 4, r, i, "feature data")), o = new Uint8Array(r +
|
|
114585
|
-
o.set(n,
|
|
114600
|
+
let n = new Uint8Array(await A.getRange(s + 4, r, i, "feature data")), o = new Uint8Array(r + kh);
|
|
114601
|
+
o.set(n, kh);
|
|
114586
114602
|
let a = new jo(o);
|
|
114587
|
-
return
|
|
114603
|
+
return xh.getSizePrefixedRootAsFeature(a);
|
|
114588
114604
|
}
|
|
114589
114605
|
}
|
|
114590
114606
|
let xsA = class {
|
|
@@ -114724,10 +114740,10 @@ function LwA(e, A, t) {
|
|
|
114724
114740
|
}
|
|
114725
114741
|
}
|
|
114726
114742
|
let l = 0;
|
|
114727
|
-
s > 0 && (l =
|
|
114743
|
+
s > 0 && (l = xh.createPropertiesVector(r, o.slice(0, s)));
|
|
114728
114744
|
let C = GwA(r, e);
|
|
114729
|
-
|
|
114730
|
-
let Q =
|
|
114745
|
+
xh.startFeature(r), xh.addGeometry(r, C), l && xh.addProperties(r, l);
|
|
114746
|
+
let Q = xh.endFeature(r);
|
|
114731
114747
|
return r.finishSizePrefixed(Q), r.asUint8Array();
|
|
114732
114748
|
}
|
|
114733
114749
|
function C5(e, A) {
|
|
@@ -114831,14 +114847,14 @@ async function* u5(e, A, t, i) {
|
|
|
114831
114847
|
r.setPosition(Bn.length);
|
|
114832
114848
|
let n = mR(r);
|
|
114833
114849
|
i && i(n);
|
|
114834
|
-
let o = Bn.length +
|
|
114850
|
+
let o = Bn.length + kh + s, { indexNodeSize: a, featuresCount: g } = n;
|
|
114835
114851
|
a > 0 && (o += pk(g, a));
|
|
114836
114852
|
let l = 0;
|
|
114837
114853
|
for (; o < r.capacity(); ) {
|
|
114838
114854
|
let C = r.readUint32(o);
|
|
114839
114855
|
r.setPosition(o);
|
|
114840
|
-
let Q =
|
|
114841
|
-
yield A(l++, Q, n), o +=
|
|
114856
|
+
let Q = xh.getSizePrefixedRootAsFeature(r);
|
|
114857
|
+
yield A(l++, Q, n), o += kh + C;
|
|
114842
114858
|
}
|
|
114843
114859
|
}
|
|
114844
114860
|
async function* E5(e, A, t) {
|
|
@@ -114866,7 +114882,7 @@ async function LFe(e, A, t, i) {
|
|
|
114866
114882
|
let s = new jo(r), n = s.readUint32(0);
|
|
114867
114883
|
r = new Uint8Array(await e(n, "feature data"));
|
|
114868
114884
|
let o = new Uint8Array(n + 4);
|
|
114869
|
-
return o.set(r, 4), s = new jo(o), t(i,
|
|
114885
|
+
return o.set(r, 4), s = new jo(o), t(i, xh.getSizePrefixedRootAsFeature(s), A);
|
|
114870
114886
|
}
|
|
114871
114887
|
function PwA(e, A = 0) {
|
|
114872
114888
|
let t, i = new Nx(), r = 0;
|
|
@@ -119282,7 +119298,7 @@ const SNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
119282
119298
|
}, Symbol.toStringTag, { value: "Module" })), bNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
119283
119299
|
__proto__: null,
|
|
119284
119300
|
Column: gn,
|
|
119285
|
-
Feature:
|
|
119301
|
+
Feature: xh,
|
|
119286
119302
|
Geometry: qo,
|
|
119287
119303
|
generic: JFe,
|
|
119288
119304
|
geojson: VFe,
|
|
@@ -119689,7 +119705,7 @@ function ONe(e, A) {
|
|
|
119689
119705
|
}
|
|
119690
119706
|
}
|
|
119691
119707
|
const RDA = 1 << 19, qNe = new TextDecoder();
|
|
119692
|
-
function
|
|
119708
|
+
function Sh(e) {
|
|
119693
119709
|
return e && qNe.decode(e);
|
|
119694
119710
|
}
|
|
119695
119711
|
async function RR(e, { parsers: A, initialFetchSize: t = RDA, geoparquet: i = !0 } = {}) {
|
|
@@ -119720,7 +119736,7 @@ function tY(e, { parsers: A, geoparquet: t = !0 } = {}) {
|
|
|
119720
119736
|
type: rnA[U.field_1],
|
|
119721
119737
|
type_length: U.field_2,
|
|
119722
119738
|
repetition_type: RNe[U.field_3],
|
|
119723
|
-
name:
|
|
119739
|
+
name: Sh(U.field_4),
|
|
119724
119740
|
num_children: U.field_5,
|
|
119725
119741
|
converted_type: FNe[U.field_6],
|
|
119726
119742
|
scale: U.field_7,
|
|
@@ -119729,19 +119745,19 @@ function tY(e, { parsers: A, geoparquet: t = !0 } = {}) {
|
|
|
119729
119745
|
logical_type: WNe(U.field_10)
|
|
119730
119746
|
})), C = l.filter((U) => U.type), Q = a.field_3, f = a.field_4.map((U) => ({
|
|
119731
119747
|
columns: U.field_1.map((Y, O) => ({
|
|
119732
|
-
file_path:
|
|
119748
|
+
file_path: Sh(Y.field_1),
|
|
119733
119749
|
file_offset: Y.field_2,
|
|
119734
119750
|
meta_data: Y.field_3 && {
|
|
119735
119751
|
type: rnA[Y.field_3.field_1],
|
|
119736
119752
|
encodings: Y.field_3.field_2?.map((V) => Id[V]),
|
|
119737
|
-
path_in_schema: Y.field_3.field_3.map(
|
|
119753
|
+
path_in_schema: Y.field_3.field_3.map(Sh),
|
|
119738
119754
|
codec: NNe[Y.field_3.field_4],
|
|
119739
119755
|
num_values: Y.field_3.field_5,
|
|
119740
119756
|
total_uncompressed_size: Y.field_3.field_6,
|
|
119741
119757
|
total_compressed_size: Y.field_3.field_7,
|
|
119742
119758
|
key_value_metadata: Y.field_3.field_8?.map((V) => ({
|
|
119743
|
-
key:
|
|
119744
|
-
value:
|
|
119759
|
+
key: Sh(V.field_1),
|
|
119760
|
+
value: Sh(V.field_2)
|
|
119745
119761
|
})),
|
|
119746
119762
|
data_page_offset: Y.field_3.field_9,
|
|
119747
119763
|
index_page_offset: Y.field_3.field_10,
|
|
@@ -119791,9 +119807,9 @@ function tY(e, { parsers: A, geoparquet: t = !0 } = {}) {
|
|
|
119791
119807
|
total_compressed_size: U.field_6,
|
|
119792
119808
|
ordinal: U.field_7
|
|
119793
119809
|
})), S = a.field_5?.map((U) => ({
|
|
119794
|
-
key:
|
|
119795
|
-
value:
|
|
119796
|
-
})), _ =
|
|
119810
|
+
key: Sh(U.field_1),
|
|
119811
|
+
value: Sh(U.field_2)
|
|
119812
|
+
})), _ = Sh(a.field_6);
|
|
119797
119813
|
return t && ONe(l, S), {
|
|
119798
119814
|
version: g,
|
|
119799
119815
|
schema: l,
|
|
@@ -119829,10 +119845,10 @@ function WNe(e) {
|
|
|
119829
119845
|
specification_version: e.field_16.field_1
|
|
119830
119846
|
} : e?.field_17 ? {
|
|
119831
119847
|
type: "GEOMETRY",
|
|
119832
|
-
crs:
|
|
119848
|
+
crs: Sh(e.field_17.field_1)
|
|
119833
119849
|
} : e?.field_18 ? {
|
|
119834
119850
|
type: "GEOGRAPHY",
|
|
119835
|
-
crs:
|
|
119851
|
+
crs: Sh(e.field_18.field_1),
|
|
119836
119852
|
algorithm: vNe[e.field_18.field_2]
|
|
119837
119853
|
} : e;
|
|
119838
119854
|
}
|
|
@@ -127285,7 +127301,7 @@ void main(void) {
|
|
|
127285
127301
|
}
|
|
127286
127302
|
`
|
|
127287
127303
|
), Z_e = {
|
|
127288
|
-
...
|
|
127304
|
+
...zh.defaultProps,
|
|
127289
127305
|
// Note: putting `image` in defaultProps causes Maplibre to fail to render
|
|
127290
127306
|
// labels in interleaved mode 🤷♂️
|
|
127291
127307
|
// image: { type: "image", value: null, async: true },
|
|
@@ -127298,7 +127314,7 @@ void main(void) {
|
|
|
127298
127314
|
specularColor: [0, 0, 0]
|
|
127299
127315
|
}
|
|
127300
127316
|
};
|
|
127301
|
-
class X_e extends
|
|
127317
|
+
class X_e extends zh {
|
|
127302
127318
|
static layerName = "mesh-texture-layer";
|
|
127303
127319
|
static defaultProps = Z_e;
|
|
127304
127320
|
_resolveRenderPipeline() {
|
|
@@ -127961,7 +127977,7 @@ function Exe(e, A) {
|
|
|
127961
127977
|
return 40075016686e-3 * Math.cos(e * Math.PI / 180) / 2 ** (A + 8);
|
|
127962
127978
|
}
|
|
127963
127979
|
function Qxe(e, A) {
|
|
127964
|
-
const [t, i] =
|
|
127980
|
+
const [t, i] = Vh(e.center);
|
|
127965
127981
|
return Exe(i, A);
|
|
127966
127982
|
}
|
|
127967
127983
|
function dxe({ topLeft: e, topRight: A, bottomLeft: t, bottomRight: i }) {
|
|
@@ -128330,10 +128346,10 @@ var Vy;
|
|
|
128330
128346
|
(function(e) {
|
|
128331
128347
|
e[e.None = 1] = "None", e[e.Horizontal = 2] = "Horizontal", e[e.FloatingPoint = 3] = "FloatingPoint";
|
|
128332
128348
|
})(Vy || (Vy = {}));
|
|
128333
|
-
var
|
|
128349
|
+
var Hh;
|
|
128334
128350
|
(function(e) {
|
|
128335
128351
|
e[e.Uint = 1] = "Uint", e[e.Int = 2] = "Int", e[e.Float = 3] = "Float", e[e.Void = 4] = "Void", e[e.ComplexInt = 5] = "ComplexInt", e[e.ComplexFloat = 6] = "ComplexFloat";
|
|
128336
|
-
})(
|
|
128352
|
+
})(Hh || (Hh = {}));
|
|
128337
128353
|
var nl;
|
|
128338
128354
|
(function(e) {
|
|
128339
128355
|
e[e.MinIsWhite = 0] = "MinIsWhite", e[e.MinIsBlack = 1] = "MinIsBlack", e[e.Rgb = 2] = "Rgb", e[e.Palette = 3] = "Palette", e[e.Mask = 4] = "Mask", e[e.Separated = 5] = "Separated", e[e.Ycbcr = 6] = "Ycbcr", e[e.Cielab = 8] = "Cielab", e[e.Icclab = 9] = "Icclab", e[e.Itulab = 10] = "Itulab", e[e.Cfa = 32803] = "Cfa", e[e.Logl = 32844] = "Logl", e[e.Logluv = 32845] = "Logluv";
|
|
@@ -129348,18 +129364,18 @@ function qxe(e, A, t, i, r, s, n) {
|
|
|
129348
129364
|
async function Wxe(e) {
|
|
129349
129365
|
return e;
|
|
129350
129366
|
}
|
|
129351
|
-
const
|
|
129352
|
-
|
|
129353
|
-
|
|
129354
|
-
|
|
129355
|
-
|
|
129356
|
-
|
|
129357
|
-
|
|
129358
|
-
|
|
129359
|
-
|
|
129360
|
-
|
|
129367
|
+
const Gl = /* @__PURE__ */ new Map();
|
|
129368
|
+
Gl.set(bi.None, () => Promise.resolve(Wxe));
|
|
129369
|
+
Gl.set(bi.Deflate, () => Promise.resolve(YSA));
|
|
129370
|
+
Gl.set(bi.DeflateOther, () => Promise.resolve(YSA));
|
|
129371
|
+
Gl.set(bi.Lzw, () => Promise.resolve().then(() => h6e).then((e) => e.decode));
|
|
129372
|
+
Gl.set(bi.Zstd, () => Promise.resolve().then(() => u6e).then((e) => e.decode));
|
|
129373
|
+
Gl.set(bi.Jpeg, () => Promise.resolve(sW));
|
|
129374
|
+
Gl.set(bi.Jpeg6, () => Promise.resolve(sW));
|
|
129375
|
+
Gl.set(bi.Webp, () => Promise.resolve(sW));
|
|
129376
|
+
Gl.set(bi.Lerc, () => Promise.resolve().then(() => d6e).then((e) => e.decode));
|
|
129361
129377
|
async function nW(e, A, t) {
|
|
129362
|
-
const i =
|
|
129378
|
+
const i = Gl.get(A);
|
|
129363
129379
|
if (!i)
|
|
129364
129380
|
throw new Error(`Unsupported compression: ${A}`);
|
|
129365
129381
|
const s = await (await i())(e, t);
|
|
@@ -129381,7 +129397,7 @@ function Vxe(e, A) {
|
|
|
129381
129397
|
function zxe(e, A) {
|
|
129382
129398
|
const { sampleFormat: t, bitsPerSample: i } = A;
|
|
129383
129399
|
switch (t) {
|
|
129384
|
-
case
|
|
129400
|
+
case Hh.Uint:
|
|
129385
129401
|
switch (i) {
|
|
129386
129402
|
case 1:
|
|
129387
129403
|
return Vxe(e, A.width * A.height * A.samplesPerPixel);
|
|
@@ -129393,7 +129409,7 @@ function zxe(e, A) {
|
|
|
129393
129409
|
return new Uint32Array(e);
|
|
129394
129410
|
}
|
|
129395
129411
|
break;
|
|
129396
|
-
case
|
|
129412
|
+
case Hh.Int:
|
|
129397
129413
|
switch (i) {
|
|
129398
129414
|
case 8:
|
|
129399
129415
|
return new Int8Array(e);
|
|
@@ -129403,7 +129419,7 @@ function zxe(e, A) {
|
|
|
129403
129419
|
return new Int32Array(e);
|
|
129404
129420
|
}
|
|
129405
129421
|
break;
|
|
129406
|
-
case
|
|
129422
|
+
case Hh.Float:
|
|
129407
129423
|
switch (i) {
|
|
129408
129424
|
case 32:
|
|
129409
129425
|
return new Float32Array(e);
|
|
@@ -130386,7 +130402,7 @@ async function $Ge(e, A = {}) {
|
|
|
130386
130402
|
predictor: S ?? Vy.None,
|
|
130387
130403
|
// Uint is the default sample format according to the spec
|
|
130388
130404
|
// https://web.archive.org/web/20240329145340/https://www.awaresystems.be/imaging/tiff/tifftags/sampleformat.html
|
|
130389
|
-
sampleFormat: _ ?? [
|
|
130405
|
+
sampleFormat: _ ?? [Hh.Uint],
|
|
130390
130406
|
samplesPerPixel: U
|
|
130391
130407
|
};
|
|
130392
130408
|
}
|
|
@@ -131211,7 +131227,7 @@ function woA(e, A) {
|
|
|
131211
131227
|
t = A[i], t !== void 0 && (e[i] = t);
|
|
131212
131228
|
return e;
|
|
131213
131229
|
}
|
|
131214
|
-
function
|
|
131230
|
+
function $h(e, A, t) {
|
|
131215
131231
|
var i = e * A;
|
|
131216
131232
|
return t / Math.sqrt(1 - i * i);
|
|
131217
131233
|
}
|
|
@@ -131233,7 +131249,7 @@ function d2(e, A) {
|
|
|
131233
131249
|
}
|
|
131234
131250
|
function mke() {
|
|
131235
131251
|
var e = this.b / this.a;
|
|
131236
|
-
this.es = 1 - e * e, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 =
|
|
131252
|
+
this.es = 1 - e * e, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = $h(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
131237
131253
|
}
|
|
131238
131254
|
function wke(e) {
|
|
131239
131255
|
var A = e.x, t = e.y;
|
|
@@ -133643,7 +133659,7 @@ function CW(e, A, t) {
|
|
|
133643
133659
|
return A *= t, Math.tan(0.5 * (Et + e)) * Math.pow((1 - A) / (1 + A), 0.5 * t);
|
|
133644
133660
|
}
|
|
133645
133661
|
function YLe() {
|
|
133646
|
-
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= _t && (this.k0 = 0.5 * (1 + MR(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= _t && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= _t && Math.abs(Math.cos(this.lat_ts)) > _t && (this.k0 = 0.5 * this.cons *
|
|
133662
|
+
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= _t && (this.k0 = 0.5 * (1 + MR(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= _t && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= _t && Math.abs(Math.cos(this.lat_ts)) > _t && (this.k0 = 0.5 * this.cons * $h(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / Dl(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = $h(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(CW(this.lat0, this.sinlat0, this.e)) - Et, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
133647
133663
|
}
|
|
133648
133664
|
function KLe(e) {
|
|
133649
133665
|
var A = e.x, t = e.y, i = Math.sin(t), r = Math.cos(t), s, n, o, a, g, l, C = Lt(A - this.long0, this.over);
|
|
@@ -133748,7 +133764,7 @@ function sUe() {
|
|
|
133748
133764
|
if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < _t)) {
|
|
133749
133765
|
var e = this.b / this.a;
|
|
133750
133766
|
this.e = Math.sqrt(1 - e * e);
|
|
133751
|
-
var A = Math.sin(this.lat1), t = Math.cos(this.lat1), i =
|
|
133767
|
+
var A = Math.sin(this.lat1), t = Math.cos(this.lat1), i = $h(this.e, A, t), r = Dl(this.e, this.lat1, A), s = Math.sin(this.lat2), n = Math.cos(this.lat2), o = $h(this.e, s, n), a = Dl(this.e, this.lat2, s), g = Math.abs(Math.abs(this.lat0) - Et) < _t ? 0 : Dl(this.e, this.lat0, Math.sin(this.lat0));
|
|
133752
133768
|
Math.abs(this.lat1 - this.lat2) > _t ? this.ns = Math.log(i / o) / Math.log(r / a) : this.ns = A, isNaN(this.ns) && (this.ns = A), this.f0 = i / (this.ns * Math.pow(r, this.ns)), this.rh = this.a * this.f0 * Math.pow(g, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
133753
133769
|
}
|
|
133754
133770
|
}
|
|
@@ -133880,7 +133896,7 @@ const dUe = {
|
|
|
133880
133896
|
inverse: EUe,
|
|
133881
133897
|
names: QUe
|
|
133882
133898
|
};
|
|
133883
|
-
function
|
|
133899
|
+
function Yh(e, A) {
|
|
133884
133900
|
var t;
|
|
133885
133901
|
return e > 1e-7 ? (t = e * A, (1 - e * e) * (A / (1 - t * t) - 0.5 / e * Math.log((1 - t) / (1 + t)))) : 2 * A;
|
|
133886
133902
|
}
|
|
@@ -133898,7 +133914,7 @@ function SUe() {
|
|
|
133898
133914
|
var e = Math.abs(this.lat0);
|
|
133899
133915
|
if (Math.abs(e - Et) < _t ? this.mode = this.lat0 < 0 ? NY : MY : Math.abs(e) < _t ? this.mode = vY : this.mode = pM, this.es > 0) {
|
|
133900
133916
|
var A;
|
|
133901
|
-
switch (this.qp =
|
|
133917
|
+
switch (this.qp = Yh(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = hbA(this.es), this.mode) {
|
|
133902
133918
|
case MY:
|
|
133903
133919
|
this.dd = 1;
|
|
133904
133920
|
break;
|
|
@@ -133909,7 +133925,7 @@ function SUe() {
|
|
|
133909
133925
|
this.rq = Math.sqrt(0.5 * this.qp), this.dd = 1 / this.rq, this.xmf = 1, this.ymf = 0.5 * this.qp;
|
|
133910
133926
|
break;
|
|
133911
133927
|
case pM:
|
|
133912
|
-
this.rq = Math.sqrt(0.5 * this.qp), A = Math.sin(this.lat0), this.sinb1 =
|
|
133928
|
+
this.rq = Math.sqrt(0.5 * this.qp), A = Math.sin(this.lat0), this.sinb1 = Yh(this.e, A) / this.qp, this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1), this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * A * A) * this.rq * this.cosb1), this.ymf = (this.xmf = this.rq) / this.dd, this.xmf *= this.dd;
|
|
133913
133929
|
break;
|
|
133914
133930
|
}
|
|
133915
133931
|
} else
|
|
@@ -133928,7 +133944,7 @@ function bUe(e) {
|
|
|
133928
133944
|
t = $r - Q * 0.5, t = 2 * (this.mode === this.S_POLE ? Math.cos(t) : Math.sin(t)), A = t * Math.sin(C), t *= i;
|
|
133929
133945
|
}
|
|
133930
133946
|
} else {
|
|
133931
|
-
switch (o = 0, a = 0, g = 0, i = Math.cos(C), r = Math.sin(C), s = Math.sin(Q), n =
|
|
133947
|
+
switch (o = 0, a = 0, g = 0, i = Math.cos(C), r = Math.sin(C), s = Math.sin(Q), n = Yh(this.e, s), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (o = n / this.qp, a = Math.sqrt(1 - o * o)), this.mode) {
|
|
133932
133948
|
case this.OBLIQ:
|
|
133933
133949
|
g = 1 + this.sinb1 * o + this.cosb1 * a * i;
|
|
133934
133950
|
break;
|
|
@@ -134008,12 +134024,12 @@ function bE(e) {
|
|
|
134008
134024
|
return Math.abs(e) > 1 && (e = e > 1 ? 1 : -1), Math.asin(e);
|
|
134009
134025
|
}
|
|
134010
134026
|
function MUe() {
|
|
134011
|
-
Math.abs(this.lat1 + this.lat2) < _t || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 =
|
|
134027
|
+
Math.abs(this.lat1 + this.lat2) < _t || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = $h(this.e3, this.sin_po, this.cos_po), this.qs1 = Yh(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = $h(this.e3, this.sin_po, this.cos_po), this.qs2 = Yh(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = Yh(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > _t ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
|
|
134012
134028
|
}
|
|
134013
134029
|
function vUe(e) {
|
|
134014
134030
|
var A = e.x, t = e.y;
|
|
134015
134031
|
this.sin_phi = Math.sin(t), this.cos_phi = Math.cos(t);
|
|
134016
|
-
var i =
|
|
134032
|
+
var i = Yh(this.e3, this.sin_phi), r = this.a * Math.sqrt(this.c - this.ns0 * i) / this.ns0, s = this.ns0 * Lt(A - this.long0, this.over), n = r * Math.sin(s) + this.x0, o = this.rh - r * Math.cos(s) + this.y0;
|
|
134017
134033
|
return e.x = n, e.y = o, e;
|
|
134018
134034
|
}
|
|
134019
134035
|
function _Ue(e) {
|
|
@@ -134065,14 +134081,14 @@ function HUe(e, A) {
|
|
|
134065
134081
|
return NaN;
|
|
134066
134082
|
}
|
|
134067
134083
|
function YUe() {
|
|
134068
|
-
this.sphere || (this.k0 =
|
|
134084
|
+
this.sphere || (this.k0 = $h(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
134069
134085
|
}
|
|
134070
134086
|
function KUe(e) {
|
|
134071
134087
|
var A = e.x, t = e.y, i, r, s = Lt(A - this.long0, this.over);
|
|
134072
134088
|
if (this.sphere)
|
|
134073
134089
|
i = this.x0 + this.a * s * Math.cos(this.lat_ts), r = this.y0 + this.a * Math.sin(t) / Math.cos(this.lat_ts);
|
|
134074
134090
|
else {
|
|
134075
|
-
var n =
|
|
134091
|
+
var n = Yh(this.e, Math.sin(t));
|
|
134076
134092
|
i = this.x0 + this.a * this.k0 * s, r = this.y0 + this.a * n * 0.5 / this.k0;
|
|
134077
134093
|
}
|
|
134078
134094
|
return e.x = i, e.y = r, e;
|
|
@@ -134289,7 +134305,7 @@ const b3e = {
|
|
|
134289
134305
|
names: S3e
|
|
134290
134306
|
};
|
|
134291
134307
|
function R3e() {
|
|
134292
|
-
Math.abs(this.lat1 + this.lat2) < _t || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = vR(this.es), this.e1 = _R(this.es), this.e2 = xR(this.es), this.e3 = GR(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 =
|
|
134308
|
+
Math.abs(this.lat1 + this.lat2) < _t || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = vR(this.es), this.e1 = _R(this.es), this.e2 = xR(this.es), this.e3 = GR(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = $h(this.e, this.sin_phi, this.cos_phi), this.ml1 = hg(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < _t ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = $h(this.e, this.sin_phi, this.cos_phi), this.ml2 = hg(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = hg(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
134293
134309
|
}
|
|
134294
134310
|
function F3e(e) {
|
|
134295
134311
|
var A = e.x, t = e.y, i;
|
|
@@ -134727,11 +134743,11 @@ const mTe = {
|
|
|
134727
134743
|
};
|
|
134728
134744
|
var nb = 1.340264, ob = -0.081106, ab = 893e-6, gb = 3796e-6, j_ = Math.sqrt(3) / 2;
|
|
134729
134745
|
function wTe() {
|
|
134730
|
-
this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.es !== 0 && (this.apa = hbA(this.es), this.qp =
|
|
134746
|
+
this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.es !== 0 && (this.apa = hbA(this.es), this.qp = Yh(this.e, 1), this.rqda = Math.sqrt(0.5 * this.qp));
|
|
134731
134747
|
}
|
|
134732
134748
|
function DTe(e) {
|
|
134733
134749
|
var A = Lt(e.x - this.long0, this.over), t = e.y, i = Math.sin(t);
|
|
134734
|
-
this.es !== 0 && (i =
|
|
134750
|
+
this.es !== 0 && (i = Yh(this.e, i) / this.qp);
|
|
134735
134751
|
var r = Math.asin(j_ * i), s = r * r, n = s * s * s;
|
|
134736
134752
|
return e.x = A * Math.cos(r) / (j_ * (nb + 3 * ob * s + n * (7 * ab + 9 * gb * s))), e.y = r * (nb + ob * s + n * (ab + gb * s)), this.es !== 0 && (e.x *= this.rqda, e.y *= this.rqda), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
|
|
134737
134753
|
}
|
|
@@ -135461,11 +135477,11 @@ function CPe(e) {
|
|
|
135461
135477
|
if (e[t] !== A)
|
|
135462
135478
|
throw new Error(`Unsupported varying SampleFormat ${e}. All samples must have the same format.`);
|
|
135463
135479
|
switch (A) {
|
|
135464
|
-
case
|
|
135480
|
+
case Hh.Uint:
|
|
135465
135481
|
return "unorm";
|
|
135466
|
-
case
|
|
135482
|
+
case Hh.Int:
|
|
135467
135483
|
return "sint";
|
|
135468
|
-
case
|
|
135484
|
+
case Hh.Float:
|
|
135469
135485
|
return "float";
|
|
135470
135486
|
default:
|
|
135471
135487
|
throw new Error(`Unsupported SampleFormat ${e}`);
|
|
@@ -135524,7 +135540,7 @@ function EPe(e, A) {
|
|
|
135524
135540
|
throw new Error("SampleFormat tag is required to infer render pipeline");
|
|
135525
135541
|
switch (t[0]) {
|
|
135526
135542
|
// Unsigned integers
|
|
135527
|
-
case
|
|
135543
|
+
case Hh.Uint:
|
|
135528
135544
|
return QPe(e, A);
|
|
135529
135545
|
}
|
|
135530
135546
|
throw new Error(`Inferring render pipeline for non-unsigned integers not yet supported. Found SampleFormat: ${t}`);
|
|
@@ -139834,7 +139850,7 @@ const Gn = /* @__PURE__ */ ct("ZodType", (e, A) => (Qn.init(e, A), Object.assign
|
|
|
139834
139850
|
}), JYe = /* @__PURE__ */ ct("ZodString", (e, A) => {
|
|
139835
139851
|
SW.init(e, A), g2A.init(e, A), e.email = (t) => e.check(/* @__PURE__ */ aHe(HYe, t)), e.url = (t) => e.check(/* @__PURE__ */ hHe(YYe, t)), e.jwt = (t) => e.check(/* @__PURE__ */ RHe(r4e, t)), e.emoji = (t) => e.check(/* @__PURE__ */ BHe(KYe, t)), e.guid = (t) => e.check(/* @__PURE__ */ haA(QaA, t)), e.uuid = (t) => e.check(/* @__PURE__ */ gHe(cN, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ IHe(cN, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ cHe(cN, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ lHe(cN, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ CHe(OYe, t)), e.guid = (t) => e.check(/* @__PURE__ */ haA(QaA, t)), e.cuid = (t) => e.check(/* @__PURE__ */ uHe(qYe, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ EHe(WYe, t)), e.ulid = (t) => e.check(/* @__PURE__ */ QHe(VYe, t)), e.base64 = (t) => e.check(/* @__PURE__ */ DHe(e4e, t)), e.base64url = (t) => e.check(/* @__PURE__ */ SHe(t4e, t)), e.xid = (t) => e.check(/* @__PURE__ */ dHe(zYe, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ fHe(jYe, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ pHe(ZYe, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ yHe(XYe, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ mHe($Ye, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ wHe(A4e, t)), e.e164 = (t) => e.check(/* @__PURE__ */ bHe(i4e, t)), e.datetime = (t) => e.check(pYe(t)), e.date = (t) => e.check(mYe(t)), e.time = (t) => e.check(DYe(t)), e.duration = (t) => e.check(bYe(t));
|
|
139836
139852
|
});
|
|
139837
|
-
function
|
|
139853
|
+
function Kh(e) {
|
|
139838
139854
|
return /* @__PURE__ */ oHe(JYe, e);
|
|
139839
139855
|
}
|
|
139840
139856
|
const dn = /* @__PURE__ */ ct("ZodStringFormat", (e, A) => {
|
|
@@ -140063,7 +140079,7 @@ const daA = /* @__PURE__ */ ct("ZodRecord", (e, A) => {
|
|
|
140063
140079
|
function C4e(e, A, t) {
|
|
140064
140080
|
return !A || !A._zod ? new daA({
|
|
140065
140081
|
type: "record",
|
|
140066
|
-
keyType:
|
|
140082
|
+
keyType: Kh(),
|
|
140067
140083
|
valueType: e,
|
|
140068
140084
|
...hi(A)
|
|
140069
140085
|
}) : new daA({
|
|
@@ -140237,9 +140253,9 @@ function _4e(e, A) {
|
|
|
140237
140253
|
const x4e = {
|
|
140238
140254
|
custom: "custom"
|
|
140239
140255
|
}, G4e = bW([
|
|
140240
|
-
sE({ "proj:code":
|
|
140241
|
-
sE({ "proj:wkt2":
|
|
140242
|
-
sE({ "proj:projjson": C4e(
|
|
140256
|
+
sE({ "proj:code": Kh().regex(/^[A-Z]+:[0-9]+$/) }),
|
|
140257
|
+
sE({ "proj:wkt2": Kh() }),
|
|
140258
|
+
sE({ "proj:projjson": C4e(Kh(), TY()) })
|
|
140243
140259
|
]), B2A = ix([
|
|
140244
140260
|
Vo(),
|
|
140245
140261
|
Vo(),
|
|
@@ -140248,23 +140264,23 @@ const x4e = {
|
|
|
140248
140264
|
Vo(),
|
|
140249
140265
|
Vo()
|
|
140250
140266
|
]), C2A = ix([tx().min(1), tx().min(1)]), k4e = sE({
|
|
140251
|
-
asset:
|
|
140252
|
-
derived_from:
|
|
140267
|
+
asset: Kh(),
|
|
140268
|
+
derived_from: Kh().optional(),
|
|
140253
140269
|
transform: sE({
|
|
140254
140270
|
scale: m2(Vo()).optional(),
|
|
140255
140271
|
translation: m2(Vo()).optional()
|
|
140256
140272
|
}).optional(),
|
|
140257
|
-
resampling_method:
|
|
140273
|
+
resampling_method: Kh().optional(),
|
|
140258
140274
|
// spatial: overrides per level — required here when not at group level
|
|
140259
140275
|
"spatial:transform": B2A.optional(),
|
|
140260
140276
|
"spatial:shape": C2A.optional()
|
|
140261
140277
|
}).passthrough(), L4e = sE({
|
|
140262
140278
|
multiscales: sE({
|
|
140263
140279
|
layout: m2(k4e).min(1),
|
|
140264
|
-
resampling_method:
|
|
140280
|
+
resampling_method: Kh().optional()
|
|
140265
140281
|
})
|
|
140266
140282
|
}), U4e = sE({
|
|
140267
|
-
"spatial:dimensions": m2(
|
|
140283
|
+
"spatial:dimensions": m2(Kh()).min(2).max(3),
|
|
140268
140284
|
"spatial:transform": B2A.optional(),
|
|
140269
140285
|
"spatial:shape": C2A.optional(),
|
|
140270
140286
|
"spatial:bbox": bW([
|
|
@@ -140278,7 +140294,7 @@ const x4e = {
|
|
|
140278
140294
|
Vo()
|
|
140279
140295
|
])
|
|
140280
140296
|
]).optional(),
|
|
140281
|
-
"spatial:transform_type":
|
|
140297
|
+
"spatial:transform_type": Kh().optional(),
|
|
140282
140298
|
"spatial:registration": c2A(["node", "pixel"]).optional(),
|
|
140283
140299
|
multiscales: L4e.shape.multiscales.optional()
|
|
140284
140300
|
}), T4e = U4e.superRefine((e, A) => {
|
|
@@ -141814,12 +141830,12 @@ async function bKe(e, A = {}) {
|
|
|
141814
141830
|
found: r
|
|
141815
141831
|
});
|
|
141816
141832
|
}
|
|
141817
|
-
async function
|
|
141818
|
-
let t = "store" in e ? e.store : e, i = TR.versionMax(t), r = i === "v2" ?
|
|
141833
|
+
async function Lh(e, A = {}) {
|
|
141834
|
+
let t = "store" in e ? e.store : e, i = TR.versionMax(t), r = i === "v2" ? Lh.v2 : Lh.v3, s = i === "v2" ? Lh.v3 : Lh.v2;
|
|
141819
141835
|
return r(e, A).catch((n) => (MW(n, HC, En), s(e, A)));
|
|
141820
141836
|
}
|
|
141821
|
-
|
|
141822
|
-
|
|
141837
|
+
Lh.v2 = DKe;
|
|
141838
|
+
Lh.v3 = bKe;
|
|
141823
141839
|
function RKe(e) {
|
|
141824
141840
|
return typeof e == "object" && e !== null && "zarr_consolidated_format" in e && e.zarr_consolidated_format === 1 && "metadata" in e && typeof e.metadata == "object" && e.metadata !== null;
|
|
141825
141841
|
}
|
|
@@ -142268,11 +142284,11 @@ class tOe extends O_ {
|
|
|
142268
142284
|
const { node: A, variable: t, metadata: i } = this.props;
|
|
142269
142285
|
let r = null, s;
|
|
142270
142286
|
"shape" in A && (r = A), s = A, window.root = s;
|
|
142271
|
-
const n = t ? await
|
|
142287
|
+
const n = t ? await Lh(s.resolve(t), { kind: "group" }) : s;
|
|
142272
142288
|
window.group = n;
|
|
142273
142289
|
const o = i ?? n.attrs, a = P4e(o);
|
|
142274
142290
|
window.meta = a;
|
|
142275
|
-
const g = r && a.levels.length === 1 ? [r] : await Promise.all(a.levels.map((Z) =>
|
|
142291
|
+
const g = r && a.levels.length === 1 ? [r] : await Promise.all(a.levels.map((Z) => Lh(n.resolve(Z.path), { kind: "array" })));
|
|
142276
142292
|
if (!a.axes || a.axes.length === 0)
|
|
142277
142293
|
throw new Error("ZarrLayer requires named axes in GeoZarr metadata (spatial:dimensions). Arrays without named dims are not supported.");
|
|
142278
142294
|
const l = [
|
|
@@ -142426,11 +142442,11 @@ async function nOe(e) {
|
|
|
142426
142442
|
} catch {
|
|
142427
142443
|
i = t;
|
|
142428
142444
|
}
|
|
142429
|
-
const r = await
|
|
142445
|
+
const r = await Lh.v3(i, { kind: "group" });
|
|
142430
142446
|
if (e.bounds) {
|
|
142431
142447
|
if (!e.variable) throw new Error("ZarrLayer with manual bounds needs a variable path.");
|
|
142432
142448
|
if (!e.crs || !e.spatialDims) throw new Error('ZarrLayer bounds requires crs and spatial-dims (e.g. crs="EPSG:4326" spatial-dims="latitude longitude").');
|
|
142433
|
-
const s = await
|
|
142449
|
+
const s = await Lh.v3(r.resolve(e.variable), { kind: "array" }), n = e.spatialDims.trim().split(/[\s,]+/), o = s.shape, a = [o[o.length - 2], o[o.length - 1]];
|
|
142434
142450
|
return { node: s, metadata: D2A(e.bounds, e.crs, [n[0], n[1]], a) };
|
|
142435
142451
|
}
|
|
142436
142452
|
return { node: r, variable: e.variable };
|
|
@@ -143685,9 +143701,9 @@ function _Oe() {
|
|
|
143685
143701
|
return parseInt(B.padEnd(2, B), 16) / 255;
|
|
143686
143702
|
}
|
|
143687
143703
|
function Zf(B, I) {
|
|
143688
|
-
return
|
|
143704
|
+
return Ll(I ? B / 100 : B, 0, 1);
|
|
143689
143705
|
}
|
|
143690
|
-
function
|
|
143706
|
+
function Ll(B, I, h) {
|
|
143691
143707
|
return Math.min(Math.max(I, B), h);
|
|
143692
143708
|
}
|
|
143693
143709
|
function vo(B) {
|
|
@@ -143697,7 +143713,7 @@ function _Oe() {
|
|
|
143697
143713
|
function xI(B, I, h) {
|
|
143698
143714
|
return B + h * (I - B);
|
|
143699
143715
|
}
|
|
143700
|
-
function
|
|
143716
|
+
function Ul(B, I, h) {
|
|
143701
143717
|
return B.map(((d, y) => xI(d, I[y], h)));
|
|
143702
143718
|
}
|
|
143703
143719
|
class Ot {
|
|
@@ -143726,7 +143742,7 @@ function _Oe() {
|
|
|
143726
143742
|
if (bA === " " || bA === " /" || bA === ",," || bA === ",,,") {
|
|
143727
143743
|
const LA = [T, iA, BA].join(""), OA = LA === "%%%" ? 100 : LA === "" ? 255 : 0;
|
|
143728
143744
|
if (OA) {
|
|
143729
|
-
const jA = [
|
|
143745
|
+
const jA = [Ll(+P / OA, 0, 1), Ll(+H / OA, 0, 1), Ll(+cA / OA, 0, 1), yA ? Zf(+yA, GA) : 1];
|
|
143730
143746
|
if (vo(jA)) return jA;
|
|
143731
143747
|
}
|
|
143732
143748
|
}
|
|
@@ -143737,7 +143753,7 @@ function _Oe() {
|
|
|
143737
143753
|
if (b) {
|
|
143738
143754
|
const [v, G, P, T, q, H, iA, j, cA] = b, BA = [P || " ", q || " ", iA].join("");
|
|
143739
143755
|
if (BA === " " || BA === " /" || BA === ",," || BA === ",,,") {
|
|
143740
|
-
const pA = [+G,
|
|
143756
|
+
const pA = [+G, Ll(+T, 0, 100), Ll(+H, 0, 100), j ? Zf(+j, cA) : 1];
|
|
143741
143757
|
if (vo(pA)) return (function([yA, GA, bA, LA]) {
|
|
143742
143758
|
function OA(jA) {
|
|
143743
143759
|
const Ee = (jA + yA / 30) % 12, de = GA * Math.min(bA, 1 - bA);
|
|
@@ -143773,7 +143789,7 @@ function _Oe() {
|
|
|
143773
143789
|
static interpolate(I, h, d, y = "rgb") {
|
|
143774
143790
|
switch (y) {
|
|
143775
143791
|
case "rgb": {
|
|
143776
|
-
const [b, v, G, P] =
|
|
143792
|
+
const [b, v, G, P] = Ul(I.rgb, h.rgb, d);
|
|
143777
143793
|
return new Ot(b, v, G, P, !1);
|
|
143778
143794
|
}
|
|
143779
143795
|
case "hcl": {
|
|
@@ -143790,7 +143806,7 @@ function _Oe() {
|
|
|
143790
143806
|
return new Ot(BA, pA, yA, GA, !1);
|
|
143791
143807
|
}
|
|
143792
143808
|
case "lab": {
|
|
143793
|
-
const [b, v, G, P] = AQ(
|
|
143809
|
+
const [b, v, G, P] = AQ(Ul(I.lab, h.lab, d));
|
|
143794
143810
|
return new Ot(b, v, G, P, !1);
|
|
143795
143811
|
}
|
|
143796
143812
|
}
|
|
@@ -143857,7 +143873,7 @@ function _Oe() {
|
|
|
143857
143873
|
return JSON.stringify(this.values);
|
|
143858
143874
|
}
|
|
143859
143875
|
static interpolate(I, h, d) {
|
|
143860
|
-
return new jn(
|
|
143876
|
+
return new jn(Ul(I.values, h.values, d));
|
|
143861
143877
|
}
|
|
143862
143878
|
}
|
|
143863
143879
|
class ts {
|
|
@@ -143876,7 +143892,7 @@ function _Oe() {
|
|
|
143876
143892
|
return JSON.stringify(this.values);
|
|
143877
143893
|
}
|
|
143878
143894
|
static interpolate(I, h, d) {
|
|
143879
|
-
return new ts(
|
|
143895
|
+
return new ts(Ul(I.values, h.values, d));
|
|
143880
143896
|
}
|
|
143881
143897
|
}
|
|
143882
143898
|
class gi {
|
|
@@ -143970,7 +143986,7 @@ function _Oe() {
|
|
|
143970
143986
|
return I instanceof ho ? I : Array.isArray(I) && I.length === 3 && typeof I[0] == "string" && typeof I[1] == "string" && typeof I[2] == "number" ? new ho(I[0], I[1], I[2]) : typeof I == "object" && typeof I.from == "string" && typeof I.to == "string" && typeof I.transition == "number" ? new ho(I.from, I.to, I.transition) : typeof I == "string" ? new ho(I, I, 1) : void 0;
|
|
143971
143987
|
}
|
|
143972
143988
|
}
|
|
143973
|
-
function
|
|
143989
|
+
function Tl(B, I, h, d) {
|
|
143974
143990
|
return typeof B == "number" && B >= 0 && B <= 255 && typeof I == "number" && I >= 0 && I <= 255 && typeof h == "number" && h >= 0 && h <= 255 ? d === void 0 || typeof d == "number" && d >= 0 && d <= 1 ? null : `Invalid rgba value [${[B, I, h, d].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof d == "number" ? [B, I, h, d] : [B, I, h]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
|
|
143975
143991
|
}
|
|
143976
143992
|
function iI(B) {
|
|
@@ -144117,7 +144133,7 @@ function _Oe() {
|
|
|
144117
144133
|
if (typeof h == "string") {
|
|
144118
144134
|
const b = I.parseColor(h);
|
|
144119
144135
|
if (b) return b;
|
|
144120
|
-
} else if (Array.isArray(h) && (d = h.length < 3 || h.length > 4 ? `Invalid rgba value ${JSON.stringify(h)}: expected an array containing either three or four numeric values.` :
|
|
144136
|
+
} else if (Array.isArray(h) && (d = h.length < 3 || h.length > 4 ? `Invalid rgba value ${JSON.stringify(h)}: expected an array containing either three or four numeric values.` : Tl(h[0], h[1], h[2], h[3]), !d)) return new Ot(h[0] / 255, h[1] / 255, h[2] / 255, h[3]);
|
|
144121
144137
|
}
|
|
144122
144138
|
throw new Nr(d || `Could not parse color from value '${typeof h == "string" ? h : JSON.stringify(h)}'`);
|
|
144123
144139
|
}
|
|
@@ -144290,14 +144306,14 @@ function _Oe() {
|
|
|
144290
144306
|
return this.result.outputDefined();
|
|
144291
144307
|
}
|
|
144292
144308
|
}
|
|
144293
|
-
class
|
|
144309
|
+
class Pl {
|
|
144294
144310
|
constructor(I, h) {
|
|
144295
144311
|
this.type = h.type, this.name = I, this.boundExpression = h;
|
|
144296
144312
|
}
|
|
144297
144313
|
static parse(I, h) {
|
|
144298
144314
|
if (I.length !== 2 || typeof I[1] != "string") return h.error("'var' expression requires exactly one string literal argument.");
|
|
144299
144315
|
const d = I[1];
|
|
144300
|
-
return h.scope.has(d) ? new
|
|
144316
|
+
return h.scope.has(d) ? new Pl(d, h.scope.get(d)) : h.error(`Unknown variable "${d}". Make sure "${d}" has been bound in an enclosing "let" expression before using it.`, 1);
|
|
144301
144317
|
}
|
|
144302
144318
|
evaluate(I) {
|
|
144303
144319
|
return this.boundExpression.evaluate(I);
|
|
@@ -144354,7 +144370,7 @@ function _Oe() {
|
|
|
144354
144370
|
return !0;
|
|
144355
144371
|
}
|
|
144356
144372
|
}
|
|
144357
|
-
class
|
|
144373
|
+
class Jl {
|
|
144358
144374
|
constructor(I, h, d) {
|
|
144359
144375
|
this.type = YA, this.needle = I, this.haystack = h, this.fromIndex = d;
|
|
144360
144376
|
}
|
|
@@ -144365,9 +144381,9 @@ function _Oe() {
|
|
|
144365
144381
|
if (!tI(d.type, [Be, ge, YA, qA, Ye])) return h.error(`Expected first argument to be of type boolean, string, number or null, but found ${Nt(d.type)} instead`);
|
|
144366
144382
|
if (I.length === 4) {
|
|
144367
144383
|
const b = h.parse(I[3], 3, YA);
|
|
144368
|
-
return b ? new
|
|
144384
|
+
return b ? new Jl(d, y, b) : null;
|
|
144369
144385
|
}
|
|
144370
|
-
return new
|
|
144386
|
+
return new Jl(d, y);
|
|
144371
144387
|
}
|
|
144372
144388
|
evaluate(I) {
|
|
144373
144389
|
const h = this.needle.evaluate(I), d = this.haystack.evaluate(I);
|
|
@@ -144467,7 +144483,7 @@ function _Oe() {
|
|
|
144467
144483
|
return this.branches.every((([I, h]) => h.outputDefined())) && this.otherwise.outputDefined();
|
|
144468
144484
|
}
|
|
144469
144485
|
}
|
|
144470
|
-
class
|
|
144486
|
+
class Hl {
|
|
144471
144487
|
constructor(I, h, d, y) {
|
|
144472
144488
|
this.type = I, this.input = h, this.beginIndex = d, this.endIndex = y;
|
|
144473
144489
|
}
|
|
@@ -144478,9 +144494,9 @@ function _Oe() {
|
|
|
144478
144494
|
if (!tI(d.type, [NA(Ye), ge, Ye])) return h.error(`Expected first argument to be of type array or string, but found ${Nt(d.type)} instead`);
|
|
144479
144495
|
if (I.length === 4) {
|
|
144480
144496
|
const b = h.parse(I[3], 3, YA);
|
|
144481
|
-
return b ? new
|
|
144497
|
+
return b ? new Hl(d.type, d, y, b) : null;
|
|
144482
144498
|
}
|
|
144483
|
-
return new
|
|
144499
|
+
return new Hl(d.type, d, y);
|
|
144484
144500
|
}
|
|
144485
144501
|
evaluate(I) {
|
|
144486
144502
|
const h = this.input.evaluate(I), d = this.beginIndex.evaluate(I);
|
|
@@ -144550,7 +144566,7 @@ function _Oe() {
|
|
|
144550
144566
|
function WC(B) {
|
|
144551
144567
|
return B && B.__esModule && Object.prototype.hasOwnProperty.call(B, "default") ? B.default : B;
|
|
144552
144568
|
}
|
|
144553
|
-
var VC, A0,
|
|
144569
|
+
var VC, A0, Yl = (function() {
|
|
144554
144570
|
if (A0) return VC;
|
|
144555
144571
|
function B(I, h, d, y) {
|
|
144556
144572
|
this.cx = 3 * I, this.bx = 3 * (d - I) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * h, this.by = 3 * (y - h) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = I, this.p1y = h, this.p2x = d, this.p2y = y;
|
|
@@ -144577,7 +144593,7 @@ function _Oe() {
|
|
|
144577
144593
|
}, solve: function(I, h) {
|
|
144578
144594
|
return this.sampleCurveY(this.solveCurveX(I, h));
|
|
144579
144595
|
} }, VC;
|
|
144580
|
-
})(), zC = WC(
|
|
144596
|
+
})(), zC = WC(Yl);
|
|
144581
144597
|
class Rs {
|
|
144582
144598
|
constructor(I, h, d, y, b) {
|
|
144583
144599
|
this.type = I, this.operator = h, this.interpolation = d, this.input = y, this.labels = [], this.outputs = [];
|
|
@@ -144649,7 +144665,7 @@ function _Oe() {
|
|
|
144649
144665
|
case "variableAnchorOffsetCollection":
|
|
144650
144666
|
return lo.interpolate(P, T, G);
|
|
144651
144667
|
case "array":
|
|
144652
|
-
return
|
|
144668
|
+
return Ul(P, T, G);
|
|
144653
144669
|
case "projectionDefinition":
|
|
144654
144670
|
return ho.interpolate(P, T, G);
|
|
144655
144671
|
}
|
|
@@ -144681,7 +144697,7 @@ function _Oe() {
|
|
|
144681
144697
|
const y = d - h, b = B - h;
|
|
144682
144698
|
return y === 0 ? 0 : I === 1 ? b / y : (Math.pow(I, b) - 1) / (Math.pow(I, y) - 1);
|
|
144683
144699
|
}
|
|
144684
|
-
const ia = { color: Ot.interpolate, number: xI, padding: jn.interpolate, numberArray: ts.interpolate, colorArray: gi.interpolate, variableAnchorOffsetCollection: lo.interpolate, array:
|
|
144700
|
+
const ia = { color: Ot.interpolate, number: xI, padding: jn.interpolate, numberArray: ts.interpolate, colorArray: gi.interpolate, variableAnchorOffsetCollection: lo.interpolate, array: Ul };
|
|
144685
144701
|
class Mc {
|
|
144686
144702
|
constructor(I, h) {
|
|
144687
144703
|
this.type = I, this.args = h;
|
|
@@ -144713,7 +144729,7 @@ function _Oe() {
|
|
|
144713
144729
|
return this.args.every(((I) => I.outputDefined()));
|
|
144714
144730
|
}
|
|
144715
144731
|
}
|
|
144716
|
-
function
|
|
144732
|
+
function Kl(B, I) {
|
|
144717
144733
|
return B === "==" || B === "!=" ? I.kind === "boolean" || I.kind === "string" || I.kind === "number" || I.kind === "null" || I.kind === "value" : I.kind === "string" || I.kind === "number" || I.kind === "value";
|
|
144718
144734
|
}
|
|
144719
144735
|
function Us(B, I, h, d) {
|
|
@@ -144730,10 +144746,10 @@ function _Oe() {
|
|
|
144730
144746
|
const G = b[0];
|
|
144731
144747
|
let P = v.parse(b[1], 1, Ye);
|
|
144732
144748
|
if (!P) return null;
|
|
144733
|
-
if (!
|
|
144749
|
+
if (!Kl(G, P.type)) return v.concat(1).error(`"${G}" comparisons are not supported for type '${Nt(P.type)}'.`);
|
|
144734
144750
|
let T = v.parse(b[2], 2, Ye);
|
|
144735
144751
|
if (!T) return null;
|
|
144736
|
-
if (!
|
|
144752
|
+
if (!Kl(G, T.type)) return v.concat(2).error(`"${G}" comparisons are not supported for type '${Nt(T.type)}'.`);
|
|
144737
144753
|
if (P.type.kind !== T.type.kind && P.type.kind !== "value" && T.type.kind !== "value") return v.error(`Cannot compare types '${Nt(P.type)}' and '${Nt(T.type)}'.`);
|
|
144738
144754
|
d && (P.type.kind === "value" && T.type.kind !== "value" ? P = new Bo(T.type, [P]) : P.type.kind !== "value" && T.type.kind === "value" && (T = new Bo(P.type, [T])));
|
|
144739
144755
|
let q = null;
|
|
@@ -144773,11 +144789,11 @@ function _Oe() {
|
|
|
144773
144789
|
return I < h;
|
|
144774
144790
|
}), (function(B, I, h, d) {
|
|
144775
144791
|
return d.compare(I, h) < 0;
|
|
144776
|
-
})),
|
|
144792
|
+
})), Ol = kI(">", (function(B, I, h) {
|
|
144777
144793
|
return I > h;
|
|
144778
144794
|
}), (function(B, I, h, d) {
|
|
144779
144795
|
return d.compare(I, h) > 0;
|
|
144780
|
-
})),
|
|
144796
|
+
})), ql = kI("<=", (function(B, I, h) {
|
|
144781
144797
|
return I <= h;
|
|
144782
144798
|
}), (function(B, I, h, d) {
|
|
144783
144799
|
return d.compare(I, h) <= 0;
|
|
@@ -145146,14 +145162,14 @@ function _Oe() {
|
|
|
145146
145162
|
}
|
|
145147
145163
|
const b = B[I];
|
|
145148
145164
|
let v = h, G = d;
|
|
145149
|
-
for (
|
|
145150
|
-
for (
|
|
145165
|
+
for (Wl(B, h, I), y(B[d], b) > 0 && Wl(B, h, d); v < G; ) {
|
|
145166
|
+
for (Wl(B, v, G), v++, G--; y(B[v], b) < 0; ) v++;
|
|
145151
145167
|
for (; y(B[G], b) > 0; ) G--;
|
|
145152
145168
|
}
|
|
145153
|
-
y(B[h], b) === 0 ?
|
|
145169
|
+
y(B[h], b) === 0 ? Wl(B, h, G) : (G++, Wl(B, G, d)), G <= I && (h = G + 1), I <= G && (d = G - 1);
|
|
145154
145170
|
}
|
|
145155
145171
|
}
|
|
145156
|
-
function
|
|
145172
|
+
function Wl(B, I, h) {
|
|
145157
145173
|
const d = B[I];
|
|
145158
145174
|
B[I] = B[h], B[h] = d;
|
|
145159
145175
|
}
|
|
@@ -145179,10 +145195,10 @@ function _Oe() {
|
|
|
145179
145195
|
for (let h, d, y = 0, b = B.length, v = b - 1; y < b; v = y++) h = B[y], d = B[v], I += (d.x - h.x) * (h.y + d.y);
|
|
145180
145196
|
return I;
|
|
145181
145197
|
}
|
|
145182
|
-
const kn = 1 / 298.257223563, i0 = kn * (2 - kn),
|
|
145198
|
+
const kn = 1 / 298.257223563, i0 = kn * (2 - kn), Vl = Math.PI / 180;
|
|
145183
145199
|
class cQ {
|
|
145184
145200
|
constructor(I) {
|
|
145185
|
-
const h = 6378.137 *
|
|
145201
|
+
const h = 6378.137 * Vl * 1e3, d = Math.cos(I * Vl), y = 1 / (1 - i0 * (1 - d * d)), b = Math.sqrt(y);
|
|
145186
145202
|
this.kx = h * b * d, this.ky = h * b * y * (1 - i0);
|
|
145187
145203
|
}
|
|
145188
145204
|
distance(I, h) {
|
|
@@ -145208,7 +145224,7 @@ function _Oe() {
|
|
|
145208
145224
|
function lQ(B, I) {
|
|
145209
145225
|
return I[0] - B[0];
|
|
145210
145226
|
}
|
|
145211
|
-
function
|
|
145227
|
+
function zl(B) {
|
|
145212
145228
|
return B[1] - B[0] + 1;
|
|
145213
145229
|
}
|
|
145214
145230
|
function mg(B, I) {
|
|
@@ -145216,7 +145232,7 @@ function _Oe() {
|
|
|
145216
145232
|
}
|
|
145217
145233
|
function hQ(B, I) {
|
|
145218
145234
|
if (B[0] > B[1]) return [null, null];
|
|
145219
|
-
const h =
|
|
145235
|
+
const h = zl(B);
|
|
145220
145236
|
if (I) {
|
|
145221
145237
|
if (h === 2) return [B, null];
|
|
145222
145238
|
const y = Math.floor(h / 2);
|
|
@@ -145226,7 +145242,7 @@ function _Oe() {
|
|
|
145226
145242
|
const d = Math.floor(h / 2) - 1;
|
|
145227
145243
|
return [[B[0], B[0] + d], [B[0] + d + 1, B[1]]];
|
|
145228
145244
|
}
|
|
145229
|
-
function
|
|
145245
|
+
function jl(B, I) {
|
|
145230
145246
|
if (!mg(I, B.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
145231
145247
|
const h = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
145232
145248
|
for (let d = I[0]; d <= I[1]; ++d) xc(h, B[d]);
|
|
@@ -145253,7 +145269,7 @@ function _Oe() {
|
|
|
145253
145269
|
const b = Math.min(Lc(B, [h, d], y), Lc(I, [h, d], y)), v = Math.min(Lc(h, [B, I], y), Lc(d, [B, I], y));
|
|
145254
145270
|
return Math.min(b, v);
|
|
145255
145271
|
}
|
|
145256
|
-
function
|
|
145272
|
+
function Zl(B, I, h, d, y) {
|
|
145257
145273
|
if (!mg(I, B.length) || !mg(d, h.length)) return 1 / 0;
|
|
145258
145274
|
let b = 1 / 0;
|
|
145259
145275
|
for (let v = I[0]; v < I[1]; ++v) {
|
|
@@ -145320,12 +145336,12 @@ function _Oe() {
|
|
|
145320
145336
|
}
|
|
145321
145337
|
function s0(B, I, h, d, y, b) {
|
|
145322
145338
|
if (!b) return;
|
|
145323
|
-
const v = CQ(
|
|
145339
|
+
const v = CQ(jl(d, b), y, h);
|
|
145324
145340
|
v < I && B.push([v, b, [0, 0]]);
|
|
145325
145341
|
}
|
|
145326
145342
|
function CB(B, I, h, d, y, b, v) {
|
|
145327
145343
|
if (!b || !v) return;
|
|
145328
|
-
const G = CQ(
|
|
145344
|
+
const G = CQ(jl(d, b), jl(y, v), h);
|
|
145329
145345
|
G < I && B.push([G, b, v]);
|
|
145330
145346
|
}
|
|
145331
145347
|
function qa(B, I, h, d, y = 1 / 0) {
|
|
@@ -145336,7 +145352,7 @@ function _Oe() {
|
|
|
145336
145352
|
const P = v.pop();
|
|
145337
145353
|
if (P[0] >= b) continue;
|
|
145338
145354
|
const T = P[1], q = I ? 50 : 100;
|
|
145339
|
-
if (
|
|
145355
|
+
if (zl(T) <= q) {
|
|
145340
145356
|
if (!mg(T, B.length)) return NaN;
|
|
145341
145357
|
if (I) {
|
|
145342
145358
|
const H = Sw(B, T, h, d);
|
|
@@ -145353,7 +145369,7 @@ function _Oe() {
|
|
|
145353
145369
|
}
|
|
145354
145370
|
return b;
|
|
145355
145371
|
}
|
|
145356
|
-
function
|
|
145372
|
+
function Xl(B, I, h, d, y, b = 1 / 0) {
|
|
145357
145373
|
let v = Math.min(b, y.distance(B[0], h[0]));
|
|
145358
145374
|
if (v === 0) return v;
|
|
145359
145375
|
const G = new lB([[0, [0, B.length - 1], [0, h.length - 1]]], lQ);
|
|
@@ -145361,10 +145377,10 @@ function _Oe() {
|
|
|
145361
145377
|
const P = G.pop();
|
|
145362
145378
|
if (P[0] >= v) continue;
|
|
145363
145379
|
const T = P[1], q = P[2], H = I ? 50 : 100, iA = d ? 50 : 100;
|
|
145364
|
-
if (
|
|
145380
|
+
if (zl(T) <= H && zl(q) <= iA) {
|
|
145365
145381
|
if (!mg(T, B.length) && mg(q, h.length)) return NaN;
|
|
145366
145382
|
let j;
|
|
145367
|
-
if (I && d) j =
|
|
145383
|
+
if (I && d) j = Zl(B, T, h, q, y), v = Math.min(v, j);
|
|
145368
145384
|
else if (I && !d) {
|
|
145369
145385
|
const cA = B.slice(T[0], T[1] + 1);
|
|
145370
145386
|
for (let BA = q[0]; BA <= q[1]; ++BA) if (j = Lc(h[BA], cA, y), v = Math.min(v, j), v === 0) return v;
|
|
@@ -145406,10 +145422,10 @@ function _Oe() {
|
|
|
145406
145422
|
for (const P of d) {
|
|
145407
145423
|
switch (P.type) {
|
|
145408
145424
|
case "Point":
|
|
145409
|
-
G = Math.min(G,
|
|
145425
|
+
G = Math.min(G, Xl(b, !1, [P.coordinates], !1, v, G));
|
|
145410
145426
|
break;
|
|
145411
145427
|
case "LineString":
|
|
145412
|
-
G = Math.min(G,
|
|
145428
|
+
G = Math.min(G, Xl(b, !1, P.coordinates, !0, v, G));
|
|
145413
145429
|
break;
|
|
145414
145430
|
case "Polygon":
|
|
145415
145431
|
G = Math.min(G, qa(b, !1, P.coordinates, v, G));
|
|
@@ -145426,10 +145442,10 @@ function _Oe() {
|
|
|
145426
145442
|
for (const P of d) {
|
|
145427
145443
|
switch (P.type) {
|
|
145428
145444
|
case "Point":
|
|
145429
|
-
G = Math.min(G,
|
|
145445
|
+
G = Math.min(G, Xl(b, !0, [P.coordinates], !1, v, G));
|
|
145430
145446
|
break;
|
|
145431
145447
|
case "LineString":
|
|
145432
|
-
G = Math.min(G,
|
|
145448
|
+
G = Math.min(G, Xl(b, !0, P.coordinates, !0, v, G));
|
|
145433
145449
|
break;
|
|
145434
145450
|
case "Polygon":
|
|
145435
145451
|
G = Math.min(G, qa(b, !0, P.coordinates, v, G));
|
|
@@ -145467,14 +145483,14 @@ function _Oe() {
|
|
|
145467
145483
|
return !0;
|
|
145468
145484
|
}
|
|
145469
145485
|
}
|
|
145470
|
-
class
|
|
145486
|
+
class $l {
|
|
145471
145487
|
constructor(I) {
|
|
145472
145488
|
this.type = Ye, this.key = I;
|
|
145473
145489
|
}
|
|
145474
145490
|
static parse(I, h) {
|
|
145475
145491
|
if (I.length !== 2) return h.error(`Expected 1 argument, but found ${I.length - 1} instead.`);
|
|
145476
145492
|
const d = I[1];
|
|
145477
|
-
return d == null ? h.error("Global state property must be defined.") : typeof d != "string" ? h.error(`Global state property must be string, but found ${typeof I[1]} instead.`) : new
|
|
145493
|
+
return d == null ? h.error("Global state property must be defined.") : typeof d != "string" ? h.error(`Global state property must be string, but found ${typeof I[1]} instead.`) : new $l(d);
|
|
145478
145494
|
}
|
|
145479
145495
|
evaluate(I) {
|
|
145480
145496
|
var h;
|
|
@@ -145487,7 +145503,7 @@ function _Oe() {
|
|
|
145487
145503
|
return !1;
|
|
145488
145504
|
}
|
|
145489
145505
|
}
|
|
145490
|
-
const
|
|
145506
|
+
const Ah = { "==": rQ, "!=": e0, ">": Ol, "<": jC, ">=": cB, "<=": ql, array: Bo, at: sr, boolean: Bo, case: ma, coalesce: Mc, collator: LI, format: vc, image: _c, in: _i, "index-of": Jl, interpolate: Rs, "interpolate-hcl": Rs, "interpolate-lab": Rs, length: xo, let: Jr, literal: Ya, match: or, number: Bo, "number-format": pr, object: Bo, slice: Hl, step: pg, string: Bo, "to-boolean": rI, "to-color": rI, "to-number": rI, "to-string": rI, var: Pl, within: kc, distance: wg, "global-state": $l };
|
|
145491
145507
|
class wa {
|
|
145492
145508
|
constructor(I, h, d, y) {
|
|
145493
145509
|
this.name = I, this.type = h, this._evaluate = d, this.args = y;
|
|
@@ -145507,7 +145523,7 @@ function _Oe() {
|
|
|
145507
145523
|
const b = Array.isArray(y) ? y[0] : y.type, v = Array.isArray(y) ? [[y[1], y[2]]] : y.overloads, G = v.filter((([T]) => !Array.isArray(T) || T.length === I.length - 1));
|
|
145508
145524
|
let P = null;
|
|
145509
145525
|
for (const [T, q] of G) {
|
|
145510
|
-
P = new fg(h.registry,
|
|
145526
|
+
P = new fg(h.registry, th, h.path, null, h.scope);
|
|
145511
145527
|
const H = [];
|
|
145512
145528
|
let iA = !1;
|
|
145513
145529
|
for (let j = 1; j < I.length; j++) {
|
|
@@ -145547,9 +145563,9 @@ function _Oe() {
|
|
|
145547
145563
|
for (const d in h) I[d] = wa;
|
|
145548
145564
|
}
|
|
145549
145565
|
}
|
|
145550
|
-
function
|
|
145566
|
+
function eh(B, [I, h, d, y]) {
|
|
145551
145567
|
I = I.evaluate(B), h = h.evaluate(B), d = d.evaluate(B);
|
|
145552
|
-
const b = y ? y.evaluate(B) : 1, v =
|
|
145568
|
+
const b = y ? y.evaluate(B) : 1, v = Tl(I, h, d, b);
|
|
145553
145569
|
if (v) throw new Nr(v);
|
|
145554
145570
|
return new Ot(I / 255, h / 255, d / 255, b, !1);
|
|
145555
145571
|
}
|
|
@@ -145563,13 +145579,13 @@ function _Oe() {
|
|
|
145563
145579
|
function oI(B) {
|
|
145564
145580
|
return { type: B };
|
|
145565
145581
|
}
|
|
145566
|
-
function
|
|
145567
|
-
if (B instanceof
|
|
145568
|
-
if (B instanceof wa && B.name === "error" || B instanceof LI || B instanceof kc || B instanceof wg || B instanceof
|
|
145582
|
+
function th(B) {
|
|
145583
|
+
if (B instanceof Pl) return th(B.boundExpression);
|
|
145584
|
+
if (B instanceof wa && B.name === "error" || B instanceof LI || B instanceof kc || B instanceof wg || B instanceof $l) return !1;
|
|
145569
145585
|
const I = B instanceof rI || B instanceof Bo;
|
|
145570
145586
|
let h = !0;
|
|
145571
145587
|
return B.eachChild(((d) => {
|
|
145572
|
-
h = I ? h &&
|
|
145588
|
+
h = I ? h && th(d) : h && d instanceof Ya;
|
|
145573
145589
|
})), !!h && uB(B) && EB(B, ["zoom", "heatmap-density", "elevation", "line-progress", "accumulated", "is-supported-script"]);
|
|
145574
145590
|
}
|
|
145575
145591
|
function uB(B) {
|
|
@@ -145596,10 +145612,10 @@ function _Oe() {
|
|
|
145596
145612
|
function n0(B) {
|
|
145597
145613
|
return { result: "success", value: B };
|
|
145598
145614
|
}
|
|
145599
|
-
function
|
|
145615
|
+
function ih(B) {
|
|
145600
145616
|
return { result: "error", value: B };
|
|
145601
145617
|
}
|
|
145602
|
-
function
|
|
145618
|
+
function rh(B) {
|
|
145603
145619
|
return B["property-type"] === "data-driven" || B["property-type"] === "cross-faded-data-driven";
|
|
145604
145620
|
}
|
|
145605
145621
|
function o0(B) {
|
|
@@ -145637,7 +145653,7 @@ function _Oe() {
|
|
|
145637
145653
|
const G = (function(q) {
|
|
145638
145654
|
switch (q) {
|
|
145639
145655
|
case "exponential":
|
|
145640
|
-
return
|
|
145656
|
+
return nh;
|
|
145641
145657
|
case "interval":
|
|
145642
145658
|
return Rw;
|
|
145643
145659
|
case "categorical":
|
|
@@ -145663,7 +145679,7 @@ function _Oe() {
|
|
|
145663
145679
|
const iA = [];
|
|
145664
145680
|
for (const cA of H) iA.push([q[cA].zoom, a0(q[cA], I)]);
|
|
145665
145681
|
const j = { name: "linear" };
|
|
145666
|
-
return { kind: "composite", interpolationType: j, interpolationFactor: Rs.interpolationFactor.bind(void 0, j), zoomStops: iA.map(((cA) => cA[0])), evaluate: ({ zoom: cA }, BA) =>
|
|
145682
|
+
return { kind: "composite", interpolationType: j, interpolationFactor: Rs.interpolationFactor.bind(void 0, j), zoomStops: iA.map(((cA) => cA[0])), evaluate: ({ zoom: cA }, BA) => nh({ stops: iA, base: B.base }, I, cA).evaluate(cA, BA) };
|
|
145667
145683
|
}
|
|
145668
145684
|
if (d) {
|
|
145669
145685
|
const q = y === "exponential" ? { name: "exponential", base: B.base !== void 0 ? B.base : 1 } : null;
|
|
@@ -145671,26 +145687,26 @@ function _Oe() {
|
|
|
145671
145687
|
}
|
|
145672
145688
|
return { kind: "source", evaluate(q, H) {
|
|
145673
145689
|
const iA = H && H.properties ? H.properties[B.property] : void 0;
|
|
145674
|
-
return iA === void 0 ?
|
|
145690
|
+
return iA === void 0 ? sh(B.default, I.default) : G(B, I, iA, P, T);
|
|
145675
145691
|
} };
|
|
145676
145692
|
}
|
|
145677
|
-
function
|
|
145693
|
+
function sh(B, I, h) {
|
|
145678
145694
|
return B !== void 0 ? B : I !== void 0 ? I : h !== void 0 ? h : void 0;
|
|
145679
145695
|
}
|
|
145680
145696
|
function g0(B, I, h, d, y) {
|
|
145681
|
-
return
|
|
145697
|
+
return sh(typeof h === y ? d[h] : void 0, B.default, I.default);
|
|
145682
145698
|
}
|
|
145683
145699
|
function Rw(B, I, h) {
|
|
145684
|
-
if (Pi(h) !== "number") return
|
|
145700
|
+
if (Pi(h) !== "number") return sh(B.default, I.default);
|
|
145685
145701
|
const d = B.stops.length;
|
|
145686
145702
|
if (d === 1 || h <= B.stops[0][0]) return B.stops[0][1];
|
|
145687
145703
|
if (h >= B.stops[d - 1][0]) return B.stops[d - 1][1];
|
|
145688
145704
|
const y = sI(B.stops.map(((b) => b[0])), h);
|
|
145689
145705
|
return B.stops[y][1];
|
|
145690
145706
|
}
|
|
145691
|
-
function
|
|
145707
|
+
function nh(B, I, h) {
|
|
145692
145708
|
const d = B.base !== void 0 ? B.base : 1;
|
|
145693
|
-
if (Pi(h) !== "number") return
|
|
145709
|
+
if (Pi(h) !== "number") return sh(B.default, I.default);
|
|
145694
145710
|
const y = B.stops.length;
|
|
145695
145711
|
if (y === 1 || h <= B.stops[0][0]) return B.stops[0][1];
|
|
145696
145712
|
if (h >= B.stops[y - 1][0]) return B.stops[y - 1][1];
|
|
@@ -145726,14 +145742,14 @@ function _Oe() {
|
|
|
145726
145742
|
default:
|
|
145727
145743
|
Pi(h) === I.type || I.type === "enum" && I.values[h] || (h = void 0);
|
|
145728
145744
|
}
|
|
145729
|
-
return
|
|
145745
|
+
return sh(h, B.default, I.default);
|
|
145730
145746
|
}
|
|
145731
|
-
wa.register(
|
|
145747
|
+
wa.register(Ah, { error: [{ kind: "error" }, [ge], (B, [I]) => {
|
|
145732
145748
|
throw new Nr(I.evaluate(B));
|
|
145733
145749
|
}], typeof: [ge, [Ye], (B, [I]) => Nt(gs(I.evaluate(B)))], "to-rgba": [NA(YA, 4), [tt], (B, [I]) => {
|
|
145734
145750
|
const [h, d, y, b] = I.evaluate(B).rgb;
|
|
145735
145751
|
return [255 * h, 255 * d, 255 * y, b];
|
|
145736
|
-
}], rgb: [tt, [YA, YA, YA],
|
|
145752
|
+
}], rgb: [tt, [YA, YA, YA], eh], rgba: [tt, [YA, YA, YA, YA], eh], has: { type: Be, overloads: [[[ge], (B, [I]) => QQ(I.evaluate(B), B.properties())], [[ge, Qt], (B, [I, h]) => QQ(I.evaluate(B), h.evaluate(B))]] }, get: { type: Ye, overloads: [[[ge], (B, [I]) => Uc(I.evaluate(B), B.properties())], [[ge, Qt], (B, [I, h]) => Uc(I.evaluate(B), h.evaluate(B))]] }, "feature-state": [Ye, [ge], (B, [I]) => Uc(I.evaluate(B), B.featureState || {})], properties: [Qt, [], (B) => B.properties()], "geometry-type": [ge, [], (B) => B.geometryType()], id: [Ye, [], (B) => B.id()], zoom: [YA, [], (B) => B.globals.zoom], "heatmap-density": [YA, [], (B) => B.globals.heatmapDensity || 0], elevation: [YA, [], (B) => B.globals.elevation || 0], "line-progress": [YA, [], (B) => B.globals.lineProgress || 0], accumulated: [Ye, [], (B) => B.globals.accumulated === void 0 ? null : B.globals.accumulated], "+": [YA, oI(YA), (B, I) => {
|
|
145737
145753
|
let h = 0;
|
|
145738
145754
|
for (const d of I) h += d.evaluate(B);
|
|
145739
145755
|
return h;
|
|
@@ -145823,14 +145839,14 @@ function _Oe() {
|
|
|
145823
145839
|
}
|
|
145824
145840
|
}
|
|
145825
145841
|
function iu(B) {
|
|
145826
|
-
return Array.isArray(B) && B.length > 0 && typeof B[0] == "string" && B[0] in
|
|
145842
|
+
return Array.isArray(B) && B.length > 0 && typeof B[0] == "string" && B[0] in Ah;
|
|
145827
145843
|
}
|
|
145828
|
-
function
|
|
145829
|
-
const d = new fg(
|
|
145844
|
+
function oh(B, I, h) {
|
|
145845
|
+
const d = new fg(Ah, th, [], I ? (function(b) {
|
|
145830
145846
|
const v = { color: tt, string: ge, number: YA, enum: ge, boolean: Be, formatted: Vt, padding: as, numberArray: cr, colorArray: wi, projectionDefinition: ht, resolvedImage: rn, variableAnchorOffsetCollection: ai };
|
|
145831
145847
|
return b.type === "array" ? NA(v[b.value] || Ye, b.length) : v[b.type];
|
|
145832
145848
|
})(I) : void 0), y = d.parse(B, void 0, void 0, void 0, I && I.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
145833
|
-
return y ? n0(new QB(y, I, h)) :
|
|
145849
|
+
return y ? n0(new QB(y, I, h)) : ih(d.errors);
|
|
145834
145850
|
}
|
|
145835
145851
|
class dB {
|
|
145836
145852
|
constructor(I, h, d) {
|
|
@@ -145858,14 +145874,14 @@ function _Oe() {
|
|
|
145858
145874
|
}
|
|
145859
145875
|
}
|
|
145860
145876
|
function ru(B, I, h) {
|
|
145861
|
-
const d =
|
|
145877
|
+
const d = oh(B, I, h);
|
|
145862
145878
|
if (d.result === "error") return d;
|
|
145863
145879
|
const y = d.value.expression, b = uB(y);
|
|
145864
|
-
if (!b && !
|
|
145880
|
+
if (!b && !rh(I)) return ih([new Se("", "data expressions not supported")]);
|
|
145865
145881
|
const v = EB(y, ["zoom"]);
|
|
145866
|
-
if (!v && !o0(I)) return
|
|
145882
|
+
if (!v && !o0(I)) return ih([new Se("", "zoom expressions not supported")]);
|
|
145867
145883
|
const G = Dg(y);
|
|
145868
|
-
return G || v ? G instanceof Se ?
|
|
145884
|
+
return G || v ? G instanceof Se ? ih([G]) : G instanceof Rs && !dQ(I) ? ih([new Se("", '"interpolate" expressions cannot be used with this property')]) : n0(G ? new Tc(b ? "camera" : "composite", d.value, G.labels, G instanceof Rs ? G.interpolation : void 0, h) : new dB(b ? "constant" : "source", d.value, h)) : ih([new Se("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
|
145869
145885
|
}
|
|
145870
145886
|
class Pc {
|
|
145871
145887
|
constructor(I, h) {
|
|
@@ -145890,7 +145906,7 @@ function _Oe() {
|
|
|
145890
145906
|
})), I;
|
|
145891
145907
|
}
|
|
145892
145908
|
function aI(B, I = /* @__PURE__ */ new Set()) {
|
|
145893
|
-
return B instanceof
|
|
145909
|
+
return B instanceof $l && I.add(B.key), B.eachChild(((h) => {
|
|
145894
145910
|
aI(h, I);
|
|
145895
145911
|
})), I;
|
|
145896
145912
|
}
|
|
@@ -145929,7 +145945,7 @@ function _Oe() {
|
|
|
145929
145945
|
function ko(B, I) {
|
|
145930
145946
|
if (B == null) return { filter: () => !0, needGeometry: !1, getGlobalStateRefs: () => /* @__PURE__ */ new Set() };
|
|
145931
145947
|
su(B) || (B = sn(B));
|
|
145932
|
-
const h =
|
|
145948
|
+
const h = oh(B, I0, I);
|
|
145933
145949
|
if (h.result === "error") throw new Error(h.value.map(((d) => `${d.key}: ${d.message}`)).join(", "));
|
|
145934
145950
|
return { filter: (d, y, b) => h.value.evaluate(d, y, {}, b), needGeometry: yt(B), getGlobalStateRefs: () => aI(h.value.expression) };
|
|
145935
145951
|
}
|
|
@@ -146067,7 +146083,7 @@ function _Oe() {
|
|
|
146067
146083
|
}, default: function(j) {
|
|
146068
146084
|
return j.validateSpec({ key: j.key, value: j.value, valueSpec: I, validateSpec: j.validateSpec, style: j.style, styleSpec: j.styleSpec });
|
|
146069
146085
|
} } });
|
|
146070
|
-
return h === "identity" && G && q.push(new xA(B.key, B.value, 'missing required property "property"')), h === "identity" || B.value.stops || q.push(new xA(B.key, B.value, 'missing required property "stops"')), h === "exponential" && B.valueSpec.expression && !dQ(B.valueSpec) && q.push(new xA(B.key, B.value, "exponential functions not supported")), B.styleSpec.$version >= 8 && (P && !
|
|
146086
|
+
return h === "identity" && G && q.push(new xA(B.key, B.value, 'missing required property "property"')), h === "identity" || B.value.stops || q.push(new xA(B.key, B.value, 'missing required property "stops"')), h === "exponential" && B.valueSpec.expression && !dQ(B.valueSpec) && q.push(new xA(B.key, B.value, "exponential functions not supported")), B.styleSpec.$version >= 8 && (P && !rh(B.valueSpec) ? q.push(new xA(B.key, B.value, "property functions not supported")) : G && !o0(B.valueSpec) && q.push(new xA(B.key, B.value, "zoom functions not supported"))), h !== "categorical" && !T || B.value.property !== void 0 || q.push(new xA(B.key, B.value, '"property" property is required')), q;
|
|
146071
146087
|
function H(j) {
|
|
146072
146088
|
let cA = [];
|
|
146073
146089
|
const BA = j.value, pA = j.key;
|
|
@@ -146090,13 +146106,13 @@ function _Oe() {
|
|
|
146090
146106
|
if (BA !== "number" && BA !== "string" && BA !== "boolean") return [new xA(j.key, yA, "stop domain value must be a number, string, or boolean")];
|
|
146091
146107
|
if (BA !== "number" && h !== "categorical") {
|
|
146092
146108
|
let GA = `number expected, ${BA} found`;
|
|
146093
|
-
return
|
|
146109
|
+
return rh(I) && h === void 0 && (GA += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new xA(j.key, yA, GA)];
|
|
146094
146110
|
}
|
|
146095
146111
|
return h !== "categorical" || BA !== "number" || isFinite(pA) && Math.floor(pA) === pA ? h !== "categorical" && BA === "number" && y !== void 0 && pA < y ? [new xA(j.key, yA, "stop domain values must appear in ascending order")] : (y = pA, h === "categorical" && pA in v ? [new xA(j.key, yA, "stop domain values must be unique")] : (v[pA] = !0, [])) : [new xA(j.key, yA, `integer expected, found ${pA}`)];
|
|
146096
146112
|
}
|
|
146097
146113
|
}
|
|
146098
146114
|
function it(B) {
|
|
146099
|
-
const I = (B.expressionContext === "property" ? ru :
|
|
146115
|
+
const I = (B.expressionContext === "property" ? ru : oh)(Hc(B.value), B.valueSpec);
|
|
146100
146116
|
if (I.result === "error") return I.value.map(((d) => new xA(`${B.key}${d.key}`, B.value, d.message)));
|
|
146101
146117
|
const h = I.value.expression || I.value._styleExpression.expression;
|
|
146102
146118
|
if (B.expressionContext === "property" && B.propertyKey === "text-font" && !h.outputDefined()) return [new xA(B.key, B.value, `Invalid data expression for "${B.propertyKey}". Output values must be contained as literals within the expression.`)];
|
|
@@ -146158,7 +146174,7 @@ function _Oe() {
|
|
|
146158
146174
|
const q = B.valueSpec || P[G];
|
|
146159
146175
|
if (!q) return [new xA(h, v, `unknown property "${G}"`)];
|
|
146160
146176
|
let H;
|
|
146161
|
-
if (Pi(v) === "string" &&
|
|
146177
|
+
if (Pi(v) === "string" && rh(q) && !q.tokens && (H = /^{([^}]+)}$/.exec(v))) return [new xA(h, v, `"${G}" does not support interpolation syntax
|
|
146162
146178
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(H[1])} }\`.`)];
|
|
146163
146179
|
const iA = [];
|
|
146164
146180
|
return B.layerType === "symbol" && G === "text-font" && tu(Hc(v)) && xr(v.type) === "identity" && iA.push(new xA(h, v, '"text-font" does not support identity functions')), iA.concat(d({ key: B.key, value: v, valueSpec: q, style: y, styleSpec: b, expressionContext: "property", propertyType: I, propertyKey: G }));
|
|
@@ -146401,7 +146417,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146401
146417
|
}
|
|
146402
146418
|
setValue(I) {
|
|
146403
146419
|
if (I == null || I === "visible" || I === "none") return this._literalValue = I === "none" ? "none" : "visible", this._compiledValue = void 0, void (this._globalStateRefs = /* @__PURE__ */ new Set());
|
|
146404
|
-
const h =
|
|
146420
|
+
const h = oh(I, uA, this._globalState);
|
|
146405
146421
|
if (h.result === "error") throw this._literalValue = "visible", this._compiledValue = void 0, new Error(h.value.map(((d) => `${d.key}: ${d.message}`)).join(", "));
|
|
146406
146422
|
this._literalValue = void 0, this._compiledValue = h.value, this._globalStateRefs = aI(h.value.expression);
|
|
146407
146423
|
}
|
|
@@ -146505,7 +146521,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146505
146521
|
Object.defineProperty(I, "_classRegistryKey", { value: B, writeable: !1 }), Ke[B] = { klass: I, omit: h.omit || [], shallow: h.shallow || [] };
|
|
146506
146522
|
}
|
|
146507
146523
|
pe("Object", Object), pe("Set", Set), pe("TransferableGridIndex", ce), pe("Color", Ot), pe("Error", Error), pe("AJAXError", Ar), pe("ResolvedImage", ta), pe("StylePropertyFunction", Pc), pe("StyleExpression", QB, { omit: ["_evaluator"] }), pe("ZoomDependentExpression", Tc), pe("ZoomConstantExpression", dB), pe("CompoundExpression", wa, { omit: ["_evaluate"] });
|
|
146508
|
-
for (const B in
|
|
146524
|
+
for (const B in Ah) Ah[B]._classRegistryKey || pe(`Expression_${B}`, Ah[B]);
|
|
146509
146525
|
function ke(B) {
|
|
146510
146526
|
var I;
|
|
146511
146527
|
return B && typeof ArrayBuffer < "u" && (B instanceof ArrayBuffer || ((I = B.constructor) === null || I === void 0 ? void 0 : I.name) === "ArrayBuffer");
|
|
@@ -146868,7 +146884,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146868
146884
|
return I.kind === "constant" ? I.value : I.evaluate(h, d, y, b, v);
|
|
146869
146885
|
}
|
|
146870
146886
|
}
|
|
146871
|
-
class
|
|
146887
|
+
class ah extends ni {
|
|
146872
146888
|
possiblyEvaluate(I, h, d, y) {
|
|
146873
146889
|
if (I.value === void 0) return new hI(this, { kind: "constant", value: void 0 }, h);
|
|
146874
146890
|
if (I.expression.kind === "constant") {
|
|
@@ -146937,7 +146953,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
146937
146953
|
}
|
|
146938
146954
|
}
|
|
146939
146955
|
}
|
|
146940
|
-
pe("DataDrivenProperty", ni), pe("DataConstantProperty", qt), pe("CrossFadedDataDrivenProperty",
|
|
146956
|
+
pe("DataDrivenProperty", ni), pe("DataConstantProperty", qt), pe("CrossFadedDataDrivenProperty", ah), pe("CrossFadedProperty", HR), pe("ColorRampProperty", gu);
|
|
146941
146957
|
const YR = " is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?", h0 = " is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";
|
|
146942
146958
|
class bg extends Je {
|
|
146943
146959
|
constructor(I, h, d) {
|
|
@@ -147057,7 +147073,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147057
147073
|
isStateDependent() {
|
|
147058
147074
|
for (const I in this.paint._values) {
|
|
147059
147075
|
const h = this.paint.get(I);
|
|
147060
|
-
if (h instanceof hI &&
|
|
147076
|
+
if (h instanceof hI && rh(h.property.specification) && (h.value.kind === "source" || h.value.kind === "composite") && h.value.isStateDependent) return !0;
|
|
147061
147077
|
}
|
|
147062
147078
|
return !1;
|
|
147063
147079
|
}
|
|
@@ -147810,11 +147826,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147810
147826
|
this.ids = [], this.positions = [], this.indexed = !1;
|
|
147811
147827
|
}
|
|
147812
147828
|
add(I, h, d, y) {
|
|
147813
|
-
this.ids.push(
|
|
147829
|
+
this.ids.push(gh(I)), this.positions.push(h, d, y);
|
|
147814
147830
|
}
|
|
147815
147831
|
getPositions(I) {
|
|
147816
147832
|
if (!this.indexed) throw new Error("Trying to get index, but feature positions are not indexed");
|
|
147817
|
-
const h =
|
|
147833
|
+
const h = gh(I);
|
|
147818
147834
|
let d = 0, y = this.ids.length - 1;
|
|
147819
147835
|
for (; d < y; ) {
|
|
147820
147836
|
const v = d + y >> 1;
|
|
@@ -147826,18 +147842,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147826
147842
|
}
|
|
147827
147843
|
static serialize(I, h) {
|
|
147828
147844
|
const d = new Float64Array(I.ids), y = new Uint32Array(I.positions);
|
|
147829
|
-
return
|
|
147845
|
+
return Ih(d, y, 0, d.length - 1), h && h.push(d.buffer, y.buffer), { ids: d, positions: y };
|
|
147830
147846
|
}
|
|
147831
147847
|
static deserialize(I) {
|
|
147832
147848
|
const h = new To();
|
|
147833
147849
|
return h.ids = I.ids, h.positions = I.positions, h.indexed = !0, h;
|
|
147834
147850
|
}
|
|
147835
147851
|
}
|
|
147836
|
-
function
|
|
147852
|
+
function gh(B) {
|
|
147837
147853
|
const I = +B;
|
|
147838
147854
|
return !isNaN(I) && I <= Number.MAX_SAFE_INTEGER ? I : Zn(String(B));
|
|
147839
147855
|
}
|
|
147840
|
-
function
|
|
147856
|
+
function Ih(B, I, h, d) {
|
|
147841
147857
|
for (; h < d; ) {
|
|
147842
147858
|
const y = B[h + d >> 1];
|
|
147843
147859
|
let b = h - 1, v = d + 1;
|
|
@@ -147849,12 +147865,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147849
147865
|
v--;
|
|
147850
147866
|
while (B[v] > y);
|
|
147851
147867
|
if (b >= v) break;
|
|
147852
|
-
|
|
147868
|
+
ch(B, b, v), ch(I, 3 * b, 3 * v), ch(I, 3 * b + 1, 3 * v + 1), ch(I, 3 * b + 2, 3 * v + 2);
|
|
147853
147869
|
}
|
|
147854
|
-
v - h < d - v ? (
|
|
147870
|
+
v - h < d - v ? (Ih(B, I, h, v), h = v + 1) : (Ih(B, I, v + 1, d), d = v);
|
|
147855
147871
|
}
|
|
147856
147872
|
}
|
|
147857
|
-
function
|
|
147873
|
+
function ch(B, I, h) {
|
|
147858
147874
|
const d = B[I];
|
|
147859
147875
|
B[I] = B[h], B[h] = d;
|
|
147860
147876
|
}
|
|
@@ -147872,7 +147888,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147872
147888
|
this.current !== I && (this.current = I, this.gl.uniform1f(this.location, I));
|
|
147873
147889
|
}
|
|
147874
147890
|
}
|
|
147875
|
-
class
|
|
147891
|
+
class lh extends Po {
|
|
147876
147892
|
constructor(I, h) {
|
|
147877
147893
|
super(I, h), this.current = [0, 0, 0, 0];
|
|
147878
147894
|
}
|
|
@@ -147918,7 +147934,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
147918
147934
|
y === "u_pattern_to" ? b = this.patternTo : y === "u_pattern_from" ? b = this.patternFrom : y === "u_dasharray_to" ? b = this.dashTo : y === "u_dasharray_from" ? b = this.dashFrom : y === "u_pixel_ratio_to" ? b = this.pixelRatioTo : y === "u_pixel_ratio_from" && (b = this.pixelRatioFrom), b !== null && I.set(b);
|
|
147919
147935
|
}
|
|
147920
147936
|
getBinding(I, h, d) {
|
|
147921
|
-
return d.startsWith("u_pattern") || d.startsWith("u_dasharray_") ? new
|
|
147937
|
+
return d.startsWith("u_pattern") || d.startsWith("u_dasharray_") ? new lh(I, h) : new Oc(I, h);
|
|
147922
147938
|
}
|
|
147923
147939
|
}
|
|
147924
147940
|
class Ms {
|
|
@@ -148051,7 +148067,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
148051
148067
|
for (const b in I.paint._values) {
|
|
148052
148068
|
if (!d(b)) continue;
|
|
148053
148069
|
const v = I.paint.get(b);
|
|
148054
|
-
if (!(v instanceof hI &&
|
|
148070
|
+
if (!(v instanceof hI && rh(v.property.specification))) continue;
|
|
148055
148071
|
const G = Uw(b, I.type), P = v.value, T = v.property.specification.type, q = v.property.useIntegerZoom, H = v.property.specification["property-type"], iA = H === "cross-faded" || H === "cross-faded-data-driven";
|
|
148056
148072
|
if (P.kind === "constant") this.binders[b] = iA ? new Rg(P.value, G) : new za(P.value, G, T), y.push(`/u_${b}`);
|
|
148057
148073
|
else if (P.kind === "source" || iA) {
|
|
@@ -148210,17 +148226,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
148210
148226
|
return y?.[h] || d[I][h];
|
|
148211
148227
|
}
|
|
148212
148228
|
pe("ConstantBinder", za), pe("CrossFadedConstantBinder", Rg), pe("SourceExpressionBinder", Ms), pe("CrossFadedPatternBinder", vs), pe("CrossFadedDasharrayBinder", SB), pe("CompositeExpressionBinder", cs), pe("ProgramConfiguration", y0, { omit: ["_buffers"] }), pe("ProgramConfigurationSet", qc);
|
|
148213
|
-
const Tw = Math.pow(2, 14) - 1,
|
|
148214
|
-
function
|
|
148229
|
+
const Tw = Math.pow(2, 14) - 1, hh = -Tw - 1;
|
|
148230
|
+
function Bh(B) {
|
|
148215
148231
|
const I = HA / B.extent, h = B.loadGeometry();
|
|
148216
148232
|
for (const d of h) for (const y of d) {
|
|
148217
148233
|
const b = Math.round(y.x * I), v = Math.round(y.y * I);
|
|
148218
|
-
y.x = fe(b,
|
|
148234
|
+
y.x = fe(b, hh, Tw), y.y = fe(v, hh, Tw), (b < y.x || b > y.x + 1 || v < y.y || v > y.y + 1) && ze("Geometry exceeds allowed extent, reduce your vector tile buffer size");
|
|
148219
148235
|
}
|
|
148220
148236
|
return h;
|
|
148221
148237
|
}
|
|
148222
|
-
function
|
|
148223
|
-
return { type: B.type, id: B.id, properties: B.properties, geometry: I ?
|
|
148238
|
+
function Ch(B, I) {
|
|
148239
|
+
return { type: B.type, id: B.id, properties: B.properties, geometry: I ? Bh(B) : [] };
|
|
148224
148240
|
}
|
|
148225
148241
|
const Pw = -32768;
|
|
148226
148242
|
function Jw(B, I, h, d, y) {
|
|
@@ -148239,9 +148255,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
148239
148255
|
}
|
|
148240
148256
|
const T = P ? h.subdivisionGranularity.circle : 1;
|
|
148241
148257
|
for (const { feature: q, id: H, index: iA, sourceLayerIndex: j } of I) {
|
|
148242
|
-
const cA = this.layers[0]._featureFilter.needGeometry, BA =
|
|
148258
|
+
const cA = this.layers[0]._featureFilter.needGeometry, BA = Ch(q, cA);
|
|
148243
148259
|
if (!this.layers[0]._featureFilter.filter(new Zi(this.zoom), BA, d)) continue;
|
|
148244
|
-
const pA = G ? v.evaluate(BA, {}, d) : void 0, yA = { id: H, properties: q.properties, type: q.type, sourceLayerIndex: j, index: iA, geometry: cA ? BA.geometry :
|
|
148260
|
+
const pA = G ? v.evaluate(BA, {}, d) : void 0, yA = { id: H, properties: q.properties, type: q.type, sourceLayerIndex: j, index: iA, geometry: cA ? BA.geometry : Bh(q), patterns: {}, sortKey: pA };
|
|
148245
148261
|
b.push(yA);
|
|
148246
148262
|
}
|
|
148247
148263
|
G && b.sort(((q, H) => q.sortKey - H.sortKey));
|
|
@@ -149262,9 +149278,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
149262
149278
|
this.hasDependencies = zR("fill", this.layers, h);
|
|
149263
149279
|
const y = this.layers[0].layout.get("fill-sort-key"), b = !y.isConstant(), v = [];
|
|
149264
149280
|
for (const { feature: G, id: P, index: T, sourceLayerIndex: q } of I) {
|
|
149265
|
-
const H = this.layers[0]._featureFilter.needGeometry, iA =
|
|
149281
|
+
const H = this.layers[0]._featureFilter.needGeometry, iA = Ch(G, H);
|
|
149266
149282
|
if (!this.layers[0]._featureFilter.filter(new Zi(this.zoom), iA, d)) continue;
|
|
149267
|
-
const j = b ? y.evaluate(iA, {}, d, h.availableImages) : void 0, cA = { id: P, properties: G.properties, type: G.type, sourceLayerIndex: q, index: T, geometry: H ? iA.geometry :
|
|
149283
|
+
const j = b ? y.evaluate(iA, {}, d, h.availableImages) : void 0, cA = { id: P, properties: G.properties, type: G.type, sourceLayerIndex: q, index: T, geometry: H ? iA.geometry : Bh(G), patterns: {}, sortKey: j };
|
|
149268
149284
|
v.push(cA);
|
|
149269
149285
|
}
|
|
149270
149286
|
b && v.sort(((G, P) => G.sortKey - P.sortKey));
|
|
@@ -149308,7 +149324,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
149308
149324
|
let RV, FV;
|
|
149309
149325
|
pe("FillBucket", hL, { omit: ["layers", "patternFeatures"] });
|
|
149310
149326
|
var cFA = { get paint() {
|
|
149311
|
-
return FV = FV || new ra({ "fill-antialias": new qt(ue.paint_fill["fill-antialias"]), "fill-opacity": new ni(ue.paint_fill["fill-opacity"]), "fill-color": new ni(ue.paint_fill["fill-color"]), "fill-outline-color": new ni(ue.paint_fill["fill-outline-color"]), "fill-translate": new qt(ue.paint_fill["fill-translate"]), "fill-translate-anchor": new qt(ue.paint_fill["fill-translate-anchor"]), "fill-pattern": new
|
|
149327
|
+
return FV = FV || new ra({ "fill-antialias": new qt(ue.paint_fill["fill-antialias"]), "fill-opacity": new ni(ue.paint_fill["fill-opacity"]), "fill-color": new ni(ue.paint_fill["fill-color"]), "fill-outline-color": new ni(ue.paint_fill["fill-outline-color"]), "fill-translate": new qt(ue.paint_fill["fill-translate"]), "fill-translate-anchor": new qt(ue.paint_fill["fill-translate-anchor"]), "fill-pattern": new ah(ue.paint_fill["fill-pattern"]) });
|
|
149312
149328
|
}, get layout() {
|
|
149313
149329
|
return RV = RV || new ra({ "fill-sort-key": new ni(ue.layout_fill["fill-sort-key"]) });
|
|
149314
149330
|
} };
|
|
@@ -149472,9 +149488,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
149472
149488
|
populate(I, h, d) {
|
|
149473
149489
|
this.features = [], this.hasDependencies = zR("fill-extrusion", this.layers, h);
|
|
149474
149490
|
for (const { feature: y, id: b, index: v, sourceLayerIndex: G } of I) {
|
|
149475
|
-
const P = this.layers[0]._featureFilter.needGeometry, T =
|
|
149491
|
+
const P = this.layers[0]._featureFilter.needGeometry, T = Ch(y, P);
|
|
149476
149492
|
if (!this.layers[0]._featureFilter.filter(new Zi(this.zoom), T, d)) continue;
|
|
149477
|
-
const q = { id: b, sourceLayerIndex: G, index: v, geometry: P ? T.geometry :
|
|
149493
|
+
const q = { id: b, sourceLayerIndex: G, index: v, geometry: P ? T.geometry : Bh(y), properties: y.properties, type: y.type, patterns: {} };
|
|
149478
149494
|
this.hasDependencies ? this.features.push(IL("fill-extrusion", this.layers, q, { zoom: this.zoom }, h)) : this.addFeature(q, q.geometry, v, d, {}, h.subdivisionGranularity), h.featureIndex.insert(y, q.geometry, v, G, this.index, !0);
|
|
149479
149495
|
}
|
|
149480
149496
|
}
|
|
@@ -149551,7 +149567,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
149551
149567
|
let _V;
|
|
149552
149568
|
pe("FillExtrusionBucket", CL, { omit: ["layers", "features"] });
|
|
149553
149569
|
var mFA = { get paint() {
|
|
149554
|
-
return _V = _V || new ra({ "fill-extrusion-opacity": new qt(ue["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new ni(ue["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new qt(ue["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new qt(ue["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new
|
|
149570
|
+
return _V = _V || new ra({ "fill-extrusion-opacity": new qt(ue["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new ni(ue["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new qt(ue["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new qt(ue["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new ah(ue["paint_fill-extrusion"]["fill-extrusion-pattern"]), "fill-extrusion-height": new ni(ue["paint_fill-extrusion"]["fill-extrusion-height"]), "fill-extrusion-base": new ni(ue["paint_fill-extrusion"]["fill-extrusion-base"]), "fill-extrusion-vertical-gradient": new qt(ue["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) });
|
|
149555
149571
|
} };
|
|
149556
149572
|
class wFA extends bg {
|
|
149557
149573
|
constructor(I, h) {
|
|
@@ -150427,9 +150443,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
150427
150443
|
this.hasDependencies = zR("line", this.layers, h) || this.hasLineDasharray(this.layers);
|
|
150428
150444
|
const y = this.layers[0].layout.get("line-sort-key"), b = !y.isConstant(), v = [];
|
|
150429
150445
|
for (const { feature: G, id: P, index: T, sourceLayerIndex: q } of I) {
|
|
150430
|
-
const H = this.layers[0]._featureFilter.needGeometry, iA =
|
|
150446
|
+
const H = this.layers[0]._featureFilter.needGeometry, iA = Ch(G, H);
|
|
150431
150447
|
if (!this.layers[0]._featureFilter.filter(new Zi(this.zoom), iA, d)) continue;
|
|
150432
|
-
const j = b ? y.evaluate(iA, {}, d) : void 0, cA = { id: P, properties: G.properties, type: G.type, sourceLayerIndex: q, index: T, geometry: H ? iA.geometry :
|
|
150448
|
+
const j = b ? y.evaluate(iA, {}, d) : void 0, cA = { id: P, properties: G.properties, type: G.type, sourceLayerIndex: q, index: T, geometry: H ? iA.geometry : Bh(G), patterns: {}, dashes: {}, sortKey: j };
|
|
150433
150449
|
v.push(cA);
|
|
150434
150450
|
}
|
|
150435
150451
|
b && v.sort(((G, P) => G.sortKey - P.sortKey));
|
|
@@ -150568,7 +150584,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
150568
150584
|
let zV, jV;
|
|
150569
150585
|
pe("LineBucket", ML, { omit: ["layers", "patternFeatures"] });
|
|
150570
150586
|
var ZV = { get paint() {
|
|
150571
|
-
return jV = jV || new ra({ "line-opacity": new ni(ue.paint_line["line-opacity"]), "line-color": new ni(ue.paint_line["line-color"]), "line-translate": new qt(ue.paint_line["line-translate"]), "line-translate-anchor": new qt(ue.paint_line["line-translate-anchor"]), "line-width": new ni(ue.paint_line["line-width"]), "line-gap-width": new ni(ue.paint_line["line-gap-width"]), "line-offset": new ni(ue.paint_line["line-offset"]), "line-blur": new ni(ue.paint_line["line-blur"]), "line-dasharray": new
|
|
150587
|
+
return jV = jV || new ra({ "line-opacity": new ni(ue.paint_line["line-opacity"]), "line-color": new ni(ue.paint_line["line-color"]), "line-translate": new qt(ue.paint_line["line-translate"]), "line-translate-anchor": new qt(ue.paint_line["line-translate-anchor"]), "line-width": new ni(ue.paint_line["line-width"]), "line-gap-width": new ni(ue.paint_line["line-gap-width"]), "line-offset": new ni(ue.paint_line["line-offset"]), "line-blur": new ni(ue.paint_line["line-blur"]), "line-dasharray": new ah(ue.paint_line["line-dasharray"]), "line-pattern": new ah(ue.paint_line["line-pattern"]), "line-gradient": new gu(ue.paint_line["line-gradient"]) });
|
|
150572
150588
|
}, get layout() {
|
|
150573
150589
|
return zV = zV || new ra({ "line-cap": new ni(ue.layout_line["line-cap"]), "line-join": new ni(ue.layout_line["line-join"]), "line-miter-limit": new ni(ue.layout_line["line-miter-limit"]), "line-round-limit": new ni(ue.layout_line["line-round-limit"]), "line-sort-key": new ni(ue.layout_line["line-sort-key"]) });
|
|
150574
150590
|
} };
|
|
@@ -151458,10 +151474,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
151458
151474
|
if (this.features = [], !q && !H) return;
|
|
151459
151475
|
const j = h.iconDependencies, cA = h.glyphDependencies, BA = h.availableImages, pA = new Zi(this.zoom);
|
|
151460
151476
|
for (const { feature: yA, id: GA, index: bA, sourceLayerIndex: LA } of I) {
|
|
151461
|
-
const OA = b._featureFilter.needGeometry, jA =
|
|
151477
|
+
const OA = b._featureFilter.needGeometry, jA = Ch(yA, OA);
|
|
151462
151478
|
if (!b._featureFilter.filter(pA, jA, d)) continue;
|
|
151463
151479
|
let Ee, de;
|
|
151464
|
-
if (OA || (jA.geometry =
|
|
151480
|
+
if (OA || (jA.geometry = Bh(yA)), q) {
|
|
151465
151481
|
const Le = b.getValueAndResolveTokens("text-field", jA, d, BA), Xe = _o.factory(Le);
|
|
151466
151482
|
this.hasRTLText || (this.hasRTLText = D1A(Xe)), (!this.hasRTLText || jr.getRTLTextPluginStatus() === "unavailable" || this.hasRTLText && jr.isParsed()) && (Ee = t1A(Xe, b, jA));
|
|
151467
151483
|
}
|
|
@@ -154142,7 +154158,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154142
154158
|
BA = pA;
|
|
154143
154159
|
const yA = this.featureIndexArray.get(pA);
|
|
154144
154160
|
let GA = null;
|
|
154145
|
-
this.loadMatchingFeature(cA, yA.bucketIndex, yA.sourceLayerIndex, yA.featureIndex, G, b.layers, b.availableImages, h, d, y, ((bA, LA, OA) => (GA || (GA =
|
|
154161
|
+
this.loadMatchingFeature(cA, yA.bucketIndex, yA.sourceLayerIndex, yA.featureIndex, G, b.layers, b.availableImages, h, d, y, ((bA, LA, OA) => (GA || (GA = Bh(bA)), LA.queryIntersectsFeature({ queryGeometry: P, feature: bA, featureState: OA, geometry: GA, zoom: this.z, transform: I.transform, pixelsToTileUnits: v, pixelPosMatrix: I.pixelPosMatrix, unwrappedTileID: this.tileID.toUnwrapped(), getElevation: I.getElevation }))));
|
|
154146
154162
|
}
|
|
154147
154163
|
return cA;
|
|
154148
154164
|
}
|
|
@@ -154151,7 +154167,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154151
154167
|
if (v && !iA.some(((pA) => v.has(pA)))) return;
|
|
154152
154168
|
const j = this.sourceLayerCoder.decode(d), cA = this.vtLayers[j].feature(y);
|
|
154153
154169
|
if (b.needGeometry) {
|
|
154154
|
-
const pA =
|
|
154170
|
+
const pA = Ch(cA, !0);
|
|
154155
154171
|
if (!b.filter(new Zi(this.tileID.overscaledZ), pA, this.tileID.canonical)) return;
|
|
154156
154172
|
} else if (!b.filter(new Zi(this.tileID.overscaledZ), cA)) return;
|
|
154157
154173
|
const BA = this.getId(cA, j);
|
|
@@ -154590,8 +154606,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154590
154606
|
const Ia = Un.layout.get("icon-rotate").evaluate(Hs, {}), BI = Un.layout.get("icon-text-fit") !== "none", xQ = Bz(Hr, Ia, NB, BI), Zc = Js ? Bz(Js, Ia, NB, BI) : void 0;
|
|
154591
154607
|
q0 = new CF(Ao, ci, ws, Qo, aa, Hr, HI, eo, !1, Ia), fz = 4 * xQ.length;
|
|
154592
154608
|
const GQ = pt.iconSizeData;
|
|
154593
|
-
let
|
|
154594
|
-
GQ.kind === "source" ? (
|
|
154609
|
+
let uh = null;
|
|
154610
|
+
GQ.kind === "source" ? (uh = [RB * Un.layout.get("icon-size").evaluate(Hs, {})], uh[0] > lu && ze(`${pt.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : GQ.kind === "composite" && (uh = [RB * to.compositeIconSizes[0].evaluate(Hs, {}, zc), RB * to.compositeIconSizes[1].evaluate(Hs, {}, zc)], (uh[0] > lu || uh[1] > lu) && ze(`${pt.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), pt.addSymbols(pt.icon, xQ, uh, wn, _s, Hs, n.ax.none, ci, Qu.lineStartIndex, Qu.lineLength, -1, zc), IU = pt.icon.placedSymbolArray.length - 1, Zc && (pz = 4 * Zc.length, pt.addSymbols(pt.icon, Zc, uh, wn, _s, Hs, n.ax.vertical, ci, Qu.lineStartIndex, Qu.lineLength, -1, zc), cU = pt.icon.placedSymbolArray.length - 1);
|
|
154595
154611
|
}
|
|
154596
154612
|
const Dz = Object.keys(wr.horizontal);
|
|
154597
154613
|
for (const Ia of Dz) {
|
|
@@ -154614,8 +154630,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154614
154630
|
const bNA = Ez(Un, Hs, zc), [RNA, FNA] = (function(Ia, BI) {
|
|
154615
154631
|
const xQ = Ia.length, Zc = BI?.values;
|
|
154616
154632
|
if (Zc?.length > 0) for (let GQ = 0; GQ < Zc.length; GQ += 2) {
|
|
154617
|
-
const
|
|
154618
|
-
Ia.emplaceBack(n.aM[Zc[GQ]],
|
|
154633
|
+
const uh = Zc[GQ + 1];
|
|
154634
|
+
Ia.emplaceBack(n.aM[Zc[GQ]], uh[0], uh[1]);
|
|
154619
154635
|
}
|
|
154620
154636
|
return [xQ, Ia.length];
|
|
154621
154637
|
})(pt.textAnchorOffsets, bNA);
|
|
@@ -154820,7 +154836,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
154820
154836
|
}));
|
|
154821
154837
|
}, n.ac = xA, n.ad = function() {
|
|
154822
154838
|
return Qe++;
|
|
154823
|
-
}, n.ae = F, n.af = G0, n.ag = rD, n.ah = ko, n.ai =
|
|
154839
|
+
}, n.ae = F, n.af = G0, n.ag = rD, n.ah = ko, n.ai = Ch, n.aj = b9, n.ak = function(B) {
|
|
154824
154840
|
const I = {};
|
|
154825
154841
|
if (B.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((h, d, y, b) => {
|
|
154826
154842
|
const v = y || b;
|
|
@@ -155108,7 +155124,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
155108
155124
|
return B[0] = I[0] + h[0] * d, B[1] = I[1] + h[1] * d, B[2] = I[2] + h[2] * d, B;
|
|
155109
155125
|
}, n.by = VA, n.bz = function() {
|
|
155110
155126
|
return new Float64Array(3);
|
|
155111
|
-
}, n.c = ki, n.c$ =
|
|
155127
|
+
}, n.c = ki, n.c$ = oh, n.c0 = class extends Po {
|
|
155112
155128
|
constructor(B, I) {
|
|
155113
155129
|
super(B, I), this.current = PI;
|
|
155114
155130
|
}
|
|
@@ -155119,7 +155135,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
155119
155135
|
break;
|
|
155120
155136
|
}
|
|
155121
155137
|
}
|
|
155122
|
-
}, n.c1 =
|
|
155138
|
+
}, n.c1 = lh, n.c2 = class extends Po {
|
|
155123
155139
|
constructor(B, I) {
|
|
155124
155140
|
super(B, I), this.current = [0, 0, 0];
|
|
155125
155141
|
}
|
|
@@ -158740,8 +158756,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158740
158756
|
var Mr, zs;
|
|
158741
158757
|
if (u[st.crossTileID]) return;
|
|
158742
158758
|
if (QA) return void (this.placements[st.crossTileID] = new ZE(!1, !1, !1));
|
|
158743
|
-
let qr = !1, on = !1, yn = !0, Uo = null, Ps = { box: null, placeable: !1, offscreen: null, occluded: !1 }, sa = { placeable: !1 }, uo = null, Zn = null, To = null,
|
|
158744
|
-
Rt.textFeatureIndex ?
|
|
158759
|
+
let qr = !1, on = !1, yn = !0, Uo = null, Ps = { box: null, placeable: !1, offscreen: null, occluded: !1 }, sa = { placeable: !1 }, uo = null, Zn = null, To = null, gh = 0, Ih = 0, ch = 0;
|
|
158760
|
+
Rt.textFeatureIndex ? gh = Rt.textFeatureIndex : st.useRuntimeCollisionCircles && (gh = st.featureIndex), Rt.verticalTextFeatureIndex && (Ih = Rt.verticalTextFeatureIndex);
|
|
158745
158761
|
const Po = Rt.textBox;
|
|
158746
158762
|
if (Po) {
|
|
158747
158763
|
const PI = (Ms) => {
|
|
@@ -158769,18 +158785,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158769
158785
|
let Ms = o.aM[(zs = (Mr = this.prevPlacement) === null || Mr === void 0 ? void 0 : Mr.variableOffsets[st.crossTileID]) === null || zs === void 0 ? void 0 : zs.anchor];
|
|
158770
158786
|
const cs = (vs, SB, y0) => {
|
|
158771
158787
|
const qc = vs.x2 - vs.x1, Uw = vs.y2 - vs.y1, OR = st.textBoxScale, Tw = se && Ce === "never" ? SB : null;
|
|
158772
|
-
let
|
|
158773
|
-
Ms &&
|
|
158774
|
-
for (let Pw = 0; Pw <
|
|
158788
|
+
let hh = null, Bh = $A === "never" ? 1 : 2, Ch = "never";
|
|
158789
|
+
Ms && Bh++;
|
|
158790
|
+
for (let Pw = 0; Pw < Bh; Pw++) {
|
|
158775
158791
|
for (let Jw = za; Jw < Rg; Jw++) {
|
|
158776
158792
|
const m0 = F.textAnchorOffsets.get(Jw);
|
|
158777
158793
|
if (Ms && m0.textAnchor !== Ms) continue;
|
|
158778
|
-
const w0 = this.attemptAnchorPlacement(m0, vs, qc, Uw, OR, Ae, le, aA, lt, X, UA,
|
|
158779
|
-
if (w0 && (
|
|
158794
|
+
const w0 = this.attemptAnchorPlacement(m0, vs, qc, Uw, OR, Ae, le, aA, lt, X, UA, Ch, st, F, y0, K, z, Tw, It);
|
|
158795
|
+
if (w0 && (hh = w0.placedGlyphBoxes, hh?.placeable)) return qr = !0, Uo = w0.shift, hh;
|
|
158780
158796
|
}
|
|
158781
|
-
Ms ? Ms = null :
|
|
158797
|
+
Ms ? Ms = null : Ch = $A;
|
|
158782
158798
|
}
|
|
158783
|
-
return m && !
|
|
158799
|
+
return m && !hh && (hh = { box: this.collisionIndex.placeCollisionBox(Po, "always", aA, lt, X, le, Ae, K, UA.predicate, It, void 0, Jt).box, offscreen: !1, placeable: !1, occluded: !1 }), hh;
|
|
158784
158800
|
};
|
|
158785
158801
|
JI((() => cs(Po, Rt.iconBox, o.ax.horizontal)), (() => {
|
|
158786
158802
|
const vs = Rt.verticalTextBox;
|
|
@@ -158797,14 +158813,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158797
158813
|
const PI = F.text.placedSymbolArray.get(st.centerJustifiedTextSymbolIndex), JI = o.ay(F.textSizeData, wA, PI), za = L.get("text-padding");
|
|
158798
158814
|
Zn = this.collisionIndex.placeCollisionCircles($A, PI, F.lineVertexArray, F.glyphOffsetArray, JI, X, oA, m, le, UA.predicate, st.collisionCircleDiameter, za, K, It), Zn.circles.length && Zn.collisionDetected && !m && o.w("Collisions detected, but collision boxes are not shown"), qr = te || Zn.circles.length > 0 && !Zn.collisionDetected, yn && (yn = Zn.offscreen);
|
|
158799
158815
|
}
|
|
158800
|
-
if (Rt.iconFeatureIndex && (
|
|
158816
|
+
if (Rt.iconFeatureIndex && (ch = Rt.iconFeatureIndex), Rt.iconBox) {
|
|
158801
158817
|
const PI = (JI) => this.collisionIndex.placeCollisionBox(JI, Ce, aA, lt, X, le, Ae, z, UA.predicate, It, se && Uo ? Uo : void 0, Jt);
|
|
158802
158818
|
sa && sa.placeable && Rt.verticalIconBox ? (To = PI(Rt.verticalIconBox), on = To.placeable) : (To = PI(Rt.iconBox), on = To.placeable), yn && (yn = To.offscreen);
|
|
158803
158819
|
}
|
|
158804
|
-
const Oc = zA || st.numHorizontalGlyphVertices === 0 && st.numVerticalGlyphVertices === 0,
|
|
158805
|
-
Oc ||
|
|
158820
|
+
const Oc = zA || st.numHorizontalGlyphVertices === 0 && st.numVerticalGlyphVertices === 0, lh = ee || st.numIconVertices === 0;
|
|
158821
|
+
Oc || lh ? lh ? Oc || on && (on = qr) : qr = on && qr : on = qr = on && qr;
|
|
158806
158822
|
const p0 = on && To.placeable;
|
|
158807
|
-
if (qr && uo.placeable && this.collisionIndex.insertCollisionBox(uo.box, $A, L.get("text-ignore-placement"), F.bucketInstanceId, sa && sa.placeable &&
|
|
158823
|
+
if (qr && uo.placeable && this.collisionIndex.insertCollisionBox(uo.box, $A, L.get("text-ignore-placement"), F.bucketInstanceId, sa && sa.placeable && Ih ? Ih : gh, UA.ID), p0 && this.collisionIndex.insertCollisionBox(To.box, Ce, L.get("icon-ignore-placement"), F.bucketInstanceId, ch, UA.ID), Zn && qr && this.collisionIndex.insertCollisionCircles(Zn.circles, $A, L.get("text-ignore-placement"), F.bucketInstanceId, gh, UA.ID), m && this.storeCollisionData(F.bucketInstanceId, Zt, Rt, uo, To, Zn), st.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
|
158808
158824
|
if (F.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
|
|
158809
158825
|
this.placements[st.crossTileID] = new ZE((qr || je) && !uo?.occluded, (on || Ze) && !To?.occluded, yn || F.justReloaded), u[st.crossTileID] = !0;
|
|
158810
158826
|
};
|
|
@@ -158947,12 +158963,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158947
158963
|
const K = m[0] - ds, z = m[1] - ds, X = m[2] - ds, oA = m[3] - ds;
|
|
158948
158964
|
x.emplaceBack(c ? 1 : 0, u ? 1 : 0, F || 0, L || 0, K, z), x.emplaceBack(c ? 1 : 0, u ? 1 : 0, F || 0, L || 0, X, z), x.emplaceBack(c ? 1 : 0, u ? 1 : 0, F || 0, L || 0, X, oA), x.emplaceBack(c ? 1 : 0, u ? 1 : 0, F || 0, L || 0, K, oA);
|
|
158949
158965
|
}
|
|
158950
|
-
const OC = Math.pow(2, 25), eQ = Math.pow(2, 24), qC = Math.pow(2, 17), nB = Math.pow(2, 16), oB = Math.pow(2, 9), Zf = Math.pow(2, 8),
|
|
158966
|
+
const OC = Math.pow(2, 25), eQ = Math.pow(2, 24), qC = Math.pow(2, 17), nB = Math.pow(2, 16), oB = Math.pow(2, 9), Zf = Math.pow(2, 8), Ll = Math.pow(2, 1);
|
|
158951
158967
|
function vo(x) {
|
|
158952
158968
|
if (x.opacity === 0 && !x.placed) return 0;
|
|
158953
158969
|
if (x.opacity === 1 && x.placed) return 4294967295;
|
|
158954
158970
|
const c = x.placed ? 1 : 0, u = Math.floor(127 * x.opacity);
|
|
158955
|
-
return u * OC + c * eQ + u * qC + c * nB + u * oB + c * Zf + u *
|
|
158971
|
+
return u * OC + c * eQ + u * qC + c * nB + u * oB + c * Zf + u * Ll + c;
|
|
158956
158972
|
}
|
|
158957
158973
|
const aB = 0;
|
|
158958
158974
|
class xI {
|
|
@@ -158966,7 +158982,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
158966
158982
|
return !1;
|
|
158967
158983
|
}
|
|
158968
158984
|
}
|
|
158969
|
-
class
|
|
158985
|
+
class Ul {
|
|
158970
158986
|
constructor(c, u, m, F, L, K, z, X) {
|
|
158971
158987
|
this.placement = new Ls(c, u, K, z, X), this._currentPlacementIndex = m.length - 1, this._forceFullPlacement = F, this._showCollisionBoxes = L, this._done = !1;
|
|
158972
158988
|
}
|
|
@@ -159994,7 +160010,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
159994
160010
|
setErrorQueryLatitudeDegrees(c) {
|
|
159995
160011
|
}
|
|
159996
160012
|
}
|
|
159997
|
-
class
|
|
160013
|
+
class Tl {
|
|
159998
160014
|
constructor(c = 0, u = 0, m = 0, F = 0) {
|
|
159999
160015
|
if (isNaN(c) || c < 0 || isNaN(u) || u < 0 || isNaN(m) || m < 0 || isNaN(F) || F < 0) throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");
|
|
160000
160016
|
this.top = c, this.bottom = u, this.left = m, this.right = F;
|
|
@@ -160010,7 +160026,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
160010
160026
|
return this.top === c.top && this.bottom === c.bottom && this.left === c.left && this.right === c.right;
|
|
160011
160027
|
}
|
|
160012
160028
|
clone() {
|
|
160013
|
-
return new
|
|
160029
|
+
return new Tl(this.top, this.bottom, this.left, this.right);
|
|
160014
160030
|
}
|
|
160015
160031
|
toJSON() {
|
|
160016
160032
|
return { top: this.top, bottom: this.bottom, left: this.left, right: this.right };
|
|
@@ -160027,10 +160043,10 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
160027
160043
|
class Fc {
|
|
160028
160044
|
constructor(c, u) {
|
|
160029
160045
|
var m;
|
|
160030
|
-
this.applyConstrain = (F, L) => this._constrainOverride !== null ? this._constrainOverride(F, L) : this._callbacks.defaultConstrain(F, L), this._callbacks = c, this._tileSize = 512, this._renderWorldCopies = u?.renderWorldCopies === void 0 || !!u?.renderWorldCopies, this._minZoom = u?.minZoom || 0, this._maxZoom = u?.maxZoom || 22, this._minPitch = u?.minPitch == null ? 0 : u?.minPitch, this._maxPitch = u?.maxPitch == null ? 60 : u?.maxPitch, this._constrainOverride = (m = u?.constrainOverride) !== null && m !== void 0 ? m : null, this.setMaxBounds(), this._width = 0, this._height = 0, this._center = new o.W(0, 0), this._elevation = 0, this._zoom = 0, this._tileZoom = gs(this._zoom), this._scale = o.ao(this._zoom), this._bearingInRadians = 0, this._fovInRadians = 0.6435011087932844, this._pitchInRadians = 0, this._rollInRadians = 0, this._unmodified = !0, this._edgeInsets = new
|
|
160046
|
+
this.applyConstrain = (F, L) => this._constrainOverride !== null ? this._constrainOverride(F, L) : this._callbacks.defaultConstrain(F, L), this._callbacks = c, this._tileSize = 512, this._renderWorldCopies = u?.renderWorldCopies === void 0 || !!u?.renderWorldCopies, this._minZoom = u?.minZoom || 0, this._maxZoom = u?.maxZoom || 22, this._minPitch = u?.minPitch == null ? 0 : u?.minPitch, this._maxPitch = u?.maxPitch == null ? 60 : u?.maxPitch, this._constrainOverride = (m = u?.constrainOverride) !== null && m !== void 0 ? m : null, this.setMaxBounds(), this._width = 0, this._height = 0, this._center = new o.W(0, 0), this._elevation = 0, this._zoom = 0, this._tileZoom = gs(this._zoom), this._scale = o.ao(this._zoom), this._bearingInRadians = 0, this._fovInRadians = 0.6435011087932844, this._pitchInRadians = 0, this._rollInRadians = 0, this._unmodified = !0, this._edgeInsets = new Tl(), this._minElevationForCurrentTile = 0, this._autoCalculateNearFarZ = !0;
|
|
160031
160047
|
}
|
|
160032
160048
|
apply(c, u, m) {
|
|
160033
|
-
this._constrainOverride = c.constrainOverride, this._latRange = c.latRange, this._lngRange = c.lngRange, this._width = c.width, this._height = c.height, this._center = c.center, this._elevation = c.elevation, this._minElevationForCurrentTile = c.minElevationForCurrentTile, this._zoom = c.zoom, this._tileZoom = gs(this._zoom), this._scale = o.ao(this._zoom), this._bearingInRadians = c.bearingInRadians, this._fovInRadians = c.fovInRadians, this._pitchInRadians = c.pitchInRadians, this._rollInRadians = c.rollInRadians, this._unmodified = c.unmodified, this._edgeInsets = new
|
|
160049
|
+
this._constrainOverride = c.constrainOverride, this._latRange = c.latRange, this._lngRange = c.lngRange, this._width = c.width, this._height = c.height, this._center = c.center, this._elevation = c.elevation, this._minElevationForCurrentTile = c.minElevationForCurrentTile, this._zoom = c.zoom, this._tileZoom = gs(this._zoom), this._scale = o.ao(this._zoom), this._bearingInRadians = c.bearingInRadians, this._fovInRadians = c.fovInRadians, this._pitchInRadians = c.pitchInRadians, this._rollInRadians = c.rollInRadians, this._unmodified = c.unmodified, this._edgeInsets = new Tl(c.padding.top, c.padding.bottom, c.padding.left, c.padding.right), this._minZoom = c.minZoom, this._maxZoom = c.maxZoom, this._minPitch = c.minPitch, this._maxPitch = c.maxPitch, this._renderWorldCopies = c.renderWorldCopies, this._cameraToCenterDistance = c.cameraToCenterDistance, this._nearZ = c.nearZ, this._farZ = c.farZ, this._autoCalculateNearFarZ = !m && c.autoCalculateNearFarZ, u && this.constrainInternal(), this._calcMatrices();
|
|
160034
160050
|
}
|
|
160035
160051
|
get pixelsToClipSpaceMatrix() {
|
|
160036
160052
|
return this._pixelsToClipSpaceMatrix;
|
|
@@ -160885,20 +160901,20 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
160885
160901
|
}
|
|
160886
160902
|
}
|
|
160887
160903
|
Jr.Replace = [1, 0], Jr.disabled = new Jr(Jr.Replace, o.bo.transparent, [!1, !1, !1, !1]), Jr.unblended = new Jr(Jr.Replace, o.bo.transparent, [!0, !0, !0, !0]), Jr.alphaBlended = new Jr([1, 771], o.bo.transparent, [!0, !0, !0, !0]);
|
|
160888
|
-
const
|
|
160904
|
+
const Pl = 2305;
|
|
160889
160905
|
class sr {
|
|
160890
160906
|
constructor(c, u, m) {
|
|
160891
160907
|
this.enable = c, this.mode = u, this.frontFace = m;
|
|
160892
160908
|
}
|
|
160893
160909
|
}
|
|
160894
|
-
sr.disabled = new sr(!1, 1029,
|
|
160910
|
+
sr.disabled = new sr(!1, 1029, Pl), sr.backCCW = new sr(!0, 1029, Pl), sr.frontCCW = new sr(!0, 1028, Pl);
|
|
160895
160911
|
class _i {
|
|
160896
160912
|
constructor(c, u, m) {
|
|
160897
160913
|
this.func = c, this.mask = u, this.range = m;
|
|
160898
160914
|
}
|
|
160899
160915
|
}
|
|
160900
160916
|
_i.ReadOnly = !1, _i.ReadWrite = !0, _i.disabled = new _i(519, _i.ReadOnly, [0, 1]);
|
|
160901
|
-
const
|
|
160917
|
+
const Jl = 7680;
|
|
160902
160918
|
class or {
|
|
160903
160919
|
constructor(c, u, m, F, L, K) {
|
|
160904
160920
|
this.test = c, this.ref = u, this.mask = m, this.fail = F, this.depthFail = L, this.pass = K;
|
|
@@ -160907,8 +160923,8 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
160907
160923
|
function ma(x) {
|
|
160908
160924
|
return typeof WebGL2RenderingContext < "u" && x instanceof WebGL2RenderingContext;
|
|
160909
160925
|
}
|
|
160910
|
-
or.disabled = new or({ func: 519, mask: 0 }, 0, 0,
|
|
160911
|
-
class
|
|
160926
|
+
or.disabled = new or({ func: 519, mask: 0 }, 0, 0, Jl, Jl, Jl);
|
|
160927
|
+
class Hl {
|
|
160912
160928
|
get awaitingQuery() {
|
|
160913
160929
|
return !!this._readbackQueue;
|
|
160914
160930
|
}
|
|
@@ -160951,7 +160967,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
160951
160967
|
if (u === c.TIMEOUT_EXPIRED) return;
|
|
160952
160968
|
c.bindBuffer(c.PIXEL_PACK_BUFFER, this._pbo), c.getBufferSubData(c.PIXEL_PACK_BUFFER, 0, this._resultBuffer, 0, 4), c.bindBuffer(c.PIXEL_PACK_BUFFER, null);
|
|
160953
160969
|
} else this._bindFramebuffer(), c.readPixels(0, 0, this._texWidth, this._texHeight, this._texFormat, this._texType, this._resultBuffer);
|
|
160954
|
-
this._readbackQueue = null, this._measuredError =
|
|
160970
|
+
this._readbackQueue = null, this._measuredError = Hl._parseRGBA8float(this._resultBuffer), this._lastReadbackFrame = this._updateCount;
|
|
160955
160971
|
}
|
|
160956
160972
|
static _parseRGBA8float(c) {
|
|
160957
160973
|
let u = 0;
|
|
@@ -161017,7 +161033,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161017
161033
|
this._errorMeasurement && this._errorMeasurement.destroy();
|
|
161018
161034
|
}
|
|
161019
161035
|
updateGPUdependent(c) {
|
|
161020
|
-
this._errorMeasurement || (this._errorMeasurement = new
|
|
161036
|
+
this._errorMeasurement || (this._errorMeasurement = new Hl(c));
|
|
161021
161037
|
const u = o.Y(this._errorQueryLatitudeDegrees), m = 2 * Math.atan(Math.exp(Math.PI - u * Math.PI * 2)) - 0.5 * Math.PI, F = this._errorMeasurement.updateErrorLoop(u, m), L = _();
|
|
161022
161038
|
F !== this._errorMeasurementLastValue && (this._errorCorrectionPreviousValue = this._errorCorrectionUsable, this._errorMeasurementLastValue = F, this._errorMeasurementLastChangeTime = L);
|
|
161023
161039
|
const K = Math.min(Math.max((L - this._errorMeasurementLastChangeTime) / 1e3 / 0.5, 0), 1);
|
|
@@ -161052,7 +161068,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161052
161068
|
}
|
|
161053
161069
|
}
|
|
161054
161070
|
const A0 = new o.u({ type: new o.D(o.x.projection.type) });
|
|
161055
|
-
class
|
|
161071
|
+
class Yl extends o.E {
|
|
161056
161072
|
constructor(c) {
|
|
161057
161073
|
super(), this._transitionable = new o.y(A0, void 0), this.setProjection(c), this._transitioning = this._transitionable.untransitioned(), this.recalculate(new o.J(0)), this._mercatorProjection = new ho(), this._verticalPerspectiveProjection = new VC();
|
|
161058
161074
|
}
|
|
@@ -161149,15 +161165,15 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161149
161165
|
}
|
|
161150
161166
|
return new o.W(0, c);
|
|
161151
161167
|
}
|
|
161152
|
-
function
|
|
161168
|
+
function Kl(x) {
|
|
161153
161169
|
return Math.cos(x * Math.PI / 180);
|
|
161154
161170
|
}
|
|
161155
161171
|
function Us(x, c) {
|
|
161156
|
-
const u =
|
|
161172
|
+
const u = Kl(x), m = Kl(c);
|
|
161157
161173
|
return o.ar(m / u);
|
|
161158
161174
|
}
|
|
161159
161175
|
function kI(x, c) {
|
|
161160
|
-
const u = x.rotate(c.bearingInRadians), m = c.zoom + Us(c.center.lat, 0), F = o.bt(1 /
|
|
161176
|
+
const u = x.rotate(c.bearingInRadians), m = c.zoom + Us(c.center.lat, 0), F = o.bt(1 / Kl(c.center.lat), 1 / Kl(Math.min(Math.abs(c.center.lat), 60)), o.bw(m, 7, 3, 0, 1)), L = 360 / zC({ worldSize: c.worldSize, center: { lat: c.center.lat } });
|
|
161161
161177
|
return new o.W(c.center.lng - u.x * L * F, o.al(c.center.lat + u.y * L, -o.am, o.am));
|
|
161162
161178
|
}
|
|
161163
161179
|
function rQ(x) {
|
|
@@ -161190,14 +161206,14 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161190
161206
|
return this._cache.set(L, X), this._hadAnyChanges = !0, X;
|
|
161191
161207
|
}
|
|
161192
161208
|
}
|
|
161193
|
-
class
|
|
161209
|
+
class Ol {
|
|
161194
161210
|
constructor(c, u, m, F) {
|
|
161195
161211
|
this.min = m, this.max = F, this.points = c, this.planes = u;
|
|
161196
161212
|
}
|
|
161197
161213
|
static fromAabb(c, u) {
|
|
161198
161214
|
const m = [];
|
|
161199
161215
|
for (let F = 0; F < 8; F++) m.push([1 & ~F ? c[0] : u[0], (F >> 1 & 1) == 1 ? u[1] : c[1], (F >> 2 & 1) == 1 ? u[2] : c[2]]);
|
|
161200
|
-
return new
|
|
161216
|
+
return new Ol(m, [[-1, 0, 0, u[0]], [1, 0, 0, -c[0]], [0, -1, 0, u[1]], [0, 1, 0, -c[1]], [0, 0, -1, u[2]], [0, 0, 1, -c[2]]], c, u);
|
|
161201
161217
|
}
|
|
161202
161218
|
static fromCenterSizeAngles(c, u, m) {
|
|
161203
161219
|
const F = o.bA([], m[0], m[1], m[2]), L = o.bB([], [u[0], 0, 0], F), K = o.bB([], [0, u[1], 0], F), z = o.bB([], [0, 0, u[2]], F), X = [...c], oA = [...c];
|
|
@@ -161210,7 +161226,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161210
161226
|
const fA = [...c];
|
|
161211
161227
|
o.a_(fA, fA, o.aZ([], L, 1 & ~QA ? -1 : 1)), o.a_(fA, fA, o.aZ([], K, (QA >> 1 & 1) == 1 ? 1 : -1)), o.a_(fA, fA, o.aZ([], z, (QA >> 2 & 1) == 1 ? 1 : -1)), aA.push(fA);
|
|
161212
161228
|
}
|
|
161213
|
-
return new
|
|
161229
|
+
return new Ol(aA, [[...L, -o.b3(L, aA[0])], [...K, -o.b3(K, aA[0])], [...z, -o.b3(z, aA[0])], [-L[0], -L[1], -L[2], -o.b3(L, aA[7])], [-K[0], -K[1], -K[2], -o.b3(K, aA[7])], [-z[0], -z[1], -z[2], -o.b3(z, aA[7])]], X, oA);
|
|
161214
161230
|
}
|
|
161215
161231
|
intersectsFrustum(c) {
|
|
161216
161232
|
let u = !0;
|
|
@@ -161247,14 +161263,14 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161247
161263
|
return m === u ? 2 : m === 0 ? 0 : 1;
|
|
161248
161264
|
}
|
|
161249
161265
|
}
|
|
161250
|
-
function
|
|
161266
|
+
function ql(x, c, u) {
|
|
161251
161267
|
const m = x - c;
|
|
161252
161268
|
return m < 0 ? -m : Math.max(0, m - u);
|
|
161253
161269
|
}
|
|
161254
161270
|
function cB(x, c, u, m, F) {
|
|
161255
161271
|
const L = x - u;
|
|
161256
161272
|
let K;
|
|
161257
|
-
return K = L < 0 ? Math.min(-L, 1 + L - F) : L > F ? Math.min(Math.max(L - F, 0), 1 - L) : 0, Math.max(K,
|
|
161273
|
+
return K = L < 0 ? Math.min(-L, 1 + L - F) : L > F ? Math.min(Math.max(L - F, 0), 1 - L) : 0, Math.max(K, ql(c, m, F));
|
|
161258
161274
|
}
|
|
161259
161275
|
class LI {
|
|
161260
161276
|
constructor() {
|
|
@@ -161269,7 +161285,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161269
161285
|
return oA = Math.min(oA, cB(c, u, z, X, K)), oA = Math.min(oA, cB(c, u, z + 0.5, -X - K, K)), oA = Math.min(oA, cB(c, u, z + 0.5, 2 - X - K, K)), oA;
|
|
161270
161286
|
}
|
|
161271
161287
|
getWrap(c, u, m) {
|
|
161272
|
-
const F = 1 << u.z, L = 1 / F, K = u.x / F, z =
|
|
161288
|
+
const F = 1 << u.z, L = 1 / F, K = u.x / F, z = ql(c.x, K, L), X = ql(c.x, K - 1, L), oA = ql(c.x, K + 1, L), aA = Math.min(z, X, oA);
|
|
161273
161289
|
return aA === oA ? 1 : aA === X ? -1 : 0;
|
|
161274
161290
|
}
|
|
161275
161291
|
allowVariableZoom(c, u) {
|
|
@@ -161288,8 +161304,8 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161288
161304
|
const oA = new o.a3(c.z, u, c.z, c.x, c.y), aA = F.terrain.getMinMaxElevation(oA);
|
|
161289
161305
|
z = (L = aA.minElevation) !== null && L !== void 0 ? L : Math.min(0, m), X = (K = aA.maxElevation) !== null && K !== void 0 ? K : Math.max(0, m);
|
|
161290
161306
|
}
|
|
161291
|
-
if (z /= o.bD, X /= o.bD, z += 1, X += 1, c.z <= 0) return
|
|
161292
|
-
if (c.z === 1) return
|
|
161307
|
+
if (z /= o.bD, X /= o.bD, z += 1, X += 1, c.z <= 0) return Ol.fromAabb([-X, -X, -X], [X, X, X]);
|
|
161308
|
+
if (c.z === 1) return Ol.fromAabb([c.x === 0 ? -X : 0, c.y === 0 ? 0 : -X, -X], [c.x === 0 ? 0 : X, c.y === 0 ? X : 0, X]);
|
|
161293
161309
|
{
|
|
161294
161310
|
const oA = [Rs(0, 0, c.x, c.y, c.z), Rs(o.a6, 0, c.x, c.y, c.z), Rs(o.a6, o.a6, c.x, c.y, c.z), Rs(0, o.a6, c.x, c.y, c.z)], aA = [];
|
|
161295
161311
|
for (const lt of oA) aA.push(o.aZ([], lt, X));
|
|
@@ -161306,7 +161322,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
161306
161322
|
const $A = o.b2([], oA[0], oA[3]);
|
|
161307
161323
|
o.b1($A, $A), aA.push(o.aZ([], wA, X)), c.y >= (1 << c.z) / 2 && aA.push(o.aZ([], Rs(o.a6 / 2, 0, c.x, c.y, c.z), X)), c.y < (1 << c.z) / 2 && aA.push(o.aZ([], Rs(o.a6 / 2, o.a6, c.x, c.y, c.z), X));
|
|
161308
161324
|
const te = pr(wA, aA), Ce = pr(zA, aA), ie = [-wA[0], -wA[1], -wA[2], te.max], Ae = [wA[0], wA[1], wA[2], -te.min], le = [-zA[0], -zA[1], -zA[2], Ce.max], se = [zA[0], zA[1], zA[2], -Ce.min], _e = [...ee, 0], je = [...$A, 0], Ze = [];
|
|
161309
|
-
return c.y === 0 ? Ze.push(o.bC(je, _e, ie), o.bC(je, _e, Ae)) : Ze.push(o.bC(le, _e, ie), o.bC(le, _e, Ae), o.bC(le, je, ie), o.bC(le, je, Ae)), c.y === (1 << c.z) - 1 ? Ze.push(o.bC(je, _e, ie), o.bC(je, _e, Ae)) : Ze.push(o.bC(se, _e, ie), o.bC(se, _e, Ae), o.bC(se, je, ie), o.bC(se, je, Ae)), new
|
|
161325
|
+
return c.y === 0 ? Ze.push(o.bC(je, _e, ie), o.bC(je, _e, Ae)) : Ze.push(o.bC(le, _e, ie), o.bC(le, _e, Ae), o.bC(le, je, ie), o.bC(le, je, Ae)), c.y === (1 << c.z) - 1 ? Ze.push(o.bC(je, _e, ie), o.bC(je, _e, Ae)) : Ze.push(o.bC(se, _e, ie), o.bC(se, _e, Ae), o.bC(se, je, ie), o.bC(se, je, Ae)), new Ol(Ze, [ie, Ae, le, se, _e, je], QA, fA);
|
|
161310
161326
|
}
|
|
161311
161327
|
}
|
|
161312
161328
|
}
|
|
@@ -162827,14 +162843,14 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
162827
162843
|
const u = (function(m, F) {
|
|
162828
162844
|
const L = { constrainOverride: F };
|
|
162829
162845
|
if (Array.isArray(m)) {
|
|
162830
|
-
const K = new
|
|
162846
|
+
const K = new Yl({ type: m });
|
|
162831
162847
|
return { projection: K, transform: new _c(L), cameraHelper: new Ka(K) };
|
|
162832
162848
|
}
|
|
162833
162849
|
switch (m) {
|
|
162834
162850
|
case "mercator":
|
|
162835
162851
|
return { projection: new ho(), transform: new Nc(L), cameraHelper: new fg() };
|
|
162836
162852
|
case "globe": {
|
|
162837
|
-
const K = new
|
|
162853
|
+
const K = new Yl({ type: ["interpolate", ["linear"], ["zoom"], 11, "vertical-perspective", 12, "mercator"] });
|
|
162838
162854
|
return { projection: K, transform: new _c(L), cameraHelper: new Ka(K) };
|
|
162839
162855
|
}
|
|
162840
162856
|
case "vertical-perspective":
|
|
@@ -162883,7 +162899,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
162883
162899
|
const QA = this.crossTileSymbolIndex.addLayer(aA, X[aA.source], c.center.lng);
|
|
162884
162900
|
K || (K = QA);
|
|
162885
162901
|
}
|
|
162886
|
-
if (this.crossTileSymbolIndex.pruneUnusedLayers(this._order), L || (L = this._layerOrderChanged || m === 0), (L || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(_(), c.zoom)) && (this.pauseablePlacement = new
|
|
162902
|
+
if (this.crossTileSymbolIndex.pruneUnusedLayers(this._order), L || (L = this._layerOrderChanged || m === 0), (L || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(_(), c.zoom)) && (this.pauseablePlacement = new Ul(c, this.map.terrain, this._order, L, u, m, F, this.placement), this._layerOrderChanged = !1), this.pauseablePlacement.isDone() ? this.placement.setStale() : (this.pauseablePlacement.continuePlacement(this._order, this._layers, X), this.pauseablePlacement.isDone() && (this.placement = this.pauseablePlacement.commit(_()), z = !0), K && this.pauseablePlacement.placement.setStale()), z || K) for (const oA of this._order) {
|
|
162887
162903
|
const aA = this._layers[oA];
|
|
162888
162904
|
aA.type === "symbol" && this.placement.updateLayerOpacities(aA, X[aA.source]);
|
|
162889
162905
|
}
|
|
@@ -163065,7 +163081,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163065
163081
|
}, oQ = (x) => ({ u_pixel_extrude_scale: [1 / x.width, 1 / x.height] }), kc = (x) => ({ u_viewport_size: [x.width, x.height] }), lB = (x, c = 1) => ({ u_color: x, u_overlay: 0, u_overlay_scale: c }), aQ = (x, c, u, m) => {
|
|
163066
163082
|
const F = o.aK(x, 1, c) / (o.a6 * Math.pow(2, x.tileID.overscaledZ)) * 2 * Math.PI * m;
|
|
163067
163083
|
return { u_extrude_scale: o.aK(x, 1, c), u_intensity: u, u_globe_extrude_scale: F };
|
|
163068
|
-
},
|
|
163084
|
+
}, Wl = (x, c, u, m) => {
|
|
163069
163085
|
const F = o.O();
|
|
163070
163086
|
o.c7(F, 0, x.width, x.height, 0, 0, 1);
|
|
163071
163087
|
const L = x.context.gl;
|
|
@@ -163103,27 +163119,27 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163103
163119
|
const BB = (x, c, u = 0) => ({ u_image: 0, u_unpack: c.getUnpackVector(), u_dimension: [c.stride, c.stride], u_elevation_stops: 1, u_color_stops: 4, u_color_ramp_size: u, u_opacity: x.paint.get("color-relief-opacity") }), kn = (x, c, u, m) => {
|
|
163104
163120
|
const F = x.transform;
|
|
163105
163121
|
return { u_translation: mg(x, c, u), u_ratio: m / o.aK(c, 1, F.zoom), u_device_pixel_ratio: x.pixelRatio, u_units_to_pixels: [1 / F.pixelsToGLUnits[0], 1 / F.pixelsToGLUnits[1]] };
|
|
163106
|
-
}, i0 = (x, c, u, m, F) => o.e(kn(x, c, u, m), { u_image: 0, u_image_height: F }),
|
|
163107
|
-
const L = x.transform, K =
|
|
163122
|
+
}, i0 = (x, c, u, m, F) => o.e(kn(x, c, u, m), { u_image: 0, u_image_height: F }), Vl = (x, c, u, m, F) => {
|
|
163123
|
+
const L = x.transform, K = zl(c, L);
|
|
163108
163124
|
return { u_translation: mg(x, c, u), u_texsize: c.imageAtlasTexture.size, u_ratio: m / o.aK(c, 1, L.zoom), u_device_pixel_ratio: x.pixelRatio, u_image: 0, u_scale: [K, F.fromScale, F.toScale], u_fade: F.t, u_units_to_pixels: [1 / L.pixelsToGLUnits[0], 1 / L.pixelsToGLUnits[1]] };
|
|
163109
163125
|
}, cQ = (x, c, u, m, F) => {
|
|
163110
|
-
const L =
|
|
163126
|
+
const L = zl(c, x.transform);
|
|
163111
163127
|
return o.e(kn(x, c, u, m), { u_tileratio: L, u_crossfade_from: F.fromScale, u_crossfade_to: F.toScale, u_image: 0, u_mix: F.t, u_lineatlas_width: x.lineAtlas.width, u_lineatlas_height: x.lineAtlas.height });
|
|
163112
163128
|
}, lQ = (x, c, u, m, F, L) => {
|
|
163113
|
-
const K =
|
|
163129
|
+
const K = zl(c, x.transform);
|
|
163114
163130
|
return o.e(kn(x, c, u, m), { u_image: 0, u_image_height: L, u_tileratio: K, u_crossfade_from: F.fromScale, u_crossfade_to: F.toScale, u_image_dash: 1, u_mix: F.t, u_lineatlas_width: x.lineAtlas.width, u_lineatlas_height: x.lineAtlas.height });
|
|
163115
163131
|
};
|
|
163116
|
-
function
|
|
163132
|
+
function zl(x, c) {
|
|
163117
163133
|
return 1 / o.aK(x, 1, c.tileZoom);
|
|
163118
163134
|
}
|
|
163119
163135
|
function mg(x, c, u) {
|
|
163120
163136
|
return o.aL(x.transform, c, u.paint.get("line-translate"), u.paint.get("line-translate-anchor"));
|
|
163121
163137
|
}
|
|
163122
163138
|
const hQ = (x, c, u, m, F) => {
|
|
163123
|
-
return { u_tl_parent: x, u_scale_parent: c, u_buffer_scale: 1, u_fade_t: u.mix, u_opacity: u.opacity * m.paint.get("raster-opacity"), u_image0: 0, u_image1: 1, u_brightness_low: m.paint.get("raster-brightness-min"), u_brightness_high: m.paint.get("raster-brightness-max"), u_saturation_factor: (K = m.paint.get("raster-saturation"), K > 0 ? 1 - 1 / (1.001 - K) : -K), u_contrast_factor: (L = m.paint.get("raster-contrast"), L > 0 ? 1 / (1 - L) : 1 + L), u_spin_weights:
|
|
163139
|
+
return { u_tl_parent: x, u_scale_parent: c, u_buffer_scale: 1, u_fade_t: u.mix, u_opacity: u.opacity * m.paint.get("raster-opacity"), u_image0: 0, u_image1: 1, u_brightness_low: m.paint.get("raster-brightness-min"), u_brightness_high: m.paint.get("raster-brightness-max"), u_saturation_factor: (K = m.paint.get("raster-saturation"), K > 0 ? 1 - 1 / (1.001 - K) : -K), u_contrast_factor: (L = m.paint.get("raster-contrast"), L > 0 ? 1 / (1 - L) : 1 + L), u_spin_weights: jl(m.paint.get("raster-hue-rotate")), u_coords_top: [F[0].x, F[0].y, F[1].x, F[1].y], u_coords_bottom: [F[3].x, F[3].y, F[2].x, F[2].y] };
|
|
163124
163140
|
var L, K;
|
|
163125
163141
|
};
|
|
163126
|
-
function
|
|
163142
|
+
function jl(x) {
|
|
163127
163143
|
x *= Math.PI / 180;
|
|
163128
163144
|
const c = Math.sin(x), u = Math.cos(x);
|
|
163129
163145
|
return [(2 * u + 1) / 3, (-Math.sqrt(3) * c - u + 1) / 3, (Math.sqrt(3) * c - u + 1) / 3];
|
|
@@ -163137,8 +163153,8 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163137
163153
|
}, CQ = (x, c, u, m, F, L, K, z, X, oA, aA, QA, fA) => o.e(BQ(x, c, u, m, F, L, K, z, X, oA, !0, aA, !0, fA), { u_texsize_icon: QA, u_texture_icon: 1 }), Lc = (x, c) => ({ u_opacity: x, u_color: c }), uQ = (x, c, u, m, F) => o.e((function(L, K, z, X) {
|
|
163138
163154
|
const oA = z.imageManager.getPattern(L.from.toString()), aA = z.imageManager.getPattern(L.to.toString()), { width: QA, height: fA } = z.imageManager.getPixelSize(), wA = Math.pow(2, X.tileID.overscaledZ), UA = X.tileSize * Math.pow(2, z.transform.tileZoom) / wA, zA = UA * (X.tileID.canonical.x + X.tileID.wrap * wA), ee = UA * X.tileID.canonical.y;
|
|
163139
163155
|
return { u_image: 0, u_pattern_tl_a: oA.tl, u_pattern_br_a: oA.br, u_pattern_tl_b: aA.tl, u_pattern_br_b: aA.br, u_texsize: [QA, fA], u_mix: K.t, u_pattern_size_a: oA.displaySize, u_pattern_size_b: aA.displaySize, u_scale_a: K.fromScale, u_scale_b: K.toScale, u_tile_units_to_pixels: 1 / o.aK(X, 1, z.transform.tileZoom), u_pixel_coord_upper: [zA >> 16, ee >> 16], u_pixel_coord_lower: [65535 & zA, 65535 & ee] };
|
|
163140
|
-
})(u, F, c, m), { u_opacity: x }),
|
|
163141
|
-
}, r0 = { fillExtrusion: (x, c) => ({ u_lightpos: new o.c2(x, c.u_lightpos), u_lightpos_globe: new o.c2(x, c.u_lightpos_globe), u_lightintensity: new o.bp(x, c.u_lightintensity), u_lightcolor: new o.c2(x, c.u_lightcolor), u_vertical_gradient: new o.bp(x, c.u_vertical_gradient), u_opacity: new o.bp(x, c.u_opacity), u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillExtrusionPattern: (x, c) => ({ u_lightpos: new o.c2(x, c.u_lightpos), u_lightpos_globe: new o.c2(x, c.u_lightpos_globe), u_lightintensity: new o.bp(x, c.u_lightintensity), u_lightcolor: new o.c2(x, c.u_lightcolor), u_vertical_gradient: new o.bp(x, c.u_vertical_gradient), u_height_factor: new o.bp(x, c.u_height_factor), u_opacity: new o.bp(x, c.u_opacity), u_fill_translate: new o.c3(x, c.u_fill_translate), u_image: new o.b_(x, c.u_image), u_texsize: new o.c3(x, c.u_texsize), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade) }), fill: (x, c) => ({ u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillPattern: (x, c) => ({ u_image: new o.b_(x, c.u_image), u_texsize: new o.c3(x, c.u_texsize), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade), u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillOutline: (x, c) => ({ u_world: new o.c3(x, c.u_world), u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillOutlinePattern: (x, c) => ({ u_world: new o.c3(x, c.u_world), u_image: new o.b_(x, c.u_image), u_texsize: new o.c3(x, c.u_texsize), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade), u_fill_translate: new o.c3(x, c.u_fill_translate) }), circle: (x, c) => ({ u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_scale_with_map: new o.b_(x, c.u_scale_with_map), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_extrude_scale: new o.c3(x, c.u_extrude_scale), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_globe_extrude_scale: new o.bp(x, c.u_globe_extrude_scale), u_translate: new o.c3(x, c.u_translate) }), collisionBox: (x, c) => ({ u_pixel_extrude_scale: new o.c3(x, c.u_pixel_extrude_scale) }), collisionCircle: (x, c) => ({ u_viewport_size: new o.c3(x, c.u_viewport_size) }), debug: (x, c) => ({ u_color: new o.b$(x, c.u_color), u_overlay: new o.b_(x, c.u_overlay), u_overlay_scale: new o.bp(x, c.u_overlay_scale) }), depth: jl, clippingMask: jl, heatmap: (x, c) => ({ u_extrude_scale: new o.bp(x, c.u_extrude_scale), u_intensity: new o.bp(x, c.u_intensity), u_globe_extrude_scale: new o.bp(x, c.u_globe_extrude_scale) }), heatmapTexture: (x, c) => ({ u_matrix: new o.c0(x, c.u_matrix), u_world: new o.c3(x, c.u_world), u_image: new o.b_(x, c.u_image), u_color_ramp: new o.b_(x, c.u_color_ramp), u_opacity: new o.bp(x, c.u_opacity) }), hillshade: (x, c) => ({ u_image: new o.b_(x, c.u_image), u_latrange: new o.c3(x, c.u_latrange), u_exaggeration: new o.bp(x, c.u_exaggeration), u_altitudes: new o.c9(x, c.u_altitudes), u_azimuths: new o.c9(x, c.u_azimuths), u_accent: new o.b$(x, c.u_accent), u_method: new o.b_(x, c.u_method), u_shadows: new o.c8(x, c.u_shadows), u_highlights: new o.c8(x, c.u_highlights) }), hillshadePrepare: (x, c) => ({ u_matrix: new o.c0(x, c.u_matrix), u_image: new o.b_(x, c.u_image), u_dimension: new o.c3(x, c.u_dimension), u_zoom: new o.bp(x, c.u_zoom), u_unpack: new o.c1(x, c.u_unpack) }), colorRelief: (x, c) => ({ u_image: new o.b_(x, c.u_image), u_unpack: new o.c1(x, c.u_unpack), u_dimension: new o.c3(x, c.u_dimension), u_elevation_stops: new o.b_(x, c.u_elevation_stops), u_color_stops: new o.b_(x, c.u_color_stops), u_color_ramp_size: new o.b_(x, c.u_color_ramp_size), u_opacity: new o.bp(x, c.u_opacity) }), line: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels) }), lineGradient: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_image: new o.b_(x, c.u_image), u_image_height: new o.bp(x, c.u_image_height) }), linePattern: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_texsize: new o.c3(x, c.u_texsize), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_image: new o.b_(x, c.u_image), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade) }), lineSDF: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_image: new o.b_(x, c.u_image), u_mix: new o.bp(x, c.u_mix), u_tileratio: new o.bp(x, c.u_tileratio), u_crossfade_from: new o.bp(x, c.u_crossfade_from), u_crossfade_to: new o.bp(x, c.u_crossfade_to), u_lineatlas_width: new o.bp(x, c.u_lineatlas_width), u_lineatlas_height: new o.bp(x, c.u_lineatlas_height) }), lineGradientSDF: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_image: new o.b_(x, c.u_image), u_image_height: new o.bp(x, c.u_image_height), u_tileratio: new o.bp(x, c.u_tileratio), u_crossfade_from: new o.bp(x, c.u_crossfade_from), u_crossfade_to: new o.bp(x, c.u_crossfade_to), u_image_dash: new o.b_(x, c.u_image_dash), u_mix: new o.bp(x, c.u_mix), u_lineatlas_width: new o.bp(x, c.u_lineatlas_width), u_lineatlas_height: new o.bp(x, c.u_lineatlas_height) }), raster: (x, c) => ({ u_tl_parent: new o.c3(x, c.u_tl_parent), u_scale_parent: new o.bp(x, c.u_scale_parent), u_buffer_scale: new o.bp(x, c.u_buffer_scale), u_fade_t: new o.bp(x, c.u_fade_t), u_opacity: new o.bp(x, c.u_opacity), u_image0: new o.b_(x, c.u_image0), u_image1: new o.b_(x, c.u_image1), u_brightness_low: new o.bp(x, c.u_brightness_low), u_brightness_high: new o.bp(x, c.u_brightness_high), u_saturation_factor: new o.bp(x, c.u_saturation_factor), u_contrast_factor: new o.bp(x, c.u_contrast_factor), u_spin_weights: new o.c2(x, c.u_spin_weights), u_coords_top: new o.c1(x, c.u_coords_top), u_coords_bottom: new o.c1(x, c.u_coords_bottom) }), symbolIcon: (x, c) => ({ u_is_size_zoom_constant: new o.b_(x, c.u_is_size_zoom_constant), u_is_size_feature_constant: new o.b_(x, c.u_is_size_feature_constant), u_size_t: new o.bp(x, c.u_size_t), u_size: new o.bp(x, c.u_size), u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_pitch: new o.bp(x, c.u_pitch), u_rotate_symbol: new o.b_(x, c.u_rotate_symbol), u_aspect_ratio: new o.bp(x, c.u_aspect_ratio), u_fade_change: new o.bp(x, c.u_fade_change), u_label_plane_matrix: new o.c0(x, c.u_label_plane_matrix), u_coord_matrix: new o.c0(x, c.u_coord_matrix), u_is_text: new o.b_(x, c.u_is_text), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_is_along_line: new o.b_(x, c.u_is_along_line), u_is_variable_anchor: new o.b_(x, c.u_is_variable_anchor), u_texsize: new o.c3(x, c.u_texsize), u_texture: new o.b_(x, c.u_texture), u_translation: new o.c3(x, c.u_translation), u_pitched_scale: new o.bp(x, c.u_pitched_scale) }), symbolSDF: (x, c) => ({ u_is_size_zoom_constant: new o.b_(x, c.u_is_size_zoom_constant), u_is_size_feature_constant: new o.b_(x, c.u_is_size_feature_constant), u_size_t: new o.bp(x, c.u_size_t), u_size: new o.bp(x, c.u_size), u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_pitch: new o.bp(x, c.u_pitch), u_rotate_symbol: new o.b_(x, c.u_rotate_symbol), u_aspect_ratio: new o.bp(x, c.u_aspect_ratio), u_fade_change: new o.bp(x, c.u_fade_change), u_label_plane_matrix: new o.c0(x, c.u_label_plane_matrix), u_coord_matrix: new o.c0(x, c.u_coord_matrix), u_is_text: new o.b_(x, c.u_is_text), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_is_along_line: new o.b_(x, c.u_is_along_line), u_is_variable_anchor: new o.b_(x, c.u_is_variable_anchor), u_texsize: new o.c3(x, c.u_texsize), u_texture: new o.b_(x, c.u_texture), u_gamma_scale: new o.bp(x, c.u_gamma_scale), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_is_halo: new o.b_(x, c.u_is_halo), u_is_plain: new o.b_(x, c.u_is_plain), u_translation: new o.c3(x, c.u_translation), u_pitched_scale: new o.bp(x, c.u_pitched_scale) }), symbolTextAndIcon: (x, c) => ({ u_is_size_zoom_constant: new o.b_(x, c.u_is_size_zoom_constant), u_is_size_feature_constant: new o.b_(x, c.u_is_size_feature_constant), u_size_t: new o.bp(x, c.u_size_t), u_size: new o.bp(x, c.u_size), u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_pitch: new o.bp(x, c.u_pitch), u_rotate_symbol: new o.b_(x, c.u_rotate_symbol), u_aspect_ratio: new o.bp(x, c.u_aspect_ratio), u_fade_change: new o.bp(x, c.u_fade_change), u_label_plane_matrix: new o.c0(x, c.u_label_plane_matrix), u_coord_matrix: new o.c0(x, c.u_coord_matrix), u_is_text: new o.b_(x, c.u_is_text), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_is_along_line: new o.b_(x, c.u_is_along_line), u_is_variable_anchor: new o.b_(x, c.u_is_variable_anchor), u_texsize: new o.c3(x, c.u_texsize), u_texsize_icon: new o.c3(x, c.u_texsize_icon), u_texture: new o.b_(x, c.u_texture), u_texture_icon: new o.b_(x, c.u_texture_icon), u_gamma_scale: new o.bp(x, c.u_gamma_scale), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_is_halo: new o.b_(x, c.u_is_halo), u_translation: new o.c3(x, c.u_translation), u_pitched_scale: new o.bp(x, c.u_pitched_scale) }), background: (x, c) => ({ u_opacity: new o.bp(x, c.u_opacity), u_color: new o.b$(x, c.u_color) }), backgroundPattern: (x, c) => ({ u_opacity: new o.bp(x, c.u_opacity), u_image: new o.b_(x, c.u_image), u_pattern_tl_a: new o.c3(x, c.u_pattern_tl_a), u_pattern_br_a: new o.c3(x, c.u_pattern_br_a), u_pattern_tl_b: new o.c3(x, c.u_pattern_tl_b), u_pattern_br_b: new o.c3(x, c.u_pattern_br_b), u_texsize: new o.c3(x, c.u_texsize), u_mix: new o.bp(x, c.u_mix), u_pattern_size_a: new o.c3(x, c.u_pattern_size_a), u_pattern_size_b: new o.c3(x, c.u_pattern_size_b), u_scale_a: new o.bp(x, c.u_scale_a), u_scale_b: new o.bp(x, c.u_scale_b), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_tile_units_to_pixels: new o.bp(x, c.u_tile_units_to_pixels) }), terrain: (x, c) => ({ u_texture: new o.b_(x, c.u_texture), u_ele_delta: new o.bp(x, c.u_ele_delta), u_fog_matrix: new o.c0(x, c.u_fog_matrix), u_fog_color: new o.b$(x, c.u_fog_color), u_fog_ground_blend: new o.bp(x, c.u_fog_ground_blend), u_fog_ground_blend_opacity: new o.bp(x, c.u_fog_ground_blend_opacity), u_horizon_color: new o.b$(x, c.u_horizon_color), u_horizon_fog_blend: new o.bp(x, c.u_horizon_fog_blend), u_is_globe_mode: new o.bp(x, c.u_is_globe_mode) }), terrainDepth: (x, c) => ({ u_ele_delta: new o.bp(x, c.u_ele_delta) }), terrainCoords: (x, c) => ({ u_texture: new o.b_(x, c.u_texture), u_terrain_coords_id: new o.bp(x, c.u_terrain_coords_id), u_ele_delta: new o.bp(x, c.u_ele_delta) }), projectionErrorMeasurement: (x, c) => ({ u_input: new o.bp(x, c.u_input), u_output_expected: new o.bp(x, c.u_output_expected) }), atmosphere: (x, c) => ({ u_sun_pos: new o.c2(x, c.u_sun_pos), u_atmosphere_blend: new o.bp(x, c.u_atmosphere_blend), u_globe_position: new o.c2(x, c.u_globe_position), u_globe_radius: new o.bp(x, c.u_globe_radius), u_inv_proj_matrix: new o.c0(x, c.u_inv_proj_matrix) }), sky: (x, c) => ({ u_sky_color: new o.b$(x, c.u_sky_color), u_horizon_color: new o.b$(x, c.u_horizon_color), u_horizon: new o.c3(x, c.u_horizon), u_horizon_normal: new o.c3(x, c.u_horizon_normal), u_sky_horizon_blend: new o.bp(x, c.u_sky_horizon_blend), u_sky_blend: new o.bp(x, c.u_sky_blend) }) };
|
|
163156
|
+
})(u, F, c, m), { u_opacity: x }), Zl = (x, c) => {
|
|
163157
|
+
}, r0 = { fillExtrusion: (x, c) => ({ u_lightpos: new o.c2(x, c.u_lightpos), u_lightpos_globe: new o.c2(x, c.u_lightpos_globe), u_lightintensity: new o.bp(x, c.u_lightintensity), u_lightcolor: new o.c2(x, c.u_lightcolor), u_vertical_gradient: new o.bp(x, c.u_vertical_gradient), u_opacity: new o.bp(x, c.u_opacity), u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillExtrusionPattern: (x, c) => ({ u_lightpos: new o.c2(x, c.u_lightpos), u_lightpos_globe: new o.c2(x, c.u_lightpos_globe), u_lightintensity: new o.bp(x, c.u_lightintensity), u_lightcolor: new o.c2(x, c.u_lightcolor), u_vertical_gradient: new o.bp(x, c.u_vertical_gradient), u_height_factor: new o.bp(x, c.u_height_factor), u_opacity: new o.bp(x, c.u_opacity), u_fill_translate: new o.c3(x, c.u_fill_translate), u_image: new o.b_(x, c.u_image), u_texsize: new o.c3(x, c.u_texsize), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade) }), fill: (x, c) => ({ u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillPattern: (x, c) => ({ u_image: new o.b_(x, c.u_image), u_texsize: new o.c3(x, c.u_texsize), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade), u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillOutline: (x, c) => ({ u_world: new o.c3(x, c.u_world), u_fill_translate: new o.c3(x, c.u_fill_translate) }), fillOutlinePattern: (x, c) => ({ u_world: new o.c3(x, c.u_world), u_image: new o.b_(x, c.u_image), u_texsize: new o.c3(x, c.u_texsize), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade), u_fill_translate: new o.c3(x, c.u_fill_translate) }), circle: (x, c) => ({ u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_scale_with_map: new o.b_(x, c.u_scale_with_map), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_extrude_scale: new o.c3(x, c.u_extrude_scale), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_globe_extrude_scale: new o.bp(x, c.u_globe_extrude_scale), u_translate: new o.c3(x, c.u_translate) }), collisionBox: (x, c) => ({ u_pixel_extrude_scale: new o.c3(x, c.u_pixel_extrude_scale) }), collisionCircle: (x, c) => ({ u_viewport_size: new o.c3(x, c.u_viewport_size) }), debug: (x, c) => ({ u_color: new o.b$(x, c.u_color), u_overlay: new o.b_(x, c.u_overlay), u_overlay_scale: new o.bp(x, c.u_overlay_scale) }), depth: Zl, clippingMask: Zl, heatmap: (x, c) => ({ u_extrude_scale: new o.bp(x, c.u_extrude_scale), u_intensity: new o.bp(x, c.u_intensity), u_globe_extrude_scale: new o.bp(x, c.u_globe_extrude_scale) }), heatmapTexture: (x, c) => ({ u_matrix: new o.c0(x, c.u_matrix), u_world: new o.c3(x, c.u_world), u_image: new o.b_(x, c.u_image), u_color_ramp: new o.b_(x, c.u_color_ramp), u_opacity: new o.bp(x, c.u_opacity) }), hillshade: (x, c) => ({ u_image: new o.b_(x, c.u_image), u_latrange: new o.c3(x, c.u_latrange), u_exaggeration: new o.bp(x, c.u_exaggeration), u_altitudes: new o.c9(x, c.u_altitudes), u_azimuths: new o.c9(x, c.u_azimuths), u_accent: new o.b$(x, c.u_accent), u_method: new o.b_(x, c.u_method), u_shadows: new o.c8(x, c.u_shadows), u_highlights: new o.c8(x, c.u_highlights) }), hillshadePrepare: (x, c) => ({ u_matrix: new o.c0(x, c.u_matrix), u_image: new o.b_(x, c.u_image), u_dimension: new o.c3(x, c.u_dimension), u_zoom: new o.bp(x, c.u_zoom), u_unpack: new o.c1(x, c.u_unpack) }), colorRelief: (x, c) => ({ u_image: new o.b_(x, c.u_image), u_unpack: new o.c1(x, c.u_unpack), u_dimension: new o.c3(x, c.u_dimension), u_elevation_stops: new o.b_(x, c.u_elevation_stops), u_color_stops: new o.b_(x, c.u_color_stops), u_color_ramp_size: new o.b_(x, c.u_color_ramp_size), u_opacity: new o.bp(x, c.u_opacity) }), line: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels) }), lineGradient: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_image: new o.b_(x, c.u_image), u_image_height: new o.bp(x, c.u_image_height) }), linePattern: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_texsize: new o.c3(x, c.u_texsize), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_image: new o.b_(x, c.u_image), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_scale: new o.c2(x, c.u_scale), u_fade: new o.bp(x, c.u_fade) }), lineSDF: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_image: new o.b_(x, c.u_image), u_mix: new o.bp(x, c.u_mix), u_tileratio: new o.bp(x, c.u_tileratio), u_crossfade_from: new o.bp(x, c.u_crossfade_from), u_crossfade_to: new o.bp(x, c.u_crossfade_to), u_lineatlas_width: new o.bp(x, c.u_lineatlas_width), u_lineatlas_height: new o.bp(x, c.u_lineatlas_height) }), lineGradientSDF: (x, c) => ({ u_translation: new o.c3(x, c.u_translation), u_ratio: new o.bp(x, c.u_ratio), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_units_to_pixels: new o.c3(x, c.u_units_to_pixels), u_image: new o.b_(x, c.u_image), u_image_height: new o.bp(x, c.u_image_height), u_tileratio: new o.bp(x, c.u_tileratio), u_crossfade_from: new o.bp(x, c.u_crossfade_from), u_crossfade_to: new o.bp(x, c.u_crossfade_to), u_image_dash: new o.b_(x, c.u_image_dash), u_mix: new o.bp(x, c.u_mix), u_lineatlas_width: new o.bp(x, c.u_lineatlas_width), u_lineatlas_height: new o.bp(x, c.u_lineatlas_height) }), raster: (x, c) => ({ u_tl_parent: new o.c3(x, c.u_tl_parent), u_scale_parent: new o.bp(x, c.u_scale_parent), u_buffer_scale: new o.bp(x, c.u_buffer_scale), u_fade_t: new o.bp(x, c.u_fade_t), u_opacity: new o.bp(x, c.u_opacity), u_image0: new o.b_(x, c.u_image0), u_image1: new o.b_(x, c.u_image1), u_brightness_low: new o.bp(x, c.u_brightness_low), u_brightness_high: new o.bp(x, c.u_brightness_high), u_saturation_factor: new o.bp(x, c.u_saturation_factor), u_contrast_factor: new o.bp(x, c.u_contrast_factor), u_spin_weights: new o.c2(x, c.u_spin_weights), u_coords_top: new o.c1(x, c.u_coords_top), u_coords_bottom: new o.c1(x, c.u_coords_bottom) }), symbolIcon: (x, c) => ({ u_is_size_zoom_constant: new o.b_(x, c.u_is_size_zoom_constant), u_is_size_feature_constant: new o.b_(x, c.u_is_size_feature_constant), u_size_t: new o.bp(x, c.u_size_t), u_size: new o.bp(x, c.u_size), u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_pitch: new o.bp(x, c.u_pitch), u_rotate_symbol: new o.b_(x, c.u_rotate_symbol), u_aspect_ratio: new o.bp(x, c.u_aspect_ratio), u_fade_change: new o.bp(x, c.u_fade_change), u_label_plane_matrix: new o.c0(x, c.u_label_plane_matrix), u_coord_matrix: new o.c0(x, c.u_coord_matrix), u_is_text: new o.b_(x, c.u_is_text), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_is_along_line: new o.b_(x, c.u_is_along_line), u_is_variable_anchor: new o.b_(x, c.u_is_variable_anchor), u_texsize: new o.c3(x, c.u_texsize), u_texture: new o.b_(x, c.u_texture), u_translation: new o.c3(x, c.u_translation), u_pitched_scale: new o.bp(x, c.u_pitched_scale) }), symbolSDF: (x, c) => ({ u_is_size_zoom_constant: new o.b_(x, c.u_is_size_zoom_constant), u_is_size_feature_constant: new o.b_(x, c.u_is_size_feature_constant), u_size_t: new o.bp(x, c.u_size_t), u_size: new o.bp(x, c.u_size), u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_pitch: new o.bp(x, c.u_pitch), u_rotate_symbol: new o.b_(x, c.u_rotate_symbol), u_aspect_ratio: new o.bp(x, c.u_aspect_ratio), u_fade_change: new o.bp(x, c.u_fade_change), u_label_plane_matrix: new o.c0(x, c.u_label_plane_matrix), u_coord_matrix: new o.c0(x, c.u_coord_matrix), u_is_text: new o.b_(x, c.u_is_text), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_is_along_line: new o.b_(x, c.u_is_along_line), u_is_variable_anchor: new o.b_(x, c.u_is_variable_anchor), u_texsize: new o.c3(x, c.u_texsize), u_texture: new o.b_(x, c.u_texture), u_gamma_scale: new o.bp(x, c.u_gamma_scale), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_is_halo: new o.b_(x, c.u_is_halo), u_is_plain: new o.b_(x, c.u_is_plain), u_translation: new o.c3(x, c.u_translation), u_pitched_scale: new o.bp(x, c.u_pitched_scale) }), symbolTextAndIcon: (x, c) => ({ u_is_size_zoom_constant: new o.b_(x, c.u_is_size_zoom_constant), u_is_size_feature_constant: new o.b_(x, c.u_is_size_feature_constant), u_size_t: new o.bp(x, c.u_size_t), u_size: new o.bp(x, c.u_size), u_camera_to_center_distance: new o.bp(x, c.u_camera_to_center_distance), u_pitch: new o.bp(x, c.u_pitch), u_rotate_symbol: new o.b_(x, c.u_rotate_symbol), u_aspect_ratio: new o.bp(x, c.u_aspect_ratio), u_fade_change: new o.bp(x, c.u_fade_change), u_label_plane_matrix: new o.c0(x, c.u_label_plane_matrix), u_coord_matrix: new o.c0(x, c.u_coord_matrix), u_is_text: new o.b_(x, c.u_is_text), u_pitch_with_map: new o.b_(x, c.u_pitch_with_map), u_is_along_line: new o.b_(x, c.u_is_along_line), u_is_variable_anchor: new o.b_(x, c.u_is_variable_anchor), u_texsize: new o.c3(x, c.u_texsize), u_texsize_icon: new o.c3(x, c.u_texsize_icon), u_texture: new o.b_(x, c.u_texture), u_texture_icon: new o.b_(x, c.u_texture_icon), u_gamma_scale: new o.bp(x, c.u_gamma_scale), u_device_pixel_ratio: new o.bp(x, c.u_device_pixel_ratio), u_is_halo: new o.b_(x, c.u_is_halo), u_translation: new o.c3(x, c.u_translation), u_pitched_scale: new o.bp(x, c.u_pitched_scale) }), background: (x, c) => ({ u_opacity: new o.bp(x, c.u_opacity), u_color: new o.b$(x, c.u_color) }), backgroundPattern: (x, c) => ({ u_opacity: new o.bp(x, c.u_opacity), u_image: new o.b_(x, c.u_image), u_pattern_tl_a: new o.c3(x, c.u_pattern_tl_a), u_pattern_br_a: new o.c3(x, c.u_pattern_br_a), u_pattern_tl_b: new o.c3(x, c.u_pattern_tl_b), u_pattern_br_b: new o.c3(x, c.u_pattern_br_b), u_texsize: new o.c3(x, c.u_texsize), u_mix: new o.bp(x, c.u_mix), u_pattern_size_a: new o.c3(x, c.u_pattern_size_a), u_pattern_size_b: new o.c3(x, c.u_pattern_size_b), u_scale_a: new o.bp(x, c.u_scale_a), u_scale_b: new o.bp(x, c.u_scale_b), u_pixel_coord_upper: new o.c3(x, c.u_pixel_coord_upper), u_pixel_coord_lower: new o.c3(x, c.u_pixel_coord_lower), u_tile_units_to_pixels: new o.bp(x, c.u_tile_units_to_pixels) }), terrain: (x, c) => ({ u_texture: new o.b_(x, c.u_texture), u_ele_delta: new o.bp(x, c.u_ele_delta), u_fog_matrix: new o.c0(x, c.u_fog_matrix), u_fog_color: new o.b$(x, c.u_fog_color), u_fog_ground_blend: new o.bp(x, c.u_fog_ground_blend), u_fog_ground_blend_opacity: new o.bp(x, c.u_fog_ground_blend_opacity), u_horizon_color: new o.b$(x, c.u_horizon_color), u_horizon_fog_blend: new o.bp(x, c.u_horizon_fog_blend), u_is_globe_mode: new o.bp(x, c.u_is_globe_mode) }), terrainDepth: (x, c) => ({ u_ele_delta: new o.bp(x, c.u_ele_delta) }), terrainCoords: (x, c) => ({ u_texture: new o.b_(x, c.u_texture), u_terrain_coords_id: new o.bp(x, c.u_terrain_coords_id), u_ele_delta: new o.bp(x, c.u_ele_delta) }), projectionErrorMeasurement: (x, c) => ({ u_input: new o.bp(x, c.u_input), u_output_expected: new o.bp(x, c.u_output_expected) }), atmosphere: (x, c) => ({ u_sun_pos: new o.c2(x, c.u_sun_pos), u_atmosphere_blend: new o.bp(x, c.u_atmosphere_blend), u_globe_position: new o.c2(x, c.u_globe_position), u_globe_radius: new o.bp(x, c.u_globe_radius), u_inv_proj_matrix: new o.c0(x, c.u_inv_proj_matrix) }), sky: (x, c) => ({ u_sky_color: new o.b$(x, c.u_sky_color), u_horizon_color: new o.b$(x, c.u_horizon_color), u_horizon: new o.c3(x, c.u_horizon), u_horizon_normal: new o.c3(x, c.u_horizon_normal), u_sky_horizon_blend: new o.bp(x, c.u_sky_horizon_blend), u_sky_blend: new o.bp(x, c.u_sky_blend) }) };
|
|
163142
163158
|
class Dw {
|
|
163143
163159
|
constructor(c, u, m) {
|
|
163144
163160
|
this.context = c;
|
|
@@ -163229,7 +163245,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163229
163245
|
(c !== this.current || this.dirty) && (this.gl.clearStencil(c), this.current = c, this.dirty = !1);
|
|
163230
163246
|
}
|
|
163231
163247
|
}
|
|
163232
|
-
class
|
|
163248
|
+
class Xl extends yr {
|
|
163233
163249
|
getDefault() {
|
|
163234
163250
|
return [!0, !0, !0, !0];
|
|
163235
163251
|
}
|
|
@@ -163254,7 +163270,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163254
163270
|
(c !== this.current || this.dirty) && (this.gl.stencilMask(c), this.current = c, this.dirty = !1);
|
|
163255
163271
|
}
|
|
163256
163272
|
}
|
|
163257
|
-
class
|
|
163273
|
+
class $l extends yr {
|
|
163258
163274
|
getDefault() {
|
|
163259
163275
|
return { func: this.gl.ALWAYS, ref: 0, mask: 255 };
|
|
163260
163276
|
}
|
|
@@ -163263,7 +163279,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163263
163279
|
(c.func !== u.func || c.ref !== u.ref || c.mask !== u.mask || this.dirty) && (this.gl.stencilFunc(c.func, c.ref, c.mask), this.current = c, this.dirty = !1);
|
|
163264
163280
|
}
|
|
163265
163281
|
}
|
|
163266
|
-
class
|
|
163282
|
+
class Ah extends yr {
|
|
163267
163283
|
getDefault() {
|
|
163268
163284
|
const c = this.gl;
|
|
163269
163285
|
return [c.KEEP, c.KEEP, c.KEEP];
|
|
@@ -163283,7 +163299,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163283
163299
|
c ? u.enable(u.STENCIL_TEST) : u.disable(u.STENCIL_TEST), this.current = c, this.dirty = !1;
|
|
163284
163300
|
}
|
|
163285
163301
|
}
|
|
163286
|
-
class
|
|
163302
|
+
class eh extends yr {
|
|
163287
163303
|
getDefault() {
|
|
163288
163304
|
return [0, 1];
|
|
163289
163305
|
}
|
|
@@ -163320,7 +163336,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163320
163336
|
c ? u.enable(u.BLEND) : u.disable(u.BLEND), this.current = c, this.dirty = !1;
|
|
163321
163337
|
}
|
|
163322
163338
|
}
|
|
163323
|
-
class
|
|
163339
|
+
class th extends yr {
|
|
163324
163340
|
getDefault() {
|
|
163325
163341
|
const c = this.gl;
|
|
163326
163342
|
return [c.ONE, c.ZERO];
|
|
@@ -163365,7 +163381,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163365
163381
|
(c !== this.current || this.dirty) && (this.gl.cullFace(c), this.current = c, this.dirty = !1);
|
|
163366
163382
|
}
|
|
163367
163383
|
}
|
|
163368
|
-
class
|
|
163384
|
+
class ih extends yr {
|
|
163369
163385
|
getDefault() {
|
|
163370
163386
|
return this.gl.CCW;
|
|
163371
163387
|
}
|
|
@@ -163373,7 +163389,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163373
163389
|
(c !== this.current || this.dirty) && (this.gl.frontFace(c), this.current = c, this.dirty = !1);
|
|
163374
163390
|
}
|
|
163375
163391
|
}
|
|
163376
|
-
class
|
|
163392
|
+
class rh extends yr {
|
|
163377
163393
|
getDefault() {
|
|
163378
163394
|
return null;
|
|
163379
163395
|
}
|
|
@@ -163439,7 +163455,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163439
163455
|
u.bindBuffer(u.ARRAY_BUFFER, c), this.current = c, this.dirty = !1;
|
|
163440
163456
|
}
|
|
163441
163457
|
}
|
|
163442
|
-
class
|
|
163458
|
+
class sh extends yr {
|
|
163443
163459
|
getDefault() {
|
|
163444
163460
|
return null;
|
|
163445
163461
|
}
|
|
@@ -163469,7 +163485,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163469
163485
|
u.pixelStorei(u.UNPACK_ALIGNMENT, c), this.current = c, this.dirty = !1;
|
|
163470
163486
|
}
|
|
163471
163487
|
}
|
|
163472
|
-
class
|
|
163488
|
+
class nh extends yr {
|
|
163473
163489
|
getDefault() {
|
|
163474
163490
|
return !1;
|
|
163475
163491
|
}
|
|
@@ -163508,7 +163524,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163508
163524
|
u.framebufferTexture2D(u.FRAMEBUFFER, u.COLOR_ATTACHMENT0, u.TEXTURE_2D, c, 0), this.current = c, this.dirty = !1;
|
|
163509
163525
|
}
|
|
163510
163526
|
}
|
|
163511
|
-
class
|
|
163527
|
+
class oh extends QB {
|
|
163512
163528
|
set(c) {
|
|
163513
163529
|
if (c === this.current && !this.dirty) return;
|
|
163514
163530
|
this.context.bindFramebuffer.set(this.parent);
|
|
@@ -163529,7 +163545,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163529
163545
|
constructor(c, u, m, F, L) {
|
|
163530
163546
|
this.context = c, this.width = u, this.height = m;
|
|
163531
163547
|
const K = c.gl, z = this.framebuffer = K.createFramebuffer();
|
|
163532
|
-
if (this.colorAttachment = new iu(c, z), F) this.depthAttachment = L ? new dB(c, z) : new
|
|
163548
|
+
if (this.colorAttachment = new iu(c, z), F) this.depthAttachment = L ? new dB(c, z) : new oh(c, z);
|
|
163533
163549
|
else if (L) throw new Error("Stencil cannot be set without depth");
|
|
163534
163550
|
if (K.checkFramebufferStatus(K.FRAMEBUFFER) !== K.FRAMEBUFFER_COMPLETE) throw new Error(Tc);
|
|
163535
163551
|
}
|
|
@@ -163545,7 +163561,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163545
163561
|
class Pc {
|
|
163546
163562
|
constructor(c) {
|
|
163547
163563
|
var u, m;
|
|
163548
|
-
if (this.gl = c, this.clearColor = new s0(this), this.clearDepth = new CB(this), this.clearStencil = new qa(this), this.colorMask = new
|
|
163564
|
+
if (this.gl = c, this.clearColor = new s0(this), this.clearDepth = new CB(this), this.clearStencil = new qa(this), this.colorMask = new Xl(this), this.depthMask = new EQ(this), this.stencilMask = new wg(this), this.stencilFunc = new $l(this), this.stencilOp = new Ah(this), this.stencilTest = new wa(this), this.depthRange = new eh(this), this.depthTest = new QQ(this), this.depthFunc = new Uc(this), this.blend = new oI(this), this.blendFunc = new th(this), this.blendColor = new uB(this), this.blendEquation = new TI(this), this.cullFace = new EB(this), this.cullFaceSide = new n0(this), this.frontFace = new ih(this), this.program = new rh(this), this.activeTexture = new o0(this), this.viewport = new dQ(this), this.bindFramebuffer = new Pi(this), this.bindRenderbuffer = new tu(this), this.bindTexture = new bw(this), this.bindVertexBuffer = new a0(this), this.bindElementBuffer = new sh(this), this.bindVertexArray = new g0(this), this.pixelStoreUnpack = new Rw(this), this.pixelStoreUnpackPremultiplyAlpha = new nh(this), this.pixelStoreUnpackFlipY = new Da(this), this.extTextureFilterAnisotropic = c.getExtension("EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = c.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = c.getParameter(c.MAX_TEXTURE_SIZE), ma(c)) {
|
|
163549
163565
|
this.HALF_FLOAT = c.HALF_FLOAT;
|
|
163550
163566
|
const F = c.getExtension("EXT_color_buffer_half_float");
|
|
163551
163567
|
this.RGBA16F = (u = c.RGBA16F) !== null && u !== void 0 ? u : F?.RGBA16F_EXT, this.RGB16F = (m = c.RGB16F) !== null && m !== void 0 ? m : F?.RGB16F_EXT, c.getExtension("EXT_color_buffer_float");
|
|
@@ -163701,23 +163717,23 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163701
163717
|
const Zt = F ? Rt.text : Rt.icon;
|
|
163702
163718
|
if (!Zt?.segments.get().length || !Zt.hasVisibleVertices) continue;
|
|
163703
163719
|
const Mr = Zt.programConfigurations.get(u.id), zs = F || Rt.sdfIcons, qr = F ? Rt.textSizeData : Rt.iconSizeData, on = Ce || $A.pitch !== 0, yn = x.useProgram(is(zs, F, Rt), Mr), Uo = o.aw(qr, $A.zoom), Ps = (wA = x.style.map.terrain) === null || wA === void 0 ? void 0 : wA.getTerrainData(wt);
|
|
163704
|
-
let sa, uo, Zn, To,
|
|
163705
|
-
if (F) uo = st.glyphAtlasTexture, Zn = ee.LINEAR, sa = st.glyphAtlasTexture.size, Rt.iconsInText && (
|
|
163720
|
+
let sa, uo, Zn, To, gh = [0, 0], Ih = null;
|
|
163721
|
+
if (F) uo = st.glyphAtlasTexture, Zn = ee.LINEAR, sa = st.glyphAtlasTexture.size, Rt.iconsInText && (gh = st.imageAtlasTexture.size, Ih = st.imageAtlasTexture, To = on || x.options.rotating || x.options.zooming || qr.kind === "composite" || qr.kind === "camera" ? ee.LINEAR : ee.NEAREST);
|
|
163706
163722
|
else {
|
|
163707
163723
|
const vs = u.layout.get("icon-size").constantOr(0) !== 1 || Rt.iconsNeedLinear;
|
|
163708
163724
|
uo = st.imageAtlasTexture, Zn = zs || x.options.rotating || x.options.zooming || vs || on ? ee.LINEAR : ee.NEAREST, sa = st.imageAtlasTexture.size;
|
|
163709
163725
|
}
|
|
163710
|
-
const
|
|
163726
|
+
const ch = o.aK(st, 1, x.transform.zoom), Po = tt(te, x.transform, ch), Oc = ht(Ce, te, x.transform, ch), lh = o.aL($A, st, L, K), p0 = $A.getProjectionData({ overscaledTileID: wt, applyGlobeMatrix: !fA, applyTerrainMatrix: !0 }), PI = je && Rt.hasTextData(), JI = u.layout.get("icon-text-fit") !== "none" && PI && Rt.hasIconData();
|
|
163711
163727
|
if (ie) {
|
|
163712
163728
|
const vs = o.O();
|
|
163713
163729
|
ge(vs, Po);
|
|
163714
163730
|
const SB = x.style.map.terrain ? (qc, Uw) => x.style.map.terrain.getElevation(wt, qc, Uw) : null, y0 = u.layout.get("text-rotation-alignment") === "map";
|
|
163715
|
-
as(Rt, x, F, Po, vs, Ce, oA, y0, wt.toUnwrapped(), $A.width, $A.height,
|
|
163731
|
+
as(Rt, x, F, Po, vs, Ce, oA, y0, wt.toUnwrapped(), $A.width, $A.height, lh, SB);
|
|
163716
163732
|
}
|
|
163717
163733
|
const za = F && je || JI, Rg = ie || za ? Jc : Ce ? Po : x.transform.clipSpaceToPixelsMatrix, Ms = zs && u.paint.get(F ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
163718
163734
|
let cs;
|
|
163719
|
-
cs = zs ? Rt.iconsInText ? CQ(qr.kind, Uo, Ae, Ce, ie, za, x, Rg, Oc,
|
|
163720
|
-
const mn = { program: yn, buffers: Zt, uniformValues: cs, projectionData: p0, atlasTexture: uo, atlasTextureIcon:
|
|
163735
|
+
cs = zs ? Rt.iconsInText ? CQ(qr.kind, Uo, Ae, Ce, ie, za, x, Rg, Oc, lh, sa, gh, lt) : BQ(qr.kind, Uo, Ae, Ce, ie, za, x, Rg, Oc, lh, F, sa, Ms, lt) : Au(qr.kind, Uo, Ae, Ce, ie, za, x, Rg, Oc, lh, F, sa, lt);
|
|
163736
|
+
const mn = { program: yn, buffers: Zt, uniformValues: cs, projectionData: p0, atlasTexture: uo, atlasTextureIcon: Ih, atlasInterpolation: Zn, atlasInterpolationIcon: To, isSDF: zs, hasHalo: Ms };
|
|
163721
163737
|
if (le && Rt.canOverlap) {
|
|
163722
163738
|
se = !0;
|
|
163723
163739
|
const vs = Zt.segments.get();
|
|
@@ -163757,7 +163773,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
163757
163773
|
if (!aA) return;
|
|
163758
163774
|
L.activeTexture.set(K.TEXTURE0), K.bindTexture(K.TEXTURE_2D, aA.colorAttachment.get()), L.activeTexture.set(K.TEXTURE1), X.bind(K.LINEAR, K.CLAMP_TO_EDGE);
|
|
163759
163775
|
const QA = z.getProjectionData({ overscaledTileID: u, applyTerrainMatrix: F, applyGlobeMatrix: !m });
|
|
163760
|
-
x.useProgram("heatmapTexture").draw(L, K.TRIANGLES, _i.disabled, or.disabled, x.colorModeForRenderPass(), sr.disabled,
|
|
163776
|
+
x.useProgram("heatmapTexture").draw(L, K.TRIANGLES, _i.disabled, or.disabled, x.colorModeForRenderPass(), sr.disabled, Wl(x, c, 0, 1), null, QA, c.id, x.rasterBoundsBuffer, x.quadTriangleIndexBuffer, x.rasterBoundsSegments, c.paint, z.zoom), aA.destroy(), c.heatmapFbos.delete(oA);
|
|
163761
163777
|
}
|
|
163762
163778
|
function nu(x, c, u) {
|
|
163763
163779
|
var m, F;
|
|
@@ -164020,7 +164036,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
164020
164036
|
const aA = X.context, QA = aA.gl;
|
|
164021
164037
|
aA.setColorMode(X.colorModeForRenderPass());
|
|
164022
164038
|
const fA = oA.heatmapFbos.get(o.cd);
|
|
164023
|
-
fA && (aA.activeTexture.set(QA.TEXTURE0), QA.bindTexture(QA.TEXTURE_2D, fA.colorAttachment.get()), aA.activeTexture.set(QA.TEXTURE1), Ct(aA, oA).bind(QA.LINEAR, QA.CLAMP_TO_EDGE), X.useProgram("heatmapTexture").draw(aA, QA.TRIANGLES, _i.disabled, or.disabled, X.colorModeForRenderPass(), sr.disabled,
|
|
164039
|
+
fA && (aA.activeTexture.set(QA.TEXTURE0), QA.bindTexture(QA.TEXTURE_2D, fA.colorAttachment.get()), aA.activeTexture.set(QA.TEXTURE1), Ct(aA, oA).bind(QA.LINEAR, QA.CLAMP_TO_EDGE), X.useProgram("heatmapTexture").draw(aA, QA.TRIANGLES, _i.disabled, or.disabled, X.colorModeForRenderPass(), sr.disabled, Wl(X, oA, 0, 1), null, null, oA.id, X.viewportBuffer, X.quadTriangleIndexBuffer, X.viewportSegments, oA.paint, X.transform.zoom));
|
|
164024
164040
|
})(x, u);
|
|
164025
164041
|
}, line: function(x, c, u, m, F) {
|
|
164026
164042
|
var L;
|
|
@@ -164047,7 +164063,7 @@ uniform ${aA} ${QA} u_${fA};
|
|
|
164047
164063
|
}
|
|
164048
164064
|
const Rt = ie.getProjectionData({ overscaledTileID: le, applyGlobeMatrix: !K, applyTerrainMatrix: !0 }), Zt = ie.getPixelScale();
|
|
164049
164065
|
let Mr;
|
|
164050
|
-
UA ? (Mr =
|
|
164066
|
+
UA ? (Mr = Vl(x, se, u, Zt, ee), l0(te, Ce, se, je, ee)) : fA && zA ? (Mr = lQ(x, se, u, Zt, ee, _e.lineClipsArray.length), Hc(x, c, te, Ce, u, _e, le, je, ee)) : fA ? (Mr = cQ(x, se, u, Zt, ee), ou(x, te, Ce, je, It, ee)) : zA ? (Mr = i0(x, se, u, Zt, _e.lineClipsArray.length), xr(x, c, te, Ce, u, _e, le)) : Mr = kn(x, se, u, Zt);
|
|
164051
164067
|
const zs = x.stencilModeForClipping(le);
|
|
164052
164068
|
lt.draw(te, Ce.TRIANGLES, oA, zs, aA, sr.disabled, Mr, Jt, Rt, u.id, _e.layoutVertexBuffer, _e.indexBuffer, _e.segments, u.paint, x.transform.zoom, je, _e.layoutVertexBuffer2), Ae = !1;
|
|
164053
164069
|
}
|
|
@@ -165452,7 +165468,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
165452
165468
|
}), 100));
|
|
165453
165469
|
}
|
|
165454
165470
|
}
|
|
165455
|
-
const
|
|
165471
|
+
const ah = (x) => x.zoom || x.drag || x.roll || x.pitch || x.rotate;
|
|
165456
165472
|
class HR extends o.n {
|
|
165457
165473
|
}
|
|
165458
165474
|
function gu(x) {
|
|
@@ -165569,7 +165585,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
165569
165585
|
return !!this._eventsInProgress.rotate;
|
|
165570
165586
|
}
|
|
165571
165587
|
isMoving() {
|
|
165572
|
-
return !!
|
|
165588
|
+
return !!ah(this._eventsInProgress) || this.isZooming();
|
|
165573
165589
|
}
|
|
165574
165590
|
_blockedByActive(c, u, m) {
|
|
165575
165591
|
for (const F in c) if (F !== m && !u?.includes(F)) return !0;
|
|
@@ -165608,7 +165624,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
165608
165624
|
z.handleMapControlsPan(m, u, F);
|
|
165609
165625
|
}
|
|
165610
165626
|
_fireEvents(c, u, m) {
|
|
165611
|
-
const F =
|
|
165627
|
+
const F = ah(this._eventsInProgress), L = ah(c), K = {};
|
|
165612
165628
|
for (const QA in c) {
|
|
165613
165629
|
const { originalEvent: fA } = c[QA];
|
|
165614
165630
|
this._eventsInProgress[QA] || (K[`${QA}start`] = fA), this._eventsInProgress[QA] = c[QA];
|
|
@@ -165627,7 +165643,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
165627
165643
|
this._handlersById[fA].isActive() || (delete this._eventsInProgress[QA], X = u[fA] || wA, z[`${QA}end`] = X);
|
|
165628
165644
|
}
|
|
165629
165645
|
for (const QA in z) this._fireEvent(QA, z[QA]);
|
|
165630
|
-
const oA =
|
|
165646
|
+
const oA = ah(this._eventsInProgress), aA = (F || L) && !oA;
|
|
165631
165647
|
if (aA && this._terrainMovement) {
|
|
165632
165648
|
this._map._elevationFreeze = !1, this._terrainMovement = !1;
|
|
165633
165649
|
const QA = this._map._getTransformForUpdate();
|
|
@@ -167254,7 +167270,7 @@ ${z.shaderPreludeCode.vertexSource}`, define: z.shaderDefine }, defaultProjectio
|
|
|
167254
167270
|
return f0(new o.P(0, 0));
|
|
167255
167271
|
}
|
|
167256
167272
|
const Lw = a;
|
|
167257
|
-
n.AJAXError = o.cG, n.EXTENT = o.a6, n.Event = o.n, n.Evented = o.E, n.LngLat = o.W, n.MercatorCoordinate = o.a7, n.Point = o.P, n.addProtocol = o.cH, n.config = o.c, n.removeProtocol = o.cI, n.AttributionControl = bg, n.BoxZoomHandler = Ke, n.CanvasSource = es, n.CooperativeGesturesHandler = ni, n.DoubleClickZoomHandler = Mw, n.DragPanHandler = hI, n.DragRotateHandler = yQ, n.EdgeInsets =
|
|
167273
|
+
n.AJAXError = o.cG, n.EXTENT = o.a6, n.Event = o.n, n.Evented = o.E, n.LngLat = o.W, n.MercatorCoordinate = o.a7, n.Point = o.P, n.addProtocol = o.cH, n.config = o.c, n.removeProtocol = o.cI, n.AttributionControl = bg, n.BoxZoomHandler = Ke, n.CanvasSource = es, n.CooperativeGesturesHandler = ni, n.DoubleClickZoomHandler = Mw, n.DragPanHandler = hI, n.DragRotateHandler = yQ, n.EdgeInsets = Tl, n.FullscreenControl = class extends o.E {
|
|
167258
167274
|
constructor(x = {}) {
|
|
167259
167275
|
var c;
|
|
167260
167276
|
super(), this._onFullscreenChange = () => {
|
|
@@ -168890,7 +168906,7 @@ function X2A(e, A, t, i, r = "middle", s = "center") {
|
|
|
168890
168906
|
const n = e.length * i * 0.6, o = i * 1.2, a = r === "start" ? A : r === "end" ? A - n : A - n / 2, g = s === "top" ? t : s === "bottom" ? t - o : t - o / 2;
|
|
168891
168907
|
return { left: a, top: g, right: a + n, bottom: g + o };
|
|
168892
168908
|
}
|
|
168893
|
-
const ogA = 32, qW = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
168909
|
+
const ogA = 32, qW = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Gh = (e) => qW(e).replace(/"/g, """), da = (e) => (Math.round(e * 100) / 100).toString();
|
|
168894
168910
|
function qY(e, A) {
|
|
168895
168911
|
const t = [];
|
|
168896
168912
|
for (const i of e)
|
|
@@ -168979,7 +168995,7 @@ function ARA(e, A) {
|
|
|
168979
168995
|
}
|
|
168980
168996
|
}
|
|
168981
168997
|
return {
|
|
168982
|
-
markup: i.length ? `<g id="${
|
|
168998
|
+
markup: i.length ? `<g id="${Gh(e.id)}">${i.join("")}</g>` : "",
|
|
168983
168999
|
elementCount: r
|
|
168984
169000
|
};
|
|
168985
169001
|
}
|
|
@@ -169015,10 +169031,10 @@ function eRA(e, A, t) {
|
|
|
169015
169031
|
}
|
|
169016
169032
|
const C = (r.collisionEnabled === !1 ? g.map((Q, f) => f) : Z2A(g.map((Q) => Q.box))).map((Q) => {
|
|
169017
169033
|
const f = g[Q], S = f.baseline === "top" ? "hanging" : f.baseline === "bottom" ? "alphabetic" : "central", _ = f.colour.opacity < 1 ? ` fill-opacity="${f.colour.opacity.toFixed(4)}"` : "";
|
|
169018
|
-
return `<text x="${da(f.p[0])}" y="${da(f.p[1])}" font-family="${
|
|
169034
|
+
return `<text x="${da(f.p[0])}" y="${da(f.p[1])}" font-family="${Gh(n)}" font-size="${da(f.size)}" text-anchor="${f.anchor}" dominant-baseline="${S}" fill="${f.colour.color}"${_}>${qW(f.text)}</text>`;
|
|
169019
169035
|
});
|
|
169020
169036
|
return {
|
|
169021
|
-
markup: C.length ? `<g id="${
|
|
169037
|
+
markup: C.length ? `<g id="${Gh(e.id)}">${C.join("")}</g>` : "",
|
|
169022
169038
|
elementCount: C.length
|
|
169023
169039
|
};
|
|
169024
169040
|
}
|
|
@@ -169045,19 +169061,19 @@ function tRA(e, A) {
|
|
|
169045
169061
|
}
|
|
169046
169062
|
if (!AA || AA.length < 2) continue;
|
|
169047
169063
|
const sA = Number(r(i.getSize, _, S, 14)) || 14, lA = D2(r(i.getColor, _, S, [30, 30, 30, 255])), CA = `${e.id}-path-${S}`;
|
|
169048
|
-
Q.push(`<path id="${
|
|
169064
|
+
Q.push(`<path id="${Gh(CA)}" d="${qY([AA], !1)}" fill="none"/>`);
|
|
169049
169065
|
const Z = lA.opacity < 1 ? ` fill-opacity="${lA.opacity.toFixed(4)}"` : "", rA = o !== 0 ? ` letter-spacing="${da(o)}"` : "", nA = a !== 0 ? ` dy="${da(-a)}"` : "";
|
|
169050
169066
|
f.push(
|
|
169051
|
-
`<text font-family="${
|
|
169067
|
+
`<text font-family="${Gh(s)}" font-weight="${Gh(n)}" font-size="${da(sA)}" fill="${lA.color}"${Z}${rA}><textPath href="#${Gh(CA)}" startOffset="${l}" text-anchor="${C}"${nA}>${qW(Y)}</textPath></text>`
|
|
169052
169068
|
);
|
|
169053
169069
|
}
|
|
169054
169070
|
return f.length === 0 ? { markup: "", elementCount: 0 } : {
|
|
169055
|
-
markup: `<defs>${Q.join("")}</defs><g id="${
|
|
169071
|
+
markup: `<defs>${Q.join("")}</defs><g id="${Gh(e.id)}">${f.join("")}</g>`,
|
|
169056
169072
|
elementCount: f.length
|
|
169057
169073
|
};
|
|
169058
169074
|
}
|
|
169059
169075
|
function WY(e, A, t) {
|
|
169060
|
-
return `<image id="${
|
|
169076
|
+
return `<image id="${Gh(`band:${t.join("+")}`)}" x="${da(A.left)}" y="${da(A.top)}" width="${da(A.right - A.left)}" height="${da(A.bottom - A.top)}" preserveAspectRatio="none" href="${Gh(e)}"/>`;
|
|
169061
169077
|
}
|
|
169062
169078
|
const iRA = 600, rRA = 5e4;
|
|
169063
169079
|
function Qqe(e) {
|
|
@@ -169326,7 +169342,7 @@ class VW extends Map {
|
|
|
169326
169342
|
return Array.from(this.keys());
|
|
169327
169343
|
}
|
|
169328
169344
|
}
|
|
169329
|
-
var Nl = new VW("file parser"), Yn = new VW("segment parser"),
|
|
169345
|
+
var Nl = new VW("file parser"), Yn = new VW("segment parser"), kl = new VW("file reader");
|
|
169330
169346
|
function wqe(e, A) {
|
|
169331
169347
|
return typeof e == "string" ? IgA(e, A) : S2 && !fqe && e instanceof HTMLImageElement ? IgA(e.src, A) : e instanceof Uint8Array || e instanceof ArrayBuffer || e instanceof DataView ? new RE(e) : S2 && e instanceof Blob ? ZY(e, A, "blob", NE) : void go("Invalid input argument");
|
|
169332
169348
|
}
|
|
@@ -169335,13 +169351,13 @@ function IgA(e, A) {
|
|
|
169335
169351
|
var t;
|
|
169336
169352
|
}
|
|
169337
169353
|
async function ZY(e, A, t, i) {
|
|
169338
|
-
return
|
|
169354
|
+
return kl.has(t) ? XY(e, A, t) : i ? (async function(r, s) {
|
|
169339
169355
|
let n = await s(r);
|
|
169340
169356
|
return new RE(n);
|
|
169341
169357
|
})(e, i) : void go(`Parser ${t} is not loaded`);
|
|
169342
169358
|
}
|
|
169343
169359
|
async function XY(e, A, t) {
|
|
169344
|
-
let i = new (
|
|
169360
|
+
let i = new (kl.get(t))(e, A);
|
|
169345
169361
|
return await i.read(), i;
|
|
169346
169362
|
}
|
|
169347
169363
|
const FE = (e) => WW(e).then(((A) => A.arrayBuffer())), NE = (e) => new Promise(((A, t) => {
|
|
@@ -169530,7 +169546,7 @@ async function PR(e, A) {
|
|
|
169530
169546
|
let t = new YC(A);
|
|
169531
169547
|
return await t.read(e), t.parse();
|
|
169532
169548
|
}
|
|
169533
|
-
var Sqe = Object.freeze({ __proto__: null, parse: PR, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders:
|
|
169549
|
+
var Sqe = Object.freeze({ __proto__: null, parse: PR, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders: kl, tagKeys: So, tagValues: bc, tagRevivers: aC, createDictionary: Nn, extendDictionary: ME, fetchUrlAsArrayBuffer: FE, readBlobAsArrayBuffer: NE, chunkedProps: $B, otherSegments: Wf, segments: vE, tiffBlocks: In, segmentsAndBlocks: AC, tiffExtractables: eC, inheritables: Vf, allFormatters: tC, Options: jE });
|
|
169534
169550
|
class Ok {
|
|
169535
169551
|
constructor(A, t, i) {
|
|
169536
169552
|
xi(this, "errors", []), xi(this, "ensureSegmentChunk", (async (r) => {
|
|
@@ -169849,7 +169865,7 @@ function BgA(e, A, t, i) {
|
|
|
169849
169865
|
return i !== "S" && i !== "W" || (r *= -1), r;
|
|
169850
169866
|
}
|
|
169851
169867
|
xi(vP, "type", "tiff"), xi(vP, "headerLength", 10), Yn.set("tiff", vP);
|
|
169852
|
-
var vqe = Object.freeze({ __proto__: null, default: Sqe, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders:
|
|
169868
|
+
var vqe = Object.freeze({ __proto__: null, default: Sqe, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders: kl, tagKeys: So, tagValues: bc, tagRevivers: aC, createDictionary: Nn, extendDictionary: ME, fetchUrlAsArrayBuffer: FE, readBlobAsArrayBuffer: NE, chunkedProps: $B, otherSegments: Wf, segments: vE, tiffBlocks: In, segmentsAndBlocks: AC, tiffExtractables: eC, inheritables: Vf, allFormatters: tC, Options: jE, parse: PR });
|
|
169853
169869
|
const zW = { ifd0: !1, ifd1: !1, exif: !1, gps: !1, interop: !1, sanitize: !1, reviveValues: !0, translateKeys: !1, translateValues: !1, mergeOutput: !1 }, qk = Object.assign({}, zW, { firstChunkSize: 4e4, gps: [1, 2, 3, 4] });
|
|
169854
169870
|
async function jW(e) {
|
|
169855
169871
|
let A = new YC(qk);
|
|
@@ -170003,7 +170019,7 @@ class Zk extends _qe {
|
|
|
170003
170019
|
close() {
|
|
170004
170020
|
}
|
|
170005
170021
|
}
|
|
170006
|
-
|
|
170022
|
+
kl.set("blob", class extends Zk {
|
|
170007
170023
|
async readWhole() {
|
|
170008
170024
|
this.chunked = !1;
|
|
170009
170025
|
let e = await NE(this.input);
|
|
@@ -170017,12 +170033,12 @@ Gl.set("blob", class extends Zk {
|
|
|
170017
170033
|
return this.set(r, e, !0);
|
|
170018
170034
|
}
|
|
170019
170035
|
});
|
|
170020
|
-
var Gqe = Object.freeze({ __proto__: null, default: vqe, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders:
|
|
170036
|
+
var Gqe = Object.freeze({ __proto__: null, default: vqe, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders: kl, tagKeys: So, tagValues: bc, tagRevivers: aC, createDictionary: Nn, extendDictionary: ME, fetchUrlAsArrayBuffer: FE, readBlobAsArrayBuffer: NE, chunkedProps: $B, otherSegments: Wf, segments: vE, tiffBlocks: In, segmentsAndBlocks: AC, tiffExtractables: eC, inheritables: Vf, allFormatters: tC, Options: jE, parse: PR, gpsOnlyOptions: qk, gps: jW, thumbnailOnlyOptions: Wk, thumbnail: ZW, thumbnailUrl: XW, orientationOnlyOptions: Vk, orientation: zk, rotations: jk, get rotateCanvas() {
|
|
170021
170037
|
return Zu;
|
|
170022
170038
|
}, get rotateCss() {
|
|
170023
170039
|
return Xu;
|
|
170024
170040
|
}, rotation: $W });
|
|
170025
|
-
|
|
170041
|
+
kl.set("url", class extends Zk {
|
|
170026
170042
|
async readWhole() {
|
|
170027
170043
|
this.chunked = !1;
|
|
170028
170044
|
let e = await FE(this.input);
|
|
@@ -170297,13 +170313,13 @@ function lRA(e) {
|
|
|
170297
170313
|
return t === "true" || t !== "false" && e.trim();
|
|
170298
170314
|
}
|
|
170299
170315
|
const hRA = ["rdf:li", "rdf:Seq", "rdf:Bag", "rdf:Alt", "rdf:Description"], Pqe = new RegExp(`(<|\\/)(${hRA.join("|")})`, "g");
|
|
170300
|
-
var Jqe = Object.freeze({ __proto__: null, default: Gqe, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders:
|
|
170316
|
+
var Jqe = Object.freeze({ __proto__: null, default: Gqe, Exifr: YC, fileParsers: Nl, segmentParsers: Yn, fileReaders: kl, tagKeys: So, tagValues: bc, tagRevivers: aC, createDictionary: Nn, extendDictionary: ME, fetchUrlAsArrayBuffer: FE, readBlobAsArrayBuffer: NE, chunkedProps: $B, otherSegments: Wf, segments: vE, tiffBlocks: In, segmentsAndBlocks: AC, tiffExtractables: eC, inheritables: Vf, allFormatters: tC, Options: jE, parse: PR, gpsOnlyOptions: qk, gps: jW, thumbnailOnlyOptions: Wk, thumbnail: ZW, thumbnailUrl: XW, orientationOnlyOptions: Vk, orientation: zk, rotations: jk, get rotateCanvas() {
|
|
170301
170317
|
return Zu;
|
|
170302
170318
|
}, get rotateCss() {
|
|
170303
170319
|
return Xu;
|
|
170304
170320
|
}, rotation: $W });
|
|
170305
170321
|
let pgA = Bx("fs", ((e) => e.promises));
|
|
170306
|
-
|
|
170322
|
+
kl.set("fs", class extends Zk {
|
|
170307
170323
|
async readWhole() {
|
|
170308
170324
|
this.chunked = !1, this.fs = await pgA;
|
|
170309
170325
|
let e = await this.fs.readFile(this.input);
|
|
@@ -170327,7 +170343,7 @@ Gl.set("fs", class extends Zk {
|
|
|
170327
170343
|
}
|
|
170328
170344
|
}
|
|
170329
170345
|
});
|
|
170330
|
-
|
|
170346
|
+
kl.set("base64", class extends Zk {
|
|
170331
170347
|
constructor(...e) {
|
|
170332
170348
|
super(...e), this.input = this.input.replace(/^data:([^;]+);base64,/gim, ""), this.size = this.input.length / 4 * 3, this.input.endsWith("==") ? this.size -= 2 : this.input.endsWith("=") && (this.size -= 1);
|
|
170333
170349
|
}
|
|
@@ -170577,7 +170593,7 @@ const Oqe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
170577
170593
|
extendDictionary: ME,
|
|
170578
170594
|
fetchUrlAsArrayBuffer: FE,
|
|
170579
170595
|
fileParsers: Nl,
|
|
170580
|
-
fileReaders:
|
|
170596
|
+
fileReaders: kl,
|
|
170581
170597
|
gps: jW,
|
|
170582
170598
|
gpsOnlyOptions: qk,
|
|
170583
170599
|
inheritables: Vf,
|
|
@@ -171012,14 +171028,14 @@ function SRA(e, A, t) {
|
|
|
171012
171028
|
}
|
|
171013
171029
|
return i.sort((r, s) => s.band - r.band), i.map((r) => r.feature);
|
|
171014
171030
|
}
|
|
171015
|
-
const
|
|
171031
|
+
const fh = 256;
|
|
171016
171032
|
function e6e(e) {
|
|
171017
171033
|
return Math.atan(Math.sinh(Math.PI * (1 - 2 * e))) * 180 / Math.PI;
|
|
171018
171034
|
}
|
|
171019
171035
|
async function bRA(e) {
|
|
171020
171036
|
const [A, t, i, r] = e.bounds, s = Math.max(0, Math.round(e.zoom)), n = B_(A, r, s), o = B_(i, t, s), a = Math.min(n.x, o.x), g = Math.max(n.x, o.x), l = Math.min(n.y, o.y), C = Math.max(n.y, o.y), Q = (g - a + 1) * (C - l + 1);
|
|
171021
171037
|
if (Q <= 0 || Q > e.maxTiles) return null;
|
|
171022
|
-
const f = (g - a + 1) *
|
|
171038
|
+
const f = (g - a + 1) * fh, S = (C - l + 1) * fh, _ = new Float32Array(f * S), U = new Uint8Array(f * S), Y = await Promise.all(
|
|
171023
171039
|
Array.from({ length: Q }, (eA, sA) => {
|
|
171024
171040
|
const lA = a + sA % (g - a + 1), CA = l + Math.floor(sA / (g - a + 1)), Z = e.template.replace("{z}", String(s)).replace("{x}", String(lA)).replace("{y}", String(CA));
|
|
171025
171041
|
return T6(Z).then((rA) => ({ tx: lA, ty: CA, pixels: rA }));
|
|
@@ -171028,7 +171044,7 @@ async function bRA(e) {
|
|
|
171028
171044
|
if (Y.every((eA) => eA.pixels == null)) return null;
|
|
171029
171045
|
for (const { tx: eA, ty: sA, pixels: lA } of Y) {
|
|
171030
171046
|
if (!lA) continue;
|
|
171031
|
-
const CA = (eA - a) *
|
|
171047
|
+
const CA = (eA - a) * fh, Z = (sA - l) * fh, rA = Math.min(fh, lA.height), nA = Math.min(fh, lA.width);
|
|
171032
171048
|
for (let tA = 0; tA < rA; tA++)
|
|
171033
171049
|
for (let gA = 0; gA < nA; gA++) {
|
|
171034
171050
|
const dA = (tA * lA.width + gA) * 4, SA = (Z + tA) * f + CA + gA;
|
|
@@ -171037,8 +171053,8 @@ async function bRA(e) {
|
|
|
171037
171053
|
}
|
|
171038
171054
|
const O = { width: f, height: S, cell: 1, originX: 0, originY: 0 }, V = 2 ** s;
|
|
171039
171055
|
return { heights: _, covered: U, grid: O, toLngLat: (eA, sA) => [
|
|
171040
|
-
(a *
|
|
171041
|
-
e6e((l *
|
|
171056
|
+
(a * fh + eA) / (V * fh) * 360 - 180,
|
|
171057
|
+
e6e((l * fh + sA) / (V * fh))
|
|
171042
171058
|
] };
|
|
171043
171059
|
}
|
|
171044
171060
|
async function RRA(e) {
|
|
@@ -171729,7 +171745,7 @@ async function Q6e(e, A) {
|
|
|
171729
171745
|
let i = e;
|
|
171730
171746
|
if (t === Sy.Deflate || t === Sy.Zstd) {
|
|
171731
171747
|
const n = t === Sy.Deflate ? bi.Deflate : bi.Zstd;
|
|
171732
|
-
i = await (await
|
|
171748
|
+
i = await (await Gl.get(n)())(e, A);
|
|
171733
171749
|
}
|
|
171734
171750
|
return { layout: "band-separate", bands: (await E6e()).decode(i).pixels };
|
|
171735
171751
|
}
|
|
@@ -174038,7 +174054,7 @@ export {
|
|
|
174038
174054
|
Q5e as OmMap,
|
|
174039
174055
|
ew as ScatterplotLayer,
|
|
174040
174056
|
tw as ScenegraphLayer,
|
|
174041
|
-
|
|
174057
|
+
zh as SimpleMeshLayer,
|
|
174042
174058
|
iw as Tile3DLayer,
|
|
174043
174059
|
UC as TileLayer,
|
|
174044
174060
|
guA as UNIT_SYSTEMS,
|
|
@@ -174094,7 +174110,7 @@ export {
|
|
|
174094
174110
|
EmA as parseWidgetStyle,
|
|
174095
174111
|
Tv as pathLengthMeters,
|
|
174096
174112
|
qi as registerAction,
|
|
174097
|
-
|
|
174113
|
+
Ml as registerBasemap,
|
|
174098
174114
|
n0e as registerCrs,
|
|
174099
174115
|
P5A as registerFormat,
|
|
174100
174116
|
Qg as registerLayer,
|