@realsee/dnalogel 2.0.5-alpha.4 → 2.0.5-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/index.cjs.js +14 -14
  2. package/dist/index.es.js +1044 -1042
  3. package/dist/index.js +1044 -1042
  4. package/dist/index.umd.js +15 -15
  5. package/docs/classes/CruisePluginController.html +14 -14
  6. package/docs/classes/Magnifier.html +4 -4
  7. package/docs/classes/ModelRoomLabelController.html +4 -4
  8. package/docs/classes/PaintBrush.html +3 -3
  9. package/docs/enums/CameraMovementEffect.html +2 -2
  10. package/docs/enums/DIRECTION.html +1 -1
  11. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  12. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  13. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  14. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  15. package/docs/enums/Rotation.html +2 -2
  16. package/docs/index.html +1 -1
  17. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  18. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  19. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  20. package/docs/interfaces/FloorplanBounding.html +4 -4
  21. package/docs/interfaces/FloorplanData.html +2 -2
  22. package/docs/interfaces/FloorplanEntrance.html +7 -7
  23. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  24. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  25. package/docs/interfaces/FloorplanFloorData.html +2 -2
  26. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  27. package/docs/interfaces/FloorplanObserver.html +2 -2
  28. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  29. package/docs/interfaces/FloorplanPosition.html +2 -2
  30. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  31. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  32. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  33. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  34. package/docs/interfaces/FloorplanServerData.html +2 -2
  35. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  36. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  37. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  38. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  39. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  40. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  41. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  42. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  43. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  44. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  45. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  46. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  47. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  48. package/docs/interfaces/LineJson.html +1 -1
  49. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  50. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  51. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  52. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  53. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  54. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  55. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  56. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  57. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  58. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  59. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  60. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  61. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  62. package/docs/interfaces/OpenParameter.html +2 -2
  63. package/docs/interfaces/PaintBrushAction.html +7 -7
  64. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  65. package/docs/interfaces/PaintBrushState.html +1 -1
  66. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  67. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  68. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  69. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  70. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  71. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  72. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  73. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  74. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  75. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  76. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  77. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  78. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  79. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  80. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  81. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  82. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  83. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  85. package/docs/interfaces/Point.html +1 -1
  86. package/docs/interfaces/PointJson.html +1 -1
  87. package/docs/interfaces/Room.html +1 -1
  88. package/docs/interfaces/RoomInfo.html +1 -1
  89. package/docs/interfaces/RoomLabel.html +7 -7
  90. package/docs/interfaces/RoomRules.html +1 -1
  91. package/docs/interfaces/Rooms.html +1 -1
  92. package/docs/modules.html +17 -17
  93. package/libs/ModelTVVideoPlugin/Plugin.js +84 -82
  94. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -456,17 +456,17 @@ class ma extends da {
456
456
  let g = [];
457
457
  const v = this;
458
458
  v.tween = ha({ step: 0 }, { step: l.length - 1 }, h).onUpdate(({ step: b }) => {
459
- var P;
459
+ var I;
460
460
  if (v.tweening = !0, !v.ready)
461
- return a.clearRect(0, 0, v.canvas[f].width, v.canvas[f].height), (P = v.tween) == null ? void 0 : P.stop();
461
+ return a.clearRect(0, 0, v.canvas[f].width, v.canvas[f].height), (I = v.tween) == null ? void 0 : I.stop();
462
462
  const y = Math.floor(b);
463
- if (!g.find((E) => E === y)) {
463
+ if (!g.find((P) => P === y)) {
464
464
  if (g.push(y), console.log("__debug__", l, l[y], y), m.push(di(l[y], v.clientWidth, v.clientHeight)), m.length < 3)
465
465
  return;
466
- const { control: E, end: z } = yn(m);
467
- if (!E || !z)
466
+ const { control: P, end: L } = yn(m);
467
+ if (!P || !L)
468
468
  return;
469
- a.quadraticCurveTo(E.x, E.y, z.x, z.y), a.stroke();
469
+ a.quadraticCurveTo(P.x, P.y, L.x, L.y), a.stroke();
470
470
  }
471
471
  }).onComplete((b) => {
472
472
  v.tween = void 0, v.tweening = !1, g = [], m = [], s && s(), r();
@@ -549,85 +549,85 @@ const Ef = (i, t) => {
549
549
  }, ...t == null ? void 0 : t.config }, r = new j.Scene(), a = new Jr(60);
550
550
  let l = new j.Object3D(), c, h;
551
551
  {
552
- const I = new j.DirectionalLight(16777215, 0.5);
553
- I.position.copy(new j.Vector3(1, 1, 1)), r.add(I);
552
+ const E = new j.DirectionalLight(16777215, 0.5);
553
+ E.position.copy(new j.Vector3(1, 1, 1)), r.add(E);
554
554
  }
555
555
  {
556
- const I = new j.DirectionalLight(16777215, 0.3);
557
- r.add(I);
556
+ const E = new j.DirectionalLight(16777215, 0.3);
557
+ r.add(E);
558
558
  }
559
559
  {
560
- const I = new j.AmbientLight(16777215, 0.3);
561
- r.add(I);
560
+ const E = new j.AmbientLight(16777215, 0.3);
561
+ r.add(E);
562
562
  }
563
563
  r.add(l);
564
564
  const f = () => {
565
565
  if (!!i.renderer)
566
566
  return n || (n = new j.WebGLRenderer({ antialias: !1, alpha: !0 }), n.setPixelRatio(i.renderer.getPixelRatio()), n.outputEncoding = j.sRGBEncoding, n.setClearColor(1579548, 0), n.autoClear = !0), n;
567
567
  }, u = () => {
568
- l.traverse((I) => {
569
- I instanceof j.Mesh && [].concat(I.material).forEach((C) => C.dispose());
570
- }), r.remove(l), l = new j.Object3D(), r.add(l), P();
568
+ l.traverse((E) => {
569
+ E instanceof j.Mesh && [].concat(E.material).forEach((C) => C.dispose());
570
+ }), r.remove(l), l = new j.Object3D(), r.add(l), I();
571
571
  }, m = () => {
572
572
  c = b(i.model, a.fov, a.aspect), h = i.model.bounding.getCenter(new j.Vector3());
573
- function I(C) {
574
- const M = C.clone();
575
- return M.uniforms.modelAlpha.value = 1, M.uniforms.map.value && (M.uniforms.map.value.needsUpdate = !0), M;
573
+ function E(C) {
574
+ const z = C.clone();
575
+ return z.uniforms.modelAlpha.value = 1, z.uniforms.map.value && (z.uniforms.map.value.needsUpdate = !0), z;
576
576
  }
577
577
  function T(C) {
578
578
  if (C instanceof j.Mesh) {
579
- const M = C.geometry, N = Array.isArray(C.material) ? C.material.map(I) : I(C.material);
580
- return new j.Mesh(M, N);
579
+ const z = C.geometry, R = Array.isArray(C.material) ? C.material.map(E) : E(C.material);
580
+ return new j.Mesh(z, R);
581
581
  } else if (C instanceof j.Group) {
582
- const M = new j.Group();
583
- return C.children.forEach((N) => M.add(T(N))), M;
582
+ const z = new j.Group();
583
+ return C.children.forEach((R) => z.add(T(R))), z;
584
584
  } else {
585
- const M = new j.Object3D();
586
- return C.children.forEach((N) => M.add(T(N))), M;
585
+ const z = new j.Object3D();
586
+ return C.children.forEach((R) => z.add(T(R))), z;
587
587
  }
588
588
  }
589
- r.remove(l), l = T(i.model), r.add(l), P();
590
- }, g = (I, T = {}) => {
589
+ r.remove(l), l = T(i.model), r.add(l), I();
590
+ }, g = (E, T = {}) => {
591
591
  const C = f();
592
592
  if (!C)
593
593
  return;
594
- I.appendChild(C.domElement), v(T);
595
- const M = window.getComputedStyle(I).position;
596
- M !== "relative" && M !== "absolute" && M !== "fixed" && M !== "sticky" && (I.style.position = "relative");
597
- }, v = (I = {}) => {
594
+ E.appendChild(C.domElement), v(T);
595
+ const z = window.getComputedStyle(E).position;
596
+ z !== "relative" && z !== "absolute" && z !== "fixed" && z !== "sticky" && (E.style.position = "relative");
597
+ }, v = (E = {}) => {
598
598
  if (!n)
599
599
  return;
600
600
  const C = n.domElement.parentNode;
601
601
  if (C != null && C.nodeName) {
602
- const { width: M = C.offsetWidth, height: N = C.offsetHeight } = I;
603
- n.setSize(M, N), a.aspect = M / N, a.updateProjectionMatrix();
602
+ const { width: z = C.offsetWidth, height: R = C.offsetHeight } = E;
603
+ n.setSize(z, R), a.aspect = z / R, a.updateProjectionMatrix();
604
604
  }
605
- P();
605
+ I();
606
606
  };
607
- function b(I, T, C) {
608
- const M = I.bounding, N = Math.pow(
609
- Math.pow(M.max.x - M.min.x + 1, 2) + Math.pow(M.max.y - M.min.y + 1, 2) + Math.pow(M.max.z - M.min.z + 1, 2),
607
+ function b(E, T, C) {
608
+ const z = E.bounding, R = Math.pow(
609
+ Math.pow(z.max.x - z.min.x + 1, 2) + Math.pow(z.max.y - z.min.y + 1, 2) + Math.pow(z.max.z - z.min.z + 1, 2),
610
610
  1 / 2
611
611
  );
612
- let B = N / 2 / Math.tan(Math.PI * T / 360);
613
- return C < 1 && (B = B / C), isNaN(B) ? N : B;
612
+ let H = R / 2 / Math.tan(Math.PI * T / 360);
613
+ return C < 1 && (H = H / C), isNaN(H) ? R : H;
614
614
  }
615
- function y(I) {
616
- return i.work.observers[I].standingPosition.clone();
615
+ function y(E) {
616
+ return i.work.observers[E].standingPosition.clone();
617
617
  }
618
- const P = () => {
618
+ const I = () => {
619
619
  if (!c || !h)
620
620
  return;
621
- const I = i.getPose();
622
- I.fov = a.fov, I.offset = h, I.distance = c, typeof s.lockedLatitude == "number" && (I.latitude = s.lockedLatitude), typeof s.lockedLongitude == "number" && (I.longitude = s.lockedLongitude), typeof s.lockedPanoIndex == "number" && (I.offset = y(s.lockedPanoIndex)), s.lookAtCurrentCamera && (I.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), a.setFromPose(I), e = !0;
623
- }, E = () => {
621
+ const E = i.getPose();
622
+ E.fov = a.fov, E.offset = h, E.distance = c, typeof s.lockedLatitude == "number" && (E.latitude = s.lockedLatitude), typeof s.lockedLongitude == "number" && (E.longitude = s.lockedLongitude), typeof s.lockedPanoIndex == "number" && (E.offset = y(s.lockedPanoIndex)), s.lookAtCurrentCamera && (E.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), a.setFromPose(E), e = !0;
623
+ }, P = () => {
624
624
  e !== !0 || !n || !n.domElement.parentNode || n.domElement.parentNode.offsetWidth === 0 || (n.render(r, a), e = !1);
625
- }, z = () => {
625
+ }, L = () => {
626
626
  n && n.dispose(), n = null;
627
- }, D = (I) => {
628
- Object.assign(s, I), P();
627
+ }, D = (E) => {
628
+ Object.assign(s, E), I();
629
629
  };
630
- return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", P), i.on("dispose", z), i.on("renderFrame", E), i.on("cameraPositionUpdate", P), { appendTo: g, refresh: v, changeConfigs: D };
630
+ return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", I), i.on("dispose", L), i.on("renderFrame", P), i.on("cameraPositionUpdate", I), { appendTo: g, refresh: v, changeConfigs: D };
631
631
  };
632
632
  function pa(i) {
633
633
  return typeof Symbol > "u" ? `$Symbol<${i}>$` : Symbol(i);
@@ -694,10 +694,10 @@ class xa extends sa {
694
694
  if (r === o)
695
695
  e.style.width = `${c}px`, e.style.height = `${h}px`, u = e;
696
696
  else {
697
- const E = document.createElement("div");
698
- E.style.width = `${c}px`, E.style.height = `${h}px`, E.style.pointerEvents = "none";
699
- const z = o / r;
700
- e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${z * c}px`, e.style.height = `${z * h}px`, E.appendChild(e), u = E;
697
+ const P = document.createElement("div");
698
+ P.style.width = `${c}px`, P.style.height = `${h}px`, P.style.pointerEvents = "none";
699
+ const L = o / r;
700
+ e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${L * c}px`, e.style.height = `${L * h}px`, P.appendChild(e), u = P;
701
701
  }
702
702
  super(u);
703
703
  d(this, "version", Rs);
@@ -712,14 +712,14 @@ class xa extends sa {
712
712
  if (this.scale.set(r, r, r), this.cornerPoints = n, this.ratio = o, this.container = e, r === o)
713
713
  this.width = a, this.height = l, this.domWidthPx = c, this.domHeightPx = h, this.centerPosition = f;
714
714
  else {
715
- const E = o / r;
716
- this.width = E * a, this.height = E * l, this.domWidthPx = E * c, this.domHeightPx = E * h, this.centerPosition = new $().subVectors(f.clone(), n[0].clone()).multiplyScalar(E).add(n[0]);
715
+ const P = o / r;
716
+ this.width = P * a, this.height = P * l, this.domWidthPx = P * c, this.domHeightPx = P * h, this.centerPosition = new $().subVectors(f.clone(), n[0].clone()).multiplyScalar(P).add(n[0]);
717
717
  }
718
718
  e.classList.add(`${wa}__container`);
719
719
  const m = new $().subVectors(n[1], n[0]), g = new $().subVectors(n[3], n[0]), v = new $().crossVectors(m, g).normalize();
720
720
  this.lookAt(v);
721
- const b = this.up.clone().applyQuaternion(this.quaternion), y = g.clone(), P = new $().crossVectors(b, y).normalize();
722
- this.rotateOnWorldAxis(P, b.angleTo(y)), this.position.copy(f);
721
+ const b = this.up.clone().applyQuaternion(this.quaternion), y = g.clone(), I = new $().crossVectors(b, y).normalize();
722
+ this.rotateOnWorldAxis(I, b.angleTo(y)), this.position.copy(f);
723
723
  }
724
724
  }
725
725
  const Ca = "v2.0.1", Bs = "CSS3DRenderer", Nn = `${Bs}@${Ca}`, fo = (i) => `${Nn}--${i}`, pe = {};
@@ -740,7 +740,7 @@ class La {
740
740
  if (this.state.disposed)
741
741
  return this.disposedErrorLog();
742
742
  const o = (() => {
743
- const k = {
743
+ const S = {
744
744
  ratio: 216e-5,
745
745
  devicePixelRatio: 1,
746
746
  mode: "front",
@@ -748,7 +748,7 @@ class La {
748
748
  container: document.createElement("div"),
749
749
  pointerEvents: "none"
750
750
  };
751
- return Object.assign(k, n);
751
+ return Object.assign(S, n);
752
752
  })(), s = e.map(Pa);
753
753
  if ((s == null ? void 0 : s.length) < 4)
754
754
  return console.error(`${Nn}: requires 4 point but params may have fewer`);
@@ -766,8 +766,8 @@ class La {
766
766
  css3DScene: new j.Scene(),
767
767
  css3DRenderer: new lo()
768
768
  }), v && (pe.frontModeStore = { css3DScene: new j.Scene(), css3DRenderer: new lo() });
769
- const y = l === "front" ? pe.frontModeStore : pe.behindModeStore, { css3DScene: P, css3DRenderer: E } = y, z = (() => {
770
- const k = () => {
769
+ const y = l === "front" ? pe.frontModeStore : pe.behindModeStore, { css3DScene: I, css3DRenderer: P } = y, L = (() => {
770
+ const S = () => {
771
771
  l === "front" ? this.store.frontModeCSS3DObjects[m.uuid] = {
772
772
  visible: !0,
773
773
  enabled: !0,
@@ -780,39 +780,39 @@ class La {
780
780
  opacityMesh: g,
781
781
  mode: "behind",
782
782
  scene: o.scene
783
- }, P.add(m), l === "behind" && g && (o.scene.add(g), u.push(() => g && o.scene.remove(g)));
783
+ }, I.add(m), l === "behind" && g && (o.scene.add(g), u.push(() => g && o.scene.remove(g)));
784
784
  };
785
785
  if (v || b) {
786
- E.domElement.style.position = "absolute", E.domElement.style.top = "0", E.domElement.style.userSelect = "none", E.domElement.style.pointerEvents = "none", E.domElement.classList.add(fo(l));
787
- const J = () => {
788
- const R = requestAnimationFrame(J);
789
- y.requestAnimationFrameId = R, E.render(P, t);
786
+ P.domElement.style.position = "absolute", P.domElement.style.top = "0", P.domElement.style.userSelect = "none", P.domElement.style.pointerEvents = "none", P.domElement.classList.add(fo(l));
787
+ const O = () => {
788
+ const B = requestAnimationFrame(O);
789
+ y.requestAnimationFrameId = B, P.render(I, t);
790
790
  };
791
791
  return () => {
792
- k(), J();
792
+ S(), O();
793
793
  };
794
794
  }
795
- return () => k();
795
+ return () => S();
796
796
  })(), D = l === "front" ? pe.frontModeContainer : pe.behindModeContainer;
797
797
  if (D) {
798
798
  this.appendToElement(D, l);
799
- const k = l === "front" ? pe.frontModeStore : pe.behindModeStore;
800
- k && (k.appendedToPage = !0);
799
+ const S = l === "front" ? pe.frontModeStore : pe.behindModeStore;
800
+ S && (S.appendedToPage = !0);
801
801
  }
802
- const I = (k) => this.setVisibleById(m.uuid, k), T = (k) => this.setEnabledById(m.uuid, k), C = () => I(!0), M = () => I(!1), N = () => T(!0), B = () => T(!1), K = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((k) => k == null ? void 0 : k()), P.remove(m), P.children.length === 0 && (typeof y.requestAnimationFrameId == "number" && cancelAnimationFrame(y.requestAnimationFrameId), E.domElement.remove(), l === "front" && (pe.frontModeStore = void 0), l === "behind" && (pe.behindModeStore = void 0), pe.resizeObserver = void 0), !0);
803
- return this.store.disposers.push(K), c && z(), {
802
+ const E = (S) => this.setVisibleById(m.uuid, S), T = (S) => this.setEnabledById(m.uuid, S), C = () => E(!0), z = () => E(!1), R = () => T(!0), H = () => T(!1), _ = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((S) => S == null ? void 0 : S()), I.remove(m), I.children.length === 0 && (typeof y.requestAnimationFrameId == "number" && cancelAnimationFrame(y.requestAnimationFrameId), P.domElement.remove(), l === "front" && (pe.frontModeStore = void 0), l === "behind" && (pe.behindModeStore = void 0), pe.resizeObserver = void 0), !0);
803
+ return this.store.disposers.push(_), c && L(), {
804
804
  id: m.uuid,
805
805
  container: h,
806
- dispose: K,
806
+ dispose: _,
807
807
  css3DObject: m,
808
- render: c ? void 0 : z,
808
+ render: c ? void 0 : L,
809
809
  show: C,
810
- hide: M,
811
- setVisible: I,
812
- disable: B,
813
- enable: N,
810
+ hide: z,
811
+ setVisible: E,
812
+ disable: H,
813
+ enable: R,
814
814
  setEnabled: T,
815
- appendToElement: (k) => this.appendToElement(k, l)
815
+ appendToElement: (S) => this.appendToElement(S, l)
816
816
  };
817
817
  });
818
818
  d(this, "setVisibleById", (t, e) => {
@@ -1038,11 +1038,11 @@ const If = (i) => {
1038
1038
  };
1039
1039
  return t.disposers.push(y), { clear: y, pointAxesHelperMesh: b };
1040
1040
  }, s = (h, f = 0) => {
1041
- var y, P;
1041
+ var y, I;
1042
1042
  const u = (y = i == null ? void 0 : i.camera) == null ? void 0 : y.position;
1043
1043
  if (!u)
1044
1044
  return !1;
1045
- const m = h.distanceTo(u), g = h.sub(u).normalize(), v = new Ct(u, g), b = (P = i.model.intersectRaycaster(v)) == null ? void 0 : P[0];
1045
+ const m = h.distanceTo(u), g = h.sub(u).normalize(), v = new Ct(u, g), b = (I = i.model.intersectRaycaster(v)) == null ? void 0 : I[0];
1046
1046
  return !(b && b.distance + f < m);
1047
1047
  }, r = () => t.intersection, a = () => {
1048
1048
  var h, f;
@@ -1105,13 +1105,13 @@ function Ma(i) {
1105
1105
  }
1106
1106
  };
1107
1107
  }
1108
- function G(i, t) {
1108
+ function X(i, t) {
1109
1109
  i.appendChild(t);
1110
1110
  }
1111
1111
  function ge(i, t, e) {
1112
1112
  const n = Ri(i);
1113
1113
  if (!n.getElementById(t)) {
1114
- const o = F("style");
1114
+ const o = G("style");
1115
1115
  o.id = t, o.textContent = e, Xs(n, o);
1116
1116
  }
1117
1117
  }
@@ -1122,23 +1122,23 @@ function Ri(i) {
1122
1122
  return t && t.host ? t : i.ownerDocument;
1123
1123
  }
1124
1124
  function Sa(i) {
1125
- const t = F("style");
1125
+ const t = G("style");
1126
1126
  return Xs(Ri(i), t), t.sheet;
1127
1127
  }
1128
1128
  function Xs(i, t) {
1129
- return G(i.head || i, t), t.sheet;
1129
+ return X(i.head || i, t), t.sheet;
1130
1130
  }
1131
- function W(i, t, e) {
1131
+ function Y(i, t, e) {
1132
1132
  i.insertBefore(t, e || null);
1133
1133
  }
1134
- function X(i) {
1134
+ function Q(i) {
1135
1135
  i.parentNode.removeChild(i);
1136
1136
  }
1137
1137
  function Gt(i, t) {
1138
1138
  for (let e = 0; e < i.length; e += 1)
1139
1139
  i[e] && i[e].d(t);
1140
1140
  }
1141
- function F(i) {
1141
+ function G(i) {
1142
1142
  return document.createElement(i);
1143
1143
  }
1144
1144
  function Te(i) {
@@ -1165,7 +1165,7 @@ function ja(i) {
1165
1165
  function dt(i, t) {
1166
1166
  t = "" + t, i.wholeText !== t && (i.data = t);
1167
1167
  }
1168
- function S(i, t, e, n) {
1168
+ function M(i, t, e, n) {
1169
1169
  e === null ? i.style.removeProperty(t) : i.style.setProperty(t, e, n ? "important" : "");
1170
1170
  }
1171
1171
  let In;
@@ -1182,7 +1182,7 @@ function Oa() {
1182
1182
  }
1183
1183
  function Xt(i, t) {
1184
1184
  getComputedStyle(i).position === "static" && (i.style.position = "relative");
1185
- const n = F("iframe");
1185
+ const n = G("iframe");
1186
1186
  n.setAttribute("style", "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
1187
1187
  const o = Oa();
1188
1188
  let s;
@@ -1190,8 +1190,8 @@ function Xt(i, t) {
1190
1190
  r.source === n.contentWindow && t();
1191
1191
  })) : (n.src = "about:blank", n.onload = () => {
1192
1192
  s = Ke(n.contentWindow, "resize", t);
1193
- }), G(i, n), () => {
1194
- (o || s && n.contentWindow) && s(), X(n);
1193
+ }), X(i, n), () => {
1194
+ (o || s && n.contentWindow) && s(), Q(n);
1195
1195
  };
1196
1196
  }
1197
1197
  function Me(i, t, e) {
@@ -1209,20 +1209,20 @@ class Ei {
1209
1209
  this.h(t);
1210
1210
  }
1211
1211
  m(t, e, n = null) {
1212
- this.e || (this.is_svg ? this.e = Te(e.nodeName) : this.e = F(e.nodeName), this.t = e, this.c(t)), this.i(n);
1212
+ this.e || (this.is_svg ? this.e = Te(e.nodeName) : this.e = G(e.nodeName), this.t = e, this.c(t)), this.i(n);
1213
1213
  }
1214
1214
  h(t) {
1215
1215
  this.e.innerHTML = t, this.n = Array.from(this.e.childNodes);
1216
1216
  }
1217
1217
  i(t) {
1218
1218
  for (let e = 0; e < this.n.length; e += 1)
1219
- W(this.t, this.n[e], t);
1219
+ Y(this.t, this.n[e], t);
1220
1220
  }
1221
1221
  p(t) {
1222
1222
  this.d(), this.h(t), this.i(this.a);
1223
1223
  }
1224
1224
  d() {
1225
- this.n.forEach(X);
1225
+ this.n.forEach(Q);
1226
1226
  }
1227
1227
  }
1228
1228
  const Gn = /* @__PURE__ */ new Map();
@@ -1262,7 +1262,7 @@ function Fa() {
1262
1262
  Ni(() => {
1263
1263
  Xn || (Gn.forEach((i) => {
1264
1264
  const { ownerNode: t } = i.stylesheet;
1265
- t && X(t);
1265
+ t && Q(t);
1266
1266
  }), Gn.clear());
1267
1267
  });
1268
1268
  }
@@ -1344,7 +1344,7 @@ function Ee() {
1344
1344
  function Ie() {
1345
1345
  Et.r || Ft(Et.c), Et = Et.p;
1346
1346
  }
1347
- function H(i, t) {
1347
+ function F(i, t) {
1348
1348
  i && i.i && (Bn.delete(i), i.i(t));
1349
1349
  }
1350
1350
  function q(i, t, e, n) {
@@ -1367,13 +1367,13 @@ function Ja(i, t, e) {
1367
1367
  const { delay: f = 0, duration: u = 300, easing: m = ji, tick: g = ne, css: v } = n || Za;
1368
1368
  v && (s = Ha(i, 0, 1, u, f, m, v, a++)), g(0, 1);
1369
1369
  const b = za() + f, y = b + u;
1370
- r && r.abort(), o = !0, _e(() => Ao(i, !0, "start")), r = Ma((P) => {
1370
+ r && r.abort(), o = !0, _e(() => Ao(i, !0, "start")), r = Ma((I) => {
1371
1371
  if (o) {
1372
- if (P >= y)
1372
+ if (I >= y)
1373
1373
  return g(1, 0), Ao(i, !0, "end"), l(), o = !1;
1374
- if (P >= b) {
1375
- const E = m((P - b) / u);
1376
- g(E, 1 - E);
1374
+ if (I >= b) {
1375
+ const P = m((I - b) / u);
1376
+ g(P, 1 - P);
1377
1377
  }
1378
1378
  }
1379
1379
  return o;
@@ -1406,23 +1406,23 @@ function yt(i, t, e, n, o, s, r, a, l, c, h, f) {
1406
1406
  const v = {};
1407
1407
  for (; g--; )
1408
1408
  v[i[g].key] = g;
1409
- const b = [], y = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
1409
+ const b = [], y = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
1410
1410
  for (g = m; g--; ) {
1411
- const I = f(o, s, g), T = e(I);
1411
+ const E = f(o, s, g), T = e(E);
1412
1412
  let C = r.get(T);
1413
- C ? n && C.p(I, t) : (C = c(T, I), C.c()), y.set(T, b[g] = C), T in v && P.set(T, Math.abs(g - v[T]));
1413
+ C ? n && C.p(E, t) : (C = c(T, E), C.c()), y.set(T, b[g] = C), T in v && I.set(T, Math.abs(g - v[T]));
1414
1414
  }
1415
- const E = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Set();
1416
- function D(I) {
1417
- H(I, 1), I.m(a, h), r.set(I.key, I), h = I.first, m--;
1415
+ const P = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
1416
+ function D(E) {
1417
+ F(E, 1), E.m(a, h), r.set(E.key, E), h = E.first, m--;
1418
1418
  }
1419
1419
  for (; u && m; ) {
1420
- const I = b[m - 1], T = i[u - 1], C = I.key, M = T.key;
1421
- I === T ? (h = I.first, u--, m--) : y.has(M) ? !r.has(C) || E.has(C) ? D(I) : z.has(M) ? u-- : P.get(C) > P.get(M) ? (z.add(C), D(I)) : (E.add(M), u--) : (l(T, r), u--);
1420
+ const E = b[m - 1], T = i[u - 1], C = E.key, z = T.key;
1421
+ E === T ? (h = E.first, u--, m--) : y.has(z) ? !r.has(C) || P.has(C) ? D(E) : L.has(z) ? u-- : I.get(C) > I.get(z) ? (L.add(C), D(E)) : (P.add(z), u--) : (l(T, r), u--);
1422
1422
  }
1423
1423
  for (; u--; ) {
1424
- const I = i[u];
1425
- y.has(I.key) || l(I, r);
1424
+ const E = i[u];
1425
+ y.has(E.key) || l(E, r);
1426
1426
  }
1427
1427
  for (; m; )
1428
1428
  D(b[m - 1]);
@@ -1493,10 +1493,10 @@ function ue(i, t, e, n, o, s, r, a = [-1]) {
1493
1493
  }) : [], c.update(), h = !0, Ft(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
1494
1494
  if (t.hydrate) {
1495
1495
  const f = ja(t.target);
1496
- c.fragment && c.fragment.l(f), f.forEach(X);
1496
+ c.fragment && c.fragment.l(f), f.forEach(Q);
1497
1497
  } else
1498
1498
  c.fragment && c.fragment.c();
1499
- t.intro && H(i.$$.fragment), ve(i, t.target, t.anchor, t.customElement), Ws();
1499
+ t.intro && F(i.$$.fragment), ve(i, t.target, t.anchor, t.customElement), Ws();
1500
1500
  }
1501
1501
  on(l);
1502
1502
  }
@@ -1525,18 +1525,18 @@ function _a(i) {
1525
1525
  let t, e, n = i[0].name + "", o, s, r, a, l;
1526
1526
  return {
1527
1527
  c() {
1528
- t = F("div"), e = F("span"), o = qe(n), s = fe(), r = F("div"), x(e, "class", "room-label-item__text svelte-877671"), S(e, "background-image", "url(" + qa + ")"), Me(e, "wide", i[0].name.length > 3), x(r, "class", "room-label-item__bar svelte-877671"), x(t, "class", "room-label-item svelte-877671"), S(t, "z-index", i[0].zIndex), S(t, "transform", i[0].transform), S(t, "opacity", i[0].visible ? 1 : 0);
1528
+ t = G("div"), e = G("span"), o = qe(n), s = fe(), r = G("div"), x(e, "class", "room-label-item__text svelte-877671"), M(e, "background-image", "url(" + qa + ")"), Me(e, "wide", i[0].name.length > 3), x(r, "class", "room-label-item__bar svelte-877671"), x(t, "class", "room-label-item svelte-877671"), M(t, "z-index", i[0].zIndex), M(t, "transform", i[0].transform), M(t, "opacity", i[0].visible ? 1 : 0);
1529
1529
  },
1530
1530
  m(c, h) {
1531
- W(c, t, h), G(t, e), G(e, o), G(t, s), G(t, r), a || (l = Ke(e, "click", i[1]), a = !0);
1531
+ Y(c, t, h), X(t, e), X(e, o), X(t, s), X(t, r), a || (l = Ke(e, "click", i[1]), a = !0);
1532
1532
  },
1533
1533
  p(c, [h]) {
1534
- h & 1 && n !== (n = c[0].name + "") && dt(o, n), h & 1 && Me(e, "wide", c[0].name.length > 3), h & 1 && S(t, "z-index", c[0].zIndex), h & 1 && S(t, "transform", c[0].transform), h & 1 && S(t, "opacity", c[0].visible ? 1 : 0);
1534
+ h & 1 && n !== (n = c[0].name + "") && dt(o, n), h & 1 && Me(e, "wide", c[0].name.length > 3), h & 1 && M(t, "z-index", c[0].zIndex), h & 1 && M(t, "transform", c[0].transform), h & 1 && M(t, "opacity", c[0].visible ? 1 : 0);
1535
1535
  },
1536
1536
  i: ne,
1537
1537
  o: ne,
1538
1538
  d(c) {
1539
- c && X(t), a = !1, l();
1539
+ c && Q(t), a = !1, l();
1540
1540
  }
1541
1541
  };
1542
1542
  }
@@ -1580,7 +1580,7 @@ function Po(i, t) {
1580
1580
  e = Xe(), ye(n.$$.fragment), this.first = e;
1581
1581
  },
1582
1582
  m(s, r) {
1583
- W(s, e, r), ve(n, s, r), o = !0;
1583
+ Y(s, e, r), ve(n, s, r), o = !0;
1584
1584
  },
1585
1585
  p(s, r) {
1586
1586
  t = s;
@@ -1588,13 +1588,13 @@ function Po(i, t) {
1588
1588
  r & 1 && (a.roomLabel = t[13]), r & 2 && (a.five = t[1]), n.$set(a);
1589
1589
  },
1590
1590
  i(s) {
1591
- o || (H(n.$$.fragment, s), o = !0);
1591
+ o || (F(n.$$.fragment, s), o = !0);
1592
1592
  },
1593
1593
  o(s) {
1594
1594
  q(n.$$.fragment, s), o = !1;
1595
1595
  },
1596
1596
  d(s) {
1597
- s && X(e), be(n, s);
1597
+ s && Q(e), be(n, s);
1598
1598
  }
1599
1599
  };
1600
1600
  }
@@ -1607,13 +1607,13 @@ function il(i) {
1607
1607
  }
1608
1608
  return {
1609
1609
  c() {
1610
- t = F("div");
1610
+ t = G("div");
1611
1611
  for (let l = 0; l < e.length; l += 1)
1612
1612
  e[l].c();
1613
1613
  x(t, "class", "room-labels-container svelte-9eg4zi"), _e(() => i[6].call(t));
1614
1614
  },
1615
1615
  m(l, c) {
1616
- W(l, t, c);
1616
+ Y(l, t, c);
1617
1617
  for (let h = 0; h < e.length; h += 1)
1618
1618
  e[h].m(t, null);
1619
1619
  o = Xt(t, i[6].bind(t)), s = !0;
@@ -1624,7 +1624,7 @@ function il(i) {
1624
1624
  i(l) {
1625
1625
  if (!s) {
1626
1626
  for (let c = 0; c < r.length; c += 1)
1627
- H(e[c]);
1627
+ F(e[c]);
1628
1628
  s = !0;
1629
1629
  }
1630
1630
  },
@@ -1634,7 +1634,7 @@ function il(i) {
1634
1634
  s = !1;
1635
1635
  },
1636
1636
  d(l) {
1637
- l && X(t);
1637
+ l && Q(t);
1638
1638
  for (let c = 0; c < e.length; c += 1)
1639
1639
  e[c].d();
1640
1640
  o();
@@ -1648,27 +1648,27 @@ function ol(i, t, e) {
1648
1648
  function h(b) {
1649
1649
  if (!(c === null || b.floorIndex === c))
1650
1650
  return !1;
1651
- const P = new Ct(), E = s.camera.position.clone(), z = new $(b.position.x, b.position.y, b.position.z), D = z.distanceTo(E);
1652
- P.set(E.clone(), z.clone().sub(E).normalize());
1653
- const [I] = s.model.intersectRaycaster(P);
1654
- return !(I && I.distance + 1 < D);
1651
+ const I = new Ct(), P = s.camera.position.clone(), L = new $(b.position.x, b.position.y, b.position.z), D = L.distanceTo(P);
1652
+ I.set(P.clone(), L.clone().sub(P).normalize());
1653
+ const [E] = s.model.intersectRaycaster(I);
1654
+ return !(E && E.distance + 1 < D);
1655
1655
  }
1656
1656
  function f(b, y) {
1657
- const E = new $(b.position.x, b.position.y, b.position.z).clone().project(s.camera), z = Math.ceil((E.x + 1) / 2 * y.x), D = Math.ceil((-E.y + 1) / 2 * y.y);
1658
- return `translate(${z}px, ${D}px)`;
1657
+ const P = new $(b.position.x, b.position.y, b.position.z).clone().project(s.camera), L = Math.ceil((P.x + 1) / 2 * y.x), D = Math.ceil((-P.y + 1) / 2 * y.y);
1658
+ return `translate(${L}px, ${D}px)`;
1659
1659
  }
1660
1660
  function u(b) {
1661
- const { rendererSize: y, shownFloor: P } = b, E = /* @__PURE__ */ new Map();
1662
- function z(I) {
1663
- const T = E.get(I.id);
1661
+ const { rendererSize: y, shownFloor: I } = b, P = /* @__PURE__ */ new Map();
1662
+ function L(E) {
1663
+ const T = P.get(E.id);
1664
1664
  if (T)
1665
1665
  return T;
1666
- const { x: C, y: M, z: N } = I.position, B = new $(C, M, N).clone().distanceTo(s.camera.position);
1667
- return E.set(I.id, B), B;
1666
+ const { x: C, y: z, z: R } = E.position, H = new $(C, z, R).clone().distanceTo(s.camera.position);
1667
+ return P.set(E.id, H), H;
1668
1668
  }
1669
- return r.map((I) => {
1670
- const T = h(I), C = T ? f(I, y) : I.transform, M = z(I), B = r.filter((K) => K.visible && z(K) < M).length * 10;
1671
- return Object.assign(Object.assign({}, I), { visible: T, transform: C, zIndex: B });
1669
+ return r.map((E) => {
1670
+ const T = h(E), C = T ? f(E, y) : E.transform, z = L(E), H = r.filter((_) => _.visible && L(_) < z).length * 10;
1671
+ return Object.assign(Object.assign({}, E), { visible: T, transform: C, zIndex: H });
1672
1672
  });
1673
1673
  }
1674
1674
  function m() {
@@ -1852,26 +1852,26 @@ function gl(i) {
1852
1852
  let t, e;
1853
1853
  return {
1854
1854
  c() {
1855
- t = F("div"), e = F("div"), x(e, "class", "floorplan__camera-rotate svelte-17cl35n"), S(e, "background-image", `url(${i[0] || vt})`), S(e, "width", i[4]), S(e, "height", i[4]), S(e, "left", "-" + i[4]), S(e, "top", "-" + i[4]), S(e, "transform", `rotate(${i[3]}deg)`), S(e, "transform-origin", `${i[4]} ${i[4]}`), x(t, "class", "floorplan__camera-position svelte-17cl35n"), S(t, "left", i[1]), S(t, "top", i[2]);
1855
+ t = G("div"), e = G("div"), x(e, "class", "floorplan__camera-rotate svelte-17cl35n"), M(e, "background-image", `url(${i[0] || vt})`), M(e, "width", i[4]), M(e, "height", i[4]), M(e, "left", "-" + i[4]), M(e, "top", "-" + i[4]), M(e, "transform", `rotate(${i[3]}deg)`), M(e, "transform-origin", `${i[4]} ${i[4]}`), x(t, "class", "floorplan__camera-position svelte-17cl35n"), M(t, "left", i[1]), M(t, "top", i[2]);
1856
1856
  },
1857
1857
  m(n, o) {
1858
- W(n, t, o), G(t, e);
1858
+ Y(n, t, o), X(t, e);
1859
1859
  },
1860
1860
  p(n, [o]) {
1861
- o & 1 && S(e, "background-image", `url(${n[0] || vt})`);
1861
+ o & 1 && M(e, "background-image", `url(${n[0] || vt})`);
1862
1862
  },
1863
1863
  i: ne,
1864
1864
  o: ne,
1865
1865
  d(n) {
1866
- n && X(t);
1866
+ n && Q(t);
1867
1867
  }
1868
1868
  };
1869
1869
  }
1870
1870
  function vl(i, t, e) {
1871
1871
  let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
1872
1872
  const { observers: a } = o, l = a[n], c = l.positionInImage.x, h = l.positionInImage.y, f = c * 100 + "%", u = h * 100 + "%", m = -ml(s) + 45, g = document.body.clientWidth, v = document.body.clientHeight, y = `${(g < 500 || v < 500 ? 17 : 37) / 16}rem`;
1873
- return i.$$set = (P) => {
1874
- "panoIndex" in P && e(5, n = P.panoIndex), "floorplanData" in P && e(6, o = P.floorplanData), "lastPanoramaLongitude" in P && e(7, s = P.lastPanoramaLongitude), "cameraImageUrl" in P && e(0, r = P.cameraImageUrl);
1873
+ return i.$$set = (I) => {
1874
+ "panoIndex" in I && e(5, n = I.panoIndex), "floorplanData" in I && e(6, o = I.floorplanData), "lastPanoramaLongitude" in I && e(7, s = I.lastPanoramaLongitude), "cameraImageUrl" in I && e(0, r = I.cameraImageUrl);
1875
1875
  }, [
1876
1876
  r,
1877
1877
  f,
@@ -1909,16 +1909,16 @@ function Pl(i) {
1909
1909
  let t, e, n, o, s;
1910
1910
  return {
1911
1911
  c() {
1912
- t = F("div"), e = F("div"), n = fe(), o = F("span"), s = qe(i[0]), x(e, "class", "floorplan-plugin__compass-image svelte-z9kwkx"), S(e, "background-image", `url(${Al})`), x(o, "class", "floorplan-plugin__compass-text svelte-z9kwkx"), x(t, "class", "floorplan-plugin__compass svelte-z9kwkx"), S(t, "transform", i[2]);
1912
+ t = G("div"), e = G("div"), n = fe(), o = G("span"), s = qe(i[0]), x(e, "class", "floorplan-plugin__compass-image svelte-z9kwkx"), M(e, "background-image", `url(${Al})`), x(o, "class", "floorplan-plugin__compass-text svelte-z9kwkx"), x(t, "class", "floorplan-plugin__compass svelte-z9kwkx"), M(t, "transform", i[2]);
1913
1913
  },
1914
1914
  m(r, a) {
1915
- W(r, t, a), G(t, e), G(t, n), G(t, o), G(o, s);
1915
+ Y(r, t, a), X(t, e), X(t, n), X(t, o), X(o, s);
1916
1916
  },
1917
1917
  p(r, a) {
1918
1918
  a & 1 && dt(s, r[0]);
1919
1919
  },
1920
1920
  d(r) {
1921
- r && X(t);
1921
+ r && Q(t);
1922
1922
  }
1923
1923
  };
1924
1924
  }
@@ -1929,7 +1929,7 @@ function wl(i) {
1929
1929
  e && e.c(), t = Xe();
1930
1930
  },
1931
1931
  m(n, o) {
1932
- e && e.m(n, o), W(n, t, o);
1932
+ e && e.m(n, o), Y(n, t, o);
1933
1933
  },
1934
1934
  p(n, [o]) {
1935
1935
  n[1] && e.p(n, o);
@@ -1937,7 +1937,7 @@ function wl(i) {
1937
1937
  i: ne,
1938
1938
  o: ne,
1939
1939
  d(n) {
1940
- e && e.d(n), n && X(t);
1940
+ e && e.d(n), n && Q(t);
1941
1941
  }
1942
1942
  };
1943
1943
  }
@@ -1991,10 +1991,10 @@ function Ll(i) {
1991
1991
  let t, e;
1992
1992
  return {
1993
1993
  c() {
1994
- t = F("img"), go(t.src, e = i[0]) || x(t, "src", e), x(t, "alt", "floorplan iamge"), x(t, "class", "svelte-1gfoniz");
1994
+ t = G("img"), go(t.src, e = i[0]) || x(t, "src", e), x(t, "alt", "floorplan iamge"), x(t, "class", "svelte-1gfoniz");
1995
1995
  },
1996
1996
  m(n, o) {
1997
- W(n, t, o);
1997
+ Y(n, t, o);
1998
1998
  },
1999
1999
  p(n, [o]) {
2000
2000
  o & 1 && !go(t.src, e = n[0]) && x(t, "src", e);
@@ -2002,7 +2002,7 @@ function Ll(i) {
2002
2002
  i: ne,
2003
2003
  o: ne,
2004
2004
  d(n) {
2005
- n && X(t);
2005
+ n && Q(t);
2006
2006
  }
2007
2007
  };
2008
2008
  }
@@ -2024,10 +2024,10 @@ function zl(i) {
2024
2024
  let t, e, n, o;
2025
2025
  return {
2026
2026
  c() {
2027
- t = F("div"), e = new Ei(!1), n = fe(), o = new Ei(!1), e.a = n, o.a = null, x(t, "class", "floorplan-plugin__base-image svelte-ub47ya");
2027
+ t = G("div"), e = new Ei(!1), n = fe(), o = new Ei(!1), e.a = n, o.a = null, x(t, "class", "floorplan-plugin__base-image svelte-ub47ya");
2028
2028
  },
2029
2029
  m(s, r) {
2030
- W(s, t, r), e.m(i[1], t), G(t, n), o.m(i[0], t);
2030
+ Y(s, t, r), e.m(i[1], t), X(t, n), o.m(i[0], t);
2031
2031
  },
2032
2032
  p(s, [r]) {
2033
2033
  r & 1 && o.p(s[0]);
@@ -2035,7 +2035,7 @@ function zl(i) {
2035
2035
  i: ne,
2036
2036
  o: ne,
2037
2037
  d(s) {
2038
- s && X(t);
2038
+ s && Q(t);
2039
2039
  }
2040
2040
  };
2041
2041
  }
@@ -2077,7 +2077,7 @@ function Ol(i) {
2077
2077
  o & 2 && (s.url = n[1].url), t.$set(s);
2078
2078
  },
2079
2079
  i(n) {
2080
- e || (H(t.$$.fragment, n), e = !0);
2080
+ e || (F(t.$$.fragment, n), e = !0);
2081
2081
  },
2082
2082
  o(n) {
2083
2083
  q(t.$$.fragment, n), e = !1;
@@ -2103,7 +2103,7 @@ function Nl(i) {
2103
2103
  o & 1 && (s.content = n[0]), t.$set(s);
2104
2104
  },
2105
2105
  i(n) {
2106
- e || (H(t.$$.fragment, n), e = !0);
2106
+ e || (F(t.$$.fragment, n), e = !0);
2107
2107
  },
2108
2108
  o(n) {
2109
2109
  q(t.$$.fragment, n), e = !1;
@@ -2121,25 +2121,25 @@ function Rl(i) {
2121
2121
  }
2122
2122
  return ~(e = a(i)) && (n = r[e] = s[e](i)), {
2123
2123
  c() {
2124
- t = F("div"), n && n.c(), x(t, "class", "floorplan-plugin__base-image svelte-ozpg4a");
2124
+ t = G("div"), n && n.c(), x(t, "class", "floorplan-plugin__base-image svelte-ozpg4a");
2125
2125
  },
2126
2126
  m(l, c) {
2127
- W(l, t, c), ~e && r[e].m(t, null), o = !0;
2127
+ Y(l, t, c), ~e && r[e].m(t, null), o = !0;
2128
2128
  },
2129
2129
  p(l, [c]) {
2130
2130
  let h = e;
2131
2131
  e = a(l), e === h ? ~e && r[e].p(l, c) : (n && (Ee(), q(r[h], 1, 1, () => {
2132
2132
  r[h] = null;
2133
- }), Ie()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), H(n, 1), n.m(t, null)) : n = null);
2133
+ }), Ie()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), F(n, 1), n.m(t, null)) : n = null);
2134
2134
  },
2135
2135
  i(l) {
2136
- o || (H(n), o = !0);
2136
+ o || (F(n), o = !0);
2137
2137
  },
2138
2138
  o(l) {
2139
2139
  q(n), o = !1;
2140
2140
  },
2141
2141
  d(l) {
2142
- l && X(t), ~e && r[e].d();
2142
+ l && Q(t), ~e && r[e].d();
2143
2143
  }
2144
2144
  };
2145
2145
  }
@@ -2168,13 +2168,13 @@ function Fl(i) {
2168
2168
  t = new Ei(!1), n = Xe(), t.a = n;
2169
2169
  },
2170
2170
  m(o, s) {
2171
- t.m(e, o, s), W(o, n, s);
2171
+ t.m(e, o, s), Y(o, n, s);
2172
2172
  },
2173
2173
  p(o, s) {
2174
2174
  s & 16 && e !== (e = o[4].outerHTML + "") && t.p(e);
2175
2175
  },
2176
2176
  d(o) {
2177
- o && X(n), o && t.d();
2177
+ o && Q(n), o && t.d();
2178
2178
  }
2179
2179
  };
2180
2180
  }
@@ -2182,16 +2182,16 @@ function Gl(i) {
2182
2182
  let t, e = i[0].name + "", n, o, s, r;
2183
2183
  return {
2184
2184
  c() {
2185
- t = F("span"), n = qe(e), o = fe(), s = F("span"), r = qe(i[5]), x(t, "class", "floorplan-plugin__room-name"), x(s, "class", "floorplan-plugin__room-size svelte-12pzct5");
2185
+ t = G("span"), n = qe(e), o = fe(), s = G("span"), r = qe(i[5]), x(t, "class", "floorplan-plugin__room-name"), x(s, "class", "floorplan-plugin__room-size svelte-12pzct5");
2186
2186
  },
2187
2187
  m(a, l) {
2188
- W(a, t, l), G(t, n), W(a, o, l), W(a, s, l), G(s, r);
2188
+ Y(a, t, l), X(t, n), Y(a, o, l), Y(a, s, l), X(s, r);
2189
2189
  },
2190
2190
  p(a, l) {
2191
2191
  l & 1 && e !== (e = a[0].name + "") && dt(n, e), l & 32 && dt(r, a[5]);
2192
2192
  },
2193
2193
  d(a) {
2194
- a && X(t), a && X(o), a && X(s);
2194
+ a && Q(t), a && Q(o), a && Q(s);
2195
2195
  }
2196
2196
  };
2197
2197
  }
@@ -2206,18 +2206,18 @@ function Xl(i) {
2206
2206
  let n = e(i), o = n && n(i);
2207
2207
  return {
2208
2208
  c() {
2209
- t = F("div"), o && o.c(), x(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), S(t, "left", i[6]), S(t, "top", i[7]), S(t, "font-size", i[8]), S(t, "opacity", i[3] ? "1" : "0");
2209
+ t = G("div"), o && o.c(), x(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), M(t, "left", i[6]), M(t, "top", i[7]), M(t, "font-size", i[8]), M(t, "opacity", i[3] ? "1" : "0");
2210
2210
  },
2211
2211
  m(s, r) {
2212
- W(s, t, r), o && o.m(t, null), i[16](t);
2212
+ Y(s, t, r), o && o.m(t, null), i[16](t);
2213
2213
  },
2214
2214
  p(s, [r]) {
2215
- n === (n = e(s)) && o ? o.p(s, r) : (o && o.d(1), o = n && n(s), o && (o.c(), o.m(t, null))), r & 8 && S(t, "opacity", s[3] ? "1" : "0");
2215
+ n === (n = e(s)) && o ? o.p(s, r) : (o && o.d(1), o = n && n(s), o && (o.c(), o.m(t, null))), r & 8 && M(t, "opacity", s[3] ? "1" : "0");
2216
2216
  },
2217
2217
  i: ne,
2218
2218
  o: ne,
2219
2219
  d(s) {
2220
- s && X(t), o && o.d(), i[16](null);
2220
+ s && Q(t), o && o.d(), i[16](null);
2221
2221
  }
2222
2222
  };
2223
2223
  }
@@ -2232,27 +2232,27 @@ function Ql(i, t) {
2232
2232
  }
2233
2233
  function Wl(i, t, e) {
2234
2234
  let n, o, s, r, { pxmm: a } = t, { room: l } = t, { hoveredRoom: c } = t, { getRoomAreaText: h } = t, { getLabelElement: f } = t, { adaptiveRoomLabelVisibleEnable: u } = t;
2235
- function m(C, M) {
2236
- if (M.width === 0 || M.height === 0)
2235
+ function m(C, z) {
2236
+ if (z.width === 0 || z.height === 0)
2237
2237
  return () => !1;
2238
- const N = C.path.map(({ x: te, y: Q }) => [te, Q]), B = C.roomLabel.position, { x: K, y: k } = B, { width: J, height: R } = M, _ = J / 2, U = R / 2;
2239
- return function(Q) {
2240
- const ee = K * Q, se = k * Q, ie = N.map(([Ae, xe]) => [Ae * Q, xe * Q]);
2238
+ const R = C.path.map(({ x: te, y: W }) => [te, W]), H = C.roomLabel.position, { x: _, y: S } = H, { width: O, height: B } = z, K = O / 2, U = B / 2;
2239
+ return function(W) {
2240
+ const ee = _ * W, se = S * W, ie = R.map(([Ae, xe]) => [Ae * W, xe * W]);
2241
2241
  return [
2242
- [ee + _, se - U],
2243
- [ee - _, se - U],
2244
- [ee - _, se + U],
2245
- [ee + _, se + U]
2242
+ [ee + K, se - U],
2243
+ [ee - K, se - U],
2244
+ [ee - K, se + U],
2245
+ [ee + K, se + U]
2246
2246
  ].every((Ae) => Ql(Ae, ie));
2247
2247
  };
2248
2248
  }
2249
- const g = document.body.clientWidth, v = document.body.clientHeight, b = l.roomLabel, y = b.positionInImage.x * 100 + "%", P = b.positionInImage.y * 100 + "%", E = (g < 500 || v < 500 ? 10 : 14) / 16 + "rem";
2250
- let z = !1, D, I;
2251
- c.subscribe(function(M) {
2252
- e(13, z = !!M && M.id === l.id);
2249
+ const g = document.body.clientWidth, v = document.body.clientHeight, b = l.roomLabel, y = b.positionInImage.x * 100 + "%", I = b.positionInImage.y * 100 + "%", P = (g < 500 || v < 500 ? 10 : 14) / 16 + "rem";
2250
+ let L = !1, D, E;
2251
+ c.subscribe(function(z) {
2252
+ e(13, L = !!z && z.id === l.id);
2253
2253
  }), Lt(() => {
2254
2254
  const C = D == null ? void 0 : D.getClientRects()[0];
2255
- e(14, I = {
2255
+ e(14, E = {
2256
2256
  width: C.width,
2257
2257
  height: C.height
2258
2258
  });
@@ -2265,7 +2265,7 @@ function Wl(i, t, e) {
2265
2265
  return i.$$set = (C) => {
2266
2266
  "pxmm" in C && e(9, a = C.pxmm), "room" in C && e(0, l = C.room), "hoveredRoom" in C && e(10, c = C.hoveredRoom), "getRoomAreaText" in C && e(11, h = C.getRoomAreaText), "getLabelElement" in C && e(1, f = C.getLabelElement), "adaptiveRoomLabelVisibleEnable" in C && e(12, u = C.adaptiveRoomLabelVisibleEnable);
2267
2267
  }, i.$$.update = () => {
2268
- i.$$.dirty & 2049 && e(5, n = l.size ? h(l.size) : ""), i.$$.dirty & 16385 && e(15, o = I ? m(l, I) : void 0), i.$$.dirty & 3 && e(4, s = f == null ? void 0 : f(l)), i.$$.dirty & 45568 && e(3, r = u ? z ? !0 : !!(o != null && o(a)) : !0);
2268
+ i.$$.dirty & 2049 && e(5, n = l.size ? h(l.size) : ""), i.$$.dirty & 16385 && e(15, o = E ? m(l, E) : void 0), i.$$.dirty & 3 && e(4, s = f == null ? void 0 : f(l)), i.$$.dirty & 45568 && e(3, r = u ? L ? !0 : !!(o != null && o(a)) : !0);
2269
2269
  }, [
2270
2270
  l,
2271
2271
  f,
@@ -2274,14 +2274,14 @@ function Wl(i, t, e) {
2274
2274
  s,
2275
2275
  n,
2276
2276
  y,
2277
+ I,
2277
2278
  P,
2278
- E,
2279
2279
  a,
2280
2280
  c,
2281
2281
  h,
2282
2282
  u,
2283
- z,
2284
- I,
2283
+ L,
2284
+ E,
2285
2285
  o,
2286
2286
  T
2287
2287
  ];
@@ -2322,13 +2322,13 @@ function Eo(i) {
2322
2322
  }
2323
2323
  return {
2324
2324
  c() {
2325
- t = F("div");
2325
+ t = G("div");
2326
2326
  for (let l = 0; l < e.length; l += 1)
2327
2327
  e[l].c();
2328
2328
  x(t, "class", "floorplan-plugin__room-labels svelte-13xux0b"), _e(() => i[9].call(t));
2329
2329
  },
2330
2330
  m(l, c) {
2331
- W(l, t, c);
2331
+ Y(l, t, c);
2332
2332
  for (let h = 0; h < e.length; h += 1)
2333
2333
  e[h].m(t, null);
2334
2334
  o = Xt(t, i[9].bind(t)), s = !0;
@@ -2339,7 +2339,7 @@ function Eo(i) {
2339
2339
  i(l) {
2340
2340
  if (!s) {
2341
2341
  for (let c = 0; c < r.length; c += 1)
2342
- H(e[c]);
2342
+ F(e[c]);
2343
2343
  s = !0;
2344
2344
  }
2345
2345
  },
@@ -2349,7 +2349,7 @@ function Eo(i) {
2349
2349
  s = !1;
2350
2350
  },
2351
2351
  d(l) {
2352
- l && X(t);
2352
+ l && Q(t);
2353
2353
  for (let c = 0; c < e.length; c += 1)
2354
2354
  e[c].d();
2355
2355
  o();
@@ -2378,7 +2378,7 @@ function Io(i, t) {
2378
2378
  e = Xe(), ye(n.$$.fragment), this.first = e;
2379
2379
  },
2380
2380
  m(a, l) {
2381
- W(a, e, l), ve(n, a, l), o = !0;
2381
+ Y(a, e, l), ve(n, a, l), o = !0;
2382
2382
  },
2383
2383
  p(a, l) {
2384
2384
  t = a;
@@ -2395,13 +2395,13 @@ function Io(i, t) {
2395
2395
  n.$set(c);
2396
2396
  },
2397
2397
  i(a) {
2398
- o || (H(n.$$.fragment, a), o = !0);
2398
+ o || (F(n.$$.fragment, a), o = !0);
2399
2399
  },
2400
2400
  o(a) {
2401
2401
  q(n.$$.fragment, a), o = !1;
2402
2402
  },
2403
2403
  d(a) {
2404
- a && X(e), be(n, a);
2404
+ a && Q(e), be(n, a);
2405
2405
  }
2406
2406
  };
2407
2407
  }
@@ -2412,21 +2412,21 @@ function Jl(i) {
2412
2412
  n && n.c(), t = Xe();
2413
2413
  },
2414
2414
  m(o, s) {
2415
- n && n.m(o, s), W(o, t, s), e = !0;
2415
+ n && n.m(o, s), Y(o, t, s), e = !0;
2416
2416
  },
2417
2417
  p(o, [s]) {
2418
- o[6] ? n ? (n.p(o, s), s & 64 && H(n, 1)) : (n = Eo(o), n.c(), H(n, 1), n.m(t.parentNode, t)) : n && (Ee(), q(n, 1, 1, () => {
2418
+ o[6] ? n ? (n.p(o, s), s & 64 && F(n, 1)) : (n = Eo(o), n.c(), F(n, 1), n.m(t.parentNode, t)) : n && (Ee(), q(n, 1, 1, () => {
2419
2419
  n = null;
2420
2420
  }), Ie());
2421
2421
  },
2422
2422
  i(o) {
2423
- e || (H(n), e = !0);
2423
+ e || (F(n), e = !0);
2424
2424
  },
2425
2425
  o(o) {
2426
2426
  q(n), e = !1;
2427
2427
  },
2428
2428
  d(o) {
2429
- n && n.d(o), o && X(t);
2429
+ n && n.d(o), o && Q(t);
2430
2430
  }
2431
2431
  };
2432
2432
  }
@@ -2490,14 +2490,14 @@ function Lo(i) {
2490
2490
  let t;
2491
2491
  return {
2492
2492
  c() {
2493
- t = F("div"), x(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), S(t, "left", i[14].left * 100 + "%"), S(t, "bottom", i[14].bottom * 100 + "%");
2493
+ t = G("div"), x(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), M(t, "left", i[14].left * 100 + "%"), M(t, "bottom", i[14].bottom * 100 + "%");
2494
2494
  },
2495
2495
  m(e, n) {
2496
- W(e, t, n);
2496
+ Y(e, t, n);
2497
2497
  },
2498
2498
  p: ne,
2499
2499
  d(e) {
2500
- e && X(t);
2500
+ e && Q(t);
2501
2501
  }
2502
2502
  };
2503
2503
  }
@@ -2507,16 +2507,16 @@ function ko(i, t) {
2507
2507
  key: i,
2508
2508
  first: null,
2509
2509
  c() {
2510
- e = F("div"), n = F("div"), s = qe(o), r = fe(), x(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), Me(n, "is-row", t[2]), x(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), S(e, "left", t[11].left * 100 + "%"), S(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
2510
+ e = G("div"), n = G("div"), s = qe(o), r = fe(), x(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), Me(n, "is-row", t[2]), x(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), M(e, "left", t[11].left * 100 + "%"), M(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
2511
2511
  },
2512
2512
  m(a, l) {
2513
- W(a, e, l), G(e, n), G(n, s), G(e, r);
2513
+ Y(a, e, l), X(e, n), X(n, s), X(e, r);
2514
2514
  },
2515
2515
  p(a, l) {
2516
2516
  t = a, l & 2 && o !== (o = t[1](t[11].distance) + "") && dt(s, o);
2517
2517
  },
2518
2518
  d(a) {
2519
- a && X(e);
2519
+ a && Q(e);
2520
2520
  }
2521
2521
  };
2522
2522
  }
@@ -2532,19 +2532,19 @@ function Kl(i) {
2532
2532
  }
2533
2533
  return {
2534
2534
  c() {
2535
- t = F("div"), e = F("div"), n = fe(), o = F("div");
2535
+ t = G("div"), e = G("div"), n = fe(), o = G("div");
2536
2536
  for (let g = 0; g < f.length; g += 1)
2537
2537
  f[g].c();
2538
- s = fe(), r = F("div");
2538
+ s = fe(), r = G("div");
2539
2539
  for (let g = 0; g < a.length; g += 1)
2540
2540
  a[g].c();
2541
- x(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), x(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), Me(o, "is-row", i[2]), x(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), x(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), Me(t, "is-row", i[2]), S(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), S(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
2541
+ x(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), x(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), Me(o, "is-row", i[2]), x(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), x(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), Me(t, "is-row", i[2]), M(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), M(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
2542
2542
  },
2543
2543
  m(g, v) {
2544
- W(g, t, v), G(t, e), G(t, n), G(t, o);
2544
+ Y(g, t, v), X(t, e), X(t, n), X(t, o);
2545
2545
  for (let b = 0; b < f.length; b += 1)
2546
2546
  f[b].m(o, null);
2547
- G(t, s), G(t, r);
2547
+ X(t, s), X(t, r);
2548
2548
  for (let b = 0; b < a.length; b += 1)
2549
2549
  a[b].m(r, null);
2550
2550
  },
@@ -2565,7 +2565,7 @@ function Kl(i) {
2565
2565
  i: ne,
2566
2566
  o: ne,
2567
2567
  d(g) {
2568
- g && X(t), Gt(f, g);
2568
+ g && Q(t), Gt(f, g);
2569
2569
  for (let v = 0; v < a.length; v += 1)
2570
2570
  a[v].d();
2571
2571
  }
@@ -2580,8 +2580,8 @@ function _l(i, t, e) {
2580
2580
  });
2581
2581
  f.unshift({ left: 0, bottom: 0 }), f.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
2582
2582
  const u = h[h.length - 1] - h[0], m = h.map((g, v, b) => {
2583
- const y = v === 0 ? 0 : g - b[v - 1], P = v === 0 ? 0 : (g + b[v - 1]) / 2, E = a ? (P - s.min.x - St + jt) / l : 0, z = a ? 0 : (P - s.min.y - St + jt) / c;
2584
- return { left: E, bottom: z, distance: y };
2583
+ const y = v === 0 ? 0 : g - b[v - 1], I = v === 0 ? 0 : (g + b[v - 1]) / 2, P = a ? (I - s.min.x - St + jt) / l : 0, L = a ? 0 : (I - s.min.y - St + jt) / c;
2584
+ return { left: P, bottom: L, distance: y };
2585
2585
  }).filter(({ distance: g }) => g / u > 0.1);
2586
2586
  return i.$$set = (g) => {
2587
2587
  "type" in g && e(0, n = g.type), "data" in g && e(5, o = g.data), "bounding" in g && e(6, s = g.bounding), "getRuleDistanceText" in g && e(1, r = g.getRuleDistanceText);
@@ -2632,7 +2632,7 @@ function Do(i, t) {
2632
2632
  e = Xe(), ye(n.$$.fragment), this.first = e;
2633
2633
  },
2634
2634
  m(a, l) {
2635
- W(a, e, l), ve(n, a, l), o = !0;
2635
+ Y(a, e, l), ve(n, a, l), o = !0;
2636
2636
  },
2637
2637
  p(a, l) {
2638
2638
  t = a;
@@ -2647,13 +2647,13 @@ function Do(i, t) {
2647
2647
  n.$set(c);
2648
2648
  },
2649
2649
  i(a) {
2650
- o || (H(n.$$.fragment, a), o = !0);
2650
+ o || (F(n.$$.fragment, a), o = !0);
2651
2651
  },
2652
2652
  o(a) {
2653
2653
  q(n.$$.fragment, a), o = !1;
2654
2654
  },
2655
2655
  d(a) {
2656
- a && X(e), be(n, a);
2656
+ a && Q(e), be(n, a);
2657
2657
  }
2658
2658
  };
2659
2659
  }
@@ -2666,24 +2666,24 @@ function tc(i) {
2666
2666
  }
2667
2667
  return {
2668
2668
  c() {
2669
- t = F("div");
2669
+ t = G("div");
2670
2670
  for (let a = 0; a < e.length; a += 1)
2671
2671
  e[a].c();
2672
- x(t, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), S(t, "width", i[3]), S(t, "height", i[2]);
2672
+ x(t, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), M(t, "width", i[3]), M(t, "height", i[2]);
2673
2673
  },
2674
2674
  m(a, l) {
2675
- W(a, t, l);
2675
+ Y(a, t, l);
2676
2676
  for (let c = 0; c < e.length; c += 1)
2677
2677
  e[c].m(t, null);
2678
2678
  o = !0;
2679
2679
  },
2680
2680
  p(a, [l]) {
2681
- l & 19 && (s = a[4], Ee(), e = yt(e, l, r, 1, a, s, n, t, Qt, Do, null, To), Ie()), l & 8 && S(t, "width", a[3]), l & 4 && S(t, "height", a[2]);
2681
+ l & 19 && (s = a[4], Ee(), e = yt(e, l, r, 1, a, s, n, t, Qt, Do, null, To), Ie()), l & 8 && M(t, "width", a[3]), l & 4 && M(t, "height", a[2]);
2682
2682
  },
2683
2683
  i(a) {
2684
2684
  if (!o) {
2685
2685
  for (let l = 0; l < s.length; l += 1)
2686
- H(e[l]);
2686
+ F(e[l]);
2687
2687
  o = !0;
2688
2688
  }
2689
2689
  },
@@ -2693,7 +2693,7 @@ function tc(i) {
2693
2693
  o = !1;
2694
2694
  },
2695
2695
  d(a) {
2696
- a && X(t);
2696
+ a && Q(t);
2697
2697
  for (let l = 0; l < e.length; l += 1)
2698
2698
  e[l].d();
2699
2699
  }
@@ -2774,7 +2774,7 @@ function ac(i) {
2774
2774
  t = Te("path"), x(t, "d", i[0]), x(t, "fill", "#2F313A");
2775
2775
  },
2776
2776
  m(e, n) {
2777
- W(e, t, n);
2777
+ Y(e, t, n);
2778
2778
  },
2779
2779
  p(e, [n]) {
2780
2780
  n & 1 && x(t, "d", e[0]);
@@ -2782,7 +2782,7 @@ function ac(i) {
2782
2782
  i: ne,
2783
2783
  o: ne,
2784
2784
  d(e) {
2785
- e && X(t);
2785
+ e && Q(t);
2786
2786
  }
2787
2787
  };
2788
2788
  }
@@ -2806,7 +2806,7 @@ function hc(i) {
2806
2806
  t = Te("defs"), e = Te("pattern"), n = Te("rect"), o = Te("path"), s = fe(), r = Te("path"), x(n, "x", "0"), x(n, "y", "0"), x(n, "width", i[1]), x(n, "height", i[1]), x(n, "fill", "#323747"), x(o, "d", i[2]), x(o, "stroke", "#ffffff"), x(o, "stroke-opacity", "0.06"), x(o, "stroke-width", "0.5"), x(o, "fill", "none"), x(e, "id", "fpm-room-pattern-0"), x(e, "x", "0"), x(e, "y", "0"), x(e, "width", i[1]), x(e, "height", i[1]), x(e, "patternUnits", "userSpaceOnUse"), x(e, "patternTransform", "scale(50 50)"), x(r, "d", i[0]), x(r, "fill", "url(#fpm-room-pattern-0)");
2807
2807
  },
2808
2808
  m(a, l) {
2809
- W(a, t, l), G(t, e), G(e, n), G(e, o), W(a, s, l), W(a, r, l);
2809
+ Y(a, t, l), X(t, e), X(e, n), X(e, o), Y(a, s, l), Y(a, r, l);
2810
2810
  },
2811
2811
  p(a, [l]) {
2812
2812
  l & 1 && x(r, "d", a[0]);
@@ -2814,7 +2814,7 @@ function hc(i) {
2814
2814
  i: ne,
2815
2815
  o: ne,
2816
2816
  d(a) {
2817
- a && X(t), a && X(s), a && X(r);
2817
+ a && Q(t), a && Q(s), a && Q(r);
2818
2818
  }
2819
2819
  };
2820
2820
  }
@@ -2840,7 +2840,7 @@ function fc(i) {
2840
2840
  t = Te("defs"), e = Te("pattern"), n = Te("rect"), o = Te("pattern"), s = Te("rect"), r = fe(), a = Te("path"), l = fe(), c = Te("path"), h = fe(), f = Te("path"), x(n, "x", "0"), x(n, "y", "0"), x(n, "width", "6"), x(n, "height", "50"), x(n, "fill", "none"), x(n, "stroke", "#4B4B57"), x(n, "stroke-width", "0.5"), x(e, "id", "room-material-pattern-1"), x(e, "x", "0"), x(e, "y", "0"), x(e, "width", "12"), x(e, "height", "50"), x(e, "patternUnits", "userSpaceOnUse"), x(e, "patternTransform", "scale(50 50)"), x(s, "x", "0"), x(s, "y", "0"), x(s, "width", "6"), x(s, "height", "50"), x(s, "fill", "none"), x(s, "stroke", "#4B4B57"), x(s, "stroke-width", "0.5"), x(o, "id", "room-material-pattern-2"), x(o, "x", "6"), x(o, "y", "25"), x(o, "width", "12"), x(o, "height", "50"), x(o, "patternUnits", "userSpaceOnUse"), x(o, "patternTransform", "scale(50 50)"), x(a, "d", i[0]), x(a, "fill", "#43434D"), x(c, "d", i[0]), x(c, "fill", "url(#room-material-pattern-1)"), x(f, "d", i[0]), x(f, "fill", "url(#room-material-pattern-2)");
2841
2841
  },
2842
2842
  m(u, m) {
2843
- W(u, t, m), G(t, e), G(e, n), G(t, o), G(o, s), W(u, r, m), W(u, a, m), W(u, l, m), W(u, c, m), W(u, h, m), W(u, f, m);
2843
+ Y(u, t, m), X(t, e), X(e, n), X(t, o), X(o, s), Y(u, r, m), Y(u, a, m), Y(u, l, m), Y(u, c, m), Y(u, h, m), Y(u, f, m);
2844
2844
  },
2845
2845
  p(u, [m]) {
2846
2846
  m & 1 && x(a, "d", u[0]), m & 1 && x(c, "d", u[0]), m & 1 && x(f, "d", u[0]);
@@ -2848,7 +2848,7 @@ function fc(i) {
2848
2848
  i: ne,
2849
2849
  o: ne,
2850
2850
  d(u) {
2851
- u && X(t), u && X(r), u && X(a), u && X(l), u && X(c), u && X(h), u && X(f);
2851
+ u && Q(t), u && Q(r), u && Q(a), u && Q(l), u && Q(c), u && Q(h), u && Q(f);
2852
2852
  }
2853
2853
  };
2854
2854
  }
@@ -2886,7 +2886,7 @@ function vc(i) {
2886
2886
  o & 1 && (s.path = n[5].path), t.$set(s);
2887
2887
  },
2888
2888
  i(n) {
2889
- e || (H(t.$$.fragment, n), e = !0);
2889
+ e || (F(t.$$.fragment, n), e = !0);
2890
2890
  },
2891
2891
  o(n) {
2892
2892
  q(t.$$.fragment, n), e = !1;
@@ -2910,7 +2910,7 @@ function bc(i) {
2910
2910
  o & 1 && (s.path = n[5].path), t.$set(s);
2911
2911
  },
2912
2912
  i(n) {
2913
- e || (H(t.$$.fragment, n), e = !0);
2913
+ e || (F(t.$$.fragment, n), e = !0);
2914
2914
  },
2915
2915
  o(n) {
2916
2916
  q(t.$$.fragment, n), e = !1;
@@ -2934,7 +2934,7 @@ function Ac(i) {
2934
2934
  o & 1 && (s.path = n[5].path), t.$set(s);
2935
2935
  },
2936
2936
  i(n) {
2937
- e || (H(t.$$.fragment, n), e = !0);
2937
+ e || (F(t.$$.fragment, n), e = !0);
2938
2938
  },
2939
2939
  o(n) {
2940
2940
  q(t.$$.fragment, n), e = !1;
@@ -2955,22 +2955,22 @@ function jo(i) {
2955
2955
  t = Te("svg"), n.c(), x(t, "width", "100%"), x(t, "height", "100%"), x(t, "viewBox", `0 0 ${i[1]} ${i[2]}`), x(t, "class", "svelte-1dykexu");
2956
2956
  },
2957
2957
  m(l, c) {
2958
- W(l, t, c), r[e].m(t, null), o = !0;
2958
+ Y(l, t, c), r[e].m(t, null), o = !0;
2959
2959
  },
2960
2960
  p(l, c) {
2961
2961
  let h = e;
2962
2962
  e = a(l), e === h ? r[e].p(l, c) : (Ee(), q(r[h], 1, 1, () => {
2963
2963
  r[h] = null;
2964
- }), Ie(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), H(n, 1), n.m(t, null));
2964
+ }), Ie(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), F(n, 1), n.m(t, null));
2965
2965
  },
2966
2966
  i(l) {
2967
- o || (H(n), o = !0);
2967
+ o || (F(n), o = !0);
2968
2968
  },
2969
2969
  o(l) {
2970
2970
  q(n), o = !1;
2971
2971
  },
2972
2972
  d(l) {
2973
- l && X(t), r[e].d();
2973
+ l && Q(t), r[e].d();
2974
2974
  }
2975
2975
  };
2976
2976
  }
@@ -2983,13 +2983,13 @@ function yc(i) {
2983
2983
  });
2984
2984
  return {
2985
2985
  c() {
2986
- t = F("div");
2986
+ t = G("div");
2987
2987
  for (let r = 0; r < o.length; r += 1)
2988
2988
  o[r].c();
2989
2989
  x(t, "class", "floorplan-plugin__room-material svelte-1dykexu");
2990
2990
  },
2991
2991
  m(r, a) {
2992
- W(r, t, a);
2992
+ Y(r, t, a);
2993
2993
  for (let l = 0; l < o.length; l += 1)
2994
2994
  o[l].m(t, null);
2995
2995
  e = !0;
@@ -3000,7 +3000,7 @@ function yc(i) {
3000
3000
  let l;
3001
3001
  for (l = 0; l < n.length; l += 1) {
3002
3002
  const c = So(r, n, l);
3003
- o[l] ? (o[l].p(c, a), H(o[l], 1)) : (o[l] = jo(c), o[l].c(), H(o[l], 1), o[l].m(t, null));
3003
+ o[l] ? (o[l].p(c, a), F(o[l], 1)) : (o[l] = jo(c), o[l].c(), F(o[l], 1), o[l].m(t, null));
3004
3004
  }
3005
3005
  for (Ee(), l = n.length; l < o.length; l += 1)
3006
3006
  s(l);
@@ -3010,7 +3010,7 @@ function yc(i) {
3010
3010
  i(r) {
3011
3011
  if (!e) {
3012
3012
  for (let a = 0; a < n.length; a += 1)
3013
- H(o[a]);
3013
+ F(o[a]);
3014
3014
  e = !0;
3015
3015
  }
3016
3016
  },
@@ -3021,7 +3021,7 @@ function yc(i) {
3021
3021
  e = !1;
3022
3022
  },
3023
3023
  d(r) {
3024
- r && X(t), Gt(o, r);
3024
+ r && Q(t), Gt(o, r);
3025
3025
  }
3026
3026
  };
3027
3027
  }
@@ -3051,7 +3051,7 @@ function Ic(i) {
3051
3051
  t = Te("path"), x(t, "d", i[2]), x(t, "fill", "#fff"), x(t, "class", "svelte-19uvvss");
3052
3052
  },
3053
3053
  m(o, s) {
3054
- W(o, t, s), e || (n = [
3054
+ Y(o, t, s), e || (n = [
3055
3055
  Ke(t, "mouseenter", i[0]),
3056
3056
  Ke(t, "mouseleave", i[1])
3057
3057
  ], e = !0);
@@ -3060,7 +3060,7 @@ function Ic(i) {
3060
3060
  i: ne,
3061
3061
  o: ne,
3062
3062
  d(o) {
3063
- o && X(t), e = !1, Ft(n);
3063
+ o && Q(t), e = !1, Ft(n);
3064
3064
  }
3065
3065
  };
3066
3066
  }
@@ -3123,7 +3123,7 @@ function No(i, t) {
3123
3123
  e = Xe(), ye(n.$$.fragment), this.first = e;
3124
3124
  },
3125
3125
  m(a, l) {
3126
- W(a, e, l), ve(n, a, l), o = !0;
3126
+ Y(a, e, l), ve(n, a, l), o = !0;
3127
3127
  },
3128
3128
  p(a, l) {
3129
3129
  t = a;
@@ -3137,13 +3137,13 @@ function No(i, t) {
3137
3137
  n.$set(c);
3138
3138
  },
3139
3139
  i(a) {
3140
- o || (H(n.$$.fragment, a), o = !0);
3140
+ o || (F(n.$$.fragment, a), o = !0);
3141
3141
  },
3142
3142
  o(a) {
3143
3143
  q(n.$$.fragment, a), o = !1;
3144
3144
  },
3145
3145
  d(a) {
3146
- a && X(e), be(n, a);
3146
+ a && Q(e), be(n, a);
3147
3147
  }
3148
3148
  };
3149
3149
  }
@@ -3156,13 +3156,13 @@ function kc(i) {
3156
3156
  }
3157
3157
  return {
3158
3158
  c() {
3159
- t = F("div"), e = Te("svg");
3159
+ t = G("div"), e = Te("svg");
3160
3160
  for (let l = 0; l < n.length; l += 1)
3161
3161
  n[l].c();
3162
3162
  x(e, "width", "100%"), x(e, "height", "100%"), x(e, "viewBox", `0 0 ${i[3]} ${i[4]}`), x(e, "class", "svelte-1kqo6e4"), x(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
3163
3163
  },
3164
3164
  m(l, c) {
3165
- W(l, t, c), G(t, e);
3165
+ Y(l, t, c), X(t, e);
3166
3166
  for (let h = 0; h < n.length; h += 1)
3167
3167
  n[h].m(e, null);
3168
3168
  s = !0;
@@ -3173,7 +3173,7 @@ function kc(i) {
3173
3173
  i(l) {
3174
3174
  if (!s) {
3175
3175
  for (let c = 0; c < r.length; c += 1)
3176
- H(n[c]);
3176
+ F(n[c]);
3177
3177
  s = !0;
3178
3178
  }
3179
3179
  },
@@ -3183,7 +3183,7 @@ function kc(i) {
3183
3183
  s = !1;
3184
3184
  },
3185
3185
  d(l) {
3186
- l && X(t);
3186
+ l && Q(t);
3187
3187
  for (let c = 0; c < n.length; c += 1)
3188
3188
  n[c].d();
3189
3189
  }
@@ -3246,7 +3246,7 @@ function Ro(i) {
3246
3246
  t.$set(a);
3247
3247
  },
3248
3248
  i(s) {
3249
- e || (H(t.$$.fragment, s), e = !0);
3249
+ e || (F(t.$$.fragment, s), e = !0);
3250
3250
  },
3251
3251
  o(s) {
3252
3252
  q(t.$$.fragment, s), e = !1;
@@ -3292,7 +3292,7 @@ function Bo(i) {
3292
3292
  t.$set(a);
3293
3293
  },
3294
3294
  i(s) {
3295
- e || (H(t.$$.fragment, s), e = !0);
3295
+ e || (F(t.$$.fragment, s), e = !0);
3296
3296
  },
3297
3297
  o(s) {
3298
3298
  q(t.$$.fragment, s), e = !1;
@@ -3332,7 +3332,7 @@ function Ho(i) {
3332
3332
  t.$set(a);
3333
3333
  },
3334
3334
  i(s) {
3335
- e || (H(t.$$.fragment, s), e = !0);
3335
+ e || (F(t.$$.fragment, s), e = !0);
3336
3336
  },
3337
3337
  o(s) {
3338
3338
  q(t.$$.fragment, s), e = !1;
@@ -3368,41 +3368,41 @@ function zc(i) {
3368
3368
  let v = i[3] && Bo(i), b = i[4] && Ho(i);
3369
3369
  return {
3370
3370
  c() {
3371
- t = F("div"), ye(e.$$.fragment), n = fe(), u && u.c(), o = fe(), ye(s.$$.fragment), r = fe(), v && v.c(), a = fe(), b && b.c(), x(t, "class", l = je(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
3371
+ t = G("div"), ye(e.$$.fragment), n = fe(), u && u.c(), o = fe(), ye(s.$$.fragment), r = fe(), v && v.c(), a = fe(), b && b.c(), x(t, "class", l = je(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
3372
3372
  },
3373
- m(y, P) {
3374
- W(y, t, P), ve(e, t, null), G(t, n), u && u.m(t, null), G(t, o), ve(s, t, null), G(t, r), v && v.m(t, null), G(t, a), b && b.m(t, null), c = !0;
3373
+ m(y, I) {
3374
+ Y(y, t, I), ve(e, t, null), X(t, n), u && u.m(t, null), X(t, o), ve(s, t, null), X(t, r), v && v.m(t, null), X(t, a), b && b.m(t, null), c = !0;
3375
3375
  },
3376
- p(y, [P]) {
3377
- const E = P & 34 ? Qe(h, [
3376
+ p(y, [I]) {
3377
+ const P = I & 34 ? Qe(h, [
3378
3378
  {
3379
3379
  floorIndex: y[1],
3380
3380
  floorplanData: y[5]
3381
3381
  }
3382
3382
  ]) : {};
3383
- e.$set(E), y[2] ? u ? (u.p(y, P), P & 4 && H(u, 1)) : (u = Ro(y), u.c(), H(u, 1), u.m(t, o)) : u && (Ee(), q(u, 1, 1, () => {
3383
+ e.$set(P), y[2] ? u ? (u.p(y, I), I & 4 && F(u, 1)) : (u = Ro(y), u.c(), F(u, 1), u.m(t, o)) : u && (Ee(), q(u, 1, 1, () => {
3384
3384
  u = null;
3385
3385
  }), Ie());
3386
- const z = P & 34 ? Qe(m, [
3386
+ const L = I & 34 ? Qe(m, [
3387
3387
  {
3388
3388
  floorplanData: y[5],
3389
3389
  floorIndex: y[1]
3390
3390
  }
3391
3391
  ]) : {};
3392
- s.$set(z), y[3] ? v ? (v.p(y, P), P & 8 && H(v, 1)) : (v = Bo(y), v.c(), H(v, 1), v.m(t, a)) : v && (Ee(), q(v, 1, 1, () => {
3392
+ s.$set(L), y[3] ? v ? (v.p(y, I), I & 8 && F(v, 1)) : (v = Bo(y), v.c(), F(v, 1), v.m(t, a)) : v && (Ee(), q(v, 1, 1, () => {
3393
3393
  v = null;
3394
- }), Ie()), y[4] ? b ? (b.p(y, P), P & 16 && H(b, 1)) : (b = Ho(y), b.c(), H(b, 1), b.m(t, null)) : b && (Ee(), q(b, 1, 1, () => {
3394
+ }), Ie()), y[4] ? b ? (b.p(y, I), I & 16 && F(b, 1)) : (b = Ho(y), b.c(), F(b, 1), b.m(t, null)) : b && (Ee(), q(b, 1, 1, () => {
3395
3395
  b = null;
3396
- }), Ie()), (!c || P & 1 && l !== (l = je(`floorplan-plugin__floor${y[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && x(t, "class", l);
3396
+ }), Ie()), (!c || I & 1 && l !== (l = je(`floorplan-plugin__floor${y[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && x(t, "class", l);
3397
3397
  },
3398
3398
  i(y) {
3399
- c || (H(e.$$.fragment, y), H(u), H(s.$$.fragment, y), H(v), H(b), c = !0);
3399
+ c || (F(e.$$.fragment, y), F(u), F(s.$$.fragment, y), F(v), F(b), c = !0);
3400
3400
  },
3401
3401
  o(y) {
3402
3402
  q(e.$$.fragment, y), q(u), q(s.$$.fragment, y), q(v), q(b), c = !1;
3403
3403
  },
3404
3404
  d(y) {
3405
- y && X(t), be(e), u && u.d(), be(s), v && v.d(), b && b.d();
3405
+ y && Q(t), be(e), u && u.d(), be(s), v && v.d(), b && b.d();
3406
3406
  }
3407
3407
  };
3408
3408
  }
@@ -3477,16 +3477,16 @@ function Go(i) {
3477
3477
  let u = i[6] && Qo(i);
3478
3478
  return {
3479
3479
  c() {
3480
- t = F("div");
3480
+ t = G("div");
3481
3481
  for (let m = 0; m < l.length; m += 1)
3482
3482
  l[m].c();
3483
3483
  e = fe(), ye(n.$$.fragment), o = fe(), u && u.c(), x(t, "class", "floorplan-main svelte-86bqav");
3484
3484
  },
3485
3485
  m(m, g) {
3486
- W(m, t, g);
3486
+ Y(m, t, g);
3487
3487
  for (let v = 0; v < l.length; v += 1)
3488
3488
  l[v].m(t, null);
3489
- G(t, e), ve(n, t, null), G(t, o), u && u.m(t, null), r = !0;
3489
+ X(t, e), ve(n, t, null), X(t, o), u && u.m(t, null), r = !0;
3490
3490
  },
3491
3491
  p(m, g) {
3492
3492
  if (i = m, g & 62384) {
@@ -3494,7 +3494,7 @@ function Go(i) {
3494
3494
  let b;
3495
3495
  for (b = 0; b < a.length; b += 1) {
3496
3496
  const y = Fo(i, a, b);
3497
- l[b] ? (l[b].p(y, g), H(l[b], 1)) : (l[b] = Xo(y), l[b].c(), H(l[b], 1), l[b].m(t, e));
3497
+ l[b] ? (l[b].p(y, g), F(l[b], 1)) : (l[b] = Xo(y), l[b].c(), F(l[b], 1), l[b].m(t, e));
3498
3498
  }
3499
3499
  for (Ee(), b = a.length; b < l.length; b += 1)
3500
3500
  c(b);
@@ -3508,15 +3508,15 @@ function Go(i) {
3508
3508
  cameraImageUrl: i[11]
3509
3509
  }
3510
3510
  ]) : {};
3511
- n.$set(v), i[6] ? u ? (u.p(i, g), g & 64 && H(u, 1)) : (u = Qo(i), u.c(), H(u, 1), u.m(t, null)) : u && (Ee(), q(u, 1, 1, () => {
3511
+ n.$set(v), i[6] ? u ? (u.p(i, g), g & 64 && F(u, 1)) : (u = Qo(i), u.c(), F(u, 1), u.m(t, null)) : u && (Ee(), q(u, 1, 1, () => {
3512
3512
  u = null;
3513
3513
  }), Ie());
3514
3514
  },
3515
3515
  i(m) {
3516
3516
  if (!r) {
3517
3517
  for (let g = 0; g < a.length; g += 1)
3518
- H(l[g]);
3519
- H(n.$$.fragment, m), H(u), s || _e(() => {
3518
+ F(l[g]);
3519
+ F(n.$$.fragment, m), F(u), s || _e(() => {
3520
3520
  s = Ja(t, fl, {
3521
3521
  duration: i[0],
3522
3522
  easing: ji
@@ -3531,7 +3531,7 @@ function Go(i) {
3531
3531
  q(n.$$.fragment, m), q(u), r = !1;
3532
3532
  },
3533
3533
  d(m) {
3534
- m && X(t), Gt(l, m), be(n), u && u.d();
3534
+ m && Q(t), Gt(l, m), be(n), u && u.d();
3535
3535
  }
3536
3536
  };
3537
3537
  }
@@ -3587,7 +3587,7 @@ function Xo(i) {
3587
3587
  t.$set(a);
3588
3588
  },
3589
3589
  i(s) {
3590
- e || (H(t.$$.fragment, s), e = !0);
3590
+ e || (F(t.$$.fragment, s), e = !0);
3591
3591
  },
3592
3592
  o(s) {
3593
3593
  q(t.$$.fragment, s), e = !1;
@@ -3616,7 +3616,7 @@ function Qo(i) {
3616
3616
  o & 512 && (s.floorplanData = n[9]), o & 4 && (s.northDesc = n[2]), t.$set(s);
3617
3617
  },
3618
3618
  i(n) {
3619
- e || (H(t.$$.fragment, n), e = !0);
3619
+ e || (F(t.$$.fragment, n), e = !0);
3620
3620
  },
3621
3621
  o(n) {
3622
3622
  q(t.$$.fragment, n), e = !1;
@@ -3633,28 +3633,28 @@ function Oc(i) {
3633
3633
  n && n.c(), t = Xe();
3634
3634
  },
3635
3635
  m(o, s) {
3636
- n && n.m(o, s), W(o, t, s), e = !0;
3636
+ n && n.m(o, s), Y(o, t, s), e = !0;
3637
3637
  },
3638
3638
  p(o, [s]) {
3639
- o[1] ? n ? (n.p(o, s), s & 2 && H(n, 1)) : (n = Go(o), n.c(), H(n, 1), n.m(t.parentNode, t)) : n && (Ee(), q(n, 1, 1, () => {
3639
+ o[1] ? n ? (n.p(o, s), s & 2 && F(n, 1)) : (n = Go(o), n.c(), F(n, 1), n.m(t.parentNode, t)) : n && (Ee(), q(n, 1, 1, () => {
3640
3640
  n = null;
3641
3641
  }), Ie());
3642
3642
  },
3643
3643
  i(o) {
3644
- e || (H(n), e = !0);
3644
+ e || (F(n), e = !0);
3645
3645
  },
3646
3646
  o(o) {
3647
3647
  q(n), e = !1;
3648
3648
  },
3649
3649
  d(o) {
3650
- n && n.d(o), o && X(t);
3650
+ n && n.d(o), o && Q(t);
3651
3651
  }
3652
3652
  };
3653
3653
  }
3654
3654
  function Nc(i, t, e) {
3655
- let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: h } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: g } = t, { getRoomAreaText: v } = t, { getLabelElement: b } = t, { getRuleDistanceText: y } = t, { adaptiveRoomLabelVisibleEnable: P } = t;
3656
- return i.$$set = (E) => {
3657
- "duration" in E && e(0, n = E.duration), "visible" in E && e(1, o = E.visible), "northDesc" in E && e(2, s = E.northDesc), "panoIndex" in E && e(3, r = E.panoIndex), "floorIndex" in E && e(4, a = E.floorIndex), "hoverEnable" in E && e(5, l = E.hoverEnable), "compassEnable" in E && e(6, c = E.compassEnable), "roomLabelsEnable" in E && e(7, h = E.roomLabelsEnable), "ruleLabelsEnable" in E && e(8, f = E.ruleLabelsEnable), "floorplanData" in E && e(9, u = E.floorplanData), "lastPanoramaLongitude" in E && e(10, m = E.lastPanoramaLongitude), "cameraImageUrl" in E && e(11, g = E.cameraImageUrl), "getRoomAreaText" in E && e(12, v = E.getRoomAreaText), "getLabelElement" in E && e(13, b = E.getLabelElement), "getRuleDistanceText" in E && e(14, y = E.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in E && e(15, P = E.adaptiveRoomLabelVisibleEnable);
3655
+ let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: h } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: g } = t, { getRoomAreaText: v } = t, { getLabelElement: b } = t, { getRuleDistanceText: y } = t, { adaptiveRoomLabelVisibleEnable: I } = t;
3656
+ return i.$$set = (P) => {
3657
+ "duration" in P && e(0, n = P.duration), "visible" in P && e(1, o = P.visible), "northDesc" in P && e(2, s = P.northDesc), "panoIndex" in P && e(3, r = P.panoIndex), "floorIndex" in P && e(4, a = P.floorIndex), "hoverEnable" in P && e(5, l = P.hoverEnable), "compassEnable" in P && e(6, c = P.compassEnable), "roomLabelsEnable" in P && e(7, h = P.roomLabelsEnable), "ruleLabelsEnable" in P && e(8, f = P.ruleLabelsEnable), "floorplanData" in P && e(9, u = P.floorplanData), "lastPanoramaLongitude" in P && e(10, m = P.lastPanoramaLongitude), "cameraImageUrl" in P && e(11, g = P.cameraImageUrl), "getRoomAreaText" in P && e(12, v = P.getRoomAreaText), "getLabelElement" in P && e(13, b = P.getLabelElement), "getRuleDistanceText" in P && e(14, y = P.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in P && e(15, I = P.adaptiveRoomLabelVisibleEnable);
3658
3658
  }, [
3659
3659
  n,
3660
3660
  o,
@@ -3671,7 +3671,7 @@ function Nc(i, t, e) {
3671
3671
  v,
3672
3672
  b,
3673
3673
  y,
3674
- P
3674
+ I
3675
3675
  ];
3676
3676
  }
3677
3677
  class Hi extends de {
@@ -4654,18 +4654,18 @@ function eh(i) {
4654
4654
  let t, e, n;
4655
4655
  return {
4656
4656
  c() {
4657
- t = F("div"), e = F("div"), n = F("div"), x(n, "class", "plugin-radar__camera-rotate svelte-1ty3s4p"), S(n, "background-image", "url(" + (i[0] || vt) + ")"), S(n, "transform", i[1]), x(e, "class", "plugin-radar__camera-position svelte-1ty3s4p"), S(e, "transform", i[2]), x(t, "class", "plugin-radar__camera-wrapper svelte-1ty3s4p");
4657
+ t = G("div"), e = G("div"), n = G("div"), x(n, "class", "plugin-radar__camera-rotate svelte-1ty3s4p"), M(n, "background-image", "url(" + (i[0] || vt) + ")"), M(n, "transform", i[1]), x(e, "class", "plugin-radar__camera-position svelte-1ty3s4p"), M(e, "transform", i[2]), x(t, "class", "plugin-radar__camera-wrapper svelte-1ty3s4p");
4658
4658
  },
4659
4659
  m(o, s) {
4660
- W(o, t, s), G(t, e), G(e, n);
4660
+ Y(o, t, s), X(t, e), X(e, n);
4661
4661
  },
4662
4662
  p(o, [s]) {
4663
- s & 1 && S(n, "background-image", "url(" + (o[0] || vt) + ")"), s & 2 && S(n, "transform", o[1]), s & 4 && S(e, "transform", o[2]);
4663
+ s & 1 && M(n, "background-image", "url(" + (o[0] || vt) + ")"), s & 2 && M(n, "transform", o[1]), s & 4 && M(e, "transform", o[2]);
4664
4664
  },
4665
4665
  i: ne,
4666
4666
  o: ne,
4667
4667
  d(o) {
4668
- o && X(t);
4668
+ o && Q(t);
4669
4669
  }
4670
4670
  };
4671
4671
  }
@@ -4678,8 +4678,8 @@ function nh(i, t, e) {
4678
4678
  const b = g.bounding, y = g.observers[v];
4679
4679
  if (!y)
4680
4680
  return "";
4681
- const P = (b.max.x - b.min.x) * r, E = (b.max.y - b.min.y) * r, z = Math.floor(y.positionInImage.x * P), D = Math.floor(y.positionInImage.y * E);
4682
- return `translate(${z}px, ${D}px)`;
4681
+ const I = (b.max.x - b.min.x) * r, P = (b.max.y - b.min.y) * r, L = Math.floor(y.positionInImage.x * I), D = Math.floor(y.positionInImage.y * P);
4682
+ return `translate(${L}px, ${D}px)`;
4683
4683
  }
4684
4684
  function u(g) {
4685
4685
  e(6, c = g);
@@ -4738,16 +4738,16 @@ function Zo(i, t) {
4738
4738
  key: i,
4739
4739
  first: null,
4740
4740
  c() {
4741
- e = F("div"), n = F("div"), r = fe(), x(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), S(n, "background-image", `url(${t[1].icon.url})`), S(n, "width", o), S(n, "height", s), x(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), S(e, "top", a), S(e, "left", l), this.first = e;
4741
+ e = G("div"), n = G("div"), r = fe(), x(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), M(n, "background-image", `url(${t[1].icon.url})`), M(n, "width", o), M(n, "height", s), x(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), M(e, "top", a), M(e, "left", l), this.first = e;
4742
4742
  },
4743
4743
  m(c, h) {
4744
- W(c, e, h), G(e, n), G(e, r);
4744
+ Y(c, e, h), X(e, n), X(e, r);
4745
4745
  },
4746
4746
  p(c, h) {
4747
- t = c, h & 1 && S(n, "background-image", `url(${t[1].icon.url})`), h & 1 && o !== (o = `${t[1].icon.width / 16}rem`) && S(n, "width", o), h & 1 && s !== (s = `${t[1].icon.height / 16}rem`) && S(n, "height", s), h & 1 && a !== (a = `${t[1].positionInImage.y * 100}%`) && S(e, "top", a), h & 1 && l !== (l = `${t[1].positionInImage.x * 100}%`) && S(e, "left", l);
4747
+ t = c, h & 1 && M(n, "background-image", `url(${t[1].icon.url})`), h & 1 && o !== (o = `${t[1].icon.width / 16}rem`) && M(n, "width", o), h & 1 && s !== (s = `${t[1].icon.height / 16}rem`) && M(n, "height", s), h & 1 && a !== (a = `${t[1].positionInImage.y * 100}%`) && M(e, "top", a), h & 1 && l !== (l = `${t[1].positionInImage.x * 100}%`) && M(e, "left", l);
4748
4748
  },
4749
4749
  d(c) {
4750
- c && X(e);
4750
+ c && Q(e);
4751
4751
  }
4752
4752
  };
4753
4753
  }
@@ -4760,13 +4760,13 @@ function sh(i) {
4760
4760
  }
4761
4761
  return {
4762
4762
  c() {
4763
- t = F("div");
4763
+ t = G("div");
4764
4764
  for (let r = 0; r < e.length; r += 1)
4765
4765
  e[r].c();
4766
4766
  x(t, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
4767
4767
  },
4768
4768
  m(r, a) {
4769
- W(r, t, a);
4769
+ Y(r, t, a);
4770
4770
  for (let l = 0; l < e.length; l += 1)
4771
4771
  e[l].m(t, null);
4772
4772
  },
@@ -4776,7 +4776,7 @@ function sh(i) {
4776
4776
  i: ne,
4777
4777
  o: ne,
4778
4778
  d(r) {
4779
- r && X(t);
4779
+ r && Q(t);
4780
4780
  for (let a = 0; a < e.length; a += 1)
4781
4781
  e[a].d();
4782
4782
  }
@@ -4827,7 +4827,7 @@ function Jo(i) {
4827
4827
  t.$set(a);
4828
4828
  },
4829
4829
  i(s) {
4830
- e || (H(t.$$.fragment, s), e = !0);
4830
+ e || (F(t.$$.fragment, s), e = !0);
4831
4831
  },
4832
4832
  o(s) {
4833
4833
  q(t.$$.fragment, s), e = !1;
@@ -4859,7 +4859,7 @@ function lh(i) {
4859
4859
  ye(t.$$.fragment), e = fe(), ye(n.$$.fragment), o = fe(), c && c.c(), s = Xe();
4860
4860
  },
4861
4861
  m(h, f) {
4862
- ve(t, h, f), W(h, e, f), ve(n, h, f), W(h, o, f), c && c.m(h, f), W(h, s, f), r = !0;
4862
+ ve(t, h, f), Y(h, e, f), ve(n, h, f), Y(h, o, f), c && c.m(h, f), Y(h, s, f), r = !0;
4863
4863
  },
4864
4864
  p(h, [f]) {
4865
4865
  const u = f & 20 ? Qe(a, [
@@ -4870,18 +4870,18 @@ function lh(i) {
4870
4870
  ]) : {};
4871
4871
  t.$set(u);
4872
4872
  const m = {};
4873
- f & 32 && (m.extraObjects = h[5]), n.$set(m), h[3] ? c ? (c.p(h, f), f & 8 && H(c, 1)) : (c = Jo(h), c.c(), H(c, 1), c.m(s.parentNode, s)) : c && (Ee(), q(c, 1, 1, () => {
4873
+ f & 32 && (m.extraObjects = h[5]), n.$set(m), h[3] ? c ? (c.p(h, f), f & 8 && F(c, 1)) : (c = Jo(h), c.c(), F(c, 1), c.m(s.parentNode, s)) : c && (Ee(), q(c, 1, 1, () => {
4874
4874
  c = null;
4875
4875
  }), Ie());
4876
4876
  },
4877
4877
  i(h) {
4878
- r || (H(t.$$.fragment, h), H(n.$$.fragment, h), H(c), r = !0);
4878
+ r || (F(t.$$.fragment, h), F(n.$$.fragment, h), F(c), r = !0);
4879
4879
  },
4880
4880
  o(h) {
4881
4881
  q(t.$$.fragment, h), q(n.$$.fragment, h), q(c), r = !1;
4882
4882
  },
4883
4883
  d(h) {
4884
- be(t, h), h && X(e), be(n, h), h && X(o), c && c.d(h), h && X(s);
4884
+ be(t, h), h && Q(e), be(n, h), h && Q(o), c && c.d(h), h && Q(s);
4885
4885
  }
4886
4886
  };
4887
4887
  }
@@ -4922,24 +4922,24 @@ function Uo(i) {
4922
4922
  let t, e, n, o = i[6] !== 0 && Vo(i);
4923
4923
  return {
4924
4924
  c() {
4925
- t = F("div"), o && o.c(), x(t, "class", "plugin-floorplan-radar svelte-1mvqyqq"), _e(() => i[12].call(t));
4925
+ t = G("div"), o && o.c(), x(t, "class", "plugin-floorplan-radar svelte-1mvqyqq"), _e(() => i[12].call(t));
4926
4926
  },
4927
4927
  m(s, r) {
4928
- W(s, t, r), o && o.m(t, null), e = Xt(t, i[12].bind(t)), n = !0;
4928
+ Y(s, t, r), o && o.m(t, null), e = Xt(t, i[12].bind(t)), n = !0;
4929
4929
  },
4930
4930
  p(s, r) {
4931
- s[6] !== 0 ? o ? (o.p(s, r), r & 64 && H(o, 1)) : (o = Vo(s), o.c(), H(o, 1), o.m(t, null)) : o && (Ee(), q(o, 1, 1, () => {
4931
+ s[6] !== 0 ? o ? (o.p(s, r), r & 64 && F(o, 1)) : (o = Vo(s), o.c(), F(o, 1), o.m(t, null)) : o && (Ee(), q(o, 1, 1, () => {
4932
4932
  o = null;
4933
4933
  }), Ie());
4934
4934
  },
4935
4935
  i(s) {
4936
- n || (H(o), n = !0);
4936
+ n || (F(o), n = !0);
4937
4937
  },
4938
4938
  o(s) {
4939
4939
  q(o), n = !1;
4940
4940
  },
4941
4941
  d(s) {
4942
- s && X(t), o && o.d(), e();
4942
+ s && Q(t), o && o.d(), e();
4943
4943
  }
4944
4944
  };
4945
4945
  }
@@ -4972,10 +4972,10 @@ function Vo(i) {
4972
4972
  f = Ge(f, h[u]);
4973
4973
  return o = new ih({ props: f }), {
4974
4974
  c() {
4975
- t = F("div"), ye(e.$$.fragment), n = fe(), ye(o.$$.fragment), x(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), S(t, "width", s), S(t, "height", r);
4975
+ t = G("div"), ye(e.$$.fragment), n = fe(), ye(o.$$.fragment), x(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), M(t, "width", s), M(t, "height", r);
4976
4976
  },
4977
4977
  m(u, m) {
4978
- W(u, t, m), ve(e, t, null), G(t, n), ve(o, t, null), a = !0;
4978
+ Y(u, t, m), ve(e, t, null), X(t, n), ve(o, t, null), a = !0;
4979
4979
  },
4980
4980
  p(u, m) {
4981
4981
  const g = m & 1581 ? Qe(l, [
@@ -4997,16 +4997,16 @@ function Vo(i) {
4997
4997
  cameraImageUrl: u[4]
4998
4998
  }
4999
4999
  ]) : {};
5000
- o.$set(v), m & 256 && s !== (s = `${u[8]}px`) && S(t, "width", s), m & 2048 && r !== (r = `${u[11]}px`) && S(t, "height", r);
5000
+ o.$set(v), m & 256 && s !== (s = `${u[8]}px`) && M(t, "width", s), m & 2048 && r !== (r = `${u[11]}px`) && M(t, "height", r);
5001
5001
  },
5002
5002
  i(u) {
5003
- a || (H(e.$$.fragment, u), H(o.$$.fragment, u), a = !0);
5003
+ a || (F(e.$$.fragment, u), F(o.$$.fragment, u), a = !0);
5004
5004
  },
5005
5005
  o(u) {
5006
5006
  q(e.$$.fragment, u), q(o.$$.fragment, u), a = !1;
5007
5007
  },
5008
5008
  d(u) {
5009
- u && X(t), be(e), be(o);
5009
+ u && Q(t), be(e), be(o);
5010
5010
  }
5011
5011
  };
5012
5012
  }
@@ -5017,21 +5017,21 @@ function dh(i) {
5017
5017
  n && n.c(), t = Xe();
5018
5018
  },
5019
5019
  m(o, s) {
5020
- n && n.m(o, s), W(o, t, s), e = !0;
5020
+ n && n.m(o, s), Y(o, t, s), e = !0;
5021
5021
  },
5022
5022
  p(o, [s]) {
5023
- o[1] ? n ? (n.p(o, s), s & 2 && H(n, 1)) : (n = Uo(o), n.c(), H(n, 1), n.m(t.parentNode, t)) : n && (Ee(), q(n, 1, 1, () => {
5023
+ o[1] ? n ? (n.p(o, s), s & 2 && F(n, 1)) : (n = Uo(o), n.c(), F(n, 1), n.m(t.parentNode, t)) : n && (Ee(), q(n, 1, 1, () => {
5024
5024
  n = null;
5025
5025
  }), Ie());
5026
5026
  },
5027
5027
  i(o) {
5028
- e || (H(n), e = !0);
5028
+ e || (F(n), e = !0);
5029
5029
  },
5030
5030
  o(o) {
5031
5031
  q(n), e = !1;
5032
5032
  },
5033
5033
  d(o) {
5034
- n && n.d(o), o && X(t);
5034
+ n && n.d(o), o && Q(t);
5035
5035
  }
5036
5036
  };
5037
5037
  }
@@ -5050,10 +5050,10 @@ function fh(i, t, e) {
5050
5050
  "five" in y && e(0, n = y.five), "visible" in y && e(1, o = y.visible), "hoverEnable" in y && e(2, s = y.hoverEnable), "floorplanData" in y && e(3, r = y.floorplanData), "cameraImageUrl" in y && e(4, a = y.cameraImageUrl), "extraObjects" in y && e(5, l = y.extraObjects);
5051
5051
  }, i.$$.update = () => {
5052
5052
  if (i.$$.dirty & 456) {
5053
- const y = Math.min(f, u), { max: P, min: E } = r.bounding, z = P.x - E.x, D = P.y - E.y, I = function() {
5054
- return z > D ? [y, y / z * D] : [y / D * z, y];
5053
+ const y = Math.min(f, u), { max: I, min: P } = r.bounding, L = I.x - P.x, D = I.y - P.y, E = function() {
5054
+ return L > D ? [y, y / L * D] : [y / D * L, y];
5055
5055
  }();
5056
- e(8, m = I[0]), e(11, g = I[1]), e(9, c = m / z);
5056
+ e(8, m = E[0]), e(11, g = E[1]), e(9, c = m / L);
5057
5057
  }
5058
5058
  }, [
5059
5059
  n,
@@ -5332,27 +5332,27 @@ function er(i, t) {
5332
5332
  const jf = (i, t) => {
5333
5333
  var h;
5334
5334
  const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (h = t.north_rad) != null ? h : void 0, o = {}, s = async (f) => {
5335
- var K;
5336
- const u = (f == null ? void 0 : f.fbx_url) || e, m = (K = f == null ? void 0 : f.north_rad) != null ? K : n;
5335
+ var _;
5336
+ const u = (f == null ? void 0 : f.fbx_url) || e, m = (_ = f == null ? void 0 : f.north_rad) != null ? _ : n;
5337
5337
  if (typeof m != "number")
5338
5338
  throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
5339
- const g = i.model.bounding, v = g.max.x - g.min.x, b = g.max.z - g.min.z, y = Math.max(v, b), E = await new Os().loadAsync(u);
5340
- er(E, {
5339
+ const g = i.model.bounding, v = g.max.x - g.min.x, b = g.max.z - g.min.z, y = Math.max(v, b), P = await new Os().loadAsync(u);
5340
+ er(P, {
5341
5341
  transparent: !0,
5342
5342
  side: j.DoubleSide,
5343
5343
  blending: j.AdditiveBlending
5344
5344
  });
5345
- const z = [0, m - Math.PI / 2, 0], {
5345
+ const L = [0, m - Math.PI / 2, 0], {
5346
5346
  model: {
5347
5347
  bounding: {
5348
- max: { x: D, z: I },
5349
- min: { x: T, y: C, z: M }
5348
+ max: { x: D, z: E },
5349
+ min: { x: T, y: C, z }
5350
5350
  }
5351
5351
  }
5352
5352
  } = i;
5353
5353
  o.yBase = C;
5354
- const N = { x: (D + T) / 2, y: C - 1.6, z: (I + M) / 2 }, B = 45e-4 * y;
5355
- return gh(E, { position: N, rotation: z, scale: B }), o.object = E, !0;
5354
+ const R = { x: (D + T) / 2, y: C - 1.6, z: (E + z) / 2 }, H = 45e-4 * y;
5355
+ return gh(P, { position: R, rotation: L, scale: H }), o.object = P, !0;
5356
5356
  }, r = ({ latitude: f }) => {
5357
5357
  if (!o.object)
5358
5358
  return;
@@ -5385,55 +5385,55 @@ function vh(i, t) {
5385
5385
  }
5386
5386
  const bh = ({ x: i, y: t, z: e }) => new $(i, t, e), Of = (i, t) => {
5387
5387
  var v, b, y;
5388
- const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (b = t.position) != null ? b : void 0, s = (y = t.rad) != null ? y : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = async (P) => {
5389
- var M, N, B, K, k, J, R;
5390
- const E = (M = P == null ? void 0 : P.position) != null ? M : o;
5391
- if (!E)
5388
+ const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (b = t.position) != null ? b : void 0, s = (y = t.rad) != null ? y : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = async (I) => {
5389
+ var z, R, H, _, S, O, B;
5390
+ const P = (z = I == null ? void 0 : I.position) != null ? z : o;
5391
+ if (!P)
5392
5392
  return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
5393
- const z = bh(E), D = (N = P == null ? void 0 : P.rad) != null ? N : s, I = (B = P == null ? void 0 : P.fbx_url) != null ? B : r;
5393
+ const L = bh(P), D = (R = I == null ? void 0 : I.rad) != null ? R : s, E = (H = I == null ? void 0 : I.fbx_url) != null ? H : r;
5394
5394
  if (e.rad = D, D === void 0)
5395
5395
  return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${D}`);
5396
- const T = await new Os().loadAsync(I);
5397
- T.position.copy(z), T.rotation.z = D, T.scale.set(0.8, 0.8, 0.8), er(T, { transparent: !0, side: j.DoubleSide });
5398
- const C = (R = (J = (k = (K = T.children) == null ? void 0 : K[0]) == null ? void 0 : k.children) == null ? void 0 : J[3]) == null ? void 0 : R.clone();
5396
+ const T = await new Os().loadAsync(E);
5397
+ T.position.copy(L), T.rotation.z = D, T.scale.set(0.8, 0.8, 0.8), er(T, { transparent: !0, side: j.DoubleSide });
5398
+ const C = (B = (O = (S = (_ = T.children) == null ? void 0 : _[0]) == null ? void 0 : S.children) == null ? void 0 : O[3]) == null ? void 0 : B.clone();
5399
5399
  return C ? (C.material = new sn({ transparent: !0, map: vh("\u5165\u6237\u95E8") }), C.renderOrder = 3, T.children[0].add(C), e.object = T, !0) : Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${C}`);
5400
5400
  }, c = () => {
5401
5401
  if (e.animation)
5402
5402
  return;
5403
5403
  if (!e.object)
5404
5404
  return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
5405
- const P = 1, E = new Vr(e.object);
5406
- a.push(E);
5407
- const z = E.clipAction(e.object.animations[0]);
5408
- z.timeScale = P;
5405
+ const I = 1, P = new Vr(e.object);
5406
+ a.push(P);
5407
+ const L = P.clipAction(e.object.animations[0]);
5408
+ L.timeScale = I;
5409
5409
  let D;
5410
- const I = () => {
5411
- let N = 0, B = 0;
5412
- const K = 1e3 / 30, k = (J) => {
5413
- N = requestAnimationFrame(k);
5414
- const R = J - B;
5415
- R < K || (B = J, a.forEach((_) => _.update(R / 1e3)), i.needsRender = !0);
5410
+ const E = () => {
5411
+ let R = 0, H = 0;
5412
+ const _ = 1e3 / 30, S = (O) => {
5413
+ R = requestAnimationFrame(S);
5414
+ const B = O - H;
5415
+ B < _ || (H = O, a.forEach((K) => K.update(B / 1e3)), i.needsRender = !0);
5416
5416
  };
5417
- return N = requestAnimationFrame(k), () => {
5418
- cancelAnimationFrame(N);
5417
+ return R = requestAnimationFrame(S), () => {
5418
+ cancelAnimationFrame(R);
5419
5419
  };
5420
- }, M = { play: () => {
5421
- D || (z.play(), D = I(), requestAnimationFrame(() => {
5420
+ }, z = { play: () => {
5421
+ D || (L.play(), D = E(), requestAnimationFrame(() => {
5422
5422
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
5423
5423
  }));
5424
5424
  }, stop: () => {
5425
- z.stop(), D == null || D(), D = void 0;
5425
+ L.stop(), D == null || D(), D = void 0;
5426
5426
  } };
5427
- e.animation = M;
5428
- }, h = (P) => {
5429
- var z;
5427
+ e.animation = z;
5428
+ }, h = (I) => {
5429
+ var L;
5430
5430
  if (!e.object)
5431
5431
  return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
5432
- ((z = P == null ? void 0 : P.animationEnable) != null ? z : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
5432
+ ((L = I == null ? void 0 : I.animationEnable) != null ? L : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
5433
5433
  }, f = () => {
5434
5434
  !e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
5435
- }, u = (P) => P === "Floorplan" ? h() : f();
5436
- return { load: l, enable: (P) => (e.enabled || (e.enabled = !0, u(i.currentMode), i.on("modeChange", u), h(P)), !0), disable: () => (e.enabled && (e.enabled = !1, f(), i.off("modeChange", u)), !0) };
5435
+ }, u = (I) => I === "Floorplan" ? h() : f();
5436
+ return { load: l, enable: (I) => (e.enabled || (e.enabled = !0, u(i.currentMode), i.on("modeChange", u), h(I)), !0), disable: () => (e.enabled && (e.enabled = !1, f(), i.off("modeChange", u)), !0) };
5437
5437
  }, Yn = window.requestAnimationFrame || ((i) => setTimeout(i, 16)), Ah = window.cancelAnimationFrame || clearTimeout;
5438
5438
  function Wi(i, t = 0) {
5439
5439
  t <= 0 ? Yn(i) : Yn(() => Wi(i, t - 1));
@@ -5708,8 +5708,8 @@ const xh = `<style type="text/css">
5708
5708
  <div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(b)}</div>
5709
5709
  </div>
5710
5710
  </div>
5711
- `, P = document.createElement("div");
5712
- return P.setAttribute("class", "PanoRulerPlugin-rule"), P.setAttribute("data-name", v), P.setAttribute("style", "display: none"), P.innerHTML = y, P;
5711
+ `, I = document.createElement("div");
5712
+ return I.setAttribute("class", "PanoRulerPlugin-rule"), I.setAttribute("data-name", v), I.setAttribute("style", "display: none"), I.innerHTML = y, I;
5713
5713
  }, o = document.createElement("div");
5714
5714
  o.setAttribute(
5715
5715
  "style",
@@ -5720,166 +5720,166 @@ const xh = `<style type="text/css">
5720
5720
  const r = {}, a = (v, b) => {
5721
5721
  if (e.loaded)
5722
5722
  throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
5723
- const y = Lh(v, i), P = i.work;
5724
- if (!P)
5723
+ const y = Lh(v, i), I = i.work;
5724
+ if (!I)
5725
5725
  return !1;
5726
- for (const E in b) {
5727
- const z = b[E], { standingPosition: D } = P.observers[0], I = z.map(({ x: T, z: C, observers: M }) => {
5728
- const N = M.length > 0 ? v.rooms[v.observers[M[0]]].name : "", B = y[N] ? y[N].floor : null;
5729
- let K = 1 / 0, k = {
5726
+ for (const P in b) {
5727
+ const L = b[P], { standingPosition: D } = I.observers[0], E = L.map(({ x: T, z: C, observers: z }) => {
5728
+ const R = z.length > 0 ? v.rooms[v.observers[z[0]]].name : "", H = y[R] ? y[R].floor : null;
5729
+ let _ = 1 / 0, S = {
5730
5730
  index: 0,
5731
5731
  x: D.x,
5732
5732
  y: D.y,
5733
5733
  z: D.z
5734
5734
  };
5735
- M.forEach((Q) => {
5736
- if (!P.observers[Q])
5735
+ z.forEach((W) => {
5736
+ if (!I.observers[W])
5737
5737
  return;
5738
- const { standingPosition: ee } = P.observers[Q], se = {
5739
- index: Q,
5738
+ const { standingPosition: ee } = I.observers[W], se = {
5739
+ index: W,
5740
5740
  x: ee.x,
5741
5741
  y: ee.y,
5742
5742
  z: ee.z
5743
5743
  }, ie = Ch({ x: T, z: C }, se);
5744
- B ? ie < K && Math.abs(se.y - B) < 0.3 && (K = ie, k = se) : ie < K && (K = ie, k = se);
5744
+ H ? ie < _ && Math.abs(se.y - H) < 0.3 && (_ = ie, S = se) : ie < _ && (_ = ie, S = se);
5745
5745
  });
5746
- const J = new $(T, k.y, C);
5747
- Object.assign(J, { observers: M });
5748
- const R = y[N] ? y[N].roof : null, _ = R ? new $(T, R, C) : null;
5749
- return _ && Object.assign(_, { observers: M }), { origin: J, vertical: _ };
5746
+ const O = new $(T, S.y, C);
5747
+ Object.assign(O, { observers: z });
5748
+ const B = y[R] ? y[R].roof : null, K = B ? new $(T, B, C) : null;
5749
+ return K && Object.assign(K, { observers: z }), { origin: O, vertical: K };
5750
5750
  });
5751
- r[E] = {
5752
- origins: I.map((T) => T.origin),
5751
+ r[P] = {
5752
+ origins: E.map((T) => T.origin),
5753
5753
  rules: []
5754
5754
  };
5755
- for (const { origin: T, vertical: C } of I) {
5755
+ for (const { origin: T, vertical: C } of E) {
5756
5756
  if (!C)
5757
5757
  continue;
5758
- const M = n(E, T.distanceTo(C));
5759
- o.append(M), r[E].rules.push({ vertical: !0, rule: [T, C], $element: M });
5758
+ const z = n(P, T.distanceTo(C));
5759
+ o.append(z), r[P].rules.push({ vertical: !0, rule: [T, C], $element: z });
5760
5760
  }
5761
- for (let T = 0; T < I.length; T++) {
5761
+ for (let T = 0; T < E.length; T++) {
5762
5762
  let C = T + 1;
5763
- C >= I.length && (C = 0);
5764
- const { origin: M } = I[T], { origin: N } = I[C], B = n(E, M.distanceTo(N));
5765
- o.append(B), r[E].rules.push({ vertical: !1, rule: [M, N], $element: B });
5763
+ C >= E.length && (C = 0);
5764
+ const { origin: z } = E[T], { origin: R } = E[C], H = n(P, z.distanceTo(R));
5765
+ o.append(H), r[P].rules.push({ vertical: !1, rule: [z, R], $element: H });
5766
5766
  }
5767
5767
  }
5768
5768
  return e.loaded = !0, !0;
5769
5769
  }, l = async (v, b, y) => {
5770
- const P = v || t.roomInfo, E = b || t.roomRules;
5771
- if (!P || !E)
5770
+ const I = v || t.roomInfo, P = b || t.roomRules;
5771
+ if (!I || !P)
5772
5772
  throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
5773
- return e.loaded = !1, e.options = { ...e.options, ...y || {} }, i.model.loaded ? a(P, E) : await new Promise(
5774
- (z) => i.once("modelLoaded", () => z(a(P, E)))
5773
+ return e.loaded = !1, e.options = { ...e.options, ...y || {} }, i.model.loaded ? a(I, P) : await new Promise(
5774
+ (L) => i.once("modelLoaded", () => L(a(I, P)))
5775
5775
  );
5776
5776
  };
5777
5777
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
5778
- const c = (v, b, y, P) => {
5779
- const E = [
5778
+ const c = (v, b, y, I) => {
5779
+ const P = [
5780
5780
  [
5781
5781
  { x: 0, y: 0 },
5782
5782
  { x: y, y: 0 }
5783
5783
  ],
5784
5784
  [
5785
5785
  { x: 0, y: 0 },
5786
- { x: 0, y: P }
5786
+ { x: 0, y: I }
5787
5787
  ],
5788
5788
  [
5789
5789
  { x: y, y: 0 },
5790
- { x: y, y: P }
5790
+ { x: y, y: I }
5791
5791
  ],
5792
5792
  [
5793
- { x: 0, y: P },
5794
- { x: y, y: P }
5793
+ { x: 0, y: I },
5794
+ { x: y, y: I }
5795
5795
  ]
5796
- ], z = [];
5797
- for (let D = 0; D < E.length; D++) {
5798
- const I = nr([v, b], [E[D][0], E[D][1]], !0);
5799
- I && z.push(I);
5796
+ ], L = [];
5797
+ for (let D = 0; D < P.length; D++) {
5798
+ const E = nr([v, b], [P[D][0], P[D][1]], !0);
5799
+ E && L.push(E);
5800
5800
  }
5801
- return z.length === 0 ? !1 : z;
5801
+ return L.length === 0 ? !1 : L;
5802
5802
  }, h = () => {
5803
- var M;
5804
- const v = (M = i.getElement()) == null ? void 0 : M.parentElement;
5803
+ var z;
5804
+ const v = (z = i.getElement()) == null ? void 0 : z.parentElement;
5805
5805
  if (!v || !e.loaded || Object.keys(r).length <= 0)
5806
5806
  return;
5807
- const { panoIndex: b, camera: y, currentMode: P } = i;
5807
+ const { panoIndex: b, camera: y, currentMode: I } = i;
5808
5808
  if (b === void 0)
5809
5809
  return;
5810
- let E;
5811
- for (const N in r)
5812
- N.split(",").indexOf(b.toString()) >= 0 && (E = N);
5813
- if (!E) {
5814
- for (const N in r)
5815
- for (const { $element: B } of r[N].rules)
5816
- B.style.display = "none";
5810
+ let P;
5811
+ for (const R in r)
5812
+ R.split(",").indexOf(b.toString()) >= 0 && (P = R);
5813
+ if (!P) {
5814
+ for (const R in r)
5815
+ for (const { $element: H } of r[R].rules)
5816
+ H.style.display = "none";
5817
5817
  return;
5818
5818
  }
5819
- const z = y.position, D = y.getWorldDirection(new $()), I = v.clientWidth, T = v.clientHeight;
5820
- if (P !== Se.Mode.Panorama) {
5821
- for (const N in r)
5822
- for (const { $element: B } of r[N].rules)
5823
- B.style.display = "none";
5819
+ const L = y.position, D = y.getWorldDirection(new $()), E = v.clientWidth, T = v.clientHeight;
5820
+ if (I !== Se.Mode.Panorama) {
5821
+ for (const R in r)
5822
+ for (const { $element: H } of r[R].rules)
5823
+ H.style.display = "none";
5824
5824
  return;
5825
5825
  }
5826
- for (const N in r)
5827
- for (const { $element: B } of r[N].rules)
5828
- B.style.display = N === E ? "block" : "none";
5829
- const [C] = r[E].origins.slice().filter((N) => N.observers.indexOf(b) >= 0).sort((N, B) => {
5830
- const K = N.clone().setY(0).sub(z).normalize().angleTo(D.clone().setY(0)), k = B.clone().setY(0).sub(z).normalize().angleTo(D.clone().setY(0));
5831
- return K - k;
5826
+ for (const R in r)
5827
+ for (const { $element: H } of r[R].rules)
5828
+ H.style.display = R === P ? "block" : "none";
5829
+ const [C] = r[P].origins.slice().filter((R) => R.observers.indexOf(b) >= 0).sort((R, H) => {
5830
+ const _ = R.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0)), S = H.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0));
5831
+ return _ - S;
5832
5832
  });
5833
- for (const { rule: N, vertical: B, $element: K } of r[E].rules) {
5834
- const [k, J] = N, R = K.querySelector(".PanoRulerPlugin-rule-line");
5835
- if (!R)
5833
+ for (const { rule: R, vertical: H, $element: _ } of r[P].rules) {
5834
+ const [S, O] = R, B = _.querySelector(".PanoRulerPlugin-rule-line");
5835
+ if (!B)
5836
5836
  return;
5837
5837
  if (!C) {
5838
- K.style.display = "none";
5838
+ _.style.display = "none";
5839
5839
  continue;
5840
5840
  }
5841
- if (k !== C && J !== C) {
5842
- K.style.display = "none";
5841
+ if (S !== C && O !== C) {
5842
+ _.style.display = "none";
5843
5843
  continue;
5844
5844
  }
5845
- if (k.distanceTo(J) < 0.3) {
5846
- K.style.display = "none";
5845
+ if (S.distanceTo(O) < 0.3) {
5846
+ _.style.display = "none";
5847
5847
  continue;
5848
5848
  }
5849
- if (k.observers.indexOf(b) === -1 || J.observers.indexOf(b) === -1) {
5850
- K.style.display = "none";
5849
+ if (S.observers.indexOf(b) === -1 || O.observers.indexOf(b) === -1) {
5850
+ _.style.display = "none";
5851
5851
  continue;
5852
5852
  }
5853
- if (k.clone().sub(z).normalize().angleTo(D) > Math.PI / 2) {
5854
- K.style.display = "none";
5853
+ if (S.clone().sub(L).normalize().angleTo(D) > Math.PI / 2) {
5854
+ _.style.display = "none";
5855
5855
  continue;
5856
5856
  }
5857
- if (J.clone().sub(z).normalize().angleTo(D) > Math.PI / 2) {
5858
- K.style.display = "none";
5857
+ if (O.clone().sub(L).normalize().angleTo(D) > Math.PI / 2) {
5858
+ _.style.display = "none";
5859
5859
  continue;
5860
5860
  }
5861
- const te = k.distanceTo(J);
5862
- if (J.clone().sub(J.clone().sub(k).divide(new $(2, 2, 2))).distanceTo(z) / te > 8) {
5863
- K.style.display = "none";
5861
+ const te = S.distanceTo(O);
5862
+ if (O.clone().sub(O.clone().sub(S).divide(new $(2, 2, 2))).distanceTo(L) / te > 8) {
5863
+ _.style.display = "none";
5864
5864
  continue;
5865
5865
  }
5866
- const se = k.clone().project(y), ie = (se.x + 1) / 2 * I, ce = (-se.y + 1) / 2 * T, Ae = J.clone().project(y), xe = (Ae.x + 1) / 2 * I, ze = (-Ae.y + 1) / 2 * T, Y = Math.sqrt(Math.pow(xe - ie, 2) + Math.pow(ze - ce, 2));
5867
- let re = Y, oe = 50;
5866
+ const se = S.clone().project(y), ie = (se.x + 1) / 2 * E, ce = (-se.y + 1) / 2 * T, Ae = O.clone().project(y), xe = (Ae.x + 1) / 2 * E, ze = (-Ae.y + 1) / 2 * T, Z = Math.sqrt(Math.pow(xe - ie, 2) + Math.pow(ze - ce, 2));
5867
+ let re = Z, oe = 50;
5868
5868
  const V = c({ x: ~~ie, y: ~~ce }, {
5869
5869
  x: ~~xe,
5870
5870
  y: ~~ze
5871
- }, I, T);
5872
- if (V && V.length === 1 && (C === k ? (re = Math.sqrt(Math.pow(V[0].x - ie, 2) + Math.pow(V[0].y - ce, 2)), oe = re / Y * 50) : C === J && (re = Math.sqrt(Math.pow(V[0].x - xe, 2) + Math.pow(V[0].y - ze, 2)), oe = 100 - re / Y * 50)), V && V.length === 2) {
5871
+ }, E, T);
5872
+ if (V && V.length === 1 && (C === S ? (re = Math.sqrt(Math.pow(V[0].x - ie, 2) + Math.pow(V[0].y - ce, 2)), oe = re / Z * 50) : C === O && (re = Math.sqrt(Math.pow(V[0].x - xe, 2) + Math.pow(V[0].y - ze, 2)), oe = 100 - re / Z * 50)), V && V.length === 2) {
5873
5873
  const Fe = {
5874
5874
  x: (V[0].x + V[1].x) / 2,
5875
5875
  y: (V[0].y + V[1].y) / 2
5876
5876
  };
5877
5877
  oe = Math.sqrt(
5878
5878
  Math.pow(Fe.x - ie, 2) + Math.pow(Fe.y - ce, 2)
5879
- ) / Y * 100;
5879
+ ) / Z * 100;
5880
5880
  }
5881
- const We = (Math.PI / 2 - Math.atan2(xe - ie, ce - ze)) / Math.PI * 180, le = R.querySelector(".PanoRulerPlugin-rule-label"), He = le.children[0].clientWidth;
5882
- He >= Y || He / 2 >= oe / 100 * Y || He / 2 >= (1 - oe / 100) * Y ? R.style.display = "none" : (R.style.display = "block", R.style.width = Y + "px", R.style.left = ie + "px", R.style.top = ce + "px", R.style.transform = `rotate(${-We}deg)`, le.style.left = `${oe}%`);
5881
+ const We = (Math.PI / 2 - Math.atan2(xe - ie, ce - ze)) / Math.PI * 180, le = B.querySelector(".PanoRulerPlugin-rule-label"), He = le.children[0].clientWidth;
5882
+ He >= Z || He / 2 >= oe / 100 * Z || He / 2 >= (1 - oe / 100) * Z ? B.style.display = "none" : (B.style.display = "block", B.style.width = Z + "px", B.style.left = ie + "px", B.style.top = ce + "px", B.style.transform = `rotate(${-We}deg)`, le.style.left = `${oe}%`);
5883
5883
  }
5884
5884
  }, f = () => ir(h), u = () => {
5885
5885
  var v, b;
@@ -5889,9 +5889,9 @@ const xh = `<style type="text/css">
5889
5889
  if (v.distanceText && v.distanceText !== e.options.distanceText) {
5890
5890
  const b = v.distanceText;
5891
5891
  e.options.distanceText = b, Object.values(r).forEach((y) => {
5892
- y.rules.forEach((P) => {
5893
- const [E, z] = P.rule, D = E.distanceTo(z), I = P.$element.querySelector(".PanoRulerPlugin-rule-label-name");
5894
- !I || (I.innerText = b(D));
5892
+ y.rules.forEach((I) => {
5893
+ const [P, L] = I.rule, D = P.distanceTo(L), E = I.$element.querySelector(".PanoRulerPlugin-rule-label-name");
5894
+ !E || (E.innerText = b(D));
5895
5895
  });
5896
5896
  });
5897
5897
  }
@@ -5917,13 +5917,13 @@ function Th(i) {
5917
5917
  n[o] = es($o(i, e, o));
5918
5918
  return {
5919
5919
  c() {
5920
- t = F("div");
5920
+ t = G("div");
5921
5921
  for (let o = 0; o < n.length; o += 1)
5922
5922
  n[o].c();
5923
5923
  x(t, "class", "rule-mixed-line svelte-1h27ktp");
5924
5924
  },
5925
5925
  m(o, s) {
5926
- W(o, t, s);
5926
+ Y(o, t, s);
5927
5927
  for (let r = 0; r < n.length; r += 1)
5928
5928
  n[r].m(t, null);
5929
5929
  },
@@ -5941,7 +5941,7 @@ function Th(i) {
5941
5941
  }
5942
5942
  },
5943
5943
  d(o) {
5944
- o && X(t), Gt(n, o);
5944
+ o && Q(t), Gt(n, o);
5945
5945
  }
5946
5946
  };
5947
5947
  }
@@ -5949,16 +5949,16 @@ function Dh(i) {
5949
5949
  let t, e;
5950
5950
  return {
5951
5951
  c() {
5952
- t = F("em"), x(t, "class", e = je(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), x(t, "style", i[3]);
5952
+ t = G("em"), x(t, "class", e = je(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), x(t, "style", i[3]);
5953
5953
  },
5954
5954
  m(n, o) {
5955
- W(n, t, o);
5955
+ Y(n, t, o);
5956
5956
  },
5957
5957
  p(n, o) {
5958
5958
  o & 1 && e !== (e = je(n[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && x(t, "class", e), o & 8 && x(t, "style", n[3]);
5959
5959
  },
5960
5960
  d(n) {
5961
- n && X(t);
5961
+ n && Q(t);
5962
5962
  }
5963
5963
  };
5964
5964
  }
@@ -5966,16 +5966,16 @@ function es(i) {
5966
5966
  let t, e, n = `${i[6].width}px`;
5967
5967
  return {
5968
5968
  c() {
5969
- t = F("div"), x(t, "class", e = je(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), x(t, "style", i[3]), S(t, "width", n);
5969
+ t = G("div"), x(t, "class", e = je(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), x(t, "style", i[3]), M(t, "width", n);
5970
5970
  },
5971
5971
  m(o, s) {
5972
- W(o, t, s);
5972
+ Y(o, t, s);
5973
5973
  },
5974
5974
  p(o, s) {
5975
- s & 1 && e !== (e = je(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && x(t, "class", e), s & 8 && x(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && S(t, "width", n);
5975
+ s & 1 && e !== (e = je(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && x(t, "class", e), s & 8 && x(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && M(t, "width", n);
5976
5976
  },
5977
5977
  d(o) {
5978
- o && X(t);
5978
+ o && Q(t);
5979
5979
  }
5980
5980
  };
5981
5981
  }
@@ -5987,18 +5987,18 @@ function zh(i) {
5987
5987
  let g = m(i), v = g(i);
5988
5988
  return {
5989
5989
  c() {
5990
- t = F("div"), v.c(), e = fe(), n = F("div"), o = F("div"), r = qe(s), x(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), _e(() => i[4].call(o)), x(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), S(n, "left", l), x(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), S(t, "width", c), S(t, "left", h), S(t, "top", f), S(t, "transform", u), S(t, "display", i[0].visible && i[2] ? "block" : "none");
5990
+ t = G("div"), v.c(), e = fe(), n = G("div"), o = G("div"), r = qe(s), x(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), _e(() => i[4].call(o)), x(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), M(n, "left", l), x(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), M(t, "width", c), M(t, "left", h), M(t, "top", f), M(t, "transform", u), M(t, "display", i[0].visible && i[2] ? "block" : "none");
5991
5991
  },
5992
5992
  m(b, y) {
5993
- W(b, t, y), v.m(t, null), G(t, e), G(t, n), G(n, o), G(o, r), a = Xt(o, i[4].bind(o));
5993
+ Y(b, t, y), v.m(t, null), X(t, e), X(t, n), X(n, o), X(o, r), a = Xt(o, i[4].bind(o));
5994
5994
  },
5995
5995
  p(b, [y]) {
5996
- g === (g = m(b)) && v ? v.p(b, y) : (v.d(1), v = g(b), v && (v.c(), v.m(t, e))), y & 1 && s !== (s = b[0].labelElement + "") && dt(r, s), y & 1 && l !== (l = `${b[0].labelOffset}%`) && S(n, "left", l), y & 1 && c !== (c = `${b[0].width}px`) && S(t, "width", c), y & 1 && h !== (h = `${b[0].left}px`) && S(t, "left", h), y & 1 && f !== (f = `${b[0].top}px`) && S(t, "top", f), y & 1 && u !== (u = `rotate(${b[0].rotateDeg}deg)`) && S(t, "transform", u), y & 5 && S(t, "display", b[0].visible && b[2] ? "block" : "none");
5996
+ g === (g = m(b)) && v ? v.p(b, y) : (v.d(1), v = g(b), v && (v.c(), v.m(t, e))), y & 1 && s !== (s = b[0].labelElement + "") && dt(r, s), y & 1 && l !== (l = `${b[0].labelOffset}%`) && M(n, "left", l), y & 1 && c !== (c = `${b[0].width}px`) && M(t, "width", c), y & 1 && h !== (h = `${b[0].left}px`) && M(t, "left", h), y & 1 && f !== (f = `${b[0].top}px`) && M(t, "top", f), y & 1 && u !== (u = `rotate(${b[0].rotateDeg}deg)`) && M(t, "transform", u), y & 5 && M(t, "display", b[0].visible && b[2] ? "block" : "none");
5997
5997
  },
5998
5998
  i: ne,
5999
5999
  o: ne,
6000
6000
  d(b) {
6001
- b && X(t), v.d(), a();
6001
+ b && Q(t), v.d(), a();
6002
6002
  }
6003
6003
  };
6004
6004
  }
@@ -6038,7 +6038,7 @@ function ns(i) {
6038
6038
  o & 1 && (s.rulerItemProp = n[16]), t.$set(s);
6039
6039
  },
6040
6040
  i(n) {
6041
- e || (H(t.$$.fragment, n), e = !0);
6041
+ e || (F(t.$$.fragment, n), e = !0);
6042
6042
  },
6043
6043
  o(n) {
6044
6044
  q(t.$$.fragment, n), e = !1;
@@ -6057,12 +6057,12 @@ function jh(i) {
6057
6057
  });
6058
6058
  return {
6059
6059
  c() {
6060
- t = F("div");
6060
+ t = G("div");
6061
6061
  for (let r = 0; r < o.length; r += 1)
6062
6062
  o[r].c();
6063
6063
  },
6064
6064
  m(r, a) {
6065
- W(r, t, a);
6065
+ Y(r, t, a);
6066
6066
  for (let l = 0; l < o.length; l += 1)
6067
6067
  o[l].m(t, null);
6068
6068
  e = !0;
@@ -6073,7 +6073,7 @@ function jh(i) {
6073
6073
  let l;
6074
6074
  for (l = 0; l < n.length; l += 1) {
6075
6075
  const c = ts(r, n, l);
6076
- o[l] ? (o[l].p(c, a), H(o[l], 1)) : (o[l] = ns(c), o[l].c(), H(o[l], 1), o[l].m(t, null));
6076
+ o[l] ? (o[l].p(c, a), F(o[l], 1)) : (o[l] = ns(c), o[l].c(), F(o[l], 1), o[l].m(t, null));
6077
6077
  }
6078
6078
  for (Ee(), l = n.length; l < o.length; l += 1)
6079
6079
  s(l);
@@ -6083,7 +6083,7 @@ function jh(i) {
6083
6083
  i(r) {
6084
6084
  if (!e) {
6085
6085
  for (let a = 0; a < n.length; a += 1)
6086
- H(o[a]);
6086
+ F(o[a]);
6087
6087
  e = !0;
6088
6088
  }
6089
6089
  },
@@ -6094,91 +6094,91 @@ function jh(i) {
6094
6094
  e = !1;
6095
6095
  },
6096
6096
  d(r) {
6097
- r && X(t), Gt(o, r);
6097
+ r && Q(t), Gt(o, r);
6098
6098
  }
6099
6099
  };
6100
6100
  }
6101
6101
  function Oh(i, t, e) {
6102
6102
  var n, o, s, r;
6103
6103
  let { five: a } = t, { rulerDatas: l } = t, { options: c } = t, h = [];
6104
- const f = ((o = (n = a.getElement()) === null || n === void 0 ? void 0 : n.parentElement) === null || o === void 0 ? void 0 : o.clientWidth) || 0, u = ((r = (s = a.getElement()) === null || s === void 0 ? void 0 : s.parentElement) === null || r === void 0 ? void 0 : r.clientHeight) || 0, m = (E, z) => {
6104
+ const f = ((o = (n = a.getElement()) === null || n === void 0 ? void 0 : n.parentElement) === null || o === void 0 ? void 0 : o.clientWidth) || 0, u = ((r = (s = a.getElement()) === null || s === void 0 ? void 0 : s.parentElement) === null || r === void 0 ? void 0 : r.clientHeight) || 0, m = (P, L) => {
6105
6105
  const D = [
6106
6106
  [{ x: 0, y: 0 }, { x: f, y: 0 }],
6107
6107
  [{ x: 0, y: 0 }, { x: 0, y: u }],
6108
6108
  [{ x: f, y: 0 }, { x: f, y: u }],
6109
6109
  [{ x: 0, y: u }, { x: f, y: u }]
6110
- ], I = [];
6110
+ ], E = [];
6111
6111
  for (let T = 0; T < D.length; T++) {
6112
- const C = nr([E, z], [D[T][0], D[T][1]], !0);
6113
- C && I.push(C);
6112
+ const C = nr([P, L], [D[T][0], D[T][1]], !0);
6113
+ C && E.push(C);
6114
6114
  }
6115
- return I.length === 0 ? !1 : I;
6116
- }, g = (E, z) => {
6117
- const D = E.clone().project(a.camera), I = (D.x + 1) / 2 * f, T = (-D.y + 1) / 2 * u, C = z.clone().project(a.camera), M = (C.x + 1) / 2 * f, N = (-C.y + 1) / 2 * u, B = Math.sqrt(Math.pow(M - I, 2) + Math.pow(N - T, 2));
6115
+ return E.length === 0 ? !1 : E;
6116
+ }, g = (P, L) => {
6117
+ const D = P.clone().project(a.camera), E = (D.x + 1) / 2 * f, T = (-D.y + 1) / 2 * u, C = L.clone().project(a.camera), z = (C.x + 1) / 2 * f, R = (-C.y + 1) / 2 * u, H = Math.sqrt(Math.pow(z - E, 2) + Math.pow(R - T, 2));
6118
6118
  return {
6119
- startLeft: I,
6119
+ startLeft: E,
6120
6120
  startTop: T,
6121
- endLeft: M,
6122
- endTop: N,
6123
- distance: B
6121
+ endLeft: z,
6122
+ endTop: R,
6123
+ distance: H
6124
6124
  };
6125
- }, v = (E, z, D) => {
6126
- const I = a.camera.position, T = a.camera.getWorldDirection(new $()), C = E.clone().sub(I).normalize().angleTo(T), M = z.clone().sub(I).normalize().angleTo(T), N = E.distanceTo(z), K = z.clone().sub(z.clone().sub(E).divide(new $(2, 2, 2))).distanceTo(I), { startLeft: k, startTop: J, endLeft: R, endTop: _, distance: U } = g(E, z), Q = -((Math.PI / 2 - Math.atan2(R - k, J - _)) / Math.PI) * 180;
6125
+ }, v = (P, L, D) => {
6126
+ const E = a.camera.position, T = a.camera.getWorldDirection(new $()), C = P.clone().sub(E).normalize().angleTo(T), z = L.clone().sub(E).normalize().angleTo(T), R = P.distanceTo(L), _ = L.clone().sub(L.clone().sub(P).divide(new $(2, 2, 2))).distanceTo(E), { startLeft: S, startTop: O, endLeft: B, endTop: K, distance: U } = g(P, L), W = -((Math.PI / 2 - Math.atan2(B - S, O - K)) / Math.PI) * 180;
6127
6127
  let ee = !0;
6128
- D || (ee = !1), !nt(E, D) && !nt(z, D) && (ee = !1), N < 0.3 && (ee = !1), C > Math.PI / 2 && (ee = !1), M > Math.PI / 2 && (ee = !1), K / N > 8 && (ee = !1);
6128
+ D || (ee = !1), !nt(P, D) && !nt(L, D) && (ee = !1), R < 0.3 && (ee = !1), C > Math.PI / 2 && (ee = !1), z > Math.PI / 2 && (ee = !1), _ / R > 8 && (ee = !1);
6129
6129
  let se = 50, ie = U;
6130
- const ce = m({ x: ~~k, y: ~~J }, { x: ~~R, y: ~~_ });
6131
- if (ce && ce.length === 1 && (nt(E, D) ? (ie = Math.sqrt(Math.pow(ce[0].x - k, 2) + Math.pow(ce[0].y - J, 2)), se = ie / U * 50) : nt(z, D) && (ie = Math.sqrt(Math.pow(ce[0].x - R, 2) + Math.pow(ce[0].y - _, 2)), se = 100 - ie / U * 50)), ce && ce.length === 2) {
6130
+ const ce = m({ x: ~~S, y: ~~O }, { x: ~~B, y: ~~K });
6131
+ if (ce && ce.length === 1 && (nt(P, D) ? (ie = Math.sqrt(Math.pow(ce[0].x - S, 2) + Math.pow(ce[0].y - O, 2)), se = ie / U * 50) : nt(L, D) && (ie = Math.sqrt(Math.pow(ce[0].x - B, 2) + Math.pow(ce[0].y - K, 2)), se = 100 - ie / U * 50)), ce && ce.length === 2) {
6132
6132
  const Ae = {
6133
6133
  x: (ce[0].x + ce[1].x) / 2,
6134
6134
  y: (ce[0].y + ce[1].y) / 2
6135
6135
  };
6136
- se = Math.sqrt(Math.pow(Ae.x - k, 2) + Math.pow(Ae.y - J, 2)) / U * 100;
6136
+ se = Math.sqrt(Math.pow(Ae.x - S, 2) + Math.pow(Ae.y - O, 2)) / U * 100;
6137
6137
  }
6138
6138
  return {
6139
- startLeft: k,
6140
- startTop: J,
6139
+ startLeft: S,
6140
+ startTop: O,
6141
6141
  distance: U,
6142
- deg: Q,
6142
+ deg: W,
6143
6143
  visible: ee,
6144
6144
  labelOffset: se,
6145
- ruleLength: N
6145
+ ruleLength: R
6146
6146
  };
6147
6147
  }, b = () => {
6148
- const E = a.panoIndex, z = l.find((B) => B.panoIndex === E);
6149
- if (!z)
6148
+ const P = a.panoIndex, L = l.find((H) => H.panoIndex === P);
6149
+ if (!L)
6150
6150
  return e(0, h = []);
6151
6151
  if (a.currentMode !== Se.Mode.Panorama)
6152
6152
  return e(0, h = []);
6153
- const D = a.camera.position, I = a.camera.getWorldDirection(new $()), T = z.lines.map((B) => new $(B.start[0], -B.start[1], -B.start[2])), C = z.lines.map((B) => new $(B.end[0], -B.end[1], -B.end[2])), [M] = T.concat(C).sort((B, K) => {
6154
- const k = B.clone().setY(0).sub(D).normalize().angleTo(I.clone().setY(0)), J = K.clone().setY(0).sub(D).normalize().angleTo(I.clone().setY(0));
6155
- return k - J;
6156
- }), N = z.lines.map((B) => {
6157
- var K, k;
6158
- const J = B.start, R = B.end, { startLeft: _, startTop: U, distance: te, deg: Q, visible: ee, labelOffset: se, ruleLength: ie } = v(new $(J[0], -J[1], -J[2]), new $(R[0], -R[1], -R[2]), M), ce = [];
6159
- return B.children && ((K = B.children) === null || K === void 0 ? void 0 : K.length) > 0 && ((k = B.children) === null || k === void 0 || k.forEach((Ae) => {
6160
- const xe = Ae.start, ze = Ae.end, { distance: Y } = g(new $(xe[0], -xe[1], -xe[2]), new $(ze[0], -ze[1], -ze[2]));
6161
- ce.push({ width: Y, state: Ae.state });
6153
+ const D = a.camera.position, E = a.camera.getWorldDirection(new $()), T = L.lines.map((H) => new $(H.start[0], -H.start[1], -H.start[2])), C = L.lines.map((H) => new $(H.end[0], -H.end[1], -H.end[2])), [z] = T.concat(C).sort((H, _) => {
6154
+ const S = H.clone().setY(0).sub(D).normalize().angleTo(E.clone().setY(0)), O = _.clone().setY(0).sub(D).normalize().angleTo(E.clone().setY(0));
6155
+ return S - O;
6156
+ }), R = L.lines.map((H) => {
6157
+ var _, S;
6158
+ const O = H.start, B = H.end, { startLeft: K, startTop: U, distance: te, deg: W, visible: ee, labelOffset: se, ruleLength: ie } = v(new $(O[0], -O[1], -O[2]), new $(B[0], -B[1], -B[2]), z), ce = [];
6159
+ return H.children && ((_ = H.children) === null || _ === void 0 ? void 0 : _.length) > 0 && ((S = H.children) === null || S === void 0 || S.forEach((Ae) => {
6160
+ const xe = Ae.start, ze = Ae.end, { distance: Z } = g(new $(xe[0], -xe[1], -xe[2]), new $(ze[0], -ze[1], -ze[2]));
6161
+ ce.push({ width: Z, state: Ae.state });
6162
6162
  })), {
6163
6163
  width: te,
6164
- left: _,
6164
+ left: K,
6165
6165
  top: U,
6166
- rotateDeg: Q,
6167
- state: B.state,
6166
+ rotateDeg: W,
6167
+ state: H.state,
6168
6168
  children: ce,
6169
6169
  labelOffset: se,
6170
6170
  visible: ee,
6171
6171
  labelElement: c.distanceText(ie)
6172
6172
  };
6173
6173
  });
6174
- e(0, h = N);
6175
- }, y = () => Wi(b), P = Qi(b, 80);
6174
+ e(0, h = R);
6175
+ }, y = () => Wi(b), I = Qi(b, 80);
6176
6176
  return Lt(() => {
6177
- b(), a.on("panoArrived", b), a.on("modeChange", b), a.on("cameraDirectionUpdate", y), a.on("movingToPano", y), a.on("mouseWheel", () => P()), a.on("pinchGesture", () => P());
6177
+ b(), a.on("panoArrived", b), a.on("modeChange", b), a.on("cameraDirectionUpdate", y), a.on("movingToPano", y), a.on("mouseWheel", () => I()), a.on("pinchGesture", () => I());
6178
6178
  }), ln(() => {
6179
- a.off("panoArrived", b), a.off("modeChange", b), a.off("cameraDirectionUpdate", y), a.off("movingToPano", y), a.off("mouseWheel", () => P()), a.off("pinchGesture", () => P());
6180
- }), i.$$set = (E) => {
6181
- "five" in E && e(1, a = E.five), "rulerDatas" in E && e(2, l = E.rulerDatas), "options" in E && e(3, c = E.options);
6179
+ a.off("panoArrived", b), a.off("modeChange", b), a.off("cameraDirectionUpdate", y), a.off("movingToPano", y), a.off("mouseWheel", () => I()), a.off("pinchGesture", () => I());
6180
+ }), i.$$set = (P) => {
6181
+ "five" in P && e(1, a = P.five), "rulerDatas" in P && e(2, l = P.rulerDatas), "options" in P && e(3, c = P.options);
6182
6182
  }, [h, a, l, c];
6183
6183
  }
6184
6184
  class Nh extends de {
@@ -6479,74 +6479,74 @@ var or = { exports: {} };
6479
6479
  (function(t, e, n, o) {
6480
6480
  var s = ["", "webkit", "Moz", "MS", "ms", "o"], r = e.createElement("div"), a = "function", l = Math.round, c = Math.abs, h = Date.now;
6481
6481
  function f(p, A, w) {
6482
- return setTimeout(E(p, w), A);
6482
+ return setTimeout(P(p, w), A);
6483
6483
  }
6484
6484
  function u(p, A, w) {
6485
6485
  return Array.isArray(p) ? (m(p, w[A], w), !0) : !1;
6486
6486
  }
6487
6487
  function m(p, A, w) {
6488
- var L;
6488
+ var k;
6489
6489
  if (!!p)
6490
6490
  if (p.forEach)
6491
6491
  p.forEach(A, w);
6492
6492
  else if (p.length !== o)
6493
- for (L = 0; L < p.length; )
6494
- A.call(w, p[L], L, p), L++;
6493
+ for (k = 0; k < p.length; )
6494
+ A.call(w, p[k], k, p), k++;
6495
6495
  else
6496
- for (L in p)
6497
- p.hasOwnProperty(L) && A.call(w, p[L], L, p);
6496
+ for (k in p)
6497
+ p.hasOwnProperty(k) && A.call(w, p[k], k, p);
6498
6498
  }
6499
6499
  function g(p, A, w) {
6500
- var L = "DEPRECATED METHOD: " + A + `
6500
+ var k = "DEPRECATED METHOD: " + A + `
6501
6501
  ` + w + ` AT
6502
6502
  `;
6503
6503
  return function() {
6504
- var O = new Error("get-stack-trace"), Z = O && O.stack ? O.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", ae = t.console && (t.console.warn || t.console.log);
6505
- return ae && ae.call(t.console, L, Z), p.apply(this, arguments);
6504
+ var N = new Error("get-stack-trace"), J = N && N.stack ? N.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", ae = t.console && (t.console.warn || t.console.log);
6505
+ return ae && ae.call(t.console, k, J), p.apply(this, arguments);
6506
6506
  };
6507
6507
  }
6508
6508
  var v;
6509
6509
  typeof Object.assign != "function" ? v = function(A) {
6510
6510
  if (A === o || A === null)
6511
6511
  throw new TypeError("Cannot convert undefined or null to object");
6512
- for (var w = Object(A), L = 1; L < arguments.length; L++) {
6513
- var O = arguments[L];
6514
- if (O !== o && O !== null)
6515
- for (var Z in O)
6516
- O.hasOwnProperty(Z) && (w[Z] = O[Z]);
6512
+ for (var w = Object(A), k = 1; k < arguments.length; k++) {
6513
+ var N = arguments[k];
6514
+ if (N !== o && N !== null)
6515
+ for (var J in N)
6516
+ N.hasOwnProperty(J) && (w[J] = N[J]);
6517
6517
  }
6518
6518
  return w;
6519
6519
  } : v = Object.assign;
6520
- var b = g(function(A, w, L) {
6521
- for (var O = Object.keys(w), Z = 0; Z < O.length; )
6522
- (!L || L && A[O[Z]] === o) && (A[O[Z]] = w[O[Z]]), Z++;
6520
+ var b = g(function(A, w, k) {
6521
+ for (var N = Object.keys(w), J = 0; J < N.length; )
6522
+ (!k || k && A[N[J]] === o) && (A[N[J]] = w[N[J]]), J++;
6523
6523
  return A;
6524
6524
  }, "extend", "Use `assign`."), y = g(function(A, w) {
6525
6525
  return b(A, w, !0);
6526
6526
  }, "merge", "Use `assign`.");
6527
- function P(p, A, w) {
6528
- var L = A.prototype, O;
6529
- O = p.prototype = Object.create(L), O.constructor = p, O._super = L, w && v(O, w);
6527
+ function I(p, A, w) {
6528
+ var k = A.prototype, N;
6529
+ N = p.prototype = Object.create(k), N.constructor = p, N._super = k, w && v(N, w);
6530
6530
  }
6531
- function E(p, A) {
6531
+ function P(p, A) {
6532
6532
  return function() {
6533
6533
  return p.apply(A, arguments);
6534
6534
  };
6535
6535
  }
6536
- function z(p, A) {
6536
+ function L(p, A) {
6537
6537
  return typeof p == a ? p.apply(A && A[0] || o, A) : p;
6538
6538
  }
6539
6539
  function D(p, A) {
6540
6540
  return p === o ? A : p;
6541
6541
  }
6542
- function I(p, A, w) {
6543
- m(N(A), function(L) {
6544
- p.addEventListener(L, w, !1);
6542
+ function E(p, A, w) {
6543
+ m(R(A), function(k) {
6544
+ p.addEventListener(k, w, !1);
6545
6545
  });
6546
6546
  }
6547
6547
  function T(p, A, w) {
6548
- m(N(A), function(L) {
6549
- p.removeEventListener(L, w, !1);
6548
+ m(R(A), function(k) {
6549
+ p.removeEventListener(k, w, !1);
6550
6550
  });
6551
6551
  }
6552
6552
  function C(p, A) {
@@ -6557,62 +6557,62 @@ var or = { exports: {} };
6557
6557
  }
6558
6558
  return !1;
6559
6559
  }
6560
- function M(p, A) {
6560
+ function z(p, A) {
6561
6561
  return p.indexOf(A) > -1;
6562
6562
  }
6563
- function N(p) {
6563
+ function R(p) {
6564
6564
  return p.trim().split(/\s+/g);
6565
6565
  }
6566
- function B(p, A, w) {
6566
+ function H(p, A, w) {
6567
6567
  if (p.indexOf && !w)
6568
6568
  return p.indexOf(A);
6569
- for (var L = 0; L < p.length; ) {
6570
- if (w && p[L][w] == A || !w && p[L] === A)
6571
- return L;
6572
- L++;
6569
+ for (var k = 0; k < p.length; ) {
6570
+ if (w && p[k][w] == A || !w && p[k] === A)
6571
+ return k;
6572
+ k++;
6573
6573
  }
6574
6574
  return -1;
6575
6575
  }
6576
- function K(p) {
6576
+ function _(p) {
6577
6577
  return Array.prototype.slice.call(p, 0);
6578
6578
  }
6579
- function k(p, A, w) {
6580
- for (var L = [], O = [], Z = 0; Z < p.length; ) {
6581
- var ae = A ? p[Z][A] : p[Z];
6582
- B(O, ae) < 0 && L.push(p[Z]), O[Z] = ae, Z++;
6579
+ function S(p, A, w) {
6580
+ for (var k = [], N = [], J = 0; J < p.length; ) {
6581
+ var ae = A ? p[J][A] : p[J];
6582
+ H(N, ae) < 0 && k.push(p[J]), N[J] = ae, J++;
6583
6583
  }
6584
- return w && (A ? L = L.sort(function(De, Ne) {
6584
+ return w && (A ? k = k.sort(function(De, Ne) {
6585
6585
  return De[A] > Ne[A];
6586
- }) : L = L.sort()), L;
6586
+ }) : k = k.sort()), k;
6587
6587
  }
6588
- function J(p, A) {
6589
- for (var w, L, O = A[0].toUpperCase() + A.slice(1), Z = 0; Z < s.length; ) {
6590
- if (w = s[Z], L = w ? w + O : A, L in p)
6591
- return L;
6592
- Z++;
6588
+ function O(p, A) {
6589
+ for (var w, k, N = A[0].toUpperCase() + A.slice(1), J = 0; J < s.length; ) {
6590
+ if (w = s[J], k = w ? w + N : A, k in p)
6591
+ return k;
6592
+ J++;
6593
6593
  }
6594
6594
  return o;
6595
6595
  }
6596
- var R = 1;
6597
- function _() {
6598
- return R++;
6596
+ var B = 1;
6597
+ function K() {
6598
+ return B++;
6599
6599
  }
6600
6600
  function U(p) {
6601
6601
  var A = p.ownerDocument || p;
6602
6602
  return A.defaultView || A.parentWindow || t;
6603
6603
  }
6604
- var te = /mobile|tablet|ip(ad|hone|od)|android/i, Q = "ontouchstart" in t, ee = J(t, "PointerEvent") !== o, se = Q && te.test(navigator.userAgent), ie = "touch", ce = "pen", Ae = "mouse", xe = "kinect", ze = 25, Y = 1, re = 2, oe = 4, V = 8, Be = 1, We = 2, le = 4, He = 8, Fe = 16, me = We | le, we = He | Fe, Ye = me | we, ft = ["x", "y"], Ue = ["clientX", "clientY"];
6604
+ var te = /mobile|tablet|ip(ad|hone|od)|android/i, W = "ontouchstart" in t, ee = O(t, "PointerEvent") !== o, se = W && te.test(navigator.userAgent), ie = "touch", ce = "pen", Ae = "mouse", xe = "kinect", ze = 25, Z = 1, re = 2, oe = 4, V = 8, Be = 1, We = 2, le = 4, He = 8, Fe = 16, me = We | le, we = He | Fe, Ye = me | we, ft = ["x", "y"], Ue = ["clientX", "clientY"];
6605
6605
  function Ce(p, A) {
6606
6606
  var w = this;
6607
- this.manager = p, this.callback = A, this.element = p.element, this.target = p.options.inputTarget, this.domHandler = function(L) {
6608
- z(p.options.enable, [p]) && w.handler(L);
6607
+ this.manager = p, this.callback = A, this.element = p.element, this.target = p.options.inputTarget, this.domHandler = function(k) {
6608
+ L(p.options.enable, [p]) && w.handler(k);
6609
6609
  }, this.init();
6610
6610
  }
6611
6611
  Ce.prototype = {
6612
6612
  handler: function() {
6613
6613
  },
6614
6614
  init: function() {
6615
- this.evEl && I(this.element, this.evEl, this.domHandler), this.evTarget && I(this.target, this.evTarget, this.domHandler), this.evWin && I(U(this.element), this.evWin, this.domHandler);
6615
+ this.evEl && E(this.element, this.evEl, this.domHandler), this.evTarget && E(this.target, this.evTarget, this.domHandler), this.evWin && E(U(this.element), this.evWin, this.domHandler);
6616
6616
  },
6617
6617
  destroy: function() {
6618
6618
  this.evEl && T(this.element, this.evEl, this.domHandler), this.evTarget && T(this.target, this.evTarget, this.domHandler), this.evWin && T(U(this.element), this.evWin, this.domHandler);
@@ -6620,40 +6620,40 @@ var or = { exports: {} };
6620
6620
  };
6621
6621
  function Pe(p) {
6622
6622
  var A, w = p.options.inputClass;
6623
- return w ? A = w : ee ? A = ii : se ? A = fn : Q ? A = oi : A = dn, new A(p, Le);
6623
+ return w ? A = w : ee ? A = ii : se ? A = fn : W ? A = oi : A = dn, new A(p, Le);
6624
6624
  }
6625
6625
  function Le(p, A, w) {
6626
- var L = w.pointers.length, O = w.changedPointers.length, Z = A & Y && L - O === 0, ae = A & (oe | V) && L - O === 0;
6627
- w.isFirst = !!Z, w.isFinal = !!ae, Z && (p.session = {}), w.eventType = A, st(p, w), p.emit("hammer.input", w), p.recognize(w), p.session.prevInput = w;
6626
+ var k = w.pointers.length, N = w.changedPointers.length, J = A & Z && k - N === 0, ae = A & (oe | V) && k - N === 0;
6627
+ w.isFirst = !!J, w.isFinal = !!ae, J && (p.session = {}), w.eventType = A, st(p, w), p.emit("hammer.input", w), p.recognize(w), p.session.prevInput = w;
6628
6628
  }
6629
6629
  function st(p, A) {
6630
- var w = p.session, L = A.pointers, O = L.length;
6631
- w.firstInput || (w.firstInput = Yt(A)), O > 1 && !w.firstMultiple ? w.firstMultiple = Yt(A) : O === 1 && (w.firstMultiple = !1);
6632
- var Z = w.firstInput, ae = w.firstMultiple, ke = ae ? ae.center : Z.center, De = A.center = cn(L);
6633
- A.timeStamp = h(), A.deltaTime = A.timeStamp - Z.timeStamp, A.angle = Zt(ke, De), A.distance = Dt(ke, De), Tt(w, A), A.offsetDirection = un(A.deltaX, A.deltaY);
6630
+ var w = p.session, k = A.pointers, N = k.length;
6631
+ w.firstInput || (w.firstInput = Yt(A)), N > 1 && !w.firstMultiple ? w.firstMultiple = Yt(A) : N === 1 && (w.firstMultiple = !1);
6632
+ var J = w.firstInput, ae = w.firstMultiple, ke = ae ? ae.center : J.center, De = A.center = cn(k);
6633
+ A.timeStamp = h(), A.deltaTime = A.timeStamp - J.timeStamp, A.angle = Zt(ke, De), A.distance = Dt(ke, De), Tt(w, A), A.offsetDirection = un(A.deltaX, A.deltaY);
6634
6634
  var Ne = hn(A.deltaTime, A.deltaX, A.deltaY);
6635
- A.overallVelocityX = Ne.x, A.overallVelocityY = Ne.y, A.overallVelocity = c(Ne.x) > c(Ne.y) ? Ne.x : Ne.y, A.scale = ae ? Ir(ae.pointers, L) : 1, A.rotation = ae ? Er(ae.pointers, L) : 0, A.maxPointers = w.prevInput ? A.pointers.length > w.prevInput.maxPointers ? A.pointers.length : w.prevInput.maxPointers : A.pointers.length, ni(w, A);
6635
+ A.overallVelocityX = Ne.x, A.overallVelocityY = Ne.y, A.overallVelocity = c(Ne.x) > c(Ne.y) ? Ne.x : Ne.y, A.scale = ae ? Ir(ae.pointers, k) : 1, A.rotation = ae ? Er(ae.pointers, k) : 0, A.maxPointers = w.prevInput ? A.pointers.length > w.prevInput.maxPointers ? A.pointers.length : w.prevInput.maxPointers : A.pointers.length, ni(w, A);
6636
6636
  var et = p.element;
6637
6637
  C(A.srcEvent.target, et) && (et = A.srcEvent.target), A.target = et;
6638
6638
  }
6639
6639
  function Tt(p, A) {
6640
- var w = A.center, L = p.offsetDelta || {}, O = p.prevDelta || {}, Z = p.prevInput || {};
6641
- (A.eventType === Y || Z.eventType === oe) && (O = p.prevDelta = {
6642
- x: Z.deltaX || 0,
6643
- y: Z.deltaY || 0
6644
- }, L = p.offsetDelta = {
6640
+ var w = A.center, k = p.offsetDelta || {}, N = p.prevDelta || {}, J = p.prevInput || {};
6641
+ (A.eventType === Z || J.eventType === oe) && (N = p.prevDelta = {
6642
+ x: J.deltaX || 0,
6643
+ y: J.deltaY || 0
6644
+ }, k = p.offsetDelta = {
6645
6645
  x: w.x,
6646
6646
  y: w.y
6647
- }), A.deltaX = O.x + (w.x - L.x), A.deltaY = O.y + (w.y - L.y);
6647
+ }), A.deltaX = N.x + (w.x - k.x), A.deltaY = N.y + (w.y - k.y);
6648
6648
  }
6649
6649
  function ni(p, A) {
6650
- var w = p.lastInterval || A, L = A.timeStamp - w.timeStamp, O, Z, ae, ke;
6651
- if (A.eventType != V && (L > ze || w.velocity === o)) {
6652
- var De = A.deltaX - w.deltaX, Ne = A.deltaY - w.deltaY, et = hn(L, De, Ne);
6653
- Z = et.x, ae = et.y, O = c(et.x) > c(et.y) ? et.x : et.y, ke = un(De, Ne), p.lastInterval = A;
6650
+ var w = p.lastInterval || A, k = A.timeStamp - w.timeStamp, N, J, ae, ke;
6651
+ if (A.eventType != V && (k > ze || w.velocity === o)) {
6652
+ var De = A.deltaX - w.deltaX, Ne = A.deltaY - w.deltaY, et = hn(k, De, Ne);
6653
+ J = et.x, ae = et.y, N = c(et.x) > c(et.y) ? et.x : et.y, ke = un(De, Ne), p.lastInterval = A;
6654
6654
  } else
6655
- O = w.velocity, Z = w.velocityX, ae = w.velocityY, ke = w.direction;
6656
- A.velocity = O, A.velocityX = Z, A.velocityY = ae, A.direction = ke;
6655
+ N = w.velocity, J = w.velocityX, ae = w.velocityY, ke = w.direction;
6656
+ A.velocity = N, A.velocityX = J, A.velocityY = ae, A.direction = ke;
6657
6657
  }
6658
6658
  function Yt(p) {
6659
6659
  for (var A = [], w = 0; w < p.pointers.length; )
@@ -6676,11 +6676,11 @@ var or = { exports: {} };
6676
6676
  x: l(p[0].clientX),
6677
6677
  y: l(p[0].clientY)
6678
6678
  };
6679
- for (var w = 0, L = 0, O = 0; O < A; )
6680
- w += p[O].clientX, L += p[O].clientY, O++;
6679
+ for (var w = 0, k = 0, N = 0; N < A; )
6680
+ w += p[N].clientX, k += p[N].clientY, N++;
6681
6681
  return {
6682
6682
  x: l(w / A),
6683
- y: l(L / A)
6683
+ y: l(k / A)
6684
6684
  };
6685
6685
  }
6686
6686
  function hn(p, A, w) {
@@ -6694,13 +6694,13 @@ var or = { exports: {} };
6694
6694
  }
6695
6695
  function Dt(p, A, w) {
6696
6696
  w || (w = ft);
6697
- var L = A[w[0]] - p[w[0]], O = A[w[1]] - p[w[1]];
6698
- return Math.sqrt(L * L + O * O);
6697
+ var k = A[w[0]] - p[w[0]], N = A[w[1]] - p[w[1]];
6698
+ return Math.sqrt(k * k + N * N);
6699
6699
  }
6700
6700
  function Zt(p, A, w) {
6701
6701
  w || (w = ft);
6702
- var L = A[w[0]] - p[w[0]], O = A[w[1]] - p[w[1]];
6703
- return Math.atan2(O, L) * 180 / Math.PI;
6702
+ var k = A[w[0]] - p[w[0]], N = A[w[1]] - p[w[1]];
6703
+ return Math.atan2(N, k) * 180 / Math.PI;
6704
6704
  }
6705
6705
  function Er(p, A) {
6706
6706
  return Zt(A[1], A[0], Ue) + Zt(p[1], p[0], Ue);
@@ -6709,17 +6709,17 @@ var or = { exports: {} };
6709
6709
  return Dt(A[0], A[1], Ue) / Dt(p[0], p[1], Ue);
6710
6710
  }
6711
6711
  var xr = {
6712
- mousedown: Y,
6712
+ mousedown: Z,
6713
6713
  mousemove: re,
6714
6714
  mouseup: oe
6715
6715
  }, Cr = "mousedown", Lr = "mousemove mouseup";
6716
6716
  function dn() {
6717
6717
  this.evEl = Cr, this.evWin = Lr, this.pressed = !1, Ce.apply(this, arguments);
6718
6718
  }
6719
- P(dn, Ce, {
6719
+ I(dn, Ce, {
6720
6720
  handler: function(A) {
6721
6721
  var w = xr[A.type];
6722
- w & Y && A.button === 0 && (this.pressed = !0), w & re && A.which !== 1 && (w = oe), this.pressed && (w & oe && (this.pressed = !1), this.callback(this.manager, w, {
6722
+ w & Z && A.button === 0 && (this.pressed = !0), w & re && A.which !== 1 && (w = oe), this.pressed && (w & oe && (this.pressed = !1), this.callback(this.manager, w, {
6723
6723
  pointers: [A],
6724
6724
  changedPointers: [A],
6725
6725
  pointerType: Ae,
@@ -6728,7 +6728,7 @@ var or = { exports: {} };
6728
6728
  }
6729
6729
  });
6730
6730
  var kr = {
6731
- pointerdown: Y,
6731
+ pointerdown: Z,
6732
6732
  pointermove: re,
6733
6733
  pointerup: oe,
6734
6734
  pointercancel: V,
@@ -6743,19 +6743,19 @@ var or = { exports: {} };
6743
6743
  function ii() {
6744
6744
  this.evEl = Ui, this.evWin = Vi, Ce.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
6745
6745
  }
6746
- P(ii, Ce, {
6746
+ I(ii, Ce, {
6747
6747
  handler: function(A) {
6748
- var w = this.store, L = !1, O = A.type.toLowerCase().replace("ms", ""), Z = kr[O], ae = Tr[A.pointerType] || A.pointerType, ke = ae == ie, De = B(w, A.pointerId, "pointerId");
6749
- Z & Y && (A.button === 0 || ke) ? De < 0 && (w.push(A), De = w.length - 1) : Z & (oe | V) && (L = !0), !(De < 0) && (w[De] = A, this.callback(this.manager, Z, {
6748
+ var w = this.store, k = !1, N = A.type.toLowerCase().replace("ms", ""), J = kr[N], ae = Tr[A.pointerType] || A.pointerType, ke = ae == ie, De = H(w, A.pointerId, "pointerId");
6749
+ J & Z && (A.button === 0 || ke) ? De < 0 && (w.push(A), De = w.length - 1) : J & (oe | V) && (k = !0), !(De < 0) && (w[De] = A, this.callback(this.manager, J, {
6750
6750
  pointers: w,
6751
6751
  changedPointers: [A],
6752
6752
  pointerType: ae,
6753
6753
  srcEvent: A
6754
- }), L && w.splice(De, 1));
6754
+ }), k && w.splice(De, 1));
6755
6755
  }
6756
6756
  });
6757
6757
  var Dr = {
6758
- touchstart: Y,
6758
+ touchstart: Z,
6759
6759
  touchmove: re,
6760
6760
  touchend: oe,
6761
6761
  touchcancel: V
@@ -6763,14 +6763,14 @@ var or = { exports: {} };
6763
6763
  function qi() {
6764
6764
  this.evTarget = zr, this.evWin = Mr, this.started = !1, Ce.apply(this, arguments);
6765
6765
  }
6766
- P(qi, Ce, {
6766
+ I(qi, Ce, {
6767
6767
  handler: function(A) {
6768
6768
  var w = Dr[A.type];
6769
- if (w === Y && (this.started = !0), !!this.started) {
6770
- var L = Sr.call(this, A, w);
6771
- w & (oe | V) && L[0].length - L[1].length === 0 && (this.started = !1), this.callback(this.manager, w, {
6772
- pointers: L[0],
6773
- changedPointers: L[1],
6769
+ if (w === Z && (this.started = !0), !!this.started) {
6770
+ var k = Sr.call(this, A, w);
6771
+ w & (oe | V) && k[0].length - k[1].length === 0 && (this.started = !1), this.callback(this.manager, w, {
6772
+ pointers: k[0],
6773
+ changedPointers: k[1],
6774
6774
  pointerType: ie,
6775
6775
  srcEvent: A
6776
6776
  });
@@ -6778,11 +6778,11 @@ var or = { exports: {} };
6778
6778
  }
6779
6779
  });
6780
6780
  function Sr(p, A) {
6781
- var w = K(p.touches), L = K(p.changedTouches);
6782
- return A & (oe | V) && (w = k(w.concat(L), "identifier", !0)), [w, L];
6781
+ var w = _(p.touches), k = _(p.changedTouches);
6782
+ return A & (oe | V) && (w = S(w.concat(k), "identifier", !0)), [w, k];
6783
6783
  }
6784
6784
  var jr = {
6785
- touchstart: Y,
6785
+ touchstart: Z,
6786
6786
  touchmove: re,
6787
6787
  touchend: oe,
6788
6788
  touchcancel: V
@@ -6790,50 +6790,50 @@ var or = { exports: {} };
6790
6790
  function fn() {
6791
6791
  this.evTarget = Or, this.targetIds = {}, Ce.apply(this, arguments);
6792
6792
  }
6793
- P(fn, Ce, {
6793
+ I(fn, Ce, {
6794
6794
  handler: function(A) {
6795
- var w = jr[A.type], L = Nr.call(this, A, w);
6796
- !L || this.callback(this.manager, w, {
6797
- pointers: L[0],
6798
- changedPointers: L[1],
6795
+ var w = jr[A.type], k = Nr.call(this, A, w);
6796
+ !k || this.callback(this.manager, w, {
6797
+ pointers: k[0],
6798
+ changedPointers: k[1],
6799
6799
  pointerType: ie,
6800
6800
  srcEvent: A
6801
6801
  });
6802
6802
  }
6803
6803
  });
6804
6804
  function Nr(p, A) {
6805
- var w = K(p.touches), L = this.targetIds;
6806
- if (A & (Y | re) && w.length === 1)
6807
- return L[w[0].identifier] = !0, [w, w];
6808
- var O, Z, ae = K(p.changedTouches), ke = [], De = this.target;
6809
- if (Z = w.filter(function(Ne) {
6805
+ var w = _(p.touches), k = this.targetIds;
6806
+ if (A & (Z | re) && w.length === 1)
6807
+ return k[w[0].identifier] = !0, [w, w];
6808
+ var N, J, ae = _(p.changedTouches), ke = [], De = this.target;
6809
+ if (J = w.filter(function(Ne) {
6810
6810
  return C(Ne.target, De);
6811
- }), A === Y)
6812
- for (O = 0; O < Z.length; )
6813
- L[Z[O].identifier] = !0, O++;
6814
- for (O = 0; O < ae.length; )
6815
- L[ae[O].identifier] && ke.push(ae[O]), A & (oe | V) && delete L[ae[O].identifier], O++;
6811
+ }), A === Z)
6812
+ for (N = 0; N < J.length; )
6813
+ k[J[N].identifier] = !0, N++;
6814
+ for (N = 0; N < ae.length; )
6815
+ k[ae[N].identifier] && ke.push(ae[N]), A & (oe | V) && delete k[ae[N].identifier], N++;
6816
6816
  if (!!ke.length)
6817
6817
  return [
6818
- k(Z.concat(ke), "identifier", !0),
6818
+ S(J.concat(ke), "identifier", !0),
6819
6819
  ke
6820
6820
  ];
6821
6821
  }
6822
6822
  var Rr = 2500, Ki = 25;
6823
6823
  function oi() {
6824
6824
  Ce.apply(this, arguments);
6825
- var p = E(this.handler, this);
6825
+ var p = P(this.handler, this);
6826
6826
  this.touch = new fn(this.manager, p), this.mouse = new dn(this.manager, p), this.primaryTouch = null, this.lastTouches = [];
6827
6827
  }
6828
- P(oi, Ce, {
6829
- handler: function(A, w, L) {
6830
- var O = L.pointerType == ie, Z = L.pointerType == Ae;
6831
- if (!(Z && L.sourceCapabilities && L.sourceCapabilities.firesTouchEvents)) {
6832
- if (O)
6833
- Br.call(this, w, L);
6834
- else if (Z && Hr.call(this, L))
6828
+ I(oi, Ce, {
6829
+ handler: function(A, w, k) {
6830
+ var N = k.pointerType == ie, J = k.pointerType == Ae;
6831
+ if (!(J && k.sourceCapabilities && k.sourceCapabilities.firesTouchEvents)) {
6832
+ if (N)
6833
+ Br.call(this, w, k);
6834
+ else if (J && Hr.call(this, k))
6835
6835
  return;
6836
- this.callback(A, w, L);
6836
+ this.callback(A, w, k);
6837
6837
  }
6838
6838
  },
6839
6839
  destroy: function() {
@@ -6841,29 +6841,29 @@ var or = { exports: {} };
6841
6841
  }
6842
6842
  });
6843
6843
  function Br(p, A) {
6844
- p & Y ? (this.primaryTouch = A.changedPointers[0].identifier, _i.call(this, A)) : p & (oe | V) && _i.call(this, A);
6844
+ p & Z ? (this.primaryTouch = A.changedPointers[0].identifier, _i.call(this, A)) : p & (oe | V) && _i.call(this, A);
6845
6845
  }
6846
6846
  function _i(p) {
6847
6847
  var A = p.changedPointers[0];
6848
6848
  if (A.identifier === this.primaryTouch) {
6849
6849
  var w = { x: A.clientX, y: A.clientY };
6850
6850
  this.lastTouches.push(w);
6851
- var L = this.lastTouches, O = function() {
6852
- var Z = L.indexOf(w);
6853
- Z > -1 && L.splice(Z, 1);
6851
+ var k = this.lastTouches, N = function() {
6852
+ var J = k.indexOf(w);
6853
+ J > -1 && k.splice(J, 1);
6854
6854
  };
6855
- setTimeout(O, Rr);
6855
+ setTimeout(N, Rr);
6856
6856
  }
6857
6857
  }
6858
6858
  function Hr(p) {
6859
- for (var A = p.srcEvent.clientX, w = p.srcEvent.clientY, L = 0; L < this.lastTouches.length; L++) {
6860
- var O = this.lastTouches[L], Z = Math.abs(A - O.x), ae = Math.abs(w - O.y);
6861
- if (Z <= Ki && ae <= Ki)
6859
+ for (var A = p.srcEvent.clientX, w = p.srcEvent.clientY, k = 0; k < this.lastTouches.length; k++) {
6860
+ var N = this.lastTouches[k], J = Math.abs(A - N.x), ae = Math.abs(w - N.y);
6861
+ if (J <= Ki && ae <= Ki)
6862
6862
  return !0;
6863
6863
  }
6864
6864
  return !1;
6865
6865
  }
6866
- var $i = J(r.style, "touchAction"), eo = $i !== o, to = "compute", no = "auto", si = "manipulation", Pt = "none", Jt = "pan-x", Ut = "pan-y", mn = Gr();
6866
+ var $i = O(r.style, "touchAction"), eo = $i !== o, to = "compute", no = "auto", si = "manipulation", Pt = "none", Jt = "pan-x", Ut = "pan-y", mn = Gr();
6867
6867
  function ri(p, A) {
6868
6868
  this.manager = p, this.set(A);
6869
6869
  }
@@ -6877,7 +6877,7 @@ var or = { exports: {} };
6877
6877
  compute: function() {
6878
6878
  var p = [];
6879
6879
  return m(this.manager.recognizers, function(A) {
6880
- z(A.options.enable, [A]) && (p = p.concat(A.getTouchAction()));
6880
+ L(A.options.enable, [A]) && (p = p.concat(A.getTouchAction()));
6881
6881
  }), Fr(p.join(" "));
6882
6882
  },
6883
6883
  preventDefaults: function(p) {
@@ -6886,13 +6886,13 @@ var or = { exports: {} };
6886
6886
  A.preventDefault();
6887
6887
  return;
6888
6888
  }
6889
- var L = this.actions, O = M(L, Pt) && !mn[Pt], Z = M(L, Ut) && !mn[Ut], ae = M(L, Jt) && !mn[Jt];
6890
- if (O) {
6889
+ var k = this.actions, N = z(k, Pt) && !mn[Pt], J = z(k, Ut) && !mn[Ut], ae = z(k, Jt) && !mn[Jt];
6890
+ if (N) {
6891
6891
  var ke = p.pointers.length === 1, De = p.distance < 2, Ne = p.deltaTime < 250;
6892
6892
  if (ke && De && Ne)
6893
6893
  return;
6894
6894
  }
6895
- if (!(ae && Z) && (O || Z && w & me || ae && w & we))
6895
+ if (!(ae && J) && (N || J && w & me || ae && w & we))
6896
6896
  return this.preventSrc(A);
6897
6897
  },
6898
6898
  preventSrc: function(p) {
@@ -6900,10 +6900,10 @@ var or = { exports: {} };
6900
6900
  }
6901
6901
  };
6902
6902
  function Fr(p) {
6903
- if (M(p, Pt))
6903
+ if (z(p, Pt))
6904
6904
  return Pt;
6905
- var A = M(p, Jt), w = M(p, Ut);
6906
- return A && w ? Pt : A || w ? A ? Jt : Ut : M(p, si) ? si : no;
6905
+ var A = z(p, Jt), w = z(p, Ut);
6906
+ return A && w ? Pt : A || w ? A ? Jt : Ut : z(p, si) ? si : no;
6907
6907
  }
6908
6908
  function Gr() {
6909
6909
  if (!eo)
@@ -6915,7 +6915,7 @@ var or = { exports: {} };
6915
6915
  }
6916
6916
  var pn = 1, Je = 2, zt = 4, mt = 8, rt = mt, Vt = 16, $e = 32;
6917
6917
  function at(p) {
6918
- this.options = v({}, this.defaults, p || {}), this.id = _(), this.manager = null, this.options.enable = D(this.options.enable, !0), this.state = pn, this.simultaneous = {}, this.requireFail = [];
6918
+ this.options = v({}, this.defaults, p || {}), this.id = K(), this.manager = null, this.options.enable = D(this.options.enable, !0), this.state = pn, this.simultaneous = {}, this.requireFail = [];
6919
6919
  }
6920
6920
  at.prototype = {
6921
6921
  defaults: {},
@@ -6935,13 +6935,13 @@ var or = { exports: {} };
6935
6935
  if (u(p, "requireFailure", this))
6936
6936
  return this;
6937
6937
  var A = this.requireFail;
6938
- return p = gn(p, this), B(A, p) === -1 && (A.push(p), p.requireFailure(this)), this;
6938
+ return p = gn(p, this), H(A, p) === -1 && (A.push(p), p.requireFailure(this)), this;
6939
6939
  },
6940
6940
  dropRequireFailure: function(p) {
6941
6941
  if (u(p, "dropRequireFailure", this))
6942
6942
  return this;
6943
6943
  p = gn(p, this);
6944
- var A = B(this.requireFail, p);
6944
+ var A = H(this.requireFail, p);
6945
6945
  return A > -1 && this.requireFail.splice(A, 1), this;
6946
6946
  },
6947
6947
  hasRequireFailures: function() {
@@ -6952,10 +6952,10 @@ var or = { exports: {} };
6952
6952
  },
6953
6953
  emit: function(p) {
6954
6954
  var A = this, w = this.state;
6955
- function L(O) {
6956
- A.manager.emit(O, p);
6955
+ function k(N) {
6956
+ A.manager.emit(N, p);
6957
6957
  }
6958
- w < mt && L(A.options.event + io(w)), L(A.options.event), p.additionalEvent && L(p.additionalEvent), w >= mt && L(A.options.event + io(w));
6958
+ w < mt && k(A.options.event + io(w)), k(A.options.event), p.additionalEvent && k(p.additionalEvent), w >= mt && k(A.options.event + io(w));
6959
6959
  },
6960
6960
  tryEmit: function(p) {
6961
6961
  if (this.canEmit())
@@ -6972,7 +6972,7 @@ var or = { exports: {} };
6972
6972
  },
6973
6973
  recognize: function(p) {
6974
6974
  var A = v({}, p);
6975
- if (!z(this.options.enable, [this, A])) {
6975
+ if (!L(this.options.enable, [this, A])) {
6976
6976
  this.reset(), this.state = $e;
6977
6977
  return;
6978
6978
  }
@@ -6998,7 +6998,7 @@ var or = { exports: {} };
6998
6998
  function Ve() {
6999
6999
  at.apply(this, arguments);
7000
7000
  }
7001
- P(Ve, at, {
7001
+ I(Ve, at, {
7002
7002
  defaults: {
7003
7003
  pointers: 1
7004
7004
  },
@@ -7007,14 +7007,14 @@ var or = { exports: {} };
7007
7007
  return A === 0 || p.pointers.length === A;
7008
7008
  },
7009
7009
  process: function(p) {
7010
- var A = this.state, w = p.eventType, L = A & (Je | zt), O = this.attrTest(p);
7011
- return L && (w & V || !O) ? A | Vt : L || O ? w & oe ? A | mt : A & Je ? A | zt : Je : $e;
7010
+ var A = this.state, w = p.eventType, k = A & (Je | zt), N = this.attrTest(p);
7011
+ return k && (w & V || !N) ? A | Vt : k || N ? w & oe ? A | mt : A & Je ? A | zt : Je : $e;
7012
7012
  }
7013
7013
  });
7014
7014
  function vn() {
7015
7015
  Ve.apply(this, arguments), this.pX = null, this.pY = null;
7016
7016
  }
7017
- P(vn, Ve, {
7017
+ I(vn, Ve, {
7018
7018
  defaults: {
7019
7019
  event: "pan",
7020
7020
  threshold: 10,
@@ -7026,8 +7026,8 @@ var or = { exports: {} };
7026
7026
  return p & me && A.push(Ut), p & we && A.push(Jt), A;
7027
7027
  },
7028
7028
  directionTest: function(p) {
7029
- var A = this.options, w = !0, L = p.distance, O = p.direction, Z = p.deltaX, ae = p.deltaY;
7030
- return O & A.direction || (A.direction & me ? (O = Z === 0 ? Be : Z < 0 ? We : le, w = Z != this.pX, L = Math.abs(p.deltaX)) : (O = ae === 0 ? Be : ae < 0 ? He : Fe, w = ae != this.pY, L = Math.abs(p.deltaY))), p.direction = O, w && L > A.threshold && O & A.direction;
7029
+ var A = this.options, w = !0, k = p.distance, N = p.direction, J = p.deltaX, ae = p.deltaY;
7030
+ return N & A.direction || (A.direction & me ? (N = J === 0 ? Be : J < 0 ? We : le, w = J != this.pX, k = Math.abs(p.deltaX)) : (N = ae === 0 ? Be : ae < 0 ? He : Fe, w = ae != this.pY, k = Math.abs(p.deltaY))), p.direction = N, w && k > A.threshold && N & A.direction;
7031
7031
  },
7032
7032
  attrTest: function(p) {
7033
7033
  return Ve.prototype.attrTest.call(this, p) && (this.state & Je || !(this.state & Je) && this.directionTest(p));
@@ -7041,7 +7041,7 @@ var or = { exports: {} };
7041
7041
  function ai() {
7042
7042
  Ve.apply(this, arguments);
7043
7043
  }
7044
- P(ai, Ve, {
7044
+ I(ai, Ve, {
7045
7045
  defaults: {
7046
7046
  event: "pinch",
7047
7047
  threshold: 0,
@@ -7064,7 +7064,7 @@ var or = { exports: {} };
7064
7064
  function li() {
7065
7065
  at.apply(this, arguments), this._timer = null, this._input = null;
7066
7066
  }
7067
- P(li, at, {
7067
+ I(li, at, {
7068
7068
  defaults: {
7069
7069
  event: "press",
7070
7070
  pointers: 1,
@@ -7075,10 +7075,10 @@ var or = { exports: {} };
7075
7075
  return [no];
7076
7076
  },
7077
7077
  process: function(p) {
7078
- var A = this.options, w = p.pointers.length === A.pointers, L = p.distance < A.threshold, O = p.deltaTime > A.time;
7079
- if (this._input = p, !L || !w || p.eventType & (oe | V) && !O)
7078
+ var A = this.options, w = p.pointers.length === A.pointers, k = p.distance < A.threshold, N = p.deltaTime > A.time;
7079
+ if (this._input = p, !k || !w || p.eventType & (oe | V) && !N)
7080
7080
  this.reset();
7081
- else if (p.eventType & Y)
7081
+ else if (p.eventType & Z)
7082
7082
  this.reset(), this._timer = f(function() {
7083
7083
  this.state = rt, this.tryEmit();
7084
7084
  }, A.time, this);
@@ -7096,7 +7096,7 @@ var or = { exports: {} };
7096
7096
  function ci() {
7097
7097
  Ve.apply(this, arguments);
7098
7098
  }
7099
- P(ci, Ve, {
7099
+ I(ci, Ve, {
7100
7100
  defaults: {
7101
7101
  event: "rotate",
7102
7102
  threshold: 0,
@@ -7112,7 +7112,7 @@ var or = { exports: {} };
7112
7112
  function hi() {
7113
7113
  Ve.apply(this, arguments);
7114
7114
  }
7115
- P(hi, Ve, {
7115
+ I(hi, Ve, {
7116
7116
  defaults: {
7117
7117
  event: "swipe",
7118
7118
  threshold: 10,
@@ -7135,7 +7135,7 @@ var or = { exports: {} };
7135
7135
  function bn() {
7136
7136
  at.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
7137
7137
  }
7138
- P(bn, at, {
7138
+ I(bn, at, {
7139
7139
  defaults: {
7140
7140
  event: "tap",
7141
7141
  pointers: 1,
@@ -7149,14 +7149,14 @@ var or = { exports: {} };
7149
7149
  return [si];
7150
7150
  },
7151
7151
  process: function(p) {
7152
- var A = this.options, w = p.pointers.length === A.pointers, L = p.distance < A.threshold, O = p.deltaTime < A.time;
7153
- if (this.reset(), p.eventType & Y && this.count === 0)
7152
+ var A = this.options, w = p.pointers.length === A.pointers, k = p.distance < A.threshold, N = p.deltaTime < A.time;
7153
+ if (this.reset(), p.eventType & Z && this.count === 0)
7154
7154
  return this.failTimeout();
7155
- if (L && O && w) {
7155
+ if (k && N && w) {
7156
7156
  if (p.eventType != oe)
7157
7157
  return this.failTimeout();
7158
- var Z = this.pTime ? p.timeStamp - this.pTime < A.interval : !0, ae = !this.pCenter || Dt(this.pCenter, p.center) < A.posThreshold;
7159
- this.pTime = p.timeStamp, this.pCenter = p.center, !ae || !Z ? this.count = 1 : this.count += 1, this._input = p;
7158
+ var J = this.pTime ? p.timeStamp - this.pTime < A.interval : !0, ae = !this.pCenter || Dt(this.pCenter, p.center) < A.posThreshold;
7159
+ this.pTime = p.timeStamp, this.pCenter = p.center, !ae || !J ? this.count = 1 : this.count += 1, this._input = p;
7160
7160
  var ke = this.count % A.taps;
7161
7161
  if (ke === 0)
7162
7162
  return this.hasRequireFailures() ? (this._timer = f(function() {
@@ -7207,8 +7207,8 @@ var or = { exports: {} };
7207
7207
  var Xr = 1, so = 2;
7208
7208
  function ui(p, A) {
7209
7209
  this.options = v({}, lt.defaults, A || {}), this.options.inputTarget = this.options.inputTarget || p, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = p, this.input = Pe(this), this.touchAction = new ri(this, this.options.touchAction), ro(this, !0), m(this.options.recognizers, function(w) {
7210
- var L = this.add(new w[0](w[1]));
7211
- w[2] && L.recognizeWith(w[2]), w[3] && L.requireFailure(w[3]);
7210
+ var k = this.add(new w[0](w[1]));
7211
+ w[2] && k.recognizeWith(w[2]), w[3] && k.requireFailure(w[3]);
7212
7212
  }, this);
7213
7213
  }
7214
7214
  ui.prototype = {
@@ -7222,10 +7222,10 @@ var or = { exports: {} };
7222
7222
  var A = this.session;
7223
7223
  if (!A.stopped) {
7224
7224
  this.touchAction.preventDefaults(p);
7225
- var w, L = this.recognizers, O = A.curRecognizer;
7226
- (!O || O && O.state & rt) && (O = A.curRecognizer = null);
7227
- for (var Z = 0; Z < L.length; )
7228
- w = L[Z], A.stopped !== so && (!O || w == O || w.canRecognizeWith(O)) ? w.recognize(p) : w.reset(), !O && w.state & (Je | zt | mt) && (O = A.curRecognizer = w), Z++;
7225
+ var w, k = this.recognizers, N = A.curRecognizer;
7226
+ (!N || N && N.state & rt) && (N = A.curRecognizer = null);
7227
+ for (var J = 0; J < k.length; )
7228
+ w = k[J], A.stopped !== so && (!N || w == N || w.canRecognizeWith(N)) ? w.recognize(p) : w.reset(), !N && w.state & (Je | zt | mt) && (N = A.curRecognizer = w), J++;
7229
7229
  }
7230
7230
  },
7231
7231
  get: function(p) {
@@ -7246,7 +7246,7 @@ var or = { exports: {} };
7246
7246
  if (u(p, "remove", this))
7247
7247
  return this;
7248
7248
  if (p = this.get(p), p) {
7249
- var A = this.recognizers, w = B(A, p);
7249
+ var A = this.recognizers, w = H(A, p);
7250
7250
  w !== -1 && (A.splice(w, 1), this.touchAction.update());
7251
7251
  }
7252
7252
  return this;
@@ -7254,16 +7254,16 @@ var or = { exports: {} };
7254
7254
  on: function(p, A) {
7255
7255
  if (p !== o && A !== o) {
7256
7256
  var w = this.handlers;
7257
- return m(N(p), function(L) {
7258
- w[L] = w[L] || [], w[L].push(A);
7257
+ return m(R(p), function(k) {
7258
+ w[k] = w[k] || [], w[k].push(A);
7259
7259
  }), this;
7260
7260
  }
7261
7261
  },
7262
7262
  off: function(p, A) {
7263
7263
  if (p !== o) {
7264
7264
  var w = this.handlers;
7265
- return m(N(p), function(L) {
7266
- A ? w[L] && w[L].splice(B(w[L], A), 1) : delete w[L];
7265
+ return m(R(p), function(k) {
7266
+ A ? w[k] && w[k].splice(H(w[k], A), 1) : delete w[k];
7267
7267
  }), this;
7268
7268
  }
7269
7269
  },
@@ -7274,8 +7274,8 @@ var or = { exports: {} };
7274
7274
  A.type = p, A.preventDefault = function() {
7275
7275
  A.srcEvent.preventDefault();
7276
7276
  };
7277
- for (var L = 0; L < w.length; )
7278
- w[L](A), L++;
7277
+ for (var k = 0; k < w.length; )
7278
+ w[k](A), k++;
7279
7279
  }
7280
7280
  },
7281
7281
  destroy: function() {
@@ -7285,9 +7285,9 @@ var or = { exports: {} };
7285
7285
  function ro(p, A) {
7286
7286
  var w = p.element;
7287
7287
  if (!!w.style) {
7288
- var L;
7289
- m(p.options.cssProps, function(O, Z) {
7290
- L = J(w.style, Z), A ? (p.oldCssProps[L] = w.style[L], w.style[L] = O) : w.style[L] = p.oldCssProps[L] || "";
7288
+ var k;
7289
+ m(p.options.cssProps, function(N, J) {
7290
+ k = O(w.style, J), A ? (p.oldCssProps[k] = w.style[k], w.style[k] = N) : w.style[k] = p.oldCssProps[k] || "";
7291
7291
  }), A || (p.oldCssProps = {});
7292
7292
  }
7293
7293
  }
@@ -7296,7 +7296,7 @@ var or = { exports: {} };
7296
7296
  w.initEvent(p, !0, !0), w.gesture = A, A.target.dispatchEvent(w);
7297
7297
  }
7298
7298
  v(lt, {
7299
- INPUT_START: Y,
7299
+ INPUT_START: Z,
7300
7300
  INPUT_MOVE: re,
7301
7301
  INPUT_END: oe,
7302
7302
  INPUT_CANCEL: V,
@@ -7331,15 +7331,15 @@ var or = { exports: {} };
7331
7331
  Pinch: ai,
7332
7332
  Rotate: ci,
7333
7333
  Press: li,
7334
- on: I,
7334
+ on: E,
7335
7335
  off: T,
7336
7336
  each: m,
7337
7337
  merge: y,
7338
7338
  extend: b,
7339
7339
  assign: v,
7340
- inherit: P,
7341
- bindFn: E,
7342
- prefixed: J
7340
+ inherit: I,
7341
+ bindFn: P,
7342
+ prefixed: O
7343
7343
  });
7344
7344
  var Wr = typeof t < "u" ? t : typeof self < "u" ? self : {};
7345
7345
  Wr.Hammer = lt, typeof o == "function" && o.amd ? o(function() {
@@ -7573,15 +7573,15 @@ function ru(i) {
7573
7573
  const b = v.clientWidth, y = v.clientHeight;
7574
7574
  if (a.points.length < 2)
7575
7575
  return;
7576
- const [P, E] = a.points, z = P.position.clone().project(g.camera), D = E.position.clone().project(g.camera), I = z.clone().lerp(D, 0.5), T = new Oe(z.x * b, z.y * y), C = new Oe(D.x * b, D.y * y);
7577
- if ((() => !(Math.abs(z.z) > 1 || Math.abs(D.z) > 1 || !it(z) && !it(D) || !it(I) || T.distanceTo(C) < 20))() === !1) {
7576
+ const [I, P] = a.points, L = I.position.clone().project(g.camera), D = P.position.clone().project(g.camera), E = L.clone().lerp(D, 0.5), T = new Oe(L.x * b, L.y * y), C = new Oe(D.x * b, D.y * y);
7577
+ if ((() => !(Math.abs(L.z) > 1 || Math.abs(D.z) > 1 || !it(L) && !it(D) || !it(E) || T.distanceTo(C) < 20))() === !1) {
7578
7578
  h.style.opacity = "0", h.style.pointerEvents = "none";
7579
7579
  return;
7580
7580
  }
7581
- const N = (I.x + 1) / 2 * b, B = -(I.y - 1) / 2 * y, k = -(Math.atan((T.y - C.y) / (T.x - C.x)) * 180) / Math.PI;
7582
- h.style.transform = `translate(${N}px, ${B}px) rotate(${k}deg)`, h.style.opacity = "1", h.style.pointerEvents = "all", f && f.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
7583
- const J = P.position.clone().distanceTo(E.position), R = i.line.model.params.getDistanceText(J);
7584
- c.innerText !== R && (c.innerText = R);
7581
+ const R = (E.x + 1) / 2 * b, H = -(E.y - 1) / 2 * y, S = -(Math.atan((T.y - C.y) / (T.x - C.x)) * 180) / Math.PI;
7582
+ h.style.transform = `translate(${R}px, ${H}px) rotate(${S}deg)`, h.style.opacity = "1", h.style.pointerEvents = "all", f && f.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
7583
+ const O = I.position.clone().distanceTo(P.position), B = i.line.model.params.getDistanceText(O);
7584
+ c.innerText !== B && (c.innerText = B);
7585
7585
  }
7586
7586
  function s(g) {
7587
7587
  g.appendChild(h), h.addEventListener("click", t);
@@ -7928,14 +7928,14 @@ class lu extends $n {
7928
7928
  const [g, v] = m.points, b = g.position.clone().project(o), y = v.position.clone().project(o);
7929
7929
  if (!it(b) && !it(y))
7930
7930
  return null;
7931
- const P = new Oe(
7931
+ const I = new Oe(
7932
7932
  b.x * r,
7933
7933
  b.y * a
7934
- ), E = new Oe(
7934
+ ), P = new Oe(
7935
7935
  y.x * r,
7936
7936
  y.y * a
7937
7937
  );
7938
- return { id: m.id, points: [P, E] };
7938
+ return { id: m.id, points: [I, P] };
7939
7939
  }).filter((m) => !!m);
7940
7940
  if (c.length === 0)
7941
7941
  return;
@@ -8140,14 +8140,14 @@ class Ai extends $n {
8140
8140
  const [g, v] = m.points, b = g.position.clone().project(o), y = v.position.clone().project(o);
8141
8141
  if (!it(b) && !it(y))
8142
8142
  return null;
8143
- const P = new Oe(
8143
+ const I = new Oe(
8144
8144
  b.x * r,
8145
8145
  b.y * a
8146
- ), E = new Oe(
8146
+ ), P = new Oe(
8147
8147
  y.x * r,
8148
8148
  y.y * a
8149
8149
  );
8150
- return { id: m.id, points: [P, E] };
8150
+ return { id: m.id, points: [I, P] };
8151
8151
  }).filter((m) => !!m);
8152
8152
  if (c.length === 0)
8153
8153
  return;
@@ -8240,8 +8240,8 @@ class rs extends $n {
8240
8240
  const [g, v] = m.points, b = g.position.clone().project(o), y = v.position.clone().project(o);
8241
8241
  if (!it(b) && !it(y))
8242
8242
  return null;
8243
- const P = new Oe(b.x * r, b.y * a), E = new Oe(y.x * r, y.y * a);
8244
- return { id: m.id, points: [P, E] };
8243
+ const I = new Oe(b.x * r, b.y * a), P = new Oe(y.x * r, y.y * a);
8244
+ return { id: m.id, points: [I, P] };
8245
8245
  }).filter((m) => !!m);
8246
8246
  if (c.length === 0)
8247
8247
  return;
@@ -8341,8 +8341,8 @@ void main() {
8341
8341
  }
8342
8342
  `;
8343
8343
  function lr(i) {
8344
- var y, P;
8345
- const t = (y = i.isMobile) != null ? y : !0, e = (P = i.useNormalVector) != null ? P : !0;
8344
+ var y, I;
8345
+ const t = (y = i.isMobile) != null ? y : !0, e = (I = i.useNormalVector) != null ? I : !0;
8346
8346
  let n = 10349931;
8347
8347
  e && i.ballColor >= 0 && (n = i.ballColor);
8348
8348
  const o = new Mi(), s = new qr(0.3, 0.3), r = t ? fu : mu, a = new Ms().load(r);
@@ -9127,16 +9127,16 @@ function cs(i) {
9127
9127
  }
9128
9128
  return {
9129
9129
  c() {
9130
- t = F("i"), x(t, "class", "svelte-19zi46m"), Me(t, "PanoSpatialTagPlugin__tag-origin", !0), Me(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), S(t, "top", e), S(t, "left", n), S(t, "visibility", i[3].front ? "visible" : "hidden");
9130
+ t = G("i"), x(t, "class", "svelte-19zi46m"), Me(t, "PanoSpatialTagPlugin__tag-origin", !0), Me(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), M(t, "top", e), M(t, "left", n), M(t, "visibility", i[3].front ? "visible" : "hidden");
9131
9131
  },
9132
9132
  m(a, l) {
9133
- W(a, t, l), o || (s = Ke(t, "click", r), o = !0);
9133
+ Y(a, t, l), o || (s = Ke(t, "click", r), o = !0);
9134
9134
  },
9135
9135
  p(a, l) {
9136
- i = a, l & 1 && Me(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) && S(t, "top", e), l & 1 && n !== (n = `${i[3].left}%`) && S(t, "left", n), l & 1 && S(t, "visibility", i[3].front ? "visible" : "hidden");
9136
+ i = a, l & 1 && Me(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) && M(t, "top", e), l & 1 && n !== (n = `${i[3].left}%`) && M(t, "left", n), l & 1 && M(t, "visibility", i[3].front ? "visible" : "hidden");
9137
9137
  },
9138
9138
  d(a) {
9139
- a && X(t), o = !1, s();
9139
+ a && Q(t), o = !1, s();
9140
9140
  }
9141
9141
  };
9142
9142
  }
@@ -9153,7 +9153,7 @@ function Xu(i) {
9153
9153
  m(o, s) {
9154
9154
  for (let r = 0; r < n.length; r += 1)
9155
9155
  n[r].m(o, s);
9156
- W(o, t, s);
9156
+ Y(o, t, s);
9157
9157
  },
9158
9158
  p(o, [s]) {
9159
9159
  if (s & 3) {
@@ -9171,7 +9171,7 @@ function Xu(i) {
9171
9171
  i: ne,
9172
9172
  o: ne,
9173
9173
  d(o) {
9174
- Gt(n, o), o && X(t);
9174
+ Gt(n, o), o && Q(t);
9175
9175
  }
9176
9176
  };
9177
9177
  }
@@ -9196,72 +9196,72 @@ function Zu(i) {
9196
9196
  let t, e, n, o, s, r, a, l, c, h, f, u, m, g, v;
9197
9197
  return {
9198
9198
  c() {
9199
- t = F("div"), e = F("div"), n = fe(), o = F("div"), s = F("i"), r = fe(), a = F("i"), l = fe(), c = F("i"), h = fe(), f = F("div"), u = F("div"), x(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), S(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), x(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), S(s, "width", i[4] + "rem"), x(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), x(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), x(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), x(u, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), x(f, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), S(f, "transform", "scale(" + i[3] * 3 + ")"), x(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), S(t, "height", 20 * i[5] + "rem"), x(t, "class", "svelte-1i5h9zh"), Me(t, "PanoSpatialTagPlugin__tag-x", !0), Me(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), Me(t, "PanoSpatialTagPlugin__tag-show", i[10]), Me(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
9199
+ t = G("div"), e = G("div"), n = fe(), o = G("div"), s = G("i"), r = fe(), a = G("i"), l = fe(), c = G("i"), h = fe(), f = G("div"), u = G("div"), x(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), M(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), x(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), M(s, "width", i[4] + "rem"), x(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), x(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), x(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), x(u, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), x(f, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), M(f, "transform", "scale(" + i[3] * 3 + ")"), x(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), M(t, "height", 20 * i[5] + "rem"), x(t, "class", "svelte-1i5h9zh"), Me(t, "PanoSpatialTagPlugin__tag-x", !0), Me(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), Me(t, "PanoSpatialTagPlugin__tag-show", i[10]), Me(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
9200
9200
  },
9201
9201
  m(b, y) {
9202
- W(b, t, y), G(t, e), G(t, n), G(t, o), G(o, s), G(o, r), G(o, a), G(o, l), G(o, c), G(t, h), G(t, f), G(f, u), u.innerHTML = i[2], i[16](u), g || (v = Ke(u, "click", i[11]), g = !0);
9202
+ Y(b, t, y), X(t, e), X(t, n), X(t, o), X(o, s), X(o, r), X(o, a), X(o, l), X(o, c), X(t, h), X(t, f), X(f, u), u.innerHTML = i[2], i[16](u), g || (v = Ke(u, "click", i[11]), g = !0);
9203
9203
  },
9204
9204
  p(b, [y]) {
9205
- y & 394 && S(e, "transform", "translate(" + b[7] / 2 * b[3] * 3 + "px, " + b[8] / 2 * (b[1] ? -1 : 1) * b[3] * 3 + "px) scale(" + 1 / b[3] + ")"), y & 16 && S(s, "width", b[4] + "rem"), y & 4 && (u.innerHTML = b[2]), y & 8 && S(f, "transform", "scale(" + b[3] * 3 + ")"), y & 1 && m !== (m = "PanoSpatialTagPlugin__" + b[0]) && x(t, "id", m), y & 32 && S(t, "height", 20 * b[5] + "rem"), y & 2 && Me(t, "PanoSpatialTagPlugin__tag-upside-down", b[1]), y & 1024 && Me(t, "PanoSpatialTagPlugin__tag-show", b[10]), y & 1088 && Me(t, "PanoSpatialTagPlugin__tag-hide", b[10] === !1 || b[6]);
9205
+ y & 394 && M(e, "transform", "translate(" + b[7] / 2 * b[3] * 3 + "px, " + b[8] / 2 * (b[1] ? -1 : 1) * b[3] * 3 + "px) scale(" + 1 / b[3] + ")"), y & 16 && M(s, "width", b[4] + "rem"), y & 4 && (u.innerHTML = b[2]), y & 8 && M(f, "transform", "scale(" + b[3] * 3 + ")"), y & 1 && m !== (m = "PanoSpatialTagPlugin__" + b[0]) && x(t, "id", m), y & 32 && M(t, "height", 20 * b[5] + "rem"), y & 2 && Me(t, "PanoSpatialTagPlugin__tag-upside-down", b[1]), y & 1024 && Me(t, "PanoSpatialTagPlugin__tag-show", b[10]), y & 1088 && Me(t, "PanoSpatialTagPlugin__tag-hide", b[10] === !1 || b[6]);
9206
9206
  },
9207
9207
  i: ne,
9208
9208
  o: ne,
9209
9209
  d(b) {
9210
- b && X(t), i[16](null), g = !1, v();
9210
+ b && Q(t), i[16](null), g = !1, v();
9211
9211
  }
9212
9212
  };
9213
9213
  }
9214
9214
  function Ju(i, t, e) {
9215
- let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: h } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, g = 0, v = 0, b, y, P = setTimeout(
9215
+ let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: h } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, g = 0, v = 0, b, y, I = setTimeout(
9216
9216
  () => {
9217
- h || e(10, y = !0), P = void 0;
9217
+ h || e(10, y = !0), I = void 0;
9218
9218
  },
9219
9219
  100
9220
9220
  );
9221
- const E = (I) => {
9221
+ const P = (E) => {
9222
9222
  const T = Object.keys(u);
9223
- let C = I.target;
9223
+ let C = E.target;
9224
9224
  for (; C; ) {
9225
- const M = C.getAttribute("class");
9226
- if (!M) {
9225
+ const z = C.getAttribute("class");
9226
+ if (!z) {
9227
9227
  C = C.parentNode;
9228
9228
  continue;
9229
9229
  }
9230
- if (M.includes("PanoSpatialTagPlugin__tag-content")) {
9230
+ if (z.includes("PanoSpatialTagPlugin__tag-content")) {
9231
9231
  C = null;
9232
9232
  break;
9233
9233
  }
9234
- T.forEach((N) => {
9235
- M.includes(N) && u[N](n);
9234
+ T.forEach((R) => {
9235
+ z.includes(R) && u[R](n);
9236
9236
  }), C = C.parentNode;
9237
9237
  }
9238
9238
  };
9239
9239
  Lt(() => {
9240
9240
  m.emit("initTag", { id: n });
9241
9241
  });
9242
- const z = fr.subscribe((I) => {
9243
- if (I === null)
9242
+ const L = fr.subscribe((E) => {
9243
+ if (E === null)
9244
9244
  return;
9245
- const [T, C] = I.split("-PanoSpatialTagPlugin-");
9246
- n === T && (m.emit("clickOrigin", { id: n, show: y }), P || (e(10, y = h), e(12, h = !h), P = setTimeout(
9245
+ const [T, C] = E.split("-PanoSpatialTagPlugin-");
9246
+ n === T && (m.emit("clickOrigin", { id: n, show: y }), I || (e(10, y = h), e(12, h = !h), I = setTimeout(
9247
9247
  () => {
9248
- P = void 0;
9248
+ I = void 0;
9249
9249
  },
9250
9250
  1500
9251
9251
  )));
9252
9252
  });
9253
9253
  Ga(() => {
9254
- e(7, g = b.offsetWidth), e(8, v = b.offsetHeight), !P && e(10, y = !h);
9254
+ e(7, g = b.offsetWidth), e(8, v = b.offsetHeight), !I && e(10, y = !h);
9255
9255
  }), ln(() => {
9256
- m.emit("destroyTag", { id: n }), z(), f();
9256
+ m.emit("destroyTag", { id: n }), L(), f();
9257
9257
  });
9258
- function D(I) {
9259
- Bt[I ? "unshift" : "push"](() => {
9260
- b = I, e(9, b);
9258
+ function D(E) {
9259
+ Bt[E ? "unshift" : "push"](() => {
9260
+ b = E, e(9, b);
9261
9261
  });
9262
9262
  }
9263
- return i.$$set = (I) => {
9264
- "id" in I && e(0, n = I.id), "upsideDown" in I && e(1, o = I.upsideDown), "content" in I && e(2, s = I.content), "contentZoom" in I && e(3, r = I.contentZoom), "lineWidthZoom" in I && e(4, a = I.lineWidthZoom), "lineHeightZoom" in I && e(5, l = I.lineHeightZoom), "destroying" in I && e(6, c = I.destroying), "folded" in I && e(12, h = I.folded), "dispose" in I && e(13, f = I.dispose), "events" in I && e(14, u = I.events), "hooks" in I && e(15, m = I.hooks);
9263
+ return i.$$set = (E) => {
9264
+ "id" in E && e(0, n = E.id), "upsideDown" in E && e(1, o = E.upsideDown), "content" in E && e(2, s = E.content), "contentZoom" in E && e(3, r = E.contentZoom), "lineWidthZoom" in E && e(4, a = E.lineWidthZoom), "lineHeightZoom" in E && e(5, l = E.lineHeightZoom), "destroying" in E && e(6, c = E.destroying), "folded" in E && e(12, h = E.folded), "dispose" in E && e(13, f = E.dispose), "events" in E && e(14, u = E.events), "hooks" in E && e(15, m = E.hooks);
9265
9265
  }, [
9266
9266
  n,
9267
9267
  o,
@@ -9274,7 +9274,7 @@ function Ju(i, t, e) {
9274
9274
  v,
9275
9275
  b,
9276
9276
  y,
9277
- E,
9277
+ P,
9278
9278
  h,
9279
9279
  f,
9280
9280
  u,
@@ -9449,9 +9449,9 @@ class $u {
9449
9449
  }
9450
9450
  }
9451
9451
  const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Gf = (i, t) => {
9452
- var Q, ee, se, ie, ce, Ae, xe, ze;
9452
+ var W, ee, se, ie, ce, Ae, xe, ze;
9453
9453
  let e = t == null ? void 0 : t.container, n = 1.4;
9454
- const o = (Q = t == null ? void 0 : t.wait) != null ? Q : 200, s = (ee = t == null ? void 0 : t.maxNumberOnScreen) != null ? ee : 3, r = (se = t == null ? void 0 : t.minRad) != null ? se : Math.PI / 4, a = (ie = t == null ? void 0 : t.nearTolerance) != null ? ie : 100, l = (ce = t == null ? void 0 : t.upsideHeight) != null ? ce : 1.6, c = (Ae = t == null ? void 0 : t.minDistance) != null ? Ae : 1.2, h = (xe = t == null ? void 0 : t.maxDistance) != null ? xe : 3.5, f = Si(i), u = document.createElement("div");
9454
+ const o = (W = t == null ? void 0 : t.wait) != null ? W : 200, s = (ee = t == null ? void 0 : t.maxNumberOnScreen) != null ? ee : 3, r = (se = t == null ? void 0 : t.minRad) != null ? se : Math.PI / 4, a = (ie = t == null ? void 0 : t.nearTolerance) != null ? ie : 100, l = (ce = t == null ? void 0 : t.upsideHeight) != null ? ce : 1.6, c = (Ae = t == null ? void 0 : t.minDistance) != null ? Ae : 1.2, h = (xe = t == null ? void 0 : t.maxDistance) != null ? xe : 3.5, f = Si(i), u = document.createElement("div");
9455
9455
  u.classList.add("PanoSpatialTagPlugin"), Object.assign(u.style, Vu);
9456
9456
  const m = new At();
9457
9457
  let g = new Image();
@@ -9469,11 +9469,11 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9469
9469
  }, b = new Wu({
9470
9470
  target: u,
9471
9471
  props: { origins: v.origins }
9472
- }), y = (Y, re) => {
9473
- D(), re && I();
9474
- }, P = () => {
9475
- v.forbidden && (v.forbidden = !1, I());
9476
- }, E = (Y, re) => {
9472
+ }), y = (Z, re) => {
9473
+ D(), re && E();
9474
+ }, I = () => {
9475
+ v.forbidden && (v.forbidden = !1, E());
9476
+ }, P = (Z, re) => {
9477
9477
  if (v.tags.length === 0)
9478
9478
  return;
9479
9479
  const oe = re.longitude - i.state.longitude, V = i.camera.clone();
@@ -9504,16 +9504,16 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9504
9504
  le.destroying && (le.app.$destroy(), le = null);
9505
9505
  }), v.tags = v.tags.filter((le) => !le.destroying), D();
9506
9506
  }, 1900);
9507
- }, z = (Y) => {
9508
- Y !== Se.Mode.Panorama && !v.forbidden && (b.$set({ origins: [] }), v.tags.forEach((re) => {
9507
+ }, L = (Z) => {
9508
+ Z !== Se.Mode.Panorama && !v.forbidden && (b.$set({ origins: [] }), v.tags.forEach((re) => {
9509
9509
  re.app.$destroy(), re = null;
9510
9510
  }), v.origins = [], v.tags = [], v.forbidden = !0);
9511
9511
  }, D = () => {
9512
9512
  if (v.forbidden || !v.enabled)
9513
9513
  return;
9514
- const Y = i.camera, re = Y.getWorldDirection(new j.Vector3());
9514
+ const Z = i.camera, re = Z.getWorldDirection(new j.Vector3());
9515
9515
  v.origins = v.tags.map((oe) => {
9516
- const V = oe.position.clone().project(Y), Be = oe.position.clone().sub(Y.position).setY(0).angleTo(re.setY(0)) < Math.PI / 2;
9516
+ const V = oe.position.clone().project(Z), Be = oe.position.clone().sub(Z.position).setY(0).angleTo(re.setY(0)) < Math.PI / 2;
9517
9517
  return {
9518
9518
  id: oe.id,
9519
9519
  front: Be,
@@ -9522,14 +9522,14 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9522
9522
  destroying: oe.destroying
9523
9523
  };
9524
9524
  }), b.$set({ origins: v.origins });
9525
- }, I = () => {
9525
+ }, E = () => {
9526
9526
  v.forbidden || !v.enabled || (v.timeoutId && clearTimeout(v.timeoutId), v.timeoutId = setTimeout(() => {
9527
9527
  v.timeoutId = void 0;
9528
- const Y = T();
9529
- Y.length && (v.tags = v.tags.concat(Y), D());
9528
+ const Z = T();
9529
+ Z.length && (v.tags = v.tags.concat(Z), D());
9530
9530
  }, o));
9531
9531
  }, T = () => {
9532
- const { clientWidth: Y, clientHeight: re } = i.getElement(), oe = [], V = i.camera, Be = new j.Frustum(), We = new j.Matrix4(), le = V.getWorldDirection(new j.Vector3());
9532
+ const { clientWidth: Z, clientHeight: re } = i.getElement(), oe = [], V = i.camera, Be = new j.Frustum(), We = new j.Matrix4(), le = V.getWorldDirection(new j.Vector3());
9533
9533
  We.multiplyMatrices(
9534
9534
  V.projectionMatrix,
9535
9535
  V.matrixWorldInverse
@@ -9551,7 +9551,7 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9551
9551
  return !0;
9552
9552
  const st = Le.position.clone().project(V);
9553
9553
  return Math.sqrt(
9554
- Math.pow((Ue.x - st.x) / 2 * Y, 2) + Math.pow((Ue.y - st.y) / 2 * re, 2)
9554
+ Math.pow((Ue.x - st.x) / 2 * Z, 2) + Math.pow((Ue.y - st.y) / 2 * re, 2)
9555
9555
  ) > a;
9556
9556
  }))
9557
9557
  return me;
@@ -9587,7 +9587,7 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9587
9587
  return !0;
9588
9588
  const Le = Pe.position.clone().project(V);
9589
9589
  return Math.sqrt(
9590
- Math.pow((ft.x - Le.x) / 2 * Y, 2) + Math.pow((ft.y - Le.y) / 2 * re, 2)
9590
+ Math.pow((ft.x - Le.x) / 2 * Z, 2) + Math.pow((ft.y - Le.y) / 2 * re, 2)
9591
9591
  ) > a;
9592
9592
  }))
9593
9593
  continue;
@@ -9627,8 +9627,8 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9627
9627
  }
9628
9628
  }
9629
9629
  return oe;
9630
- }, C = (Y) => {
9631
- v.points = Y.points.map((re) => {
9630
+ }, C = (Z) => {
9631
+ v.points = Z.points.map((re) => {
9632
9632
  var oe, V;
9633
9633
  return {
9634
9634
  id: re.id,
@@ -9637,49 +9637,49 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9637
9637
  replacement: (oe = re.replacement) != null ? oe : {},
9638
9638
  weight: (V = re.weight) != null ? V : -1
9639
9639
  };
9640
- }), Y.render && (v.render = Y.render), Y.template && (v.template = Y.template), Y.events && (v.events = Y.events), Y.enabled === !1 && (v.enabled = Y.enabled), Y.folded === !0 && (v.folded = Y.folded);
9641
- }, M = (Y) => {
9642
- v.intersectObjects = Y, I();
9643
- }, N = () => {
9644
- v.enabled = !0, I();
9645
- }, B = () => {
9646
- v.enabled = !1, b.$set({ origins: [] }), v.tags.forEach((Y) => {
9647
- Y.app.$destroy(), Y = null;
9640
+ }), Z.render && (v.render = Z.render), Z.template && (v.template = Z.template), Z.events && (v.events = Z.events), Z.enabled === !1 && (v.enabled = Z.enabled), Z.folded === !0 && (v.folded = Z.folded);
9641
+ }, z = (Z) => {
9642
+ v.intersectObjects = Z, E();
9643
+ }, R = () => {
9644
+ v.enabled = !0, E();
9645
+ }, H = () => {
9646
+ v.enabled = !1, b.$set({ origins: [] }), v.tags.forEach((Z) => {
9647
+ Z.app.$destroy(), Z = null;
9648
9648
  }), v.origins = [], v.tags = [];
9649
- }, K = () => {
9650
- v.folded = !1, v.tags.forEach((Y) => {
9651
- Y.app.$set({ folded: v.folded });
9649
+ }, _ = () => {
9650
+ v.folded = !1, v.tags.forEach((Z) => {
9651
+ Z.app.$set({ folded: v.folded });
9652
9652
  });
9653
- }, k = () => {
9654
- v.folded = !0, v.tags.forEach((Y) => {
9655
- Y.app.$set({ folded: v.folded });
9653
+ }, S = () => {
9654
+ v.folded = !0, v.tags.forEach((Z) => {
9655
+ Z.app.$set({ folded: v.folded });
9656
9656
  });
9657
- }, J = (Y) => {
9657
+ }, O = (Z) => {
9658
9658
  v.tags.forEach((re) => {
9659
- re.id === Y && re.app.$set({ folded: !1 });
9659
+ re.id === Z && re.app.$set({ folded: !1 });
9660
9660
  });
9661
- }, R = (Y) => {
9661
+ }, B = (Z) => {
9662
9662
  v.tags.forEach((re) => {
9663
- re.id === Y && re.app.$set({ folded: !0 });
9663
+ re.id === Z && re.app.$set({ folded: !0 });
9664
9664
  });
9665
- }, _ = () => {
9665
+ }, K = () => {
9666
9666
  i.once("renderFrame", D);
9667
9667
  }, U = () => {
9668
- e || (e = i.getElement().parentElement), e && e.appendChild(u), v.forbidden = !1, n = i.model.bounding.getCenter(new j.Vector3()).y, I(), i.on("panoWillArrive", E), i.on("panoArrived", P), i.on("modeChange", z), i.on("cameraUpdate", y);
9668
+ e || (e = i.getElement().parentElement), e && e.appendChild(u), v.forbidden = !1, n = i.model.bounding.getCenter(new j.Vector3()).y, E(), i.on("panoWillArrive", P), i.on("panoArrived", I), i.on("modeChange", L), i.on("cameraUpdate", y);
9669
9669
  }, te = () => {
9670
- g = null, f.disposeAll(), b.$destroy(), v.tags.forEach((Y) => {
9671
- Y.app.$destroy(), Y = null;
9672
- }), v.origins = [], v.tags = [], i.off("modelLoaded", U), i.off("renderFrame", D), i.off("panoWillArrive", E), i.off("panoArrived", P), i.off("modeChange", z), i.off("cameraUpdate", y), i.off("dispose", te), window.removeEventListener("resize", _, !1);
9670
+ g = null, f.disposeAll(), b.$destroy(), v.tags.forEach((Z) => {
9671
+ Z.app.$destroy(), Z = null;
9672
+ }), v.origins = [], v.tags = [], i.off("modelLoaded", U), i.off("renderFrame", D), i.off("panoWillArrive", P), i.off("panoArrived", I), i.off("modeChange", L), i.off("cameraUpdate", y), i.off("dispose", te), window.removeEventListener("resize", K, !1);
9673
9673
  };
9674
- return window.addEventListener("resize", _, !1), (ze = i == null ? void 0 : i.model) != null && ze.loaded ? U() : i.once("modelLoaded", U), i.on("dispose", te), {
9674
+ return window.addEventListener("resize", K, !1), (ze = i == null ? void 0 : i.model) != null && ze.loaded ? U() : i.once("modelLoaded", U), i.on("dispose", te), {
9675
9675
  load: C,
9676
- setIntersectObjects: M,
9677
- unfoldAll: K,
9678
- foldAll: k,
9679
- unfold: J,
9680
- fold: R,
9681
- enable: N,
9682
- disable: B,
9676
+ setIntersectObjects: z,
9677
+ unfoldAll: _,
9678
+ foldAll: S,
9679
+ unfold: O,
9680
+ fold: B,
9681
+ enable: R,
9682
+ disable: H,
9683
9683
  hooks: m,
9684
9684
  dispose: te
9685
9685
  };
@@ -9730,18 +9730,18 @@ function nd(i) {
9730
9730
  let t, e, n, o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "", s, r, a, l, c, h;
9731
9731
  return {
9732
9732
  c() {
9733
- t = F("div"), e = F("div"), n = F("span"), s = qe(o), r = fe(), a = F("div"), x(n, "class", "item-label-item__text svelte-i9z7qw"), x(e, "class", "item-label-item__text-wrap svelte-i9z7qw"), S(e, "top", `-${i[0].strokeLength + 26}px`), x(a, "class", "item-label-item__bar svelte-i9z7qw"), S(a, "height", `${i[0].strokeLength}px`), x(t, "class", l = je(tt("item-label-item", { visible: i[0].visible })) + " svelte-i9z7qw"), S(t, "z-index", i[0].zIndex), S(t, "transform", i[0].transform);
9733
+ t = G("div"), e = G("div"), n = G("span"), s = qe(o), r = fe(), a = G("div"), x(n, "class", "item-label-item__text svelte-i9z7qw"), x(e, "class", "item-label-item__text-wrap svelte-i9z7qw"), M(e, "top", `-${i[0].strokeLength + 26}px`), x(a, "class", "item-label-item__bar svelte-i9z7qw"), M(a, "height", `${i[0].strokeLength}px`), x(t, "class", l = je(tt("item-label-item", { visible: i[0].visible })) + " svelte-i9z7qw"), M(t, "z-index", i[0].zIndex), M(t, "transform", i[0].transform);
9734
9734
  },
9735
9735
  m(f, u) {
9736
- W(f, t, u), G(t, e), G(e, n), G(n, s), G(t, r), G(t, a), c || (h = Ke(n, "click", i[1]), c = !0);
9736
+ Y(f, t, u), X(t, e), X(e, n), X(n, s), X(t, r), X(t, a), c || (h = Ke(n, "click", i[1]), c = !0);
9737
9737
  },
9738
9738
  p(f, [u]) {
9739
- u & 1 && o !== (o = (f[0].name.length > 6 ? `${f[0].name.slice(0, 6)}...` : f[0].name) + "") && dt(s, o), u & 1 && S(e, "top", `-${f[0].strokeLength + 26}px`), u & 1 && S(a, "height", `${f[0].strokeLength}px`), u & 1 && l !== (l = je(tt("item-label-item", { visible: f[0].visible })) + " svelte-i9z7qw") && x(t, "class", l), u & 1 && S(t, "z-index", f[0].zIndex), u & 1 && S(t, "transform", f[0].transform);
9739
+ u & 1 && o !== (o = (f[0].name.length > 6 ? `${f[0].name.slice(0, 6)}...` : f[0].name) + "") && dt(s, o), u & 1 && M(e, "top", `-${f[0].strokeLength + 26}px`), u & 1 && M(a, "height", `${f[0].strokeLength}px`), u & 1 && l !== (l = je(tt("item-label-item", { visible: f[0].visible })) + " svelte-i9z7qw") && x(t, "class", l), u & 1 && M(t, "z-index", f[0].zIndex), u & 1 && M(t, "transform", f[0].transform);
9740
9740
  },
9741
9741
  i: ne,
9742
9742
  o: ne,
9743
9743
  d(f) {
9744
- f && X(t), c = !1, h();
9744
+ f && Q(t), c = !1, h();
9745
9745
  }
9746
9746
  };
9747
9747
  }
@@ -9788,7 +9788,7 @@ function vs(i, t) {
9788
9788
  e = Xe(), ye(n.$$.fragment), this.first = e;
9789
9789
  },
9790
9790
  m(s, r) {
9791
- W(s, e, r), ve(n, s, r), o = !0;
9791
+ Y(s, e, r), ve(n, s, r), o = !0;
9792
9792
  },
9793
9793
  p(s, r) {
9794
9794
  t = s;
@@ -9796,13 +9796,13 @@ function vs(i, t) {
9796
9796
  r & 2 && (a.itemLabel = t[26]), r & 1 && (a.hooks = t[0]), n.$set(a);
9797
9797
  },
9798
9798
  i(s) {
9799
- o || (H(n.$$.fragment, s), o = !0);
9799
+ o || (F(n.$$.fragment, s), o = !0);
9800
9800
  },
9801
9801
  o(s) {
9802
9802
  q(n.$$.fragment, s), o = !1;
9803
9803
  },
9804
9804
  d(s) {
9805
- s && X(e), be(n, s);
9805
+ s && Q(e), be(n, s);
9806
9806
  }
9807
9807
  };
9808
9808
  }
@@ -9815,24 +9815,24 @@ function rd(i) {
9815
9815
  }
9816
9816
  return {
9817
9817
  c() {
9818
- t = F("div");
9818
+ t = G("div");
9819
9819
  for (let l = 0; l < e.length; l += 1)
9820
9820
  e[l].c();
9821
- x(t, "class", "item-labels-container svelte-gk8s47"), _e(() => i[9].call(t)), S(t, "opacity", i[4] ? 1 : 0);
9821
+ x(t, "class", "item-labels-container svelte-gk8s47"), _e(() => i[9].call(t)), M(t, "opacity", i[4] ? 1 : 0);
9822
9822
  },
9823
9823
  m(l, c) {
9824
- W(l, t, c);
9824
+ Y(l, t, c);
9825
9825
  for (let h = 0; h < e.length; h += 1)
9826
9826
  e[h].m(t, null);
9827
9827
  o = Xt(t, i[9].bind(t)), s = !0;
9828
9828
  },
9829
9829
  p(l, [c]) {
9830
- c & 3 && (r = l[1], Ee(), e = yt(e, c, a, 1, l, r, n, t, Qt, vs, null, gs), Ie()), c & 16 && S(t, "opacity", l[4] ? 1 : 0);
9830
+ c & 3 && (r = l[1], Ee(), e = yt(e, c, a, 1, l, r, n, t, Qt, vs, null, gs), Ie()), c & 16 && M(t, "opacity", l[4] ? 1 : 0);
9831
9831
  },
9832
9832
  i(l) {
9833
9833
  if (!s) {
9834
9834
  for (let c = 0; c < r.length; c += 1)
9835
- H(e[c]);
9835
+ F(e[c]);
9836
9836
  s = !0;
9837
9837
  }
9838
9838
  },
@@ -9842,7 +9842,7 @@ function rd(i) {
9842
9842
  s = !1;
9843
9843
  },
9844
9844
  d(l) {
9845
- l && X(t);
9845
+ l && Q(t);
9846
9846
  for (let c = 0; c < e.length; c += 1)
9847
9847
  e[c].d();
9848
9848
  o();
@@ -9853,75 +9853,75 @@ let bs = 26, ad = 11;
9853
9853
  function ld(i, t, e) {
9854
9854
  const { Raycaster: n, Vector3: o } = j;
9855
9855
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, h = null, f = null, u, m, g = [], v = !0;
9856
- const b = (k, J) => {
9857
- const R = new n(), _ = k.camera.position.clone(), U = new o().fromArray(J.modelPosition), te = U.distanceTo(_);
9858
- R.set(_.clone(), U.clone().sub(_).normalize());
9859
- const [Q] = k.model.intersectRaycaster(R);
9860
- return !(Q && Q.distance + 1 < te);
9861
- }, y = (k, J) => {
9862
- const R = new o(J.modelPosition[0], J.modelPosition[1], J.modelPosition[2]), _ = k.project2d(R), U = _ == null ? void 0 : _.x, te = _ == null ? void 0 : _.y;
9856
+ const b = (S, O) => {
9857
+ const B = new n(), K = S.camera.position.clone(), U = new o().fromArray(O.modelPosition), te = U.distanceTo(K);
9858
+ B.set(K.clone(), U.clone().sub(K).normalize());
9859
+ const [W] = S.model.intersectRaycaster(B);
9860
+ return !(W && W.distance + 1 < te);
9861
+ }, y = (S, O) => {
9862
+ const B = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), K = S.project2d(B), U = K == null ? void 0 : K.x, te = K == null ? void 0 : K.y;
9863
9863
  return [U, te];
9864
- }, P = (k) => `translate(${k[0]}px, ${k[1]}px)`, E = (k, J) => g.length === 0 ? !1 : !!g.find((_) => k[0] >= _[0] - J && k[0] <= _[0] + J || k[1] >= _[1] - bs && k[1] <= _[1] + bs);
9865
- function z(k, J) {
9866
- switch (J) {
9864
+ }, I = (S) => `translate(${S[0]}px, ${S[1]}px)`, P = (S, O) => g.length === 0 ? !1 : !!g.find((K) => S[0] >= K[0] - O && S[0] <= K[0] + O || S[1] >= K[1] - bs && S[1] <= K[1] + bs);
9865
+ function L(S, O) {
9866
+ switch (O) {
9867
9867
  case Ot.SMALL:
9868
- return Math.ceil(-27.78 * k + 85);
9868
+ return Math.ceil(-27.78 * S + 85);
9869
9869
  case Ot.MIDLLE:
9870
- return Math.ceil(-38.9 * k + 130);
9870
+ return Math.ceil(-38.9 * S + 130);
9871
9871
  case Ot.LARGE:
9872
- return Math.ceil(-44.44 * k + 140);
9872
+ return Math.ceil(-44.44 * S + 140);
9873
9873
  case Ot.EXTRA_LARGE:
9874
- return Math.ceil(-92.59 * k + 300);
9874
+ return Math.ceil(-92.59 * S + 300);
9875
9875
  }
9876
9876
  }
9877
- const D = (k, J) => {
9878
- const R = J.map((U) => {
9879
- const te = y(k, U), Q = U.name.length * ad, ee = z(U.modelPosition[1], c), ie = (r ? b(k, U) : !0) && !E([te[0], te[1] + ee], Q);
9877
+ const D = (S, O) => {
9878
+ const B = O.map((U) => {
9879
+ const te = y(S, U), W = U.name.length * ad, ee = L(U.modelPosition[1], c), ie = (r ? b(S, U) : !0) && !P([te[0], te[1] + ee], W);
9880
9880
  if (!ie)
9881
9881
  return Object.assign(Object.assign({}, U), { visible: ie });
9882
9882
  g.push(te);
9883
- const ce = P(te);
9883
+ const ce = I(te);
9884
9884
  return Object.assign(Object.assign({}, U), { visible: ie, transform: ce, strokeLength: ee });
9885
- }), _ = R.filter(({ visible: U }) => U).map((U) => ({
9885
+ }), K = B.filter(({ visible: U }) => U).map((U) => ({
9886
9886
  itemLabelItem: U,
9887
- distance: new o(U.modelPosition[0], U.modelPosition[1], U.modelPosition[2]).clone().distanceTo(k.camera.position)
9887
+ distance: new o(U.modelPosition[0], U.modelPosition[1], U.modelPosition[2]).clone().distanceTo(S.camera.position)
9888
9888
  })).sort((U, te) => U.distance - te.distance);
9889
- return R.map((U) => {
9890
- const te = _.findIndex((Q) => Q.itemLabelItem.id === U.id);
9889
+ return B.map((U) => {
9890
+ const te = K.findIndex((W) => W.itemLabelItem.id === U.id);
9891
9891
  return te !== void 0 ? Object.assign(Object.assign({}, U), { zIndex: te * 10 }) : U;
9892
9892
  });
9893
- }, I = () => {
9893
+ }, E = () => {
9894
9894
  g = [], e(1, f = D(s, f));
9895
9895
  };
9896
9896
  Qs(() => {
9897
- N();
9897
+ R();
9898
9898
  });
9899
9899
  const T = () => {
9900
9900
  e(4, v = !1), C();
9901
9901
  };
9902
9902
  Lt(() => {
9903
- e(1, f = a), h = a, I(), M(), s.on("cameraUpdate", T);
9903
+ e(1, f = a), h = a, E(), z(), s.on("cameraUpdate", T);
9904
9904
  });
9905
9905
  const C = pr(
9906
9906
  () => {
9907
- e(4, v = !0), I();
9907
+ e(4, v = !0), E();
9908
9908
  },
9909
9909
  300
9910
- ), M = () => {
9911
- window.addEventListener("resize", B, !1);
9912
- }, N = () => {
9913
- h !== a && (e(1, f = a), h = a, I());
9914
- }, B = () => {
9915
- s.once("renderFrame", I);
9910
+ ), z = () => {
9911
+ window.addEventListener("resize", H, !1);
9912
+ }, R = () => {
9913
+ h !== a && (e(1, f = a), h = a, E());
9914
+ }, H = () => {
9915
+ s.once("renderFrame", E);
9916
9916
  };
9917
9917
  ln(() => {
9918
- s.off("cameraUpdate", T), window.removeEventListener("resize", B, !1);
9918
+ s.off("cameraUpdate", T), window.removeEventListener("resize", H, !1);
9919
9919
  });
9920
- function K() {
9920
+ function _() {
9921
9921
  u = this.clientWidth, m = this.clientHeight, e(2, u), e(3, m);
9922
9922
  }
9923
- return i.$$set = (k) => {
9924
- "five" in k && e(5, s = k.five), "modelOcclusionEnable" in k && e(6, r = k.modelOcclusionEnable), "itemLabels" in k && e(7, a = k.itemLabels), "hooks" in k && e(0, l = k.hooks), "displayStrategyType" in k && e(8, c = k.displayStrategyType);
9923
+ return i.$$set = (S) => {
9924
+ "five" in S && e(5, s = S.five), "modelOcclusionEnable" in S && e(6, r = S.modelOcclusionEnable), "itemLabels" in S && e(7, a = S.itemLabels), "hooks" in S && e(0, l = S.hooks), "displayStrategyType" in S && e(8, c = S.displayStrategyType);
9925
9925
  }, [
9926
9926
  l,
9927
9927
  f,
@@ -9932,7 +9932,7 @@ function ld(i, t, e) {
9932
9932
  r,
9933
9933
  a,
9934
9934
  c,
9935
- K
9935
+ _
9936
9936
  ];
9937
9937
  }
9938
9938
  class cd extends de {
@@ -10065,17 +10065,19 @@ const Wf = (i, { videoElement: t }) => {
10065
10065
  }, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
10066
10066
  if (e.enabled || !e.videoTexture)
10067
10067
  return;
10068
- e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((E) => i.scene.add(E));
10068
+ e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((L) => i.scene.add(L)), o.forEach((L) => {
10069
+ L.enable();
10070
+ });
10069
10071
  const P = () => {
10070
10072
  if (!e.videoTexture)
10071
10073
  return;
10072
- const E = () => {
10073
- var z;
10074
- !e.videoTexture || ((z = e.videoTexture) == null || z.image.removeEventListener("timeupdate", E), e.videoTextureEnabled = !0, e.videoMeshes.forEach((D) => {
10075
- D.material.map !== e.videoTexture && (D.material.map = e.videoTexture);
10074
+ const L = () => {
10075
+ var D;
10076
+ !e.videoTexture || ((D = e.videoTexture) == null || D.image.removeEventListener("timeupdate", L), e.videoTextureEnabled = !0, e.videoMeshes.forEach((E) => {
10077
+ E.material.map !== e.videoTexture && (E.material.map = e.videoTexture);
10076
10078
  }), i.needsRender = !0);
10077
10079
  };
10078
- e.videoTexture.image.addEventListener("timeupdate", E), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
10080
+ e.videoTexture.image.addEventListener("timeupdate", L), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
10079
10081
  n.hide();
10080
10082
  }, e.videoTexture.image.onpause = () => {
10081
10083
  n.show();
@@ -10091,108 +10093,108 @@ const Wf = (i, { videoElement: t }) => {
10091
10093
  }, l = () => {
10092
10094
  !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((P) => {
10093
10095
  P.geometry.dispose(), P.material.dispose(), i.scene.remove(P), e.videoTexture && e.videoTexture.image.pause();
10096
+ }), o.forEach((P) => {
10097
+ P.disable();
10094
10098
  }), e.videoMeshes = [], i.needsRender = !0);
10095
- }, c = () => e.rectPoints.map((P, E) => {
10096
- const z = new j.BufferGeometry(), D = 128, I = [];
10097
- I.push(...P[0].toArray());
10098
- for (let k = 1; k < D; k++)
10099
- I.push(
10100
- P[0].x + (P[1].x - P[0].x) * k / D,
10101
- P[0].y + (P[1].y - P[0].y) * k / D,
10102
- P[0].z + (P[1].z - P[0].z) * k / D
10099
+ }, c = () => e.rectPoints.map((P, L) => {
10100
+ const D = new j.BufferGeometry(), E = 128, T = [];
10101
+ T.push(...P[0].toArray());
10102
+ for (let O = 1; O < E; O++)
10103
+ T.push(
10104
+ P[0].x + (P[1].x - P[0].x) * O / E,
10105
+ P[0].y + (P[1].y - P[0].y) * O / E,
10106
+ P[0].z + (P[1].z - P[0].z) * O / E
10103
10107
  );
10104
- I.push(...P[1].toArray()), I.push(...P[2].toArray());
10105
- for (let k = 1; k < D; k++)
10106
- I.push(
10107
- P[2].x + (P[3].x - P[2].x) * k / D,
10108
- P[2].y + (P[3].y - P[2].y) * k / D,
10109
- P[2].z + (P[3].z - P[2].z) * k / D
10108
+ T.push(...P[1].toArray()), T.push(...P[2].toArray());
10109
+ for (let O = 1; O < E; O++)
10110
+ T.push(
10111
+ P[2].x + (P[3].x - P[2].x) * O / E,
10112
+ P[2].y + (P[3].y - P[2].y) * O / E,
10113
+ P[2].z + (P[3].z - P[2].z) * O / E
10110
10114
  );
10111
- I.push(...P[3].toArray());
10112
- const T = [];
10113
- T.push(0, 1);
10114
- for (let k = 1; k < D; k++)
10115
- T.push(0, 1 - k / D);
10116
- T.push(0, 0), T.push(1, 0);
10117
- for (let k = 1; k < D; k++)
10118
- T.push(1, k / D);
10119
- T.push(1, 1);
10115
+ T.push(...P[3].toArray());
10120
10116
  const C = [];
10121
- for (let k = 0; k < D; k++)
10122
- C.push(k, k + 1, D * 2 - k, k, D * 2 - k, D * 2 + 1 - k);
10123
- z.setAttribute("position", new j.BufferAttribute(new Float32Array(I), 3)), z.setAttribute("uv", new j.BufferAttribute(new Float32Array(T), 2)), z.setIndex(new j.BufferAttribute(new Uint32Array(C), 1));
10124
- const M = new j.MeshBasicMaterial({
10117
+ C.push(0, 1);
10118
+ for (let O = 1; O < E; O++)
10119
+ C.push(0, 1 - O / E);
10120
+ C.push(0, 0), C.push(1, 0);
10121
+ for (let O = 1; O < E; O++)
10122
+ C.push(1, O / E);
10123
+ C.push(1, 1);
10124
+ const z = [];
10125
+ for (let O = 0; O < E; O++)
10126
+ z.push(O, O + 1, E * 2 - O, O, E * 2 - O, E * 2 + 1 - O);
10127
+ D.setAttribute("position", new j.BufferAttribute(new Float32Array(T), 3)), D.setAttribute("uv", new j.BufferAttribute(new Float32Array(C), 2)), D.setIndex(new j.BufferAttribute(new Uint32Array(z), 1));
10128
+ const R = new j.MeshBasicMaterial({
10125
10129
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
10126
10130
  side: j.DoubleSide
10127
- }), N = new j.Mesh(z, M);
10128
- N.renderOrder = 1, N.name = `ModelTVVideoPlugin-${E}-${performance.now()}`;
10129
- const B = [P[1], P[2], P[3], P[0]], K = n.create3DDomContainer(B);
10130
- if (K != null && K.container) {
10131
- const k = document.createElement("div");
10132
- k.classList.add("play-icon"), k.style.width = "100%", k.style.height = "100%", k.style.display = "flex", k.style.justifyContent = "center", k.style.alignItems = "center", k.style.pointerEvents = "none", K.container.appendChild(k);
10133
- const J = document.createElement("img");
10134
- J.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", J.style.width = "200px", J.style.pointerEvents = "auto", J.onclick = () => {
10131
+ }), H = new j.Mesh(D, R);
10132
+ H.renderOrder = 1, H.name = `ModelTVVideoPlugin-${L}-${performance.now()}`;
10133
+ const _ = [P[1], P[2], P[3], P[0]], S = n.create3DDomContainer(_);
10134
+ if (S != null && S.container) {
10135
+ const O = document.createElement("div");
10136
+ O.classList.add("play-icon"), O.style.width = "100%", O.style.height = "100%", O.style.display = "flex", O.style.justifyContent = "center", O.style.alignItems = "center", O.style.pointerEvents = "none", S.container.appendChild(O);
10137
+ const B = document.createElement("img");
10138
+ B.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", B.style.width = "200px", B.style.pointerEvents = "auto", B.onclick = () => {
10135
10139
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
10136
- }, k.appendChild(J), o.set(N, K);
10140
+ }, O.appendChild(B), o.set(H, S);
10137
10141
  }
10138
- return N;
10142
+ return H;
10139
10143
  }), h = (P) => {
10140
- const E = new j.TextureLoader().load(P);
10141
- return E.minFilter = j.LinearFilter, E.magFilter = j.LinearFilter, E.format = j.RGBFormat, E;
10142
- }, f = (P, E) => new Promise((z, D) => {
10143
- const I = new XMLHttpRequest();
10144
- I.onreadystatechange = () => {
10145
- if (I.readyState == 4)
10146
- if (I.status == 200) {
10147
- const T = window.URL || window.webkitURL;
10148
- E = E || document.createElement("video"), E.crossOrigin = "anonymous", E.muted = !0, E.loop = !0, E.playsInline = !0, E.src = T.createObjectURL(I.response);
10149
- const C = new j.VideoTexture(E);
10150
- C.minFilter = j.LinearFilter, C.magFilter = j.LinearFilter, C.format = j.RGBFormat, z(Object.assign(C, { videoSource: P }));
10144
+ const L = new j.TextureLoader().load(P);
10145
+ return L.minFilter = j.LinearFilter, L.magFilter = j.LinearFilter, L.format = j.RGBFormat, L;
10146
+ }, f = (P, L) => new Promise((D, E) => {
10147
+ const T = new XMLHttpRequest();
10148
+ T.onreadystatechange = () => {
10149
+ if (T.readyState == 4)
10150
+ if (T.status == 200) {
10151
+ const C = window.URL || window.webkitURL;
10152
+ L = L || document.createElement("video"), L.crossOrigin = "anonymous", L.muted = !0, L.loop = !0, L.playsInline = !0, L.src = C.createObjectURL(T.response);
10153
+ const z = new j.VideoTexture(L);
10154
+ z.minFilter = j.LinearFilter, z.magFilter = j.LinearFilter, z.format = j.RGBFormat, D(Object.assign(z, { videoSource: P }));
10151
10155
  } else
10152
- D(new Error("Video download Error: " + I.status));
10153
- }, I.onerror = (T) => D(T), I.open("GET", P), I.responseType = "blob", I.send();
10154
- }), u = async (P, E) => {
10155
- const { video_src: z, video_poster_src: D, points: I } = P;
10156
- e.videoSource = z, e.rectPoints = ud(I).map((T) => T.map(({ x: C, y: M, z: N }) => new j.Vector3(C, M, N))), e.imageTexture = h(D), E && (e.videoElement = E), e.videoTexture = await f(e.videoSource, e.videoElement), e.enabled = !!P.enable, e.enabled && a();
10156
+ E(new Error("Video download Error: " + T.status));
10157
+ }, T.onerror = (C) => E(C), T.open("GET", P), T.responseType = "blob", T.send();
10158
+ }), u = async (P, L) => {
10159
+ o.forEach((C) => C.dispose()), o.clear();
10160
+ const { video_src: D, video_poster_src: E, points: T } = P;
10161
+ e.videoSource = D, e.rectPoints = ud(T).map((C) => C.map(({ x: z, y: R, z: H }) => new j.Vector3(z, R, H))), e.imageTexture = h(E), L && (e.videoElement = L), e.videoTexture = await f(e.videoSource, e.videoElement), e.enabled = !!P.enable, e.enabled && a();
10157
10162
  }, m = (P) => {
10158
10163
  if (!e.enabled)
10159
10164
  return;
10160
- const E = e.videoMeshes;
10161
- if (!(!E || P.intersectObjects(E).length === 0))
10165
+ const L = e.videoMeshes;
10166
+ if (!(!L || P.intersectObjects(L).length === 0))
10162
10167
  return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
10163
10168
  }, g = (P) => {
10164
- P === "Floorplan" ? n.hide() : e.videoTexture.image.paused ? n.show() : n.hide();
10169
+ var L;
10170
+ P === "Floorplan" ? n.hide() : (L = e.videoTexture) != null && L.image.paused ? n.show() : n.hide();
10165
10171
  }, v = () => {
10166
10172
  if (!e.enabled)
10167
10173
  return;
10168
10174
  const P = i.camera.position;
10169
- if (o.forEach((E, z) => {
10170
- const D = E.css3DObject.position.clone(), I = D.clone().sub(P).normalize(), T = new j.Raycaster(P, I), C = i.model.intersectRaycaster(T)[0], M = D.distanceTo(P), N = 0.01;
10171
- C && C.distance + N < M ? E.hide() : E.show();
10175
+ if (o.forEach((L, D) => {
10176
+ const E = L.css3DObject.position.clone(), T = E.clone().sub(P).normalize(), C = new j.Raycaster(P, T), z = i.model.intersectRaycaster(C)[0], R = E.distanceTo(P), H = 0.01;
10177
+ z && z.distance + H < R ? L.hide() : L.show();
10172
10178
  }), !r()) {
10173
- const E = e.rectPoints.find((z) => {
10174
- const D = z[0].clone().add(z[1]).add(z[2]).add(z[3]).divideScalar(4);
10175
- return z.map((I) => I.clone().add(D).divideScalar(2)).filter((I) => {
10176
- const T = I.distanceTo(P), C = new j.Raycaster(P, I.clone().sub(P).normalize()), M = i.model.intersectRaycaster(C)[0], N = 0.01;
10177
- return !(M && M.distance + N < T);
10179
+ const L = e.rectPoints.find((D) => {
10180
+ const E = D[0].clone().add(D[1]).add(D[2]).add(D[3]).divideScalar(4);
10181
+ return D.map((T) => T.clone().add(E).divideScalar(2)).filter((T) => {
10182
+ const C = T.distanceTo(P), z = new j.Raycaster(P, T.clone().sub(P).normalize()), R = i.model.intersectRaycaster(z)[0], H = 0.01;
10183
+ return !(R && R.distance + H < C);
10178
10184
  }).length >= 2;
10179
10185
  });
10180
- (!E || E.length === 0) && s(!0);
10186
+ (!L || L.length === 0) && s(!0);
10181
10187
  }
10182
10188
  }, b = () => {
10183
10189
  v();
10184
10190
  }, y = () => {
10185
- l(), e.videoTexture = void 0, i.off("modeChange", g), i.off("wantsTapGesture", m), i.off("panoArrived", b), i.off("renderFrame", () => {
10186
- e.videoMeshes.forEach((P) => {
10187
- P && (P.needsRender = !0);
10188
- });
10189
- }), o.clear();
10190
- };
10191
- return i.on("modeChange", g), i.on("wantsTapGesture", m), i.on("panoArrived", b), i.on("renderFrame", () => {
10192
10191
  e.videoMeshes.forEach((P) => {
10193
10192
  P && (P.needsRender = !0);
10194
10193
  });
10195
- }), { enable: a, disable: l, load: u, dispose: y, state: e, css3DRenderPlugin: n };
10194
+ }, I = () => {
10195
+ l(), e.videoTexture = void 0, i.off("modeChange", g), i.off("wantsTapGesture", m), i.off("panoArrived", b), i.off("renderFrame", y), o.clear();
10196
+ };
10197
+ return i.on("modeChange", g), i.on("wantsTapGesture", m), i.on("panoArrived", b), i.on("renderFrame", y), { enable: a, disable: l, load: u, dispose: I, state: e, css3DRenderPlugin: n };
10196
10198
  };
10197
10199
  function dd(i) {
10198
10200
  ge(i, "svelte-1q3t254", `.item-label-item.svelte-1q3t254.svelte-1q3t254{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-1q3t254-fadeIn .3s ease-in}.item-label-item.fold.svelte-1q3t254>.item-label-item__text-wrap.svelte-1q3t254{visibility:hidden}.item-label-item.fold.svelte-1q3t254>.item-label-item__bar.anchor.svelte-1q3t254{visibility:hidden}.item-label-item.fold.svelte-1q3t254>.item-label-item__bar.anchor.svelte-1q3t254:after{visibility:visible}.item-label-item__text-wrap.svelte-1q3t254.svelte-1q3t254{height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:1.5px solid rgba(255, 255, 255, .65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-1q3t254.svelte-1q3t254{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-1q3t254.svelte-1q3t254{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-1q3t254.svelte-1q3t254{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-1q3t254.svelte-1q3t254{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 1px;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-1q3t254.svelte-1q3t254{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-1q3t254.svelte-1q3t254{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-1q3t254.svelte-1q3t254{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-1q3t254.svelte-1q3t254:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@keyframes svelte-1q3t254-fadeIn{from{opacity:0
@@ -10203,16 +10205,16 @@ function fd(i) {
10203
10205
  let t, e, n, o = (i[0].code || i[0].id) + "", s, r, a, l = i[0].name + "", c, h = i[0].icon && As(i);
10204
10206
  return {
10205
10207
  c() {
10206
- h && h.c(), t = fe(), e = F("div"), n = F("span"), s = qe(o), r = fe(), a = F("span"), c = qe(l), x(n, "class", "item-model svelte-1q3t254"), x(a, "class", "item-name svelte-1q3t254"), x(e, "class", "item-label-text svelte-1q3t254");
10208
+ h && h.c(), t = fe(), e = G("div"), n = G("span"), s = qe(o), r = fe(), a = G("span"), c = qe(l), x(n, "class", "item-model svelte-1q3t254"), x(a, "class", "item-name svelte-1q3t254"), x(e, "class", "item-label-text svelte-1q3t254");
10207
10209
  },
10208
10210
  m(f, u) {
10209
- h && h.m(f, u), W(f, t, u), W(f, e, u), G(e, n), G(n, s), G(e, r), G(e, a), G(a, c);
10211
+ h && h.m(f, u), Y(f, t, u), Y(f, e, u), X(e, n), X(n, s), X(e, r), X(e, a), X(a, c);
10210
10212
  },
10211
10213
  p(f, u) {
10212
10214
  f[0].icon ? h ? h.p(f, u) : (h = As(f), h.c(), h.m(t.parentNode, t)) : h && (h.d(1), h = null), u & 1 && o !== (o = (f[0].code || f[0].id) + "") && dt(s, o), u & 1 && l !== (l = f[0].name + "") && dt(c, l);
10213
10215
  },
10214
10216
  d(f) {
10215
- h && h.d(f), f && X(t), f && X(e);
10217
+ h && h.d(f), f && Q(t), f && Q(e);
10216
10218
  }
10217
10219
  };
10218
10220
  }
@@ -10220,14 +10222,14 @@ function md(i) {
10220
10222
  let t;
10221
10223
  return {
10222
10224
  c() {
10223
- t = F("div");
10225
+ t = G("div");
10224
10226
  },
10225
10227
  m(e, n) {
10226
- W(e, t, n), i[6](t);
10228
+ Y(e, t, n), i[6](t);
10227
10229
  },
10228
10230
  p: ne,
10229
10231
  d(e) {
10230
- e && X(t), i[6](null);
10232
+ e && Q(t), i[6](null);
10231
10233
  }
10232
10234
  };
10233
10235
  }
@@ -10235,16 +10237,16 @@ function As(i) {
10235
10237
  let t, e, n, o, s;
10236
10238
  return {
10237
10239
  c() {
10238
- t = F("div"), e = F("div"), x(e, "class", "icon svelte-1q3t254"), x(e, "style", n = `background-image: url(${i[0].icon})`), x(t, "class", "icon-wrap svelte-1q3t254");
10240
+ t = G("div"), e = G("div"), x(e, "class", "icon svelte-1q3t254"), x(e, "style", n = `background-image: url(${i[0].icon})`), x(t, "class", "icon-wrap svelte-1q3t254");
10239
10241
  },
10240
10242
  m(r, a) {
10241
- W(r, t, a), G(t, e), o || (s = Ke(t, "click", i[7]), o = !0);
10243
+ Y(r, t, a), X(t, e), o || (s = Ke(t, "click", i[7]), o = !0);
10242
10244
  },
10243
10245
  p(r, a) {
10244
10246
  a & 1 && n !== (n = `background-image: url(${r[0].icon})`) && x(e, "style", n);
10245
10247
  },
10246
10248
  d(r) {
10247
- r && X(t), o = !1, s();
10249
+ r && Q(t), o = !1, s();
10248
10250
  }
10249
10251
  };
10250
10252
  }
@@ -10256,22 +10258,22 @@ function pd(i) {
10256
10258
  let u = f(i, -1), m = u(i);
10257
10259
  return {
10258
10260
  c() {
10259
- t = F("div"), e = F("div"), m.c(), s = fe(), r = F("div"), x(e, "class", o = je(tt("item-label-item__text-wrap", {
10261
+ t = G("div"), e = G("div"), m.c(), s = fe(), r = G("div"), x(e, "class", o = je(tt("item-label-item__text-wrap", {
10260
10262
  "item-label-item__custom": Boolean(typeof i[0].render == "function")
10261
- })) + " svelte-1q3t254"), S(e, "bottom", `${i[0].strokeLength}px`), x(r, "class", a = je(tt("item-label-item__bar", { anchor: i[1] })) + " svelte-1q3t254"), S(r, "height", `${i[0].strokeLength}px`), x(t, "class", l = je(tt("item-label-item", { fold: i[0].isFold })) + " svelte-1q3t254"), S(t, "z-index", i[0].zIndex), S(t, "transform", i[0].transform);
10263
+ })) + " svelte-1q3t254"), M(e, "bottom", `${i[0].strokeLength}px`), x(r, "class", a = je(tt("item-label-item__bar", { anchor: i[1] })) + " svelte-1q3t254"), M(r, "height", `${i[0].strokeLength}px`), x(t, "class", l = je(tt("item-label-item", { fold: i[0].isFold })) + " svelte-1q3t254"), M(t, "z-index", i[0].zIndex), M(t, "transform", i[0].transform);
10262
10264
  },
10263
10265
  m(g, v) {
10264
- W(g, t, v), G(t, e), m.m(e, null), G(t, s), G(t, r), c || (h = Ke(e, "click", i[4]), c = !0);
10266
+ Y(g, t, v), X(t, e), m.m(e, null), X(t, s), X(t, r), c || (h = Ke(e, "click", i[4]), c = !0);
10265
10267
  },
10266
10268
  p(g, [v]) {
10267
10269
  u === (u = f(g, v)) && m ? m.p(g, v) : (m.d(1), m = u(g), m && (m.c(), m.m(e, null))), v & 1 && o !== (o = je(tt("item-label-item__text-wrap", {
10268
10270
  "item-label-item__custom": Boolean(typeof g[0].render == "function")
10269
- })) + " svelte-1q3t254") && x(e, "class", o), v & 1 && S(e, "bottom", `${g[0].strokeLength}px`), v & 2 && a !== (a = je(tt("item-label-item__bar", { anchor: g[1] })) + " svelte-1q3t254") && x(r, "class", a), v & 1 && S(r, "height", `${g[0].strokeLength}px`), v & 1 && l !== (l = je(tt("item-label-item", { fold: g[0].isFold })) + " svelte-1q3t254") && x(t, "class", l), v & 1 && S(t, "z-index", g[0].zIndex), v & 1 && S(t, "transform", g[0].transform);
10271
+ })) + " svelte-1q3t254") && x(e, "class", o), v & 1 && M(e, "bottom", `${g[0].strokeLength}px`), v & 2 && a !== (a = je(tt("item-label-item__bar", { anchor: g[1] })) + " svelte-1q3t254") && x(r, "class", a), v & 1 && M(r, "height", `${g[0].strokeLength}px`), v & 1 && l !== (l = je(tt("item-label-item", { fold: g[0].isFold })) + " svelte-1q3t254") && x(t, "class", l), v & 1 && M(t, "z-index", g[0].zIndex), v & 1 && M(t, "transform", g[0].transform);
10270
10272
  },
10271
10273
  i: ne,
10272
10274
  o: ne,
10273
10275
  d(g) {
10274
- g && X(t), m.d(), c = !1, h();
10276
+ g && Q(t), m.d(), c = !1, h();
10275
10277
  }
10276
10278
  };
10277
10279
  }
@@ -10378,7 +10380,7 @@ function Es(i) {
10378
10380
  o[0] & 2 && (s.itemLabel = n[30]), o[0] & 1 && (s.hooks = n[0]), o[0] & 4 && (s.anchorEnabled = n[2]), t.$set(s);
10379
10381
  },
10380
10382
  i(n) {
10381
- e || (H(t.$$.fragment, n), e = !0);
10383
+ e || (F(t.$$.fragment, n), e = !0);
10382
10384
  },
10383
10385
  o(n) {
10384
10386
  q(t.$$.fragment, n), e = !1;
@@ -10397,21 +10399,21 @@ function Is(i, t) {
10397
10399
  e = Xe(), s && s.c(), n = Xe(), this.first = e;
10398
10400
  },
10399
10401
  m(r, a) {
10400
- W(r, e, a), s && s.m(r, a), W(r, n, a), o = !0;
10402
+ Y(r, e, a), s && s.m(r, a), Y(r, n, a), o = !0;
10401
10403
  },
10402
10404
  p(r, a) {
10403
- t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && H(s, 1)) : (s = Es(t), s.c(), H(s, 1), s.m(n.parentNode, n)) : s && (Ee(), q(s, 1, 1, () => {
10405
+ t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && F(s, 1)) : (s = Es(t), s.c(), F(s, 1), s.m(n.parentNode, n)) : s && (Ee(), q(s, 1, 1, () => {
10404
10406
  s = null;
10405
10407
  }), Ie());
10406
10408
  },
10407
10409
  i(r) {
10408
- o || (H(s), o = !0);
10410
+ o || (F(s), o = !0);
10409
10411
  },
10410
10412
  o(r) {
10411
10413
  q(s), o = !1;
10412
10414
  },
10413
10415
  d(r) {
10414
- r && X(e), s && s.d(r), r && X(n);
10416
+ r && Q(e), s && s.d(r), r && Q(n);
10415
10417
  }
10416
10418
  };
10417
10419
  }
@@ -10424,24 +10426,24 @@ function wd(i) {
10424
10426
  }
10425
10427
  return {
10426
10428
  c() {
10427
- t = F("div");
10429
+ t = G("div");
10428
10430
  for (let l = 0; l < e.length; l += 1)
10429
10431
  e[l].c();
10430
- x(t, "class", "item-labels-container svelte-gk8s47"), _e(() => i[12].call(t)), S(t, "opacity", i[5] ? 1 : 0);
10432
+ x(t, "class", "item-labels-container svelte-gk8s47"), _e(() => i[12].call(t)), M(t, "opacity", i[5] ? 1 : 0);
10431
10433
  },
10432
10434
  m(l, c) {
10433
- W(l, t, c);
10435
+ Y(l, t, c);
10434
10436
  for (let h = 0; h < e.length; h += 1)
10435
10437
  e[h].m(t, null);
10436
10438
  o = Xt(t, i[12].bind(t)), s = !0;
10437
10439
  },
10438
10440
  p(l, c) {
10439
- c[0] & 71 && (r = l[1], Ee(), e = yt(e, c, a, 1, l, r, n, t, Qt, Is, null, ws), Ie()), c[0] & 32 && S(t, "opacity", l[5] ? 1 : 0);
10441
+ c[0] & 71 && (r = l[1], Ee(), e = yt(e, c, a, 1, l, r, n, t, Qt, Is, null, ws), Ie()), c[0] & 32 && M(t, "opacity", l[5] ? 1 : 0);
10440
10442
  },
10441
10443
  i(l) {
10442
10444
  if (!s) {
10443
10445
  for (let c = 0; c < r.length; c += 1)
10444
- H(e[c]);
10446
+ F(e[c]);
10445
10447
  s = !0;
10446
10448
  }
10447
10449
  },
@@ -10451,7 +10453,7 @@ function wd(i) {
10451
10453
  s = !1;
10452
10454
  },
10453
10455
  d(l) {
10454
- l && X(t);
10456
+ l && Q(t);
10455
10457
  for (let c = 0; c < e.length; c += 1)
10456
10458
  e[c].d();
10457
10459
  o();
@@ -10462,97 +10464,97 @@ let Ed = 11;
10462
10464
  function Id(i, t, e) {
10463
10465
  const { Raycaster: n, Vector3: o } = j;
10464
10466
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: h } = t, f = null, u = null, m = (s == null ? void 0 : s.currentMode) === Se.Mode.Panorama, g, v, b = [], y = !0;
10465
- const P = (R, _) => {
10466
- const U = R.camera.position.clone(), te = new o(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]), Q = te.distanceTo(U);
10467
- return h !== void 0 && R.state.mode === Se.Mode.Panorama && Q > h ? !1 : ys(R, te.clone().sub(U).normalize(), U, Q);
10468
- }, E = (R) => {
10469
- const { camera: _, model: U } = s, { x: te, y: Q, z: ee } = R.clone().project(_), se = (te + 1) / 2, ie = (2 - (Q + 1)) / 2, xe = Math.abs(ee) < 1 && [se, ie].every((ze) => ze < 1 && ze >= 0);
10467
+ const I = (B, K) => {
10468
+ const U = B.camera.position.clone(), te = new o(K.modelPosition[0], K.modelPosition[1], K.modelPosition[2]), W = te.distanceTo(U);
10469
+ return h !== void 0 && B.state.mode === Se.Mode.Panorama && W > h ? !1 : ys(B, te.clone().sub(U).normalize(), U, W);
10470
+ }, P = (B) => {
10471
+ const { camera: K, model: U } = s, { x: te, y: W, z: ee } = B.clone().project(K), se = (te + 1) / 2, ie = (2 - (W + 1)) / 2, xe = Math.abs(ee) < 1 && [se, ie].every((ze) => ze < 1 && ze >= 0);
10470
10472
  return Boolean(xe);
10471
- }, z = (R, _) => {
10472
- const U = new o(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]), te = R.project2d(U), Q = te == null ? void 0 : te.x, ee = te == null ? void 0 : te.y;
10473
- return [Q, ee];
10474
- }, D = (R, _) => {
10475
- const U = _.map((Q) => {
10476
- if (R.state.panoIndex !== Q.panoIndex)
10477
- return Object.assign(Object.assign({}, Q), { visible: !1 });
10478
- const ee = z(R, Q);
10479
- Q.name.length * Ed;
10480
- const se = Ad(Q.modelPosition[1], c), ie = R.currentMode === Se.Mode.Panorama ? E(new o(Q.position[0], Q.position[1], Q.position[2])) : !0, ce = r ? P(R, Q) : !1, Ae = ie && !ce;
10473
+ }, L = (B, K) => {
10474
+ const U = new o(K.modelPosition[0], K.modelPosition[1], K.modelPosition[2]), te = B.project2d(U), W = te == null ? void 0 : te.x, ee = te == null ? void 0 : te.y;
10475
+ return [W, ee];
10476
+ }, D = (B, K) => {
10477
+ const U = K.map((W) => {
10478
+ if (B.state.panoIndex !== W.panoIndex)
10479
+ return Object.assign(Object.assign({}, W), { visible: !1 });
10480
+ const ee = L(B, W);
10481
+ W.name.length * Ed;
10482
+ const se = Ad(W.modelPosition[1], c), ie = B.currentMode === Se.Mode.Panorama ? P(new o(W.position[0], W.position[1], W.position[2])) : !0, ce = r ? I(B, W) : !1, Ae = ie && !ce;
10481
10483
  if (!Ae)
10482
- return Object.assign(Object.assign({}, Q), { visible: Ae });
10484
+ return Object.assign(Object.assign({}, W), { visible: Ae });
10483
10485
  b.push(ee);
10484
10486
  const xe = yd(ee);
10485
- return Object.assign(Object.assign({}, Q), { visible: Ae, transform: xe, strokeLength: se });
10486
- }), te = U.filter(({ visible: Q }) => Q).map((Q) => ({
10487
- itemLabelItem: Q,
10488
- distance: new o(Q.modelPosition[0], Q.modelPosition[1], Q.modelPosition[2]).clone().distanceTo(R.camera.position)
10489
- })).sort((Q, ee) => Q.distance - ee.distance);
10490
- return U.map((Q) => {
10491
- const ee = te.findIndex((se) => se.itemLabelItem.id === Q.id);
10492
- return ee !== void 0 ? Object.assign(Object.assign({}, Q), { zIndex: ee * 10 }) : Q;
10487
+ return Object.assign(Object.assign({}, W), { visible: Ae, transform: xe, strokeLength: se });
10488
+ }), te = U.filter(({ visible: W }) => W).map((W) => ({
10489
+ itemLabelItem: W,
10490
+ distance: new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]).clone().distanceTo(B.camera.position)
10491
+ })).sort((W, ee) => W.distance - ee.distance);
10492
+ return U.map((W) => {
10493
+ const ee = te.findIndex((se) => se.itemLabelItem.id === W.id);
10494
+ return ee !== void 0 ? Object.assign(Object.assign({}, W), { zIndex: ee * 10 }) : W;
10493
10495
  });
10494
- }, I = () => {
10496
+ }, E = () => {
10495
10497
  b = [], e(1, u = D(s, u));
10496
10498
  }, T = () => {
10497
10499
  e(5, y = !1), C();
10498
10500
  }, C = pr(
10499
10501
  () => {
10500
- e(5, y = !0), I();
10502
+ e(5, y = !0), E();
10501
10503
  },
10502
10504
  300
10503
- ), M = () => {
10504
- s.once("renderFrame", I);
10505
- }, N = () => {
10506
- window.addEventListener("resize", M, !1);
10507
- }, B = () => {
10508
- f !== a && (e(1, u = Ps(a)), f = a, I());
10509
- }, K = (R, _) => {
10505
+ ), z = () => {
10506
+ s.once("renderFrame", E);
10507
+ }, R = () => {
10508
+ window.addEventListener("resize", z, !1);
10509
+ }, H = () => {
10510
+ f !== a && (e(1, u = Ps(a)), f = a, E());
10511
+ }, _ = (B, K) => {
10510
10512
  let U = [];
10511
- for (let Q = 0; Q < _.length; Q++) {
10512
- const { position: ee, panoIndex: se } = _[Q], ie = R.distanceTo(ee);
10513
+ for (let W = 0; W < K.length; W++) {
10514
+ const { position: ee, panoIndex: se } = K[W], ie = B.distanceTo(ee);
10513
10515
  (h === void 0 || ie <= h || s.state.mode !== Se.Mode.Panorama) && U.push({ panoIndex: se, obVector: ee, distance: ie });
10514
10516
  }
10515
- U = U.sort((Q, ee) => Q.distance - ee.distance);
10517
+ U = U.sort((W, ee) => W.distance - ee.distance);
10516
10518
  let te;
10517
- for (let Q = 0; Q < U.length; Q++) {
10518
- const { obVector: ee, distance: se, panoIndex: ie } = U[Q];
10519
- if (!ys(s, R, ee, se)) {
10519
+ for (let W = 0; W < U.length; W++) {
10520
+ const { obVector: ee, distance: se, panoIndex: ie } = U[W];
10521
+ if (!ys(s, B, ee, se)) {
10520
10522
  te = ie;
10521
10523
  break;
10522
10524
  }
10523
10525
  }
10524
- return typeof te == "number" ? _[te] : void 0;
10525
- }, k = (R) => {
10526
+ return typeof te == "number" ? K[te] : void 0;
10527
+ }, S = (B) => {
10526
10528
  if (s.state.mode === Se.Mode.Panorama)
10527
10529
  return;
10528
- const _ = s.work.observers, U = new o().fromArray(R.position), te = K(U, _);
10529
- if (te && (R.observerIndex = te.panoIndex), typeof R.observerIndex == "number") {
10530
- const Q = _[R.observerIndex], ee = U.clone().sub(Q.position).normalize(), se = {
10530
+ const K = s.work.observers, U = new o().fromArray(B.position), te = _(U, K);
10531
+ if (te && (B.observerIndex = te.panoIndex), typeof B.observerIndex == "number") {
10532
+ const W = K[B.observerIndex], ee = U.clone().sub(W.position).normalize(), se = {
10531
10533
  longitude: Math.PI + Math.atan2(ee.x, ee.z),
10532
10534
  latitude: Math.acos(ee.y / ee.length()) - Math.PI / 2
10533
10535
  };
10534
10536
  s.setState(Object.assign(Object.assign({}, se), {
10535
10537
  mode: Se.Mode.Panorama,
10536
- panoIndex: R.observerIndex
10538
+ panoIndex: B.observerIndex
10537
10539
  })), s.once("initAnimationEnded", () => {
10538
- e(1, u = u.map((ie) => Object.assign(Object.assign({}, ie), { isFold: ie.id !== R.id }))), s.once("cameraUpdate", () => {
10540
+ e(1, u = u.map((ie) => Object.assign(Object.assign({}, ie), { isFold: ie.id !== B.id }))), s.once("cameraUpdate", () => {
10539
10541
  e(1, u = u.map((ie) => Object.assign(Object.assign({}, ie), { isFold: !1 })));
10540
10542
  });
10541
10543
  });
10542
10544
  }
10543
10545
  };
10544
10546
  Qs(() => {
10545
- B();
10547
+ H();
10546
10548
  }), Lt(() => {
10547
- e(1, u = Ps(a)), f = a, I(), N(), s.on("cameraUpdate", T);
10549
+ e(1, u = Ps(a)), f = a, E(), R(), s.on("cameraUpdate", T);
10548
10550
  }), ln(() => {
10549
- s.off("cameraUpdate", T), window.removeEventListener("resize", M, !1);
10551
+ s.off("cameraUpdate", T), window.removeEventListener("resize", z, !1);
10550
10552
  });
10551
- function J() {
10553
+ function O() {
10552
10554
  g = this.clientWidth, v = this.clientHeight, e(3, g), e(4, v);
10553
10555
  }
10554
- return i.$$set = (R) => {
10555
- "five" in R && e(7, s = R.five), "modelOcclusionEnable" in R && e(8, r = R.modelOcclusionEnable), "itemLabels" in R && e(9, a = R.itemLabels), "hooks" in R && e(0, l = R.hooks), "displayStrategyType" in R && e(10, c = R.displayStrategyType), "maxVisibleDistance" in R && e(11, h = R.maxVisibleDistance);
10556
+ return i.$$set = (B) => {
10557
+ "five" in B && e(7, s = B.five), "modelOcclusionEnable" in B && e(8, r = B.modelOcclusionEnable), "itemLabels" in B && e(9, a = B.itemLabels), "hooks" in B && e(0, l = B.hooks), "displayStrategyType" in B && e(10, c = B.displayStrategyType), "maxVisibleDistance" in B && e(11, h = B.maxVisibleDistance);
10556
10558
  }, [
10557
10559
  l,
10558
10560
  u,
@@ -10560,13 +10562,13 @@ function Id(i, t, e) {
10560
10562
  g,
10561
10563
  v,
10562
10564
  y,
10563
- k,
10565
+ S,
10564
10566
  s,
10565
10567
  r,
10566
10568
  a,
10567
10569
  c,
10568
10570
  h,
10569
- J
10571
+ O
10570
10572
  ];
10571
10573
  }
10572
10574
  class xd extends de {
@@ -10722,10 +10724,10 @@ function Dd(i) {
10722
10724
  let t, e, n, o, s, r, a, l;
10723
10725
  return {
10724
10726
  c() {
10725
- t = F("div"), e = F("div"), n = F("span"), n.textContent = `${i[8]}`, o = fe(), s = F("i"), x(n, "class", "plugin-DoorLabelPlugin-txt svelte-16kdbw2"), x(s, "class", "plugin-DoorLabelPlugin-icon svelte-16kdbw2"), x(e, "class", r = je(tt("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-16kdbw2"), x(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), x(e, "data-camera-toward", i[7]), x(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), x(t, "class", "plugin-DoorLabelPlugin-item svelte-16kdbw2");
10727
+ t = G("div"), e = G("div"), n = G("span"), n.textContent = `${i[8]}`, o = fe(), s = G("i"), x(n, "class", "plugin-DoorLabelPlugin-txt svelte-16kdbw2"), x(s, "class", "plugin-DoorLabelPlugin-icon svelte-16kdbw2"), x(e, "class", r = je(tt("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-16kdbw2"), x(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), x(e, "data-camera-toward", i[7]), x(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), x(t, "class", "plugin-DoorLabelPlugin-item svelte-16kdbw2");
10726
10728
  },
10727
10729
  m(c, h) {
10728
- W(c, t, h), G(t, e), G(e, n), G(e, o), G(e, s), i[10](t), a || (l = Ke(e, "click", i[9]), a = !0);
10730
+ Y(c, t, h), X(t, e), X(e, n), X(e, o), X(e, s), i[10](t), a || (l = Ke(e, "click", i[9]), a = !0);
10729
10731
  },
10730
10732
  p(c, [h]) {
10731
10733
  h & 1 && r !== (r = je(tt("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-16kdbw2") && x(e, "class", r);
@@ -10733,7 +10735,7 @@ function Dd(i) {
10733
10735
  i: ne,
10734
10736
  o: ne,
10735
10737
  d(c) {
10736
- c && X(t), i[10](null), a = !1, l();
10738
+ c && Q(t), i[10](null), a = !1, l();
10737
10739
  }
10738
10740
  };
10739
10741
  }
@@ -10742,8 +10744,8 @@ function zd(i, t, e) {
10742
10744
  const g = () => {
10743
10745
  if (!r || !a || !l || !s)
10744
10746
  return;
10745
- const y = s.current.clientWidth / window.innerWidth * 100, P = s.current.clientHeight / window.innerHeight * 100;
10746
- if (r <= y / 2 || r >= 100 - y / 2 || a <= P / 2 || a >= 100 - P / 2)
10747
+ const y = s.current.clientWidth / window.innerWidth * 100, I = s.current.clientHeight / window.innerHeight * 100;
10748
+ if (r <= y / 2 || r >= 100 - y / 2 || a <= I / 2 || a >= 100 - I / 2)
10747
10749
  return;
10748
10750
  h !== m && (console.log("panoDoorLabelPlugin", h, "\u89E6\u53D1\u57CB\u70B9"), m = h);
10749
10751
  }, v = (y) => {
@@ -10865,29 +10867,29 @@ class Bd extends kd {
10865
10867
  const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new $()), l = [], c = [...this.labelItems];
10866
10868
  if (c.forEach((h, f) => {
10867
10869
  if (h.visible) {
10868
- const u = n.position.distanceTo(h.position), m = h.position.clone().add(new $(0, this.OffsetHeight, 0)), v = m.clone().sub(n.position).normalize().angleTo(a), b = m.clone().project(n), y = (b.x + 1) / 2.2 * 100, P = (-b.y + 1) / 2.2 * 100, E = y >= 0 && y <= 100 && P >= 0 && P <= 100 && u > this.MinVisibledistance && u <= this.MaxVisibledistance;
10869
- h.left = y, h.top = P, h.inSight = E && v < Math.PI / 2, h.cameraToward = jd(this.five), E ? l.push({ disFromCameraToLabel: u, left: y, top: P, index: f }) : h.transform = "translate(-50%, -50%)";
10870
+ const u = n.position.distanceTo(h.position), m = h.position.clone().add(new $(0, this.OffsetHeight, 0)), v = m.clone().sub(n.position).normalize().angleTo(a), b = m.clone().project(n), y = (b.x + 1) / 2.2 * 100, I = (-b.y + 1) / 2.2 * 100, P = y >= 0 && y <= 100 && I >= 0 && I <= 100 && u > this.MinVisibledistance && u <= this.MaxVisibledistance;
10871
+ h.left = y, h.top = I, h.inSight = P && v < Math.PI / 2, h.cameraToward = jd(this.five), P ? l.push({ disFromCameraToLabel: u, left: y, top: I, index: f }) : h.transform = "translate(-50%, -50%)";
10870
10872
  } else
10871
10873
  h.inSight = !1;
10872
10874
  }), l.length > 1) {
10873
10875
  let h = 0;
10874
10876
  l.sort((f, u) => u.disFromCameraToLabel - f.disFromCameraToLabel);
10875
10877
  for (let f = 1; f < l.length; f++) {
10876
- const { index: u, left: m, top: g } = l[f - 1], { index: v, left: b, top: y } = l[f], P = this.container.children[u], E = this.container.children[v];
10877
- if (!P || !E)
10878
+ const { index: u, left: m, top: g } = l[f - 1], { index: v, left: b, top: y } = l[f], I = this.container.children[u], P = this.container.children[v];
10879
+ if (!I || !P)
10878
10880
  return;
10879
- const z = {
10881
+ const L = {
10880
10882
  left: s * m / 100,
10881
10883
  top: r * g / 100,
10882
- width: P.children[0].clientWidth,
10883
- height: P.children[0].clientHeight
10884
+ width: I.children[0].clientWidth,
10885
+ height: I.children[0].clientHeight
10884
10886
  }, D = {
10885
10887
  left: s * b / 100,
10886
10888
  top: r * y / 100,
10887
- width: E.children[0].clientWidth,
10888
- height: E.children[0].clientHeight
10889
+ width: P.children[0].clientWidth,
10890
+ height: P.children[0].clientHeight
10889
10891
  };
10890
- Sd(z, D) && (h++, c[u].transform = `translate(-50%, ${(h - 1) * 100 - 50}%)`, c[v].transform = `translate(-50%, ${h * 100 - 50}%)`);
10892
+ Sd(L, D) && (h++, c[u].transform = `translate(-50%, ${(h - 1) * 100 - 50}%)`, c[v].transform = `translate(-50%, ${h * 100 - 50}%)`);
10891
10893
  }
10892
10894
  }
10893
10895
  this.labelItems = c, this.render();
@@ -10929,8 +10931,8 @@ class Bd extends kd {
10929
10931
  x: b.x,
10930
10932
  y: b.y,
10931
10933
  z: b.z
10932
- }, P = Od(f, y);
10933
- P < u && (u = P, m = y);
10934
+ }, I = Od(f, y);
10935
+ I < u && (u = I, m = y);
10934
10936
  }), m && (f.y = m.y + 0.01);
10935
10937
  const g = new $(f.x, f.y, f.z);
10936
10938
  g.add(new $(-0.2, 1.8, 0).applyEuler(new ao(0, h.rad, 0))), this.doorLabels.push({
@@ -11059,29 +11061,29 @@ function of(i, t) {
11059
11061
  const m = i;
11060
11062
  return m.forEach((g, v) => {
11061
11063
  let b = 0, y = 99999999;
11062
- h.forEach((I, T) => {
11063
- const C = I.distanceTo(g);
11064
+ h.forEach((E, T) => {
11065
+ const C = E.distanceTo(g);
11064
11066
  C < y && (b = T, y = C);
11065
11067
  });
11066
- const P = h[b + 1], E = P == null ? void 0 : P.distanceTo(g), z = h[b - 1], D = z == null ? void 0 : z.distanceTo(g);
11068
+ const I = h[b + 1], P = I == null ? void 0 : I.distanceTo(g), L = h[b - 1], D = L == null ? void 0 : L.distanceTo(g);
11067
11069
  if (b > u && b - u > 1) {
11068
- let I = b;
11069
- z !== void 0 && D > 0.8 && (I = b + 1), z !== void 0 && D > 0.2 && D < 0.3 ? I = b : y > 0.2 && y < 0.3 && (I = b + 1);
11070
+ let E = b;
11071
+ L !== void 0 && D > 0.8 && (E = b + 1), L !== void 0 && D > 0.2 && D < 0.3 ? E = b : y > 0.2 && y < 0.3 && (E = b + 1);
11070
11072
  let T = u;
11071
- if (P !== void 0 && E > 0.2 && E < 0.3 ? T = u + 1 : y > 0.2 && y < 0.3 && (T = u), h[T] && h[T + 1]) {
11072
- const N = m[v - 1];
11073
- if (N)
11074
- if (N.equals(h[T]))
11073
+ if (I !== void 0 && P > 0.2 && P < 0.3 ? T = u + 1 : y > 0.2 && y < 0.3 && (T = u), h[T] && h[T + 1]) {
11074
+ const R = m[v - 1];
11075
+ if (R)
11076
+ if (R.equals(h[T]))
11075
11077
  T += 1;
11076
11078
  else {
11077
- const B = new $().subVectors(h[T + 1], h[T]), K = new $().subVectors(N, h[T]);
11078
- B.angleTo(K) < Math.PI / 2 && (T += 1);
11079
+ const H = new $().subVectors(h[T + 1], h[T]), _ = new $().subVectors(R, h[T]);
11080
+ H.angleTo(_) < Math.PI / 2 && (T += 1);
11079
11081
  }
11080
11082
  }
11081
- if (I < T || I - T <= 1)
11083
+ if (E < T || E - T <= 1)
11082
11084
  return;
11083
- const C = h.slice(T, I), M = Ls(C, e, n);
11084
- f.push(M), u = b;
11085
+ const C = h.slice(T, E), z = Ls(C, e, n);
11086
+ f.push(z), u = b;
11085
11087
  }
11086
11088
  }), f;
11087
11089
  } else {
@@ -11091,16 +11093,16 @@ function of(i, t) {
11091
11093
  }
11092
11094
  function Ls(i, t, e) {
11093
11095
  const n = t / 2, o = e / t, s = i.length, r = _d(i.map((y) => [y.x, y.z])), l = (i.length - 1) * $d * ef, c = 2 * s, h = c * tf, f = c * nf, u = new Uint32Array(l), m = new Float32Array(h), g = new Float32Array(f);
11094
- i.forEach((y, P) => {
11096
+ i.forEach((y, I) => {
11095
11097
  });
11096
11098
  let v = 0;
11097
11099
  for (let y = 0; y < i.length; y++) {
11098
- const [P, E] = r[y][0], z = i[y], { x: D, y: I, z: T } = z, C = new $(D + P * n, I + 0.05, T + E * n);
11100
+ const [I, P] = r[y][0], L = i[y], { x: D, y: E, z: T } = L, C = new $(D + I * n, E + 0.05, T + P * n);
11099
11101
  m[y * 6 + 0] = C.x, m[y * 6 + 1] = C.y, m[y * 6 + 2] = C.z;
11100
- const M = new $(D - P * n, I + 0.05, T - E * n);
11101
- m[y * 6 + 3] = M.x, m[y * 6 + 4] = M.y, m[y * 6 + 5] = M.z, v += y > 0 ? i[y - 1].clone().sub(i[y]).length() : 0;
11102
- const N = v / t / o;
11103
- g[y * 4 + 0] = 0, g[y * 4 + 1] = N, g[y * 4 + 2] = 1, g[y * 4 + 3] = N, y !== i.length - 1 && (u[y * 6 + 0] = y * 2 + 0, u[y * 6 + 1] = y * 2 + 2, u[y * 6 + 2] = y * 2 + 1, u[y * 6 + 3] = y * 2 + 2, u[y * 6 + 4] = y * 2 + 3, u[y * 6 + 5] = y * 2 + 1);
11102
+ const z = new $(D - I * n, E + 0.05, T - P * n);
11103
+ m[y * 6 + 3] = z.x, m[y * 6 + 4] = z.y, m[y * 6 + 5] = z.z, v += y > 0 ? i[y - 1].clone().sub(i[y]).length() : 0;
11104
+ const R = v / t / o;
11105
+ g[y * 4 + 0] = 0, g[y * 4 + 1] = R, g[y * 4 + 2] = 1, g[y * 4 + 3] = R, y !== i.length - 1 && (u[y * 6 + 0] = y * 2 + 0, u[y * 6 + 1] = y * 2 + 2, u[y * 6 + 2] = y * 2 + 1, u[y * 6 + 3] = y * 2 + 2, u[y * 6 + 4] = y * 2 + 3, u[y * 6 + 5] = y * 2 + 1);
11104
11106
  }
11105
11107
  const b = new j.BufferGeometry();
11106
11108
  return b.setAttribute("position", new j.BufferAttribute(m, 3)), b.setAttribute("uv", new j.BufferAttribute(g, 2)), b.setIndex(new j.BufferAttribute(u, 1)), b;
@@ -11293,16 +11295,16 @@ class wr extends kt {
11293
11295
  var y;
11294
11296
  return v.data.panoIndex !== ((y = c[b - 1]) == null ? void 0 : y.data.panoIndex);
11295
11297
  }).map((v) => v.data.panoIndex).forEach((v) => {
11296
- var y, P;
11298
+ var y, I;
11297
11299
  const b = (y = this.five.work.observers[v]) == null ? void 0 : y.floorIndex;
11298
11300
  if (b !== void 0)
11299
11301
  if (l === b) {
11300
- const E = a.length - 1;
11301
- a[E] = [...(P = a[E]) != null ? P : [], v];
11302
+ const P = a.length - 1;
11303
+ a[P] = [...(I = a[P]) != null ? I : [], v];
11302
11304
  } else {
11303
11305
  l = b;
11304
- const E = a.length;
11305
- a[E] = [v];
11306
+ const P = a.length;
11307
+ a[P] = [v];
11306
11308
  }
11307
11309
  }), this.GuideLine || (this.GuideLine = rf(this.five)), (g = this.GuideLine) == null || g.load({ routes: a.map((v) => ({ panoIndexList: v })) }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.log(`${ti} loaded`, r), this.hooks.emit("dataLoaded", r);
11308
11310
  }
@@ -11363,12 +11365,12 @@ class wr extends kt {
11363
11365
  const { moveEffect: r, moveToFirstPanoEffect: a } = o;
11364
11366
  return this.privateState.moveToFirstPanoEffect = a, o.panoIndexList.filter((l, c) => l !== o.panoIndexList[c - 1]).forEach((l, c) => {
11365
11367
  const h = (() => {
11366
- var v, b, y, P;
11368
+ var v, b, y, I;
11367
11369
  const f = o.panoIndexList[c + 1];
11368
11370
  if (f === void 0)
11369
11371
  return;
11370
11372
  const u = (v = n[l]) == null ? void 0 : v.position, m = (b = n[f]) == null ? void 0 : b.position;
11371
- if (!m || !u || ((y = n[l]) == null ? void 0 : y.floorIndex) !== ((P = n[f]) == null ? void 0 : P.floorIndex))
11373
+ if (!m || !u || ((y = n[l]) == null ? void 0 : y.floorIndex) !== ((I = n[f]) == null ? void 0 : I.floorIndex))
11372
11374
  return;
11373
11375
  const g = new j.Vector3().subVectors(m, u);
11374
11376
  return hf(g);