@playcanvas/supersplat-viewer 1.43.2 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/public/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const TRACEID_GPU_TIMINGS = "GpuTimings";
2
2
 
3
- const version$1 = "2.24.1";
4
- const revision = "8597cab";
3
+ const version$1 = "2.24.3";
4
+ const revision = "2e89103";
5
5
  function extend(target, ex) {
6
6
  for (const prop in ex) {
7
7
  const copy = ex[prop];
@@ -884,6 +884,7 @@ const math = {
884
884
  }
885
885
  };
886
886
 
887
+ const toByte = (v) => math.clamp(Math.round(v * 255), 0, 255);
887
888
  const srgbToLinear = (c) => c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
888
889
  const linearToSrgb = (c) => c <= 31308e-7 ? c * 12.92 : 1.055 * Math.pow(c, 1 / 2.4) - 0.055;
889
890
  class Color {
@@ -972,14 +973,9 @@ class Color {
972
973
  if (asArray || r > 1 || g > 1 || b > 1) {
973
974
  return `${r.toFixed(3)}, ${g.toFixed(3)}, ${b.toFixed(3)}, ${a.toFixed(3)}`;
974
975
  }
975
- let s = `#${((1 << 24) + (Math.round(r * 255) << 16) + (Math.round(g * 255) << 8) + Math.round(b * 255)).toString(16).slice(1)}`;
976
+ let s = `#${((1 << 24) + (toByte(r) << 16) + (toByte(g) << 8) + toByte(b)).toString(16).slice(1)}`;
976
977
  if (alpha === true) {
977
- const aa = Math.round(a * 255).toString(16);
978
- if (this.a < 16 / 255) {
979
- s += `0${aa}`;
980
- } else {
981
- s += aa;
982
- }
978
+ s += toByte(a).toString(16).padStart(2, "0");
983
979
  }
984
980
  return s;
985
981
  }
@@ -3961,6 +3957,9 @@ const isIntegerPixelFormat = (format) => {
3961
3957
  const info = pixelFormatInfo.get(format);
3962
3958
  return info?.isInt === true || info?.isUint === true;
3963
3959
  };
3960
+ const isFloat32PixelFormat = (format) => {
3961
+ return format === PIXELFORMAT_R32F || format === PIXELFORMAT_RG32F || format === PIXELFORMAT_RGB32F || format === PIXELFORMAT_RGBA32F;
3962
+ };
3964
3963
  const GLSL_FLOAT = { sampler: "sampler2D", returnType: "vec4" };
3965
3964
  const GLSL_UINT = { sampler: "usampler2D", returnType: "uvec4" };
3966
3965
  const GLSL_INT = { sampler: "isampler2D", returnType: "ivec4" };
@@ -10561,7 +10560,7 @@ class WebgpuTexture {
10561
10560
  desc.minFilter = "nearest";
10562
10561
  desc.mipmapFilter = "nearest";
10563
10562
  } else {
10564
- const forceNearest = !device.textureFloatFilterable && (texture.format === PIXELFORMAT_RGBA32F || texture.format === PIXELFORMAT_RGBA16F);
10563
+ const forceNearest = !device.textureFloatFilterable && isFloat32PixelFormat(texture.format);
10565
10564
  if (forceNearest || this.texture.format === PIXELFORMAT_DEPTHSTENCIL || isIntegerPixelFormat(this.texture.format)) {
10566
10565
  desc.magFilter = "nearest";
10567
10566
  desc.minFilter = "nearest";
@@ -14039,7 +14038,7 @@ class WebgpuGraphicsDevice extends GraphicsDevice {
14039
14038
  this._indirectDrawBuffer = null;
14040
14039
  }
14041
14040
  if (this._indirectDrawBuffer === null) {
14042
- this._indirectDrawBuffer = new StorageBuffer(this, this.maxIndirectDrawCount * _indirectEntryByteSize, BUFFERUSAGE_INDIRECT | BUFFERUSAGE_COPY_DST);
14041
+ this._indirectDrawBuffer = new StorageBuffer(this, this.maxIndirectDrawCount * _indirectEntryByteSize, BUFFERUSAGE_INDIRECT | BUFFERUSAGE_COPY_DST | BUFFERUSAGE_COPY_SRC);
14043
14042
  this._indirectDrawBufferCount = this.maxIndirectDrawCount;
14044
14043
  }
14045
14044
  }
@@ -14060,7 +14059,7 @@ class WebgpuGraphicsDevice extends GraphicsDevice {
14060
14059
  this._indirectDispatchBuffer = null;
14061
14060
  }
14062
14061
  if (this._indirectDispatchBuffer === null) {
14063
- this._indirectDispatchBuffer = new StorageBuffer(this, this.maxIndirectDispatchCount * _indirectDispatchEntryByteSize, BUFFERUSAGE_INDIRECT | BUFFERUSAGE_COPY_DST);
14062
+ this._indirectDispatchBuffer = new StorageBuffer(this, this.maxIndirectDispatchCount * _indirectDispatchEntryByteSize, BUFFERUSAGE_INDIRECT | BUFFERUSAGE_COPY_DST | BUFFERUSAGE_COPY_SRC);
14064
14063
  this._indirectDispatchBufferCount = this.maxIndirectDispatchCount;
14065
14064
  }
14066
14065
  }
@@ -19200,7 +19199,7 @@ const addVariantDefines = (defines, key) => {
19200
19199
  if (key & VARIANT_COLOR_UNFILTERABLE) defines.set("SCENE_COLORMAP_UNFILTERABLE", "");
19201
19200
  if (key & VARIANT_COLOR_GAMMA) defines.set("SCENE_COLORMAP_GAMMA", "");
19202
19201
  };
19203
- const isUnfilterable = (device, format) => !device.textureFloatFilterable && (format === PIXELFORMAT_R32F || format === PIXELFORMAT_RG32F || format === PIXELFORMAT_RGB32F || format === PIXELFORMAT_RGBA32F);
19202
+ const isUnfilterable = (device, format) => !device.textureFloatFilterable && isFloat32PixelFormat(format);
19204
19203
  class ComputeParameter {
19205
19204
  value;
19206
19205
  }
@@ -20076,6 +20075,7 @@ let TouchDevice$1 = class TouchDevice extends EventHandler {
20076
20075
  _endHandler;
20077
20076
  _moveHandler;
20078
20077
  _cancelHandler;
20078
+ _prevTouchAction = "";
20079
20079
  constructor(element) {
20080
20080
  super();
20081
20081
  this._startHandler = this._handleTouchStart.bind(this);
@@ -20089,6 +20089,11 @@ let TouchDevice$1 = class TouchDevice extends EventHandler {
20089
20089
  this.detach();
20090
20090
  }
20091
20091
  this._element = element;
20092
+ const style = element.style;
20093
+ if (style) {
20094
+ this._prevTouchAction = style.touchAction;
20095
+ style.touchAction = "none";
20096
+ }
20092
20097
  this._element.addEventListener("touchstart", this._startHandler, false);
20093
20098
  this._element.addEventListener("touchend", this._endHandler, false);
20094
20099
  this._element.addEventListener("touchmove", this._moveHandler, false);
@@ -20100,6 +20105,10 @@ let TouchDevice$1 = class TouchDevice extends EventHandler {
20100
20105
  this._element.removeEventListener("touchend", this._endHandler, false);
20101
20106
  this._element.removeEventListener("touchmove", this._moveHandler, false);
20102
20107
  this._element.removeEventListener("touchcancel", this._cancelHandler, false);
20108
+ const style = this._element.style;
20109
+ if (style) {
20110
+ style.touchAction = this._prevTouchAction;
20111
+ }
20103
20112
  }
20104
20113
  this._element = null;
20105
20114
  }
@@ -20110,7 +20119,9 @@ let TouchDevice$1 = class TouchDevice extends EventHandler {
20110
20119
  this.fire("touchend", new TouchEvent(this, e));
20111
20120
  }
20112
20121
  _handleTouchMove(e) {
20113
- e.preventDefault();
20122
+ if (e.cancelable) {
20123
+ e.preventDefault();
20124
+ }
20114
20125
  this.fire("touchmove", new TouchEvent(this, e));
20115
20126
  }
20116
20127
  _handleTouchCancel(e) {
@@ -42267,6 +42278,10 @@ class Asset extends EventHandler {
42267
42278
  const oldFile = this._file;
42268
42279
  const newFile = value ? new AssetFile(value.url, value.filename, value.hash, value.size, value.opt, value.contents) : null;
42269
42280
  if (!!newFile !== !!oldFile || newFile && !newFile.equals(oldFile)) {
42281
+ const oldUrl = this.getFileUrl();
42282
+ if (oldUrl) {
42283
+ this.registry?._loader.clearCache(oldUrl, this.type);
42284
+ }
42270
42285
  this._file = newFile;
42271
42286
  this.fire("change", this, "file", newFile, oldFile);
42272
42287
  this.reload();
@@ -62067,6 +62082,7 @@ class GSplatUnifiedSorter extends EventHandler {
62067
62082
  // true if we have new version to process
62068
62083
  hasNewVersion = false;
62069
62084
  pendingSorted = null;
62085
+ lastSorted = null;
62070
62086
  centersSet = /* @__PURE__ */ new Set();
62071
62087
  _destroyed = false;
62072
62088
  scene = null;
@@ -62100,7 +62116,7 @@ class GSplatUnifiedSorter extends EventHandler {
62100
62116
  }
62101
62117
  const orderData = new Uint32Array(msgData.order);
62102
62118
  this.jobsInFlight--;
62103
- if (this.pendingSorted) {
62119
+ if (this.pendingSorted && this.pendingSorted !== this.lastSorted) {
62104
62120
  this.releaseOrderData(this.pendingSorted.orderData);
62105
62121
  }
62106
62122
  this.pendingSorted = {
@@ -62110,11 +62126,19 @@ class GSplatUnifiedSorter extends EventHandler {
62110
62126
  };
62111
62127
  }
62112
62128
  applyPendingSorted() {
62113
- if (this.pendingSorted) {
62114
- const { count, version, orderData } = this.pendingSorted;
62129
+ const pending = this.pendingSorted;
62130
+ if (pending) {
62115
62131
  this.pendingSorted = null;
62116
- this.fire("sorted", count, version, orderData);
62117
- this.releaseOrderData(orderData);
62132
+ this.fire("sorted", pending.count, pending.version, pending.orderData);
62133
+ if (this.lastSorted && this.lastSorted !== pending) {
62134
+ this.releaseOrderData(this.lastSorted.orderData);
62135
+ }
62136
+ this.lastSorted = pending;
62137
+ }
62138
+ }
62139
+ reapplyLastSorted() {
62140
+ if (!this.pendingSorted && this.lastSorted) {
62141
+ this.pendingSorted = this.lastSorted;
62118
62142
  }
62119
62143
  }
62120
62144
  releaseOrderData(orderData) {
@@ -62125,6 +62149,7 @@ class GSplatUnifiedSorter extends EventHandler {
62125
62149
  destroy() {
62126
62150
  this._destroyed = true;
62127
62151
  this.pendingSorted = null;
62152
+ this.lastSorted = null;
62128
62153
  this.worker.terminate();
62129
62154
  this.worker = null;
62130
62155
  }
@@ -67971,8 +67996,11 @@ class GSplatShadowRenderer {
67971
67996
  computeUniformBufferFormats: { uniforms: uniformBufferFormat }
67972
67997
  });
67973
67998
  }
67974
- setDataSource(workBuffer) {
67999
+ invalidateCullUpload() {
67975
68000
  this._compaction?.invalidateUpload();
68001
+ }
68002
+ setDataSource(workBuffer) {
68003
+ this.invalidateCullUpload();
67976
68004
  this._cullFormatVersion = -1;
67977
68005
  this.entries.forEach((entry) => {
67978
68006
  this._configureMaterialWorkBuffer(entry.material);
@@ -68312,6 +68340,7 @@ class GSplatManager {
68312
68340
  if (this.world.hasOctreeInstances) return;
68313
68341
  this.world.invalidate({ workBuffer: true });
68314
68342
  this.sortNeeded = true;
68343
+ this.cpuSorter?.reapplyLastSorted();
68315
68344
  }
68316
68345
  destroyCpuSorting() {
68317
68346
  this.cpuSorter?.destroy();
@@ -68524,6 +68553,7 @@ class GSplatManager {
68524
68553
  if (this._bakeResult.rebuilt) {
68525
68554
  this.renderer.update(this._bakeResult.count, this._bakeResult.textureSize);
68526
68555
  this.renderer.invalidateCullUpload();
68556
+ this.shadowRenderer?.invalidateCullUpload();
68527
68557
  }
68528
68558
  if (this._bakeResult.sortNeeded) this.sortNeeded = true;
68529
68559
  if (lastState) {
@@ -69020,8 +69050,9 @@ void writeSplat(vec3 center, vec4 rotation, vec3 scale, vec4 color) {
69020
69050
  writeDataColor(color);
69021
69051
  #endif
69022
69052
  #ifndef GSPLAT_COLOR_ONLY
69023
- writeDataTransformA(uvec4(gsplatPackCenterX(center.x), floatBitsToUint(center.y), floatBitsToUint(center.z), packHalf2x16(rotation.xy)));
69024
- writeDataTransformB(uvec4(packHalf2x16(vec2(rotation.z, scale.x)), packHalf2x16(scale.yz), 0u, 0u));
69053
+ vec4 q = rotation.w < 0.0 ? -rotation : rotation;
69054
+ writeDataTransformA(uvec4(gsplatPackCenterX(center.x), floatBitsToUint(center.y), floatBitsToUint(center.z), packHalf2x16(q.xy)));
69055
+ writeDataTransformB(uvec4(packHalf2x16(vec2(q.z, scale.x)), packHalf2x16(scale.yz), 0u, 0u));
69025
69056
  #endif
69026
69057
  }
69027
69058
  `;
@@ -69152,8 +69183,9 @@ fn gsplatPackCenterX(x: f32) -> u32 {
69152
69183
  fn writeSplat(center: vec3f, rotation: vec4f, scale: vec3f, color: vec4f) {
69153
69184
  writeDataColor(color);
69154
69185
  #ifndef GSPLAT_COLOR_ONLY
69155
- writeDataTransformA(vec4u(gsplatPackCenterX(center.x), bitcast<u32>(center.y), bitcast<u32>(center.z), pack2x16float(rotation.xy)));
69156
- writeDataTransformB(vec4u(pack2x16float(vec2f(rotation.z, scale.x)), pack2x16float(scale.yz), 0u, 0u));
69186
+ let q = select(rotation, -rotation, rotation.w < 0.0);
69187
+ writeDataTransformA(vec4u(gsplatPackCenterX(center.x), bitcast<u32>(center.y), bitcast<u32>(center.z), pack2x16float(q.xy)));
69188
+ writeDataTransformB(vec4u(pack2x16float(vec2f(q.z, scale.x)), pack2x16float(scale.yz), 0u, 0u));
69157
69189
  #endif
69158
69190
  }
69159
69191
  `;
@@ -70486,24 +70518,24 @@ vec3 prepareOutputFromGamma(vec3 gammaColor, float depth) {
70486
70518
  var gsplat_default$3 = `
70487
70519
  #ifndef DITHER_NONE
70488
70520
  #include "opacityDitherPS"
70489
- flat varying float id;
70521
+ varying float id;
70490
70522
  #endif
70491
70523
  #if defined(SHADOW_PASS) || defined(PICK_PASS) || defined(PREPASS_PASS)
70492
70524
  uniform float alphaClip;
70493
70525
  #endif
70494
70526
  #ifdef PREPASS_PASS
70495
- flat varying float vLinearDepth;
70527
+ varying float vLinearDepth;
70496
70528
  #include "floatAsUintPS"
70497
70529
  #endif
70498
70530
  #if defined(SCENE_TEXTURE_DEPTH) && !defined(PREPASS_PASS)
70499
- flat varying float vLinearDepth;
70531
+ varying float vLinearDepth;
70500
70532
  #endif
70501
70533
  #include "sceneTexturesPS"
70502
70534
  #if !defined(SHADOW_PASS) && !defined(PICK_PASS) && !defined(PREPASS_PASS)
70503
70535
  uniform float alphaClipForward;
70504
70536
  #endif
70505
70537
  varying mediump vec2 gaussianUV;
70506
- flat varying mediump vec4 gaussianColor;
70538
+ varying mediump vec4 gaussianColor;
70507
70539
  #if defined(GSPLAT_UNIFIED_ID) && defined(PICK_PASS)
70508
70540
  flat varying uint vPickId;
70509
70541
  #endif
@@ -70599,13 +70631,13 @@ var gsplat_default$2 = `
70599
70631
  #endif
70600
70632
  #include "gsplatCommonVS"
70601
70633
  varying mediump vec2 gaussianUV;
70602
- flat varying mediump vec4 gaussianColor;
70634
+ varying mediump vec4 gaussianColor;
70603
70635
  #ifndef DITHER_NONE
70604
- flat varying float id;
70636
+ varying float id;
70605
70637
  #endif
70606
70638
  mediump vec4 discardVec = vec4(0.0, 0.0, 2.0, 1.0);
70607
70639
  #if defined(PREPASS_PASS) || defined(SCENE_TEXTURE_DEPTH)
70608
- flat varying float vLinearDepth;
70640
+ varying float vLinearDepth;
70609
70641
  #endif
70610
70642
  #if defined(GSPLAT_UNIFIED_ID) && defined(PICK_PASS)
70611
70643
  flat varying uint vPickId;
@@ -71544,18 +71576,18 @@ var gsplat_default$1 = `
71544
71576
  #ifdef GSPLAT_STOCHASTIC
71545
71577
  varying @interpolate(flat, either) stochasticId: u32;
71546
71578
  #else
71547
- varying @interpolate(flat, either) id: f32;
71579
+ varying id: f32;
71548
71580
  #endif
71549
71581
  #endif
71550
71582
  #if defined(SHADOW_PASS) || defined(PICK_PASS) || defined(PREPASS_PASS)
71551
71583
  uniform alphaClip: f32;
71552
71584
  #endif
71553
71585
  #ifdef PREPASS_PASS
71554
- varying @interpolate(flat, either) vLinearDepth: f32;
71586
+ varying vLinearDepth: f32;
71555
71587
  #include "floatAsUintPS"
71556
71588
  #endif
71557
71589
  #if defined(SCENE_TEXTURE_DEPTH) && !defined(PREPASS_PASS)
71558
- varying @interpolate(flat, either) vLinearDepth: f32;
71590
+ varying vLinearDepth: f32;
71559
71591
  #endif
71560
71592
  #include "sceneTexturesPS"
71561
71593
  #if !defined(SHADOW_PASS) && !defined(PICK_PASS) && !defined(PREPASS_PASS)
@@ -71567,7 +71599,7 @@ fn normExp(x: half) -> half {
71567
71599
  return (exp(x * half(-4.0)) - EXP4) * INV_EXP4;
71568
71600
  }
71569
71601
  varying gaussianUV: half2;
71570
- varying @interpolate(flat, either) gaussianColor: half4;
71602
+ varying gaussianColor: half4;
71571
71603
  #if defined(GSPLAT_UNIFIED_ID) && defined(PICK_PASS)
71572
71604
  varying @interpolate(flat, either) vPickId: u32;
71573
71605
  #endif
@@ -71689,13 +71721,13 @@ var gsplat_default = `
71689
71721
  #endif
71690
71722
  #include "gsplatCommonVS"
71691
71723
  varying gaussianUV: half2;
71692
- varying @interpolate(flat, either) gaussianColor: half4;
71724
+ varying gaussianColor: half4;
71693
71725
  #ifndef DITHER_NONE
71694
- varying @interpolate(flat, either) id: f32;
71726
+ varying id: f32;
71695
71727
  #endif
71696
71728
  const discardVec: vec4f = vec4f(0.0, 0.0, 2.0, 1.0);
71697
71729
  #if defined(PREPASS_PASS) || defined(SCENE_TEXTURE_DEPTH)
71698
- varying @interpolate(flat, either) vLinearDepth: f32;
71730
+ varying vLinearDepth: f32;
71699
71731
  #endif
71700
71732
  #if defined(GSPLAT_UNIFIED_ID) && defined(PICK_PASS)
71701
71733
  varying @interpolate(flat, either) vPickId: u32;
@@ -71817,14 +71849,14 @@ var<storage, read> sortedIndices: array<u32>;
71817
71849
  var<storage, read> projCache: array<u32>;
71818
71850
  var<storage, read> numSplatsStorage: array<u32>;
71819
71851
  varying gaussianUV: half2;
71820
- varying @interpolate(flat, either) gaussianColor: half4;
71852
+ varying gaussianColor: half4;
71821
71853
  #if defined(GSPLAT_STOCHASTIC) && !defined(DITHER_NONE)
71822
71854
  varying @interpolate(flat, either) stochasticId: u32;
71823
71855
  #elif !defined(DITHER_NONE)
71824
- varying @interpolate(flat, either) id: f32;
71856
+ varying id: f32;
71825
71857
  #endif
71826
71858
  #if defined(PREPASS_PASS) || defined(SCENE_TEXTURE_DEPTH)
71827
- varying @interpolate(flat, either) vLinearDepth: f32;
71859
+ varying vLinearDepth: f32;
71828
71860
  #endif
71829
71861
  #if defined(GSPLAT_UNIFIED_ID) && defined(PICK_PASS)
71830
71862
  varying @interpolate(flat, either) vPickId: u32;
@@ -74930,7 +74962,7 @@ const createResources = async (device, gltf, bufferViews, textures, options, app
74930
74962
  await Promise.all(promises);
74931
74963
  return result;
74932
74964
  };
74933
- const applySampler = (texture, gltfSampler) => {
74965
+ const getSamplerState = (gltfSampler) => {
74934
74966
  const getFilter = (filter, defaultValue) => {
74935
74967
  switch (filter) {
74936
74968
  case 9728:
@@ -74961,12 +74993,19 @@ const applySampler = (texture, gltfSampler) => {
74961
74993
  return defaultValue;
74962
74994
  }
74963
74995
  };
74996
+ return {
74997
+ minFilter: getFilter(gltfSampler?.minFilter, FILTER_LINEAR_MIPMAP_LINEAR),
74998
+ magFilter: getFilter(gltfSampler?.magFilter, FILTER_LINEAR),
74999
+ addressU: getWrap(gltfSampler?.wrapS, ADDRESS_REPEAT),
75000
+ addressV: getWrap(gltfSampler?.wrapT, ADDRESS_REPEAT)
75001
+ };
75002
+ };
75003
+ const applySampler = (texture, samplerState) => {
74964
75004
  if (texture) {
74965
- gltfSampler = gltfSampler ?? {};
74966
- texture.minFilter = getFilter(gltfSampler.minFilter, FILTER_LINEAR_MIPMAP_LINEAR);
74967
- texture.magFilter = getFilter(gltfSampler.magFilter, FILTER_LINEAR);
74968
- texture.addressU = getWrap(gltfSampler.wrapS, ADDRESS_REPEAT);
74969
- texture.addressV = getWrap(gltfSampler.wrapT, ADDRESS_REPEAT);
75005
+ texture.minFilter = samplerState.minFilter;
75006
+ texture.magFilter = samplerState.magFilter;
75007
+ texture.addressU = samplerState.addressU;
75008
+ texture.addressV = samplerState.addressV;
74970
75009
  }
74971
75010
  };
74972
75011
  let gltfTextureUniqueId = 0;
@@ -75097,7 +75136,7 @@ const createTextures = (gltf, images, options) => {
75097
75136
  const preprocess = options?.texture?.preprocess;
75098
75137
  const processAsync = options?.texture?.processAsync;
75099
75138
  const postprocess = options?.texture?.postprocess;
75100
- const seenImages = /* @__PURE__ */ new Set();
75139
+ const imageTextures = /* @__PURE__ */ new Map();
75101
75140
  return gltf.textures.map((gltfTexture) => {
75102
75141
  if (preprocess) {
75103
75142
  preprocess(gltfTexture);
@@ -75120,13 +75159,24 @@ const createTextures = (gltf, images, options) => {
75120
75159
  }
75121
75160
  promise = promise.then((gltfImageIndex) => {
75122
75161
  gltfImageIndex = gltfImageIndex ?? getTextureSource(gltfTexture);
75123
- const cloneAsset = seenImages.has(gltfImageIndex);
75124
- seenImages.add(gltfImageIndex);
75125
- return images[gltfImageIndex].then((imageAsset) => {
75126
- const asset = cloneAsset ? cloneTextureAsset(imageAsset) : imageAsset;
75127
- applySampler(asset.resource, (gltf.samplers ?? [])[gltfTexture.sampler]);
75128
- return asset;
75129
- });
75162
+ const samplerState = getSamplerState(gltf.samplers?.[gltfTexture.sampler]);
75163
+ const samplerKey = `${samplerState.minFilter}-${samplerState.magFilter}-${samplerState.addressU}-${samplerState.addressV}`;
75164
+ let textures = imageTextures.get(gltfImageIndex);
75165
+ if (!textures) {
75166
+ textures = /* @__PURE__ */ new Map();
75167
+ imageTextures.set(gltfImageIndex, textures);
75168
+ }
75169
+ let texturePromise = textures.get(samplerKey);
75170
+ if (!texturePromise) {
75171
+ const cloneAsset = textures.size > 0;
75172
+ texturePromise = images[gltfImageIndex].then((imageAsset) => {
75173
+ const asset = cloneAsset ? cloneTextureAsset(imageAsset) : imageAsset;
75174
+ applySampler(asset.resource, samplerState);
75175
+ return asset;
75176
+ });
75177
+ textures.set(samplerKey, texturePromise);
75178
+ }
75179
+ return texturePromise;
75130
75180
  });
75131
75181
  if (postprocess) {
75132
75182
  promise = promise.then((textureAsset) => {
@@ -75396,7 +75446,7 @@ class BinaryHandler extends ResourceHandler {
75396
75446
  this.addParser(new BinaryParser());
75397
75447
  }
75398
75448
  openBinary(data) {
75399
- return data.buffer;
75449
+ return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
75400
75450
  }
75401
75451
  }
75402
75452
 
@@ -91300,7 +91350,7 @@ var deJson = {
91300
91350
  "help.section.fly": "Flugmodus",
91301
91351
  "help.section.walk": "Gehmodus",
91302
91352
  "help.section.anim": "Animation",
91303
- "help.section.modes": "Modus wechseln",
91353
+ "help.tab.global": "Allgemein",
91304
91354
  "help.action.orbit": "Umkreisen",
91305
91355
  "help.action.pan": "Schwenken",
91306
91356
  "help.action.zoom": "Zoomen",
@@ -91323,7 +91373,7 @@ var deJson = {
91323
91373
  "help.action.show-collision": "Kollision anzeigen",
91324
91374
  "help.action.play-pause": "Wiedergabe / Pause",
91325
91375
  "help.action.toggle-controls": "Steuerung umschalten",
91326
- "help.action.toggle-help": "Info umschalten",
91376
+ "help.action.global-controls": "Allgemeine Steuerung",
91327
91377
  "help.action.exit-cancel": "Beenden / Abbrechen",
91328
91378
  "help.action.release-mouse": "Maus freigeben",
91329
91379
  "help.action.exit-walk": "Gehmodus beenden",
@@ -91346,6 +91396,7 @@ var deJson = {
91346
91396
  "xr-menu.exit-vr": "VR beenden",
91347
91397
  "xr-menu.exit-ar": "AR beenden",
91348
91398
  "xr-menu.ice-cream": "Eiscreme-Modus",
91399
+ "xr-menu.grid": "Bodenraster",
91349
91400
  "xr-hint.place": "Zusammendrücken, auf Boden oder Tisch zeigen, dann loslassen",
91350
91401
  "xr-hint.place-controller": "Trigger halten, auf Boden oder Tisch zeigen, dann loslassen",
91351
91402
  "xr-hint.place-screen": "Boden oder Tisch berühren zum Platzieren, mit zwei Fingern skalieren und drehen",
@@ -91381,7 +91432,7 @@ var enJson = {
91381
91432
  "help.section.fly": "Fly Mode",
91382
91433
  "help.section.walk": "Walk Mode",
91383
91434
  "help.section.anim": "Animation",
91384
- "help.section.modes": "Mode Switching",
91435
+ "help.tab.global": "Global",
91385
91436
  "help.action.orbit": "Orbit",
91386
91437
  "help.action.pan": "Pan",
91387
91438
  "help.action.zoom": "Zoom",
@@ -91404,7 +91455,7 @@ var enJson = {
91404
91455
  "help.action.show-collision": "Show Collision",
91405
91456
  "help.action.play-pause": "Play / Pause",
91406
91457
  "help.action.toggle-controls": "Toggle Controls",
91407
- "help.action.toggle-help": "Toggle Info",
91458
+ "help.action.global-controls": "Global Controls",
91408
91459
  "help.action.exit-cancel": "Exit / Cancel",
91409
91460
  "help.action.release-mouse": "Release Mouse",
91410
91461
  "help.action.exit-walk": "Exit Walk",
@@ -91427,6 +91478,7 @@ var enJson = {
91427
91478
  "xr-menu.exit-vr": "Exit VR",
91428
91479
  "xr-menu.exit-ar": "Exit AR",
91429
91480
  "xr-menu.ice-cream": "Ice-cream mode",
91481
+ "xr-menu.grid": "Floor grid",
91430
91482
  "xr-hint.place": "Pinch, point at a floor or table, then let go",
91431
91483
  "xr-hint.place-controller": "Hold the trigger, point at a floor or table, then let go",
91432
91484
  "xr-hint.place-screen": "Touch a floor or table to place, two fingers to resize and turn",
@@ -91457,7 +91509,7 @@ var esJson = {
91457
91509
  "help.section.fly": "Modo vuelo",
91458
91510
  "help.section.walk": "Modo caminar",
91459
91511
  "help.section.anim": "Animación",
91460
- "help.section.modes": "Cambio de modo",
91512
+ "help.tab.global": "General",
91461
91513
  "help.action.orbit": "Orbitar",
91462
91514
  "help.action.pan": "Desplazar",
91463
91515
  "help.action.zoom": "Zoom",
@@ -91480,7 +91532,7 @@ var esJson = {
91480
91532
  "help.action.show-collision": "Mostrar colisión",
91481
91533
  "help.action.play-pause": "Reproducir / Pausar",
91482
91534
  "help.action.toggle-controls": "Alternar controles",
91483
- "help.action.toggle-help": "Alternar información",
91535
+ "help.action.global-controls": "Controles generales",
91484
91536
  "help.action.exit-cancel": "Salir / Cancelar",
91485
91537
  "help.action.release-mouse": "Liberar ratón",
91486
91538
  "help.action.exit-walk": "Salir de caminar",
@@ -91503,6 +91555,7 @@ var esJson = {
91503
91555
  "xr-menu.exit-vr": "Salir de VR",
91504
91556
  "xr-menu.exit-ar": "Salir de AR",
91505
91557
  "xr-menu.ice-cream": "Modo helado",
91558
+ "xr-menu.grid": "Cuadrícula del suelo",
91506
91559
  "xr-hint.place": "Pellizca, apunta al suelo o a una mesa y suelta",
91507
91560
  "xr-hint.place-controller": "Mantén el gatillo, apunta al suelo o a una mesa y suelta",
91508
91561
  "xr-hint.place-screen": "Toca el suelo o una mesa para colocar, dos dedos para escalar y rotar",
@@ -91533,7 +91586,7 @@ var frJson = {
91533
91586
  "help.section.fly": "Mode vol",
91534
91587
  "help.section.walk": "Mode marche",
91535
91588
  "help.section.anim": "Animation",
91536
- "help.section.modes": "Changement de mode",
91589
+ "help.tab.global": "Général",
91537
91590
  "help.action.orbit": "Orbiter",
91538
91591
  "help.action.pan": "Panoramique",
91539
91592
  "help.action.zoom": "Zoom",
@@ -91556,7 +91609,7 @@ var frJson = {
91556
91609
  "help.action.show-collision": "Afficher les collisions",
91557
91610
  "help.action.play-pause": "Lecture / Pause",
91558
91611
  "help.action.toggle-controls": "Basculer les commandes",
91559
- "help.action.toggle-help": "Basculer les infos",
91612
+ "help.action.global-controls": "Commandes générales",
91560
91613
  "help.action.exit-cancel": "Quitter / Annuler",
91561
91614
  "help.action.release-mouse": "Libérer la souris",
91562
91615
  "help.action.exit-walk": "Quitter la marche",
@@ -91579,6 +91632,7 @@ var frJson = {
91579
91632
  "xr-menu.exit-vr": "Quitter la VR",
91580
91633
  "xr-menu.exit-ar": "Quitter l'AR",
91581
91634
  "xr-menu.ice-cream": "Mode glace",
91635
+ "xr-menu.grid": "Grille au sol",
91582
91636
  "xr-hint.place": "Pincez, pointez le sol ou une table, puis relâchez",
91583
91637
  "xr-hint.place-controller": "Maintenez la gâchette, pointez le sol ou une table, puis relâchez",
91584
91638
  "xr-hint.place-screen": "Touchez le sol ou une table pour placer, deux doigts pour redimensionner et pivoter",
@@ -91609,7 +91663,7 @@ var jaJson = {
91609
91663
  "help.section.fly": "フライモード",
91610
91664
  "help.section.walk": "ウォークモード",
91611
91665
  "help.section.anim": "アニメーション",
91612
- "help.section.modes": "モード切り替え",
91666
+ "help.tab.global": "共通",
91613
91667
  "help.action.orbit": "オービット",
91614
91668
  "help.action.pan": "パン",
91615
91669
  "help.action.zoom": "ズーム",
@@ -91632,7 +91686,7 @@ var jaJson = {
91632
91686
  "help.action.show-collision": "コリジョンを表示",
91633
91687
  "help.action.play-pause": "再生 / 一時停止",
91634
91688
  "help.action.toggle-controls": "操作の切り替え",
91635
- "help.action.toggle-help": "情報を切り替え",
91689
+ "help.action.global-controls": "共通操作",
91636
91690
  "help.action.exit-cancel": "終了 / キャンセル",
91637
91691
  "help.action.release-mouse": "マウスを解放",
91638
91692
  "help.action.exit-walk": "ウォークを終了",
@@ -91655,6 +91709,7 @@ var jaJson = {
91655
91709
  "xr-menu.exit-vr": "VRを終了",
91656
91710
  "xr-menu.exit-ar": "ARを終了",
91657
91711
  "xr-menu.ice-cream": "アイスクリームモード",
91712
+ "xr-menu.grid": "床のグリッド",
91658
91713
  "xr-hint.place": "ピンチして床かテーブルを指し、離す",
91659
91714
  "xr-hint.place-controller": "トリガーを押したまま床かテーブルを指し、離す",
91660
91715
  "xr-hint.place-screen": "床かテーブルをタッチして配置、2本指で拡大縮小と回転",
@@ -91685,7 +91740,7 @@ var koJson = {
91685
91740
  "help.section.fly": "플라이 모드",
91686
91741
  "help.section.walk": "워크 모드",
91687
91742
  "help.section.anim": "애니메이션",
91688
- "help.section.modes": "모드 전환",
91743
+ "help.tab.global": "공통",
91689
91744
  "help.action.orbit": "오빗",
91690
91745
  "help.action.pan": "팬",
91691
91746
  "help.action.zoom": "줌",
@@ -91708,7 +91763,7 @@ var koJson = {
91708
91763
  "help.action.show-collision": "충돌 표시",
91709
91764
  "help.action.play-pause": "재생 / 일시 정지",
91710
91765
  "help.action.toggle-controls": "조작 전환",
91711
- "help.action.toggle-help": "정보 전환",
91766
+ "help.action.global-controls": "공통 조작",
91712
91767
  "help.action.exit-cancel": "나가기 / 취소",
91713
91768
  "help.action.release-mouse": "마우스 해제",
91714
91769
  "help.action.exit-walk": "워크 종료",
@@ -91731,6 +91786,7 @@ var koJson = {
91731
91786
  "xr-menu.exit-vr": "VR 종료",
91732
91787
  "xr-menu.exit-ar": "AR 종료",
91733
91788
  "xr-menu.ice-cream": "아이스크림 모드",
91789
+ "xr-menu.grid": "바닥 그리드",
91734
91790
  "xr-hint.place": "집은 채로 바닥이나 테이블을 가리키고 놓기",
91735
91791
  "xr-hint.place-controller": "트리거를 누른 채 바닥이나 테이블을 가리키고 놓기",
91736
91792
  "xr-hint.place-screen": "바닥이나 테이블을 터치해 배치, 두 손가락으로 크기 조절과 회전",
@@ -91761,7 +91817,7 @@ var ptBRJson = {
91761
91817
  "help.section.fly": "Modo voo",
91762
91818
  "help.section.walk": "Modo caminhar",
91763
91819
  "help.section.anim": "Animação",
91764
- "help.section.modes": "Troca de modo",
91820
+ "help.tab.global": "Geral",
91765
91821
  "help.action.orbit": "Orbitar",
91766
91822
  "help.action.pan": "Deslocar",
91767
91823
  "help.action.zoom": "Zoom",
@@ -91784,7 +91840,7 @@ var ptBRJson = {
91784
91840
  "help.action.show-collision": "Mostrar colisão",
91785
91841
  "help.action.play-pause": "Reproduzir / Pausar",
91786
91842
  "help.action.toggle-controls": "Alternar controles",
91787
- "help.action.toggle-help": "Alternar informações",
91843
+ "help.action.global-controls": "Controles gerais",
91788
91844
  "help.action.exit-cancel": "Sair / Cancelar",
91789
91845
  "help.action.release-mouse": "Liberar mouse",
91790
91846
  "help.action.exit-walk": "Sair da caminhada",
@@ -91807,6 +91863,7 @@ var ptBRJson = {
91807
91863
  "xr-menu.exit-vr": "Sair da VR",
91808
91864
  "xr-menu.exit-ar": "Sair da AR",
91809
91865
  "xr-menu.ice-cream": "Modo sorvete",
91866
+ "xr-menu.grid": "Grade do chão",
91810
91867
  "xr-hint.place": "Faça pinça, aponte para o chão ou uma mesa e solte",
91811
91868
  "xr-hint.place-controller": "Segure o gatilho, aponte para o chão ou uma mesa e solte",
91812
91869
  "xr-hint.place-screen": "Toque no chão ou numa mesa para posicionar, dois dedos para redimensionar e girar",
@@ -91837,7 +91894,7 @@ var ruJson = {
91837
91894
  "help.section.fly": "Режим полёта",
91838
91895
  "help.section.walk": "Режим ходьбы",
91839
91896
  "help.section.anim": "Анимация",
91840
- "help.section.modes": "Смена режимов",
91897
+ "help.tab.global": "Общие",
91841
91898
  "help.action.orbit": "Вращение",
91842
91899
  "help.action.pan": "Панорама",
91843
91900
  "help.action.zoom": "Масштаб",
@@ -91860,7 +91917,7 @@ var ruJson = {
91860
91917
  "help.action.show-collision": "Показать коллизию",
91861
91918
  "help.action.play-pause": "Воспроизведение / Пауза",
91862
91919
  "help.action.toggle-controls": "Переключить управление",
91863
- "help.action.toggle-help": "Переключить информацию",
91920
+ "help.action.global-controls": "Общее управление",
91864
91921
  "help.action.exit-cancel": "Выход / Отмена",
91865
91922
  "help.action.release-mouse": "Освободить мышь",
91866
91923
  "help.action.exit-walk": "Выйти из ходьбы",
@@ -91883,6 +91940,7 @@ var ruJson = {
91883
91940
  "xr-menu.exit-vr": "Выйти из VR",
91884
91941
  "xr-menu.exit-ar": "Выйти из AR",
91885
91942
  "xr-menu.ice-cream": "Режим мороженого",
91943
+ "xr-menu.grid": "Сетка пола",
91886
91944
  "xr-hint.place": "Сведите пальцы, укажите на пол или стол и отпустите",
91887
91945
  "xr-hint.place-controller": "Удерживайте курок, укажите на пол или стол и отпустите",
91888
91946
  "xr-hint.place-screen": "Коснитесь пола или стола, чтобы разместить; двумя пальцами — масштаб и поворот",
@@ -91913,7 +91971,7 @@ var zhCNJson = {
91913
91971
  "help.section.fly": "飞行模式",
91914
91972
  "help.section.walk": "行走模式",
91915
91973
  "help.section.anim": "动画",
91916
- "help.section.modes": "模式切换",
91974
+ "help.tab.global": "通用",
91917
91975
  "help.action.orbit": "环绕",
91918
91976
  "help.action.pan": "平移",
91919
91977
  "help.action.zoom": "缩放",
@@ -91936,7 +91994,7 @@ var zhCNJson = {
91936
91994
  "help.action.show-collision": "显示碰撞",
91937
91995
  "help.action.play-pause": "播放 / 暂停",
91938
91996
  "help.action.toggle-controls": "切换操作",
91939
- "help.action.toggle-help": "切换信息",
91997
+ "help.action.global-controls": "通用控制",
91940
91998
  "help.action.exit-cancel": "退出 / 取消",
91941
91999
  "help.action.release-mouse": "释放鼠标",
91942
92000
  "help.action.exit-walk": "退出行走",
@@ -91959,6 +92017,7 @@ var zhCNJson = {
91959
92017
  "xr-menu.exit-vr": "退出 VR",
91960
92018
  "xr-menu.exit-ar": "退出 AR",
91961
92019
  "xr-menu.ice-cream": "冰淇淋模式",
92020
+ "xr-menu.grid": "地面网格",
91962
92021
  "xr-hint.place": "捏合并指向地面或桌面,然后松开",
91963
92022
  "xr-hint.place-controller": "按住扳机并指向地面或桌面,然后松开",
91964
92023
  "xr-hint.place-screen": "触摸地面或桌面放置,双指缩放和旋转",
@@ -95170,19 +95229,33 @@ fn main(
95170
95229
  const QUADS_PER_INSTANCE = 128;
95171
95230
  /** The raster's far clamp in normalised depth: just inside 1, which the compose reads as empty. */
95172
95231
  const FAR_CLIP_Z = 0.999999;
95173
- // the raster's varyings, shared by both stages: the opacity sits in packedAlpha's low 8 bits
95174
- // and the splat's seed, hashed once per vertex, in the high 24, so no splat id needs to reach
95175
- // the fragment
95232
+ // the raster's per-splat varyings, shared by both stages: the colour, and for per-pixel
95233
+ // coverage the opacity in w and the splat's seed, hashed once per vertex, as a rotation in
95234
+ // [0, 1), so no splat id needs to reach the fragment. Interpolated, alike at every corner, rather
95235
+ // than flat: flat varyings cost Apple GPUs before the A17 / M3 about a fifth of the raster pass,
95236
+ // more than they save elsewhere (playcanvas/engine#10085; measured 2026-11-26: iPhone 13 Pro Max
95237
+ // per-pixel raster -17 to -19 %, Pixel 7 Pro frame up to +7 %, M4, RTX 4090 and Quest 3 within a
95238
+ // few percent)
95176
95239
  const varyingsWGSL = /* wgsl */ `
95177
95240
  varying @interpolate(linear) gaussianUV: vec2f;
95178
- varying @interpolate(flat, either) packedColor: u32;
95179
- varying @interpolate(flat, either) packedAlpha: u32;
95241
+ #ifdef SSE_COVERAGE_SPLAT
95242
+ varying @interpolate(linear) splatColor: vec3f;
95243
+ #else
95244
+ varying @interpolate(linear) splatColor: vec4f;
95245
+ varying @interpolate(linear) splatSeed: f32;
95246
+ #endif
95180
95247
  #ifdef SSE_JITTER
95181
95248
  // variant jitter, as floats so the fragment converts nothing: x the stratum's base
95182
95249
  // threshold, y the entry's key for the jitter pattern, z the opacity
95183
- varying @interpolate(flat, either) jitterVary: vec4f;
95250
+ varying @interpolate(linear) jitterVary: vec4f;
95184
95251
  #endif
95185
95252
  `;
95253
+ // the cache's colour word: 10 bits a channel and a 2-bit exponent
95254
+ const colorWGSL = /* wgsl */ `
95255
+ fn decodeColor(bits: u32) -> vec3f {
95256
+ return vec3f(vec3u(bits, bits >> 10u, bits >> 20u) & vec3u(1023u)) * (f32(1u << (bits >> 30u)) / 1023.0);
95257
+ }
95258
+ `;
95186
95259
  // integer hash (Wellons' prospector mix)
95187
95260
  const hashWGSL = /* wgsl */ `
95188
95261
  fn hashU32(x: u32) -> u32 {
@@ -95239,6 +95312,7 @@ ${varyingsWGSL}
95239
95312
  uniform frameSeed: u32;
95240
95313
  ${hashWGSL}
95241
95314
  ${cacheAlphaWGSL}
95315
+ ${colorWGSL}
95242
95316
 
95243
95317
  const discardPosition = vec4f(0.0, 0.0, 2.0, 1.0);
95244
95318
 
@@ -95345,16 +95419,20 @@ fn vertexMain(input: VertexInput) -> VertexOutput {
95345
95419
  );
95346
95420
  #endif
95347
95421
  output.gaussianUV = corner;
95348
- output.packedColor = splatCache[base + 4u];
95422
+ #ifdef SSE_COVERAGE_SPLAT
95423
+ output.splatColor = decodeColor(splatCache[base + 4u]);
95424
+ #else
95425
+ output.splatColor = vec4f(decodeColor(splatCache[base + 4u]), decodeCacheAlpha(word3 >> 16u));
95426
+ #endif
95349
95427
  #ifdef SSE_JITTER
95350
95428
  // the stratum's base threshold for the fragment's test, and a per-entry key that rotates
95351
95429
  // its jitter pattern, so overlapping splats' jitters are independent
95352
95430
  let entryKey = hashU32(order ^ uniform.frameSeed);
95353
95431
  output.jitterVary = vec4f(strataIndex * uniform.jitterParams.z, f32(entryKey >> 8u) * (1.0 / 16777216.0), opacityS, 0.0);
95354
- output.packedAlpha = word3 >> 16u;
95355
- #else
95432
+ #endif
95433
+ #ifndef SSE_COVERAGE_SPLAT
95356
95434
  let seed = hashU32(((splatCache[base + 5u] + 1u) * 26699u) ^ uniform.frameSeed);
95357
- output.packedAlpha = ((word3 >> 16u) & 0xffu) | (seed & 0xffffff00u);
95435
+ output.splatSeed = f32(seed >> 8u) * (1.0 / 16777216.0);
95358
95436
  #endif
95359
95437
  return output;
95360
95438
  }
@@ -95369,6 +95447,7 @@ uniform sseAlphaClip: f32;
95369
95447
  #endif
95370
95448
 
95371
95449
  ${cacheAlphaWGSL}
95450
+ ${colorWGSL}
95372
95451
 
95373
95452
  @fragment
95374
95453
  fn fragmentMain(input: FragmentInput) -> FragmentOutput {
@@ -95388,13 +95467,12 @@ fn fragmentMain(input: FragmentInput) -> FragmentOutput {
95388
95467
  }
95389
95468
  #endif
95390
95469
  // the square is the kept coverage, so every fragment is kept
95391
- let bits = packedColor;
95392
95470
  #else
95393
95471
  let radius = dot(gaussianUV, gaussianUV);
95394
95472
  if (radius > 1.0) {
95395
95473
  discard;
95396
95474
  }
95397
- let alpha = splatAlpha(radius, decodeCacheAlpha(packedAlpha));
95475
+ let alpha = splatAlpha(radius, splatColor.w);
95398
95476
  if (alpha < uniform.sseAlphaClip) {
95399
95477
  discard;
95400
95478
  }
@@ -95403,14 +95481,13 @@ fn fragmentMain(input: FragmentInput) -> FragmentOutput {
95403
95481
  // splat's seed, float only, with no integer multiplies, which mobile gpus run at a
95404
95482
  // fraction of the float rate; the rotation changes every frame with the seed
95405
95483
  let ign = fract(52.9829189 * fract(dot(pcPosition.xy, vec2f(0.06711056, 0.00583715))));
95406
- let rnd = fract(ign + f32(packedAlpha >> 8u) * (1.0 / 16777216.0));
95484
+ let rnd = fract(ign + splatSeed);
95407
95485
  if (rnd >= alpha) {
95408
95486
  discard;
95409
95487
  }
95410
- let bits = packedColor;
95411
95488
  #endif
95412
95489
 
95413
- let color = vec3f(vec3u(bits, bits >> 10u, bits >> 20u) & vec3u(1023u)) * (f32(1u << (bits >> 30u)) / 1023.0);
95490
+ let color = splatColor.rgb;
95414
95491
  // opaque coverage: the compose reads alpha 1 as "a sample landed here"
95415
95492
  output.color = vec4f(color, 1.0);
95416
95493
  return output;
@@ -99156,7 +99233,7 @@ deepFreeze({
99156
99233
  });
99157
99234
  /** Size limits for annotations. Intentionally tight for now. */
99158
99235
  deepFreeze({
99159
- maxCount: 25,
99236
+ maxCount: 50,
99160
99237
  titleMax: 60,
99161
99238
  textMax: 280
99162
99239
  });
@@ -99267,7 +99344,7 @@ const importSettings = (settings) => {
99267
99344
  return result;
99268
99345
  };
99269
99346
 
99270
- var version = "1.43.2";
99347
+ var version = "1.44.0";
99271
99348
 
99272
99349
  class Tooltip {
99273
99350
  register;
@@ -100145,10 +100222,6 @@ const describe = (state, localize) => {
100145
100222
  ];
100146
100223
  break;
100147
100224
  }
100148
- // not while the mouse is captured, where the ui closes the info box as soon as it opens
100149
- if (!gaming) {
100150
- rows.push(null, ['toggle-controls', key('H')], ['toggle-help', key('Shift'), key('H')]);
100151
- }
100152
100225
  }
100153
100226
  else {
100154
100227
  switch (cameraMode) {
@@ -100200,6 +100273,23 @@ const describe = (state, localize) => {
100200
100273
  rows
100201
100274
  };
100202
100275
  };
100276
+ // the global keyboard shortcuts, that work in every camera mode, listing only what this scene
100277
+ // offers, as the toolbar does: walk needs collision, play needs an animation
100278
+ const describeGlobal = (state, localize) => {
100279
+ const rows = [
100280
+ ['orbit-mode', key('1')],
100281
+ ['fly-mode', key('2')]
100282
+ ];
100283
+ if (state.walkAllowed)
100284
+ rows.push(['toggle-walk', key('3')]);
100285
+ rows.push(['toggle-gaming', key('G')]);
100286
+ if (state.hasCollisionOverlay)
100287
+ rows.push(['show-collision', key('V')]);
100288
+ if (state.hasAnimation)
100289
+ rows.push(['play-pause', key(localize('help.key.space'))]);
100290
+ rows.push(['exit-cancel', key(localize('help.key.esc'))], null, ['toggle-controls', key('H')], ['global-controls', key('Shift'), key('H')]);
100291
+ return rows;
100292
+ };
100203
100293
  const renderToken = (token) => {
100204
100294
  const span = (className, text) => {
100205
100295
  const element = document.createElement('span');
@@ -100234,21 +100324,45 @@ const renderToken = (token) => {
100234
100324
  };
100235
100325
  /**
100236
100326
  * Fills the controls panel with the current camera mode and its controls, following the camera
100237
- * mode, input mode and gaming controls (mouse capture on desktop). Opening and closing belong to
100327
+ * mode, input mode and gaming controls (mouse capture on desktop), or with the global keyboard
100328
+ * shortcuts that work in every mode. On desktop a switch in the header, or Shift+H, changes between
100329
+ * the two; touch has only the camera page, under a plain title. Opening and closing belong to
100238
100330
  * ui.ts, which toggles it from the toolbar like the settings and info panels.
100239
100331
  */
100240
100332
  const initControlsHint = (viewer, root, localize) => {
100241
100333
  const { state, events } = viewer;
100242
- const icon = root.querySelector('.sse-controlsHintIcon > use');
100334
+ const iconElement = root.querySelector('.sse-controlsHintIcon');
100335
+ const icon = iconElement.querySelector('use');
100243
100336
  const title = root.querySelector('.sse-controlsHintTitle');
100337
+ const tabs = root.querySelector('.sse-controlsHintTabs');
100338
+ const cameraTab = root.querySelector('.sse-controlsHintCameraTab');
100339
+ const cameraTabIcon = cameraTab.querySelector('use');
100340
+ const cameraTabLabel = cameraTab.querySelector('.sse-controlsHintCameraLabel');
100341
+ const globalTab = root.querySelector('.sse-controlsHintGlobalTab');
100244
100342
  const subtitle = root.querySelector('.sse-controlsHintSubtitle');
100245
100343
  const rowsElement = root.querySelector('.sse-controlsHintRows');
100246
100344
  let rendered = '';
100247
- const render = (hint) => {
100248
- icon.setAttribute('href', hint.icon);
100249
- title.textContent = hint.title;
100250
- subtitle.textContent = hint.subtitle;
100251
- rowsElement.replaceChildren(...hint.rows.map((row) => {
100345
+ let page = 'camera';
100346
+ // the page on show: a touch device has no keyboard to list
100347
+ const shownPage = () => (state.inputMode === 'desktop' ? page : 'camera');
100348
+ // the header names the camera mode on either page: the plain title on touch, the camera side of
100349
+ // the switch on desktop
100350
+ const render = (camera, rows, shown) => {
100351
+ const desktop = state.inputMode === 'desktop';
100352
+ icon.setAttribute('href', camera.icon);
100353
+ cameraTabIcon.setAttribute('href', camera.icon);
100354
+ title.textContent = camera.title;
100355
+ cameraTabLabel.textContent = camera.title;
100356
+ iconElement.classList.toggle('sse-hidden', desktop);
100357
+ title.classList.toggle('sse-hidden', desktop);
100358
+ tabs.classList.toggle('sse-hidden', !desktop);
100359
+ cameraTab.classList.toggle('sse-active', shown === 'camera');
100360
+ globalTab.classList.toggle('sse-active', shown === 'global');
100361
+ // slides the highlight across
100362
+ tabs.classList.toggle('sse-global', shown === 'global');
100363
+ // on both pages, so the footer keeps its height as the pages switch
100364
+ subtitle.textContent = camera.subtitle;
100365
+ rowsElement.replaceChildren(...rows.map((row) => {
100252
100366
  const element = document.createElement('div');
100253
100367
  if (!row) {
100254
100368
  element.className = 'sse-divider';
@@ -100266,24 +100380,55 @@ const initControlsHint = (viewer, root, localize) => {
100266
100380
  return element;
100267
100381
  }));
100268
100382
  };
100269
- // re-render when the page changes; a state change that leaves it as it was (G in orbit)
100383
+ // re-render when what is shown changes; a state change that leaves it as it was (G in orbit)
100270
100384
  // renders nothing
100271
100385
  const update = () => {
100272
- const signature = `${state.cameraMode}:${state.inputMode}:${isGaming(state)}`;
100386
+ const shown = shownPage();
100387
+ const signature = [
100388
+ shown,
100389
+ state.cameraMode,
100390
+ state.inputMode,
100391
+ isGaming(state),
100392
+ state.walkAllowed,
100393
+ state.hasCollisionOverlay,
100394
+ state.hasAnimation
100395
+ ].join(':');
100273
100396
  if (signature !== rendered) {
100274
100397
  rendered = signature;
100275
- render(describe(state, localize));
100398
+ const camera = describe(state, localize);
100399
+ render(camera, shown === 'global' ? describeGlobal(state, localize) : camera.rows, shown);
100276
100400
  }
100277
100401
  };
100402
+ const setPage = (next) => {
100403
+ page = next;
100404
+ update();
100405
+ };
100406
+ // released with the elements
100407
+ cameraTab.addEventListener('click', () => setPage('camera'));
100408
+ globalTab.addEventListener('click', () => setPage('global'));
100409
+ // the ui forwards the wheel to the camera; while the rows overflow a short viewer, they keep
100410
+ // it so it scrolls them
100411
+ rowsElement.addEventListener('wheel', (event) => {
100412
+ if (rowsElement.scrollHeight > rowsElement.clientHeight)
100413
+ event.stopPropagation();
100414
+ });
100278
100415
  const subscriptions = [
100279
100416
  events.on('cameraMode:changed', update),
100280
100417
  events.on('inputMode:changed', update),
100281
- events.on('gamingControls:changed', update)
100418
+ events.on('gamingControls:changed', update),
100419
+ events.on('walkAllowed:changed', update),
100420
+ events.on('hasCollisionOverlay:changed', update),
100421
+ events.on('hasAnimation:changed', update)
100282
100422
  ];
100283
100423
  update();
100284
- return () => {
100285
- for (const subscription of subscriptions)
100286
- subscription.off();
100424
+ return {
100425
+ /** The page on show. */
100426
+ page: shownPage,
100427
+ setPage,
100428
+ destroy: () => {
100429
+ for (const subscription of subscriptions)
100430
+ subscription.off();
100431
+ }
100287
100432
  };
100288
100433
  };
100289
100434
 
@@ -102783,6 +102928,18 @@ class TeleportTarget {
102783
102928
  }
102784
102929
  }
102785
102930
 
102931
+ /**
102932
+ * Whether an input source is a bare tracked hand. Some runtimes (SteamVR) also give a controller a
102933
+ * hand, posed from its finger sensors; it keeps its buttons and thumbsticks, so it stays a
102934
+ * controller. A bare hand has a generic-hand profile, or a gamepad with no axes, as the engine's
102935
+ * XR scripts tell them apart.
102936
+ *
102937
+ * @param source - The input source.
102938
+ * @returns True for a bare hand.
102939
+ */
102940
+ const isHand = (source) => !!source.hand &&
102941
+ (!source.gamepad?.axes.length || source.profiles.some((profile) => profile.startsWith('generic-hand')));
102942
+
102786
102943
  // The menu's rows, a column centred on its anchor (meters, at real size), each ROW_HEIGHT tall and
102787
102944
  // drawn at PIXELS per meter: a hand's length across, read from about 40 cm
102788
102945
  const ROW_WIDTH = 0.12;
@@ -103015,7 +103172,7 @@ class XrPalmMenu {
103015
103172
  * @returns Whether it points at the open menu.
103016
103173
  */
103017
103174
  pointsAt(source) {
103018
- return this.open && !source.hand && !!this.pointedAt(source);
103175
+ return this.open && !isHand(source) && !!this.pointedAt(source);
103019
103176
  }
103020
103177
  /**
103021
103178
  * Takes a select that starts on a row of the open menu, pressing it. A hand's select is left
@@ -103025,7 +103182,7 @@ class XrPalmMenu {
103025
103182
  * @returns True when the menu took the select.
103026
103183
  */
103027
103184
  select(source) {
103028
- if (!this.open || source.hand)
103185
+ if (!this.open || isHand(source))
103029
103186
  return false;
103030
103187
  const quad = this.pointedAt(source);
103031
103188
  if (!quad)
@@ -103228,7 +103385,7 @@ class XrPalmMenu {
103228
103385
  // the left hand or controller when it is in use, else the other: a hand that has lost tracking
103229
103386
  // stays an input source, and would keep the menu closed on the other
103230
103387
  preferred() {
103231
- const usable = this.app.xr.input.inputSources.filter((source) => source.handedness !== 'none' && (!source.hand || source.hand.tracking));
103388
+ const usable = this.app.xr.input.inputSources.filter((source) => source.handedness !== 'none' && (!isHand(source) || source.hand.tracking));
103232
103389
  return usable.find((source) => source.handedness === 'left') ?? usable[0] ?? null;
103233
103390
  }
103234
103391
  // opens the menu on an open palm facing the eyes, or on a controller's toggle button
@@ -103241,7 +103398,7 @@ class XrPalmMenu {
103241
103398
  }
103242
103399
  if (!source)
103243
103400
  return;
103244
- if (source.hand) {
103401
+ if (isHand(source)) {
103245
103402
  this.setOpen(this.palmFacing(source));
103246
103403
  return;
103247
103404
  }
@@ -103288,7 +103445,7 @@ class XrPalmMenu {
103288
103445
  anchorPose(source) {
103289
103446
  const scale = this.scale;
103290
103447
  const hand = source.hand;
103291
- if (hand) {
103448
+ if (isHand(source)) {
103292
103449
  const knuckle = hand.getJointById('middle-finger-metacarpal');
103293
103450
  const proximal = hand.getJointById('middle-finger-phalanx-proximal');
103294
103451
  if (!knuckle || !proximal || !this.palmNormal(source))
@@ -103326,7 +103483,7 @@ class XrPalmMenu {
103326
103483
  }
103327
103484
  // whether a source's ray points at the menu: a controller's
103328
103485
  pointing(source) {
103329
- return source.targetRayMode === 'tracked-pointer' && !source.hand;
103486
+ return source.targetRayMode === 'tracked-pointer' && !isHand(source);
103330
103487
  }
103331
103488
  // controllers' rays, and the other hand's fingertip, highlight the row they are on; the
103332
103489
  // fingertip presses it
@@ -103343,7 +103500,7 @@ class XrPalmMenu {
103343
103500
  side = this.sideOf(quad);
103344
103501
  }
103345
103502
  }
103346
- if (!hovered && this.anchor?.hand) {
103503
+ if (!hovered && this.anchor && isHand(this.anchor)) {
103347
103504
  const poked = this.poke(this.anchor);
103348
103505
  if (poked) {
103349
103506
  hovered = poked;
@@ -103368,7 +103525,7 @@ class XrPalmMenu {
103368
103525
  }
103369
103526
  // the row the other hand's index fingertip is on, pressing it once it reaches it
103370
103527
  poke(anchor) {
103371
- const poking = this.app.xr.input.inputSources.find((source) => source !== anchor && source.hand?.tracking);
103528
+ const poking = this.app.xr.input.inputSources.find((source) => source !== anchor && isHand(source) && source.hand.tracking);
103372
103529
  const tip = poking?.hand.getJointById('index-finger-tip');
103373
103530
  if (!poking || !tip) {
103374
103531
  this.pokeReady = true;
@@ -104331,7 +104488,7 @@ class XrArPlacement {
104331
104488
  placingInput() {
104332
104489
  if (this.pointers.size === 0)
104333
104490
  return 'screen';
104334
- return [...this.pointers.keys()].some((source) => !source.hand) ? 'controller' : 'hand';
104491
+ return [...this.pointers.keys()].some((source) => !isHand(source)) ? 'controller' : 'hand';
104335
104492
  }
104336
104493
  // low in the middle of the screen, a share of its width across: a point of the view's
104337
104494
  // projection at HINT_SCREEN_AHEAD, square to the camera
@@ -104385,6 +104542,78 @@ class XrArPlacement {
104385
104542
  }
104386
104543
  }
104387
104544
 
104545
+ const controllerHand = (source) => !!source.hand && !isHand(source);
104546
+ // Updates a controller with a hand as the controller it is: its hand's joints, then, with the hand
104547
+ // set aside, the grip pose and target ray the engine gives a device. The hand's squeeze test reads
104548
+ // back the grip button's squeeze, so it neither starts nor ends one
104549
+ const patchSource = (source) => {
104550
+ if (!controllerHand(source))
104551
+ return;
104552
+ const internals = source;
104553
+ const hand = internals._hand;
104554
+ const update = internals.update;
104555
+ hand._fingerIsClosed = () => internals._squeezing;
104556
+ internals.update = (frame) => {
104557
+ hand.update(frame);
104558
+ internals._hand = null;
104559
+ try {
104560
+ update.call(internals, frame);
104561
+ }
104562
+ finally {
104563
+ internals._hand = hand;
104564
+ }
104565
+ };
104566
+ };
104567
+ // Runs a callback with the hands of the controllers among `sources` set aside, so engine code that
104568
+ // would take them for bare hands sees the devices
104569
+ const withoutControllerHands = (sources, callback) => {
104570
+ const setAside = [];
104571
+ for (const source of sources) {
104572
+ if (!controllerHand(source))
104573
+ continue;
104574
+ const internals = source;
104575
+ setAside.push([internals, internals._hand]);
104576
+ internals._hand = null;
104577
+ }
104578
+ try {
104579
+ return callback();
104580
+ }
104581
+ finally {
104582
+ for (const [internals, hand] of setAside)
104583
+ internals._hand = hand;
104584
+ }
104585
+ };
104586
+ /**
104587
+ * Runs a callback with a controller's hand set aside, so engine code that would take the
104588
+ * controller for a bare hand (XrNavigation's palm test for the system menu) sees the device.
104589
+ *
104590
+ * @param source - The input source.
104591
+ * @param callback - The callback.
104592
+ * @returns The callback's result.
104593
+ */
104594
+ const withoutControllerHand = (source, callback) => withoutControllerHands([source], callback);
104595
+ /**
104596
+ * Patches the controllers with a hand as the session adds them, and runs XrControllers' update
104597
+ * with their hands set aside, so it shows and places their models as it does a device's: at the
104598
+ * grip, hidden only while the session is, rather than posing joints the model does not have and
104599
+ * hiding it whenever the hand loses tracking.
104600
+ *
104601
+ * @param app - The application.
104602
+ * @param controllers - The XrControllers script.
104603
+ * @returns A handle that removes the patch.
104604
+ */
104605
+ const patchControllerHands = (app, controllers) => {
104606
+ const added = app.xr.input.on('add', patchSource);
104607
+ const update = controllers.update;
104608
+ controllers.update = (dt) => withoutControllerHands(app.xr.input.inputSources, () => update.call(controllers, dt));
104609
+ return {
104610
+ off() {
104611
+ added.off();
104612
+ controllers.update = update;
104613
+ }
104614
+ };
104615
+ };
104616
+
104388
104617
  /**
104389
104618
  * Clears each eye's depth texture of a WebGPU XR session to the far plane every frame, ahead of the
104390
104619
  * engine's frame.
@@ -104457,8 +104686,8 @@ const HEIGHT_DEAD_ZONE = 0.05;
104457
104686
  const SPREAD_DEAD_ZONE$1 = 0.15;
104458
104687
  const MIN_HEIGHT = 0.1;
104459
104688
  // how small and large the scene can look, which the user's scale is the inverse of
104460
- const MIN_SCENE_SCALE = 0.25;
104461
- const MAX_SCENE_SCALE = 4;
104689
+ const MIN_SCENE_SCALE = 0.1;
104690
+ const MAX_SCENE_SCALE = 10;
104462
104691
  const left$1 = new Vec3();
104463
104692
  const right$4 = new Vec3();
104464
104693
  const mid$1 = new Vec3();
@@ -105278,15 +105507,15 @@ const overshoot = (x) => {
105278
105507
  return 1 + (c + 1) * y * y * y + c * y * y;
105279
105508
  };
105280
105509
  // a side's tracked hand, or else its controller
105281
- const sourceOf = (sources, handedness) => sources.find((source) => source.hand && source.handedness === handedness) ??
105282
- sources.find((source) => !source.hand && source.grip && source.handedness === handedness) ??
105510
+ const sourceOf = (sources, handedness) => sources.find((source) => isHand(source) && source.handedness === handedness) ??
105511
+ sources.find((source) => !isHand(source) && source.grip && source.handedness === handedness) ??
105283
105512
  null;
105284
105513
  // where a right hand or controller is for the cover test, the resize and the turn: the hand's
105285
105514
  // COVER_JOINT, or the controller's grip; null where a hand is not tracked
105286
105515
  const pointOf = (source) => {
105287
105516
  if (!source)
105288
105517
  return null;
105289
- if (!source.hand)
105518
+ if (!isHand(source))
105290
105519
  return source.getPosition();
105291
105520
  return source.hand.tracking ? (source.hand.getJointById(COVER_JOINT)?.getPosition() ?? null) : null;
105292
105521
  };
@@ -105495,7 +105724,7 @@ class XrIceCream {
105495
105724
  const sources = xr.input.inputSources;
105496
105725
  const left = sourceOf(sources, 'left');
105497
105726
  const tracked = !!left &&
105498
- (left.hand
105727
+ (isHand(left)
105499
105728
  ? left.hand.tracking && measureFist(left.hand, this.handPosition, this.handRotation)
105500
105729
  : measureGrip(left, this.handPosition, this.handRotation, this.userScale()));
105501
105730
  if (tracked) {
@@ -105511,7 +105740,7 @@ class XrIceCream {
105511
105740
  // a hand out of sight, or covered, is neither open nor closed: losing it counts by LOST_TIME
105512
105741
  if (tracked && left && !covered) {
105513
105742
  const wasFist = this.openFor < FLICKER_TIME;
105514
- const closed = left.squeezing || (wasFist && !!left.hand && foldedFingers(left.hand) >= HELD_FINGERS);
105743
+ const closed = left.squeezing || (wasFist && isHand(left) && foldedFingers(left.hand) >= HELD_FINGERS);
105515
105744
  this.openFor = closed ? 0 : this.openFor + dt;
105516
105745
  }
105517
105746
  const fist = this.openFor < FLICKER_TIME;
@@ -105709,8 +105938,8 @@ const DIORAMA_REACH = 0.6;
105709
105938
  // Changes in the hands' separation within SPREAD_DEAD_ZONE of the grab's do not scale (as the
105710
105939
  // two-hand grab's elsewhere), and the object stays from MIN_SCALE to MAX_SCALE of its placed size
105711
105940
  const SPREAD_DEAD_ZONE = 0.15;
105712
- const MIN_SCALE = 0.25;
105713
- const MAX_SCALE = 4;
105941
+ const MIN_SCALE = 0.1;
105942
+ const MAX_SCALE = 10;
105714
105943
  // below these the hands' separation, and its length across the floor, give no spread or heading
105715
105944
  const EPS_SEPARATION = 1e-3;
105716
105945
  const EPS_XZ = 1e-4;
@@ -106421,6 +106650,26 @@ const CAPSULE_HOVER = 0.2;
106421
106650
  const FLOOR_SETTLE = 500;
106422
106651
  // how often, at most, a lost XR projection layer is made again (see layerLost)
106423
106652
  const LAYER_RETRY_MS = 1000;
106653
+ // Whether the grid around the user's feet shows (XrGroundDisc), a switch in the menu kept under this
106654
+ // origin-wide key: on until the user turns it off
106655
+ const GRID_KEY = 'xrGrid';
106656
+ const readGrid = () => {
106657
+ try {
106658
+ return localStorage.getItem(GRID_KEY) !== 'false';
106659
+ }
106660
+ catch {
106661
+ // Embedded documents can be denied storage.
106662
+ return true;
106663
+ }
106664
+ };
106665
+ const writeGrid = (show) => {
106666
+ try {
106667
+ localStorage.setItem(GRID_KEY, String(show));
106668
+ }
106669
+ catch {
106670
+ // Storage may be blocked or full; the choice still holds for this viewer.
106671
+ }
106672
+ };
106424
106673
  // the device tests live with the quality decisions they drive (quality.ts); re-exported below
106425
106674
  // for the ui
106426
106675
  // The viewer reconfigures the camera (clear color, post effects) when state.xrMode changes
@@ -106516,6 +106765,8 @@ const initXr = (global) => {
106516
106765
  parent.addComponent('script');
106517
106766
  // its models by input source (the script's own typing is Script)
106518
106767
  const controllers = parent.script.create(XrControllers);
106768
+ // TEMPORARY: controllers that report a hand (SteamVR), as playcanvas/engine#10053 handles them
106769
+ const controllerHandPatch = patchControllerHands(app, controllers);
106519
106770
  // the members of the navigation the viewer uses (the script's own typing is Script)
106520
106771
  const navigation = parent.script.create(XrNavigation);
106521
106772
  replaceTeleportArc(navigation);
@@ -106541,7 +106792,7 @@ const initXr = (global) => {
106541
106792
  const handStyle = new XrHandStyle();
106542
106793
  const modelAdded = app.on('xr:controller:add', (source, entity) => {
106543
106794
  scaleModel(entity);
106544
- if (source.hand) {
106795
+ if (isHand(source)) {
106545
106796
  handStyle.apply(entity);
106546
106797
  if (xr.type === 'immersive-ar')
106547
106798
  entity.enabled = false;
@@ -106670,6 +106921,7 @@ const initXr = (global) => {
106670
106921
  let arPlacement = null;
106671
106922
  let grabMove = null;
106672
106923
  let groundDisc = null;
106924
+ let showGrid = readGrid();
106673
106925
  let objectShadow = null;
106674
106926
  // whether the session's splat is the user's to handle, which the session's type decides
106675
106927
  let holding = false;
@@ -106759,7 +107011,7 @@ const initXr = (global) => {
106759
107011
  navigation.enableTeleport = !holding;
106760
107012
  placeAtStart();
106761
107013
  if (groundDisc)
106762
- groundDisc.visible = !holding;
107014
+ groundDisc.visible = !holding && showGrid;
106763
107015
  // without collision, the start stands on the splats' floor in front of the user, picked once
106764
107016
  // the session's first frames have posed the eyes and settled the scene (between frames, as
106765
107017
  // the picker needs)
@@ -107002,6 +107254,18 @@ const initXr = (global) => {
107002
107254
  state.iceCream = !state.iceCream;
107003
107255
  }
107004
107256
  },
107257
+ {
107258
+ // only where the grid is: a VR scene without collision
107259
+ label: () => localize('xr-menu.grid'),
107260
+ checked: () => showGrid,
107261
+ visible: () => !!groundDisc && !holding,
107262
+ action: () => {
107263
+ showGrid = !showGrid;
107264
+ writeGrid(showGrid);
107265
+ if (groundDisc)
107266
+ groundDisc.visible = showGrid;
107267
+ }
107268
+ },
107005
107269
  ...(config.debug ? [{ label: () => 'Debug ›', submenu: debugItems }] : []),
107006
107270
  {
107007
107271
  label: () => localize(xr.type === 'immersive-ar' ? 'xr-menu.exit-ar' : 'xr-menu.exit-vr'),
@@ -107014,7 +107278,7 @@ const initXr = (global) => {
107014
107278
  ]);
107015
107279
  // and, while the splat is held, takes the rest: the world to teleport in is in the hand
107016
107280
  const isSystemSelect = navigation._isSystemSelect.bind(navigation);
107017
- navigation._isSystemSelect = (source) => isSystemSelect(source) || menu.select(source) || !!iceCream?.holding;
107281
+ navigation._isSystemSelect = (source) => withoutControllerHand(source, () => isSystemSelect(source)) || menu.select(source) || !!iceCream?.holding;
107018
107282
  const cancel = events.on('inputEvent', (event) => {
107019
107283
  if (event === 'cancel' && xr.active) {
107020
107284
  void end().catch(() => {
@@ -107078,6 +107342,7 @@ const initXr = (global) => {
107078
107342
  cancel.off();
107079
107343
  updating.off();
107080
107344
  modelAdded.off();
107345
+ controllerHandPatch.off();
107081
107346
  handStyle.destroy();
107082
107347
  forgetReferenceSpace();
107083
107348
  menu.destroy();
@@ -107168,7 +107433,6 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107168
107433
  'info',
107169
107434
  'infoPanel',
107170
107435
  'infoClose',
107171
- 'infoShortcuts',
107172
107436
  'rendererName',
107173
107437
  'gpuName',
107174
107438
  'engineVersionLabel',
@@ -107199,11 +107463,7 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107199
107463
  'loadingBar',
107200
107464
  'showCollisionRow',
107201
107465
  'showCollisionCheck',
107202
- 'showCollisionShortcut',
107203
- 'walkShortcut',
107204
- 'playShortcut',
107205
107466
  'tooltip',
107206
- 'viewerBranding',
107207
107467
  'appVersionLabel'
107208
107468
  ].reduce((acc, name) => {
107209
107469
  acc[name] = root.querySelector(`.sse-${name}`);
@@ -107214,9 +107474,12 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107214
107474
  dom.engineVersionLabel.textContent = version$1;
107215
107475
  dom.rendererName.textContent = global.renderer === 'webgpu' ? 'WebGPU' : 'WebGL 2';
107216
107476
  dom.gpuName.textContent = getGpuName(global.app.graphicsDevice);
107217
- // Remove focus from buttons after click so keyboard input isn't captured by the UI
107477
+ // Remove focus from buttons after click so keyboard input isn't captured by the UI. Only
107478
+ // focus inside the viewer: a host's onInfo may have just moved it to its own panel
107218
107479
  dom.ui.addEventListener('click', () => {
107219
- document.activeElement?.blur();
107480
+ const active = document.activeElement;
107481
+ if (active && root.contains(active))
107482
+ active.blur();
107220
107483
  });
107221
107484
  // Forward wheel events from UI overlays to the canvas so the camera zooms
107222
107485
  // instead of the page scrolling (e.g. annotation nav, tooltips), and from the
@@ -107245,10 +107508,11 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107245
107508
  const updateLoadingProgress = (progress) => {
107246
107509
  dom.loadingText.textContent = `${progress}%`;
107247
107510
  if (progress < 100) {
107248
- dom.loadingBar.style.backgroundImage = `linear-gradient(90deg, #F60 0%, #F60 ${progress}%, white ${progress}%, white 100%)`;
107511
+ dom.loadingBar.style.backgroundImage = `linear-gradient(90deg, var(--sse-accent) 0%, var(--sse-accent) ${progress}%, var(--sse-loading-track) ${progress}%, var(--sse-loading-track) 100%)`;
107249
107512
  }
107250
107513
  else {
107251
- dom.loadingBar.style.backgroundImage = 'linear-gradient(90deg, #F60 0%, #F60 100%)';
107514
+ dom.loadingBar.style.backgroundImage =
107515
+ 'linear-gradient(90deg, var(--sse-accent) 0%, var(--sse-accent) 100%)';
107252
107516
  }
107253
107517
  };
107254
107518
  on('progress:changed', updateLoadingProgress);
@@ -107323,36 +107587,55 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107323
107587
  on('gamingControls:changed', updateGamingControls);
107324
107588
  updateGamingControls();
107325
107589
  // The settings, controls and info buttons are toggles: each shows active while its panel is
107326
- // open. Every open and close goes through these so the two cannot disagree.
107590
+ // open. Every open and close goes through these so the two cannot disagree. A host's onInfo
107591
+ // replaces the info panel, so then the info button is a plain button; onInfo false removes it.
107327
107592
  const isVisible = (panel) => !panel.classList.contains('sse-hidden');
107328
- // The controls panel and the settings panel share the space above the toolbar. The controls
107329
- // panel's open state is the user's choice and persists: it stays open while the scene is used,
107330
- // and shows once the scene has loaded. Settings is a quick look, so while it is open it only
107331
- // stands in for the controls panel, which comes back when it closes.
107593
+ // The controls panel and the settings panel share the space above the toolbar, and the last
107594
+ // one opened takes it: opening either closes the other, and closing it leaves the space empty.
107595
+ // The controls panel's open state persists as the user's own choice, from its button, its close
107596
+ // button and H, and it shows once the scene has loaded. Settings closing it is not such a
107597
+ // choice, so that is not persisted, and after a reload the panel shows again as before.
107332
107598
  let controlsOpen = readOpen();
107333
107599
  const applyControls = () => {
107334
- const visible = controlsOpen && state.loaded && !isVisible(dom.settingsPanel);
107600
+ const visible = controlsOpen && state.loaded;
107335
107601
  dom.controlsHint.classList.toggle('sse-hidden', !visible);
107336
107602
  dom.controlsButton.classList.toggle('sse-active', visible);
107337
107603
  };
107338
107604
  const showSettings = (visible) => {
107339
107605
  dom.settingsPanel.classList.toggle('sse-hidden', !visible);
107340
107606
  dom.settings.classList.toggle('sse-active', visible);
107607
+ if (visible)
107608
+ controlsOpen = false;
107341
107609
  applyControls();
107342
107610
  };
107611
+ // the panel fills itself: the current camera mode's controls, or the global keyboard shortcuts
107612
+ const controlsHint = initControlsHint(viewer, root, localize);
107613
+ disposers.push(controlsHint.destroy);
107343
107614
  // the toolbar button toggles what it shows, so opening the panel from under settings
107344
- // closes settings rather than leaving the panel open and unseen
107345
- const showControls = (open) => {
107615
+ // closes settings rather than leaving the panel open and unseen. It opens on the camera page
107616
+ // unless Shift+H asked for the global page
107617
+ const showControls = (open, page = 'camera') => {
107346
107618
  controlsOpen = open;
107347
107619
  writeOpen(open);
107348
- if (open)
107620
+ if (open) {
107621
+ controlsHint.setPage(page);
107349
107622
  showSettings(false);
107623
+ }
107350
107624
  applyControls();
107351
107625
  };
107352
107626
  on('loaded:changed', applyControls);
107353
107627
  applyControls();
107354
107628
  // clicks rather than input events, so they restart the fade timer themselves
107355
107629
  const toggleControls = () => showControls(!isVisible(dom.controlsHint));
107630
+ // Shift+H: the global page, opening the panel on it when closed, and back again when open
107631
+ const toggleGlobal = () => {
107632
+ if (!isVisible(dom.controlsHint)) {
107633
+ showControls(true, 'global');
107634
+ }
107635
+ else {
107636
+ controlsHint.setPage(controlsHint.page() === 'global' ? 'camera' : 'global');
107637
+ }
107638
+ };
107356
107639
  dom.controlsButton.addEventListener('click', () => {
107357
107640
  toggleControls();
107358
107641
  showUI();
@@ -107362,19 +107645,19 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107362
107645
  showUI();
107363
107646
  });
107364
107647
  const showInfo = (visible) => {
107365
- // the shortcuts are keyboard shortcuts, and list only what this scene offers, as the
107366
- // toolbar does: walk needs collision, play needs an animation
107367
- dom.infoShortcuts.classList.toggle('sse-hidden', state.inputMode !== 'desktop');
107368
- dom.walkShortcut.classList.toggle('sse-hidden', !state.walkAllowed);
107369
- dom.playShortcut.classList.toggle('sse-hidden', !state.hasAnimation);
107370
107648
  dom.infoPanel.classList.toggle('sse-hidden', !visible);
107371
107649
  dom.info.classList.toggle('sse-active', visible);
107372
107650
  };
107373
- // Info panel
107374
- const toggleHelp = () => showInfo(!isVisible(dom.infoPanel));
107375
107651
  // these close a panel without an input event, so they restart the fade timer themselves
107652
+ const { onInfo } = global.config;
107653
+ dom.info.classList.toggle('sse-hidden', onInfo === false);
107376
107654
  dom.info.addEventListener('click', () => {
107377
- toggleHelp();
107655
+ if (onInfo) {
107656
+ onInfo();
107657
+ }
107658
+ else {
107659
+ showInfo(!isVisible(dom.infoPanel));
107660
+ }
107378
107661
  showUI();
107379
107662
  });
107380
107663
  // the panel covers the viewer, so this is also how a second click on the button closes it
@@ -107388,7 +107671,7 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107388
107671
  });
107389
107672
  on('inputEvent', (event) => {
107390
107673
  if (event === 'toggleHelp') {
107391
- toggleHelp();
107674
+ toggleGlobal();
107392
107675
  }
107393
107676
  else if (event === 'toggleControls') {
107394
107677
  toggleControls();
@@ -107532,7 +107815,6 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107532
107815
  on('selectedAnnotation:changed', showUI);
107533
107816
  disposers.push(initPlayback(viewer, root, showUI));
107534
107817
  disposers.push(initCameraControls(viewer, root));
107535
- disposers.push(initControlsHint(viewer, root, localize));
107536
107818
  disposers.push(initFullscreenControls(viewer, root));
107537
107819
  disposers.push(initXrControls(viewer, root));
107538
107820
  if (visionPro) {
@@ -107541,11 +107823,10 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107541
107823
  if (global.config.vr) {
107542
107824
  disposers.push(initVrPrompt(viewer, root, localize));
107543
107825
  }
107544
- // Collision overlay: a settings row and the matching info-panel shortcut, shown only when
107545
- // the scene ships an overlay
107826
+ // Collision overlay: a settings row, shown only when the scene ships an overlay (the
107827
+ // controls panel's global page follows it too)
107546
107828
  on('hasCollisionOverlay:changed', (value) => {
107547
107829
  dom.showCollisionRow.classList.toggle('sse-hidden', !value);
107548
- dom.showCollisionShortcut.classList.toggle('sse-hidden', !value);
107549
107830
  });
107550
107831
  dom.showCollisionRow.addEventListener('click', () => {
107551
107832
  state.collisionOverlayEnabled = !state.collisionOverlayEnabled;
@@ -107581,23 +107862,6 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107581
107862
  tooltip.register(dom.vrMode, localize('tooltip.enter-vr'), 'top');
107582
107863
  tooltip.register(dom.enterFullscreen, localize('tooltip.fullscreen'), 'top');
107583
107864
  tooltip.register(dom.exitFullscreen, localize('tooltip.fullscreen'), 'top');
107584
- const isThirdPartyEmbedded = () => {
107585
- try {
107586
- return window.location.hostname !== window.parent.location.hostname;
107587
- }
107588
- catch (_e) {
107589
- // cross-origin iframe — parent location is inaccessible
107590
- return true;
107591
- }
107592
- };
107593
- if (window.parent !== window && isThirdPartyEmbedded()) {
107594
- const viewUrl = new URL(window.location.href);
107595
- if (viewUrl.pathname === '/s') {
107596
- viewUrl.pathname = '/view';
107597
- }
107598
- dom.viewerBranding.href = viewUrl.toString();
107599
- dom.viewerBranding.classList.remove('sse-hidden');
107600
- }
107601
107865
  return () => {
107602
107866
  for (const dispose of disposers) {
107603
107867
  dispose();
@@ -107605,7 +107869,7 @@ const initUI = (global, viewer, getPicker, getCameraProgress) => {
107605
107869
  };
107606
107870
  };
107607
107871
 
107608
- var uiHtml = "\n<canvas></canvas>\n\n<div class=\"sse-sceneLayer\"></div>\n\n<div class=\"sse-ui\">\n <div class=\"sse-poster\"></div>\n\n \n <a class=\"sse-viewerBranding sse-hidden\" target=\"_blank\" rel=\"noopener noreferrer\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"64 64 384 384\" role=\"img\" aria-label=\"SuperSplat\">\n <path\n fill=\"#F26722\"\n d=\"M129.83,217c9.75,0,17.64-7.9,17.64-17.64s-7.9-17.64-17.64-17.64-17.64,7.9-17.64,17.64,7.9,17.64,17.64,17.64Z\"\n />\n <path\n fill=\"#F26722\"\n d=\"M388.74,253.94c-12.46,0-22.57,10.11-22.57,22.57s10.11,22.57,22.57,22.57,22.57-10.11,22.57-22.57-10.11-22.57-22.57-22.57h0Z\"\n />\n <path\n fill=\"#F26722\"\n d=\"M345.26,161.1h.02c.37-.05.65-.22.97-.33,16.78-2.32,29.75-16.57,29.75-33.99,0-19.04-15.43-34.46-34.46-34.46s-34.46,15.43-34.46,34.46c0,4.29.88,8.35,2.32,12.14.04.12-.01.25.04.38,10.55,29.18-22.33,23.62-39.07,20.74-.49-.09-.88-.07-1.32-.11-4.27-.56-8.59-.97-13.03-.97-53.93,0-97.64,43.71-97.64,97.64,0,9.84,1.48,19.32,4.2,28.28.04.1,0,.17.05.27,8.97,30.15-14.83,25.49-25.52,25.69-1.04-.13-2.09-.32-3.18-.32-13.51,0-24.45,10.94-24.45,24.45s10.94,24.45,24.45,24.45c11.69,0,21.44-8.22,23.85-19.19h.02c6.31-26.57,25.9-18.02,31.15-12.67.2.2.4.26.59.42,17.44,16.25,40.75,26.26,66.47,26.26.67,0,1.34-.09,2.01-.1.66.01,1.31.04,2.04.04,9.7-.04,17.82,10.91,4.94,29.68h.13c-4.42,6.01-7.1,13.36-7.1,21.41,0,20.09,16.29,36.39,36.39,36.39s36.39-16.29,36.39-36.39c0-15.4-9.61-28.49-23.12-33.81-.32-.15-.61-.29-.98-.45-12.28-4.94-25.43-17.69-6.89-27.1l-.04-.1c31.93-16.06,53.88-49.02,53.88-87.2,0-21.15-6.8-40.68-18.23-56.66-.13-.23-.23-.47-.44-.74-23.15-31.67-2.37-36.07,10.3-38.09h-.01Z\"\n />\n <path\n fill=\"#fff\"\n d=\"M230.79,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z\"\n />\n <path\n fill=\"#fff\"\n d=\"M309.78,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z\"\n />\n </svg>\n <span>SuperSplat</span>\n </a>\n\n \n <div class=\"sse-loadingWrap\">\n <div class=\"sse-loadingText\"></div>\n <div class=\"sse-loadingBar\"></div>\n </div>\n\n <div class=\"sse-controlsWrap sse-hidden\">\n \n <div class=\"sse-timelineContainer sse-hidden\">\n <div class=\"sse-line\"></div>\n <div class=\"sse-handle\"></div>\n <div class=\"sse-time sse-hidden\">0:00</div>\n </div>\n\n \n <div class=\"sse-buttonsContainer\">\n <div class=\"sse-buttonGroup\">\n <button class=\"sse-play sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#playIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#playIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-pause sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24px\" height=\"24px\">\n <g class=\"sse-stroke\"><use href=\"#pauseIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#pauseIcon\" /></g>\n </svg>\n </button>\n </div>\n\n <div class=\"sse-spacer\"></div>\n\n <div class=\"sse-buttonGroup\">\n <button class=\"sse-orbitCamera sse-controlButton sse-toggle sse-left\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#orbitIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#orbitIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-flyCamera sse-controlButton sse-toggle sse-right\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#flyIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#flyIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-fpsCamera sse-controlButton sse-toggle sse-right sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#walkIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#walkIcon\" /></g>\n </svg>\n </button>\n </div>\n\n <div class=\"sse-buttonGroup\">\n \n <button class=\"sse-settings sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#settingsIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#settingsIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-controlsButton sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#keyboardIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#keyboardIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-info sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#infoIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#infoIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-arMode sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#arIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#arIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-vrMode sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#vrIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#vrIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-enterFullscreen sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#enterFullscreenIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#enterFullscreenIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-exitFullscreen sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#exitFullscreenIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#exitFullscreenIcon\" /></g>\n </svg>\n </button>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-joystickBase sse-hidden\">\n <div class=\"sse-joystick\"></div>\n </div>\n\n \n <div class=\"sse-annotationNav sse-hidden\">\n <button class=\"sse-annotationPrev\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\">\n <g class=\"sse-stroke\"><use href=\"#chevronLeftIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#chevronLeftIcon\" /></g>\n </svg>\n </button>\n <div class=\"sse-annotationInfo\">\n <span class=\"sse-annotationNavNumber\"></span>\n <span class=\"sse-annotationNavTitle\"></span>\n </div>\n <button class=\"sse-annotationNext\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\">\n <g class=\"sse-stroke\"><use href=\"#chevronRightIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#chevronRightIcon\" /></g>\n </svg>\n </button>\n </div>\n\n \n <div class=\"sse-controlsHint sse-hidden\">\n <div class=\"sse-controlsHintHeader\">\n <svg class=\"sse-controlsHintIcon\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <use href=\"#orbitIcon\" />\n </svg>\n <div class=\"sse-controlsHintTitles\">\n <span class=\"sse-controlsHintTitle\"></span>\n <span class=\"sse-controlsHintSubtitle\"></span>\n </div>\n <button class=\"sse-controlsHintClose sse-panelButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#closeIcon\" /></svg>\n </button>\n </div>\n <div class=\"sse-controlsHintRows\"></div>\n </div>\n\n \n <div class=\"sse-settingsPanel sse-hidden\">\n \n <div class=\"sse-settingsGroup\">\n <div class=\"sse-annotationsRow sse-settingsRow\">\n <div class=\"sse-annotationsOption\" data-i18n=\"settings.show-annotations\">Show Annotations</div>\n <div class=\"sse-annotationsCheck sse-toggleSwitch sse-active\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n <div class=\"sse-showCollisionRow sse-settingsRow sse-hidden\">\n <div class=\"sse-showCollisionOption\" data-i18n=\"settings.show-collision\">Show Collision</div>\n <div class=\"sse-showCollisionCheck sse-toggleSwitch\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n </div>\n \n <div class=\"sse-settingsGroup\">\n <div class=\"sse-gamingControlsRow sse-settingsRow\">\n <div class=\"sse-gamingControlsOption\" data-i18n=\"settings.gaming-controls\">Gaming Controls</div>\n <div class=\"sse-gamingControlsCheck sse-toggleSwitch\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n \n <div class=\"sse-qualityRow sse-settingsRow\">\n <div class=\"sse-qualityOption\" data-i18n=\"settings.quality\">Quality</div>\n <div class=\"sse-qualityValue\"></div>\n </div>\n <div class=\"sse-qualitySliderRow sse-settingsRow\">\n <div class=\"sse-qualityTrack\">\n <div class=\"sse-qualityRail\">\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityThumb\"></div>\n </div>\n </div>\n </div>\n \n <div class=\"sse-performanceModeRow sse-settingsRow sse-hidden\">\n <div class=\"sse-performanceModeOption\" data-i18n=\"settings.performance-mode\">Performance Mode</div>\n <div class=\"sse-performanceModeCheck sse-toggleSwitch\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n </div>\n \n <div class=\"sse-settingsGroup\">\n <div class=\"sse-settingsRow\">\n <button class=\"sse-frame\" data-i18n=\"settings.frame\">Frame</button>\n <button class=\"sse-reset\" data-i18n=\"settings.reset\">Reset</button>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-tooltip\"></div>\n\n \n <div class=\"sse-infoPanel sse-hidden\">\n <div class=\"sse-infoPanelContent\" onpointerdown=\"event.stopPropagation()\" onwheel=\"event.stopPropagation()\">\n <button class=\"sse-infoClose sse-panelButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#closeIcon\" /></svg>\n </button>\n <a\n class=\"sse-viewerTitle\"\n href=\"https://github.com/playcanvas/supersplat-viewer\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <svg class=\"sse-viewerLogo\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <use href=\"#supersplatIcon\" />\n </svg>\n <span class=\"sse-title-name\">SuperSplat Viewer</span>\n <span class=\"sse-title-version\">v<span class=\"sse-appVersionLabel\"></span></span>\n </a>\n <div class=\"sse-infoGpu\">\n <span class=\"sse-rendererName\"></span>\n <span class=\"sse-gpuName\"></span>\n </div>\n <div class=\"sse-infoLinks\">\n <a\n class=\"sse-infoLink\"\n href=\"https://github.com/playcanvas/engine\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <span>PlayCanvas Engine</span>\n <span class=\"sse-infoLinkVersion\">v<span class=\"sse-engineVersionLabel\"></span></span>\n </a>\n </div>\n <div class=\"sse-infoShortcuts\">\n <h1 data-i18n=\"help.section.modes\">Mode Switching</h1>\n <div class=\"sse-infoShortcut\">\n <span data-i18n=\"help.action.orbit-mode\">Orbit Mode</span>\n <kbd class=\"sse-key\">1</kbd>\n </div>\n <div class=\"sse-infoShortcut\">\n <span data-i18n=\"help.action.fly-mode\">Fly Mode</span>\n <kbd class=\"sse-key\">2</kbd>\n </div>\n <div class=\"sse-walkShortcut sse-infoShortcut\">\n <span data-i18n=\"help.action.toggle-walk\">Toggle Walk</span>\n <kbd class=\"sse-key\">3</kbd>\n </div>\n <div class=\"sse-infoShortcut\">\n <span data-i18n=\"help.action.toggle-gaming\">Toggle Gaming Controls</span>\n <kbd class=\"sse-key\">G</kbd>\n </div>\n <div class=\"sse-showCollisionShortcut sse-infoShortcut sse-hidden\">\n <span data-i18n=\"help.action.show-collision\">Show Collision</span>\n <kbd class=\"sse-key\">V</kbd>\n </div>\n <div class=\"sse-playShortcut sse-infoShortcut\">\n <span data-i18n=\"help.action.play-pause\">Play / Pause</span>\n <kbd class=\"sse-key\" data-i18n=\"help.key.space\">Space</kbd>\n </div>\n <div class=\"sse-infoShortcut\">\n <span data-i18n=\"help.action.toggle-controls\">Toggle Controls</span>\n <kbd class=\"sse-key\">H</kbd>\n </div>\n <div class=\"sse-infoShortcut\">\n <span data-i18n=\"help.action.toggle-help\">Toggle Info</span>\n <span class=\"sse-keys\"><kbd class=\"sse-key\">Shift</kbd><kbd class=\"sse-key\">H</kbd></span>\n </div>\n <div class=\"sse-infoShortcut\">\n <span data-i18n=\"help.action.exit-cancel\">Exit / Cancel</span>\n <kbd class=\"sse-key\" data-i18n=\"help.key.esc\">Esc</kbd>\n </div>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-xrModal sse-hidden\" onwheel=\"event.stopPropagation()\">\n <div class=\"sse-xrModalContent\" onpointerdown=\"event.stopPropagation()\">\n <h2 data-i18n=\"xr-modal.title\">WebGL Required</h2>\n <p data-i18n=\"xr-modal.message\">\n AR and VR are not supported on the WebGPU renderer. Pressing OK will reload the viewer with WebGL.\n </p>\n <div class=\"sse-xrModalButtons\">\n <button class=\"sse-xrModalCancel\" data-i18n=\"xr-modal.cancel\">Cancel</button>\n <button class=\"sse-xrModalOk\" data-i18n=\"xr-modal.ok\">OK</button>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-vrPrompt sse-hidden\" onwheel=\"event.stopPropagation()\">\n <button class=\"sse-vrPromptPill\" type=\"button\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#vrIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#vrIcon\" /></g>\n </svg>\n <span class=\"sse-vrPromptText\" data-i18n=\"vr-prompt.loading\">Loading…</span>\n </button>\n </div>\n\n \n <div class=\"sse-xrHint sse-hidden\" data-i18n=\"xr-hint.stalled\">Nothing happening? Switch tabs and back.</div>\n</div>\n\n<svg>\n <symbol id=\"playIcon\" viewBox=\"-2 0 24 24\">\n <path\n d=\"M1 1.98725C1 1.20022 1.87789 0.730421 2.5332 1.16694L14.5605 9.18061C15.146 9.57066 15.146 10.4302 14.5605 10.8203L2.5332 18.833C1.87788 19.2695 1 18.7997 1 18.0126V1.98725Z\"\n transform=\"translate(2 2)\"\n />\n </symbol>\n <symbol id=\"pauseIcon\" viewBox=\"0 0 20 20\">\n <path d=\"M5 16V4h3v12H5zm7-12h3v12h-3V4z\" />\n </symbol>\n <symbol id=\"orbitIcon\" viewBox=\"-2 -2 20 20\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.44728 1.7561C6.14077 0.763957 8.53159 1.57857 10.4375 3.58357C12.75 3.02099 14.4585 3.40647 14.6491 4.73071C14.7831 5.66256 14.139 6.87994 12.9942 8.09008C13.7427 10.7586 13.2413 13.2551 11.5527 14.2444C9.85867 15.2369 7.46679 14.4208 5.56056 12.4143C3.34914 12.9521 1.691 12.6254 1.38412 11.4371L1.35092 11.2698C1.21678 10.3379 1.85972 9.11931 3.00457 7.90909C2.28693 5.34963 2.72037 2.94871 4.24741 1.88435L4.44728 1.7561ZM11.9889 9.03995C11.002 9.88136 9.79998 10.6808 8.47918 11.3303L8.13673 11.4937C7.70533 11.6942 7.28148 11.8681 6.8698 12.0172C7.32387 12.4287 7.79226 12.7587 8.25326 12.9983C9.39237 13.5903 10.3231 13.574 10.946 13.2092C11.5745 12.841 12.0613 12.0184 12.1263 10.7086C12.1518 10.1934 12.1065 9.62999 11.9889 9.03995ZM3.46225 9.20206C3.15128 9.5802 2.91825 9.93412 2.76238 10.2489C2.54363 10.6909 2.51958 10.967 2.53842 11.0985C2.54902 11.1721 2.56635 11.2146 2.67058 11.2763C2.81832 11.3636 3.12484 11.4626 3.6478 11.467C3.95641 11.4696 4.3074 11.4373 4.69402 11.3707C4.45655 11.0439 4.23084 10.6971 4.02215 10.3303C3.81017 9.95774 3.62416 9.58004 3.46225 9.20206ZM10.0358 4.9423C9.42018 5.13611 8.75205 5.40184 8.05014 5.74698C6.61265 6.45384 5.33887 7.34291 4.37175 8.24373C4.55213 8.73829 4.78227 9.2401 5.06511 9.73722C5.33995 10.2202 5.64271 10.6614 5.96355 11.0575C6.5793 10.8637 7.24782 10.5987 7.94988 10.2535C9.38732 9.54667 10.6605 8.65688 11.6276 7.7561C11.4473 7.26173 11.2176 6.76019 10.9349 6.26326C10.66 5.78001 10.3568 5.33855 10.0358 4.9423ZM7.74675 3.00219C6.60759 2.41015 5.67698 2.42644 5.05405 2.79126C4.42548 3.15953 3.93866 3.98199 3.87371 5.29191C3.84822 5.80668 3.89236 6.36967 4.00978 6.95922C4.91091 6.19088 5.9923 5.45862 7.17905 4.84269L7.52084 4.67016C8.07056 4.39986 8.6096 4.17089 9.12957 3.98266C8.67568 3.57138 8.20757 3.24172 7.74675 3.00219ZM12.3522 4.53344C12.0433 4.53086 11.6918 4.56177 11.3047 4.6285C11.5425 4.95566 11.7689 5.3029 11.9779 5.67016C12.1897 6.04255 12.3753 6.41999 12.5371 6.79777C12.8481 6.41965 13.0818 6.06635 13.2376 5.75154C13.4564 5.30973 13.4804 5.03352 13.4616 4.90193C13.451 4.82831 13.4337 4.7859 13.3294 4.7242C13.1817 4.63684 12.8753 4.53787 12.3522 4.53344Z\"\n />\n </symbol>\n <symbol id=\"flyIcon\" viewBox=\"-2 -2 20 20\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 1.33337C13.4727 1.33337 14.6666 2.52728 14.6666 4.00004C14.6666 5.4728 13.4727 6.66671 12 6.66671C11.4931 6.66671 11.0194 6.52491 10.6159 6.27934L10.2721 6.62374C10.0345 6.86142 9.90102 7.18411 9.90102 7.52022V8.47986C9.90102 8.81597 10.0345 9.13866 10.2721 9.37634L10.6159 9.72009C11.0193 9.47463 11.4932 9.33337 12 9.33337C13.4727 9.33337 14.6666 10.5273 14.6666 12C14.6666 13.4728 13.4727 14.6667 12 14.6667C10.5272 14.6667 9.33331 13.4728 9.33331 12C9.33331 11.4932 9.47457 11.0194 9.72003 10.6159L9.37628 10.2722C9.1386 10.0345 8.81591 9.90108 8.4798 9.90108H7.52016C7.18405 9.90108 6.86136 10.0345 6.62368 10.2722L6.27928 10.6159C6.52485 11.0195 6.66665 11.4931 6.66665 12C6.66665 13.4728 5.47274 14.6667 3.99998 14.6667C2.52722 14.6667 1.33331 13.4728 1.33331 12C1.33331 10.5273 2.52722 9.33337 3.99998 9.33337C4.50658 9.33337 4.98008 9.47481 5.38344 9.72009L5.72784 9.37634C5.9655 9.13866 6.09894 8.81597 6.09894 8.47986V7.52022C6.09894 7.18411 5.9655 6.86142 5.72784 6.62374L5.38344 6.27934C4.98001 6.52473 4.5067 6.66671 3.99998 6.66671C2.52722 6.66671 1.33331 5.4728 1.33331 4.00004C1.33331 2.52728 2.52722 1.33337 3.99998 1.33337C5.47274 1.33337 6.66665 2.52728 6.66665 4.00004C6.66665 4.50676 6.52467 4.98008 6.27928 5.3835L6.62368 5.72791C6.86136 5.96556 7.18405 6.099 7.52016 6.099H8.4798C8.81591 6.099 9.1386 5.96556 9.37628 5.72791L9.72003 5.3835C9.47475 4.98014 9.33331 4.50664 9.33331 4.00004C9.33331 2.52728 10.5272 1.33337 12 1.33337ZM3.99998 10.3998C3.11632 10.3998 2.39972 11.1164 2.39972 12C2.39972 12.8837 3.11632 13.6003 3.99998 13.6003C4.88364 13.6003 5.60024 12.8837 5.60024 12C5.60024 11.7911 5.55917 11.5919 5.48631 11.4089L4.41469 12.4812C4.16723 12.7284 3.76625 12.7286 3.51886 12.4812C3.27147 12.2338 3.27158 11.8328 3.51886 11.5853L4.59047 10.5131C4.40769 10.4404 4.20862 10.3998 3.99998 10.3998ZM12 10.3998C11.7911 10.3998 11.5918 10.4403 11.4088 10.5131L12.4811 11.5853C12.7284 11.8328 12.7285 12.2338 12.4811 12.4812C12.2337 12.7286 11.8327 12.7284 11.5853 12.4812L10.513 11.4089C10.4402 11.5918 10.3997 11.7912 10.3997 12C10.3997 12.8837 11.1163 13.6003 12 13.6003C12.8836 13.6003 13.6002 12.8837 13.6002 12C13.6002 11.1164 12.8836 10.3998 12 10.3998ZM3.99998 2.39978C3.11632 2.39978 2.39972 3.11639 2.39972 4.00004C2.39972 4.8837 3.11632 5.6003 3.99998 5.6003C4.20871 5.6003 4.40763 5.55909 4.59047 5.48637L3.51886 4.41475C3.27158 4.16729 3.27147 3.76631 3.51886 3.51892C3.76625 3.27153 4.16723 3.27164 4.41469 3.51892L5.48631 4.59054C5.55903 4.40769 5.60024 4.20877 5.60024 4.00004C5.60024 3.11639 4.88364 2.39978 3.99998 2.39978ZM12 2.39978C11.1163 2.39978 10.3997 3.11639 10.3997 4.00004C10.3997 4.20868 10.4403 4.40775 10.513 4.59054L11.5853 3.51892C11.8327 3.27164 12.2337 3.27153 12.4811 3.51892C12.7285 3.76631 12.7284 4.16729 12.4811 4.41475L11.4088 5.48637C11.5918 5.55923 11.791 5.6003 12 5.6003C12.8836 5.6003 13.6002 4.8837 13.6002 4.00004C13.6002 3.11639 12.8836 2.39978 12 2.39978Z\"\n />\n </symbol>\n <symbol id=\"walkIcon\" viewBox=\"-2 -2 20 20\">\n <path d=\"M9.75 2a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0zM5.25 4.75h5.5v4.5h-.5v5h-2v-5h-.5v5h-2v-5h-.5z\" />\n </symbol>\n <symbol id=\"arIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 15.3994V6H16.9629C18.2109 6 19.1167 6.1089 19.6797 6.32715C20.248 6.53997 20.7021 6.92247 21.042 7.47363C21.3818 8.02476 21.5518 8.65491 21.5518 9.36426C21.5518 10.2645 21.2943 11.0093 20.7793 11.5986C20.2641 12.1825 19.4938 12.5513 18.4688 12.7041C18.9786 13.0097 19.3983 13.3453 19.7275 13.7109C20.0621 14.0766 20.5113 14.7261 21.0742 15.6592L22.5 18H19.6797L17.9746 15.3887C17.3694 14.4559 16.9555 13.8691 16.7324 13.6289C16.5095 13.3835 16.2729 13.2172 16.0234 13.1299C15.7738 13.0371 15.3777 12.9902 14.8359 12.9902H14.3584V18H10.4053L9.35742 15.2744H4.56055L3.57031 18H1L5.67383 6H8.23633L12 15.3994ZM5.30566 13.252H8.58008L6.92676 8.7998L5.30566 13.252ZM14.3584 11.0752H16.1025C17.2336 11.0752 17.9401 11.0259 18.2217 10.9277C18.5032 10.8295 18.7235 10.66 18.8828 10.4199C19.0421 10.1798 19.1221 9.87966 19.1221 9.51953C19.122 9.11597 19.016 8.79138 18.8037 8.5459C18.5966 8.29488 18.3013 8.13677 17.9189 8.07129C17.7276 8.04401 17.1541 8.03027 16.1982 8.03027H14.3584V11.0752Z\"\n />\n </symbol>\n <symbol id=\"vrIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M5.52148 10.7021L7.15918 15.1133L8.76465 10.7021L9.50195 8.7002L10.4834 6H16.9541C18.1903 6 19.0879 6.10801 19.6455 6.32422C20.2081 6.53499 20.6576 6.9134 20.9941 7.45898C21.3308 8.00484 21.499 8.62946 21.499 9.33203C21.499 10.2239 21.2446 10.9622 20.7344 11.5459C20.2241 12.1242 19.4606 12.4893 18.4453 12.6406C18.9503 12.9433 19.3662 13.2756 19.6924 13.6377C20.0238 13.9999 20.4688 14.6432 21.0264 15.5674L22.4385 17.8857H19.6455L17.9561 15.2998C17.3565 14.3758 16.9466 13.7946 16.7256 13.5566C16.5047 13.3135 16.2706 13.148 16.0234 13.0615C15.7762 12.9696 15.3841 12.9238 14.8477 12.9238H14.374V17.8857H12.0381V8.54395L8.39941 17.8857H5.86133L1.10254 6H3.71289L5.52148 10.7021ZM14.374 11.0264H16.1025C17.2228 11.0264 17.9224 10.9781 18.2012 10.8809C18.4799 10.7836 17.6986 10.6157 18.8564 10.3779C19.0141 10.1402 19.0928 9.84288 19.0928 9.48633C19.0928 9.08641 18.9877 8.7647 18.7773 8.52148C18.5722 8.27286 18.2801 8.11565 17.9014 8.05078C17.712 8.02376 17.1439 8.01075 16.1973 8.01074H14.374V11.0264Z\"\n />\n </symbol>\n <symbol id=\"infoIcon\" viewBox=\"-2 -2 24 24\">\n <path\n d=\"M9.98633 7.58301C10.2598 7.58301 10.4854 7.67643 10.6631 7.86328C10.8408 8.05013 10.9297 8.3099 10.9297 8.64258V14.0361C10.9297 14.4098 10.8408 14.6924 10.6631 14.8838C10.4854 15.0752 10.2598 15.1709 9.98633 15.1709C9.71289 15.1709 9.48958 15.0729 9.31641 14.877C9.14779 14.681 9.06348 14.4007 9.06348 14.0361V8.69727C9.06348 8.32812 9.14779 8.05013 9.31641 7.86328C9.48958 7.67643 9.71289 7.58301 9.98633 7.58301Z\"\n />\n <path\n d=\"M10.0068 4.88965C10.2484 4.88965 10.4626 4.96712 10.6494 5.12207C10.8363 5.27702 10.9297 5.5026 10.9297 5.79883C10.9297 6.08594 10.8385 6.31152 10.6562 6.47559C10.474 6.63509 10.2575 6.71484 10.0068 6.71484C9.74707 6.71484 9.52376 6.63509 9.33691 6.47559C9.15462 6.31608 9.06348 6.09049 9.06348 5.79883C9.06348 5.53451 9.1569 5.31803 9.34375 5.14941C9.53516 4.97624 9.75618 4.88965 10.0068 4.88965Z\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0ZM10 1.7998C5.47126 1.7998 1.7998 5.47126 1.7998 10C1.7998 14.5287 5.47126 18.2002 10 18.2002C14.5287 18.2002 18.2002 14.5287 18.2002 10C18.2002 5.47126 14.5287 1.7998 10 1.7998Z\"\n />\n </symbol>\n <symbol id=\"settingsIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8ZM12 9.7998C10.785 9.7998 9.7998 10.785 9.7998 12C9.7998 13.215 10.785 14.2002 12 14.2002C13.215 14.2002 14.2002 13.215 14.2002 12C14.2002 10.785 13.215 9.7998 12 9.7998Z\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12.7119 2.2002C13.1961 2.20028 13.6296 2.49055 13.8164 2.93066L13.8506 3.02051L14.3652 4.56641C14.7875 4.70091 15.1932 4.87075 15.5801 5.07129L17.042 4.3418L17.1299 4.30176C17.5436 4.13502 18.017 4.21245 18.3564 4.50195L18.4268 4.56641L19.4336 5.57324C19.7985 5.93836 19.8889 6.49621 19.6582 6.95801L18.9268 8.41895C19.1274 8.80592 19.2971 9.21159 19.4316 9.63379L20.9795 10.1504C21.4693 10.3138 21.7997 10.7717 21.7998 11.2881V12.7119C21.7997 13.2284 21.4695 13.6873 20.9795 13.8506L19.4316 14.3652C19.2971 14.7875 19.1274 15.1932 18.9268 15.5801L19.6582 17.042C19.8889 17.5038 19.7985 18.0616 19.4336 18.4268L18.4268 19.4336C18.0616 19.7985 17.5038 19.8889 17.042 19.6582L15.5801 18.9268C15.1932 19.1274 14.7875 19.2971 14.3652 19.4316L13.8506 20.9795C13.6873 21.4695 13.2284 21.7997 12.7119 21.7998H11.2881C10.7717 21.7997 10.3138 21.4693 10.1504 20.9795L9.63379 19.4316C9.21159 19.2971 8.80592 19.1274 8.41895 18.9268L6.95801 19.6582C6.49621 19.8889 5.93836 19.7985 5.57324 19.4336L4.56641 18.4268C4.20146 18.0617 4.1112 17.5038 4.3418 17.042L5.07129 15.5801C4.87075 15.1932 4.70091 14.7875 4.56641 14.3652L3.02051 13.8506C2.53057 13.6873 2.20029 13.2283 2.2002 12.7119V11.2881C2.20024 10.7718 2.53076 10.3139 3.02051 10.1504L4.56641 9.63379C4.70094 9.21149 4.86966 8.80498 5.07031 8.41797L4.3418 6.95801C4.11113 6.49617 4.20145 5.93834 4.56641 5.57324L5.57324 4.56641C5.93834 4.20145 6.49617 4.11113 6.95801 4.3418L8.41797 5.07031C8.80498 4.86966 9.21149 4.70094 9.63379 4.56641L10.1504 3.02051L10.1836 2.92969C10.3706 2.49001 10.8042 2.20023 11.2881 2.2002H12.7119ZM11.0186 5.4707L10.8809 5.88477L10.458 5.99316C9.88479 6.13982 9.34317 6.36768 8.84473 6.66309L8.46875 6.88477L8.0791 6.69043L6.50098 5.90137L5.90137 6.50098L6.69043 8.0791L6.88477 8.46875L6.66309 8.84473C6.36768 9.34317 6.13982 9.88479 5.99316 10.458L5.88477 10.8809L5.4707 11.0186L3.7998 11.5762V12.4229L5.4707 12.9805L5.88477 13.1182L5.99316 13.541C6.13969 14.1141 6.36763 14.6556 6.66309 15.1543L6.88477 15.5303L6.69043 15.9199L5.90137 17.498L6.50098 18.0977L8.0791 17.3086L8.46875 17.1133L8.84473 17.3359C9.34314 17.6314 9.88463 17.8591 10.458 18.0059L10.8809 18.1143L11.0186 18.5283L11.5771 20.2002H12.4229L13.1182 18.1143L13.541 18.0059C14.1143 17.8593 14.6556 17.6314 15.1543 17.3359L15.5303 17.1143L15.9199 17.3086L17.498 18.0977L18.0977 17.498L17.3086 15.9199L17.1143 15.5303L17.3359 15.1543C17.6314 14.6556 17.8593 14.1143 18.0059 13.541L18.1143 13.1182L20.2002 12.4229V11.5762L18.1143 10.8809L18.0059 10.458C17.8591 9.88463 17.6314 9.34314 17.3359 8.84473L17.1133 8.46875L17.3086 8.0791L18.0977 6.50098L17.498 5.90137L15.9199 6.69043L15.5303 6.88477L15.1543 6.66309C14.6556 6.36763 14.1141 6.13969 13.541 5.99316L13.1182 5.88477L12.9805 5.4707L12.4229 3.7998H11.5762L11.0186 5.4707Z\"\n />\n </symbol>\n <symbol id=\"enterFullscreenIcon\" viewBox=\"0 0 24 24\">\n <path\n d=\"M3 14.7002C3.49693 14.7002 3.90018 15.1027 3.90039 15.5996V20C3.90039 20.0552 3.94477 20.0996 4 20.0996H8.40039C8.89727 20.0998 9.2998 20.5031 9.2998 21C9.2998 21.4969 8.89727 21.9002 8.40039 21.9004H4C2.95066 21.9004 2.09961 21.0493 2.09961 20V15.5996C2.09982 15.1027 2.50307 14.7002 3 14.7002Z\"\n />\n <path\n d=\"M21 14.7002C21.4969 14.7002 21.9002 15.1027 21.9004 15.5996V20C21.9004 21.0493 21.0493 21.9004 20 21.9004H15.5996C15.1027 21.9002 14.7002 21.4969 14.7002 21C14.7002 20.5031 15.1027 20.0998 15.5996 20.0996H20C20.0552 20.0996 20.0996 20.0552 20.0996 20V15.5996C20.0998 15.1027 20.5031 14.7002 21 14.7002Z\"\n />\n <path\n d=\"M8.40039 2.09961C8.89727 2.09982 9.2998 2.50307 9.2998 3C9.2998 3.49693 8.89727 3.90018 8.40039 3.90039H4C3.94477 3.90039 3.90039 3.94477 3.90039 4V8.40039C3.90018 8.89727 3.49693 9.2998 3 9.2998C2.50307 9.2998 2.09982 8.89727 2.09961 8.40039V4C2.09961 2.95066 2.95066 2.09961 4 2.09961H8.40039Z\"\n />\n <path\n d=\"M20 2.09961C21.0493 2.09961 21.9004 2.95066 21.9004 4V8.40039C21.9002 8.89727 21.4969 9.2998 21 9.2998C20.5031 9.2998 20.0998 8.89727 20.0996 8.40039V4C20.0996 3.94477 20.0552 3.90039 20 3.90039H15.5996C15.1027 3.90018 14.7002 3.49693 14.7002 3C14.7002 2.50307 15.1027 2.09982 15.5996 2.09961H20Z\"\n />\n </symbol>\n <symbol id=\"supersplatIcon\" viewBox=\"64 64 384 384\">\n <path\n fill=\"#F26722\"\n d=\"M129.83,217c9.75,0,17.64-7.9,17.64-17.64s-7.9-17.64-17.64-17.64-17.64,7.9-17.64,17.64,7.9,17.64,17.64,17.64Z\"\n />\n <path\n fill=\"#F26722\"\n d=\"M388.74,253.94c-12.46,0-22.57,10.11-22.57,22.57s10.11,22.57,22.57,22.57,22.57-10.11,22.57-22.57-10.11-22.57-22.57-22.57h0Z\"\n />\n <path\n fill=\"#F26722\"\n d=\"M345.26,161.1h.02c.37-.05.65-.22.97-.33,16.78-2.32,29.75-16.57,29.75-33.99,0-19.04-15.43-34.46-34.46-34.46s-34.46,15.43-34.46,34.46c0,4.29.88,8.35,2.32,12.14.04.12-.01.25.04.38,10.55,29.18-22.33,23.62-39.07,20.74-.49-.09-.88-.07-1.32-.11-4.27-.56-8.59-.97-13.03-.97-53.93,0-97.64,43.71-97.64,97.64,0,9.84,1.48,19.32,4.2,28.28.04.1,0,.17.05.27,8.97,30.15-14.83,25.49-25.52,25.69-1.04-.13-2.09-.32-3.18-.32-13.51,0-24.45,10.94-24.45,24.45s10.94,24.45,24.45,24.45c11.69,0,21.44-8.22,23.85-19.19h.02c6.31-26.57,25.9-18.02,31.15-12.67.2.2.4.26.59.42,17.44,16.25,40.75,26.26,66.47,26.26.67,0,1.34-.09,2.01-.1.66.01,1.31.04,2.04.04,9.7-.04,17.82,10.91,4.94,29.68h.13c-4.42,6.01-7.1,13.36-7.1,21.41,0,20.09,16.29,36.39,36.39,36.39s36.39-16.29,36.39-36.39c0-15.4-9.61-28.49-23.12-33.81-.32-.15-.61-.29-.98-.45-12.28-4.94-25.43-17.69-6.89-27.1l-.04-.1c31.93-16.06,53.88-49.02,53.88-87.2,0-21.15-6.8-40.68-18.23-56.66-.13-.23-.23-.47-.44-.74-23.15-31.67-2.37-36.07,10.3-38.09h-.01Z\"\n />\n <path\n fill=\"#fff\"\n d=\"M230.79,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z\"\n />\n <path\n fill=\"#fff\"\n d=\"M309.78,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z\"\n />\n </symbol>\n <symbol id=\"keyboardIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4 5.5h16a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5H4A2.5 2.5 0 0 1 1.5 16V8A2.5 2.5 0 0 1 4 5.5Zm0 1.8a.7.7 0 0 0-.7.7v8c0 .39.31.7.7.7h16a.7.7 0 0 0 .7-.7V8a.7.7 0 0 0-.7-.7H4Z\"\n />\n <path d=\"M5 9h2v2H5zM8.5 9h2v2h-2zM12 9h2v2h-2zM15.5 9h2v2h-2zM7 13h10v2H7z\" />\n </symbol>\n <symbol id=\"closeIcon\" viewBox=\"0 0 24 24\">\n <path d=\"M6 6l12 12M18 6L6 18\" />\n </symbol>\n <symbol id=\"chevronLeftIcon\" viewBox=\"0 0 24 24\">\n <path d=\"M15 19l-7-7 7-7\" />\n </symbol>\n <symbol id=\"chevronRightIcon\" viewBox=\"0 0 24 24\">\n <path d=\"M9 5l7 7-7 7\" />\n </symbol>\n <symbol id=\"exitFullscreenIcon\" viewBox=\"0 0 24 24\">\n <path\n d=\"M8 15.0996C8.49706 15.0996 8.90039 15.5029 8.90039 16V21C8.90039 21.4971 8.49706 21.9004 8 21.9004C7.50294 21.9004 7.09961 21.4971 7.09961 21V16.9004H3C2.50294 16.9004 2.09961 16.4971 2.09961 16C2.09961 15.5029 2.50294 15.0996 3 15.0996H8Z\"\n />\n <path\n d=\"M21 15.0996C21.4971 15.0996 21.9004 15.5029 21.9004 16C21.9004 16.4971 21.4971 16.9004 21 16.9004H16.9004V21C16.9004 21.4971 16.4971 21.9004 16 21.9004C15.5029 21.9004 15.0996 21.4971 15.0996 21V16C15.0996 15.5029 15.5029 15.0996 16 15.0996H21Z\"\n />\n <path\n d=\"M8 2.09961C8.49706 2.09961 8.90039 2.50294 8.90039 3V8C8.90039 8.49706 8.49706 8.90039 8 8.90039H3C2.50294 8.90039 2.09961 8.49706 2.09961 8C2.09961 7.50294 2.50294 7.09961 3 7.09961H7.09961V3C7.09961 2.50294 7.50294 2.09961 8 2.09961Z\"\n />\n <path\n d=\"M16 2.09961C16.4971 2.09961 16.9004 2.50294 16.9004 3V7.09961H21C21.4971 7.09961 21.9004 7.50294 21.9004 8C21.9004 8.49706 21.4971 8.90039 21 8.90039H16C15.5029 8.90039 15.0996 8.49706 15.0996 8V3C15.0996 2.50294 15.5029 2.09961 16 2.09961Z\"\n />\n </symbol>\n</svg>\n";
107872
+ var uiHtml = "\n<canvas></canvas>\n\n<div class=\"sse-sceneLayer\"></div>\n\n<div class=\"sse-ui\">\n <div class=\"sse-poster\"></div>\n\n \n <div class=\"sse-loadingWrap\">\n <div class=\"sse-loadingText\"></div>\n <div class=\"sse-loadingBar\"></div>\n </div>\n\n <div class=\"sse-controlsWrap sse-hidden\">\n \n <div class=\"sse-timelineContainer sse-hidden\">\n <div class=\"sse-line\"></div>\n <div class=\"sse-handle\"></div>\n <div class=\"sse-time sse-hidden\">0:00</div>\n </div>\n\n \n <div class=\"sse-buttonsContainer\">\n <div class=\"sse-buttonGroup\">\n <button class=\"sse-play sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#playIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#playIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-pause sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24px\" height=\"24px\">\n <g class=\"sse-stroke\"><use href=\"#pauseIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#pauseIcon\" /></g>\n </svg>\n </button>\n </div>\n\n <div class=\"sse-spacer\"></div>\n\n <div class=\"sse-buttonGroup\">\n <button class=\"sse-orbitCamera sse-controlButton sse-toggle sse-left\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#orbitIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#orbitIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-flyCamera sse-controlButton sse-toggle sse-right\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#flyIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#flyIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-fpsCamera sse-controlButton sse-toggle sse-right sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#walkIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#walkIcon\" /></g>\n </svg>\n </button>\n </div>\n\n <div class=\"sse-buttonGroup\">\n \n <button class=\"sse-settings sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#settingsIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#settingsIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-controlsButton sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#keyboardIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#keyboardIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-info sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#infoIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#infoIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-arMode sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#arIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#arIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-vrMode sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#vrIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#vrIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-enterFullscreen sse-controlButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#enterFullscreenIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#enterFullscreenIcon\" /></g>\n </svg>\n </button>\n <button class=\"sse-exitFullscreen sse-controlButton sse-hidden\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#exitFullscreenIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#exitFullscreenIcon\" /></g>\n </svg>\n </button>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-joystickBase sse-hidden\">\n <div class=\"sse-joystick\"></div>\n </div>\n\n \n <div class=\"sse-annotationNav sse-hidden\">\n <button class=\"sse-annotationPrev\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\">\n <g class=\"sse-stroke\"><use href=\"#chevronLeftIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#chevronLeftIcon\" /></g>\n </svg>\n </button>\n <div class=\"sse-annotationInfo\">\n <span class=\"sse-annotationNavNumber\"></span>\n <span class=\"sse-annotationNavTitle\"></span>\n </div>\n <button class=\"sse-annotationNext\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\">\n <g class=\"sse-stroke\"><use href=\"#chevronRightIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#chevronRightIcon\" /></g>\n </svg>\n </button>\n </div>\n\n \n <div class=\"sse-controlsHint sse-hidden\">\n <div class=\"sse-controlsHintRows\"></div>\n \n <div class=\"sse-controlsHintFooter\">\n \n <svg class=\"sse-controlsHintIcon\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <use href=\"#orbitIcon\" />\n </svg>\n <div class=\"sse-controlsHintTitles\">\n \n <span class=\"sse-controlsHintTitle\"></span>\n <div class=\"sse-controlsHintTabs\">\n <button class=\"sse-controlsHintTab sse-controlsHintCameraTab\">\n <svg class=\"sse-controlsHintTabIcon\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <use href=\"#orbitIcon\" />\n </svg>\n <span class=\"sse-controlsHintCameraLabel\"></span>\n </button>\n <button class=\"sse-controlsHintTab sse-controlsHintGlobalTab\">\n <svg class=\"sse-controlsHintTabIcon\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <use href=\"#keyboardIcon\" />\n </svg>\n <span data-i18n=\"help.tab.global\">Global</span>\n </button>\n </div>\n <span class=\"sse-controlsHintSubtitle\"></span>\n </div>\n <button class=\"sse-controlsHintClose sse-panelButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#closeIcon\" /></svg>\n </button>\n </div>\n </div>\n\n \n <div class=\"sse-settingsPanel sse-hidden\">\n \n <div class=\"sse-settingsGroup\">\n \n <div class=\"sse-qualityRow sse-settingsRow\">\n <div class=\"sse-qualityOption\" data-i18n=\"settings.quality\">Quality</div>\n <div class=\"sse-qualityValue\"></div>\n </div>\n <div class=\"sse-qualitySliderRow sse-settingsRow\">\n <div class=\"sse-qualityTrack\">\n <div class=\"sse-qualityRail\">\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityStop\"></div>\n <div class=\"sse-qualityThumb\"></div>\n </div>\n </div>\n </div>\n \n <div class=\"sse-performanceModeRow sse-settingsRow sse-hidden\">\n <div class=\"sse-performanceModeOption\" data-i18n=\"settings.performance-mode\">Performance Mode</div>\n <div class=\"sse-performanceModeCheck sse-toggleSwitch\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n \n <div class=\"sse-annotationsRow sse-settingsRow\">\n <div class=\"sse-annotationsOption\" data-i18n=\"settings.show-annotations\">Show Annotations</div>\n <div class=\"sse-annotationsCheck sse-toggleSwitch sse-active\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n <div class=\"sse-showCollisionRow sse-settingsRow sse-hidden\">\n <div class=\"sse-showCollisionOption\" data-i18n=\"settings.show-collision\">Show Collision</div>\n <div class=\"sse-showCollisionCheck sse-toggleSwitch\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n </div>\n \n <div class=\"sse-settingsGroup\">\n <div class=\"sse-gamingControlsRow sse-settingsRow\">\n <div class=\"sse-gamingControlsOption\" data-i18n=\"settings.gaming-controls\">Gaming Controls</div>\n <div class=\"sse-gamingControlsCheck sse-toggleSwitch\">\n <div class=\"sse-toggleTrack\"><div class=\"sse-toggleThumb\"></div></div>\n </div>\n </div>\n <div class=\"sse-settingsRow\">\n <button class=\"sse-frame\" data-i18n=\"settings.frame\">Frame</button>\n <button class=\"sse-reset\" data-i18n=\"settings.reset\">Reset</button>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-tooltip\"></div>\n\n \n <div class=\"sse-infoPanel sse-hidden\">\n <div class=\"sse-infoPanelContent\" onpointerdown=\"event.stopPropagation()\" onwheel=\"event.stopPropagation()\">\n <button class=\"sse-infoClose sse-panelButton\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#closeIcon\" /></svg>\n </button>\n <a\n class=\"sse-viewerTitle\"\n href=\"https://github.com/playcanvas/supersplat-viewer\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <svg class=\"sse-viewerLogo\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <use href=\"#supersplatIcon\" />\n </svg>\n <span class=\"sse-title-name\">SuperSplat Viewer</span>\n <span class=\"sse-title-version\">v<span class=\"sse-appVersionLabel\"></span></span>\n </a>\n <div class=\"sse-infoGpu\">\n <span class=\"sse-rendererName\"></span>\n <span class=\"sse-gpuName\"></span>\n </div>\n <div class=\"sse-infoLinks\">\n <a\n class=\"sse-infoLink\"\n href=\"https://github.com/playcanvas/engine\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <span>PlayCanvas Engine</span>\n <span class=\"sse-infoLinkVersion\">v<span class=\"sse-engineVersionLabel\"></span></span>\n </a>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-xrModal sse-hidden\" onwheel=\"event.stopPropagation()\">\n <div class=\"sse-xrModalContent\" onpointerdown=\"event.stopPropagation()\">\n <h2 data-i18n=\"xr-modal.title\">WebGL Required</h2>\n <p data-i18n=\"xr-modal.message\">\n AR and VR are not supported on the WebGPU renderer. Pressing OK will reload the viewer with WebGL.\n </p>\n <div class=\"sse-xrModalButtons\">\n <button class=\"sse-xrModalCancel\" data-i18n=\"xr-modal.cancel\">Cancel</button>\n <button class=\"sse-xrModalOk\" data-i18n=\"xr-modal.ok\">OK</button>\n </div>\n </div>\n </div>\n\n \n <div class=\"sse-vrPrompt sse-hidden\" onwheel=\"event.stopPropagation()\">\n <button class=\"sse-vrPromptPill\" type=\"button\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\">\n <g class=\"sse-stroke\"><use href=\"#vrIcon\" /></g>\n <g class=\"sse-fill\"><use href=\"#vrIcon\" /></g>\n </svg>\n <span class=\"sse-vrPromptText\" data-i18n=\"vr-prompt.loading\">Loading…</span>\n </button>\n </div>\n\n \n <div class=\"sse-xrHint sse-hidden\" data-i18n=\"xr-hint.stalled\">Nothing happening? Switch tabs and back.</div>\n</div>\n\n<svg>\n <symbol id=\"playIcon\" viewBox=\"-2 0 24 24\">\n <path\n d=\"M1 1.98725C1 1.20022 1.87789 0.730421 2.5332 1.16694L14.5605 9.18061C15.146 9.57066 15.146 10.4302 14.5605 10.8203L2.5332 18.833C1.87788 19.2695 1 18.7997 1 18.0126V1.98725Z\"\n transform=\"translate(2 2)\"\n />\n </symbol>\n <symbol id=\"pauseIcon\" viewBox=\"0 0 20 20\">\n <path d=\"M5 16V4h3v12H5zm7-12h3v12h-3V4z\" />\n </symbol>\n <symbol id=\"orbitIcon\" viewBox=\"-2 -2 20 20\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.44728 1.7561C6.14077 0.763957 8.53159 1.57857 10.4375 3.58357C12.75 3.02099 14.4585 3.40647 14.6491 4.73071C14.7831 5.66256 14.139 6.87994 12.9942 8.09008C13.7427 10.7586 13.2413 13.2551 11.5527 14.2444C9.85867 15.2369 7.46679 14.4208 5.56056 12.4143C3.34914 12.9521 1.691 12.6254 1.38412 11.4371L1.35092 11.2698C1.21678 10.3379 1.85972 9.11931 3.00457 7.90909C2.28693 5.34963 2.72037 2.94871 4.24741 1.88435L4.44728 1.7561ZM11.9889 9.03995C11.002 9.88136 9.79998 10.6808 8.47918 11.3303L8.13673 11.4937C7.70533 11.6942 7.28148 11.8681 6.8698 12.0172C7.32387 12.4287 7.79226 12.7587 8.25326 12.9983C9.39237 13.5903 10.3231 13.574 10.946 13.2092C11.5745 12.841 12.0613 12.0184 12.1263 10.7086C12.1518 10.1934 12.1065 9.62999 11.9889 9.03995ZM3.46225 9.20206C3.15128 9.5802 2.91825 9.93412 2.76238 10.2489C2.54363 10.6909 2.51958 10.967 2.53842 11.0985C2.54902 11.1721 2.56635 11.2146 2.67058 11.2763C2.81832 11.3636 3.12484 11.4626 3.6478 11.467C3.95641 11.4696 4.3074 11.4373 4.69402 11.3707C4.45655 11.0439 4.23084 10.6971 4.02215 10.3303C3.81017 9.95774 3.62416 9.58004 3.46225 9.20206ZM10.0358 4.9423C9.42018 5.13611 8.75205 5.40184 8.05014 5.74698C6.61265 6.45384 5.33887 7.34291 4.37175 8.24373C4.55213 8.73829 4.78227 9.2401 5.06511 9.73722C5.33995 10.2202 5.64271 10.6614 5.96355 11.0575C6.5793 10.8637 7.24782 10.5987 7.94988 10.2535C9.38732 9.54667 10.6605 8.65688 11.6276 7.7561C11.4473 7.26173 11.2176 6.76019 10.9349 6.26326C10.66 5.78001 10.3568 5.33855 10.0358 4.9423ZM7.74675 3.00219C6.60759 2.41015 5.67698 2.42644 5.05405 2.79126C4.42548 3.15953 3.93866 3.98199 3.87371 5.29191C3.84822 5.80668 3.89236 6.36967 4.00978 6.95922C4.91091 6.19088 5.9923 5.45862 7.17905 4.84269L7.52084 4.67016C8.07056 4.39986 8.6096 4.17089 9.12957 3.98266C8.67568 3.57138 8.20757 3.24172 7.74675 3.00219ZM12.3522 4.53344C12.0433 4.53086 11.6918 4.56177 11.3047 4.6285C11.5425 4.95566 11.7689 5.3029 11.9779 5.67016C12.1897 6.04255 12.3753 6.41999 12.5371 6.79777C12.8481 6.41965 13.0818 6.06635 13.2376 5.75154C13.4564 5.30973 13.4804 5.03352 13.4616 4.90193C13.451 4.82831 13.4337 4.7859 13.3294 4.7242C13.1817 4.63684 12.8753 4.53787 12.3522 4.53344Z\"\n />\n </symbol>\n <symbol id=\"flyIcon\" viewBox=\"-2 -2 20 20\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 1.33337C13.4727 1.33337 14.6666 2.52728 14.6666 4.00004C14.6666 5.4728 13.4727 6.66671 12 6.66671C11.4931 6.66671 11.0194 6.52491 10.6159 6.27934L10.2721 6.62374C10.0345 6.86142 9.90102 7.18411 9.90102 7.52022V8.47986C9.90102 8.81597 10.0345 9.13866 10.2721 9.37634L10.6159 9.72009C11.0193 9.47463 11.4932 9.33337 12 9.33337C13.4727 9.33337 14.6666 10.5273 14.6666 12C14.6666 13.4728 13.4727 14.6667 12 14.6667C10.5272 14.6667 9.33331 13.4728 9.33331 12C9.33331 11.4932 9.47457 11.0194 9.72003 10.6159L9.37628 10.2722C9.1386 10.0345 8.81591 9.90108 8.4798 9.90108H7.52016C7.18405 9.90108 6.86136 10.0345 6.62368 10.2722L6.27928 10.6159C6.52485 11.0195 6.66665 11.4931 6.66665 12C6.66665 13.4728 5.47274 14.6667 3.99998 14.6667C2.52722 14.6667 1.33331 13.4728 1.33331 12C1.33331 10.5273 2.52722 9.33337 3.99998 9.33337C4.50658 9.33337 4.98008 9.47481 5.38344 9.72009L5.72784 9.37634C5.9655 9.13866 6.09894 8.81597 6.09894 8.47986V7.52022C6.09894 7.18411 5.9655 6.86142 5.72784 6.62374L5.38344 6.27934C4.98001 6.52473 4.5067 6.66671 3.99998 6.66671C2.52722 6.66671 1.33331 5.4728 1.33331 4.00004C1.33331 2.52728 2.52722 1.33337 3.99998 1.33337C5.47274 1.33337 6.66665 2.52728 6.66665 4.00004C6.66665 4.50676 6.52467 4.98008 6.27928 5.3835L6.62368 5.72791C6.86136 5.96556 7.18405 6.099 7.52016 6.099H8.4798C8.81591 6.099 9.1386 5.96556 9.37628 5.72791L9.72003 5.3835C9.47475 4.98014 9.33331 4.50664 9.33331 4.00004C9.33331 2.52728 10.5272 1.33337 12 1.33337ZM3.99998 10.3998C3.11632 10.3998 2.39972 11.1164 2.39972 12C2.39972 12.8837 3.11632 13.6003 3.99998 13.6003C4.88364 13.6003 5.60024 12.8837 5.60024 12C5.60024 11.7911 5.55917 11.5919 5.48631 11.4089L4.41469 12.4812C4.16723 12.7284 3.76625 12.7286 3.51886 12.4812C3.27147 12.2338 3.27158 11.8328 3.51886 11.5853L4.59047 10.5131C4.40769 10.4404 4.20862 10.3998 3.99998 10.3998ZM12 10.3998C11.7911 10.3998 11.5918 10.4403 11.4088 10.5131L12.4811 11.5853C12.7284 11.8328 12.7285 12.2338 12.4811 12.4812C12.2337 12.7286 11.8327 12.7284 11.5853 12.4812L10.513 11.4089C10.4402 11.5918 10.3997 11.7912 10.3997 12C10.3997 12.8837 11.1163 13.6003 12 13.6003C12.8836 13.6003 13.6002 12.8837 13.6002 12C13.6002 11.1164 12.8836 10.3998 12 10.3998ZM3.99998 2.39978C3.11632 2.39978 2.39972 3.11639 2.39972 4.00004C2.39972 4.8837 3.11632 5.6003 3.99998 5.6003C4.20871 5.6003 4.40763 5.55909 4.59047 5.48637L3.51886 4.41475C3.27158 4.16729 3.27147 3.76631 3.51886 3.51892C3.76625 3.27153 4.16723 3.27164 4.41469 3.51892L5.48631 4.59054C5.55903 4.40769 5.60024 4.20877 5.60024 4.00004C5.60024 3.11639 4.88364 2.39978 3.99998 2.39978ZM12 2.39978C11.1163 2.39978 10.3997 3.11639 10.3997 4.00004C10.3997 4.20868 10.4403 4.40775 10.513 4.59054L11.5853 3.51892C11.8327 3.27164 12.2337 3.27153 12.4811 3.51892C12.7285 3.76631 12.7284 4.16729 12.4811 4.41475L11.4088 5.48637C11.5918 5.55923 11.791 5.6003 12 5.6003C12.8836 5.6003 13.6002 4.8837 13.6002 4.00004C13.6002 3.11639 12.8836 2.39978 12 2.39978Z\"\n />\n </symbol>\n <symbol id=\"walkIcon\" viewBox=\"-2 -2 20 20\">\n <path d=\"M9.75 2a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0zM5.25 4.75h5.5v4.5h-.5v5h-2v-5h-.5v5h-2v-5h-.5z\" />\n </symbol>\n <symbol id=\"arIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 15.3994V6H16.9629C18.2109 6 19.1167 6.1089 19.6797 6.32715C20.248 6.53997 20.7021 6.92247 21.042 7.47363C21.3818 8.02476 21.5518 8.65491 21.5518 9.36426C21.5518 10.2645 21.2943 11.0093 20.7793 11.5986C20.2641 12.1825 19.4938 12.5513 18.4688 12.7041C18.9786 13.0097 19.3983 13.3453 19.7275 13.7109C20.0621 14.0766 20.5113 14.7261 21.0742 15.6592L22.5 18H19.6797L17.9746 15.3887C17.3694 14.4559 16.9555 13.8691 16.7324 13.6289C16.5095 13.3835 16.2729 13.2172 16.0234 13.1299C15.7738 13.0371 15.3777 12.9902 14.8359 12.9902H14.3584V18H10.4053L9.35742 15.2744H4.56055L3.57031 18H1L5.67383 6H8.23633L12 15.3994ZM5.30566 13.252H8.58008L6.92676 8.7998L5.30566 13.252ZM14.3584 11.0752H16.1025C17.2336 11.0752 17.9401 11.0259 18.2217 10.9277C18.5032 10.8295 18.7235 10.66 18.8828 10.4199C19.0421 10.1798 19.1221 9.87966 19.1221 9.51953C19.122 9.11597 19.016 8.79138 18.8037 8.5459C18.5966 8.29488 18.3013 8.13677 17.9189 8.07129C17.7276 8.04401 17.1541 8.03027 16.1982 8.03027H14.3584V11.0752Z\"\n />\n </symbol>\n <symbol id=\"vrIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M5.52148 10.7021L7.15918 15.1133L8.76465 10.7021L9.50195 8.7002L10.4834 6H16.9541C18.1903 6 19.0879 6.10801 19.6455 6.32422C20.2081 6.53499 20.6576 6.9134 20.9941 7.45898C21.3308 8.00484 21.499 8.62946 21.499 9.33203C21.499 10.2239 21.2446 10.9622 20.7344 11.5459C20.2241 12.1242 19.4606 12.4893 18.4453 12.6406C18.9503 12.9433 19.3662 13.2756 19.6924 13.6377C20.0238 13.9999 20.4688 14.6432 21.0264 15.5674L22.4385 17.8857H19.6455L17.9561 15.2998C17.3565 14.3758 16.9466 13.7946 16.7256 13.5566C16.5047 13.3135 16.2706 13.148 16.0234 13.0615C15.7762 12.9696 15.3841 12.9238 14.8477 12.9238H14.374V17.8857H12.0381V8.54395L8.39941 17.8857H5.86133L1.10254 6H3.71289L5.52148 10.7021ZM14.374 11.0264H16.1025C17.2228 11.0264 17.9224 10.9781 18.2012 10.8809C18.4799 10.7836 17.6986 10.6157 18.8564 10.3779C19.0141 10.1402 19.0928 9.84288 19.0928 9.48633C19.0928 9.08641 18.9877 8.7647 18.7773 8.52148C18.5722 8.27286 18.2801 8.11565 17.9014 8.05078C17.712 8.02376 17.1439 8.01075 16.1973 8.01074H14.374V11.0264Z\"\n />\n </symbol>\n <symbol id=\"infoIcon\" viewBox=\"-2 -2 24 24\">\n <path\n d=\"M9.98633 7.58301C10.2598 7.58301 10.4854 7.67643 10.6631 7.86328C10.8408 8.05013 10.9297 8.3099 10.9297 8.64258V14.0361C10.9297 14.4098 10.8408 14.6924 10.6631 14.8838C10.4854 15.0752 10.2598 15.1709 9.98633 15.1709C9.71289 15.1709 9.48958 15.0729 9.31641 14.877C9.14779 14.681 9.06348 14.4007 9.06348 14.0361V8.69727C9.06348 8.32812 9.14779 8.05013 9.31641 7.86328C9.48958 7.67643 9.71289 7.58301 9.98633 7.58301Z\"\n />\n <path\n d=\"M10.0068 4.88965C10.2484 4.88965 10.4626 4.96712 10.6494 5.12207C10.8363 5.27702 10.9297 5.5026 10.9297 5.79883C10.9297 6.08594 10.8385 6.31152 10.6562 6.47559C10.474 6.63509 10.2575 6.71484 10.0068 6.71484C9.74707 6.71484 9.52376 6.63509 9.33691 6.47559C9.15462 6.31608 9.06348 6.09049 9.06348 5.79883C9.06348 5.53451 9.1569 5.31803 9.34375 5.14941C9.53516 4.97624 9.75618 4.88965 10.0068 4.88965Z\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0ZM10 1.7998C5.47126 1.7998 1.7998 5.47126 1.7998 10C1.7998 14.5287 5.47126 18.2002 10 18.2002C14.5287 18.2002 18.2002 14.5287 18.2002 10C18.2002 5.47126 14.5287 1.7998 10 1.7998Z\"\n />\n </symbol>\n <symbol id=\"settingsIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8ZM12 9.7998C10.785 9.7998 9.7998 10.785 9.7998 12C9.7998 13.215 10.785 14.2002 12 14.2002C13.215 14.2002 14.2002 13.215 14.2002 12C14.2002 10.785 13.215 9.7998 12 9.7998Z\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12.7119 2.2002C13.1961 2.20028 13.6296 2.49055 13.8164 2.93066L13.8506 3.02051L14.3652 4.56641C14.7875 4.70091 15.1932 4.87075 15.5801 5.07129L17.042 4.3418L17.1299 4.30176C17.5436 4.13502 18.017 4.21245 18.3564 4.50195L18.4268 4.56641L19.4336 5.57324C19.7985 5.93836 19.8889 6.49621 19.6582 6.95801L18.9268 8.41895C19.1274 8.80592 19.2971 9.21159 19.4316 9.63379L20.9795 10.1504C21.4693 10.3138 21.7997 10.7717 21.7998 11.2881V12.7119C21.7997 13.2284 21.4695 13.6873 20.9795 13.8506L19.4316 14.3652C19.2971 14.7875 19.1274 15.1932 18.9268 15.5801L19.6582 17.042C19.8889 17.5038 19.7985 18.0616 19.4336 18.4268L18.4268 19.4336C18.0616 19.7985 17.5038 19.8889 17.042 19.6582L15.5801 18.9268C15.1932 19.1274 14.7875 19.2971 14.3652 19.4316L13.8506 20.9795C13.6873 21.4695 13.2284 21.7997 12.7119 21.7998H11.2881C10.7717 21.7997 10.3138 21.4693 10.1504 20.9795L9.63379 19.4316C9.21159 19.2971 8.80592 19.1274 8.41895 18.9268L6.95801 19.6582C6.49621 19.8889 5.93836 19.7985 5.57324 19.4336L4.56641 18.4268C4.20146 18.0617 4.1112 17.5038 4.3418 17.042L5.07129 15.5801C4.87075 15.1932 4.70091 14.7875 4.56641 14.3652L3.02051 13.8506C2.53057 13.6873 2.20029 13.2283 2.2002 12.7119V11.2881C2.20024 10.7718 2.53076 10.3139 3.02051 10.1504L4.56641 9.63379C4.70094 9.21149 4.86966 8.80498 5.07031 8.41797L4.3418 6.95801C4.11113 6.49617 4.20145 5.93834 4.56641 5.57324L5.57324 4.56641C5.93834 4.20145 6.49617 4.11113 6.95801 4.3418L8.41797 5.07031C8.80498 4.86966 9.21149 4.70094 9.63379 4.56641L10.1504 3.02051L10.1836 2.92969C10.3706 2.49001 10.8042 2.20023 11.2881 2.2002H12.7119ZM11.0186 5.4707L10.8809 5.88477L10.458 5.99316C9.88479 6.13982 9.34317 6.36768 8.84473 6.66309L8.46875 6.88477L8.0791 6.69043L6.50098 5.90137L5.90137 6.50098L6.69043 8.0791L6.88477 8.46875L6.66309 8.84473C6.36768 9.34317 6.13982 9.88479 5.99316 10.458L5.88477 10.8809L5.4707 11.0186L3.7998 11.5762V12.4229L5.4707 12.9805L5.88477 13.1182L5.99316 13.541C6.13969 14.1141 6.36763 14.6556 6.66309 15.1543L6.88477 15.5303L6.69043 15.9199L5.90137 17.498L6.50098 18.0977L8.0791 17.3086L8.46875 17.1133L8.84473 17.3359C9.34314 17.6314 9.88463 17.8591 10.458 18.0059L10.8809 18.1143L11.0186 18.5283L11.5771 20.2002H12.4229L13.1182 18.1143L13.541 18.0059C14.1143 17.8593 14.6556 17.6314 15.1543 17.3359L15.5303 17.1143L15.9199 17.3086L17.498 18.0977L18.0977 17.498L17.3086 15.9199L17.1143 15.5303L17.3359 15.1543C17.6314 14.6556 17.8593 14.1143 18.0059 13.541L18.1143 13.1182L20.2002 12.4229V11.5762L18.1143 10.8809L18.0059 10.458C17.8591 9.88463 17.6314 9.34314 17.3359 8.84473L17.1133 8.46875L17.3086 8.0791L18.0977 6.50098L17.498 5.90137L15.9199 6.69043L15.5303 6.88477L15.1543 6.66309C14.6556 6.36763 14.1141 6.13969 13.541 5.99316L13.1182 5.88477L12.9805 5.4707L12.4229 3.7998H11.5762L11.0186 5.4707Z\"\n />\n </symbol>\n <symbol id=\"enterFullscreenIcon\" viewBox=\"0 0 24 24\">\n <path\n d=\"M3 14.7002C3.49693 14.7002 3.90018 15.1027 3.90039 15.5996V20C3.90039 20.0552 3.94477 20.0996 4 20.0996H8.40039C8.89727 20.0998 9.2998 20.5031 9.2998 21C9.2998 21.4969 8.89727 21.9002 8.40039 21.9004H4C2.95066 21.9004 2.09961 21.0493 2.09961 20V15.5996C2.09982 15.1027 2.50307 14.7002 3 14.7002Z\"\n />\n <path\n d=\"M21 14.7002C21.4969 14.7002 21.9002 15.1027 21.9004 15.5996V20C21.9004 21.0493 21.0493 21.9004 20 21.9004H15.5996C15.1027 21.9002 14.7002 21.4969 14.7002 21C14.7002 20.5031 15.1027 20.0998 15.5996 20.0996H20C20.0552 20.0996 20.0996 20.0552 20.0996 20V15.5996C20.0998 15.1027 20.5031 14.7002 21 14.7002Z\"\n />\n <path\n d=\"M8.40039 2.09961C8.89727 2.09982 9.2998 2.50307 9.2998 3C9.2998 3.49693 8.89727 3.90018 8.40039 3.90039H4C3.94477 3.90039 3.90039 3.94477 3.90039 4V8.40039C3.90018 8.89727 3.49693 9.2998 3 9.2998C2.50307 9.2998 2.09982 8.89727 2.09961 8.40039V4C2.09961 2.95066 2.95066 2.09961 4 2.09961H8.40039Z\"\n />\n <path\n d=\"M20 2.09961C21.0493 2.09961 21.9004 2.95066 21.9004 4V8.40039C21.9002 8.89727 21.4969 9.2998 21 9.2998C20.5031 9.2998 20.0998 8.89727 20.0996 8.40039V4C20.0996 3.94477 20.0552 3.90039 20 3.90039H15.5996C15.1027 3.90018 14.7002 3.49693 14.7002 3C14.7002 2.50307 15.1027 2.09982 15.5996 2.09961H20Z\"\n />\n </symbol>\n <symbol id=\"supersplatIcon\" viewBox=\"64 64 384 384\">\n <path\n fill=\"#F26722\"\n d=\"M129.83,217c9.75,0,17.64-7.9,17.64-17.64s-7.9-17.64-17.64-17.64-17.64,7.9-17.64,17.64,7.9,17.64,17.64,17.64Z\"\n />\n <path\n fill=\"#F26722\"\n d=\"M388.74,253.94c-12.46,0-22.57,10.11-22.57,22.57s10.11,22.57,22.57,22.57,22.57-10.11,22.57-22.57-10.11-22.57-22.57-22.57h0Z\"\n />\n <path\n fill=\"#F26722\"\n d=\"M345.26,161.1h.02c.37-.05.65-.22.97-.33,16.78-2.32,29.75-16.57,29.75-33.99,0-19.04-15.43-34.46-34.46-34.46s-34.46,15.43-34.46,34.46c0,4.29.88,8.35,2.32,12.14.04.12-.01.25.04.38,10.55,29.18-22.33,23.62-39.07,20.74-.49-.09-.88-.07-1.32-.11-4.27-.56-8.59-.97-13.03-.97-53.93,0-97.64,43.71-97.64,97.64,0,9.84,1.48,19.32,4.2,28.28.04.1,0,.17.05.27,8.97,30.15-14.83,25.49-25.52,25.69-1.04-.13-2.09-.32-3.18-.32-13.51,0-24.45,10.94-24.45,24.45s10.94,24.45,24.45,24.45c11.69,0,21.44-8.22,23.85-19.19h.02c6.31-26.57,25.9-18.02,31.15-12.67.2.2.4.26.59.42,17.44,16.25,40.75,26.26,66.47,26.26.67,0,1.34-.09,2.01-.1.66.01,1.31.04,2.04.04,9.7-.04,17.82,10.91,4.94,29.68h.13c-4.42,6.01-7.1,13.36-7.1,21.41,0,20.09,16.29,36.39,36.39,36.39s36.39-16.29,36.39-36.39c0-15.4-9.61-28.49-23.12-33.81-.32-.15-.61-.29-.98-.45-12.28-4.94-25.43-17.69-6.89-27.1l-.04-.1c31.93-16.06,53.88-49.02,53.88-87.2,0-21.15-6.8-40.68-18.23-56.66-.13-.23-.23-.47-.44-.74-23.15-31.67-2.37-36.07,10.3-38.09h-.01Z\"\n />\n <path\n fill=\"#fff\"\n d=\"M230.79,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z\"\n />\n <path\n fill=\"#fff\"\n d=\"M309.78,284.71c0,7.95-6.44,14.38-14.38,14.38s-14.38-6.44-14.38-14.38v-22.95c0-7.95,6.44-14.38,14.38-14.38s14.38,6.44,14.38,14.38v22.95Z\"\n />\n </symbol>\n <symbol id=\"keyboardIcon\" viewBox=\"0 0 24 24\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4 5.5h16a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5H4A2.5 2.5 0 0 1 1.5 16V8A2.5 2.5 0 0 1 4 5.5Zm0 1.8a.7.7 0 0 0-.7.7v8c0 .39.31.7.7.7h16a.7.7 0 0 0 .7-.7V8a.7.7 0 0 0-.7-.7H4Z\"\n />\n <path d=\"M5 9h2v2H5zM8.5 9h2v2h-2zM12 9h2v2h-2zM15.5 9h2v2h-2zM7 13h10v2H7z\" />\n </symbol>\n <symbol id=\"closeIcon\" viewBox=\"0 0 24 24\">\n <path d=\"M6 6l12 12M18 6L6 18\" />\n </symbol>\n <symbol id=\"chevronLeftIcon\" viewBox=\"0 0 24 24\">\n <path d=\"M15 19l-7-7 7-7\" />\n </symbol>\n <symbol id=\"chevronRightIcon\" viewBox=\"0 0 24 24\">\n <path d=\"M9 5l7 7-7 7\" />\n </symbol>\n <symbol id=\"exitFullscreenIcon\" viewBox=\"0 0 24 24\">\n <path\n d=\"M8 15.0996C8.49706 15.0996 8.90039 15.5029 8.90039 16V21C8.90039 21.4971 8.49706 21.9004 8 21.9004C7.50294 21.9004 7.09961 21.4971 7.09961 21V16.9004H3C2.50294 16.9004 2.09961 16.4971 2.09961 16C2.09961 15.5029 2.50294 15.0996 3 15.0996H8Z\"\n />\n <path\n d=\"M21 15.0996C21.4971 15.0996 21.9004 15.5029 21.9004 16C21.9004 16.4971 21.4971 16.9004 21 16.9004H16.9004V21C16.9004 21.4971 16.4971 21.9004 16 21.9004C15.5029 21.9004 15.0996 21.4971 15.0996 21V16C15.0996 15.5029 15.5029 15.0996 16 15.0996H21Z\"\n />\n <path\n d=\"M8 2.09961C8.49706 2.09961 8.90039 2.50294 8.90039 3V8C8.90039 8.49706 8.49706 8.90039 8 8.90039H3C2.50294 8.90039 2.09961 8.49706 2.09961 8C2.09961 7.50294 2.50294 7.09961 3 7.09961H7.09961V3C7.09961 2.50294 7.50294 2.09961 8 2.09961Z\"\n />\n <path\n d=\"M16 2.09961C16.4971 2.09961 16.9004 2.50294 16.9004 3V7.09961H21C21.4971 7.09961 21.9004 7.50294 21.9004 8C21.9004 8.49706 21.4971 8.90039 21 8.90039H16C15.5029 8.90039 15.0996 8.49706 15.0996 8V3C15.0996 2.50294 15.5029 2.09961 16 2.09961Z\"\n />\n </symbol>\n</svg>\n";
107609
107873
 
107610
107874
  /**
107611
107875
  * Creates a figure-8 (lemniscate / infinity sign) camera animation track.
@@ -111336,13 +111600,15 @@ class FrameGate {
111336
111600
  }
111337
111601
  }
111338
111602
 
111339
- // Browser integration shared by the built-in controls and embedding hosts.
111340
- const initFullscreen = ({ root, state, events }) => {
111341
- const native = !!(root.requestFullscreen && document.exitFullscreen);
111603
+ // Browser integration shared by the built-in controls and embedding hosts. Native fullscreen
111604
+ // takes the host's container rather than the viewer's root, so whatever the host shows over the
111605
+ // viewer in that container (its own info panel, a badge) stays visible.
111606
+ const initFullscreen = ({ container, state, events }) => {
111607
+ const native = !!(container.requestFullscreen && document.exitFullscreen);
111342
111608
  let destroyed = false;
111343
111609
  const update = () => {
111344
111610
  if (!destroyed)
111345
- state.isFullscreen = document.fullscreenElement === root;
111611
+ state.isFullscreen = document.fullscreenElement === container;
111346
111612
  };
111347
111613
  if (native) {
111348
111614
  document.addEventListener('fullscreenchange', update);
@@ -111351,7 +111617,7 @@ const initFullscreen = ({ root, state, events }) => {
111351
111617
  const exit = async () => {
111352
111618
  if (native) {
111353
111619
  // Never close another viewer's (or the host page's) fullscreen element.
111354
- if (document.fullscreenElement === root)
111620
+ if (document.fullscreenElement === container)
111355
111621
  await document.exitFullscreen();
111356
111622
  update();
111357
111623
  }
@@ -111362,7 +111628,7 @@ const initFullscreen = ({ root, state, events }) => {
111362
111628
  };
111363
111629
  const request = async () => {
111364
111630
  if (native) {
111365
- await root.requestFullscreen();
111631
+ await container.requestFullscreen();
111366
111632
  // A request may finish after destruction. Release only our own element.
111367
111633
  if (destroyed)
111368
111634
  await exit();
@@ -111392,8 +111658,9 @@ const initFullscreen = ({ root, state, events }) => {
111392
111658
  destroyed = true;
111393
111659
  document.removeEventListener('fullscreenchange', update);
111394
111660
  cancel.off();
111661
+ // the container outlives the viewer, so leave fullscreen explicitly
111395
111662
  void exit().catch(() => {
111396
- /* removing the root also leaves native fullscreen */
111663
+ /* browser rejected the exit */
111397
111664
  });
111398
111665
  state.isFullscreen = false;
111399
111666
  }
@@ -111487,7 +111754,7 @@ class ModeShortcuts {
111487
111754
  case 'g':
111488
111755
  state.gamingControls = !state.gamingControls;
111489
111756
  break;
111490
- // H the controls panel, Shift+H the info panel. Shift is read from the event, so
111757
+ // H the controls panel, Shift+H its global page. Shift is read from the event, so
111491
111758
  // caps lock does not swap them
111492
111759
  case 'h':
111493
111760
  case 'H':
@@ -112844,14 +113111,6 @@ const SVGNS = 'http://www.w3.org/2000/svg';
112844
113111
  const NUM_SAMPLES = 12;
112845
113112
  const BASE_OUTER_RADIUS = 0.2;
112846
113113
  const INNER_OUTER_RATIO = 0.17 / 0.2;
112847
- // Screen-space diameter (in CSS pixels) used for both hover and target
112848
- // rings when the scene isn't walk-sized. Walk-sized scenes render
112849
- // world-space (BASE_OUTER_RADIUS) so the ring orients to the surface and
112850
- // reads as a physical footprint; smaller scenes (or no collision) fall
112851
- // back to a fixed pixel size, which keeps the ring legible when 0.2 world
112852
- // units would eat too much of the scene. Selection happens in
112853
- // screenPixelsForRing(), keyed on state.walkAllowed.
112854
- const SCREEN_OUTER_PIXELS = 48;
112855
113114
  const BEZIER_K = 1 / 6;
112856
113115
  const NORMAL_SMOOTH_FACTOR = 0.25;
112857
113116
  const NORMAL_SNAP_ANGLE = Math.PI / 4;
@@ -112895,30 +113154,22 @@ const snapNormal = (nx, ny, nz, out) => {
112895
113154
  }
112896
113155
  return out.copy(best);
112897
113156
  };
113157
+ const PINPOINT_RING_RADIUS = 14;
113158
+ const PINPOINT_DOT_RADIUS = 3.4;
113159
+ const PINPOINT_DOT_HALO_RADIUS = 4.9;
113160
+ const PINPOINT_ENTER_MS = 300;
113161
+ const PINPOINT_EXIT_MS = 200;
113162
+ const PINPOINT_EASE_OUT = 'cubic-bezier(0.23, 1, 0.32, 1)';
113163
+ const PINPOINT_EASE_IN = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
113164
+ const prefersReducedMotion = () => typeof window !== 'undefined' && Boolean(window.matchMedia?.('(prefers-reduced-motion: reduce)').matches);
112898
113165
  const tmpV = new Vec3();
113166
+ const tmpView = new Vec3();
112899
113167
  const tmpScreen = new Vec3();
112900
113168
  const tangent = new Vec3();
112901
113169
  const bitangent = new Vec3();
112902
113170
  const worldPt = new Vec3();
112903
113171
  const up = new Vec3(0, 1, 0);
112904
113172
  const right = new Vec3(1, 0, 0);
112905
- // Compute the world-space radius such that a circle at `pos` projects to a
112906
- // ring of `pixelDiameter` on screen. Used by the no-collision sizing path
112907
- // (see screenPixelsForRing) to keep a constant on-screen diameter
112908
- // regardless of camera distance.
112909
- const worldRadiusForPixels = (camera, canvasHeight, pos, pixelDiameter) => {
112910
- const cam = camera.camera;
112911
- if (cam.projection === PROJECTION_ORTHOGRAPHIC) {
112912
- return (pixelDiameter * cam.orthoHeight) / canvasHeight;
112913
- }
112914
- const camPos = camera.getPosition();
112915
- const dx = pos.x - camPos.x;
112916
- const dy = pos.y - camPos.y;
112917
- const dz = pos.z - camPos.z;
112918
- const distance = Math.sqrt(dx * dx + dy * dy + dz * dz);
112919
- const halfFovTan = Math.tan((cam.fov * Math.PI) / 360);
112920
- return (pixelDiameter * distance * halfFovTan) / canvasHeight;
112921
- };
112922
113173
  const buildBezierRing = (sx, sy) => {
112923
113174
  const n = sx.length;
112924
113175
  let p = `M${sx[0].toFixed(1)},${sy[0].toFixed(1)}`;
@@ -112938,7 +113189,6 @@ const buildBezierRing = (sx, sy) => {
112938
113189
  class CursorRing {
112939
113190
  path;
112940
113191
  svg;
112941
- canvas;
112942
113192
  camera;
112943
113193
  smoothing;
112944
113194
  smoothNx = 0;
@@ -112949,9 +113199,8 @@ class CursorRing {
112949
113199
  outerY = new Float64Array(NUM_SAMPLES);
112950
113200
  innerX = new Float64Array(NUM_SAMPLES);
112951
113201
  innerY = new Float64Array(NUM_SAMPLES);
112952
- constructor(svg, canvas, camera, smoothing) {
113202
+ constructor(svg, camera, smoothing) {
112953
113203
  this.svg = svg;
112954
- this.canvas = canvas;
112955
113204
  this.camera = camera;
112956
113205
  this.smoothing = smoothing;
112957
113206
  this.path = document.createElementNS(SVGNS, 'path');
@@ -112986,9 +113235,7 @@ class CursorRing {
112986
113235
  outY[i] = tmpScreen.y;
112987
113236
  }
112988
113237
  }
112989
- // screenPixels: null → world-space ring (fixed world radius, shrinks
112990
- // with distance); number → constant on-screen diameter in CSS pixels.
112991
- render(pos, normal, screenPixels) {
113238
+ render(pos, normal) {
112992
113239
  snapNormal(normal.x, normal.y, normal.z, tmpV);
112993
113240
  let nx = tmpV.x;
112994
113241
  let ny = tmpV.y;
@@ -113012,9 +113259,7 @@ class CursorRing {
113012
113259
  this.smoothNz = nz;
113013
113260
  this.hasSmoothedNormal = true;
113014
113261
  }
113015
- const outerRadius = screenPixels !== null
113016
- ? worldRadiusForPixels(this.camera, this.canvas.clientHeight || 1, pos, screenPixels)
113017
- : BASE_OUTER_RADIUS;
113262
+ const outerRadius = BASE_OUTER_RADIUS;
113018
113263
  const innerRadius = outerRadius * INNER_OUTER_RATIO;
113019
113264
  this.projectCircle(pos.x, pos.y, pos.z, nx, ny, nz, outerRadius, this.outerX, this.outerY);
113020
113265
  this.projectCircle(pos.x, pos.y, pos.z, nx, ny, nz, innerRadius, this.innerX, this.innerY);
@@ -113027,23 +113272,175 @@ class CursorRing {
113027
113272
  this.hasSmoothedNormal = false;
113028
113273
  }
113029
113274
  }
113275
+ // Screen-space, radially symmetric focus/destination marker for orbit and fly modes.
113276
+ // Unlike walk mode's surface-projected footprint ring, this stays a fixed pixel size
113277
+ // so it neither dominates close-up geometry nor vanishes on distant fly targets.
113278
+ class CursorPinpoint {
113279
+ svg;
113280
+ camera;
113281
+ root;
113282
+ wave;
113283
+ dot;
113284
+ position = new Vec3();
113285
+ visible = false;
113286
+ exiting = false;
113287
+ dotAnim = null;
113288
+ waveAnim = null;
113289
+ exitTimer = null;
113290
+ constructor(svg, camera) {
113291
+ this.svg = svg;
113292
+ this.camera = camera;
113293
+ const root = document.createElementNS(SVGNS, 'g');
113294
+ root.classList.add('sse-pinpoint');
113295
+ root.style.display = 'none';
113296
+ const wave = document.createElementNS(SVGNS, 'g');
113297
+ wave.classList.add('sse-pinpointWave');
113298
+ const waveHalo = document.createElementNS(SVGNS, 'circle');
113299
+ waveHalo.classList.add('sse-pinpointHaloStroke');
113300
+ waveHalo.setAttribute('r', String(PINPOINT_RING_RADIUS));
113301
+ const waveStroke = document.createElementNS(SVGNS, 'circle');
113302
+ waveStroke.classList.add('sse-pinpointFgStroke');
113303
+ waveStroke.setAttribute('r', String(PINPOINT_RING_RADIUS));
113304
+ wave.append(waveHalo, waveStroke);
113305
+ const dot = document.createElementNS(SVGNS, 'g');
113306
+ dot.classList.add('sse-pinpointDot');
113307
+ const dotHalo = document.createElementNS(SVGNS, 'circle');
113308
+ dotHalo.classList.add('sse-pinpointHaloFill');
113309
+ dotHalo.setAttribute('r', String(PINPOINT_DOT_HALO_RADIUS));
113310
+ const dotCore = document.createElementNS(SVGNS, 'circle');
113311
+ dotCore.classList.add('sse-pinpointFgFill');
113312
+ dotCore.setAttribute('r', String(PINPOINT_DOT_RADIUS));
113313
+ dot.append(dotHalo, dotCore);
113314
+ root.append(wave, dot);
113315
+ svg.appendChild(root);
113316
+ this.root = root;
113317
+ this.wave = wave;
113318
+ this.dot = dot;
113319
+ }
113320
+ clearAnimations() {
113321
+ this.dotAnim?.cancel();
113322
+ this.dotAnim = null;
113323
+ this.waveAnim?.cancel();
113324
+ this.waveAnim = null;
113325
+ if (this.exitTimer !== null) {
113326
+ clearTimeout(this.exitTimer);
113327
+ this.exitTimer = null;
113328
+ }
113329
+ }
113330
+ show(pos, mode) {
113331
+ this.clearAnimations();
113332
+ this.position.copy(pos);
113333
+ this.visible = true;
113334
+ this.exiting = false;
113335
+ this.svg.style.display = '';
113336
+ this.root.style.display = '';
113337
+ // project before starting animations so the first painted frame sits at the target
113338
+ this.update();
113339
+ if (prefersReducedMotion() || typeof this.dot.animate !== 'function') {
113340
+ this.dot.style.opacity = '1';
113341
+ this.dot.style.transform = 'none';
113342
+ this.wave.style.opacity = '0';
113343
+ return;
113344
+ }
113345
+ this.dot.style.opacity = '';
113346
+ this.dot.style.transform = '';
113347
+ this.wave.style.opacity = '';
113348
+ this.dotAnim = this.dot.animate([
113349
+ { opacity: 0, transform: 'scale(0.84)' },
113350
+ { opacity: 1, transform: 'scale(1)' }
113351
+ ], {
113352
+ duration: Math.round(PINPOINT_ENTER_MS * 0.65),
113353
+ easing: PINPOINT_EASE_OUT,
113354
+ fill: 'forwards'
113355
+ });
113356
+ if (mode === 'fly') {
113357
+ this.waveAnim = this.wave.animate([
113358
+ { opacity: 0.9, transform: 'scale(0.62)', offset: 0 },
113359
+ { opacity: 0, transform: 'scale(1.44)', offset: 0.48 },
113360
+ { opacity: 0, transform: 'scale(1.44)', offset: 1 }
113361
+ ], {
113362
+ duration: Math.round(PINPOINT_ENTER_MS * 3.4),
113363
+ easing: PINPOINT_EASE_OUT,
113364
+ iterations: Infinity
113365
+ });
113366
+ }
113367
+ else {
113368
+ this.waveAnim = this.wave.animate([
113369
+ { opacity: 0.95, transform: 'scale(0.64)' },
113370
+ { opacity: 0, transform: 'scale(1.42)' }
113371
+ ], {
113372
+ duration: Math.round(PINPOINT_ENTER_MS * 1.25),
113373
+ easing: PINPOINT_EASE_OUT,
113374
+ fill: 'forwards'
113375
+ });
113376
+ }
113377
+ }
113378
+ update() {
113379
+ if (!this.visible) {
113380
+ return;
113381
+ }
113382
+ const cam = this.camera.camera;
113383
+ cam.viewMatrix.transformPoint(this.position, tmpView);
113384
+ if (tmpView.z >= 0) {
113385
+ this.root.style.visibility = 'hidden';
113386
+ return;
113387
+ }
113388
+ cam.worldToScreen(this.position, tmpScreen);
113389
+ this.root.style.visibility = 'visible';
113390
+ this.root.style.transform = `translate3d(${tmpScreen.x.toFixed(2)}px, ${tmpScreen.y.toFixed(2)}px, 0)`;
113391
+ }
113392
+ release() {
113393
+ if (!this.visible || this.exiting) {
113394
+ return;
113395
+ }
113396
+ if (prefersReducedMotion() || typeof this.dot.animate !== 'function') {
113397
+ this.hide();
113398
+ return;
113399
+ }
113400
+ this.exiting = true;
113401
+ this.waveAnim?.cancel();
113402
+ this.waveAnim = null;
113403
+ this.wave.style.opacity = '0';
113404
+ this.dotAnim?.cancel();
113405
+ this.dotAnim = this.dot.animate([
113406
+ { opacity: 1, transform: 'scale(1)' },
113407
+ { opacity: 0, transform: 'scale(0.84)' }
113408
+ ], {
113409
+ duration: PINPOINT_EXIT_MS,
113410
+ easing: PINPOINT_EASE_IN,
113411
+ fill: 'forwards'
113412
+ });
113413
+ this.exitTimer = setTimeout(() => {
113414
+ this.hide();
113415
+ }, PINPOINT_EXIT_MS);
113416
+ }
113417
+ hide() {
113418
+ this.clearAnimations();
113419
+ this.visible = false;
113420
+ this.exiting = false;
113421
+ this.root.style.display = 'none';
113422
+ }
113423
+ destroy() {
113424
+ this.clearAnimations();
113425
+ this.root.remove();
113426
+ }
113427
+ }
113030
113428
  class NavCursor {
113031
113429
  svg;
113032
113430
  captureMarker;
113033
113431
  hoverRing;
113034
113432
  targetRing;
113433
+ targetPinpoint;
113035
113434
  camera;
113036
113435
  // Settable after construction: the viewer reveals the scene before the collision data has
113037
- // downloaded, so this arrives late. Ring sizing reads `state.walkAllowed` live, so only the
113038
- // pick path needs updating here.
113436
+ // downloaded, so this arrives late.
113039
113437
  collision;
113040
113438
  canvas;
113041
- state;
113042
113439
  app;
113043
113440
  onPrerender;
113044
113441
  // True when the hover ring should track the pointer. Only walk mode
113045
113442
  // (with mouse navigation, not gaming controls) shows the hover ring;
113046
- // fly/orbit only show the target ring on click.
113443
+ // fly/orbit only show the target pinpoint on click.
113047
113444
  hoverActive = false;
113048
113445
  navigating = false;
113049
113446
  targetPos = null;
@@ -113059,9 +113456,9 @@ class NavCursor {
113059
113456
  this.camera = camera;
113060
113457
  this.collision = collision;
113061
113458
  this.canvas = app.graphicsDevice.canvas;
113062
- this.state = state;
113063
113459
  this.app = app;
113064
113460
  this.svg = document.createElementNS(SVGNS, 'svg');
113461
+ this.svg.classList.add('sse-navCursor');
113065
113462
  this.svg.style.cssText =
113066
113463
  'position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible';
113067
113464
  // in the scene layer, over the scene and beneath the ui, and first in it so the
@@ -113078,8 +113475,9 @@ class NavCursor {
113078
113475
  this.captureMarker.setAttribute('stroke-width', '2');
113079
113476
  this.captureMarker.style.display = 'none';
113080
113477
  this.svg.appendChild(this.captureMarker);
113081
- this.hoverRing = new CursorRing(this.svg, this.canvas, camera, true);
113082
- this.targetRing = new CursorRing(this.svg, this.canvas, camera, false);
113478
+ this.hoverRing = new CursorRing(this.svg, camera, true);
113479
+ this.targetRing = new CursorRing(this.svg, camera, false);
113480
+ this.targetPinpoint = new CursorPinpoint(this.svg, camera);
113083
113481
  this.svg.style.display = 'none';
113084
113482
  this.onPointerMove = (e) => {
113085
113483
  if (e.pointerType === 'touch' || e.buttons) {
@@ -113108,7 +113506,7 @@ class NavCursor {
113108
113506
  this.hoverRing.hide();
113109
113507
  if (this.targetMode && this.targetMode !== state.cameraMode) {
113110
113508
  this.navigating = false;
113111
- this.clearTarget();
113509
+ this.clearTarget(true);
113112
113510
  }
113113
113511
  };
113114
113512
  events.on('cameraMode:changed', updateActive);
@@ -113148,27 +113546,31 @@ class NavCursor {
113148
113546
  app.on('prerender', this.onPrerender);
113149
113547
  updateActive();
113150
113548
  }
113151
- // Ring sizing is per-scene: walk-sized scenes (collision present and
113152
- // bbox large enough — same predicate as walk mode) get world-space
113153
- // rings, which read as physical footprints on the surface with visible
113154
- // orientation. Smaller scenes or scenes without collision use a fixed
113155
- // screen-pixel ring — 0.2 world units would dominate a small scene,
113156
- // and the pick already falls back to splat depth without collision.
113157
- screenPixelsForRing() {
113158
- return this.state.walkAllowed ? null : SCREEN_OUTER_PIXELS;
113159
- }
113160
113549
  setTarget(pos, normal, mode) {
113161
113550
  this.targetPos = pos.clone();
113162
113551
  this.targetNormal = normal.clone();
113163
113552
  this.targetMode = mode;
113164
113553
  this.hoverRing.hide();
113165
- this.targetRing.hide();
113554
+ if (mode === 'walk') {
113555
+ this.targetPinpoint.hide();
113556
+ this.targetRing.hide();
113557
+ }
113558
+ else {
113559
+ this.targetRing.hide();
113560
+ this.targetPinpoint.show(pos, mode);
113561
+ }
113166
113562
  }
113167
- clearTarget() {
113563
+ clearTarget(immediate = false) {
113168
113564
  this.targetPos = null;
113169
113565
  this.targetNormal = null;
113170
113566
  this.targetMode = null;
113171
113567
  this.targetRing.hide();
113568
+ if (immediate) {
113569
+ this.targetPinpoint.hide();
113570
+ }
113571
+ else {
113572
+ this.targetPinpoint.release();
113573
+ }
113172
113574
  }
113173
113575
  pickCollision(offsetX, offsetY) {
113174
113576
  if (!this.collision) {
@@ -113201,24 +113603,34 @@ class NavCursor {
113201
113603
  this.hoverRing.hide();
113202
113604
  return;
113203
113605
  }
113204
- this.hoverRing.render(target.position, target.normal, this.screenPixelsForRing());
113606
+ this.hoverRing.render(target.position, target.normal);
113205
113607
  }
113206
113608
  updateTarget() {
113207
113609
  if (!this.targetPos || !this.targetNormal || !this.targetMode) {
113610
+ // keep projecting the pinpoint during its exit fade so it stays locked to 3D space
113611
+ this.targetPinpoint.update();
113208
113612
  return;
113209
113613
  }
113210
113614
  const camPos = this.camera.getPosition();
113211
113615
  const dist = camPos.distance(this.targetPos);
113212
- if (this.targetMode !== 'orbit' && dist < 2.0) {
113213
- this.targetRing.hide();
113616
+ if (this.targetMode === 'walk') {
113617
+ if (dist < 2.0) {
113618
+ this.targetRing.hide();
113619
+ return;
113620
+ }
113621
+ this.targetRing.render(this.targetPos, this.targetNormal);
113214
113622
  return;
113215
113623
  }
113216
- this.targetRing.render(this.targetPos, this.targetNormal, this.screenPixelsForRing());
113624
+ if (this.targetMode === 'fly' && dist < 2.0) {
113625
+ this.targetPinpoint.release();
113626
+ }
113627
+ this.targetPinpoint.update();
113217
113628
  }
113218
113629
  destroy() {
113219
113630
  this.app.off('prerender', this.onPrerender);
113220
113631
  this.canvas.removeEventListener('pointermove', this.onPointerMove);
113221
113632
  this.canvas.removeEventListener('pointerleave', this.onPointerLeave);
113633
+ this.targetPinpoint.destroy();
113222
113634
  this.svg.remove();
113223
113635
  }
113224
113636
  }
@@ -115363,7 +115775,8 @@ const resolveConfig = (options) => ({
115363
115775
  heatmap: options.heatmap ?? false,
115364
115776
  debug: options.debug ?? false,
115365
115777
  lang: options.lang,
115366
- exposeGlobals: options.exposeGlobals ?? false
115778
+ exposeGlobals: options.exposeGlobals ?? false,
115779
+ onInfo: options.onInfo
115367
115780
  });
115368
115781
  const createViewer = async (options) => {
115369
115782
  const { container } = options;
@@ -115440,6 +115853,7 @@ const createViewer = async (options) => {
115440
115853
  camera,
115441
115854
  renderer,
115442
115855
  root,
115856
+ container,
115443
115857
  localize,
115444
115858
  quality
115445
115859
  };