@takram/three-geospatial 0.5.1 → 0.7.0

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -0
  3. package/build/index.cjs +1 -1
  4. package/build/index.cjs.map +1 -1
  5. package/build/index.js +318 -312
  6. package/build/index.js.map +1 -1
  7. package/build/r3f.cjs.map +1 -1
  8. package/build/r3f.js.map +1 -1
  9. package/build/shaders.cjs.map +1 -1
  10. package/build/shaders.js.map +1 -1
  11. package/build/shared.cjs.map +1 -1
  12. package/build/shared.js.map +1 -1
  13. package/build/shared2.cjs.map +1 -1
  14. package/build/shared2.js.map +1 -1
  15. package/build/shared3.cjs.map +1 -1
  16. package/build/shared3.js.map +1 -1
  17. package/build/webgpu.cjs +1 -1
  18. package/build/webgpu.cjs.map +1 -1
  19. package/build/webgpu.js +445 -463
  20. package/build/webgpu.js.map +1 -1
  21. package/package.json +2 -2
  22. package/src/decorators.ts +30 -10
  23. package/src/r3f/EastNorthUpFrame.tsx +2 -1
  24. package/src/r3f/EllipsoidMesh.tsx +4 -2
  25. package/src/webgpu/DownsampleThresholdNode.ts +3 -4
  26. package/src/webgpu/DualMipmapFilterNode.ts +1 -1
  27. package/src/webgpu/FnLayout.ts +5 -5
  28. package/src/webgpu/GaussianBlurNode.ts +3 -3
  29. package/src/webgpu/HighpVelocityNode.ts +8 -4
  30. package/src/webgpu/KawaseBlurNode.ts +3 -3
  31. package/src/webgpu/LensFlareNode.ts +10 -19
  32. package/src/webgpu/LensGlareNode.ts +8 -11
  33. package/src/webgpu/MipmapBlurNode.ts +7 -7
  34. package/src/webgpu/MipmapSurfaceBlurNode.ts +5 -6
  35. package/src/webgpu/OutputTexture3DNode.ts +1 -5
  36. package/src/webgpu/OutputTextureNode.ts +1 -4
  37. package/src/webgpu/RTTextureNode.ts +6 -8
  38. package/src/webgpu/TemporalAntialiasNode.ts +20 -23
  39. package/src/webgpu/accessors.ts +8 -10
  40. package/src/webgpu/generators.ts +7 -9
  41. package/src/webgpu/math.ts +13 -13
  42. package/src/webgpu/node.ts +3 -6
  43. package/src/webgpu/sampling.ts +3 -51
  44. package/src/webgpu/transformations.ts +30 -35
  45. package/src/webgpu/utils.ts +9 -9
  46. package/types/decorators.d.ts +2 -2
  47. package/types/webgpu/DownsampleThresholdNode.d.ts +4 -4
  48. package/types/webgpu/DualMipmapFilterNode.d.ts +2 -2
  49. package/types/webgpu/FnLayout.d.ts +3 -3
  50. package/types/webgpu/GaussianBlurNode.d.ts +2 -2
  51. package/types/webgpu/HighpVelocityNode.d.ts +2 -3
  52. package/types/webgpu/KawaseBlurNode.d.ts +2 -2
  53. package/types/webgpu/LensFlareNode.d.ts +4 -4
  54. package/types/webgpu/LensGhostNode.d.ts +1 -1
  55. package/types/webgpu/LensGlareNode.d.ts +5 -5
  56. package/types/webgpu/LensHaloNode.d.ts +2 -2
  57. package/types/webgpu/MipmapBlurNode.d.ts +4 -4
  58. package/types/webgpu/MipmapSurfaceBlurNode.d.ts +3 -3
  59. package/types/webgpu/OutputTexture3DNode.d.ts +1 -2
  60. package/types/webgpu/OutputTextureNode.d.ts +1 -2
  61. package/types/webgpu/RTTextureNode.d.ts +2 -3
  62. package/types/webgpu/SeparableFilterNode.d.ts +2 -2
  63. package/types/webgpu/SingleFilterNode.d.ts +1 -1
  64. package/types/webgpu/TemporalAntialiasNode.d.ts +6 -6
  65. package/types/webgpu/accessors.d.ts +8 -8
  66. package/types/webgpu/generators.d.ts +4 -4
  67. package/types/webgpu/node.d.ts +4 -5
  68. package/types/webgpu/sampling.d.ts +0 -1
  69. package/types/webgpu/transformations.d.ts +8 -8
  70. package/types/webgpu/utils.d.ts +1 -2
package/build/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { Loader as K, FileLoader as He, BufferGeometry as We, BufferAttribute as Wt, Box3 as Ve, Vector3 as U, Sphere as Ye, WebGLRenderer as Xe, LinearFilter as Vt, RGBAFormat as ke, ByteType as qe, UnsignedByteType as Yt, ShortType as Je, UnsignedShortType as $e, IntType as Qe, UnsignedIntType as Ze, HalfFloatType as Ke, FloatType as Xt, MathUtils as _, Material as pt, Data3DTexture as ue, DataTexture as tn, Quaternion as en, Matrix4 as nn, Ray as rn, RepeatWrapping as mt, NearestFilter as kt, RedFormat as sn, Vector2 as de } from "three";
2
- import { i as ye } from "./shared.js";
1
+ import { Loader as K, FileLoader as Ve, BufferGeometry as Ye, BufferAttribute as Wt, Box3 as Xe, Vector3 as U, Sphere as ke, WebGLRenderer as qe, LinearFilter as Vt, RGBAFormat as Je, ByteType as $e, UnsignedByteType as Yt, ShortType as Qe, UnsignedShortType as Ze, IntType as Ke, UnsignedIntType as tn, HalfFloatType as en, FloatType as Xt, MathUtils as _, Material as pt, Data3DTexture as de, DataTexture as nn, Quaternion as rn, Matrix4 as sn, Ray as on, RepeatWrapping as mt, NearestFilter as kt, RedFormat as cn, Vector2 as pe } from "three";
2
+ import { i as Ae } from "./shared.js";
3
3
  import { E as qt, G as V } from "./shared2.js";
