@reearth/core 0.0.7-alpha.29 → 0.0.7-alpha.30

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
@@ -1,22 +1,22 @@
1
- var lg = Object.defineProperty;
2
- var ug = (t, n, o) => n in t ? lg(t, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[n] = o;
3
- var Ef = (t, n, o) => (ug(t, typeof n != "symbol" ? n + "" : n, o), o), eg = (t, n, o) => {
1
+ var ug = Object.defineProperty;
2
+ var dg = (t, n, o) => n in t ? ug(t, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[n] = o;
3
+ var Ef = (t, n, o) => (dg(t, typeof n != "symbol" ? n + "" : n, o), o), ng = (t, n, o) => {
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)), Kf = (t, n, o) => {
7
+ var ef = (t, n, o) => (ng(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);
11
- }, zf = (t, n, o, s) => (eg(t, n, "write to private field"), s ? s.call(t, o) : n.set(t, o), o);
12
- var Dm = (t, n, o, s) => ({
11
+ }, zf = (t, n, o, s) => (ng(t, n, "write to private field"), s ? s.call(t, o) : n.set(t, o), o);
12
+ var jm = (t, n, o, s) => ({
13
13
  set _(c) {
14
14
  zf(t, n, c, o);
15
15
  },
16
16
  get _() {
17
17
  return ef(t, n, s);
18
18
  }
19
- }), Nf = (t, n, o) => (eg(t, n, "access private method"), o);
19
+ }), Nf = (t, n, o) => (ng(t, n, "access private method"), o);
20
20
  import * as React from "react";
21
21
  import React__default, { useRef, useCallback, useState, useEffect, useMemo, useImperativeHandle, useContext as useContext$1, useReducer, useDebugValue, createContext, useLayoutEffect, forwardRef, memo as memo$1, Component as Component$1, isValidElement, createElement, Suspense, useInsertionEffect, Fragment, useId } from "react";
22
22
  import * as Cesium$1 from "cesium";
@@ -263,29 +263,29 @@ function requireReactJsxRuntime_development() {
263
263
  }), typeof Reflect == "object" && Reflect.construct) {
264
264
  try {
265
265
  Reflect.construct(Tf, []);
266
- } catch (lp) {
267
- yf = lp;
266
+ } catch (sp) {
267
+ yf = sp;
268
268
  }
269
269
  Reflect.construct(al, [], Tf);
270
270
  } else {
271
271
  try {
272
272
  Tf.call();
273
- } catch (lp) {
274
- yf = lp;
273
+ } catch (sp) {
274
+ yf = sp;
275
275
  }
276
276
  al.call(Tf.prototype);
277
277
  }
278
278
  } else {
279
279
  try {
280
280
  throw Error();
281
- } catch (lp) {
282
- yf = lp;
281
+ } catch (sp) {
282
+ yf = sp;
283
283
  }
284
284
  al();
285
285
  }
