@idetik/core 0.36.3 → 0.37.1

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/index.js CHANGED
@@ -113,7 +113,7 @@ out vec3 v_texCoords;
113
113
  void main() {
114
114
  v_texCoords = (u_worldToTexCoord * u_model * vec4(a_position, 1.0)).xyz;
115
115
  gl_Position = u_projection * u_modelView * vec4(a_position, 1.0);
116
- }`, qI = `#version 300 es
116
+ }`, lI = `#version 300 es
117
117
  #pragma inject_defines
118
118
 
119
119
  precision highp float;
@@ -200,7 +200,7 @@ uniform vec3 u_wireframeColor;
200
200
 
201
201
  void main() {
202
202
  fragColor = vec4(u_wireframeColor, u_opacity);
203
- }`, lI = `#version 300 es
203
+ }`, fI = `#version 300 es
204
204
 
205
205
  precision highp float;
206
206
 
@@ -213,7 +213,7 @@ out highp vec3 v_positionModel;
213
213
  void main() {
214
214
  v_positionModel = a_position;
215
215
  gl_Position = u_projection * u_modelView * vec4(a_position, 1.0);
216
- }`, fI = `#version 300 es
216
+ }`, pI = `#version 300 es
217
217
  #pragma inject_defines
218
218
  precision highp float;
219
219
 
@@ -355,7 +355,7 @@ void main() {
355
355
  }
356
356
 
357
357
  fragColor = accumulatedColor;
358
- }`, Zg = `#version 300 es
358
+ }`, Pg = `#version 300 es
359
359
  #pragma inject_defines
360
360
 
361
361
  precision highp float;
@@ -469,42 +469,42 @@ const dC = {
469
469
  },
470
470
  floatScalarImage: {
471
471
  vertex: xA,
472
- fragment: qI
472
+ fragment: lI
473
473
  },
474
474
  intScalarImage: {
475
475
  vertex: xA,
476
- fragment: qI,
476
+ fragment: lI,
477
477
  fragmentDefines: /* @__PURE__ */ new Map([["TEXTURE_DATA_TYPE_INT", "1"]])
478
478
  },
479
479
  uintScalarImage: {
480
480
  vertex: xA,
481
- fragment: qI,
481
+ fragment: lI,
482
482
  fragmentDefines: /* @__PURE__ */ new Map([["TEXTURE_DATA_TYPE_UINT", "1"]])
483
483
  },
484
484
  labelImage: {
485
485
  vertex: xA,
486
- fragment: Zg
486
+ fragment: Pg
487
487
  },
488
488
  intLabelImage: {
489
489
  vertex: xA,
490
- fragment: Zg,
490
+ fragment: Pg,
491
491
  fragmentDefines: /* @__PURE__ */ new Map([["TEXTURE_DATA_TYPE_INT", "1"]])
492
492
  },
493
493
  floatVolume: {
494
- vertex: lI,
495
- fragment: fI
494
+ vertex: fI,
495
+ fragment: pI
496
496
  },
497
497
  intVolume: {
498
- vertex: lI,
499
- fragment: fI,
498
+ vertex: fI,
499
+ fragment: pI,
500
500
  fragmentDefines: /* @__PURE__ */ new Map([["TEXTURE_DATA_TYPE_INT", "1"]])
501
501
  },
502
502
  uintVolume: {
503
- vertex: lI,
504
- fragment: fI,
503
+ vertex: fI,
504
+ fragment: pI,
505
505
  fragmentDefines: /* @__PURE__ */ new Map([["TEXTURE_DATA_TYPE_UINT", "1"]])
506
506
  }
