@realsee/dnalogel 2.3.5 → 2.3.6-alpha.1

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 (212) hide show
  1. package/dist/CruisePlugin/typing.d.ts +4 -0
  2. package/dist/index.cjs.js +17 -17
  3. package/dist/index.js +758 -754
  4. package/dist/index.umd.js +17 -17
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +26 -26
  7. package/docs/classes/Magnifier.html +16 -16
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +24 -24
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoTagPluginController.html +39 -39
  12. package/docs/classes/Util.BetterTween.html +8 -8
  13. package/docs/classes/Util.FivePointSelector.html +12 -12
  14. package/docs/classes/Util.Interval.html +12 -12
  15. package/docs/classes/Util.Magnifier.html +17 -17
  16. package/docs/classes/Util.PointDomHelper.html +11 -11
  17. package/docs/classes/Util.PointHelper.html +11 -11
  18. package/docs/classes/Util.Rectangle.html +13 -13
  19. package/docs/enums/CameraMovementEffect.html +7 -7
  20. package/docs/enums/ContentType.html +12 -12
  21. package/docs/enums/DIRECTION.html +9 -9
  22. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  23. package/docs/enums/DimensionType.html +7 -7
  24. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  25. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/LinkType.html +7 -7
  27. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  28. package/docs/enums/PointType.html +7 -7
  29. package/docs/enums/Rotation.html +8 -8
  30. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  31. package/docs/functions/CameraMovementPlugin.html +4 -4
  32. package/docs/functions/CruisePlugin.html +4 -4
  33. package/docs/functions/GuideLinePlugin.html +5 -5
  34. package/docs/functions/ItemLabelPlugin.html +4 -4
  35. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  36. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  37. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  38. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  39. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  40. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  41. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  42. package/docs/functions/ModelViewPlugin.html +4 -4
  43. package/docs/functions/Object3DHelperPlugin.html +4 -4
  44. package/docs/functions/PanoCompassPlugin.html +4 -4
  45. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  46. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  47. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  48. package/docs/functions/PanoMeasurePlugin.html +4 -4
  49. package/docs/functions/PanoRulerPlugin.html +4 -4
  50. package/docs/functions/PanoRulerProPlugin.html +4 -4
  51. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  52. package/docs/functions/PanoTagPlugin.html +4 -4
  53. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  54. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  55. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  56. package/docs/functions/Util.getFrameTime.html +5 -5
  57. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  58. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  59. package/docs/functions/Util.isNil.html +5 -5
  60. package/docs/functions/Util.nextFrame.html +5 -5
  61. package/docs/functions/Util.notNil.html +5 -5
  62. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  63. package/docs/functions/Util.tweenProgress.html +5 -5
  64. package/docs/functions/pluginFlag.html +5 -5
  65. package/docs/index.html +4 -4
  66. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  67. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  68. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  69. package/docs/interfaces/ContentTypeMap.html +12 -12
  70. package/docs/interfaces/FloorplanBounding.html +8 -8
  71. package/docs/interfaces/FloorplanData.html +10 -10
  72. package/docs/interfaces/FloorplanEntrance.html +11 -11
  73. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  74. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  75. package/docs/interfaces/FloorplanFloorData.html +9 -9
  76. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  77. package/docs/interfaces/FloorplanObserver.html +9 -9
  78. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  79. package/docs/interfaces/FloorplanPosition.html +7 -7
  80. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  81. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  82. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  83. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  84. package/docs/interfaces/FloorplanServerData.html +7 -7
  85. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  86. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  87. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  88. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  89. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  90. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  91. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  92. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  94. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  95. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  96. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  97. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  98. package/docs/interfaces/LineJson.html +7 -7
  99. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  100. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  101. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  102. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  103. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  104. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  105. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  106. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  107. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  108. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  109. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  110. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  111. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  112. package/docs/interfaces/Object3DHelperState.html +8 -8
  113. package/docs/interfaces/OpenParameter.html +7 -7
  114. package/docs/interfaces/PaintBrushAction.html +12 -12
  115. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  116. package/docs/interfaces/PaintBrushState.html +10 -10
  117. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  118. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  119. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  120. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  121. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  122. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  123. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  124. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  125. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  126. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  127. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  128. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  129. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  130. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  131. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  132. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  133. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  134. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  135. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  136. package/docs/interfaces/Point.html +8 -8
  137. package/docs/interfaces/PointJson.html +8 -8
  138. package/docs/interfaces/Room.html +9 -9
  139. package/docs/interfaces/RoomInfo.html +7 -7
  140. package/docs/interfaces/RoomLabel.html +14 -14
  141. package/docs/interfaces/RoomRules.html +5 -5
  142. package/docs/interfaces/Rooms.html +5 -5
  143. package/docs/interfaces/Scissor.html +9 -9
  144. package/docs/interfaces/TagConfig.html +10 -10
  145. package/docs/interfaces/Tags.html +9 -9
  146. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  147. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  148. package/docs/modules/Util.html +5 -5
  149. package/docs/modules.html +4 -4
  150. package/docs/types/ArrayPosition.html +5 -5
  151. package/docs/types/CSS3DRenderExportType.html +5 -5
  152. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  153. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  154. package/docs/types/Color.html +5 -5
  155. package/docs/types/ContentTypeConfigKey.html +5 -5
  156. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  157. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  158. package/docs/types/Create3DElementReturnType.html +5 -5
  159. package/docs/types/CruisePluginExportType.html +5 -5
  160. package/docs/types/Direction-1.html +5 -5
  161. package/docs/types/Direction4.html +5 -5
  162. package/docs/types/FloorplanRuleLabels.html +5 -5
  163. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  164. package/docs/types/GuideLinePluginExportType.html +5 -5
  165. package/docs/types/HelperEventMap.html +5 -5
  166. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  167. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  168. package/docs/types/MediaData.html +5 -5
  169. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  170. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  171. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  172. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  173. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  174. package/docs/types/MoveArgs.html +5 -5
  175. package/docs/types/MoveOpts.html +5 -5
  176. package/docs/types/Object3DHelperEventMap.html +5 -5
  177. package/docs/types/ObjectFit.html +5 -5
  178. package/docs/types/PaintBrushEventMap.html +5 -5
  179. package/docs/types/PanoCompassPluginData.html +5 -5
  180. package/docs/types/PanoCompassPluginExportType.html +5 -5
  181. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  182. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  183. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  184. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  185. package/docs/types/PanoMeasureReturnType.html +5 -5
  186. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  187. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  188. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  189. package/docs/types/PlaneTag.html +5 -5
  190. package/docs/types/PointTag.html +5 -5
  191. package/docs/types/Position.html +5 -5
  192. package/docs/types/RotateArgs.html +5 -5
  193. package/docs/types/RotateOpts.html +5 -5
  194. package/docs/types/RuleLabelsKey.html +5 -5
  195. package/docs/types/RuleLabelsValue.html +5 -5
  196. package/docs/types/Tag.html +5 -5
  197. package/docs/types/Tag2D.html +5 -5
  198. package/docs/types/Tag3D.html +5 -5
  199. package/docs/types/TagId.html +5 -5
  200. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  201. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  202. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  203. package/docs/variables/PLUGIN.html +5 -5
  204. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  205. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  206. package/docs/variables/VERSION.html +5 -5
  207. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  208. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  209. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  210. package/libs/CruisePlugin/Controller.js +171 -167
  211. package/libs/CruisePlugin/typing.d.ts +4 -0
  212. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -290,7 +290,7 @@ class Fl extends Hl {
290
290
  n.className = "_paintBrush-ctrlinner";
291
291
  const o = document.createElement("a");
292
292
  o.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--undo", o.addEventListener("click", (a) => {
293
- var u;
293
+ var h;
294
294
  if (a.stopPropagation(), this.configs.onClickUndo && this.configs.onClickUndo(), !this.canvas[this.uuid] || !this.data[this.uuid] || this.data[this.uuid].length === 0)
295
295
  return;
296
296
  const l = this.data[this.uuid].pop();
@@ -301,11 +301,11 @@ class Fl extends Hl {
301
301
  state: l,
302
302
  uuid: this.uuid
303
303
  });
304
- const c = (u = this.canvas[this.uuid]) == null ? void 0 : u.getContext("2d");
304
+ const c = (h = this.canvas[this.uuid]) == null ? void 0 : h.getContext("2d");
305
305
  if (!this.canvas[this.uuid])
306
306
  return;
307
- const { width: d, height: h } = this.canvas[this.uuid];
308
- c && c.clearRect(0, 0, d, h), this.data[this.uuid].forEach((p) => this.handleDrawLine(this.uuid, p, { withUndo: !0 }));
307
+ const { width: d, height: u } = this.canvas[this.uuid];
308
+ c && c.clearRect(0, 0, d, u), this.data[this.uuid].forEach((p) => this.handleDrawLine(this.uuid, p, { withUndo: !0 }));
309
309
  });
310
310
  const s = document.createElement("a");
311
311
  return s.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--close", s.addEventListener("click", (a) => {