286
- } catch (lp) {
287
- if (lp && yf && typeof lp.stack == "string") {
288
- for (var Mf = lp.stack.split(`
286
+ } catch (sp) {
287
+ if (sp && yf && typeof sp.stack == "string") {
288
+ for (var Mf = sp.stack.split(`
289
289
  `), Af = yf.stack.split(`
290
290
  `), Gf = Mf.length - 1, Xf = Af.length - 1; Gf >= 1 && Xf >= 0 && Mf[Gf] !== Af[Xf]; )
291
291
  Xf--;
@@ -305,8 +305,8 @@ function requireReactJsxRuntime_development() {
305
305
  } finally {
306
306
  hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
307
307
  }
308
- var bp = al ? al.displayName || al.name : "", dp = bp ? gf(bp) : "";
309
- return typeof al == "function" && mf.set(al, dp), dp;
308
+ var bp = al ? al.displayName || al.name : "", lp = bp ? gf(bp) : "";
309
+ return typeof al == "function" && mf.set(al, lp), lp;
310
310
  }
311
311
  function Rf(al, tf, lf) {
312
312
  return Vf(al, !1);
@@ -632,10 +632,10 @@ Check the top-level render call using <` + lf + ">.");
632
632
  function ap(al, tf, lf) {
633
633
  return ep(al, tf, lf, !0);
634
634
  }
635
- function up(al, tf, lf) {
635
+ function dp(al, tf, lf) {
636
636
  return ep(al, tf, lf, !1);
637
637
  }
638
- var pp = up, mp = ap;
638
+ var pp = dp, mp = ap;
639
639
  reactJsxRuntime_development.Fragment = s, reactJsxRuntime_development.jsx = pp, reactJsxRuntime_development.jsxs = mp;
640
640
  }()), reactJsxRuntime_development;
641
641
  }
@@ -19817,7 +19817,7 @@ function useHooks$9({
19817
19817
  onLayerSelect: N
19818
19818
  }), sf = useCallback(
19819
19819
  (rf) => {
19820
- var Pf, Uf, Bf, ep, ap, up, pp, mp, al, tf, lf, yf, If, Of, Tf;
19820
+ var Pf, Uf, Bf, ep, ap, dp, pp, mp, al, tf, lf, yf, If, Of, Tf;
19821
19821
  if (W == null || W(rf), !Pe.matches("idle") || !rf)
19822
19822
  return;
19823
19823
  const bf = (Uf = (Pf = rf == null ? void 0 : rf.feature) == null ? void 0 : Pf.properties) == null ? void 0 : Uf.type;
@@ -19833,7 +19833,7 @@ function useHooks$9({
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
- extrudedHeight: (up = (ap = rf == null ? void 0 : rf.feature) == null ? void 0 : ap.properties) == null ? void 0 : up.extrudedHeight
19836
+ extrudedHeight: (dp = (ap = rf == null ? void 0 : rf.feature) == null ? void 0 : ap.properties) == null ? void 0 : dp.extrudedHeight
19837
19837
  }), lt({
19838
19838
  type: bf,
19839
19839
  controlPoints: (mp = (pp = rf == null ? void 0 : rf.feature) == null ? void 0 : pp.properties) == null ? void 0 : mp.positions
@@ -20406,29 +20406,29 @@ function Gt$1() {
20406
20406
  }), typeof Reflect == "object" && Reflect.construct) {
20407
20407
  try {
20408
20408
  Reflect.construct(Tf, []);
20409
- } catch (lp) {
20410
- yf = lp;
20409
+ } catch (sp) {
20410
+ yf = sp;
20411
20411
  }
20412
20412
  Reflect.construct(al, [], Tf);
20413
20413
  } else {
20414
20414
  try {
20415
20415
  Tf.call();
20416
- } catch (lp) {
20417
- yf = lp;
20416
+ } catch (sp) {
20417
+ yf = sp;
20418
20418
  }
20419
20419
  al.call(Tf.prototype);
20420
20420
  }
20421
20421
  } else {
20422
20422
  try {
20423
20423
  throw Error();
20424
- } catch (lp) {
20425
- yf = lp;
20424
+ } catch (sp) {
20425
+ yf = sp;
20426
20426
  }
20427
20427
  al();
20428
20428
  }
20429
- } catch (lp) {
20430
- if (lp && yf && typeof lp.stack == "string") {
20431
- for (var Mf = lp.stack.split(`
20429
+ } catch (sp) {
20430
+ if (sp && yf && typeof sp.stack == "string") {
20431
+ for (var Mf = sp.stack.split(`
20432
20432
  `), Af = yf.stack.split(`
20433
20433
  `), Gf = Mf.length - 1, Xf = Af.length - 1; Gf >= 1 && Xf >= 0 && Mf[Gf] !== Af[Xf]; )
20434
20434
  Xf--;
@@ -20448,8 +20448,8 @@ function Gt$1() {
20448
20448
  } finally {
20449
20449
  hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
20450
20450
  }
20451
- var bp = al ? al.displayName || al.name : "", dp = bp ? gf(bp) : "";
20452
- return typeof al == "function" && mf.set(al, dp), dp;
20451
+ var bp = al ? al.displayName || al.name : "", lp = bp ? gf(bp) : "";
20452
+ return typeof al == "function" && mf.set(al, lp), lp;
20453
20453
  }
20454
20454
  function Rf(al, tf, lf) {
20455
20455
  return Vf(al, !1);
@@ -20775,10 +20775,10 @@ Check the top-level render call using <` + lf + ">.");
20775
20775
  function ap(al, tf, lf) {
20776
20776
  return ep(al, tf, lf, !0);
20777
20777
  }
20778
- function up(al, tf, lf) {
20778
+ function dp(al, tf, lf) {
20779
20779
  return ep(al, tf, lf, !1);
20780
20780
  }
20781
- var pp = up, mp = ap;
20781
+ var pp = dp, mp = ap;
20782
20782
  pe$1.Fragment = s, pe$1.jsx = pp, pe$1.jsxs = mp;
20783
20783
  }()), pe$1;
20784
20784
  }
@@ -20826,7 +20826,7 @@ const ce$1 = "__RESIUM_EVENT_MANAGER", Ie$1 = [
20826
20826
  "onWheel",
20827
20827
  "onMouseEnter",
20828
20828
  "onMouseLeave"
20829
- ], Re$1 = class og {
20829
+ ], Re$1 = class cg {
20830
20830
  constructor(n) {
20831
20831
  K$1(this, "scene"), K$1(this, "sshe"), K$1(this, "events", {
20832
20832
  onClick: /* @__PURE__ */ new Map(),
@@ -20884,7 +20884,7 @@ const ce$1 = "__RESIUM_EVENT_MANAGER", Ie$1 = [
20884
20884
  o || (this.events.onMouseEnter.size === 0 && this.events.onMouseLeave.size === 0 && this.events.onMouseMove.size === 0 ? this.sshe.removeInputAction(ScreenSpaceEventType.MOUSE_MOVE) : this.sshe.getInputAction(ScreenSpaceEventType.MOUSE_MOVE) || this.sshe.setInputAction(this.onMouseMove, ScreenSpaceEventType.MOUSE_MOVE)), Fe$1(this.events).forEach(([s, c]) => {
20885
20885
  if (s === "onMouseEnter" || s === "onMouseLeave" || s === "onMouseMove")
20886
20886
  return;
20887
- const d = og.eventTypeMap[s];
20887
+ const d = cg.eventTypeMap[s];
20888
20888
  o || (c.size === 0 ? n.removeInputAction(d) : n.getInputAction(d) || n.setInputAction(this.eventCallback(s), d));
20889
20889
  });
20890
20890
  }
@@ -65965,11 +65965,11 @@ class ZeroArray extends Array {
65965
65965
  }
65966
65966
  }
65967
65967
  var Hp;
65968
- const Xp = class Xp {
65968
+ const Up = class Up {
65969
65969
  constructor(n, o) {
65970
65970
  Ef(this, "heap");
65971
65971
  Ef(this, "length");
65972
- if (!ef(Xp, Hp))
65972
+ if (!ef(Up, Hp))
65973
65973
  throw new TypeError("instantiate Stack using Stack.create(n)");
65974
65974
  this.heap = new o(n), this.length = 0;
65975
65975
  }
@@ -65977,9 +65977,9 @@ const Xp = class Xp {
65977
65977
  const o = getUintArray(n);
65978
65978
  if (!o)
65979
65979
  return [];
65980
- zf(Xp, Hp, !0);
65981
- const s = new Xp(n, o);
65982
- return zf(Xp, Hp, !1), s;
65980
+ zf(Up, Hp, !0);
65981
+ const s = new Up(n, o);
65982
+ return zf(Up, Hp, !1), s;
65983
65983
  }
65984
65984
  push(n) {
65985
65985
  this.heap[this.length++] = n;
@@ -65989,21 +65989,21 @@ const Xp = class Xp {
65989
65989
  }
65990
65990
  };
65991
65991
  Hp = new WeakMap(), // private constructor
65992
- Kf(Xp, Hp, !1);
65993
- let Stack = Xp;
65994
- var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f, xp, Ep, Cp, gp, 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
- const rg = class rg {
65992
+ Kf(Up, Hp, !1);
65993
+ let Stack = Up;
65994
+ var wp, _p, Vp, Rp, $p, hp, Mp, fp, cp, $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, op, up, Dm, ag, Bp, Qp;
65995
+ const og = class og {
65996
65996
  constructor(n) {
65997
- Kf(this, Qp);
65998
- Kf(this, qm);
65997
+ Kf(this, qp);
65998
+ Kf(this, tg);
65999
65999
  Kf(this, Op);
66000
66000
  Kf(this, Fp);
66001
- Kf(this, Om);
66001
+ Kf(this, Am);
66002
66002
  Kf(this, jp);
66003
66003
  Kf(this, Kp);
66004
66004
  Kf(this, op);
66005
- Kf(this, Am);
66006
- Kf(this, Zp);
66005
+ Kf(this, Dm);
66006
+ Kf(this, Bp);
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.
@@ -66076,7 +66076,7 @@ const rg = class rg {
66076
66076
  Kf(this, hp, void 0);
66077
66077
  Kf(this, Mp, void 0);
66078
66078
  Kf(this, fp, void 0);
66079
- Kf(this, sp, void 0);
66079
+ Kf(this, cp, void 0);
66080
66080
  Kf(this, $f, void 0);
66081
66081
  Kf(this, xp, void 0);
66082
66082
  Kf(this, Ep, void 0);
@@ -66084,26 +66084,26 @@ const rg = class rg {
66084
66084
  Kf(this, gp, void 0);
66085
66085
  Kf(this, Pp, void 0);
66086
66086
  Kf(this, yp, void 0);
66087
- Kf(this, Ap, void 0);
66088
66087
  Kf(this, Gp, void 0);
66088
+ Kf(this, Dp, void 0);
66089
66089
  Kf(this, Ip, void 0);
66090
66090
  Kf(this, Lp, void 0);
66091
- Kf(this, zp, void 0);
66091
+ Kf(this, Xp, void 0);
66092
66092
  Kf(this, Sp, void 0);
66093
66093
  // conditionally set private methods related to TTL
66094
- Kf(this, Up, () => {
66094
+ Kf(this, Wp, () => {
66095
66095
  });
66096
- Kf(this, Dp, () => {
66096
+ Kf(this, Np, () => {
66097
66097
  });
66098
- Kf(this, qp, () => {
66098
+ Kf(this, _m, () => {
66099
66099
  });
66100
66100
  /* c8 ignore stop */
66101
66101
  Kf(this, Tp, () => !1);
66102
- Kf(this, Wp, (n) => {
66102
+ Kf(this, Zp, (n) => {
66103
66103
  });
66104
66104
  Kf(this, Yp, (n, o, s) => {
66105
66105
  });
66106
- Kf(this, _m, (n, o, s, c) => {
66106
+ Kf(this, Om, (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;
@@ -66122,23 +66122,23 @@ const rg = class rg {
66122
66122
  }
66123
66123
  if (nt !== void 0 && typeof nt != "function")
66124
66124
  throw new TypeError("fetchMethod must be a function if specified");
66125
- if (zf(this, $p, nt), zf(this, zp, !!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) {
66125
+ if (zf(this, $p, nt), zf(this, Xp, !!nt), zf(this, fp, /* @__PURE__ */ new Map()), zf(this, cp, 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) {
66126
66126
  if (ef(this, _p) !== 0 && !isPosInt(ef(this, _p)))
66127
66127
  throw new TypeError("maxSize must be a positive integer if specified");
66128
66128
  if (!isPosInt(this.maxEntrySize))
66129
66129
  throw new TypeError("maxEntrySize must be a positive integer if specified");
66130
- Nf(this, qm, sg).call(this);
66130
+ Nf(this, tg, lg).call(this);
66131
66131
  }
66132
66132
  if (this.allowStale = !!y, this.noDeleteOnStaleGet = !!se, this.updateAgeOnGet = !!h, this.updateAgeOnHas = !!p, this.ttlResolution = isPosInt(c) || c === 0 ? c : 1, this.ttlAutopurge = !!d, this.ttl = s || 0, this.ttl) {
66133
66133
  if (!isPosInt(this.ttl))
66134
66134
  throw new TypeError("ttl must be a positive integer if specified");
66135
- Nf(this, Qp, tg).call(this);
66135
+ Nf(this, qp, ig).call(this);
66136
66136
  }
66137
66137
  if (ef(this, wp) === 0 && this.ttl === 0 && ef(this, _p) === 0)
66138
66138
  throw new TypeError("At least one of max, maxSize, or ttl is required");
66139
66139
  if (!this.ttlAutopurge && !ef(this, wp) && !ef(this, _p)) {
66140
66140
  const zi = "LRU_CACHE_UNBOUNDED";
66141
- shouldWarn(zi) && (warned$1.add(zi), emitWarning("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", zi, rg));
66141
+ shouldWarn(zi) && (warned$1.add(zi), emitWarning("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", zi, og));
66142
66142
  }
66143
66143
  }
66144
66144
  /**
@@ -66153,11 +66153,11 @@ const rg = class rg {
66153
66153
  static unsafeExposeInternals(n) {
66154
66154
  return {
66155
66155
  // properties
66156
- starts: ef(n, Gp),
66156
+ starts: ef(n, Dp),
66157
66157
  ttls: ef(n, Ip),
66158
- sizes: ef(n, Ap),
66158
+ sizes: ef(n, Gp),
66159
66159
  keyMap: ef(n, fp),
66160
- keyList: ef(n, sp),
66160
+ keyList: ef(n, cp),
66161
66161
  valList: ef(n, $f),
66162
66162
  next: ef(n, xp),
66163
66163
  prev: ef(n, Ep),
@@ -66171,23 +66171,23 @@ const rg = class rg {
66171
66171
  // methods
66172
66172
  isBackgroundFetch: (o) => {
66173
66173
  var s;
66174
- return Nf(s = n, op, cp).call(s, o);
66174
+ return Nf(s = n, op, up).call(s, o);
66175
66175
  },
66176
66176
  backgroundFetch: (o, s, c, d) => {
66177
66177
  var h;
66178
- return Nf(h = n, Kp, jm).call(h, o, s, c, d);
66178
+ return Nf(h = n, Kp, eg).call(h, o, s, c, d);
66179
66179
  },
66180
66180
  moveToTail: (o) => {
66181
66181
  var s;
66182
- return Nf(s = n, Zp, Jp).call(s, o);
66182
+ return Nf(s = n, Bp, Qp).call(s, o);
66183
66183
  },
66184
66184
  indexes: (o) => {
66185
66185
  var s;
66186
- return Nf(s = n, Op, Np).call(s, o);
66186
+ return Nf(s = n, Op, kp).call(s, o);
66187
66187
  },
66188
66188
  rindexes: (o) => {
66189
66189
  var s;
66190
- return Nf(s = n, Fp, kp).call(s, o);
66190
+ return Nf(s = n, Fp, zp).call(s, o);
66191
66191
  },
66192
66192
  isStale: (o) => {
66193
66193
  var s;
@@ -66249,8 +66249,8 @@ const rg = class rg {
66249
66249
  * in order from most recently used to least recently used.
66250
66250
  */
66251
66251
  *entries() {
66252
- for (const n of Nf(this, Op, Np).call(this))
66253
- ef(this, $f)[n] !== void 0 && ef(this, sp)[n] !== void 0 && !Nf(this, op, cp).call(this, ef(this, $f)[n]) && (yield [ef(this, sp)[n], ef(this, $f)[n]]);
66252
+ for (const n of Nf(this, Op, kp).call(this))
66253
+ ef(this, $f)[n] !== void 0 && ef(this, cp)[n] !== void 0 && !Nf(this, op, up).call(this, ef(this, $f)[n]) && (yield [ef(this, cp)[n], ef(this, $f)[n]]);
66254
66254
  }
66255
66255
  /**
66256
66256
  * Inverse order version of {@link LRUCache.entries}
@@ -66259,17 +66259,17 @@ const rg = class rg {
66259
66259
  * in order from least recently used to most recently used.
66260
66260
  */
66261
66261
  *rentries() {
66262
- for (const n of Nf(this, Fp, kp).call(this))
66263
- ef(this, $f)[n] !== void 0 && ef(this, sp)[n] !== void 0 && !Nf(this, op, cp).call(this, ef(this, $f)[n]) && (yield [ef(this, sp)[n], ef(this, $f)[n]]);
66262
+ for (const n of Nf(this, Fp, zp).call(this))
66263
+ ef(this, $f)[n] !== void 0 && ef(this, cp)[n] !== void 0 && !Nf(this, op, up).call(this, ef(this, $f)[n]) && (yield [ef(this, cp)[n], ef(this, $f)[n]]);
66264
66264
  }
66265
66265
  /**
66266
66266
  * Return a generator yielding the keys in the cache,
66267
66267
  * in order from most recently used to least recently used.
66268
66268
  */
66269
66269
  *keys() {
66270
- for (const n of Nf(this, Op, Np).call(this)) {
66271
- const o = ef(this, sp)[n];
66272
- o !== void 0 && !Nf(this, op, cp).call(this, ef(this, $f)[n]) && (yield o);
66270
+ for (const n of Nf(this, Op, kp).call(this)) {
66271
+ const o = ef(this, cp)[n];
66272
+ o !== void 0 && !Nf(this, op, up).call(this, ef(this, $f)[n]) && (yield o);
66273
66273
  }
66274
66274
  }
66275
66275
  /**
@@ -66279,9 +66279,9 @@ const rg = class rg {
66279
66279
  * in order from least recently used to most recently used.
66280
66280
  */
66281
66281
  *rkeys() {
66282
- for (const n of Nf(this, Fp, kp).call(this)) {
66283
- const o = ef(this, sp)[n];
66284
- o !== void 0 && !Nf(this, op, cp).call(this, ef(this, $f)[n]) && (yield o);
66282
+ for (const n of Nf(this, Fp, zp).call(this)) {
66283
+ const o = ef(this, cp)[n];
66284
+ o !== void 0 && !Nf(this, op, up).call(this, ef(this, $f)[n]) && (yield o);
66285
66285
  }
66286
66286
  }
66287
66287
  /**
@@ -66289,8 +66289,8 @@ const rg = class rg {
66289
66289
  * in order from most recently used to least recently used.
66290
66290
  */
66291
66291
  *values() {
66292
- for (const n of Nf(this, Op, Np).call(this))
66293
- ef(this, $f)[n] !== void 0 && !Nf(this, op, cp).call(this, ef(this, $f)[n]) && (yield ef(this, $f)[n]);
66292
+ for (const n of Nf(this, Op, kp).call(this))
66293
+ ef(this, $f)[n] !== void 0 && !Nf(this, op, up).call(this, ef(this, $f)[n]) && (yield ef(this, $f)[n]);
66294
66294
  }
66295
66295
  /**
66296
66296
  * Inverse order version of {@link LRUCache.values}
@@ -66299,8 +66299,8 @@ const rg = class rg {
66299
66299
  * in order from least recently used to most recently used.
66300
66300
  */
66301
66301
  *rvalues() {
66302
- for (const n of Nf(this, Fp, kp).call(this))
66303
- ef(this, $f)[n] !== void 0 && !Nf(this, op, cp).call(this, ef(this, $f)[n]) && (yield ef(this, $f)[n]);
66302
+ for (const n of Nf(this, Fp, zp).call(this))
66303
+ ef(this, $f)[n] !== void 0 && !Nf(this, op, up).call(this, ef(this, $f)[n]) && (yield ef(this, $f)[n]);
66304
66304
  }
66305
66305
  /**
66306
66306
  * Iterating over the cache itself yields the same results as
@@ -66314,10 +66314,10 @@ const rg = class rg {
66314
66314
  * similar to Array.find(). fn is called as fn(value, key, cache).
66315
66315
  */
66316
66316
  find(n, o = {}) {
66317
- for (const s of Nf(this, Op, Np).call(this)) {
66318
- const c = ef(this, $f)[s], d = Nf(this, op, cp).call(this, c) ? c.__staleWhileFetching : c;
66319
- if (d !== void 0 && n(d, ef(this, sp)[s], this))
66320
- return this.get(ef(this, sp)[s], o);
66317
+ for (const s of Nf(this, Op, kp).call(this)) {
66318
+ const c = ef(this, $f)[s], d = Nf(this, op, up).call(this, c) ? c.__staleWhileFetching : c;
66319
+ if (d !== void 0 && n(d, ef(this, cp)[s], this))
66320
+ return this.get(ef(this, cp)[s], o);
66321
66321
  }
66322
66322
  }
66323
66323
  /**
@@ -66327,9 +66327,9 @@ const rg = class rg {
66327
66327
  * Does not iterate over stale values.
66328
66328
  */
66329
66329
  forEach(n, o = this) {
66330
- for (const s of Nf(this, Op, Np).call(this)) {
66331
- const c = ef(this, $f)[s], d = Nf(this, op, cp).call(this, c) ? c.__staleWhileFetching : c;
66332
- d !== void 0 && n.call(o, d, ef(this, sp)[s], this);
66330
+ for (const s of Nf(this, Op, kp).call(this)) {
66331
+ const c = ef(this, $f)[s], d = Nf(this, op, up).call(this, c) ? c.__staleWhileFetching : c;
66332
+ d !== void 0 && n.call(o, d, ef(this, cp)[s], this);
66333
66333
  }
66334
66334
  }
66335
66335
  /**
@@ -66337,9 +66337,9 @@ const rg = class rg {
66337
66337
  * reverse order. (ie, less recently used items are iterated over first.)
66338
66338
  */
66339
66339
  rforEach(n, o = this) {
66340
- for (const s of Nf(this, Fp, kp).call(this)) {
66341
- const c = ef(this, $f)[s], d = Nf(this, op, cp).call(this, c) ? c.__staleWhileFetching : c;
66342
- d !== void 0 && n.call(o, d, ef(this, sp)[s], this);
66340
+ for (const s of Nf(this, Fp, zp).call(this)) {
66341
+ const c = ef(this, $f)[s], d = Nf(this, op, up).call(this, c) ? c.__staleWhileFetching : c;
66342
+ d !== void 0 && n.call(o, d, ef(this, cp)[s], this);
66343
66343
  }
66344
66344
  }
66345
66345
  /**
@@ -66348,8 +66348,8 @@ const rg = class rg {
66348
66348
  */
66349
66349
  purgeStale() {
66350
66350
  let n = !1;
66351
- for (const o of Nf(this, Fp, kp).call(this, { allowStale: !0 }))
66352
- ef(this, Tp).call(this, o) && (this.delete(ef(this, sp)[o]), n = !0);
66351
+ for (const o of Nf(this, Fp, zp).call(this, { allowStale: !0 }))
66352
+ ef(this, Tp).call(this, o) && (this.delete(ef(this, cp)[o]), n = !0);
66353
66353
  return n;
66354
66354
  }
66355
66355
  /**
@@ -66358,17 +66358,17 @@ const rg = class rg {
66358
66358
  */
66359
66359
  dump() {
66360
66360
  const n = [];
66361
- for (const o of Nf(this, Op, Np).call(this, { allowStale: !0 })) {
66362
- const s = ef(this, sp)[o], c = ef(this, $f)[o], d = Nf(this, op, cp).call(this, c) ? c.__staleWhileFetching : c;
66361
+ for (const o of Nf(this, Op, kp).call(this, { allowStale: !0 })) {
66362
+ const s = ef(this, cp)[o], c = ef(this, $f)[o], d = Nf(this, op, up).call(this, c) ? c.__staleWhileFetching : c;
66363
66363
  if (d === void 0 || s === void 0)
66364
66364
  continue;
66365
66365
  const h = { value: d };
66366
- if (ef(this, Ip) && ef(this, Gp)) {
66366
+ if (ef(this, Ip) && ef(this, Dp)) {
66367
66367
  h.ttl = ef(this, Ip)[o];
66368
- const p = perf.now() - ef(this, Gp)[o];
66368
+ const p = perf.now() - ef(this, Dp)[o];
66369
66369
  h.start = Math.floor(Date.now() - p);
66370
66370
  }
66371
- ef(this, Ap) && (h.size = ef(this, Ap)[o]), n.unshift([s, h]);
66371
+ ef(this, Gp) && (h.size = ef(this, Gp)[o]), n.unshift([s, h]);
66372
66372
  }
66373
66373
  return n;
66374
66374
  }
@@ -66394,25 +66394,25 @@ const rg = class rg {
66394
66394
  var F, N, z;
66395
66395
  const { ttl: c = this.ttl, start: d, noDisposeOnSet: h = this.noDisposeOnSet, sizeCalculation: p = this.sizeCalculation, status: y } = s;
66396
66396
  let { noUpdateTTL: S = this.noUpdateTTL } = s;
66397
- const P = ef(this, _m).call(this, n, o, s.size || 0, p);
66397
+ const P = ef(this, Om).call(this, n, o, s.size || 0, p);
66398
66398
  if (this.maxEntrySize && P > this.maxEntrySize)
66399
66399
  return y && (y.set = "miss", y.maxEntrySizeExceeded = !0), this.delete(n), this;
66400
66400
  let L = ef(this, hp) === 0 ? void 0 : ef(this, fp).get(n);
66401
66401
  if (L === void 0)
66402
- L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? Nf(this, jp, $m).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), Dm(this, hp)._++, ef(this, Yp).call(this, L, P, y), y && (y.set = "add"), S = !1;
66402
+ L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? Nf(this, jp, qm).call(this, !1) : ef(this, hp), ef(this, cp)[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;
66403
66403
  else {
66404
- Nf(this, Zp, Jp).call(this, L);
66404
+ Nf(this, Bp, Qp).call(this, L);
66405
66405
  const W = ef(this, $f)[L];
66406
66406
  if (o !== W) {
66407
- if (ef(this, zp) && Nf(this, op, cp).call(this, W) ? W.__abortController.abort(new Error("replaced")) : h || (ef(this, Lp) && ((F = ef(this, Vp)) == null || F.call(this, W, n, "set")), ef(this, Sp) && ((N = ef(this, yp)) == null || N.push([W, n, "set"]))), ef(this, Wp).call(this, L), ef(this, Yp).call(this, L, P, y), ef(this, $f)[L] = o, y) {
66407
+ if (ef(this, Xp) && Nf(this, op, up).call(this, W) ? W.__abortController.abort(new Error("replaced")) : h || (ef(this, Lp) && ((F = ef(this, Vp)) == null || F.call(this, W, n, "set")), ef(this, Sp) && ((N = ef(this, yp)) == null || N.push([W, n, "set"]))), ef(this, Zp).call(this, L), ef(this, Yp).call(this, L, P, y), ef(this, $f)[L] = o, y) {
66408
66408
  y.set = "replace";
66409
- const nt = W && Nf(this, op, cp).call(this, W) ? W.__staleWhileFetching : W;
66409
+ const nt = W && Nf(this, op, up).call(this, W) ? W.__staleWhileFetching : W;
66410
66410
  nt !== void 0 && (y.oldValue = nt);
66411
66411
  }
66412
66412
  } else
66413
66413
  y && (y.set = "update");
66414
66414
  }
66415
- if (c !== 0 && !ef(this, Ip) && Nf(this, Qp, tg).call(this), ef(this, Ip) && (S || ef(this, qp).call(this, L, c, d), y && ef(this, Dp).call(this, y, L)), !h && ef(this, Sp) && ef(this, yp)) {
66415
+ if (c !== 0 && !ef(this, Ip) && Nf(this, qp, ig).call(this), ef(this, Ip) && (S || ef(this, _m).call(this, L, c, d), y && ef(this, Np).call(this, y, L)), !h && ef(this, Sp) && ef(this, yp)) {
66416
66416
  const W = ef(this, yp);
66417
66417
  let nt;
66418
66418
  for (; nt = W == null ? void 0 : W.shift(); )
@@ -66429,7 +66429,7 @@ const rg = class rg {
66429
66429
  try {
66430
66430
  for (; ef(this, hp); ) {
66431
66431
  const o = ef(this, $f)[ef(this, Cp)];
66432
- if (Nf(this, jp, $m).call(this, !0), Nf(this, op, cp).call(this, o)) {
66432
+ if (Nf(this, jp, qm).call(this, !0), Nf(this, op, up).call(this, o)) {
66433
66433
  if (o.__staleWhileFetching)
66434
66434
  return o.__staleWhileFetching;
66435
66435
  } else if (o !== void 0)
@@ -66456,12 +66456,12 @@ const rg = class rg {
66456
66456
  const { updateAgeOnHas: s = this.updateAgeOnHas, status: c } = o, d = ef(this, fp).get(n);
66457
66457
  if (d !== void 0) {
66458
66458
  const h = ef(this, $f)[d];
66459
- if (Nf(this, op, cp).call(this, h) && h.__staleWhileFetching === void 0)
66459
+ if (Nf(this, op, up).call(this, h) && h.__staleWhileFetching === void 0)
66460
66460
  return !1;
66461
66461
  if (ef(this, Tp).call(this, d))
66462
- c && (c.has = "stale", ef(this, Dp).call(this, c, d));
66462
+ c && (c.has = "stale", ef(this, Np).call(this, c, d));
66463
66463
  else
66464
- return s && ef(this, Up).call(this, d), c && (c.has = "hit", ef(this, Dp).call(this, c, d)), !0;
66464
+ return s && ef(this, Wp).call(this, d), c && (c.has = "hit", ef(this, Np).call(this, c, d)), !0;
66465
66465
  } else
66466
66466
  c && (c.has = "miss");
66467
66467
  return !1;
@@ -66477,7 +66477,7 @@ const rg = class rg {
66477
66477
  const { allowStale: s = this.allowStale } = o, c = ef(this, fp).get(n);
66478
66478
  if (c !== void 0 && (s || !ef(this, Tp).call(this, c))) {
66479
66479
  const d = ef(this, $f)[c];
66480
- return Nf(this, op, cp).call(this, d) ? d.__staleWhileFetching : d;
66480
+ return Nf(this, op, up).call(this, d) ? d.__staleWhileFetching : d;
66481
66481
  }
66482
66482
  }
66483
66483
  async fetch(n, o = {}) {
@@ -66502,7 +66502,7 @@ const rg = class rg {
66502
66502
  status: Pe,
66503
66503
  signal: se
66504
66504
  } = o;
66505
- if (!ef(this, zp))
66505
+ if (!ef(this, Xp))
66506
66506
  return Pe && (Pe.fetch = "get"), this.get(n, {
66507
66507
  allowStale: s,
66508
66508
  updateAgeOnGet: c,
@@ -66528,18 +66528,18 @@ const rg = class rg {
66528
66528
  let kt = ef(this, fp).get(n);
66529
66529
  if (kt === void 0) {
66530
66530
  Pe && (Pe.fetch = "miss");
66531
- const mn = Nf(this, Kp, jm).call(this, n, kt, mt, W);
66531
+ const mn = Nf(this, Kp, eg).call(this, n, kt, mt, W);
66532
66532
  return mn.__returned = mn;
66533
66533
  } else {
66534
66534
  const mn = ef(this, $f)[kt];
66535
- if (Nf(this, op, cp).call(this, mn)) {
66535
+ if (Nf(this, op, up).call(this, mn)) {
66536
66536
  const La = s && mn.__staleWhileFetching !== void 0;
66537
66537
  return Pe && (Pe.fetch = "inflight", La && (Pe.returnedStale = !0)), La ? mn.__staleWhileFetching : mn.__returned = mn;
66538
66538
  }
66539
66539
  const pi = ef(this, Tp).call(this, kt);
66540
66540
  if (!nt && !pi)
66541
- return Pe && (Pe.fetch = "hit"), Nf(this, Zp, Jp).call(this, kt), c && ef(this, Up).call(this, kt), Pe && ef(this, Dp).call(this, Pe, kt), mn;
66542
- const zi = Nf(this, Kp, jm).call(this, n, kt, mt, W), fa = zi.__staleWhileFetching !== void 0 && s;
66541
+ return Pe && (Pe.fetch = "hit"), Nf(this, Bp, Qp).call(this, kt), c && ef(this, Wp).call(this, kt), Pe && ef(this, Np).call(this, Pe, kt), mn;
66542
+ const zi = Nf(this, Kp, eg).call(this, n, kt, mt, W), fa = zi.__staleWhileFetching !== void 0 && s;
66543
66543
  return Pe && (Pe.fetch = pi ? "stale" : "refresh", fa && pi && (Pe.returnedStale = !0)), fa ? zi.__staleWhileFetching : zi.__returned = zi;
66544
66544
  }
66545
66545
  }
@@ -66552,8 +66552,8 @@ const rg = class rg {
66552
66552
  get(n, o = {}) {
66553
66553
  const { allowStale: s = this.allowStale, updateAgeOnGet: c = this.updateAgeOnGet, noDeleteOnStaleGet: d = this.noDeleteOnStaleGet, status: h } = o, p = ef(this, fp).get(n);
66554
66554
  if (p !== void 0) {
66555
- const y = ef(this, $f)[p], S = Nf(this, op, cp).call(this, y);
66556
- return h && ef(this, Dp).call(this, h, p), ef(this, Tp).call(this, p) ? (h && (h.get = "stale"), S ? (h && s && y.__staleWhileFetching !== void 0 && (h.returnedStale = !0), s ? y.__staleWhileFetching : void 0) : (d || this.delete(n), h && s && (h.returnedStale = !0), s ? y : void 0)) : (h && (h.get = "hit"), S ? y.__staleWhileFetching : (Nf(this, Zp, Jp).call(this, p), c && ef(this, Up).call(this, p), y));
66555
+ const y = ef(this, $f)[p], S = Nf(this, op, up).call(this, y);
66556
+ return h && ef(this, Np).call(this, h, p), ef(this, Tp).call(this, p) ? (h && (h.get = "stale"), S ? (h && s && y.__staleWhileFetching !== void 0 && (h.returnedStale = !0), s ? y.__staleWhileFetching : void 0) : (d || this.delete(n), h && s && (h.returnedStale = !0), s ? y : void 0)) : (h && (h.get = "hit"), S ? y.__staleWhileFetching : (Nf(this, Bp, Qp).call(this, p), c && ef(this, Wp).call(this, p), y));
66557
66557
  } else
66558
66558
  h && (h.get = "miss");
66559
66559
  }
@@ -66570,9 +66570,9 @@ const rg = class rg {
66570
66570
  if (o = !0, ef(this, hp) === 1)
66571
66571
  this.clear();
66572
66572
  else {
66573
- ef(this, Wp).call(this, p);
66573
+ ef(this, Zp).call(this, p);
66574
66574
  const y = ef(this, $f)[p];
66575
- Nf(this, op, cp).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]), Dm(this, hp)._--, ef(this, Pp).push(p);
66575
+ Nf(this, op, up).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, cp)[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);
66576
66576
  }
66577
66577
  }
66578
66578
  if (ef(this, Sp) && ((d = ef(this, yp)) != null && d.length)) {
@@ -66588,16 +66588,16 @@ const rg = class rg {
66588
66588
  */
66589
66589
  clear() {
66590
66590
  var n, o, s;
66591
- for (const c of Nf(this, Fp, kp).call(this, { allowStale: !0 })) {
66591
+ for (const c of Nf(this, Fp, zp).call(this, { allowStale: !0 })) {
66592
66592
  const d = ef(this, $f)[c];
66593
- if (Nf(this, op, cp).call(this, d))
66593
+ if (Nf(this, op, up).call(this, d))
66594
66594
  d.__abortController.abort(new Error("deleted"));
66595
66595
  else {
66596
- const h = ef(this, sp)[c];
66596
+ const h = ef(this, cp)[c];
66597
66597
  ef(this, Lp) && ((n = ef(this, Vp)) == null || n.call(this, d, h, "delete")), ef(this, Sp) && ((o = ef(this, yp)) == null || o.push([d, h, "delete"]));
66598
66598
  }
66599
66599
  }
66600
- if (ef(this, fp).clear(), ef(this, $f).fill(void 0), ef(this, sp).fill(void 0), ef(this, Ip) && ef(this, Gp) && (ef(this, Ip).fill(0), ef(this, Gp).fill(0)), ef(this, Ap) && ef(this, Ap).fill(0), zf(this, Cp, 0), zf(this, gp, 0), ef(this, Pp).length = 0, zf(this, Mp, 0), zf(this, hp, 0), ef(this, Sp) && ef(this, yp)) {
66600
+ if (ef(this, fp).clear(), ef(this, $f).fill(void 0), ef(this, cp).fill(void 0), ef(this, Ip) && ef(this, Dp) && (ef(this, Ip).fill(0), ef(this, Dp).fill(0)), ef(this, Gp) && ef(this, Gp).fill(0), zf(this, Cp, 0), zf(this, gp, 0), ef(this, Pp).length = 0, zf(this, Mp, 0), zf(this, hp, 0), ef(this, Sp) && ef(this, yp)) {
66601
66601
  const c = ef(this, yp);
66602
66602
  let d;
66603
66603
  for (; d = c == null ? void 0 : c.shift(); )
@@ -66605,18 +66605,18 @@ const rg = class rg {
66605
66605
  }
66606
66606
  }
66607
66607
  };
66608
- 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(), Ap = new WeakMap(), Gp = new WeakMap(), Ip = new WeakMap(), Lp = new WeakMap(), zp = new WeakMap(), Sp = new WeakMap(), Qp = new WeakSet(), tg = function() {
66608
+ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(), hp = new WeakMap(), Mp = new WeakMap(), fp = new WeakMap(), cp = 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() {
66609
66609
  const n = new ZeroArray(ef(this, wp)), o = new ZeroArray(ef(this, wp));
66610
- zf(this, Ip, n), zf(this, Gp, o), zf(this, qp, (d, h, p = perf.now()) => {
66610
+ zf(this, Ip, n), zf(this, Dp, o), zf(this, _m, (d, h, p = perf.now()) => {
66611
66611
  if (o[d] = h !== 0 ? p : 0, n[d] = h, h !== 0 && this.ttlAutopurge) {
66612
66612
  const y = setTimeout(() => {
66613
- ef(this, Tp).call(this, d) && this.delete(ef(this, sp)[d]);
66613
+ ef(this, Tp).call(this, d) && this.delete(ef(this, cp)[d]);
66614
66614
  }, h + 1);
66615
66615
  y.unref && y.unref();
66616
66616
  }
66617
- }), zf(this, Up, (d) => {
66617
+ }), zf(this, Wp, (d) => {
66618
66618
  o[d] = n[d] !== 0 ? perf.now() : 0;
66619
- }), zf(this, Dp, (d, h) => {
66619
+ }), zf(this, Np, (d, h) => {
66620
66620
  if (n[h]) {
66621
66621
  const p = n[h], y = o[h];
66622
66622
  d.ttl = p, d.start = y, d.now = s || c(), d.remainingTTL = d.now + p - y;
@@ -66636,12 +66636,12 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
66636
66636
  const h = ef(this, fp).get(d);
66637
66637
  return h === void 0 ? 0 : n[h] === 0 || o[h] === 0 ? 1 / 0 : o[h] + n[h] - (s || c());
66638
66638
  }, zf(this, Tp, (d) => n[d] !== 0 && o[d] !== 0 && (s || c()) - o[d] > n[d]);
66639
- }, Up = new WeakMap(), Dp = new WeakMap(), qp = new WeakMap(), Tp = new WeakMap(), qm = new WeakSet(), sg = function() {
66639
+ }, Wp = new WeakMap(), Np = new WeakMap(), _m = new WeakMap(), Tp = new WeakMap(), tg = new WeakSet(), lg = function() {
66640
66640
  const n = new ZeroArray(ef(this, wp));
66641
- zf(this, Mp, 0), zf(this, Ap, n), zf(this, Wp, (o) => {
66641
+ zf(this, Mp, 0), zf(this, Gp, n), zf(this, Zp, (o) => {
66642
66642
  zf(this, Mp, ef(this, Mp) - n[o]), n[o] = 0;
66643
- }), zf(this, _m, (o, s, c, d) => {
66644
- if (Nf(this, op, cp).call(this, s))
66643
+ }), zf(this, Om, (o, s, c, d) => {
66644
+ if (Nf(this, op, up).call(this, s))
66645
66645
  return 0;
66646
66646
  if (!isPosInt(c))
66647
66647
  if (d) {
@@ -66656,27 +66656,27 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
66656
66656
  if (n[o] = s, ef(this, _p)) {
66657
66657
  const d = ef(this, _p) - n[o];
66658
66658
  for (; ef(this, Mp) > d; )
66659
- Nf(this, jp, $m).call(this, !0);
66659
+ Nf(this, jp, qm).call(this, !0);
66660
66660
  }
66661
66661
  zf(this, Mp, ef(this, Mp) + n[o]), c && (c.entrySize = s, c.totalCalculatedSize = ef(this, Mp));
66662
66662
  });
66663
- }, Wp = new WeakMap(), Yp = new WeakMap(), _m = new WeakMap(), Op = new WeakSet(), Np = function* ({ allowStale: n = this.allowStale } = {}) {
66663
+ }, Zp = new WeakMap(), Yp = new WeakMap(), Om = new WeakMap(), Op = new WeakSet(), kp = function* ({ allowStale: n = this.allowStale } = {}) {
66664
66664
  if (ef(this, hp))
66665
- for (let o = ef(this, gp); !(!Nf(this, Om, ng).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, Cp))); )
66665
+ for (let o = ef(this, gp); !(!Nf(this, Am, rg).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, Cp))); )
66666
66666
  o = ef(this, Ep)[o];
66667
- }, Fp = new WeakSet(), kp = function* ({ allowStale: n = this.allowStale } = {}) {
66667
+ }, Fp = new WeakSet(), zp = function* ({ allowStale: n = this.allowStale } = {}) {
66668
66668
  if (ef(this, hp))
66669
- for (let o = ef(this, Cp); !(!Nf(this, Om, ng).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, gp))); )
66669
+ for (let o = ef(this, Cp); !(!Nf(this, Am, rg).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, gp))); )
66670
66670
  o = ef(this, xp)[o];
66671
- }, Om = new WeakSet(), ng = function(n) {
66672
- return n !== void 0 && ef(this, fp).get(ef(this, sp)[n]) === n;
66673
- }, jp = new WeakSet(), $m = function(n) {
66671
+ }, Am = new WeakSet(), rg = function(n) {
66672
+ return n !== void 0 && ef(this, fp).get(ef(this, cp)[n]) === n;
66673
+ }, jp = new WeakSet(), qm = function(n) {
66674
66674
  var d, h;
66675
- const o = ef(this, Cp), s = ef(this, sp)[o], c = ef(this, $f)[o];
66676
- return ef(this, zp) && Nf(this, op, cp).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, Wp).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), Dm(this, hp)._--, o;
66677
- }, Kp = new WeakSet(), jm = function(n, o, s, c) {
66675
+ const o = ef(this, Cp), s = ef(this, cp)[o], c = ef(this, $f)[o];
66676
+ return ef(this, Xp) && Nf(this, op, up).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, cp)[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;
66677
+ }, Kp = new WeakSet(), eg = function(n, o, s, c) {
66678
66678
  const d = o === void 0 ? void 0 : ef(this, $f)[o];
66679
- if (Nf(this, op, cp).call(this, d))
66679
+ if (Nf(this, op, up).call(this, d))
66680
66680
  return d;
66681
66681
  const h = new AbortController(), { signal: p } = s;
66682
66682
  p == null || p.addEventListener("abort", () => h.abort(p.reason), {
@@ -66712,17 +66712,17 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
66712
66712
  __returned: void 0
66713
66713
  });
66714
66714
  return o === void 0 ? (this.set(n, z, { ...y.options, status: void 0 }), o = ef(this, fp).get(n)) : ef(this, $f)[o] = z, z;
66715
- }, op = new WeakSet(), cp = function(n) {
66716
- if (!ef(this, zp))
66715
+ }, op = new WeakSet(), up = function(n) {
66716
+ if (!ef(this, Xp))
66717
66717
  return !1;
66718
66718
  const o = n;
66719
66719
  return !!o && o instanceof Promise && o.hasOwnProperty("__staleWhileFetching") && o.__abortController instanceof AbortController;
66720
- }, Am = new WeakSet(), ig = function(n, o) {
66720
+ }, Dm = new WeakSet(), ag = function(n, o) {
66721
66721
  ef(this, Ep)[o] = n, ef(this, xp)[n] = o;
66722
- }, Zp = new WeakSet(), Jp = function(n) {
66723
- n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[n]) : Nf(this, Am, ig).call(this, ef(this, Ep)[n], ef(this, xp)[n]), Nf(this, Am, ig).call(this, ef(this, gp), n), zf(this, gp, n));
66722
+ }, Bp = new WeakSet(), Qp = function(n) {
66723
+ n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[n]) : Nf(this, Dm, ag).call(this, ef(this, Ep)[n], ef(this, xp)[n]), Nf(this, Dm, ag).call(this, ef(this, gp), n), zf(this, gp, n));
66724
66724
  };
66725
- let LRUCache = rg;
66725
+ let LRUCache = og;
66726
66726
  const SIDE_PLANES = [
66727
66727
  new Plane$1(new Cartesian3$1(0, 0, 1), 0.5),
66728
66728
  new Plane$1(new Cartesian3$1(0, 0, -1), 0.5),
@@ -84718,11 +84718,11 @@ const useIBL = ({
84718
84718
  featureFlags: p
84719
84719
  });
84720
84720
  useEffect(() => {
84721
- var Uf, Bf, ep, ap, up, pp, mp, al, tf, lf, yf, If, Of, Tf;
84721
+ var Uf, Bf, ep, ap, dp, pp, mp, al, tf, lf, yf, If, Of, Tf;
84722
84722
  const _f = (Bf = (Uf = Ra == null ? void 0 : Ra.current) == null ? void 0 : Uf.cesiumElement) == null ? void 0 : Bf.shadowMap;
84723
84723
  if (!_f)
84724
84724
  return;
84725
- _f.softShadows = ((up = (ap = (ep = n == null ? void 0 : n.scene) == null ? void 0 : ep.shadow) == null ? void 0 : ap.shadowMap) == null ? void 0 : up.softShadows) ?? !1, _f.darkness = ((al = (mp = (pp = n == null ? void 0 : n.scene) == null ? void 0 : pp.shadow) == null ? void 0 : mp.shadowMap) == null ? void 0 : al.darkness) ?? 0.3, _f.size = ((yf = (lf = (tf = n == null ? void 0 : n.scene) == null ? void 0 : tf.shadow) == null ? void 0 : lf.shadowMap) == null ? void 0 : yf.size) ?? 2048, _f.maximumDistance = ((Tf = (Of = (If = n == null ? void 0 : n.scene) == null ? void 0 : If.shadow) == null ? void 0 : Of.shadowMap) == null ? void 0 : Tf.maximumDistance) ?? 5e3, _f.fadingEnabled = !0, _f.normalOffset = !0;
84725
+ _f.softShadows = ((dp = (ap = (ep = n == null ? void 0 : n.scene) == null ? void 0 : ep.shadow) == null ? void 0 : ap.shadowMap) == null ? void 0 : dp.softShadows) ?? !1, _f.darkness = ((al = (mp = (pp = n == null ? void 0 : n.scene) == null ? void 0 : pp.shadow) == null ? void 0 : mp.shadowMap) == null ? void 0 : al.darkness) ?? 0.3, _f.size = ((yf = (lf = (tf = n == null ? void 0 : n.scene) == null ? void 0 : tf.shadow) == null ? void 0 : lf.shadowMap) == null ? void 0 : yf.size) ?? 2048, _f.maximumDistance = ((Tf = (Of = (If = n == null ? void 0 : n.scene) == null ? void 0 : If.shadow) == null ? void 0 : Of.shadowMap) == null ? void 0 : Tf.maximumDistance) ?? 5e3, _f.fadingEnabled = !0, _f.normalOffset = !0;
84726
84726
  const rf = {
84727
84727
  polygonOffsetFactor: 1.1,
84728
84728
  polygonOffsetUnits: 4,
@@ -84754,7 +84754,7 @@ const useIBL = ({
84754
84754
  ]);
84755
84755
  const _i = useRef(), ba = useRef();
84756
84756
  useEffect(() => {
84757
- var Uf, Bf, ep, ap, up, pp, mp, al;
84757
+ var Uf, Bf, ep, ap, dp, pp, mp, al;
84758
84758
  const _f = (Uf = Ra.current) == null ? void 0 : Uf.cesiumElement;
84759
84759
  if (!_f || _f.isDestroyed() || ba.current === (s == null ? void 0 : s.featureId) && (s == null ? void 0 : s.featureId) !== void 0)
84760
84760
  return;
@@ -84818,7 +84818,7 @@ const useIBL = ({
84818
84818
  title: bf.name,
84819
84819
  content: getEntityContent(
84820
84820
  bf,
84821
- ((pp = (up = Ra.current) == null ? void 0 : up.cesiumElement) == null ? void 0 : pp.clock.currentTime) ?? new JulianDate$1(),
84821
+ ((pp = (dp = Ra.current) == null ? void 0 : dp.cesiumElement) == null ? void 0 : pp.clock.currentTime) ?? new JulianDate$1(),
84822
84822
  Pf != null && Pf.layerId ? (al = (mp = tf == null ? void 0 : tf.infobox) == null ? void 0 : mp.property) == null ? void 0 : al.defaultContent : void 0
84823
84823
  )
84824
84824
  }
@@ -84860,7 +84860,7 @@ const useIBL = ({
84860
84860
  if (!ep)
84861
84861
  return;
84862
84862
  const ap = getLayerId(bf);
84863
- ap && (ep.layerId = ap), yt.mouseEventCallbacks[_f].forEach((up) => up(ep));
84863
+ ap && (ep.layerId = ap), yt.mouseEventCallbacks[_f].forEach((dp) => dp(ep));
84864
84864
  }
84865
84865
  },
84866
84866
  [yt]
@@ -84895,7 +84895,7 @@ const useIBL = ({
84895
84895
  }), _f;
84896
84896
  }, [ms, Xs]), pu = useCallback(
84897
84897
  async (_f, rf) => {
84898
- var Bf, ep, ap, up, pp, mp, al, tf, lf, yf, If, Of, Tf, Mf;
84898
+ var Bf, ep, ap, dp, pp, mp, 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
84901
  const bf = (ep = Ra.current) == null ? void 0 : ep.cesiumElement;
@@ -84904,7 +84904,7 @@ const useIBL = ({
84904
84904
  ba.current = void 0;
84905
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
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
- 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;
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)) ?? ((dp = h == null ? void 0 : h.current) == null ? void 0 : dp.findById(Af.layerId)) : void 0;
84908
84908
  W == null || W(
84909
84909
  Af == null ? void 0 : Af.layerId,
84910
84910
  Af == null ? void 0 : Af.featureId,
@@ -84955,26 +84955,30 @@ const useIBL = ({
84955
84955
  if (rf === void 0 && _f.position) {
84956
84956
  const Af = bf.scene, Gf = Af.camera.getPickRay(_f.position);
84957
84957
  if (Gf) {
84958
- const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af), jf = Xf == null ? void 0 : Xf.findLast((dp) => !!dp.data), bp = (al = jf == null ? void 0 : jf.data) == null ? void 0 : al.appearanceType;
84958
+ const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af), jf = Xf == null ? void 0 : Xf.findLast((lp) => {
84959
+ var Ap, Jp, $m, sg;
84960
+ const sp = (Ap = lp == null ? void 0 : lp.data) == null ? void 0 : Ap.appearanceType;
84961
+ return sp && ((sg = ($m = (Jp = lp == null ? void 0 : lp.data) == null ? void 0 : Jp.feature) == null ? void 0 : $m[sp]) == null ? void 0 : sg.show) !== !1;
84962
+ }), bp = (al = jf == null ? void 0 : jf.data) == null ? void 0 : al.appearanceType;
84959
84963
  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 dp = getTag(jf.imageryLayer), lp = jf.position;
84961
- lp && requestAnimationFrame(() => {
84962
- dp != null && dp.hideIndicator || (bf.selectedEntity = new Entity$2({
84963
- position: Cartographic$1.toCartesian(lp)
84964
+ const lp = getTag(jf.imageryLayer), sp = jf.position;
84965
+ sp && requestAnimationFrame(() => {
84966
+ lp != null && lp.hideIndicator || (bf.selectedEntity = new Entity$2({
84967
+ position: Cartographic$1.toCartesian(sp)
84964
84968
  }));
84965
84969
  });
84966
- const Bp = dp != null && dp.layerId ? ((If = h == null ? void 0 : h.current) == null ? void 0 : If.overriddenLayers().find((cg) => cg.id === dp.layerId)) ?? ((Of = h == null ? void 0 : h.current) == null ? void 0 : Of.findById(dp.layerId)) : void 0, ag = getEntityContent(
84970
+ const Ap = lp != null && lp.layerId ? ((If = h == null ? void 0 : h.current) == null ? void 0 : If.overriddenLayers().find(($m) => $m.id === lp.layerId)) ?? ((Of = h == null ? void 0 : h.current) == null ? void 0 : Of.findById(lp.layerId)) : void 0, Jp = getEntityContent(
84967
84971
  jf.data.feature ?? jf,
84968
84972
  bf.clock.currentTime ?? new JulianDate$1(),
84969
- dp != null && dp.layerId ? (Mf = (Tf = Bp == null ? void 0 : Bp.infobox) == null ? void 0 : Tf.property) == null ? void 0 : Mf.defaultContent : void 0
84973
+ lp != null && lp.layerId ? (Mf = (Tf = Ap == null ? void 0 : Ap.infobox) == null ? void 0 : Tf.property) == null ? void 0 : Mf.defaultContent : void 0
84970
84974
  );
84971
84975
  ba.current = jf.data.featureId, W == null || W(
84972
84976
  jf.data.layerId,
84973
84977
  jf.data.featureId,
84974
- ag.value.length ? {
84978
+ Jp.value.length ? {
84975
84979
  defaultInfobox: {
84976
- title: (Bp == null ? void 0 : Bp.title) ?? jf.name,
84977
- content: ag
84980
+ title: (Ap == null ? void 0 : Ap.title) ?? jf.name,
84981
+ content: Jp
84978
84982
  }
84979
84983
  } : void 0,
84980
84984
  {
@@ -90951,7 +90955,7 @@ const Cesium = ({
90951
90955
  onLayerLoad: lt,
90952
90956
  onCreditsUpdate: _i
90953
90957
  }, ba) => {
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, pp, mp, al, tf, lf;
90958
+ 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, dp, pp, mp, al, tf, lf;
90955
90959
  const {
90956
90960
  cesium: Sc,
90957
90961
  mouseEventHandles: ms,
@@ -91180,7 +91184,7 @@ const Cesium = ({
91180
91184
  AmbientOcclusion,
91181
91185
  {
91182
91186
  ...AMBIENT_OCCLUSION_QUALITY[((ap = (ep = o == null ? void 0 : o.render) == null ? void 0 : ep.ambientOcclusion) == null ? void 0 : ap.quality) || "low"],
91183
- enabled: !!((pp = (up = o == null ? void 0 : o.render) == null ? void 0 : up.ambientOcclusion) != null && pp.enabled),
91187
+ enabled: !!((pp = (dp = o == null ? void 0 : o.render) == null ? void 0 : dp.ambientOcclusion) != null && pp.enabled),
91184
91188
  intensity: ((al = (mp = o == null ? void 0 : o.render) == null ? void 0 : mp.ambientOcclusion) == null ? void 0 : al.intensity) ?? 100,
91185
91189
  outputType: (lf = (tf = o == null ? void 0 : o.render) == null ? void 0 : tf.ambientOcclusion) != null && lf.ambientOcclusionOnly ? AmbientOcclusionOutputType.Occlusion : null
91186
91190
  }
@@ -91204,7 +91208,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
91204
91208
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
91205
91209
  ] });
91206
91210
  }
91207
- const version = "0.0.7-alpha.29", useCoreAPI = ({ viewerProperty: t }) => {
91211
+ const version = "0.0.7-alpha.30", useCoreAPI = ({ viewerProperty: t }) => {
91208
91212
  const n = useRef(t);
91209
91213
  n.current = t;
91210
91214
  const o = useMemo(