4
- import { a as hs } from "./shared2.js";
5
- import { EXRLoader as pe } from "three/addons/loaders/EXRLoader.js";
6
- import { Q as ls } from "./shared3.js";
7
- class on extends K {
4
+ import { a as ls } from "./shared2.js";
5
+ import { EXRLoader as ge } from "three/addons/loaders/EXRLoader.js";
6
+ import { Q as ys } from "./shared3.js";
7
+ class an extends K {
8
8
  load(t, n, r, s) {
9
- const o = new He(this.manager);
9
+ const o = new Ve(this.manager);
10
10
  o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setPath(this.path), o.setWithCredentials(this.withCredentials), o.load(
11
11
  t,
12
12
  (i) => {
13
- ye(i instanceof ArrayBuffer);
13
+ Ae(i instanceof ArrayBuffer);
14
14
  try {
15
15
  n(i);
16
16
  } catch (c) {
@@ -22,7 +22,7 @@ class on extends K {
22
22
  );
23
23
  }
24
24
  }
25
- function _r(e) {
25
+ function Ir(e) {
26
26
  const { attributes: t, index: n, boundingBox: r, boundingSphere: s } = e;
27
27
  return [
28
28
  { attributes: t, index: n, boundingBox: r, boundingSphere: s },
@@ -34,7 +34,7 @@ function _r(e) {
34
34
  ].filter((o) => o != null)
35
35
  ];
36
36
  }
37
- function Er(e, t = new We()) {
37
+ function Or(e, t = new Ye()) {
38
38
  for (const [n, r] of Object.entries(e.attributes))
39
39
  t.setAttribute(
40
40
  n,
@@ -50,30 +50,30 @@ function Er(e, t = new We()) {
50
50
  e.index.normalized
51
51
  ) : null, e.boundingBox != null) {
52
52
  const { min: n, max: r } = e.boundingBox;
53
- t.boundingBox = new Ve(
53
+ t.boundingBox = new Xe(
54
54
  new U(n.x, n.y, n.z),
55
55
  new U(r.x, r.y, r.z)
56
56
  );
57
57
  }
58
58
  if (e.boundingSphere != null) {
59
59
  const { center: n, radius: r } = e.boundingSphere;
60
- t.boundingSphere = new Ye(
60
+ t.boundingSphere = new ke(
61
61
  new U(n.x, n.y, n.z),
62
62
  r
63
63
  );
64
64
  }
65
65
  return t;
66
66
  }
67
- function Ir(e) {
68
- return e instanceof Xe ? e.getContext().getExtension("OES_texture_float_linear") != null : e.backend.hasFeature?.("float32-filterable") ?? !1;
67
+ function Pr(e) {
68
+ return e instanceof qe ? e.getContext().getExtension("OES_texture_float_linear") != null : e.backend.hasFeature?.("float32-filterable") ?? !1;
69
69
  }
70
- const cn = 128, an = 128, hn = 64, fn = "9627216cc50057994c98a2118f3c4a23765d43b9", Or = `https://media.githubusercontent.com/media/takram-design-engineering/three-geospatial/${fn}/packages/core/assets/stbn.bin`, ln = "This is not an object", un = "This is not a Float16Array object", Jt = "This constructor is not a subclass of Float16Array", Ae = "The constructor property value is not an object", dn = "Species constructor didn't return TypedArray object", yn = "Derived constructor created TypedArray object which was too small length", J = "Attempting to access detached ArrayBuffer", xt = "Cannot convert undefined or null to object", Nt = "Cannot mix BigInt and other types, use explicit conversions", $t = "@@iterator property is not callable", Qt = "Reduce of empty array with no initial value", pn = "The comparison function must be either a function or undefined", St = "Offset is out of bounds";
70
+ const hn = 128, fn = 128, ln = 64, un = "9627216cc50057994c98a2118f3c4a23765d43b9", xr = `https://media.githubusercontent.com/media/takram-design-engineering/three-geospatial/${un}/packages/core/assets/stbn.bin`, yn = "This is not an object", dn = "This is not a Float16Array object", Jt = "This constructor is not a subclass of Float16Array", we = "The constructor property value is not an object", pn = "Species constructor didn't return TypedArray object", An = "Derived constructor created TypedArray object which was too small length", J = "Attempting to access detached ArrayBuffer", xt = "Cannot convert undefined or null to object", Nt = "Cannot mix BigInt and other types, use explicit conversions", $t = "@@iterator property is not callable", Qt = "Reduce of empty array with no initial value", gn = "The comparison function must be either a function or undefined", St = "Offset is out of bounds";
71
71
  function g(e) {
72
72
  return (t, ...n) => m(e, t, n);
73
73
  }
74
74
  function H(e, t) {
75
75
  return g(
76
- D(
76
+ v(
77
77
  e,
78
78
  t
79
79
  ).get
@@ -84,28 +84,28 @@ const {
84
84
  construct: k,
85
85
  defineProperty: Zt,
86
86
  get: _t,
87
- getOwnPropertyDescriptor: D,
87
+ getOwnPropertyDescriptor: v,
88
88
  getPrototypeOf: tt,
89
89
  has: Rt,
90
- ownKeys: ge,
90
+ ownKeys: Te,
91
91
  set: Kt,
92
- setPrototypeOf: we
93
- } = Reflect, An = Proxy, {
94
- EPSILON: gn,
92
+ setPrototypeOf: be
93
+ } = Reflect, wn = Proxy, {
94
+ EPSILON: Tn,
95
95
  MAX_SAFE_INTEGER: te,
96
- isFinite: Te,
96
+ isFinite: me,
97
97
  isNaN: G
98
98
  } = Number, {
99
99
  iterator: x,
100
- species: wn,
100
+ species: bn,
101
101
  toStringTag: Mt,
102
- for: Tn
102
+ for: mn
103
103
  } = Symbol, j = Object, {
104
104
  create: At,
105
105
  defineProperty: et,
106
- freeze: bn,
106
+ freeze: Sn,
107
107
  is: ee
108
- } = j, Lt = j.prototype, mn = (
108
+ } = j, Lt = j.prototype, _n = (
109
109
  /** @type {any} */
110
110
  Lt.__lookupGetter__ ? g(
111
111
  /** @type {any} */
@@ -117,7 +117,7 @@ const {
117
117
  );
118
118
  let n = j(e);
119
119
  do {
120
- const r = D(n, t);
120
+ const r = v(n, t);
121
121
  if (r !== void 0)
122
122
  return L(r, "get") ? r.get : void 0;
123
123
  } while ((n = tt(n)) !== null);
@@ -125,20 +125,20 @@ const {
125
125
  ), L = (
126
126
  /** @type {any} */
127
127
  j.hasOwn || g(Lt.hasOwnProperty)
128
- ), be = Array, me = be.isArray, gt = be.prototype, Sn = g(gt.join), _n = g(gt.push), En = g(
128
+ ), Se = Array, _e = Se.isArray, gt = Se.prototype, En = g(gt.join), In = g(gt.push), On = g(
129
129
  gt.toLocaleString
130
- ), Bt = gt[x], In = g(Bt), {
131
- abs: On,
132
- trunc: Se
133
- } = Math, wt = ArrayBuffer, Pn = wt.isView, _e = wt.prototype, xn = g(_e.slice), Nn = H(_e, "byteLength"), Ut = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : null, Rn = Ut && H(Ut.prototype, "byteLength"), vt = tt(Uint8Array), Ln = vt.from, b = vt.prototype, Un = b[x], Cn = g(b.keys), Fn = g(
130
+ ), Bt = gt[x], Pn = g(Bt), {
131
+ abs: xn,
132
+ trunc: Ee
133
+ } = Math, wt = ArrayBuffer, Nn = wt.isView, Ie = wt.prototype, Rn = g(Ie.slice), Ln = H(Ie, "byteLength"), Ut = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : null, Un = Ut && H(Ut.prototype, "byteLength"), Dt = tt(Uint8Array), Cn = Dt.from, b = Dt.prototype, Fn = b[x], Mn = g(b.keys), Bn = g(
134
134
  b.values
135
- ), Mn = g(
135
+ ), Dn = g(
136
136
  b.entries
137
- ), Bn = g(b.set), ne = g(
137
+ ), vn = g(b.set), ne = g(
138
138
  b.reverse
139
- ), vn = g(b.fill), Dn = g(
139
+ ), Gn = g(b.fill), jn = g(
140
140
  b.copyWithin
141
- ), re = g(b.sort), Y = g(b.slice), Gn = g(
141
+ ), re = g(b.sort), Y = g(b.slice), zn = g(
142
142
  b.subarray
143
143
  ), T = H(
144
144
  b,
@@ -146,19 +146,19 @@ const {
146
146
  ), C = H(
147
147
  b,
148
148
  "byteOffset"
149
- ), d = H(
149
+ ), y = H(
150
150
  b,
151
151
  "length"
152
- ), Ee = H(
152
+ ), Oe = H(
153
153
  b,
154
154
  Mt
155
- ), jn = Uint8Array, S = Uint16Array, se = (...e) => m(Ln, S, e), Dt = Uint32Array, zn = Float32Array, F = tt([][x]()), Tt = g(F.next), Hn = g((function* () {
156
- })().next), Wn = tt(F), Vn = DataView.prototype, Yn = g(
157
- Vn.getUint16
158
- ), w = TypeError, Et = RangeError, Ie = WeakSet, Oe = Ie.prototype, Xn = g(Oe.add), kn = g(Oe.has), bt = WeakMap, Gt = bt.prototype, at = g(Gt.get), qn = g(Gt.has), jt = g(Gt.set), Pe = new bt(), Jn = At(null, {
155
+ ), Hn = Uint8Array, S = Uint16Array, se = (...e) => m(Cn, S, e), vt = Uint32Array, Wn = Float32Array, F = tt([][x]()), Tt = g(F.next), Vn = g((function* () {
156
+ })().next), Yn = tt(F), Xn = DataView.prototype, kn = g(
157
+ Xn.getUint16
158
+ ), w = TypeError, Et = RangeError, Pe = WeakSet, xe = Pe.prototype, qn = g(xe.add), Jn = g(xe.has), bt = WeakMap, Gt = bt.prototype, at = g(Gt.get), $n = g(Gt.has), jt = g(Gt.set), Ne = new bt(), Qn = At(null, {
159
159
  next: {
160
160
  value: function() {
161
- const t = at(Pe, this);
161
+ const t = at(Ne, this);
162
162
  return Tt(t);
163
163
  }
164
164
  },
@@ -171,24 +171,24 @@ const {
171
171
  function q(e) {
172
172
  if (e[x] === Bt && F.next === Tt)
173
173
  return e;
174
- const t = At(Jn);
175
- return jt(Pe, t, In(e)), t;
174
+ const t = At(Qn);
175
+ return jt(Ne, t, Pn(e)), t;
176
176
  }
177
- const xe = new bt(), Ne = At(Wn, {
177
+ const Re = new bt(), Le = At(Yn, {
178
178
  next: {
179
179
  value: function() {
180
- const t = at(xe, this);
181
- return Hn(t);
180
+ const t = at(Re, this);
181
+ return Vn(t);
182
182
  },
183
183
  writable: !0,
184
184
  configurable: !0
185
185
  }
186
186
  });
187
- for (const e of ge(F))
188
- e !== "next" && et(Ne, e, D(F, e));
187
+ for (const e of Te(F))
188
+ e !== "next" && et(Le, e, v(F, e));
189
189
  function oe(e) {
190
- const t = At(Ne);
191
- return jt(xe, t, e), t;
190
+ const t = At(Le);
191
+ return jt(Re, t, e), t;
192
192
  }
193
193
  function ht(e) {
194
194
  return e !== null && typeof e == "object" || typeof e == "function";
@@ -197,15 +197,15 @@ function ie(e) {
197
197
  return e !== null && typeof e == "object";
198
198
  }
199
199
  function ft(e) {
200
- return Ee(e) !== void 0;
200
+ return Oe(e) !== void 0;
201
201
  }
202
202
  function Ct(e) {
203
- const t = Ee(e);
203
+ const t = Oe(e);
204
204
  return t === "BigInt64Array" || t === "BigUint64Array";
205
205
  }
206
- function $n(e) {
206
+ function Zn(e) {
207
207
  try {
208
- return me(e) ? !1 : (Nn(
208
+ return _e(e) ? !1 : (Ln(
209
209
  /** @type {any} */
210
210
  e
211
211
  ), !0);
@@ -213,11 +213,11 @@ function $n(e) {
213
213
  return !1;
214
214
  }
215
215
  }
216
- function Re(e) {
216
+ function Ue(e) {
217
217
  if (Ut === null)
218
218
  return !1;
219
219
  try {
220
- return Rn(
220
+ return Un(
221
221
  /** @type {any} */
222
222
  e
223
223
  ), !0;
@@ -225,23 +225,23 @@ function Re(e) {
225
225
  return !1;
226
226
  }
227
227
  }
228
- function Qn(e) {
229
- return $n(e) || Re(e);
228
+ function Kn(e) {
229
+ return Zn(e) || Ue(e);
230
230
  }
231
231
  function ce(e) {
232
- return me(e) ? e[x] === Bt && F.next === Tt : !1;
232
+ return _e(e) ? e[x] === Bt && F.next === Tt : !1;
233
233
  }
234
- function Zn(e) {
235
- return ft(e) ? e[x] === Un && F.next === Tt : !1;
234
+ function tr(e) {
235
+ return ft(e) ? e[x] === Fn && F.next === Tt : !1;
236
236
  }
237
237
  function nt(e) {
238
238
  if (typeof e != "string")
239
239
  return !1;
240
240
  const t = +e;
241
- return e !== t + "" || !Te(t) ? !1 : t === Se(t);
241
+ return e !== t + "" || !me(t) ? !1 : t === Ee(t);
242
242
  }
243
- const lt = Tn("__Float16Array__");
244
- function Kn(e) {
243
+ const lt = mn("__Float16Array__");
244
+ function er(e) {
245
245
  if (!ie(e))
246
246
  return !1;
247
247
  const t = tt(e);
@@ -251,35 +251,35 @@ function Kn(e) {
251
251
  if (n === void 0)
252
252
  return !1;
253
253
  if (!ht(n))
254
- throw w(Ae);
254
+ throw w(we);
255
255
  return Rt(n, lt);
256
256
  }
257
- const Ft = 1 / gn;
258
- function tr(e) {
257
+ const Ft = 1 / Tn;
258
+ function nr(e) {
259
259
  return e + Ft - Ft;
260
260
  }
261
- const Le = 6103515625e-14, er = 65504, Ue = 9765625e-10, ae = Ue * Le, nr = Ue * Ft;
262
- function rr(e) {
261
+ const Ce = 6103515625e-14, rr = 65504, Fe = 9765625e-10, ae = Fe * Ce, sr = Fe * Ft;
262
+ function or(e) {
263
263
  const t = +e;
264
- if (!Te(t) || t === 0)
264
+ if (!me(t) || t === 0)
265
265
  return t;
266
- const n = t > 0 ? 1 : -1, r = On(t);
267
- if (r < Le)
268
- return n * tr(r / ae) * ae;
269
- const s = (1 + nr) * r, o = s - (s - r);
270
- return o > er || G(o) ? n * (1 / 0) : n * o;
266
+ const n = t > 0 ? 1 : -1, r = xn(t);
267
+ if (r < Ce)
268
+ return n * nr(r / ae) * ae;
269
+ const s = (1 + sr) * r, o = s - (s - r);
270
+ return o > rr || G(o) ? n * (1 / 0) : n * o;
271
271
  }
272
- const Ce = new wt(4), Fe = new zn(Ce), Me = new Dt(Ce), E = new S(512), I = new jn(512);
272
+ const Me = new wt(4), Be = new Wn(Me), De = new vt(Me), E = new S(512), I = new Hn(512);
273
273
  for (let e = 0; e < 256; ++e) {
274
274
  const t = e - 127;
275
275
  t < -24 ? (E[e] = 0, E[e | 256] = 32768, I[e] = 24, I[e | 256] = 24) : t < -14 ? (E[e] = 1024 >> -t - 14, E[e | 256] = 1024 >> -t - 14 | 32768, I[e] = -t - 1, I[e | 256] = -t - 1) : t <= 15 ? (E[e] = t + 15 << 10, E[e | 256] = t + 15 << 10 | 32768, I[e] = 13, I[e | 256] = 13) : t < 128 ? (E[e] = 31744, E[e | 256] = 64512, I[e] = 24, I[e | 256] = 24) : (E[e] = 31744, E[e | 256] = 64512, I[e] = 13, I[e | 256] = 13);
276
276
  }
277
277
  function P(e) {
278
- Fe[0] = rr(e);
279
- const t = Me[0], n = t >> 23 & 511;
278
+ Be[0] = or(e);
279
+ const t = De[0], n = t >> 23 & 511;
280
280
  return E[n] + ((t & 8388607) >> I[n]);
281
281
  }
282
- const zt = new Dt(2048);
282
+ const zt = new vt(2048);
283
283
  for (let e = 1; e < 1024; ++e) {
284
284
  let t = e << 13, n = 0;
285
285
  for (; (t & 8388608) === 0; )
@@ -288,7 +288,7 @@ for (let e = 1; e < 1024; ++e) {
288
288
  }
289
289
  for (let e = 1024; e < 2048; ++e)
290
290
  zt[e] = 939524096 + (e - 1024 << 13);
291
- const W = new Dt(64);
291
+ const W = new vt(64);
292
292
  for (let e = 1; e < 31; ++e)
293
293
  W[e] = e << 23;
294
294
  W[31] = 1199570944;
@@ -296,16 +296,16 @@ W[32] = 2147483648;
296
296
  for (let e = 33; e < 63; ++e)
297
297
  W[e] = 2147483648 + (e - 32 << 23);
298
298
  W[63] = 3347054592;
299
- const Be = new S(64);
299
+ const ve = new S(64);
300
300
  for (let e = 1; e < 64; ++e)
301
- e !== 32 && (Be[e] = 1024);
302
- function y(e) {
301
+ e !== 32 && (ve[e] = 1024);
302
+ function d(e) {
303
303
  const t = e >> 10;
304
- return Me[0] = zt[Be[t] + (e & 1023)] + W[t], Fe[0];
304
+ return De[0] = zt[ve[t] + (e & 1023)] + W[t], Be[0];
305
305
  }
306
306
  function R(e) {
307
307
  const t = +e;
308
- return G(t) || t === 0 ? 0 : Se(t);
308
+ return G(t) || t === 0 ? 0 : Ee(t);
309
309
  }
310
310
  function It(e) {
311
311
  const t = R(e);
@@ -313,20 +313,20 @@ function It(e) {
313
313
  }
314
314
  function rt(e, t) {
315
315
  if (!ht(e))
316
- throw w(ln);
316
+ throw w(yn);
317
317
  const n = e.constructor;
318
318
  if (n === void 0)
319
319
  return t;
320
320
  if (!ht(n))
321
- throw w(Ae);
322
- const r = n[wn];
321
+ throw w(we);
322
+ const r = n[bn];
323
323
  return r ?? t;
324
324
  }
325
325
  function $(e) {
326
- if (Re(e))
326
+ if (Ue(e))
327
327
  return !1;
328
328
  try {
329
- return xn(e, 0, 0), !1;
329
+ return Rn(e, 0, 0), !1;
330
330
  } catch {
331
331
  }
332
332
  return !0;
@@ -351,27 +351,27 @@ function he(e, t) {
351
351
  return 0;
352
352
  }
353
353
  const Ht = 2, ut = new bt();
354
- function v(e) {
355
- return qn(ut, e) || !Pn(e) && Kn(e);
354
+ function D(e) {
355
+ return $n(ut, e) || !Nn(e) && er(e);
356
356
  }
357
357
  function u(e) {
358
- if (!v(e))
359
- throw w(un);
358
+ if (!D(e))
359
+ throw w(dn);
360
360
  }
361
361
  function st(e, t) {
362
- const n = v(e), r = ft(e);
362
+ const n = D(e), r = ft(e);
363
363
  if (!n && !r)
364
- throw w(dn);
364
+ throw w(pn);
365
365
  if (typeof t == "number") {
366
366
  let s;
367
367
  if (n) {
368
368
  const o = l(e);
369
- s = d(o);
369
+ s = y(o);
370
370
  } else
371
- s = d(e);
371
+ s = y(e);
372
372
  if (s < t)
373
373
  throw w(
374
- yn
374
+ An
375
375
  );
376
376
  }
377
377
  if (Ct(e))
@@ -401,33 +401,33 @@ function l(e) {
401
401
  return at(ut, r);
402
402
  }
403
403
  function fe(e) {
404
- const t = d(e), n = [];
404
+ const t = y(e), n = [];
405
405
  for (let r = 0; r < t; ++r)
406
- n[r] = y(e[r]);
406
+ n[r] = d(e[r]);
407
407
  return n;
408
408
  }
409
- const ve = new Ie();
410
- for (const e of ge(b)) {
409
+ const Ge = new Pe();
410
+ for (const e of Te(b)) {
411
411
  if (e === Mt)
412
412
  continue;
413
- const t = D(b, e);
414
- L(t, "get") && typeof t.get == "function" && Xn(ve, t.get);
413
+ const t = v(b, e);
414
+ L(t, "get") && typeof t.get == "function" && qn(Ge, t.get);
415
415
  }
416
- const sr = bn(
416
+ const ir = Sn(
417
417
  /** @type {ProxyHandler<Float16BitsArray>} */
418
418
  {
419
419
  get(e, t, n) {
420
- return nt(t) && L(e, t) ? y(_t(e, t)) : kn(ve, mn(e, t)) ? _t(e, t) : _t(e, t, n);
420
+ return nt(t) && L(e, t) ? d(_t(e, t)) : Jn(Ge, _n(e, t)) ? _t(e, t) : _t(e, t, n);
421
421
  },
422
422
  set(e, t, n, r) {
423
423
  return nt(t) && L(e, t) ? Kt(e, t, P(n)) : Kt(e, t, n, r);
424
424
  },
425
425
  getOwnPropertyDescriptor(e, t) {
426
426
  if (nt(t) && L(e, t)) {
427
- const n = D(e, t);
428
- return n.value = y(n.value), n;
427
+ const n = v(e, t);
428
+ return n.value = d(n.value), n;
429
429
  }
430
- return D(e, t);
430
+ return v(e, t);
431
431
  },
432
432
  defineProperty(e, t, n) {
433
433
  return nt(t) && L(e, t) && L(n, "value") && (n.value = P(n.value)), Zt(e, t, n);
@@ -438,12 +438,12 @@ class A {
438
438
  /** @see https://tc39.es/ecma262/#sec-typedarray */
439
439
  constructor(t, n, r) {
440
440
  let s;
441
- if (v(t))
441
+ if (D(t))
442
442
  s = k(S, [l(t)], new.target);
443
- else if (ht(t) && !Qn(t)) {
443
+ else if (ht(t) && !Kn(t)) {
444
444
  let i, c;
445
445
  if (ft(t)) {
446
- i = t, c = d(t);
446
+ i = t, c = y(t);
447
447
  const a = T(t);
448
448
  if ($(a))
449
449
  throw w(J);
@@ -467,7 +467,7 @@ class A {
467
467
  s = k(S, arguments, new.target);
468
468
  const o = (
469
469
  /** @type {any} */
470
- new An(s, sr)
470
+ new wn(s, ir)
471
471
  );
472
472
  return jt(ut, o, s), o;
473
473
  }
@@ -482,11 +482,11 @@ class A {
482
482
  Jt
483
483
  );
484
484
  if (r === A) {
485
- if (v(t) && n.length === 0) {
485
+ if (D(t) && n.length === 0) {
486
486
  const f = l(t), p = new S(
487
487
  T(f),
488
488
  C(f),
489
- d(f)
489
+ y(f)
490
490
  );
491
491
  return new A(
492
492
  T(Y(p))
@@ -514,7 +514,7 @@ class A {
514
514
  if (i != null && typeof i != "function")
515
515
  throw w($t);
516
516
  if (i != null)
517
- ce(t) ? (s = t, o = t.length) : Zn(t) ? (s = t, o = d(t)) : (s = [...t], o = s.length);
517
+ ce(t) ? (s = t, o = t.length) : tr(t) ? (s = t, o = y(t)) : (s = [...t], o = s.length);
518
518
  else {
519
519
  if (t == null)
520
520
  throw w(
@@ -560,7 +560,7 @@ class A {
560
560
  keys() {
561
561
  u(this);
562
562
  const t = l(this);
563
- return Cn(t);
563
+ return Mn(t);
564
564
  }
565
565
  /**
566
566
  * limitation: returns a object whose prototype is not `%ArrayIteratorPrototype%`
@@ -570,8 +570,8 @@ class A {
570
570
  u(this);
571
571
  const t = l(this);
572
572
  return oe((function* () {
573
- for (const n of Fn(t))
574
- yield y(n);
573
+ for (const n of Bn(t))
574
+ yield d(n);
575
575
  })());
576
576
  }
577
577
  /**
@@ -582,30 +582,30 @@ class A {
582
582
  u(this);
583
583
  const t = l(this);
584
584
  return oe((function* () {
585
- for (const [n, r] of Mn(t))
585
+ for (const [n, r] of Dn(t))
586
586
  yield (
587
587
  /** @type {[number, number]} */
588
- [n, y(r)]
588
+ [n, d(r)]
589
589
  );
590
590
  })());
591
591
  }
592
592
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.at */
593
593
  at(t) {
594
594
  u(this);
595
- const n = l(this), r = d(n), s = R(t), o = s >= 0 ? s : r + s;
595
+ const n = l(this), r = y(n), s = R(t), o = s >= 0 ? s : r + s;
596
596
  if (!(o < 0 || o >= r))
597
- return y(n[o]);
597
+ return d(n[o]);
598
598
  }
599
599
  /** @see https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with */
600
600
  with(t, n) {
601
601
  u(this);
602
- const r = l(this), s = d(r), o = R(t), i = o >= 0 ? o : s + o, c = +n;
602
+ const r = l(this), s = y(r), o = R(t), i = o >= 0 ? o : s + o, c = +n;
603
603
  if (i < 0 || i >= s)
604
604
  throw Et(St);
605
605
  const a = new S(
606
606
  T(r),
607
607
  C(r),
608
- d(r)
608
+ y(r)
609
609
  ), h = new A(
610
610
  T(
611
611
  Y(a)
@@ -616,11 +616,11 @@ class A {
616
616
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.map */
617
617
  map(t, ...n) {
618
618
  u(this);
619
- const r = l(this), s = d(r), o = n[0], i = rt(r, A);
619
+ const r = l(this), s = y(r), o = n[0], i = rt(r, A);
620
620
  if (i === A) {
621
621
  const a = new A(s), h = l(a);
622
622
  for (let f = 0; f < s; ++f) {
623
- const p = y(r[f]);
623
+ const p = d(r[f]);
624
624
  h[f] = P(
625
625
  m(t, o, [p, f, this])
626
626
  );
@@ -630,7 +630,7 @@ class A {
630
630
  const c = new i(s);
631
631
  st(c, s);
632
632
  for (let a = 0; a < s; ++a) {
633
- const h = y(r[a]);
633
+ const h = d(r[a]);
634
634
  c[a] = m(t, o, [h, a, this]);
635
635
  }
636
636
  return (
@@ -641,10 +641,10 @@ class A {
641
641
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter */
642
642
  filter(t, ...n) {
643
643
  u(this);
644
- const r = l(this), s = d(r), o = n[0], i = [];
644
+ const r = l(this), s = y(r), o = n[0], i = [];
645
645
  for (let h = 0; h < s; ++h) {
646
- const f = y(r[h]);
647
- m(t, o, [f, h, this]) && _n(i, f);
646
+ const f = d(r[h]);
647
+ m(t, o, [f, h, this]) && In(i, f);
648
648
  }
649
649
  const c = rt(r, A), a = new c(i);
650
650
  return st(a), /** @type {any} */
@@ -653,15 +653,15 @@ class A {
653
653
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce */
654
654
  reduce(t, ...n) {
655
655
  u(this);
656
- const r = l(this), s = d(r);
656
+ const r = l(this), s = y(r);
657
657
  if (s === 0 && n.length === 0)
658
658
  throw w(Qt);
659
659
  let o, i;
660
- n.length === 0 ? (o = y(r[0]), i = 1) : (o = n[0], i = 0);
660
+ n.length === 0 ? (o = d(r[0]), i = 1) : (o = n[0], i = 0);
661
661
  for (let c = i; c < s; ++c)
662
662
  o = t(
663
663
  o,
664
- y(r[c]),
664
+ d(r[c]),
665
665
  c,
666
666
  this
667
667
  );
@@ -670,15 +670,15 @@ class A {
670
670
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright */
671
671
  reduceRight(t, ...n) {
672
672
  u(this);
673
- const r = l(this), s = d(r);
673
+ const r = l(this), s = y(r);
674
674
  if (s === 0 && n.length === 0)
675
675
  throw w(Qt);
676
676
  let o, i;
677
- n.length === 0 ? (o = y(r[s - 1]), i = s - 2) : (o = n[0], i = s - 1);
677
+ n.length === 0 ? (o = d(r[s - 1]), i = s - 2) : (o = n[0], i = s - 1);
678
678
  for (let c = i; c >= 0; --c)
679
679
  o = t(
680
680
  o,
681
- y(r[c]),
681
+ d(r[c]),
682
682
  c,
683
683
  this
684
684
  );
@@ -687,10 +687,10 @@ class A {
687
687
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.foreach */
688
688
  forEach(t, ...n) {
689
689
  u(this);
690
- const r = l(this), s = d(r), o = n[0];
690
+ const r = l(this), s = y(r), o = n[0];
691
691
  for (let i = 0; i < s; ++i)
692
692
  m(t, o, [
693
- y(r[i]),
693
+ d(r[i]),
694
694
  i,
695
695
  this
696
696
  ]);
@@ -698,9 +698,9 @@ class A {
698
698
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.find */
699
699
  find(t, ...n) {
700
700
  u(this);
701
- const r = l(this), s = d(r), o = n[0];
701
+ const r = l(this), s = y(r), o = n[0];
702
702
  for (let i = 0; i < s; ++i) {
703
- const c = y(r[i]);
703
+ const c = d(r[i]);
704
704
  if (m(t, o, [c, i, this]))
705
705
  return c;
706
706
  }
@@ -708,9 +708,9 @@ class A {
708
708
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.findindex */
709
709
  findIndex(t, ...n) {
710
710
  u(this);
711
- const r = l(this), s = d(r), o = n[0];
711
+ const r = l(this), s = y(r), o = n[0];
712
712
  for (let i = 0; i < s; ++i) {
713
- const c = y(r[i]);
713
+ const c = d(r[i]);
714
714
  if (m(t, o, [c, i, this]))
715
715
  return i;
716
716
  }
@@ -719,9 +719,9 @@ class A {
719
719
  /** @see https://tc39.es/proposal-array-find-from-last/index.html#sec-%typedarray%.prototype.findlast */
720
720
  findLast(t, ...n) {
721
721
  u(this);
722
- const r = l(this), s = d(r), o = n[0];
722
+ const r = l(this), s = y(r), o = n[0];
723
723
  for (let i = s - 1; i >= 0; --i) {
724
- const c = y(r[i]);
724
+ const c = d(r[i]);
725
725
  if (m(t, o, [c, i, this]))
726
726
  return c;
727
727
  }
@@ -729,9 +729,9 @@ class A {
729
729
  /** @see https://tc39.es/proposal-array-find-from-last/index.html#sec-%typedarray%.prototype.findlastindex */
730
730
  findLastIndex(t, ...n) {
731
731
  u(this);
732
- const r = l(this), s = d(r), o = n[0];
732
+ const r = l(this), s = y(r), o = n[0];
733
733
  for (let i = s - 1; i >= 0; --i) {
734
- const c = y(r[i]);
734
+ const c = d(r[i]);
735
735
  if (m(t, o, [c, i, this]))
736
736
  return i;
737
737
  }
@@ -740,10 +740,10 @@ class A {
740
740
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.every */
741
741
  every(t, ...n) {
742
742
  u(this);
743
- const r = l(this), s = d(r), o = n[0];
743
+ const r = l(this), s = y(r), o = n[0];
744
744
  for (let i = 0; i < s; ++i)
745
745
  if (!m(t, o, [
746
- y(r[i]),
746
+ d(r[i]),
747
747
  i,
748
748
  this
749
749
  ]))
@@ -753,10 +753,10 @@ class A {
753
753
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.some */
754
754
  some(t, ...n) {
755
755
  u(this);
756
- const r = l(this), s = d(r), o = n[0];
756
+ const r = l(this), s = y(r), o = n[0];
757
757
  for (let i = 0; i < s; ++i)
758
758
  if (m(t, o, [
759
- y(r[i]),
759
+ d(r[i]),
760
760
  i,
761
761
  this
762
762
  ]))
@@ -777,8 +777,8 @@ class A {
777
777
  throw w(
778
778
  Nt
779
779
  );
780
- if (v(t))
781
- return Bn(
780
+ if (D(t))
781
+ return vn(
782
782
  l(this),
783
783
  l(t),
784
784
  s
@@ -788,7 +788,7 @@ class A {
788
788
  if ($(a))
789
789
  throw w(J);
790
790
  }
791
- const o = d(r), i = j(t), c = It(i.length);
791
+ const o = y(r), i = j(t), c = It(i.length);
792
792
  if (s === 1 / 0 || c + s > o)
793
793
  throw Et(St);
794
794
  for (let a = 0; a < c; ++a)
@@ -806,7 +806,7 @@ class A {
806
806
  const t = l(this), n = new S(
807
807
  T(t),
808
808
  C(t),
809
- d(t)
809
+ y(t)
810
810
  ), r = new A(
811
811
  T(
812
812
  Y(n)
@@ -818,7 +818,7 @@ class A {
818
818
  fill(t, ...n) {
819
819
  u(this);
820
820
  const r = l(this);
821
- return vn(
821
+ return Gn(
822
822
  r,
823
823
  P(t),
824
824
  ...q(n)
@@ -828,48 +828,48 @@ class A {
828
828
  copyWithin(t, n, ...r) {
829
829
  u(this);
830
830
  const s = l(this);
831
- return Dn(s, t, n, ...q(r)), this;
831
+ return jn(s, t, n, ...q(r)), this;
832
832
  }
833
833
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort */
834
834
  sort(t) {
835
835
  u(this);
836
836
  const n = l(this), r = t !== void 0 ? t : he;
837
- return re(n, (s, o) => r(y(s), y(o))), this;
837
+ return re(n, (s, o) => r(d(s), d(o))), this;
838
838
  }
839
839
  /** @see https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSorted */
840
840
  toSorted(t) {
841
841
  u(this);
842
842
  const n = l(this);
843
843
  if (t !== void 0 && typeof t != "function")
844
- throw new w(pn);
844
+ throw new w(gn);
845
845
  const r = t !== void 0 ? t : he, s = new S(
846
846
  T(n),
847
847
  C(n),
848
- d(n)
848
+ y(n)
849
849
  ), o = new A(
850
850
  T(
851
851
  Y(s)
852
852
  )
853
853
  ), i = l(o);
854
- return re(i, (c, a) => r(y(c), y(a))), o;
854
+ return re(i, (c, a) => r(d(c), d(a))), o;
855
855
  }
856
856
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice */
857
857
  slice(t, n) {
858
858
  u(this);
859
859
  const r = l(this), s = rt(r, A);
860
860
  if (s === A) {
861
- const ze = new S(
861
+ const We = new S(
862
862
  T(r),
863
863
  C(r),
864
- d(r)
864
+ y(r)
865
865
  );
866
866
  return new A(
867
867
  T(
868
- Y(ze, t, n)
868
+ Y(We, t, n)
869
869
  )
870
870
  );
871
871
  }
872
- const o = d(r), i = R(t), c = n === void 0 ? o : R(n);
872
+ const o = y(r), i = R(t), c = n === void 0 ? o : R(n);
873
873
  let a;
874
874
  i === -1 / 0 ? a = 0 : i < 0 ? a = o + i > 0 ? o + i : 0 : a = o < i ? o : i;
875
875
  let h;
@@ -882,7 +882,7 @@ class A {
882
882
  throw w(J);
883
883
  let B = 0;
884
884
  for (; a < h; )
885
- p[B] = y(r[a]), ++a, ++B;
885
+ p[B] = d(r[a]), ++a, ++B;
886
886
  return (
887
887
  /** @type {any} */
888
888
  p
@@ -894,11 +894,11 @@ class A {
894
894
  const r = l(this), s = rt(r, A), o = new S(
895
895
  T(r),
896
896
  C(r),
897
- d(r)
898
- ), i = Gn(o, t, n), c = new s(
897
+ y(r)
898
+ ), i = zn(o, t, n), c = new s(
899
899
  T(i),
900
900
  C(i),
901
- d(i)
901
+ y(i)
902
902
  );
903
903
  return st(c), /** @type {any} */
904
904
  c;
@@ -906,40 +906,40 @@ class A {
906
906
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof */
907
907
  indexOf(t, ...n) {
908
908
  u(this);
909
- const r = l(this), s = d(r);
909
+ const r = l(this), s = y(r);
910
910
  let o = R(n[0]);
911
911
  if (o === 1 / 0)
912
912
  return -1;
913
913
  o < 0 && (o += s, o < 0 && (o = 0));
914
914
  for (let i = o; i < s; ++i)
915
- if (L(r, i) && y(r[i]) === t)
915
+ if (L(r, i) && d(r[i]) === t)
916
916
  return i;
917
917
  return -1;
918
918
  }
919
919
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof */
920
920
  lastIndexOf(t, ...n) {
921
921
  u(this);
922
- const r = l(this), s = d(r);
922
+ const r = l(this), s = y(r);
923
923
  let o = n.length >= 1 ? R(n[0]) : s - 1;
924
924
  if (o === -1 / 0)
925
925
  return -1;
926
926
  o >= 0 ? o = o < s - 1 ? o : s - 1 : o += s;
927
927
  for (let i = o; i >= 0; --i)
928
- if (L(r, i) && y(r[i]) === t)
928
+ if (L(r, i) && d(r[i]) === t)
929
929
  return i;
930
930
  return -1;
931
931
  }
932
932
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes */
933
933
  includes(t, ...n) {
934
934
  u(this);
935
- const r = l(this), s = d(r);
935
+ const r = l(this), s = y(r);
936
936
  let o = R(n[0]);
937
937
  if (o === 1 / 0)
938
938
  return !1;
939
939
  o < 0 && (o += s, o < 0 && (o = 0));
940
940
  const i = G(t);
941
941
  for (let c = o; c < s; ++c) {
942
- const a = y(r[c]);
942
+ const a = d(r[c]);
943
943
  if (i && G(a) || a === t)
944
944
  return !0;
945
945
  }
@@ -949,17 +949,17 @@ class A {
949
949
  join(t) {
950
950
  u(this);
951
951
  const n = l(this), r = fe(n);
952
- return Sn(r, t);
952
+ return En(r, t);
953
953
  }
954
954
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring */
955
955
  toLocaleString(...t) {
956
956
  u(this);
957
957
  const n = l(this), r = fe(n);
958
- return En(r, ...q(t));
958
+ return On(r, ...q(t));
959
959
  }
960
960
  /** @see https://tc39.es/ecma262/#sec-get-%typedarray%.prototype-@@tostringtag */
961
961
  get [Mt]() {
962
- if (v(this))
962
+ if (D(this))
963
963
  return (
964
964
  /** @type {any} */
965
965
  "Float16Array"
@@ -970,31 +970,31 @@ et(A, "BYTES_PER_ELEMENT", {
970
970
  value: Ht
971
971
  });
972
972
  et(A, lt, {});
973
- we(A, vt);
974
- const dt = A.prototype;
975
- et(dt, "BYTES_PER_ELEMENT", {
973
+ be(A, Dt);
974
+ const yt = A.prototype;
975
+ et(yt, "BYTES_PER_ELEMENT", {
976
976
  value: Ht
977
977
  });
978
- et(dt, x, {
979
- value: dt.values,
978
+ et(yt, x, {
979
+ value: yt.values,
980
980
  writable: !0,
981
981
  configurable: !0
982
982
  });
983
- we(dt, b);
984
- function or(e, t, ...n) {
985
- return y(
986
- Yn(e, t, ...q(n))
983
+ be(yt, b);
984
+ function cr(e, t, ...n) {
985
+ return d(
986
+ kn(e, t, ...q(n))
987
987
  );
988
988
  }
989
- function Pr(e) {
989
+ function Nr(e) {
990
990
  return e instanceof Int8Array || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof A || e instanceof Float32Array || e instanceof Float64Array;
991
991
  }
992
- class ir extends K {
992
+ class ar extends K {
993
993
  constructor(t, n) {
994
994
  super(n), this.parser = t;
995
995
  }
996
996
  load(t, n, r, s) {
997
- const o = new on(this.manager);
997
+ const o = new an(this.manager);
998
998
  o.setRequestHeader(this.requestHeader), o.setPath(this.path), o.setWithCredentials(this.withCredentials), o.load(
999
999
  t,
1000
1000
  (i) => {
@@ -1009,51 +1009,51 @@ class ir extends K {
1009
1009
  );
1010
1010
  }
1011
1011
  }
1012
- function cr(e) {
1013
- const t = e instanceof Int8Array ? qe : e instanceof Uint8Array ? Yt : e instanceof Uint8ClampedArray ? Yt : e instanceof Int16Array ? Je : e instanceof Uint16Array ? $e : e instanceof Int32Array ? Qe : e instanceof Uint32Array ? Ze : e instanceof A ? Ke : e instanceof Float32Array ? Xt : e instanceof Float64Array ? Xt : null;
1014
- return ye(t != null), t;
1012
+ function hr(e) {
1013
+ const t = e instanceof Int8Array ? $e : e instanceof Uint8Array ? Yt : e instanceof Uint8ClampedArray ? Yt : e instanceof Int16Array ? Qe : e instanceof Uint16Array ? Ze : e instanceof Int32Array ? Ke : e instanceof Uint32Array ? tn : e instanceof A ? en : e instanceof Float32Array ? Xt : e instanceof Float64Array ? Xt : null;
1014
+ return Ae(t != null), t;
1015
1015
  }
1016
- class ar extends K {
1016
+ class fr extends K {
1017
1017
  constructor(t, n, r = {}, s) {
1018
1018
  super(s), this.textureClass = t, this.parser = n, this.options = {
1019
- format: ke,
1019
+ format: Je,
1020
1020
  minFilter: Vt,
1021
1021
  magFilter: Vt,
1022
1022
  ...r
1023
1023
  };
1024
1024
  }
1025
1025
  load(t, n, r, s) {
1026
- const o = new this.textureClass(), i = new ir(this.parser, this.manager);
1026
+ const o = new this.textureClass(), i = new ar(this.parser, this.manager);
1027
1027
  return i.setRequestHeader(this.requestHeader), i.setPath(this.path), i.setWithCredentials(this.withCredentials), i.load(
1028
1028
  t,
1029
1029
  (c) => {
1030
1030
  o.image.data = c instanceof A ? new Uint16Array(c.buffer) : c;
1031
1031
  const { width: a, height: h, depth: f, ...p } = this.options;
1032
- a != null && (o.image.width = a), h != null && (o.image.height = h), "depth" in o.image && f != null && (o.image.depth = f), o.type = cr(c), Object.assign(o, p), o.needsUpdate = !0, n?.(o);
1032
+ a != null && (o.image.width = a), h != null && (o.image.height = h), "depth" in o.image && f != null && (o.image.depth = f), o.type = hr(c), Object.assign(o, p), o.needsUpdate = !0, n?.(o);
1033
1033
  },
1034
1034
  r,
1035
1035
  s
1036
1036
  ), o;
1037
1037
  }
1038
1038
  }
1039
- const z = _.clamp, xr = _.euclideanModulo, Nr = _.inverseLerp, Rr = _.lerp, Lr = _.degToRad, Ur = _.radToDeg, Cr = _.isPowerOfTwo, Fr = _.ceilPowerOfTwo, Mr = _.floorPowerOfTwo, Br = _.normalize;
1040
- function vr(e, t, n, r = 0, s = 1) {
1039
+ const z = _.clamp, Rr = _.euclideanModulo, Lr = _.inverseLerp, Ur = _.lerp, Cr = _.degToRad, Fr = _.radToDeg, Mr = _.isPowerOfTwo, Br = _.ceilPowerOfTwo, Dr = _.floorPowerOfTwo, vr = _.normalize;
1040
+ function Gr(e, t, n, r = 0, s = 1) {
1041
1041
  return _.mapLinear(e, t, n, r, s);
1042
1042
  }
1043
- function Dr(e, t, n, r = 0, s = 1) {
1043
+ function jr(e, t, n, r = 0, s = 1) {
1044
1044
  return z(_.mapLinear(e, t, n, r, s), r, s);
1045
1045
  }
1046
- function Gr(e, t, n) {
1046
+ function zr(e, t, n) {
1047
1047
  return n <= e ? 0 : n >= t ? 1 : (n = (n - e) / (t - e), n * n * (3 - 2 * n));
1048
1048
  }
1049
- function jr(e) {
1049
+ function Hr(e) {
1050
1050
  return Math.min(Math.max(e, 0), 1);
1051
1051
  }
1052
- function zr(e, t, n, r = n) {
1052
+ function Wr(e, t, n, r = n) {
1053
1053
  const s = Math.abs(e - t);
1054
1054
  return s <= r || s <= n * Math.max(Math.abs(e), Math.abs(t));
1055
1055
  }
1056
- function Hr(e) {
1056
+ function Vr(e) {
1057
1057
  return (t, n) => {
1058
1058
  t instanceof pt ? Object.defineProperty(t, n, {
1059
1059
  enumerable: !0,
@@ -1074,7 +1074,10 @@ function Hr(e) {
1074
1074
  });
1075
1075
  };
1076
1076
  }
1077
- function Wr(e, {
1077
+ function le(e) {
1078
+ return typeof e == "number" ? Math.floor(e) : typeof e == "string" ? parseInt(e, 10) : typeof e == "boolean" ? +e : 0;
1079
+ }
1080
+ function Yr(e, {
1078
1081
  min: t = Number.MIN_SAFE_INTEGER,
1079
1082
  max: n = Number.MAX_SAFE_INTEGER
1080
1083
  } = {}) {
@@ -1083,7 +1086,7 @@ function Wr(e, {
1083
1086
  enumerable: !0,
1084
1087
  get() {
1085
1088
  const o = this.defines?.[e];
1086
- return o != null ? parseInt(o, 10) : 0;
1089
+ return o != null ? le(o) : 0;
1087
1090
  },
1088
1091
  set(o) {
1089
1092
  const i = this[s];
@@ -1093,7 +1096,7 @@ function Wr(e, {
1093
1096
  enumerable: !0,
1094
1097
  get() {
1095
1098
  const o = this.defines.get(e);
1096
- return o != null ? parseInt(o, 10) : 0;
1099
+ return o != null ? le(o) : 0;
1097
1100
  },
1098
1101
  set(o) {
1099
1102
  const i = this[s];
@@ -1102,7 +1105,10 @@ function Wr(e, {
1102
1105
  });
1103
1106
  };
1104
1107
  }
1105
- function Vr(e, {
1108
+ function ue(e) {
1109
+ return typeof e == "number" ? e : typeof e == "string" ? parseFloat(e) : typeof e == "boolean" ? +e : 0;
1110
+ }
1111
+ function Xr(e, {
1106
1112
  min: t = -1 / 0,
1107
1113
  max: n = 1 / 0,
1108
1114
  precision: r = 7
@@ -1112,7 +1118,7 @@ function Vr(e, {
1112
1118
  enumerable: !0,
1113
1119
  get() {
1114
1120
  const i = this.defines?.[e];
1115
- return i != null ? parseFloat(i) : 0;
1121
+ return i != null ? ue(i) : 0;
1116
1122
  },
1117
1123
  set(i) {
1118
1124
  const c = this[o];
@@ -1122,7 +1128,7 @@ function Vr(e, {
1122
1128
  enumerable: !0,
1123
1129
  get() {
1124
1130
  const i = this.defines.get(e);
1125
- return i != null ? parseFloat(i) : 0;
1131
+ return i != null ? ue(i) : 0;
1126
1132
  },
1127
1133
  set(i) {
1128
1134
  const c = this[o];
@@ -1131,12 +1137,12 @@ function Vr(e, {
1131
1137
  });
1132
1138
  };
1133
1139
  }
1134
- function Yr(e, { validate: t } = {}) {
1140
+ function kr(e, { validate: t } = {}) {
1135
1141
  return (n, r) => {
1136
1142
  n instanceof pt ? Object.defineProperty(n, r, {
1137
1143
  enumerable: !0,
1138
1144
  get() {
1139
- return this.defines?.[e] ?? "";
1145
+ return this.defines?.[e];
1140
1146
  },
1141
1147
  set(s) {
1142
1148
  if (s !== this[r]) {
@@ -1150,7 +1156,7 @@ function Yr(e, { validate: t } = {}) {
1150
1156
  }) : Object.defineProperty(n, r, {
1151
1157
  enumerable: !0,
1152
1158
  get() {
1153
- return this.defines.get(e) ?? "";
1159
+ return this.defines.get(e);
1154
1160
  },
1155
1161
  set(s) {
1156
1162
  if (s !== this[r]) {
@@ -1164,7 +1170,7 @@ function Yr(e, { validate: t } = {}) {
1164
1170
  });
1165
1171
  };
1166
1172
  }
1167
- function Xr(e, ...t) {
1173
+ function qr(e, ...t) {
1168
1174
  const n = {};
1169
1175
  for (let r = 0; r < t.length; r += 2) {
1170
1176
  const s = t[r], o = t[r + 1];
@@ -1179,7 +1185,7 @@ function Xr(e, ...t) {
1179
1185
  }
1180
1186
  return Object.defineProperties(e, n), e;
1181
1187
  }
1182
- function kr(e, t, n) {
1188
+ function Jr(e, t, n) {
1183
1189
  const r = {};
1184
1190
  for (const s of n)
1185
1191
  r[s] = {
@@ -1191,12 +1197,12 @@ function kr(e, t, n) {
1191
1197
  };
1192
1198
  return Object.defineProperties(e, r), e;
1193
1199
  }
1194
- class qr extends K {
1200
+ class $r extends K {
1195
1201
  constructor(t = {}, n) {
1196
1202
  super(n), this.options = t;
1197
1203
  }
1198
1204
  load(t, n, r, s) {
1199
- const { width: o, height: i, depth: c } = this.options, a = new ue(null, o, i, c), h = new pe(this.manager);
1205
+ const { width: o, height: i, depth: c } = this.options, a = new de(null, o, i, c), h = new ge(this.manager);
1200
1206
  return h.setRequestHeader(this.requestHeader), h.setPath(this.path), h.setWithCredentials(this.withCredentials), h.load(
1201
1207
  t,
1202
1208
  (f) => {
@@ -1218,12 +1224,12 @@ class qr extends K {
1218
1224
  ), a;
1219
1225
  }
1220
1226
  }
1221
- class Jr extends K {
1227
+ class Qr extends K {
1222
1228
  constructor(t = {}, n) {
1223
1229
  super(n), this.options = t;
1224
1230
  }
1225
1231
  load(t, n, r, s) {
1226
- const { width: o, height: i } = this.options, c = new tn(null, o, i), a = new pe(this.manager);
1232
+ const { width: o, height: i } = this.options, c = new nn(null, o, i), a = new ge(this.manager);
1227
1233
  return a.setRequestHeader(this.requestHeader), a.setPath(this.path), a.setWithCredentials(this.withCredentials), a.load(
1228
1234
  t,
1229
1235
  (h) => {
@@ -1244,8 +1250,8 @@ class Jr extends K {
1244
1250
  ), c;
1245
1251
  }
1246
1252
  }
1247
- const Ot = 1e-6, ot = /* @__PURE__ */ new U(), it = /* @__PURE__ */ new U(), N = /* @__PURE__ */ new U(), X = /* @__PURE__ */ new U(), Pt = /* @__PURE__ */ new U(), hr = /* @__PURE__ */ new U(), fr = /* @__PURE__ */ new nn(), lr = /* @__PURE__ */ new en(), ur = /* @__PURE__ */ new rn();
1248
- class De {
1253
+ const Ot = 1e-6, ot = /* @__PURE__ */ new U(), it = /* @__PURE__ */ new U(), N = /* @__PURE__ */ new U(), X = /* @__PURE__ */ new U(), Pt = /* @__PURE__ */ new U(), lr = /* @__PURE__ */ new U(), ur = /* @__PURE__ */ new sn(), yr = /* @__PURE__ */ new rn(), dr = /* @__PURE__ */ new on();
1254
+ class je {
1249
1255
  constructor(t = 0, n = 0, r = 0, s = 0) {
1250
1256
  this.distance = t, this.heading = n, this.pitch = r, this.roll = s;
1251
1257
  }
@@ -1265,7 +1271,7 @@ class De {
1265
1271
  return this.distance = t, this.heading = n, this.pitch = r, s != null && (this.roll = s), this;
1266
1272
  }
1267
1273
  clone() {
1268
- return new De(this.distance, this.heading, this.pitch, this.roll);
1274
+ return new je(this.distance, this.heading, this.pitch, this.roll);
1269
1275
  }
1270
1276
  copy(t) {
1271
1277
  return this.distance = t.distance, this.heading = t.heading, this.pitch = t.pitch, this.roll = t.roll, this;
@@ -1286,15 +1292,15 @@ class De {
1286
1292
  if (n.copy(t).sub(i), this.roll !== 0) {
1287
1293
  const c = X.copy(t).sub(n).normalize();
1288
1294
  N.applyQuaternion(
1289
- lr.setFromAxisAngle(c, this.roll)
1295
+ yr.setFromAxisAngle(c, this.roll)
1290
1296
  );
1291
1297
  }
1292
1298
  r.setFromRotationMatrix(
1293
- fr.lookAt(n, t, N)
1299
+ ur.lookAt(n, t, N)
1294
1300
  );
1295
1301
  }
1296
1302
  setFromCamera(t, n = qt.WGS84) {
1297
- const r = X.setFromMatrixPosition(t.matrixWorld), s = Pt.set(0, 0, 0.5).unproject(t).sub(r).normalize(), o = n.getIntersection(ur.set(r, s));
1303
+ const r = X.setFromMatrixPosition(t.matrixWorld), s = Pt.set(0, 0, 0.5).unproject(t).sub(r).normalize(), o = n.getIntersection(dr.set(r, s));
1298
1304
  if (o == null)
1299
1305
  return;
1300
1306
  this.distance = r.distanceTo(o), n.getEastNorthUpVectors(
@@ -1306,7 +1312,7 @@ class De {
1306
1312
  it.dot(s),
1307
1313
  ot.dot(s)
1308
1314
  ), this.pitch = Math.asin(N.dot(s));
1309
- const i = X.copy(t.up).applyQuaternion(t.quaternion), c = hr.copy(s).multiplyScalar(-i.dot(s)).add(i).normalize(), a = X.copy(s).multiplyScalar(-N.dot(s)).add(N).normalize(), h = a.dot(c), f = s.dot(a.cross(c));
1315
+ const i = X.copy(t.up).applyQuaternion(t.quaternion), c = lr.copy(s).multiplyScalar(-i.dot(s)).add(i).normalize(), a = X.copy(s).multiplyScalar(-N.dot(s)).add(N).normalize(), h = a.dot(c), f = s.dot(a.cross(c));
1310
1316
  return this.roll = Math.atan2(f, h), this;
1311
1317
  }
1312
1318
  }
@@ -1355,60 +1361,60 @@ Q.MAX = /* @__PURE__ */ new Q(
1355
1361
  V.MAX_LONGITUDE,
1356
1362
  V.MAX_LATITUDE
1357
1363
  );
1358
- let yt = Q;
1359
- const dr = /^[ \t]*#include +"([\w\d./]+)"/gm;
1360
- function yr(e, t) {
1361
- return e.replace(dr, (n, r) => {
1364
+ let dt = Q;
1365
+ const pr = /^[ \t]*#include +"([\w\d./]+)"/gm;
1366
+ function Ar(e, t) {
1367
+ return e.replace(pr, (n, r) => {
1362
1368
  const o = r.split("/").reduce(
1363
1369
  (i, c) => typeof i != "string" && i != null ? i[c] : void 0,
1364
1370
  t
1365
1371
  );
1366
1372
  if (typeof o != "string")
1367
1373
  throw new Error(`Could not find include for ${r}.`);
1368
- return yr(o, t);
1374
+ return Ar(o, t);
1369
1375
  });
1370
1376
  }
1371
1377
  let ct;
1372
- function pr() {
1378
+ function gr() {
1373
1379
  if (ct != null)
1374
1380
  return ct;
1375
1381
  const e = new Uint32Array([268435456]);
1376
1382
  return ct = new Uint8Array(e.buffer, e.byteOffset, e.byteLength)[0] === 0, ct;
1377
1383
  }
1378
1384
  function M(e, t, n, r = !0) {
1379
- if (r === pr())
1385
+ if (r === gr())
1380
1386
  return new t(e);
1381
1387
  const s = Object.assign(new DataView(e), {
1382
1388
  getFloat16(i, c) {
1383
- return or(this, i, c);
1389
+ return cr(this, i, c);
1384
1390
  }
1385
1391
  }), o = new t(s.byteLength / t.BYTES_PER_ELEMENT);
1386
1392
  for (let i = 0, c = 0; i < o.length; ++i, c += t.BYTES_PER_ELEMENT)
1387
1393
  o[i] = s[n](c, r);
1388
1394
  return o;
1389
1395
  }
1390
- const Ar = (e) => new Uint8Array(e), $r = (e) => new Int8Array(e), Qr = (e, t) => M(e, Uint16Array, "getUint16", t), Zr = (e, t) => M(e, Int16Array, "getInt16", t), Kr = (e, t) => M(e, Int32Array, "getInt32", t), ts = (e, t) => M(e, Uint32Array, "getUint32", t), es = (e, t) => M(e, A, "getFloat16", t), ns = (e, t) => M(e, Float32Array, "getFloat32", t), rs = (e, t) => M(e, Float64Array, "getFloat64", t);
1391
- class ss extends ar {
1396
+ const wr = (e) => new Uint8Array(e), Zr = (e) => new Int8Array(e), Kr = (e, t) => M(e, Uint16Array, "getUint16", t), ts = (e, t) => M(e, Int16Array, "getInt16", t), es = (e, t) => M(e, Int32Array, "getInt32", t), ns = (e, t) => M(e, Uint32Array, "getUint32", t), rs = (e, t) => M(e, A, "getFloat16", t), ss = (e, t) => M(e, Float32Array, "getFloat32", t), os = (e, t) => M(e, Float64Array, "getFloat64", t);
1397
+ class is extends fr {
1392
1398
  constructor(t) {
1393
1399
  super(
1394
- ue,
1395
- Ar,
1400
+ de,
1401
+ wr,
1396
1402
  {
1397
- format: sn,
1403
+ format: cn,
1398
1404
  minFilter: kt,
1399
1405
  magFilter: kt,
1400
1406
  wrapS: mt,
1401
1407
  wrapT: mt,
1402
1408
  wrapR: mt,
1403
- width: cn,
1404
- height: an,
1405
- depth: hn
1409
+ width: hn,
1410
+ height: fn,
1411
+ depth: ln
1406
1412
  },
1407
1413
  t
1408
1414
  );
1409
1415
  }
1410
1416
  }
1411
- function* Ge(e, t, n, r, s) {
1417
+ function* ze(e, t, n, r, s) {
1412
1418
  if (n >= r)
1413
1419
  return;
1414
1420
  const o = 2 ** n, i = n + 1, c = 2 ** i, a = Math.floor(e / o * c), h = Math.floor(t / o * c), f = [
@@ -1419,7 +1425,7 @@ function* Ge(e, t, n, r, s) {
1419
1425
  ];
1420
1426
  if (i < r)
1421
1427
  for (const p of f)
1422
- for (const O of Ge(...p, r, s))
1428
+ for (const O of ze(...p, r, s))
1423
1429
  yield O;
1424
1430
  else
1425
1431
  for (const p of f)
@@ -1447,7 +1453,7 @@ class Z {
1447
1453
  }
1448
1454
  *traverseChildren(t, n) {
1449
1455
  const { x: r, y: s, z: o } = this;
1450
- for (const i of Ge(r, s, o, o + t, n))
1456
+ for (const i of ze(r, s, o, o + t, n))
1451
1457
  yield i;
1452
1458
  }
1453
1459
  fromArray(t, n = 0) {
@@ -1460,23 +1466,23 @@ class Z {
1460
1466
  yield this.x, yield this.y, yield this.z;
1461
1467
  }
1462
1468
  }
1463
- const le = /* @__PURE__ */ new de();
1464
- class je {
1465
- constructor(t = 2, n = 1, r = yt.MAX) {
1469
+ const ye = /* @__PURE__ */ new pe();
1470
+ class He {
1471
+ constructor(t = 2, n = 1, r = dt.MAX) {
1466
1472
  this.width = t, this.height = n, this.rectangle = r;
1467
1473
  }
1468
1474
  clone() {
1469
- return new je(this.width, this.height, this.rectangle.clone());
1475
+ return new He(this.width, this.height, this.rectangle.clone());
1470
1476
  }
1471
1477
  copy(t) {
1472
1478
  return this.width = t.width, this.height = t.height, this.rectangle.copy(t.rectangle), this;
1473
1479
  }
1474
- getSize(t, n = new de()) {
1480
+ getSize(t, n = new pe()) {
1475
1481
  return n.set(this.width << t, this.height << t);
1476
1482
  }
1477
1483
  // Reference: https://github.com/CesiumGS/cesium/blob/1.122/packages/engine/Source/Core/GeographicTilingScheme.js#L210
1478
1484
  getTile(t, n, r = new Z()) {
1479
- const s = this.getSize(n, le), { rectangle: o } = this, i = o.width / s.x, c = o.height / s.y, { west: a, south: h, east: f } = o;
1485
+ const s = this.getSize(n, ye), { rectangle: o } = this, i = o.width / s.x, c = o.height / s.y, { west: a, south: h, east: f } = o;
1480
1486
  let p = t.longitude;
1481
1487
  f < a && (p += Math.PI * 2);
1482
1488
  let O = Math.floor((p - a) / i);
@@ -1485,79 +1491,79 @@ class je {
1485
1491
  return B >= s.y && (B = s.y - 1), r.x = O, r.y = B, r.z = n, r;
1486
1492
  }
1487
1493
  // Reference: https://github.com/CesiumGS/cesium/blob/1.122/packages/engine/Source/Core/GeographicTilingScheme.js#L169
1488
- getRectangle(t, n = new yt()) {
1489
- const r = this.getSize(t.z, le), { rectangle: s } = this, o = s.width / r.x, i = s.height / r.y, { west: c, north: a } = s;
1494
+ getRectangle(t, n = new dt()) {
1495
+ const r = this.getSize(t.z, ye), { rectangle: s } = this, o = s.width / r.x, i = s.height / r.y, { west: c, north: a } = s;
1490
1496
  return n.west = t.x * o + c, n.east = (t.x + 1) * o + c, n.north = a - (r.y - t.y - 1) * i, n.south = a - (r.y - t.y) * i, n;
1491
1497
  }
1492
1498
  }
1493
- function os(e) {
1499
+ function cs(e) {
1494
1500
  }
1495
- const gr = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*(?:i\s*\+\+|\+\+\s*i)\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
1496
- function wr(e, t, n, r) {
1501
+ const Tr = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*(?:i\s*\+\+|\+\+\s*i)\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
1502
+ function br(e, t, n, r) {
1497
1503
  let s = "";
1498
1504
  for (let o = parseInt(t, 10); o < parseInt(n, 10); ++o)
1499
1505
  s += r.replace(/\[\s*i\s*\]/g, "[" + o + "]").replace(/UNROLLED_LOOP_INDEX/g, `${o}`);
1500
1506
  return s;
1501
1507
  }
1502
- function is(e) {
1503
- return e.replace(gr, wr);
1508
+ function as(e) {
1509
+ return e.replace(Tr, br);
1504
1510
  }
1505
1511
  export {
1506
- on as ArrayBufferLoader,
1507
- Or as DEFAULT_STBN_URL,
1508
- ar as DataTextureLoader,
1509
- qr as EXR3DTextureLoader,
1510
- Jr as EXRTextureLoader,
1512
+ an as ArrayBufferLoader,
1513
+ xr as DEFAULT_STBN_URL,
1514
+ fr as DataTextureLoader,
1515
+ $r as EXR3DTextureLoader,
1516
+ Qr as EXRTextureLoader,
1511
1517
  qt as Ellipsoid,
1512
- hs as EllipsoidGeometry,
1518
+ ls as EllipsoidGeometry,
1513
1519
  A as Float16Array,
1514
1520
  V as Geodetic,
1515
- De as PointOfView,
1516
- ls as QuadGeometry,
1517
- yt as Rectangle,
1518
- ss as STBNLoader,
1519
- hn as STBN_TEXTURE_DEPTH,
1520
- an as STBN_TEXTURE_HEIGHT,
1521
- cn as STBN_TEXTURE_WIDTH,
1521
+ je as PointOfView,
1522
+ ys as QuadGeometry,
1523
+ dt as Rectangle,
1524
+ is as STBNLoader,
1525
+ ln as STBN_TEXTURE_DEPTH,
1526
+ fn as STBN_TEXTURE_HEIGHT,
1527
+ hn as STBN_TEXTURE_WIDTH,
1522
1528
  Z as TileCoordinate,
1523
- je as TilingScheme,
1524
- ir as TypedArrayLoader,
1525
- Fr as ceilPowerOfTwo,
1529
+ He as TilingScheme,
1530
+ ar as TypedArrayLoader,
1531
+ Br as ceilPowerOfTwo,
1526
1532
  z as clamp,
1527
- zr as closeTo,
1528
- Hr as define,
1529
- Yr as defineExpression,
1530
- Vr as defineFloat,
1531
- Wr as defineInt,
1532
- Xr as definePropertyShorthand,
1533
- kr as defineUniformShorthand,
1534
- Ur as degrees,
1535
- xr as euclideanModulo,
1536
- Mr as floorPowerOfTwo,
1537
- Er as fromBufferGeometryLike,
1538
- Nr as inverseLerp,
1539
- Ir as isFloatLinearSupported,
1540
- Cr as isPowerOfTwo,
1541
- Pr as isTypedArray,
1542
- Rr as lerp,
1543
- Br as normalize,
1544
- es as parseFloat16Array,
1545
- ns as parseFloat32Array,
1546
- rs as parseFloat64Array,
1547
- Zr as parseInt16Array,
1548
- Kr as parseInt32Array,
1549
- $r as parseInt8Array,
1550
- Qr as parseUint16Array,
1551
- ts as parseUint32Array,
1552
- Ar as parseUint8Array,
1553
- Lr as radians,
1554
- os as reinterpretType,
1555
- vr as remap,
1556
- Dr as remapClamped,
1557
- yr as resolveIncludes,
1558
- jr as saturate,
1559
- Gr as smoothstep,
1560
- _r as toBufferGeometryLike,
1561
- is as unrollLoops
1533
+ Wr as closeTo,
1534
+ Vr as define,
1535
+ kr as defineExpression,
1536
+ Xr as defineFloat,
1537
+ Yr as defineInt,
1538
+ qr as definePropertyShorthand,
1539
+ Jr as defineUniformShorthand,
1540
+ Fr as degrees,
1541
+ Rr as euclideanModulo,
1542
+ Dr as floorPowerOfTwo,
1543
+ Or as fromBufferGeometryLike,
1544
+ Lr as inverseLerp,
1545
+ Pr as isFloatLinearSupported,
1546
+ Mr as isPowerOfTwo,
1547
+ Nr as isTypedArray,
1548
+ Ur as lerp,
1549
+ vr as normalize,
1550
+ rs as parseFloat16Array,
1551
+ ss as parseFloat32Array,
1552
+ os as parseFloat64Array,
1553
+ ts as parseInt16Array,
1554
+ es as parseInt32Array,
1555
+ Zr as parseInt8Array,
1556
+ Kr as parseUint16Array,
1557
+ ns as parseUint32Array,
1558
+ wr as parseUint8Array,
1559
+ Cr as radians,
1560
+ cs as reinterpretType,
1561
+ Gr as remap,
1562
+ jr as remapClamped,
1563
+ Ar as resolveIncludes,
1564
+ Hr as saturate,
1565
+ zr as smoothstep,
1566
+ Ir as toBufferGeometryLike,
1567
+ as as unrollLoops
1562
1568
  };
1563
1569
  //# sourceMappingURL=index.js.map