507
- }, Pg = {
507
+ }, Og = {
508
508
  debug: 10,
509
509
  info: 20,
510
510
  warn: 30,
@@ -548,7 +548,7 @@ class k {
548
548
  k.log("error", A, I, ...B);
549
549
  }
550
550
  static log(A, I, B, ...C) {
551
- if (Pg[A] < Pg[k.logLevel_]) return;
551
+ if (Og[A] < Og[k.logLevel_]) return;
552
552
  const Q = (/* @__PURE__ */ new Date()).toISOString(), E = KC[A], i = `[${Q}][${A.toUpperCase()}][${I}]`, o = [`${E}${i}`, B, ...C];
553
553
  switch (A) {
554
554
  case "debug":
@@ -716,7 +716,7 @@ const lC = typeof window < "u" ? [
716
716
  WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_2D_ARRAY
717
717
  ] : [], fC = new Set(
718
718
  lC
719
- ), pI = "#pragma inject_defines";
719
+ ), mI = "#pragma inject_defines";
720
720
  class pC {
721
721
  gl_;
722
722
  programs_ = /* @__PURE__ */ new Map();
@@ -726,10 +726,10 @@ class pC {
726
726
  use(A) {
727
727
  let I = this.programs_.get(A);
728
728
  if (I === void 0) {
729
- const B = dC[A], C = Og(
729
+ const B = dC[A], C = Vg(
730
730
  B.vertex,
731
731
  B.vertexDefines
732
- ), Q = Og(
732
+ ), Q = Vg(
733
733
  B.fragment,
734
734
  B.fragmentDefines
735
735
  );
@@ -747,23 +747,23 @@ class pC {
747
747
  return I;
748
748
  }
749
749
  }
750
- function Og(g, A) {
750
+ function Vg(g, A) {
751
751
  if (A === void 0 || A.size == 0) return g;
752
- if (!g.includes(pI))
752
+ if (!g.includes(mI))
753
753
  throw new Error(
754
- `Shader source does not contain "${pI}" directive`
754
+ `Shader source does not contain "${mI}" directive`
755
755
  );
756
756
  const I = Array.from(A.entries()).map(([E, i]) => `#define ${E} ${i}`).join(`
757
757
  `), C = `#line __LINE__ + ${1 - A.size}`, Q = `${I}
758
758
  ${C}`;
759
- return g.replace(pI, Q);
759
+ return g.replace(mI, Q);
760
760
  }
761
761
  const CI = {};
762
762
  function ZB(g) {
763
763
  const A = g ?? "";
764
764
  return CI[A] = (CI[A] ?? 0) + 1, g ? `${g}-${CI[A]}` : String(CI[A]);
765
765
  }
766
- class LI {
766
+ class JI {
767
767
  id = ZB();
768
768
  }
769
769
  var T = 1e-6, X = typeof Float32Array < "u" ? Float32Array : Array, mC = Math.PI / 180;
@@ -785,11 +785,11 @@ function $() {
785
785
  var g = new X(16);
786
786
  return X != Float32Array && (g[1] = 0, g[2] = 0, g[3] = 0, g[4] = 0, g[6] = 0, g[7] = 0, g[8] = 0, g[9] = 0, g[11] = 0, g[12] = 0, g[13] = 0, g[14] = 0), g[0] = 1, g[5] = 1, g[10] = 1, g[15] = 1, g;
787
787
  }
788
- function JI(g, A) {
788
+ function YI(g, A) {
789
789
  var I = A[0], B = A[1], C = A[2], Q = A[3], E = A[4], i = A[5], o = A[6], a = A[7], D = A[8], s = A[9], h = A[10], t = A[11], y = A[12], n = A[13], F = A[14], G = A[15], J = I * i - B * E, U = I * o - C * E, S = I * a - Q * E, r = B * o - C * i, c = B * a - Q * i, f = C * a - Q * o, Z = D * n - s * y, j = D * F - h * y, b = D * G - t * y, z = s * F - h * n, iA = s * G - t * n, oA = h * G - t * F, P = J * oA - U * iA + S * z + r * b - c * j + f * Z;
790
790
  return P ? (P = 1 / P, g[0] = (i * oA - o * iA + a * z) * P, g[1] = (C * iA - B * oA - Q * z) * P, g[2] = (n * f - F * c + G * r) * P, g[3] = (h * c - s * f - t * r) * P, g[4] = (o * b - E * oA - a * j) * P, g[5] = (I * oA - C * b + Q * j) * P, g[6] = (F * S - y * f - G * U) * P, g[7] = (D * f - h * S + t * U) * P, g[8] = (E * iA - i * b + a * Z) * P, g[9] = (B * b - I * iA - Q * Z) * P, g[10] = (y * c - n * S + G * J) * P, g[11] = (s * S - D * c - t * J) * P, g[12] = (i * j - E * z - o * Z) * P, g[13] = (I * z - B * j + C * Z) * P, g[14] = (n * U - y * r - F * J) * P, g[15] = (D * r - s * U + h * J) * P, g) : null;
791
791
  }
792
- function XI(g, A, I) {
792
+ function jI(g, A, I) {
793
793
  var B = A[0], C = A[1], Q = A[2], E = A[3], i = A[4], o = A[5], a = A[6], D = A[7], s = A[8], h = A[9], t = A[10], y = A[11], n = A[12], F = A[13], G = A[14], J = A[15], U = I[0], S = I[1], r = I[2], c = I[3];
794
794
  return g[0] = U * B + S * i + r * s + c * n, g[1] = U * C + S * o + r * h + c * F, g[2] = U * Q + S * a + r * t + c * G, g[3] = U * E + S * D + r * y + c * J, U = I[4], S = I[5], r = I[6], c = I[7], g[4] = U * B + S * i + r * s + c * n, g[5] = U * C + S * o + r * h + c * F, g[6] = U * Q + S * a + r * t + c * G, g[7] = U * E + S * D + r * y + c * J, U = I[8], S = I[9], r = I[10], c = I[11], g[8] = U * B + S * i + r * s + c * n, g[9] = U * C + S * o + r * h + c * F, g[10] = U * Q + S * a + r * t + c * G, g[11] = U * E + S * D + r * y + c * J, U = I[12], S = I[13], r = I[14], c = I[15], g[12] = U * B + S * i + r * s + c * n, g[13] = U * C + S * o + r * h + c * F, g[14] = U * Q + S * a + r * t + c * G, g[15] = U * E + S * D + r * y + c * J, g;
795
795
  }
@@ -826,8 +826,8 @@ function vC(g, A, I, B) {
826
826
  return t = y * y + n * n + F * F, t > 0 && (t = 1 / Math.sqrt(t), y *= t, n *= t, F *= t), g[0] = y, g[1] = n, g[2] = F, g[3] = 0, g[4] = s * F - h * n, g[5] = h * y - D * F, g[6] = D * n - s * y, g[7] = 0, g[8] = D, g[9] = s, g[10] = h, g[11] = 0, g[12] = C, g[13] = Q, g[14] = E, g[15] = 1, g;
827
827
  }
828
828
  function XC(g, A) {
829
- var I = g[0], B = g[1], C = g[2], Q = g[3], E = g[4], i = g[5], o = g[6], a = g[7], D = g[8], s = g[9], h = g[10], t = g[11], y = g[12], n = g[13], F = g[14], G = g[15], J = A[0], U = A[1], S = A[2], r = A[3], c = A[4], f = A[5], Z = A[6], j = A[7], b = A[8], z = A[9], iA = A[10], oA = A[11], P = A[12], xg = A[13], Wg = A[14], bg = A[15];
830
- return Math.abs(I - J) <= T * Math.max(1, Math.abs(I), Math.abs(J)) && Math.abs(B - U) <= T * Math.max(1, Math.abs(B), Math.abs(U)) && Math.abs(C - S) <= T * Math.max(1, Math.abs(C), Math.abs(S)) && Math.abs(Q - r) <= T * Math.max(1, Math.abs(Q), Math.abs(r)) && Math.abs(E - c) <= T * Math.max(1, Math.abs(E), Math.abs(c)) && Math.abs(i - f) <= T * Math.max(1, Math.abs(i), Math.abs(f)) && Math.abs(o - Z) <= T * Math.max(1, Math.abs(o), Math.abs(Z)) && Math.abs(a - j) <= T * Math.max(1, Math.abs(a), Math.abs(j)) && Math.abs(D - b) <= T * Math.max(1, Math.abs(D), Math.abs(b)) && Math.abs(s - z) <= T * Math.max(1, Math.abs(s), Math.abs(z)) && Math.abs(h - iA) <= T * Math.max(1, Math.abs(h), Math.abs(iA)) && Math.abs(t - oA) <= T * Math.max(1, Math.abs(t), Math.abs(oA)) && Math.abs(y - P) <= T * Math.max(1, Math.abs(y), Math.abs(P)) && Math.abs(n - xg) <= T * Math.max(1, Math.abs(n), Math.abs(xg)) && Math.abs(F - Wg) <= T * Math.max(1, Math.abs(F), Math.abs(Wg)) && Math.abs(G - bg) <= T * Math.max(1, Math.abs(G), Math.abs(bg));
829
+ var I = g[0], B = g[1], C = g[2], Q = g[3], E = g[4], i = g[5], o = g[6], a = g[7], D = g[8], s = g[9], h = g[10], t = g[11], y = g[12], n = g[13], F = g[14], G = g[15], J = A[0], U = A[1], S = A[2], r = A[3], c = A[4], f = A[5], Z = A[6], j = A[7], b = A[8], z = A[9], iA = A[10], oA = A[11], P = A[12], Wg = A[13], bg = A[14], Zg = A[15];
830
+ return Math.abs(I - J) <= T * Math.max(1, Math.abs(I), Math.abs(J)) && Math.abs(B - U) <= T * Math.max(1, Math.abs(B), Math.abs(U)) && Math.abs(C - S) <= T * Math.max(1, Math.abs(C), Math.abs(S)) && Math.abs(Q - r) <= T * Math.max(1, Math.abs(Q), Math.abs(r)) && Math.abs(E - c) <= T * Math.max(1, Math.abs(E), Math.abs(c)) && Math.abs(i - f) <= T * Math.max(1, Math.abs(i), Math.abs(f)) && Math.abs(o - Z) <= T * Math.max(1, Math.abs(o), Math.abs(Z)) && Math.abs(a - j) <= T * Math.max(1, Math.abs(a), Math.abs(j)) && Math.abs(D - b) <= T * Math.max(1, Math.abs(D), Math.abs(b)) && Math.abs(s - z) <= T * Math.max(1, Math.abs(s), Math.abs(z)) && Math.abs(h - iA) <= T * Math.max(1, Math.abs(h), Math.abs(iA)) && Math.abs(t - oA) <= T * Math.max(1, Math.abs(t), Math.abs(oA)) && Math.abs(y - P) <= T * Math.max(1, Math.abs(y), Math.abs(P)) && Math.abs(n - Wg) <= T * Math.max(1, Math.abs(n), Math.abs(Wg)) && Math.abs(F - bg) <= T * Math.max(1, Math.abs(F), Math.abs(bg)) && Math.abs(G - Zg) <= T * Math.max(1, Math.abs(G), Math.abs(Zg));
831
831
  }
832
832
  function d() {
833
833
  var g = new X(3);
@@ -837,7 +837,7 @@ function DA(g) {
837
837
  var A = new X(3);
838
838
  return A[0] = g[0], A[1] = g[1], A[2] = g[2], A;
839
839
  }
840
- function tg(g) {
840
+ function yg(g) {
841
841
  var A = g[0], I = g[1], B = g[2];
842
842
  return Math.sqrt(A * A + I * I + B * B);
843
843
  }
@@ -845,7 +845,7 @@ function p(g, A, I) {
845
845
  var B = new X(3);
846
846
  return B[0] = g, B[1] = A, B[2] = I, B;
847
847
  }
848
- function jI(g, A) {
848
+ function zI(g, A) {
849
849
  return g[0] = A[0], g[1] = A[1], g[2] = A[2], g;
850
850
  }
851
851
  function rA(g, A, I, B) {
@@ -854,7 +854,7 @@ function rA(g, A, I, B) {
854
854
  function JA(g, A, I) {
855
855
  return g[0] = A[0] + I[0], g[1] = A[1] + I[1], g[2] = A[2] + I[2], g;
856
856
  }
857
- function yg(g, A, I) {
857
+ function eg(g, A, I) {
858
858
  return g[0] = A[0] - I[0], g[1] = A[1] - I[1], g[2] = A[2] - I[2], g;
859
859
  }
860
860
  function jC(g, A, I) {
@@ -863,10 +863,10 @@ function jC(g, A, I) {
863
863
  function VA(g, A, I) {
864
864
  return g[0] = A[0] * I, g[1] = A[1] * I, g[2] = A[2] * I, g;
865
865
  }
866
- function zI(g, A, I, B) {
866
+ function _I(g, A, I, B) {
867
867
  return g[0] = A[0] + I[0] * B, g[1] = A[1] + I[1] * B, g[2] = A[2] + I[2] * B, g;
868
868
  }
869
- function Vg(g, A) {
869
+ function vg(g, A) {
870
870
  var I = A[0] - g[0], B = A[1] - g[1], C = A[2] - g[2];
871
871
  return I * I + B * B + C * C;
872
872
  }
@@ -881,7 +881,7 @@ function EI(g, A, I) {
881
881
  var B = A[0], C = A[1], Q = A[2], E = I[0], i = I[1], o = I[2];
882
882
  return g[0] = C * o - Q * i, g[1] = Q * E - B * o, g[2] = B * i - C * E, g;
883
883
  }
884
- function eg(g, A, I) {
884
+ function ng(g, A, I) {
885
885
  var B = A[0], C = A[1], Q = A[2], E = I[3] * B + I[7] * C + I[11] * Q + I[15];
886
886
  return E = E || 1, g[0] = (I[0] * B + I[4] * C + I[8] * Q + I[12]) / E, g[1] = (I[1] * B + I[5] * C + I[9] * Q + I[13]) / E, g[2] = (I[2] * B + I[6] * C + I[10] * Q + I[14]) / E, g;
887
887
  }
@@ -892,11 +892,11 @@ function vB(g, A, I) {
892
892
  function zC(g) {
893
893
  return g[0] = 0, g[1] = 0, g[2] = 0, g;
894
894
  }
895
- function ng(g, A) {
895
+ function Gg(g, A) {
896
896
  var I = g[0], B = g[1], C = g[2], Q = A[0], E = A[1], i = A[2];
897
897
  return Math.abs(I - Q) <= T * Math.max(1, Math.abs(I), Math.abs(Q)) && Math.abs(B - E) <= T * Math.max(1, Math.abs(B), Math.abs(E)) && Math.abs(C - i) <= T * Math.max(1, Math.abs(C), Math.abs(i));
898
898
  }
899
- var _I = yg, _C = tg;
899
+ var $I = eg, _C = yg;
900
900
  (function() {
901
901
  var g = d();
902
902
  return function(A, I, B, C, Q, E) {
@@ -954,11 +954,11 @@ function CQ(g, A, I) {
954
954
  var B = A[0], C = A[1], Q = A[2], E = A[3], i = I[0], o = I[1], a = I[2], D = I[3];
955
955
  return g[0] = B * D + E * i + C * a - Q * o, g[1] = C * D + E * o + Q * i - B * a, g[2] = Q * D + E * a + B * o - C * i, g[3] = E * D - B * i - C * o - Q * a, g;
956
956
  }
957
- function mI(g, A, I, B) {
957
+ function uI(g, A, I, B) {
958
958
  var C = A[0], Q = A[1], E = A[2], i = A[3], o = I[0], a = I[1], D = I[2], s = I[3], h, t, y, n, F;
959
959
  return t = C * o + Q * a + E * D + i * s, t < 0 && (t = -t, o = -o, a = -a, D = -D, s = -s), 1 - t > T ? (h = Math.acos(t), y = Math.sin(h), n = Math.sin((1 - B) * h) / y, F = Math.sin(B * h) / y) : (n = 1 - B, F = B), g[0] = n * C + F * o, g[1] = n * Q + F * a, g[2] = n * E + F * D, g[3] = n * i + F * s, g;
960
960
  }
961
- function Gg(g, A) {
961
+ function wg(g, A) {
962
962
  var I = A[0] + A[4] + A[8], B;
963
963
  if (I > 0)
964
964
  B = Math.sqrt(I + 1), g[3] = 0.5 * B, B = 0.5 / B, g[0] = (A[5] - A[7]) * B, g[1] = (A[6] - A[2]) * B, g[2] = (A[1] - A[3]) * B;
@@ -970,31 +970,31 @@ function Gg(g, A) {
970
970
  }
971
971
  return g;
972
972
  }
973
- var QQ = $C, EQ = AQ, YI = gQ;
973
+ var QQ = $C, EQ = AQ, MI = gQ;
974
974
  (function() {
975
975
  var g = d(), A = p(1, 0, 0), I = p(0, 1, 0);
976
976
  return function(B, C, Q) {
977
977
  var E = aI(C, Q);
978
- return E < -0.999999 ? (EI(g, A, C), _C(g) < 1e-6 && EI(g, I, C), VB(g, g), BQ(B, g, Math.PI), B) : E > 0.999999 ? (B[0] = 0, B[1] = 0, B[2] = 0, B[3] = 1, B) : (EI(g, C, Q), B[0] = g[0], B[1] = g[1], B[2] = g[2], B[3] = 1 + E, YI(B, B));
978
+ return E < -0.999999 ? (EI(g, A, C), _C(g) < 1e-6 && EI(g, I, C), VB(g, g), BQ(B, g, Math.PI), B) : E > 0.999999 ? (B[0] = 0, B[1] = 0, B[2] = 0, B[3] = 1, B) : (EI(g, C, Q), B[0] = g[0], B[1] = g[1], B[2] = g[2], B[3] = 1 + E, MI(B, B));
979
979
  };
980
980
  })();
981
981
  (function() {
982
982
  var g = sI(), A = sI();
983
983
  return function(I, B, C, Q, E, i) {
984
- return mI(g, B, E, i), mI(A, C, Q, i), mI(I, g, A, 2 * i * (1 - i)), I;
984
+ return uI(g, B, E, i), uI(A, C, Q, i), uI(I, g, A, 2 * i * (1 - i)), I;
985
985
  };
986
986
  })();
987
987
  (function() {
988
988
  var g = PB();
989
989
  return function(A, I, B, C) {
990
- return g[0] = B[0], g[3] = B[1], g[6] = B[2], g[1] = C[0], g[4] = C[1], g[7] = C[2], g[2] = -I[0], g[5] = -I[1], g[8] = -I[2], YI(A, Gg(A, g));
990
+ return g[0] = B[0], g[3] = B[1], g[6] = B[2], g[1] = C[0], g[4] = C[1], g[7] = C[2], g[2] = -I[0], g[5] = -I[1], g[8] = -I[2], MI(A, wg(A, g));
991
991
  };
992
992
  })();
993
993
  function XB() {
994
994
  var g = new X(2);
995
995
  return X != Float32Array && (g[0] = 0, g[1] = 0), g;
996
996
  }
997
- function vg(g) {
997
+ function Xg(g) {
998
998
  var A = new X(2);
999
999
  return A[0] = g[0], A[1] = g[1], A;
1000
1000
  }
@@ -1014,10 +1014,10 @@ function aQ(g, A, I, B) {
1014
1014
  var C = A[0], Q = A[1];
1015
1015
  return g[0] = C + B * (I[0] - C), g[1] = Q + B * (I[1] - Q), g;
1016
1016
  }
1017
- function Xg(g, A) {
1017
+ function jg(g, A) {
1018
1018
  return g[0] === A[0] && g[1] === A[1];
1019
1019
  }
1020
- function uI(g, A) {
1020
+ function TI(g, A) {
1021
1021
  var I = g[0], B = g[1], C = A[0], Q = A[1];
1022
1022
  return Math.abs(I - C) <= T * Math.max(1, Math.abs(I), Math.abs(C)) && Math.abs(B - Q) <= T * Math.max(1, Math.abs(B), Math.abs(Q));
1023
1023
  }
@@ -1069,7 +1069,7 @@ class SA {
1069
1069
  this.min = p(1 / 0, 1 / 0, 1 / 0), this.max = p(-1 / 0, -1 / 0, -1 / 0);
1070
1070
  const Q = d();
1071
1071
  for (const E of C)
1072
- eg(Q, E, A), this.expandWithPoint(Q);
1072
+ ng(Q, E, A), this.expandWithPoint(Q);
1073
1073
  }
1074
1074
  }
1075
1075
  const DQ = {
@@ -1083,7 +1083,7 @@ const DQ = {
1083
1083
  size: 7,
1084
1084
  marker: 8
1085
1085
  };
1086
- class mA extends LI {
1086
+ class mA extends JI {
1087
1087
  boundingBox_ = null;
1088
1088
  primitive_;
1089
1089
  attributes_;
@@ -1193,7 +1193,7 @@ class sQ {
1193
1193
  function hQ(g) {
1194
1194
  return g === 1 || g === 2 || g === 4 || g === 8;
1195
1195
  }
1196
- function wg(g) {
1196
+ function Fg(g) {
1197
1197
  if (g instanceof Int8Array)
1198
1198
  return "byte";
1199
1199
  if (g instanceof Int16Array)
@@ -1234,7 +1234,7 @@ function yQ(g) {
1234
1234
  return 4;
1235
1235
  }
1236
1236
  }
1237
- function $I(g) {
1237
+ function Ag(g) {
1238
1238
  const A = tQ(g) * yQ(g), I = Math.max(1, g.mipmapLevels);
1239
1239
  let B = Math.max(1, g.width), C = Math.max(1, g.height), Q = Math.max(1, g.depth), E = 0;
1240
1240
  for (let i = 0; i < I; ++i)
@@ -1261,7 +1261,7 @@ function eQ(g) {
1261
1261
  return [0, 1];
1262
1262
  }
1263
1263
  }
1264
- class Fg extends LI {
1264
+ class rg extends JI {
1265
1265
  dataFormat = "rgba";
1266
1266
  dataType = "unsigned_byte";
1267
1267
  maxFilter = "nearest";
@@ -1370,7 +1370,7 @@ class nQ {
1370
1370
  const I = this.textures_.get(A);
1371
1371
  if (I) {
1372
1372
  this.gl_.deleteTexture(I), this.textures_.delete(A), A.readTexel = void 0, this.currentTexture_ === A && (this.currentTexture_ = null);
1373
- const B = $I(A);
1373
+ const B = Ag(A);
1374
1374
  this.gpuTextureBytes_ = Math.max(0, this.gpuTextureBytes_ - B), this.textureCount_ = Math.max(0, this.textureCount_ - 1);
1375
1375
  }
1376
1376
  }
@@ -1404,7 +1404,7 @@ class nQ {
1404
1404
  );
1405
1405
  else
1406
1406
  throw new Error(`Unknown texture type ${A.type}`);
1407
- this.gpuTextureBytes_ += $I(A), this.textureCount_ += 1, this.textures_.set(A, C), this.gl_.bindTexture(B, null), A.readTexel = (Q, E, i) => Promise.resolve(this.readTexel(A, Q, E, i));
1407
+ this.gpuTextureBytes_ += Ag(A), this.textureCount_ += 1, this.textures_.set(A, C), this.gl_.bindTexture(B, null), A.readTexel = (Q, E, i) => Promise.resolve(this.readTexel(A, Q, E, i));
1408
1408
  }
1409
1409
  configureTextureParameters(A, I) {
1410
1410
  const B = this.gl_, C = this.getFilter(A.minFilter, A), Q = this.getFilter(A.maxFilter, A);
@@ -1564,7 +1564,7 @@ class AA {
1564
1564
  * the first element, and avoids biasing toward (0,0).
1565
1565
  */
1566
1566
  constructor(A, I) {
1567
- this.min = A ? vg(A) : V(1 / 0, 1 / 0), this.max = I ? vg(I) : V(-1 / 0, -1 / 0);
1567
+ this.min = A ? Xg(A) : V(1 / 0, 1 / 0), this.max = I ? Xg(I) : V(-1 / 0, -1 / 0);
1568
1568
  }
1569
1569
  clone() {
1570
1570
  return new AA(this.min, this.max);
@@ -1577,7 +1577,7 @@ class AA {
1577
1577
  return !(A.max[0] <= I.min[0] || A.min[0] >= I.max[0] || A.max[1] <= I.min[1] || A.min[1] >= I.max[1]);
1578
1578
  }
1579
1579
  static equals(A, I) {
1580
- return Xg(A.min, I.min) && Xg(A.max, I.max);
1580
+ return jg(A.min, I.min) && jg(A.max, I.max);
1581
1581
  }
1582
1582
  floor() {
1583
1583
  return new AA(
@@ -1809,11 +1809,11 @@ class FQ extends cC {
1809
1809
  }
1810
1810
  }
1811
1811
  drawGeometry(A, I, B, C, Q) {
1812
- const E = XI(
1812
+ const E = jI(
1813
1813
  $(),
1814
1814
  Q.viewMatrix,
1815
1815
  I.transform.matrix
1816
- ), i = XI(
1816
+ ), i = jI(
1817
1817
  $(),
1818
1818
  wQ,
1819
1819
  Q.projectionMatrix
@@ -1842,7 +1842,7 @@ class FQ extends cC {
1842
1842
  );
1843
1843
  break;
1844
1844
  case "u_cameraPositionModel": {
1845
- const n = JI($(), E), F = DI(0, 0, 0, 1), G = vA(
1845
+ const n = YI($(), E), F = DI(0, 0, 0, 1), G = vA(
1846
1846
  YA(),
1847
1847
  F,
1848
1848
  n
@@ -1953,13 +1953,13 @@ let hI = 0, tI = 0;
1953
1953
  function SQ(g, A) {
1954
1954
  g.data && (hI -= g.data.byteLength, tI -= 1), g.data = A, hI += A.byteLength, tI += 1;
1955
1955
  }
1956
- function jg(g) {
1956
+ function zg(g) {
1957
1957
  g.data && (hI -= g.data.byteLength, tI -= 1), g.data = void 0, g.texture?.releaseCpuData();
1958
1958
  }
1959
1959
  function RQ() {
1960
1960
  return { cpuChunkBytes: hI, cpuChunkCount: tI };
1961
1961
  }
1962
- function zg(g, A, I = 1e-6) {
1962
+ function _g(g, A, I = 1e-6) {
1963
1963
  return Math.abs(g - A) <= I;
1964
1964
  }
1965
1965
  const W = {
@@ -1990,10 +1990,10 @@ function dA(g) {
1990
1990
  B[0],
1991
1991
  B[1],
1992
1992
  B[2]
1993
- ), Q = Gg(sI(), C);
1994
- return YI(Q, Q);
1993
+ ), Q = wg(sI(), C);
1994
+ return MI(Q, Q);
1995
1995
  }
1996
- const _g = [
1996
+ const $g = [
1997
1997
  Int8Array,
1998
1998
  Int16Array,
1999
1999
  Int32Array,
@@ -2003,9 +2003,9 @@ const _g = [
2003
2003
  Float32Array
2004
2004
  ];
2005
2005
  function NQ(g) {
2006
- if (_g.some((I) => g instanceof I))
2006
+ if ($g.some((I) => g instanceof I))
2007
2007
  return !0;
2008
- const A = _g.map((I) => I.name);
2008
+ const A = $g.map((I) => I.name);
2009
2009
  return k.debug(
2010
2010
  "Chunk",
2011
2011
  `Unsupported chunk data type: ${g}. Supported data types: ${A}`
@@ -2026,7 +2026,7 @@ function jB(g, A) {
2026
2026
  function hA(g, A, I) {
2027
2027
  return Math.max(A, Math.min(I, g));
2028
2028
  }
2029
- const MI = Symbol("INTERNAL_POLICY_KEY");
2029
+ const dI = Symbol("INTERNAL_POLICY_KEY");
2030
2030
  class UQ {
2031
2031
  store_;
2032
2032
  policy_;
@@ -2190,7 +2190,7 @@ class UQ {
2190
2190
  this.isDisposed_ = !0, this.chunkViewStates_.forEach(WA);
2191
2191
  }
2192
2192
  setImageSourcePolicy(A, I) {
2193
- if (I !== MI)
2193
+ if (I !== dI)
2194
2194
  throw new Error("Unauthorized policy mutation");
2195
2195
  this.policy_ !== A && (this.policy_ = A, this.policyChanged_ = !0, k.info(
2196
2196
  "ChunkStoreView",
@@ -2333,13 +2333,13 @@ class UQ {
2333
2333
  return B[W[this.axes_.u]] = A.min[0], C[W[this.axes_.u]] = A.max[0], B[W[this.axes_.v]] = A.min[1], C[W[this.axes_.v]] = A.max[1], B[W[this.axes_.w]] = I[0], C[W[this.axes_.w]] = I[1], new SA(B, C);
2334
2334
  }
2335
2335
  viewBounds2DChanged(A) {
2336
- return this.lastViewBounds2D_ === null || !uI(this.lastViewBounds2D_.min, A.min) || !uI(this.lastViewBounds2D_.max, A.max);
2336
+ return this.lastViewBounds2D_ === null || !TI(this.lastViewBounds2D_.min, A.min) || !TI(this.lastViewBounds2D_.max, A.max);
2337
2337
  }
2338
2338
  hasViewProjectionChanged(A) {
2339
2339
  return this.lastViewProjection_ === null || !XC(this.lastViewProjection_, A);
2340
2340
  }
2341
2341
  sliceBoundsChanged(A) {
2342
- return !this.lastSliceBounds_ || !uI(this.lastSliceBounds_, A);
2342
+ return !this.lastSliceBounds_ || !TI(this.lastSliceBounds_, A);
2343
2343
  }
2344
2344
  cCoordsChanged(A) {
2345
2345
  return !this.lastCCoords_ && !A ? !1 : !this.lastCCoords_ || !A || this.lastCCoords_.length !== A.length ? !0 : !this.lastCCoords_.every((I, B) => I === A[B]);
@@ -2347,7 +2347,7 @@ class UQ {
2347
2347
  getPaddedBounds(A) {
2348
2348
  const { u: I, v: B, w: C } = this.axes_, Q = this.store_.dimensions, E = Q[I].lods[this.currentLOD_], i = Q[B].lods[this.currentLOD_], o = Q[C]?.lods[this.currentLOD_], a = d();
2349
2349
  return a[W[I]] = E.chunkSize * E.scale * this.policy_.prefetch.x, a[W[B]] = i.chunkSize * i.scale * this.policy_.prefetch.y, o && (a[W[C]] = o.chunkSize * o.scale * this.policy_.prefetch.z), new SA(
2350
- yg(d(), A.min, a),
2350
+ eg(d(), A.min, a),
2351
2351
  JA(d(), A.max, a)
2352
2352
  );
2353
2353
  }
@@ -2480,7 +2480,7 @@ class kQ {
2480
2480
  const A = this.dimensions_.x, I = this.dimensions_.y;
2481
2481
  for (let B = 1; B < this.dimensions_.numLods; B++) {
2482
2482
  const C = A.lods[B].scale / A.lods[B - 1].scale, Q = I.lods[B].scale / I.lods[B - 1].scale;
2483
- if (!zg(C, 2, 0.02) || !zg(Q, 2, 0.02))
2483
+ if (!_g(C, 2, 0.02) || !_g(Q, 2, 0.02))
2484
2484
  throw new Error(
2485
2485
  `Invalid downsampling factor between levels ${B - 1} → ${B}: expected (2× in X and Y), but got (${C.toFixed(2)}×, ${Q.toFixed(2)}×) from scale [${A.lods[B - 1].scale}, ${I.lods[B - 1].scale}] → [${A.lods[B].scale}, ${I.lods[B].scale}]`
2486
2486
  );
@@ -2522,12 +2522,12 @@ class kQ {
2522
2522
  };
2523
2523
  }
2524
2524
  }
2525
- class rg extends Fg {
2525
+ class Sg extends rg {
2526
2526
  width_;
2527
2527
  height_;
2528
2528
  depth_;
2529
2529
  constructor(A, I, B, C) {
2530
- super(), this.dataFormat = "scalar", this.dataType = wg(A), this.data_ = A, this.width_ = I, this.height_ = B, this.depth_ = C;
2530
+ super(), this.dataFormat = "scalar", this.dataType = Fg(A), this.data_ = A, this.width_ = I, this.height_ = B, this.depth_ = C;
2531
2531
  }
2532
2532
  get type() {
2533
2533
  return "Texture3D";
@@ -2547,7 +2547,7 @@ class rg extends Fg {
2547
2547
  throw new Error(
2548
2548
  "Unable to create texture, chunk data is not initialized."
2549
2549
  );
2550
- const B = new rg(
2550
+ const B = new Sg(
2551
2551
  I,
2552
2552
  A.shape.x,
2553
2553
  A.shape.y,
@@ -2605,7 +2605,7 @@ class YQ {
2605
2605
  A.releasedAt ??= performance.now();
2606
2606
  return;
2607
2607
  }
2608
- jg(A), A.state === "loaded" && (A.state = "unloaded");
2608
+ zg(A), A.state === "loaded" && (A.state = "unloaded");
2609
2609
  }
2610
2610
  enqueueWithinBudget(A) {
2611
2611
  if (A.length === 0) return;
@@ -2636,7 +2636,7 @@ class YQ {
2636
2636
  evictWorseChunks(A, I, B, C) {
2637
2637
  for (; A + I > this.memoryLimitBytes_ && C.length > 0 && bA(C[0], B) > 0; ) {
2638
2638
  const Q = C.shift();
2639
- Q.texture !== void 0 && (A -= $I(Q.texture), this.disposeChunkTexture(Q), Q.state = "unloaded", Q.releasedAt = void 0);
2639
+ Q.texture !== void 0 && (A -= Ag(Q.texture), this.disposeChunkTexture(Q), Q.state = "unloaded", Q.releasedAt = void 0);
2640
2640
  }
2641
2641
  return A;
2642
2642
  }
@@ -2653,8 +2653,8 @@ class YQ {
2653
2653
  I.sort(bA);
2654
2654
  const B = Math.min(I.length, this.maxGpuUploadsPerUpdate_);
2655
2655
  for (let C = 0; C < B; C++) {
2656
- const Q = I[C], E = rg.createWithChunk(Q);
2657
- this.uploadTexture_(E), Q.texture = E, this.resident_.add(Q), jg(Q);
2656
+ const Q = I[C], E = Sg.createWithChunk(Q);
2657
+ this.uploadTexture_(E), Q.texture = E, this.resident_.add(Q), zg(Q);
2658
2658
  }
2659
2659
  }
2660
2660
  disposeChunkTexture(A) {
@@ -2720,7 +2720,7 @@ function MQ({ scale: g } = { scale: 1.5 }) {
2720
2720
  /* 0 = fps, 1 = ms, 2 = mb */
2721
2721
  ), document.body.appendChild(A.dom), A;
2722
2722
  }
2723
- const Ag = [
2723
+ const Ig = [
2724
2724
  "pointerdown",
2725
2725
  "pointermove",
2726
2726
  "pointerup",
@@ -2728,7 +2728,7 @@ const Ag = [
2728
2728
  "wheel"
2729
2729
  ];
2730
2730
  function dQ(g) {
2731
- return Ag.includes(g);
2731
+ return Ig.includes(g);
2732
2732
  }
2733
2733
  class KQ {
2734
2734
  propagationStopped_ = !1;
@@ -2772,7 +2772,7 @@ class HQ {
2772
2772
  );
2773
2773
  return;
2774
2774
  }
2775
- this.isConnected_ = !0, Ag.forEach((A) => {
2775
+ this.isConnected_ = !0, Ig.forEach((A) => {
2776
2776
  this.element_.addEventListener(A, this.handleEvent, {
2777
2777
  passive: !1
2778
2778
  });
@@ -2787,7 +2787,7 @@ class HQ {
2787
2787
  );
2788
2788
  return;
2789
2789
  }
2790
- this.isConnected_ = !1, Ag.forEach((A) => {
2790
+ this.isConnected_ = !1, Ig.forEach((A) => {
2791
2791
  this.element_.removeEventListener(A, this.handleEvent);
2792
2792
  });
2793
2793
  }
@@ -2813,7 +2813,7 @@ class lQ {
2813
2813
  if (Math.abs(I) < qQ)
2814
2814
  return null;
2815
2815
  const B = -A.signedDistanceToPoint(this.origin) / I;
2816
- return zI(d(), this.origin, this.direction, B);
2816
+ return _I(d(), this.origin, this.direction, B);
2817
2817
  }
2818
2818
  }
2819
2819
  class fQ {
@@ -2833,7 +2833,7 @@ class fQ {
2833
2833
  const { clientX: B, clientY: C } = I.event, Q = V(B, C);
2834
2834
  I.clipPos = this.clientToClip(Q, 0), I.worldPos = this.camera.clipToWorld(I.clipPos);
2835
2835
  const E = this.camera.clipToWorld(this.clientToClip(Q, -1)), i = this.camera.clipToWorld(this.clientToClip(Q, 1));
2836
- I.worldRay = new lQ(E, yg(d(), i, E));
2836
+ I.worldRay = new lQ(E, eg(d(), i, E));
2837
2837
  }
2838
2838
  for (const B of this.layers_)
2839
2839
  if (B.onEvent(I), I.propagationStopped) return;
@@ -2922,7 +2922,7 @@ function pQ(g) {
2922
2922
  for (let A = 0; A < g.length; A++)
2923
2923
  zB(g[A], g.slice(0, A));
2924
2924
  }
2925
- function $g(g, A, I) {
2925
+ function AB(g, A, I) {
2926
2926
  const B = g.map((C) => {
2927
2927
  const Q = C.element ?? A;
2928
2928
  return {
@@ -3065,7 +3065,7 @@ class to {
3065
3065
  A.maxGpuUploadsPerUpdate
3066
3066
  ), this.context_ = {
3067
3067
  chunkManager: this.chunkManager_
3068
- }, this.viewports_ = $g(
3068
+ }, this.viewports_ = AB(
3069
3069
  A.viewports ?? [],
3070
3070
  this.canvas,
3071
3071
  this.context_
@@ -3111,7 +3111,7 @@ class to {
3111
3111
  return this.viewports_.find((I) => I.id === A);
3112
3112
  }
3113
3113
  addViewport(A) {
3114
- const [I] = $g([A], this.canvas, this.context_);
3114
+ const [I] = AB([A], this.canvas, this.context_);
3115
3115
  return zB(I, this.viewports_), this.viewports_.push(I), this.running && (I.events.connect(), I.element !== this.canvas && this.sizeObserver_.observe(I.element)), k.info("Idetik", `Added viewport "${I.id}"`), I;
3116
3116
  }
3117
3117
  removeViewport(A) {
@@ -3177,13 +3177,13 @@ function TQ(g, A) {
3177
3177
  }
3178
3178
  };
3179
3179
  }
3180
- function AB(g, A) {
3180
+ function IB(g, A) {
3181
3181
  const I = typeof g == "string" ? new URL(g) : g;
3182
3182
  I.pathname.endsWith("/") || (I.pathname += "/");
3183
3183
  const B = new URL(A.slice(1), I);
3184
3184
  return B.search = I.search, B;
3185
3185
  }
3186
- async function IB(g) {
3186
+ async function gB(g) {
3187
3187
  if (g.status !== 404) {
3188
3188
  if (g.status === 200 || g.status === 206)
3189
3189
  return new Uint8Array(await g.arrayBuffer());
@@ -3202,11 +3202,11 @@ class _A {
3202
3202
  return new Request(A, TQ(this.#I, I));
3203
3203
  }
3204
3204
  async get(A, I = {}) {
3205
- let B = AB(this.url, A).href, C = this.#B(B, I), Q = await this.#A(C);
3206
- return IB(Q);
3205
+ let B = IB(this.url, A).href, C = this.#B(B, I), Q = await this.#A(C);
3206
+ return gB(Q);
3207
3207
  }
3208
3208
  async getRange(A, I, B = {}) {
3209
- let C = AB(this.url, A), Q;
3209
+ let C = IB(this.url, A), Q;
3210
3210
  if ("suffixLength" in I)
3211
3211
  Q = await this.#C(C, I.suffixLength, B);
3212
3212
  else {
@@ -3219,7 +3219,7 @@ class _A {
3219
3219
  }, i = this.#B(C, E);
3220
3220
  Q = await this.#A(i);
3221
3221
  }
3222
- return IB(Q);
3222
+ return gB(Q);
3223
3223
  }
3224
3224
  async #C(A, I, B) {
3225
3225
  if (this.#g) {
@@ -3287,7 +3287,7 @@ class WQ extends $A {
3287
3287
  super(I.join(" "), { cause: A.cause }), this.direction = A.direction, this.codec = A.codec, this.chunkPath = A.chunkPath;
3288
3288
  }
3289
3289
  }
3290
- class Sg extends $A {
3290
+ class Rg extends $A {
3291
3291
  _tag = "UnsupportedError";
3292
3292
  name = "UnsupportedError";
3293
3293
  feature;
@@ -3297,7 +3297,7 @@ class Sg extends $A {
3297
3297
  }
3298
3298
  function UA(g) {
3299
3299
  return () => {
3300
- throw new Sg(`${g} encode`);
3300
+ throw new Rg(`${g} encode`);
3301
3301
  };
3302
3302
  }
3303
3303
  class yI {
@@ -3319,13 +3319,13 @@ class yI {
3319
3319
  return A;
3320
3320
  }
3321
3321
  }
3322
- function Rg(g) {
3322
+ function Ng(g) {
3323
3323
  return g instanceof ArrayBuffer || g instanceof SharedArrayBuffer;
3324
3324
  }
3325
3325
  class _B {
3326
3326
  #A;
3327
3327
  constructor(A, I, B) {
3328
- typeof A == "number" ? this.#A = new Uint8Array(A) : Rg(A) ? this.#A = new Uint8Array(A, I, B) : this.#A = new Uint8Array(Array.from(A, (C) => C ? 1 : 0));
3328
+ typeof A == "number" ? this.#A = new Uint8Array(A) : Ng(A) ? this.#A = new Uint8Array(A, I, B) : this.#A = new Uint8Array(Array.from(A, (C) => C ? 1 : 0));
3329
3329
  }
3330
3330
  get BYTES_PER_ELEMENT() {
3331
3331
  return 1;
@@ -3357,14 +3357,14 @@ class _B {
3357
3357
  yield this.get(A);
3358
3358
  }
3359
3359
  }
3360
- class Ng {
3360
+ class cg {
3361
3361
  _data;
3362
3362
  chars;
3363
3363
  #A;
3364
3364
  constructor(A, I, B, C) {
3365
3365
  if (this.chars = A, this.#A = new TextEncoder(), typeof I == "number")
3366
3366
  this._data = new Uint8Array(I * A);
3367
- else if (Rg(I))
3367
+ else if (Ng(I))
3368
3368
  C && (C = C * A), this._data = new Uint8Array(I, B, C);
3369
3369
  else {
3370
3370
  let Q = Array.from(I);
@@ -3412,7 +3412,7 @@ class AI {
3412
3412
  constructor(A, I, B, C) {
3413
3413
  if (this.chars = A, typeof I == "number")
3414
3414
  this.#A = new Int32Array(I * A);
3415
- else if (Rg(I))
3415
+ else if (Ng(I))
3416
3416
  C && (C *= A), this.#A = new Int32Array(I, B, C);
3417
3417
  else {
3418
3418
  const Q = I, E = new AI(A, 1);
@@ -3476,7 +3476,7 @@ function II(g) {
3476
3476
  throw new v("Failed to decode JSON", { cause: I });
3477
3477
  }
3478
3478
  }
3479
- function gB(g, A) {
3479
+ function BB(g, A) {
3480
3480
  const I = A / 2, B = A - 1;
3481
3481
  let C = 0;
3482
3482
  for (let Q = 0; Q < g.length; Q += A)
@@ -3489,7 +3489,7 @@ function TA(g) {
3489
3489
  let A = g.match(/v2:([US])(\d+)/);
3490
3490
  if (A) {
3491
3491
  let [, B, C] = A;
3492
- return (B === "U" ? AI : Ng).bind(null, Number(C));
3492
+ return (B === "U" ? AI : cg).bind(null, Number(C));
3493
3493
  }
3494
3494
  if (g === "string")
3495
3495
  return globalThis.Array;
@@ -3530,7 +3530,7 @@ function PQ({ name: g, configuration: A }) {
3530
3530
  }
3531
3531
  throw new v(`Unknown chunk key encoding: ${g}`);
3532
3532
  }
3533
- function BB(g) {
3533
+ function CB(g) {
3534
3534
  if (g === "|O")
3535
3535
  return { dataType: "v2:object" };
3536
3536
  let A = g.match(/^([<|>])(.*)$/);
@@ -3558,7 +3558,7 @@ function OQ(g) {
3558
3558
  return (g.id === "fixedscaleoffset" || g.id === "numcodecs.fixedscaleoffset") && typeof g.scale == "number" && typeof g.offset == "number" && (g.astype === void 0 || typeof g.astype == "string") && (g.dtype === void 0 || typeof g.dtype == "string");
3559
3559
  }
3560
3560
  function VQ(g, A = {}) {
3561
- let I = [], B = BB(g.dtype);
3561
+ let I = [], B = CB(g.dtype);
3562
3562
  g.order === "F" && I.push({ name: "transpose", configuration: { order: "F" } });
3563
3563
  for (let Q of g.filters ?? []) {
3564
3564
  if (Q.id === "fixedscaleoffset" || Q.id === "numcodecs.fixedscaleoffset") {
@@ -3573,8 +3573,8 @@ function VQ(g, A = {}) {
3573
3573
  });
3574
3574
  let o = Q.astype ?? Q.dtype;
3575
3575
  if (o !== void 0 && o !== g.dtype) {
3576
- let a = BB(o).dataType;
3577
- if (!Ig(a, "number") && !Ig(a, "bigint"))
3576
+ let a = CB(o).dataType;
3577
+ if (!gg(a, "number") && !gg(a, "bigint"))
3578
3578
  throw new v(`fixedscaleoffset astype must be a numeric data type, got ${o}`);
3579
3579
  I.push({
3580
3580
  name: "cast_value",
@@ -3627,7 +3627,7 @@ function vQ(g, A = {}) {
3627
3627
  attributes: A
3628
3628
  };
3629
3629
  }
3630
- function Ig(g, A) {
3630
+ function gg(g, A) {
3631
3631
  if (A !== "number" && A !== "bigint" && A !== "boolean" && A !== "object" && A !== "string")
3632
3632
  return g === A;
3633
3633
  let I = g === "bool";
@@ -3683,15 +3683,15 @@ async function IC(g, { format: A, signal: I }) {
3683
3683
  throw I?.throwIfAborted(), new Error(`Failed to decode ${A}`);
3684
3684
  }
3685
3685
  }
3686
- const CB = jQ();
3686
+ const QB = jQ();
3687
3687
  function jQ() {
3688
3688
  const g = new Uint32Array([305419896]);
3689
3689
  return new Uint8Array(g.buffer, g.byteOffset, g.byteLength)[0] !== 18;
3690
3690
  }
3691
- function QB(g) {
3691
+ function EB(g) {
3692
3692
  return "BYTES_PER_ELEMENT" in g ? g.BYTES_PER_ELEMENT : 4;
3693
3693
  }
3694
- class dI {
3694
+ class KI {
3695
3695
  kind = "array_to_bytes";
3696
3696
  #A;
3697
3697
  #I;
@@ -3704,24 +3704,24 @@ class dI {
3704
3704
  this.#g = B.BYTES_PER_ELEMENT;
3705
3705
  }
3706
3706
  static fromConfig(A, I) {
3707
- return new dI(A, I);
3707
+ return new KI(A, I);
3708
3708
  }
3709
3709
  encode(A) {
3710
3710
  let I = new Uint8Array(A.data.buffer);
3711
- return CB && this.#C === "big" && gB(I, QB(this.#I)), I;
3711
+ return QB && this.#C === "big" && BB(I, EB(this.#I)), I;
3712
3712
  }
3713
3713
  computeEncodedSize(A) {
3714
3714
  return A;
3715
3715
  }
3716
3716
  decode(A) {
3717
- return CB && this.#C === "big" && gB(A, QB(this.#I)), {
3717
+ return QB && this.#C === "big" && BB(A, EB(this.#I)), {
3718
3718
  data: new this.#I(A.buffer, A.byteOffset, A.byteLength / this.#g),
3719
3719
  shape: this.#B,
3720
3720
  stride: this.#A
3721
3721
  };
3722
3722
  }
3723
3723
  }
3724
- const EB = {
3724
+ const iB = {
3725
3725
  NaN: NaN,
3726
3726
  Infinity: 1 / 0,
3727
3727
  "-Infinity": -1 / 0
@@ -3733,20 +3733,20 @@ const EB = {
3733
3733
  function eI(g) {
3734
3734
  return g in gC;
3735
3735
  }
3736
- function gg(g) {
3736
+ function Bg(g) {
3737
3737
  return g === "int64" || g === "uint64";
3738
3738
  }
3739
3739
  function zQ(g, A) {
3740
3740
  const I = BigInt(g), B = new ArrayBuffer(A), C = new DataView(B);
3741
3741
  if (A === 2) {
3742
3742
  if (typeof C.getFloat16 != "function")
3743
- throw new Sg("float16 hex-encoded scalar decoding (requires DataView.prototype.getFloat16)");
3743
+ throw new Rg("float16 hex-encoded scalar decoding (requires DataView.prototype.getFloat16)");
3744
3744
  return C.setUint16(0, Number(I)), C.getFloat16(0);
3745
3745
  }
3746
3746
  return A === 4 ? (C.setUint32(0, Number(I)), C.getFloat32(0)) : (C.setBigUint64(0, I), C.getFloat64(0));
3747
3747
  }
3748
3748
  function nI(g, A) {
3749
- if (gg(g)) {
3749
+ if (Bg(g)) {
3750
3750
  if (typeof A != "number" || !Number.isInteger(A))
3751
3751
  throw new v(`Expected an integer value for data type "${g}", got ${JSON.stringify(A)}`);
3752
3752
  return BigInt(A);
@@ -3758,9 +3758,9 @@ function nI(g, A) {
3758
3758
  }
3759
3759
  if (!eI(g))
3760
3760
  throw new v(`String-encoded scalar "${A}" is not valid for non-float data type "${g}"`);
3761
- return A in EB ? EB[A] : zQ(A, gC[g]);
3761
+ return A in iB ? iB[A] : zQ(A, gC[g]);
3762
3762
  }
3763
- const iB = /* @__PURE__ */ new Set([
3763
+ const oB = /* @__PURE__ */ new Set([
3764
3764
  "int8",
3765
3765
  "uint8",
3766
3766
  "int16",
@@ -3772,18 +3772,18 @@ const iB = /* @__PURE__ */ new Set([
3772
3772
  "float16",
3773
3773
  "float32",
3774
3774
  "float64"
3775
- ]), TI = {
3775
+ ]), xI = {
3776
3776
  int8: [-128, 2 ** 7 - 1],
3777
3777
  uint8: [0, 2 ** 8 - 1],
3778
3778
  int16: [-32768, 2 ** 15 - 1],
3779
3779
  uint16: [0, 2 ** 16 - 1],
3780
3780
  int32: [-2147483648, 2 ** 31 - 1],
3781
3781
  uint32: [0, 2 ** 32 - 1]
3782
- }, xI = {
3782
+ }, WI = {
3783
3783
  int64: [-(2n ** 63n), 2n ** 63n - 1n],
3784
3784
  uint64: [0n, 2n ** 64n - 1n]
3785
3785
  };
3786
- function oB(g, A, I) {
3786
+ function aB(g, A, I) {
3787
3787
  return g.map(([B, C]) => ({
3788
3788
  src: nI(A, B),
3789
3789
  tgt: nI(I, C)
@@ -3809,7 +3809,7 @@ function $Q(g) {
3809
3809
  function AE(g) {
3810
3810
  return Math.sign(g) * Math.floor(Math.abs(g) + 0.5);
3811
3811
  }
3812
- function aB(g) {
3812
+ function DB(g) {
3813
3813
  switch (g) {
3814
3814
  case "nearest-even":
3815
3815
  return $Q;
@@ -3823,7 +3823,7 @@ function aB(g) {
3823
3823
  return AE;
3824
3824
  }
3825
3825
  }
3826
- function WI(g, A, I) {
3826
+ function bI(g, A, I) {
3827
3827
  const B = A - g + 1;
3828
3828
  switch (I) {
3829
3829
  case "clamp":
@@ -3838,7 +3838,7 @@ function WI(g, A, I) {
3838
3838
  };
3839
3839
  }
3840
3840
  }
3841
- function bI(g, A, I) {
3841
+ function ZI(g, A, I) {
3842
3842
  const B = A - g + 1n;
3843
3843
  switch (I) {
3844
3844
  case "clamp":
@@ -3853,14 +3853,14 @@ function bI(g, A, I) {
3853
3853
  };
3854
3854
  }
3855
3855
  }
3856
- class cg {
3856
+ class Ug {
3857
3857
  kind = "array_to_array";
3858
3858
  #A;
3859
3859
  #I;
3860
3860
  #g;
3861
3861
  #B;
3862
3862
  constructor(A, I, B, C, Q, E) {
3863
- this.#A = I, this.#I = TA(A), this.#g = DB(I, A, B, C, Q), this.#B = DB(A, I, B, C, E);
3863
+ this.#A = I, this.#I = TA(A), this.#g = sB(I, A, B, C, Q), this.#B = sB(A, I, B, C, E);
3864
3864
  }
3865
3865
  /** Return updated metadata reflecting the type and fill value after encoding. */
3866
3866
  getEncodedMeta(A) {
@@ -3869,12 +3869,12 @@ class cg {
3869
3869
  }
3870
3870
  static fromConfig(A, I) {
3871
3871
  const B = I.dataType, C = A.data_type;
3872
- if (!iB.has(B))
3872
+ if (!oB.has(B))
3873
3873
  throw new v(`cast_value codec does not support array data type: ${B}`);
3874
- if (!iB.has(C))
3874
+ if (!oB.has(C))
3875
3875
  throw new v(`cast_value codec does not support encoded data type: ${C}`);
3876
- const Q = A.rounding ?? "nearest-even", E = A.scalar_map?.decode ? oB(A.scalar_map.decode, C, B) : [], i = A.scalar_map?.encode ? oB(A.scalar_map.encode, B, C) : [];
3877
- return new cg(B, C, Q, A.out_of_range, E, i);
3876
+ const Q = A.rounding ?? "nearest-even", E = A.scalar_map?.decode ? aB(A.scalar_map.decode, C, B) : [], i = A.scalar_map?.encode ? aB(A.scalar_map.encode, B, C) : [];
3877
+ return new Ug(B, C, Q, A.out_of_range, E, i);
3878
3878
  }
3879
3879
  encode = UA("cast_value");
3880
3880
  decode(A) {
@@ -3884,22 +3884,22 @@ class cg {
3884
3884
  return { data: B, shape: A.shape, stride: A.stride };
3885
3885
  }
3886
3886
  }
3887
- function DB(g, A, I, B, C) {
3888
- const Q = eI(g), E = gg(g), i = eI(A), o = gg(A);
3887
+ function sB(g, A, I, B, C) {
3888
+ const Q = eI(g), E = Bg(g), i = eI(A), o = Bg(A);
3889
3889
  let a;
3890
3890
  if (Q && i) {
3891
3891
  if (I !== "nearest-even")
3892
3892
  throw new v(`cast_value float -> float only supports "nearest-even" rounding, got "${I}"`);
3893
3893
  a = (s) => s;
3894
3894
  } else if (Q && !i && !o) {
3895
- const s = aB(I), h = WI(...TI[A], B);
3895
+ const s = DB(I), h = bI(...xI[A], B);
3896
3896
  a = (t) => {
3897
3897
  if (!Number.isFinite(t))
3898
3898
  throw new Error(`Cannot cast ${t} to integer type without scalar_map`);
3899
3899
  return h(s(t));
3900
3900
  };
3901
3901
  } else if (Q && o) {
3902
- const s = aB(I), h = bI(...xI[A], B);
3902
+ const s = DB(I), h = ZI(...WI[A], B);
3903
3903
  a = (t) => {
3904
3904
  if (!Number.isFinite(t))
3905
3905
  throw new Error(`Cannot cast ${t} to integer type without scalar_map`);
@@ -3910,15 +3910,15 @@ function DB(g, A, I, B, C) {
3910
3910
  else if (E && i)
3911
3911
  a = (s) => Number(s);
3912
3912
  else if (!Q && !E && !i && !o)
3913
- a = WI(...TI[A], B);
3913
+ a = bI(...xI[A], B);
3914
3914
  else if (!Q && !E && o) {
3915
- const s = bI(...xI[A], B);
3915
+ const s = ZI(...WI[A], B);
3916
3916
  a = (h) => s(BigInt(h));
3917
3917
  } else if (E && !i && !o) {
3918
- const s = WI(...TI[A], B);
3918
+ const s = bI(...xI[A], B);
3919
3919
  a = (h) => s(Number(h));
3920
3920
  } else if (E && o)
3921
- a = bI(...xI[A], B);
3921
+ a = ZI(...WI[A], B);
3922
3922
  else
3923
3923
  throw new Error(`Unhandled type combination: ${g} -> ${A}`);
3924
3924
  return C.length === 0 ? a : (s) => {
@@ -3926,10 +3926,10 @@ function DB(g, A, I, B, C) {
3926
3926
  return h !== void 0 ? h : a(s);
3927
3927
  };
3928
3928
  }
3929
- class Ug {
3929
+ class kg {
3930
3930
  kind = "bytes_to_bytes";
3931
3931
  static fromConfig() {
3932
- return new Ug();
3932
+ return new kg();
3933
3933
  }
3934
3934
  encode = UA("crc32c");
3935
3935
  decode(A) {
@@ -3952,7 +3952,7 @@ const IE = /* @__PURE__ */ new Set([
3952
3952
  "float32",
3953
3953
  "float64"
3954
3954
  ]);
3955
- function sB(g, A) {
3955
+ function hB(g, A) {
3956
3956
  const I = g.length;
3957
3957
  let B = I === 0 || A[I - 1] === 1;
3958
3958
  for (let Q = I - 2; Q >= 0 && B; Q--)
@@ -3965,7 +3965,7 @@ function sB(g, A) {
3965
3965
  if (!C)
3966
3966
  throw new Error(`DeltaCodec requires C- or Fortran-contiguous strides, got shape=${JSON.stringify(g)} stride=${JSON.stringify(A)}`);
3967
3967
  }
3968
- class kg {
3968
+ class Lg {
3969
3969
  kind = "array_to_array";
3970
3970
  #A;
3971
3971
  constructor(A) {
@@ -3974,10 +3974,10 @@ class kg {
3974
3974
  static fromConfig(A, I) {
3975
3975
  if (!IE.has(I.dataType))
3976
3976
  throw new v(`Delta codec does not support data type: ${I.dataType}`);
3977
- return new kg(TA(I.dataType));
3977
+ return new Lg(TA(I.dataType));
3978
3978
  }
3979
3979
  encode(A) {
3980
- sB(A.shape, A.stride);
3980
+ hB(A.shape, A.stride);
3981
3981
  const I = A.data, B = new this.#A(I.length);
3982
3982
  B[0] = I[0];
3983
3983
  for (let C = 1; C < I.length; C++)
@@ -3985,7 +3985,7 @@ class kg {
3985
3985
  return { data: B, shape: A.shape, stride: A.stride };
3986
3986
  }
3987
3987
  decode(A) {
3988
- sB(A.shape, A.stride);
3988
+ hB(A.shape, A.stride);
3989
3989
  const I = A.data, B = new this.#A(I.length);
3990
3990
  B[0] = I[0];
3991
3991
  for (let C = 1; C < I.length; C++)
@@ -3993,10 +3993,10 @@ class kg {
3993
3993
  return { data: B, shape: A.shape, stride: A.stride };
3994
3994
  }
3995
3995
  }
3996
- class Lg {
3996
+ class Jg {
3997
3997
  kind = "bytes_to_bytes";
3998
3998
  static fromConfig(A) {
3999
- return new Lg();
3999
+ return new Jg();
4000
4000
  }
4001
4001
  encode = UA("gzip");
4002
4002
  async decode(A) {
@@ -4075,7 +4075,7 @@ const CE = /* @__PURE__ */ new Set([
4075
4075
  "float32",
4076
4076
  "float64"
4077
4077
  ]);
4078
- class Jg {
4078
+ class Yg {
4079
4079
  kind = "array_to_array";
4080
4080
  #A;
4081
4081
  #I;
@@ -4086,7 +4086,7 @@ class Jg {
4086
4086
  static fromConfig(A, I) {
4087
4087
  if (!CE.has(I.dataType))
4088
4088
  throw new v(`scale_offset codec does not support data type: ${I.dataType}`);
4089
- return new Jg(nI(I.dataType, A.scale ?? 1), nI(I.dataType, A.offset ?? 0), TA(I.dataType));
4089
+ return new Yg(nI(I.dataType, A.scale ?? 1), nI(I.dataType, A.offset ?? 0), TA(I.dataType));
4090
4090
  }
4091
4091
  encode = UA("scale_offset");
4092
4092
  decode(A) {
@@ -4096,7 +4096,7 @@ class Jg {
4096
4096
  return { data: B, shape: A.shape, stride: A.stride };
4097
4097
  }
4098
4098
  }
4099
- class Yg {
4099
+ class Mg {
4100
4100
  kind = "bytes_to_bytes";
4101
4101
  #A;
4102
4102
  constructor(A, I) {
@@ -4107,7 +4107,7 @@ class Yg {
4107
4107
  this.#A = A.elementsize ?? 4;
4108
4108
  }
4109
4109
  static fromConfig(A, I) {
4110
- return new Yg(A, I);
4110
+ return new Mg(A, I);
4111
4111
  }
4112
4112
  encode(A) {
4113
4113
  return QE(A, this.#A);
@@ -4130,8 +4130,8 @@ function EE(g, A) {
4130
4130
  C[E * A + Q] = g[Q * B + E];
4131
4131
  return C;
4132
4132
  }
4133
- function hB(g) {
4134
- return g instanceof _B || g instanceof Ng || g instanceof AI ? new Proxy(g, {
4133
+ function tB(g) {
4134
+ return g instanceof _B || g instanceof cg || g instanceof AI ? new Proxy(g, {
4135
4135
  get(I, B) {
4136
4136
  return I.get(Number(B));
4137
4137
  },
@@ -4142,7 +4142,7 @@ function hB(g) {
4142
4142
  }
4143
4143
  function iE(g, A) {
4144
4144
  let I;
4145
- return g.data instanceof Ng || g.data instanceof AI ? I = new g.constructor(
4145
+ return g.data instanceof cg || g.data instanceof AI ? I = new g.constructor(
4146
4146
  // @ts-expect-error
4147
4147
  g.data.length,
4148
4148
  g.data.chars
@@ -4153,7 +4153,7 @@ function iE(g, A) {
4153
4153
  };
4154
4154
  }
4155
4155
  function oE(g, A) {
4156
- let I = iE(g, A), B = g.shape.length, C = g.data.length, Q = Array(B).fill(0), E = hB(g.data), i = hB(I.data);
4156
+ let I = iE(g, A), B = g.shape.length, C = g.data.length, Q = Array(B).fill(0), E = tB(g.data), i = tB(I.data);
4157
4157
  for (let o = 0; o < C; o++) {
4158
4158
  let a = 0;
4159
4159
  for (let D = 0; D < B; D++)
@@ -4176,7 +4176,7 @@ function DE(g, A) {
4176
4176
  let I = aE(g);
4177
4177
  return IA(I.length === A.length, "Orders must match"), I.every((B, C) => B === A[C]);
4178
4178
  }
4179
- class Mg {
4179
+ class dg {
4180
4180
  kind = "array_to_array";
4181
4181
  #A;
4182
4182
  #I;
@@ -4195,7 +4195,7 @@ class Mg {
4195
4195
  this.#A = Q, this.#I = E;
4196
4196
  }
4197
4197
  static fromConfig(A, I) {
4198
- return new Mg(A, I);
4198
+ return new dg(A, I);
4199
4199
  }
4200
4200
  encode(A) {
4201
4201
  return DE(A, this.#I) ? A : oE(A, this.#I);
@@ -4228,10 +4228,10 @@ class wI {
4228
4228
  return { data: C, shape: this.#A, stride: this.#I };
4229
4229
  }
4230
4230
  }
4231
- class dg {
4231
+ class Kg {
4232
4232
  kind = "bytes_to_bytes";
4233
4233
  static fromConfig(A) {
4234
- return new dg();
4234
+ return new Kg();
4235
4235
  }
4236
4236
  encode = UA("zlib");
4237
4237
  async decode(A) {
@@ -4240,11 +4240,11 @@ class dg {
4240
4240
  }
4241
4241
  }
4242
4242
  function sE() {
4243
- let g = () => import("./blosc-D1xNXZJs.js").then((Q) => Q.default), A = () => import("./lz4-1Ws5oVWR.js").then((Q) => Q.default), I = () => import("./zstd-C4EcZnjq.js").then((Q) => Q.default), B = () => Lg, C = () => dg;
4244
- return (/* @__PURE__ */ new Map()).set("blosc", g).set("lz4", A).set("zstd", I).set("gzip", B).set("zlib", C).set("transpose", () => Mg).set("bytes", () => dI).set("crc32c", () => Ug).set("vlen-utf8", () => wI).set("json2", () => GI).set("bitround", () => yI).set("cast_value", () => cg).set("scale_offset", () => Jg).set("numcodecs.blosc", g).set("numcodecs.lz4", A).set("numcodecs.zstd", I).set("numcodecs.gzip", B).set("numcodecs.zlib", C).set("numcodecs.vlen-utf8", () => wI).set("numcodecs.shuffle", () => Yg).set("numcodecs.delta", () => kg).set("numcodecs.bitround", () => yI).set("numcodecs.json2", () => GI);
4243
+ let g = () => import("./blosc-D1xNXZJs.js").then((Q) => Q.default), A = () => import("./lz4-1Ws5oVWR.js").then((Q) => Q.default), I = () => import("./zstd-C4EcZnjq.js").then((Q) => Q.default), B = () => Jg, C = () => Kg;
4244
+ return (/* @__PURE__ */ new Map()).set("blosc", g).set("lz4", A).set("zstd", I).set("gzip", B).set("zlib", C).set("transpose", () => dg).set("bytes", () => KI).set("crc32c", () => kg).set("vlen-utf8", () => wI).set("json2", () => GI).set("bitround", () => yI).set("cast_value", () => Ug).set("scale_offset", () => Yg).set("numcodecs.blosc", g).set("numcodecs.lz4", A).set("numcodecs.zstd", I).set("numcodecs.gzip", B).set("numcodecs.zlib", C).set("numcodecs.vlen-utf8", () => wI).set("numcodecs.shuffle", () => Mg).set("numcodecs.delta", () => Lg).set("numcodecs.bitround", () => yI).set("numcodecs.json2", () => GI);
4245
4245
  }
4246
4246
  const hE = sE();
4247
- function Bg(g) {
4247
+ function Cg(g) {
4248
4248
  let A;
4249
4249
  function I() {
4250
4250
  return A || (A = tE(g)), A;
@@ -4280,14 +4280,14 @@ function Bg(g) {
4280
4280
  return E;
4281
4281
  },
4282
4282
  async computeEncodedSize(C) {
4283
- let Q = await I(), E = tB(Q.arrayToBytes.name, Q.arrayToBytes.codec, C);
4283
+ let Q = await I(), E = yB(Q.arrayToBytes.name, Q.arrayToBytes.codec, C);
4284
4284
  for (const { name: i, codec: o } of Q.bytesToBytes)
4285
- E = tB(i, o, E);
4285
+ E = yB(i, o, E);
4286
4286
  return E;
4287
4287
  }
4288
4288
  };
4289
4289
  }
4290
- function tB(g, A, I) {
4290
+ function yB(g, A, I) {
4291
4291
  if (!A.computeEncodedSize)
4292
4292
  throw new v(`Codec "${g}" cannot compute its encoded size; it is not a fixed-size codec and cannot be used in a sharding index pipeline`);
4293
4293
  return A.computeEncodedSize(I);
@@ -4326,7 +4326,7 @@ async function tE(g) {
4326
4326
  throw new v(`Cannot encode ${Q.dataType} to bytes without a codec`);
4327
4327
  B = {
4328
4328
  name: "bytes",
4329
- codec: dI.fromConfig({ endian: "little" }, Q)
4329
+ codec: KI.fromConfig({ endian: "little" }, Q)
4330
4330
  };
4331
4331
  }
4332
4332
  return {
@@ -4338,11 +4338,11 @@ async function tE(g) {
4338
4338
  function yE(g) {
4339
4339
  return g.dataType !== "v2:object" && g.dataType !== "string";
4340
4340
  }
4341
- const yB = 18446744073709551615n;
4341
+ const eB = 18446744073709551615n;
4342
4342
  function eE(g, A, I, B) {
4343
4343
  if (!g.store.getRange)
4344
- throw new Sg("sharding requires a store with getRange");
4345
- let C = g.store.getRange.bind(g.store), Q = A.map((a, D) => a / B.chunk_shape[D]), E = Bg({
4344
+ throw new Rg("sharding requires a store with getRange");
4345
+ let C = g.store.getRange.bind(g.store), Q = A.map((a, D) => a / B.chunk_shape[D]), E = Cg({
4346
4346
  dataType: "uint64",
4347
4347
  shape: [...Q, 2],
4348
4348
  codecs: B.index_codecs,
@@ -4360,7 +4360,7 @@ function eE(g, A, I, B) {
4360
4360
  if (t === null)
4361
4361
  return;
4362
4362
  let { data: y, shape: n, stride: F } = t, G = a.map((S, r) => S % n[r]).reduce((S, r, c) => S + r * F[c], 0), J = y[G], U = y[G + 1];
4363
- if (!(J === yB && U === yB))
4363
+ if (!(J === eB && U === eB))
4364
4364
  return C(h, {
4365
4365
  offset: Number(J),
4366
4366
  length: Number(U)
@@ -4378,7 +4378,7 @@ class CA {
4378
4378
  return new CA(this.store, decodeURIComponent(new URL(A, I).pathname));
4379
4379
  }
4380
4380
  }
4381
- class Kg extends CA {
4381
+ class Hg extends CA {
4382
4382
  kind = "group";
4383
4383
  #A;
4384
4384
  constructor(A, I, B) {
@@ -4388,7 +4388,7 @@ class Kg extends CA {
4388
4388
  return this.#A.attributes;
4389
4389
  }
4390
4390
  }
4391
- function eB(g) {
4391
+ function nB(g) {
4392
4392
  return g.find((I) => I.name === "transpose")?.configuration?.order ?? "C";
4393
4393
  }
4394
4394
  const QI = Symbol("zarrita.context");
@@ -4399,12 +4399,12 @@ function nE(g, A) {
4399
4399
  fillValue: A.fill_value
4400
4400
  };
4401
4401
  if (I) {
4402
- let Q = eB(I.codecs);
4402
+ let Q = nB(I.codecs);
4403
4403
  return {
4404
4404
  ...B,
4405
4405
  kind: "sharded",
4406
4406
  chunkShape: I.chunk_shape,
4407
- codec: Bg({
4407
+ codec: Cg({
4408
4408
  dataType: A.data_type,
4409
4409
  shape: I.chunk_shape,
4410
4410
  codecs: I.codecs,
@@ -4416,12 +4416,12 @@ function nE(g, A) {
4416
4416
  getChunkBytes: eE(g, A.chunk_grid.configuration.chunk_shape, B.encodeChunkKey, I)
4417
4417
  };
4418
4418
  }
4419
- let C = eB(A.codecs);
4419
+ let C = nB(A.codecs);
4420
4420
  return {
4421
4421
  ...B,
4422
4422
  kind: "regular",
4423
4423
  chunkShape: A.chunk_grid.configuration.chunk_shape,
4424
- codec: Bg({
4424
+ codec: Cg({
4425
4425
  dataType: A.data_type,
4426
4426
  shape: A.chunk_grid.configuration.chunk_shape,
4427
4427
  codecs: A.codecs,
@@ -4505,7 +4505,7 @@ let FI = class extends CA {
4505
4505
  * ```
4506
4506
  */
4507
4507
  is(A) {
4508
- return Ig(this.dtype, A);
4508
+ return gg(this.dtype, A);
4509
4509
  }
4510
4510
  };
4511
4511
  function GE(g, A) {
@@ -4521,7 +4521,7 @@ async function BC(g) {
4521
4521
  let A = g.store.arrayExtensions;
4522
4522
  return A?.length ? await wE(g, ...A) : g;
4523
4523
  }
4524
- let KI = FE();
4524
+ let HI = FE();
4525
4525
  function FE() {
4526
4526
  let g = /* @__PURE__ */ new WeakMap();
4527
4527
  function A(I) {
@@ -4546,30 +4546,30 @@ async function rE(g, A) {
4546
4546
  }
4547
4547
  async function SE(g, A = {}) {
4548
4548
  let I = "store" in g ? g : new CA(g), { signal: B } = A, C = {};
4549
- return (A.attrs ?? !0) && (C = await rE(I, B)), B?.throwIfAborted(), A.kind === "array" ? nB(I, C, B) : A.kind === "group" ? GB(I, C, B) : nB(I, C, B).catch((Q) => (AC(Q, uA, v), GB(I, C, B)));
4549
+ return (A.attrs ?? !0) && (C = await rE(I, B)), B?.throwIfAborted(), A.kind === "array" ? GB(I, C, B) : A.kind === "group" ? wB(I, C, B) : GB(I, C, B).catch((Q) => (AC(Q, uA, v), wB(I, C, B)));
4550
4550
  }
4551
- async function nB(g, A, I) {
4551
+ async function GB(g, A, I) {
4552
4552
  let { path: B } = g.resolve(".zarray"), C = await g.store.get(B, { signal: I });
4553
4553
  if (!C)
4554
4554
  throw new uA("v2 array", { path: B });
4555
- return KI.increment(g.store, "v2"), BC(new FI(g.store, g.path, VQ(II(C), A)));
4555
+ return HI.increment(g.store, "v2"), BC(new FI(g.store, g.path, VQ(II(C), A)));
4556
4556
  }
4557
- async function GB(g, A, I) {
4557
+ async function wB(g, A, I) {
4558
4558
  let { path: B } = g.resolve(".zgroup"), C = await g.store.get(B, { signal: I });
4559
4559
  if (!C)
4560
4560
  throw new uA("v2 group", { path: B });
4561
- return KI.increment(g.store, "v2"), new Kg(g.store, g.path, vQ(II(C), A));
4561
+ return HI.increment(g.store, "v2"), new Hg(g.store, g.path, vQ(II(C), A));
4562
4562
  }
4563
4563
  async function RE(g, A) {
4564
4564
  let { store: I, path: B } = g.resolve("zarr.json"), C = await g.store.get(B, { signal: A });
4565
4565
  if (!C)
4566
4566
  throw new uA("v3 array or group", { path: B });
4567
4567
  let Q = II(C);
4568
- return Q.node_type === "array" && (Q.fill_value = $B(Q)), Q.node_type === "array" ? BC(new FI(I, g.path, Q)) : new Kg(I, g.path, Q);
4568
+ return Q.node_type === "array" && (Q.fill_value = $B(Q)), Q.node_type === "array" ? BC(new FI(I, g.path, Q)) : new Hg(I, g.path, Q);
4569
4569
  }
4570
4570
  async function NE(g, A = {}) {
4571
4571
  let I = "store" in g ? g : new CA(g), B = await RE(I, A.signal);
4572
- if (KI.increment(I.store, "v3"), A.kind === void 0 || A.kind === "array" && B instanceof FI || A.kind === "group" && B instanceof Kg)
4572
+ if (HI.increment(I.store, "v3"), A.kind === void 0 || A.kind === "array" && B instanceof FI || A.kind === "group" && B instanceof Hg)
4573
4573
  return B;
4574
4574
  let C = B instanceof FI ? "array" : "group";
4575
4575
  throw new uA(`${A.kind} at ${I.path}`, {
@@ -4578,7 +4578,7 @@ async function NE(g, A = {}) {
4578
4578
  });
4579
4579
  }
4580
4580
  async function BA(g, A = {}) {
4581
- let I = "store" in g ? g.store : g, B = KI.versionMax(I), C = B === "v2" ? BA.v2 : BA.v3, Q = B === "v2" ? BA.v3 : BA.v2;
4581
+ let I = "store" in g ? g.store : g, B = HI.versionMax(I), C = B === "v2" ? BA.v2 : BA.v3, Q = B === "v2" ? BA.v3 : BA.v2;
4582
4582
  return C(g, A).catch((E) => (AC(E, uA, v), Q(g, A)));
4583
4583
  }
4584
4584
  BA.v2 = SE;
@@ -4591,7 +4591,7 @@ async function cE(g, A) {
4591
4591
  g = await g.getDirectoryHandle(C);
4592
4592
  return g.getFileHandle(B);
4593
4593
  }
4594
- class Hg {
4594
+ class qg {
4595
4595
  #A;
4596
4596
  constructor(A) {
4597
4597
  this.#A = A;
@@ -4658,7 +4658,7 @@ async function kE(g) {
4658
4658
  }
4659
4659
  case "filesystem": {
4660
4660
  A = new CA(
4661
- new Hg(g.directoryHandle),
4661
+ new qg(g.directoryHandle),
4662
4662
  g.path
4663
4663
  );
4664
4664
  break;
@@ -4679,7 +4679,7 @@ function LE(g, A, I) {
4679
4679
  zarrVersion: I,
4680
4680
  url: g.store.url.toString()
4681
4681
  };
4682
- if (g.store instanceof Hg)
4682
+ if (g.store instanceof qg)
4683
4683
  return {
4684
4684
  type: "filesystem",
4685
4685
  arrayPath: A,
@@ -8383,11 +8383,11 @@ return ret;
8383
8383
  default: IQ
8384
8384
  });
8385
8385
  //# sourceMappingURL=worker_kernel-CBlE4MBI.js.map
8386
- `, wB = typeof self < "u" && self.Blob && new Blob(["URL.revokeObjectURL(import.meta.url);", CC], { type: "text/javascript;charset=utf-8" });
8386
+ `, FB = typeof self < "u" && self.Blob && new Blob(["URL.revokeObjectURL(import.meta.url);", CC], { type: "text/javascript;charset=utf-8" });
8387
8387
  function ME(g) {
8388
8388
  let A;
8389
8389
  try {
8390
- if (A = wB && (self.URL || self.webkitURL).createObjectURL(wB), !A) throw "";
8390
+ if (A = FB && (self.URL || self.webkitURL).createObjectURL(FB), !A) throw "";
8391
8391
  const I = new Worker(A, {
8392
8392
  type: "module",
8393
8393
  name: g?.name
@@ -8432,7 +8432,7 @@ function HE(g, A) {
8432
8432
  "Received message but no pending tasks - this should not happen"
8433
8433
  ), B && g.data.type === "getChunk" ? C.resolve(g.data.data) : B || C.reject(new Error(g.data.error || "Unknown worker error"));
8434
8434
  }
8435
- function FB(g, A) {
8435
+ function rB(g, A) {
8436
8436
  if (g instanceof MessageEvent) {
8437
8437
  k.error(
8438
8438
  "ZarrWorker",
@@ -8467,9 +8467,9 @@ function FB(g, A) {
8467
8467
  }
8468
8468
  function iC() {
8469
8469
  const g = new ME();
8470
- return g.addEventListener("message", (A) => HE(A, g)), g.addEventListener("error", (A) => FB(A, g)), g.addEventListener(
8470
+ return g.addEventListener("message", (A) => HE(A, g)), g.addEventListener("error", (A) => rB(A, g)), g.addEventListener(
8471
8471
  "messageerror",
8472
- (A) => FB(A, g)
8472
+ (A) => rB(A, g)
8473
8473
  ), g;
8474
8474
  }
8475
8475
  function qE() {
@@ -8612,7 +8612,7 @@ class uE {
8612
8612
  A.rowAlignmentBytes = D, SQ(A, a);
8613
8613
  }
8614
8614
  }
8615
- const rB = {
8615
+ const SB = {
8616
8616
  int8: 1,
8617
8617
  uint8: 1,
8618
8618
  int16: 2,
@@ -8622,15 +8622,15 @@ const rB = {
8622
8622
  float32: 4
8623
8623
  };
8624
8624
  function TE(g) {
8625
- const A = rB[g];
8625
+ const A = SB[g];
8626
8626
  if (A === void 0)
8627
8627
  throw new Error(
8628
- `Unsupported zarr dtype "${g}". Supported dtypes: ${Object.keys(rB).join(", ")}`
8628
+ `Unsupported zarr dtype "${g}". Supported dtypes: ${Object.keys(SB).join(", ")}`
8629
8629
  );
8630
8630
  return A;
8631
8631
  }
8632
8632
  function xE(g, A) {
8633
- const I = g.axes.map((s) => s.name), B = g.axes.length, C = SB(I, "x"), Q = SB(I, "y"), E = (s, h) => {
8633
+ const I = g.axes.map((s) => s.name), B = g.axes.length, C = RB(I, "x"), Q = RB(I, "y"), E = (s, h) => {
8634
8634
  const t = [];
8635
8635
  for (let y = 0; y < g.datasets.length; y++) {
8636
8636
  const n = g.datasets[y], F = A[y], G = n.coordinateTransformations[0].scale, J = n.coordinateTransformations.length === 2 ? n.coordinateTransformations[1].translation : new Array(B).fill(0);
@@ -8663,7 +8663,7 @@ function xE(g, A) {
8663
8663
  function WE(g, A) {
8664
8664
  return g.toLowerCase() === A.toLowerCase();
8665
8665
  }
8666
- function SB(g, A) {
8666
+ function RB(g, A) {
8667
8667
  const I = iI(g, A);
8668
8668
  if (I === -1)
8669
8669
  throw new Error(
@@ -8719,14 +8719,14 @@ var l;
8719
8719
  }
8720
8720
  g.joinValues = B, g.jsonStringifyReplacer = (C, Q) => typeof Q == "bigint" ? Q.toString() : Q;
8721
8721
  })(l || (l = {}));
8722
- var RB;
8722
+ var NB;
8723
8723
  (function(g) {
8724
8724
  g.mergeShapes = (A, I) => ({
8725
8725
  ...A,
8726
8726
  ...I
8727
8727
  // second overwrites first
8728
8728
  });
8729
- })(RB || (RB = {}));
8729
+ })(NB || (NB = {}));
8730
8730
  const R = l.arrayToEnum([
8731
8731
  "string",
8732
8732
  "nan",
@@ -8851,7 +8851,7 @@ class tA extends Error {
8851
8851
  }
8852
8852
  }
8853
8853
  tA.create = (g) => new tA(g);
8854
- const Cg = (g, A) => {
8854
+ const Qg = (g, A) => {
8855
8855
  let I;
8856
8856
  switch (g.code) {
8857
8857
  case e.invalid_type:
@@ -8907,7 +8907,7 @@ const Cg = (g, A) => {
8907
8907
  }
8908
8908
  return { message: I };
8909
8909
  };
8910
- let ZE = Cg;
8910
+ let ZE = Qg;
8911
8911
  function PE() {
8912
8912
  return ZE;
8913
8913
  }
@@ -8944,7 +8944,7 @@ function w(g, A) {
8944
8944
  // then schema-bound map if available
8945
8945
  I,
8946
8946
  // then global override map
8947
- I === Cg ? void 0 : Cg
8947
+ I === Qg ? void 0 : Qg
8948
8948
  // then global default map
8949
8949
  ].filter((C) => !!C)
8950
8950
  });
@@ -8993,7 +8993,7 @@ class gA {
8993
8993
  }
8994
8994
  const Y = Object.freeze({
8995
8995
  status: "aborted"
8996
- }), ZA = (g) => ({ status: "dirty", value: g }), QA = (g) => ({ status: "valid", value: g }), NB = (g) => g.status === "aborted", cB = (g) => g.status === "dirty", KA = (g) => g.status === "valid", SI = (g) => typeof Promise < "u" && g instanceof Promise;
8996
+ }), ZA = (g) => ({ status: "dirty", value: g }), QA = (g) => ({ status: "valid", value: g }), cB = (g) => g.status === "aborted", UB = (g) => g.status === "dirty", KA = (g) => g.status === "valid", SI = (g) => typeof Promise < "u" && g instanceof Promise;
8997
8997
  var N;
8998
8998
  (function(g) {
8999
8999
  g.errToObj = (A) => typeof A == "string" ? { message: A } : A || {}, g.toString = (A) => typeof A == "string" ? A : A?.message;
@@ -9006,7 +9006,7 @@ class wA {
9006
9006
  return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
9007
9007
  }
9008
9008
  }
9009
- const UB = (g, A) => {
9009
+ const kB = (g, A) => {
9010
9010
  if (KA(A))
9011
9011
  return { success: !0, data: A.value };
9012
9012
  if (!g.common.issues.length)
@@ -9091,7 +9091,7 @@ class q {
9091
9091
  data: A,
9092
9092
  parsedType: yA(A)
9093
9093
  }, C = this._parseSync({ data: A, path: B.path, parent: B });
9094
- return UB(B, C);
9094
+ return kB(B, C);
9095
9095
  }
9096
9096
  "~validate"(A) {
9097
9097
  const I = {
@@ -9144,7 +9144,7 @@ class q {
9144
9144
  data: A,
9145
9145
  parsedType: yA(A)
9146
9146
  }, C = this._parse({ data: A, path: B.path, parent: B }), Q = await (SI(C) ? C : Promise.resolve(C));
9147
- return UB(B, Q);
9147
+ return kB(B, Q);
9148
9148
  }
9149
9149
  refine(A, I) {
9150
9150
  const B = (C) => typeof I == "string" || typeof I > "u" ? { message: I } : typeof I == "function" ? I(C) : I;
@@ -9207,7 +9207,7 @@ class q {
9207
9207
  }
9208
9208
  default(A) {
9209
9209
  const I = typeof A == "function" ? A : () => A;
9210
- return new ag({
9210
+ return new Dg({
9211
9211
  ...K(this._def),
9212
9212
  innerType: this,
9213
9213
  defaultValue: I,
@@ -9223,7 +9223,7 @@ class q {
9223
9223
  }
9224
9224
  catch(A) {
9225
9225
  const I = typeof A == "function" ? A : () => A;
9226
- return new Dg({
9226
+ return new sg({
9227
9227
  ...K(this._def),
9228
9228
  innerType: this,
9229
9229
  catchValue: I,
@@ -9238,10 +9238,10 @@ class q {
9238
9238
  });
9239
9239
  }
9240
9240
  pipe(A) {
9241
- return qg.create(this, A);
9241
+ return lg.create(this, A);
9242
9242
  }
9243
9243
  readonly() {
9244
- return sg.create(this);
9244
+ return hg.create(this);
9245
9245
  }
9246
9246
  isOptional() {
9247
9247
  return this.safeParse(void 0).success;
@@ -9251,7 +9251,7 @@ class q {
9251
9251
  }
9252
9252
  }
9253
9253
  const VE = /^c[^\s-]{8,}$/i, vE = /^[0-9a-z]+$/, XE = /^[0-9A-HJKMNP-TV-Z]{26}$/i, jE = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, zE = /^[a-z0-9_-]{21}$/i, _E = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, $E = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ai = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ii = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
9254
- let ZI;
9254
+ let PI;
9255
9255
  const gi = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Bi = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Ci = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Qi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ei = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, ii = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, oC = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", oi = new RegExp(`^${oC}$`);
9256
9256
  function aC(g) {
9257
9257
  let A = "[0-5]\\d";
@@ -9341,7 +9341,7 @@ class eA extends q {
9341
9341
  message: Q.message
9342
9342
  }), B.dirty());
9343
9343
  else if (Q.kind === "emoji")
9344
- ZI || (ZI = new RegExp(Ii, "u")), ZI.test(A.data) || (C = this._getOrReturnCtx(A, C), w(C, {
9344
+ PI || (PI = new RegExp(Ii, "u")), PI.test(A.data) || (C = this._getOrReturnCtx(A, C), w(C, {
9345
9345
  validation: "emoji",
9346
9346
  code: e.invalid_string,
9347
9347
  message: Q.message
@@ -9978,7 +9978,7 @@ XA.create = (g) => new XA({
9978
9978
  coerce: g?.coerce ?? !1,
9979
9979
  ...K(g)
9980
9980
  });
9981
- class Qg extends q {
9981
+ class Eg extends q {
9982
9982
  _parse(A) {
9983
9983
  if (this._def.coerce && (A.data = !!A.data), this._getType(A) !== R.boolean) {
9984
9984
  const B = this._getOrReturnCtx(A);
@@ -9991,7 +9991,7 @@ class Qg extends q {
9991
9991
  return QA(A.data);
9992
9992
  }
9993
9993
  }
9994
- Qg.create = (g) => new Qg({
9994
+ Eg.create = (g) => new Eg({
9995
9995
  typeName: M.ZodBoolean,
9996
9996
  coerce: g?.coerce || !1,
9997
9997
  ...K(g)
@@ -10074,7 +10074,7 @@ RI.create = (g) => new RI({
10074
10074
  typeName: M.ZodDate,
10075
10075
  ...K(g)
10076
10076
  });
10077
- class kB extends q {
10077
+ class LB extends q {
10078
10078
  _parse(A) {
10079
10079
  if (this._getType(A) !== R.symbol) {
10080
10080
  const B = this._getOrReturnCtx(A);
@@ -10087,11 +10087,11 @@ class kB extends q {
10087
10087
  return QA(A.data);
10088
10088
  }
10089
10089
  }
10090
- kB.create = (g) => new kB({
10090
+ LB.create = (g) => new LB({
10091
10091
  typeName: M.ZodSymbol,
10092
10092
  ...K(g)
10093
10093
  });
10094
- class LB extends q {
10094
+ class JB extends q {
10095
10095
  _parse(A) {
10096
10096
  if (this._getType(A) !== R.undefined) {
10097
10097
  const B = this._getOrReturnCtx(A);
@@ -10104,11 +10104,11 @@ class LB extends q {
10104
10104
  return QA(A.data);
10105
10105
  }
10106
10106
  }
10107
- LB.create = (g) => new LB({
10107
+ JB.create = (g) => new JB({
10108
10108
  typeName: M.ZodUndefined,
10109
10109
  ...K(g)
10110
10110
  });
10111
- class JB extends q {
10111
+ class YB extends q {
10112
10112
  _parse(A) {
10113
10113
  if (this._getType(A) !== R.null) {
10114
10114
  const B = this._getOrReturnCtx(A);
@@ -10121,11 +10121,11 @@ class JB extends q {
10121
10121
  return QA(A.data);
10122
10122
  }
10123
10123
  }
10124
- JB.create = (g) => new JB({
10124
+ YB.create = (g) => new YB({
10125
10125
  typeName: M.ZodNull,
10126
10126
  ...K(g)
10127
10127
  });
10128
- class Eg extends q {
10128
+ class ig extends q {
10129
10129
  constructor() {
10130
10130
  super(...arguments), this._any = !0;
10131
10131
  }
@@ -10133,11 +10133,11 @@ class Eg extends q {
10133
10133
  return QA(A.data);
10134
10134
  }
10135
10135
  }
10136
- Eg.create = (g) => new Eg({
10136
+ ig.create = (g) => new ig({
10137
10137
  typeName: M.ZodAny,
10138
10138
  ...K(g)
10139
10139
  });
10140
- class YB extends q {
10140
+ class MB extends q {
10141
10141
  constructor() {
10142
10142
  super(...arguments), this._unknown = !0;
10143
10143
  }
@@ -10145,7 +10145,7 @@ class YB extends q {
10145
10145
  return QA(A.data);
10146
10146
  }
10147
10147
  }
10148
- YB.create = (g) => new YB({
10148
+ MB.create = (g) => new MB({
10149
10149
  typeName: M.ZodUnknown,
10150
10150
  ...K(g)
10151
10151
  });
@@ -10163,7 +10163,7 @@ FA.create = (g) => new FA({
10163
10163
  typeName: M.ZodNever,
10164
10164
  ...K(g)
10165
10165
  });
10166
- class MB extends q {
10166
+ class dB extends q {
10167
10167
  _parse(A) {
10168
10168
  if (this._getType(A) !== R.undefined) {
10169
10169
  const B = this._getOrReturnCtx(A);
@@ -10176,7 +10176,7 @@ class MB extends q {
10176
10176
  return QA(A.data);
10177
10177
  }
10178
10178
  }
10179
- MB.create = (g) => new MB({
10179
+ dB.create = (g) => new dB({
10180
10180
  typeName: M.ZodVoid,
10181
10181
  ...K(g)
10182
10182
  });
@@ -10629,14 +10629,14 @@ NI.create = (g, A) => new NI({
10629
10629
  typeName: M.ZodUnion,
10630
10630
  ...K(A)
10631
10631
  });
10632
- function ig(g, A) {
10632
+ function og(g, A) {
10633
10633
  const I = yA(g), B = yA(A);
10634
10634
  if (g === A)
10635
10635
  return { valid: !0, data: g };
10636
10636
  if (I === R.object && B === R.object) {
10637
10637
  const C = l.objectKeys(A), Q = l.objectKeys(g).filter((i) => C.indexOf(i) !== -1), E = { ...g, ...A };
10638
10638
  for (const i of Q) {
10639
- const o = ig(g[i], A[i]);
10639
+ const o = og(g[i], A[i]);
10640
10640
  if (!o.valid)
10641
10641
  return { valid: !1 };
10642
10642
  E[i] = o.data;
@@ -10647,7 +10647,7 @@ function ig(g, A) {
10647
10647
  return { valid: !1 };
10648
10648
  const C = [];
10649
10649
  for (let Q = 0; Q < g.length; Q++) {
10650
- const E = g[Q], i = A[Q], o = ig(E, i);
10650
+ const E = g[Q], i = A[Q], o = og(E, i);
10651
10651
  if (!o.valid)
10652
10652
  return { valid: !1 };
10653
10653
  C.push(o.data);
@@ -10658,10 +10658,10 @@ function ig(g, A) {
10658
10658
  class cI extends q {
10659
10659
  _parse(A) {
10660
10660
  const { status: I, ctx: B } = this._processInputParams(A), C = (Q, E) => {
10661
- if (NB(Q) || NB(E))
10661
+ if (cB(Q) || cB(E))
10662
10662
  return Y;
10663
- const i = ig(Q.value, E.value);
10664
- return i.valid ? ((cB(Q) || cB(E)) && I.dirty(), { status: I.value, value: i.data }) : (w(B, {
10663
+ const i = og(Q.value, E.value);
10664
+ return i.valid ? ((UB(Q) || UB(E)) && I.dirty(), { status: I.value, value: i.data }) : (w(B, {
10665
10665
  code: e.invalid_intersection_types
10666
10666
  }), Y);
10667
10667
  };
@@ -10743,7 +10743,7 @@ cA.create = (g, A) => {
10743
10743
  ...K(A)
10744
10744
  });
10745
10745
  };
10746
- class dB extends q {
10746
+ class KB extends q {
10747
10747
  get keySchema() {
10748
10748
  return this._def.keyType;
10749
10749
  }
@@ -10785,7 +10785,7 @@ class dB extends q {
10785
10785
  }
10786
10786
  }
10787
10787
  }
10788
- dB.create = (g, A, I) => new dB({
10788
+ KB.create = (g, A, I) => new KB({
10789
10789
  valueType: A,
10790
10790
  keyType: g,
10791
10791
  typeName: M.ZodMap,
@@ -10855,7 +10855,7 @@ jA.create = (g, A) => new jA({
10855
10855
  typeName: M.ZodSet,
10856
10856
  ...K(A)
10857
10857
  });
10858
- class KB extends q {
10858
+ class HB extends q {
10859
10859
  get schema() {
10860
10860
  return this._def.getter();
10861
10861
  }
@@ -10864,12 +10864,12 @@ class KB extends q {
10864
10864
  return this._def.getter()._parse({ data: I.data, path: I.path, parent: I });
10865
10865
  }
10866
10866
  }
10867
- KB.create = (g, A) => new KB({
10867
+ HB.create = (g, A) => new HB({
10868
10868
  getter: g,
10869
10869
  typeName: M.ZodLazy,
10870
10870
  ...K(A)
10871
10871
  });
10872
- class og extends q {
10872
+ class ag extends q {
10873
10873
  _parse(A) {
10874
10874
  if (A.data !== this._def.value) {
10875
10875
  const I = this._getOrReturnCtx(A);
@@ -10885,7 +10885,7 @@ class og extends q {
10885
10885
  return this._def.value;
10886
10886
  }
10887
10887
  }
10888
- og.create = (g, A) => new og({
10888
+ ag.create = (g, A) => new ag({
10889
10889
  value: g,
10890
10890
  typeName: M.ZodLiteral,
10891
10891
  ...K(A)
@@ -10952,7 +10952,7 @@ class qA extends q {
10952
10952
  }
10953
10953
  }
10954
10954
  qA.create = DC;
10955
- class HB extends q {
10955
+ class qB extends q {
10956
10956
  _parse(A) {
10957
10957
  const I = l.getValidEnumValues(this._def.values), B = this._getOrReturnCtx(A);
10958
10958
  if (B.parsedType !== R.string && B.parsedType !== R.number) {
@@ -10977,7 +10977,7 @@ class HB extends q {
10977
10977
  return this._def.values;
10978
10978
  }
10979
10979
  }
10980
- HB.create = (g, A) => new HB({
10980
+ qB.create = (g, A) => new qB({
10981
10981
  values: g,
10982
10982
  typeName: M.ZodNativeEnum,
10983
10983
  ...K(A)
@@ -11124,7 +11124,7 @@ fA.create = (g, A) => new fA({
11124
11124
  typeName: M.ZodNullable,
11125
11125
  ...K(A)
11126
11126
  });
11127
- class ag extends q {
11127
+ class Dg extends q {
11128
11128
  _parse(A) {
11129
11129
  const { ctx: I } = this._processInputParams(A);
11130
11130
  let B = I.data;
@@ -11138,13 +11138,13 @@ class ag extends q {
11138
11138
  return this._def.innerType;
11139
11139
  }
11140
11140
  }
11141
- ag.create = (g, A) => new ag({
11141
+ Dg.create = (g, A) => new Dg({
11142
11142
  innerType: g,
11143
11143
  typeName: M.ZodDefault,
11144
11144
  defaultValue: typeof A.default == "function" ? A.default : () => A.default,
11145
11145
  ...K(A)
11146
11146
  });
11147
- class Dg extends q {
11147
+ class sg extends q {
11148
11148
  _parse(A) {
11149
11149
  const { ctx: I } = this._processInputParams(A), B = {
11150
11150
  ...I,
@@ -11181,13 +11181,13 @@ class Dg extends q {
11181
11181
  return this._def.innerType;
11182
11182
  }
11183
11183
  }
11184
- Dg.create = (g, A) => new Dg({
11184
+ sg.create = (g, A) => new sg({
11185
11185
  innerType: g,
11186
11186
  typeName: M.ZodCatch,
11187
11187
  catchValue: typeof A.catch == "function" ? A.catch : () => A.catch,
11188
11188
  ...K(A)
11189
11189
  });
11190
- class qB extends q {
11190
+ class lB extends q {
11191
11191
  _parse(A) {
11192
11192
  if (this._getType(A) !== R.nan) {
11193
11193
  const B = this._getOrReturnCtx(A);
@@ -11200,7 +11200,7 @@ class qB extends q {
11200
11200
  return { status: "valid", value: A.data };
11201
11201
  }
11202
11202
  }
11203
- qB.create = (g) => new qB({
11203
+ lB.create = (g) => new lB({
11204
11204
  typeName: M.ZodNaN,
11205
11205
  ...K(g)
11206
11206
  });
@@ -11217,7 +11217,7 @@ class ei extends q {
11217
11217
  return this._def.type;
11218
11218
  }
11219
11219
  }
11220
- class qg extends q {
11220
+ class lg extends q {
11221
11221
  _parse(A) {
11222
11222
  const { status: I, ctx: B } = this._processInputParams(A);
11223
11223
  if (B.common.async)
@@ -11250,14 +11250,14 @@ class qg extends q {
11250
11250
  }
11251
11251
  }
11252
11252
  static create(A, I) {
11253
- return new qg({
11253
+ return new lg({
11254
11254
  in: A,
11255
11255
  out: I,
11256
11256
  typeName: M.ZodPipeline
11257
11257
  });
11258
11258
  }
11259
11259
  }
11260
- class sg extends q {
11260
+ class hg extends q {
11261
11261
  _parse(A) {
11262
11262
  const I = this._def.innerType._parse(A), B = (C) => (KA(C) && (C.value = Object.freeze(C.value)), C);
11263
11263
  return SI(I) ? I.then((C) => B(C)) : B(I);
@@ -11266,7 +11266,7 @@ class sg extends q {
11266
11266
  return this._def.innerType;
11267
11267
  }
11268
11268
  }
11269
- sg.create = (g, A) => new sg({
11269
+ hg.create = (g, A) => new hg({
11270
11270
  innerType: g,
11271
11271
  typeName: M.ZodReadonly,
11272
11272
  ...K(A)
@@ -11275,13 +11275,13 @@ var M;
11275
11275
  (function(g) {
11276
11276
  g.ZodString = "ZodString", g.ZodNumber = "ZodNumber", g.ZodNaN = "ZodNaN", g.ZodBigInt = "ZodBigInt", g.ZodBoolean = "ZodBoolean", g.ZodDate = "ZodDate", g.ZodSymbol = "ZodSymbol", g.ZodUndefined = "ZodUndefined", g.ZodNull = "ZodNull", g.ZodAny = "ZodAny", g.ZodUnknown = "ZodUnknown", g.ZodNever = "ZodNever", g.ZodVoid = "ZodVoid", g.ZodArray = "ZodArray", g.ZodObject = "ZodObject", g.ZodUnion = "ZodUnion", g.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", g.ZodIntersection = "ZodIntersection", g.ZodTuple = "ZodTuple", g.ZodRecord = "ZodRecord", g.ZodMap = "ZodMap", g.ZodSet = "ZodSet", g.ZodFunction = "ZodFunction", g.ZodLazy = "ZodLazy", g.ZodLiteral = "ZodLiteral", g.ZodEnum = "ZodEnum", g.ZodEffects = "ZodEffects", g.ZodNativeEnum = "ZodNativeEnum", g.ZodOptional = "ZodOptional", g.ZodNullable = "ZodNullable", g.ZodDefault = "ZodDefault", g.ZodCatch = "ZodCatch", g.ZodPromise = "ZodPromise", g.ZodBranded = "ZodBranded", g.ZodPipeline = "ZodPipeline", g.ZodReadonly = "ZodReadonly";
11277
11277
  })(M || (M = {}));
11278
- const u = eA.create, H = HA.create, sC = Qg.create, nA = Eg.create;
11278
+ const u = eA.create, H = HA.create, sC = Eg.create, nA = ig.create;
11279
11279
  FA.create;
11280
11280
  const m = sA.create, L = O.create;
11281
11281
  NI.create;
11282
11282
  cI.create;
11283
11283
  cA.create;
11284
- const _ = og.create, LA = qA.create;
11284
+ const _ = ag.create, LA = qA.create;
11285
11285
  UI.create;
11286
11286
  GA.create;
11287
11287
  fA.create;
@@ -11704,7 +11704,7 @@ function ci(g) {
11704
11704
  if ("version" in A && typeof A.version == "string" && Ni.has(A.version))
11705
11705
  return A.version;
11706
11706
  }
11707
- function lg(g) {
11707
+ function fg(g) {
11708
11708
  const A = ci(g);
11709
11709
  return A === void 0 ? "0.4" : A;
11710
11710
  }
@@ -11733,7 +11733,7 @@ ${JSON.stringify(Q.attrs)}`
11733
11733
  }
11734
11734
  }
11735
11735
  function Ui(g) {
11736
- switch (lg(g)) {
11736
+ switch (fg(g)) {
11737
11737
  case "0.5":
11738
11738
  return {
11739
11739
  ...ri.parse(g).ome,
@@ -11767,7 +11767,7 @@ function Li(g) {
11767
11767
  };
11768
11768
  }
11769
11769
  function Ji(g) {
11770
- switch (lg(g)) {
11770
+ switch (fg(g)) {
11771
11771
  case "0.5":
11772
11772
  return {
11773
11773
  ...Si.parse(g).ome,
@@ -11793,11 +11793,11 @@ ${JSON.stringify(i.attrs)}`
11793
11793
  }
11794
11794
  async function Go(g) {
11795
11795
  const A = pA(g.version), I = await gI(g.location, A);
11796
- return fg(I.attrs).omero?.channels ?? [];
11796
+ return pg(I.attrs).omero?.channels ?? [];
11797
11797
  }
11798
11798
  async function wo(g) {
11799
11799
  const A = pA(g.version), I = await gI(g.location, A);
11800
- return fg(I.attrs).omero?.rdefs;
11800
+ return pg(I.attrs).omero?.rdefs;
11801
11801
  }
11802
11802
  function Yi(g) {
11803
11803
  return {
@@ -11809,7 +11809,7 @@ function Yi(g) {
11809
11809
  };
11810
11810
  }
11811
11811
  function Mi(g) {
11812
- switch (lg(g)) {
11812
+ switch (fg(g)) {
11813
11813
  case "0.5":
11814
11814
  return {
11815
11815
  ...Fi.parse(g).ome,
@@ -11822,7 +11822,7 @@ function Mi(g) {
11822
11822
  };
11823
11823
  }
11824
11824
  }
11825
- function fg(g) {
11825
+ function pg(g) {
11826
11826
  try {
11827
11827
  return Mi(g);
11828
11828
  } catch {
@@ -11839,7 +11839,7 @@ class PA {
11839
11839
  }
11840
11840
  static async openLoader(A, I) {
11841
11841
  let B = pA(I);
11842
- const C = await gI(A, B), Q = fg(C.attrs), E = Q.multiscales;
11842
+ const C = await gI(A, B), Q = pg(C.attrs), E = Q.multiscales;
11843
11843
  if (E.length !== 1)
11844
11844
  throw new Error(
11845
11845
  `Exactly one multiscale image is supported. Found ${E.length} images.`
@@ -11889,13 +11889,13 @@ class PA {
11889
11889
  */
11890
11890
  static async fromFileSystem(A) {
11891
11891
  const I = new CA(
11892
- new Hg(A.directory),
11892
+ new qg(A.directory),
11893
11893
  A.path
11894
11894
  ), B = await PA.openLoader(I, A.version);
11895
11895
  return new PA({ location: I, version: A.version, loader: B });
11896
11896
  }
11897
11897
  }
11898
- class HI {
11898
+ class qI {
11899
11899
  coverageGroups_ = /* @__PURE__ */ new Map();
11900
11900
  state_ = "initialized";
11901
11901
  attached_ = !1;
@@ -11992,7 +11992,7 @@ class di extends mA {
11992
11992
  });
11993
11993
  }
11994
11994
  createVertices(A) {
11995
- const I = new Float32Array(2 * A.length * 10), B = A.length >= 3 && ng(A[0], A[A.length - 1]);
11995
+ const I = new Float32Array(2 * A.length * 10), B = A.length >= 3 && Gg(A[0], A[A.length - 1]);
11996
11996
  let C = 0;
11997
11997
  for (const Q of [...Array(A.length).keys()])
11998
11998
  for (const E of [-1, 1]) {
@@ -12058,7 +12058,7 @@ class tC {
12058
12058
  JA(this.translation_, this.translation_, A), this.dirty_ = !0;
12059
12059
  }
12060
12060
  setTranslation(A) {
12061
- jI(this.translation_, A), this.dirty_ = !0;
12061
+ zI(this.translation_, A), this.dirty_ = !0;
12062
12062
  }
12063
12063
  get translation() {
12064
12064
  return DA(this.translation_);
@@ -12067,12 +12067,12 @@ class tC {
12067
12067
  jC(this.scale_, this.scale_, A), this.dirty_ = !0;
12068
12068
  }
12069
12069
  setScale(A) {
12070
- jI(this.scale_, A), this.dirty_ = !0;
12070
+ zI(this.scale_, A), this.dirty_ = !0;
12071
12071
  }
12072
12072
  targetTo(A) {
12073
- ng(this.translation_, A) && (A = DA(A), A[2] += T);
12073
+ Gg(this.translation_, A) && (A = DA(A), A[2] += T);
12074
12074
  const I = vC($(), this.translation_, A, Hi), B = TC(PB(), I);
12075
- Gg(this.rotation_, B), YI(this.rotation_, this.rotation_), this.dirty_ = !0;
12075
+ wg(this.rotation_, B), MI(this.rotation_, this.rotation_), this.dirty_ = !0;
12076
12076
  }
12077
12077
  get scale() {
12078
12078
  return DA(this.scale_);
@@ -12081,7 +12081,7 @@ class tC {
12081
12081
  return this.dirty_ && (this.computeMatrix(), this.dirty_ = !1), this.matrix_;
12082
12082
  }
12083
12083
  get inverse() {
12084
- return JI($(), this.matrix);
12084
+ return YI($(), this.matrix);
12085
12085
  }
12086
12086
  computeMatrix() {
12087
12087
  bC(
@@ -12160,7 +12160,7 @@ class x {
12160
12160
  return I.length === 1 ? "0" + I : I;
12161
12161
  }
12162
12162
  }
12163
- class BI extends LI {
12163
+ class BI extends JI {
12164
12164
  wireframeEnabled = !1;
12165
12165
  wireframeColor = x.WHITE;
12166
12166
  depthTest = !0;
@@ -12251,25 +12251,25 @@ class qi extends BI {
12251
12251
  };
12252
12252
  }
12253
12253
  }
12254
- class Fo extends HI {
12254
+ class Fo extends qI {
12255
12255
  type = "AxesLayer";
12256
12256
  constructor(A) {
12257
12257
  super();
12258
12258
  const { length: I, width: B } = A;
12259
12259
  this.addObject(
12260
- PI({
12260
+ OI({
12261
12261
  end: [I, 0, 0],
12262
12262
  width: B,
12263
12263
  color: [1, 0, 0]
12264
12264
  })
12265
12265
  ), this.addObject(
12266
- PI({
12266
+ OI({
12267
12267
  end: [0, I, 0],
12268
12268
  width: B,
12269
12269
  color: [0, 1, 0]
12270
12270
  })
12271
12271
  ), this.addObject(
12272
- PI({
12272
+ OI({
12273
12273
  end: [0, 0, I],
12274
12274
  width: B,
12275
12275
  color: [0, 0, 1]
@@ -12279,7 +12279,7 @@ class Fo extends HI {
12279
12279
  update() {
12280
12280
  }
12281
12281
  }
12282
- function PI(g) {
12282
+ function OI(g) {
12283
12283
  const { end: A, width: I, color: B } = g, C = new di([[0, 0, 0], A]);
12284
12284
  return new qi({
12285
12285
  geometry: C,
@@ -12294,7 +12294,7 @@ const yC = [
12294
12294
  "fallbackBackground",
12295
12295
  "prefetchSpace"
12296
12296
  ];
12297
- function pg(g) {
12297
+ function mg(g) {
12298
12298
  li(g);
12299
12299
  const A = {
12300
12300
  x: g.prefetch.x,
@@ -12322,8 +12322,8 @@ function pg(g) {
12322
12322
  };
12323
12323
  return Object.freeze(C);
12324
12324
  }
12325
- function mg(g = {}) {
12326
- return pg(ug({
12325
+ function ug(g = {}) {
12326
+ return mg(Tg({
12327
12327
  profile: "exploration",
12328
12328
  prefetch: { x: 1, y: 1, z: 1, t: 0 },
12329
12329
  priorityOrder: [
@@ -12336,7 +12336,7 @@ function mg(g = {}) {
12336
12336
  }, g));
12337
12337
  }
12338
12338
  function ro(g = {}) {
12339
- return pg(ug({
12339
+ return mg(Tg({
12340
12340
  profile: "playback",
12341
12341
  prefetch: { x: 0, y: 0, z: 0, t: 20 },
12342
12342
  priorityOrder: [
@@ -12349,7 +12349,7 @@ function ro(g = {}) {
12349
12349
  }, g));
12350
12350
  }
12351
12351
  function So(g = {}) {
12352
- return pg(ug({
12352
+ return mg(Tg({
12353
12353
  profile: "no-prefetch",
12354
12354
  prefetch: { x: 0, y: 0, z: 0, t: 0 },
12355
12355
  priorityOrder: [
@@ -12372,7 +12372,7 @@ function li(g) {
12372
12372
  if (I.length !== yC.length || new Set(I).size !== I.length)
12373
12373
  throw new Error("priorityOrder must include all categories exactly once");
12374
12374
  }
12375
- function ug(g, A = {}) {
12375
+ function Tg(g, A = {}) {
12376
12376
  return {
12377
12377
  profile: A.profile ?? g.profile,
12378
12378
  prefetch: { ...g.prefetch, ...A.prefetch ?? {} },
@@ -12380,7 +12380,7 @@ function ug(g, A = {}) {
12380
12380
  priorityOrder: A.priorityOrder ?? g.priorityOrder
12381
12381
  };
12382
12382
  }
12383
- const lB = 32;
12383
+ const fB = 32;
12384
12384
  function zA(g, { visible: A, color: I, contrastLimits: B, opacity: C }) {
12385
12385
  return A ??= !0, I = I === void 0 ? x.WHITE : x.from(I), C = C === void 0 ? 1 : hA(C, 0, 1), g !== null ? B = fi(B, g) : B === void 0 && (k.debug(
12386
12386
  "Channel",
@@ -12392,9 +12392,9 @@ function zA(g, { visible: A, color: I, contrastLimits: B, opacity: C }) {
12392
12392
  opacity: C
12393
12393
  };
12394
12394
  }
12395
- function hg(g, A) {
12396
- if (A.length > lB)
12397
- throw new Error(`Maximum number of channels is ${lB}`);
12395
+ function tg(g, A) {
12396
+ if (A.length > fB)
12397
+ throw new Error(`Maximum number of channels is ${fB}`);
12398
12398
  return A.map((I) => zA(g, I));
12399
12399
  }
12400
12400
  function eC(g, A) {
@@ -12452,13 +12452,13 @@ class pi extends BI {
12452
12452
  texture: B,
12453
12453
  channelProps: C = []
12454
12454
  }) {
12455
- super(), this.geometry = new nC(A, I, 1, 1), this.setTexture(0, B), this.channels_ = hg(B, C), this.programName = mi(B);
12455
+ super(), this.geometry = new nC(A, I, 1, 1), this.setTexture(0, B), this.channels_ = tg(B, C), this.programName = mi(B);
12456
12456
  }
12457
12457
  get type() {
12458
12458
  return "ImageRenderable";
12459
12459
  }
12460
12460
  setChannelProps(A) {
12461
- this.channels_ = hg(this.textures[0], A);
12461
+ this.channels_ = tg(this.textures[0], A);
12462
12462
  }
12463
12463
  setChannelProperty(A, I, B) {
12464
12464
  const C = zA(this.textures[0], {
@@ -12512,7 +12512,7 @@ class aA {
12512
12512
  return aI(this.normal, A) + this.signedDistance;
12513
12513
  }
12514
12514
  normalize() {
12515
- const A = tg(this.normal);
12515
+ const A = yg(this.normal);
12516
12516
  if (A > 0) {
12517
12517
  const I = 1 / A;
12518
12518
  VA(this.normal, this.normal, I), this.signedDistance *= I;
@@ -12545,7 +12545,7 @@ function GC(g, A, I, B, C = 3) {
12545
12545
  return A;
12546
12546
  }
12547
12547
  }
12548
- class Tg {
12548
+ class xg {
12549
12549
  bins_ = /* @__PURE__ */ new Map();
12550
12550
  acquire(A) {
12551
12551
  const B = this.bins_.get(A)?.pop();
@@ -12560,7 +12560,7 @@ class Tg {
12560
12560
  this.bins_.clear();
12561
12561
  }
12562
12562
  }
12563
- class wC extends HI {
12563
+ class wC extends qI {
12564
12564
  type = "ImageLayer";
12565
12565
  source_;
12566
12566
  sliceCoords_;
@@ -12570,7 +12570,7 @@ class wC extends HI {
12570
12570
  onPickValue_;
12571
12571
  visibleChunks_ = /* @__PURE__ */ new Map();
12572
12572
  orderedChunks_ = [];
12573
- pool_ = new Tg();
12573
+ pool_ = new xg();
12574
12574
  initialChannelProps_;
12575
12575
  channelChangeCallbacks_ = [];
12576
12576
  policy_;
@@ -12597,7 +12597,7 @@ class wC extends HI {
12597
12597
  onPickValue: E,
12598
12598
  ...i
12599
12599
  }) {
12600
- super({ blendMode: "additive", ...i }), this.setState("initialized"), this.source_ = A, this.policy_ = B ?? mg(), this.sliceCoords_ = I, this.orientation_ = C ?? "XY", this.axes_ = MA(this.orientation_), this.planeRotation_ = dA(this.axes_), this.channelProps_ = Q, this.initialChannelProps_ = Q, this.onPickValue_ = E;
12600
+ super({ blendMode: "additive", ...i }), this.setState("initialized"), this.source_ = A, this.policy_ = B ?? ug(), this.sliceCoords_ = I, this.orientation_ = C ?? "XY", this.axes_ = MA(this.orientation_), this.planeRotation_ = dA(this.axes_), this.channelProps_ = Q, this.initialChannelProps_ = Q, this.onPickValue_ = E;
12601
12601
  }
12602
12602
  attach(A) {
12603
12603
  this.context_ = A, this.chunkStoreView_ = A.chunkManager.addView(
@@ -12705,7 +12705,7 @@ class wC extends HI {
12705
12705
  set imageSourcePolicy(A) {
12706
12706
  this.policy_ !== A && (this.policy_ = A, this.chunkStoreView_ && this.chunkStoreView_.setImageSourcePolicy(
12707
12707
  A,
12708
- MI
12708
+ dI
12709
12709
  ));
12710
12710
  }
12711
12711
  getImageForChunk(A, I) {
@@ -12755,7 +12755,7 @@ class wC extends HI {
12755
12755
  return null;
12756
12756
  }
12757
12757
  async readValueFromChunk(A, I, B) {
12758
- const C = eg(
12758
+ const C = ng(
12759
12759
  d(),
12760
12760
  B,
12761
12761
  I.transform.inverse
@@ -12946,7 +12946,7 @@ class Ti extends BI {
12946
12946
  return I !== void 0 ? this.textures[I] : null;
12947
12947
  }
12948
12948
  setChannelProps(A) {
12949
- this.channels_ = hg(
12949
+ this.channels_ = tg(
12950
12950
  this.getAvailableChannelTexture(),
12951
12951
  A
12952
12952
  );
@@ -12980,18 +12980,18 @@ function Wi(g, A) {
12980
12980
  const I = A.position, B = d(), C = d();
12981
12981
  return g.sort((Q, E) => {
12982
12982
  JA(B, Q.boundingBox.max, Q.boundingBox.min), VA(B, B, 0.5), JA(C, E.boundingBox.max, E.boundingBox.min), VA(C, C, 0.5);
12983
- const i = Vg(I, B), o = Vg(I, C);
12983
+ const i = vg(I, B), o = vg(I, C);
12984
12984
  return i - o;
12985
12985
  }), g;
12986
12986
  }
12987
12987
  const bi = 2;
12988
- class Ro extends HI {
12988
+ class Ro extends qI {
12989
12989
  type = "VolumeLayer";
12990
12990
  source_;
12991
12991
  sliceCoords_;
12992
12992
  currentVolumes_ = /* @__PURE__ */ new Map();
12993
12993
  volumeToPoolKey_ = /* @__PURE__ */ new Map();
12994
- pool_ = new Tg();
12994
+ pool_ = new xg();
12995
12995
  initialChannelProps_;
12996
12996
  channelChangeCallbacks_ = [];
12997
12997
  policy_;
@@ -13019,7 +13019,7 @@ class Ro extends HI {
13019
13019
  set imageSourcePolicy(A) {
13020
13020
  this.policy_ !== A && (this.policy_ = A, this.chunkStoreView_ && this.chunkStoreView_.setImageSourcePolicy(
13021
13021
  A,
13022
- MI
13022
+ dI
13023
13023
  ));
13024
13024
  }
13025
13025
  setChannelProps(A) {
@@ -13046,7 +13046,7 @@ class Ro extends HI {
13046
13046
  this.channelChangeCallbacks_.splice(I, 1);
13047
13047
  }
13048
13048
  constructor({ source: A, sliceCoords: I, policy: B, channelProps: C }) {
13049
- super({ blendMode: "premultiplied" }), this.source_ = A, this.sliceCoords_ = I, this.policy_ = B ?? mg(), this.initialChannelProps_ = C, this.channelProps_ = C, this.setState("initialized");
13049
+ super({ blendMode: "premultiplied" }), this.source_ = A, this.sliceCoords_ = I, this.policy_ = B ?? ug(), this.initialChannelProps_ = C, this.channelProps_ = C, this.setState("initialized");
13050
13050
  }
13051
13051
  getOrCreateVolume(A, I) {
13052
13052
  const B = this.currentVolumes_.get(A);
@@ -13152,11 +13152,11 @@ function Oi(g) {
13152
13152
  `align${g.rowAlignmentBytes}`
13153
13153
  ].join(":");
13154
13154
  }
13155
- class fB extends Fg {
13155
+ class pB extends rg {
13156
13156
  width_;
13157
13157
  height_;
13158
13158
  constructor(A, I, B) {
13159
- super(), this.dataFormat = "scalar", this.dataType = wg(A), this.data_ = A, this.width_ = I, this.height_ = B;
13159
+ super(), this.dataFormat = "scalar", this.dataType = Fg(A), this.data_ = A, this.width_ = I, this.height_ = B;
13160
13160
  }
13161
13161
  get type() {
13162
13162
  return "Texture2D";
@@ -13187,12 +13187,11 @@ function vi(g) {
13187
13187
  function Xi(g) {
13188
13188
  return g = g ?? Vi, g.map(x.from);
13189
13189
  }
13190
- class pB {
13191
- lookupTable;
13192
- cycle;
13193
- constructor(A = {}) {
13194
- this.lookupTable = vi(A.lookupTable), this.cycle = Xi(A.cycle);
13195
- }
13190
+ function LI(g = {}) {
13191
+ return {
13192
+ lookupTable: vi(g.lookupTable),
13193
+ cycle: Xi(g.cycle)
13194
+ };
13196
13195
  }
13197
13196
  const FC = /* @__PURE__ */ new Set(["byte", "short", "int"]), ji = /* @__PURE__ */ new Set([
13198
13197
  "unsigned_byte",
@@ -13219,12 +13218,8 @@ class $i extends BI {
13219
13218
  worldToTexCoord = $();
13220
13219
  constructor(A) {
13221
13220
  super(), this.geometry = new nC(A.width, A.height, 1, 1), this.setTexture(0, zi(A.imageData));
13222
- const I = this.makeColorCycleTexture(A.colorMap.cycle);
13223
- this.setTexture(1, I);
13224
- const B = this.makeColorLookupTableTexture(
13225
- A.colorMap.lookupTable
13226
- );
13227
- this.setTexture(2, B), this.outlineSelected_ = A.outlineSelected ?? !1, this.selectedValue_ = A.selectedValue ?? null, this.programName = _i(A.imageData);
13221
+ const I = LI(A.colorMap);
13222
+ this.setTexture(1, this.makeColorCycleTexture(I.cycle)), this.setTexture(2, this.makeColorLookupTableTexture(I.lookupTable)), this.outlineSelected_ = A.outlineSelected ?? !1, this.selectedValue_ = A.selectedValue ?? null, this.programName = _i(A.imageData);
13228
13223
  }
13229
13224
  get type() {
13230
13225
  return "LabelImageRenderable";
@@ -13240,7 +13235,8 @@ class $i extends BI {
13240
13235
  };
13241
13236
  }
13242
13237
  setColorMap(A) {
13243
- this.markStaleTexture(this.textures[1]), this.markStaleTexture(this.textures[2]), this.setTexture(1, this.makeColorCycleTexture(A.cycle)), this.setTexture(2, this.makeColorLookupTableTexture(A.lookupTable));
13238
+ const I = LI(A);
13239
+ this.markStaleTexture(this.textures[1]), this.markStaleTexture(this.textures[2]), this.setTexture(1, this.makeColorCycleTexture(I.cycle)), this.setTexture(2, this.makeColorLookupTableTexture(I.lookupTable));
13244
13240
  }
13245
13241
  setSelectedValue(A) {
13246
13242
  this.selectedValue_ = A;
@@ -13248,16 +13244,16 @@ class $i extends BI {
13248
13244
  makeColorCycleTexture(A) {
13249
13245
  const I = new Uint8Array(
13250
13246
  A.flatMap((C) => C.rgba).map((C) => Math.round(C * 255))
13251
- ), B = new fB(I, A.length, 1);
13247
+ ), B = new pB(I, A.length, 1);
13252
13248
  return B.dataFormat = "rgba", B;
13253
13249
  }
13254
13250
  makeColorLookupTableTexture(A) {
13255
13251
  A === void 0 ? A = /* @__PURE__ */ new Map([[0, x.TRANSPARENT]]) : A.has(0) || (A = new Map([[0, x.TRANSPARENT], ...A]));
13256
13252
  const I = Array.from(A.keys()), B = Array.from(A.values()).map((E) => E.packed), C = A.size, Q = new Uint32Array(C * 2);
13257
- return Q.set(I, 0), Q.set(B, C), new fB(Q, C, 2);
13253
+ return Q.set(I, 0), Q.set(B, C), new pB(Q, C, 2);
13258
13254
  }
13259
13255
  }
13260
- class rC extends HI {
13256
+ class rC extends qI {
13261
13257
  type = "LabelLayer";
13262
13258
  source_;
13263
13259
  sliceCoords_;
@@ -13267,7 +13263,7 @@ class rC extends HI {
13267
13263
  onPickValue_;
13268
13264
  outlineSelected_;
13269
13265
  visibleChunks_ = /* @__PURE__ */ new Map();
13270
- pool_ = new Tg();
13266
+ pool_ = new xg();
13271
13267
  colorMap_;
13272
13268
  selectedValue_ = null;
13273
13269
  policy_;
@@ -13287,7 +13283,7 @@ class rC extends HI {
13287
13283
  outlineSelected: i = !1,
13288
13284
  ...o
13289
13285
  }) {
13290
- super(o), this.setState("initialized"), this.source_ = A, this.policy_ = B ?? mg(), this.sliceCoords_ = I, this.orientation_ = C ?? "XY", this.axes_ = MA(this.orientation_), this.planeRotation_ = dA(this.axes_), this.colorMap_ = new pB(Q), this.onPickValue_ = E, this.outlineSelected_ = i;
13286
+ super(o), this.setState("initialized"), this.source_ = A, this.policy_ = B ?? ug(), this.sliceCoords_ = I, this.orientation_ = C ?? "XY", this.axes_ = MA(this.orientation_), this.planeRotation_ = dA(this.axes_), this.colorMap_ = LI(Q), this.onPickValue_ = E, this.outlineSelected_ = i;
13291
13287
  }
13292
13288
  attach(A) {
13293
13289
  if (this.context_ = A, this.chunkStoreView_ = A.chunkManager.addView(
@@ -13373,7 +13369,7 @@ class rC extends HI {
13373
13369
  return this.colorMap_;
13374
13370
  }
13375
13371
  setColorMap(A) {
13376
- this.colorMap_ = new pB(A), this.visibleChunks_.forEach((I) => {
13372
+ this.colorMap_ = LI(A), this.visibleChunks_.forEach((I) => {
13377
13373
  I.setColorMap(this.colorMap_);
13378
13374
  });
13379
13375
  }
@@ -13394,7 +13390,7 @@ class rC extends HI {
13394
13390
  set imageSourcePolicy(A) {
13395
13391
  this.policy_ !== A && (this.policy_ = A, this.chunkStoreView_ && this.chunkStoreView_.setImageSourcePolicy(
13396
13392
  A,
13397
- MI
13393
+ dI
13398
13394
  ));
13399
13395
  }
13400
13396
  // exposed for use in chunk info overlay
@@ -13415,7 +13411,7 @@ class rC extends HI {
13415
13411
  return null;
13416
13412
  }
13417
13413
  async readValueFromChunk(A, I, B) {
13418
- const C = eg(
13414
+ const C = ng(
13419
13415
  d(),
13420
13416
  B,
13421
13417
  I.transform.inverse
@@ -13466,12 +13462,12 @@ class rC extends HI {
13466
13462
  }
13467
13463
  }
13468
13464
  }
13469
- class Ao extends Fg {
13465
+ class Ao extends rg {
13470
13466
  width_;
13471
13467
  height_;
13472
13468
  depth_;
13473
13469
  constructor(A, I, B) {
13474
- super(), this.dataFormat = "scalar", this.dataType = wg(A), this.data_ = A, this.width_ = I, this.height_ = B, this.depth_ = A.length / (I * B);
13470
+ super(), this.dataFormat = "scalar", this.dataType = Fg(A), this.data_ = A, this.width_ = I, this.height_ = B, this.depth_ = A.length / (I * B);
13475
13471
  }
13476
13472
  get type() {
13477
13473
  return "Texture2DArray";
@@ -13530,9 +13526,9 @@ class No extends BI {
13530
13526
  return "PointsRenderable";
13531
13527
  }
13532
13528
  }
13533
- let OI;
13529
+ let VI;
13534
13530
  function Io() {
13535
- return OI || (OI = go()), OI;
13531
+ return VI || (VI = go()), VI;
13536
13532
  }
13537
13533
  function go() {
13538
13534
  const g = (a) => {
@@ -13576,7 +13572,7 @@ class mB {
13576
13572
  );
13577
13573
  }
13578
13574
  }
13579
- const VI = -1, uB = 0, Bo = 1, TB = 9e-3, Co = 1e-3, Qo = 9e-4, Eo = 0.5, io = 60;
13575
+ const vI = -1, uB = 0, Bo = 1, TB = 9e-3, Co = 1e-3, Qo = 9e-4, Eo = 0.5, io = 60;
13580
13576
  class co {
13581
13577
  camera_;
13582
13578
  orbitVelocity_ = new mB(0, 0, 0);
@@ -13584,13 +13580,13 @@ class co {
13584
13580
  currPos_;
13585
13581
  currCenter_ = d();
13586
13582
  dampingFactor_;
13587
- currMouseButton_ = VI;
13583
+ currMouseButton_ = vI;
13588
13584
  constructor(A, I) {
13589
13585
  this.camera_ = A, this.currPos_ = new mB(
13590
13586
  I?.radius ?? 1,
13591
13587
  I?.yaw ?? 0,
13592
13588
  I?.pitch ?? 0
13593
- ), I?.target && jI(this.currCenter_, I.target), this.dampingFactor_ = hA(
13589
+ ), I?.target && zI(this.currCenter_, I.target), this.dampingFactor_ = hA(
13594
13590
  I?.dampingFactor ?? Eo,
13595
13591
  0,
13596
13592
  1
@@ -13617,7 +13613,7 @@ class co {
13617
13613
  }
13618
13614
  }
13619
13615
  onUpdate(A) {
13620
- if (this.orbitVelocity_.phi === 0 && this.orbitVelocity_.theta === 0 && this.orbitVelocity_.radius === 0 && ng(this.panVelocity_, p(0, 0, 0)))
13616
+ if (this.orbitVelocity_.phi === 0 && this.orbitVelocity_.theta === 0 && this.orbitVelocity_.radius === 0 && Gg(this.panVelocity_, p(0, 0, 0)))
13621
13617
  return;
13622
13618
  this.currPos_.phi += this.orbitVelocity_.phi, this.currPos_.theta += this.orbitVelocity_.theta, this.currPos_.radius += this.orbitVelocity_.radius * this.currPos_.radius, JA(this.currCenter_, this.currCenter_, this.panVelocity_);
13623
13619
  const I = Math.PI / 2 - T;
@@ -13630,7 +13626,7 @@ class co {
13630
13626
  this.currMouseButton_ = I.button, I.target?.setPointerCapture?.(I.pointerId);
13631
13627
  }
13632
13628
  onPointerMove(A) {
13633
- if (this.currMouseButton_ == VI) return;
13629
+ if (this.currMouseButton_ == vI) return;
13634
13630
  const I = A.event, B = I.movementX ?? 0, C = I.movementY ?? 0, Q = this.currMouseButton_ === uB && !I.shiftKey, E = this.currMouseButton_ === uB && I.shiftKey || this.currMouseButton_ === Bo;
13635
13631
  Q && this.orbit(B, C), E && this.pan(B, C);
13636
13632
  }
@@ -13641,7 +13637,7 @@ class co {
13641
13637
  this.zoom(B);
13642
13638
  }
13643
13639
  onPointerEnd(A) {
13644
- this.currMouseButton_ = VI;
13640
+ this.currMouseButton_ = vI;
13645
13641
  const I = A.event;
13646
13642
  I.target?.releasePointerCapture?.(I.pointerId);
13647
13643
  }
@@ -13650,7 +13646,7 @@ class co {
13650
13646
  }
13651
13647
  pan(A, I) {
13652
13648
  const B = this.currPos_.radius * Co, C = d();
13653
- zI(C, C, this.camera_.right, A), zI(C, C, this.camera_.up, I), VA(C, C, B), _I(this.panVelocity_, this.panVelocity_, C);
13649
+ _I(C, C, this.camera_.right, A), _I(C, C, this.camera_.up, I), VA(C, C, B), $I(this.panVelocity_, this.panVelocity_, C);
13654
13650
  }
13655
13651
  zoom(A) {
13656
13652
  this.orbitVelocity_.radius += A * Qo;
@@ -13660,7 +13656,7 @@ class co {
13660
13656
  this.camera_.transform.setTranslation(A), this.camera_.transform.targetTo(this.currCenter_);
13661
13657
  }
13662
13658
  cutoffLowVelocity() {
13663
- Math.abs(this.orbitVelocity_.phi) < T && (this.orbitVelocity_.phi = 0), Math.abs(this.orbitVelocity_.theta) < T && (this.orbitVelocity_.theta = 0), Math.abs(this.orbitVelocity_.radius) < T && (this.orbitVelocity_.radius = 0), tg(this.panVelocity_) < T && zC(this.panVelocity_);
13659
+ Math.abs(this.orbitVelocity_.phi) < T && (this.orbitVelocity_.phi = 0), Math.abs(this.orbitVelocity_.theta) < T && (this.orbitVelocity_.theta = 0), Math.abs(this.orbitVelocity_.radius) < T && (this.orbitVelocity_.radius = 0), yg(this.panVelocity_) < T && zC(this.panVelocity_);
13664
13660
  }
13665
13661
  }
13666
13662
  class oo {
@@ -13709,7 +13705,7 @@ class oo {
13709
13705
  return !0;
13710
13706
  }
13711
13707
  }
13712
- class RC extends LI {
13708
+ class RC extends JI {
13713
13709
  transform_ = new tC();
13714
13710
  projectionMatrix_ = $();
13715
13711
  near_ = 0;
@@ -13735,7 +13731,7 @@ class RC extends LI {
13735
13731
  return p(A[4], A[5], A[6]);
13736
13732
  }
13737
13733
  getViewProjection() {
13738
- return XI($(), this.projectionMatrix, this.viewMatrix);
13734
+ return jI($(), this.projectionMatrix, this.viewMatrix);
13739
13735
  }
13740
13736
  get frustum() {
13741
13737
  return new oo(this.getViewProjection());
@@ -13747,7 +13743,7 @@ class RC extends LI {
13747
13743
  return this.transform.translation;
13748
13744
  }
13749
13745
  clipToWorld(A) {
13750
- const I = DI(A[0], A[1], A[2], 1), B = JI(
13746
+ const I = DI(A[0], A[1], A[2], 1), B = YI(
13751
13747
  $(),
13752
13748
  this.projectionMatrix_
13753
13749
  ), C = vA(
@@ -13822,7 +13818,7 @@ class Uo extends RC {
13822
13818
  }
13823
13819
  getWorldViewRect() {
13824
13820
  let A = DI(-1, -1, 0, 1), I = DI(1, 1, 0, 1);
13825
- const B = JI($(), this.getViewProjection());
13821
+ const B = YI($(), this.getViewProjection());
13826
13822
  A = vA(YA(), A, B), I = vA(YA(), I, B);
13827
13823
  const C = W[this.axes_.u], Q = W[this.axes_.v];
13828
13824
  return new AA(
@@ -13880,7 +13876,7 @@ class ko {
13880
13876
  I.preventDefault();
13881
13877
  const B = DA(A.worldPos), C = I.deltaY < 0 ? 1.05 : 0.95;
13882
13878
  this.camera_.zoom(C);
13883
- const Q = this.camera_.clipToWorld(A.clipPos), E = _I(d(), B, Q);
13879
+ const Q = this.camera_.clipToWorld(A.clipPos), E = $I(d(), B, Q);
13884
13880
  this.camera_.pan(E);
13885
13881
  }
13886
13882
  onPointerDown(A) {
@@ -13889,7 +13885,7 @@ class ko {
13889
13885
  }
13890
13886
  onPointerMove(A) {
13891
13887
  if (!this.dragActive_ || !A.worldPos) return;
13892
- const I = _I(d(), this.dragStart_, A.worldPos);
13888
+ const I = $I(d(), this.dragStart_, A.worldPos);
13893
13889
  this.camera_.pan(I);
13894
13890
  }
13895
13891
  onPointerEnd(A) {
@@ -13897,7 +13893,7 @@ class ko {
13897
13893
  !this.dragActive_ || I.button !== bB || (this.dragActive_ = !1, I.target?.releasePointerCapture?.(I.pointerId));
13898
13894
  }
13899
13895
  }
13900
- const so = 60, ho = 1.77, oI = 0.1, vI = 180 - oI;
13896
+ const so = 60, ho = 1.77, oI = 0.1, XI = 180 - oI;
13901
13897
  class Lo extends RC {
13902
13898
  fov_;
13903
13899
  aspectRatio_;
@@ -13909,9 +13905,9 @@ class Lo extends RC {
13909
13905
  far: Q = 1e4,
13910
13906
  position: E = p(0, 0, 0)
13911
13907
  } = A;
13912
- if (I < oI || I > vI)
13908
+ if (I < oI || I > XI)
13913
13909
  throw new Error(
13914
- `Invalid field of view: ${I}, must be in [${oI}, ${vI}] degrees`
13910
+ `Invalid field of view: ${I}, must be in [${oI}, ${XI}] degrees`
13915
13911
  );
13916
13912
  super(), this.fov_ = I, this.aspectRatio_ = B, this.near_ = C, this.far_ = Q, this.transform.setTranslation(E), this.updateProjectionMatrix();
13917
13913
  }
@@ -13927,7 +13923,7 @@ class Lo extends RC {
13927
13923
  zoom(A) {
13928
13924
  if (A <= 0)
13929
13925
  throw new Error(`Invalid zoom factor: ${A}`);
13930
- this.fov_ = Math.max(oI, Math.min(vI, this.fov_ / A)), this.updateProjectionMatrix();
13926
+ this.fov_ = Math.max(oI, Math.min(XI, this.fov_ / A)), this.updateProjectionMatrix();
13931
13927
  }
13932
13928
  updateProjectionMatrix() {
13933
13929
  PC(
@@ -13945,10 +13941,9 @@ export {
13945
13941
  to as Idetik,
13946
13942
  wC as ImageLayer,
13947
13943
  pi as ImageRenderable,
13948
- pB as LabelColorMap,
13949
13944
  $i as LabelImageRenderable,
13950
13945
  rC as LabelLayer,
13951
- HI as Layer,
13946
+ qI as Layer,
13952
13947
  PA as OmeZarrImageSource,
13953
13948
  co as OrbitControls,
13954
13949
  Uo as OrthographicCamera,
@@ -13958,8 +13953,8 @@ export {
13958
13953
  qi as ProjectedLineRenderable,
13959
13954
  Ro as VolumeLayer,
13960
13955
  Ti as VolumeRenderable,
13961
- mg as createExplorationPolicy,
13962
- pg as createImageSourcePolicy,
13956
+ ug as createExplorationPolicy,
13957
+ mg as createImageSourcePolicy,
13963
13958
  So as createNoPrefetchPolicy,
13964
13959
  ro as createPlaybackPolicy,
13965
13960
  eo as loadOmeZarrPlate,