@reearth/core 0.0.7-alpha.41 → 0.0.7-alpha.43

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 CHANGED
@@ -400,7 +400,7 @@ function requireReactJsxRuntime_development() {
400
400
  ref: !0,
401
401
  __self: !0,
402
402
  __source: !0
403
- }, Hf, vf;
403
+ }, Hf, xf;
404
404
  function wf(al) {
405
405
  if (Xd.call(al, "ref")) {
406
406
  var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
@@ -420,7 +420,7 @@ function requireReactJsxRuntime_development() {
420
420
  function Nf(al, tf) {
421
421
  typeof al.ref == "string" && Pf.current;
422
422
  }
423
- function xf(al, tf) {
423
+ function vf(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 Ff(al, tf) {
435
435
  {
436
436
  var lf = function() {
437
- vf || (vf = !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));
437
+ xf || (xf = !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,
@@ -484,7 +484,7 @@ function requireReactJsxRuntime_development() {
484
484
  }
485
485
  if (Vf || Gf) {
486
486
  var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
487
- Vf && xf(Mf, Zf), Gf && Ff(Mf, Zf);
487
+ Vf && vf(Mf, Zf), Gf && Ff(Mf, Zf);
488
488
  }
489
489
  return Uf(al, Vf, Gf, Lf, yf, Pf.current, Mf);
490
490
  }
@@ -4502,7 +4502,7 @@ function log2(t) {
4502
4502
  return Math$1.log2(t);
4503
4503
  }
4504
4504
  const rgbParenthesesMatcher$1 = /^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i, hslParenthesesMatcher$1 = /^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;
4505
- let Color$2 = class xp {
4505
+ let Color$2 = class vp {
4506
4506
  constructor(n, o, s, c) {
4507
4507
  Rf(this, "red");
4508
4508
  Rf(this, "green");
@@ -4523,19 +4523,19 @@ let Color$2 = class xp {
4523
4523
  return o;
4524
4524
  let s = rgbaMatcher$1.exec(n);
4525
4525
  if (s !== null) {
4526
- const c = new xp();
4526
+ const c = new vp();
4527
4527
  return c.red = parseInt(s[1], 16) / 15, c.green = parseInt(s[2], 16) / 15, c.blue = parseInt(s[3], 16) / 15, c.alpha = parseInt(defaultValue$1(s[4], "f"), 16) / 15, c;
4528
4528
  }
4529
4529
  if (s = rrggbbaaMatcher$1.exec(n), s !== null) {
4530
- const c = new xp();
4530
+ const c = new vp();
4531
4531
  return c.red = parseInt(s[1], 16) / 255, c.green = parseInt(s[2], 16) / 255, c.blue = parseInt(s[3], 16) / 255, c.alpha = parseInt(defaultValue$1(s[4], "ff"), 16) / 255, c;
4532
4532
  }
4533
4533
  if (s = rgbParenthesesMatcher$1.exec(n), s !== null) {
4534
- const c = new xp();
4534
+ const c = new vp();
4535
4535
  return c.red = parseFloat(s[1]) / (s[1].substr(-1) === "%" ? 100 : 255), c.green = parseFloat(s[2]) / (s[2].substr(-1) === "%" ? 100 : 255), c.blue = parseFloat(s[3]) / (s[3].substr(-1) === "%" ? 100 : 255), c.alpha = parseFloat(defaultValue$1(s[4], "1.0")), c;
4536
4536
  }
4537
4537
  if (s = hslParenthesesMatcher$1.exec(n), s !== null)
4538
- return xp.fromHsl(
4538
+ return vp.fromHsl(
4539
4539
  parseFloat(s[1]) / 360,
4540
4540
  parseFloat(s[2]) / 100,
4541
4541
  parseFloat(s[3]) / 100,
@@ -4545,30 +4545,30 @@ let Color$2 = class xp {
4545
4545
  static fromHsl(n, o, s, c) {
4546
4546
  if (n = defaultValue$1(n, 0) % 1, o = defaultValue$1(o, 0), s = defaultValue$1(s, 0), c = defaultValue$1(c, 1), n && o && s && c) {
4547
4547
  let d = s, h = s, p = s;
4548
- const y = new xp();
4548
+ const y = new vp();
4549
4549
  if (o !== 0) {
4550
4550
  let S;
4551
4551
  s < 0.5 ? S = s * (1 + o) : S = s + o - s * o;
4552
4552
  const P = 2 * s - S;
4553
4553
  d = hue2rgb$1(P, S, n + 1 / 3), h = hue2rgb$1(P, S, n), p = hue2rgb$1(P, S, n - 1 / 3);
4554
4554
  }
4555
- return typeof y > "u" ? new xp(d, h, p, c) : (y.red = d, y.green = h, y.blue = p, y.alpha = c, y);
4555
+ return typeof y > "u" ? new vp(d, h, p, c) : (y.red = d, y.green = h, y.blue = p, y.alpha = c, y);
4556
4556
  }
4557
4557
  }
4558
4558
  toCssHexString() {
4559
- let n = xp.floatToByte(this.red).toString(16);
4559
+ let n = vp.floatToByte(this.red).toString(16);
4560
4560
  n.length < 2 && (n = `0${n}`);
4561
- let o = xp.floatToByte(this.green).toString(16);
4561
+ let o = vp.floatToByte(this.green).toString(16);
4562
4562
  o.length < 2 && (o = `0${o}`);
4563
- let s = xp.floatToByte(this.blue).toString(16);
4563
+ let s = vp.floatToByte(this.blue).toString(16);
4564
4564
  if (s.length < 2 && (s = `0${s}`), this.alpha < 1) {
4565
- let c = xp.floatToByte(this.alpha).toString(16);
4565
+ let c = vp.floatToByte(this.alpha).toString(16);
4566
4566
  return c.length < 2 && (c = `0${c}`), `#${n}${o}${s}${c}`;
4567
4567
  }
4568
4568
  return `#${n}${o}${s}`.toUpperCase();
4569
4569
  }
4570
4570
  static fromBytes(n, o, s, c) {
4571
- return n = this.byteToFloat(defaultValue$1(n, 255)), o = xp.byteToFloat(defaultValue$1(o, 255)), s = xp.byteToFloat(defaultValue$1(s, 255)), c = xp.byteToFloat(defaultValue$1(c, 255)), new xp(n, o, s, c);
4571
+ return n = this.byteToFloat(defaultValue$1(n, 255)), o = vp.byteToFloat(defaultValue$1(o, 255)), s = vp.byteToFloat(defaultValue$1(s, 255)), c = vp.byteToFloat(defaultValue$1(c, 255)), new vp(n, o, s, c);
4572
4572
  }
4573
4573
  };
4574
4574
  function getColor(t) {
@@ -10766,11 +10766,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10766
10766
  for (nf = _f; cf = pd.heap[1], pd.heap[1] = pd.heap[pd.heap_len--], gf(pd, df, 1), sf = pd.heap[1], pd.heap[--pd.heap_max] = cf, pd.heap[--pd.heap_max] = sf, df[2 * nf] = df[2 * cf] + df[2 * sf], pd.depth[nf] = (pd.depth[cf] >= pd.depth[sf] ? pd.depth[cf] : pd.depth[sf]) + 1, df[2 * cf + 1] = df[2 * sf + 1] = nf, pd.heap[1] = nf++, gf(pd, df, 1), 2 <= pd.heap_len; )
10767
10767
  ;
10768
10768
  pd.heap[--pd.heap_max] = pd.heap[1], function(Af, Hf) {
10769
- var vf, wf, Yf, Nf, xf, Ff, Uf = Hf.dyn_tree, Wf = Hf.max_code, Qf = Hf.stat_desc.static_tree, ep = Hf.stat_desc.has_stree, Bf = Hf.stat_desc.extra_bits, tp = Hf.stat_desc.extra_base, qf = Hf.stat_desc.max_length, ip = 0;
10769
+ var xf, wf, Yf, Nf, vf, Ff, Uf = Hf.dyn_tree, Wf = Hf.max_code, Qf = Hf.stat_desc.static_tree, ep = Hf.stat_desc.has_stree, Bf = Hf.stat_desc.extra_bits, tp = Hf.stat_desc.extra_base, qf = Hf.stat_desc.max_length, ip = 0;
10770
10770
  for (Nf = 0; Nf <= nt; Nf++)
10771
10771
  Af.bl_count[Nf] = 0;
10772
- for (Uf[2 * Af.heap[Af.heap_max] + 1] = 0, vf = Af.heap_max + 1; vf < W; vf++)
10773
- qf < (Nf = Uf[2 * Uf[2 * (wf = Af.heap[vf]) + 1] + 1] + 1) && (Nf = qf, ip++), Uf[2 * wf + 1] = Nf, Wf < wf || (Af.bl_count[Nf]++, xf = 0, tp <= wf && (xf = Bf[wf - tp]), Ff = Uf[2 * wf], Af.opt_len += Ff * (Nf + xf), ep && (Af.static_len += Ff * (Qf[2 * wf + 1] + xf)));
10772
+ for (Uf[2 * Af.heap[Af.heap_max] + 1] = 0, xf = Af.heap_max + 1; xf < W; xf++)
10773
+ qf < (Nf = Uf[2 * Uf[2 * (wf = Af.heap[xf]) + 1] + 1] + 1) && (Nf = qf, ip++), Uf[2 * wf + 1] = Nf, Wf < wf || (Af.bl_count[Nf]++, vf = 0, tp <= wf && (vf = Bf[wf - tp]), Ff = Uf[2 * wf], Af.opt_len += Ff * (Nf + vf), ep && (Af.static_len += Ff * (Qf[2 * wf + 1] + vf)));
10774
10774
  if (ip !== 0) {
10775
10775
  do {
10776
10776
  for (Nf = qf - 1; Af.bl_count[Nf] === 0; )
@@ -10779,7 +10779,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10779
10779
  } while (0 < ip);
10780
10780
  for (Nf = qf; Nf !== 0; Nf--)
10781
10781
  for (wf = Af.bl_count[Nf]; wf !== 0; )
10782
- Wf < (Yf = Af.heap[--vf]) || (Uf[2 * Yf + 1] !== Nf && (Af.opt_len += (Nf - Uf[2 * Yf + 1]) * Uf[2 * Yf], Uf[2 * Yf + 1] = Nf), wf--);
10782
+ Wf < (Yf = Af.heap[--xf]) || (Uf[2 * Yf + 1] !== Nf && (Af.opt_len += (Nf - Uf[2 * Yf + 1]) * Uf[2 * Yf], Uf[2 * Yf + 1] = Nf), wf--);
10783
10783
  }
10784
10784
  }(pd, Zd), ff(df, Pf, pd.bl_count);
10785
10785
  }
@@ -14848,7 +14848,7 @@ function useHooks$a({
14848
14848
  [y]
14849
14849
  ), lt = useRef(S), _i = useCallback(
14850
14850
  (Xd, gd) => {
14851
- var Af, Hf, vf, wf, Yf;
14851
+ var Af, Hf, xf, wf, Yf;
14852
14852
  const pd = y.get(Xd);
14853
14853
  if (!pd)
14854
14854
  return;
@@ -14869,7 +14869,7 @@ function useHooks$a({
14869
14869
  extensionId: pd.compat.extensionId,
14870
14870
  property: {
14871
14871
  default: {
14872
- ...((vf = pd.compat.property) == null ? void 0 : vf.default) || {},
14872
+ ...((xf = pd.compat.property) == null ? void 0 : xf.default) || {},
14873
14873
  ...nf.default || {}
14874
14874
  }
14875
14875
  }
@@ -14881,8 +14881,8 @@ function useHooks$a({
14881
14881
  return;
14882
14882
  pd.type === "simple" && ((wf = pd.data) != null && wf.value) && // If data isn't cachable, reuse layer id for performance.
14883
14883
  DATA_CACHE_KEYS.some((Nf) => {
14884
- var xf;
14885
- return !((xf = pd.data) != null && xf[Nf]);
14884
+ var vf;
14885
+ return !((vf = pd.data) != null && vf[Nf]);
14886
14886
  }) && Object.isExtensible(pd.data.value) && df.type === "simple" && ((Yf = df == null ? void 0 : df.data) != null && Yf.value) && (df.data.value.id = Xd);
14887
14887
  const Cf = { id: Xd, ...omit(df, "id", "type", "children") }, pf = lt.current, _f = pf.findIndex((Nf) => Nf.id === Xd), Pf = _f < 0 ? [...pf, Cf] : [
14888
14888
  ...pf.slice(0, _f),
@@ -19973,15 +19973,15 @@ function useHooks$9({
19973
19973
  Pf.current === "sketch" ? "default" : Pf.current
19974
19974
  ));
19975
19975
  }, [mt]);
19976
- const vf = useRef(mt);
19977
- vf.current = mt, useEffect(() => {
19976
+ const xf = useRef(mt);
19977
+ xf.current = mt, useEffect(() => {
19978
19978
  rp.current || s !== "sketch" && Af.current && Hf.current();
19979
19979
  }, [s, kt]);
19980
19980
  const wf = useRef([]), Yf = useCallback((rf) => {
19981
19981
  wf.current.push(rf);
19982
19982
  }, []), Nf = useRef(Yf);
19983
19983
  Nf.current = Yf;
19984
- const xf = useRef(void 0), Ff = useMemo(
19984
+ const vf = useRef(void 0), Ff = useMemo(
19985
19985
  () => Pe.context.catchedControlPointIndex,
19986
19986
  [Pe.context.catchedControlPointIndex]
19987
19987
  ), Uf = useMemo(
@@ -19993,7 +19993,7 @@ function useHooks$9({
19993
19993
  if (wf.current.forEach((bf) => {
19994
19994
  bf(z);
19995
19995
  }), z)
19996
- xf.current = z;
19996
+ vf.current = z;
19997
19997
  else {
19998
19998
  if (Wf.current) {
19999
19999
  Wf.current = !1;
@@ -20006,12 +20006,12 @@ function useHooks$9({
20006
20006
  }
20007
20007
  ]), setTimeout(() => {
20008
20008
  var bf, If, Xf;
20009
- xf.current && ((Xf = o.current) == null || Xf.selectFeatures([
20009
+ vf.current && ((Xf = o.current) == null || Xf.selectFeatures([
20010
20010
  {
20011
- layerId: (bf = xf.current) == null ? void 0 : bf.layerId,
20012
- featureId: [(If = xf.current) == null ? void 0 : If.feature.id]
20011
+ layerId: (bf = vf.current) == null ? void 0 : bf.layerId,
20012
+ featureId: [(If = vf.current) == null ? void 0 : If.feature.id]
20013
20013
  }
20014
- ])), xf.current = void 0;
20014
+ ])), vf.current = void 0;
20015
20015
  }, 50);
20016
20016
  }
20017
20017
  }, [o, z, wf]);
@@ -20582,7 +20582,7 @@ function Gt$1() {
20582
20582
  ref: !0,
20583
20583
  __self: !0,
20584
20584
  __source: !0
20585
- }, Hf, vf;
20585
+ }, Hf, xf;
20586
20586
  function wf(al) {
20587
20587
  if (Xd.call(al, "ref")) {
20588
20588
  var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
@@ -20602,7 +20602,7 @@ function Gt$1() {
20602
20602
  function Nf(al, tf) {
20603
20603
  typeof al.ref == "string" && Pf.current;
20604
20604
  }
20605
- function xf(al, tf) {
20605
+ function vf(al, tf) {
20606
20606
  {
20607
20607
  var lf = function() {
20608
20608
  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));
@@ -20616,7 +20616,7 @@ function Gt$1() {
20616
20616
  function Ff(al, tf) {
20617
20617
  {
20618
20618
  var lf = function() {
20619
- vf || (vf = !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));
20619
+ xf || (xf = !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));
20620
20620
  };
20621
20621
  lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
20622
20622
  get: lf,
@@ -20666,7 +20666,7 @@ function Gt$1() {
20666
20666
  }
20667
20667
  if (Vf || Gf) {
20668
20668
  var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
20669
- Vf && xf(Mf, Zf), Gf && Ff(Mf, Zf);
20669
+ Vf && vf(Mf, Zf), Gf && Ff(Mf, Zf);
20670
20670
  }
20671
20671
  return Uf(al, Vf, Gf, Lf, yf, Pf.current, Mf);
20672
20672
  }
@@ -41564,8 +41564,8 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41564
41564
  endPlaneNormalScratch
41565
41565
  );
41566
41566
  Af = Cartesian3.normalize(Af, Af);
41567
- const Hf = cf / ba, vf = uf / ba;
41568
- let wf = 0, Yf, Nf, xf, Ff = 0, Uf = 0;
41567
+ const Hf = cf / ba, xf = uf / ba;
41568
+ let wf = 0, Yf, Nf, vf, Ff = 0, Uf = 0;
41569
41569
  if (h) {
41570
41570
  wf = Cartesian3.distance(Xd, gd), Yf = EncodedCartesian3.fromCartesian(
41571
41571
  Xd,
@@ -41574,9 +41574,9 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41574
41574
  gd,
41575
41575
  Xd,
41576
41576
  forwardOffset2DScratch
41577
- ), xf = Cartesian3.normalize(Nf, right2DScratch);
41578
- const rf = xf.x;
41579
- xf.x = xf.y, xf.y = -rf, Ff = wf / La, Uf = ff / La;
41577
+ ), vf = Cartesian3.normalize(Nf, right2DScratch);
41578
+ const rf = vf.x;
41579
+ vf.x = vf.y, vf.y = -rf, Ff = wf / La, Uf = ff / La;
41580
41580
  }
41581
41581
  for (Sc = 0; Sc < 8; Sc++) {
41582
41582
  const rf = Nl + Sc * 4, bf = Xs + Sc * 2, If = rf + 3, Xf = Sc < 4 ? 1 : -1, jf = Sc === 2 || Sc === 3 || Sc === 6 || Sc === 7 ? 1 : -1;
@@ -41593,8 +41593,8 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
41593
41593
  kt,
41594
41594
  rf
41595
41595
  );
41596
- let np = vf * jf;
41597
- np === 0 && jf < 0 && (np = 9), kt[If] = np, h && (mn[rf] = Yf.high.x, mn[rf + 1] = Yf.high.y, mn[rf + 2] = Yf.low.x, mn[rf + 3] = Yf.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = Nf.x, pi[rf + 1] = Nf.y, pi[rf + 2] = xf.x, pi[rf + 3] = xf.y, Sa[bf] = Ff * Xf, np = Uf * jf, np === 0 && jf < 0 && (np = 9), Sa[bf + 1] = np);
41596
+ let np = xf * jf;
41597
+ np === 0 && jf < 0 && (np = 9), kt[If] = np, h && (mn[rf] = Yf.high.x, mn[rf + 1] = Yf.high.y, mn[rf + 2] = Yf.low.x, mn[rf + 3] = Yf.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = Nf.x, pi[rf + 1] = Nf.y, pi[rf + 2] = vf.x, pi[rf + 3] = vf.y, Sa[bf] = Ff * Xf, np = Uf * jf, np === 0 && jf < 0 && (np = 9), Sa[bf + 1] = np);
41598
41598
  }
41599
41599
  const Wf = adjustHeightStartBottomScratch, Qf = adjustHeightEndBottomScratch, ep = adjustHeightStartTopScratch, Bf = adjustHeightEndTopScratch, tp = Rectangle.fromCartographicArray(
41600
41600
  getHeightCartographics,
@@ -64336,7 +64336,15 @@ class JapanGSIOptimalBVmapLabelImageryProvider extends JapanGSIOptimalBVmapImage
64336
64336
  ), this.image))().catch(() => (this.discardedTileCoords.add(h), DiscardEmptyTileImagePolicy.EMPTY_IMAGE));
64337
64337
  }
64338
64338
  }
64339
- const tiles = {
64339
+ const PRESET_TILE_TYPES = [
64340
+ "default",
64341
+ "default_label",
64342
+ "default_road",
64343
+ "open_street_map",
64344
+ "black_marble",
64345
+ "japan_gsi_standard",
64346
+ "url"
64347
+ ], isValidPresetTileType = (t) => PRESET_TILE_TYPES.includes(t), tiles = {
64340
64348
  default: ({ cesiumIonAccessToken: t } = {}) => IonImageryProvider.fromAssetId(IonWorldImageryStyle.AERIAL, {
64341
64349
  accessToken: t
64342
64350
  }).catch(console.error),
@@ -64347,7 +64355,7 @@ const tiles = {
64347
64355
  accessToken: t
64348
64356
  }).catch(console.error),
64349
64357
  open_street_map: () => new OpenStreetMapImageryProvider({
64350
- url: "https://tile.openstreetmap.org/{zoom}/{x}/{y}.png",
64358
+ url: "https://tile.openstreetmap.org",
64351
64359
  credit: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
64352
64360
  }),
64353
64361
  black_marble: ({ cesiumIonAccessToken: t } = {}) => IonImageryProvider.fromAssetId(3812, {
@@ -64405,7 +64413,7 @@ function useImageryProviders({
64405
64413
  presets: o
64406
64414
  }) {
64407
64415
  const s = useCallback(
64408
- (F, N) => o[F.type || "default"]({
64416
+ (F, N) => o[isValidPresetTileType(F.type) ? F.type : "default"]({
64409
64417
  url: F.url,
64410
64418
  cesiumIonAccessToken: N,
64411
64419
  heatmap: F.heatmap,
@@ -66163,7 +66171,7 @@ const Up = class Up {
66163
66171
  Hp = new WeakMap(), // private constructor
66164
66172
  Jf(Up, Hp, !1);
66165
66173
  let Stack = Up;
66166
- var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f, vp, Ep, Cp, gp, Pp, yp, Gp, Dp, Ip, Lp, Xp, Sp, qp, ig, Wp, Np, _m, Tp, tg, lg, Zp, Yp, Om, Op, kp, Fp, zp, Am, rg, jp, qm, Kp, eg, ap, lp, Dm, ag, Bp, Qp;
66174
+ var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f, xp, Ep, Cp, gp, Pp, yp, Gp, Dp, Ip, Lp, Xp, Sp, qp, ig, Wp, Np, _m, Tp, tg, lg, Zp, Yp, Om, Op, kp, Fp, zp, Am, rg, jp, qm, Kp, eg, ap, lp, Dm, ag, Bp, Qp;
66167
66175
  const og = class og {
66168
66176
  constructor(n) {
66169
66177
  Jf(this, qp);
@@ -66250,7 +66258,7 @@ const og = class og {
66250
66258
  Jf(this, fp, void 0);
66251
66259
  Jf(this, sp, void 0);
66252
66260
  Jf(this, $f, void 0);
66253
- Jf(this, vp, void 0);
66261
+ Jf(this, xp, void 0);
66254
66262
  Jf(this, Ep, void 0);
66255
66263
  Jf(this, Cp, void 0);
66256
66264
  Jf(this, gp, void 0);
@@ -66294,7 +66302,7 @@ const og = class og {
66294
66302
  }
66295
66303
  if (nt !== void 0 && typeof nt != "function")
66296
66304
  throw new TypeError("fetchMethod must be a function if specified");
66297
- if (zf(this, $p, nt), zf(this, Xp, !!nt), zf(this, fp, /* @__PURE__ */ new Map()), zf(this, sp, new Array(o).fill(void 0)), zf(this, $f, new Array(o).fill(void 0)), zf(this, vp, new pi(o)), zf(this, Ep, new pi(o)), zf(this, Cp, 0), zf(this, gp, 0), zf(this, Pp, Stack.create(o)), zf(this, hp, 0), zf(this, Mp, 0), typeof S == "function" && zf(this, Vp, S), typeof P == "function" ? (zf(this, Rp, P), zf(this, yp, [])) : (zf(this, Rp, void 0), zf(this, yp, void 0)), zf(this, Lp, !!ef(this, Vp)), zf(this, Sp, !!ef(this, Rp)), this.noDisposeOnSet = !!L, this.noUpdateTTL = !!F, this.noDeleteOnFetchRejection = !!Pe, this.allowStaleOnFetchRejection = !!mt, this.allowStaleOnFetchAbort = !!kt, this.ignoreFetchAbort = !!mn, this.maxEntrySize !== 0) {
66305
+ if (zf(this, $p, nt), zf(this, Xp, !!nt), zf(this, fp, /* @__PURE__ */ new Map()), zf(this, sp, new Array(o).fill(void 0)), zf(this, $f, new Array(o).fill(void 0)), zf(this, xp, new pi(o)), zf(this, Ep, new pi(o)), zf(this, Cp, 0), zf(this, gp, 0), zf(this, Pp, Stack.create(o)), zf(this, hp, 0), zf(this, Mp, 0), typeof S == "function" && zf(this, Vp, S), typeof P == "function" ? (zf(this, Rp, P), zf(this, yp, [])) : (zf(this, Rp, void 0), zf(this, yp, void 0)), zf(this, Lp, !!ef(this, Vp)), zf(this, Sp, !!ef(this, Rp)), this.noDisposeOnSet = !!L, this.noUpdateTTL = !!F, this.noDeleteOnFetchRejection = !!Pe, this.allowStaleOnFetchRejection = !!mt, this.allowStaleOnFetchAbort = !!kt, this.ignoreFetchAbort = !!mn, this.maxEntrySize !== 0) {
66298
66306
  if (ef(this, _p) !== 0 && !isPosInt(ef(this, _p)))
66299
66307
  throw new TypeError("maxSize must be a positive integer if specified");
66300
66308
  if (!isPosInt(this.maxEntrySize))
@@ -66331,7 +66339,7 @@ const og = class og {
66331
66339
  keyMap: ef(n, fp),
66332
66340
  keyList: ef(n, sp),
66333
66341
  valList: ef(n, $f),
66334
- next: ef(n, vp),
66342
+ next: ef(n, xp),
66335
66343
  prev: ef(n, Ep),
66336
66344
  get head() {
66337
66345
  return ef(n, Cp);
@@ -66571,7 +66579,7 @@ const og = class og {
66571
66579
  return y && (y.set = "miss", y.maxEntrySizeExceeded = !0), this.delete(n), this;
66572
66580
  let L = ef(this, hp) === 0 ? void 0 : ef(this, fp).get(n);
66573
66581
  if (L === void 0)
66574
- L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? kf(this, jp, qm).call(this, !1) : ef(this, hp), ef(this, sp)[L] = n, ef(this, $f)[L] = o, ef(this, fp).set(n, L), ef(this, vp)[ef(this, gp)] = L, ef(this, Ep)[L] = ef(this, gp), zf(this, gp, L), jm(this, hp)._++, ef(this, Yp).call(this, L, P, y), y && (y.set = "add"), S = !1;
66582
+ L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? kf(this, jp, qm).call(this, !1) : ef(this, hp), ef(this, sp)[L] = n, ef(this, $f)[L] = o, ef(this, fp).set(n, L), ef(this, xp)[ef(this, gp)] = L, ef(this, Ep)[L] = ef(this, gp), zf(this, gp, L), jm(this, hp)._++, ef(this, Yp).call(this, L, P, y), y && (y.set = "add"), S = !1;
66575
66583
  else {
66576
66584
  kf(this, Bp, Qp).call(this, L);
66577
66585
  const W = ef(this, $f)[L];
@@ -66744,7 +66752,7 @@ const og = class og {
66744
66752
  else {
66745
66753
  ef(this, Zp).call(this, p);
66746
66754
  const y = ef(this, $f)[p];
66747
- kf(this, ap, lp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((s = ef(this, Vp)) == null || s.call(this, y, n, "delete")), ef(this, Sp) && ((c = ef(this, yp)) == null || c.push([y, n, "delete"]))), ef(this, fp).delete(n), ef(this, sp)[p] = void 0, ef(this, $f)[p] = void 0, p === ef(this, gp) ? zf(this, gp, ef(this, Ep)[p]) : p === ef(this, Cp) ? zf(this, Cp, ef(this, vp)[p]) : (ef(this, vp)[ef(this, Ep)[p]] = ef(this, vp)[p], ef(this, Ep)[ef(this, vp)[p]] = ef(this, Ep)[p]), jm(this, hp)._--, ef(this, Pp).push(p);
66755
+ kf(this, ap, lp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((s = ef(this, Vp)) == null || s.call(this, y, n, "delete")), ef(this, Sp) && ((c = ef(this, yp)) == null || c.push([y, n, "delete"]))), ef(this, fp).delete(n), ef(this, sp)[p] = void 0, ef(this, $f)[p] = void 0, p === ef(this, gp) ? zf(this, gp, ef(this, Ep)[p]) : p === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[p]) : (ef(this, xp)[ef(this, Ep)[p]] = ef(this, xp)[p], ef(this, Ep)[ef(this, xp)[p]] = ef(this, Ep)[p]), jm(this, hp)._--, ef(this, Pp).push(p);
66748
66756
  }
66749
66757
  }
66750
66758
  if (ef(this, Sp) && ((d = ef(this, yp)) != null && d.length)) {
@@ -66777,7 +66785,7 @@ const og = class og {
66777
66785
  }
66778
66786
  }
66779
66787
  };
66780
- wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(), hp = new WeakMap(), Mp = new WeakMap(), fp = new WeakMap(), sp = new WeakMap(), $f = new WeakMap(), vp = new WeakMap(), Ep = new WeakMap(), Cp = new WeakMap(), gp = new WeakMap(), Pp = new WeakMap(), yp = new WeakMap(), Gp = new WeakMap(), Dp = new WeakMap(), Ip = new WeakMap(), Lp = new WeakMap(), Xp = new WeakMap(), Sp = new WeakMap(), qp = new WeakSet(), ig = function() {
66788
+ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(), hp = new WeakMap(), Mp = new WeakMap(), fp = new WeakMap(), sp = new WeakMap(), $f = new WeakMap(), xp = new WeakMap(), Ep = new WeakMap(), Cp = new WeakMap(), gp = new WeakMap(), Pp = new WeakMap(), yp = new WeakMap(), Gp = new WeakMap(), Dp = new WeakMap(), Ip = new WeakMap(), Lp = new WeakMap(), Xp = new WeakMap(), Sp = new WeakMap(), qp = new WeakSet(), ig = function() {
66781
66789
  const n = new ZeroArray(ef(this, wp)), o = new ZeroArray(ef(this, wp));
66782
66790
  zf(this, Ip, n), zf(this, Dp, o), zf(this, _m, (d, h, p = perf.now()) => {
66783
66791
  if (o[d] = h !== 0 ? p : 0, n[d] = h, h !== 0 && this.ttlAutopurge) {
@@ -66839,13 +66847,13 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
66839
66847
  }, Fp = new WeakSet(), zp = function* ({ allowStale: n = this.allowStale } = {}) {
66840
66848
  if (ef(this, hp))
66841
66849
  for (let o = ef(this, Cp); !(!kf(this, Am, rg).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, gp))); )
66842
- o = ef(this, vp)[o];
66850
+ o = ef(this, xp)[o];
66843
66851
  }, Am = new WeakSet(), rg = function(n) {
66844
66852
  return n !== void 0 && ef(this, fp).get(ef(this, sp)[n]) === n;
66845
66853
  }, jp = new WeakSet(), qm = function(n) {
66846
66854
  var d, h;
66847
66855
  const o = ef(this, Cp), s = ef(this, sp)[o], c = ef(this, $f)[o];
66848
- return ef(this, Xp) && kf(this, ap, lp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((d = ef(this, Vp)) == null || d.call(this, c, s, "evict")), ef(this, Sp) && ((h = ef(this, yp)) == null || h.push([c, s, "evict"]))), ef(this, Zp).call(this, o), n && (ef(this, sp)[o] = void 0, ef(this, $f)[o] = void 0, ef(this, Pp).push(o)), ef(this, hp) === 1 ? (zf(this, Cp, zf(this, gp, 0)), ef(this, Pp).length = 0) : zf(this, Cp, ef(this, vp)[o]), ef(this, fp).delete(s), jm(this, hp)._--, o;
66856
+ return ef(this, Xp) && kf(this, ap, lp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((d = ef(this, Vp)) == null || d.call(this, c, s, "evict")), ef(this, Sp) && ((h = ef(this, yp)) == null || h.push([c, s, "evict"]))), ef(this, Zp).call(this, o), n && (ef(this, sp)[o] = void 0, ef(this, $f)[o] = void 0, ef(this, Pp).push(o)), ef(this, hp) === 1 ? (zf(this, Cp, zf(this, gp, 0)), ef(this, Pp).length = 0) : zf(this, Cp, ef(this, xp)[o]), ef(this, fp).delete(s), jm(this, hp)._--, o;
66849
66857
  }, Kp = new WeakSet(), eg = function(n, o, s, c) {
66850
66858
  const d = o === void 0 ? void 0 : ef(this, $f)[o];
66851
66859
  if (kf(this, ap, lp).call(this, d))
@@ -66890,9 +66898,9 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
66890
66898
  const o = n;
66891
66899
  return !!o && o instanceof Promise && o.hasOwnProperty("__staleWhileFetching") && o.__abortController instanceof AbortController;
66892
66900
  }, Dm = new WeakSet(), ag = function(n, o) {
66893
- ef(this, Ep)[o] = n, ef(this, vp)[n] = o;
66901
+ ef(this, Ep)[o] = n, ef(this, xp)[n] = o;
66894
66902
  }, Bp = new WeakSet(), Qp = function(n) {
66895
- n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, vp)[n]) : kf(this, Dm, ag).call(this, ef(this, Ep)[n], ef(this, vp)[n]), kf(this, Dm, ag).call(this, ef(this, gp), n), zf(this, gp, n));
66903
+ n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[n]) : kf(this, Dm, ag).call(this, ef(this, Ep)[n], ef(this, xp)[n]), kf(this, Dm, ag).call(this, ef(this, gp), n), zf(this, gp, n));
66896
66904
  };
66897
66905
  let LRUCache = og;
66898
66906
  const SIDE_PLANES = [
@@ -71695,24 +71703,24 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
71695
71703
  ), Xd = useMemo(() => {
71696
71704
  if (Wa)
71697
71705
  return Wa;
71698
- const vf = 15, wf = (of ? Ef : P) / 2 + vf, Yf = (of ? Sf : P) / 2 + vf;
71706
+ const xf = 15, wf = (of ? Ef : P) / 2 + xf, Yf = (of ? Sf : P) / 2 + xf;
71699
71707
  return new Cartesian2$1(
71700
71708
  se.includes("left") || se.includes("right") ? wf * (se.includes("left") ? -1 : 1) : 0,
71701
71709
  se.includes("top") || se.includes("bottom") ? Yf * (se.includes("top") ? -1 : 1) : 0
71702
71710
  );
71703
71711
  }, [of, Ef, P, Sf, se, Wa]), gd = useMemo(() => Color$3.WHITE.withAlpha(0.4), []), pd = useRef(null), Zd = getTag((Hf = pd.current) == null ? void 0 : Hf.cesiumElement), cf = useMemo(
71704
71712
  () => {
71705
- var vf, wf;
71713
+ var xf, wf;
71706
71714
  return toColor$1(
71707
- Zd != null && Zd.isFeatureSelected && typeof ((vf = c == null ? void 0 : c.marker) == null ? void 0 : vf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : ma
71715
+ Zd != null && Zd.isFeatureSelected && typeof ((xf = c == null ? void 0 : c.marker) == null ? void 0 : xf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : ma
71708
71716
  );
71709
71717
  },
71710
71718
  [ma, c, Zd == null ? void 0 : Zd.isFeatureSelected]
71711
71719
  ), sf = useMemo(
71712
71720
  () => {
71713
- var vf, wf;
71721
+ var xf, wf;
71714
71722
  return toColor$1(
71715
- Zd != null && Zd.isFeatureSelected && typeof ((vf = c == null ? void 0 : c.marker) == null ? void 0 : vf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : F
71723
+ Zd != null && Zd.isFeatureSelected && typeof ((xf = c == null ? void 0 : c.marker) == null ? void 0 : xf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : F
71716
71724
  );
71717
71725
  },
71718
71726
  [F, c, Zd == null ? void 0 : Zd.isFeatureSelected]
@@ -82606,7 +82614,7 @@ const useDrawClipping = ({
82606
82614
  onComputedFeatureFetch: y,
82607
82615
  onLayerFetch: S
82608
82616
  }) => {
82609
- var Af, Hf, vf, wf, Yf, Nf;
82617
+ var Af, Hf, xf, wf, Yf, Nf;
82610
82618
  const { viewer: P } = $e$1(), L = useRef(), { onLayerLoad: F, updateCredits: N } = useContext(), z = useRef(d == null ? void 0 : d.id);
82611
82619
  z.current = d == null ? void 0 : d.id;
82612
82620
  const {
@@ -82632,8 +82640,8 @@ const useDrawClipping = ({
82632
82640
  builtinBoxProps: Sc,
82633
82641
  allowEnterGround: ms
82634
82642
  } = useClippingBox({ clipping: mt, boxId: n }), [Xs, yu] = useState(), { url: Nl, type: pu, idProperty: Ru, googleMapApiKey: Vd } = useData(d), Gd = !mn && !!Ru, [uf, ff] = useState(!1), mf = useRef(lt), hf = useMemo(() => {
82635
- var xf, Ff;
82636
- return (!((xf = mf.current) != null && xf.length) || !((Ff = mf.current) != null && Ff.every(
82643
+ var vf, Ff;
82644
+ return (!((vf = mf.current) != null && vf.length) || !((Ff = mf.current) != null && Ff.every(
82637
82645
  (Uf, Wf) => {
82638
82646
  var Qf, ep, Bf, tp, qf, ip;
82639
82647
  return ((Qf = Uf.normal) == null ? void 0 : Qf.x) === ((ep = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : ep.x) && ((Bf = Uf.normal) == null ? void 0 : Bf.y) === ((tp = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : tp.y) && ((qf = Uf.normal) == null ? void 0 : qf.z) === ((ip = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : ip.z) && Uf.distance === (lt == null ? void 0 : lt[Wf].distance);
@@ -82642,11 +82650,11 @@ const useDrawClipping = ({
82642
82650
  }, [lt]), of = ba === "inside" ? -1 : 1, [gf, Ef] = useState(
82643
82651
  () => new ClippingPlaneCollection({
82644
82652
  planes: hf == null ? void 0 : hf.map(
82645
- (xf) => {
82653
+ (vf) => {
82646
82654
  var Ff, Uf, Wf;
82647
82655
  return new ClippingPlane(
82648
- new Cartesian3$1((Ff = xf.normal) == null ? void 0 : Ff.x, (Uf = xf.normal) == null ? void 0 : Uf.y, (Wf = xf.normal) == null ? void 0 : Wf.z),
82649
- (xf.distance || 0) * of
82656
+ new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
82657
+ (vf.distance || 0) * of
82650
82658
  );
82651
82659
  }
82652
82660
  ),
@@ -82660,11 +82668,11 @@ const useDrawClipping = ({
82660
82668
  Ef(
82661
82669
  new ClippingPlaneCollection({
82662
82670
  planes: hf == null ? void 0 : hf.map(
82663
- (xf) => {
82671
+ (vf) => {
82664
82672
  var Ff, Uf, Wf;
82665
82673
  return new ClippingPlane(
82666
- new Cartesian3$1((Ff = xf.normal) == null ? void 0 : Ff.x, (Uf = xf.normal) == null ? void 0 : Uf.y, (Wf = xf.normal) == null ? void 0 : Wf.z),
82667
- (xf.distance || 0) * of
82674
+ new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
82675
+ (vf.distance || 0) * of
82668
82676
  );
82669
82677
  }
82670
82678
  ),
@@ -82684,12 +82692,12 @@ const useDrawClipping = ({
82684
82692
  clippingPlanes: gf,
82685
82693
  isTilesetReady: uf
82686
82694
  }), [af] = useState(() => new TilesetFeatureIndex()), Xd = useCallback(
82687
- (xf) => {
82688
- xf != null && xf.cesiumElement && attachTag(xf.cesiumElement, {
82695
+ (vf) => {
82696
+ vf != null && vf.cesiumElement && attachTag(vf.cesiumElement, {
82689
82697
  layerId: (d == null ? void 0 : d.id) || t,
82690
82698
  featureIndex: Gd ? af : void 0,
82691
82699
  appearanceType: "3dtiles"
82692
- }), d != null && d.id && (xf != null && xf.cesiumElement) && ((xf == null ? void 0 : xf.cesiumElement)[layerIdField] = d.id), L.current = xf == null ? void 0 : xf.cesiumElement;
82700
+ }), d != null && d.id && (vf != null && vf.cesiumElement) && ((vf == null ? void 0 : vf.cesiumElement)[layerIdField] = d.id), L.current = vf == null ? void 0 : vf.cesiumElement;
82693
82701
  },
82694
82702
  [t, d == null ? void 0 : d.id, af, Gd]
82695
82703
  ), gd = useRef([]), pd = useRef(kt);
@@ -82697,15 +82705,15 @@ const useDrawClipping = ({
82697
82705
  const [Zd] = useState(() => /* @__PURE__ */ new Map());
82698
82706
  useEffect(() => {
82699
82707
  !L.current || !Gd || !uf || Object.assign(L.current, {
82700
- onSelectFeature: (xf) => {
82701
- const Ff = getTag(xf);
82702
- Ff != null && Ff.featureId && (gd.current.push(Ff.featureId), Zd.set(Ff.featureId, xf.color)), pd.current && (xf.color = toColor(pd.current) ?? xf.color);
82708
+ onSelectFeature: (vf) => {
82709
+ const Ff = getTag(vf);
82710
+ Ff != null && Ff.featureId && (gd.current.push(Ff.featureId), Zd.set(Ff.featureId, vf.color)), pd.current && (vf.color = toColor(pd.current) ?? vf.color);
82703
82711
  },
82704
- onUnselectFeature: (xf) => {
82705
- const Ff = getTag(xf);
82712
+ onUnselectFeature: (vf) => {
82713
+ const Ff = getTag(vf);
82706
82714
  Ff != null && Ff.featureId && (gd.current = gd.current.filter(
82707
82715
  (Uf) => Uf !== Ff.featureId
82708
- )), xf.color = Zd.get((Ff == null ? void 0 : Ff.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
82716
+ )), vf.color = Zd.get((Ff == null ? void 0 : Ff.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
82709
82717
  }
82710
82718
  });
82711
82719
  }, [Zd, af, Gd, uf]), useFeature({
@@ -82722,8 +82730,8 @@ const useDrawClipping = ({
82722
82730
  isTilesetReady: uf
82723
82731
  });
82724
82732
  const [cf, sf] = useState(0), nf = useRef(!1), df = useCallback(
82725
- (xf) => {
82726
- nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene, xf).then((Ff) => {
82733
+ (vf) => {
82734
+ nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene, vf).then((Ff) => {
82727
82735
  sf(Ff ?? 0), nf.current = !1;
82728
82736
  }));
82729
82737
  },
@@ -82732,7 +82740,7 @@ const useDrawClipping = ({
82732
82740
  useEffect(() => {
82733
82741
  if (mt != null && mt.draw)
82734
82742
  return;
82735
- const xf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Ff = Cartesian3$1.fromDegrees((xf == null ? void 0 : xf[0]) || 0, (xf == null ? void 0 : xf[1]) || 0, (xf == null ? void 0 : xf[2]) || 0);
82743
+ const vf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Ff = Cartesian3$1.fromDegrees((vf == null ? void 0 : vf[0]) || 0, (vf == null ? void 0 : vf[1]) || 0, (vf == null ? void 0 : vf[2]) || 0);
82736
82744
  (async () => {
82737
82745
  if (!L.current || !uf)
82738
82746
  return;
@@ -82769,12 +82777,12 @@ const useDrawClipping = ({
82769
82777
  mt != null && mt.draw || (gf.unionClippingRegions = ba === "outside");
82770
82778
  }, [gf, ba, mt == null ? void 0 : mt.draw]), useEffect(() => {
82771
82779
  mt != null && mt.draw || (gf.removeAll(), hf == null || hf.forEach(
82772
- (xf) => {
82780
+ (vf) => {
82773
82781
  var Ff, Uf, Wf;
82774
82782
  return gf.add(
82775
82783
  new ClippingPlane(
82776
- new Cartesian3$1((Ff = xf.normal) == null ? void 0 : Ff.x, (Uf = xf.normal) == null ? void 0 : Uf.y, (Wf = xf.normal) == null ? void 0 : Wf.z),
82777
- (xf.distance || 0) * of
82784
+ new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
82785
+ (vf.distance || 0) * of
82778
82786
  )
82779
82787
  );
82780
82788
  }
@@ -82785,8 +82793,8 @@ const useDrawClipping = ({
82785
82793
  return;
82786
82794
  }
82787
82795
  (async () => {
82788
- const xf = await fetch(nt);
82789
- xf.ok && yu(new Cesium3DTileStyle(await xf.json()));
82796
+ const vf = await fetch(nt);
82797
+ vf.ok && yu(new Cesium3DTileStyle(await vf.json()));
82790
82798
  })();
82791
82799
  }, [nt]);
82792
82800
  const Cf = useMemo(() => pu !== "google-photorealistic" || !o ? null : (async () => {
@@ -82803,21 +82811,21 @@ const useDrawClipping = ({
82803
82811
  var Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf;
82804
82812
  if (!(s != null && s.specularEnvironmentMaps) && !(s != null && s.sphericalHarmonicCoefficients) && !((ep = (Qf = c == null ? void 0 : c.scene) == null ? void 0 : Qf.imageBasedLighting) != null && ep.specularEnvironmentMaps) && !((tp = (Bf = c == null ? void 0 : c.scene) == null ? void 0 : Bf.imageBasedLighting) != null && tp.sphericalHarmonicCoefficients))
82805
82813
  return;
82806
- const xf = new ImageBasedLighting(), Ff = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((ip = (qf = c == null ? void 0 : c.scene) == null ? void 0 : qf.imageBasedLighting) == null ? void 0 : ip.specularEnvironmentMaps), Uf = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Tf = (rp = c == null ? void 0 : c.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : Tf.intensity), Wf = arrayToCartecian3(
82814
+ const vf = new ImageBasedLighting(), Ff = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((ip = (qf = c == null ? void 0 : c.scene) == null ? void 0 : qf.imageBasedLighting) == null ? void 0 : ip.specularEnvironmentMaps), Uf = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Tf = (rp = c == null ? void 0 : c.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : Tf.intensity), Wf = arrayToCartecian3(
82807
82815
  (s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((bf = (rf = c == null ? void 0 : c.scene) == null ? void 0 : rf.imageBasedLighting) == null ? void 0 : bf.sphericalHarmonicCoefficients),
82808
82816
  Uf
82809
82817
  );
82810
- return Ff && (xf.specularEnvironmentMaps = Ff), Wf && (xf.sphericalHarmonicCoefficients = Wf), xf;
82818
+ return Ff && (vf.specularEnvironmentMaps = Ff), Wf && (vf.sphericalHarmonicCoefficients = Wf), vf;
82811
82819
  }, [
82812
82820
  s == null ? void 0 : s.specularEnvironmentMaps,
82813
82821
  s == null ? void 0 : s.sphericalHarmonicCoefficients,
82814
82822
  s == null ? void 0 : s.imageBasedLightIntensity,
82815
82823
  (Hf = (Af = c == null ? void 0 : c.scene) == null ? void 0 : Af.imageBasedLighting) == null ? void 0 : Hf.specularEnvironmentMaps,
82816
- (wf = (vf = c == null ? void 0 : c.scene) == null ? void 0 : vf.imageBasedLighting) == null ? void 0 : wf.sphericalHarmonicCoefficients,
82824
+ (wf = (xf = c == null ? void 0 : c.scene) == null ? void 0 : xf.imageBasedLighting) == null ? void 0 : wf.sphericalHarmonicCoefficients,
82817
82825
  (Nf = (Yf = c == null ? void 0 : c.scene) == null ? void 0 : Yf.imageBasedLighting) == null ? void 0 : Nf.intensity
82818
82826
  ]), Pf = useCallback(
82819
- (xf) => {
82820
- ff(!0), S == null || S({ properties: xf.properties }), F == null || F({ layerId: z.current });
82827
+ (vf) => {
82828
+ ff(!0), S == null || S({ properties: vf.properties }), F == null || F({ layerId: z.current });
82821
82829
  },
82822
82830
  [S, F]
82823
82831
  );
@@ -84875,7 +84883,7 @@ const useIBL = ({
84875
84883
  onMount: fa,
84876
84884
  onCreditsUpdate: La
84877
84885
  }) => {
84878
- var sf, nf, df, Cf, pf, _f, Pf, Af, Hf, vf, wf, Yf, Nf, xf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp;
84886
+ var sf, nf, df, Cf, pf, _f, Pf, Af, Hf, xf, wf, Yf, Nf, vf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp;
84879
84887
  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({
84880
84888
  cesium: Ra,
84881
84889
  engineAPI: yt,
@@ -84917,7 +84925,7 @@ const useIBL = ({
84917
84925
  (df = (nf = (sf = n == null ? void 0 : n.scene) == null ? void 0 : sf.shadow) == null ? void 0 : nf.shadowMap) == null ? void 0 : df.softShadows,
84918
84926
  (_f = (pf = (Cf = n == null ? void 0 : n.scene) == null ? void 0 : Cf.shadow) == null ? void 0 : pf.shadowMap) == null ? void 0 : _f.darkness,
84919
84927
  (Hf = (Af = (Pf = n == null ? void 0 : n.scene) == null ? void 0 : Pf.shadow) == null ? void 0 : Af.shadowMap) == null ? void 0 : Hf.size,
84920
- (Yf = (wf = (vf = n == null ? void 0 : n.scene) == null ? void 0 : vf.shadow) == null ? void 0 : wf.shadowMap) == null ? void 0 : Yf.maximumDistance
84928
+ (Yf = (wf = (xf = n == null ? void 0 : n.scene) == null ? void 0 : xf.shadow) == null ? void 0 : wf.shadowMap) == null ? void 0 : Yf.maximumDistance
84921
84929
  ]);
84922
84930
  const _i = useRef(), ba = useRef();
84923
84931
  useEffect(() => {
@@ -85003,7 +85011,7 @@ const useIBL = ({
85003
85011
  ) : void 0;
85004
85012
  },
85005
85013
  [
85006
- (xf = (Nf = n == null ? void 0 : n.scene) == null ? void 0 : Nf.imageBasedLighting) == null ? void 0 : xf.sphericalHarmonicCoefficients,
85014
+ (vf = (Nf = n == null ? void 0 : n.scene) == null ? void 0 : Nf.imageBasedLighting) == null ? void 0 : vf.sphericalHarmonicCoefficients,
85007
85015
  (Uf = (Ff = n == null ? void 0 : n.scene) == null ? void 0 : Ff.imageBasedLighting) == null ? void 0 : Uf.intensity
85008
85016
  ]
85009
85017
  );
@@ -91122,7 +91130,7 @@ const Cesium = ({
91122
91130
  onLayerLoad: lt,
91123
91131
  onCreditsUpdate: _i
91124
91132
  }, ba) => {
91125
- var gd, pd, Zd, cf, sf, nf, df, Cf, pf, _f, Pf, Af, Hf, vf, wf, Yf, Nf, xf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If, Xf, jf, np, up, dp, pp, mp, al, tf, lf;
91133
+ var gd, pd, Zd, cf, sf, nf, df, Cf, pf, _f, Pf, Af, Hf, xf, wf, Yf, Nf, vf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If, Xf, jf, np, up, dp, pp, mp, al, tf, lf;
91126
91134
  const {
91127
91135
  cesium: Sc,
91128
91136
  mouseEventHandles: ms,
@@ -91320,12 +91328,12 @@ const Cesium = ({
91320
91328
  msaaSamples: Vd,
91321
91329
  useDepthPicking: !1,
91322
91330
  useWebVR: !!((Hf = o == null ? void 0 : o.scene) != null && Hf.vr) || void 0,
91323
- debugShowFramesPerSecond: !!((vf = o == null ? void 0 : o.debug) != null && vf.showFramesPerSecond),
91331
+ debugShowFramesPerSecond: !!((xf = o == null ? void 0 : o.debug) != null && xf.showFramesPerSecond),
91324
91332
  verticalExaggerationRelativeHeight: (wf = o == null ? void 0 : o.scene) == null ? void 0 : wf.verticalExaggerationRelativeHeight,
91325
91333
  verticalExaggeration: (Yf = o == null ? void 0 : o.scene) == null ? void 0 : Yf.verticalExaggeration
91326
91334
  }
91327
91335
  ),
91328
- /* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((xf = (Nf = o == null ? void 0 : o.sky) == null ? void 0 : Nf.skyBox) == null ? void 0 : xf.show) ?? !0 }),
91336
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((vf = (Nf = o == null ? void 0 : o.sky) == null ? void 0 : Nf.skyBox) == null ? void 0 : vf.show) ?? !0 }),
91329
91337
  /* @__PURE__ */ jsxRuntimeExports.jsx(Vs, { enabled: ((Uf = (Ff = o == null ? void 0 : o.sky) == null ? void 0 : Ff.fog) == null ? void 0 : Uf.enabled) ?? !0, density: (Qf = (Wf = o == null ? void 0 : o.sky) == null ? void 0 : Wf.fog) == null ? void 0 : Qf.density }),
91330
91338
  /* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((Bf = (ep = o == null ? void 0 : o.sky) == null ? void 0 : ep.sun) == null ? void 0 : Bf.show) ?? !0 }),
91331
91339
  /* @__PURE__ */ jsxRuntimeExports.jsx(ea, { show: ((qf = (tp = o == null ? void 0 : o.sky) == null ? void 0 : tp.moon) == null ? void 0 : qf.show) ?? !0 }),
@@ -91375,7 +91383,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
91375
91383
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
91376
91384
  ] });
91377
91385
  }
91378
- const version = "0.0.7-alpha.41", useCoreAPI = ({ viewerProperty: t }) => {
91386
+ const version = "0.0.7-alpha.43", useCoreAPI = ({ viewerProperty: t }) => {
91379
91387
  const n = useRef(t);
91380
91388
  n.current = t;
91381
91389
  const o = useMemo(
@@ -91444,94 +91452,94 @@ function useHooks({
91444
91452
  const F = useRef(null), N = useViewport({
91445
91453
  wrapperRef: F
91446
91454
  }), [z, W] = useState({}), [nt, Pe] = useState(), [se, mt] = useState(), kt = useCallback(
91447
- async (vf, wf, Yf, Nf, xf) => {
91455
+ async (xf, wf, Yf, Nf, vf) => {
91448
91456
  var Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If;
91449
91457
  const Ff = ((Qf = z.layer) == null ? void 0 : Qf.layer.type) === "simple" && ((tp = (Bf = (ep = z.layer) == null ? void 0 : ep.layer) == null ? void 0 : Bf.data) == null ? void 0 : tp.isSketchLayer);
91450
- if (z.layerId === vf && z.featureId === wf && !Ff)
91458
+ if (z.layerId === xf && z.featureId === wf && !Ff)
91451
91459
  return;
91452
- const Uf = await (Yf == null ? void 0 : Yf()), Wf = vf && wf ? (Ff ? (qf = Uf == null ? void 0 : Uf.features) == null ? void 0 : qf.find((Xf) => Xf.id === wf) : (Tf = (ip = L.current) == null ? void 0 : (rp = ip.engine).findComputedFeatureById) == null ? void 0 : Tf.call(rp, vf, wf)) ?? (xf == null ? void 0 : xf.feature) : void 0;
91460
+ const Uf = await (Yf == null ? void 0 : Yf()), Wf = xf && wf ? (Ff ? (qf = Uf == null ? void 0 : Uf.features) == null ? void 0 : qf.find((Xf) => Xf.id === wf) : (Tf = (ip = L.current) == null ? void 0 : (rp = ip.engine).findComputedFeatureById) == null ? void 0 : Tf.call(rp, xf, wf)) ?? (vf == null ? void 0 : vf.feature) : void 0;
91453
91461
  Pe(
91454
- vf && wf ? (If = (rf = L.current) == null ? void 0 : (bf = rf.engine).findFeatureById) == null ? void 0 : If.call(bf, vf, wf) : void 0
91462
+ xf && wf ? (If = (rf = L.current) == null ? void 0 : (bf = rf.engine).findFeatureById) == null ? void 0 : If.call(bf, xf, wf) : void 0
91455
91463
  ), mt(Wf), W(
91456
- (Xf) => Xf.layerId === vf && Xf.featureId === wf ? Xf : { layerId: vf, featureId: wf, layer: Uf, reason: Nf }
91457
- ), c == null || c(vf, Yf, Wf, Nf);
91464
+ (Xf) => Xf.layerId === xf && Xf.featureId === wf ? Xf : { layerId: xf, featureId: wf, layer: Uf, reason: Nf }
91465
+ ), c == null || c(xf, Yf, Wf, Nf);
91458
91466
  },
91459
91467
  [z, c]
91460
- ), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((vf) => {
91461
- fa(!!vf);
91468
+ ), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((xf) => {
91469
+ fa(!!xf);
91462
91470
  }, []), [Ra, ma] = useValue(
91463
91471
  n || "default",
91464
91472
  h
91465
91473
  );
91466
91474
  useEffect(() => {
91467
- var vf, wf;
91468
- Ra === "default" && ((wf = (vf = L == null ? void 0 : L.current) == null ? void 0 : vf.engine) == null || wf.setCursor("auto"));
91475
+ var xf, wf;
91476
+ Ra === "default" && ((wf = (xf = L == null ? void 0 : L.current) == null ? void 0 : xf.engine) == null || wf.setCursor("auto"));
91469
91477
  }, [Ra]);
91470
- const yt = INTERACTION_MODES[Ra ?? "default"], lt = useRef(), _i = useCallback((vf) => {
91471
- lt.current = vf;
91472
- }, []), ba = useCallback((vf) => {
91478
+ const yt = INTERACTION_MODES[Ra ?? "default"], lt = useRef(), _i = useCallback((xf) => {
91479
+ lt.current = xf;
91480
+ }, []), ba = useCallback((xf) => {
91473
91481
  var wf;
91474
- (wf = lt.current) == null || wf.call(lt, vf);
91475
- }, []), Sc = useRef(), ms = useCallback((vf) => {
91476
- Sc.current = vf;
91477
- }, []), Xs = useCallback((vf) => {
91482
+ (wf = lt.current) == null || wf.call(lt, xf);
91483
+ }, []), Sc = useRef(), ms = useCallback((xf) => {
91484
+ Sc.current = xf;
91485
+ }, []), Xs = useCallback((xf) => {
91478
91486
  var wf;
91479
- (wf = Sc.current) == null || wf.call(Sc, vf);
91480
- }, []), yu = useRef(), Nl = useCallback((vf) => {
91481
- yu.current = vf;
91482
- }, []), pu = useCallback((vf) => {
91487
+ (wf = Sc.current) == null || wf.call(Sc, xf);
91488
+ }, []), yu = useRef(), Nl = useCallback((xf) => {
91489
+ yu.current = xf;
91490
+ }, []), pu = useCallback((xf) => {
91483
91491
  var wf;
91484
- (wf = yu.current) == null || wf.call(yu, vf);
91485
- }, []), Ru = useRef(), Vd = useCallback((vf) => {
91486
- Ru.current = vf;
91487
- }, []), Gd = useCallback((vf) => {
91492
+ (wf = yu.current) == null || wf.call(yu, xf);
91493
+ }, []), Ru = useRef(), Vd = useCallback((xf) => {
91494
+ Ru.current = xf;
91495
+ }, []), Gd = useCallback((xf) => {
91488
91496
  var wf;
91489
- (wf = Ru.current) == null || wf.call(Ru, vf);
91490
- }, []), uf = useRef(), ff = useCallback((vf) => {
91491
- uf.current = vf;
91492
- }, []), mf = useCallback((vf) => {
91497
+ (wf = Ru.current) == null || wf.call(Ru, xf);
91498
+ }, []), uf = useRef(), ff = useCallback((xf) => {
91499
+ uf.current = xf;
91500
+ }, []), mf = useCallback((xf) => {
91493
91501
  var wf;
91494
- (wf = uf.current) == null || wf.call(uf, vf);
91495
- }, []), hf = useRef(), of = useCallback((vf) => {
91496
- hf.current = vf;
91497
- }, []), gf = useCallback((vf) => {
91502
+ (wf = uf.current) == null || wf.call(uf, xf);
91503
+ }, []), hf = useRef(), of = useCallback((xf) => {
91504
+ hf.current = xf;
91505
+ }, []), gf = useCallback((xf) => {
91498
91506
  var wf;
91499
- (wf = hf.current) == null || wf.call(hf, vf);
91500
- }, []), Ef = useRef([]), Sf = useCallback((vf) => {
91501
- Ef.current.push(vf);
91502
- }, []), Wa = useCallback((vf) => {
91503
- Ef.current.forEach((wf) => wf(vf));
91504
- }, []), af = useRef([]), Xd = useCallback((vf) => {
91505
- af.current.push(vf);
91506
- }, []), gd = useCallback((vf) => {
91507
- af.current.forEach((wf) => wf(vf));
91508
- }, []), pd = useRef([]), Zd = useCallback((vf) => {
91509
- pd.current.push(vf);
91507
+ (wf = hf.current) == null || wf.call(hf, xf);
91508
+ }, []), Ef = useRef([]), Sf = useCallback((xf) => {
91509
+ Ef.current.push(xf);
91510
+ }, []), Wa = useCallback((xf) => {
91511
+ Ef.current.forEach((wf) => wf(xf));
91512
+ }, []), af = useRef([]), Xd = useCallback((xf) => {
91513
+ af.current.push(xf);
91514
+ }, []), gd = useCallback((xf) => {
91515
+ af.current.forEach((wf) => wf(xf));
91516
+ }, []), pd = useRef([]), Zd = useCallback((xf) => {
91517
+ pd.current.push(xf);
91510
91518
  }, []), cf = useCallback(
91511
- (vf) => {
91512
- pd.current.forEach((wf) => wf(vf));
91519
+ (xf) => {
91520
+ pd.current.forEach((wf) => wf(xf));
91513
91521
  },
91514
91522
  []
91515
- ), sf = useRef([]), nf = useCallback((vf) => {
91516
- sf.current.push(vf);
91523
+ ), sf = useRef([]), nf = useCallback((xf) => {
91524
+ sf.current.push(xf);
91517
91525
  }, []), df = useCallback(
91518
- (vf, wf) => {
91519
- sf.current.forEach((Yf) => Yf(vf)), S == null || S(vf, wf);
91526
+ (xf, wf) => {
91527
+ sf.current.forEach((Yf) => Yf(xf)), S == null || S(xf, wf);
91520
91528
  },
91521
91529
  [S]
91522
91530
  );
91523
91531
  useEffect(() => {
91524
- var vf, wf;
91525
- o && ((wf = (vf = L.current) == null ? void 0 : vf.engine) == null || wf.lookAtLayer(o), p == null || p(void 0));
91532
+ var xf, wf;
91533
+ o && ((wf = (xf = L.current) == null ? void 0 : xf.engine) == null || wf.lookAtLayer(o), p == null || p(void 0));
91526
91534
  }, [o, p]);
91527
91535
  const [Cf, pf] = useState(!1), _f = useCallback(() => {
91528
91536
  pf(!0);
91529
91537
  }, []), Pf = useCallback(
91530
- (vf, wf, Yf) => {
91538
+ (xf, wf, Yf) => {
91531
91539
  var Ff;
91532
91540
  pf(!1);
91533
- const Nf = (Ff = L.current) == null ? void 0 : Ff.layers.findById(vf), xf = Nf != null && Nf.property.default.location ? "default.location" : Nf != null && Nf.property.default.position ? "default.position" : void 0;
91534
- Yf && Nf && Nf.propertyId && xf && (y == null || y(Nf.propertyId, xf, Yf));
91541
+ const Nf = (Ff = L.current) == null ? void 0 : Ff.layers.findById(xf), vf = Nf != null && Nf.property.default.location ? "default.location" : Nf != null && Nf.property.default.position ? "default.position" : void 0;
91542
+ Yf && Nf && Nf.propertyId && vf && (y == null || y(Nf.propertyId, vf, Yf));
91535
91543
  },
91536
91544
  [y, L]
91537
91545
  ), Af = useMemo(