@@ -353,32 +353,32 @@ class Fl extends Hl {
353
353
  const o = this.color || "#6D92FF";
354
354
  n.strokeStyle = o;
355
355
  let s = null, r = [], a, l = [], c = 0;
356
- const d = (h, u, p) => {
356
+ const d = (u, h, p) => {
357
357
  const m = this.color || "#ff0000";
358
- n.strokeStyle = m, n.beginPath(), n.moveTo(h.x, h.y), n.quadraticCurveTo(u.x, u.y, p.x, p.y), n.stroke();
358
+ n.strokeStyle = m, n.beginPath(), n.moveTo(u.x, u.y), n.quadraticCurveTo(h.x, h.y, p.x, p.y), n.stroke();
359
359
  };
360
- e.onmousedown = (h) => {
361
- h.preventDefault(), c = Date.now();
362
- const u = h.clientX, p = h.clientY;
363
- r = [], r.push({ x: u, y: p }), s = { x: u, y: p }, a = wn({ x: u, y: p }, this.clientWidth, this.clientHeight), l = [];
364
- }, e.onmousemove = (h) => {
365
- if (h.preventDefault(), !s)
360
+ e.onmousedown = (u) => {
361
+ u.preventDefault(), c = Date.now();
362
+ const h = u.clientX, p = u.clientY;
363
+ r = [], r.push({ x: h, y: p }), s = { x: h, y: p }, a = wn({ x: h, y: p }, this.clientWidth, this.clientHeight), l = [];
364
+ }, e.onmousemove = (u) => {
365
+ if (u.preventDefault(), !s)
366
366
  return;
367
- const u = Number(h.clientX), p = Number(h.clientY);
368
- if (Math.abs(u - s.x) < 5 && Math.abs(p - s.y) < 5 || (r.push({ x: u, y: p }), l.push(wn({ x: u, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
367
+ const h = Number(u.clientX), p = Number(u.clientY);
368
+ if (Math.abs(h - s.x) < 5 && Math.abs(p - s.y) < 5 || (r.push({ x: h, y: p }), l.push(wn({ x: h, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
369
369
  return;
370
370
  const { control: m, end: g } = Cn(r);
371
371
  !m || !g || (d(s, m, g), s = g);
372
- }, e.onmouseup = (h) => {
373
- if (h.preventDefault(), s = null, r.length < 3)
372
+ }, e.onmouseup = (u) => {
373
+ if (u.preventDefault(), s = null, r.length < 3)
374
374
  return;
375
375
  this.data[this.uuid] || (this.data[this.uuid] = []);
376
- const u = Date.now() - c, p = {
376
+ const h = Date.now() - c, p = {
377
377
  move: Object.assign({}, a),
378
378
  uuid: this.uuid,
379
379
  line: [...l],
380
380
  color: this.color,
381
- duration: u < 1280 ? u : u < 2e3 ? 1280 : 0
381
+ duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
382
382
  };
383
383
  this.data[this.uuid].push(p), Gn(() => {
384
384
  this.emitStateChange({
@@ -389,28 +389,28 @@ class Fl extends Hl {
389
389
  uuid: this.uuid
390
390
  });
391
391
  });
392
- }, e.ontouchstart = (h) => {
393
- h.preventDefault(), c = Date.now();
394
- const u = h.touches[0].clientX, p = h.touches[0].clientY;
395
- r = [], r.push({ x: u, y: p }), s = { x: u, y: p }, console.log("ontouchstart", u, p, s), a = wn({ x: u, y: p }, this.clientWidth, this.clientHeight), l = [];
396
- }, e.ontouchmove = (h) => {
397
- if (h.preventDefault(), !s)
392
+ }, e.ontouchstart = (u) => {
393
+ u.preventDefault(), c = Date.now();
394
+ const h = u.touches[0].clientX, p = u.touches[0].clientY;
395
+ r = [], r.push({ x: h, y: p }), s = { x: h, y: p }, console.log("ontouchstart", h, p, s), a = wn({ x: h, y: p }, this.clientWidth, this.clientHeight), l = [];
396
+ }, e.ontouchmove = (u) => {
397
+ if (u.preventDefault(), !s)
398
398
  return;
399
- const u = Number(h.touches[0].clientX), p = Number(h.touches[0].clientY);
400
- if (Math.abs(u - s.x) < 5 && Math.abs(p - s.y) < 5 || (r.push({ x: u, y: p }), l.push(wn({ x: u, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
399
+ const h = Number(u.touches[0].clientX), p = Number(u.touches[0].clientY);
400
+ if (Math.abs(h - s.x) < 5 && Math.abs(p - s.y) < 5 || (r.push({ x: h, y: p }), l.push(wn({ x: h, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
401
401
  return;
402
402
  const { control: m, end: g } = Cn(r);
403
403
  !m || !g || (d(s, m, g), s = g);
404
- }, e.ontouchend = e.ontouchcancel = (h) => {
405
- if (h.preventDefault(), s = null, r.length < 3)
404
+ }, e.ontouchend = e.ontouchcancel = (u) => {
405
+ if (u.preventDefault(), s = null, r.length < 3)
406
406
  return;
407
407
  this.data[this.uuid] || (this.data[this.uuid] = []);
408
- const u = Date.now() - c, p = {
408
+ const h = Date.now() - c, p = {
409
409
  move: Object.assign({}, a),
410
410
  line: [...l],
411
411
  uuid: this.uuid,
412
412
  color: this.color,
413
- duration: u < 1280 ? u : u < 2e3 ? 1280 : 0
413
+ duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
414
414
  };
415
415
  this.data[this.uuid].push(p), Gn(() => {
416
416
  this.emitStateChange({
@@ -483,15 +483,15 @@ class Fl extends Hl {
483
483
  const a = this.canvas[e].getContext("2d");
484
484
  if (!a)
485
485
  return;
486
- const { line: l = [], color: c = "black", duration: d = 0, uuid: h } = n, u = gi(n.move || {}, this.clientWidth, this.clientHeight);
487
- let p = [u];
488
- if (a.strokeStyle = c, a.beginPath(), a.moveTo(u.x, u.y), d && !o) {
486
+ const { line: l = [], color: c = "black", duration: d = 0, uuid: u } = n, h = gi(n.move || {}, this.clientWidth, this.clientHeight);
487
+ let p = [h];
488
+ if (a.strokeStyle = c, a.beginPath(), a.moveTo(h.x, h.y), d && !o) {
489
489
  let m = [];
490
490
  const g = this;
491
491
  g.tween = Ql({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: A }) => {
492
492
  var w;
493
493
  if (g.tweening = !0, !g.ready)
494
- return a.clearRect(0, 0, g.canvas[h].width, g.canvas[h].height), (w = g.tween) == null ? void 0 : w.stop();
494
+ return a.clearRect(0, 0, g.canvas[u].width, g.canvas[u].height), (w = g.tween) == null ? void 0 : w.stop();
495
495
  const v = Math.floor(A);
496
496
  if (!m.find((y) => y === v)) {
497
497
  if (m.push(v), console.log("__debug__", l, l[v], v), p.push(gi(l[v], g.clientWidth, g.clientHeight)), p.length < 3)
@@ -581,7 +581,7 @@ const W0 = (i, t) => {
581
581
  lockedLatitude: null,
582
582
  lockedLongitude: null
583
583
  }), t == null ? void 0 : t.config), l = new E.Scene(), c = new vl(60);
584
- let d = new E.Object3D(), h, u;
584
+ let d = new E.Object3D(), u, h;
585
585
  {
586
586
  const I = new E.DirectionalLight(16777215, 0.5);
587
587
  I.position.copy(new E.Vector3(1, 1, 1)), l.add(I);
@@ -598,7 +598,7 @@ const W0 = (i, t) => {
598
598
  const p = () => {
599
599
  if (n)
600
600
  return;
601
- h = L(i.model, c.fov, c.aspect), u = i.model.bounding.getCenter(new E.Vector3()), l.remove(d), d = z(i.model), l.add(d), n = !0, S();
601
+ u = L(i.model, c.fov, c.aspect), h = i.model.bounding.getCenter(new E.Vector3()), l.remove(d), d = z(i.model), l.add(d), n = !0, S();
602
602
  function I(O) {
603
603
  const W = O.clone();
604
604
  return W.uniforms.modelAlpha.value = 1, W.uniforms.map.value && (W.uniforms.map.value.needsUpdate = !0), W;
@@ -657,10 +657,10 @@ const W0 = (i, t) => {
657
657
  return i.work.observers[I].standingPosition.clone();
658
658
  }
659
659
  const S = () => {
660
- if (!e || !h || !u)
660
+ if (!e || !u || !h)
661
661
  return;
662
662
  const I = i.getPose();
663
- I.fov = c.fov, I.offset = u, I.distance = h, typeof a.lockedLatitude == "number" && (I.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (I.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (I.offset = C(a.lockedPanoIndex)), a.lookAtCurrentCamera && (I.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(I), o = !0;
663
+ I.fov = c.fov, I.offset = h, I.distance = u, typeof a.lockedLatitude == "number" && (I.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (I.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (I.offset = C(a.lockedPanoIndex)), a.lookAtCurrentCamera && (I.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(I), o = !0;
664
664
  }, k = () => {
665
665
  !e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
666
666
  }, F = () => {
@@ -806,15 +806,15 @@ const Zr = 1, Ul = `CSS3DObjectPlus@${Zr}`, Jl = 216e-5, Vl = 3e-3;
806
806
  class _r extends Yn {
807
807
  constructor(e) {
808
808
  var L, C, S;
809
- const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Vl, r = (C = e.dpr) != null ? C : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(Jl, s), c = o[0].distanceTo(o[1]), d = o[1].distanceTo(o[2]), h = Un(c / s * r), u = Un(d / s * r), p = Vr(...o);
809
+ const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Vl, r = (C = e.dpr) != null ? C : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(Jl, s), c = o[0].distanceTo(o[1]), d = o[1].distanceTo(o[2]), u = Un(c / s * r), h = Un(d / s * r), p = Vr(...o);
810
810
  let m;
811
811
  if (l === s)
812
- n.style.width = `${h}px`, n.style.height = `${u}px`, m = n;
812
+ n.style.width = `${u}px`, n.style.height = `${h}px`, m = n;
813
813
  else {
814
814
  const k = document.createElement("div");
815
- k.style.width = `${h}px`, k.style.height = `${u}px`, k.style.pointerEvents = "none";
815
+ k.style.width = `${u}px`, k.style.height = `${h}px`, k.style.pointerEvents = "none";
816
816
  const F = s / l;
817
- n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * h}px`, n.style.height = `${F * u}px`, k.appendChild(n), m = k;
817
+ n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * u}px`, n.style.height = `${F * h}px`, k.appendChild(n), m = k;
818
818
  }
819
819
  super(m);
820
820
  f(this, "version", Zr);
@@ -850,10 +850,10 @@ class _r extends Yn {
850
850
  (e = this.parentVisibleListenerDisposer) == null || e.call(this);
851
851
  });
852
852
  if (n.style.pointerEvents = a, this.scale.set(l, l, l), this.cornerPoints = o, this.ratio = s, this.container = n, e.mode && (this.mode = e.mode), l === s)
853
- this.width = c, this.height = d, this.domWidthPx = h, this.domHeightPx = u, this.centerPosition = p;
853
+ this.width = c, this.height = d, this.domWidthPx = u, this.domHeightPx = h, this.centerPosition = p;
854
854
  else {
855
855
  const k = s / l;
856
- this.width = k * c, this.height = k * d, this.domWidthPx = k * h, this.domHeightPx = k * u, this.centerPosition = new _().subVectors(p, o[0]).multiplyScalar(k).add(o[0]);
856
+ this.width = k * c, this.height = k * d, this.domWidthPx = k * u, this.domHeightPx = k * h, this.centerPosition = new _().subVectors(p, o[0]).multiplyScalar(k).add(o[0]);
857
857
  }
858
858
  n.classList.add(`${Ul}__container`);
859
859
  const g = new _().subVectors(o[1], o[0]), A = new _().subVectors(o[3], o[0]), v = new _().crossVectors(g, A).normalize();
@@ -1025,18 +1025,18 @@ class fn {
1025
1025
  })(), s = e.map(hn);
1026
1026
  if ((s == null ? void 0 : s.length) < 4)
1027
1027
  return console.error(`${nn}: requires 4 point but params may have fewer`);
1028
- const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: h } = o, u = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: h });
1029
- Pe.css3DObjects.push(u), o.scene && this.setScene(o.scene);
1028
+ const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: u } = o, h = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: u });
1029
+ Pe.css3DObjects.push(h), o.scene && this.setScene(o.scene);
1030
1030
  const p = () => {
1031
- const y = u.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1032
- !y || y.add(u);
1031
+ const y = h.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1032
+ !y || y.add(h);
1033
1033
  }, m = () => {
1034
1034
  p(), this.render(t);
1035
- }, g = (y) => this.setVisibleById(u.id, y), A = (y) => this.setEnabledById(u.id, y), v = () => (u.removeFromParent(), !0), w = l === "front" ? Pe.frontModeStore.css3DRenderer : Pe.behindModeStore.css3DRenderer;
1035
+ }, g = (y) => this.setVisibleById(h.id, y), A = (y) => this.setEnabledById(h.id, y), v = () => (h.removeFromParent(), !0), w = l === "front" ? Pe.frontModeStore.css3DRenderer : Pe.behindModeStore.css3DRenderer;
1036
1036
  return c && m(), {
1037
- id: u.uuid,
1037
+ id: h.uuid,
1038
1038
  container: d,
1039
- css3DObject: u,
1039
+ css3DObject: h,
1040
1040
  render: c ? void 0 : m,
1041
1041
  show: () => g(!0),
1042
1042
  hide: () => g(!1),
@@ -1253,11 +1253,11 @@ class ic extends fn {
1253
1253
  if (this.state.disposed)
1254
1254
  return;
1255
1255
  const o = (() => {
1256
- var h;
1256
+ var u;
1257
1257
  (n == null ? void 0 : n.dpr) !== void 0 && console.warn(`${Ai}: please use "config.devicePixelRatio" replace "config.dpr"`);
1258
1258
  const d = {
1259
1259
  ratio: 216e-5,
1260
- devicePixelRatio: (h = n == null ? void 0 : n.dpr) != null ? h : 1,
1260
+ devicePixelRatio: (u = n == null ? void 0 : n.dpr) != null ? u : 1,
1261
1261
  mode: "front",
1262
1262
  autoRender: !0
1263
1263
  };
@@ -1316,8 +1316,8 @@ const X0 = (i) => {
1316
1316
  }), i.on("dispose", () => {
1317
1317
  i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
1318
1318
  });
1319
- const o = (d, h = 2, u = 0.1) => {
1320
- const p = h / 2, g = c(d, u), A = new _i();
1319
+ const o = (d, u = 2, h = 0.1) => {
1320
+ const p = u / 2, g = c(d, h), A = new _i();
1321
1321
  A.add(
1322
1322
  vi(
1323
1323
  new _(g.x + p, g.y, g.z),
@@ -1339,19 +1339,19 @@ const X0 = (i) => {
1339
1339
  i.scene.remove(A);
1340
1340
  };
1341
1341
  return t.disposers.push(v), { clear: v, pointAxesHelperMesh: A };
1342
- }, s = (d, h = 0) => {
1342
+ }, s = (d, u = 0) => {
1343
1343
  var v, w;
1344
- const u = (v = i == null ? void 0 : i.camera) == null ? void 0 : v.position;
1345
- if (!u)
1344
+ const h = (v = i == null ? void 0 : i.camera) == null ? void 0 : v.position;
1345
+ if (!h)
1346
1346
  return !1;
1347
- const p = d.distanceTo(u), m = d.sub(u).normalize(), g = new Qt(u, m), A = (w = i.model.intersectRaycaster(g)) == null ? void 0 : w[0];
1348
- return !(A && A.distance + h < p);
1347
+ const p = d.distanceTo(h), m = d.sub(h).normalize(), g = new Qt(h, m), A = (w = i.model.intersectRaycaster(g)) == null ? void 0 : w[0];
1348
+ return !(A && A.distance + u < p);
1349
1349
  }, r = () => t.intersection, a = () => {
1350
- var d, h;
1351
- (h = (d = t.disposers) == null ? void 0 : d.forEach) == null || h.call(d, (u) => u == null ? void 0 : u()), i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
1352
- }, l = a, c = (d, h) => {
1353
- const u = d.clone();
1354
- return i.camera.position.clone().sub(u).setLength(h).add(u);
1350
+ var d, u;
1351
+ (u = (d = t.disposers) == null ? void 0 : d.forEach) == null || u.call(d, (h) => h == null ? void 0 : h()), i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
1352
+ }, l = a, c = (d, u) => {
1353
+ const h = d.clone();
1354
+ return i.camera.position.clone().sub(h).setLength(u).add(h);
1355
1355
  };
1356
1356
  return { intersection: r, pointAxesHelper: o, movePointTowardsCamera: c, destroy: a, dispose: l, canSeePoint: s };
1357
1357
  };
@@ -1611,10 +1611,10 @@ function ca(i, t, e, n, o, s, r, a = 0) {
1611
1611
  `;
1612
1612
  }
1613
1613
  const d = c + `100% {${r(e, 1 - e)}}
1614
- }`, h = `__svelte_${lc(d)}_${a}`, u = Ki(i), { stylesheet: p, rules: m } = _n.get(u) || cc(u, i);
1615
- m[h] || (m[h] = !0, p.insertRule(`@keyframes ${h} ${d}`, p.cssRules.length));
1614
+ }`, u = `__svelte_${lc(d)}_${a}`, h = Ki(i), { stylesheet: p, rules: m } = _n.get(h) || cc(h, i);
1615
+ m[u] || (m[u] = !0, p.insertRule(`@keyframes ${u} ${d}`, p.cssRules.length));
1616
1616
  const g = i.style.animation || "";
1617
- return i.style.animation = `${g ? `${g}, ` : ""}${h} ${n}ms linear ${o}ms 1 both`, qn += 1, h;
1617
+ return i.style.animation = `${g ? `${g}, ` : ""}${u} ${n}ms linear ${o}ms 1 both`, qn += 1, u;
1618
1618
  }
1619
1619
  function ji(i, t) {
1620
1620
  const e = (i.style.animation || "").split(", "), n = e.filter(
@@ -1754,15 +1754,15 @@ function Ht(i, t, e) {
1754
1754
  s && ji(i, s);
1755
1755
  }
1756
1756
  function c() {
1757
- const { delay: h = 0, duration: u = 300, easing: p = Vt, tick: m = te, css: g } = n || ma;
1758
- g && (s = ca(i, 0, 1, u, h, p, g, a++)), m(0, 1);
1759
- const A = oa() + h, v = A + u;
1757
+ const { delay: u = 0, duration: h = 300, easing: p = Vt, tick: m = te, css: g } = n || ma;
1758
+ g && (s = ca(i, 0, 1, h, u, p, g, a++)), m(0, 1);
1759
+ const A = oa() + u, v = A + h;
1760
1760
  r && r.abort(), o = !0, Ie(() => Kn(i, !0, "start")), r = ra((w) => {
1761
1761
  if (o) {
1762
1762
  if (w >= v)
1763
1763
  return m(1, 0), Kn(i, !0, "end"), l(), o = !1;
1764
1764
  if (w >= A) {
1765
- const y = p((w - A) / u);
1765
+ const y = p((w - A) / h);
1766
1766
  m(y, 1 - y);
1767
1767
  }
1768
1768
  }
@@ -1787,16 +1787,16 @@ function Kt(i, t, e) {
1787
1787
  const r = mt;
1788
1788
  r.r += 1;
1789
1789
  function a() {
1790
- const { delay: l = 0, duration: c = 300, easing: d = Vt, tick: h = te, css: u } = n || ma;
1791
- u && (s = ca(i, 1, 0, c, l, d, u));
1790
+ const { delay: l = 0, duration: c = 300, easing: d = Vt, tick: u = te, css: h } = n || ma;
1791
+ h && (s = ca(i, 1, 0, c, l, d, h));
1792
1792
  const p = oa() + l, m = p + c;
1793
1793
  Ie(() => Kn(i, !1, "start")), ra((g) => {
1794
1794
  if (o) {
1795
1795
  if (g >= m)
1796
- return h(0, 1), Kn(i, !1, "end"), --r.r || at(r.c), !1;
1796
+ return u(0, 1), Kn(i, !1, "end"), --r.r || at(r.c), !1;
1797
1797
  if (g >= p) {
1798
1798
  const A = d((g - p) / c);
1799
- h(1 - A, A);
1799
+ u(1 - A, A);
1800
1800
  }
1801
1801
  }
1802
1802
  return o;
@@ -1819,14 +1819,14 @@ function lt(i, t) {
1819
1819
  t.delete(i.key);
1820
1820
  });
1821
1821
  }
1822
- function Ue(i, t, e, n, o, s, r, a, l, c, d, h) {
1823
- let u = i.length, p = s.length, m = u;
1822
+ function Ue(i, t, e, n, o, s, r, a, l, c, d, u) {
1823
+ let h = i.length, p = s.length, m = h;
1824
1824
  const g = {};
1825
1825
  for (; m--; )
1826
1826
  g[i[m].key] = m;
1827
1827
  const A = [], v = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
1828
1828
  for (m = p; m--; ) {
1829
- const C = h(o, s, m), S = e(C);
1829
+ const C = u(o, s, m), S = e(C);
1830
1830
  let k = r.get(S);
1831
1831
  k ? n && k.p(C, t) : (k = c(S, C), k.c()), v.set(S, A[m] = k), S in g && w.set(S, Math.abs(m - g[S]));
1832
1832
  }
@@ -1834,12 +1834,12 @@ function Ue(i, t, e, n, o, s, r, a, l, c, d, h) {
1834
1834
  function L(C) {
1835
1835
  D(C, 1), C.m(a, d), r.set(C.key, C), d = C.first, p--;
1836
1836
  }
1837
- for (; u && p; ) {
1838
- const C = A[p - 1], S = i[u - 1], k = C.key, F = S.key;
1839
- C === S ? (d = C.first, u--, p--) : v.has(F) ? !r.has(k) || y.has(k) ? L(C) : x.has(F) ? u-- : w.get(k) > w.get(F) ? (x.add(k), L(C)) : (y.add(F), u--) : (l(S, r), u--);
1837
+ for (; h && p; ) {
1838
+ const C = A[p - 1], S = i[h - 1], k = C.key, F = S.key;
1839
+ C === S ? (d = C.first, h--, p--) : v.has(F) ? !r.has(k) || y.has(k) ? L(C) : x.has(F) ? h-- : w.get(k) > w.get(F) ? (x.add(k), L(C)) : (y.add(F), h--) : (l(S, r), h--);
1840
1840
  }
1841
- for (; u--; ) {
1842
- const C = i[u];
1841
+ for (; h--; ) {
1842
+ const C = i[h];
1843
1843
  v.has(C.key) || l(C, r);
1844
1844
  }
1845
1845
  for (; p; )
@@ -1905,13 +1905,13 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
1905
1905
  };
1906
1906
  r && r(c.root);
1907
1907
  let d = !1;
1908
- if (c.ctx = e ? e(i, t.props || {}, (h, u, ...p) => {
1909
- const m = p.length ? p[0] : u;
1910
- return c.ctx && o(c.ctx[h], c.ctx[h] = m) && (!c.skip_bound && c.bound[h] && c.bound[h](m), d && gc(i, h)), u;
1908
+ if (c.ctx = e ? e(i, t.props || {}, (u, h, ...p) => {
1909
+ const m = p.length ? p[0] : h;
1910
+ return c.ctx && o(c.ctx[u], c.ctx[u] = m) && (!c.skip_bound && c.bound[u] && c.bound[u](m), d && gc(i, u)), h;
1911
1911
  }) : [], c.update(), d = !0, at(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
1912
1912
  if (t.hydrate) {
1913
- const h = rc(t.target);
1914
- c.fragment && c.fragment.l(h), h.forEach(M);
1913
+ const u = rc(t.target);
1914
+ c.fragment && c.fragment.l(u), u.forEach(M);
1915
1915
  } else
1916
1916
  c.fragment && c.fragment.c();
1917
1917
  t.intro && D(i.$$.fragment), K(i, t.target, t.anchor, t.customElement), ha();
@@ -2074,7 +2074,7 @@ function Ic(i, t, e) {
2074
2074
  const y = new _(A.position.x, A.position.y, A.position.z).clone().project(o.camera), x = Math.ceil((y.x + 1) / 2 * v.x), L = Math.ceil((-y.y + 1) / 2 * v.y);
2075
2075
  return `translate(${x}px, ${L}px)`;
2076
2076
  }
2077
- function h(A) {
2077
+ function u(A) {
2078
2078
  const { rendererSize: v, shownFloor: w } = A, y = /* @__PURE__ */ new Map();
2079
2079
  function x(C) {
2080
2080
  const S = y.get(C.id);
@@ -2088,14 +2088,14 @@ function Ic(i, t, e) {
2088
2088
  return he(G({}, C), { visible: S, transform: k, zIndex: N });
2089
2089
  });
2090
2090
  }
2091
- function u() {
2092
- e(0, s = h({ rendererSize: n, shownFloor: l }));
2091
+ function h() {
2092
+ e(0, s = u({ rendererSize: n, shownFloor: l }));
2093
2093
  }
2094
2094
  function p(A) {
2095
2095
  e(4, l = A);
2096
2096
  }
2097
- o.on("cameraUpdate", u), o.on("modelShownFloorChange", p), wt(() => {
2098
- o.off("cameraUpdate", u), o.off("modelShownFloorChange", p);
2097
+ o.on("cameraUpdate", h), o.on("modelShownFloorChange", p), wt(() => {
2098
+ o.off("cameraUpdate", h), o.off("modelShownFloorChange", p);
2099
2099
  });
2100
2100
  function m() {
2101
2101
  r = this.clientWidth, a = this.clientHeight, e(2, r), e(3, a);
@@ -2103,7 +2103,7 @@ function Ic(i, t, e) {
2103
2103
  return i.$$set = (A) => {
2104
2104
  "five" in A && e(1, o = A.five), "roomLabels" in A && e(0, s = A.roomLabels);
2105
2105
  }, i.$$.update = () => {
2106
- i.$$.dirty & 12 && e(5, n = { x: r, y: a }), i.$$.dirty & 48 && e(0, s = h({ rendererSize: n, shownFloor: l }));
2106
+ i.$$.dirty & 12 && e(5, n = { x: r, y: a }), i.$$.dirty & 48 && e(0, s = u({ rendererSize: n, shownFloor: l }));
2107
2107
  }, [
2108
2108
  s,
2109
2109
  o,
@@ -2273,9 +2273,9 @@ function Mo(i, { delay: t = 0, duration: e = 400, easing: n = ga, x: o = 0, y: s
2273
2273
  delay: t,
2274
2274
  duration: e,
2275
2275
  easing: n,
2276
- css: (h, u) => `
2277
- transform: ${c} translate(${(1 - h) * o}px, ${(1 - h) * s}px);
2278
- opacity: ${l - d * u}`
2276
+ css: (u, h) => `
2277
+ transform: ${c} translate(${(1 - u) * o}px, ${(1 - u) * s}px);
2278
+ opacity: ${l - d * h}`
2279
2279
  };
2280
2280
  }
2281
2281
  function ti(i, { delay: t = 0, speed: e, duration: n, easing: o = Zt } = {}) {
@@ -2316,13 +2316,13 @@ function Qc(i) {
2316
2316
  }
2317
2317
  function Rc(i, t, e) {
2318
2318
  let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
2319
- const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, h = c * 100 + "%", u = d * 100 + "%", p = -Bc(s) + 45, m = document.body.clientWidth, g = document.body.clientHeight, v = `${(m < 500 || g < 500 ? 17 : 37) / 16}rem`;
2319
+ const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, u = c * 100 + "%", h = d * 100 + "%", p = -Bc(s) + 45, m = document.body.clientWidth, g = document.body.clientHeight, v = `${(m < 500 || g < 500 ? 17 : 37) / 16}rem`;
2320
2320
  return i.$$set = (w) => {
2321
2321
  "panoIndex" in w && e(5, n = w.panoIndex), "floorplanData" in w && e(6, o = w.floorplanData), "lastPanoramaLongitude" in w && e(7, s = w.lastPanoramaLongitude), "cameraImageUrl" in w && e(0, r = w.cameraImageUrl);
2322
2322
  }, [
2323
2323
  r,
2324
- h,
2325
2324
  u,
2325
+ h,
2326
2326
  p,
2327
2327
  v,
2328
2328
  n,
@@ -2677,7 +2677,7 @@ function cd(i, t) {
2677
2677
  return o;
2678
2678
  }
2679
2679
  function dd(i, t, e) {
2680
- let n, o, s, r, { pxmm: a } = t, { room: l } = t, { hoveredRoom: c } = t, { getRoomAreaText: d } = t, { getLabelElement: h } = t, { adaptiveRoomLabelVisibleEnable: u } = t;
2680
+ let n, o, s, r, { pxmm: a } = t, { room: l } = t, { hoveredRoom: c } = t, { getRoomAreaText: d } = t, { getLabelElement: u } = t, { adaptiveRoomLabelVisibleEnable: h } = t;
2681
2681
  function p(k, F) {
2682
2682
  if (F.width === 0 || F.height === 0)
2683
2683
  return () => !1;
@@ -2709,12 +2709,12 @@ function dd(i, t, e) {
2709
2709
  });
2710
2710
  }
2711
2711
  return i.$$set = (k) => {
2712
- "pxmm" in k && e(9, a = k.pxmm), "room" in k && e(0, l = k.room), "hoveredRoom" in k && e(10, c = k.hoveredRoom), "getRoomAreaText" in k && e(11, d = k.getRoomAreaText), "getLabelElement" in k && e(1, h = k.getLabelElement), "adaptiveRoomLabelVisibleEnable" in k && e(12, u = k.adaptiveRoomLabelVisibleEnable);
2712
+ "pxmm" in k && e(9, a = k.pxmm), "room" in k && e(0, l = k.room), "hoveredRoom" in k && e(10, c = k.hoveredRoom), "getRoomAreaText" in k && e(11, d = k.getRoomAreaText), "getLabelElement" in k && e(1, u = k.getLabelElement), "adaptiveRoomLabelVisibleEnable" in k && e(12, h = k.adaptiveRoomLabelVisibleEnable);
2713
2713
  }, i.$$.update = () => {
2714
- i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ? p(l, C) : void 0), i.$$.dirty & 3 && e(4, s = h == null ? void 0 : h(l)), i.$$.dirty & 45568 && e(3, r = u ? x ? !0 : !!(o != null && o(a)) : !0);
2714
+ i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ? p(l, C) : void 0), i.$$.dirty & 3 && e(4, s = u == null ? void 0 : u(l)), i.$$.dirty & 45568 && e(3, r = h ? x ? !0 : !!(o != null && o(a)) : !0);
2715
2715
  }, [
2716
2716
  l,
2717
- h,
2717
+ u,
2718
2718
  L,
2719
2719
  r,
2720
2720
  s,
@@ -2725,7 +2725,7 @@ function dd(i, t, e) {
2725
2725
  a,
2726
2726
  c,
2727
2727
  d,
2728
- u,
2728
+ h,
2729
2729
  x,
2730
2730
  C,
2731
2731
  o,
@@ -2877,8 +2877,8 @@ function fd(i) {
2877
2877
  };
2878
2878
  }
2879
2879
  function md(i, t, e) {
2880
- let n, { floorIndex: o } = t, { floorplanData: s } = t, { hoveredRoom: r } = t, { getRoomAreaText: a } = t, { getLabelElement: l } = t, { adaptiveRoomLabelVisibleEnable: c } = t, d = 0, h = 0;
2881
- function u() {
2880
+ let n, { floorIndex: o } = t, { floorplanData: s } = t, { hoveredRoom: r } = t, { getRoomAreaText: a } = t, { getLabelElement: l } = t, { adaptiveRoomLabelVisibleEnable: c } = t, d = 0, u = 0;
2881
+ function h() {
2882
2882
  d = this.clientWidth, e(4, d);
2883
2883
  }
2884
2884
  return i.$$set = (p) => {
@@ -2886,7 +2886,7 @@ function md(i, t, e) {
2886
2886
  }, i.$$.update = () => {
2887
2887
  if (i.$$.dirty & 384 && e(6, n = s.floorDatas[o].rooms), i.$$.dirty & 272) {
2888
2888
  const { max: p, min: m } = s.bounding, g = p.x - m.x;
2889
- e(5, h = d / g);
2889
+ e(5, u = d / g);
2890
2890
  }
2891
2891
  }, [
2892
2892
  r,
@@ -2894,11 +2894,11 @@ function md(i, t, e) {
2894
2894
  l,
2895
2895
  c,
2896
2896
  d,
2897
- h,
2897
+ u,
2898
2898
  n,
2899
2899
  o,
2900
2900
  s,
2901
- u
2901
+ h
2902
2902
  ];
2903
2903
  }
2904
2904
  class pd extends oe {
@@ -2967,20 +2967,20 @@ function Oo(i, t) {
2967
2967
  };
2968
2968
  }
2969
2969
  function Ad(i) {
2970
- let t, e, n, o, s, r, a = [], l = /* @__PURE__ */ new Map(), c, d = i[3], h = [];
2970
+ let t, e, n, o, s, r, a = [], l = /* @__PURE__ */ new Map(), c, d = i[3], u = [];
2971
2971
  for (let m = 0; m < d.length; m += 1)
2972
- h[m] = Ho(Ro(i, d, m));
2973
- let u = i[4];
2972
+ u[m] = Ho(Ro(i, d, m));
2973
+ let h = i[4];
2974
2974
  const p = (m) => m[13];
2975
- for (let m = 0; m < u.length; m += 1) {
2976
- let g = Qo(i, u, m), A = p(g);
2975
+ for (let m = 0; m < h.length; m += 1) {
2976
+ let g = Qo(i, h, m), A = p(g);
2977
2977
  l.set(A, a[m] = Oo(A, g));
2978
2978
  }
2979
2979
  return {
2980
2980
  c() {
2981
2981
  t = j("div"), e = j("div"), n = V(), o = j("div");
2982
- for (let m = 0; m < h.length; m += 1)
2983
- h[m].c();
2982
+ for (let m = 0; m < u.length; m += 1)
2983
+ u[m].c();
2984
2984
  s = V(), r = j("div");
2985
2985
  for (let m = 0; m < a.length; m += 1)
2986
2986
  a[m].c();
@@ -2988,8 +2988,8 @@ function Ad(i) {
2988
2988
  },
2989
2989
  m(m, g) {
2990
2990
  B(m, t, g), Q(t, e), Q(t, n), Q(t, o);
2991
- for (let A = 0; A < h.length; A += 1)
2992
- h[A].m(o, null);
2991
+ for (let A = 0; A < u.length; A += 1)
2992
+ u[A].m(o, null);
2993
2993
  Q(t, s), Q(t, r);
2994
2994
  for (let A = 0; A < a.length; A += 1)
2995
2995
  a[A].m(r, null);
@@ -3000,18 +3000,18 @@ function Ad(i) {
3000
3000
  let A;
3001
3001
  for (A = 0; A < d.length; A += 1) {
3002
3002
  const v = Ro(m, d, A);
3003
- h[A] ? h[A].p(v, g) : (h[A] = Ho(v), h[A].c(), h[A].m(o, null));
3003
+ u[A] ? u[A].p(v, g) : (u[A] = Ho(v), u[A].c(), u[A].m(o, null));
3004
3004
  }
3005
- for (; A < h.length; A += 1)
3006
- h[A].d(1);
3007
- h.length = d.length;
3005
+ for (; A < u.length; A += 1)
3006
+ u[A].d(1);
3007
+ u.length = d.length;
3008
3008
  }
3009
- g & 22 && (u = m[4], a = Ue(a, g, p, 1, m, u, l, r, pa, Oo, null, Qo)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + m[0] + " svelte-djlmk4") && b(t, "class", c), g & 5 && q(t, "is-row", m[2]);
3009
+ g & 22 && (h = m[4], a = Ue(a, g, p, 1, m, h, l, r, pa, Oo, null, Qo)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + m[0] + " svelte-djlmk4") && b(t, "class", c), g & 5 && q(t, "is-row", m[2]);
3010
3010
  },
3011
3011
  i: te,
3012
3012
  o: te,
3013
3013
  d(m) {
3014
- m && M(t), tt(h, m);
3014
+ m && M(t), tt(u, m);
3015
3015
  for (let g = 0; g < a.length; g += 1)
3016
3016
  a[g].d();
3017
3017
  }
@@ -3020,18 +3020,18 @@ function Ad(i) {
3020
3020
  const Wt = 1e3, Xt = 180;
3021
3021
  function vd(i, t, e) {
3022
3022
  let { type: n } = t, { data: o } = t, { bounding: s } = t, { getRuleDistanceText: r } = t;
3023
- const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Wt - Xt) * 2, c = s.max.y - s.min.y - (Wt - Xt) * 2, d = o.map(([m, g]) => a ? [m.x, g.x] : [m.y, g.y]).flat().sort().filter((m, g, A) => g === 0 ? !0 : m !== A[g - 1]), h = d.map((m) => {
3023
+ const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Wt - Xt) * 2, c = s.max.y - s.min.y - (Wt - Xt) * 2, d = o.map(([m, g]) => a ? [m.x, g.x] : [m.y, g.y]).flat().sort().filter((m, g, A) => g === 0 ? !0 : m !== A[g - 1]), u = d.map((m) => {
3024
3024
  const g = a ? (m - s.min.x - Wt + Xt) / l : 0, A = a ? 0 : (m - s.min.y - Wt + Xt) / c;
3025
3025
  return { left: g, bottom: A };
3026
3026
  });
3027
- h.unshift({ left: 0, bottom: 0 }), h.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
3028
- const u = d[d.length - 1] - d[0], p = d.map((m, g, A) => {
3027
+ u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
3028
+ const h = d[d.length - 1] - d[0], p = d.map((m, g, A) => {
3029
3029
  const v = g === 0 ? 0 : m - A[g - 1], w = g === 0 ? 0 : (m + A[g - 1]) / 2, y = a ? (w - s.min.x - Wt + Xt) / l : 0, x = a ? 0 : (w - s.min.y - Wt + Xt) / c;
3030
3030
  return { left: y, bottom: x, distance: v };
3031
- }).filter(({ distance: m }) => m / u > 0.1);
3031
+ }).filter(({ distance: m }) => m / h > 0.1);
3032
3032
  return i.$$set = (m) => {
3033
3033
  "type" in m && e(0, n = m.type), "data" in m && e(5, o = m.data), "bounding" in m && e(6, s = m.bounding), "getRuleDistanceText" in m && e(1, r = m.getRuleDistanceText);
3034
- }, [n, r, a, h, p, o, s];
3034
+ }, [n, r, a, u, p, o, s];
3035
3035
  }
3036
3036
  class bd extends oe {
3037
3037
  constructor(t) {
@@ -3147,16 +3147,16 @@ function wd(i) {
3147
3147
  }
3148
3148
  const No = 1e3, Wo = 180;
3149
3149
  function Cd(i, t, e) {
3150
- let n, o, s, r, a, l, c, d, h, u, { floorIndex: p } = t, { floorplanData: m } = t, { getRuleDistanceText: g } = t;
3150
+ let n, o, s, r, a, l, c, d, u, h, { floorIndex: p } = t, { floorplanData: m } = t, { getRuleDistanceText: g } = t;
3151
3151
  return i.$$set = (A) => {
3152
3152
  "floorIndex" in A && e(5, p = A.floorIndex), "floorplanData" in A && e(6, m = A.floorplanData), "getRuleDistanceText" in A && e(0, g = A.getRuleDistanceText);
3153
3153
  }, i.$$.update = () => {
3154
- i.$$.dirty & 64 && e(1, n = m.bounding), i.$$.dirty & 96 && e(11, o = m.floorDatas[p].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((A) => [A, o[A]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (No - Wo) * 2), i.$$.dirty & 2 && e(8, d = n.max.y - n.min.y - (No - Wo) * 2), i.$$.dirty & 1536 && e(3, h = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, u = d / l * 100 + "%");
3154
+ i.$$.dirty & 64 && e(1, n = m.bounding), i.$$.dirty & 96 && e(11, o = m.floorDatas[p].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((A) => [A, o[A]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (No - Wo) * 2), i.$$.dirty & 2 && e(8, d = n.max.y - n.min.y - (No - Wo) * 2), i.$$.dirty & 1536 && e(3, u = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, h = d / l * 100 + "%");
3155
3155
  }, [
3156
3156
  g,
3157
3157
  n,
3158
- u,
3159
3158
  h,
3159
+ u,
3160
3160
  r,
3161
3161
  p,
3162
3162
  m,
@@ -3280,21 +3280,21 @@ class Md extends oe {
3280
3280
  }
3281
3281
  }
3282
3282
  function Td(i) {
3283
- let t, e, n, o, s, r, a, l, c, d, h;
3283
+ let t, e, n, o, s, r, a, l, c, d, u;
3284
3284
  return {
3285
3285
  c() {
3286
- t = Ae("defs"), e = Ae("pattern"), n = Ae("rect"), o = Ae("pattern"), s = Ae("rect"), r = V(), a = Ae("path"), l = V(), c = Ae("path"), d = V(), h = Ae("path"), b(n, "x", "0"), b(n, "y", "0"), b(n, "width", "6"), b(n, "height", "50"), b(n, "fill", "none"), b(n, "stroke", "#4B4B57"), b(n, "stroke-width", "0.5"), b(e, "id", "room-material-pattern-1"), b(e, "x", "0"), b(e, "y", "0"), b(e, "width", "12"), b(e, "height", "50"), b(e, "patternUnits", "userSpaceOnUse"), b(e, "patternTransform", "scale(50 50)"), b(s, "x", "0"), b(s, "y", "0"), b(s, "width", "6"), b(s, "height", "50"), b(s, "fill", "none"), b(s, "stroke", "#4B4B57"), b(s, "stroke-width", "0.5"), b(o, "id", "room-material-pattern-2"), b(o, "x", "6"), b(o, "y", "25"), b(o, "width", "12"), b(o, "height", "50"), b(o, "patternUnits", "userSpaceOnUse"), b(o, "patternTransform", "scale(50 50)"), b(a, "d", i[0]), b(a, "fill", "#43434D"), b(c, "d", i[0]), b(c, "fill", "url(#room-material-pattern-1)"), b(h, "d", i[0]), b(h, "fill", "url(#room-material-pattern-2)");
3286
+ t = Ae("defs"), e = Ae("pattern"), n = Ae("rect"), o = Ae("pattern"), s = Ae("rect"), r = V(), a = Ae("path"), l = V(), c = Ae("path"), d = V(), u = Ae("path"), b(n, "x", "0"), b(n, "y", "0"), b(n, "width", "6"), b(n, "height", "50"), b(n, "fill", "none"), b(n, "stroke", "#4B4B57"), b(n, "stroke-width", "0.5"), b(e, "id", "room-material-pattern-1"), b(e, "x", "0"), b(e, "y", "0"), b(e, "width", "12"), b(e, "height", "50"), b(e, "patternUnits", "userSpaceOnUse"), b(e, "patternTransform", "scale(50 50)"), b(s, "x", "0"), b(s, "y", "0"), b(s, "width", "6"), b(s, "height", "50"), b(s, "fill", "none"), b(s, "stroke", "#4B4B57"), b(s, "stroke-width", "0.5"), b(o, "id", "room-material-pattern-2"), b(o, "x", "6"), b(o, "y", "25"), b(o, "width", "12"), b(o, "height", "50"), b(o, "patternUnits", "userSpaceOnUse"), b(o, "patternTransform", "scale(50 50)"), b(a, "d", i[0]), b(a, "fill", "#43434D"), b(c, "d", i[0]), b(c, "fill", "url(#room-material-pattern-1)"), b(u, "d", i[0]), b(u, "fill", "url(#room-material-pattern-2)");
3287
3287
  },
3288
- m(u, p) {
3289
- B(u, t, p), Q(t, e), Q(e, n), Q(t, o), Q(o, s), B(u, r, p), B(u, a, p), B(u, l, p), B(u, c, p), B(u, d, p), B(u, h, p);
3288
+ m(h, p) {
3289
+ B(h, t, p), Q(t, e), Q(e, n), Q(t, o), Q(o, s), B(h, r, p), B(h, a, p), B(h, l, p), B(h, c, p), B(h, d, p), B(h, u, p);
3290
3290
  },
3291
- p(u, [p]) {
3292
- p & 1 && b(a, "d", u[0]), p & 1 && b(c, "d", u[0]), p & 1 && b(h, "d", u[0]);
3291
+ p(h, [p]) {
3292
+ p & 1 && b(a, "d", h[0]), p & 1 && b(c, "d", h[0]), p & 1 && b(u, "d", h[0]);
3293
3293
  },
3294
3294
  i: te,
3295
3295
  o: te,
3296
- d(u) {
3297
- u && M(t), u && M(r), u && M(a), u && M(l), u && M(c), u && M(d), u && M(h);
3296
+ d(h) {
3297
+ h && M(t), h && M(r), h && M(a), h && M(l), h && M(c), h && M(d), h && M(u);
3298
3298
  }
3299
3299
  };
3300
3300
  }
@@ -3796,11 +3796,11 @@ function qd(i) {
3796
3796
  floorplanData: i[5]
3797
3797
  }
3798
3798
  ];
3799
- let h = {};
3799
+ let u = {};
3800
3800
  for (let v = 0; v < d.length; v += 1)
3801
- h = ye(h, d[v]);
3802
- e = new Nd({ props: h });
3803
- let u = i[2] && Vo(i);
3801
+ u = ye(u, d[v]);
3802
+ e = new Nd({ props: u });
3803
+ let h = i[2] && Vo(i);
3804
3804
  const p = [
3805
3805
  {
3806
3806
  floorplanData: i[5],
@@ -3814,10 +3814,10 @@ function qd(i) {
3814
3814
  let g = i[3] && Zo(i), A = i[4] && _o(i);
3815
3815
  return {
3816
3816
  c() {
3817
- t = j("div"), ee(e.$$.fragment), n = V(), u && u.c(), o = V(), ee(s.$$.fragment), r = V(), g && g.c(), a = V(), A && A.c(), b(t, "class", l = je(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
3817
+ t = j("div"), ee(e.$$.fragment), n = V(), h && h.c(), o = V(), ee(s.$$.fragment), r = V(), g && g.c(), a = V(), A && A.c(), b(t, "class", l = je(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
3818
3818
  },
3819
3819
  m(v, w) {
3820
- B(v, t, w), K(e, t, null), Q(t, n), u && u.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), A && A.m(t, null), c = !0;
3820
+ B(v, t, w), K(e, t, null), Q(t, n), h && h.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), A && A.m(t, null), c = !0;
3821
3821
  },
3822
3822
  p(v, [w]) {
3823
3823
  const y = w & 34 ? Te(d, [
@@ -3826,8 +3826,8 @@ function qd(i) {
3826
3826
  floorplanData: v[5]
3827
3827
  }
3828
3828
  ]) : {};
3829
- e.$set(y), v[2] ? u ? (u.p(v, w), w & 4 && D(u, 1)) : (u = Vo(v), u.c(), D(u, 1), u.m(t, o)) : u && (le(), T(u, 1, 1, () => {
3830
- u = null;
3829
+ e.$set(y), v[2] ? h ? (h.p(v, w), w & 4 && D(h, 1)) : (h = Vo(v), h.c(), D(h, 1), h.m(t, o)) : h && (le(), T(h, 1, 1, () => {
3830
+ h = null;
3831
3831
  }), ce());
3832
3832
  const x = w & 34 ? Te(p, [
3833
3833
  {
@@ -3842,21 +3842,21 @@ function qd(i) {
3842
3842
  }), ce()), (!c || w & 1 && l !== (l = je(`floorplan-plugin__floor${v[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
3843
3843
  },
3844
3844
  i(v) {
3845
- c || (D(e.$$.fragment, v), D(u), D(s.$$.fragment, v), D(g), D(A), c = !0);
3845
+ c || (D(e.$$.fragment, v), D(h), D(s.$$.fragment, v), D(g), D(A), c = !0);
3846
3846
  },
3847
3847
  o(v) {
3848
- T(e.$$.fragment, v), T(u), T(s.$$.fragment, v), T(g), T(A), c = !1;
3848
+ T(e.$$.fragment, v), T(h), T(s.$$.fragment, v), T(g), T(A), c = !1;
3849
3849
  },
3850
3850
  d(v) {
3851
- v && M(t), $(e), u && u.d(), $(s), g && g.d(), A && A.d();
3851
+ v && M(t), $(e), h && h.d(), $(s), g && g.d(), A && A.d();
3852
3852
  }
3853
3853
  };
3854
3854
  }
3855
3855
  function Kd(i, t, e) {
3856
- let { isCurrent: n } = t, { floorIndex: o } = t, { hoverEnable: s } = t, { roomLabelsEnable: r } = t, { ruleLabelsEnable: a } = t, { floorplanData: l } = t, { getRoomAreaText: c } = t, { getLabelElement: d } = t, { getRuleDistanceText: h } = t, { adaptiveRoomLabelVisibleEnable: u } = t;
3856
+ let { isCurrent: n } = t, { floorIndex: o } = t, { hoverEnable: s } = t, { roomLabelsEnable: r } = t, { ruleLabelsEnable: a } = t, { floorplanData: l } = t, { getRoomAreaText: c } = t, { getLabelElement: d } = t, { getRuleDistanceText: u } = t, { adaptiveRoomLabelVisibleEnable: h } = t;
3857
3857
  const p = io(void 0);
3858
3858
  return i.$$set = (m) => {
3859
- "isCurrent" in m && e(0, n = m.isCurrent), "floorIndex" in m && e(1, o = m.floorIndex), "hoverEnable" in m && e(2, s = m.hoverEnable), "roomLabelsEnable" in m && e(3, r = m.roomLabelsEnable), "ruleLabelsEnable" in m && e(4, a = m.ruleLabelsEnable), "floorplanData" in m && e(5, l = m.floorplanData), "getRoomAreaText" in m && e(6, c = m.getRoomAreaText), "getLabelElement" in m && e(7, d = m.getLabelElement), "getRuleDistanceText" in m && e(8, h = m.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in m && e(9, u = m.adaptiveRoomLabelVisibleEnable);
3859
+ "isCurrent" in m && e(0, n = m.isCurrent), "floorIndex" in m && e(1, o = m.floorIndex), "hoverEnable" in m && e(2, s = m.hoverEnable), "roomLabelsEnable" in m && e(3, r = m.roomLabelsEnable), "ruleLabelsEnable" in m && e(4, a = m.ruleLabelsEnable), "floorplanData" in m && e(5, l = m.floorplanData), "getRoomAreaText" in m && e(6, c = m.getRoomAreaText), "getLabelElement" in m && e(7, d = m.getLabelElement), "getRuleDistanceText" in m && e(8, u = m.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in m && e(9, h = m.adaptiveRoomLabelVisibleEnable);
3860
3860
  }, [
3861
3861
  n,
3862
3862
  o,
@@ -3866,8 +3866,8 @@ function Kd(i, t, e) {
3866
3866
  l,
3867
3867
  c,
3868
3868
  d,
3869
- h,
3870
3869
  u,
3870
+ h,
3871
3871
  p
3872
3872
  ];
3873
3873
  }
@@ -3916,23 +3916,23 @@ function Ko(i) {
3916
3916
  cameraImageUrl: i[11]
3917
3917
  }
3918
3918
  ];
3919
- let h = {};
3919
+ let u = {};
3920
3920
  for (let p = 0; p < d.length; p += 1)
3921
- h = ye(h, d[p]);
3922
- n = new Hc({ props: h });
3923
- let u = i[6] && es(i);
3921
+ u = ye(u, d[p]);
3922
+ n = new Hc({ props: u });
3923
+ let h = i[6] && es(i);
3924
3924
  return {
3925
3925
  c() {
3926
3926
  t = j("div");
3927
3927
  for (let p = 0; p < l.length; p += 1)
3928
3928
  l[p].c();
3929
- e = V(), ee(n.$$.fragment), o = V(), u && u.c(), b(t, "class", "floorplan-main svelte-86bqav");
3929
+ e = V(), ee(n.$$.fragment), o = V(), h && h.c(), b(t, "class", "floorplan-main svelte-86bqav");
3930
3930
  },
3931
3931
  m(p, m) {
3932
3932
  B(p, t, m);
3933
3933
  for (let g = 0; g < l.length; g += 1)
3934
3934
  l[g].m(t, null);
3935
- Q(t, e), K(n, t, null), Q(t, o), u && u.m(t, null), r = !0;
3935
+ Q(t, e), K(n, t, null), Q(t, o), h && h.m(t, null), r = !0;
3936
3936
  },
3937
3937
  p(p, m) {
3938
3938
  if (i = p, m & 62384) {
@@ -3954,15 +3954,15 @@ function Ko(i) {
3954
3954
  cameraImageUrl: i[11]
3955
3955
  }
3956
3956
  ]) : {};
3957
- n.$set(g), i[6] ? u ? (u.p(i, m), m & 64 && D(u, 1)) : (u = es(i), u.c(), D(u, 1), u.m(t, null)) : u && (le(), T(u, 1, 1, () => {
3958
- u = null;
3957
+ n.$set(g), i[6] ? h ? (h.p(i, m), m & 64 && D(h, 1)) : (h = es(i), h.c(), D(h, 1), h.m(t, null)) : h && (le(), T(h, 1, 1, () => {
3958
+ h = null;
3959
3959
  }), ce());
3960
3960
  },
3961
3961
  i(p) {
3962
3962
  if (!r) {
3963
3963
  for (let m = 0; m < a.length; m += 1)
3964
3964
  D(l[m]);
3965
- D(n.$$.fragment, p), D(u), s || Ie(() => {
3965
+ D(n.$$.fragment, p), D(h), s || Ie(() => {
3966
3966
  s = Ht(t, Tt, {
3967
3967
  duration: i[0],
3968
3968
  easing: Vt
@@ -3974,10 +3974,10 @@ function Ko(i) {
3974
3974
  l = l.filter(Boolean);
3975
3975
  for (let m = 0; m < l.length; m += 1)
3976
3976
  T(l[m]);
3977
- T(n.$$.fragment, p), T(u), r = !1;
3977
+ T(n.$$.fragment, p), T(h), r = !1;
3978
3978
  },
3979
3979
  d(p) {
3980
- p && M(t), tt(l, p), $(n), u && u.d();
3980
+ p && M(t), tt(l, p), $(n), h && h.d();
3981
3981
  }
3982
3982
  };
3983
3983
  }
@@ -4098,9 +4098,9 @@ function tu(i) {
4098
4098
  };
4099
4099
  }
4100
4100
  function nu(i, t, e) {
4101
- let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: h } = t, { floorplanData: u } = t, { lastPanoramaLongitude: p } = t, { cameraImageUrl: m } = t, { getRoomAreaText: g } = t, { getLabelElement: A } = t, { getRuleDistanceText: v } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
4101
+ let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: u } = t, { floorplanData: h } = t, { lastPanoramaLongitude: p } = t, { cameraImageUrl: m } = t, { getRoomAreaText: g } = t, { getLabelElement: A } = t, { getRuleDistanceText: v } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
4102
4102
  return i.$$set = (y) => {
4103
- "duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, h = y.ruleLabelsEnable), "floorplanData" in y && e(9, u = y.floorplanData), "lastPanoramaLongitude" in y && e(10, p = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, m = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, A = y.getLabelElement), "getRuleDistanceText" in y && e(14, v = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
4103
+ "duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, u = y.ruleLabelsEnable), "floorplanData" in y && e(9, h = y.floorplanData), "lastPanoramaLongitude" in y && e(10, p = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, m = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, A = y.getLabelElement), "getRuleDistanceText" in y && e(14, v = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
4104
4104
  }, [
4105
4105
  n,
4106
4106
  o,
@@ -4110,8 +4110,8 @@ function nu(i, t, e) {
4110
4110
  l,
4111
4111
  c,
4112
4112
  d,
4113
- h,
4114
4113
  u,
4114
+ h,
4115
4115
  p,
4116
4116
  m,
4117
4117
  g,
@@ -4285,8 +4285,8 @@ function wa(i, t) {
4285
4285
  const d = o[c];
4286
4286
  if (d === void 0)
4287
4287
  return !0;
4288
- const h = l[c];
4289
- return typeof d == "number" && typeof h == "number" ? Hi(d, h, 2) : d === h;
4288
+ const u = l[c];
4289
+ return typeof d == "number" && typeof u == "number" ? Hi(d, u, 2) : d === u;
4290
4290
  }) : !0;
4291
4291
  })() || n(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")), e();
4292
4292
  });
@@ -4406,8 +4406,8 @@ class mu extends Ot {
4406
4406
  }, o = G(G({}, n), e), s = () => J(this, null, function* () {
4407
4407
  this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
4408
4408
  let a = !1, l;
4409
- this.showRejection = (u) => {
4410
- a = !0, l = u;
4409
+ this.showRejection = (h) => {
4410
+ a = !0, l = h;
4411
4411
  };
4412
4412
  const [c] = yield $n(Ca(this.five, this.showState, o.userAction));
4413
4413
  if (c)
@@ -4415,8 +4415,8 @@ class mu extends Ot {
4415
4415
  if (a)
4416
4416
  throw l ? new Error(l) : new Error(Ge.UnknownError);
4417
4417
  this.updateSize(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
4418
- const d = o.modelOpacity, h = o.immediately ? 0 : ya;
4419
- _t(this.five, d, h), this.render(h);
4418
+ const d = o.modelOpacity, u = o.immediately ? 0 : ya;
4419
+ _t(this.five, d, u), this.render(u);
4420
4420
  });
4421
4421
  return this.showPromise = s().then(() => {
4422
4422
  this.hooks.emit("showAnimationEnded", {
@@ -4678,8 +4678,8 @@ class Au extends Ot {
4678
4678
  }, o = G(G({}, n), e), s = () => J(this, null, function* () {
4679
4679
  this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
4680
4680
  let a = !1, l;
4681
- this.showRejection = (u) => {
4682
- a = !0, l = u;
4681
+ this.showRejection = (h) => {
4682
+ a = !0, l = h;
4683
4683
  };
4684
4684
  const [c] = yield $n(Ca(this.five, this.showState, o.userAction));
4685
4685
  if (c)
@@ -4687,8 +4687,8 @@ class Au extends Ot {
4687
4687
  if (a)
4688
4688
  throw l ? new Error(l) : new Error(Ge.UnknownError);
4689
4689
  this.updateSize(), this.updatePosition(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
4690
- const d = o.modelOpacity, h = o.immediately ? 0 : ya;
4691
- _t(this.five, d, h), this.render(h);
4690
+ const d = o.modelOpacity, u = o.immediately ? 0 : ya;
4691
+ _t(this.five, d, u), this.render(u);
4692
4692
  });
4693
4693
  return this.showPromise = s().then(() => {
4694
4694
  this.hooks.emit("showAnimationEnded", {
@@ -5148,14 +5148,14 @@ function wu(i) {
5148
5148
  }
5149
5149
  function Cu(i, t, e) {
5150
5150
  let n, o, { five: s } = t, { pxmm: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, c = s.getCurrentState().panoIndex, d = s.getCurrentState().longitude;
5151
- function h(m, g) {
5151
+ function u(m, g) {
5152
5152
  const A = m.bounding, v = m.observers[g];
5153
5153
  if (!v)
5154
5154
  return "";
5155
5155
  const w = (A.max.x - A.min.x) * r, y = (A.max.y - A.min.y) * r, x = Math.floor(v.positionInImage.x * w), L = Math.floor(v.positionInImage.y * y);
5156
5156
  return `translate(${x}px, ${L}px)`;
5157
5157
  }
5158
- function u(m) {
5158
+ function h(m) {
5159
5159
  e(6, c = m);
5160
5160
  }
5161
5161
  const p = lo(
@@ -5164,12 +5164,12 @@ function Cu(i, t, e) {
5164
5164
  },
5165
5165
  1e3 / 60
5166
5166
  );
5167
- return Ye(() => (s.on("panoWillArrive", u), s.on("cameraDirectionUpdate", p), function() {
5168
- s.off("panoWillArrive", u), s.off("cameraDirectionUpdate", p);
5167
+ return Ye(() => (s.on("panoWillArrive", h), s.on("cameraDirectionUpdate", p), function() {
5168
+ s.off("panoWillArrive", h), s.off("cameraDirectionUpdate", p);
5169
5169
  })), i.$$set = (m) => {
5170
5170
  "five" in m && e(3, s = m.five), "pxmm" in m && e(4, r = m.pxmm), "floorplanData" in m && e(5, a = m.floorplanData), "cameraImageUrl" in m && e(0, l = m.cameraImageUrl);
5171
5171
  }, i.$$.update = () => {
5172
- i.$$.dirty & 96 && e(2, n = h(a, c)), i.$$.dirty & 128 && e(1, o = wu(d));
5172
+ i.$$.dirty & 96 && e(2, n = u(a, c)), i.$$.dirty & 128 && e(1, o = wu(d));
5173
5173
  }, [
5174
5174
  l,
5175
5175
  o,
@@ -5332,19 +5332,19 @@ function Du(i) {
5332
5332
  c() {
5333
5333
  ee(t.$$.fragment), e = V(), ee(n.$$.fragment), o = V(), c && c.c(), s = fe();
5334
5334
  },
5335
- m(d, h) {
5336
- K(t, d, h), B(d, e, h), K(n, d, h), B(d, o, h), c && c.m(d, h), B(d, s, h), r = !0;
5335
+ m(d, u) {
5336
+ K(t, d, u), B(d, e, u), K(n, d, u), B(d, o, u), c && c.m(d, u), B(d, s, u), r = !0;
5337
5337
  },
5338
- p(d, [h]) {
5339
- const u = h & 20 ? Te(a, [
5338
+ p(d, [u]) {
5339
+ const h = u & 20 ? Te(a, [
5340
5340
  {
5341
5341
  floorIndex: d[2],
5342
5342
  floorplanData: d[4]
5343
5343
  }
5344
5344
  ]) : {};
5345
- t.$set(u);
5345
+ t.$set(h);
5346
5346
  const p = {};
5347
- h & 32 && (p.extraObjects = d[5]), n.$set(p), d[3] ? c ? (c.p(d, h), h & 8 && D(c, 1)) : (c = os(d), c.c(), D(c, 1), c.m(s.parentNode, s)) : c && (le(), T(c, 1, 1, () => {
5347
+ u & 32 && (p.extraObjects = d[5]), n.$set(p), d[3] ? c ? (c.p(d, u), u & 8 && D(c, 1)) : (c = os(d), c.c(), D(c, 1), c.m(s.parentNode, s)) : c && (le(), T(c, 1, 1, () => {
5348
5348
  c = null;
5349
5349
  }), ce());
5350
5350
  },
@@ -5362,10 +5362,10 @@ function Du(i) {
5362
5362
  function Lu(i, t, e) {
5363
5363
  let n, { five: o } = t, { pxmm: s } = t, { floorIndex: r } = t, { hoverEnable: a } = t, { floorplanData: l } = t, { extraObjects: c = [] } = t;
5364
5364
  const d = void 0;
5365
- return i.$$set = (h) => {
5366
- "five" in h && e(0, o = h.five), "pxmm" in h && e(1, s = h.pxmm), "floorIndex" in h && e(2, r = h.floorIndex), "hoverEnable" in h && e(3, a = h.hoverEnable), "floorplanData" in h && e(4, l = h.floorplanData), "extraObjects" in h && e(7, c = h.extraObjects);
5365
+ return i.$$set = (u) => {
5366
+ "five" in u && e(0, o = u.five), "pxmm" in u && e(1, s = u.pxmm), "floorIndex" in u && e(2, r = u.floorIndex), "hoverEnable" in u && e(3, a = u.hoverEnable), "floorplanData" in u && e(4, l = u.floorplanData), "extraObjects" in u && e(7, c = u.extraObjects);
5367
5367
  }, i.$$.update = () => {
5368
- i.$$.dirty & 132 && e(5, n = c == null ? void 0 : c.filter((h) => h.floorIndex === r));
5368
+ i.$$.dirty & 132 && e(5, n = c == null ? void 0 : c.filter((u) => u.floorIndex === r));
5369
5369
  }, [
5370
5370
  o,
5371
5371
  s,
@@ -5430,8 +5430,8 @@ function rs(i) {
5430
5430
  }
5431
5431
  ];
5432
5432
  let c = {};
5433
- for (let u = 0; u < l.length; u += 1)
5434
- c = ye(c, l[u]);
5433
+ for (let h = 0; h < l.length; h += 1)
5434
+ c = ye(c, l[h]);
5435
5435
  e = new Su({ props: c });
5436
5436
  const d = [
5437
5437
  {
@@ -5441,46 +5441,46 @@ function rs(i) {
5441
5441
  cameraImageUrl: i[4]
5442
5442
  }
5443
5443
  ];
5444
- let h = {};
5445
- for (let u = 0; u < d.length; u += 1)
5446
- h = ye(h, d[u]);
5447
- return o = new Eu({ props: h }), {
5444
+ let u = {};
5445
+ for (let h = 0; h < d.length; h += 1)
5446
+ u = ye(u, d[h]);
5447
+ return o = new Eu({ props: u }), {
5448
5448
  c() {
5449
5449
  t = j("div"), ee(e.$$.fragment), n = V(), ee(o.$$.fragment), b(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), R(t, "width", s), R(t, "height", r);
5450
5450
  },
5451
- m(u, p) {
5452
- B(u, t, p), K(e, t, null), Q(t, n), K(o, t, null), a = !0;
5451
+ m(h, p) {
5452
+ B(h, t, p), K(e, t, null), Q(t, n), K(o, t, null), a = !0;
5453
5453
  },
5454
- p(u, p) {
5454
+ p(h, p) {
5455
5455
  const m = p & 1581 ? Te(l, [
5456
5456
  {
5457
- five: u[0],
5458
- pxmm: u[9],
5459
- floorIndex: u[10],
5460
- floorplanData: u[3],
5461
- hoverEnable: u[2],
5462
- extraObjects: u[5]
5457
+ five: h[0],
5458
+ pxmm: h[9],
5459
+ floorIndex: h[10],
5460
+ floorplanData: h[3],
5461
+ hoverEnable: h[2],
5462
+ extraObjects: h[5]
5463
5463
  }
5464
5464
  ]) : {};
5465
5465
  e.$set(m);
5466
5466
  const g = p & 537 ? Te(d, [
5467
5467
  {
5468
- pxmm: u[9],
5469
- five: u[0],
5470
- floorplanData: u[3],
5471
- cameraImageUrl: u[4]
5468
+ pxmm: h[9],
5469
+ five: h[0],
5470
+ floorplanData: h[3],
5471
+ cameraImageUrl: h[4]
5472
5472
  }
5473
5473
  ]) : {};
5474
- o.$set(g), p & 256 && s !== (s = `${u[8]}px`) && R(t, "width", s), p & 2048 && r !== (r = `${u[11]}px`) && R(t, "height", r);
5474
+ o.$set(g), p & 256 && s !== (s = `${h[8]}px`) && R(t, "width", s), p & 2048 && r !== (r = `${h[11]}px`) && R(t, "height", r);
5475
5475
  },
5476
- i(u) {
5477
- a || (D(e.$$.fragment, u), D(o.$$.fragment, u), a = !0);
5476
+ i(h) {
5477
+ a || (D(e.$$.fragment, h), D(o.$$.fragment, h), a = !0);
5478
5478
  },
5479
- o(u) {
5480
- T(e.$$.fragment, u), T(o.$$.fragment, u), a = !1;
5479
+ o(h) {
5480
+ T(e.$$.fragment, h), T(o.$$.fragment, h), a = !1;
5481
5481
  },
5482
- d(u) {
5483
- u && M(t), $(e), $(o);
5482
+ d(h) {
5483
+ h && M(t), $(e), $(o);
5484
5484
  }
5485
5485
  };
5486
5486
  }
@@ -5511,7 +5511,7 @@ function Mu(i) {
5511
5511
  }
5512
5512
  function Tu(i, t, e) {
5513
5513
  var v, w;
5514
- let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (v = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : v.floorIndex) != null ? w : 0, h = 0, u = 0, p = 0, m = 0;
5514
+ let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (v = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : v.floorIndex) != null ? w : 0, u = 0, h = 0, p = 0, m = 0;
5515
5515
  function g(y) {
5516
5516
  e(10, d = n.work.observers[y].floorIndex);
5517
5517
  }
@@ -5519,13 +5519,13 @@ function Tu(i, t, e) {
5519
5519
  n.off("panoArrived", g);
5520
5520
  }));
5521
5521
  function A() {
5522
- h = this.clientWidth, u = this.clientHeight, e(6, h), e(7, u);
5522
+ u = this.clientWidth, h = this.clientHeight, e(6, u), e(7, h);
5523
5523
  }
5524
5524
  return i.$$set = (y) => {
5525
5525
  "five" in y && e(0, n = y.five), "visible" in y && e(1, o = y.visible), "hoverEnable" in y && e(2, s = y.hoverEnable), "floorplanData" in y && e(3, r = y.floorplanData), "cameraImageUrl" in y && e(4, a = y.cameraImageUrl), "extraObjects" in y && e(5, l = y.extraObjects);
5526
5526
  }, i.$$.update = () => {
5527
5527
  if (i.$$.dirty & 456) {
5528
- const y = Math.min(h, u), { max: x, min: L } = r.bounding, C = x.x - L.x, S = x.y - L.y, k = function() {
5528
+ const y = Math.min(u, h), { max: x, min: L } = r.bounding, C = x.x - L.x, S = x.y - L.y, k = function() {
5529
5529
  return C > S ? [y, y / C * S] : [y / S * C, y];
5530
5530
  }();
5531
5531
  e(8, p = k[0]), e(11, m = k[1]), e(9, c = p / C);
@@ -5537,8 +5537,8 @@ function Tu(i, t, e) {
5537
5537
  r,
5538
5538
  a,
5539
5539
  l,
5540
- h,
5541
5540
  u,
5541
+ h,
5542
5542
  p,
5543
5543
  c,
5544
5544
  d,
@@ -5813,12 +5813,12 @@ function Ea(i, t) {
5813
5813
  }
5814
5814
  const eA = (i, t) => {
5815
5815
  var d;
5816
- const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (d = t.north_rad) != null ? d : void 0, o = {}, s = (h) => J(void 0, null, function* () {
5816
+ const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (d = t.north_rad) != null ? d : void 0, o = {}, s = (u) => J(void 0, null, function* () {
5817
5817
  var Y;
5818
- const u = (h == null ? void 0 : h.fbx_url) || e, p = (Y = h == null ? void 0 : h.north_rad) != null ? Y : n;
5818
+ const h = (u == null ? void 0 : u.fbx_url) || e, p = (Y = u == null ? void 0 : u.north_rad) != null ? Y : n;
5819
5819
  if (typeof p != "number")
5820
5820
  throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
5821
- const m = i.model.bounding, g = m.max.x - m.min.x, A = m.max.z - m.min.z, v = Math.max(g, A), y = yield new Ur().loadAsync(u);
5821
+ const m = i.model.bounding, g = m.max.x - m.min.x, A = m.max.z - m.min.z, v = Math.max(g, A), y = yield new Ur().loadAsync(h);
5822
5822
  Ea(y, {
5823
5823
  transparent: !0,
5824
5824
  side: E.DoubleSide,
@@ -5835,32 +5835,32 @@ const eA = (i, t) => {
5835
5835
  o.yBase = k;
5836
5836
  const H = { x: (L + S) / 2, y: k - 1.6, z: (C + F) / 2 }, N = 45e-4 * v;
5837
5837
  return Qu(y, { position: H, rotation: x, scale: N }), o.object = y, !0;
5838
- }), r = ({ latitude: h }) => {
5838
+ }), r = ({ latitude: u }) => {
5839
5839
  if (!o.object)
5840
5840
  return;
5841
- const u = a(h);
5842
- u && (o.object.position.y = u);
5843
- }, a = (h) => {
5841
+ const h = a(u);
5842
+ h && (o.object.position.y = h);
5843
+ }, a = (u) => {
5844
5844
  if (o.yBase === void 0)
5845
5845
  return;
5846
- const u = 0.6;
5847
- if (h >= Math.PI / 4)
5848
- return o.yBase - (u + 1.6);
5849
- const p = h * (4 / Math.PI);
5850
- return o.yBase - (u * p + 1.6);
5846
+ const h = 0.6;
5847
+ if (u >= Math.PI / 4)
5848
+ return o.yBase - (h + 1.6);
5849
+ const p = u * (4 / Math.PI);
5850
+ return o.yBase - (h * p + 1.6);
5851
5851
  };
5852
5852
  return { load: s, disable: () => {
5853
5853
  !o.object || (i.scene.remove(o.object), i.needsRender = !0, i.off("cameraDirectionUpdate", r));
5854
5854
  }, enable: () => {
5855
5855
  if (!o.object)
5856
5856
  return;
5857
- const h = a(i.getPose().latitude);
5858
- h && (o.object.position.y = h), i.scene.add(o.object), i.needsRender = !0, i.on("cameraDirectionUpdate", r);
5857
+ const u = a(i.getPose().latitude);
5858
+ u && (o.object.position.y = u), i.scene.add(o.object), i.needsRender = !0, i.on("cameraDirectionUpdate", r);
5859
5859
  } };
5860
5860
  };
5861
5861
  function Ru(i, t) {
5862
- var c, d, h, u, p;
5863
- const e = (c = t == null ? void 0 : t.size) != null ? c : 512, n = (d = t == null ? void 0 : t.fontSize) != null ? d : e * (35 / 256) * 1.2, o = (h = t == null ? void 0 : t.backgroundColor) != null ? h : "rgba(0,0,0,0)", s = (u = t == null ? void 0 : t.fontColor) != null ? u : "#fff", r = (p = t == null ? void 0 : t.textAlign) != null ? p : "center", a = document.createElement("canvas");
5862
+ var c, d, u, h, p;
5863
+ const e = (c = t == null ? void 0 : t.size) != null ? c : 512, n = (d = t == null ? void 0 : t.fontSize) != null ? d : e * (35 / 256) * 1.2, o = (u = t == null ? void 0 : t.backgroundColor) != null ? u : "rgba(0,0,0,0)", s = (h = t == null ? void 0 : t.fontColor) != null ? h : "#fff", r = (p = t == null ? void 0 : t.textAlign) != null ? p : "center", a = document.createElement("canvas");
5864
5864
  a.setAttribute("width", e + ""), a.setAttribute("height", e + "");
5865
5865
  const l = a.getContext("2d");
5866
5866
  return l.fillStyle = o, l.fillRect(0, 0, e, e), l.font = `${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`, l.textAlign = r, l.fillStyle = s, l.fillText(i, e / 2, e * 0.7), new bl(a);
@@ -5915,10 +5915,10 @@ const Hu = ({ x: i, y: t, z: e }) => new _(i, t, e), tA = (i, t) => {
5915
5915
  if (!e.object)
5916
5916
  return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
5917
5917
  ((x = w == null ? void 0 : w.animationEnable) != null ? x : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
5918
- }, h = () => {
5918
+ }, u = () => {
5919
5919
  !e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
5920
- }, u = (w) => w === "Floorplan" ? d() : h();
5921
- return { load: l, enable: (w) => (e.enabled || (e.enabled = !0, u(i.currentMode), i.on("modeChange", u), d(w)), !0), disable: () => (e.enabled && (e.enabled = !1, h(), i.off("modeChange", u)), !0) };
5920
+ }, h = (w) => w === "Floorplan" ? d() : u();
5921
+ return { load: l, enable: (w) => (e.enabled || (e.enabled = !0, h(i.currentMode), i.on("modeChange", h), d(w)), !0), disable: () => (e.enabled && (e.enabled = !1, u(), i.off("modeChange", h)), !0) };
5922
5922
  };
5923
5923
  class co extends dn.Tween {
5924
5924
  constructor() {
@@ -5998,29 +5998,29 @@ const Oi = (i, t, e) => {
5998
5998
  return i = as(i), t = as(t), e === ot.Anticlockwise && i < t && (i += o), e === ot.Clockwise && t < i && (t += o), e === ot.Loop && t - i > n ? Oi(i, t, ot.Anticlockwise) : e === ot.Loop && i - t > n ? Oi(i, t, ot.Clockwise) : { from: i, to: t };
5999
5999
  }, nA = (i) => {
6000
6000
  const t = {}, e = (l, c, ...d) => J(void 0, [l, c, ...d], function* (s, r, a = { preload: !0 }) {
6001
- return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), s.mode && s.mode !== i.currentMode && (yield i.changeMode(s.mode)), a.preload && s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (yield i.preloadPano(s.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), s.panoIndex === void 0 && s.fov === void 0 && s.latitude === void 0 && s.longitude === void 0 ? !0 : yield new Promise((h, u) => {
6001
+ return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), s.mode && s.mode !== i.currentMode && (yield i.changeMode(s.mode)), a.preload && s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (yield i.preloadPano(s.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), s.panoIndex === void 0 && s.fov === void 0 && s.latitude === void 0 && s.longitude === void 0 ? !0 : yield new Promise((u, h) => {
6002
6002
  const p = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
6003
6003
  p !== void 0 ? i.moveToPano(
6004
6004
  p,
6005
6005
  Object.assign(
6006
6006
  {
6007
6007
  duration: r,
6008
- moveEndCallback: () => h(!0),
6009
- moveCancelCallback: () => u(!1)
6008
+ moveEndCallback: () => u(!0),
6009
+ moveCancelCallback: () => h(!1)
6010
6010
  },
6011
6011
  s
6012
6012
  )
6013
- ) : u(!1);
6013
+ ) : h(!1);
6014
6014
  });
6015
6015
  }), n = (s) => {
6016
6016
  const r = i.state, a = ls(r.latitude), l = ls(s.latitude), { from: c, to: d } = Oi(
6017
6017
  r.longitude,
6018
6018
  s.longitude,
6019
6019
  s.rotation || ot.Loop
6020
- ), h = r.fov, u = s.fov;
6020
+ ), u = r.fov, h = s.fov;
6021
6021
  return {
6022
- from: { latitude: a, longitude: c, fov: h },
6023
- to: { latitude: l, longitude: d, fov: u }
6022
+ from: { latitude: a, longitude: c, fov: u },
6023
+ to: { latitude: l, longitude: d, fov: h }
6024
6024
  };
6025
6025
  };
6026
6026
  return {
@@ -6036,16 +6036,16 @@ const Oi = (i, t, e) => {
6036
6036
  moveCancelCallback: () => m(!1)
6037
6037
  });
6038
6038
  })), a.asyncEndCallback && (yield a.asyncEndCallback());
6039
- const { from: h, to: u } = n(s);
6039
+ const { from: u, to: h } = n(s);
6040
6040
  return yield new Promise((p) => {
6041
6041
  const m = ({ progress: y }) => {
6042
6042
  const x = {};
6043
- x.longitude = Ci(h.longitude, u.longitude, y), x.latitude = Ci(h.latitude, u.latitude, y), x.fov = Ci(h.fov, u.fov, y), i.setState(x, !0);
6043
+ x.longitude = Ci(u.longitude, h.longitude, y), x.latitude = Ci(u.latitude, h.latitude, y), x.fov = Ci(u.fov, h.fov, y), i.setState(x, !0);
6044
6044
  }, g = () => {
6045
6045
  p(!0);
6046
6046
  }, A = () => {
6047
6047
  p(!1);
6048
- }, v = s.rotateSpeed ? Math.ceil(Math.abs(u.longitude - h.longitude) / s.rotateSpeed * 1e3) : r, w = Wu(v, si.Easing.Linear.None).onUpdate(m).onComplete(g).onDestroy(A);
6048
+ }, v = s.rotateSpeed ? Math.ceil(Math.abs(h.longitude - u.longitude) / s.rotateSpeed * 1e3) : r, w = Wu(v, si.Easing.Linear.None).onUpdate(m).onComplete(g).onDestroy(A);
6049
6049
  s.rotation === ot.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
6050
6050
  w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), p(y);
6051
6051
  }, t.timeoutId = setTimeout(() => {
@@ -6192,14 +6192,14 @@ const Uu = `<style type="text/css">
6192
6192
  o.observers.forEach((r, a) => {
6193
6193
  const { standingPosition: l } = r, c = new _(l.x, l.y, l.z);
6194
6194
  n.set(c, new _(0, 1, 0));
6195
- const [d] = t.model.intersectRaycaster(n), h = d ? d.point.y : 2.7, u = s[a];
6196
- if (!u)
6195
+ const [d] = t.model.intersectRaycaster(n), u = d ? d.point.y : 2.7, h = s[a];
6196
+ if (!h)
6197
6197
  return e;
6198
- const p = i.rooms[u].name;
6198
+ const p = i.rooms[h].name;
6199
6199
  e[p] === void 0 ? e[p] = {
6200
- __roof: [h],
6200
+ __roof: [u],
6201
6201
  __floor: [c.y]
6202
- } : (e[p].__roof.push(h), e[p].__floor.push(c.y));
6202
+ } : (e[p].__roof.push(u), e[p].__floor.push(c.y));
6203
6203
  });
6204
6204
  for (const r in e) {
6205
6205
  const a = e[r];
@@ -6394,10 +6394,10 @@ const Uu = `<style type="text/css">
6394
6394
  const Ct = (Math.PI / 2 - Math.atan2(ke - ue, me - He)) / Math.PI * 180, ge = z.querySelector(".PanoRulerPlugin-rule-label"), ct = ge.children[0].clientWidth;
6395
6395
  ct >= se || ct / 2 >= be / 100 * se || ct / 2 >= (1 - be / 100) * se ? z.style.display = "none" : (z.style.display = "block", z.style.width = se + "px", z.style.left = ue + "px", z.style.top = me + "px", z.style.transform = `rotate(${-Ct}deg)`, ge.style.left = `${be}%`);
6396
6396
  }
6397
- }, h = () => ka(d), u = () => {
6397
+ }, u = () => ka(d), h = () => {
6398
6398
  var g, A;
6399
- return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (A = (g = i.getElement()) == null ? void 0 : g.parentElement) == null || A.append(o), d(), i.on("modeChange", d), i.on("cameraUpdate", h), e.enable = !0), !0) : !1;
6400
- }, p = () => (e.enable && (i.off("modeChange", d), i.off("cameraUpdate", h), o && o.remove(), e.enable = !1), !0);
6399
+ return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (A = (g = i.getElement()) == null ? void 0 : g.parentElement) == null || A.append(o), d(), i.on("modeChange", d), i.on("cameraUpdate", u), e.enable = !0), !0) : !1;
6400
+ }, p = () => (e.enable && (i.off("modeChange", d), i.off("cameraUpdate", u), o && o.remove(), e.enable = !1), !0);
6401
6401
  function m(g) {
6402
6402
  if (g.distanceText && g.distanceText !== e.options.distanceText) {
6403
6403
  const A = g.distanceText;
@@ -6410,7 +6410,7 @@ const Uu = `<style type="text/css">
6410
6410
  }
6411
6411
  }
6412
6412
  return {
6413
- enable: u,
6413
+ enable: h,
6414
6414
  disable: p,
6415
6415
  load: l,
6416
6416
  state: e,
@@ -6493,20 +6493,20 @@ function us(i) {
6493
6493
  };
6494
6494
  }
6495
6495
  function Ku(i) {
6496
- let t, e, n, o, s = i[0].labelElement + "", r, a, l = `${i[0].labelOffset}%`, c = `${i[0].width}px`, d = `${i[0].left}px`, h = `${i[0].top}px`, u = `rotate(${i[0].rotateDeg}deg)`;
6496
+ let t, e, n, o, s = i[0].labelElement + "", r, a, l = `${i[0].labelOffset}%`, c = `${i[0].width}px`, d = `${i[0].left}px`, u = `${i[0].top}px`, h = `rotate(${i[0].rotateDeg}deg)`;
6497
6497
  function p(A, v) {
6498
6498
  return A[0].children.length === 0 ? qu : _u;
6499
6499
  }
6500
6500
  let m = p(i), g = m(i);
6501
6501
  return {
6502
6502
  c() {
6503
- t = j("div"), g.c(), e = V(), n = j("div"), o = j("div"), r = xe(s), b(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Ie(() => i[4].call(o)), b(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), R(n, "left", l), b(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), R(t, "width", c), R(t, "left", d), R(t, "top", h), R(t, "transform", u), R(t, "display", i[0].visible && i[2] ? "block" : "none");
6503
+ t = j("div"), g.c(), e = V(), n = j("div"), o = j("div"), r = xe(s), b(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Ie(() => i[4].call(o)), b(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), R(n, "left", l), b(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), R(t, "width", c), R(t, "left", d), R(t, "top", u), R(t, "transform", h), R(t, "display", i[0].visible && i[2] ? "block" : "none");
6504
6504
  },
6505
6505
  m(A, v) {
6506
6506
  B(A, t, v), g.m(t, null), Q(t, e), Q(t, n), Q(n, o), Q(o, r), a = yt(o, i[4].bind(o));
6507
6507
  },
6508
6508
  p(A, [v]) {
6509
- m === (m = p(A)) && g ? g.p(A, v) : (g.d(1), g = m(A), g && (g.c(), g.m(t, e))), v & 1 && s !== (s = A[0].labelElement + "") && Me(r, s), v & 1 && l !== (l = `${A[0].labelOffset}%`) && R(n, "left", l), v & 1 && c !== (c = `${A[0].width}px`) && R(t, "width", c), v & 1 && d !== (d = `${A[0].left}px`) && R(t, "left", d), v & 1 && h !== (h = `${A[0].top}px`) && R(t, "top", h), v & 1 && u !== (u = `rotate(${A[0].rotateDeg}deg)`) && R(t, "transform", u), v & 5 && R(t, "display", A[0].visible && A[2] ? "block" : "none");
6509
+ m === (m = p(A)) && g ? g.p(A, v) : (g.d(1), g = m(A), g && (g.c(), g.m(t, e))), v & 1 && s !== (s = A[0].labelElement + "") && Me(r, s), v & 1 && l !== (l = `${A[0].labelOffset}%`) && R(n, "left", l), v & 1 && c !== (c = `${A[0].width}px`) && R(t, "width", c), v & 1 && d !== (d = `${A[0].left}px`) && R(t, "left", d), v & 1 && u !== (u = `${A[0].top}px`) && R(t, "top", u), v & 1 && h !== (h = `rotate(${A[0].rotateDeg}deg)`) && R(t, "transform", h), v & 5 && R(t, "display", A[0].visible && A[2] ? "block" : "none");
6510
6510
  },
6511
6511
  i: te,
6512
6512
  o: te,
@@ -6635,7 +6635,7 @@ function nh(i, t, e) {
6635
6635
  endTop: H,
6636
6636
  distance: N
6637
6637
  };
6638
- }, h = (y, x, L) => {
6638
+ }, u = (y, x, L) => {
6639
6639
  const C = n.camera.position, S = n.camera.getWorldDirection(new _()), k = y.clone().sub(C).normalize().angleTo(S), F = x.clone().sub(C).normalize().angleTo(S), H = y.distanceTo(x), Y = x.clone().sub(x.clone().sub(y).divide(new _(2, 2, 2))).distanceTo(C), { startLeft: P, startTop: I, endLeft: z, endTop: O, distance: W } = d(y, x), X = -((Math.PI / 2 - Math.atan2(z - P, I - O)) / Math.PI) * 180;
6640
6640
  let U = !0;
6641
6641
  L || (U = !1), !qe(y, L) && !qe(x, L) && (U = !1), H < 0.3 && (U = !1), k > Math.PI / 2 && (U = !1), F > Math.PI / 2 && (U = !1), Y / H > 8 && (U = !1);
@@ -6657,7 +6657,7 @@ function nh(i, t, e) {
6657
6657
  labelOffset: de,
6658
6658
  ruleLength: H
6659
6659
  };
6660
- }, u = () => {
6660
+ }, h = () => {
6661
6661
  const y = n.panoIndex, x = o.find((N) => N.panoIndex === y);
6662
6662
  if (!x)
6663
6663
  return e(0, r = []);
@@ -6668,7 +6668,7 @@ function nh(i, t, e) {
6668
6668
  return P - I;
6669
6669
  }), H = x.lines.map((N) => {
6670
6670
  var ue, me;
6671
- const Y = N.start, P = N.end, { startLeft: I, startTop: z, distance: O, deg: W, visible: Z, labelOffset: X, ruleLength: U } = h(new _(Y[0], -Y[1], -Y[2]), new _(P[0], -P[1], -P[2]), F), de = [];
6671
+ const Y = N.start, P = N.end, { startLeft: I, startTop: z, distance: O, deg: W, visible: Z, labelOffset: X, ruleLength: U } = u(new _(Y[0], -Y[1], -Y[2]), new _(P[0], -P[1], -P[2]), F), de = [];
6672
6672
  return N.children && ((ue = N.children) == null ? void 0 : ue.length) > 0 && ((me = N.children) == null || me.forEach((we) => {
6673
6673
  const ke = we.start, He = we.end, { distance: se } = d(new _(ke[0], -ke[1], -ke[2]), new _(He[0], -He[1], -He[2]));
6674
6674
  de.push({ width: se, state: we.state });
@@ -6685,11 +6685,11 @@ function nh(i, t, e) {
6685
6685
  };
6686
6686
  });
6687
6687
  e(0, r = H);
6688
- }, p = () => ui(u), m = lo(u, 80);
6688
+ }, p = () => ui(h), m = lo(h, 80);
6689
6689
  return Ye(() => {
6690
- u(), n.on("panoArrived", u), n.on("modeChange", u), n.on("cameraDirectionUpdate", p), n.on("movingToPano", p), n.on("mouseWheel", () => m()), n.on("pinchGesture", () => m());
6690
+ h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", p), n.on("movingToPano", p), n.on("mouseWheel", () => m()), n.on("pinchGesture", () => m());
6691
6691
  }), wt(() => {
6692
- n.off("panoArrived", u), n.off("modeChange", u), n.off("cameraDirectionUpdate", p), n.off("movingToPano", p), n.off("mouseWheel", () => m()), n.off("pinchGesture", () => m());
6692
+ n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", p), n.off("movingToPano", p), n.off("mouseWheel", () => m()), n.off("pinchGesture", () => m());
6693
6693
  }), i.$$set = (y) => {
6694
6694
  "five" in y && e(1, n = y.five), "rulerDatas" in y && e(2, o = y.rulerDatas), "options" in y && e(3, s = y.options);
6695
6695
  }, [r, n, o, s];
@@ -6842,16 +6842,16 @@ class lh extends Ot {
6842
6842
  f(this, "onFivePanoArrived", (e) => {
6843
6843
  var o, s, r, a, l, c, d;
6844
6844
  const n = (r = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : r.standingPosition;
6845
- if (this.compassMesh && (this.compassMesh.position.copy(n.clone().setY(n.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween = Pa(1e3).onUpdate(({ progress: h }) => {
6846
- var u;
6847
- (u = this.compassMesh) == null || u.material.setValues({ opacity: h }), this.five.needsRender = !0;
6845
+ if (this.compassMesh && (this.compassMesh.position.copy(n.clone().setY(n.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween = Pa(1e3).onUpdate(({ progress: u }) => {
6846
+ var h;
6847
+ (h = this.compassMesh) == null || h.material.setValues({ opacity: u }), this.five.needsRender = !0;
6848
6848
  }).play())), this.entryDoorMesh) {
6849
- const u = new E.Vector3(
6849
+ const h = new E.Vector3(
6850
6850
  this.data.entrance.position.x,
6851
6851
  this.data.entrance.position.y,
6852
6852
  this.data.entrance.position.z
6853
- ).clone().setY(n.y).sub(n).normalize(), p = n.clone().add(u.clone().multiplyScalar(0.7)).setY(n.y + 0.01);
6854
- this.entryDoorMesh.rotation.z = new E.Vector3(0, 0, -1).angleTo(u), this.entryDoorMesh.position.copy(p), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
6853
+ ).clone().setY(n.y).sub(n).normalize(), p = n.clone().add(h.clone().multiplyScalar(0.7)).setY(n.y + 0.01);
6854
+ this.entryDoorMesh.rotation.z = new E.Vector3(0, 0, -1).angleTo(h), this.entryDoorMesh.position.copy(p), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
6855
6855
  }
6856
6856
  this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
6857
6857
  n.clone().setY(n.y + 0.01)
@@ -7008,10 +7008,10 @@ class dh {
7008
7008
  f(this, "lastPanEvent");
7009
7009
  f(this, "hammer");
7010
7010
  f(this, "onPan", (t) => {
7011
- var c, d, h, u;
7011
+ var c, d, u, h;
7012
7012
  if (!this.wrapper)
7013
7013
  return;
7014
- const e = (d = (c = this.lastPanEvent) == null ? void 0 : c.deltaX) != null ? d : 0, n = (u = (h = this.lastPanEvent) == null ? void 0 : h.deltaY) != null ? u : 0, o = t.deltaX - e, s = t.deltaY - n;
7014
+ const e = (d = (c = this.lastPanEvent) == null ? void 0 : c.deltaX) != null ? d : 0, n = (h = (u = this.lastPanEvent) == null ? void 0 : u.deltaY) != null ? h : 0, o = t.deltaX - e, s = t.deltaY - n;
7015
7015
  if (this.lastPanEvent = t, this.hooks.emit("wantsPanGesture", { srcEvent: t, deltaX: o, deltaY: s }))
7016
7016
  return;
7017
7017
  const a = this.offset.x + o, l = this.offset.y + s;
@@ -7058,7 +7058,7 @@ class dh {
7058
7058
  render() {
7059
7059
  if (!this.five.renderer || !this.wrapper)
7060
7060
  return;
7061
- const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, h = (s.x + 1) / 2 * r.x, u = (s.y + 1) / 2 * r.y, p = this.five.getPixels(h - l / 2, u - l / 2, l, c, d), m = Math.floor(n * a), g = Math.floor(o * a);
7061
+ const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, p = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), m = Math.floor(n * a), g = Math.floor(o * a);
7062
7062
  ch(p, m, g);
7063
7063
  const A = new ImageData(m, g);
7064
7064
  A.data.set(p), e.putImageData(A, 0, 0);
@@ -7151,8 +7151,8 @@ const wh = {
7151
7151
  pointsRenderOrder: 10
7152
7152
  };
7153
7153
  function Ch(i, t, e) {
7154
- var d, h, u, p, m;
7155
- const n = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (h = e == null ? void 0 : e.lineColor) != null ? h : new An(16777215), s = (u = e == null ? void 0 : e.pointSize) != null ? u : 5, r = (p = e == null ? void 0 : e.lineRenderOrder) != null ? p : 10, a = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 20, l = new Yr(i, t);
7154
+ var d, u, h, p, m;
7155
+ const n = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (u = e == null ? void 0 : e.lineColor) != null ? u : new An(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (p = e == null ? void 0 : e.lineRenderOrder) != null ? p : 10, a = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 20, l = new Yr(i, t);
7156
7156
  l.setMaterial({ linewidth: n, color: o }), l.line.material.depthTest = !1, l.line.material.transparent = !0, l.line.renderOrder = r, l.points.renderOrder = a;
7157
7157
  const c = l.points.material;
7158
7158
  return c.depthTest = !1, c.size = s, e != null && e.pointColor && c.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (c.map = e.pointTexture), l;
@@ -7179,13 +7179,13 @@ function Ih(i) {
7179
7179
  (m = i.clickCallback) == null || m.call(i, p);
7180
7180
  }
7181
7181
  function e() {
7182
- if (h)
7183
- return h.highlight();
7182
+ if (u)
7183
+ return u.highlight();
7184
7184
  c.style.border = "0.5px solid #95AEFF", c.style.background = "linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)";
7185
7185
  }
7186
7186
  function n() {
7187
- if (h)
7188
- return h.unHighlight();
7187
+ if (u)
7188
+ return u.unHighlight();
7189
7189
  c.style.border = "0.5px solid rgba(255,255,255,0.6)", c.style.background = "rgba(195,195,195,0.70)";
7190
7190
  }
7191
7191
  function o(m) {
@@ -7201,7 +7201,7 @@ function Ih(i) {
7201
7201
  return;
7202
7202
  }
7203
7203
  const H = (C.x + 1) / 2 * A, N = -(C.y - 1) / 2 * v, P = -(Math.atan((S.y - k.y) / (S.x - k.x)) * 180) / Math.PI;
7204
- d.style.transform = `translate(${H}px, ${N}px) rotate(${P}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", h && h.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
7204
+ d.style.transform = `translate(${H}px, ${N}px) rotate(${P}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", u && u.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
7205
7205
  const I = w.position.clone().distanceTo(y.position), z = i.line.model.params.getDistanceText(I);
7206
7206
  c.innerText !== z && (c.innerText = z);
7207
7207
  }
@@ -7211,16 +7211,16 @@ function Ih(i) {
7211
7211
  function r() {
7212
7212
  c.removeEventListener("click", t), d.remove();
7213
7213
  }
7214
- const { line: a } = i, l = a.id, c = Eh(), d = Ph(a), h = i.userDistanceItem, u = new _(0, 0, 0), p = {
7214
+ const { line: a } = i, l = a.id, c = Eh(), d = Ph(a), u = i.userDistanceItem, h = new _(0, 0, 0), p = {
7215
7215
  lineID: l,
7216
- ndcPosition: u,
7216
+ ndcPosition: h,
7217
7217
  update: o,
7218
7218
  appendTo: s,
7219
7219
  remove: r,
7220
7220
  highlight: e,
7221
7221
  unHighlight: n
7222
7222
  };
7223
- return h != null && h.element ? d.appendChild(h.element) : d.appendChild(c), p;
7223
+ return u != null && u.element ? d.appendChild(u.element) : d.appendChild(c), p;
7224
7224
  }
7225
7225
  class $t {
7226
7226
  constructor(t, e, n) {
@@ -7526,7 +7526,7 @@ function xh(i, t) {
7526
7526
  }
7527
7527
  function ii(i) {
7528
7528
  const t = (s, r, a) => {
7529
- const l = s.lines.find((d) => d.points.findIndex(({ id: u }) => u === s.id) !== r);
7529
+ const l = s.lines.find((d) => d.points.findIndex(({ id: h }) => h === s.id) !== r);
7530
7530
  if (!l)
7531
7531
  return a;
7532
7532
  const c = l.points[r];
@@ -7561,14 +7561,14 @@ class kh extends fi {
7561
7561
  }).filter((p) => !!p);
7562
7562
  if (c.length === 0)
7563
7563
  return;
7564
- const h = c.map((p) => {
7564
+ const u = c.map((p) => {
7565
7565
  const m = ho(l, p.points);
7566
7566
  return { id: p.id, distance: m.distanceTo(l) };
7567
- }).sort((p, m) => p.distance - m.distance)[0], u = h.distance > 20 ? void 0 : this.model.lines.find(({ id: p }) => p === h.id);
7568
- if (this.highlightedLines.length > 0 && !u)
7567
+ }).sort((p, m) => p.distance - m.distance)[0], h = u.distance > 20 ? void 0 : this.model.lines.find(({ id: p }) => p === u.id);
7568
+ if (this.highlightedLines.length > 0 && !h)
7569
7569
  return this.clearHighlightLines(), !1;
7570
- if (u)
7571
- return this.chooseLine(u), !1;
7570
+ if (h)
7571
+ return this.chooseLine(h), !1;
7572
7572
  });
7573
7573
  f(this, "chooseLine", (e) => {
7574
7574
  const n = ii(e);
@@ -7661,19 +7661,19 @@ class Sa {
7661
7661
  updatePosition() {
7662
7662
  if (this.lines.length === 0)
7663
7663
  return this;
7664
- const t = this.points.map((u) => u.position), e = t.map((u) => u.clone().project(this.five.camera));
7665
- if (e.some((u) => Math.abs(u.z) > 1))
7664
+ const t = this.points.map((h) => h.position), e = t.map((h) => h.clone().project(this.five.camera));
7665
+ if (e.some((h) => Math.abs(h.z) > 1))
7666
7666
  return this.hide();
7667
- const n = e.map((u) => u.x), o = e.map((u) => u.y), s = (Math.min(...n) + Math.max(...n)) / 2, r = Math.max(...o), a = this.container.parentElement;
7667
+ const n = e.map((h) => h.x), o = e.map((h) => h.y), s = (Math.min(...n) + Math.max(...n)) / 2, r = Math.max(...o), a = this.container.parentElement;
7668
7668
  if (!a)
7669
7669
  return this;
7670
7670
  const l = (s + 1) / 2 * a.clientWidth, c = -(r - 1) / 2 * a.clientHeight;
7671
- let d = l, h = c - 34;
7671
+ let d = l, u = c - 34;
7672
7672
  if (this.lines.length === 1 && t.length === 2) {
7673
- const u = (o[1] - o[0]) / (n[1] - n[0]), m = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
7674
- Math.abs(u) > 0.4 && (d = l + 57, h = m);
7673
+ const h = (o[1] - o[0]) / (n[1] - n[0]), m = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
7674
+ Math.abs(h) > 0.4 && (d = l + 57, u = m);
7675
7675
  }
7676
- return this.container.style.transform = `translate3d(${d}px, ${h}px, 10px)`, this.show();
7676
+ return this.container.style.transform = `translate3d(${d}px, ${u}px, 10px)`, this.show();
7677
7677
  }
7678
7678
  hide() {
7679
7679
  return this.visible = !1, this.masking.style.pointerEvents = "none", this.container.style.opacity = "0", this.container.style.top = "10px", this.container.style.pointerEvents = "none", this;
@@ -7773,15 +7773,15 @@ class Pi extends fi {
7773
7773
  }).filter((p) => !!p);
7774
7774
  if (c.length === 0)
7775
7775
  return;
7776
- const h = c.map((p) => {
7776
+ const u = c.map((p) => {
7777
7777
  const m = ho(l, p.points);
7778
7778
  return { id: p.id, distance: m.distanceTo(l) };
7779
7779
  }).sort((p, m) => p.distance - m.distance)[0];
7780
- if (h.distance > 20)
7780
+ if (u.distance > 20)
7781
7781
  return;
7782
- const u = this.model.lines.find(({ id: p }) => p === h.id);
7783
- if (!!u)
7784
- return this.chooseLine(u), !1;
7782
+ const h = this.model.lines.find(({ id: p }) => p === u.id);
7783
+ if (!!h)
7784
+ return this.chooseLine(h), !1;
7785
7785
  });
7786
7786
  f(this, "chooseLine", (e) => {
7787
7787
  const n = ii(e);
@@ -7867,15 +7867,15 @@ class As extends fi {
7867
7867
  }).filter((p) => !!p);
7868
7868
  if (c.length === 0)
7869
7869
  return;
7870
- const h = c.map((p) => {
7870
+ const u = c.map((p) => {
7871
7871
  const m = ho(l, p.points);
7872
7872
  return { id: p.id, distance: m.distanceTo(l) };
7873
7873
  }).sort((p, m) => p.distance - m.distance)[0];
7874
- if (h.distance > 20)
7874
+ if (u.distance > 20)
7875
7875
  return;
7876
- const u = this.model.lines.find(({ id: p }) => p === h.id);
7877
- if (!!u)
7878
- return this.chooseLine(u), !1;
7876
+ const h = this.model.lines.find(({ id: p }) => p === u.id);
7877
+ if (!!h)
7878
+ return this.chooseLine(h), !1;
7879
7879
  });
7880
7880
  f(this, "onWantsToMoveToPano", () => this.state === "watching");
7881
7881
  f(this, "onCameraUpdate", () => {
@@ -7975,12 +7975,12 @@ function za(i) {
7975
7975
  depthTest: !1
7976
7976
  }), c = new Fn(s, l), d = new El();
7977
7977
  d.add(new Pl(new _(0, 0, 0), new _(0, 0, 0.1)));
7978
- const h = new Il(d, 8, 3e-3), u = new xl({
7978
+ const u = new Il(d, 8, 3e-3), h = new xl({
7979
7979
  vertexShader: Bh,
7980
7980
  fragmentShader: jh,
7981
7981
  depthTest: !1,
7982
7982
  transparent: !0
7983
- }), p = new Fn(h, u), m = new kl(0.01, 20, 20), g = new un({
7983
+ }), p = new Fn(u, h), m = new kl(0.01, 20, 20), g = new un({
7984
7984
  color: n,
7985
7985
  depthTest: !1,
7986
7986
  transparent: !0,
@@ -8881,16 +8881,16 @@ function df(i) {
8881
8881
  ae(i, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
8882
8882
  }
8883
8883
  function uf(i) {
8884
- let t, e, n, o, s, r, a, l, c, d, h, u, p, m, g;
8884
+ let t, e, n, o, s, r, a, l, c, d, u, h, p, m, g;
8885
8885
  return {
8886
8886
  c() {
8887
- t = j("div"), e = j("div"), n = V(), o = j("div"), s = j("i"), r = V(), a = j("i"), l = V(), c = j("i"), d = V(), h = j("div"), u = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), R(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), R(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(h, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), R(h, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", p = "PanoSpatialTagPlugin__" + i[0]), R(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"), q(t, "PanoSpatialTagPlugin__tag-x", !0), q(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), q(t, "PanoSpatialTagPlugin__tag-show", i[10]), q(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
8887
+ t = j("div"), e = j("div"), n = V(), o = j("div"), s = j("i"), r = V(), a = j("i"), l = V(), c = j("i"), d = V(), u = j("div"), h = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), R(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), R(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(h, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), R(u, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", p = "PanoSpatialTagPlugin__" + i[0]), R(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"), q(t, "PanoSpatialTagPlugin__tag-x", !0), q(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), q(t, "PanoSpatialTagPlugin__tag-show", i[10]), q(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
8888
8888
  },
8889
8889
  m(A, v) {
8890
- B(A, t, v), Q(t, e), Q(t, n), Q(t, o), Q(o, s), Q(o, r), Q(o, a), Q(o, l), Q(o, c), Q(t, d), Q(t, h), Q(h, u), u.innerHTML = i[2], i[16](u), m || (g = Ee(u, "click", i[11]), m = !0);
8890
+ B(A, t, v), Q(t, e), Q(t, n), Q(t, o), Q(o, s), Q(o, r), Q(o, a), Q(o, l), Q(o, c), Q(t, d), Q(t, u), Q(u, h), h.innerHTML = i[2], i[16](h), m || (g = Ee(h, "click", i[11]), m = !0);
8891
8891
  },
8892
8892
  p(A, [v]) {
8893
- v & 394 && R(e, "transform", "translate(" + A[7] / 2 * A[3] * 3 + "px, " + A[8] / 2 * (A[1] ? -1 : 1) * A[3] * 3 + "px) scale(" + 1 / A[3] + ")"), v & 16 && R(s, "width", A[4] + "rem"), v & 4 && (u.innerHTML = A[2]), v & 8 && R(h, "transform", "scale(" + A[3] * 3 + ")"), v & 1 && p !== (p = "PanoSpatialTagPlugin__" + A[0]) && b(t, "id", p), v & 32 && R(t, "height", 20 * A[5] + "rem"), v & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", A[1]), v & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", A[10]), v & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", A[10] === !1 || A[6]);
8893
+ v & 394 && R(e, "transform", "translate(" + A[7] / 2 * A[3] * 3 + "px, " + A[8] / 2 * (A[1] ? -1 : 1) * A[3] * 3 + "px) scale(" + 1 / A[3] + ")"), v & 16 && R(s, "width", A[4] + "rem"), v & 4 && (h.innerHTML = A[2]), v & 8 && R(u, "transform", "scale(" + A[3] * 3 + ")"), v & 1 && p !== (p = "PanoSpatialTagPlugin__" + A[0]) && b(t, "id", p), v & 32 && R(t, "height", 20 * A[5] + "rem"), v & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", A[1]), v & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", A[10]), v & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", A[10] === !1 || A[6]);
8894
8894
  },
8895
8895
  i: te,
8896
8896
  o: te,
@@ -8900,14 +8900,14 @@ function uf(i) {
8900
8900
  };
8901
8901
  }
8902
8902
  function hf(i, t, e) {
8903
- let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: h } = t, { events: u } = t, { hooks: p } = t, m = 0, g = 0, A, v, w = setTimeout(
8903
+ let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: u } = t, { events: h } = t, { hooks: p } = t, m = 0, g = 0, A, v, w = setTimeout(
8904
8904
  () => {
8905
8905
  d || e(10, v = !0), w = void 0;
8906
8906
  },
8907
8907
  100
8908
8908
  );
8909
8909
  const y = (C) => {
8910
- const S = Object.keys(u);
8910
+ const S = Object.keys(h);
8911
8911
  let k = C.target;
8912
8912
  for (; k; ) {
8913
8913
  const F = k.getAttribute("class");
@@ -8920,7 +8920,7 @@ function hf(i, t, e) {
8920
8920
  break;
8921
8921
  }
8922
8922
  S.forEach((H) => {
8923
- F.includes(H) && u[H](n);
8923
+ F.includes(H) && h[H](n);
8924
8924
  }), k = k.parentNode;
8925
8925
  }
8926
8926
  };
@@ -8941,7 +8941,7 @@ function hf(i, t, e) {
8941
8941
  to(() => {
8942
8942
  e(7, m = A.offsetWidth), e(8, g = A.offsetHeight), !w && e(10, v = !d);
8943
8943
  }), wt(() => {
8944
- p.emit("destroyTag", { id: n }), x(), h();
8944
+ p.emit("destroyTag", { id: n }), x(), u();
8945
8945
  });
8946
8946
  function L(C) {
8947
8947
  ze[C ? "unshift" : "push"](() => {
@@ -8949,7 +8949,7 @@ function hf(i, t, e) {
8949
8949
  });
8950
8950
  }
8951
8951
  return i.$$set = (C) => {
8952
- "id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, h = C.dispose), "events" in C && e(14, u = C.events), "hooks" in C && e(15, p = C.hooks);
8952
+ "id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, u = C.dispose), "events" in C && e(14, h = C.events), "hooks" in C && e(15, p = C.hooks);
8953
8953
  }, [
8954
8954
  n,
8955
8955
  o,
@@ -8964,8 +8964,8 @@ function hf(i, t, e) {
8964
8964
  v,
8965
8965
  y,
8966
8966
  d,
8967
- h,
8968
8967
  u,
8968
+ h,
8969
8969
  p,
8970
8970
  L
8971
8971
  ];
@@ -9139,8 +9139,8 @@ class vf {
9139
9139
  const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", aA = (i, t) => {
9140
9140
  var X, U, de, ue, me, we, ke, He;
9141
9141
  let e = t == null ? void 0 : t.container, n = 1.4;
9142
- const o = (X = t == null ? void 0 : t.wait) != null ? X : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (de = t == null ? void 0 : t.minRad) != null ? de : Math.PI / 4, a = (ue = t == null ? void 0 : t.nearTolerance) != null ? ue : 100, l = (me = t == null ? void 0 : t.upsideHeight) != null ? me : 1.6, c = (we = t == null ? void 0 : t.minDistance) != null ? we : 1.2, d = (ke = t == null ? void 0 : t.maxDistance) != null ? ke : 3.5, h = bn(i), u = document.createElement("div");
9143
- u.classList.add("PanoSpatialTagPlugin"), Object.assign(u.style, mf);
9142
+ const o = (X = t == null ? void 0 : t.wait) != null ? X : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (de = t == null ? void 0 : t.minRad) != null ? de : Math.PI / 4, a = (ue = t == null ? void 0 : t.nearTolerance) != null ? ue : 100, l = (me = t == null ? void 0 : t.upsideHeight) != null ? me : 1.6, c = (we = t == null ? void 0 : t.minDistance) != null ? we : 1.2, d = (ke = t == null ? void 0 : t.maxDistance) != null ? ke : 3.5, u = bn(i), h = document.createElement("div");
9143
+ h.classList.add("PanoSpatialTagPlugin"), Object.assign(h.style, mf);
9144
9144
  const p = new nt();
9145
9145
  let m = new Image();
9146
9146
  m.src = bf;
@@ -9155,7 +9155,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9155
9155
  enabled: !0,
9156
9156
  forbidden: !0
9157
9157
  }, A = new cf({
9158
- target: u,
9158
+ target: h,
9159
9159
  props: { origins: g.origins }
9160
9160
  }), v = (se, ve) => {
9161
9161
  L(), ve && C();
@@ -9291,7 +9291,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9291
9291
  Ce.clone().add(vo),
9292
9292
  Ce.clone().add(new E.Vector3(0, Ii, 0)).add(vo),
9293
9293
  Ce.clone().add(new E.Vector3(0, Ii, 0))
9294
- ].map((dl) => sl.projectPoint(dl, new E.Vector3())), { container: al, dispose: ll } = h.create3DDomContainer(rl) || {}, cl = new ff({
9294
+ ].map((dl) => sl.projectPoint(dl, new E.Vector3())), { container: al, dispose: ll } = u.create3DDomContainer(rl) || {}, cl = new ff({
9295
9295
  target: al,
9296
9296
  props: {
9297
9297
  id: Pt,
@@ -9353,9 +9353,9 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9353
9353
  }, O = () => {
9354
9354
  i.once("renderFrame", L);
9355
9355
  }, W = () => {
9356
- e || (e = i.getElement().parentElement), e && e.appendChild(u), g.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", x), i.on("cameraUpdate", v);
9356
+ e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", x), i.on("cameraUpdate", v);
9357
9357
  }, Z = () => {
9358
- m = null, h.disposeAll(), A.$destroy(), g.tags.forEach((se) => {
9358
+ m = null, u.disposeAll(), A.$destroy(), g.tags.forEach((se) => {
9359
9359
  se.app.$destroy(), se = null;
9360
9360
  }), g.origins = [], g.tags = [], i.off("modelLoaded", W), i.off("renderFrame", L), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", x), i.off("cameraUpdate", v), i.off("dispose", Z), window.removeEventListener("resize", O, !1);
9361
9361
  };
@@ -9384,16 +9384,16 @@ function wf(i) {
9384
9384
  c() {
9385
9385
  t = j("div"), e = j("div"), n = j("span"), s = xe(o), r = V(), a = j("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), R(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), R(a, "height", `${i[0].strokeLength}px`), b(t, "class", l = je(Ze("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), R(t, "z-index", i[0].zIndex), R(t, "transform", i[0].transform);
9386
9386
  },
9387
- m(h, u) {
9388
- B(h, t, u), Q(t, e), Q(e, n), Q(n, s), Q(t, r), Q(t, a), c || (d = Ee(n, "click", i[1]), c = !0);
9387
+ m(u, h) {
9388
+ B(u, t, h), Q(t, e), Q(e, n), Q(n, s), Q(t, r), Q(t, a), c || (d = Ee(n, "click", i[1]), c = !0);
9389
9389
  },
9390
- p(h, [u]) {
9391
- u & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Me(s, o), u & 1 && R(e, "top", `-${h[0].strokeLength + 26}px`), u & 1 && R(a, "height", `${h[0].strokeLength}px`), u & 1 && l !== (l = je(Ze("item-label-item", { visible: h[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), u & 1 && R(t, "z-index", h[0].zIndex), u & 1 && R(t, "transform", h[0].transform);
9390
+ p(u, [h]) {
9391
+ h & 1 && o !== (o = (u[0].name.length > 6 ? `${u[0].name.slice(0, 6)}...` : u[0].name) + "") && Me(s, o), h & 1 && R(e, "top", `-${u[0].strokeLength + 26}px`), h & 1 && R(a, "height", `${u[0].strokeLength}px`), h & 1 && l !== (l = je(Ze("item-label-item", { visible: u[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), h & 1 && R(t, "z-index", u[0].zIndex), h & 1 && R(t, "transform", u[0].transform);
9392
9392
  },
9393
9393
  i: te,
9394
9394
  o: te,
9395
- d(h) {
9396
- h && M(t), c = !1, d();
9395
+ d(u) {
9396
+ u && M(t), c = !1, d();
9397
9397
  }
9398
9398
  };
9399
9399
  }
@@ -9504,7 +9504,7 @@ function If(i) {
9504
9504
  let Ls = 26, xf = 11;
9505
9505
  function kf(i, t, e) {
9506
9506
  const { Raycaster: n, Vector3: o } = E;
9507
- let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, h = null, u, p, m = [], g = !0;
9507
+ let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, u = null, h, p, m = [], g = !0;
9508
9508
  const A = (P, I) => {
9509
9509
  const z = new n(), O = P.camera.position.clone(), W = new o().fromArray(I.modelPosition), Z = W.distanceTo(O);
9510
9510
  z.set(O.clone(), W.clone().sub(O).normalize());
@@ -9547,7 +9547,7 @@ function kf(i, t, e) {
9547
9547
  return Z !== void 0 ? he(G({}, W), { zIndex: Z * 10 }) : W;
9548
9548
  });
9549
9549
  }, C = () => {
9550
- m = [], e(1, h = L(s, h));
9550
+ m = [], e(1, u = L(s, u));
9551
9551
  };
9552
9552
  eo(() => {
9553
9553
  H();
@@ -9556,7 +9556,7 @@ function kf(i, t, e) {
9556
9556
  e(4, g = !1), k();
9557
9557
  };
9558
9558
  Ye(() => {
9559
- e(1, h = a), d = a, C(), F(), s.on("cameraUpdate", S);
9559
+ e(1, u = a), d = a, C(), F(), s.on("cameraUpdate", S);
9560
9560
  });
9561
9561
  const k = Ha(
9562
9562
  () => {
@@ -9566,7 +9566,7 @@ function kf(i, t, e) {
9566
9566
  ), F = () => {
9567
9567
  window.addEventListener("resize", N, !1);
9568
9568
  }, H = () => {
9569
- d !== a && (e(1, h = a), d = a, C());
9569
+ d !== a && (e(1, u = a), d = a, C());
9570
9570
  }, N = () => {
9571
9571
  s.once("renderFrame", C);
9572
9572
  };
@@ -9574,14 +9574,14 @@ function kf(i, t, e) {
9574
9574
  s.off("cameraUpdate", S), window.removeEventListener("resize", N, !1);
9575
9575
  });
9576
9576
  function Y() {
9577
- u = this.clientWidth, p = this.clientHeight, e(2, u), e(3, p);
9577
+ h = this.clientWidth, p = this.clientHeight, e(2, h), e(3, p);
9578
9578
  }
9579
9579
  return i.$$set = (P) => {
9580
9580
  "five" in P && e(5, s = P.five), "modelOcclusionEnable" in P && e(6, r = P.modelOcclusionEnable), "itemLabels" in P && e(7, a = P.itemLabels), "hooks" in P && e(0, l = P.hooks), "displayStrategyType" in P && e(8, c = P.displayStrategyType);
9581
9581
  }, [
9582
9582
  l,
9583
- h,
9584
9583
  u,
9584
+ h,
9585
9585
  p,
9586
9586
  g,
9587
9587
  s,
@@ -9616,7 +9616,7 @@ function Lf(i) {
9616
9616
  }, t));
9617
9617
  }
9618
9618
  const lA = (i, t) => {
9619
- var u, p;
9619
+ var h, p;
9620
9620
  const e = {
9621
9621
  container: document.createElement("div"),
9622
9622
  data: null,
@@ -9626,7 +9626,7 @@ const lA = (i, t) => {
9626
9626
  wrapper: null,
9627
9627
  app: void 0,
9628
9628
  hooks: new nt(),
9629
- modelOcclusionEnable: (u = t == null ? void 0 : t.modelOcclusionEnable) != null ? u : !0,
9629
+ modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
9630
9630
  displayStrategyType: (p = t == null ? void 0 : t.displayStrategyType) != null ? p : Yt.SMALL
9631
9631
  };
9632
9632
  e.container.setAttribute("class", "model-item-label-plugin-container"), e.container.style.cssText = `
@@ -9664,10 +9664,10 @@ const lA = (i, t) => {
9664
9664
  });
9665
9665
  }
9666
9666
  }, c = () => {
9667
- i.on("modeChange", h), i.once("dispose", a);
9667
+ i.on("modeChange", u), i.once("dispose", a);
9668
9668
  }, d = () => {
9669
- i.off("modeChange", h);
9670
- }, h = (m) => {
9669
+ i.off("modeChange", u);
9670
+ }, u = (m) => {
9671
9671
  if (!!e.enabled) {
9672
9672
  if (m !== Be.Mode.Floorplan) {
9673
9673
  e.fiveModeEnabled = !1, l();
@@ -9795,7 +9795,7 @@ const dA = (i, { videoElement: t }) => {
9795
9795
  }), d = (v) => {
9796
9796
  const w = new E.TextureLoader().load(v);
9797
9797
  return w.minFilter = E.LinearFilter, w.magFilter = E.LinearFilter, w.format = E.RGBFormat, w;
9798
- }, h = (v, w) => new Promise((y, x) => {
9798
+ }, u = (v, w) => new Promise((y, x) => {
9799
9799
  const L = new XMLHttpRequest();
9800
9800
  L.onreadystatechange = () => {
9801
9801
  if (L.readyState == 4)
@@ -9807,9 +9807,9 @@ const dA = (i, { videoElement: t }) => {
9807
9807
  } else
9808
9808
  x(new Error("Video download Error: " + L.status));
9809
9809
  }, L.onerror = (C) => x(C), L.open("GET", v), L.responseType = "blob", L.send();
9810
- }), u = (v, w) => J(void 0, null, function* () {
9810
+ }), h = (v, w) => J(void 0, null, function* () {
9811
9811
  const { video_src: y, video_poster_src: x, points: L } = v;
9812
- e.videoSource = y, e.rectPoints = Sf(L).map((C) => C.map(({ x: S, y: k, z: F }) => new E.Vector3(S, k, F))), e.imageTexture = d(x), w && (e.videoElement = w), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
9812
+ e.videoSource = y, e.rectPoints = Sf(L).map((C) => C.map(({ x: S, y: k, z: F }) => new E.Vector3(S, k, F))), e.imageTexture = d(x), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
9813
9813
  }), p = (v) => {
9814
9814
  if (!e.enabled)
9815
9815
  return;
@@ -9846,7 +9846,7 @@ const dA = (i, { videoElement: t }) => {
9846
9846
  e.videoMeshes.forEach((v) => {
9847
9847
  v && (v.needsRender = !0);
9848
9848
  });
9849
- }), { enable: a, disable: l, load: u, dispose: A, state: e, css3DRenderPlugin: n };
9849
+ }), { enable: a, disable: l, load: h, dispose: A, state: e, css3DRenderPlugin: n };
9850
9850
  };
9851
9851
  function zf(i) {
9852
9852
  ae(i, "svelte-gduhqw", `.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
@@ -9859,14 +9859,14 @@ function Mf(i) {
9859
9859
  c() {
9860
9860
  d && d.c(), t = V(), e = j("div"), n = j("span"), s = xe(o), r = V(), a = j("span"), c = xe(l), b(n, "class", "item-model svelte-gduhqw"), b(a, "class", "item-name svelte-gduhqw"), b(e, "class", "item-label-text svelte-gduhqw");
9861
9861
  },
9862
- m(h, u) {
9863
- d && d.m(h, u), B(h, t, u), B(h, e, u), Q(e, n), Q(n, s), Q(e, r), Q(e, a), Q(a, c);
9862
+ m(u, h) {
9863
+ d && d.m(u, h), B(u, t, h), B(u, e, h), Q(e, n), Q(n, s), Q(e, r), Q(e, a), Q(a, c);
9864
9864
  },
9865
- p(h, u) {
9866
- h[0].icon ? d ? d.p(h, u) : (d = Ss(h), d.c(), d.m(t.parentNode, t)) : d && (d.d(1), d = null), u & 1 && o !== (o = (h[0].code || h[0].id) + "") && Me(s, o), u & 1 && l !== (l = h[0].name + "") && Me(c, l);
9865
+ p(u, h) {
9866
+ u[0].icon ? d ? d.p(u, h) : (d = Ss(u), d.c(), d.m(t.parentNode, t)) : d && (d.d(1), d = null), h & 1 && o !== (o = (u[0].code || u[0].id) + "") && Me(s, o), h & 1 && l !== (l = u[0].name + "") && Me(c, l);
9867
9867
  },
9868
- d(h) {
9869
- d && d.d(h), h && M(t), h && M(e);
9868
+ d(u) {
9869
+ d && d.d(u), u && M(t), u && M(e);
9870
9870
  }
9871
9871
  };
9872
9872
  }
@@ -9904,10 +9904,10 @@ function Ss(i) {
9904
9904
  }
9905
9905
  function Bf(i) {
9906
9906
  let t, e, n, o, s, r, a, l, c, d;
9907
- function h(m, g) {
9907
+ function u(m, g) {
9908
9908
  return g & 1 && (n = null), n == null && (n = !!Boolean(typeof m[0].render == "function")), n ? Tf : Mf;
9909
9909
  }
9910
- let u = h(i, -1), p = u(i);
9910
+ let h = u(i, -1), p = h(i);
9911
9911
  return {
9912
9912
  c() {
9913
9913
  t = j("div"), e = j("div"), p.c(), s = V(), r = j("div"), b(e, "class", o = je(Ze("item-label-item__text-wrap", {
@@ -9918,7 +9918,7 @@ function Bf(i) {
9918
9918
  B(m, t, g), Q(t, e), p.m(e, null), Q(t, s), Q(t, r), c || (d = Ee(e, "click", i[4]), c = !0);
9919
9919
  },
9920
9920
  p(m, [g]) {
9921
- u === (u = h(m, g)) && p ? p.p(m, g) : (p.d(1), p = u(m), p && (p.c(), p.m(e, null))), g & 1 && o !== (o = je(Ze("item-label-item__text-wrap", {
9921
+ h === (h = u(m, g)) && p ? p.p(m, g) : (p.d(1), p = h(m), p && (p.c(), p.m(e, null))), g & 1 && o !== (o = je(Ze("item-label-item__text-wrap", {
9922
9922
  "item-label-item__custom": Boolean(typeof m[0].render == "function")
9923
9923
  })) + " svelte-gduhqw") && b(e, "class", o), g & 1 && R(e, "bottom", `${m[0].strokeLength}px`), g & 2 && a !== (a = je(Ze("item-label-item__bar", { anchor: m[1] })) + " svelte-gduhqw") && b(r, "class", a), g & 1 && R(r, "height", `${m[0].strokeLength}px`), g & 1 && l !== (l = je(Ze("item-label-item", { fold: m[0].isFold })) + " svelte-gduhqw") && b(t, "class", l), g & 1 && R(t, "z-index", m[0].zIndex), g & 1 && R(t, "transform", m[0].transform);
9924
9924
  },
@@ -9935,18 +9935,18 @@ function jf(i, t, e) {
9935
9935
  o.emit("onLabelClick", n);
9936
9936
  }
9937
9937
  let l;
9938
- function c(h) {
9939
- ze[h ? "unshift" : "push"](() => {
9940
- l = h, e(3, l);
9938
+ function c(u) {
9939
+ ze[u ? "unshift" : "push"](() => {
9940
+ l = u, e(3, l);
9941
9941
  });
9942
9942
  }
9943
- const d = (h) => r(n);
9944
- return i.$$set = (h) => {
9945
- "itemLabel" in h && e(0, n = h.itemLabel), "hooks" in h && e(5, o = h.hooks), "anchorEnabled" in h && e(1, s = h.anchorEnabled), "onIconClick" in h && e(2, r = h.onIconClick);
9943
+ const d = (u) => r(n);
9944
+ return i.$$set = (u) => {
9945
+ "itemLabel" in u && e(0, n = u.itemLabel), "hooks" in u && e(5, o = u.hooks), "anchorEnabled" in u && e(1, s = u.anchorEnabled), "onIconClick" in u && e(2, r = u.onIconClick);
9946
9946
  }, i.$$.update = () => {
9947
9947
  if (i.$$.dirty & 9 && typeof n.render == "function" && l && l.children.length === 0) {
9948
- const h = n.render(n);
9949
- h && l.appendChild(h);
9948
+ const u = n.render(n);
9949
+ u && l.appendChild(u);
9950
9950
  }
9951
9951
  }, [
9952
9952
  n,
@@ -10114,7 +10114,7 @@ function Gf(i) {
10114
10114
  let Nf = 11;
10115
10115
  function Wf(i, t, e) {
10116
10116
  const { Raycaster: n, Vector3: o } = E;
10117
- let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, h = null, u = null, p = (s == null ? void 0 : s.currentMode) === Be.Mode.Panorama, m, g, A = [], v = !0;
10117
+ let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, u = null, h = null, p = (s == null ? void 0 : s.currentMode) === Be.Mode.Panorama, m, g, A = [], v = !0;
10118
10118
  const w = (z, O) => {
10119
10119
  const W = z.camera.position.clone(), Z = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), X = Z.distanceTo(W);
10120
10120
  return d !== void 0 && z.state.mode === Be.Mode.Panorama && X > d ? !1 : zs(z, Z.clone().sub(W).normalize(), W, X);
@@ -10149,7 +10149,7 @@ function Wf(i, t, e) {
10149
10149
  return U !== void 0 ? he(G({}, X), { zIndex: U * 10 }) : X;
10150
10150
  });
10151
10151
  }, C = () => {
10152
- A = [], e(1, u = L(s, u));
10152
+ A = [], e(1, h = L(s, h));
10153
10153
  }, S = () => {
10154
10154
  e(5, v = !1), k();
10155
10155
  }, k = Ha(
@@ -10162,7 +10162,7 @@ function Wf(i, t, e) {
10162
10162
  }, H = () => {
10163
10163
  window.addEventListener("resize", F, !1);
10164
10164
  }, N = () => {
10165
- h !== a && (e(1, u = Ms(a)), h = a, C());
10165
+ u !== a && (e(1, h = Ms(a)), u = a, C());
10166
10166
  }, Y = (z, O) => {
10167
10167
  let W = [];
10168
10168
  for (let X = 0; X < O.length; X++) {
@@ -10192,10 +10192,10 @@ function Wf(i, t, e) {
10192
10192
  mode: Be.Mode.Panorama,
10193
10193
  panoIndex: z.observerIndex
10194
10194
  })), s.once("initAnimationEnded", () => {
10195
- e(1, u = u.map((ue) => he(G({}, ue), {
10195
+ e(1, h = h.map((ue) => he(G({}, ue), {
10196
10196
  isFold: ue.id !== z.id
10197
10197
  }))), s.once("cameraUpdate", () => {
10198
- e(1, u = u.map((ue) => he(G({}, ue), { isFold: !1 })));
10198
+ e(1, h = h.map((ue) => he(G({}, ue), { isFold: !1 })));
10199
10199
  });
10200
10200
  });
10201
10201
  }
@@ -10203,7 +10203,7 @@ function Wf(i, t, e) {
10203
10203
  eo(() => {
10204
10204
  N();
10205
10205
  }), Ye(() => {
10206
- e(1, u = Ms(a)), h = a, C(), H(), s.on("cameraUpdate", S);
10206
+ e(1, h = Ms(a)), u = a, C(), H(), s.on("cameraUpdate", S);
10207
10207
  }), wt(() => {
10208
10208
  s.off("cameraUpdate", S), window.removeEventListener("resize", F, !1);
10209
10209
  });
@@ -10214,7 +10214,7 @@ function Wf(i, t, e) {
10214
10214
  "five" in z && e(7, s = z.five), "modelOcclusionEnable" in z && e(8, r = z.modelOcclusionEnable), "itemLabels" in z && e(9, a = z.itemLabels), "hooks" in z && e(0, l = z.hooks), "displayStrategyType" in z && e(10, c = z.displayStrategyType), "maxVisibleDistance" in z && e(11, d = z.maxVisibleDistance);
10215
10215
  }, [
10216
10216
  l,
10217
- u,
10217
+ h,
10218
10218
  p,
10219
10219
  m,
10220
10220
  g,
@@ -10256,7 +10256,7 @@ function Yf(i) {
10256
10256
  }));
10257
10257
  }
10258
10258
  const Uf = void 0, hA = (i, t) => {
10259
- var u, p, m, g;
10259
+ var h, p, m, g;
10260
10260
  const e = {
10261
10261
  container: document.createElement("div"),
10262
10262
  data: null,
@@ -10266,7 +10266,7 @@ const Uf = void 0, hA = (i, t) => {
10266
10266
  wrapper: null,
10267
10267
  app: void 0,
10268
10268
  hooks: new nt(),
10269
- modelOcclusionEnable: (u = t == null ? void 0 : t.modelOcclusionEnable) != null ? u : !0,
10269
+ modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
10270
10270
  onlyVisibleInPanorama: (p = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? p : !0,
10271
10271
  displayStrategyType: (m = t == null ? void 0 : t.displayStrategyType) != null ? m : Ut.SMALL,
10272
10272
  maxVisibleDistance: (g = t == null ? void 0 : t.maxVisibleDistance) != null ? g : Uf
@@ -10308,10 +10308,10 @@ const Uf = void 0, hA = (i, t) => {
10308
10308
  });
10309
10309
  }
10310
10310
  }, c = () => {
10311
- i.on("modeChange", h), i.once("dispose", a);
10311
+ i.on("modeChange", u), i.once("dispose", a);
10312
10312
  }, d = () => {
10313
- i.off("modeChange", h);
10314
- }, h = (A) => {
10313
+ i.off("modeChange", u);
10314
+ }, u = (A) => {
10315
10315
  if (A !== Be.Mode.Panorama) {
10316
10316
  e.fiveModeEnabled = !1, r();
10317
10317
  return;
@@ -10396,7 +10396,7 @@ function Zf(i) {
10396
10396
  };
10397
10397
  }
10398
10398
  function _f(i, t, e) {
10399
- let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: d, cameraToward: h, name: u } = n, p = 0;
10399
+ let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: d, cameraToward: u, name: h } = n, p = 0;
10400
10400
  const m = () => {
10401
10401
  if (!r || !a || !l || !s)
10402
10402
  return;
@@ -10422,8 +10422,8 @@ function _f(i, t, e) {
10422
10422
  a,
10423
10423
  l,
10424
10424
  c,
10425
- h,
10426
10425
  u,
10426
+ h,
10427
10427
  g,
10428
10428
  A
10429
10429
  ];
@@ -10473,11 +10473,11 @@ class im extends Jf {
10473
10473
  f(this, "initRoomObservers", () => {
10474
10474
  var s, r;
10475
10475
  const e = this.floorplanServerData.computed_data.floor_datas || [], o = (((r = (s = this.five) == null ? void 0 : s.work) == null ? void 0 : r.observers) || []).map((a) => {
10476
- const l = a.panoIndex, c = a.floorIndex, d = e == null ? void 0 : e.find((h) => h.floor_index === c);
10476
+ const l = a.panoIndex, c = a.floorIndex, d = e == null ? void 0 : e.find((u) => u.floor_index === c);
10477
10477
  if (d) {
10478
- const h = d.rooms.find((u) => u.observer_indexs.includes(l));
10479
- if (h)
10480
- return { panoIndex: l, floorIndex: c, name: h.name };
10478
+ const u = d.rooms.find((h) => h.observer_indexs.includes(l));
10479
+ if (u)
10480
+ return { panoIndex: l, floorIndex: c, name: u.name };
10481
10481
  }
10482
10482
  }).filter(Boolean);
10483
10483
  this.roomObservers = o;
@@ -10500,13 +10500,13 @@ class im extends Jf {
10500
10500
  return this.doorLabels.forEach((l, c) => {
10501
10501
  if (l.roomName === n.name)
10502
10502
  return;
10503
- const d = l.position.clone(), h = d.distanceTo(s);
10504
- if (h < this.MinVisibledistance || h > this.MaxVisibledistance)
10503
+ const d = l.position.clone(), u = d.distanceTo(s);
10504
+ if (u < this.MinVisibledistance || u > this.MaxVisibledistance)
10505
10505
  return;
10506
- const u = new Qt(), p = d.clone().sub(s).normalize();
10507
- u.set(s, p);
10508
- const [m] = this.five.model.intersectRaycaster(u);
10509
- m && m.distance + 0.1 < h || a.push(c);
10506
+ const h = new Qt(), p = d.clone().sub(s).normalize();
10507
+ h.set(s, p);
10508
+ const [m] = this.five.model.intersectRaycaster(h);
10509
+ m && m.distance + 0.1 < u || a.push(c);
10510
10510
  }), this.visibleLabelMap.set(e, a), a;
10511
10511
  }
10512
10512
  })();
@@ -10515,7 +10515,7 @@ class im extends Jf {
10515
10515
  }), this.fixDoorPosition();
10516
10516
  });
10517
10517
  f(this, "fixDoorPosition", () => {
10518
- var d, h, u, p, m, g, A, v, w, y, x, L;
10518
+ var d, u, h, p, m, g, A, v, w, y, x, L;
10519
10519
  const { panoIndex: e, camera: n } = this.five;
10520
10520
  if (e === null)
10521
10521
  return;
@@ -10538,7 +10538,7 @@ class im extends Jf {
10538
10538
  const O = {
10539
10539
  left: s * F / 100,
10540
10540
  top: r * H / 100,
10541
- width: (u = (h = (d = I.children) == null ? void 0 : d[0]) == null ? void 0 : h.clientWidth) != null ? u : 0,
10541
+ width: (h = (u = (d = I.children) == null ? void 0 : d[0]) == null ? void 0 : u.clientWidth) != null ? h : 0,
10542
10542
  height: (g = (m = (p = I.children) == null ? void 0 : p[0]) == null ? void 0 : m.clientHeight) != null ? g : 0
10543
10543
  }, W = {
10544
10544
  left: s * Y / 100,
@@ -10558,16 +10558,16 @@ class im extends Jf {
10558
10558
  let s, r, a = 1 / 0;
10559
10559
  for (const l of o.observers)
10560
10560
  if (this.roomObservers.find((d) => d.panoIndex === l.panoIndex && d.name === e)) {
10561
- const d = l.standingPosition, h = n.distanceTo(d);
10562
- h < a && (s = l.panoIndex, r = d.clone().sub(n).normalize(), a = h);
10561
+ const d = l.standingPosition, u = n.distanceTo(d);
10562
+ u < a && (s = l.panoIndex, r = d.clone().sub(n).normalize(), a = u);
10563
10563
  }
10564
10564
  if (r !== null && s !== null) {
10565
10565
  const l = {};
10566
10566
  if (a > 0) {
10567
- const d = new _(0, 0, -1), h = r.clone(), u = new Xr();
10568
- u.setFromUnitVectors(d, h);
10567
+ const d = new _(0, 0, -1), u = r.clone(), h = new Xr();
10568
+ h.setFromUnitVectors(d, u);
10569
10569
  const p = new yo();
10570
- p.setFromQuaternion(u, "YXZ"), l.longitude = p.y;
10570
+ p.setFromQuaternion(h, "YXZ"), l.longitude = p.y;
10571
10571
  }
10572
10572
  this.five.emit("wantsToMoveToPano", s, {}, !0) || this.five.moveToPano(s, { longitude: l.longitude });
10573
10573
  }
@@ -10578,19 +10578,19 @@ class im extends Jf {
10578
10578
  const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index, o = n !== void 0 && ((s = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : s.rooms);
10579
10579
  this.rooms = o, this.rooms && this.rooms.length > 0 && this.rooms.forEach((r) => {
10580
10580
  var c;
10581
- const a = (c = this.floorplanServerData.computed_data.doors) == null ? void 0 : c.filter((d) => !!(d && d.name === r.name)), l = this.five.work.observers.filter((d, h) => !!r.observer_indexs.find((u) => u === h));
10581
+ const a = (c = this.floorplanServerData.computed_data.doors) == null ? void 0 : c.filter((d) => !!(d && d.name === r.name)), l = this.five.work.observers.filter((d, u) => !!r.observer_indexs.find((h) => h === u));
10582
10582
  a && a.forEach((d) => {
10583
- const h = d.position;
10584
- let u = 1 / 0, p;
10583
+ const u = d.position;
10584
+ let h = 1 / 0, p;
10585
10585
  l.forEach((g) => {
10586
10586
  const A = g.standingPosition, v = {
10587
10587
  x: A.x,
10588
10588
  y: A.y,
10589
10589
  z: A.z
10590
- }, w = em(h, v);
10591
- w < u && (u = w, p = v);
10592
- }), p && (h.y = p.y + 0.01);
10593
- const m = new _(h.x, h.y, h.z);
10590
+ }, w = em(u, v);
10591
+ w < h && (h = w, p = v);
10592
+ }), p && (u.y = p.y + 0.01);
10593
+ const m = new _(u.x, u.y, u.z);
10594
10594
  m.add(new _(-0.2, 1.8, 0).applyEuler(new yo(0, d.rad, 0))), this.doorLabels.push({
10595
10595
  roomName: r.name,
10596
10596
  name: d.name,
@@ -10655,8 +10655,8 @@ function lm(i, t) {
10655
10655
  return console.warn("positionList length must be greater than 1"), [];
10656
10656
  const e = (r = t == null ? void 0 : t.unitWidth) != null ? r : 0.5, n = (a = t == null ? void 0 : t.unitHeight) != null ? a : 0.5, o = (l = t == null ? void 0 : t.skipPanoIndexMesh) != null ? l : !1, s = new E.CatmullRomCurve3(i, !1, "catmullrom", 1);
10657
10657
  if (o) {
10658
- const c = Math.ceil(s.getLength() / n * 1.5), d = s.getPoints(c), h = [];
10659
- let u = 0;
10658
+ const c = Math.ceil(s.getLength() / n * 1.5), d = s.getPoints(c), u = [];
10659
+ let h = 0;
10660
10660
  const p = i;
10661
10661
  return p.forEach((m, g) => {
10662
10662
  let A = 0, v = 99999999;
@@ -10665,11 +10665,11 @@ function lm(i, t) {
10665
10665
  k < v && (A = S, v = k);
10666
10666
  });
10667
10667
  const w = d[A + 1], y = w == null ? void 0 : w.distanceTo(m), x = d[A - 1], L = x == null ? void 0 : x.distanceTo(m);
10668
- if (A > u && A - u > 1) {
10668
+ if (A > h && A - h > 1) {
10669
10669
  let C = A;
10670
10670
  x !== void 0 && L > 0.8 && (C = A + 1), x !== void 0 && L > 0.2 && L < 0.3 ? C = A : v > 0.2 && v < 0.3 && (C = A + 1);
10671
- let S = u;
10672
- if (w !== void 0 && y > 0.2 && y < 0.3 ? S = u + 1 : v > 0.2 && v < 0.3 && (S = u), d[S] && d[S + 1]) {
10671
+ let S = h;
10672
+ if (w !== void 0 && y > 0.2 && y < 0.3 ? S = h + 1 : v > 0.2 && v < 0.3 && (S = h), d[S] && d[S + 1]) {
10673
10673
  const H = p[g - 1];
10674
10674
  if (H)
10675
10675
  if (H.equals(d[S]))
@@ -10682,16 +10682,16 @@ function lm(i, t) {
10682
10682
  if (C < S || C - S <= 1)
10683
10683
  return;
10684
10684
  const k = d.slice(S, C), F = Qs(k, e, n);
10685
- h.push(F), u = A;
10685
+ u.push(F), h = A;
10686
10686
  }
10687
- }), h;
10687
+ }), u;
10688
10688
  } else {
10689
10689
  const c = Math.ceil(s.getLength()), d = s.getPoints(c);
10690
10690
  return [Qs(d, e, n)];
10691
10691
  }
10692
10692
  }
10693
10693
  function Qs(i, t, e) {
10694
- const n = t / 2, o = e / t, s = i.length, r = zl(i.map((v) => [v.x, v.z])), l = (i.length - 1) * om * sm, c = 2 * s, d = c * rm, h = c * am, u = new Uint32Array(l), p = new Float32Array(d), m = new Float32Array(h);
10694
+ const n = t / 2, o = e / t, s = i.length, r = zl(i.map((v) => [v.x, v.z])), l = (i.length - 1) * om * sm, c = 2 * s, d = c * rm, u = c * am, h = new Uint32Array(l), p = new Float32Array(d), m = new Float32Array(u);
10695
10695
  i.forEach((v, w) => {
10696
10696
  });
10697
10697
  let g = 0;
@@ -10701,10 +10701,10 @@ function Qs(i, t, e) {
10701
10701
  const F = new _(L - w * n, C + 0.05, S - y * n);
10702
10702
  p[v * 6 + 3] = F.x, p[v * 6 + 4] = F.y, p[v * 6 + 5] = F.z, g += v > 0 ? i[v - 1].clone().sub(i[v]).length() : 0;
10703
10703
  const H = g / t / o;
10704
- m[v * 4 + 0] = 0, m[v * 4 + 1] = H, m[v * 4 + 2] = 1, m[v * 4 + 3] = H, v !== i.length - 1 && (u[v * 6 + 0] = v * 2 + 0, u[v * 6 + 1] = v * 2 + 2, u[v * 6 + 2] = v * 2 + 1, u[v * 6 + 3] = v * 2 + 2, u[v * 6 + 4] = v * 2 + 3, u[v * 6 + 5] = v * 2 + 1);
10704
+ m[v * 4 + 0] = 0, m[v * 4 + 1] = H, m[v * 4 + 2] = 1, m[v * 4 + 3] = H, v !== i.length - 1 && (h[v * 6 + 0] = v * 2 + 0, h[v * 6 + 1] = v * 2 + 2, h[v * 6 + 2] = v * 2 + 1, h[v * 6 + 3] = v * 2 + 2, h[v * 6 + 4] = v * 2 + 3, h[v * 6 + 5] = v * 2 + 1);
10705
10705
  }
10706
10706
  const A = new E.BufferGeometry();
10707
- return A.setAttribute("position", new E.BufferAttribute(p, 3)), A.setAttribute("uv", new E.BufferAttribute(m, 2)), A.setIndex(new E.BufferAttribute(u, 1)), A;
10707
+ return A.setAttribute("position", new E.BufferAttribute(p, 3)), A.setAttribute("uv", new E.BufferAttribute(m, 2)), A.setIndex(new E.BufferAttribute(h, 1)), A;
10708
10708
  }
10709
10709
  function cm(i) {
10710
10710
  const t = new E.TextureLoader().load(i.textureUrl);
@@ -10796,9 +10796,9 @@ class Ga extends Ot {
10796
10796
  }
10797
10797
  getLine(e) {
10798
10798
  var a, l, c, d;
10799
- const n = new E.Group(), o = e.panoIndexList.map((h) => {
10800
- var u;
10801
- return (u = this.five.work.observers[h]) == null ? void 0 : u.standingPosition;
10799
+ const n = new E.Group(), o = e.panoIndexList.map((u) => {
10800
+ var h;
10801
+ return (h = this.five.work.observers[u]) == null ? void 0 : h.standingPosition;
10802
10802
  }).filter(Bt), s = lm(o, {
10803
10803
  skipPanoIndexMesh: (a = e.skipPanoIndexMesh) != null ? a : !0,
10804
10804
  unitWidth: (l = e.unitWidth) != null ? l : 0.6,
@@ -10807,9 +10807,9 @@ class Ga extends Ot {
10807
10807
  if (!s)
10808
10808
  return;
10809
10809
  const r = cm({ textureUrl: (d = e.arrowTextureUrl) != null ? d : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" });
10810
- return s.forEach((h) => {
10811
- const u = new E.Mesh(h, r);
10812
- u.name = Rs("route-line-mesh"), n.add(u);
10810
+ return s.forEach((u) => {
10811
+ const h = new E.Mesh(u, r);
10812
+ h.name = Rs("route-line-mesh"), n.add(h);
10813
10813
  }), n;
10814
10814
  }
10815
10815
  waitFiveModelLoaded() {
@@ -10913,10 +10913,10 @@ class Xa extends Ot {
10913
10913
  }
10914
10914
  load(e, n, o) {
10915
10915
  return J(this, null, function* () {
10916
- var d, h, u, p, m;
10916
+ var d, u, h, p, m;
10917
10917
  if (this.state.disposed)
10918
10918
  return Os();
10919
- this.privateState.fiveOriginGetProgress || (h = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && h.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (p = (u = this.five.controller) == null ? void 0 : u.cameraMotion) == null ? void 0 : p.getProgress), this.clear();
10919
+ this.privateState.fiveOriginGetProgress || (u = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && u.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (p = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : p.getProgress), this.clear();
10920
10920
  const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
10921
10921
  this.data = r, this.hooks.emit("dataChange", r, s);
10922
10922
  let a = [], l;
@@ -10998,25 +10998,25 @@ class Xa extends Ot {
10998
10998
  };
10999
10999
  if (o.panoIndexList) {
11000
11000
  let s = [];
11001
- const { moveEffect: r, moveToFirstPanoEffect: a } = o;
11002
- return this.privateState.moveToFirstPanoEffect = a, o.panoIndexList.forEach((l, c) => {
11003
- const d = (() => {
11004
- var g, A, v, w;
11005
- const h = o.panoIndexList.slice(c).find((y) => y !== l);
11001
+ const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
11002
+ return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, d) => {
11003
+ const u = (() => {
11004
+ var A, v, w, y;
11005
+ const h = o.panoIndexList.slice(d).find((x) => x !== c);
11006
11006
  if (h === void 0)
11007
11007
  return;
11008
- const u = (g = n[l]) == null ? void 0 : g.position, p = (A = n[h]) == null ? void 0 : A.position;
11009
- if (!p || !u || ((v = n[l]) == null ? void 0 : v.floorIndex) !== ((w = n[h]) == null ? void 0 : w.floorIndex))
11008
+ const p = (A = n[c]) == null ? void 0 : A.position, m = (v = n[h]) == null ? void 0 : v.position;
11009
+ if (!m || !p || ((w = n[c]) == null ? void 0 : w.floorIndex) !== ((y = n[h]) == null ? void 0 : y.floorIndex))
11010
11010
  return;
11011
- const m = new E.Vector3().subVectors(p, u);
11012
- return pm(m);
11011
+ const g = new E.Vector3().subVectors(m, p);
11012
+ return pm(g);
11013
11013
  })();
11014
11014
  o.moveType === void 0 || o.moveType === "justMove" ? s.push({
11015
- moveIndex: c,
11015
+ moveIndex: d,
11016
11016
  stay: o.stay,
11017
- data: G({ effect: "Move", panoIndex: l, moveEffect: r }, d != null ? d : {})
11018
- }) : 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) }));
11019
- }), { keyframesId: Fe(), keyframes: s.map((l, c) => G({ id: Fe(), index: c }, l)) };
11017
+ data: G({ effect: "Move", panoIndex: c, moveEffect: r }, u != null ? u : {})
11018
+ }) : o.moveType === "moveAndRotate" && (s.push({ moveIndex: d, stay: o.stay, data: { effect: "Move", panoIndex: c, moveEffect: r } }), u && s.push({ moveIndex: d, stay: o.stay, data: G({ effect: "Rotate", panoIndex: c }, u) }));
11019
+ }), { keyframesId: Fe(), keyframes: s.map((c, d) => G({ id: Fe(), index: d }, c)) };
11020
11020
  } else
11021
11021
  throw new Error("format error: data no keyframes or no panoIndexList");
11022
11022
  });
@@ -11048,7 +11048,7 @@ class Xa extends Ot {
11048
11048
  const l = n.keyframes, c = this.getPauseData();
11049
11049
  (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (p = e == null ? void 0 : e.userAction) != null ? p : !0 });
11050
11050
  let d = !1;
11051
- const u = yield (() => J(this, null, function* () {
11051
+ const h = yield (() => J(this, null, function* () {
11052
11052
  var m, g;
11053
11053
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
11054
11054
  return e.playFromIndex;
@@ -11056,7 +11056,10 @@ class Xa extends Ot {
11056
11056
  return (m = this.data) == null ? void 0 : m.keyframes.findIndex((A) => A.id === e.playFromId);
11057
11057
  if (c != null && c.keyframeId) {
11058
11058
  const A = (g = this.data) == null ? void 0 : g.keyframes.find((v) => v.id === c.keyframeId);
11059
- if (c != null && c.fiveState && (yield this.move(c.fiveState, { moveEffect: s.moveToFirstPanoEffect })), A) {
11059
+ if (c != null && c.fiveState && (yield this.move(c.fiveState, {
11060
+ moveEffect: s.moveToFirstPanoEffect,
11061
+ duration: s.moveToFirstPanoDuration
11062
+ })), A) {
11060
11063
  if (A.data.effect === "Move")
11061
11064
  return A.index;
11062
11065
  if (A.data.effect === "Rotate") {
@@ -11070,11 +11073,11 @@ class Xa extends Ot {
11070
11073
  for (const m of l) {
11071
11074
  if (s.broke || !o.playing || !s.playing || a !== s.playId)
11072
11075
  return;
11073
- if (!(u !== void 0 && m.index < u))
11076
+ if (!(h !== void 0 && m.index < h))
11074
11077
  try {
11075
11078
  r.emit("playIndexChange", m.index, m), yield this.playKeyframe(m, {
11076
11079
  moveEffect: d === !1 ? s.moveToFirstPanoEffect : void 0,
11077
- duration: 800
11080
+ duration: d === !1 && typeof s.moveToFirstPanoDuration == "number" ? s.moveToFirstPanoDuration : 800
11078
11081
  }), m.stay && (yield Am(m.stay)), d === !1 && (d = !0);
11079
11082
  } catch (g) {
11080
11083
  return Promise.resolve("broke");
@@ -11107,7 +11110,7 @@ class Xa extends Ot {
11107
11110
  return J(this, null, function* () {
11108
11111
  var s;
11109
11112
  const o = e.data;
11110
- if ((s = n == null ? void 0 : n.duration) != null || e.start !== void 0 && e.end !== void 0 && e.end - e.start, !!o)
11113
+ if (n.duration = (s = n == null ? void 0 : n.duration) != null ? s : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!o)
11111
11114
  return new Promise((r, a) => {
11112
11115
  let l = !1;
11113
11116
  this.addInterruptListener(() => {
@@ -11168,27 +11171,29 @@ class Xa extends Ot {
11168
11171
  yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
11169
11172
  else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
11170
11173
  return yield this.changePano(e, n);
11171
- yield this.updateCamera(e, n == null ? void 0 : n.duration);
11174
+ yield this.updateCamera(e, n);
11172
11175
  });
11173
11176
  }
11174
- updateCamera(e, n = 800) {
11177
+ updateCamera(e, n) {
11175
11178
  return J(this, null, function* () {
11176
- const { five: o, privateState: s, state: r } = this;
11177
- let a = n;
11178
- const l = (() => {
11179
- var u, p;
11180
- const d = (u = r.config) == null ? void 0 : u.speedConfig, h = (p = e.rotateSpeed) != null ? p : d == null ? void 0 : d.rotateSpeed;
11179
+ const { five: o, privateState: s, state: r } = this, a = (() => {
11180
+ var h, p;
11181
+ const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (p = e.rotateSpeed) != null ? p : d == null ? void 0 : d.rotateSpeed;
11181
11182
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
11182
- return h;
11183
- if (h !== void 0)
11184
- return d.rotateSpeedUnit === "rad/ms" ? h : h / 1e3;
11183
+ return u;
11184
+ if (u !== void 0)
11185
+ return d.rotateSpeedUnit === "rad/ms" ? u : u / 1e3;
11186
+ })(), l = (() => {
11187
+ if (n.duration)
11188
+ return n.duration;
11189
+ if (a) {
11190
+ const d = this.five.getCurrentState();
11191
+ return hm(d, e) / a;
11192
+ }
11193
+ return 800;
11185
11194
  })();
11186
- if (l) {
11187
- const d = this.five.getCurrentState();
11188
- a = hm(d, e) / l;
11189
- }
11190
- s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = a);
11191
- const c = this.getSpeededDuration(a);
11195
+ s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = l);
11196
+ const c = this.getSpeededDuration(l);
11192
11197
  return new Promise((d) => {
11193
11198
  fm(() => o.updateCamera(e, c)), setTimeout(() => d(), c);
11194
11199
  });
@@ -11196,39 +11201,38 @@ class Xa extends Ot {
11196
11201
  }
11197
11202
  changePano(e, n) {
11198
11203
  return J(this, null, function* () {
11199
- var h;
11200
11204
  const { five: o, privateState: s, state: r } = this;
11201
11205
  if (typeof e.panoIndex != "number" || e.panoIndex === o.panoIndex)
11202
11206
  return;
11203
- o.getCurrentState().mode;
11204
11207
  const a = o.getCurrentState().mode !== "Panorama";
11205
11208
  a && (this.privateState.modeChanging = !0);
11206
- let l = (h = n == null ? void 0 : n.duration) != null ? h : 800;
11207
- const c = (() => {
11208
- var m, g;
11209
- const u = (m = r.config) == null ? void 0 : m.speedConfig, p = (g = e.moveSpeed) != null ? g : u == null ? void 0 : u.moveSpeed;
11210
- if ((u == null ? void 0 : u.moveSpeedUnit) === void 0)
11211
- return p;
11212
- if (p !== void 0)
11213
- return u.moveSpeedUnit === "m/ms" ? p : p / 1e3;
11209
+ const l = (() => {
11210
+ var h, p;
11211
+ const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (p = e.moveSpeed) != null ? p : d == null ? void 0 : d.moveSpeed;
11212
+ if ((d == null ? void 0 : d.moveSpeedUnit) === void 0)
11213
+ return u;
11214
+ if (u !== void 0)
11215
+ return d.moveSpeedUnit === "m/ms" ? u : u / 1e3;
11216
+ })(), c = (() => {
11217
+ if (n != null && n.duration)
11218
+ return n.duration;
11219
+ if (l && typeof o.panoIndex == "number" && typeof e.panoIndex == "number") {
11220
+ const d = o.work.observers[o.panoIndex].position, u = o.work.observers[e.panoIndex].position;
11221
+ return d.distanceTo(u) / l;
11222
+ }
11223
+ return 800;
11214
11224
  })();
11215
- if (c && typeof o.panoIndex == "number" && typeof e.panoIndex == "number") {
11216
- const u = o.work.observers[o.panoIndex].position, p = o.work.observers[e.panoIndex].position;
11217
- l = u.distanceTo(p) / c;
11218
- }
11219
- s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = l);
11220
- const d = this.getSpeededDuration(l);
11221
- yield new Promise((u) => {
11222
- var p, m, g;
11225
+ s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = c), yield new Promise((d) => {
11226
+ var u, h, p;
11223
11227
  o.moveToPano(e.panoIndex, {
11224
11228
  latitude: e.latitude,
11225
11229
  longitude: e.longitude,
11226
11230
  fov: e.fov,
11227
- duration: d,
11228
- effect: (g = (m = n == null ? void 0 : n.moveEffect) != null ? m : (p = this.state.config) == null ? void 0 : p.moveEffect) != null ? g : e.moveEffect,
11229
- moveCancelCallback: () => u(),
11230
- moveEndCallback: () => u()
11231
- }), a && o.once("panoArrived", () => u());
11231
+ duration: this.getSpeededDuration(c),
11232
+ effect: (p = (h = n == null ? void 0 : n.moveEffect) != null ? h : (u = this.state.config) == null ? void 0 : u.moveEffect) != null ? p : e.moveEffect,
11233
+ moveCancelCallback: () => d(),
11234
+ moveEndCallback: () => d()
11235
+ }), a && o.once("panoArrived", () => d());
11232
11236
  }), a && (this.privateState.modeChanging = !1);
11233
11237
  });
11234
11238
  }
@@ -11566,9 +11570,9 @@ function Ne(i) {
11566
11570
  return typeof i == "number" ? i / 16 + "rem" : i;
11567
11571
  }
11568
11572
  function Sm(i, t, e) {
11569
- let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: h = !1 } = t, { verticalCenter: u = !1 } = t, { blurRadius: p } = t, { spreadRadius: m } = t, { opacity: g = 0.15 } = t, { zIndex: A = void 0 } = t;
11573
+ let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: u = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: p } = t, { spreadRadius: m } = t, { opacity: g = 0.15 } = t, { zIndex: A = void 0 } = t;
11570
11574
  return i.$$set = (v) => {
11571
- "inDelay" in v && e(0, n = v.inDelay), "outDelay" in v && e(1, o = v.outDelay), "visible" in v && e(2, s = v.visible), "width" in v && e(3, r = v.width), "height" in v && e(4, a = v.height), "left" in v && e(5, l = v.left), "bottom" in v && e(6, c = v.bottom), "center" in v && e(7, d = v.center), "horizontalCenter" in v && e(8, h = v.horizontalCenter), "verticalCenter" in v && e(9, u = v.verticalCenter), "blurRadius" in v && e(10, p = v.blurRadius), "spreadRadius" in v && e(11, m = v.spreadRadius), "opacity" in v && e(12, g = v.opacity), "zIndex" in v && e(13, A = v.zIndex);
11575
+ "inDelay" in v && e(0, n = v.inDelay), "outDelay" in v && e(1, o = v.outDelay), "visible" in v && e(2, s = v.visible), "width" in v && e(3, r = v.width), "height" in v && e(4, a = v.height), "left" in v && e(5, l = v.left), "bottom" in v && e(6, c = v.bottom), "center" in v && e(7, d = v.center), "horizontalCenter" in v && e(8, u = v.horizontalCenter), "verticalCenter" in v && e(9, h = v.verticalCenter), "blurRadius" in v && e(10, p = v.blurRadius), "spreadRadius" in v && e(11, m = v.spreadRadius), "opacity" in v && e(12, g = v.opacity), "zIndex" in v && e(13, A = v.zIndex);
11572
11576
  }, [
11573
11577
  n,
11574
11578
  o,
@@ -11578,8 +11582,8 @@ function Sm(i, t, e) {
11578
11582
  l,
11579
11583
  c,
11580
11584
  d,
11581
- h,
11582
11585
  u,
11586
+ h,
11583
11587
  p,
11584
11588
  m,
11585
11589
  g,
@@ -11680,7 +11684,7 @@ function Tm(i) {
11680
11684
  }
11681
11685
  function Bm(i, t, e) {
11682
11686
  let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, l, c = [], d;
11683
- function h(p) {
11687
+ function u(p) {
11684
11688
  clearTimeout(l), l = setTimeout(
11685
11689
  function() {
11686
11690
  !d || (p && d.reversed || !p && !d.reversed) && (d.reverse(), d.play());
@@ -11707,7 +11711,7 @@ function Bm(i, t, e) {
11707
11711
  easing: "easeInOutCubic"
11708
11712
  }), a && d.seek(d.duration);
11709
11713
  });
11710
- function u(p, m) {
11714
+ function h(p, m) {
11711
11715
  ze[p ? "unshift" : "push"](() => {
11712
11716
  c[m] = p, e(0, c);
11713
11717
  });
@@ -11718,8 +11722,8 @@ function Bm(i, t, e) {
11718
11722
  i.$$.dirty & 16 && e(1, n = (() => {
11719
11723
  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}__`;
11720
11724
  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;
11721
- })()), i.$$.dirty & 32 && h(a);
11722
- }, [c, n, o, s, r, a, u];
11725
+ })()), i.$$.dirty & 32 && u(a);
11726
+ }, [c, n, o, s, r, a, h];
11723
11727
  }
11724
11728
  class Ja extends oe {
11725
11729
  constructor(t) {
@@ -11755,14 +11759,14 @@ function Zs(i) {
11755
11759
  c() {
11756
11760
  t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), b(o, "class", s = "arrow " + i[0] + " svelte-1ogmlqq"), R(o, "background-image", "url(" + jm + ")"), b(t, "class", "arrow-wrapper svelte-1ogmlqq");
11757
11761
  },
11758
- m(h, u) {
11759
- B(h, t, u), K(e, t, null), Q(t, n), Q(t, o), l = !0, c || (d = Ee(o, "click", i[5]), c = !0);
11762
+ m(u, h) {
11763
+ B(u, t, h), K(e, t, null), Q(t, n), Q(t, o), l = !0, c || (d = Ee(o, "click", i[5]), c = !0);
11760
11764
  },
11761
- p(h, u) {
11762
- i = h, (!l || u & 1 && s !== (s = "arrow " + i[0] + " svelte-1ogmlqq")) && b(o, "class", s);
11765
+ p(u, h) {
11766
+ i = u, (!l || h & 1 && s !== (s = "arrow " + i[0] + " svelte-1ogmlqq")) && b(o, "class", s);
11763
11767
  },
11764
- i(h) {
11765
- l || (D(e.$$.fragment, h), h && Ie(() => {
11768
+ i(u) {
11769
+ l || (D(e.$$.fragment, u), u && Ie(() => {
11766
11770
  a && a.end(1), r = Ht(o, Tt, {
11767
11771
  duration: i[2],
11768
11772
  delay: i[3],
@@ -11770,15 +11774,15 @@ function Zs(i) {
11770
11774
  }), r.start();
11771
11775
  }), l = !0);
11772
11776
  },
11773
- o(h) {
11774
- T(e.$$.fragment, h), r && r.invalidate(), h && (a = Kt(o, Tt, {
11777
+ o(u) {
11778
+ T(e.$$.fragment, u), r && r.invalidate(), u && (a = Kt(o, Tt, {
11775
11779
  duration: i[2],
11776
11780
  delay: i[4],
11777
11781
  easing: Zt
11778
11782
  })), l = !1;
11779
11783
  },
11780
- d(h) {
11781
- h && M(t), $(e), h && a && a.end(), c = !1, d();
11784
+ d(u) {
11785
+ u && M(t), $(e), u && a && a.end(), c = !1, d();
11782
11786
  }
11783
11787
  };
11784
11788
  }
@@ -11920,8 +11924,8 @@ function Nm(i) {
11920
11924
  let t = [], e = /* @__PURE__ */ new Map(), n, o, s, r = i[1];
11921
11925
  const a = (c) => c[11];
11922
11926
  for (let c = 0; c < r.length; c += 1) {
11923
- let d = _s(i, r, c), h = a(d);
11924
- e.set(h, t[c] = qs(h, d));
11927
+ let d = _s(i, r, c), u = a(d);
11928
+ e.set(u, t[c] = qs(u, d));
11925
11929
  }
11926
11930
  let l = i[3] < i[4] && Ks(i);
11927
11931
  return {
@@ -11931,8 +11935,8 @@ function Nm(i) {
11931
11935
  n = V(), l && l.c(), o = fe();
11932
11936
  },
11933
11937
  m(c, d) {
11934
- for (let h = 0; h < t.length; h += 1)
11935
- t[h].m(c, d);
11938
+ for (let u = 0; u < t.length; u += 1)
11939
+ t[u].m(c, d);
11936
11940
  B(c, n, d), l && l.m(c, d), B(c, o, d), s = !0;
11937
11941
  },
11938
11942
  p(c, [d]) {
@@ -11960,7 +11964,7 @@ function Nm(i) {
11960
11964
  };
11961
11965
  }
11962
11966
  function Wm(i, t, e) {
11963
- let n, o, s, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { textItems: l } = t, c, d = 0, h = 0, u = 0;
11967
+ let n, o, s, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { textItems: l } = t, c, d = 0, u = 0, h = 0;
11964
11968
  function p(m) {
11965
11969
  ze[m ? "unshift" : "push"](() => {
11966
11970
  c = m, e(2, c);
@@ -11971,17 +11975,17 @@ function Wm(i, t, e) {
11971
11975
  }, i.$$.update = () => {
11972
11976
  if (i.$$.dirty & 5 && c && r) {
11973
11977
  const { lineHeight: m } = getComputedStyle(c);
11974
- e(4, u = c.offsetHeight), Fm(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
11975
- e(4, u = c.offsetHeight);
11976
- }), e(3, h = Number(m.replace("px", "")));
11978
+ e(4, h = c.offsetHeight), Fm(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
11979
+ e(4, h = c.offsetHeight);
11980
+ }), e(3, u = Number(m.replace("px", "")));
11977
11981
  }
11978
- i.$$.dirty & 280 && e(9, d = a ? h - u : 0), i.$$.dirty & 512 && e(7, n = `translateY(${d}px)`), i.$$.dirty & 256 && e(6, o = a ? "left" : "right"), i.$$.dirty & 256 && e(5, s = a ? 450 : 0);
11982
+ i.$$.dirty & 280 && e(9, d = a ? u - h : 0), i.$$.dirty & 512 && e(7, n = `translateY(${d}px)`), i.$$.dirty & 256 && e(6, o = a ? "left" : "right"), i.$$.dirty & 256 && e(5, s = a ? 450 : 0);
11979
11983
  }, [
11980
11984
  r,
11981
11985
  l,
11982
11986
  c,
11983
- h,
11984
11987
  u,
11988
+ h,
11985
11989
  s,
11986
11990
  o,
11987
11991
  n,
@@ -12011,8 +12015,8 @@ function Xm(i) {
12011
12015
  ae(i, "svelte-18yy5x8", ".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
12012
12016
  }
12013
12017
  function $s(i) {
12014
- var u, p;
12015
- let t, e, n, o, s, r, a, l, c, d, h;
12018
+ var h, p;
12019
+ let t, e, n, o, s, r, a, l, c, d, u;
12016
12020
  return t = new Je({
12017
12021
  props: {
12018
12022
  visible: i[2],
@@ -12026,7 +12030,7 @@ function $s(i) {
12026
12030
  props: {
12027
12031
  unfolded: i[2],
12028
12032
  duration: 1e3,
12029
- outDelay: i[5] + 40 * Math.min((p = (u = i[4][0]) == null ? void 0 : u.content.length) != null ? p : 10, 15)
12033
+ outDelay: i[5] + 40 * Math.min((p = (h = i[4][0]) == null ? void 0 : h.content.length) != null ? p : 10, 15)
12030
12034
  }
12031
12035
  }), a = new Va({
12032
12036
  props: {
@@ -12039,7 +12043,7 @@ function $s(i) {
12039
12043
  ee(t.$$.fragment), e = V(), n = j("div"), ee(o.$$.fragment), s = V(), r = j("div"), ee(a.$$.fragment), b(n, "class", "line svelte-18yy5x8"), R(n, "width", i[3] + "px"), b(r, "class", "content svelte-18yy5x8"), Ie(() => i[8].call(r));
12040
12044
  },
12041
12045
  m(m, g) {
12042
- K(t, m, g), B(m, e, g), B(m, n, g), K(o, n, null), B(m, s, g), B(m, r, g), K(a, r, null), l = yt(r, i[8].bind(r)), c = !0, d || (h = Ee(r, "click", i[6]), d = !0);
12046
+ K(t, m, g), B(m, e, g), B(m, n, g), K(o, n, null), B(m, s, g), B(m, r, g), K(a, r, null), l = yt(r, i[8].bind(r)), c = !0, d || (u = Ee(r, "click", i[6]), d = !0);
12043
12047
  },
12044
12048
  p(m, g) {
12045
12049
  var y, x;
@@ -12057,7 +12061,7 @@ function $s(i) {
12057
12061
  T(t.$$.fragment, m), T(o.$$.fragment, m), T(a.$$.fragment, m), c = !1;
12058
12062
  },
12059
12063
  d(m) {
12060
- $(t, m), m && M(e), m && M(n), $(o), m && M(s), m && M(r), $(a), l(), d = !1, h();
12064
+ $(t, m), m && M(e), m && M(n), $(o), m && M(s), m && M(r), $(a), l(), d = !1, u();
12061
12065
  }
12062
12066
  };
12063
12067
  }
@@ -12091,14 +12095,14 @@ function Um(i, t, e) {
12091
12095
  function d() {
12092
12096
  e(1, l = !l);
12093
12097
  }
12094
- function h() {
12098
+ function u() {
12095
12099
  a = this.clientWidth, e(3, a);
12096
12100
  }
12097
- return i.$$set = (u) => {
12098
- "tag" in u && e(0, r = u.tag);
12101
+ return i.$$set = (h) => {
12102
+ "tag" in h && e(0, r = h.tag);
12099
12103
  }, i.$$.update = () => {
12100
- var u;
12101
- i.$$.dirty & 1 && e(2, n = !!((u = r.state) != null && u.unfolded)), i.$$.dirty & 1 && e(7, o = r.data.text), i.$$.dirty & 128 && e(4, c = [{ id: Fe(), content: o }]), i.$$.dirty & 4 && (n || setTimeout(
12104
+ var h;
12105
+ i.$$.dirty & 1 && e(2, n = !!((h = r.state) != null && h.unfolded)), i.$$.dirty & 1 && e(7, o = r.data.text), i.$$.dirty & 128 && e(4, c = [{ id: Fe(), content: o }]), i.$$.dirty & 4 && (n || setTimeout(
12102
12106
  () => {
12103
12107
  e(1, l = !1);
12104
12108
  },
@@ -12113,7 +12117,7 @@ function Um(i, t, e) {
12113
12117
  s,
12114
12118
  d,
12115
12119
  o,
12116
- h
12120
+ u
12117
12121
  ];
12118
12122
  }
12119
12123
  class Jm extends oe {
@@ -12390,10 +12394,10 @@ function ep(i, t, e, n, o) {
12390
12394
  if (l in i && l in t)
12391
12395
  if (jt(i[l]) && jt(t[l])) {
12392
12396
  const c = Object.keys(i[l]), d = Object.keys(t[l]);
12393
- c.length !== d.length ? r(l) : (c.forEach((h) => {
12394
- i[l][h] !== t[l][h] && r(l);
12395
- }), d.forEach((h) => {
12396
- i[l][h] !== t[l][h] && r(l);
12397
+ c.length !== d.length ? r(l) : (c.forEach((u) => {
12398
+ i[l][u] !== t[l][u] && r(l);
12399
+ }), d.forEach((u) => {
12400
+ i[l][u] !== t[l][u] && r(l);
12397
12401
  }));
12398
12402
  } else
12399
12403
  i[l] !== t[l] && r(l);
@@ -12412,13 +12416,13 @@ function tp({
12412
12416
  const l = n.filter((L) => L !== "children" && L !== "direction"), {
12413
12417
  params: c,
12414
12418
  pagination: d,
12415
- navigation: h,
12416
- scrollbar: u,
12419
+ navigation: u,
12420
+ scrollbar: h,
12417
12421
  virtual: p,
12418
12422
  thumbs: m
12419
12423
  } = i;
12420
12424
  let g, A, v, w, y;
12421
- n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (A = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (v = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && u && !u.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && h && !h.prevEl && !h.nextEl && (y = !0);
12425
+ n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (A = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (v = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (y = !0);
12422
12426
  const x = (L) => {
12423
12427
  !i[L] || (i[L].destroy(), L === "navigation" ? (c[L].prevEl = void 0, c[L].nextEl = void 0, i[L].prevEl = void 0, i[L].nextEl = void 0) : (c[L].el = void 0, i[L].el = void 0));
12424
12428
  };
@@ -12429,7 +12433,7 @@ function tp({
12429
12433
  const C = e[L];
12430
12434
  (C === !0 || C === !1) && (L === "navigation" || L === "pagination" || L === "scrollbar") ? C === !1 && x(L) : c[L] = e[L];
12431
12435
  }
12432
- }), l.includes("controller") && !A && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && p && c.virtual.enabled ? (p.slides = t, p.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && m.init() && m.update(!0), A && (i.controller.control = c.controller.control), v && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), w && (r && (c.scrollbar.el = r), u.init(), u.updateSize(), u.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), h.init(), h.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
12436
+ }), l.includes("controller") && !A && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && p && c.virtual.enabled ? (p.slides = t, p.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && m.init() && m.update(!0), A && (i.controller.control = c.controller.control), v && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), w && (r && (c.scrollbar.el = r), h.init(), h.updateSize(), h.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), u.init(), u.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
12433
12437
  }
12434
12438
  const np = (i) => ({ virtualData: i & 512 }), tr = (i) => ({ virtualData: i[9] }), ip = (i) => ({ virtualData: i & 512 }), nr = (i) => ({ virtualData: i[9] }), op = (i) => ({ virtualData: i & 512 }), ir = (i) => ({ virtualData: i[9] }), sp = (i) => ({ virtualData: i & 512 }), or = (i) => ({ virtualData: i[9] }), rp = (i) => ({ virtualData: i & 512 }), sr = (i) => ({ virtualData: i[9] });
12435
12439
  function rr(i) {
@@ -12478,9 +12482,9 @@ function lr(i) {
12478
12482
  };
12479
12483
  }
12480
12484
  function ap(i) {
12481
- let t, e, n, o, s, r, a = Xi(i[2]), l, c = Ui(i[2]), d, h = Yi(i[2]), u, p, m;
12485
+ let t, e, n, o, s, r, a = Xi(i[2]), l, c = Ui(i[2]), d, u = Yi(i[2]), h, p, m;
12482
12486
  const g = i[12]["container-start"], A = xt(g, i, i[11], sr), v = i[12]["wrapper-start"], w = xt(v, i, i[11], or), y = i[12].default, x = xt(y, i, i[11], ir), L = i[12]["wrapper-end"], C = xt(L, i, i[11], nr);
12483
- let S = a && rr(i), k = c && ar(i), F = h && lr(i);
12487
+ let S = a && rr(i), k = c && ar(i), F = u && lr(i);
12484
12488
  const H = i[12]["container-end"], N = xt(H, i, i[11], tr);
12485
12489
  let Y = [
12486
12490
  {
@@ -12492,10 +12496,10 @@ function ap(i) {
12492
12496
  P = ye(P, Y[I]);
12493
12497
  return {
12494
12498
  c() {
12495
- t = j("div"), A && A.c(), e = V(), n = j("div"), w && w.c(), o = V(), x && x.c(), s = V(), C && C.c(), r = V(), S && S.c(), l = V(), k && k.c(), d = V(), F && F.c(), u = V(), N && N.c(), b(n, "class", "swiper-wrapper"), Vn(t, P);
12499
+ t = j("div"), A && A.c(), e = V(), n = j("div"), w && w.c(), o = V(), x && x.c(), s = V(), C && C.c(), r = V(), S && S.c(), l = V(), k && k.c(), d = V(), F && F.c(), h = V(), N && N.c(), b(n, "class", "swiper-wrapper"), Vn(t, P);
12496
12500
  },
12497
12501
  m(I, z) {
12498
- B(I, t, z), A && A.m(t, null), Q(t, e), Q(t, n), w && w.m(n, null), Q(n, o), x && x.m(n, null), Q(n, s), C && C.m(n, null), Q(t, r), S && S.m(t, null), Q(t, l), k && k.m(t, null), Q(t, d), F && F.m(t, null), Q(t, u), N && N.m(t, null), i[17](t), m = !0;
12502
+ B(I, t, z), A && A.m(t, null), Q(t, e), Q(t, n), w && w.m(n, null), Q(n, o), x && x.m(n, null), Q(n, s), C && C.m(n, null), Q(t, r), S && S.m(t, null), Q(t, l), k && k.m(t, null), Q(t, d), F && F.m(t, null), Q(t, h), N && N.m(t, null), i[17](t), m = !0;
12499
12503
  },
12500
12504
  p(I, [z]) {
12501
12505
  A && A.p && (!m || z & 2560) && Dt(
@@ -12526,7 +12530,7 @@ function ap(i) {
12526
12530
  I[11],
12527
12531
  m ? kt(L, I[11], z, ip) : Lt(I[11]),
12528
12532
  nr
12529
- ), z & 4 && (a = Xi(I[2])), a ? S ? S.p(I, z) : (S = rr(I), S.c(), S.m(t, l)) : S && (S.d(1), S = null), z & 4 && (c = Ui(I[2])), c ? k ? k.p(I, z) : (k = ar(I), k.c(), k.m(t, d)) : k && (k.d(1), k = null), z & 4 && (h = Yi(I[2])), h ? F ? F.p(I, z) : (F = lr(I), F.c(), F.m(t, u)) : F && (F.d(1), F = null), N && N.p && (!m || z & 2560) && Dt(
12533
+ ), z & 4 && (a = Xi(I[2])), a ? S ? S.p(I, z) : (S = rr(I), S.c(), S.m(t, l)) : S && (S.d(1), S = null), z & 4 && (c = Ui(I[2])), c ? k ? k.p(I, z) : (k = ar(I), k.c(), k.m(t, d)) : k && (k.d(1), k = null), z & 4 && (u = Yi(I[2])), u ? F ? F.p(I, z) : (F = lr(I), F.c(), F.m(t, h)) : F && (F.d(1), F = null), N && N.p && (!m || z & 2560) && Dt(
12530
12534
  N,
12531
12535
  H,
12532
12536
  I,
@@ -12553,20 +12557,20 @@ function lp(i, t, e) {
12553
12557
  const n = ["class", "swiper"];
12554
12558
  let o = Jn(t, n), { $$slots: s = {}, $$scope: r } = t;
12555
12559
  const a = uc();
12556
- let { class: l = void 0 } = t, c = "swiper", d = !1, h = null, u = null, p, m, g, A, v = null, w = null, y = null, x = null, L = null, C = { slides: [] };
12560
+ let { class: l = void 0 } = t, c = "swiper", d = !1, u = null, h = null, p, m, g, A, v = null, w = null, y = null, x = null, L = null, C = { slides: [] };
12557
12561
  function S() {
12558
- return h;
12562
+ return u;
12559
12563
  }
12560
12564
  const k = (O) => {
12561
12565
  e(9, C = O), fc().then(() => {
12562
- h.$wrapperEl.children(".swiper-slide").each((W) => {
12563
- W.onSwiper && W.onSwiper(h);
12564
- }), h.updateSlides(), h.updateProgress(), h.updateSlidesClasses(), h.lazy && h.params.lazy.enabled && h.lazy.load();
12566
+ u.$wrapperEl.children(".swiper-slide").each((W) => {
12567
+ W.onSwiper && W.onSwiper(u);
12568
+ }), u.updateSlides(), u.updateProgress(), u.updateSlidesClasses(), u.lazy && u.params.lazy.enabled && u.lazy.load();
12565
12569
  });
12566
12570
  }, F = () => {
12567
12571
  p = Km(o), e(2, m = p.params), g = p.passedParams, e(3, A = p.rest);
12568
12572
  };
12569
- F(), u = g;
12573
+ F(), h = g;
12570
12574
  const H = () => {
12571
12575
  d = !0;
12572
12576
  };
@@ -12577,7 +12581,7 @@ function lp(i, t, e) {
12577
12581
  _containerClasses(O, W) {
12578
12582
  e(1, c = W);
12579
12583
  }
12580
- }), h = new Ti(m), Qi("swiper", h), h.virtual && h.params.virtual.enabled) {
12584
+ }), u = new Ti(m), Qi("swiper", u), u.virtual && u.params.virtual.enabled) {
12581
12585
  const O = {
12582
12586
  cache: !1,
12583
12587
  renderExternal: (W) => {
@@ -12585,7 +12589,7 @@ function lp(i, t, e) {
12585
12589
  },
12586
12590
  renderExternalUpdate: !1
12587
12591
  };
12588
- pt(h.params.virtual, O), pt(h.originalParams.virtual, O);
12592
+ pt(u.params.virtual, O), pt(u.originalParams.virtual, O);
12589
12593
  }
12590
12594
  Ye(() => {
12591
12595
  !v || ($m(
@@ -12595,28 +12599,28 @@ function lp(i, t, e) {
12595
12599
  prevEl: w,
12596
12600
  paginationEl: L,
12597
12601
  scrollbarEl: x,
12598
- swiper: h
12602
+ swiper: u
12599
12603
  },
12600
12604
  m
12601
- ), a("swiper", [h]), !m.virtual && h.slides.each((O) => {
12602
- O.onSwiper && O.onSwiper(h);
12605
+ ), a("swiper", [u]), !m.virtual && u.slides.each((O) => {
12606
+ O.onSwiper && O.onSwiper(u);
12603
12607
  }));
12604
12608
  }), to(() => {
12605
- if (!h)
12609
+ if (!u)
12606
12610
  return;
12607
12611
  F();
12608
- const O = ep(g, u);
12609
- (O.length || d) && h && !h.destroyed && tp({
12610
- swiper: h,
12612
+ const O = ep(g, h);
12613
+ (O.length || d) && u && !u.destroyed && tp({
12614
+ swiper: u,
12611
12615
  passedParams: g,
12612
12616
  changedParams: O,
12613
12617
  nextEl: y,
12614
12618
  prevEl: w,
12615
12619
  scrollbarEl: x,
12616
12620
  paginationEl: L
12617
- }), d = !1, u = g;
12621
+ }), d = !1, h = g;
12618
12622
  }), wt(() => {
12619
- typeof window != "undefined" && h && !h.destroyed && h.destroy(!0, !1);
12623
+ typeof window != "undefined" && u && !u.destroyed && u.destroy(!0, !1);
12620
12624
  });
12621
12625
  function N(O) {
12622
12626
  ze[O ? "unshift" : "push"](() => {
@@ -12740,8 +12744,8 @@ function fp(i) {
12740
12744
  function mp(i) {
12741
12745
  let t, e, n, o, s;
12742
12746
  const r = [fp, hp], a = [];
12743
- function l(h, u) {
12744
- return h[0] ? 0 : 1;
12747
+ function l(u, h) {
12748
+ return u[0] ? 0 : 1;
12745
12749
  }
12746
12750
  e = l(i), n = a[e] = r[e](i);
12747
12751
  let c = [
@@ -12753,44 +12757,44 @@ function mp(i) {
12753
12757
  },
12754
12758
  i[6]
12755
12759
  ], d = {};
12756
- for (let h = 0; h < c.length; h += 1)
12757
- d = ye(d, c[h]);
12760
+ for (let u = 0; u < c.length; u += 1)
12761
+ d = ye(d, c[u]);
12758
12762
  return {
12759
12763
  c() {
12760
12764
  t = j("div"), n.c(), Vn(t, d);
12761
12765
  },
12762
- m(h, u) {
12763
- B(h, t, u), a[e].m(t, null), i[9](t), s = !0;
12766
+ m(u, h) {
12767
+ B(u, t, h), a[e].m(t, null), i[9](t), s = !0;
12764
12768
  },
12765
- p(h, [u]) {
12769
+ p(u, [h]) {
12766
12770
  let p = e;
12767
- e = l(h), e === p ? a[e].p(h, u) : (le(), T(a[p], 1, 1, () => {
12771
+ e = l(u), e === p ? a[e].p(u, h) : (le(), T(a[p], 1, 1, () => {
12768
12772
  a[p] = null;
12769
- }), ce(), n = a[e], n ? n.p(h, u) : (n = a[e] = r[e](h), n.c()), D(n, 1), n.m(t, null)), Vn(t, d = Te(c, [
12770
- (!s || u & 12 && o !== (o = oi(`${h[3]}${h[2] ? ` ${h[2]}` : ""}`))) && { class: o },
12771
- (!s || u & 2) && {
12772
- "data-swiper-slide-index": h[1]
12773
+ }), ce(), n = a[e], n ? n.p(u, h) : (n = a[e] = r[e](u), n.c()), D(n, 1), n.m(t, null)), Vn(t, d = Te(c, [
12774
+ (!s || h & 12 && o !== (o = oi(`${u[3]}${u[2] ? ` ${u[2]}` : ""}`))) && { class: o },
12775
+ (!s || h & 2) && {
12776
+ "data-swiper-slide-index": u[1]
12773
12777
  },
12774
- u & 64 && h[6]
12778
+ h & 64 && u[6]
12775
12779
  ]));
12776
12780
  },
12777
- i(h) {
12781
+ i(u) {
12778
12782
  s || (D(n), s = !0);
12779
12783
  },
12780
- o(h) {
12784
+ o(u) {
12781
12785
  T(n), s = !1;
12782
12786
  },
12783
- d(h) {
12784
- h && M(t), a[e].d(), i[9](null);
12787
+ d(u) {
12788
+ u && M(t), a[e].d(), i[9](null);
12785
12789
  }
12786
12790
  };
12787
12791
  }
12788
12792
  function pp(i, t, e) {
12789
12793
  let n;
12790
12794
  const o = ["zoom", "virtualIndex", "class"];
12791
- let s = Jn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, h = null, u = "swiper-slide", p = pn("swiper"), m = !1;
12795
+ let s = Jn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, u = null, h = "swiper-slide", p = pn("swiper"), m = !1;
12792
12796
  const g = (y, x, L) => {
12793
- x === h && e(3, u = L);
12797
+ x === u && e(3, h = L);
12794
12798
  }, A = () => {
12795
12799
  !p || m || (p.on("_slideClass", g), m = !0);
12796
12800
  }, v = () => {
@@ -12799,15 +12803,15 @@ function pp(i, t, e) {
12799
12803
  Ye(() => {
12800
12804
  typeof c != "undefined" && (e(
12801
12805
  4,
12802
- h.onSwiper = (y) => {
12806
+ u.onSwiper = (y) => {
12803
12807
  p = y, A();
12804
12808
  },
12805
- h
12809
+ u
12806
12810
  ), A());
12807
12811
  }), to(() => {
12808
- if (!(!h || !p)) {
12812
+ if (!(!u || !p)) {
12809
12813
  if (p.destroyed) {
12810
- u !== "swiper-slide" && e(3, u = "swiper-slide");
12814
+ h !== "swiper-slide" && e(3, h = "swiper-slide");
12811
12815
  return;
12812
12816
  }
12813
12817
  A();
@@ -12819,25 +12823,25 @@ function pp(i, t, e) {
12819
12823
  });
12820
12824
  function w(y) {
12821
12825
  ze[y ? "unshift" : "push"](() => {
12822
- h = y, e(4, h);
12826
+ u = y, e(4, u);
12823
12827
  });
12824
12828
  }
12825
12829
  return i.$$set = (y) => {
12826
12830
  t = ye(ye({}, t), na(y)), e(6, s = Jn(t, o)), "zoom" in y && e(0, l = y.zoom), "virtualIndex" in y && e(1, c = y.virtualIndex), "class" in y && e(2, d = y.class), "$$scope" in y && e(7, a = y.$$scope);
12827
12831
  }, i.$$.update = () => {
12828
12832
  i.$$.dirty & 8 && e(5, n = {
12829
- isActive: u.indexOf("swiper-slide-active") >= 0 || u.indexOf("swiper-slide-duplicate-active") >= 0,
12830
- isVisible: u.indexOf("swiper-slide-visible") >= 0,
12831
- isDuplicate: u.indexOf("swiper-slide-duplicate") >= 0,
12832
- isPrev: u.indexOf("swiper-slide-prev") >= 0 || u.indexOf("swiper-slide-duplicate-prev") >= 0,
12833
- isNext: u.indexOf("swiper-slide-next") >= 0 || u.indexOf("swiper-slide-duplicate-next") >= 0
12833
+ isActive: h.indexOf("swiper-slide-active") >= 0 || h.indexOf("swiper-slide-duplicate-active") >= 0,
12834
+ isVisible: h.indexOf("swiper-slide-visible") >= 0,
12835
+ isDuplicate: h.indexOf("swiper-slide-duplicate") >= 0,
12836
+ isPrev: h.indexOf("swiper-slide-prev") >= 0 || h.indexOf("swiper-slide-duplicate-prev") >= 0,
12837
+ isNext: h.indexOf("swiper-slide-next") >= 0 || h.indexOf("swiper-slide-duplicate-next") >= 0
12834
12838
  });
12835
12839
  }, [
12836
12840
  l,
12837
12841
  c,
12838
12842
  d,
12839
- u,
12840
12843
  h,
12844
+ u,
12841
12845
  n,
12842
12846
  s,
12843
12847
  a,
@@ -12878,24 +12882,24 @@ function ur(i) {
12878
12882
  };
12879
12883
  }
12880
12884
  function vp(i) {
12881
- let t, e, n, o, s, r, a, l, c, d, h;
12885
+ let t, e, n, o, s, r, a, l, c, d, u;
12882
12886
  return {
12883
12887
  c() {
12884
- var u;
12885
- t = j("video"), r = V(), a = j("div"), l = j("div"), c = j("div"), b(t, "class", "media-content svelte-cwtvzu"), b(t, "style", e = `object-fit: ${i[3]};`), et(t.src, n = i[0].url + "#t=0.1") || b(t, "src", n), b(t, "poster", o = (u = i[0].videoCoverUrl) != null ? u : void 0), b(t, "preload", s = i[0].videoCoverUrl ? void 0 : "auto"), t.playsInline = !0, b(t, "paused", ""), t.loop = !1, b(t, "crossorigin", ""), t.controls = !1, q(t, "showPlayButton", i[5]), b(c, "class", "video-icon-img svelte-cwtvzu"), R(c, "background-image", "url(" + (i[1] === "large" ? Js : Vs) + ")"), q(c, "canPlay", i[2]), b(l, "class", "video-icon svelte-cwtvzu"), q(l, "large", i[1] === "large"), q(l, "small", i[1] === "small"), b(a, "class", "video-play-button-container svelte-cwtvzu"), q(a, "showPlayButton", i[5]);
12888
+ var h;
12889
+ t = j("video"), r = V(), a = j("div"), l = j("div"), c = j("div"), b(t, "class", "media-content svelte-cwtvzu"), b(t, "style", e = `object-fit: ${i[3]};`), et(t.src, n = i[0].url + "#t=0.1") || b(t, "src", n), b(t, "poster", o = (h = i[0].videoCoverUrl) != null ? h : void 0), b(t, "preload", s = i[0].videoCoverUrl ? void 0 : "auto"), t.playsInline = !0, b(t, "paused", ""), t.loop = !1, b(t, "crossorigin", ""), t.controls = !1, q(t, "showPlayButton", i[5]), b(c, "class", "video-icon-img svelte-cwtvzu"), R(c, "background-image", "url(" + (i[1] === "large" ? Js : Vs) + ")"), q(c, "canPlay", i[2]), b(l, "class", "video-icon svelte-cwtvzu"), q(l, "large", i[1] === "large"), q(l, "small", i[1] === "small"), b(a, "class", "video-play-button-container svelte-cwtvzu"), q(a, "showPlayButton", i[5]);
12886
12890
  },
12887
- m(u, p) {
12888
- B(u, t, p), i[7](t), B(u, r, p), B(u, a, p), Q(a, l), Q(l, c), d || (h = [
12891
+ m(h, p) {
12892
+ B(h, t, p), i[7](t), B(h, r, p), B(h, a, p), Q(a, l), Q(l, c), d || (u = [
12889
12893
  Ee(t, "click", i[6]),
12890
12894
  Ee(c, "click", i[8])
12891
12895
  ], d = !0);
12892
12896
  },
12893
- p(u, p) {
12897
+ p(h, p) {
12894
12898
  var m;
12895
- p & 8 && e !== (e = `object-fit: ${u[3]};`) && b(t, "style", e), p & 1 && !et(t.src, n = u[0].url + "#t=0.1") && b(t, "src", n), p & 1 && o !== (o = (m = u[0].videoCoverUrl) != null ? m : void 0) && b(t, "poster", o), p & 1 && s !== (s = u[0].videoCoverUrl ? void 0 : "auto") && b(t, "preload", s), p & 32 && q(t, "showPlayButton", u[5]), p & 2 && R(c, "background-image", "url(" + (u[1] === "large" ? Js : Vs) + ")"), p & 4 && q(c, "canPlay", u[2]), p & 2 && q(l, "large", u[1] === "large"), p & 2 && q(l, "small", u[1] === "small"), p & 32 && q(a, "showPlayButton", u[5]);
12899
+ p & 8 && e !== (e = `object-fit: ${h[3]};`) && b(t, "style", e), p & 1 && !et(t.src, n = h[0].url + "#t=0.1") && b(t, "src", n), p & 1 && o !== (o = (m = h[0].videoCoverUrl) != null ? m : void 0) && b(t, "poster", o), p & 1 && s !== (s = h[0].videoCoverUrl ? void 0 : "auto") && b(t, "preload", s), p & 32 && q(t, "showPlayButton", h[5]), p & 2 && R(c, "background-image", "url(" + (h[1] === "large" ? Js : Vs) + ")"), p & 4 && q(c, "canPlay", h[2]), p & 2 && q(l, "large", h[1] === "large"), p & 2 && q(l, "small", h[1] === "small"), p & 32 && q(a, "showPlayButton", h[5]);
12896
12900
  },
12897
- d(u) {
12898
- u && M(t), i[7](null), u && M(r), u && M(a), d = !1, at(h);
12901
+ d(h) {
12902
+ h && M(t), i[7](null), h && M(r), h && M(a), d = !1, at(u);
12899
12903
  }
12900
12904
  };
12901
12905
  }
@@ -12938,16 +12942,16 @@ function yp(i) {
12938
12942
  function wp(i, t, e) {
12939
12943
  let { media: n } = t, { playButtonIfNeed: o = "small" } = t, { canPlay: s = !0 } = t, { objectFit: r = "cover" } = t, a, l = !1;
12940
12944
  const c = () => a == null ? void 0 : a.pause();
12941
- function d(u) {
12942
- ze[u ? "unshift" : "push"](() => {
12943
- a = u, e(4, a);
12945
+ function d(h) {
12946
+ ze[h ? "unshift" : "push"](() => {
12947
+ a = h, e(4, a);
12944
12948
  });
12945
12949
  }
12946
- const h = () => {
12950
+ const u = () => {
12947
12951
  !s || a && a.play();
12948
12952
  };
12949
- return i.$$set = (u) => {
12950
- "media" in u && e(0, n = u.media), "playButtonIfNeed" in u && e(1, o = u.playButtonIfNeed), "canPlay" in u && e(2, s = u.canPlay), "objectFit" in u && e(3, r = u.objectFit);
12953
+ return i.$$set = (h) => {
12954
+ "media" in h && e(0, n = h.media), "playButtonIfNeed" in h && e(1, o = h.playButtonIfNeed), "canPlay" in h && e(2, s = h.canPlay), "objectFit" in h && e(3, r = h.objectFit);
12951
12955
  }, i.$$.update = () => {
12952
12956
  i.$$.dirty & 16 && a && (e(5, l = a.paused), a.addEventListener("play", () => {
12953
12957
  e(5, l = !1);
@@ -12963,7 +12967,7 @@ function wp(i, t, e) {
12963
12967
  l,
12964
12968
  c,
12965
12969
  d,
12966
- h
12970
+ u
12967
12971
  ];
12968
12972
  }
12969
12973
  class _a extends oe {
@@ -12994,22 +12998,22 @@ function hr(i, t, e) {
12994
12998
  function fr(i) {
12995
12999
  let t, e, n, o, s, r;
12996
13000
  const a = [Pp, Ep], l = [];
12997
- function c(d, h) {
13001
+ function c(d, u) {
12998
13002
  return d[13] ? 0 : 1;
12999
13003
  }
13000
13004
  return e = c(i), n = l[e] = a[e](i), {
13001
13005
  c() {
13002
13006
  t = j("div"), n.c(), b(t, "class", "media svelte-ai0lv9"), q(t, "unfolded", i[4]);
13003
13007
  },
13004
- m(d, h) {
13005
- B(d, t, h), l[e].m(t, null), r = !0;
13008
+ m(d, u) {
13009
+ B(d, t, u), l[e].m(t, null), r = !0;
13006
13010
  },
13007
- p(d, h) {
13011
+ p(d, u) {
13008
13012
  i = d;
13009
- let u = e;
13010
- e = c(i), e === u ? l[e].p(i, h) : (le(), T(l[u], 1, 1, () => {
13011
- l[u] = null;
13012
- }), ce(), n = l[e], n ? n.p(i, h) : (n = l[e] = a[e](i), n.c()), D(n, 1), n.m(t, null)), (!r || h & 16) && q(t, "unfolded", i[4]);
13013
+ let h = e;
13014
+ e = c(i), e === h ? l[e].p(i, u) : (le(), T(l[h], 1, 1, () => {
13015
+ l[h] = null;
13016
+ }), ce(), n = l[e], n ? n.p(i, u) : (n = l[e] = a[e](i), n.c()), D(n, 1), n.m(t, null)), (!r || u & 16) && q(t, "unfolded", i[4]);
13013
13017
  },
13014
13018
  i(d) {
13015
13019
  r || (D(n), d && Ie(() => {
@@ -13242,7 +13246,7 @@ function kp(i) {
13242
13246
  };
13243
13247
  }
13244
13248
  function Dp(i, t, e) {
13245
- let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: u = !0 } = t, { playButtonIfNeed: p = "small" } = t, { canPlay: m = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: A = !0 } = t, { autoplayConfig: v = { autoplay: !0, autoplayVideo: !1 } } = t;
13249
+ let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: u = !0 } = t, { animation: h = !0 } = t, { playButtonIfNeed: p = "small" } = t, { canPlay: m = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: A = !0 } = t, { autoplayConfig: v = { autoplay: !0, autoplayVideo: !1 } } = t;
13246
13250
  const w = pn("mediaStore"), y = pn("hooks");
13247
13251
  let x;
13248
13252
  function L(H) {
@@ -13287,7 +13291,7 @@ function Dp(i, t, e) {
13287
13291
  }
13288
13292
  });
13289
13293
  return i.$$set = (H) => {
13290
- "tag" in H && e(17, r = H.tag), "mediaData" in H && e(0, a = H.mediaData), "inDelay" in H && e(1, l = H.inDelay), "outDelay" in H && e(2, c = H.outDelay), "duration" in H && e(3, d = H.duration), "unfolded" in H && e(4, h = H.unfolded), "animation" in H && e(5, u = H.animation), "playButtonIfNeed" in H && e(6, p = H.playButtonIfNeed), "canPlay" in H && e(7, m = H.canPlay), "objectFit" in H && e(8, g = H.objectFit), "enableCarousel" in H && e(18, A = H.enableCarousel), "autoplayConfig" in H && e(9, v = H.autoplayConfig);
13294
+ "tag" in H && e(17, r = H.tag), "mediaData" in H && e(0, a = H.mediaData), "inDelay" in H && e(1, l = H.inDelay), "outDelay" in H && e(2, c = H.outDelay), "duration" in H && e(3, d = H.duration), "unfolded" in H && e(4, u = H.unfolded), "animation" in H && e(5, h = H.animation), "playButtonIfNeed" in H && e(6, p = H.playButtonIfNeed), "canPlay" in H && e(7, m = H.canPlay), "objectFit" in H && e(8, g = H.objectFit), "enableCarousel" in H && e(18, A = H.enableCarousel), "autoplayConfig" in H && e(9, v = H.autoplayConfig);
13291
13295
  }, i.$$.update = () => {
13292
13296
  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((H) => {
13293
13297
  const N = H.querySelector("video");
@@ -13300,8 +13304,8 @@ function Dp(i, t, e) {
13300
13304
  l,
13301
13305
  c,
13302
13306
  d,
13303
- h,
13304
13307
  u,
13308
+ h,
13305
13309
  p,
13306
13310
  m,
13307
13311
  g,
@@ -13370,10 +13374,10 @@ function gr(i) {
13370
13374
  outDelay: 400
13371
13375
  }
13372
13376
  });
13373
- let h = i[2];
13374
- const u = (m) => m[5];
13375
- for (let m = 0; m < h.length; m += 1) {
13376
- let g = pr(i, h, m), A = u(g);
13377
+ let u = i[2];
13378
+ const h = (m) => m[5];
13379
+ for (let m = 0; m < u.length; m += 1) {
13380
+ let g = pr(i, u, m), A = h(g);
13377
13381
  a.set(A, r[m] = Ar(A, g));
13378
13382
  }
13379
13383
  let p = i[3] && vr(i);
@@ -13394,14 +13398,14 @@ function gr(i) {
13394
13398
  const A = {};
13395
13399
  g & 16 && (A.visible = m[4]), t.$set(A);
13396
13400
  const v = {};
13397
- g & 16 && (v.unfolded = m[4]), o.$set(v), g & 20 && (h = m[2], le(), r = Ue(r, g, u, 1, m, h, a, l.parentNode, lt, Ar, l, pr), ce()), m[3] ? p ? (p.p(m, g), g & 8 && D(p, 1)) : (p = vr(m), p.c(), D(p, 1), p.m(c.parentNode, c)) : p && (le(), T(p, 1, 1, () => {
13401
+ g & 16 && (v.unfolded = m[4]), o.$set(v), g & 20 && (u = m[2], le(), r = Ue(r, g, h, 1, m, u, a, l.parentNode, lt, Ar, l, pr), ce()), m[3] ? p ? (p.p(m, g), g & 8 && D(p, 1)) : (p = vr(m), p.c(), D(p, 1), p.m(c.parentNode, c)) : p && (le(), T(p, 1, 1, () => {
13398
13402
  p = null;
13399
13403
  }), ce());
13400
13404
  },
13401
13405
  i(m) {
13402
13406
  if (!d) {
13403
13407
  D(t.$$.fragment, m), D(o.$$.fragment, m);
13404
- for (let g = 0; g < h.length; g += 1)
13408
+ for (let g = 0; g < u.length; g += 1)
13405
13409
  D(r[g]);
13406
13410
  D(p), d = !0;
13407
13411
  }
@@ -13660,7 +13664,7 @@ function kr(i) {
13660
13664
  }
13661
13665
  function Bp(i) {
13662
13666
  var N, Y;
13663
- let t, e, n, o, s, r, a, l, c, d, h, u, p, m, g = i[2].title + "", A, v, w, y, x;
13667
+ let t, e, n, o, s, r, a, l, c, d, u, h, p, m, g = i[2].title + "", A, v, w, y, x;
13664
13668
  e = new Je({
13665
13669
  props: {
13666
13670
  visible: i[1],
@@ -13684,19 +13688,19 @@ function Bp(i) {
13684
13688
  t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), s = V(), r = j("div"), a = j("img"), c = V(), d = j("div");
13685
13689
  for (let z = 0; z < C.length; z += 1)
13686
13690
  C[z].c();
13687
- h = V();
13691
+ u = V();
13688
13692
  for (let z = 0; z < k.length; z += 1)
13689
13693
  k[z].c();
13690
- u = V(), p = j("div"), m = j("div"), A = xe(g), v = V(), w = j("div"), F && F.c(), y = V(), H && H.c(), b(o, "class", "line svelte-8mby9k"), R(o, "transition-delay", i[1] ? Rn + "ms" : Hn + Lr - Dr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(m, "class", "text svelte-8mby9k"), b(p, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), R(w, "height", ((P = i[2].price) == null ? void 0 : P.value) !== void 0 && ((I = i[2].price) == null ? void 0 : I.value) !== null && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), R(r, "transition-delay", i[1] ? Rn + Hn + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), q(t, "unfolded", i[1]), q(t, "folded", i[3]);
13694
+ h = V(), p = j("div"), m = j("div"), A = xe(g), v = V(), w = j("div"), F && F.c(), y = V(), H && H.c(), b(o, "class", "line svelte-8mby9k"), R(o, "transition-delay", i[1] ? Rn + "ms" : Hn + Lr - Dr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(m, "class", "text svelte-8mby9k"), b(p, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), R(w, "height", ((P = i[2].price) == null ? void 0 : P.value) !== void 0 && ((I = i[2].price) == null ? void 0 : I.value) !== null && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), R(r, "transition-delay", i[1] ? Rn + Hn + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), q(t, "unfolded", i[1]), q(t, "folded", i[3]);
13691
13695
  },
13692
13696
  m(P, I) {
13693
13697
  B(P, t, I), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, d);
13694
13698
  for (let z = 0; z < C.length; z += 1)
13695
13699
  C[z].m(d, null);
13696
- Q(d, h);
13700
+ Q(d, u);
13697
13701
  for (let z = 0; z < k.length; z += 1)
13698
13702
  k[z].m(d, null);
13699
- Q(r, u), Q(r, p), Q(p, m), Q(m, A), Q(r, v), Q(r, w), F && F.m(w, null), Q(w, y), H && H.m(w, null), x = !0;
13703
+ Q(r, h), Q(r, p), Q(p, m), Q(m, A), Q(r, v), Q(r, w), F && F.m(w, null), Q(w, y), H && H.m(w, null), x = !0;
13700
13704
  },
13701
13705
  p(P, [I]) {
13702
13706
  var O, W, Z, X;
@@ -13706,7 +13710,7 @@ function Bp(i) {
13706
13710
  let U;
13707
13711
  for (U = 0; U < L.length; U += 1) {
13708
13712
  const de = yr(P, L, U);
13709
- C[U] ? C[U].p(de, I) : (C[U] = Cr(de), C[U].c(), C[U].m(d, h));
13713
+ C[U] ? C[U].p(de, I) : (C[U] = Cr(de), C[U].c(), C[U].m(d, u));
13710
13714
  }
13711
13715
  for (; U < C.length; U += 1)
13712
13716
  C[U].d(1);
@@ -13755,7 +13759,7 @@ function Rp(i) {
13755
13759
  ae(i, "svelte-1ku3wt4", `.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`);
13756
13760
  }
13757
13761
  function Sr(i) {
13758
- let t, e, n, o, s, r, a, l = !0, c, d, h, u, p;
13762
+ let t, e, n, o, s, r, a, l = !0, c, d, u, h, p;
13759
13763
  return e = new Je({
13760
13764
  props: {
13761
13765
  center: !0,
@@ -13767,33 +13771,33 @@ function Sr(i) {
13767
13771
  t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), s = V(), r = j("audio"), b(o, "class", "audio-icon svelte-1ku3wt4"), r.controls = !1, b(r, "playsinline", ""), et(r.src, a = i[3]) || b(r, "src", a), b(t, "class", "audio svelte-1ku3wt4"), q(t, "paused", i[6]);
13768
13772
  },
13769
13773
  m(m, g) {
13770
- B(m, t, g), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), i[9](r), h = !0, u || (p = [
13774
+ B(m, t, g), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), i[9](r), u = !0, h || (p = [
13771
13775
  Ee(r, "play", i[10]),
13772
13776
  Ee(r, "pause", i[10]),
13773
13777
  Ee(t, "click", $i(i[7]))
13774
- ], u = !0);
13778
+ ], h = !0);
13775
13779
  },
13776
13780
  p(m, g) {
13777
- i = m, (!h || g & 8 && !et(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), (!h || g & 64) && q(t, "paused", i[6]);
13781
+ i = m, (!u || g & 8 && !et(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), (!u || g & 64) && q(t, "paused", i[6]);
13778
13782
  },
13779
13783
  i(m) {
13780
- h || (D(e.$$.fragment, m), m && Ie(() => {
13784
+ u || (D(e.$$.fragment, m), m && Ie(() => {
13781
13785
  d && d.end(1), c = Ht(t, Tt, {
13782
13786
  duration: i[2],
13783
13787
  delay: i[0],
13784
13788
  easing: Zt
13785
13789
  }), c.start();
13786
- }), h = !0);
13790
+ }), u = !0);
13787
13791
  },
13788
13792
  o(m) {
13789
13793
  T(e.$$.fragment, m), c && c.invalidate(), m && (d = Kt(t, Tt, {
13790
13794
  duration: i[2],
13791
13795
  delay: i[1],
13792
13796
  easing: Zt
13793
- })), h = !1;
13797
+ })), u = !1;
13794
13798
  },
13795
13799
  d(m) {
13796
- m && M(t), $(e), i[9](null), m && d && d.end(), u = !1, at(p);
13800
+ m && M(t), $(e), i[9](null), m && d && d.end(), h = !1, at(p);
13797
13801
  }
13798
13802
  };
13799
13803
  }
@@ -13825,53 +13829,53 @@ function Hp(i) {
13825
13829
  function Op(i, t, e) {
13826
13830
  let { inDelay: n = 0 } = t, { outDelay: o = 0 } = t, { duration: s = 0 } = t, { url: r } = t, { unfolded: a } = t, { hooksInfo: l = {} } = t;
13827
13831
  const c = pn("hooks"), d = pn("mediaStore");
13828
- let h, u = !0;
13832
+ let u, h = !0;
13829
13833
  d.subscribe(({ currentMediaUrl: A }) => {
13830
- A !== r && (h == null || h.pause());
13834
+ A !== r && (u == null || u.pause());
13831
13835
  });
13832
13836
  function p(A) {
13833
- d.set({ currentMediaUrl: r }), h && (c.emit("click", G({
13837
+ d.set({ currentMediaUrl: r }), u && (c.emit("click", G({
13834
13838
  event: A,
13835
13839
  target: "AudioTagPlayIcon",
13836
- audioInstance: h
13837
- }, l)), h.paused ? h.play() : h.pause(), e(
13840
+ audioInstance: u
13841
+ }, l)), u.paused ? u.play() : u.pause(), e(
13838
13842
  5,
13839
- h.onplay = (v) => c.emit("playStateChange", G({
13843
+ u.onplay = (v) => c.emit("playStateChange", G({
13840
13844
  event: v,
13841
13845
  state: "playing",
13842
- mediaInstance: h
13846
+ mediaInstance: u
13843
13847
  }, l)),
13844
- h
13848
+ u
13845
13849
  ), e(
13846
13850
  5,
13847
- h.onpause = (v) => c.emit("playStateChange", G({
13851
+ u.onpause = (v) => c.emit("playStateChange", G({
13848
13852
  event: v,
13849
13853
  state: "paused",
13850
- mediaInstance: h
13854
+ mediaInstance: u
13851
13855
  }, l)),
13852
- h
13856
+ u
13853
13857
  ));
13854
13858
  }
13855
13859
  function m(A) {
13856
13860
  ze[A ? "unshift" : "push"](() => {
13857
- h = A, e(5, h);
13861
+ u = A, e(5, u);
13858
13862
  });
13859
13863
  }
13860
13864
  function g() {
13861
- u = this.paused, e(6, u);
13865
+ h = this.paused, e(6, h);
13862
13866
  }
13863
13867
  return i.$$set = (A) => {
13864
13868
  "inDelay" in A && e(0, n = A.inDelay), "outDelay" in A && e(1, o = A.outDelay), "duration" in A && e(2, s = A.duration), "url" in A && e(3, r = A.url), "unfolded" in A && e(4, a = A.unfolded), "hooksInfo" in A && e(8, l = A.hooksInfo);
13865
13869
  }, i.$$.update = () => {
13866
- i.$$.dirty & 48 && (a || h == null || h.pause());
13870
+ i.$$.dirty & 48 && (a || u == null || u.pause());
13867
13871
  }, [
13868
13872
  n,
13869
13873
  o,
13870
13874
  s,
13871
13875
  r,
13872
13876
  a,
13873
- h,
13874
13877
  u,
13878
+ h,
13875
13879
  p,
13876
13880
  l,
13877
13881
  m,
@@ -13903,7 +13907,7 @@ function Gp(i) {
13903
13907
  }
13904
13908
  function zr(i) {
13905
13909
  var w, y, x, L;
13906
- let t, e, n, o, s, r, a, l, c, d, h, u, p, m, g, A, v;
13910
+ let t, e, n, o, s, r, a, l, c, d, u, h, p, m, g, A, v;
13907
13911
  return e = new Je({
13908
13912
  props: {
13909
13913
  visible: i[5],
@@ -13935,10 +13939,10 @@ function zr(i) {
13935
13939
  }
13936
13940
  }), {
13937
13941
  c() {
13938
- t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), ee(s.$$.fragment), r = V(), a = j("div"), l = j("div"), c = j("div"), ee(d.$$.fragment), h = V(), u = j("div"), ee(p.$$.fragment), b(o, "class", "line svelte-4r8s18"), R(o, "width", i[2] + "px"), b(c, "class", "audio-icon svelte-4r8s18"), R(u, "display", "inline-block"), b(l, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), Ie(() => i[8].call(a)), b(t, "class", "audio-tag svelte-4r8s18"), q(t, "unfolded", i[5]);
13942
+ t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), ee(s.$$.fragment), r = V(), a = j("div"), l = j("div"), c = j("div"), ee(d.$$.fragment), u = V(), h = j("div"), ee(p.$$.fragment), b(o, "class", "line svelte-4r8s18"), R(o, "width", i[2] + "px"), b(c, "class", "audio-icon svelte-4r8s18"), R(h, "display", "inline-block"), b(l, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), Ie(() => i[8].call(a)), b(t, "class", "audio-tag svelte-4r8s18"), q(t, "unfolded", i[5]);
13939
13943
  },
13940
13944
  m(C, S) {
13941
- B(C, t, S), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, h), Q(l, u), K(p, u, null), m = yt(a, i[8].bind(a)), g = !0, A || (v = Ee(u, "click", i[6]), A = !0);
13945
+ B(C, t, S), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, u), Q(l, h), K(p, h, null), m = yt(a, i[8].bind(a)), g = !0, A || (v = Ee(h, "click", i[6]), A = !0);
13942
13946
  },
13943
13947
  p(C, S) {
13944
13948
  var Y, P, I, z;
@@ -13992,14 +13996,14 @@ function Wp(i, t, e) {
13992
13996
  function d() {
13993
13997
  e(1, a = !a);
13994
13998
  }
13995
- function h() {
13999
+ function u() {
13996
14000
  l = this.clientWidth, e(2, l);
13997
14001
  }
13998
- return i.$$set = (u) => {
13999
- "tag" in u && e(0, r = u.tag);
14002
+ return i.$$set = (h) => {
14003
+ "tag" in h && e(0, r = h.tag);
14000
14004
  }, i.$$.update = () => {
14001
- var u;
14002
- i.$$.dirty & 1 && e(5, n = !!((u = r.state) != null && u.unfolded)), i.$$.dirty & 1 && e(7, o = r.data.text), i.$$.dirty & 128 && e(3, c = [{ id: Fe(), content: o }]), i.$$.dirty & 2 && e(4, s = a ? 450 : 0);
14005
+ var h;
14006
+ i.$$.dirty & 1 && e(5, n = !!((h = r.state) != null && h.unfolded)), i.$$.dirty & 1 && e(7, o = r.data.text), i.$$.dirty & 128 && e(3, c = [{ id: Fe(), content: o }]), i.$$.dirty & 2 && e(4, s = a ? 450 : 0);
14003
14007
  }, [
14004
14008
  r,
14005
14009
  a,
@@ -14009,7 +14013,7 @@ function Wp(i, t, e) {
14009
14013
  n,
14010
14014
  d,
14011
14015
  o,
14012
- h
14016
+ u
14013
14017
  ];
14014
14018
  }
14015
14019
  class Xp extends oe {
@@ -14165,7 +14169,7 @@ function qp(i) {
14165
14169
  };
14166
14170
  }
14167
14171
  function Kp(i) {
14168
- let t, e, n, o, s, r, a, l, c, d = i[0].text + "", h, u;
14172
+ let t, e, n, o, s, r, a, l, c, d = i[0].text + "", u, h;
14169
14173
  const p = [qp, _p], m = [];
14170
14174
  function g(A, v) {
14171
14175
  return A[0].linkType === Wi.VrLink ? 0 : A[0].linkType === Wi.NormalLink ? 1 : -1;
@@ -14184,22 +14188,22 @@ function Kp(i) {
14184
14188
  }
14185
14189
  }), {
14186
14190
  c() {
14187
- t = j("div"), e = j("div"), o && o.c(), s = V(), r = j("div"), ee(a.$$.fragment), l = V(), c = j("div"), h = xe(d), b(e, "class", "icon svelte-7x7u86"), b(c, "class", "text svelte-7x7u86"), b(r, "class", "text-wrapper svelte-7x7u86"), b(t, "class", "wrapper svelte-7x7u86");
14191
+ t = j("div"), e = j("div"), o && o.c(), s = V(), r = j("div"), ee(a.$$.fragment), l = V(), c = j("div"), u = xe(d), b(e, "class", "icon svelte-7x7u86"), b(c, "class", "text svelte-7x7u86"), b(r, "class", "text-wrapper svelte-7x7u86"), b(t, "class", "wrapper svelte-7x7u86");
14188
14192
  },
14189
14193
  m(A, v) {
14190
- B(A, t, v), Q(t, e), ~n && m[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, h), u = !0;
14194
+ B(A, t, v), Q(t, e), ~n && m[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, u), h = !0;
14191
14195
  },
14192
14196
  p(A, [v]) {
14193
14197
  let w = n;
14194
14198
  n = g(A), n !== w && (o && (le(), T(m[w], 1, 1, () => {
14195
14199
  m[w] = null;
14196
- }), ce()), ~n ? (o = m[n], o || (o = m[n] = p[n](A), o.c()), D(o, 1), o.m(e, null)) : o = null), (!u || v & 1) && d !== (d = A[0].text + "") && Me(h, d);
14200
+ }), ce()), ~n ? (o = m[n], o || (o = m[n] = p[n](A), o.c()), D(o, 1), o.m(e, null)) : o = null), (!h || v & 1) && d !== (d = A[0].text + "") && Me(u, d);
14197
14201
  },
14198
14202
  i(A) {
14199
- u || (D(o), D(a.$$.fragment, A), u = !0);
14203
+ h || (D(o), D(a.$$.fragment, A), h = !0);
14200
14204
  },
14201
14205
  o(A) {
14202
- T(o), T(a.$$.fragment, A), u = !1;
14206
+ T(o), T(a.$$.fragment, A), h = !1;
14203
14207
  },
14204
14208
  d(A) {
14205
14209
  A && M(t), ~n && m[n].d(), $(a);
@@ -14484,24 +14488,24 @@ function fg(i) {
14484
14488
  lg,
14485
14489
  ag,
14486
14490
  rg
14487
- ], h = [];
14488
- function u(p, m) {
14491
+ ], u = [];
14492
+ function h(p, m) {
14489
14493
  return p[1].element ? 0 : p[1].contentType === Xe.Text ? 1 : p[1].contentType === Xe.ImageText ? 2 : p[1].contentType === Xe.Audio ? 3 : p[1].contentType === Xe.Marketing ? 4 : p[1].contentType === Xe.Link ? 5 : p[1].contentType === Xe.MediaPlane ? 6 : -1;
14490
14494
  }
14491
- return ~(o = u(i)) && (s = h[o] = d[o](i)), {
14495
+ return ~(o = h(i)) && (s = u[o] = d[o](i)), {
14492
14496
  c() {
14493
14497
  var p, m, g;
14494
14498
  t = j("div"), e = j("div"), n = j("div"), s && s.c(), b(n, "class", "content svelte-95x526"), q(n, "unfolded", (p = i[1].state) == null ? void 0 : p.unfolded), b(e, "class", "content__wrapper svelte-95x526"), b(t, "class", "content__container svelte-95x526"), b(t, "data-id", r = i[1].id), q(t, "disable", i[1].enabled === !1 || ((m = i[1].temporaryState) == null ? void 0 : m.visible) === !1), q(t, "hide", !i[3].visible || !i[3].enabled || !i[4].visible || !((g = i[1].state) != null && g.visible)), q(t, "withAnimation", i[0]), q(t, "unClickable", i[1].clickable === !1), R(t, "width", i[1].pointType === "PointTag" ? 0 : "100%"), R(t, "height", i[1].pointType === "PointTag" ? 0 : "100%");
14495
14499
  },
14496
14500
  m(p, m) {
14497
- B(p, t, m), Q(t, e), Q(e, n), ~o && h[o].m(n, null), a = !0, l || (c = Ee(t, "click", $i(i[11])), l = !0);
14501
+ B(p, t, m), Q(t, e), Q(e, n), ~o && u[o].m(n, null), a = !0, l || (c = Ee(t, "click", $i(i[11])), l = !0);
14498
14502
  },
14499
14503
  p(p, [m]) {
14500
14504
  var A, v, w;
14501
14505
  let g = o;
14502
- o = u(p), o === g ? ~o && h[o].p(p, m) : (s && (le(), T(h[g], 1, 1, () => {
14503
- h[g] = null;
14504
- }), ce()), ~o ? (s = h[o], s ? s.p(p, m) : (s = h[o] = d[o](p), s.c()), D(s, 1), s.m(n, null)) : s = null), (!a || m & 2) && q(n, "unfolded", (A = p[1].state) == null ? void 0 : A.unfolded), (!a || m & 2 && r !== (r = p[1].id)) && b(t, "data-id", r), (!a || m & 2) && q(t, "disable", p[1].enabled === !1 || ((v = p[1].temporaryState) == null ? void 0 : v.visible) === !1), (!a || m & 26) && q(t, "hide", !p[3].visible || !p[3].enabled || !p[4].visible || !((w = p[1].state) != null && w.visible)), (!a || m & 1) && q(t, "withAnimation", p[0]), (!a || m & 2) && q(t, "unClickable", p[1].clickable === !1), m & 2 && R(t, "width", p[1].pointType === "PointTag" ? 0 : "100%"), m & 2 && R(t, "height", p[1].pointType === "PointTag" ? 0 : "100%");
14506
+ o = h(p), o === g ? ~o && u[o].p(p, m) : (s && (le(), T(u[g], 1, 1, () => {
14507
+ u[g] = null;
14508
+ }), ce()), ~o ? (s = u[o], s ? s.p(p, m) : (s = u[o] = d[o](p), s.c()), D(s, 1), s.m(n, null)) : s = null), (!a || m & 2) && q(n, "unfolded", (A = p[1].state) == null ? void 0 : A.unfolded), (!a || m & 2 && r !== (r = p[1].id)) && b(t, "data-id", r), (!a || m & 2) && q(t, "disable", p[1].enabled === !1 || ((v = p[1].temporaryState) == null ? void 0 : v.visible) === !1), (!a || m & 26) && q(t, "hide", !p[3].visible || !p[3].enabled || !p[4].visible || !((w = p[1].state) != null && w.visible)), (!a || m & 1) && q(t, "withAnimation", p[0]), (!a || m & 2) && q(t, "unClickable", p[1].clickable === !1), m & 2 && R(t, "width", p[1].pointType === "PointTag" ? 0 : "100%"), m & 2 && R(t, "height", p[1].pointType === "PointTag" ? 0 : "100%");
14505
14509
  },
14506
14510
  i(p) {
14507
14511
  a || (D(s), a = !0);
@@ -14510,30 +14514,30 @@ function fg(i) {
14510
14514
  T(s), a = !1;
14511
14515
  },
14512
14516
  d(p) {
14513
- p && M(t), ~o && h[o].d(), l = !1, c();
14517
+ p && M(t), ~o && u[o].d(), l = !1, c();
14514
14518
  }
14515
14519
  };
14516
14520
  }
14517
14521
  function mg(i, t, e) {
14518
- let n, o, s, r, { withAnimation: a = !1 } = t, { tag: l } = t, { hooks: c } = t, { state: d } = t, { mediaStore: h } = t, { temporaryState: u } = t;
14519
- Qi("hooks", c), Qi("mediaStore", h);
14522
+ let n, o, s, r, { withAnimation: a = !1 } = t, { tag: l } = t, { hooks: c } = t, { state: d } = t, { mediaStore: u } = t, { temporaryState: h } = t;
14523
+ Qi("hooks", c), Qi("mediaStore", u);
14520
14524
  let p, m;
14521
14525
  function g(v) {
14522
14526
  v ? c.emit("exposure", { id: r, type: "start" }) : c.emit("exposure", { id: r, type: "end" });
14523
14527
  }
14524
14528
  const A = (v) => c.emit("click", { event: v, target: "TagContent", tag: l });
14525
14529
  return i.$$set = (v) => {
14526
- "withAnimation" in v && e(0, a = v.withAnimation), "tag" in v && e(1, l = v.tag), "hooks" in v && e(2, c = v.hooks), "state" in v && e(3, d = v.state), "mediaStore" in v && e(5, h = v.mediaStore), "temporaryState" in v && e(4, u = v.temporaryState);
14530
+ "withAnimation" in v && e(0, a = v.withAnimation), "tag" in v && e(1, l = v.tag), "hooks" in v && e(2, c = v.hooks), "state" in v && e(3, d = v.state), "mediaStore" in v && e(5, u = v.mediaStore), "temporaryState" in v && e(4, h = v.temporaryState);
14527
14531
  }, i.$$.update = () => {
14528
14532
  var v, w;
14529
- i.$$.dirty & 2 && e(9, n = (v = l.state) == null ? void 0 : v.unfolded), i.$$.dirty & 2 && e(8, o = (w = l.state) == null ? void 0 : w.visible), i.$$.dirty & 280 && e(10, s = d.visible && u.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== m && (e(7, m = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== p && (e(6, p = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
14533
+ i.$$.dirty & 2 && e(9, n = (v = l.state) == null ? void 0 : v.unfolded), i.$$.dirty & 2 && e(8, o = (w = l.state) == null ? void 0 : w.visible), i.$$.dirty & 280 && e(10, s = d.visible && h.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== m && (e(7, m = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== p && (e(6, p = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
14530
14534
  }, [
14531
14535
  a,
14532
14536
  l,
14533
14537
  c,
14534
14538
  d,
14535
- u,
14536
14539
  h,
14540
+ u,
14537
14541
  p,
14538
14542
  m,
14539
14543
  o,
@@ -14683,22 +14687,22 @@ function Br(i) {
14683
14687
  function jr(i) {
14684
14688
  let t, e, n, o, s, r;
14685
14689
  const a = [Ig, Pg], l = [];
14686
- function c(d, h) {
14687
- var u, p, m, g;
14688
- return ((p = (u = d[0].style) == null ? void 0 : u.point) == null ? void 0 : p.style) === "CustomIcon" && ((g = (m = d[0].style) == null ? void 0 : m.point) == null ? void 0 : g.iconUrl) ? 0 : 1;
14690
+ function c(d, u) {
14691
+ var h, p, m, g;
14692
+ return ((p = (h = d[0].style) == null ? void 0 : h.point) == null ? void 0 : p.style) === "CustomIcon" && ((g = (m = d[0].style) == null ? void 0 : m.point) == null ? void 0 : g.iconUrl) ? 0 : 1;
14689
14693
  }
14690
14694
  return n = c(i), o = l[n] = a[n](i), {
14691
14695
  c() {
14692
14696
  t = j("div"), e = V(), o.c(), s = fe(), b(t, "class", "point-click-helper svelte-8en2lj");
14693
14697
  },
14694
- m(d, h) {
14695
- B(d, t, h), B(d, e, h), l[n].m(d, h), B(d, s, h), r = !0;
14698
+ m(d, u) {
14699
+ B(d, t, u), B(d, e, u), l[n].m(d, u), B(d, s, u), r = !0;
14696
14700
  },
14697
- p(d, h) {
14698
- let u = n;
14699
- n = c(d), n === u ? l[n].p(d, h) : (le(), T(l[u], 1, 1, () => {
14700
- l[u] = null;
14701
- }), ce(), o = l[n], o ? o.p(d, h) : (o = l[n] = a[n](d), o.c()), D(o, 1), o.m(s.parentNode, s));
14701
+ p(d, u) {
14702
+ let h = n;
14703
+ n = c(d), n === h ? l[n].p(d, u) : (le(), T(l[h], 1, 1, () => {
14704
+ l[h] = null;
14705
+ }), ce(), o = l[n], o ? o.p(d, u) : (o = l[n] = a[n](d), o.c()), D(o, 1), o.m(s.parentNode, s));
14702
14706
  },
14703
14707
  i(d) {
14704
14708
  r || (D(o), r = !0);
@@ -14781,8 +14785,8 @@ function xg(i) {
14781
14785
  n && n.m(a, l), B(a, t, l), e = !0;
14782
14786
  },
14783
14787
  p(a, [l]) {
14784
- var c, d, h;
14785
- ((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((h = a[0].temporaryState) == null ? void 0 : h.visible) !== !1 ? n ? (n.p(a, l), l & 1 && D(n, 1)) : (n = Br(a), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (le(), T(n, 1, 1, () => {
14788
+ var c, d, u;
14789
+ ((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((u = a[0].temporaryState) == null ? void 0 : u.visible) !== !1 ? n ? (n.p(a, l), l & 1 && D(n, 1)) : (n = Br(a), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (le(), T(n, 1, 1, () => {
14786
14790
  n = null;
14787
14791
  }), ce());
14788
14792
  },
@@ -14882,10 +14886,10 @@ function Sg(i) {
14882
14886
  B(c, t, d), s && s.m(t, null), Q(t, e), r && r.m(t, null), o = !0;
14883
14887
  },
14884
14888
  p(c, [d]) {
14885
- var h, u;
14889
+ var u, h;
14886
14890
  c[1].dimensionType === _e.Two ? s ? (s.p(c, d), d & 2 && D(s, 1)) : (s = Qr(c), s.c(), D(s, 1), s.m(t, e)) : s && (le(), T(s, 1, 1, () => {
14887
14891
  s = null;
14888
- }), ce()), c[1].pointType === We.PointTag && ((u = (h = c[1].style) == null ? void 0 : h.point) == null ? void 0 : u.style) !== "noPoint" ? r ? (r.p(c, d), d & 2 && D(r, 1)) : (r = Rr(c), r.c(), D(r, 1), r.m(t, null)) : r && (le(), T(r, 1, 1, () => {
14892
+ }), ce()), c[1].pointType === We.PointTag && ((h = (u = c[1].style) == null ? void 0 : u.point) == null ? void 0 : h.style) !== "noPoint" ? r ? (r.p(c, d), d & 2 && D(r, 1)) : (r = Rr(c), r.c(), D(r, 1), r.m(t, null)) : r && (le(), T(r, 1, 1, () => {
14889
14893
  r = null;
14890
14894
  }), ce()), (!o || d & 2 && n !== (n = c[1].id)) && b(t, "data-id", n), (!o || d & 1024) && q(t, "hide", c[10]), (!o || d & 64) && q(t, "unfolded", c[6]), d & 512 && R(t, "left", c[9]), d & 256 && R(t, "top", c[8]), d & 128 && R(t, "z-index", c[7]);
14891
14895
  },
@@ -14901,7 +14905,7 @@ function Sg(i) {
14901
14905
  };
14902
14906
  }
14903
14907
  function zg(i, t, e) {
14904
- let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: h } = t, { state: u } = t, { mediaStore: p } = t, { temporaryState: m } = t, g, A = !1;
14908
+ let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: u } = t, { state: h } = t, { mediaStore: p } = t, { temporaryState: m } = t, g, A = !1;
14905
14909
  function v(y) {
14906
14910
  g !== void 0 && clearTimeout(g), A = !0, g = setTimeout(
14907
14911
  () => {
@@ -14911,18 +14915,18 @@ function zg(i, t, e) {
14911
14915
  );
14912
14916
  }
14913
14917
  const w = (y) => {
14914
- A || h.emit("click", { event: y, target: "TagPoint", tag: d });
14918
+ A || u.emit("click", { event: y, target: "TagPoint", tag: d });
14915
14919
  };
14916
14920
  return i.$$set = (y) => {
14917
- "withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, h = y.hooks), "state" in y && e(3, u = y.state), "mediaStore" in y && e(4, p = y.mediaStore), "temporaryState" in y && e(5, m = y.temporaryState);
14921
+ "withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, u = y.hooks), "state" in y && e(3, h = y.state), "mediaStore" in y && e(4, p = y.mediaStore), "temporaryState" in y && e(5, m = y.temporaryState);
14918
14922
  }, i.$$.update = () => {
14919
14923
  var y, x, L, C;
14920
14924
  i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (x = d.state) == null ? void 0 : x.unfolded), i.$$.dirty & 2 && e(9, r = ((L = d.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((C = d.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && v();
14921
14925
  }, [
14922
14926
  c,
14923
14927
  d,
14924
- h,
14925
14928
  u,
14929
+ h,
14926
14930
  p,
14927
14931
  m,
14928
14932
  s,
@@ -15029,7 +15033,7 @@ function Fr(i, t) {
15029
15033
  B(l, e, c), K(n, e, null), Q(e, o), s = !0;
15030
15034
  },
15031
15035
  p(l, c) {
15032
- var h, u, p;
15036
+ var u, h, p;
15033
15037
  t = l;
15034
15038
  const d = c & 63 ? Te(r, [
15035
15039
  {
@@ -15041,7 +15045,7 @@ function Fr(i, t) {
15041
15045
  withAnimation: t[0]
15042
15046
  }
15043
15047
  ]) : {};
15044
- n.$set(d), (!s || c & 2) && q(e, "hide", !((h = t[6].pointTagStyle) != null && h.leftPercent) || !((u = t[6].pointTagStyle) != null && u.topPercent) || t[6].enabled === !1 || !t[6].state || ((p = t[6].temporaryState) == null ? void 0 : p.visible) === !1);
15048
+ n.$set(d), (!s || c & 2) && q(e, "hide", !((u = t[6].pointTagStyle) != null && u.leftPercent) || !((h = t[6].pointTagStyle) != null && h.topPercent) || t[6].enabled === !1 || !t[6].state || ((p = t[6].temporaryState) == null ? void 0 : p.visible) === !1);
15045
15049
  },
15046
15050
  i(l) {
15047
15051
  s || (D(n.$$.fragment, l), s = !0);
@@ -15151,11 +15155,11 @@ class Hg extends di {
15151
15155
  f(this, "tagCacheByPanoIndex", {});
15152
15156
  }
15153
15157
  getCaches({ panoIndex: e, id: n, key: o }) {
15154
- var c, d, h, u;
15158
+ var c, d, u, h;
15155
15159
  const { five: s } = this, r = (c = s.panoIndex) != null ? c : e;
15156
15160
  if (r === void 0)
15157
15161
  throw new Error(`TagCacheController getCache(): fivePanoIndex is ${r}`);
15158
- const a = `${(h = (d = s.work) == null ? void 0 : d.workCode) != null ? h : s.model.uuid}-${r}`;
15162
+ const a = `${(u = (d = s.work) == null ? void 0 : d.workCode) != null ? u : s.model.uuid}-${r}`;
15159
15163
  let l = this.tagCacheByPanoIndex[a];
15160
15164
  if (l || (l = /* @__PURE__ */ new Map(), this.tagCacheByPanoIndex[a] = l), n === void 0)
15161
15165
  return l;
@@ -15163,7 +15167,7 @@ class Hg extends di {
15163
15167
  const p = l.get(n);
15164
15168
  return p || (l.set(n, {}), l.get(n));
15165
15169
  }
15166
- return (u = l.get(n)) == null ? void 0 : u[o];
15170
+ return (h = l.get(n)) == null ? void 0 : h[o];
15167
15171
  }
15168
15172
  clearCache() {
15169
15173
  this.tagCacheByPanoIndex = {};
@@ -15200,7 +15204,7 @@ class Og extends Hg {
15200
15204
  return o.visible;
15201
15205
  {
15202
15206
  const a = (() => {
15203
- var d, h, u, p, m;
15207
+ var d, u, h, p, m;
15204
15208
  const l = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, c = this.getDistance(e);
15205
15209
  if (typeof l == "function")
15206
15210
  return l(this.five, { tag: e, distance: c });
@@ -15210,10 +15214,10 @@ class Og extends Hg {
15210
15214
  return !0;
15211
15215
  if (l.visiblePanoIndex !== void 0 && (s === void 0 || !l.visiblePanoIndex.includes(s)) || l.visibleDistance !== void 0 && l.visibleDistance !== "unLimited" && Qn(c, l.visibleDistance) === !1)
15212
15216
  return !1;
15213
- if (((h = l.intersectRaycaster) == null ? void 0 : h.enabled) !== !1) {
15217
+ if (((u = l.intersectRaycaster) == null ? void 0 : u.enabled) !== !1) {
15214
15218
  if (s === void 0)
15215
15219
  return !1;
15216
- const g = (u = this.five.work.observers[s]) == null ? void 0 : u.position;
15220
+ const g = (h = this.five.work.observers[s]) == null ? void 0 : h.position;
15217
15221
  if (g === void 0)
15218
15222
  throw new Error(`getVisible(): observerPosition is ${g}`);
15219
15223
  const A = jn(e.position).sub(g).normalize();
@@ -15280,17 +15284,17 @@ class Og extends Hg {
15280
15284
  return !1;
15281
15285
  }
15282
15286
  if (r.autoUnfold.strategy === "MinimumDistance") {
15283
- const d = this.filterPointTag().filter((u) => this.getVisibleByPanoIndex(u)).filter((u) => {
15284
- const p = this.getTagProject(u);
15287
+ const d = this.filterPointTag().filter((h) => this.getVisibleByPanoIndex(h)).filter((h) => {
15288
+ const p = this.getTagProject(h);
15285
15289
  if (!p)
15286
15290
  return !1;
15287
15291
  const { x: m, y: g, z: A } = p;
15288
15292
  return !(Math.abs(A) > 1 || Math.abs(m) > 1 || Math.abs(g) > 1);
15289
- }).filter((u) => {
15293
+ }).filter((h) => {
15290
15294
  var m;
15291
- const p = this.getTagConfig(u).unfoldedConfig;
15295
+ const p = this.getTagConfig(h).unfoldedConfig;
15292
15296
  return typeof p == "object" && ((m = p.autoUnfold) == null ? void 0 : m.strategy) === "MinimumDistance";
15293
- }).map((u) => ({ id: u.id, distance: this.getDistance(u) })).filter((u) => u.distance !== void 0).sort((u, p) => u.distance - p.distance).findIndex((u) => u.id === e.id);
15297
+ }).map((h) => ({ id: h.id, distance: this.getDistance(h) })).filter((h) => h.distance !== void 0).sort((h, p) => h.distance - p.distance).findIndex((h) => h.id === e.id);
15294
15298
  if (d === -1 || d <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
15295
15299
  return !1;
15296
15300
  }
@@ -15310,8 +15314,8 @@ class Og extends Hg {
15310
15314
  const c = (l = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : l.position;
15311
15315
  if (c === void 0)
15312
15316
  throw new Error(`getDistance(): observerPosition is ${c}`);
15313
- const d = (() => e.pointType === We.PointTag ? rt(e == null ? void 0 : e.position) : jn(e.position))(), h = c.distanceTo(d);
15314
- return s.distance = h, h;
15317
+ const d = (() => e.pointType === We.PointTag ? rt(e == null ? void 0 : e.position) : jn(e.position))(), u = c.distanceTo(d);
15318
+ return s.distance = u, u;
15315
15319
  }
15316
15320
  }
15317
15321
  getAngle(e, n) {
@@ -15329,8 +15333,8 @@ class Og extends Hg {
15329
15333
  const d = (() => e.pointType === We.PointTag ? hn(e.normal) : Ya(e.position))();
15330
15334
  if (!d)
15331
15335
  return;
15332
- const h = new E.Vector3().copy(c).sub(jn(e.position)), u = d.angleTo(h) * 180 / Math.PI;
15333
- return s.angle = u, s.angle;
15336
+ const u = new E.Vector3().copy(c).sub(jn(e.position)), h = d.angleTo(u) * 180 / Math.PI;
15337
+ return s.angle = h, s.angle;
15334
15338
  }
15335
15339
  }
15336
15340
  getTagConfig(e) {
@@ -15342,8 +15346,8 @@ class Og extends Hg {
15342
15346
  const a = r;
15343
15347
  if (n[a])
15344
15348
  return;
15345
- const l = a.split("-"), [c = "Any", d = "Any", h = "Any"] = l || [];
15346
- (e.dimensionType === c || c === "Any") && (e.contentType === d || d === "Any") && (e.pointType === h || h === "Any") && (n[a] = this.config.contentTypeConfig[a]);
15349
+ const l = a.split("-"), [c = "Any", d = "Any", u = "Any"] = l || [];
15350
+ (e.dimensionType === c || c === "Any") && (e.contentType === d || d === "Any") && (e.pointType === u || u === "Any") && (n[a] = this.config.contentTypeConfig[a]);
15347
15351
  }), St({}, this.config.globalConfig, ...Object.values(n), e.config);
15348
15352
  }
15349
15353
  canBe(e, n) {
@@ -16071,8 +16075,8 @@ function $g() {
16071
16075
  border: "1px solid rgba(255,255,255,0.4)"
16072
16076
  });
16073
16077
  i.appendChild(t), t.appendChild(e);
16074
- const n = "-4px", o = { direction: "nesw", element: ht({ cursor: "nesw-resize", left: n, bottom: n }) }, s = { direction: "ns", element: ht({ cursor: "ns-resize", bottom: n }) }, r = { direction: "nwse", element: ht({ cursor: "nwse-resize", right: n, bottom: n }) }, a = { direction: "ew", element: ht({ cursor: "ew-resize", right: n }) }, l = { direction: "nesw", element: ht({ cursor: "nesw-resize", right: n, top: n }) }, c = { direction: "ns", element: ht({ cursor: "ns-resize", top: n }) }, d = { direction: "nwse", element: ht({ cursor: "nwse-resize", left: n, top: n }) }, h = { direction: "ew", element: ht({ cursor: "ew-resize", left: n }) };
16075
- return new Array(s, a, c, h, o, r, l, d).forEach((p) => t.appendChild(p.element)), { container: i, squares: [
16078
+ const n = "-4px", o = { direction: "nesw", element: ht({ cursor: "nesw-resize", left: n, bottom: n }) }, s = { direction: "ns", element: ht({ cursor: "ns-resize", bottom: n }) }, r = { direction: "nwse", element: ht({ cursor: "nwse-resize", right: n, bottom: n }) }, a = { direction: "ew", element: ht({ cursor: "ew-resize", right: n }) }, l = { direction: "nesw", element: ht({ cursor: "nesw-resize", right: n, top: n }) }, c = { direction: "ns", element: ht({ cursor: "ns-resize", top: n }) }, d = { direction: "nwse", element: ht({ cursor: "nwse-resize", left: n, top: n }) }, u = { direction: "ew", element: ht({ cursor: "ew-resize", left: n }) };
16079
+ return new Array(s, a, c, u, o, r, l, d).forEach((p) => t.appendChild(p.element)), { container: i, squares: [
16076
16080
  o,
16077
16081
  s,
16078
16082
  r,
@@ -16080,7 +16084,7 @@ function $g() {
16080
16084
  l,
16081
16085
  c,
16082
16086
  d,
16083
- h
16087
+ u
16084
16088
  ] };
16085
16089
  }
16086
16090
  function ht(i) {
@@ -16197,10 +16201,10 @@ class e0 extends Yg {
16197
16201
  return;
16198
16202
  this.css3DInstance = n, n.appendToElement(this.container);
16199
16203
  const o = n.css3DObject.container, { container: s, squares: r } = $g();
16200
- this.points = r.map((h, u) => ({
16201
- direction: h.direction,
16202
- point: h.element,
16203
- position: this.calculatePointPosition(e)[u]
16204
+ this.points = r.map((u, h) => ({
16205
+ direction: u.direction,
16206
+ point: u.element,
16207
+ position: this.calculatePointPosition(e)[h]
16204
16208
  })), o.insertBefore(s, (d = o.children[0]) != null ? d : null);
16205
16209
  const a = new E.PlaneGeometry(n.css3DObject.width, n.css3DObject.height), l = new E.MeshBasicMaterial({
16206
16210
  color: 0,
@@ -16338,11 +16342,11 @@ pe.prototype._onMove = function(i, t, e, n) {
16338
16342
  s.set(t, e), this._raycaster.setFromCamera(s, this._camera);
16339
16343
  var r = this._raycaster.intersectObjects(o), a = this._selected;
16340
16344
  if (r.length > 0) {
16341
- var l, c, d, h = r[0], u = h.object;
16342
- this._selected = u, d = this._bound("mousemove", u), a != u && (l = this._bound("mouseover", u), c = a && this._bound("mouseout", a));
16345
+ var l, c, d, u = r[0], h = u.object;
16346
+ this._selected = h, d = this._bound("mousemove", h), a != h && (l = this._bound("mouseover", h), c = a && this._bound("mouseout", a));
16343
16347
  } else
16344
16348
  c = a && this._bound("mouseout", a), this._selected = null;
16345
- d && this._notify("mousemove", u, n, h), l && this._notify("mouseover", u, n, h), c && this._notify("mouseout", a, n, h);
16349
+ d && this._notify("mousemove", h, n, u), l && this._notify("mouseover", h, n, u), c && this._notify("mouseout", a, n, u);
16346
16350
  }
16347
16351
  };
16348
16352
  pe.prototype._onEvent = function(i, t, e, n) {
@@ -16520,26 +16524,26 @@ class po {
16520
16524
  const o = (Array.isArray(t) ? t : [t]).filter(Bt), s = [];
16521
16525
  for (const r of o)
16522
16526
  if (r instanceof E.Mesh || r instanceof E.Group) {
16523
- const a = r instanceof E.Group ? r.children.filter((u) => u instanceof E.Mesh) : [r];
16524
- a.forEach((u) => {
16525
- u.__originalColor__ = u.material.color.clone(), u.__originalOpacity__ = u.material.opacity;
16527
+ const a = r instanceof E.Group ? r.children.filter((h) => h instanceof E.Mesh) : [r];
16528
+ a.forEach((h) => {
16529
+ h.__originalColor__ = h.material.color.clone(), h.__originalOpacity__ = h.material.opacity;
16526
16530
  });
16527
16531
  const l = () => {
16528
- a.forEach((u) => {
16529
- u.material.color.set(e), u.material.opacity = n;
16532
+ a.forEach((h) => {
16533
+ h.material.color.set(e), h.material.opacity = n;
16530
16534
  }), this.render();
16531
16535
  }, c = () => {
16532
- a.forEach((u) => {
16533
- u.material.color.copy(u.__originalColor__), u.material.opacity = u.__originalOpacity__;
16536
+ a.forEach((h) => {
16537
+ h.material.color.copy(h.__originalColor__), h.material.opacity = h.__originalOpacity__;
16534
16538
  }), this.render();
16535
16539
  }, d = () => {
16536
16540
  this.isDragging || l();
16537
- }, h = () => {
16541
+ }, u = () => {
16538
16542
  this.isDragging || c();
16539
16543
  };
16540
- for (const u of a)
16541
- this.domEvents.addEventListener(u, "mouseover", d), this.domEvents.addEventListener(u, "mouseout", h), this.hooks.on("moveStart", l), this.hooks.on("moveEnd", c), this.hooks.on("rotateEnd", c), s.push(() => {
16542
- this.domEvents.removeEventListener(u, "mouseover", d), this.domEvents.removeEventListener(u, "mouseout", h), this.hooks.off("moveStart", l), this.hooks.off("moveEnd", c), this.hooks.off("rotateEnd", c);
16544
+ for (const h of a)
16545
+ this.domEvents.addEventListener(h, "mouseover", d), this.domEvents.addEventListener(h, "mouseout", u), this.hooks.on("moveStart", l), this.hooks.on("moveEnd", c), this.hooks.on("rotateEnd", c), s.push(() => {
16546
+ this.domEvents.removeEventListener(h, "mouseover", d), this.domEvents.removeEventListener(h, "mouseout", u), this.hooks.off("moveStart", l), this.hooks.off("moveEnd", c), this.hooks.off("rotateEnd", c);
16543
16547
  });
16544
16548
  }
16545
16549
  return () => s.forEach((r) => r == null ? void 0 : r());
@@ -16595,8 +16599,8 @@ class t0 extends po {
16595
16599
  case "z":
16596
16600
  return s;
16597
16601
  }
16598
- })(), d = n.point.clone(), h = new E.Plane();
16599
- h.setFromNormalAndCoplanarPoint(c, d), this.startInfo = { startVectorProject: d.clone().projectOnVector(l), directionVector: l, plane: h }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0, console.log("%c MoveController dragStart", "color: #e5af2e");
16602
+ })(), d = n.point.clone(), u = new E.Plane();
16603
+ u.setFromNormalAndCoplanarPoint(c, d), this.startInfo = { startVectorProject: d.clone().projectOnVector(l), directionVector: l, plane: u }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0, console.log("%c MoveController dragStart", "color: #e5af2e");
16600
16604
  }
16601
16605
  dragging(e) {
16602
16606
  if (!this.isDragging || !this.startInfo)
@@ -16808,16 +16812,16 @@ class l0 extends po {
16808
16812
  this.setTipsAngle(0);
16809
16813
  const l = s.clone();
16810
16814
  l.y += 0.2, this.setTipsPosition(l);
16811
- const c = new E.Vector3(1, 0, 0).applyQuaternion(this.helperObject3DQuaternion), d = new E.Vector3(0, 1, 0).applyQuaternion(this.helperObject3DQuaternion), h = new E.Vector3(0, 0, 1).applyQuaternion(this.helperObject3DQuaternion), u = (() => {
16815
+ const c = new E.Vector3(1, 0, 0).applyQuaternion(this.helperObject3DQuaternion), d = new E.Vector3(0, 1, 0).applyQuaternion(this.helperObject3DQuaternion), u = new E.Vector3(0, 0, 1).applyQuaternion(this.helperObject3DQuaternion), h = (() => {
16812
16816
  switch (o) {
16813
16817
  case "x":
16814
16818
  return c;
16815
16819
  case "y":
16816
16820
  return d;
16817
16821
  case "z":
16818
- return h;
16822
+ return u;
16819
16823
  }
16820
- })(), p = new E.Plane().setFromNormalAndCoplanarPoint(u, s), m = new E.Vector3();
16824
+ })(), p = new E.Plane().setFromNormalAndCoplanarPoint(h, s), m = new E.Vector3();
16821
16825
  p.projectPoint(s.clone(), m);
16822
16826
  const g = m.clone().sub(r), A = g.clone(), v = g.angleTo(a.baseAxes);
16823
16827
  this.setAngleHelperStart(o, v), this.setAngleHelperLength(o, 0), this.rotations.push({ vector: g.clone(), direction: !0 }), this.startInfo = { direction: o, startVector: g, staticStartVector: A, plane: p, angleHelper: a }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("rotateStart"), this.isDragging = !0, console.log(`%c RotateController dragStart ${o}`, "color: #e5af2e");
@@ -16835,16 +16839,16 @@ class l0 extends po {
16835
16839
  const { startVector: n, plane: o, angleHelper: s, staticStartVector: r, direction: a } = this.startInfo, l = this.originObject3D, c = e.ray.intersectPlane(o, new E.Vector3());
16836
16840
  if (!c)
16837
16841
  return;
16838
- const d = l.position.clone(), h = new E.Vector3();
16839
- o.projectPoint(c.clone(), h);
16840
- const u = h.clone().sub(d);
16841
- if (n.angleTo(u) === 0 || (this.lastRotation === void 0 && (this.lastRotation = { angle: 0 }), this.rotations.length === 0))
16842
+ const d = l.position.clone(), u = new E.Vector3();
16843
+ o.projectPoint(c.clone(), u);
16844
+ const h = u.clone().sub(d);
16845
+ if (n.angleTo(h) === 0 || (this.lastRotation === void 0 && (this.lastRotation = { angle: 0 }), this.rotations.length === 0))
16842
16846
  return;
16843
16847
  const p = (() => {
16844
16848
  if (this.rotations.length === 1)
16845
- return u.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
16849
+ return h.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
16846
16850
  {
16847
- const g = this.rotations[this.rotations.length - 1], A = this.rotations[this.rotations.length - 2], v = u.angleTo(A.vector), w = u.angleTo(g.vector), y = g.vector.angleTo(A.vector);
16851
+ const g = this.rotations[this.rotations.length - 1], A = this.rotations[this.rotations.length - 2], v = h.angleTo(A.vector), w = h.angleTo(g.vector), y = g.vector.angleTo(A.vector);
16848
16852
  if (y === 0 || w === 0 || v === 0)
16849
16853
  return;
16850
16854
  if (v > w && v > y)
@@ -16855,9 +16859,9 @@ class l0 extends po {
16855
16859
  })();
16856
16860
  if (p === void 0)
16857
16861
  return console.warn("rotationDirection is undefined");
16858
- this.rotations.push({ vector: u, direction: p }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + u.angleTo(n) * (p ? 1 : -1), this.setAngleHelperLength(a, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180);
16859
- const m = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), u.clone().normalize());
16860
- l.applyQuaternion(m), this.helperObject3D.applyHelperQuaternion(m), this.helperObject3DQuaternion.premultiply(m), this.hooks.emit("rotateUpdate", { quaternion: m, origin: d }), this.startInfo.startVector = u;
16862
+ this.rotations.push({ vector: h, direction: p }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + h.angleTo(n) * (p ? 1 : -1), this.setAngleHelperLength(a, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180);
16863
+ const m = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize());
16864
+ l.applyQuaternion(m), this.helperObject3D.applyHelperQuaternion(m), this.helperObject3DQuaternion.premultiply(m), this.hooks.emit("rotateUpdate", { quaternion: m, origin: d }), this.startInfo.startVector = h;
16861
16865
  }
16862
16866
  dragEnd() {
16863
16867
  !this.isDragging || (console.log("%c RotateController dragEnd", "color: #e94e4e"), this.startInfo = void 0, this.isDragging = !1, this.lastRotation = void 0, this.rotations = [], this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
@@ -16952,11 +16956,11 @@ class c0 extends po {
16952
16956
  const a = e.ray.intersectPlane(s, new _());
16953
16957
  if (!a || Vg(a, this.camera.position))
16954
16958
  return;
16955
- const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, h = new _().subVectors(r[1], r[0]), u = new _().subVectors(r[3], r[0]), p = (N) => {
16959
+ const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, u = new _().subVectors(r[1], r[0]), h = new _().subVectors(r[3], r[0]), p = (N) => {
16956
16960
  const Y = new _(0, 0, 0);
16957
16961
  if (!this.startInfo)
16958
16962
  return Y;
16959
- const P = (N === "ew" ? h : u).clone(), I = c.clone().projectOnVector(P), z = a.clone().projectOnVector(P), O = l.clone().projectOnVector(P);
16963
+ const P = (N === "ew" ? u : h).clone(), I = c.clone().projectOnVector(P), z = a.clone().projectOnVector(P), O = l.clone().projectOnVector(P);
16960
16964
  if (z.equals(I))
16961
16965
  return Y;
16962
16966
  if (N === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
@@ -16993,7 +16997,7 @@ class c0 extends po {
16993
16997
  case "nwse":
16994
16998
  A(), v();
16995
16999
  }
16996
- const w = new _().subVectors(r[1], r[0]).length() / h.length(), y = new _().subVectors(r[3], r[0]).length() / u.length(), x = new _(w, y, 1), L = new E.Matrix4().scale(x);
17000
+ const w = new _().subVectors(r[1], r[0]).length() / u.length(), y = new _().subVectors(r[3], r[0]).length() / h.length(), x = new _(w, y, 1), L = new E.Matrix4().scale(x);
16997
17001
  n.isCSS3DObjectPlus ? n.applyScaleMatrix4(L) : n.scale.applyMatrix4(L), o.position.copy(a);
16998
17002
  const C = new _().addVectors(r[0], r[2]).divideScalar(2), S = new _().subVectors(C, l), k = new E.Matrix4().setPosition(S);
16999
17003
  n.applyMatrix4(k), (F = this.helperObject3D.css3DInstance) == null || F.css3DObject.applyMatrix4(k), (H = this.helperObject3D.plane) == null || H.applyMatrix4(k), this.hooks.emit("scaleUpdate", { matrix4: L, helperOrigin: l }), this.hooks.emit("positionUpdate", { matrix4: k }), this.render();
@@ -17079,23 +17083,23 @@ class m0 extends di {
17079
17083
  this.objectHelperMap.set(e, o);
17080
17084
  const s = (d = this.five.getElement()) == null ? void 0 : d.parentElement, r = this.five.camera, { moveHelper: a = !0, rotateHelper: l = !0, scaleHelper: c = !0 } = n;
17081
17085
  if (a) {
17082
- const h = new Zg(e), u = new Mi(this.five, t0, e, h);
17083
- o.addControllers({ moveController: u.helperController });
17086
+ const u = new Zg(e), h = new Mi(this.five, t0, e, u);
17087
+ o.addControllers({ moveController: h.helperController });
17084
17088
  }
17085
17089
  if (l) {
17086
- let h;
17087
- s && r && (h = { container: s });
17088
- const u = new Kg(e, h), p = new Mi(this.five, l0, e, u);
17090
+ let u;
17091
+ s && r && (u = { container: s });
17092
+ const h = new Kg(e, u), p = new Mi(this.five, l0, e, h);
17089
17093
  o.addControllers({ rotateController: p.helperController });
17090
17094
  }
17091
17095
  if (c && s) {
17092
- const h = new e0(e, s, r, this.five.scene), u = new Mi(this.five, d0, e, h);
17093
- o.addControllers({ scaleController: u.helperController });
17096
+ const u = new e0(e, s, r, this.five.scene), h = new Mi(this.five, d0, e, u);
17097
+ o.addControllers({ scaleController: h.helperController });
17094
17098
  }
17095
17099
  e.isCSS3DObjectPlus && Kr(this.five).then(() => {
17096
17100
  var p, m;
17097
- const h = e, u = (p = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? p : $r(this.five);
17098
- u && (this.css3DObjectParentMap.set(h, h.parent), h.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(u), (m = this.css3DRender.getBehindCSS3DObjectGroup()) == null || m.add(h), this.css3DRender.render(this.five.camera));
17101
+ const u = e, h = (p = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? p : $r(this.five);
17102
+ h && (this.css3DObjectParentMap.set(u, u.parent), u.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(h), (m = this.css3DRender.getBehindCSS3DObjectGroup()) == null || m.add(u), this.css3DRender.render(this.five.camera));
17099
17103
  });
17100
17104
  }
17101
17105
  removeObject3DHelper(e) {
@@ -17245,7 +17249,7 @@ class tl {
17245
17249
  render() {
17246
17250
  if (!this.five.renderer || !this.containerDom)
17247
17251
  return;
17248
- const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, h = (s.x + 1) / 2 * r.x, u = (s.y + 1) / 2 * r.y, p = this.five.getPixels(h - l / 2, u - l / 2, l, c, d), m = Math.floor(n * a), g = Math.floor(o * a);
17252
+ const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, p = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), m = Math.floor(n * a), g = Math.floor(o * a);
17249
17253
  g0(p, m, g);
17250
17254
  const A = new ImageData(m, g);
17251
17255
  A.data.set(p), e.putImageData(A, 0, 0);