@realsee/dnalogel 2.8.4 → 2.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +5 -5
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +264 -264
- package/dist/index.umd.js +3 -3
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +72 -72
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +27 -18
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +5 -5
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +10 -10
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +19 -19
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +11 -11
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +40 -40
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -5
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +44 -44
- package/package.json +1 -1
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Ol = Object.defineProperty, Fl = Object.defineProperties;
|
|
2
2
|
var Hl = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var xo = Object.getOwnPropertySymbols;
|
|
4
|
-
var Gl = Object.prototype.hasOwnProperty,
|
|
4
|
+
var Gl = Object.prototype.hasOwnProperty, Nl = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var yi = (i, t, e) => t in i ? Ol(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, F = (i, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
Gl.call(t, e) && yi(i, e, t[e]);
|
|
8
8
|
if (xo)
|
|
9
9
|
for (var e of xo(t))
|
|
10
|
-
|
|
10
|
+
Nl.call(t, e) && yi(i, e, t[e]);
|
|
11
11
|
return i;
|
|
12
12
|
}, pe = (i, t) => Fl(i, Hl(t));
|
|
13
13
|
var m = (i, t, e) => (yi(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
@@ -28,10 +28,10 @@ var G = (i, t, e) => new Promise((n, o) => {
|
|
|
28
28
|
a((e = e.apply(i, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as ui from "@tweenjs/tween.js";
|
|
31
|
-
import An, { Tween as
|
|
31
|
+
import An, { Tween as Wl, Easing as _l } from "@tweenjs/tween.js";
|
|
32
32
|
import { Camera as Xl, Five as je, Subscribe as Ye } from "@realsee/five";
|
|
33
33
|
import * as E from "three";
|
|
34
|
-
import { Vector3 as $, Group as vn, Raycaster as Tt, MeshBasicMaterial as bn, CanvasTexture as Yl, AnimationMixer as Ul, Color as En, TextureLoader as ca, Vector2 as
|
|
34
|
+
import { Vector3 as $, Group as vn, Raycaster as Tt, MeshBasicMaterial as bn, CanvasTexture as Yl, AnimationMixer as Ul, Color as En, TextureLoader as ca, Vector2 as We, PlaneGeometry as Jl, sRGBEncoding as Zl, Mesh as Jn, CurvePath as ql, LineCurve3 as Kl, TubeGeometry as $l, ShaderMaterial as ec, SphereGeometry as tc, DoubleSide as ua, RingGeometry as nc, Quaternion as da, Euler as Do, Matrix4 as cn, Object3D as ic } from "three";
|
|
35
35
|
import { CSS3DRenderer as oc, CSS3DObject as Fi } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import { Line as fa } from "@realsee/five/line";
|
|
37
37
|
import { FBXLoader as ha } from "three/examples/jsm/loaders/FBXLoader";
|
|
@@ -81,7 +81,7 @@ function Zn(i, t = 0) {
|
|
|
81
81
|
t <= 0 ? To(i) : To(() => Zn(i, t - 1));
|
|
82
82
|
}
|
|
83
83
|
function fc(i, t, e, n = _l.Linear.None) {
|
|
84
|
-
const o = new
|
|
84
|
+
const o = new Wl(i).to(t, e).easing(n).start();
|
|
85
85
|
function s(r) {
|
|
86
86
|
!o.update(r) || requestAnimationFrame(s);
|
|
87
87
|
}
|
|
@@ -600,20 +600,20 @@ const Cb = (i, t) => {
|
|
|
600
600
|
if (n)
|
|
601
601
|
return;
|
|
602
602
|
f = I(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u = O(i.model), l.add(u), n = !0, S();
|
|
603
|
-
function B(
|
|
604
|
-
const H =
|
|
603
|
+
function B(W) {
|
|
604
|
+
const H = W.clone();
|
|
605
605
|
return H.uniforms.modelAlpha.value = 1, H.uniforms.map.value && (H.uniforms.map.value.needsUpdate = !0), H;
|
|
606
606
|
}
|
|
607
|
-
function O(
|
|
608
|
-
if (
|
|
609
|
-
const H =
|
|
607
|
+
function O(W) {
|
|
608
|
+
if (W instanceof E.Mesh) {
|
|
609
|
+
const H = W.geometry, ee = Array.isArray(W.material) ? W.material.map(B) : B(W.material);
|
|
610
610
|
return new E.Mesh(H, ee);
|
|
611
|
-
} else if (
|
|
611
|
+
} else if (W instanceof E.Group) {
|
|
612
612
|
const H = new E.Group();
|
|
613
|
-
return
|
|
613
|
+
return W.children.forEach((ee) => H.add(O(ee))), H;
|
|
614
614
|
} else {
|
|
615
615
|
const H = new E.Object3D();
|
|
616
|
-
return
|
|
616
|
+
return W.children.forEach((ee) => H.add(O(ee))), H;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
}, g = () => {
|
|
@@ -621,7 +621,7 @@ const Cb = (i, t) => {
|
|
|
621
621
|
return s || (s = new E.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = E.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
|
|
622
622
|
}, A = () => {
|
|
623
623
|
u.traverse((B) => {
|
|
624
|
-
B instanceof E.Mesh && [].concat(B.material).forEach((
|
|
624
|
+
B instanceof E.Mesh && [].concat(B.material).forEach((W) => W.dispose());
|
|
625
625
|
}), l.remove(u), u = new E.Object3D(), l.add(u), n = !1, S();
|
|
626
626
|
}, p = () => {
|
|
627
627
|
!e || n || h();
|
|
@@ -630,29 +630,29 @@ const Cb = (i, t) => {
|
|
|
630
630
|
}, y = () => {
|
|
631
631
|
!e || (l.remove(u), o = !0, x(), e = !1);
|
|
632
632
|
}, w = (B, O = {}) => {
|
|
633
|
-
const
|
|
634
|
-
if (!
|
|
633
|
+
const W = g();
|
|
634
|
+
if (!W)
|
|
635
635
|
return;
|
|
636
|
-
B.appendChild(
|
|
636
|
+
B.appendChild(W.domElement), C(O);
|
|
637
637
|
const H = window.getComputedStyle(B).position;
|
|
638
638
|
H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (B.style.position = "relative");
|
|
639
639
|
}, C = (B = {}) => {
|
|
640
640
|
if (!s)
|
|
641
641
|
return;
|
|
642
|
-
const
|
|
643
|
-
if (
|
|
644
|
-
const { width: H =
|
|
642
|
+
const W = s.domElement.parentNode;
|
|
643
|
+
if (W != null && W.nodeName) {
|
|
644
|
+
const { width: H = W.offsetWidth, height: ee = W.offsetHeight } = B;
|
|
645
645
|
s.setSize(H, ee), c.aspect = H / ee, c.updateProjectionMatrix();
|
|
646
646
|
}
|
|
647
647
|
S();
|
|
648
648
|
};
|
|
649
|
-
function I(B, O,
|
|
649
|
+
function I(B, O, W) {
|
|
650
650
|
const H = B.bounding, ee = Math.pow(
|
|
651
651
|
Math.pow(H.max.x - H.min.x + 1, 2) + Math.pow(H.max.y - H.min.y + 1, 2) + Math.pow(H.max.z - H.min.z + 1, 2),
|
|
652
652
|
1 / 2
|
|
653
653
|
);
|
|
654
654
|
let _ = ee / 2 / Math.tan(Math.PI * O / 360);
|
|
655
|
-
return
|
|
655
|
+
return W < 1 && (_ = _ / W), isNaN(_) ? ee : _;
|
|
656
656
|
}
|
|
657
657
|
function k(B) {
|
|
658
658
|
return i.work.observers[B].standingPosition.clone();
|
|
@@ -666,12 +666,12 @@ const Cb = (i, t) => {
|
|
|
666
666
|
!e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
|
|
667
667
|
}, Q = () => {
|
|
668
668
|
s && s.dispose(), s = null;
|
|
669
|
-
},
|
|
669
|
+
}, N = (B) => {
|
|
670
670
|
Object.assign(a, B), S();
|
|
671
671
|
}, R = () => ({
|
|
672
672
|
enabled: e
|
|
673
673
|
});
|
|
674
|
-
return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", A), i.on("cameraDirectionUpdate", S), i.on("dispose", Q), i.on("renderFrame", x), i.on("cameraPositionUpdate", S), { appendTo: w, refresh: C, changeConfigs:
|
|
674
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", A), i.on("cameraDirectionUpdate", S), i.on("dispose", Q), i.on("renderFrame", x), i.on("cameraPositionUpdate", S), { appendTo: w, refresh: C, changeConfigs: N, enable: v, disable: y, getCurrentState: R };
|
|
675
675
|
};
|
|
676
676
|
function vt(...i) {
|
|
677
677
|
const t = [];
|
|
@@ -1639,7 +1639,7 @@ function La(i) {
|
|
|
1639
1639
|
function nt(i) {
|
|
1640
1640
|
Pt().$$.on_mount.push(i);
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Nc(i) {
|
|
1643
1643
|
Pt().$$.after_update.push(i);
|
|
1644
1644
|
}
|
|
1645
1645
|
function Et(i) {
|
|
@@ -1658,7 +1658,7 @@ function xn() {
|
|
|
1658
1658
|
return !0;
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function Ni(i, t) {
|
|
1662
1662
|
return Pt().$$.context.set(i, t), t;
|
|
1663
1663
|
}
|
|
1664
1664
|
function St(i) {
|
|
@@ -1668,7 +1668,7 @@ function Dn(i, t) {
|
|
|
1668
1668
|
const e = i.$$.callbacks[t.type];
|
|
1669
1669
|
e && e.slice().forEach((n) => n.call(this, t));
|
|
1670
1670
|
}
|
|
1671
|
-
const dn = [], Qe = [], qn = [],
|
|
1671
|
+
const dn = [], Qe = [], qn = [], Wi = [], Sa = Promise.resolve();
|
|
1672
1672
|
let _i = !1;
|
|
1673
1673
|
function Ma() {
|
|
1674
1674
|
_i || (_i = !0, Sa.then(ro));
|
|
@@ -1679,8 +1679,8 @@ function Vo() {
|
|
|
1679
1679
|
function xe(i) {
|
|
1680
1680
|
qn.push(i);
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1683
|
-
|
|
1682
|
+
function Wc(i) {
|
|
1683
|
+
Wi.push(i);
|
|
1684
1684
|
}
|
|
1685
1685
|
const ki = /* @__PURE__ */ new Set();
|
|
1686
1686
|
let Rn = 0;
|
|
@@ -1699,8 +1699,8 @@ function ro() {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
qn.length = 0;
|
|
1701
1701
|
} while (dn.length);
|
|
1702
|
-
for (;
|
|
1703
|
-
|
|
1702
|
+
for (; Wi.length; )
|
|
1703
|
+
Wi.pop()();
|
|
1704
1704
|
_i = !1, ki.clear(), at(i);
|
|
1705
1705
|
}
|
|
1706
1706
|
function _c(i) {
|
|
@@ -2119,7 +2119,7 @@ function ou(i, t, e) {
|
|
|
2119
2119
|
const S = w.get(k.id);
|
|
2120
2120
|
if (S)
|
|
2121
2121
|
return S;
|
|
2122
|
-
const { x, y: Q, z:
|
|
2122
|
+
const { x, y: Q, z: N } = k.position, R = new $(x, Q, N).clone().distanceTo(o.camera.position);
|
|
2123
2123
|
return w.set(k.id, R), R;
|
|
2124
2124
|
}
|
|
2125
2125
|
return s.map((k) => {
|
|
@@ -2754,9 +2754,9 @@ function Gu(i, t, e) {
|
|
|
2754
2754
|
function p(R, X) {
|
|
2755
2755
|
if (X.width === 0 || X.height === 0)
|
|
2756
2756
|
return () => !1;
|
|
2757
|
-
const j = R.path.map(({ x: fe, y: ue }) => [fe, ue]), B = R.roomLabel.position, { x: O, y:
|
|
2757
|
+
const j = R.path.map(({ x: fe, y: ue }) => [fe, ue]), B = R.roomLabel.position, { x: O, y: W } = B, { width: H, height: ee } = X, _ = H / 2, U = ee / 2;
|
|
2758
2758
|
return function(ue) {
|
|
2759
|
-
const me = O * ue, Ce =
|
|
2759
|
+
const me = O * ue, Ce = W * ue, De = j.map(([le, ge]) => [le * ue, ge * ue]);
|
|
2760
2760
|
return [
|
|
2761
2761
|
[me + _, Ce - U],
|
|
2762
2762
|
[me - _, Ce - U],
|
|
@@ -2770,13 +2770,13 @@ function Gu(i, t, e) {
|
|
|
2770
2770
|
d.subscribe(function(X) {
|
|
2771
2771
|
e(16, Q = !!X && X.id === f.id);
|
|
2772
2772
|
});
|
|
2773
|
-
function
|
|
2773
|
+
function N() {
|
|
2774
2774
|
S = this.clientWidth, x = this.clientHeight, e(4, S), e(5, x);
|
|
2775
2775
|
}
|
|
2776
2776
|
return i.$$set = (R) => {
|
|
2777
2777
|
"pxmm" in R && e(12, l = R.pxmm), "roomAreaEnable" in R && e(0, c = R.roomAreaEnable), "roomNameEnable" in R && e(1, u = R.roomNameEnable), "room" in R && e(2, f = R.room), "hoveredRoom" in R && e(13, d = R.hoveredRoom), "getRoomAreaText" in R && e(14, h = R.getRoomAreaText), "getLabelElement" in R && e(3, g = R.getLabelElement), "adaptiveRoomLabelVisibleEnable" in R && e(15, A = R.adaptiveRoomLabelVisibleEnable);
|
|
2778
2778
|
}, i.$$.update = () => {
|
|
2779
|
-
i.$$.dirty &
|
|
2779
|
+
i.$$.dirty & 12 && e(8, n = g == null ? void 0 : g(f)), i.$$.dirty & 16388 && e(7, o = f.size ? h(f.size) : ""), i.$$.dirty & 48 && e(18, s = { width: S, height: x }), i.$$.dirty & 262148 && e(17, r = s ? p(f, s) : void 0), i.$$.dirty & 233472 && e(6, a = A ? Q ? !0 : !!(r != null && r(l)) : !0);
|
|
2780
2780
|
}, [
|
|
2781
2781
|
c,
|
|
2782
2782
|
u,
|
|
@@ -2797,10 +2797,10 @@ function Gu(i, t, e) {
|
|
|
2797
2797
|
Q,
|
|
2798
2798
|
r,
|
|
2799
2799
|
s,
|
|
2800
|
-
|
|
2800
|
+
N
|
|
2801
2801
|
];
|
|
2802
2802
|
}
|
|
2803
|
-
class
|
|
2803
|
+
class Nu extends se {
|
|
2804
2804
|
constructor(t) {
|
|
2805
2805
|
super(), oe(
|
|
2806
2806
|
this,
|
|
@@ -2822,18 +2822,18 @@ class Wu extends se {
|
|
|
2822
2822
|
);
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2825
|
+
function Wu(i) {
|
|
2826
2826
|
ce(i, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2828
|
+
function No(i, t, e) {
|
|
2829
2829
|
const n = i.slice();
|
|
2830
2830
|
return n[12] = t[e], n;
|
|
2831
2831
|
}
|
|
2832
|
-
function
|
|
2832
|
+
function Wo(i) {
|
|
2833
2833
|
let t, e = [], n = /* @__PURE__ */ new Map(), o, s, r = i[8];
|
|
2834
2834
|
const a = (l) => l[12].id;
|
|
2835
2835
|
for (let l = 0; l < r.length; l += 1) {
|
|
2836
|
-
let c =
|
|
2836
|
+
let c = No(i, r, l), u = a(c);
|
|
2837
2837
|
n.set(u, e[l] = _o(u, c));
|
|
2838
2838
|
}
|
|
2839
2839
|
return {
|
|
@@ -2850,7 +2850,7 @@ function No(i) {
|
|
|
2850
2850
|
o = dt(t, i[11].bind(t)), s = !0;
|
|
2851
2851
|
},
|
|
2852
2852
|
p(l, c) {
|
|
2853
|
-
c & 447 && (r = l[8], re(), e = Ze(e, c, a, 1, l, r, n, t, It, _o, null,
|
|
2853
|
+
c & 447 && (r = l[8], re(), e = Ze(e, c, a, 1, l, r, n, t, It, _o, null, No), ae());
|
|
2854
2854
|
},
|
|
2855
2855
|
i(l) {
|
|
2856
2856
|
if (!s) {
|
|
@@ -2889,7 +2889,7 @@ function _o(i, t) {
|
|
|
2889
2889
|
let r = {};
|
|
2890
2890
|
for (let a = 0; a < s.length; a += 1)
|
|
2891
2891
|
r = ze(r, s[a]);
|
|
2892
|
-
return n = new
|
|
2892
|
+
return n = new Nu({ props: r }), {
|
|
2893
2893
|
key: i,
|
|
2894
2894
|
first: null,
|
|
2895
2895
|
c() {
|
|
@@ -2926,7 +2926,7 @@ function _o(i, t) {
|
|
|
2926
2926
|
};
|
|
2927
2927
|
}
|
|
2928
2928
|
function _u(i) {
|
|
2929
|
-
let t, e, n = i[8] &&
|
|
2929
|
+
let t, e, n = i[8] && Wo(i);
|
|
2930
2930
|
return {
|
|
2931
2931
|
c() {
|
|
2932
2932
|
n && n.c(), t = he();
|
|
@@ -2935,7 +2935,7 @@ function _u(i) {
|
|
|
2935
2935
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
2936
2936
|
},
|
|
2937
2937
|
p(o, [s]) {
|
|
2938
|
-
o[8] ? n ? (n.p(o, s), s & 256 && P(n, 1)) : (n =
|
|
2938
|
+
o[8] ? n ? (n.p(o, s), s & 256 && P(n, 1)) : (n = Wo(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
2939
2939
|
n = null;
|
|
2940
2940
|
}), ae());
|
|
2941
2941
|
},
|
|
@@ -2995,7 +2995,7 @@ class Yu extends se {
|
|
|
2995
2995
|
getLabelElement: 4,
|
|
2996
2996
|
adaptiveRoomLabelVisibleEnable: 5
|
|
2997
2997
|
},
|
|
2998
|
-
|
|
2998
|
+
Wu
|
|
2999
2999
|
);
|
|
3000
3000
|
}
|
|
3001
3001
|
}
|
|
@@ -4363,8 +4363,8 @@ class mi {
|
|
|
4363
4363
|
}
|
|
4364
4364
|
class Bt extends mi {
|
|
4365
4365
|
}
|
|
4366
|
-
var
|
|
4367
|
-
const Fa = 500,
|
|
4366
|
+
var Ne = /* @__PURE__ */ ((i) => (i.UnknownError = "UnknownError", i.DataNotLoaded = "DataNotLoaded", i.BreakOffByHide = "BreakOffByHide", i.BreakOffByDisable = "BreakOffByDisable", i.ModelNotLoaded = "ModelNotLoaded", i.ChangeModeError = "ChangeModeError", i.UpdateCameraError = "UpdateCameraError", i))(Ne || {});
|
|
4367
|
+
const Fa = 500, Nd = 80;
|
|
4368
4368
|
function Xi(i, t, e = 4) {
|
|
4369
4369
|
return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
|
|
4370
4370
|
}
|
|
@@ -4401,7 +4401,7 @@ function Ga(i, t, e = !0) {
|
|
|
4401
4401
|
if (o.mode !== t.mode) {
|
|
4402
4402
|
const [u] = yield si(Ha(i, [t.mode, t, void 0, e]));
|
|
4403
4403
|
if (u)
|
|
4404
|
-
throw new Error(
|
|
4404
|
+
throw new Error(Ne.ChangeModeError);
|
|
4405
4405
|
return;
|
|
4406
4406
|
}
|
|
4407
4407
|
const { latitude: s, longitude: r, fov: a } = o, l = Math.min(
|
|
@@ -4414,7 +4414,7 @@ function Ga(i, t, e = !0) {
|
|
|
4414
4414
|
)
|
|
4415
4415
|
), [c] = yield si(i.updateCamera(t, l, e));
|
|
4416
4416
|
if (c)
|
|
4417
|
-
throw new Error(
|
|
4417
|
+
throw new Error(Ne.UpdateCameraError);
|
|
4418
4418
|
});
|
|
4419
4419
|
}
|
|
4420
4420
|
function Xt(i, t, e = 300) {
|
|
@@ -4426,7 +4426,7 @@ function Xt(i, t, e = 300) {
|
|
|
4426
4426
|
n.style.transition = "none";
|
|
4427
4427
|
}));
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function Wd(i) {
|
|
4430
4430
|
const { latitude: t, longitude: e } = i, n = Math.abs(t - Math.PI / 2) > 5 * Math.PI / 180, o = e > 5 * (Math.PI / 180) && e < 355 * (Math.PI / 180);
|
|
4431
4431
|
return n || o;
|
|
4432
4432
|
}
|
|
@@ -4476,7 +4476,7 @@ class Xd extends Bt {
|
|
|
4476
4476
|
m(this, "_disable", (e) => {
|
|
4477
4477
|
var o, s, r;
|
|
4478
4478
|
const { userAction: n } = e;
|
|
4479
|
-
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this,
|
|
4479
|
+
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, Ne.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
4480
4480
|
});
|
|
4481
4481
|
m(this, "_enable", (e) => {
|
|
4482
4482
|
const { userAction: n } = e;
|
|
@@ -4487,9 +4487,9 @@ class Xd extends Bt {
|
|
|
4487
4487
|
if (!this.state.enabled)
|
|
4488
4488
|
return;
|
|
4489
4489
|
if (!((r = this.five.model) != null && r.loaded))
|
|
4490
|
-
throw new Error(
|
|
4490
|
+
throw new Error(Ne.ModelNotLoaded);
|
|
4491
4491
|
if (!this.data)
|
|
4492
|
-
throw new Error(
|
|
4492
|
+
throw new Error(Ne.DataNotLoaded);
|
|
4493
4493
|
this.isHiddenByHideFunc = !1;
|
|
4494
4494
|
const n = {
|
|
4495
4495
|
floorIndex: this.floorIndex,
|
|
@@ -4507,7 +4507,7 @@ class Xd extends Bt {
|
|
|
4507
4507
|
if (c)
|
|
4508
4508
|
throw c;
|
|
4509
4509
|
if (a)
|
|
4510
|
-
throw l ? new Error(l) : new Error(
|
|
4510
|
+
throw l ? new Error(l) : new Error(Ne.UnknownError);
|
|
4511
4511
|
this.updateSize(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
4512
4512
|
const u = o.modelOpacity, f = o.immediately ? 0 : Fa;
|
|
4513
4513
|
Xt(this.five, u, f), this.render(f);
|
|
@@ -4526,7 +4526,7 @@ class Xd extends Bt {
|
|
|
4526
4526
|
}));
|
|
4527
4527
|
m(this, "_hide", (e) => {
|
|
4528
4528
|
var s;
|
|
4529
|
-
(s = this.showRejection) == null || s.call(this,
|
|
4529
|
+
(s = this.showRejection) == null || s.call(this, Ne.BreakOffByHide), this.showPromise = void 0;
|
|
4530
4530
|
const o = F(F({}, {
|
|
4531
4531
|
userAction: !0,
|
|
4532
4532
|
isAutoHide: !1
|
|
@@ -4564,7 +4564,7 @@ class Xd extends Bt {
|
|
|
4564
4564
|
if (!this.state.visible || this.showPromise)
|
|
4565
4565
|
return;
|
|
4566
4566
|
const o = this.five.getCurrentState();
|
|
4567
|
-
|
|
4567
|
+
Wd(o) && (this.updateState({ visible: !1 }, n), this._hide({ userAction: n, isAutoHide: !0 }));
|
|
4568
4568
|
});
|
|
4569
4569
|
m(this, "onFiveWantsGesture", (e, n) => {
|
|
4570
4570
|
if (!!this.state.visible && (n.length > 1 || e === "mouseWheel"))
|
|
@@ -4592,7 +4592,7 @@ class Xd extends Bt {
|
|
|
4592
4592
|
mode: "Floorplan",
|
|
4593
4593
|
longitude: 0,
|
|
4594
4594
|
latitude: Math.PI / 2,
|
|
4595
|
-
fov:
|
|
4595
|
+
fov: Nd / ((a = n == null ? void 0 : n.scale) != null ? a : 1)
|
|
4596
4596
|
};
|
|
4597
4597
|
const o = {
|
|
4598
4598
|
northDesc: "\u5317",
|
|
@@ -4750,7 +4750,7 @@ class Jd extends Bt {
|
|
|
4750
4750
|
m(this, "_disable", (e) => {
|
|
4751
4751
|
var o, s, r;
|
|
4752
4752
|
const { userAction: n } = e;
|
|
4753
|
-
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this,
|
|
4753
|
+
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, Ne.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
4754
4754
|
});
|
|
4755
4755
|
m(this, "_enable", (e) => {
|
|
4756
4756
|
const { userAction: n } = e;
|
|
@@ -4761,9 +4761,9 @@ class Jd extends Bt {
|
|
|
4761
4761
|
if (!this.state.enabled)
|
|
4762
4762
|
return;
|
|
4763
4763
|
if (!((r = this.five.model) != null && r.loaded))
|
|
4764
|
-
throw new Error(
|
|
4764
|
+
throw new Error(Ne.ModelNotLoaded);
|
|
4765
4765
|
if (!this.data)
|
|
4766
|
-
throw new Error(
|
|
4766
|
+
throw new Error(Ne.DataNotLoaded);
|
|
4767
4767
|
this.isHiddenByHideFunc = !1;
|
|
4768
4768
|
const n = {
|
|
4769
4769
|
floorIndex: this.floorIndex,
|
|
@@ -4781,7 +4781,7 @@ class Jd extends Bt {
|
|
|
4781
4781
|
if (c)
|
|
4782
4782
|
throw c;
|
|
4783
4783
|
if (a)
|
|
4784
|
-
throw l ? new Error(l) : new Error(
|
|
4784
|
+
throw l ? new Error(l) : new Error(Ne.UnknownError);
|
|
4785
4785
|
this.updateSize(), this.updatePosition(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
4786
4786
|
const u = o.modelOpacity, f = o.immediately ? 0 : Fa;
|
|
4787
4787
|
Xt(this.five, u, f), this.render(f);
|
|
@@ -4800,7 +4800,7 @@ class Jd extends Bt {
|
|
|
4800
4800
|
}));
|
|
4801
4801
|
m(this, "_hide", (e) => {
|
|
4802
4802
|
var s;
|
|
4803
|
-
(s = this.showRejection) == null || s.call(this,
|
|
4803
|
+
(s = this.showRejection) == null || s.call(this, Ne.BreakOffByHide), this.showPromise = void 0;
|
|
4804
4804
|
const o = F(F({}, {
|
|
4805
4805
|
userAction: !0,
|
|
4806
4806
|
isAutoHide: !1
|
|
@@ -5902,7 +5902,7 @@ const Lb = (i, t) => new mf(i, t), Sb = [
|
|
|
5902
5902
|
}
|
|
5903
5903
|
return n && i.position.set(n.x, n.y, n.z), i;
|
|
5904
5904
|
};
|
|
5905
|
-
function
|
|
5905
|
+
function Na(i, t) {
|
|
5906
5906
|
i.traverse((e) => {
|
|
5907
5907
|
var n;
|
|
5908
5908
|
if (e.type === "Mesh") {
|
|
@@ -5919,7 +5919,7 @@ const zb = (i, t) => {
|
|
|
5919
5919
|
if (typeof h != "number")
|
|
5920
5920
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
5921
5921
|
const g = i.model.bounding, A = g.max.x - g.min.x, p = g.max.z - g.min.z, v = Math.max(A, p), w = yield new ha().loadAsync(d);
|
|
5922
|
-
|
|
5922
|
+
Na(w, {
|
|
5923
5923
|
transparent: !0,
|
|
5924
5924
|
side: E.DoubleSide,
|
|
5925
5925
|
blending: E.AdditiveBlending
|
|
@@ -5933,8 +5933,8 @@ const zb = (i, t) => {
|
|
|
5933
5933
|
}
|
|
5934
5934
|
} = i;
|
|
5935
5935
|
o.yBase = x;
|
|
5936
|
-
const
|
|
5937
|
-
return pf(w, { position:
|
|
5936
|
+
const N = { x: (I + S) / 2, y: x - 1.6, z: (k + Q) / 2 }, R = 45e-4 * v;
|
|
5937
|
+
return pf(w, { position: N, rotation: C, scale: R }), o.object = w, !0;
|
|
5938
5938
|
}), r = ({ latitude: f }) => {
|
|
5939
5939
|
if (!o.object)
|
|
5940
5940
|
return;
|
|
@@ -5968,16 +5968,16 @@ function gf(i, t) {
|
|
|
5968
5968
|
const Af = ({ x: i, y: t, z: e }) => new $(i, t, e), Bb = (i, t) => {
|
|
5969
5969
|
var A, p, v;
|
|
5970
5970
|
const e = {}, n = (A = t.animationEnabled) != null ? A : !0, o = (p = t.position) != null ? p : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) => G(void 0, null, function* () {
|
|
5971
|
-
var
|
|
5972
|
-
const w = (
|
|
5971
|
+
var N, R, X, j, B, O, W, H;
|
|
5972
|
+
const w = (N = y == null ? void 0 : y.position) != null ? N : o;
|
|
5973
5973
|
if (!w)
|
|
5974
5974
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
5975
5975
|
const C = Af(w), I = (R = y == null ? void 0 : y.rad) != null ? R : s, k = (X = y == null ? void 0 : y.fbx_url) != null ? X : r;
|
|
5976
5976
|
if (e.rad = I, I === void 0)
|
|
5977
5977
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${I}`));
|
|
5978
5978
|
const S = yield new ha().loadAsync(k);
|
|
5979
|
-
S.position.copy(C), S.rotation.z = I, S.scale.set(0.8, 0.8, 0.8),
|
|
5980
|
-
const x = (
|
|
5979
|
+
S.position.copy(C), S.rotation.z = I, S.scale.set(0.8, 0.8, 0.8), Na(S, { transparent: !0, side: E.DoubleSide });
|
|
5980
|
+
const x = (W = (O = (B = (j = S.children) == null ? void 0 : j[0]) == null ? void 0 : B.children) == null ? void 0 : O[3]) == null ? void 0 : W.clone();
|
|
5981
5981
|
if (!x)
|
|
5982
5982
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`));
|
|
5983
5983
|
const Q = (H = t.name) != null ? H : "\u5165\u6237\u95E8";
|
|
@@ -5993,14 +5993,14 @@ const Af = ({ x: i, y: t, z: e }) => new $(i, t, e), Bb = (i, t) => {
|
|
|
5993
5993
|
C.timeScale = y;
|
|
5994
5994
|
let I;
|
|
5995
5995
|
const k = () => {
|
|
5996
|
-
let
|
|
5996
|
+
let N = 0, R = 0;
|
|
5997
5997
|
const X = 1e3 / 30, j = (B) => {
|
|
5998
|
-
|
|
5998
|
+
N = requestAnimationFrame(j);
|
|
5999
5999
|
const O = B - R;
|
|
6000
|
-
O < X || (R = B, a.forEach((
|
|
6000
|
+
O < X || (R = B, a.forEach((W) => W.update(O / 1e3)), i.needsRender = !0);
|
|
6001
6001
|
};
|
|
6002
|
-
return
|
|
6003
|
-
cancelAnimationFrame(
|
|
6002
|
+
return N = requestAnimationFrame(j), () => {
|
|
6003
|
+
cancelAnimationFrame(N);
|
|
6004
6004
|
};
|
|
6005
6005
|
}, Q = { play: () => {
|
|
6006
6006
|
I || (C.play(), I = k(), requestAnimationFrame(() => {
|
|
@@ -6033,7 +6033,7 @@ class go extends An.Tween {
|
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
6035
6035
|
}
|
|
6036
|
-
function
|
|
6036
|
+
function Wa(i, t = An.Easing.Linear.None) {
|
|
6037
6037
|
const e = new go({ progress: 0 }).to({ progress: 1 });
|
|
6038
6038
|
return i !== void 0 && e.duration(i), t !== void 0 && e.easing(t), e;
|
|
6039
6039
|
}
|
|
@@ -6338,7 +6338,7 @@ const If = `<style type="text/css">
|
|
|
6338
6338
|
return !1;
|
|
6339
6339
|
for (const w in p) {
|
|
6340
6340
|
const C = p[w], { standingPosition: I } = y.observers[0], k = C.map(({ x: S, z: x, observers: Q }) => {
|
|
6341
|
-
const
|
|
6341
|
+
const N = Q.length > 0 ? A.rooms[A.observers[Q[0]]].name : "", R = v[N] ? v[N].floor : null;
|
|
6342
6342
|
let X = 1 / 0, j = {
|
|
6343
6343
|
index: 0,
|
|
6344
6344
|
x: I.x,
|
|
@@ -6358,8 +6358,8 @@ const If = `<style type="text/css">
|
|
|
6358
6358
|
});
|
|
6359
6359
|
const B = new $(S, j.y, x);
|
|
6360
6360
|
Object.assign(B, { observers: Q });
|
|
6361
|
-
const O = v[
|
|
6362
|
-
return
|
|
6361
|
+
const O = v[N] ? v[N].roof : null, W = O ? new $(S, O, x) : null;
|
|
6362
|
+
return W && Object.assign(W, { observers: Q }), { origin: B, vertical: W };
|
|
6363
6363
|
});
|
|
6364
6364
|
r[w] = {
|
|
6365
6365
|
origins: k.map((S) => S.origin),
|
|
@@ -6374,8 +6374,8 @@ const If = `<style type="text/css">
|
|
|
6374
6374
|
for (let S = 0; S < k.length; S++) {
|
|
6375
6375
|
let x = S + 1;
|
|
6376
6376
|
x >= k.length && (x = 0);
|
|
6377
|
-
const { origin: Q } = k[S], { origin:
|
|
6378
|
-
o.append(R), r[w].rules.push({ vertical: !1, rule: [Q,
|
|
6377
|
+
const { origin: Q } = k[S], { origin: N } = k[x], R = n(w, Q.distanceTo(N));
|
|
6378
|
+
o.append(R), r[w].rules.push({ vertical: !1, rule: [Q, N], $element: R });
|
|
6379
6379
|
}
|
|
6380
6380
|
}
|
|
6381
6381
|
return e.loaded = !0, !0;
|
|
@@ -6421,30 +6421,30 @@ const If = `<style type="text/css">
|
|
|
6421
6421
|
if (p === void 0)
|
|
6422
6422
|
return;
|
|
6423
6423
|
let w;
|
|
6424
|
-
for (const
|
|
6425
|
-
|
|
6424
|
+
for (const N in r)
|
|
6425
|
+
N.split(",").indexOf(p.toString()) >= 0 && (w = N);
|
|
6426
6426
|
if (!w) {
|
|
6427
|
-
for (const
|
|
6428
|
-
for (const { $element: R } of r[
|
|
6427
|
+
for (const N in r)
|
|
6428
|
+
for (const { $element: R } of r[N].rules)
|
|
6429
6429
|
R.style.display = "none";
|
|
6430
6430
|
return;
|
|
6431
6431
|
}
|
|
6432
6432
|
const C = v.position, I = v.getWorldDirection(new $()), k = A.clientWidth, S = A.clientHeight;
|
|
6433
6433
|
if (y !== je.Mode.Panorama) {
|
|
6434
|
-
for (const
|
|
6435
|
-
for (const { $element: R } of r[
|
|
6434
|
+
for (const N in r)
|
|
6435
|
+
for (const { $element: R } of r[N].rules)
|
|
6436
6436
|
R.style.display = "none";
|
|
6437
6437
|
return;
|
|
6438
6438
|
}
|
|
6439
|
-
for (const
|
|
6440
|
-
for (const { $element: R } of r[
|
|
6441
|
-
R.style.display =
|
|
6442
|
-
const [x] = r[w].origins.slice().filter((
|
|
6443
|
-
const X =
|
|
6439
|
+
for (const N in r)
|
|
6440
|
+
for (const { $element: R } of r[N].rules)
|
|
6441
|
+
R.style.display = N === w ? "block" : "none";
|
|
6442
|
+
const [x] = r[w].origins.slice().filter((N) => N.observers.indexOf(p) >= 0).sort((N, R) => {
|
|
6443
|
+
const X = N.clone().setY(0).sub(C).normalize().angleTo(I.clone().setY(0)), j = R.clone().setY(0).sub(C).normalize().angleTo(I.clone().setY(0));
|
|
6444
6444
|
return X - j;
|
|
6445
6445
|
});
|
|
6446
|
-
for (const { rule:
|
|
6447
|
-
const [j, B] =
|
|
6446
|
+
for (const { rule: N, vertical: R, $element: X } of r[w].rules) {
|
|
6447
|
+
const [j, B] = N, O = X.querySelector(".PanoRulerPlugin-rule-line");
|
|
6448
6448
|
if (!O)
|
|
6449
6449
|
return;
|
|
6450
6450
|
if (!x) {
|
|
@@ -6727,21 +6727,21 @@ function jf(i, t, e) {
|
|
|
6727
6727
|
}
|
|
6728
6728
|
return k.length === 0 ? !1 : k;
|
|
6729
6729
|
}, u = (w, C) => {
|
|
6730
|
-
const I = w.clone().project(n.camera), k = (I.x + 1) / 2 * a, S = (-I.y + 1) / 2 * l, x = C.clone().project(n.camera), Q = (x.x + 1) / 2 * a,
|
|
6730
|
+
const I = w.clone().project(n.camera), k = (I.x + 1) / 2 * a, S = (-I.y + 1) / 2 * l, x = C.clone().project(n.camera), Q = (x.x + 1) / 2 * a, N = (-x.y + 1) / 2 * l, R = Math.sqrt(Math.pow(Q - k, 2) + Math.pow(N - S, 2));
|
|
6731
6731
|
return {
|
|
6732
6732
|
startLeft: k,
|
|
6733
6733
|
startTop: S,
|
|
6734
6734
|
endLeft: Q,
|
|
6735
|
-
endTop:
|
|
6735
|
+
endTop: N,
|
|
6736
6736
|
distance: R
|
|
6737
6737
|
};
|
|
6738
6738
|
}, f = (w, C, I) => {
|
|
6739
|
-
const k = n.camera.position, S = n.camera.getWorldDirection(new $()), x = w.clone().sub(k).normalize().angleTo(S), Q = C.clone().sub(k).normalize().angleTo(S),
|
|
6739
|
+
const k = n.camera.position, S = n.camera.getWorldDirection(new $()), x = w.clone().sub(k).normalize().angleTo(S), Q = C.clone().sub(k).normalize().angleTo(S), N = w.distanceTo(C), X = C.clone().sub(C.clone().sub(w).divide(new $(2, 2, 2))).distanceTo(k), { startLeft: j, startTop: B, endLeft: O, endTop: W, distance: H } = u(w, C), _ = -((Math.PI / 2 - Math.atan2(O - j, B - W)) / Math.PI) * 180;
|
|
6740
6740
|
let U = !0;
|
|
6741
|
-
I || (U = !1), !et(w, I) && !et(C, I) && (U = !1),
|
|
6741
|
+
I || (U = !1), !et(w, I) && !et(C, I) && (U = !1), N < 0.3 && (U = !1), x > Math.PI / 2 && (U = !1), Q > Math.PI / 2 && (U = !1), X / N > 8 && (U = !1);
|
|
6742
6742
|
let fe = 50, ue = H;
|
|
6743
|
-
const me = c({ x: ~~j, y: ~~B }, { x: ~~O, y: ~~
|
|
6744
|
-
if (me && me.length === 1 && (et(w, I) ? (ue = Math.sqrt(Math.pow(me[0].x - j, 2) + Math.pow(me[0].y - B, 2)), fe = ue / H * 50) : et(C, I) && (ue = Math.sqrt(Math.pow(me[0].x - O, 2) + Math.pow(me[0].y -
|
|
6743
|
+
const me = c({ x: ~~j, y: ~~B }, { x: ~~O, y: ~~W });
|
|
6744
|
+
if (me && me.length === 1 && (et(w, I) ? (ue = Math.sqrt(Math.pow(me[0].x - j, 2) + Math.pow(me[0].y - B, 2)), fe = ue / H * 50) : et(C, I) && (ue = Math.sqrt(Math.pow(me[0].x - O, 2) + Math.pow(me[0].y - W, 2)), fe = 100 - ue / H * 50)), me && me.length === 2) {
|
|
6745
6745
|
const Ce = {
|
|
6746
6746
|
x: (me[0].x + me[1].x) / 2,
|
|
6747
6747
|
y: (me[0].y + me[1].y) / 2
|
|
@@ -6755,7 +6755,7 @@ function jf(i, t, e) {
|
|
|
6755
6755
|
deg: _,
|
|
6756
6756
|
visible: U,
|
|
6757
6757
|
labelOffset: fe,
|
|
6758
|
-
ruleLength:
|
|
6758
|
+
ruleLength: N
|
|
6759
6759
|
};
|
|
6760
6760
|
}, d = () => {
|
|
6761
6761
|
const w = n.panoIndex, C = o.find((R) => R.panoIndex === w);
|
|
@@ -6766,14 +6766,14 @@ function jf(i, t, e) {
|
|
|
6766
6766
|
const I = n.camera.position, k = n.camera.getWorldDirection(new $()), S = C.lines.map((R) => new $(R.start[0], -R.start[1], -R.start[2])), x = C.lines.map((R) => new $(R.end[0], -R.end[1], -R.end[2])), [Q] = S.concat(x).sort((R, X) => {
|
|
6767
6767
|
const j = R.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0)), B = X.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0));
|
|
6768
6768
|
return j - B;
|
|
6769
|
-
}),
|
|
6769
|
+
}), N = C.lines.map((R) => {
|
|
6770
6770
|
var ue, me;
|
|
6771
|
-
const X = R.start, j = R.end, { startLeft: B, startTop: O, distance:
|
|
6771
|
+
const X = R.start, j = R.end, { startLeft: B, startTop: O, distance: W, deg: H, visible: ee, labelOffset: _, ruleLength: U } = f(new $(X[0], -X[1], -X[2]), new $(j[0], -j[1], -j[2]), Q), fe = [];
|
|
6772
6772
|
return R.children && ((ue = R.children) == null ? void 0 : ue.length) > 0 && ((me = R.children) == null || me.forEach((Ce) => {
|
|
6773
6773
|
const De = Ce.start, Me = Ce.end, { distance: le } = u(new $(De[0], -De[1], -De[2]), new $(Me[0], -Me[1], -Me[2]));
|
|
6774
6774
|
fe.push({ width: le, state: Ce.state });
|
|
6775
6775
|
})), {
|
|
6776
|
-
width:
|
|
6776
|
+
width: W,
|
|
6777
6777
|
left: B,
|
|
6778
6778
|
top: O,
|
|
6779
6779
|
rotateDeg: H,
|
|
@@ -6784,7 +6784,7 @@ function jf(i, t, e) {
|
|
|
6784
6784
|
labelElement: s.distanceText(U)
|
|
6785
6785
|
};
|
|
6786
6786
|
});
|
|
6787
|
-
e(0, r =
|
|
6787
|
+
e(0, r = N);
|
|
6788
6788
|
}, h = () => pi(d), g = po(d, 80);
|
|
6789
6789
|
return nt(() => {
|
|
6790
6790
|
d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", h), n.on("movingToPano", h), n.on("mouseWheel", () => g()), n.on("pinchGesture", () => g());
|
|
@@ -6942,7 +6942,7 @@ class Hf extends Bt {
|
|
|
6942
6942
|
m(this, "onFivePanoArrived", (e) => {
|
|
6943
6943
|
var o, s, r, a, l, c, u;
|
|
6944
6944
|
const n = (r = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : r.standingPosition;
|
|
6945
|
-
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 =
|
|
6945
|
+
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 = Wa(1e3).onUpdate(({ progress: f }) => {
|
|
6946
6946
|
var d;
|
|
6947
6947
|
(d = this.compassMesh) == null || d.material.setValues({ opacity: f }), this.five.needsRender = !0;
|
|
6948
6948
|
}).play())), this.entryDoorMesh) {
|
|
@@ -7085,7 +7085,7 @@ function Gf(i, t, e) {
|
|
|
7085
7085
|
}
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
7088
|
-
class
|
|
7088
|
+
class Nf {
|
|
7089
7089
|
constructor(t, e) {
|
|
7090
7090
|
m(this, "width");
|
|
7091
7091
|
m(this, "height");
|
|
@@ -7216,7 +7216,7 @@ class Wf {
|
|
|
7216
7216
|
return { translateX: c, translateY: u };
|
|
7217
7217
|
}
|
|
7218
7218
|
}
|
|
7219
|
-
class
|
|
7219
|
+
class Wf {
|
|
7220
7220
|
constructor(t) {
|
|
7221
7221
|
m(this, "edges", []);
|
|
7222
7222
|
m(this, "five");
|
|
@@ -7437,13 +7437,13 @@ function sh(i) {
|
|
|
7437
7437
|
const w = y.clientWidth, C = y.clientHeight, I = w / 2, k = C / 2;
|
|
7438
7438
|
if (e.points.length < 2)
|
|
7439
7439
|
return;
|
|
7440
|
-
const [S, x] = e.points, Q = S.position.clone().project(v.camera),
|
|
7441
|
-
if ((() => !(Math.abs(Q.z) > 1 || Math.abs(
|
|
7440
|
+
const [S, x] = e.points, Q = S.position.clone().project(v.camera), N = x.position.clone().project(v.camera), R = Q.clone().lerp(N, 0.5), X = new We(Q.x * I, Q.y * k), j = new We(N.x * I, N.y * k), B = X.distanceTo(j);
|
|
7441
|
+
if ((() => !(Math.abs(Q.z) > 1 || Math.abs(N.z) > 1 || !At(Q) && !At(N) || !At(R) || B === 0))() === !1) {
|
|
7442
7442
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7443
7443
|
return;
|
|
7444
7444
|
}
|
|
7445
|
-
const
|
|
7446
|
-
s.style.transform = `translate(${
|
|
7445
|
+
const W = (R.x + 1) / 2 * w, H = -(R.y - 1) / 2 * C, _ = -(Math.atan((X.y - j.y) / (X.x - j.x)) * 180) / Math.PI, U = s.parentElement && o.clientWidth > B ? -20 : 0;
|
|
7446
|
+
s.style.transform = `translate(${W}px, ${H}px) rotate(${_}deg) translateY(${U}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
|
|
7447
7447
|
const fe = A();
|
|
7448
7448
|
o.innerText = fe;
|
|
7449
7449
|
}
|
|
@@ -7572,7 +7572,7 @@ class vo {
|
|
|
7572
7572
|
};
|
|
7573
7573
|
}
|
|
7574
7574
|
}
|
|
7575
|
-
const
|
|
7575
|
+
const Nn = (i) => i.preventDefault();
|
|
7576
7576
|
class Ai {
|
|
7577
7577
|
constructor(t) {
|
|
7578
7578
|
m(this, "model");
|
|
@@ -7594,7 +7594,7 @@ class Ai {
|
|
|
7594
7594
|
var n, o;
|
|
7595
7595
|
this.five = t.five, this.hook = t.hook, this.model = t.model, this.config = t.config, this.magnifier = t.magnifier, this.container = t.container, this.fiveHelper = t.fiveHelper, this.isMobile = (o = (n = t.openParams) == null ? void 0 : n.isMobile) != null ? o : !1, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new nn(new tt([0, 0, 0]), new tt([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
|
|
7596
7596
|
const e = this.five.getElement();
|
|
7597
|
-
e && (e.addEventListener("touchstart",
|
|
7597
|
+
e && (e.addEventListener("touchstart", Nn), e.addEventListener("contextmenu", Nn));
|
|
7598
7598
|
}
|
|
7599
7599
|
removeLine(t) {
|
|
7600
7600
|
this.group.remove(t.mesh, t.lightMesh), t.distanceItem.remove(), this.five.needsRender = !0;
|
|
@@ -7614,18 +7614,18 @@ class Ai {
|
|
|
7614
7614
|
dispose() {
|
|
7615
7615
|
this.disposed = !0, this.magnifier.disable(), this.model.getAllLines().forEach((e) => this.removeLine(e));
|
|
7616
7616
|
const t = this.five.getElement();
|
|
7617
|
-
t && (t.removeEventListener("touchstart",
|
|
7617
|
+
t && (t.removeEventListener("touchstart", Nn), t.removeEventListener("contextmenu", Nn));
|
|
7618
7618
|
}
|
|
7619
7619
|
}
|
|
7620
7620
|
function Ui(i) {
|
|
7621
|
-
const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new
|
|
7621
|
+
const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new We(t, e).sub(new We(s.left, s.top)), a = new We(r.x / n * 2 - 1, -(r.y / o) * 2 + 1);
|
|
7622
7622
|
return { point: r, ndcPoint: a };
|
|
7623
7623
|
}
|
|
7624
7624
|
function Si(i, t) {
|
|
7625
7625
|
const e = Ui(t).ndcPoint, n = new Tt();
|
|
7626
7626
|
return n.setFromCamera(e, i.camera), i.model.intersectRaycaster(n);
|
|
7627
7627
|
}
|
|
7628
|
-
class
|
|
7628
|
+
class Wn extends Ai {
|
|
7629
7629
|
constructor(e) {
|
|
7630
7630
|
var o;
|
|
7631
7631
|
super(e);
|
|
@@ -7834,14 +7834,14 @@ class Za {
|
|
|
7834
7834
|
function qa(i, t) {
|
|
7835
7835
|
const e = i.x - t[0].x, n = i.y - t[0].y, o = t[1].x - t[0].x, s = t[1].y - t[0].y, r = e * o + n * s, a = o * o + s * s, l = r / a;
|
|
7836
7836
|
let c, u;
|
|
7837
|
-
return l < 0 || lh(t[0], t[1]) ? (c = t[0].x, u = t[0].y) : l > 1 ? (c = t[1].x, u = t[1].y) : (c = t[0].x + l * o, u = t[0].y + l * s), new
|
|
7837
|
+
return l < 0 || lh(t[0], t[1]) ? (c = t[0].x, u = t[0].y) : l > 1 ? (c = t[1].x, u = t[1].y) : (c = t[0].x + l * o, u = t[0].y + l * s), new We(c, u);
|
|
7838
7838
|
}
|
|
7839
7839
|
function lh(i, t) {
|
|
7840
7840
|
return i.x === t.x && i.y === t.y;
|
|
7841
7841
|
}
|
|
7842
7842
|
function ch(i, t) {
|
|
7843
7843
|
const e = (i.x + 1) / 2 * t.width, n = -(i.y - 1) / 2 * t.height;
|
|
7844
|
-
return new
|
|
7844
|
+
return new We(e, n);
|
|
7845
7845
|
}
|
|
7846
7846
|
function uh(i, t, e, n) {
|
|
7847
7847
|
const o = i.getElement();
|
|
@@ -7925,11 +7925,11 @@ class Ds extends Ai {
|
|
|
7925
7925
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
7926
7926
|
if (!n)
|
|
7927
7927
|
return;
|
|
7928
|
-
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new
|
|
7928
|
+
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new We(s.x * r, s.y * a), c = this.model.getAllLines().map((h) => {
|
|
7929
7929
|
const [g, A] = h.points, p = g.position.clone().project(o), v = A.position.clone().project(o);
|
|
7930
7930
|
if (!At(p) && !At(v))
|
|
7931
7931
|
return null;
|
|
7932
|
-
const y = new
|
|
7932
|
+
const y = new We(p.x * r, p.y * a), w = new We(v.x * r, v.y * a);
|
|
7933
7933
|
return { id: h.id, points: [y, w] };
|
|
7934
7934
|
}).filter((h) => !!h);
|
|
7935
7935
|
if (c.length === 0)
|
|
@@ -8239,11 +8239,11 @@ class rn extends Ai {
|
|
|
8239
8239
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
8240
8240
|
if (!n)
|
|
8241
8241
|
return;
|
|
8242
|
-
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new
|
|
8242
|
+
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new We(s.x * r, s.y * a), c = this.polyline.lines.map((h) => {
|
|
8243
8243
|
const [g, A] = h.points, p = g.position.clone().project(o), v = A.position.clone().project(o);
|
|
8244
8244
|
if (!At(p) && !At(v))
|
|
8245
8245
|
return null;
|
|
8246
|
-
const y = new
|
|
8246
|
+
const y = new We(p.x * r, p.y * a), w = new We(v.x * r, v.y * a);
|
|
8247
8247
|
return { id: h.id, points: [y, w] };
|
|
8248
8248
|
}).filter((h) => !!h);
|
|
8249
8249
|
if (c.length === 0)
|
|
@@ -8852,7 +8852,7 @@ class Qh {
|
|
|
8852
8852
|
m(this, "container", document.createElement("div"));
|
|
8853
8853
|
m(this, "shortcutKeyController");
|
|
8854
8854
|
m(this, "controller", null);
|
|
8855
|
-
m(this, "getCurrentMode", () => this.controller instanceof
|
|
8855
|
+
m(this, "getCurrentMode", () => this.controller instanceof Wn ? "Edit" : this.controller instanceof Ds ? "Watch" : this.controller instanceof rn ? "Mixed" : this.controller instanceof ks ? "View" : null);
|
|
8856
8856
|
m(this, "changeMode", (t) => {
|
|
8857
8857
|
var o;
|
|
8858
8858
|
if (!this.hasOpen || this.getCurrentMode() === t)
|
|
@@ -8861,7 +8861,7 @@ class Qh {
|
|
|
8861
8861
|
const e = {
|
|
8862
8862
|
View: ks,
|
|
8863
8863
|
Watch: Ds,
|
|
8864
|
-
Edit:
|
|
8864
|
+
Edit: Wn,
|
|
8865
8865
|
Mixed: rn
|
|
8866
8866
|
};
|
|
8867
8867
|
if (!e[t])
|
|
@@ -8870,7 +8870,7 @@ class Qh {
|
|
|
8870
8870
|
this.controller = new e[t](n), this.hook.emit("modeChange", t);
|
|
8871
8871
|
});
|
|
8872
8872
|
var o, s, r, a;
|
|
8873
|
-
this.five = t, this.params = e, this.config = hi(e, ["openParams", "magnifierParams"]), this.model = new vo(this.config), this.fiveHelper = new
|
|
8873
|
+
this.five = t, this.params = e, this.config = hi(e, ["openParams", "magnifierParams"]), this.model = new vo(this.config), this.fiveHelper = new Wf(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new Nf(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new vn(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
8874
8874
|
const n = (a = this.params.openParams) != null ? a : {};
|
|
8875
8875
|
if (this.params.useUIController !== !1) {
|
|
8876
8876
|
const l = F({
|
|
@@ -8909,7 +8909,7 @@ class Qh {
|
|
|
8909
8909
|
this.changeMode(t);
|
|
8910
8910
|
}
|
|
8911
8911
|
revoke() {
|
|
8912
|
-
this.controller instanceof
|
|
8912
|
+
this.controller instanceof Wn && this.controller.revoke();
|
|
8913
8913
|
}
|
|
8914
8914
|
removePolyline(t) {
|
|
8915
8915
|
this.model.removePolyline(t);
|
|
@@ -8934,7 +8934,7 @@ class Qh {
|
|
|
8934
8934
|
}
|
|
8935
8935
|
save(t) {
|
|
8936
8936
|
var o;
|
|
8937
|
-
if (!(this.controller instanceof
|
|
8937
|
+
if (!(this.controller instanceof Wn) && !(this.controller instanceof rn))
|
|
8938
8938
|
return this;
|
|
8939
8939
|
const e = (o = t == null ? void 0 : t.mode) != null ? o : "View", n = this.controller.polyline;
|
|
8940
8940
|
return this.model.addPolyline(n), this.changeMode(e), this;
|
|
@@ -9070,7 +9070,7 @@ class Hh extends se {
|
|
|
9070
9070
|
function Gh(i) {
|
|
9071
9071
|
ce(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)}}");
|
|
9072
9072
|
}
|
|
9073
|
-
function
|
|
9073
|
+
function Nh(i) {
|
|
9074
9074
|
let t, e, n, o, s, r, a, l, c, u, f, d, h, g, A;
|
|
9075
9075
|
return {
|
|
9076
9076
|
c() {
|
|
@@ -9089,7 +9089,7 @@ function Wh(i) {
|
|
|
9089
9089
|
}
|
|
9090
9090
|
};
|
|
9091
9091
|
}
|
|
9092
|
-
function
|
|
9092
|
+
function Wh(i, t, e) {
|
|
9093
9093
|
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: f } = t, { events: d } = t, { hooks: h } = t, g = 0, A = 0, p, v, y = setTimeout(
|
|
9094
9094
|
() => {
|
|
9095
9095
|
u || e(10, v = !0), y = void 0;
|
|
@@ -9109,8 +9109,8 @@ function Nh(i, t, e) {
|
|
|
9109
9109
|
x = null;
|
|
9110
9110
|
break;
|
|
9111
9111
|
}
|
|
9112
|
-
S.forEach((
|
|
9113
|
-
Q.includes(
|
|
9112
|
+
S.forEach((N) => {
|
|
9113
|
+
Q.includes(N) && d[N](n);
|
|
9114
9114
|
}), x = x.parentNode;
|
|
9115
9115
|
}
|
|
9116
9116
|
};
|
|
@@ -9128,7 +9128,7 @@ function Nh(i, t, e) {
|
|
|
9128
9128
|
1500
|
|
9129
9129
|
)));
|
|
9130
9130
|
});
|
|
9131
|
-
|
|
9131
|
+
Nc(() => {
|
|
9132
9132
|
e(7, g = p.offsetWidth), e(8, A = p.offsetHeight), !y && e(10, v = !u);
|
|
9133
9133
|
}), Et(() => {
|
|
9134
9134
|
h.emit("destroyTag", { id: n }), C(), f();
|
|
@@ -9165,8 +9165,8 @@ class _h extends se {
|
|
|
9165
9165
|
super(), oe(
|
|
9166
9166
|
this,
|
|
9167
9167
|
t,
|
|
9168
|
-
Nh,
|
|
9169
9168
|
Wh,
|
|
9169
|
+
Nh,
|
|
9170
9170
|
ie,
|
|
9171
9171
|
{
|
|
9172
9172
|
id: 0,
|
|
@@ -9518,7 +9518,7 @@ const Mi = 1e-3, Qs = 0.01, qh = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9518
9518
|
}), le.render && (A.render = le.render), le.template && (A.template = le.template), le.events && (A.events = le.events), le.enabled === !1 && (A.enabled = le.enabled), le.folded === !0 && (A.folded = le.folded);
|
|
9519
9519
|
}, Q = (le) => {
|
|
9520
9520
|
A.intersectObjects = le, k();
|
|
9521
|
-
},
|
|
9521
|
+
}, N = () => {
|
|
9522
9522
|
A.enabled = !0, k();
|
|
9523
9523
|
}, R = () => {
|
|
9524
9524
|
A.enabled = !1, p.$set({ origins: [] }), A.tags.forEach((le) => {
|
|
@@ -9540,23 +9540,23 @@ const Mi = 1e-3, Qs = 0.01, qh = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9540
9540
|
A.tags.forEach((ge) => {
|
|
9541
9541
|
ge.id === le && ge.app.$set({ folded: !0 });
|
|
9542
9542
|
});
|
|
9543
|
-
},
|
|
9543
|
+
}, W = () => {
|
|
9544
9544
|
i.once("renderFrame", I);
|
|
9545
9545
|
}, H = () => {
|
|
9546
9546
|
e || (e = i.getElement().parentElement), e && e.appendChild(d), A.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, k(), i.on("panoWillArrive", w), i.on("panoArrived", y), i.on("modeChange", C), i.on("cameraUpdate", v);
|
|
9547
9547
|
}, ee = () => {
|
|
9548
9548
|
g = null, f.disposeAll(), p.$destroy(), A.tags.forEach((le) => {
|
|
9549
9549
|
le.app.$destroy(), le = null;
|
|
9550
|
-
}), A.origins = [], A.tags = [], i.off("modelLoaded", H), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", y), i.off("modeChange", C), i.off("cameraUpdate", v), i.off("dispose", ee), window.removeEventListener("resize",
|
|
9550
|
+
}), A.origins = [], A.tags = [], i.off("modelLoaded", H), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", y), i.off("modeChange", C), i.off("cameraUpdate", v), i.off("dispose", ee), window.removeEventListener("resize", W, !1);
|
|
9551
9551
|
};
|
|
9552
|
-
return window.addEventListener("resize",
|
|
9552
|
+
return window.addEventListener("resize", W, !1), (Me = i == null ? void 0 : i.model) != null && Me.loaded ? H() : i.once("modelLoaded", H), i.on("dispose", ee), {
|
|
9553
9553
|
load: x,
|
|
9554
9554
|
setIntersectObjects: Q,
|
|
9555
9555
|
unfoldAll: X,
|
|
9556
9556
|
foldAll: j,
|
|
9557
9557
|
unfold: B,
|
|
9558
9558
|
fold: O,
|
|
9559
|
-
enable:
|
|
9559
|
+
enable: N,
|
|
9560
9560
|
disable: R,
|
|
9561
9561
|
hooks: h,
|
|
9562
9562
|
dispose: ee
|
|
@@ -9696,14 +9696,14 @@ function sm(i, t, e) {
|
|
|
9696
9696
|
const { Raycaster: n, Vector3: o } = E;
|
|
9697
9697
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, f = null, d, h, g = [], A = !0;
|
|
9698
9698
|
const p = (j, B) => {
|
|
9699
|
-
const O = new n(),
|
|
9700
|
-
O.set(
|
|
9699
|
+
const O = new n(), W = j.camera.position.clone(), H = new o().fromArray(B.modelPosition), ee = H.distanceTo(W);
|
|
9700
|
+
O.set(W.clone(), H.clone().sub(W).normalize());
|
|
9701
9701
|
const [_] = j.model.intersectRaycaster(O);
|
|
9702
9702
|
return !(_ && _.distance + 1 < ee);
|
|
9703
9703
|
}, v = (j, B) => {
|
|
9704
|
-
const O = new o(B.modelPosition[0], B.modelPosition[1], B.modelPosition[2]),
|
|
9704
|
+
const O = new o(B.modelPosition[0], B.modelPosition[1], B.modelPosition[2]), W = j.project2d(O), H = W == null ? void 0 : W.x, ee = W == null ? void 0 : W.y;
|
|
9705
9705
|
return [H, ee];
|
|
9706
|
-
}, y = (j) => `translate(${j[0]}px, ${j[1]}px)`, w = (j, B) => g.length === 0 ? !1 : !!g.find((
|
|
9706
|
+
}, y = (j) => `translate(${j[0]}px, ${j[1]}px)`, w = (j, B) => g.length === 0 ? !1 : !!g.find((W) => j[0] >= W[0] - B && j[0] <= W[0] + B || j[1] >= W[1] - Fs && j[1] <= W[1] + Fs);
|
|
9707
9707
|
function C(j, B) {
|
|
9708
9708
|
switch (B) {
|
|
9709
9709
|
case Ft.SMALL:
|
|
@@ -9728,19 +9728,19 @@ function sm(i, t, e) {
|
|
|
9728
9728
|
transform: me,
|
|
9729
9729
|
strokeLength: U
|
|
9730
9730
|
});
|
|
9731
|
-
}),
|
|
9731
|
+
}), W = O.filter(({ visible: H }) => H).map((H) => ({
|
|
9732
9732
|
itemLabelItem: H,
|
|
9733
9733
|
distance: new o(H.modelPosition[0], H.modelPosition[1], H.modelPosition[2]).clone().distanceTo(j.camera.position)
|
|
9734
9734
|
})).sort((H, ee) => H.distance - ee.distance);
|
|
9735
9735
|
return O.map((H) => {
|
|
9736
|
-
const ee =
|
|
9736
|
+
const ee = W.findIndex((_) => _.itemLabelItem.id === H.id);
|
|
9737
9737
|
return ee !== void 0 ? pe(F({}, H), { zIndex: ee * 10 }) : H;
|
|
9738
9738
|
});
|
|
9739
9739
|
}, k = () => {
|
|
9740
9740
|
g = [], e(1, f = I(s, f));
|
|
9741
9741
|
};
|
|
9742
9742
|
La(() => {
|
|
9743
|
-
|
|
9743
|
+
N();
|
|
9744
9744
|
});
|
|
9745
9745
|
const S = () => {
|
|
9746
9746
|
e(4, A = !1), x();
|
|
@@ -9755,7 +9755,7 @@ function sm(i, t, e) {
|
|
|
9755
9755
|
300
|
|
9756
9756
|
), Q = () => {
|
|
9757
9757
|
window.addEventListener("resize", R, !1);
|
|
9758
|
-
},
|
|
9758
|
+
}, N = () => {
|
|
9759
9759
|
u !== a && (e(1, f = a), u = a, k());
|
|
9760
9760
|
}, R = () => {
|
|
9761
9761
|
s.once("renderFrame", k);
|
|
@@ -9897,7 +9897,7 @@ function lm(i) {
|
|
|
9897
9897
|
t.push(n);
|
|
9898
9898
|
}), t;
|
|
9899
9899
|
}
|
|
9900
|
-
const
|
|
9900
|
+
const Nb = (i, { videoElement: t }) => {
|
|
9901
9901
|
const e = {
|
|
9902
9902
|
videoMeshes: [],
|
|
9903
9903
|
videoTextureEnabled: !1,
|
|
@@ -9970,8 +9970,8 @@ const Wb = (i, { videoElement: t }) => {
|
|
|
9970
9970
|
const Q = new E.MeshBasicMaterial({
|
|
9971
9971
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
9972
9972
|
side: E.DoubleSide
|
|
9973
|
-
}),
|
|
9974
|
-
|
|
9973
|
+
}), N = new E.Mesh(w, Q);
|
|
9974
|
+
N.renderOrder = 1, N.name = `ModelTVVideoPlugin-${y}-${performance.now()}`;
|
|
9975
9975
|
const R = [v[1], v[2], v[3], v[0]], X = n.create3DDomContainer(R);
|
|
9976
9976
|
if (X != null && X.container) {
|
|
9977
9977
|
const j = document.createElement("div");
|
|
@@ -9979,9 +9979,9 @@ const Wb = (i, { videoElement: t }) => {
|
|
|
9979
9979
|
const B = document.createElement("img");
|
|
9980
9980
|
B.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", B.style.width = "200px", B.style.pointerEvents = "auto", B.onclick = () => {
|
|
9981
9981
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
9982
|
-
}, j.appendChild(B), o.set(
|
|
9982
|
+
}, j.appendChild(B), o.set(N, X);
|
|
9983
9983
|
}
|
|
9984
|
-
return
|
|
9984
|
+
return N;
|
|
9985
9985
|
}), u = (v) => {
|
|
9986
9986
|
const y = new E.TextureLoader().load(v);
|
|
9987
9987
|
return y.minFilter = E.LinearFilter, y.magFilter = E.LinearFilter, y.format = E.RGBFormat, y;
|
|
@@ -10167,7 +10167,7 @@ class mm extends se {
|
|
|
10167
10167
|
);
|
|
10168
10168
|
}
|
|
10169
10169
|
}
|
|
10170
|
-
const { Raycaster: pm, Vector3:
|
|
10170
|
+
const { Raycaster: pm, Vector3: Wb } = E, Gs = (i, t, e, n) => {
|
|
10171
10171
|
const o = t.clone().sub(e).normalize(), s = new pm();
|
|
10172
10172
|
s.set(e, o);
|
|
10173
10173
|
const [r] = i.model.intersectRaycaster(s);
|
|
@@ -10186,7 +10186,7 @@ const gm = (i, t) => {
|
|
|
10186
10186
|
return Math.ceil(-92.59 * i + 300);
|
|
10187
10187
|
}
|
|
10188
10188
|
}, Am = (i) => `translate(${i[0]}px, ${i[1]}px)`;
|
|
10189
|
-
function
|
|
10189
|
+
function Ns(i) {
|
|
10190
10190
|
return i.map((t) => F({
|
|
10191
10191
|
observerIndex: void 0,
|
|
10192
10192
|
visible: !1,
|
|
@@ -10196,7 +10196,7 @@ function Ws(i) {
|
|
|
10196
10196
|
function vm(i) {
|
|
10197
10197
|
ce(i, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
10198
10198
|
}
|
|
10199
|
-
function
|
|
10199
|
+
function Ws(i, t, e) {
|
|
10200
10200
|
const n = i.slice();
|
|
10201
10201
|
return n[30] = t[e], n;
|
|
10202
10202
|
}
|
|
@@ -10262,7 +10262,7 @@ function bm(i) {
|
|
|
10262
10262
|
let t, e = [], n = /* @__PURE__ */ new Map(), o, s, r = i[1];
|
|
10263
10263
|
const a = (l) => l[30].id;
|
|
10264
10264
|
for (let l = 0; l < r.length; l += 1) {
|
|
10265
|
-
let c =
|
|
10265
|
+
let c = Ws(i, r, l), u = a(c);
|
|
10266
10266
|
n.set(u, e[l] = Xs(u, c));
|
|
10267
10267
|
}
|
|
10268
10268
|
return {
|
|
@@ -10279,7 +10279,7 @@ function bm(i) {
|
|
|
10279
10279
|
o = dt(t, i[12].bind(t)), s = !0;
|
|
10280
10280
|
},
|
|
10281
10281
|
p(l, c) {
|
|
10282
|
-
c[0] & 71 && (r = l[1], re(), e = Ze(e, c, a, 1, l, r, n, t, It, Xs, null,
|
|
10282
|
+
c[0] & 71 && (r = l[1], re(), e = Ze(e, c, a, 1, l, r, n, t, It, Xs, null, Ws), ae()), c[0] & 32 && L(t, "opacity", l[5] ? 1 : 0);
|
|
10283
10283
|
},
|
|
10284
10284
|
i(l) {
|
|
10285
10285
|
if (!s) {
|
|
@@ -10305,17 +10305,17 @@ let ym = 11;
|
|
|
10305
10305
|
function wm(i, t, e) {
|
|
10306
10306
|
const { Raycaster: n, Vector3: o } = E;
|
|
10307
10307
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, f = null, d = null, h = (s == null ? void 0 : s.currentMode) === je.Mode.Panorama, g, A, p = [], v = !0;
|
|
10308
|
-
const y = (O,
|
|
10309
|
-
const H = O.camera.position.clone(), ee = new o(
|
|
10308
|
+
const y = (O, W) => {
|
|
10309
|
+
const H = O.camera.position.clone(), ee = new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]), _ = ee.distanceTo(H);
|
|
10310
10310
|
return u !== void 0 && O.state.mode === je.Mode.Panorama && _ > u ? !1 : Gs(O, ee.clone().sub(H).normalize(), H, _);
|
|
10311
10311
|
}, w = (O) => {
|
|
10312
|
-
const { camera:
|
|
10312
|
+
const { camera: W, model: H } = s, { x: ee, y: _, z: U } = O.clone().project(W), fe = (ee + 1) / 2, ue = (2 - (_ + 1)) / 2, De = Math.abs(U) < 1 && [fe, ue].every((Me) => Me < 1 && Me >= 0);
|
|
10313
10313
|
return Boolean(De);
|
|
10314
|
-
}, C = (O,
|
|
10315
|
-
const H = new o(
|
|
10314
|
+
}, C = (O, W) => {
|
|
10315
|
+
const H = new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]), ee = O.project2d(H), _ = ee == null ? void 0 : ee.x, U = ee == null ? void 0 : ee.y;
|
|
10316
10316
|
return [_, U];
|
|
10317
|
-
}, I = (O,
|
|
10318
|
-
const H =
|
|
10317
|
+
}, I = (O, W) => {
|
|
10318
|
+
const H = W.map((_) => {
|
|
10319
10319
|
if (O.state.panoIndex !== _.panoIndex)
|
|
10320
10320
|
return pe(F({}, _), { visible: !1 });
|
|
10321
10321
|
const U = C(O, _);
|
|
@@ -10349,14 +10349,14 @@ function wm(i, t, e) {
|
|
|
10349
10349
|
300
|
|
10350
10350
|
), Q = () => {
|
|
10351
10351
|
s.once("renderFrame", k);
|
|
10352
|
-
},
|
|
10352
|
+
}, N = () => {
|
|
10353
10353
|
window.addEventListener("resize", Q, !1);
|
|
10354
10354
|
}, R = () => {
|
|
10355
|
-
f !== a && (e(1, d =
|
|
10356
|
-
}, X = (O,
|
|
10355
|
+
f !== a && (e(1, d = Ns(a)), f = a, k());
|
|
10356
|
+
}, X = (O, W) => {
|
|
10357
10357
|
let H = [];
|
|
10358
|
-
for (let _ = 0; _ <
|
|
10359
|
-
const { position: U, panoIndex: fe } =
|
|
10358
|
+
for (let _ = 0; _ < W.length; _++) {
|
|
10359
|
+
const { position: U, panoIndex: fe } = W[_], ue = O.distanceTo(U);
|
|
10360
10360
|
(u === void 0 || ue <= u || s.state.mode !== je.Mode.Panorama) && H.push({ panoIndex: fe, obVector: U, distance: ue });
|
|
10361
10361
|
}
|
|
10362
10362
|
H = H.sort((_, U) => _.distance - U.distance);
|
|
@@ -10368,13 +10368,13 @@ function wm(i, t, e) {
|
|
|
10368
10368
|
break;
|
|
10369
10369
|
}
|
|
10370
10370
|
}
|
|
10371
|
-
return typeof ee == "number" ?
|
|
10371
|
+
return typeof ee == "number" ? W[ee] : void 0;
|
|
10372
10372
|
}, j = (O) => {
|
|
10373
10373
|
if (s.state.mode === je.Mode.Panorama)
|
|
10374
10374
|
return;
|
|
10375
|
-
const
|
|
10375
|
+
const W = s.work.observers, H = new o().fromArray(O.position), ee = X(H, W);
|
|
10376
10376
|
if (ee && (O.observerIndex = ee.panoIndex), typeof O.observerIndex == "number") {
|
|
10377
|
-
const _ =
|
|
10377
|
+
const _ = W[O.observerIndex], U = H.clone().sub(_.position).normalize(), fe = {
|
|
10378
10378
|
longitude: Math.PI + Math.atan2(U.x, U.z),
|
|
10379
10379
|
latitude: Math.acos(U.y / U.length()) - Math.PI / 2
|
|
10380
10380
|
};
|
|
@@ -10393,7 +10393,7 @@ function wm(i, t, e) {
|
|
|
10393
10393
|
La(() => {
|
|
10394
10394
|
R();
|
|
10395
10395
|
}), nt(() => {
|
|
10396
|
-
e(1, d =
|
|
10396
|
+
e(1, d = Ns(a)), f = a, k(), N(), s.on("cameraUpdate", S);
|
|
10397
10397
|
}), Et(() => {
|
|
10398
10398
|
s.off("cameraUpdate", S), window.removeEventListener("resize", Q, !1);
|
|
10399
10399
|
});
|
|
@@ -10720,12 +10720,12 @@ class jm extends Im {
|
|
|
10720
10720
|
let k = 0;
|
|
10721
10721
|
l.sort((S, x) => x.disFromCameraToLabel - S.disFromCameraToLabel);
|
|
10722
10722
|
for (let S = 1; S < l.length; S++) {
|
|
10723
|
-
const { index: x, left: Q, top:
|
|
10723
|
+
const { index: x, left: Q, top: N } = l[S - 1], { index: R, left: X, top: j } = l[S], B = this.container.children[x], O = this.container.children[R];
|
|
10724
10724
|
if (!B || !O)
|
|
10725
10725
|
return;
|
|
10726
|
-
const
|
|
10726
|
+
const W = {
|
|
10727
10727
|
left: s * Q / 100,
|
|
10728
|
-
top: r *
|
|
10728
|
+
top: r * N / 100,
|
|
10729
10729
|
width: (d = (f = (u = B.children) == null ? void 0 : u[0]) == null ? void 0 : f.clientWidth) != null ? d : 0,
|
|
10730
10730
|
height: (A = (g = (h = B.children) == null ? void 0 : h[0]) == null ? void 0 : g.clientHeight) != null ? A : 0
|
|
10731
10731
|
}, H = {
|
|
@@ -10734,7 +10734,7 @@ class jm extends Im {
|
|
|
10734
10734
|
width: (y = (v = (p = O.children) == null ? void 0 : p[0]) == null ? void 0 : v.clientWidth) != null ? y : 0,
|
|
10735
10735
|
height: (I = (C = (w = O.children) == null ? void 0 : w[0]) == null ? void 0 : C.clientHeight) != null ? I : 0
|
|
10736
10736
|
};
|
|
10737
|
-
Sm(
|
|
10737
|
+
Sm(W, H) && (k++, c[x].transform = `translate(-50%, ${(k - 1) * 100 - 50}%)`, c[R].transform = `translate(-50%, ${k * 100 - 50}%)`);
|
|
10738
10738
|
}
|
|
10739
10739
|
}
|
|
10740
10740
|
this.labelItems = c, this.render();
|
|
@@ -10858,12 +10858,12 @@ function Fm(i, t) {
|
|
|
10858
10858
|
C !== void 0 && I > 0.8 && (k = p + 1), C !== void 0 && I > 0.2 && I < 0.3 ? k = p : v > 0.2 && v < 0.3 && (k = p + 1);
|
|
10859
10859
|
let S = d;
|
|
10860
10860
|
if (y !== void 0 && w > 0.2 && w < 0.3 ? S = d + 1 : v > 0.2 && v < 0.3 && (S = d), u[S] && u[S + 1]) {
|
|
10861
|
-
const
|
|
10862
|
-
if (
|
|
10863
|
-
if (
|
|
10861
|
+
const N = h[A - 1];
|
|
10862
|
+
if (N)
|
|
10863
|
+
if (N.equals(u[S]))
|
|
10864
10864
|
S += 1;
|
|
10865
10865
|
else {
|
|
10866
|
-
const R = new $().subVectors(u[S + 1], u[S]), X = new $().subVectors(
|
|
10866
|
+
const R = new $().subVectors(u[S + 1], u[S]), X = new $().subVectors(N, u[S]);
|
|
10867
10867
|
R.angleTo(X) < Math.PI / 2 && (S += 1);
|
|
10868
10868
|
}
|
|
10869
10869
|
}
|
|
@@ -10888,8 +10888,8 @@ function Ys(i, t, e) {
|
|
|
10888
10888
|
h[v * 6 + 0] = x.x, h[v * 6 + 1] = x.y, h[v * 6 + 2] = x.z;
|
|
10889
10889
|
const Q = new $(I - y * n, k + 0.05, S - w * n);
|
|
10890
10890
|
h[v * 6 + 3] = Q.x, h[v * 6 + 4] = Q.y, h[v * 6 + 5] = Q.z, A += v > 0 ? i[v - 1].clone().sub(i[v]).length() : 0;
|
|
10891
|
-
const
|
|
10892
|
-
g[v * 4 + 0] = 0, g[v * 4 + 1] =
|
|
10891
|
+
const N = A / t / o;
|
|
10892
|
+
g[v * 4 + 0] = 0, g[v * 4 + 1] = N, g[v * 4 + 2] = 1, g[v * 4 + 3] = N, v !== i.length - 1 && (d[v * 6 + 0] = v * 2 + 0, d[v * 6 + 1] = v * 2 + 2, d[v * 6 + 2] = v * 2 + 1, d[v * 6 + 3] = v * 2 + 2, d[v * 6 + 4] = v * 2 + 3, d[v * 6 + 5] = v * 2 + 1);
|
|
10893
10893
|
}
|
|
10894
10894
|
const p = new E.BufferGeometry();
|
|
10895
10895
|
return p.setAttribute("position", new E.BufferAttribute(h, 3)), p.setAttribute("uv", new E.BufferAttribute(g, 2)), p.setIndex(new E.BufferAttribute(d, 1)), p;
|
|
@@ -11017,7 +11017,7 @@ class ll extends Bt {
|
|
|
11017
11017
|
}
|
|
11018
11018
|
}
|
|
11019
11019
|
m(ll, "lasestVersion", rl);
|
|
11020
|
-
const
|
|
11020
|
+
const Nm = (i, t) => new ll(i, t);
|
|
11021
11021
|
function Js(i) {
|
|
11022
11022
|
const t = Math.abs(Math.cos(i.latitude));
|
|
11023
11023
|
return new E.Vector3(
|
|
@@ -11026,7 +11026,7 @@ function Js(i) {
|
|
|
11026
11026
|
-Math.cos(i.longitude) * t
|
|
11027
11027
|
);
|
|
11028
11028
|
}
|
|
11029
|
-
function
|
|
11029
|
+
function Wm(i, t) {
|
|
11030
11030
|
const e = Js(i), n = Js(t);
|
|
11031
11031
|
return e.angleTo(n);
|
|
11032
11032
|
}
|
|
@@ -11126,7 +11126,7 @@ class dl extends Bt {
|
|
|
11126
11126
|
const w = a.length;
|
|
11127
11127
|
a[w] = [A];
|
|
11128
11128
|
}
|
|
11129
|
-
}), this.GuideLine || (this.GuideLine =
|
|
11129
|
+
}), this.GuideLine || (this.GuideLine = Nm(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: a.map((A) => ({ panoIndexList: A })), config: r.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.info(`${vi} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
11130
11130
|
});
|
|
11131
11131
|
}
|
|
11132
11132
|
play(e) {
|
|
@@ -11382,7 +11382,7 @@ class dl extends Bt {
|
|
|
11382
11382
|
return n.duration;
|
|
11383
11383
|
if (l) {
|
|
11384
11384
|
const f = this.five.getCurrentState();
|
|
11385
|
-
return
|
|
11385
|
+
return Wm(f, e) / l;
|
|
11386
11386
|
}
|
|
11387
11387
|
return 800;
|
|
11388
11388
|
})();
|
|
@@ -11777,7 +11777,7 @@ function qi(i) {
|
|
|
11777
11777
|
const t = i.map(yn), e = t[1].clone().sub(t[0]), n = t[2].clone().sub(t[1]);
|
|
11778
11778
|
return e.cross(n);
|
|
11779
11779
|
}
|
|
11780
|
-
var sp = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Custom = "Custom", i.Unknown = "Unknown", i))(sp || {}), rp = /* @__PURE__ */ ((i) => (i.Two = "2D", i.Three = "3D", i))(rp || {}), ap = /* @__PURE__ */ ((i) => (i.PointTag = "PointTag", i.PlaneTag = "PlaneTag", i))(ap || {});
|
|
11780
|
+
var sp = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.Sticker = "Sticker", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Custom = "Custom", i.Unknown = "Unknown", i))(sp || {}), rp = /* @__PURE__ */ ((i) => (i.Two = "2D", i.Three = "3D", i))(rp || {}), ap = /* @__PURE__ */ ((i) => (i.PointTag = "PointTag", i.PlaneTag = "PlaneTag", i))(ap || {});
|
|
11781
11781
|
function lp(i) {
|
|
11782
11782
|
return i.stickType === "2DPoint" || i.stickType === "3DPoint";
|
|
11783
11783
|
}
|
|
@@ -12649,7 +12649,7 @@ function fr(i) {
|
|
|
12649
12649
|
}
|
|
12650
12650
|
};
|
|
12651
12651
|
}
|
|
12652
|
-
function
|
|
12652
|
+
function Np(i) {
|
|
12653
12653
|
let t, e, n = i[0].state && dr(i);
|
|
12654
12654
|
return {
|
|
12655
12655
|
c() {
|
|
@@ -12674,7 +12674,7 @@ function Wp(i) {
|
|
|
12674
12674
|
}
|
|
12675
12675
|
};
|
|
12676
12676
|
}
|
|
12677
|
-
function
|
|
12677
|
+
function Wp(i, t, e) {
|
|
12678
12678
|
let n, o, s, { tag: r } = t;
|
|
12679
12679
|
return i.$$set = (a) => {
|
|
12680
12680
|
"tag" in a && e(0, r = a.tag);
|
|
@@ -12685,7 +12685,7 @@ function Np(i, t, e) {
|
|
|
12685
12685
|
}
|
|
12686
12686
|
class _p extends se {
|
|
12687
12687
|
constructor(t) {
|
|
12688
|
-
super(), oe(this, t,
|
|
12688
|
+
super(), oe(this, t, Wp, Np, ie, { tag: 0 }, Gp);
|
|
12689
12689
|
}
|
|
12690
12690
|
}
|
|
12691
12691
|
function Xp(i) {
|
|
@@ -13178,7 +13178,7 @@ const Lg = (i, t) => {
|
|
|
13178
13178
|
const e = t.x - i.x, n = t.y - i.y;
|
|
13179
13179
|
return Math.sqrt(e * e + n * n);
|
|
13180
13180
|
};
|
|
13181
|
-
function
|
|
13181
|
+
function Nt(i, t, e) {
|
|
13182
13182
|
return Math.max(i, Math.min(t, e));
|
|
13183
13183
|
}
|
|
13184
13184
|
function Sg(i, t) {
|
|
@@ -13299,7 +13299,7 @@ function Og({
|
|
|
13299
13299
|
particlesToScroll: n,
|
|
13300
13300
|
particlesCount: o
|
|
13301
13301
|
}) {
|
|
13302
|
-
return
|
|
13302
|
+
return Nt(
|
|
13303
13303
|
0,
|
|
13304
13304
|
Math.min(t + i * n, o - e),
|
|
13305
13305
|
o - 1
|
|
@@ -13311,7 +13311,7 @@ function Fg({
|
|
|
13311
13311
|
particlesCount: e,
|
|
13312
13312
|
particlesToShow: n
|
|
13313
13313
|
}) {
|
|
13314
|
-
return
|
|
13314
|
+
return Nt(
|
|
13315
13315
|
0,
|
|
13316
13316
|
Math.min(i * t, e - n),
|
|
13317
13317
|
e - 1
|
|
@@ -13367,7 +13367,7 @@ function Gg(i) {
|
|
|
13367
13367
|
});
|
|
13368
13368
|
});
|
|
13369
13369
|
}
|
|
13370
|
-
function
|
|
13370
|
+
function Ng({
|
|
13371
13371
|
clonesCountHead: i,
|
|
13372
13372
|
clonesCountTail: t,
|
|
13373
13373
|
particlesContainerChildren: e
|
|
@@ -13383,7 +13383,7 @@ function Wg({
|
|
|
13383
13383
|
clonesToPrepend: o
|
|
13384
13384
|
};
|
|
13385
13385
|
}
|
|
13386
|
-
function
|
|
13386
|
+
function Wg({
|
|
13387
13387
|
particlesContainer: i,
|
|
13388
13388
|
clonesToAppend: t,
|
|
13389
13389
|
clonesToPrepend: e
|
|
@@ -13515,7 +13515,7 @@ function $g({
|
|
|
13515
13515
|
particlesToShow: o,
|
|
13516
13516
|
particlesToScroll: s
|
|
13517
13517
|
}) {
|
|
13518
|
-
const r =
|
|
13518
|
+
const r = Nt(0, t, e - 1);
|
|
13519
13519
|
let a = r - 1, l = r + 1;
|
|
13520
13520
|
a = i ? a < 0 ? e - 1 : a : Math.max(0, a), l = i ? l > e - 1 ? 0 : l : Math.min(e - 1, l);
|
|
13521
13521
|
const c = [.../* @__PURE__ */ new Set([
|
|
@@ -13660,14 +13660,14 @@ function i0(i) {
|
|
|
13660
13660
|
});
|
|
13661
13661
|
},
|
|
13662
13662
|
setParticlesToShow({ data: r }) {
|
|
13663
|
-
r.particlesToShow =
|
|
13663
|
+
r.particlesToShow = Nt(
|
|
13664
13664
|
1,
|
|
13665
13665
|
r.particlesToShowInit,
|
|
13666
13666
|
r.particlesCountWithoutClones
|
|
13667
13667
|
);
|
|
13668
13668
|
},
|
|
13669
13669
|
setParticlesToScroll({ data: r }) {
|
|
13670
|
-
r.particlesToScroll =
|
|
13670
|
+
r.particlesToScroll = Nt(
|
|
13671
13671
|
1,
|
|
13672
13672
|
r.particlesToScrollInit,
|
|
13673
13673
|
r.particlesCountWithoutClones
|
|
@@ -13698,7 +13698,7 @@ function i0(i) {
|
|
|
13698
13698
|
});
|
|
13699
13699
|
},
|
|
13700
13700
|
_moveToParticle({ data: r }, a) {
|
|
13701
|
-
r.currentParticleIndex =
|
|
13701
|
+
r.currentParticleIndex = Nt(
|
|
13702
13702
|
0,
|
|
13703
13703
|
a,
|
|
13704
13704
|
r.particlesCount - 1
|
|
@@ -14103,7 +14103,7 @@ function h0(i, t, e) {
|
|
|
14103
14103
|
loaded: () => e(6, s = Ae)
|
|
14104
14104
|
})(te);
|
|
14105
14105
|
}), A = xn();
|
|
14106
|
-
let { timingFunction: p = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: C = 500 } = t, { autoplay: I = !1 } = t, { autoplayDuration: k = 3e3 } = t, { autoplayDirection: S = Ct } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: Q = !1 } = t, { dots:
|
|
14106
|
+
let { timingFunction: p = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: C = 500 } = t, { autoplay: I = !1 } = t, { autoplayDuration: k = 3e3 } = t, { autoplayDirection: S = Ct } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: Q = !1 } = t, { dots: N = !0 } = t, { swiping: R = !0 } = t, { particlesToShow: X = 1 } = t, { particlesToScroll: j = 1 } = t;
|
|
14107
14107
|
function B(te, Ae) {
|
|
14108
14108
|
return G(this, null, function* () {
|
|
14109
14109
|
const Be = pn(Ae, "animated", !0);
|
|
@@ -14118,7 +14118,7 @@ function h0(i, t, e) {
|
|
|
14118
14118
|
yield h.showPrevPage({ animated: Ae });
|
|
14119
14119
|
});
|
|
14120
14120
|
}
|
|
14121
|
-
function
|
|
14121
|
+
function W(te) {
|
|
14122
14122
|
return G(this, null, function* () {
|
|
14123
14123
|
const Ae = pn(te, "animated", !0);
|
|
14124
14124
|
yield h.showNextPage({ animated: Ae });
|
|
@@ -14132,12 +14132,12 @@ function h0(i, t, e) {
|
|
|
14132
14132
|
}), h.offsetPage({ animated: !1 });
|
|
14133
14133
|
});
|
|
14134
14134
|
function fe() {
|
|
14135
|
-
const { clonesToAppend: te, clonesToPrepend: Ae } =
|
|
14135
|
+
const { clonesToAppend: te, clonesToPrepend: Ae } = Ng({
|
|
14136
14136
|
clonesCountHead: f.clonesCountHead,
|
|
14137
14137
|
clonesCountTail: f.clonesCountTail,
|
|
14138
14138
|
particlesContainerChildren: _.children
|
|
14139
14139
|
});
|
|
14140
|
-
|
|
14140
|
+
Wg({
|
|
14141
14141
|
particlesContainer: _,
|
|
14142
14142
|
clonesToAppend: te,
|
|
14143
14143
|
clonesToPrepend: Ae
|
|
@@ -14199,7 +14199,7 @@ function h0(i, t, e) {
|
|
|
14199
14199
|
}
|
|
14200
14200
|
const qe = (te) => ue(te.detail);
|
|
14201
14201
|
return i.$$set = (te) => {
|
|
14202
|
-
"timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, y = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, C = te.duration), "autoplay" in te && e(26, I = te.autoplay), "autoplayDuration" in te && e(27, k = te.autoplayDuration), "autoplayDirection" in te && e(28, S = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, Q = te.autoplayProgressVisible), "dots" in te && e(4,
|
|
14202
|
+
"timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, y = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, C = te.duration), "autoplay" in te && e(26, I = te.autoplay), "autoplayDuration" in te && e(27, k = te.autoplayDuration), "autoplayDirection" in te && e(28, S = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, Q = te.autoplayProgressVisible), "dots" in te && e(4, N = te.dots), "swiping" in te && e(30, R = te.swiping), "particlesToShow" in te && e(31, X = te.particlesToShow), "particlesToScroll" in te && e(32, j = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
|
|
14203
14203
|
}, i.$$.update = () => {
|
|
14204
14204
|
i.$$.dirty[0] & 32 && A("pageChange", r), i.$$.dirty[0] & 4 && (f.infinite = y), i.$$.dirty[0] & 33554432 && (f.durationMsInit = C), i.$$.dirty[0] & 67108864 && (f.autoplay = I), i.$$.dirty[0] & 134217728 && (f.autoplayDuration = k), i.$$.dirty[0] & 268435456 && (f.autoplayDirection = S), i.$$.dirty[0] & 536870912 && (f.pauseOnFocus = x), i.$$.dirty[1] & 1 && (f.particlesToShowInit = X), i.$$.dirty[1] & 2 && (f.particlesToScrollInit = j);
|
|
14205
14205
|
}, [
|
|
@@ -14207,7 +14207,7 @@ function h0(i, t, e) {
|
|
|
14207
14207
|
v,
|
|
14208
14208
|
y,
|
|
14209
14209
|
Q,
|
|
14210
|
-
|
|
14210
|
+
N,
|
|
14211
14211
|
r,
|
|
14212
14212
|
s,
|
|
14213
14213
|
a,
|
|
@@ -14238,7 +14238,7 @@ function h0(i, t, e) {
|
|
|
14238
14238
|
j,
|
|
14239
14239
|
B,
|
|
14240
14240
|
O,
|
|
14241
|
-
|
|
14241
|
+
W,
|
|
14242
14242
|
o,
|
|
14243
14243
|
n,
|
|
14244
14244
|
Ue,
|
|
@@ -14642,7 +14642,7 @@ function zr(i) {
|
|
|
14642
14642
|
l & 1024 && { media: i[21] },
|
|
14643
14643
|
l & 1 && { tag: i[0] }
|
|
14644
14644
|
]) : {};
|
|
14645
|
-
!e && l & 256 && (e = !0, c.mediaInstance = i[8][i[23]],
|
|
14645
|
+
!e && l & 256 && (e = !0, c.mediaInstance = i[8][i[23]], Wc(() => e = !1)), t.$set(c);
|
|
14646
14646
|
},
|
|
14647
14647
|
i(a) {
|
|
14648
14648
|
n || (P(t.$$.fragment, a), n = !0);
|
|
@@ -15219,7 +15219,7 @@ class Cl {
|
|
|
15219
15219
|
(t = this.disposeCss3DObject) == null || t.call(this);
|
|
15220
15220
|
}
|
|
15221
15221
|
}
|
|
15222
|
-
class
|
|
15222
|
+
class N0 {
|
|
15223
15223
|
constructor(t, e) {
|
|
15224
15224
|
m(this, "five");
|
|
15225
15225
|
m(this, "hooks", new Ye());
|
|
@@ -15268,16 +15268,16 @@ const Jb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15268
15268
|
getIntersectFromRelativePosition: V0,
|
|
15269
15269
|
PointHelper: wl,
|
|
15270
15270
|
PointDomHelper: Cl,
|
|
15271
|
-
FivePointSelector:
|
|
15271
|
+
FivePointSelector: N0,
|
|
15272
15272
|
isNil: Gm,
|
|
15273
15273
|
notNil: Je,
|
|
15274
15274
|
BetterTween: go,
|
|
15275
|
-
tweenProgress:
|
|
15275
|
+
tweenProgress: Wa,
|
|
15276
15276
|
nextFrame: pi,
|
|
15277
15277
|
requestAnimationFrameInterval: gi,
|
|
15278
15278
|
getFrameTime: bf
|
|
15279
15279
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15280
|
-
function
|
|
15280
|
+
function W0(i) {
|
|
15281
15281
|
ce(i, "svelte-8mby9k", ".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}");
|
|
15282
15282
|
}
|
|
15283
15283
|
function Qr(i, t, e) {
|
|
@@ -15356,8 +15356,8 @@ function Gr(i) {
|
|
|
15356
15356
|
}
|
|
15357
15357
|
};
|
|
15358
15358
|
}
|
|
15359
|
-
function
|
|
15360
|
-
let t, e, n = i[2].price.value + "", o, s, r = i[2].price.unit &&
|
|
15359
|
+
function Nr(i) {
|
|
15360
|
+
let t, e, n = i[2].price.value + "", o, s, r = i[2].price.unit && Wr(i);
|
|
15361
15361
|
return {
|
|
15362
15362
|
c() {
|
|
15363
15363
|
t = z("div"), e = z("span"), o = Ie(n), s = ne(), r && r.c(), b(e, "class", "value svelte-8mby9k"), b(t, "class", "price svelte-8mby9k");
|
|
@@ -15366,14 +15366,14 @@ function Wr(i) {
|
|
|
15366
15366
|
T(a, t, l), V(t, e), V(e, o), V(t, s), r && r.m(t, null);
|
|
15367
15367
|
},
|
|
15368
15368
|
p(a, l) {
|
|
15369
|
-
l & 4 && n !== (n = a[2].price.value + "") && Se(o, n), a[2].price.unit ? r ? r.p(a, l) : (r =
|
|
15369
|
+
l & 4 && n !== (n = a[2].price.value + "") && Se(o, n), a[2].price.unit ? r ? r.p(a, l) : (r = Wr(a), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
15370
15370
|
},
|
|
15371
15371
|
d(a) {
|
|
15372
15372
|
a && M(t), r && r.d();
|
|
15373
15373
|
}
|
|
15374
15374
|
};
|
|
15375
15375
|
}
|
|
15376
|
-
function
|
|
15376
|
+
function Wr(i) {
|
|
15377
15377
|
let t, e = i[2].price.unit + "", n;
|
|
15378
15378
|
return {
|
|
15379
15379
|
c() {
|
|
@@ -15426,7 +15426,7 @@ function _0(i) {
|
|
|
15426
15426
|
let x = i[2].tags || [], Q = [];
|
|
15427
15427
|
for (let B = 0; B < x.length; B += 1)
|
|
15428
15428
|
Q[B] = Gr(Qr(i, x, B));
|
|
15429
|
-
let
|
|
15429
|
+
let N = w && Nr(i), R = i[2].highlightText && _r(i);
|
|
15430
15430
|
return {
|
|
15431
15431
|
c() {
|
|
15432
15432
|
var B;
|
|
@@ -15436,21 +15436,21 @@ function _0(i) {
|
|
|
15436
15436
|
f = ne();
|
|
15437
15437
|
for (let O = 0; O < Q.length; O += 1)
|
|
15438
15438
|
Q[O].c();
|
|
15439
|
-
d = ne(), h = z("div"), g = z("div"), p = Ie(A), v = ne(), y = z("div"),
|
|
15439
|
+
d = ne(), h = z("div"), g = z("div"), p = Ie(A), v = ne(), y = z("div"), N && N.c(), C = ne(), R && R.c(), b(o, "class", "line svelte-8mby9k"), L(o, "transition-delay", i[1] ? Yn + "ms" : Un + Yr - Xr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), Xe(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(u, "class", "tag svelte-8mby9k"), b(g, "class", "text svelte-8mby9k"), b(h, "class", "title svelte-8mby9k"), b(y, "class", "footer svelte-8mby9k"), L(y, "height", Je((B = i[2].price) == null ? void 0 : B.value) && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), L(r, "transition-delay", i[1] ? Yn + Un + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), J(t, "unfolded", i[1]), J(t, "folded", i[3]);
|
|
15440
15440
|
},
|
|
15441
15441
|
m(B, O) {
|
|
15442
15442
|
T(B, t, O), Z(e, t, null), V(t, n), V(t, o), V(t, s), V(t, r), V(r, a), V(r, c), V(r, u);
|
|
15443
|
-
for (let
|
|
15444
|
-
S[
|
|
15443
|
+
for (let W = 0; W < S.length; W += 1)
|
|
15444
|
+
S[W].m(u, null);
|
|
15445
15445
|
V(u, f);
|
|
15446
|
-
for (let
|
|
15447
|
-
Q[
|
|
15448
|
-
V(r, d), V(r, h), V(h, g), V(g, p), V(r, v), V(r, y),
|
|
15446
|
+
for (let W = 0; W < Q.length; W += 1)
|
|
15447
|
+
Q[W].m(u, null);
|
|
15448
|
+
V(r, d), V(r, h), V(h, g), V(g, p), V(r, v), V(r, y), N && N.m(y, null), V(y, C), R && R.m(y, null), I = !0;
|
|
15449
15449
|
},
|
|
15450
15450
|
p(B, [O]) {
|
|
15451
15451
|
var H, ee, _;
|
|
15452
|
-
const
|
|
15453
|
-
if (O & 2 && (
|
|
15452
|
+
const W = {};
|
|
15453
|
+
if (O & 2 && (W.visible = B[1]), e.$set(W), O & 2 && L(o, "transition-delay", B[1] ? Yn + "ms" : Un + Yr - Xr - 40 + "ms"), (!I || O & 4 && !Xe(a.src, l = B[2].headerPictureUrl)) && b(a, "src", l), O & 4) {
|
|
15454
15454
|
k = B[2].brandTags || [];
|
|
15455
15455
|
let U;
|
|
15456
15456
|
for (U = 0; U < k.length; U += 1) {
|
|
@@ -15472,7 +15472,7 @@ function _0(i) {
|
|
|
15472
15472
|
Q[U].d(1);
|
|
15473
15473
|
Q.length = x.length;
|
|
15474
15474
|
}
|
|
15475
|
-
(!I || O & 4) && A !== (A = B[2].title + "") && Se(p, A), O & 4 && (w = Je((H = B[2].price) == null ? void 0 : H.value) && ((ee = B[2].price) == null ? void 0 : ee.value) !== ""), w ?
|
|
15475
|
+
(!I || O & 4) && A !== (A = B[2].title + "") && Se(p, A), O & 4 && (w = Je((H = B[2].price) == null ? void 0 : H.value) && ((ee = B[2].price) == null ? void 0 : ee.value) !== ""), w ? N ? N.p(B, O) : (N = Nr(B), N.c(), N.m(y, C)) : N && (N.d(1), N = null), B[2].highlightText ? R ? R.p(B, O) : (R = _r(B), R.c(), R.m(y, null)) : R && (R.d(1), R = null), O & 4 && L(y, "height", Je((_ = B[2].price) == null ? void 0 : _.value) && B[2].highlightText ? void 0 : "1rem"), O & 2 && L(r, "transition-delay", B[1] ? Yn + Un + "ms" : "0ms"), (!I || O & 2) && J(t, "unfolded", B[1]), (!I || O & 8) && J(t, "folded", B[3]);
|
|
15476
15476
|
},
|
|
15477
15477
|
i(B) {
|
|
15478
15478
|
I || (P(e.$$.fragment, B), I = !0);
|
|
@@ -15481,7 +15481,7 @@ function _0(i) {
|
|
|
15481
15481
|
D(e.$$.fragment, B), I = !1;
|
|
15482
15482
|
},
|
|
15483
15483
|
d(B) {
|
|
15484
|
-
B && M(t), q(e), ct(S, B), ct(Q, B),
|
|
15484
|
+
B && M(t), q(e), ct(S, B), ct(Q, B), N && N.d(), R && R.d();
|
|
15485
15485
|
}
|
|
15486
15486
|
};
|
|
15487
15487
|
}
|
|
@@ -15497,7 +15497,7 @@ function X0(i, t, e) {
|
|
|
15497
15497
|
}
|
|
15498
15498
|
class Y0 extends se {
|
|
15499
15499
|
constructor(t) {
|
|
15500
|
-
super(), oe(this, t, X0, _0, ie, { tag: 0 },
|
|
15500
|
+
super(), oe(this, t, X0, _0, ie, { tag: 0 }, W0);
|
|
15501
15501
|
}
|
|
15502
15502
|
}
|
|
15503
15503
|
const Ut = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", gn = {};
|
|
@@ -16631,13 +16631,13 @@ function ia(i) {
|
|
|
16631
16631
|
}
|
|
16632
16632
|
}), {
|
|
16633
16633
|
c() {
|
|
16634
|
-
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), s = Ie(i[
|
|
16634
|
+
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), s = Ie(i[2]), b(o, "class", "text svelte-e58ijk"), b(t, "class", "text-wrapper svelte-e58ijk");
|
|
16635
16635
|
},
|
|
16636
16636
|
m(a, l) {
|
|
16637
16637
|
T(a, t, l), Z(e, t, null), V(t, n), V(t, o), V(o, s), r = !0;
|
|
16638
16638
|
},
|
|
16639
16639
|
p(a, l) {
|
|
16640
|
-
(!r || l &
|
|
16640
|
+
(!r || l & 4) && Se(s, a[2]);
|
|
16641
16641
|
},
|
|
16642
16642
|
i(a) {
|
|
16643
16643
|
r || (P(e.$$.fragment, a), r = !0);
|
|
@@ -16655,7 +16655,7 @@ function jA(i) {
|
|
|
16655
16655
|
e = new kl({
|
|
16656
16656
|
props: { icon: i[0], shadow: !0 }
|
|
16657
16657
|
}), e.$on("iconLoaded", i[9]);
|
|
16658
|
-
let s = i[
|
|
16658
|
+
let s = i[2] && i[1] && ia(i);
|
|
16659
16659
|
return {
|
|
16660
16660
|
c() {
|
|
16661
16661
|
t = z("div"), K(e.$$.fragment), n = ne(), s && s.c(), b(t, "class", "wrapper svelte-e58ijk");
|
|
@@ -16665,7 +16665,7 @@ function jA(i) {
|
|
|
16665
16665
|
},
|
|
16666
16666
|
p(r, [a]) {
|
|
16667
16667
|
const l = {};
|
|
16668
|
-
a & 1 && (l.icon = r[0]), e.$set(l), r[
|
|
16668
|
+
a & 1 && (l.icon = r[0]), e.$set(l), r[2] && r[1] ? s ? (s.p(r, a), a & 6 && P(s, 1)) : (s = ia(r), s.c(), P(s, 1), s.m(t, null)) : s && (re(), D(s, 1, 1, () => {
|
|
16669
16669
|
s = null;
|
|
16670
16670
|
}), ae());
|
|
16671
16671
|
},
|
|
@@ -16683,23 +16683,23 @@ function jA(i) {
|
|
|
16683
16683
|
function VA(i, t, e) {
|
|
16684
16684
|
let n, o, s, r, a, l, c, u, { tag: f } = t;
|
|
16685
16685
|
const d = () => {
|
|
16686
|
-
e(
|
|
16686
|
+
e(1, s = !0);
|
|
16687
16687
|
};
|
|
16688
16688
|
return i.$$set = (h) => {
|
|
16689
16689
|
"tag" in h && e(3, f = h.tag);
|
|
16690
16690
|
}, i.$$.update = () => {
|
|
16691
16691
|
var h, g;
|
|
16692
|
-
i.$$.dirty & 8 && e(
|
|
16693
|
-
},
|
|
16692
|
+
i.$$.dirty & 8 && e(2, n = (h = f.data.title) != null ? h : f.data.text), i.$$.dirty & 8 && e(8, o = (g = f.data.icon) != null ? g : f.style.point), i.$$.dirty & 256 && e(1, s = (o == null ? void 0 : o.steps) < 2), i.$$.dirty & 256 && e(7, r = o.url), i.$$.dirty & 256 && e(6, a = o.steps), i.$$.dirty & 256 && e(5, l = o.fps), i.$$.dirty & 256 && e(4, c = o.ratio), i.$$.dirty & 240 && e(0, u = { url: r, steps: a, fps: l, ratio: c });
|
|
16693
|
+
}, [
|
|
16694
16694
|
u,
|
|
16695
|
-
|
|
16695
|
+
s,
|
|
16696
16696
|
n,
|
|
16697
16697
|
f,
|
|
16698
16698
|
c,
|
|
16699
16699
|
l,
|
|
16700
16700
|
a,
|
|
16701
16701
|
r,
|
|
16702
|
-
|
|
16702
|
+
o,
|
|
16703
16703
|
d
|
|
16704
16704
|
];
|
|
16705
16705
|
}
|
|
@@ -16779,7 +16779,7 @@ class HA extends se {
|
|
|
16779
16779
|
function GA(i) {
|
|
16780
16780
|
ce(i, "svelte-ofx2uu", '@font-face{font-family:"TG-TYPE";font-style:normal;font-weight:400;src:local("TG-TYPE-Bold"), url(data:application/font-woff2;charset=utf-8;base64,T1RUTwAKAIAAAwAgQ0ZGINFD4CEAAAaQAAAHC0dTVUIAAQAAAAANnAAAAApPUy8yaB5pEwAAAjQAAABgY21hcEItjGUAAAT0AAABfGhlYWQS1WWOAAAAtAAAADZoaGVhBfMBxwAAAhAAAAAkaG10eJ9gBO8AAADsAAABJG1heHAASVAAAAAArAAAAAZuYW1lqczkZQAAApQAAAJecG9zdP+4ADIAAAZwAAAAIAAAUAAASQAAAAEAAAABAADkeHeyXw889QADA+gAAAAA2NoRKwAAAADY2hErACn/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACCAA7AcwAdwIIADMCCAA0AhwAMwISADkCCAAuAfQANAH+ACsB/gApAggANAEeAFABHgBQAR4AUAIIADQCCAAuAR4AUAEeAFABfAAxAAEAAAPo/zgAAAIcACkAKQHgAAEAAAAAAAAAAAAAAAAAAABJAAMCLgGQAAUACAKKAlgAAABLAooCWAAAAV4AMgEsAAAAAAgAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFVLV04AIAAg/xsDIP84AMgD6ADIAAAAAQAAAAAB9AK8AAAAIAAAAAAAEADGAAEAAAAAAAEADAAAAAEAAAAAAAIABAAMAAEAAAAAAAMAGwAQAAEAAAAAAAQAEQArAAEAAAAAAAUAPAA8AAEAAAAAAAYAEAB4AAEAAAAAAAgADAAAAAEAAAAAAAkADAAAAAMAAQQJAAEAGACIAAMAAQQJAAIACACgAAMAAQQJAAMANgCoAAMAAQQJAAQAIgDeAAMAAQQJAAUAeAEAAAMAAQQJAAYAIAF4AAMAAQQJAAgAGACIAAMAAQQJAAkAGACIQUxJQkFCQSBGb250Qm9sZDEuMDAwO1VLV047QUxJQkFCQUZvbnQtQm9sZEFMSUJBQkEgRm9udCBCb2xkVmVyc2lvbiAxLjAwMDtQUyAwMDEuMDAwO2hvdGNvbnYgMS4wLjg4O21ha2VvdGYubGliMi41LjY0Nzc1QUxJQkFCQUZvbnQtQm9sZABBAEwASQBCAEEAQgBBACAARgBvAG4AdABCAG8AbABkADEALgAwADAAMAA7AFUASwBXAE4AOwBBAEwASQBCAEEAQgBBAEYAbwBuAHQALQBCAG8AbABkAEEATABJAEIAQQBCAEEAIABGAG8AbgB0ACAAQgBvAGwAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAMAAwADsAUABTACAAMAAwADEALgAwADAAMAA7AGgAbwB0AGMAbwBuAHYAIAAxAC4AMAAuADgAOAA7AG0AYQBrAGUAbwB0AGYALgBsAGkAYgAyAC4ANQAuADYANAA3ADcANQBBAEwASQBCAEEAQgBBAEYAbwBuAHQALQBCAG8AbABkAAAAAAADAAAAAwAAASIAAQAAAAAAHAADAAEAAAEiAAABBgAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAABCSEMANjc4OTo7PD0+PwAAAAAAAAACAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGwAAAAAAABwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAFoAAAAQABAAAwAAACAALgA5AFoAegCl/xv//wAAACAALAAwAEEAYQCl/xr////hAAAABv/B/7v/nwAAAAEAAAAOAAAAAAAAAAAACgAAAEIASABDAEYARwADAAAAAAAA/7UAMgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAEAgABAQERQUxJQkFCQUZvbnQtQm9sZAABAQEg+A8A+CAB+CEC+BgEtPtc+HT5tAX3KA/3UBGcHAZWEgAHAQENExoiKTpLbmluZS4wMDEuMDAxbW9uZXkudW5pRkYxQm5pbmUuMDAxdW5pRkYxQWNvcHlyaWdodCBtaXNzaW5nQUxJQkFCQSBGb250IEJvbGQAAAEAAQAAIhkAQhkAEQkBhwABigAADQAADwAAZAABiAABiwABiQAADgAASQIAAQCtAK4ArwCwALEAsgCzALQAtQC2ALcAuAC5ALoAuwC8AL0AvgC/AMAAwQDCAMMAxADFAMYAxwDIAMkAygDLAMwAzQDOAM8A0ADRANIA0wDUANUA1gDXANgA2QDaANsA3ADdAN4A3wDgAOEA4gFDAVoBqwIsAloCuAMcAzkDzwQ4BDoEPARRBFMEVQTNBOIE8QUEmPtc0Ky6rKKsuqzHrKPDoa2irLCspq2vraWssKzOAejVrKytrKzYA/gu+bQV+9H+fPfRBj76ORVqSWbNavs6rM2wSqwH7vsVFUXNafs68wfNaRVqZ6wG704VaklFJ6zNsEmsB/c6TxUn+zqt9xnNB6z7DhX7Bfs69wWsO++6anRpwwfv+0EV+wX7OvcFB/cZahUnXO8GrFMVamsHRVwF8Wr7OqwG0boFRawGDg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4OrIr5UQH3OPdUA/ebihVmaZSdbB9Mr2TL0xr3vgewlK2eqh7Kr86y1BuvrIJ5qh/HZrJIQhr7vgdngmp5bR5OZ0tkQxv46ARUX2FSH/u+B1a5YMDAs7TCHve+B8RjtVYeDnD4utkB93HzA/cL+QgVPfH8vPP5UgcOrIn5UgG++DYD+GmJFfw28wb3svfUBZ2glKSnGsNduFBWXF1UiB4ijgaMsJWsnqoIyLHMstYbsa6Ceawfy2ezSUAaVndXZ2Me+2/7jQX3pwYOrIvy92Tz90ryEr/zM/L3SvMu8hPy+B/3/xUT7LCwpMDDGq6CrHqoHsZnTK5DG2lrg3puH09pZk5EGobykAe4tba6vrViXFZiYlcedyOfBhPyxLpdUlJcW1JSXLvEH5ojfAdllGiebB5LsM5j1xuwrpSeqx/KsLPO1xrKcMNerx4OwPL1Affi8gP4dPdlFWD4fPshBvuJ/HkF+wH3ryPy87YH+8z1Ffc69+QF++QHDrb3ZNf3ZfAB9zX3YwP3nRZlaJSebB9LsGPO1xrzBlK6XMTEubrEHtcHxF26UlJcXFIeI/g0+BYh+677JAaorK2ZsBuwroJ4qx/LZrNHPxo/B2aCaHhrHktmR2NAGw6si/X3b/IBufX3b/ID95n4QBWAg4uKhh/3EfelBfsHBvtK/CMFfnCFbm0aZJVnnmoeSrLPYdobsq6Vnqwfy7K10dgasoGueKwey2RHtT4b+9YETlu7yMe8vcfHvVlPT1laTx8OmIr5UQG/+B8D93iKFfsIBvdo+OYF+6T2+B8oBg6iifL3bPX3QPEStvNB8vc/8jXxE/L4EvgHFRPss7Cnu78arYOreqgexWpNr0YbaWyDem4fUmlmTUcaXqBftGAeE/JWYmROSxpklWieax5Ksc9i2BuxrpWerB/LsbTP2BrHaMVath4T7PsN93QVu7FjXFtlZltcZbC7urGzuh8T8oX8ghVPW7zHx7q6yMa9W1BPWVpQHw6i96Tz92/0AbTz93DzA/hp+HkVsIGveKwezmNFtUAbZGeBeGofSmNiRT8aZJVnnmseSrHPYtoboAb7EvukBfcHBvdL+CEFmaySqaQa+9gWxry+yJ6dhoGcHq12oWZmGk5YW1BMXLnKHg4gCiEK+11L91IlCvdiyhWtb6hpJgoeJAoOIQogCqz3pe/3b/UBufX3bfQD+G74dxWyga94rB7NZEW0PhtlaIF4ah9KY2FFPxo7tkTPZh6MjIqKjB+TiJCIjYoIjgaCoKGHoRuanY6QoB+IgfsB+6QF9wcG9y/4IgWYppGnqhr7a/sCFVBbvMjHu7zGyLxbTk5aWk4fDvtd+AojCoz7jBUmCh8kCq1vqGkeDvtdi/cS94wjCvwKBCIKDiD3ru8BvPeuA7z4EhUn967vBw4eoDf/DAmLDAv47BT4exWcEwAHAQFBXW97ipCarPcv8+7yAfdl8gP4aPf6FfIjB+r3gwUiBi77gwWHBjH3gwUkBuP7gwUnJPcxKPsxI/cx+y/y9y/3MPP7MO4GDvtdi/cSJQr3JBZkcqOzsKSksrCkcWdlcnFmHw6up6eurm+naGhvb2hop2+uHwv3EiUK9yP4ChUiCgt3SgWxBrnmBZGVj5eZGgsB2/cSAwtobm5paqBzqoYLAAABAAAAAAAAAAAAAA==) format("woff2")}*{-webkit-tap-highlight-color:transparent}.content__container.svelte-ofx2uu{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.withAnimation.svelte-ofx2uu{transition:opacity 0.3s linear}.content__container.unClickable.svelte-ofx2uu{pointer-events:none !important}.content__container.unClickable.svelte-ofx2uu *{pointer-events:none !important}.content__wrapper.svelte-ofx2uu{pointer-events:none;width:100%;height:100%}.content__container.hide.svelte-ofx2uu{opacity:0;pointer-events:none}.content__container.hide.svelte-ofx2uu *{pointer-events:none !important}.content__container.disable.svelte-ofx2uu{display:none}.content.svelte-ofx2uu{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-ofx2uu:not(.unfolded){pointer-events:none}.content.svelte-ofx2uu:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-ofx2uu{pointer-events:auto}');
|
|
16781
16781
|
}
|
|
16782
|
-
function
|
|
16782
|
+
function NA(i) {
|
|
16783
16783
|
let t, e;
|
|
16784
16784
|
return {
|
|
16785
16785
|
c() {
|
|
@@ -16798,7 +16798,7 @@ function WA(i) {
|
|
|
16798
16798
|
}
|
|
16799
16799
|
};
|
|
16800
16800
|
}
|
|
16801
|
-
function
|
|
16801
|
+
function WA(i) {
|
|
16802
16802
|
let t, e, n, o, s, r, a, l, c;
|
|
16803
16803
|
const u = [
|
|
16804
16804
|
qA,
|
|
@@ -16810,7 +16810,7 @@ function NA(i) {
|
|
|
16810
16810
|
_A
|
|
16811
16811
|
], f = [];
|
|
16812
16812
|
function d(h, g) {
|
|
16813
|
-
return h[1].element ? 0 : h[1].contentType === "Text" ? 1 : h[1].contentType === "ImageText" || h[1].contentType === "Image" || h[1].contentType === "Video" ? 2 : h[1].contentType === "Audio" ? 3 : h[1].contentType === "Marketing" ? 4 : h[1].contentType === "Link" || h[1].contentType === "VRLink" || h[1].contentType === "PanoLink" ? 5 : h[1].contentType === "MediaPlane" || h[1].contentType === "MediaModel" ? 6 : -1;
|
|
16813
|
+
return h[1].element ? 0 : h[1].contentType === "Text" ? 1 : h[1].contentType === "ImageText" || h[1].contentType === "Image" || h[1].contentType === "Video" ? 2 : h[1].contentType === "Audio" ? 3 : h[1].contentType === "Marketing" ? 4 : h[1].contentType === "Link" || h[1].contentType === "VRLink" || h[1].contentType === "PanoLink" || h[1].contentType === "Sticker" ? 5 : h[1].contentType === "MediaPlane" || h[1].contentType === "MediaModel" ? 6 : -1;
|
|
16814
16814
|
}
|
|
16815
16815
|
return ~(o = d(i)) && (s = f[o] = u[o](i)), {
|
|
16816
16816
|
c() {
|
|
@@ -17022,7 +17022,7 @@ function qA(i) {
|
|
|
17022
17022
|
}
|
|
17023
17023
|
function KA(i) {
|
|
17024
17024
|
let t, e, n, o;
|
|
17025
|
-
const s = [
|
|
17025
|
+
const s = [WA, NA], r = [];
|
|
17026
17026
|
function a(l, c) {
|
|
17027
17027
|
return l[3] ? 0 : 1;
|
|
17028
17028
|
}
|
|
@@ -17052,7 +17052,7 @@ function KA(i) {
|
|
|
17052
17052
|
}
|
|
17053
17053
|
function $A(i, t, e) {
|
|
17054
17054
|
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: f } = t, { state: d } = t, { mediaStore: h } = t, { temporaryState: g } = t;
|
|
17055
|
-
|
|
17055
|
+
Ni("hooks", f), Ni("mediaStore", h);
|
|
17056
17056
|
let A, p;
|
|
17057
17057
|
function v(C) {
|
|
17058
17058
|
C ? f.emit("exposure", { id: r, type: "start" }) : f.emit("exposure", { id: r, type: "end" });
|
|
@@ -17065,8 +17065,8 @@ function $A(i, t, e) {
|
|
|
17065
17065
|
return i.$$set = (C) => {
|
|
17066
17066
|
"withAnimation" in C && e(0, c = C.withAnimation), "tag" in C && e(1, u = C.tag), "hooks" in C && e(2, f = C.hooks), "state" in C && e(5, d = C.state), "mediaStore" in C && e(6, h = C.mediaStore), "temporaryState" in C && e(7, g = C.temporaryState);
|
|
17067
17067
|
}, i.$$.update = () => {
|
|
17068
|
-
var C, I, k, S, x, Q,
|
|
17069
|
-
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (I = u.state) == null ? void 0 : I.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((k = u.state) == null ? void 0 : k.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !y(u, d, g)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== p && (e(9, p = n), n ? (x = (S = u.hooks).emit) == null || x.call(S, "unfolded") : (
|
|
17068
|
+
var C, I, k, S, x, Q, N, R, X, j, B;
|
|
17069
|
+
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (I = u.state) == null ? void 0 : I.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((k = u.state) == null ? void 0 : k.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !y(u, d, g)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== p && (e(9, p = n), n ? (x = (S = u.hooks).emit) == null || x.call(S, "unfolded") : (N = u == null ? void 0 : (Q = u.hooks).emit) == null || N.call(Q, "folded")), o !== void 0 && o !== A && (e(8, A = o), o ? (X = (R = u.hooks).emit) == null || X.call(R, "show") : (B = (j = u.hooks).emit) == null || B.call(j, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
|
|
17070
17070
|
}, [
|
|
17071
17071
|
c,
|
|
17072
17072
|
u,
|
|
@@ -17314,7 +17314,7 @@ function uv(i, t, e) {
|
|
|
17314
17314
|
"withAnimation" in y && e(0, d = y.withAnimation), "tag" in y && e(1, h = y.tag), "mediaStore" in y && e(2, g = y.mediaStore), "state" in y && e(3, A = y.state), "temporaryState" in y && e(4, p = y.temporaryState);
|
|
17315
17315
|
}, i.$$.update = () => {
|
|
17316
17316
|
var y, w, C, I, k, S, x, Q;
|
|
17317
|
-
i.$$.dirty & 2 && e(13, n = (() => !(h.contentType === "Link" || h.contentType === "VRLink" || h.contentType === "PanoLink" || h.contentType === "Audio" && h.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => h.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = h.id), i.$$.dirty & 2 && e(10, r = !((y = h.pointTagStyle) != null && y.leftPercent) || !((w = h.pointTagStyle) != null && w.topPercent) || h.enabled === !1 || !h.state), i.$$.dirty & 2 && e(9, a = !((C = h.state) != null && C.visible) || ((I = h.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & 2 && e(8, l = (k = h.state) == null ? void 0 : k.unfolded), i.$$.dirty & 2 && e(7, c = ((S = h.pointTagStyle) == null ? void 0 : S.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = h.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, f = (Q = h.state) != null && Q.unfolded ? 1 : 0);
|
|
17317
|
+
i.$$.dirty & 2 && e(13, n = (() => !(h.contentType === "Sticker" || h.contentType === "Link" || h.contentType === "VRLink" || h.contentType === "PanoLink" || h.contentType === "Audio" && h.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => h.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = h.id), i.$$.dirty & 2 && e(10, r = !((y = h.pointTagStyle) != null && y.leftPercent) || !((w = h.pointTagStyle) != null && w.topPercent) || h.enabled === !1 || !h.state), i.$$.dirty & 2 && e(9, a = !((C = h.state) != null && C.visible) || ((I = h.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & 2 && e(8, l = (k = h.state) == null ? void 0 : k.unfolded), i.$$.dirty & 2 && e(7, c = ((S = h.pointTagStyle) == null ? void 0 : S.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = h.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, f = (Q = h.state) != null && Q.unfolded ? 1 : 0);
|
|
17318
17318
|
}, [
|
|
17319
17319
|
d,
|
|
17320
17320
|
h,
|
|
@@ -17463,7 +17463,7 @@ function hv(i) {
|
|
|
17463
17463
|
}
|
|
17464
17464
|
function mv(i, t, e) {
|
|
17465
17465
|
let { withAnimation: n = !1 } = t, { tags: o = [] } = t, { hooks: s } = t, { mediaStore: r } = t, { state: a } = t, { temporaryState: l } = t;
|
|
17466
|
-
return
|
|
17466
|
+
return Ni("hooks", s), i.$$set = (c) => {
|
|
17467
17467
|
"withAnimation" in c && e(0, n = c.withAnimation), "tags" in c && e(1, o = c.tags), "hooks" in c && e(5, s = c.hooks), "mediaStore" in c && e(2, r = c.mediaStore), "state" in c && e(3, a = c.state), "temporaryState" in c && e(4, l = c.temporaryState);
|
|
17468
17468
|
}, [n, o, r, a, l, s];
|
|
17469
17469
|
}
|
|
@@ -18940,7 +18940,7 @@ const Qi = {
|
|
|
18940
18940
|
Y: 4765519,
|
|
18941
18941
|
Z: 4227839
|
|
18942
18942
|
};
|
|
18943
|
-
class
|
|
18943
|
+
class Wt {
|
|
18944
18944
|
static get X() {
|
|
18945
18945
|
return new E.Color(Qi.X).convertSRGBToLinear().clone();
|
|
18946
18946
|
}
|
|
@@ -18954,9 +18954,9 @@ class Nt {
|
|
|
18954
18954
|
class zv extends kv {
|
|
18955
18955
|
constructor(e) {
|
|
18956
18956
|
super(e);
|
|
18957
|
-
m(this, "xArrow", new Vi({ direction: "x", color:
|
|
18958
|
-
m(this, "yArrow", new Vi({ direction: "y", color:
|
|
18959
|
-
m(this, "zArrow", new Vi({ direction: "z", color:
|
|
18957
|
+
m(this, "xArrow", new Vi({ direction: "x", color: Wt.X }));
|
|
18958
|
+
m(this, "yArrow", new Vi({ direction: "y", color: Wt.Y }));
|
|
18959
|
+
m(this, "zArrow", new Vi({ direction: "z", color: Wt.Z }));
|
|
18960
18960
|
this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
|
|
18961
18961
|
}
|
|
18962
18962
|
show() {
|
|
@@ -19014,7 +19014,7 @@ class Vv extends Dv {
|
|
|
19014
19014
|
m(this, "children", []);
|
|
19015
19015
|
m(this, "angleTips");
|
|
19016
19016
|
m(this, "container");
|
|
19017
|
-
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new Ri({ direction: "x", color:
|
|
19017
|
+
(n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new Ri({ direction: "x", color: Wt.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.yCircle = new Ri({ direction: "y", color: Wt.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.zCircle = new Ri({ direction: "z", color: Wt.Z })), (n == null ? void 0 : n.container) && (n == null ? void 0 : n.angleTipsEnable) !== !1 && (this.container = n == null ? void 0 : n.container, this.angleTips = jv({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
|
|
19018
19018
|
}
|
|
19019
19019
|
hide() {
|
|
19020
19020
|
this.children.forEach((e) => e.hide());
|
|
@@ -19368,7 +19368,7 @@ class Gv extends xv {
|
|
|
19368
19368
|
return new E.Mesh(n, o);
|
|
19369
19369
|
}
|
|
19370
19370
|
}
|
|
19371
|
-
class
|
|
19371
|
+
class Nv extends Ln {
|
|
19372
19372
|
constructor(...e) {
|
|
19373
19373
|
super(...e);
|
|
19374
19374
|
m(this, "name", "MoveController");
|
|
@@ -19503,7 +19503,7 @@ class ln {
|
|
|
19503
19503
|
this.five.off("wantsTapGesture", this.onFiveWantsTapGesture), this.five.off("wantsGesture", this.onFiveWantsGesture), this.five.off("intersectionOnModelUpdate", this.onFiveIntersectionOnModelUpdate), (t = this.helperController) == null || t.dispose();
|
|
19504
19504
|
}
|
|
19505
19505
|
}
|
|
19506
|
-
const
|
|
19506
|
+
const Wv = "v1.0.1", _v = "Object3DHelper", Eo = `${_v}@${Wv}`, Xv = () => {
|
|
19507
19507
|
console.error(`${Eo} is disposed`);
|
|
19508
19508
|
}, Yv = () => {
|
|
19509
19509
|
console.warn(`${Eo} is disabled`);
|
|
@@ -19780,7 +19780,7 @@ class qv extends Ln {
|
|
|
19780
19780
|
this.scale(n);
|
|
19781
19781
|
}
|
|
19782
19782
|
scale(e) {
|
|
19783
|
-
var Q,
|
|
19783
|
+
var Q, N;
|
|
19784
19784
|
if (!this.startInfo)
|
|
19785
19785
|
return;
|
|
19786
19786
|
const n = this.originObject3D, { startPoint: o, plane: s } = this.startInfo, r = this.helperObject3D.cornerPositions;
|
|
@@ -19793,15 +19793,15 @@ class qv extends Ln {
|
|
|
19793
19793
|
const X = new $(0, 0, 0);
|
|
19794
19794
|
if (!this.startInfo)
|
|
19795
19795
|
return X;
|
|
19796
|
-
const j = (R === "ew" ? f : d).clone(), B = c.clone().projectOnVector(j), O = a.clone().projectOnVector(j),
|
|
19796
|
+
const j = (R === "ew" ? f : d).clone(), B = c.clone().projectOnVector(j), O = a.clone().projectOnVector(j), W = l.clone().projectOnVector(j);
|
|
19797
19797
|
if (O.equals(B))
|
|
19798
19798
|
return X;
|
|
19799
19799
|
if (R === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
19800
|
-
const _ = new $().subVectors(O,
|
|
19800
|
+
const _ = new $().subVectors(O, W), U = _.x < 0 && j.x >= 0, fe = _.y < 0 && j.y >= 0, ue = _.z < 0 && j.z >= 0;
|
|
19801
19801
|
this.startInfo.dragPointInCenterBottom = U || fe || ue;
|
|
19802
19802
|
}
|
|
19803
19803
|
if (R === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
19804
|
-
const _ = new $().subVectors(O,
|
|
19804
|
+
const _ = new $().subVectors(O, W), U = _.x < 0 && j.x >= 0, fe = _.y < 0 && j.y >= 0, ue = _.z < 0 && j.z >= 0;
|
|
19805
19805
|
this.startInfo.dragPointInCenterLeft = U || fe || ue;
|
|
19806
19806
|
}
|
|
19807
19807
|
const H = new $().subVectors(O, B), ee = H.length();
|
|
@@ -19833,7 +19833,7 @@ class qv extends Ln {
|
|
|
19833
19833
|
const y = new $().subVectors(r[1], r[0]).length() / f.length(), w = new $().subVectors(r[3], r[0]).length() / d.length(), C = new $(y, w, 1), I = new E.Matrix4().scale(C);
|
|
19834
19834
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(I) : n.scale.applyMatrix4(I), o.position.copy(a);
|
|
19835
19835
|
const k = new $().addVectors(r[0], r[2]).divideScalar(2), S = new $().subVectors(k, l), x = new E.Matrix4().setPosition(S);
|
|
19836
|
-
n.applyMatrix4(x), (Q = this.helperObject3D.css3DInstance) == null || Q.css3DObject.applyMatrix4(x), (
|
|
19836
|
+
n.applyMatrix4(x), (Q = this.helperObject3D.css3DInstance) == null || Q.css3DObject.applyMatrix4(x), (N = this.helperObject3D.plane) == null || N.applyMatrix4(x), this.hooks.emit("applyObjectScale", { matrix: I }), this.hooks.emit("applyObjectPosition", { matrix: x }), this.render();
|
|
19837
19837
|
}
|
|
19838
19838
|
dragEnd() {
|
|
19839
19839
|
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
|
|
@@ -19927,7 +19927,7 @@ class ob extends mi {
|
|
|
19927
19927
|
}
|
|
19928
19928
|
const o = new Jv(), s = [], r = (h = this.five.getElement()) == null ? void 0 : h.parentElement, a = this.five.camera, { moveHelper: l = !0, rotateHelper: c = !0, scaleHelper: u = !0, boundingBoxHelper: f = !1 } = n, d = new Ye();
|
|
19929
19929
|
if (l) {
|
|
19930
|
-
const g = new zv(e), A = this.getConfig(n.moveHelper), p = new ln(this.five,
|
|
19930
|
+
const g = new zv(e), A = this.getConfig(n.moveHelper), p = new ln(this.five, Nv, e, g, A, d);
|
|
19931
19931
|
o.addControllers({ moveController: p.helperController }), s.push(() => p.dispose());
|
|
19932
19932
|
}
|
|
19933
19933
|
if (c) {
|
|
@@ -20009,17 +20009,17 @@ export {
|
|
|
20009
20009
|
rp as DimensionType,
|
|
20010
20010
|
Dt as FLOOR_PLAN_ATTACHED_TO,
|
|
20011
20011
|
Mb as FLOOR_TYPE_MAP,
|
|
20012
|
-
|
|
20012
|
+
Nm as GuideLinePlugin,
|
|
20013
20013
|
Ht as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
20014
20014
|
_b as ItemLabelPlugin,
|
|
20015
|
-
|
|
20015
|
+
Nf as Magnifier,
|
|
20016
20016
|
xb as MapviewFloorplanPlugin,
|
|
20017
20017
|
zb as ModelChassisCompassPlugin,
|
|
20018
20018
|
Bb as ModelEntryDoorGuidePlugin,
|
|
20019
20019
|
kb as ModelFloorplanPlugin,
|
|
20020
20020
|
Hb as ModelItemLabelPlugin,
|
|
20021
20021
|
Eb as ModelRoomLabelPlugin,
|
|
20022
|
-
|
|
20022
|
+
Nb as ModelTVVideoPlugin,
|
|
20023
20023
|
Cb as ModelViewPlugin,
|
|
20024
20024
|
ob as Object3DHelperController,
|
|
20025
20025
|
Kb as Object3DHelperPlugin,
|