vis-core 0.28.34 → 0.28.35

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.
@@ -14,7 +14,7 @@ var vn = (v, t) => (t = Symbol[v]) ? t : Symbol.for("Symbol." + v), Un = (v) =>
14
14
  }, Ui = (v, t) => Kn(v, Fn(t));
15
15
  var b0 = (v, t, r) => Vn(v, typeof t != "symbol" ? t + "" : t, r);
16
16
  var yn = (v, t, r) => Yn(An(v), r, t);
17
- var K0 = (v, t, r) => new Promise((m, C) => {
17
+ var N0 = (v, t, r) => new Promise((m, C) => {
18
18
  var _ = (ve) => {
19
19
  try {
20
20
  O(r.next(ve));
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
63
63
  Array.prototype.at || (Array.prototype.at = function(v) {
64
64
  return v < 0 && (v = this.length + v), this[v];
65
65
  });
66
- const version = "0.28.34", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
66
+ const version = "0.28.35", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
67
67
  token: void 0,
68
68
  getInfo() {
69
69
  if (!this.token)
@@ -14564,7 +14564,7 @@ class ExtrudeGeometry extends BufferGeometry {
14564
14564
  let F0, Q0, S0;
14565
14565
  const C0 = P0.x - E0.x, A0 = P0.y - E0.y, B0 = O0.x - P0.x, r0 = O0.y - P0.y, t0 = C0 * C0 + A0 * A0, m0 = C0 * r0 - A0 * B0;
14566
14566
  if (Math.abs(m0) > Number.EPSILON) {
14567
- const v0 = Math.sqrt(t0), N0 = Math.sqrt(B0 * B0 + r0 * r0), R0 = E0.x - A0 / v0, Xi = E0.y + C0 / v0, q0 = O0.x - r0 / N0, Zi = O0.y + B0 / N0, Pi = ((q0 - R0) * r0 - (Zi - Xi) * B0) / (C0 * r0 - A0 * B0);
14567
+ const v0 = Math.sqrt(t0), K0 = Math.sqrt(B0 * B0 + r0 * r0), R0 = E0.x - A0 / v0, Xi = E0.y + C0 / v0, q0 = O0.x - r0 / K0, Zi = O0.y + B0 / K0, Pi = ((q0 - R0) * r0 - (Zi - Xi) * B0) / (C0 * r0 - A0 * B0);
14568
14568
  F0 = R0 + C0 * Pi - P0.x, Q0 = Xi + A0 * Pi - P0.y;
14569
14569
  const gi = F0 * F0 + Q0 * Q0;
14570
14570
  if (gi <= 2)
@@ -18468,7 +18468,7 @@ class ObjectLoader extends Loader {
18468
18468
  * @return {Promise<Object3D>} A Promise that resolves with the loaded 3D object.
18469
18469
  */
18470
18470
  loadAsync(t, r) {
18471
- return K0(this, null, function* () {
18471
+ return N0(this, null, function* () {
18472
18472
  const m = this, C = this.path === "" ? LoaderUtils.extractUrlBase(t) : this.path;
18473
18473
  this.resourcePath = this.resourcePath || C;
18474
18474
  const _ = new FileLoader(this.manager);
@@ -18509,7 +18509,7 @@ class ObjectLoader extends Loader {
18509
18509
  * @return {Promise<Object3D>} A Promise that resolves with the parsed 3D object.
18510
18510
  */
18511
18511
  parseAsync(t) {
18512
- return K0(this, null, function* () {
18512
+ return N0(this, null, function* () {
18513
18513
  const r = this.parseAnimations(t.animations), m = this.parseShapes(t.shapes), C = this.parseGeometries(t.geometries, m), _ = yield this.parseImagesAsync(t.images), I = this.parseTextures(t.textures, _), O = this.parseMaterials(t.materials, I), ve = this.parseObject(t.object, C, O, I, r), Ce = this.parseSkeletons(t.skeletons, ve);
18514
18514
  return this.bindSkeletons(ve, Ce), this.bindLightTargets(ve), ve;
18515
18515
  });
@@ -18618,11 +18618,11 @@ class ObjectLoader extends Loader {
18618
18618
  return C;
18619
18619
  }
18620
18620
  parseImagesAsync(t) {
18621
- return K0(this, null, function* () {
18621
+ return N0(this, null, function* () {
18622
18622
  const r = this, m = {};
18623
18623
  let C;
18624
18624
  function _(I) {
18625
- return K0(this, null, function* () {
18625
+ return N0(this, null, function* () {
18626
18626
  if (typeof I == "string") {
18627
18627
  const O = I, ve = /^(\/\/)|([a-z]+:(\/\/)?)/i.test(O) ? O : r.resourcePath + O;
18628
18628
  return yield C.loadAsync(ve);
@@ -29329,7 +29329,7 @@ function WebGLPrograms(v, t, r, m, C, _, I) {
29329
29329
  j0 = ji.vertexShader, H0 = ji.fragmentShader;
29330
29330
  } else
29331
29331
  j0 = wt.vertexShader, H0 = wt.fragmentShader, ve.update(wt), g0 = ve.getVertexShaderID(wt), _0 = ve.getFragmentShaderID(wt);
29332
- const k0 = v.getRenderTarget(), bi = v.state.buffers.depth.getReversed(), yi = e0.isInstancedMesh === !0, vi = e0.isBatchedMesh === !0, Ki = !!wt.map, Vi = !!wt.matcap, a0 = !!Yt, P0 = !!wt.aoMap, E0 = !!wt.lightMap, O0 = !!wt.bumpMap, F0 = !!wt.normalMap, Q0 = !!wt.displacementMap, S0 = !!wt.emissiveMap, C0 = !!wt.metalnessMap, A0 = !!wt.roughnessMap, B0 = wt.anisotropy > 0, r0 = wt.clearcoat > 0, t0 = wt.dispersion > 0, m0 = wt.iridescence > 0, v0 = wt.sheen > 0, N0 = wt.transmission > 0, R0 = B0 && !!wt.anisotropyMap, Xi = r0 && !!wt.clearcoatMap, q0 = r0 && !!wt.clearcoatNormalMap, Zi = r0 && !!wt.clearcoatRoughnessMap, Pi = m0 && !!wt.iridescenceMap, gi = m0 && !!wt.iridescenceThicknessMap, Ci = v0 && !!wt.sheenColorMap, Ei = v0 && !!wt.sheenRoughnessMap, Ii = !!wt.specularMap, Li = !!wt.specularColorMap, Ni = !!wt.specularIntensityMap, f0 = N0 && !!wt.transmissionMap, xi = N0 && !!wt.thicknessMap, w0 = !!wt.gradientMap, Wi = !!wt.alphaMap, Mi = wt.alphaTest > 0, J0 = !!wt.alphaHash, zi = !!wt.extensions;
29332
+ const k0 = v.getRenderTarget(), bi = v.state.buffers.depth.getReversed(), yi = e0.isInstancedMesh === !0, vi = e0.isBatchedMesh === !0, Ki = !!wt.map, Vi = !!wt.matcap, a0 = !!Yt, P0 = !!wt.aoMap, E0 = !!wt.lightMap, O0 = !!wt.bumpMap, F0 = !!wt.normalMap, Q0 = !!wt.displacementMap, S0 = !!wt.emissiveMap, C0 = !!wt.metalnessMap, A0 = !!wt.roughnessMap, B0 = wt.anisotropy > 0, r0 = wt.clearcoat > 0, t0 = wt.dispersion > 0, m0 = wt.iridescence > 0, v0 = wt.sheen > 0, K0 = wt.transmission > 0, R0 = B0 && !!wt.anisotropyMap, Xi = r0 && !!wt.clearcoatMap, q0 = r0 && !!wt.clearcoatNormalMap, Zi = r0 && !!wt.clearcoatRoughnessMap, Pi = m0 && !!wt.iridescenceMap, gi = m0 && !!wt.iridescenceThicknessMap, Ci = v0 && !!wt.sheenColorMap, Ei = v0 && !!wt.sheenRoughnessMap, Ii = !!wt.specularMap, Li = !!wt.specularColorMap, Ni = !!wt.specularIntensityMap, f0 = K0 && !!wt.transmissionMap, xi = K0 && !!wt.thicknessMap, w0 = !!wt.gradientMap, Wi = !!wt.alphaMap, Mi = wt.alphaTest > 0, J0 = !!wt.alphaHash, zi = !!wt.extensions;
29333
29333
  let Bi = NoToneMapping;
29334
29334
  wt.toneMapped && (k0 === null || k0.isXRRenderTarget === !0) && (Bi = v.toneMapping);
29335
29335
  const Qi = {
@@ -29383,7 +29383,7 @@ function WebGLPrograms(v, t, r, m, C, _, I) {
29383
29383
  specularMap: Ii,
29384
29384
  specularColorMap: Li,
29385
29385
  specularIntensityMap: Ni,
29386
- transmission: N0,
29386
+ transmission: K0,
29387
29387
  transmissionMap: f0,
29388
29388
  thicknessMap: xi,
29389
29389
  gradientMap: w0,
@@ -30315,7 +30315,7 @@ function WebGLState(v, t) {
30315
30315
  console.error("THREE.WebGLState:", f0);
30316
30316
  }
30317
30317
  }
30318
- function N0() {
30318
+ function K0() {
30319
30319
  try {
30320
30320
  v.texSubImage3D(...arguments);
30321
30321
  } catch (f0) {
@@ -30413,7 +30413,7 @@ function WebGLState(v, t) {
30413
30413
  texStorage2D: q0,
30414
30414
  texStorage3D: Zi,
30415
30415
  texSubImage2D: v0,
30416
- texSubImage3D: N0,
30416
+ texSubImage3D: K0,
30417
30417
  compressedTexSubImage2D: R0,
30418
30418
  compressedTexSubImage3D: Xi,
30419
30419
  scissor: Ci,
@@ -30438,15 +30438,15 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30438
30438
  }
30439
30439
  function ht(r0, t0, m0) {
30440
30440
  let v0 = 1;
30441
- const N0 = B0(r0);
30442
- if ((N0.width > m0 || N0.height > m0) && (v0 = m0 / Math.max(N0.width, N0.height)), v0 < 1)
30441
+ const K0 = B0(r0);
30442
+ if ((K0.width > m0 || K0.height > m0) && (v0 = m0 / Math.max(K0.width, K0.height)), v0 < 1)
30443
30443
  if (typeof HTMLImageElement != "undefined" && r0 instanceof HTMLImageElement || typeof HTMLCanvasElement != "undefined" && r0 instanceof HTMLCanvasElement || typeof ImageBitmap != "undefined" && r0 instanceof ImageBitmap || typeof VideoFrame != "undefined" && r0 instanceof VideoFrame) {
30444
- const R0 = Math.floor(v0 * N0.width), Xi = Math.floor(v0 * N0.height);
30444
+ const R0 = Math.floor(v0 * K0.width), Xi = Math.floor(v0 * K0.height);
30445
30445
  Ne === void 0 && (Ne = Ue(R0, Xi));
30446
30446
  const q0 = t0 ? Ue(R0, Xi) : Ne;
30447
- return q0.width = R0, q0.height = Xi, q0.getContext("2d").drawImage(r0, 0, 0, R0, Xi), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + N0.width + "x" + N0.height + ") to (" + R0 + "x" + Xi + ")."), q0;
30447
+ return q0.width = R0, q0.height = Xi, q0.getContext("2d").drawImage(r0, 0, 0, R0, Xi), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + K0.width + "x" + K0.height + ") to (" + R0 + "x" + Xi + ")."), q0;
30448
30448
  } else
30449
- return "data" in r0 && console.warn("THREE.WebGLRenderer: Image in DataTexture is too big (" + N0.width + "x" + N0.height + ")."), r0;
30449
+ return "data" in r0 && console.warn("THREE.WebGLRenderer: Image in DataTexture is too big (" + K0.width + "x" + K0.height + ")."), r0;
30450
30450
  return r0;
30451
30451
  }
30452
30452
  function at(r0) {
@@ -30458,14 +30458,14 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30458
30458
  function ct(r0) {
30459
30459
  return r0.isWebGLCubeRenderTarget ? v.TEXTURE_CUBE_MAP : r0.isWebGL3DRenderTarget ? v.TEXTURE_3D : r0.isWebGLArrayRenderTarget || r0.isCompressedArrayTexture ? v.TEXTURE_2D_ARRAY : v.TEXTURE_2D;
30460
30460
  }
30461
- function lt(r0, t0, m0, v0, N0 = !1) {
30461
+ function lt(r0, t0, m0, v0, K0 = !1) {
30462
30462
  if (r0 !== null) {
30463
30463
  if (v[r0] !== void 0) return v[r0];
30464
30464
  console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '" + r0 + "'");
30465
30465
  }
30466
30466
  let R0 = t0;
30467
30467
  if (t0 === v.RED && (m0 === v.FLOAT && (R0 = v.R32F), m0 === v.HALF_FLOAT && (R0 = v.R16F), m0 === v.UNSIGNED_BYTE && (R0 = v.R8)), t0 === v.RED_INTEGER && (m0 === v.UNSIGNED_BYTE && (R0 = v.R8UI), m0 === v.UNSIGNED_SHORT && (R0 = v.R16UI), m0 === v.UNSIGNED_INT && (R0 = v.R32UI), m0 === v.BYTE && (R0 = v.R8I), m0 === v.SHORT && (R0 = v.R16I), m0 === v.INT && (R0 = v.R32I)), t0 === v.RG && (m0 === v.FLOAT && (R0 = v.RG32F), m0 === v.HALF_FLOAT && (R0 = v.RG16F), m0 === v.UNSIGNED_BYTE && (R0 = v.RG8)), t0 === v.RG_INTEGER && (m0 === v.UNSIGNED_BYTE && (R0 = v.RG8UI), m0 === v.UNSIGNED_SHORT && (R0 = v.RG16UI), m0 === v.UNSIGNED_INT && (R0 = v.RG32UI), m0 === v.BYTE && (R0 = v.RG8I), m0 === v.SHORT && (R0 = v.RG16I), m0 === v.INT && (R0 = v.RG32I)), t0 === v.RGB_INTEGER && (m0 === v.UNSIGNED_BYTE && (R0 = v.RGB8UI), m0 === v.UNSIGNED_SHORT && (R0 = v.RGB16UI), m0 === v.UNSIGNED_INT && (R0 = v.RGB32UI), m0 === v.BYTE && (R0 = v.RGB8I), m0 === v.SHORT && (R0 = v.RGB16I), m0 === v.INT && (R0 = v.RGB32I)), t0 === v.RGBA_INTEGER && (m0 === v.UNSIGNED_BYTE && (R0 = v.RGBA8UI), m0 === v.UNSIGNED_SHORT && (R0 = v.RGBA16UI), m0 === v.UNSIGNED_INT && (R0 = v.RGBA32UI), m0 === v.BYTE && (R0 = v.RGBA8I), m0 === v.SHORT && (R0 = v.RGBA16I), m0 === v.INT && (R0 = v.RGBA32I)), t0 === v.RGB && m0 === v.UNSIGNED_INT_5_9_9_9_REV && (R0 = v.RGB9_E5), t0 === v.RGBA) {
30468
- const Xi = N0 ? LinearTransfer : ColorManagement.getTransfer(v0);
30468
+ const Xi = K0 ? LinearTransfer : ColorManagement.getTransfer(v0);
30469
30469
  m0 === v.FLOAT && (R0 = v.RGBA32F), m0 === v.HALF_FLOAT && (R0 = v.RGBA16F), m0 === v.UNSIGNED_BYTE && (R0 = Xi === SRGBTransfer ? v.SRGB8_ALPHA8 : v.RGBA8), m0 === v.UNSIGNED_SHORT_4_4_4_4 && (R0 = v.RGBA4), m0 === v.UNSIGNED_SHORT_5_5_5_1 && (R0 = v.RGB5_A1);
30470
30470
  }
30471
30471
  return (R0 === v.R16F || R0 === v.R32F || R0 === v.RG16F || R0 === v.RG32F || R0 === v.RGBA16F || R0 === v.RGBA32F) && t.get("EXT_color_buffer_float"), R0;
@@ -30490,8 +30490,8 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30490
30490
  if (t0.__webglInit === void 0) return;
30491
30491
  const m0 = r0.source, v0 = Fe.get(m0);
30492
30492
  if (v0) {
30493
- const N0 = v0[t0.__cacheKey];
30494
- N0.usedTimes--, N0.usedTimes === 0 && wt(r0), Object.keys(v0).length === 0 && Fe.delete(m0);
30493
+ const K0 = v0[t0.__cacheKey];
30494
+ K0.usedTimes--, K0.usedTimes === 0 && wt(r0), Object.keys(v0).length === 0 && Fe.delete(m0);
30495
30495
  }
30496
30496
  m.remove(r0);
30497
30497
  }
@@ -30506,7 +30506,7 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30506
30506
  if (r0.depthTexture && (r0.depthTexture.dispose(), m.remove(r0.depthTexture)), r0.isWebGLCubeRenderTarget)
30507
30507
  for (let v0 = 0; v0 < 6; v0++) {
30508
30508
  if (Array.isArray(t0.__webglFramebuffer[v0]))
30509
- for (let N0 = 0; N0 < t0.__webglFramebuffer[v0].length; N0++) v.deleteFramebuffer(t0.__webglFramebuffer[v0][N0]);
30509
+ for (let K0 = 0; K0 < t0.__webglFramebuffer[v0].length; K0++) v.deleteFramebuffer(t0.__webglFramebuffer[v0][K0]);
30510
30510
  else
30511
30511
  v.deleteFramebuffer(t0.__webglFramebuffer[v0]);
30512
30512
  t0.__webglDepthbuffer && v.deleteRenderbuffer(t0.__webglDepthbuffer[v0]);
@@ -30522,7 +30522,7 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30522
30522
  t0.__webglDepthRenderbuffer && v.deleteRenderbuffer(t0.__webglDepthRenderbuffer);
30523
30523
  }
30524
30524
  const m0 = r0.textures;
30525
- for (let v0 = 0, N0 = m0.length; v0 < N0; v0++) {
30525
+ for (let v0 = 0, K0 = m0.length; v0 < K0; v0++) {
30526
30526
  const R0 = m.get(m0[v0]);
30527
30527
  R0.__webglTexture && (v.deleteTexture(R0.__webglTexture), I.memory.textures--), m.remove(m0[v0]);
30528
30528
  }
@@ -30613,16 +30613,16 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30613
30613
  let m0 = !1;
30614
30614
  r0.__webglInit === void 0 && (r0.__webglInit = !0, t0.addEventListener("dispose", Lt));
30615
30615
  const v0 = t0.source;
30616
- let N0 = Fe.get(v0);
30617
- N0 === void 0 && (N0 = {}, Fe.set(v0, N0));
30616
+ let K0 = Fe.get(v0);
30617
+ K0 === void 0 && (K0 = {}, Fe.set(v0, K0));
30618
30618
  const R0 = s0(t0);
30619
30619
  if (R0 !== r0.__cacheKey) {
30620
- N0[R0] === void 0 && (N0[R0] = {
30620
+ K0[R0] === void 0 && (K0[R0] = {
30621
30621
  texture: v.createTexture(),
30622
30622
  usedTimes: 0
30623
- }, I.memory.textures++, m0 = !0), N0[R0].usedTimes++;
30624
- const Xi = N0[r0.__cacheKey];
30625
- Xi !== void 0 && (N0[r0.__cacheKey].usedTimes--, Xi.usedTimes === 0 && wt(t0)), r0.__cacheKey = R0, r0.__webglTexture = N0[R0].texture;
30623
+ }, I.memory.textures++, m0 = !0), K0[R0].usedTimes++;
30624
+ const Xi = K0[r0.__cacheKey];
30625
+ Xi !== void 0 && (K0[r0.__cacheKey].usedTimes--, Xi.usedTimes === 0 && wt(t0)), r0.__cacheKey = R0, r0.__webglTexture = K0[R0].texture;
30626
30626
  }
30627
30627
  return m0;
30628
30628
  }
@@ -30656,10 +30656,10 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30656
30656
  function _0(r0, t0, m0) {
30657
30657
  let v0 = v.TEXTURE_2D;
30658
30658
  (t0.isDataArrayTexture || t0.isCompressedArrayTexture) && (v0 = v.TEXTURE_2D_ARRAY), t0.isData3DTexture && (v0 = v.TEXTURE_3D);
30659
- const N0 = j0(r0, t0), R0 = t0.source;
30659
+ const K0 = j0(r0, t0), R0 = t0.source;
30660
30660
  r.bindTexture(v0, r0.__webglTexture, v.TEXTURE0 + m0);
30661
30661
  const Xi = m.get(R0);
30662
- if (R0.version !== Xi.__version || N0 === !0) {
30662
+ if (R0.version !== Xi.__version || K0 === !0) {
30663
30663
  r.activeTexture(v.TEXTURE0 + m0);
30664
30664
  const q0 = ColorManagement.getPrimaries(ColorManagement.workingColorSpace), Zi = t0.colorSpace === NoColorSpace ? null : ColorManagement.getPrimaries(t0.colorSpace), Pi = t0.colorSpace === NoColorSpace || q0 === Zi ? v.NONE : v.BROWSER_DEFAULT_WEBGL;
30665
30665
  v.pixelStorei(v.UNPACK_FLIP_Y_WEBGL, t0.flipY), v.pixelStorei(v.UNPACK_PREMULTIPLY_ALPHA_WEBGL, t0.premultiplyAlpha), v.pixelStorei(v.UNPACK_ALIGNMENT, t0.unpackAlignment), v.pixelStorei(v.UNPACK_COLORSPACE_CONVERSION_WEBGL, Pi);
@@ -30669,7 +30669,7 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30669
30669
  let Ii = lt(t0.internalFormat, Ci, Ei, t0.colorSpace, t0.isVideoTexture);
30670
30670
  T0(v0, t0);
30671
30671
  let Li;
30672
- const Ni = t0.mipmaps, f0 = t0.isVideoTexture !== !0, xi = Xi.__version === void 0 || N0 === !0, w0 = R0.dataReady, Wi = xt(t0, gi);
30672
+ const Ni = t0.mipmaps, f0 = t0.isVideoTexture !== !0, xi = Xi.__version === void 0 || K0 === !0, w0 = R0.dataReady, Wi = xt(t0, gi);
30673
30673
  if (t0.isDepthTexture)
30674
30674
  Ii = dt(t0.format === DepthStencilFormat, t0.type), xi && (f0 ? r.texStorage2D(v.TEXTURE_2D, 1, Ii, gi.width, gi.height) : r.texImage2D(v.TEXTURE_2D, 0, Ii, gi.width, gi.height, 0, Ci, Ei, null));
30675
30675
  else if (t0.isDataTexture)
@@ -30761,17 +30761,17 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30761
30761
  }
30762
30762
  function k0(r0, t0, m0) {
30763
30763
  if (t0.image.length !== 6) return;
30764
- const v0 = j0(r0, t0), N0 = t0.source;
30764
+ const v0 = j0(r0, t0), K0 = t0.source;
30765
30765
  r.bindTexture(v.TEXTURE_CUBE_MAP, r0.__webglTexture, v.TEXTURE0 + m0);
30766
- const R0 = m.get(N0);
30767
- if (N0.version !== R0.__version || v0 === !0) {
30766
+ const R0 = m.get(K0);
30767
+ if (K0.version !== R0.__version || v0 === !0) {
30768
30768
  r.activeTexture(v.TEXTURE0 + m0);
30769
30769
  const Xi = ColorManagement.getPrimaries(ColorManagement.workingColorSpace), q0 = t0.colorSpace === NoColorSpace ? null : ColorManagement.getPrimaries(t0.colorSpace), Zi = t0.colorSpace === NoColorSpace || Xi === q0 ? v.NONE : v.BROWSER_DEFAULT_WEBGL;
30770
30770
  v.pixelStorei(v.UNPACK_FLIP_Y_WEBGL, t0.flipY), v.pixelStorei(v.UNPACK_PREMULTIPLY_ALPHA_WEBGL, t0.premultiplyAlpha), v.pixelStorei(v.UNPACK_ALIGNMENT, t0.unpackAlignment), v.pixelStorei(v.UNPACK_COLORSPACE_CONVERSION_WEBGL, Zi);
30771
30771
  const Pi = t0.isCompressedTexture || t0.image[0].isCompressedTexture, gi = t0.image[0] && t0.image[0].isDataTexture, Ci = [];
30772
30772
  for (let J0 = 0; J0 < 6; J0++)
30773
30773
  !Pi && !gi ? Ci[J0] = ht(t0.image[J0], !0, C.maxCubemapSize) : Ci[J0] = gi ? t0.image[J0].image : t0.image[J0], Ci[J0] = A0(t0, Ci[J0]);
30774
- const Ei = Ci[0], Ii = _.convert(t0.format, t0.colorSpace), Li = _.convert(t0.type), Ni = lt(t0.internalFormat, Ii, Li, t0.colorSpace), f0 = t0.isVideoTexture !== !0, xi = R0.__version === void 0 || v0 === !0, w0 = N0.dataReady;
30774
+ const Ei = Ci[0], Ii = _.convert(t0.format, t0.colorSpace), Li = _.convert(t0.type), Ni = lt(t0.internalFormat, Ii, Li, t0.colorSpace), f0 = t0.isVideoTexture !== !0, xi = R0.__version === void 0 || v0 === !0, w0 = K0.dataReady;
30775
30775
  let Wi = xt(t0, Ei);
30776
30776
  T0(v.TEXTURE_CUBE_MAP, t0);
30777
30777
  let Mi;
@@ -30805,26 +30805,26 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30805
30805
  }
30806
30806
  }
30807
30807
  }
30808
- at(t0) && Ae(v.TEXTURE_CUBE_MAP), R0.__version = N0.version, t0.onUpdate && t0.onUpdate(t0);
30808
+ at(t0) && Ae(v.TEXTURE_CUBE_MAP), R0.__version = K0.version, t0.onUpdate && t0.onUpdate(t0);
30809
30809
  }
30810
30810
  r0.__version = t0.version;
30811
30811
  }
30812
- function bi(r0, t0, m0, v0, N0, R0) {
30812
+ function bi(r0, t0, m0, v0, K0, R0) {
30813
30813
  const Xi = _.convert(m0.format, m0.colorSpace), q0 = _.convert(m0.type), Zi = lt(m0.internalFormat, Xi, q0, m0.colorSpace), Pi = m.get(t0), gi = m.get(m0);
30814
30814
  if (gi.__renderTarget = t0, !Pi.__hasExternalTextures) {
30815
30815
  const Ci = Math.max(1, t0.width >> R0), Ei = Math.max(1, t0.height >> R0);
30816
- N0 === v.TEXTURE_3D || N0 === v.TEXTURE_2D_ARRAY ? r.texImage3D(N0, R0, Zi, Ci, Ei, t0.depth, 0, Xi, q0, null) : r.texImage2D(N0, R0, Zi, Ci, Ei, 0, Xi, q0, null);
30816
+ K0 === v.TEXTURE_3D || K0 === v.TEXTURE_2D_ARRAY ? r.texImage3D(K0, R0, Zi, Ci, Ei, t0.depth, 0, Xi, q0, null) : r.texImage2D(K0, R0, Zi, Ci, Ei, 0, Xi, q0, null);
30817
30817
  }
30818
- r.bindFramebuffer(v.FRAMEBUFFER, r0), S0(t0) ? O.framebufferTexture2DMultisampleEXT(v.FRAMEBUFFER, v0, N0, gi.__webglTexture, 0, Q0(t0)) : (N0 === v.TEXTURE_2D || N0 >= v.TEXTURE_CUBE_MAP_POSITIVE_X && N0 <= v.TEXTURE_CUBE_MAP_NEGATIVE_Z) && v.framebufferTexture2D(v.FRAMEBUFFER, v0, N0, gi.__webglTexture, R0), r.bindFramebuffer(v.FRAMEBUFFER, null);
30818
+ r.bindFramebuffer(v.FRAMEBUFFER, r0), S0(t0) ? O.framebufferTexture2DMultisampleEXT(v.FRAMEBUFFER, v0, K0, gi.__webglTexture, 0, Q0(t0)) : (K0 === v.TEXTURE_2D || K0 >= v.TEXTURE_CUBE_MAP_POSITIVE_X && K0 <= v.TEXTURE_CUBE_MAP_NEGATIVE_Z) && v.framebufferTexture2D(v.FRAMEBUFFER, v0, K0, gi.__webglTexture, R0), r.bindFramebuffer(v.FRAMEBUFFER, null);
30819
30819
  }
30820
30820
  function yi(r0, t0, m0) {
30821
30821
  if (v.bindRenderbuffer(v.RENDERBUFFER, r0), t0.depthBuffer) {
30822
- const v0 = t0.depthTexture, N0 = v0 && v0.isDepthTexture ? v0.type : null, R0 = dt(t0.stencilBuffer, N0), Xi = t0.stencilBuffer ? v.DEPTH_STENCIL_ATTACHMENT : v.DEPTH_ATTACHMENT, q0 = Q0(t0);
30822
+ const v0 = t0.depthTexture, K0 = v0 && v0.isDepthTexture ? v0.type : null, R0 = dt(t0.stencilBuffer, K0), Xi = t0.stencilBuffer ? v.DEPTH_STENCIL_ATTACHMENT : v.DEPTH_ATTACHMENT, q0 = Q0(t0);
30823
30823
  S0(t0) ? O.renderbufferStorageMultisampleEXT(v.RENDERBUFFER, q0, R0, t0.width, t0.height) : m0 ? v.renderbufferStorageMultisample(v.RENDERBUFFER, q0, R0, t0.width, t0.height) : v.renderbufferStorage(v.RENDERBUFFER, R0, t0.width, t0.height), v.framebufferRenderbuffer(v.FRAMEBUFFER, Xi, v.RENDERBUFFER, r0);
30824
30824
  } else {
30825
30825
  const v0 = t0.textures;
30826
- for (let N0 = 0; N0 < v0.length; N0++) {
30827
- const R0 = v0[N0], Xi = _.convert(R0.format, R0.colorSpace), q0 = _.convert(R0.type), Zi = lt(R0.internalFormat, Xi, q0, R0.colorSpace), Pi = Q0(t0);
30826
+ for (let K0 = 0; K0 < v0.length; K0++) {
30827
+ const R0 = v0[K0], Xi = _.convert(R0.format, R0.colorSpace), q0 = _.convert(R0.type), Zi = lt(R0.internalFormat, Xi, q0, R0.colorSpace), Pi = Q0(t0);
30828
30828
  m0 && S0(t0) === !1 ? v.renderbufferStorageMultisample(v.RENDERBUFFER, Pi, Zi, t0.width, t0.height) : S0(t0) ? O.renderbufferStorageMultisampleEXT(v.RENDERBUFFER, Pi, Zi, t0.width, t0.height) : v.renderbufferStorage(v.RENDERBUFFER, Zi, t0.width, t0.height);
30829
30829
  }
30830
30830
  }
@@ -30836,11 +30836,11 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30836
30836
  throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
30837
30837
  const v0 = m.get(t0.depthTexture);
30838
30838
  v0.__renderTarget = t0, (!v0.__webglTexture || t0.depthTexture.image.width !== t0.width || t0.depthTexture.image.height !== t0.height) && (t0.depthTexture.image.width = t0.width, t0.depthTexture.image.height = t0.height, t0.depthTexture.needsUpdate = !0), qt(t0.depthTexture, 0);
30839
- const N0 = v0.__webglTexture, R0 = Q0(t0);
30839
+ const K0 = v0.__webglTexture, R0 = Q0(t0);
30840
30840
  if (t0.depthTexture.format === DepthFormat)
30841
- S0(t0) ? O.framebufferTexture2DMultisampleEXT(v.FRAMEBUFFER, v.DEPTH_ATTACHMENT, v.TEXTURE_2D, N0, 0, R0) : v.framebufferTexture2D(v.FRAMEBUFFER, v.DEPTH_ATTACHMENT, v.TEXTURE_2D, N0, 0);
30841
+ S0(t0) ? O.framebufferTexture2DMultisampleEXT(v.FRAMEBUFFER, v.DEPTH_ATTACHMENT, v.TEXTURE_2D, K0, 0, R0) : v.framebufferTexture2D(v.FRAMEBUFFER, v.DEPTH_ATTACHMENT, v.TEXTURE_2D, K0, 0);
30842
30842
  else if (t0.depthTexture.format === DepthStencilFormat)
30843
- S0(t0) ? O.framebufferTexture2DMultisampleEXT(v.FRAMEBUFFER, v.DEPTH_STENCIL_ATTACHMENT, v.TEXTURE_2D, N0, 0, R0) : v.framebufferTexture2D(v.FRAMEBUFFER, v.DEPTH_STENCIL_ATTACHMENT, v.TEXTURE_2D, N0, 0);
30843
+ S0(t0) ? O.framebufferTexture2DMultisampleEXT(v.FRAMEBUFFER, v.DEPTH_STENCIL_ATTACHMENT, v.TEXTURE_2D, K0, 0, R0) : v.framebufferTexture2D(v.FRAMEBUFFER, v.DEPTH_STENCIL_ATTACHMENT, v.TEXTURE_2D, K0, 0);
30844
30844
  else
30845
30845
  throw new Error("Unknown depthTexture format");
30846
30846
  }
@@ -30849,10 +30849,10 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30849
30849
  if (t0.__boundDepthTexture !== r0.depthTexture) {
30850
30850
  const v0 = r0.depthTexture;
30851
30851
  if (t0.__depthDisposeCallback && t0.__depthDisposeCallback(), v0) {
30852
- const N0 = () => {
30853
- delete t0.__boundDepthTexture, delete t0.__depthDisposeCallback, v0.removeEventListener("dispose", N0);
30852
+ const K0 = () => {
30853
+ delete t0.__boundDepthTexture, delete t0.__depthDisposeCallback, v0.removeEventListener("dispose", K0);
30854
30854
  };
30855
- v0.addEventListener("dispose", N0), t0.__depthDisposeCallback = N0;
30855
+ v0.addEventListener("dispose", K0), t0.__depthDisposeCallback = K0;
30856
30856
  }
30857
30857
  t0.__boundDepthTexture = v0;
30858
30858
  }
@@ -30866,16 +30866,16 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30866
30866
  if (r.bindFramebuffer(v.FRAMEBUFFER, t0.__webglFramebuffer[v0]), t0.__webglDepthbuffer[v0] === void 0)
30867
30867
  t0.__webglDepthbuffer[v0] = v.createRenderbuffer(), yi(t0.__webglDepthbuffer[v0], r0, !1);
30868
30868
  else {
30869
- const N0 = r0.stencilBuffer ? v.DEPTH_STENCIL_ATTACHMENT : v.DEPTH_ATTACHMENT, R0 = t0.__webglDepthbuffer[v0];
30870
- v.bindRenderbuffer(v.RENDERBUFFER, R0), v.framebufferRenderbuffer(v.FRAMEBUFFER, N0, v.RENDERBUFFER, R0);
30869
+ const K0 = r0.stencilBuffer ? v.DEPTH_STENCIL_ATTACHMENT : v.DEPTH_ATTACHMENT, R0 = t0.__webglDepthbuffer[v0];
30870
+ v.bindRenderbuffer(v.RENDERBUFFER, R0), v.framebufferRenderbuffer(v.FRAMEBUFFER, K0, v.RENDERBUFFER, R0);
30871
30871
  }
30872
30872
  } else {
30873
30873
  const v0 = r0.texture.mipmaps;
30874
30874
  if (v0 && v0.length > 0 ? r.bindFramebuffer(v.FRAMEBUFFER, t0.__webglFramebuffer[0]) : r.bindFramebuffer(v.FRAMEBUFFER, t0.__webglFramebuffer), t0.__webglDepthbuffer === void 0)
30875
30875
  t0.__webglDepthbuffer = v.createRenderbuffer(), yi(t0.__webglDepthbuffer, r0, !1);
30876
30876
  else {
30877
- const N0 = r0.stencilBuffer ? v.DEPTH_STENCIL_ATTACHMENT : v.DEPTH_ATTACHMENT, R0 = t0.__webglDepthbuffer;
30878
- v.bindRenderbuffer(v.RENDERBUFFER, R0), v.framebufferRenderbuffer(v.FRAMEBUFFER, N0, v.RENDERBUFFER, R0);
30877
+ const K0 = r0.stencilBuffer ? v.DEPTH_STENCIL_ATTACHMENT : v.DEPTH_ATTACHMENT, R0 = t0.__webglDepthbuffer;
30878
+ v.bindRenderbuffer(v.RENDERBUFFER, R0), v.framebufferRenderbuffer(v.FRAMEBUFFER, K0, v.RENDERBUFFER, R0);
30879
30879
  }
30880
30880
  }
30881
30881
  r.bindFramebuffer(v.FRAMEBUFFER, null);
@@ -30887,7 +30887,7 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30887
30887
  function a0(r0) {
30888
30888
  const t0 = r0.texture, m0 = m.get(r0), v0 = m.get(t0);
30889
30889
  r0.addEventListener("dispose", Xt);
30890
- const N0 = r0.textures, R0 = r0.isWebGLCubeRenderTarget === !0, Xi = N0.length > 1;
30890
+ const K0 = r0.textures, R0 = r0.isWebGLCubeRenderTarget === !0, Xi = K0.length > 1;
30891
30891
  if (Xi || (v0.__webglTexture === void 0 && (v0.__webglTexture = v.createTexture()), v0.__version = t0.version, I.memory.textures++), R0) {
30892
30892
  m0.__webglFramebuffer = [];
30893
30893
  for (let q0 = 0; q0 < 6; q0++)
@@ -30905,14 +30905,14 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30905
30905
  } else
30906
30906
  m0.__webglFramebuffer = v.createFramebuffer();
30907
30907
  if (Xi)
30908
- for (let q0 = 0, Zi = N0.length; q0 < Zi; q0++) {
30909
- const Pi = m.get(N0[q0]);
30908
+ for (let q0 = 0, Zi = K0.length; q0 < Zi; q0++) {
30909
+ const Pi = m.get(K0[q0]);
30910
30910
  Pi.__webglTexture === void 0 && (Pi.__webglTexture = v.createTexture(), I.memory.textures++);
30911
30911
  }
30912
30912
  if (r0.samples > 0 && S0(r0) === !1) {
30913
30913
  m0.__webglMultisampledFramebuffer = v.createFramebuffer(), m0.__webglColorRenderbuffer = [], r.bindFramebuffer(v.FRAMEBUFFER, m0.__webglMultisampledFramebuffer);
30914
- for (let q0 = 0; q0 < N0.length; q0++) {
30915
- const Zi = N0[q0];
30914
+ for (let q0 = 0; q0 < K0.length; q0++) {
30915
+ const Zi = K0[q0];
30916
30916
  m0.__webglColorRenderbuffer[q0] = v.createRenderbuffer(), v.bindRenderbuffer(v.RENDERBUFFER, m0.__webglColorRenderbuffer[q0]);
30917
30917
  const Pi = _.convert(Zi.format, Zi.colorSpace), gi = _.convert(Zi.type), Ci = lt(Zi.internalFormat, Pi, gi, Zi.colorSpace, r0.isXRRenderTarget === !0), Ei = Q0(r0);
30918
30918
  v.renderbufferStorageMultisample(v.RENDERBUFFER, Ei, Ci, r0.width, r0.height), v.framebufferRenderbuffer(v.FRAMEBUFFER, v.COLOR_ATTACHMENT0 + q0, v.RENDERBUFFER, m0.__webglColorRenderbuffer[q0]);
@@ -30930,8 +30930,8 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30930
30930
  bi(m0.__webglFramebuffer[q0], r0, t0, v.COLOR_ATTACHMENT0, v.TEXTURE_CUBE_MAP_POSITIVE_X + q0, 0);
30931
30931
  at(t0) && Ae(v.TEXTURE_CUBE_MAP), r.unbindTexture();
30932
30932
  } else if (Xi) {
30933
- for (let q0 = 0, Zi = N0.length; q0 < Zi; q0++) {
30934
- const Pi = N0[q0], gi = m.get(Pi);
30933
+ for (let q0 = 0, Zi = K0.length; q0 < Zi; q0++) {
30934
+ const Pi = K0[q0], gi = m.get(Pi);
30935
30935
  let Ci = v.TEXTURE_2D;
30936
30936
  (r0.isWebGL3DRenderTarget || r0.isWebGLArrayRenderTarget) && (Ci = r0.isWebGL3DRenderTarget ? v.TEXTURE_3D : v.TEXTURE_2D_ARRAY), r.bindTexture(Ci, gi.__webglTexture), T0(Ci, Pi), bi(m0.__webglFramebuffer, r0, Pi, v.COLOR_ATTACHMENT0 + q0, Ci, 0), at(Pi) && Ae(Ci);
30937
30937
  }
@@ -30950,9 +30950,9 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30950
30950
  function P0(r0) {
30951
30951
  const t0 = r0.textures;
30952
30952
  for (let m0 = 0, v0 = t0.length; m0 < v0; m0++) {
30953
- const N0 = t0[m0];
30954
- if (at(N0)) {
30955
- const R0 = ct(r0), Xi = m.get(N0).__webglTexture;
30953
+ const K0 = t0[m0];
30954
+ if (at(K0)) {
30955
+ const R0 = ct(r0), Xi = m.get(K0).__webglTexture;
30956
30956
  r.bindTexture(R0, Xi), Ae(R0), r.unbindTexture();
30957
30957
  }
30958
30958
  }
@@ -30962,7 +30962,7 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30962
30962
  if (r0.samples > 0) {
30963
30963
  if (S0(r0) === !1) {
30964
30964
  const t0 = r0.textures, m0 = r0.width, v0 = r0.height;
30965
- let N0 = v.COLOR_BUFFER_BIT;
30965
+ let K0 = v.COLOR_BUFFER_BIT;
30966
30966
  const R0 = r0.stencilBuffer ? v.DEPTH_STENCIL_ATTACHMENT : v.DEPTH_ATTACHMENT, Xi = m.get(r0), q0 = t0.length > 1;
30967
30967
  if (q0)
30968
30968
  for (let Pi = 0; Pi < t0.length; Pi++)
@@ -30971,12 +30971,12 @@ function WebGLTextures(v, t, r, m, C, _, I) {
30971
30971
  const Zi = r0.texture.mipmaps;
30972
30972
  Zi && Zi.length > 0 ? r.bindFramebuffer(v.DRAW_FRAMEBUFFER, Xi.__webglFramebuffer[0]) : r.bindFramebuffer(v.DRAW_FRAMEBUFFER, Xi.__webglFramebuffer);
30973
30973
  for (let Pi = 0; Pi < t0.length; Pi++) {
30974
- if (r0.resolveDepthBuffer && (r0.depthBuffer && (N0 |= v.DEPTH_BUFFER_BIT), r0.stencilBuffer && r0.resolveStencilBuffer && (N0 |= v.STENCIL_BUFFER_BIT)), q0) {
30974
+ if (r0.resolveDepthBuffer && (r0.depthBuffer && (K0 |= v.DEPTH_BUFFER_BIT), r0.stencilBuffer && r0.resolveStencilBuffer && (K0 |= v.STENCIL_BUFFER_BIT)), q0) {
30975
30975
  v.framebufferRenderbuffer(v.READ_FRAMEBUFFER, v.COLOR_ATTACHMENT0, v.RENDERBUFFER, Xi.__webglColorRenderbuffer[Pi]);
30976
30976
  const gi = m.get(t0[Pi]).__webglTexture;
30977
30977
  v.framebufferTexture2D(v.DRAW_FRAMEBUFFER, v.COLOR_ATTACHMENT0, v.TEXTURE_2D, gi, 0);
30978
30978
  }
30979
- v.blitFramebuffer(0, 0, m0, v0, 0, 0, m0, v0, N0, v.NEAREST), ve === !0 && (E0.length = 0, O0.length = 0, E0.push(v.COLOR_ATTACHMENT0 + Pi), r0.depthBuffer && r0.resolveDepthBuffer === !1 && (E0.push(R0), O0.push(R0), v.invalidateFramebuffer(v.DRAW_FRAMEBUFFER, O0)), v.invalidateFramebuffer(v.READ_FRAMEBUFFER, E0));
30979
+ v.blitFramebuffer(0, 0, m0, v0, 0, 0, m0, v0, K0, v.NEAREST), ve === !0 && (E0.length = 0, O0.length = 0, E0.push(v.COLOR_ATTACHMENT0 + Pi), r0.depthBuffer && r0.resolveDepthBuffer === !1 && (E0.push(R0), O0.push(R0), v.invalidateFramebuffer(v.DRAW_FRAMEBUFFER, O0)), v.invalidateFramebuffer(v.READ_FRAMEBUFFER, E0));
30980
30980
  }
30981
30981
  if (r.bindFramebuffer(v.READ_FRAMEBUFFER, null), r.bindFramebuffer(v.DRAW_FRAMEBUFFER, null), q0)
30982
30982
  for (let Pi = 0; Pi < t0.length; Pi++) {
@@ -31003,8 +31003,8 @@ function WebGLTextures(v, t, r, m, C, _, I) {
31003
31003
  Pe.get(r0) !== t0 && (Pe.set(r0, t0), r0.update());
31004
31004
  }
31005
31005
  function A0(r0, t0) {
31006
- const m0 = r0.colorSpace, v0 = r0.format, N0 = r0.type;
31007
- return r0.isCompressedTexture === !0 || r0.isVideoTexture === !0 || m0 !== LinearSRGBColorSpace && m0 !== NoColorSpace && (ColorManagement.getTransfer(m0) === SRGBTransfer ? (v0 !== RGBAFormat || N0 !== UnsignedByteType) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", m0)), t0;
31006
+ const m0 = r0.colorSpace, v0 = r0.format, K0 = r0.type;
31007
+ return r0.isCompressedTexture === !0 || r0.isVideoTexture === !0 || m0 !== LinearSRGBColorSpace && m0 !== NoColorSpace && (ColorManagement.getTransfer(m0) === SRGBTransfer ? (v0 !== RGBAFormat || K0 !== UnsignedByteType) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", m0)), t0;
31008
31008
  }
31009
31009
  function B0(r0) {
31010
31010
  return typeof HTMLImageElement != "undefined" && r0 instanceof HTMLImageElement ? (Ce.width = r0.naturalWidth || r0.width, Ce.height = r0.naturalHeight || r0.height) : typeof VideoFrame != "undefined" && r0 instanceof VideoFrame ? (Ce.width = r0.displayWidth, Ce.height = r0.displayHeight) : (Ce.width = r0.width, Ce.height = r0.height), Ce;
@@ -31259,7 +31259,7 @@ class WebXRManager extends EventDispatcher {
31259
31259
  }, this.getSession = function() {
31260
31260
  return C;
31261
31261
  }, this.setSession = function(g0) {
31262
- return K0(this, null, function* () {
31262
+ return N0(this, null, function* () {
31263
31263
  if (C = g0, C !== null) {
31264
31264
  if (ct = t.getRenderTarget(), C.addEventListener("select", s0), C.addEventListener("selectstart", s0), C.addEventListener("selectend", s0), C.addEventListener("squeeze", s0), C.addEventListener("squeezestart", s0), C.addEventListener("squeezeend", s0), C.addEventListener("end", qt), C.addEventListener("inputsourceschange", kt), Ae.xrCompatible !== !0 && (yield r.makeXRCompatible()), Xt = t.getPixelRatio(), t.getSize(Lt), typeof XRWebGLBinding != "undefined" && (Ne = new XRWebGLBinding(C, r)), Ne !== null && "createProjectionLayer" in XRWebGLBinding.prototype) {
31265
31265
  let k0 = null, bi = null, yi = null;
@@ -31671,9 +31671,9 @@ class WebGLRenderer {
31671
31671
  } catch (Wt) {
31672
31672
  throw console.error("THREE.WebGLRenderer: " + Wt.message), Wt;
31673
31673
  }
31674
- let E0, O0, F0, Q0, S0, C0, A0, B0, r0, t0, m0, v0, N0, R0, Xi, q0, Zi, Pi, gi, Ci, Ei, Ii, Li, Ni;
31674
+ let E0, O0, F0, Q0, S0, C0, A0, B0, r0, t0, m0, v0, K0, R0, Xi, q0, Zi, Pi, gi, Ci, Ei, Ii, Li, Ni;
31675
31675
  function f0() {
31676
- E0 = new WebGLExtensions(a0), E0.init(), Ii = new WebGLUtils(a0, E0), O0 = new WebGLCapabilities(a0, E0, t, Ii), F0 = new WebGLState(a0, E0), O0.reversedDepthBuffer && Fe && F0.buffers.depth.setReversed(!0), Q0 = new WebGLInfo(a0), S0 = new WebGLProperties(), C0 = new WebGLTextures(a0, E0, F0, S0, O0, Ii, Q0), A0 = new WebGLCubeMaps(dt), B0 = new WebGLCubeUVMaps(dt), r0 = new WebGLAttributes(a0), Li = new WebGLBindingStates(a0, r0), t0 = new WebGLGeometries(a0, r0, Q0, Li), m0 = new WebGLObjects(a0, t0, r0, Q0), gi = new WebGLMorphtargets(a0, O0, C0), q0 = new WebGLClipping(S0), v0 = new WebGLPrograms(dt, A0, B0, E0, O0, Li, q0), N0 = new WebGLMaterials(dt, S0), R0 = new WebGLRenderLists(), Xi = new WebGLRenderStates(E0), Pi = new WebGLBackground(dt, A0, B0, F0, m0, ke, ve), Zi = new WebGLShadowMap(dt, m0, O0), Ni = new WebGLUniformsGroups(a0, Q0, O0, F0), Ci = new WebGLBufferRenderer(a0, E0, Q0), Ei = new WebGLIndexedBufferRenderer(a0, E0, Q0), Q0.programs = v0.programs, dt.capabilities = O0, dt.extensions = E0, dt.properties = S0, dt.renderLists = R0, dt.shadowMap = Zi, dt.state = F0, dt.info = Q0;
31676
+ E0 = new WebGLExtensions(a0), E0.init(), Ii = new WebGLUtils(a0, E0), O0 = new WebGLCapabilities(a0, E0, t, Ii), F0 = new WebGLState(a0, E0), O0.reversedDepthBuffer && Fe && F0.buffers.depth.setReversed(!0), Q0 = new WebGLInfo(a0), S0 = new WebGLProperties(), C0 = new WebGLTextures(a0, E0, F0, S0, O0, Ii, Q0), A0 = new WebGLCubeMaps(dt), B0 = new WebGLCubeUVMaps(dt), r0 = new WebGLAttributes(a0), Li = new WebGLBindingStates(a0, r0), t0 = new WebGLGeometries(a0, r0, Q0, Li), m0 = new WebGLObjects(a0, t0, r0, Q0), gi = new WebGLMorphtargets(a0, O0, C0), q0 = new WebGLClipping(S0), v0 = new WebGLPrograms(dt, A0, B0, E0, O0, Li, q0), K0 = new WebGLMaterials(dt, S0), R0 = new WebGLRenderLists(), Xi = new WebGLRenderStates(E0), Pi = new WebGLBackground(dt, A0, B0, F0, m0, ke, ve), Zi = new WebGLShadowMap(dt, m0, O0), Ni = new WebGLUniformsGroups(a0, Q0, O0, F0), Ci = new WebGLBufferRenderer(a0, E0, Q0), Ei = new WebGLIndexedBufferRenderer(a0, E0, Q0), Q0.programs = v0.programs, dt.capabilities = O0, dt.extensions = E0, dt.properties = S0, dt.renderLists = R0, dt.shadowMap = Zi, dt.state = F0, dt.info = Q0;
31677
31677
  }
31678
31678
  f0();
31679
31679
  const xi = new WebXRManager(dt, a0);
@@ -32033,7 +32033,7 @@ class WebGLRenderer {
32033
32033
  }
32034
32034
  h0.isBatchedMesh && (Hi.setOptional(a0, h0, "batchingTexture"), Hi.setValue(a0, "batchingTexture", h0._matricesTexture, C0), Hi.setOptional(a0, h0, "batchingIdTexture"), Hi.setValue(a0, "batchingIdTexture", h0._indirectTexture, C0), Hi.setOptional(a0, h0, "batchingColorTexture"), h0._colorsTexture !== null && Hi.setValue(a0, "batchingColorTexture", h0._colorsTexture, C0));
32035
32035
  const Di = o0.morphAttributes;
32036
- if ((Di.position !== void 0 || Di.normal !== void 0 || Di.color !== void 0) && gi.update(h0, o0, Oi), (Ji || Ri.receiveShadow !== h0.receiveShadow) && (Ri.receiveShadow = h0.receiveShadow, Hi.setValue(a0, "receiveShadow", h0.receiveShadow)), c0.isMeshGouraudMaterial && c0.envMap !== null && (Yi.envMap.value = M0, Yi.flipEnvMap.value = M0.isCubeTexture && M0.isRenderTargetTexture === !1 ? -1 : 1), c0.isMeshStandardMaterial && c0.envMap === null && n0.environment !== null && (Yi.envMapIntensity.value = n0.environmentIntensity), Ji && (Hi.setValue(a0, "toneMappingExposure", dt.toneMappingExposure), Ri.needsLights && Rn(Yi, qi), l0 && c0.fog === !0 && N0.refreshFogUniforms(Yi, l0), N0.refreshMaterialUniforms(Yi, c0, Kt, Yt, Ae.state.transmissionRenderTarget[Wt.id]), WebGLUniforms.upload(a0, Cn(Ri), Yi, C0)), c0.isShaderMaterial && c0.uniformsNeedUpdate === !0 && (WebGLUniforms.upload(a0, Cn(Ri), Yi, C0), c0.uniformsNeedUpdate = !1), c0.isSpriteMaterial && Hi.setValue(a0, "center", h0.center), Hi.setValue(a0, "modelViewMatrix", h0.modelViewMatrix), Hi.setValue(a0, "normalMatrix", h0.normalMatrix), Hi.setValue(a0, "modelMatrix", h0.matrixWorld), c0.isShaderMaterial || c0.isRawShaderMaterial) {
32036
+ if ((Di.position !== void 0 || Di.normal !== void 0 || Di.color !== void 0) && gi.update(h0, o0, Oi), (Ji || Ri.receiveShadow !== h0.receiveShadow) && (Ri.receiveShadow = h0.receiveShadow, Hi.setValue(a0, "receiveShadow", h0.receiveShadow)), c0.isMeshGouraudMaterial && c0.envMap !== null && (Yi.envMap.value = M0, Yi.flipEnvMap.value = M0.isCubeTexture && M0.isRenderTargetTexture === !1 ? -1 : 1), c0.isMeshStandardMaterial && c0.envMap === null && n0.environment !== null && (Yi.envMapIntensity.value = n0.environmentIntensity), Ji && (Hi.setValue(a0, "toneMappingExposure", dt.toneMappingExposure), Ri.needsLights && Rn(Yi, qi), l0 && c0.fog === !0 && K0.refreshFogUniforms(Yi, l0), K0.refreshMaterialUniforms(Yi, c0, Kt, Yt, Ae.state.transmissionRenderTarget[Wt.id]), WebGLUniforms.upload(a0, Cn(Ri), Yi, C0)), c0.isShaderMaterial && c0.uniformsNeedUpdate === !0 && (WebGLUniforms.upload(a0, Cn(Ri), Yi, C0), c0.uniformsNeedUpdate = !1), c0.isSpriteMaterial && Hi.setValue(a0, "center", h0.center), Hi.setValue(a0, "modelViewMatrix", h0.modelViewMatrix), Hi.setValue(a0, "normalMatrix", h0.normalMatrix), Hi.setValue(a0, "modelMatrix", h0.matrixWorld), c0.isShaderMaterial || c0.isRawShaderMaterial) {
32037
32037
  const $i = c0.uniformsGroups;
32038
32038
  for (let nn = 0, on = $i.length; nn < on; nn++) {
32039
32039
  const cn = $i[nn];
@@ -32126,7 +32126,7 @@ class WebGLRenderer {
32126
32126
  }
32127
32127
  }
32128
32128
  }, this.readRenderTargetPixelsAsync = function(Wt, n0, o0, c0, h0, l0, L0, G0 = 0) {
32129
- return K0(this, null, function* () {
32129
+ return N0(this, null, function* () {
32130
32130
  if (!(Wt && Wt.isWebGLRenderTarget))
32131
32131
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
32132
32132
  let M0 = S0.get(Wt).__webglFramebuffer;
@@ -40824,13 +40824,13 @@ let K$1 = class In extends BufferGeometry {
40824
40824
  const C0 = 10000000000000001e-36;
40825
40825
  let A0 = S0[0];
40826
40826
  for (let B0 = 1; B0 <= S0.length; B0++) {
40827
- const r0 = B0 % S0.length, t0 = S0[r0], m0 = t0.x - A0.x, v0 = t0.y - A0.y, N0 = m0 * m0 + v0 * v0, R0 = Math.max(
40827
+ const r0 = B0 % S0.length, t0 = S0[r0], m0 = t0.x - A0.x, v0 = t0.y - A0.y, K0 = m0 * m0 + v0 * v0, R0 = Math.max(
40828
40828
  Math.abs(t0.x),
40829
40829
  Math.abs(t0.y),
40830
40830
  Math.abs(A0.x),
40831
40831
  Math.abs(A0.y)
40832
40832
  ), Xi = C0 * R0 * R0;
40833
- if (N0 <= Xi) {
40833
+ if (K0 <= Xi) {
40834
40834
  S0.splice(r0, 1), B0--;
40835
40835
  continue;
40836
40836
  }
@@ -40849,11 +40849,11 @@ let K$1 = class In extends BufferGeometry {
40849
40849
  const T0 = kt.length;
40850
40850
  function j0(S0, C0, A0) {
40851
40851
  let B0, r0, t0;
40852
- const m0 = S0.x - C0.x, v0 = S0.y - C0.y, N0 = A0.x - S0.x, R0 = A0.y - S0.y, Xi = m0 * m0 + v0 * v0, q0 = m0 * R0 - v0 * N0;
40852
+ const m0 = S0.x - C0.x, v0 = S0.y - C0.y, K0 = A0.x - S0.x, R0 = A0.y - S0.y, Xi = m0 * m0 + v0 * v0, q0 = m0 * R0 - v0 * K0;
40853
40853
  if (Math.abs(q0) > Number.EPSILON) {
40854
40854
  const Zi = Math.sqrt(Xi), Pi = Math.sqrt(
40855
- N0 * N0 + R0 * R0
40856
- ), gi = C0.x - v0 / Zi, Ci = C0.y + m0 / Zi, Ei = A0.x - R0 / Pi, Ii = A0.y + N0 / Pi, Li = ((Ei - gi) * R0 - (Ii - Ci) * N0) / (m0 * R0 - v0 * N0);
40855
+ K0 * K0 + R0 * R0
40856
+ ), gi = C0.x - v0 / Zi, Ci = C0.y + m0 / Zi, Ei = A0.x - R0 / Pi, Ii = A0.y + K0 / Pi, Li = ((Ei - gi) * R0 - (Ii - Ci) * K0) / (m0 * R0 - v0 * K0);
40857
40857
  B0 = gi + m0 * Li - S0.x, r0 = Ci + v0 * Li - S0.y;
40858
40858
  const Ni = B0 * B0 + r0 * r0;
40859
40859
  if (Ni <= 2)
@@ -40861,7 +40861,7 @@ let K$1 = class In extends BufferGeometry {
40861
40861
  t0 = Math.sqrt(Ni / 2);
40862
40862
  } else {
40863
40863
  let Zi = !1;
40864
- m0 > Number.EPSILON ? N0 > Number.EPSILON && (Zi = !0) : m0 < -Number.EPSILON ? N0 < -Number.EPSILON && (Zi = !0) : Math.sign(v0) === Math.sign(R0) && (Zi = !0), Zi ? (B0 = -v0, r0 = m0, t0 = Math.sqrt(Xi)) : (B0 = m0, r0 = v0, t0 = Math.sqrt(Xi / 2));
40864
+ m0 > Number.EPSILON ? K0 > Number.EPSILON && (Zi = !0) : m0 < -Number.EPSILON ? K0 < -Number.EPSILON && (Zi = !0) : Math.sign(v0) === Math.sign(R0) && (Zi = !0), Zi ? (B0 = -v0, r0 = m0, t0 = Math.sqrt(Xi)) : (B0 = m0, r0 = v0, t0 = Math.sqrt(Xi / 2));
40865
40865
  }
40866
40866
  return new Vector2(B0 / t0, r0 / t0);
40867
40867
  }
@@ -40885,15 +40885,15 @@ let K$1 = class In extends BufferGeometry {
40885
40885
  for (let A0 = 0; A0 < lt; A0++) {
40886
40886
  const B0 = A0 / lt, r0 = at * Math.cos(B0 * Math.PI / 2), t0 = Ae * Math.sin(B0 * Math.PI / 2) + ct;
40887
40887
  for (let m0 = 0, v0 = d0.length; m0 < v0; m0++) {
40888
- const N0 = u0(d0[m0], H0[m0], t0);
40889
- P0(N0.x, N0.y, -r0), B0 === 0 && S0.push(N0);
40888
+ const K0 = u0(d0[m0], H0[m0], t0);
40889
+ P0(K0.x, K0.y, -r0), B0 === 0 && S0.push(K0);
40890
40890
  }
40891
40891
  for (let m0 = 0, v0 = i0; m0 < v0; m0++) {
40892
- const N0 = Yt[m0];
40892
+ const K0 = Yt[m0];
40893
40893
  _0 = g0[m0];
40894
40894
  const R0 = [];
40895
- for (let Xi = 0, q0 = N0.length; Xi < q0; Xi++) {
40896
- const Zi = u0(N0[Xi], _0[Xi], t0);
40895
+ for (let Xi = 0, q0 = K0.length; Xi < q0; Xi++) {
40896
+ const Zi = u0(K0[Xi], _0[Xi], t0);
40897
40897
  P0(Zi.x, Zi.y, -r0), B0 === 0 && R0.push(Zi);
40898
40898
  }
40899
40899
  B0 === 0 && C0.push(R0);
@@ -40923,7 +40923,7 @@ let K$1 = class In extends BufferGeometry {
40923
40923
  for (let r0 = 0, t0 = Yt.length; r0 < t0; r0++) {
40924
40924
  const m0 = Yt[r0];
40925
40925
  _0 = g0[r0];
40926
- for (let v0 = 0, N0 = m0.length; v0 < N0; v0++) {
40926
+ for (let v0 = 0, K0 = m0.length; v0 < K0; v0++) {
40927
40927
  const R0 = u0(m0[v0], _0[v0], B0);
40928
40928
  Vt ? P0(
40929
40929
  R0.x,
@@ -40983,7 +40983,7 @@ let K$1 = class In extends BufferGeometry {
40983
40983
  let r0 = A0 - 1;
40984
40984
  r0 < 0 && (r0 = S0.length - 1);
40985
40985
  for (let t0 = 0, m0 = ke + lt * 2; t0 < m0; t0++) {
40986
- const v0 = T0 * t0, N0 = T0 * (t0 + 1), R0 = C0 + B0 + v0, Xi = C0 + r0 + v0, q0 = C0 + r0 + N0, Zi = C0 + B0 + N0;
40986
+ const v0 = T0 * t0, K0 = T0 * (t0 + 1), R0 = C0 + B0 + v0, Xi = C0 + r0 + v0, q0 = C0 + r0 + K0, Zi = C0 + B0 + K0;
40987
40987
  O0(R0, Xi, q0, Zi);
40988
40988
  }
40989
40989
  }
@@ -41849,7 +41849,7 @@ const _Stats = class gn {
41849
41849
  this.minimal ? (this.dom.addEventListener("click", this.handleClick), this.showPanel(this.mode)) : window.addEventListener("resize", this.handleResize);
41850
41850
  }
41851
41851
  init(t) {
41852
- return K0(this, null, function* () {
41852
+ return N0(this, null, function* () {
41853
41853
  if (!t) {
41854
41854
  console.error('Stats: The "canvas" parameter is undefined.');
41855
41855
  return;
@@ -41866,7 +41866,7 @@ const _Stats = class gn {
41866
41866
  return t.isWebGLRenderer && !this.threeRendererPatched ? (this.patchThreeRenderer(t), this.gl = t.getContext(), this.trackGPU && this.initializeGPUTracking(), !0) : !1;
41867
41867
  }
41868
41868
  handleWebGPURenderer(t) {
41869
- return K0(this, null, function* () {
41869
+ return N0(this, null, function* () {
41870
41870
  return t.isWebGPURenderer ? ((this.trackGPU || this.trackCPT) && (t.backend.trackTimestamp = !0, (yield t.hasFeatureAsync("timestamp-query")) && this.initializeWebGPUPanels()), this.info = t.info, this.patchThreeWebGPU(t), !0) : !1;
41871
41871
  });
41872
41872
  }
@@ -42598,7 +42598,7 @@ class SimplexNoise {
42598
42598
  noise4d(t, r, m, C) {
42599
42599
  const _ = this.grad4, I = this.simplex, O = this.perm, ve = (Math.sqrt(5) - 1) / 4, Ce = (5 - Math.sqrt(5)) / 20;
42600
42600
  let Pe, Ne, Fe, ke, Ue;
42601
- const ht = (t + r + m + C) * ve, at = Math.floor(t + ht), Ae = Math.floor(r + ht), ct = Math.floor(m + ht), lt = Math.floor(C + ht), dt = (at + Ae + ct + lt) * Ce, xt = at - dt, Lt = Ae - dt, Xt = ct - dt, Zt = lt - dt, wt = t - xt, Vt = r - Lt, zt = m - Xt, $t = C - Zt, e0 = wt > Vt ? 32 : 0, s0 = wt > zt ? 16 : 0, qt = Vt > zt ? 8 : 0, kt = wt > $t ? 4 : 0, Yt = Vt > $t ? 2 : 0, Kt = zt > $t ? 1 : 0, i0 = e0 + s0 + qt + kt + Yt + Kt, d0 = I[i0][0] >= 3 ? 1 : 0, u0 = I[i0][1] >= 3 ? 1 : 0, T0 = I[i0][2] >= 3 ? 1 : 0, j0 = I[i0][3] >= 3 ? 1 : 0, H0 = I[i0][0] >= 2 ? 1 : 0, g0 = I[i0][1] >= 2 ? 1 : 0, _0 = I[i0][2] >= 2 ? 1 : 0, k0 = I[i0][3] >= 2 ? 1 : 0, bi = I[i0][0] >= 1 ? 1 : 0, yi = I[i0][1] >= 1 ? 1 : 0, vi = I[i0][2] >= 1 ? 1 : 0, Ki = I[i0][3] >= 1 ? 1 : 0, Vi = wt - d0 + Ce, a0 = Vt - u0 + Ce, P0 = zt - T0 + Ce, E0 = $t - j0 + Ce, O0 = wt - H0 + 2 * Ce, F0 = Vt - g0 + 2 * Ce, Q0 = zt - _0 + 2 * Ce, S0 = $t - k0 + 2 * Ce, C0 = wt - bi + 3 * Ce, A0 = Vt - yi + 3 * Ce, B0 = zt - vi + 3 * Ce, r0 = $t - Ki + 3 * Ce, t0 = wt - 1 + 4 * Ce, m0 = Vt - 1 + 4 * Ce, v0 = zt - 1 + 4 * Ce, N0 = $t - 1 + 4 * Ce, R0 = at & 255, Xi = Ae & 255, q0 = ct & 255, Zi = lt & 255, Pi = O[R0 + O[Xi + O[q0 + O[Zi]]]] % 32, gi = O[R0 + d0 + O[Xi + u0 + O[q0 + T0 + O[Zi + j0]]]] % 32, Ci = O[R0 + H0 + O[Xi + g0 + O[q0 + _0 + O[Zi + k0]]]] % 32, Ei = O[R0 + bi + O[Xi + yi + O[q0 + vi + O[Zi + Ki]]]] % 32, Ii = O[R0 + 1 + O[Xi + 1 + O[q0 + 1 + O[Zi + 1]]]] % 32;
42601
+ const ht = (t + r + m + C) * ve, at = Math.floor(t + ht), Ae = Math.floor(r + ht), ct = Math.floor(m + ht), lt = Math.floor(C + ht), dt = (at + Ae + ct + lt) * Ce, xt = at - dt, Lt = Ae - dt, Xt = ct - dt, Zt = lt - dt, wt = t - xt, Vt = r - Lt, zt = m - Xt, $t = C - Zt, e0 = wt > Vt ? 32 : 0, s0 = wt > zt ? 16 : 0, qt = Vt > zt ? 8 : 0, kt = wt > $t ? 4 : 0, Yt = Vt > $t ? 2 : 0, Kt = zt > $t ? 1 : 0, i0 = e0 + s0 + qt + kt + Yt + Kt, d0 = I[i0][0] >= 3 ? 1 : 0, u0 = I[i0][1] >= 3 ? 1 : 0, T0 = I[i0][2] >= 3 ? 1 : 0, j0 = I[i0][3] >= 3 ? 1 : 0, H0 = I[i0][0] >= 2 ? 1 : 0, g0 = I[i0][1] >= 2 ? 1 : 0, _0 = I[i0][2] >= 2 ? 1 : 0, k0 = I[i0][3] >= 2 ? 1 : 0, bi = I[i0][0] >= 1 ? 1 : 0, yi = I[i0][1] >= 1 ? 1 : 0, vi = I[i0][2] >= 1 ? 1 : 0, Ki = I[i0][3] >= 1 ? 1 : 0, Vi = wt - d0 + Ce, a0 = Vt - u0 + Ce, P0 = zt - T0 + Ce, E0 = $t - j0 + Ce, O0 = wt - H0 + 2 * Ce, F0 = Vt - g0 + 2 * Ce, Q0 = zt - _0 + 2 * Ce, S0 = $t - k0 + 2 * Ce, C0 = wt - bi + 3 * Ce, A0 = Vt - yi + 3 * Ce, B0 = zt - vi + 3 * Ce, r0 = $t - Ki + 3 * Ce, t0 = wt - 1 + 4 * Ce, m0 = Vt - 1 + 4 * Ce, v0 = zt - 1 + 4 * Ce, K0 = $t - 1 + 4 * Ce, R0 = at & 255, Xi = Ae & 255, q0 = ct & 255, Zi = lt & 255, Pi = O[R0 + O[Xi + O[q0 + O[Zi]]]] % 32, gi = O[R0 + d0 + O[Xi + u0 + O[q0 + T0 + O[Zi + j0]]]] % 32, Ci = O[R0 + H0 + O[Xi + g0 + O[q0 + _0 + O[Zi + k0]]]] % 32, Ei = O[R0 + bi + O[Xi + yi + O[q0 + vi + O[Zi + Ki]]]] % 32, Ii = O[R0 + 1 + O[Xi + 1 + O[q0 + 1 + O[Zi + 1]]]] % 32;
42602
42602
  let Li = 0.6 - wt * wt - Vt * Vt - zt * zt - $t * $t;
42603
42603
  Li < 0 ? Pe = 0 : (Li *= Li, Pe = Li * Li * this._dot4(_[Pi], wt, Vt, zt, $t));
42604
42604
  let Ni = 0.6 - Vi * Vi - a0 * a0 - P0 * P0 - E0 * E0;
@@ -42607,8 +42607,8 @@ class SimplexNoise {
42607
42607
  f0 < 0 ? Fe = 0 : (f0 *= f0, Fe = f0 * f0 * this._dot4(_[Ci], O0, F0, Q0, S0));
42608
42608
  let xi = 0.6 - C0 * C0 - A0 * A0 - B0 * B0 - r0 * r0;
42609
42609
  xi < 0 ? ke = 0 : (xi *= xi, ke = xi * xi * this._dot4(_[Ei], C0, A0, B0, r0));
42610
- let w0 = 0.6 - t0 * t0 - m0 * m0 - v0 * v0 - N0 * N0;
42611
- return w0 < 0 ? Ue = 0 : (w0 *= w0, Ue = w0 * w0 * this._dot4(_[Ii], t0, m0, v0, N0)), 27 * (Pe + Ne + Fe + ke + Ue);
42610
+ let w0 = 0.6 - t0 * t0 - m0 * m0 - v0 * v0 - K0 * K0;
42611
+ return w0 < 0 ? Ue = 0 : (w0 *= w0, Ue = w0 * w0 * this._dot4(_[Ii], t0, m0, v0, K0)), 27 * (Pe + Ne + Fe + ke + Ue);
42612
42612
  }
42613
42613
  // private
42614
42614
  _dot(t, r, m) {
@@ -44413,7 +44413,7 @@ class EXRLoader extends DataTextureLoader {
44413
44413
  const Wt = Ft.array.slice(Ft.offset.value, Ft.offset.value + Ft.size), n0 = unzlibSync(Wt), o0 = new Uint8Array(n0.length);
44414
44414
  return a0(n0), P0(n0, o0), new DataView(o0.buffer);
44415
44415
  }
44416
- function N0(Ft) {
44416
+ function K0(Ft) {
44417
44417
  const Wt = Ft.viewer, n0 = { value: Ft.offset.value }, o0 = new Uint16Array(Ft.columns * Ft.lines * (Ft.inputChannels.length * Ft.type)), c0 = new Uint8Array(8192);
44418
44418
  let h0 = 0;
44419
44419
  const l0 = new Array(Ft.inputChannels.length);
@@ -44885,7 +44885,7 @@ class EXRLoader extends DataTextureLoader {
44885
44885
  l0.blockHeight = 16, l0.uncompress = v0;
44886
44886
  break;
44887
44887
  case "PIZ_COMPRESSION":
44888
- l0.blockHeight = 32, l0.uncompress = N0;
44888
+ l0.blockHeight = 32, l0.uncompress = K0;
44889
44889
  break;
44890
44890
  case "PXR24_COMPRESSION":
44891
44891
  l0.blockHeight = 16, l0.uncompress = R0;
@@ -49382,8 +49382,8 @@ if (typeof document != "undefined") {
49382
49382
  var a0 = this.props;
49383
49383
  if (Yt === 1 && Kt === 0 && i0 === 0 && d0 === 0 && u0 === 0 && T0 === 1 && j0 === 0 && H0 === 0 && g0 === 0 && _0 === 0 && k0 === 1 && bi === 0)
49384
49384
  return a0[12] = a0[12] * Yt + a0[15] * yi, a0[13] = a0[13] * T0 + a0[15] * vi, a0[14] = a0[14] * k0 + a0[15] * Ki, a0[15] *= Vi, this._identityCalculated = !1, this;
49385
- var P0 = a0[0], E0 = a0[1], O0 = a0[2], F0 = a0[3], Q0 = a0[4], S0 = a0[5], C0 = a0[6], A0 = a0[7], B0 = a0[8], r0 = a0[9], t0 = a0[10], m0 = a0[11], v0 = a0[12], N0 = a0[13], R0 = a0[14], Xi = a0[15];
49386
- return a0[0] = P0 * Yt + E0 * u0 + O0 * g0 + F0 * yi, a0[1] = P0 * Kt + E0 * T0 + O0 * _0 + F0 * vi, a0[2] = P0 * i0 + E0 * j0 + O0 * k0 + F0 * Ki, a0[3] = P0 * d0 + E0 * H0 + O0 * bi + F0 * Vi, a0[4] = Q0 * Yt + S0 * u0 + C0 * g0 + A0 * yi, a0[5] = Q0 * Kt + S0 * T0 + C0 * _0 + A0 * vi, a0[6] = Q0 * i0 + S0 * j0 + C0 * k0 + A0 * Ki, a0[7] = Q0 * d0 + S0 * H0 + C0 * bi + A0 * Vi, a0[8] = B0 * Yt + r0 * u0 + t0 * g0 + m0 * yi, a0[9] = B0 * Kt + r0 * T0 + t0 * _0 + m0 * vi, a0[10] = B0 * i0 + r0 * j0 + t0 * k0 + m0 * Ki, a0[11] = B0 * d0 + r0 * H0 + t0 * bi + m0 * Vi, a0[12] = v0 * Yt + N0 * u0 + R0 * g0 + Xi * yi, a0[13] = v0 * Kt + N0 * T0 + R0 * _0 + Xi * vi, a0[14] = v0 * i0 + N0 * j0 + R0 * k0 + Xi * Ki, a0[15] = v0 * d0 + N0 * H0 + R0 * bi + Xi * Vi, this._identityCalculated = !1, this;
49385
+ var P0 = a0[0], E0 = a0[1], O0 = a0[2], F0 = a0[3], Q0 = a0[4], S0 = a0[5], C0 = a0[6], A0 = a0[7], B0 = a0[8], r0 = a0[9], t0 = a0[10], m0 = a0[11], v0 = a0[12], K0 = a0[13], R0 = a0[14], Xi = a0[15];
49386
+ return a0[0] = P0 * Yt + E0 * u0 + O0 * g0 + F0 * yi, a0[1] = P0 * Kt + E0 * T0 + O0 * _0 + F0 * vi, a0[2] = P0 * i0 + E0 * j0 + O0 * k0 + F0 * Ki, a0[3] = P0 * d0 + E0 * H0 + O0 * bi + F0 * Vi, a0[4] = Q0 * Yt + S0 * u0 + C0 * g0 + A0 * yi, a0[5] = Q0 * Kt + S0 * T0 + C0 * _0 + A0 * vi, a0[6] = Q0 * i0 + S0 * j0 + C0 * k0 + A0 * Ki, a0[7] = Q0 * d0 + S0 * H0 + C0 * bi + A0 * Vi, a0[8] = B0 * Yt + r0 * u0 + t0 * g0 + m0 * yi, a0[9] = B0 * Kt + r0 * T0 + t0 * _0 + m0 * vi, a0[10] = B0 * i0 + r0 * j0 + t0 * k0 + m0 * Ki, a0[11] = B0 * d0 + r0 * H0 + t0 * bi + m0 * Vi, a0[12] = v0 * Yt + K0 * u0 + R0 * g0 + Xi * yi, a0[13] = v0 * Kt + K0 * T0 + R0 * _0 + Xi * vi, a0[14] = v0 * i0 + K0 * j0 + R0 * k0 + Xi * Ki, a0[15] = v0 * d0 + K0 * H0 + R0 * bi + Xi * Vi, this._identityCalculated = !1, this;
49387
49387
  }
49388
49388
  function at() {
49389
49389
  return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
@@ -51826,8 +51826,8 @@ if (typeof document != "undefined") {
51826
51826
  if (v.strokeWidthAnim && (E0 = Vi < 0 ? 0 : Vi), v.strokeColorAnim && (O0 = "rgb(" + Math.round(Ki[0] * 255) + "," + Math.round(Ki[1] * 255) + "," + Math.round(Ki[2] * 255) + ")"), v.fillColorAnim && v.fc && (F0 = "rgb(" + Math.round(a0[0] * 255) + "," + Math.round(a0[1] * 255) + "," + Math.round(a0[2] * 255) + ")"), this._hasMaskedPath) {
51827
51827
  if (_.translate(0, -v.ls), _.translate(0, r[1] * s0 * 0.01 + Ce, 0), this._pathData.p.v) {
51828
51828
  Vt = (ht.point[1] - dt.point[1]) / (ht.point[0] - dt.point[0]);
51829
- var N0 = Math.atan(Vt) * 180 / Math.PI;
51830
- ht.point[0] < dt.point[0] && (N0 += 180), _.rotate(-N0 * Math.PI / 180);
51829
+ var K0 = Math.atan(Vt) * 180 / Math.PI;
51830
+ ht.point[0] < dt.point[0] && (K0 += 180), _.rotate(-K0 * Math.PI / 180);
51831
51831
  }
51832
51832
  _.translate(H0, g0, 0), Ue -= r[0] * Fe[Pe].an * 5e-3, Fe[Pe + 1] && T0 !== Fe[Pe + 1].ind && (Ue += Fe[Pe].an / 2, Ue += v.tr * 1e-3 * v.finalSize);
51833
51833
  } else {
@@ -55895,7 +55895,15 @@ class Vs {
55895
55895
  m.traverse((C) => {
55896
55896
  var _;
55897
55897
  const I = C, O = C, ve = C;
55898
- (_ = I.material) != null && _.isShadowMaterial ? t.push(I) : I.material && this.bloomLayer.test(I.layers) === !1 && (this.bloomMaterials[I.uuid] = I.material, O.isSprite ? O.material.sizeAttenuation ? O.material = Fs : O.material = Ns : I.material instanceof _e$1 ? I.material = Hs : ve.isPoints ? ve.material.sizeAttenuation ? ve.material = ks : ve.material = zs : I.material = Us);
55898
+ if ((_ = I.material) != null && _.isShadowMaterial)
55899
+ t.push(I);
55900
+ else if (I.material && this.bloomLayer.test(I.layers) === !1) {
55901
+ if (I.material.transparent === !0 && (I.material.opacity !== 1 || I.material.alphaMap)) {
55902
+ t.push(I);
55903
+ return;
55904
+ }
55905
+ this.bloomMaterials[I.uuid] = I.material, O.isSprite ? O.material.sizeAttenuation ? O.material = Fs : O.material = Ns : I.material instanceof _e$1 ? I.material = Hs : ve.isPoints ? ve.material.sizeAttenuation ? ve.material = ks : ve.material = zs : I.material = Us;
55906
+ }
55899
55907
  });
55900
55908
  }), t.forEach((m) => {
55901
55909
  this.bloomVisible[m.uuid] = m.visible, m.visible = !1;
@@ -57718,7 +57726,7 @@ class Point extends pt {
57718
57726
  });
57719
57727
  }
57720
57728
  create() {
57721
- return K0(this, null, function* () {
57729
+ return N0(this, null, function* () {
57722
57730
  const { sprite: r } = this.options, m = this.getMaterial();
57723
57731
  r ? this.createSprite(m) : this.createMesh(new PlaneGeometry(1, 1), m), this.setScale(1), this.object3d.scale.multiplyScalar(0.1);
57724
57732
  });
@@ -57794,7 +57802,7 @@ class Arc extends pt {
57794
57802
  };
57795
57803
  }
57796
57804
  create() {
57797
- return K0(this, null, function* () {
57805
+ return N0(this, null, function* () {
57798
57806
  map || (map = getLineTexture(0.5));
57799
57807
  const { color: r, lineWidth: m, globe: C } = this.options;
57800
57808
  let { radius: _ } = this.options;
@@ -57822,7 +57830,7 @@ class Arc extends pt {
57822
57830
  { key: "Arc_第一控制点", position: ve.v1 },
57823
57831
  { key: "Arc_第二控制点", position: ve.v2 },
57824
57832
  { key: "Arc_终点", position: ve.v3 }
57825
- ].map((ct) => K0(this, [ct], function* ({ key: at, position: Ae }) {
57833
+ ].map((ct) => N0(this, [ct], function* ({ key: at, position: Ae }) {
57826
57834
  const lt = yield Pe.draw("Group", {}, this);
57827
57835
  return lt.position.copy(Ae), lt.userData.disabledC = !0, lt.userData.disabledR = !0, lt.userData.disabledProcessedChildren = !0, Pe.updateBaseObjectKey(lt, `${at}_${this.options.key}`), lt;
57828
57836
  }))
@@ -57836,7 +57844,7 @@ class Arc extends pt {
57836
57844
  });
57837
57845
  }
57838
57846
  instantiate() {
57839
- return K0(this, null, function* () {
57847
+ return N0(this, null, function* () {
57840
57848
  this.update();
57841
57849
  const r = yield this.line.instantiate({
57842
57850
  recursive: !1
@@ -57855,7 +57863,7 @@ class Arc extends pt {
57855
57863
  this.line.options.nodes = ve, this.line.setGeometry(ve, _), this.pickTube && this.addPickTarget(this.pickTube.options.radius);
57856
57864
  }
57857
57865
  addPickTarget(r = 1, m = !1) {
57858
- return K0(this, null, function* () {
57866
+ return N0(this, null, function* () {
57859
57867
  const C = this.pickTube, _ = this.pencil.lead, I = this.line.options.nodes, O = new CurvePath();
57860
57868
  for (let Pe = 0; Pe < I.length - 1; Pe++)
57861
57869
  O.add(new LineCurve3(I[Pe], I[Pe + 1]));
@@ -57933,7 +57941,7 @@ class CrossPlane extends pt {
57933
57941
  this.options = D0({}, r);
57934
57942
  }
57935
57943
  create() {
57936
- return K0(this, null, function* () {
57944
+ return N0(this, null, function* () {
57937
57945
  this.createGroup();
57938
57946
  const r = this.options.material || new MeshBasicMaterial({
57939
57947
  color: "#ffffff",
@@ -57963,7 +57971,7 @@ class CrossPlane extends pt {
57963
57971
  }
57964
57972
  class PlaneShadow extends pt {
57965
57973
  create() {
57966
- return K0(this, null, function* () {
57974
+ return N0(this, null, function* () {
57967
57975
  const t = new PlaneGeometry(100, 100, 2, 2), r = new ShadowMaterial();
57968
57976
  r.opacity = 0.5, r.depthWrite = !1, this.createMesh(t, r), this.object3d.receiveShadow = !0, this.position.z = 0.1, this.object3d.name = "阴影接受";
57969
57977
  });
@@ -57983,7 +57991,7 @@ class Model extends pt {
57983
57991
  }, r);
57984
57992
  }
57985
57993
  create() {
57986
- return K0(this, null, function* () {
57994
+ return N0(this, null, function* () {
57987
57995
  const r = this.pencil.loader, m = this.options.src, C = yield r.load(m, {
57988
57996
  type: "gltf",
57989
57997
  cache: !1
@@ -58270,6 +58278,9 @@ function defaultGetStore() {
58270
58278
  function get(v, t = defaultGetStore()) {
58271
58279
  return t("readonly", (r) => promisifyRequest(r.get(v)));
58272
58280
  }
58281
+ function set(v, t, r = defaultGetStore()) {
58282
+ return r("readwrite", (m) => (m.put(t, v), promisifyRequest(m.transaction)));
58283
+ }
58273
58284
  function setMany(v, t = defaultGetStore()) {
58274
58285
  return t("readwrite", (r) => (v.forEach((m) => r.put(m[1], m[0])), promisifyRequest(r.transaction)));
58275
58286
  }
@@ -59848,7 +59859,7 @@ class AddVis extends Command {
59848
59859
  this.type = "AddVis", this.visType = m, this.visOptions = C, m !== void 0 && (this.name = `Add Vis: ${m}`);
59849
59860
  }
59850
59861
  execute() {
59851
- return K0(this, null, function* () {
59862
+ return N0(this, null, function* () {
59852
59863
  yield this.editor.viewport.setVis(this.visType, this.visOptions), this.editor.select(null);
59853
59864
  });
59854
59865
  }
@@ -59874,7 +59885,7 @@ class AddObject extends Command {
59874
59885
  this.type = "AddObject", this.objectType = m, this.objectOptions = C, m !== void 0 && (this.name = `Add Object: ${m}`);
59875
59886
  }
59876
59887
  execute() {
59877
- return K0(this, null, function* () {
59888
+ return N0(this, null, function* () {
59878
59889
  var m;
59879
59890
  const r = this.editor.viewport.vis;
59880
59891
  this.obj = yield r.lead.draw(this.objectType, Ui(D0({}, this.objectOptions), {
@@ -59910,7 +59921,7 @@ class RemoveObject extends Command {
59910
59921
  }), this.object.objectType === "BaseObject#Model" && this.object.stopAllClips()), this.editor.emit("baseObjectListChange"), this.editor.select(null);
59911
59922
  }
59912
59923
  undo() {
59913
- return K0(this, null, function* () {
59924
+ return N0(this, null, function* () {
59914
59925
  this.object.show(), this.object.mList.addBaseObjectMap(this.object), delete this.object.userData.selectHide, this.object.objectType === "BaseObject#Model" && this.object.playAllClips(), this.editor.emit("baseObjectListChange");
59915
59926
  });
59916
59927
  }
@@ -59932,7 +59943,7 @@ class CopyObject extends Command {
59932
59943
  this.type = "CopyObject", this.name = "Copy Object", this.object = m;
59933
59944
  }
59934
59945
  execute() {
59935
- return K0(this, null, function* () {
59946
+ return N0(this, null, function* () {
59936
59947
  var _;
59937
59948
  const r = this.editor.viewport.vis, m = this.object.key, C = yield this.object.instantiate({
59938
59949
  key: `${this.id}`
@@ -59941,7 +59952,7 @@ class CopyObject extends Command {
59941
59952
  });
59942
59953
  }
59943
59954
  undo() {
59944
- return K0(this, null, function* () {
59955
+ return N0(this, null, function* () {
59945
59956
  var r;
59946
59957
  (r = this.copyObject) == null || r.erase(), this.editor.select(null);
59947
59958
  });
@@ -59977,13 +59988,13 @@ class SetObjectMaterial extends Command {
59977
59988
  ), this.newValue = _;
59978
59989
  }
59979
59990
  execute() {
59980
- return K0(this, null, function* () {
59991
+ return N0(this, null, function* () {
59981
59992
  const m = this.editor.pencil.mList.get(this.newValue);
59982
59993
  m && (this.editor.setObjectMaterial(this.object, this.materialSlot, m), this.playVideo(m), this.editor.emit("materialChanged", this.object));
59983
59994
  });
59984
59995
  }
59985
59996
  undo() {
59986
- return K0(this, null, function* () {
59997
+ return N0(this, null, function* () {
59987
59998
  const r = this.oldMaterial;
59988
59999
  this.editor.setObjectMaterial(this.object, this.materialSlot, r), this.playVideo(r), this.editor.emit("materialChanged", this.object);
59989
60000
  });
@@ -60042,7 +60053,7 @@ class AddMaterial extends Command {
60042
60053
  this.type = "AddMaterial", this.name = "Add Material", this.materialType = m, this.object = C, this.materialSlot = _;
60043
60054
  }
60044
60055
  execute() {
60045
- return K0(this, null, function* () {
60056
+ return N0(this, null, function* () {
60046
60057
  this.addObjectUuid = `material_${this.id}`;
60047
60058
  const r = this.editor.pencil.mList;
60048
60059
  let m;
@@ -60077,7 +60088,7 @@ class AddMaterial extends Command {
60077
60088
  });
60078
60089
  }
60079
60090
  undo() {
60080
- return K0(this, null, function* () {
60091
+ return N0(this, null, function* () {
60081
60092
  this.setMaterialCommand && (yield this.setMaterialCommand.undo()), this.editor.pencil.mList.remove(this.addObjectUuid), this.flag && this.editor.emit("materialChanged");
60082
60093
  });
60083
60094
  }
@@ -60101,14 +60112,14 @@ class CopyMaterial extends Command {
60101
60112
  this.type = "CopyMaterial", this.name = "Copy Material", this.objectUuid = m;
60102
60113
  }
60103
60114
  execute() {
60104
- return K0(this, null, function* () {
60115
+ return N0(this, null, function* () {
60105
60116
  this.copyObjectUuid = `material_${this.id}`, this.editor.pencil.mList.copy(this.objectUuid, this.copyObjectUuid, {
60106
60117
  name: `材质_${this.id}`
60107
60118
  });
60108
60119
  });
60109
60120
  }
60110
60121
  undo() {
60111
- return K0(this, null, function* () {
60122
+ return N0(this, null, function* () {
60112
60123
  this.editor.pencil.mList.remove(this.copyObjectUuid);
60113
60124
  });
60114
60125
  }
@@ -60132,13 +60143,13 @@ class RemoveMaterial extends Command {
60132
60143
  this.type = "RemoveMaterial", this.name = "Remove Material", this.objectUuid = m;
60133
60144
  }
60134
60145
  execute() {
60135
- return K0(this, null, function* () {
60146
+ return N0(this, null, function* () {
60136
60147
  const r = this.editor.pencil.mList;
60137
60148
  this.material = r.get(this.objectUuid), r.remove(this.objectUuid);
60138
60149
  });
60139
60150
  }
60140
60151
  undo() {
60141
- return K0(this, null, function* () {
60152
+ return N0(this, null, function* () {
60142
60153
  const r = this.editor.pencil.mList;
60143
60154
  this.material && r.add(this.objectUuid, this.material);
60144
60155
  });
@@ -60164,13 +60175,13 @@ class SetSetting extends Command {
60164
60175
  this.type = "SetSetting", this.updatable = !0, this.name = `Set Setting.${m}`, this.attributeName = m, this.newValue = C, r.viewport.vis && (this.oldValue = r.viewport.vis.settings[m]);
60165
60176
  }
60166
60177
  execute() {
60167
- return K0(this, null, function* () {
60178
+ return N0(this, null, function* () {
60168
60179
  const r = this.editor.viewport.vis;
60169
60180
  r.settings[this.attributeName] = this.newValue, yield r.settings[this.attributeName], this.editor.emit("settingsChanged");
60170
60181
  });
60171
60182
  }
60172
60183
  undo() {
60173
- return K0(this, null, function* () {
60184
+ return N0(this, null, function* () {
60174
60185
  const r = this.editor.viewport.vis;
60175
60186
  r.settings[this.attributeName] = this.oldValue, yield r.settings[this.attributeName], this.editor.emit("settingsChanged");
60176
60187
  });
@@ -60313,7 +60324,7 @@ class History {
60313
60324
  return !(t != null && t.updatable) || !(r != null && r.updatable) || m >= COMMAND_UPDATE_THRESHOLD ? !1 : t.object === r.object && t.objectUuid === r.objectUuid && t.type === r.type && t.attributeName === r.attributeName && t.attributeName2 === r.attributeName2 && t.name === r.name && t.materialSlot === r.materialSlot;
60314
60325
  }
60315
60326
  execute(t, r) {
60316
- return K0(this, null, function* () {
60327
+ return N0(this, null, function* () {
60317
60328
  const m = this.undos[this.undos.length - 1], C = Date.now() - this.lastCmdTime;
60318
60329
  this.canMergeCommands(m, t, C) ? (m.update(t), t = m) : (this.undos.push(t), t.id = ++this.idCounter), t.name = r !== void 0 ? r : t.name;
60319
60330
  try {
@@ -60462,7 +60473,7 @@ class History {
60462
60473
  return new Promise((r, m) => {
60463
60474
  const C = [...this.undos], _ = C.length;
60464
60475
  let I = 0;
60465
- const O = () => K0(this, null, function* () {
60476
+ const O = () => N0(this, null, function* () {
60466
60477
  const ve = performance.now();
60467
60478
  for (; C.length > 0 && performance.now() - ve < t; ) {
60468
60479
  if (this.editor._dispose) {
@@ -60492,7 +60503,7 @@ class History {
60492
60503
  * 执行单个撤销命令
60493
60504
  */
60494
60505
  executeUndo(t) {
60495
- return K0(this, null, function* () {
60506
+ return N0(this, null, function* () {
60496
60507
  if (!(t != null && t.json)) {
60497
60508
  console.warn("Invalid undo command:", t);
60498
60509
  return;
@@ -60611,7 +60622,6 @@ class Viewport {
60611
60622
  b0(this, "delLoadObj");
60612
60623
  b0(this, "options");
60613
60624
  b0(this, "copyObjKey");
60614
- b0(this, "copyMListMaterialKey");
60615
60625
  this.options = r, this.editor = t;
60616
60626
  }
60617
60627
  setSaveCamera(t) {
@@ -60619,7 +60629,7 @@ class Viewport {
60619
60629
  this.vis.setSaveCamera(t), (r = this.vis.pencil.controls) == null || r.saveState(), this.cameraState = D0({}, (m = this.vis) == null ? void 0 : m.cameraState), this.editor.emit("cameraStateChanged");
60620
60630
  }
60621
60631
  addVis(m) {
60622
- return K0(this, arguments, function* (t, r = {}) {
60632
+ return N0(this, arguments, function* (t, r = {}) {
60623
60633
  this.replaceVis() && (yield this.editor.execute(new AddVis(this.editor, t, r)));
60624
60634
  });
60625
60635
  }
@@ -60631,7 +60641,7 @@ class Viewport {
60631
60641
  return !0;
60632
60642
  }
60633
60643
  setVis(m) {
60634
- return K0(this, arguments, function* (t, r = {}) {
60644
+ return N0(this, arguments, function* (t, r = {}) {
60635
60645
  if (!this.options.visFactories && (this.editor.setViewportVis(t), !this.options.visFactories)) {
60636
60646
  console.error("visFactories is not defined");
60637
60647
  return;
@@ -60692,13 +60702,13 @@ class Viewport {
60692
60702
  });
60693
60703
  }
60694
60704
  addObj(m) {
60695
- return K0(this, arguments, function* (t, r = {}) {
60705
+ return N0(this, arguments, function* (t, r = {}) {
60696
60706
  const C = objs$3[t].getInitOptions;
60697
60707
  C && Object.assign(r, C(this.vis.pencil, r)), yield this.editor.execute(new AddObject(this.editor, t, r));
60698
60708
  });
60699
60709
  }
60700
60710
  removeObj(t) {
60701
- return K0(this, null, function* () {
60711
+ return N0(this, null, function* () {
60702
60712
  const { vis: r } = this;
60703
60713
  if (!r || !t)
60704
60714
  return;
@@ -60711,39 +60721,67 @@ class Viewport {
60711
60721
  });
60712
60722
  }
60713
60723
  copyObj(t) {
60714
- if (this.vis && (this.copyObjKey = void 0, t)) {
60715
- const r = this.editor.findSelectItem("key", t);
60716
- r && !r.disabledC && (this.copyObjKey = t);
60717
- }
60724
+ if (!this.vis)
60725
+ return;
60726
+ const r = this.editor.findSelectItem("key", t);
60727
+ r && !r.disabledC && (this.copyObjKey = t);
60728
+ }
60729
+ clearCopyObj() {
60730
+ this.copyObjKey = void 0;
60718
60731
  }
60719
60732
  pasteObj() {
60720
- return K0(this, null, function* () {
60733
+ return N0(this, null, function* () {
60721
60734
  const { vis: t } = this;
60722
60735
  if (!t || !this.copyObjKey)
60723
60736
  return;
60724
60737
  const r = this.editor.baseObjectByUuid(this.copyObjKey);
60725
- r ? this.editor.execute(new CopyObject(this.editor, r)) : this.copyObj();
60738
+ r && this.editor.execute(new CopyObject(this.editor, r));
60726
60739
  });
60727
60740
  }
60728
60741
  copyMListMaterial(t) {
60729
- return K0(this, null, function* () {
60742
+ return N0(this, null, function* () {
60730
60743
  const { vis: r } = this;
60731
- r && (this.copyMListMaterialKey = t, t && del("crossCopyMaterial"));
60744
+ if (!r)
60745
+ return;
60746
+ const m = r.mList.get(t);
60747
+ m && (yield set("copyMaterial", {
60748
+ project: this.editor.config.meta.key,
60749
+ mListkey: t,
60750
+ json: m.toJSON()
60751
+ }));
60752
+ });
60753
+ }
60754
+ clearCopyMListMaterial() {
60755
+ return N0(this, null, function* () {
60756
+ yield del("copyMaterial");
60732
60757
  });
60733
60758
  }
60734
60759
  pasteMListMaterial() {
60735
- return K0(this, null, function* () {
60760
+ return N0(this, null, function* () {
60736
60761
  const { vis: t } = this;
60737
- if (t) {
60738
- if (!this.copyMListMaterialKey) {
60739
- const r = yield get("crossCopyMaterial");
60740
- r ? this.editor.execute(new AddMaterial(this.editor, r)) : this.copyMListMaterial();
60741
- return;
60742
- }
60743
- this.editor.execute(
60744
- new CopyMaterial(this.editor, this.copyMListMaterialKey)
60745
- );
60746
- }
60762
+ if (!t)
60763
+ return;
60764
+ const r = yield get("copyMaterial");
60765
+ r && (r.project === this.editor.config.meta.key ? this.editor.execute(new CopyMaterial(this.editor, r.mListkey)) : this.editor.execute(new AddMaterial(this.editor, r.json)));
60766
+ });
60767
+ }
60768
+ pasteMListMaterial2Replace(t) {
60769
+ return N0(this, null, function* () {
60770
+ const { vis: r } = this;
60771
+ if (!r)
60772
+ return;
60773
+ const m = yield get("copyMaterial");
60774
+ if (!m)
60775
+ return;
60776
+ const C = this.editor.materialObjectByUuid(t);
60777
+ this.editor.execute(
60778
+ new SetMaterial(
60779
+ this.editor,
60780
+ C,
60781
+ m.project === this.editor.config.meta.key ? r.mList.get(m.mListkey) : parseMaterial(m.json),
60782
+ 0
60783
+ )
60784
+ );
60747
60785
  });
60748
60786
  }
60749
60787
  addMListMaterial(t = "MeshBasicMaterial", r, m) {
@@ -60751,7 +60789,7 @@ class Viewport {
60751
60789
  C && this.editor.execute(new AddMaterial(this.editor, t, r, m));
60752
60790
  }
60753
60791
  removeMListMaterial(t) {
60754
- return K0(this, null, function* () {
60792
+ return N0(this, null, function* () {
60755
60793
  const { vis: r } = this;
60756
60794
  r && this.editor.execute(new RemoveMaterial(this.editor, t));
60757
60795
  });
@@ -60966,12 +61004,12 @@ class Editor {
60966
61004
  this.emit("mListGraphChanged");
60967
61005
  }
60968
61006
  execute(t, r) {
60969
- return K0(this, null, function* () {
61007
+ return N0(this, null, function* () {
60970
61008
  yield this.history.execute(t, r);
60971
61009
  });
60972
61010
  }
60973
61011
  fromJSON(t, r) {
60974
- return K0(this, null, function* () {
61012
+ return N0(this, null, function* () {
60975
61013
  var m, C, _, I;
60976
61014
  try {
60977
61015
  r && !f$1(r) ? console.warn(
@@ -61008,7 +61046,7 @@ class Editor {
61008
61046
  });
61009
61047
  }
61010
61048
  appendJSON(t) {
61011
- return K0(this, null, function* () {
61049
+ return N0(this, null, function* () {
61012
61050
  let r;
61013
61051
  if (typeof t == "string") {
61014
61052
  const m = this.options.assetsPrefix + t;
@@ -61127,7 +61165,7 @@ class Camera extends Event {
61127
61165
  this.cameraState[r] = [C.x, C.y, C.z, _.x, _.y, _.z];
61128
61166
  }
61129
61167
  useSaveCamera(r, m = !1) {
61130
- return K0(this, null, function* () {
61168
+ return N0(this, null, function* () {
61131
61169
  const C = this.cameraState[r];
61132
61170
  return C ? (yield this.lookAt(
61133
61171
  C[0],
@@ -61141,7 +61179,7 @@ class Camera extends Event {
61141
61179
  });
61142
61180
  }
61143
61181
  lookAt(r, m, C, _, I, O, ve = !1, Ce = 250) {
61144
- return K0(this, null, function* () {
61182
+ return N0(this, null, function* () {
61145
61183
  this.pencil.controls.smoothTime = Ce / 1e3, yield this.pencil.controls.setLookAt(
61146
61184
  r,
61147
61185
  m,
@@ -61154,12 +61192,12 @@ class Camera extends Event {
61154
61192
  });
61155
61193
  }
61156
61194
  truck(r, m, C = !1, _ = 250) {
61157
- return K0(this, null, function* () {
61195
+ return N0(this, null, function* () {
61158
61196
  this.pencil.controls.smoothTime = _ / 1e3, this.pencil.controls.restThreshold = 0, yield this.pencil.controls.truck(r, m, C), this.pencil.controls.restThreshold = 25e-4, this.pencil.controls.smoothTime = 250 / 1e3;
61159
61197
  });
61160
61198
  }
61161
61199
  dollyTo(r, m = !1, C = 250) {
61162
- return K0(this, null, function* () {
61200
+ return N0(this, null, function* () {
61163
61201
  let _ = r;
61164
61202
  if (typeof _ == "string") {
61165
61203
  const [I, O] = _.split("=");
@@ -61173,7 +61211,7 @@ class Camera extends Event {
61173
61211
  return MathUtils.euclideanModulo(_ + Math.PI, C) - Math.PI;
61174
61212
  }
61175
61213
  lookAtTarget(r, m = !1, C = 250) {
61176
- return K0(this, null, function* () {
61214
+ return N0(this, null, function* () {
61177
61215
  this.pencil.controls.smoothTime = C / 1e3;
61178
61216
  const _ = this.pencil.controls.azimuthAngle, I = this.pencil.controls.polarAngle, O = this.pencil.controls.distance, ve = this.pencil.cameraTarget.clone(), Ce = r.azimuthAngle || _, Pe = r.polarAngle || I, Ne = r.distance || O, Fe = r.target || ve;
61179
61217
  yield Promise.all([
@@ -61210,7 +61248,7 @@ class Camera extends Event {
61210
61248
  });
61211
61249
  }
61212
61250
  resetCamera(r = !1, m = 250) {
61213
- return K0(this, null, function* () {
61251
+ return N0(this, null, function* () {
61214
61252
  this.pencil.controls.smoothTime = m / 1e3, yield this.pencil.controls.reset(r), this.pencil.controls.smoothTime = 250 / 1e3;
61215
61253
  });
61216
61254
  }
@@ -61325,20 +61363,20 @@ class Base extends Camera {
61325
61363
  loaderAdd(...r) {
61326
61364
  }
61327
61365
  initMaterial(...r) {
61328
- return K0(this, null, function* () {
61366
+ return N0(this, null, function* () {
61329
61367
  });
61330
61368
  }
61331
61369
  initVis(...r) {
61332
- return K0(this, null, function* () {
61370
+ return N0(this, null, function* () {
61333
61371
  });
61334
61372
  }
61335
61373
  init(...r) {
61336
- return K0(this, null, function* () {
61374
+ return N0(this, null, function* () {
61337
61375
  yield this.initPencil(), this.loaderAdd(), console.time(`vis-core:time.${this.visName}-loader`), yield this.loader.loadAll(), console.timeEnd(`vis-core:time.${this.visName}-loader`), yield this.initMaterial(), yield this.initVis(), yield Promise.all(this.lead.objectsPromise);
61338
61376
  });
61339
61377
  }
61340
61378
  initPencil() {
61341
- return K0(this, null, function* () {
61379
+ return N0(this, null, function* () {
61342
61380
  var C, _, I, O, ve, Ce, Pe, Ne;
61343
61381
  if (this.pencil) return;
61344
61382
  const r = D0({}, this.options.pencilConfig);
@@ -61545,7 +61583,7 @@ class Base extends Camera {
61545
61583
  );
61546
61584
  }
61547
61585
  handleSetting(r, m) {
61548
- return K0(this, null, function* () {
61586
+ return N0(this, null, function* () {
61549
61587
  const { pencil: C } = this;
61550
61588
  if (r === "mouseWheel" || r === "mouseLeft" || r === "mouseRight") {
61551
61589
  const _ = r.replace("mouse", "").toLowerCase();
@@ -61568,7 +61606,7 @@ class Base extends Camera {
61568
61606
  this.showState && (this.lead.group.hide(), this.lead.prefabGroup.hide(), this.showState = !1, this.emit("hide"));
61569
61607
  }
61570
61608
  addCSS2D(C) {
61571
- return K0(this, arguments, function* (r, m = {}) {
61609
+ return N0(this, arguments, function* (r, m = {}) {
61572
61610
  typeof m == "string" && (m = { display: m }), m.display && (r.style.display = m.display);
61573
61611
  let _ = 0;
61574
61612
  typeof m.onTop != "undefined" && (_ = m.onTop);
@@ -61579,7 +61617,7 @@ class Base extends Camera {
61579
61617
  });
61580
61618
  }
61581
61619
  addCSS3D(C) {
61582
- return K0(this, arguments, function* (r, m = {}) {
61620
+ return N0(this, arguments, function* (r, m = {}) {
61583
61621
  m.display && (r.style.display = m.display);
61584
61622
  let _ = 0;
61585
61623
  typeof m.onTop != "undefined" && (_ = m.onTop);
@@ -139739,7 +139777,7 @@ class Building extends pt {
139739
139777
  this.options = D0({}, r);
139740
139778
  }
139741
139779
  create() {
139742
- return K0(this, null, function* () {
139780
+ return N0(this, null, function* () {
139743
139781
  const { json: r, projection: m, cacheKey: C, meters: _, grey: I, clip: O } = this.options, ve = this.pencil.mList, Ce = this.pencil.getPlugin("worker"), Pe = this.pencil.lead, Ne = I ? "-grey" : "";
139744
139782
  this.createGroup();
139745
139783
  const Fe = ve.getMultiple("building" + Ne);
@@ -139795,7 +139833,7 @@ class Building extends pt {
139795
139833
  );
139796
139834
  }
139797
139835
  yield Promise.all(
139798
- ke.map((Ue) => K0(this, null, function* () {
139836
+ ke.map((Ue) => N0(this, null, function* () {
139799
139837
  const { h: ht, z: at } = Ue.userData, Ae = ht + at, ct = Ae <= 20 ? "20" : Ae <= 60 ? "60" : "max";
139800
139838
  let lt = this.options.material;
139801
139839
  lt || (lt = [Fe[ct + "Top"], Fe[ct + "Side"]]);
@@ -139882,7 +139920,7 @@ class Road extends pt {
139882
139920
  this.options = D0({}, r);
139883
139921
  }
139884
139922
  create() {
139885
- return K0(this, null, function* () {
139923
+ return N0(this, null, function* () {
139886
139924
  const { clip: r, grey: m } = this.options;
139887
139925
  this.createGroup();
139888
139926
  const C = this.pencil.getPlugin("worker"), _ = this.pencil.lead, I = this.pencil.mList, O = m ? "-grey" : "", { json: ve, projection: Ce, cacheKey: Pe, meters: Ne } = this.options;
@@ -139934,7 +139972,7 @@ class Road extends pt {
139934
139972
  );
139935
139973
  }
139936
139974
  yield Promise.all(
139937
- Fe.map((ke, Ue) => K0(this, null, function* () {
139975
+ Fe.map((ke, Ue) => N0(this, null, function* () {
139938
139976
  const ht = yield _.draw(
139939
139977
  "Line",
139940
139978
  {
@@ -139962,7 +140000,7 @@ class Area extends pt {
139962
140000
  this.options = D0({}, r);
139963
140001
  }
139964
140002
  create() {
139965
- return K0(this, null, function* () {
140003
+ return N0(this, null, function* () {
139966
140004
  this.createGroup();
139967
140005
  const { json: r, projection: m, type: C, cacheKey: _, material: I, oArr: O, clip: ve } = this.options, Ce = this.pencil.getPlugin("worker"), Pe = this.pencil.lead;
139968
140006
  let Ne = _ ? yield Ce.getCachedGeometry({
@@ -140022,7 +140060,7 @@ class Area extends pt {
140022
140060
  );
140023
140061
  }
140024
140062
  yield Promise.all(
140025
- Ne.map((Fe, ke) => K0(this, null, function* () {
140063
+ Ne.map((Fe, ke) => N0(this, null, function* () {
140026
140064
  const { z: Ue } = Fe.userData, ht = yield Pe.draw(
140027
140065
  "ExtrudePolygon",
140028
140066
  {
@@ -140514,7 +140552,7 @@ class CityPlane extends pt {
140514
140552
  }, r);
140515
140553
  }
140516
140554
  create() {
140517
- return K0(this, null, function* () {
140555
+ return N0(this, null, function* () {
140518
140556
  const { width: r, height: m, color: C, map: _, material: I } = this.options, O = new PlaneGeometry(r, m, 2, 2);
140519
140557
  this.plane = O;
140520
140558
  const ve = I || new MeshBasicMaterial({
@@ -140642,7 +140680,7 @@ class Target extends pt {
140642
140680
  return _.translateZ(1), _;
140643
140681
  }
140644
140682
  create() {
140645
- return K0(this, null, function* () {
140683
+ return N0(this, null, function* () {
140646
140684
  const { scale: r = 0.03 } = this.options;
140647
140685
  this.createGroup();
140648
140686
  const m = this.pencil.loader, C = "241, 241, 86", _ = m.getAsset("/image/city/cylinder.webp"), I = getCanvasTexture(C), O = this.createRipple(I);
@@ -140884,7 +140922,7 @@ class City$1 extends Base {
140884
140922
  );
140885
140923
  }
140886
140924
  initMaterial() {
140887
- return K0(this, null, function* () {
140925
+ return N0(this, null, function* () {
140888
140926
  if (this.options.showBuilding) {
140889
140927
  const r = ["20", "60", "max"].reduce(
140890
140928
  (C, _) => {
@@ -141000,7 +141038,7 @@ class City$1 extends Base {
141000
141038
  r && !r.enabled && (r.enabled = !0, console.log("enabledSSAO"));
141001
141039
  }
141002
141040
  init() {
141003
- return K0(this, null, function* () {
141041
+ return N0(this, null, function* () {
141004
141042
  const { jsonName: r, adcode: m } = this.options;
141005
141043
  yield this.initPencil(), this.loaderAdd(), this.loaderAddJson(r), console.time(`vis-core:time.${this.visName}${m}-loader`), yield this.loader.loadAll(), console.timeEnd(`vis-core:time.${this.visName}${m}-loader`), this.settings.mouseLeft = Gi.SCREEN_PAN, yield this.settings.mouseLeft, this.pencil.camera.userData.up = "0,0,1", this.adcode = this.options.adcode, this.options.center && (this.pcenter = this.options.center), this.projection = f({
141006
141044
  center: this.pcenter,
@@ -141027,7 +141065,7 @@ class City$1 extends Base {
141027
141065
  return (C = (m = this.projection).invert) == null ? void 0 : C.call(m, [r.x, -r.z]);
141028
141066
  }
141029
141067
  fitTo(r, m = !0) {
141030
- return K0(this, null, function* () {
141068
+ return N0(this, null, function* () {
141031
141069
  this.pencil.controls.fitToBox(r.object3d, m), this.pencil.controls.rotatePolarTo(
141032
141070
  this.pencil.camera.up.z === 1 ? Math.PI / 180 * 70 : Math.PI / 180 * 160,
141033
141071
  m
@@ -141035,7 +141073,7 @@ class City$1 extends Base {
141035
141073
  });
141036
141074
  }
141037
141075
  initVis() {
141038
- return K0(this, null, function* () {
141076
+ return N0(this, null, function* () {
141039
141077
  const { fitTo: r, jsonName: m, planeOut: C } = this.options, _ = this.adcode, I = this.loader, O = this.options.showBuilding && I.getAsset(`/cityGzip/Building${m}.json.gzip`), ve = this.options.showRoad && I.getAsset(`/cityGzip/Road${m}.json.gzip`), Ce = this.options.showRiver && I.getAsset(`/cityGzip/River${m}.json.gzip`), Pe = this.options.showGrassland && I.getAsset(`/cityGzip/Grassland${m}.json.gzip`), Ne = {};
141040
141078
  [
141041
141079
  ...(Ce == null ? void 0 : Ce.features) || [],
@@ -141099,7 +141137,7 @@ class City$1 extends Base {
141099
141137
  });
141100
141138
  }
141101
141139
  fitToTarget(r, m) {
141102
- return K0(this, null, function* () {
141140
+ return N0(this, null, function* () {
141103
141141
  const C = this.lead.getObject("Target", {
141104
141142
  key: "cityTarget" + r
141105
141143
  });
@@ -141133,7 +141171,7 @@ class City$1 extends Base {
141133
141171
  });
141134
141172
  }
141135
141173
  drawBuilding() {
141136
- return K0(this, arguments, function* (r = {}) {
141174
+ return N0(this, arguments, function* (r = {}) {
141137
141175
  var _;
141138
141176
  if (!r.json) {
141139
141177
  console.warn(" json:Building");
@@ -141171,7 +141209,7 @@ class City$1 extends Base {
141171
141209
  });
141172
141210
  }
141173
141211
  drawArea() {
141174
- return K0(this, arguments, function* (r = {}) {
141212
+ return N0(this, arguments, function* (r = {}) {
141175
141213
  var O;
141176
141214
  if (!r.json) {
141177
141215
  console.warn(" json:drawGeography");
@@ -141212,7 +141250,7 @@ class City$1 extends Base {
141212
141250
  });
141213
141251
  }
141214
141252
  drawRoad() {
141215
- return K0(this, arguments, function* (r = {}) {
141253
+ return N0(this, arguments, function* (r = {}) {
141216
141254
  var I;
141217
141255
  if (!r.json) {
141218
141256
  console.warn(" json:Road");
@@ -141293,7 +141331,7 @@ class Countries extends pt {
141293
141331
  }, r);
141294
141332
  }
141295
141333
  create() {
141296
- return K0(this, null, function* () {
141334
+ return N0(this, null, function* () {
141297
141335
  const {
141298
141336
  geojson: r,
141299
141337
  mats: m,
@@ -141313,9 +141351,9 @@ class Countries extends pt {
141313
141351
  });
141314
141352
  const ke = this.options.hasTop || this.options.hasSide, Ue = this.options.hasLine;
141315
141353
  I || (Fe = [
141316
- { coords: Fe.map(({ coords: ht }) => ht).flat(), properties: {} }
141354
+ { coords: Fe.flatMap(({ coords: ht }) => ht), properties: {} }
141317
141355
  ]), yield Promise.all(
141318
- Fe.map((ht) => [
141356
+ Fe.flatMap((ht) => [
141319
141357
  ke && O.geoGeometry("conicPolygon", {
141320
141358
  mesaage: {
141321
141359
  start: [this.options.start],
@@ -141327,11 +141365,12 @@ class Countries extends pt {
141327
141365
  bbox: this.options.bbox,
141328
141366
  hasSide: C
141329
141367
  },
141330
- cb: (at) => K0(this, null, function* () {
141368
+ cb: (at) => N0(this, null, function* () {
141331
141369
  var ct, lt;
141332
141370
  const Ae = yield ve.draw(
141333
141371
  "ConicPolygon",
141334
141372
  {
141373
+ key: `$p:-${ht.properties.adcode || ht.properties.iso_a2 || "conicPolygon"}`,
141335
141374
  geometry: at,
141336
141375
  material: C ? [Pe, Ce] : Pe,
141337
141376
  hasSide: C
@@ -141347,11 +141386,12 @@ class Countries extends pt {
141347
141386
  lineWidth: [1],
141348
141387
  coordinatesArr: ht.coords
141349
141388
  },
141350
- cb: (at) => K0(this, null, function* () {
141389
+ cb: (at) => N0(this, null, function* () {
141351
141390
  var ct;
141352
141391
  const Ae = yield ve.draw(
141353
141392
  "Line",
141354
141393
  {
141394
+ key: `$p:-${ht.properties.adcode || ht.properties.iso_a2 || "conicLine"}`,
141355
141395
  geometry: at,
141356
141396
  material: Ne,
141357
141397
  onTop: 2
@@ -141361,7 +141401,7 @@ class Countries extends pt {
141361
141401
  Ae.object3d.name = (ct = ht.properties) != null && ct.name ? ht.properties.name + "-线" : "线", Ae.userData = D0({}, ht.properties), this.lineArr.push(Ae);
141362
141402
  })
141363
141403
  })
141364
- ].filter(Boolean)).flat()
141404
+ ].filter(Boolean))
141365
141405
  );
141366
141406
  });
141367
141407
  }
@@ -141375,7 +141415,7 @@ class SphereShadow extends pt {
141375
141415
  }, r);
141376
141416
  }
141377
141417
  create() {
141378
- return K0(this, null, function* () {
141418
+ return N0(this, null, function* () {
141379
141419
  const r = new SphereGeometry(this.options.radius, 128, 90), m = new MeshBasicMaterial();
141380
141420
  this.createMesh(r, m), this.scale.multiplyScalar(1.001), this.rotation.y = Math.PI / 180 * -90, this.object3d.name = "阴影面", this.hide();
141381
141421
  });
@@ -141392,7 +141432,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141392
141432
  colorCorrection: !1
141393
141433
  });
141394
141434
  }, v.initMaterial = function() {
141395
- return K0(this, null, function* () {
141435
+ return N0(this, null, function* () {
141396
141436
  const t = this.loader, r = t.getAsset("/image/earth2/basic.jpg"), m = t.getAsset("/image/earth2/NormalMap.jpg"), C = new MeshStandardMaterial({
141397
141437
  name: "地球材质",
141398
141438
  map: r,
@@ -141404,7 +141444,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141404
141444
  this.mList.add("earthMaterial", C);
141405
141445
  });
141406
141446
  }, v.initVis = function() {
141407
- return K0(this, null, function* () {
141447
+ return N0(this, null, function* () {
141408
141448
  v.pencil.camera.near = 1, v.pencil.camera.far = 3e3, v.pencil.camera.fov = 12, v.pencil.camera.updateProjectionMatrix();
141409
141449
  const [t, r] = yield Promise.all([
141410
141450
  this.lead.draw("Light", {
@@ -141424,6 +141464,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141424
141464
  };
141425
141465
  }, chinaPlate = (v) => {
141426
141466
  v.extendsOptions = Ui(D0({}, v.extendsOptions), {
141467
+ otherMapDepth: () => v.options.otherMapDepth,
141427
141468
  copyChinaPlane: v.options.copyChinaPlane
141428
141469
  }), v.loaderAdd = function() {
141429
141470
  const { loader: t } = this;
@@ -141435,7 +141476,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141435
141476
  colorCorrection: !1
141436
141477
  });
141437
141478
  }, v.initVis = function() {
141438
- return K0(this, null, function* () {
141479
+ return N0(this, null, function* () {
141439
141480
  yield this.initLight();
141440
141481
  const [, t, r, m] = yield Promise.all([
141441
141482
  this.lead.draw("Earth", {
@@ -141443,6 +141484,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141443
141484
  rotationY: Math.PI / 180 * -90
141444
141485
  }),
141445
141486
  this.lead.draw("Countries", {
141487
+ key: "countries",
141446
141488
  geojson: {
141447
141489
  type: "FeatureCollection",
141448
141490
  features: worldJson.features.filter(
@@ -141452,14 +141494,16 @@ const objs$1 = Ui(D0({}, objs$3), {
141452
141494
  }
141453
141495
  )
141454
141496
  },
141455
- depth: 0,
141497
+ depth: this.options.otherMapDepth,
141456
141498
  start: this.options.radius,
141457
141499
  mats: this.mList.getMultiple("world"),
141458
- hasSide: !1,
141459
- hasTop: !1,
141460
- areaGroup: !1
141500
+ hasSide: !!this.options.otherMapDepth,
141501
+ hasTop: !!this.options.otherMapDepth,
141502
+ areaGroup: !1,
141503
+ bbox: [-180, -90, 180, 90]
141461
141504
  }),
141462
141505
  this.lead.draw("Countries", {
141506
+ key: "chinaOutLine",
141463
141507
  geojson: chinaLiteJson,
141464
141508
  depth: 0,
141465
141509
  start: this.options.radius + this.options.mapDepth,
@@ -141468,6 +141512,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141468
141512
  hasTop: !1
141469
141513
  }),
141470
141514
  this.lead.draw("Countries", {
141515
+ key: "china",
141471
141516
  geojson: chinaJson,
141472
141517
  depth: this.options.mapDepth,
141473
141518
  start: this.options.radius,
@@ -141476,9 +141521,10 @@ const objs$1 = Ui(D0({}, objs$3), {
141476
141521
  lineDuration: 6e3
141477
141522
  })
141478
141523
  ]);
141479
- if (t.object3d.name = "世界", r.object3d.name = "中国边界", m.object3d.name = "中国", this.map = m, this.options.copyChinaPlane) {
141524
+ if (t.object3d.name = "世界", r.object3d.name = "中国边界", m.object3d.name = "中国", v.initBaseObjectUserData(r.children[0]), this.map = m, this.options.copyChinaPlane) {
141480
141525
  this.options.copyChinaPlane;
141481
141526
  const C = yield this.lead.draw("Countries", {
141527
+ key: "chinaCopy",
141482
141528
  geojson: chinaJson,
141483
141529
  depth: this.options.mapDepth,
141484
141530
  start: this.options.radius,
@@ -141505,7 +141551,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141505
141551
  ), yield this.pencil.controls.dollyTo(99.11560932366835, !1);
141506
141552
  });
141507
141553
  }, v.initMaterial = function() {
141508
- return K0(this, null, function* () {
141554
+ return N0(this, null, function* () {
141509
141555
  const t = this.loader, r = new MeshStandardMaterial({
141510
141556
  side: DoubleSide,
141511
141557
  name: "顶面",
@@ -141528,17 +141574,21 @@ const objs$1 = Ui(D0({}, objs$3), {
141528
141574
  lineWidth: 0.6,
141529
141575
  sizeAttenuation: !1,
141530
141576
  color: new Color$1("#80abaf")
141531
- }), I = t.getAsset("/image/earth/basic.webp"), O = new MeshStandardMaterial({
141577
+ }), I = new MeshBasicMaterial({
141578
+ name: "世界顶面"
141579
+ }), O = new MeshBasicMaterial({
141580
+ name: "世界侧面"
141581
+ }), ve = t.getAsset("/image/earth/basic.webp"), Ce = new MeshStandardMaterial({
141532
141582
  name: "地球材质",
141533
- map: I,
141583
+ map: ve,
141534
141584
  color: new Color$1(2397309),
141535
141585
  metalness: 0.84,
141536
141586
  roughness: 0.51
141537
- }), ve = t.getAsset("/image/earth/flyline.png");
141538
- ve.wrapS = RepeatWrapping, ve.wrapT = RepeatWrapping, ve.repeat.set(0.5, 0.5);
141539
- const Ce = new _e$1({
141587
+ }), Pe = t.getAsset("/image/earth/flyline.png");
141588
+ Pe.wrapS = RepeatWrapping, Pe.wrapT = RepeatWrapping, Pe.repeat.set(0.5, 0.5);
141589
+ const Ne = new _e$1({
141540
141590
  name: "省份边界",
141541
- map: ve,
141591
+ map: Pe,
141542
141592
  lineWidth: 0.6,
141543
141593
  sizeAttenuation: !1,
141544
141594
  transparent: !0,
@@ -141547,17 +141597,19 @@ const objs$1 = Ui(D0({}, objs$3), {
141547
141597
  this.mList.addMultiple("plane", {
141548
141598
  topMat: r,
141549
141599
  borderMat: m,
141550
- outLine: Ce
141600
+ outLine: Ne
141551
141601
  }), this.mList.addMultiple("world", {
141602
+ topMat: I,
141603
+ borderMat: O,
141552
141604
  outLine: _
141553
141605
  }), this.mList.addMultiple("china", {
141554
141606
  outLine: C
141555
- }), this.mList.add("earthMaterial", O);
141607
+ }), this.mList.add("earthMaterial", Ce);
141556
141608
  });
141557
141609
  };
141558
141610
  }, countryPlate = (v) => {
141559
141611
  v.initVis = function() {
141560
- return K0(this, null, function* () {
141612
+ return N0(this, null, function* () {
141561
141613
  yield this.initLight();
141562
141614
  const [, t] = yield Promise.all([
141563
141615
  this.lead.draw("Earth", {
@@ -141565,6 +141617,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141565
141617
  rotationY: Math.PI / 180 * -90
141566
141618
  }),
141567
141619
  this.lead.draw("Countries", {
141620
+ key: "countries",
141568
141621
  geojson: worldJson,
141569
141622
  depth: this.options.mapDepth,
141570
141623
  start: this.options.radius,
@@ -141579,7 +141632,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141579
141632
  this.map = t, yield this.pencil.controls.rotateTo(1.8041576242193995, 1.2232045720480524, !1), yield this.pencil.controls.dollyTo(99.11560932366835, !1), this.playing && (this.pencil.controls.minPolarAngle = this.pencil.controls.polarAngle, this.pencil.controls.maxPolarAngle = this.pencil.controls.polarAngle);
141580
141633
  });
141581
141634
  }, v.initMaterial = function() {
141582
- return K0(this, null, function* () {
141635
+ return N0(this, null, function* () {
141583
141636
  const t = new MeshStandardMaterial({
141584
141637
  side: DoubleSide,
141585
141638
  name: "侧面",
@@ -141622,7 +141675,6 @@ const objs$1 = Ui(D0({}, objs$3), {
141622
141675
  mapDepth: () => this.options.mapDepth
141623
141676
  });
141624
141677
  b0(this, "map");
141625
- b0(this, "autoRotateSpeed", 0);
141626
141678
  }
141627
141679
  get mapArea() {
141628
141680
  return this.map.areaArr;
@@ -141630,16 +141682,17 @@ const objs$1 = Ui(D0({}, objs$3), {
141630
141682
  setOptions(r) {
141631
141683
  super.setOptions(D0({
141632
141684
  mapDepth: 1.4,
141685
+ otherMapDepth: 0,
141633
141686
  radius: 30,
141634
141687
  style: "chinaPlate",
141635
141688
  copyChinaPlane: !1
141636
141689
  }, r)), this.initSettingsObj = {
141637
- autoRotate: !1
141690
+ autoRotateSpeed: 0
141638
141691
  }, styles[this.options.style](this);
141639
141692
  }
141640
141693
  handleSetting(r, m) {
141641
- return K0(this, null, function* () {
141642
- return yield yn(Zn.prototype, this, "handleSetting").call(this, r, m), r === "autoRotate" && this.playing && (m ? this.autoRotateSpeed = -20 : this.autoRotateSpeed = 0, this.pencil.autoRotate(this.autoRotateSpeed)), m;
141694
+ return N0(this, null, function* () {
141695
+ return yield yn(Zn.prototype, this, "handleSetting").call(this, r, m), r === "autoRotateSpeed" ? this.pencil.autoRotate(m) : r === "autoRotate" && (m ? this.settings.autoRotateSpeed = -20 : this.settings.autoRotateSpeed = 0), m;
141643
141696
  });
141644
141697
  }
141645
141698
  show() {
@@ -141650,11 +141703,11 @@ const objs$1 = Ui(D0({}, objs$3), {
141650
141703
  r.addEventListener("controlstart", () => {
141651
141704
  this.pencil.autoRotate(0);
141652
141705
  }), r.addEventListener("controlend", () => {
141653
- this.pencil.autoRotate(this.autoRotateSpeed);
141706
+ this.pencil.autoRotate(this.settings.autoRotateSpeed);
141654
141707
  });
141655
141708
  }
141656
141709
  initLight() {
141657
- return K0(this, null, function* () {
141710
+ return N0(this, null, function* () {
141658
141711
  const [r, m] = yield Promise.all([
141659
141712
  this.lead.draw("Light", {
141660
141713
  type: "RectAreaLight",
@@ -141697,7 +141750,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141697
141750
  }
141698
141751
  }
141699
141752
  addAreaPlaneByProperty(r, m, C) {
141700
- return K0(this, null, function* () {
141753
+ return N0(this, null, function* () {
141701
141754
  if (!this.map) return;
141702
141755
  const I = this.map.options.geojson.features.find(
141703
141756
  (O) => O.properties && O.properties[r] === m
@@ -141738,7 +141791,7 @@ const objs$1 = Ui(D0({}, objs$3), {
141738
141791
  };
141739
141792
  b0(Zn, "VisName", "earth");
141740
141793
  let index$1 = Zn;
141741
- const timeOut = (v) => K0(void 0, null, function* () {
141794
+ const timeOut = (v) => N0(void 0, null, function* () {
141742
141795
  const t = makePromiseCreator();
141743
141796
  return setTimeout(() => {
141744
141797
  t.resolve();
@@ -141877,7 +141930,7 @@ let PlaneMap$1 = class extends pt {
141877
141930
  }, r), ((m = this.options.projection.rotate) == null ? void 0 : m[0]) === -160 && (this.options.projection.projectionType === "winkel3" ? this.splitPolygons = 100 : this.splitPolygons = 300);
141878
141931
  }
141879
141932
  create() {
141880
- return K0(this, null, function* () {
141933
+ return N0(this, null, function* () {
141881
141934
  const {
141882
141935
  geojson: r,
141883
141936
  extrudeLineGeojson: m,
@@ -141891,7 +141944,7 @@ let PlaneMap$1 = class extends pt {
141891
141944
  const Ce = this.pencil.lead;
141892
141945
  if (_) {
141893
141946
  const Lt = yield Promise.all(
141894
- r.features.map((Xt) => K0(this, null, function* () {
141947
+ r.features.map((Xt) => N0(this, null, function* () {
141895
141948
  const { properties: Zt } = Xt, wt = `${this.getPropertiesKey(Zt)}`, Vt = yield Ce.draw("Group", {
141896
141949
  target: this,
141897
141950
  key: wt
@@ -141952,11 +142005,11 @@ let PlaneMap$1 = class extends pt {
141952
142005
  });
141953
142006
  }
141954
142007
  addArea(r, m) {
141955
- return K0(this, null, function* () {
142008
+ return N0(this, null, function* () {
141956
142009
  const { bbox: C, material: _, onTop: I } = m, O = this.geojson2Meta(r), ve = this.pencil.getPlugin("worker"), Ce = this.pencil.lead;
141957
142010
  if (this.pencil.mList, m.areaGroup)
141958
142011
  return yield Promise.all(
141959
- O.map((Pe) => K0(this, null, function* () {
142012
+ O.map((Pe) => N0(this, null, function* () {
141960
142013
  const { coords: Ne, properties: Fe } = Pe, ke = this.findGroup(this.getPropertiesKey(Fe)), Ue = yield ve.geoGeometry(
141961
142014
  "extrudePolygon",
141962
142015
  {
@@ -142016,11 +142069,11 @@ let PlaneMap$1 = class extends pt {
142016
142069
  });
142017
142070
  }
142018
142071
  addLine(r, m) {
142019
- return K0(this, null, function* () {
142072
+ return N0(this, null, function* () {
142020
142073
  const { material: C, onTop: _ } = m, I = this.geojson2Meta(r), O = this.pencil.getPlugin("worker"), ve = this.pencil.lead;
142021
142074
  if (m.areaGroup)
142022
142075
  return yield Promise.all(
142023
- I.map((Ce) => K0(this, null, function* () {
142076
+ I.map((Ce) => N0(this, null, function* () {
142024
142077
  const { coords: Pe, properties: Ne } = Ce, Fe = this.findGroup(this.getPropertiesKey(Ne)), ke = yield O.geoGeometry("line", {
142025
142078
  mesaage: {
142026
142079
  coordinatesArr: Pe,
@@ -142199,10 +142252,10 @@ class ContinentsBg extends pt {
142199
142252
  this.options = r;
142200
142253
  }
142201
142254
  create() {
142202
- return K0(this, null, function* () {
142255
+ return N0(this, null, function* () {
142203
142256
  const { depth: r } = this.options, m = this.pencil.mList, C = this.pencil.lead, _ = m.getMultiple("continents");
142204
142257
  this.createGroup(), this.object3d.name = "大洲", yield Promise.all(
142205
- Object.values(continentsLiteJson).map((I) => K0(this, null, function* () {
142258
+ Object.values(continentsLiteJson).map((I) => N0(this, null, function* () {
142206
142259
  const O = I.features[0], ve = O.properties.adcode;
142207
142260
  if (ve === 10) return;
142208
142261
  const Ce = centroid(O).geometry.coordinates;
@@ -142286,7 +142339,7 @@ class PlaneMap extends pt {
142286
142339
  });
142287
142340
  }
142288
142341
  create() {
142289
- return K0(this, null, function* () {
142342
+ return N0(this, null, function* () {
142290
142343
  const { geojson: r, bbox: m } = this.options, C = this.geojson2Meta(r), _ = this.pencil.getPlugin("worker"), I = this.pencil.lead, ve = yield this.pencil.loader.load("/1.png"), Ce = yield _.geoGeometry("extrudePolygon", {
142291
142344
  mesaage: {
142292
142345
  coordinatesArr: C.map(({ coords: ct }) => ct).flat(),
@@ -142389,7 +142442,7 @@ const getLabelElement = (v) => {
142389
142442
  const t = this.loader;
142390
142443
  t.add(["/image/map/jianbian.webp"]), t.add(["/image/map/hp2.webp", "/image/map/fx2.webp"]);
142391
142444
  }, v.initMaterial = function() {
142392
- return K0(this, null, function* () {
142445
+ return N0(this, null, function* () {
142393
142446
  const t = this.loader, r = this.mList, m = (() => {
142394
142447
  const C = t.getAsset("/image/map/hp2.webp");
142395
142448
  C.center.set(0.5, 0.5), C.repeat.set(0.97, 1.01);
@@ -142433,7 +142486,7 @@ const getLabelElement = (v) => {
142433
142486
  return;
142434
142487
  }
142435
142488
  v.initMaterial = function() {
142436
- return K0(this, null, function* () {
142489
+ return N0(this, null, function* () {
142437
142490
  const t = this.mList, r = (() => {
142438
142491
  const m = new MeshBasicMaterial({
142439
142492
  name: "顶面",
@@ -142468,7 +142521,7 @@ const getLabelElement = (v) => {
142468
142521
  };
142469
142522
  }, china = (v) => {
142470
142523
  v.options.lineOffset = 5e-3, v.loaderAdd = function() {
142471
- return K0(this, null, function* () {
142524
+ return N0(this, null, function* () {
142472
142525
  this.loader.add([
142473
142526
  "/image/map/jianbian.webp",
142474
142527
  "/image/map/hp.webp",
@@ -142476,7 +142529,7 @@ const getLabelElement = (v) => {
142476
142529
  ]), this.loaderAddBg();
142477
142530
  });
142478
142531
  }, v.initMaterial = function() {
142479
- return K0(this, null, function* () {
142532
+ return N0(this, null, function* () {
142480
142533
  const t = this.loader, r = (() => {
142481
142534
  const m = new MeshStandardMaterial({
142482
142535
  name: "顶面",
@@ -142512,11 +142565,11 @@ const getLabelElement = (v) => {
142512
142565
  };
142513
142566
  }, base$1 = (v) => {
142514
142567
  v.loaderAdd = function() {
142515
- return K0(this, null, function* () {
142568
+ return N0(this, null, function* () {
142516
142569
  this.loader.add(["/image/map/jianbian.webp"]), this.loaderAddBg();
142517
142570
  });
142518
142571
  }, v.initMaterial = function() {
142519
- return K0(this, null, function* () {
142572
+ return N0(this, null, function* () {
142520
142573
  const t = this.loader, r = (() => {
142521
142574
  const m = new MeshBasicMaterial({
142522
142575
  name: "顶面",
@@ -142572,7 +142625,7 @@ const getLabelElement = (v) => {
142572
142625
  }, v.options.parentBg && (v.extendsOptions.parentBgDepth = () => v.options.parentBgDepth), v.loaderAdd = function() {
142573
142626
  this.loader.add(["/image/map2/side.png"]);
142574
142627
  }, v.initMaterial = function() {
142575
- return K0(this, null, function* () {
142628
+ return N0(this, null, function* () {
142576
142629
  const r = this.loader, m = (() => {
142577
142630
  const C = new MeshBasicMaterial({
142578
142631
  name: "板块顶面",
@@ -142608,13 +142661,13 @@ const getLabelElement = (v) => {
142608
142661
  };
142609
142662
  const t = v.init.bind(v);
142610
142663
  v.init = function() {
142611
- return K0(this, null, function* () {
142664
+ return N0(this, null, function* () {
142612
142665
  yield t(), yield this.initCityOnMap(this.mapInfo.adcode);
142613
142666
  });
142614
142667
  };
142615
142668
  }, base = (v) => {
142616
142669
  if (v.initMaterialBg = function() {
142617
- return K0(this, null, function* () {
142670
+ return N0(this, null, function* () {
142618
142671
  const t = this.getRoomEnvMap();
142619
142672
  if (this.options.parentBg) {
142620
142673
  if (this.options.adcode !== 1e5) {
@@ -142698,11 +142751,11 @@ const getLabelElement = (v) => {
142698
142751
  return;
142699
142752
  }
142700
142753
  v.loaderAdd = function() {
142701
- return K0(this, null, function* () {
142754
+ return N0(this, null, function* () {
142702
142755
  this.loaderAddBg();
142703
142756
  });
142704
142757
  }, v.initMaterial = function() {
142705
- return K0(this, null, function* () {
142758
+ return N0(this, null, function* () {
142706
142759
  const t = (() => {
142707
142760
  const r = new MeshBasicMaterial({
142708
142761
  name: "板块顶面",
@@ -142858,12 +142911,12 @@ const getLabelElement = (v) => {
142858
142911
  })), this.options.equirectangular && (this.options.projectionType = "equirectangular"), this.options.winkel3 && (this.options.projectionType = "winkel3"), this.options.adcode === 0 ? this.extendsOptions.winkel3 = () => this.options.winkel3 : (this.getAdcodeShowLevel(this.options.adcode) === "province" || this.getAdcodeShowLevel(this.options.adcode) === "country") && (this.extendsOptions.clickHandleDrillDown = () => this.options.clickHandleDrillDown, this.options.clickHandleDrillDown && (this.workerOnce = !1, this.extendsOptions.mapDepth = () => Array.isArray(this.options.mapDepth) ? this.options.mapDepth : new Array(3).fill(this.options.mapDepth), this.extendsOptions.drillDownFirstLevelUseBgMats = () => this.options.drillDownFirstLevelUseBgMats, this.extendsOptions.drillDownSecondLevelMats = () => this.options.drillDownSecondLevelMats, this.extendsOptions.drillDownThirdLevelMats = () => this.options.drillDownThirdLevelMats, this.extendsOptions.drillDownPlateInCenter = () => this.options.drillDownPlateInCenter, this.extendsOptions.clickOusideBack = () => this.options.clickOusideBack, this.extendsOptions.handleBackKeepCamvasState = () => this.options.handleBackKeepCamvasState, this.extendsOptions.showOneLevel = () => this.options.showOneLevel, this.extendsOptions.showDistrict = () => this.options.showDistrict, this.options.parentBg && (this.extendsOptions.drillDownHideParent = () => this.options.drillDownHideParent)), this.extendsOptions.parentBg = () => this.options.parentBg, this.options.parentBg && (this.extendsOptions.parentBgDepth = () => this.options.parentBgDepth), this.extendsOptions.continentsBg = () => this.options.continentsBg, this.options.continentsBg && (this.extendsOptions.continentsBgDepth = () => this.options.continentsBgDepth)), this.options.adcode === 0 ? world(this) : this.options.style === "map2Base" || this.options.style === "map2CityOnMap" ? base(this) : this.options.adcode === 1e5 ? china(this) : base$1(this);
142859
142912
  }
142860
142913
  handleSetting(r, m) {
142861
- return K0(this, null, function* () {
142914
+ return N0(this, null, function* () {
142862
142915
  return yield yn(xn.prototype, this, "handleSetting").call(this, r, m), r === "label" ? m === !1 ? (this.eraseLabels(), this.options.showLabel = !1) : (this.settings.labelLite = !1, yield this.settings.labelLite, this.options.showLabel = !0, yield this.drawLabels()) : r === "labelLite" ? m === !1 ? (this.eraseLabels(), this.options.showLabel = !1) : (this.settings.label = !1, yield this.settings.label, this.options.showLabel = "lite", yield this.drawLabels()) : r === "shadowMap" && (m === !1 ? this.shadowMapDisabled() : yield this.shadowMapEnabled()), m;
142863
142916
  });
142864
142917
  }
142865
142918
  init() {
142866
- return K0(this, null, function* () {
142919
+ return N0(this, null, function* () {
142867
142920
  const { adcode: r } = this.options;
142868
142921
  this.options.center && (this.pcenter = this.options.center), this.projection = f({
142869
142922
  center: this.pcenter,
@@ -142888,7 +142941,7 @@ const getLabelElement = (v) => {
142888
142941
  });
142889
142942
  }
142890
142943
  initCityVis(C) {
142891
- return K0(this, arguments, function* (r, m = { clip: !1, grey: !1 }) {
142944
+ return N0(this, arguments, function* (r, m = { clip: !1, grey: !1 }) {
142892
142945
  var ve;
142893
142946
  (ve = this.options.fixCity) != null && ve[r] && (r = this.options.fixCity[r]);
142894
142947
  const _ = this.options.center, I = this.options.jsonNameObj[r], O = new City({
@@ -142920,7 +142973,7 @@ const getLabelElement = (v) => {
142920
142973
  });
142921
142974
  }
142922
142975
  initCityOnMap(r) {
142923
- return K0(this, null, function* () {
142976
+ return N0(this, null, function* () {
142924
142977
  if (this.getAdcodeShowLevel(r) !== "city") {
142925
142978
  const _ = findAdcodeInfo(r).parent;
142926
142979
  this.getAdcodeShowLevel(_) === "city" && (yield this.initCityOnMap(_));
@@ -142939,7 +142992,7 @@ const getLabelElement = (v) => {
142939
142992
  });
142940
142993
  }
142941
142994
  initVisBg() {
142942
- return K0(this, null, function* () {
142995
+ return N0(this, null, function* () {
142943
142996
  let r = 1e3, m = 1e3;
142944
142997
  const C = new Vector3(0, 0, 0);
142945
142998
  if (this.options.parentBg) {
@@ -143021,7 +143074,7 @@ const getLabelElement = (v) => {
143021
143074
  });
143022
143075
  }
143023
143076
  initVis(r) {
143024
- return K0(this, null, function* () {
143077
+ return N0(this, null, function* () {
143025
143078
  var m;
143026
143079
  if (yield this.setAdcode({
143027
143080
  adcodes: [r],
@@ -143054,7 +143107,7 @@ const getLabelElement = (v) => {
143054
143107
  );
143055
143108
  }
143056
143109
  initMaterialBg() {
143057
- return K0(this, null, function* () {
143110
+ return N0(this, null, function* () {
143058
143111
  if (this.options.parentBg) {
143059
143112
  const r = (() => {
143060
143113
  const m = new MeshStandardMaterial({
@@ -143137,7 +143190,7 @@ const getLabelElement = (v) => {
143137
143190
  }
143138
143191
  }
143139
143192
  addAreaPlaneByProperty(r, m, C) {
143140
- return K0(this, null, function* () {
143193
+ return N0(this, null, function* () {
143141
143194
  if (!this.map) return;
143142
143195
  const I = this.map.options.geojson.features.find(
143143
143196
  (O) => O.properties && O.properties[r] === m
@@ -143196,7 +143249,7 @@ const getLabelElement = (v) => {
143196
143249
  });
143197
143250
  }
143198
143251
  showAction() {
143199
- return K0(this, null, function* () {
143252
+ return N0(this, null, function* () {
143200
143253
  yn(xn.prototype, this, "showAction").call(this), this.useSaveCamera(`map-${this.options.adcode}`);
143201
143254
  const r = this.lead.group;
143202
143255
  if (this.mapHistory[0]) {
@@ -143223,7 +143276,7 @@ const getLabelElement = (v) => {
143223
143276
  });
143224
143277
  }
143225
143278
  hide() {
143226
- return K0(this, null, function* () {
143279
+ return N0(this, null, function* () {
143227
143280
  if (!this.showState) return;
143228
143281
  const r = this.lead.group;
143229
143282
  yield sinusoidalInOut({
@@ -143236,7 +143289,7 @@ const getLabelElement = (v) => {
143236
143289
  });
143237
143290
  }
143238
143291
  shadowMapEnabled() {
143239
- return K0(this, null, function* () {
143292
+ return N0(this, null, function* () {
143240
143293
  if (this.pencil.scene.userData.shadowMapEnabled) return;
143241
143294
  this.pencil.scene.userData.shadowMapEnabled = !0;
143242
143295
  const r = yield this.lead.draw("Light", {
@@ -143310,7 +143363,7 @@ const getLabelElement = (v) => {
143310
143363
  return m;
143311
143364
  }
143312
143365
  showMap(_) {
143313
- return K0(this, arguments, function* ({
143366
+ return N0(this, arguments, function* ({
143314
143367
  adcode: r,
143315
143368
  adcodes: m,
143316
143369
  duration: C = 1e3
@@ -143323,7 +143376,7 @@ const getLabelElement = (v) => {
143323
143376
  });
143324
143377
  }
143325
143378
  drawLabels() {
143326
- return K0(this, null, function* () {
143379
+ return N0(this, null, function* () {
143327
143380
  var C;
143328
143381
  const r = this.options.showLabel;
143329
143382
  if (!((C = this.mapArea) != null && C.length) || !r) return;
@@ -143335,7 +143388,7 @@ const getLabelElement = (v) => {
143335
143388
  },
143336
143389
  this.group
143337
143390
  ), m.object3d.name = "地图标签组", yield Promise.all(
143338
- this.mapArea.map((_) => K0(this, null, function* () {
143391
+ this.mapArea.map((_) => N0(this, null, function* () {
143339
143392
  let { name: I, adcode: O, centroid: ve } = _.userData;
143340
143393
  const { DistrictID: Ce, DistName: Pe, iso_a2: Ne, center: Fe } = _.userData;
143341
143394
  if (O = O || Ne || Ce, ve = ve || Fe, I = I || Pe, !ve)
@@ -143398,7 +143451,7 @@ const getLabelElement = (v) => {
143398
143451
  return chinaLiteJson.features[0].geometry.coordinates.some((m) => booleanPointInPolygon$1(point(r), polygon(m)));
143399
143452
  }
143400
143453
  getGeojson(r, m = !1) {
143401
- return K0(this, null, function* () {
143454
+ return N0(this, null, function* () {
143402
143455
  var C, _, I, O;
143403
143456
  return m ? this.options.extrudeLine ? (I = this.options.extrudeLineGeojsonMap) != null && I[r] ? { res: (O = this.options.extrudeLineGeojsonMap) == null ? void 0 : O[r] } : yield jsonFetch(
143404
143457
  `${this.options.assetsPrefix}/geojson/json-lite/${r}.json`
@@ -143410,7 +143463,7 @@ const getLabelElement = (v) => {
143410
143463
  });
143411
143464
  }
143412
143465
  handleDrillDown(O) {
143413
- return K0(this, arguments, function* ({
143466
+ return N0(this, arguments, function* ({
143414
143467
  adcode: r,
143415
143468
  duration: m,
143416
143469
  handleLook: C,
@@ -143454,7 +143507,7 @@ const getLabelElement = (v) => {
143454
143507
  extrudelineBloom: I
143455
143508
  });
143456
143509
  ke == null || ke.hide(), qt.position.setZ(zt);
143457
- const kt = qt.position.z, Yt = () => K0(this, null, function* () {
143510
+ const kt = qt.position.z, Yt = () => N0(this, null, function* () {
143458
143511
  yield sinusoidalInOut({
143459
143512
  onUpdate: (Kt) => {
143460
143513
  Vt !== kt && (qt.position.z = kt + (Vt - kt) * Kt);
@@ -143472,7 +143525,7 @@ const getLabelElement = (v) => {
143472
143525
  enableTransition: m !== 0,
143473
143526
  polarAngle: Kt == null ? void 0 : Kt.polarAngle,
143474
143527
  azimuthAngle: Kt == null ? void 0 : Kt.azimuthAngle,
143475
- handleStart: () => K0(this, null, function* () {
143528
+ handleStart: () => N0(this, null, function* () {
143476
143529
  qt.position.z = kt, yield Yt();
143477
143530
  })
143478
143531
  });
@@ -143514,7 +143567,7 @@ const getLabelElement = (v) => {
143514
143567
  r === 0 ? (this.pencil.camera.near = 1, this.pencil.camera.far = 1e3, this.pencil.camera.updateProjectionMatrix()) : (m === "country" || m === "province") && this.pencil.camera.near !== C.camera.near * 10 ? (this.pencil.camera.near = C.camera.near * 10, this.pencil.camera.updateProjectionMatrix()) : (m === "city" || m === "district") && this.pencil.camera.near !== C.camera.near && (this.pencil.camera.near = C.camera.near, this.pencil.camera.updateProjectionMatrix());
143515
143568
  }
143516
143569
  fitTo(Ce) {
143517
- return K0(this, arguments, function* (r, {
143570
+ return N0(this, arguments, function* (r, {
143518
143571
  polarAngle: m,
143519
143572
  azimuthAngle: C,
143520
143573
  z: _,
@@ -143555,7 +143608,7 @@ const getLabelElement = (v) => {
143555
143608
  });
143556
143609
  }
143557
143610
  drawPlaneMap(ve) {
143558
- return K0(this, arguments, function* ({
143611
+ return N0(this, arguments, function* ({
143559
143612
  geojson: r,
143560
143613
  extrudeLineGeojson: m,
143561
143614
  bbox: C,
@@ -143608,7 +143661,7 @@ const getLabelElement = (v) => {
143608
143661
  });
143609
143662
  }
143610
143663
  handleBack() {
143611
- return K0(this, arguments, function* ({
143664
+ return N0(this, arguments, function* ({
143612
143665
  duration: r = 1e3,
143613
143666
  handleLookBack: m = !0,
143614
143667
  keepOne: C = !0
@@ -143639,7 +143692,7 @@ const getLabelElement = (v) => {
143639
143692
  });
143640
143693
  }
143641
143694
  handleLookBack(r) {
143642
- return K0(this, null, function* () {
143695
+ return N0(this, null, function* () {
143643
143696
  const { userControls: m, controls: C } = this.mapObj;
143644
143697
  yield this.pencil.controls.setLookAt(
143645
143698
  ...m ? m.lookAt : C.lookAt,
@@ -143659,7 +143712,7 @@ const getLabelElement = (v) => {
143659
143712
  return I;
143660
143713
  }
143661
143714
  setAdcode(C) {
143662
- return K0(this, arguments, function* ({
143715
+ return N0(this, arguments, function* ({
143663
143716
  adcodes: r,
143664
143717
  duration: m
143665
143718
  }) {
@@ -143784,7 +143837,7 @@ function stringToUtf8ByteArray(v) {
143784
143837
  }
143785
143838
  let b = "/";
143786
143839
  b === "/" && (b = "");
143787
- const getMapConfig = (C, ..._) => K0(void 0, [C, ..._], function* (v, t = b, r, m) {
143840
+ const getMapConfig = (C, ..._) => N0(void 0, [C, ..._], function* (v, t = b, r, m) {
143788
143841
  if ((r == null ? void 0 : r.style) === "map2CityOnMap")
143789
143842
  return getMapWithCityConfig(v, t, r, m);
143790
143843
  if (v === 0)
@@ -143807,7 +143860,7 @@ const getMapConfig = (C, ..._) => K0(void 0, [C, ..._], function* (v, t = b, r,
143807
143860
  m
143808
143861
  );
143809
143862
  }
143810
- }), getMapWithCityConfig = (C, ..._) => K0(void 0, [C, ..._], function* (v, t = b, r, m) {
143863
+ }), getMapWithCityConfig = (C, ..._) => N0(void 0, [C, ..._], function* (v, t = b, r, m) {
143811
143864
  const I = findAdcodeInfo(v);
143812
143865
  return extendMapConfig(
143813
143866
  {
@@ -143821,7 +143874,7 @@ const getMapConfig = (C, ..._) => K0(void 0, [C, ..._], function* (v, t = b, r,
143821
143874
  r,
143822
143875
  m
143823
143876
  );
143824
- }), extendMapConfig = (C, ..._) => K0(void 0, [C, ..._], function* (v, t = b, r, m) {
143877
+ }), extendMapConfig = (C, ..._) => N0(void 0, [C, ..._], function* (v, t = b, r, m) {
143825
143878
  var Ue, ht;
143826
143879
  if (v.adcode === 0 && v.adcode === 1e5)
143827
143880
  return D0({}, v);
@@ -143895,7 +143948,7 @@ const getMapConfig = (C, ..._) => K0(void 0, [C, ..._], function* (v, t = b, r,
143895
143948
  }
143896
143949
  }
143897
143950
  return r && (ke.depthReference = r.depthReference || findAdcodeInfo(r.adcode).b), ke;
143898
- }), getCityConfig = (r, ...m) => K0(void 0, [r, ...m], function* (v, t = b) {
143951
+ }), getCityConfig = (r, ...m) => N0(void 0, [r, ...m], function* (v, t = b) {
143899
143952
  const C = findAdcodeInfo(v), { name: _ } = C;
143900
143953
  return {
143901
143954
  center: [C.lng, C.lat],