@realsee/dnalogel 2.3.2 → 2.3.4

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 (227) hide show
  1. package/dist/PanoMeasurePlugin/Controller/index.d.ts +4 -2
  2. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +5 -0
  3. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +5 -1
  4. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -0
  5. package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +5 -2
  6. package/dist/index.cjs.js +36 -36
  7. package/dist/index.js +263 -197
  8. package/dist/index.umd.js +21 -21
  9. package/docs/classes/CSS3DRender.html +31 -31
  10. package/docs/classes/CruisePluginController.html +24 -24
  11. package/docs/classes/Magnifier.html +16 -16
  12. package/docs/classes/ModelRoomLabelController.html +11 -11
  13. package/docs/classes/Object3DHelperController.html +24 -24
  14. package/docs/classes/PaintBrush.html +15 -15
  15. package/docs/classes/PanoTagPluginController.html +39 -39
  16. package/docs/classes/Util.BetterTween.html +8 -8
  17. package/docs/classes/Util.FivePointSelector.html +12 -12
  18. package/docs/classes/Util.Interval.html +12 -12
  19. package/docs/classes/Util.Magnifier.html +17 -17
  20. package/docs/classes/Util.PointDomHelper.html +11 -11
  21. package/docs/classes/Util.PointHelper.html +11 -11
  22. package/docs/classes/Util.Rectangle.html +13 -13
  23. package/docs/enums/CameraMovementEffect.html +7 -7
  24. package/docs/enums/ContentType.html +12 -12
  25. package/docs/enums/DIRECTION.html +9 -9
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/DimensionType.html +7 -7
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/LinkType.html +7 -7
  31. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  32. package/docs/enums/PointType.html +7 -7
  33. package/docs/enums/Rotation.html +8 -8
  34. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  35. package/docs/functions/CameraMovementPlugin.html +4 -4
  36. package/docs/functions/CruisePlugin.html +4 -4
  37. package/docs/functions/GuideLinePlugin.html +5 -5
  38. package/docs/functions/ItemLabelPlugin.html +4 -4
  39. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  41. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  42. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  43. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  44. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  45. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  46. package/docs/functions/ModelViewPlugin.html +4 -4
  47. package/docs/functions/Object3DHelperPlugin.html +4 -4
  48. package/docs/functions/PanoCompassPlugin.html +4 -4
  49. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  50. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  51. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  52. package/docs/functions/PanoMeasurePlugin.html +4 -4
  53. package/docs/functions/PanoRulerPlugin.html +4 -4
  54. package/docs/functions/PanoRulerProPlugin.html +4 -4
  55. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  56. package/docs/functions/PanoTagPlugin.html +4 -4
  57. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  58. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  59. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  60. package/docs/functions/Util.getFrameTime.html +5 -5
  61. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  62. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  63. package/docs/functions/Util.isNil.html +5 -5
  64. package/docs/functions/Util.nextFrame.html +5 -5
  65. package/docs/functions/Util.notNil.html +5 -5
  66. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  67. package/docs/functions/Util.tweenProgress.html +5 -5
  68. package/docs/functions/pluginFlag.html +5 -5
  69. package/docs/index.html +4 -4
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  71. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  72. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  73. package/docs/interfaces/ContentTypeMap.html +12 -12
  74. package/docs/interfaces/FloorplanBounding.html +8 -8
  75. package/docs/interfaces/FloorplanData.html +10 -10
  76. package/docs/interfaces/FloorplanEntrance.html +11 -11
  77. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  78. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  79. package/docs/interfaces/FloorplanFloorData.html +9 -9
  80. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  81. package/docs/interfaces/FloorplanObserver.html +9 -9
  82. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  83. package/docs/interfaces/FloorplanPosition.html +7 -7
  84. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  86. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  87. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  88. package/docs/interfaces/FloorplanServerData.html +7 -7
  89. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  91. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  97. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  99. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  100. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  101. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  102. package/docs/interfaces/LineJson.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  104. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  105. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  106. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  107. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  108. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  110. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  111. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  112. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  113. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  114. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  115. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  116. package/docs/interfaces/Object3DHelperState.html +8 -8
  117. package/docs/interfaces/OpenParameter.html +7 -7
  118. package/docs/interfaces/PaintBrushAction.html +12 -12
  119. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  120. package/docs/interfaces/PaintBrushState.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  123. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  124. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  125. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  126. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  127. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  128. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  129. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  130. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  131. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  132. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  133. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  134. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  135. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  136. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  137. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  138. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  139. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  140. package/docs/interfaces/Point.html +8 -8
  141. package/docs/interfaces/PointJson.html +8 -8
  142. package/docs/interfaces/Room.html +9 -9
  143. package/docs/interfaces/RoomInfo.html +7 -7
  144. package/docs/interfaces/RoomLabel.html +14 -14
  145. package/docs/interfaces/RoomRules.html +5 -5
  146. package/docs/interfaces/Rooms.html +5 -5
  147. package/docs/interfaces/Scissor.html +9 -9
  148. package/docs/interfaces/TagConfig.html +10 -10
  149. package/docs/interfaces/Tags.html +9 -9
  150. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  151. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  152. package/docs/modules/Util.html +5 -5
  153. package/docs/modules.html +4 -4
  154. package/docs/types/ArrayPosition.html +5 -5
  155. package/docs/types/CSS3DRenderExportType.html +5 -5
  156. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  157. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  158. package/docs/types/Color.html +5 -5
  159. package/docs/types/ContentTypeConfigKey.html +5 -5
  160. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  161. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  162. package/docs/types/Create3DElementReturnType.html +5 -5
  163. package/docs/types/CruisePluginExportType.html +5 -5
  164. package/docs/types/Direction-1.html +5 -5
  165. package/docs/types/Direction4.html +5 -5
  166. package/docs/types/FloorplanRuleLabels.html +5 -5
  167. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  168. package/docs/types/GuideLinePluginExportType.html +5 -5
  169. package/docs/types/HelperEventMap.html +5 -5
  170. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  171. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  172. package/docs/types/MediaData.html +5 -5
  173. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  174. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  175. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  176. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  177. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  178. package/docs/types/MoveArgs.html +5 -5
  179. package/docs/types/MoveOpts.html +5 -5
  180. package/docs/types/Object3DHelperEventMap.html +5 -5
  181. package/docs/types/ObjectFit.html +5 -5
  182. package/docs/types/PaintBrushEventMap.html +5 -5
  183. package/docs/types/PanoCompassPluginData.html +5 -5
  184. package/docs/types/PanoCompassPluginExportType.html +5 -5
  185. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  186. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  187. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  188. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  189. package/docs/types/PanoMeasureReturnType.html +5 -5
  190. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  191. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  192. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  193. package/docs/types/PlaneTag.html +5 -5
  194. package/docs/types/PointTag.html +5 -5
  195. package/docs/types/Position.html +5 -5
  196. package/docs/types/RotateArgs.html +5 -5
  197. package/docs/types/RotateOpts.html +5 -5
  198. package/docs/types/RuleLabelsKey.html +5 -5
  199. package/docs/types/RuleLabelsValue.html +5 -5
  200. package/docs/types/Tag.html +5 -5
  201. package/docs/types/Tag2D.html +5 -5
  202. package/docs/types/Tag3D.html +5 -5
  203. package/docs/types/TagId.html +5 -5
  204. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  205. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  206. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  207. package/docs/variables/PLUGIN.html +5 -5
  208. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  209. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  210. package/docs/variables/VERSION.html +5 -5
  211. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  212. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  213. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  214. package/libs/PanoMeasurePlugin/Controller/index.d.ts +4 -2
  215. package/libs/PanoMeasurePlugin/Controller/index.js +63 -44
  216. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +5 -0
  217. package/libs/PanoMeasurePlugin/Modules/GuideController.js +15 -10
  218. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +3 -3
  219. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +5 -1
  220. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +38 -15
  221. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -0
  222. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +20 -15
  223. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  224. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +5 -2
  225. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +36 -22
  226. package/libs/PanoTagPlugin/Components/Common/Text.js +33 -33
  227. package/package.json +15 -14
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ var ul = Object.defineProperty, hl = Object.defineProperties;
2
2
  var fl = Object.getOwnPropertyDescriptors;
3
3
  var bo = Object.getOwnPropertySymbols;
4
4
  var ml = Object.prototype.hasOwnProperty, pl = Object.prototype.propertyIsEnumerable;
