@vitessce/spatial-accelerated 3.9.1 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2104 -324
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo, useContext, createContext, forwardRef, createElement, Suspense } from "react";
2
+ import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo, useContext, forwardRef, createContext, createElement, PureComponent, Suspense } from "react";
3
3
  import * as ReactDOM from "react-dom";
4
4
  /**
5
5
  * @license
@@ -834,17 +834,17 @@ class Matrix3 {
834
834
  getNormalMatrix(matrix4) {
835
835
  return this.setFromMatrix4(matrix4).invert().transpose();
836
836
  }
837
- transposeIntoArray(r) {
837
+ transposeIntoArray(r2) {
838
838
  const m = this.elements;
839
- r[0] = m[0];
840
- r[1] = m[3];
841
- r[2] = m[6];
842
- r[3] = m[1];
843
- r[4] = m[4];
844
- r[5] = m[7];
845
- r[6] = m[2];
846
- r[7] = m[5];
847
- r[8] = m[8];
839
+ r2[0] = m[0];
840
+ r2[1] = m[3];
841
+ r2[2] = m[6];
842
+ r2[3] = m[1];
843
+ r2[4] = m[4];
844
+ r2[5] = m[7];
845
+ r2[6] = m[2];
846
+ r2[7] = m[5];
847
+ r2[8] = m[8];
848
848
  return this;
849
849
  }
850
850
  setUvTransform(tx, ty, sx, sy, rotation, cx, cy) {
@@ -2121,25 +2121,25 @@ class Quaternion {
2121
2121
  return this;
2122
2122
  }
2123
2123
  setFromUnitVectors(vFrom, vTo) {
2124
- let r = vFrom.dot(vTo) + 1;
2125
- if (r < Number.EPSILON) {
2126
- r = 0;
2124
+ let r2 = vFrom.dot(vTo) + 1;
2125
+ if (r2 < Number.EPSILON) {
2126
+ r2 = 0;
2127
2127
  if (Math.abs(vFrom.x) > Math.abs(vFrom.z)) {
2128
2128
  this._x = -vFrom.y;
2129
2129
  this._y = vFrom.x;
2130
2130
  this._z = 0;
2131
- this._w = r;
2131
+ this._w = r2;
2132
2132
  } else {
2133
2133
  this._x = 0;
2134
2134
  this._y = -vFrom.z;
2135
2135
  this._z = vFrom.y;
2136
- this._w = r;
2136
+ this._w = r2;
2137
2137
  }
2138
2138
  } else {
2139
2139
  this._x = vFrom.y * vTo.z - vFrom.z * vTo.y;
2140
2140
  this._y = vFrom.z * vTo.x - vFrom.x * vTo.z;
2141
2141
  this._z = vFrom.x * vTo.y - vFrom.y * vTo.x;
2142
- this._w = r;
2142
+ this._w = r2;
2143
2143
  }
2144
2144
  return this.normalize();
2145
2145
  }
@@ -2755,8 +2755,8 @@ class Box3 {
2755
2755
  }
2756
2756
  return this;
2757
2757
  }
2758
- setFromCenterAndSize(center, size) {
2759
- const halfSize = _vector$a.copy(size).multiplyScalar(0.5);
2758
+ setFromCenterAndSize(center, size2) {
2759
+ const halfSize = _vector$a.copy(size2).multiplyScalar(0.5);
2760
2760
  this.min.copy(center).sub(halfSize);
2761
2761
  this.max.copy(center).add(halfSize);
2762
2762
  return this;
@@ -3006,11 +3006,11 @@ const _testAxis = /* @__PURE__ */ new Vector3();
3006
3006
  function satForAxes(axes, v0, v1, v2, extents) {
3007
3007
  for (let i2 = 0, j = axes.length - 3; i2 <= j; i2 += 3) {
3008
3008
  _testAxis.fromArray(axes, i2);
3009
- const r = extents.x * Math.abs(_testAxis.x) + extents.y * Math.abs(_testAxis.y) + extents.z * Math.abs(_testAxis.z);
3009
+ const r2 = extents.x * Math.abs(_testAxis.x) + extents.y * Math.abs(_testAxis.y) + extents.z * Math.abs(_testAxis.z);
3010
3010
  const p0 = v0.dot(_testAxis);
3011
3011
  const p1 = v1.dot(_testAxis);
3012
3012
  const p2 = v2.dot(_testAxis);
3013
- if (Math.max(-Math.max(p0, p1, p2), Math.min(p0, p1, p2)) > r) {
3013
+ if (Math.max(-Math.max(p0, p1, p2), Math.min(p0, p1, p2)) > r2) {
3014
3014
  return false;
3015
3015
  }
3016
3016
  }
@@ -5529,16 +5529,16 @@ function hue2rgb(p, q, t) {
5529
5529
  return p;
5530
5530
  }
5531
5531
  class Color {
5532
- constructor(r, g, b) {
5532
+ constructor(r2, g, b) {
5533
5533
  this.isColor = true;
5534
5534
  this.r = 1;
5535
5535
  this.g = 1;
5536
5536
  this.b = 1;
5537
- return this.set(r, g, b);
5537
+ return this.set(r2, g, b);
5538
5538
  }
5539
- set(r, g, b) {
5539
+ set(r2, g, b) {
5540
5540
  if (g === void 0 && b === void 0) {
5541
- const value = r;
5541
+ const value = r2;
5542
5542
  if (value && value.isColor) {
5543
5543
  this.copy(value);
5544
5544
  } else if (typeof value === "number") {
@@ -5547,7 +5547,7 @@ class Color {
5547
5547
  this.setStyle(value);
5548
5548
  }
5549
5549
  } else {
5550
- this.setRGB(r, g, b);
5550
+ this.setRGB(r2, g, b);
5551
5551
  }
5552
5552
  return this;
5553
5553
  }
@@ -5565,8 +5565,8 @@ class Color {
5565
5565
  ColorManagement.toWorkingColorSpace(this, colorSpace);
5566
5566
  return this;
5567
5567
  }
5568
- setRGB(r, g, b, colorSpace = ColorManagement.workingColorSpace) {
5569
- this.r = r;
5568
+ setRGB(r2, g, b, colorSpace = ColorManagement.workingColorSpace) {
5569
+ this.r = r2;
5570
5570
  this.g = g;
5571
5571
  this.b = b;
5572
5572
  ColorManagement.toWorkingColorSpace(this, colorSpace);
@@ -5639,15 +5639,15 @@ class Color {
5639
5639
  }
5640
5640
  } else if (m = /^\#([A-Fa-f\d]+)$/.exec(style2)) {
5641
5641
  const hex = m[1];
5642
- const size = hex.length;
5643
- if (size === 3) {
5642
+ const size2 = hex.length;
5643
+ if (size2 === 3) {
5644
5644
  return this.setRGB(
5645
5645
  parseInt(hex.charAt(0), 16) / 15,
5646
5646
  parseInt(hex.charAt(1), 16) / 15,
5647
5647
  parseInt(hex.charAt(2), 16) / 15,
5648
5648
  colorSpace
5649
5649
  );
5650
- } else if (size === 6) {
5650
+ } else if (size2 === 6) {
5651
5651
  return this.setHex(parseInt(hex, 16), colorSpace);
5652
5652
  } else {
5653
5653
  console.warn("THREE.Color: Invalid hex color " + style2);
@@ -5704,9 +5704,9 @@ class Color {
5704
5704
  }
5705
5705
  getHSL(target, colorSpace = ColorManagement.workingColorSpace) {
5706
5706
  ColorManagement.fromWorkingColorSpace(_color.copy(this), colorSpace);
5707
- const r = _color.r, g = _color.g, b = _color.b;
5708
- const max = Math.max(r, g, b);
5709
- const min = Math.min(r, g, b);
5707
+ const r2 = _color.r, g = _color.g, b = _color.b;
5708
+ const max = Math.max(r2, g, b);
5709
+ const min = Math.min(r2, g, b);
5710
5710
  let hue, saturation;
5711
5711
  const lightness = (min + max) / 2;
5712
5712
  if (min === max) {
@@ -5716,14 +5716,14 @@ class Color {
5716
5716
  const delta = max - min;
5717
5717
  saturation = lightness <= 0.5 ? delta / (max + min) : delta / (2 - max - min);
5718
5718
  switch (max) {
5719
- case r:
5719
+ case r2:
5720
5720
  hue = (g - b) / delta + (g < b ? 6 : 0);
5721
5721
  break;
5722
5722
  case g:
5723
- hue = (b - r) / delta + 2;
5723
+ hue = (b - r2) / delta + 2;
5724
5724
  break;
5725
5725
  case b:
5726
- hue = (r - g) / delta + 4;
5726
+ hue = (r2 - g) / delta + 4;
5727
5727
  break;
5728
5728
  }
5729
5729
  hue /= 6;
@@ -5742,11 +5742,11 @@ class Color {
5742
5742
  }
5743
5743
  getStyle(colorSpace = SRGBColorSpace) {
5744
5744
  ColorManagement.fromWorkingColorSpace(_color.copy(this), colorSpace);
5745
- const r = _color.r, g = _color.g, b = _color.b;
5745
+ const r2 = _color.r, g = _color.g, b = _color.b;
5746
5746
  if (colorSpace !== SRGBColorSpace) {
5747
- return `color(${colorSpace} ${r.toFixed(3)} ${g.toFixed(3)} ${b.toFixed(3)})`;
5747
+ return `color(${colorSpace} ${r2.toFixed(3)} ${g.toFixed(3)} ${b.toFixed(3)})`;
5748
5748
  }
5749
- return `rgb(${Math.round(r * 255)},${Math.round(g * 255)},${Math.round(b * 255)})`;
5749
+ return `rgb(${Math.round(r2 * 255)},${Math.round(g * 255)},${Math.round(b * 255)})`;
5750
5750
  }
5751
5751
  offsetHSL(h, s, l) {
5752
5752
  this.getHSL(_hslA);
@@ -5820,11 +5820,11 @@ class Color {
5820
5820
  return this;
5821
5821
  }
5822
5822
  applyMatrix3(m) {
5823
- const r = this.r, g = this.g, b = this.b;
5823
+ const r2 = this.r, g = this.g, b = this.b;
5824
5824
  const e = m.elements;
5825
- this.r = e[0] * r + e[3] * g + e[6] * b;
5826
- this.g = e[1] * r + e[4] * g + e[7] * b;
5827
- this.b = e[2] * r + e[5] * g + e[8] * b;
5825
+ this.r = e[0] * r2 + e[3] * g + e[6] * b;
5826
+ this.g = e[1] * r2 + e[4] * g + e[7] * b;
5827
+ this.b = e[2] * r2 + e[5] * g + e[8] * b;
5828
5828
  return this;
5829
5829
  }
5830
5830
  equals(c) {
@@ -6581,10 +6581,10 @@ class BufferGeometry extends EventDispatcher {
6581
6581
  vC.sub(vA);
6582
6582
  uvB.sub(uvA);
6583
6583
  uvC.sub(uvA);
6584
- const r = 1 / (uvB.x * uvC.y - uvC.x * uvB.y);
6585
- if (!isFinite(r)) return;
6586
- sdir.copy(vB).multiplyScalar(uvC.y).addScaledVector(vC, -uvB.y).multiplyScalar(r);
6587
- tdir.copy(vC).multiplyScalar(uvB.x).addScaledVector(vB, -uvC.x).multiplyScalar(r);
6584
+ const r2 = 1 / (uvB.x * uvC.y - uvC.x * uvB.y);
6585
+ if (!isFinite(r2)) return;
6586
+ sdir.copy(vB).multiplyScalar(uvC.y).addScaledVector(vC, -uvB.y).multiplyScalar(r2);
6587
+ tdir.copy(vC).multiplyScalar(uvB.x).addScaledVector(vB, -uvC.x).multiplyScalar(r2);
6588
6588
  tan1[a].add(sdir);
6589
6589
  tan1[b].add(sdir);
6590
6590
  tan1[c].add(sdir);
@@ -7659,10 +7659,10 @@ class CubeTexture extends Texture {
7659
7659
  }
7660
7660
  }
7661
7661
  class WebGLCubeRenderTarget extends WebGLRenderTarget {
7662
- constructor(size = 1, options = {}) {
7663
- super(size, size, options);
7662
+ constructor(size2 = 1, options = {}) {
7663
+ super(size2, size2, options);
7664
7664
  this.isWebGLCubeRenderTarget = true;
7665
- const image = { width: size, height: size, depth: 1 };
7665
+ const image = { width: size2, height: size2, depth: 1 };
7666
7666
  const images = [image, image, image, image, image, image];
7667
7667
  if (options.encoding !== void 0) {
7668
7668
  warnOnce("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace.");
@@ -9183,11 +9183,11 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
9183
9183
  }
9184
9184
  }
9185
9185
  }
9186
- function vertexAttribPointer(index, size, type, normalized, stride, offset2, integer) {
9186
+ function vertexAttribPointer(index, size2, type, normalized, stride, offset2, integer) {
9187
9187
  if (integer === true) {
9188
- gl.vertexAttribIPointer(index, size, type, stride, offset2);
9188
+ gl.vertexAttribIPointer(index, size2, type, stride, offset2);
9189
9189
  } else {
9190
- gl.vertexAttribPointer(index, size, type, normalized, stride, offset2);
9190
+ gl.vertexAttribPointer(index, size2, type, normalized, stride, offset2);
9191
9191
  }
9192
9192
  }
9193
9193
  function setupVertexAttributes(object, material, program, geometry) {
@@ -9208,7 +9208,7 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
9208
9208
  }
9209
9209
  if (geometryAttribute !== void 0) {
9210
9210
  const normalized = geometryAttribute.normalized;
9211
- const size = geometryAttribute.itemSize;
9211
+ const size2 = geometryAttribute.itemSize;
9212
9212
  const attribute = attributes.get(geometryAttribute);
9213
9213
  if (attribute === void 0) continue;
9214
9214
  const buffer = attribute.buffer;
@@ -9235,11 +9235,11 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
9235
9235
  for (let i2 = 0; i2 < programAttribute.locationSize; i2++) {
9236
9236
  vertexAttribPointer(
9237
9237
  programAttribute.location + i2,
9238
- size / programAttribute.locationSize,
9238
+ size2 / programAttribute.locationSize,
9239
9239
  type,
9240
9240
  normalized,
9241
9241
  stride * bytesPerElement,
9242
- (offset2 + size / programAttribute.locationSize * i2) * bytesPerElement,
9242
+ (offset2 + size2 / programAttribute.locationSize * i2) * bytesPerElement,
9243
9243
  integer
9244
9244
  );
9245
9245
  }
@@ -9260,11 +9260,11 @@ function WebGLBindingStates(gl, extensions, attributes, capabilities) {
9260
9260
  for (let i2 = 0; i2 < programAttribute.locationSize; i2++) {
9261
9261
  vertexAttribPointer(
9262
9262
  programAttribute.location + i2,
9263
- size / programAttribute.locationSize,
9263
+ size2 / programAttribute.locationSize,
9264
9264
  type,
9265
9265
  normalized,
9266
- size * bytesPerElement,
9267
- size / programAttribute.locationSize * i2 * bytesPerElement,
9266
+ size2 * bytesPerElement,
9267
+ size2 / programAttribute.locationSize * i2 * bytesPerElement,
9268
9268
  integer
9269
9269
  );
9270
9270
  }
@@ -9872,8 +9872,8 @@ class PMREMGenerator {
9872
9872
  cubeCamera.up.set(0, upSign[i2], 0);
9873
9873
  cubeCamera.lookAt(0, 0, forwardSign[i2]);
9874
9874
  }
9875
- const size = this._cubeSize;
9876
- _setViewport(cubeUVRenderTarget, col * size, i2 > 2 ? size : 0, size, size);
9875
+ const size2 = this._cubeSize;
9876
+ _setViewport(cubeUVRenderTarget, col * size2, i2 > 2 ? size2 : 0, size2, size2);
9877
9877
  renderer.setRenderTarget(cubeUVRenderTarget);
9878
9878
  if (useSolidColor) {
9879
9879
  renderer.render(backgroundBox, cubeCamera);
@@ -9903,8 +9903,8 @@ class PMREMGenerator {
9903
9903
  const mesh = new Mesh(this._lodPlanes[0], material);
9904
9904
  const uniforms = material.uniforms;
9905
9905
  uniforms["envMap"].value = texture;
9906
- const size = this._cubeSize;
9907
- _setViewport(cubeUVRenderTarget, 0, 0, 3 * size, 2 * size);
9906
+ const size2 = this._cubeSize;
9907
+ _setViewport(cubeUVRenderTarget, 0, 0, 3 * size2, 2 * size2);
9908
9908
  renderer.setRenderTarget(cubeUVRenderTarget);
9909
9909
  renderer.render(mesh, _flatCamera);
9910
9910
  }
@@ -10819,19 +10819,19 @@ function flatten(array, nBlocks, blockSize) {
10819
10819
  const firstElem = array[0];
10820
10820
  if (firstElem <= 0 || firstElem > 0) return array;
10821
10821
  const n = nBlocks * blockSize;
10822
- let r = arrayCacheF32[n];
10823
- if (r === void 0) {
10824
- r = new Float32Array(n);
10825
- arrayCacheF32[n] = r;
10822
+ let r2 = arrayCacheF32[n];
10823
+ if (r2 === void 0) {
10824
+ r2 = new Float32Array(n);
10825
+ arrayCacheF32[n] = r2;
10826
10826
  }
10827
10827
  if (nBlocks !== 0) {
10828
- firstElem.toArray(r, 0);
10828
+ firstElem.toArray(r2, 0);
10829
10829
  for (let i2 = 1, offset2 = 0; i2 !== nBlocks; ++i2) {
10830
10830
  offset2 += blockSize;
10831
- array[i2].toArray(r, offset2);
10831
+ array[i2].toArray(r2, offset2);
10832
10832
  }
10833
10833
  }
10834
- return r;
10834
+ return r2;
10835
10835
  }
10836
10836
  function arraysEqual(a, b) {
10837
10837
  if (a.length !== b.length) return false;
@@ -10846,15 +10846,15 @@ function copyArray(a, b) {
10846
10846
  }
10847
10847
  }
10848
10848
  function allocTexUnits(textures, n) {
10849
- let r = arrayCacheI32[n];
10850
- if (r === void 0) {
10851
- r = new Int32Array(n);
10852
- arrayCacheI32[n] = r;
10849
+ let r2 = arrayCacheI32[n];
10850
+ if (r2 === void 0) {
10851
+ r2 = new Int32Array(n);
10852
+ arrayCacheI32[n] = r2;
10853
10853
  }
10854
10854
  for (let i2 = 0; i2 !== n; ++i2) {
10855
- r[i2] = textures.allocateTextureUnit();
10855
+ r2[i2] = textures.allocateTextureUnit();
10856
10856
  }
10857
- return r;
10857
+ return r2;
10858
10858
  }
10859
10859
  function setValueV1f(gl, v) {
10860
10860
  const cache = this.cache;
@@ -11448,12 +11448,12 @@ class WebGLUniforms {
11448
11448
  }
11449
11449
  }
11450
11450
  static seqWithValue(seq, values2) {
11451
- const r = [];
11451
+ const r2 = [];
11452
11452
  for (let i2 = 0, n = seq.length; i2 !== n; ++i2) {
11453
11453
  const u = seq[i2];
11454
- if (u.id in values2) r.push(u);
11454
+ if (u.id in values2) r2.push(u);
11455
11455
  }
11456
- return r;
11456
+ return r2;
11457
11457
  }
11458
11458
  }
11459
11459
  function WebGLShader(gl, type, string) {
@@ -12857,7 +12857,7 @@ function WebGLLights(extensions, capabilities) {
12857
12857
  const matrix4 = new Matrix4();
12858
12858
  const matrix42 = new Matrix4();
12859
12859
  function setup(lights, useLegacyLights) {
12860
- let r = 0, g = 0, b = 0;
12860
+ let r2 = 0, g = 0, b = 0;
12861
12861
  for (let i2 = 0; i2 < 9; i2++) state.probe[i2].set(0, 0, 0);
12862
12862
  let directionalLength = 0;
12863
12863
  let pointLength = 0;
@@ -12878,7 +12878,7 @@ function WebGLLights(extensions, capabilities) {
12878
12878
  const distance = light2.distance;
12879
12879
  const shadowMap = light2.shadow && light2.shadow.map ? light2.shadow.map.texture : null;
12880
12880
  if (light2.isAmbientLight) {
12881
- r += color2.r * intensity * scaleFactor;
12881
+ r2 += color2.r * intensity * scaleFactor;
12882
12882
  g += color2.g * intensity * scaleFactor;
12883
12883
  b += color2.b * intensity * scaleFactor;
12884
12884
  } else if (light2.isLightProbe) {
@@ -12982,7 +12982,7 @@ function WebGLLights(extensions, capabilities) {
12982
12982
  }
12983
12983
  }
12984
12984
  }
12985
- state.ambient[0] = r;
12985
+ state.ambient[0] = r2;
12986
12986
  state.ambient[1] = g;
12987
12987
  state.ambient[2] = b;
12988
12988
  const hash2 = state.hash;
@@ -13406,15 +13406,15 @@ function WebGLState(gl, extensions, capabilities) {
13406
13406
  setLocked: function(lock) {
13407
13407
  locked = lock;
13408
13408
  },
13409
- setClear: function(r, g, b, a, premultipliedAlpha) {
13409
+ setClear: function(r2, g, b, a, premultipliedAlpha) {
13410
13410
  if (premultipliedAlpha === true) {
13411
- r *= a;
13411
+ r2 *= a;
13412
13412
  g *= a;
13413
13413
  b *= a;
13414
13414
  }
13415
- color2.set(r, g, b, a);
13415
+ color2.set(r2, g, b, a);
13416
13416
  if (currentColorClear.equals(color2) === false) {
13417
- gl.clearColor(r, g, b, a);
13417
+ gl.clearColor(r2, g, b, a);
13418
13418
  currentColorClear.copy(color2);
13419
13419
  }
13420
13420
  },
@@ -16272,10 +16272,10 @@ function WebGLUniformsGroups(gl, info, capabilities, state) {
16272
16272
  const bindingPointIndex = allocateBindingPointIndex();
16273
16273
  uniformsGroup.__bindingPointIndex = bindingPointIndex;
16274
16274
  const buffer = gl.createBuffer();
16275
- const size = uniformsGroup.__size;
16275
+ const size2 = uniformsGroup.__size;
16276
16276
  const usage = uniformsGroup.usage;
16277
16277
  gl.bindBuffer(gl.UNIFORM_BUFFER, buffer);
16278
- gl.bufferData(gl.UNIFORM_BUFFER, size, usage);
16278
+ gl.bufferData(gl.UNIFORM_BUFFER, size2, usage);
16279
16279
  gl.bindBuffer(gl.UNIFORM_BUFFER, null);
16280
16280
  gl.bindBufferBase(gl.UNIFORM_BUFFER, bindingPointIndex, buffer);
16281
16281
  return buffer;
@@ -16750,17 +16750,17 @@ class WebGLRenderer {
16750
16750
  const isUnsignedType = targetType === UnsignedByteType || targetType === UnsignedIntType || targetType === UnsignedShortType || targetType === UnsignedInt248Type || targetType === UnsignedShort4444Type || targetType === UnsignedShort5551Type;
16751
16751
  const clearColor = background.getClearColor();
16752
16752
  const a = background.getClearAlpha();
16753
- const r = clearColor.r;
16753
+ const r2 = clearColor.r;
16754
16754
  const g = clearColor.g;
16755
16755
  const b = clearColor.b;
16756
16756
  if (isUnsignedType) {
16757
- uintClearColor[0] = r;
16757
+ uintClearColor[0] = r2;
16758
16758
  uintClearColor[1] = g;
16759
16759
  uintClearColor[2] = b;
16760
16760
  uintClearColor[3] = a;
16761
16761
  _gl.clearBufferuiv(_gl.COLOR, 0, uintClearColor);
16762
16762
  } else {
16763
- intClearColor[0] = r;
16763
+ intClearColor[0] = r2;
16764
16764
  intClearColor[1] = g;
16765
16765
  intClearColor[2] = b;
16766
16766
  intClearColor[3] = a;
@@ -18514,16 +18514,16 @@ class Skeleton {
18514
18514
  return new Skeleton(this.bones, this.boneInverses);
18515
18515
  }
18516
18516
  computeBoneTexture() {
18517
- let size = Math.sqrt(this.bones.length * 4);
18518
- size = ceilPowerOfTwo(size);
18519
- size = Math.max(size, 4);
18520
- const boneMatrices = new Float32Array(size * size * 4);
18517
+ let size2 = Math.sqrt(this.bones.length * 4);
18518
+ size2 = ceilPowerOfTwo(size2);
18519
+ size2 = Math.max(size2, 4);
18520
+ const boneMatrices = new Float32Array(size2 * size2 * 4);
18521
18521
  boneMatrices.set(this.boneMatrices);
18522
- const boneTexture = new DataTexture(boneMatrices, size, size, RGBAFormat, FloatType);
18522
+ const boneTexture = new DataTexture(boneMatrices, size2, size2, RGBAFormat, FloatType);
18523
18523
  boneTexture.needsUpdate = true;
18524
18524
  this.boneMatrices = boneMatrices;
18525
18525
  this.boneTexture = boneTexture;
18526
- this.boneTextureSize = size;
18526
+ this.boneTextureSize = size2;
18527
18527
  return this;
18528
18528
  }
18529
18529
  getBoneByName(name) {
@@ -20545,7 +20545,7 @@ class PolyhedronGeometry extends BufferGeometry {
20545
20545
  class DodecahedronGeometry extends PolyhedronGeometry {
20546
20546
  constructor(radius = 1, detail = 0) {
20547
20547
  const t = (1 + Math.sqrt(5)) / 2;
20548
- const r = 1 / t;
20548
+ const r2 = 1 / t;
20549
20549
  const vertices = [
20550
20550
  // (±1, ±1, ±1)
20551
20551
  -1,
@@ -20574,43 +20574,43 @@ class DodecahedronGeometry extends PolyhedronGeometry {
20574
20574
  1,
20575
20575
  // (0, ±1/φ, ±φ)
20576
20576
  0,
20577
- -r,
20577
+ -r2,
20578
20578
  -t,
20579
20579
  0,
20580
- -r,
20580
+ -r2,
20581
20581
  t,
20582
20582
  0,
20583
- r,
20583
+ r2,
20584
20584
  -t,
20585
20585
  0,
20586
- r,
20586
+ r2,
20587
20587
  t,
20588
20588
  // (±1/φ, ±φ, 0)
20589
- -r,
20589
+ -r2,
20590
20590
  -t,
20591
20591
  0,
20592
- -r,
20592
+ -r2,
20593
20593
  t,
20594
20594
  0,
20595
- r,
20595
+ r2,
20596
20596
  -t,
20597
20597
  0,
20598
- r,
20598
+ r2,
20599
20599
  t,
20600
20600
  0,
20601
20601
  // (±φ, 0, ±1/φ)
20602
20602
  -t,
20603
20603
  0,
20604
- -r,
20604
+ -r2,
20605
20605
  t,
20606
20606
  0,
20607
- -r,
20607
+ -r2,
20608
20608
  -t,
20609
20609
  0,
20610
- r,
20610
+ r2,
20611
20611
  t,
20612
20612
  0,
20613
- r
20613
+ r2
20614
20614
  ];
20615
20615
  const indices = [
20616
20616
  3,
@@ -21168,8 +21168,8 @@ function isValidDiagonal(a, b) {
21168
21168
  (area(a.prev, a, b.prev) || area(a, b.prev, b)) || // does not create opposite-facing sectors
21169
21169
  equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0);
21170
21170
  }
21171
- function area(p, q, r) {
21172
- return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);
21171
+ function area(p, q, r2) {
21172
+ return (q.y - p.y) * (r2.x - q.x) - (q.x - p.x) * (r2.y - q.y);
21173
21173
  }
21174
21174
  function equals(p1, p2) {
21175
21175
  return p1.x === p2.x && p1.y === p2.y;
@@ -21186,8 +21186,8 @@ function intersects(p1, q1, p2, q2) {
21186
21186
  if (o4 === 0 && onSegment(p2, q1, q2)) return true;
21187
21187
  return false;
21188
21188
  }
21189
- function onSegment(p, q, r) {
21190
- return q.x <= Math.max(p.x, r.x) && q.x >= Math.min(p.x, r.x) && q.y <= Math.max(p.y, r.y) && q.y >= Math.min(p.y, r.y);
21189
+ function onSegment(p, q, r2) {
21190
+ return q.x <= Math.max(p.x, r2.x) && q.x >= Math.min(p.x, r2.x) && q.y <= Math.max(p.y, r2.y) && q.y >= Math.min(p.y, r2.y);
21191
21191
  }
21192
21192
  function sign(num) {
21193
21193
  return num > 0 ? 1 : num < 0 ? -1 : 0;
@@ -21375,9 +21375,9 @@ class ExtrudeGeometry extends BufferGeometry {
21375
21375
  const ahole = holes[h];
21376
21376
  vertices = vertices.concat(ahole);
21377
21377
  }
21378
- function scalePt2(pt, vec, size) {
21378
+ function scalePt2(pt, vec, size2) {
21379
21379
  if (!vec) console.error("THREE.ExtrudeGeometry: vec does not exist");
21380
- return pt.clone().addScaledVector(vec, size);
21380
+ return pt.clone().addScaledVector(vec, size2);
21381
21381
  }
21382
21382
  const vlen = vertices.length, flen = faces.length;
21383
21383
  function getBevelVec(inPt, inPrev, inNext) {
@@ -26039,7 +26039,7 @@ class Clock {
26039
26039
  this.running = false;
26040
26040
  }
26041
26041
  start() {
26042
- this.startTime = now();
26042
+ this.startTime = now$1();
26043
26043
  this.oldTime = this.startTime;
26044
26044
  this.elapsedTime = 0;
26045
26045
  this.running = true;
@@ -26060,7 +26060,7 @@ class Clock {
26060
26060
  return 0;
26061
26061
  }
26062
26062
  if (this.running) {
26063
- const newTime = now();
26063
+ const newTime = now$1();
26064
26064
  diff = (newTime - this.oldTime) / 1e3;
26065
26065
  this.oldTime = newTime;
26066
26066
  this.elapsedTime += diff;
@@ -26068,7 +26068,7 @@ class Clock {
26068
26068
  return diff;
26069
26069
  }
26070
26070
  }
26071
- function now() {
26071
+ function now$1() {
26072
26072
  return (typeof performance === "undefined" ? Date : performance).now();
26073
26073
  }
26074
26074
  const _position$1 = /* @__PURE__ */ new Vector3();
@@ -28120,8 +28120,8 @@ class Box2 {
28120
28120
  }
28121
28121
  return this;
28122
28122
  }
28123
- setFromCenterAndSize(center, size) {
28124
- const halfSize = _vector$4.copy(size).multiplyScalar(0.5);
28123
+ setFromCenterAndSize(center, size2) {
28124
+ const halfSize = _vector$4.copy(size2).multiplyScalar(0.5);
28125
28125
  this.min.copy(center).sub(halfSize);
28126
28126
  this.max.copy(center).add(halfSize);
28127
28127
  return this;
@@ -28437,14 +28437,14 @@ const _vector$1 = /* @__PURE__ */ new Vector3();
28437
28437
  const _color1 = /* @__PURE__ */ new Color();
28438
28438
  const _color2 = /* @__PURE__ */ new Color();
28439
28439
  class HemisphereLightHelper extends Object3D {
28440
- constructor(light2, size, color2) {
28440
+ constructor(light2, size2, color2) {
28441
28441
  super();
28442
28442
  this.light = light2;
28443
28443
  this.matrix = light2.matrixWorld;
28444
28444
  this.matrixAutoUpdate = false;
28445
28445
  this.color = color2;
28446
28446
  this.type = "HemisphereLightHelper";
28447
- const geometry = new OctahedronGeometry(size);
28447
+ const geometry = new OctahedronGeometry(size2);
28448
28448
  geometry.rotateY(Math.PI * 0.5);
28449
28449
  this.material = new MeshBasicMaterial({ wireframe: true, fog: false, toneMapped: false });
28450
28450
  if (this.color === void 0) this.material.vertexColors = true;
@@ -28477,12 +28477,12 @@ class HemisphereLightHelper extends Object3D {
28477
28477
  }
28478
28478
  }
28479
28479
  class GridHelper extends LineSegments {
28480
- constructor(size = 10, divisions = 10, color1 = 4473924, color2 = 8947848) {
28480
+ constructor(size2 = 10, divisions = 10, color1 = 4473924, color2 = 8947848) {
28481
28481
  color1 = new Color(color1);
28482
28482
  color2 = new Color(color2);
28483
28483
  const center = divisions / 2;
28484
- const step = size / divisions;
28485
- const halfSize = size / 2;
28484
+ const step = size2 / divisions;
28485
+ const halfSize = size2 / 2;
28486
28486
  const vertices = [], colors = [];
28487
28487
  for (let i2 = 0, j = 0, k = -halfSize; i2 <= divisions; i2++, k += step) {
28488
28488
  vertices.push(-halfSize, 0, k, halfSize, 0, k);
@@ -28529,16 +28529,16 @@ class PolarGridHelper extends LineSegments {
28529
28529
  }
28530
28530
  for (let i2 = 0; i2 < rings; i2++) {
28531
28531
  const color3 = i2 & 1 ? color1 : color2;
28532
- const r = radius - radius / rings * i2;
28532
+ const r2 = radius - radius / rings * i2;
28533
28533
  for (let j = 0; j < divisions; j++) {
28534
28534
  let v = j / divisions * (Math.PI * 2);
28535
- let x = Math.sin(v) * r;
28536
- let z = Math.cos(v) * r;
28535
+ let x = Math.sin(v) * r2;
28536
+ let z = Math.cos(v) * r2;
28537
28537
  vertices.push(x, 0, z);
28538
28538
  colors.push(color3.r, color3.g, color3.b);
28539
28539
  v = (j + 1) / divisions * (Math.PI * 2);
28540
- x = Math.sin(v) * r;
28541
- z = Math.cos(v) * r;
28540
+ x = Math.sin(v) * r2;
28541
+ z = Math.cos(v) * r2;
28542
28542
  vertices.push(x, 0, z);
28543
28543
  colors.push(color3.r, color3.g, color3.b);
28544
28544
  }
@@ -28559,30 +28559,30 @@ const _v1 = /* @__PURE__ */ new Vector3();
28559
28559
  const _v2 = /* @__PURE__ */ new Vector3();
28560
28560
  const _v3 = /* @__PURE__ */ new Vector3();
28561
28561
  class DirectionalLightHelper extends Object3D {
28562
- constructor(light2, size, color2) {
28562
+ constructor(light2, size2, color2) {
28563
28563
  super();
28564
28564
  this.light = light2;
28565
28565
  this.matrix = light2.matrixWorld;
28566
28566
  this.matrixAutoUpdate = false;
28567
28567
  this.color = color2;
28568
28568
  this.type = "DirectionalLightHelper";
28569
- if (size === void 0) size = 1;
28569
+ if (size2 === void 0) size2 = 1;
28570
28570
  let geometry = new BufferGeometry();
28571
28571
  geometry.setAttribute("position", new Float32BufferAttribute([
28572
- -size,
28573
- size,
28572
+ -size2,
28573
+ size2,
28574
28574
  0,
28575
- size,
28576
- size,
28575
+ size2,
28576
+ size2,
28577
28577
  0,
28578
- size,
28579
- -size,
28578
+ size2,
28579
+ -size2,
28580
28580
  0,
28581
- -size,
28582
- -size,
28581
+ -size2,
28582
+ -size2,
28583
28583
  0,
28584
- -size,
28585
- size,
28584
+ -size2,
28585
+ size2,
28586
28586
  0
28587
28587
  ], 3));
28588
28588
  const material = new LineBasicMaterial({ fog: false, toneMapped: false });
@@ -28873,7 +28873,7 @@ class Box3Helper extends LineSegments {
28873
28873
  }
28874
28874
  }
28875
28875
  class PlaneHelper extends Line {
28876
- constructor(plane, size = 1, hex = 16776960) {
28876
+ constructor(plane, size2 = 1, hex = 16776960) {
28877
28877
  const color2 = hex;
28878
28878
  const positions = [1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0];
28879
28879
  const geometry = new BufferGeometry();
@@ -28882,7 +28882,7 @@ class PlaneHelper extends Line {
28882
28882
  super(geometry, new LineBasicMaterial({ color: color2, toneMapped: false }));
28883
28883
  this.type = "PlaneHelper";
28884
28884
  this.plane = plane;
28885
- this.size = size;
28885
+ this.size = size2;
28886
28886
  const positions2 = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0];
28887
28887
  const geometry2 = new BufferGeometry();
28888
28888
  geometry2.setAttribute("position", new Float32BufferAttribute(positions2, 3));
@@ -28962,26 +28962,26 @@ class ArrowHelper extends Object3D {
28962
28962
  }
28963
28963
  }
28964
28964
  class AxesHelper extends LineSegments {
28965
- constructor(size = 1) {
28965
+ constructor(size2 = 1) {
28966
28966
  const vertices = [
28967
28967
  0,
28968
28968
  0,
28969
28969
  0,
28970
- size,
28970
+ size2,
28971
28971
  0,
28972
28972
  0,
28973
28973
  0,
28974
28974
  0,
28975
28975
  0,
28976
28976
  0,
28977
- size,
28977
+ size2,
28978
28978
  0,
28979
28979
  0,
28980
28980
  0,
28981
28981
  0,
28982
28982
  0,
28983
28983
  0,
28984
- size
28984
+ size2
28985
28985
  ];
28986
28986
  const colors = [
28987
28987
  1,
@@ -30355,7 +30355,7 @@ function requireReactReconciler_development() {
30355
30355
  }
30356
30356
  return null;
30357
30357
  }
30358
- function getWrappedName(outerType, innerType, wrapperName) {
30358
+ function getWrappedName2(outerType, innerType, wrapperName) {
30359
30359
  var displayName = outerType.displayName;
30360
30360
  if (displayName) {
30361
30361
  return displayName;
@@ -30404,7 +30404,7 @@ function requireReactReconciler_development() {
30404
30404
  var provider = type;
30405
30405
  return getContextName(provider._context) + ".Provider";
30406
30406
  case REACT_FORWARD_REF_TYPE:
30407
- return getWrappedName(type, type.render, "ForwardRef");
30407
+ return getWrappedName2(type, type.render, "ForwardRef");
30408
30408
  case REACT_MEMO_TYPE:
30409
30409
  var outerName = type.displayName || null;
30410
30410
  if (outerName !== null) {
@@ -30811,7 +30811,7 @@ function requireReactReconciler_development() {
30811
30811
  var shouldSetTextContent = $$$hostConfig.shouldSetTextContent;
30812
30812
  var createTextInstance = $$$hostConfig.createTextInstance;
30813
30813
  var scheduleTimeout = $$$hostConfig.scheduleTimeout;
30814
- var cancelTimeout = $$$hostConfig.cancelTimeout;
30814
+ var cancelTimeout2 = $$$hostConfig.cancelTimeout;
30815
30815
  var noTimeout = $$$hostConfig.noTimeout;
30816
30816
  $$$hostConfig.now;
30817
30817
  var isPrimaryRenderer = $$$hostConfig.isPrimaryRenderer;
@@ -32088,7 +32088,7 @@ function requireReactReconciler_development() {
32088
32088
  var cancelCallback = Scheduler.unstable_cancelCallback;
32089
32089
  var shouldYield = Scheduler.unstable_shouldYield;
32090
32090
  var requestPaint = Scheduler.unstable_requestPaint;
32091
- var now$1 = Scheduler.unstable_now;
32091
+ var now$12 = Scheduler.unstable_now;
32092
32092
  var ImmediatePriority = Scheduler.unstable_ImmediatePriority;
32093
32093
  var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
32094
32094
  var NormalPriority = Scheduler.unstable_NormalPriority;
@@ -35425,7 +35425,7 @@ function requireReactReconciler_development() {
35425
35425
  /* */
35426
35426
  1
35427
35427
  );
35428
- var Insertion = (
35428
+ var Insertion3 = (
35429
35429
  /* */
35430
35430
  2
35431
35431
  );
@@ -36127,10 +36127,10 @@ function requireReactReconciler_development() {
36127
36127
  return updateEffectImpl(Passive, Passive$1, create2, deps);
36128
36128
  }
36129
36129
  function mountInsertionEffect(create2, deps) {
36130
- return mountEffectImpl(Update, Insertion, create2, deps);
36130
+ return mountEffectImpl(Update, Insertion3, create2, deps);
36131
36131
  }
36132
36132
  function updateInsertionEffect(create2, deps) {
36133
- return updateEffectImpl(Update, Insertion, create2, deps);
36133
+ return updateEffectImpl(Update, Insertion3, create2, deps);
36134
36134
  }
36135
36135
  function mountLayoutEffect(create2, deps) {
36136
36136
  var fiberFlags = Update;
@@ -38273,7 +38273,7 @@ function requireReactReconciler_development() {
38273
38273
  row = row.sibling;
38274
38274
  }
38275
38275
  }
38276
- if (renderState.tail !== null && now$1() > getRenderTargetTime()) {
38276
+ if (renderState.tail !== null && now$12() > getRenderTargetTime()) {
38277
38277
  workInProgress2.flags |= DidCapture;
38278
38278
  didSuspendAlready = true;
38279
38279
  cutOffTailIfNeeded(renderState, false);
@@ -38302,7 +38302,7 @@ function requireReactReconciler_development() {
38302
38302
  // The time it took to render last row is greater than the remaining
38303
38303
  // time we have to render. So rendering one more row would likely
38304
38304
  // exceed it.
38305
- now$1() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes2 !== OffscreenLane
38305
+ now$12() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes2 !== OffscreenLane
38306
38306
  ) {
38307
38307
  workInProgress2.flags |= DidCapture;
38308
38308
  didSuspendAlready = true;
@@ -38327,7 +38327,7 @@ function requireReactReconciler_development() {
38327
38327
  var next2 = renderState.tail;
38328
38328
  renderState.rendering = next2;
38329
38329
  renderState.tail = next2.sibling;
38330
- renderState.renderingStartTime = now$1();
38330
+ renderState.renderingStartTime = now$12();
38331
38331
  next2.sibling = null;
38332
38332
  var suspenseContext = suspenseStackCursor.current;
38333
38333
  if (didSuspendAlready) {
@@ -40592,7 +40592,7 @@ function requireReactReconciler_development() {
40592
40592
  var hookName = void 0;
40593
40593
  if ((effect.tag & Layout) !== NoFlags) {
40594
40594
  hookName = "useLayoutEffect";
40595
- } else if ((effect.tag & Insertion) !== NoFlags) {
40595
+ } else if ((effect.tag & Insertion3) !== NoFlags) {
40596
40596
  hookName = "useInsertionEffect";
40597
40597
  } else {
40598
40598
  hookName = "useEffect";
@@ -40985,7 +40985,7 @@ function requireReactReconciler_development() {
40985
40985
  do {
40986
40986
  var _effect = effect, destroy2 = _effect.destroy, tag = _effect.tag;
40987
40987
  if (destroy2 !== void 0) {
40988
- if ((tag & Insertion) !== NoFlags$1) {
40988
+ if ((tag & Insertion3) !== NoFlags$1) {
40989
40989
  safelyCallDestroy(current2, nearestMountedAncestor, destroy2);
40990
40990
  } else if ((tag & Layout) !== NoFlags$1) {
40991
40991
  {
@@ -41333,8 +41333,8 @@ function requireReactReconciler_development() {
41333
41333
  case ForwardRef:
41334
41334
  case MemoComponent:
41335
41335
  case SimpleMemoComponent: {
41336
- commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return);
41337
- commitHookEffectListMount(Insertion | HasEffect, finishedWork);
41336
+ commitHookEffectListUnmount(Insertion3 | HasEffect, finishedWork, finishedWork.return);
41337
+ commitHookEffectListMount(Insertion3 | HasEffect, finishedWork);
41338
41338
  if (finishedWork.mode & ProfileMode) {
41339
41339
  try {
41340
41340
  startLayoutEffectTimer();
@@ -41384,8 +41384,8 @@ function requireReactReconciler_development() {
41384
41384
  case ForwardRef:
41385
41385
  case MemoComponent:
41386
41386
  case SimpleMemoComponent: {
41387
- commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return);
41388
- commitHookEffectListMount(Insertion | HasEffect, finishedWork);
41387
+ commitHookEffectListUnmount(Insertion3 | HasEffect, finishedWork, finishedWork.return);
41388
+ commitHookEffectListMount(Insertion3 | HasEffect, finishedWork);
41389
41389
  if (finishedWork.mode & ProfileMode) {
41390
41390
  try {
41391
41391
  startLayoutEffectTimer();
@@ -42532,7 +42532,7 @@ function requireReactReconciler_development() {
42532
42532
  var workInProgressRootRenderTargetTime = Infinity;
42533
42533
  var RENDER_TIMEOUT_MS = 500;
42534
42534
  function resetRenderTimer() {
42535
- workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
42535
+ workInProgressRootRenderTargetTime = now$12() + RENDER_TIMEOUT_MS;
42536
42536
  }
42537
42537
  function getRenderTargetTime() {
42538
42538
  return workInProgressRootRenderTargetTime;
@@ -42556,12 +42556,12 @@ function requireReactReconciler_development() {
42556
42556
  }
42557
42557
  function requestEventTime() {
42558
42558
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
42559
- return now$1();
42559
+ return now$12();
42560
42560
  }
42561
42561
  if (currentEventTime !== NoTimestamp) {
42562
42562
  return currentEventTime;
42563
42563
  }
42564
- currentEventTime = now$1();
42564
+ currentEventTime = now$12();
42565
42565
  return currentEventTime;
42566
42566
  }
42567
42567
  function requestUpdateLane(fiber) {
@@ -42795,7 +42795,7 @@ function requireReactReconciler_development() {
42795
42795
  var fatalError = workInProgressRootFatalError;
42796
42796
  prepareFreshStack(root2, NoLanes);
42797
42797
  markRootSuspended$1(root2, lanes);
42798
- ensureRootIsScheduled(root2, now$1());
42798
+ ensureRootIsScheduled(root2, now$12());
42799
42799
  throw fatalError;
42800
42800
  }
42801
42801
  if (exitStatus === RootDidNotComplete) {
@@ -42816,7 +42816,7 @@ function requireReactReconciler_development() {
42816
42816
  var _fatalError = workInProgressRootFatalError;
42817
42817
  prepareFreshStack(root2, NoLanes);
42818
42818
  markRootSuspended$1(root2, lanes);
42819
- ensureRootIsScheduled(root2, now$1());
42819
+ ensureRootIsScheduled(root2, now$12());
42820
42820
  throw _fatalError;
42821
42821
  }
42822
42822
  }
@@ -42825,7 +42825,7 @@ function requireReactReconciler_development() {
42825
42825
  finishConcurrentRender(root2, exitStatus, lanes);
42826
42826
  }
42827
42827
  }
42828
- ensureRootIsScheduled(root2, now$1());
42828
+ ensureRootIsScheduled(root2, now$12());
42829
42829
  if (root2.callbackNode === originalCallbackNode) {
42830
42830
  return performConcurrentWorkOnRoot.bind(null, root2);
42831
42831
  }
@@ -42874,7 +42874,7 @@ function requireReactReconciler_development() {
42874
42874
  markRootSuspended$1(root2, lanes);
42875
42875
  if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope
42876
42876
  !shouldForceFlushFallbacksInDEV()) {
42877
- var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1();
42877
+ var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$12();
42878
42878
  if (msUntilTimeout > 10) {
42879
42879
  var nextLanes = getNextLanes(root2, NoLanes);
42880
42880
  if (nextLanes !== NoLanes) {
@@ -42901,7 +42901,7 @@ function requireReactReconciler_development() {
42901
42901
  if (!shouldForceFlushFallbacksInDEV()) {
42902
42902
  var mostRecentEventTime = getMostRecentEventTime(root2, lanes);
42903
42903
  var eventTimeMs = mostRecentEventTime;
42904
- var timeElapsedMs = now$1() - eventTimeMs;
42904
+ var timeElapsedMs = now$12() - eventTimeMs;
42905
42905
  var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs;
42906
42906
  if (_msUntilTimeout > 10) {
42907
42907
  root2.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root2, workInProgressRootRecoverableErrors), _msUntilTimeout);
@@ -42978,7 +42978,7 @@ function requireReactReconciler_development() {
42978
42978
  flushPassiveEffects();
42979
42979
  var lanes = getNextLanes(root2, NoLanes);
42980
42980
  if (!includesSomeLane(lanes, SyncLane)) {
42981
- ensureRootIsScheduled(root2, now$1());
42981
+ ensureRootIsScheduled(root2, now$12());
42982
42982
  return null;
42983
42983
  }
42984
42984
  var exitStatus = renderRootSync(root2, lanes);
@@ -42993,7 +42993,7 @@ function requireReactReconciler_development() {
42993
42993
  var fatalError = workInProgressRootFatalError;
42994
42994
  prepareFreshStack(root2, NoLanes);
42995
42995
  markRootSuspended$1(root2, lanes);
42996
- ensureRootIsScheduled(root2, now$1());
42996
+ ensureRootIsScheduled(root2, now$12());
42997
42997
  throw fatalError;
42998
42998
  }
42999
42999
  if (exitStatus === RootDidNotComplete) {
@@ -43003,13 +43003,13 @@ function requireReactReconciler_development() {
43003
43003
  root2.finishedWork = finishedWork;
43004
43004
  root2.finishedLanes = lanes;
43005
43005
  commitRoot(root2, workInProgressRootRecoverableErrors);
43006
- ensureRootIsScheduled(root2, now$1());
43006
+ ensureRootIsScheduled(root2, now$12());
43007
43007
  return null;
43008
43008
  }
43009
43009
  function flushRoot(root2, lanes) {
43010
43010
  if (lanes !== NoLanes) {
43011
43011
  markRootEntangled(root2, mergeLanes(lanes, SyncLane));
43012
- ensureRootIsScheduled(root2, now$1());
43012
+ ensureRootIsScheduled(root2, now$12());
43013
43013
  if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
43014
43014
  resetRenderTimer();
43015
43015
  flushSyncCallbacks();
@@ -43118,7 +43118,7 @@ function requireReactReconciler_development() {
43118
43118
  var timeoutHandle = root2.timeoutHandle;
43119
43119
  if (timeoutHandle !== noTimeout) {
43120
43120
  root2.timeoutHandle = noTimeout;
43121
- cancelTimeout(timeoutHandle);
43121
+ cancelTimeout2(timeoutHandle);
43122
43122
  }
43123
43123
  if (workInProgress !== null) {
43124
43124
  var interruptedWork = workInProgress.return;
@@ -43199,7 +43199,7 @@ function requireReactReconciler_development() {
43199
43199
  ReactCurrentDispatcher$2.current = prevDispatcher;
43200
43200
  }
43201
43201
  function markCommitTimeOfFallback() {
43202
- globalMostRecentFallbackTime = now$1();
43202
+ globalMostRecentFallbackTime = now$12();
43203
43203
  }
43204
43204
  function markSkippedUpdateLanes(lane) {
43205
43205
  workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
@@ -43525,7 +43525,7 @@ function requireReactReconciler_development() {
43525
43525
  {
43526
43526
  onCommitRoot$1();
43527
43527
  }
43528
- ensureRootIsScheduled(root2, now$1());
43528
+ ensureRootIsScheduled(root2, now$12());
43529
43529
  if (recoverableErrors !== null) {
43530
43530
  var onRecoverableError = root2.onRecoverableError;
43531
43531
  for (var i2 = 0; i2 < recoverableErrors.length; i2++) {
@@ -43706,7 +43706,7 @@ function requireReactReconciler_development() {
43706
43706
  markRootPinged(root2, pingedLanes);
43707
43707
  warnIfSuspenseResolutionNotWrappedWithActDEV(root2);
43708
43708
  if (workInProgressRoot === root2 && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
43709
- if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
43709
+ if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now$12() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
43710
43710
  prepareFreshStack(root2, NoLanes);
43711
43711
  } else {
43712
43712
  workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
@@ -45798,15 +45798,15 @@ function invalidateInstance(instance) {
45798
45798
  function updateInstance(instance) {
45799
45799
  instance.onUpdate == null ? void 0 : instance.onUpdate(instance);
45800
45800
  }
45801
- function updateCamera(camera, size) {
45801
+ function updateCamera(camera, size2) {
45802
45802
  if (!camera.manual) {
45803
45803
  if (isOrthographicCamera(camera)) {
45804
- camera.left = size.width / -2;
45805
- camera.right = size.width / 2;
45806
- camera.top = size.height / 2;
45807
- camera.bottom = size.height / -2;
45804
+ camera.left = size2.width / -2;
45805
+ camera.right = size2.width / 2;
45806
+ camera.top = size2.height / 2;
45807
+ camera.bottom = size2.height / -2;
45808
45808
  } else {
45809
- camera.aspect = size.width / size.height;
45809
+ camera.aspect = size2.width / size2.height;
45810
45810
  }
45811
45811
  camera.updateProjectionMatrix();
45812
45812
  camera.updateMatrixWorld();
@@ -46134,13 +46134,13 @@ const createStore = (invalidate2, advance2) => {
46134
46134
  const position2 = new Vector3();
46135
46135
  const defaultTarget = new Vector3();
46136
46136
  const tempTarget = new Vector3();
46137
- function getCurrentViewport(camera = get().camera, target = defaultTarget, size = get().size) {
46137
+ function getCurrentViewport(camera = get().camera, target = defaultTarget, size2 = get().size) {
46138
46138
  const {
46139
46139
  width: width2,
46140
46140
  height: height2,
46141
46141
  top,
46142
46142
  left
46143
- } = size;
46143
+ } = size2;
46144
46144
  const aspect2 = width2 / height2;
46145
46145
  if (target instanceof Vector3) tempTarget.copy(target);
46146
46146
  else tempTarget.set(...target);
@@ -46243,7 +46243,7 @@ const createStore = (invalidate2, advance2) => {
46243
46243
  })),
46244
46244
  setSize: (width2, height2, updateStyle, top, left) => {
46245
46245
  const camera = get().camera;
46246
- const size = {
46246
+ const size2 = {
46247
46247
  width: width2,
46248
46248
  height: height2,
46249
46249
  top: top || 0,
@@ -46251,10 +46251,10 @@ const createStore = (invalidate2, advance2) => {
46251
46251
  updateStyle
46252
46252
  };
46253
46253
  set((state2) => ({
46254
- size,
46254
+ size: size2,
46255
46255
  viewport: {
46256
46256
  ...state2.viewport,
46257
- ...getCurrentViewport(camera, defaultTarget, size)
46257
+ ...getCurrentViewport(camera, defaultTarget, size2)
46258
46258
  }
46259
46259
  }));
46260
46260
  },
@@ -46320,19 +46320,19 @@ const createStore = (invalidate2, advance2) => {
46320
46320
  rootState.subscribe(() => {
46321
46321
  const {
46322
46322
  camera,
46323
- size,
46323
+ size: size2,
46324
46324
  viewport,
46325
46325
  gl,
46326
46326
  set
46327
46327
  } = rootState.getState();
46328
- if (size.width !== oldSize.width || size.height !== oldSize.height || viewport.dpr !== oldDpr) {
46328
+ if (size2.width !== oldSize.width || size2.height !== oldSize.height || viewport.dpr !== oldDpr) {
46329
46329
  var _size$updateStyle;
46330
- oldSize = size;
46330
+ oldSize = size2;
46331
46331
  oldDpr = viewport.dpr;
46332
- updateCamera(camera, size);
46332
+ updateCamera(camera, size2);
46333
46333
  gl.setPixelRatio(viewport.dpr);
46334
- const updateStyle = (_size$updateStyle = size.updateStyle) != null ? _size$updateStyle : typeof HTMLCanvasElement !== "undefined" && gl.domElement instanceof HTMLCanvasElement;
46335
- gl.setSize(size.width, size.height, updateStyle);
46334
+ const updateStyle = (_size$updateStyle = size2.updateStyle) != null ? _size$updateStyle : typeof HTMLCanvasElement !== "undefined" && gl.domElement instanceof HTMLCanvasElement;
46335
+ gl.setSize(size2.width, size2.height, updateStyle);
46336
46336
  }
46337
46337
  if (camera !== oldCamera) {
46338
46338
  oldCamera = camera;
@@ -46685,9 +46685,9 @@ function createRoot(canvas) {
46685
46685
  if (events && !state.events.handlers) state.set({
46686
46686
  events: events(store)
46687
46687
  });
46688
- const size = computeInitialSize(canvas, propsSize);
46689
- if (!is.equ(size, state.size, shallowLoose)) {
46690
- state.setSize(size.width, size.height, size.updateStyle, size.top, size.left);
46688
+ const size2 = computeInitialSize(canvas, propsSize);
46689
+ if (!is.equ(size2, state.size, shallowLoose)) {
46690
+ state.setSize(size2.width, size2.height, size2.updateStyle, size2.top, size2.left);
46691
46691
  }
46692
46692
  if (dpr && state.viewport.dpr !== calculateDpr(dpr)) state.setDpr(dpr);
46693
46693
  if (state.frameloop !== frameloop) state.setFrameloop(frameloop);
@@ -46770,14 +46770,14 @@ reconciler.injectIntoDevTools({
46770
46770
  rendererPackageName: "@react-three/fiber",
46771
46771
  version: React.version
46772
46772
  });
46773
- function _extends$1() {
46774
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
46773
+ function _extends$3() {
46774
+ return _extends$3 = Object.assign ? Object.assign.bind() : function(n) {
46775
46775
  for (var e = 1; e < arguments.length; e++) {
46776
46776
  var t = arguments[e];
46777
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
46777
+ for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
46778
46778
  }
46779
46779
  return n;
46780
- }, _extends$1.apply(null, arguments);
46780
+ }, _extends$3.apply(null, arguments);
46781
46781
  }
46782
46782
  var debounce_1;
46783
46783
  var hasRequiredDebounce;
@@ -46885,7 +46885,7 @@ function useMeasure(_temp) {
46885
46885
  x,
46886
46886
  y
46887
46887
  } = state.current.element.getBoundingClientRect();
46888
- const size = {
46888
+ const size2 = {
46889
46889
  left,
46890
46890
  top,
46891
46891
  width: width2,
@@ -46896,11 +46896,11 @@ function useMeasure(_temp) {
46896
46896
  y
46897
46897
  };
46898
46898
  if (state.current.element instanceof HTMLElement && offsetSize) {
46899
- size.height = state.current.element.offsetHeight;
46900
- size.width = state.current.element.offsetWidth;
46899
+ size2.height = state.current.element.offsetHeight;
46900
+ size2.width = state.current.element.offsetWidth;
46901
46901
  }
46902
- Object.freeze(size);
46903
- if (mounted.current && !areBoundsEqual(state.current.lastBounds, size)) set(state.current.lastBounds = size);
46902
+ Object.freeze(size2);
46903
+ if (mounted.current && !areBoundsEqual(state.current.lastBounds, size2)) set(state.current.lastBounds = size2);
46904
46904
  };
46905
46905
  return [callback, resizeDebounce ? createDebounce(callback, resizeDebounce) : callback, scrollDebounce ? createDebounce(callback, scrollDebounce) : callback];
46906
46906
  }, [set, offsetSize, scrollDebounce, resizeDebounce]);
@@ -47258,7 +47258,7 @@ const CanvasImpl = /* @__PURE__ */ React.forwardRef(function Canvas({
47258
47258
  if (canvas) return () => unmountComponentAtNode(canvas);
47259
47259
  }, []);
47260
47260
  const pointerEvents = eventSource ? "none" : "auto";
47261
- return /* @__PURE__ */ React.createElement("div", _extends$1({
47261
+ return /* @__PURE__ */ React.createElement("div", _extends$3({
47262
47262
  ref: divRef,
47263
47263
  style: {
47264
47264
  position: "relative",
@@ -47282,7 +47282,7 @@ const CanvasImpl = /* @__PURE__ */ React.forwardRef(function Canvas({
47282
47282
  }, fallback)));
47283
47283
  });
47284
47284
  const Canvas2 = /* @__PURE__ */ React.forwardRef(function CanvasWrapper(props, ref) {
47285
- return /* @__PURE__ */ React.createElement(FiberProvider, null, /* @__PURE__ */ React.createElement(CanvasImpl, _extends$1({}, props, {
47285
+ return /* @__PURE__ */ React.createElement(FiberProvider, null, /* @__PURE__ */ React.createElement(CanvasImpl, _extends$3({}, props, {
47286
47286
  ref
47287
47287
  })));
47288
47288
  });
@@ -48165,7 +48165,7 @@ const OrbitControls2 = /* @__PURE__ */ React.forwardRef(({
48165
48165
  });
48166
48166
  }
48167
48167
  }, [makeDefault, controls]);
48168
- return /* @__PURE__ */ React.createElement("primitive", _extends$1({
48168
+ return /* @__PURE__ */ React.createElement("primitive", _extends$3({
48169
48169
  ref,
48170
48170
  object: controls,
48171
48171
  enableDamping
@@ -49626,9 +49626,9 @@ function parse(value, root2, parent, rule, rules, rulesets, pseudo, points, decl
49626
49626
  function ruleset(value, root2, parent, index, offset2, rules, points, type, props, children, length2) {
49627
49627
  var post = offset2 - 1;
49628
49628
  var rule = offset2 === 0 ? rules : [""];
49629
- var size = sizeof(rule);
49629
+ var size2 = sizeof(rule);
49630
49630
  for (var i2 = 0, j = 0, k = 0; i2 < index; ++i2)
49631
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i2])), z = value; x < size; ++x)
49631
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i2])), z = value; x < size2; ++x)
49632
49632
  if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
49633
49633
  props[k++] = z;
49634
49634
  return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
@@ -49681,9 +49681,9 @@ function rulesheet(callback) {
49681
49681
  }
49682
49682
  function memoize$1(fn) {
49683
49683
  var cache = /* @__PURE__ */ Object.create(null);
49684
- return function(arg) {
49685
- if (cache[arg] === void 0) cache[arg] = fn(arg);
49686
- return cache[arg];
49684
+ return function(arg2) {
49685
+ if (cache[arg2] === void 0) cache[arg2] = fn(arg2);
49686
+ return cache[arg2];
49687
49687
  };
49688
49688
  }
49689
49689
  var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
@@ -50021,6 +50021,16 @@ var createCache = function createCache2(options) {
50021
50021
  cache.sheet.hydrate(nodesToHydrate);
50022
50022
  return cache;
50023
50023
  };
50024
+ function _extends$2() {
50025
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
50026
+ for (var e = 1; e < arguments.length; e++) {
50027
+ var t = arguments[e];
50028
+ for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
50029
+ }
50030
+ return n;
50031
+ }, _extends$2.apply(null, arguments);
50032
+ }
50033
+ var isBrowser$1 = true;
50024
50034
  function getRegisteredStyles(registered, registeredStyles, classNames) {
50025
50035
  var rawClassName = "";
50026
50036
  classNames.split(" ").forEach(function(className) {
@@ -50032,7 +50042,7 @@ function getRegisteredStyles(registered, registeredStyles, classNames) {
50032
50042
  });
50033
50043
  return rawClassName;
50034
50044
  }
50035
- var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
50045
+ var registerStyles = function registerStyles2(cache, serialized, isStringTag2) {
50036
50046
  var className = cache.key + "-" + serialized.name;
50037
50047
  if (
50038
50048
  // we only need to add the styles to the registered cache if the
@@ -50040,13 +50050,17 @@ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
50040
50050
  // the tree but if it's a string tag, we know it won't
50041
50051
  // so we don't have to add it to registered cache.
50042
50052
  // this improves memory usage since we can avoid storing the whole style string
50043
- cache.registered[className] === void 0
50053
+ (isStringTag2 === false || // we need to always store it if we're in compat mode and
50054
+ // in node since emotion-server relies on whether a style is in
50055
+ // the registered cache to know whether a style is global or not
50056
+ // also, note that this check will be dead code eliminated in the browser
50057
+ isBrowser$1 === false) && cache.registered[className] === void 0
50044
50058
  ) {
50045
50059
  cache.registered[className] = serialized.styles;
50046
50060
  }
50047
50061
  };
50048
- var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
50049
- registerStyles(cache, serialized);
50062
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag2) {
50063
+ registerStyles(cache, serialized, isStringTag2);
50050
50064
  var className = cache.key + "-" + serialized.name;
50051
50065
  if (cache.inserted[serialized.name] === void 0) {
50052
50066
  var current = serialized;
@@ -50206,6 +50220,15 @@ function handleInterpolation(mergedProps, registered, interpolation) {
50206
50220
  }
50207
50221
  return createStringFromObject(mergedProps, registered, interpolation);
50208
50222
  }
50223
+ case "function": {
50224
+ if (mergedProps !== void 0) {
50225
+ var previousCursor = cursor;
50226
+ var result = interpolation(mergedProps);
50227
+ cursor = previousCursor;
50228
+ return handleInterpolation(mergedProps, registered, result);
50229
+ }
50230
+ break;
50231
+ }
50209
50232
  }
50210
50233
  var asString = interpolation;
50211
50234
  if (registered == null) {
@@ -50292,6 +50315,11 @@ function serializeStyles(args, registered, mergedProps) {
50292
50315
  next: cursor
50293
50316
  };
50294
50317
  }
50318
+ var syncFallback = function syncFallback2(create2) {
50319
+ return create2();
50320
+ };
50321
+ var useInsertionEffect = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
50322
+ var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
50295
50323
  var EmotionCacheContext = /* @__PURE__ */ React.createContext(
50296
50324
  // we're doing this to avoid preconstruct's dead code elimination in this one case
50297
50325
  // because this module is primarily intended for the browser and node
@@ -50307,6 +50335,12 @@ EmotionCacheContext.Provider;
50307
50335
  var __unsafe_useEmotionCache = function useEmotionCache() {
50308
50336
  return useContext(EmotionCacheContext);
50309
50337
  };
50338
+ var withEmotionCache = function withEmotionCache2(func) {
50339
+ return /* @__PURE__ */ forwardRef(function(props, ref) {
50340
+ var cache = useContext(EmotionCacheContext);
50341
+ return func(props, cache, ref);
50342
+ });
50343
+ };
50310
50344
  var ThemeContext = /* @__PURE__ */ React.createContext({});
50311
50345
  const objectFromEntries = !Object.fromEntries ? (entries) => {
50312
50346
  if (!entries || !entries[Symbol.iterator]) {
@@ -50335,24 +50369,24 @@ const classnames = (args) => {
50335
50369
  let i2 = 0;
50336
50370
  let cls = "";
50337
50371
  for (; i2 < len; i2++) {
50338
- const arg = args[i2];
50339
- if (arg == null)
50372
+ const arg2 = args[i2];
50373
+ if (arg2 == null)
50340
50374
  continue;
50341
50375
  let toAdd;
50342
- switch (typeof arg) {
50376
+ switch (typeof arg2) {
50343
50377
  case "boolean":
50344
50378
  break;
50345
50379
  case "object": {
50346
- if (Array.isArray(arg)) {
50347
- toAdd = classnames(arg);
50380
+ if (Array.isArray(arg2)) {
50381
+ toAdd = classnames(arg2);
50348
50382
  } else {
50349
- assert(!typeGuard(arg, false));
50350
- if (arg.styles !== void 0 && arg.name !== void 0) {
50383
+ assert(!typeGuard(arg2, false));
50384
+ if (arg2.styles !== void 0 && arg2.name !== void 0) {
50351
50385
  console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.");
50352
50386
  }
50353
50387
  toAdd = "";
50354
- for (const k in arg) {
50355
- if (arg[k] && k) {
50388
+ for (const k in arg2) {
50389
+ if (arg2[k] && k) {
50356
50390
  toAdd && (toAdd += " ");
50357
50391
  toAdd += k;
50358
50392
  }
@@ -50361,7 +50395,7 @@ const classnames = (args) => {
50361
50395
  break;
50362
50396
  }
50363
50397
  default: {
50364
- toAdd = arg;
50398
+ toAdd = arg2;
50365
50399
  }
50366
50400
  }
50367
50401
  if (toAdd) {
@@ -50382,8 +50416,8 @@ function useGuaranteedMemo(fn, deps) {
50382
50416
  }
50383
50417
  return ref.current.v;
50384
50418
  }
50385
- function matchCSSObject(arg) {
50386
- return arg instanceof Object && !("styles" in arg) && !("length" in arg) && !("__emotion_styles" in arg);
50419
+ function matchCSSObject(arg2) {
50420
+ return arg2 instanceof Object && !("styles" in arg2) && !("length" in arg2) && !("__emotion_styles" in arg2);
50387
50421
  }
50388
50422
  const { createCssAndCx } = /* @__PURE__ */ (() => {
50389
50423
  function merge2(registered, css, className) {
@@ -50398,14 +50432,14 @@ const { createCssAndCx } = /* @__PURE__ */ (() => {
50398
50432
  const { cache } = params;
50399
50433
  const css = (...args) => {
50400
50434
  const serialized = serializeStyles(args, cache.registered);
50401
- insertStyles(cache, serialized);
50435
+ insertStyles(cache, serialized, false);
50402
50436
  const className = `${cache.key}-${serialized.name}`;
50403
50437
  scope: {
50404
- const arg = args[0];
50405
- if (!matchCSSObject(arg)) {
50438
+ const arg2 = args[0];
50439
+ if (!matchCSSObject(arg2)) {
50406
50440
  break scope;
50407
50441
  }
50408
- increaseSpecificityToTakePrecedenceOverMediaQueries.saveClassNameCSSObjectMapping(cache, className, arg);
50442
+ increaseSpecificityToTakePrecedenceOverMediaQueries.saveClassNameCSSObjectMapping(cache, className, arg2);
50409
50443
  }
50410
50444
  return className;
50411
50445
  };
@@ -50556,7 +50590,7 @@ function createMakeStyles(params) {
50556
50590
  const { useTheme: useTheme2, cache: cacheProvidedAtInception } = params;
50557
50591
  const { useCache } = createUseCache({ cacheProvidedAtInception });
50558
50592
  const { useCssAndCx } = createUseCssAndCx({ useCache });
50559
- function makeStyles(params2) {
50593
+ function makeStyles2(params2) {
50560
50594
  const { name: nameOrWrappedName, uniqId = `${counter$1++}` } = params2 !== null && params2 !== void 0 ? params2 : {};
50561
50595
  const name = typeof nameOrWrappedName !== "object" ? nameOrWrappedName : Object.keys(nameOrWrappedName)[0];
50562
50596
  return function(cssObjectByRuleNameOrGetCssObjectByRuleName) {
@@ -50632,7 +50666,7 @@ function createMakeStyles(params) {
50632
50666
  const { css, cx } = useCssAndCx();
50633
50667
  return { theme, css, cx };
50634
50668
  }
50635
- return { makeStyles, useStyles: useStyles2 };
50669
+ return { makeStyles: makeStyles2, useStyles: useStyles2 };
50636
50670
  }
50637
50671
  const reactContext = createContext(void 0);
50638
50672
  const { createUseCache } = /* @__PURE__ */ (() => {
@@ -50667,7 +50701,7 @@ function capitalize$1(str) {
50667
50701
  }
50668
50702
  function createWithStyles(params) {
50669
50703
  const { useTheme: useTheme2, cache } = params;
50670
- const { makeStyles } = createMakeStyles({ useTheme: useTheme2, cache });
50704
+ const { makeStyles: makeStyles2 } = createMakeStyles({ useTheme: useTheme2, cache });
50671
50705
  function withStyles(Component, cssObjectByRuleNameOrGetCssObjectByRuleName, params2) {
50672
50706
  const Component_ = typeof Component === "string" ? (() => {
50673
50707
  const tag = Component;
@@ -50712,7 +50746,7 @@ function createWithStyles(params) {
50712
50746
  name2 = name2.replace(/[^a-zA-Z0-9-_]/g, "_");
50713
50747
  return name2;
50714
50748
  })();
50715
- const useStyles2 = makeStyles({ ...params2, name })(typeof cssObjectByRuleNameOrGetCssObjectByRuleName === "function" ? (theme, props, classes) => incorporateMediaQueries(cssObjectByRuleNameOrGetCssObjectByRuleName(theme, props, classes)) : incorporateMediaQueries(cssObjectByRuleNameOrGetCssObjectByRuleName));
50749
+ const useStyles2 = makeStyles2({ ...params2, name })(typeof cssObjectByRuleNameOrGetCssObjectByRuleName === "function" ? (theme, props, classes) => incorporateMediaQueries(cssObjectByRuleNameOrGetCssObjectByRuleName(theme, props, classes)) : incorporateMediaQueries(cssObjectByRuleNameOrGetCssObjectByRuleName));
50716
50750
  function getHasNonRootClasses(classes) {
50717
50751
  for (const name2 in classes) {
50718
50752
  if (name2 === "root") {
@@ -51018,6 +51052,274 @@ const { tss: tss$1 } = createTss({
51018
51052
  });
51019
51053
  tss$1.create({});
51020
51054
  const THEME_ID = "$$material";
51055
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
51056
+ var isPropValid = /* @__PURE__ */ memoize$1(
51057
+ function(prop) {
51058
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
51059
+ }
51060
+ /* Z+1 */
51061
+ );
51062
+ var testOmitPropsOnStringTag = isPropValid;
51063
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
51064
+ return key !== "theme";
51065
+ };
51066
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
51067
+ return typeof tag === "string" && // 96 is one less than the char code
51068
+ // for "a" so this is checking that
51069
+ // it's a lowercase character
51070
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
51071
+ };
51072
+ var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
51073
+ var shouldForwardProp2;
51074
+ if (options) {
51075
+ var optionsShouldForwardProp = options.shouldForwardProp;
51076
+ shouldForwardProp2 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
51077
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
51078
+ } : optionsShouldForwardProp;
51079
+ }
51080
+ if (typeof shouldForwardProp2 !== "function" && isReal) {
51081
+ shouldForwardProp2 = tag.__emotion_forwardProp;
51082
+ }
51083
+ return shouldForwardProp2;
51084
+ };
51085
+ var Insertion = function Insertion2(_ref) {
51086
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag;
51087
+ registerStyles(cache, serialized, isStringTag2);
51088
+ useInsertionEffectAlwaysWithSyncFallback(function() {
51089
+ return insertStyles(cache, serialized, isStringTag2);
51090
+ });
51091
+ return null;
51092
+ };
51093
+ var createStyled$1 = function createStyled(tag, options) {
51094
+ var isReal = tag.__emotion_real === tag;
51095
+ var baseTag = isReal && tag.__emotion_base || tag;
51096
+ var identifierName;
51097
+ var targetClassName;
51098
+ if (options !== void 0) {
51099
+ identifierName = options.label;
51100
+ targetClassName = options.target;
51101
+ }
51102
+ var shouldForwardProp2 = composeShouldForwardProps(tag, options, isReal);
51103
+ var defaultShouldForwardProp = shouldForwardProp2 || getDefaultShouldForwardProp(baseTag);
51104
+ var shouldUseAs = !defaultShouldForwardProp("as");
51105
+ return function() {
51106
+ var args = arguments;
51107
+ var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
51108
+ if (identifierName !== void 0) {
51109
+ styles.push("label:" + identifierName + ";");
51110
+ }
51111
+ if (args[0] == null || args[0].raw === void 0) {
51112
+ styles.push.apply(styles, args);
51113
+ } else {
51114
+ var templateStringsArr = args[0];
51115
+ styles.push(templateStringsArr[0]);
51116
+ var len = args.length;
51117
+ var i2 = 1;
51118
+ for (; i2 < len; i2++) {
51119
+ styles.push(args[i2], templateStringsArr[i2]);
51120
+ }
51121
+ }
51122
+ var Styled = withEmotionCache(function(props, cache, ref) {
51123
+ var FinalTag = shouldUseAs && props.as || baseTag;
51124
+ var className = "";
51125
+ var classInterpolations = [];
51126
+ var mergedProps = props;
51127
+ if (props.theme == null) {
51128
+ mergedProps = {};
51129
+ for (var key in props) {
51130
+ mergedProps[key] = props[key];
51131
+ }
51132
+ mergedProps.theme = React.useContext(ThemeContext);
51133
+ }
51134
+ if (typeof props.className === "string") {
51135
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
51136
+ } else if (props.className != null) {
51137
+ className = props.className + " ";
51138
+ }
51139
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
51140
+ className += cache.key + "-" + serialized.name;
51141
+ if (targetClassName !== void 0) {
51142
+ className += " " + targetClassName;
51143
+ }
51144
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp2 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
51145
+ var newProps = {};
51146
+ for (var _key in props) {
51147
+ if (shouldUseAs && _key === "as") continue;
51148
+ if (finalShouldForwardProp(_key)) {
51149
+ newProps[_key] = props[_key];
51150
+ }
51151
+ }
51152
+ newProps.className = className;
51153
+ if (ref) {
51154
+ newProps.ref = ref;
51155
+ }
51156
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Insertion, {
51157
+ cache,
51158
+ serialized,
51159
+ isStringTag: typeof FinalTag === "string"
51160
+ }), /* @__PURE__ */ React.createElement(FinalTag, newProps));
51161
+ });
51162
+ Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
51163
+ Styled.defaultProps = tag.defaultProps;
51164
+ Styled.__emotion_real = Styled;
51165
+ Styled.__emotion_base = baseTag;
51166
+ Styled.__emotion_styles = styles;
51167
+ Styled.__emotion_forwardProp = shouldForwardProp2;
51168
+ Object.defineProperty(Styled, "toString", {
51169
+ value: function value() {
51170
+ return "." + targetClassName;
51171
+ }
51172
+ });
51173
+ Styled.withComponent = function(nextTag, nextOptions) {
51174
+ var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
51175
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
51176
+ }));
51177
+ return newStyled2.apply(void 0, styles);
51178
+ };
51179
+ return Styled;
51180
+ };
51181
+ };
51182
+ var tags = [
51183
+ "a",
51184
+ "abbr",
51185
+ "address",
51186
+ "area",
51187
+ "article",
51188
+ "aside",
51189
+ "audio",
51190
+ "b",
51191
+ "base",
51192
+ "bdi",
51193
+ "bdo",
51194
+ "big",
51195
+ "blockquote",
51196
+ "body",
51197
+ "br",
51198
+ "button",
51199
+ "canvas",
51200
+ "caption",
51201
+ "cite",
51202
+ "code",
51203
+ "col",
51204
+ "colgroup",
51205
+ "data",
51206
+ "datalist",
51207
+ "dd",
51208
+ "del",
51209
+ "details",
51210
+ "dfn",
51211
+ "dialog",
51212
+ "div",
51213
+ "dl",
51214
+ "dt",
51215
+ "em",
51216
+ "embed",
51217
+ "fieldset",
51218
+ "figcaption",
51219
+ "figure",
51220
+ "footer",
51221
+ "form",
51222
+ "h1",
51223
+ "h2",
51224
+ "h3",
51225
+ "h4",
51226
+ "h5",
51227
+ "h6",
51228
+ "head",
51229
+ "header",
51230
+ "hgroup",
51231
+ "hr",
51232
+ "html",
51233
+ "i",
51234
+ "iframe",
51235
+ "img",
51236
+ "input",
51237
+ "ins",
51238
+ "kbd",
51239
+ "keygen",
51240
+ "label",
51241
+ "legend",
51242
+ "li",
51243
+ "link",
51244
+ "main",
51245
+ "map",
51246
+ "mark",
51247
+ "marquee",
51248
+ "menu",
51249
+ "menuitem",
51250
+ "meta",
51251
+ "meter",
51252
+ "nav",
51253
+ "noscript",
51254
+ "object",
51255
+ "ol",
51256
+ "optgroup",
51257
+ "option",
51258
+ "output",
51259
+ "p",
51260
+ "param",
51261
+ "picture",
51262
+ "pre",
51263
+ "progress",
51264
+ "q",
51265
+ "rp",
51266
+ "rt",
51267
+ "ruby",
51268
+ "s",
51269
+ "samp",
51270
+ "script",
51271
+ "section",
51272
+ "select",
51273
+ "small",
51274
+ "source",
51275
+ "span",
51276
+ "strong",
51277
+ "style",
51278
+ "sub",
51279
+ "summary",
51280
+ "sup",
51281
+ "table",
51282
+ "tbody",
51283
+ "td",
51284
+ "textarea",
51285
+ "tfoot",
51286
+ "th",
51287
+ "thead",
51288
+ "time",
51289
+ "title",
51290
+ "tr",
51291
+ "track",
51292
+ "u",
51293
+ "ul",
51294
+ "var",
51295
+ "video",
51296
+ "wbr",
51297
+ // SVG
51298
+ "circle",
51299
+ "clipPath",
51300
+ "defs",
51301
+ "ellipse",
51302
+ "foreignObject",
51303
+ "g",
51304
+ "image",
51305
+ "line",
51306
+ "linearGradient",
51307
+ "mask",
51308
+ "path",
51309
+ "pattern",
51310
+ "polygon",
51311
+ "polyline",
51312
+ "radialGradient",
51313
+ "rect",
51314
+ "stop",
51315
+ "svg",
51316
+ "text",
51317
+ "tspan"
51318
+ ];
51319
+ var newStyled = createStyled$1.bind(null);
51320
+ tags.forEach(function(tagName) {
51321
+ newStyled[tagName] = newStyled(tagName);
51322
+ });
51021
51323
  var jsxRuntime = { exports: {} };
51022
51324
  var reactJsxRuntime_development = {};
51023
51325
  var hasRequiredReactJsxRuntime_development;
@@ -51114,7 +51416,7 @@ function requireReactJsxRuntime_development() {
51114
51416
  }
51115
51417
  return false;
51116
51418
  }
51117
- function getWrappedName(outerType, innerType, wrapperName) {
51419
+ function getWrappedName2(outerType, innerType, wrapperName) {
51118
51420
  var displayName = outerType.displayName;
51119
51421
  if (displayName) {
51120
51422
  return displayName;
@@ -51163,7 +51465,7 @@ function requireReactJsxRuntime_development() {
51163
51465
  var provider = type;
51164
51466
  return getContextName(provider._context) + ".Provider";
51165
51467
  case REACT_FORWARD_REF_TYPE:
51166
- return getWrappedName(type, type.render, "ForwardRef");
51468
+ return getWrappedName2(type, type.render, "ForwardRef");
51167
51469
  case REACT_MEMO_TYPE:
51168
51470
  var outerName = type.displayName || null;
51169
51471
  if (outerName !== null) {
@@ -51915,6 +52217,30 @@ function requireJsxRuntime() {
51915
52217
  return jsxRuntime.exports;
51916
52218
  }
51917
52219
  var jsxRuntimeExports = requireJsxRuntime();
52220
+ function styled$1(tag, options) {
52221
+ const stylesFactory = newStyled(tag, options);
52222
+ {
52223
+ return (...styles) => {
52224
+ const component = typeof tag === "string" ? `"${tag}"` : "component";
52225
+ if (styles.length === 0) {
52226
+ console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
52227
+ } else if (styles.some((style2) => style2 === void 0)) {
52228
+ console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
52229
+ }
52230
+ return stylesFactory(...styles);
52231
+ };
52232
+ }
52233
+ }
52234
+ function internal_mutateStyles(tag, processor) {
52235
+ if (Array.isArray(tag.__emotion_styles)) {
52236
+ tag.__emotion_styles = processor(tag.__emotion_styles);
52237
+ }
52238
+ }
52239
+ const wrapper = [];
52240
+ function internal_serializeStyles(styles) {
52241
+ wrapper[0] = styles;
52242
+ return serializeStyles(wrapper);
52243
+ }
51918
52244
  var reactIs = { exports: {} };
51919
52245
  var reactIs_development = {};
51920
52246
  var hasRequiredReactIs_development;
@@ -52367,11 +52693,11 @@ function style$1(options) {
52367
52693
  }
52368
52694
  function memoize(fn) {
52369
52695
  const cache = {};
52370
- return (arg) => {
52371
- if (cache[arg] === void 0) {
52372
- cache[arg] = fn(arg);
52696
+ return (arg2) => {
52697
+ if (cache[arg2] === void 0) {
52698
+ cache[arg2] = fn(arg2);
52373
52699
  }
52374
- return cache[arg];
52700
+ return cache[arg2];
52375
52701
  };
52376
52702
  }
52377
52703
  const properties = {
@@ -53040,8 +53366,8 @@ function objectsHaveSameKeys(...objects) {
53040
53366
  const union = new Set(allKeys);
53041
53367
  return objects.every((object) => union.size === Object.keys(object).length);
53042
53368
  }
53043
- function callIfFn(maybeFn, arg) {
53044
- return typeof maybeFn === "function" ? maybeFn(arg) : maybeFn;
53369
+ function callIfFn(maybeFn, arg2) {
53370
+ return typeof maybeFn === "function" ? maybeFn(arg2) : maybeFn;
53045
53371
  }
53046
53372
  function unstable_createStyleFunctionSx() {
53047
53373
  function getThemeValue(prop, val, theme, config) {
@@ -53205,17 +53531,66 @@ function createTheme$1(options = {}, ...args) {
53205
53531
  };
53206
53532
  return muiTheme;
53207
53533
  }
53208
- function isObjectEmpty(obj) {
53534
+ function isObjectEmpty$1(obj) {
53209
53535
  return Object.keys(obj).length === 0;
53210
53536
  }
53211
53537
  function useTheme$2(defaultTheme2 = null) {
53212
53538
  const contextTheme = React.useContext(ThemeContext);
53213
- return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
53539
+ return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
53214
53540
  }
53215
- const systemDefaultTheme = createTheme$1();
53216
- function useTheme$1(defaultTheme2 = systemDefaultTheme) {
53541
+ const systemDefaultTheme$1 = createTheme$1();
53542
+ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
53217
53543
  return useTheme$2(defaultTheme2);
53218
53544
  }
53545
+ const splitProps = (props) => {
53546
+ const result = {
53547
+ systemProps: {},
53548
+ otherProps: {}
53549
+ };
53550
+ const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
53551
+ Object.keys(props).forEach((prop) => {
53552
+ if (config[prop]) {
53553
+ result.systemProps[prop] = props[prop];
53554
+ } else {
53555
+ result.otherProps[prop] = props[prop];
53556
+ }
53557
+ });
53558
+ return result;
53559
+ };
53560
+ function extendSxProp$1(props) {
53561
+ const {
53562
+ sx: inSx,
53563
+ ...other
53564
+ } = props;
53565
+ const {
53566
+ systemProps,
53567
+ otherProps
53568
+ } = splitProps(other);
53569
+ let finalSx;
53570
+ if (Array.isArray(inSx)) {
53571
+ finalSx = [systemProps, ...inSx];
53572
+ } else if (typeof inSx === "function") {
53573
+ finalSx = (...args) => {
53574
+ const result = inSx(...args);
53575
+ if (!isPlainObject(result)) {
53576
+ return systemProps;
53577
+ }
53578
+ return {
53579
+ ...systemProps,
53580
+ ...result
53581
+ };
53582
+ };
53583
+ } else {
53584
+ finalSx = {
53585
+ ...systemProps,
53586
+ ...inSx
53587
+ };
53588
+ }
53589
+ return {
53590
+ ...otherProps,
53591
+ sx: finalSx
53592
+ };
53593
+ }
53219
53594
  const defaultGenerator = (componentName) => componentName;
53220
53595
  const createClassNameGenerator = () => {
53221
53596
  let generate = defaultGenerator;
@@ -53232,6 +53607,19 @@ const createClassNameGenerator = () => {
53232
53607
  };
53233
53608
  };
53234
53609
  const ClassNameGenerator = createClassNameGenerator();
53610
+ function r(e) {
53611
+ var t, f, n = "";
53612
+ if ("string" == typeof e || "number" == typeof e) n += e;
53613
+ else if ("object" == typeof e) if (Array.isArray(e)) {
53614
+ var o = e.length;
53615
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
53616
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
53617
+ return n;
53618
+ }
53619
+ function clsx() {
53620
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
53621
+ return n;
53622
+ }
53235
53623
  const globalStateClasses = {
53236
53624
  active: "active",
53237
53625
  checked: "checked",
@@ -53250,6 +53638,321 @@ function generateUtilityClass(componentName, slot, globalStatePrefix = "Mui") {
53250
53638
  const globalStateClass = globalStateClasses[slot];
53251
53639
  return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;
53252
53640
  }
53641
+ function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui") {
53642
+ const result = {};
53643
+ slots.forEach((slot) => {
53644
+ result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
53645
+ });
53646
+ return result;
53647
+ }
53648
+ function getFunctionComponentName(Component, fallback = "") {
53649
+ return Component.displayName || Component.name || fallback;
53650
+ }
53651
+ function getWrappedName(outerType, innerType, wrapperName) {
53652
+ const functionName = getFunctionComponentName(innerType);
53653
+ return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName);
53654
+ }
53655
+ function getDisplayName(Component) {
53656
+ if (Component == null) {
53657
+ return void 0;
53658
+ }
53659
+ if (typeof Component === "string") {
53660
+ return Component;
53661
+ }
53662
+ if (typeof Component === "function") {
53663
+ return getFunctionComponentName(Component, "Component");
53664
+ }
53665
+ if (typeof Component === "object") {
53666
+ switch (Component.$$typeof) {
53667
+ case reactIsExports.ForwardRef:
53668
+ return getWrappedName(Component, Component.render, "ForwardRef");
53669
+ case reactIsExports.Memo:
53670
+ return getWrappedName(Component, Component.type, "memo");
53671
+ default:
53672
+ return void 0;
53673
+ }
53674
+ }
53675
+ return void 0;
53676
+ }
53677
+ function preprocessStyles(input) {
53678
+ const {
53679
+ variants,
53680
+ ...style2
53681
+ } = input;
53682
+ const result = {
53683
+ variants,
53684
+ style: internal_serializeStyles(style2),
53685
+ isProcessed: true
53686
+ };
53687
+ if (result.style === style2) {
53688
+ return result;
53689
+ }
53690
+ if (variants) {
53691
+ variants.forEach((variant) => {
53692
+ if (typeof variant.style !== "function") {
53693
+ variant.style = internal_serializeStyles(variant.style);
53694
+ }
53695
+ });
53696
+ }
53697
+ return result;
53698
+ }
53699
+ const systemDefaultTheme = createTheme$1();
53700
+ function shouldForwardProp(prop) {
53701
+ return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
53702
+ }
53703
+ function defaultOverridesResolver(slot) {
53704
+ if (!slot) {
53705
+ return null;
53706
+ }
53707
+ return (_props, styles) => styles[slot];
53708
+ }
53709
+ function attachTheme(props, themeId, defaultTheme2) {
53710
+ props.theme = isObjectEmpty(props.theme) ? defaultTheme2 : props.theme[themeId] || props.theme;
53711
+ }
53712
+ function processStyle(props, style2) {
53713
+ const resolvedStyle = typeof style2 === "function" ? style2(props) : style2;
53714
+ if (Array.isArray(resolvedStyle)) {
53715
+ return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
53716
+ }
53717
+ if (Array.isArray(resolvedStyle?.variants)) {
53718
+ let rootStyle;
53719
+ if (resolvedStyle.isProcessed) {
53720
+ rootStyle = resolvedStyle.style;
53721
+ } else {
53722
+ const {
53723
+ variants,
53724
+ ...otherStyles
53725
+ } = resolvedStyle;
53726
+ rootStyle = otherStyles;
53727
+ }
53728
+ return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
53729
+ }
53730
+ if (resolvedStyle?.isProcessed) {
53731
+ return resolvedStyle.style;
53732
+ }
53733
+ return resolvedStyle;
53734
+ }
53735
+ function processStyleVariants(props, variants, results = []) {
53736
+ let mergedState;
53737
+ variantLoop: for (let i2 = 0; i2 < variants.length; i2 += 1) {
53738
+ const variant = variants[i2];
53739
+ if (typeof variant.props === "function") {
53740
+ mergedState ??= {
53741
+ ...props,
53742
+ ...props.ownerState,
53743
+ ownerState: props.ownerState
53744
+ };
53745
+ if (!variant.props(mergedState)) {
53746
+ continue;
53747
+ }
53748
+ } else {
53749
+ for (const key in variant.props) {
53750
+ if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
53751
+ continue variantLoop;
53752
+ }
53753
+ }
53754
+ }
53755
+ if (typeof variant.style === "function") {
53756
+ mergedState ??= {
53757
+ ...props,
53758
+ ...props.ownerState,
53759
+ ownerState: props.ownerState
53760
+ };
53761
+ results.push(variant.style(mergedState));
53762
+ } else {
53763
+ results.push(variant.style);
53764
+ }
53765
+ }
53766
+ return results;
53767
+ }
53768
+ function createStyled2(input = {}) {
53769
+ const {
53770
+ themeId,
53771
+ defaultTheme: defaultTheme2 = systemDefaultTheme,
53772
+ rootShouldForwardProp: rootShouldForwardProp2 = shouldForwardProp,
53773
+ slotShouldForwardProp: slotShouldForwardProp2 = shouldForwardProp
53774
+ } = input;
53775
+ function styleAttachTheme(props) {
53776
+ attachTheme(props, themeId, defaultTheme2);
53777
+ }
53778
+ const styled2 = (tag, inputOptions = {}) => {
53779
+ internal_mutateStyles(tag, (styles) => styles.filter((style2) => style2 !== styleFunctionSx));
53780
+ const {
53781
+ name: componentName,
53782
+ slot: componentSlot,
53783
+ skipVariantsResolver: inputSkipVariantsResolver,
53784
+ skipSx: inputSkipSx,
53785
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
53786
+ // For more details: https://github.com/mui/material-ui/pull/37908
53787
+ overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),
53788
+ ...options
53789
+ } = inputOptions;
53790
+ const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : (
53791
+ // TODO v6: remove `Root` in the next major release
53792
+ // For more details: https://github.com/mui/material-ui/pull/37908
53793
+ componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false
53794
+ );
53795
+ const skipSx = inputSkipSx || false;
53796
+ let shouldForwardPropOption = shouldForwardProp;
53797
+ if (componentSlot === "Root" || componentSlot === "root") {
53798
+ shouldForwardPropOption = rootShouldForwardProp2;
53799
+ } else if (componentSlot) {
53800
+ shouldForwardPropOption = slotShouldForwardProp2;
53801
+ } else if (isStringTag(tag)) {
53802
+ shouldForwardPropOption = void 0;
53803
+ }
53804
+ const defaultStyledResolver = styled$1(tag, {
53805
+ shouldForwardProp: shouldForwardPropOption,
53806
+ label: generateStyledLabel(componentName, componentSlot),
53807
+ ...options
53808
+ });
53809
+ const transformStyle = (style2) => {
53810
+ if (typeof style2 === "function" && style2.__emotion_real !== style2) {
53811
+ return function styleFunctionProcessor(props) {
53812
+ return processStyle(props, style2);
53813
+ };
53814
+ }
53815
+ if (isPlainObject(style2)) {
53816
+ const serialized = preprocessStyles(style2);
53817
+ if (!serialized.variants) {
53818
+ return serialized.style;
53819
+ }
53820
+ return function styleObjectProcessor(props) {
53821
+ return processStyle(props, serialized);
53822
+ };
53823
+ }
53824
+ return style2;
53825
+ };
53826
+ const muiStyledResolver = (...expressionsInput) => {
53827
+ const expressionsHead = [];
53828
+ const expressionsBody = expressionsInput.map(transformStyle);
53829
+ const expressionsTail = [];
53830
+ expressionsHead.push(styleAttachTheme);
53831
+ if (componentName && overridesResolver) {
53832
+ expressionsTail.push(function styleThemeOverrides(props) {
53833
+ const theme = props.theme;
53834
+ const styleOverrides = theme.components?.[componentName]?.styleOverrides;
53835
+ if (!styleOverrides) {
53836
+ return null;
53837
+ }
53838
+ const resolvedStyleOverrides = {};
53839
+ for (const slotKey in styleOverrides) {
53840
+ resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey]);
53841
+ }
53842
+ return overridesResolver(props, resolvedStyleOverrides);
53843
+ });
53844
+ }
53845
+ if (componentName && !skipVariantsResolver) {
53846
+ expressionsTail.push(function styleThemeVariants(props) {
53847
+ const theme = props.theme;
53848
+ const themeVariants = theme?.components?.[componentName]?.variants;
53849
+ if (!themeVariants) {
53850
+ return null;
53851
+ }
53852
+ return processStyleVariants(props, themeVariants);
53853
+ });
53854
+ }
53855
+ if (!skipSx) {
53856
+ expressionsTail.push(styleFunctionSx);
53857
+ }
53858
+ if (Array.isArray(expressionsBody[0])) {
53859
+ const inputStrings = expressionsBody.shift();
53860
+ const placeholdersHead = new Array(expressionsHead.length).fill("");
53861
+ const placeholdersTail = new Array(expressionsTail.length).fill("");
53862
+ let outputStrings;
53863
+ {
53864
+ outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];
53865
+ outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];
53866
+ }
53867
+ expressionsHead.unshift(outputStrings);
53868
+ }
53869
+ const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];
53870
+ const Component = defaultStyledResolver(...expressions);
53871
+ if (tag.muiName) {
53872
+ Component.muiName = tag.muiName;
53873
+ }
53874
+ {
53875
+ Component.displayName = generateDisplayName(componentName, componentSlot, tag);
53876
+ }
53877
+ return Component;
53878
+ };
53879
+ if (defaultStyledResolver.withConfig) {
53880
+ muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
53881
+ }
53882
+ return muiStyledResolver;
53883
+ };
53884
+ return styled2;
53885
+ }
53886
+ function generateDisplayName(componentName, componentSlot, tag) {
53887
+ if (componentName) {
53888
+ return `${componentName}${capitalize(componentSlot || "")}`;
53889
+ }
53890
+ return `Styled(${getDisplayName(tag)})`;
53891
+ }
53892
+ function generateStyledLabel(componentName, componentSlot) {
53893
+ let label;
53894
+ {
53895
+ if (componentName) {
53896
+ label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
53897
+ }
53898
+ }
53899
+ return label;
53900
+ }
53901
+ function isObjectEmpty(object) {
53902
+ for (const _ in object) {
53903
+ return false;
53904
+ }
53905
+ return true;
53906
+ }
53907
+ function isStringTag(tag) {
53908
+ return typeof tag === "string" && // 96 is one less than the char code
53909
+ // for "a" so this is checking that
53910
+ // it's a lowercase character
53911
+ tag.charCodeAt(0) > 96;
53912
+ }
53913
+ function lowercaseFirstLetter(string) {
53914
+ if (!string) {
53915
+ return string;
53916
+ }
53917
+ return string.charAt(0).toLowerCase() + string.slice(1);
53918
+ }
53919
+ function resolveProps(defaultProps, props) {
53920
+ const output = {
53921
+ ...props
53922
+ };
53923
+ for (const key in defaultProps) {
53924
+ if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {
53925
+ const propName = key;
53926
+ if (propName === "components" || propName === "slots") {
53927
+ output[propName] = {
53928
+ ...defaultProps[propName],
53929
+ ...output[propName]
53930
+ };
53931
+ } else if (propName === "componentsProps" || propName === "slotProps") {
53932
+ const defaultSlotProps = defaultProps[propName];
53933
+ const slotProps = props[propName];
53934
+ if (!slotProps) {
53935
+ output[propName] = defaultSlotProps || {};
53936
+ } else if (!defaultSlotProps) {
53937
+ output[propName] = slotProps;
53938
+ } else {
53939
+ output[propName] = {
53940
+ ...slotProps
53941
+ };
53942
+ for (const slotKey in defaultSlotProps) {
53943
+ if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
53944
+ const slotPropName = slotKey;
53945
+ output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
53946
+ }
53947
+ }
53948
+ }
53949
+ } else if (output[propName] === void 0) {
53950
+ output[propName] = defaultProps[propName];
53951
+ }
53952
+ }
53953
+ }
53954
+ return output;
53955
+ }
53253
53956
  const useEnhancedEffect$1 = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
53254
53957
  function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
53255
53958
  return Math.max(min, Math.min(val, max));
@@ -53470,6 +54173,69 @@ function exactProp(propTypes2) {
53470
54173
  }
53471
54174
  };
53472
54175
  }
54176
+ const PropsContext = /* @__PURE__ */ React.createContext(void 0);
54177
+ ({
54178
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
54179
+ // │ These PropTypes are generated from the TypeScript type definitions. │
54180
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
54181
+ // └─────────────────────────────────────────────────────────────────────┘
54182
+ /**
54183
+ * @ignore
54184
+ */
54185
+ children: PropTypes.node,
54186
+ /**
54187
+ * @ignore
54188
+ */
54189
+ value: PropTypes.object
54190
+ });
54191
+ function getThemeProps(params) {
54192
+ const {
54193
+ theme,
54194
+ name,
54195
+ props
54196
+ } = params;
54197
+ if (!theme || !theme.components || !theme.components[name]) {
54198
+ return props;
54199
+ }
54200
+ const config = theme.components[name];
54201
+ if (config.defaultProps) {
54202
+ return resolveProps(config.defaultProps, props);
54203
+ }
54204
+ if (!config.styleOverrides && !config.variants) {
54205
+ return resolveProps(config, props);
54206
+ }
54207
+ return props;
54208
+ }
54209
+ function useDefaultProps$1({
54210
+ props,
54211
+ name
54212
+ }) {
54213
+ const ctx = React.useContext(PropsContext);
54214
+ return getThemeProps({
54215
+ props,
54216
+ name,
54217
+ theme: {
54218
+ components: ctx
54219
+ }
54220
+ });
54221
+ }
54222
+ const arg = {
54223
+ theme: void 0
54224
+ };
54225
+ function unstable_memoTheme(styleFn) {
54226
+ let lastValue;
54227
+ let lastTheme;
54228
+ return function styleMemoized(props) {
54229
+ let value = lastValue;
54230
+ if (value === void 0 || props.theme !== lastTheme) {
54231
+ arg.theme = props.theme;
54232
+ value = preprocessStyles(styleFn(arg));
54233
+ lastValue = value;
54234
+ lastTheme = props.theme;
54235
+ }
54236
+ return value;
54237
+ };
54238
+ }
53473
54239
  function createGetCssVar$1(prefix2 = "") {
53474
54240
  function appendVar(...vars) {
53475
54241
  if (!vars.length) {
@@ -53735,6 +54501,26 @@ function createGetColorSchemeSelector(selector) {
53735
54501
  return "&";
53736
54502
  };
53737
54503
  }
54504
+ function composeClasses(slots, getUtilityClass, classes = void 0) {
54505
+ const output = {};
54506
+ for (const slotName in slots) {
54507
+ const slot = slots[slotName];
54508
+ let buffer = "";
54509
+ let start = true;
54510
+ for (let i2 = 0; i2 < slot.length; i2 += 1) {
54511
+ const value = slot[i2];
54512
+ if (value) {
54513
+ buffer += (start === true ? "" : " ") + getUtilityClass(value);
54514
+ start = false;
54515
+ if (classes && classes[value]) {
54516
+ buffer += " " + classes[value];
54517
+ }
54518
+ }
54519
+ }
54520
+ output[slotName] = buffer;
54521
+ }
54522
+ return output;
54523
+ }
53738
54524
  const common = {
53739
54525
  black: "#000",
53740
54526
  white: "#fff"
@@ -54161,17 +54947,17 @@ function createTypography(palette, typography) {
54161
54947
  }
54162
54948
  }
54163
54949
  const coef = fontSize / 14;
54164
- const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
54165
- const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({
54950
+ const pxToRem = pxToRem2 || ((size2) => `${size2 / htmlFontSize * coef}rem`);
54951
+ const buildVariant = (fontWeight, size2, lineHeight, letterSpacing, casing) => ({
54166
54952
  fontFamily,
54167
54953
  fontWeight,
54168
- fontSize: pxToRem(size),
54954
+ fontSize: pxToRem(size2),
54169
54955
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
54170
54956
  lineHeight,
54171
54957
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
54172
54958
  // across font-families can cause issues with the kerning.
54173
54959
  ...fontFamily === defaultFontFamily ? {
54174
- letterSpacing: `${round(letterSpacing / size)}em`
54960
+ letterSpacing: `${round(letterSpacing / size2)}em`
54175
54961
  } : {},
54176
54962
  ...casing,
54177
54963
  ...allVariants
@@ -54961,7 +55747,16 @@ function useTheme() {
54961
55747
  }
54962
55748
  return theme[THEME_ID] || theme;
54963
55749
  }
54964
- createMakeAndWithStyles({
55750
+ function slotShouldForwardProp(prop) {
55751
+ return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
55752
+ }
55753
+ const rootShouldForwardProp = (prop) => slotShouldForwardProp(prop) && prop !== "classes";
55754
+ const styled = createStyled2({
55755
+ themeId: THEME_ID,
55756
+ defaultTheme,
55757
+ rootShouldForwardProp
55758
+ });
55759
+ const { makeStyles } = createMakeAndWithStyles({
54965
55760
  useTheme
54966
55761
  });
54967
55762
  const { tss } = createTss({
@@ -54972,6 +55767,27 @@ const { tss } = createTss({
54972
55767
  "usePlugin": useMuiThemeStyleOverridesPlugin
54973
55768
  });
54974
55769
  const useStyles = tss.create({});
55770
+ function internal_createExtendSxProp() {
55771
+ return extendSxProp$1;
55772
+ }
55773
+ const memoTheme = unstable_memoTheme;
55774
+ ({
55775
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
55776
+ // │ These PropTypes are generated from the TypeScript type definitions. │
55777
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
55778
+ // └─────────────────────────────────────────────────────────────────────┘
55779
+ /**
55780
+ * @ignore
55781
+ */
55782
+ children: PropTypes.node,
55783
+ /**
55784
+ * @ignore
55785
+ */
55786
+ value: PropTypes.object.isRequired
55787
+ });
55788
+ function useDefaultProps(params) {
55789
+ return useDefaultProps$1(params);
55790
+ }
54975
55791
  function setRef$1(ref, value) {
54976
55792
  if (typeof ref === "function") {
54977
55793
  ref(value);
@@ -55027,6 +55843,23 @@ function useForkRef$1(...refs) {
55027
55843
  };
55028
55844
  }, refs);
55029
55845
  }
55846
+ function hasCorrectMainProperty(obj) {
55847
+ return typeof obj.main === "string";
55848
+ }
55849
+ function checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {
55850
+ if (!hasCorrectMainProperty(obj)) {
55851
+ return false;
55852
+ }
55853
+ for (const value of additionalPropertiesToCheck) {
55854
+ if (!obj.hasOwnProperty(value) || typeof obj[value] !== "string") {
55855
+ return false;
55856
+ }
55857
+ }
55858
+ return true;
55859
+ }
55860
+ function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
55861
+ return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);
55862
+ }
55030
55863
  function HTMLElementType(props, propName, componentName, location, propFullName) {
55031
55864
  const propValue = props[propName];
55032
55865
  const safePropName = propFullName || propName;
@@ -55109,6 +55942,263 @@ Portal.propTypes = {
55109
55942
  {
55110
55943
  Portal["propTypes"] = exactProp(Portal.propTypes);
55111
55944
  }
55945
+ function getTypographyUtilityClass(slot) {
55946
+ return generateUtilityClass("MuiTypography", slot);
55947
+ }
55948
+ generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
55949
+ const v6Colors = {
55950
+ primary: true,
55951
+ secondary: true,
55952
+ error: true,
55953
+ info: true,
55954
+ success: true,
55955
+ warning: true,
55956
+ textPrimary: true,
55957
+ textSecondary: true,
55958
+ textDisabled: true
55959
+ };
55960
+ const extendSxProp = internal_createExtendSxProp();
55961
+ const useUtilityClasses = (ownerState) => {
55962
+ const {
55963
+ align,
55964
+ gutterBottom,
55965
+ noWrap,
55966
+ paragraph,
55967
+ variant,
55968
+ classes
55969
+ } = ownerState;
55970
+ const slots = {
55971
+ root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
55972
+ };
55973
+ return composeClasses(slots, getTypographyUtilityClass, classes);
55974
+ };
55975
+ const TypographyRoot = styled("span", {
55976
+ name: "MuiTypography",
55977
+ slot: "Root",
55978
+ overridesResolver: (props, styles) => {
55979
+ const {
55980
+ ownerState
55981
+ } = props;
55982
+ return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== "inherit" && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
55983
+ }
55984
+ })(memoTheme(({
55985
+ theme
55986
+ }) => ({
55987
+ margin: 0,
55988
+ variants: [{
55989
+ props: {
55990
+ variant: "inherit"
55991
+ },
55992
+ style: {
55993
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
55994
+ font: "inherit",
55995
+ lineHeight: "inherit",
55996
+ letterSpacing: "inherit"
55997
+ }
55998
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
55999
+ props: {
56000
+ variant
56001
+ },
56002
+ style: value
56003
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
56004
+ props: {
56005
+ color: color2
56006
+ },
56007
+ style: {
56008
+ color: (theme.vars || theme).palette[color2].main
56009
+ }
56010
+ })), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
56011
+ props: {
56012
+ color: `text${capitalize(color2)}`
56013
+ },
56014
+ style: {
56015
+ color: (theme.vars || theme).palette.text[color2]
56016
+ }
56017
+ })), {
56018
+ props: ({
56019
+ ownerState
56020
+ }) => ownerState.align !== "inherit",
56021
+ style: {
56022
+ textAlign: "var(--Typography-textAlign)"
56023
+ }
56024
+ }, {
56025
+ props: ({
56026
+ ownerState
56027
+ }) => ownerState.noWrap,
56028
+ style: {
56029
+ overflow: "hidden",
56030
+ textOverflow: "ellipsis",
56031
+ whiteSpace: "nowrap"
56032
+ }
56033
+ }, {
56034
+ props: ({
56035
+ ownerState
56036
+ }) => ownerState.gutterBottom,
56037
+ style: {
56038
+ marginBottom: "0.35em"
56039
+ }
56040
+ }, {
56041
+ props: ({
56042
+ ownerState
56043
+ }) => ownerState.paragraph,
56044
+ style: {
56045
+ marginBottom: 16
56046
+ }
56047
+ }]
56048
+ })));
56049
+ const defaultVariantMapping = {
56050
+ h1: "h1",
56051
+ h2: "h2",
56052
+ h3: "h3",
56053
+ h4: "h4",
56054
+ h5: "h5",
56055
+ h6: "h6",
56056
+ subtitle1: "h6",
56057
+ subtitle2: "h6",
56058
+ body1: "p",
56059
+ body2: "p",
56060
+ inherit: "p"
56061
+ };
56062
+ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
56063
+ const {
56064
+ color: color2,
56065
+ ...themeProps
56066
+ } = useDefaultProps({
56067
+ props: inProps,
56068
+ name: "MuiTypography"
56069
+ });
56070
+ const isSxColor = !v6Colors[color2];
56071
+ const props = extendSxProp({
56072
+ ...themeProps,
56073
+ ...isSxColor && {
56074
+ color: color2
56075
+ }
56076
+ });
56077
+ const {
56078
+ align = "inherit",
56079
+ className,
56080
+ component,
56081
+ gutterBottom = false,
56082
+ noWrap = false,
56083
+ paragraph = false,
56084
+ variant = "body1",
56085
+ variantMapping = defaultVariantMapping,
56086
+ ...other
56087
+ } = props;
56088
+ const ownerState = {
56089
+ ...props,
56090
+ align,
56091
+ color: color2,
56092
+ className,
56093
+ component,
56094
+ gutterBottom,
56095
+ noWrap,
56096
+ paragraph,
56097
+ variant,
56098
+ variantMapping
56099
+ };
56100
+ const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
56101
+ const classes = useUtilityClasses(ownerState);
56102
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
56103
+ as: Component,
56104
+ ref,
56105
+ className: clsx(classes.root, className),
56106
+ ...other,
56107
+ ownerState,
56108
+ style: {
56109
+ ...align !== "inherit" && {
56110
+ "--Typography-textAlign": align
56111
+ },
56112
+ ...other.style
56113
+ }
56114
+ });
56115
+ });
56116
+ Typography.propTypes = {
56117
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
56118
+ // │ These PropTypes are generated from the TypeScript type definitions. │
56119
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
56120
+ // └─────────────────────────────────────────────────────────────────────┘
56121
+ /**
56122
+ * Set the text-align on the component.
56123
+ * @default 'inherit'
56124
+ */
56125
+ align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
56126
+ /**
56127
+ * The content of the component.
56128
+ */
56129
+ children: PropTypes.node,
56130
+ /**
56131
+ * Override or extend the styles applied to the component.
56132
+ */
56133
+ classes: PropTypes.object,
56134
+ /**
56135
+ * @ignore
56136
+ */
56137
+ className: PropTypes.string,
56138
+ /**
56139
+ * The color of the component.
56140
+ * It supports both default and custom theme colors, which can be added as shown in the
56141
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
56142
+ */
56143
+ color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
56144
+ /**
56145
+ * The component used for the root node.
56146
+ * Either a string to use a HTML element or a component.
56147
+ */
56148
+ component: PropTypes.elementType,
56149
+ /**
56150
+ * If `true`, the text will have a bottom margin.
56151
+ * @default false
56152
+ */
56153
+ gutterBottom: PropTypes.bool,
56154
+ /**
56155
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
56156
+ *
56157
+ * Note that text overflow can only happen with block or inline-block level elements
56158
+ * (the element needs to have a width in order to overflow).
56159
+ * @default false
56160
+ */
56161
+ noWrap: PropTypes.bool,
56162
+ /**
56163
+ * If `true`, the element will be a paragraph element.
56164
+ * @default false
56165
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
56166
+ */
56167
+ paragraph: PropTypes.bool,
56168
+ /**
56169
+ * @ignore
56170
+ */
56171
+ style: PropTypes.object,
56172
+ /**
56173
+ * The system prop that allows defining system overrides as well as additional CSS styles.
56174
+ */
56175
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
56176
+ /**
56177
+ * Applies the theme typography styles.
56178
+ * @default 'body1'
56179
+ */
56180
+ variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
56181
+ /**
56182
+ * The component maps the variant prop to a range of different HTML element types.
56183
+ * For instance, subtitle1 to `<h6>`.
56184
+ * If you wish to change that mapping, you can provide your own.
56185
+ * Alternatively, you can use the `component` prop.
56186
+ * @default {
56187
+ * h1: 'h1',
56188
+ * h2: 'h2',
56189
+ * h3: 'h3',
56190
+ * h4: 'h4',
56191
+ * h5: 'h5',
56192
+ * h6: 'h6',
56193
+ * subtitle1: 'h6',
56194
+ * subtitle2: 'h6',
56195
+ * body1: 'p',
56196
+ * body2: 'p',
56197
+ * inherit: 'p',
56198
+ * }
56199
+ */
56200
+ variantMapping: PropTypes.object
56201
+ };
55112
56202
  /**!
55113
56203
  * @fileOverview Kickass library to create and place poppers near their reference elements.
55114
56204
  * @version 1.16.1
@@ -55347,7 +56437,7 @@ var defineProperty = function(obj, key, value) {
55347
56437
  }
55348
56438
  return obj;
55349
56439
  };
55350
- var _extends = Object.assign || function(target) {
56440
+ var _extends$1 = Object.assign || function(target) {
55351
56441
  for (var i2 = 1; i2 < arguments.length; i2++) {
55352
56442
  var source = arguments[i2];
55353
56443
  for (var key in source) {
@@ -55359,7 +56449,7 @@ var _extends = Object.assign || function(target) {
55359
56449
  return target;
55360
56450
  };
55361
56451
  function getClientRect(offsets) {
55362
- return _extends({}, offsets, {
56452
+ return _extends$1({}, offsets, {
55363
56453
  right: offsets.left + offsets.width,
55364
56454
  bottom: offsets.top + offsets.height
55365
56455
  });
@@ -55543,7 +56633,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
55543
56633
  }
55544
56634
  };
55545
56635
  var sortedAreas = Object.keys(rects).map(function(key) {
55546
- return _extends({
56636
+ return _extends$1({
55547
56637
  key
55548
56638
  }, rects[key], {
55549
56639
  area: getArea(rects[key])
@@ -55851,9 +56941,9 @@ function computeStyle(data, options) {
55851
56941
  var attributes = {
55852
56942
  "x-placement": data.placement
55853
56943
  };
55854
- data.attributes = _extends({}, attributes, data.attributes);
55855
- data.styles = _extends({}, styles, data.styles);
55856
- data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
56944
+ data.attributes = _extends$1({}, attributes, data.attributes);
56945
+ data.styles = _extends$1({}, styles, data.styles);
56946
+ data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
55857
56947
  return data;
55858
56948
  }
55859
56949
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -55988,7 +57078,7 @@ function flip(data, options) {
55988
57078
  variation = getOppositeVariation(variation);
55989
57079
  }
55990
57080
  data.placement = placement + (variation ? "-" + variation : "");
55991
- data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
57081
+ data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
55992
57082
  data = runModifiers(data.instance.modifiers, data, "flip");
55993
57083
  }
55994
57084
  });
@@ -56031,13 +57121,13 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
56031
57121
  var rect = getClientRect(element);
56032
57122
  return rect[measurement] / 100 * value;
56033
57123
  } else if (unit === "vh" || unit === "vw") {
56034
- var size = void 0;
57124
+ var size2 = void 0;
56035
57125
  if (unit === "vh") {
56036
- size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
57126
+ size2 = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
56037
57127
  } else {
56038
- size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
57128
+ size2 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
56039
57129
  }
56040
- return size / 100 * value;
57130
+ return size2 / 100 * value;
56041
57131
  } else {
56042
57132
  return value;
56043
57133
  }
@@ -56147,7 +57237,7 @@ function preventOverflow(data, options) {
56147
57237
  };
56148
57238
  order.forEach(function(placement) {
56149
57239
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
56150
- popper = _extends({}, popper, check[side](placement));
57240
+ popper = _extends$1({}, popper, check[side](placement));
56151
57241
  });
56152
57242
  data.offsets.popper = popper;
56153
57243
  return data;
@@ -56165,7 +57255,7 @@ function shift(data) {
56165
57255
  start: defineProperty({}, side, reference[side]),
56166
57256
  end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
56167
57257
  };
56168
- data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
57258
+ data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
56169
57259
  }
56170
57260
  return data;
56171
57261
  }
@@ -56568,7 +57658,7 @@ var Popper = function() {
56568
57658
  return requestAnimationFrame(_this.update);
56569
57659
  };
56570
57660
  this.update = debounce(this.update.bind(this));
56571
- this.options = _extends({}, Popper2.Defaults, options);
57661
+ this.options = _extends$1({}, Popper2.Defaults, options);
56572
57662
  this.state = {
56573
57663
  isDestroyed: false,
56574
57664
  isCreated: false,
@@ -56577,11 +57667,11 @@ var Popper = function() {
56577
57667
  this.reference = reference && reference.jquery ? reference[0] : reference;
56578
57668
  this.popper = popper && popper.jquery ? popper[0] : popper;
56579
57669
  this.options.modifiers = {};
56580
- Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
56581
- _this.options.modifiers[name] = _extends({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
57670
+ Object.keys(_extends$1({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
57671
+ _this.options.modifiers[name] = _extends$1({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
56582
57672
  });
56583
57673
  this.modifiers = Object.keys(this.options.modifiers).map(function(name) {
56584
- return _extends({
57674
+ return _extends$1({
56585
57675
  name
56586
57676
  }, _this.options.modifiers[name]);
56587
57677
  }).sort(function(a, b) {
@@ -56647,21 +57737,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
56647
57737
  Popper.placements = placements;
56648
57738
  Popper.Defaults = Defaults;
56649
57739
  function createChainedFunction(...funcs) {
56650
- return funcs.reduce((acc, func) => {
56651
- if (func == null) {
56652
- return acc;
56653
- }
56654
- {
56655
- if (typeof func !== "function") {
56656
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
56657
- }
57740
+ return funcs.reduce(
57741
+ (acc, func) => {
57742
+ if (func == null) {
57743
+ return acc;
57744
+ }
57745
+ return function chainedFunction(...args) {
57746
+ acc.apply(this, args);
57747
+ func.apply(this, args);
57748
+ };
57749
+ },
57750
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
57751
+ () => {
56658
57752
  }
56659
- return function chainedFunction(...args) {
56660
- acc.apply(this, args);
56661
- func.apply(this, args);
56662
- };
56663
- }, () => {
56664
- });
57753
+ );
56665
57754
  }
56666
57755
  function setRef(ref, value) {
56667
57756
  if (typeof ref === "function") {
@@ -56700,7 +57789,7 @@ function flipPlacement(placement, theme) {
56700
57789
  }
56701
57790
  }
56702
57791
  function getAnchorEl(anchorEl) {
56703
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
57792
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
56704
57793
  }
56705
57794
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
56706
57795
  const defaultPopperOptions = {};
@@ -56730,25 +57819,18 @@ React.forwardRef((props, ref) => {
56730
57819
  }
56731
57820
  if (popperRef.current) {
56732
57821
  popperRef.current.destroy();
56733
- handlePopperRefRef.current(null);
57822
+ if (handlePopperRefRef.current) {
57823
+ setRef(handlePopperRefRef.current, null);
57824
+ }
56734
57825
  }
56735
57826
  const handlePopperUpdate = (data) => {
56736
57827
  setPlacement(data.placement);
56737
57828
  };
56738
- const resolvedAnchorEl = getAnchorEl(anchorEl);
56739
- {
56740
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
56741
- const box = resolvedAnchorEl.getBoundingClientRect();
56742
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
56743
- console.warn([
56744
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
56745
- "The anchor element should be part of the document layout.",
56746
- "Make sure the element is present in the document or that it's not display none."
56747
- ].join("\n"));
56748
- }
56749
- }
57829
+ const anchorElement = getAnchorEl(anchorEl);
57830
+ if (!anchorElement) {
57831
+ return;
56750
57832
  }
56751
- const popper = new Popper(getAnchorEl(anchorEl), tooltipRef.current, {
57833
+ const popper = new Popper(anchorElement, tooltipRef.current, {
56752
57834
  placement: rtlPlacement,
56753
57835
  ...popperOptions,
56754
57836
  modifiers: {
@@ -56766,7 +57848,9 @@ React.forwardRef((props, ref) => {
56766
57848
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
56767
57849
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
56768
57850
  });
56769
- handlePopperRefRef.current(popper);
57851
+ if (handlePopperRefRef.current) {
57852
+ setRef(handlePopperRefRef.current, popper);
57853
+ }
56770
57854
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
56771
57855
  const handleRef = React.useCallback((node2) => {
56772
57856
  setRef(ownRef, node2);
@@ -56780,7 +57864,9 @@ React.forwardRef((props, ref) => {
56780
57864
  return;
56781
57865
  }
56782
57866
  popperRef.current.destroy();
56783
- handlePopperRefRef.current(null);
57867
+ if (handlePopperRefRef.current) {
57868
+ setRef(handlePopperRefRef.current, null);
57869
+ }
56784
57870
  };
56785
57871
  const handleExited = () => {
56786
57872
  setExited(true);
@@ -56811,10 +57897,704 @@ React.forwardRef((props, ref) => {
56811
57897
  // Fix Popper.js display issue
56812
57898
  top: 0,
56813
57899
  left: 0,
56814
- display: !open && keepMounted && !transition ? "none" : null,
57900
+ display: !open && keepMounted && !transition ? "none" : void 0,
56815
57901
  ...style2
56816
57902
  }, children: typeof children === "function" ? children(childProps) : children }) });
56817
57903
  });
57904
+ function _extends() {
57905
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
57906
+ for (var i2 = 1; i2 < arguments.length; i2++) {
57907
+ var source = arguments[i2];
57908
+ for (var key in source) {
57909
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
57910
+ target[key] = source[key];
57911
+ }
57912
+ }
57913
+ }
57914
+ return target;
57915
+ };
57916
+ return _extends.apply(this, arguments);
57917
+ }
57918
+ function _assertThisInitialized(self2) {
57919
+ if (self2 === void 0) {
57920
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
57921
+ }
57922
+ return self2;
57923
+ }
57924
+ function _setPrototypeOf(o, p) {
57925
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
57926
+ o2.__proto__ = p2;
57927
+ return o2;
57928
+ };
57929
+ return _setPrototypeOf(o, p);
57930
+ }
57931
+ function _inheritsLoose(subClass, superClass) {
57932
+ subClass.prototype = Object.create(superClass.prototype);
57933
+ subClass.prototype.constructor = subClass;
57934
+ _setPrototypeOf(subClass, superClass);
57935
+ }
57936
+ var safeIsNaN = Number.isNaN || function ponyfill(value) {
57937
+ return typeof value === "number" && value !== value;
57938
+ };
57939
+ function isEqual$1(first, second) {
57940
+ if (first === second) {
57941
+ return true;
57942
+ }
57943
+ if (safeIsNaN(first) && safeIsNaN(second)) {
57944
+ return true;
57945
+ }
57946
+ return false;
57947
+ }
57948
+ function areInputsEqual(newInputs, lastInputs) {
57949
+ if (newInputs.length !== lastInputs.length) {
57950
+ return false;
57951
+ }
57952
+ for (var i2 = 0; i2 < newInputs.length; i2++) {
57953
+ if (!isEqual$1(newInputs[i2], lastInputs[i2])) {
57954
+ return false;
57955
+ }
57956
+ }
57957
+ return true;
57958
+ }
57959
+ function memoizeOne(resultFn, isEqual2) {
57960
+ if (isEqual2 === void 0) {
57961
+ isEqual2 = areInputsEqual;
57962
+ }
57963
+ var lastThis;
57964
+ var lastArgs = [];
57965
+ var lastResult;
57966
+ var calledOnce = false;
57967
+ function memoized() {
57968
+ var newArgs = [];
57969
+ for (var _i = 0; _i < arguments.length; _i++) {
57970
+ newArgs[_i] = arguments[_i];
57971
+ }
57972
+ if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
57973
+ return lastResult;
57974
+ }
57975
+ lastResult = resultFn.apply(this, newArgs);
57976
+ calledOnce = true;
57977
+ lastThis = this;
57978
+ lastArgs = newArgs;
57979
+ return lastResult;
57980
+ }
57981
+ return memoized;
57982
+ }
57983
+ var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
57984
+ var now = hasNativePerformanceNow ? function() {
57985
+ return performance.now();
57986
+ } : function() {
57987
+ return Date.now();
57988
+ };
57989
+ function cancelTimeout(timeoutID) {
57990
+ cancelAnimationFrame(timeoutID.id);
57991
+ }
57992
+ function requestTimeout(callback, delay) {
57993
+ var start = now();
57994
+ function tick() {
57995
+ if (now() - start >= delay) {
57996
+ callback.call(null);
57997
+ } else {
57998
+ timeoutID.id = requestAnimationFrame(tick);
57999
+ }
58000
+ }
58001
+ var timeoutID = {
58002
+ id: requestAnimationFrame(tick)
58003
+ };
58004
+ return timeoutID;
58005
+ }
58006
+ var size = -1;
58007
+ function getScrollbarSize(recalculate) {
58008
+ if (recalculate === void 0) {
58009
+ recalculate = false;
58010
+ }
58011
+ if (size === -1 || recalculate) {
58012
+ var div = document.createElement("div");
58013
+ var style2 = div.style;
58014
+ style2.width = "50px";
58015
+ style2.height = "50px";
58016
+ style2.overflow = "scroll";
58017
+ document.body.appendChild(div);
58018
+ size = div.offsetWidth - div.clientWidth;
58019
+ document.body.removeChild(div);
58020
+ }
58021
+ return size;
58022
+ }
58023
+ var cachedRTLResult = null;
58024
+ function getRTLOffsetType(recalculate) {
58025
+ if (recalculate === void 0) {
58026
+ recalculate = false;
58027
+ }
58028
+ if (cachedRTLResult === null || recalculate) {
58029
+ var outerDiv = document.createElement("div");
58030
+ var outerStyle = outerDiv.style;
58031
+ outerStyle.width = "50px";
58032
+ outerStyle.height = "50px";
58033
+ outerStyle.overflow = "scroll";
58034
+ outerStyle.direction = "rtl";
58035
+ var innerDiv = document.createElement("div");
58036
+ var innerStyle = innerDiv.style;
58037
+ innerStyle.width = "100px";
58038
+ innerStyle.height = "100px";
58039
+ outerDiv.appendChild(innerDiv);
58040
+ document.body.appendChild(outerDiv);
58041
+ if (outerDiv.scrollLeft > 0) {
58042
+ cachedRTLResult = "positive-descending";
58043
+ } else {
58044
+ outerDiv.scrollLeft = 1;
58045
+ if (outerDiv.scrollLeft === 0) {
58046
+ cachedRTLResult = "negative";
58047
+ } else {
58048
+ cachedRTLResult = "positive-ascending";
58049
+ }
58050
+ }
58051
+ document.body.removeChild(outerDiv);
58052
+ return cachedRTLResult;
58053
+ }
58054
+ return cachedRTLResult;
58055
+ }
58056
+ var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
58057
+ var defaultItemKey$1 = function defaultItemKey3(index, data) {
58058
+ return index;
58059
+ };
58060
+ var devWarningsDirection = null;
58061
+ var devWarningsTagName$1 = null;
58062
+ {
58063
+ if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
58064
+ devWarningsDirection = /* @__PURE__ */ new WeakSet();
58065
+ devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
58066
+ }
58067
+ }
58068
+ function createListComponent(_ref) {
58069
+ var _class;
58070
+ var getItemOffset3 = _ref.getItemOffset, getEstimatedTotalSize4 = _ref.getEstimatedTotalSize, getItemSize3 = _ref.getItemSize, getOffsetForIndexAndAlignment5 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset3 = _ref.getStartIndexForOffset, getStopIndexForStartIndex3 = _ref.getStopIndexForStartIndex, initInstanceProps5 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps5 = _ref.validateProps;
58071
+ return _class = /* @__PURE__ */ function(_PureComponent) {
58072
+ _inheritsLoose(List, _PureComponent);
58073
+ function List(props) {
58074
+ var _this;
58075
+ _this = _PureComponent.call(this, props) || this;
58076
+ _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
58077
+ _this._outerRef = void 0;
58078
+ _this._resetIsScrollingTimeoutId = null;
58079
+ _this.state = {
58080
+ instance: _assertThisInitialized(_this),
58081
+ isScrolling: false,
58082
+ scrollDirection: "forward",
58083
+ scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
58084
+ scrollUpdateWasRequested: false
58085
+ };
58086
+ _this._callOnItemsRendered = void 0;
58087
+ _this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
58088
+ return _this.props.onItemsRendered({
58089
+ overscanStartIndex,
58090
+ overscanStopIndex,
58091
+ visibleStartIndex,
58092
+ visibleStopIndex
58093
+ });
58094
+ });
58095
+ _this._callOnScroll = void 0;
58096
+ _this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
58097
+ return _this.props.onScroll({
58098
+ scrollDirection,
58099
+ scrollOffset,
58100
+ scrollUpdateWasRequested
58101
+ });
58102
+ });
58103
+ _this._getItemStyle = void 0;
58104
+ _this._getItemStyle = function(index) {
58105
+ var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
58106
+ var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
58107
+ var style2;
58108
+ if (itemStyleCache.hasOwnProperty(index)) {
58109
+ style2 = itemStyleCache[index];
58110
+ } else {
58111
+ var _offset2 = getItemOffset3(_this.props, index, _this._instanceProps);
58112
+ var size2 = getItemSize3(_this.props, index, _this._instanceProps);
58113
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
58114
+ var isRtl = direction === "rtl";
58115
+ var offsetHorizontal = isHorizontal ? _offset2 : 0;
58116
+ itemStyleCache[index] = style2 = {
58117
+ position: "absolute",
58118
+ left: isRtl ? void 0 : offsetHorizontal,
58119
+ right: isRtl ? offsetHorizontal : void 0,
58120
+ top: !isHorizontal ? _offset2 : 0,
58121
+ height: !isHorizontal ? size2 : "100%",
58122
+ width: isHorizontal ? size2 : "100%"
58123
+ };
58124
+ }
58125
+ return style2;
58126
+ };
58127
+ _this._getItemStyleCache = void 0;
58128
+ _this._getItemStyleCache = memoizeOne(function(_, __, ___) {
58129
+ return {};
58130
+ });
58131
+ _this._onScrollHorizontal = function(event) {
58132
+ var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
58133
+ _this.setState(function(prevState) {
58134
+ if (prevState.scrollOffset === scrollLeft) {
58135
+ return null;
58136
+ }
58137
+ var direction = _this.props.direction;
58138
+ var scrollOffset = scrollLeft;
58139
+ if (direction === "rtl") {
58140
+ switch (getRTLOffsetType()) {
58141
+ case "negative":
58142
+ scrollOffset = -scrollLeft;
58143
+ break;
58144
+ case "positive-descending":
58145
+ scrollOffset = scrollWidth - clientWidth - scrollLeft;
58146
+ break;
58147
+ }
58148
+ }
58149
+ scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
58150
+ return {
58151
+ isScrolling: true,
58152
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
58153
+ scrollOffset,
58154
+ scrollUpdateWasRequested: false
58155
+ };
58156
+ }, _this._resetIsScrollingDebounced);
58157
+ };
58158
+ _this._onScrollVertical = function(event) {
58159
+ var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
58160
+ _this.setState(function(prevState) {
58161
+ if (prevState.scrollOffset === scrollTop) {
58162
+ return null;
58163
+ }
58164
+ var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
58165
+ return {
58166
+ isScrolling: true,
58167
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
58168
+ scrollOffset,
58169
+ scrollUpdateWasRequested: false
58170
+ };
58171
+ }, _this._resetIsScrollingDebounced);
58172
+ };
58173
+ _this._outerRefSetter = function(ref) {
58174
+ var outerRef = _this.props.outerRef;
58175
+ _this._outerRef = ref;
58176
+ if (typeof outerRef === "function") {
58177
+ outerRef(ref);
58178
+ } else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
58179
+ outerRef.current = ref;
58180
+ }
58181
+ };
58182
+ _this._resetIsScrollingDebounced = function() {
58183
+ if (_this._resetIsScrollingTimeoutId !== null) {
58184
+ cancelTimeout(_this._resetIsScrollingTimeoutId);
58185
+ }
58186
+ _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
58187
+ };
58188
+ _this._resetIsScrolling = function() {
58189
+ _this._resetIsScrollingTimeoutId = null;
58190
+ _this.setState({
58191
+ isScrolling: false
58192
+ }, function() {
58193
+ _this._getItemStyleCache(-1, null);
58194
+ });
58195
+ };
58196
+ return _this;
58197
+ }
58198
+ List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
58199
+ validateSharedProps$1(nextProps, prevState);
58200
+ validateProps5(nextProps);
58201
+ return null;
58202
+ };
58203
+ var _proto = List.prototype;
58204
+ _proto.scrollTo = function scrollTo(scrollOffset) {
58205
+ scrollOffset = Math.max(0, scrollOffset);
58206
+ this.setState(function(prevState) {
58207
+ if (prevState.scrollOffset === scrollOffset) {
58208
+ return null;
58209
+ }
58210
+ return {
58211
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
58212
+ scrollOffset,
58213
+ scrollUpdateWasRequested: true
58214
+ };
58215
+ }, this._resetIsScrollingDebounced);
58216
+ };
58217
+ _proto.scrollToItem = function scrollToItem(index, align) {
58218
+ if (align === void 0) {
58219
+ align = "auto";
58220
+ }
58221
+ var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
58222
+ var scrollOffset = this.state.scrollOffset;
58223
+ index = Math.max(0, Math.min(index, itemCount - 1));
58224
+ var scrollbarSize = 0;
58225
+ if (this._outerRef) {
58226
+ var outerRef = this._outerRef;
58227
+ if (layout === "vertical") {
58228
+ scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
58229
+ } else {
58230
+ scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
58231
+ }
58232
+ }
58233
+ this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index, align, scrollOffset, this._instanceProps, scrollbarSize));
58234
+ };
58235
+ _proto.componentDidMount = function componentDidMount() {
58236
+ var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
58237
+ if (typeof initialScrollOffset === "number" && this._outerRef != null) {
58238
+ var outerRef = this._outerRef;
58239
+ if (direction === "horizontal" || layout === "horizontal") {
58240
+ outerRef.scrollLeft = initialScrollOffset;
58241
+ } else {
58242
+ outerRef.scrollTop = initialScrollOffset;
58243
+ }
58244
+ }
58245
+ this._callPropsCallbacks();
58246
+ };
58247
+ _proto.componentDidUpdate = function componentDidUpdate() {
58248
+ var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
58249
+ var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
58250
+ if (scrollUpdateWasRequested && this._outerRef != null) {
58251
+ var outerRef = this._outerRef;
58252
+ if (direction === "horizontal" || layout === "horizontal") {
58253
+ if (direction === "rtl") {
58254
+ switch (getRTLOffsetType()) {
58255
+ case "negative":
58256
+ outerRef.scrollLeft = -scrollOffset;
58257
+ break;
58258
+ case "positive-ascending":
58259
+ outerRef.scrollLeft = scrollOffset;
58260
+ break;
58261
+ default:
58262
+ var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
58263
+ outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
58264
+ break;
58265
+ }
58266
+ } else {
58267
+ outerRef.scrollLeft = scrollOffset;
58268
+ }
58269
+ } else {
58270
+ outerRef.scrollTop = scrollOffset;
58271
+ }
58272
+ }
58273
+ this._callPropsCallbacks();
58274
+ };
58275
+ _proto.componentWillUnmount = function componentWillUnmount() {
58276
+ if (this._resetIsScrollingTimeoutId !== null) {
58277
+ cancelTimeout(this._resetIsScrollingTimeoutId);
58278
+ }
58279
+ };
58280
+ _proto.render = function render() {
58281
+ var _this$props5 = this.props, children = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
58282
+ var isScrolling = this.state.isScrolling;
58283
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
58284
+ var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
58285
+ var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
58286
+ var items = [];
58287
+ if (itemCount > 0) {
58288
+ for (var _index = startIndex; _index <= stopIndex; _index++) {
58289
+ items.push(createElement(children, {
58290
+ data: itemData,
58291
+ key: itemKey(_index, itemData),
58292
+ index: _index,
58293
+ isScrolling: useIsScrolling ? isScrolling : void 0,
58294
+ style: this._getItemStyle(_index)
58295
+ }));
58296
+ }
58297
+ }
58298
+ var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
58299
+ return createElement(outerElementType || outerTagName || "div", {
58300
+ className,
58301
+ onScroll,
58302
+ ref: this._outerRefSetter,
58303
+ style: _extends({
58304
+ position: "relative",
58305
+ height: height2,
58306
+ width: width2,
58307
+ overflow: "auto",
58308
+ WebkitOverflowScrolling: "touch",
58309
+ willChange: "transform",
58310
+ direction
58311
+ }, style2)
58312
+ }, createElement(innerElementType || innerTagName || "div", {
58313
+ children: items,
58314
+ ref: innerRef,
58315
+ style: {
58316
+ height: isHorizontal ? "100%" : estimatedTotalSize,
58317
+ pointerEvents: isScrolling ? "none" : void 0,
58318
+ width: isHorizontal ? estimatedTotalSize : "100%"
58319
+ }
58320
+ }));
58321
+ };
58322
+ _proto._callPropsCallbacks = function _callPropsCallbacks() {
58323
+ if (typeof this.props.onItemsRendered === "function") {
58324
+ var itemCount = this.props.itemCount;
58325
+ if (itemCount > 0) {
58326
+ var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
58327
+ this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
58328
+ }
58329
+ }
58330
+ if (typeof this.props.onScroll === "function") {
58331
+ var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
58332
+ this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
58333
+ }
58334
+ };
58335
+ _proto._getRangeToRender = function _getRangeToRender() {
58336
+ var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
58337
+ var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
58338
+ if (itemCount === 0) {
58339
+ return [0, 0, 0, 0];
58340
+ }
58341
+ var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
58342
+ var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
58343
+ var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
58344
+ var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
58345
+ return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
58346
+ };
58347
+ return List;
58348
+ }(PureComponent), _class.defaultProps = {
58349
+ direction: "ltr",
58350
+ itemData: void 0,
58351
+ layout: "vertical",
58352
+ overscanCount: 2,
58353
+ useIsScrolling: false
58354
+ }, _class;
58355
+ }
58356
+ var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
58357
+ var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
58358
+ var instance = _ref3.instance;
58359
+ {
58360
+ if (innerTagName != null || outerTagName != null) {
58361
+ if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
58362
+ devWarningsTagName$1.add(instance);
58363
+ console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
58364
+ }
58365
+ }
58366
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
58367
+ switch (direction) {
58368
+ case "horizontal":
58369
+ case "vertical":
58370
+ if (devWarningsDirection && !devWarningsDirection.has(instance)) {
58371
+ devWarningsDirection.add(instance);
58372
+ console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
58373
+ }
58374
+ break;
58375
+ case "ltr":
58376
+ case "rtl":
58377
+ break;
58378
+ default:
58379
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
58380
+ }
58381
+ switch (layout) {
58382
+ case "horizontal":
58383
+ case "vertical":
58384
+ break;
58385
+ default:
58386
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
58387
+ }
58388
+ if (children == null) {
58389
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
58390
+ }
58391
+ if (isHorizontal && typeof width2 !== "number") {
58392
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
58393
+ } else if (!isHorizontal && typeof height2 !== "number") {
58394
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
58395
+ }
58396
+ }
58397
+ };
58398
+ var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
58399
+ var getItemMetadata$1 = function getItemMetadata3(props, index, instanceProps) {
58400
+ var _ref = props, itemSize = _ref.itemSize;
58401
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
58402
+ if (index > lastMeasuredIndex) {
58403
+ var offset2 = 0;
58404
+ if (lastMeasuredIndex >= 0) {
58405
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
58406
+ offset2 = itemMetadata.offset + itemMetadata.size;
58407
+ }
58408
+ for (var i2 = lastMeasuredIndex + 1; i2 <= index; i2++) {
58409
+ var size2 = itemSize(i2);
58410
+ itemMetadataMap[i2] = {
58411
+ offset: offset2,
58412
+ size: size2
58413
+ };
58414
+ offset2 += size2;
58415
+ }
58416
+ instanceProps.lastMeasuredIndex = index;
58417
+ }
58418
+ return itemMetadataMap[index];
58419
+ };
58420
+ var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
58421
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
58422
+ var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
58423
+ if (lastMeasuredItemOffset >= offset2) {
58424
+ return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
58425
+ } else {
58426
+ return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
58427
+ }
58428
+ };
58429
+ var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
58430
+ while (low <= high) {
58431
+ var middle = low + Math.floor((high - low) / 2);
58432
+ var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
58433
+ if (currentOffset === offset2) {
58434
+ return middle;
58435
+ } else if (currentOffset < offset2) {
58436
+ low = middle + 1;
58437
+ } else if (currentOffset > offset2) {
58438
+ high = middle - 1;
58439
+ }
58440
+ }
58441
+ if (low > 0) {
58442
+ return low - 1;
58443
+ } else {
58444
+ return 0;
58445
+ }
58446
+ };
58447
+ var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index, offset2) {
58448
+ var itemCount = props.itemCount;
58449
+ var interval = 1;
58450
+ while (index < itemCount && getItemMetadata$1(props, index, instanceProps).offset < offset2) {
58451
+ index += interval;
58452
+ interval *= 2;
58453
+ }
58454
+ return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset2);
58455
+ };
58456
+ var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
58457
+ var itemCount = _ref2.itemCount;
58458
+ var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
58459
+ var totalSizeOfMeasuredItems = 0;
58460
+ if (lastMeasuredIndex >= itemCount) {
58461
+ lastMeasuredIndex = itemCount - 1;
58462
+ }
58463
+ if (lastMeasuredIndex >= 0) {
58464
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
58465
+ totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
58466
+ }
58467
+ var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
58468
+ var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
58469
+ return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
58470
+ };
58471
+ var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
58472
+ getItemOffset: function getItemOffset(props, index, instanceProps) {
58473
+ return getItemMetadata$1(props, index, instanceProps).offset;
58474
+ },
58475
+ getItemSize: function getItemSize(props, index, instanceProps) {
58476
+ return instanceProps.itemMetadataMap[index].size;
58477
+ },
58478
+ getEstimatedTotalSize,
58479
+ getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index, align, scrollOffset, instanceProps, scrollbarSize) {
58480
+ var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
58481
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
58482
+ var size2 = isHorizontal ? width2 : height2;
58483
+ var itemMetadata = getItemMetadata$1(props, index, instanceProps);
58484
+ var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
58485
+ var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
58486
+ var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
58487
+ if (align === "smart") {
58488
+ if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
58489
+ align = "auto";
58490
+ } else {
58491
+ align = "center";
58492
+ }
58493
+ }
58494
+ switch (align) {
58495
+ case "start":
58496
+ return maxOffset;
58497
+ case "end":
58498
+ return minOffset;
58499
+ case "center":
58500
+ return Math.round(minOffset + (maxOffset - minOffset) / 2);
58501
+ case "auto":
58502
+ default:
58503
+ if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
58504
+ return scrollOffset;
58505
+ } else if (scrollOffset < minOffset) {
58506
+ return minOffset;
58507
+ } else {
58508
+ return maxOffset;
58509
+ }
58510
+ }
58511
+ },
58512
+ getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
58513
+ return findNearestItem$1(props, instanceProps, offset2);
58514
+ },
58515
+ getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
58516
+ var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
58517
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
58518
+ var size2 = isHorizontal ? width2 : height2;
58519
+ var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
58520
+ var maxOffset = scrollOffset + size2;
58521
+ var offset2 = itemMetadata.offset + itemMetadata.size;
58522
+ var stopIndex = startIndex;
58523
+ while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
58524
+ stopIndex++;
58525
+ offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
58526
+ }
58527
+ return stopIndex;
58528
+ },
58529
+ initInstanceProps: function initInstanceProps2(props, instance) {
58530
+ var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
58531
+ var instanceProps = {
58532
+ itemMetadataMap: {},
58533
+ estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
58534
+ lastMeasuredIndex: -1
58535
+ };
58536
+ instance.resetAfterIndex = function(index, shouldForceUpdate) {
58537
+ if (shouldForceUpdate === void 0) {
58538
+ shouldForceUpdate = true;
58539
+ }
58540
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1);
58541
+ instance._getItemStyleCache(-1);
58542
+ if (shouldForceUpdate) {
58543
+ instance.forceUpdate();
58544
+ }
58545
+ };
58546
+ return instanceProps;
58547
+ },
58548
+ shouldResetStyleCacheOnItemSizeChange: false,
58549
+ validateProps: function validateProps2(_ref5) {
58550
+ var itemSize = _ref5.itemSize;
58551
+ {
58552
+ if (typeof itemSize !== "function") {
58553
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
58554
+ }
58555
+ }
58556
+ }
58557
+ });
58558
+ const VariableSizeList = VariableSizeList$1;
58559
+ const LIST_ROW_HEIGHT = 48;
58560
+ makeStyles()(() => ({
58561
+ searchInput: {
58562
+ lineHeight: "initial",
58563
+ height: "auto !important"
58564
+ }
58565
+ }));
58566
+ const OuterElementContext = React__default.createContext({});
58567
+ const OuterElementType = React__default.forwardRef((props, ref) => {
58568
+ const outerProps = React__default.useContext(OuterElementContext);
58569
+ return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
58570
+ });
58571
+ function ListRow(props) {
58572
+ const { data, index, style: style2 } = props;
58573
+ const dataSet = data[index];
58574
+ const inlineStyle = {
58575
+ ...style2,
58576
+ top: style2.top + 8
58577
+ };
58578
+ const [props0, option, getItemLabel] = dataSet;
58579
+ const { key, ...optionProps } = props0;
58580
+ return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
58581
+ }
58582
+ function useResetCache(itemCount) {
58583
+ const ref = useRef(null);
58584
+ useEffect(() => {
58585
+ if (ref.current != null) {
58586
+ ref.current.resetAfterIndex(0, true);
58587
+ }
58588
+ }, [itemCount]);
58589
+ return ref;
58590
+ }
58591
+ React__default.forwardRef((props, ref) => {
58592
+ const { children, ...other } = props;
58593
+ const items = children;
58594
+ const itemCount = items.length;
58595
+ const gridRef = useResetCache(itemCount);
58596
+ return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
58597
+ });
56818
58598
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
56819
58599
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
56820
58600
  var root = freeGlobal || freeSelf || Function("return this")();
@@ -57010,8 +58790,8 @@ function arrayLikeKeys(value, inherited) {
57010
58790
  return result;
57011
58791
  }
57012
58792
  function overArg(func, transform) {
57013
- return function(arg) {
57014
- return func(transform(arg));
58793
+ return function(arg2) {
58794
+ return func(transform(arg2));
57015
58795
  };
57016
58796
  }
57017
58797
  var nativeKeys = overArg(Object.keys, Object);
@@ -57167,9 +58947,9 @@ function mapCacheHas(key) {
57167
58947
  return getMapData(this, key).has(key);
57168
58948
  }
57169
58949
  function mapCacheSet(key, value) {
57170
- var data = getMapData(this, key), size = data.size;
58950
+ var data = getMapData(this, key), size2 = data.size;
57171
58951
  data.set(key, value);
57172
- this.size += data.size == size ? 0 : 1;
58952
+ this.size += data.size == size2 ? 0 : 1;
57173
58953
  return this;
57174
58954
  }
57175
58955
  function MapCache(entries) {
@@ -57711,14 +59491,14 @@ function _ptToZarr(ptx, pty, ptz, ptInfo) {
57711
59491
  function _requestBufferToRequestObjects(buffer, k) {
57712
59492
  const counts = /* @__PURE__ */ new Map();
57713
59493
  for (let i2 = 0; i2 < buffer.length; i2 += 4) {
57714
- const r = buffer[i2];
59494
+ const r2 = buffer[i2];
57715
59495
  const g = buffer[i2 + 1];
57716
59496
  const b = buffer[i2 + 2];
57717
59497
  const a = buffer[i2 + 3];
57718
- if ((r | g | b | a) === 0) {
59498
+ if ((r2 | g | b | a) === 0) {
57719
59499
  continue;
57720
59500
  }
57721
- const packed = (r << 24 | g << 16 | b << 8 | a) >>> 0;
59501
+ const packed = (r2 << 24 | g << 16 | b << 8 | a) >>> 0;
57722
59502
  counts.set(packed, (counts.get(packed) || 0) + 1);
57723
59503
  }
57724
59504
  const requests = [...counts.entries()].sort((a, b) => b[1] - a[1]).slice(0, k).map(([packed]) => ({
@@ -58467,17 +60247,17 @@ class VolumeDataManager {
58467
60247
  const texPT = this.renderer.properties.get(this.ptTHREE).__webglTexture;
58468
60248
  gl.activeTexture(gl.TEXTURE0);
58469
60249
  gl.bindTexture(gl.TEXTURE_3D, texPT);
58470
- for (let r = 0; r < this.zarrStore.resolutions; r++) {
60250
+ for (let r2 = 0; r2 < this.zarrStore.resolutions; r2++) {
58471
60251
  const anchor = [
58472
- this.PT.anchors[r][2] * channelMask[2],
58473
- this.PT.anchors[r][1] * channelMask[1],
58474
- this.PT.anchors[r][0] * channelMask[0]
60252
+ this.PT.anchors[r2][2] * channelMask[2],
60253
+ this.PT.anchors[r2][1] * channelMask[1],
60254
+ this.PT.anchors[r2][0] * channelMask[0]
58475
60255
  ];
58476
60256
  log.debug("anchor", anchor);
58477
- const extents = this.zarrStore.brickLayout[r];
58478
- const size = extents[0] * extents[1] * extents[2];
60257
+ const extents = this.zarrStore.brickLayout[r2];
60258
+ const size2 = extents[0] * extents[1] * extents[2];
58479
60259
  log.debug("extents", extents);
58480
- log.debug("size", size);
60260
+ log.debug("size", size2);
58481
60261
  gl.texSubImage3D(
58482
60262
  gl.TEXTURE_3D,
58483
60263
  0,
@@ -58489,7 +60269,7 @@ class VolumeDataManager {
58489
60269
  extents[2],
58490
60270
  gl.RED_INTEGER,
58491
60271
  gl.UNSIGNED_INT,
58492
- new Uint32Array(size)
60272
+ new Uint32Array(size2)
58493
60273
  );
58494
60274
  }
58495
60275
  gl.bindTexture(gl.TEXTURE_3D, null);