@reearth/core 0.0.7-alpha.26 → 0.0.7-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +591 -591
- package/dist/core.umd.cjs +23 -23
- package/package.json +1 -1
- package/src/Map/Sketch/hooks.ts +8 -9
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ var Ef = (t, n, o) => (ug(t, typeof n != "symbol" ? n + "" : n, o), o), eg = (t,
|
|
|
4
4
|
if (!n.has(t))
|
|
5
5
|
throw TypeError("Cannot " + o);
|
|
6
6
|
};
|
|
7
|
-
var ef = (t, n, o) => (eg(t, n, "read from private field"), o ? o.call(t) : n.get(t)),
|
|
7
|
+
var ef = (t, n, o) => (eg(t, n, "read from private field"), o ? o.call(t) : n.get(t)), Kf = (t, n, o) => {
|
|
8
8
|
if (n.has(t))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
n instanceof WeakSet ? n.add(t) : n.set(t, o);
|
|
@@ -232,16 +232,16 @@ function requireReactJsxRuntime_development() {
|
|
|
232
232
|
` + uf + al;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
var hf = !1,
|
|
235
|
+
var hf = !1, mf;
|
|
236
236
|
{
|
|
237
237
|
var xf = typeof WeakMap == "function" ? WeakMap : Map;
|
|
238
|
-
|
|
238
|
+
mf = new xf();
|
|
239
239
|
}
|
|
240
240
|
function Vf(al, tf) {
|
|
241
241
|
if (!al || hf)
|
|
242
242
|
return "";
|
|
243
243
|
{
|
|
244
|
-
var lf =
|
|
244
|
+
var lf = mf.get(al);
|
|
245
245
|
if (lf !== void 0)
|
|
246
246
|
return lf;
|
|
247
247
|
}
|
|
@@ -294,9 +294,9 @@ function requireReactJsxRuntime_development() {
|
|
|
294
294
|
if (Gf !== 1 || Xf !== 1)
|
|
295
295
|
do
|
|
296
296
|
if (Gf--, Xf--, Xf < 0 || Mf[Gf] !== Af[Xf]) {
|
|
297
|
-
var
|
|
297
|
+
var jf = `
|
|
298
298
|
` + Mf[Gf].replace(" at new ", " at ");
|
|
299
|
-
return al.displayName &&
|
|
299
|
+
return al.displayName && jf.includes("<anonymous>") && (jf = jf.replace("<anonymous>", al.displayName)), typeof al == "function" && mf.set(al, jf), jf;
|
|
300
300
|
}
|
|
301
301
|
while (Gf >= 1 && Xf >= 0);
|
|
302
302
|
break;
|
|
@@ -306,9 +306,9 @@ function requireReactJsxRuntime_development() {
|
|
|
306
306
|
hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
|
|
307
307
|
}
|
|
308
308
|
var bp = al ? al.displayName || al.name : "", gp = bp ? gf(bp) : "";
|
|
309
|
-
return typeof al == "function" &&
|
|
309
|
+
return typeof al == "function" && mf.set(al, gp), gp;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Rf(al, tf, lf) {
|
|
312
312
|
return Vf(al, !1);
|
|
313
313
|
}
|
|
314
314
|
function Wa(al) {
|
|
@@ -331,7 +331,7 @@ function requireReactJsxRuntime_development() {
|
|
|
331
331
|
if (typeof al == "object")
|
|
332
332
|
switch (al.$$typeof) {
|
|
333
333
|
case y:
|
|
334
|
-
return
|
|
334
|
+
return Rf(al.render);
|
|
335
335
|
case L:
|
|
336
336
|
return af(al.type, tf, lf);
|
|
337
337
|
case F: {
|
|
@@ -381,26 +381,26 @@ function requireReactJsxRuntime_development() {
|
|
|
381
381
|
return lf;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Cf(al) {
|
|
385
385
|
try {
|
|
386
|
-
return
|
|
386
|
+
return ff(al), !1;
|
|
387
387
|
} catch {
|
|
388
388
|
return !0;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function ff(al) {
|
|
392
392
|
return "" + al;
|
|
393
393
|
}
|
|
394
394
|
function Sf(al) {
|
|
395
|
-
if (
|
|
396
|
-
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)),
|
|
395
|
+
if (Cf(al))
|
|
396
|
+
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)), ff(al);
|
|
397
397
|
}
|
|
398
|
-
var
|
|
398
|
+
var wf = Pe.ReactCurrentOwner, Ff = {
|
|
399
399
|
key: !0,
|
|
400
400
|
ref: !0,
|
|
401
401
|
__self: !0,
|
|
402
402
|
__source: !0
|
|
403
|
-
}, Hf,
|
|
403
|
+
}, Hf, Jf;
|
|
404
404
|
function Wf(al) {
|
|
405
405
|
if (Xd.call(al, "ref")) {
|
|
406
406
|
var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
|
|
@@ -417,10 +417,10 @@ function requireReactJsxRuntime_development() {
|
|
|
417
417
|
}
|
|
418
418
|
return al.key !== void 0;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
typeof al.ref == "string" &&
|
|
420
|
+
function vf(al, tf) {
|
|
421
|
+
typeof al.ref == "string" && wf.current;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function pf(al, tf) {
|
|
424
424
|
{
|
|
425
425
|
var lf = function() {
|
|
426
426
|
Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
@@ -434,7 +434,7 @@ function requireReactJsxRuntime_development() {
|
|
|
434
434
|
function Lf(al, tf) {
|
|
435
435
|
{
|
|
436
436
|
var lf = function() {
|
|
437
|
-
|
|
437
|
+
Jf || (Jf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
438
438
|
};
|
|
439
439
|
lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
|
|
440
440
|
get: lf,
|
|
@@ -474,7 +474,7 @@ function requireReactJsxRuntime_development() {
|
|
|
474
474
|
function kf(al, tf, lf, yf, If) {
|
|
475
475
|
{
|
|
476
476
|
var Of, Tf = {}, Mf = null, Af = null;
|
|
477
|
-
lf !== void 0 && (Sf(lf), Mf = "" + lf), tp(tf) && (Sf(tf.key), Mf = "" + tf.key), Wf(tf) && (Af = tf.ref,
|
|
477
|
+
lf !== void 0 && (Sf(lf), Mf = "" + lf), tp(tf) && (Sf(tf.key), Mf = "" + tf.key), Wf(tf) && (Af = tf.ref, vf(tf, If));
|
|
478
478
|
for (Of in tf)
|
|
479
479
|
Xd.call(tf, Of) && !Ff.hasOwnProperty(Of) && (Tf[Of] = tf[Of]);
|
|
480
480
|
if (al && al.defaultProps) {
|
|
@@ -484,9 +484,9 @@ function requireReactJsxRuntime_development() {
|
|
|
484
484
|
}
|
|
485
485
|
if (Mf || Af) {
|
|
486
486
|
var Xf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
|
|
487
|
-
Mf &&
|
|
487
|
+
Mf && pf(Tf, Xf), Af && Lf(Tf, Xf);
|
|
488
488
|
}
|
|
489
|
-
return Df(al, Mf, Af, If, yf,
|
|
489
|
+
return Df(al, Mf, Af, If, yf, wf.current, Tf);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
var Yf = Pe.ReactCurrentOwner, Qf = Pe.ReactDebugCurrentFrame;
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
530
530
|
return tf;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function bf(al, tf) {
|
|
534
534
|
{
|
|
535
535
|
if (!al._store || al._store.validated || al.key != null)
|
|
536
536
|
return;
|
|
@@ -550,7 +550,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
550
550
|
if (nf(al))
|
|
551
551
|
for (var lf = 0; lf < al.length; lf++) {
|
|
552
552
|
var yf = al[lf];
|
|
553
|
-
qf(yf) &&
|
|
553
|
+
qf(yf) && bf(yf, tf);
|
|
554
554
|
}
|
|
555
555
|
else if (qf(al))
|
|
556
556
|
al._store && (al._store.validated = !0);
|
|
@@ -558,7 +558,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
558
558
|
var If = nt(al);
|
|
559
559
|
if (typeof If == "function" && If !== al.entries)
|
|
560
560
|
for (var Of = If.call(al), Tf; !(Tf = Of.next()).done; )
|
|
561
|
-
qf(Tf.value) &&
|
|
561
|
+
qf(Tf.value) && bf(Tf.value, tf);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
@@ -614,17 +614,17 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
614
614
|
if (Xf == null)
|
|
615
615
|
return Xf;
|
|
616
616
|
if (Tf) {
|
|
617
|
-
var
|
|
618
|
-
if (
|
|
617
|
+
var jf = tf.children;
|
|
618
|
+
if (jf !== void 0)
|
|
619
619
|
if (yf)
|
|
620
|
-
if (nf(
|
|
621
|
-
for (var bp = 0; bp <
|
|
622
|
-
Pf(
|
|
623
|
-
Object.freeze && Object.freeze(
|
|
620
|
+
if (nf(jf)) {
|
|
621
|
+
for (var bp = 0; bp < jf.length; bp++)
|
|
622
|
+
Pf(jf[bp], al);
|
|
623
|
+
Object.freeze && Object.freeze(jf);
|
|
624
624
|
} else
|
|
625
625
|
se("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
626
626
|
else
|
|
627
|
-
Pf(
|
|
627
|
+
Pf(jf, al);
|
|
628
628
|
}
|
|
629
629
|
return al === s ? Bf(Xf) : Uf(Xf), Xf;
|
|
630
630
|
}
|
|
@@ -1567,8 +1567,8 @@ const SUSPENSE_PROMISE = Symbol(), isSuspensePromise = (t) => !!t[SUSPENSE_PROMI
|
|
|
1567
1567
|
h(Gd).forEach((xf) => {
|
|
1568
1568
|
xf !== ms && W(xf, Gd, cf);
|
|
1569
1569
|
});
|
|
1570
|
-
const hf = S(ms, Gd),
|
|
1571
|
-
hf !==
|
|
1570
|
+
const hf = S(ms, Gd), mf = W(ms, Gd, cf);
|
|
1571
|
+
hf !== mf && pi(ms, Gd);
|
|
1572
1572
|
} else
|
|
1573
1573
|
uf = zi(ms, Gd, cf);
|
|
1574
1574
|
return pu || yt(ms), uf;
|
|
@@ -9818,10 +9818,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9818
9818
|
Wa.pending_buf[Wa.pending++] = af >>> 8 & 255, Wa.pending_buf[Wa.pending++] = 255 & af;
|
|
9819
9819
|
}
|
|
9820
9820
|
function Gd(Wa, af) {
|
|
9821
|
-
var Xd, gd, pd = Wa.max_chain_length, Zd = Wa.strstart, sf = Wa.prev_length, of = Wa.nice_match, nf = Wa.strstart > Wa.w_size - Ra ? Wa.strstart - (Wa.w_size - Ra) : 0, df = Wa.window,
|
|
9821
|
+
var Xd, gd, pd = Wa.max_chain_length, Zd = Wa.strstart, sf = Wa.prev_length, of = Wa.nice_match, nf = Wa.strstart > Wa.w_size - Ra ? Wa.strstart - (Wa.w_size - Ra) : 0, df = Wa.window, Cf = Wa.w_mask, ff = Wa.prev, Sf = Wa.strstart + La, wf = df[Zd + sf - 1], Ff = df[Zd + sf];
|
|
9822
9822
|
Wa.prev_length >= Wa.good_match && (pd >>= 2), of > Wa.lookahead && (of = Wa.lookahead);
|
|
9823
9823
|
do
|
|
9824
|
-
if (df[(Xd = af) + sf] === Ff && df[Xd + sf - 1] ===
|
|
9824
|
+
if (df[(Xd = af) + sf] === Ff && df[Xd + sf - 1] === wf && df[Xd] === df[Zd] && df[++Xd] === df[Zd + 1]) {
|
|
9825
9825
|
Zd += 2, Xd++;
|
|
9826
9826
|
do
|
|
9827
9827
|
;
|
|
@@ -9829,25 +9829,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9829
9829
|
if (gd = La - (Sf - Zd), Zd = Sf - La, sf < gd) {
|
|
9830
9830
|
if (Wa.match_start = af, of <= (sf = gd))
|
|
9831
9831
|
break;
|
|
9832
|
-
|
|
9832
|
+
wf = df[Zd + sf - 1], Ff = df[Zd + sf];
|
|
9833
9833
|
}
|
|
9834
9834
|
}
|
|
9835
|
-
while ((af =
|
|
9835
|
+
while ((af = ff[af & Cf]) > nf && --pd != 0);
|
|
9836
9836
|
return sf <= Wa.lookahead ? sf : Wa.lookahead;
|
|
9837
9837
|
}
|
|
9838
9838
|
function cf(Wa) {
|
|
9839
|
-
var af, Xd, gd, pd, Zd, sf, of, nf, df,
|
|
9839
|
+
var af, Xd, gd, pd, Zd, sf, of, nf, df, Cf, ff = Wa.w_size;
|
|
9840
9840
|
do {
|
|
9841
|
-
if (pd = Wa.window_size - Wa.lookahead - Wa.strstart, Wa.strstart >=
|
|
9842
|
-
for (h.arraySet(Wa.window, Wa.window,
|
|
9841
|
+
if (pd = Wa.window_size - Wa.lookahead - Wa.strstart, Wa.strstart >= ff + (ff - Ra)) {
|
|
9842
|
+
for (h.arraySet(Wa.window, Wa.window, ff, ff, 0), Wa.match_start -= ff, Wa.strstart -= ff, Wa.block_start -= ff, af = Xd = Wa.hash_size; gd = Wa.head[--af], Wa.head[af] = ff <= gd ? gd - ff : 0, --Xd; )
|
|
9843
9843
|
;
|
|
9844
|
-
for (af = Xd =
|
|
9844
|
+
for (af = Xd = ff; gd = Wa.prev[--af], Wa.prev[af] = ff <= gd ? gd - ff : 0, --Xd; )
|
|
9845
9845
|
;
|
|
9846
|
-
pd +=
|
|
9846
|
+
pd += ff;
|
|
9847
9847
|
}
|
|
9848
9848
|
if (Wa.strm.avail_in === 0)
|
|
9849
9849
|
break;
|
|
9850
|
-
if (sf = Wa.strm, of = Wa.window, nf = Wa.strstart + Wa.lookahead, df = pd,
|
|
9850
|
+
if (sf = Wa.strm, of = Wa.window, nf = Wa.strstart + Wa.lookahead, df = pd, Cf = void 0, Cf = sf.avail_in, df < Cf && (Cf = df), Xd = Cf === 0 ? 0 : (sf.avail_in -= Cf, h.arraySet(of, sf.input, sf.next_in, Cf, nf), sf.state.wrap === 1 ? sf.adler = y(sf.adler, of, Cf, nf) : sf.state.wrap === 2 && (sf.adler = S(sf.adler, of, Cf, nf)), sf.next_in += Cf, sf.total_in += Cf, Cf), Wa.lookahead += Xd, Wa.lookahead + Wa.insert >= fa)
|
|
9851
9851
|
for (Zd = Wa.strstart - Wa.insert, Wa.ins_h = Wa.window[Zd], Wa.ins_h = (Wa.ins_h << Wa.hash_shift ^ Wa.window[Zd + 1]) & Wa.hash_mask; Wa.insert && (Wa.ins_h = (Wa.ins_h << Wa.hash_shift ^ Wa.window[Zd + fa - 1]) & Wa.hash_mask, Wa.prev[Zd & Wa.w_mask] = Wa.head[Wa.ins_h], Wa.head[Wa.ins_h] = Zd, Zd++, Wa.insert--, !(Wa.lookahead + Wa.insert < fa)); )
|
|
9852
9852
|
;
|
|
9853
9853
|
} while (Wa.lookahead < Ra && Wa.strm.avail_in !== 0);
|
|
@@ -9898,7 +9898,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9898
9898
|
function hf(Wa, af, Xd, gd, pd) {
|
|
9899
9899
|
this.good_length = Wa, this.max_lazy = af, this.nice_length = Xd, this.max_chain = gd, this.func = pd;
|
|
9900
9900
|
}
|
|
9901
|
-
function
|
|
9901
|
+
function mf() {
|
|
9902
9902
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = se, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new h.Buf16(2 * zi), this.dyn_dtree = new h.Buf16(2 * (2 * mn + 1)), this.bl_tree = new h.Buf16(2 * (2 * pi + 1)), yu(this.dyn_ltree), yu(this.dyn_dtree), yu(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new h.Buf16(Sa + 1), this.heap = new h.Buf16(2 * kt + 1), yu(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new h.Buf16(2 * kt + 1), yu(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
9903
9903
|
}
|
|
9904
9904
|
function xf(Wa) {
|
|
@@ -9911,14 +9911,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9911
9911
|
Xd.window_size = 2 * Xd.w_size, yu(Xd.head), Xd.max_lazy_match = d[Xd.level].max_lazy, Xd.good_match = d[Xd.level].good_length, Xd.nice_match = d[Xd.level].nice_length, Xd.max_chain_length = d[Xd.level].max_chain, Xd.strstart = 0, Xd.block_start = 0, Xd.lookahead = 0, Xd.insert = 0, Xd.match_length = Xd.prev_length = fa - 1, Xd.match_available = 0, Xd.ins_h = 0;
|
|
9912
9912
|
}(Wa.state), af;
|
|
9913
9913
|
}
|
|
9914
|
-
function
|
|
9914
|
+
function Rf(Wa, af, Xd, gd, pd, Zd) {
|
|
9915
9915
|
if (!Wa)
|
|
9916
9916
|
return z;
|
|
9917
9917
|
var sf = 1;
|
|
9918
9918
|
if (af === W && (af = 6), gd < 0 ? (sf = 0, gd = -gd) : 15 < gd && (sf = 2, gd -= 16), pd < 1 || mt < pd || Xd !== se || gd < 8 || 15 < gd || af < 0 || 9 < af || Zd < 0 || nt < Zd)
|
|
9919
9919
|
return ms(Wa, z);
|
|
9920
9920
|
gd === 8 && (gd = 9);
|
|
9921
|
-
var of = new
|
|
9921
|
+
var of = new mf();
|
|
9922
9922
|
return (Wa.state = of).strm = Wa, of.wrap = sf, of.gzhead = null, of.w_bits = gd, of.w_size = 1 << of.w_bits, of.w_mask = of.w_size - 1, of.hash_bits = pd + 7, of.hash_size = 1 << of.hash_bits, of.hash_mask = of.hash_size - 1, of.hash_shift = ~~((of.hash_bits + fa - 1) / fa), of.window = new h.Buf8(2 * of.w_size), of.head = new h.Buf16(of.hash_size), of.prev = new h.Buf16(of.w_size), of.lit_bufsize = 1 << pd + 6, of.pending_buf_size = 4 * of.lit_bufsize, of.pending_buf = new h.Buf8(of.pending_buf_size), of.d_buf = 1 * of.lit_bufsize, of.l_buf = 3 * of.lit_bufsize, of.level = af, of.strategy = Zd, of.method = Xd, Vf(Wa);
|
|
9923
9923
|
}
|
|
9924
9924
|
d = [new hf(0, 0, 0, 0, function(Wa, af) {
|
|
@@ -9937,8 +9937,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9937
9937
|
}
|
|
9938
9938
|
return Wa.insert = 0, af === F ? (Nl(Wa, !0), Wa.strm.avail_out === 0 ? ba : Sc) : (Wa.strstart > Wa.block_start && (Nl(Wa, !1), Wa.strm.avail_out), lt);
|
|
9939
9939
|
}), new hf(4, 4, 8, 4, uf), new hf(4, 5, 16, 8, uf), new hf(4, 6, 32, 32, uf), new hf(4, 4, 16, 16, gf), new hf(8, 16, 32, 32, gf), new hf(8, 16, 128, 128, gf), new hf(8, 32, 128, 256, gf), new hf(32, 128, 258, 1024, gf), new hf(32, 258, 258, 4096, gf)], c.deflateInit = function(Wa, af) {
|
|
9940
|
-
return
|
|
9941
|
-
}, c.deflateInit2 =
|
|
9940
|
+
return Rf(Wa, af, se, 15, 8, 0);
|
|
9941
|
+
}, c.deflateInit2 = Rf, c.deflateReset = Vf, c.deflateResetKeep = xf, c.deflateSetHeader = function(Wa, af) {
|
|
9942
9942
|
return Wa && Wa.state ? Wa.state.wrap !== 2 ? z : (Wa.state.gzhead = af, N) : z;
|
|
9943
9943
|
}, c.deflate = function(Wa, af) {
|
|
9944
9944
|
var Xd, gd, pd, Zd;
|
|
@@ -9995,32 +9995,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
9995
9995
|
return ms(Wa, -5);
|
|
9996
9996
|
if (Wa.avail_in !== 0 || gd.lookahead !== 0 || af !== L && gd.status !== 666) {
|
|
9997
9997
|
var of = gd.strategy === 2 ? function(nf, df) {
|
|
9998
|
-
for (var
|
|
9998
|
+
for (var Cf; ; ) {
|
|
9999
9999
|
if (nf.lookahead === 0 && (cf(nf), nf.lookahead === 0)) {
|
|
10000
10000
|
if (df === L)
|
|
10001
10001
|
return lt;
|
|
10002
10002
|
break;
|
|
10003
10003
|
}
|
|
10004
|
-
if (nf.match_length = 0,
|
|
10004
|
+
if (nf.match_length = 0, Cf = p._tr_tally(nf, 0, nf.window[nf.strstart]), nf.lookahead--, nf.strstart++, Cf && (Nl(nf, !1), nf.strm.avail_out === 0))
|
|
10005
10005
|
return lt;
|
|
10006
10006
|
}
|
|
10007
10007
|
return nf.insert = 0, df === F ? (Nl(nf, !0), nf.strm.avail_out === 0 ? ba : Sc) : nf.last_lit && (Nl(nf, !1), nf.strm.avail_out === 0) ? lt : _i;
|
|
10008
10008
|
}(gd, af) : gd.strategy === 3 ? function(nf, df) {
|
|
10009
|
-
for (var
|
|
10009
|
+
for (var Cf, ff, Sf, wf, Ff = nf.window; ; ) {
|
|
10010
10010
|
if (nf.lookahead <= La) {
|
|
10011
10011
|
if (cf(nf), nf.lookahead <= La && df === L)
|
|
10012
10012
|
return lt;
|
|
10013
10013
|
if (nf.lookahead === 0)
|
|
10014
10014
|
break;
|
|
10015
10015
|
}
|
|
10016
|
-
if (nf.match_length = 0, nf.lookahead >= fa && 0 < nf.strstart && (
|
|
10017
|
-
|
|
10016
|
+
if (nf.match_length = 0, nf.lookahead >= fa && 0 < nf.strstart && (ff = Ff[Sf = nf.strstart - 1]) === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf]) {
|
|
10017
|
+
wf = nf.strstart + La;
|
|
10018
10018
|
do
|
|
10019
10019
|
;
|
|
10020
|
-
while (
|
|
10021
|
-
nf.match_length = La - (
|
|
10020
|
+
while (ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && ff === Ff[++Sf] && Sf < wf);
|
|
10021
|
+
nf.match_length = La - (wf - Sf), nf.match_length > nf.lookahead && (nf.match_length = nf.lookahead);
|
|
10022
10022
|
}
|
|
10023
|
-
if (nf.match_length >= fa ? (
|
|
10023
|
+
if (nf.match_length >= fa ? (Cf = p._tr_tally(nf, 1, nf.match_length - fa), nf.lookahead -= nf.match_length, nf.strstart += nf.match_length, nf.match_length = 0) : (Cf = p._tr_tally(nf, 0, nf.window[nf.strstart]), nf.lookahead--, nf.strstart++), Cf && (Nl(nf, !1), nf.strm.avail_out === 0))
|
|
10024
10024
|
return lt;
|
|
10025
10025
|
}
|
|
10026
10026
|
return nf.insert = 0, df === F ? (Nl(nf, !0), nf.strm.avail_out === 0 ? ba : Sc) : nf.last_lit && (Nl(nf, !1), nf.strm.avail_out === 0) ? lt : _i;
|
|
@@ -10035,10 +10035,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10035
10035
|
var af;
|
|
10036
10036
|
return Wa && Wa.state ? (af = Wa.state.status) !== ma && af !== 69 && af !== 73 && af !== 91 && af !== 103 && af !== yt && af !== 666 ? ms(Wa, z) : (Wa.state = null, af === yt ? ms(Wa, -3) : N) : z;
|
|
10037
10037
|
}, c.deflateSetDictionary = function(Wa, af) {
|
|
10038
|
-
var Xd, gd, pd, Zd, sf, of, nf, df,
|
|
10038
|
+
var Xd, gd, pd, Zd, sf, of, nf, df, Cf = af.length;
|
|
10039
10039
|
if (!Wa || !Wa.state || (Zd = (Xd = Wa.state).wrap) === 2 || Zd === 1 && Xd.status !== ma || Xd.lookahead)
|
|
10040
10040
|
return z;
|
|
10041
|
-
for (Zd === 1 && (Wa.adler = y(Wa.adler, af,
|
|
10041
|
+
for (Zd === 1 && (Wa.adler = y(Wa.adler, af, Cf, 0)), Xd.wrap = 0, Cf >= Xd.w_size && (Zd === 0 && (yu(Xd.head), Xd.strstart = 0, Xd.block_start = 0, Xd.insert = 0), df = new h.Buf8(Xd.w_size), h.arraySet(df, af, Cf - Xd.w_size, Xd.w_size, 0), af = df, Cf = Xd.w_size), sf = Wa.avail_in, of = Wa.next_in, nf = Wa.input, Wa.avail_in = Cf, Wa.next_in = 0, Wa.input = af, cf(Xd); Xd.lookahead >= fa; ) {
|
|
10042
10042
|
for (gd = Xd.strstart, pd = Xd.lookahead - (fa - 1); Xd.ins_h = (Xd.ins_h << Xd.hash_shift ^ Xd.window[gd + fa - 1]) & Xd.hash_mask, Xd.prev[gd & Xd.w_mask] = Xd.head[Xd.ins_h], Xd.head[Xd.ins_h] = gd, gd++, --pd; )
|
|
10043
10043
|
;
|
|
10044
10044
|
Xd.strstart = gd, Xd.lookahead = fa - 1, cf(Xd);
|
|
@@ -10179,7 +10179,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10179
10179
|
c.inflateReset = kt, c.inflateReset2 = mn, c.inflateResetKeep = mt, c.inflateInit = function(ma) {
|
|
10180
10180
|
return pi(ma, 15);
|
|
10181
10181
|
}, c.inflateInit2 = pi, c.inflate = function(ma, yt) {
|
|
10182
|
-
var lt, _i, ba, Sc, ms, Xs, yu, pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf,
|
|
10182
|
+
var lt, _i, ba, Sc, ms, Xs, yu, pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf, mf, xf, Vf, Rf, Wa, af, Xd, gd, pd = 0, Zd = new d.Buf8(4), sf = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
10183
10183
|
if (!ma || !ma.state || !ma.output || !ma.input && ma.avail_in !== 0)
|
|
10184
10184
|
return N;
|
|
10185
10185
|
(lt = ma.state).mode === 12 && (lt.mode = 13), ms = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, _i = ma.input, Xs = ma.avail_in, pu = lt.hold, Nl = lt.bits, Ru = Xs, Vd = yu, af = F;
|
|
@@ -10390,15 +10390,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10390
10390
|
lt.have = 0, lt.mode = 19;
|
|
10391
10391
|
case 19:
|
|
10392
10392
|
for (; lt.have < lt.nlen + lt.ndist; ) {
|
|
10393
|
-
for (; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255,
|
|
10393
|
+
for (; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255, mf = 65535 & pd, !((gf = pd >>> 24) <= Nl); ) {
|
|
10394
10394
|
if (Xs === 0)
|
|
10395
10395
|
break e;
|
|
10396
10396
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10397
10397
|
}
|
|
10398
|
-
if (
|
|
10399
|
-
pu >>>= gf, Nl -= gf, lt.lens[lt.have++] =
|
|
10398
|
+
if (mf < 16)
|
|
10399
|
+
pu >>>= gf, Nl -= gf, lt.lens[lt.have++] = mf;
|
|
10400
10400
|
else {
|
|
10401
|
-
if (
|
|
10401
|
+
if (mf === 16) {
|
|
10402
10402
|
for (gd = gf + 2; Nl < gd; ) {
|
|
10403
10403
|
if (Xs === 0)
|
|
10404
10404
|
break e;
|
|
@@ -10409,7 +10409,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10409
10409
|
break;
|
|
10410
10410
|
}
|
|
10411
10411
|
Wa = lt.lens[lt.have - 1], Gd = 3 + (3 & pu), pu >>>= 2, Nl -= 2;
|
|
10412
|
-
} else if (
|
|
10412
|
+
} else if (mf === 17) {
|
|
10413
10413
|
for (gd = gf + 3; Nl < gd; ) {
|
|
10414
10414
|
if (Xs === 0)
|
|
10415
10415
|
break e;
|
|
@@ -10455,20 +10455,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10455
10455
|
ma.next_out = ms, ma.avail_out = yu, ma.next_in = Sc, ma.avail_in = Xs, lt.hold = pu, lt.bits = Nl, y(ma, Vd), ms = ma.next_out, ba = ma.output, yu = ma.avail_out, Sc = ma.next_in, _i = ma.input, Xs = ma.avail_in, pu = lt.hold, Nl = lt.bits, lt.mode === 12 && (lt.back = -1);
|
|
10456
10456
|
break;
|
|
10457
10457
|
}
|
|
10458
|
-
for (lt.back = 0; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255,
|
|
10458
|
+
for (lt.back = 0; hf = (pd = lt.lencode[pu & (1 << lt.lenbits) - 1]) >>> 16 & 255, mf = 65535 & pd, !((gf = pd >>> 24) <= Nl); ) {
|
|
10459
10459
|
if (Xs === 0)
|
|
10460
10460
|
break e;
|
|
10461
10461
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10462
10462
|
}
|
|
10463
10463
|
if (hf && !(240 & hf)) {
|
|
10464
|
-
for (xf = gf, Vf = hf,
|
|
10464
|
+
for (xf = gf, Vf = hf, Rf = mf; hf = (pd = lt.lencode[Rf + ((pu & (1 << xf + Vf) - 1) >> xf)]) >>> 16 & 255, mf = 65535 & pd, !(xf + (gf = pd >>> 24) <= Nl); ) {
|
|
10465
10465
|
if (Xs === 0)
|
|
10466
10466
|
break e;
|
|
10467
10467
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10468
10468
|
}
|
|
10469
10469
|
pu >>>= xf, Nl -= xf, lt.back += xf;
|
|
10470
10470
|
}
|
|
10471
|
-
if (pu >>>= gf, Nl -= gf, lt.back += gf, lt.length =
|
|
10471
|
+
if (pu >>>= gf, Nl -= gf, lt.back += gf, lt.length = mf, hf === 0) {
|
|
10472
10472
|
lt.mode = 26;
|
|
10473
10473
|
break;
|
|
10474
10474
|
}
|
|
@@ -10492,13 +10492,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10492
10492
|
}
|
|
10493
10493
|
lt.was = lt.length, lt.mode = 23;
|
|
10494
10494
|
case 23:
|
|
10495
|
-
for (; hf = (pd = lt.distcode[pu & (1 << lt.distbits) - 1]) >>> 16 & 255,
|
|
10495
|
+
for (; hf = (pd = lt.distcode[pu & (1 << lt.distbits) - 1]) >>> 16 & 255, mf = 65535 & pd, !((gf = pd >>> 24) <= Nl); ) {
|
|
10496
10496
|
if (Xs === 0)
|
|
10497
10497
|
break e;
|
|
10498
10498
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
10499
10499
|
}
|
|
10500
10500
|
if (!(240 & hf)) {
|
|
10501
|
-
for (xf = gf, Vf = hf,
|
|
10501
|
+
for (xf = gf, Vf = hf, Rf = mf; hf = (pd = lt.distcode[Rf + ((pu & (1 << xf + Vf) - 1) >> xf)]) >>> 16 & 255, mf = 65535 & pd, !(xf + (gf = pd >>> 24) <= Nl); ) {
|
|
10502
10502
|
if (Xs === 0)
|
|
10503
10503
|
break e;
|
|
10504
10504
|
Xs--, pu += _i[Sc++] << Nl, Nl += 8;
|
|
@@ -10509,7 +10509,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10509
10509
|
ma.msg = "invalid distance code", lt.mode = 30;
|
|
10510
10510
|
break;
|
|
10511
10511
|
}
|
|
10512
|
-
lt.offset =
|
|
10512
|
+
lt.offset = mf, lt.extra = 15 & hf, lt.mode = 24;
|
|
10513
10513
|
case 24:
|
|
10514
10514
|
if (lt.extra) {
|
|
10515
10515
|
for (gd = lt.extra; Nl < gd; ) {
|
|
@@ -10685,12 +10685,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10685
10685
|
return sf >>> 1;
|
|
10686
10686
|
}
|
|
10687
10687
|
function uf(pd, Zd, sf) {
|
|
10688
|
-
var of, nf, df = new Array(nt + 1),
|
|
10688
|
+
var of, nf, df = new Array(nt + 1), Cf = 0;
|
|
10689
10689
|
for (of = 1; of <= nt; of++)
|
|
10690
|
-
df[of] =
|
|
10690
|
+
df[of] = Cf = Cf + sf[of - 1] << 1;
|
|
10691
10691
|
for (nf = 0; nf <= Zd; nf++) {
|
|
10692
|
-
var
|
|
10693
|
-
|
|
10692
|
+
var ff = pd[2 * nf + 1];
|
|
10693
|
+
ff !== 0 && (pd[2 * nf] = cf(df[ff]++, ff));
|
|
10694
10694
|
}
|
|
10695
10695
|
}
|
|
10696
10696
|
function gf(pd) {
|
|
@@ -10706,77 +10706,77 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10706
10706
|
function hf(pd) {
|
|
10707
10707
|
8 < pd.bi_valid ? Ru(pd, pd.bi_buf) : 0 < pd.bi_valid && (pd.pending_buf[pd.pending++] = pd.bi_buf), pd.bi_buf = 0, pd.bi_valid = 0;
|
|
10708
10708
|
}
|
|
10709
|
-
function
|
|
10709
|
+
function mf(pd, Zd, sf, of) {
|
|
10710
10710
|
var nf = 2 * Zd, df = 2 * sf;
|
|
10711
10711
|
return pd[nf] < pd[df] || pd[nf] === pd[df] && of[Zd] <= of[sf];
|
|
10712
10712
|
}
|
|
10713
10713
|
function xf(pd, Zd, sf) {
|
|
10714
|
-
for (var of = pd.heap[sf], nf = sf << 1; nf <= pd.heap_len && (nf < pd.heap_len &&
|
|
10714
|
+
for (var of = pd.heap[sf], nf = sf << 1; nf <= pd.heap_len && (nf < pd.heap_len && mf(Zd, pd.heap[nf + 1], pd.heap[nf], pd.depth) && nf++, !mf(Zd, of, pd.heap[nf], pd.depth)); )
|
|
10715
10715
|
pd.heap[sf] = pd.heap[nf], sf = nf, nf <<= 1;
|
|
10716
10716
|
pd.heap[sf] = of;
|
|
10717
10717
|
}
|
|
10718
10718
|
function Vf(pd, Zd, sf) {
|
|
10719
|
-
var of, nf, df,
|
|
10719
|
+
var of, nf, df, Cf, ff = 0;
|
|
10720
10720
|
if (pd.last_lit !== 0)
|
|
10721
|
-
for (; of = pd.pending_buf[pd.d_buf + 2 *
|
|
10721
|
+
for (; of = pd.pending_buf[pd.d_buf + 2 * ff] << 8 | pd.pending_buf[pd.d_buf + 2 * ff + 1], nf = pd.pending_buf[pd.l_buf + ff], ff++, of === 0 ? Gd(pd, nf, Zd) : (Gd(pd, (df = lt[nf]) + L + 1, Zd), (Cf = zi[df]) !== 0 && Vd(pd, nf -= _i[df], Cf), Gd(pd, df = Nl(--of), sf), (Cf = Sa[df]) !== 0 && Vd(pd, of -= Xs[df], Cf)), ff < pd.last_lit; )
|
|
10722
10722
|
;
|
|
10723
10723
|
Gd(pd, mt, Zd);
|
|
10724
10724
|
}
|
|
10725
|
-
function
|
|
10726
|
-
var sf, of, nf, df = Zd.dyn_tree,
|
|
10725
|
+
function Rf(pd, Zd) {
|
|
10726
|
+
var sf, of, nf, df = Zd.dyn_tree, Cf = Zd.stat_desc.static_tree, ff = Zd.stat_desc.has_stree, Sf = Zd.stat_desc.elems, wf = -1;
|
|
10727
10727
|
for (pd.heap_len = 0, pd.heap_max = W, sf = 0; sf < Sf; sf++)
|
|
10728
|
-
df[2 * sf] !== 0 ? (pd.heap[++pd.heap_len] =
|
|
10728
|
+
df[2 * sf] !== 0 ? (pd.heap[++pd.heap_len] = wf = sf, pd.depth[sf] = 0) : df[2 * sf + 1] = 0;
|
|
10729
10729
|
for (; pd.heap_len < 2; )
|
|
10730
|
-
df[2 * (nf = pd.heap[++pd.heap_len] =
|
|
10731
|
-
for (Zd.max_code =
|
|
10730
|
+
df[2 * (nf = pd.heap[++pd.heap_len] = wf < 2 ? ++wf : 0)] = 1, pd.depth[nf] = 0, pd.opt_len--, ff && (pd.static_len -= Cf[2 * nf + 1]);
|
|
10731
|
+
for (Zd.max_code = wf, sf = pd.heap_len >> 1; 1 <= sf; sf--)
|
|
10732
10732
|
xf(pd, df, sf);
|
|
10733
10733
|
for (nf = Sf; sf = pd.heap[1], pd.heap[1] = pd.heap[pd.heap_len--], xf(pd, df, 1), of = pd.heap[1], pd.heap[--pd.heap_max] = sf, pd.heap[--pd.heap_max] = of, df[2 * nf] = df[2 * sf] + df[2 * of], pd.depth[nf] = (pd.depth[sf] >= pd.depth[of] ? pd.depth[sf] : pd.depth[of]) + 1, df[2 * sf + 1] = df[2 * of + 1] = nf, pd.heap[1] = nf++, xf(pd, df, 1), 2 <= pd.heap_len; )
|
|
10734
10734
|
;
|
|
10735
10735
|
pd.heap[--pd.heap_max] = pd.heap[1], function(Ff, Hf) {
|
|
10736
|
-
var
|
|
10737
|
-
for (
|
|
10738
|
-
Ff.bl_count[
|
|
10739
|
-
for (Df[2 * Ff.heap[Ff.heap_max] + 1] = 0,
|
|
10740
|
-
qf < (
|
|
10736
|
+
var Jf, Wf, tp, vf, pf, Lf, Df = Hf.dyn_tree, kf = Hf.max_code, Yf = Hf.stat_desc.static_tree, Qf = Hf.stat_desc.has_stree, Zf = Hf.stat_desc.extra_bits, np = Hf.stat_desc.extra_base, qf = Hf.stat_desc.max_length, ip = 0;
|
|
10737
|
+
for (vf = 0; vf <= nt; vf++)
|
|
10738
|
+
Ff.bl_count[vf] = 0;
|
|
10739
|
+
for (Df[2 * Ff.heap[Ff.heap_max] + 1] = 0, Jf = Ff.heap_max + 1; Jf < W; Jf++)
|
|
10740
|
+
qf < (vf = Df[2 * Df[2 * (Wf = Ff.heap[Jf]) + 1] + 1] + 1) && (vf = qf, ip++), Df[2 * Wf + 1] = vf, kf < Wf || (Ff.bl_count[vf]++, pf = 0, np <= Wf && (pf = Zf[Wf - np]), Lf = Df[2 * Wf], Ff.opt_len += Lf * (vf + pf), Qf && (Ff.static_len += Lf * (Yf[2 * Wf + 1] + pf)));
|
|
10741
10741
|
if (ip !== 0) {
|
|
10742
10742
|
do {
|
|
10743
|
-
for (
|
|
10744
|
-
|
|
10745
|
-
Ff.bl_count[
|
|
10743
|
+
for (vf = qf - 1; Ff.bl_count[vf] === 0; )
|
|
10744
|
+
vf--;
|
|
10745
|
+
Ff.bl_count[vf]--, Ff.bl_count[vf + 1] += 2, Ff.bl_count[qf]--, ip -= 2;
|
|
10746
10746
|
} while (0 < ip);
|
|
10747
|
-
for (
|
|
10748
|
-
for (Wf = Ff.bl_count[
|
|
10749
|
-
kf < (tp = Ff.heap[--
|
|
10747
|
+
for (vf = qf; vf !== 0; vf--)
|
|
10748
|
+
for (Wf = Ff.bl_count[vf]; Wf !== 0; )
|
|
10749
|
+
kf < (tp = Ff.heap[--Jf]) || (Df[2 * tp + 1] !== vf && (Ff.opt_len += (vf - Df[2 * tp + 1]) * Df[2 * tp], Df[2 * tp + 1] = vf), Wf--);
|
|
10750
10750
|
}
|
|
10751
|
-
}(pd, Zd), uf(df,
|
|
10751
|
+
}(pd, Zd), uf(df, wf, pd.bl_count);
|
|
10752
10752
|
}
|
|
10753
10753
|
function Wa(pd, Zd, sf) {
|
|
10754
|
-
var of, nf, df = -1,
|
|
10755
|
-
for (
|
|
10756
|
-
nf =
|
|
10754
|
+
var of, nf, df = -1, Cf = Zd[1], ff = 0, Sf = 7, wf = 4;
|
|
10755
|
+
for (Cf === 0 && (Sf = 138, wf = 3), Zd[2 * (sf + 1) + 1] = 65535, of = 0; of <= sf; of++)
|
|
10756
|
+
nf = Cf, Cf = Zd[2 * (of + 1) + 1], ++ff < Sf && nf === Cf || (ff < wf ? pd.bl_tree[2 * nf] += ff : nf !== 0 ? (nf !== df && pd.bl_tree[2 * nf]++, pd.bl_tree[2 * kt]++) : ff <= 10 ? pd.bl_tree[2 * mn]++ : pd.bl_tree[2 * pi]++, df = nf, wf = (ff = 0) === Cf ? (Sf = 138, 3) : nf === Cf ? (Sf = 6, 3) : (Sf = 7, 4));
|
|
10757
10757
|
}
|
|
10758
10758
|
function af(pd, Zd, sf) {
|
|
10759
|
-
var of, nf, df = -1,
|
|
10760
|
-
for (
|
|
10761
|
-
if (nf =
|
|
10762
|
-
if (
|
|
10763
|
-
for (; Gd(pd, nf, pd.bl_tree), --
|
|
10759
|
+
var of, nf, df = -1, Cf = Zd[1], ff = 0, Sf = 7, wf = 4;
|
|
10760
|
+
for (Cf === 0 && (Sf = 138, wf = 3), of = 0; of <= sf; of++)
|
|
10761
|
+
if (nf = Cf, Cf = Zd[2 * (of + 1) + 1], !(++ff < Sf && nf === Cf)) {
|
|
10762
|
+
if (ff < wf)
|
|
10763
|
+
for (; Gd(pd, nf, pd.bl_tree), --ff != 0; )
|
|
10764
10764
|
;
|
|
10765
10765
|
else
|
|
10766
|
-
nf !== 0 ? (nf !== df && (Gd(pd, nf, pd.bl_tree),
|
|
10767
|
-
df = nf,
|
|
10766
|
+
nf !== 0 ? (nf !== df && (Gd(pd, nf, pd.bl_tree), ff--), Gd(pd, kt, pd.bl_tree), Vd(pd, ff - 3, 2)) : ff <= 10 ? (Gd(pd, mn, pd.bl_tree), Vd(pd, ff - 3, 3)) : (Gd(pd, pi, pd.bl_tree), Vd(pd, ff - 11, 7));
|
|
10767
|
+
df = nf, wf = (ff = 0) === Cf ? (Sf = 138, 3) : nf === Cf ? (Sf = 6, 3) : (Sf = 7, 4);
|
|
10768
10768
|
}
|
|
10769
10769
|
}
|
|
10770
10770
|
y(Xs);
|
|
10771
10771
|
var Xd = !1;
|
|
10772
10772
|
function gd(pd, Zd, sf, of) {
|
|
10773
|
-
Vd(pd, (S << 1) + (of ? 1 : 0), 3), function(nf, df,
|
|
10774
|
-
hf(nf), Ru(nf,
|
|
10773
|
+
Vd(pd, (S << 1) + (of ? 1 : 0), 3), function(nf, df, Cf, ff) {
|
|
10774
|
+
hf(nf), Ru(nf, Cf), Ru(nf, ~Cf), d.arraySet(nf.pending_buf, nf.window, df, Cf, nf.pending), nf.pending += Cf;
|
|
10775
10775
|
}(pd, Zd, sf);
|
|
10776
10776
|
}
|
|
10777
10777
|
c._tr_init = function(pd) {
|
|
10778
10778
|
Xd || (function() {
|
|
10779
|
-
var Zd, sf, of, nf, df,
|
|
10779
|
+
var Zd, sf, of, nf, df, Cf = new Array(nt + 1);
|
|
10780
10780
|
for (nf = of = 0; nf < P - 1; nf++)
|
|
10781
10781
|
for (_i[nf] = of, Zd = 0; Zd < 1 << zi[nf]; Zd++)
|
|
10782
10782
|
lt[of++] = nf;
|
|
@@ -10787,43 +10787,43 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10787
10787
|
for (Xs[nf] = df << 7, Zd = 0; Zd < 1 << Sa[nf] - 7; Zd++)
|
|
10788
10788
|
yt[256 + df++] = nf;
|
|
10789
10789
|
for (sf = 0; sf <= nt; sf++)
|
|
10790
|
-
|
|
10790
|
+
Cf[sf] = 0;
|
|
10791
10791
|
for (Zd = 0; Zd <= 143; )
|
|
10792
|
-
Ra[2 * Zd + 1] = 8, Zd++,
|
|
10792
|
+
Ra[2 * Zd + 1] = 8, Zd++, Cf[8]++;
|
|
10793
10793
|
for (; Zd <= 255; )
|
|
10794
|
-
Ra[2 * Zd + 1] = 9, Zd++,
|
|
10794
|
+
Ra[2 * Zd + 1] = 9, Zd++, Cf[9]++;
|
|
10795
10795
|
for (; Zd <= 279; )
|
|
10796
|
-
Ra[2 * Zd + 1] = 7, Zd++,
|
|
10796
|
+
Ra[2 * Zd + 1] = 7, Zd++, Cf[7]++;
|
|
10797
10797
|
for (; Zd <= 287; )
|
|
10798
|
-
Ra[2 * Zd + 1] = 8, Zd++,
|
|
10799
|
-
for (uf(Ra, F + 1,
|
|
10798
|
+
Ra[2 * Zd + 1] = 8, Zd++, Cf[8]++;
|
|
10799
|
+
for (uf(Ra, F + 1, Cf), Zd = 0; Zd < N; Zd++)
|
|
10800
10800
|
ma[2 * Zd + 1] = 5, ma[2 * Zd] = cf(Zd, 5);
|
|
10801
10801
|
ba = new yu(Ra, zi, L + 1, F, nt), Sc = new yu(ma, Sa, 0, N, nt), ms = new yu(new Array(0), fa, 0, z, se);
|
|
10802
10802
|
}(), Xd = !0), pd.l_desc = new pu(pd.dyn_ltree, ba), pd.d_desc = new pu(pd.dyn_dtree, Sc), pd.bl_desc = new pu(pd.bl_tree, ms), pd.bi_buf = 0, pd.bi_valid = 0, gf(pd);
|
|
10803
10803
|
}, c._tr_stored_block = gd, c._tr_flush_block = function(pd, Zd, sf, of) {
|
|
10804
|
-
var nf, df,
|
|
10805
|
-
0 < pd.level ? (pd.strm.data_type === 2 && (pd.strm.data_type = function(
|
|
10806
|
-
var Sf,
|
|
10807
|
-
for (Sf = 0; Sf <= 31; Sf++,
|
|
10808
|
-
if (1 &
|
|
10804
|
+
var nf, df, Cf = 0;
|
|
10805
|
+
0 < pd.level ? (pd.strm.data_type === 2 && (pd.strm.data_type = function(ff) {
|
|
10806
|
+
var Sf, wf = 4093624447;
|
|
10807
|
+
for (Sf = 0; Sf <= 31; Sf++, wf >>>= 1)
|
|
10808
|
+
if (1 & wf && ff.dyn_ltree[2 * Sf] !== 0)
|
|
10809
10809
|
return h;
|
|
10810
|
-
if (
|
|
10810
|
+
if (ff.dyn_ltree[18] !== 0 || ff.dyn_ltree[20] !== 0 || ff.dyn_ltree[26] !== 0)
|
|
10811
10811
|
return p;
|
|
10812
10812
|
for (Sf = 32; Sf < L; Sf++)
|
|
10813
|
-
if (
|
|
10813
|
+
if (ff.dyn_ltree[2 * Sf] !== 0)
|
|
10814
10814
|
return p;
|
|
10815
10815
|
return h;
|
|
10816
|
-
}(pd)),
|
|
10816
|
+
}(pd)), Rf(pd, pd.l_desc), Rf(pd, pd.d_desc), Cf = function(ff) {
|
|
10817
10817
|
var Sf;
|
|
10818
|
-
for (Wa(
|
|
10818
|
+
for (Wa(ff, ff.dyn_ltree, ff.l_desc.max_code), Wa(ff, ff.dyn_dtree, ff.d_desc.max_code), Rf(ff, ff.bl_desc), Sf = z - 1; 3 <= Sf && ff.bl_tree[2 * La[Sf] + 1] === 0; Sf--)
|
|
10819
10819
|
;
|
|
10820
|
-
return
|
|
10821
|
-
}(pd), nf = pd.opt_len + 3 + 7 >>> 3, (df = pd.static_len + 3 + 7 >>> 3) <= nf && (nf = df)) : nf = df = sf + 5, sf + 4 <= nf && Zd !== -1 ? gd(pd, Zd, sf, of) : pd.strategy === 4 || df === nf ? (Vd(pd, 2 + (of ? 1 : 0), 3), Vf(pd, Ra, ma)) : (Vd(pd, 4 + (of ? 1 : 0), 3), function(
|
|
10820
|
+
return ff.opt_len += 3 * (Sf + 1) + 5 + 5 + 4, Sf;
|
|
10821
|
+
}(pd), nf = pd.opt_len + 3 + 7 >>> 3, (df = pd.static_len + 3 + 7 >>> 3) <= nf && (nf = df)) : nf = df = sf + 5, sf + 4 <= nf && Zd !== -1 ? gd(pd, Zd, sf, of) : pd.strategy === 4 || df === nf ? (Vd(pd, 2 + (of ? 1 : 0), 3), Vf(pd, Ra, ma)) : (Vd(pd, 4 + (of ? 1 : 0), 3), function(ff, Sf, wf, Ff) {
|
|
10822
10822
|
var Hf;
|
|
10823
|
-
for (Vd(
|
|
10824
|
-
Vd(
|
|
10825
|
-
af(
|
|
10826
|
-
}(pd, pd.l_desc.max_code + 1, pd.d_desc.max_code + 1,
|
|
10823
|
+
for (Vd(ff, Sf - 257, 5), Vd(ff, wf - 1, 5), Vd(ff, Ff - 4, 4), Hf = 0; Hf < Ff; Hf++)
|
|
10824
|
+
Vd(ff, ff.bl_tree[2 * La[Hf] + 1], 3);
|
|
10825
|
+
af(ff, ff.dyn_ltree, Sf - 1), af(ff, ff.dyn_dtree, wf - 1);
|
|
10826
|
+
}(pd, pd.l_desc.max_code + 1, pd.d_desc.max_code + 1, Cf + 1), Vf(pd, pd.dyn_ltree, pd.dyn_dtree)), gf(pd), of && hf(pd);
|
|
10827
10827
|
}, c._tr_tally = function(pd, Zd, sf) {
|
|
10828
10828
|
return pd.pending_buf[pd.d_buf + 2 * pd.last_lit] = Zd >>> 8 & 255, pd.pending_buf[pd.d_buf + 2 * pd.last_lit + 1] = 255 & Zd, pd.pending_buf[pd.l_buf + pd.last_lit] = 255 & sf, pd.last_lit++, Zd === 0 ? pd.dyn_ltree[2 * sf]++ : (pd.matches++, Zd--, pd.dyn_ltree[2 * (lt[sf] + L + 1)]++, pd.dyn_dtree[2 * Nl(Zd)]++), pd.last_lit === pd.lit_bufsize - 1;
|
|
10829
10829
|
}, c._tr_align = function(pd) {
|
|
@@ -14759,8 +14759,8 @@ function useHooks$a({
|
|
|
14759
14759
|
if (Xd === "computed") {
|
|
14760
14760
|
if (!pi(pd.id))
|
|
14761
14761
|
return;
|
|
14762
|
-
const
|
|
14763
|
-
return
|
|
14762
|
+
const Cf = Object.create(zi);
|
|
14763
|
+
return Cf.id = gd, Cf;
|
|
14764
14764
|
}
|
|
14765
14765
|
return pd[Xd];
|
|
14766
14766
|
}
|
|
@@ -14815,11 +14815,11 @@ function useHooks$a({
|
|
|
14815
14815
|
[y]
|
|
14816
14816
|
), lt = useRef(S), _i = useCallback(
|
|
14817
14817
|
(Xd, gd) => {
|
|
14818
|
-
var Ff, Hf,
|
|
14818
|
+
var Ff, Hf, Jf, Wf, tp;
|
|
14819
14819
|
const pd = y.get(Xd);
|
|
14820
14820
|
if (!pd)
|
|
14821
14821
|
return;
|
|
14822
|
-
const Zd = lt.current.find((
|
|
14822
|
+
const Zd = lt.current.find((vf) => vf.id === Xd), sf = ((Ff = gd == null ? void 0 : gd.data) == null ? void 0 : Ff.value) ?? ((Hf = Zd == null ? void 0 : Zd.data) == null ? void 0 : Hf.value), of = deepAssign(
|
|
14823
14823
|
{
|
|
14824
14824
|
...Zd || {},
|
|
14825
14825
|
...Zd != null && Zd.data ? { data: omit(Zd.data, "value") } : {}
|
|
@@ -14836,7 +14836,7 @@ function useHooks$a({
|
|
|
14836
14836
|
extensionId: pd.compat.extensionId,
|
|
14837
14837
|
property: {
|
|
14838
14838
|
default: {
|
|
14839
|
-
...((
|
|
14839
|
+
...((Jf = pd.compat.property) == null ? void 0 : Jf.default) || {},
|
|
14840
14840
|
...nf.default || {}
|
|
14841
14841
|
}
|
|
14842
14842
|
}
|
|
@@ -14847,16 +14847,16 @@ function useHooks$a({
|
|
|
14847
14847
|
if (!df)
|
|
14848
14848
|
return;
|
|
14849
14849
|
pd.type === "simple" && ((Wf = pd.data) != null && Wf.value) && // If data isn't cachable, reuse layer id for performance.
|
|
14850
|
-
DATA_CACHE_KEYS.some((
|
|
14851
|
-
var
|
|
14852
|
-
return !((
|
|
14850
|
+
DATA_CACHE_KEYS.some((vf) => {
|
|
14851
|
+
var pf;
|
|
14852
|
+
return !((pf = pd.data) != null && pf[vf]);
|
|
14853
14853
|
}) && Object.isExtensible(pd.data.value) && df.type === "simple" && ((tp = df == null ? void 0 : df.data) != null && tp.value) && (df.data.value.id = Xd);
|
|
14854
|
-
const
|
|
14855
|
-
...
|
|
14856
|
-
|
|
14857
|
-
...
|
|
14854
|
+
const Cf = { id: Xd, ...omit(df, "id", "type", "children") }, ff = lt.current, Sf = ff.findIndex((vf) => vf.id === Xd), wf = Sf < 0 ? [...ff, Cf] : [
|
|
14855
|
+
...ff.slice(0, Sf),
|
|
14856
|
+
Cf,
|
|
14857
|
+
...ff.slice(Sf + 1)
|
|
14858
14858
|
];
|
|
14859
|
-
lt.current =
|
|
14859
|
+
lt.current = wf, P(wf);
|
|
14860
14860
|
},
|
|
14861
14861
|
[y]
|
|
14862
14862
|
), ba = useCallback(
|
|
@@ -14878,7 +14878,7 @@ function useHooks$a({
|
|
|
14878
14878
|
return of.map((df) => df.id).forEach((df) => {
|
|
14879
14879
|
y.delete(df), L.delete(df), F.delete(df), W(df);
|
|
14880
14880
|
}), kt.current = kt.current.filter(
|
|
14881
|
-
(df) => !of.find((
|
|
14881
|
+
(df) => !of.find((Cf) => Cf.id === df.id)
|
|
14882
14882
|
), nf;
|
|
14883
14883
|
});
|
|
14884
14884
|
const Zd = lt.current.filter((sf) => !Xd.includes(sf.id));
|
|
@@ -14916,7 +14916,7 @@ function useHooks$a({
|
|
|
14916
14916
|
}), gd;
|
|
14917
14917
|
},
|
|
14918
14918
|
[uf]
|
|
14919
|
-
),
|
|
14919
|
+
), mf = useCallback(
|
|
14920
14920
|
(...Xd) => hf(
|
|
14921
14921
|
(gd) => {
|
|
14922
14922
|
var pd;
|
|
@@ -14948,7 +14948,7 @@ function useHooks$a({
|
|
|
14948
14948
|
z(gd);
|
|
14949
14949
|
},
|
|
14950
14950
|
[z]
|
|
14951
|
-
),
|
|
14951
|
+
), Rf = useCallback(
|
|
14952
14952
|
(...Xd) => {
|
|
14953
14953
|
for (const gd of Xd)
|
|
14954
14954
|
W(gd);
|
|
@@ -14972,10 +14972,10 @@ function useHooks$a({
|
|
|
14972
14972
|
walk: uf,
|
|
14973
14973
|
find: gf,
|
|
14974
14974
|
findAll: hf,
|
|
14975
|
-
findByTags:
|
|
14975
|
+
findByTags: mf,
|
|
14976
14976
|
findByTagLabels: xf,
|
|
14977
14977
|
hide: Vf,
|
|
14978
|
-
show:
|
|
14978
|
+
show: Rf,
|
|
14979
14979
|
select: Sc,
|
|
14980
14980
|
selectFeature: ms,
|
|
14981
14981
|
selectFeatures: Xs,
|
|
@@ -14998,10 +14998,10 @@ function useHooks$a({
|
|
|
14998
14998
|
uf,
|
|
14999
14999
|
gf,
|
|
15000
15000
|
hf,
|
|
15001
|
-
|
|
15001
|
+
mf,
|
|
15002
15002
|
xf,
|
|
15003
15003
|
Vf,
|
|
15004
|
-
|
|
15004
|
+
Rf,
|
|
15005
15005
|
Sc,
|
|
15006
15006
|
ms,
|
|
15007
15007
|
Xs,
|
|
@@ -19308,7 +19308,7 @@ const usePluginSketchLayer = ({
|
|
|
19308
19308
|
]
|
|
19309
19309
|
), Sa = useCallback(
|
|
19310
19310
|
(Ru) => {
|
|
19311
|
-
var Vd, Gd, cf, uf, gf, hf,
|
|
19311
|
+
var Vd, Gd, cf, uf, gf, hf, mf, xf, Vf, Rf;
|
|
19312
19312
|
if (!(o || Ru.lng === void 0 || Ru.lat === void 0 || Ru.height === void 0 || Ru.x === void 0 || Ru.y === void 0 || !n.current)) {
|
|
19313
19313
|
if (P.current = [Ru.lng, Ru.lat, Ru.height], t.matches("drawing")) {
|
|
19314
19314
|
invariant$1(t.context.type != null), invariant$1(t.context.controlPoints != null);
|
|
@@ -19340,11 +19340,11 @@ const usePluginSketchLayer = ({
|
|
|
19340
19340
|
if (t.context.catchedExtrudedPoint) {
|
|
19341
19341
|
invariant$1((L == null ? void 0 : L.controlPoints) != null);
|
|
19342
19342
|
const Wa = (xf = n.current) == null ? void 0 : xf.getExtrudedHeight(
|
|
19343
|
-
L == null ? void 0 : L.controlPoints[((
|
|
19343
|
+
L == null ? void 0 : L.controlPoints[((mf = L == null ? void 0 : L.controlPoints) == null ? void 0 : mf.length) - 1],
|
|
19344
19344
|
[Ru.x, Ru.y]
|
|
19345
19345
|
);
|
|
19346
19346
|
if (Wa != null && (z(Wa), t.context.controlPoints)) {
|
|
19347
|
-
const af = (
|
|
19347
|
+
const af = (Rf = n.current) == null ? void 0 : Rf.getExtrudedPoint(
|
|
19348
19348
|
L == null ? void 0 : L.controlPoints[((Vf = L == null ? void 0 : L.controlPoints) == null ? void 0 : Vf.length) - 1],
|
|
19349
19349
|
Wa
|
|
19350
19350
|
);
|
|
@@ -19427,10 +19427,10 @@ const usePluginSketchLayer = ({
|
|
|
19427
19427
|
type: t.context.type,
|
|
19428
19428
|
controlPoints: [hf]
|
|
19429
19429
|
};
|
|
19430
|
-
const
|
|
19431
|
-
if (S.current = null,
|
|
19430
|
+
const mf = Pe();
|
|
19431
|
+
if (S.current = null, mf == null)
|
|
19432
19432
|
return;
|
|
19433
|
-
se(
|
|
19433
|
+
se(mf), p({ type: "CREATE" }), y(null);
|
|
19434
19434
|
return;
|
|
19435
19435
|
}
|
|
19436
19436
|
if (hasDuplicate(
|
|
@@ -19440,10 +19440,10 @@ const usePluginSketchLayer = ({
|
|
|
19440
19440
|
))
|
|
19441
19441
|
return;
|
|
19442
19442
|
if (t.context.type === "circle" || t.context.type === "rectangle" && ((gf = t.context.controlPoints) == null ? void 0 : gf.length) === 2) {
|
|
19443
|
-
const
|
|
19444
|
-
if (
|
|
19443
|
+
const mf = Pe();
|
|
19444
|
+
if (mf == null)
|
|
19445
19445
|
return;
|
|
19446
|
-
se(
|
|
19446
|
+
se(mf), p({ type: "CREATE" }), y(null);
|
|
19447
19447
|
return;
|
|
19448
19448
|
} else {
|
|
19449
19449
|
if (Ru.x === void 0 || Ru.y === void 0)
|
|
@@ -19724,8 +19724,8 @@ function useHooks$9({
|
|
|
19724
19724
|
onSketchEditFeature: W,
|
|
19725
19725
|
onMount: nt
|
|
19726
19726
|
}) {
|
|
19727
|
-
const [Pe, se] = useMachine(sketchMachine), [mt, kt] = useState(), [mn, pi] = useState("editor"), zi = useCallback((rf,
|
|
19728
|
-
kt(rf), pi(
|
|
19727
|
+
const [Pe, se] = useMachine(sketchMachine), [mt, kt] = useState(), [mn, pi] = useState("editor"), zi = useCallback((rf, bf) => {
|
|
19728
|
+
kt(rf), pi(bf ?? "editor");
|
|
19729
19729
|
}, []), [Sa, fa] = useState(!1), [La, Ra] = useState({
|
|
19730
19730
|
color: PRESET_COLOR,
|
|
19731
19731
|
appearance: PRESET_APPEARANCE,
|
|
@@ -19736,35 +19736,35 @@ function useHooks$9({
|
|
|
19736
19736
|
// NOTE: Centroid extrude is not finalized yet
|
|
19737
19737
|
useCentroidExtrudedHeight: !1
|
|
19738
19738
|
}), ma = useCallback((rf) => {
|
|
19739
|
-
Ra((
|
|
19740
|
-
...
|
|
19739
|
+
Ra((bf) => ({
|
|
19740
|
+
...bf,
|
|
19741
19741
|
...rf,
|
|
19742
|
-
appearance: merge(cloneDeep(
|
|
19742
|
+
appearance: merge(cloneDeep(bf.appearance), rf.appearance)
|
|
19743
19743
|
}));
|
|
19744
19744
|
}, []), [yt, lt] = useState(null), [_i, ba] = useState(0), [Sc, ms] = useState(), [Xs, yu] = useState(), [pu, Nl] = useState(), [Ru, Vd] = useState(), Gd = useRef(null), cf = useRef(), uf = useMemo(() => Pe.matches("editing"), [Pe]), gf = useCallback(() => {
|
|
19745
19745
|
var Pf;
|
|
19746
19746
|
const rf = mt === "marker" ? Gd.current : yt;
|
|
19747
19747
|
if (rf == null)
|
|
19748
19748
|
return null;
|
|
19749
|
-
const
|
|
19750
|
-
return
|
|
19749
|
+
const bf = (Pf = n.current) == null ? void 0 : Pf.createGeometry(rf);
|
|
19750
|
+
return bf == null || mt !== "polyline" && bf.type === "LineString" ? null : feature$1(bf, {
|
|
19751
19751
|
id: v4(),
|
|
19752
19752
|
type: rf.type,
|
|
19753
19753
|
positions: rf.controlPoints,
|
|
19754
19754
|
extrudedHeight: _i
|
|
19755
19755
|
});
|
|
19756
19756
|
}, [_i, yt, Gd, mt, n]), hf = useCallback(() => {
|
|
19757
|
-
var
|
|
19757
|
+
var bf;
|
|
19758
19758
|
if (yt == null || !(c != null && c.id))
|
|
19759
19759
|
return null;
|
|
19760
|
-
const rf = (
|
|
19760
|
+
const rf = (bf = n.current) == null ? void 0 : bf.createGeometry(yt);
|
|
19761
19761
|
return rf == null ? null : feature$1(rf, {
|
|
19762
19762
|
id: c == null ? void 0 : c.id,
|
|
19763
19763
|
type: yt == null ? void 0 : yt.type,
|
|
19764
19764
|
positions: yt == null ? void 0 : yt.controlPoints,
|
|
19765
19765
|
extrudedHeight: _i
|
|
19766
19766
|
});
|
|
19767
|
-
}, [_i, yt, c, n]),
|
|
19767
|
+
}, [_i, yt, c, n]), mf = useCallback(
|
|
19768
19768
|
(rf) => {
|
|
19769
19769
|
if (ba(0), ms(void 0), Pe.context.type == null || Pe.context.controlPoints == null) {
|
|
19770
19770
|
lt(null);
|
|
@@ -19776,23 +19776,23 @@ function useHooks$9({
|
|
|
19776
19776
|
});
|
|
19777
19777
|
},
|
|
19778
19778
|
[Pe, lt, ba]
|
|
19779
|
-
), xf = useRef(
|
|
19780
|
-
xf.current =
|
|
19779
|
+
), xf = useRef(mf);
|
|
19780
|
+
xf.current = mf;
|
|
19781
19781
|
const Vf = useCallback(
|
|
19782
19782
|
async (rf) => {
|
|
19783
19783
|
var Uf;
|
|
19784
|
-
const
|
|
19785
|
-
if (yu(
|
|
19784
|
+
const bf = await getCentroid(rf, n);
|
|
19785
|
+
if (yu(bf), !bf)
|
|
19786
19786
|
return;
|
|
19787
19787
|
const Pf = (Uf = n.current) == null ? void 0 : Uf.getExtrudedPoint(
|
|
19788
|
-
|
|
19788
|
+
bf,
|
|
19789
19789
|
_i
|
|
19790
19790
|
);
|
|
19791
19791
|
Nl(Pf);
|
|
19792
19792
|
},
|
|
19793
19793
|
[n, _i]
|
|
19794
19794
|
), {
|
|
19795
|
-
pluginSketchLayerCreate:
|
|
19795
|
+
pluginSketchLayerCreate: Rf,
|
|
19796
19796
|
pluginSketchLayerFeatureAdd: Wa,
|
|
19797
19797
|
pluginSketchLayerFeatureUpdate: af,
|
|
19798
19798
|
pluginSketchLayerFeatureRemove: Xd
|
|
@@ -19805,7 +19805,7 @@ function useHooks$9({
|
|
|
19805
19805
|
from: mn,
|
|
19806
19806
|
updateType: kt,
|
|
19807
19807
|
onSketchFeatureCreate: p,
|
|
19808
|
-
pluginSketchLayerCreate:
|
|
19808
|
+
pluginSketchLayerCreate: Rf,
|
|
19809
19809
|
pluginSketchLayerFeatureAdd: Wa,
|
|
19810
19810
|
pluginSketchLayerFeatureUpdate: af,
|
|
19811
19811
|
pluginSketchLayerFeatureRemove: Xd,
|
|
@@ -19820,7 +19820,7 @@ function useHooks$9({
|
|
|
19820
19820
|
var Pf, Uf, Bf, ep, ap, up, fp, pp, al, tf, lf, yf, If, Of, Tf;
|
|
19821
19821
|
if (W == null || W(rf), !Pe.matches("idle") || !rf)
|
|
19822
19822
|
return;
|
|
19823
|
-
const
|
|
19823
|
+
const bf = (Uf = (Pf = rf == null ? void 0 : rf.feature) == null ? void 0 : Pf.properties) == null ? void 0 : Uf.type;
|
|
19824
19824
|
se({
|
|
19825
19825
|
type: {
|
|
19826
19826
|
marker: "EDIT_MARKER",
|
|
@@ -19831,11 +19831,11 @@ function useHooks$9({
|
|
|
19831
19831
|
extrudedCircle: "EDIT_EXTRUDED_CIRCLE",
|
|
19832
19832
|
extrudedRectangle: "EDIT_EXTRUDED_RECTANGLE",
|
|
19833
19833
|
extrudedPolygon: "EDIT_EXTRUDED_POLYGON"
|
|
19834
|
-
}[
|
|
19834
|
+
}[bf],
|
|
19835
19835
|
controlPoints: (ep = (Bf = rf == null ? void 0 : rf.feature) == null ? void 0 : Bf.properties) == null ? void 0 : ep.positions,
|
|
19836
19836
|
extrudedHeight: (up = (ap = rf == null ? void 0 : rf.feature) == null ? void 0 : ap.properties) == null ? void 0 : up.extrudedHeight
|
|
19837
19837
|
}), lt({
|
|
19838
|
-
type:
|
|
19838
|
+
type: bf,
|
|
19839
19839
|
controlPoints: (pp = (fp = rf == null ? void 0 : rf.feature) == null ? void 0 : fp.properties) == null ? void 0 : pp.positions
|
|
19840
19840
|
}), (tf = (al = rf == null ? void 0 : rf.feature) == null ? void 0 : al.properties) != null && tf.extrudedHeight && (ba(rf.feature.properties.extrudedHeight), ms(
|
|
19841
19841
|
(Tf = n.current) == null ? void 0 : Tf.getExtrudedPoint(
|
|
@@ -19847,25 +19847,25 @@ function useHooks$9({
|
|
|
19847
19847
|
[n, Pe, W, se]
|
|
19848
19848
|
), of = useCallback(
|
|
19849
19849
|
(rf) => {
|
|
19850
|
-
se({ type: "EXIT_EDIT" }),
|
|
19850
|
+
se({ type: "EXIT_EDIT" }), mf(void 0), W == null || W(void 0), rf && (kf.current = !0);
|
|
19851
19851
|
},
|
|
19852
|
-
[W, se,
|
|
19852
|
+
[W, se, mf]
|
|
19853
19853
|
), nf = useCallback(() => {
|
|
19854
19854
|
if (z) {
|
|
19855
19855
|
const rf = hf();
|
|
19856
19856
|
rf && pd({ ...rf, id: rf.properties.id });
|
|
19857
19857
|
}
|
|
19858
|
-
se({ type: "EXIT_EDIT" }),
|
|
19858
|
+
se({ type: "EXIT_EDIT" }), mf(void 0), W == null || W(void 0);
|
|
19859
19859
|
}, [
|
|
19860
19860
|
z,
|
|
19861
19861
|
se,
|
|
19862
|
-
|
|
19862
|
+
mf,
|
|
19863
19863
|
pd,
|
|
19864
19864
|
hf,
|
|
19865
19865
|
W
|
|
19866
19866
|
]), df = useCallback(
|
|
19867
|
-
(rf,
|
|
19868
|
-
Zd(rf,
|
|
19867
|
+
(rf, bf) => {
|
|
19868
|
+
Zd(rf, bf);
|
|
19869
19869
|
},
|
|
19870
19870
|
[Zd]
|
|
19871
19871
|
);
|
|
@@ -19882,7 +19882,7 @@ function useHooks$9({
|
|
|
19882
19882
|
markerGeometryRef: Gd,
|
|
19883
19883
|
pointerLocationRef: cf,
|
|
19884
19884
|
geometryOptions: yt,
|
|
19885
|
-
updateGeometryOptions:
|
|
19885
|
+
updateGeometryOptions: mf,
|
|
19886
19886
|
extrudedHeight: _i,
|
|
19887
19887
|
setExtrudedHeight: ba,
|
|
19888
19888
|
setExtrudedPoint: ms,
|
|
@@ -19894,7 +19894,7 @@ function useHooks$9({
|
|
|
19894
19894
|
isEditing: uf,
|
|
19895
19895
|
sketchOptions: La
|
|
19896
19896
|
}), useWindowEvent("keydown", (rf) => {
|
|
19897
|
-
var
|
|
19897
|
+
var bf, Pf, Uf;
|
|
19898
19898
|
if (mt !== void 0)
|
|
19899
19899
|
if (rf.code === "Space")
|
|
19900
19900
|
rp.current = !0, fa(!0), d == null || d("move");
|
|
@@ -19903,8 +19903,8 @@ function useHooks$9({
|
|
|
19903
19903
|
return;
|
|
19904
19904
|
if (rf.key === "Escape") {
|
|
19905
19905
|
se({ type: "CANCEL" });
|
|
19906
|
-
const Bf = cf.current != null ? (
|
|
19907
|
-
|
|
19906
|
+
const Bf = cf.current != null ? (bf = n.current) == null ? void 0 : bf.toXYZ(...cf.current) : void 0;
|
|
19907
|
+
mf(Bf);
|
|
19908
19908
|
} else if (rf.key === "Delete" && Pe.matches("idle") && (c != null && c.id)) {
|
|
19909
19909
|
const Bf = (Pf = o.current) == null ? void 0 : Pf.selectedLayer();
|
|
19910
19910
|
Bf && ((Uf = o.current) != null && Uf.isTempLayer(Bf == null ? void 0 : Bf.id)) && Xd(Bf, c.id);
|
|
@@ -19916,36 +19916,36 @@ function useHooks$9({
|
|
|
19916
19916
|
var rf;
|
|
19917
19917
|
mt === void 0 && !z && (se({ type: "ABORT" }), (rf = xf.current) == null || rf.call(xf, void 0));
|
|
19918
19918
|
}, [mt, z, se]);
|
|
19919
|
-
const
|
|
19920
|
-
|
|
19921
|
-
const
|
|
19922
|
-
|
|
19919
|
+
const Cf = useRef(mn);
|
|
19920
|
+
Cf.current = mn;
|
|
19921
|
+
const ff = useRef(d);
|
|
19922
|
+
ff.current = d;
|
|
19923
19923
|
const Sf = useRef(h);
|
|
19924
19924
|
Sf.current = h;
|
|
19925
|
-
const
|
|
19926
|
-
|
|
19925
|
+
const wf = useRef(s);
|
|
19926
|
+
wf.current = s, useEffect(() => {
|
|
19927
19927
|
var rf;
|
|
19928
|
-
(rf =
|
|
19929
|
-
mf,
|
|
19930
|
-
mt || z ? "sketch" : Rf.current === "sketch" ? "default" : Rf.current
|
|
19931
|
-
);
|
|
19928
|
+
(z || mt) && wf.current !== "sketch" && ((rf = ff.current) == null || rf.call(ff, "sketch"));
|
|
19932
19929
|
}, [mt, z]);
|
|
19933
19930
|
const Ff = useRef(uf);
|
|
19934
19931
|
Ff.current = uf;
|
|
19935
19932
|
const Hf = useRef(of);
|
|
19936
19933
|
Hf.current = of, useEffect(() => {
|
|
19937
|
-
var rf;
|
|
19938
|
-
(rf = Sf.current) == null || rf.call(Sf, mt,
|
|
19934
|
+
var rf, bf;
|
|
19935
|
+
(rf = Sf.current) == null || rf.call(Sf, mt, Cf.current), Ff.current && Hf.current(), mt === void 0 && ((bf = ff.current) == null || bf.call(
|
|
19936
|
+
ff,
|
|
19937
|
+
wf.current === "sketch" ? "default" : wf.current
|
|
19938
|
+
));
|
|
19939
19939
|
}, [mt]);
|
|
19940
|
-
const
|
|
19941
|
-
|
|
19942
|
-
rp.current || s !== "sketch" &&
|
|
19940
|
+
const Jf = useRef(mt);
|
|
19941
|
+
Jf.current = mt, useEffect(() => {
|
|
19942
|
+
rp.current || s !== "sketch" && Ff.current && Hf.current();
|
|
19943
19943
|
}, [s, kt]);
|
|
19944
19944
|
const Wf = useRef([]), tp = useCallback((rf) => {
|
|
19945
19945
|
Wf.current.push(rf);
|
|
19946
|
-
}, []),
|
|
19947
|
-
|
|
19948
|
-
const
|
|
19946
|
+
}, []), vf = useRef(tp);
|
|
19947
|
+
vf.current = tp;
|
|
19948
|
+
const pf = useRef(void 0), Lf = useMemo(
|
|
19949
19949
|
() => Pe.context.catchedControlPointIndex,
|
|
19950
19950
|
[Pe.context.catchedControlPointIndex]
|
|
19951
19951
|
), Df = useMemo(
|
|
@@ -19954,10 +19954,10 @@ function useHooks$9({
|
|
|
19954
19954
|
), kf = useRef(!1);
|
|
19955
19955
|
useEffect(() => {
|
|
19956
19956
|
var rf;
|
|
19957
|
-
if (Wf.current.forEach((
|
|
19958
|
-
|
|
19957
|
+
if (Wf.current.forEach((bf) => {
|
|
19958
|
+
bf(z);
|
|
19959
19959
|
}), z)
|
|
19960
|
-
|
|
19960
|
+
pf.current = z;
|
|
19961
19961
|
else {
|
|
19962
19962
|
if (kf.current) {
|
|
19963
19963
|
kf.current = !1;
|
|
@@ -19969,19 +19969,19 @@ function useHooks$9({
|
|
|
19969
19969
|
featureId: []
|
|
19970
19970
|
}
|
|
19971
19971
|
]), setTimeout(() => {
|
|
19972
|
-
var
|
|
19973
|
-
|
|
19972
|
+
var bf, Pf, Uf;
|
|
19973
|
+
pf.current && ((Uf = o.current) == null || Uf.selectFeatures([
|
|
19974
19974
|
{
|
|
19975
|
-
layerId: (
|
|
19976
|
-
featureId: [(Pf =
|
|
19975
|
+
layerId: (bf = pf.current) == null ? void 0 : bf.layerId,
|
|
19976
|
+
featureId: [(Pf = pf.current) == null ? void 0 : Pf.feature.id]
|
|
19977
19977
|
}
|
|
19978
|
-
])),
|
|
19978
|
+
])), pf.current = void 0;
|
|
19979
19979
|
}, 50);
|
|
19980
19980
|
}
|
|
19981
19981
|
}, [o, z, Wf]);
|
|
19982
19982
|
const Yf = useCallback(
|
|
19983
|
-
(rf,
|
|
19984
|
-
!Pe.matches("editing") || !Pe.context.controlPoints || (Pf === "mousedown" ? se(
|
|
19983
|
+
(rf, bf, Pf) => {
|
|
19984
|
+
!Pe.matches("editing") || !Pe.context.controlPoints || (Pf === "mousedown" ? se(bf ? {
|
|
19985
19985
|
type: "CATCH",
|
|
19986
19986
|
catchedControlPointIndex: -1,
|
|
19987
19987
|
controlPoints: Pe.context.controlPoints,
|
|
@@ -19991,7 +19991,7 @@ function useHooks$9({
|
|
|
19991
19991
|
catchedControlPointIndex: rf,
|
|
19992
19992
|
controlPoints: Pe.context.controlPoints,
|
|
19993
19993
|
catchedExtrudedPoint: !1
|
|
19994
|
-
}) : !
|
|
19994
|
+
}) : !bf && ((Pe.context.type === "polygon" || Pe.context.type === "extrudedPolygon") && Pe.context.controlPoints.length > 3 || Pe.context.type === "polyline" && Pe.context.controlPoints.length > 2) && Vd(rf));
|
|
19995
19995
|
},
|
|
19996
19996
|
[Pe, se]
|
|
19997
19997
|
), Qf = useGet(mt), Zf = useGet(La);
|
|
@@ -20006,7 +20006,7 @@ function useHooks$9({
|
|
|
20006
20006
|
cancelEdit: of,
|
|
20007
20007
|
applyEdit: nf,
|
|
20008
20008
|
deleteFeature: df,
|
|
20009
|
-
onEditFeatureChange:
|
|
20009
|
+
onEditFeatureChange: vf.current
|
|
20010
20010
|
}),
|
|
20011
20011
|
[
|
|
20012
20012
|
Qf,
|
|
@@ -20024,26 +20024,26 @@ function useHooks$9({
|
|
|
20024
20024
|
const np = useCallback(() => {
|
|
20025
20025
|
var rf;
|
|
20026
20026
|
if (Ru !== void 0) {
|
|
20027
|
-
const
|
|
20028
|
-
if (!
|
|
20027
|
+
const bf = (rf = Pe.context.controlPoints) == null ? void 0 : rf.toSpliced(Ru, 1);
|
|
20028
|
+
if (!bf)
|
|
20029
20029
|
return;
|
|
20030
20030
|
se({
|
|
20031
20031
|
type: "UPDATE",
|
|
20032
|
-
controlPoints:
|
|
20032
|
+
controlPoints: bf
|
|
20033
20033
|
}), lt(
|
|
20034
20034
|
(Pf) => Pf ? {
|
|
20035
20035
|
type: Pf.type,
|
|
20036
|
-
controlPoints:
|
|
20036
|
+
controlPoints: bf
|
|
20037
20037
|
} : null
|
|
20038
20038
|
), Vd(void 0);
|
|
20039
20039
|
}
|
|
20040
20040
|
}, [Ru, Pe.context.controlPoints, se, lt]), qf = useRef(np);
|
|
20041
20041
|
qf.current = np;
|
|
20042
20042
|
const ip = useCallback(
|
|
20043
|
-
(rf,
|
|
20043
|
+
(rf, bf) => {
|
|
20044
20044
|
if (Pe.context.controlPoints == null)
|
|
20045
20045
|
return;
|
|
20046
|
-
const Pf =
|
|
20046
|
+
const Pf = bf + 1, Uf = Pe.context.controlPoints.toSpliced(
|
|
20047
20047
|
Pf,
|
|
20048
20048
|
0,
|
|
20049
20049
|
rf
|
|
@@ -20375,16 +20375,16 @@ function Gt$1() {
|
|
|
20375
20375
|
` + uf + al;
|
|
20376
20376
|
}
|
|
20377
20377
|
}
|
|
20378
|
-
var hf = !1,
|
|
20378
|
+
var hf = !1, mf;
|
|
20379
20379
|
{
|
|
20380
20380
|
var xf = typeof WeakMap == "function" ? WeakMap : Map;
|
|
20381
|
-
|
|
20381
|
+
mf = new xf();
|
|
20382
20382
|
}
|
|
20383
20383
|
function Vf(al, tf) {
|
|
20384
20384
|
if (!al || hf)
|
|
20385
20385
|
return "";
|
|
20386
20386
|
{
|
|
20387
|
-
var lf =
|
|
20387
|
+
var lf = mf.get(al);
|
|
20388
20388
|
if (lf !== void 0)
|
|
20389
20389
|
return lf;
|
|
20390
20390
|
}
|
|
@@ -20437,9 +20437,9 @@ function Gt$1() {
|
|
|
20437
20437
|
if (Gf !== 1 || Xf !== 1)
|
|
20438
20438
|
do
|
|
20439
20439
|
if (Gf--, Xf--, Xf < 0 || Mf[Gf] !== Af[Xf]) {
|
|
20440
|
-
var
|
|
20440
|
+
var jf = `
|
|
20441
20441
|
` + Mf[Gf].replace(" at new ", " at ");
|
|
20442
|
-
return al.displayName &&
|
|
20442
|
+
return al.displayName && jf.includes("<anonymous>") && (jf = jf.replace("<anonymous>", al.displayName)), typeof al == "function" && mf.set(al, jf), jf;
|
|
20443
20443
|
}
|
|
20444
20444
|
while (Gf >= 1 && Xf >= 0);
|
|
20445
20445
|
break;
|
|
@@ -20449,9 +20449,9 @@ function Gt$1() {
|
|
|
20449
20449
|
hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
|
|
20450
20450
|
}
|
|
20451
20451
|
var bp = al ? al.displayName || al.name : "", gp = bp ? gf(bp) : "";
|
|
20452
|
-
return typeof al == "function" &&
|
|
20452
|
+
return typeof al == "function" && mf.set(al, gp), gp;
|
|
20453
20453
|
}
|
|
20454
|
-
function
|
|
20454
|
+
function Rf(al, tf, lf) {
|
|
20455
20455
|
return Vf(al, !1);
|
|
20456
20456
|
}
|
|
20457
20457
|
function Wa(al) {
|
|
@@ -20474,7 +20474,7 @@ function Gt$1() {
|
|
|
20474
20474
|
if (typeof al == "object")
|
|
20475
20475
|
switch (al.$$typeof) {
|
|
20476
20476
|
case y:
|
|
20477
|
-
return
|
|
20477
|
+
return Rf(al.render);
|
|
20478
20478
|
case L:
|
|
20479
20479
|
return af(al.type, tf, lf);
|
|
20480
20480
|
case F: {
|
|
@@ -20524,26 +20524,26 @@ function Gt$1() {
|
|
|
20524
20524
|
return lf;
|
|
20525
20525
|
}
|
|
20526
20526
|
}
|
|
20527
|
-
function
|
|
20527
|
+
function Cf(al) {
|
|
20528
20528
|
try {
|
|
20529
|
-
return
|
|
20529
|
+
return ff(al), !1;
|
|
20530
20530
|
} catch {
|
|
20531
20531
|
return !0;
|
|
20532
20532
|
}
|
|
20533
20533
|
}
|
|
20534
|
-
function
|
|
20534
|
+
function ff(al) {
|
|
20535
20535
|
return "" + al;
|
|
20536
20536
|
}
|
|
20537
20537
|
function Sf(al) {
|
|
20538
|
-
if (
|
|
20539
|
-
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)),
|
|
20538
|
+
if (Cf(al))
|
|
20539
|
+
return se("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", df(al)), ff(al);
|
|
20540
20540
|
}
|
|
20541
|
-
var
|
|
20541
|
+
var wf = Pe.ReactCurrentOwner, Ff = {
|
|
20542
20542
|
key: !0,
|
|
20543
20543
|
ref: !0,
|
|
20544
20544
|
__self: !0,
|
|
20545
20545
|
__source: !0
|
|
20546
|
-
}, Hf,
|
|
20546
|
+
}, Hf, Jf;
|
|
20547
20547
|
function Wf(al) {
|
|
20548
20548
|
if (Xd.call(al, "ref")) {
|
|
20549
20549
|
var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
|
|
@@ -20560,10 +20560,10 @@ function Gt$1() {
|
|
|
20560
20560
|
}
|
|
20561
20561
|
return al.key !== void 0;
|
|
20562
20562
|
}
|
|
20563
|
-
function
|
|
20564
|
-
typeof al.ref == "string" &&
|
|
20563
|
+
function vf(al, tf) {
|
|
20564
|
+
typeof al.ref == "string" && wf.current;
|
|
20565
20565
|
}
|
|
20566
|
-
function
|
|
20566
|
+
function pf(al, tf) {
|
|
20567
20567
|
{
|
|
20568
20568
|
var lf = function() {
|
|
20569
20569
|
Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
@@ -20577,7 +20577,7 @@ function Gt$1() {
|
|
|
20577
20577
|
function Lf(al, tf) {
|
|
20578
20578
|
{
|
|
20579
20579
|
var lf = function() {
|
|
20580
|
-
|
|
20580
|
+
Jf || (Jf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
20581
20581
|
};
|
|
20582
20582
|
lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
|
|
20583
20583
|
get: lf,
|
|
@@ -20617,7 +20617,7 @@ function Gt$1() {
|
|
|
20617
20617
|
function kf(al, tf, lf, yf, If) {
|
|
20618
20618
|
{
|
|
20619
20619
|
var Of, Tf = {}, Mf = null, Af = null;
|
|
20620
|
-
lf !== void 0 && (Sf(lf), Mf = "" + lf), tp(tf) && (Sf(tf.key), Mf = "" + tf.key), Wf(tf) && (Af = tf.ref,
|
|
20620
|
+
lf !== void 0 && (Sf(lf), Mf = "" + lf), tp(tf) && (Sf(tf.key), Mf = "" + tf.key), Wf(tf) && (Af = tf.ref, vf(tf, If));
|
|
20621
20621
|
for (Of in tf)
|
|
20622
20622
|
Xd.call(tf, Of) && !Ff.hasOwnProperty(Of) && (Tf[Of] = tf[Of]);
|
|
20623
20623
|
if (al && al.defaultProps) {
|
|
@@ -20627,9 +20627,9 @@ function Gt$1() {
|
|
|
20627
20627
|
}
|
|
20628
20628
|
if (Mf || Af) {
|
|
20629
20629
|
var Xf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
|
|
20630
|
-
Mf &&
|
|
20630
|
+
Mf && pf(Tf, Xf), Af && Lf(Tf, Xf);
|
|
20631
20631
|
}
|
|
20632
|
-
return Df(al, Mf, Af, If, yf,
|
|
20632
|
+
return Df(al, Mf, Af, If, yf, wf.current, Tf);
|
|
20633
20633
|
}
|
|
20634
20634
|
}
|
|
20635
20635
|
var Yf = Pe.ReactCurrentOwner, Qf = Pe.ReactDebugCurrentFrame;
|
|
@@ -20673,7 +20673,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20673
20673
|
return tf;
|
|
20674
20674
|
}
|
|
20675
20675
|
}
|
|
20676
|
-
function
|
|
20676
|
+
function bf(al, tf) {
|
|
20677
20677
|
{
|
|
20678
20678
|
if (!al._store || al._store.validated || al.key != null)
|
|
20679
20679
|
return;
|
|
@@ -20693,7 +20693,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20693
20693
|
if (nf(al))
|
|
20694
20694
|
for (var lf = 0; lf < al.length; lf++) {
|
|
20695
20695
|
var yf = al[lf];
|
|
20696
|
-
qf(yf) &&
|
|
20696
|
+
qf(yf) && bf(yf, tf);
|
|
20697
20697
|
}
|
|
20698
20698
|
else if (qf(al))
|
|
20699
20699
|
al._store && (al._store.validated = !0);
|
|
@@ -20701,7 +20701,7 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20701
20701
|
var If = nt(al);
|
|
20702
20702
|
if (typeof If == "function" && If !== al.entries)
|
|
20703
20703
|
for (var Of = If.call(al), Tf; !(Tf = Of.next()).done; )
|
|
20704
|
-
qf(Tf.value) &&
|
|
20704
|
+
qf(Tf.value) && bf(Tf.value, tf);
|
|
20705
20705
|
}
|
|
20706
20706
|
}
|
|
20707
20707
|
}
|
|
@@ -20757,17 +20757,17 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20757
20757
|
if (Xf == null)
|
|
20758
20758
|
return Xf;
|
|
20759
20759
|
if (Tf) {
|
|
20760
|
-
var
|
|
20761
|
-
if (
|
|
20760
|
+
var jf = tf.children;
|
|
20761
|
+
if (jf !== void 0)
|
|
20762
20762
|
if (yf)
|
|
20763
|
-
if (nf(
|
|
20764
|
-
for (var bp = 0; bp <
|
|
20765
|
-
Pf(
|
|
20766
|
-
Object.freeze && Object.freeze(
|
|
20763
|
+
if (nf(jf)) {
|
|
20764
|
+
for (var bp = 0; bp < jf.length; bp++)
|
|
20765
|
+
Pf(jf[bp], al);
|
|
20766
|
+
Object.freeze && Object.freeze(jf);
|
|
20767
20767
|
} else
|
|
20768
20768
|
se("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
20769
20769
|
else
|
|
20770
|
-
Pf(
|
|
20770
|
+
Pf(jf, al);
|
|
20771
20771
|
}
|
|
20772
20772
|
return al === s ? Bf(Xf) : Uf(Xf), Xf;
|
|
20773
20773
|
}
|
|
@@ -28720,8 +28720,8 @@ Matrix4.getRotation = function(t, n) {
|
|
|
28720
28720
|
};
|
|
28721
28721
|
Matrix4.multiply = function(t, n, o) {
|
|
28722
28722
|
Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o);
|
|
28723
|
-
const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], S = t[6], P = t[7], L = t[8], F = t[9], N = t[10], z = t[11], W = t[12], nt = t[13], Pe = t[14], se = t[15], mt = n[0], kt = n[1], mn = n[2], pi = n[3], zi = n[4], Sa = n[5], fa = n[6], La = n[7], Ra = n[8], ma = n[9], yt = n[10], lt = n[11], _i = n[12], ba = n[13], Sc = n[14], ms = n[15], Xs = s * mt + p * kt + L * mn + W * pi, yu = c * mt + y * kt + F * mn + nt * pi, pu = d * mt + S * kt + N * mn + Pe * pi, Nl = h * mt + P * kt + z * mn + se * pi, Ru = s * zi + p * Sa + L * fa + W * La, Vd = c * zi + y * Sa + F * fa + nt * La, Gd = d * zi + S * Sa + N * fa + Pe * La, cf = h * zi + P * Sa + z * fa + se * La, uf = s * Ra + p * ma + L * yt + W * lt, gf = c * Ra + y * ma + F * yt + nt * lt, hf = d * Ra + S * ma + N * yt + Pe * lt,
|
|
28724
|
-
return o[0] = Xs, o[1] = yu, o[2] = pu, o[3] = Nl, o[4] = Ru, o[5] = Vd, o[6] = Gd, o[7] = cf, o[8] = uf, o[9] = gf, o[10] = hf, o[11] =
|
|
28723
|
+
const s = t[0], c = t[1], d = t[2], h = t[3], p = t[4], y = t[5], S = t[6], P = t[7], L = t[8], F = t[9], N = t[10], z = t[11], W = t[12], nt = t[13], Pe = t[14], se = t[15], mt = n[0], kt = n[1], mn = n[2], pi = n[3], zi = n[4], Sa = n[5], fa = n[6], La = n[7], Ra = n[8], ma = n[9], yt = n[10], lt = n[11], _i = n[12], ba = n[13], Sc = n[14], ms = n[15], Xs = s * mt + p * kt + L * mn + W * pi, yu = c * mt + y * kt + F * mn + nt * pi, pu = d * mt + S * kt + N * mn + Pe * pi, Nl = h * mt + P * kt + z * mn + se * pi, Ru = s * zi + p * Sa + L * fa + W * La, Vd = c * zi + y * Sa + F * fa + nt * La, Gd = d * zi + S * Sa + N * fa + Pe * La, cf = h * zi + P * Sa + z * fa + se * La, uf = s * Ra + p * ma + L * yt + W * lt, gf = c * Ra + y * ma + F * yt + nt * lt, hf = d * Ra + S * ma + N * yt + Pe * lt, mf = h * Ra + P * ma + z * yt + se * lt, xf = s * _i + p * ba + L * Sc + W * ms, Vf = c * _i + y * ba + F * Sc + nt * ms, Rf = d * _i + S * ba + N * Sc + Pe * ms, Wa = h * _i + P * ba + z * Sc + se * ms;
|
|
28724
|
+
return o[0] = Xs, o[1] = yu, o[2] = pu, o[3] = Nl, o[4] = Ru, o[5] = Vd, o[6] = Gd, o[7] = cf, o[8] = uf, o[9] = gf, o[10] = hf, o[11] = mf, o[12] = xf, o[13] = Vf, o[14] = Rf, o[15] = Wa, o;
|
|
28725
28725
|
};
|
|
28726
28726
|
Matrix4.add = function(t, n, o) {
|
|
28727
28727
|
return Check.typeOf.object("left", t), Check.typeOf.object("right", n), Check.typeOf.object("result", o), o[0] = t[0] + n[0], o[1] = t[1] + n[1], o[2] = t[2] + n[2], o[3] = t[3] + n[3], o[4] = t[4] + n[4], o[5] = t[5] + n[5], o[6] = t[6] + n[6], o[7] = t[7] + n[7], o[8] = t[8] + n[8], o[9] = t[9] + n[9], o[10] = t[10] + n[10], o[11] = t[11] + n[11], o[12] = t[12] + n[12], o[13] = t[13] + n[13], o[14] = t[14] + n[14], o[15] = t[15] + n[15], o;
|
|
@@ -28804,8 +28804,8 @@ Matrix4.inverse = function(t, n) {
|
|
|
28804
28804
|
const lt = se * p + mn * y + pi * S - (mt * p + kt * y + zi * S), _i = mt * h + Sa * y + Ra * S - (se * h + fa * y + La * S), ba = kt * h + fa * p + ma * S - (mn * h + Sa * p + yt * S), Sc = zi * h + La * p + yt * y - (pi * h + Ra * p + ma * y), ms = mt * s + kt * c + zi * d - (se * s + mn * c + pi * d), Xs = se * o + fa * c + La * d - (mt * o + Sa * c + Ra * d), yu = mn * o + Sa * s + yt * d - (kt * o + fa * s + ma * d), pu = pi * o + Ra * s + ma * c - (zi * o + La * s + yt * c);
|
|
28805
28805
|
se = c * S, mt = d * y, kt = s * S, mn = d * p, pi = s * y, zi = c * p, Sa = o * S, fa = d * h, La = o * y, Ra = c * h, ma = o * p, yt = s * h;
|
|
28806
28806
|
const Nl = se * W + mn * nt + pi * Pe - (mt * W + kt * nt + zi * Pe), Ru = mt * z + Sa * nt + Ra * Pe - (se * z + fa * nt + La * Pe), Vd = kt * z + fa * W + ma * Pe - (mn * z + Sa * W + yt * Pe), Gd = zi * z + La * W + yt * nt - (pi * z + Ra * W + ma * nt), cf = kt * F + zi * N + mt * L - (pi * N + se * L + mn * F), uf = La * N + se * P + fa * F - (Sa * F + Ra * N + mt * P), gf = Sa * L + yt * N + mn * P - (ma * N + kt * P + fa * L), hf = ma * F + pi * P + Ra * L - (La * L + yt * F + zi * P);
|
|
28807
|
-
let
|
|
28808
|
-
if (Math.abs(
|
|
28807
|
+
let mf = o * lt + s * _i + c * ba + d * Sc;
|
|
28808
|
+
if (Math.abs(mf) < CesiumMath.EPSILON21) {
|
|
28809
28809
|
if (Matrix3.equalsEpsilon(
|
|
28810
28810
|
Matrix4.getMatrix3(t, scratchInverseRotation),
|
|
28811
28811
|
scratchMatrix3Zero,
|
|
@@ -28819,7 +28819,7 @@ Matrix4.inverse = function(t, n) {
|
|
|
28819
28819
|
"matrix is not invertible because its determinate is zero."
|
|
28820
28820
|
);
|
|
28821
28821
|
}
|
|
28822
|
-
return
|
|
28822
|
+
return mf = 1 / mf, n[0] = lt * mf, n[1] = _i * mf, n[2] = ba * mf, n[3] = Sc * mf, n[4] = ms * mf, n[5] = Xs * mf, n[6] = yu * mf, n[7] = pu * mf, n[8] = Nl * mf, n[9] = Ru * mf, n[10] = Vd * mf, n[11] = Gd * mf, n[12] = cf * mf, n[13] = uf * mf, n[14] = gf * mf, n[15] = hf * mf, n;
|
|
28823
28823
|
};
|
|
28824
28824
|
Matrix4.inverseTransformation = function(t, n) {
|
|
28825
28825
|
Check.typeOf.object("matrix", t), Check.typeOf.object("result", n);
|
|
@@ -29537,28 +29537,28 @@ function requirePunycode() {
|
|
|
29537
29537
|
return mn(Ru + (kt + 1) * yu / (yu + L));
|
|
29538
29538
|
}
|
|
29539
29539
|
function ba(yu) {
|
|
29540
|
-
var pu = [], Nl = yu.length, Ru, Vd = 0, Gd = z, cf = N, uf, gf, hf,
|
|
29540
|
+
var pu = [], Nl = yu.length, Ru, Vd = 0, Gd = z, cf = N, uf, gf, hf, mf, xf, Vf, Rf, Wa, af;
|
|
29541
29541
|
for (uf = yu.lastIndexOf(W), uf < 0 && (uf = 0), gf = 0; gf < uf; ++gf)
|
|
29542
29542
|
yu.charCodeAt(gf) >= 128 && Sa("not-basic"), pu.push(yu.charCodeAt(gf));
|
|
29543
29543
|
for (hf = uf > 0 ? uf + 1 : 0; hf < Nl; ) {
|
|
29544
|
-
for (
|
|
29544
|
+
for (mf = Vd, xf = 1, Vf = y; hf >= Nl && Sa("invalid-input"), Rf = yt(yu.charCodeAt(hf++)), (Rf >= y || Rf > mn((p - Vd) / xf)) && Sa("overflow"), Vd += Rf * xf, Wa = Vf <= cf ? S : Vf >= cf + P ? P : Vf - cf, !(Rf < Wa); Vf += y)
|
|
29545
29545
|
af = y - Wa, xf > mn(p / af) && Sa("overflow"), xf *= af;
|
|
29546
|
-
Ru = pu.length + 1, cf = _i(Vd -
|
|
29546
|
+
Ru = pu.length + 1, cf = _i(Vd - mf, Ru, mf == 0), mn(Vd / Ru) > p - Gd && Sa("overflow"), Gd += mn(Vd / Ru), Vd %= Ru, pu.splice(Vd++, 0, Gd);
|
|
29547
29547
|
}
|
|
29548
29548
|
return ma(pu);
|
|
29549
29549
|
}
|
|
29550
29550
|
function Sc(yu) {
|
|
29551
|
-
var pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf,
|
|
29552
|
-
for (yu = Ra(yu),
|
|
29551
|
+
var pu, Nl, Ru, Vd, Gd, cf, uf, gf, hf, mf, xf, Vf = [], Rf, Wa, af, Xd;
|
|
29552
|
+
for (yu = Ra(yu), Rf = yu.length, pu = z, Nl = 0, Gd = N, cf = 0; cf < Rf; ++cf)
|
|
29553
29553
|
xf = yu[cf], xf < 128 && Vf.push(pi(xf));
|
|
29554
|
-
for (Ru = Vd = Vf.length, Vd && Vf.push(W); Ru <
|
|
29555
|
-
for (uf = p, cf = 0; cf <
|
|
29554
|
+
for (Ru = Vd = Vf.length, Vd && Vf.push(W); Ru < Rf; ) {
|
|
29555
|
+
for (uf = p, cf = 0; cf < Rf; ++cf)
|
|
29556
29556
|
xf = yu[cf], xf >= pu && xf < uf && (uf = xf);
|
|
29557
|
-
for (Wa = Ru + 1, uf - pu > mn((p - Nl) / Wa) && Sa("overflow"), Nl += (uf - pu) * Wa, pu = uf, cf = 0; cf <
|
|
29557
|
+
for (Wa = Ru + 1, uf - pu > mn((p - Nl) / Wa) && Sa("overflow"), Nl += (uf - pu) * Wa, pu = uf, cf = 0; cf < Rf; ++cf)
|
|
29558
29558
|
if (xf = yu[cf], xf < pu && ++Nl > p && Sa("overflow"), xf == pu) {
|
|
29559
|
-
for (gf = Nl, hf = y;
|
|
29560
|
-
Xd = gf -
|
|
29561
|
-
pi(lt(
|
|
29559
|
+
for (gf = Nl, hf = y; mf = hf <= Gd ? S : hf >= Gd + P ? P : hf - Gd, !(gf < mf); hf += y)
|
|
29560
|
+
Xd = gf - mf, af = y - mf, Vf.push(
|
|
29561
|
+
pi(lt(mf + Xd % af, 0))
|
|
29562
29562
|
), gf = mn(Xd / af);
|
|
29563
29563
|
Vf.push(pi(lt(gf, 0))), Gd = _i(Nl, Wa, Ru == Vd), Nl = 0, ++Ru;
|
|
29564
29564
|
}
|
|
@@ -41296,19 +41296,19 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41296
41296
|
segmentEndNormalScratch
|
|
41297
41297
|
);
|
|
41298
41298
|
if (t) {
|
|
41299
|
-
const
|
|
41299
|
+
const Rf = Cartesian3.unpack(
|
|
41300
41300
|
o,
|
|
41301
41301
|
o.length - 6,
|
|
41302
41302
|
segmentStartBottomScratch
|
|
41303
41303
|
);
|
|
41304
|
-
breakMiter(Gd,
|
|
41304
|
+
breakMiter(Gd, Rf, Ru, Vd) && (Gd = Cartesian3.negate(
|
|
41305
41305
|
Gd,
|
|
41306
41306
|
Gd
|
|
41307
41307
|
));
|
|
41308
41308
|
}
|
|
41309
41309
|
let cf = 0, uf = 0, gf = 0;
|
|
41310
41310
|
for (p = 0; p < P; p++) {
|
|
41311
|
-
const
|
|
41311
|
+
const Rf = Cartesian3.clone(Ru, segmentStartBottomScratch), Wa = Cartesian3.clone(Vd, segmentStartTopScratch);
|
|
41312
41312
|
let af = Cartesian3.clone(
|
|
41313
41313
|
Gd,
|
|
41314
41314
|
segmentStartNormalScratch
|
|
@@ -41324,13 +41324,13 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41324
41324
|
c,
|
|
41325
41325
|
y,
|
|
41326
41326
|
segmentEndNormalScratch
|
|
41327
|
-
), Nl = breakMiter(Gd,
|
|
41327
|
+
), Nl = breakMiter(Gd, Rf, Ru, Vd), Ra.latitude = d[ms], Ra.longitude = d[ms + 1], ma.latitude = d[ms + 2], ma.longitude = d[ms + 3];
|
|
41328
41328
|
let Xd, gd, pd, Zd;
|
|
41329
41329
|
if (h) {
|
|
41330
41330
|
const rf = nudgeCartographic(Ra, ma);
|
|
41331
41331
|
Xd = n.project(Ra, segmentStart2DScratch), gd = n.project(ma, segmentEnd2DScratch);
|
|
41332
|
-
const
|
|
41333
|
-
|
|
41332
|
+
const bf = direction(gd, Xd, forwardOffset2DScratch);
|
|
41333
|
+
bf.y = Math.abs(bf.y), pd = segmentStartNormal2DScratch, Zd = segmentEndNormal2DScratch, rf === 0 || Cartesian3.dot(bf, Cartesian3.UNIT_Y) > MITER_BREAK_SMALL ? (pd = projectNormal(
|
|
41334
41334
|
n,
|
|
41335
41335
|
Ra,
|
|
41336
41336
|
af,
|
|
@@ -41361,47 +41361,47 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41361
41361
|
), Zd.z = 0);
|
|
41362
41362
|
}
|
|
41363
41363
|
const sf = Cartesian3.distance(Wa, Vd), of = EncodedCartesian3.fromCartesian(
|
|
41364
|
-
|
|
41364
|
+
Rf,
|
|
41365
41365
|
encodeScratch$1
|
|
41366
41366
|
), nf = Cartesian3.subtract(
|
|
41367
41367
|
Ru,
|
|
41368
|
-
|
|
41368
|
+
Rf,
|
|
41369
41369
|
offsetScratch$1
|
|
41370
41370
|
), df = Cartesian3.normalize(nf, rightScratch);
|
|
41371
|
-
let
|
|
41372
|
-
|
|
41373
|
-
let
|
|
41374
|
-
|
|
41371
|
+
let Cf = Cartesian3.subtract(Wa, Rf, startUpScratch);
|
|
41372
|
+
Cf = Cartesian3.normalize(Cf, Cf);
|
|
41373
|
+
let ff = Cartesian3.cross(df, Cf, rightScratch);
|
|
41374
|
+
ff = Cartesian3.normalize(ff, ff);
|
|
41375
41375
|
let Sf = Cartesian3.cross(
|
|
41376
|
-
|
|
41376
|
+
Cf,
|
|
41377
41377
|
af,
|
|
41378
41378
|
startPlaneNormalScratch
|
|
41379
41379
|
);
|
|
41380
41380
|
Sf = Cartesian3.normalize(Sf, Sf);
|
|
41381
|
-
let
|
|
41382
|
-
|
|
41381
|
+
let wf = Cartesian3.subtract(Vd, Ru, endUpScratch);
|
|
41382
|
+
wf = Cartesian3.normalize(wf, wf);
|
|
41383
41383
|
let Ff = Cartesian3.cross(
|
|
41384
41384
|
Gd,
|
|
41385
|
-
|
|
41385
|
+
wf,
|
|
41386
41386
|
endPlaneNormalScratch
|
|
41387
41387
|
);
|
|
41388
41388
|
Ff = Cartesian3.normalize(Ff, Ff);
|
|
41389
|
-
const Hf = sf / ba,
|
|
41390
|
-
let Wf = 0, tp,
|
|
41389
|
+
const Hf = sf / ba, Jf = cf / ba;
|
|
41390
|
+
let Wf = 0, tp, vf, pf, Lf = 0, Df = 0;
|
|
41391
41391
|
if (h) {
|
|
41392
41392
|
Wf = Cartesian3.distance(Xd, gd), tp = EncodedCartesian3.fromCartesian(
|
|
41393
41393
|
Xd,
|
|
41394
41394
|
encodeScratch2D
|
|
41395
|
-
),
|
|
41395
|
+
), vf = Cartesian3.subtract(
|
|
41396
41396
|
gd,
|
|
41397
41397
|
Xd,
|
|
41398
41398
|
forwardOffset2DScratch
|
|
41399
|
-
),
|
|
41400
|
-
const rf =
|
|
41401
|
-
|
|
41399
|
+
), pf = Cartesian3.normalize(vf, right2DScratch);
|
|
41400
|
+
const rf = pf.x;
|
|
41401
|
+
pf.x = pf.y, pf.y = -rf, Lf = Wf / La, Df = uf / La;
|
|
41402
41402
|
}
|
|
41403
41403
|
for (Sc = 0; Sc < 8; Sc++) {
|
|
41404
|
-
const rf = pu + Sc * 4,
|
|
41404
|
+
const rf = pu + Sc * 4, bf = Xs + Sc * 2, Pf = rf + 3, Uf = Sc < 4 ? 1 : -1, Bf = Sc === 2 || Sc === 3 || Sc === 6 || Sc === 7 ? 1 : -1;
|
|
41405
41405
|
Cartesian3.pack(of.high, nt, rf), nt[Pf] = nf.x, Cartesian3.pack(of.low, Pe, rf), Pe[Pf] = nf.y, Cartesian3.pack(
|
|
41406
41406
|
Sf,
|
|
41407
41407
|
se,
|
|
@@ -41411,12 +41411,12 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41411
41411
|
mt,
|
|
41412
41412
|
rf
|
|
41413
41413
|
), mt[Pf] = Hf * Uf, Cartesian3.pack(
|
|
41414
|
-
|
|
41414
|
+
ff,
|
|
41415
41415
|
kt,
|
|
41416
41416
|
rf
|
|
41417
41417
|
);
|
|
41418
|
-
let ep =
|
|
41419
|
-
ep === 0 && Bf < 0 && (ep = 9), kt[Pf] = ep, h && (mn[rf] = tp.high.x, mn[rf + 1] = tp.high.y, mn[rf + 2] = tp.low.x, mn[rf + 3] = tp.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] =
|
|
41418
|
+
let ep = Jf * Bf;
|
|
41419
|
+
ep === 0 && Bf < 0 && (ep = 9), kt[Pf] = ep, h && (mn[rf] = tp.high.x, mn[rf + 1] = tp.high.y, mn[rf + 2] = tp.low.x, mn[rf + 3] = tp.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = vf.x, pi[rf + 1] = vf.y, pi[rf + 2] = pf.x, pi[rf + 3] = pf.y, Sa[bf] = Lf * Uf, ep = Df * Bf, ep === 0 && Bf < 0 && (ep = 9), Sa[bf + 1] = ep);
|
|
41420
41420
|
}
|
|
41421
41421
|
const kf = adjustHeightStartBottomScratch, Yf = adjustHeightEndBottomScratch, Qf = adjustHeightStartTopScratch, Zf = adjustHeightEndTopScratch, np = Rectangle.fromCartographicArray(
|
|
41422
41422
|
getHeightCartographics,
|
|
@@ -41426,7 +41426,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41426
41426
|
S
|
|
41427
41427
|
), ip = qf.minimumTerrainHeight, rp = qf.maximumTerrainHeight;
|
|
41428
41428
|
gf += Math.abs(ip), gf += Math.abs(rp), adjustHeights(
|
|
41429
|
-
|
|
41429
|
+
Rf,
|
|
41430
41430
|
Wa,
|
|
41431
41431
|
ip,
|
|
41432
41432
|
rp,
|
|
@@ -41441,7 +41441,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41441
41441
|
Zf
|
|
41442
41442
|
);
|
|
41443
41443
|
let _f = Cartesian3.multiplyByScalar(
|
|
41444
|
-
|
|
41444
|
+
ff,
|
|
41445
41445
|
CesiumMath.EPSILON5,
|
|
41446
41446
|
normalNudgeScratch
|
|
41447
41447
|
);
|
|
@@ -41450,7 +41450,7 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41450
41450
|
_f,
|
|
41451
41451
|
kf
|
|
41452
41452
|
), Cartesian3.add(Yf, _f, Yf), Cartesian3.add(Qf, _f, Qf), Cartesian3.add(Zf, _f, Zf), nudgeXZ(kf, Yf), nudgeXZ(Qf, Zf), Cartesian3.pack(kf, W, yu), Cartesian3.pack(Yf, W, yu + 3), Cartesian3.pack(Zf, W, yu + 6), Cartesian3.pack(Qf, W, yu + 9), _f = Cartesian3.multiplyByScalar(
|
|
41453
|
-
|
|
41453
|
+
ff,
|
|
41454
41454
|
-2 * CesiumMath.EPSILON5,
|
|
41455
41455
|
normalNudgeScratch
|
|
41456
41456
|
), Cartesian3.add(
|
|
@@ -41474,19 +41474,19 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41474
41474
|
z[y + Sc] = REFERENCE_INDICES[Sc] + hf;
|
|
41475
41475
|
hf += 8, y += REFERENCE_INDICES_LENGTH;
|
|
41476
41476
|
}
|
|
41477
|
-
const
|
|
41477
|
+
const mf = scratchBoundingSpheres;
|
|
41478
41478
|
BoundingSphere.fromVertices(
|
|
41479
41479
|
o,
|
|
41480
41480
|
Cartesian3.ZERO,
|
|
41481
41481
|
3,
|
|
41482
|
-
|
|
41482
|
+
mf[0]
|
|
41483
41483
|
), BoundingSphere.fromVertices(
|
|
41484
41484
|
s,
|
|
41485
41485
|
Cartesian3.ZERO,
|
|
41486
41486
|
3,
|
|
41487
|
-
|
|
41487
|
+
mf[1]
|
|
41488
41488
|
);
|
|
41489
|
-
const xf = BoundingSphere.fromBoundingSpheres(
|
|
41489
|
+
const xf = BoundingSphere.fromBoundingSpheres(mf);
|
|
41490
41490
|
xf.radius += gf / (P * 2);
|
|
41491
41491
|
const Vf = {
|
|
41492
41492
|
position: new GeometryAttribute({
|
|
@@ -65292,7 +65292,7 @@ function simplepolygon(t) {
|
|
|
65292
65292
|
);
|
|
65293
65293
|
var c = o.length, d = isects(
|
|
65294
65294
|
t,
|
|
65295
|
-
function(Vd, Gd, cf, uf, gf, hf,
|
|
65295
|
+
function(Vd, Gd, cf, uf, gf, hf, mf, xf, Vf, Rf, Wa, af) {
|
|
65296
65296
|
return [
|
|
65297
65297
|
Vd,
|
|
65298
65298
|
Gd,
|
|
@@ -65300,10 +65300,10 @@ function simplepolygon(t) {
|
|
|
65300
65300
|
uf,
|
|
65301
65301
|
gf,
|
|
65302
65302
|
hf,
|
|
65303
|
-
|
|
65303
|
+
mf,
|
|
65304
65304
|
xf,
|
|
65305
65305
|
Vf,
|
|
65306
|
-
|
|
65306
|
+
Rf,
|
|
65307
65307
|
Wa,
|
|
65308
65308
|
af
|
|
65309
65309
|
];
|
|
@@ -65989,29 +65989,29 @@ const Xp = class Xp {
|
|
|
65989
65989
|
}
|
|
65990
65990
|
};
|
|
65991
65991
|
Hp = new WeakMap(), // private constructor
|
|
65992
|
-
|
|
65992
|
+
Kf(Xp, Hp, !1);
|
|
65993
65993
|
let Stack = Xp;
|
|
65994
65994
|
var wp, _p, Vp, Rp, $p, dp, Mp, hp, sp, $f, xp, Ep, Cp, mp, Pp, yp, Ap, Gp, Ip, Lp, zp, Sp, Qp, tg, Up, Dp, qp, Tp, qm, sg, Wp, Yp, _m, Op, Np, Fp, kp, Om, ng, jp, $m, Kp, jm, op, cp, Am, ig, Zp, Jp;
|
|
65995
65995
|
const rg = class rg {
|
|
65996
65996
|
constructor(n) {
|
|
65997
|
-
|
|
65998
|
-
|
|
65999
|
-
|
|
66000
|
-
|
|
66001
|
-
|
|
66002
|
-
|
|
66003
|
-
|
|
66004
|
-
|
|
66005
|
-
|
|
66006
|
-
|
|
65997
|
+
Kf(this, Qp);
|
|
65998
|
+
Kf(this, qm);
|
|
65999
|
+
Kf(this, Op);
|
|
66000
|
+
Kf(this, Fp);
|
|
66001
|
+
Kf(this, Om);
|
|
66002
|
+
Kf(this, jp);
|
|
66003
|
+
Kf(this, Kp);
|
|
66004
|
+
Kf(this, op);
|
|
66005
|
+
Kf(this, Am);
|
|
66006
|
+
Kf(this, Zp);
|
|
66007
66007
|
// properties coming in from the options of these, only max and maxSize
|
|
66008
66008
|
// really *need* to be protected. The rest can be modified, as they just
|
|
66009
66009
|
// set defaults for various methods.
|
|
66010
|
-
|
|
66011
|
-
|
|
66012
|
-
|
|
66013
|
-
|
|
66014
|
-
|
|
66010
|
+
Kf(this, wp, void 0);
|
|
66011
|
+
Kf(this, _p, void 0);
|
|
66012
|
+
Kf(this, Vp, void 0);
|
|
66013
|
+
Kf(this, Rp, void 0);
|
|
66014
|
+
Kf(this, $p, void 0);
|
|
66015
66015
|
/**
|
|
66016
66016
|
* {@link LRUCache.OptionsBase.ttl}
|
|
66017
66017
|
*/
|
|
@@ -66073,37 +66073,37 @@ const rg = class rg {
|
|
|
66073
66073
|
*/
|
|
66074
66074
|
Ef(this, "ignoreFetchAbort");
|
|
66075
66075
|
// computed properties
|
|
66076
|
-
|
|
66077
|
-
|
|
66078
|
-
|
|
66079
|
-
|
|
66080
|
-
|
|
66081
|
-
|
|
66082
|
-
|
|
66083
|
-
|
|
66084
|
-
|
|
66085
|
-
|
|
66086
|
-
|
|
66087
|
-
|
|
66088
|
-
|
|
66089
|
-
|
|
66090
|
-
|
|
66091
|
-
|
|
66092
|
-
|
|
66076
|
+
Kf(this, dp, void 0);
|
|
66077
|
+
Kf(this, Mp, void 0);
|
|
66078
|
+
Kf(this, hp, void 0);
|
|
66079
|
+
Kf(this, sp, void 0);
|
|
66080
|
+
Kf(this, $f, void 0);
|
|
66081
|
+
Kf(this, xp, void 0);
|
|
66082
|
+
Kf(this, Ep, void 0);
|
|
66083
|
+
Kf(this, Cp, void 0);
|
|
66084
|
+
Kf(this, mp, void 0);
|
|
66085
|
+
Kf(this, Pp, void 0);
|
|
66086
|
+
Kf(this, yp, void 0);
|
|
66087
|
+
Kf(this, Ap, void 0);
|
|
66088
|
+
Kf(this, Gp, void 0);
|
|
66089
|
+
Kf(this, Ip, void 0);
|
|
66090
|
+
Kf(this, Lp, void 0);
|
|
66091
|
+
Kf(this, zp, void 0);
|
|
66092
|
+
Kf(this, Sp, void 0);
|
|
66093
66093
|
// conditionally set private methods related to TTL
|
|
66094
|
-
|
|
66094
|
+
Kf(this, Up, () => {
|
|
66095
66095
|
});
|
|
66096
|
-
|
|
66096
|
+
Kf(this, Dp, () => {
|
|
66097
66097
|
});
|
|
66098
|
-
|
|
66098
|
+
Kf(this, qp, () => {
|
|
66099
66099
|
});
|
|
66100
66100
|
/* c8 ignore stop */
|
|
66101
|
-
|
|
66102
|
-
|
|
66101
|
+
Kf(this, Tp, () => !1);
|
|
66102
|
+
Kf(this, Wp, (n) => {
|
|
66103
66103
|
});
|
|
66104
|
-
|
|
66104
|
+
Kf(this, Yp, (n, o, s) => {
|
|
66105
66105
|
});
|
|
66106
|
-
|
|
66106
|
+
Kf(this, _m, (n, o, s, c) => {
|
|
66107
66107
|
if (s || c)
|
|
66108
66108
|
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
66109
66109
|
return 0;
|
|
@@ -67466,17 +67466,17 @@ const useHooks$6 = ({
|
|
|
67466
67466
|
yt.current = new Cartesian2$1(hf.x, hf.y);
|
|
67467
67467
|
return;
|
|
67468
67468
|
}
|
|
67469
|
-
const
|
|
67469
|
+
const mf = new Cartesian2$1(hf.x, hf.y), xf = Cartesian3$1.subtract(Vd, Gd, new Cartesian3$1()), Vf = Cartesian3$1.magnitude(xf), Rf = Cartesian3$1.normalize(xf, new Cartesian3$1()), { scaleAmount: Wa, pixelLengthAfterScaling: af } = computeMouseMoveAmount(
|
|
67470
67470
|
c.scene,
|
|
67471
67471
|
{
|
|
67472
67472
|
startPosition: yt.current,
|
|
67473
|
-
endPosition:
|
|
67473
|
+
endPosition: mf
|
|
67474
67474
|
},
|
|
67475
67475
|
Vd,
|
|
67476
|
-
|
|
67476
|
+
Rf,
|
|
67477
67477
|
Vf
|
|
67478
67478
|
);
|
|
67479
|
-
yt.current =
|
|
67479
|
+
yt.current = mf.clone();
|
|
67480
67480
|
const Xd = Cartesian3$1.normalize(cf, new Cartesian3$1()), gd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(1, 0, 0), Xd)), pd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 1, 0), Xd)), Zd = Math.abs(Cartesian3$1.dot(new Cartesian3$1(0, 0, 1), Xd)), sf = gd && pd && Zd;
|
|
67481
67481
|
if (Wa < 0 && (Xd.x && Xd.y && Xd.y ? af / Math.sqrt(2) : af) < 20)
|
|
67482
67482
|
return;
|
|
@@ -67495,39 +67495,39 @@ const useHooks$6 = ({
|
|
|
67495
67495
|
),
|
|
67496
67496
|
Wa,
|
|
67497
67497
|
new Cartesian3$1()
|
|
67498
|
-
), nf = Cartesian3$1.multiplyByScalar(xf, Wa / 2, new Cartesian3$1()), df = Xd.z < 0,
|
|
67499
|
-
!se &&
|
|
67498
|
+
), nf = Cartesian3$1.multiplyByScalar(xf, Wa / 2, new Cartesian3$1()), df = Xd.z < 0, Cf = Wa > 0;
|
|
67499
|
+
!se && Cf && df && Cartographic$1.fromCartesian(
|
|
67500
67500
|
mn.translation,
|
|
67501
67501
|
void 0,
|
|
67502
67502
|
new Cartographic$1()
|
|
67503
67503
|
).height - mn.scale.z / 2 - Math.abs(nf.z) < 0 && (of.z = 0);
|
|
67504
|
-
const
|
|
67505
|
-
Cartesian3$1.add(mn.scale, of,
|
|
67506
|
-
const
|
|
67504
|
+
const ff = new Cartesian3$1(), Sf = new Cartesian3$1();
|
|
67505
|
+
Cartesian3$1.add(mn.scale, of, ff), Cartesian3$1.add(mn.translation, nf, Sf);
|
|
67506
|
+
const wf = c == null ? void 0 : c.scene.globe.ellipsoid.cartesianToCartographic(
|
|
67507
67507
|
Sf
|
|
67508
67508
|
);
|
|
67509
67509
|
s == null || s({
|
|
67510
67510
|
layerId: gf,
|
|
67511
67511
|
scale: {
|
|
67512
|
-
width:
|
|
67513
|
-
length:
|
|
67514
|
-
height:
|
|
67512
|
+
width: ff.x,
|
|
67513
|
+
length: ff.y,
|
|
67514
|
+
height: ff.z,
|
|
67515
67515
|
location: {
|
|
67516
|
-
lat: Math$1.toDegrees(
|
|
67517
|
-
lng: Math$1.toDegrees(
|
|
67518
|
-
height:
|
|
67516
|
+
lat: Math$1.toDegrees(wf == null ? void 0 : wf.latitude),
|
|
67517
|
+
lng: Math$1.toDegrees(wf == null ? void 0 : wf.longitude),
|
|
67518
|
+
height: wf == null ? void 0 : wf.height
|
|
67519
67519
|
}
|
|
67520
67520
|
}
|
|
67521
67521
|
}), (Ff = d == null ? void 0 : d.onLayerEdit) == null || Ff.call(d, {
|
|
67522
67522
|
layerId: gf,
|
|
67523
67523
|
scale: {
|
|
67524
|
-
width:
|
|
67525
|
-
length:
|
|
67526
|
-
height:
|
|
67524
|
+
width: ff.x,
|
|
67525
|
+
length: ff.y,
|
|
67526
|
+
height: ff.z,
|
|
67527
67527
|
location: {
|
|
67528
|
-
lat: Math$1.toDegrees(
|
|
67529
|
-
lng: Math$1.toDegrees(
|
|
67530
|
-
height:
|
|
67528
|
+
lat: Math$1.toDegrees(wf == null ? void 0 : wf.latitude),
|
|
67529
|
+
lng: Math$1.toDegrees(wf == null ? void 0 : wf.longitude),
|
|
67530
|
+
height: wf == null ? void 0 : wf.height
|
|
67531
67531
|
}
|
|
67532
67532
|
}
|
|
67533
67533
|
});
|
|
@@ -67554,22 +67554,22 @@ const useHooks$6 = ({
|
|
|
67554
67554
|
ms.current = cf.x;
|
|
67555
67555
|
const gf = 0.05, hf = new HeadingPitchRoll$1(0, 0, 0);
|
|
67556
67556
|
hf.heading = -uf * gf, hf.pitch = 0, hf.roll = 0;
|
|
67557
|
-
const
|
|
67558
|
-
Quaternion$1.multiply(mn.rotation, Quaternion$1.fromHeadingPitchRoll(hf),
|
|
67559
|
-
const { heading: xf, pitch: Vf, roll:
|
|
67557
|
+
const mf = new Quaternion$1();
|
|
67558
|
+
Quaternion$1.multiply(mn.rotation, Quaternion$1.fromHeadingPitchRoll(hf), mf);
|
|
67559
|
+
const { heading: xf, pitch: Vf, roll: Rf } = HeadingPitchRoll$1.fromQuaternion(mf);
|
|
67560
67560
|
s == null || s({
|
|
67561
67561
|
layerId: Gd,
|
|
67562
67562
|
rotate: {
|
|
67563
67563
|
heading: xf,
|
|
67564
67564
|
pitch: Vf,
|
|
67565
|
-
roll:
|
|
67565
|
+
roll: Rf
|
|
67566
67566
|
}
|
|
67567
67567
|
}), (Wa = d == null ? void 0 : d.onLayerEdit) == null || Wa.call(d, {
|
|
67568
67568
|
layerId: Gd,
|
|
67569
67569
|
rotate: {
|
|
67570
67570
|
heading: xf,
|
|
67571
67571
|
pitch: Vf,
|
|
67572
|
-
roll:
|
|
67572
|
+
roll: Rf
|
|
67573
67573
|
}
|
|
67574
67574
|
});
|
|
67575
67575
|
},
|
|
@@ -71505,8 +71505,8 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71505
71505
|
), gf = useMemo(() => h ? Cartesian3$1.fromDegrees(h[0], h[1], h[2]) : void 0, [h]), hf = useMemo(() => S && h && typeof h[2] == "number" ? [
|
|
71506
71506
|
Cartesian3$1.fromDegrees(h[0], h[1], h[2]),
|
|
71507
71507
|
Cartesian3$1.fromDegrees(h[0], h[1], 0)
|
|
71508
|
-
] : void 0, [h, S]),
|
|
71509
|
-
image:
|
|
71508
|
+
] : void 0, [h, S]), mf = !L || L === "image", [xf, Vf, Rf] = useIcon({
|
|
71509
|
+
image: mf ? zi : void 0,
|
|
71510
71510
|
imageSize: Sa,
|
|
71511
71511
|
crop: yt,
|
|
71512
71512
|
shadow: lt,
|
|
@@ -71523,35 +71523,35 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71523
71523
|
), Xd = useMemo(() => {
|
|
71524
71524
|
if (Wa)
|
|
71525
71525
|
return Wa;
|
|
71526
|
-
const
|
|
71526
|
+
const Jf = 15, Wf = (mf ? Vf : P) / 2 + Jf, tp = (mf ? Rf : P) / 2 + Jf;
|
|
71527
71527
|
return new Cartesian2$1(
|
|
71528
71528
|
se.includes("left") || se.includes("right") ? Wf * (se.includes("left") ? -1 : 1) : 0,
|
|
71529
71529
|
se.includes("top") || se.includes("bottom") ? tp * (se.includes("top") ? -1 : 1) : 0
|
|
71530
71530
|
);
|
|
71531
|
-
}, [
|
|
71531
|
+
}, [mf, Vf, P, Rf, se, Wa]), gd = useMemo(() => Color$3.WHITE.withAlpha(0.4), []), pd = useRef(null), Zd = getTag((Hf = pd.current) == null ? void 0 : Hf.cesiumElement), sf = useMemo(
|
|
71532
71532
|
() => {
|
|
71533
|
-
var
|
|
71533
|
+
var Jf, Wf;
|
|
71534
71534
|
return toColor$1(
|
|
71535
|
-
Zd != null && Zd.isFeatureSelected && typeof ((
|
|
71535
|
+
Zd != null && Zd.isFeatureSelected && typeof ((Jf = c == null ? void 0 : c.marker) == null ? void 0 : Jf.selectedFeatureColor) == "string" ? (Wf = c.marker) == null ? void 0 : Wf.selectedFeatureColor : ma
|
|
71536
71536
|
);
|
|
71537
71537
|
},
|
|
71538
71538
|
[ma, c, Zd == null ? void 0 : Zd.isFeatureSelected]
|
|
71539
71539
|
), of = useMemo(
|
|
71540
71540
|
() => {
|
|
71541
|
-
var
|
|
71541
|
+
var Jf, Wf;
|
|
71542
71542
|
return toColor$1(
|
|
71543
|
-
Zd != null && Zd.isFeatureSelected && typeof ((
|
|
71543
|
+
Zd != null && Zd.isFeatureSelected && typeof ((Jf = c == null ? void 0 : c.marker) == null ? void 0 : Jf.selectedFeatureColor) == "string" ? (Wf = c.marker) == null ? void 0 : Wf.selectedFeatureColor : F
|
|
71544
71544
|
);
|
|
71545
71545
|
},
|
|
71546
71546
|
[F, c, Zd == null ? void 0 : Zd.isFeatureSelected]
|
|
71547
|
-
), nf = useMemo(() => toColor$1(N), [N]), df = useMemo(() => toColor$1(nt == null ? void 0 : nt.color), [nt == null ? void 0 : nt.color]),
|
|
71547
|
+
), nf = useMemo(() => toColor$1(N), [N]), df = useMemo(() => toColor$1(nt == null ? void 0 : nt.color), [nt == null ? void 0 : nt.color]), Cf = useMemo(
|
|
71548
71548
|
() => toColor$1(kt),
|
|
71549
71549
|
[kt]
|
|
71550
|
-
),
|
|
71550
|
+
), ff = useMemo(
|
|
71551
71551
|
// https://cesium.com/learn/cesiumjs/ref-doc/LabelGraphics.html?classFilter=labelgra#backgroundPadding
|
|
71552
71552
|
() => new Cartesian2$1(mn || 7, pi || 5),
|
|
71553
71553
|
[mn, pi]
|
|
71554
|
-
), Sf = useMemo(() => toTimeInterval(d == null ? void 0 : d.interval), [d == null ? void 0 : d.interval]),
|
|
71554
|
+
), Sf = useMemo(() => toTimeInterval(d == null ? void 0 : d.interval), [d == null ? void 0 : d.interval]), wf = useMemo(
|
|
71555
71555
|
() => toDistanceDisplayCondition(t == null ? void 0 : t.near, t == null ? void 0 : t.far),
|
|
71556
71556
|
[t == null ? void 0 : t.near, t == null ? void 0 : t.far]
|
|
71557
71557
|
), Ff = useMemo(() => String(Pe), [Pe]);
|
|
@@ -71573,7 +71573,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71573
71573
|
positions: hf,
|
|
71574
71574
|
material: gd,
|
|
71575
71575
|
width: 0.5,
|
|
71576
|
-
distanceDisplayCondition:
|
|
71576
|
+
distanceDisplayCondition: wf
|
|
71577
71577
|
}
|
|
71578
71578
|
)
|
|
71579
71579
|
}
|
|
@@ -71599,7 +71599,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71599
71599
|
outlineColor: nf,
|
|
71600
71600
|
outlineWidth: z,
|
|
71601
71601
|
heightReference: heightReference(pu),
|
|
71602
|
-
distanceDisplayCondition:
|
|
71602
|
+
distanceDisplayCondition: wf
|
|
71603
71603
|
}
|
|
71604
71604
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
71605
71605
|
gs$1,
|
|
@@ -71609,7 +71609,7 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71609
71609
|
horizontalOrigin: ho$1(La),
|
|
71610
71610
|
verticalOrigin: vo$1(Ra),
|
|
71611
71611
|
heightReference: heightReference(pu),
|
|
71612
|
-
distanceDisplayCondition:
|
|
71612
|
+
distanceDisplayCondition: wf,
|
|
71613
71613
|
sizeInMeters: fa,
|
|
71614
71614
|
pixelOffset: Wa,
|
|
71615
71615
|
eyeOffset: af
|
|
@@ -71625,10 +71625,10 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71625
71625
|
font: toCSSFont(nt, { fontSize: 30 }),
|
|
71626
71626
|
text: Ff,
|
|
71627
71627
|
showBackground: mt,
|
|
71628
|
-
backgroundColor:
|
|
71629
|
-
backgroundPadding:
|
|
71628
|
+
backgroundColor: Cf,
|
|
71629
|
+
backgroundPadding: ff,
|
|
71630
71630
|
heightReference: heightReference(pu),
|
|
71631
|
-
distanceDisplayCondition:
|
|
71631
|
+
distanceDisplayCondition: wf
|
|
71632
71632
|
}
|
|
71633
71633
|
)
|
|
71634
71634
|
]
|
|
@@ -71728,7 +71728,7 @@ function Model({
|
|
|
71728
71728
|
layer: d,
|
|
71729
71729
|
feature: h
|
|
71730
71730
|
}) {
|
|
71731
|
-
var uf, gf, hf,
|
|
71731
|
+
var uf, gf, hf, mf, xf, Vf;
|
|
71732
71732
|
const p = extractSimpleLayerData(d), y = (p == null ? void 0 : p.type) === "gltf", S = useMemo(
|
|
71733
71733
|
() => (c == null ? void 0 : c.type) === "Point" ? c.coordinates : o != null && o.location ? [o.location.lng, o.location.lat, o.height ?? 0] : void 0,
|
|
71734
71734
|
[c == null ? void 0 : c.coordinates, c == null ? void 0 : c.type, o == null ? void 0 : o.height, o == null ? void 0 : o.location]
|
|
@@ -71771,28 +71771,28 @@ function Model({
|
|
|
71771
71771
|
() => toDistanceDisplayCondition(o == null ? void 0 : o.near, o == null ? void 0 : o.far),
|
|
71772
71772
|
[o == null ? void 0 : o.near, o == null ? void 0 : o.far]
|
|
71773
71773
|
), Ru = useMemo(() => {
|
|
71774
|
-
var gd, pd, Zd, sf, of, nf, df,
|
|
71775
|
-
const
|
|
71774
|
+
var gd, pd, Zd, sf, of, nf, df, Cf, ff, Sf;
|
|
71775
|
+
const Rf = new ImageBasedLighting();
|
|
71776
71776
|
if (!(o != null && o.specularEnvironmentMaps) && !(o != null && o.sphericalHarmonicCoefficients) && !((pd = (gd = s == null ? void 0 : s.scene) == null ? void 0 : gd.imageBasedLighting) != null && pd.specularEnvironmentMaps) && !((sf = (Zd = s == null ? void 0 : s.scene) == null ? void 0 : Zd.imageBasedLighting) != null && sf.sphericalHarmonicCoefficients))
|
|
71777
|
-
return
|
|
71778
|
-
const Wa = (o == null ? void 0 : o.specularEnvironmentMaps) ?? ((nf = (of = s == null ? void 0 : s.scene) == null ? void 0 : of.imageBasedLighting) == null ? void 0 : nf.specularEnvironmentMaps), af = (o == null ? void 0 : o.imageBasedLightIntensity) ?? ((
|
|
71779
|
-
(o == null ? void 0 : o.sphericalHarmonicCoefficients) ?? ((Sf = (
|
|
71777
|
+
return Rf;
|
|
71778
|
+
const Wa = (o == null ? void 0 : o.specularEnvironmentMaps) ?? ((nf = (of = s == null ? void 0 : s.scene) == null ? void 0 : of.imageBasedLighting) == null ? void 0 : nf.specularEnvironmentMaps), af = (o == null ? void 0 : o.imageBasedLightIntensity) ?? ((Cf = (df = s == null ? void 0 : s.scene) == null ? void 0 : df.imageBasedLighting) == null ? void 0 : Cf.intensity), Xd = arrayToCartecian3(
|
|
71779
|
+
(o == null ? void 0 : o.sphericalHarmonicCoefficients) ?? ((Sf = (ff = s == null ? void 0 : s.scene) == null ? void 0 : ff.imageBasedLighting) == null ? void 0 : Sf.sphericalHarmonicCoefficients),
|
|
71780
71780
|
af
|
|
71781
71781
|
);
|
|
71782
|
-
return Wa && (
|
|
71782
|
+
return Wa && (Rf.specularEnvironmentMaps = Wa), Xd && (Rf.sphericalHarmonicCoefficients = Xd), Rf;
|
|
71783
71783
|
}, [
|
|
71784
71784
|
o == null ? void 0 : o.specularEnvironmentMaps,
|
|
71785
71785
|
o == null ? void 0 : o.sphericalHarmonicCoefficients,
|
|
71786
71786
|
o == null ? void 0 : o.imageBasedLightIntensity,
|
|
71787
71787
|
(gf = (uf = s == null ? void 0 : s.scene) == null ? void 0 : uf.imageBasedLighting) == null ? void 0 : gf.specularEnvironmentMaps,
|
|
71788
|
-
(
|
|
71788
|
+
(mf = (hf = s == null ? void 0 : s.scene) == null ? void 0 : hf.imageBasedLighting) == null ? void 0 : mf.sphericalHarmonicCoefficients,
|
|
71789
71789
|
(Vf = (xf = s == null ? void 0 : s.scene) == null ? void 0 : xf.imageBasedLighting) == null ? void 0 : Vf.intensity
|
|
71790
71790
|
]), { viewer: Vd } = $e$1(), { requestRender: Gd } = useContext(), cf = useRef(!1);
|
|
71791
71791
|
return useSceneEvent("postRender", () => {
|
|
71792
|
-
const
|
|
71792
|
+
const Rf = Vd == null ? void 0 : Vd.scene.primitives, Wa = (Rf == null ? void 0 : Rf.length) ?? 0;
|
|
71793
71793
|
if (!(!cf.current || !Ru))
|
|
71794
71794
|
for (let af = 0; af < Wa; af++) {
|
|
71795
|
-
const Xd =
|
|
71795
|
+
const Xd = Rf == null ? void 0 : Rf.get(af);
|
|
71796
71796
|
Xd instanceof Model$1 && Xd.id && Xd.id.id === t && (Xd.imageBasedLighting = Ru, cf.current = !1, Gd == null || Gd());
|
|
71797
71797
|
}
|
|
71798
71798
|
}), useEffect(() => {
|
|
@@ -81985,9 +81985,9 @@ const BUILTIN_BOX_SIDE_PLANES = [
|
|
|
81985
81985
|
if (W.current) {
|
|
81986
81986
|
const Nl = (Pe == null ? void 0 : Pe[2]) || 0, Ru = (() => {
|
|
81987
81987
|
if (!c) {
|
|
81988
|
-
const
|
|
81989
|
-
if (
|
|
81990
|
-
return Nl + (xf -
|
|
81988
|
+
const mf = Nl - ((mt == null ? void 0 : mt.height) || 0) / 2, xf = La.current;
|
|
81989
|
+
if (mf < xf)
|
|
81990
|
+
return Nl + (xf - mf);
|
|
81991
81991
|
}
|
|
81992
81992
|
})(), Vd = new Cartesian2$1(yu.startPosition.x, yu.startPosition.y), Gd = new Cartesian2$1(yu.endPosition.x, yu.endPosition.y), cf = Cartesian2$1.subtract(
|
|
81993
81993
|
Gd,
|
|
@@ -82002,10 +82002,10 @@ const BUILTIN_BOX_SIDE_PLANES = [
|
|
|
82002
82002
|
pu,
|
|
82003
82003
|
uf
|
|
82004
82004
|
), hf = Cartesian3$1.multiplyByScalar(uf, gf, new Cartesian3$1());
|
|
82005
|
-
se((
|
|
82006
|
-
(
|
|
82007
|
-
(
|
|
82008
|
-
(Ru || (
|
|
82005
|
+
se((mf) => [
|
|
82006
|
+
(mf == null ? void 0 : mf[0]) || 0,
|
|
82007
|
+
(mf == null ? void 0 : mf[1]) || 0,
|
|
82008
|
+
(Ru || (mf == null ? void 0 : mf[2]) || 0) + hf.z
|
|
82009
82009
|
]);
|
|
82010
82010
|
} else {
|
|
82011
82011
|
const Nl = yu.endPosition ? getLocationFromScreen(N.scene, yu.endPosition.x, yu.endPosition.y, !c) : void 0;
|
|
@@ -82441,7 +82441,7 @@ const useDrawClipping = ({
|
|
|
82441
82441
|
onComputedFeatureFetch: y,
|
|
82442
82442
|
onLayerFetch: S
|
|
82443
82443
|
}) => {
|
|
82444
|
-
var Ff, Hf,
|
|
82444
|
+
var Ff, Hf, Jf, Wf, tp, vf;
|
|
82445
82445
|
const { viewer: P } = $e$1(), L = useRef(), { onLayerLoad: F, updateCredits: N } = useContext(), z = useRef(d == null ? void 0 : d.id);
|
|
82446
82446
|
z.current = d == null ? void 0 : d.id;
|
|
82447
82447
|
const {
|
|
@@ -82467,21 +82467,21 @@ const useDrawClipping = ({
|
|
|
82467
82467
|
builtinBoxProps: Sc,
|
|
82468
82468
|
allowEnterGround: ms
|
|
82469
82469
|
} = useClippingBox({ clipping: mt, boxId: n }), [Xs, yu] = useState(), { url: pu, type: Nl, idProperty: Ru, googleMapApiKey: Vd } = useData(d), Gd = !mn && !!Ru, [cf, uf] = useState(!1), gf = useRef(lt), hf = useMemo(() => {
|
|
82470
|
-
var
|
|
82471
|
-
return (!((
|
|
82470
|
+
var pf, Lf;
|
|
82471
|
+
return (!((pf = gf.current) != null && pf.length) || !((Lf = gf.current) != null && Lf.every(
|
|
82472
82472
|
(Df, kf) => {
|
|
82473
82473
|
var Yf, Qf, Zf, np, qf, ip;
|
|
82474
82474
|
return ((Yf = Df.normal) == null ? void 0 : Yf.x) === ((Qf = lt == null ? void 0 : lt[kf].normal) == null ? void 0 : Qf.x) && ((Zf = Df.normal) == null ? void 0 : Zf.y) === ((np = lt == null ? void 0 : lt[kf].normal) == null ? void 0 : np.y) && ((qf = Df.normal) == null ? void 0 : qf.z) === ((ip = lt == null ? void 0 : lt[kf].normal) == null ? void 0 : ip.z) && Df.distance === (lt == null ? void 0 : lt[kf].distance);
|
|
82475
82475
|
}
|
|
82476
82476
|
))) && (gf.current = lt), gf.current;
|
|
82477
|
-
}, [lt]),
|
|
82477
|
+
}, [lt]), mf = ba === "inside" ? -1 : 1, [xf, Vf] = useState(
|
|
82478
82478
|
() => new ClippingPlaneCollection({
|
|
82479
82479
|
planes: hf == null ? void 0 : hf.map(
|
|
82480
|
-
(
|
|
82480
|
+
(pf) => {
|
|
82481
82481
|
var Lf, Df, kf;
|
|
82482
82482
|
return new ClippingPlane(
|
|
82483
|
-
new Cartesian3$1((Lf =
|
|
82484
|
-
(
|
|
82483
|
+
new Cartesian3$1((Lf = pf.normal) == null ? void 0 : Lf.x, (Df = pf.normal) == null ? void 0 : Df.y, (kf = pf.normal) == null ? void 0 : kf.z),
|
|
82484
|
+
(pf.distance || 0) * mf
|
|
82485
82485
|
);
|
|
82486
82486
|
}
|
|
82487
82487
|
),
|
|
@@ -82495,11 +82495,11 @@ const useDrawClipping = ({
|
|
|
82495
82495
|
Vf(
|
|
82496
82496
|
new ClippingPlaneCollection({
|
|
82497
82497
|
planes: hf == null ? void 0 : hf.map(
|
|
82498
|
-
(
|
|
82498
|
+
(pf) => {
|
|
82499
82499
|
var Lf, Df, kf;
|
|
82500
82500
|
return new ClippingPlane(
|
|
82501
|
-
new Cartesian3$1((Lf =
|
|
82502
|
-
(
|
|
82501
|
+
new Cartesian3$1((Lf = pf.normal) == null ? void 0 : Lf.x, (Df = pf.normal) == null ? void 0 : Df.y, (kf = pf.normal) == null ? void 0 : kf.z),
|
|
82502
|
+
(pf.distance || 0) * mf
|
|
82503
82503
|
);
|
|
82504
82504
|
}
|
|
82505
82505
|
),
|
|
@@ -82512,19 +82512,19 @@ const useDrawClipping = ({
|
|
|
82512
82512
|
[]
|
|
82513
82513
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
82514
82514
|
);
|
|
82515
|
-
const { drawClippingEnabled:
|
|
82515
|
+
const { drawClippingEnabled: Rf, drawClippingEdgeProps: Wa } = useDrawClipping({
|
|
82516
82516
|
...mt == null ? void 0 : mt.draw,
|
|
82517
82517
|
tilesetRef: L,
|
|
82518
82518
|
viewer: P,
|
|
82519
82519
|
clippingPlanes: xf,
|
|
82520
82520
|
isTilesetReady: cf
|
|
82521
82521
|
}), [af] = useState(() => new TilesetFeatureIndex()), Xd = useCallback(
|
|
82522
|
-
(
|
|
82523
|
-
|
|
82522
|
+
(pf) => {
|
|
82523
|
+
pf != null && pf.cesiumElement && attachTag(pf.cesiumElement, {
|
|
82524
82524
|
layerId: (d == null ? void 0 : d.id) || t,
|
|
82525
82525
|
featureIndex: Gd ? af : void 0,
|
|
82526
82526
|
appearanceType: "3dtiles"
|
|
82527
|
-
}), d != null && d.id && (
|
|
82527
|
+
}), d != null && d.id && (pf != null && pf.cesiumElement) && ((pf == null ? void 0 : pf.cesiumElement)[layerIdField] = d.id), L.current = pf == null ? void 0 : pf.cesiumElement;
|
|
82528
82528
|
},
|
|
82529
82529
|
[t, d == null ? void 0 : d.id, af, Gd]
|
|
82530
82530
|
), gd = useRef([]), pd = useRef(kt);
|
|
@@ -82532,15 +82532,15 @@ const useDrawClipping = ({
|
|
|
82532
82532
|
const [Zd] = useState(() => /* @__PURE__ */ new Map());
|
|
82533
82533
|
useEffect(() => {
|
|
82534
82534
|
!L.current || !Gd || !cf || Object.assign(L.current, {
|
|
82535
|
-
onSelectFeature: (
|
|
82536
|
-
const Lf = getTag(
|
|
82537
|
-
Lf != null && Lf.featureId && (gd.current.push(Lf.featureId), Zd.set(Lf.featureId,
|
|
82535
|
+
onSelectFeature: (pf) => {
|
|
82536
|
+
const Lf = getTag(pf);
|
|
82537
|
+
Lf != null && Lf.featureId && (gd.current.push(Lf.featureId), Zd.set(Lf.featureId, pf.color)), pd.current && (pf.color = toColor(pd.current) ?? pf.color);
|
|
82538
82538
|
},
|
|
82539
|
-
onUnselectFeature: (
|
|
82540
|
-
const Lf = getTag(
|
|
82539
|
+
onUnselectFeature: (pf) => {
|
|
82540
|
+
const Lf = getTag(pf);
|
|
82541
82541
|
Lf != null && Lf.featureId && (gd.current = gd.current.filter(
|
|
82542
82542
|
(Df) => Df !== Lf.featureId
|
|
82543
|
-
)),
|
|
82543
|
+
)), pf.color = Zd.get((Lf == null ? void 0 : Lf.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
|
|
82544
82544
|
}
|
|
82545
82545
|
});
|
|
82546
82546
|
}, [Zd, af, Gd, cf]), useFeature({
|
|
@@ -82557,8 +82557,8 @@ const useDrawClipping = ({
|
|
|
82557
82557
|
isTilesetReady: cf
|
|
82558
82558
|
});
|
|
82559
82559
|
const [sf, of] = useState(0), nf = useRef(!1), df = useCallback(
|
|
82560
|
-
(
|
|
82561
|
-
nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene,
|
|
82560
|
+
(pf) => {
|
|
82561
|
+
nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene, pf).then((Lf) => {
|
|
82562
82562
|
of(Lf ?? 0), nf.current = !1;
|
|
82563
82563
|
}));
|
|
82564
82564
|
},
|
|
@@ -82567,7 +82567,7 @@ const useDrawClipping = ({
|
|
|
82567
82567
|
useEffect(() => {
|
|
82568
82568
|
if (mt != null && mt.draw)
|
|
82569
82569
|
return;
|
|
82570
|
-
const
|
|
82570
|
+
const pf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Lf = Cartesian3$1.fromDegrees((pf == null ? void 0 : pf[0]) || 0, (pf == null ? void 0 : pf[1]) || 0, (pf == null ? void 0 : pf[2]) || 0);
|
|
82571
82571
|
(async () => {
|
|
82572
82572
|
if (!L.current || !cf)
|
|
82573
82573
|
return;
|
|
@@ -82604,68 +82604,68 @@ const useDrawClipping = ({
|
|
|
82604
82604
|
mt != null && mt.draw || (xf.unionClippingRegions = ba === "outside");
|
|
82605
82605
|
}, [xf, ba, mt == null ? void 0 : mt.draw]), useEffect(() => {
|
|
82606
82606
|
mt != null && mt.draw || (xf.removeAll(), hf == null || hf.forEach(
|
|
82607
|
-
(
|
|
82607
|
+
(pf) => {
|
|
82608
82608
|
var Lf, Df, kf;
|
|
82609
82609
|
return xf.add(
|
|
82610
82610
|
new ClippingPlane(
|
|
82611
|
-
new Cartesian3$1((Lf =
|
|
82612
|
-
(
|
|
82611
|
+
new Cartesian3$1((Lf = pf.normal) == null ? void 0 : Lf.x, (Df = pf.normal) == null ? void 0 : Df.y, (kf = pf.normal) == null ? void 0 : kf.z),
|
|
82612
|
+
(pf.distance || 0) * mf
|
|
82613
82613
|
)
|
|
82614
82614
|
);
|
|
82615
82615
|
}
|
|
82616
82616
|
));
|
|
82617
|
-
}, [hf, xf,
|
|
82617
|
+
}, [hf, xf, mf, mt == null ? void 0 : mt.draw]), useEffect(() => {
|
|
82618
82618
|
if (!nt) {
|
|
82619
82619
|
yu(void 0);
|
|
82620
82620
|
return;
|
|
82621
82621
|
}
|
|
82622
82622
|
(async () => {
|
|
82623
|
-
const
|
|
82624
|
-
|
|
82623
|
+
const pf = await fetch(nt);
|
|
82624
|
+
pf.ok && yu(new Cesium3DTileStyle(await pf.json()));
|
|
82625
82625
|
})();
|
|
82626
82626
|
}, [nt]);
|
|
82627
|
-
const
|
|
82627
|
+
const Cf = useMemo(() => Nl !== "google-photorealistic" || !o ? null : (async () => {
|
|
82628
82628
|
try {
|
|
82629
82629
|
return (await createGooglePhotorealistic3DTileset(Vd)).resource;
|
|
82630
82630
|
} catch (Lf) {
|
|
82631
82631
|
throw console.error(`Error loading Photorealistic 3D Tiles tileset: ${Lf}`), Lf;
|
|
82632
82632
|
}
|
|
82633
|
-
})(), [Nl, o, Vd]),
|
|
82633
|
+
})(), [Nl, o, Vd]), ff = useMemo(() => Nl === "osm-buildings" && o ? IonResource.fromAssetId(96188, {
|
|
82634
82634
|
accessToken: h == null ? void 0 : h.cesiumIonAccessToken
|
|
82635
|
-
}) :
|
|
82636
|
-
var Yf, Qf, Zf, np, qf, ip, rp, _f, rf,
|
|
82635
|
+
}) : Cf && o ? Cf : Nl === "3dtiles" && o ? pu ?? W : null, [Nl, o, h == null ? void 0 : h.cesiumIonAccessToken, Cf, pu, W]), Sf = useMemo(() => {
|
|
82636
|
+
var Yf, Qf, Zf, np, qf, ip, rp, _f, rf, bf;
|
|
82637
82637
|
if (!(s != null && s.specularEnvironmentMaps) && !(s != null && s.sphericalHarmonicCoefficients) && !((Qf = (Yf = c == null ? void 0 : c.scene) == null ? void 0 : Yf.imageBasedLighting) != null && Qf.specularEnvironmentMaps) && !((np = (Zf = c == null ? void 0 : c.scene) == null ? void 0 : Zf.imageBasedLighting) != null && np.sphericalHarmonicCoefficients))
|
|
82638
82638
|
return;
|
|
82639
|
-
const
|
|
82640
|
-
(s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((
|
|
82639
|
+
const pf = new ImageBasedLighting(), Lf = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((ip = (qf = c == null ? void 0 : c.scene) == null ? void 0 : qf.imageBasedLighting) == null ? void 0 : ip.specularEnvironmentMaps), Df = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((_f = (rp = c == null ? void 0 : c.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : _f.intensity), kf = arrayToCartecian3(
|
|
82640
|
+
(s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((bf = (rf = c == null ? void 0 : c.scene) == null ? void 0 : rf.imageBasedLighting) == null ? void 0 : bf.sphericalHarmonicCoefficients),
|
|
82641
82641
|
Df
|
|
82642
82642
|
);
|
|
82643
|
-
return Lf && (
|
|
82643
|
+
return Lf && (pf.specularEnvironmentMaps = Lf), kf && (pf.sphericalHarmonicCoefficients = kf), pf;
|
|
82644
82644
|
}, [
|
|
82645
82645
|
s == null ? void 0 : s.specularEnvironmentMaps,
|
|
82646
82646
|
s == null ? void 0 : s.sphericalHarmonicCoefficients,
|
|
82647
82647
|
s == null ? void 0 : s.imageBasedLightIntensity,
|
|
82648
82648
|
(Hf = (Ff = c == null ? void 0 : c.scene) == null ? void 0 : Ff.imageBasedLighting) == null ? void 0 : Hf.specularEnvironmentMaps,
|
|
82649
|
-
(Wf = (
|
|
82650
|
-
(
|
|
82651
|
-
]),
|
|
82652
|
-
(
|
|
82653
|
-
uf(!0), S == null || S({ properties:
|
|
82649
|
+
(Wf = (Jf = c == null ? void 0 : c.scene) == null ? void 0 : Jf.imageBasedLighting) == null ? void 0 : Wf.sphericalHarmonicCoefficients,
|
|
82650
|
+
(vf = (tp = c == null ? void 0 : c.scene) == null ? void 0 : tp.imageBasedLighting) == null ? void 0 : vf.intensity
|
|
82651
|
+
]), wf = useCallback(
|
|
82652
|
+
(pf) => {
|
|
82653
|
+
uf(!0), S == null || S({ properties: pf.properties }), F == null || F({ layerId: z.current });
|
|
82654
82654
|
},
|
|
82655
82655
|
[S, F]
|
|
82656
82656
|
);
|
|
82657
82657
|
return useEffect(() => (N == null || N(), () => {
|
|
82658
82658
|
N == null || N();
|
|
82659
82659
|
}), [Nl, N]), {
|
|
82660
|
-
tilesetUrl:
|
|
82660
|
+
tilesetUrl: ff,
|
|
82661
82661
|
ref: Xd,
|
|
82662
82662
|
style: Xs,
|
|
82663
82663
|
clippingPlanes: xf,
|
|
82664
|
-
drawClippingEnabled:
|
|
82664
|
+
drawClippingEnabled: Rf,
|
|
82665
82665
|
drawClippingEdgeProps: Wa,
|
|
82666
82666
|
builtinBoxProps: Sc,
|
|
82667
82667
|
imageBasedLighting: Sf,
|
|
82668
|
-
handleReady:
|
|
82668
|
+
handleReady: wf
|
|
82669
82669
|
};
|
|
82670
82670
|
};
|
|
82671
82671
|
function Tileset({
|
|
@@ -84708,7 +84708,7 @@ const useIBL = ({
|
|
|
84708
84708
|
onMount: fa,
|
|
84709
84709
|
onCreditsUpdate: La
|
|
84710
84710
|
}) => {
|
|
84711
|
-
var of, nf, df,
|
|
84711
|
+
var of, nf, df, Cf, ff, Sf, wf, Ff, Hf, Jf, Wf, tp, vf, pf, Lf, Df, kf, Yf, Qf, Zf, np, qf, ip, rp;
|
|
84712
84712
|
const Ra = useRef(null), ma = typeof (d == null ? void 0 : d.cesiumIonAccessToken) == "string" && d.cesiumIonAccessToken ? d.cesiumIonAccessToken : Ion.defaultAccessToken, yt = useEngineRef(t, Ra), lt = useLayerSelectWithRect({
|
|
84713
84713
|
cesium: Ra,
|
|
84714
84714
|
engineAPI: yt,
|
|
@@ -84730,7 +84730,7 @@ const useIBL = ({
|
|
|
84730
84730
|
normalShading: !0,
|
|
84731
84731
|
normalShadingSmooth: 0.3,
|
|
84732
84732
|
depthBias: 1e-4
|
|
84733
|
-
},
|
|
84733
|
+
}, bf = {
|
|
84734
84734
|
polygonOffsetFactor: 1.1,
|
|
84735
84735
|
polygonOffsetUnits: 4,
|
|
84736
84736
|
normalOffsetScale: 0.1 * 100,
|
|
@@ -84745,12 +84745,12 @@ const useIBL = ({
|
|
|
84745
84745
|
normalShadingSmooth: 0.1,
|
|
84746
84746
|
depthBias: 5e-4
|
|
84747
84747
|
};
|
|
84748
|
-
_f._terrainBias && Object.assign(_f._terrainBias, rf), _f._primitiveBias && Object.assign(_f._primitiveBias,
|
|
84748
|
+
_f._terrainBias && Object.assign(_f._terrainBias, rf), _f._primitiveBias && Object.assign(_f._primitiveBias, bf), _f._pointBias && Object.assign(_f._pointBias, Pf);
|
|
84749
84749
|
}, [
|
|
84750
84750
|
(df = (nf = (of = n == null ? void 0 : n.scene) == null ? void 0 : of.shadow) == null ? void 0 : nf.shadowMap) == null ? void 0 : df.softShadows,
|
|
84751
|
-
(Sf = (
|
|
84752
|
-
(Hf = (Ff = (
|
|
84753
|
-
(tp = (Wf = (
|
|
84751
|
+
(Sf = (ff = (Cf = n == null ? void 0 : n.scene) == null ? void 0 : Cf.shadow) == null ? void 0 : ff.shadowMap) == null ? void 0 : Sf.darkness,
|
|
84752
|
+
(Hf = (Ff = (wf = n == null ? void 0 : n.scene) == null ? void 0 : wf.shadow) == null ? void 0 : Ff.shadowMap) == null ? void 0 : Hf.size,
|
|
84753
|
+
(tp = (Wf = (Jf = n == null ? void 0 : n.scene) == null ? void 0 : Jf.shadow) == null ? void 0 : Wf.shadowMap) == null ? void 0 : tp.maximumDistance
|
|
84754
84754
|
]);
|
|
84755
84755
|
const _i = useRef(), ba = useRef();
|
|
84756
84756
|
useEffect(() => {
|
|
@@ -84761,11 +84761,11 @@ const useIBL = ({
|
|
|
84761
84761
|
const rf = getTag(_i.current);
|
|
84762
84762
|
if (!(rf != null && rf.featureId) && (rf != null && rf.layerId) && (s != null && s.layerId) && (rf == null ? void 0 : rf.layerId) === s.layerId || rf != null && rf.featureId && (s != null && s.featureId) && (rf == null ? void 0 : rf.featureId) === s.featureId)
|
|
84763
84763
|
return;
|
|
84764
|
-
const
|
|
84765
|
-
if (_i.current ===
|
|
84764
|
+
const bf = findEntity(_f, void 0, s == null ? void 0 : s.featureId) || findEntity(_f, s == null ? void 0 : s.layerId);
|
|
84765
|
+
if (_i.current === bf)
|
|
84766
84766
|
return;
|
|
84767
|
-
const Pf = getTag(
|
|
84768
|
-
if (
|
|
84767
|
+
const Pf = getTag(bf);
|
|
84768
|
+
if (bf instanceof Entity$2 && !(Pf != null && Pf.hideIndicator) ? _f.selectedEntity = bf : _f.selectedEntity = void 0, _i.current = bf, !bf && (s != null && s.featureId)) {
|
|
84769
84769
|
const tf = [], lf = (Bf = h == null ? void 0 : h.current) == null ? void 0 : Bf.findAll(
|
|
84770
84770
|
(yf) => {
|
|
84771
84771
|
var If, Of;
|
|
@@ -84787,16 +84787,16 @@ const useIBL = ({
|
|
|
84787
84787
|
}
|
|
84788
84788
|
}
|
|
84789
84789
|
if (!(Pf != null && Pf.unselectable)) {
|
|
84790
|
-
if (
|
|
84791
|
-
const tf = getTag(
|
|
84790
|
+
if (bf && bf instanceof Cesium3DTileFeature) {
|
|
84791
|
+
const tf = getTag(bf);
|
|
84792
84792
|
if (tf) {
|
|
84793
|
-
const lf = tileProperties(
|
|
84793
|
+
const lf = tileProperties(bf);
|
|
84794
84794
|
W == null || W(
|
|
84795
84795
|
tf.layerId,
|
|
84796
84796
|
String(tf.featureId),
|
|
84797
84797
|
lf.length ? {
|
|
84798
84798
|
defaultInfobox: {
|
|
84799
|
-
title:
|
|
84799
|
+
title: bf.getProperty("name"),
|
|
84800
84800
|
content: {
|
|
84801
84801
|
type: "table",
|
|
84802
84802
|
value: lf
|
|
@@ -84808,16 +84808,16 @@ const useIBL = ({
|
|
|
84808
84808
|
}
|
|
84809
84809
|
return;
|
|
84810
84810
|
}
|
|
84811
|
-
if (
|
|
84811
|
+
if (bf) {
|
|
84812
84812
|
const tf = Pf != null && Pf.layerId ? ((ep = h == null ? void 0 : h.current) == null ? void 0 : ep.overriddenLayers().find((lf) => lf.id === Pf.layerId)) ?? ((ap = h == null ? void 0 : h.current) == null ? void 0 : ap.findById(Pf.layerId)) : void 0;
|
|
84813
84813
|
W == null || W(
|
|
84814
84814
|
Pf == null ? void 0 : Pf.layerId,
|
|
84815
84815
|
Pf == null ? void 0 : Pf.featureId,
|
|
84816
|
-
|
|
84816
|
+
bf instanceof Entity$2 && (bf.description || bf.properties) ? {
|
|
84817
84817
|
defaultInfobox: {
|
|
84818
|
-
title:
|
|
84818
|
+
title: bf.name,
|
|
84819
84819
|
content: getEntityContent(
|
|
84820
|
-
|
|
84820
|
+
bf,
|
|
84821
84821
|
((fp = (up = Ra.current) == null ? void 0 : up.cesiumElement) == null ? void 0 : fp.clock.currentTime) ?? new JulianDate$1(),
|
|
84822
84822
|
Pf != null && Pf.layerId ? (al = (pp = tf == null ? void 0 : tf.infobox) == null ? void 0 : pp.property) == null ? void 0 : al.defaultContent : void 0
|
|
84823
84823
|
)
|
|
@@ -84829,14 +84829,14 @@ const useIBL = ({
|
|
|
84829
84829
|
}, [Ra, s, W, h, p]);
|
|
84830
84830
|
const Sc = useMemo(
|
|
84831
84831
|
() => {
|
|
84832
|
-
var _f, rf,
|
|
84832
|
+
var _f, rf, bf, Pf, Uf, Bf;
|
|
84833
84833
|
return (rf = (_f = n == null ? void 0 : n.scene) == null ? void 0 : _f.imageBasedLighting) != null && rf.sphericalHarmonicCoefficients ? arrayToCartecian3(
|
|
84834
|
-
(Pf = (
|
|
84834
|
+
(Pf = (bf = n == null ? void 0 : n.scene) == null ? void 0 : bf.imageBasedLighting) == null ? void 0 : Pf.sphericalHarmonicCoefficients,
|
|
84835
84835
|
(Bf = (Uf = n == null ? void 0 : n.scene) == null ? void 0 : Uf.imageBasedLighting) == null ? void 0 : Bf.intensity
|
|
84836
84836
|
) : void 0;
|
|
84837
84837
|
},
|
|
84838
84838
|
[
|
|
84839
|
-
(
|
|
84839
|
+
(pf = (vf = n == null ? void 0 : n.scene) == null ? void 0 : vf.imageBasedLighting) == null ? void 0 : pf.sphericalHarmonicCoefficients,
|
|
84840
84840
|
(Df = (Lf = n == null ? void 0 : n.scene) == null ? void 0 : Lf.imageBasedLighting) == null ? void 0 : Df.intensity
|
|
84841
84841
|
]
|
|
84842
84842
|
);
|
|
@@ -84850,7 +84850,7 @@ const useIBL = ({
|
|
|
84850
84850
|
terrain: n == null ? void 0 : n.terrain
|
|
84851
84851
|
});
|
|
84852
84852
|
const ms = useCallback(
|
|
84853
|
-
(_f, rf,
|
|
84853
|
+
(_f, rf, bf) => {
|
|
84854
84854
|
var Pf, Uf;
|
|
84855
84855
|
if (((Pf = yt.mouseEventCallbacks[_f]) == null ? void 0 : Pf.length) > 0) {
|
|
84856
84856
|
const Bf = (Uf = Ra.current) == null ? void 0 : Uf.cesiumElement;
|
|
@@ -84859,7 +84859,7 @@ const useIBL = ({
|
|
|
84859
84859
|
const ep = makeMouseEventProps(Bf, rf);
|
|
84860
84860
|
if (!ep)
|
|
84861
84861
|
return;
|
|
84862
|
-
const ap = getLayerId(
|
|
84862
|
+
const ap = getLayerId(bf);
|
|
84863
84863
|
ap && (ep.layerId = ap), yt.mouseEventCallbacks[_f].forEach((up) => up(ep));
|
|
84864
84864
|
}
|
|
84865
84865
|
},
|
|
@@ -84889,8 +84889,8 @@ const useIBL = ({
|
|
|
84889
84889
|
}
|
|
84890
84890
|
};
|
|
84891
84891
|
return Object.keys(_f).forEach((rf) => {
|
|
84892
|
-
rf !== "wheel" && (_f[rf] = (
|
|
84893
|
-
ms(rf,
|
|
84892
|
+
rf !== "wheel" && (_f[rf] = (bf, Pf) => {
|
|
84893
|
+
ms(rf, bf, Pf);
|
|
84894
84894
|
});
|
|
84895
84895
|
}), _f;
|
|
84896
84896
|
}, [ms, Xs]), pu = useCallback(
|
|
@@ -84898,12 +84898,12 @@ const useIBL = ({
|
|
|
84898
84898
|
var Bf, ep, ap, up, fp, pp, al, tf, lf, yf, If, Of, Tf, Mf;
|
|
84899
84899
|
if ((Bf = yu.click) == null || Bf.call(yu, _f, rf), !(p & FEATURE_FLAGS.SINGLE_SELECTION))
|
|
84900
84900
|
return;
|
|
84901
|
-
const
|
|
84902
|
-
if (!
|
|
84901
|
+
const bf = (ep = Ra.current) == null ? void 0 : ep.cesiumElement;
|
|
84902
|
+
if (!bf || bf.isDestroyed())
|
|
84903
84903
|
return;
|
|
84904
84904
|
ba.current = void 0;
|
|
84905
|
-
const Pf = findEntity(
|
|
84906
|
-
if ((!Pf || Pf instanceof Entity$2 && (Uf != null && Uf.hideIndicator)) && (
|
|
84905
|
+
const Pf = findEntity(bf, void 0, s == null ? void 0 : s.featureId) || findEntity(bf, s == null ? void 0 : s.layerId), Uf = getTag(Pf);
|
|
84906
|
+
if ((!Pf || Pf instanceof Entity$2 && (Uf != null && Uf.hideIndicator)) && (bf.selectedEntity = void 0), rf && "id" in rf && rf.id instanceof Entity$2 && isSelectable(rf.id)) {
|
|
84907
84907
|
const Af = getTag(rf.id), Gf = Af != null && Af.layerId ? ((ap = h == null ? void 0 : h.current) == null ? void 0 : ap.overriddenLayers().find((Xf) => Xf.id === Af.layerId)) ?? ((up = h == null ? void 0 : h.current) == null ? void 0 : up.findById(Af.layerId)) : void 0;
|
|
84908
84908
|
W == null || W(
|
|
84909
84909
|
Af == null ? void 0 : Af.layerId,
|
|
@@ -84913,12 +84913,12 @@ const useIBL = ({
|
|
|
84913
84913
|
title: (Gf == null ? void 0 : Gf.title) ?? rf.id.name,
|
|
84914
84914
|
content: getEntityContent(
|
|
84915
84915
|
rf.id,
|
|
84916
|
-
|
|
84916
|
+
bf.clock.currentTime ?? new JulianDate$1(),
|
|
84917
84917
|
Af != null && Af.layerId ? (pp = (fp = Gf == null ? void 0 : Gf.infobox) == null ? void 0 : fp.property) == null ? void 0 : pp.defaultContent : void 0
|
|
84918
84918
|
)
|
|
84919
84919
|
}
|
|
84920
84920
|
} : void 0
|
|
84921
|
-
), _i.current = rf.id, rf.id instanceof Entity$2 && !(Af != null && Af.hideIndicator) ?
|
|
84921
|
+
), _i.current = rf.id, rf.id instanceof Entity$2 && !(Af != null && Af.hideIndicator) ? bf.selectedEntity = rf.id : bf.selectedEntity = void 0;
|
|
84922
84922
|
return;
|
|
84923
84923
|
}
|
|
84924
84924
|
if (rf && (rf instanceof Cesium3DTileFeature || rf instanceof Cesium3DTilePointFeature)) {
|
|
@@ -84953,39 +84953,39 @@ const useIBL = ({
|
|
|
84953
84953
|
return;
|
|
84954
84954
|
}
|
|
84955
84955
|
if (rf === void 0 && _f.position) {
|
|
84956
|
-
const Af =
|
|
84956
|
+
const Af = bf.scene, Gf = Af.camera.getPickRay(_f.position);
|
|
84957
84957
|
if (Gf) {
|
|
84958
|
-
const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af),
|
|
84959
|
-
if (bp && ((yf = (lf = (tf =
|
|
84960
|
-
const gp = getTag(
|
|
84958
|
+
const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af), jf = Xf == null ? void 0 : Xf[0], bp = (al = jf == null ? void 0 : jf.data) == null ? void 0 : al.appearanceType;
|
|
84959
|
+
if (bp && ((yf = (lf = (tf = jf == null ? void 0 : jf.data) == null ? void 0 : tf.feature) == null ? void 0 : lf[bp]) == null ? void 0 : yf.show) !== !1) {
|
|
84960
|
+
const gp = getTag(jf.imageryLayer), lp = jf.position;
|
|
84961
84961
|
lp && requestAnimationFrame(() => {
|
|
84962
|
-
gp != null && gp.hideIndicator || (
|
|
84962
|
+
gp != null && gp.hideIndicator || (bf.selectedEntity = new Entity$2({
|
|
84963
84963
|
position: Cartographic$1.toCartesian(lp)
|
|
84964
84964
|
}));
|
|
84965
84965
|
});
|
|
84966
84966
|
const Bp = gp != null && gp.layerId ? ((If = h == null ? void 0 : h.current) == null ? void 0 : If.overriddenLayers().find((cg) => cg.id === gp.layerId)) ?? ((Of = h == null ? void 0 : h.current) == null ? void 0 : Of.findById(gp.layerId)) : void 0, ag = getEntityContent(
|
|
84967
|
-
|
|
84968
|
-
|
|
84967
|
+
jf.data.feature ?? jf,
|
|
84968
|
+
bf.clock.currentTime ?? new JulianDate$1(),
|
|
84969
84969
|
gp != null && gp.layerId ? (Mf = (Tf = Bp == null ? void 0 : Bp.infobox) == null ? void 0 : Tf.property) == null ? void 0 : Mf.defaultContent : void 0
|
|
84970
84970
|
);
|
|
84971
|
-
ba.current =
|
|
84972
|
-
|
|
84973
|
-
|
|
84971
|
+
ba.current = jf.data.featureId, W == null || W(
|
|
84972
|
+
jf.data.layerId,
|
|
84973
|
+
jf.data.featureId,
|
|
84974
84974
|
ag.value.length ? {
|
|
84975
84975
|
defaultInfobox: {
|
|
84976
|
-
title: (Bp == null ? void 0 : Bp.title) ??
|
|
84976
|
+
title: (Bp == null ? void 0 : Bp.title) ?? jf.name,
|
|
84977
84977
|
content: ag
|
|
84978
84978
|
}
|
|
84979
84979
|
} : void 0,
|
|
84980
84980
|
{
|
|
84981
|
-
feature:
|
|
84981
|
+
feature: jf.data.feature
|
|
84982
84982
|
}
|
|
84983
84983
|
);
|
|
84984
84984
|
return;
|
|
84985
84985
|
}
|
|
84986
84986
|
}
|
|
84987
84987
|
}
|
|
84988
|
-
|
|
84988
|
+
bf.selectedEntity = void 0, W == null || W();
|
|
84989
84989
|
},
|
|
84990
84990
|
[
|
|
84991
84991
|
W,
|
|
@@ -85015,10 +85015,10 @@ const useIBL = ({
|
|
|
85015
85015
|
Ru.current = La;
|
|
85016
85016
|
const Vd = useCallback(() => {
|
|
85017
85017
|
Ru.current && setTimeout(() => {
|
|
85018
|
-
var
|
|
85018
|
+
var bf;
|
|
85019
85019
|
if (!Ru.current)
|
|
85020
85020
|
return;
|
|
85021
|
-
const _f = (
|
|
85021
|
+
const _f = (bf = Ra.current) == null ? void 0 : bf.cesiumElement;
|
|
85022
85022
|
if (!_f || _f.isDestroyed())
|
|
85023
85023
|
return;
|
|
85024
85024
|
const rf = getCredits(_f) ?? [];
|
|
@@ -85051,8 +85051,8 @@ const useIBL = ({
|
|
|
85051
85051
|
]
|
|
85052
85052
|
);
|
|
85053
85053
|
useEffect(() => {
|
|
85054
|
-
var rf,
|
|
85055
|
-
const _f = (
|
|
85054
|
+
var rf, bf, Pf;
|
|
85055
|
+
const _f = (bf = (rf = Ra.current) == null ? void 0 : rf.cesiumElement) == null ? void 0 : bf.scene.globe;
|
|
85056
85056
|
if (_f) {
|
|
85057
85057
|
const Uf = _f._surface;
|
|
85058
85058
|
Uf && (Uf.tileProvider._debug.wireframe = ((Pf = n == null ? void 0 : n.debug) == null ? void 0 : Pf.showGlobeWireframe) ?? !1);
|
|
@@ -85078,10 +85078,10 @@ const useIBL = ({
|
|
|
85078
85078
|
});
|
|
85079
85079
|
useLayerDragDrop({ cesium: Ra, onLayerDrag: nt, onLayerDrop: Pe, isLayerDraggable: S }), useExplicitRender({ cesium: Ra, requestingRenderMode: F, isLayerDragging: P, shouldRender: L, property: n });
|
|
85080
85080
|
const {
|
|
85081
|
-
cameraViewBoundaries:
|
|
85081
|
+
cameraViewBoundaries: mf,
|
|
85082
85082
|
cameraViewOuterBoundaries: xf,
|
|
85083
85083
|
cameraViewBoundariesMaterial: Vf,
|
|
85084
|
-
handleCameraChange:
|
|
85084
|
+
handleCameraChange: Rf,
|
|
85085
85085
|
handleCameraMoveEnd: Wa,
|
|
85086
85086
|
mountCamera: af,
|
|
85087
85087
|
unmountCamera: Xd
|
|
@@ -85112,10 +85112,10 @@ const useIBL = ({
|
|
|
85112
85112
|
sceneBackgroundColor: uf,
|
|
85113
85113
|
sceneMsaaSamples: gf,
|
|
85114
85114
|
sceneMode: hf,
|
|
85115
|
-
cameraViewBoundaries:
|
|
85115
|
+
cameraViewBoundaries: mf,
|
|
85116
85116
|
cameraViewOuterBoundaries: xf,
|
|
85117
85117
|
cameraViewBoundariesMaterial: Vf,
|
|
85118
|
-
handleCameraChange:
|
|
85118
|
+
handleCameraChange: Rf,
|
|
85119
85119
|
handleCameraMoveEnd: Wa,
|
|
85120
85120
|
handleUpdate: Nl,
|
|
85121
85121
|
handleClick: pu,
|
|
@@ -90951,7 +90951,7 @@ const Cesium = ({
|
|
|
90951
90951
|
onLayerLoad: lt,
|
|
90952
90952
|
onCreditsUpdate: _i
|
|
90953
90953
|
}, ba) => {
|
|
90954
|
-
var gd, pd, Zd, sf, of, nf, df,
|
|
90954
|
+
var gd, pd, Zd, sf, of, nf, df, Cf, ff, Sf, wf, Ff, Hf, Jf, Wf, tp, vf, pf, Lf, Df, kf, Yf, Qf, Zf, np, qf, ip, rp, _f, rf, bf, Pf, Uf, Bf, ep, ap, up, fp, pp, al, tf, lf;
|
|
90955
90955
|
const {
|
|
90956
90956
|
cesium: Sc,
|
|
90957
90957
|
mouseEventHandles: ms,
|
|
@@ -90966,10 +90966,10 @@ const Cesium = ({
|
|
|
90966
90966
|
cameraViewOuterBoundaries: uf,
|
|
90967
90967
|
cameraViewBoundariesMaterial: gf,
|
|
90968
90968
|
handleCameraChange: hf,
|
|
90969
|
-
handleCameraMoveEnd:
|
|
90969
|
+
handleCameraMoveEnd: mf,
|
|
90970
90970
|
handleUpdate: xf,
|
|
90971
90971
|
handleClick: Vf,
|
|
90972
|
-
handleMount:
|
|
90972
|
+
handleMount: Rf,
|
|
90973
90973
|
handleUnmount: Wa,
|
|
90974
90974
|
handleTilesChange: af,
|
|
90975
90975
|
handleTerrainProviderChange: Xd
|
|
@@ -91044,7 +91044,7 @@ const Cesium = ({
|
|
|
91044
91044
|
onMouseLeave: ms.mouseLeave,
|
|
91045
91045
|
onWheel: ms.wheel,
|
|
91046
91046
|
children: [
|
|
91047
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Event, { onMount:
|
|
91047
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Event, { onMount: Rf, onUnmount: Wa }),
|
|
91048
91048
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ReearthClock, { timelineManagerRef: se }),
|
|
91049
91049
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
91050
91050
|
ImageryLayers,
|
|
@@ -91111,7 +91111,7 @@ const Cesium = ({
|
|
|
91111
91111
|
Ta$1,
|
|
91112
91112
|
{
|
|
91113
91113
|
maximumZoomDistance: (sf = (Zd = o == null ? void 0 : o.camera) == null ? void 0 : Zd.limiter) != null && sf.enabled ? ((df = (nf = (of = o.camera) == null ? void 0 : of.limiter) == null ? void 0 : nf.targetArea) == null ? void 0 : df.height) ?? Number.POSITIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
91114
|
-
enableCollisionDetection: !((
|
|
91114
|
+
enableCollisionDetection: !((Cf = o == null ? void 0 : o.camera) != null && Cf.allowEnterGround)
|
|
91115
91115
|
}
|
|
91116
91116
|
),
|
|
91117
91117
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -91119,10 +91119,10 @@ const Cesium = ({
|
|
|
91119
91119
|
{
|
|
91120
91120
|
percentageChanged: 0.2,
|
|
91121
91121
|
onChange: hf,
|
|
91122
|
-
onMoveEnd:
|
|
91122
|
+
onMoveEnd: mf
|
|
91123
91123
|
}
|
|
91124
91124
|
),
|
|
91125
|
-
cf && ((Sf = (
|
|
91125
|
+
cf && ((Sf = (ff = o == null ? void 0 : o.camera) == null ? void 0 : ff.limiter) == null ? void 0 : Sf.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
91126
91126
|
ua$1,
|
|
91127
91127
|
{
|
|
91128
91128
|
positions: cf,
|
|
@@ -91131,7 +91131,7 @@ const Cesium = ({
|
|
|
91131
91131
|
arcType: ArcType$2.RHUMB
|
|
91132
91132
|
}
|
|
91133
91133
|
) }),
|
|
91134
|
-
uf && ((Ff = (
|
|
91134
|
+
uf && ((Ff = (wf = o == null ? void 0 : o.camera) == null ? void 0 : wf.limiter) == null ? void 0 : Ff.showHelper) && /* @__PURE__ */ jsxRuntimeExports.jsx(Is$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
91135
91135
|
ua$1,
|
|
91136
91136
|
{
|
|
91137
91137
|
positions: uf,
|
|
@@ -91149,12 +91149,12 @@ const Cesium = ({
|
|
|
91149
91149
|
msaaSamples: Vd,
|
|
91150
91150
|
useDepthPicking: !1,
|
|
91151
91151
|
useWebVR: !!((Hf = o == null ? void 0 : o.scene) != null && Hf.vr) || void 0,
|
|
91152
|
-
debugShowFramesPerSecond: !!((
|
|
91152
|
+
debugShowFramesPerSecond: !!((Jf = o == null ? void 0 : o.debug) != null && Jf.showFramesPerSecond),
|
|
91153
91153
|
verticalExaggerationRelativeHeight: (Wf = o == null ? void 0 : o.scene) == null ? void 0 : Wf.verticalExaggerationRelativeHeight,
|
|
91154
91154
|
verticalExaggeration: (tp = o == null ? void 0 : o.scene) == null ? void 0 : tp.verticalExaggeration
|
|
91155
91155
|
}
|
|
91156
91156
|
),
|
|
91157
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((
|
|
91157
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((pf = (vf = o == null ? void 0 : o.sky) == null ? void 0 : vf.skyBox) == null ? void 0 : pf.show) ?? !0 }),
|
|
91158
91158
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Vs, { enabled: ((Df = (Lf = o == null ? void 0 : o.sky) == null ? void 0 : Lf.fog) == null ? void 0 : Df.enabled) ?? !0, density: (Yf = (kf = o == null ? void 0 : o.sky) == null ? void 0 : kf.fog) == null ? void 0 : Yf.density }),
|
|
91159
91159
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((Zf = (Qf = o == null ? void 0 : o.sky) == null ? void 0 : Qf.sun) == null ? void 0 : Zf.show) ?? !0 }),
|
|
91160
91160
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ea, { show: ((qf = (np = o == null ? void 0 : o.sky) == null ? void 0 : np.moon) == null ? void 0 : qf.show) ?? !0 }),
|
|
@@ -91163,7 +91163,7 @@ const Cesium = ({
|
|
|
91163
91163
|
{
|
|
91164
91164
|
show: ((rp = (ip = o == null ? void 0 : o.sky) == null ? void 0 : ip.skyAtmosphere) == null ? void 0 : rp.show) ?? !0,
|
|
91165
91165
|
atmosphereLightIntensity: (rf = (_f = o == null ? void 0 : o.sky) == null ? void 0 : _f.skyAtmosphere) == null ? void 0 : rf.lightIntensity,
|
|
91166
|
-
saturationShift: (Pf = (
|
|
91166
|
+
saturationShift: (Pf = (bf = o == null ? void 0 : o.sky) == null ? void 0 : bf.skyAtmosphere) == null ? void 0 : Pf.saturationShift,
|
|
91167
91167
|
brightnessShift: (Bf = (Uf = o == null ? void 0 : o.sky) == null ? void 0 : Uf.skyAtmosphere) == null ? void 0 : Bf.brightnessShift
|
|
91168
91168
|
}
|
|
91169
91169
|
),
|
|
@@ -91204,7 +91204,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91204
91204
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91205
91205
|
] });
|
|
91206
91206
|
}
|
|
91207
|
-
const version = "0.0.7-alpha.
|
|
91207
|
+
const version = "0.0.7-alpha.28", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91208
91208
|
const n = useRef(t);
|
|
91209
91209
|
n.current = t;
|
|
91210
91210
|
const o = useMemo(
|
|
@@ -91273,21 +91273,21 @@ function useHooks({
|
|
|
91273
91273
|
const F = useRef(null), N = useViewport({
|
|
91274
91274
|
wrapperRef: F
|
|
91275
91275
|
}), [z, W] = useState({}), [nt, Pe] = useState(), [se, mt] = useState(), kt = useCallback(
|
|
91276
|
-
async (
|
|
91277
|
-
var np, qf, ip, rp, _f, rf,
|
|
91276
|
+
async (vf, pf, Lf, Df, kf) => {
|
|
91277
|
+
var np, qf, ip, rp, _f, rf, bf, Pf, Uf, Bf, ep;
|
|
91278
91278
|
const Yf = ((np = z.layer) == null ? void 0 : np.layer.type) === "simple" && ((rp = (ip = (qf = z.layer) == null ? void 0 : qf.layer) == null ? void 0 : ip.data) == null ? void 0 : rp.isSketchLayer);
|
|
91279
|
-
if (z.layerId ===
|
|
91279
|
+
if (z.layerId === vf && z.featureId === pf && !Yf)
|
|
91280
91280
|
return;
|
|
91281
|
-
const Qf = await (Lf == null ? void 0 : Lf()), Zf =
|
|
91281
|
+
const Qf = await (Lf == null ? void 0 : Lf()), Zf = vf && pf ? (Yf ? (_f = Qf == null ? void 0 : Qf.features) == null ? void 0 : _f.find((ap) => ap.id === pf) : (Pf = (rf = L.current) == null ? void 0 : (bf = rf.engine).findComputedFeatureById) == null ? void 0 : Pf.call(bf, vf, pf)) ?? (kf == null ? void 0 : kf.feature) : void 0;
|
|
91282
91282
|
Pe(
|
|
91283
|
-
|
|
91283
|
+
vf && pf ? (ep = (Uf = L.current) == null ? void 0 : (Bf = Uf.engine).findFeatureById) == null ? void 0 : ep.call(Bf, vf, pf) : void 0
|
|
91284
91284
|
), mt(Zf), W(
|
|
91285
|
-
(ap) => ap.layerId ===
|
|
91286
|
-
), c == null || c(
|
|
91285
|
+
(ap) => ap.layerId === vf && ap.featureId === pf ? ap : { layerId: vf, featureId: pf, layer: Qf, reason: Df }
|
|
91286
|
+
), c == null || c(vf, Lf, Zf, Df);
|
|
91287
91287
|
},
|
|
91288
91288
|
[z, c]
|
|
91289
|
-
), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((
|
|
91290
|
-
fa(!!
|
|
91289
|
+
), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((vf) => {
|
|
91290
|
+
fa(!!vf);
|
|
91291
91291
|
}, []), [Ra, ma] = useValue(
|
|
91292
91292
|
n,
|
|
91293
91293
|
h
|
|
@@ -91297,70 +91297,70 @@ function useHooks({
|
|
|
91297
91297
|
yt === "sketch" ? "crosshair" : yt === "move" ? "grab" : "auto"
|
|
91298
91298
|
);
|
|
91299
91299
|
}, [yt]);
|
|
91300
|
-
const ba = INTERACTION_MODES[yt], Sc = useRef(), ms = useCallback((
|
|
91301
|
-
Sc.current =
|
|
91302
|
-
}, []), Xs = useCallback((
|
|
91303
|
-
var
|
|
91304
|
-
(
|
|
91305
|
-
}, []), yu = useRef(), pu = useCallback((
|
|
91306
|
-
yu.current =
|
|
91307
|
-
}, []), Nl = useCallback((
|
|
91308
|
-
var
|
|
91309
|
-
(
|
|
91310
|
-
}, []), Ru = useRef(), Vd = useCallback((
|
|
91311
|
-
Ru.current =
|
|
91312
|
-
}, []), Gd = useCallback((
|
|
91313
|
-
var
|
|
91314
|
-
(
|
|
91315
|
-
}, []), cf = useRef(), uf = useCallback((
|
|
91316
|
-
cf.current =
|
|
91317
|
-
}, []), gf = useCallback((
|
|
91318
|
-
var
|
|
91319
|
-
(
|
|
91320
|
-
}, []), hf = useRef(),
|
|
91321
|
-
hf.current =
|
|
91322
|
-
}, []), xf = useCallback((
|
|
91323
|
-
var
|
|
91324
|
-
(
|
|
91325
|
-
}, []), Vf = useRef(),
|
|
91326
|
-
Vf.current =
|
|
91327
|
-
}, []), Wa = useCallback((
|
|
91328
|
-
var
|
|
91329
|
-
(
|
|
91330
|
-
}, []), af = useRef([]), Xd = useCallback((
|
|
91331
|
-
af.current.push(
|
|
91332
|
-
}, []), gd = useCallback((
|
|
91333
|
-
af.current.forEach((
|
|
91334
|
-
}, []), pd = useRef([]), Zd = useCallback((
|
|
91335
|
-
pd.current.push(
|
|
91336
|
-
}, []), sf = useCallback((
|
|
91337
|
-
pd.current.forEach((
|
|
91338
|
-
}, []), of = useRef([]), nf = useCallback((
|
|
91339
|
-
of.current.push(
|
|
91300
|
+
const ba = INTERACTION_MODES[yt], Sc = useRef(), ms = useCallback((vf) => {
|
|
91301
|
+
Sc.current = vf;
|
|
91302
|
+
}, []), Xs = useCallback((vf) => {
|
|
91303
|
+
var pf;
|
|
91304
|
+
(pf = Sc.current) == null || pf.call(Sc, vf);
|
|
91305
|
+
}, []), yu = useRef(), pu = useCallback((vf) => {
|
|
91306
|
+
yu.current = vf;
|
|
91307
|
+
}, []), Nl = useCallback((vf) => {
|
|
91308
|
+
var pf;
|
|
91309
|
+
(pf = yu.current) == null || pf.call(yu, vf);
|
|
91310
|
+
}, []), Ru = useRef(), Vd = useCallback((vf) => {
|
|
91311
|
+
Ru.current = vf;
|
|
91312
|
+
}, []), Gd = useCallback((vf) => {
|
|
91313
|
+
var pf;
|
|
91314
|
+
(pf = Ru.current) == null || pf.call(Ru, vf);
|
|
91315
|
+
}, []), cf = useRef(), uf = useCallback((vf) => {
|
|
91316
|
+
cf.current = vf;
|
|
91317
|
+
}, []), gf = useCallback((vf) => {
|
|
91318
|
+
var pf;
|
|
91319
|
+
(pf = cf.current) == null || pf.call(cf, vf);
|
|
91320
|
+
}, []), hf = useRef(), mf = useCallback((vf) => {
|
|
91321
|
+
hf.current = vf;
|
|
91322
|
+
}, []), xf = useCallback((vf) => {
|
|
91323
|
+
var pf;
|
|
91324
|
+
(pf = hf.current) == null || pf.call(hf, vf);
|
|
91325
|
+
}, []), Vf = useRef(), Rf = useCallback((vf) => {
|
|
91326
|
+
Vf.current = vf;
|
|
91327
|
+
}, []), Wa = useCallback((vf) => {
|
|
91328
|
+
var pf;
|
|
91329
|
+
(pf = Vf.current) == null || pf.call(Vf, vf);
|
|
91330
|
+
}, []), af = useRef([]), Xd = useCallback((vf) => {
|
|
91331
|
+
af.current.push(vf);
|
|
91332
|
+
}, []), gd = useCallback((vf) => {
|
|
91333
|
+
af.current.forEach((pf) => pf(vf));
|
|
91334
|
+
}, []), pd = useRef([]), Zd = useCallback((vf) => {
|
|
91335
|
+
pd.current.push(vf);
|
|
91336
|
+
}, []), sf = useCallback((vf) => {
|
|
91337
|
+
pd.current.forEach((pf) => pf(vf));
|
|
91338
|
+
}, []), of = useRef([]), nf = useCallback((vf) => {
|
|
91339
|
+
of.current.push(vf);
|
|
91340
91340
|
}, []), df = useCallback(
|
|
91341
|
-
(
|
|
91342
|
-
of.current.forEach((
|
|
91341
|
+
(vf) => {
|
|
91342
|
+
of.current.forEach((pf) => pf(vf));
|
|
91343
91343
|
},
|
|
91344
91344
|
[]
|
|
91345
|
-
),
|
|
91346
|
-
|
|
91345
|
+
), Cf = useRef([]), ff = useCallback((vf) => {
|
|
91346
|
+
Cf.current.push(vf);
|
|
91347
91347
|
}, []), Sf = useCallback(
|
|
91348
|
-
(
|
|
91349
|
-
|
|
91348
|
+
(vf, pf) => {
|
|
91349
|
+
Cf.current.forEach((Lf) => Lf(vf)), S == null || S(vf, pf);
|
|
91350
91350
|
},
|
|
91351
91351
|
[S]
|
|
91352
91352
|
);
|
|
91353
91353
|
useEffect(() => {
|
|
91354
|
-
var
|
|
91355
|
-
o && ((
|
|
91354
|
+
var vf, pf;
|
|
91355
|
+
o && ((pf = (vf = L.current) == null ? void 0 : vf.engine) == null || pf.lookAtLayer(o), p == null || p(void 0));
|
|
91356
91356
|
}, [o, p]);
|
|
91357
|
-
const [
|
|
91357
|
+
const [wf, Ff] = useState(!1), Hf = useCallback(() => {
|
|
91358
91358
|
Ff(!0);
|
|
91359
|
-
}, []),
|
|
91360
|
-
(
|
|
91359
|
+
}, []), Jf = useCallback(
|
|
91360
|
+
(vf, pf, Lf) => {
|
|
91361
91361
|
var Yf;
|
|
91362
91362
|
Ff(!1);
|
|
91363
|
-
const Df = (Yf = L.current) == null ? void 0 : Yf.layers.findById(
|
|
91363
|
+
const Df = (Yf = L.current) == null ? void 0 : Yf.layers.findById(vf), kf = Df != null && Df.property.default.location ? "default.location" : Df != null && Df.property.default.position ? "default.position" : void 0;
|
|
91364
91364
|
Lf && Df && Df.propertyId && kf && (y == null || y(Df.propertyId, kf, Lf));
|
|
91365
91365
|
},
|
|
91366
91366
|
[y, L]
|
|
@@ -91375,13 +91375,13 @@ function useHooks({
|
|
|
91375
91375
|
onSketchPluginFeatureCreate: Xd,
|
|
91376
91376
|
onSketchPluginFeatureUpdate: Zd,
|
|
91377
91377
|
onSketchPluginFeatureDelete: nf,
|
|
91378
|
-
onSketchTypeChange:
|
|
91378
|
+
onSketchTypeChange: ff,
|
|
91379
91379
|
onLayerVisibility: pu,
|
|
91380
91380
|
onLayerLoad: Vd,
|
|
91381
91381
|
onLayerEdit: ms,
|
|
91382
91382
|
onLayerSelectWithRectStart: uf,
|
|
91383
|
-
onLayerSelectWithRectMove:
|
|
91384
|
-
onLayerSelectWithRectEnd:
|
|
91383
|
+
onLayerSelectWithRectMove: mf,
|
|
91384
|
+
onLayerSelectWithRectEnd: Rf
|
|
91385
91385
|
}),
|
|
91386
91386
|
[
|
|
91387
91387
|
yt,
|
|
@@ -91394,12 +91394,12 @@ function useHooks({
|
|
|
91394
91394
|
Xd,
|
|
91395
91395
|
Zd,
|
|
91396
91396
|
nf,
|
|
91397
|
-
|
|
91397
|
+
ff,
|
|
91398
91398
|
pu,
|
|
91399
91399
|
Vd,
|
|
91400
91400
|
uf,
|
|
91401
|
-
|
|
91402
|
-
|
|
91401
|
+
mf,
|
|
91402
|
+
Rf
|
|
91403
91403
|
]
|
|
91404
91404
|
), tp = useMemo(
|
|
91405
91405
|
() => ({
|
|
@@ -91416,7 +91416,7 @@ function useHooks({
|
|
|
91416
91416
|
selectedFeature: nt,
|
|
91417
91417
|
camera: pi,
|
|
91418
91418
|
featureFlags: ba,
|
|
91419
|
-
isLayerDragging:
|
|
91419
|
+
isLayerDragging: wf,
|
|
91420
91420
|
timelineManagerRef: mn,
|
|
91421
91421
|
cursor: lt,
|
|
91422
91422
|
cameraForceHorizontalRoll: Sa,
|
|
@@ -91425,7 +91425,7 @@ function useHooks({
|
|
|
91425
91425
|
overriddenInteractionMode: yt,
|
|
91426
91426
|
handleLayerSelect: kt,
|
|
91427
91427
|
handleLayerDrag: Hf,
|
|
91428
|
-
handleLayerDrop:
|
|
91428
|
+
handleLayerDrop: Jf,
|
|
91429
91429
|
handleLayerEdit: Xs,
|
|
91430
91430
|
handleCameraChange: zi,
|
|
91431
91431
|
handleInteractionModeChange: ma,
|
|
@@ -91501,10 +91501,10 @@ const CoreVisualizer = memo$1(
|
|
|
91501
91501
|
handleLayerSelect: uf,
|
|
91502
91502
|
handleLayerDrag: gf,
|
|
91503
91503
|
handleLayerDrop: hf,
|
|
91504
|
-
handleLayerEdit:
|
|
91504
|
+
handleLayerEdit: mf,
|
|
91505
91505
|
handleCameraChange: xf,
|
|
91506
91506
|
handleInteractionModeChange: Vf,
|
|
91507
|
-
handleSketchPluginFeatureCreate:
|
|
91507
|
+
handleSketchPluginFeatureCreate: Rf,
|
|
91508
91508
|
handleSketchPluginFeatureUpdate: Wa,
|
|
91509
91509
|
handleSketchPluginFeatureDelete: af,
|
|
91510
91510
|
handleSketchTypeChange: Xd,
|
|
@@ -91561,10 +91561,10 @@ const CoreVisualizer = memo$1(
|
|
|
91561
91561
|
onLayerDrag: gf,
|
|
91562
91562
|
onLayerDrop: hf,
|
|
91563
91563
|
onLayerSelect: uf,
|
|
91564
|
-
onLayerEdit:
|
|
91564
|
+
onLayerEdit: mf,
|
|
91565
91565
|
overrideInteractionMode: Vf,
|
|
91566
91566
|
onSketchFeatureCreate: fa,
|
|
91567
|
-
onSketchPluginFeatureCreate:
|
|
91567
|
+
onSketchPluginFeatureCreate: Rf,
|
|
91568
91568
|
onSketchFeatureUpdate: La,
|
|
91569
91569
|
onSketchPluginFeatureUpdate: Wa,
|
|
91570
91570
|
onSketchFeatureDelete: Ra,
|