5
- var pi = (i, t, e) => t in i ? ul(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, G = (i, t) => {
5
+ var pi = (i, t, e) => t in i ? ul(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, F = (i, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  ml.call(t, e) && pi(i, e, t[e]);
8
8
  if (bo)
@@ -574,7 +574,7 @@ class N0 {
574
574
  }
575
575
  const W0 = (i, t) => {
576
576
  let e = !0, n = null;
577
- const s = G(G({}, {
577
+ const s = F(F({}, {
578
578
  lookAtCurrentCamera: !1,
579
579
  lockedPanoIndex: null,
580
580
  lockedLatitude: null,
@@ -642,8 +642,8 @@ const W0 = (i, t) => {
642
642
  Math.pow(j.max.x - j.min.x + 1, 2) + Math.pow(j.max.y - j.min.y + 1, 2) + Math.pow(j.max.z - j.min.z + 1, 2),
643
643
  1 / 2
644
644
  );
645
- let F = B / 2 / Math.tan(Math.PI * L / 360);
646
- return P < 1 && (F = F / P), isNaN(F) ? B : F;
645
+ let G = B / 2 / Math.tan(Math.PI * L / 360);
646
+ return P < 1 && (G = G / P), isNaN(G) ? B : G;
647
647
  }
648
648
  function v(y) {
649
649
  return i.work.observers[y].standingPosition.clone();
@@ -1050,7 +1050,7 @@ class fn {
1050
1050
  !o || (e ? o.add(n) : o.remove(n));
1051
1051
  });
1052
1052
  f(this, "createObject", (t, e) => {
1053
- const n = new _r(G({ cornerPoints: t }, e));
1053
+ const n = new _r(F({ cornerPoints: t }, e));
1054
1054
  return n.element.classList.add(`${Bi}__container`), n.element.id = `${Bi}__container--${n.uuid}`, n;
1055
1055
  });
1056
1056
  t && this.setScene(t);
@@ -1079,7 +1079,7 @@ class fn {
1079
1079
  setState(t, e = { userAction: !0 }) {
1080
1080
  if (this.state.disposed)
1081
1081
  return Gt();
1082
- const n = G({}, this.state);
1082
+ const n = F({}, this.state);
1083
1083
  this.state = Object.assign(this.state, t), n.visible !== this.state.visible && (t.visible ? this.handleShow() : this.handleHide()), n.enabled !== this.state.enabled && (t.enabled ? this.handleEnable() : this.handleDisable()), n.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: n, userAction: e.userAction });
1084
1084
  }
1085
1085
  dispose() {
@@ -1259,7 +1259,7 @@ class ic extends fn {
1259
1259
  }
1260
1260
  const { autoRender: r } = o;
1261
1261
  o.mode === "behind" && o.behindFiveContainer && (this.behindFiveContainer = o.behindFiveContainer);
1262
- const a = this.create3DElement(this.five.camera, e, he(G({}, o), { autoRender: !1 }));
1262
+ const a = this.create3DElement(this.five.camera, e, he(F({}, o), { autoRender: !1 }));
1263
1263
  if (!a)
1264
1264
  return;
1265
1265
  const l = () => {
@@ -1272,7 +1272,7 @@ class ic extends fn {
1272
1272
  l();
1273
1273
  });
1274
1274
  };
1275
- return r && c(), he(G({}, a), { render: r ? void 0 : c });
1275
+ return r && c(), he(F({}, a), { render: r ? void 0 : c });
1276
1276
  });
1277
1277
  this.five = e;
1278
1278
  }
@@ -2070,12 +2070,12 @@ function Ic(i, t, e) {
2070
2070
  const L = w.get(y.id);
2071
2071
  if (L)
2072
2072
  return L;
2073
- const { x: P, y: j, z: B } = y.position, F = new Z(P, j, B).clone().distanceTo(o.camera.position);
2074
- return w.set(y.id, F), F;
2073
+ const { x: P, y: j, z: B } = y.position, G = new Z(P, j, B).clone().distanceTo(o.camera.position);
2074
+ return w.set(y.id, G), G;
2075
2075
  }
2076
2076
  return s.map((y) => {
2077
- const L = c(y), P = L ? d(y, v) : y.transform, j = x(y), F = s.filter((Y) => Y.visible && x(Y) < j).length * 10;
2078
- return he(G({}, y), { visible: L, transform: P, zIndex: F });
2077
+ const L = c(y), P = L ? d(y, v) : y.transform, j = x(y), G = s.filter((Y) => Y.visible && x(Y) < j).length * 10;
2078
+ return he(F({}, y), { visible: L, transform: P, zIndex: G });
2079
2079
  });
2080
2080
  }
2081
2081
  function u() {
@@ -2671,7 +2671,7 @@ function dd(i, t, e) {
2671
2671
  function p(P, j) {
2672
2672
  if (j.width === 0 || j.height === 0)
2673
2673
  return () => !1;
2674
- const B = P.path.map(({ x: ne, y: W }) => [ne, W]), F = P.roomLabel.position, { x: Y, y: I } = F, { width: S, height: R } = j, N = S / 2, X = R / 2;
2674
+ const B = P.path.map(({ x: ne, y: W }) => [ne, W]), G = P.roomLabel.position, { x: Y, y: I } = G, { width: S, height: R } = j, N = S / 2, X = R / 2;
2675
2675
  return function(W) {
2676
2676
  const U = Y * W, de = I * W, ue = B.map(([we, ke]) => [we * W, ke * W]);
2677
2677
  return [
@@ -3467,7 +3467,7 @@ function Gd(i, t, e) {
3467
3467
  return i.$$set = (l) => {
3468
3468
  "floorIndex" in l && e(3, o = l.floorIndex), "floorplanData" in l && e(4, s = l.floorplanData);
3469
3469
  }, i.$$.update = () => {
3470
- i.$$.dirty & 24 && e(0, n = s.floorDatas[o].rooms.map((l) => he(G({}, l), {
3470
+ i.$$.dirty & 24 && e(0, n = s.floorDatas[o].rooms.map((l) => he(F({}, l), {
3471
3471
  path: l.path.map((c) => va(c, s.bounding))
3472
3472
  })));
3473
3473
  }, [n, r, a, o, s];
@@ -4393,7 +4393,7 @@ class mu extends Ot {
4393
4393
  immediately: !1,
4394
4394
  isAutoShow: !1,
4395
4395
  userAction: !0
4396
- }, o = G(G({}, n), e), s = () => J(this, null, function* () {
4396
+ }, o = F(F({}, n), e), s = () => J(this, null, function* () {
4397
4397
  this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
4398
4398
  let a = !1, l;
4399
4399
  this.showRejection = (u) => {
@@ -4423,7 +4423,7 @@ class mu extends Ot {
4423
4423
  f(this, "_hide", (e) => {
4424
4424
  var s;
4425
4425
  (s = this.showRejection) == null || s.call(this, Ge.BreakOffByHide), this.showPromise = void 0;
4426
- const o = G(G({}, {
4426
+ const o = F(F({}, {
4427
4427
  userAction: !0,
4428
4428
  isAutoHide: !1
4429
4429
  }), e);
@@ -4504,7 +4504,7 @@ class mu extends Ot {
4504
4504
  getLabelElement: void 0,
4505
4505
  getRoomAreaText: (l) => (l / 1e6).toFixed(1) + "\u33A1",
4506
4506
  getRuleDistanceText: (l) => l.toString()
4507
- }, s = n ? ci(n, ["selector", "scale"]) : {}, r = G(G({}, o), s);
4507
+ }, s = n ? ci(n, ["selector", "scale"]) : {}, r = F(F({}, o), s);
4508
4508
  this.state = {
4509
4509
  enabled: !0,
4510
4510
  visible: !1,
@@ -4555,8 +4555,8 @@ class mu extends Ot {
4555
4555
  });
4556
4556
  }
4557
4557
  updateState(e, n) {
4558
- const o = this.state, s = e.config ? G(G({}, o.config), e.config) : o.config;
4559
- this.state = he(G(G({}, this.state), e), { config: s }), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
4558
+ const o = this.state, s = e.config ? F(F({}, o.config), e.config) : o.config;
4559
+ this.state = he(F(F({}, this.state), e), { config: s }), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
4560
4560
  }
4561
4561
  initContainer() {
4562
4562
  this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
@@ -4581,7 +4581,7 @@ class mu extends Ot {
4581
4581
  render(e) {
4582
4582
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
4583
4583
  return;
4584
- const n = he(G({}, this.state.config), {
4584
+ const n = he(F({}, this.state.config), {
4585
4585
  visible: this.state.visible,
4586
4586
  duration: e != null ? e : 0,
4587
4587
  panoIndex: this.panoIndex,
@@ -4665,7 +4665,7 @@ class Au extends Ot {
4665
4665
  immediately: !1,
4666
4666
  isAutoShow: !1,
4667
4667
  userAction: !0
4668
- }, o = G(G({}, n), e), s = () => J(this, null, function* () {
4668
+ }, o = F(F({}, n), e), s = () => J(this, null, function* () {
4669
4669
  this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
4670
4670
  let a = !1, l;
4671
4671
  this.showRejection = (u) => {
@@ -4695,7 +4695,7 @@ class Au extends Ot {
4695
4695
  f(this, "_hide", (e) => {
4696
4696
  var s;
4697
4697
  (s = this.showRejection) == null || s.call(this, Ge.BreakOffByHide), this.showPromise = void 0;
4698
- const o = G(G({}, {
4698
+ const o = F(F({}, {
4699
4699
  userAction: !0,
4700
4700
  isAutoHide: !1
4701
4701
  }), e);
@@ -4774,7 +4774,7 @@ class Au extends Ot {
4774
4774
  adaptiveRoomLabelVisibleEnable: !0,
4775
4775
  getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
4776
4776
  getRuleDistanceText: (a) => a.toString()
4777
- }, s = n ? ci(n, ["selector", "scale"]) : {}, r = G(G({}, o), s);
4777
+ }, s = n ? ci(n, ["selector", "scale"]) : {}, r = F(F({}, o), s);
4778
4778
  this.state = {
4779
4779
  enabled: !0,
4780
4780
  visible: !1,
@@ -4832,8 +4832,8 @@ class Au extends Ot {
4832
4832
  });
4833
4833
  }
4834
4834
  updateState(e, n) {
4835
- const o = this.state, s = e.config ? G(G({}, o.config), e.config) : o.config;
4836
- this.state = he(G(G({}, this.state), e), { config: s }), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
4835
+ const o = this.state, s = e.config ? F(F({}, o.config), e.config) : o.config;
4836
+ this.state = he(F(F({}, this.state), e), { config: s }), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
4837
4837
  }
4838
4838
  initContainer() {
4839
4839
  this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
@@ -4858,7 +4858,7 @@ class Au extends Ot {
4858
4858
  render(e) {
4859
4859
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
4860
4860
  return;
4861
- const n = he(G({}, this.state.config), {
4861
+ const n = he(F({}, this.state.config), {
4862
4862
  visible: this.state.visible,
4863
4863
  duration: e != null ? e : 0,
4864
4864
  panoIndex: this.panoIndex,
@@ -4959,7 +4959,7 @@ class vu extends Ot {
4959
4959
  adaptiveRoomLabelVisibleEnable: !0,
4960
4960
  getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
4961
4961
  getRuleDistanceText: (a) => a.toString()
4962
- }, s = n ? ci(n, ["selector", "scale"]) : {}, r = G(G({}, o), s);
4962
+ }, s = n ? ci(n, ["selector", "scale"]) : {}, r = F(F({}, o), s);
4963
4963
  this.state = {
4964
4964
  enabled: !0,
4965
4965
  visible: !1,
@@ -5062,8 +5062,8 @@ class vu extends Ot {
5062
5062
  this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n });
5063
5063
  }
5064
5064
  updateState(e, n) {
5065
- const o = this.state, s = e.config ? G(G({}, o.config), e.config) : o.config;
5066
- this.state = he(G(G({}, this.state), e), { config: s }), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
5065
+ const o = this.state, s = e.config ? F(F({}, o.config), e.config) : o.config;
5066
+ this.state = he(F(F({}, this.state), e), { config: s }), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
5067
5067
  }
5068
5068
  addEventListener() {
5069
5069
  if (!this.state.enabled || this.hasAddedEventListener)
@@ -5089,7 +5089,7 @@ class vu extends Ot {
5089
5089
  render(e) {
5090
5090
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
5091
5091
  return;
5092
- const n = he(G({}, this.state.config), {
5092
+ const n = he(F({}, this.state.config), {
5093
5093
  visible: this.state.visible,
5094
5094
  duration: e != null ? e : 0,
5095
5095
  panoIndex: this.panoIndex,
@@ -5580,7 +5580,7 @@ class ju extends Ot {
5580
5580
  const o = {
5581
5581
  hoverEnable: !1,
5582
5582
  cameraImageUrl: vt
5583
- }, s = n != null && n.configs ? n.configs : {}, r = G(G({}, o), s);
5583
+ }, s = n != null && n.configs ? n.configs : {}, r = F(F({}, o), s);
5584
5584
  this.state = { enabled: !0, visible: !0, config: r }, n != null && n.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (n == null ? void 0 : n.wrapper) == "string" ? this.wrapperSelector = n.wrapper : (n == null ? void 0 : n.wrapper) instanceof Element && (this.wrapper = n.wrapper), e.once("dispose", this.dispose);
5585
5585
  }
5586
5586
  load(e, n, o = !0) {
@@ -5663,7 +5663,7 @@ class ju extends Ot {
5663
5663
  }
5664
5664
  updateState(e, n) {
5665
5665
  const o = this.state;
5666
- this.state = G(G({}, this.state), e), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
5666
+ this.state = F(F({}, this.state), e), !qe(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
5667
5667
  }
5668
5668
  render() {
5669
5669
  if (this.disposed || !this.state.enabled)
@@ -5674,7 +5674,7 @@ class ju extends Ot {
5674
5674
  }
5675
5675
  if (!this.data || !this.wrapper)
5676
5676
  return;
5677
- const e = he(G({}, this.state.config), {
5677
+ const e = he(F({}, this.state.config), {
5678
5678
  five: this.five,
5679
5679
  floorplanData: this.data,
5680
5680
  visible: this.state.visible,
@@ -5796,7 +5796,7 @@ function Ea(i, t) {
5796
5796
  i.traverse((e) => {
5797
5797
  var n;
5798
5798
  if (e.type === "Mesh") {
5799
- const o = e, s = G({ map: o.material.map || {} }, t);
5799
+ const o = e, s = F({ map: o.material.map || {} }, t);
5800
5800
  o.material = new un(s), o.renderOrder = 1, ((n = e.parent) == null ? void 0 : n.type) === "Mesh" && (e.renderOrder = e.parent.renderOrder + 1);
5801
5801
  }
5802
5802
  });
@@ -5823,8 +5823,8 @@ const eA = (i, t) => {
5823
5823
  }
5824
5824
  } = i;
5825
5825
  o.yBase = P;
5826
- const B = { x: (D + L) / 2, y: P - 1.6, z: (y + j) / 2 }, F = 45e-4 * v;
5827
- return Qu(w, { position: B, rotation: x, scale: F }), o.object = w, !0;
5826
+ const B = { x: (D + L) / 2, y: P - 1.6, z: (y + j) / 2 }, G = 45e-4 * v;
5827
+ return Qu(w, { position: B, rotation: x, scale: G }), o.object = w, !0;
5828
5828
  }), r = ({ latitude: h }) => {
5829
5829
  if (!o.object)
5830
5830
  return;
@@ -5858,11 +5858,11 @@ function Ru(i, t) {
5858
5858
  const Hu = ({ x: i, y: t, z: e }) => new Z(i, t, e), tA = (i, t) => {
5859
5859
  var g, A, v;
5860
5860
  const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (A = t.position) != null ? A : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (C) => J(void 0, null, function* () {
5861
- var B, F, Y, I, S, R, N, X;
5861
+ var B, G, Y, I, S, R, N, X;
5862
5862
  const w = (B = C == null ? void 0 : C.position) != null ? B : o;
5863
5863
  if (!w)
5864
5864
  return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
5865
- const x = Hu(w), D = (F = C == null ? void 0 : C.rad) != null ? F : s, y = (Y = C == null ? void 0 : C.fbx_url) != null ? Y : r;
5865
+ const x = Hu(w), D = (G = C == null ? void 0 : C.rad) != null ? G : s, y = (Y = C == null ? void 0 : C.fbx_url) != null ? Y : r;
5866
5866
  if (e.rad = D, D === void 0)
5867
5867
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${D}`));
5868
5868
  const L = yield new Ur().loadAsync(y);
@@ -5883,11 +5883,11 @@ const Hu = ({ x: i, y: t, z: e }) => new Z(i, t, e), tA = (i, t) => {
5883
5883
  x.timeScale = C;
5884
5884
  let D;
5885
5885
  const y = () => {
5886
- let B = 0, F = 0;
5886
+ let B = 0, G = 0;
5887
5887
  const Y = 1e3 / 30, I = (S) => {
5888
5888
  B = requestAnimationFrame(I);
5889
- const R = S - F;
5890
- R < Y || (F = S, a.forEach((N) => N.update(R / 1e3)), i.needsRender = !0);
5889
+ const R = S - G;
5890
+ R < Y || (G = S, a.forEach((N) => N.update(R / 1e3)), i.needsRender = !0);
5891
5891
  };
5892
5892
  return B = requestAnimationFrame(I), () => {
5893
5893
  cancelAnimationFrame(B);
@@ -6228,7 +6228,7 @@ const Uu = `<style type="text/css">
6228
6228
  return !1;
6229
6229
  for (const w in A) {
6230
6230
  const x = A[w], { standingPosition: D } = C.observers[0], y = x.map(({ x: L, z: P, observers: j }) => {
6231
- const B = j.length > 0 ? g.rooms[g.observers[j[0]]].name : "", F = v[B] ? v[B].floor : null;
6231
+ const B = j.length > 0 ? g.rooms[g.observers[j[0]]].name : "", G = v[B] ? v[B].floor : null;
6232
6232
  let Y = 1 / 0, I = {
6233
6233
  index: 0,
6234
6234
  x: D.x,
@@ -6244,7 +6244,7 @@ const Uu = `<style type="text/css">
6244
6244
  y: U.y,
6245
6245
  z: U.z
6246
6246
  }, ue = Ju({ x: L, z: P }, de);
6247
- F ? ue < Y && Math.abs(de.y - F) < 0.3 && (Y = ue, I = de) : ue < Y && (Y = ue, I = de);
6247
+ G ? ue < Y && Math.abs(de.y - G) < 0.3 && (Y = ue, I = de) : ue < Y && (Y = ue, I = de);
6248
6248
  });
6249
6249
  const S = new Z(L, I.y, P);
6250
6250
  Object.assign(S, { observers: j });
@@ -6264,8 +6264,8 @@ const Uu = `<style type="text/css">
6264
6264
  for (let L = 0; L < y.length; L++) {
6265
6265
  let P = L + 1;
6266
6266
  P >= y.length && (P = 0);
6267
- const { origin: j } = y[L], { origin: B } = y[P], F = n(w, j.distanceTo(B));
6268
- o.append(F), r[w].rules.push({ vertical: !1, rule: [j, B], $element: F });
6267
+ const { origin: j } = y[L], { origin: B } = y[P], G = n(w, j.distanceTo(B));
6268
+ o.append(G), r[w].rules.push({ vertical: !1, rule: [j, B], $element: G });
6269
6269
  }
6270
6270
  }
6271
6271
  return e.loaded = !0, !0;
@@ -6273,7 +6273,7 @@ const Uu = `<style type="text/css">
6273
6273
  const C = g || t.roomInfo, w = A || t.roomRules;
6274
6274
  if (!C || !w)
6275
6275
  throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
6276
- return e.loaded = !1, e.options = G(G({}, e.options), v || {}), i.model.loaded ? a(C, w) : yield new Promise(
6276
+ return e.loaded = !1, e.options = F(F({}, e.options), v || {}), i.model.loaded ? a(C, w) : yield new Promise(
6277
6277
  (x) => i.once("modelLoaded", () => x(a(C, w)))
6278
6278
  );
6279
6279
  });
@@ -6315,25 +6315,25 @@ const Uu = `<style type="text/css">
6315
6315
  B.split(",").indexOf(A.toString()) >= 0 && (w = B);
6316
6316
  if (!w) {
6317
6317
  for (const B in r)
6318
- for (const { $element: F } of r[B].rules)
6319
- F.style.display = "none";
6318
+ for (const { $element: G } of r[B].rules)
6319
+ G.style.display = "none";
6320
6320
  return;
6321
6321
  }
6322
6322
  const x = v.position, D = v.getWorldDirection(new Z()), y = g.clientWidth, L = g.clientHeight;
6323
6323
  if (C !== Be.Mode.Panorama) {
6324
6324
  for (const B in r)
6325
- for (const { $element: F } of r[B].rules)
6326
- F.style.display = "none";
6325
+ for (const { $element: G } of r[B].rules)
6326
+ G.style.display = "none";
6327
6327
  return;
6328
6328
  }
6329
6329
  for (const B in r)
6330
- for (const { $element: F } of r[B].rules)
6331
- F.style.display = B === w ? "block" : "none";
6332
- const [P] = r[w].origins.slice().filter((B) => B.observers.indexOf(A) >= 0).sort((B, F) => {
6333
- const Y = B.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0)), I = F.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0));
6330
+ for (const { $element: G } of r[B].rules)
6331
+ G.style.display = B === w ? "block" : "none";
6332
+ const [P] = r[w].origins.slice().filter((B) => B.observers.indexOf(A) >= 0).sort((B, G) => {
6333
+ const Y = B.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0)), I = G.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0));
6334
6334
  return Y - I;
6335
6335
  });
6336
- for (const { rule: B, vertical: F, $element: Y } of r[w].rules) {
6336
+ for (const { rule: B, vertical: G, $element: Y } of r[w].rules) {
6337
6337
  const [I, S] = B, R = Y.querySelector(".PanoRulerPlugin-rule-line");
6338
6338
  if (!R)
6339
6339
  return;
@@ -6617,13 +6617,13 @@ function nh(i, t, e) {
6617
6617
  }
6618
6618
  return y.length === 0 ? !1 : y;
6619
6619
  }, d = (w, x) => {
6620
- const D = w.clone().project(n.camera), y = (D.x + 1) / 2 * a, L = (-D.y + 1) / 2 * l, P = x.clone().project(n.camera), j = (P.x + 1) / 2 * a, B = (-P.y + 1) / 2 * l, F = Math.sqrt(Math.pow(j - y, 2) + Math.pow(B - L, 2));
6620
+ const D = w.clone().project(n.camera), y = (D.x + 1) / 2 * a, L = (-D.y + 1) / 2 * l, P = x.clone().project(n.camera), j = (P.x + 1) / 2 * a, B = (-P.y + 1) / 2 * l, G = Math.sqrt(Math.pow(j - y, 2) + Math.pow(B - L, 2));
6621
6621
  return {
6622
6622
  startLeft: y,
6623
6623
  startTop: L,
6624
6624
  endLeft: j,
6625
6625
  endTop: B,
6626
- distance: F
6626
+ distance: G
6627
6627
  };
6628
6628
  }, h = (w, x, D) => {
6629
6629
  const y = n.camera.position, L = n.camera.getWorldDirection(new Z()), P = w.clone().sub(y).normalize().angleTo(L), j = x.clone().sub(y).normalize().angleTo(L), B = w.distanceTo(x), Y = x.clone().sub(x.clone().sub(w).divide(new Z(2, 2, 2))).distanceTo(y), { startLeft: I, startTop: S, endLeft: R, endTop: N, distance: X } = d(w, x), W = -((Math.PI / 2 - Math.atan2(R - I, S - N)) / Math.PI) * 180;
@@ -6648,18 +6648,18 @@ function nh(i, t, e) {
6648
6648
  ruleLength: B
6649
6649
  };
6650
6650
  }, u = () => {
6651
- const w = n.panoIndex, x = o.find((F) => F.panoIndex === w);
6651
+ const w = n.panoIndex, x = o.find((G) => G.panoIndex === w);
6652
6652
  if (!x)
6653
6653
  return e(0, r = []);
6654
6654
  if (n.currentMode !== Be.Mode.Panorama)
6655
6655
  return e(0, r = []);
6656
- const D = n.camera.position, y = n.camera.getWorldDirection(new Z()), L = x.lines.map((F) => new Z(F.start[0], -F.start[1], -F.start[2])), P = x.lines.map((F) => new Z(F.end[0], -F.end[1], -F.end[2])), [j] = L.concat(P).sort((F, Y) => {
6657
- const I = F.clone().setY(0).sub(D).normalize().angleTo(y.clone().setY(0)), S = Y.clone().setY(0).sub(D).normalize().angleTo(y.clone().setY(0));
6656
+ const D = n.camera.position, y = n.camera.getWorldDirection(new Z()), L = x.lines.map((G) => new Z(G.start[0], -G.start[1], -G.start[2])), P = x.lines.map((G) => new Z(G.end[0], -G.end[1], -G.end[2])), [j] = L.concat(P).sort((G, Y) => {
6657
+ const I = G.clone().setY(0).sub(D).normalize().angleTo(y.clone().setY(0)), S = Y.clone().setY(0).sub(D).normalize().angleTo(y.clone().setY(0));
6658
6658
  return I - S;
6659
- }), B = x.lines.map((F) => {
6659
+ }), B = x.lines.map((G) => {
6660
6660
  var ue, me;
6661
- const Y = F.start, I = F.end, { startLeft: S, startTop: R, distance: N, deg: X, visible: ne, labelOffset: W, ruleLength: U } = h(new Z(Y[0], -Y[1], -Y[2]), new Z(I[0], -I[1], -I[2]), j), de = [];
6662
- return F.children && ((ue = F.children) == null ? void 0 : ue.length) > 0 && ((me = F.children) == null || me.forEach((we) => {
6661
+ const Y = G.start, I = G.end, { startLeft: S, startTop: R, distance: N, deg: X, visible: ne, labelOffset: W, ruleLength: U } = h(new Z(Y[0], -Y[1], -Y[2]), new Z(I[0], -I[1], -I[2]), j), de = [];
6662
+ return G.children && ((ue = G.children) == null ? void 0 : ue.length) > 0 && ((me = G.children) == null || me.forEach((we) => {
6663
6663
  const ke = we.start, He = we.end, { distance: se } = d(new Z(ke[0], -ke[1], -ke[2]), new Z(He[0], -He[1], -He[2]));
6664
6664
  de.push({ width: se, state: we.state });
6665
6665
  })), {
@@ -6667,7 +6667,7 @@ function nh(i, t, e) {
6667
6667
  left: S,
6668
6668
  top: R,
6669
6669
  rotateDeg: X,
6670
- state: F.state,
6670
+ state: G.state,
6671
6671
  children: de,
6672
6672
  labelOffset: W,
6673
6673
  visible: ne,
@@ -6707,7 +6707,7 @@ class oh {
6707
6707
  this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
6708
6708
  "style",
6709
6709
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
6710
- ), e && (e.data && this.load(e.data), this.state.options = G(G({}, this.state.options), e.options || {}), (n = e.options) != null && n.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => J(this, null, function* () {
6710
+ ), e && (e.data && this.load(e.data), this.state.options = F(F({}, this.state.options), e.options || {}), (n = e.options) != null && n.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => J(this, null, function* () {
6711
6711
  var s, r;
6712
6712
  (r = (s = this.five.getElement()) == null ? void 0 : s.parentNode) == null || r.append(this.container);
6713
6713
  })), this.five.once("dispose", () => this.dispose());
@@ -6865,7 +6865,7 @@ class lh extends Ot {
6865
6865
  this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
6866
6866
  visible: !0,
6867
6867
  enabled: !0,
6868
- config: G(G({}, this.state.config), n || {})
6868
+ config: F(F({}, this.state.config), n || {})
6869
6869
  });
6870
6870
  }
6871
6871
  enable(e = Sn) {
@@ -6908,7 +6908,7 @@ class lh extends Ot {
6908
6908
  this.state = {
6909
6909
  visible: (s = e.visible) != null ? s : o.visible,
6910
6910
  enabled: (r = e.enabled) != null ? r : o.enabled,
6911
- config: G(G({}, o.config), e.config || {})
6911
+ config: F(F({}, o.config), e.config || {})
6912
6912
  }, this.hooks.emit("stateChange", {
6913
6913
  state: this.state,
6914
6914
  prevState: o,
@@ -6918,7 +6918,7 @@ class lh extends Ot {
6918
6918
  load(e, n, o = !0) {
6919
6919
  return J(this, null, function* () {
6920
6920
  const s = yield this.formatData(e);
6921
- JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = G({}, s), this.init(), n && this.setState(n, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
6921
+ JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = F({}, s), this.init(), n && this.setState(n, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
6922
6922
  });
6923
6923
  }
6924
6924
  formatData(e) {
@@ -7130,7 +7130,7 @@ const hh = 1, fh = 3, mh = new An(16777215), ph = new An(6522623), gh = new An(1
7130
7130
  lineRenderOrder: 20,
7131
7131
  pointsRenderOrder: 20
7132
7132
  };
7133
- he(G({}, La), { dashed: !0 });
7133
+ he(F({}, La), { dashed: !0 });
7134
7134
  const wh = {
7135
7135
  pointTexture: Da,
7136
7136
  pointSize: bh,
@@ -7190,8 +7190,8 @@ function Ih(i) {
7190
7190
  d.style.opacity = "0", d.style.pointerEvents = "none";
7191
7191
  return;
7192
7192
  }
7193
- const B = (y.x + 1) / 2 * A, F = -(y.y - 1) / 2 * v, I = -(Math.atan((L.y - P.y) / (L.x - P.x)) * 180) / Math.PI;
7194
- d.style.transform = `translate(${B}px, ${F}px) rotate(${I}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", h && h.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
7193
+ const B = (y.x + 1) / 2 * A, G = -(y.y - 1) / 2 * v, I = -(Math.atan((L.y - P.y) / (L.x - P.x)) * 180) / Math.PI;
7194
+ d.style.transform = `translate(${B}px, ${G}px) rotate(${I}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", h && h.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
7195
7195
  const S = C.position.clone().distanceTo(w.position), R = i.line.model.params.getDistanceText(S);
7196
7196
  c.innerText !== R && (c.innerText = R);
7197
7197
  }
@@ -8051,7 +8051,7 @@ const Ma = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG
8051
8051
  <div class="fpm_operating-space fpm_operating--mobile">
8052
8052
  <div class="fpm__main fpm__main-btn">
8053
8053
  <div class="fpm__main-icon fpm__main__start"></div>
8054
- <div class="fpm__main-text fpm__main-btn-text">\u5F00\u59CB</div>
8054
+ <div class="fpm__main-text fpm__main-btn-text"></div>
8055
8055
  </div>
8056
8056
  </div>
8057
8057
  `, Hh = `
@@ -8164,17 +8164,17 @@ const Ma = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG
8164
8164
  <div class="fpm__other-btn">
8165
8165
  <div class="fpm__other-content fpm__revoke">
8166
8166
  ${Hh}
8167
- <span class="fpm__text fpm__revoke-text">\u64A4\u9500</span>
8167
+ <span class="fpm__text fpm__revoke-text"></span>
8168
8168
  </div>
8169
8169
  </div>
8170
8170
  <div class="fpm__main fpm__main-btn">
8171
8171
  <div class="fpm__main-icon fpm__main__start"></div>
8172
- <div class="fpm__main-text fpm__main-btn-text">\u5F00\u59CB</div>
8172
+ <div class="fpm__main-text fpm__main-btn-text"></div>
8173
8173
  </div>
8174
8174
  <div class="fpm__other-btn">
8175
8175
  <div class="fpm__other-content fpm__exit">
8176
8176
  ${Oh}
8177
- <span class="fpm__text fpm__exit-text">\u9000\u51FA</span>
8177
+ <span class="fpm__text fpm__exit-text"></span>
8178
8178
  </div>
8179
8179
  </div>
8180
8180
  </div>
@@ -8231,10 +8231,17 @@ const Ma = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG
8231
8231
  userSelect: "none"
8232
8232
  };
8233
8233
  class Jh {
8234
- constructor(t, e) {
8234
+ constructor(t, e, n) {
8235
8235
  f(this, "container");
8236
8236
  f(this, "measureController");
8237
8237
  f(this, "mainElement");
8238
+ f(this, "_params");
8239
+ f(this, "_btnTexts", {
8240
+ start: "\u5F00\u59CB",
8241
+ end: "\u7ED3\u675F",
8242
+ revoke: "\u64A4\u9500",
8243
+ exit: "\u9000\u51FA"
8244
+ });
8238
8245
  f(this, "onMouseEnter", () => {
8239
8246
  const { mainItem: t } = this.mainElement;
8240
8247
  t.style.opacity = "1";
@@ -8249,7 +8256,15 @@ class Jh {
8249
8256
  f(this, "modeChangeHandler", (t) => {
8250
8257
  t === "Watch" ? this.change2Add() : this.change2Done();
8251
8258
  });
8252
- this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, ja), Object.assign(this.mainElement.mainItem.style, Ba), this.change2Add(), this.measureController.hook.on("modeChange", this.modeChangeHandler), this.mainElement.mainItem.addEventListener("click", this.onClick), this.mainElement.mainItem.addEventListener("mouseenter", this.onMouseEnter), this.mainElement.mainItem.addEventListener("mouseleave", this.onMouseLeave);
8259
+ var r, a, l, c;
8260
+ this._params = n, this._btnTexts = {
8261
+ start: (r = this._params.startButtonText) != null ? r : this._btnTexts.start,
8262
+ end: (a = this._params.endButtonText) != null ? a : this._btnTexts.end,
8263
+ revoke: (l = this._params.revokeButtonText) != null ? l : this._btnTexts.revoke,
8264
+ exit: (c = this._params.exitButtonText) != null ? c : this._btnTexts.exit
8265
+ }, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, ja), Object.assign(this.mainElement.mainItem.style, Ba);
8266
+ const { revokeTextDom: o, exitTextDom: s } = this._getTextElement();
8267
+ o && (o.innerText = this._btnTexts.revoke), s && (s.innerText = this._btnTexts.exit), this.change2Add(), this.measureController.hook.on("modeChange", this.modeChangeHandler), this.mainElement.mainItem.addEventListener("click", this.onClick), this.mainElement.mainItem.addEventListener("mouseenter", this.onMouseEnter), this.mainElement.mainItem.addEventListener("mouseleave", this.onMouseLeave);
8253
8268
  }
8254
8269
  dispose() {
8255
8270
  this.measureController.hook.off("modeChange", this.modeChangeHandler), this.mainElement.mainItem.removeEventListener("click", this.onClick), this.mainElement.mainItem.removeEventListener("mouseenter", this.onMouseEnter), this.mainElement.mainItem.removeEventListener("mouseleave", this.onMouseLeave);
@@ -8260,28 +8275,46 @@ class Jh {
8260
8275
  throw new Error("cannot find dom");
8261
8276
  return { mainTextDom: t, mainItem: e, mainIcon: n };
8262
8277
  }
8278
+ _getTextElement() {
8279
+ const t = this.container.querySelector(".fpm__revoke-text"), e = this.container.querySelector(".fpm__exit-text");
8280
+ return { revokeTextDom: t, exitTextDom: e };
8281
+ }
8263
8282
  change2Add() {
8264
8283
  const { mainIcon: t, mainTextDom: e } = this.mainElement;
8265
- t.className.includes("fpm__main__start") || t.className.includes("fpm__main__end") && (t.style.transform = "scale(0.8)", e.className.includes("fpm__main-text__show") ? e.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : e.classList.add("fpm__main-text__hide"), setTimeout(() => {
8266
- t.classList.replace("fpm__main__end", "fpm__main__start"), t.style.transform = "scale(1)", e.innerText = "\u5F00\u59CB", e.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8284
+ if (t.className.includes("fpm__main__start")) {
8285
+ e.innerText = this._btnTexts.start;
8286
+ return;
8287
+ }
8288
+ t.className.includes("fpm__main__end") && (t.style.transform = "scale(0.8)", e.className.includes("fpm__main-text__show") ? e.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : e.classList.add("fpm__main-text__hide"), setTimeout(() => {
8289
+ t.classList.replace("fpm__main__end", "fpm__main__start"), t.style.transform = "scale(1)", e.innerText = this._btnTexts.start, e.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8267
8290
  }, 200));
8268
8291
  }
8269
8292
  change2Done() {
8270
8293
  const { mainTextDom: t, mainIcon: e } = this.getMainElement();
8271
- t.innerText !== "\u7ED3\u675F" && (e.className.includes("fpm__main__end") || e.className.includes("fpm__main__start") && (e.style.transform = "scale(0.8)", t.className.includes("fpm__main-text__show") ? t.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : t.classList.add("fpm__main-text__hide"), setTimeout(() => {
8272
- e.classList.replace("fpm__main__start", "fpm__main__end"), e.style.transform = "scale(1)", t.innerText = "\u7ED3\u675F", t.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8294
+ t.innerText !== this._btnTexts.end && (e.className.includes("fpm__main__end") || e.className.includes("fpm__main__start") && (e.style.transform = "scale(0.8)", t.className.includes("fpm__main-text__show") ? t.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : t.classList.add("fpm__main-text__hide"), setTimeout(() => {
8295
+ e.classList.replace("fpm__main__start", "fpm__main__end"), e.style.transform = "scale(1)", t.innerText = this._btnTexts.end, t.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8273
8296
  }, 200)));
8274
8297
  }
8275
8298
  }
8276
8299
  class Vh {
8277
- constructor(t, e) {
8300
+ constructor(t, e, n) {
8278
8301
  f(this, "container");
8279
8302
  f(this, "measureController");
8280
8303
  f(this, "mainElement");
8304
+ f(this, "_params");
8305
+ f(this, "_btnTexts", {
8306
+ start: "\u5F00\u59CB",
8307
+ end: "\u7ED3\u675F"
8308
+ });
8281
8309
  f(this, "onClick", () => {
8282
- this.mainElement.mainTextDom.innerText === "\u5F00\u59CB" ? (this.measureController.hook.emit("willChangeState", "watching", "editing"), this.change2Done()) : (this.measureController.hook.emit("willChangeState", "editing", "watching"), this.change2Add());
8310
+ var t;
8311
+ this.mainElement.mainTextDom.innerText === ((t = this._params.startButtonText) != null ? t : "\u5F00\u59CB") ? (this.measureController.hook.emit("willChangeState", "watching", "editing"), this.change2Done()) : (this.measureController.hook.emit("willChangeState", "editing", "watching"), this.change2Add());
8283
8312
  });
8284
- this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, ja), Object.assign(this.mainElement.mainItem.style, Ba), this.change2Add(), this.mainElement.mainItem.addEventListener("click", this.onClick);
8313
+ var o, s;
8314
+ this._params = n, this._btnTexts = {
8315
+ start: (o = this._params.startButtonText) != null ? o : this._btnTexts.start,
8316
+ end: (s = this._params.endButtonText) != null ? s : this._btnTexts.end
8317
+ }, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, ja), Object.assign(this.mainElement.mainItem.style, Ba), this.change2Add(), this.mainElement.mainItem.addEventListener("click", this.onClick);
8285
8318
  }
8286
8319
  dispose() {
8287
8320
  this.mainElement.mainItem.removeEventListener("click", this.onClick);
@@ -8294,14 +8327,18 @@ class Vh {
8294
8327
  }
8295
8328
  change2Add() {
8296
8329
  const { mainIcon: t, mainTextDom: e } = this.mainElement;
8297
- t.className.includes("fpm__main__start") || t.className.includes("fpm__main__end") && (t.style.transform = "scale(0.8)", e.className.includes("fpm__main-text__show") ? e.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : e.classList.add("fpm__main-text__hide"), setTimeout(() => {
8298
- t.classList.replace("fpm__main__end", "fpm__main__start"), t.style.transform = "scale(1)", e.innerText = "\u5F00\u59CB", e.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8330
+ if (t.className.includes("fpm__main__start")) {
8331
+ e.innerText = this._btnTexts.start;
8332
+ return;
8333
+ }
8334
+ t.className.includes("fpm__main__end") && (t.style.transform = "scale(0.8)", e.className.includes("fpm__main-text__show") ? e.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : e.classList.add("fpm__main-text__hide"), setTimeout(() => {
8335
+ t.classList.replace("fpm__main__end", "fpm__main__start"), t.style.transform = "scale(1)", e.innerText = this._btnTexts.start, e.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8299
8336
  }, 200));
8300
8337
  }
8301
8338
  change2Done() {
8302
8339
  const { mainTextDom: t, mainIcon: e } = this.mainElement;
8303
- t.innerText !== "\u7ED3\u675F" && (e.className.includes("fpm__main__end") || e.className.includes("fpm__main__start") && (e.style.transform = "scale(0.8)", t.className.includes("fpm__main-text__show") ? t.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : t.classList.add("fpm__main-text__hide"), setTimeout(() => {
8304
- e.classList.replace("fpm__main__start", "fpm__main__end"), e.style.transform = "scale(1)", t.innerText = "\u7ED3\u675F", t.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8340
+ t.innerText !== this._btnTexts.end && (e.className.includes("fpm__main__end") || e.className.includes("fpm__main__start") && (e.style.transform = "scale(0.8)", t.className.includes("fpm__main-text__show") ? t.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : t.classList.add("fpm__main-text__hide"), setTimeout(() => {
8341
+ e.classList.replace("fpm__main__start", "fpm__main__end"), e.style.transform = "scale(1)", t.innerText = this._btnTexts.end, t.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
8305
8342
  }, 200)));
8306
8343
  }
8307
8344
  }
@@ -8343,12 +8380,17 @@ class vs {
8343
8380
  f(this, "disposers", []);
8344
8381
  f(this, "measureController");
8345
8382
  f(this, "mode");
8383
+ f(this, "_params");
8346
8384
  f(this, "handleExit", () => {
8347
8385
  const t = this.container.querySelector(".fpm__exit-icon"), e = this.container.querySelector(".fpm__exit");
8348
8386
  if (!e || !t)
8349
8387
  throw new Error("cannot find dom");
8350
8388
  this.mode === "pc" && (Object.assign(e.style, Xh), Object.assign(t == null ? void 0 : t.style, Yh));
8351
- const n = () => e.style.opacity = "1", o = () => e.style.opacity = "0.85", s = () => {
8389
+ const n = () => {
8390
+ e.style.opacity = "1";
8391
+ }, o = () => {
8392
+ e.style.opacity = "0.85";
8393
+ }, s = () => {
8352
8394
  this.measureController.disable();
8353
8395
  };
8354
8396
  return e.addEventListener("click", s), e.addEventListener("mouseenter", n), e.addEventListener("mouseleave", o), () => {
@@ -8356,7 +8398,7 @@ class vs {
8356
8398
  };
8357
8399
  });
8358
8400
  var r, a;
8359
- this.measureController = t, this.mode = (r = e.openParams) != null && r.isMobile ? "mobile" : "pc", this.container = document.createElement("div"), this.container.innerHTML = (a = e.openParams) != null && a.isMobile ? Rh : Fh, this.container.classList.add("fpm__ui-controller", this.mode), e.container.appendChild(this.container);
8401
+ this._params = e, this.measureController = t, this.mode = (r = e.openParams) != null && r.isMobile ? "mobile" : "pc", this.container = document.createElement("div"), this.container.innerHTML = (a = e.openParams) != null && a.isMobile ? Rh : Fh, this.container.classList.add("fpm__ui-controller", this.mode), e.container.appendChild(this.container);
8360
8402
  const n = this.container.querySelectorAll(".fpm__text"), o = this.container.querySelector(".fpm_ui-bg"), s = this.container.querySelector(".fpm_operating-space");
8361
8403
  Object.assign(o == null ? void 0 : o.style, Wh), Object.assign(s == null ? void 0 : s.style, Nh), Object.assign(this.container.style, Gh), n.forEach((l) => Object.assign(l.style, Uh));
8362
8404
  }
@@ -8364,7 +8406,7 @@ class vs {
8364
8406
  this.hide(), this.container.remove();
8365
8407
  }
8366
8408
  show() {
8367
- return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new Zh(this.measureController, this.container), this.mainController = new Jh(this.measureController, this.container)) : this.mainController = new Vh(this.measureController, this.container), this.disposers.push(this.handleExit()), this;
8409
+ return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new Zh(this.measureController, this.container), this.mainController = new Jh(this.measureController, this.container, this._params)) : this.mainController = new Vh(this.measureController, this.container, this._params), this.disposers.push(this.handleExit()), this;
8368
8410
  }
8369
8411
  hide() {
8370
8412
  var t, e;
@@ -8377,20 +8419,24 @@ class _h {
8377
8419
  f(this, "textDom", document.createElement("span"));
8378
8420
  f(this, "container", document.createElement("div"));
8379
8421
  f(this, "hasAnchor", !1);
8422
+ f(this, "_params");
8380
8423
  f(this, "onModelChange", (t) => {
8424
+ var e;
8381
8425
  if (t === "Watch") {
8382
8426
  this.textDom.innerText = "";
8383
8427
  return;
8384
8428
  }
8385
- this.textDom.innerText = "\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9";
8429
+ this.textDom.innerText = (e = this._params.firstPointTip) != null ? e : "\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9";
8386
8430
  });
8387
8431
  f(this, "anchorChange", (t) => {
8388
- !this.hasAnchor && !!t ? (this.hasAnchor = !0, this.textDom.innerText = "\u9009\u62E9\u4E0B\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53D6\u6D88\u9009\u62E9") : t || (this.hasAnchor = !1, this.textDom.innerText = "\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9");
8432
+ var e, n;
8433
+ !this.hasAnchor && !!t ? (this.hasAnchor = !0, this.textDom.innerText = (e = this._params.nextPointTip) != null ? e : "\u9009\u62E9\u4E0B\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53D6\u6D88\u9009\u62E9") : t || (this.hasAnchor = !1, this.textDom.innerText = (n = this._params.firstPointTip) != null ? n : "\u8BF7\u9009\u62E9\u7B2C\u4E00\u4E2A\u6D4B\u91CF\u70B9\uFF0CEsc\u6216\u5355\u51FB\u9F20\u6807\u53F3\u952E\u53EF\u53D6\u6D88\u9009\u62E9");
8389
8434
  });
8390
8435
  f(this, "onEditedLineChange", (t) => {
8391
- t.length === 1 && (this.textDom.innerText = "\u53EF\u4EE5\u8FDE\u7EED\u9009\u62E9\u6D4B\u91CF\u70B9\uFF0C\u6216\u70B9\u51FB\u4E0B\u65B9\u201C\u7ED3\u675F\u201D\u6309\u94AE\u5B8C\u6210\u6D4B\u91CF\uFF08Esc\u53D6\u6D88\uFF0CCommand+S\u4FDD\u5B58\uFF09");
8436
+ var e;
8437
+ t.length === 1 && (this.textDom.innerText = (e = this._params.endTip) != null ? e : "\u53EF\u4EE5\u8FDE\u7EED\u9009\u62E9\u6D4B\u91CF\u70B9\uFF0C\u6216\u70B9\u51FB\u4E0B\u65B9\u201C\u7ED3\u675F\u201D\u6309\u94AE\u5B8C\u6210\u6D4B\u91CF\uFF08Esc\u53D6\u6D88\uFF0CCommand+S\u4FDD\u5B58\uFF09");
8392
8438
  });
8393
- this.initDom(), e.container.append(this.container), this.measureController = t, t.hook.on("modeChange", this.onModelChange), t.hook.on("anchorChange", this.anchorChange), t.hook.on("editedLineChange", this.onEditedLineChange);
8439
+ this._params = e, this.initDom(), e.container.append(this.container), this.measureController = t, t.hook.on("modeChange", this.onModelChange), t.hook.on("anchorChange", this.anchorChange), t.hook.on("editedLineChange", this.onEditedLineChange);
8394
8440
  }
8395
8441
  dispose() {
8396
8442
  this.hide(), this.container.remove();
@@ -8402,8 +8448,9 @@ class _h {
8402
8448
  return this.container.style.opacity = "0", this.container.style.transform = "translate(0, -10px)", this.measureController.hook.off("modeChange", this.onModelChange), this.measureController.hook.off("anchorChange", this.anchorChange), this.measureController.hook.off("editedLineChange", this.onEditedLineChange), this;
8403
8449
  }
8404
8450
  initDom() {
8451
+ var n;
8405
8452
  const t = this.container, e = this.textDom;
8406
- t.classList.add("fpm__guide-container"), t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", t.style.width = "100%", t.style.height = "110px", t.style.display = "flex", t.style.alignItems = "center", t.style.justifyContent = "center", t.style.transform = "translate(0, -10px)", t.style.background = "linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.00) 100%)", t.style.transition = "opacity 500ms ease-in-out, transform 500ms ease-in-out", t.style.opacity = "0", e.classList.add("fpm__guide-text"), e.style.color = "#fff", e.style.fontSize = "20px", e.innerText = "\u70B9\u51FB\u4E0B\u65B9\u201C\u5F00\u59CB\u201D\u6309\u94AE\u5F00\u59CB\u6D4B\u8DDD", t.appendChild(e);
8453
+ t.classList.add("fpm__guide-container"), t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", t.style.width = "100%", t.style.height = "110px", t.style.display = "flex", t.style.alignItems = "center", t.style.justifyContent = "center", t.style.transform = "translate(0, -10px)", t.style.background = "linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.00) 100%)", t.style.transition = "opacity 500ms ease-in-out, transform 500ms ease-in-out", t.style.opacity = "0", e.classList.add("fpm__guide-text"), e.style.color = "#fff", e.style.fontSize = "20px", e.innerText = (n = this._params.startTip) != null ? n : "\u70B9\u51FB\u4E0B\u65B9\u201C\u5F00\u59CB\u201D\u6309\u94AE\u5F00\u59CB\u6D4B\u8DDD", t.appendChild(e);
8407
8454
  }
8408
8455
  }
8409
8456
  class qh {
@@ -8551,7 +8598,7 @@ class of {
8551
8598
  const t = this.five.model.intersectRaycaster(this.raycaster)[0];
8552
8599
  return t || null;
8553
8600
  });
8554
- this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = za(G({ isMobile: !0 }, t.openParams.crossHairParameter)), this.fiveHelper = t.fiveHelper, this.container.innerHTML = $h, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new Fn(
8601
+ this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = za(F({ isMobile: !0 }, t.openParams.crossHairParameter)), this.fiveHelper = t.fiveHelper, this.container.innerHTML = $h, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new Fn(
8555
8602
  new Dl(0.04, 0.08, 32),
8556
8603
  new un({ color: 1245179, opacity: 0, side: Wr, transparent: !0 })
8557
8604
  ), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
@@ -8655,9 +8702,9 @@ class sf {
8655
8702
  return a.toFixed(2) + "m";
8656
8703
  }
8657
8704
  };
8658
- this.config = G(G({}, n), ci(e, ["openParams", "magnifierParams"])), this.model = new uo(this.config), this.fiveHelper = new uh(t), this.magnifier = new dh(t, (s = e.magnifierParams) != null ? s : { width: 190, height: 190, scale: 2 }), this.group = new _i(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.background = "rgba(0, 0, 0, 0.15)";
8705
+ this.config = F(F({}, n), ci(e, ["openParams", "magnifierParams"])), this.model = new uo(this.config), this.fiveHelper = new uh(t), this.magnifier = new dh(t, (s = e.magnifierParams) != null ? s : { width: 190, height: 190, scale: 2 }), this.group = new _i(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.background = "rgba(0, 0, 0, 0.15)";
8659
8706
  const o = (r = this.params.openParams) != null ? r : {};
8660
- this.controllerParams = {
8707
+ if (this.controllerParams = {
8661
8708
  five: this.five,
8662
8709
  hook: this.hook,
8663
8710
  group: this.group,
@@ -8667,9 +8714,21 @@ class sf {
8667
8714
  container: this.container,
8668
8715
  fiveHelper: this.fiveHelper,
8669
8716
  openParams: o,
8670
- mouseGroup: za(G({}, o.crossHairParameter)),
8717
+ mouseGroup: za(F({}, o.crossHairParameter)),
8671
8718
  userDistanceItemCreator: this.params.userDistanceItemCreator
8672
- }, this.params.useUIController !== !1 && (this.useUIController = new vs(this, this.controllerParams)), this.params.useGuideController !== !1 && (this.useGuideController = new _h(this, this.controllerParams));
8719
+ }, this.params.useUIController !== !1) {
8720
+ const a = F({
8721
+ container: this.container,
8722
+ openParams: o
8723
+ }, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
8724
+ this.useUIController = new vs(this, a);
8725
+ }
8726
+ if (this.params.useGuideController !== !1) {
8727
+ const a = F({
8728
+ container: this.container
8729
+ }, typeof this.params.useGuideController == "object" ? this.params.useGuideController : {});
8730
+ this.useGuideController = new _h(this, a);
8731
+ }
8673
8732
  }
8674
8733
  appendTo(t) {
8675
8734
  t.append(this.container);
@@ -8712,7 +8771,14 @@ class sf {
8712
8771
  }
8713
8772
  changeIsMobile(t) {
8714
8773
  var e, n;
8715
- ((e = this.controllerParams.openParams) == null ? void 0 : e.isMobile) === void 0 && (this.controllerParams.openParams.isMobile = t), this.controllerParams.openParams.isMobile !== t && (this.controllerParams.openParams.isMobile = t, this.params.useUIController !== !1 && ((n = this.useUIController) == null || n.dispose()), this.useUIController = new vs(this, this.controllerParams));
8774
+ if (((e = this.controllerParams.openParams) == null ? void 0 : e.isMobile) === void 0 && (this.controllerParams.openParams.isMobile = t), this.controllerParams.openParams.isMobile !== t && (this.controllerParams.openParams.isMobile = t, this.params.useUIController !== !1)) {
8775
+ (n = this.useUIController) == null || n.dispose();
8776
+ const o = F({
8777
+ container: this.container,
8778
+ openParams: this.controllerParams.openParams
8779
+ }, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
8780
+ this.useUIController = new vs(this, o);
8781
+ }
8716
8782
  }
8717
8783
  changeConfigs(t) {
8718
8784
  var e;
@@ -9254,7 +9320,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9254
9320
  g.intersectObjects = se, y();
9255
9321
  }, B = () => {
9256
9322
  g.enabled = !0, y();
9257
- }, F = () => {
9323
+ }, G = () => {
9258
9324
  g.enabled = !1, A.$set({ origins: [] }), g.tags.forEach((se) => {
9259
9325
  se.app.$destroy(), se = null;
9260
9326
  }), g.origins = [], g.tags = [];
@@ -9291,7 +9357,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9291
9357
  unfold: S,
9292
9358
  fold: R,
9293
9359
  enable: B,
9294
- disable: F,
9360
+ disable: G,
9295
9361
  hooks: p,
9296
9362
  dispose: ne
9297
9363
  };
@@ -9454,10 +9520,10 @@ function kf(i, t, e) {
9454
9520
  const R = S.map((X) => {
9455
9521
  const ne = v(I, X), W = X.name.length * xf, U = x(X.modelPosition[1], c), ue = (r ? A(I, X) : !0) && !w([ne[0], ne[1] + U], W);
9456
9522
  if (!ue)
9457
- return he(G({}, X), { visible: ue });
9523
+ return he(F({}, X), { visible: ue });
9458
9524
  m.push(ne);
9459
9525
  const me = C(ne);
9460
- return he(G({}, X), {
9526
+ return he(F({}, X), {
9461
9527
  visible: ue,
9462
9528
  transform: me,
9463
9529
  strokeLength: U
@@ -9468,7 +9534,7 @@ function kf(i, t, e) {
9468
9534
  })).sort((X, ne) => X.distance - ne.distance);
9469
9535
  return R.map((X) => {
9470
9536
  const ne = N.findIndex((W) => W.itemLabelItem.id === X.id);
9471
- return ne !== void 0 ? he(G({}, X), { zIndex: ne * 10 }) : X;
9537
+ return ne !== void 0 ? he(F({}, X), { zIndex: ne * 10 }) : X;
9472
9538
  });
9473
9539
  }, y = () => {
9474
9540
  m = [], e(1, h = D(s, h));
@@ -9488,14 +9554,14 @@ function kf(i, t, e) {
9488
9554
  },
9489
9555
  300
9490
9556
  ), j = () => {
9491
- window.addEventListener("resize", F, !1);
9557
+ window.addEventListener("resize", G, !1);
9492
9558
  }, B = () => {
9493
9559
  d !== a && (e(1, h = a), d = a, y());
9494
- }, F = () => {
9560
+ }, G = () => {
9495
9561
  s.once("renderFrame", y);
9496
9562
  };
9497
9563
  wt(() => {
9498
- s.off("cameraUpdate", L), window.removeEventListener("resize", F, !1);
9564
+ s.off("cameraUpdate", L), window.removeEventListener("resize", G, !1);
9499
9565
  });
9500
9566
  function Y() {
9501
9567
  u = this.clientWidth, p = this.clientHeight, e(2, u), e(3, p);
@@ -9535,7 +9601,7 @@ class Df extends oe {
9535
9601
  }
9536
9602
  }
9537
9603
  function Lf(i) {
9538
- return i.model_item_labels.map((t) => G({
9604
+ return i.model_item_labels.map((t) => F({
9539
9605
  modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
9540
9606
  }, t));
9541
9607
  }
@@ -9706,7 +9772,7 @@ const dA = (i, { videoElement: t }) => {
9706
9772
  side: E.DoubleSide
9707
9773
  }), B = new E.Mesh(w, j);
9708
9774
  B.renderOrder = 1, B.name = `ModelTVVideoPlugin-${C}-${performance.now()}`;
9709
- const F = [v[1], v[2], v[3], v[0]], Y = n.create3DDomContainer(F);
9775
+ const G = [v[1], v[2], v[3], v[0]], Y = n.create3DDomContainer(G);
9710
9776
  if (Y != null && Y.container) {
9711
9777
  const I = document.createElement("div");
9712
9778
  I.classList.add("play-icon"), I.style.width = "100%", I.style.height = "100%", I.style.display = "flex", I.style.justifyContent = "center", I.style.alignItems = "center", I.style.pointerEvents = "none", Y.container.appendChild(I);
@@ -9921,7 +9987,7 @@ const Hf = (i, t) => {
9921
9987
  }
9922
9988
  }, Of = (i) => `translate(${i[0]}px, ${i[1]}px)`;
9923
9989
  function Ms(i) {
9924
- return i.map((t) => G({
9990
+ return i.map((t) => F({
9925
9991
  observerIndex: void 0,
9926
9992
  visible: !1,
9927
9993
  isFold: !1
@@ -10051,15 +10117,15 @@ function Wf(i, t, e) {
10051
10117
  }, D = (R, N) => {
10052
10118
  const X = N.map((W) => {
10053
10119
  if (R.state.panoIndex !== W.panoIndex)
10054
- return he(G({}, W), { visible: !1 });
10120
+ return he(F({}, W), { visible: !1 });
10055
10121
  const U = x(R, W);
10056
10122
  W.name.length * Nf;
10057
10123
  const de = Hf(W.modelPosition[1], c), ue = R.currentMode === Be.Mode.Panorama ? w(new o(W.position[0], W.position[1], W.position[2])) : !0, me = r ? C(R, W) : !1, we = ue && !me;
10058
10124
  if (!we)
10059
- return he(G({}, W), { visible: we });
10125
+ return he(F({}, W), { visible: we });
10060
10126
  A.push(U);
10061
10127
  const ke = Of(U);
10062
- return he(G({}, W), {
10128
+ return he(F({}, W), {
10063
10129
  visible: we,
10064
10130
  transform: ke,
10065
10131
  strokeLength: de
@@ -10070,7 +10136,7 @@ function Wf(i, t, e) {
10070
10136
  })).sort((W, U) => W.distance - U.distance);
10071
10137
  return X.map((W) => {
10072
10138
  const U = ne.findIndex((de) => de.itemLabelItem.id === W.id);
10073
- return U !== void 0 ? he(G({}, W), { zIndex: U * 10 }) : W;
10139
+ return U !== void 0 ? he(F({}, W), { zIndex: U * 10 }) : W;
10074
10140
  });
10075
10141
  }, y = () => {
10076
10142
  A = [], e(1, u = D(s, u));
@@ -10085,7 +10151,7 @@ function Wf(i, t, e) {
10085
10151
  s.once("renderFrame", y);
10086
10152
  }, B = () => {
10087
10153
  window.addEventListener("resize", j, !1);
10088
- }, F = () => {
10154
+ }, G = () => {
10089
10155
  h !== a && (e(1, u = Ms(a)), h = a, y());
10090
10156
  }, Y = (R, N) => {
10091
10157
  let X = [];
@@ -10112,20 +10178,20 @@ function Wf(i, t, e) {
10112
10178
  longitude: Math.PI + Math.atan2(U.x, U.z),
10113
10179
  latitude: Math.acos(U.y / U.length()) - Math.PI / 2
10114
10180
  };
10115
- s.setState(he(G({}, de), {
10181
+ s.setState(he(F({}, de), {
10116
10182
  mode: Be.Mode.Panorama,
10117
10183
  panoIndex: R.observerIndex
10118
10184
  })), s.once("initAnimationEnded", () => {
10119
- e(1, u = u.map((ue) => he(G({}, ue), {
10185
+ e(1, u = u.map((ue) => he(F({}, ue), {
10120
10186
  isFold: ue.id !== R.id
10121
10187
  }))), s.once("cameraUpdate", () => {
10122
- e(1, u = u.map((ue) => he(G({}, ue), { isFold: !1 })));
10188
+ e(1, u = u.map((ue) => he(F({}, ue), { isFold: !1 })));
10123
10189
  });
10124
10190
  });
10125
10191
  }
10126
10192
  };
10127
10193
  eo(() => {
10128
- F();
10194
+ G();
10129
10195
  }), Ye(() => {
10130
10196
  e(1, u = Ms(a)), h = a, y(), B(), s.on("cameraUpdate", L);
10131
10197
  }), wt(() => {
@@ -10174,7 +10240,7 @@ class Xf extends oe {
10174
10240
  }
10175
10241
  }
10176
10242
  function Yf(i) {
10177
- return i.item_labels.map((t) => he(G({}, t), {
10243
+ return i.item_labels.map((t) => he(F({}, t), {
10178
10244
  modelPosition: [t.position[0], t.position[1], t.position[2]],
10179
10245
  observerIndex: void 0
10180
10246
  }));
@@ -10265,18 +10331,18 @@ class Jf extends di {
10265
10331
  this.five = e, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
10266
10332
  }
10267
10333
  enable(e) {
10268
- this.enabled = !0, this.updateState(he(G({}, e), { userAction: !0 }));
10334
+ this.enabled = !0, this.updateState(he(F({}, e), { userAction: !0 }));
10269
10335
  }
10270
10336
  disable(e) {
10271
- this.enabled = !1, this.updateState(he(G({}, e), { userAction: !0 }));
10337
+ this.enabled = !1, this.updateState(he(F({}, e), { userAction: !0 }));
10272
10338
  }
10273
10339
  show(e) {
10274
10340
  if (!!this.state.enabled)
10275
- return this.setState(he(G({}, this.state), { visible: !0 }), e), Promise.resolve();
10341
+ return this.setState(he(F({}, this.state), { visible: !0 }), e), Promise.resolve();
10276
10342
  }
10277
10343
  hide(e) {
10278
10344
  if (!!this.state.enabled)
10279
- return this.setState(he(G({}, this.state), { visible: !1 }), e), Promise.resolve();
10345
+ return this.setState(he(F({}, this.state), { visible: !1 }), e), Promise.resolve();
10280
10346
  }
10281
10347
  dispose() {
10282
10348
  this.container.remove();
@@ -10284,8 +10350,8 @@ class Jf extends di {
10284
10350
  setState(e, n) {
10285
10351
  if (!this.enabled)
10286
10352
  return;
10287
- const o = G({}, this.state);
10288
- this.state = G(G(G({}, this.state), e), n), this.stateChangedCallback(o, n);
10353
+ const o = F({}, this.state);
10354
+ this.state = F(F(F({}, this.state), e), n), this.stateChangedCallback(o, n);
10289
10355
  }
10290
10356
  get visible() {
10291
10357
  return this.five.state.mode === Be.Mode.Panorama;
@@ -10294,7 +10360,7 @@ class Jf extends di {
10294
10360
  !this.enabled || (this.container = e, this.render());
10295
10361
  }
10296
10362
  updateState(e) {
10297
- this.setState(he(G({}, this.state), { enabled: this.enabled, visible: this.visible }), e);
10363
+ this.setState(he(F({}, this.state), { enabled: this.enabled, visible: this.visible }), e);
10298
10364
  }
10299
10365
  }
10300
10366
  function Vf(i) {
@@ -10448,15 +10514,15 @@ class im extends Jf {
10448
10514
  const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new Z()), l = [], c = [...this.labelItems];
10449
10515
  if (c.forEach((y, L) => {
10450
10516
  if (y.visible) {
10451
- const P = n.position.distanceTo(y.position), j = y.position.clone().add(new Z(0, this.OffsetHeight, 0)), F = j.clone().sub(n.position).normalize().angleTo(a), Y = j.clone().project(n), I = (Y.x + 1) / 2.2 * 100, S = (-Y.y + 1) / 2.2 * 100, R = I >= 0 && I <= 100 && S >= 0 && S <= 100 && P > this.MinVisibledistance && P <= this.MaxVisibledistance;
10452
- y.left = I, y.top = S, y.inSight = R && F < Math.PI / 2, y.cameraToward = $f(this.five), R ? l.push({ disFromCameraToLabel: P, left: I, top: S, index: L }) : y.transform = "translate(-50%, -50%)";
10517
+ const P = n.position.distanceTo(y.position), j = y.position.clone().add(new Z(0, this.OffsetHeight, 0)), G = j.clone().sub(n.position).normalize().angleTo(a), Y = j.clone().project(n), I = (Y.x + 1) / 2.2 * 100, S = (-Y.y + 1) / 2.2 * 100, R = I >= 0 && I <= 100 && S >= 0 && S <= 100 && P > this.MinVisibledistance && P <= this.MaxVisibledistance;
10518
+ y.left = I, y.top = S, y.inSight = R && G < Math.PI / 2, y.cameraToward = $f(this.five), R ? l.push({ disFromCameraToLabel: P, left: I, top: S, index: L }) : y.transform = "translate(-50%, -50%)";
10453
10519
  } else
10454
10520
  y.inSight = !1;
10455
10521
  }), l.length > 1) {
10456
10522
  let y = 0;
10457
10523
  l.sort((L, P) => P.disFromCameraToLabel - L.disFromCameraToLabel);
10458
10524
  for (let L = 1; L < l.length; L++) {
10459
- const { index: P, left: j, top: B } = l[L - 1], { index: F, left: Y, top: I } = l[L], S = this.container.children[P], R = this.container.children[F];
10525
+ const { index: P, left: j, top: B } = l[L - 1], { index: G, left: Y, top: I } = l[L], S = this.container.children[P], R = this.container.children[G];
10460
10526
  if (!S || !R)
10461
10527
  return;
10462
10528
  const N = {
@@ -10470,7 +10536,7 @@ class im extends Jf {
10470
10536
  width: (C = (v = (A = R.children) == null ? void 0 : A[0]) == null ? void 0 : v.clientWidth) != null ? C : 0,
10471
10537
  height: (D = (x = (w = R.children) == null ? void 0 : w[0]) == null ? void 0 : x.clientHeight) != null ? D : 0
10472
10538
  };
10473
- Kf(N, X) && (y++, c[P].transform = `translate(-50%, ${(y - 1) * 100 - 50}%)`, c[F].transform = `translate(-50%, ${y * 100 - 50}%)`);
10539
+ Kf(N, X) && (y++, c[P].transform = `translate(-50%, ${(y - 1) * 100 - 50}%)`, c[G].transform = `translate(-50%, ${y * 100 - 50}%)`);
10474
10540
  }
10475
10541
  }
10476
10542
  this.labelItems = c, this.render();
@@ -10522,7 +10588,7 @@ class im extends Jf {
10522
10588
  toward: tm(d.rad)
10523
10589
  });
10524
10590
  });
10525
- }), this.labelItems = this.doorLabels.map((r) => he(G({}, r), {
10591
+ }), this.labelItems = this.doorLabels.map((r) => he(F({}, r), {
10526
10592
  left: 0,
10527
10593
  top: 0,
10528
10594
  visible: !1,
@@ -10599,8 +10665,8 @@ function lm(i, t) {
10599
10665
  if (B.equals(d[L]))
10600
10666
  L += 1;
10601
10667
  else {
10602
- const F = new Z().subVectors(d[L + 1], d[L]), Y = new Z().subVectors(B, d[L]);
10603
- F.angleTo(Y) < Math.PI / 2 && (L += 1);
10668
+ const G = new Z().subVectors(d[L + 1], d[L]), Y = new Z().subVectors(B, d[L]);
10669
+ G.angleTo(Y) < Math.PI / 2 && (L += 1);
10604
10670
  }
10605
10671
  }
10606
10672
  if (y < L || y - L <= 1)
@@ -10701,8 +10767,8 @@ class Ga extends Ot {
10701
10767
  var s;
10702
10768
  if (this.state.disposed)
10703
10769
  return this.disposedErrorLog();
10704
- const o = G({}, this.state);
10705
- this.state = G(G({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), qe(o, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 }), this.five.needsRender = !0);
10770
+ const o = F({}, this.state);
10771
+ this.state = F(F({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), qe(o, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 }), this.five.needsRender = !0);
10706
10772
  }
10707
10773
  handleEnable(e, n = !0) {
10708
10774
  this.linesGroup && (e ? (this.five.scene.add(this.linesGroup), this.actionWhenEnabled(() => this.hooks.emit("enable", { userAction: n }))) : (this.five.scene.remove(this.linesGroup), this.hooks.emit("disable", { userAction: n })));
@@ -10871,7 +10937,7 @@ class Xa extends Ot {
10871
10937
  this.state.playing && this.setState({ playing: !1 }, { userAction: s }), this.setState({ playing: !0 }, { userAction: s, playFromIndex: n, playFromId: o });
10872
10938
  }
10873
10939
  playFromStart(e) {
10874
- return this.playFrom(he(G({}, e), { index: 0 }));
10940
+ return this.playFrom(he(F({}, e), { index: 0 }));
10875
10941
  }
10876
10942
  pause(e) {
10877
10943
  this.setState({ playing: !1 }, e);
@@ -10901,8 +10967,8 @@ class Xa extends Ot {
10901
10967
  return Os();
10902
10968
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
10903
10969
  return bm();
10904
- const o = G({}, this.state);
10905
- this.state = G(G({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), e.playing !== void 0 && e.playing !== o.playing && this.changePlayState(e.playing, n), e.speed !== void 0 && e.speed !== o.speed && this.changeSpeed(e.speed, n == null ? void 0 : n.userAction), qe(o, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 });
10970
+ const o = F({}, this.state);
10971
+ this.state = F(F({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), e.playing !== void 0 && e.playing !== o.playing && this.changePlayState(e.playing, n), e.speed !== void 0 && e.speed !== o.speed && this.changeSpeed(e.speed, n == null ? void 0 : n.userAction), qe(o, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 });
10906
10972
  }
10907
10973
  formatData(e) {
10908
10974
  return J(this, null, function* () {
@@ -10917,7 +10983,7 @@ class Xa extends Ot {
10917
10983
  keyframes: o.keyframes.map((s, r) => {
10918
10984
  var c;
10919
10985
  const a = o.keyframes[r + 1], l = (() => !a || a.start === void 0 || s.end === void 0 ? 0 : a.start - s.end)();
10920
- return G({ id: (c = s.uuid) != null ? c : Fe(), moveIndex: r, stay: l, index: r }, s);
10986
+ return F({ id: (c = s.uuid) != null ? c : Fe(), moveIndex: r, stay: l, index: r }, s);
10921
10987
  })
10922
10988
  };
10923
10989
  if (o.panoIndexList) {
@@ -10938,9 +11004,9 @@ class Xa extends Ot {
10938
11004
  o.moveType === void 0 || o.moveType === "justMove" ? s.push({
10939
11005
  moveIndex: c,
10940
11006
  stay: o.stay,
10941
- data: G({ effect: "Move", panoIndex: l, moveEffect: r }, d != null ? d : {})
10942
- }) : o.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: o.stay, data: { effect: "Move", panoIndex: l, moveEffect: r } }), d && s.push({ moveIndex: c, stay: o.stay, data: G({ effect: "Rotate", panoIndex: l }, d) }));
10943
- }), { keyframesId: Fe(), keyframes: s.map((l, c) => G({ id: Fe(), index: c }, l)) };
11007
+ data: F({ effect: "Move", panoIndex: l, moveEffect: r }, d != null ? d : {})
11008
+ }) : o.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: o.stay, data: { effect: "Move", panoIndex: l, moveEffect: r } }), d && s.push({ moveIndex: c, stay: o.stay, data: F({ effect: "Rotate", panoIndex: l }, d) }));
11009
+ }), { keyframesId: Fe(), keyframes: s.map((l, c) => F({ id: Fe(), index: c }, l)) };
10944
11010
  } else
10945
11011
  throw new Error("format error: data no keyframes or no panoIndexList");
10946
11012
  });
@@ -11543,7 +11609,7 @@ function zm() {
11543
11609
  }
11544
11610
  const Xs = zm();
11545
11611
  function Mm(i) {
11546
- ae(i, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
11612
+ ae(i, "svelte-zgfkts", ".text-char.svelte-zgfkts{text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
11547
11613
  }
11548
11614
  function Ys(i, t, e) {
11549
11615
  const n = i.slice();
@@ -11554,7 +11620,7 @@ function Us(i) {
11554
11620
  const s = () => i[6](t, o), r = () => i[6](null, o);
11555
11621
  return {
11556
11622
  c() {
11557
- t = Q("span"), n = xe(e), b(t, "class", "text-char svelte-1b2n9wi");
11623
+ t = Q("span"), n = xe(e), b(t, "class", "text-char svelte-zgfkts");
11558
11624
  },
11559
11625
  m(a, l) {
11560
11626
  T(a, t, l), H(t, n), s();
@@ -11619,7 +11685,7 @@ function Bm(i, t, e) {
11619
11685
  return m;
11620
11686
  })();
11621
11687
  d = wo({
11622
- targets: c.filter(Bt).slice(0, p),
11688
+ targets: c.slice(0, p).filter(Bt),
11623
11689
  autoplay: !1,
11624
11690
  duration: 400,
11625
11691
  scale: [0.7, 1],
@@ -11641,7 +11707,7 @@ function Bm(i, t, e) {
11641
11707
  }, i.$$.update = () => {
11642
11708
  i.$$.dirty & 16 && e(1, n = (() => {
11643
11709
  const p = [], m = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu")), g = `__EMOJI_SPLIT_${Xs}__`, A = `__EMOJI_${Xs}__`;
11644
- return r.slice().replace(m, (v) => `${g}${A}${v}${g}`).split(g).forEach((v) => v.startsWith(A) ? p.push(v.slice(A.length)) : p.push(...v.split(""))), p.filter(Boolean);
11710
+ return r.slice().replace(m, (v) => `${g}${A}${v}${g}`).split(g).forEach((v) => v.startsWith(A) ? p.push(v.slice(A.length)) : p.push(...v.split(""))), p;
11645
11711
  })()), i.$$.dirty & 32 && h(a);
11646
11712
  }, [c, n, o, s, r, a, u];
11647
11713
  }
@@ -12405,7 +12471,7 @@ function ap(i) {
12405
12471
  let t, e, n, o, s, r, a = Xi(i[2]), l, c = Ui(i[2]), d, h = Yi(i[2]), u, p, m;
12406
12472
  const g = i[12]["container-start"], A = xt(g, i, i[11], sr), v = i[12]["wrapper-start"], C = xt(v, i, i[11], or), w = i[12].default, x = xt(w, i, i[11], ir), D = i[12]["wrapper-end"], y = xt(D, i, i[11], nr);
12407
12473
  let L = a && rr(i), P = c && ar(i), j = h && lr(i);
12408
- const B = i[12]["container-end"], F = xt(B, i, i[11], tr);
12474
+ const B = i[12]["container-end"], G = xt(B, i, i[11], tr);
12409
12475
  let Y = [
12410
12476
  {
12411
12477
  class: p = oi(`${i[1]}${i[0] ? ` ${i[0]}` : ""}`)
@@ -12416,10 +12482,10 @@ function ap(i) {
12416
12482
  I = ye(I, Y[S]);
12417
12483
  return {
12418
12484
  c() {
12419
- t = Q("div"), A && A.c(), e = V(), n = Q("div"), C && C.c(), o = V(), x && x.c(), s = V(), y && y.c(), r = V(), L && L.c(), l = V(), P && P.c(), d = V(), j && j.c(), u = V(), F && F.c(), b(n, "class", "swiper-wrapper"), Vn(t, I);
12485
+ t = Q("div"), A && A.c(), e = V(), n = Q("div"), C && C.c(), o = V(), x && x.c(), s = V(), y && y.c(), r = V(), L && L.c(), l = V(), P && P.c(), d = V(), j && j.c(), u = V(), G && G.c(), b(n, "class", "swiper-wrapper"), Vn(t, I);
12420
12486
  },
12421
12487
  m(S, R) {
12422
- T(S, t, R), A && A.m(t, null), H(t, e), H(t, n), C && C.m(n, null), H(n, o), x && x.m(n, null), H(n, s), y && y.m(n, null), H(t, r), L && L.m(t, null), H(t, l), P && P.m(t, null), H(t, d), j && j.m(t, null), H(t, u), F && F.m(t, null), i[17](t), m = !0;
12488
+ T(S, t, R), A && A.m(t, null), H(t, e), H(t, n), C && C.m(n, null), H(n, o), x && x.m(n, null), H(n, s), y && y.m(n, null), H(t, r), L && L.m(t, null), H(t, l), P && P.m(t, null), H(t, d), j && j.m(t, null), H(t, u), G && G.m(t, null), i[17](t), m = !0;
12423
12489
  },
12424
12490
  p(S, [R]) {
12425
12491
  A && A.p && (!m || R & 2560) && Dt(
@@ -12450,8 +12516,8 @@ function ap(i) {
12450
12516
  S[11],
12451
12517
  m ? kt(D, S[11], R, ip) : Lt(S[11]),
12452
12518
  nr
12453
- ), R & 4 && (a = Xi(S[2])), a ? L ? L.p(S, R) : (L = rr(S), L.c(), L.m(t, l)) : L && (L.d(1), L = null), R & 4 && (c = Ui(S[2])), c ? P ? P.p(S, R) : (P = ar(S), P.c(), P.m(t, d)) : P && (P.d(1), P = null), R & 4 && (h = Yi(S[2])), h ? j ? j.p(S, R) : (j = lr(S), j.c(), j.m(t, u)) : j && (j.d(1), j = null), F && F.p && (!m || R & 2560) && Dt(
12454
- F,
12519
+ ), R & 4 && (a = Xi(S[2])), a ? L ? L.p(S, R) : (L = rr(S), L.c(), L.m(t, l)) : L && (L.d(1), L = null), R & 4 && (c = Ui(S[2])), c ? P ? P.p(S, R) : (P = ar(S), P.c(), P.m(t, d)) : P && (P.d(1), P = null), R & 4 && (h = Yi(S[2])), h ? j ? j.p(S, R) : (j = lr(S), j.c(), j.m(t, u)) : j && (j.d(1), j = null), G && G.p && (!m || R & 2560) && Dt(
12520
+ G,
12455
12521
  B,
12456
12522
  S,
12457
12523
  S[11],
@@ -12463,13 +12529,13 @@ function ap(i) {
12463
12529
  ]));
12464
12530
  },
12465
12531
  i(S) {
12466
- m || (k(A, S), k(C, S), k(x, S), k(y, S), k(F, S), m = !0);
12532
+ m || (k(A, S), k(C, S), k(x, S), k(y, S), k(G, S), m = !0);
12467
12533
  },
12468
12534
  o(S) {
12469
- M(A, S), M(C, S), M(x, S), M(y, S), M(F, S), m = !1;
12535
+ M(A, S), M(C, S), M(x, S), M(y, S), M(G, S), m = !1;
12470
12536
  },
12471
12537
  d(S) {
12472
- S && z(t), A && A.d(S), C && C.d(S), x && x.d(S), y && y.d(S), L && L.d(), P && P.d(), j && j.d(), F && F.d(S), i[17](null);
12538
+ S && z(t), A && A.d(S), C && C.d(S), x && x.d(S), y && y.d(S), L && L.d(), P && P.d(), j && j.d(), G && G.d(S), i[17](null);
12473
12539
  }
12474
12540
  };
12475
12541
  }
@@ -12542,7 +12608,7 @@ function lp(i, t, e) {
12542
12608
  }), wt(() => {
12543
12609
  typeof window != "undefined" && h && !h.destroyed && h.destroy(!0, !1);
12544
12610
  });
12545
- function F(N) {
12611
+ function G(N) {
12546
12612
  ze[N ? "unshift" : "push"](() => {
12547
12613
  C = N, e(5, C);
12548
12614
  });
@@ -12583,7 +12649,7 @@ function lp(i, t, e) {
12583
12649
  L,
12584
12650
  r,
12585
12651
  s,
12586
- F,
12652
+ G,
12587
12653
  Y,
12588
12654
  I,
12589
12655
  S,
@@ -13192,18 +13258,18 @@ function Dp(i, t, e) {
13192
13258
  var N, X, ne;
13193
13259
  if (!s || !v.autoplayVideo)
13194
13260
  return;
13195
- const F = B.detail[0];
13196
- if (!F)
13261
+ const G = B.detail[0];
13262
+ if (!G)
13197
13263
  return;
13198
- const Y = F.realIndex;
13264
+ const Y = G.realIndex;
13199
13265
  if (Y === L)
13200
13266
  return;
13201
13267
  e(12, L = Y);
13202
13268
  const I = o[Y];
13203
13269
  if (!I || I.type !== "Video")
13204
13270
  return;
13205
- F.autoplay.stop(), F.slides.map((W) => W.querySelector("video")).filter(Bt).forEach((W) => W.pause());
13206
- const R = (N = F.slides[F.activeIndex]) == null ? void 0 : N.querySelector("video");
13271
+ G.autoplay.stop(), G.slides.map((W) => W.querySelector("video")).filter(Bt).forEach((W) => W.pause());
13272
+ const R = (N = G.slides[G.activeIndex]) == null ? void 0 : N.querySelector("video");
13207
13273
  if (R && (R.removeEventListener("play", D), R.removeEventListener("pause", y), R.addEventListener("play", D), R.addEventListener("pause", y)), R) {
13208
13274
  R.addEventListener("click", () => R.pause());
13209
13275
  const W = (ne = (X = R.parentElement) == null ? void 0 : X.getElementsByClassName("video-play-button-container")) == null ? void 0 : ne[0];
@@ -13214,9 +13280,9 @@ function Dp(i, t, e) {
13214
13280
  "tag" in B && e(17, r = B.tag), "mediaData" in B && e(0, a = B.mediaData), "inDelay" in B && e(1, l = B.inDelay), "outDelay" in B && e(2, c = B.outDelay), "duration" in B && e(3, d = B.duration), "unfolded" in B && e(4, h = B.unfolded), "animation" in B && e(5, u = B.animation), "playButtonIfNeed" in B && e(6, p = B.playButtonIfNeed), "canPlay" in B && e(7, m = B.canPlay), "objectFit" in B && e(8, g = B.objectFit), "enableCarousel" in B && e(18, A = B.enableCarousel), "autoplayConfig" in B && e(9, v = B.autoplayConfig);
13215
13281
  }, i.$$.update = () => {
13216
13282
  i.$$.dirty & 262145 && e(13, n = A && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && v.autoplay), i.$$.dirty & 1024 && x && x.slides.forEach((B) => {
13217
- const F = B.querySelector("video");
13218
- F && C.subscribe(({ currentMediaUrl: Y }) => {
13219
- Y !== F.src && F.pause();
13283
+ const G = B.querySelector("video");
13284
+ G && C.subscribe(({ currentMediaUrl: Y }) => {
13285
+ Y !== G.src && G.pause();
13220
13286
  });
13221
13287
  });
13222
13288
  }, [
@@ -13583,7 +13649,7 @@ function kr(i) {
13583
13649
  };
13584
13650
  }
13585
13651
  function Bp(i) {
13586
- var F, Y;
13652
+ var G, Y;
13587
13653
  let t, e, n, o, s, r, a, l, c, d, h, u, p, m, g = i[2].title + "", A, v, C, w, x;
13588
13654
  e = new Je({
13589
13655
  props: {
@@ -13601,7 +13667,7 @@ function Bp(i) {
13601
13667
  let L = i[2].tags || [], P = [];
13602
13668
  for (let I = 0; I < L.length; I += 1)
13603
13669
  P[I] = Pr(br(i, L, I));
13604
- let j = ((F = i[2].price) == null ? void 0 : F.value) !== void 0 && ((Y = i[2].price) == null ? void 0 : Y.value) !== null && Ir(i), B = i[2].highlightText && kr(i);
13670
+ let j = ((G = i[2].price) == null ? void 0 : G.value) !== void 0 && ((Y = i[2].price) == null ? void 0 : Y.value) !== null && Ir(i), B = i[2].highlightText && kr(i);
13605
13671
  return {
13606
13672
  c() {
13607
13673
  var I, S;
@@ -13754,13 +13820,13 @@ function Op(i, t, e) {
13754
13820
  A !== r && (h == null || h.pause());
13755
13821
  });
13756
13822
  function p(A) {
13757
- d.set({ currentMediaUrl: r }), h && (c.emit("click", G({
13823
+ d.set({ currentMediaUrl: r }), h && (c.emit("click", F({
13758
13824
  event: A,
13759
13825
  target: "AudioTagPlayIcon",
13760
13826
  audioInstance: h
13761
13827
  }, l)), h.paused ? h.play() : h.pause(), e(
13762
13828
  5,
13763
- h.onplay = (v) => c.emit("playStateChange", G({
13829
+ h.onplay = (v) => c.emit("playStateChange", F({
13764
13830
  event: v,
13765
13831
  state: "playing",
13766
13832
  mediaInstance: h
@@ -13768,7 +13834,7 @@ function Op(i, t, e) {
13768
13834
  h
13769
13835
  ), e(
13770
13836
  5,
13771
- h.onpause = (v) => c.emit("playStateChange", G({
13837
+ h.onpause = (v) => c.emit("playStateChange", F({
13772
13838
  event: v,
13773
13839
  state: "paused",
13774
13840
  mediaInstance: h
@@ -13872,8 +13938,8 @@ function zr(i) {
13872
13938
  L & 32 && (j.unfolded = y[5]), L & 24 && (j.outDelay = y[4] + 20 * Math.min((I = (Y = y[3][0]) == null ? void 0 : Y.content.length) != null ? I : 10, 15)), s.$set(j), L & 4 && O(o, "width", y[2] + "px");
13873
13939
  const B = {};
13874
13940
  L & 32 && (B.unfolded = y[5]), L & 1 && (B.url = y[0].data.audioUrl), L & 8 && (B.outDelay = 20 * Math.min((R = (S = y[3][0]) == null ? void 0 : S.content.length) != null ? R : 10, 15)), L & 1 && (B.hooksInfo = { tag: y[0] }), d.$set(B);
13875
- const F = {};
13876
- L & 32 && (F.visible = y[5]), L & 2 && (F.textUnfolded = y[1]), L & 8 && (F.textItems = y[3]), p.$set(F), (!g || L & 32) && _(t, "unfolded", y[5]);
13941
+ const G = {};
13942
+ L & 32 && (G.visible = y[5]), L & 2 && (G.textUnfolded = y[1]), L & 8 && (G.textItems = y[3]), p.$set(G), (!g || L & 32) && _(t, "unfolded", y[5]);
13877
13943
  },
13878
13944
  i(y) {
13879
13945
  g || (k(e.$$.fragment, y), k(s.$$.fragment, y), k(d.$$.fragment, y), k(p.$$.fragment, y), g = !0);
@@ -15366,7 +15432,7 @@ class Gg extends Og {
15366
15432
  f(this, "disposedErrorLog", () => {
15367
15433
  console.error(`${Ji} is disposed`);
15368
15434
  });
15369
- this.params = G({
15435
+ this.params = F({
15370
15436
  debug: !1,
15371
15437
  mergePluginDefaultConfigToLoadDataConfig: !1,
15372
15438
  config: this.config,
@@ -15394,8 +15460,8 @@ class Gg extends Og {
15394
15460
  addTag(e, n) {
15395
15461
  const s = (Array.isArray(e) ? e : [e]).map((r) => {
15396
15462
  const a = this.getTagConfig(r);
15397
- return he(G({}, r), {
15398
- state: G({ visible: void 0, unfolded: Fg }, a.initialState),
15463
+ return he(F({}, r), {
15464
+ state: F({ visible: void 0, unfolded: Fg }, a.initialState),
15399
15465
  hooks: new nt(),
15400
15466
  clickable: a.clickable
15401
15467
  });
@@ -15446,7 +15512,7 @@ class Gg extends Og {
15446
15512
  setState(e, n) {
15447
15513
  if (this.store.disposed)
15448
15514
  return this.disposedErrorLog();
15449
- const { userAction: o = !0, visibleWithAnimation: s = !1 } = n, r = G({}, this.state);
15515
+ const { userAction: o = !0, visibleWithAnimation: s = !1 } = n, r = F({}, this.state);
15450
15516
  this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: o });
15451
15517
  }
15452
15518
  changeTagNormalById(e, n) {
@@ -15535,7 +15601,7 @@ class Gg extends Og {
15535
15601
  handleFiveWantsMoveToPano() {
15536
15602
  this.tags.forEach((e) => {
15537
15603
  const n = this.getTagConfig(e);
15538
- typeof n.visibleConfig == "object" && n.visibleConfig.keep ? e.temporaryState = he(G({}, e.temporaryState), { visible: n.visibleConfig.keep === "visible" }) : typeof n.visibleConfig == "object" && n.visibleConfig.alwaysShowWhenMovePano ? e.temporaryState = he(G({}, e.temporaryState), { visible: !0 }) : e.temporaryState = he(G({}, e.temporaryState), { visible: !1 });
15604
+ typeof n.visibleConfig == "object" && n.visibleConfig.keep ? e.temporaryState = he(F({}, e.temporaryState), { visible: n.visibleConfig.keep === "visible" }) : typeof n.visibleConfig == "object" && n.visibleConfig.alwaysShowWhenMovePano ? e.temporaryState = he(F({}, e.temporaryState), { visible: !0 }) : e.temporaryState = he(F({}, e.temporaryState), { visible: !1 });
15539
15605
  }), this.updateRenderAllTags();
15540
15606
  }
15541
15607
  temporaryShow() {
@@ -15583,7 +15649,7 @@ class Gg extends Og {
15583
15649
  handleFivePanoArrived() {
15584
15650
  return J(this, null, function* () {
15585
15651
  yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
15586
- e.temporaryState = he(G({}, e.temporaryState), { visible: !0 });
15652
+ e.temporaryState = he(F({}, e.temporaryState), { visible: !0 });
15587
15653
  }), this.updateRenderAllTags();
15588
15654
  });
15589
15655
  }
@@ -15816,7 +15882,7 @@ function _g(i, t) {
15816
15882
  return i;
15817
15883
  }
15818
15884
  function qg(i) {
15819
- const t = Mt(G({
15885
+ const t = Mt(F({
15820
15886
  position: "absolute",
15821
15887
  display: "block",
15822
15888
  borderRadius: "4px",
@@ -16008,7 +16074,7 @@ function $g() {
16008
16074
  ] };
16009
16075
  }
16010
16076
  function ht(i) {
16011
- const t = Mt(G({
16077
+ const t = Mt(F({
16012
16078
  background: "#FFFFFF",
16013
16079
  width: "9px",
16014
16080
  height: "9px",
@@ -16628,14 +16694,14 @@ class a0 {
16628
16694
  return o0();
16629
16695
  if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
16630
16696
  return r0();
16631
- const n = G({}, this.state);
16632
- this.state = G(G({}, this.state), t), t.disposed !== void 0 && t.disposed !== n.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: n });
16697
+ const n = F({}, this.state);
16698
+ this.state = F(F({}, this.state), t), t.disposed !== void 0 && t.disposed !== n.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: n });
16633
16699
  }
16634
16700
  addControllers(t) {
16635
- this.controllers = G(G({}, this.controllers), t), this.addEventListener(), this.setState(this.state);
16701
+ this.controllers = F(F({}, this.controllers), t), this.addEventListener(), this.setState(this.state);
16636
16702
  }
16637
16703
  addHelpers(t) {
16638
- this.helpers = G(G({}, this.helpers), t);
16704
+ this.helpers = F(F({}, this.helpers), t);
16639
16705
  }
16640
16706
  getCurrentState() {
16641
16707
  return this.state;
@@ -16876,34 +16942,34 @@ class c0 extends po {
16876
16942
  const a = e.ray.intersectPlane(s, new Z());
16877
16943
  if (!a || Vg(a, this.camera.position))
16878
16944
  return;
16879
- const l = new Z().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, h = new Z().subVectors(r[1], r[0]), u = new Z().subVectors(r[3], r[0]), p = (F) => {
16945
+ const l = new Z().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, h = new Z().subVectors(r[1], r[0]), u = new Z().subVectors(r[3], r[0]), p = (G) => {
16880
16946
  const Y = new Z(0, 0, 0);
16881
16947
  if (!this.startInfo)
16882
16948
  return Y;
16883
- const I = (F === "ew" ? h : u).clone(), S = c.clone().projectOnVector(I), R = a.clone().projectOnVector(I), N = l.clone().projectOnVector(I);
16949
+ const I = (G === "ew" ? h : u).clone(), S = c.clone().projectOnVector(I), R = a.clone().projectOnVector(I), N = l.clone().projectOnVector(I);
16884
16950
  if (R.equals(S))
16885
16951
  return Y;
16886
- if (F === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
16952
+ if (G === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
16887
16953
  const W = new Z().subVectors(R, N), U = W.x < 0 && I.x >= 0, de = W.y < 0 && I.y >= 0, ue = W.z < 0 && I.z >= 0;
16888
16954
  this.startInfo.dragPointInCenterBottom = U || de || ue;
16889
16955
  }
16890
- if (F === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
16956
+ if (G === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
16891
16957
  const W = new Z().subVectors(R, N), U = W.x < 0 && I.x >= 0, de = W.y < 0 && I.y >= 0, ue = W.z < 0 && I.z >= 0;
16892
16958
  this.startInfo.dragPointInCenterLeft = U || de || ue;
16893
16959
  }
16894
16960
  const X = new Z().subVectors(R, S), ne = X.length();
16895
16961
  return ne > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ne), Y) : X;
16896
16962
  }, m = p("ew"), g = p("ns"), A = () => {
16897
- const F = m;
16963
+ const G = m;
16898
16964
  this.helperObject3D.cornerPositions.forEach((Y, I) => {
16899
16965
  var S;
16900
- (S = this.startInfo) != null && S.dragPointInCenterLeft ? (I === 0 || I === 3) && Y.add(F) : (I === 1 || I === 2) && Y.add(F);
16966
+ (S = this.startInfo) != null && S.dragPointInCenterLeft ? (I === 0 || I === 3) && Y.add(G) : (I === 1 || I === 2) && Y.add(G);
16901
16967
  });
16902
16968
  }, v = () => {
16903
- const F = g;
16969
+ const G = g;
16904
16970
  this.helperObject3D.cornerPositions.forEach((Y, I) => {
16905
16971
  var S;
16906
- (S = this.startInfo) != null && S.dragPointInCenterBottom ? (I === 0 || I === 1) && Y.add(F) : (I === 2 || I === 3) && Y.add(F);
16972
+ (S = this.startInfo) != null && S.dragPointInCenterBottom ? (I === 0 || I === 1) && Y.add(G) : (I === 2 || I === 3) && Y.add(G);
16907
16973
  });
16908
16974
  };
16909
16975
  switch (d) {
@@ -16985,8 +17051,8 @@ class m0 extends di {
16985
17051
  return u0();
16986
17052
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
16987
17053
  return f0();
16988
- const o = G({}, this.state);
16989
- this.state = G(G({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: o });
17054
+ const o = F({}, this.state);
17055
+ this.state = F(F({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: o });
16990
17056
  }
16991
17057
  getObject3DHelper(e) {
16992
17058
  return this.objectHelperMap.get(e);